@ashishpandeyone/cdk-lambda-web-function 0.1.11 → 0.1.12
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/.jsii +125 -62
- package/.jsii.tabl.json +1 -1
- package/API.md +129 -0
- package/README.md +29 -0
- package/assets/web-function-provider/index.js +19 -19
- package/lib/nodejs-web-function.js +1 -1
- package/lib/private/log-group.d.ts +2 -0
- package/lib/private/log-group.js +11 -2
- package/lib/private/provider-protocol.d.ts +2 -0
- package/lib/private/provider-protocol.js +1 -1
- package/lib/web-function-deployment.js +1 -1
- package/lib/web-function-endpoint.js +1 -1
- package/lib/web-function-grants.js +1 -1
- package/lib/web-function-origin.js +1 -1
- package/lib/web-function-revision.js +1 -1
- package/lib/web-function.d.ts +29 -0
- package/lib/web-function.js +55 -4
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var rAe=Object.create;var bh=Object.defineProperty;var nAe=Object.getOwnPropertyDescriptor;var oAe=Object.getOwnPropertyNames;var sAe=Object.getPrototypeOf,iAe=Object.prototype.hasOwnProperty;var g=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(n){throw r=[n],n}};var st=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Ct=(t,e)=>{for(var r in e)bh(t,r,{get:e[r],enumerable:!0})},B3=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of oAe(e))!iAe.call(t,o)&&o!==r&&bh(t,o,{get:()=>e[o],enumerable:!(n=nAe(e,o))||n.enumerable});return t};var De=(t,e,r)=>(r=t!=null?rAe(sAe(t)):{},B3(e||!t||!t.__esModule?bh(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>B3(bh({},"__esModule",{value:!0}),t);var gp,us,U3=g(()=>{gp={warningEmitted:!1},us=t=>{if(t&&!gp.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){gp.warningEmitted=!0;return}let e=parseInt(t.substring(1,t.indexOf("."))),r=22;e<r&&(gp.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
|
|
2
2
|
versions published after the first week of January 2027
|
|
3
3
|
will require node >=${r}. You are running node ${t}.
|
|
4
4
|
|
|
5
5
|
To continue receiving updates to AWS services, bug fixes,
|
|
6
6
|
and security updates please upgrade to node >=${r}.
|
|
7
7
|
|
|
8
|
-
More information can be found at: https://a.co/c895JFp`))}}});var iAe,aAe,G3,q3=g(()=>{iAe=()=>(t,e)=>async r=>(e.__retryLongPoll=!0,t(r)),aAe={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},G3=t=>({applyToStack:e=>{e.add(iAe(),aAe)}})});function Yi(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var H3=g(()=>{});var j3,GD,z3=g(()=>{j3=require("node:stream"),GD=t=>t?.body instanceof j3.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream});var hc,Ji,Xi,V3,W3,Ah=g(()=>{hc=(t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},Ji=(t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,Xi=()=>{let t=[],e=[],r=!1,n=new Set,o=m=>m.sort((y,_)=>V3[_.step]-V3[y.step]||W3[_.priority||"normal"]-W3[y.priority||"normal"]),s=m=>{let y=!1,_=C=>{let A=hc(C.name,C.aliases);if(A.includes(m)){y=!0;for(let x of A)n.delete(x);return!1}return!0};return t=t.filter(_),e=e.filter(_),y},i=m=>{let y=!1,_=C=>{if(C.middleware===m){y=!0;for(let A of hc(C.name,C.aliases))n.delete(A);return!1}return!0};return t=t.filter(_),e=e.filter(_),y},a=m=>(t.forEach(y=>{m.add(y.middleware,{...y})}),e.forEach(y=>{m.addRelativeTo(y.middleware,{...y})}),m.identifyOnResolve?.(f.identifyOnResolve()),m),c=m=>{let y=[];return m.before.forEach(_=>{_.before.length===0&&_.after.length===0?y.push(_):y.push(...c(_))}),y.push(m),m.after.reverse().forEach(_=>{_.before.length===0&&_.after.length===0?y.push(_):y.push(...c(_))}),y},u=(m=!1)=>{let y=[],_=[],C={};return t.forEach(x=>{let T={...x,before:[],after:[]};for(let I of hc(T.name,T.aliases))C[I]=T;y.push(T)}),e.forEach(x=>{let T={...x,before:[],after:[]};for(let I of hc(T.name,T.aliases))C[I]=T;_.push(T)}),_.forEach(x=>{if(x.toMiddleware){let T=C[x.toMiddleware];if(T===void 0){if(m)return;throw new Error(`${x.toMiddleware} is not found when adding ${Ji(x.name,x.aliases)} middleware ${x.relation} ${x.toMiddleware}`)}x.relation==="after"&&T.after.push(x),x.relation==="before"&&T.before.push(x)}}),o(y).map(c).reduce((x,T)=>(x.push(...T),x),[])},f={add:(m,y={})=>{let{name:_,override:C,aliases:A}=y,x={step:"initialize",priority:"normal",middleware:m,...y},T=hc(_,A);if(T.length>0){if(T.some(I=>n.has(I))){if(!C)throw new Error(`Duplicate middleware name '${Ji(_,A)}'`);for(let I of T){let q=t.findIndex(me=>me.name===I||me.aliases?.some(et=>et===I));if(q===-1)continue;let H=t[q];if(H.step!==x.step||x.priority!==H.priority)throw new Error(`"${Ji(H.name,H.aliases)}" middleware with ${H.priority} priority in ${H.step} step cannot be overridden by "${Ji(_,A)}" middleware with ${x.priority} priority in ${x.step} step.`);t.splice(q,1)}}for(let I of T)n.add(I)}t.push(x)},addRelativeTo:(m,y)=>{let{name:_,override:C,aliases:A}=y,x={middleware:m,...y},T=hc(_,A);if(T.length>0){if(T.some(I=>n.has(I))){if(!C)throw new Error(`Duplicate middleware name '${Ji(_,A)}'`);for(let I of T){let q=e.findIndex(me=>me.name===I||me.aliases?.some(et=>et===I));if(q===-1)continue;let H=e[q];if(H.toMiddleware!==x.toMiddleware||H.relation!==x.relation)throw new Error(`"${Ji(H.name,H.aliases)}" middleware ${H.relation} "${H.toMiddleware}" middleware cannot be overridden by "${Ji(_,A)}" middleware ${x.relation} "${x.toMiddleware}" middleware.`);e.splice(q,1)}}for(let I of T)n.add(I)}e.push(x)},clone:()=>a(Xi()),use:m=>{m.applyToStack(f)},remove:m=>typeof m=="string"?s(m):i(m),removeByTag:m=>{let y=!1,_=C=>{let{tags:A,name:x,aliases:T}=C;if(A&&A.includes(m)){let I=hc(x,T);for(let q of I)n.delete(q);return y=!0,!1}return!0};return t=t.filter(_),e=e.filter(_),y},concat:m=>{let y=a(Xi());return y.use(m),y.identifyOnResolve(r||y.identifyOnResolve()||(m.identifyOnResolve?.()??!1)),y},applyToStack:a,identify:()=>u(!0).map(m=>{let y=m.step??m.relation+" "+m.toMiddleware;return Ji(m.name,m.aliases)+" - "+y}),identifyOnResolve(m){return typeof m=="boolean"&&(r=m),r},resolve:(m,y)=>{for(let _ of u().map(C=>C.middleware).reverse())m=_(m,y);return r&&console.log(f.identify()),m}};return f},V3={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},W3={high:3,normal:2,low:1}});var Eo=st(yo=>{var qD;(function(t){t.HEADER="header",t.QUERY="query"})(qD||(qD={}));var HD;(function(t){t.HEADER="header",t.QUERY="query"})(HD||(HD={}));var jD;(function(t){t.HTTP="http",t.HTTPS="https"})(jD||(jD={}));var hp;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(hp||(hp={}));var cAe=t=>{let e=[];return t.sha256!==void 0&&e.push({algorithmId:()=>hp.SHA256,checksumConstructor:()=>t.sha256}),t.md5!=null&&e.push({algorithmId:()=>hp.MD5,checksumConstructor:()=>t.md5}),{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},uAe=t=>{let e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},lAe=t=>cAe(t),dAe=t=>uAe(t),zD;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(zD||(zD={}));var pAe="__smithy_context",VD;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(VD||(VD={}));var WD;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(WD||(WD={}));yo.AlgorithmId=hp;yo.EndpointURLScheme=jD;yo.FieldPosition=zD;yo.HttpApiKeyAuthLocation=HD;yo.HttpAuthLocation=qD;yo.IniSectionType=VD;yo.RequestHandlerProtocol=WD;yo.SMITHY_CONTEXT_KEY=pAe;yo.getDefaultClientConfiguration=lAe;yo.resolveDefaultRuntimeConfig=dAe});var KD,Le,K3=g(()=>{KD=De(Eo()),Le=t=>t[KD.SMITHY_CONTEXT_KEY]||(t[KD.SMITHY_CONTEXT_KEY]={})});function W(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var QD=g(()=>{});function fAe(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}var re,Q3=g(()=>{re=class t{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){let r=new t({...e,headers:{...e.headers}});return r.query&&(r.query=fAe(r.query)),r}static isInstance(e){if(!e)return!1;let r=e;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){return t.clone(this)}}});var ft,Y3=g(()=>{ft=class{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;let r=e;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}});var mAe,_o,J3=g(()=>{mAe=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),_o=(t,e=!1)=>{if(!e)return mAe.test(t);let r=t.split(".");for(let n of r)if(!_o(n))return!1;return!0}});function Sp(t){return/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)}var X3=g(()=>{});var we,Z3=g(()=>{we=t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e}});function yp(t){let e={};if(t=t.replace(/^\?/,""),t)for(let r of t.split("&")){let[n,o=null]=r.split("=");n=decodeURIComponent(n),o&&(o=decodeURIComponent(o)),n in e?Array.isArray(e[n])?e[n].push(o):e[n]=[e[n],o]:e[n]=o}return e}var YD=g(()=>{});var Cr,JD=g(()=>{YD();Cr=t=>{if(typeof t=="string")return Cr(new URL(t));let{hostname:e,pathname:r,port:n,protocol:o,search:s}=t,i;return s&&(i=yp(s)),{hostname:e,port:n?parseInt(n):void 0,protocol:o,path:r,query:i}}});var Tn,eF=g(()=>{QD();JD();Tn=t=>{if(typeof t=="object"){if("url"in t){let e=Cr(t.url);if(t.headers){e.headers={};for(let r in t.headers)W(t.headers,r)&&(e.headers[r.toLowerCase()]=t.headers[r].join(", "))}return e}return t}return Cr(t)}});var oe=g(()=>{K3();QD();Q3();Y3();J3();X3();Z3();YD();JD();eF()});var tF,rF=g(()=>{tF=t=>()=>{throw new Error(t)}});var nF,oF=g(()=>{nF=t=>()=>Promise.reject(t)});var Iu,XD=g(()=>{Iu=()=>{let t=new WeakSet;return(e,r)=>{if(typeof r=="object"&&r!==null){if(t.has(r))return"[Circular]";t.add(r)}return r}}});var sF,iF=g(()=>{sF=t=>new Promise(e=>setTimeout(e,t*1e3))});var xh,vn,aF,Th=g(()=>{XD();xh={minDelay:2,maxDelay:120};(function(t){t.ABORTED="ABORTED",t.FAILURE="FAILURE",t.SUCCESS="SUCCESS",t.RETRY="RETRY",t.TIMEOUT="TIMEOUT"})(vn||(vn={}));aF=t=>{if(t.state===vn.ABORTED){let e=new Error(`${JSON.stringify({...t,reason:"Request was aborted"},Iu())}`);throw e.name="AbortError",e}else if(t.state===vn.TIMEOUT){let e=new Error(`${JSON.stringify({...t,reason:"Waiter has timed out"},Iu())}`);throw e.name="TimeoutError",e}else if(t.state!==vn.SUCCESS)throw new Error(`${JSON.stringify(t,Iu())}`);return t}});var cF,gAe,hAe,SAe,yAe,uF=g(()=>{XD();iF();Th();cF=async({minDelay:t,maxDelay:e,maxWaitTime:r,abortController:n,client:o,abortSignal:s},i,a)=>{let c={},[u,f]=[t*1e3,e*1e3],m=0,y=Date.now()+r*1e3,_=Date.now()+6e4,C=!1;for(;;){if(m>0){let T=SAe(u,f,m,y);if(n?.signal?.aborted||s?.aborted){let I="AbortController signal aborted.";return c[I]|=0,c[I]+=1,{state:vn.ABORTED,observedResponses:c}}if(Date.now()+T>y)return{state:vn.TIMEOUT,observedResponses:c};await sF(T/1e3)}let{state:A,reason:x}=await a(o,i);if(x){let T=hAe(x);c[T]|=0,c[T]+=1}if(A!==vn.RETRY)return{state:A,reason:x,final:x,observedResponses:c};m+=1,!C&&Date.now()>=_&&(gAe(c,o),C=!0)}},gAe=(t={},e)=>{let r=Object.keys(t),n=0,o=0;for(let a of r){let c=t[a]|0;n=Math.max(c,n),a.startsWith("403:")&&(o+=c)}let s=e?.config?.logger,i=typeof s?.warn=="function"&&!s.constructor?.name?.includes?.("NoOpLogger")?s:console;(o>=3||r[r.length-1]?.startsWith("403:"))&&i.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},hAe=t=>{let e=t?.$response?.statusCode??t?.$metadata?.httpStatusCode;return t?.$responseBodyText?`${e?e+": ":""}Deserialization error for body: ${t.$responseBodyText}`:e?t?.$response||t?.message?`${e??"Unknown"}: ${t?.message}`:`${e}: OK`:String(t?.message??JSON.stringify(t,Iu())??"Unknown")},SAe=(t,e,r,n)=>{let o=Math.log(e/t)/Math.log(2)+1;if(r>o)return e;let s=t*2**(r-1),i=Math.min(s,e),a=yAe(t,i);if(Date.now()+a>n){let c=n-Date.now();return Math.max(0,c-500)}return a},yAe=(t,e)=>t+Math.random()*(e-t)});var lF,dF=g(()=>{lF=t=>{if(t.maxWaitTime<=0)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(t.minDelay<=0)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(t.maxDelay<=0)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(t.maxWaitTime<=t.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${t.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${t.minDelay}] for this waiter`);if(t.maxDelay<t.minDelay)throw new Error(`WaiterConfiguration.maxDelay [${t.maxDelay}] must be greater than WaiterConfiguration.minDelay [${t.minDelay}] for this waiter`)}});var pF,fF,mF=g(()=>{uF();dF();Th();pF=t=>{let e,r=new Promise(n=>{e=()=>n({state:vn.ABORTED}),typeof t.addEventListener=="function"?t.addEventListener("abort",e):t.onabort=e});return{clearListener(){typeof t.removeEventListener=="function"&&t.removeEventListener("abort",e)},aborted:r}},fF=async(t,e,r)=>{let n={...xh,...t};lF(n);let o=[cF(n,e,r)],s=[];if(t.abortSignal){let{aborted:i,clearListener:a}=pF(t.abortSignal);s.push(a),o.push(i)}if(t.abortController?.signal){let{aborted:i,clearListener:a}=pF(t.abortController.signal);s.push(a),o.push(i)}return Promise.race(o).then(i=>{for(let a of s)a();return i})}});var Lr,gF=g(()=>{Ah();Lr=class{config;middlewareStack=Xi();initConfig;handlers;constructor(e){this.config=e;let{protocol:r,protocolSettings:n}=e;n&&typeof r=="function"&&(e.protocol=new r(n))}send(e,r,n){let o=typeof r!="function"?r:void 0,s=typeof r=="function"?r:n,i=o===void 0&&this.config.cacheMiddleware===!0,a;if(i){this.handlers||(this.handlers=new WeakMap);let c=this.handlers;c.has(e.constructor)?a=c.get(e.constructor):(a=e.resolveMiddleware(this.middlewareStack,this.config,o),c.set(e.constructor,a))}else delete this.handlers,a=e.resolveMiddleware(this.middlewareStack,this.config,o);if(s)a(e).then(c=>s(null,c.output),c=>s(c)).catch(()=>{});else return a(e).then(c=>c.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}});var mn,ZD=g(()=>{mn=t=>typeof t=="function"?t():t});var wu,vh=g(()=>{wu=(t,e,r,n,o)=>({name:e,namespace:t,traits:r,input:n,output:o})});var hF,eI,SF=g(()=>{oe();vh();hF=t=>(e,r)=>async n=>{let{response:o}=await e(n),{operationSchema:s}=Le(r),[,i,a,c,u,f]=s??[];try{let m=await t.protocol.deserializeResponse(wu(i,a,c,u,f),{...t,...r},o);return{response:o,output:m}}catch(m){if(Object.defineProperty(m,"$response",{value:o,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in m)){let y="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{m.message+=`
|
|
9
|
-
`+y}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(y):r.logger?.warn?.(y)}typeof m.$responseBodyText<"u"&&m.$response&&(m.$response.body=m.$responseBodyText);try{if(ft.isInstance(o)){let{headers:_={},statusCode:C}=o,A=Object.entries(_);m.$metadata={httpStatusCode:C,requestId:eI(/^x-[\w-]+-request-?id$/,A),extendedRequestId:eI(/^x-[\w-]+-id-2$/,A),cfId:eI(/^x-[\w-]+-cf-id$/,A)}}}catch{}}throw m}},eI=(t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1]});var yF,EF=g(()=>{oe();vh();yF=t=>(e,r)=>async n=>{let{operationSchema:o}=Le(r),[,s,i,a,c,u]=o??[],f=r.endpointV2?async()=>Tn(r.endpointV2):t.endpoint,m=await t.protocol.serializeRequest(wu(s,i,a,c,u),n.input,{...t,...r,endpoint:f});return e({...n,request:m})}});function ls(t){return{applyToStack:e=>{e.add(yF(t),rI),e.add(hF(t),tI),t.protocol.setSerdeContext(t)}}}var tI,rI,_F=g(()=>{SF();EF();tI={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},rI={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});var mt,Zi=g(()=>{mt=class{name;namespace;traits;static assign(e,r){return Object.assign(e,r)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}getName(){return this.namespace+"#"+this.name}}});var Ep,RF,CF=g(()=>{Zi();Ep=class t extends mt{static symbol=Symbol.for("@smithy/lis");valueSchema;symbol=t.symbol},RF=(t,e,r,n)=>mt.assign(new Ep,{name:e,namespace:t,traits:r,valueSchema:n})});var _p,bF,AF=g(()=>{Zi();_p=class t extends mt{static symbol=Symbol.for("@smithy/map");keySchema;valueSchema;symbol=t.symbol},bF=(t,e,r,n,o)=>mt.assign(new _p,{name:e,namespace:t,traits:r,keySchema:n,valueSchema:o})});var Rp,xF,TF=g(()=>{Zi();Rp=class t extends mt{static symbol=Symbol.for("@smithy/ope");input;output;symbol=t.symbol},xF=(t,e,r,n,o)=>mt.assign(new Rp,{name:e,namespace:t,traits:r,input:n,output:o})});var Sc,vF,nI=g(()=>{Zi();Sc=class t extends mt{static symbol=Symbol.for("@smithy/str");memberNames;memberList;symbol=t.symbol},vF=(t,e,r,n,o)=>mt.assign(new Sc,{name:e,namespace:t,traits:r,memberNames:n,memberList:o})});var Cp,DF,IF=g(()=>{Zi();nI();Cp=class t extends Sc{static symbol=Symbol.for("@smithy/err");ctor;symbol=t.symbol},DF=(t,e,r,n,o,s)=>mt.assign(new Cp,{name:e,namespace:t,traits:r,memberNames:n,memberList:o,ctor:null})});function Ro(t){if(typeof t=="object")return t;if(t=t|0,bp[t])return bp[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return bp[t]=e}var bp,oI=g(()=>{bp=[]});function xp(t,e){if(t instanceof B)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=B;return new r(t,e)}var Ap,Tp,vp,B,sI,iI,wF=g(()=>{ZD();oI();Ap={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},Tp=[],vp={},B=class t{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=t.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,r){this.ref=e,this.memberName=r;let n=[],o=e,s=e;for(this._isMemberSchema=!1;sI(o);)n.push(o[1]),o=o[0],s=mn(o),this._isMemberSchema=!0;if(n.length>0){this.memberTraits={};for(let i=n.length-1;i>=0;--i){let a=n[i];Object.assign(this.memberTraits,Ro(a))}}else this.memberTraits=0;if(s instanceof t){let i=this.memberTraits;Object.assign(this,s),this.memberTraits=Object.assign({},i,s.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??s.memberName;return}if(this.schema=mn(s),iI(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(s),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}static of(e){let r=typeof e=="function"||typeof e=="object"&&e!==null;if(typeof e=="number"){if(Tp[e])return Tp[e]}else if(typeof e=="string"){if(vp[e])return vp[e]}else if(r&&e[Ap.ns])return e[Ap.ns];let n=mn(e);if(n instanceof t)return n;if(sI(n)){let[s,i]=n;if(s instanceof t)return Object.assign(s.getMergedTraits(),Ro(i)),s;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}let o=new t(n);return r?e[Ap.ns]=o:typeof n=="string"?vp[n]=o:typeof n=="number"?Tp[n]=o:o}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:r}=this;return!e&&r&&r.includes("#")?r.split("#")[1]:r||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e=="number"?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e=="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!="object")return!1;let r=e[0];return r===3||r===-3||r===4}isUnionSchema(){let e=this.getSchema();return typeof e!="object"?!1:e[0]===4}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e=="number"&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return Ro(this.memberTraits)}getOwnTraits(){return Ro(this.traits)}getKeySchema(){let[e,r]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!r)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema(),o=e?15:n[4]??0;return xp([o,0],"key")}getValueSchema(){let e=this.getSchema(),[r,n,o]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],s=typeof e=="number"?63&e:e&&typeof e=="object"&&(n||o)?e[3+e[0]]:r?15:void 0;if(s!=null)return xp([s,0],n?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let r=this.getSchema();if(this.isStructSchema()&&r[4].includes(e)){let n=r[4].indexOf(e),o=r[5][n];return xp(sI(o)?o:[o,0],e)}if(this.isDocumentSchema())return xp([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[r,n]of this.structIterator())e[r]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,r]of this.structIterator())if(r.isStreaming()&&r.isStructSchema())return e}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");let e=this.getSchema(),r=e[4].length,n=e[Ap.it];if(n&&r===n.length){yield*n;return}n=Array(r);for(let o=0;o<r;++o){let s=e[4][o],i=xp([e[5][o],0],s);yield n[o]=[s,i]}e[Ap.it]=n}};sI=t=>Array.isArray(t)&&t.length===2,iI=t=>Array.isArray(t)&&t.length>=5});var Pu,PF,OF,$F=g(()=>{Zi();Pu=class t extends mt{static symbol=Symbol.for("@smithy/sim");schemaRef;symbol=t.symbol},PF=(t,e,r,n)=>mt.assign(new Pu,{name:e,namespace:t,traits:n,schemaRef:r}),OF=(t,e,r,n)=>mt.assign(new Pu,{name:e,namespace:t,traits:r,schemaRef:n})});var kF,MF=g(()=>{kF={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128}});var Fe,LF=g(()=>{Fe=class t{namespace;schemas;exceptions;static registries=new Map;constructor(e,r=new Map,n=new Map){this.namespace=e,this.schemas=r,this.exceptions=n,t.registries.has(e)||t.registries.set(e,this)}static for(e){return t.registries.get(e)??new t(e)}copyFrom(e){let{schemas:r,exceptions:n}=this;for(let[o,s]of e.schemas)r.has(o)||r.set(o,s);for(let[o,s]of e.exceptions)n.has(o)||n.set(o,s)}register(e,r){let n=this.normalizeShapeId(e);for(let o of[this,t.for(n.split("#")[0])])o.schemas.has(n)||o.schemas.set(n,r)}getSchema(e){let r=this.normalizeShapeId(e);if(!this.schemas.has(r)){if(!e.includes("#")){let n="#"+e,o=[];for(let[s,i]of this.schemas.entries())s.endsWith(n)&&o.push(i);if(o.length===1)return o[0]}throw new Error(`@smithy/core/schema - schema not found for ${r}`)}return this.schemas.get(r)}registerError(e,r){let n=e,o=n[1],s=o+"#"+n[2];r.hasOwnProperty?.("shapeId")||(r.shapeId=s);for(let i of[this,t.for(o)])!i.schemas.has(s)&&!i.exceptions.has(n)&&(i.schemas.set(s,n),i.exceptions.set(n,r))}getErrorCtor(e){let r=e;return this.exceptions.has(r)?this.exceptions.get(r):t.for(r[1]).exceptions.get(r)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,r,n]=e,o=r+"#"+n;if(o.startsWith("smithy.ts.sdk.synthetic.")&&o.endsWith("ServiceException"))return e}}find(e){for(let r of this.schemas.values())if(e(r))return r}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}});var Dp={};Ct(Dp,{ErrorSchema:()=>Cp,ListSchema:()=>Ep,MapSchema:()=>_p,NormalizedSchema:()=>B,OperationSchema:()=>Rp,SCHEMA:()=>kF,Schema:()=>mt,SimpleSchema:()=>Pu,StructureSchema:()=>Sc,TypeRegistry:()=>Fe,deref:()=>mn,deserializerMiddlewareOption:()=>tI,error:()=>DF,getSchemaSerdePlugin:()=>ls,isStaticSchema:()=>iI,list:()=>RF,map:()=>bF,op:()=>xF,operation:()=>wu,serializerMiddlewareOption:()=>rI,sim:()=>PF,simAdapter:()=>OF,simpleSchemaCacheN:()=>Tp,simpleSchemaCacheS:()=>vp,struct:()=>vF,traitsCache:()=>bp,translateTraits:()=>Ro});var ae=g(()=>{ZD();_F();CF();AF();TF();vh();IF();wF();Zi();$F();nI();MF();oI();LF()});function Ou(t,e){if(e==null)return e;let r=B.of(t);if(r.getMergedTraits().sensitive)return aI;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return aI}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return aI}else if(r.isStructSchema()&&typeof e=="object"){let n=e,o={};for(let[s,i]of r.structIterator())n[s]!=null&&(o[s]=Ou(i,n[s]));return o}return e}var aI,cI=g(()=>{ae();aI="***SensitiveInformation***"});var uI,Xr,lI,dI=g(()=>{uI=De(Eo());Ah();cI();Xr=class{middlewareStack=Xi();schema;static classBuilder(){return new lI}resolveMiddlewareWithContext(e,r,n,{middlewareFn:o,clientName:s,commandName:i,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,smithyContext:u,additionalContext:f,CommandCtor:m}){for(let I of o.bind(this)(m,e,r,n))this.middlewareStack.use(I);let y=e.concat(this.middlewareStack),{logger:_}=r,C=f[uI.SMITHY_CONTEXT_KEY],A={logger:_,clientName:s,commandName:i,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,...f,[uI.SMITHY_CONTEXT_KEY]:{...C,commandInstance:this,...u,...n?.metricsRecorder===void 0?{}:{metricsRecorder:n.metricsRecorder}}},{requestHandler:x}=r,T=n??{};return T.metricsRecorder&&(T={...T},delete T.metricsRecorder),u.eventStream&&(T={isEventStream:!0,...T}),y.resolve(I=>x.handle(I.request,T),A)}},lI=class{_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,r,n={}){return this._smithyContext={service:e,operation:r,...n},this}c(e={}){return this._additionalContext=e,this}n(e,r){return this._clientName=e,this._commandName=r,this}f(e=n=>n,r=n=>n){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=r,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(){let e=this,r;return r=class extends Xr{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[n]){super(),this.input=n??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,o,s){let i=e._operationSchema,a=i?.[4]??i?.input,c=i?.[5]??i?.output;return this.resolveMiddlewareWithContext(n,o,s,{CommandCtor:r,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(i?Ou.bind(null,a):u=>u),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(i?Ou.bind(null,c):u=>u),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}});var NF,FF=g(()=>{NF="***SensitiveInformation***"});var ds,BF=g(()=>{ds=(t,e,r)=>{for(let[s,i]of Object.entries(t)){let a=async function(u,f,m){let y=new i(u);if(typeof f=="function")this.send(y,f);else if(typeof m=="function"){if(typeof f!="object")throw new Error(`Expected http options but got ${typeof f}`);this.send(y,f||{},m)}else return this.send(y,f)},c=(s[0].toLowerCase()+s.slice(1)).replace(/Command$/,"");e.prototype[c]=a}let{paginators:n={},waiters:o={}}=r??{};for(let[s,i]of Object.entries(n))e.prototype[s]===void 0&&(e.prototype[s]=function(a={},c,...u){return i({...c,client:this},a,...u)});for(let[s,i]of Object.entries(o))e.prototype[s]===void 0&&(e.prototype[s]=async function(a={},c,...u){let f=c;return typeof c=="number"&&(f={maxWaitTime:c}),i({...f,client:this},a,...u)})}});var jn,yc,pI=g(()=>{jn=class t extends Error{static shapeId="smithy.ts.sdk.synthetic.nonamespace.client#ServiceException";$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;let r=e;return t.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return!1;let r=e;if(this===t)return t.isInstance(e);if(t.isInstance(e)){if(this.prototype.isPrototypeOf(e))return!0;let n=Object.prototype.hasOwnProperty.call(this,"shapeId")?this.shapeId:void 0,o=!1;if(n){let i=Object.getPrototypeOf(r);for(;i&&i!==Object.prototype;){let a=i.constructor,c=a!==t&&Object.prototype.hasOwnProperty.call(a,"shapeId")?a?.shapeId:void 0;if(c&&(o=!0,c===n))return!0;i=Object.getPrototypeOf(i)}}if(n&&o)return!1;let s=this.name;if(s&&s.length>=6){if(r.name===s)return!0;let i=Object.getPrototypeOf(r);for(;i&&i!==Object.prototype;){let a=i.constructor?.name;if(a&&a!=="Error"&&a===s)return!0;i=Object.getPrototypeOf(i)}}}return!1}},yc=(t,e={})=>{Object.entries(e).filter(([,n])=>n!==void 0).forEach(([n,o])=>{(t[n]==null||t[n]==="")&&(t[n]=o)});let r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t}});var fI,UF,EAe,GF=g(()=>{pI();fI=({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{let o=EAe(t),s=o.httpStatusCode?o.httpStatusCode+"":void 0,i=new r({name:e?.code||e?.Code||n||s||"UnknownError",$fault:"client",$metadata:o});throw yc(i,e)},UF=t=>({output:e,parsedBody:r,errorCode:n})=>{fI({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})},EAe=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]})});var ps,qF=g(()=>{ps=t=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}}});var HF,fs,jF=g(()=>{HF=!1,fs=t=>{t&&!HF&&parseInt(t.substring(1,t.indexOf(".")))<16&&(HF=!0)}});var Ec,zF,Dh,Ih,mI=g(()=>{oe();Ec=De(Eo()),zF=Object.values(Ec.AlgorithmId),Dh=t=>{let e=[];for(let r in Ec.AlgorithmId){if(!W(Ec.AlgorithmId,r))continue;let n=Ec.AlgorithmId[r];t[n]!==void 0&&e.push({algorithmId:()=>n,checksumConstructor:()=>t[n]})}for(let[r,n]of Object.entries(t.checksumAlgorithms??{}))e.push({algorithmId:()=>r,checksumConstructor:()=>n});return{addChecksumAlgorithm(r){t.checksumAlgorithms=t.checksumAlgorithms??{};let n=r.algorithmId(),o=r.checksumConstructor();zF.includes(n)?t.checksumAlgorithms[n.toUpperCase()]=o:t.checksumAlgorithms[n]=o,e.push(r)},checksumAlgorithms(){return e}}},Ih=t=>{let e={};return t.checksumAlgorithms().forEach(r=>{let n=r.algorithmId();zF.includes(n)&&(e[n]=r.checksumConstructor())}),e}});var wh,Ph,gI=g(()=>{wh=t=>({setRetryStrategy(e){t.retryStrategy=e},retryStrategy(){return t.retryStrategy}}),Ph=t=>{let e={};return e.retryStrategy=t.retryStrategy(),e}});var Co,VF,ms,WF=g(()=>{mI();gI();Co=t=>Object.assign(Dh(t),wh(t)),VF=Co,ms=t=>Object.assign(Ih(t),Ph(t))});var KF,QF=g(()=>{KF=t=>Array.isArray(t)?t:[t]});var _c,YF=g(()=>{oe();_c=t=>{let e="#text";for(let r in t)W(t,r)&&(t[r][e]!==void 0?t[r]=t[r][e]:typeof t[r]=="object"&&t[r]!==null&&(t[r]=_c(t[r])));return t}});var JF,XF=g(()=>{JF=t=>t!=null});var Nr,ZF=g(()=>{Nr=class{trace(){}debug(){}info(){}warn(){}error(){}}});function hI(t,e,r){let n,o,s;if(typeof e>"u"&&typeof r>"u")n={},s=t;else{if(n=t,typeof e=="function")return o=e,s=r,_Ae(n,o,s);s=e}for(let i in s)if(W(s,i)){if(!Array.isArray(s[i])){n[i]=s[i];continue}rB(n,null,s,i)}return n}var eB,tB,_Ae,rB,RAe,CAe,nB=g(()=>{oe();eB=t=>{let e={};for(let[r,n]of Object.entries(t||{}))e[r]=[,n];return e},tB=(t,e)=>{let r={};for(let n in e)W(e,n)&&rB(r,t,e,n);return r},_Ae=(t,e,r)=>hI(t,Object.entries(r).reduce((n,[o,s])=>(Array.isArray(s)?n[o]=s:typeof s=="function"?n[o]=[e,s()]:n[o]=[e,s],n),{})),rB=(t,e,r,n)=>{if(e!==null){let i=r[n];typeof i=="function"&&(i=[,i]);let[a=RAe,c=CAe,u=n]=i;(typeof a=="function"&&a(e[u])||typeof a!="function"&&a)&&(t[n]=c(e[u]));return}let[o,s]=r[n];if(typeof s=="function"){let i,a=o===void 0&&(i=s())!=null,c=typeof o=="function"&&!!o(void 0)||typeof o!="function"&&!!o;a?t[n]=i:c&&(t[n]=s())}else{let i=o===void 0&&s!=null,a=typeof o=="function"&&!!o(s)||typeof o!="function"&&!!o;(i||a)&&(t[n]=s)}},RAe=t=>t!=null,CAe=t=>t});var oB,sB,iB=g(()=>{oB=t=>{if(t!==t)return"NaN";switch(t){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return t}},sB=t=>t.toISOString().replace(".000Z","Z")});var Oh,aB=g(()=>{oe();Oh=t=>{if(t==null)return{};if(Array.isArray(t))return t.filter(e=>e!=null).map(Oh);if(typeof t=="object"){let e={};for(let r in t)W(t,r)&&t[r]!=null&&(e[r]=Oh(t[r]));return e}return t}});function gs(t,e,r,n){return function(s,i,a,c,u={}){let f=Object.assign({},t,s);return Xr.classBuilder().ep(f).m(function(m,y,_,C){let A=i.call(this,m,y,_,C);return A.unshift(n(_,m.getEndpointParameterInstructions())),A}).s(e,a,u).n(r,a.charAt(0).toUpperCase()+a.slice(1)+"Command").sc(c).build()}}var cB=g(()=>{dI()});var bo={};Ct(bo,{AlgorithmId:()=>Ec.AlgorithmId,Client:()=>Lr,Command:()=>Xr,NoOpLogger:()=>Nr,SENSITIVE_STRING:()=>NF,ServiceException:()=>jn,WaiterState:()=>vn,_json:()=>Oh,checkExceptions:()=>aF,constructStack:()=>Xi,convertMap:()=>eB,createAggregatedClient:()=>ds,createWaiter:()=>fF,decorateServiceException:()=>yc,emitWarningIfUnsupportedVersion:()=>fs,getArrayIfSingleItem:()=>KF,getChecksumConfiguration:()=>Dh,getDefaultClientConfiguration:()=>VF,getDefaultExtensionConfiguration:()=>Co,getRetryConfiguration:()=>wh,getSmithyContext:()=>Le,getValueFromTextNode:()=>_c,invalidFunction:()=>tF,invalidProvider:()=>nF,isSerializableHeaderValue:()=>JF,loadConfigsForDefaultMode:()=>ps,makeBuilder:()=>gs,map:()=>hI,normalizeProvider:()=>we,resolveChecksumRuntimeConfig:()=>Ih,resolveDefaultRuntimeConfig:()=>ms,resolveRetryRuntimeConfig:()=>Ph,schemaLogFilter:()=>Ou,serializeDateTime:()=>sB,serializeFloat:()=>oB,take:()=>tB,throwDefaultError:()=>fI,waiterServiceDefaults:()=>xh,withBaseException:()=>UF});var J=g(()=>{Ah();oe();oe();rF();oF();mF();Th();gF();dI();FF();BF();GF();qF();jF();pI();WF();mI();gI();QF();YF();XF();ZF();nB();cI();iB();aB();cB()});var $u,SI=g(()=>{$u=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]"});var Ao,ea,ta=g(()=>{SI();Ao=(t,e=0,r=t.byteLength-e)=>{if(!$u(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Buffer.from(t,e,r)},ea=(t,e)=>{if(typeof t!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?Buffer.from(t,e):Buffer.from(t)}});var bAe,Xe,uB=g(()=>{ta();bAe=/^[A-Za-z0-9+/]*={0,2}$/,Xe=t=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!bAe.exec(t))throw new TypeError("Invalid base64 string.");let e=ea(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}});var qt,$h=g(()=>{ta();qt=t=>{let e=ea(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)}});var Ie,yI=g(()=>{ta();$h();Ie=t=>{let e;if(typeof t=="string"?e=qt(t):e=t,typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return Ao(e.buffer,e.byteOffset,e.byteLength).toString("base64")}});function lB(t,e,r,n){return class kh extends Uint8Array{static fromString(s,i="utf-8"){if(typeof s=="string")return i==="base64"?kh.mutate(n(s)):kh.mutate(e(s));throw new Error(`Unsupported conversion from ${typeof s} to Uint8ArrayBlobAdapter.`)}static mutate(s){return Object.setPrototypeOf(s,kh.prototype),s}transformToString(s="utf-8"){return s==="base64"?r(this):t(this)}}}var dB=g(()=>{});var ze,pB=g(()=>{ta();ze=t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return Ao(t.buffer,t.byteOffset,t.byteLength).toString("utf8")}});function fB(t){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?()=>crypto.randomUUID():()=>{let e=new Uint8Array(16);return t(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Fr[e[0]]+Fr[e[1]]+Fr[e[2]]+Fr[e[3]]+"-"+Fr[e[4]]+Fr[e[5]]+"-"+Fr[e[6]]+Fr[e[7]]+"-"+Fr[e[8]]+Fr[e[9]]+"-"+Fr[e[10]]+Fr[e[11]]+Fr[e[12]]+Fr[e[13]]+Fr[e[14]]+Fr[e[15]]}}var Fr,mB=g(()=>{Fr=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"))});var gB,hB=g(()=>{gB=(t,e,r=n=>n)=>t});var SB,yB,ku,AAe,Ip,Mu,EB,Mh,Lh,Nh,EI,xAe,_B,_I,RB,Bh,wp,CB,Uh,TAe,Nu,Gh,bB,AB,xB,TB,RI,vB,DB,ra,qh,Fh,Lu,CI=g(()=>{oe();SB=t=>{switch(t){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${t}"`)}},yB=t=>{if(t!=null){if(typeof t=="number"){if((t===0||t===1)&&Lu.warn(Fh(`Expected boolean, got ${typeof t}: ${t}`)),t===0)return!1;if(t===1)return!0}if(typeof t=="string"){let e=t.toLowerCase();if((e==="false"||e==="true")&&Lu.warn(Fh(`Expected boolean, got ${typeof t}: ${t}`)),e==="false")return!1;if(e==="true")return!0}if(typeof t=="boolean")return t;throw new TypeError(`Expected boolean, got ${typeof t}: ${t}`)}},ku=t=>{if(t!=null){if(typeof t=="string"){let e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&Lu.warn(Fh(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},AAe=Math.ceil(2**127*(2-2**-23)),Ip=t=>{let e=ku(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0&&Math.abs(e)>AAe)throw new TypeError(`Expected 32-bit float, got ${t}`);return e},Mu=t=>{if(t!=null){if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)}},EB=Mu,Mh=t=>EI(t,32),Lh=t=>EI(t,16),Nh=t=>EI(t,8),EI=(t,e)=>{let r=Mu(t);if(r!==void 0&&xAe(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},xAe=(t,e)=>{switch(e){case 32:return Int32Array.of(t)[0];case 16:return Int16Array.of(t)[0];case 8:return Int8Array.of(t)[0]}},_B=(t,e)=>{if(t==null)throw e?new TypeError(`Expected a non-null value for ${e}`):new TypeError("Expected a non-null value");return t},_I=t=>{if(t==null)return;if(typeof t=="object"&&!Array.isArray(t))return t;let e=Array.isArray(t)?"array":typeof t;throw new TypeError(`Expected object, got ${e}: ${t}`)},RB=t=>{if(t!=null){if(typeof t=="string")return t;if(["boolean","number","bigint"].includes(typeof t))return Lu.warn(Fh(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)}},Bh=t=>{if(t==null)return;let e=_I(t),r=[];for(let n in e)W(e,n)&&e[n]!=null&&r.push(n);if(r.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(r.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return e},wp=t=>ku(typeof t=="string"?Nu(t):t),CB=wp,Uh=t=>Ip(typeof t=="string"?Nu(t):t),TAe=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Nu=t=>{let e=t.match(TAe);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},Gh=t=>typeof t=="string"?TB(t):ku(t),bB=Gh,AB=Gh,xB=t=>typeof t=="string"?TB(t):Ip(t),TB=t=>{switch(t){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${t}`)}},RI=t=>Mu(typeof t=="string"?Nu(t):t),vB=RI,DB=t=>Mh(typeof t=="string"?Nu(t):t),ra=t=>Lh(typeof t=="string"?Nu(t):t),qh=t=>Nh(typeof t=="string"?Nu(t):t),Fh=t=>String(new TypeError(t).stack||t).split(`
|
|
8
|
+
More information can be found at: https://a.co/c895JFp`))}}});var aAe,cAe,G3,q3=g(()=>{aAe=()=>(t,e)=>async r=>(e.__retryLongPoll=!0,t(r)),cAe={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},G3=t=>({applyToStack:e=>{e.add(aAe(),cAe)}})});function Yi(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var H3=g(()=>{});var j3,GD,z3=g(()=>{j3=require("node:stream"),GD=t=>t?.body instanceof j3.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream});var hc,Ji,Xi,V3,W3,Ah=g(()=>{hc=(t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},Ji=(t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,Xi=()=>{let t=[],e=[],r=!1,n=new Set,o=m=>m.sort((y,_)=>V3[_.step]-V3[y.step]||W3[_.priority||"normal"]-W3[y.priority||"normal"]),s=m=>{let y=!1,_=C=>{let A=hc(C.name,C.aliases);if(A.includes(m)){y=!0;for(let x of A)n.delete(x);return!1}return!0};return t=t.filter(_),e=e.filter(_),y},i=m=>{let y=!1,_=C=>{if(C.middleware===m){y=!0;for(let A of hc(C.name,C.aliases))n.delete(A);return!1}return!0};return t=t.filter(_),e=e.filter(_),y},a=m=>(t.forEach(y=>{m.add(y.middleware,{...y})}),e.forEach(y=>{m.addRelativeTo(y.middleware,{...y})}),m.identifyOnResolve?.(f.identifyOnResolve()),m),c=m=>{let y=[];return m.before.forEach(_=>{_.before.length===0&&_.after.length===0?y.push(_):y.push(...c(_))}),y.push(m),m.after.reverse().forEach(_=>{_.before.length===0&&_.after.length===0?y.push(_):y.push(...c(_))}),y},u=(m=!1)=>{let y=[],_=[],C={};return t.forEach(x=>{let T={...x,before:[],after:[]};for(let I of hc(T.name,T.aliases))C[I]=T;y.push(T)}),e.forEach(x=>{let T={...x,before:[],after:[]};for(let I of hc(T.name,T.aliases))C[I]=T;_.push(T)}),_.forEach(x=>{if(x.toMiddleware){let T=C[x.toMiddleware];if(T===void 0){if(m)return;throw new Error(`${x.toMiddleware} is not found when adding ${Ji(x.name,x.aliases)} middleware ${x.relation} ${x.toMiddleware}`)}x.relation==="after"&&T.after.push(x),x.relation==="before"&&T.before.push(x)}}),o(y).map(c).reduce((x,T)=>(x.push(...T),x),[])},f={add:(m,y={})=>{let{name:_,override:C,aliases:A}=y,x={step:"initialize",priority:"normal",middleware:m,...y},T=hc(_,A);if(T.length>0){if(T.some(I=>n.has(I))){if(!C)throw new Error(`Duplicate middleware name '${Ji(_,A)}'`);for(let I of T){let q=t.findIndex(me=>me.name===I||me.aliases?.some(et=>et===I));if(q===-1)continue;let H=t[q];if(H.step!==x.step||x.priority!==H.priority)throw new Error(`"${Ji(H.name,H.aliases)}" middleware with ${H.priority} priority in ${H.step} step cannot be overridden by "${Ji(_,A)}" middleware with ${x.priority} priority in ${x.step} step.`);t.splice(q,1)}}for(let I of T)n.add(I)}t.push(x)},addRelativeTo:(m,y)=>{let{name:_,override:C,aliases:A}=y,x={middleware:m,...y},T=hc(_,A);if(T.length>0){if(T.some(I=>n.has(I))){if(!C)throw new Error(`Duplicate middleware name '${Ji(_,A)}'`);for(let I of T){let q=e.findIndex(me=>me.name===I||me.aliases?.some(et=>et===I));if(q===-1)continue;let H=e[q];if(H.toMiddleware!==x.toMiddleware||H.relation!==x.relation)throw new Error(`"${Ji(H.name,H.aliases)}" middleware ${H.relation} "${H.toMiddleware}" middleware cannot be overridden by "${Ji(_,A)}" middleware ${x.relation} "${x.toMiddleware}" middleware.`);e.splice(q,1)}}for(let I of T)n.add(I)}e.push(x)},clone:()=>a(Xi()),use:m=>{m.applyToStack(f)},remove:m=>typeof m=="string"?s(m):i(m),removeByTag:m=>{let y=!1,_=C=>{let{tags:A,name:x,aliases:T}=C;if(A&&A.includes(m)){let I=hc(x,T);for(let q of I)n.delete(q);return y=!0,!1}return!0};return t=t.filter(_),e=e.filter(_),y},concat:m=>{let y=a(Xi());return y.use(m),y.identifyOnResolve(r||y.identifyOnResolve()||(m.identifyOnResolve?.()??!1)),y},applyToStack:a,identify:()=>u(!0).map(m=>{let y=m.step??m.relation+" "+m.toMiddleware;return Ji(m.name,m.aliases)+" - "+y}),identifyOnResolve(m){return typeof m=="boolean"&&(r=m),r},resolve:(m,y)=>{for(let _ of u().map(C=>C.middleware).reverse())m=_(m,y);return r&&console.log(f.identify()),m}};return f},V3={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},W3={high:3,normal:2,low:1}});var Eo=st(yo=>{var qD;(function(t){t.HEADER="header",t.QUERY="query"})(qD||(qD={}));var HD;(function(t){t.HEADER="header",t.QUERY="query"})(HD||(HD={}));var jD;(function(t){t.HTTP="http",t.HTTPS="https"})(jD||(jD={}));var hp;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(hp||(hp={}));var uAe=t=>{let e=[];return t.sha256!==void 0&&e.push({algorithmId:()=>hp.SHA256,checksumConstructor:()=>t.sha256}),t.md5!=null&&e.push({algorithmId:()=>hp.MD5,checksumConstructor:()=>t.md5}),{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},lAe=t=>{let e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},dAe=t=>uAe(t),pAe=t=>lAe(t),zD;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(zD||(zD={}));var fAe="__smithy_context",VD;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(VD||(VD={}));var WD;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(WD||(WD={}));yo.AlgorithmId=hp;yo.EndpointURLScheme=jD;yo.FieldPosition=zD;yo.HttpApiKeyAuthLocation=HD;yo.HttpAuthLocation=qD;yo.IniSectionType=VD;yo.RequestHandlerProtocol=WD;yo.SMITHY_CONTEXT_KEY=fAe;yo.getDefaultClientConfiguration=dAe;yo.resolveDefaultRuntimeConfig=pAe});var KD,Le,K3=g(()=>{KD=De(Eo()),Le=t=>t[KD.SMITHY_CONTEXT_KEY]||(t[KD.SMITHY_CONTEXT_KEY]={})});function W(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var QD=g(()=>{});function mAe(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}var re,Q3=g(()=>{re=class t{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){let r=new t({...e,headers:{...e.headers}});return r.query&&(r.query=mAe(r.query)),r}static isInstance(e){if(!e)return!1;let r=e;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){return t.clone(this)}}});var ft,Y3=g(()=>{ft=class{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;let r=e;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}});var gAe,_o,J3=g(()=>{gAe=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),_o=(t,e=!1)=>{if(!e)return gAe.test(t);let r=t.split(".");for(let n of r)if(!_o(n))return!1;return!0}});function Sp(t){return/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)}var X3=g(()=>{});var we,Z3=g(()=>{we=t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e}});function yp(t){let e={};if(t=t.replace(/^\?/,""),t)for(let r of t.split("&")){let[n,o=null]=r.split("=");n=decodeURIComponent(n),o&&(o=decodeURIComponent(o)),n in e?Array.isArray(e[n])?e[n].push(o):e[n]=[e[n],o]:e[n]=o}return e}var YD=g(()=>{});var Cr,JD=g(()=>{YD();Cr=t=>{if(typeof t=="string")return Cr(new URL(t));let{hostname:e,pathname:r,port:n,protocol:o,search:s}=t,i;return s&&(i=yp(s)),{hostname:e,port:n?parseInt(n):void 0,protocol:o,path:r,query:i}}});var vn,eF=g(()=>{QD();JD();vn=t=>{if(typeof t=="object"){if("url"in t){let e=Cr(t.url);if(t.headers){e.headers={};for(let r in t.headers)W(t.headers,r)&&(e.headers[r.toLowerCase()]=t.headers[r].join(", "))}return e}return t}return Cr(t)}});var oe=g(()=>{K3();QD();Q3();Y3();J3();X3();Z3();YD();JD();eF()});var tF,rF=g(()=>{tF=t=>()=>{throw new Error(t)}});var nF,oF=g(()=>{nF=t=>()=>Promise.reject(t)});var Iu,XD=g(()=>{Iu=()=>{let t=new WeakSet;return(e,r)=>{if(typeof r=="object"&&r!==null){if(t.has(r))return"[Circular]";t.add(r)}return r}}});var sF,iF=g(()=>{sF=t=>new Promise(e=>setTimeout(e,t*1e3))});var xh,Dn,aF,Th=g(()=>{XD();xh={minDelay:2,maxDelay:120};(function(t){t.ABORTED="ABORTED",t.FAILURE="FAILURE",t.SUCCESS="SUCCESS",t.RETRY="RETRY",t.TIMEOUT="TIMEOUT"})(Dn||(Dn={}));aF=t=>{if(t.state===Dn.ABORTED){let e=new Error(`${JSON.stringify({...t,reason:"Request was aborted"},Iu())}`);throw e.name="AbortError",e}else if(t.state===Dn.TIMEOUT){let e=new Error(`${JSON.stringify({...t,reason:"Waiter has timed out"},Iu())}`);throw e.name="TimeoutError",e}else if(t.state!==Dn.SUCCESS)throw new Error(`${JSON.stringify(t,Iu())}`);return t}});var cF,hAe,SAe,yAe,EAe,uF=g(()=>{XD();iF();Th();cF=async({minDelay:t,maxDelay:e,maxWaitTime:r,abortController:n,client:o,abortSignal:s},i,a)=>{let c={},[u,f]=[t*1e3,e*1e3],m=0,y=Date.now()+r*1e3,_=Date.now()+6e4,C=!1;for(;;){if(m>0){let T=yAe(u,f,m,y);if(n?.signal?.aborted||s?.aborted){let I="AbortController signal aborted.";return c[I]|=0,c[I]+=1,{state:Dn.ABORTED,observedResponses:c}}if(Date.now()+T>y)return{state:Dn.TIMEOUT,observedResponses:c};await sF(T/1e3)}let{state:A,reason:x}=await a(o,i);if(x){let T=SAe(x);c[T]|=0,c[T]+=1}if(A!==Dn.RETRY)return{state:A,reason:x,final:x,observedResponses:c};m+=1,!C&&Date.now()>=_&&(hAe(c,o),C=!0)}},hAe=(t={},e)=>{let r=Object.keys(t),n=0,o=0;for(let a of r){let c=t[a]|0;n=Math.max(c,n),a.startsWith("403:")&&(o+=c)}let s=e?.config?.logger,i=typeof s?.warn=="function"&&!s.constructor?.name?.includes?.("NoOpLogger")?s:console;(o>=3||r[r.length-1]?.startsWith("403:"))&&i.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},SAe=t=>{let e=t?.$response?.statusCode??t?.$metadata?.httpStatusCode;return t?.$responseBodyText?`${e?e+": ":""}Deserialization error for body: ${t.$responseBodyText}`:e?t?.$response||t?.message?`${e??"Unknown"}: ${t?.message}`:`${e}: OK`:String(t?.message??JSON.stringify(t,Iu())??"Unknown")},yAe=(t,e,r,n)=>{let o=Math.log(e/t)/Math.log(2)+1;if(r>o)return e;let s=t*2**(r-1),i=Math.min(s,e),a=EAe(t,i);if(Date.now()+a>n){let c=n-Date.now();return Math.max(0,c-500)}return a},EAe=(t,e)=>t+Math.random()*(e-t)});var lF,dF=g(()=>{lF=t=>{if(t.maxWaitTime<=0)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(t.minDelay<=0)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(t.maxDelay<=0)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(t.maxWaitTime<=t.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${t.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${t.minDelay}] for this waiter`);if(t.maxDelay<t.minDelay)throw new Error(`WaiterConfiguration.maxDelay [${t.maxDelay}] must be greater than WaiterConfiguration.minDelay [${t.minDelay}] for this waiter`)}});var pF,fF,mF=g(()=>{uF();dF();Th();pF=t=>{let e,r=new Promise(n=>{e=()=>n({state:Dn.ABORTED}),typeof t.addEventListener=="function"?t.addEventListener("abort",e):t.onabort=e});return{clearListener(){typeof t.removeEventListener=="function"&&t.removeEventListener("abort",e)},aborted:r}},fF=async(t,e,r)=>{let n={...xh,...t};lF(n);let o=[cF(n,e,r)],s=[];if(t.abortSignal){let{aborted:i,clearListener:a}=pF(t.abortSignal);s.push(a),o.push(i)}if(t.abortController?.signal){let{aborted:i,clearListener:a}=pF(t.abortController.signal);s.push(a),o.push(i)}return Promise.race(o).then(i=>{for(let a of s)a();return i})}});var Lr,gF=g(()=>{Ah();Lr=class{config;middlewareStack=Xi();initConfig;handlers;constructor(e){this.config=e;let{protocol:r,protocolSettings:n}=e;n&&typeof r=="function"&&(e.protocol=new r(n))}send(e,r,n){let o=typeof r!="function"?r:void 0,s=typeof r=="function"?r:n,i=o===void 0&&this.config.cacheMiddleware===!0,a;if(i){this.handlers||(this.handlers=new WeakMap);let c=this.handlers;c.has(e.constructor)?a=c.get(e.constructor):(a=e.resolveMiddleware(this.middlewareStack,this.config,o),c.set(e.constructor,a))}else delete this.handlers,a=e.resolveMiddleware(this.middlewareStack,this.config,o);if(s)a(e).then(c=>s(null,c.output),c=>s(c)).catch(()=>{});else return a(e).then(c=>c.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}});var gn,ZD=g(()=>{gn=t=>typeof t=="function"?t():t});var wu,vh=g(()=>{wu=(t,e,r,n,o)=>({name:e,namespace:t,traits:r,input:n,output:o})});var hF,eI,SF=g(()=>{oe();vh();hF=t=>(e,r)=>async n=>{let{response:o}=await e(n),{operationSchema:s}=Le(r),[,i,a,c,u,f]=s??[];try{let m=await t.protocol.deserializeResponse(wu(i,a,c,u,f),{...t,...r},o);return{response:o,output:m}}catch(m){if(Object.defineProperty(m,"$response",{value:o,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in m)){let y="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{m.message+=`
|
|
9
|
+
`+y}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(y):r.logger?.warn?.(y)}typeof m.$responseBodyText<"u"&&m.$response&&(m.$response.body=m.$responseBodyText);try{if(ft.isInstance(o)){let{headers:_={},statusCode:C}=o,A=Object.entries(_);m.$metadata={httpStatusCode:C,requestId:eI(/^x-[\w-]+-request-?id$/,A),extendedRequestId:eI(/^x-[\w-]+-id-2$/,A),cfId:eI(/^x-[\w-]+-cf-id$/,A)}}}catch{}}throw m}},eI=(t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1]});var yF,EF=g(()=>{oe();vh();yF=t=>(e,r)=>async n=>{let{operationSchema:o}=Le(r),[,s,i,a,c,u]=o??[],f=r.endpointV2?async()=>vn(r.endpointV2):t.endpoint,m=await t.protocol.serializeRequest(wu(s,i,a,c,u),n.input,{...t,...r,endpoint:f});return e({...n,request:m})}});function ls(t){return{applyToStack:e=>{e.add(yF(t),rI),e.add(hF(t),tI),t.protocol.setSerdeContext(t)}}}var tI,rI,_F=g(()=>{SF();EF();tI={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},rI={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});var mt,Zi=g(()=>{mt=class{name;namespace;traits;static assign(e,r){return Object.assign(e,r)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}getName(){return this.namespace+"#"+this.name}}});var Ep,RF,CF=g(()=>{Zi();Ep=class t extends mt{static symbol=Symbol.for("@smithy/lis");valueSchema;symbol=t.symbol},RF=(t,e,r,n)=>mt.assign(new Ep,{name:e,namespace:t,traits:r,valueSchema:n})});var _p,bF,AF=g(()=>{Zi();_p=class t extends mt{static symbol=Symbol.for("@smithy/map");keySchema;valueSchema;symbol=t.symbol},bF=(t,e,r,n,o)=>mt.assign(new _p,{name:e,namespace:t,traits:r,keySchema:n,valueSchema:o})});var Rp,xF,TF=g(()=>{Zi();Rp=class t extends mt{static symbol=Symbol.for("@smithy/ope");input;output;symbol=t.symbol},xF=(t,e,r,n,o)=>mt.assign(new Rp,{name:e,namespace:t,traits:r,input:n,output:o})});var Sc,vF,nI=g(()=>{Zi();Sc=class t extends mt{static symbol=Symbol.for("@smithy/str");memberNames;memberList;symbol=t.symbol},vF=(t,e,r,n,o)=>mt.assign(new Sc,{name:e,namespace:t,traits:r,memberNames:n,memberList:o})});var Cp,DF,IF=g(()=>{Zi();nI();Cp=class t extends Sc{static symbol=Symbol.for("@smithy/err");ctor;symbol=t.symbol},DF=(t,e,r,n,o,s)=>mt.assign(new Cp,{name:e,namespace:t,traits:r,memberNames:n,memberList:o,ctor:null})});function Ro(t){if(typeof t=="object")return t;if(t=t|0,bp[t])return bp[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return bp[t]=e}var bp,oI=g(()=>{bp=[]});function xp(t,e){if(t instanceof B)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=B;return new r(t,e)}var Ap,Tp,vp,B,sI,iI,wF=g(()=>{ZD();oI();Ap={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},Tp=[],vp={},B=class t{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=t.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,r){this.ref=e,this.memberName=r;let n=[],o=e,s=e;for(this._isMemberSchema=!1;sI(o);)n.push(o[1]),o=o[0],s=gn(o),this._isMemberSchema=!0;if(n.length>0){this.memberTraits={};for(let i=n.length-1;i>=0;--i){let a=n[i];Object.assign(this.memberTraits,Ro(a))}}else this.memberTraits=0;if(s instanceof t){let i=this.memberTraits;Object.assign(this,s),this.memberTraits=Object.assign({},i,s.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??s.memberName;return}if(this.schema=gn(s),iI(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(s),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}static of(e){let r=typeof e=="function"||typeof e=="object"&&e!==null;if(typeof e=="number"){if(Tp[e])return Tp[e]}else if(typeof e=="string"){if(vp[e])return vp[e]}else if(r&&e[Ap.ns])return e[Ap.ns];let n=gn(e);if(n instanceof t)return n;if(sI(n)){let[s,i]=n;if(s instanceof t)return Object.assign(s.getMergedTraits(),Ro(i)),s;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}let o=new t(n);return r?e[Ap.ns]=o:typeof n=="string"?vp[n]=o:typeof n=="number"?Tp[n]=o:o}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:r}=this;return!e&&r&&r.includes("#")?r.split("#")[1]:r||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e=="number"?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e=="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!="object")return!1;let r=e[0];return r===3||r===-3||r===4}isUnionSchema(){let e=this.getSchema();return typeof e!="object"?!1:e[0]===4}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e=="number"&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return Ro(this.memberTraits)}getOwnTraits(){return Ro(this.traits)}getKeySchema(){let[e,r]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!r)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema(),o=e?15:n[4]??0;return xp([o,0],"key")}getValueSchema(){let e=this.getSchema(),[r,n,o]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],s=typeof e=="number"?63&e:e&&typeof e=="object"&&(n||o)?e[3+e[0]]:r?15:void 0;if(s!=null)return xp([s,0],n?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let r=this.getSchema();if(this.isStructSchema()&&r[4].includes(e)){let n=r[4].indexOf(e),o=r[5][n];return xp(sI(o)?o:[o,0],e)}if(this.isDocumentSchema())return xp([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[r,n]of this.structIterator())e[r]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,r]of this.structIterator())if(r.isStreaming()&&r.isStructSchema())return e}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");let e=this.getSchema(),r=e[4].length,n=e[Ap.it];if(n&&r===n.length){yield*n;return}n=Array(r);for(let o=0;o<r;++o){let s=e[4][o],i=xp([e[5][o],0],s);yield n[o]=[s,i]}e[Ap.it]=n}};sI=t=>Array.isArray(t)&&t.length===2,iI=t=>Array.isArray(t)&&t.length>=5});var Pu,PF,OF,$F=g(()=>{Zi();Pu=class t extends mt{static symbol=Symbol.for("@smithy/sim");schemaRef;symbol=t.symbol},PF=(t,e,r,n)=>mt.assign(new Pu,{name:e,namespace:t,traits:n,schemaRef:r}),OF=(t,e,r,n)=>mt.assign(new Pu,{name:e,namespace:t,traits:r,schemaRef:n})});var kF,MF=g(()=>{kF={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128}});var Fe,LF=g(()=>{Fe=class t{namespace;schemas;exceptions;static registries=new Map;constructor(e,r=new Map,n=new Map){this.namespace=e,this.schemas=r,this.exceptions=n,t.registries.has(e)||t.registries.set(e,this)}static for(e){return t.registries.get(e)??new t(e)}copyFrom(e){let{schemas:r,exceptions:n}=this;for(let[o,s]of e.schemas)r.has(o)||r.set(o,s);for(let[o,s]of e.exceptions)n.has(o)||n.set(o,s)}register(e,r){let n=this.normalizeShapeId(e);for(let o of[this,t.for(n.split("#")[0])])o.schemas.has(n)||o.schemas.set(n,r)}getSchema(e){let r=this.normalizeShapeId(e);if(!this.schemas.has(r)){if(!e.includes("#")){let n="#"+e,o=[];for(let[s,i]of this.schemas.entries())s.endsWith(n)&&o.push(i);if(o.length===1)return o[0]}throw new Error(`@smithy/core/schema - schema not found for ${r}`)}return this.schemas.get(r)}registerError(e,r){let n=e,o=n[1],s=o+"#"+n[2];r.hasOwnProperty?.("shapeId")||(r.shapeId=s);for(let i of[this,t.for(o)])!i.schemas.has(s)&&!i.exceptions.has(n)&&(i.schemas.set(s,n),i.exceptions.set(n,r))}getErrorCtor(e){let r=e;return this.exceptions.has(r)?this.exceptions.get(r):t.for(r[1]).exceptions.get(r)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,r,n]=e,o=r+"#"+n;if(o.startsWith("smithy.ts.sdk.synthetic.")&&o.endsWith("ServiceException"))return e}}find(e){for(let r of this.schemas.values())if(e(r))return r}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}});var Dp={};Ct(Dp,{ErrorSchema:()=>Cp,ListSchema:()=>Ep,MapSchema:()=>_p,NormalizedSchema:()=>B,OperationSchema:()=>Rp,SCHEMA:()=>kF,Schema:()=>mt,SimpleSchema:()=>Pu,StructureSchema:()=>Sc,TypeRegistry:()=>Fe,deref:()=>gn,deserializerMiddlewareOption:()=>tI,error:()=>DF,getSchemaSerdePlugin:()=>ls,isStaticSchema:()=>iI,list:()=>RF,map:()=>bF,op:()=>xF,operation:()=>wu,serializerMiddlewareOption:()=>rI,sim:()=>PF,simAdapter:()=>OF,simpleSchemaCacheN:()=>Tp,simpleSchemaCacheS:()=>vp,struct:()=>vF,traitsCache:()=>bp,translateTraits:()=>Ro});var ae=g(()=>{ZD();_F();CF();AF();TF();vh();IF();wF();Zi();$F();nI();MF();oI();LF()});function Ou(t,e){if(e==null)return e;let r=B.of(t);if(r.getMergedTraits().sensitive)return aI;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return aI}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return aI}else if(r.isStructSchema()&&typeof e=="object"){let n=e,o={};for(let[s,i]of r.structIterator())n[s]!=null&&(o[s]=Ou(i,n[s]));return o}return e}var aI,cI=g(()=>{ae();aI="***SensitiveInformation***"});var uI,Zr,lI,dI=g(()=>{uI=De(Eo());Ah();cI();Zr=class{middlewareStack=Xi();schema;static classBuilder(){return new lI}resolveMiddlewareWithContext(e,r,n,{middlewareFn:o,clientName:s,commandName:i,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,smithyContext:u,additionalContext:f,CommandCtor:m}){for(let I of o.bind(this)(m,e,r,n))this.middlewareStack.use(I);let y=e.concat(this.middlewareStack),{logger:_}=r,C=f[uI.SMITHY_CONTEXT_KEY],A={logger:_,clientName:s,commandName:i,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,...f,[uI.SMITHY_CONTEXT_KEY]:{...C,commandInstance:this,...u,...n?.metricsRecorder===void 0?{}:{metricsRecorder:n.metricsRecorder}}},{requestHandler:x}=r,T=n??{};return T.metricsRecorder&&(T={...T},delete T.metricsRecorder),u.eventStream&&(T={isEventStream:!0,...T}),y.resolve(I=>x.handle(I.request,T),A)}},lI=class{_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,r,n={}){return this._smithyContext={service:e,operation:r,...n},this}c(e={}){return this._additionalContext=e,this}n(e,r){return this._clientName=e,this._commandName=r,this}f(e=n=>n,r=n=>n){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=r,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(){let e=this,r;return r=class extends Zr{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[n]){super(),this.input=n??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,o,s){let i=e._operationSchema,a=i?.[4]??i?.input,c=i?.[5]??i?.output;return this.resolveMiddlewareWithContext(n,o,s,{CommandCtor:r,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(i?Ou.bind(null,a):u=>u),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(i?Ou.bind(null,c):u=>u),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}});var NF,FF=g(()=>{NF="***SensitiveInformation***"});var ds,BF=g(()=>{ds=(t,e,r)=>{for(let[s,i]of Object.entries(t)){let a=async function(u,f,m){let y=new i(u);if(typeof f=="function")this.send(y,f);else if(typeof m=="function"){if(typeof f!="object")throw new Error(`Expected http options but got ${typeof f}`);this.send(y,f||{},m)}else return this.send(y,f)},c=(s[0].toLowerCase()+s.slice(1)).replace(/Command$/,"");e.prototype[c]=a}let{paginators:n={},waiters:o={}}=r??{};for(let[s,i]of Object.entries(n))e.prototype[s]===void 0&&(e.prototype[s]=function(a={},c,...u){return i({...c,client:this},a,...u)});for(let[s,i]of Object.entries(o))e.prototype[s]===void 0&&(e.prototype[s]=async function(a={},c,...u){let f=c;return typeof c=="number"&&(f={maxWaitTime:c}),i({...f,client:this},a,...u)})}});var zn,yc,pI=g(()=>{zn=class t extends Error{static shapeId="smithy.ts.sdk.synthetic.nonamespace.client#ServiceException";$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;let r=e;return t.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return!1;let r=e;if(this===t)return t.isInstance(e);if(t.isInstance(e)){if(this.prototype.isPrototypeOf(e))return!0;let n=Object.prototype.hasOwnProperty.call(this,"shapeId")?this.shapeId:void 0,o=!1;if(n){let i=Object.getPrototypeOf(r);for(;i&&i!==Object.prototype;){let a=i.constructor,c=a!==t&&Object.prototype.hasOwnProperty.call(a,"shapeId")?a?.shapeId:void 0;if(c&&(o=!0,c===n))return!0;i=Object.getPrototypeOf(i)}}if(n&&o)return!1;let s=this.name;if(s&&s.length>=6){if(r.name===s)return!0;let i=Object.getPrototypeOf(r);for(;i&&i!==Object.prototype;){let a=i.constructor?.name;if(a&&a!=="Error"&&a===s)return!0;i=Object.getPrototypeOf(i)}}}return!1}},yc=(t,e={})=>{Object.entries(e).filter(([,n])=>n!==void 0).forEach(([n,o])=>{(t[n]==null||t[n]==="")&&(t[n]=o)});let r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t}});var fI,UF,_Ae,GF=g(()=>{pI();fI=({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{let o=_Ae(t),s=o.httpStatusCode?o.httpStatusCode+"":void 0,i=new r({name:e?.code||e?.Code||n||s||"UnknownError",$fault:"client",$metadata:o});throw yc(i,e)},UF=t=>({output:e,parsedBody:r,errorCode:n})=>{fI({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})},_Ae=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]})});var ps,qF=g(()=>{ps=t=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}}});var HF,fs,jF=g(()=>{HF=!1,fs=t=>{t&&!HF&&parseInt(t.substring(1,t.indexOf(".")))<16&&(HF=!0)}});var Ec,zF,Dh,Ih,mI=g(()=>{oe();Ec=De(Eo()),zF=Object.values(Ec.AlgorithmId),Dh=t=>{let e=[];for(let r in Ec.AlgorithmId){if(!W(Ec.AlgorithmId,r))continue;let n=Ec.AlgorithmId[r];t[n]!==void 0&&e.push({algorithmId:()=>n,checksumConstructor:()=>t[n]})}for(let[r,n]of Object.entries(t.checksumAlgorithms??{}))e.push({algorithmId:()=>r,checksumConstructor:()=>n});return{addChecksumAlgorithm(r){t.checksumAlgorithms=t.checksumAlgorithms??{};let n=r.algorithmId(),o=r.checksumConstructor();zF.includes(n)?t.checksumAlgorithms[n.toUpperCase()]=o:t.checksumAlgorithms[n]=o,e.push(r)},checksumAlgorithms(){return e}}},Ih=t=>{let e={};return t.checksumAlgorithms().forEach(r=>{let n=r.algorithmId();zF.includes(n)&&(e[n]=r.checksumConstructor())}),e}});var wh,Ph,gI=g(()=>{wh=t=>({setRetryStrategy(e){t.retryStrategy=e},retryStrategy(){return t.retryStrategy}}),Ph=t=>{let e={};return e.retryStrategy=t.retryStrategy(),e}});var Co,VF,ms,WF=g(()=>{mI();gI();Co=t=>Object.assign(Dh(t),wh(t)),VF=Co,ms=t=>Object.assign(Ih(t),Ph(t))});var KF,QF=g(()=>{KF=t=>Array.isArray(t)?t:[t]});var _c,YF=g(()=>{oe();_c=t=>{let e="#text";for(let r in t)W(t,r)&&(t[r][e]!==void 0?t[r]=t[r][e]:typeof t[r]=="object"&&t[r]!==null&&(t[r]=_c(t[r])));return t}});var JF,XF=g(()=>{JF=t=>t!=null});var Nr,ZF=g(()=>{Nr=class{trace(){}debug(){}info(){}warn(){}error(){}}});function hI(t,e,r){let n,o,s;if(typeof e>"u"&&typeof r>"u")n={},s=t;else{if(n=t,typeof e=="function")return o=e,s=r,RAe(n,o,s);s=e}for(let i in s)if(W(s,i)){if(!Array.isArray(s[i])){n[i]=s[i];continue}rB(n,null,s,i)}return n}var eB,tB,RAe,rB,CAe,bAe,nB=g(()=>{oe();eB=t=>{let e={};for(let[r,n]of Object.entries(t||{}))e[r]=[,n];return e},tB=(t,e)=>{let r={};for(let n in e)W(e,n)&&rB(r,t,e,n);return r},RAe=(t,e,r)=>hI(t,Object.entries(r).reduce((n,[o,s])=>(Array.isArray(s)?n[o]=s:typeof s=="function"?n[o]=[e,s()]:n[o]=[e,s],n),{})),rB=(t,e,r,n)=>{if(e!==null){let i=r[n];typeof i=="function"&&(i=[,i]);let[a=CAe,c=bAe,u=n]=i;(typeof a=="function"&&a(e[u])||typeof a!="function"&&a)&&(t[n]=c(e[u]));return}let[o,s]=r[n];if(typeof s=="function"){let i,a=o===void 0&&(i=s())!=null,c=typeof o=="function"&&!!o(void 0)||typeof o!="function"&&!!o;a?t[n]=i:c&&(t[n]=s())}else{let i=o===void 0&&s!=null,a=typeof o=="function"&&!!o(s)||typeof o!="function"&&!!o;(i||a)&&(t[n]=s)}},CAe=t=>t!=null,bAe=t=>t});var oB,sB,iB=g(()=>{oB=t=>{if(t!==t)return"NaN";switch(t){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return t}},sB=t=>t.toISOString().replace(".000Z","Z")});var Oh,aB=g(()=>{oe();Oh=t=>{if(t==null)return{};if(Array.isArray(t))return t.filter(e=>e!=null).map(Oh);if(typeof t=="object"){let e={};for(let r in t)W(t,r)&&t[r]!=null&&(e[r]=Oh(t[r]));return e}return t}});function gs(t,e,r,n){return function(s,i,a,c,u={}){let f=Object.assign({},t,s);return Zr.classBuilder().ep(f).m(function(m,y,_,C){let A=i.call(this,m,y,_,C);return A.unshift(n(_,m.getEndpointParameterInstructions())),A}).s(e,a,u).n(r,a.charAt(0).toUpperCase()+a.slice(1)+"Command").sc(c).build()}}var cB=g(()=>{dI()});var bo={};Ct(bo,{AlgorithmId:()=>Ec.AlgorithmId,Client:()=>Lr,Command:()=>Zr,NoOpLogger:()=>Nr,SENSITIVE_STRING:()=>NF,ServiceException:()=>zn,WaiterState:()=>Dn,_json:()=>Oh,checkExceptions:()=>aF,constructStack:()=>Xi,convertMap:()=>eB,createAggregatedClient:()=>ds,createWaiter:()=>fF,decorateServiceException:()=>yc,emitWarningIfUnsupportedVersion:()=>fs,getArrayIfSingleItem:()=>KF,getChecksumConfiguration:()=>Dh,getDefaultClientConfiguration:()=>VF,getDefaultExtensionConfiguration:()=>Co,getRetryConfiguration:()=>wh,getSmithyContext:()=>Le,getValueFromTextNode:()=>_c,invalidFunction:()=>tF,invalidProvider:()=>nF,isSerializableHeaderValue:()=>JF,loadConfigsForDefaultMode:()=>ps,makeBuilder:()=>gs,map:()=>hI,normalizeProvider:()=>we,resolveChecksumRuntimeConfig:()=>Ih,resolveDefaultRuntimeConfig:()=>ms,resolveRetryRuntimeConfig:()=>Ph,schemaLogFilter:()=>Ou,serializeDateTime:()=>sB,serializeFloat:()=>oB,take:()=>tB,throwDefaultError:()=>fI,waiterServiceDefaults:()=>xh,withBaseException:()=>UF});var J=g(()=>{Ah();oe();oe();rF();oF();mF();Th();gF();dI();FF();BF();GF();qF();jF();pI();WF();mI();gI();QF();YF();XF();ZF();nB();cI();iB();aB();cB()});var $u,SI=g(()=>{$u=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]"});var Ao,ea,ta=g(()=>{SI();Ao=(t,e=0,r=t.byteLength-e)=>{if(!$u(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Buffer.from(t,e,r)},ea=(t,e)=>{if(typeof t!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?Buffer.from(t,e):Buffer.from(t)}});var AAe,Xe,uB=g(()=>{ta();AAe=/^[A-Za-z0-9+/]*={0,2}$/,Xe=t=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!AAe.exec(t))throw new TypeError("Invalid base64 string.");let e=ea(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}});var qt,$h=g(()=>{ta();qt=t=>{let e=ea(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)}});var Ie,yI=g(()=>{ta();$h();Ie=t=>{let e;if(typeof t=="string"?e=qt(t):e=t,typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return Ao(e.buffer,e.byteOffset,e.byteLength).toString("base64")}});function lB(t,e,r,n){return class kh extends Uint8Array{static fromString(s,i="utf-8"){if(typeof s=="string")return i==="base64"?kh.mutate(n(s)):kh.mutate(e(s));throw new Error(`Unsupported conversion from ${typeof s} to Uint8ArrayBlobAdapter.`)}static mutate(s){return Object.setPrototypeOf(s,kh.prototype),s}transformToString(s="utf-8"){return s==="base64"?r(this):t(this)}}}var dB=g(()=>{});var ze,pB=g(()=>{ta();ze=t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return Ao(t.buffer,t.byteOffset,t.byteLength).toString("utf8")}});function fB(t){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?()=>crypto.randomUUID():()=>{let e=new Uint8Array(16);return t(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Fr[e[0]]+Fr[e[1]]+Fr[e[2]]+Fr[e[3]]+"-"+Fr[e[4]]+Fr[e[5]]+"-"+Fr[e[6]]+Fr[e[7]]+"-"+Fr[e[8]]+Fr[e[9]]+"-"+Fr[e[10]]+Fr[e[11]]+Fr[e[12]]+Fr[e[13]]+Fr[e[14]]+Fr[e[15]]}}var Fr,mB=g(()=>{Fr=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"))});var gB,hB=g(()=>{gB=(t,e,r=n=>n)=>t});var SB,yB,ku,xAe,Ip,Mu,EB,Mh,Lh,Nh,EI,TAe,_B,_I,RB,Bh,wp,CB,Uh,vAe,Nu,Gh,bB,AB,xB,TB,RI,vB,DB,ra,qh,Fh,Lu,CI=g(()=>{oe();SB=t=>{switch(t){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${t}"`)}},yB=t=>{if(t!=null){if(typeof t=="number"){if((t===0||t===1)&&Lu.warn(Fh(`Expected boolean, got ${typeof t}: ${t}`)),t===0)return!1;if(t===1)return!0}if(typeof t=="string"){let e=t.toLowerCase();if((e==="false"||e==="true")&&Lu.warn(Fh(`Expected boolean, got ${typeof t}: ${t}`)),e==="false")return!1;if(e==="true")return!0}if(typeof t=="boolean")return t;throw new TypeError(`Expected boolean, got ${typeof t}: ${t}`)}},ku=t=>{if(t!=null){if(typeof t=="string"){let e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&Lu.warn(Fh(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},xAe=Math.ceil(2**127*(2-2**-23)),Ip=t=>{let e=ku(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0&&Math.abs(e)>xAe)throw new TypeError(`Expected 32-bit float, got ${t}`);return e},Mu=t=>{if(t!=null){if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)}},EB=Mu,Mh=t=>EI(t,32),Lh=t=>EI(t,16),Nh=t=>EI(t,8),EI=(t,e)=>{let r=Mu(t);if(r!==void 0&&TAe(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},TAe=(t,e)=>{switch(e){case 32:return Int32Array.of(t)[0];case 16:return Int16Array.of(t)[0];case 8:return Int8Array.of(t)[0]}},_B=(t,e)=>{if(t==null)throw e?new TypeError(`Expected a non-null value for ${e}`):new TypeError("Expected a non-null value");return t},_I=t=>{if(t==null)return;if(typeof t=="object"&&!Array.isArray(t))return t;let e=Array.isArray(t)?"array":typeof t;throw new TypeError(`Expected object, got ${e}: ${t}`)},RB=t=>{if(t!=null){if(typeof t=="string")return t;if(["boolean","number","bigint"].includes(typeof t))return Lu.warn(Fh(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)}},Bh=t=>{if(t==null)return;let e=_I(t),r=[];for(let n in e)W(e,n)&&e[n]!=null&&r.push(n);if(r.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(r.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return e},wp=t=>ku(typeof t=="string"?Nu(t):t),CB=wp,Uh=t=>Ip(typeof t=="string"?Nu(t):t),vAe=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Nu=t=>{let e=t.match(vAe);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},Gh=t=>typeof t=="string"?TB(t):ku(t),bB=Gh,AB=Gh,xB=t=>typeof t=="string"?TB(t):Ip(t),TB=t=>{switch(t){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${t}`)}},RI=t=>Mu(typeof t=="string"?Nu(t):t),vB=RI,DB=t=>Mh(typeof t=="string"?Nu(t):t),ra=t=>Lh(typeof t=="string"?Nu(t):t),qh=t=>Nh(typeof t=="string"?Nu(t):t),Fh=t=>String(new TypeError(t).stack||t).split(`
|
|
10
10
|
`).slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join(`
|
|
11
|
-
`),Lu={warn:console.warn}});function br(t){let e=t.getUTCFullYear(),r=t.getUTCMonth(),n=t.getUTCDay(),o=t.getUTCDate(),s=t.getUTCHours(),i=t.getUTCMinutes(),a=t.getUTCSeconds(),c=o<10?`0${o}`:`${o}`,u=s<10?`0${s}`:`${s}`,f=i<10?`0${i}`:`${i}`,m=a<10?`0${a}`:`${a}`;return`${
|
|
12
|
-
`+a}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(a):n.logger?.warn?.(a)}typeof i.$responseBodyText<"u"&&i.$response&&(i.$response.body=i.$responseBodyText);try{if(ft.isInstance(s)){let{headers:c={}}=s,u=Object.entries(c);i.$metadata={httpStatusCode:s.statusCode,requestId:PI(/^x-[\w-]+-request-?id$/,u),extendedRequestId:PI(/^x-[\w-]+-id-2$/,u),cfId:PI(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw i}},PI=(t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1]});var Dn,$p=g(()=>{Dn=class t extends Error{name="ProviderError";tryNextLink;constructor(e,r=!0){let n,o=!0;typeof r=="boolean"?(n=void 0,o=r):r!=null&&typeof r=="object"&&(n=r.logger,o=r.tryNextLink??!0),super(e),this.tryNextLink=o,Object.setPrototypeOf(this,t.prototype),n?.debug?.(`@smithy/property-provider ${o?"->":"(!)"} ${e}`)}static from(e,r=!0){return Object.assign(new this(e.message,r),e)}}});var oa,Yh=g(()=>{$p();oa=class t extends Dn{name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var Jh,qB=g(()=>{$p();Jh=class t extends Dn{name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var Xh,$I=g(()=>{$p();Xh=(...t)=>async()=>{if(t.length===0)throw new Dn("No providers in chain");let e;for(let r of t)try{return await r()}catch(n){if(e=n,n?.tryNextLink)continue;throw n}throw e}});var Zh,kI=g(()=>{Zh=t=>()=>Promise.resolve(t)});var Gu,eS=g(()=>{Gu=(t,e,r)=>{let n,o,s,i=!1,a=async()=>{o||(o=t());try{n=await o,s=!0,i=!1}finally{o=void 0}return n};return e===void 0?async c=>((!s||c?.forceRefresh)&&(n=await a()),n):async c=>((!s||c?.forceRefresh)&&(n=await a()),i?n:r&&!r(n)?(i=!0,n):(e(n)&&await a(),n))}});var Ve,tS=g(()=>{Ve=(t,e,r)=>{if(e in t){if(t[e]==="true")return!0;if(t[e]==="false")return!1;throw new Error(`Cannot load ${r} "${e}". Expected "true" or "false", got ${t[e]}.`)}}});var HB,jB=g(()=>{HB=(t,e,r)=>{if(!(e in t))return;let n=parseInt(t[e],10);if(Number.isNaN(n))throw new TypeError(`Cannot load ${r} '${e}'. Expected number, got '${t[e]}'.`);return n}});var Be,rS=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(Be||(Be={}))});var zB,VB,MI,VAe,_s,qu=g(()=>{zB=require("node:os"),VB=require("node:path"),MI={},VAe=()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT",_s=()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${VB.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let o=VAe();return MI[o]||(MI[o]=(0,zB.homedir)()),MI[o]}});var LI,NI,nS,FI=g(()=>{LI="AWS_PROFILE",NI="default",nS=t=>t.profile||process.env[LI]||NI});var WB,KB,oS,BI=g(()=>{WB=require("node:crypto"),KB=require("node:path");qu();oS=t=>{let r=(0,WB.createHash)("sha1").update(t).digest("hex");return(0,KB.join)(_s(),".aws","sso","cache",`${r}.json`)}});var QB,kp,YB,UI=g(()=>{QB=require("node:fs/promises");BI();kp={},YB=async t=>{if(kp[t])return kp[t];let e=oS(t),r=await(0,QB.readFile)(e,"utf8");return JSON.parse(r)}});var Rs,JB=g(()=>{Rs="."});var GI,XB,ZB=g(()=>{GI=De(Eo()),XB=t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(GI.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let o=r.indexOf("."),s=r.substring(0,o)===GI.IniSectionType.PROFILE?r.substring(o+1):r;return e[s]=n,e},{...t.default&&{default:t.default}})});var e2,WAe,sS,qI=g(()=>{e2=require("node:path");qu();WAe="AWS_CONFIG_FILE",sS=()=>process.env[WAe]||(0,e2.join)(_s(),".aws","config")});var t2,KAe,r2,n2=g(()=>{t2=require("node:path");qu();KAe="AWS_SHARED_CREDENTIALS_FILE",r2=()=>process.env[KAe]||(0,t2.join)(_s(),".aws","credentials")});var o2,QAe,YAe,Mp,HI=g(()=>{o2=De(Eo()),QAe=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,YAe=["__proto__","profile __proto__"],Mp=t=>{let e={},r,n;for(let o of t.split(/\r?\n/)){let s=o.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){r=void 0,n=void 0;let a=s.substring(1,s.length-1),c=QAe.exec(a);if(c){let[,u,,f]=c;Object.values(o2.IniSectionType).includes(u)&&(r=[u,f].join("."))}else r=a;if(YAe.includes(a))throw new Error(`Found invalid profile name "${a}"`)}else if(r){let a=s.indexOf("=");if(![0,-1].includes(a)){let[c,u]=[s.substring(0,a).trim(),s.substring(a+1).trim()];if(u==="")n=c;else{n&&o.trimStart()===o&&(n=void 0),e[r]=e[r]||{};let f=n?[n,c].join("."):c;e[r][f]=u}}}}return e}});var s2,jI,Lp,Rc,Np=g(()=>{s2=require("node:fs/promises"),jI={},Lp={},Rc=(t,e)=>Lp[t]!==void 0?Lp[t]:((!jI[t]||e?.ignoreCache)&&(jI[t]=(0,s2.readFile)(t,"utf8")),jI[t])});var zI,i2,Hu,iS=g(()=>{zI=require("node:path");ZB();qI();n2();qu();HI();Np();i2=()=>({}),Hu=async(t={})=>{let{filepath:e=r2(),configFilepath:r=sS()}=t,n=_s(),o="~/",s=e;e.startsWith(o)&&(s=(0,zI.join)(n,e.slice(2)));let i=r;r.startsWith(o)&&(i=(0,zI.join)(n,r.slice(2)));let a=await Promise.all([Rc(i,{ignoreCache:t.ignoreCache}).then(Mp).then(XB).catch(i2),Rc(s,{ignoreCache:t.ignoreCache}).then(Mp).catch(i2)]);return{configFile:a[0],credentialsFile:a[1]}}});var a2,c2,u2=g(()=>{a2=De(Eo()),c2=t=>Object.entries(t).filter(([e])=>e.startsWith(a2.IniSectionType.SSO_SESSION+".")).reduce((e,[r,n])=>({...e,[r.substring(r.indexOf(".")+1)]:n}),{})});var JAe,l2,d2=g(()=>{qI();u2();HI();Np();JAe=()=>({}),l2=async(t={})=>Rc(t.configFilepath??sS()).then(Mp).then(c2).catch(JAe)});var p2,f2=g(()=>{p2=(...t)=>{let e={};for(let r of t)for(let[n,o]of Object.entries(r))e[n]!==void 0?Object.assign(e[n],o):e[n]=o;return e}});var m2,g2=g(()=>{iS();f2();m2=async t=>{let e=await Hu(t);return p2(e.configFile,e.credentialsFile)}});var h2,S2=g(()=>{UI();Np();h2={getFileRecord(){return Lp},interceptFile(t,e){Lp[t]=Promise.resolve(e)},getTokenRecord(){return kp},interceptToken(t,e){kp[t]=e}}});function aS(t){try{let e=new Set(Array.from(t.match(/([A-Z_]){3,}/g)??[]));return e.delete("CONFIG"),e.delete("CONFIG_PREFIX_SEPARATOR"),e.delete("ENV"),[...e].join(", ")}catch{return t}}var VI=g(()=>{});var y2,E2=g(()=>{Yh();VI();y2=(t,e)=>async()=>{try{let r=t(process.env,e);if(r===void 0)throw new Error;return r}catch(r){throw new oa(r.message||`Not found in ENV: ${aS(t.toString())}`,{logger:e?.logger})}}});var _2,R2=g(()=>{Yh();FI();iS();VI();_2=(t,{preferredFile:e="config",...r}={})=>async()=>{let n=nS(r),{configFile:o,credentialsFile:s}=await Hu(r),i=s[n]||{},a=o[n]||{},c=e==="config"?{...i,...a}:{...a,...i};try{let f=t(c,e==="config"?o:s);if(f===void 0)throw new Error;return f}catch(u){throw new oa(u.message||`Not found in config files w/ profile [${n}]: ${aS(t.toString())}`,{logger:r.logger})}}});var XAe,cS,WI=g(()=>{kI();XAe=t=>typeof t=="function",cS=t=>XAe(t)?async()=>await t():Zh(t)});var ue,KI=g(()=>{$I();eS();E2();R2();WI();ue=({environmentVariableSelector:t,configFileSelector:e,default:r},n={})=>{let{signingName:o,logger:s}=n;return Gu(Xh(y2(t,{signingName:o,logger:s}),_2(e,n),cS(r)))}});var uS,lS,C2,Cs,b2,A2=g(()=>{tS();rS();uS="AWS_USE_DUALSTACK_ENDPOINT",lS="use_dualstack_endpoint",C2=!1,Cs={environmentVariableSelector:t=>Ve(t,uS,Be.ENV),configFileSelector:t=>Ve(t,lS,Be.CONFIG),default:!1},b2={environmentVariableSelector:t=>Ve(t,uS,Be.ENV),configFileSelector:t=>Ve(t,lS,Be.CONFIG),default:void 0}});var dS,pS,x2,bs,T2,v2=g(()=>{tS();rS();dS="AWS_USE_FIPS_ENDPOINT",pS="use_fips_endpoint",x2=!1,bs={environmentVariableSelector:t=>Ve(t,dS,Be.ENV),configFileSelector:t=>Ve(t,pS,Be.CONFIG),default:!1},T2={environmentVariableSelector:t=>Ve(t,dS,Be.ENV),configFileSelector:t=>Ve(t,pS,Be.CONFIG),default:void 0}});var D2,I2=g(()=>{J();D2=t=>{let{tls:e,endpoint:r,urlParser:n,useDualstackEndpoint:o}=t;return Object.assign(t,{tls:e??!0,endpoint:we(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:we(o??!1)})}});var w2,P2=g(()=>{w2=async t=>{let{tls:e=!0}=t,r=await t.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");let o=await t.useDualstackEndpoint(),s=await t.useFipsEndpoint(),{hostname:i}=await t.regionInfoProvider(r,{useDualstackEndpoint:o,useFipsEndpoint:s})??{};if(!i)throw new Error("Cannot resolve hostname from client config");return t.urlParser(`${e?"https:":"http:"}//${i}`)}});var O2,$2=g(()=>{J();P2();O2=t=>{let e=we(t.useDualstackEndpoint??!1),{endpoint:r,useFipsEndpoint:n,urlParser:o,tls:s}=t;return Object.assign(t,{tls:s??!0,endpoint:r?we(typeof r=="string"?o(r):r):()=>w2({...t,useDualstackEndpoint:e,useFipsEndpoint:n}),isCustomEndpoint:!!r,useDualstackEndpoint:e})}});var k2,QI,YI,M2,L2,N2,F2,B2,U2,JI=g(()=>{k2="AWS_EXECUTION_ENV",QI="AWS_REGION",YI="AWS_DEFAULT_REGION",M2="AWS_EC2_METADATA_DISABLED",L2=["in-region","cross-region","mobile","standard","legacy"],N2="/latest/meta-data/placement/region",F2="/latest/api/token",B2="x-aws-ec2-metadata-token",U2="x-aws-ec2-metadata-token-ttl-seconds"});var G2,ZAe,j2,fS,q2,exe,H2,XI=g(()=>{JI();G2=1e3,ZAe=6e4,j2=0,fS=async()=>{if(!process.env[M2]&&!(Date.now()<j2))try{let t=exe(),e=(await H2({...t,path:F2,method:"PUT",headers:{[U2]:"21600"}})).toString();return(await H2({...t,path:N2,method:"GET",headers:{[B2]:e}})).toString().trim()||q2()}catch{return q2()}},q2=()=>{j2=Date.now()+ZAe},exe=()=>{let t=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if(t){let e=new URL(t);return{hostname:e.hostname.replace(/^\[(.+)]$/,"$1"),port:e.port?Number(e.port):void 0}}return process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6"?{hostname:"fd00:ec2::254"}:{hostname:"169.254.169.254"}},H2=async t=>{let{request:e}=await import("node:http");return new Promise((r,n)=>{let o=e({hostname:t.hostname,port:t.port,path:t.path,method:t.method,headers:t.headers,timeout:G2,signal:AbortSignal.timeout(G2)});o.on("error",s=>{n(s),o.destroy()}),o.on("timeout",()=>{n(new Error("TimeoutError from instance metadata service")),o.destroy()}),o.on("response",s=>{let{statusCode:i=400}=s;if(i<200||i>=300){n(Object.assign(new Error("Error response received from instance metadata service"),{statusCode:i})),o.destroy();return}let a=[];s.on("data",c=>a.push(c)),s.on("end",()=>{r(Buffer.concat(a)),o.destroy()})}),o.end()})}});var ju,zu,Ar,Zr,ZI=g(()=>{XI();ju="AWS_REGION",zu="region",Ar={environmentVariableSelector:t=>t[ju],configFileSelector:t=>t[zu],default:async()=>{let t=await fS();if(t)return t;throw new Error("Region is missing")}},Zr={preferredFile:"credentials"}});var z2,V2,W2=g(()=>{oe();z2=new Set,V2=(t,e=_o)=>{if(!z2.has(t)&&!e(t))if(t==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${t}" is not a valid hostname component.`);else z2.add(t)}});var mS,ew=g(()=>{mS=t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips"))});var K2,Q2=g(()=>{ew();K2=t=>mS(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t});var In,Y2=g(()=>{W2();Q2();ew();In=t=>{let{region:e,useFipsEndpoint:r}=t;if(!e)throw new Error("Region is missing");return Object.assign(t,{region:async()=>{let n=typeof e=="function"?await e():e,o=K2(n);return V2(o),o},useFipsEndpoint:async()=>{let n=typeof e=="string"?e:await e();return mS(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()}})}});var tw,J2=g(()=>{tw=(t=[],{useFipsEndpoint:e,useDualstackEndpoint:r})=>t.find(({tags:n})=>e===n.includes("fips")&&r===n.includes("dualstack"))?.hostname});var X2,Z2=g(()=>{X2=(t,{regionHostname:e,partitionHostname:r})=>e||(r?r.replace("{region}",t):void 0)});var eU,tU=g(()=>{eU=(t,{partitionHash:e})=>Object.keys(e||{}).find(r=>e[r].regions.includes(t))??"aws"});var rU,nU=g(()=>{rU=(t,{signingRegion:e,regionRegex:r,useFipsEndpoint:n})=>{if(e)return e;if(n){let o=r.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),s=t.match(o);if(s)return s[0].slice(1,-1)}}});var oU,sU=g(()=>{J2();Z2();tU();nU();oU=(t,{useFipsEndpoint:e=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:o,partitionHash:s})=>{let i=eU(t,{partitionHash:s}),a=t in o?t:s[i]?.endpoint??t,c={useFipsEndpoint:e,useDualstackEndpoint:r},u=tw(o[a]?.variants,c),f=tw(s[i]?.variants,c),m=X2(a,{regionHostname:u,partitionHostname:f});if(m===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:a,useFipsEndpoint:e,useDualstackEndpoint:r}}`);let y=rU(m,{signingRegion:o[a]?.signingRegion,regionRegex:s[i].regionRegex,useFipsEndpoint:e});return{partition:i,signingService:n,hostname:m,...y&&{signingRegion:y},...o[a]?.signingService&&{signingService:o[a].signingService}}}});var txe,rxe,iU,aU=g(()=>{txe="AWS_DEFAULTS_MODE",rxe="defaults_mode",iU={environmentVariableSelector:t=>t[txe],configFileSelector:t=>t[rxe],default:"legacy"}});var As,nxe,oxe,cU=g(()=>{ZI();XI();KI();eS();JI();aU();As=({region:t=ue(Ar),defaultsMode:e=ue(iU)}={})=>Gu(async()=>{let r=typeof e=="function"?await e():e;switch(r?.toLowerCase()){case"auto":return nxe(t);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(r?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${L2.join(", ")}, got ${r}`)}}),nxe=async t=>{if(t){let e=typeof t=="function"?await t():t,r=await oxe();return r?e===r?"in-region":"cross-region":"standard"}return"standard"},oxe=async()=>process.env[k2]&&(process.env[QI]||process.env[YI])?process.env[QI]??process.env[YI]:fS()});var Br={};Ct(Br,{CONFIG_PREFIX_SEPARATOR:()=>Rs,CONFIG_USE_DUALSTACK_ENDPOINT:()=>lS,CONFIG_USE_FIPS_ENDPOINT:()=>pS,CredentialsProviderError:()=>oa,DEFAULT_PROFILE:()=>NI,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>C2,DEFAULT_USE_FIPS_ENDPOINT:()=>x2,ENV_PROFILE:()=>LI,ENV_USE_DUALSTACK_ENDPOINT:()=>uS,ENV_USE_FIPS_ENDPOINT:()=>dS,NODE_REGION_CONFIG_FILE_OPTIONS:()=>Zr,NODE_REGION_CONFIG_OPTIONS:()=>Ar,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>Cs,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>bs,ProviderError:()=>Dn,REGION_ENV_NAME:()=>ju,REGION_INI_NAME:()=>zu,SelectorType:()=>Be,TokenProviderError:()=>Jh,booleanSelector:()=>Ve,chain:()=>Xh,externalDataInterceptor:()=>h2,fromStatic:()=>cS,fromValue:()=>Zh,getHomeDir:()=>_s,getProfileName:()=>nS,getRegionInfo:()=>oU,getSSOTokenFilepath:()=>oS,getSSOTokenFromFile:()=>YB,loadConfig:()=>ue,loadSharedConfigFiles:()=>Hu,loadSsoSessionData:()=>l2,memoize:()=>Gu,nodeDualstackConfigSelectors:()=>b2,nodeFipsConfigSelectors:()=>T2,numberSelector:()=>HB,parseKnownFiles:()=>m2,readFile:()=>Rc,resolveCustomEndpointsConfig:()=>D2,resolveDefaultsModeConfig:()=>As,resolveEndpointsConfig:()=>O2,resolveRegionConfig:()=>In});var ye=g(()=>{$p();Yh();qB();$I();kI();eS();tS();jB();rS();qu();FI();BI();UI();JB();iS();d2();g2();S2();Np();KI();WI();A2();v2();I2();$2();ZI();Y2();sU();cU()});var uU,lU,dU,pU=g(()=>{uU="AWS_ENDPOINT_URL",lU="endpoint_url",dU=t=>({environmentVariableSelector:e=>{let r=t.split(" ").map(s=>s.toUpperCase()),n=e[[uU,...r].join("_")];if(n)return n;let o=e[uU];if(o)return o},configFileSelector:(e,r)=>{if(e.services){let o=["services",e.services].join(".");if(!r||!r[o])throw new Error(`The services section "${e.services}" specified in the profile is not present in the shared configuration file.`);let s=r[o],i=t.split(" ").map(c=>c.toLowerCase()),a=s[[i.join("_"),lU].join(".")];if(a)return a}let n=e[lU];if(n)return n},default:void 0})});var sxe,ixe,fU,mU=g(()=>{ye();sxe="AWS_IGNORE_CONFIGURED_ENDPOINT_URLS",ixe="ignore_configured_endpoint_urls",fU={environmentVariableSelector:t=>Ve(t,sxe,Be.ENV),configFileSelector:t=>Ve(t,ixe,Be.CONFIG),default:!1}});var Fp,gU=g(()=>{ye();pU();mU();Fp=async t=>{if(!await ue(fU)())return ue(dU(t??""))()}});var rw,axe,cxe,uxe,hU,SU,yU=g(()=>{rw=async t=>{let e=t?.Bucket||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),SU(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!hU(e)||e.indexOf(".")!==-1&&!String(t.Endpoint).startsWith("http:")||e.toLowerCase()!==e||e.length<3)&&(t.ForcePathStyle=!0);return t.DisableMultiRegionAccessPoints&&(t.disableMultiRegionAccessPoints=!0,t.DisableMRAP=!0),t},axe=/^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/,cxe=/(\d+\.){3}\d+/,uxe=/\.\./,hU=t=>axe.test(t)&&!cxe.test(t)&&!uxe.test(t),SU=t=>{let[e,r,n,,,o]=t.split(":"),s=e==="arn"&&t.split(":").length>=6,i=!!(s&&r&&n&&o);if(s&&!i)throw new Error(`Invalid ARN: ${t} was an invalid ARN.`);return i}});var EU=g(()=>{yU()});var _U,RU=g(()=>{_U=(t,e,r,n=!1)=>{let o=async()=>{let s;return n?s=r.clientContextParams?.[t]??r[t]??r[e]:s=r[t]??r[e],typeof s=="function"?s():s};return t==="credentialScope"||e==="CredentialScope"?async()=>{let s=typeof r.credentials=="function"?await r.credentials():r.credentials;return s?.credentialScope??s?.CredentialScope}:t==="accountId"||e==="AccountId"?async()=>{let s=typeof r.credentials=="function"?await r.credentials():r.credentials;return s?.accountId??s?.AccountId}:t==="endpoint"||e==="endpoint"?async()=>{if(r.isCustomEndpoint===!1)return;let s=await o();if(s&&typeof s=="object"){if("url"in s)return s.url.href;if("hostname"in s){let{protocol:i,hostname:a,port:c,path:u}=s;return`${i}//${a}${c?":"+c:""}${u}`}}return s}:o}});var gS=g(()=>{oe()});function hS(t){return async(e,r,n,o)=>{if(!n.isCustomEndpoint&&!n.ignoreConfiguredEndpointUrls){let a;n.serviceConfiguredEndpoint?a=await n.serviceConfiguredEndpoint():a=await t(n.serviceId),a&&(n.endpoint=()=>Promise.resolve(Tn(a)),n.isCustomEndpoint=!0,o?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${a}`))}let s=await Bp(e,r,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");let i=n.endpointProvider(s,o);if(n.isCustomEndpoint&&n.endpoint){let a=await n.endpoint();if(a?.headers){i.headers??={};for(let[c,u]of Object.entries(a.headers))i.headers[c]=Array.isArray(u)?u:[u]}}return i}}var Bp,SS=g(()=>{EU();RU();gS();Bp=async(t,e,r)=>{let n={},o=e?.getEndpointParameterInstructions?.()||{};for(let[s,i]of Object.entries(o))switch(i.type){case"staticContextParams":n[s]=i.value;break;case"contextParams":n[s]=t[i.name];break;case"clientContextParams":case"builtInParams":n[s]=await _U(i.name,s,r,i.type!=="builtInParams")();break;case"operationContextParams":n[s]=i.get(t);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return Object.keys(o).length===0&&Object.assign(n,r),String(r.serviceId).toLowerCase()==="s3"&&await rw(n),n}});function lxe(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}function yS(t){let e=hS(t);return({config:r,instructions:n})=>(o,s)=>async i=>{r.isCustomEndpoint&&lxe(s,"ENDPOINT_OVERRIDE","N");let a=await e(i.input,{getEndpointParameterInstructions(){return n}},{...r},s);s.endpointV2=a,s.authSchemes=a.properties?.authSchemes;let c=s.authSchemes?.[0];if(c){s.signing_region=c.signingRegion,s.signing_service=c.signingName;let f=Le(s)?.selectedHttpAuthScheme?.httpAuthOption;f&&(f.signingProperties=Object.assign(f.signingProperties||{},{signing_region:c.signingRegion,signingRegion:c.signingRegion,signing_service:c.signingName,signingName:c.signingName,signingRegionSet:c.signingRegionSet},c.properties))}return o({...i})}}var nw=g(()=>{oe();SS()});function CU(t){let e=yS(t);return(r,n)=>({applyToStack:o=>{o.addRelativeTo(e({config:r,instructions:n}),ow)}})}var dxe,ow,sw=g(()=>{nw();dxe={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0},ow={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:dxe.name}});function bU(t){return e=>{let r=e.tls??!0,{endpoint:n,useDualstackEndpoint:o,useFipsEndpoint:s}=e,i=n!=null?async()=>Tn(await we(n)()):void 0,c=Object.assign(e,{endpoint:i,tls:r,isCustomEndpoint:!!n,useDualstackEndpoint:we(o??!1),useFipsEndpoint:we(s??!1),ignoreConfiguredEndpointUrls:!!e.ignoreConfiguredEndpointUrls}),u;return c.serviceConfiguredEndpoint=async()=>(e.serviceId&&!u&&(u=t(e.serviceId)),u),c}}var AU=g(()=>{oe();gS()});var Wn,xU=g(()=>{Wn=class t{nodes;root;conditions;results;constructor(e,r,n,o){this.nodes=e,this.root=r,this.conditions=n,this.results=o}static from(e,r,n,o){return new t(e,r,n,o)}}});var Kn,TU=g(()=>{Kn=class{capacity;data=new Map;parameters=[];constructor({size:e,params:r}){this.capacity=e??50,r&&(this.parameters=r)}get(e,r){let n=this.hash(e);if(n===!1)return r();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let o=this.data.keys(),s=0;for(;;){let{value:i,done:a}=o.next();if(this.data.delete(i),a||++s>10)break}}this.data.set(n,r())}return this.data.get(n)}size(){return this.data.size}hash(e){let r="",{parameters:n}=this;if(n.length===0)return!1;for(let o of n){let s=e[o],i=s==null?"\0":String(s);if(i.includes("|;"))return!1;r+=i+"|;"}return r}}});var be,vU=g(()=>{be=class extends Error{constructor(e){super(e),this.name="EndpointError"}}});var wn=g(()=>{vU()});var xs,DU=g(()=>{xs="endpoints"});function Pn(t){return typeof t!="object"||t==null?t:"ref"in t?`$${Pn(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(Pn).join(", ")})`:JSON.stringify(t,null,2)}var IU=g(()=>{});var Up=g(()=>{DU();IU()});var hn,iw=g(()=>{hn={}});var aw,wU=g(()=>{aw=(t,e)=>t===e});function cw(...t){for(let e of t)if(e!=null)return e}var PU=g(()=>{});var OU,$U=g(()=>{wn();OU=t=>{let e=t.split("."),r=[];for(let n of e){let o=n.indexOf("[");if(o!==-1){if(n.indexOf("]")!==n.length-1)throw new be(`Path: '${t}' does not end with ']'`);let s=n.slice(o+1,-1);if(Number.isNaN(parseInt(s)))throw new be(`Invalid array index: '${s}' in path: '${t}'`);o!==0&&r.push(n.slice(0,o)),r.push(s)}else r.push(n)}return r}});var Gp,kU=g(()=>{wn();$U();Gp=(t,e)=>OU(e).reduce((r,n)=>{if(typeof r!="object")throw new be(`Index '${n}' in '${e}' not found in '${JSON.stringify(t)}'`);if(Array.isArray(r)){let o=parseInt(n);return r[o<0?r.length+o:o]}return r[n]},t)});var uw,MU=g(()=>{uw=t=>t!=null});function lw(t,e,r){return t?e:r}var LU=g(()=>{});var dw,NU=g(()=>{dw=t=>!t});var pxe,_i,pw=g(()=>{pxe=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}$"),_i=t=>pxe.test(t)||t.startsWith("[")&&t.endsWith("]")});var ES,fw,mw,FU=g(()=>{ES=De(Eo());pw();fw={[ES.EndpointURLScheme.HTTP]:80,[ES.EndpointURLScheme.HTTPS]:443},mw=t=>{let e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){let{hostname:y,port:_,protocol:C="",path:A="",query:x={}}=t,T=new URL(`${C}//${y}${_?`:${_}`:""}${A}`);return T.search=Object.entries(x).map(([I,q])=>`${I}=${q}`).join("&"),T}return new URL(t)}catch{return null}})();if(!e)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;let r=e.href,{host:n,hostname:o,pathname:s,protocol:i,search:a}=e;if(a)return null;let c=i.slice(0,-1);if(!Object.values(ES.EndpointURLScheme).includes(c))return null;let u=_i(o),f=r.includes(`${n}:${fw[c]}`)||typeof t=="string"&&t.includes(`${n}:${fw[c]}`),m=`${n}${f?`:${fw[c]}`:""}`;return{scheme:c,authority:m,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:u}}});function gw(t,e,r){if(r===1)return[t];if(t==="")return[""];let n=t.split(e);return r===0?n:n.slice(0,r-1).concat(n.slice(1).join(e))}var BU=g(()=>{});var hw,UU=g(()=>{hw=(t,e)=>t===e});var Sw,GU=g(()=>{Sw=(t,e,r,n)=>t==null||e>=r||t.length<r||/[^\u0000-\u007f]/.test(t)?null:n?t.substring(t.length-r,t.length-e):t.substring(e,r)});var yw,qU=g(()=>{yw=t=>encodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)});var Ew=g(()=>{wU();PU();kU();MU();oe();LU();NU();FU();BU();UU();GU();qU()});var HU,jU=g(()=>{Ew();HU={booleanEquals:aw,coalesce:cw,getAttr:Gp,isSet:uw,isValidHostLabel:_o,ite:lw,not:dw,parseURL:mw,split:gw,stringEquals:hw,substring:Sw,uriEncode:yw}});var _S,_w=g(()=>{Ew();_S=(t,e)=>{let r=[],{referenceRecord:n,endpointParams:o}=e,s=0;for(;s<t.length;){let i=t.indexOf("{",s);if(i===-1){r.push(t.slice(s));break}r.push(t.slice(s,i));let a=t.indexOf("}",i);if(a===-1){r.push(t.slice(i));break}t[i+1]==="{"&&t[a+1]==="}"&&(r.push(t.slice(i+1,a)),s=a+2);let c=t.substring(i+1,a);if(c.includes("#")){let[u,f]=c.split("#");r.push(Gp(n[u]??o[u],f))}else r.push(n[c]??o[c]);s=a+1}return r.join("")}});var zU,VU=g(()=>{zU=({ref:t},e)=>e.referenceRecord[t]??e.endpointParams[t]});var Ri,RS,WU,Vu=g(()=>{wn();iw();jU();_w();VU();Ri=(t,e,r)=>{if(typeof t=="string")return _S(t,r);if(t.fn)return WU.callFunction(t,r);if(t.ref)return zU(t,r);throw new be(`'${e}': ${String(t)} is not a string, function or reference.`)},RS=({fn:t,argv:e},r)=>{let n=Array(e.length);for(let i=0;i<n.length;++i){let a=e[i];typeof a=="boolean"||typeof a=="number"?n[i]=a:n[i]=WU.evaluateExpression(a,"arg",r)}let o=t.indexOf(".");if(o!==-1){let a=hn[t.slice(0,o)]?.[t.slice(o+1)];if(typeof a=="function")return a(...n)}let s=HU[t];if(typeof s=="function")return s(...n);throw new Error(`function ${t} not loaded in endpointFunctions.`)},WU={evaluateExpression:Ri,callFunction:RS}});var KU=g(()=>{Vu()});var CS,Rw=g(()=>{Up();wn();KU();CS=(t,e)=>{let{assign:r}=t;if(r&&r in e.referenceRecord)throw new be(`'${r}' is already defined in Reference Record.`);let n=RS(t,e);e.logger?.debug?.(`${xs} evaluateCondition: ${Pn(t)} = ${Pn(n)}`);let o=n===""?!0:!!n;return r!=null?{result:o,toAssign:{name:r,value:n}}:{result:o}}});var bS,Cw=g(()=>{wn();Vu();bS=(t,e)=>Object.entries(t??{}).reduce((r,[n,o])=>(r[n]=o.map(s=>{let i=Ri(s,"Header value entry",e);if(typeof i!="string")throw new be(`Header '${n}' value '${i}' is not a string`);return i}),r),{})});var qp,QU,YU,bw=g(()=>{wn();_w();qp=(t,e)=>Object.entries(t).reduce((r,[n,o])=>(r[n]=YU.getEndpointProperty(o,e),r),{}),QU=(t,e)=>{if(Array.isArray(t))return t.map(r=>QU(r,e));switch(typeof t){case"string":return _S(t,e);case"object":if(t===null)throw new be(`Unexpected endpoint property: ${t}`);return YU.getEndpointProperties(t,e);case"boolean":return t;default:throw new be(`Unexpected endpoint property type: ${typeof t}`)}},YU={getEndpointProperty:QU,getEndpointProperties:qp}});var AS,Aw=g(()=>{wn();Vu();AS=(t,e)=>{let r=Ri(t,"Endpoint URL",e);if(typeof r=="string")try{return new URL(r)}catch(n){throw console.error(`Failed to construct URL with ${r}`,n),n}throw new be(`Endpoint URL must be a string, got ${typeof r}`)}});var xw,Ts,JU=g(()=>{wn();Rw();Vu();Cw();bw();Aw();xw=1e8,Ts=(t,e)=>{let{nodes:r,root:n,results:o,conditions:s}=t,i=n,a={},c={referenceRecord:a,endpointParams:e.endpointParams,logger:e.logger};for(;i!==1&&i!==-1&&i<xw;){let u=3*(Math.abs(i)-1),[f,m,y]=[r[u],r[u+1],r[u+2]],[_,C,A]=s[f],x=CS({fn:_,assign:A,argv:C},c);if(x.toAssign){let{name:T,value:I}=x.toAssign;a[T]=I}i=i>=0===x.result?m:y}if(i>=xw){let u=o[i-xw];if(u[0]===-1){let[,_]=u;throw new be(Ri(_,"Error",c))}let[f,m,y]=u;return{url:AS(f,c),properties:qp(m,c),headers:bS(y??{},c)}}throw new be("No matching endpoint.")}});var Wu,xS=g(()=>{Up();Rw();Wu=(t=[],e)=>{let r={},n={...e,referenceRecord:{...e.referenceRecord}},o=!1;for(let s of t){let{result:i,toAssign:a}=CS(s,n);if(!i)return{result:i};a&&(o=!0,r[a.name]=a.value,n.referenceRecord[a.name]=a.value,e.logger?.debug?.(`${xs} assign: ${a.name} := ${Pn(a.value)}`))}return o?{result:!0,referenceRecord:r}:{result:!0}}});var XU,ZU=g(()=>{Up();xS();Cw();bw();Aw();XU=(t,e)=>{let{conditions:r,endpoint:n}=t,{result:o,referenceRecord:s}=Wu(r,e);if(!o)return;let i=s?{...e,referenceRecord:{...e.referenceRecord,...s}}:e,{url:a,properties:c,headers:u}=n;e.logger?.debug?.(`${xs} Resolving endpoint from template: ${Pn(n)}`);let f={url:AS(a,i)};return u!=null&&(f.headers=bS(u,i)),c!=null&&(f.properties=qp(c,i)),f}});var eG,tG=g(()=>{wn();xS();Vu();eG=(t,e)=>{let{conditions:r,error:n}=t,{result:o,referenceRecord:s}=Wu(r,e);if(!o)return;let i=s?{...e,referenceRecord:{...e.referenceRecord,...s}}:e;throw new be(Ri(n,"Error",i))}});var TS,rG,Tw,nG=g(()=>{wn();xS();ZU();tG();TS=(t,e)=>{for(let r of t)if(r.type==="endpoint"){let n=XU(r,e);if(n)return n}else if(r.type==="error")eG(r,e);else if(r.type==="tree"){let n=Tw.evaluateTreeRule(r,e);if(n)return n}else throw new be(`Unknown endpoint rule: ${r}`);throw new be("Rules evaluation failed")},rG=(t,e)=>{let{conditions:r,rules:n}=t,{result:o,referenceRecord:s}=Wu(r,e);if(!o)return;let i=s?{...e,referenceRecord:{...e.referenceRecord,...s}}:e;return Tw.evaluateRules(n,i)},Tw={evaluateRules:TS,evaluateTreeRule:rG}});var oG=g(()=>{nG()});var Hp,sG=g(()=>{oe();Up();wn();oG();Hp=(t,e)=>{let{endpointParams:r,logger:n}=e,{parameters:o,rules:s}=t;e.logger?.debug?.(`${xs} Initial EndpointParams: ${Pn(r)}`);for(let a in o){if(!W(o,a))continue;let c=o[a],u=r[a];if(u==null&&c.default!=null){r[a]=c.default;continue}if(c.required&&u==null)throw new be(`Missing required parameter: '${a}'`)}let i=TS(s,{endpointParams:r,logger:n,referenceRecord:{}});return e.logger?.debug?.(`${xs} Resolved endpoint: ${Pn(i)}`),i}});var iG,aG=g(()=>{iG=t=>{let{endpoint:e}=t;return e===void 0&&(t.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}),t}});var jp={};Ct(jp,{BinaryDecisionDiagram:()=>Wn,EndpointCache:()=>Kn,EndpointError:()=>be,customEndpointFunctions:()=>hn,decideEndpoint:()=>Ts,endpointMiddleware:()=>mxe,endpointMiddlewareOptions:()=>ow,getEndpointFromInstructions:()=>fxe,getEndpointPlugin:()=>bi,isIpAddress:()=>_i,isValidHostLabel:()=>_o,middlewareEndpointToEndpointV1:()=>Tn,resolveEndpoint:()=>Hp,resolveEndpointConfig:()=>Ci,resolveEndpointRequiredConfig:()=>iG,resolveParams:()=>Bp,toEndpointV1:()=>Tn});var fxe,Ci,mxe,bi,He=g(()=>{gU();SS();nw();sw();AU();oe();xU();TU();JU();pw();oe();iw();sG();wn();SS();gS();sw();aG();fxe=hS(Fp),Ci=bU(Fp),mxe=yS(Fp),bi=CU(Fp)});var vS,vw=g(()=>{He();vS=(t,e)=>(r,n)=>async o=>{let s=t,i=n.endpointV2?async()=>Tn(n.endpointV2):s.endpoint;if(!i)throw new Error("No valid endpoint provider available.");let a=await e(o.input,{...t,endpoint:i});return r({...o,request:a})}});function cG(t,e,r){return{applyToStack:n=>{n.add(Qh(t,r),Dw),n.add(vS(t,e),Iw)}}}var Dw,Iw,uG=g(()=>{OI();vw();Dw={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Iw={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});function lG(t,e){return Buffer.isBuffer(t)?t:typeof t=="string"?ea(t,e):ArrayBuffer.isView(t)?Ao(t.buffer,t.byteOffset,t.byteLength):Ao(t)}var IS,DS,dG=g(()=>{IS=require("node:crypto");ta();wI();DS=class{algorithmIdentifier;secret;hash;constructor(e,r){this.algorithmIdentifier=e,this.secret=r,this.reset()}update(e,r){this.hash.update(bt(lG(e,r)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,IS.createHmac)(this.algorithmIdentifier,lG(this.secret)):(0,IS.createHash)(this.algorithmIdentifier)}}});var pG,Ku,ww=g(()=>{pG=require("node:stream");yI();Ku=class extends pG.Readable{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;constructor({expectedChecksum:e,checksum:r,source:n,checksumSourceLocation:o,base64Encoder:s}){if(super(),typeof n.pipe!="function")throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`);this.source=n,this.base64Encoder=s??Ie,this.expectedChecksum=e,this.checksum=r,this.checksumSourceLocation=o,this.source.on("data",this.onSourceData),this.source.on("end",this.onSourceEnd),this.source.on("error",this.onSourceError),this.source.on("close",this.onSourceClose),this.source.pause()}onSourceData=e=>{if(!this.destroyed){try{this.checksum.update(e)}catch(r){this.destroy(r);return}this.push(e)||this.source.pause()}};onSourceEnd=async()=>{if(!this.destroyed){try{let e=await this.checksum.digest(),r=this.base64Encoder(e);if(this.expectedChecksum!==r){this.destroy(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${r}" in response header "${this.checksumSourceLocation}".`));return}}catch(e){this.destroy(e);return}this.push(null)}};onSourceError=e=>{this.destroy(e)};onSourceClose=()=>{!this.destroyed&&!this.source.readableEnded&&this.destroy(new Error("Connection lost or stream closed before all data was received."))};_read(e){this.source.resume()}_destroy(e,r){this.source?.removeListener("data",this.onSourceData),this.source?.removeListener("end",this.onSourceEnd),this.source?.removeListener("error",this.onSourceError),this.source?.removeListener("close",this.onSourceClose),this.source?.destroy(),r(e)}}});var Ht,sa,xo=g(()=>{Ht=t=>typeof ReadableStream=="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream),sa=t=>typeof Blob=="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob)});var fG,mG=g(()=>{fG=t=>new TextEncoder().encode(t)});var gG,YAt,hG,wS,Pw,SG,yG=g(()=>{gG="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",YAt=Object.entries(gG).reduce((t,[e,r])=>(t[r]=Number(e),t),{}),hG=gG.split(""),wS=6,Pw=8,SG=63});function PS(t){let e;typeof t=="string"?e=fG(t):e=t;let r=typeof e=="object"&&typeof e.length=="number",n=typeof e=="object"&&typeof e.byteOffset=="number"&&typeof e.byteLength=="number";if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let o="";for(let s=0;s<e.length;s+=3){let i=0,a=0;for(let u=s,f=Math.min(s+3,e.length);u<f;u++)i|=e[u]<<(f-u-1)*Pw,a+=Pw;let c=Math.ceil(a/wS);i<<=c*wS-a;for(let u=1;u<=c;u++){let f=(c-u)*wS;o+=hG[(i&SG<<f)>>f]}o+="==".slice(0,4-c)}return o}var Ow=g(()=>{mG();yG()});var gxe,OS,EG=g(()=>{gxe=typeof ReadableStream=="function"?ReadableStream:function(){},OS=class extends gxe{}});var _G,RG=g(()=>{Ow();xo();EG();_G=({expectedChecksum:t,checksum:e,source:r,checksumSourceLocation:n,base64Encoder:o})=>{if(!Ht(r))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let s=o??PS;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let i=new TransformStream({start(){},async transform(c,u){e.update(c),u.enqueue(c)},async flush(c){let u=await e.digest(),f=s(u);if(t!==f){let m=new Error(`Checksum mismatch: expected "${t}" but received "${f}" in response header "${n}".`);c.error(m)}else c.terminate()}});r.pipeThrough(i);let a=i.readable;return Object.setPrototypeOf(a,OS.prototype),a}});function $S(t){return typeof ReadableStream=="function"&&Ht(t.source)?_G(t):new Ku(t)}var CG=g(()=>{xo();ww();RG()});var Cc,$w=g(()=>{Cc=class{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e),this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){let n=this.byteArrays[0];return this.reset(),n}let e=this.allocByteArray(this.byteLength),r=0;for(let n=0;n<this.byteArrays.length;++n){let o=this.byteArrays[n];e.set(o,r),r+=o.byteLength}return this.reset(),e}reset(){this.byteArrays=[],this.byteLength=0}}});function bG(t,e,r){let n=t.getReader(),o=!1,s=0,i=["",new Cc(u=>new Uint8Array(u))],a=-1,c=async u=>{let{value:f,done:m}=await n.read(),y=f;if(m){if(a!==-1){let _=bc(i,a);Ai(_)>0&&u.enqueue(_)}u.close()}else{let _=Mw(y,!1);if(a!==_&&(a>=0&&u.enqueue(bc(i,a)),a=_),a===-1){u.enqueue(y);return}let C=Ai(y);s+=C;let A=Ai(i[a]);if(C>=e&&A===0)u.enqueue(y);else{let x=kw(i,a,y);!o&&s>e*2&&(o=!0,r?.warn(`@smithy/util-stream - stream chunk size ${C} is below threshold of ${e}, automatically buffering.`)),x>=e?u.enqueue(bc(i,a)):await c(u)}}};return new ReadableStream({pull:c})}function kw(t,e,r){switch(e){case 0:return t[0]+=r,Ai(t[0]);case 1:case 2:return t[e].push(r),Ai(t[e])}}function bc(t,e){switch(e){case 0:let r=t[0];return t[0]="",r;case 1:case 2:return t[e].flush()}throw new Error(`@smithy/util-stream - invalid index ${e} given to flush()`)}function Ai(t){return t?.byteLength??t?.length??0}function Mw(t,e=!0){return e&&typeof Buffer<"u"&&t instanceof Buffer?2:t instanceof Uint8Array?1:typeof t=="string"?0:-1}var AG=g(()=>{$w()});function kS(t,e,r){if(Ht(t))return bG(t,e,r);let n=new xG.Readable({read(){}}),o=!1,s=0,i=["",new Cc(c=>new Uint8Array(c)),new Cc(c=>Buffer.from(new Uint8Array(c)))],a=-1;return t.on("data",c=>{let u=Mw(c,!0);if(a!==u&&(a>=0&&n.push(bc(i,a)),a=u),a===-1){n.push(c);return}let f=Ai(c);s+=f;let m=Ai(i[a]);if(f>=e&&m===0)n.push(c);else{let y=kw(i,a,c);!o&&s>e*2&&(o=!0,r?.warn(`@smithy/util-stream - stream chunk size ${f} is below threshold of ${e}, automatically buffering.`)),y>=e&&n.push(bc(i,a))}}),t.on("end",()=>{if(a!==-1){let c=bc(i,a);Ai(c)>0&&n.push(c)}n.push(null)}),n}var xG,TG=g(()=>{xG=require("node:stream");$w();AG();xo()});var vG,DG=g(()=>{vG=(t,e)=>{let{base64Encoder:r,bodyLengthChecker:n,checksumAlgorithmFn:o,checksumLocationName:s,streamHasher:i}=e,a=r!==void 0&&n!==void 0&&o!==void 0&&s!==void 0&&i!==void 0,c=a?i(o,t):void 0;Promise.resolve(c).catch(()=>{});let u=t.getReader();return new ReadableStream({async pull(f){let{value:m,done:y}=await u.read();if(y){if(f.enqueue(`0\r
|
|
11
|
+
`),Lu={warn:console.warn}});function br(t){let e=t.getUTCFullYear(),r=t.getUTCMonth(),n=t.getUTCDay(),o=t.getUTCDate(),s=t.getUTCHours(),i=t.getUTCMinutes(),a=t.getUTCSeconds(),c=o<10?`0${o}`:`${o}`,u=s<10?`0${s}`:`${s}`,f=i<10?`0${i}`:`${i}`,m=a<10?`0${a}`:`${a}`;return`${DAe[n]}, ${c} ${AI[r]} ${e} ${u}:${f}:${m} GMT`}var DAe,AI,IAe,IB,wAe,Ss,PAe,OAe,$Ae,hn,ys,Pp,kAe,MAe,LAe,bI,NAe,FAe,BAe,hs,UAe,GAe,Fu,wB=g(()=>{CI();DAe=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],AI=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];IAe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),IB=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=IAe.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,o,s,i,a,c,u]=e,f=ra(Fu(n)),m=hs(o,"month",1,12),y=hs(s,"day",1,31);return Pp(f,m,y,{hours:i,minutes:a,seconds:c,fractionalMilliseconds:u})},wAe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),Ss=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=wAe.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,o,s,i,a,c,u,f]=e,m=ra(Fu(n)),y=hs(o,"month",1,12),_=hs(s,"day",1,31),C=Pp(m,y,_,{hours:i,minutes:a,seconds:c,fractionalMilliseconds:u});return f.toUpperCase()!="Z"&&C.setTime(C.getTime()-GAe(f)),C},PAe=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$/),OAe=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$/),$Ae=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})$/),hn=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=PAe.exec(t);if(e){let[r,n,o,s,i,a,c,u]=e;return Pp(ra(Fu(s)),bI(o),hs(n,"day",1,31),{hours:i,minutes:a,seconds:c,fractionalMilliseconds:u})}if(e=OAe.exec(t),e){let[r,n,o,s,i,a,c,u]=e;return LAe(Pp(kAe(s),bI(o),hs(n,"day",1,31),{hours:i,minutes:a,seconds:c,fractionalMilliseconds:u}))}if(e=$Ae.exec(t),e){let[r,n,o,s,i,a,c,u]=e;return Pp(ra(Fu(u)),bI(n),hs(o.trimLeft(),"day",1,31),{hours:s,minutes:i,seconds:a,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")},ys=t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=wp(t);else if(typeof t=="object"&&t.tag===1)e=t.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(e)||e===1/0||e===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(e*1e3))},Pp=(t,e,r,n)=>{let o=e-1;return FAe(t,o,r),new Date(Date.UTC(t,o,r,hs(n.hours,"hour",0,23),hs(n.minutes,"minute",0,59),hs(n.seconds,"seconds",0,60),UAe(n.fractionalMilliseconds)))},kAe=t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+ra(Fu(t));return r<e?r+100:r},MAe=50*365*24*60*60*1e3,LAe=t=>t.getTime()-new Date().getTime()>MAe?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,bI=t=>{let e=AI.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},NAe=[31,28,31,30,31,30,31,31,30,31,30,31],FAe=(t,e,r)=>{let n=NAe[e];if(e===1&&BAe(t)&&(n=29),r>n)throw new TypeError(`Invalid day for ${AI[e]} in ${t}: ${r}`)},BAe=t=>t%4===0&&(t%100!==0||t%400===0),hs=(t,e,r,n)=>{let o=qh(Fu(t));if(o<r||o>n)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return o},UAe=t=>t==null?0:Uh("0."+t)*1e3,GAe=t=>{let e=t[0],r=1;if(e=="+")r=1;else if(e=="-")r=-1;else throw new TypeError(`Offset direction, ${e}, must be "+" or "-"`);let n=Number(t.substring(1,3)),o=Number(t.substring(4,6));return r*(n*60+o)*60*1e3},Fu=t=>{let e=0;for(;e<t.length-1&&t.charAt(e)==="0";)e++;return e===0?t:t.slice(e)}});var qe,PB=g(()=>{qe=function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})};qe.from=t=>t&&typeof t=="object"&&(t instanceof qe||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?qe(String(t)):qe(JSON.stringify(t));qe.fromObject=qe.from});function Hh(t){return(t.includes(",")||t.includes('"'))&&(t=`"${t.replace(/"/g,'\\"')}"`),t}var OB=g(()=>{});function Ei(t,e,r){let n=Number(t);if(n<e||n>r)throw new Error(`Value ${n} out of range [${e}, ${r}]`)}var xI,TI,vI,$B,kB,qAe,HAe,jAe,zAe,VAe,na,jh,zh,MB=g(()=>{xI="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",TI="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",vI="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",$B="(\\d?\\d)",kB="(\\d{4})",qAe=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),HAe=new RegExp(`^${xI}, ${$B} ${TI} ${kB} ${vI} GMT$`),jAe=new RegExp(`^${xI}, ${$B}-${TI}-(\\d\\d) ${vI} GMT$`),zAe=new RegExp(`^${xI} ${TI} ( [1-9]|\\d\\d) ${vI} ${kB}$`),VAe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],na=t=>{if(t==null)return;let e=NaN;if(typeof t=="number")e=t;else if(typeof t=="string"){if(!/^-?\d*\.?\d+$/.test(t))throw new TypeError("parseEpochTimestamp - numeric string invalid.");e=Number.parseFloat(t)}else typeof t=="object"&&t.tag===1&&(e=t.value);if(isNaN(e)||Math.abs(e)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(e*1e3))},jh=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC3339 timestamps must be strings");let e=qAe.exec(t);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${t}`);let[,r,n,o,s,i,a,,c,u]=e;Ei(n,1,12),Ei(o,1,31),Ei(s,0,23),Ei(i,0,59),Ei(a,0,60);let f=new Date(Date.UTC(Number(r),Number(n)-1,Number(o),Number(s),Number(i),Number(a),Number(c)?Math.round(parseFloat(`0.${c}`)*1e3):0));if(f.setUTCFullYear(Number(r)),u.toUpperCase()!="Z"){let[,m,y,_]=/([+-])(\d\d):(\d\d)/.exec(u)||[void 0,"+",0,0],C=m==="-"?1:-1;f.setTime(f.getTime()+C*(Number(y)*60*60*1e3+Number(_)*60*1e3))}return f},zh=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC7231 timestamps must be strings.");let e,r,n,o,s,i,a,c;if((c=HAe.exec(t))?[,e,r,n,o,s,i,a]=c:(c=jAe.exec(t))?([,e,r,n,o,s,i,a]=c,n=(Number(n)+1900).toString()):(c=zAe.exec(t))&&([,r,e,o,s,i,a,n]=c),n&&i){let u=Date.UTC(Number(n),VAe.indexOf(r),Number(e),Number(o),Number(s),Number(i),a?Math.round(parseFloat(`0.${a}`)*1e3):0);Ei(e,1,31),Ei(o,0,23),Ei(s,0,59),Ei(i,0,60);let f=new Date(u);return f.setUTCFullYear(Number(n)),f}throw new TypeError(`Invalid RFC7231 date-time value ${t}.`)}});function Vh(t,e,r){if(r<=0||!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");let n=t.split(e);if(r===1)return n;let o=[],s="";for(let i=0;i<n.length;i++)s===""?s=n[i]:s+=e+n[i],(i+1)%r===0&&(o.push(s),s="");return s!==""&&o.push(s),o}var LB=g(()=>{});var Bu,NB=g(()=>{Bu=t=>{let e=t.length,r=[],n=!1,o,s=0;for(let i=0;i<e;++i){let a=t[i];switch(a){case'"':o!=="\\"&&(n=!n);break;case",":n||(r.push(t.slice(s,i)),s=i+1);break;default:}o=a}return r.push(t.slice(s)),r.map(i=>{i=i.trim();let a=i.length;return a<2?i:(i[0]==='"'&&i[a-1]==='"'&&(i=i.slice(1,a-1)),i.replace(/\\"/g,'"'))})}});function Wh(t){return new Y(String(t),"bigDecimal")}var FB,Y,BB=g(()=>{FB=/^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/,Y=class t{string;type;constructor(e,r){if(this.string=e,this.type=r,!FB.test(e))throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${e}"`)}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||typeof e!="object")return!1;let r=e;return t.prototype.isPrototypeOf(e)||r.type==="bigDecimal"&&FB.test(r.string)}}});function Kh(t){if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let e=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2){let n=t.slice(r,r+2).toLowerCase();if(n in DI)e[r/2]=DI[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return e}function Vn(t){let e="";for(let r=0;r<t.byteLength;r++)e+=UB[t[r]];return e}var UB,DI,II=g(()=>{UB={},DI={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),UB[t]=e,DI[e]=t}});var Uu,Es,GB=g(()=>{Uu=require("node:fs"),Es=t=>{if(!t)return 0;if(typeof t=="string")return Buffer.byteLength(t);if(typeof t.byteLength=="number")return t.byteLength;if(typeof t.size=="number")return t.size;if(typeof t.start=="number"&&typeof t.end=="number")return t.end+1-t.start;if(t instanceof Uu.ReadStream){if(t.path!=null)return(0,Uu.lstatSync)(t.path).size;if(typeof t.fd=="number")return(0,Uu.fstatSync)(t.fd).size}throw new Error(`Body Length computation failed for ${t}`)}});var bt,wI=g(()=>{$h();bt=t=>t instanceof Uint8Array?t:typeof t=="string"?qt(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)});function Wn(t,e){if(e===void 0){e=0;for(let o of t)e+=o.byteLength}let r=new Uint8Array(e),n=0;for(let o of t)r.set(o,n),n+=o.byteLength;return r}var Op=g(()=>{});var Qh,PI,OI=g(()=>{oe();Qh=(t,e)=>(r,n)=>async o=>{let{response:s}=await r(o);try{let i=await e(s,t);return{response:s,output:i}}catch(i){if(Object.defineProperty(i,"$response",{value:s,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in i)){let a="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{i.message+=`
|
|
12
|
+
`+a}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(a):n.logger?.warn?.(a)}typeof i.$responseBodyText<"u"&&i.$response&&(i.$response.body=i.$responseBodyText);try{if(ft.isInstance(s)){let{headers:c={}}=s,u=Object.entries(c);i.$metadata={httpStatusCode:s.statusCode,requestId:PI(/^x-[\w-]+-request-?id$/,u),extendedRequestId:PI(/^x-[\w-]+-id-2$/,u),cfId:PI(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw i}},PI=(t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1]});var In,$p=g(()=>{In=class t extends Error{name="ProviderError";tryNextLink;constructor(e,r=!0){let n,o=!0;typeof r=="boolean"?(n=void 0,o=r):r!=null&&typeof r=="object"&&(n=r.logger,o=r.tryNextLink??!0),super(e),this.tryNextLink=o,Object.setPrototypeOf(this,t.prototype),n?.debug?.(`@smithy/property-provider ${o?"->":"(!)"} ${e}`)}static from(e,r=!0){return Object.assign(new this(e.message,r),e)}}});var oa,Yh=g(()=>{$p();oa=class t extends In{name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var Jh,qB=g(()=>{$p();Jh=class t extends In{name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var Xh,$I=g(()=>{$p();Xh=(...t)=>async()=>{if(t.length===0)throw new In("No providers in chain");let e;for(let r of t)try{return await r()}catch(n){if(e=n,n?.tryNextLink)continue;throw n}throw e}});var Zh,kI=g(()=>{Zh=t=>()=>Promise.resolve(t)});var Gu,eS=g(()=>{Gu=(t,e,r)=>{let n,o,s,i=!1,a=async()=>{o||(o=t());try{n=await o,s=!0,i=!1}finally{o=void 0}return n};return e===void 0?async c=>((!s||c?.forceRefresh)&&(n=await a()),n):async c=>((!s||c?.forceRefresh)&&(n=await a()),i?n:r&&!r(n)?(i=!0,n):(e(n)&&await a(),n))}});var Ve,tS=g(()=>{Ve=(t,e,r)=>{if(e in t){if(t[e]==="true")return!0;if(t[e]==="false")return!1;throw new Error(`Cannot load ${r} "${e}". Expected "true" or "false", got ${t[e]}.`)}}});var HB,jB=g(()=>{HB=(t,e,r)=>{if(!(e in t))return;let n=parseInt(t[e],10);if(Number.isNaN(n))throw new TypeError(`Cannot load ${r} '${e}'. Expected number, got '${t[e]}'.`);return n}});var Be,rS=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(Be||(Be={}))});var zB,VB,MI,WAe,_s,qu=g(()=>{zB=require("node:os"),VB=require("node:path"),MI={},WAe=()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT",_s=()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${VB.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let o=WAe();return MI[o]||(MI[o]=(0,zB.homedir)()),MI[o]}});var LI,NI,nS,FI=g(()=>{LI="AWS_PROFILE",NI="default",nS=t=>t.profile||process.env[LI]||NI});var WB,KB,oS,BI=g(()=>{WB=require("node:crypto"),KB=require("node:path");qu();oS=t=>{let r=(0,WB.createHash)("sha1").update(t).digest("hex");return(0,KB.join)(_s(),".aws","sso","cache",`${r}.json`)}});var QB,kp,YB,UI=g(()=>{QB=require("node:fs/promises");BI();kp={},YB=async t=>{if(kp[t])return kp[t];let e=oS(t),r=await(0,QB.readFile)(e,"utf8");return JSON.parse(r)}});var Rs,JB=g(()=>{Rs="."});var GI,XB,ZB=g(()=>{GI=De(Eo()),XB=t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(GI.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let o=r.indexOf("."),s=r.substring(0,o)===GI.IniSectionType.PROFILE?r.substring(o+1):r;return e[s]=n,e},{...t.default&&{default:t.default}})});var e2,KAe,sS,qI=g(()=>{e2=require("node:path");qu();KAe="AWS_CONFIG_FILE",sS=()=>process.env[KAe]||(0,e2.join)(_s(),".aws","config")});var t2,QAe,r2,n2=g(()=>{t2=require("node:path");qu();QAe="AWS_SHARED_CREDENTIALS_FILE",r2=()=>process.env[QAe]||(0,t2.join)(_s(),".aws","credentials")});var o2,YAe,JAe,Mp,HI=g(()=>{o2=De(Eo()),YAe=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,JAe=["__proto__","profile __proto__"],Mp=t=>{let e={},r,n;for(let o of t.split(/\r?\n/)){let s=o.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){r=void 0,n=void 0;let a=s.substring(1,s.length-1),c=YAe.exec(a);if(c){let[,u,,f]=c;Object.values(o2.IniSectionType).includes(u)&&(r=[u,f].join("."))}else r=a;if(JAe.includes(a))throw new Error(`Found invalid profile name "${a}"`)}else if(r){let a=s.indexOf("=");if(![0,-1].includes(a)){let[c,u]=[s.substring(0,a).trim(),s.substring(a+1).trim()];if(u==="")n=c;else{n&&o.trimStart()===o&&(n=void 0),e[r]=e[r]||{};let f=n?[n,c].join("."):c;e[r][f]=u}}}}return e}});var s2,jI,Lp,Rc,Np=g(()=>{s2=require("node:fs/promises"),jI={},Lp={},Rc=(t,e)=>Lp[t]!==void 0?Lp[t]:((!jI[t]||e?.ignoreCache)&&(jI[t]=(0,s2.readFile)(t,"utf8")),jI[t])});var zI,i2,Hu,iS=g(()=>{zI=require("node:path");ZB();qI();n2();qu();HI();Np();i2=()=>({}),Hu=async(t={})=>{let{filepath:e=r2(),configFilepath:r=sS()}=t,n=_s(),o="~/",s=e;e.startsWith(o)&&(s=(0,zI.join)(n,e.slice(2)));let i=r;r.startsWith(o)&&(i=(0,zI.join)(n,r.slice(2)));let a=await Promise.all([Rc(i,{ignoreCache:t.ignoreCache}).then(Mp).then(XB).catch(i2),Rc(s,{ignoreCache:t.ignoreCache}).then(Mp).catch(i2)]);return{configFile:a[0],credentialsFile:a[1]}}});var a2,c2,u2=g(()=>{a2=De(Eo()),c2=t=>Object.entries(t).filter(([e])=>e.startsWith(a2.IniSectionType.SSO_SESSION+".")).reduce((e,[r,n])=>({...e,[r.substring(r.indexOf(".")+1)]:n}),{})});var XAe,l2,d2=g(()=>{qI();u2();HI();Np();XAe=()=>({}),l2=async(t={})=>Rc(t.configFilepath??sS()).then(Mp).then(c2).catch(XAe)});var p2,f2=g(()=>{p2=(...t)=>{let e={};for(let r of t)for(let[n,o]of Object.entries(r))e[n]!==void 0?Object.assign(e[n],o):e[n]=o;return e}});var m2,g2=g(()=>{iS();f2();m2=async t=>{let e=await Hu(t);return p2(e.configFile,e.credentialsFile)}});var h2,S2=g(()=>{UI();Np();h2={getFileRecord(){return Lp},interceptFile(t,e){Lp[t]=Promise.resolve(e)},getTokenRecord(){return kp},interceptToken(t,e){kp[t]=e}}});function aS(t){try{let e=new Set(Array.from(t.match(/([A-Z_]){3,}/g)??[]));return e.delete("CONFIG"),e.delete("CONFIG_PREFIX_SEPARATOR"),e.delete("ENV"),[...e].join(", ")}catch{return t}}var VI=g(()=>{});var y2,E2=g(()=>{Yh();VI();y2=(t,e)=>async()=>{try{let r=t(process.env,e);if(r===void 0)throw new Error;return r}catch(r){throw new oa(r.message||`Not found in ENV: ${aS(t.toString())}`,{logger:e?.logger})}}});var _2,R2=g(()=>{Yh();FI();iS();VI();_2=(t,{preferredFile:e="config",...r}={})=>async()=>{let n=nS(r),{configFile:o,credentialsFile:s}=await Hu(r),i=s[n]||{},a=o[n]||{},c=e==="config"?{...i,...a}:{...a,...i};try{let f=t(c,e==="config"?o:s);if(f===void 0)throw new Error;return f}catch(u){throw new oa(u.message||`Not found in config files w/ profile [${n}]: ${aS(t.toString())}`,{logger:r.logger})}}});var ZAe,cS,WI=g(()=>{kI();ZAe=t=>typeof t=="function",cS=t=>ZAe(t)?async()=>await t():Zh(t)});var ue,KI=g(()=>{$I();eS();E2();R2();WI();ue=({environmentVariableSelector:t,configFileSelector:e,default:r},n={})=>{let{signingName:o,logger:s}=n;return Gu(Xh(y2(t,{signingName:o,logger:s}),_2(e,n),cS(r)))}});var uS,lS,C2,Cs,b2,A2=g(()=>{tS();rS();uS="AWS_USE_DUALSTACK_ENDPOINT",lS="use_dualstack_endpoint",C2=!1,Cs={environmentVariableSelector:t=>Ve(t,uS,Be.ENV),configFileSelector:t=>Ve(t,lS,Be.CONFIG),default:!1},b2={environmentVariableSelector:t=>Ve(t,uS,Be.ENV),configFileSelector:t=>Ve(t,lS,Be.CONFIG),default:void 0}});var dS,pS,x2,bs,T2,v2=g(()=>{tS();rS();dS="AWS_USE_FIPS_ENDPOINT",pS="use_fips_endpoint",x2=!1,bs={environmentVariableSelector:t=>Ve(t,dS,Be.ENV),configFileSelector:t=>Ve(t,pS,Be.CONFIG),default:!1},T2={environmentVariableSelector:t=>Ve(t,dS,Be.ENV),configFileSelector:t=>Ve(t,pS,Be.CONFIG),default:void 0}});var D2,I2=g(()=>{J();D2=t=>{let{tls:e,endpoint:r,urlParser:n,useDualstackEndpoint:o}=t;return Object.assign(t,{tls:e??!0,endpoint:we(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:we(o??!1)})}});var w2,P2=g(()=>{w2=async t=>{let{tls:e=!0}=t,r=await t.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");let o=await t.useDualstackEndpoint(),s=await t.useFipsEndpoint(),{hostname:i}=await t.regionInfoProvider(r,{useDualstackEndpoint:o,useFipsEndpoint:s})??{};if(!i)throw new Error("Cannot resolve hostname from client config");return t.urlParser(`${e?"https:":"http:"}//${i}`)}});var O2,$2=g(()=>{J();P2();O2=t=>{let e=we(t.useDualstackEndpoint??!1),{endpoint:r,useFipsEndpoint:n,urlParser:o,tls:s}=t;return Object.assign(t,{tls:s??!0,endpoint:r?we(typeof r=="string"?o(r):r):()=>w2({...t,useDualstackEndpoint:e,useFipsEndpoint:n}),isCustomEndpoint:!!r,useDualstackEndpoint:e})}});var k2,QI,YI,M2,L2,N2,F2,B2,U2,JI=g(()=>{k2="AWS_EXECUTION_ENV",QI="AWS_REGION",YI="AWS_DEFAULT_REGION",M2="AWS_EC2_METADATA_DISABLED",L2=["in-region","cross-region","mobile","standard","legacy"],N2="/latest/meta-data/placement/region",F2="/latest/api/token",B2="x-aws-ec2-metadata-token",U2="x-aws-ec2-metadata-token-ttl-seconds"});var G2,exe,j2,fS,q2,txe,H2,XI=g(()=>{JI();G2=1e3,exe=6e4,j2=0,fS=async()=>{if(!process.env[M2]&&!(Date.now()<j2))try{let t=txe(),e=(await H2({...t,path:F2,method:"PUT",headers:{[U2]:"21600"}})).toString();return(await H2({...t,path:N2,method:"GET",headers:{[B2]:e}})).toString().trim()||q2()}catch{return q2()}},q2=()=>{j2=Date.now()+exe},txe=()=>{let t=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if(t){let e=new URL(t);return{hostname:e.hostname.replace(/^\[(.+)]$/,"$1"),port:e.port?Number(e.port):void 0}}return process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6"?{hostname:"fd00:ec2::254"}:{hostname:"169.254.169.254"}},H2=async t=>{let{request:e}=await import("node:http");return new Promise((r,n)=>{let o=e({hostname:t.hostname,port:t.port,path:t.path,method:t.method,headers:t.headers,timeout:G2,signal:AbortSignal.timeout(G2)});o.on("error",s=>{n(s),o.destroy()}),o.on("timeout",()=>{n(new Error("TimeoutError from instance metadata service")),o.destroy()}),o.on("response",s=>{let{statusCode:i=400}=s;if(i<200||i>=300){n(Object.assign(new Error("Error response received from instance metadata service"),{statusCode:i})),o.destroy();return}let a=[];s.on("data",c=>a.push(c)),s.on("end",()=>{r(Buffer.concat(a)),o.destroy()})}),o.end()})}});var ju,zu,Ar,en,ZI=g(()=>{XI();ju="AWS_REGION",zu="region",Ar={environmentVariableSelector:t=>t[ju],configFileSelector:t=>t[zu],default:async()=>{let t=await fS();if(t)return t;throw new Error("Region is missing")}},en={preferredFile:"credentials"}});var z2,V2,W2=g(()=>{oe();z2=new Set,V2=(t,e=_o)=>{if(!z2.has(t)&&!e(t))if(t==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${t}" is not a valid hostname component.`);else z2.add(t)}});var mS,ew=g(()=>{mS=t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips"))});var K2,Q2=g(()=>{ew();K2=t=>mS(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t});var wn,Y2=g(()=>{W2();Q2();ew();wn=t=>{let{region:e,useFipsEndpoint:r}=t;if(!e)throw new Error("Region is missing");return Object.assign(t,{region:async()=>{let n=typeof e=="function"?await e():e,o=K2(n);return V2(o),o},useFipsEndpoint:async()=>{let n=typeof e=="string"?e:await e();return mS(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()}})}});var tw,J2=g(()=>{tw=(t=[],{useFipsEndpoint:e,useDualstackEndpoint:r})=>t.find(({tags:n})=>e===n.includes("fips")&&r===n.includes("dualstack"))?.hostname});var X2,Z2=g(()=>{X2=(t,{regionHostname:e,partitionHostname:r})=>e||(r?r.replace("{region}",t):void 0)});var eU,tU=g(()=>{eU=(t,{partitionHash:e})=>Object.keys(e||{}).find(r=>e[r].regions.includes(t))??"aws"});var rU,nU=g(()=>{rU=(t,{signingRegion:e,regionRegex:r,useFipsEndpoint:n})=>{if(e)return e;if(n){let o=r.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),s=t.match(o);if(s)return s[0].slice(1,-1)}}});var oU,sU=g(()=>{J2();Z2();tU();nU();oU=(t,{useFipsEndpoint:e=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:o,partitionHash:s})=>{let i=eU(t,{partitionHash:s}),a=t in o?t:s[i]?.endpoint??t,c={useFipsEndpoint:e,useDualstackEndpoint:r},u=tw(o[a]?.variants,c),f=tw(s[i]?.variants,c),m=X2(a,{regionHostname:u,partitionHostname:f});if(m===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:a,useFipsEndpoint:e,useDualstackEndpoint:r}}`);let y=rU(m,{signingRegion:o[a]?.signingRegion,regionRegex:s[i].regionRegex,useFipsEndpoint:e});return{partition:i,signingService:n,hostname:m,...y&&{signingRegion:y},...o[a]?.signingService&&{signingService:o[a].signingService}}}});var rxe,nxe,iU,aU=g(()=>{rxe="AWS_DEFAULTS_MODE",nxe="defaults_mode",iU={environmentVariableSelector:t=>t[rxe],configFileSelector:t=>t[nxe],default:"legacy"}});var As,oxe,sxe,cU=g(()=>{ZI();XI();KI();eS();JI();aU();As=({region:t=ue(Ar),defaultsMode:e=ue(iU)}={})=>Gu(async()=>{let r=typeof e=="function"?await e():e;switch(r?.toLowerCase()){case"auto":return oxe(t);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(r?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${L2.join(", ")}, got ${r}`)}}),oxe=async t=>{if(t){let e=typeof t=="function"?await t():t,r=await sxe();return r?e===r?"in-region":"cross-region":"standard"}return"standard"},sxe=async()=>process.env[k2]&&(process.env[QI]||process.env[YI])?process.env[QI]??process.env[YI]:fS()});var Br={};Ct(Br,{CONFIG_PREFIX_SEPARATOR:()=>Rs,CONFIG_USE_DUALSTACK_ENDPOINT:()=>lS,CONFIG_USE_FIPS_ENDPOINT:()=>pS,CredentialsProviderError:()=>oa,DEFAULT_PROFILE:()=>NI,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>C2,DEFAULT_USE_FIPS_ENDPOINT:()=>x2,ENV_PROFILE:()=>LI,ENV_USE_DUALSTACK_ENDPOINT:()=>uS,ENV_USE_FIPS_ENDPOINT:()=>dS,NODE_REGION_CONFIG_FILE_OPTIONS:()=>en,NODE_REGION_CONFIG_OPTIONS:()=>Ar,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>Cs,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>bs,ProviderError:()=>In,REGION_ENV_NAME:()=>ju,REGION_INI_NAME:()=>zu,SelectorType:()=>Be,TokenProviderError:()=>Jh,booleanSelector:()=>Ve,chain:()=>Xh,externalDataInterceptor:()=>h2,fromStatic:()=>cS,fromValue:()=>Zh,getHomeDir:()=>_s,getProfileName:()=>nS,getRegionInfo:()=>oU,getSSOTokenFilepath:()=>oS,getSSOTokenFromFile:()=>YB,loadConfig:()=>ue,loadSharedConfigFiles:()=>Hu,loadSsoSessionData:()=>l2,memoize:()=>Gu,nodeDualstackConfigSelectors:()=>b2,nodeFipsConfigSelectors:()=>T2,numberSelector:()=>HB,parseKnownFiles:()=>m2,readFile:()=>Rc,resolveCustomEndpointsConfig:()=>D2,resolveDefaultsModeConfig:()=>As,resolveEndpointsConfig:()=>O2,resolveRegionConfig:()=>wn});var ye=g(()=>{$p();Yh();qB();$I();kI();eS();tS();jB();rS();qu();FI();BI();UI();JB();iS();d2();g2();S2();Np();KI();WI();A2();v2();I2();$2();ZI();Y2();sU();cU()});var uU,lU,dU,pU=g(()=>{uU="AWS_ENDPOINT_URL",lU="endpoint_url",dU=t=>({environmentVariableSelector:e=>{let r=t.split(" ").map(s=>s.toUpperCase()),n=e[[uU,...r].join("_")];if(n)return n;let o=e[uU];if(o)return o},configFileSelector:(e,r)=>{if(e.services){let o=["services",e.services].join(".");if(!r||!r[o])throw new Error(`The services section "${e.services}" specified in the profile is not present in the shared configuration file.`);let s=r[o],i=t.split(" ").map(c=>c.toLowerCase()),a=s[[i.join("_"),lU].join(".")];if(a)return a}let n=e[lU];if(n)return n},default:void 0})});var ixe,axe,fU,mU=g(()=>{ye();ixe="AWS_IGNORE_CONFIGURED_ENDPOINT_URLS",axe="ignore_configured_endpoint_urls",fU={environmentVariableSelector:t=>Ve(t,ixe,Be.ENV),configFileSelector:t=>Ve(t,axe,Be.CONFIG),default:!1}});var Fp,gU=g(()=>{ye();pU();mU();Fp=async t=>{if(!await ue(fU)())return ue(dU(t??""))()}});var rw,cxe,uxe,lxe,hU,SU,yU=g(()=>{rw=async t=>{let e=t?.Bucket||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),SU(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!hU(e)||e.indexOf(".")!==-1&&!String(t.Endpoint).startsWith("http:")||e.toLowerCase()!==e||e.length<3)&&(t.ForcePathStyle=!0);return t.DisableMultiRegionAccessPoints&&(t.disableMultiRegionAccessPoints=!0,t.DisableMRAP=!0),t},cxe=/^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/,uxe=/(\d+\.){3}\d+/,lxe=/\.\./,hU=t=>cxe.test(t)&&!uxe.test(t)&&!lxe.test(t),SU=t=>{let[e,r,n,,,o]=t.split(":"),s=e==="arn"&&t.split(":").length>=6,i=!!(s&&r&&n&&o);if(s&&!i)throw new Error(`Invalid ARN: ${t} was an invalid ARN.`);return i}});var EU=g(()=>{yU()});var _U,RU=g(()=>{_U=(t,e,r,n=!1)=>{let o=async()=>{let s;return n?s=r.clientContextParams?.[t]??r[t]??r[e]:s=r[t]??r[e],typeof s=="function"?s():s};return t==="credentialScope"||e==="CredentialScope"?async()=>{let s=typeof r.credentials=="function"?await r.credentials():r.credentials;return s?.credentialScope??s?.CredentialScope}:t==="accountId"||e==="AccountId"?async()=>{let s=typeof r.credentials=="function"?await r.credentials():r.credentials;return s?.accountId??s?.AccountId}:t==="endpoint"||e==="endpoint"?async()=>{if(r.isCustomEndpoint===!1)return;let s=await o();if(s&&typeof s=="object"){if("url"in s)return s.url.href;if("hostname"in s){let{protocol:i,hostname:a,port:c,path:u}=s;return`${i}//${a}${c?":"+c:""}${u}`}}return s}:o}});var gS=g(()=>{oe()});function hS(t){return async(e,r,n,o)=>{if(!n.isCustomEndpoint&&!n.ignoreConfiguredEndpointUrls){let a;n.serviceConfiguredEndpoint?a=await n.serviceConfiguredEndpoint():a=await t(n.serviceId),a&&(n.endpoint=()=>Promise.resolve(vn(a)),n.isCustomEndpoint=!0,o?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${a}`))}let s=await Bp(e,r,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");let i=n.endpointProvider(s,o);if(n.isCustomEndpoint&&n.endpoint){let a=await n.endpoint();if(a?.headers){i.headers??={};for(let[c,u]of Object.entries(a.headers))i.headers[c]=Array.isArray(u)?u:[u]}}return i}}var Bp,SS=g(()=>{EU();RU();gS();Bp=async(t,e,r)=>{let n={},o=e?.getEndpointParameterInstructions?.()||{};for(let[s,i]of Object.entries(o))switch(i.type){case"staticContextParams":n[s]=i.value;break;case"contextParams":n[s]=t[i.name];break;case"clientContextParams":case"builtInParams":n[s]=await _U(i.name,s,r,i.type!=="builtInParams")();break;case"operationContextParams":n[s]=i.get(t);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return Object.keys(o).length===0&&Object.assign(n,r),String(r.serviceId).toLowerCase()==="s3"&&await rw(n),n}});function dxe(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}function yS(t){let e=hS(t);return({config:r,instructions:n})=>(o,s)=>async i=>{r.isCustomEndpoint&&dxe(s,"ENDPOINT_OVERRIDE","N");let a=await e(i.input,{getEndpointParameterInstructions(){return n}},{...r},s);s.endpointV2=a,s.authSchemes=a.properties?.authSchemes;let c=s.authSchemes?.[0];if(c){s.signing_region=c.signingRegion,s.signing_service=c.signingName;let f=Le(s)?.selectedHttpAuthScheme?.httpAuthOption;f&&(f.signingProperties=Object.assign(f.signingProperties||{},{signing_region:c.signingRegion,signingRegion:c.signingRegion,signing_service:c.signingName,signingName:c.signingName,signingRegionSet:c.signingRegionSet},c.properties))}return o({...i})}}var nw=g(()=>{oe();SS()});function CU(t){let e=yS(t);return(r,n)=>({applyToStack:o=>{o.addRelativeTo(e({config:r,instructions:n}),ow)}})}var pxe,ow,sw=g(()=>{nw();pxe={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0},ow={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:pxe.name}});function bU(t){return e=>{let r=e.tls??!0,{endpoint:n,useDualstackEndpoint:o,useFipsEndpoint:s}=e,i=n!=null?async()=>vn(await we(n)()):void 0,c=Object.assign(e,{endpoint:i,tls:r,isCustomEndpoint:!!n,useDualstackEndpoint:we(o??!1),useFipsEndpoint:we(s??!1),ignoreConfiguredEndpointUrls:!!e.ignoreConfiguredEndpointUrls}),u;return c.serviceConfiguredEndpoint=async()=>(e.serviceId&&!u&&(u=t(e.serviceId)),u),c}}var AU=g(()=>{oe();gS()});var Kn,xU=g(()=>{Kn=class t{nodes;root;conditions;results;constructor(e,r,n,o){this.nodes=e,this.root=r,this.conditions=n,this.results=o}static from(e,r,n,o){return new t(e,r,n,o)}}});var Qn,TU=g(()=>{Qn=class{capacity;data=new Map;parameters=[];constructor({size:e,params:r}){this.capacity=e??50,r&&(this.parameters=r)}get(e,r){let n=this.hash(e);if(n===!1)return r();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let o=this.data.keys(),s=0;for(;;){let{value:i,done:a}=o.next();if(this.data.delete(i),a||++s>10)break}}this.data.set(n,r())}return this.data.get(n)}size(){return this.data.size}hash(e){let r="",{parameters:n}=this;if(n.length===0)return!1;for(let o of n){let s=e[o],i=s==null?"\0":String(s);if(i.includes("|;"))return!1;r+=i+"|;"}return r}}});var be,vU=g(()=>{be=class extends Error{constructor(e){super(e),this.name="EndpointError"}}});var Pn=g(()=>{vU()});var xs,DU=g(()=>{xs="endpoints"});function On(t){return typeof t!="object"||t==null?t:"ref"in t?`$${On(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(On).join(", ")})`:JSON.stringify(t,null,2)}var IU=g(()=>{});var Up=g(()=>{DU();IU()});var Sn,iw=g(()=>{Sn={}});var aw,wU=g(()=>{aw=(t,e)=>t===e});function cw(...t){for(let e of t)if(e!=null)return e}var PU=g(()=>{});var OU,$U=g(()=>{Pn();OU=t=>{let e=t.split("."),r=[];for(let n of e){let o=n.indexOf("[");if(o!==-1){if(n.indexOf("]")!==n.length-1)throw new be(`Path: '${t}' does not end with ']'`);let s=n.slice(o+1,-1);if(Number.isNaN(parseInt(s)))throw new be(`Invalid array index: '${s}' in path: '${t}'`);o!==0&&r.push(n.slice(0,o)),r.push(s)}else r.push(n)}return r}});var Gp,kU=g(()=>{Pn();$U();Gp=(t,e)=>OU(e).reduce((r,n)=>{if(typeof r!="object")throw new be(`Index '${n}' in '${e}' not found in '${JSON.stringify(t)}'`);if(Array.isArray(r)){let o=parseInt(n);return r[o<0?r.length+o:o]}return r[n]},t)});var uw,MU=g(()=>{uw=t=>t!=null});function lw(t,e,r){return t?e:r}var LU=g(()=>{});var dw,NU=g(()=>{dw=t=>!t});var fxe,_i,pw=g(()=>{fxe=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}$"),_i=t=>fxe.test(t)||t.startsWith("[")&&t.endsWith("]")});var ES,fw,mw,FU=g(()=>{ES=De(Eo());pw();fw={[ES.EndpointURLScheme.HTTP]:80,[ES.EndpointURLScheme.HTTPS]:443},mw=t=>{let e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){let{hostname:y,port:_,protocol:C="",path:A="",query:x={}}=t,T=new URL(`${C}//${y}${_?`:${_}`:""}${A}`);return T.search=Object.entries(x).map(([I,q])=>`${I}=${q}`).join("&"),T}return new URL(t)}catch{return null}})();if(!e)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;let r=e.href,{host:n,hostname:o,pathname:s,protocol:i,search:a}=e;if(a)return null;let c=i.slice(0,-1);if(!Object.values(ES.EndpointURLScheme).includes(c))return null;let u=_i(o),f=r.includes(`${n}:${fw[c]}`)||typeof t=="string"&&t.includes(`${n}:${fw[c]}`),m=`${n}${f?`:${fw[c]}`:""}`;return{scheme:c,authority:m,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:u}}});function gw(t,e,r){if(r===1)return[t];if(t==="")return[""];let n=t.split(e);return r===0?n:n.slice(0,r-1).concat(n.slice(1).join(e))}var BU=g(()=>{});var hw,UU=g(()=>{hw=(t,e)=>t===e});var Sw,GU=g(()=>{Sw=(t,e,r,n)=>t==null||e>=r||t.length<r||/[^\u0000-\u007f]/.test(t)?null:n?t.substring(t.length-r,t.length-e):t.substring(e,r)});var yw,qU=g(()=>{yw=t=>encodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)});var Ew=g(()=>{wU();PU();kU();MU();oe();LU();NU();FU();BU();UU();GU();qU()});var HU,jU=g(()=>{Ew();HU={booleanEquals:aw,coalesce:cw,getAttr:Gp,isSet:uw,isValidHostLabel:_o,ite:lw,not:dw,parseURL:mw,split:gw,stringEquals:hw,substring:Sw,uriEncode:yw}});var _S,_w=g(()=>{Ew();_S=(t,e)=>{let r=[],{referenceRecord:n,endpointParams:o}=e,s=0;for(;s<t.length;){let i=t.indexOf("{",s);if(i===-1){r.push(t.slice(s));break}r.push(t.slice(s,i));let a=t.indexOf("}",i);if(a===-1){r.push(t.slice(i));break}t[i+1]==="{"&&t[a+1]==="}"&&(r.push(t.slice(i+1,a)),s=a+2);let c=t.substring(i+1,a);if(c.includes("#")){let[u,f]=c.split("#");r.push(Gp(n[u]??o[u],f))}else r.push(n[c]??o[c]);s=a+1}return r.join("")}});var zU,VU=g(()=>{zU=({ref:t},e)=>e.referenceRecord[t]??e.endpointParams[t]});var Ri,RS,WU,Vu=g(()=>{Pn();iw();jU();_w();VU();Ri=(t,e,r)=>{if(typeof t=="string")return _S(t,r);if(t.fn)return WU.callFunction(t,r);if(t.ref)return zU(t,r);throw new be(`'${e}': ${String(t)} is not a string, function or reference.`)},RS=({fn:t,argv:e},r)=>{let n=Array(e.length);for(let i=0;i<n.length;++i){let a=e[i];typeof a=="boolean"||typeof a=="number"?n[i]=a:n[i]=WU.evaluateExpression(a,"arg",r)}let o=t.indexOf(".");if(o!==-1){let a=Sn[t.slice(0,o)]?.[t.slice(o+1)];if(typeof a=="function")return a(...n)}let s=HU[t];if(typeof s=="function")return s(...n);throw new Error(`function ${t} not loaded in endpointFunctions.`)},WU={evaluateExpression:Ri,callFunction:RS}});var KU=g(()=>{Vu()});var CS,Rw=g(()=>{Up();Pn();KU();CS=(t,e)=>{let{assign:r}=t;if(r&&r in e.referenceRecord)throw new be(`'${r}' is already defined in Reference Record.`);let n=RS(t,e);e.logger?.debug?.(`${xs} evaluateCondition: ${On(t)} = ${On(n)}`);let o=n===""?!0:!!n;return r!=null?{result:o,toAssign:{name:r,value:n}}:{result:o}}});var bS,Cw=g(()=>{Pn();Vu();bS=(t,e)=>Object.entries(t??{}).reduce((r,[n,o])=>(r[n]=o.map(s=>{let i=Ri(s,"Header value entry",e);if(typeof i!="string")throw new be(`Header '${n}' value '${i}' is not a string`);return i}),r),{})});var qp,QU,YU,bw=g(()=>{Pn();_w();qp=(t,e)=>Object.entries(t).reduce((r,[n,o])=>(r[n]=YU.getEndpointProperty(o,e),r),{}),QU=(t,e)=>{if(Array.isArray(t))return t.map(r=>QU(r,e));switch(typeof t){case"string":return _S(t,e);case"object":if(t===null)throw new be(`Unexpected endpoint property: ${t}`);return YU.getEndpointProperties(t,e);case"boolean":return t;default:throw new be(`Unexpected endpoint property type: ${typeof t}`)}},YU={getEndpointProperty:QU,getEndpointProperties:qp}});var AS,Aw=g(()=>{Pn();Vu();AS=(t,e)=>{let r=Ri(t,"Endpoint URL",e);if(typeof r=="string")try{return new URL(r)}catch(n){throw console.error(`Failed to construct URL with ${r}`,n),n}throw new be(`Endpoint URL must be a string, got ${typeof r}`)}});var xw,Ts,JU=g(()=>{Pn();Rw();Vu();Cw();bw();Aw();xw=1e8,Ts=(t,e)=>{let{nodes:r,root:n,results:o,conditions:s}=t,i=n,a={},c={referenceRecord:a,endpointParams:e.endpointParams,logger:e.logger};for(;i!==1&&i!==-1&&i<xw;){let u=3*(Math.abs(i)-1),[f,m,y]=[r[u],r[u+1],r[u+2]],[_,C,A]=s[f],x=CS({fn:_,assign:A,argv:C},c);if(x.toAssign){let{name:T,value:I}=x.toAssign;a[T]=I}i=i>=0===x.result?m:y}if(i>=xw){let u=o[i-xw];if(u[0]===-1){let[,_]=u;throw new be(Ri(_,"Error",c))}let[f,m,y]=u;return{url:AS(f,c),properties:qp(m,c),headers:bS(y??{},c)}}throw new be("No matching endpoint.")}});var Wu,xS=g(()=>{Up();Rw();Wu=(t=[],e)=>{let r={},n={...e,referenceRecord:{...e.referenceRecord}},o=!1;for(let s of t){let{result:i,toAssign:a}=CS(s,n);if(!i)return{result:i};a&&(o=!0,r[a.name]=a.value,n.referenceRecord[a.name]=a.value,e.logger?.debug?.(`${xs} assign: ${a.name} := ${On(a.value)}`))}return o?{result:!0,referenceRecord:r}:{result:!0}}});var XU,ZU=g(()=>{Up();xS();Cw();bw();Aw();XU=(t,e)=>{let{conditions:r,endpoint:n}=t,{result:o,referenceRecord:s}=Wu(r,e);if(!o)return;let i=s?{...e,referenceRecord:{...e.referenceRecord,...s}}:e,{url:a,properties:c,headers:u}=n;e.logger?.debug?.(`${xs} Resolving endpoint from template: ${On(n)}`);let f={url:AS(a,i)};return u!=null&&(f.headers=bS(u,i)),c!=null&&(f.properties=qp(c,i)),f}});var eG,tG=g(()=>{Pn();xS();Vu();eG=(t,e)=>{let{conditions:r,error:n}=t,{result:o,referenceRecord:s}=Wu(r,e);if(!o)return;let i=s?{...e,referenceRecord:{...e.referenceRecord,...s}}:e;throw new be(Ri(n,"Error",i))}});var TS,rG,Tw,nG=g(()=>{Pn();xS();ZU();tG();TS=(t,e)=>{for(let r of t)if(r.type==="endpoint"){let n=XU(r,e);if(n)return n}else if(r.type==="error")eG(r,e);else if(r.type==="tree"){let n=Tw.evaluateTreeRule(r,e);if(n)return n}else throw new be(`Unknown endpoint rule: ${r}`);throw new be("Rules evaluation failed")},rG=(t,e)=>{let{conditions:r,rules:n}=t,{result:o,referenceRecord:s}=Wu(r,e);if(!o)return;let i=s?{...e,referenceRecord:{...e.referenceRecord,...s}}:e;return Tw.evaluateRules(n,i)},Tw={evaluateRules:TS,evaluateTreeRule:rG}});var oG=g(()=>{nG()});var Hp,sG=g(()=>{oe();Up();Pn();oG();Hp=(t,e)=>{let{endpointParams:r,logger:n}=e,{parameters:o,rules:s}=t;e.logger?.debug?.(`${xs} Initial EndpointParams: ${On(r)}`);for(let a in o){if(!W(o,a))continue;let c=o[a],u=r[a];if(u==null&&c.default!=null){r[a]=c.default;continue}if(c.required&&u==null)throw new be(`Missing required parameter: '${a}'`)}let i=TS(s,{endpointParams:r,logger:n,referenceRecord:{}});return e.logger?.debug?.(`${xs} Resolved endpoint: ${On(i)}`),i}});var iG,aG=g(()=>{iG=t=>{let{endpoint:e}=t;return e===void 0&&(t.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}),t}});var jp={};Ct(jp,{BinaryDecisionDiagram:()=>Kn,EndpointCache:()=>Qn,EndpointError:()=>be,customEndpointFunctions:()=>Sn,decideEndpoint:()=>Ts,endpointMiddleware:()=>gxe,endpointMiddlewareOptions:()=>ow,getEndpointFromInstructions:()=>mxe,getEndpointPlugin:()=>bi,isIpAddress:()=>_i,isValidHostLabel:()=>_o,middlewareEndpointToEndpointV1:()=>vn,resolveEndpoint:()=>Hp,resolveEndpointConfig:()=>Ci,resolveEndpointRequiredConfig:()=>iG,resolveParams:()=>Bp,toEndpointV1:()=>vn});var mxe,Ci,gxe,bi,He=g(()=>{gU();SS();nw();sw();AU();oe();xU();TU();JU();pw();oe();iw();sG();Pn();SS();gS();sw();aG();mxe=hS(Fp),Ci=bU(Fp),gxe=yS(Fp),bi=CU(Fp)});var vS,vw=g(()=>{He();vS=(t,e)=>(r,n)=>async o=>{let s=t,i=n.endpointV2?async()=>vn(n.endpointV2):s.endpoint;if(!i)throw new Error("No valid endpoint provider available.");let a=await e(o.input,{...t,endpoint:i});return r({...o,request:a})}});function cG(t,e,r){return{applyToStack:n=>{n.add(Qh(t,r),Dw),n.add(vS(t,e),Iw)}}}var Dw,Iw,uG=g(()=>{OI();vw();Dw={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Iw={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});function lG(t,e){return Buffer.isBuffer(t)?t:typeof t=="string"?ea(t,e):ArrayBuffer.isView(t)?Ao(t.buffer,t.byteOffset,t.byteLength):Ao(t)}var IS,DS,dG=g(()=>{IS=require("node:crypto");ta();wI();DS=class{algorithmIdentifier;secret;hash;constructor(e,r){this.algorithmIdentifier=e,this.secret=r,this.reset()}update(e,r){this.hash.update(bt(lG(e,r)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,IS.createHmac)(this.algorithmIdentifier,lG(this.secret)):(0,IS.createHash)(this.algorithmIdentifier)}}});var pG,Ku,ww=g(()=>{pG=require("node:stream");yI();Ku=class extends pG.Readable{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;constructor({expectedChecksum:e,checksum:r,source:n,checksumSourceLocation:o,base64Encoder:s}){if(super(),typeof n.pipe!="function")throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`);this.source=n,this.base64Encoder=s??Ie,this.expectedChecksum=e,this.checksum=r,this.checksumSourceLocation=o,this.source.on("data",this.onSourceData),this.source.on("end",this.onSourceEnd),this.source.on("error",this.onSourceError),this.source.on("close",this.onSourceClose),this.source.pause()}onSourceData=e=>{if(!this.destroyed){try{this.checksum.update(e)}catch(r){this.destroy(r);return}this.push(e)||this.source.pause()}};onSourceEnd=async()=>{if(!this.destroyed){try{let e=await this.checksum.digest(),r=this.base64Encoder(e);if(this.expectedChecksum!==r){this.destroy(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${r}" in response header "${this.checksumSourceLocation}".`));return}}catch(e){this.destroy(e);return}this.push(null)}};onSourceError=e=>{this.destroy(e)};onSourceClose=()=>{!this.destroyed&&!this.source.readableEnded&&this.destroy(new Error("Connection lost or stream closed before all data was received."))};_read(e){this.source.resume()}_destroy(e,r){this.source?.removeListener("data",this.onSourceData),this.source?.removeListener("end",this.onSourceEnd),this.source?.removeListener("error",this.onSourceError),this.source?.removeListener("close",this.onSourceClose),this.source?.destroy(),r(e)}}});var Ht,sa,xo=g(()=>{Ht=t=>typeof ReadableStream=="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream),sa=t=>typeof Blob=="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob)});var fG,mG=g(()=>{fG=t=>new TextEncoder().encode(t)});var gG,JAt,hG,wS,Pw,SG,yG=g(()=>{gG="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",JAt=Object.entries(gG).reduce((t,[e,r])=>(t[r]=Number(e),t),{}),hG=gG.split(""),wS=6,Pw=8,SG=63});function PS(t){let e;typeof t=="string"?e=fG(t):e=t;let r=typeof e=="object"&&typeof e.length=="number",n=typeof e=="object"&&typeof e.byteOffset=="number"&&typeof e.byteLength=="number";if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let o="";for(let s=0;s<e.length;s+=3){let i=0,a=0;for(let u=s,f=Math.min(s+3,e.length);u<f;u++)i|=e[u]<<(f-u-1)*Pw,a+=Pw;let c=Math.ceil(a/wS);i<<=c*wS-a;for(let u=1;u<=c;u++){let f=(c-u)*wS;o+=hG[(i&SG<<f)>>f]}o+="==".slice(0,4-c)}return o}var Ow=g(()=>{mG();yG()});var hxe,OS,EG=g(()=>{hxe=typeof ReadableStream=="function"?ReadableStream:function(){},OS=class extends hxe{}});var _G,RG=g(()=>{Ow();xo();EG();_G=({expectedChecksum:t,checksum:e,source:r,checksumSourceLocation:n,base64Encoder:o})=>{if(!Ht(r))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let s=o??PS;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let i=new TransformStream({start(){},async transform(c,u){e.update(c),u.enqueue(c)},async flush(c){let u=await e.digest(),f=s(u);if(t!==f){let m=new Error(`Checksum mismatch: expected "${t}" but received "${f}" in response header "${n}".`);c.error(m)}else c.terminate()}});r.pipeThrough(i);let a=i.readable;return Object.setPrototypeOf(a,OS.prototype),a}});function $S(t){return typeof ReadableStream=="function"&&Ht(t.source)?_G(t):new Ku(t)}var CG=g(()=>{xo();ww();RG()});var Cc,$w=g(()=>{Cc=class{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e),this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){let n=this.byteArrays[0];return this.reset(),n}let e=this.allocByteArray(this.byteLength),r=0;for(let n=0;n<this.byteArrays.length;++n){let o=this.byteArrays[n];e.set(o,r),r+=o.byteLength}return this.reset(),e}reset(){this.byteArrays=[],this.byteLength=0}}});function bG(t,e,r){let n=t.getReader(),o=!1,s=0,i=["",new Cc(u=>new Uint8Array(u))],a=-1,c=async u=>{let{value:f,done:m}=await n.read(),y=f;if(m){if(a!==-1){let _=bc(i,a);Ai(_)>0&&u.enqueue(_)}u.close()}else{let _=Mw(y,!1);if(a!==_&&(a>=0&&u.enqueue(bc(i,a)),a=_),a===-1){u.enqueue(y);return}let C=Ai(y);s+=C;let A=Ai(i[a]);if(C>=e&&A===0)u.enqueue(y);else{let x=kw(i,a,y);!o&&s>e*2&&(o=!0,r?.warn(`@smithy/util-stream - stream chunk size ${C} is below threshold of ${e}, automatically buffering.`)),x>=e?u.enqueue(bc(i,a)):await c(u)}}};return new ReadableStream({pull:c})}function kw(t,e,r){switch(e){case 0:return t[0]+=r,Ai(t[0]);case 1:case 2:return t[e].push(r),Ai(t[e])}}function bc(t,e){switch(e){case 0:let r=t[0];return t[0]="",r;case 1:case 2:return t[e].flush()}throw new Error(`@smithy/util-stream - invalid index ${e} given to flush()`)}function Ai(t){return t?.byteLength??t?.length??0}function Mw(t,e=!0){return e&&typeof Buffer<"u"&&t instanceof Buffer?2:t instanceof Uint8Array?1:typeof t=="string"?0:-1}var AG=g(()=>{$w()});function kS(t,e,r){if(Ht(t))return bG(t,e,r);let n=new xG.Readable({read(){}}),o=!1,s=0,i=["",new Cc(c=>new Uint8Array(c)),new Cc(c=>Buffer.from(new Uint8Array(c)))],a=-1;return t.on("data",c=>{let u=Mw(c,!0);if(a!==u&&(a>=0&&n.push(bc(i,a)),a=u),a===-1){n.push(c);return}let f=Ai(c);s+=f;let m=Ai(i[a]);if(f>=e&&m===0)n.push(c);else{let y=kw(i,a,c);!o&&s>e*2&&(o=!0,r?.warn(`@smithy/util-stream - stream chunk size ${f} is below threshold of ${e}, automatically buffering.`)),y>=e&&n.push(bc(i,a))}}),t.on("end",()=>{if(a!==-1){let c=bc(i,a);Ai(c)>0&&n.push(c)}n.push(null)}),n}var xG,TG=g(()=>{xG=require("node:stream");$w();AG();xo()});var vG,DG=g(()=>{vG=(t,e)=>{let{base64Encoder:r,bodyLengthChecker:n,checksumAlgorithmFn:o,checksumLocationName:s,streamHasher:i}=e,a=r!==void 0&&n!==void 0&&o!==void 0&&s!==void 0&&i!==void 0,c=a?i(o,t):void 0;Promise.resolve(c).catch(()=>{});let u=t.getReader();return new ReadableStream({async pull(f){let{value:m,done:y}=await u.read();if(y){if(f.enqueue(`0\r
|
|
13
13
|
`),a){let _=r(await c);f.enqueue(`${s}:${_}\r
|
|
14
14
|
`),f.enqueue(`\r
|
|
15
15
|
`)}f.close()}else f.enqueue(`${(n(m)||0).toString(16)}\r
|
|
@@ -19,9 +19,9 @@ ${m}\r
|
|
|
19
19
|
`)||r.pause())}),r.on("error",y=>{m.destroy(y)}),r.pause(),r.on("end",async()=>{try{if(m.push(`0\r
|
|
20
20
|
`),u){let y=o(await f);m.push(`${a}:${y}\r
|
|
21
21
|
`),m.push(`\r
|
|
22
|
-
`)}m.push(null)}catch(y){m.destroy(y)}}),m}var IG,PG=g(()=>{IG=require("node:stream");DG();xo()});async function OG(t,e){let r=0,n=[],o=t.getReader(),s=!1;for(;!s;){let{done:c,value:u}=await o.read();if(u&&(n.push(u),r+=u?.byteLength??0),r>=e)break;s=c}o.releaseLock();let i=new Uint8Array(Math.min(e,r)),a=0;for(let c of n){if(c.byteLength>i.byteLength-a){i.set(c.subarray(0,i.byteLength-a),a);break}else i.set(c,a);a+=c.length}return i}var $G=g(()=>{});var kG,MG,Lw,LG=g(()=>{kG=require("node:stream");Op();$G();xo();MG=(t,e)=>Ht(t)?OG(t,e):new Promise((r,n)=>{let o=new Lw;o.limit=e,t.pipe(o),t.on("error",s=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=
|
|
23
|
-
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return o.stream()};return Object.assign(t,{transformToByteArray:r,transformToString:async o=>{let s=await r();if(o==="base64")return PS(s);if(o==="hex")return zn(s);if(o===void 0||o==="utf8"||o==="utf-8")return NG(s);if(typeof TextDecoder=="function")return new TextDecoder(o).decode(s);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(e)throw new Error(UG);if(e=!0,GG(t))return n(t);if(Ht(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)}})},GG=t=>typeof Blob=="function"&&t instanceof Blob});var jG,MS,Uw,Gw=g(()=>{jG=require("node:stream");Op();Bw();xo();MS=t=>sa(t)?Nw(t):Ht(t)?Fw(t):new Promise((e,r)=>{let n=new Uw,o=t;o.pipe(n),o.on("error",s=>{n.end(),r(s)}),n.on("error",r),n.on("finish",function(){let s=Vn(this.bufferedBytes);e(s)})}),Uw=class extends jG.Writable{bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var LS,zG,NS,VG=g(()=>{LS=require("node:stream");ta();HG();Gw();zG="The stream has already been transformed.",NS=t=>{if(!(t instanceof LS.Readable))try{return qG(t)}catch{let o=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${o}`)}let e=!1,r=async()=>{if(e)throw new Error(zG);return e=!0,await MS(t)};return Object.assign(t,{transformToByteArray:r,transformToString:async n=>{let o=await r();return n===void 0||Buffer.isEncoding(n)?Ao(o.buffer,o.byteOffset,o.byteLength).toString(n):new TextDecoder(n).decode(o)},transformToWebStream:()=>{if(e)throw new Error(zG);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof LS.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,LS.Readable.toWeb(t)}})}});async function WG(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}var KG=g(()=>{});async function QG(t){if(Ht(t)||sa(t))return WG(t);let e=new qw.PassThrough,r=new qw.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}var qw,YG=g(()=>{qw=require("node:stream");KG();xo()});var To={};Ct(To,{ChecksumStream:()=>Ku,Hash:()=>DS,LazyJsonString:()=>qe,NumericValue:()=>Y,Uint8ArrayBlobAdapter:()=>Ac,_parseEpochTimestamp:()=>na,_parseRfc3339DateTimeWithOffset:()=>jh,_parseRfc7231DateTime:()=>zh,calculateBodyLength:()=>Es,concatBytes:()=>Vn,copyDocumentWithTransform:()=>gB,createBufferedReadable:()=>kS,createChecksumStream:()=>$S,dateToUtcString:()=>br,deserializerMiddleware:()=>Qh,deserializerMiddlewareOption:()=>Dw,expectBoolean:()=>yB,expectByte:()=>Nh,expectFloat32:()=>Ip,expectInt:()=>EB,expectInt32:()=>Mh,expectLong:()=>Mu,expectNonNull:()=>_B,expectNumber:()=>ku,expectObject:()=>_I,expectShort:()=>Lh,expectString:()=>RB,expectUnion:()=>Bh,fromArrayBuffer:()=>Ao,fromBase64:()=>Xe,fromHex:()=>Kh,fromString:()=>ea,fromUtf8:()=>qt,generateIdempotencyToken:()=>xr,getAwsChunkedEncodingStream:()=>wG,getSerdePlugin:()=>cG,handleFloat:()=>bB,hasOwn:()=>W,headStream:()=>MG,isArrayBuffer:()=>$u,isBlob:()=>sa,isReadableStream:()=>Ht,limitedParseDouble:()=>Gh,limitedParseFloat:()=>AB,limitedParseFloat32:()=>xB,logger:()=>Lu,nv:()=>Wh,parseBoolean:()=>SB,parseEpochTimestamp:()=>ys,parseRfc3339DateTime:()=>IB,parseRfc3339DateTimeWithOffset:()=>Ss,parseRfc7231DateTime:()=>gn,quoteHeader:()=>Hh,sdkStreamMixin:()=>NS,serializerMiddleware:()=>vS,serializerMiddlewareOption:()=>Iw,splitEvery:()=>Vh,splitHeader:()=>Bu,splitStream:()=>QG,streamCollector:()=>MS,strictParseByte:()=>qh,strictParseDouble:()=>wp,strictParseFloat:()=>CB,strictParseFloat32:()=>Uh,strictParseInt:()=>vB,strictParseInt32:()=>DB,strictParseLong:()=>RI,strictParseShort:()=>ra,toBase64:()=>Ie,toHex:()=>zn,toUint8Array:()=>bt,toUtf8:()=>ze,v4:()=>Qu});var JG,Ac,hxe,Qu,xr,j=g(()=>{JG=require("node:crypto");uB();yI();dB();$h();pB();mB();hB();wB();PB();CI();OB();MB();LB();NB();BB();II();GB();wI();Op();ta();SI();OI();uG();vw();dG();ww();CG();TG();PG();LG();VG();YG();xo();Gw();oe();Ac=class extends lB(ze,qt,Ie,Xe){},hxe=JG.getRandomValues,Qu=fB(hxe),xr=Qu});var At,Yu=g(()=>{j();At=async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return Ac.mutate(t);if(!t)return Ac.mutate(new Uint8Array);let r=e.streamCollector(t);return Ac.mutate(await r)}});function vo(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var FS=g(()=>{});var Zt,Ju=g(()=>{Zt=class{serdeContext;setSerdeContext(e){this.serdeContext=e}}});async function BS(t,e,r=1024*1024){let n=t.size,o=0;for(;o<n;){let s=t.slice(o,Math.min(n,o+r));e(new Uint8Array(await s.arrayBuffer())),o+=s.size}}var Hw=g(()=>{});var XG,ZG=g(()=>{Hw();XG=async function(e,r){let n=new e;return await BS(r,o=>{n.update(o)}),n.digest()}});var e4,Xu,jw=g(()=>{e4=require("node:stream");j();Xu=class extends e4.Writable{hash;constructor(e,r){super(r),this.hash=e}_write(e,r,n){try{this.hash.update(bt(e))}catch(o){return n(o)}n()}}});var t4,r4,Sxe,n4=g(()=>{t4=require("node:fs");jw();r4=(t,e)=>new Promise((r,n)=>{if(!Sxe(e)){n(new Error("Unable to calculate hash for non-file streams."));return}let o=(0,t4.createReadStream)(e.path,{start:e.start,end:e.end}),s=new t,i=new Xu(s);o.pipe(i),o.on("error",a=>{i.end(),n(a)}),i.on("error",n),i.on("finish",function(){s.digest().then(r).catch(n)})}),Sxe=t=>typeof t.path=="string"});var o4,s4=g(()=>{jw();o4=(t,e)=>{if(e.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let r=new t,n=new Xu(r);return e.pipe(n),new Promise((o,s)=>{e.on("error",i=>{n.end(),s(i)}),n.on("error",s),n.on("finish",()=>{r.digest().then(o).catch(s)})})}});function zw(t,e){let r=t[0],n=t[1],o=t[2],s=t[3];for(let i=0;i<64;++i){let a,c;i<16?(a=n&o|~n&s,c=i):i<32?(a=s&n|o&~s,c=(5*i+1)%16):i<48?(a=n^o^s,c=(3*i+5)%16):(a=o^(n|~s),c=7*i%16);let u=e.getUint32(c*4,!0),f=s;s=o,o=n;let m=yxe[(i>>4)*4+(i&3)],y=(r+a&ia)+(u+Exe[i]&ia)&ia;n=n+((y<<m|y>>>32-m)>>>0)&ia,r=f}t[0]=t[0]+r&ia,t[1]=t[1]+n&ia,t[2]=t[2]+o&ia,t[3]=t[3]+s&ia}var Zu,i4,ia,yxe,Exe,Vw=g(()=>{j();Zu=class{digestLength=16;state=Uint32Array.from(i4);writeBuffer=new DataView(new ArrayBuffer(64));bufferLength=0;bytesHashed=0;update(e){let r=bt(e),n=0,o=r.byteLength;for(this.bytesHashed+=o;o>0;)this.writeBuffer.setUint8(this.bufferLength++,r[n++]),--o,this.bufferLength===64&&(zw(this.state,this.writeBuffer),this.bufferLength=0)}async digest(){let e=Uint32Array.from(this.state),r=new DataView(this.writeBuffer.buffer.slice(0)),n=this.bufferLength,o=this.bytesHashed*8;if(r.setUint8(n++,128),this.bufferLength%64>=56){for(let a=n;a<64;++a)r.setUint8(a,0);zw(e,r),n=0}for(let a=n;a<56;++a)r.setUint8(a,0);r.setUint32(56,o>>>0,!0),r.setUint32(60,Math.floor(o/2**32),!0),zw(e,r);let s=new Uint8Array(16),i=new DataView(s.buffer);for(let a=0;a<4;++a)i.setUint32(a*4,e[a],!0);return s}reset(){this.state.set(i4),this.writeBuffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0}},i4=[1732584193,4023233417,2562383102,271733878],ia=4294967295,yxe=Uint8Array.of(7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21),Exe=Array.from({length:64},(t,e)=>Math.abs(Math.sin(e+1))*2**32>>>0)});function Rxe(){return class{digestLength=16;hash=(0,US.createHash)("md5");update(e){this.hash.update(bt(e))}async digest(){let e=this.hash.copy().digest();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=(0,US.createHash)("md5")}}}var US,_xe,Ww,a4=g(()=>{US=require("node:crypto");j();Vw();_xe=(()=>{try{return(0,US.createHash)("md5"),!0}catch{return!1}})(),Ww=_xe?Rxe():Zu});var c4,Kw,xc,Qw=g(()=>{c4=new Uint32Array(256);for(let t=0;t<256;++t){let e=t;for(let r=0;r<8;++r)e=e&1?3988292384^e>>>1:e>>>1;c4[t]=e>>>0}Kw=4294967295,xc=class{digestLength=4;checksum=Kw;update(e){for(let r=0;r<e.length;++r)this.checksum=this.checksum>>>8^c4[(this.checksum^e[r])&255]}digestSync(){return(this.checksum^Kw)>>>0}async digest(){let e=this.digestSync(),r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!1),r}reset(){this.checksum=Kw}}});function Cxe(t){return class{digestLength=4;value=0;update(r){this.value=t(r,this.value)}digestSync(){return this.value>>>0}async digest(){let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,this.digestSync(),!1),r}reset(){this.value=0}}}var Yw,u4,Do,l4=g(()=>{Yw=De(require("node:zlib"));Qw();u4=typeof Yw.crc32=="function"?Yw.crc32:void 0,Do=u4?Cxe(u4):xc});var Tr,d4,bxe,Io,p4,Axe,GS=g(()=>{j();Tr=64,d4=32,bxe=2**53-1,Io=class t{digestLength=d4;state=Int32Array.from(p4);w;buffer=new Uint8Array(64);bufferLength=0;bytesHashed=0;finished=!1;inner;outer;constructor(e){if(e){let r=t.normalizeKey(e);this.inner=new t,this.outer=new t;let{inner:n,outer:o}=this,s=new Uint8Array(Tr*2);for(let i=0;i<Tr;++i)s[i]=54^r[i],s[i+Tr]=92^r[i];n.update(s.subarray(0,Tr)),o.update(s.subarray(Tr))}}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.inner){this.inner.update(e);return}let r=bt(e),n=0,{byteLength:o}=r;if(this.bytesHashed+=o,this.bytesHashed*8>bxe)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;o>0;)this.buffer[this.bufferLength++]=r[n++],o--,this.bufferLength===Tr&&(this.hashBuffer(),this.bufferLength=0)}async digest(){let{inner:e,outer:r}=this;if(e&&r){if(this.finished)throw new Error("Attempted to digest an already finished HMAC.");this.finished=!0;let n=e.digestSync();return r.update(n),r.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(p4),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0}digestSync(){let e=this.state.slice(),r=this.buffer.slice(),n=this.bufferLength,o=this.bytesHashed*8,s=new DataView(r.buffer,r.byteOffset,r.byteLength);if(s.setUint8(n++,128),(n-1)%Tr>=Tr-8){for(let a=n;a<Tr;++a)s.setUint8(a,0);this.hashBufferWith(e,r),n=0}for(let a=n;a<Tr-8;++a)s.setUint8(a,0);s.setUint32(Tr-8,Math.floor(o/4294967296),!1),s.setUint32(Tr-4,o,!1),this.hashBufferWith(e,r);let i=new Uint8Array(d4);for(let a=0;a<8;++a)i[a*4]=e[a]>>>24&255,i[a*4+1]=e[a]>>>16&255,i[a*4+2]=e[a]>>>8&255,i[a*4+3]=e[a]>>>0&255;return i}static normalizeKey(e){let r=bt(e);if(r.byteLength>Tr){let n=new t;n.update(r);let o=n.digestSync(),s=new Uint8Array(Tr);return s.set(o),s}if(r.byteLength<Tr){let n=new Uint8Array(Tr);return n.set(r),n}return r}hashBuffer(){this.hashBufferWith(this.state,this.buffer)}hashBufferWith(e,r){let n=this.w??=new Int32Array(64),o=e[0],s=e[1],i=e[2],a=e[3],c=e[4],u=e[5],f=e[6],m=e[7];for(let y=0;y<Tr;++y){if(y<16)n[y]=(r[y*4]&255)<<24|(r[y*4+1]&255)<<16|(r[y*4+2]&255)<<8|r[y*4+3]&255;else{let A=n[y-2],x=(A>>>17|A<<15)^(A>>>19|A<<13)^A>>>10;A=n[y-15];let T=(A>>>7|A<<25)^(A>>>18|A<<14)^A>>>3;n[y]=(x+n[y-7]|0)+(T+n[y-16]|0)}let _=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&u^~c&f)|0)+(m+(Axe[y]+n[y]|0)|0)|0,C=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&s^o&i^s&i)|0;m=f,f=u,u=c,c=a+_|0,a=i,i=s,s=o,o=_+C|0}e[0]+=o,e[1]+=s,e[2]+=i,e[3]+=a,e[4]+=c,e[5]+=u,e[6]+=f,e[7]+=m}},p4=new Int32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Axe=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298])});function Txe(){return class{digestLength=32;secret;hash;isHmac;finished=!1;constructor(e){this.secret=e,this.isHmac=!!e,this.hash=this.createHash()}update(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");this.hash.update(e)}async digest(){let e;return this.isHmac?(this.finished=!0,e=this.hash.digest()):e=this.hash.copy().digest(),new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=this.createHash(),this.finished=!1}createHash(){return this.secret?(0,zp.createHmac)("sha256",vxe(this.secret)):(0,zp.createHash)("sha256")}}}function vxe(t){return typeof t=="string"?t:ArrayBuffer.isView(t)?Buffer.from(t.buffer,t.byteOffset,t.byteLength):Buffer.from(t)}var zp,xxe,Sn,f4=g(()=>{zp=require("node:crypto");GS();xxe=(()=>{try{return(0,zp.createHash)("sha256"),!0}catch{return!1}})(),Sn=xxe?Txe():Io});var Dxe,Ixe,wxe,qS,Pxe,HS,m4=g(()=>{j();GS();({digest:Dxe,sign:Ixe,importKey:wxe}=globalThis?.crypto?.subtle??{}),qS=typeof Dxe=="function"&&typeof Ixe=="function"&&typeof wxe=="function"?globalThis.crypto.subtle:void 0,Pxe=8*1024*1024,HS=class{digestLength=32;secret;pending=[];pendingBytes=0;fallback;finished=!1;constructor(e){e&&(this.secret=bt(e))}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.fallback){this.fallback.update(e);return}this.pending.push(e.slice()),this.pendingBytes+=e.byteLength,this.pendingBytes>=Pxe&&this.switchToFallback()}async digest(){if(this.fallback)return this.fallback.digest();if(this.secret&&this.finished)throw new Error("Attempted to digest an already finished HMAC.");let e=Vn(this.pending);if(qS){if(this.secret){this.finished=!0;let o=await qS.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),s=await qS.sign("HMAC",o,e);return new Uint8Array(s)}let n=await qS.digest("SHA-256",e);return new Uint8Array(n)}let r=new Io(this.secret);return r.update(e),r.digest()}reset(){this.pending=[],this.pendingBytes=0,this.fallback=void 0,this.finished=!1}switchToFallback(){let e=new Io(this.secret);for(let r of this.pending)e.update(r);this.fallback=e,this.pending=[],this.pendingBytes=0}}});var Vp={};Ct(Vp,{Crc32:()=>Do,Crc32Js:()=>xc,Crc32Node:()=>Do,Md5:()=>Ww,Md5Js:()=>Zu,Md5Node:()=>Ww,Sha256:()=>Sn,Sha256Js:()=>Io,Sha256Node:()=>Sn,Sha256WebCrypto:()=>HS,blobHasher:()=>XG,blobReader:()=>BS,fileStreamHasher:()=>r4,readableStreamHasher:()=>o4});var On=g(()=>{ZG();n4();s4();Vw();a4();Qw();l4();GS();f4();m4();Hw()});function g4(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var aa,Jw=g(()=>{j();aa=class t{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,o=Math.abs(Math.round(e));n>-1&&o>0;n--,o/=256)r[n]=o;return e<0&&g4(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&g4(e),parseInt(zn(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}}});var el,h4,S4,Oxe,$xe,kxe,Mxe,Lxe,Nxe,Fxe,Bxe,Uxe,Xw=g(()=>{oe();j();Jw();el=class{toUtf8;fromUtf8;constructor(e,r){this.toUtf8=e,this.fromUtf8=r}format(e){let r=[];for(let s in e){if(!W(e,s))continue;let i=this.fromUtf8(s);r.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[s]))}let n=new Uint8Array(r.reduce((s,i)=>s+i.byteLength,0)),o=0;for(let s of r)n.set(s,o),o+=s.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":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(e.value.bytes,1),o;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let i=new Uint8Array(s.buffer);return i.set(e.value,3),i;case"string":let a=this.fromUtf8(e.value),c=new DataView(new ArrayBuffer(3+a.byteLength));c.setUint8(0,7),c.setUint16(1,a.byteLength,!1);let u=new Uint8Array(c.buffer);return u.set(a,3),u;case"timestamp":let f=new Uint8Array(9);return f[0]=8,f.set(aa.fromNumber(e.value.valueOf()).bytes,1),f;case"uuid":if(!Uxe.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let m=new Uint8Array(17);return m[0]=9,m.set(Kh(e.value.replace(/-/g,"")),1),m}}parse(e){let r={},n=0;for(;n<e.byteLength;){let o=e.getUint8(n++),s=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,o));switch(n+=o,e.getUint8(n++)){case 0:r[s]={type:S4,value:!0};break;case 1:r[s]={type:S4,value:!1};break;case 2:r[s]={type:Oxe,value:e.getInt8(n++)};break;case 3:r[s]={type:$xe,value:e.getInt16(n,!1)},n+=2;break;case 4:r[s]={type:kxe,value:e.getInt32(n,!1)},n+=4;break;case 5:r[s]={type:Mxe,value:new aa(new Uint8Array(e.buffer,e.byteOffset+n,8))},n+=8;break;case 6:let i=e.getUint16(n,!1);n+=2,r[s]={type:Lxe,value:new Uint8Array(e.buffer,e.byteOffset+n,i)},n+=i;break;case 7:let a=e.getUint16(n,!1);n+=2,r[s]={type:Nxe,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,a))},n+=a;break;case 8:r[s]={type:Fxe,value:new Date(new aa(new Uint8Array(e.buffer,e.byteOffset+n,8)).valueOf())},n+=8;break;case 9:let c=new Uint8Array(e.buffer,e.byteOffset+n,16);n+=16,r[s]={type:Bxe,value:`${zn(c.subarray(0,4))}-${zn(c.subarray(4,6))}-${zn(c.subarray(6,8))}-${zn(c.subarray(8,10))}-${zn(c.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return r}};(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(h4||(h4={}));S4="boolean",Oxe="byte",$xe="short",kxe="integer",Mxe="long",Lxe="binary",Nxe="string",Fxe="timestamp",Bxe="uuid",Uxe=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/});function E4({byteLength:t,byteOffset:e,buffer:r}){if(t<Gxe)throw new Error("Provided message too short to accommodate event stream message overhead");let n=new DataView(r,e,t),o=n.getUint32(0,!1);if(t!==o)throw new Error("Reported message length does not match received message length");let s=n.getUint32(y4,!1),i=n.getUint32(ca,!1),a=n.getUint32(t-Tc,!1),c=new Do;if(c.update(new Uint8Array(r,e,ca)),i!==c.digestSync())throw new Error(`The prelude checksum specified in the message (${i}) does not match the calculated CRC32 checksum (${c.digestSync()})`);if(c.update(new Uint8Array(r,e+ca,t-(ca+Tc))),a!==c.digestSync())throw new Error(`The message checksum (${c.digestSync()}) did not match the expected value of ${a}`);return{headers:new DataView(r,e+ca+Tc,s),body:new Uint8Array(r,e+ca+Tc+s,o-s-(ca+Tc+Tc))}}var y4,ca,Tc,Gxe,_4=g(()=>{On();y4=4,ca=y4*2,Tc=4,Gxe=ca+Tc*2});var tl,Zw=g(()=>{On();Xw();_4();tl=class{headerMarshaller;messageBuffer;isEndOfStream;constructor(e,r){this.headerMarshaller=new el(e,r),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){let e=this.messageBuffer.pop(),r=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return r}}}getAvailableMessages(){let e=this.messageBuffer;this.messageBuffer=[];let r=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return r}}}encode({headers:e,body:r}){let n=this.headerMarshaller.format(e),o=n.byteLength+r.byteLength+16,s=new Uint8Array(o),i=new DataView(s.buffer,s.byteOffset,s.byteLength),a=new Do;return i.setUint32(0,o,!1),i.setUint32(4,n.byteLength,!1),a.update(s.subarray(0,8)),i.setUint32(8,a.digestSync(),!1),s.set(n,12),s.set(r,n.byteLength+12),a.update(s.subarray(8,o-4)),i.setUint32(o-4,a.digestSync(),!1),s}decode(e){let{headers:r,body:n}=E4(e);return{headers:this.headerMarshaller.parse(r),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}});var rl,eP=g(()=>{rl=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.decoder.decode(e)}}});var nl,tP=g(()=>{nl=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream)yield this.options.encoder.encode(e);this.options.includeEndFrame&&(yield new Uint8Array(0))}}});var ol,rP=g(()=>{ol=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream){let r=await this.options.deserializer(e);r!==void 0&&(yield r)}}}});var sl,nP=g(()=>{sl=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.serializer(e)}}});function jS(t){let e=0,r=0,n=null,o=null,s=a=>{if(typeof a!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+a);e=a,r=4,n=new Uint8Array(a),new DataView(n.buffer).setUint32(0,a,!1)},i=async function*(){let a=t[Symbol.asyncIterator]();for(;;){let{value:c,done:u}=await a.next();if(u){if(e)if(e===r)yield n;else throw new Error("Truncated event message received.");else return;return}let f=c.length,m=0;for(;m<f;){if(!n){let _=f-m;o||(o=new Uint8Array(4));let C=Math.min(4-r,_);if(o.set(c.slice(m,m+C),r),r+=C,m+=C,r<4)break;s(new DataView(o.buffer).getUint32(0,!1)),o=null}let y=Math.min(e-r,f-m);n.set(c.slice(m,m+y),r),r+=y,m+=y,e&&e===r&&(yield n,n=null,e=0,r=0)}}};return{[Symbol.asyncIterator]:i}}var oP=g(()=>{});function R4(t,e){let r=Wp(e.deserializer,e.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let n of t){let o=e.eventStreamCodec.decode(n),s=await r(o);s!==void 0&&(yield s)}}}}function Wp(t,e){return async function(r){let{value:n}=r.headers[":message-type"];if(n==="error"){let o=new Error(r.headers[":error-message"].value||"UnknownError");throw o.name=r.headers[":error-code"].value,o}else if(n==="exception"){let o=r.headers[":exception-type"].value,s={[o]:r},i=await t(s);if(i.$unknown){let a=new Error(e(r.body));throw a.name=o,a}throw i[o]}else if(n==="event"){let o={[r.headers[":event-type"].value]:r},s=await t(o);return s.$unknown?void 0:s}else throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}var sP=g(()=>{});var vc,C4,iP=g(()=>{Zw();eP();tP();rP();nP();oP();sP();vc=class{eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:r}){this.eventStreamCodec=new tl(e,r),this.utfEncoder=e}deserialize(e,r){let n=jS(e);return new ol({messageStream:new rl({inputStream:n,decoder:this.eventStreamCodec}),deserializer:Wp(r,this.utfEncoder)})}serialize(e,r){return new nl({messageStream:new sl({inputStream:e,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},C4=t=>new vc(t)});async function*qxe(t){let e=!1,r=!1,n=new Array;for(t.on("error",o=>{if(e||(e=!0),o)throw o}),t.on("data",o=>{n.push(o)}),t.on("end",()=>{e=!0});!r;){let o=await new Promise(s=>setTimeout(()=>s(n.shift()),0));o&&(yield o),r=e&&n.length===0}}var b4,Kp,A4,x4=g(()=>{b4=require("node:stream");iP();Kp=class{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:r}){this.universalMarshaller=new vc({utf8Decoder:r,utf8Encoder:e})}deserialize(e,r){let n=typeof e[Symbol.asyncIterator]=="function"?e:qxe(e);return this.universalMarshaller.deserialize(n,r)}serialize(e,r){return b4.Readable.from(this.universalMarshaller.serialize(e,r))}},A4=t=>new Kp(t)});var T4,v4,D4=g(()=>{T4=t=>({[Symbol.asyncIterator]:async function*(){let e=t.getReader();try{for(;;){let{done:r,value:n}=await e.read();if(r)return;yield n}}finally{e.releaseLock()}}}),v4=t=>{let e=t[Symbol.asyncIterator]();return new ReadableStream({async pull(r){let{done:n,value:o}=await e.next();if(n)return r.close();r.enqueue(o)}})}});var I4,w4=g(()=>{I4=t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)})});var zS,P4=g(()=>{oe();ae();j();zS=class{marshaller;serializer;deserializer;serdeContext;defaultContentType;compositeErrorRegistry;constructor({marshaller:e,serializer:r,deserializer:n,serdeContext:o,defaultContentType:s,compositeErrorRegistry:i}){this.marshaller=e,this.serializer=r,this.deserializer=n,this.serdeContext=o,this.defaultContentType=s,this.compositeErrorRegistry=i}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n,initialMessageType:o}){let s=this.marshaller,i=r.getEventStreamMember(),a=r.getMemberSchema(i),c=this.serializer,u=this.defaultContentType,f=Symbol("initialRequestMarker"),m={async*[Symbol.asyncIterator](){if(n){let y={":event-type":{type:"string",value:o??"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:u}};c.write(r,n);let _=c.flush();yield{[f]:!0,headers:y,body:_}}for await(let y of e)yield y}};return s.serialize(m,y=>{if(y[f])return{headers:y.headers,body:y.body};let _="";for(let q in y)if(W(y,q)&&q!=="__type"){_=q;break}let{additionalHeaders:C,body:A,eventType:x,explicitPayloadContentType:T}=this.writeEventBody(_,a,y);return{headers:{":event-type":{type:"string",value:x},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:T??u},...C},body:A}})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n,initialMessageType:o}){let s=this.marshaller,i=r.getEventStreamMember(),c=r.getMemberSchema(i).getMemberSchemas(),u=Symbol("initialResponseMarker"),f=s.deserialize(e.body,async _=>{let C="";for(let x in _)if(W(_,x)&&x!=="__type"){C=x;break}let A=_[C].body;if(C===(o??"initial-response")){let x=await this.deserializer.read(r,A);return delete x[i],{[u]:!0,...x}}else if(C in c){let x=c[C];if(x.isStructSchema()){let T={},I=!1;for(let[q,H]of x.structIterator()){let{eventHeader:me,eventPayload:et}=H.getMergedTraits();if(I=I||!!(me||et),et)H.isBlobSchema()?T[q]=A:H.isStringSchema()?T[q]=(this.serdeContext?.utf8Encoder??ze)(A):H.isStructSchema()&&(T[q]=await this.deserializer.read(H,A));else if(me){let ot=_[C].headers[q]?.value;ot!=null&&(H.isNumericSchema()?ot&&typeof ot=="object"&&"bytes"in ot?T[q]=BigInt(ot.toString()):T[q]=Number(ot):T[q]=ot)}}return{[C]:await this.readEventMember(x,A,I,T)}}return{[C]:await this.deserializer.read(x,A)}}else return{$unknown:_}}),m=f[Symbol.asyncIterator](),y=await m.next();if(y.done)return f;if(y.value?.[u]){if(!r)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let _ in y.value)W(y.value,_)&&(n[_]=y.value[_])}return{async*[Symbol.asyncIterator](){for(y?.value?.[u]||(yield y.value);;){let{done:_,value:C}=await m.next();if(_)break;yield C}}}}async readEventMember(e,r,n,o){let s,i=e.getSchema();if(Array.isArray(i)&&i[0]===-3){let c=i[1],u=Fe.for(c);this.compositeErrorRegistry?.copyFrom(u),s=(this.compositeErrorRegistry??u)?.getErrorCtor(i)}let a=n?o:r.byteLength===0?{}:await this.deserializer.read(e,r);if(s){let c=a.message??a.Message??"Unknown",u={},f=e.getMergedTraits().error;return f&&(u.$fault=f),Object.assign(new s({}),u,{message:c},a)}return a}writeEventBody(e,r,n){let o=this.serializer,s=e,i=null,a,c=r.getSchema()[4].includes(e),u={};if(c){let y=r.getMemberSchema(e);if(y.isStructSchema()){for(let[_,C]of y.structIterator()){let{eventHeader:A,eventPayload:x}=C.getMergedTraits();if(x)i=_;else if(A){let T=n[e][_],I="binary";C.isNumericSchema()?(-2)**31<=T&&T<=2**31-1?I="integer":I="long":C.isTimestampSchema()?I="timestamp":C.isStringSchema()?I="string":C.isBooleanSchema()&&(I="boolean"),T!=null&&(u[_]={type:I,value:T},delete n[e][_])}}if(i!==null){let _=y.getMemberSchema(i);_.isBlobSchema()?a="application/octet-stream":_.isStringSchema()&&(a="text/plain"),o.write(_,n[e][i])}else o.write(y,n[e])}else if(y.isUnitSchema())o.write(y,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{let[y,_]=n[e];s=y,o.write(15,_)}let f=o.flush()??new Uint8Array;return{body:typeof f=="string"?(this.serdeContext?.utf8Decoder??qt)(f):f,eventType:s,explicitPayloadContentType:a,additionalHeaders:u}}}});var VS={};Ct(VS,{EventStreamCodec:()=>tl,EventStreamMarshaller:()=>Kp,EventStreamSerde:()=>zS,HeaderMarshaller:()=>el,Int64:()=>aa,MessageDecoderStream:()=>rl,MessageEncoderStream:()=>nl,SmithyMessageDecoderStream:()=>ol,SmithyMessageEncoderStream:()=>sl,UniversalEventStreamMarshaller:()=>vc,eventStreamSerdeProvider:()=>A4,getChunkedStream:()=>jS,getMessageUnmarshaller:()=>Wp,getUnmarshalledStream:()=>R4,iterableToReadableStream:()=>v4,readableStreamToIterable:()=>T4,resolveEventStreamSerdeConfig:()=>I4,universalEventStreamSerdeProvider:()=>C4});var WS=g(()=>{Zw();Xw();Jw();eP();tP();rP();nP();x4();D4();iP();oP();sP();w4();P4()});var ua,KS=g(()=>{oe();ae();oe();Ju();ua=class extends Zt{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=new Fe(e.defaultNamespace);for(let r of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return re}getResponseType(){return ft}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,r){if("url"in r){e.protocol=r.url.protocol,e.hostname=r.url.hostname,e.port=r.url.port?Number(r.url.port):void 0,e.path=r.url.pathname,e.fragment=r.url.hash||void 0,e.username=r.url.username||void 0,e.password=r.url.password||void 0,e.query||(e.query={});for(let[n,o]of r.url.searchParams.entries())e.query[n]=o;if(r.headers)for(let n in r.headers)W(r.headers,n)&&(e.headers[n]=r.headers[n].join(", "));return e}else{if(e.protocol=r.protocol,e.hostname=r.hostname,e.port=r.port?Number(r.port):void 0,e.path=r.path,e.query={...r.query},r.headers)for(let n in r.headers)W(r.headers,n)&&(e.headers[n]=r.headers[n]);return e}}setHostPrefix(e,r,n){if(this.serdeContext?.disableHostPrefix)return;let o=B.of(r.input),s=Ro(r.traits??{});if(s.endpoint){let i=s.endpoint?.[0];if(typeof i=="string"){for(let[a,c]of o.structIterator()){if(!c.getMergedTraits().hostLabel)continue;let u=n[a];if(typeof u!="string")throw new Error(`@smithy/core/schema - ${a} in input must be a string as hostLabel.`);i=i.replace(`{${a}}`,u)}if(e.hostname=i+e.hostname,!Sp(e.hostname))throw new Error(`[${e.hostname}] is not a valid 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"]}}resolveError(e,r,n){let o=[-3,"","Error",0,[],[],0],s;for(let i of n)for(let a of r)try{a==="*"?s=i.getSchema(e):s=i.getSchema(a+"#"+e);let c=i.getErrorCtor(s);if(c)return[s,c,"modeled"];{let u=i.getBaseException();if(u){let f=i.getErrorCtor(u);if(f)return[s,f,"synthetic"]}}}catch{}for(let i of n){let a=i.getBaseException();if(a){let c=i.getErrorCtor(a);if(c)return[a,c,"synthetic"]}}return[o,Error,"native"]}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e,eventStreamSerdeProvider:r}=await Promise.resolve().then(()=>(WS(),VS)),n=this.resolveEventStreamMarshaller(r);return new e({marshaller:n,serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType(),compositeErrorRegistry:this.compositeErrorRegistry})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,r,n,o,s){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}resolveEventStreamMarshaller(e){let r=this.serdeContext;return r.eventStreamMarshaller?r.eventStreamMarshaller:e(this.serdeContext)}}});var la,O4=g(()=>{oe();ae();j();oe();KS();Yu();FS();la=class extends ua{async serializeRequest(e,r,n){let o=r&&typeof r=="object"?r:{},s=this.serializer,i={},a={},c=await n.endpoint(),u=B.of(e?.input),f=[],m=[],y=!1,_,C=new re({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:i,headers:a,body:void 0});if(c){this.updateServiceEndpoint(C,c),this.setHostPrefix(C,e,o);let A=Ro(e.traits);if(A.http){C.method=A.http[0];let[x,T]=A.http[1].split("?");C.path=="/"?C.path=x:C.path+=x;let I=new URLSearchParams(T??"");for(let[q,H]of I)i[q]=H}}for(let[A,x]of u.structIterator()){let T=x.getMergedTraits()??{},I=o[A];if(I==null&&!x.isIdempotencyToken()){if(T.httpLabel&&(C.path.includes(`{${A}+}`)||C.path.includes(`{${A}}`)))throw new Error(`No value provided for input HTTP label: ${A}.`);continue}if(T.httpPayload)x.isStreaming()?x.isStructSchema()?o[A]&&(_=await this.serializeEventStream({eventStream:o[A],requestSchema:u})):_=I:(s.write(x,I),_=s.flush());else if(T.httpLabel){s.write(x,I);let q=s.flush();C.path.includes(`{${A}+}`)?C.path=C.path.replace(`{${A}+}`,q.split("/").map(vo).join("/")):C.path.includes(`{${A}}`)&&(C.path=C.path.replace(`{${A}}`,vo(q)))}else if(T.httpHeader)s.write(x,I),a[T.httpHeader.toLowerCase()]=String(s.flush());else if(typeof T.httpPrefixHeaders=="string")for(let q in I){if(!W(I,q))continue;let H=I[q],me=T.httpPrefixHeaders+q;s.write([x.getValueSchema(),{httpHeader:me}],H),a[me.toLowerCase()]=s.flush()}else T.httpQuery||T.httpQueryParams?this.serializeQuery(x,I,i):(y=!0,f.push(A),m.push(x))}if(y&&o){let[A,x]=(u.getName(!0)??"#Unknown").split("#"),T=u.getSchema()[6],I=[3,A,x,u.getMergedTraits(),f,m,void 0];T?I[6]=T:I.pop(),s.write(I,o),_=s.flush()}return C.headers=a,C.query=i,C.body=_,C}serializeQuery(e,r,n){let o=this.serializer,s=e.getMergedTraits();if(s.httpQueryParams){for(let i in r)if(W(r,i)&&!(i in n)){let a=r[i],c=e.getValueSchema();Object.assign(c.getMergedTraits(),{...s,httpQuery:i,httpQueryParams:void 0}),this.serializeQuery(c,a,n)}return}if(e.isListSchema()){let i=!!e.getMergedTraits().sparse,a=[];for(let c of r){o.write([e.getValueSchema(),s],c);let u=o.flush();(i||u!==void 0)&&a.push(u)}n[s.httpQuery]=a}else o.write([e,s],r),n[s.httpQuery]=o.flush()}async deserializeResponse(e,r,n){let o=this.deserializer,s=B.of(e.output),i={};if(n.statusCode>=300){let c=await At(n.body,r);throw c.byteLength>0&&Object.assign(i,await o.read(15,c)),await this.handleError(e,r,n,i,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let c in n.headers){if(!W(n.headers,c))continue;let u=n.headers[c];delete n.headers[c],n.headers[c.toLowerCase()]=u}let a=await this.deserializeHttpMessage(s,r,n,i);if(a.length){let c=await At(n.body,r);if(c.byteLength>0){let u=await o.read(s,c);for(let f of a)u[f]!=null&&(i[f]=u[f])}}else a.discardResponseBody&&await At(n.body,r);return i.$metadata=this.deserializeMetadata(n),i}async deserializeHttpMessage(e,r,n,o,s){let i;o instanceof Set?i=s:i=o;let a=!0,c=this.deserializer,u=B.of(e),f=[];for(let[m,y]of u.structIterator()){let _=y.getMemberTraits();if(_.httpPayload){if(a=!1,y.isStreaming())y.isStructSchema()?i[m]=await this.deserializeEventStream({response:n,responseSchema:u}):i[m]=NS(n.body);else if(n.body){let A=await At(n.body,r);A.byteLength>0&&(i[m]=await c.read(y,A))}}else if(_.httpHeader){let C=String(_.httpHeader).toLowerCase(),A=n.headers[C];if(A!=null)if(y.isListSchema()){let x=y.getValueSchema();x.getMergedTraits().httpHeader=C;let T;x.isTimestampSchema()&&x.getSchema()===4?T=Vh(A,",",2):T=Bu(A);let I=[];for(let q of T)I.push(await c.read(x,q.trim()));i[m]=I}else i[m]=await c.read(y,A)}else if(_.httpPrefixHeaders!==void 0){i[m]={};for(let C in n.headers)if(W(n.headers,C)&&C.startsWith(_.httpPrefixHeaders)){let A=n.headers[C],x=y.getValueSchema();x.getMergedTraits().httpHeader=C,i[m][C.slice(_.httpPrefixHeaders.length)]=await c.read(x,A)}}else _.httpResponseCode?i[m]=n.statusCode:f.push(m)}return f.discardResponseBody=a,f}}});var Qn,aP=g(()=>{oe();ae();oe();KS();Yu();Qn=class extends ua{async serializeRequest(e,r,n){let o=this.serializer,s={},i={},a=await n.endpoint(),c=B.of(e?.input),u=c.getSchema(),f,m=r&&typeof r=="object"?r:{},y=new re({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:s,headers:i,body:void 0});if(a&&(this.updateServiceEndpoint(y,a),this.setHostPrefix(y,e,m)),m){let _=c.getEventStreamMember();if(_){if(m[_]){let C={};for(let[A]of c.structIterator())A!==_&&m[A]!=null&&(C[A]=m[A]);f=await this.serializeEventStream({eventStream:m[_],requestSchema:c,initialRequest:C})}}else o.write(u,m),f=o.flush()}return y.headers=Object.assign(y.headers,i),y.query=s,y.body=f,y.method="POST",y}async deserializeResponse(e,r,n){let o=this.deserializer,s=B.of(e.output),i={};if(n.statusCode>=300){let c=await At(n.body,r);throw c.byteLength>0&&Object.assign(i,await o.read(15,c)),await this.handleError(e,r,n,i,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let c in n.headers){if(!W(n.headers,c))continue;let u=n.headers[c];delete n.headers[c],n.headers[c.toLowerCase()]=u}let a=s.getEventStreamMember();if(a)i[a]=await this.deserializeEventStream({response:n,responseSchema:s,initialResponseContainer:i});else{let c=await At(n.body,r);c.byteLength>0&&Object.assign(i,await o.read(s,c))}return i.$metadata=this.deserializeMetadata(n),i}}});var QS,cP=g(()=>{FS();QS=(t,e,r,n,o,s)=>{if(e!=null&&e[r]!==void 0){let i=n();if(i==null||i.length<=0)throw new Error("Empty value provided for input HTTP label: "+r+".");t=t.replace(o,s?i.split("/").map(a=>vo(a)).join("/"):vo(i))}else throw new Error("No value provided for input HTTP label: "+r+".");return t}});function YS(t,e){return new Qp(t,e)}var Qp,$4=g(()=>{oe();cP();Qp=class{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(e,r){this.input=e,this.context=r}async build(){let{hostname:e,protocol:r="https",port:n,path:o}=await this.context.endpoint();this.path=o;for(let s of this.resolvePathStack)s(this.path);return new re({protocol:r,hostname:this.hostname||e,port:n,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){return this.hostname=e,this}bp(e){return this.resolvePathStack.push(r=>{this.path=`${r?.endsWith("/")?r.slice(0,-1):r||""}`+e}),this}p(e,r,n,o){return this.resolvePathStack.push(s=>{this.path=QS(s,this.input,e,r,n,o)}),this}h(e){return this.headers=e,this}q(e){return this.query=e,this}b(e){return this.body=e,this}m(e){return this.method=e,this}}});function Ze(t,e){if(e.timestampFormat.useTrait&&t.isTimestampSchema()&&(t.getSchema()===5||t.getSchema()===6||t.getSchema()===7))return t.getSchema();let{httpLabel:r,httpPrefixHeaders:n,httpHeader:o,httpQuery:s}=t.getMergedTraits();return(e.httpBindings?typeof n=="string"||o?6:s||r?5:void 0:void 0)??e.timestampFormat.default}var da=g(()=>{});var pa,uP=g(()=>{ae();j();Ju();da();pa=class extends Zt{settings;constructor(e){super(),this.settings=e}read(e,r){let n=B.of(e);if(n.isListSchema())return Bu(r).map(o=>this.read(n.getValueSchema(),o));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??Xe)(r);if(n.isTimestampSchema())switch(Ze(n,this.settings)){case 5:return jh(r);case 6:return zh(r);case 7:return na(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(n.isStringSchema()){let o=n.getMergedTraits().mediaType,s=r;if(o)return n.getMergedTraits().httpHeader&&(s=this.base64ToUtf8(s)),(o==="application/json"||o.endsWith("+json"))&&(s=qe.from(s)),s}return n.isNumericSchema()?Number(r):n.isBigIntegerSchema()?BigInt(r):n.isBigDecimalSchema()?new Y(r,"bigDecimal"):n.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??ze)((this.serdeContext?.base64Decoder??Xe)(e))}}});var fa,k4=g(()=>{ae();j();Ju();uP();fa=class extends Zt{codecDeserializer;stringDeserializer;constructor(e,r){super(),this.codecDeserializer=e,this.stringDeserializer=new pa(r)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,r){let n=B.of(e),o=n.getMergedTraits(),s=this.serdeContext?.utf8Encoder??ze;if(o.httpHeader||o.httpResponseCode)return this.stringDeserializer.read(n,s(r));if(o.httpPayload){if(n.isBlobSchema()){let i=this.serdeContext?.utf8Decoder??qt;return typeof r=="string"?i(r):r}else if(n.isStringSchema())return"byteLength"in r?s(r):r}return this.codecDeserializer.read(n,r)}}});var il,lP=g(()=>{ae();j();Ju();da();il=class extends Zt{settings;stringBuffer="";constructor(e){super(),this.settings=e}write(e,r){let n=B.of(e);switch(typeof r){case"object":if(r===null){this.stringBuffer="null";return}if(n.isTimestampSchema()){if(!(r instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${r} when schema expected Date in ${n.getName(!0)}`);switch(Ze(n,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=br(r);break;case 7:this.stringBuffer=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",r),this.stringBuffer=String(r.getTime()/1e3)}return}if(n.isBlobSchema()&&"byteLength"in r){this.stringBuffer=(this.serdeContext?.base64Encoder??Ie)(r);return}if(n.isListSchema()&&Array.isArray(r)){let i="";for(let a of r){this.write([n.getValueSchema(),n.getMergedTraits()],a);let c=this.flush(),u=n.getValueSchema().isTimestampSchema()?c:Hh(c);i!==""&&(i+=", "),i+=u}this.stringBuffer=i;return}this.stringBuffer=JSON.stringify(r,null,2);break;case"string":let o=n.getMergedTraits().mediaType,s=r;if(o&&((o==="application/json"||o.endsWith("+json"))&&(s=qe.from(s)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??Ie)(s.toString());return}this.stringBuffer=r;break;default:n.isIdempotencyToken()?this.stringBuffer=xr():this.stringBuffer=String(r)}}flush(){let e=this.stringBuffer;return this.stringBuffer="",e}}});var ma,M4=g(()=>{ae();lP();ma=class{codecSerializer;stringSerializer;buffer;constructor(e,r,n=new il(r)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,r){let n=B.of(e),o=n.getMergedTraits();if(o.httpHeader||o.httpLabel||o.httpQuery){this.stringSerializer.write(n,r),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,r)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}}});var L4,JS,N4=g(()=>{L4=De(Eo()),JS=class{name;kind;values;constructor({name:e,kind:r=L4.FieldPosition.HEADER,values:n=[]}){this.name=e,this.kind=r,this.values=n}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter(r=>r!==e)}toString(){return this.values.map(e=>e.includes(",")||e.includes(" ")?`"${e}"`:e).join(", ")}get(){return this.values}}});var XS,F4=g(()=>{XS=class{entries={};encoding;constructor({fields:e=[],encoding:r="utf-8"}){e.forEach(this.setField.bind(this)),this.encoding=r}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter(r=>r.kind===e)}}});var vs,Ds,B4=g(()=>{vs=t=>(t.logger&&t.logger.constructor?.name!=="NoOpLogger"&&t.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"),t.logger),{setHttpHandler(e){t.requestHandler=e},httpHandler(){return t.requestHandler},updateHttpClientConfig(e,r){t.requestHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.requestHandler.httpHandlerConfigs()}}),Ds=t=>({requestHandler:t.httpHandler()})});function dP(t){return e=>async r=>{let n=r.request;if(re.isInstance(n)){let{body:o,headers:s}=n;if(o&&Object.keys(s).map(i=>i.toLowerCase()).indexOf(U4)===-1)try{let i=t(o);i!=null&&(n.headers={...n.headers,[U4]:String(i)})}catch{}}return e({...r,request:n})}}var U4,pP,Is,G4=g(()=>{oe();U4="content-length";pP={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Is=t=>({applyToStack:e=>{e.add(dP(t.bodyLengthChecker),pP)}})});var ga,Hxe,ZS=g(()=>{ga=t=>encodeURIComponent(t).replace(/[!'()*]/g,Hxe),Hxe=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`});var q4,H4=g(()=>{ZS();q4=t=>t.split("/").map(ga).join("/")});function j4(t){let e=[];for(let r of Object.keys(t).sort()){let n=t[r];if(r=ga(r),Array.isArray(n))for(let o=0,s=n.length;o<s;o++)e.push(`${r}=${ga(n[o])}`);else{let o=r;(n||typeof n=="string")&&(o+=`=${ga(n)}`),e.push(o)}}return e.join("&")}var z4=g(()=>{ZS()});var yn,Dc=g(()=>{yn=class{serdeContext;setSerdeContext(e){this.serdeContext=e}}});var al,fP=g(()=>{al=class{from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),o=new Set(n);o.delete("__type"),this.keys=o}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function e0(){if(Yp===void 0)try{if(typeof Buffer!="function")Yp=!1;else{let t=JSON.parse(Buffer.from([123,125]));Yp=t!==null&&typeof t=="object"}}catch{Yp=!1}return Yp}var Yp,mP=g(()=>{});function cl(t,e,r){if(r?.source){let n=r.source;if(typeof e=="number")return e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER?zxe(n,e)?e:new Y(n,"bigDecimal"):jxe(n)?new Y(n,"bigDecimal"):/[eE]/.test(n)?Vxe(n):BigInt(n)}return e}function jxe(t){let e=t.indexOf(".");if(e===-1)return!1;let r=t.search(/[eE]/);if(r===-1)return!0;let n=r-e-1;return parseInt(t.slice(r+1),10)<n}function zxe(t,e){if(t===String(e)||Object.is(e,-0))return!0;if(/[eE]/.test(t))return gP(t)===gP(String(e));let r=t.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),n=String(e);return r===n?!0:/[eE]/.test(n)?r===gP(n):!1}function gP(t){let e=t.startsWith("-"),r=e?t.slice(1):t,n=r.search(/[eE]/),o;if(n===-1)o=r;else{let s=parseInt(r.slice(n+1),10),i=r.slice(0,n),a=i.indexOf("."),c,u;a===-1?(c=i,u=i.length):(c=i.slice(0,a)+i.slice(a+1),u=a),c=c.replace(/0+$/,"")||"0";let f=u+s;c==="0"?o="0":f<=0?o="0."+"0".repeat(-f)+c:f>=c.length?o=c+"0".repeat(f-c.length):o=c.slice(0,f)+"."+c.slice(f)}return o.includes(".")&&(o=o.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(e?"-":"")+o}function Vxe(t){let e=t.search(/[eE]/),r=parseInt(t.slice(e+1),10),n=t.startsWith("-"),o=t.slice(n?1:0,e),s=o.indexOf("."),i,a;if(s===-1)i=o,a=r;else{i=o.slice(0,s)+o.slice(s+1);let u=o.length-s-1;a=r-u}i=i.replace(/0+$/,"")||"0";let c=BigInt(i)*10n**BigInt(a+(o.replace(".","").length-i.length));return n?-c:c}var t0=g(()=>{j()});function ul(t){let e=B.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(hP in r)return r[hP];let n=r0(e,new Set);return r[hP]=n,n}return r0(e,new Set)}function r0(t,e){let r=t.getSchema();if(e.has(r))return!1;if(e.add(r),t.isBigIntegerSchema()||t.isBigDecimalSchema())return!0;if(t.isStructSchema()){for(let[,n]of t.structIterator())if(r0(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(r0(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var hP,n0=g(()=>{ae();hP=Symbol.for("@aws-sdk/reviver")});var V4,W4=g(()=>{Yu();j();V4=(t,e)=>At(t,e).then(r=>(e?.utf8Encoder??ze)(r))});async function Ic(t,e,r){let n;if(e0()&&typeof t?.[Symbol.asyncIterator]=="function"){let s=await At(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(s)?n=s:n=Buffer.from(s.buffer,s.byteOffset,s.byteLength))}if(n||(n=await V4(t,e)),n.length===0)return{};let o=r&&ul(r)?cl:void 0;try{return JSON.parse(n,o)}catch(s){throw s?.name==="SyntaxError"&&Object.defineProperty(s,"$responseBodyText",{value:typeof n=="string"?n:n.toString("utf8")}),s}}var Q4,K4,SP,Y4,J4,o0,X4,Jp=g(()=>{Yu();W4();mP();t0();n0();Q4=async(t,e)=>{let r=await Ic(t,e);return r.message=r.message??r.Message,r},K4=(t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),SP=t=>{let e=t;return typeof e=="number"&&(e=e.toString()),e.indexOf(",")>=0&&(e=e.split(",")[0]),e.indexOf(":")>=0&&(e=e.split(":")[0]),e.indexOf("#")>=0&&(e=e.split("#")[1]),e},Y4=(t,e)=>X4(t,e,["header","code","type"]),J4=(t,e,r=!1)=>X4(t,e,r?["code","header","type"]:["type","code","header"]),o0=(t,e)=>{if(e?.__type!==void 0){let r=e.__type;return typeof r=="number"&&(r=r.toString()),r.indexOf(",")>=0&&(r=r.split(",")[0]),r.indexOf(":")>=0&&(r=r.split(":")[0]),r}},X4=({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let o=K4(t??{},"x-amzn-errortype");if(o!==void 0)return SP(t[o]);break;case"code":let s=K4(e??{},"code");if(s&&e[s]!==void 0)return SP(e[s]);break;case"type":if(e?.__type!==void 0)return SP(e.__type);break}}});function ws(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var s0=g(()=>{});var ll,yP=g(()=>{da();ae();j();Dc();fP();mP();t0();n0();Jp();s0();oe();ll=class extends yn{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=ul(e)?cl:void 0,o;if(typeof r=="string"){if(r.length===0)return{};o=JSON.parse(r,n)}else if(r instanceof Uint8Array&&e0()){if(r.byteLength===0)return{};let s=Buffer.isBuffer(r)?r:Buffer.from(r.buffer,r.byteOffset,r.byteLength);o=JSON.parse(s,n)}else o=await Ic(r,this.serdeContext,e);return this._read(e,o)}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=B.of(e);if(n){if(o.isStructSchema())return this._readStruct(o,r);if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema();if(this.needsTransform(i))for(let a=0;a<r.length;++a)r[a]=this._read(i,r[a]);return r}if(o.isMapSchema()){let i=o.getValueSchema(),a=r;if(this.needsTransform(i))for(let c in a)W(a,c)&&(c==="__proto__"&&ws(a),a[c]=this._read(i,a[c]));return a}}if(o.isBlobSchema()&&typeof r=="string")return Xe(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?qe.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ze(o,this.settings)){case 5:return Ss(r);case 6:return gn(r);case 7:return ys(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof Y)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new Y(i.string,i.type):new Y(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema()&&n)if(Array.isArray(r))for(let i=0;i<r.length;++i){let a=r[i];a instanceof Y||(r[i]=this._read(o,a))}else{let i=r;for(let a in i){if(!W(i,a))continue;a==="__proto__"&&ws(i);let c=i[a];c instanceof Y||(i[a]=this._read(o,c))}}return r}_readStruct(e,r){let n=e.isUnionSchema(),o={},s,i=typeof r.__type=="string",{jsonName:a}=this.settings;a&&i&&(s={});let c;n&&(c=new al(r,o));for(let[u,f]of e.structIterator()){let m=u;a&&(m=f.getMergedTraits().jsonName??m,i&&(s[m]=u)),n&&c.mark(m),r[m]!=null&&(o[u]=this._read(f,r[m]))}if(n)c.writeUnknown();else if(i)for(let u in r){if(!W(r,u))continue;let f=r[u],m=a?s[u]??u:u;m in o||(o[m]=f)}return o}needsTransform(e){return!!(e.isBlobSchema()||e.isTimestampSchema()||e.isBigIntegerSchema()||e.isBigDecimalSchema()||e.isNumericSchema()||e.isDocumentSchema()||e.isStructSchema()||e.isListSchema()||e.isMapSchema()||e.isStringSchema()&&e.getMergedTraits().mediaType)}}});var i0,Z4,eq=g(()=>{j();i0=class t extends Uint8Array{string=null;static allocUnsafe(e){if(typeof Buffer=="function"){let r=Buffer.allocUnsafe(e);return new t(r.buffer,r.byteOffset,r.byteLength)}return new t(e)}toString(){return this.s()}valueOf(){return this.s()}includes(e,r){return typeof e=="string"?this.s().includes(e,r):Uint8Array.prototype.includes.call(this,e,r)}indexOf(e,r){return typeof e=="string"?this.s().indexOf(e,r):Uint8Array.prototype.indexOf.call(this,e,r)}lastIndexOf(e,r){if(typeof e=="string")return this.s().lastIndexOf(e,r);let n=Uint8Array.prototype.lastIndexOf;return r!==void 0?n.call(this,e,r):n.call(this,e)}startsWith(e,r){return this.s().startsWith(e,r)}endsWith(e,r){return this.s().endsWith(e,r)}match(e){return this.s().match(e)}replace(e,r){return this.s().replace(e,r)}search(e){return this.s().search(e)}split(e,r){return this.s().split(e,r)}substring(e,r){return this.s().substring(e,r)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(e){return this.s().charAt(e)}charCodeAt(e){return this.s().charCodeAt(e)}padStart(e,r){return this.s().padStart(e,r)}padEnd(e,r){return this.s().padEnd(e,r)}repeat(e){return this.s().repeat(e)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){let e=Date.now();e>Z4+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),Z4=e),this.string=ze(this)}return this.string}},Z4=0});function EP(t){return i0.allocUnsafe(t)}var a0,tq,rq,Wxe,Kxe,dl,c0,u0,nq,Qxe,Yxe,Jxe,Ps,oq,pl,_P=g(()=>{da();ae();j();Dc();oe();eq();a0=new TextEncoder,tq=123,rq=125,Wxe=91,Kxe=93,dl=34,c0=58,u0=44,nq=92,Qxe=new Uint8Array([116,114,117,101]),Yxe=new Uint8Array([102,97,108,115,101]),Jxe=new Uint8Array([110,117,108,108]),Ps=new Array(128).fill(null);Ps[8]="b";Ps[9]="t";Ps[10]="n";Ps[12]="f";Ps[13]="r";Ps[34]='"';Ps[92]="\\";for(let t=0;t<32;t++)Ps[t]===null&&(Ps[t]="u00"+t.toString(16).padStart(2,"0"));oq=2048;pl=class t extends yn{settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=EP(oq)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=B.of(e),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.rootSchema,r,void 0)}writeDiscriminatedDocument(e,r){this.i=0,this.rootSchema=B.of(e);let n=this.rootSchema;if(n.isStructSchema()&&r!=null&&typeof r=="object"){this.writeValue(n,r,void 0);let o=`"__type":"${n.getName(!0)??"Unknown"}",`,s=o.length;this.ensure(s),this.json.copyWithin(1+s,1,this.i),a0.encodeInto(o,this.json.subarray(1)),this.i+=s}else this.writeValue(n,r,void 0)}flush(){this.rootSchema=void 0;let e=this.i;this.i=0;let r=this.rawValue;if(this.rawValue=void 0,e===0)return r;let n=this.json.subarray(0,e);return this.json=EP(oq),n}ensure(e){let{i:r,json:n}=this;if(r+e>n.length){let o=n.length*2;for(;o<r+e;)o*=2;let s=EP(o);s.set(this.json),this.json=s}}writeAscii(e){let r=e.length;this.ensure(r);let{i:n,json:o}=this;for(let s=0;s<r;++s)o[n]=e.charCodeAt(s),n+=1;this.i=n}writeAsciiQuoted(e){let r=e.length;this.ensure(r+4);let{json:n,i:o}=this;n[o++]=dl;for(let s=0;s<r;++s)n[o++]=e.charCodeAt(s);n[o++]=dl,this.i=o}writeJsonString(e){this.ensure(e.length*3+2),this.json[this.i++]=dl;let r=e.length;for(let n=0;n<r;++n){let o=e.charCodeAt(n);if(o>34&&o<92)this.json[this.i++]=o;else if(o<128){let s=Ps[o];if(s!==null){this.ensure(s.length+1),this.json[this.i++]=nq;for(let i=0;i<s.length;i++)this.json[this.i++]=s.charCodeAt(i)}else this.json[this.i++]=o}else if(o>=55296&&o<=56319){let s=n+1<r?e.charCodeAt(n+1):0;if(s>=56320&&s<=57343){this.ensure(4);let{written:i}=a0.encodeInto(e.substring(n,n+2),this.json.subarray(this.i));this.i+=i,++n}else this.ensure(6),this.writeUnicodeEscape(o)}else if(o>=56320&&o<=57343)this.ensure(6),this.writeUnicodeEscape(o);else{let{i:s,json:i}=this;o<2048?(i[s++]=192|o>>6,i[s++]=128|o&63):(i[s++]=224|o>>12,i[s++]=128|o>>6&63,i[s++]=128|o&63),this.i=s}}this.json[this.i++]=dl}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=nq,r[n++]=117;let o=e.toString(16).padStart(4,"0");for(let s=0;s<4;++s)r[n++]=o.charCodeAt(s);this.i=n}static B64=(()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(64);for(let n=0;n<64;++n)r[n]=e.charCodeAt(n);return r})();writeBase64(e){let r=Math.ceil(e.length/3)*4;this.ensure(r+2);let n=this.json,o=t.B64,s=this.i;n[s++]=dl;let i=e.length,a=i%3,c=i-a;for(let u=0;u<c;u+=3){let f=e[u],m=e[u+1],y=e[u+2];n[s++]=o[f>>2],n[s++]=o[(f&3)<<4|m>>4],n[s++]=o[(m&15)<<2|y>>6],n[s++]=o[y&63]}if(a===2){let u=e[c],f=e[c+1];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4|f>>4],n[s++]=o[(f&15)<<2],n[s++]=61}else if(a===1){let u=e[c];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4],n[s++]=61,n[s++]=61}n[s++]=dl,this.i=s}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&B.of(e).isIdempotencyToken()){this.writeAsciiQuoted(xr());return}return}this.ensure(4),this.json.set(Jxe,this.i),this.i+=4;return}let o=B.of(e),s=typeof r=="object";if(o.isStringSchema()){let i=o.getMergedTraits().mediaType;if(i&&(i==="application/json"||i.endsWith("+json"))){this.writeJsonString(qe.from(r).toString());return}}if(this.settings.bigNumberAsString&&r!=null&&(o.isBigIntegerSchema()||o.isBigDecimalSchema())){let i=r instanceof Y?r.string:String(r);this.writeAsciiQuoted(i);return}if(s){if(o.isStructSchema()){this.writeStruct(o,r);return}if(Array.isArray(r)&&(o.isListSchema()||o.isDocumentSchema())){this.writeList(o,r,o.isDocumentSchema());return}if(o.isMapSchema()){this.writeMap(o,r,!1);return}if(r instanceof Uint8Array&&(o.isBlobSchema()||o.isDocumentSchema())){this.writeBase64(r);return}if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema())){this.writeTimestamp(o,r);return}if(r instanceof Y){this.writeAscii(r.string);return}if(o.isDocumentSchema()){Array.isArray(r)?this.writeList(o,r,!0):this.writeMap(o,r,!0);return}let i=JSON.stringify(r);this.writeAscii(i);return}if(typeof r=="string"){if(o.isBlobSchema()){let i=(this.serdeContext?.base64Encoder??Ie)(r);this.writeAsciiQuoted(i);return}this.writeJsonString(r);return}if(typeof r=="number"){if(Math.abs(r)===1/0||Number.isNaN(r)){this.writeAsciiQuoted(String(r));return}let i=String(r);this.writeAscii(i);return}if(typeof r=="boolean"){this.ensure(5);let{i,json:a}=this;r?(a.set(Qxe,i),i+=4):(a.set(Yxe,i),i+=5),this.i=i;return}if(typeof r=="bigint"){this.writeAscii(r.toString());return}this.writeAscii(String(r))}writeStruct(e,r){this.ensure(2),this.json[this.i++]=tq;let n=!1,o=typeof r.__type=="string",s;o&&(s=new Set);for(let[i,a]of e.structIterator()){let c=r[i];if(c==null&&!a.isIdempotencyToken())continue;n&&(this.ensure(1),this.json[this.i++]=u0),n=!0;let u=this.settings.jsonName?a.getMergedTraits().jsonName??i:i;s&&(s.add(i),s.add(u)),this.writeAsciiQuoted(u),this.json[this.i++]=c0,this.writeValue(a,c,e)}if(!n&&e.isUnionSchema()){let{$unknown:i}=r;if(Array.isArray(i)){let[a,c]=i;this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=c0,this.writeValue(15,c,e)}}else if(o)for(let i in r){if(s.has(i))continue;s.add(i);let a=r[i];n&&(this.ensure(1),this.json[this.i++]=u0),n=!0,this.writeAsciiQuoted(i),this.ensure(1),this.json[this.i++]=c0,this.writeValue(15,a,void 0)}this.ensure(1),this.json[this.i++]=rq}writeList(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a=!1;for(let u=0;u<r.length;++u){let f=r[u];if(Number.isNaN(f)||f===1/0||f===-1/0||f==null&&!o){a=!0;break}}let c;if(!a)c=JSON.stringify(r);else{let u=[];for(let f=0;f<r.length;++f){let m=r[f];m==null&&!o||(Number.isNaN(m)||m===1/0||m===-1/0?u.push(String(m)):u.push(m))}c=JSON.stringify(u)}this.ensure(c.length*3),this.i+=a0.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=Wxe;let i=!1;for(let a=0;a<r.length;++a){let c=r[a];(n?c===void 0:c==null&&!o)||(i&&(this.ensure(1),this.json[this.i++]=u0),this.writeValue(s,c,void 0),i=!0)}this.ensure(1),this.json[this.i++]=Kxe}writeMap(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a;for(let u in r){if(!W(r,u))continue;let f=r[u];Number.isNaN(f)||f===1/0||f===-1/0?((a??={})[u]=f,r[u]=String(f)):f===null&&!o&&((a??={})[u]=null,r[u]=void 0)}let c=JSON.stringify(r);a&&Object.assign(r,a),this.ensure(c.length*3),this.i+=a0.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=tq;let i=!0;for(let a in r){if(!W(r,a))continue;let c=r[a];(n?c===void 0:c==null&&!o)||(i||(this.ensure(1),this.json[this.i++]=u0),i=!1,this.writeJsonString(a),this.ensure(1),this.json[this.i++]=c0,this.writeValue(s,c,void 0))}this.ensure(1),this.json[this.i++]=rq}writeTimestamp(e,r){switch(Ze(e,this.settings)){case 5:{let o=r.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(o);return}case 6:{this.writeAsciiQuoted(br(r));return}case 7:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}default:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}}}}});var fl,RP=g(()=>{Dc();yP();_P();fl=class extends yn{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new pl(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new ll(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var l0,sq=g(()=>{aP();ae();oe();RP();Jp();l0=class extends Qn{codec=new fl({timestampFormat:{useTrait:!1,default:7},jsonName:!1,bigNumberAsString:!0});serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}getShapeId(){return"smithy.protocols#rpcv2Json"}getPayloadCodec(){return this.codec}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);Object.assign(o.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-json",accept:this.getDefaultContentType()}),mn(e.input)==="unit"?(delete o.body,delete o.headers["content-type"]):o.body||(o.body="{}");let{service:s,operation:i}=Le(n),a=`/service/${s}/operation/${i}`;return o.path.endsWith("/")?o.path+=a.slice(1):o.path+=a,o}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,o,s){let i=o0(n,o)??"Unknown",a={$metadata:s,$fault:n.statusCode<=500?"client":"server"},c=this.options.defaultNamespace;i.includes("#")&&([c]=i.split("#"));let u=this.compositeErrorRegistry,f=Fe.for(c);u.copyFrom(f);let m;try{m=u.getSchema(i)}catch{o.Message&&(o.message=o.Message);let q=Fe.for("smithy.ts.sdk.synthetic."+c);u.copyFrom(q);let H=u.getBaseException();if(H){let me=u.getErrorCtor(H);throw Object.assign(new me({name:i}),a,o)}throw Object.assign(new Error(i),a,o)}let y=B.of(m),_=u.getErrorCtor(m),C=o.message??o.Message??"Unknown",A=new _({}),x={},T=this.codec.createDeserializer();for(let[I,q]of y.structIterator())o[I]!=null&&(x[I]=T.readObject(q,o[I]));throw Object.assign(A,a,{$fault:y.getMergedTraits().error,message:C},x)}getDefaultContentType(){return"application/json"}}});var ml,CP=g(()=>{da();ae();j();j();oe();Dc();fP();t0();n0();Jp();s0();ml=class extends yn{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=ul(e)?cl:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await Ic(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=B.of(e);if(n){if(o.isStructSchema()){let i=r,a=o.isUnionSchema(),c={},u,{jsonName:f}=this.settings;f&&(u={});let m;a&&(m=new al(i,c));for(let[y,_]of o.structIterator()){let C=y;f&&(C=_.getMergedTraits().jsonName??C,u[C]=y),a&&m.mark(C),i[C]!=null&&(c[y]=this._read(_,i[C]))}if(a)m.writeUnknown();else if(typeof i.__type=="string")for(let y in i){if(!W(i,y))continue;let _=i[y],C=f?u[y]??y:y;C in c||(c[C]=_)}return c}if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema(),a=[];for(let c of r)a.push(this._read(i,c));return a}if(o.isMapSchema()){let i=o.getValueSchema(),a={};for(let c in r)W(r,c)&&(c==="__proto__"&&ws(a),a[c]=this._read(i,r[c]));return a}}if(o.isBlobSchema()&&typeof r=="string")return Xe(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?qe.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ze(o,this.settings)){case 5:return Ss(r);case 6:return gn(r);case 7:return ys(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof Y)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new Y(i.string,i.type):new Y(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema())if(n){let i=Array.isArray(r)?[]:{};for(let a in r){if(!W(r,a))continue;a==="__proto__"&&ws(i);let c=r[a];c instanceof Y?i[a]=c:i[a]=this._read(o,c)}return i}else return structuredClone(r);return r}}});var iq,d0,aq=g(()=>{j();iq="\u039D",d0=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,r)=>{if(r instanceof Y){let n=`${iq+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),o=`${iq+"b"+this.counter++}_`+n;return this.values.set(`"${o}"`,n),o}return r}}replaceInJson(e){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return e;for(let[r,n]of this.values)e=e.replace(r,n);return e}}});var gl,bP=g(()=>{da();ae();j();Dc();aq();s0();oe();gl=class extends yn{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=B.of(e),this.buffer=this._write(this.rootSchema,r)}flush(){let{rootSchema:e,useReplacer:r}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!r)return JSON.stringify(this.buffer);let n=new d0;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,r){this.write(e,r),typeof this.buffer=="object"&&(this.buffer.__type=B.of(e).getName(!0))}_write(e,r,n){let o=r!==null&&typeof r=="object",s=B.of(e);if(o){if(s.isStructSchema()){let i=r,a={},{jsonName:c}=this.settings,u;c&&(u={});let f=0;for(let[m,y]of s.structIterator()){let _=this._write(y,i[m],s);if(_!==void 0){let C=m;c&&(C=y.getMergedTraits().jsonName??m,u[m]=C),a[C]=_,f++}}if(s.isUnionSchema()&&f===0){let{$unknown:m}=i;if(Array.isArray(m)){let[y,_]=m;y==="__proto__"&&ws(a),a[y]=this._write(15,_)}}else if(typeof i.__type=="string")for(let m in i){if(!W(i,m))continue;let y=i[m],_=c?u[m]??m:m;_ in a||(a[_]=this._write(15,y))}return a}if(Array.isArray(r)&&s.isListSchema()){let i=s.getValueSchema(),a=[],c=!!s.getMergedTraits().sparse;for(let u of r)(c||u!=null)&&a.push(this._write(i,u));return a}if(s.isMapSchema()){let i=s.getValueSchema(),a={},c=!!s.getMergedTraits().sparse;for(let u in r){if(!W(r,u))continue;let f=r[u];(c||f!=null)&&(u==="__proto__"&&ws(a),a[u]=this._write(i,f))}return a}if(r instanceof Uint8Array&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??Ie)(r);if(r instanceof Date&&(s.isTimestampSchema()||s.isDocumentSchema()))switch(Ze(s,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return br(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof Y&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(s.isStringSchema()){if(typeof r>"u"&&s.isIdempotencyToken())return xr();let i=s.getMergedTraits().mediaType;return r!=null&&i&&(i==="application/json"||i.endsWith("+json"))?qe.from(r):r}if(typeof r=="number")return Math.abs(r)===1/0||isNaN(r)?String(r):r;if(typeof r=="string"&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??Ie)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),s.isDocumentSchema())if(o){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??Ie)(r);let i=Array.isArray(r)?[]:{};for(let a in r){if(!W(r,a))continue;let c=r[a];a==="__proto__"&&ws(i),c instanceof Y?(this.useReplacer=!0,i[a]=c):i[a]=this._write(s,c)}return i}else return structuredClone(r);return r}}}});var p0,cq=g(()=>{Dc();CP();bP();p0=class extends yn{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new gl(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new ml(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var wo={};Ct(wo,{Field:()=>JS,Fields:()=>XS,FromStringShapeDeserializer:()=>pa,HttpBindingProtocol:()=>la,HttpInterceptingShapeDeserializer:()=>fa,HttpInterceptingShapeSerializer:()=>ma,HttpProtocol:()=>ua,HttpRequest:()=>re,HttpResponse:()=>ft,JsonCodec:()=>p0,JsonCodec2:()=>fl,JsonShapeDeserializer:()=>ml,JsonShapeDeserializer2:()=>ll,JsonShapeSerializer:()=>gl,JsonShapeSerializer2:()=>pl,RequestBuilder:()=>Qp,RpcProtocol:()=>Qn,SerdeContext:()=>Zt,SmithyRpcV2JsonProtocol:()=>l0,ToStringShapeSerializer:()=>il,buildQueryString:()=>j4,collectBody:()=>At,contentLengthMiddleware:()=>dP,contentLengthMiddlewareOptions:()=>pP,determineTimestampFormat:()=>Ze,escapeUri:()=>ga,escapeUriPath:()=>q4,extendedEncodeURIComponent:()=>vo,getContentLengthPlugin:()=>Is,getHttpHandlerExtensionConfiguration:()=>vs,isValidHostname:()=>Sp,loadJsonRpcErrorCode:()=>J4,loadRestJsonErrorCode:()=>Y4,loadSmithyRpcV2JsonErrorCode:()=>o0,parseJsonBody:()=>Ic,parseJsonErrorBody:()=>Q4,parseQueryString:()=>yp,parseUrl:()=>Cr,requestBuilder:()=>YS,resolveHttpHandlerRuntimeConfig:()=>Ds,resolvedPath:()=>QS});var V=g(()=>{Yu();FS();O4();KS();aP();$4();cP();uP();k4();M4();lP();da();Ju();N4();F4();oe();oe();oe();B4();G4();ZS();H4();z4();oe();oe();sq();Jp();cq();bP();CP();RP();_P();yP()});var uq,lq,dq,pq,fq,mq,gq=g(()=>{uq=["AccessDeniedException","AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],lq=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],dq=["TimeoutError","RequestTimeout","RequestTimeoutException"],pq=[500,502,503,504],fq=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],mq=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"]});function TP(t){return t.code==="ERR_HTTP2_STREAM_ERROR"&&t.message.includes("NGHTTP2_REFUSED_STREAM")}var Xp,f0,AP,xP,Os,ha,m0,hl=g(()=>{gq();Xp=t=>t?.$retryable!==void 0,f0=t=>uq.includes(t.name),AP=t=>t.$metadata?.clockSkewCorrected,xP=t=>{let e=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return t&&t instanceof TypeError?e.has(t.message):!1},Os=t=>t.$metadata?.httpStatusCode===429||lq.includes(t.name)||t.$retryable?.throttling==!0,ha=(t,e=0)=>t?.name!=="AbortError"&&(Xp(t)||AP(t)||t.name==="InvalidSignatureException"&&t.message?.includes("Signature expired")||dq.includes(t.name)||fq.includes(t?.code||"")||mq.includes(t?.code||"")||pq.includes(t.$metadata?.httpStatusCode||0)||xP(t)||TP(t)||t.cause!==void 0&&e<=10&&ha(t.cause,e+1)),m0=t=>{if(t.$metadata?.httpStatusCode!==void 0){let e=t.$metadata.httpStatusCode;return 500<=e&&e<=599&&!ha(t)}return!1}});var g0,Zp,h0,Sl,vP,DP,S0,Sa,ya,ef=g(()=>{g0=100,Zp=2e4,h0=500,Sl=500,vP=5,DP=10,S0=1,Sa="amz-sdk-invocation-id",ya="amz-sdk-request"});function IP(t,e){if(ft.isInstance(t))for(let r in t.headers){if(!W(t.headers,r))continue;let n=r.toLowerCase();if(n==="retry-after"){let o=t.headers[r],s=NaN;if(o.endsWith("GMT"))try{s=(gn(o).getTime()-Date.now())/1e3}catch(i){e?.trace?.("Failed to parse retry-after header"),e?.trace?.(i)}else o.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?s=Number(o.match(/ GMT, ([\d.]+)$/)?.[1]):o.match(/^((\d+)|(\d+\.\d+))$/)?s=Number(o):Date.parse(o)>=Date.now()&&(s=(Date.parse(o)-Date.now())/1e3);return isNaN(s)?void 0:new Date(Date.now()+s*1e3)}else if(n==="x-amz-retry-after"){let o=t.headers[r],s=Number(o);if(isNaN(s)){e?.trace?.(`Failed to parse x-amz-retry-after=${o}`);return}return new Date(Date.now()+s)}}}function hq(t,e){return IP(t,e)}var wP=g(()=>{oe();V();j()});var y0,PP=g(()=>{y0=t=>t instanceof Error?t:t instanceof Object?Object.assign(new Error,t):typeof t=="string"?new Error(t):new Error(`AWS SDK error wrapper for ${t}`)});function OP(t){return e=>(r,n)=>async o=>{let s=await e.retryStrategy(),i=await e.maxAttempts();if(Zxe(s)){s=s;let a=await s.acquireInitialRetryToken((n.partition_id??"")+(n.__retryLongPoll?":longpoll":"")),c=new Error,u=0,f=0,{request:m}=o,y=re.isInstance(m);for(y&&(m.headers[Sa]=Qu());;)try{y&&(m.headers[ya]=`attempt=${u+1}; max=${i}`);let{response:_,output:C}=await r(o);return s.recordSuccess(a),C.$metadata.attempts=u+1,C.$metadata.totalRetryDelay=f,{response:_,output:C}}catch(_){let C=eTe(_,e.logger);if(c=y0(_),y&&t(m))throw(n.logger instanceof Nr?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),c;try{a=await s.refreshRetryTokenForRetry(a,C)}catch{throw c.$metadata||(c.$metadata={}),c.$metadata.attempts=u+1,c.$metadata.totalRetryDelay=f,c}u=a.getRetryCount();let A=a.getRetryDelay();f+=(a?.$retryLog?.acquisitionDelay??0)+A,A>0&&await Xxe(A)}}else return s=s,s?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",s.mode]]),s.retry(r,o)}}function Sq(t){let e=OP(t);return r=>({applyToStack:n=>{n.add(e(r),$P)}})}var Xxe,Zxe,eTe,tTe,$P,kP=g(()=>{J();V();j();hl();ef();wP();PP();Xxe=t=>new Promise(e=>setTimeout(e,t)),Zxe=t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u",eTe=(t,e)=>{let r={error:t,errorType:tTe(t)},n=IP(t.$response,e);return n&&(r.retryAfterHint=n),r},tTe=t=>Os(t)?"THROTTLING":ha(t)?"TRANSIENT":m0(t)?"SERVER_ERROR":"CLIENT_ERROR",$P={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0}});var Ea,E0=g(()=>{hl();Ea=class t{static setTimeoutFn=(e,r)=>setTimeout(e,r);beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;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,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let r;this.updateMeasuredRate();let n=e;if(n?.errorType==="THROTTLING"||Os(n?.error??e)){let i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());let s=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(s)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(e){if(this.enabled){for(this.refillTokenBucket();e>this.availableTokens;){let r=(e-this.availableTokens)/this.fillRate*1e3;await new Promise(n=>t.setTimeoutFn(n,r)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-e}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let r=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+r),this.lastTimestamp=e}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.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),r=Math.floor(e*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){let n=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(e){return parseFloat(e.toFixed(8))}}});var xt,yl=g(()=>{xt=class t{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return t.v2026?50:100}static throttlingDelay(){return t.v2026?1e3:500}static cost(){return t.v2026?14:5}static throttlingCost(){return t.v2026?5:10}static modifiedCostType(){return t.v2026?"THROTTLING":"TRANSIENT"}}});var _0,yq=g(()=>{yl();_0=class{x=xt.delay();computeNextBackoffDelay(e){let o=Math.random()*Math.min(this.x*2**e,2e4);return Math.floor(o)}setDelayBase(e){this.x=e}}});var tf,Eq=g(()=>{tf=class{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(e,r,n,o){this.delay=e,this.count=r,this.cost=n,this.longPoll=o}getRetryCount(){return this.count}getRetryDelay(){return Math.min(2e4,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}});var er,Po,Yn,wc=g(()=>{(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(er||(er={}));Po=3,Yn=er.STANDARD});var R0,Oo,rf=g(()=>{yq();Eq();wc();yl();R0={incompatible:1,attempts:2,capacity:3},Oo=class{mode=er.STANDARD;retryBackoffStrategy;capacity=500;maxAttemptsProvider;baseDelay;constructor(e){typeof e=="number"?this.maxAttemptsProvider=async()=>e:typeof e=="function"?this.maxAttemptsProvider=e:e&&typeof e=="object"&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>Po,this.baseDelay??=xt.delay(),this.retryBackoffStrategy??=new _0}async acquireInitialRetryToken(e){return new tf(xt.delay(),0,void 0,xt.v2026&&e.includes(":longpoll"))}async refreshRetryTokenForRetry(e,r){let n=await this.getMaxAttempts(),o=this.retryCode(e,r,n),s=o===0,i=e.isLongPoll?.();if(s||i){let a=r.errorType;this.retryBackoffStrategy.setDelayBase(a==="THROTTLING"?xt.throttlingDelay():this.baseDelay);let c=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),u=c;if(r.retryAfterHint instanceof Date&&(u=Math.max(c,Math.min(r.retryAfterHint.getTime()-Date.now(),c+5e3))),s){let f=this.getCapacityCost(a);this.capacity-=f;let m=new tf(0,e.getRetryCount()+1,f,e.isLongPoll?.()??!1);return await new Promise(y=>setTimeout(y,u)),m.$retryLog.acquisitionDelay=u,m}else{let f=xt.v2026&&o===R0.capacity&&i?u:0;f>0&&await new Promise(m=>setTimeout(m,f))}}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${Po}`),Po}}retryCode(e,r,n){let o=e.getRetryCount()+1,s=this.isRetryableError(r.errorType)?0:R0.incompatible,i=o<n?0:R0.attempts,a=this.capacity>=this.getCapacityCost(r.errorType)?0:R0.capacity;return s||i||a}getCapacityCost(e){return e===xt.modifiedCostType()?xt.throttlingCost():xt.cost()}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}});var El,MP=g(()=>{E0();rf();wc();El=class{mode=er.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,r){let{rateLimiter:n}=r??{};this.rateLimiter=n??new Ea,this.standardRetryStrategy=r?new Oo({maxAttempts:typeof e=="number"?e:3,...r}):new Oo(e)}async acquireInitialRetryToken(e){let r=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),r}async refreshRetryTokenForRetry(e,r){this.rateLimiter.updateClientSendingRate(r);let n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,r);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}}});var C0,_q=g(()=>{rf();yl();C0=class extends Oo{computeNextBackoffDelay;constructor(e,r=xt.delay()){super(typeof e=="function"?e:async()=>e),typeof r=="number"?this.computeNextBackoffDelay=()=>r:this.computeNextBackoffDelay=r,this.retryBackoffStrategy.computeNextBackoffDelay=n=>{let o=n+1;return this.computeNextBackoffDelay(o)}}}});var Rq,Cq=g(()=>{Rq=(t,e)=>{let r=t,n=e?.noRetryIncrement??1,o=e?.retryCost??5,s=e?.timeoutRetryCost??10,i=t,a=m=>m.name==="TimeoutError"?s:o,c=m=>a(m)<=i;return Object.freeze({hasRetryTokens:c,retrieveRetryTokens:m=>{if(!c(m))throw new Error("No retry token available");let y=a(m);return i-=y,y},releaseRetryTokens:m=>{i+=m??n,i=Math.min(i,r)}})}});var b0,LP=g(()=>{b0=(t,e)=>Math.floor(Math.min(2e4,Math.random()*2**e*t))});var A0,NP=g(()=>{hl();A0=t=>t?Xp(t)||f0(t)||Os(t)||ha(t):!1});var _l,rTe,FP=g(()=>{V();j();hl();wc();ef();PP();Cq();LP();NP();_l=class{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=er.STANDARD;constructor(e,r){this.maxAttemptsProvider=e,this.retryDecider=r?.retryDecider??A0,this.delayDecider=r?.delayDecider??b0,this.retryQuota=r?.retryQuota??Rq(500)}shouldRetry(e,r,n){return r<n&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch{e=Po}return e}async retry(e,r,n){let o,s=0,i=0,a=await this.getMaxAttempts(),{request:c}=r;for(re.isInstance(c)&&(c.headers[Sa]=Qu());;)try{re.isInstance(c)&&(c.headers[ya]=`attempt=${s+1}; max=${a}`),n?.beforeRequest&&await n.beforeRequest();let{response:u,output:f}=await e(r);return n?.afterRequest&&n.afterRequest(u),this.retryQuota.releaseRetryTokens(o),f.$metadata.attempts=s+1,f.$metadata.totalRetryDelay=i,{response:u,output:f}}catch(u){let f=y0(u);if(s++,this.shouldRetry(f,s,a)){o=this.retryQuota.retrieveRetryTokens(f);let m=this.delayDecider(Os(f)?500:100,s),y=rTe(f.$response),_=Math.max(y||0,m);i+=_,await new Promise(C=>setTimeout(C,_));continue}throw f.$metadata||(f.$metadata={}),f.$metadata.attempts=s,f.$metadata.totalRetryDelay=i,f}}},rTe=t=>{if(!ft.isInstance(t))return;let e=Object.keys(t.headers).find(s=>s.toLowerCase()==="retry-after");if(!e)return;let r=t.headers[e],n=Number(r);if(!Number.isNaN(n))return Math.min(n*1e3,2e4);let o=new Date(r);return Math.min(o.getTime()-Date.now(),2e4)}});var x0,bq=g(()=>{E0();wc();FP();x0=class extends _l{rateLimiter;constructor(e,r){let{rateLimiter:n,...o}=r??{};super(e,o),this.rateLimiter=n??new Ea,this.mode=er.ADAPTIVE}async retry(e,r){return super.retry(e,r,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:n=>{this.rateLimiter.updateClientSendingRate(n)}})}}});var T0,v0,$s,ks,BP,UP,Ms,Aq=g(()=>{J();MP();rf();wc();yl();T0="AWS_MAX_ATTEMPTS",v0="max_attempts",$s={environmentVariableSelector:t=>{let e=t[T0];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Environment variable ${T0} mast be a number, got "${e}"`);return r},configFileSelector:t=>{let e=t[v0];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Shared config file entry ${v0} mast be a number, got "${e}"`);return r},default:Po},ks=(t,e)=>{let{retryStrategy:r,retryMode:n}=t,{defaultMaxAttempts:o=Po,defaultBaseDelay:s=xt.delay()}=e??{},i=we(t.maxAttempts??o),a=r?Promise.resolve(r):void 0,c=async()=>{let u=await i();return await we(n)()===er.ADAPTIVE?new El(i,{maxAttempts:u,baseDelay:s}):new Oo({maxAttempts:u,baseDelay:s})};return Object.assign(t,{maxAttempts:i,retryStrategy:()=>a??=c()})},BP="AWS_RETRY_MODE",UP="retry_mode",Ms={environmentVariableSelector:t=>t[BP],configFileSelector:t=>t[UP],default:Yn}});var GP,qP,xq,Tq=g(()=>{V();ef();GP=()=>t=>async e=>{let{request:r}=e;return re.isInstance(r)&&(delete r.headers[Sa],delete r.headers[ya]),t(e)},qP={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},xq=t=>({applyToStack:e=>{e.addRelativeTo(GP(),qP)}})});var nf={};Ct(nf,{AdaptiveRetryStrategy:()=>El,CONFIG_MAX_ATTEMPTS:()=>v0,CONFIG_RETRY_MODE:()=>UP,ConfiguredRetryStrategy:()=>C0,DEFAULT_MAX_ATTEMPTS:()=>Po,DEFAULT_RETRY_DELAY_BASE:()=>g0,DEFAULT_RETRY_MODE:()=>Yn,DefaultRateLimiter:()=>Ea,DeprecatedAdaptiveRetryStrategy:()=>x0,DeprecatedStandardRetryStrategy:()=>_l,ENV_MAX_ATTEMPTS:()=>T0,ENV_RETRY_MODE:()=>BP,INITIAL_RETRY_TOKENS:()=>Sl,INVOCATION_ID_HEADER:()=>Sa,MAXIMUM_RETRY_DELAY:()=>Zp,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>$s,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>Ms,NO_RETRY_INCREMENT:()=>S0,REQUEST_HEADER:()=>ya,RETRY_COST:()=>vP,RETRY_MODES:()=>er,Retry:()=>xt,StandardRetryStrategy:()=>Oo,THROTTLING_RETRY_DELAY_BASE:()=>h0,TIMEOUT_RETRY_COST:()=>DP,defaultDelayDecider:()=>b0,defaultRetryDecider:()=>A0,getOmitRetryHeadersPlugin:()=>xq,getRetryAfterHint:()=>hq,getRetryPlugin:()=>xi,isBrowserNetworkError:()=>xP,isClockSkewCorrectedError:()=>AP,isClockSkewError:()=>f0,isNodeJsHttp2TransientError:()=>TP,isRetryableByTrait:()=>Xp,isServerError:()=>m0,isThrottlingError:()=>Os,isTransientError:()=>ha,omitRetryHeadersMiddleware:()=>GP,omitRetryHeadersMiddlewareOptions:()=>qP,resolveRetryConfig:()=>ks,retryMiddleware:()=>nTe,retryMiddlewareOptions:()=>$P});var nTe,xi,en=g(()=>{z3();kP();hl();MP();_q();E0();rf();wc();ef();yl();bq();FP();LP();NP();Aq();Tq();kP();wP();nTe=OP(GD),xi=Sq(GD)});function We(t,e,r){t.__aws_sdk_context?t.__aws_sdk_context.features||(t.__aws_sdk_context.features={}):t.__aws_sdk_context={features:{}},t.__aws_sdk_context.features[e]=r}var HP=g(()=>{en();xt.v2026||=typeof process=="object"&&process.env?.AWS_NEW_RETRIES_2026==="true"});function vq(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var Dq=g(()=>{});function Rl(t){return t}var jP,zP,Ls,Iq=g(()=>{V();jP=t=>e=>async r=>{if(!re.isInstance(r.request))return e(r);let{request:n}=r,{handlerProtocol:o=""}=t.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let s=n.hostname;n.port!=null&&(s+=`:${n.port}`),n.headers.host=s}return e(r)},zP={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Ls=t=>({applyToStack:e=>{e.add(jP(t),zP)}})});var VP,WP,Ns,wq=g(()=>{VP=()=>(t,e)=>async r=>{try{let n=await t(r),{clientName:o,commandName:s,logger:i,dynamoDbDocumentClientOptions:a={}}=e,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=a,f=c??e.inputFilterSensitiveLog,m=u??e.outputFilterSensitiveLog,{$metadata:y,..._}=n.output;return i?.info?.({clientName:o,commandName:s,input:f(r.input),output:m(_),metadata:y}),n}catch(n){let{clientName:o,commandName:s,logger:i,dynamoDbDocumentClientOptions:a={}}=e,{overrideInputFilterSensitiveLog:c}=a,u=c??e.inputFilterSensitiveLog;throw i?.error?.({clientName:o,commandName:s,input:u(r.input),error:n,metadata:n.$metadata}),n}},WP={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Ns=t=>({applyToStack:e=>{e.add(VP(),WP)}})});var D0,KP=g(()=>{D0={step:"build",tags:["RECURSION_DETECTION","TRACE_CONTEXT_PROPAGATION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"}});var _a,QP,I0,YP,JP,of,Pq=g(()=>{_a={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"),TRACEPARENT:Symbol.for("_AWS_LAMBDA_TRACEPARENT"),TRACESTATE:Symbol.for("_AWS_LAMBDA_TRACESTATE"),BAGGAGE:Symbol.for("_AWS_LAMBDA_BAGGAGE")},QP=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");QP||(globalThis.awslambda=globalThis.awslambda||{});I0=class{static PROTECTED_KEYS=_a;isProtectedKey(e){return Object.values(_a).includes(e)}getRequestId(){return this.get(_a.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(_a.X_RAY_TRACE_ID)}getTenantId(){return this.get(_a.TENANT_ID)}getTraceparent(){return this.get(_a.TRACEPARENT)}getTracestate(){return this.get(_a.TRACESTATE)}getBaggage(){return this.get(_a.BAGGAGE)}},YP=class extends I0{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(e){return this.currentContext?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);this.currentContext=this.currentContext||{},this.currentContext[e]=r}run(e,r){return this.currentContext=e,r()}},JP=class t extends I0{als;static async create(){let e=new t,r=await import("node:async_hooks");return e.als=new r.AsyncLocalStorage,e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(e){return this.als.getStore()?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);let n=this.als.getStore();if(!n)throw new Error("No context available");n[e]=r}run(e,r){return this.als.run(e,r)}};(function(t){let e=null;async function r(n){return e||(e=(async()=>{let s=n===!0||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await JP.create():new YP;return!QP&&globalThis.awslambda?.InvokeStore?globalThis.awslambda.InvokeStore:(!QP&&globalThis.awslambda&&(globalThis.awslambda.InvokeStore=s),s)})()),e}t.getInstanceAsync=r,t._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{e=null,globalThis.awslambda?.InvokeStore&&delete globalThis.awslambda.InvokeStore,globalThis.awslambda={InvokeStore:void 0}}}:void 0})(of||(of={}))});function iTe(t){for(let e of Object.keys(t)){let r=e.toLowerCase();e!==r&&(r===ZP||r===Oq||r===$q)&&(t[r]=t[e],delete t[e])}}var oTe,sTe,XP,ZP,Oq,$q,w0,eO=g(()=>{Pq();V();oTe="AWS_LAMBDA_FUNCTION_NAME",sTe="_X_AMZN_TRACE_ID",XP="X-Amzn-Trace-Id",ZP="traceparent",Oq="tracestate",$q="baggage",w0=()=>t=>async e=>{let{request:r}=e;if(!re.isInstance(r))return t(e);let n;{let o=Object.keys(r.headers??{}).find(s=>s.toLowerCase()===XP.toLowerCase())??XP;if(!r.headers.hasOwnProperty(o)){let s=process.env[oTe],i=process.env[sTe];n??=await of.getInstanceAsync();let c=n?.getXRayTraceId()??i,u=f=>typeof f=="string"&&f.length>0;u(s)&&u(c)&&(r.headers[XP]=c)}}if(iTe(r.headers),!r.headers[ZP]){let s=(n??=await of.getInstanceAsync())?.getTraceparent?.();if(s){r.headers[ZP]=s;let i=n?.getTracestate?.();i&&(r.headers[Oq]=i);let a=n?.getBaggage?.();a&&(r.headers[$q]=a)}}return t(e)}});var Fs,kq=g(()=>{KP();eO();Fs=t=>({applyToStack:e=>{e.add(w0(),D0)}})});var Mq,Lq=g(()=>{Mq=(t,e)=>{if(!e||e.length===0)return t;let r=[];for(let n of e)for(let o of t)o.schemeId.split("#")[1]===n&&r.push(o);for(let n of t)r.find(({schemeId:o})=>o===n.schemeId)||r.push(n);return r}});function aTe(t){let e=new Map;for(let r of t)e.set(r.schemeId,r);return e}var Pc,P0=g(()=>{oe();Lq();Pc=(t,e)=>(r,n)=>async o=>{let s=t.httpAuthSchemeProvider(await e.httpAuthSchemeParametersProvider(t,n,o.input)),i=t.authSchemePreference?await t.authSchemePreference():[],a=Mq(s,i),c=aTe(t.httpAuthSchemes),u=Le(n),f=[];for(let m of a){let y=c.get(m.schemeId);if(!y){f.push(`HttpAuthScheme \`${m.schemeId}\` was not enabled for this service.`);continue}let _=y.identityProvider(await e.identityProviderConfigProvider(t));if(!_){f.push(`HttpAuthScheme \`${m.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:C={},signingProperties:A={}}=m.propertiesExtractor?.(t,n)||{};m.identityProperties=Object.assign(m.identityProperties||{},C),m.signingProperties=Object.assign(m.signingProperties||{},A),u.selectedHttpAuthScheme={httpAuthOption:m,identity:await _(m.identityProperties),signer:y.signer};break}if(!u.selectedHttpAuthScheme)throw new Error(f.join(`
|
|
24
|
-
`));return r(o)}});var O0,$o,Nq=g(()=>{P0();O0={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},$o=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(Pc(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),O0)}})});var $0,tO,Fq=g(()=>{P0();$0={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},tO=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(Pc(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),$0)}})});var Bq=g(()=>{P0();Nq();Fq()});var cTe,uTe,sf,rO=g(()=>{V();oe();cTe=t=>e=>{throw e},uTe=(t,e)=>{},sf=t=>(e,r)=>async n=>{if(!re.isInstance(n.request))return e(n);let s=Le(r).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:i={}},identity:a,signer:c}=s,u=await e({...n,request:await c.sign(n.request,a,i)}).catch((c.errorHandler||cTe)(i));return(c.successHandler||uTe)(u.response,i),u}});var Oc,ko,Uq=g(()=>{rO();Oc={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},ko=t=>({applyToStack:e=>{e.addRelativeTo(sf(t),Oc)}})});var Gq=g(()=>{rO();Uq()});var Jn,qq=g(()=>{Jn=t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e}});function Hq(t,e,r,n,o){return async function*(i,a,...c){let u=a,f=i.startingToken??u[r],m=!0,y;for(;m;){if(u[r]=f,o&&(u[o]=u[o]??i.pageSize),i.client instanceof t)y=await lTe(e,i.client,a,i.withCommand,...c);else throw new Error(`Invalid client, expected instance of ${t.name}`);yield y;let _=f;f=dTe(y,n),m=!!(f&&(!i.stopOnSameToken||f!==_))}return void 0}}var lTe,dTe,jq=g(()=>{lTe=async(t,e,r,n=s=>s,...o)=>{let s=new t(r);return s=n(s)??s,await e.send(s,...o)};dTe=(t,e)=>{let r=t,n=e.split(".");for(let o of n){if(!r||typeof r!="object")return;r=r[o]}return r}});function zq(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}var Vq=g(()=>{});var $n,Wq=g(()=>{oe();$n=class{authSchemes=new Map;constructor(e){for(let r in e){if(!W(e,r))continue;let n=e[r];n!==void 0&&this.authSchemes.set(r,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}}});var nO,Cl,Kq=g(()=>{V();nO=De(Eo()),Cl=class{async sign(e,r,n){if(!n)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!n.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!n.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!r.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let o=re.clone(e);if(n.in===nO.HttpApiKeyAuthLocation.QUERY)o.query[n.name]=r.apiKey;else if(n.in===nO.HttpApiKeyAuthLocation.HEADER)o.headers[n.name]=n.scheme?`${n.scheme} ${r.apiKey}`:r.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+n.in+"`");return o}}});var bl,Qq=g(()=>{V();bl=class{async sign(e,r,n){let o=re.clone(e);if(!r.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return o.headers.Authorization=`Bearer ${r.token}`,o}}});var Ur,Yq=g(()=>{Ur=class{async sign(e,r,n){return e}}});var Jq=g(()=>{Kq();Qq();Yq()});var k0,oO,af,Al,cf,Xq=g(()=>{k0=t=>function(r){return Al(r)&&r.expiration.getTime()-Date.now()<t},oO=3e5,af=k0(3e5),Al=t=>t.expiration!==void 0,cf=(t,e,r)=>{if(t===void 0)return;let n=typeof t!="function"?async()=>Promise.resolve(t):t,o,s,i,a=!1,c=async u=>{s||(s=n(u));try{o=await s,i=!0,a=!1}finally{s=void 0}return o};return e===void 0?async u=>((!i||u?.forceRefresh)&&(o=await c(u)),o):async u=>((!i||u?.forceRefresh)&&(o=await c(u)),a?o:r(o)?(e(o)&&await c(u),o):(a=!0,o))}});var Zq=g(()=>{Wq();Jq();Xq()});var xl={};Ct(xl,{DefaultIdentityProviderConfig:()=>$n,EXPIRATION_MS:()=>oO,HttpApiKeyAuthSigner:()=>Cl,HttpBearerAuthSigner:()=>bl,NoAuthSigner:()=>Ur,createIsIdentityExpiredFunction:()=>k0,createPaginator:()=>Hq,doesIdentityRequireRefresh:()=>Al,getHttpAuthSchemeEndpointRuleSetPlugin:()=>$o,getHttpAuthSchemePlugin:()=>tO,getHttpSigningPlugin:()=>ko,getSmithyContext:()=>Le,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>O0,httpAuthSchemeMiddleware:()=>Pc,httpAuthSchemeMiddlewareOptions:()=>$0,httpSigningMiddleware:()=>sf,httpSigningMiddlewareOptions:()=>Oc,isIdentityExpired:()=>af,memoizeIdentityProvider:()=>cf,normalizeProvider:()=>Jn,requestBuilder:()=>YS,setFeature:()=>zq});var jt=g(()=>{oe();Bq();Gq();qq();jq();V();Vq();Zq()});function pTe(t){return t===void 0?!0:typeof t=="string"&&t.length<=50}function Bs(t){let e=Jn(t.userAgentAppId??uf),{customUserAgent:r}=t;return Object.assign(t,{customUserAgent:typeof r=="string"?[[r]]:r,userAgentAppId:async()=>{let n=await e();if(!pTe(n)){let o=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?console:t.logger;typeof n!="string"?o?.warn("userAgentAppId must be a string or undefined."):n.length>50&&o?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return n}})}var uf,sO=g(()=>{jt();uf=void 0});var iO,eH=g(()=>{iO={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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"}});var tH,rH,M0,aO,nH,L0,N0=g(()=>{eH();tH=iO,rH="",M0=t=>{let{partitions:e}=tH;for(let n of e){let{regions:o,outputs:s}=n;for(let[i,a]of Object.entries(o))if(i===t)return{...s,...a}}for(let n of e){let{regionRegex:o,outputs:s}=n;if(new RegExp(o).test(t))return{...s}}let r=e.find(n=>n.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},aO=(t,e="")=>{tH=t,rH=e},nH=()=>{aO(iO,"")},L0=()=>rH});async function oH(t,e,r){if(r.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&We(t,"PROTOCOL_RPC_V2_CBOR","M"),typeof e.retryStrategy=="function"){let s=await e.retryStrategy();if(typeof s.mode=="string")switch(s.mode){case er.ADAPTIVE:We(t,"RETRY_MODE_ADAPTIVE","F");break;case er.STANDARD:We(t,"RETRY_MODE_STANDARD","E");break}}if(typeof e.accountIdEndpointMode=="function"){let s=t.endpointV2;switch(String(s?.url?.hostname).match(fTe)&&We(t,"ACCOUNT_ID_ENDPOINT","O"),await e.accountIdEndpointMode?.()){case"disabled":We(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":We(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":We(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let o=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(o?.$source){let s=o;s.accountId&&We(t,"RESOLVED_ACCOUNT_ID","T");for(let[i,a]of Object.entries(s.$source??{}))We(t,i,a)}}var fTe,sH=g(()=>{en();HP();fTe=/\d{12}\.ddb/});var cO,F0,iH,aH,cH=g(()=>{cO="user-agent",F0="x-amz-user-agent",iH=/[^!$%&'*+\-.^_`|~\w]/g,aH=/[^!$%&'*+\-.^_`|~\w#]/g});function uH(t){let e="";for(let r in t){let n=t[r];if(e.length+n.length+1<=1024){e.length?e+=","+n:e+=n;continue}break}return e}var lH=g(()=>{});var lO,B0,dO,Us,fH=g(()=>{V();N0();sH();cH();lH();lO=t=>(e,r)=>async n=>{let{request:o}=n;if(!re.isInstance(o))return e(n);let{headers:s}=o,i=r?.userAgent?.map(B0)||[],a=(await t.defaultUserAgentProvider()).map(B0);await oH(r,t,n);let c=r;a.push(`m/${uH(Object.assign({},r.__smithy_context?.features,c.__aws_sdk_context?.features))}`);let u=t?.customUserAgent?.map(B0)||[],f=await t.userAgentAppId();f&&a.push(B0(["app",`${f}`]));let m=L0(),y=(m?[m]:[]).concat([...a,...i,...u]).join(" "),_=[...a.filter(C=>C.startsWith("aws-sdk-")),...u].join(" ");return t.runtime!=="browser"?(_&&(s[F0]=s[F0]?`${s[cO]} ${_}`:_),s[cO]=y):s[F0]=y,e({...n,request:o})},B0=t=>{let e=t[0].split("/").map(i=>i.replace(iH,"-")).join("/"),r=t[1]?.replace(aH,"-"),n=e.indexOf("/"),o=e.substring(0,n),s=e.substring(n+1);return o==="api"&&(s=s.toLowerCase()),[o,s,r].filter(i=>i&&i.length>0).reduce((i,a,c)=>{switch(c){case 0:return a;case 1:return`${i}/${a}`;default:return`${i}#${a}`}},"")},dO={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Us=t=>({applyToStack:e=>{e.add(lO(t),dO)}})});var U0,mH,gH=g(()=>{U0=require("node:process"),mH=()=>{let t=["deno","bun","llrt"];for(let e of t)if(U0.versions[e])return[`md/${e}`,U0.versions[e]];return["md/nodejs",U0.versions.node]}});var lf,pO=g(()=>{lf={isCrtAvailable:!1}});var hH,SH=g(()=>{pO();hH=()=>lf.isCrtAvailable?["md/crt-avail"]:null});var G0,fO,Mo,yH,EH=g(()=>{G0=require("node:os"),fO=require("node:process");gH();SH();pO();Mo=({serviceId:t,clientVersion:e})=>{let r=mH();return async n=>{let o=[["aws-sdk-js",e],["ua","2.1"],[`os/${(0,G0.platform)()}`,(0,G0.release)()],["lang/js"],r],s=hH();s&&o.push(s),t&&o.push([`api/${t}`,e]),fO.env.AWS_EXECUTION_ENV&&o.push([`exec-env/${fO.env.AWS_EXECUTION_ENV}`]);let i=await n?.userAgentAppId?.();return i?[...o,[`app/${i}`]]:[...o]}},yH=Mo});var mO,gO,mTe,Gs,_H=g(()=>{sO();mO="AWS_SDK_UA_APP_ID",gO="sdk_ua_app_id",mTe="sdk-ua-app-id",Gs={environmentVariableSelector:t=>t[mO],configFileSelector:t=>t[gO]??t[mTe],default:uf}});var RH=st((df,hO)=>{(function(t,e){typeof df=="object"&&typeof hO=="object"?hO.exports=e():typeof define=="function"&&define.amd?define([],e):typeof df=="object"?df.bowser=e():t.bowser=e()})(df,(function(){return(function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(n,o,s){r.o(n,o)||Object.defineProperty(n,o,{enumerable:!0,get:s})},r.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,o){if(1&o&&(n=r(n)),8&o||4&o&&typeof n=="object"&&n&&n.__esModule)return n;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:n}),2&o&&typeof n!="string")for(var i in n)r.d(s,i,function(a){return n[a]}.bind(null,i));return s},r.n=function(n){var o=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(o,"a",o),o},r.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)},r.p="",r(r.s=90)})({17:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=r(18),o=(function(){function s(){}return s.getFirstMatch=function(i,a){var c=a.match(i);return c&&c.length>0&&c[1]||""},s.getSecondMatch=function(i,a){var c=a.match(i);return c&&c.length>1&&c[2]||""},s.matchAndReturnConst=function(i,a,c){if(i.test(a))return c},s.getWindowsVersionName=function(i){switch(i){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},s.getMacOSVersionName=function(i){var a=i.split(".").splice(0,2).map((function(f){return parseInt(f,10)||0}));a.push(0);var c=a[0],u=a[1];if(c===10)switch(u){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(c){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},s.getAndroidVersionName=function(i){var a=i.split(".").splice(0,2).map((function(c){return parseInt(c,10)||0}));if(a.push(0),!(a[0]===1&&a[1]<5))return a[0]===1&&a[1]<6?"Cupcake":a[0]===1&&a[1]>=6?"Donut":a[0]===2&&a[1]<2?"Eclair":a[0]===2&&a[1]===2?"Froyo":a[0]===2&&a[1]>2?"Gingerbread":a[0]===3?"Honeycomb":a[0]===4&&a[1]<1?"Ice Cream Sandwich":a[0]===4&&a[1]<4?"Jelly Bean":a[0]===4&&a[1]>=4?"KitKat":a[0]===5?"Lollipop":a[0]===6?"Marshmallow":a[0]===7?"Nougat":a[0]===8?"Oreo":a[0]===9?"Pie":void 0},s.getVersionPrecision=function(i){return i.split(".").length},s.compareVersions=function(i,a,c){c===void 0&&(c=!1);var u=s.getVersionPrecision(i),f=s.getVersionPrecision(a),m=Math.max(u,f),y=0,_=s.map([i,a],(function(C){var A=m-s.getVersionPrecision(C),x=C+new Array(A+1).join(".0");return s.map(x.split("."),(function(T){return new Array(20-T.length).join("0")+T})).reverse()}));for(c&&(y=m-Math.min(u,f)),m-=1;m>=y;){if(_[0][m]>_[1][m])return 1;if(_[0][m]===_[1][m]){if(m===y)return 0;m-=1}else if(_[0][m]<_[1][m])return-1}},s.map=function(i,a){var c,u=[];if(Array.prototype.map)return Array.prototype.map.call(i,a);for(c=0;c<i.length;c+=1)u.push(a(i[c]));return u},s.find=function(i,a){var c,u;if(Array.prototype.find)return Array.prototype.find.call(i,a);for(c=0,u=i.length;c<u;c+=1){var f=i[c];if(a(f,c))return f}},s.assign=function(i){for(var a,c,u=i,f=arguments.length,m=new Array(f>1?f-1:0),y=1;y<f;y++)m[y-1]=arguments[y];if(Object.assign)return Object.assign.apply(Object,[i].concat(m));var _=function(){var C=m[a];typeof C=="object"&&C!==null&&Object.keys(C).forEach((function(A){u[A]=C[A]}))};for(a=0,c=m.length;a<c;a+=1)_();return i},s.getBrowserAlias=function(i){return n.BROWSER_ALIASES_MAP[i]},s.getBrowserTypeByAlias=function(i){return n.BROWSER_MAP[i]||""},s})();e.default=o,t.exports=e.default},18:function(t,e,r){"use strict";e.__esModule=!0,e.ENGINE_MAP=e.OS_MAP=e.PLATFORMS_MAP=e.BROWSER_MAP=e.BROWSER_ALIASES_MAP=void 0,e.BROWSER_ALIASES_MAP={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},e.BROWSER_MAP={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},e.PLATFORMS_MAP={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},e.OS_MAP={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},e.ENGINE_MAP={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"}},90:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(91))&&n.__esModule?n:{default:n},s=r(18);function i(c,u){for(var f=0;f<u.length;f++){var m=u[f];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(c,m.key,m)}}var a=(function(){function c(){}var u,f,m;return c.getParser=function(y,_,C){if(_===void 0&&(_=!1),C===void 0&&(C=null),typeof y!="string")throw new Error("UserAgent should be a string");return new o.default(y,_,C)},c.parse=function(y,_){return _===void 0&&(_=null),new o.default(y,_).getResult()},u=c,m=[{key:"BROWSER_MAP",get:function(){return s.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return s.ENGINE_MAP}},{key:"OS_MAP",get:function(){return s.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return s.PLATFORMS_MAP}}],(f=null)&&i(u.prototype,f),m&&i(u,m),c})();e.default=a,t.exports=e.default},91:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=c(r(92)),o=c(r(93)),s=c(r(94)),i=c(r(95)),a=c(r(17));function c(f){return f&&f.__esModule?f:{default:f}}var u=(function(){function f(y,_,C){if(_===void 0&&(_=!1),C===void 0&&(C=null),y==null||y==="")throw new Error("UserAgent parameter can't be empty");this._ua=y;var A=!1;typeof _=="boolean"?(A=_,this._hints=C):this._hints=_!=null&&typeof _=="object"?_:null,this.parsedResult={},A!==!0&&this.parse()}var m=f.prototype;return m.getHints=function(){return this._hints},m.hasBrand=function(y){if(!this._hints||!Array.isArray(this._hints.brands))return!1;var _=y.toLowerCase();return this._hints.brands.some((function(C){return C.brand&&C.brand.toLowerCase()===_}))},m.getBrandVersion=function(y){if(this._hints&&Array.isArray(this._hints.brands)){var _=y.toLowerCase(),C=this._hints.brands.find((function(A){return A.brand&&A.brand.toLowerCase()===_}));return C?C.version:void 0}},m.getUA=function(){return this._ua},m.test=function(y){return y.test(this._ua)},m.parseBrowser=function(){var y=this;this.parsedResult.browser={};var _=a.default.find(n.default,(function(C){if(typeof C.test=="function")return C.test(y);if(Array.isArray(C.test))return C.test.some((function(A){return y.test(A)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.browser=_.describe(this.getUA(),this)),this.parsedResult.browser},m.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},m.getBrowserName=function(y){return y?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},m.getBrowserVersion=function(){return this.getBrowser().version},m.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},m.parseOS=function(){var y=this;this.parsedResult.os={};var _=a.default.find(o.default,(function(C){if(typeof C.test=="function")return C.test(y);if(Array.isArray(C.test))return C.test.some((function(A){return y.test(A)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.os=_.describe(this.getUA())),this.parsedResult.os},m.getOSName=function(y){var _=this.getOS().name;return y?String(_).toLowerCase()||"":_||""},m.getOSVersion=function(){return this.getOS().version},m.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},m.getPlatformType=function(y){y===void 0&&(y=!1);var _=this.getPlatform().type;return y?String(_).toLowerCase()||"":_||""},m.parsePlatform=function(){var y=this;this.parsedResult.platform={};var _=a.default.find(s.default,(function(C){if(typeof C.test=="function")return C.test(y);if(Array.isArray(C.test))return C.test.some((function(A){return y.test(A)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.platform=_.describe(this.getUA())),this.parsedResult.platform},m.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},m.getEngineName=function(y){return y?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},m.parseEngine=function(){var y=this;this.parsedResult.engine={};var _=a.default.find(i.default,(function(C){if(typeof C.test=="function")return C.test(y);if(Array.isArray(C.test))return C.test.some((function(A){return y.test(A)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.engine=_.describe(this.getUA())),this.parsedResult.engine},m.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},m.getResult=function(){return a.default.assign({},this.parsedResult)},m.satisfies=function(y){var _=this,C={},A=0,x={},T=0;if(Object.keys(y).forEach((function(pt){var Yr=y[pt];typeof Yr=="string"?(x[pt]=Yr,T+=1):typeof Yr=="object"&&(C[pt]=Yr,A+=1)})),A>0){var I=Object.keys(C),q=a.default.find(I,(function(pt){return _.isOS(pt)}));if(q){var H=this.satisfies(C[q]);if(H!==void 0)return H}var me=a.default.find(I,(function(pt){return _.isPlatform(pt)}));if(me){var et=this.satisfies(C[me]);if(et!==void 0)return et}}if(T>0){var ot=Object.keys(x),tt=a.default.find(ot,(function(pt){return _.isBrowser(pt,!0)}));if(tt!==void 0)return this.compareVersion(x[tt])}},m.isBrowser=function(y,_){_===void 0&&(_=!1);var C=this.getBrowserName().toLowerCase(),A=y.toLowerCase(),x=a.default.getBrowserTypeByAlias(A);return _&&x&&(A=x.toLowerCase()),A===C},m.compareVersion=function(y){var _=[0],C=y,A=!1,x=this.getBrowserVersion();if(typeof x=="string")return y[0]===">"||y[0]==="<"?(C=y.substr(1),y[1]==="="?(A=!0,C=y.substr(2)):_=[],y[0]===">"?_.push(1):_.push(-1)):y[0]==="="?C=y.substr(1):y[0]==="~"&&(A=!0,C=y.substr(1)),_.indexOf(a.default.compareVersions(x,C,A))>-1},m.isOS=function(y){return this.getOSName(!0)===String(y).toLowerCase()},m.isPlatform=function(y){return this.getPlatformType(!0)===String(y).toLowerCase()},m.isEngine=function(y){return this.getEngineName(!0)===String(y).toLowerCase()},m.is=function(y,_){return _===void 0&&(_=!1),this.isBrowser(y,_)||this.isOS(y)||this.isPlatform(y)},m.some=function(y){var _=this;return y===void 0&&(y=[]),y.some((function(C){return _.is(C)}))},f})();e.default=u,t.exports=e.default},92:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=/version\/(\d+(\.?_?\d+)+)/i,i=[{test:[/gptbot/i],describe:function(a){var c={name:"GPTBot"},u=o.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/chatgpt-user/i],describe:function(a){var c={name:"ChatGPT-User"},u=o.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/oai-searchbot/i],describe:function(a){var c={name:"OAI-SearchBot"},u=o.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(a){var c={name:"ClaudeBot"},u=o.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(a){var c={name:"Omgilibot"},u=o.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/diffbot/i],describe:function(a){var c={name:"Diffbot"},u=o.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/perplexitybot/i],describe:function(a){var c={name:"PerplexityBot"},u=o.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/perplexity-user/i],describe:function(a){var c={name:"Perplexity-User"},u=o.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/youbot/i],describe:function(a){var c={name:"YouBot"},u=o.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-webindexer/i],describe:function(a){var c={name:"Meta-WebIndexer"},u=o.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-externalads/i],describe:function(a){var c={name:"Meta-ExternalAds"},u=o.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-externalagent/i],describe:function(a){var c={name:"Meta-ExternalAgent"},u=o.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-externalfetcher/i],describe:function(a){var c={name:"Meta-ExternalFetcher"},u=o.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/googlebot/i],describe:function(a){var c={name:"Googlebot"},u=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/linespider/i],describe:function(a){var c={name:"Linespider"},u=o.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/amazonbot/i],describe:function(a){var c={name:"AmazonBot"},u=o.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/bingbot/i],describe:function(a){var c={name:"BingCrawler"},u=o.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/baiduspider/i],describe:function(a){var c={name:"BaiduSpider"},u=o.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/duckduckbot/i],describe:function(a){var c={name:"DuckDuckBot"},u=o.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/ia_archiver/i],describe:function(a){var c={name:"InternetArchiveCrawler"},u=o.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(a){var c={name:"SlackBot"},u=o.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(a){var c={name:"Opera"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/opr\/|opios/i],describe:function(a){var c={name:"Opera"},u=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/SamsungBrowser/i],describe:function(a){var c={name:"Samsung Internet for Android"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/Whale/i],describe:function(a){var c={name:"NAVER Whale Browser"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/PaleMoon/i],describe:function(a){var c={name:"Pale Moon"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/MZBrowser/i],describe:function(a){var c={name:"MZ Browser"},u=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/focus/i],describe:function(a){var c={name:"Focus"},u=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/swing/i],describe:function(a){var c={name:"Swing"},u=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/coast/i],describe:function(a){var c={name:"Opera Coast"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(a){var c={name:"Opera Touch"},u=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/yabrowser/i],describe:function(a){var c={name:"Yandex Browser"},u=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/ucbrowser/i],describe:function(a){var c={name:"UC Browser"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/Maxthon|mxios/i],describe:function(a){var c={name:"Maxthon"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/epiphany/i],describe:function(a){var c={name:"Epiphany"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/puffin/i],describe:function(a){var c={name:"Puffin"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/sleipnir/i],describe:function(a){var c={name:"Sleipnir"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/k-meleon/i],describe:function(a){var c={name:"K-Meleon"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/micromessenger/i],describe:function(a){var c={name:"WeChat"},u=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/qqbrowser/i],describe:function(a){var c={name:/qqbrowserlite/i.test(a)?"QQ Browser Lite":"QQ Browser"},u=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/msie|trident/i],describe:function(a){var c={name:"Internet Explorer"},u=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/\sedg\//i],describe:function(a){var c={name:"Microsoft Edge"},u=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/edg([ea]|ios)/i],describe:function(a){var c={name:"Microsoft Edge"},u=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/vivaldi/i],describe:function(a){var c={name:"Vivaldi"},u=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/seamonkey/i],describe:function(a){var c={name:"SeaMonkey"},u=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/sailfish/i],describe:function(a){var c={name:"Sailfish"},u=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,a);return u&&(c.version=u),c}},{test:[/silk/i],describe:function(a){var c={name:"Amazon Silk"},u=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/phantom/i],describe:function(a){var c={name:"PhantomJS"},u=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/slimerjs/i],describe:function(a){var c={name:"SlimerJS"},u=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(a){var c={name:"BlackBerry"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/(web|hpw)[o0]s/i],describe:function(a){var c={name:"WebOS Browser"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/bada/i],describe:function(a){var c={name:"Bada"},u=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/tizen/i],describe:function(a){var c={name:"Tizen"},u=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/qupzilla/i],describe:function(a){var c={name:"QupZilla"},u=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/librewolf/i],describe:function(a){var c={name:"LibreWolf"},u=o.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/firefox|iceweasel|fxios/i],describe:function(a){var c={name:"Firefox"},u=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/electron/i],describe:function(a){var c={name:"Electron"},u=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(a){var c={name:"Sogou Browser"},u=o.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,a),f=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,a),m=o.default.getFirstMatch(/se ([\d.]+)x/i,a),y=u||f||m;return y&&(c.version=y),c}},{test:[/MiuiBrowser/i],describe:function(a){var c={name:"Miui"},u=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){return!!a.hasBrand("DuckDuckGo")||a.test(/\sDdg\/[\d.]+$/i)},describe:function(a,c){var u={name:"DuckDuckGo"};if(c){var f=c.getBrandVersion("DuckDuckGo");if(f)return u.version=f,u}var m=o.default.getFirstMatch(/\sDdg\/([\d.]+)$/i,a);return m&&(u.version=m),u}},{test:function(a){return a.hasBrand("Brave")},describe:function(a,c){var u={name:"Brave"};if(c){var f=c.getBrandVersion("Brave");if(f)return u.version=f,u}return u}},{test:[/chromium/i],describe:function(a){var c={name:"Chromium"},u=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/chrome|crios|crmo/i],describe:function(a){var c={name:"Chrome"},u=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/GSA/i],describe:function(a){var c={name:"Google Search"},u=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){var c=!a.test(/like android/i),u=a.test(/android/i);return c&&u},describe:function(a){var c={name:"Android Browser"},u=o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/playstation 4/i],describe:function(a){var c={name:"PlayStation 4"},u=o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/safari|applewebkit/i],describe:function(a){var c={name:"Safari"},u=o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/.*/i],describe:function(a){var c=a.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(c,a),version:o.default.getSecondMatch(c,a)}}}];e.default=i,t.exports=e.default},93:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),i=[{test:[/Roku\/DVP/],describe:function(a){var c=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,a);return{name:s.OS_MAP.Roku,version:c}}},{test:[/windows phone/i],describe:function(a){var c=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.WindowsPhone,version:c}}},{test:[/windows /i],describe:function(a){var c=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,a),u=o.default.getWindowsVersionName(c);return{name:s.OS_MAP.Windows,version:c,versionName:u}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(a){var c={name:s.OS_MAP.iOS},u=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,a);return u&&(c.version=u),c}},{test:[/macintosh/i],describe:function(a){var c=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,a).replace(/[_\s]/g,"."),u=o.default.getMacOSVersionName(c),f={name:s.OS_MAP.MacOS,version:c};return u&&(f.versionName=u),f}},{test:[/(ipod|iphone|ipad)/i],describe:function(a){var c=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,a).replace(/[_\s]/g,".");return{name:s.OS_MAP.iOS,version:c}}},{test:[/OpenHarmony/i],describe:function(a){var c=o.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.HarmonyOS,version:c}}},{test:function(a){var c=!a.test(/like android/i),u=a.test(/android/i);return c&&u},describe:function(a){var c=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,a),u=o.default.getAndroidVersionName(c),f={name:s.OS_MAP.Android,version:c};return u&&(f.versionName=u),f}},{test:[/(web|hpw)[o0]s/i],describe:function(a){var c=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,a),u={name:s.OS_MAP.WebOS};return c&&c.length&&(u.version=c),u}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(a){var c=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,a)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,a)||o.default.getFirstMatch(/\bbb(\d+)/i,a);return{name:s.OS_MAP.BlackBerry,version:c}}},{test:[/bada/i],describe:function(a){var c=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.Bada,version:c}}},{test:[/tizen/i],describe:function(a){var c=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.Tizen,version:c}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(a){var c=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.PlayStation4,version:c}}}];e.default=i,t.exports=e.default},94:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),i=[{test:[/googlebot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/linespider/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(a){var c=o.default.getFirstMatch(/(can-l01)/i,a)&&"Nova",u={type:s.PLATFORMS_MAP.mobile,vendor:"Huawei"};return c&&(u.model=c),u}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(a){var c=a.test(/ipod|iphone/i),u=a.test(/like (ipod|iphone)/i);return c&&!u},describe:function(a){var c=o.default.getFirstMatch(/(ipod|iphone)/i,a);return{type:s.PLATFORMS_MAP.mobile,vendor:"Apple",model:c}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(a){var c=o.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,a),u={type:s.PLATFORMS_MAP.mobile,vendor:"Nokia"};return c&&(u.model=c),u}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(a){return a.getBrowserName(!0)==="blackberry"},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(a){return a.getBrowserName(!0)==="bada"},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(a){return a.getBrowserName()==="windows phone"},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(a){var c=Number(String(a.getOSVersion()).split(".")[0]);return a.getOSName(!0)==="android"&&c>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(a){return a.getOSName(!0)==="android"},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:[/netcast/i],describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(a){return a.getOSName(!0)==="macos"},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(a){return a.getOSName(!0)==="windows"},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(a){return a.getOSName(!0)==="linux"},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(a){return a.getOSName(!0)==="playstation 4"},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(a){return a.getOSName(!0)==="roku"},describe:function(){return{type:s.PLATFORMS_MAP.tv}}}];e.default=i,t.exports=e.default},95:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),i=[{test:function(a){return a.getBrowserName(!0)==="microsoft edge"},describe:function(a){if(/\sedg\//i.test(a))return{name:s.ENGINE_MAP.Blink};var c=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,a);return{name:s.ENGINE_MAP.EdgeHTML,version:c}}},{test:[/trident/i],describe:function(a){var c={name:s.ENGINE_MAP.Trident},u=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){return a.test(/presto/i)},describe:function(a){var c={name:s.ENGINE_MAP.Presto},u=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){var c=a.test(/gecko/i),u=a.test(/like gecko/i);return c&&!u},describe:function(a){var c={name:s.ENGINE_MAP.Gecko},u=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(a){var c={name:s.ENGINE_MAP.WebKit},u=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}}];e.default=i,t.exports=e.default}})}))});var CH,bH=g(()=>{CH=({serviceId:t,clientVersion:e})=>async r=>{let n=await Promise.resolve().then(()=>De(RH())),o=n.parse??n.default.parse??(()=>""),s=typeof window<"u"&&window?.navigator?.userAgent?o(window.navigator.userAgent):void 0,i=[["aws-sdk-js",e],["ua","2.1"],[`os/${s?.os?.name||"other"}`,s?.os?.version],["lang/js"],["md/browser",`${s?.browser?.name??"unknown"}_${s?.browser?.version??"unknown"}`]];t&&i.push([`api/${t}`,e]);let a=await r?.userAgentAppId?.();return a&&i.push([`app/${a}`]),i}});var AH,xH=g(()=>{AH={os(t){if(/iPhone|iPad|iPod/.test(t))return"iOS";if(/Macintosh|Mac OS X/.test(t))return"macOS";if(/Windows NT/.test(t))return"Windows";if(/Android/.test(t))return"Android";if(/Linux/.test(t))return"Linux"},browser(t){if(/EdgiOS|EdgA|Edg\//.test(t))return"Microsoft Edge";if(/Firefox\//.test(t))return"Firefox";if(/Chrome\//.test(t))return"Chrome";if(/Safari\//.test(t))return"Safari"}}});var SO=g(()=>{He()});var pf,yO=g(()=>{He();SO();pf=(t,e=!1)=>{if(e){for(let r of t.split("."))if(!pf(r))return!1;return!0}return!(!_o(t)||t.length<3||t.length>63||t!==t.toLowerCase()||_i(t))}});var q0,EO=g(()=>{q0=t=>{let e=t.split(":");if(e.length<6)return null;let[r,n,o,s,i,...a]=e;if(r!=="arn"||n===""||o===""||a.join(":")==="")return null;let c=a.map(u=>u.split("/")).flat();return{partition:n,service:o,region:s,accountId:i,resourceId:c}}});var Lo,TH=g(()=>{He();yO();EO();N0();Lo={isVirtualHostableS3Bucket:pf,parseArn:q0,partition:M0};hn.aws=Lo});var vH=g(()=>{He()});var DH,_O,IH=g(()=>{V();DH=t=>{if(typeof t.endpointProvider!="function")throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");let{endpoint:e}=t;return e===void 0&&(t.endpoint=async()=>_O(t.endpointProvider({Region:typeof t.region=="function"?await t.region():t.region,UseDualStack:typeof t.useDualstackEndpoint=="function"?await t.useDualstackEndpoint():t.useDualstackEndpoint,UseFIPS:typeof t.useFipsEndpoint=="function"?await t.useFipsEndpoint():t.useFipsEndpoint,Endpoint:void 0},{logger:t.logger}))),t},_O=t=>Cr(t.url)});var wH=g(()=>{He()});var PH=g(()=>{ye();ye()});function H0(t={}){return ue({...Ar,async default(){return RO.silence||console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly."),"us-east-1"}},{...Zr,...t})}var RO,OH=g(()=>{ye();RO={silence:!1}});var qs,Hs,$H=g(()=>{qs=t=>({setRegion(e){t.region=e},region(){return t.region}}),Hs=t=>({region:t.region()})});var kn={};Ct(kn,{DEFAULT_UA_APP_ID:()=>uf,EndpointError:()=>be,NODE_APP_ID_CONFIG_OPTIONS:()=>Gs,NODE_REGION_CONFIG_FILE_OPTIONS:()=>Zr,NODE_REGION_CONFIG_OPTIONS:()=>Ar,REGION_ENV_NAME:()=>ju,REGION_INI_NAME:()=>zu,UA_APP_ID_ENV_NAME:()=>mO,UA_APP_ID_INI_NAME:()=>gO,awsEndpointFunctions:()=>Lo,createDefaultUserAgentProvider:()=>Mo,createUserAgentStringParsingProvider:()=>CH,crtAvailability:()=>lf,defaultUserAgent:()=>yH,emitWarningIfUnsupportedVersion:()=>us,fallback:()=>AH,getAwsRegionExtensionConfiguration:()=>qs,getHostHeaderPlugin:()=>Ls,getLoggerPlugin:()=>Ns,getLongPollPlugin:()=>G3,getRecursionDetectionPlugin:()=>Fs,getUserAgentMiddlewareOptions:()=>dO,getUserAgentPlugin:()=>Us,getUserAgentPrefix:()=>L0,hostHeaderMiddleware:()=>jP,hostHeaderMiddlewareOptions:()=>zP,isIpAddress:()=>_i,isVirtualHostableS3Bucket:()=>pf,loggerMiddleware:()=>VP,loggerMiddlewareOptions:()=>WP,parseArn:()=>q0,partition:()=>M0,recursionDetectionMiddleware:()=>w0,recursionDetectionMiddlewareOptions:()=>D0,resolveAwsRegionExtensionConfiguration:()=>Hs,resolveDefaultAwsRegionalEndpointsConfig:()=>DH,resolveEndpoint:()=>Hp,resolveHostHeaderConfig:()=>Rl,resolveRegionConfig:()=>In,resolveUserAgentConfig:()=>Bs,setCredentialFeature:()=>Yi,setFeature:()=>We,setPartitionInfo:()=>aO,setTokenFeature:()=>vq,state:()=>gp,stsRegionDefaultResolver:()=>H0,stsRegionWarning:()=>RO,toEndpointV1:()=>_O,useDefaultPartitionInfo:()=>nH,userAgentMiddleware:()=>lO});var Ee=g(()=>{U3();q3();H3();HP();Dq();Iq();wq();KP();kq();eO();sO();fH();EH();_H();xH();bH();TH();vH();IH();SO();yO();EO();N0();wH();PH();OH();$H()});var MH=st(kH=>{var{createGzip:gTe}=require("node:zlib");kH.compressStream=async t=>t.pipe(gTe())});var FH=st(NH=>{var{promisify:hTe}=require("node:util"),{gzip:STe}=require("node:zlib"),{toUint8Array:LH}=(j(),F(To)),yTe=hTe(STe);NH.compressString=async t=>{try{let e=await yTe(LH(t||""));return LH(e)}catch(e){throw new Error("Failure during compression: "+e.message)}}});var YH=st(Mn=>{var{booleanSelector:BH,SelectorType:j0,numberSelector:UH}=(ye(),F(Br)),{setFeature:ETe}=(jt(),F(xl)),{HttpRequest:_Te}=(V(),F(wo)),{compressStream:RTe}=MH(),{compressString:CTe}=FH(),{isArrayBuffer:bTe}=(j(),F(To)),{normalizeProvider:GH}=(J(),F(bo)),qH="AWS_DISABLE_REQUEST_COMPRESSION",HH="disable_request_compression",jH=!1,ATe={environmentVariableSelector:t=>BH(t,qH,j0.ENV),configFileSelector:t=>BH(t,HH,j0.CONFIG),default:jH},zH="AWS_REQUEST_MIN_COMPRESSION_SIZE_BYTES",VH="request_min_compression_size_bytes",WH=10240,xTe={environmentVariableSelector:t=>UH(t,zH,j0.ENV),configFileSelector:t=>UH(t,VH,j0.CONFIG),default:WH},CO;(function(t){t.GZIP="gzip"})(CO||(CO={}));var TTe=[CO.GZIP],vTe=t=>t!==void 0&&typeof t!="string"&&!ArrayBuffer.isView(t)&&!bTe(t),KH=(t,e)=>(r,n)=>async o=>{if(!_Te.isInstance(o.request)||await t.disableRequestCompression())return r(o);let{request:i}=o,{body:a,headers:c}=i,{encodings:u,streamRequiresLength:f}=e,m=a,y=c;for(let _ of u)if(TTe.includes(_)){let C=!1;if(vTe(a))if(!f)m=await RTe(a),C=!0;else throw new Error("Compression is not supported for streaming blobs that require a length.");else{let A=t.bodyLengthChecker(a),x=await t.requestMinCompressionSizeBytes();A&&A>=x&&(m=await CTe(a),C=!0)}if(C){c["content-encoding"]?y={...c,"content-encoding":`${c["content-encoding"]}, ${_}`}:y={...c,"content-encoding":_},y["content-encoding"].includes("gzip")&&ETe(n,"GZIP_REQUEST_COMPRESSION","L");break}}return r({...o,request:{...i,body:m,headers:y}})},QH={name:"compressionMiddleware",step:"build",tags:["REQUEST_BODY_COMPRESSION","GZIP"],override:!0,priority:"high"},DTe=(t,e)=>({applyToStack:r=>{r.add(KH(t,e),QH)}}),ITe=t=>{let{disableRequestCompression:e,requestMinCompressionSizeBytes:r}=t;return Object.assign(t,{disableRequestCompression:GH(e),requestMinCompressionSizeBytes:async()=>{let n=await GH(r)();if(n<0||n>10485760)throw new RangeError(`The value for requestMinCompressionSizeBytes must be between 0 and 10485760 inclusive. The provided value ${n} is outside this range."`);return n}})};Mn.DEFAULT_DISABLE_REQUEST_COMPRESSION=jH;Mn.DEFAULT_NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES=WH;Mn.NODE_DISABLE_REQUEST_COMPRESSION_CONFIG_OPTIONS=ATe;Mn.NODE_DISABLE_REQUEST_COMPRESSION_ENV_NAME=qH;Mn.NODE_DISABLE_REQUEST_COMPRESSION_INI_NAME=HH;Mn.NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_CONFIG_OPTIONS=xTe;Mn.NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_ENV_NAME=zH;Mn.NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_INI_NAME=VH;Mn.compressionMiddleware=KH;Mn.compressionMiddlewareOptions=QH;Mn.getCompressionPlugin=DTe;Mn.resolveCompressionConfig=ITe});var z0,V0,JH=g(()=>{V();z0=t=>ft.isInstance(t)?t.headers?.date??t.headers?.Date:void 0,V0=t=>ft.isInstance(t)?t.headers?.age??t.headers?.Age:void 0});var ff,XH=g(()=>{ff=t=>new Date(Date.now()+t)});var W0,ZH=g(()=>{W0=(t,e,r,n)=>{if(n!==void 0)return e;let o=Date.parse(t),s=Date.now();return r!==void 0&&s-r>9e5?e:r!==void 0?o-(r+s)/2:o-s}});var bO=g(()=>{JH();XH();ZH()});var ej,mf,wTe,Tl,tr,AO,xO=g(()=>{V();ej=De(Eo());bO();mf=(t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},wTe=t=>t.context?.[ej.SMITHY_CONTEXT_KEY]?.eventStream?.output===!0,Tl=async t=>{let e=mf("context",t.context),r=mf("config",t.config),n=e.endpointV2?.properties?.authSchemes?.[0],s=await mf("signer",r.signer)(n),i=t?.signingRegion,a=t?.signingRegionSet,c=t?.signingName;return{config:r,signer:s,signingRegion:i,signingRegionSet:a,signingName:c}},tr=class{async sign(e,r,n){if(!re.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let o=await Tl(n),{config:s,signer:i}=o,{signingRegion:a,signingName:c}=o,u=n.context;if(u?.authSchemes?.length??!1){let[_,C]=u.authSchemes;_?.name==="sigv4a"&&C?.name==="sigv4"&&(a=C?.signingRegion??a,c=C?.signingName??c)}let f=await s.disableClockSkewCorrection?.()===!0;n._disableClockSkewCorrection=f;let m=f||wTe(n);return n._skipClockSkewSampling=m,m||(n._preRequestSystemClockOffset=s.systemClockOffset,n._requestSentAt=Date.now()),await i.sign(e,{signingDate:f?new Date:ff(s.systemClockOffset),signingRegion:a,signingService:c})}errorHandler(e){return r=>{let n=r;if(!e._skipClockSkewSampling&&!e._disableClockSkewCorrection){let o=n.ServerTime??z0(n.$response);if(o){let s=mf("config",e.config),i=e._preRequestSystemClockOffset,a=e._requestSentAt,c=V0(n.$response),u=W0(o,s.systemClockOffset,a,c);s.systemClockOffset=u,Math.abs(u)>=24e4&&(u!==i||i!==void 0&&i!==u)&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}}throw r}}successHandler(e,r){if(r._skipClockSkewSampling||r._disableClockSkewCorrection)return;let n=z0(e);if(n){let o=mf("config",r.config),s=r._requestSentAt,i=V0(e);o.systemClockOffset=W0(n,o.systemClockOffset,s,i)}}},AO=tr});var Ti,tj=g(()=>{V();bO();xO();Ti=class extends tr{async sign(e,r,n){if(!re.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:o,signer:s,signingRegion:i,signingRegionSet:a,signingName:c}=await Tl(n),f=(await o.sigv4aSigningRegionSet?.()??a??[i]).join(","),m=await o.disableClockSkewCorrection?.()===!0;return n._disableClockSkewCorrection=m,m||(n._preRequestSystemClockOffset=o.systemClockOffset,n._requestSentAt=Date.now()),await s.sign(e,{signingDate:m?new Date:ff(o.systemClockOffset),signingRegion:f,signingService:c})}}});var TO,rj=g(()=>{TO=t=>typeof t=="string"&&t.length>0?t.split(",").map(e=>e.trim()):[]});var K0,vO=g(()=>{K0=t=>`AWS_BEARER_TOKEN_${t.replace(/[\s-]/g,"_").toUpperCase()}`});var nj,oj,No,sj=g(()=>{rj();vO();nj="AWS_AUTH_SCHEME_PREFERENCE",oj="auth_scheme_preference",No={environmentVariableSelector:(t,e)=>{if(e?.signingName&&K0(e.signingName)in t)return["httpBearerAuth"];if(nj in t)return TO(t[nj])},configFileSelector:t=>{if(oj in t)return TO(t[oj])},default:[]}});var gf,hf,ij=g(()=>{jt();ye();gf=t=>(t.sigv4aSigningRegionSet=Jn(t.sigv4aSigningRegionSet),t),hf={environmentVariableSelector(t){if(t.AWS_SIGV4A_SIGNING_REGION_SET)return t.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map(e=>e.trim());throw new Dn("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(t){if(t.sigv4a_signing_region_set)return(t.sigv4a_signing_region_set??"").split(",").map(e=>e.trim());throw new Dn("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0}});var BO=st(fe=>{var{hasOwn:Dl,fromUtf8:aj,fromHex:PTe,toHex:$c,toUint8Array:Sf,isArrayBuffer:OTe}=(j(),F(To)),{normalizeProvider:cj}=(J(),F(bo)),{escapeUri:Q0,HttpRequest:pj}=(V(),F(wo)),DO=class{format(e){let r=[];for(let s in e){if(!Dl(e,s))continue;let i=aj(s);r.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[s]))}let n=new Uint8Array(r.reduce((s,i)=>s+i.byteLength,0)),o=0;for(let s of r)n.set(s,o),o+=s.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":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(e.value.bytes,1),o;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let i=new Uint8Array(s.buffer);return i.set(e.value,3),i;case"string":let a=aj(e.value),c=new DataView(new ArrayBuffer(3+a.byteLength));c.setUint8(0,7),c.setUint16(1,a.byteLength,!1);let u=new Uint8Array(c.buffer);return u.set(a,3),u;case"timestamp":let f=new Uint8Array(9);return f[0]=8,f.set(IO.fromNumber(e.value.valueOf()).bytes,1),f;case"uuid":if(!$Te.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let m=new Uint8Array(17);return m[0]=9,m.set(PTe(e.value.replace(/-/g,"")),1),m}}},uj;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(uj||(uj={}));var $Te=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,IO=class t{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,o=Math.abs(Math.round(e));n>-1&&o>0;n--,o/=256)r[n]=o;return e<0&&lj(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&lj(e),parseInt($c(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};function lj(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var fj="X-Amz-Algorithm",mj="X-Amz-Credential",$O="X-Amz-Date",gj="X-Amz-SignedHeaders",hj="X-Amz-Expires",kO="X-Amz-Signature",MO="X-Amz-Security-Token",kTe="X-Amz-Region-Set",LO="authorization",NO=$O.toLowerCase(),Sj="date",yj=[LO,NO,Sj],Ej=kO.toLowerCase(),ey="x-amz-content-sha256",_j=MO.toLowerCase(),MTe="host",Rj={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},Cj=/^proxy-/,bj=/^sec-/,LTe=[/^proxy-/i,/^sec-/i],Y0="AWS4-HMAC-SHA256",NTe="AWS4-ECDSA-P256-SHA256",Aj="AWS4-HMAC-SHA256-PAYLOAD",xj="UNSIGNED-PAYLOAD",Tj=50,FO="aws4_request",vj=3600*24*7,Dj=({query:t={}})=>{let e=[],r={};for(let n in t){if(!Dl(t,n)||n.toLowerCase()===Ej)continue;let o=Q0(n);e.push(o);let s=t[n];typeof s=="string"?r[o]=`${o}=${Q0(s)}`:Array.isArray(s)&&(r[o]=s.slice(0).reduce((i,a)=>i.concat([`${o}=${Q0(a)}`]),[]).sort().join("&"))}return e.sort().map(n=>r[n]).filter(n=>n).join("&")},FTe=t=>BTe(t).toISOString().replace(/\.\d{3}Z$/,"Z"),BTe=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,ty=class{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:r,region:n,service:o,sha256:s,uriEscapePath:i=!0}){this.service=o,this.sha256=s,this.uriEscapePath=i,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=cj(n),this.credentialProvider=cj(r)}createCanonicalRequest(e,r,n){let o=Object.keys(r).sort();return`${e.method}
|
|
22
|
+
`)}m.push(null)}catch(y){m.destroy(y)}}),m}var IG,PG=g(()=>{IG=require("node:stream");DG();xo()});async function OG(t,e){let r=0,n=[],o=t.getReader(),s=!1;for(;!s;){let{done:c,value:u}=await o.read();if(u&&(n.push(u),r+=u?.byteLength??0),r>=e)break;s=c}o.releaseLock();let i=new Uint8Array(Math.min(e,r)),a=0;for(let c of n){if(c.byteLength>i.byteLength-a){i.set(c.subarray(0,i.byteLength-a),a);break}else i.set(c,a);a+=c.length}return i}var $G=g(()=>{});var kG,MG,Lw,LG=g(()=>{kG=require("node:stream");Op();$G();xo();MG=(t,e)=>Ht(t)?OG(t,e):new Promise((r,n)=>{let o=new Lw;o.limit=e,t.pipe(o),t.on("error",s=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=Wn(this.buffers);r(s)})}),Lw=class extends kG.Writable{buffers=[];limit=1/0;bytesBuffered=0;_write(e,r,n){if(this.buffers.push(e),this.bytesBuffered+=e.byteLength??0,this.bytesBuffered>=this.limit){let o=this.bytesBuffered-this.limit,s=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=s.subarray(0,s.byteLength-o),this.emit("finish")}n()}}});var NG,FG=g(()=>{NG=t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(t)}});async function Nw(t){return t.arrayBuffer().then(e=>new Uint8Array(e))}async function Fw(t){let e=[],r=t.getReader(),n=0;for(;;){let{done:o,value:s}=await r.read();if(s&&(e.push(s),n+=s.length),o)break}return Wn(e,n)}var BG,Bw=g(()=>{Op();xo();BG=async t=>sa(t)?Nw(t):Fw(t)});var UG,qG,GG,HG=g(()=>{Ow();II();FG();Bw();xo();UG="The stream has already been transformed.",qG=t=>{if(!GG(t)&&!Ht(t)){let o=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${o}`)}let e=!1,r=async()=>{if(e)throw new Error(UG);return e=!0,await BG(t)},n=o=>{if(typeof o.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
|
|
23
|
+
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return o.stream()};return Object.assign(t,{transformToByteArray:r,transformToString:async o=>{let s=await r();if(o==="base64")return PS(s);if(o==="hex")return Vn(s);if(o===void 0||o==="utf8"||o==="utf-8")return NG(s);if(typeof TextDecoder=="function")return new TextDecoder(o).decode(s);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(e)throw new Error(UG);if(e=!0,GG(t))return n(t);if(Ht(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)}})},GG=t=>typeof Blob=="function"&&t instanceof Blob});var jG,MS,Uw,Gw=g(()=>{jG=require("node:stream");Op();Bw();xo();MS=t=>sa(t)?Nw(t):Ht(t)?Fw(t):new Promise((e,r)=>{let n=new Uw,o=t;o.pipe(n),o.on("error",s=>{n.end(),r(s)}),n.on("error",r),n.on("finish",function(){let s=Wn(this.bufferedBytes);e(s)})}),Uw=class extends jG.Writable{bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var LS,zG,NS,VG=g(()=>{LS=require("node:stream");ta();HG();Gw();zG="The stream has already been transformed.",NS=t=>{if(!(t instanceof LS.Readable))try{return qG(t)}catch{let o=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${o}`)}let e=!1,r=async()=>{if(e)throw new Error(zG);return e=!0,await MS(t)};return Object.assign(t,{transformToByteArray:r,transformToString:async n=>{let o=await r();return n===void 0||Buffer.isEncoding(n)?Ao(o.buffer,o.byteOffset,o.byteLength).toString(n):new TextDecoder(n).decode(o)},transformToWebStream:()=>{if(e)throw new Error(zG);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof LS.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,LS.Readable.toWeb(t)}})}});async function WG(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}var KG=g(()=>{});async function QG(t){if(Ht(t)||sa(t))return WG(t);let e=new qw.PassThrough,r=new qw.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}var qw,YG=g(()=>{qw=require("node:stream");KG();xo()});var To={};Ct(To,{ChecksumStream:()=>Ku,Hash:()=>DS,LazyJsonString:()=>qe,NumericValue:()=>Y,Uint8ArrayBlobAdapter:()=>Ac,_parseEpochTimestamp:()=>na,_parseRfc3339DateTimeWithOffset:()=>jh,_parseRfc7231DateTime:()=>zh,calculateBodyLength:()=>Es,concatBytes:()=>Wn,copyDocumentWithTransform:()=>gB,createBufferedReadable:()=>kS,createChecksumStream:()=>$S,dateToUtcString:()=>br,deserializerMiddleware:()=>Qh,deserializerMiddlewareOption:()=>Dw,expectBoolean:()=>yB,expectByte:()=>Nh,expectFloat32:()=>Ip,expectInt:()=>EB,expectInt32:()=>Mh,expectLong:()=>Mu,expectNonNull:()=>_B,expectNumber:()=>ku,expectObject:()=>_I,expectShort:()=>Lh,expectString:()=>RB,expectUnion:()=>Bh,fromArrayBuffer:()=>Ao,fromBase64:()=>Xe,fromHex:()=>Kh,fromString:()=>ea,fromUtf8:()=>qt,generateIdempotencyToken:()=>xr,getAwsChunkedEncodingStream:()=>wG,getSerdePlugin:()=>cG,handleFloat:()=>bB,hasOwn:()=>W,headStream:()=>MG,isArrayBuffer:()=>$u,isBlob:()=>sa,isReadableStream:()=>Ht,limitedParseDouble:()=>Gh,limitedParseFloat:()=>AB,limitedParseFloat32:()=>xB,logger:()=>Lu,nv:()=>Wh,parseBoolean:()=>SB,parseEpochTimestamp:()=>ys,parseRfc3339DateTime:()=>IB,parseRfc3339DateTimeWithOffset:()=>Ss,parseRfc7231DateTime:()=>hn,quoteHeader:()=>Hh,sdkStreamMixin:()=>NS,serializerMiddleware:()=>vS,serializerMiddlewareOption:()=>Iw,splitEvery:()=>Vh,splitHeader:()=>Bu,splitStream:()=>QG,streamCollector:()=>MS,strictParseByte:()=>qh,strictParseDouble:()=>wp,strictParseFloat:()=>CB,strictParseFloat32:()=>Uh,strictParseInt:()=>vB,strictParseInt32:()=>DB,strictParseLong:()=>RI,strictParseShort:()=>ra,toBase64:()=>Ie,toHex:()=>Vn,toUint8Array:()=>bt,toUtf8:()=>ze,v4:()=>Qu});var JG,Ac,Sxe,Qu,xr,j=g(()=>{JG=require("node:crypto");uB();yI();dB();$h();pB();mB();hB();wB();PB();CI();OB();MB();LB();NB();BB();II();GB();wI();Op();ta();SI();OI();uG();vw();dG();ww();CG();TG();PG();LG();VG();YG();xo();Gw();oe();Ac=class extends lB(ze,qt,Ie,Xe){},Sxe=JG.getRandomValues,Qu=fB(Sxe),xr=Qu});var At,Yu=g(()=>{j();At=async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return Ac.mutate(t);if(!t)return Ac.mutate(new Uint8Array);let r=e.streamCollector(t);return Ac.mutate(await r)}});function vo(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var FS=g(()=>{});var Zt,Ju=g(()=>{Zt=class{serdeContext;setSerdeContext(e){this.serdeContext=e}}});async function BS(t,e,r=1024*1024){let n=t.size,o=0;for(;o<n;){let s=t.slice(o,Math.min(n,o+r));e(new Uint8Array(await s.arrayBuffer())),o+=s.size}}var Hw=g(()=>{});var XG,ZG=g(()=>{Hw();XG=async function(e,r){let n=new e;return await BS(r,o=>{n.update(o)}),n.digest()}});var e4,Xu,jw=g(()=>{e4=require("node:stream");j();Xu=class extends e4.Writable{hash;constructor(e,r){super(r),this.hash=e}_write(e,r,n){try{this.hash.update(bt(e))}catch(o){return n(o)}n()}}});var t4,r4,yxe,n4=g(()=>{t4=require("node:fs");jw();r4=(t,e)=>new Promise((r,n)=>{if(!yxe(e)){n(new Error("Unable to calculate hash for non-file streams."));return}let o=(0,t4.createReadStream)(e.path,{start:e.start,end:e.end}),s=new t,i=new Xu(s);o.pipe(i),o.on("error",a=>{i.end(),n(a)}),i.on("error",n),i.on("finish",function(){s.digest().then(r).catch(n)})}),yxe=t=>typeof t.path=="string"});var o4,s4=g(()=>{jw();o4=(t,e)=>{if(e.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let r=new t,n=new Xu(r);return e.pipe(n),new Promise((o,s)=>{e.on("error",i=>{n.end(),s(i)}),n.on("error",s),n.on("finish",()=>{r.digest().then(o).catch(s)})})}});function zw(t,e){let r=t[0],n=t[1],o=t[2],s=t[3];for(let i=0;i<64;++i){let a,c;i<16?(a=n&o|~n&s,c=i):i<32?(a=s&n|o&~s,c=(5*i+1)%16):i<48?(a=n^o^s,c=(3*i+5)%16):(a=o^(n|~s),c=7*i%16);let u=e.getUint32(c*4,!0),f=s;s=o,o=n;let m=Exe[(i>>4)*4+(i&3)],y=(r+a&ia)+(u+_xe[i]&ia)&ia;n=n+((y<<m|y>>>32-m)>>>0)&ia,r=f}t[0]=t[0]+r&ia,t[1]=t[1]+n&ia,t[2]=t[2]+o&ia,t[3]=t[3]+s&ia}var Zu,i4,ia,Exe,_xe,Vw=g(()=>{j();Zu=class{digestLength=16;state=Uint32Array.from(i4);writeBuffer=new DataView(new ArrayBuffer(64));bufferLength=0;bytesHashed=0;update(e){let r=bt(e),n=0,o=r.byteLength;for(this.bytesHashed+=o;o>0;)this.writeBuffer.setUint8(this.bufferLength++,r[n++]),--o,this.bufferLength===64&&(zw(this.state,this.writeBuffer),this.bufferLength=0)}async digest(){let e=Uint32Array.from(this.state),r=new DataView(this.writeBuffer.buffer.slice(0)),n=this.bufferLength,o=this.bytesHashed*8;if(r.setUint8(n++,128),this.bufferLength%64>=56){for(let a=n;a<64;++a)r.setUint8(a,0);zw(e,r),n=0}for(let a=n;a<56;++a)r.setUint8(a,0);r.setUint32(56,o>>>0,!0),r.setUint32(60,Math.floor(o/2**32),!0),zw(e,r);let s=new Uint8Array(16),i=new DataView(s.buffer);for(let a=0;a<4;++a)i.setUint32(a*4,e[a],!0);return s}reset(){this.state.set(i4),this.writeBuffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0}},i4=[1732584193,4023233417,2562383102,271733878],ia=4294967295,Exe=Uint8Array.of(7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21),_xe=Array.from({length:64},(t,e)=>Math.abs(Math.sin(e+1))*2**32>>>0)});function Cxe(){return class{digestLength=16;hash=(0,US.createHash)("md5");update(e){this.hash.update(bt(e))}async digest(){let e=this.hash.copy().digest();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=(0,US.createHash)("md5")}}}var US,Rxe,Ww,a4=g(()=>{US=require("node:crypto");j();Vw();Rxe=(()=>{try{return(0,US.createHash)("md5"),!0}catch{return!1}})(),Ww=Rxe?Cxe():Zu});var c4,Kw,xc,Qw=g(()=>{c4=new Uint32Array(256);for(let t=0;t<256;++t){let e=t;for(let r=0;r<8;++r)e=e&1?3988292384^e>>>1:e>>>1;c4[t]=e>>>0}Kw=4294967295,xc=class{digestLength=4;checksum=Kw;update(e){for(let r=0;r<e.length;++r)this.checksum=this.checksum>>>8^c4[(this.checksum^e[r])&255]}digestSync(){return(this.checksum^Kw)>>>0}async digest(){let e=this.digestSync(),r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!1),r}reset(){this.checksum=Kw}}});function bxe(t){return class{digestLength=4;value=0;update(r){this.value=t(r,this.value)}digestSync(){return this.value>>>0}async digest(){let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,this.digestSync(),!1),r}reset(){this.value=0}}}var Yw,u4,Do,l4=g(()=>{Yw=De(require("node:zlib"));Qw();u4=typeof Yw.crc32=="function"?Yw.crc32:void 0,Do=u4?bxe(u4):xc});var Tr,d4,Axe,Io,p4,xxe,GS=g(()=>{j();Tr=64,d4=32,Axe=2**53-1,Io=class t{digestLength=d4;state=Int32Array.from(p4);w;buffer=new Uint8Array(64);bufferLength=0;bytesHashed=0;finished=!1;inner;outer;constructor(e){if(e){let r=t.normalizeKey(e);this.inner=new t,this.outer=new t;let{inner:n,outer:o}=this,s=new Uint8Array(Tr*2);for(let i=0;i<Tr;++i)s[i]=54^r[i],s[i+Tr]=92^r[i];n.update(s.subarray(0,Tr)),o.update(s.subarray(Tr))}}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.inner){this.inner.update(e);return}let r=bt(e),n=0,{byteLength:o}=r;if(this.bytesHashed+=o,this.bytesHashed*8>Axe)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;o>0;)this.buffer[this.bufferLength++]=r[n++],o--,this.bufferLength===Tr&&(this.hashBuffer(),this.bufferLength=0)}async digest(){let{inner:e,outer:r}=this;if(e&&r){if(this.finished)throw new Error("Attempted to digest an already finished HMAC.");this.finished=!0;let n=e.digestSync();return r.update(n),r.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(p4),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0}digestSync(){let e=this.state.slice(),r=this.buffer.slice(),n=this.bufferLength,o=this.bytesHashed*8,s=new DataView(r.buffer,r.byteOffset,r.byteLength);if(s.setUint8(n++,128),(n-1)%Tr>=Tr-8){for(let a=n;a<Tr;++a)s.setUint8(a,0);this.hashBufferWith(e,r),n=0}for(let a=n;a<Tr-8;++a)s.setUint8(a,0);s.setUint32(Tr-8,Math.floor(o/4294967296),!1),s.setUint32(Tr-4,o,!1),this.hashBufferWith(e,r);let i=new Uint8Array(d4);for(let a=0;a<8;++a)i[a*4]=e[a]>>>24&255,i[a*4+1]=e[a]>>>16&255,i[a*4+2]=e[a]>>>8&255,i[a*4+3]=e[a]>>>0&255;return i}static normalizeKey(e){let r=bt(e);if(r.byteLength>Tr){let n=new t;n.update(r);let o=n.digestSync(),s=new Uint8Array(Tr);return s.set(o),s}if(r.byteLength<Tr){let n=new Uint8Array(Tr);return n.set(r),n}return r}hashBuffer(){this.hashBufferWith(this.state,this.buffer)}hashBufferWith(e,r){let n=this.w??=new Int32Array(64),o=e[0],s=e[1],i=e[2],a=e[3],c=e[4],u=e[5],f=e[6],m=e[7];for(let y=0;y<Tr;++y){if(y<16)n[y]=(r[y*4]&255)<<24|(r[y*4+1]&255)<<16|(r[y*4+2]&255)<<8|r[y*4+3]&255;else{let A=n[y-2],x=(A>>>17|A<<15)^(A>>>19|A<<13)^A>>>10;A=n[y-15];let T=(A>>>7|A<<25)^(A>>>18|A<<14)^A>>>3;n[y]=(x+n[y-7]|0)+(T+n[y-16]|0)}let _=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&u^~c&f)|0)+(m+(xxe[y]+n[y]|0)|0)|0,C=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&s^o&i^s&i)|0;m=f,f=u,u=c,c=a+_|0,a=i,i=s,s=o,o=_+C|0}e[0]+=o,e[1]+=s,e[2]+=i,e[3]+=a,e[4]+=c,e[5]+=u,e[6]+=f,e[7]+=m}},p4=new Int32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),xxe=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298])});function vxe(){return class{digestLength=32;secret;hash;isHmac;finished=!1;constructor(e){this.secret=e,this.isHmac=!!e,this.hash=this.createHash()}update(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");this.hash.update(e)}async digest(){let e;return this.isHmac?(this.finished=!0,e=this.hash.digest()):e=this.hash.copy().digest(),new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=this.createHash(),this.finished=!1}createHash(){return this.secret?(0,zp.createHmac)("sha256",Dxe(this.secret)):(0,zp.createHash)("sha256")}}}function Dxe(t){return typeof t=="string"?t:ArrayBuffer.isView(t)?Buffer.from(t.buffer,t.byteOffset,t.byteLength):Buffer.from(t)}var zp,Txe,yn,f4=g(()=>{zp=require("node:crypto");GS();Txe=(()=>{try{return(0,zp.createHash)("sha256"),!0}catch{return!1}})(),yn=Txe?vxe():Io});var Ixe,wxe,Pxe,qS,Oxe,HS,m4=g(()=>{j();GS();({digest:Ixe,sign:wxe,importKey:Pxe}=globalThis?.crypto?.subtle??{}),qS=typeof Ixe=="function"&&typeof wxe=="function"&&typeof Pxe=="function"?globalThis.crypto.subtle:void 0,Oxe=8*1024*1024,HS=class{digestLength=32;secret;pending=[];pendingBytes=0;fallback;finished=!1;constructor(e){e&&(this.secret=bt(e))}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.fallback){this.fallback.update(e);return}this.pending.push(e.slice()),this.pendingBytes+=e.byteLength,this.pendingBytes>=Oxe&&this.switchToFallback()}async digest(){if(this.fallback)return this.fallback.digest();if(this.secret&&this.finished)throw new Error("Attempted to digest an already finished HMAC.");let e=Wn(this.pending);if(qS){if(this.secret){this.finished=!0;let o=await qS.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),s=await qS.sign("HMAC",o,e);return new Uint8Array(s)}let n=await qS.digest("SHA-256",e);return new Uint8Array(n)}let r=new Io(this.secret);return r.update(e),r.digest()}reset(){this.pending=[],this.pendingBytes=0,this.fallback=void 0,this.finished=!1}switchToFallback(){let e=new Io(this.secret);for(let r of this.pending)e.update(r);this.fallback=e,this.pending=[],this.pendingBytes=0}}});var Vp={};Ct(Vp,{Crc32:()=>Do,Crc32Js:()=>xc,Crc32Node:()=>Do,Md5:()=>Ww,Md5Js:()=>Zu,Md5Node:()=>Ww,Sha256:()=>yn,Sha256Js:()=>Io,Sha256Node:()=>yn,Sha256WebCrypto:()=>HS,blobHasher:()=>XG,blobReader:()=>BS,fileStreamHasher:()=>r4,readableStreamHasher:()=>o4});var $n=g(()=>{ZG();n4();s4();Vw();a4();Qw();l4();GS();f4();m4();Hw()});function g4(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var aa,Jw=g(()=>{j();aa=class t{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,o=Math.abs(Math.round(e));n>-1&&o>0;n--,o/=256)r[n]=o;return e<0&&g4(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&g4(e),parseInt(Vn(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}}});var el,h4,S4,$xe,kxe,Mxe,Lxe,Nxe,Fxe,Bxe,Uxe,Gxe,Xw=g(()=>{oe();j();Jw();el=class{toUtf8;fromUtf8;constructor(e,r){this.toUtf8=e,this.fromUtf8=r}format(e){let r=[];for(let s in e){if(!W(e,s))continue;let i=this.fromUtf8(s);r.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[s]))}let n=new Uint8Array(r.reduce((s,i)=>s+i.byteLength,0)),o=0;for(let s of r)n.set(s,o),o+=s.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":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(e.value.bytes,1),o;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let i=new Uint8Array(s.buffer);return i.set(e.value,3),i;case"string":let a=this.fromUtf8(e.value),c=new DataView(new ArrayBuffer(3+a.byteLength));c.setUint8(0,7),c.setUint16(1,a.byteLength,!1);let u=new Uint8Array(c.buffer);return u.set(a,3),u;case"timestamp":let f=new Uint8Array(9);return f[0]=8,f.set(aa.fromNumber(e.value.valueOf()).bytes,1),f;case"uuid":if(!Gxe.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let m=new Uint8Array(17);return m[0]=9,m.set(Kh(e.value.replace(/-/g,"")),1),m}}parse(e){let r={},n=0;for(;n<e.byteLength;){let o=e.getUint8(n++),s=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,o));switch(n+=o,e.getUint8(n++)){case 0:r[s]={type:S4,value:!0};break;case 1:r[s]={type:S4,value:!1};break;case 2:r[s]={type:$xe,value:e.getInt8(n++)};break;case 3:r[s]={type:kxe,value:e.getInt16(n,!1)},n+=2;break;case 4:r[s]={type:Mxe,value:e.getInt32(n,!1)},n+=4;break;case 5:r[s]={type:Lxe,value:new aa(new Uint8Array(e.buffer,e.byteOffset+n,8))},n+=8;break;case 6:let i=e.getUint16(n,!1);n+=2,r[s]={type:Nxe,value:new Uint8Array(e.buffer,e.byteOffset+n,i)},n+=i;break;case 7:let a=e.getUint16(n,!1);n+=2,r[s]={type:Fxe,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,a))},n+=a;break;case 8:r[s]={type:Bxe,value:new Date(new aa(new Uint8Array(e.buffer,e.byteOffset+n,8)).valueOf())},n+=8;break;case 9:let c=new Uint8Array(e.buffer,e.byteOffset+n,16);n+=16,r[s]={type:Uxe,value:`${Vn(c.subarray(0,4))}-${Vn(c.subarray(4,6))}-${Vn(c.subarray(6,8))}-${Vn(c.subarray(8,10))}-${Vn(c.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return r}};(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(h4||(h4={}));S4="boolean",$xe="byte",kxe="short",Mxe="integer",Lxe="long",Nxe="binary",Fxe="string",Bxe="timestamp",Uxe="uuid",Gxe=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/});function E4({byteLength:t,byteOffset:e,buffer:r}){if(t<qxe)throw new Error("Provided message too short to accommodate event stream message overhead");let n=new DataView(r,e,t),o=n.getUint32(0,!1);if(t!==o)throw new Error("Reported message length does not match received message length");let s=n.getUint32(y4,!1),i=n.getUint32(ca,!1),a=n.getUint32(t-Tc,!1),c=new Do;if(c.update(new Uint8Array(r,e,ca)),i!==c.digestSync())throw new Error(`The prelude checksum specified in the message (${i}) does not match the calculated CRC32 checksum (${c.digestSync()})`);if(c.update(new Uint8Array(r,e+ca,t-(ca+Tc))),a!==c.digestSync())throw new Error(`The message checksum (${c.digestSync()}) did not match the expected value of ${a}`);return{headers:new DataView(r,e+ca+Tc,s),body:new Uint8Array(r,e+ca+Tc+s,o-s-(ca+Tc+Tc))}}var y4,ca,Tc,qxe,_4=g(()=>{$n();y4=4,ca=y4*2,Tc=4,qxe=ca+Tc*2});var tl,Zw=g(()=>{$n();Xw();_4();tl=class{headerMarshaller;messageBuffer;isEndOfStream;constructor(e,r){this.headerMarshaller=new el(e,r),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){let e=this.messageBuffer.pop(),r=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return r}}}getAvailableMessages(){let e=this.messageBuffer;this.messageBuffer=[];let r=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return r}}}encode({headers:e,body:r}){let n=this.headerMarshaller.format(e),o=n.byteLength+r.byteLength+16,s=new Uint8Array(o),i=new DataView(s.buffer,s.byteOffset,s.byteLength),a=new Do;return i.setUint32(0,o,!1),i.setUint32(4,n.byteLength,!1),a.update(s.subarray(0,8)),i.setUint32(8,a.digestSync(),!1),s.set(n,12),s.set(r,n.byteLength+12),a.update(s.subarray(8,o-4)),i.setUint32(o-4,a.digestSync(),!1),s}decode(e){let{headers:r,body:n}=E4(e);return{headers:this.headerMarshaller.parse(r),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}});var rl,eP=g(()=>{rl=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.decoder.decode(e)}}});var nl,tP=g(()=>{nl=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream)yield this.options.encoder.encode(e);this.options.includeEndFrame&&(yield new Uint8Array(0))}}});var ol,rP=g(()=>{ol=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream){let r=await this.options.deserializer(e);r!==void 0&&(yield r)}}}});var sl,nP=g(()=>{sl=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.serializer(e)}}});function jS(t){let e=0,r=0,n=null,o=null,s=a=>{if(typeof a!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+a);e=a,r=4,n=new Uint8Array(a),new DataView(n.buffer).setUint32(0,a,!1)},i=async function*(){let a=t[Symbol.asyncIterator]();for(;;){let{value:c,done:u}=await a.next();if(u){if(e)if(e===r)yield n;else throw new Error("Truncated event message received.");else return;return}let f=c.length,m=0;for(;m<f;){if(!n){let _=f-m;o||(o=new Uint8Array(4));let C=Math.min(4-r,_);if(o.set(c.slice(m,m+C),r),r+=C,m+=C,r<4)break;s(new DataView(o.buffer).getUint32(0,!1)),o=null}let y=Math.min(e-r,f-m);n.set(c.slice(m,m+y),r),r+=y,m+=y,e&&e===r&&(yield n,n=null,e=0,r=0)}}};return{[Symbol.asyncIterator]:i}}var oP=g(()=>{});function R4(t,e){let r=Wp(e.deserializer,e.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let n of t){let o=e.eventStreamCodec.decode(n),s=await r(o);s!==void 0&&(yield s)}}}}function Wp(t,e){return async function(r){let{value:n}=r.headers[":message-type"];if(n==="error"){let o=new Error(r.headers[":error-message"].value||"UnknownError");throw o.name=r.headers[":error-code"].value,o}else if(n==="exception"){let o=r.headers[":exception-type"].value,s={[o]:r},i=await t(s);if(i.$unknown){let a=new Error(e(r.body));throw a.name=o,a}throw i[o]}else if(n==="event"){let o={[r.headers[":event-type"].value]:r},s=await t(o);return s.$unknown?void 0:s}else throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}var sP=g(()=>{});var vc,C4,iP=g(()=>{Zw();eP();tP();rP();nP();oP();sP();vc=class{eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:r}){this.eventStreamCodec=new tl(e,r),this.utfEncoder=e}deserialize(e,r){let n=jS(e);return new ol({messageStream:new rl({inputStream:n,decoder:this.eventStreamCodec}),deserializer:Wp(r,this.utfEncoder)})}serialize(e,r){return new nl({messageStream:new sl({inputStream:e,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},C4=t=>new vc(t)});async function*Hxe(t){let e=!1,r=!1,n=new Array;for(t.on("error",o=>{if(e||(e=!0),o)throw o}),t.on("data",o=>{n.push(o)}),t.on("end",()=>{e=!0});!r;){let o=await new Promise(s=>setTimeout(()=>s(n.shift()),0));o&&(yield o),r=e&&n.length===0}}var b4,Kp,A4,x4=g(()=>{b4=require("node:stream");iP();Kp=class{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:r}){this.universalMarshaller=new vc({utf8Decoder:r,utf8Encoder:e})}deserialize(e,r){let n=typeof e[Symbol.asyncIterator]=="function"?e:Hxe(e);return this.universalMarshaller.deserialize(n,r)}serialize(e,r){return b4.Readable.from(this.universalMarshaller.serialize(e,r))}},A4=t=>new Kp(t)});var T4,v4,D4=g(()=>{T4=t=>({[Symbol.asyncIterator]:async function*(){let e=t.getReader();try{for(;;){let{done:r,value:n}=await e.read();if(r)return;yield n}}finally{e.releaseLock()}}}),v4=t=>{let e=t[Symbol.asyncIterator]();return new ReadableStream({async pull(r){let{done:n,value:o}=await e.next();if(n)return r.close();r.enqueue(o)}})}});var I4,w4=g(()=>{I4=t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)})});var zS,P4=g(()=>{oe();ae();j();zS=class{marshaller;serializer;deserializer;serdeContext;defaultContentType;compositeErrorRegistry;constructor({marshaller:e,serializer:r,deserializer:n,serdeContext:o,defaultContentType:s,compositeErrorRegistry:i}){this.marshaller=e,this.serializer=r,this.deserializer=n,this.serdeContext=o,this.defaultContentType=s,this.compositeErrorRegistry=i}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n,initialMessageType:o}){let s=this.marshaller,i=r.getEventStreamMember(),a=r.getMemberSchema(i),c=this.serializer,u=this.defaultContentType,f=Symbol("initialRequestMarker"),m={async*[Symbol.asyncIterator](){if(n){let y={":event-type":{type:"string",value:o??"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:u}};c.write(r,n);let _=c.flush();yield{[f]:!0,headers:y,body:_}}for await(let y of e)yield y}};return s.serialize(m,y=>{if(y[f])return{headers:y.headers,body:y.body};let _="";for(let q in y)if(W(y,q)&&q!=="__type"){_=q;break}let{additionalHeaders:C,body:A,eventType:x,explicitPayloadContentType:T}=this.writeEventBody(_,a,y);return{headers:{":event-type":{type:"string",value:x},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:T??u},...C},body:A}})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n,initialMessageType:o}){let s=this.marshaller,i=r.getEventStreamMember(),c=r.getMemberSchema(i).getMemberSchemas(),u=Symbol("initialResponseMarker"),f=s.deserialize(e.body,async _=>{let C="";for(let x in _)if(W(_,x)&&x!=="__type"){C=x;break}let A=_[C].body;if(C===(o??"initial-response")){let x=await this.deserializer.read(r,A);return delete x[i],{[u]:!0,...x}}else if(C in c){let x=c[C];if(x.isStructSchema()){let T={},I=!1;for(let[q,H]of x.structIterator()){let{eventHeader:me,eventPayload:et}=H.getMergedTraits();if(I=I||!!(me||et),et)H.isBlobSchema()?T[q]=A:H.isStringSchema()?T[q]=(this.serdeContext?.utf8Encoder??ze)(A):H.isStructSchema()&&(T[q]=await this.deserializer.read(H,A));else if(me){let ot=_[C].headers[q]?.value;ot!=null&&(H.isNumericSchema()?ot&&typeof ot=="object"&&"bytes"in ot?T[q]=BigInt(ot.toString()):T[q]=Number(ot):T[q]=ot)}}return{[C]:await this.readEventMember(x,A,I,T)}}return{[C]:await this.deserializer.read(x,A)}}else return{$unknown:_}}),m=f[Symbol.asyncIterator](),y=await m.next();if(y.done)return f;if(y.value?.[u]){if(!r)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let _ in y.value)W(y.value,_)&&(n[_]=y.value[_])}return{async*[Symbol.asyncIterator](){for(y?.value?.[u]||(yield y.value);;){let{done:_,value:C}=await m.next();if(_)break;yield C}}}}async readEventMember(e,r,n,o){let s,i=e.getSchema();if(Array.isArray(i)&&i[0]===-3){let c=i[1],u=Fe.for(c);this.compositeErrorRegistry?.copyFrom(u),s=(this.compositeErrorRegistry??u)?.getErrorCtor(i)}let a=n?o:r.byteLength===0?{}:await this.deserializer.read(e,r);if(s){let c=a.message??a.Message??"Unknown",u={},f=e.getMergedTraits().error;return f&&(u.$fault=f),Object.assign(new s({}),u,{message:c},a)}return a}writeEventBody(e,r,n){let o=this.serializer,s=e,i=null,a,c=r.getSchema()[4].includes(e),u={};if(c){let y=r.getMemberSchema(e);if(y.isStructSchema()){for(let[_,C]of y.structIterator()){let{eventHeader:A,eventPayload:x}=C.getMergedTraits();if(x)i=_;else if(A){let T=n[e][_],I="binary";C.isNumericSchema()?(-2)**31<=T&&T<=2**31-1?I="integer":I="long":C.isTimestampSchema()?I="timestamp":C.isStringSchema()?I="string":C.isBooleanSchema()&&(I="boolean"),T!=null&&(u[_]={type:I,value:T},delete n[e][_])}}if(i!==null){let _=y.getMemberSchema(i);_.isBlobSchema()?a="application/octet-stream":_.isStringSchema()&&(a="text/plain"),o.write(_,n[e][i])}else o.write(y,n[e])}else if(y.isUnitSchema())o.write(y,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{let[y,_]=n[e];s=y,o.write(15,_)}let f=o.flush()??new Uint8Array;return{body:typeof f=="string"?(this.serdeContext?.utf8Decoder??qt)(f):f,eventType:s,explicitPayloadContentType:a,additionalHeaders:u}}}});var VS={};Ct(VS,{EventStreamCodec:()=>tl,EventStreamMarshaller:()=>Kp,EventStreamSerde:()=>zS,HeaderMarshaller:()=>el,Int64:()=>aa,MessageDecoderStream:()=>rl,MessageEncoderStream:()=>nl,SmithyMessageDecoderStream:()=>ol,SmithyMessageEncoderStream:()=>sl,UniversalEventStreamMarshaller:()=>vc,eventStreamSerdeProvider:()=>A4,getChunkedStream:()=>jS,getMessageUnmarshaller:()=>Wp,getUnmarshalledStream:()=>R4,iterableToReadableStream:()=>v4,readableStreamToIterable:()=>T4,resolveEventStreamSerdeConfig:()=>I4,universalEventStreamSerdeProvider:()=>C4});var WS=g(()=>{Zw();Xw();Jw();eP();tP();rP();nP();x4();D4();iP();oP();sP();w4();P4()});var ua,KS=g(()=>{oe();ae();oe();Ju();ua=class extends Zt{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=new Fe(e.defaultNamespace);for(let r of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return re}getResponseType(){return ft}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,r){if("url"in r){e.protocol=r.url.protocol,e.hostname=r.url.hostname,e.port=r.url.port?Number(r.url.port):void 0,e.path=r.url.pathname,e.fragment=r.url.hash||void 0,e.username=r.url.username||void 0,e.password=r.url.password||void 0,e.query||(e.query={});for(let[n,o]of r.url.searchParams.entries())e.query[n]=o;if(r.headers)for(let n in r.headers)W(r.headers,n)&&(e.headers[n]=r.headers[n].join(", "));return e}else{if(e.protocol=r.protocol,e.hostname=r.hostname,e.port=r.port?Number(r.port):void 0,e.path=r.path,e.query={...r.query},r.headers)for(let n in r.headers)W(r.headers,n)&&(e.headers[n]=r.headers[n]);return e}}setHostPrefix(e,r,n){if(this.serdeContext?.disableHostPrefix)return;let o=B.of(r.input),s=Ro(r.traits??{});if(s.endpoint){let i=s.endpoint?.[0];if(typeof i=="string"){for(let[a,c]of o.structIterator()){if(!c.getMergedTraits().hostLabel)continue;let u=n[a];if(typeof u!="string")throw new Error(`@smithy/core/schema - ${a} in input must be a string as hostLabel.`);i=i.replace(`{${a}}`,u)}if(e.hostname=i+e.hostname,!Sp(e.hostname))throw new Error(`[${e.hostname}] is not a valid 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"]}}resolveError(e,r,n){let o=[-3,"","Error",0,[],[],0],s;for(let i of n)for(let a of r)try{a==="*"?s=i.getSchema(e):s=i.getSchema(a+"#"+e);let c=i.getErrorCtor(s);if(c)return[s,c,"modeled"];{let u=i.getBaseException();if(u){let f=i.getErrorCtor(u);if(f)return[s,f,"synthetic"]}}}catch{}for(let i of n){let a=i.getBaseException();if(a){let c=i.getErrorCtor(a);if(c)return[a,c,"synthetic"]}}return[o,Error,"native"]}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e,eventStreamSerdeProvider:r}=await Promise.resolve().then(()=>(WS(),VS)),n=this.resolveEventStreamMarshaller(r);return new e({marshaller:n,serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType(),compositeErrorRegistry:this.compositeErrorRegistry})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,r,n,o,s){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}resolveEventStreamMarshaller(e){let r=this.serdeContext;return r.eventStreamMarshaller?r.eventStreamMarshaller:e(this.serdeContext)}}});var la,O4=g(()=>{oe();ae();j();oe();KS();Yu();FS();la=class extends ua{async serializeRequest(e,r,n){let o=r&&typeof r=="object"?r:{},s=this.serializer,i={},a={},c=await n.endpoint(),u=B.of(e?.input),f=[],m=[],y=!1,_,C=new re({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:i,headers:a,body:void 0});if(c){this.updateServiceEndpoint(C,c),this.setHostPrefix(C,e,o);let A=Ro(e.traits);if(A.http){C.method=A.http[0];let[x,T]=A.http[1].split("?");C.path=="/"?C.path=x:C.path+=x;let I=new URLSearchParams(T??"");for(let[q,H]of I)i[q]=H}}for(let[A,x]of u.structIterator()){let T=x.getMergedTraits()??{},I=o[A];if(I==null&&!x.isIdempotencyToken()){if(T.httpLabel&&(C.path.includes(`{${A}+}`)||C.path.includes(`{${A}}`)))throw new Error(`No value provided for input HTTP label: ${A}.`);continue}if(T.httpPayload)x.isStreaming()?x.isStructSchema()?o[A]&&(_=await this.serializeEventStream({eventStream:o[A],requestSchema:u})):_=I:(s.write(x,I),_=s.flush());else if(T.httpLabel){s.write(x,I);let q=s.flush();C.path.includes(`{${A}+}`)?C.path=C.path.replace(`{${A}+}`,q.split("/").map(vo).join("/")):C.path.includes(`{${A}}`)&&(C.path=C.path.replace(`{${A}}`,vo(q)))}else if(T.httpHeader)s.write(x,I),a[T.httpHeader.toLowerCase()]=String(s.flush());else if(typeof T.httpPrefixHeaders=="string")for(let q in I){if(!W(I,q))continue;let H=I[q],me=T.httpPrefixHeaders+q;s.write([x.getValueSchema(),{httpHeader:me}],H),a[me.toLowerCase()]=s.flush()}else T.httpQuery||T.httpQueryParams?this.serializeQuery(x,I,i):(y=!0,f.push(A),m.push(x))}if(y&&o){let[A,x]=(u.getName(!0)??"#Unknown").split("#"),T=u.getSchema()[6],I=[3,A,x,u.getMergedTraits(),f,m,void 0];T?I[6]=T:I.pop(),s.write(I,o),_=s.flush()}return C.headers=a,C.query=i,C.body=_,C}serializeQuery(e,r,n){let o=this.serializer,s=e.getMergedTraits();if(s.httpQueryParams){for(let i in r)if(W(r,i)&&!(i in n)){let a=r[i],c=e.getValueSchema();Object.assign(c.getMergedTraits(),{...s,httpQuery:i,httpQueryParams:void 0}),this.serializeQuery(c,a,n)}return}if(e.isListSchema()){let i=!!e.getMergedTraits().sparse,a=[];for(let c of r){o.write([e.getValueSchema(),s],c);let u=o.flush();(i||u!==void 0)&&a.push(u)}n[s.httpQuery]=a}else o.write([e,s],r),n[s.httpQuery]=o.flush()}async deserializeResponse(e,r,n){let o=this.deserializer,s=B.of(e.output),i={};if(n.statusCode>=300){let c=await At(n.body,r);throw c.byteLength>0&&Object.assign(i,await o.read(15,c)),await this.handleError(e,r,n,i,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let c in n.headers){if(!W(n.headers,c))continue;let u=n.headers[c];delete n.headers[c],n.headers[c.toLowerCase()]=u}let a=await this.deserializeHttpMessage(s,r,n,i);if(a.length){let c=await At(n.body,r);if(c.byteLength>0){let u=await o.read(s,c);for(let f of a)u[f]!=null&&(i[f]=u[f])}}else a.discardResponseBody&&await At(n.body,r);return i.$metadata=this.deserializeMetadata(n),i}async deserializeHttpMessage(e,r,n,o,s){let i;o instanceof Set?i=s:i=o;let a=!0,c=this.deserializer,u=B.of(e),f=[];for(let[m,y]of u.structIterator()){let _=y.getMemberTraits();if(_.httpPayload){if(a=!1,y.isStreaming())y.isStructSchema()?i[m]=await this.deserializeEventStream({response:n,responseSchema:u}):i[m]=NS(n.body);else if(n.body){let A=await At(n.body,r);A.byteLength>0&&(i[m]=await c.read(y,A))}}else if(_.httpHeader){let C=String(_.httpHeader).toLowerCase(),A=n.headers[C];if(A!=null)if(y.isListSchema()){let x=y.getValueSchema();x.getMergedTraits().httpHeader=C;let T;x.isTimestampSchema()&&x.getSchema()===4?T=Vh(A,",",2):T=Bu(A);let I=[];for(let q of T)I.push(await c.read(x,q.trim()));i[m]=I}else i[m]=await c.read(y,A)}else if(_.httpPrefixHeaders!==void 0){i[m]={};for(let C in n.headers)if(W(n.headers,C)&&C.startsWith(_.httpPrefixHeaders)){let A=n.headers[C],x=y.getValueSchema();x.getMergedTraits().httpHeader=C,i[m][C.slice(_.httpPrefixHeaders.length)]=await c.read(x,A)}}else _.httpResponseCode?i[m]=n.statusCode:f.push(m)}return f.discardResponseBody=a,f}}});var Yn,aP=g(()=>{oe();ae();oe();KS();Yu();Yn=class extends ua{async serializeRequest(e,r,n){let o=this.serializer,s={},i={},a=await n.endpoint(),c=B.of(e?.input),u=c.getSchema(),f,m=r&&typeof r=="object"?r:{},y=new re({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:s,headers:i,body:void 0});if(a&&(this.updateServiceEndpoint(y,a),this.setHostPrefix(y,e,m)),m){let _=c.getEventStreamMember();if(_){if(m[_]){let C={};for(let[A]of c.structIterator())A!==_&&m[A]!=null&&(C[A]=m[A]);f=await this.serializeEventStream({eventStream:m[_],requestSchema:c,initialRequest:C})}}else o.write(u,m),f=o.flush()}return y.headers=Object.assign(y.headers,i),y.query=s,y.body=f,y.method="POST",y}async deserializeResponse(e,r,n){let o=this.deserializer,s=B.of(e.output),i={};if(n.statusCode>=300){let c=await At(n.body,r);throw c.byteLength>0&&Object.assign(i,await o.read(15,c)),await this.handleError(e,r,n,i,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let c in n.headers){if(!W(n.headers,c))continue;let u=n.headers[c];delete n.headers[c],n.headers[c.toLowerCase()]=u}let a=s.getEventStreamMember();if(a)i[a]=await this.deserializeEventStream({response:n,responseSchema:s,initialResponseContainer:i});else{let c=await At(n.body,r);c.byteLength>0&&Object.assign(i,await o.read(s,c))}return i.$metadata=this.deserializeMetadata(n),i}}});var QS,cP=g(()=>{FS();QS=(t,e,r,n,o,s)=>{if(e!=null&&e[r]!==void 0){let i=n();if(i==null||i.length<=0)throw new Error("Empty value provided for input HTTP label: "+r+".");t=t.replace(o,s?i.split("/").map(a=>vo(a)).join("/"):vo(i))}else throw new Error("No value provided for input HTTP label: "+r+".");return t}});function YS(t,e){return new Qp(t,e)}var Qp,$4=g(()=>{oe();cP();Qp=class{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(e,r){this.input=e,this.context=r}async build(){let{hostname:e,protocol:r="https",port:n,path:o}=await this.context.endpoint();this.path=o;for(let s of this.resolvePathStack)s(this.path);return new re({protocol:r,hostname:this.hostname||e,port:n,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){return this.hostname=e,this}bp(e){return this.resolvePathStack.push(r=>{this.path=`${r?.endsWith("/")?r.slice(0,-1):r||""}`+e}),this}p(e,r,n,o){return this.resolvePathStack.push(s=>{this.path=QS(s,this.input,e,r,n,o)}),this}h(e){return this.headers=e,this}q(e){return this.query=e,this}b(e){return this.body=e,this}m(e){return this.method=e,this}}});function Ze(t,e){if(e.timestampFormat.useTrait&&t.isTimestampSchema()&&(t.getSchema()===5||t.getSchema()===6||t.getSchema()===7))return t.getSchema();let{httpLabel:r,httpPrefixHeaders:n,httpHeader:o,httpQuery:s}=t.getMergedTraits();return(e.httpBindings?typeof n=="string"||o?6:s||r?5:void 0:void 0)??e.timestampFormat.default}var da=g(()=>{});var pa,uP=g(()=>{ae();j();Ju();da();pa=class extends Zt{settings;constructor(e){super(),this.settings=e}read(e,r){let n=B.of(e);if(n.isListSchema())return Bu(r).map(o=>this.read(n.getValueSchema(),o));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??Xe)(r);if(n.isTimestampSchema())switch(Ze(n,this.settings)){case 5:return jh(r);case 6:return zh(r);case 7:return na(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(n.isStringSchema()){let o=n.getMergedTraits().mediaType,s=r;if(o)return n.getMergedTraits().httpHeader&&(s=this.base64ToUtf8(s)),(o==="application/json"||o.endsWith("+json"))&&(s=qe.from(s)),s}return n.isNumericSchema()?Number(r):n.isBigIntegerSchema()?BigInt(r):n.isBigDecimalSchema()?new Y(r,"bigDecimal"):n.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??ze)((this.serdeContext?.base64Decoder??Xe)(e))}}});var fa,k4=g(()=>{ae();j();Ju();uP();fa=class extends Zt{codecDeserializer;stringDeserializer;constructor(e,r){super(),this.codecDeserializer=e,this.stringDeserializer=new pa(r)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,r){let n=B.of(e),o=n.getMergedTraits(),s=this.serdeContext?.utf8Encoder??ze;if(o.httpHeader||o.httpResponseCode)return this.stringDeserializer.read(n,s(r));if(o.httpPayload){if(n.isBlobSchema()){let i=this.serdeContext?.utf8Decoder??qt;return typeof r=="string"?i(r):r}else if(n.isStringSchema())return"byteLength"in r?s(r):r}return this.codecDeserializer.read(n,r)}}});var il,lP=g(()=>{ae();j();Ju();da();il=class extends Zt{settings;stringBuffer="";constructor(e){super(),this.settings=e}write(e,r){let n=B.of(e);switch(typeof r){case"object":if(r===null){this.stringBuffer="null";return}if(n.isTimestampSchema()){if(!(r instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${r} when schema expected Date in ${n.getName(!0)}`);switch(Ze(n,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=br(r);break;case 7:this.stringBuffer=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",r),this.stringBuffer=String(r.getTime()/1e3)}return}if(n.isBlobSchema()&&"byteLength"in r){this.stringBuffer=(this.serdeContext?.base64Encoder??Ie)(r);return}if(n.isListSchema()&&Array.isArray(r)){let i="";for(let a of r){this.write([n.getValueSchema(),n.getMergedTraits()],a);let c=this.flush(),u=n.getValueSchema().isTimestampSchema()?c:Hh(c);i!==""&&(i+=", "),i+=u}this.stringBuffer=i;return}this.stringBuffer=JSON.stringify(r,null,2);break;case"string":let o=n.getMergedTraits().mediaType,s=r;if(o&&((o==="application/json"||o.endsWith("+json"))&&(s=qe.from(s)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??Ie)(s.toString());return}this.stringBuffer=r;break;default:n.isIdempotencyToken()?this.stringBuffer=xr():this.stringBuffer=String(r)}}flush(){let e=this.stringBuffer;return this.stringBuffer="",e}}});var ma,M4=g(()=>{ae();lP();ma=class{codecSerializer;stringSerializer;buffer;constructor(e,r,n=new il(r)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,r){let n=B.of(e),o=n.getMergedTraits();if(o.httpHeader||o.httpLabel||o.httpQuery){this.stringSerializer.write(n,r),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,r)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}}});var L4,JS,N4=g(()=>{L4=De(Eo()),JS=class{name;kind;values;constructor({name:e,kind:r=L4.FieldPosition.HEADER,values:n=[]}){this.name=e,this.kind=r,this.values=n}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter(r=>r!==e)}toString(){return this.values.map(e=>e.includes(",")||e.includes(" ")?`"${e}"`:e).join(", ")}get(){return this.values}}});var XS,F4=g(()=>{XS=class{entries={};encoding;constructor({fields:e=[],encoding:r="utf-8"}){e.forEach(this.setField.bind(this)),this.encoding=r}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter(r=>r.kind===e)}}});var vs,Ds,B4=g(()=>{vs=t=>(t.logger&&t.logger.constructor?.name!=="NoOpLogger"&&t.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"),t.logger),{setHttpHandler(e){t.requestHandler=e},httpHandler(){return t.requestHandler},updateHttpClientConfig(e,r){t.requestHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.requestHandler.httpHandlerConfigs()}}),Ds=t=>({requestHandler:t.httpHandler()})});function dP(t){return e=>async r=>{let n=r.request;if(re.isInstance(n)){let{body:o,headers:s}=n;if(o&&Object.keys(s).map(i=>i.toLowerCase()).indexOf(U4)===-1)try{let i=t(o);i!=null&&(n.headers={...n.headers,[U4]:String(i)})}catch{}}return e({...r,request:n})}}var U4,pP,Is,G4=g(()=>{oe();U4="content-length";pP={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Is=t=>({applyToStack:e=>{e.add(dP(t.bodyLengthChecker),pP)}})});var ga,jxe,ZS=g(()=>{ga=t=>encodeURIComponent(t).replace(/[!'()*]/g,jxe),jxe=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`});var q4,H4=g(()=>{ZS();q4=t=>t.split("/").map(ga).join("/")});function j4(t){let e=[];for(let r of Object.keys(t).sort()){let n=t[r];if(r=ga(r),Array.isArray(n))for(let o=0,s=n.length;o<s;o++)e.push(`${r}=${ga(n[o])}`);else{let o=r;(n||typeof n=="string")&&(o+=`=${ga(n)}`),e.push(o)}}return e.join("&")}var z4=g(()=>{ZS()});var En,Dc=g(()=>{En=class{serdeContext;setSerdeContext(e){this.serdeContext=e}}});var al,fP=g(()=>{al=class{from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),o=new Set(n);o.delete("__type"),this.keys=o}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function e0(){if(Yp===void 0)try{if(typeof Buffer!="function")Yp=!1;else{let t=JSON.parse(Buffer.from([123,125]));Yp=t!==null&&typeof t=="object"}}catch{Yp=!1}return Yp}var Yp,mP=g(()=>{});function cl(t,e,r){if(r?.source){let n=r.source;if(typeof e=="number")return e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER?Vxe(n,e)?e:new Y(n,"bigDecimal"):zxe(n)?new Y(n,"bigDecimal"):/[eE]/.test(n)?Wxe(n):BigInt(n)}return e}function zxe(t){let e=t.indexOf(".");if(e===-1)return!1;let r=t.search(/[eE]/);if(r===-1)return!0;let n=r-e-1;return parseInt(t.slice(r+1),10)<n}function Vxe(t,e){if(t===String(e)||Object.is(e,-0))return!0;if(/[eE]/.test(t))return gP(t)===gP(String(e));let r=t.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),n=String(e);return r===n?!0:/[eE]/.test(n)?r===gP(n):!1}function gP(t){let e=t.startsWith("-"),r=e?t.slice(1):t,n=r.search(/[eE]/),o;if(n===-1)o=r;else{let s=parseInt(r.slice(n+1),10),i=r.slice(0,n),a=i.indexOf("."),c,u;a===-1?(c=i,u=i.length):(c=i.slice(0,a)+i.slice(a+1),u=a),c=c.replace(/0+$/,"")||"0";let f=u+s;c==="0"?o="0":f<=0?o="0."+"0".repeat(-f)+c:f>=c.length?o=c+"0".repeat(f-c.length):o=c.slice(0,f)+"."+c.slice(f)}return o.includes(".")&&(o=o.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(e?"-":"")+o}function Wxe(t){let e=t.search(/[eE]/),r=parseInt(t.slice(e+1),10),n=t.startsWith("-"),o=t.slice(n?1:0,e),s=o.indexOf("."),i,a;if(s===-1)i=o,a=r;else{i=o.slice(0,s)+o.slice(s+1);let u=o.length-s-1;a=r-u}i=i.replace(/0+$/,"")||"0";let c=BigInt(i)*10n**BigInt(a+(o.replace(".","").length-i.length));return n?-c:c}var t0=g(()=>{j()});function ul(t){let e=B.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(hP in r)return r[hP];let n=r0(e,new Set);return r[hP]=n,n}return r0(e,new Set)}function r0(t,e){let r=t.getSchema();if(e.has(r))return!1;if(e.add(r),t.isBigIntegerSchema()||t.isBigDecimalSchema())return!0;if(t.isStructSchema()){for(let[,n]of t.structIterator())if(r0(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(r0(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var hP,n0=g(()=>{ae();hP=Symbol.for("@aws-sdk/reviver")});var V4,W4=g(()=>{Yu();j();V4=(t,e)=>At(t,e).then(r=>(e?.utf8Encoder??ze)(r))});async function Ic(t,e,r){let n;if(e0()&&typeof t?.[Symbol.asyncIterator]=="function"){let s=await At(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(s)?n=s:n=Buffer.from(s.buffer,s.byteOffset,s.byteLength))}if(n||(n=await V4(t,e)),n.length===0)return{};let o=r&&ul(r)?cl:void 0;try{return JSON.parse(n,o)}catch(s){throw s?.name==="SyntaxError"&&Object.defineProperty(s,"$responseBodyText",{value:typeof n=="string"?n:n.toString("utf8")}),s}}var Q4,K4,SP,Y4,J4,o0,X4,Jp=g(()=>{Yu();W4();mP();t0();n0();Q4=async(t,e)=>{let r=await Ic(t,e);return r.message=r.message??r.Message,r},K4=(t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),SP=t=>{let e=t;return typeof e=="number"&&(e=e.toString()),e.indexOf(",")>=0&&(e=e.split(",")[0]),e.indexOf(":")>=0&&(e=e.split(":")[0]),e.indexOf("#")>=0&&(e=e.split("#")[1]),e},Y4=(t,e)=>X4(t,e,["header","code","type"]),J4=(t,e,r=!1)=>X4(t,e,r?["code","header","type"]:["type","code","header"]),o0=(t,e)=>{if(e?.__type!==void 0){let r=e.__type;return typeof r=="number"&&(r=r.toString()),r.indexOf(",")>=0&&(r=r.split(",")[0]),r.indexOf(":")>=0&&(r=r.split(":")[0]),r}},X4=({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let o=K4(t??{},"x-amzn-errortype");if(o!==void 0)return SP(t[o]);break;case"code":let s=K4(e??{},"code");if(s&&e[s]!==void 0)return SP(e[s]);break;case"type":if(e?.__type!==void 0)return SP(e.__type);break}}});function ws(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var s0=g(()=>{});var ll,yP=g(()=>{da();ae();j();Dc();fP();mP();t0();n0();Jp();s0();oe();ll=class extends En{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=ul(e)?cl:void 0,o;if(typeof r=="string"){if(r.length===0)return{};o=JSON.parse(r,n)}else if(r instanceof Uint8Array&&e0()){if(r.byteLength===0)return{};let s=Buffer.isBuffer(r)?r:Buffer.from(r.buffer,r.byteOffset,r.byteLength);o=JSON.parse(s,n)}else o=await Ic(r,this.serdeContext,e);return this._read(e,o)}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=B.of(e);if(n){if(o.isStructSchema())return this._readStruct(o,r);if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema();if(this.needsTransform(i))for(let a=0;a<r.length;++a)r[a]=this._read(i,r[a]);return r}if(o.isMapSchema()){let i=o.getValueSchema(),a=r;if(this.needsTransform(i))for(let c in a)W(a,c)&&(c==="__proto__"&&ws(a),a[c]=this._read(i,a[c]));return a}}if(o.isBlobSchema()&&typeof r=="string")return Xe(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?qe.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ze(o,this.settings)){case 5:return Ss(r);case 6:return hn(r);case 7:return ys(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof Y)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new Y(i.string,i.type):new Y(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema()&&n)if(Array.isArray(r))for(let i=0;i<r.length;++i){let a=r[i];a instanceof Y||(r[i]=this._read(o,a))}else{let i=r;for(let a in i){if(!W(i,a))continue;a==="__proto__"&&ws(i);let c=i[a];c instanceof Y||(i[a]=this._read(o,c))}}return r}_readStruct(e,r){let n=e.isUnionSchema(),o={},s,i=typeof r.__type=="string",{jsonName:a}=this.settings;a&&i&&(s={});let c;n&&(c=new al(r,o));for(let[u,f]of e.structIterator()){let m=u;a&&(m=f.getMergedTraits().jsonName??m,i&&(s[m]=u)),n&&c.mark(m),r[m]!=null&&(o[u]=this._read(f,r[m]))}if(n)c.writeUnknown();else if(i)for(let u in r){if(!W(r,u))continue;let f=r[u],m=a?s[u]??u:u;m in o||(o[m]=f)}return o}needsTransform(e){return!!(e.isBlobSchema()||e.isTimestampSchema()||e.isBigIntegerSchema()||e.isBigDecimalSchema()||e.isNumericSchema()||e.isDocumentSchema()||e.isStructSchema()||e.isListSchema()||e.isMapSchema()||e.isStringSchema()&&e.getMergedTraits().mediaType)}}});var i0,Z4,eq=g(()=>{j();i0=class t extends Uint8Array{string=null;static allocUnsafe(e){if(typeof Buffer=="function"){let r=Buffer.allocUnsafe(e);return new t(r.buffer,r.byteOffset,r.byteLength)}return new t(e)}toString(){return this.s()}valueOf(){return this.s()}includes(e,r){return typeof e=="string"?this.s().includes(e,r):Uint8Array.prototype.includes.call(this,e,r)}indexOf(e,r){return typeof e=="string"?this.s().indexOf(e,r):Uint8Array.prototype.indexOf.call(this,e,r)}lastIndexOf(e,r){if(typeof e=="string")return this.s().lastIndexOf(e,r);let n=Uint8Array.prototype.lastIndexOf;return r!==void 0?n.call(this,e,r):n.call(this,e)}startsWith(e,r){return this.s().startsWith(e,r)}endsWith(e,r){return this.s().endsWith(e,r)}match(e){return this.s().match(e)}replace(e,r){return this.s().replace(e,r)}search(e){return this.s().search(e)}split(e,r){return this.s().split(e,r)}substring(e,r){return this.s().substring(e,r)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(e){return this.s().charAt(e)}charCodeAt(e){return this.s().charCodeAt(e)}padStart(e,r){return this.s().padStart(e,r)}padEnd(e,r){return this.s().padEnd(e,r)}repeat(e){return this.s().repeat(e)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){let e=Date.now();e>Z4+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),Z4=e),this.string=ze(this)}return this.string}},Z4=0});function EP(t){return i0.allocUnsafe(t)}var a0,tq,rq,Kxe,Qxe,dl,c0,u0,nq,Yxe,Jxe,Xxe,Ps,oq,pl,_P=g(()=>{da();ae();j();Dc();oe();eq();a0=new TextEncoder,tq=123,rq=125,Kxe=91,Qxe=93,dl=34,c0=58,u0=44,nq=92,Yxe=new Uint8Array([116,114,117,101]),Jxe=new Uint8Array([102,97,108,115,101]),Xxe=new Uint8Array([110,117,108,108]),Ps=new Array(128).fill(null);Ps[8]="b";Ps[9]="t";Ps[10]="n";Ps[12]="f";Ps[13]="r";Ps[34]='"';Ps[92]="\\";for(let t=0;t<32;t++)Ps[t]===null&&(Ps[t]="u00"+t.toString(16).padStart(2,"0"));oq=2048;pl=class t extends En{settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=EP(oq)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=B.of(e),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.rootSchema,r,void 0)}writeDiscriminatedDocument(e,r){this.i=0,this.rootSchema=B.of(e);let n=this.rootSchema;if(n.isStructSchema()&&r!=null&&typeof r=="object"){this.writeValue(n,r,void 0);let o=`"__type":"${n.getName(!0)??"Unknown"}",`,s=o.length;this.ensure(s),this.json.copyWithin(1+s,1,this.i),a0.encodeInto(o,this.json.subarray(1)),this.i+=s}else this.writeValue(n,r,void 0)}flush(){this.rootSchema=void 0;let e=this.i;this.i=0;let r=this.rawValue;if(this.rawValue=void 0,e===0)return r;let n=this.json.subarray(0,e);return this.json=EP(oq),n}ensure(e){let{i:r,json:n}=this;if(r+e>n.length){let o=n.length*2;for(;o<r+e;)o*=2;let s=EP(o);s.set(this.json),this.json=s}}writeAscii(e){let r=e.length;this.ensure(r);let{i:n,json:o}=this;for(let s=0;s<r;++s)o[n]=e.charCodeAt(s),n+=1;this.i=n}writeAsciiQuoted(e){let r=e.length;this.ensure(r+4);let{json:n,i:o}=this;n[o++]=dl;for(let s=0;s<r;++s)n[o++]=e.charCodeAt(s);n[o++]=dl,this.i=o}writeJsonString(e){this.ensure(e.length*3+2),this.json[this.i++]=dl;let r=e.length;for(let n=0;n<r;++n){let o=e.charCodeAt(n);if(o>34&&o<92)this.json[this.i++]=o;else if(o<128){let s=Ps[o];if(s!==null){this.ensure(s.length+1),this.json[this.i++]=nq;for(let i=0;i<s.length;i++)this.json[this.i++]=s.charCodeAt(i)}else this.json[this.i++]=o}else if(o>=55296&&o<=56319){let s=n+1<r?e.charCodeAt(n+1):0;if(s>=56320&&s<=57343){this.ensure(4);let{written:i}=a0.encodeInto(e.substring(n,n+2),this.json.subarray(this.i));this.i+=i,++n}else this.ensure(6),this.writeUnicodeEscape(o)}else if(o>=56320&&o<=57343)this.ensure(6),this.writeUnicodeEscape(o);else{let{i:s,json:i}=this;o<2048?(i[s++]=192|o>>6,i[s++]=128|o&63):(i[s++]=224|o>>12,i[s++]=128|o>>6&63,i[s++]=128|o&63),this.i=s}}this.json[this.i++]=dl}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=nq,r[n++]=117;let o=e.toString(16).padStart(4,"0");for(let s=0;s<4;++s)r[n++]=o.charCodeAt(s);this.i=n}static B64=(()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(64);for(let n=0;n<64;++n)r[n]=e.charCodeAt(n);return r})();writeBase64(e){let r=Math.ceil(e.length/3)*4;this.ensure(r+2);let n=this.json,o=t.B64,s=this.i;n[s++]=dl;let i=e.length,a=i%3,c=i-a;for(let u=0;u<c;u+=3){let f=e[u],m=e[u+1],y=e[u+2];n[s++]=o[f>>2],n[s++]=o[(f&3)<<4|m>>4],n[s++]=o[(m&15)<<2|y>>6],n[s++]=o[y&63]}if(a===2){let u=e[c],f=e[c+1];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4|f>>4],n[s++]=o[(f&15)<<2],n[s++]=61}else if(a===1){let u=e[c];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4],n[s++]=61,n[s++]=61}n[s++]=dl,this.i=s}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&B.of(e).isIdempotencyToken()){this.writeAsciiQuoted(xr());return}return}this.ensure(4),this.json.set(Xxe,this.i),this.i+=4;return}let o=B.of(e),s=typeof r=="object";if(o.isStringSchema()){let i=o.getMergedTraits().mediaType;if(i&&(i==="application/json"||i.endsWith("+json"))){this.writeJsonString(qe.from(r).toString());return}}if(this.settings.bigNumberAsString&&r!=null&&(o.isBigIntegerSchema()||o.isBigDecimalSchema())){let i=r instanceof Y?r.string:String(r);this.writeAsciiQuoted(i);return}if(s){if(o.isStructSchema()){this.writeStruct(o,r);return}if(Array.isArray(r)&&(o.isListSchema()||o.isDocumentSchema())){this.writeList(o,r,o.isDocumentSchema());return}if(o.isMapSchema()){this.writeMap(o,r,!1);return}if(r instanceof Uint8Array&&(o.isBlobSchema()||o.isDocumentSchema())){this.writeBase64(r);return}if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema())){this.writeTimestamp(o,r);return}if(r instanceof Y){this.writeAscii(r.string);return}if(o.isDocumentSchema()){Array.isArray(r)?this.writeList(o,r,!0):this.writeMap(o,r,!0);return}let i=JSON.stringify(r);this.writeAscii(i);return}if(typeof r=="string"){if(o.isBlobSchema()){let i=(this.serdeContext?.base64Encoder??Ie)(r);this.writeAsciiQuoted(i);return}this.writeJsonString(r);return}if(typeof r=="number"){if(Math.abs(r)===1/0||Number.isNaN(r)){this.writeAsciiQuoted(String(r));return}let i=String(r);this.writeAscii(i);return}if(typeof r=="boolean"){this.ensure(5);let{i,json:a}=this;r?(a.set(Yxe,i),i+=4):(a.set(Jxe,i),i+=5),this.i=i;return}if(typeof r=="bigint"){this.writeAscii(r.toString());return}this.writeAscii(String(r))}writeStruct(e,r){this.ensure(2),this.json[this.i++]=tq;let n=!1,o=typeof r.__type=="string",s;o&&(s=new Set);for(let[i,a]of e.structIterator()){let c=r[i];if(c==null&&!a.isIdempotencyToken())continue;n&&(this.ensure(1),this.json[this.i++]=u0),n=!0;let u=this.settings.jsonName?a.getMergedTraits().jsonName??i:i;s&&(s.add(i),s.add(u)),this.writeAsciiQuoted(u),this.json[this.i++]=c0,this.writeValue(a,c,e)}if(!n&&e.isUnionSchema()){let{$unknown:i}=r;if(Array.isArray(i)){let[a,c]=i;this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=c0,this.writeValue(15,c,e)}}else if(o)for(let i in r){if(s.has(i))continue;s.add(i);let a=r[i];n&&(this.ensure(1),this.json[this.i++]=u0),n=!0,this.writeAsciiQuoted(i),this.ensure(1),this.json[this.i++]=c0,this.writeValue(15,a,void 0)}this.ensure(1),this.json[this.i++]=rq}writeList(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a=!1;for(let u=0;u<r.length;++u){let f=r[u];if(Number.isNaN(f)||f===1/0||f===-1/0||f==null&&!o){a=!0;break}}let c;if(!a)c=JSON.stringify(r);else{let u=[];for(let f=0;f<r.length;++f){let m=r[f];m==null&&!o||(Number.isNaN(m)||m===1/0||m===-1/0?u.push(String(m)):u.push(m))}c=JSON.stringify(u)}this.ensure(c.length*3),this.i+=a0.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=Kxe;let i=!1;for(let a=0;a<r.length;++a){let c=r[a];(n?c===void 0:c==null&&!o)||(i&&(this.ensure(1),this.json[this.i++]=u0),this.writeValue(s,c,void 0),i=!0)}this.ensure(1),this.json[this.i++]=Qxe}writeMap(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a;for(let u in r){if(!W(r,u))continue;let f=r[u];Number.isNaN(f)||f===1/0||f===-1/0?((a??={})[u]=f,r[u]=String(f)):f===null&&!o&&((a??={})[u]=null,r[u]=void 0)}let c=JSON.stringify(r);a&&Object.assign(r,a),this.ensure(c.length*3),this.i+=a0.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=tq;let i=!0;for(let a in r){if(!W(r,a))continue;let c=r[a];(n?c===void 0:c==null&&!o)||(i||(this.ensure(1),this.json[this.i++]=u0),i=!1,this.writeJsonString(a),this.ensure(1),this.json[this.i++]=c0,this.writeValue(s,c,void 0))}this.ensure(1),this.json[this.i++]=rq}writeTimestamp(e,r){switch(Ze(e,this.settings)){case 5:{let o=r.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(o);return}case 6:{this.writeAsciiQuoted(br(r));return}case 7:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}default:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}}}}});var fl,RP=g(()=>{Dc();yP();_P();fl=class extends En{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new pl(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new ll(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var l0,sq=g(()=>{aP();ae();oe();RP();Jp();l0=class extends Yn{codec=new fl({timestampFormat:{useTrait:!1,default:7},jsonName:!1,bigNumberAsString:!0});serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}getShapeId(){return"smithy.protocols#rpcv2Json"}getPayloadCodec(){return this.codec}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);Object.assign(o.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-json",accept:this.getDefaultContentType()}),gn(e.input)==="unit"?(delete o.body,delete o.headers["content-type"]):o.body||(o.body="{}");let{service:s,operation:i}=Le(n),a=`/service/${s}/operation/${i}`;return o.path.endsWith("/")?o.path+=a.slice(1):o.path+=a,o}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,o,s){let i=o0(n,o)??"Unknown",a={$metadata:s,$fault:n.statusCode<=500?"client":"server"},c=this.options.defaultNamespace;i.includes("#")&&([c]=i.split("#"));let u=this.compositeErrorRegistry,f=Fe.for(c);u.copyFrom(f);let m;try{m=u.getSchema(i)}catch{o.Message&&(o.message=o.Message);let q=Fe.for("smithy.ts.sdk.synthetic."+c);u.copyFrom(q);let H=u.getBaseException();if(H){let me=u.getErrorCtor(H);throw Object.assign(new me({name:i}),a,o)}throw Object.assign(new Error(i),a,o)}let y=B.of(m),_=u.getErrorCtor(m),C=o.message??o.Message??"Unknown",A=new _({}),x={},T=this.codec.createDeserializer();for(let[I,q]of y.structIterator())o[I]!=null&&(x[I]=T.readObject(q,o[I]));throw Object.assign(A,a,{$fault:y.getMergedTraits().error,message:C},x)}getDefaultContentType(){return"application/json"}}});var ml,CP=g(()=>{da();ae();j();j();oe();Dc();fP();t0();n0();Jp();s0();ml=class extends En{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=ul(e)?cl:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await Ic(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=B.of(e);if(n){if(o.isStructSchema()){let i=r,a=o.isUnionSchema(),c={},u,{jsonName:f}=this.settings;f&&(u={});let m;a&&(m=new al(i,c));for(let[y,_]of o.structIterator()){let C=y;f&&(C=_.getMergedTraits().jsonName??C,u[C]=y),a&&m.mark(C),i[C]!=null&&(c[y]=this._read(_,i[C]))}if(a)m.writeUnknown();else if(typeof i.__type=="string")for(let y in i){if(!W(i,y))continue;let _=i[y],C=f?u[y]??y:y;C in c||(c[C]=_)}return c}if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema(),a=[];for(let c of r)a.push(this._read(i,c));return a}if(o.isMapSchema()){let i=o.getValueSchema(),a={};for(let c in r)W(r,c)&&(c==="__proto__"&&ws(a),a[c]=this._read(i,r[c]));return a}}if(o.isBlobSchema()&&typeof r=="string")return Xe(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?qe.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ze(o,this.settings)){case 5:return Ss(r);case 6:return hn(r);case 7:return ys(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof Y)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new Y(i.string,i.type):new Y(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema())if(n){let i=Array.isArray(r)?[]:{};for(let a in r){if(!W(r,a))continue;a==="__proto__"&&ws(i);let c=r[a];c instanceof Y?i[a]=c:i[a]=this._read(o,c)}return i}else return structuredClone(r);return r}}});var iq,d0,aq=g(()=>{j();iq="\u039D",d0=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,r)=>{if(r instanceof Y){let n=`${iq+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),o=`${iq+"b"+this.counter++}_`+n;return this.values.set(`"${o}"`,n),o}return r}}replaceInJson(e){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return e;for(let[r,n]of this.values)e=e.replace(r,n);return e}}});var gl,bP=g(()=>{da();ae();j();Dc();aq();s0();oe();gl=class extends En{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=B.of(e),this.buffer=this._write(this.rootSchema,r)}flush(){let{rootSchema:e,useReplacer:r}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!r)return JSON.stringify(this.buffer);let n=new d0;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,r){this.write(e,r),typeof this.buffer=="object"&&(this.buffer.__type=B.of(e).getName(!0))}_write(e,r,n){let o=r!==null&&typeof r=="object",s=B.of(e);if(o){if(s.isStructSchema()){let i=r,a={},{jsonName:c}=this.settings,u;c&&(u={});let f=0;for(let[m,y]of s.structIterator()){let _=this._write(y,i[m],s);if(_!==void 0){let C=m;c&&(C=y.getMergedTraits().jsonName??m,u[m]=C),a[C]=_,f++}}if(s.isUnionSchema()&&f===0){let{$unknown:m}=i;if(Array.isArray(m)){let[y,_]=m;y==="__proto__"&&ws(a),a[y]=this._write(15,_)}}else if(typeof i.__type=="string")for(let m in i){if(!W(i,m))continue;let y=i[m],_=c?u[m]??m:m;_ in a||(a[_]=this._write(15,y))}return a}if(Array.isArray(r)&&s.isListSchema()){let i=s.getValueSchema(),a=[],c=!!s.getMergedTraits().sparse;for(let u of r)(c||u!=null)&&a.push(this._write(i,u));return a}if(s.isMapSchema()){let i=s.getValueSchema(),a={},c=!!s.getMergedTraits().sparse;for(let u in r){if(!W(r,u))continue;let f=r[u];(c||f!=null)&&(u==="__proto__"&&ws(a),a[u]=this._write(i,f))}return a}if(r instanceof Uint8Array&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??Ie)(r);if(r instanceof Date&&(s.isTimestampSchema()||s.isDocumentSchema()))switch(Ze(s,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return br(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof Y&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(s.isStringSchema()){if(typeof r>"u"&&s.isIdempotencyToken())return xr();let i=s.getMergedTraits().mediaType;return r!=null&&i&&(i==="application/json"||i.endsWith("+json"))?qe.from(r):r}if(typeof r=="number")return Math.abs(r)===1/0||isNaN(r)?String(r):r;if(typeof r=="string"&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??Ie)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),s.isDocumentSchema())if(o){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??Ie)(r);let i=Array.isArray(r)?[]:{};for(let a in r){if(!W(r,a))continue;let c=r[a];a==="__proto__"&&ws(i),c instanceof Y?(this.useReplacer=!0,i[a]=c):i[a]=this._write(s,c)}return i}else return structuredClone(r);return r}}}});var p0,cq=g(()=>{Dc();CP();bP();p0=class extends En{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new gl(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new ml(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var wo={};Ct(wo,{Field:()=>JS,Fields:()=>XS,FromStringShapeDeserializer:()=>pa,HttpBindingProtocol:()=>la,HttpInterceptingShapeDeserializer:()=>fa,HttpInterceptingShapeSerializer:()=>ma,HttpProtocol:()=>ua,HttpRequest:()=>re,HttpResponse:()=>ft,JsonCodec:()=>p0,JsonCodec2:()=>fl,JsonShapeDeserializer:()=>ml,JsonShapeDeserializer2:()=>ll,JsonShapeSerializer:()=>gl,JsonShapeSerializer2:()=>pl,RequestBuilder:()=>Qp,RpcProtocol:()=>Yn,SerdeContext:()=>Zt,SmithyRpcV2JsonProtocol:()=>l0,ToStringShapeSerializer:()=>il,buildQueryString:()=>j4,collectBody:()=>At,contentLengthMiddleware:()=>dP,contentLengthMiddlewareOptions:()=>pP,determineTimestampFormat:()=>Ze,escapeUri:()=>ga,escapeUriPath:()=>q4,extendedEncodeURIComponent:()=>vo,getContentLengthPlugin:()=>Is,getHttpHandlerExtensionConfiguration:()=>vs,isValidHostname:()=>Sp,loadJsonRpcErrorCode:()=>J4,loadRestJsonErrorCode:()=>Y4,loadSmithyRpcV2JsonErrorCode:()=>o0,parseJsonBody:()=>Ic,parseJsonErrorBody:()=>Q4,parseQueryString:()=>yp,parseUrl:()=>Cr,requestBuilder:()=>YS,resolveHttpHandlerRuntimeConfig:()=>Ds,resolvedPath:()=>QS});var V=g(()=>{Yu();FS();O4();KS();aP();$4();cP();uP();k4();M4();lP();da();Ju();N4();F4();oe();oe();oe();B4();G4();ZS();H4();z4();oe();oe();sq();Jp();cq();bP();CP();RP();_P();yP()});var uq,lq,dq,pq,fq,mq,gq=g(()=>{uq=["AccessDeniedException","AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],lq=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],dq=["TimeoutError","RequestTimeout","RequestTimeoutException"],pq=[500,502,503,504],fq=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],mq=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"]});function TP(t){return t.code==="ERR_HTTP2_STREAM_ERROR"&&t.message.includes("NGHTTP2_REFUSED_STREAM")}var Xp,f0,AP,xP,Os,ha,m0,hl=g(()=>{gq();Xp=t=>t?.$retryable!==void 0,f0=t=>uq.includes(t.name),AP=t=>t.$metadata?.clockSkewCorrected,xP=t=>{let e=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return t&&t instanceof TypeError?e.has(t.message):!1},Os=t=>t.$metadata?.httpStatusCode===429||lq.includes(t.name)||t.$retryable?.throttling==!0,ha=(t,e=0)=>t?.name!=="AbortError"&&(Xp(t)||AP(t)||t.name==="InvalidSignatureException"&&t.message?.includes("Signature expired")||dq.includes(t.name)||fq.includes(t?.code||"")||mq.includes(t?.code||"")||pq.includes(t.$metadata?.httpStatusCode||0)||xP(t)||TP(t)||t.cause!==void 0&&e<=10&&ha(t.cause,e+1)),m0=t=>{if(t.$metadata?.httpStatusCode!==void 0){let e=t.$metadata.httpStatusCode;return 500<=e&&e<=599&&!ha(t)}return!1}});var g0,Zp,h0,Sl,vP,DP,S0,Sa,ya,ef=g(()=>{g0=100,Zp=2e4,h0=500,Sl=500,vP=5,DP=10,S0=1,Sa="amz-sdk-invocation-id",ya="amz-sdk-request"});function IP(t,e){if(ft.isInstance(t))for(let r in t.headers){if(!W(t.headers,r))continue;let n=r.toLowerCase();if(n==="retry-after"){let o=t.headers[r],s=NaN;if(o.endsWith("GMT"))try{s=(hn(o).getTime()-Date.now())/1e3}catch(i){e?.trace?.("Failed to parse retry-after header"),e?.trace?.(i)}else o.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?s=Number(o.match(/ GMT, ([\d.]+)$/)?.[1]):o.match(/^((\d+)|(\d+\.\d+))$/)?s=Number(o):Date.parse(o)>=Date.now()&&(s=(Date.parse(o)-Date.now())/1e3);return isNaN(s)?void 0:new Date(Date.now()+s*1e3)}else if(n==="x-amz-retry-after"){let o=t.headers[r],s=Number(o);if(isNaN(s)){e?.trace?.(`Failed to parse x-amz-retry-after=${o}`);return}return new Date(Date.now()+s)}}}function hq(t,e){return IP(t,e)}var wP=g(()=>{oe();V();j()});var y0,PP=g(()=>{y0=t=>t instanceof Error?t:t instanceof Object?Object.assign(new Error,t):typeof t=="string"?new Error(t):new Error(`AWS SDK error wrapper for ${t}`)});function OP(t){return e=>(r,n)=>async o=>{let s=await e.retryStrategy(),i=await e.maxAttempts();if(eTe(s)){s=s;let a=await s.acquireInitialRetryToken((n.partition_id??"")+(n.__retryLongPoll?":longpoll":"")),c=new Error,u=0,f=0,{request:m}=o,y=re.isInstance(m);for(y&&(m.headers[Sa]=Qu());;)try{y&&(m.headers[ya]=`attempt=${u+1}; max=${i}`);let{response:_,output:C}=await r(o);return s.recordSuccess(a),C.$metadata.attempts=u+1,C.$metadata.totalRetryDelay=f,{response:_,output:C}}catch(_){let C=tTe(_,e.logger);if(c=y0(_),y&&t(m))throw(n.logger instanceof Nr?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),c;try{a=await s.refreshRetryTokenForRetry(a,C)}catch{throw c.$metadata||(c.$metadata={}),c.$metadata.attempts=u+1,c.$metadata.totalRetryDelay=f,c}u=a.getRetryCount();let A=a.getRetryDelay();f+=(a?.$retryLog?.acquisitionDelay??0)+A,A>0&&await Zxe(A)}}else return s=s,s?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",s.mode]]),s.retry(r,o)}}function Sq(t){let e=OP(t);return r=>({applyToStack:n=>{n.add(e(r),$P)}})}var Zxe,eTe,tTe,rTe,$P,kP=g(()=>{J();V();j();hl();ef();wP();PP();Zxe=t=>new Promise(e=>setTimeout(e,t)),eTe=t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u",tTe=(t,e)=>{let r={error:t,errorType:rTe(t)},n=IP(t.$response,e);return n&&(r.retryAfterHint=n),r},rTe=t=>Os(t)?"THROTTLING":ha(t)?"TRANSIENT":m0(t)?"SERVER_ERROR":"CLIENT_ERROR",$P={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0}});var Ea,E0=g(()=>{hl();Ea=class t{static setTimeoutFn=(e,r)=>setTimeout(e,r);beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;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,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let r;this.updateMeasuredRate();let n=e;if(n?.errorType==="THROTTLING"||Os(n?.error??e)){let i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());let s=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(s)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(e){if(this.enabled){for(this.refillTokenBucket();e>this.availableTokens;){let r=(e-this.availableTokens)/this.fillRate*1e3;await new Promise(n=>t.setTimeoutFn(n,r)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-e}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let r=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+r),this.lastTimestamp=e}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.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),r=Math.floor(e*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){let n=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(e){return parseFloat(e.toFixed(8))}}});var xt,yl=g(()=>{xt=class t{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return t.v2026?50:100}static throttlingDelay(){return t.v2026?1e3:500}static cost(){return t.v2026?14:5}static throttlingCost(){return t.v2026?5:10}static modifiedCostType(){return t.v2026?"THROTTLING":"TRANSIENT"}}});var _0,yq=g(()=>{yl();_0=class{x=xt.delay();computeNextBackoffDelay(e){let o=Math.random()*Math.min(this.x*2**e,2e4);return Math.floor(o)}setDelayBase(e){this.x=e}}});var tf,Eq=g(()=>{tf=class{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(e,r,n,o){this.delay=e,this.count=r,this.cost=n,this.longPoll=o}getRetryCount(){return this.count}getRetryDelay(){return Math.min(2e4,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}});var er,Po,Jn,wc=g(()=>{(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(er||(er={}));Po=3,Jn=er.STANDARD});var R0,Oo,rf=g(()=>{yq();Eq();wc();yl();R0={incompatible:1,attempts:2,capacity:3},Oo=class{mode=er.STANDARD;retryBackoffStrategy;capacity=500;maxAttemptsProvider;baseDelay;constructor(e){typeof e=="number"?this.maxAttemptsProvider=async()=>e:typeof e=="function"?this.maxAttemptsProvider=e:e&&typeof e=="object"&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>Po,this.baseDelay??=xt.delay(),this.retryBackoffStrategy??=new _0}async acquireInitialRetryToken(e){return new tf(xt.delay(),0,void 0,xt.v2026&&e.includes(":longpoll"))}async refreshRetryTokenForRetry(e,r){let n=await this.getMaxAttempts(),o=this.retryCode(e,r,n),s=o===0,i=e.isLongPoll?.();if(s||i){let a=r.errorType;this.retryBackoffStrategy.setDelayBase(a==="THROTTLING"?xt.throttlingDelay():this.baseDelay);let c=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),u=c;if(r.retryAfterHint instanceof Date&&(u=Math.max(c,Math.min(r.retryAfterHint.getTime()-Date.now(),c+5e3))),s){let f=this.getCapacityCost(a);this.capacity-=f;let m=new tf(0,e.getRetryCount()+1,f,e.isLongPoll?.()??!1);return await new Promise(y=>setTimeout(y,u)),m.$retryLog.acquisitionDelay=u,m}else{let f=xt.v2026&&o===R0.capacity&&i?u:0;f>0&&await new Promise(m=>setTimeout(m,f))}}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${Po}`),Po}}retryCode(e,r,n){let o=e.getRetryCount()+1,s=this.isRetryableError(r.errorType)?0:R0.incompatible,i=o<n?0:R0.attempts,a=this.capacity>=this.getCapacityCost(r.errorType)?0:R0.capacity;return s||i||a}getCapacityCost(e){return e===xt.modifiedCostType()?xt.throttlingCost():xt.cost()}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}});var El,MP=g(()=>{E0();rf();wc();El=class{mode=er.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,r){let{rateLimiter:n}=r??{};this.rateLimiter=n??new Ea,this.standardRetryStrategy=r?new Oo({maxAttempts:typeof e=="number"?e:3,...r}):new Oo(e)}async acquireInitialRetryToken(e){let r=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),r}async refreshRetryTokenForRetry(e,r){this.rateLimiter.updateClientSendingRate(r);let n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,r);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}}});var C0,_q=g(()=>{rf();yl();C0=class extends Oo{computeNextBackoffDelay;constructor(e,r=xt.delay()){super(typeof e=="function"?e:async()=>e),typeof r=="number"?this.computeNextBackoffDelay=()=>r:this.computeNextBackoffDelay=r,this.retryBackoffStrategy.computeNextBackoffDelay=n=>{let o=n+1;return this.computeNextBackoffDelay(o)}}}});var Rq,Cq=g(()=>{Rq=(t,e)=>{let r=t,n=e?.noRetryIncrement??1,o=e?.retryCost??5,s=e?.timeoutRetryCost??10,i=t,a=m=>m.name==="TimeoutError"?s:o,c=m=>a(m)<=i;return Object.freeze({hasRetryTokens:c,retrieveRetryTokens:m=>{if(!c(m))throw new Error("No retry token available");let y=a(m);return i-=y,y},releaseRetryTokens:m=>{i+=m??n,i=Math.min(i,r)}})}});var b0,LP=g(()=>{b0=(t,e)=>Math.floor(Math.min(2e4,Math.random()*2**e*t))});var A0,NP=g(()=>{hl();A0=t=>t?Xp(t)||f0(t)||Os(t)||ha(t):!1});var _l,nTe,FP=g(()=>{V();j();hl();wc();ef();PP();Cq();LP();NP();_l=class{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=er.STANDARD;constructor(e,r){this.maxAttemptsProvider=e,this.retryDecider=r?.retryDecider??A0,this.delayDecider=r?.delayDecider??b0,this.retryQuota=r?.retryQuota??Rq(500)}shouldRetry(e,r,n){return r<n&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch{e=Po}return e}async retry(e,r,n){let o,s=0,i=0,a=await this.getMaxAttempts(),{request:c}=r;for(re.isInstance(c)&&(c.headers[Sa]=Qu());;)try{re.isInstance(c)&&(c.headers[ya]=`attempt=${s+1}; max=${a}`),n?.beforeRequest&&await n.beforeRequest();let{response:u,output:f}=await e(r);return n?.afterRequest&&n.afterRequest(u),this.retryQuota.releaseRetryTokens(o),f.$metadata.attempts=s+1,f.$metadata.totalRetryDelay=i,{response:u,output:f}}catch(u){let f=y0(u);if(s++,this.shouldRetry(f,s,a)){o=this.retryQuota.retrieveRetryTokens(f);let m=this.delayDecider(Os(f)?500:100,s),y=nTe(f.$response),_=Math.max(y||0,m);i+=_,await new Promise(C=>setTimeout(C,_));continue}throw f.$metadata||(f.$metadata={}),f.$metadata.attempts=s,f.$metadata.totalRetryDelay=i,f}}},nTe=t=>{if(!ft.isInstance(t))return;let e=Object.keys(t.headers).find(s=>s.toLowerCase()==="retry-after");if(!e)return;let r=t.headers[e],n=Number(r);if(!Number.isNaN(n))return Math.min(n*1e3,2e4);let o=new Date(r);return Math.min(o.getTime()-Date.now(),2e4)}});var x0,bq=g(()=>{E0();wc();FP();x0=class extends _l{rateLimiter;constructor(e,r){let{rateLimiter:n,...o}=r??{};super(e,o),this.rateLimiter=n??new Ea,this.mode=er.ADAPTIVE}async retry(e,r){return super.retry(e,r,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:n=>{this.rateLimiter.updateClientSendingRate(n)}})}}});var T0,v0,$s,ks,BP,UP,Ms,Aq=g(()=>{J();MP();rf();wc();yl();T0="AWS_MAX_ATTEMPTS",v0="max_attempts",$s={environmentVariableSelector:t=>{let e=t[T0];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Environment variable ${T0} mast be a number, got "${e}"`);return r},configFileSelector:t=>{let e=t[v0];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Shared config file entry ${v0} mast be a number, got "${e}"`);return r},default:Po},ks=(t,e)=>{let{retryStrategy:r,retryMode:n}=t,{defaultMaxAttempts:o=Po,defaultBaseDelay:s=xt.delay()}=e??{},i=we(t.maxAttempts??o),a=r?Promise.resolve(r):void 0,c=async()=>{let u=await i();return await we(n)()===er.ADAPTIVE?new El(i,{maxAttempts:u,baseDelay:s}):new Oo({maxAttempts:u,baseDelay:s})};return Object.assign(t,{maxAttempts:i,retryStrategy:()=>a??=c()})},BP="AWS_RETRY_MODE",UP="retry_mode",Ms={environmentVariableSelector:t=>t[BP],configFileSelector:t=>t[UP],default:Jn}});var GP,qP,xq,Tq=g(()=>{V();ef();GP=()=>t=>async e=>{let{request:r}=e;return re.isInstance(r)&&(delete r.headers[Sa],delete r.headers[ya]),t(e)},qP={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},xq=t=>({applyToStack:e=>{e.addRelativeTo(GP(),qP)}})});var nf={};Ct(nf,{AdaptiveRetryStrategy:()=>El,CONFIG_MAX_ATTEMPTS:()=>v0,CONFIG_RETRY_MODE:()=>UP,ConfiguredRetryStrategy:()=>C0,DEFAULT_MAX_ATTEMPTS:()=>Po,DEFAULT_RETRY_DELAY_BASE:()=>g0,DEFAULT_RETRY_MODE:()=>Jn,DefaultRateLimiter:()=>Ea,DeprecatedAdaptiveRetryStrategy:()=>x0,DeprecatedStandardRetryStrategy:()=>_l,ENV_MAX_ATTEMPTS:()=>T0,ENV_RETRY_MODE:()=>BP,INITIAL_RETRY_TOKENS:()=>Sl,INVOCATION_ID_HEADER:()=>Sa,MAXIMUM_RETRY_DELAY:()=>Zp,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>$s,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>Ms,NO_RETRY_INCREMENT:()=>S0,REQUEST_HEADER:()=>ya,RETRY_COST:()=>vP,RETRY_MODES:()=>er,Retry:()=>xt,StandardRetryStrategy:()=>Oo,THROTTLING_RETRY_DELAY_BASE:()=>h0,TIMEOUT_RETRY_COST:()=>DP,defaultDelayDecider:()=>b0,defaultRetryDecider:()=>A0,getOmitRetryHeadersPlugin:()=>xq,getRetryAfterHint:()=>hq,getRetryPlugin:()=>xi,isBrowserNetworkError:()=>xP,isClockSkewCorrectedError:()=>AP,isClockSkewError:()=>f0,isNodeJsHttp2TransientError:()=>TP,isRetryableByTrait:()=>Xp,isServerError:()=>m0,isThrottlingError:()=>Os,isTransientError:()=>ha,omitRetryHeadersMiddleware:()=>GP,omitRetryHeadersMiddlewareOptions:()=>qP,resolveRetryConfig:()=>ks,retryMiddleware:()=>oTe,retryMiddlewareOptions:()=>$P});var oTe,xi,tn=g(()=>{z3();kP();hl();MP();_q();E0();rf();wc();ef();yl();bq();FP();LP();NP();Aq();Tq();kP();wP();oTe=OP(GD),xi=Sq(GD)});function We(t,e,r){t.__aws_sdk_context?t.__aws_sdk_context.features||(t.__aws_sdk_context.features={}):t.__aws_sdk_context={features:{}},t.__aws_sdk_context.features[e]=r}var HP=g(()=>{tn();xt.v2026||=typeof process=="object"&&process.env?.AWS_NEW_RETRIES_2026==="true"});function vq(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var Dq=g(()=>{});function Rl(t){return t}var jP,zP,Ls,Iq=g(()=>{V();jP=t=>e=>async r=>{if(!re.isInstance(r.request))return e(r);let{request:n}=r,{handlerProtocol:o=""}=t.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let s=n.hostname;n.port!=null&&(s+=`:${n.port}`),n.headers.host=s}return e(r)},zP={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Ls=t=>({applyToStack:e=>{e.add(jP(t),zP)}})});var VP,WP,Ns,wq=g(()=>{VP=()=>(t,e)=>async r=>{try{let n=await t(r),{clientName:o,commandName:s,logger:i,dynamoDbDocumentClientOptions:a={}}=e,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=a,f=c??e.inputFilterSensitiveLog,m=u??e.outputFilterSensitiveLog,{$metadata:y,..._}=n.output;return i?.info?.({clientName:o,commandName:s,input:f(r.input),output:m(_),metadata:y}),n}catch(n){let{clientName:o,commandName:s,logger:i,dynamoDbDocumentClientOptions:a={}}=e,{overrideInputFilterSensitiveLog:c}=a,u=c??e.inputFilterSensitiveLog;throw i?.error?.({clientName:o,commandName:s,input:u(r.input),error:n,metadata:n.$metadata}),n}},WP={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Ns=t=>({applyToStack:e=>{e.add(VP(),WP)}})});var D0,KP=g(()=>{D0={step:"build",tags:["RECURSION_DETECTION","TRACE_CONTEXT_PROPAGATION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"}});var _a,QP,I0,YP,JP,of,Pq=g(()=>{_a={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"),TRACEPARENT:Symbol.for("_AWS_LAMBDA_TRACEPARENT"),TRACESTATE:Symbol.for("_AWS_LAMBDA_TRACESTATE"),BAGGAGE:Symbol.for("_AWS_LAMBDA_BAGGAGE")},QP=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");QP||(globalThis.awslambda=globalThis.awslambda||{});I0=class{static PROTECTED_KEYS=_a;isProtectedKey(e){return Object.values(_a).includes(e)}getRequestId(){return this.get(_a.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(_a.X_RAY_TRACE_ID)}getTenantId(){return this.get(_a.TENANT_ID)}getTraceparent(){return this.get(_a.TRACEPARENT)}getTracestate(){return this.get(_a.TRACESTATE)}getBaggage(){return this.get(_a.BAGGAGE)}},YP=class extends I0{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(e){return this.currentContext?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);this.currentContext=this.currentContext||{},this.currentContext[e]=r}run(e,r){return this.currentContext=e,r()}},JP=class t extends I0{als;static async create(){let e=new t,r=await import("node:async_hooks");return e.als=new r.AsyncLocalStorage,e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(e){return this.als.getStore()?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);let n=this.als.getStore();if(!n)throw new Error("No context available");n[e]=r}run(e,r){return this.als.run(e,r)}};(function(t){let e=null;async function r(n){return e||(e=(async()=>{let s=n===!0||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await JP.create():new YP;return!QP&&globalThis.awslambda?.InvokeStore?globalThis.awslambda.InvokeStore:(!QP&&globalThis.awslambda&&(globalThis.awslambda.InvokeStore=s),s)})()),e}t.getInstanceAsync=r,t._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{e=null,globalThis.awslambda?.InvokeStore&&delete globalThis.awslambda.InvokeStore,globalThis.awslambda={InvokeStore:void 0}}}:void 0})(of||(of={}))});function aTe(t){for(let e of Object.keys(t)){let r=e.toLowerCase();e!==r&&(r===ZP||r===Oq||r===$q)&&(t[r]=t[e],delete t[e])}}var sTe,iTe,XP,ZP,Oq,$q,w0,eO=g(()=>{Pq();V();sTe="AWS_LAMBDA_FUNCTION_NAME",iTe="_X_AMZN_TRACE_ID",XP="X-Amzn-Trace-Id",ZP="traceparent",Oq="tracestate",$q="baggage",w0=()=>t=>async e=>{let{request:r}=e;if(!re.isInstance(r))return t(e);let n;{let o=Object.keys(r.headers??{}).find(s=>s.toLowerCase()===XP.toLowerCase())??XP;if(!r.headers.hasOwnProperty(o)){let s=process.env[sTe],i=process.env[iTe];n??=await of.getInstanceAsync();let c=n?.getXRayTraceId()??i,u=f=>typeof f=="string"&&f.length>0;u(s)&&u(c)&&(r.headers[XP]=c)}}if(aTe(r.headers),!r.headers[ZP]){let s=(n??=await of.getInstanceAsync())?.getTraceparent?.();if(s){r.headers[ZP]=s;let i=n?.getTracestate?.();i&&(r.headers[Oq]=i);let a=n?.getBaggage?.();a&&(r.headers[$q]=a)}}return t(e)}});var Fs,kq=g(()=>{KP();eO();Fs=t=>({applyToStack:e=>{e.add(w0(),D0)}})});var Mq,Lq=g(()=>{Mq=(t,e)=>{if(!e||e.length===0)return t;let r=[];for(let n of e)for(let o of t)o.schemeId.split("#")[1]===n&&r.push(o);for(let n of t)r.find(({schemeId:o})=>o===n.schemeId)||r.push(n);return r}});function cTe(t){let e=new Map;for(let r of t)e.set(r.schemeId,r);return e}var Pc,P0=g(()=>{oe();Lq();Pc=(t,e)=>(r,n)=>async o=>{let s=t.httpAuthSchemeProvider(await e.httpAuthSchemeParametersProvider(t,n,o.input)),i=t.authSchemePreference?await t.authSchemePreference():[],a=Mq(s,i),c=cTe(t.httpAuthSchemes),u=Le(n),f=[];for(let m of a){let y=c.get(m.schemeId);if(!y){f.push(`HttpAuthScheme \`${m.schemeId}\` was not enabled for this service.`);continue}let _=y.identityProvider(await e.identityProviderConfigProvider(t));if(!_){f.push(`HttpAuthScheme \`${m.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:C={},signingProperties:A={}}=m.propertiesExtractor?.(t,n)||{};m.identityProperties=Object.assign(m.identityProperties||{},C),m.signingProperties=Object.assign(m.signingProperties||{},A),u.selectedHttpAuthScheme={httpAuthOption:m,identity:await _(m.identityProperties),signer:y.signer};break}if(!u.selectedHttpAuthScheme)throw new Error(f.join(`
|
|
24
|
+
`));return r(o)}});var O0,$o,Nq=g(()=>{P0();O0={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},$o=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(Pc(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),O0)}})});var $0,tO,Fq=g(()=>{P0();$0={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},tO=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(Pc(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),$0)}})});var Bq=g(()=>{P0();Nq();Fq()});var uTe,lTe,sf,rO=g(()=>{V();oe();uTe=t=>e=>{throw e},lTe=(t,e)=>{},sf=t=>(e,r)=>async n=>{if(!re.isInstance(n.request))return e(n);let s=Le(r).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:i={}},identity:a,signer:c}=s,u=await e({...n,request:await c.sign(n.request,a,i)}).catch((c.errorHandler||uTe)(i));return(c.successHandler||lTe)(u.response,i),u}});var Oc,ko,Uq=g(()=>{rO();Oc={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},ko=t=>({applyToStack:e=>{e.addRelativeTo(sf(t),Oc)}})});var Gq=g(()=>{rO();Uq()});var Xn,qq=g(()=>{Xn=t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e}});function Hq(t,e,r,n,o){return async function*(i,a,...c){let u=a,f=i.startingToken??u[r],m=!0,y;for(;m;){if(u[r]=f,o&&(u[o]=u[o]??i.pageSize),i.client instanceof t)y=await dTe(e,i.client,a,i.withCommand,...c);else throw new Error(`Invalid client, expected instance of ${t.name}`);yield y;let _=f;f=pTe(y,n),m=!!(f&&(!i.stopOnSameToken||f!==_))}return void 0}}var dTe,pTe,jq=g(()=>{dTe=async(t,e,r,n=s=>s,...o)=>{let s=new t(r);return s=n(s)??s,await e.send(s,...o)};pTe=(t,e)=>{let r=t,n=e.split(".");for(let o of n){if(!r||typeof r!="object")return;r=r[o]}return r}});function zq(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}var Vq=g(()=>{});var kn,Wq=g(()=>{oe();kn=class{authSchemes=new Map;constructor(e){for(let r in e){if(!W(e,r))continue;let n=e[r];n!==void 0&&this.authSchemes.set(r,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}}});var nO,Cl,Kq=g(()=>{V();nO=De(Eo()),Cl=class{async sign(e,r,n){if(!n)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!n.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!n.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!r.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let o=re.clone(e);if(n.in===nO.HttpApiKeyAuthLocation.QUERY)o.query[n.name]=r.apiKey;else if(n.in===nO.HttpApiKeyAuthLocation.HEADER)o.headers[n.name]=n.scheme?`${n.scheme} ${r.apiKey}`:r.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+n.in+"`");return o}}});var bl,Qq=g(()=>{V();bl=class{async sign(e,r,n){let o=re.clone(e);if(!r.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return o.headers.Authorization=`Bearer ${r.token}`,o}}});var Ur,Yq=g(()=>{Ur=class{async sign(e,r,n){return e}}});var Jq=g(()=>{Kq();Qq();Yq()});var k0,oO,af,Al,cf,Xq=g(()=>{k0=t=>function(r){return Al(r)&&r.expiration.getTime()-Date.now()<t},oO=3e5,af=k0(3e5),Al=t=>t.expiration!==void 0,cf=(t,e,r)=>{if(t===void 0)return;let n=typeof t!="function"?async()=>Promise.resolve(t):t,o,s,i,a=!1,c=async u=>{s||(s=n(u));try{o=await s,i=!0,a=!1}finally{s=void 0}return o};return e===void 0?async u=>((!i||u?.forceRefresh)&&(o=await c(u)),o):async u=>((!i||u?.forceRefresh)&&(o=await c(u)),a?o:r(o)?(e(o)&&await c(u),o):(a=!0,o))}});var Zq=g(()=>{Wq();Jq();Xq()});var xl={};Ct(xl,{DefaultIdentityProviderConfig:()=>kn,EXPIRATION_MS:()=>oO,HttpApiKeyAuthSigner:()=>Cl,HttpBearerAuthSigner:()=>bl,NoAuthSigner:()=>Ur,createIsIdentityExpiredFunction:()=>k0,createPaginator:()=>Hq,doesIdentityRequireRefresh:()=>Al,getHttpAuthSchemeEndpointRuleSetPlugin:()=>$o,getHttpAuthSchemePlugin:()=>tO,getHttpSigningPlugin:()=>ko,getSmithyContext:()=>Le,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>O0,httpAuthSchemeMiddleware:()=>Pc,httpAuthSchemeMiddlewareOptions:()=>$0,httpSigningMiddleware:()=>sf,httpSigningMiddlewareOptions:()=>Oc,isIdentityExpired:()=>af,memoizeIdentityProvider:()=>cf,normalizeProvider:()=>Xn,requestBuilder:()=>YS,setFeature:()=>zq});var jt=g(()=>{oe();Bq();Gq();qq();jq();V();Vq();Zq()});function fTe(t){return t===void 0?!0:typeof t=="string"&&t.length<=50}function Bs(t){let e=Xn(t.userAgentAppId??uf),{customUserAgent:r}=t;return Object.assign(t,{customUserAgent:typeof r=="string"?[[r]]:r,userAgentAppId:async()=>{let n=await e();if(!fTe(n)){let o=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?console:t.logger;typeof n!="string"?o?.warn("userAgentAppId must be a string or undefined."):n.length>50&&o?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return n}})}var uf,sO=g(()=>{jt();uf=void 0});var iO,eH=g(()=>{iO={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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"}});var tH,rH,M0,aO,nH,L0,N0=g(()=>{eH();tH=iO,rH="",M0=t=>{let{partitions:e}=tH;for(let n of e){let{regions:o,outputs:s}=n;for(let[i,a]of Object.entries(o))if(i===t)return{...s,...a}}for(let n of e){let{regionRegex:o,outputs:s}=n;if(new RegExp(o).test(t))return{...s}}let r=e.find(n=>n.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},aO=(t,e="")=>{tH=t,rH=e},nH=()=>{aO(iO,"")},L0=()=>rH});async function oH(t,e,r){if(r.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&We(t,"PROTOCOL_RPC_V2_CBOR","M"),typeof e.retryStrategy=="function"){let s=await e.retryStrategy();if(typeof s.mode=="string")switch(s.mode){case er.ADAPTIVE:We(t,"RETRY_MODE_ADAPTIVE","F");break;case er.STANDARD:We(t,"RETRY_MODE_STANDARD","E");break}}if(typeof e.accountIdEndpointMode=="function"){let s=t.endpointV2;switch(String(s?.url?.hostname).match(mTe)&&We(t,"ACCOUNT_ID_ENDPOINT","O"),await e.accountIdEndpointMode?.()){case"disabled":We(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":We(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":We(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let o=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(o?.$source){let s=o;s.accountId&&We(t,"RESOLVED_ACCOUNT_ID","T");for(let[i,a]of Object.entries(s.$source??{}))We(t,i,a)}}var mTe,sH=g(()=>{tn();HP();mTe=/\d{12}\.ddb/});var cO,F0,iH,aH,cH=g(()=>{cO="user-agent",F0="x-amz-user-agent",iH=/[^!$%&'*+\-.^_`|~\w]/g,aH=/[^!$%&'*+\-.^_`|~\w#]/g});function uH(t){let e="";for(let r in t){let n=t[r];if(e.length+n.length+1<=1024){e.length?e+=","+n:e+=n;continue}break}return e}var lH=g(()=>{});var lO,B0,dO,Us,fH=g(()=>{V();N0();sH();cH();lH();lO=t=>(e,r)=>async n=>{let{request:o}=n;if(!re.isInstance(o))return e(n);let{headers:s}=o,i=r?.userAgent?.map(B0)||[],a=(await t.defaultUserAgentProvider()).map(B0);await oH(r,t,n);let c=r;a.push(`m/${uH(Object.assign({},r.__smithy_context?.features,c.__aws_sdk_context?.features))}`);let u=t?.customUserAgent?.map(B0)||[],f=await t.userAgentAppId();f&&a.push(B0(["app",`${f}`]));let m=L0(),y=(m?[m]:[]).concat([...a,...i,...u]).join(" "),_=[...a.filter(C=>C.startsWith("aws-sdk-")),...u].join(" ");return t.runtime!=="browser"?(_&&(s[F0]=s[F0]?`${s[cO]} ${_}`:_),s[cO]=y):s[F0]=y,e({...n,request:o})},B0=t=>{let e=t[0].split("/").map(i=>i.replace(iH,"-")).join("/"),r=t[1]?.replace(aH,"-"),n=e.indexOf("/"),o=e.substring(0,n),s=e.substring(n+1);return o==="api"&&(s=s.toLowerCase()),[o,s,r].filter(i=>i&&i.length>0).reduce((i,a,c)=>{switch(c){case 0:return a;case 1:return`${i}/${a}`;default:return`${i}#${a}`}},"")},dO={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Us=t=>({applyToStack:e=>{e.add(lO(t),dO)}})});var U0,mH,gH=g(()=>{U0=require("node:process"),mH=()=>{let t=["deno","bun","llrt"];for(let e of t)if(U0.versions[e])return[`md/${e}`,U0.versions[e]];return["md/nodejs",U0.versions.node]}});var lf,pO=g(()=>{lf={isCrtAvailable:!1}});var hH,SH=g(()=>{pO();hH=()=>lf.isCrtAvailable?["md/crt-avail"]:null});var G0,fO,Mo,yH,EH=g(()=>{G0=require("node:os"),fO=require("node:process");gH();SH();pO();Mo=({serviceId:t,clientVersion:e})=>{let r=mH();return async n=>{let o=[["aws-sdk-js",e],["ua","2.1"],[`os/${(0,G0.platform)()}`,(0,G0.release)()],["lang/js"],r],s=hH();s&&o.push(s),t&&o.push([`api/${t}`,e]),fO.env.AWS_EXECUTION_ENV&&o.push([`exec-env/${fO.env.AWS_EXECUTION_ENV}`]);let i=await n?.userAgentAppId?.();return i?[...o,[`app/${i}`]]:[...o]}},yH=Mo});var mO,gO,gTe,Gs,_H=g(()=>{sO();mO="AWS_SDK_UA_APP_ID",gO="sdk_ua_app_id",gTe="sdk-ua-app-id",Gs={environmentVariableSelector:t=>t[mO],configFileSelector:t=>t[gO]??t[gTe],default:uf}});var RH=st((df,hO)=>{(function(t,e){typeof df=="object"&&typeof hO=="object"?hO.exports=e():typeof define=="function"&&define.amd?define([],e):typeof df=="object"?df.bowser=e():t.bowser=e()})(df,(function(){return(function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(n,o,s){r.o(n,o)||Object.defineProperty(n,o,{enumerable:!0,get:s})},r.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,o){if(1&o&&(n=r(n)),8&o||4&o&&typeof n=="object"&&n&&n.__esModule)return n;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:n}),2&o&&typeof n!="string")for(var i in n)r.d(s,i,function(a){return n[a]}.bind(null,i));return s},r.n=function(n){var o=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(o,"a",o),o},r.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)},r.p="",r(r.s=90)})({17:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=r(18),o=(function(){function s(){}return s.getFirstMatch=function(i,a){var c=a.match(i);return c&&c.length>0&&c[1]||""},s.getSecondMatch=function(i,a){var c=a.match(i);return c&&c.length>1&&c[2]||""},s.matchAndReturnConst=function(i,a,c){if(i.test(a))return c},s.getWindowsVersionName=function(i){switch(i){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},s.getMacOSVersionName=function(i){var a=i.split(".").splice(0,2).map((function(f){return parseInt(f,10)||0}));a.push(0);var c=a[0],u=a[1];if(c===10)switch(u){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(c){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},s.getAndroidVersionName=function(i){var a=i.split(".").splice(0,2).map((function(c){return parseInt(c,10)||0}));if(a.push(0),!(a[0]===1&&a[1]<5))return a[0]===1&&a[1]<6?"Cupcake":a[0]===1&&a[1]>=6?"Donut":a[0]===2&&a[1]<2?"Eclair":a[0]===2&&a[1]===2?"Froyo":a[0]===2&&a[1]>2?"Gingerbread":a[0]===3?"Honeycomb":a[0]===4&&a[1]<1?"Ice Cream Sandwich":a[0]===4&&a[1]<4?"Jelly Bean":a[0]===4&&a[1]>=4?"KitKat":a[0]===5?"Lollipop":a[0]===6?"Marshmallow":a[0]===7?"Nougat":a[0]===8?"Oreo":a[0]===9?"Pie":void 0},s.getVersionPrecision=function(i){return i.split(".").length},s.compareVersions=function(i,a,c){c===void 0&&(c=!1);var u=s.getVersionPrecision(i),f=s.getVersionPrecision(a),m=Math.max(u,f),y=0,_=s.map([i,a],(function(C){var A=m-s.getVersionPrecision(C),x=C+new Array(A+1).join(".0");return s.map(x.split("."),(function(T){return new Array(20-T.length).join("0")+T})).reverse()}));for(c&&(y=m-Math.min(u,f)),m-=1;m>=y;){if(_[0][m]>_[1][m])return 1;if(_[0][m]===_[1][m]){if(m===y)return 0;m-=1}else if(_[0][m]<_[1][m])return-1}},s.map=function(i,a){var c,u=[];if(Array.prototype.map)return Array.prototype.map.call(i,a);for(c=0;c<i.length;c+=1)u.push(a(i[c]));return u},s.find=function(i,a){var c,u;if(Array.prototype.find)return Array.prototype.find.call(i,a);for(c=0,u=i.length;c<u;c+=1){var f=i[c];if(a(f,c))return f}},s.assign=function(i){for(var a,c,u=i,f=arguments.length,m=new Array(f>1?f-1:0),y=1;y<f;y++)m[y-1]=arguments[y];if(Object.assign)return Object.assign.apply(Object,[i].concat(m));var _=function(){var C=m[a];typeof C=="object"&&C!==null&&Object.keys(C).forEach((function(A){u[A]=C[A]}))};for(a=0,c=m.length;a<c;a+=1)_();return i},s.getBrowserAlias=function(i){return n.BROWSER_ALIASES_MAP[i]},s.getBrowserTypeByAlias=function(i){return n.BROWSER_MAP[i]||""},s})();e.default=o,t.exports=e.default},18:function(t,e,r){"use strict";e.__esModule=!0,e.ENGINE_MAP=e.OS_MAP=e.PLATFORMS_MAP=e.BROWSER_MAP=e.BROWSER_ALIASES_MAP=void 0,e.BROWSER_ALIASES_MAP={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},e.BROWSER_MAP={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},e.PLATFORMS_MAP={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},e.OS_MAP={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},e.ENGINE_MAP={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"}},90:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(91))&&n.__esModule?n:{default:n},s=r(18);function i(c,u){for(var f=0;f<u.length;f++){var m=u[f];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(c,m.key,m)}}var a=(function(){function c(){}var u,f,m;return c.getParser=function(y,_,C){if(_===void 0&&(_=!1),C===void 0&&(C=null),typeof y!="string")throw new Error("UserAgent should be a string");return new o.default(y,_,C)},c.parse=function(y,_){return _===void 0&&(_=null),new o.default(y,_).getResult()},u=c,m=[{key:"BROWSER_MAP",get:function(){return s.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return s.ENGINE_MAP}},{key:"OS_MAP",get:function(){return s.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return s.PLATFORMS_MAP}}],(f=null)&&i(u.prototype,f),m&&i(u,m),c})();e.default=a,t.exports=e.default},91:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=c(r(92)),o=c(r(93)),s=c(r(94)),i=c(r(95)),a=c(r(17));function c(f){return f&&f.__esModule?f:{default:f}}var u=(function(){function f(y,_,C){if(_===void 0&&(_=!1),C===void 0&&(C=null),y==null||y==="")throw new Error("UserAgent parameter can't be empty");this._ua=y;var A=!1;typeof _=="boolean"?(A=_,this._hints=C):this._hints=_!=null&&typeof _=="object"?_:null,this.parsedResult={},A!==!0&&this.parse()}var m=f.prototype;return m.getHints=function(){return this._hints},m.hasBrand=function(y){if(!this._hints||!Array.isArray(this._hints.brands))return!1;var _=y.toLowerCase();return this._hints.brands.some((function(C){return C.brand&&C.brand.toLowerCase()===_}))},m.getBrandVersion=function(y){if(this._hints&&Array.isArray(this._hints.brands)){var _=y.toLowerCase(),C=this._hints.brands.find((function(A){return A.brand&&A.brand.toLowerCase()===_}));return C?C.version:void 0}},m.getUA=function(){return this._ua},m.test=function(y){return y.test(this._ua)},m.parseBrowser=function(){var y=this;this.parsedResult.browser={};var _=a.default.find(n.default,(function(C){if(typeof C.test=="function")return C.test(y);if(Array.isArray(C.test))return C.test.some((function(A){return y.test(A)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.browser=_.describe(this.getUA(),this)),this.parsedResult.browser},m.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},m.getBrowserName=function(y){return y?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},m.getBrowserVersion=function(){return this.getBrowser().version},m.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},m.parseOS=function(){var y=this;this.parsedResult.os={};var _=a.default.find(o.default,(function(C){if(typeof C.test=="function")return C.test(y);if(Array.isArray(C.test))return C.test.some((function(A){return y.test(A)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.os=_.describe(this.getUA())),this.parsedResult.os},m.getOSName=function(y){var _=this.getOS().name;return y?String(_).toLowerCase()||"":_||""},m.getOSVersion=function(){return this.getOS().version},m.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},m.getPlatformType=function(y){y===void 0&&(y=!1);var _=this.getPlatform().type;return y?String(_).toLowerCase()||"":_||""},m.parsePlatform=function(){var y=this;this.parsedResult.platform={};var _=a.default.find(s.default,(function(C){if(typeof C.test=="function")return C.test(y);if(Array.isArray(C.test))return C.test.some((function(A){return y.test(A)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.platform=_.describe(this.getUA())),this.parsedResult.platform},m.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},m.getEngineName=function(y){return y?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},m.parseEngine=function(){var y=this;this.parsedResult.engine={};var _=a.default.find(i.default,(function(C){if(typeof C.test=="function")return C.test(y);if(Array.isArray(C.test))return C.test.some((function(A){return y.test(A)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.engine=_.describe(this.getUA())),this.parsedResult.engine},m.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},m.getResult=function(){return a.default.assign({},this.parsedResult)},m.satisfies=function(y){var _=this,C={},A=0,x={},T=0;if(Object.keys(y).forEach((function(pt){var Jr=y[pt];typeof Jr=="string"?(x[pt]=Jr,T+=1):typeof Jr=="object"&&(C[pt]=Jr,A+=1)})),A>0){var I=Object.keys(C),q=a.default.find(I,(function(pt){return _.isOS(pt)}));if(q){var H=this.satisfies(C[q]);if(H!==void 0)return H}var me=a.default.find(I,(function(pt){return _.isPlatform(pt)}));if(me){var et=this.satisfies(C[me]);if(et!==void 0)return et}}if(T>0){var ot=Object.keys(x),tt=a.default.find(ot,(function(pt){return _.isBrowser(pt,!0)}));if(tt!==void 0)return this.compareVersion(x[tt])}},m.isBrowser=function(y,_){_===void 0&&(_=!1);var C=this.getBrowserName().toLowerCase(),A=y.toLowerCase(),x=a.default.getBrowserTypeByAlias(A);return _&&x&&(A=x.toLowerCase()),A===C},m.compareVersion=function(y){var _=[0],C=y,A=!1,x=this.getBrowserVersion();if(typeof x=="string")return y[0]===">"||y[0]==="<"?(C=y.substr(1),y[1]==="="?(A=!0,C=y.substr(2)):_=[],y[0]===">"?_.push(1):_.push(-1)):y[0]==="="?C=y.substr(1):y[0]==="~"&&(A=!0,C=y.substr(1)),_.indexOf(a.default.compareVersions(x,C,A))>-1},m.isOS=function(y){return this.getOSName(!0)===String(y).toLowerCase()},m.isPlatform=function(y){return this.getPlatformType(!0)===String(y).toLowerCase()},m.isEngine=function(y){return this.getEngineName(!0)===String(y).toLowerCase()},m.is=function(y,_){return _===void 0&&(_=!1),this.isBrowser(y,_)||this.isOS(y)||this.isPlatform(y)},m.some=function(y){var _=this;return y===void 0&&(y=[]),y.some((function(C){return _.is(C)}))},f})();e.default=u,t.exports=e.default},92:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=/version\/(\d+(\.?_?\d+)+)/i,i=[{test:[/gptbot/i],describe:function(a){var c={name:"GPTBot"},u=o.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/chatgpt-user/i],describe:function(a){var c={name:"ChatGPT-User"},u=o.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/oai-searchbot/i],describe:function(a){var c={name:"OAI-SearchBot"},u=o.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(a){var c={name:"ClaudeBot"},u=o.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(a){var c={name:"Omgilibot"},u=o.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/diffbot/i],describe:function(a){var c={name:"Diffbot"},u=o.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/perplexitybot/i],describe:function(a){var c={name:"PerplexityBot"},u=o.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/perplexity-user/i],describe:function(a){var c={name:"Perplexity-User"},u=o.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/youbot/i],describe:function(a){var c={name:"YouBot"},u=o.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-webindexer/i],describe:function(a){var c={name:"Meta-WebIndexer"},u=o.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-externalads/i],describe:function(a){var c={name:"Meta-ExternalAds"},u=o.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-externalagent/i],describe:function(a){var c={name:"Meta-ExternalAgent"},u=o.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-externalfetcher/i],describe:function(a){var c={name:"Meta-ExternalFetcher"},u=o.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/googlebot/i],describe:function(a){var c={name:"Googlebot"},u=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/linespider/i],describe:function(a){var c={name:"Linespider"},u=o.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/amazonbot/i],describe:function(a){var c={name:"AmazonBot"},u=o.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/bingbot/i],describe:function(a){var c={name:"BingCrawler"},u=o.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/baiduspider/i],describe:function(a){var c={name:"BaiduSpider"},u=o.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/duckduckbot/i],describe:function(a){var c={name:"DuckDuckBot"},u=o.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/ia_archiver/i],describe:function(a){var c={name:"InternetArchiveCrawler"},u=o.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(a){var c={name:"SlackBot"},u=o.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(a){var c={name:"Opera"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/opr\/|opios/i],describe:function(a){var c={name:"Opera"},u=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/SamsungBrowser/i],describe:function(a){var c={name:"Samsung Internet for Android"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/Whale/i],describe:function(a){var c={name:"NAVER Whale Browser"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/PaleMoon/i],describe:function(a){var c={name:"Pale Moon"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/MZBrowser/i],describe:function(a){var c={name:"MZ Browser"},u=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/focus/i],describe:function(a){var c={name:"Focus"},u=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/swing/i],describe:function(a){var c={name:"Swing"},u=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/coast/i],describe:function(a){var c={name:"Opera Coast"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(a){var c={name:"Opera Touch"},u=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/yabrowser/i],describe:function(a){var c={name:"Yandex Browser"},u=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/ucbrowser/i],describe:function(a){var c={name:"UC Browser"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/Maxthon|mxios/i],describe:function(a){var c={name:"Maxthon"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/epiphany/i],describe:function(a){var c={name:"Epiphany"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/puffin/i],describe:function(a){var c={name:"Puffin"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/sleipnir/i],describe:function(a){var c={name:"Sleipnir"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/k-meleon/i],describe:function(a){var c={name:"K-Meleon"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/micromessenger/i],describe:function(a){var c={name:"WeChat"},u=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/qqbrowser/i],describe:function(a){var c={name:/qqbrowserlite/i.test(a)?"QQ Browser Lite":"QQ Browser"},u=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/msie|trident/i],describe:function(a){var c={name:"Internet Explorer"},u=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/\sedg\//i],describe:function(a){var c={name:"Microsoft Edge"},u=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/edg([ea]|ios)/i],describe:function(a){var c={name:"Microsoft Edge"},u=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/vivaldi/i],describe:function(a){var c={name:"Vivaldi"},u=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/seamonkey/i],describe:function(a){var c={name:"SeaMonkey"},u=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/sailfish/i],describe:function(a){var c={name:"Sailfish"},u=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,a);return u&&(c.version=u),c}},{test:[/silk/i],describe:function(a){var c={name:"Amazon Silk"},u=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/phantom/i],describe:function(a){var c={name:"PhantomJS"},u=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/slimerjs/i],describe:function(a){var c={name:"SlimerJS"},u=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(a){var c={name:"BlackBerry"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/(web|hpw)[o0]s/i],describe:function(a){var c={name:"WebOS Browser"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/bada/i],describe:function(a){var c={name:"Bada"},u=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/tizen/i],describe:function(a){var c={name:"Tizen"},u=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/qupzilla/i],describe:function(a){var c={name:"QupZilla"},u=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/librewolf/i],describe:function(a){var c={name:"LibreWolf"},u=o.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/firefox|iceweasel|fxios/i],describe:function(a){var c={name:"Firefox"},u=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/electron/i],describe:function(a){var c={name:"Electron"},u=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(a){var c={name:"Sogou Browser"},u=o.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,a),f=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,a),m=o.default.getFirstMatch(/se ([\d.]+)x/i,a),y=u||f||m;return y&&(c.version=y),c}},{test:[/MiuiBrowser/i],describe:function(a){var c={name:"Miui"},u=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){return!!a.hasBrand("DuckDuckGo")||a.test(/\sDdg\/[\d.]+$/i)},describe:function(a,c){var u={name:"DuckDuckGo"};if(c){var f=c.getBrandVersion("DuckDuckGo");if(f)return u.version=f,u}var m=o.default.getFirstMatch(/\sDdg\/([\d.]+)$/i,a);return m&&(u.version=m),u}},{test:function(a){return a.hasBrand("Brave")},describe:function(a,c){var u={name:"Brave"};if(c){var f=c.getBrandVersion("Brave");if(f)return u.version=f,u}return u}},{test:[/chromium/i],describe:function(a){var c={name:"Chromium"},u=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/chrome|crios|crmo/i],describe:function(a){var c={name:"Chrome"},u=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/GSA/i],describe:function(a){var c={name:"Google Search"},u=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){var c=!a.test(/like android/i),u=a.test(/android/i);return c&&u},describe:function(a){var c={name:"Android Browser"},u=o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/playstation 4/i],describe:function(a){var c={name:"PlayStation 4"},u=o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/safari|applewebkit/i],describe:function(a){var c={name:"Safari"},u=o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/.*/i],describe:function(a){var c=a.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(c,a),version:o.default.getSecondMatch(c,a)}}}];e.default=i,t.exports=e.default},93:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),i=[{test:[/Roku\/DVP/],describe:function(a){var c=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,a);return{name:s.OS_MAP.Roku,version:c}}},{test:[/windows phone/i],describe:function(a){var c=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.WindowsPhone,version:c}}},{test:[/windows /i],describe:function(a){var c=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,a),u=o.default.getWindowsVersionName(c);return{name:s.OS_MAP.Windows,version:c,versionName:u}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(a){var c={name:s.OS_MAP.iOS},u=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,a);return u&&(c.version=u),c}},{test:[/macintosh/i],describe:function(a){var c=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,a).replace(/[_\s]/g,"."),u=o.default.getMacOSVersionName(c),f={name:s.OS_MAP.MacOS,version:c};return u&&(f.versionName=u),f}},{test:[/(ipod|iphone|ipad)/i],describe:function(a){var c=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,a).replace(/[_\s]/g,".");return{name:s.OS_MAP.iOS,version:c}}},{test:[/OpenHarmony/i],describe:function(a){var c=o.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.HarmonyOS,version:c}}},{test:function(a){var c=!a.test(/like android/i),u=a.test(/android/i);return c&&u},describe:function(a){var c=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,a),u=o.default.getAndroidVersionName(c),f={name:s.OS_MAP.Android,version:c};return u&&(f.versionName=u),f}},{test:[/(web|hpw)[o0]s/i],describe:function(a){var c=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,a),u={name:s.OS_MAP.WebOS};return c&&c.length&&(u.version=c),u}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(a){var c=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,a)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,a)||o.default.getFirstMatch(/\bbb(\d+)/i,a);return{name:s.OS_MAP.BlackBerry,version:c}}},{test:[/bada/i],describe:function(a){var c=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.Bada,version:c}}},{test:[/tizen/i],describe:function(a){var c=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.Tizen,version:c}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(a){var c=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.PlayStation4,version:c}}}];e.default=i,t.exports=e.default},94:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),i=[{test:[/googlebot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/linespider/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(a){var c=o.default.getFirstMatch(/(can-l01)/i,a)&&"Nova",u={type:s.PLATFORMS_MAP.mobile,vendor:"Huawei"};return c&&(u.model=c),u}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(a){var c=a.test(/ipod|iphone/i),u=a.test(/like (ipod|iphone)/i);return c&&!u},describe:function(a){var c=o.default.getFirstMatch(/(ipod|iphone)/i,a);return{type:s.PLATFORMS_MAP.mobile,vendor:"Apple",model:c}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(a){var c=o.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,a),u={type:s.PLATFORMS_MAP.mobile,vendor:"Nokia"};return c&&(u.model=c),u}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(a){return a.getBrowserName(!0)==="blackberry"},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(a){return a.getBrowserName(!0)==="bada"},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(a){return a.getBrowserName()==="windows phone"},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(a){var c=Number(String(a.getOSVersion()).split(".")[0]);return a.getOSName(!0)==="android"&&c>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(a){return a.getOSName(!0)==="android"},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:[/netcast/i],describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(a){return a.getOSName(!0)==="macos"},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(a){return a.getOSName(!0)==="windows"},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(a){return a.getOSName(!0)==="linux"},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(a){return a.getOSName(!0)==="playstation 4"},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(a){return a.getOSName(!0)==="roku"},describe:function(){return{type:s.PLATFORMS_MAP.tv}}}];e.default=i,t.exports=e.default},95:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),i=[{test:function(a){return a.getBrowserName(!0)==="microsoft edge"},describe:function(a){if(/\sedg\//i.test(a))return{name:s.ENGINE_MAP.Blink};var c=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,a);return{name:s.ENGINE_MAP.EdgeHTML,version:c}}},{test:[/trident/i],describe:function(a){var c={name:s.ENGINE_MAP.Trident},u=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){return a.test(/presto/i)},describe:function(a){var c={name:s.ENGINE_MAP.Presto},u=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){var c=a.test(/gecko/i),u=a.test(/like gecko/i);return c&&!u},describe:function(a){var c={name:s.ENGINE_MAP.Gecko},u=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(a){var c={name:s.ENGINE_MAP.WebKit},u=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}}];e.default=i,t.exports=e.default}})}))});var CH,bH=g(()=>{CH=({serviceId:t,clientVersion:e})=>async r=>{let n=await Promise.resolve().then(()=>De(RH())),o=n.parse??n.default.parse??(()=>""),s=typeof window<"u"&&window?.navigator?.userAgent?o(window.navigator.userAgent):void 0,i=[["aws-sdk-js",e],["ua","2.1"],[`os/${s?.os?.name||"other"}`,s?.os?.version],["lang/js"],["md/browser",`${s?.browser?.name??"unknown"}_${s?.browser?.version??"unknown"}`]];t&&i.push([`api/${t}`,e]);let a=await r?.userAgentAppId?.();return a&&i.push([`app/${a}`]),i}});var AH,xH=g(()=>{AH={os(t){if(/iPhone|iPad|iPod/.test(t))return"iOS";if(/Macintosh|Mac OS X/.test(t))return"macOS";if(/Windows NT/.test(t))return"Windows";if(/Android/.test(t))return"Android";if(/Linux/.test(t))return"Linux"},browser(t){if(/EdgiOS|EdgA|Edg\//.test(t))return"Microsoft Edge";if(/Firefox\//.test(t))return"Firefox";if(/Chrome\//.test(t))return"Chrome";if(/Safari\//.test(t))return"Safari"}}});var SO=g(()=>{He()});var pf,yO=g(()=>{He();SO();pf=(t,e=!1)=>{if(e){for(let r of t.split("."))if(!pf(r))return!1;return!0}return!(!_o(t)||t.length<3||t.length>63||t!==t.toLowerCase()||_i(t))}});var q0,EO=g(()=>{q0=t=>{let e=t.split(":");if(e.length<6)return null;let[r,n,o,s,i,...a]=e;if(r!=="arn"||n===""||o===""||a.join(":")==="")return null;let c=a.map(u=>u.split("/")).flat();return{partition:n,service:o,region:s,accountId:i,resourceId:c}}});var Lo,TH=g(()=>{He();yO();EO();N0();Lo={isVirtualHostableS3Bucket:pf,parseArn:q0,partition:M0};Sn.aws=Lo});var vH=g(()=>{He()});var DH,_O,IH=g(()=>{V();DH=t=>{if(typeof t.endpointProvider!="function")throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");let{endpoint:e}=t;return e===void 0&&(t.endpoint=async()=>_O(t.endpointProvider({Region:typeof t.region=="function"?await t.region():t.region,UseDualStack:typeof t.useDualstackEndpoint=="function"?await t.useDualstackEndpoint():t.useDualstackEndpoint,UseFIPS:typeof t.useFipsEndpoint=="function"?await t.useFipsEndpoint():t.useFipsEndpoint,Endpoint:void 0},{logger:t.logger}))),t},_O=t=>Cr(t.url)});var wH=g(()=>{He()});var PH=g(()=>{ye();ye()});function H0(t={}){return ue({...Ar,async default(){return RO.silence||console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly."),"us-east-1"}},{...en,...t})}var RO,OH=g(()=>{ye();RO={silence:!1}});var qs,Hs,$H=g(()=>{qs=t=>({setRegion(e){t.region=e},region(){return t.region}}),Hs=t=>({region:t.region()})});var Mn={};Ct(Mn,{DEFAULT_UA_APP_ID:()=>uf,EndpointError:()=>be,NODE_APP_ID_CONFIG_OPTIONS:()=>Gs,NODE_REGION_CONFIG_FILE_OPTIONS:()=>en,NODE_REGION_CONFIG_OPTIONS:()=>Ar,REGION_ENV_NAME:()=>ju,REGION_INI_NAME:()=>zu,UA_APP_ID_ENV_NAME:()=>mO,UA_APP_ID_INI_NAME:()=>gO,awsEndpointFunctions:()=>Lo,createDefaultUserAgentProvider:()=>Mo,createUserAgentStringParsingProvider:()=>CH,crtAvailability:()=>lf,defaultUserAgent:()=>yH,emitWarningIfUnsupportedVersion:()=>us,fallback:()=>AH,getAwsRegionExtensionConfiguration:()=>qs,getHostHeaderPlugin:()=>Ls,getLoggerPlugin:()=>Ns,getLongPollPlugin:()=>G3,getRecursionDetectionPlugin:()=>Fs,getUserAgentMiddlewareOptions:()=>dO,getUserAgentPlugin:()=>Us,getUserAgentPrefix:()=>L0,hostHeaderMiddleware:()=>jP,hostHeaderMiddlewareOptions:()=>zP,isIpAddress:()=>_i,isVirtualHostableS3Bucket:()=>pf,loggerMiddleware:()=>VP,loggerMiddlewareOptions:()=>WP,parseArn:()=>q0,partition:()=>M0,recursionDetectionMiddleware:()=>w0,recursionDetectionMiddlewareOptions:()=>D0,resolveAwsRegionExtensionConfiguration:()=>Hs,resolveDefaultAwsRegionalEndpointsConfig:()=>DH,resolveEndpoint:()=>Hp,resolveHostHeaderConfig:()=>Rl,resolveRegionConfig:()=>wn,resolveUserAgentConfig:()=>Bs,setCredentialFeature:()=>Yi,setFeature:()=>We,setPartitionInfo:()=>aO,setTokenFeature:()=>vq,state:()=>gp,stsRegionDefaultResolver:()=>H0,stsRegionWarning:()=>RO,toEndpointV1:()=>_O,useDefaultPartitionInfo:()=>nH,userAgentMiddleware:()=>lO});var Ee=g(()=>{U3();q3();H3();HP();Dq();Iq();wq();KP();kq();eO();sO();fH();EH();_H();xH();bH();TH();vH();IH();SO();yO();EO();N0();wH();PH();OH();$H()});var MH=st(kH=>{var{createGzip:hTe}=require("node:zlib");kH.compressStream=async t=>t.pipe(hTe())});var FH=st(NH=>{var{promisify:STe}=require("node:util"),{gzip:yTe}=require("node:zlib"),{toUint8Array:LH}=(j(),F(To)),ETe=STe(yTe);NH.compressString=async t=>{try{let e=await ETe(LH(t||""));return LH(e)}catch(e){throw new Error("Failure during compression: "+e.message)}}});var YH=st(Ln=>{var{booleanSelector:BH,SelectorType:j0,numberSelector:UH}=(ye(),F(Br)),{setFeature:_Te}=(jt(),F(xl)),{HttpRequest:RTe}=(V(),F(wo)),{compressStream:CTe}=MH(),{compressString:bTe}=FH(),{isArrayBuffer:ATe}=(j(),F(To)),{normalizeProvider:GH}=(J(),F(bo)),qH="AWS_DISABLE_REQUEST_COMPRESSION",HH="disable_request_compression",jH=!1,xTe={environmentVariableSelector:t=>BH(t,qH,j0.ENV),configFileSelector:t=>BH(t,HH,j0.CONFIG),default:jH},zH="AWS_REQUEST_MIN_COMPRESSION_SIZE_BYTES",VH="request_min_compression_size_bytes",WH=10240,TTe={environmentVariableSelector:t=>UH(t,zH,j0.ENV),configFileSelector:t=>UH(t,VH,j0.CONFIG),default:WH},CO;(function(t){t.GZIP="gzip"})(CO||(CO={}));var vTe=[CO.GZIP],DTe=t=>t!==void 0&&typeof t!="string"&&!ArrayBuffer.isView(t)&&!ATe(t),KH=(t,e)=>(r,n)=>async o=>{if(!RTe.isInstance(o.request)||await t.disableRequestCompression())return r(o);let{request:i}=o,{body:a,headers:c}=i,{encodings:u,streamRequiresLength:f}=e,m=a,y=c;for(let _ of u)if(vTe.includes(_)){let C=!1;if(DTe(a))if(!f)m=await CTe(a),C=!0;else throw new Error("Compression is not supported for streaming blobs that require a length.");else{let A=t.bodyLengthChecker(a),x=await t.requestMinCompressionSizeBytes();A&&A>=x&&(m=await bTe(a),C=!0)}if(C){c["content-encoding"]?y={...c,"content-encoding":`${c["content-encoding"]}, ${_}`}:y={...c,"content-encoding":_},y["content-encoding"].includes("gzip")&&_Te(n,"GZIP_REQUEST_COMPRESSION","L");break}}return r({...o,request:{...i,body:m,headers:y}})},QH={name:"compressionMiddleware",step:"build",tags:["REQUEST_BODY_COMPRESSION","GZIP"],override:!0,priority:"high"},ITe=(t,e)=>({applyToStack:r=>{r.add(KH(t,e),QH)}}),wTe=t=>{let{disableRequestCompression:e,requestMinCompressionSizeBytes:r}=t;return Object.assign(t,{disableRequestCompression:GH(e),requestMinCompressionSizeBytes:async()=>{let n=await GH(r)();if(n<0||n>10485760)throw new RangeError(`The value for requestMinCompressionSizeBytes must be between 0 and 10485760 inclusive. The provided value ${n} is outside this range."`);return n}})};Ln.DEFAULT_DISABLE_REQUEST_COMPRESSION=jH;Ln.DEFAULT_NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES=WH;Ln.NODE_DISABLE_REQUEST_COMPRESSION_CONFIG_OPTIONS=xTe;Ln.NODE_DISABLE_REQUEST_COMPRESSION_ENV_NAME=qH;Ln.NODE_DISABLE_REQUEST_COMPRESSION_INI_NAME=HH;Ln.NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_CONFIG_OPTIONS=TTe;Ln.NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_ENV_NAME=zH;Ln.NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_INI_NAME=VH;Ln.compressionMiddleware=KH;Ln.compressionMiddlewareOptions=QH;Ln.getCompressionPlugin=ITe;Ln.resolveCompressionConfig=wTe});var z0,V0,JH=g(()=>{V();z0=t=>ft.isInstance(t)?t.headers?.date??t.headers?.Date:void 0,V0=t=>ft.isInstance(t)?t.headers?.age??t.headers?.Age:void 0});var ff,XH=g(()=>{ff=t=>new Date(Date.now()+t)});var W0,ZH=g(()=>{W0=(t,e,r,n)=>{if(n!==void 0)return e;let o=Date.parse(t),s=Date.now();return r!==void 0&&s-r>9e5?e:r!==void 0?o-(r+s)/2:o-s}});var bO=g(()=>{JH();XH();ZH()});var ej,mf,PTe,Tl,tr,AO,xO=g(()=>{V();ej=De(Eo());bO();mf=(t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},PTe=t=>t.context?.[ej.SMITHY_CONTEXT_KEY]?.eventStream?.output===!0,Tl=async t=>{let e=mf("context",t.context),r=mf("config",t.config),n=e.endpointV2?.properties?.authSchemes?.[0],s=await mf("signer",r.signer)(n),i=t?.signingRegion,a=t?.signingRegionSet,c=t?.signingName;return{config:r,signer:s,signingRegion:i,signingRegionSet:a,signingName:c}},tr=class{async sign(e,r,n){if(!re.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let o=await Tl(n),{config:s,signer:i}=o,{signingRegion:a,signingName:c}=o,u=n.context;if(u?.authSchemes?.length??!1){let[_,C]=u.authSchemes;_?.name==="sigv4a"&&C?.name==="sigv4"&&(a=C?.signingRegion??a,c=C?.signingName??c)}let f=await s.disableClockSkewCorrection?.()===!0;n._disableClockSkewCorrection=f;let m=f||PTe(n);return n._skipClockSkewSampling=m,m||(n._preRequestSystemClockOffset=s.systemClockOffset,n._requestSentAt=Date.now()),await i.sign(e,{signingDate:f?new Date:ff(s.systemClockOffset),signingRegion:a,signingService:c})}errorHandler(e){return r=>{let n=r;if(!e._skipClockSkewSampling&&!e._disableClockSkewCorrection){let o=n.ServerTime??z0(n.$response);if(o){let s=mf("config",e.config),i=e._preRequestSystemClockOffset,a=e._requestSentAt,c=V0(n.$response),u=W0(o,s.systemClockOffset,a,c);s.systemClockOffset=u,Math.abs(u)>=24e4&&(u!==i||i!==void 0&&i!==u)&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}}throw r}}successHandler(e,r){if(r._skipClockSkewSampling||r._disableClockSkewCorrection)return;let n=z0(e);if(n){let o=mf("config",r.config),s=r._requestSentAt,i=V0(e);o.systemClockOffset=W0(n,o.systemClockOffset,s,i)}}},AO=tr});var Ti,tj=g(()=>{V();bO();xO();Ti=class extends tr{async sign(e,r,n){if(!re.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:o,signer:s,signingRegion:i,signingRegionSet:a,signingName:c}=await Tl(n),f=(await o.sigv4aSigningRegionSet?.()??a??[i]).join(","),m=await o.disableClockSkewCorrection?.()===!0;return n._disableClockSkewCorrection=m,m||(n._preRequestSystemClockOffset=o.systemClockOffset,n._requestSentAt=Date.now()),await s.sign(e,{signingDate:m?new Date:ff(o.systemClockOffset),signingRegion:f,signingService:c})}}});var TO,rj=g(()=>{TO=t=>typeof t=="string"&&t.length>0?t.split(",").map(e=>e.trim()):[]});var K0,vO=g(()=>{K0=t=>`AWS_BEARER_TOKEN_${t.replace(/[\s-]/g,"_").toUpperCase()}`});var nj,oj,No,sj=g(()=>{rj();vO();nj="AWS_AUTH_SCHEME_PREFERENCE",oj="auth_scheme_preference",No={environmentVariableSelector:(t,e)=>{if(e?.signingName&&K0(e.signingName)in t)return["httpBearerAuth"];if(nj in t)return TO(t[nj])},configFileSelector:t=>{if(oj in t)return TO(t[oj])},default:[]}});var gf,hf,ij=g(()=>{jt();ye();gf=t=>(t.sigv4aSigningRegionSet=Xn(t.sigv4aSigningRegionSet),t),hf={environmentVariableSelector(t){if(t.AWS_SIGV4A_SIGNING_REGION_SET)return t.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map(e=>e.trim());throw new In("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(t){if(t.sigv4a_signing_region_set)return(t.sigv4a_signing_region_set??"").split(",").map(e=>e.trim());throw new In("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0}});var BO=st(fe=>{var{hasOwn:Dl,fromUtf8:aj,fromHex:OTe,toHex:$c,toUint8Array:Sf,isArrayBuffer:$Te}=(j(),F(To)),{normalizeProvider:cj}=(J(),F(bo)),{escapeUri:Q0,HttpRequest:pj}=(V(),F(wo)),DO=class{format(e){let r=[];for(let s in e){if(!Dl(e,s))continue;let i=aj(s);r.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[s]))}let n=new Uint8Array(r.reduce((s,i)=>s+i.byteLength,0)),o=0;for(let s of r)n.set(s,o),o+=s.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":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(e.value.bytes,1),o;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let i=new Uint8Array(s.buffer);return i.set(e.value,3),i;case"string":let a=aj(e.value),c=new DataView(new ArrayBuffer(3+a.byteLength));c.setUint8(0,7),c.setUint16(1,a.byteLength,!1);let u=new Uint8Array(c.buffer);return u.set(a,3),u;case"timestamp":let f=new Uint8Array(9);return f[0]=8,f.set(IO.fromNumber(e.value.valueOf()).bytes,1),f;case"uuid":if(!kTe.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let m=new Uint8Array(17);return m[0]=9,m.set(OTe(e.value.replace(/-/g,"")),1),m}}},uj;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(uj||(uj={}));var kTe=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,IO=class t{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,o=Math.abs(Math.round(e));n>-1&&o>0;n--,o/=256)r[n]=o;return e<0&&lj(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&lj(e),parseInt($c(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};function lj(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var fj="X-Amz-Algorithm",mj="X-Amz-Credential",$O="X-Amz-Date",gj="X-Amz-SignedHeaders",hj="X-Amz-Expires",kO="X-Amz-Signature",MO="X-Amz-Security-Token",MTe="X-Amz-Region-Set",LO="authorization",NO=$O.toLowerCase(),Sj="date",yj=[LO,NO,Sj],Ej=kO.toLowerCase(),ey="x-amz-content-sha256",_j=MO.toLowerCase(),LTe="host",Rj={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},Cj=/^proxy-/,bj=/^sec-/,NTe=[/^proxy-/i,/^sec-/i],Y0="AWS4-HMAC-SHA256",FTe="AWS4-ECDSA-P256-SHA256",Aj="AWS4-HMAC-SHA256-PAYLOAD",xj="UNSIGNED-PAYLOAD",Tj=50,FO="aws4_request",vj=3600*24*7,Dj=({query:t={}})=>{let e=[],r={};for(let n in t){if(!Dl(t,n)||n.toLowerCase()===Ej)continue;let o=Q0(n);e.push(o);let s=t[n];typeof s=="string"?r[o]=`${o}=${Q0(s)}`:Array.isArray(s)&&(r[o]=s.slice(0).reduce((i,a)=>i.concat([`${o}=${Q0(a)}`]),[]).sort().join("&"))}return e.sort().map(n=>r[n]).filter(n=>n).join("&")},BTe=t=>UTe(t).toISOString().replace(/\.\d{3}Z$/,"Z"),UTe=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,ty=class{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:r,region:n,service:o,sha256:s,uriEscapePath:i=!0}){this.service=o,this.sha256=s,this.uriEscapePath=i,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=cj(n),this.credentialProvider=cj(r)}createCanonicalRequest(e,r,n){let o=Object.keys(r).sort();return`${e.method}
|
|
25
25
|
${this.getCanonicalPath(e)}
|
|
26
26
|
${Dj(e)}
|
|
27
27
|
${o.map(s=>`${s}:${r[s]}`).join(`
|
|
@@ -31,23 +31,23 @@ ${o.join(";")}
|
|
|
31
31
|
${n}`}async createStringToSign(e,r,n,o){let s=new this.sha256;s.update(Sf(n));let i=await s.digest();return`${o}
|
|
32
32
|
${e}
|
|
33
33
|
${r}
|
|
34
|
-
${$c(i)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let r=[];for(let s of e.split("/"))s?.length!==0&&s!=="."&&(s===".."?r.pop():r.push(s));let n=`${e?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&e?.endsWith("/")?"/":""}`;return Q0(n).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!="object"||typeof e.accessKeyId!="string"||typeof e.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(e){let r=
|
|
35
|
-
`);return this.signString(A,{signingDate:n,signingRegion:c,signingService:i,eventStreamCredentials:a})}async signMessage(e,{signingDate:r=new Date,signingRegion:n,signingService:o,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:r,signingRegion:n,signingService:o,priorSignature:e.priorSignature,eventStreamCredentials:s}).then(a=>({message:e.message,signature:a}))}async signString(e,{signingDate:r=new Date,signingRegion:n,signingService:o,eventStreamCredentials:s}={}){let i=s??await this.credentialProvider();this.validateResolvedCredentials(i);let a=n??await this.regionProvider(),{shortDate:c}=this.formatDate(r),u=new this.sha256(await this.getSigningKey(i,a,c,o));return u.update(Sf(e)),$c(await u.digest())}async signRequest(e,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:o,signingRegion:s,signingService:i}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let c=s??await this.regionProvider(),u=PO(e),{longDate:f,shortDate:m}=this.formatDate(r),y=X0(m,c,i??this.service);u.headers[NO]=f,a.sessionToken&&(u.headers[_j]=a.sessionToken);let _=await Z0(u,this.sha256);!wj(ey,u.headers)&&this.applyChecksum&&(u.headers[ey]=_);let C=wO(u,o,n),A=await this.getSignature(f,y,this.getSigningKey(a,c,m,i),this.createCanonicalRequest(u,C,_));return u.headers[LO]=`${Y0} Credential=${a.accessKeyId}/${y}, SignedHeaders=${this.getCanonicalHeaderList(C)}, Signature=${A}`,u}async getSignature(e,r,n,o){let s=await this.createStringToSign(e,r,o,Y0),i=new this.sha256(await n);return i.update(Sf(s)),$c(await i.digest())}getSigningKey(e,r,n,o){return Ij(this.sha256,e,n,r,o||this.service)}},GTe={SignatureV4a:null};fe.ALGORITHM_IDENTIFIER=Y0;fe.ALGORITHM_IDENTIFIER_V4A=NTe;fe.ALGORITHM_QUERY_PARAM=fj;fe.ALWAYS_UNSIGNABLE_HEADERS=Rj;fe.AMZ_DATE_HEADER=NO;fe.AMZ_DATE_QUERY_PARAM=$O;fe.AUTH_HEADER=LO;fe.CREDENTIAL_QUERY_PARAM=mj;fe.DATE_HEADER=Sj;fe.EVENT_ALGORITHM_IDENTIFIER=Aj;fe.EXPIRES_QUERY_PARAM=hj;fe.GENERATED_HEADERS=yj;fe.HOST_HEADER=MTe;fe.KEY_TYPE_IDENTIFIER=FO;fe.MAX_CACHE_SIZE=Tj;fe.MAX_PRESIGNED_TTL=vj;fe.PROXY_HEADER_PATTERN=Cj;fe.REGION_SET_PARAM=kTe;fe.SEC_HEADER_PATTERN=bj;fe.SHA256_HEADER=ey;fe.SIGNATURE_HEADER=Ej;fe.SIGNATURE_QUERY_PARAM=kO;fe.SIGNED_HEADERS_QUERY_PARAM=gj;fe.SignatureV4=OO;fe.SignatureV4Base=ty;fe.TOKEN_HEADER=_j;fe.TOKEN_QUERY_PARAM=MO;fe.UNSIGNABLE_PATTERNS=LTe;fe.UNSIGNED_PAYLOAD=xj;fe.clearCredentialCache=UTe;fe.createScope=X0;fe.getCanonicalHeaders=wO;fe.getCanonicalQuery=Dj;fe.getPayloadHash=Z0;fe.getSigningKey=Ij;fe.hasHeader=wj;fe.moveHeadersToQuery=Pj;fe.prepareRequest=PO;fe.signatureV4aContainer=GTe});function qTe(t,{credentials:e,credentialDefaultProvider:r}){let n;return e?e?.memoized?n=e:n=cf(e,af,Al):r?n=Jn(r(Object.assign({},t,{parentClientConfig:t}))):n=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},n.memoized=!0,n}function HTe(t,e){if(e.configBound)return e;let r=async n=>e({...n,callerClientConfig:t});return r.memoized=e.memoized,r.configBound=!0,r}var UO,GO,Oj=g(()=>{Ee();jt();UO=De(BO()),GO=t=>e=>{let r=e.credentials,n=!!e.credentials,o;Object.defineProperty(e,"credentials",{set(f){f&&f!==r&&f!==o&&(n=!0),r=f;let m=qTe(e,{credentials:r,credentialDefaultProvider:e.credentialDefaultProvider}),y=HTe(e,m);if(n&&!y.attributed){let _=typeof r=="object"&&r!==null;o=async C=>{let x=await y(C);return _&&(!x.$source||Object.keys(x.$source).length===0)?Yi(x,"CREDENTIALS_CODE","e"):x},o.memoized=y.memoized,o.configBound=y.configBound,o.attributed=!0}else o=y},get(){return o},enumerable:!0,configurable:!0}),e.credentials=r;let{signingEscapePath:s=!0,systemClockOffset:i=e.systemClockOffset||0,sha256:a}=e,c;return e.signer?c=Jn(e.signer):e.regionInfoProvider?c=()=>Jn(e.region)().then(async f=>[await e.regionInfoProvider(f,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},f]).then(([f,m])=>{let{signingRegion:y,signingService:_}=f;e.signingRegion=e.signingRegion||y||m,e.signingName=e.signingName||_||e.serviceId;let C={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:s},A=e.signerConstructor||UO.SignatureV4;return new A(C)}):c=async f=>{f=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await Jn(e.region)(),properties:{}},f);let m=f.signingRegion,y=f.signingName;e.signingRegion=e.signingRegion||m,e.signingName=e.signingName||y||e.serviceId;let _={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:s},C=e.signerConstructor||UO.SignatureV4;return new C(_)},Object.assign(e,{systemClockOffset:i,signingEscapePath:s,signer:c,disableClockSkewCorrection:Jn(e.disableClockSkewCorrection??t)})}});var qO=g(()=>{xO();tj();sj();ij();Oj()});var jTe,zTe,$j,kj=g(()=>{ye();jTe="AWS_DISABLE_CLOCK_SKEW_CORRECTION",zTe="disable_clock_skew_correction",$j={environmentVariableSelector:t=>Ve(t,jTe,Be.ENV),configFileSelector:t=>Ve(t,zTe,Be.CONFIG),default:!1}});var Mj,Lj=g(()=>{ye();kj();Mj=ue($j)});var Il={};Ct(Il,{AWSSDKSigV4Signer:()=>AO,AwsSdkSigV4ASigner:()=>Ti,AwsSdkSigV4Signer:()=>tr,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:()=>No,NODE_SIGV4A_CONFIG_OPTIONS:()=>hf,getBearerTokenEnvKey:()=>K0,resolveAWSSDKSigV4Config:()=>VTe,resolveAwsSdkSigV4AConfig:()=>gf,resolveAwsSdkSigV4Config:()=>js,validateSigningProperties:()=>Tl});var js,VTe,rr=g(()=>{qO();vO();qO();Lj();js=GO(Mj),VTe=js});var HO=st(Ra=>{var{setCredentialFeature:WTe}=(Ee(),F(kn)),{CredentialsProviderError:KTe}=(ye(),F(Br)),Nj="AWS_ACCESS_KEY_ID",Fj="AWS_SECRET_ACCESS_KEY",Bj="AWS_SESSION_TOKEN",Uj="AWS_CREDENTIAL_EXPIRATION",Gj="AWS_CREDENTIAL_SCOPE",qj="AWS_ACCOUNT_ID",QTe=t=>async()=>{t?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let e=process.env[Nj],r=process.env[Fj],n=process.env[Bj],o=process.env[Uj],s=process.env[Gj],i=process.env[qj];if(e&&r){let a={accessKeyId:e,secretAccessKey:r,...n&&{sessionToken:n},...o&&{expiration:new Date(o)},...s&&{credentialScope:s},...i&&{accountId:i}};return WTe(a,"CREDENTIALS_ENV_VARS","g"),a}throw new KTe("Unable to find environment variable credentials.",{logger:t?.logger})};Ra.ENV_ACCOUNT_ID=qj;Ra.ENV_CREDENTIAL_SCOPE=Gj;Ra.ENV_EXPIRATION=Uj;Ra.ENV_KEY=Nj;Ra.ENV_SECRET=Fj;Ra.ENV_SESSION=Bj;Ra.fromEnv=QTe});var ny=st(Xn=>{var{ProviderError:jO,CredentialsProviderError:Ca,loadConfig:QO}=(ye(),F(Br)),YTe=require("node:http"),{parseUrl:JTe}=(V(),F(wo)),Vj=t=>!!t&&typeof t=="object"&&typeof t.AccessKeyId=="string"&&typeof t.SecretAccessKey=="string"&&typeof t.Token=="string"&&typeof t.Expiration=="string",Wj=t=>({accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:new Date(t.Expiration),...t.AccountId&&{accountId:t.AccountId}}),Kj=1e3,Qj=0,YO=({maxRetries:t=Qj,timeout:e=Kj})=>({maxRetries:t,timeout:e});function _f(t){return new Promise((e,r)=>{let n=YTe.request({method:"GET",...t,hostname:t.hostname?.replace(/^\[(.+)\]$/,"$1")});n.on("error",o=>{r(Object.assign(new jO("Unable to connect to instance metadata service"),o)),n.destroy()}),n.on("timeout",()=>{r(new jO("TimeoutError from instance metadata service")),n.destroy()}),n.on("response",o=>{let{statusCode:s=400}=o;(s<200||300<=s)&&(r(Object.assign(new jO("Error response received from instance metadata service"),{statusCode:s})),n.destroy());let i=[];o.on("data",a=>{i.push(a)}),o.on("end",()=>{e(Buffer.concat(i)),n.destroy()})}),n.end()})}var VO=(t,e)=>{let r=t();for(let n=0;n<e;n++)r=r.catch(t);return r},yf="AWS_CONTAINER_CREDENTIALS_FULL_URI",ry="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",WO="AWS_CONTAINER_AUTHORIZATION_TOKEN",XTe=(t={})=>{let{timeout:e,maxRetries:r}=YO(t);return()=>VO(async()=>{let n=await nve({logger:t.logger}),o=JSON.parse(await ZTe(e,n));if(!Vj(o))throw new Ca("Invalid response received from instance metadata service.",{logger:t.logger});return Wj(o)},r)},ZTe=async(t,e)=>(process.env[WO]&&(e.headers={...e.headers,Authorization:process.env[WO]}),(await _f({...e,timeout:t})).toString()),eve="169.254.170.2",tve=new Set(["localhost","127.0.0.1"]),rve=new Set(["http:","https:"]),nve=async({logger:t})=>{if(process.env[ry])return{hostname:eve,path:process.env[ry]};if(process.env[yf]){let e;try{e=new URL(process.env[yf])}catch{throw new Ca(`${process.env[yf]} is not a valid container metadata service URL`,{tryNextLink:!1,logger:t})}if(!e.hostname||!tve.has(e.hostname))throw new Ca(`${e.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:t});if(!e.protocol||!rve.has(e.protocol))throw new Ca(`${e.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:t});return{protocol:e.protocol,hostname:e.hostname,path:e.pathname+e.search,port:e.port?parseInt(e.port,10):void 0}}throw new Ca(`The container metadata credential provider cannot be used unless the ${ry} or ${yf} environment variable is set`,{tryNextLink:!1,logger:t})},KO=class t extends Ca{tryNextLink;name="InstanceMetadataV1FallbackError";constructor(e,r=!0){super(e,r),this.tryNextLink=r,Object.setPrototypeOf(this,t.prototype)}},Ef;(function(t){t.IPv4="http://169.254.169.254",t.IPv6="http://[fd00:ec2::254]"})(Ef||(Ef={}));var ove="AWS_EC2_METADATA_SERVICE_ENDPOINT",sve="ec2_metadata_service_endpoint",ive={environmentVariableSelector:t=>t[ove],configFileSelector:t=>t[sve],default:void 0},wl;(function(t){t.IPv4="IPv4",t.IPv6="IPv6"})(wl||(wl={}));var ave="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",cve="ec2_metadata_service_endpoint_mode",uve={environmentVariableSelector:t=>t[ave],configFileSelector:t=>t[cve],default:wl.IPv4},Yj=async()=>JTe(await lve()||await dve()),lve=async()=>QO(ive)(),dve=async()=>{let t=await QO(uve)();switch(t){case wl.IPv4:return Ef.IPv4;case wl.IPv6:return Ef.IPv6;default:throw new Error(`Unsupported endpoint mode: ${t}. Select from ${Object.values(wl)}`)}},pve=300,fve=300,mve="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",Hj=(t,e)=>{let r=pve+Math.floor(Math.random()*fve),n=new Date(Date.now()+r*1e3);e.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(n)}.
|
|
36
|
-
For more information, please visit: `+
|
|
34
|
+
${$c(i)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let r=[];for(let s of e.split("/"))s?.length!==0&&s!=="."&&(s===".."?r.pop():r.push(s));let n=`${e?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&e?.endsWith("/")?"/":""}`;return Q0(n).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!="object"||typeof e.accessKeyId!="string"||typeof e.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(e){let r=BTe(e).replace(/[-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}},vl={},J0=[],X0=(t,e,r)=>`${t}/${e}/${r}/${FO}`,Ij=async(t,e,r,n,o)=>{let s=await dj(t,e.secretAccessKey,e.accessKeyId),i=`${r}:${n}:${o}:${$c(s)}:${e.sessionToken}`;if(i in vl)return vl[i];for(J0.push(i);J0.length>Tj;)delete vl[J0.shift()];let a=`AWS4${e.secretAccessKey}`;for(let c of[r,n,o,FO])a=await dj(t,a,c);return vl[i]=a},GTe=()=>{J0.length=0,Object.keys(vl).forEach(t=>{delete vl[t]})},dj=(t,e,r)=>{let n=new t(e);return n.update(Sf(r)),n.digest()},wO=({headers:t},e,r)=>{let n={};for(let o of Object.keys(t).sort()){if(t[o]==null)continue;let s=o.toLowerCase();(s in Rj||e?.has(s)||Cj.test(s)||bj.test(s))&&(!r||r&&!r.has(s))||(n[s]=t[o].replace(/[\r\n]/g," ").replace(/[ \t]+/g," ").replace(/^ | $/g,""))}return n},Z0=async({headers:t,body:e},r)=>{for(let n in t)if(Dl(t,n)&&n.toLowerCase()===ey)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||$Te(e)){let n=new r;return n.update(Sf(e)),$c(await n.digest())}return xj},wj=(t,e)=>{t=t.toLowerCase();for(let r in e)if(Dl(e,r)&&t===r.toLowerCase())return!0;return!1},Pj=(t,e={})=>{let{headers:r,query:n={}}=pj.clone(t);for(let o in r){if(!Dl(r,o))continue;let s=o.toLowerCase();(s.slice(0,6)==="x-amz-"&&!e.unhoistableHeaders?.has(s)||e.hoistableHeaders?.has(s))&&(n[o]=r[o],delete r[o])}return{...t,headers:r,query:n}},PO=t=>{t=pj.clone(t);for(let e in t.headers)Dl(t.headers,e)&&yj.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},OO=class extends ty{headerFormatter=new DO;constructor({applyChecksum:e,credentials:r,region:n,service:o,sha256:s,uriEscapePath:i=!0}){super({applyChecksum:e,credentials:r,region:n,service:o,sha256:s,uriEscapePath:i})}async presign(e,r={}){let{signingDate:n=new Date,expiresIn:o=3600,unsignableHeaders:s,unhoistableHeaders:i,signableHeaders:a,hoistableHeaders:c,signingRegion:u,signingService:f}=r,m=await this.credentialProvider();this.validateResolvedCredentials(m);let y=u??await this.regionProvider(),{longDate:_,shortDate:C}=this.formatDate(n);if(o>vj)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let A=X0(C,y,f??this.service),x=Pj(PO(e),{unhoistableHeaders:i,hoistableHeaders:c});m.sessionToken&&(x.query[MO]=m.sessionToken),x.query[fj]=Y0,x.query[mj]=`${m.accessKeyId}/${A}`,x.query[$O]=_,x.query[hj]=o.toString(10);let T=wO(x,s,a);return x.query[gj]=this.getCanonicalHeaderList(T),x.query[kO]=await this.getSignature(_,A,this.getSigningKey(m,y,C,f),this.createCanonicalRequest(x,T,await Z0(e,this.sha256))),x}async sign(e,r){return typeof e=="string"?this.signString(e,r):e.headers&&e.payload?this.signEvent(e,r):e.message?this.signMessage(e,r):this.signRequest(e,r)}async signEvent({headers:e,payload:r},{signingDate:n=new Date,priorSignature:o,signingRegion:s,signingService:i,eventStreamCredentials:a}){let c=s??await this.regionProvider(),{shortDate:u,longDate:f}=this.formatDate(n),m=X0(u,c,i??this.service),y=await Z0({headers:{},body:r},this.sha256),_=new this.sha256;_.update(e);let C=$c(await _.digest()),A=[Aj,f,m,o,C,y].join(`
|
|
35
|
+
`);return this.signString(A,{signingDate:n,signingRegion:c,signingService:i,eventStreamCredentials:a})}async signMessage(e,{signingDate:r=new Date,signingRegion:n,signingService:o,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:r,signingRegion:n,signingService:o,priorSignature:e.priorSignature,eventStreamCredentials:s}).then(a=>({message:e.message,signature:a}))}async signString(e,{signingDate:r=new Date,signingRegion:n,signingService:o,eventStreamCredentials:s}={}){let i=s??await this.credentialProvider();this.validateResolvedCredentials(i);let a=n??await this.regionProvider(),{shortDate:c}=this.formatDate(r),u=new this.sha256(await this.getSigningKey(i,a,c,o));return u.update(Sf(e)),$c(await u.digest())}async signRequest(e,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:o,signingRegion:s,signingService:i}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let c=s??await this.regionProvider(),u=PO(e),{longDate:f,shortDate:m}=this.formatDate(r),y=X0(m,c,i??this.service);u.headers[NO]=f,a.sessionToken&&(u.headers[_j]=a.sessionToken);let _=await Z0(u,this.sha256);!wj(ey,u.headers)&&this.applyChecksum&&(u.headers[ey]=_);let C=wO(u,o,n),A=await this.getSignature(f,y,this.getSigningKey(a,c,m,i),this.createCanonicalRequest(u,C,_));return u.headers[LO]=`${Y0} Credential=${a.accessKeyId}/${y}, SignedHeaders=${this.getCanonicalHeaderList(C)}, Signature=${A}`,u}async getSignature(e,r,n,o){let s=await this.createStringToSign(e,r,o,Y0),i=new this.sha256(await n);return i.update(Sf(s)),$c(await i.digest())}getSigningKey(e,r,n,o){return Ij(this.sha256,e,n,r,o||this.service)}},qTe={SignatureV4a:null};fe.ALGORITHM_IDENTIFIER=Y0;fe.ALGORITHM_IDENTIFIER_V4A=FTe;fe.ALGORITHM_QUERY_PARAM=fj;fe.ALWAYS_UNSIGNABLE_HEADERS=Rj;fe.AMZ_DATE_HEADER=NO;fe.AMZ_DATE_QUERY_PARAM=$O;fe.AUTH_HEADER=LO;fe.CREDENTIAL_QUERY_PARAM=mj;fe.DATE_HEADER=Sj;fe.EVENT_ALGORITHM_IDENTIFIER=Aj;fe.EXPIRES_QUERY_PARAM=hj;fe.GENERATED_HEADERS=yj;fe.HOST_HEADER=LTe;fe.KEY_TYPE_IDENTIFIER=FO;fe.MAX_CACHE_SIZE=Tj;fe.MAX_PRESIGNED_TTL=vj;fe.PROXY_HEADER_PATTERN=Cj;fe.REGION_SET_PARAM=MTe;fe.SEC_HEADER_PATTERN=bj;fe.SHA256_HEADER=ey;fe.SIGNATURE_HEADER=Ej;fe.SIGNATURE_QUERY_PARAM=kO;fe.SIGNED_HEADERS_QUERY_PARAM=gj;fe.SignatureV4=OO;fe.SignatureV4Base=ty;fe.TOKEN_HEADER=_j;fe.TOKEN_QUERY_PARAM=MO;fe.UNSIGNABLE_PATTERNS=NTe;fe.UNSIGNED_PAYLOAD=xj;fe.clearCredentialCache=GTe;fe.createScope=X0;fe.getCanonicalHeaders=wO;fe.getCanonicalQuery=Dj;fe.getPayloadHash=Z0;fe.getSigningKey=Ij;fe.hasHeader=wj;fe.moveHeadersToQuery=Pj;fe.prepareRequest=PO;fe.signatureV4aContainer=qTe});function HTe(t,{credentials:e,credentialDefaultProvider:r}){let n;return e?e?.memoized?n=e:n=cf(e,af,Al):r?n=Xn(r(Object.assign({},t,{parentClientConfig:t}))):n=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},n.memoized=!0,n}function jTe(t,e){if(e.configBound)return e;let r=async n=>e({...n,callerClientConfig:t});return r.memoized=e.memoized,r.configBound=!0,r}var UO,GO,Oj=g(()=>{Ee();jt();UO=De(BO()),GO=t=>e=>{let r=e.credentials,n=!!e.credentials,o;Object.defineProperty(e,"credentials",{set(f){f&&f!==r&&f!==o&&(n=!0),r=f;let m=HTe(e,{credentials:r,credentialDefaultProvider:e.credentialDefaultProvider}),y=jTe(e,m);if(n&&!y.attributed){let _=typeof r=="object"&&r!==null;o=async C=>{let x=await y(C);return _&&(!x.$source||Object.keys(x.$source).length===0)?Yi(x,"CREDENTIALS_CODE","e"):x},o.memoized=y.memoized,o.configBound=y.configBound,o.attributed=!0}else o=y},get(){return o},enumerable:!0,configurable:!0}),e.credentials=r;let{signingEscapePath:s=!0,systemClockOffset:i=e.systemClockOffset||0,sha256:a}=e,c;return e.signer?c=Xn(e.signer):e.regionInfoProvider?c=()=>Xn(e.region)().then(async f=>[await e.regionInfoProvider(f,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},f]).then(([f,m])=>{let{signingRegion:y,signingService:_}=f;e.signingRegion=e.signingRegion||y||m,e.signingName=e.signingName||_||e.serviceId;let C={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:s},A=e.signerConstructor||UO.SignatureV4;return new A(C)}):c=async f=>{f=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await Xn(e.region)(),properties:{}},f);let m=f.signingRegion,y=f.signingName;e.signingRegion=e.signingRegion||m,e.signingName=e.signingName||y||e.serviceId;let _={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:s},C=e.signerConstructor||UO.SignatureV4;return new C(_)},Object.assign(e,{systemClockOffset:i,signingEscapePath:s,signer:c,disableClockSkewCorrection:Xn(e.disableClockSkewCorrection??t)})}});var qO=g(()=>{xO();tj();sj();ij();Oj()});var zTe,VTe,$j,kj=g(()=>{ye();zTe="AWS_DISABLE_CLOCK_SKEW_CORRECTION",VTe="disable_clock_skew_correction",$j={environmentVariableSelector:t=>Ve(t,zTe,Be.ENV),configFileSelector:t=>Ve(t,VTe,Be.CONFIG),default:!1}});var Mj,Lj=g(()=>{ye();kj();Mj=ue($j)});var Il={};Ct(Il,{AWSSDKSigV4Signer:()=>AO,AwsSdkSigV4ASigner:()=>Ti,AwsSdkSigV4Signer:()=>tr,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:()=>No,NODE_SIGV4A_CONFIG_OPTIONS:()=>hf,getBearerTokenEnvKey:()=>K0,resolveAWSSDKSigV4Config:()=>WTe,resolveAwsSdkSigV4AConfig:()=>gf,resolveAwsSdkSigV4Config:()=>js,validateSigningProperties:()=>Tl});var js,WTe,rr=g(()=>{qO();vO();qO();Lj();js=GO(Mj),WTe=js});var HO=st(Ra=>{var{setCredentialFeature:KTe}=(Ee(),F(Mn)),{CredentialsProviderError:QTe}=(ye(),F(Br)),Nj="AWS_ACCESS_KEY_ID",Fj="AWS_SECRET_ACCESS_KEY",Bj="AWS_SESSION_TOKEN",Uj="AWS_CREDENTIAL_EXPIRATION",Gj="AWS_CREDENTIAL_SCOPE",qj="AWS_ACCOUNT_ID",YTe=t=>async()=>{t?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let e=process.env[Nj],r=process.env[Fj],n=process.env[Bj],o=process.env[Uj],s=process.env[Gj],i=process.env[qj];if(e&&r){let a={accessKeyId:e,secretAccessKey:r,...n&&{sessionToken:n},...o&&{expiration:new Date(o)},...s&&{credentialScope:s},...i&&{accountId:i}};return KTe(a,"CREDENTIALS_ENV_VARS","g"),a}throw new QTe("Unable to find environment variable credentials.",{logger:t?.logger})};Ra.ENV_ACCOUNT_ID=qj;Ra.ENV_CREDENTIAL_SCOPE=Gj;Ra.ENV_EXPIRATION=Uj;Ra.ENV_KEY=Nj;Ra.ENV_SECRET=Fj;Ra.ENV_SESSION=Bj;Ra.fromEnv=YTe});var ny=st(Zn=>{var{ProviderError:jO,CredentialsProviderError:Ca,loadConfig:QO}=(ye(),F(Br)),JTe=require("node:http"),{parseUrl:XTe}=(V(),F(wo)),Vj=t=>!!t&&typeof t=="object"&&typeof t.AccessKeyId=="string"&&typeof t.SecretAccessKey=="string"&&typeof t.Token=="string"&&typeof t.Expiration=="string",Wj=t=>({accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:new Date(t.Expiration),...t.AccountId&&{accountId:t.AccountId}}),Kj=1e3,Qj=0,YO=({maxRetries:t=Qj,timeout:e=Kj})=>({maxRetries:t,timeout:e});function _f(t){return new Promise((e,r)=>{let n=JTe.request({method:"GET",...t,hostname:t.hostname?.replace(/^\[(.+)\]$/,"$1")});n.on("error",o=>{r(Object.assign(new jO("Unable to connect to instance metadata service"),o)),n.destroy()}),n.on("timeout",()=>{r(new jO("TimeoutError from instance metadata service")),n.destroy()}),n.on("response",o=>{let{statusCode:s=400}=o;(s<200||300<=s)&&(r(Object.assign(new jO("Error response received from instance metadata service"),{statusCode:s})),n.destroy());let i=[];o.on("data",a=>{i.push(a)}),o.on("end",()=>{e(Buffer.concat(i)),n.destroy()})}),n.end()})}var VO=(t,e)=>{let r=t();for(let n=0;n<e;n++)r=r.catch(t);return r},yf="AWS_CONTAINER_CREDENTIALS_FULL_URI",ry="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",WO="AWS_CONTAINER_AUTHORIZATION_TOKEN",ZTe=(t={})=>{let{timeout:e,maxRetries:r}=YO(t);return()=>VO(async()=>{let n=await ove({logger:t.logger}),o=JSON.parse(await eve(e,n));if(!Vj(o))throw new Ca("Invalid response received from instance metadata service.",{logger:t.logger});return Wj(o)},r)},eve=async(t,e)=>(process.env[WO]&&(e.headers={...e.headers,Authorization:process.env[WO]}),(await _f({...e,timeout:t})).toString()),tve="169.254.170.2",rve=new Set(["localhost","127.0.0.1"]),nve=new Set(["http:","https:"]),ove=async({logger:t})=>{if(process.env[ry])return{hostname:tve,path:process.env[ry]};if(process.env[yf]){let e;try{e=new URL(process.env[yf])}catch{throw new Ca(`${process.env[yf]} is not a valid container metadata service URL`,{tryNextLink:!1,logger:t})}if(!e.hostname||!rve.has(e.hostname))throw new Ca(`${e.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:t});if(!e.protocol||!nve.has(e.protocol))throw new Ca(`${e.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:t});return{protocol:e.protocol,hostname:e.hostname,path:e.pathname+e.search,port:e.port?parseInt(e.port,10):void 0}}throw new Ca(`The container metadata credential provider cannot be used unless the ${ry} or ${yf} environment variable is set`,{tryNextLink:!1,logger:t})},KO=class t extends Ca{tryNextLink;name="InstanceMetadataV1FallbackError";constructor(e,r=!0){super(e,r),this.tryNextLink=r,Object.setPrototypeOf(this,t.prototype)}},Ef;(function(t){t.IPv4="http://169.254.169.254",t.IPv6="http://[fd00:ec2::254]"})(Ef||(Ef={}));var sve="AWS_EC2_METADATA_SERVICE_ENDPOINT",ive="ec2_metadata_service_endpoint",ave={environmentVariableSelector:t=>t[sve],configFileSelector:t=>t[ive],default:void 0},wl;(function(t){t.IPv4="IPv4",t.IPv6="IPv6"})(wl||(wl={}));var cve="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",uve="ec2_metadata_service_endpoint_mode",lve={environmentVariableSelector:t=>t[cve],configFileSelector:t=>t[uve],default:wl.IPv4},Yj=async()=>XTe(await dve()||await pve()),dve=async()=>QO(ave)(),pve=async()=>{let t=await QO(lve)();switch(t){case wl.IPv4:return Ef.IPv4;case wl.IPv6:return Ef.IPv6;default:throw new Error(`Unsupported endpoint mode: ${t}. Select from ${Object.values(wl)}`)}},fve=300,mve=300,gve="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",Hj=(t,e)=>{let r=fve+Math.floor(Math.random()*mve),n=new Date(Date.now()+r*1e3);e.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(n)}.
|
|
36
|
+
For more information, please visit: `+gve);let o=t.originalExpiration??t.expiration;return{...t,...o?{originalExpiration:o}:{},expiration:n}},hve=(t,e={})=>{let r=e?.logger||console,n;return async()=>{let o;try{o=await t(),o.expiration&&o.expiration.getTime()<Date.now()&&(o=Hj(o,r))}catch(s){if(n)r.warn("Credential renew failed: ",s),o=Hj(n,r);else throw s}return n=o,o}},Jj="/latest/meta-data/iam/security-credentials/",Sve="/latest/api/token",zO="AWS_EC2_METADATA_V1_DISABLED",jj="ec2_metadata_v1_disabled",zj="x-aws-ec2-metadata-token",yve=(t={})=>hve(Eve(t),{logger:t.logger}),Eve=(t={})=>{let e=!1,{logger:r,profile:n}=t,{timeout:o,maxRetries:s}=YO(t),i=async(a,c)=>{if(e||c.headers?.[zj]==null){let m=!1,y=!1,_=await QO({environmentVariableSelector:C=>{let A=C[zO];if(y=!!A&&A!=="false",A===void 0)throw new Ca(`${zO} not set in env, checking config file next.`,{logger:t.logger});return y},configFileSelector:C=>{let A=C[jj];return m=!!A&&A!=="false",m},default:!1},{profile:n})();if(t.ec2MetadataV1Disabled||_){let C=[];throw t.ec2MetadataV1Disabled&&C.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),m&&C.push(`config file profile (${jj})`),y&&C.push(`process environment variable (${zO})`),new KO(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${C.join(", ")}].`)}}let f=(await VO(async()=>{let m;try{m=await Rve(c)}catch(y){throw y.statusCode===401&&(e=!1),y}return m},a)).trim();return VO(async()=>{let m;try{m=await Cve(f,c,t)}catch(y){throw y.statusCode===401&&(e=!1),y}return m},a)};return async()=>{let a=await Yj();if(e)return r?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),i(s,{...a,timeout:o});{let c;try{c=(await _ve({...a,timeout:o})).toString()}catch(u){if(u?.statusCode===400)throw Object.assign(u,{message:"EC2 Metadata token request returned error"});return(u.message==="TimeoutError"||[403,404,405].includes(u.statusCode))&&(e=!0),r?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),i(s,{...a,timeout:o})}return i(s,{...a,headers:{[zj]:c},timeout:o})}}},_ve=async t=>_f({...t,path:Sve,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),Rve=async t=>(await _f({...t,path:Jj})).toString(),Cve=async(t,e,r)=>{let n=JSON.parse((await _f({...e,path:Jj+t})).toString());if(!Vj(n))throw new Ca("Invalid response received from instance metadata service.",{logger:r.logger});return Wj(n)};Zn.DEFAULT_MAX_RETRIES=Qj;Zn.DEFAULT_TIMEOUT=Kj;Zn.ENV_CMDS_AUTH_TOKEN=WO;Zn.ENV_CMDS_FULL_URI=yf;Zn.ENV_CMDS_RELATIVE_URI=ry;Zn.Endpoint=Ef;Zn.fromContainerMetadata=ZTe;Zn.fromInstanceMetadata=yve;Zn.getInstanceMetadataEndpoint=Yj;Zn.httpRequest=_f;Zn.providerConfigFromInit=YO});var zs=st(Cf=>{var{hasOwn:n6}=(j(),F(To)),{streamCollector:bve}=(j(),F(To));Cf.streamCollector=bve;var{buildQueryString:o6,HttpResponse:s6}=(V(),F(wo)),oy=require("node:https"),{Readable:Ave}=require("node:stream"),JO=require("node:http2");function iy(t){let e=t&&typeof t=="object"&&"reason"in t?t.reason:void 0;if(e){if(e instanceof Error){let o=new Error("Request aborted");return o.name="AbortError",o.cause=e,o}let n=new Error(String(e));return n.name="AbortError",n}let r=new Error("Request aborted");return r.name="AbortError",r}var xve=["ECONNRESET","EPIPE","ETIMEDOUT"],i6=t=>{let e={};for(let r in t){if(!n6(t,r))continue;let n=t[r];e[r]=Array.isArray(n)?n.join(","):n}return e},vr={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t)},Xj=1e3,Tve=(t,e,r=0)=>{if(!r)return-1;let n=o=>{let s=vr.setTimeout(()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${r} ms.`),{name:"TimeoutError"}))},r-o),i=a=>{a?.connecting?a.on("connect",()=>{vr.clearTimeout(s)}):vr.clearTimeout(s)};t.socket?i(t.socket):t.on("socket",i)};return r<2e3?(n(0),0):vr.setTimeout(n.bind(null,Xj),Xj)},vve=(t,e,r=0,n,o)=>r?vr.setTimeout(()=>{let s=`@smithy/node-http-handler - [${n?"ERROR":"WARN"}] a request has exceeded the configured ${r} ms requestTimeout.`;if(n){let i=Object.assign(new Error(s),{name:"TimeoutError",code:"ETIMEDOUT"});t.destroy(i),e(i)}else s+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",o?.warn?.(s)},r):-1,Dve=3e3,Ive=(t,{keepAlive:e,keepAliveMsecs:r},n=Dve)=>{if(e!==!0)return-1;let o=()=>{t.socket?t.socket.setKeepAlive(e,r||0):t.on("socket",s=>{s.setKeepAlive(e,r||0)})};return n===0?(o(),0):vr.setTimeout(o,n)},Zj=3e3,wve=(t,e,r=0)=>{let n=o=>{let s=r-o,i=()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${r} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};t.socket?(t.socket.setTimeout(s,i),t.on("close",()=>t.socket?.removeListener("timeout",i))):t.setTimeout(s,i)};return 0<r&&r<6e3?(n(0),0):vr.setTimeout(n.bind(null,r===0?0:Zj),Zj)},e6=6e3;async function a6(t,e,r=e6,n=!1){let o=e.headers,s=o?o.Expect||o.expect:void 0,i=-1,a=!0;!n&&s==="100-continue"&&(a=await Promise.race([new Promise(c=>{i=Number(vr.setTimeout(()=>c(!0),Math.max(e6,r)))}),new Promise(c=>{t.on("continue",()=>{vr.clearTimeout(i),c(!0)}),t.on("response",()=>{vr.clearTimeout(i),c(!1)}),t.on("error",()=>{vr.clearTimeout(i),c(!1)})})])),a&&Pve(t,e.body)}function Pve(t,e){if(e instanceof Ave){e.pipe(t);return}if(e){let r=Buffer.isBuffer(e);if(r||typeof e=="string"){r&&e.byteLength===0?t.end():t.end(e);return}let o=e;if(typeof o=="object"&&o.buffer&&typeof o.byteOffset=="number"&&typeof o.byteLength=="number"){t.end(Buffer.from(o.buffer,o.byteOffset,o.byteLength));return}t.end(Buffer.from(e));return}t.end()}var Ove=0,sy,t6,XO=class t{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){return typeof e?.handle=="function"?e:new t(e)}static checkSocketUsage(e,r,n=console){let{sockets:o,requests:s,maxSockets:i}=e;if(typeof i!="number"||i===1/0||Date.now()-15e3<r)return r;if(o&&s)for(let c in o){if(!n6(o,c))continue;let u=o[c]?.length??0,f=s[c]?.length??0;if(u>=i&&f>=2*i)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${u} and ${f} additional requests are enqueued.
|
|
37
37
|
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
38
|
-
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return r}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(o=>{r(this.resolveDefaultConfig(o))}).catch(n):r(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:r,requestTimeout:n}={}){this.config||(this.config=await this.configProvider);let o=this.config,s=o.logger,i=e.protocol==="https:";return!i&&!this.config.httpAgent&&(this.config.httpAgent=await this.config.httpAgentProvider()),new Promise((a,c)=>{let u,f=-1,m=-1,y=-1,_=-1,C=-1,A=()=>{vr.clearTimeout(f),vr.clearTimeout(m),vr.clearTimeout(y),vr.clearTimeout(_),vr.clearTimeout(C)},x=async ie=>{await u,A(),a(ie)},T=async ie=>{await u,A(),c(ie)};if(r?.aborted){let ie=iy(r);T(ie);return}let I=e.headers,q=I?(I.Expect??I.expect)==="100-continue":!1,H=i?o.httpsAgent:o.httpAgent;q&&!this.externalAgent&&(H=new(i?oy.Agent:sy)({keepAlive:!1,maxSockets:1/0})),f=vr.setTimeout(()=>{this.socketWarningTimestamp=t.checkSocketUsage(H,this.socketWarningTimestamp,s)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2e3)+(o.connectionTimeout??1e3));let me=e.query?o6(e.query):"",et;if(e.username!=null||e.password!=null){let ie=e.username??"",Gt=e.password??"";et=`${ie}:${Gt}`}let ot=e.path;me&&(ot+=`?${me}`),e.fragment&&(ot+=`#${e.fragment}`);let tt=e.hostname??"";tt[0]==="["&&tt.endsWith("]")?tt=e.hostname.slice(1,-1):tt=e.hostname;let pt={headers:e.headers,host:tt,method:e.method,path:ot,port:e.port,agent:H,auth:et},Jr=(i?oy.request:t6)(pt,ie=>{let Gt=new s6({statusCode:ie.statusCode||-1,reason:ie.statusMessage,headers:i6(ie.headers),body:ie});x({response:Gt})});if(Jr.on("error",ie=>{Ave.includes(ie.code)?T(Object.assign(ie,{name:"TimeoutError"})):T(ie)}),r){let ie=()=>{Jr.destroy();let Gt=iy(r);T(Gt)};if(typeof r.addEventListener=="function"){let Gt=r;Gt.addEventListener("abort",ie,{once:!0}),Jr.once("close",()=>Gt.removeEventListener("abort",ie))}else r.onabort=ie}let fn=n??o.requestTimeout;m=xve(Jr,T,o.connectionTimeout),y=Tve(Jr,T,fn,o.throwOnRequestTimeout,s??console),_=Ive(Jr,T,o.socketTimeout);let Xt=pt.agent;typeof Xt=="object"&&"keepAlive"in Xt&&(C=Dve(Jr,{keepAlive:Xt.keepAlive,keepAliveMsecs:Xt.keepAliveMsecs})),u=a6(Jr,e,fn,this.externalAgent).catch(ie=>(A(),c(ie)))})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>e===Symbol.for("logger")?{...n,logger:n.logger??r}:{...n,[e]:r})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:r,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:i,httpsAgent:a,throwOnRequestTimeout:c,logger:u}=e||{},f=!0,m=50;return{connectionTimeout:n,requestTimeout:r,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:c,httpAgentProvider:async()=>{let y=require("node:http"),{Agent:_,request:C}=y.default??y;return t6=C,sy=_,i instanceof sy||typeof i?.destroy=="function"?(this.externalAgent=!0,i):new sy({keepAlive:f,maxSockets:m,...i})},httpsAgent:a instanceof oy.Agent||typeof a?.destroy=="function"?(this.externalAgent=!0,a):new oy.Agent({keepAlive:f,maxSockets:m,...a}),logger:u}}},Ove=new Uint16Array(1),Rf=class{id=Ove[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw new Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(!this.session.destroyed&&(this.refs-=1,this.refs===0&&this.session.unref(),this.refs<0))throw new Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){this.session.closed||this.session.close()}destroy(){this.refs=0,this.session.destroyed||(this.session.setTimeout(0),this.session.destroy())}useCount(){return this.refs}},ZO=class{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map(r=>new Rf(r))}poll(){let e=!1;for(let r of this.sessions){if(r.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||r.useCount()<this.maxConcurrency)return r}if(e)for(let r of this.sessions)r.deref().destroyed&&this.remove(r)}offerLast(e){this.sessions.push(e)}remove(e){let r=this.sessions.indexOf(e);r>-1&&this.sessions.splice(r,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}},e$=class{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(e,r){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!r.isEventStream){let u=o.poll();if(u)return u.retain(),u}let s=new Rf(this.connect(n)),i=s.deref();this.config.maxConcurrency&&i.settings({maxConcurrentStreams:this.config.maxConcurrency},u=>{if(u)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let a=()=>{this.removeFromPoolAndClose(n,s)},c=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};return i.on("goaway",a),i.on("error",c),i.on("frameError",c),i.on("close",c),r.requestTimeout&&i.setTimeout(r.requestTimeout,c),o.offerLast(s),s.retain(),s}release(e,r){r.free()}createIsolatedSession(e,r){let n=this.getUrlString(e),o=new Rf(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let i=()=>{o.destroy()};s.on("error",i),s.on("frameError",i),s.on("close",i);let a=r.requestTimeout??3e5;return s.setTimeout(a,i),o.retain(),o}destroy(){for(let[e,r]of this.connectionPools){for(let n of[...r])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let r of this.connectionPools.values())r.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[r,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[r]={sessions:o}}return e}removeFromPoolAndClose(e,r){this.connectionPools.get(e)?.remove(r),r.close()}removeFromPoolAndCheckedDestroy(e,r){this.connectionPools.get(e)?.remove(r),r.destroy()}getPool(e){if(!this.connectionPools.has(e)){let r=new ZO;this.config.maxConcurrency&&r.setMaxConcurrency(this.config.maxConcurrency),this.connectionPools.set(e,r)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?JO.connect(e):JO.connect(e,this.connectOptions)}},{constants:r6}=JO,t$=class t{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new e$({});static create(e){return typeof e?.handle=="function"?e:new t(e)}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(o=>{r(o||{})}).catch(n):r(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:r,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:u,maxConcurrentStreams:f,nodeHttp2ConnectOptions:m}=this.config;this.connectionManager.setDisableConcurrentStreams(u??!1),f&&this.connectionManager.setMaxConcurrentStreams(f),m&&this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:i}=this.config,a=i||o,c=n??s;return new Promise((u,f)=>{let m=!1,y,_=async ie=>{await y,u(ie)},C=async ie=>{await y,f(ie)};if(r?.aborted){m=!0;let ie=iy(r);C(ie);return}let{hostname:A,method:x,port:T,protocol:I,query:q}=e,H="";if(e.username!=null||e.password!=null){let ie=e.username??"",Gt=e.password??"";H=`${ie}:${Gt}@`}let me=`${I}//${H}${A}${T?`:${T}`:""}`,et={destination:new URL(me)},ot={requestTimeout:this.config?.sessionTimeout,isEventStream:o},tt=a?this.connectionManager.createIsolatedSession(et,ot):this.connectionManager.lease(et,ot),pt=tt.deref(),Yr=ie=>{a&&tt.destroy(),m=!0,C(ie)},Jr=q?o6(q):"",fn=e.path;Jr&&(fn+=`?${Jr}`),e.fragment&&(fn+=`#${e.fragment}`);let Xt=pt.request({...e.headers,[r6.HTTP2_HEADER_PATH]:fn,[r6.HTTP2_HEADER_METHOD]:x});if(c&&Xt.setTimeout(c,()=>{Xt.close();let ie=new Error(`Stream timed out because of no activity for ${c} ms`);ie.name="TimeoutError",Yr(ie)}),r){let ie=()=>{Xt.close();let Gt=iy(r);Yr(Gt)};if(typeof r.addEventListener=="function"){let Gt=r;Gt.addEventListener("abort",ie,{once:!0}),Xt.once("close",()=>Gt.removeEventListener("abort",ie))}else r.onabort=ie}Xt.on("frameError",(ie,Gt,eAe)=>{Yr(new Error(`Frame type id ${ie} in stream id ${eAe} has failed with code ${Gt}.`))}),Xt.on("error",Yr),Xt.on("aborted",()=>{Yr(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${Xt.rstCode}.`))}),Xt.on("response",ie=>{let Gt=new s6({statusCode:ie[":status"]??-1,headers:i6(ie),body:Xt});m=!0,_({response:Gt}),a&&(pt.close(),Xt.on("end",()=>{tt.destroy()}))}),Xt.on("close",()=>{if(a?tt.destroy():this.connectionManager.release(et,tt),!m){let ie=new Error("Unexpected error: http2 request did not get a response");pt.destroyed&&(ie.name="TimeoutError"),Yr(ie)}}),y=a6(Xt,e,c)})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:r}))}httpHandlerConfigs(){return this.config??{}}};Cf.DEFAULT_REQUEST_TIMEOUT=Pve;Cf.NodeHttp2Handler=t$;Cf.NodeHttpHandler=XO});var r$=st(u6=>{var{setCredentialFeature:$ve}=(Ee(),F(kn)),{CredentialsProviderError:kc}=(ye(),F(Br)),{NodeHttpHandler:kve}=zs(),Mve=require("node:fs/promises"),{HttpRequest:Lve}=(V(),F(wo)),{sdkStreamMixin:Nve,parseRfc3339DateTime:Fve}=(j(),F(To)),Bve="169.254.170.2",Uve="169.254.170.23",Gve="[fd00:ec2::23]",qve=(t,e)=>{if(t.protocol!=="https:"&&!(t.hostname===Bve||t.hostname===Uve||t.hostname===Gve)){if(t.hostname.includes("[")){if(t.hostname==="[::1]"||t.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(t.hostname==="localhost")return;let r=t.hostname.split("."),n=o=>{let s=parseInt(o,10);return 0<=s&&s<=255};if(r[0]==="127"&&n(r[1])&&n(r[2])&&n(r[3])&&r.length===4)return}throw new kc(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
38
|
+
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return r}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(o=>{r(this.resolveDefaultConfig(o))}).catch(n):r(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:r,requestTimeout:n}={}){this.config||(this.config=await this.configProvider);let o=this.config,s=o.logger,i=e.protocol==="https:";return!i&&!this.config.httpAgent&&(this.config.httpAgent=await this.config.httpAgentProvider()),new Promise((a,c)=>{let u,f=-1,m=-1,y=-1,_=-1,C=-1,A=()=>{vr.clearTimeout(f),vr.clearTimeout(m),vr.clearTimeout(y),vr.clearTimeout(_),vr.clearTimeout(C)},x=async ie=>{await u,A(),a(ie)},T=async ie=>{await u,A(),c(ie)};if(r?.aborted){let ie=iy(r);T(ie);return}let I=e.headers,q=I?(I.Expect??I.expect)==="100-continue":!1,H=i?o.httpsAgent:o.httpAgent;q&&!this.externalAgent&&(H=new(i?oy.Agent:sy)({keepAlive:!1,maxSockets:1/0})),f=vr.setTimeout(()=>{this.socketWarningTimestamp=t.checkSocketUsage(H,this.socketWarningTimestamp,s)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2e3)+(o.connectionTimeout??1e3));let me=e.query?o6(e.query):"",et;if(e.username!=null||e.password!=null){let ie=e.username??"",Gt=e.password??"";et=`${ie}:${Gt}`}let ot=e.path;me&&(ot+=`?${me}`),e.fragment&&(ot+=`#${e.fragment}`);let tt=e.hostname??"";tt[0]==="["&&tt.endsWith("]")?tt=e.hostname.slice(1,-1):tt=e.hostname;let pt={headers:e.headers,host:tt,method:e.method,path:ot,port:e.port,agent:H,auth:et},Xr=(i?oy.request:t6)(pt,ie=>{let Gt=new s6({statusCode:ie.statusCode||-1,reason:ie.statusMessage,headers:i6(ie.headers),body:ie});x({response:Gt})});if(Xr.on("error",ie=>{xve.includes(ie.code)?T(Object.assign(ie,{name:"TimeoutError"})):T(ie)}),r){let ie=()=>{Xr.destroy();let Gt=iy(r);T(Gt)};if(typeof r.addEventListener=="function"){let Gt=r;Gt.addEventListener("abort",ie,{once:!0}),Xr.once("close",()=>Gt.removeEventListener("abort",ie))}else r.onabort=ie}let mn=n??o.requestTimeout;m=Tve(Xr,T,o.connectionTimeout),y=vve(Xr,T,mn,o.throwOnRequestTimeout,s??console),_=wve(Xr,T,o.socketTimeout);let Xt=pt.agent;typeof Xt=="object"&&"keepAlive"in Xt&&(C=Ive(Xr,{keepAlive:Xt.keepAlive,keepAliveMsecs:Xt.keepAliveMsecs})),u=a6(Xr,e,mn,this.externalAgent).catch(ie=>(A(),c(ie)))})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>e===Symbol.for("logger")?{...n,logger:n.logger??r}:{...n,[e]:r})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:r,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:i,httpsAgent:a,throwOnRequestTimeout:c,logger:u}=e||{},f=!0,m=50;return{connectionTimeout:n,requestTimeout:r,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:c,httpAgentProvider:async()=>{let y=require("node:http"),{Agent:_,request:C}=y.default??y;return t6=C,sy=_,i instanceof sy||typeof i?.destroy=="function"?(this.externalAgent=!0,i):new sy({keepAlive:f,maxSockets:m,...i})},httpsAgent:a instanceof oy.Agent||typeof a?.destroy=="function"?(this.externalAgent=!0,a):new oy.Agent({keepAlive:f,maxSockets:m,...a}),logger:u}}},$ve=new Uint16Array(1),Rf=class{id=$ve[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw new Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(!this.session.destroyed&&(this.refs-=1,this.refs===0&&this.session.unref(),this.refs<0))throw new Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){this.session.closed||this.session.close()}destroy(){this.refs=0,this.session.destroyed||(this.session.setTimeout(0),this.session.destroy())}useCount(){return this.refs}},ZO=class{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map(r=>new Rf(r))}poll(){let e=!1;for(let r of this.sessions){if(r.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||r.useCount()<this.maxConcurrency)return r}if(e)for(let r of this.sessions)r.deref().destroyed&&this.remove(r)}offerLast(e){this.sessions.push(e)}remove(e){let r=this.sessions.indexOf(e);r>-1&&this.sessions.splice(r,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}},e$=class{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(e,r){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!r.isEventStream){let u=o.poll();if(u)return u.retain(),u}let s=new Rf(this.connect(n)),i=s.deref();this.config.maxConcurrency&&i.settings({maxConcurrentStreams:this.config.maxConcurrency},u=>{if(u)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let a=()=>{this.removeFromPoolAndClose(n,s)},c=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};return i.on("goaway",a),i.on("error",c),i.on("frameError",c),i.on("close",c),r.requestTimeout&&i.setTimeout(r.requestTimeout,c),o.offerLast(s),s.retain(),s}release(e,r){r.free()}createIsolatedSession(e,r){let n=this.getUrlString(e),o=new Rf(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let i=()=>{o.destroy()};s.on("error",i),s.on("frameError",i),s.on("close",i);let a=r.requestTimeout??3e5;return s.setTimeout(a,i),o.retain(),o}destroy(){for(let[e,r]of this.connectionPools){for(let n of[...r])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let r of this.connectionPools.values())r.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[r,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[r]={sessions:o}}return e}removeFromPoolAndClose(e,r){this.connectionPools.get(e)?.remove(r),r.close()}removeFromPoolAndCheckedDestroy(e,r){this.connectionPools.get(e)?.remove(r),r.destroy()}getPool(e){if(!this.connectionPools.has(e)){let r=new ZO;this.config.maxConcurrency&&r.setMaxConcurrency(this.config.maxConcurrency),this.connectionPools.set(e,r)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?JO.connect(e):JO.connect(e,this.connectOptions)}},{constants:r6}=JO,t$=class t{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new e$({});static create(e){return typeof e?.handle=="function"?e:new t(e)}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(o=>{r(o||{})}).catch(n):r(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:r,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:u,maxConcurrentStreams:f,nodeHttp2ConnectOptions:m}=this.config;this.connectionManager.setDisableConcurrentStreams(u??!1),f&&this.connectionManager.setMaxConcurrentStreams(f),m&&this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:i}=this.config,a=i||o,c=n??s;return new Promise((u,f)=>{let m=!1,y,_=async ie=>{await y,u(ie)},C=async ie=>{await y,f(ie)};if(r?.aborted){m=!0;let ie=iy(r);C(ie);return}let{hostname:A,method:x,port:T,protocol:I,query:q}=e,H="";if(e.username!=null||e.password!=null){let ie=e.username??"",Gt=e.password??"";H=`${ie}:${Gt}@`}let me=`${I}//${H}${A}${T?`:${T}`:""}`,et={destination:new URL(me)},ot={requestTimeout:this.config?.sessionTimeout,isEventStream:o},tt=a?this.connectionManager.createIsolatedSession(et,ot):this.connectionManager.lease(et,ot),pt=tt.deref(),Jr=ie=>{a&&tt.destroy(),m=!0,C(ie)},Xr=q?o6(q):"",mn=e.path;Xr&&(mn+=`?${Xr}`),e.fragment&&(mn+=`#${e.fragment}`);let Xt=pt.request({...e.headers,[r6.HTTP2_HEADER_PATH]:mn,[r6.HTTP2_HEADER_METHOD]:x});if(c&&Xt.setTimeout(c,()=>{Xt.close();let ie=new Error(`Stream timed out because of no activity for ${c} ms`);ie.name="TimeoutError",Jr(ie)}),r){let ie=()=>{Xt.close();let Gt=iy(r);Jr(Gt)};if(typeof r.addEventListener=="function"){let Gt=r;Gt.addEventListener("abort",ie,{once:!0}),Xt.once("close",()=>Gt.removeEventListener("abort",ie))}else r.onabort=ie}Xt.on("frameError",(ie,Gt,tAe)=>{Jr(new Error(`Frame type id ${ie} in stream id ${tAe} has failed with code ${Gt}.`))}),Xt.on("error",Jr),Xt.on("aborted",()=>{Jr(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${Xt.rstCode}.`))}),Xt.on("response",ie=>{let Gt=new s6({statusCode:ie[":status"]??-1,headers:i6(ie),body:Xt});m=!0,_({response:Gt}),a&&(pt.close(),Xt.on("end",()=>{tt.destroy()}))}),Xt.on("close",()=>{if(a?tt.destroy():this.connectionManager.release(et,tt),!m){let ie=new Error("Unexpected error: http2 request did not get a response");pt.destroyed&&(ie.name="TimeoutError"),Jr(ie)}}),y=a6(Xt,e,c)})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:r}))}httpHandlerConfigs(){return this.config??{}}};Cf.DEFAULT_REQUEST_TIMEOUT=Ove;Cf.NodeHttp2Handler=t$;Cf.NodeHttpHandler=XO});var r$=st(u6=>{var{setCredentialFeature:kve}=(Ee(),F(Mn)),{CredentialsProviderError:kc}=(ye(),F(Br)),{NodeHttpHandler:Mve}=zs(),Lve=require("node:fs/promises"),{HttpRequest:Nve}=(V(),F(wo)),{sdkStreamMixin:Fve,parseRfc3339DateTime:Bve}=(j(),F(To)),Uve="169.254.170.2",Gve="169.254.170.23",qve="[fd00:ec2::23]",Hve=(t,e)=>{if(t.protocol!=="https:"&&!(t.hostname===Uve||t.hostname===Gve||t.hostname===qve)){if(t.hostname.includes("[")){if(t.hostname==="[::1]"||t.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(t.hostname==="localhost")return;let r=t.hostname.split("."),n=o=>{let s=parseInt(o,10);return 0<=s&&s<=255};if(r[0]==="127"&&n(r[1])&&n(r[2])&&n(r[3])&&r.length===4)return}throw new kc(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
39
39
|
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
40
40
|
- ECS container host 169.254.170.2
|
|
41
|
-
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:e})}};function
|
|
42
|
-
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:t.logger});let a=new URL(e);
|
|
43
|
-
`))throw new kc("Authorization token contains invalid \\r\\n sequence.");return t};u6.fromHttp=Jve});function Xve(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function Zve(t){return{schemeId:"smithy.api#noAuth"}}var l6,d6,p6,n$=g(()=>{rr();J();l6=async(t,e,r)=>({operation:Le(e).operation,region:await we(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});d6=t=>{let e=[];return t.operation==="CreateToken"?e.push(Zve(t)):e.push(Xve(t)),e},p6=t=>{let e=js(t);return Object.assign(e,{authSchemePreference:we(t.authSchemePreference??[])})}});var f6,m6,o$=g(()=>{f6=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),m6={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var ba,bf=g(()=>{ba={name:"@aws-sdk/nested-clients",version:"3.997.48",description:"Nested clients for AWS SDK packages.",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",license:"Apache-2.0",author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/sdk-for-javascript/"},repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],sideEffects:!1,main:"./dist-cjs/index.js",module:"./dist-es/index.js",browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},types:"./dist-types/index.d.ts",typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"],"*":["dist-types/ts3.4/submodules/*/index.d.ts"]}},"react-native":{},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/submodules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{types:"./dist-types/submodules/cognito-identity/index.d.ts",module:"./dist-es/submodules/cognito-identity/index.js",node:"./dist-cjs/submodules/cognito-identity/index.js",import:"./dist-es/submodules/cognito-identity/index.js",require:"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{types:"./dist-types/submodules/sso/index.d.ts",module:"./dist-es/submodules/sso/index.js",node:"./dist-cjs/submodules/sso/index.js",import:"./dist-es/submodules/sso/index.js",require:"./dist-cjs/submodules/sso/index.js"}},scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"premove dist-es && tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"premove dist-types && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types",lint:"node ../../scripts/validation/submodules-linter.js",prebuild:"yarn lint",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},dependencies:{"@aws-sdk/core":"^3.978.3","@aws-sdk/signature-v4-multi-region":"^3.996.48","@aws-sdk/types":"^3.974.6","@smithy/core":"^3.35.2","@smithy/fetch-http-handler":"^5.8.0","@smithy/node-http-handler":"^4.12.1","@smithy/types":"^4.19.0",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~7.0.2"},engines:{node:">=20.0.0"}}});var s$,g6=g(()=>{s$=Symbol("@smithy/core/cbor::tagSymbol")});var Af,i$=g(()=>{Af=(t,e)=>{let r=n=>{let o=n;return typeof o=="number"&&(o=o.toString()),o.indexOf(",")>=0&&(o=o.split(",")[0]),o.indexOf(":")>=0&&(o=o.split(":")[0]),o};if(e.__type!==void 0)return r(e.__type)}});function py(t){let e=t.getSchema(),r=e[h6];if(r)return r;let n=[],o=[];for(let[a,c]of t.structIterator())n.push(a),o.push(c);let s=new Array(n.length);for(let a=0;a<n.length;++a)s[a]=tDe(n[a]);let i={memberNames:n,memberSchemas:o,encodedKeys:s};return e[h6]=i,i}function tDe(t){let e;fy?e=Buffer.from(t,"utf-8"):e=new TextEncoder().encode(t);let r=e.length,n;r<24?n=1:r<256?n=2:n=3;let o=new Uint8Array(n+r);return n===1?o[0]=96|r:n===2?(o[0]=120,o[1]=r):(o[0]=121,o[1]=r>>8,o[2]=r&255),o.set(e,n),o}function R6(t){return fy?Buffer.allocUnsafe(t):new Uint8Array(t)}function kl(t,e,r,n){if(e==null){if(e===void 0&&t.isIdempotencyToken()){Vs(xr());return}Ue(1),de[se++]=246;return}if(t.isUnitSchema()){Ue(1),nr(5,0);return}if(typeof e=="object"){if(t.isBlobSchema()&&e instanceof Uint8Array){ay(e);return}if(t.isTimestampSchema()&&e instanceof Date){l$(e);return}if(t.isStructSchema()){nDe(t,e,n);return}if(Array.isArray(e)&&(t.isListSchema()||t.isDocumentSchema())){E6(t,e,t.isDocumentSchema(),n);return}if(t.isMapSchema()){c$(t,e,!1,n);return}if(e instanceof Date){l$(e);return}if(e instanceof Uint8Array){ay(e);return}if(e instanceof Y){A6(e);return}if(e[s$]){let s=e;b6(s.tag,s.value);return}if(t.isDocumentSchema()){Array.isArray(e)?E6(t,e,!0,n):c$(t,e,!0,n);return}if(t.isBigDecimalSchema()){Ml(e);return}c$(t,e,!0,n);return}if(typeof e=="string"){if(t.isBlobSchema()){let s=(n?.base64Decoder??Xe)(e);ay(s);return}Vs(e);return}if(typeof e=="number"){Ue(9),Number.isInteger(e)&&e>=-9007199254740992&&e<=9007199254740991?my(e):S$(e);return}if(typeof e=="boolean"){Ue(1),de[se++]=224|(e?21:20);return}if(typeof e=="bigint"){ly(e);return}Vs(String(e))}function nDe(t,e,r){if(t.isUnionSchema()){let m=!1;for(let[y,_]of t.structIterator()){let C=e[y];if(C!=null){Ue(9),nr(5,1),Vs(y),kl(_,C,t,r),m=!0;break}}if(!m){let{$unknown:y}=e;Array.isArray(y)?(Ue(9),nr(5,1),Vs(y[0]),Ml(y[1])):(Ue(9),nr(5,0))}return}let n=py(t),{memberNames:o,memberSchemas:s,encodedKeys:i}=n,a=o.length,c;a<24?c=1:a<256?c=2:c=3,Ue(c);let u=se;se+=c;let f=0;for(let m=0;m<a;++m){let y=e[o[m]];if(y==null&&!s[m].isIdempotencyToken())continue;let _=i[m];Ue(_.length),de.set(_,se),se+=_.length,kl(s[m],y,t,r),++f}if(typeof e.__type=="string")for(let m in e)W(e,m)&&(o.includes(m)||(Vs(m),Ml(e[m]),++f));c===1?de[u]=160|f:c===2?(de[u]=184,de[u+1]=f):(de[u]=185,de[u+1]=f>>8,de[u+2]=f&255)}function E6(t,e,r,n){let o=!!t.getMergedTraits().sparse,s=t.getValueSchema();if(r||o){let i=[];for(let a=0;a<e.length;++a){let c=e[a];r?c!==void 0&&i.push(c):(c!=null||o)&&i.push(c)}Ue(9),nr(4,i.length);for(let a=0;a<i.length;++a)kl(s,i[a],void 0,n)}else{let i=0;for(let a=0;a<e.length;++a)e[a]!=null&&++i;Ue(9),nr(4,i);for(let a=0;a<e.length;++a)e[a]!=null&&kl(s,e[a],void 0,n)}}function c$(t,e,r,n){let o=!!t.getMergedTraits().sparse,s=t.getValueSchema(),i=[];for(let a in e){if(!W(e,a))continue;let c=e[a];(r?c!==void 0:c!=null||o)&&i.push(a)}Ue(9),nr(5,i.length);for(let a=0;a<i.length;++a){let c=i[a];Vs(c),kl(s,e[c],void 0,n)}}function Ml(t){if(t==null){Ue(1),de[se++]=246;return}if(typeof t=="string"){Vs(t);return}if(typeof t=="number"){Ue(9),Number.isInteger(t)&&t>=-9007199254740992&&t<=9007199254740991?my(t):S$(t);return}if(typeof t=="boolean"){Ue(1),de[se++]=224|(t?21:20);return}if(typeof t=="bigint"){ly(t);return}if(t instanceof Uint8Array){ay(t);return}if(t instanceof Date){l$(t);return}if(t instanceof Y){A6(t);return}if(t[s$]){let e=t;b6(e.tag,e.value);return}if(Array.isArray(t)){Ue(9),nr(4,t.length);for(let e=0;e<t.length;++e)Ml(t[e]);return}if(typeof t=="object"){let e=Object.keys(t);Ue(9),nr(5,e.length);for(let r=0;r<e.length;++r)Vs(e[r]),Ml(t[e[r]]);return}Vs(String(t))}function Ue(t){if(se+t>de.length){let e=de.length*2;for(;e<se+t;)e*=2;let r=R6(e);r.set(de.subarray(0,se)),de=r,Lc=new DataView(r.buffer,r.byteOffset,r.byteLength)}}function nr(t,e){if(e<24)de[se++]=t<<5|e;else if(e<256)de[se++]=t<<5|24,de[se++]=e;else if(e<65536)de[se++]=t<<5|25,de[se++]=e>>8,de[se++]=e&255;else if(e<4294967296)de[se++]=t<<5|26,Lc.setUint32(se,e),se+=4;else{de[se++]=t<<5|27;let r=e/4294967296|0,n=e-r*4294967296|0;Lc.setUint32(se,r),Lc.setUint32(se+4,n),se+=8}}function C6(t,e){let r=Number(e);if(r<4294967296){nr(t,r);return}de[se++]=t<<5|27,Lc.setBigUint64(se,e),se+=8}function Vs(t){let e=t.length;if(e<=23){let r=Pl.get(t);if(r){Ue(r.bytes.length),de.set(r.bytes,se),se+=r.bytes.length,r.epoch=a$;return}let n=se;_6(t,e);let o=se,s=Uint8Array.prototype.slice.call(de,n,o);if(Pl.size>=S6){if(y6)return;let i=0;for(let[a,c]of Pl){if(i>=1024)break;c.epoch!==a$&&(Pl.delete(a),++i)}if(i===0){y6=!0;return}}Pl.size<S6&&Pl.set(t,{epoch:a$,bytes:s});return}_6(t,e)}function _6(t,e){if(fy){let r=e*3;Ue(r+9);let n=Buffer.byteLength(t);nr(3,n),se+=de.write(t,se)}else{let r=e*3;Ue(r+9);let n=se,s=rDe.encodeInto(t,de.subarray(n+9)).written,i;s<24?i=1:s<256?i=2:s<65536?i=3:s<4294967296?i=5:i=9,i<9&&de.copyWithin(n+i,n+9,n+9+s),se=n,nr(3,s),se+=s}}function S$(t){Ue(9),de[se++]=251,Lc.setFloat64(se,t),se+=8}function my(t){Ue(9);let e=t>=0,r=e?0:1,n=e?t:-t-1;nr(r,n)}function ly(t){let e=t>=0,r=e?0:1,n=e?t:-t-BigInt(1);if(n<BigInt("18446744073709551616"))Ue(9),C6(r,n);else{let o=n.toString(2),s=Math.ceil(o.length/8),i=new Uint8Array(s),a=n;for(let c=s-1;c>=0;--c)i[c]=Number(a&BigInt(255)),a>>=BigInt(8);Ue(s+16),de[se++]=e?194:195,nr(2,s),de.set(i,se),se+=s}}function ay(t){Ue(t.length+9),nr(2,t.length),de.set(t,se),se+=t.length}function b6(t,e){Ue(9),typeof t=="bigint"?C6(6,t):nr(6,t),Ml(e)}function A6(t){let e=t.string,r=BigInt(0),n=e.search(/[eE]/);n!==-1&&(r=BigInt(e.slice(n+1)),e=e.slice(0,n));let o=e.indexOf("."),s=o===-1?0:e.length-o-1,i=r-BigInt(s),a=BigInt(e.replace(".",""));Ue(9),de[se++]=196,nr(4,2),Ue(9),i>=-0x20000000000000n&&i<=0x1fffffffffffffn?my(Number(i)):ly(i),ly(a)}function l$(t){Ue(18),nr(6,1);let e=t.getTime()/1e3;Number.isInteger(e)?my(e):S$(e)}var uy,h6,fy,rDe,u$,de,Lc,se,S6,Pl,a$,y6,y$=g(()=>{oe();V();ae();j();g6();uy=class extends Zt{write(e,r){se=0;let n=B.of(e);kl(n,r,void 0,this.serdeContext)}flush(){let e=de.subarray(0,se);return se=0,de=R6(u$),Lc=new DataView(de.buffer,de.byteOffset,de.byteLength),e}},h6=Symbol.for("@smithy/cbor-struct-cache");fy=typeof Buffer<"u",rDe=new TextEncoder,u$=2048,de=fy?Buffer.allocUnsafe(u$):new Uint8Array(u$),Lc=new DataView(de.buffer,de.byteOffset,de.byteLength),se=0,S6=2048,Pl=new Map,a$=0,y6=!1});function Ln(t){if(K>=or)throw new Error("unexpected end of CBOR payload.");let e=(gt[K]&224)>>5;if((gt[K]&31)===31&&e>=2&&e<=5)return cDe(t,e);switch(e){case 0:return fDe();case 1:return mDe();case 2:return Ey();case 3:return Ll();case 4:return oDe(t);case 5:return sDe(t);case 6:return aDe(t);case 7:return hDe();default:throw new Error(`unexpected CBOR major type ${e}.`)}}function oDe(t){let e=yy(),r=t.isListSchema()?t.getValueSchema():t,n=Array(e);for(let o=0;o<e;++o)n[o]=Ln(r);return n}function sDe(t){let e=yy();if(t.isStructSchema())return iDe(t,e,K);let r=t.isMapSchema()?t.getValueSchema():t,n={};for(let o=0;o<e;++o){let s=Ll();n[s]=Ln(r)}return n}function iDe(t,e,r){let n=t.isUnionSchema(),o=py(t),{memberSchemas:s,encodedKeys:i,memberNames:a}=o,c=i.length,u={},f,m,y=0,_=!1,C=0;for(let A=0;A<e;++A){let x=D6(i,c,C);if(x>=0){C=x+1,C>=c&&(C=0);let T=Ln(s[x]);T!=null&&(u[a[x]]=T)}else{let T=Ll(),I=Ln(B.of(15));T==="__type"&&typeof I=="string"?_=!0:(f=T,m=I,++y)}}if(n){let A=!0;for(let x in u)if(W(u,x)){A=!1;break}A&&y===1&&(u.$unknown=[f,m])}else if(_){K=r;let A=B.of(15);for(let x=0;x<e;++x){let T=Ll(),I=Ln(A);T in u||(u[T]=I)}}return u}function aDe(t){let e=Sy(),r=typeof e=="bigint"?Number(e):e;if(r===1){let s=B.of(15),i=Ln(s);return na(i)}if(r===2||r===3){let s=Ey(),i=BigInt(0);for(let a=0;a<s.length;++a)i=i<<BigInt(8)|BigInt(s[a]);return r===3?-i-BigInt(1):i}if(r===4){let s=B.of(15),i=Ln(s),[a,c]=i,u=c<0?-1:1,f=BigInt(u)*BigInt(c),m=String(f),y=c<0?"-":"",_;if(typeof a=="number"&&Math.abs(a)<=2**28){let A=a,x="0".repeat(Math.abs(A)+1)+m;_=A===0?x:x.slice(0,x.length+A)+"."+x.slice(A),_=_.replace(/^0+/g,""),_===""&&(_="0"),_[0]==="."&&(_="0"+_),_=y+_}else{let A=BigInt(a);if(m.length===1)_=y+m+"e"+String(A);else{let x=A+BigInt(m.length-1);_=y+m[0]+"."+m.slice(1)+"e"+String(x)}}return Wh(_)}let n=B.of(15),o=Ln(n);return{tag:I6(e),value:o}}function cDe(t,e){switch(e){case 3:return uDe();case 2:return lDe();case 4:return dDe(t);case 5:return pDe(t);default:throw new Error(`unexpected indefinite length for major ${e}.`)}}function uDe(){K+=1;let t=[],e=0;for(;K<or;){if(gt[K]===255){K+=1;let n=new Uint8Array(e),o=0;for(let s=0;s<t.length;++s)n.set(t[s],o),o+=t[s].length;return v6?Buffer.from(n.buffer,n.byteOffset,n.byteLength).toString("utf-8"):_$.decode(n)}let r=Ey();t.push(r),e+=r.length}throw new Error("expected break marker.")}function lDe(){K+=1;let t=[],e=0;for(;K<or;){if(gt[K]===255){K+=1;let n=new Uint8Array(e),o=0;for(let s=0;s<t.length;++s)n.set(t[s],o),o+=t[s].length;return n}let r=Ey();t.push(r),e+=r.length}throw new Error("expected break marker.")}function dDe(t){K+=1;let e=t.isListSchema()?t.getValueSchema():t,r=[];for(;K<or;){if(gt[K]===255)return K+=1,r;r.push(Ln(e))}throw new Error("expected break marker.")}function pDe(t){if(K+=1,t.isStructSchema()){let n=py(t),{memberSchemas:o,encodedKeys:s,memberNames:i}=n,a=s.length,c=t.isUnionSchema(),u={},f,m,y=0,_=0;for(;K<or;){if(gt[K]===255){if(K+=1,c){let A=!0;for(let x in u)if(W(u,x)){A=!1;break}A&&y===1&&(u.$unknown=[f,m])}return u}let C=D6(s,a,_);if(C>=0){_=C+1,_>=a&&(_=0);let A=Ln(o[C]);A!=null&&(u[i[C]]=A)}else{let A=Ll(),x=Ln(B.of(15));A!=="__type"&&(f=A,m=x,++y)}}throw new Error("expected break marker.")}let e=t.isMapSchema()?t.getValueSchema():t,r={};for(;K<or;){if(gt[K]===255)return K+=1,r;let n=Ll();r[n]=Ln(e)}throw new Error("expected break marker.")}function D6(t,e,r){let n=t[r];if(K+n.length<=or&&T6(K,n))return K+=n.length,r;for(let o=0;o<e;++o){if(o===r)continue;let s=t[o];if(K+s.length<=or&&T6(K,s))return K+=s.length,o}return-1}function T6(t,e){let r=e.length;if(gt[t]!==e[0])return!1;for(let n=1;n<r;++n)if(gt[t+n]!==e[n])return!1;return!0}function Sy(){let t=gt[K]&31;if(t<24)return K+=1,t;switch(t){case 24:return or-K<2&&vi(1),K+=2,gt[K-1];case 25:return or-K<3&&vi(2),K+=3,Aa.getUint16(K-2);case 26:return or-K<5&&vi(4),K+=5,Aa.getUint32(K-4);case 27:{or-K<9&&vi(8),K+=9;let e=Aa.getUint32(K-8);return e<2097152?e*4294967296+Aa.getUint32(K-4):Aa.getBigUint64(K-8)}default:throw new Error(`unexpected minor value ${t}.`)}}function yy(){let t=Sy();return typeof t=="bigint"?Number(t):t}function fDe(){let t=Sy();return I6(t)}function mDe(){let t=Sy();return typeof t=="bigint"?BigInt(-1)-t:-1-t}function Ey(){let t=yy();or-K<t&&vi(t);let e=K;return K+=t,gt.subarray(e,e+t)}function Ll(){let t=yy();or-K<t&&vi(t);let e=K;return K+=t,t<24?gDe(e,t):R$?gt.toString("utf-8",e,e+t):_$.decode(gt.subarray(e,e+t))}function gDe(t,e){let r=e;for(let i=0;i<e;++i)r=r*31+gt[t+i]|0;let n=r>>>0&C$-1,o=x6[n];if(o!==void 0&&o.length===e){let i=!0;for(let a=0;a<e;++a)if(o.charCodeAt(a)!==gt[t+a]){i=!1;break}if(i)return E$[n]=vf,o}let s=R$?gt.toString("utf-8",t,t+e):_$.decode(gt.subarray(t,t+e));return E$[n]!==vf&&(x6[n]=s,E$[n]=vf),s}function hDe(){let t=K,e=gt[t]&31;switch(e){case 21:return K=t+1,!0;case 20:return K=t+1,!1;case 22:return K=t+1,null;case 23:return K=t+1,null;case 25:return or-t<3&&vi(2),K=t+3,SDe(gt[t+1],gt[t+2]);case 26:return or-t<5&&vi(4),K=t+5,Aa.getFloat32(t+1);case 27:return or-t<9&&vi(8),K=t+9,Aa.getFloat64(t+1);default:throw new Error(`unexpected minor value ${e} for major 7.`)}}function SDe(t,e){let r=t>>7,n=(t&124)>>2,o=(t&3)<<8|e,s=r===0?1:-1;return n===0?o===0?0:s*(Math.pow(2,-14)*(o/1024)):n===31?o===0?s*(1/0):NaN:s*(Math.pow(2,n-15)*(1+o/1024))}function I6(t){if(typeof t=="number")return t;let e=Number(t);return Number.MIN_SAFE_INTEGER<=e&&e<=Number.MAX_SAFE_INTEGER?e:t}function vi(t){throw new Error(`CBOR: length ${t} greater than remaining buffer length.`)}function gy(t,e){if(t.isTimestampSchema()){if(typeof e=="number")return na(e);if(typeof e=="object"&&e!==null&&e.tag===1&&"value"in e)return na(e.value)}if(t.isBlobSchema()||typeof e>"u"||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="bigint"||typeof e=="symbol"||typeof e!="object"||e===null||"byteLength"in e||e instanceof Date||e instanceof Y||t.isDocumentSchema())return e;if(t.isListSchema()){let n=t.getValueSchema(),o=[];for(let s of e)o.push(gy(n,s));return o}let r={};if(t.isMapSchema()){let n=t.getValueSchema();for(let o in e)W(e,o)&&(r[o]=gy(n,e[o]))}else if(t.isStructSchema()){let n=t.isUnionSchema(),o;if(n){o=new Set;for(let s in e)W(e,s)&&s!=="__type"&&o.add(s)}for(let[s,i]of t.structIterator())n&&o.delete(s),e[s]!=null&&(r[s]=gy(i,e[s]));if(n&&o?.size===1){let s=!0;for(let i in r)if(W(r,i)){s=!1;break}if(s){let i=o.values().next().value;r.$unknown=[i,e[i]]}}else if(typeof e.__type=="string")for(let s in e)W(e,s)&&(s in r||(r[s]=e[s]))}return r}var hy,v6,_$,gt,R$,Aa,K,or,C$,x6,E$,vf,w6=g(()=>{oe();V();ae();j();y$();hy=class extends Zt{read(e,r){return gt=r,R$=v6&&r instanceof Buffer,Aa=new DataView(r.buffer,r.byteOffset,r.byteLength),K=0,or=r.length,vf=vf+1&65535,Ln(B.of(e))}readValue(e,r){return gy(B.of(e),r)}},v6=typeof Buffer<"u",_$=new TextDecoder,gt=new Uint8Array(0),R$=!1,Aa=new DataView(new ArrayBuffer(0)),K=0,or=0,C$=2048,x6=new Array(C$),E$=new Uint16Array(C$),vf=0});var _y,P6=g(()=>{V();y$();w6();_y=class extends Zt{createSerializer(){let e=new uy;return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new hy;return e.setSerdeContext(this.serdeContext),e}}});var Df,O6=g(()=>{V();ae();oe();P6();i$();Df=class extends Qn{codec=new _y;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);Object.assign(o.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()}),mn(e.input)==="unit"?(delete o.body,delete o.headers["content-type"]):(o.body||(this.serializer.write(15,{}),o.body=this.serializer.flush()),o.body instanceof Uint8Array&&(o.headers["content-length"]=String(o.body.byteLength)));let{service:s,operation:i}=Le(n),a=`/service/${s}/operation/${i}`;return o.path.endsWith("/")?o.path+=a.slice(1):o.path+=a,o}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,o,s){let i=Af(n,o)??"Unknown",a=["*"],{defaultNamespace:c}=this.options;a.unshift(c);let[u,f]=i.includes("#")?i.split("#"):[void 0,i];u&&a.unshift(u);let m={$metadata:s,$fault:n.statusCode<500?"client":"server"},y=[this.compositeErrorRegistry];u&&y.push(Fe.for(u)),y.push(Fe.for(c));let[_,C,A]=this.resolveError(f,a,y);if(A==="native"||A==="synthetic"){o.Message&&(o.message=o.Message);let H=A==="synthetic"?new C({name:f}):new Error(f);throw Object.assign(H,m,o)}let x=B.of(_),T=o.message??o.Message??"Unknown",I=new C({}),q={};for(let[H,me]of x.structIterator())q[H]=this.deserializer.readValue(me,o[H]);throw Object.assign(I,m,{$fault:x.getMergedTraits().error,message:T},q)}getDefaultContentType(){return"application/cbor"}}});var $6=g(()=>{i$();O6()});var Zn,Nl=g(()=>{J();ae();Zn=class{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,r){let n=r.getMemberSchemas(),o=Object.values(n).find(s=>!!s.getMergedTraits().httpPayload);if(o){let s=o.getMergedTraits().mediaType;return s||(o.isStringSchema()?"text/plain":o.isBlobSchema()?"application/octet-stream":e)}else if(!r.isUnitSchema()&&Object.values(n).find(i=>{let{httpQuery:a,httpQueryParams:c,httpHeader:u,httpLabel:f,httpPrefixHeaders:m}=i.getMergedTraits();return!a&&!c&&!u&&!f&&m===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,r,n,o,s,i){let a=e;e.includes("#")&&([,a]=e.split("#"));let c={$metadata:s,$fault:n.statusCode<500?"client":"server"};if(!this.errorRegistry)throw new Error("@aws-sdk/core/protocols - error handler not initialized.");try{return{errorSchema:i?.(this.errorRegistry,a)??this.errorRegistry.getSchema(e),errorMetadata:c}}catch{o.message=o.message??o.Message??"UnknownError";let f=this.errorRegistry,m=f.getBaseException();if(m){let C=f.getErrorCtor(m)??Error;throw this.decorateServiceException(Object.assign(new C({name:a}),c),o)}let y=o,_=y?.message??y?.Message??y?.Error?.Message??y?.Error?.message;throw this.decorateServiceException(Object.assign(new Error(_),{name:a},c),o)}}compose(e,r,n){let o=n;r.includes("#")&&([o]=r.split("#"));let s=Fe.for(o),i=Fe.for("smithy.ts.sdk.synthetic."+n);e.copyFrom(s),e.copyFrom(i),this.errorRegistry=e}decorateServiceException(e,r={}){if(this.queryCompat){let n=e.Message??r.Message,o=yc(e,r);n&&(o.message=n);let s=o.Error??{};s.Type=o.Error?.Type,s.Code=o.Error?.Code,s.Message=o.Error?.message??o.Error?.Message??n,o.Error=s;let i=o.$metadata.requestId;return i&&(o.RequestId=i),o}return yc(e,r)}setQueryCompatError(e,r){let n=r.headers?.["x-amzn-query-error"];if(e!==void 0&&n!=null){let[o,s]=n.split(";"),i=Object.keys(e),a={Code:o,Type:s};e.Code=o,e.Type=s;for(let c=0;c<i.length;c++){let u=i[c];a[u==="message"?"Message":u]=e[u]}delete a.__type,e.Error=a}}queryCompatOutput(e,r){e.Error&&(r.Error=e.Error),e.Type&&(r.Type=e.Type),e.Code&&(r.Code=e.Code)}findQueryCompatibleError(e,r){try{return e.getSchema(r)}catch{return e.find(o=>B.of(o).getMergedTraits().awsQueryError?.[0]===r)}}}});var Ry,k6=g(()=>{$6();ae();Nl();Ry=class extends Df{awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:r,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:r}),this.awsQueryCompatible=!!n,this.mixin=new Zn(this.awsQueryCompatible)}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);return this.awsQueryCompatible&&(o.headers["x-amzn-query-mode"]="true"),o}async handleError(e,r,n,o,s){this.awsQueryCompatible&&this.mixin.setQueryCompatError(o,n);let i=(()=>{let C=n.headers["x-amzn-query-error"];return C&&this.awsQueryCompatible?C.split(";")[0]:Af(n,o)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace);let{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,o,s,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),u=B.of(a),f=o.message??o.Message??"UnknownError",m=this.compositeErrorRegistry.getErrorCtor(a)??Error,y=new m({}),_={};for(let[C,A]of u.structIterator())o[C]!=null&&(_[C]=this.deserializer.readValue(A,o[C]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(o,_),this.mixin.decorateServiceException(Object.assign(y,c,{$fault:u.getMergedTraits().error,message:f},_),o)}}});var ht,Bo=g(()=>{ht=class{serdeContext;setSerdeContext(e){this.serdeContext=e}}});var xa,Cy=g(()=>{xa=class{from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),o=new Set(n);o.delete("__type"),this.keys=o}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function by(){if(If===void 0)try{if(typeof Buffer!="function")If=!1;else{let t=JSON.parse(Buffer.from([123,125]));If=t!==null&&typeof t=="object"}}catch{If=!1}return If}var If,b$=g(()=>{});function Fl(t,e,r){if(r?.source){let n=r.source;if(typeof e=="number")return e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER?EDe(n,e)?e:new Y(n,"bigDecimal"):yDe(n)?new Y(n,"bigDecimal"):/[eE]/.test(n)?_De(n):BigInt(n)}return e}function yDe(t){let e=t.indexOf(".");if(e===-1)return!1;let r=t.search(/[eE]/);if(r===-1)return!0;let n=r-e-1;return parseInt(t.slice(r+1),10)<n}function EDe(t,e){if(t===String(e)||Object.is(e,-0))return!0;if(/[eE]/.test(t))return A$(t)===A$(String(e));let r=t.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),n=String(e);return r===n?!0:/[eE]/.test(n)?r===A$(n):!1}function A$(t){let e=t.startsWith("-"),r=e?t.slice(1):t,n=r.search(/[eE]/),o;if(n===-1)o=r;else{let s=parseInt(r.slice(n+1),10),i=r.slice(0,n),a=i.indexOf("."),c,u;a===-1?(c=i,u=i.length):(c=i.slice(0,a)+i.slice(a+1),u=a),c=c.replace(/0+$/,"")||"0";let f=u+s;c==="0"?o="0":f<=0?o="0."+"0".repeat(-f)+c:f>=c.length?o=c+"0".repeat(f-c.length):o=c.slice(0,f)+"."+c.slice(f)}return o.includes(".")&&(o=o.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(e?"-":"")+o}function _De(t){let e=t.search(/[eE]/),r=parseInt(t.slice(e+1),10),n=t.startsWith("-"),o=t.slice(n?1:0,e),s=o.indexOf("."),i,a;if(s===-1)i=o,a=r;else{i=o.slice(0,s)+o.slice(s+1);let u=o.length-s-1;a=r-u}i=i.replace(/0+$/,"")||"0";let c=BigInt(i)*10n**BigInt(a+(o.replace(".","").length-i.length));return n?-c:c}var Ay=g(()=>{j()});function Bl(t){let e=B.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(x$ in r)return r[x$];let n=xy(e,new Set);return r[x$]=n,n}return xy(e,new Set)}function xy(t,e){let r=t.getSchema();if(e.has(r))return!1;if(e.add(r),t.isBigIntegerSchema()||t.isBigDecimalSchema())return!0;if(t.isStructSchema()){for(let[,n]of t.structIterator())if(xy(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(xy(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var x$,Ty=g(()=>{ae();x$=Symbol.for("@aws-sdk/reviver")});var vy,T$=g(()=>{V();j();vy=(t,e)=>At(t,e).then(r=>(e?.utf8Encoder??ze)(r))});async function Nc(t,e,r){let n;if(by()&&typeof t?.[Symbol.asyncIterator]=="function"){let s=await At(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(s)?n=s:n=Buffer.from(s.buffer,s.byteOffset,s.byteLength))}if(n||(n=await vy(t,e)),n.length===0)return{};let o=r&&Bl(r)?Fl:void 0;try{return JSON.parse(n,o)}catch(s){throw s?.name==="SyntaxError"&&Object.defineProperty(s,"$responseBodyText",{value:typeof n=="string"?n:n.toString("utf8")}),s}}var L6,M6,v$,Dy,Iy,N6,Ul=g(()=>{V();T$();b$();Ay();Ty();L6=async(t,e)=>{let r=await Nc(t,e);return r.message=r.message??r.Message,r},M6=(t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),v$=t=>{let e=t;return typeof e=="number"&&(e=e.toString()),e.indexOf(",")>=0&&(e=e.split(",")[0]),e.indexOf(":")>=0&&(e=e.split(":")[0]),e.indexOf("#")>=0&&(e=e.split("#")[1]),e},Dy=(t,e)=>N6(t,e,["header","code","type"]),Iy=(t,e,r=!1)=>N6(t,e,r?["code","header","type"]:["type","code","header"]),N6=({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let o=M6(t??{},"x-amzn-errortype");if(o!==void 0)return v$(t[o]);break;case"code":let s=M6(e??{},"code");if(s&&e[s]!==void 0)return v$(e[s]);break;case"type":if(e?.__type!==void 0)return v$(e.__type);break}}});function eo(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var wf=g(()=>{});var Gl,D$=g(()=>{V();ae();j();Bo();Cy();b$();Ay();Ty();Ul();wf();Gl=class extends ht{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=Bl(e)?Fl:void 0,o;if(typeof r=="string"){if(r.length===0)return{};o=JSON.parse(r,n)}else if(r instanceof Uint8Array&&by()){if(r.byteLength===0)return{};let s=Buffer.isBuffer(r)?r:Buffer.from(r.buffer,r.byteOffset,r.byteLength);o=JSON.parse(s,n)}else o=await Nc(r,this.serdeContext,e);return this._read(e,o)}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=B.of(e);if(n){if(o.isStructSchema())return this._readStruct(o,r);if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema();if(this.needsTransform(i))for(let a=0;a<r.length;++a)r[a]=this._read(i,r[a]);return r}if(o.isMapSchema()){let i=o.getValueSchema(),a=r;if(this.needsTransform(i))for(let c in a)c==="__proto__"&&eo(a),a[c]=this._read(i,a[c]);return a}}if(o.isBlobSchema()&&typeof r=="string")return Xe(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?qe.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ze(o,this.settings)){case 5:return Ss(r);case 6:return gn(r);case 7:return ys(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof Y)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new Y(i.string,i.type):new Y(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema()&&n)if(Array.isArray(r))for(let i=0;i<r.length;++i){let a=r[i];a instanceof Y||(r[i]=this._read(o,a))}else{let i=r;for(let a in i){a==="__proto__"&&eo(i);let c=i[a];c instanceof Y||(i[a]=this._read(o,c))}}return r}_readStruct(e,r){let n=e.isUnionSchema(),o={},s,i=typeof r.__type=="string",{jsonName:a}=this.settings;a&&i&&(s={});let c;n&&(c=new xa(r,o));for(let[u,f]of e.structIterator()){let m=u;a&&(m=f.getMergedTraits().jsonName??m,i&&(s[m]=u)),n&&c.mark(m),r[m]!=null&&(o[u]=this._read(f,r[m]))}if(n)c.writeUnknown();else if(i)for(let u in r){let f=r[u],m=a?s[u]??u:u;m in o||(o[m]=f)}return o}needsTransform(e){return!!(e.isBlobSchema()||e.isTimestampSchema()||e.isBigIntegerSchema()||e.isBigDecimalSchema()||e.isDocumentSchema()||e.isStructSchema()||e.isListSchema()||e.isMapSchema()||e.isStringSchema()&&e.getMergedTraits().mediaType)}}});var wy,F6,B6=g(()=>{j();wy=class t extends Uint8Array{string=null;static allocUnsafe(e){if(typeof Buffer=="function"){let r=Buffer.allocUnsafe(e);return new t(r.buffer,r.byteOffset,r.byteLength)}return new t(e)}toString(){return this.s()}valueOf(){return this.s()}includes(e,r){return typeof e=="string"?this.s().includes(e,r):Uint8Array.prototype.includes.call(this,e,r)}indexOf(e,r){return typeof e=="string"?this.s().indexOf(e,r):Uint8Array.prototype.indexOf.call(this,e,r)}lastIndexOf(e,r){if(typeof e=="string")return this.s().lastIndexOf(e,r);let n=Uint8Array.prototype.lastIndexOf;return r!==void 0?n.call(this,e,r):n.call(this,e)}startsWith(e,r){return this.s().startsWith(e,r)}endsWith(e,r){return this.s().endsWith(e,r)}match(e){return this.s().match(e)}replace(e,r){return this.s().replace(e,r)}search(e){return this.s().search(e)}split(e,r){return this.s().split(e,r)}substring(e,r){return this.s().substring(e,r)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(e){return this.s().charAt(e)}charCodeAt(e){return this.s().charCodeAt(e)}padStart(e,r){return this.s().padStart(e,r)}padEnd(e,r){return this.s().padEnd(e,r)}repeat(e){return this.s().repeat(e)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){let e=Date.now();e>F6+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),F6=e),this.string=ze(this)}return this.string}},F6=0});function I$(t){return wy.allocUnsafe(t)}var Py,U6,G6,RDe,CDe,ql,Oy,$y,q6,bDe,ADe,xDe,Ws,H6,Hl,w$=g(()=>{V();ae();j();Bo();B6();Py=new TextEncoder,U6=123,G6=125,RDe=91,CDe=93,ql=34,Oy=58,$y=44,q6=92,bDe=new Uint8Array([116,114,117,101]),ADe=new Uint8Array([102,97,108,115,101]),xDe=new Uint8Array([110,117,108,108]),Ws=new Array(128).fill(null);Ws[8]="b";Ws[9]="t";Ws[10]="n";Ws[12]="f";Ws[13]="r";Ws[34]='"';Ws[92]="\\";for(let t=0;t<32;t++)Ws[t]===null&&(Ws[t]="u00"+t.toString(16).padStart(2,"0"));H6=2048;Hl=class t extends ht{settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=I$(H6)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=B.of(e),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.rootSchema,r,void 0)}writeDiscriminatedDocument(e,r){this.i=0,this.rootSchema=B.of(e);let n=this.rootSchema;if(n.isStructSchema()&&r!=null&&typeof r=="object"){this.writeValue(n,r,void 0);let o=`"__type":"${n.getName(!0)??"Unknown"}",`,s=o.length;this.ensure(s),this.json.copyWithin(1+s,1,this.i),Py.encodeInto(o,this.json.subarray(1)),this.i+=s}else this.writeValue(n,r,void 0)}flush(){this.rootSchema=void 0;let e=this.i;this.i=0;let r=this.rawValue;if(this.rawValue=void 0,e===0)return r;let n=this.json.subarray(0,e);return this.json=I$(H6),n}ensure(e){let{i:r,json:n}=this;if(r+e>n.length){let o=n.length*2;for(;o<r+e;)o*=2;let s=I$(o);s.set(this.json),this.json=s}}writeAscii(e){let r=e.length;this.ensure(r);let{i:n,json:o}=this;for(let s=0;s<r;++s)o[n]=e.charCodeAt(s),n+=1;this.i=n}writeAsciiQuoted(e){let r=e.length;this.ensure(r+4);let{json:n,i:o}=this;n[o++]=ql;for(let s=0;s<r;++s)n[o++]=e.charCodeAt(s);n[o++]=ql,this.i=o}writeJsonString(e){this.ensure(e.length*3+2),this.json[this.i++]=ql;let r=e.length;for(let n=0;n<r;++n){let o=e.charCodeAt(n);if(o>34&&o<92)this.json[this.i++]=o;else if(o<128){let s=Ws[o];if(s!==null){this.ensure(s.length+1),this.json[this.i++]=q6;for(let i=0;i<s.length;i++)this.json[this.i++]=s.charCodeAt(i)}else this.json[this.i++]=o}else if(o>=55296&&o<=56319){let s=n+1<r?e.charCodeAt(n+1):0;if(s>=56320&&s<=57343){this.ensure(4);let{written:i}=Py.encodeInto(e.substring(n,n+2),this.json.subarray(this.i));this.i+=i,++n}else this.ensure(6),this.writeUnicodeEscape(o)}else if(o>=56320&&o<=57343)this.ensure(6),this.writeUnicodeEscape(o);else{let{i:s,json:i}=this;o<2048?(i[s++]=192|o>>6,i[s++]=128|o&63):(i[s++]=224|o>>12,i[s++]=128|o>>6&63,i[s++]=128|o&63),this.i=s}}this.json[this.i++]=ql}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=q6,r[n++]=117;let o=e.toString(16).padStart(4,"0");for(let s=0;s<4;++s)r[n++]=o.charCodeAt(s);this.i=n}static B64=(()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(64);for(let n=0;n<64;++n)r[n]=e.charCodeAt(n);return r})();writeBase64(e){let r=Math.ceil(e.length/3)*4;this.ensure(r+2);let n=this.json,o=t.B64,s=this.i;n[s++]=ql;let i=e.length,a=i%3,c=i-a;for(let u=0;u<c;u+=3){let f=e[u],m=e[u+1],y=e[u+2];n[s++]=o[f>>2],n[s++]=o[(f&3)<<4|m>>4],n[s++]=o[(m&15)<<2|y>>6],n[s++]=o[y&63]}if(a===2){let u=e[c],f=e[c+1];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4|f>>4],n[s++]=o[(f&15)<<2],n[s++]=61}else if(a===1){let u=e[c];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4],n[s++]=61,n[s++]=61}n[s++]=ql,this.i=s}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&B.of(e).isIdempotencyToken()){this.writeAsciiQuoted(xr());return}return}this.ensure(4),this.json.set(xDe,this.i),this.i+=4;return}let o=B.of(e),s=typeof r=="object";if(o.isStringSchema()){let i=o.getMergedTraits().mediaType;if(i&&(i==="application/json"||i.endsWith("+json"))){this.writeJsonString(qe.from(r).toString());return}}if(s){if(o.isStructSchema()){this.writeStruct(o,r);return}if(Array.isArray(r)&&(o.isListSchema()||o.isDocumentSchema())){this.writeList(o,r,o.isDocumentSchema());return}if(o.isMapSchema()){this.writeMap(o,r,!1);return}if(r instanceof Uint8Array&&(o.isBlobSchema()||o.isDocumentSchema())){this.writeBase64(r);return}if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema())){this.writeTimestamp(o,r);return}if(r instanceof Y){this.writeAscii(r.string);return}if(o.isDocumentSchema()){Array.isArray(r)?this.writeList(o,r,!0):this.writeMap(o,r,!0);return}let i=JSON.stringify(r);this.writeAscii(i);return}if(typeof r=="string"){if(o.isBlobSchema()){let i=(this.serdeContext?.base64Encoder??Ie)(r);this.writeAsciiQuoted(i);return}this.writeJsonString(r);return}if(typeof r=="number"){if(Math.abs(r)===1/0||Number.isNaN(r)){this.writeAsciiQuoted(String(r));return}let i=String(r);this.writeAscii(i);return}if(typeof r=="boolean"){this.ensure(5);let{i,json:a}=this;r?(a.set(bDe,i),i+=4):(a.set(ADe,i),i+=5),this.i=i;return}if(typeof r=="bigint"){this.writeAscii(r.toString());return}this.writeAscii(String(r))}writeStruct(e,r){this.ensure(2),this.json[this.i++]=U6;let n=!1,o=typeof r.__type=="string",s;o&&(s=new Set);for(let[i,a]of e.structIterator()){let c=r[i];if(c==null&&!a.isIdempotencyToken())continue;n&&(this.ensure(1),this.json[this.i++]=$y),n=!0;let u=this.settings.jsonName?a.getMergedTraits().jsonName??i:i;s&&(s.add(i),s.add(u)),this.writeAsciiQuoted(u),this.json[this.i++]=Oy,this.writeValue(a,c,e)}if(!n&&e.isUnionSchema()){let{$unknown:i}=r;if(Array.isArray(i)){let[a,c]=i;this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=Oy,this.writeValue(15,c,e)}}else if(o)for(let i in r){if(s.has(i))continue;s.add(i);let a=r[i];n&&(this.ensure(1),this.json[this.i++]=$y),n=!0,this.writeAsciiQuoted(i),this.ensure(1),this.json[this.i++]=Oy,this.writeValue(15,a,void 0)}this.ensure(1),this.json[this.i++]=G6}writeList(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a=!1;for(let u=0;u<r.length;++u){let f=r[u];if(Number.isNaN(f)||f===1/0||f===-1/0||f==null&&!o){a=!0;break}}let c;if(!a)c=JSON.stringify(r);else{let u=[];for(let f=0;f<r.length;++f){let m=r[f];m==null&&!o||(Number.isNaN(m)||m===1/0||m===-1/0?u.push(String(m)):u.push(m))}c=JSON.stringify(u)}this.ensure(c.length*3),this.i+=Py.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=RDe;let i=!1;for(let a=0;a<r.length;++a){let c=r[a];(n?c===void 0:c==null&&!o)||(i&&(this.ensure(1),this.json[this.i++]=$y),this.writeValue(s,c,void 0),i=!0)}this.ensure(1),this.json[this.i++]=CDe}writeMap(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a;for(let u in r){let f=r[u];Number.isNaN(f)||f===1/0||f===-1/0?((a??={})[u]=f,r[u]=String(f)):f===null&&!o&&((a??={})[u]=null,r[u]=void 0)}let c=JSON.stringify(r);a&&Object.assign(r,a),this.ensure(c.length*3),this.i+=Py.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=U6;let i=!0;for(let a in r){let c=r[a];(n?c===void 0:c==null&&!o)||(i||(this.ensure(1),this.json[this.i++]=$y),i=!1,this.writeJsonString(a),this.ensure(1),this.json[this.i++]=Oy,this.writeValue(s,c,void 0))}this.ensure(1),this.json[this.i++]=G6}writeTimestamp(e,r){switch(Ze(e,this.settings)){case 5:{let o=r.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(o);return}case 6:{this.writeAsciiQuoted(br(r));return}case 7:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}default:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}}}}});var Ta,ky=g(()=>{Bo();D$();w$();Ta=class extends ht{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Hl(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Gl(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var va,My=g(()=>{V();ae();Nl();ky();Ul();va=class extends Qn{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:r}),this.serviceTarget=n,this.codec=s??new Ta({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!o,this.mixin=new Zn(this.awsQueryCompatible)}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);return o.path.endsWith("/")||(o.path+="/"),o.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,o.headers["x-amz-target"]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(o.headers["x-amzn-query-mode"]="true"),(mn(e.input)==="unit"||!o.body)&&(o.body="{}"),o}getPayloadCodec(){return this.codec}async handleError(e,r,n,o,s){let{awsQueryCompatible:i}=this;i&&this.mixin.setQueryCompatError(o,n);let a=Iy(n,o,i)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,o,s,i?this.mixin.findQueryCompatibleError:void 0),f=B.of(c),m=o.message??o.Message??"UnknownError",y=this.compositeErrorRegistry.getErrorCtor(c)??Error,_=new y({}),C={},A=this.codec.createDeserializer();for(let[x,T]of f.structIterator())o[x]!=null&&(C[x]=A.readObject(T,o[x]));throw i&&this.mixin.queryCompatOutput(o,C),this.mixin.decorateServiceException(Object.assign(_,u,{$fault:f.getMergedTraits().error,message:m},C),o)}}});var Ly,j6=g(()=>{My();Ly=class extends va{constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}});var Ny,z6=g(()=>{My();Ny=class extends va{constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}});var Ks,V6=g(()=>{V();ae();Nl();ky();Ul();Ks=class extends la{serializer;deserializer;codec;mixin=new Zn;constructor({defaultNamespace:e,errorTypeRegistries:r,jsonCodec:n}){super({defaultNamespace:e,errorTypeRegistries:r});let o={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=n??new Ta(o),this.serializer=new ma(this.codec.createSerializer(),o),this.deserializer=new fa(this.codec.createDeserializer(),o)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n),s=B.of(e.input);if(!o.headers["content-type"]){let i=this.mixin.resolveRestContentType(this.getDefaultContentType(),s);i&&(o.headers["content-type"]=i)}return o.body==null&&o.headers["content-type"]===this.getDefaultContentType()&&(o.body="{}"),o}async deserializeResponse(e,r,n){let o=await super.deserializeResponse(e,r,n),s=B.of(e.output);for(let[i,a]of s.structIterator())a.getMemberTraits().httpPayload&&!(i in o)&&(o[i]=null);return o}async handleError(e,r,n,o,s){let i=Dy(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace);let{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,o,s),u=B.of(a),f=o.message??o.Message??"UnknownError",m=this.compositeErrorRegistry.getErrorCtor(a)??Error,y=new m({});await this.deserializeHttpMessage(a,r,n,o);let _={},C=this.codec.createDeserializer();for(let[A,x]of u.structIterator()){let T=x.getMergedTraits().jsonName??A;_[A]=C.readObject(x,o[T])}throw this.mixin.decorateServiceException(Object.assign(y,c,{$fault:u.getMergedTraits().error,message:f},_),o)}getDefaultContentType(){return"application/json"}}});var jl,P$=g(()=>{V();ae();j();j();Bo();Cy();Ay();Ty();Ul();wf();jl=class extends ht{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=Bl(e)?Fl:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await Nc(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=B.of(e);if(n){if(o.isStructSchema()){let i=r,a=o.isUnionSchema(),c={},u,{jsonName:f}=this.settings;f&&(u={});let m;a&&(m=new xa(i,c));for(let[y,_]of o.structIterator()){let C=y;f&&(C=_.getMergedTraits().jsonName??C,u[C]=y),a&&m.mark(C),i[C]!=null&&(c[y]=this._read(_,i[C]))}if(a)m.writeUnknown();else if(typeof i.__type=="string")for(let y in i){let _=i[y],C=f?u[y]??y:y;C in c||(c[C]=_)}return c}if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema(),a=[];for(let c of r)a.push(this._read(i,c));return a}if(o.isMapSchema()){let i=o.getValueSchema(),a={};for(let c in r)c==="__proto__"&&eo(a),a[c]=this._read(i,r[c]);return a}}if(o.isBlobSchema()&&typeof r=="string")return Xe(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?qe.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ze(o,this.settings)){case 5:return Ss(r);case 6:return gn(r);case 7:return ys(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof Y)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new Y(i.string,i.type):new Y(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema())if(n){let i=Array.isArray(r)?[]:{};for(let a in r){a==="__proto__"&&eo(i);let c=r[a];c instanceof Y?i[a]=c:i[a]=this._read(o,c)}return i}else return structuredClone(r);return r}}});var W6,Fy,K6=g(()=>{j();W6="\u039D",Fy=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,r)=>{if(r instanceof Y){let n=`${W6+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),o=`${W6+"b"+this.counter++}_`+n;return this.values.set(`"${o}"`,n),o}return r}}replaceInJson(e){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return e;for(let[r,n]of this.values)e=e.replace(r,n);return e}}});var zl,O$=g(()=>{V();ae();j();Bo();K6();wf();zl=class extends ht{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=B.of(e),this.buffer=this._write(this.rootSchema,r)}flush(){let{rootSchema:e,useReplacer:r}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!r)return JSON.stringify(this.buffer);let n=new Fy;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,r){this.write(e,r),typeof this.buffer=="object"&&(this.buffer.__type=B.of(e).getName(!0))}_write(e,r,n){let o=r!==null&&typeof r=="object",s=B.of(e);if(o){if(s.isStructSchema()){let i=r,a={},{jsonName:c}=this.settings,u;c&&(u={});let f=0;for(let[m,y]of s.structIterator()){let _=this._write(y,i[m],s);if(_!==void 0){let C=m;c&&(C=y.getMergedTraits().jsonName??m,u[m]=C),a[C]=_,f++}}if(s.isUnionSchema()&&f===0){let{$unknown:m}=i;if(Array.isArray(m)){let[y,_]=m;y==="__proto__"&&eo(a),a[y]=this._write(15,_)}}else if(typeof i.__type=="string")for(let m in i){let y=i[m],_=c?u[m]??m:m;_ in a||(a[_]=this._write(15,y))}return a}if(Array.isArray(r)&&s.isListSchema()){let i=s.getValueSchema(),a=[],c=!!s.getMergedTraits().sparse;for(let u of r)(c||u!=null)&&a.push(this._write(i,u));return a}if(s.isMapSchema()){let i=s.getValueSchema(),a={},c=!!s.getMergedTraits().sparse;for(let u in r){let f=r[u];(c||f!=null)&&(u==="__proto__"&&eo(a),a[u]=this._write(i,f))}return a}if(r instanceof Uint8Array&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??Ie)(r);if(r instanceof Date&&(s.isTimestampSchema()||s.isDocumentSchema()))switch(Ze(s,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return br(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof Y&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(s.isStringSchema()){if(typeof r>"u"&&s.isIdempotencyToken())return xr();let i=s.getMergedTraits().mediaType;return r!=null&&i&&(i==="application/json"||i.endsWith("+json"))?qe.from(r):r}if(typeof r=="number")return Math.abs(r)===1/0||isNaN(r)?String(r):r;if(typeof r=="string"&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??Ie)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),s.isDocumentSchema())if(o){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??Ie)(r);let i=Array.isArray(r)?[]:{};for(let a in r){let c=r[a];a==="__proto__"&&eo(i),c instanceof Y?(this.useReplacer=!0,i[a]=c):i[a]=this._write(s,c)}return i}else return structuredClone(r);return r}}}});var By,Q6=g(()=>{Bo();P$();O$();By=class extends ht{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new zl(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new jl(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var qy=st(Gy=>{var TDe=/[&<>"]/g,vDe={"&":"&","<":"<",">":">",'"':"""};function DDe(t){return t.replace(TDe,e=>vDe[e])}var IDe=/[&"'<>\r\n\u0085\u2028]/g,wDe={"&":"&",'"':""","'":"'","<":"<",">":">","\r":"
","\n":"
","\x85":"…","\u2028":"
"};function PDe(t){return t.replace(IDe,e=>wDe[e])}var Uy=class{value;constructor(e){this.value=e}toString(){return PDe(""+this.value)}},k$=class t{name;children;attributes={};static of(e,r,n){let o=new t(e);return r!==void 0&&o.addChildNode(new Uy(r)),n!==void 0&&o.withName(n),o}constructor(e,r=[]){this.name=e,this.children=r}withName(e){return this.name=e,this}addAttribute(e,r){return this.attributes[e]=r,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,r){return r!=null&&(this.attributes[e]=r),this}cc(e,r,n=r){if(e[r]!=null){let o=t.of(r,e[r]).withName(n);this.c(o)}}l(e,r,n,o){e[r]!=null&&o().map(i=>{i.withName(n),this.c(i)})}lc(e,r,n,o){if(e[r]!=null){let s=o(),i=new t(n);s.map(a=>{i.c(a)}),this.c(i)}}toString(){let e=!!this.children.length,r=`<${this.name}`,n=this.attributes;for(let o of Object.keys(n)){let s=n[o];s!=null&&(r+=` ${o}="${DDe(""+s)}"`)}return r+=e?`>${this.children.map(o=>o.toString()).join("")}</${this.name}>`:"/>"}};function $$(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}function ODe(t){return new M$(t).parse()}var M$=class t{x;i=0;z;constructor(e){this.x=e,this.x=e.replace(/\r\n?/g,`
|
|
41
|
+
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:e})}};function jve(t){return new Nve({protocol:t.protocol,hostname:t.hostname,port:Number(t.port),path:t.pathname,query:Array.from(t.searchParams.entries()).reduce((e,[r,n])=>(e[r]=n,e),{}),fragment:t.hash})}async function zve(t,e){let n=await Fve(t.body).transformToString();if(t.statusCode===200){let o=JSON.parse(n);if(typeof o.AccessKeyId!="string"||typeof o.SecretAccessKey!="string"||typeof o.Token!="string"||typeof o.Expiration!="string")throw new kc("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:e});return{accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.Token,expiration:Bve(o.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){let o={};try{o=JSON.parse(n)}catch{}throw Object.assign(new kc(`Server responded with status: ${t.statusCode}`,{logger:e}),{Code:o.Code,Message:o.Message})}throw new kc(`Server responded with status: ${t.statusCode}`,{logger:e})}var Vve=(t,e,r)=>async()=>{for(let n=0;n<e;++n)try{return await t()}catch{await new Promise(s=>setTimeout(s,r))}return await t()},Wve="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",Kve="http://169.254.170.2",Qve="AWS_CONTAINER_CREDENTIALS_FULL_URI",Yve="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",Jve="AWS_CONTAINER_AUTHORIZATION_TOKEN",Xve=(t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let e,r=t.awsContainerCredentialsRelativeUri??process.env[Wve],n=t.awsContainerCredentialsFullUri??process.env[Qve],o=t.awsContainerAuthorizationToken??process.env[Jve],s=t.awsContainerAuthorizationTokenFile??process.env[Yve],i=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?.warn?console.warn:t.logger.warn.bind(t.logger);if(r&&n&&(i("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),i("awsContainerCredentialsRelativeUri will take precedence.")),o&&s&&(i("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),i("awsContainerAuthorizationTokenFile will take precedence.")),r)e=`${Kve}${r}`;else if(n)e=n;else throw new kc(`No HTTP credential provider host provided.
|
|
42
|
+
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:t.logger});let a=new URL(e);Hve(a,t.logger);let c=Mve.create({connectionTimeout:t.timeout??1e3}),u=t.timeout??1e3,f=Vve(async()=>{let m=jve(a);s?m.headers.Authorization=c6((await Lve.readFile(s)).toString()):o&&(m.headers.Authorization=c6(o));try{let y=await c.handle(m,{requestTimeout:u});return zve(y.response).then(_=>kve(_,"CREDENTIALS_HTTP","z"))}catch(y){throw new kc(String(y),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3);return async()=>{try{return await f()}finally{c.destroy?.()}}},c6=t=>{if(t.includes(`\r
|
|
43
|
+
`))throw new kc("Authorization token contains invalid \\r\\n sequence.");return t};u6.fromHttp=Xve});function Zve(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function eDe(t){return{schemeId:"smithy.api#noAuth"}}var l6,d6,p6,n$=g(()=>{rr();J();l6=async(t,e,r)=>({operation:Le(e).operation,region:await we(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});d6=t=>{let e=[];return t.operation==="CreateToken"?e.push(eDe(t)):e.push(Zve(t)),e},p6=t=>{let e=js(t);return Object.assign(e,{authSchemePreference:we(t.authSchemePreference??[])})}});var f6,m6,o$=g(()=>{f6=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),m6={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var ba,bf=g(()=>{ba={name:"@aws-sdk/nested-clients",version:"3.997.48",description:"Nested clients for AWS SDK packages.",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",license:"Apache-2.0",author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/sdk-for-javascript/"},repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],sideEffects:!1,main:"./dist-cjs/index.js",module:"./dist-es/index.js",browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},types:"./dist-types/index.d.ts",typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"],"*":["dist-types/ts3.4/submodules/*/index.d.ts"]}},"react-native":{},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/submodules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{types:"./dist-types/submodules/cognito-identity/index.d.ts",module:"./dist-es/submodules/cognito-identity/index.js",node:"./dist-cjs/submodules/cognito-identity/index.js",import:"./dist-es/submodules/cognito-identity/index.js",require:"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{types:"./dist-types/submodules/sso/index.d.ts",module:"./dist-es/submodules/sso/index.js",node:"./dist-cjs/submodules/sso/index.js",import:"./dist-es/submodules/sso/index.js",require:"./dist-cjs/submodules/sso/index.js"}},scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"premove dist-es && tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"premove dist-types && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types",lint:"node ../../scripts/validation/submodules-linter.js",prebuild:"yarn lint",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},dependencies:{"@aws-sdk/core":"^3.978.3","@aws-sdk/signature-v4-multi-region":"^3.996.48","@aws-sdk/types":"^3.974.6","@smithy/core":"^3.35.2","@smithy/fetch-http-handler":"^5.8.0","@smithy/node-http-handler":"^4.12.1","@smithy/types":"^4.19.0",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~7.0.2"},engines:{node:">=20.0.0"}}});var s$,g6=g(()=>{s$=Symbol("@smithy/core/cbor::tagSymbol")});var Af,i$=g(()=>{Af=(t,e)=>{let r=n=>{let o=n;return typeof o=="number"&&(o=o.toString()),o.indexOf(",")>=0&&(o=o.split(",")[0]),o.indexOf(":")>=0&&(o=o.split(":")[0]),o};if(e.__type!==void 0)return r(e.__type)}});function py(t){let e=t.getSchema(),r=e[h6];if(r)return r;let n=[],o=[];for(let[a,c]of t.structIterator())n.push(a),o.push(c);let s=new Array(n.length);for(let a=0;a<n.length;++a)s[a]=rDe(n[a]);let i={memberNames:n,memberSchemas:o,encodedKeys:s};return e[h6]=i,i}function rDe(t){let e;fy?e=Buffer.from(t,"utf-8"):e=new TextEncoder().encode(t);let r=e.length,n;r<24?n=1:r<256?n=2:n=3;let o=new Uint8Array(n+r);return n===1?o[0]=96|r:n===2?(o[0]=120,o[1]=r):(o[0]=121,o[1]=r>>8,o[2]=r&255),o.set(e,n),o}function R6(t){return fy?Buffer.allocUnsafe(t):new Uint8Array(t)}function kl(t,e,r,n){if(e==null){if(e===void 0&&t.isIdempotencyToken()){Vs(xr());return}Ue(1),de[se++]=246;return}if(t.isUnitSchema()){Ue(1),nr(5,0);return}if(typeof e=="object"){if(t.isBlobSchema()&&e instanceof Uint8Array){ay(e);return}if(t.isTimestampSchema()&&e instanceof Date){l$(e);return}if(t.isStructSchema()){oDe(t,e,n);return}if(Array.isArray(e)&&(t.isListSchema()||t.isDocumentSchema())){E6(t,e,t.isDocumentSchema(),n);return}if(t.isMapSchema()){c$(t,e,!1,n);return}if(e instanceof Date){l$(e);return}if(e instanceof Uint8Array){ay(e);return}if(e instanceof Y){A6(e);return}if(e[s$]){let s=e;b6(s.tag,s.value);return}if(t.isDocumentSchema()){Array.isArray(e)?E6(t,e,!0,n):c$(t,e,!0,n);return}if(t.isBigDecimalSchema()){Ml(e);return}c$(t,e,!0,n);return}if(typeof e=="string"){if(t.isBlobSchema()){let s=(n?.base64Decoder??Xe)(e);ay(s);return}Vs(e);return}if(typeof e=="number"){Ue(9),Number.isInteger(e)&&e>=-9007199254740992&&e<=9007199254740991?my(e):S$(e);return}if(typeof e=="boolean"){Ue(1),de[se++]=224|(e?21:20);return}if(typeof e=="bigint"){ly(e);return}Vs(String(e))}function oDe(t,e,r){if(t.isUnionSchema()){let m=!1;for(let[y,_]of t.structIterator()){let C=e[y];if(C!=null){Ue(9),nr(5,1),Vs(y),kl(_,C,t,r),m=!0;break}}if(!m){let{$unknown:y}=e;Array.isArray(y)?(Ue(9),nr(5,1),Vs(y[0]),Ml(y[1])):(Ue(9),nr(5,0))}return}let n=py(t),{memberNames:o,memberSchemas:s,encodedKeys:i}=n,a=o.length,c;a<24?c=1:a<256?c=2:c=3,Ue(c);let u=se;se+=c;let f=0;for(let m=0;m<a;++m){let y=e[o[m]];if(y==null&&!s[m].isIdempotencyToken())continue;let _=i[m];Ue(_.length),de.set(_,se),se+=_.length,kl(s[m],y,t,r),++f}if(typeof e.__type=="string")for(let m in e)W(e,m)&&(o.includes(m)||(Vs(m),Ml(e[m]),++f));c===1?de[u]=160|f:c===2?(de[u]=184,de[u+1]=f):(de[u]=185,de[u+1]=f>>8,de[u+2]=f&255)}function E6(t,e,r,n){let o=!!t.getMergedTraits().sparse,s=t.getValueSchema();if(r||o){let i=[];for(let a=0;a<e.length;++a){let c=e[a];r?c!==void 0&&i.push(c):(c!=null||o)&&i.push(c)}Ue(9),nr(4,i.length);for(let a=0;a<i.length;++a)kl(s,i[a],void 0,n)}else{let i=0;for(let a=0;a<e.length;++a)e[a]!=null&&++i;Ue(9),nr(4,i);for(let a=0;a<e.length;++a)e[a]!=null&&kl(s,e[a],void 0,n)}}function c$(t,e,r,n){let o=!!t.getMergedTraits().sparse,s=t.getValueSchema(),i=[];for(let a in e){if(!W(e,a))continue;let c=e[a];(r?c!==void 0:c!=null||o)&&i.push(a)}Ue(9),nr(5,i.length);for(let a=0;a<i.length;++a){let c=i[a];Vs(c),kl(s,e[c],void 0,n)}}function Ml(t){if(t==null){Ue(1),de[se++]=246;return}if(typeof t=="string"){Vs(t);return}if(typeof t=="number"){Ue(9),Number.isInteger(t)&&t>=-9007199254740992&&t<=9007199254740991?my(t):S$(t);return}if(typeof t=="boolean"){Ue(1),de[se++]=224|(t?21:20);return}if(typeof t=="bigint"){ly(t);return}if(t instanceof Uint8Array){ay(t);return}if(t instanceof Date){l$(t);return}if(t instanceof Y){A6(t);return}if(t[s$]){let e=t;b6(e.tag,e.value);return}if(Array.isArray(t)){Ue(9),nr(4,t.length);for(let e=0;e<t.length;++e)Ml(t[e]);return}if(typeof t=="object"){let e=Object.keys(t);Ue(9),nr(5,e.length);for(let r=0;r<e.length;++r)Vs(e[r]),Ml(t[e[r]]);return}Vs(String(t))}function Ue(t){if(se+t>de.length){let e=de.length*2;for(;e<se+t;)e*=2;let r=R6(e);r.set(de.subarray(0,se)),de=r,Lc=new DataView(r.buffer,r.byteOffset,r.byteLength)}}function nr(t,e){if(e<24)de[se++]=t<<5|e;else if(e<256)de[se++]=t<<5|24,de[se++]=e;else if(e<65536)de[se++]=t<<5|25,de[se++]=e>>8,de[se++]=e&255;else if(e<4294967296)de[se++]=t<<5|26,Lc.setUint32(se,e),se+=4;else{de[se++]=t<<5|27;let r=e/4294967296|0,n=e-r*4294967296|0;Lc.setUint32(se,r),Lc.setUint32(se+4,n),se+=8}}function C6(t,e){let r=Number(e);if(r<4294967296){nr(t,r);return}de[se++]=t<<5|27,Lc.setBigUint64(se,e),se+=8}function Vs(t){let e=t.length;if(e<=23){let r=Pl.get(t);if(r){Ue(r.bytes.length),de.set(r.bytes,se),se+=r.bytes.length,r.epoch=a$;return}let n=se;_6(t,e);let o=se,s=Uint8Array.prototype.slice.call(de,n,o);if(Pl.size>=S6){if(y6)return;let i=0;for(let[a,c]of Pl){if(i>=1024)break;c.epoch!==a$&&(Pl.delete(a),++i)}if(i===0){y6=!0;return}}Pl.size<S6&&Pl.set(t,{epoch:a$,bytes:s});return}_6(t,e)}function _6(t,e){if(fy){let r=e*3;Ue(r+9);let n=Buffer.byteLength(t);nr(3,n),se+=de.write(t,se)}else{let r=e*3;Ue(r+9);let n=se,s=nDe.encodeInto(t,de.subarray(n+9)).written,i;s<24?i=1:s<256?i=2:s<65536?i=3:s<4294967296?i=5:i=9,i<9&&de.copyWithin(n+i,n+9,n+9+s),se=n,nr(3,s),se+=s}}function S$(t){Ue(9),de[se++]=251,Lc.setFloat64(se,t),se+=8}function my(t){Ue(9);let e=t>=0,r=e?0:1,n=e?t:-t-1;nr(r,n)}function ly(t){let e=t>=0,r=e?0:1,n=e?t:-t-BigInt(1);if(n<BigInt("18446744073709551616"))Ue(9),C6(r,n);else{let o=n.toString(2),s=Math.ceil(o.length/8),i=new Uint8Array(s),a=n;for(let c=s-1;c>=0;--c)i[c]=Number(a&BigInt(255)),a>>=BigInt(8);Ue(s+16),de[se++]=e?194:195,nr(2,s),de.set(i,se),se+=s}}function ay(t){Ue(t.length+9),nr(2,t.length),de.set(t,se),se+=t.length}function b6(t,e){Ue(9),typeof t=="bigint"?C6(6,t):nr(6,t),Ml(e)}function A6(t){let e=t.string,r=BigInt(0),n=e.search(/[eE]/);n!==-1&&(r=BigInt(e.slice(n+1)),e=e.slice(0,n));let o=e.indexOf("."),s=o===-1?0:e.length-o-1,i=r-BigInt(s),a=BigInt(e.replace(".",""));Ue(9),de[se++]=196,nr(4,2),Ue(9),i>=-0x20000000000000n&&i<=0x1fffffffffffffn?my(Number(i)):ly(i),ly(a)}function l$(t){Ue(18),nr(6,1);let e=t.getTime()/1e3;Number.isInteger(e)?my(e):S$(e)}var uy,h6,fy,nDe,u$,de,Lc,se,S6,Pl,a$,y6,y$=g(()=>{oe();V();ae();j();g6();uy=class extends Zt{write(e,r){se=0;let n=B.of(e);kl(n,r,void 0,this.serdeContext)}flush(){let e=de.subarray(0,se);return se=0,de=R6(u$),Lc=new DataView(de.buffer,de.byteOffset,de.byteLength),e}},h6=Symbol.for("@smithy/cbor-struct-cache");fy=typeof Buffer<"u",nDe=new TextEncoder,u$=2048,de=fy?Buffer.allocUnsafe(u$):new Uint8Array(u$),Lc=new DataView(de.buffer,de.byteOffset,de.byteLength),se=0,S6=2048,Pl=new Map,a$=0,y6=!1});function Nn(t){if(K>=or)throw new Error("unexpected end of CBOR payload.");let e=(gt[K]&224)>>5;if((gt[K]&31)===31&&e>=2&&e<=5)return uDe(t,e);switch(e){case 0:return mDe();case 1:return gDe();case 2:return Ey();case 3:return Ll();case 4:return sDe(t);case 5:return iDe(t);case 6:return cDe(t);case 7:return SDe();default:throw new Error(`unexpected CBOR major type ${e}.`)}}function sDe(t){let e=yy(),r=t.isListSchema()?t.getValueSchema():t,n=Array(e);for(let o=0;o<e;++o)n[o]=Nn(r);return n}function iDe(t){let e=yy();if(t.isStructSchema())return aDe(t,e,K);let r=t.isMapSchema()?t.getValueSchema():t,n={};for(let o=0;o<e;++o){let s=Ll();n[s]=Nn(r)}return n}function aDe(t,e,r){let n=t.isUnionSchema(),o=py(t),{memberSchemas:s,encodedKeys:i,memberNames:a}=o,c=i.length,u={},f,m,y=0,_=!1,C=0;for(let A=0;A<e;++A){let x=D6(i,c,C);if(x>=0){C=x+1,C>=c&&(C=0);let T=Nn(s[x]);T!=null&&(u[a[x]]=T)}else{let T=Ll(),I=Nn(B.of(15));T==="__type"&&typeof I=="string"?_=!0:(f=T,m=I,++y)}}if(n){let A=!0;for(let x in u)if(W(u,x)){A=!1;break}A&&y===1&&(u.$unknown=[f,m])}else if(_){K=r;let A=B.of(15);for(let x=0;x<e;++x){let T=Ll(),I=Nn(A);T in u||(u[T]=I)}}return u}function cDe(t){let e=Sy(),r=typeof e=="bigint"?Number(e):e;if(r===1){let s=B.of(15),i=Nn(s);return na(i)}if(r===2||r===3){let s=Ey(),i=BigInt(0);for(let a=0;a<s.length;++a)i=i<<BigInt(8)|BigInt(s[a]);return r===3?-i-BigInt(1):i}if(r===4){let s=B.of(15),i=Nn(s),[a,c]=i,u=c<0?-1:1,f=BigInt(u)*BigInt(c),m=String(f),y=c<0?"-":"",_;if(typeof a=="number"&&Math.abs(a)<=2**28){let A=a,x="0".repeat(Math.abs(A)+1)+m;_=A===0?x:x.slice(0,x.length+A)+"."+x.slice(A),_=_.replace(/^0+/g,""),_===""&&(_="0"),_[0]==="."&&(_="0"+_),_=y+_}else{let A=BigInt(a);if(m.length===1)_=y+m+"e"+String(A);else{let x=A+BigInt(m.length-1);_=y+m[0]+"."+m.slice(1)+"e"+String(x)}}return Wh(_)}let n=B.of(15),o=Nn(n);return{tag:I6(e),value:o}}function uDe(t,e){switch(e){case 3:return lDe();case 2:return dDe();case 4:return pDe(t);case 5:return fDe(t);default:throw new Error(`unexpected indefinite length for major ${e}.`)}}function lDe(){K+=1;let t=[],e=0;for(;K<or;){if(gt[K]===255){K+=1;let n=new Uint8Array(e),o=0;for(let s=0;s<t.length;++s)n.set(t[s],o),o+=t[s].length;return v6?Buffer.from(n.buffer,n.byteOffset,n.byteLength).toString("utf-8"):_$.decode(n)}let r=Ey();t.push(r),e+=r.length}throw new Error("expected break marker.")}function dDe(){K+=1;let t=[],e=0;for(;K<or;){if(gt[K]===255){K+=1;let n=new Uint8Array(e),o=0;for(let s=0;s<t.length;++s)n.set(t[s],o),o+=t[s].length;return n}let r=Ey();t.push(r),e+=r.length}throw new Error("expected break marker.")}function pDe(t){K+=1;let e=t.isListSchema()?t.getValueSchema():t,r=[];for(;K<or;){if(gt[K]===255)return K+=1,r;r.push(Nn(e))}throw new Error("expected break marker.")}function fDe(t){if(K+=1,t.isStructSchema()){let n=py(t),{memberSchemas:o,encodedKeys:s,memberNames:i}=n,a=s.length,c=t.isUnionSchema(),u={},f,m,y=0,_=0;for(;K<or;){if(gt[K]===255){if(K+=1,c){let A=!0;for(let x in u)if(W(u,x)){A=!1;break}A&&y===1&&(u.$unknown=[f,m])}return u}let C=D6(s,a,_);if(C>=0){_=C+1,_>=a&&(_=0);let A=Nn(o[C]);A!=null&&(u[i[C]]=A)}else{let A=Ll(),x=Nn(B.of(15));A!=="__type"&&(f=A,m=x,++y)}}throw new Error("expected break marker.")}let e=t.isMapSchema()?t.getValueSchema():t,r={};for(;K<or;){if(gt[K]===255)return K+=1,r;let n=Ll();r[n]=Nn(e)}throw new Error("expected break marker.")}function D6(t,e,r){let n=t[r];if(K+n.length<=or&&T6(K,n))return K+=n.length,r;for(let o=0;o<e;++o){if(o===r)continue;let s=t[o];if(K+s.length<=or&&T6(K,s))return K+=s.length,o}return-1}function T6(t,e){let r=e.length;if(gt[t]!==e[0])return!1;for(let n=1;n<r;++n)if(gt[t+n]!==e[n])return!1;return!0}function Sy(){let t=gt[K]&31;if(t<24)return K+=1,t;switch(t){case 24:return or-K<2&&vi(1),K+=2,gt[K-1];case 25:return or-K<3&&vi(2),K+=3,Aa.getUint16(K-2);case 26:return or-K<5&&vi(4),K+=5,Aa.getUint32(K-4);case 27:{or-K<9&&vi(8),K+=9;let e=Aa.getUint32(K-8);return e<2097152?e*4294967296+Aa.getUint32(K-4):Aa.getBigUint64(K-8)}default:throw new Error(`unexpected minor value ${t}.`)}}function yy(){let t=Sy();return typeof t=="bigint"?Number(t):t}function mDe(){let t=Sy();return I6(t)}function gDe(){let t=Sy();return typeof t=="bigint"?BigInt(-1)-t:-1-t}function Ey(){let t=yy();or-K<t&&vi(t);let e=K;return K+=t,gt.subarray(e,e+t)}function Ll(){let t=yy();or-K<t&&vi(t);let e=K;return K+=t,t<24?hDe(e,t):R$?gt.toString("utf-8",e,e+t):_$.decode(gt.subarray(e,e+t))}function hDe(t,e){let r=e;for(let i=0;i<e;++i)r=r*31+gt[t+i]|0;let n=r>>>0&C$-1,o=x6[n];if(o!==void 0&&o.length===e){let i=!0;for(let a=0;a<e;++a)if(o.charCodeAt(a)!==gt[t+a]){i=!1;break}if(i)return E$[n]=vf,o}let s=R$?gt.toString("utf-8",t,t+e):_$.decode(gt.subarray(t,t+e));return E$[n]!==vf&&(x6[n]=s,E$[n]=vf),s}function SDe(){let t=K,e=gt[t]&31;switch(e){case 21:return K=t+1,!0;case 20:return K=t+1,!1;case 22:return K=t+1,null;case 23:return K=t+1,null;case 25:return or-t<3&&vi(2),K=t+3,yDe(gt[t+1],gt[t+2]);case 26:return or-t<5&&vi(4),K=t+5,Aa.getFloat32(t+1);case 27:return or-t<9&&vi(8),K=t+9,Aa.getFloat64(t+1);default:throw new Error(`unexpected minor value ${e} for major 7.`)}}function yDe(t,e){let r=t>>7,n=(t&124)>>2,o=(t&3)<<8|e,s=r===0?1:-1;return n===0?o===0?0:s*(Math.pow(2,-14)*(o/1024)):n===31?o===0?s*(1/0):NaN:s*(Math.pow(2,n-15)*(1+o/1024))}function I6(t){if(typeof t=="number")return t;let e=Number(t);return Number.MIN_SAFE_INTEGER<=e&&e<=Number.MAX_SAFE_INTEGER?e:t}function vi(t){throw new Error(`CBOR: length ${t} greater than remaining buffer length.`)}function gy(t,e){if(t.isTimestampSchema()){if(typeof e=="number")return na(e);if(typeof e=="object"&&e!==null&&e.tag===1&&"value"in e)return na(e.value)}if(t.isBlobSchema()||typeof e>"u"||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="bigint"||typeof e=="symbol"||typeof e!="object"||e===null||"byteLength"in e||e instanceof Date||e instanceof Y||t.isDocumentSchema())return e;if(t.isListSchema()){let n=t.getValueSchema(),o=[];for(let s of e)o.push(gy(n,s));return o}let r={};if(t.isMapSchema()){let n=t.getValueSchema();for(let o in e)W(e,o)&&(r[o]=gy(n,e[o]))}else if(t.isStructSchema()){let n=t.isUnionSchema(),o;if(n){o=new Set;for(let s in e)W(e,s)&&s!=="__type"&&o.add(s)}for(let[s,i]of t.structIterator())n&&o.delete(s),e[s]!=null&&(r[s]=gy(i,e[s]));if(n&&o?.size===1){let s=!0;for(let i in r)if(W(r,i)){s=!1;break}if(s){let i=o.values().next().value;r.$unknown=[i,e[i]]}}else if(typeof e.__type=="string")for(let s in e)W(e,s)&&(s in r||(r[s]=e[s]))}return r}var hy,v6,_$,gt,R$,Aa,K,or,C$,x6,E$,vf,w6=g(()=>{oe();V();ae();j();y$();hy=class extends Zt{read(e,r){return gt=r,R$=v6&&r instanceof Buffer,Aa=new DataView(r.buffer,r.byteOffset,r.byteLength),K=0,or=r.length,vf=vf+1&65535,Nn(B.of(e))}readValue(e,r){return gy(B.of(e),r)}},v6=typeof Buffer<"u",_$=new TextDecoder,gt=new Uint8Array(0),R$=!1,Aa=new DataView(new ArrayBuffer(0)),K=0,or=0,C$=2048,x6=new Array(C$),E$=new Uint16Array(C$),vf=0});var _y,P6=g(()=>{V();y$();w6();_y=class extends Zt{createSerializer(){let e=new uy;return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new hy;return e.setSerdeContext(this.serdeContext),e}}});var Df,O6=g(()=>{V();ae();oe();P6();i$();Df=class extends Yn{codec=new _y;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);Object.assign(o.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()}),gn(e.input)==="unit"?(delete o.body,delete o.headers["content-type"]):(o.body||(this.serializer.write(15,{}),o.body=this.serializer.flush()),o.body instanceof Uint8Array&&(o.headers["content-length"]=String(o.body.byteLength)));let{service:s,operation:i}=Le(n),a=`/service/${s}/operation/${i}`;return o.path.endsWith("/")?o.path+=a.slice(1):o.path+=a,o}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,o,s){let i=Af(n,o)??"Unknown",a=["*"],{defaultNamespace:c}=this.options;a.unshift(c);let[u,f]=i.includes("#")?i.split("#"):[void 0,i];u&&a.unshift(u);let m={$metadata:s,$fault:n.statusCode<500?"client":"server"},y=[this.compositeErrorRegistry];u&&y.push(Fe.for(u)),y.push(Fe.for(c));let[_,C,A]=this.resolveError(f,a,y);if(A==="native"||A==="synthetic"){o.Message&&(o.message=o.Message);let H=A==="synthetic"?new C({name:f}):new Error(f);throw Object.assign(H,m,o)}let x=B.of(_),T=o.message??o.Message??"Unknown",I=new C({}),q={};for(let[H,me]of x.structIterator())q[H]=this.deserializer.readValue(me,o[H]);throw Object.assign(I,m,{$fault:x.getMergedTraits().error,message:T},q)}getDefaultContentType(){return"application/cbor"}}});var $6=g(()=>{i$();O6()});var eo,Nl=g(()=>{J();ae();eo=class{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,r){let n=r.getMemberSchemas(),o=Object.values(n).find(s=>!!s.getMergedTraits().httpPayload);if(o){let s=o.getMergedTraits().mediaType;return s||(o.isStringSchema()?"text/plain":o.isBlobSchema()?"application/octet-stream":e)}else if(!r.isUnitSchema()&&Object.values(n).find(i=>{let{httpQuery:a,httpQueryParams:c,httpHeader:u,httpLabel:f,httpPrefixHeaders:m}=i.getMergedTraits();return!a&&!c&&!u&&!f&&m===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,r,n,o,s,i){let a=e;e.includes("#")&&([,a]=e.split("#"));let c={$metadata:s,$fault:n.statusCode<500?"client":"server"};if(!this.errorRegistry)throw new Error("@aws-sdk/core/protocols - error handler not initialized.");try{return{errorSchema:i?.(this.errorRegistry,a)??this.errorRegistry.getSchema(e),errorMetadata:c}}catch{o.message=o.message??o.Message??"UnknownError";let f=this.errorRegistry,m=f.getBaseException();if(m){let C=f.getErrorCtor(m)??Error;throw this.decorateServiceException(Object.assign(new C({name:a}),c),o)}let y=o,_=y?.message??y?.Message??y?.Error?.Message??y?.Error?.message;throw this.decorateServiceException(Object.assign(new Error(_),{name:a},c),o)}}compose(e,r,n){let o=n;r.includes("#")&&([o]=r.split("#"));let s=Fe.for(o),i=Fe.for("smithy.ts.sdk.synthetic."+n);e.copyFrom(s),e.copyFrom(i),this.errorRegistry=e}decorateServiceException(e,r={}){if(this.queryCompat){let n=e.Message??r.Message,o=yc(e,r);n&&(o.message=n);let s=o.Error??{};s.Type=o.Error?.Type,s.Code=o.Error?.Code,s.Message=o.Error?.message??o.Error?.Message??n,o.Error=s;let i=o.$metadata.requestId;return i&&(o.RequestId=i),o}return yc(e,r)}setQueryCompatError(e,r){let n=r.headers?.["x-amzn-query-error"];if(e!==void 0&&n!=null){let[o,s]=n.split(";"),i=Object.keys(e),a={Code:o,Type:s};e.Code=o,e.Type=s;for(let c=0;c<i.length;c++){let u=i[c];a[u==="message"?"Message":u]=e[u]}delete a.__type,e.Error=a}}queryCompatOutput(e,r){e.Error&&(r.Error=e.Error),e.Type&&(r.Type=e.Type),e.Code&&(r.Code=e.Code)}findQueryCompatibleError(e,r){try{return e.getSchema(r)}catch{return e.find(o=>B.of(o).getMergedTraits().awsQueryError?.[0]===r)}}}});var Ry,k6=g(()=>{$6();ae();Nl();Ry=class extends Df{awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:r,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:r}),this.awsQueryCompatible=!!n,this.mixin=new eo(this.awsQueryCompatible)}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);return this.awsQueryCompatible&&(o.headers["x-amzn-query-mode"]="true"),o}async handleError(e,r,n,o,s){this.awsQueryCompatible&&this.mixin.setQueryCompatError(o,n);let i=(()=>{let C=n.headers["x-amzn-query-error"];return C&&this.awsQueryCompatible?C.split(";")[0]:Af(n,o)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace);let{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,o,s,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),u=B.of(a),f=o.message??o.Message??"UnknownError",m=this.compositeErrorRegistry.getErrorCtor(a)??Error,y=new m({}),_={};for(let[C,A]of u.structIterator())o[C]!=null&&(_[C]=this.deserializer.readValue(A,o[C]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(o,_),this.mixin.decorateServiceException(Object.assign(y,c,{$fault:u.getMergedTraits().error,message:f},_),o)}}});var ht,Bo=g(()=>{ht=class{serdeContext;setSerdeContext(e){this.serdeContext=e}}});var xa,Cy=g(()=>{xa=class{from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),o=new Set(n);o.delete("__type"),this.keys=o}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function by(){if(If===void 0)try{if(typeof Buffer!="function")If=!1;else{let t=JSON.parse(Buffer.from([123,125]));If=t!==null&&typeof t=="object"}}catch{If=!1}return If}var If,b$=g(()=>{});function Fl(t,e,r){if(r?.source){let n=r.source;if(typeof e=="number")return e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER?_De(n,e)?e:new Y(n,"bigDecimal"):EDe(n)?new Y(n,"bigDecimal"):/[eE]/.test(n)?RDe(n):BigInt(n)}return e}function EDe(t){let e=t.indexOf(".");if(e===-1)return!1;let r=t.search(/[eE]/);if(r===-1)return!0;let n=r-e-1;return parseInt(t.slice(r+1),10)<n}function _De(t,e){if(t===String(e)||Object.is(e,-0))return!0;if(/[eE]/.test(t))return A$(t)===A$(String(e));let r=t.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),n=String(e);return r===n?!0:/[eE]/.test(n)?r===A$(n):!1}function A$(t){let e=t.startsWith("-"),r=e?t.slice(1):t,n=r.search(/[eE]/),o;if(n===-1)o=r;else{let s=parseInt(r.slice(n+1),10),i=r.slice(0,n),a=i.indexOf("."),c,u;a===-1?(c=i,u=i.length):(c=i.slice(0,a)+i.slice(a+1),u=a),c=c.replace(/0+$/,"")||"0";let f=u+s;c==="0"?o="0":f<=0?o="0."+"0".repeat(-f)+c:f>=c.length?o=c+"0".repeat(f-c.length):o=c.slice(0,f)+"."+c.slice(f)}return o.includes(".")&&(o=o.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(e?"-":"")+o}function RDe(t){let e=t.search(/[eE]/),r=parseInt(t.slice(e+1),10),n=t.startsWith("-"),o=t.slice(n?1:0,e),s=o.indexOf("."),i,a;if(s===-1)i=o,a=r;else{i=o.slice(0,s)+o.slice(s+1);let u=o.length-s-1;a=r-u}i=i.replace(/0+$/,"")||"0";let c=BigInt(i)*10n**BigInt(a+(o.replace(".","").length-i.length));return n?-c:c}var Ay=g(()=>{j()});function Bl(t){let e=B.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(x$ in r)return r[x$];let n=xy(e,new Set);return r[x$]=n,n}return xy(e,new Set)}function xy(t,e){let r=t.getSchema();if(e.has(r))return!1;if(e.add(r),t.isBigIntegerSchema()||t.isBigDecimalSchema())return!0;if(t.isStructSchema()){for(let[,n]of t.structIterator())if(xy(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(xy(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var x$,Ty=g(()=>{ae();x$=Symbol.for("@aws-sdk/reviver")});var vy,T$=g(()=>{V();j();vy=(t,e)=>At(t,e).then(r=>(e?.utf8Encoder??ze)(r))});async function Nc(t,e,r){let n;if(by()&&typeof t?.[Symbol.asyncIterator]=="function"){let s=await At(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(s)?n=s:n=Buffer.from(s.buffer,s.byteOffset,s.byteLength))}if(n||(n=await vy(t,e)),n.length===0)return{};let o=r&&Bl(r)?Fl:void 0;try{return JSON.parse(n,o)}catch(s){throw s?.name==="SyntaxError"&&Object.defineProperty(s,"$responseBodyText",{value:typeof n=="string"?n:n.toString("utf8")}),s}}var L6,M6,v$,Dy,Iy,N6,Ul=g(()=>{V();T$();b$();Ay();Ty();L6=async(t,e)=>{let r=await Nc(t,e);return r.message=r.message??r.Message,r},M6=(t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),v$=t=>{let e=t;return typeof e=="number"&&(e=e.toString()),e.indexOf(",")>=0&&(e=e.split(",")[0]),e.indexOf(":")>=0&&(e=e.split(":")[0]),e.indexOf("#")>=0&&(e=e.split("#")[1]),e},Dy=(t,e)=>N6(t,e,["header","code","type"]),Iy=(t,e,r=!1)=>N6(t,e,r?["code","header","type"]:["type","code","header"]),N6=({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let o=M6(t??{},"x-amzn-errortype");if(o!==void 0)return v$(t[o]);break;case"code":let s=M6(e??{},"code");if(s&&e[s]!==void 0)return v$(e[s]);break;case"type":if(e?.__type!==void 0)return v$(e.__type);break}}});function to(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var wf=g(()=>{});var Gl,D$=g(()=>{V();ae();j();Bo();Cy();b$();Ay();Ty();Ul();wf();Gl=class extends ht{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=Bl(e)?Fl:void 0,o;if(typeof r=="string"){if(r.length===0)return{};o=JSON.parse(r,n)}else if(r instanceof Uint8Array&&by()){if(r.byteLength===0)return{};let s=Buffer.isBuffer(r)?r:Buffer.from(r.buffer,r.byteOffset,r.byteLength);o=JSON.parse(s,n)}else o=await Nc(r,this.serdeContext,e);return this._read(e,o)}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=B.of(e);if(n){if(o.isStructSchema())return this._readStruct(o,r);if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema();if(this.needsTransform(i))for(let a=0;a<r.length;++a)r[a]=this._read(i,r[a]);return r}if(o.isMapSchema()){let i=o.getValueSchema(),a=r;if(this.needsTransform(i))for(let c in a)c==="__proto__"&&to(a),a[c]=this._read(i,a[c]);return a}}if(o.isBlobSchema()&&typeof r=="string")return Xe(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?qe.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ze(o,this.settings)){case 5:return Ss(r);case 6:return hn(r);case 7:return ys(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof Y)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new Y(i.string,i.type):new Y(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema()&&n)if(Array.isArray(r))for(let i=0;i<r.length;++i){let a=r[i];a instanceof Y||(r[i]=this._read(o,a))}else{let i=r;for(let a in i){a==="__proto__"&&to(i);let c=i[a];c instanceof Y||(i[a]=this._read(o,c))}}return r}_readStruct(e,r){let n=e.isUnionSchema(),o={},s,i=typeof r.__type=="string",{jsonName:a}=this.settings;a&&i&&(s={});let c;n&&(c=new xa(r,o));for(let[u,f]of e.structIterator()){let m=u;a&&(m=f.getMergedTraits().jsonName??m,i&&(s[m]=u)),n&&c.mark(m),r[m]!=null&&(o[u]=this._read(f,r[m]))}if(n)c.writeUnknown();else if(i)for(let u in r){let f=r[u],m=a?s[u]??u:u;m in o||(o[m]=f)}return o}needsTransform(e){return!!(e.isBlobSchema()||e.isTimestampSchema()||e.isBigIntegerSchema()||e.isBigDecimalSchema()||e.isDocumentSchema()||e.isStructSchema()||e.isListSchema()||e.isMapSchema()||e.isStringSchema()&&e.getMergedTraits().mediaType)}}});var wy,F6,B6=g(()=>{j();wy=class t extends Uint8Array{string=null;static allocUnsafe(e){if(typeof Buffer=="function"){let r=Buffer.allocUnsafe(e);return new t(r.buffer,r.byteOffset,r.byteLength)}return new t(e)}toString(){return this.s()}valueOf(){return this.s()}includes(e,r){return typeof e=="string"?this.s().includes(e,r):Uint8Array.prototype.includes.call(this,e,r)}indexOf(e,r){return typeof e=="string"?this.s().indexOf(e,r):Uint8Array.prototype.indexOf.call(this,e,r)}lastIndexOf(e,r){if(typeof e=="string")return this.s().lastIndexOf(e,r);let n=Uint8Array.prototype.lastIndexOf;return r!==void 0?n.call(this,e,r):n.call(this,e)}startsWith(e,r){return this.s().startsWith(e,r)}endsWith(e,r){return this.s().endsWith(e,r)}match(e){return this.s().match(e)}replace(e,r){return this.s().replace(e,r)}search(e){return this.s().search(e)}split(e,r){return this.s().split(e,r)}substring(e,r){return this.s().substring(e,r)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(e){return this.s().charAt(e)}charCodeAt(e){return this.s().charCodeAt(e)}padStart(e,r){return this.s().padStart(e,r)}padEnd(e,r){return this.s().padEnd(e,r)}repeat(e){return this.s().repeat(e)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){let e=Date.now();e>F6+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),F6=e),this.string=ze(this)}return this.string}},F6=0});function I$(t){return wy.allocUnsafe(t)}var Py,U6,G6,CDe,bDe,ql,Oy,$y,q6,ADe,xDe,TDe,Ws,H6,Hl,w$=g(()=>{V();ae();j();Bo();B6();Py=new TextEncoder,U6=123,G6=125,CDe=91,bDe=93,ql=34,Oy=58,$y=44,q6=92,ADe=new Uint8Array([116,114,117,101]),xDe=new Uint8Array([102,97,108,115,101]),TDe=new Uint8Array([110,117,108,108]),Ws=new Array(128).fill(null);Ws[8]="b";Ws[9]="t";Ws[10]="n";Ws[12]="f";Ws[13]="r";Ws[34]='"';Ws[92]="\\";for(let t=0;t<32;t++)Ws[t]===null&&(Ws[t]="u00"+t.toString(16).padStart(2,"0"));H6=2048;Hl=class t extends ht{settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=I$(H6)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=B.of(e),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.rootSchema,r,void 0)}writeDiscriminatedDocument(e,r){this.i=0,this.rootSchema=B.of(e);let n=this.rootSchema;if(n.isStructSchema()&&r!=null&&typeof r=="object"){this.writeValue(n,r,void 0);let o=`"__type":"${n.getName(!0)??"Unknown"}",`,s=o.length;this.ensure(s),this.json.copyWithin(1+s,1,this.i),Py.encodeInto(o,this.json.subarray(1)),this.i+=s}else this.writeValue(n,r,void 0)}flush(){this.rootSchema=void 0;let e=this.i;this.i=0;let r=this.rawValue;if(this.rawValue=void 0,e===0)return r;let n=this.json.subarray(0,e);return this.json=I$(H6),n}ensure(e){let{i:r,json:n}=this;if(r+e>n.length){let o=n.length*2;for(;o<r+e;)o*=2;let s=I$(o);s.set(this.json),this.json=s}}writeAscii(e){let r=e.length;this.ensure(r);let{i:n,json:o}=this;for(let s=0;s<r;++s)o[n]=e.charCodeAt(s),n+=1;this.i=n}writeAsciiQuoted(e){let r=e.length;this.ensure(r+4);let{json:n,i:o}=this;n[o++]=ql;for(let s=0;s<r;++s)n[o++]=e.charCodeAt(s);n[o++]=ql,this.i=o}writeJsonString(e){this.ensure(e.length*3+2),this.json[this.i++]=ql;let r=e.length;for(let n=0;n<r;++n){let o=e.charCodeAt(n);if(o>34&&o<92)this.json[this.i++]=o;else if(o<128){let s=Ws[o];if(s!==null){this.ensure(s.length+1),this.json[this.i++]=q6;for(let i=0;i<s.length;i++)this.json[this.i++]=s.charCodeAt(i)}else this.json[this.i++]=o}else if(o>=55296&&o<=56319){let s=n+1<r?e.charCodeAt(n+1):0;if(s>=56320&&s<=57343){this.ensure(4);let{written:i}=Py.encodeInto(e.substring(n,n+2),this.json.subarray(this.i));this.i+=i,++n}else this.ensure(6),this.writeUnicodeEscape(o)}else if(o>=56320&&o<=57343)this.ensure(6),this.writeUnicodeEscape(o);else{let{i:s,json:i}=this;o<2048?(i[s++]=192|o>>6,i[s++]=128|o&63):(i[s++]=224|o>>12,i[s++]=128|o>>6&63,i[s++]=128|o&63),this.i=s}}this.json[this.i++]=ql}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=q6,r[n++]=117;let o=e.toString(16).padStart(4,"0");for(let s=0;s<4;++s)r[n++]=o.charCodeAt(s);this.i=n}static B64=(()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(64);for(let n=0;n<64;++n)r[n]=e.charCodeAt(n);return r})();writeBase64(e){let r=Math.ceil(e.length/3)*4;this.ensure(r+2);let n=this.json,o=t.B64,s=this.i;n[s++]=ql;let i=e.length,a=i%3,c=i-a;for(let u=0;u<c;u+=3){let f=e[u],m=e[u+1],y=e[u+2];n[s++]=o[f>>2],n[s++]=o[(f&3)<<4|m>>4],n[s++]=o[(m&15)<<2|y>>6],n[s++]=o[y&63]}if(a===2){let u=e[c],f=e[c+1];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4|f>>4],n[s++]=o[(f&15)<<2],n[s++]=61}else if(a===1){let u=e[c];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4],n[s++]=61,n[s++]=61}n[s++]=ql,this.i=s}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&B.of(e).isIdempotencyToken()){this.writeAsciiQuoted(xr());return}return}this.ensure(4),this.json.set(TDe,this.i),this.i+=4;return}let o=B.of(e),s=typeof r=="object";if(o.isStringSchema()){let i=o.getMergedTraits().mediaType;if(i&&(i==="application/json"||i.endsWith("+json"))){this.writeJsonString(qe.from(r).toString());return}}if(s){if(o.isStructSchema()){this.writeStruct(o,r);return}if(Array.isArray(r)&&(o.isListSchema()||o.isDocumentSchema())){this.writeList(o,r,o.isDocumentSchema());return}if(o.isMapSchema()){this.writeMap(o,r,!1);return}if(r instanceof Uint8Array&&(o.isBlobSchema()||o.isDocumentSchema())){this.writeBase64(r);return}if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema())){this.writeTimestamp(o,r);return}if(r instanceof Y){this.writeAscii(r.string);return}if(o.isDocumentSchema()){Array.isArray(r)?this.writeList(o,r,!0):this.writeMap(o,r,!0);return}let i=JSON.stringify(r);this.writeAscii(i);return}if(typeof r=="string"){if(o.isBlobSchema()){let i=(this.serdeContext?.base64Encoder??Ie)(r);this.writeAsciiQuoted(i);return}this.writeJsonString(r);return}if(typeof r=="number"){if(Math.abs(r)===1/0||Number.isNaN(r)){this.writeAsciiQuoted(String(r));return}let i=String(r);this.writeAscii(i);return}if(typeof r=="boolean"){this.ensure(5);let{i,json:a}=this;r?(a.set(ADe,i),i+=4):(a.set(xDe,i),i+=5),this.i=i;return}if(typeof r=="bigint"){this.writeAscii(r.toString());return}this.writeAscii(String(r))}writeStruct(e,r){this.ensure(2),this.json[this.i++]=U6;let n=!1,o=typeof r.__type=="string",s;o&&(s=new Set);for(let[i,a]of e.structIterator()){let c=r[i];if(c==null&&!a.isIdempotencyToken())continue;n&&(this.ensure(1),this.json[this.i++]=$y),n=!0;let u=this.settings.jsonName?a.getMergedTraits().jsonName??i:i;s&&(s.add(i),s.add(u)),this.writeAsciiQuoted(u),this.json[this.i++]=Oy,this.writeValue(a,c,e)}if(!n&&e.isUnionSchema()){let{$unknown:i}=r;if(Array.isArray(i)){let[a,c]=i;this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=Oy,this.writeValue(15,c,e)}}else if(o)for(let i in r){if(s.has(i))continue;s.add(i);let a=r[i];n&&(this.ensure(1),this.json[this.i++]=$y),n=!0,this.writeAsciiQuoted(i),this.ensure(1),this.json[this.i++]=Oy,this.writeValue(15,a,void 0)}this.ensure(1),this.json[this.i++]=G6}writeList(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a=!1;for(let u=0;u<r.length;++u){let f=r[u];if(Number.isNaN(f)||f===1/0||f===-1/0||f==null&&!o){a=!0;break}}let c;if(!a)c=JSON.stringify(r);else{let u=[];for(let f=0;f<r.length;++f){let m=r[f];m==null&&!o||(Number.isNaN(m)||m===1/0||m===-1/0?u.push(String(m)):u.push(m))}c=JSON.stringify(u)}this.ensure(c.length*3),this.i+=Py.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=CDe;let i=!1;for(let a=0;a<r.length;++a){let c=r[a];(n?c===void 0:c==null&&!o)||(i&&(this.ensure(1),this.json[this.i++]=$y),this.writeValue(s,c,void 0),i=!0)}this.ensure(1),this.json[this.i++]=bDe}writeMap(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a;for(let u in r){let f=r[u];Number.isNaN(f)||f===1/0||f===-1/0?((a??={})[u]=f,r[u]=String(f)):f===null&&!o&&((a??={})[u]=null,r[u]=void 0)}let c=JSON.stringify(r);a&&Object.assign(r,a),this.ensure(c.length*3),this.i+=Py.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=U6;let i=!0;for(let a in r){let c=r[a];(n?c===void 0:c==null&&!o)||(i||(this.ensure(1),this.json[this.i++]=$y),i=!1,this.writeJsonString(a),this.ensure(1),this.json[this.i++]=Oy,this.writeValue(s,c,void 0))}this.ensure(1),this.json[this.i++]=G6}writeTimestamp(e,r){switch(Ze(e,this.settings)){case 5:{let o=r.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(o);return}case 6:{this.writeAsciiQuoted(br(r));return}case 7:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}default:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}}}}});var Ta,ky=g(()=>{Bo();D$();w$();Ta=class extends ht{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Hl(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Gl(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var va,My=g(()=>{V();ae();Nl();ky();Ul();va=class extends Yn{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:r}),this.serviceTarget=n,this.codec=s??new Ta({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!o,this.mixin=new eo(this.awsQueryCompatible)}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);return o.path.endsWith("/")||(o.path+="/"),o.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,o.headers["x-amz-target"]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(o.headers["x-amzn-query-mode"]="true"),(gn(e.input)==="unit"||!o.body)&&(o.body="{}"),o}getPayloadCodec(){return this.codec}async handleError(e,r,n,o,s){let{awsQueryCompatible:i}=this;i&&this.mixin.setQueryCompatError(o,n);let a=Iy(n,o,i)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,o,s,i?this.mixin.findQueryCompatibleError:void 0),f=B.of(c),m=o.message??o.Message??"UnknownError",y=this.compositeErrorRegistry.getErrorCtor(c)??Error,_=new y({}),C={},A=this.codec.createDeserializer();for(let[x,T]of f.structIterator())o[x]!=null&&(C[x]=A.readObject(T,o[x]));throw i&&this.mixin.queryCompatOutput(o,C),this.mixin.decorateServiceException(Object.assign(_,u,{$fault:f.getMergedTraits().error,message:m},C),o)}}});var Ly,j6=g(()=>{My();Ly=class extends va{constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}});var Ny,z6=g(()=>{My();Ny=class extends va{constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}});var Ks,V6=g(()=>{V();ae();Nl();ky();Ul();Ks=class extends la{serializer;deserializer;codec;mixin=new eo;constructor({defaultNamespace:e,errorTypeRegistries:r,jsonCodec:n}){super({defaultNamespace:e,errorTypeRegistries:r});let o={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=n??new Ta(o),this.serializer=new ma(this.codec.createSerializer(),o),this.deserializer=new fa(this.codec.createDeserializer(),o)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n),s=B.of(e.input);if(!o.headers["content-type"]){let i=this.mixin.resolveRestContentType(this.getDefaultContentType(),s);i&&(o.headers["content-type"]=i)}return o.body==null&&o.headers["content-type"]===this.getDefaultContentType()&&(o.body="{}"),o}async deserializeResponse(e,r,n){let o=await super.deserializeResponse(e,r,n),s=B.of(e.output);for(let[i,a]of s.structIterator())a.getMemberTraits().httpPayload&&!(i in o)&&(o[i]=null);return o}async handleError(e,r,n,o,s){let i=Dy(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace);let{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,o,s),u=B.of(a),f=o.message??o.Message??"UnknownError",m=this.compositeErrorRegistry.getErrorCtor(a)??Error,y=new m({});await this.deserializeHttpMessage(a,r,n,o);let _={},C=this.codec.createDeserializer();for(let[A,x]of u.structIterator()){let T=x.getMergedTraits().jsonName??A;_[A]=C.readObject(x,o[T])}throw this.mixin.decorateServiceException(Object.assign(y,c,{$fault:u.getMergedTraits().error,message:f},_),o)}getDefaultContentType(){return"application/json"}}});var jl,P$=g(()=>{V();ae();j();j();Bo();Cy();Ay();Ty();Ul();wf();jl=class extends ht{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=Bl(e)?Fl:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await Nc(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=B.of(e);if(n){if(o.isStructSchema()){let i=r,a=o.isUnionSchema(),c={},u,{jsonName:f}=this.settings;f&&(u={});let m;a&&(m=new xa(i,c));for(let[y,_]of o.structIterator()){let C=y;f&&(C=_.getMergedTraits().jsonName??C,u[C]=y),a&&m.mark(C),i[C]!=null&&(c[y]=this._read(_,i[C]))}if(a)m.writeUnknown();else if(typeof i.__type=="string")for(let y in i){let _=i[y],C=f?u[y]??y:y;C in c||(c[C]=_)}return c}if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema(),a=[];for(let c of r)a.push(this._read(i,c));return a}if(o.isMapSchema()){let i=o.getValueSchema(),a={};for(let c in r)c==="__proto__"&&to(a),a[c]=this._read(i,r[c]);return a}}if(o.isBlobSchema()&&typeof r=="string")return Xe(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?qe.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ze(o,this.settings)){case 5:return Ss(r);case 6:return hn(r);case 7:return ys(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof Y)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new Y(i.string,i.type):new Y(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema())if(n){let i=Array.isArray(r)?[]:{};for(let a in r){a==="__proto__"&&to(i);let c=r[a];c instanceof Y?i[a]=c:i[a]=this._read(o,c)}return i}else return structuredClone(r);return r}}});var W6,Fy,K6=g(()=>{j();W6="\u039D",Fy=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,r)=>{if(r instanceof Y){let n=`${W6+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),o=`${W6+"b"+this.counter++}_`+n;return this.values.set(`"${o}"`,n),o}return r}}replaceInJson(e){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return e;for(let[r,n]of this.values)e=e.replace(r,n);return e}}});var zl,O$=g(()=>{V();ae();j();Bo();K6();wf();zl=class extends ht{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=B.of(e),this.buffer=this._write(this.rootSchema,r)}flush(){let{rootSchema:e,useReplacer:r}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!r)return JSON.stringify(this.buffer);let n=new Fy;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,r){this.write(e,r),typeof this.buffer=="object"&&(this.buffer.__type=B.of(e).getName(!0))}_write(e,r,n){let o=r!==null&&typeof r=="object",s=B.of(e);if(o){if(s.isStructSchema()){let i=r,a={},{jsonName:c}=this.settings,u;c&&(u={});let f=0;for(let[m,y]of s.structIterator()){let _=this._write(y,i[m],s);if(_!==void 0){let C=m;c&&(C=y.getMergedTraits().jsonName??m,u[m]=C),a[C]=_,f++}}if(s.isUnionSchema()&&f===0){let{$unknown:m}=i;if(Array.isArray(m)){let[y,_]=m;y==="__proto__"&&to(a),a[y]=this._write(15,_)}}else if(typeof i.__type=="string")for(let m in i){let y=i[m],_=c?u[m]??m:m;_ in a||(a[_]=this._write(15,y))}return a}if(Array.isArray(r)&&s.isListSchema()){let i=s.getValueSchema(),a=[],c=!!s.getMergedTraits().sparse;for(let u of r)(c||u!=null)&&a.push(this._write(i,u));return a}if(s.isMapSchema()){let i=s.getValueSchema(),a={},c=!!s.getMergedTraits().sparse;for(let u in r){let f=r[u];(c||f!=null)&&(u==="__proto__"&&to(a),a[u]=this._write(i,f))}return a}if(r instanceof Uint8Array&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??Ie)(r);if(r instanceof Date&&(s.isTimestampSchema()||s.isDocumentSchema()))switch(Ze(s,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return br(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof Y&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(s.isStringSchema()){if(typeof r>"u"&&s.isIdempotencyToken())return xr();let i=s.getMergedTraits().mediaType;return r!=null&&i&&(i==="application/json"||i.endsWith("+json"))?qe.from(r):r}if(typeof r=="number")return Math.abs(r)===1/0||isNaN(r)?String(r):r;if(typeof r=="string"&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??Ie)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),s.isDocumentSchema())if(o){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??Ie)(r);let i=Array.isArray(r)?[]:{};for(let a in r){let c=r[a];a==="__proto__"&&to(i),c instanceof Y?(this.useReplacer=!0,i[a]=c):i[a]=this._write(s,c)}return i}else return structuredClone(r);return r}}}});var By,Q6=g(()=>{Bo();P$();O$();By=class extends ht{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new zl(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new jl(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var qy=st(Gy=>{var vDe=/[&<>"]/g,DDe={"&":"&","<":"<",">":">",'"':"""};function IDe(t){return t.replace(vDe,e=>DDe[e])}var wDe=/[&"'<>\r\n\u0085\u2028]/g,PDe={"&":"&",'"':""","'":"'","<":"<",">":">","\r":"
","\n":"
","\x85":"…","\u2028":"
"};function ODe(t){return t.replace(wDe,e=>PDe[e])}var Uy=class{value;constructor(e){this.value=e}toString(){return ODe(""+this.value)}},k$=class t{name;children;attributes={};static of(e,r,n){let o=new t(e);return r!==void 0&&o.addChildNode(new Uy(r)),n!==void 0&&o.withName(n),o}constructor(e,r=[]){this.name=e,this.children=r}withName(e){return this.name=e,this}addAttribute(e,r){return this.attributes[e]=r,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,r){return r!=null&&(this.attributes[e]=r),this}cc(e,r,n=r){if(e[r]!=null){let o=t.of(r,e[r]).withName(n);this.c(o)}}l(e,r,n,o){e[r]!=null&&o().map(i=>{i.withName(n),this.c(i)})}lc(e,r,n,o){if(e[r]!=null){let s=o(),i=new t(n);s.map(a=>{i.c(a)}),this.c(i)}}toString(){let e=!!this.children.length,r=`<${this.name}`,n=this.attributes;for(let o of Object.keys(n)){let s=n[o];s!=null&&(r+=` ${o}="${IDe(""+s)}"`)}return r+=e?`>${this.children.map(o=>o.toString()).join("")}</${this.name}>`:"/>"}};function $$(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}function $De(t){return new M$(t).parse()}var M$=class t{x;i=0;z;constructor(e){this.x=e,this.x=e.replace(/\r\n?/g,`
|
|
44
44
|
`),this.z=this.x.length}parse(){let e=this,{z:r}=e;for(;e.i<r&&(e.trim(),!(e.i>=r));)if(e.isNext("<?"))e.readTo("?>"),e.trim();else if(e.isNext("<!--"))e.readTo("-->"),e.trim();else if(e.isNext("<!DOCTYPE",!1))e.skipDoctype(),e.trim();else if(e.x[e.i]==="<"){let n=e.parseTag();return{[n.tag]:n.value}}else throw new Error("@aws-sdk XML parse error: unexpected content.");throw new Error("@aws-sdk XML parse error: no root element.")}isNext(e,r=!0){let n=this;return r?n.x.startsWith(e,n.i):n.x.toLowerCase().startsWith(e.toLowerCase(),n.i)}readTo(e){let r=this,n=r.x.indexOf(e,r.i);if(n===-1)throw new Error(`@aws-sdk XML parse error: expected "${e}" not found.`);let o=r.x.slice(r.i,n);return r.i=n+e.length,o}trim(){let e=this;for(;e.i<e.z&&` \r
|
|
45
45
|
`.includes(e.x[e.i]);)++e.i}readAttrValue(){let e=this,r=e.x[e.i];++e.i;let n="";for(;e.i<e.z&&e.x[e.i]!==r;)n+=e.x[e.i++];return++e.i,e.decodeEntities(n)}parseTag(){let e=this;++e.i;let r="";for(;e.i<e.z&&!` \r
|
|
46
46
|
>/`.includes(e.x[e.i]);)r+=e.x[e.i++];let n=!1,o={};for(;e.i<e.z&&(e.trim(),!">/".includes(e.x[e.i]));){let f="";for(;e.i<e.z&&!`= \r
|
|
47
47
|
>/?`.includes(e.x[e.i]);)f+=e.x[e.i++];if(e.trim(),e.x[e.i]!=="=")break;++e.i,e.trim(),f==="__proto__"&&$$(o),o[f]=e.readAttrValue(),n=!0}if(e.i>=e.z)throw new Error("@aws-sdk XML parse error: unexpected end of input.");if(e.x[e.i]==="/"){if(++e.i,e.i>=e.z||e.x[e.i]!==">")throw new Error("@aws-sdk XML parse error: expected > at the end of self-closing tag.");return++e.i,{tag:r,value:n?o:""}}if(e.x[e.i]!==">")throw new Error("@aws-sdk XML parse error: expected > at the end of opening tag.");++e.i;let s=[],i=[],a=!1;for(;e.i<e.z&&!e.isNext("</");)if(e.x[e.i]==="<")e.isNext("<!--")?e.readTo("-->"):e.isNext("<![CDATA[")?(e.i+=9,s.push(e.readTo("]]>"))):e.isNext("<?")?e.readTo("?>"):(a=!0,i.push(e.parseTag()));else{let f="";for(;e.i<e.z&&e.x[e.i]!=="<";)f+=e.x[e.i++];s.push(e.decodeEntities(f))}if(!e.isNext("</"))throw new Error(`@aws-sdk XML parse error: missing closing tag </${r}>.`);e.i+=2;let c=e.readTo(">").trim();if(c!==r)throw new Error(`@aws-sdk XML parse error: mismatched tags <${r}> and </${c}>.`);if(!n&&s.length===0&&!a)return{tag:r,value:""};if(!n&&!a){let f=s.length===1?s[0]:s.join("");return f.trim()===""&&f.includes(`
|
|
48
48
|
`)?{tag:r,value:""}:{tag:r,value:f}}let u={};for(let f of s)f.trim()===""&&f.includes(`
|
|
49
|
-
`)||(u["#text"]="#text"in u?u["#text"]+f:f);for(let f of i)f.tag==="__proto__"&&$$(u),f.tag in u?Array.isArray(u[f.tag])?u[f.tag].push(f.value):u[f.tag]=[u[f.tag],f.value]:u[f.tag]=f.value;for(let[f,m]of Object.entries(o))f==="__proto__"&&$$(u),u[f]=m;return{tag:r,value:u}}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};skipDoctype(){let e=this;e.i+=9;let r=0;for(;e.i<e.z;){let n=e.x[e.i];if(n==="[")++r;else if(n==="]")--r;else if(n===">"&&r===0){++e.i;return}++e.i}throw new Error("@aws-sdk XML parse error: unclosed DOCTYPE.")}decodeEntities(e){return e.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g,(r,n,o,s)=>n?String.fromCharCode(parseInt(n,16)):o?String.fromCharCode(parseInt(o,10)):t.ENTITIES[s]??"")}};Gy.XmlNode=k$;Gy.XmlText=Uy;Gy.parseXML=ODe});var Y6,Da,Hy=g(()=>{Y6=De(qy());J();V();ae();j();Bo();Cy();wf();Da=class extends ht{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new pa(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,r,n){let o=B.of(e),s=o.getMemberSchemas();if(o.isStructSchema()&&o.isMemberSchema()&&!!Object.values(s).find(u=>!!u.getMemberTraits().eventPayload)){let u={},f=Object.keys(s)[0];return s[f].isBlobSchema()?u[f]=r:u[f]=this.read(s[f],r),u}let a=(this.serdeContext?.utf8Encoder??ze)(r),c=this.parseXml(a);return this.readSchema(e,n?c[n]:c)}readSchema(e,r){let n=B.of(e);if(n.isUnitSchema())return;let o=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(r))return this.readSchema(n,[r]);if(r==null)return r;if(typeof r=="object"){let s=!!o.xmlFlattened;if(n.isListSchema()){let a=n.getValueSchema(),c=[],u=a.getMergedTraits().xmlName??"member",f=s?r:(r[0]??r)[u];if(f==null)return c;let m=Array.isArray(f)?f:[f];for(let y of m)c.push(this.readSchema(a,y));return c}let i={};if(n.isMapSchema()){let a=n.getKeySchema(),c=n.getValueSchema(),u;s?u=Array.isArray(r)?r:[r]:u=Array.isArray(r.entry)?r.entry:[r.entry];let f=a.getMergedTraits().xmlName??"key",m=c.getMergedTraits().xmlName??"value";for(let y of u){let _=y[f],C=y[m];_==="__proto__"&&eo(i),i[_]=this.readSchema(c,C)}return i}if(n.isStructSchema()){let a=n.isUnionSchema(),c;a&&(c=new xa(r,i));for(let[u,f]of n.structIterator()){let m=f.getMergedTraits(),y=m.httpPayload?m.xmlName??f.getName():f.getMemberTraits().xmlName??u;a&&c.mark(y),r[y]!=null&&(i[u]=this.readSchema(f,r[y]))}return a&&c.writeUnknown(),i}if(n.isDocumentSchema())return r;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,r)}parseXml(e){if(e.length){let r;try{r=(0,Y6.parseXML)(e)}catch(i){throw i&&typeof i=="object"&&Object.defineProperty(i,"$responseBodyText",{value:e}),i}let n="#text",o=Object.keys(r)[0],s=r[o];return s[n]&&(s[o]=s[n],delete s[n]),_c(s)}return{}}}});var Vl,L$=g(()=>{V();ae();j();j();Bo();Vl=class extends ht{settings;buffer;constructor(e){super(),this.settings=e}write(e,r,n=""){this.buffer===void 0&&(this.buffer="");let o=B.of(e);if(n&&!n.endsWith(".")&&(n+="."),o.isBlobSchema())(typeof r=="string"||r instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??Ie)(r)));else if(o.isBooleanSchema()||o.isNumericSchema()||o.isStringSchema())r!=null?(this.writeKey(n),this.writeValue(String(r))):o.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(xr()));else if(o.isBigIntegerSchema())r!=null&&(this.writeKey(n),this.writeValue(String(r)));else if(o.isBigDecimalSchema())r!=null&&(this.writeKey(n),this.writeValue(r instanceof Y?r.string:String(r)));else if(o.isTimestampSchema()){if(r instanceof Date)switch(this.writeKey(n),Ze(o,this.settings)){case 5:this.writeValue(r.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(br(r));break;case 7:this.writeValue(String(r.getTime()/1e3));break}}else if(o.isDocumentSchema())Array.isArray(r)?this.write(79,r,n):r instanceof Date?this.write(4,r,n):r instanceof Uint8Array?this.write(21,r,n):r&&typeof r=="object"?this.write(143,r,n):(this.writeKey(n),this.writeValue(String(r)));else if(o.isListSchema()){if(Array.isArray(r))if(r.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(""));else{let s=o.getValueSchema(),i=this.settings.flattenLists||o.getMergedTraits().xmlFlattened,a=1;for(let c of r){if(c==null)continue;let u=s.getMergedTraits(),f=this.getKey("member",u.xmlName,u.ec2QueryName),m=i?`${n}${a}`:`${n}${f}.${a}`;this.write(s,c,m),++a}}}else if(o.isMapSchema()){if(r&&typeof r=="object"){let s=o.getKeySchema(),i=o.getValueSchema(),a=o.getMergedTraits().xmlFlattened,c=1;for(let u in r){let f=r[u];if(f==null)continue;let m=s.getMergedTraits(),y=this.getKey("key",m.xmlName,m.ec2QueryName),_=a?`${n}${c}.${y}`:`${n}entry.${c}.${y}`,C=i.getMergedTraits(),A=this.getKey("value",C.xmlName,C.ec2QueryName),x=a?`${n}${c}.${A}`:`${n}entry.${c}.${A}`;this.write(s,u,_),this.write(i,f,x),++c}}}else if(o.isStructSchema()){if(r&&typeof r=="object"){let s=!1;for(let[i,a]of o.structIterator()){if(r[i]==null&&!a.isIdempotencyToken())continue;let c=a.getMergedTraits(),u=this.getKey(i,c.xmlName,c.ec2QueryName,"struct"),f=`${n}${u}`;this.write(a,r[i],f),s=!0}if(!s&&o.isUnionSchema()){let{$unknown:i}=r;if(Array.isArray(i)){let[a,c]=i,u=`${n}${a}`;this.write(15,c,u)}}}}else if(!o.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${o.getName(!0)}`)}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");let e=this.buffer;return delete this.buffer,e}getKey(e,r,n,o){let{ec2:s,capitalizeKeys:i}=this.settings;if(s&&n)return n;let a=r??e;return i&&o==="struct"?a[0].toUpperCase()+a.slice(1):a}writeKey(e){e.endsWith(".")&&(e=e.slice(0,e.length-1)),this.buffer+=`&${vo(e)}=`}writeValue(e){this.buffer+=vo(e)}}});var Ia,N$=g(()=>{V();ae();Nl();Hy();L$();Ia=class extends Qn{options;serializer;deserializer;mixin=new Zn;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries}),this.options=e;let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new Vl(r),this.deserializer=new Da(r)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);o.path.endsWith("/")||(o.path+="/"),o.headers["content-type"]="application/x-www-form-urlencoded",(mn(e.input)==="unit"||!o.body)&&(o.body="");let s=e.name.split("#")[1]??e.name;return o.body=`Action=${s}&Version=${this.options.version}`+o.body,o.body.endsWith("&")&&(o.body=o.body.slice(-1)),o}async deserializeResponse(e,r,n){let o=this.deserializer,s=B.of(e.output),i={};if(n.statusCode>=300){let f=await At(n.body,r);f.byteLength>0&&Object.assign(i,await o.read(15,f)),await this.handleError(e,r,n,i,this.deserializeMetadata(n))}for(let f in n.headers){let m=n.headers[f];delete n.headers[f],n.headers[f.toLowerCase()]=m}let a=e.name.split("#")[1]??e.name,c=s.isStructSchema()&&this.useNestedResult()?a+"Result":void 0,u=await At(n.body,r);return u.byteLength>0&&Object.assign(i,await o.read(s,u,c)),i.$metadata=this.deserializeMetadata(n),i}useNestedResult(){return!0}async handleError(e,r,n,o,s){let i=this.loadQueryErrorCode(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace);let a=this.loadQueryError(o)??{},c=this.loadQueryErrorMessage(o);a.message=c,a.Error={Type:a.Type,Code:a.Code,Message:c};let{errorSchema:u,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,a,s,this.mixin.findQueryCompatibleError),m=B.of(u),y=this.compositeErrorRegistry.getErrorCtor(u)??Error,_=new y({}),C={Type:a.Error.Type,Code:a.Error.Code,Error:a.Error};for(let[A,x]of m.structIterator()){let T=x.getMergedTraits().xmlName??A,I=a[T]??o[T];C[A]=this.deserializer.readSchema(x,I)}throw this.mixin.decorateServiceException(Object.assign(_,f,{$fault:m.getMergedTraits().error,message:c},C),o)}loadQueryErrorCode(e,r){let n=(r.Errors?.[0]?.Error??r.Errors?.Error??r.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return"NotFound"}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let r=this.loadQueryError(e);return r?.message??r?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}});var jy,J6=g(()=>{N$();jy=class extends Ia{options;constructor(e){super(e),this.options=e;let r={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0};Object.assign(this.serializer.settings,r)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return!1}}});var X6,F$,Z6,zy,B$=g(()=>{X6=De(qy());J();T$();F$=(t,e)=>vy(t,e).then(r=>{if(r.length){let n;try{n=(0,X6.parseXML)(r)}catch(a){throw a&&typeof a=="object"&&Object.defineProperty(a,"$responseBodyText",{value:r}),a}let o="#text",s=Object.keys(n)[0],i=n[s];return i[o]&&(i[s]=i[o],delete i[o]),_c(i)}return{}}),Z6=async(t,e)=>{let r=await F$(t,e);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},zy=(t,e)=>{if(e?.Error?.Code!==void 0)return e.Error.Code;if(e?.Code!==void 0)return e.Code;if(t.statusCode==404)return"NotFound"}});var tn,Wl,U$=g(()=>{tn=De(qy());V();ae();j();j();Bo();Wl=class extends ht{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,r){let n=B.of(e);if(n.isStringSchema()&&typeof r=="string")this.stringBuffer=r;else if(n.isBlobSchema())this.byteBuffer="byteLength"in r?r:(this.serdeContext?.base64Decoder??Xe)(r);else{this.buffer=this.writeStruct(n,r,void 0);let o=n.getMergedTraits();o.httpPayload&&!o.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let r=this.byteBuffer;return delete this.byteBuffer,r}if(this.stringBuffer!==void 0){let r=this.stringBuffer;return delete this.stringBuffer,r}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,r,n){let o=e.getMergedTraits(),s=e.isMemberSchema()&&!o.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():o.xmlName??e.getName();if(!s||!e.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let i=tn.XmlNode.of(s),[a,c]=this.getXmlnsAttribute(e,n);for(let[f,m]of e.structIterator()){let y=r[f];if(y!=null||m.isIdempotencyToken()){if(m.getMergedTraits().xmlAttribute){i.addAttribute(m.getMergedTraits().xmlName??f,this.writeSimple(m,y));continue}if(m.isListSchema())this.writeList(m,y,i,c);else if(m.isMapSchema())this.writeMap(m,y,i,c);else if(m.isStructSchema())i.addChildNode(this.writeStruct(m,y,c));else{let _=tn.XmlNode.of(m.getMergedTraits().xmlName??m.getMemberName());this.writeSimpleInto(m,y,_,c),i.addChildNode(_)}}}let{$unknown:u}=r;if(u&&e.isUnionSchema()&&Array.isArray(u)&&Object.keys(r).length===1){let[f,m]=u,y=tn.XmlNode.of(f);if(typeof m!="string")if(r instanceof tn.XmlNode||r instanceof tn.XmlText)i.addChildNode(r);else throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,m,y,c),i.addChildNode(y)}return c&&i.addAttribute(a,c),i}writeList(e,r,n,o){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let s=e.getMergedTraits(),i=e.getValueSchema(),a=i.getMergedTraits(),c=!!a.sparse,u=!!s.xmlFlattened,[f,m]=this.getXmlnsAttribute(e,o),y=(_,C)=>{if(i.isListSchema())this.writeList(i,Array.isArray(C)?C:[C],_,m);else if(i.isMapSchema())this.writeMap(i,C,_,m);else if(i.isStructSchema()){let A=this.writeStruct(i,C,m);_.addChildNode(A.withName(u?s.xmlName??e.getMemberName():a.xmlName??"member"))}else{let A=tn.XmlNode.of(u?s.xmlName??e.getMemberName():a.xmlName??"member");this.writeSimpleInto(i,C,A,m),_.addChildNode(A)}};if(u)for(let _ of r)(c||_!=null)&&y(n,_);else{let _=tn.XmlNode.of(s.xmlName??e.getMemberName());m&&_.addAttribute(f,m);for(let C of r)(c||C!=null)&&y(_,C);n.addChildNode(_)}}writeMap(e,r,n,o,s=!1){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let i=e.getMergedTraits(),a=e.getKeySchema(),u=a.getMergedTraits().xmlName??"key",f=e.getValueSchema(),m=f.getMergedTraits(),y=m.xmlName??"value",_=!!m.sparse,C=!!i.xmlFlattened,[A,x]=this.getXmlnsAttribute(e,o),T=(I,q,H)=>{let me=tn.XmlNode.of(u,q),[et,ot]=this.getXmlnsAttribute(a,x);ot&&me.addAttribute(et,ot),I.addChildNode(me);let tt=tn.XmlNode.of(y);f.isListSchema()?this.writeList(f,H,tt,x):f.isMapSchema()?this.writeMap(f,H,tt,x,!0):f.isStructSchema()?tt=this.writeStruct(f,H,x):this.writeSimpleInto(f,H,tt,x),I.addChildNode(tt)};if(C)for(let I in r){let q=r[I];if(_||q!=null){let H=tn.XmlNode.of(i.xmlName??e.getMemberName());T(H,I,q),n.addChildNode(H)}}else{let I;s||(I=tn.XmlNode.of(i.xmlName??e.getMemberName()),x&&I.addAttribute(A,x),n.addChildNode(I));for(let q in r){let H=r[q];if(_||H!=null){let me=tn.XmlNode.of("entry");T(me,q,H),(s?n:I).addChildNode(me)}}}}writeSimple(e,r){if(r===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let n=B.of(e),o=null;if(r&&typeof r=="object")if(n.isBlobSchema())o=(this.serdeContext?.base64Encoder??Ie)(r);else if(n.isTimestampSchema()&&r instanceof Date)switch(Ze(n,this.settings)){case 5:o=r.toISOString().replace(".000Z","Z");break;case 6:o=br(r);break;case 7:o=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",r),o=br(r);break}else{if(n.isBigDecimalSchema()&&r)return r instanceof Y?r.string:String(r);throw n.isMapSchema()||n.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`)}if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(o=String(r)),n.isStringSchema()&&(r===void 0&&n.isIdempotencyToken()?o=xr():o=String(r)),o===null)throw new Error(`Unhandled schema-value pair ${n.getName(!0)}=${r}`);return o}writeSimpleInto(e,r,n,o){let s=this.writeSimple(e,r),i=B.of(e),a=new tn.XmlText(s),[c,u]=this.getXmlnsAttribute(i,o);u&&n.addAttribute(c,u),n.addChildNode(a)}getXmlnsAttribute(e,r){let n=e.getMergedTraits(),[o,s]=n.xmlNamespace??[];return s&&s!==r?[o?`xmlns:${o}`:"xmlns",s]:[void 0,void 0]}}});var Kl,G$=g(()=>{Bo();Hy();U$();Kl=class extends ht{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Wl(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Da(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var Ql,e5=g(()=>{V();ae();Nl();B$();G$();Ql=class extends la{codec;serializer;deserializer;mixin=new Zn;constructor(e){super(e);let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new Kl(r),this.serializer=new ma(this.codec.createSerializer(),r),this.deserializer=new fa(this.codec.createDeserializer(),r)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n),s=B.of(e.input);if(!o.headers["content-type"]){let i=this.mixin.resolveRestContentType(this.getDefaultContentType(),s);i&&(o.headers["content-type"]=i)}return typeof o.body=="string"&&o.headers["content-type"]===this.getDefaultContentType()&&!o.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(s)&&(o.body='<?xml version="1.0" encoding="UTF-8"?>'+o.body),o}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,o,s){let i=zy(n,o)??"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace),o.Error&&typeof o.Error=="object")for(let A of Object.keys(o.Error))o[A]=o.Error[A],A.toLowerCase()==="message"&&(o.message=o.Error[A]);o.RequestId&&!s.requestId&&(s.requestId=o.RequestId);let{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,o,s),u=B.of(a),f=o.Error?.message??o.Error?.Message??o.message??o.Message??"UnknownError",m=this.compositeErrorRegistry.getErrorCtor(a)??Error,y=new m({});await this.deserializeHttpMessage(a,r,n,o);let _={},C=this.codec.createDeserializer();for(let[A,x]of u.structIterator()){let T=x.getMergedTraits().xmlName??A,I=o.Error?.[T]??o[T];_[A]=C.readSchema(x,I)}throw this.mixin.decorateServiceException(Object.assign(y,c,{$fault:u.getMergedTraits().error,message:f},_),o)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(let[,r]of e.structIterator())if(r.getMergedTraits().httpPayload)return!(r.isStructSchema()||r.isMapSchema()||r.isListSchema());return!1}}});var t5,r5=g(()=>{j();t5=t=>{if(t!=null)return typeof t=="object"&&"__type"in t&&delete t.__type,Bh(t)}});var n5,o5,s5,i5=g(()=>{n5=t=>{if(t==null)return t;if(typeof t=="number"||typeof t=="bigint"){let e=new Error(`Received number ${t} where a string was expected.`);return e.name="Warning",console.warn(e),String(t)}if(typeof t=="boolean"){let e=new Error(`Received boolean ${t} where a string was expected.`);return e.name="Warning",console.warn(e),String(t)}return t},o5=t=>{if(t==null)return t;if(typeof t=="string"){let e=t.toLowerCase();if(t!==""&&e!=="false"&&e!=="true"){let r=new Error(`Received string "${t}" where a boolean was expected.`);r.name="Warning",console.warn(r)}return t!==""&&e!=="false"}return t},s5=t=>{if(t==null)return t;if(typeof t=="string"){let e=Number(t);if(e.toString()!==t){let r=new Error(`Received string "${t}" where a number was expected.`);return r.name="Warning",console.warn(r),t}return e}return t}});var Vy={};Ct(Vy,{AwsEc2QueryProtocol:()=>jy,AwsJson1_0Protocol:()=>Ly,AwsJson1_1Protocol:()=>Ny,AwsJsonRpcProtocol:()=>va,AwsQueryProtocol:()=>Ia,AwsRestJsonProtocol:()=>Ks,AwsRestXmlProtocol:()=>Ql,AwsSmithyRpcV2CborProtocol:()=>Ry,JsonCodec:()=>By,JsonCodec2:()=>Ta,JsonShapeDeserializer:()=>jl,JsonShapeDeserializer2:()=>Gl,JsonShapeSerializer:()=>zl,JsonShapeSerializer2:()=>Hl,QueryShapeSerializer:()=>Vl,XmlCodec:()=>Kl,XmlShapeDeserializer:()=>Da,XmlShapeSerializer:()=>Wl,_toBool:()=>o5,_toNum:()=>s5,_toStr:()=>n5,awsExpectUnion:()=>t5,loadJsonRpcErrorCode:()=>Iy,loadRestJsonErrorCode:()=>Dy,loadRestXmlErrorCode:()=>zy,parseJsonBody:()=>Nc,parseJsonErrorBody:()=>L6,parseXmlBody:()=>F$,parseXmlErrorBody:()=>Z6});var Di=g(()=>{k6();j6();z6();My();V6();Q6();P$();O$();ky();D$();w$();Ul();J6();N$();L$();e5();G$();Hy();U$();B$();r5();i5()});var Pf,Fc,Wy,a5,d5,Ky,q$,c5,H$,Yl,u5,l5,$De,En,kDe,p5,f5=g(()=>{He();Pf="ref",Fc=-1,Wy=!0,a5="isSet",d5="PartitionResult",Ky="booleanEquals",q$="getAttr",c5={[Pf]:"Endpoint"},H$={[Pf]:d5},Yl={},u5=[{[Pf]:"Region"}],l5={conditions:[[a5,[c5]],[a5,u5],["aws.partition",u5,d5],[Ky,[{[Pf]:"UseFIPS"},Wy]],[Ky,[{[Pf]:"UseDualStack"},Wy]],[Ky,[{fn:q$,argv:[H$,"supportsDualStack"]},Wy]],[Ky,[{fn:q$,argv:[H$,"supportsFIPS"]},Wy]],["stringEquals",[{fn:q$,argv:[H$,"name"]},"aws-us-gov"]]],results:[[Fc],[Fc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Fc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[c5,Yl],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Yl],[Fc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",Yl],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",Yl],[Fc,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",Yl],[Fc,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",Yl],[Fc,"Invalid Configuration: Missing Region"]]},$De=2,En=1e8,kDe=new Int32Array([-1,1,-1,0,13,3,1,4,En+12,2,5,En+12,3,8,6,4,7,En+11,5,En+9,En+10,4,11,9,6,10,En+8,7,En+6,En+7,5,12,En+5,6,En+4,En+5,3,En+1,14,4,En+2,En+3]),p5=Wn.from(kDe,$De,l5.conditions,l5.results)});var MDe,m5,g5=g(()=>{Ee();He();f5();MDe=new Kn({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),m5=(t,e={})=>MDe.get(t,()=>Ts(p5,{endpointParams:t,logger:e.logger}));hn.aws=Lo});var sr,Qy=g(()=>{J();sr=class t extends jn{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var Of,$f,kf,Mf,Lf,Nf,Ff,Bf,Uf,Gf,qf,j$=g(()=>{Qy();Of=class t extends sr{static shapeId="com.amazonaws.ssooidc#AccessDeniedException";name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}},$f=class t extends sr{static shapeId="com.amazonaws.ssooidc#AuthorizationPendingException";name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},kf=class t extends sr{static shapeId="com.amazonaws.ssooidc#ExpiredTokenException";name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Mf=class t extends sr{static shapeId="com.amazonaws.ssooidc#InternalServerException";name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Lf=class t extends sr{static shapeId="com.amazonaws.ssooidc#InvalidClientException";name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Nf=class t extends sr{static shapeId="com.amazonaws.ssooidc#InvalidGrantException";name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Ff=class t extends sr{static shapeId="com.amazonaws.ssooidc#InvalidRequestException";name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}},Bf=class t extends sr{static shapeId="com.amazonaws.ssooidc#InvalidScopeException";name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Uf=class t extends sr{static shapeId="com.amazonaws.ssooidc#SlowDownException";name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Gf=class t extends sr{static shapeId="com.amazonaws.ssooidc#UnauthorizedClientException";name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},qf=class t extends sr{static shapeId="com.amazonaws.ssooidc#UnsupportedGrantTypeException";name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}}});var LDe,NDe,FDe,BDe,UDe,GDe,qDe,HDe,jDe,zDe,VDe,WDe,KDe,QDe,YDe,JDe,XDe,ZDe,eIe,tIe,Qs,rIe,nIe,oIe,sIe,iIe,St,aIe,Uo,cIe,uIe,Go,lIe,h5,S5,dIe,y5,pIe,fIe,mIe,Pt,E5,_5,to,R5,C5,b5,A5,x5,T5,v5,D5,I5,w5,P5,z$,gIe,hIe,SIe,yIe,O5,$5,k5,V$,Yy=g(()=>{ae();j$();Qy();LDe="AccessDeniedException",NDe="AuthorizationPendingException",FDe="AccessToken",BDe="ClientSecret",UDe="CreateToken",GDe="CreateTokenRequest",qDe="CreateTokenResponse",HDe="CodeVerifier",jDe="ExpiredTokenException",zDe="InvalidClientException",VDe="InvalidGrantException",WDe="InvalidRequestException",KDe="InternalServerException",QDe="InvalidScopeException",YDe="IdToken",JDe="RefreshToken",XDe="SlowDownException",ZDe="UnauthorizedClientException",eIe="UnsupportedGrantTypeException",tIe="accessToken",Qs="client",rIe="clientId",nIe="clientSecret",oIe="codeVerifier",sIe="code",iIe="deviceCode",St="error",aIe="expiresIn",Uo="error_description",cIe="grantType",uIe="http",Go="httpError",lIe="idToken",h5="reason",S5="refreshToken",dIe="redirectUri",y5="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",pIe="scope",fIe="server",mIe="tokenType",Pt="com.amazonaws.ssooidc",E5=new Fe(y5),_5=[-3,y5,"SSOOIDCServiceException",0,[],[]];E5.registerError(_5,sr);to=new Fe(Pt),R5=[-3,Pt,LDe,{[St]:Qs,[Go]:400},[St,h5,Uo],[0,0,0]];to.registerError(R5,Of);C5=[-3,Pt,NDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(C5,$f);b5=[-3,Pt,jDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(b5,kf);A5=[-3,Pt,KDe,{[St]:fIe,[Go]:500},[St,Uo],[0,0]];to.registerError(A5,Mf);x5=[-3,Pt,zDe,{[St]:Qs,[Go]:401},[St,Uo],[0,0]];to.registerError(x5,Lf);T5=[-3,Pt,VDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(T5,Nf);v5=[-3,Pt,WDe,{[St]:Qs,[Go]:400},[St,h5,Uo],[0,0,0]];to.registerError(v5,Ff);D5=[-3,Pt,QDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(D5,Bf);I5=[-3,Pt,XDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(I5,Uf);w5=[-3,Pt,ZDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(w5,Gf);P5=[-3,Pt,eIe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(P5,qf);z$=[E5,to],gIe=[0,Pt,FDe,8,0],hIe=[0,Pt,BDe,8,0],SIe=[0,Pt,HDe,8,0],yIe=[0,Pt,YDe,8,0],O5=[0,Pt,JDe,8,0],$5=[3,Pt,GDe,0,[rIe,nIe,cIe,iIe,sIe,S5,pIe,dIe,oIe],[0,[()=>hIe,0],0,0,0,[()=>O5,0],64,0,[()=>SIe,0]],3],k5=[3,Pt,qDe,0,[tIe,mIe,aIe,S5,lIe],[[()=>gIe,0],0,1,[()=>O5,0],[()=>yIe,0]]],V$=[9,Pt,UDe,{[uIe]:["POST","/token",200]},()=>$5,()=>k5]});var M5,L5=g(()=>{rr();Di();jt();On();J();V();j();n$();g5();Yy();M5=t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??Xe,base64Encoder:t?.base64Encoder??Ie,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??m5,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??d6,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new tr},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],logger:t?.logger??new Nr,protocol:t?.protocol??Ks,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:z$,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:t?.serviceId??"SSO OIDC",sha256:t?.sha256??Sn,urlParser:t?.urlParser??Cr,utf8Decoder:t?.utf8Decoder??qt,utf8Encoder:t?.utf8Encoder??ze})});var Jy,N5,F5=g(()=>{bf();Ee();rr();J();ye();en();j();Jy=De(zs());L5();N5=t=>{fs(process.version);let e=As(t),r=()=>e().then(ps),n=M5(t);us(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ue(No,o),bodyLengthChecker:t?.bodyLengthChecker??Es,defaultUserAgentProvider:t?.defaultUserAgentProvider??Mo({serviceId:n.serviceId,clientVersion:ba.version}),maxAttempts:t?.maxAttempts??ue($s,t),region:t?.region??ue(Ar,{...Zr,...o}),requestHandler:Jy.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ue({...Ms,default:async()=>(await r()).retryMode||Yn},t),streamCollector:t?.streamCollector??Jy.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ue(Cs,o),useFipsEndpoint:t?.useFipsEndpoint??ue(bs,o),userAgentAppId:t?.userAgentAppId??ue(Gs,o)}}});var B5,U5,G5=g(()=>{B5=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},U5=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var q5,H5=g(()=>{Ee();J();V();G5();q5=(t,e)=>{let r=Object.assign(qs(t),Co(t),vs(t),B5(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Hs(r),ms(r),Ds(r),U5(r))}});var Hf,W$=g(()=>{Ee();jt();J();ye();He();V();en();ae();n$();o$();F5();H5();Hf=class extends Lr{config;constructor(...[e]){let r=N5(e||{});super(r),this.initConfig=r;let n=f6(r),o=Bs(n),s=ks(o),i=In(s),a=i,c=Ci(a),u=p6(c),f=q5(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(Us(this.config)),this.middlewareStack.use(xi(this.config)),this.middlewareStack.use(Is(this.config)),this.middlewareStack.use(Ls(this.config)),this.middlewareStack.use(Ns(this.config)),this.middlewareStack.use(Fs(this.config)),this.middlewareStack.use($o(this.config,{httpAuthSchemeParametersProvider:l6,identityProviderConfigProvider:async m=>new $n({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(ko(this.config))}destroy(){super.destroy()}}});var j5,z5,V5,W5=g(()=>{J();He();o$();j5=gs(m6,"AWSSSOOIDCService","SSOOIDCClient",bi),z5={},V5=(t,e,r,n)=>[]});var jf,K$=g(()=>{W5();Yy();jf=class extends j5(z5,V5,"CreateToken",V$){}});var EIe,Xy,K5=g(()=>{J();K$();W$();EIe={CreateTokenCommand:jf},Xy=class extends Hf{};ds(EIe,Xy)});var Q5=g(()=>{K$()});var _Ie,RIe,Y5=g(()=>{_Ie={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},RIe={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"}});var J5=g(()=>{});var Q$={};Ct(Q$,{$Command:()=>Xr,AccessDeniedException:()=>Of,AccessDeniedException$:()=>R5,AccessDeniedExceptionReason:()=>_Ie,AuthorizationPendingException:()=>$f,AuthorizationPendingException$:()=>C5,CreateToken$:()=>V$,CreateTokenCommand:()=>jf,CreateTokenRequest$:()=>$5,CreateTokenResponse$:()=>k5,ExpiredTokenException:()=>kf,ExpiredTokenException$:()=>b5,InternalServerException:()=>Mf,InternalServerException$:()=>A5,InvalidClientException:()=>Lf,InvalidClientException$:()=>x5,InvalidGrantException:()=>Nf,InvalidGrantException$:()=>T5,InvalidRequestException:()=>Ff,InvalidRequestException$:()=>v5,InvalidRequestExceptionReason:()=>RIe,InvalidScopeException:()=>Bf,InvalidScopeException$:()=>D5,SSOOIDC:()=>Xy,SSOOIDCClient:()=>Hf,SSOOIDCServiceException:()=>sr,SSOOIDCServiceException$:()=>_5,SlowDownException:()=>Uf,SlowDownException$:()=>I5,UnauthorizedClientException:()=>Gf,UnauthorizedClientException$:()=>w5,UnsupportedGrantTypeException:()=>qf,UnsupportedGrantTypeException$:()=>P5,__Client:()=>Lr,errorTypeRegistries:()=>z$});var Y$=g(()=>{W$();K5();Q5();J();Yy();Y5();j$();J5();Qy()});var tz=st(zf=>{var{setTokenFeature:CIe}=(Ee(),F(kn)),{getBearerTokenEnvKey:bIe}=(rr(),F(Il)),{TokenProviderError:qo,getSSOTokenFilepath:AIe,parseKnownFiles:xIe,getProfileName:TIe,loadSsoSessionData:vIe,getSSOTokenFromFile:DIe,memoize:IIe,chain:wIe}=(ye(),F(Br)),{promises:PIe}=require("node:fs"),OIe=({logger:t,signingName:e}={})=>async()=>{if(t?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!e)throw new qo("Please pass 'signingName' to compute environment variable key",{logger:t});let r=bIe(e);if(!(r in process.env))throw new qo(`Token not present in '${r}' environment variable`,{logger:t});let n={token:process.env[r]};return CIe(n,"BEARER_SERVICE_ENV_VARS","3"),n},$Ie=300*1e3,J$="To refresh this SSO session run 'aws sso login' with the corresponding profile.",kIe=async(t,e={},r)=>{let{SSOOIDCClient:n}=(Y$(),F(Q$)),o=i=>e.clientConfig?.[i]??e.parentClientConfig?.[i]??r?.[i];return new n(Object.assign({},e.clientConfig??{},{region:t??e.clientConfig?.region,logger:o("logger"),userAgentAppId:o("userAgentAppId")}))},MIe=async(t,e,r={},n)=>{let{CreateTokenCommand:o}=(Y$(),F(Q$));return(await kIe(e,r,n)).send(new o({clientId:t.clientId,clientSecret:t.clientSecret,refreshToken:t.refreshToken,grantType:"refresh_token"}))},X5=t=>{if(t.expiration&&t.expiration.getTime()<Date.now())throw new qo(`Token is expired. ${J$}`,!1)},Bc=(t,e,r=!1)=>{if(typeof e>"u")throw new qo(`Value not present for '${t}' in SSO Token${r?". Cannot refresh":""}. ${J$}`,!1)},{writeFile:LIe}=PIe,NIe=(t,e)=>{let r=AIe(t),n=JSON.stringify(e,null,2);return LIe(r,n)},Z5=new Map,ez=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/token-providers - fromSso");let r=await xIe(t),n=TIe({profile:t.profile??e?.profile}),o=r[n];if(o){if(!o.sso_session)throw new qo(`Profile '${n}' is missing required property 'sso_session'.`)}else throw new qo(`Profile '${n}' could not be found in shared credentials file.`,!1);let s=o.sso_session,a=(await vIe(t))[s];if(!a)throw new qo(`Sso session '${s}' could not be found in shared credentials file.`,!1);for(let C of["sso_start_url","sso_region"])if(!a[C])throw new qo(`Sso session '${s}' is missing required property '${C}'.`,!1);a.sso_start_url;let c=a.sso_region,u;try{u=await DIe(s)}catch{throw new qo(`The SSO session token associated with profile=${n} was not found or is invalid. ${J$}`,!1)}Bc("accessToken",u.accessToken),Bc("expiresAt",u.expiresAt);let{accessToken:f,expiresAt:m}=u,y={token:f,expiration:new Date(m)};if(y.expiration.getTime()-Date.now()>$Ie)return y;let _=Z5.get(s)??0;if(Date.now()-_<30*1e3)return X5(y),y;Bc("clientId",u.clientId,!0),Bc("clientSecret",u.clientSecret,!0),Bc("refreshToken",u.refreshToken,!0);try{Z5.set(s,Date.now());let C=await MIe(u,c,t,e);Bc("accessToken",C.accessToken),Bc("expiresIn",C.expiresIn);let A=new Date(Date.now()+C.expiresIn*1e3);try{await NIe(s,{...u,accessToken:C.accessToken,expiresAt:A.toISOString(),refreshToken:C.refreshToken})}catch{}return{token:C.accessToken,expiration:A}}catch{return X5(y),y}},FIe=({token:t,logger:e})=>async()=>{if(e?.debug("@aws-sdk/token-providers - fromStatic"),!t||!t.token)throw new qo("Please pass a valid token to fromStatic",!1);return t},BIe=(t={})=>IIe(wIe(ez(t),async()=>{throw new qo("Could not load token from any providers",!1)}),e=>e.expiration!==void 0&&e.expiration.getTime()-Date.now()<3e5,e=>e.expiration!==void 0);zf.fromEnvSigningName=OIe;zf.fromSso=ez;zf.fromStatic=FIe;zf.nodeProvider=BIe});function UIe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function GIe(t){return{schemeId:"smithy.api#noAuth"}}var rz,nz,oz,X$=g(()=>{rr();J();rz=async(t,e,r)=>({operation:Le(e).operation,region:await we(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});nz=t=>{let e=[];return t.operation==="GetRoleCredentials"?e.push(GIe(t)):e.push(UIe(t)),e},oz=t=>{let e=js(t);return Object.assign(e,{authSchemePreference:we(t.authSchemePreference??[])})}});var sz,iz,Z$=g(()=>{sz=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}),iz={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var Vf,Uc,Zy,az,dz,eE,ek,cz,tk,Jl,uz,lz,qIe,_n,HIe,pz,fz=g(()=>{He();Vf="ref",Uc=-1,Zy=!0,az="isSet",dz="PartitionResult",eE="booleanEquals",ek="getAttr",cz={[Vf]:"Endpoint"},tk={[Vf]:dz},Jl={},uz=[{[Vf]:"Region"}],lz={conditions:[[az,[cz]],[az,uz],["aws.partition",uz,dz],[eE,[{[Vf]:"UseFIPS"},Zy]],[eE,[{[Vf]:"UseDualStack"},Zy]],[eE,[{fn:ek,argv:[tk,"supportsDualStack"]},Zy]],[eE,[{fn:ek,argv:[tk,"supportsFIPS"]},Zy]],["stringEquals",[{fn:ek,argv:[tk,"name"]},"aws-us-gov"]]],results:[[Uc],[Uc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Uc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[cz,Jl],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Jl],[Uc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",Jl],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",Jl],[Uc,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",Jl],[Uc,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",Jl],[Uc,"Invalid Configuration: Missing Region"]]},qIe=2,_n=1e8,HIe=new Int32Array([-1,1,-1,0,13,3,1,4,_n+12,2,5,_n+12,3,8,6,4,7,_n+11,5,_n+9,_n+10,4,11,9,6,10,_n+8,7,_n+6,_n+7,5,12,_n+5,6,_n+4,_n+5,3,_n+1,14,4,_n+2,_n+3]),pz=Wn.from(HIe,qIe,lz.conditions,lz.results)});var jIe,mz,gz=g(()=>{Ee();He();fz();jIe=new Kn({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),mz=(t,e={})=>jIe.get(t,()=>Ts(pz,{endpointParams:t,logger:e.logger}));hn.aws=Lo});var Ho,tE=g(()=>{J();Ho=class t extends jn{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sso#SSOServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var Wf,Kf,Qf,Yf,rk=g(()=>{tE();Wf=class t extends Ho{static shapeId="com.amazonaws.sso#InvalidRequestException";name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Kf=class t extends Ho{static shapeId="com.amazonaws.sso#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Qf=class t extends Ho{static shapeId="com.amazonaws.sso#TooManyRequestsException";name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Yf=class t extends Ho{static shapeId="com.amazonaws.sso#UnauthorizedException";name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}}});var zIe,VIe,WIe,KIe,QIe,YIe,JIe,XIe,ZIe,ewe,twe,rwe,nwe,owe,swe,rE,nE,iwe,awe,oE,cwe,hz,sE,uwe,lwe,dwe,Sz,pwe,fwe,mwe,ro,yz,Ez,Jf,_z,Rz,Cz,bz,nk,gwe,hwe,Swe,Az,xz,Tz,ok,iE=g(()=>{ae();rk();tE();zIe="AccessTokenType",VIe="GetRoleCredentials",WIe="GetRoleCredentialsRequest",KIe="GetRoleCredentialsResponse",QIe="InvalidRequestException",YIe="RoleCredentials",JIe="ResourceNotFoundException",XIe="SecretAccessKeyType",ZIe="SessionTokenType",ewe="TooManyRequestsException",twe="UnauthorizedException",rwe="accountId",nwe="accessKeyId",owe="accessToken",swe="account_id",rE="client",nE="error",iwe="expiration",awe="http",oE="httpError",cwe="httpHeader",hz="httpQuery",sE="message",uwe="roleCredentials",lwe="roleName",dwe="role_name",Sz="smithy.ts.sdk.synthetic.com.amazonaws.sso",pwe="secretAccessKey",fwe="sessionToken",mwe="x-amz-sso_bearer_token",ro="com.amazonaws.sso",yz=new Fe(Sz),Ez=[-3,Sz,"SSOServiceException",0,[],[]];yz.registerError(Ez,Ho);Jf=new Fe(ro),_z=[-3,ro,QIe,{[nE]:rE,[oE]:400},[sE],[0]];Jf.registerError(_z,Wf);Rz=[-3,ro,JIe,{[nE]:rE,[oE]:404},[sE],[0]];Jf.registerError(Rz,Kf);Cz=[-3,ro,ewe,{[nE]:rE,[oE]:429},[sE],[0]];Jf.registerError(Cz,Qf);bz=[-3,ro,twe,{[nE]:rE,[oE]:401},[sE],[0]];Jf.registerError(bz,Yf);nk=[yz,Jf],gwe=[0,ro,zIe,8,0],hwe=[0,ro,XIe,8,0],Swe=[0,ro,ZIe,8,0],Az=[3,ro,WIe,0,[lwe,rwe,owe],[[0,{[hz]:dwe}],[0,{[hz]:swe}],[()=>gwe,{[cwe]:mwe}]],3],xz=[3,ro,KIe,0,[uwe],[[()=>Tz,0]]],Tz=[3,ro,YIe,0,[nwe,pwe,fwe,iwe],[0,[()=>hwe,0],[()=>Swe,0],1]],ok=[9,ro,VIe,{[awe]:["GET","/federation/credentials",200]},()=>Az,()=>xz]});var vz,Dz=g(()=>{rr();Di();jt();On();J();V();j();X$();gz();iE();vz=t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??Xe,base64Encoder:t?.base64Encoder??Ie,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??mz,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??nz,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new tr},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],logger:t?.logger??new Nr,protocol:t?.protocol??Ks,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:nk,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:t?.serviceId??"SSO",sha256:t?.sha256??Sn,urlParser:t?.urlParser??Cr,utf8Decoder:t?.utf8Decoder??qt,utf8Encoder:t?.utf8Encoder??ze})});var aE,Iz,wz=g(()=>{bf();Ee();rr();J();ye();en();j();aE=De(zs());Dz();Iz=t=>{fs(process.version);let e=As(t),r=()=>e().then(ps),n=vz(t);us(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ue(No,o),bodyLengthChecker:t?.bodyLengthChecker??Es,defaultUserAgentProvider:t?.defaultUserAgentProvider??Mo({serviceId:n.serviceId,clientVersion:ba.version}),maxAttempts:t?.maxAttempts??ue($s,t),region:t?.region??ue(Ar,{...Zr,...o}),requestHandler:aE.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ue({...Ms,default:async()=>(await r()).retryMode||Yn},t),streamCollector:t?.streamCollector??aE.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ue(Cs,o),useFipsEndpoint:t?.useFipsEndpoint??ue(bs,o),userAgentAppId:t?.userAgentAppId??ue(Gs,o)}}});var Pz,Oz,$z=g(()=>{Pz=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},Oz=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var kz,Mz=g(()=>{Ee();J();V();$z();kz=(t,e)=>{let r=Object.assign(qs(t),Co(t),vs(t),Pz(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Hs(r),ms(r),Ds(r),Oz(r))}});var Xf,sk=g(()=>{Ee();jt();J();ye();He();V();en();ae();X$();Z$();wz();Mz();Xf=class extends Lr{config;constructor(...[e]){let r=Iz(e||{});super(r),this.initConfig=r;let n=sz(r),o=Bs(n),s=ks(o),i=In(s),a=i,c=Ci(a),u=oz(c),f=kz(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(Us(this.config)),this.middlewareStack.use(xi(this.config)),this.middlewareStack.use(Is(this.config)),this.middlewareStack.use(Ls(this.config)),this.middlewareStack.use(Ns(this.config)),this.middlewareStack.use(Fs(this.config)),this.middlewareStack.use($o(this.config,{httpAuthSchemeParametersProvider:rz,identityProviderConfigProvider:async m=>new $n({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(ko(this.config))}destroy(){super.destroy()}}});var Lz,Nz,Fz,Bz=g(()=>{J();He();Z$();Lz=gs(iz,"SWBPortalService","SSOClient",bi),Nz={},Fz=(t,e,r,n)=>[]});var Zf,ik=g(()=>{Bz();iE();Zf=class extends Lz(Nz,Fz,"GetRoleCredentials",ok){}});var ywe,cE,Uz=g(()=>{J();ik();sk();ywe={GetRoleCredentialsCommand:Zf},cE=class extends Xf{};ds(ywe,cE)});var Gz=g(()=>{ik()});var qz=g(()=>{});var Hz={};Ct(Hz,{$Command:()=>Xr,GetRoleCredentials$:()=>ok,GetRoleCredentialsCommand:()=>Zf,GetRoleCredentialsRequest$:()=>Az,GetRoleCredentialsResponse$:()=>xz,InvalidRequestException:()=>Wf,InvalidRequestException$:()=>_z,ResourceNotFoundException:()=>Kf,ResourceNotFoundException$:()=>Rz,RoleCredentials$:()=>Tz,SSO:()=>cE,SSOClient:()=>Xf,SSOServiceException:()=>Ho,SSOServiceException$:()=>Ez,TooManyRequestsException:()=>Qf,TooManyRequestsException$:()=>Cz,UnauthorizedException:()=>Yf,UnauthorizedException$:()=>bz,__Client:()=>Lr,errorTypeRegistries:()=>nk});var jz=g(()=>{sk();Uz();Gz();J();iE();rk();qz();tE()});var zz=st(ak=>{var{GetRoleCredentialsCommand:Ewe,SSOClient:_we}=(jz(),F(Hz));ak.GetRoleCredentialsCommand=Ewe;ak.SSOClient=_we});var ck=st(uE=>{var{CredentialsProviderError:jo,getSSOTokenFromFile:Rwe,getProfileName:Cwe,parseKnownFiles:bwe,loadSsoSessionData:Awe}=(ye(),F(Br)),{setCredentialFeature:Vz}=(Ee(),F(kn)),{fromSso:xwe}=tz(),Kz=t=>t&&(typeof t.sso_start_url=="string"||typeof t.sso_account_id=="string"||typeof t.sso_session=="string"||typeof t.sso_region=="string"||typeof t.sso_role_name=="string"),em=!1,Wz=async({ssoStartUrl:t,ssoSession:e,ssoAccountId:r,ssoRegion:n,ssoRoleName:o,ssoClient:s,clientConfig:i,parentClientConfig:a,callerClientConfig:c,profile:u,filepath:f,configFilepath:m,ignoreCache:y,logger:_})=>{let C,A="To refresh this SSO session run aws sso login with the corresponding profile.";if(e)try{let fn=await xwe({profile:u,filepath:f,configFilepath:m,ignoreCache:y,clientConfig:i,parentClientConfig:a,logger:_})({callerClientConfig:c});C={accessToken:fn.token,expiresAt:new Date(fn.expiration).toISOString()}}catch(fn){throw new jo(fn.message,{tryNextLink:em,logger:_})}else try{C=await Rwe(t)}catch{throw new jo(`The SSO session associated with this profile is invalid. ${A}`,{tryNextLink:em,logger:_})}if(new Date(C.expiresAt).getTime()-Date.now()<=0)throw new jo(`The SSO session associated with this profile has expired. ${A}`,{tryNextLink:em,logger:_});let{accessToken:x}=C,{SSOClient:T,GetRoleCredentialsCommand:I}=zz(),q=s||new T(Object.assign({},i??{},{logger:i?.logger??c?.logger??a?.logger,region:i?.region??n,userAgentAppId:i?.userAgentAppId??c?.userAgentAppId??a?.userAgentAppId})),H;try{H=await q.send(new I({accountId:r,roleName:o,accessToken:x}))}catch(fn){throw new jo(fn,{tryNextLink:em,logger:_})}let{roleCredentials:{accessKeyId:me,secretAccessKey:et,sessionToken:ot,expiration:tt,credentialScope:pt,accountId:Yr}={}}=H;if(!me||!et||!ot||!tt)throw new jo("SSO returns an invalid temporary credential.",{tryNextLink:em,logger:_});let Jr={accessKeyId:me,secretAccessKey:et,sessionToken:ot,expiration:new Date(tt),...pt&&{credentialScope:pt},...Yr&&{accountId:Yr}};return e?Vz(Jr,"CREDENTIALS_SSO","s"):Vz(Jr,"CREDENTIALS_SSO_LEGACY","u"),Jr},Qz=(t,e)=>{let{sso_start_url:r,sso_account_id:n,sso_region:o,sso_role_name:s}=t;if(!r||!n||!o||!s)throw new jo(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(t).join(", ")}
|
|
50
|
-
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:e});return t},Twe=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:o,ssoRoleName:s,ssoSession:i}=t,{ssoClient:a}=t,c=Cwe({profile:t.profile??e?.profile});if(!r&&!n&&!o&&!s&&!i){let f=(await bwe(t))[c];if(!f)throw new jo(`Profile ${c} was not found.`,{logger:t.logger});if(!Kz(f))throw new jo(`Profile ${c} is not configured with SSO credentials.`,{logger:t.logger});if(f?.sso_session){let T=(await Awe(t))[f.sso_session],I=` configurations in profile ${c} and sso-session ${f.sso_session}`;if(o&&o!==T.sso_region)throw new jo("Conflicting SSO region"+I,{tryNextLink:!1,logger:t.logger});if(r&&r!==T.sso_start_url)throw new jo("Conflicting SSO start_url"+I,{tryNextLink:!1,logger:t.logger});f.sso_region=T.sso_region,f.sso_start_url=T.sso_start_url}let{sso_start_url:m,sso_account_id:y,sso_region:_,sso_role_name:C,sso_session:A}=Qz(f,t.logger);return Wz({ssoStartUrl:m,ssoSession:A,ssoAccountId:y,ssoRegion:_,ssoRoleName:C,ssoClient:a,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:c,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}else{if(!r||!n||!o||!s)throw new jo('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return Wz({ssoStartUrl:r,ssoSession:i,ssoAccountId:n,ssoRegion:o,ssoRoleName:s,ssoClient:a,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:c,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}};uE.fromSSO=Twe;uE.isSsoProfile=Kz;uE.validateSsoProfile=Qz});var rm=st(dE=>{var{SignatureV4:vwe,signatureV4aContainer:Yz}=BO(),tm={CrtSignerV4:null},uk="X-Amz-S3session-Token",Jz=uk.toLowerCase(),lE=class extends vwe{async signWithCredentials(e,r,n){let o=Xz(r);e.headers[Jz]=r.sessionToken;let s=this;return Zz(s,o),s.signRequest(e,n??{})}async presignWithCredentials(e,r,n){let o=Xz(r);return delete e.headers[Jz],e.headers[uk]=r.sessionToken,e.query=e.query??{},e.query[uk]=r.sessionToken,Zz(this,o),this.presign(e,n)}};function Xz(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}function Zz(t,e){let r=t.credentialProvider;t.credentialProvider=()=>(t.credentialProvider=r,Promise.resolve(e))}var lk=class{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof tm.CrtSignerV4=="function"?"crt":typeof Yz.SignatureV4a=="function"?"js":"none"}constructor(e){this.sigv4Signer=new lE(e),this.signerOptions=e}async sign(e,r={}){return r.signingRegion==="*"?this.getSigv4aSigner().sign(e,r):this.sigv4Signer.sign(e,r)}async signWithCredentials(e,r,n={}){if(n.signingRegion==="*"){let o=this.getSigv4aSigner(),s=tm.CrtSignerV4;if(s&&o instanceof s)return o.signWithCredentials(e,r,n);throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,r,n)}async presign(e,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),o=tm.CrtSignerV4;if(o&&n instanceof o)return n.presign(e,r);throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,r)}async presignWithCredentials(e,r,n={}){if(n.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,r,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=tm.CrtSignerV4,r=Yz.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!r)throw new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e=="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(r&&typeof r=="function")this.sigv4aSigner=new r({...this.signerOptions});else throw new Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!r||typeof r!="function")throw new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new r({...this.signerOptions})}}return this.sigv4aSigner}};dE.SignatureV4MultiRegion=lk;dE.SignatureV4SignWithCredentials=lE;dE.signatureV4CrtContainer=tm});var Zl,Gc,nm,eV,cV,om,Dr,dk,tV,rV,nV,oV,sV,Ir,pk,Xl,iV,aV,Dwe,Pe,Iwe,uV,lV=g(()=>{He();Zl="ref",Gc=-1,nm=!0,eV="isSet",cV="PartitionResult",om="booleanEquals",Dr="stringEquals",dk="getAttr",tV="us-east-1",rV="sigv4",nV="sts",oV="https://sts.{Region}.{PartitionResult#dnsSuffix}",sV={[Zl]:"Endpoint"},Ir={[Zl]:"Region"},pk={[Zl]:cV},Xl={},iV=[Ir],aV={conditions:[[eV,[sV]],[eV,iV],["aws.partition",iV,cV],[om,[{[Zl]:"UseFIPS"},nm]],[om,[{[Zl]:"UseDualStack"},nm]],[Dr,[Ir,"aws-global"]],[om,[{[Zl]:"UseGlobalEndpoint"},nm]],[Dr,[Ir,"eu-central-1"]],[om,[{fn:dk,argv:[pk,"supportsDualStack"]},nm]],[om,[{fn:dk,argv:[pk,"supportsFIPS"]},nm]],[Dr,[Ir,"ap-south-1"]],[Dr,[Ir,"eu-north-1"]],[Dr,[Ir,"eu-west-1"]],[Dr,[Ir,"eu-west-2"]],[Dr,[Ir,"eu-west-3"]],[Dr,[Ir,"sa-east-1"]],[Dr,[Ir,tV]],[Dr,[Ir,"us-east-2"]],[Dr,[Ir,"us-west-2"]],[Dr,[Ir,"us-west-1"]],[Dr,[Ir,"ca-central-1"]],[Dr,[Ir,"ap-southeast-1"]],[Dr,[Ir,"ap-northeast-1"]],[Dr,[Ir,"ap-southeast-2"]],[Dr,[{fn:dk,argv:[pk,"name"]},"aws-us-gov"]]],results:[[Gc],["https://sts.amazonaws.com",{authSchemes:[{name:rV,signingName:nV,signingRegion:tV}]}],[oV,{authSchemes:[{name:rV,signingName:nV,signingRegion:"{Region}"}]}],[Gc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Gc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[sV,Xl],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Xl],[Gc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",Xl],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",Xl],[Gc,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",Xl],[Gc,"DualStack is enabled but this partition does not support DualStack"],[oV,Xl],[Gc,"Invalid Configuration: Missing Region"]]},Dwe=2,Pe=1e8,Iwe=new Int32Array([-1,1,-1,0,30,3,1,4,Pe+14,2,5,Pe+14,3,25,6,4,24,7,5,Pe+1,8,6,9,Pe+13,7,Pe+1,10,10,Pe+1,11,11,Pe+1,12,12,Pe+1,13,13,Pe+1,14,14,Pe+1,15,15,Pe+1,16,16,Pe+1,17,17,Pe+1,18,18,Pe+1,19,19,Pe+1,20,20,Pe+1,21,21,Pe+1,22,22,Pe+1,23,23,Pe+1,Pe+2,8,Pe+11,Pe+12,4,28,26,9,27,Pe+10,24,Pe+8,Pe+9,8,29,Pe+7,9,Pe+6,Pe+7,3,Pe+3,31,4,Pe+4,Pe+5]),uV=Wn.from(Iwe,Dwe,aV.conditions,aV.results)});var wwe,pE,fk=g(()=>{Ee();He();lV();wwe=new Kn({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),pE=(t,e={})=>wwe.get(t,()=>Ts(uV,{endpointParams:t,logger:e.logger}));hn.aws=Lo});function fV(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function mk(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function mV(t){return{schemeId:"smithy.api#noAuth"}}var dV,Pwe,Owe,pV,$we,kwe,gV,hV,gk=g(()=>{rr();dV=De(rm());J();He();fk();Pwe=t=>async(e,r,n)=>{if(!n)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let o=await t(e,r,n),s=Le(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!s)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let i=await Bp(n,{getEndpointParameterInstructions:s},e);return Object.assign(o,i)},Owe=async(t,e,r)=>({operation:Le(e).operation,region:await we(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),pV=Pwe(Owe);$we=(t,e,r)=>o=>{let i=t(o).properties?.authSchemes;if(!i)return e(o);let a=[];for(let c of i){let{name:u,properties:f={},...m}=c,y=u.toLowerCase();u!==y&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${u}' to '${y}'`);let _;if(y==="sigv4a"){_="aws.auth#sigv4a";let x=i.find(T=>{let I=T.name.toLowerCase();return I!=="sigv4a"&&I.startsWith("sigv4")});if(dV.SignatureV4MultiRegion.sigv4aDependency()==="none"&&x)continue}else if(y.startsWith("sigv4"))_="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let C=r[_];if(!C)throw new Error(`Could not find HttpAuthOption create function for '${_}'`);let A=C(o);A.schemeId=_,A.signingProperties={...A.signingProperties||{},...m,...f},a.push(A)}return a},kwe=t=>{let e=[];return t.operation==="AssumeRoleWithWebIdentity"?(e.push(mV(t)),e.push(mk(t))):(e.push(fV(t)),e.push(mk(t))),e},gV=$we(pE,kwe,{"aws.auth#sigv4":fV,"aws.auth#sigv4a":mk,"smithy.api#noAuth":mV}),hV=t=>{let e=js(t),r=gf(e);return Object.assign(r,{authSchemePreference:we(t.authSchemePreference??[])})}});var SV,yV,hk=g(()=>{SV=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,defaultSigningName:"sts"}),yV={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var Rn,fE=g(()=>{J();Rn=class t extends jn{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sts#STSServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var sm,im,am,cm,um,lm,dm,Sk=g(()=>{fE();sm=class t extends Rn{static shapeId="com.amazonaws.sts#ExpiredTokenException";name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},im=class t extends Rn{static shapeId="com.amazonaws.sts#MalformedPolicyDocumentException";name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},am=class t extends Rn{static shapeId="com.amazonaws.sts#PackedPolicyTooLargeException";name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cm=class t extends Rn{static shapeId="com.amazonaws.sts#RegionDisabledException";name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},um=class t extends Rn{static shapeId="com.amazonaws.sts#IDPRejectedClaimException";name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lm=class t extends Rn{static shapeId="com.amazonaws.sts#InvalidIdentityTokenException";name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},dm=class t extends Rn{static shapeId="com.amazonaws.sts#IDPCommunicationErrorException";name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}}});var Mwe,Lwe,Nwe,Fwe,Bwe,Uwe,yk,Gwe,qwe,Hwe,jwe,Ek,zwe,EV,Vwe,Wwe,Kwe,Qwe,Ywe,Jwe,Xwe,Zwe,_V,RV,CV,ePe,tPe,rPe,nPe,oPe,sPe,bV,iPe,aPe,AV,cPe,xV,uPe,lPe,_k,dPe,pPe,TV,vV,fPe,mPe,gPe,hPe,SPe,yPe,EPe,_Pe,qc,Hc,RPe,jc,zc,Vc,CPe,DV,bPe,it,IV,wV,wa,PV,OV,$V,kV,MV,LV,NV,Rk,APe,xPe,Ck,FV,BV,UV,GV,bk,qV,HV,jV,zV,TPe,vPe,Ak,xk,pm=g(()=>{ae();Sk();fE();Mwe="Arn",Lwe="AccessKeyId",Nwe="AssumeRole",Fwe="AssumedRoleId",Bwe="AssumeRoleRequest",Uwe="AssumeRoleResponse",yk="AssumedRoleUser",Gwe="AssumeRoleWithWebIdentity",qwe="AssumeRoleWithWebIdentityRequest",Hwe="AssumeRoleWithWebIdentityResponse",jwe="Audience",Ek="Credentials",zwe="ContextAssertion",EV="DurationSeconds",Vwe="Expiration",Wwe="ExternalId",Kwe="ExpiredTokenException",Qwe="IDPCommunicationErrorException",Ywe="IDPRejectedClaimException",Jwe="InvalidIdentityTokenException",Xwe="Key",Zwe="MalformedPolicyDocumentException",_V="MinimumSessionTokenSize",RV="Policy",CV="PolicyArns",ePe="ProviderArn",tPe="ProvidedContexts",rPe="ProvidedContextsListType",nPe="ProvidedContext",oPe="PolicyDescriptorType",sPe="ProviderId",bV="PackedPolicySize",iPe="PackedPolicyTooLargeException",aPe="Provider",AV="RoleArn",cPe="RegionDisabledException",xV="RoleSessionName",uPe="SecretAccessKey",lPe="SubjectFromWebIdentityToken",_k="SourceIdentity",dPe="SerialNumber",pPe="SessionToken",TV="SessionTokenSize",vV="SessionTokenUtilization",fPe="Tags",mPe="TokenCode",gPe="TransitiveTagKeys",hPe="Tag",SPe="Value",yPe="WebIdentityToken",EPe="arn",_Pe="accessKeySecretType",qc="awsQueryError",Hc="client",RPe="clientTokenType",jc="error",zc="httpError",Vc="message",CPe="policyDescriptorListType",DV="smithy.ts.sdk.synthetic.com.amazonaws.sts",bPe="tagListType",it="com.amazonaws.sts",IV=new Fe(DV),wV=[-3,DV,"STSServiceException",0,[],[]];IV.registerError(wV,Rn);wa=new Fe(it),PV=[-3,it,Kwe,{[qc]:["ExpiredTokenException",400],[jc]:Hc,[zc]:400},[Vc],[0]];wa.registerError(PV,sm);OV=[-3,it,Qwe,{[qc]:["IDPCommunicationError",400],[jc]:Hc,[zc]:400},[Vc],[0]];wa.registerError(OV,dm);$V=[-3,it,Ywe,{[qc]:["IDPRejectedClaim",403],[jc]:Hc,[zc]:403},[Vc],[0]];wa.registerError($V,um);kV=[-3,it,Jwe,{[qc]:["InvalidIdentityToken",400],[jc]:Hc,[zc]:400},[Vc],[0]];wa.registerError(kV,lm);MV=[-3,it,Zwe,{[qc]:["MalformedPolicyDocument",400],[jc]:Hc,[zc]:400},[Vc],[0]];wa.registerError(MV,im);LV=[-3,it,iPe,{[qc]:["PackedPolicyTooLarge",400],[jc]:Hc,[zc]:400},[Vc],[0]];wa.registerError(LV,am);NV=[-3,it,cPe,{[qc]:["RegionDisabledException",403],[jc]:Hc,[zc]:403},[Vc],[0]];wa.registerError(NV,cm);Rk=[IV,wa],APe=[0,it,_Pe,8,0],xPe=[0,it,RPe,8,0],Ck=[3,it,yk,0,[Fwe,Mwe],[0,0],2],FV=[3,it,Bwe,0,[AV,xV,CV,RV,EV,fPe,gPe,Wwe,dPe,mPe,_k,tPe,_V],[0,0,()=>zV,0,1,()=>vPe,64,0,0,0,0,()=>TPe,1],2],BV=[3,it,Uwe,0,[Ek,yk,bV,_k,vV,TV],[[()=>bk,0],()=>Ck,1,0,1,1]],UV=[3,it,qwe,0,[AV,xV,yPe,sPe,CV,RV,EV,_V],[0,0,[()=>xPe,0],0,()=>zV,0,1,1],3],GV=[3,it,Hwe,0,[Ek,lPe,yk,bV,aPe,jwe,_k,vV,TV],[[()=>bk,0],0,()=>Ck,1,0,0,0,1,1]],bk=[3,it,Ek,0,[Lwe,uPe,pPe,Vwe],[0,[()=>APe,0],0,4],4],qV=[3,it,oPe,0,[EPe],[0]],HV=[3,it,nPe,0,[ePe,zwe],[0,0]],jV=[3,it,hPe,0,[Xwe,SPe],[0,0],2],zV=[1,it,CPe,0,()=>qV],TPe=[1,it,rPe,0,()=>HV],vPe=[1,it,bPe,0,()=>jV],Ak=[9,it,Nwe,0,()=>FV,()=>BV],xk=[9,it,Gwe,0,()=>UV,()=>GV]});var VV,WV,KV=g(()=>{rr();Di();VV=De(rm());jt();On();J();V();j();gk();fk();pm();WV=t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??Xe,base64Encoder:t?.base64Encoder??Ie,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??pE,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??gV,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new tr},{schemeId:"aws.auth#sigv4a",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4a"),signer:new Ti},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],logger:t?.logger??new Nr,protocol:t?.protocol??Ia,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:Rk,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:t?.serviceId??"STS",sha256:t?.sha256??Sn,signerConstructor:t?.signerConstructor??VV.SignatureV4MultiRegion,urlParser:t?.urlParser??Cr,utf8Decoder:t?.utf8Decoder??qt,utf8Encoder:t?.utf8Encoder??ze})});var mE,QV,YV=g(()=>{bf();Ee();rr();jt();J();ye();en();j();mE=De(zs());KV();QV=t=>{fs(process.version);let e=As(t),r=()=>e().then(ps),n=WV(t);us(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ue(No,o),bodyLengthChecker:t?.bodyLengthChecker??Es,defaultUserAgentProvider:t?.defaultUserAgentProvider??Mo({serviceId:n.serviceId,clientVersion:ba.version}),httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:s=>s.getIdentityProvider("aws.auth#sigv4")||(async i=>await t.credentialDefaultProvider(i?.__config||{})()),signer:new tr},{schemeId:"aws.auth#sigv4a",identityProvider:s=>s.getIdentityProvider("aws.auth#sigv4a"),signer:new Ti},{schemeId:"smithy.api#noAuth",identityProvider:s=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],maxAttempts:t?.maxAttempts??ue($s,t),region:t?.region??ue(Ar,{...Zr,...o}),requestHandler:mE.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ue({...Ms,default:async()=>(await r()).retryMode||Yn},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??ue(hf,o),streamCollector:t?.streamCollector??mE.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ue(Cs,o),useFipsEndpoint:t?.useFipsEndpoint??ue(bs,o),userAgentAppId:t?.userAgentAppId??ue(Gs,o)}}});var JV,XV,ZV=g(()=>{JV=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},XV=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var eW,tW=g(()=>{Ee();J();V();ZV();eW=(t,e)=>{let r=Object.assign(qs(t),Co(t),vs(t),JV(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Hs(r),ms(r),Ds(r),XV(r))}});var Pa,gE=g(()=>{Ee();jt();J();ye();He();V();en();ae();gk();hk();YV();tW();Pa=class extends Lr{config;constructor(...[e]){let r=QV(e||{});super(r),this.initConfig=r;let n=SV(r),o=Bs(n),s=ks(o),i=In(s),a=i,c=Ci(a),u=hV(c),f=eW(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(Us(this.config)),this.middlewareStack.use(xi(this.config)),this.middlewareStack.use(Is(this.config)),this.middlewareStack.use(Ls(this.config)),this.middlewareStack.use(Ns(this.config)),this.middlewareStack.use(Fs(this.config)),this.middlewareStack.use($o(this.config,{httpAuthSchemeParametersProvider:pV,identityProviderConfigProvider:async m=>new $n({"aws.auth#sigv4":m.credentials,"aws.auth#sigv4a":m.credentials})})),this.middlewareStack.use(ko(this.config))}destroy(){super.destroy()}}});var hE,SE,yE,Tk=g(()=>{J();He();hk();hE=gs(yV,"AWSSecurityTokenServiceV20110615","STSClient",bi),SE={},yE=(t,e,r,n)=>[]});var Wc,EE=g(()=>{Tk();pm();Wc=class extends hE(SE,yE,"AssumeRole",Ak){}});var Kc,_E=g(()=>{Tk();pm();Kc=class extends hE(SE,yE,"AssumeRoleWithWebIdentity",xk){}});var DPe,RE,rW=g(()=>{J();EE();_E();gE();DPe={AssumeRoleCommand:Wc,AssumeRoleWithWebIdentityCommand:Kc},RE=class extends Pa{};ds(DPe,RE)});var nW=g(()=>{EE();_E()});var oW=g(()=>{});var sW,iW,aW,cW,uW,lW=g(()=>{Ee();EE();_E();sW=t=>{if(typeof t?.Arn=="string"){let e=t.Arn.split(":");if(e.length>4&&e[4]!=="")return e[4]}},iW=async(t,e,r,n={})=>{let o=typeof t=="function"?await t():t,s=typeof e=="function"?await e():e,i="",a=o??s??(i=await H0(n)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${o} (credential provider clientConfig)`,`${s} (contextual client)`,`${i} (STS default: AWS_REGION, profile region, or us-east-1)`),a},aW=(t,e)=>{let r,n;return async(o,s)=>{if(n=o,!r){let{logger:f=t?.parentClientConfig?.logger,profile:m=t?.parentClientConfig?.profile,region:y,requestHandler:_=t?.parentClientConfig?.requestHandler,credentialProviderLogger:C,userAgentAppId:A=t?.parentClientConfig?.userAgentAppId}=t,x=await iW(y,t?.parentClientConfig?.region,C,{logger:f,profile:m}),T=!uW(_);r=new e({...t,userAgentAppId:A,profile:m,credentialDefaultProvider:()=>async()=>n,region:x,requestHandler:T?_:void 0,logger:f})}let{Credentials:i,AssumedRoleUser:a}=await r.send(new Wc(s));if(!i||!i.AccessKeyId||!i.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);let c=sW(a),u={accessKeyId:i.AccessKeyId,secretAccessKey:i.SecretAccessKey,sessionToken:i.SessionToken,expiration:i.Expiration,...i.CredentialScope&&{credentialScope:i.CredentialScope},...c&&{accountId:c}};return Yi(u,"CREDENTIALS_STS_ASSUME_ROLE","i"),u}},cW=(t,e)=>{let r;return async n=>{if(!r){let{logger:c=t?.parentClientConfig?.logger,profile:u=t?.parentClientConfig?.profile,region:f,requestHandler:m=t?.parentClientConfig?.requestHandler,credentialProviderLogger:y,userAgentAppId:_=t?.parentClientConfig?.userAgentAppId}=t,C=await iW(f,t?.parentClientConfig?.region,y,{logger:c,profile:u}),A=!uW(m);r=new e({...t,userAgentAppId:_,profile:u,region:C,requestHandler:A?m:void 0,logger:c})}let{Credentials:o,AssumedRoleUser:s}=await r.send(new Kc(n));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let i=sW(s),a={accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration,...o.CredentialScope&&{credentialScope:o.CredentialScope},...i&&{accountId:i}};return i&&Yi(a,"RESOLVED_ACCOUNT_ID","T"),Yi(a,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),a}},uW=t=>t?.metadata?.handlerProtocol==="h2"});var dW,pW,fW,IPe,mW=g(()=>{lW();gE();dW=(t,e)=>e?class extends t{constructor(n){super(n);for(let o of e)this.middlewareStack.use(o)}}:t,pW=(t={},e)=>aW(t,dW(Pa,e)),fW=(t={},e)=>cW(t,dW(Pa,e)),IPe=t=>e=>t({roleAssumer:pW(e),roleAssumerWithWebIdentity:fW(e),...e})});var vk={};Ct(vk,{$Command:()=>Xr,AssumeRole$:()=>Ak,AssumeRoleCommand:()=>Wc,AssumeRoleRequest$:()=>FV,AssumeRoleResponse$:()=>BV,AssumeRoleWithWebIdentity$:()=>xk,AssumeRoleWithWebIdentityCommand:()=>Kc,AssumeRoleWithWebIdentityRequest$:()=>UV,AssumeRoleWithWebIdentityResponse$:()=>GV,AssumedRoleUser$:()=>Ck,Credentials$:()=>bk,ExpiredTokenException:()=>sm,ExpiredTokenException$:()=>PV,IDPCommunicationErrorException:()=>dm,IDPCommunicationErrorException$:()=>OV,IDPRejectedClaimException:()=>um,IDPRejectedClaimException$:()=>$V,InvalidIdentityTokenException:()=>lm,InvalidIdentityTokenException$:()=>kV,MalformedPolicyDocumentException:()=>im,MalformedPolicyDocumentException$:()=>MV,PackedPolicyTooLargeException:()=>am,PackedPolicyTooLargeException$:()=>LV,PolicyDescriptorType$:()=>qV,ProvidedContext$:()=>HV,RegionDisabledException:()=>cm,RegionDisabledException$:()=>NV,STS:()=>RE,STSClient:()=>Pa,STSServiceException:()=>Rn,STSServiceException$:()=>wV,Tag$:()=>jV,__Client:()=>Lr,decorateDefaultCredentialProvider:()=>IPe,errorTypeRegistries:()=>Rk,getDefaultRoleAssumer:()=>pW,getDefaultRoleAssumerWithWebIdentity:()=>fW});var Dk=g(()=>{gE();rW();nW();J();pm();Sk();oW();mW();fE()});function wPe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function PPe(t){return{schemeId:"smithy.api#noAuth"}}var gW,hW,SW,Ik=g(()=>{rr();J();gW=async(t,e,r)=>({operation:Le(e).operation,region:await we(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});hW=t=>{let e=[];return t.operation==="CreateOAuth2Token"?e.push(PPe(t)):e.push(wPe(t)),e},SW=t=>{let e=js(t);return Object.assign(e,{authSchemePreference:we(t.authSchemePreference??[])})}});var yW,EW,wk=g(()=>{yW=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"signin"}),EW={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var ka,Oa,_W,ed,RW,td,CW,Ok,Ii,Pk,bW,AW,$a,DW,xW,CE,Gr,TW,vW,OPe,_e,$Pe,IW,wW=g(()=>{He();ka="ref",Oa=-1,_W=!1,ed=!0,RW="isSet",td="booleanEquals",CW="coalesce",Ok="PartitionResult",Ii="stringEquals",Pk="getAttr",bW="https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",AW={[ka]:"Endpoint"},$a={fn:Pk,argv:[{[ka]:Ok},"name"]},DW={[ka]:"Region"},xW={[ka]:Ok},CE={authSchemes:[{name:"sigv4",signingName:"signin",signingRegion:"{Region}"}]},Gr={},TW=[DW],vW={conditions:[[RW,TW],[td,[{fn:CW,argv:[{[ka]:"IsControlPlane"},_W]},ed]],[RW,[AW]],["aws.partition",TW,Ok],[td,[{[ka]:"UseFIPS"},ed]],[Ii,[$a,"aws"]],[td,[{fn:CW,argv:[{[ka]:"IsOAuthEndpoint"},_W]},ed]],[td,[{[ka]:"UseDualStack"},ed]],[Ii,[$a,"aws-cn"]],[Ii,[DW,"us-gov-west-1"]],[Ii,[$a,"aws-us-gov"]],[td,[{fn:Pk,argv:[xW,"supportsFIPS"]},ed]],[Ii,[$a,"aws-iso"]],[Ii,[$a,"aws-iso-b"]],[Ii,[$a,"aws-iso-f"]],[Ii,[$a,"aws-iso-e"]],[Ii,[$a,"aws-eusc"]],[td,[{fn:Pk,argv:[xW,"supportsDualStack"]},ed]]],results:[[Oa],["https://signin.{Region}.api.aws",CE],["https://signin.{Region}.api.amazonwebservices.com.cn",CE],[bW,CE],[Oa,"FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."],["https://{Region}.oauth.signin.aws",CE],["https://{Region}.signin.aws.amazon.com",Gr],["https://{Region}.signin.amazonaws.cn",Gr],["https://{Region}.signin.amazonaws-us-gov.com",Gr],["https://{Region}.signin.c2shome.ic.gov",Gr],["https://{Region}.signin.sc2shome.sgov.gov",Gr],["https://{Region}.signin.csphome.hci.ic.gov",Gr],["https://{Region}.signin.csphome.adc-e.uk",Gr],["https://{Region}.signin.amazonaws-eusc.eu",Gr],["https://signin-fips.amazonaws-us-gov.com",Gr],["https://{Region}.signin-fips.amazonaws-us-gov.com",Gr],["https://{Region}.signin.{PartitionResult#dnsSuffix}",Gr],[Oa,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Oa,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[AW,Gr],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Gr],[Oa,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",Gr],[Oa,"FIPS is enabled but this partition does not support FIPS"],[bW,Gr],[Oa,"DualStack is enabled but this partition does not support DualStack"],["https://signin.{Region}.{PartitionResult#dnsSuffix}",Gr],[Oa,"Invalid Configuration: Missing Region"]]},OPe=2,_e=1e8,$Pe=new Int32Array([-1,1,-1,0,6,3,2,36,4,4,5,_e+27,6,_e+4,_e+27,1,29,7,2,36,8,3,9,31,4,22,10,5,19,11,7,21,12,8,_e+7,13,10,_e+8,14,12,_e+9,15,13,_e+10,16,14,_e+11,17,15,_e+12,18,16,_e+13,_e+16,6,_e+5,20,7,21,_e+6,17,_e+24,_e+25,6,_e+4,23,7,27,24,9,_e+14,25,10,_e+15,26,11,_e+22,_e+23,11,28,_e+21,17,_e+20,_e+21,2,35,30,3,39,31,4,32,_e+27,6,_e+4,33,7,_e+27,34,9,_e+14,_e+27,3,39,36,4,38,37,7,_e+18,_e+19,6,_e+4,_e+17,5,_e+1,40,8,_e+2,_e+3]),IW=Wn.from($Pe,OPe,vW.conditions,vW.results)});var kPe,PW,OW=g(()=>{Ee();He();wW();kPe=new Kn({size:50,params:["Endpoint","IsControlPlane","IsOAuthEndpoint","Region","UseDualStack","UseFIPS"]}),PW=(t,e={})=>kPe.get(t,()=>Ts(IW,{endpointParams:t,logger:e.logger}));hn.aws=Lo});var zo,bE=g(()=>{J();zo=class t extends jn{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.signin#SigninServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var fm,mm,gm,hm,$k=g(()=>{bE();fm=class t extends zo{static shapeId="com.amazonaws.signin#AccessDeniedException";name="AccessDeniedException";$fault="client";error;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},mm=class t extends zo{static shapeId="com.amazonaws.signin#InternalServerException";name="InternalServerException";$fault="server";error;constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},gm=class t extends zo{static shapeId="com.amazonaws.signin#TooManyRequestsError";name="TooManyRequestsError";$fault="client";error;constructor(e){super({name:"TooManyRequestsError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},hm=class t extends zo{static shapeId="com.amazonaws.signin#ValidationException";name="ValidationException";$fault="client";error;constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}}});var MPe,LPe,NPe,FPe,BPe,UPe,GPe,qPe,HPe,jPe,zPe,VPe,WPe,KPe,QPe,$W,kk,YPe,Fk,kW,MW,JPe,Ma,Mk,XPe,Lk,ZPe,UW,Bk,LW,wr,xE,eOe,AE,NW,GW,FW,BW,tOe,rOe,nOe,Nk,oOe,qr,qW,HW,Sm,jW,zW,VW,WW,Uk,sOe,KW,QW,YW,JW,XW,ZW,e8,t8,Gk,qk,ym=g(()=>{ae();$k();bE();MPe="AccessDeniedException",LPe="AccessToken",NPe="CreateOAuth2Token",FPe="CreateOAuth2TokenRequest",BPe="CreateOAuth2TokenRequestBody",UPe="CreateOAuth2TokenResponseBody",GPe="CreateOAuth2TokenResponse",qPe="CreateOAuth2TokenWithIAM",HPe="CreateOAuth2TokenWithIAMRequest",jPe="CreateOAuth2TokenWithIAMResponse",zPe="InternalServerException",VPe="OAuthAccessToken",WPe="RefreshToken",KPe="TooManyRequestsError",QPe="ValidationException",$W="accessKeyId",kk="accessToken",YPe="access_token",Fk="client",kW="clientId",MW="codeVerifier",JPe="code",Ma="error",Mk="expiresIn",XPe="expires_in",Lk="grantType",ZPe="grant_type",UW="http",Bk="httpError",LW="idToken",wr="jsonName",xE="message",eOe="resource",AE="refreshToken",NW="redirectUri",GW="smithy.ts.sdk.synthetic.com.amazonaws.signin",FW="secretAccessKey",BW="sessionToken",tOe="server",rOe="tokenInput",nOe="tokenOutput",Nk="tokenType",oOe="token_type",qr="com.amazonaws.signin",qW=new Fe(GW),HW=[-3,GW,"SigninServiceException",0,[],[]];qW.registerError(HW,zo);Sm=new Fe(qr),jW=[-3,qr,MPe,{[Ma]:Fk},[Ma,xE],[0,0],2];Sm.registerError(jW,fm);zW=[-3,qr,zPe,{[Ma]:tOe,[Bk]:500},[Ma,xE],[0,0],2];Sm.registerError(zW,mm);VW=[-3,qr,KPe,{[Ma]:Fk,[Bk]:429},[Ma,xE],[0,0],2];Sm.registerError(VW,gm);WW=[-3,qr,QPe,{[Ma]:Fk,[Bk]:400},[Ma,xE],[0,0],2];Sm.registerError(WW,hm);Uk=[qW,Sm],sOe=[0,qr,VPe,8,0],KW=[0,qr,WPe,8,0],QW=[3,qr,LPe,8,[$W,FW,BW],[[0,{[wr]:$W}],[0,{[wr]:FW}],[0,{[wr]:BW}]],3],YW=[3,qr,FPe,0,[rOe],[[()=>JW,16]],1],JW=[3,qr,BPe,0,[kW,Lk,JPe,NW,MW,AE],[[0,{[wr]:kW}],[0,{[wr]:Lk}],0,[0,{[wr]:NW}],[0,{[wr]:MW}],[()=>KW,{[wr]:AE}]],2],XW=[3,qr,GPe,0,[nOe],[[()=>ZW,16]],1],ZW=[3,qr,UPe,0,[kk,Nk,Mk,AE,LW],[[()=>QW,{[wr]:kk}],[0,{[wr]:Nk}],[1,{[wr]:Mk}],[()=>KW,{[wr]:AE}],[0,{[wr]:LW}]],4],e8=[3,qr,HPe,0,[Lk,eOe],[[0,{[wr]:ZPe}],0],2],t8=[3,qr,jPe,0,[kk,Nk,Mk],[[()=>sOe,{[wr]:YPe}],[0,{[wr]:oOe}],[1,{[wr]:XPe}]],3],Gk=[9,qr,NPe,{[UW]:["POST","/v1/token",200]},()=>YW,()=>XW],qk=[9,qr,qPe,{[UW]:["POST","/v1/token?x-amz-client-auth-method=iam",200]},()=>e8,()=>t8]});var r8,n8=g(()=>{rr();Di();jt();On();J();V();j();Ik();OW();ym();r8=t=>({apiVersion:"2023-01-01",base64Decoder:t?.base64Decoder??Xe,base64Encoder:t?.base64Encoder??Ie,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??PW,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??hW,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new tr},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],logger:t?.logger??new Nr,protocol:t?.protocol??Ks,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:Uk,version:"2023-01-01",serviceTarget:"Signin"},serviceId:t?.serviceId??"Signin",sha256:t?.sha256??Sn,urlParser:t?.urlParser??Cr,utf8Decoder:t?.utf8Decoder??qt,utf8Encoder:t?.utf8Encoder??ze})});var TE,o8,s8=g(()=>{bf();Ee();rr();J();ye();en();j();TE=De(zs());n8();o8=t=>{fs(process.version);let e=As(t),r=()=>e().then(ps),n=r8(t);us(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ue(No,o),bodyLengthChecker:t?.bodyLengthChecker??Es,defaultUserAgentProvider:t?.defaultUserAgentProvider??Mo({serviceId:n.serviceId,clientVersion:ba.version}),maxAttempts:t?.maxAttempts??ue($s,t),region:t?.region??ue(Ar,{...Zr,...o}),requestHandler:TE.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ue({...Ms,default:async()=>(await r()).retryMode||Yn},t),streamCollector:t?.streamCollector??TE.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ue(Cs,o),useFipsEndpoint:t?.useFipsEndpoint??ue(bs,o),userAgentAppId:t?.userAgentAppId??ue(Gs,o)}}});var i8,a8,c8=g(()=>{i8=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},a8=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var u8,l8=g(()=>{Ee();J();V();c8();u8=(t,e)=>{let r=Object.assign(qs(t),Co(t),vs(t),i8(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Hs(r),ms(r),Ds(r),a8(r))}});var Em,Hk=g(()=>{Ee();jt();J();ye();He();V();en();ae();Ik();wk();s8();l8();Em=class extends Lr{config;constructor(...[e]){let r=o8(e||{});super(r),this.initConfig=r;let n=yW(r),o=Bs(n),s=ks(o),i=In(s),a=i,c=Ci(a),u=SW(c),f=u8(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(Us(this.config)),this.middlewareStack.use(xi(this.config)),this.middlewareStack.use(Is(this.config)),this.middlewareStack.use(Ls(this.config)),this.middlewareStack.use(Ns(this.config)),this.middlewareStack.use(Fs(this.config)),this.middlewareStack.use($o(this.config,{httpAuthSchemeParametersProvider:gW,identityProviderConfigProvider:async m=>new $n({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(ko(this.config))}destroy(){super.destroy()}}});var vE,d8,p8,DE,jk=g(()=>{J();He();wk();vE=gs(EW,"Signin","SigninClient",bi),d8={IsControlPlane:{type:"staticContextParams",value:!1}},p8={IsOAuthEndpoint:{type:"staticContextParams",value:!0}},DE=(t,e,r,n)=>[]});var _m,zk=g(()=>{jk();ym();_m=class extends vE(d8,DE,"CreateOAuth2Token",Gk){}});var Rm,Vk=g(()=>{jk();ym();Rm=class extends vE(p8,DE,"CreateOAuth2TokenWithIAM",qk){}});var iOe,IE,f8=g(()=>{J();zk();Vk();Hk();iOe={CreateOAuth2TokenCommand:_m,CreateOAuth2TokenWithIAMCommand:Rm},IE=class extends Em{};ds(iOe,IE)});var m8=g(()=>{zk();Vk()});var aOe,g8=g(()=>{aOe={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",CONFLICT:"CONFLICT",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",RESOURCE_NOT_FOUND:"RESOURCE_NOT_FOUND",SERVER_ERROR:"server_error",SERVICE_QUOTA_EXCEEDED:"SERVICE_QUOTA_EXCEEDED",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"}});var h8=g(()=>{});var S8={};Ct(S8,{$Command:()=>Xr,AccessDeniedException:()=>fm,AccessDeniedException$:()=>jW,AccessToken$:()=>QW,CreateOAuth2Token$:()=>Gk,CreateOAuth2TokenCommand:()=>_m,CreateOAuth2TokenRequest$:()=>YW,CreateOAuth2TokenRequestBody$:()=>JW,CreateOAuth2TokenResponse$:()=>XW,CreateOAuth2TokenResponseBody$:()=>ZW,CreateOAuth2TokenWithIAM$:()=>qk,CreateOAuth2TokenWithIAMCommand:()=>Rm,CreateOAuth2TokenWithIAMRequest$:()=>e8,CreateOAuth2TokenWithIAMResponse$:()=>t8,InternalServerException:()=>mm,InternalServerException$:()=>zW,OAuth2ErrorCode:()=>aOe,Signin:()=>IE,SigninClient:()=>Em,SigninServiceException:()=>zo,SigninServiceException$:()=>HW,TooManyRequestsError:()=>gm,TooManyRequestsError$:()=>VW,ValidationException:()=>hm,ValidationException$:()=>WW,__Client:()=>Lr,errorTypeRegistries:()=>Uk});var y8=g(()=>{Hk();f8();m8();J();ym();g8();$k();h8();bE()});var R8=st(_8=>{var{setCredentialFeature:cOe}=(Ee(),F(kn)),{CredentialsProviderError:La,parseKnownFiles:uOe,getProfileName:lOe}=(ye(),F(Br)),{HttpRequest:dOe}=(V(),F(wo)),{createHash:pOe,createPrivateKey:fOe,createPublicKey:mOe,sign:gOe}=require("node:crypto"),{promises:Wk}=require("node:fs"),{homedir:hOe}=require("node:os"),{dirname:SOe,join:E8}=require("node:path"),Kk=class t{profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300*1e3;constructor(e,r,n){this.profileData=e,this.init=r,this.callerClientConfig=n}async loadCredentials(){let e=await this.loadToken();if(!e)throw new La(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let r=e.accessToken,n=Date.now();return new Date(r.expiresAt).getTime()-n<=t.REFRESH_THRESHOLD?this.refresh(e):this.toCredentials(e.accessToken)}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}toCredentials(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken,accountId:e.accountId,expiration:new Date(e.expiresAt)}}async refresh(e){let r=await this.loadToken().catch(()=>e),n=Date.now(),o=new Date(r.accessToken.expiresAt).getTime(),s=new Date(e.accessToken.expiresAt).getTime(),i=o<=n&&s>n?e:r;if(new Date(i.accessToken.expiresAt).getTime()-Date.now()>t.REFRESH_THRESHOLD)return this.toCredentials(i.accessToken);let{SigninClient:c,CreateOAuth2TokenCommand:u}=(y8(),F(S8)),{logger:f,userAgentAppId:m}=this.callerClientConfig??{},_=(T=>T?.metadata?.handlerProtocol==="h2")(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,C=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,A=new c({credentials:{accessKeyId:"",secretAccessKey:""},region:C,requestHandler:_,logger:f,userAgentAppId:m,...this.init?.clientConfig});this.createDPoPInterceptor(A.middlewareStack);let x={tokenInput:{clientId:i.clientId,refreshToken:i.refreshToken,grantType:"refresh_token"}};try{let T=await A.send(new u(x)),{accessKeyId:I,secretAccessKey:q,sessionToken:H}=T.tokenOutput?.accessToken??{},{refreshToken:me,expiresIn:et}=T.tokenOutput??{};if(!I||!q||!H||!me)throw new La("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let ot=(et??900)*1e3,tt=new Date(Date.now()+ot),pt={...i,accessToken:{...i.accessToken,accessKeyId:I,secretAccessKey:q,sessionToken:H,expiresAt:tt.toISOString()},refreshToken:me};return await this.saveToken(pt),this.toCredentials(pt.accessToken)}catch(T){if(T.name==="AccessDeniedException"){let q=T.error,H;switch(q){case"TOKEN_EXPIRED":H="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":H="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":H="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:H=`Failed to refresh token: ${String(T)}. Please re-authenticate using \`aws login\``}throw new La(H,{logger:this.logger,tryNextLink:!1})}if(new Date(i.accessToken.expiresAt).getTime()>Date.now())return this.logger?.warn?.(`Failed to refresh token: ${String(T)}. Using existing token until expiry.`),this.toCredentials(i.accessToken);throw new La(`Failed to refresh token: ${String(T)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let r=await Wk.readFile(e,"utf8"),n=JSON.parse(r),o=["accessToken","clientId","refreshToken","dpopKey"].filter(s=>!n[s]);if(n.accessToken?.accountId||o.push("accountId"),o.length>0)throw new La(`Token validation failed, missing fields: ${o.join(", ")}`,{logger:this.logger,tryNextLink:!1});return n}catch(r){throw new La(`Failed to load token from ${e}: ${String(r)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let r=this.getTokenFilePath(),n=SOe(r);try{await Wk.mkdir(n,{recursive:!0})}catch{}await Wk.writeFile(r,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??E8(hOe(),".aws","login","cache"),r=Buffer.from(this.loginSession,"utf8"),n=pOe("sha256").update(r).digest("hex");return E8(e,`${n}.json`)}derToRawSignature(e){let r=2;if(e[r]!==2)throw new Error("Invalid DER signature");r++;let n=e[r++],o=e.subarray(r,r+n);if(r+=n,e[r]!==2)throw new Error("Invalid DER signature");r++;let s=e[r++],i=e.subarray(r,r+s);o=o[0]===0?o.subarray(1):o,i=i[0]===0?i.subarray(1):i;let a=Buffer.concat([Buffer.alloc(32-o.length),o]),c=Buffer.concat([Buffer.alloc(32-i.length),i]);return Buffer.concat([a,c])}createDPoPInterceptor(e){e.add(r=>async n=>{if(dOe.isInstance(n.request)){let o=n.request,s=`${o.protocol}//${o.hostname}${o.port?`:${o.port}`:""}${o.path}`,i=await this.generateDpop(o.method,s);o.headers={...o.headers,DPoP:i}}return r(n)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",r){let n=await this.loadToken();try{let o=fOe({key:n.dpopKey,format:"pem",type:"sec1"}),i=mOe(o).export({format:"der",type:"spki"}),a=-1;for(let I=0;I<i.length;I++)if(i[I]===4){a=I;break}let c=i.slice(a+1,a+33),u=i.slice(a+33,a+65),f={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:c.toString("base64url"),y:u.toString("base64url")}},m={jti:crypto.randomUUID(),htm:e,htu:r,iat:Math.floor(Date.now()/1e3)},y=Buffer.from(JSON.stringify(f)).toString("base64url"),_=Buffer.from(JSON.stringify(m)).toString("base64url"),C=`${y}.${_}`,A=gOe("sha256",Buffer.from(C),o),T=this.derToRawSignature(A).toString("base64url");return`${C}.${T}`}catch(o){throw new La(`Failed to generate Dpop proof: ${o instanceof Error?o.message:String(o)}`,{logger:this.logger,tryNextLink:!1})}}},yOe=t=>async({callerClientConfig:e}={})=>{t?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let r=await uOe(t||{}),n=lOe({profile:t?.profile??e?.profile}),o=r[n];if(!o?.login_session)throw new La(`Profile ${n} does not contain login_session.`,{tryNextLink:!0,logger:t?.logger});let i=await new Kk(o,t,e).loadCredentials();return cOe(i,"CREDENTIALS_LOGIN","AD")};_8.fromLoginCredentials=yOe});var Yk=st(C8=>{var{externalDataInterceptor:EOe,CredentialsProviderError:Qk,parseKnownFiles:_Oe,getProfileName:ROe}=(ye(),F(Br)),{exec:COe}=require("node:child_process"),{promisify:bOe}=require("node:util"),{setCredentialFeature:AOe}=(Ee(),F(kn)),xOe=(t,e,r)=>{if(e.Version!==1)throw Error(`Profile ${t} credential_process did not return Version 1.`);if(e.AccessKeyId===void 0||e.SecretAccessKey===void 0)throw Error(`Profile ${t} credential_process returned invalid credentials.`);if(e.Expiration){let s=new Date;if(new Date(e.Expiration)<s)throw Error(`Profile ${t} credential_process returned expired credentials.`)}let n=e.AccountId;!n&&r?.[t]?.aws_account_id&&(n=r[t].aws_account_id);let o={accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,...e.SessionToken&&{sessionToken:e.SessionToken},...e.Expiration&&{expiration:new Date(e.Expiration)},...e.CredentialScope&&{credentialScope:e.CredentialScope},...n&&{accountId:n}};return AOe(o,"CREDENTIALS_PROCESS","w"),o},TOe=async(t,e,r)=>{let n=e[t];if(e[t]){let o=n.credential_process;if(o!==void 0){let s=bOe(EOe?.getTokenRecord?.().exec??COe);try{let{stdout:i}=await s(o),a;try{a=JSON.parse(i.trim())}catch{throw Error(`Profile ${t} credential_process returned invalid JSON.`)}return xOe(t,a,e)}catch(i){throw new Qk(i.message,{logger:r})}}else throw new Qk(`Profile ${t} did not contain credential_process.`,{logger:r})}else throw new Qk(`Profile ${t} could not be found in shared credentials file.`,{logger:r})},vOe=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let r=await _Oe(t);return TOe(ROe({profile:t.profile??e?.profile}),r,t.logger)};C8.fromProcess=vOe});var Xk=st(Jk=>{var{setCredentialFeature:DOe}=(Ee(),F(kn)),{CredentialsProviderError:IOe,externalDataInterceptor:wOe}=(ye(),F(Br)),{readFileSync:POe}=require("node:fs"),A8=t=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:r,roleSessionName:n,webIdentityToken:o,providerId:s,policyArns:i,policy:a,durationSeconds:c}=t,{roleAssumerWithWebIdentity:u}=t;if(!u){let{getDefaultRoleAssumerWithWebIdentity:f}=(Dk(),F(vk));u=f({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...e?.callerClientConfig,...t.parentClientConfig}},t.clientPlugins)}return u({RoleArn:r,RoleSessionName:n??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:o,ProviderId:s,PolicyArns:i,Policy:a,DurationSeconds:c})},b8="AWS_WEB_IDENTITY_TOKEN_FILE",OOe="AWS_ROLE_ARN",$Oe="AWS_ROLE_SESSION_NAME",kOe=(t={})=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let r=t?.webIdentityTokenFile??process.env[b8],n=t?.roleArn??process.env[OOe],o=t?.roleSessionName??process.env[$Oe];if(!r||!n)throw new IOe("Web identity configuration not specified",{logger:t.logger});let s=await A8({...t,webIdentityToken:wOe?.getTokenRecord?.()[r]??POe(r,{encoding:"ascii"}),roleArn:n,roleSessionName:o})(e);return r===process.env[b8]&&DOe(s,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h"),s};Jk.fromTokenFile=kOe;Jk.fromWebToken=A8});var P8=st(w8=>{var{CredentialsProviderError:wE,chain:MOe,getProfileName:D8,parseKnownFiles:LOe}=(ye(),F(Br)),{setCredentialFeature:wi}=(Ee(),F(kn)),NOe=(t,e,r)=>{let n={EcsContainer:async o=>{let{fromHttp:s}=r$(),{fromContainerMetadata:i}=ny();return r?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>MOe(s(o??{}),i(o))().then(Zk)},Ec2InstanceMetadata:async o=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:s}=ny();return async()=>s(o)().then(Zk)},Environment:async o=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:s}=HO();return async()=>s(o)().then(Zk)}};if(t in n)return n[t];throw new wE(`Unsupported credential source in profile ${e}. Got ${t}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:r})},Zk=t=>wi(t,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),FOe=(t,{profile:e="default",logger:r}={})=>!!t&&typeof t=="object"&&typeof t.role_arn=="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1&&["undefined","string"].indexOf(typeof t.external_id)>-1&&["undefined","string"].indexOf(typeof t.mfa_serial)>-1&&(BOe(t,{profile:e,logger:r})||UOe(t,{profile:e,logger:r})),BOe=(t,{profile:e,logger:r})=>{let n=typeof t.source_profile=="string"&&typeof t.credential_source>"u";return n&&r?.debug?.(` ${e} isAssumeRoleWithSourceProfile source_profile=${t.source_profile}`),n},UOe=(t,{profile:e,logger:r})=>{let n=typeof t.credential_source=="string"&&typeof t.source_profile>"u";return n&&r?.debug?.(` ${e} isCredentialSourceProfile credential_source=${t.credential_source}`),n},GOe=async(t,e,r,n,o={},s)=>{r.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let i=e[t],{source_profile:a,region:c}=i;if(!r.roleAssumer){let{getDefaultRoleAssumer:f}=(Dk(),F(vk));r.roleAssumer=f({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:{...n,...r?.parentClientConfig,region:c??r?.parentClientConfig?.region??n?.region}},r.clientPlugins)}if(a&&a in o)throw new wE(`Detected a cycle attempting to resolve credentials for profile ${D8(r)}. Profiles visited: `+Object.keys(o).join(", "),{logger:r.logger});r.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${a?`source_profile=[${a}]`:`profile=[${t}]`}`);let u=a?s(a,e,r,n,{...o,[a]:!0},x8(e[a]??{})):(await NOe(i.credential_source,t,r.logger)(r))();if(x8(i))return u.then(f=>wi(f,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));{let f={RoleArn:i.role_arn,RoleSessionName:i.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:i.external_id,DurationSeconds:parseInt(i.duration_seconds||"3600",10)},{mfa_serial:m}=i;if(m){if(!r.mfaCodeProvider)throw new wE(`Profile ${t} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:r.logger,tryNextLink:!1});f.SerialNumber=m,f.TokenCode=await r.mfaCodeProvider(m)}let y=await u;return r.roleAssumer(y,f).then(_=>wi(_,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},x8=t=>!t.role_arn&&!!t.credential_source,qOe=t=>!!(t&&t.login_session),HOe=async(t,e,r)=>{let{fromLoginCredentials:n}=R8(),o=await n({...e,profile:t})({callerClientConfig:r});return wi(o,"CREDENTIALS_PROFILE_LOGIN","AC")},jOe=t=>!!t&&typeof t=="object"&&typeof t.credential_process=="string",zOe=async(t,e)=>{let{fromProcess:r}=Yk(),n=await r({...t,profile:e})();return wi(n,"CREDENTIALS_PROFILE_PROCESS","v")},VOe=async(t,e,r={},n)=>{let{fromSSO:o}=ck();return o({profile:t,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:n}).then(s=>e.sso_session?wi(s,"CREDENTIALS_PROFILE_SSO","r"):wi(s,"CREDENTIALS_PROFILE_SSO_LEGACY","t"))},WOe=t=>t&&(typeof t.sso_start_url=="string"||typeof t.sso_account_id=="string"||typeof t.sso_session=="string"||typeof t.sso_region=="string"||typeof t.sso_role_name=="string"),T8=t=>!!t&&typeof t=="object"&&typeof t.aws_access_key_id=="string"&&typeof t.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof t.aws_session_token)>-1&&["undefined","string"].indexOf(typeof t.aws_account_id)>-1,v8=async(t,e)=>{e?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let r={accessKeyId:t.aws_access_key_id,secretAccessKey:t.aws_secret_access_key,sessionToken:t.aws_session_token,...t.aws_credential_scope&&{credentialScope:t.aws_credential_scope},...t.aws_account_id&&{accountId:t.aws_account_id}};return wi(r,"CREDENTIALS_PROFILE","n")},KOe=t=>!!t&&typeof t=="object"&&typeof t.web_identity_token_file=="string"&&typeof t.role_arn=="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1,QOe=async(t,e,r)=>{let{fromTokenFile:n}=Xk(),o=await n({webIdentityTokenFile:t.web_identity_token_file,roleArn:t.role_arn,roleSessionName:t.role_session_name,roleAssumerWithWebIdentity:e.roleAssumerWithWebIdentity,logger:e.logger,parentClientConfig:e.parentClientConfig})({callerClientConfig:r});return wi(o,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")},I8=async(t,e,r,n,o={},s=!1)=>{let i=e[t];if(Object.keys(o).length>0&&T8(i))return v8(i,r);if(s||FOe(i,{profile:t,logger:r.logger}))return GOe(t,e,r,n,o,I8);if(T8(i))return v8(i,r);if(KOe(i))return QOe(i,r,n);if(jOe(i))return zOe(r,t);if(WOe(i))return await VOe(t,i,r,n);if(qOe(i))return HOe(t,r,n);throw new wE(`Could not resolve credentials using profile: [${t}] in configuration/credentials file(s).`,{logger:r.logger})},YOe=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let r=await LOe(t);return I8(D8({profile:t.profile??e?.profile}),r,t,e)};w8.fromIni=YOe});var Cm=st(OE=>{var{ENV_KEY:JOe,ENV_SECRET:XOe,fromEnv:ZOe}=HO(),{chain:e$e,CredentialsProviderError:PE,ENV_PROFILE:t$e}=(ye(),F(Br)),O8="AWS_EC2_METADATA_DISABLED",r$e=async t=>{let{ENV_CMDS_FULL_URI:e,ENV_CMDS_RELATIVE_URI:r,fromContainerMetadata:n,fromInstanceMetadata:o}=ny();if(process.env[r]||process.env[e]){t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:s}=r$();return e$e(s(t),n(t))}return process.env[O8]&&process.env[O8]!=="false"?async()=>{throw new PE("EC2 Instance Metadata Service access disabled",{logger:t.logger})}:(t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),o(t))};function n$e(t,e){let r=o$e(t),n,o,s,i,a=async c=>{if(c?.forceRefresh)return i||(i=r(c).then(u=>{s=u}).finally(()=>{i=void 0})),await i,s;if(s?.expiration&&s?.expiration?.getTime()<Date.now()&&(s=void 0),n)await n;else if(!s||e?.(s))if(s)o||(o=r(c).then(u=>{s=u}).catch(()=>{}).finally(()=>{o=void 0}));else return n=r(c).then(u=>{s=u}).finally(()=>{n=void 0}),a(c);return s};return a}var o$e=t=>async e=>{let r;for(let n of t)try{return await n(e)}catch(o){if(r=o,o?.tryNextLink)continue;throw o}throw r},$8=!1,s$e=(t={})=>n$e([async()=>{if(t.profile??process.env[t$e])throw process.env[JOe]&&process.env[XOe]&&($8||((t.logger?.warn&&t.logger?.constructor?.name!=="NoOpLogger"?t.logger.warn.bind(t.logger):console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
|
|
49
|
+
`)||(u["#text"]="#text"in u?u["#text"]+f:f);for(let f of i)f.tag==="__proto__"&&$$(u),f.tag in u?Array.isArray(u[f.tag])?u[f.tag].push(f.value):u[f.tag]=[u[f.tag],f.value]:u[f.tag]=f.value;for(let[f,m]of Object.entries(o))f==="__proto__"&&$$(u),u[f]=m;return{tag:r,value:u}}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};skipDoctype(){let e=this;e.i+=9;let r=0;for(;e.i<e.z;){let n=e.x[e.i];if(n==="[")++r;else if(n==="]")--r;else if(n===">"&&r===0){++e.i;return}++e.i}throw new Error("@aws-sdk XML parse error: unclosed DOCTYPE.")}decodeEntities(e){return e.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g,(r,n,o,s)=>n?String.fromCharCode(parseInt(n,16)):o?String.fromCharCode(parseInt(o,10)):t.ENTITIES[s]??"")}};Gy.XmlNode=k$;Gy.XmlText=Uy;Gy.parseXML=$De});var Y6,Da,Hy=g(()=>{Y6=De(qy());J();V();ae();j();Bo();Cy();wf();Da=class extends ht{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new pa(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,r,n){let o=B.of(e),s=o.getMemberSchemas();if(o.isStructSchema()&&o.isMemberSchema()&&!!Object.values(s).find(u=>!!u.getMemberTraits().eventPayload)){let u={},f=Object.keys(s)[0];return s[f].isBlobSchema()?u[f]=r:u[f]=this.read(s[f],r),u}let a=(this.serdeContext?.utf8Encoder??ze)(r),c=this.parseXml(a);return this.readSchema(e,n?c[n]:c)}readSchema(e,r){let n=B.of(e);if(n.isUnitSchema())return;let o=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(r))return this.readSchema(n,[r]);if(r==null)return r;if(typeof r=="object"){let s=!!o.xmlFlattened;if(n.isListSchema()){let a=n.getValueSchema(),c=[],u=a.getMergedTraits().xmlName??"member",f=s?r:(r[0]??r)[u];if(f==null)return c;let m=Array.isArray(f)?f:[f];for(let y of m)c.push(this.readSchema(a,y));return c}let i={};if(n.isMapSchema()){let a=n.getKeySchema(),c=n.getValueSchema(),u;s?u=Array.isArray(r)?r:[r]:u=Array.isArray(r.entry)?r.entry:[r.entry];let f=a.getMergedTraits().xmlName??"key",m=c.getMergedTraits().xmlName??"value";for(let y of u){let _=y[f],C=y[m];_==="__proto__"&&to(i),i[_]=this.readSchema(c,C)}return i}if(n.isStructSchema()){let a=n.isUnionSchema(),c;a&&(c=new xa(r,i));for(let[u,f]of n.structIterator()){let m=f.getMergedTraits(),y=m.httpPayload?m.xmlName??f.getName():f.getMemberTraits().xmlName??u;a&&c.mark(y),r[y]!=null&&(i[u]=this.readSchema(f,r[y]))}return a&&c.writeUnknown(),i}if(n.isDocumentSchema())return r;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,r)}parseXml(e){if(e.length){let r;try{r=(0,Y6.parseXML)(e)}catch(i){throw i&&typeof i=="object"&&Object.defineProperty(i,"$responseBodyText",{value:e}),i}let n="#text",o=Object.keys(r)[0],s=r[o];return s[n]&&(s[o]=s[n],delete s[n]),_c(s)}return{}}}});var Vl,L$=g(()=>{V();ae();j();j();Bo();Vl=class extends ht{settings;buffer;constructor(e){super(),this.settings=e}write(e,r,n=""){this.buffer===void 0&&(this.buffer="");let o=B.of(e);if(n&&!n.endsWith(".")&&(n+="."),o.isBlobSchema())(typeof r=="string"||r instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??Ie)(r)));else if(o.isBooleanSchema()||o.isNumericSchema()||o.isStringSchema())r!=null?(this.writeKey(n),this.writeValue(String(r))):o.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(xr()));else if(o.isBigIntegerSchema())r!=null&&(this.writeKey(n),this.writeValue(String(r)));else if(o.isBigDecimalSchema())r!=null&&(this.writeKey(n),this.writeValue(r instanceof Y?r.string:String(r)));else if(o.isTimestampSchema()){if(r instanceof Date)switch(this.writeKey(n),Ze(o,this.settings)){case 5:this.writeValue(r.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(br(r));break;case 7:this.writeValue(String(r.getTime()/1e3));break}}else if(o.isDocumentSchema())Array.isArray(r)?this.write(79,r,n):r instanceof Date?this.write(4,r,n):r instanceof Uint8Array?this.write(21,r,n):r&&typeof r=="object"?this.write(143,r,n):(this.writeKey(n),this.writeValue(String(r)));else if(o.isListSchema()){if(Array.isArray(r))if(r.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(""));else{let s=o.getValueSchema(),i=this.settings.flattenLists||o.getMergedTraits().xmlFlattened,a=1;for(let c of r){if(c==null)continue;let u=s.getMergedTraits(),f=this.getKey("member",u.xmlName,u.ec2QueryName),m=i?`${n}${a}`:`${n}${f}.${a}`;this.write(s,c,m),++a}}}else if(o.isMapSchema()){if(r&&typeof r=="object"){let s=o.getKeySchema(),i=o.getValueSchema(),a=o.getMergedTraits().xmlFlattened,c=1;for(let u in r){let f=r[u];if(f==null)continue;let m=s.getMergedTraits(),y=this.getKey("key",m.xmlName,m.ec2QueryName),_=a?`${n}${c}.${y}`:`${n}entry.${c}.${y}`,C=i.getMergedTraits(),A=this.getKey("value",C.xmlName,C.ec2QueryName),x=a?`${n}${c}.${A}`:`${n}entry.${c}.${A}`;this.write(s,u,_),this.write(i,f,x),++c}}}else if(o.isStructSchema()){if(r&&typeof r=="object"){let s=!1;for(let[i,a]of o.structIterator()){if(r[i]==null&&!a.isIdempotencyToken())continue;let c=a.getMergedTraits(),u=this.getKey(i,c.xmlName,c.ec2QueryName,"struct"),f=`${n}${u}`;this.write(a,r[i],f),s=!0}if(!s&&o.isUnionSchema()){let{$unknown:i}=r;if(Array.isArray(i)){let[a,c]=i,u=`${n}${a}`;this.write(15,c,u)}}}}else if(!o.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${o.getName(!0)}`)}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");let e=this.buffer;return delete this.buffer,e}getKey(e,r,n,o){let{ec2:s,capitalizeKeys:i}=this.settings;if(s&&n)return n;let a=r??e;return i&&o==="struct"?a[0].toUpperCase()+a.slice(1):a}writeKey(e){e.endsWith(".")&&(e=e.slice(0,e.length-1)),this.buffer+=`&${vo(e)}=`}writeValue(e){this.buffer+=vo(e)}}});var Ia,N$=g(()=>{V();ae();Nl();Hy();L$();Ia=class extends Yn{options;serializer;deserializer;mixin=new eo;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries}),this.options=e;let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new Vl(r),this.deserializer=new Da(r)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);o.path.endsWith("/")||(o.path+="/"),o.headers["content-type"]="application/x-www-form-urlencoded",(gn(e.input)==="unit"||!o.body)&&(o.body="");let s=e.name.split("#")[1]??e.name;return o.body=`Action=${s}&Version=${this.options.version}`+o.body,o.body.endsWith("&")&&(o.body=o.body.slice(-1)),o}async deserializeResponse(e,r,n){let o=this.deserializer,s=B.of(e.output),i={};if(n.statusCode>=300){let f=await At(n.body,r);f.byteLength>0&&Object.assign(i,await o.read(15,f)),await this.handleError(e,r,n,i,this.deserializeMetadata(n))}for(let f in n.headers){let m=n.headers[f];delete n.headers[f],n.headers[f.toLowerCase()]=m}let a=e.name.split("#")[1]??e.name,c=s.isStructSchema()&&this.useNestedResult()?a+"Result":void 0,u=await At(n.body,r);return u.byteLength>0&&Object.assign(i,await o.read(s,u,c)),i.$metadata=this.deserializeMetadata(n),i}useNestedResult(){return!0}async handleError(e,r,n,o,s){let i=this.loadQueryErrorCode(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace);let a=this.loadQueryError(o)??{},c=this.loadQueryErrorMessage(o);a.message=c,a.Error={Type:a.Type,Code:a.Code,Message:c};let{errorSchema:u,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,a,s,this.mixin.findQueryCompatibleError),m=B.of(u),y=this.compositeErrorRegistry.getErrorCtor(u)??Error,_=new y({}),C={Type:a.Error.Type,Code:a.Error.Code,Error:a.Error};for(let[A,x]of m.structIterator()){let T=x.getMergedTraits().xmlName??A,I=a[T]??o[T];C[A]=this.deserializer.readSchema(x,I)}throw this.mixin.decorateServiceException(Object.assign(_,f,{$fault:m.getMergedTraits().error,message:c},C),o)}loadQueryErrorCode(e,r){let n=(r.Errors?.[0]?.Error??r.Errors?.Error??r.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return"NotFound"}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let r=this.loadQueryError(e);return r?.message??r?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}});var jy,J6=g(()=>{N$();jy=class extends Ia{options;constructor(e){super(e),this.options=e;let r={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0};Object.assign(this.serializer.settings,r)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return!1}}});var X6,F$,Z6,zy,B$=g(()=>{X6=De(qy());J();T$();F$=(t,e)=>vy(t,e).then(r=>{if(r.length){let n;try{n=(0,X6.parseXML)(r)}catch(a){throw a&&typeof a=="object"&&Object.defineProperty(a,"$responseBodyText",{value:r}),a}let o="#text",s=Object.keys(n)[0],i=n[s];return i[o]&&(i[s]=i[o],delete i[o]),_c(i)}return{}}),Z6=async(t,e)=>{let r=await F$(t,e);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},zy=(t,e)=>{if(e?.Error?.Code!==void 0)return e.Error.Code;if(e?.Code!==void 0)return e.Code;if(t.statusCode==404)return"NotFound"}});var rn,Wl,U$=g(()=>{rn=De(qy());V();ae();j();j();Bo();Wl=class extends ht{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,r){let n=B.of(e);if(n.isStringSchema()&&typeof r=="string")this.stringBuffer=r;else if(n.isBlobSchema())this.byteBuffer="byteLength"in r?r:(this.serdeContext?.base64Decoder??Xe)(r);else{this.buffer=this.writeStruct(n,r,void 0);let o=n.getMergedTraits();o.httpPayload&&!o.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let r=this.byteBuffer;return delete this.byteBuffer,r}if(this.stringBuffer!==void 0){let r=this.stringBuffer;return delete this.stringBuffer,r}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,r,n){let o=e.getMergedTraits(),s=e.isMemberSchema()&&!o.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():o.xmlName??e.getName();if(!s||!e.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let i=rn.XmlNode.of(s),[a,c]=this.getXmlnsAttribute(e,n);for(let[f,m]of e.structIterator()){let y=r[f];if(y!=null||m.isIdempotencyToken()){if(m.getMergedTraits().xmlAttribute){i.addAttribute(m.getMergedTraits().xmlName??f,this.writeSimple(m,y));continue}if(m.isListSchema())this.writeList(m,y,i,c);else if(m.isMapSchema())this.writeMap(m,y,i,c);else if(m.isStructSchema())i.addChildNode(this.writeStruct(m,y,c));else{let _=rn.XmlNode.of(m.getMergedTraits().xmlName??m.getMemberName());this.writeSimpleInto(m,y,_,c),i.addChildNode(_)}}}let{$unknown:u}=r;if(u&&e.isUnionSchema()&&Array.isArray(u)&&Object.keys(r).length===1){let[f,m]=u,y=rn.XmlNode.of(f);if(typeof m!="string")if(r instanceof rn.XmlNode||r instanceof rn.XmlText)i.addChildNode(r);else throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,m,y,c),i.addChildNode(y)}return c&&i.addAttribute(a,c),i}writeList(e,r,n,o){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let s=e.getMergedTraits(),i=e.getValueSchema(),a=i.getMergedTraits(),c=!!a.sparse,u=!!s.xmlFlattened,[f,m]=this.getXmlnsAttribute(e,o),y=(_,C)=>{if(i.isListSchema())this.writeList(i,Array.isArray(C)?C:[C],_,m);else if(i.isMapSchema())this.writeMap(i,C,_,m);else if(i.isStructSchema()){let A=this.writeStruct(i,C,m);_.addChildNode(A.withName(u?s.xmlName??e.getMemberName():a.xmlName??"member"))}else{let A=rn.XmlNode.of(u?s.xmlName??e.getMemberName():a.xmlName??"member");this.writeSimpleInto(i,C,A,m),_.addChildNode(A)}};if(u)for(let _ of r)(c||_!=null)&&y(n,_);else{let _=rn.XmlNode.of(s.xmlName??e.getMemberName());m&&_.addAttribute(f,m);for(let C of r)(c||C!=null)&&y(_,C);n.addChildNode(_)}}writeMap(e,r,n,o,s=!1){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let i=e.getMergedTraits(),a=e.getKeySchema(),u=a.getMergedTraits().xmlName??"key",f=e.getValueSchema(),m=f.getMergedTraits(),y=m.xmlName??"value",_=!!m.sparse,C=!!i.xmlFlattened,[A,x]=this.getXmlnsAttribute(e,o),T=(I,q,H)=>{let me=rn.XmlNode.of(u,q),[et,ot]=this.getXmlnsAttribute(a,x);ot&&me.addAttribute(et,ot),I.addChildNode(me);let tt=rn.XmlNode.of(y);f.isListSchema()?this.writeList(f,H,tt,x):f.isMapSchema()?this.writeMap(f,H,tt,x,!0):f.isStructSchema()?tt=this.writeStruct(f,H,x):this.writeSimpleInto(f,H,tt,x),I.addChildNode(tt)};if(C)for(let I in r){let q=r[I];if(_||q!=null){let H=rn.XmlNode.of(i.xmlName??e.getMemberName());T(H,I,q),n.addChildNode(H)}}else{let I;s||(I=rn.XmlNode.of(i.xmlName??e.getMemberName()),x&&I.addAttribute(A,x),n.addChildNode(I));for(let q in r){let H=r[q];if(_||H!=null){let me=rn.XmlNode.of("entry");T(me,q,H),(s?n:I).addChildNode(me)}}}}writeSimple(e,r){if(r===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let n=B.of(e),o=null;if(r&&typeof r=="object")if(n.isBlobSchema())o=(this.serdeContext?.base64Encoder??Ie)(r);else if(n.isTimestampSchema()&&r instanceof Date)switch(Ze(n,this.settings)){case 5:o=r.toISOString().replace(".000Z","Z");break;case 6:o=br(r);break;case 7:o=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",r),o=br(r);break}else{if(n.isBigDecimalSchema()&&r)return r instanceof Y?r.string:String(r);throw n.isMapSchema()||n.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`)}if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(o=String(r)),n.isStringSchema()&&(r===void 0&&n.isIdempotencyToken()?o=xr():o=String(r)),o===null)throw new Error(`Unhandled schema-value pair ${n.getName(!0)}=${r}`);return o}writeSimpleInto(e,r,n,o){let s=this.writeSimple(e,r),i=B.of(e),a=new rn.XmlText(s),[c,u]=this.getXmlnsAttribute(i,o);u&&n.addAttribute(c,u),n.addChildNode(a)}getXmlnsAttribute(e,r){let n=e.getMergedTraits(),[o,s]=n.xmlNamespace??[];return s&&s!==r?[o?`xmlns:${o}`:"xmlns",s]:[void 0,void 0]}}});var Kl,G$=g(()=>{Bo();Hy();U$();Kl=class extends ht{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Wl(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Da(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var Ql,e5=g(()=>{V();ae();Nl();B$();G$();Ql=class extends la{codec;serializer;deserializer;mixin=new eo;constructor(e){super(e);let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new Kl(r),this.serializer=new ma(this.codec.createSerializer(),r),this.deserializer=new fa(this.codec.createDeserializer(),r)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n),s=B.of(e.input);if(!o.headers["content-type"]){let i=this.mixin.resolveRestContentType(this.getDefaultContentType(),s);i&&(o.headers["content-type"]=i)}return typeof o.body=="string"&&o.headers["content-type"]===this.getDefaultContentType()&&!o.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(s)&&(o.body='<?xml version="1.0" encoding="UTF-8"?>'+o.body),o}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,o,s){let i=zy(n,o)??"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace),o.Error&&typeof o.Error=="object")for(let A of Object.keys(o.Error))o[A]=o.Error[A],A.toLowerCase()==="message"&&(o.message=o.Error[A]);o.RequestId&&!s.requestId&&(s.requestId=o.RequestId);let{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,o,s),u=B.of(a),f=o.Error?.message??o.Error?.Message??o.message??o.Message??"UnknownError",m=this.compositeErrorRegistry.getErrorCtor(a)??Error,y=new m({});await this.deserializeHttpMessage(a,r,n,o);let _={},C=this.codec.createDeserializer();for(let[A,x]of u.structIterator()){let T=x.getMergedTraits().xmlName??A,I=o.Error?.[T]??o[T];_[A]=C.readSchema(x,I)}throw this.mixin.decorateServiceException(Object.assign(y,c,{$fault:u.getMergedTraits().error,message:f},_),o)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(let[,r]of e.structIterator())if(r.getMergedTraits().httpPayload)return!(r.isStructSchema()||r.isMapSchema()||r.isListSchema());return!1}}});var t5,r5=g(()=>{j();t5=t=>{if(t!=null)return typeof t=="object"&&"__type"in t&&delete t.__type,Bh(t)}});var n5,o5,s5,i5=g(()=>{n5=t=>{if(t==null)return t;if(typeof t=="number"||typeof t=="bigint"){let e=new Error(`Received number ${t} where a string was expected.`);return e.name="Warning",console.warn(e),String(t)}if(typeof t=="boolean"){let e=new Error(`Received boolean ${t} where a string was expected.`);return e.name="Warning",console.warn(e),String(t)}return t},o5=t=>{if(t==null)return t;if(typeof t=="string"){let e=t.toLowerCase();if(t!==""&&e!=="false"&&e!=="true"){let r=new Error(`Received string "${t}" where a boolean was expected.`);r.name="Warning",console.warn(r)}return t!==""&&e!=="false"}return t},s5=t=>{if(t==null)return t;if(typeof t=="string"){let e=Number(t);if(e.toString()!==t){let r=new Error(`Received string "${t}" where a number was expected.`);return r.name="Warning",console.warn(r),t}return e}return t}});var Vy={};Ct(Vy,{AwsEc2QueryProtocol:()=>jy,AwsJson1_0Protocol:()=>Ly,AwsJson1_1Protocol:()=>Ny,AwsJsonRpcProtocol:()=>va,AwsQueryProtocol:()=>Ia,AwsRestJsonProtocol:()=>Ks,AwsRestXmlProtocol:()=>Ql,AwsSmithyRpcV2CborProtocol:()=>Ry,JsonCodec:()=>By,JsonCodec2:()=>Ta,JsonShapeDeserializer:()=>jl,JsonShapeDeserializer2:()=>Gl,JsonShapeSerializer:()=>zl,JsonShapeSerializer2:()=>Hl,QueryShapeSerializer:()=>Vl,XmlCodec:()=>Kl,XmlShapeDeserializer:()=>Da,XmlShapeSerializer:()=>Wl,_toBool:()=>o5,_toNum:()=>s5,_toStr:()=>n5,awsExpectUnion:()=>t5,loadJsonRpcErrorCode:()=>Iy,loadRestJsonErrorCode:()=>Dy,loadRestXmlErrorCode:()=>zy,parseJsonBody:()=>Nc,parseJsonErrorBody:()=>L6,parseXmlBody:()=>F$,parseXmlErrorBody:()=>Z6});var Di=g(()=>{k6();j6();z6();My();V6();Q6();P$();O$();ky();D$();w$();Ul();J6();N$();L$();e5();G$();Hy();U$();B$();r5();i5()});var Pf,Fc,Wy,a5,d5,Ky,q$,c5,H$,Yl,u5,l5,kDe,_n,MDe,p5,f5=g(()=>{He();Pf="ref",Fc=-1,Wy=!0,a5="isSet",d5="PartitionResult",Ky="booleanEquals",q$="getAttr",c5={[Pf]:"Endpoint"},H$={[Pf]:d5},Yl={},u5=[{[Pf]:"Region"}],l5={conditions:[[a5,[c5]],[a5,u5],["aws.partition",u5,d5],[Ky,[{[Pf]:"UseFIPS"},Wy]],[Ky,[{[Pf]:"UseDualStack"},Wy]],[Ky,[{fn:q$,argv:[H$,"supportsDualStack"]},Wy]],[Ky,[{fn:q$,argv:[H$,"supportsFIPS"]},Wy]],["stringEquals",[{fn:q$,argv:[H$,"name"]},"aws-us-gov"]]],results:[[Fc],[Fc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Fc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[c5,Yl],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Yl],[Fc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",Yl],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",Yl],[Fc,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",Yl],[Fc,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",Yl],[Fc,"Invalid Configuration: Missing Region"]]},kDe=2,_n=1e8,MDe=new Int32Array([-1,1,-1,0,13,3,1,4,_n+12,2,5,_n+12,3,8,6,4,7,_n+11,5,_n+9,_n+10,4,11,9,6,10,_n+8,7,_n+6,_n+7,5,12,_n+5,6,_n+4,_n+5,3,_n+1,14,4,_n+2,_n+3]),p5=Kn.from(MDe,kDe,l5.conditions,l5.results)});var LDe,m5,g5=g(()=>{Ee();He();f5();LDe=new Qn({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),m5=(t,e={})=>LDe.get(t,()=>Ts(p5,{endpointParams:t,logger:e.logger}));Sn.aws=Lo});var sr,Qy=g(()=>{J();sr=class t extends zn{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var Of,$f,kf,Mf,Lf,Nf,Ff,Bf,Uf,Gf,qf,j$=g(()=>{Qy();Of=class t extends sr{static shapeId="com.amazonaws.ssooidc#AccessDeniedException";name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}},$f=class t extends sr{static shapeId="com.amazonaws.ssooidc#AuthorizationPendingException";name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},kf=class t extends sr{static shapeId="com.amazonaws.ssooidc#ExpiredTokenException";name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Mf=class t extends sr{static shapeId="com.amazonaws.ssooidc#InternalServerException";name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Lf=class t extends sr{static shapeId="com.amazonaws.ssooidc#InvalidClientException";name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Nf=class t extends sr{static shapeId="com.amazonaws.ssooidc#InvalidGrantException";name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Ff=class t extends sr{static shapeId="com.amazonaws.ssooidc#InvalidRequestException";name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}},Bf=class t extends sr{static shapeId="com.amazonaws.ssooidc#InvalidScopeException";name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Uf=class t extends sr{static shapeId="com.amazonaws.ssooidc#SlowDownException";name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Gf=class t extends sr{static shapeId="com.amazonaws.ssooidc#UnauthorizedClientException";name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},qf=class t extends sr{static shapeId="com.amazonaws.ssooidc#UnsupportedGrantTypeException";name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}}});var NDe,FDe,BDe,UDe,GDe,qDe,HDe,jDe,zDe,VDe,WDe,KDe,QDe,YDe,JDe,XDe,ZDe,eIe,tIe,rIe,Qs,nIe,oIe,sIe,iIe,aIe,St,cIe,Uo,uIe,lIe,Go,dIe,h5,S5,pIe,y5,fIe,mIe,gIe,Pt,E5,_5,ro,R5,C5,b5,A5,x5,T5,v5,D5,I5,w5,P5,z$,hIe,SIe,yIe,EIe,O5,$5,k5,V$,Yy=g(()=>{ae();j$();Qy();NDe="AccessDeniedException",FDe="AuthorizationPendingException",BDe="AccessToken",UDe="ClientSecret",GDe="CreateToken",qDe="CreateTokenRequest",HDe="CreateTokenResponse",jDe="CodeVerifier",zDe="ExpiredTokenException",VDe="InvalidClientException",WDe="InvalidGrantException",KDe="InvalidRequestException",QDe="InternalServerException",YDe="InvalidScopeException",JDe="IdToken",XDe="RefreshToken",ZDe="SlowDownException",eIe="UnauthorizedClientException",tIe="UnsupportedGrantTypeException",rIe="accessToken",Qs="client",nIe="clientId",oIe="clientSecret",sIe="codeVerifier",iIe="code",aIe="deviceCode",St="error",cIe="expiresIn",Uo="error_description",uIe="grantType",lIe="http",Go="httpError",dIe="idToken",h5="reason",S5="refreshToken",pIe="redirectUri",y5="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",fIe="scope",mIe="server",gIe="tokenType",Pt="com.amazonaws.ssooidc",E5=new Fe(y5),_5=[-3,y5,"SSOOIDCServiceException",0,[],[]];E5.registerError(_5,sr);ro=new Fe(Pt),R5=[-3,Pt,NDe,{[St]:Qs,[Go]:400},[St,h5,Uo],[0,0,0]];ro.registerError(R5,Of);C5=[-3,Pt,FDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];ro.registerError(C5,$f);b5=[-3,Pt,zDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];ro.registerError(b5,kf);A5=[-3,Pt,QDe,{[St]:mIe,[Go]:500},[St,Uo],[0,0]];ro.registerError(A5,Mf);x5=[-3,Pt,VDe,{[St]:Qs,[Go]:401},[St,Uo],[0,0]];ro.registerError(x5,Lf);T5=[-3,Pt,WDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];ro.registerError(T5,Nf);v5=[-3,Pt,KDe,{[St]:Qs,[Go]:400},[St,h5,Uo],[0,0,0]];ro.registerError(v5,Ff);D5=[-3,Pt,YDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];ro.registerError(D5,Bf);I5=[-3,Pt,ZDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];ro.registerError(I5,Uf);w5=[-3,Pt,eIe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];ro.registerError(w5,Gf);P5=[-3,Pt,tIe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];ro.registerError(P5,qf);z$=[E5,ro],hIe=[0,Pt,BDe,8,0],SIe=[0,Pt,UDe,8,0],yIe=[0,Pt,jDe,8,0],EIe=[0,Pt,JDe,8,0],O5=[0,Pt,XDe,8,0],$5=[3,Pt,qDe,0,[nIe,oIe,uIe,aIe,iIe,S5,fIe,pIe,sIe],[0,[()=>SIe,0],0,0,0,[()=>O5,0],64,0,[()=>yIe,0]],3],k5=[3,Pt,HDe,0,[rIe,gIe,cIe,S5,dIe],[[()=>hIe,0],0,1,[()=>O5,0],[()=>EIe,0]]],V$=[9,Pt,GDe,{[lIe]:["POST","/token",200]},()=>$5,()=>k5]});var M5,L5=g(()=>{rr();Di();jt();$n();J();V();j();n$();g5();Yy();M5=t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??Xe,base64Encoder:t?.base64Encoder??Ie,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??m5,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??d6,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new tr},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],logger:t?.logger??new Nr,protocol:t?.protocol??Ks,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:z$,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:t?.serviceId??"SSO OIDC",sha256:t?.sha256??yn,urlParser:t?.urlParser??Cr,utf8Decoder:t?.utf8Decoder??qt,utf8Encoder:t?.utf8Encoder??ze})});var Jy,N5,F5=g(()=>{bf();Ee();rr();J();ye();tn();j();Jy=De(zs());L5();N5=t=>{fs(process.version);let e=As(t),r=()=>e().then(ps),n=M5(t);us(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ue(No,o),bodyLengthChecker:t?.bodyLengthChecker??Es,defaultUserAgentProvider:t?.defaultUserAgentProvider??Mo({serviceId:n.serviceId,clientVersion:ba.version}),maxAttempts:t?.maxAttempts??ue($s,t),region:t?.region??ue(Ar,{...en,...o}),requestHandler:Jy.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ue({...Ms,default:async()=>(await r()).retryMode||Jn},t),streamCollector:t?.streamCollector??Jy.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ue(Cs,o),useFipsEndpoint:t?.useFipsEndpoint??ue(bs,o),userAgentAppId:t?.userAgentAppId??ue(Gs,o)}}});var B5,U5,G5=g(()=>{B5=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},U5=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var q5,H5=g(()=>{Ee();J();V();G5();q5=(t,e)=>{let r=Object.assign(qs(t),Co(t),vs(t),B5(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Hs(r),ms(r),Ds(r),U5(r))}});var Hf,W$=g(()=>{Ee();jt();J();ye();He();V();tn();ae();n$();o$();F5();H5();Hf=class extends Lr{config;constructor(...[e]){let r=N5(e||{});super(r),this.initConfig=r;let n=f6(r),o=Bs(n),s=ks(o),i=wn(s),a=i,c=Ci(a),u=p6(c),f=q5(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(Us(this.config)),this.middlewareStack.use(xi(this.config)),this.middlewareStack.use(Is(this.config)),this.middlewareStack.use(Ls(this.config)),this.middlewareStack.use(Ns(this.config)),this.middlewareStack.use(Fs(this.config)),this.middlewareStack.use($o(this.config,{httpAuthSchemeParametersProvider:l6,identityProviderConfigProvider:async m=>new kn({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(ko(this.config))}destroy(){super.destroy()}}});var j5,z5,V5,W5=g(()=>{J();He();o$();j5=gs(m6,"AWSSSOOIDCService","SSOOIDCClient",bi),z5={},V5=(t,e,r,n)=>[]});var jf,K$=g(()=>{W5();Yy();jf=class extends j5(z5,V5,"CreateToken",V$){}});var _Ie,Xy,K5=g(()=>{J();K$();W$();_Ie={CreateTokenCommand:jf},Xy=class extends Hf{};ds(_Ie,Xy)});var Q5=g(()=>{K$()});var RIe,CIe,Y5=g(()=>{RIe={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},CIe={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"}});var J5=g(()=>{});var Q$={};Ct(Q$,{$Command:()=>Zr,AccessDeniedException:()=>Of,AccessDeniedException$:()=>R5,AccessDeniedExceptionReason:()=>RIe,AuthorizationPendingException:()=>$f,AuthorizationPendingException$:()=>C5,CreateToken$:()=>V$,CreateTokenCommand:()=>jf,CreateTokenRequest$:()=>$5,CreateTokenResponse$:()=>k5,ExpiredTokenException:()=>kf,ExpiredTokenException$:()=>b5,InternalServerException:()=>Mf,InternalServerException$:()=>A5,InvalidClientException:()=>Lf,InvalidClientException$:()=>x5,InvalidGrantException:()=>Nf,InvalidGrantException$:()=>T5,InvalidRequestException:()=>Ff,InvalidRequestException$:()=>v5,InvalidRequestExceptionReason:()=>CIe,InvalidScopeException:()=>Bf,InvalidScopeException$:()=>D5,SSOOIDC:()=>Xy,SSOOIDCClient:()=>Hf,SSOOIDCServiceException:()=>sr,SSOOIDCServiceException$:()=>_5,SlowDownException:()=>Uf,SlowDownException$:()=>I5,UnauthorizedClientException:()=>Gf,UnauthorizedClientException$:()=>w5,UnsupportedGrantTypeException:()=>qf,UnsupportedGrantTypeException$:()=>P5,__Client:()=>Lr,errorTypeRegistries:()=>z$});var Y$=g(()=>{W$();K5();Q5();J();Yy();Y5();j$();J5();Qy()});var tz=st(zf=>{var{setTokenFeature:bIe}=(Ee(),F(Mn)),{getBearerTokenEnvKey:AIe}=(rr(),F(Il)),{TokenProviderError:qo,getSSOTokenFilepath:xIe,parseKnownFiles:TIe,getProfileName:vIe,loadSsoSessionData:DIe,getSSOTokenFromFile:IIe,memoize:wIe,chain:PIe}=(ye(),F(Br)),{promises:OIe}=require("node:fs"),$Ie=({logger:t,signingName:e}={})=>async()=>{if(t?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!e)throw new qo("Please pass 'signingName' to compute environment variable key",{logger:t});let r=AIe(e);if(!(r in process.env))throw new qo(`Token not present in '${r}' environment variable`,{logger:t});let n={token:process.env[r]};return bIe(n,"BEARER_SERVICE_ENV_VARS","3"),n},kIe=300*1e3,J$="To refresh this SSO session run 'aws sso login' with the corresponding profile.",MIe=async(t,e={},r)=>{let{SSOOIDCClient:n}=(Y$(),F(Q$)),o=i=>e.clientConfig?.[i]??e.parentClientConfig?.[i]??r?.[i];return new n(Object.assign({},e.clientConfig??{},{region:t??e.clientConfig?.region,logger:o("logger"),userAgentAppId:o("userAgentAppId")}))},LIe=async(t,e,r={},n)=>{let{CreateTokenCommand:o}=(Y$(),F(Q$));return(await MIe(e,r,n)).send(new o({clientId:t.clientId,clientSecret:t.clientSecret,refreshToken:t.refreshToken,grantType:"refresh_token"}))},X5=t=>{if(t.expiration&&t.expiration.getTime()<Date.now())throw new qo(`Token is expired. ${J$}`,!1)},Bc=(t,e,r=!1)=>{if(typeof e>"u")throw new qo(`Value not present for '${t}' in SSO Token${r?". Cannot refresh":""}. ${J$}`,!1)},{writeFile:NIe}=OIe,FIe=(t,e)=>{let r=xIe(t),n=JSON.stringify(e,null,2);return NIe(r,n)},Z5=new Map,ez=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/token-providers - fromSso");let r=await TIe(t),n=vIe({profile:t.profile??e?.profile}),o=r[n];if(o){if(!o.sso_session)throw new qo(`Profile '${n}' is missing required property 'sso_session'.`)}else throw new qo(`Profile '${n}' could not be found in shared credentials file.`,!1);let s=o.sso_session,a=(await DIe(t))[s];if(!a)throw new qo(`Sso session '${s}' could not be found in shared credentials file.`,!1);for(let C of["sso_start_url","sso_region"])if(!a[C])throw new qo(`Sso session '${s}' is missing required property '${C}'.`,!1);a.sso_start_url;let c=a.sso_region,u;try{u=await IIe(s)}catch{throw new qo(`The SSO session token associated with profile=${n} was not found or is invalid. ${J$}`,!1)}Bc("accessToken",u.accessToken),Bc("expiresAt",u.expiresAt);let{accessToken:f,expiresAt:m}=u,y={token:f,expiration:new Date(m)};if(y.expiration.getTime()-Date.now()>kIe)return y;let _=Z5.get(s)??0;if(Date.now()-_<30*1e3)return X5(y),y;Bc("clientId",u.clientId,!0),Bc("clientSecret",u.clientSecret,!0),Bc("refreshToken",u.refreshToken,!0);try{Z5.set(s,Date.now());let C=await LIe(u,c,t,e);Bc("accessToken",C.accessToken),Bc("expiresIn",C.expiresIn);let A=new Date(Date.now()+C.expiresIn*1e3);try{await FIe(s,{...u,accessToken:C.accessToken,expiresAt:A.toISOString(),refreshToken:C.refreshToken})}catch{}return{token:C.accessToken,expiration:A}}catch{return X5(y),y}},BIe=({token:t,logger:e})=>async()=>{if(e?.debug("@aws-sdk/token-providers - fromStatic"),!t||!t.token)throw new qo("Please pass a valid token to fromStatic",!1);return t},UIe=(t={})=>wIe(PIe(ez(t),async()=>{throw new qo("Could not load token from any providers",!1)}),e=>e.expiration!==void 0&&e.expiration.getTime()-Date.now()<3e5,e=>e.expiration!==void 0);zf.fromEnvSigningName=$Ie;zf.fromSso=ez;zf.fromStatic=BIe;zf.nodeProvider=UIe});function GIe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function qIe(t){return{schemeId:"smithy.api#noAuth"}}var rz,nz,oz,X$=g(()=>{rr();J();rz=async(t,e,r)=>({operation:Le(e).operation,region:await we(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});nz=t=>{let e=[];return t.operation==="GetRoleCredentials"?e.push(qIe(t)):e.push(GIe(t)),e},oz=t=>{let e=js(t);return Object.assign(e,{authSchemePreference:we(t.authSchemePreference??[])})}});var sz,iz,Z$=g(()=>{sz=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}),iz={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var Vf,Uc,Zy,az,dz,eE,ek,cz,tk,Jl,uz,lz,HIe,Rn,jIe,pz,fz=g(()=>{He();Vf="ref",Uc=-1,Zy=!0,az="isSet",dz="PartitionResult",eE="booleanEquals",ek="getAttr",cz={[Vf]:"Endpoint"},tk={[Vf]:dz},Jl={},uz=[{[Vf]:"Region"}],lz={conditions:[[az,[cz]],[az,uz],["aws.partition",uz,dz],[eE,[{[Vf]:"UseFIPS"},Zy]],[eE,[{[Vf]:"UseDualStack"},Zy]],[eE,[{fn:ek,argv:[tk,"supportsDualStack"]},Zy]],[eE,[{fn:ek,argv:[tk,"supportsFIPS"]},Zy]],["stringEquals",[{fn:ek,argv:[tk,"name"]},"aws-us-gov"]]],results:[[Uc],[Uc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Uc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[cz,Jl],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Jl],[Uc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",Jl],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",Jl],[Uc,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",Jl],[Uc,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",Jl],[Uc,"Invalid Configuration: Missing Region"]]},HIe=2,Rn=1e8,jIe=new Int32Array([-1,1,-1,0,13,3,1,4,Rn+12,2,5,Rn+12,3,8,6,4,7,Rn+11,5,Rn+9,Rn+10,4,11,9,6,10,Rn+8,7,Rn+6,Rn+7,5,12,Rn+5,6,Rn+4,Rn+5,3,Rn+1,14,4,Rn+2,Rn+3]),pz=Kn.from(jIe,HIe,lz.conditions,lz.results)});var zIe,mz,gz=g(()=>{Ee();He();fz();zIe=new Qn({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),mz=(t,e={})=>zIe.get(t,()=>Ts(pz,{endpointParams:t,logger:e.logger}));Sn.aws=Lo});var Ho,tE=g(()=>{J();Ho=class t extends zn{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sso#SSOServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var Wf,Kf,Qf,Yf,rk=g(()=>{tE();Wf=class t extends Ho{static shapeId="com.amazonaws.sso#InvalidRequestException";name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Kf=class t extends Ho{static shapeId="com.amazonaws.sso#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Qf=class t extends Ho{static shapeId="com.amazonaws.sso#TooManyRequestsException";name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Yf=class t extends Ho{static shapeId="com.amazonaws.sso#UnauthorizedException";name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}}});var VIe,WIe,KIe,QIe,YIe,JIe,XIe,ZIe,ewe,twe,rwe,nwe,owe,swe,iwe,rE,nE,awe,cwe,oE,uwe,hz,sE,lwe,dwe,pwe,Sz,fwe,mwe,gwe,no,yz,Ez,Jf,_z,Rz,Cz,bz,nk,hwe,Swe,ywe,Az,xz,Tz,ok,iE=g(()=>{ae();rk();tE();VIe="AccessTokenType",WIe="GetRoleCredentials",KIe="GetRoleCredentialsRequest",QIe="GetRoleCredentialsResponse",YIe="InvalidRequestException",JIe="RoleCredentials",XIe="ResourceNotFoundException",ZIe="SecretAccessKeyType",ewe="SessionTokenType",twe="TooManyRequestsException",rwe="UnauthorizedException",nwe="accountId",owe="accessKeyId",swe="accessToken",iwe="account_id",rE="client",nE="error",awe="expiration",cwe="http",oE="httpError",uwe="httpHeader",hz="httpQuery",sE="message",lwe="roleCredentials",dwe="roleName",pwe="role_name",Sz="smithy.ts.sdk.synthetic.com.amazonaws.sso",fwe="secretAccessKey",mwe="sessionToken",gwe="x-amz-sso_bearer_token",no="com.amazonaws.sso",yz=new Fe(Sz),Ez=[-3,Sz,"SSOServiceException",0,[],[]];yz.registerError(Ez,Ho);Jf=new Fe(no),_z=[-3,no,YIe,{[nE]:rE,[oE]:400},[sE],[0]];Jf.registerError(_z,Wf);Rz=[-3,no,XIe,{[nE]:rE,[oE]:404},[sE],[0]];Jf.registerError(Rz,Kf);Cz=[-3,no,twe,{[nE]:rE,[oE]:429},[sE],[0]];Jf.registerError(Cz,Qf);bz=[-3,no,rwe,{[nE]:rE,[oE]:401},[sE],[0]];Jf.registerError(bz,Yf);nk=[yz,Jf],hwe=[0,no,VIe,8,0],Swe=[0,no,ZIe,8,0],ywe=[0,no,ewe,8,0],Az=[3,no,KIe,0,[dwe,nwe,swe],[[0,{[hz]:pwe}],[0,{[hz]:iwe}],[()=>hwe,{[uwe]:gwe}]],3],xz=[3,no,QIe,0,[lwe],[[()=>Tz,0]]],Tz=[3,no,JIe,0,[owe,fwe,mwe,awe],[0,[()=>Swe,0],[()=>ywe,0],1]],ok=[9,no,WIe,{[cwe]:["GET","/federation/credentials",200]},()=>Az,()=>xz]});var vz,Dz=g(()=>{rr();Di();jt();$n();J();V();j();X$();gz();iE();vz=t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??Xe,base64Encoder:t?.base64Encoder??Ie,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??mz,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??nz,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new tr},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],logger:t?.logger??new Nr,protocol:t?.protocol??Ks,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:nk,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:t?.serviceId??"SSO",sha256:t?.sha256??yn,urlParser:t?.urlParser??Cr,utf8Decoder:t?.utf8Decoder??qt,utf8Encoder:t?.utf8Encoder??ze})});var aE,Iz,wz=g(()=>{bf();Ee();rr();J();ye();tn();j();aE=De(zs());Dz();Iz=t=>{fs(process.version);let e=As(t),r=()=>e().then(ps),n=vz(t);us(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ue(No,o),bodyLengthChecker:t?.bodyLengthChecker??Es,defaultUserAgentProvider:t?.defaultUserAgentProvider??Mo({serviceId:n.serviceId,clientVersion:ba.version}),maxAttempts:t?.maxAttempts??ue($s,t),region:t?.region??ue(Ar,{...en,...o}),requestHandler:aE.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ue({...Ms,default:async()=>(await r()).retryMode||Jn},t),streamCollector:t?.streamCollector??aE.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ue(Cs,o),useFipsEndpoint:t?.useFipsEndpoint??ue(bs,o),userAgentAppId:t?.userAgentAppId??ue(Gs,o)}}});var Pz,Oz,$z=g(()=>{Pz=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},Oz=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var kz,Mz=g(()=>{Ee();J();V();$z();kz=(t,e)=>{let r=Object.assign(qs(t),Co(t),vs(t),Pz(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Hs(r),ms(r),Ds(r),Oz(r))}});var Xf,sk=g(()=>{Ee();jt();J();ye();He();V();tn();ae();X$();Z$();wz();Mz();Xf=class extends Lr{config;constructor(...[e]){let r=Iz(e||{});super(r),this.initConfig=r;let n=sz(r),o=Bs(n),s=ks(o),i=wn(s),a=i,c=Ci(a),u=oz(c),f=kz(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(Us(this.config)),this.middlewareStack.use(xi(this.config)),this.middlewareStack.use(Is(this.config)),this.middlewareStack.use(Ls(this.config)),this.middlewareStack.use(Ns(this.config)),this.middlewareStack.use(Fs(this.config)),this.middlewareStack.use($o(this.config,{httpAuthSchemeParametersProvider:rz,identityProviderConfigProvider:async m=>new kn({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(ko(this.config))}destroy(){super.destroy()}}});var Lz,Nz,Fz,Bz=g(()=>{J();He();Z$();Lz=gs(iz,"SWBPortalService","SSOClient",bi),Nz={},Fz=(t,e,r,n)=>[]});var Zf,ik=g(()=>{Bz();iE();Zf=class extends Lz(Nz,Fz,"GetRoleCredentials",ok){}});var Ewe,cE,Uz=g(()=>{J();ik();sk();Ewe={GetRoleCredentialsCommand:Zf},cE=class extends Xf{};ds(Ewe,cE)});var Gz=g(()=>{ik()});var qz=g(()=>{});var Hz={};Ct(Hz,{$Command:()=>Zr,GetRoleCredentials$:()=>ok,GetRoleCredentialsCommand:()=>Zf,GetRoleCredentialsRequest$:()=>Az,GetRoleCredentialsResponse$:()=>xz,InvalidRequestException:()=>Wf,InvalidRequestException$:()=>_z,ResourceNotFoundException:()=>Kf,ResourceNotFoundException$:()=>Rz,RoleCredentials$:()=>Tz,SSO:()=>cE,SSOClient:()=>Xf,SSOServiceException:()=>Ho,SSOServiceException$:()=>Ez,TooManyRequestsException:()=>Qf,TooManyRequestsException$:()=>Cz,UnauthorizedException:()=>Yf,UnauthorizedException$:()=>bz,__Client:()=>Lr,errorTypeRegistries:()=>nk});var jz=g(()=>{sk();Uz();Gz();J();iE();rk();qz();tE()});var zz=st(ak=>{var{GetRoleCredentialsCommand:_we,SSOClient:Rwe}=(jz(),F(Hz));ak.GetRoleCredentialsCommand=_we;ak.SSOClient=Rwe});var ck=st(uE=>{var{CredentialsProviderError:jo,getSSOTokenFromFile:Cwe,getProfileName:bwe,parseKnownFiles:Awe,loadSsoSessionData:xwe}=(ye(),F(Br)),{setCredentialFeature:Vz}=(Ee(),F(Mn)),{fromSso:Twe}=tz(),Kz=t=>t&&(typeof t.sso_start_url=="string"||typeof t.sso_account_id=="string"||typeof t.sso_session=="string"||typeof t.sso_region=="string"||typeof t.sso_role_name=="string"),em=!1,Wz=async({ssoStartUrl:t,ssoSession:e,ssoAccountId:r,ssoRegion:n,ssoRoleName:o,ssoClient:s,clientConfig:i,parentClientConfig:a,callerClientConfig:c,profile:u,filepath:f,configFilepath:m,ignoreCache:y,logger:_})=>{let C,A="To refresh this SSO session run aws sso login with the corresponding profile.";if(e)try{let mn=await Twe({profile:u,filepath:f,configFilepath:m,ignoreCache:y,clientConfig:i,parentClientConfig:a,logger:_})({callerClientConfig:c});C={accessToken:mn.token,expiresAt:new Date(mn.expiration).toISOString()}}catch(mn){throw new jo(mn.message,{tryNextLink:em,logger:_})}else try{C=await Cwe(t)}catch{throw new jo(`The SSO session associated with this profile is invalid. ${A}`,{tryNextLink:em,logger:_})}if(new Date(C.expiresAt).getTime()-Date.now()<=0)throw new jo(`The SSO session associated with this profile has expired. ${A}`,{tryNextLink:em,logger:_});let{accessToken:x}=C,{SSOClient:T,GetRoleCredentialsCommand:I}=zz(),q=s||new T(Object.assign({},i??{},{logger:i?.logger??c?.logger??a?.logger,region:i?.region??n,userAgentAppId:i?.userAgentAppId??c?.userAgentAppId??a?.userAgentAppId})),H;try{H=await q.send(new I({accountId:r,roleName:o,accessToken:x}))}catch(mn){throw new jo(mn,{tryNextLink:em,logger:_})}let{roleCredentials:{accessKeyId:me,secretAccessKey:et,sessionToken:ot,expiration:tt,credentialScope:pt,accountId:Jr}={}}=H;if(!me||!et||!ot||!tt)throw new jo("SSO returns an invalid temporary credential.",{tryNextLink:em,logger:_});let Xr={accessKeyId:me,secretAccessKey:et,sessionToken:ot,expiration:new Date(tt),...pt&&{credentialScope:pt},...Jr&&{accountId:Jr}};return e?Vz(Xr,"CREDENTIALS_SSO","s"):Vz(Xr,"CREDENTIALS_SSO_LEGACY","u"),Xr},Qz=(t,e)=>{let{sso_start_url:r,sso_account_id:n,sso_region:o,sso_role_name:s}=t;if(!r||!n||!o||!s)throw new jo(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(t).join(", ")}
|
|
50
|
+
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:e});return t},vwe=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:o,ssoRoleName:s,ssoSession:i}=t,{ssoClient:a}=t,c=bwe({profile:t.profile??e?.profile});if(!r&&!n&&!o&&!s&&!i){let f=(await Awe(t))[c];if(!f)throw new jo(`Profile ${c} was not found.`,{logger:t.logger});if(!Kz(f))throw new jo(`Profile ${c} is not configured with SSO credentials.`,{logger:t.logger});if(f?.sso_session){let T=(await xwe(t))[f.sso_session],I=` configurations in profile ${c} and sso-session ${f.sso_session}`;if(o&&o!==T.sso_region)throw new jo("Conflicting SSO region"+I,{tryNextLink:!1,logger:t.logger});if(r&&r!==T.sso_start_url)throw new jo("Conflicting SSO start_url"+I,{tryNextLink:!1,logger:t.logger});f.sso_region=T.sso_region,f.sso_start_url=T.sso_start_url}let{sso_start_url:m,sso_account_id:y,sso_region:_,sso_role_name:C,sso_session:A}=Qz(f,t.logger);return Wz({ssoStartUrl:m,ssoSession:A,ssoAccountId:y,ssoRegion:_,ssoRoleName:C,ssoClient:a,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:c,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}else{if(!r||!n||!o||!s)throw new jo('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return Wz({ssoStartUrl:r,ssoSession:i,ssoAccountId:n,ssoRegion:o,ssoRoleName:s,ssoClient:a,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:c,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}};uE.fromSSO=vwe;uE.isSsoProfile=Kz;uE.validateSsoProfile=Qz});var rm=st(dE=>{var{SignatureV4:Dwe,signatureV4aContainer:Yz}=BO(),tm={CrtSignerV4:null},uk="X-Amz-S3session-Token",Jz=uk.toLowerCase(),lE=class extends Dwe{async signWithCredentials(e,r,n){let o=Xz(r);e.headers[Jz]=r.sessionToken;let s=this;return Zz(s,o),s.signRequest(e,n??{})}async presignWithCredentials(e,r,n){let o=Xz(r);return delete e.headers[Jz],e.headers[uk]=r.sessionToken,e.query=e.query??{},e.query[uk]=r.sessionToken,Zz(this,o),this.presign(e,n)}};function Xz(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}function Zz(t,e){let r=t.credentialProvider;t.credentialProvider=()=>(t.credentialProvider=r,Promise.resolve(e))}var lk=class{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof tm.CrtSignerV4=="function"?"crt":typeof Yz.SignatureV4a=="function"?"js":"none"}constructor(e){this.sigv4Signer=new lE(e),this.signerOptions=e}async sign(e,r={}){return r.signingRegion==="*"?this.getSigv4aSigner().sign(e,r):this.sigv4Signer.sign(e,r)}async signWithCredentials(e,r,n={}){if(n.signingRegion==="*"){let o=this.getSigv4aSigner(),s=tm.CrtSignerV4;if(s&&o instanceof s)return o.signWithCredentials(e,r,n);throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,r,n)}async presign(e,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),o=tm.CrtSignerV4;if(o&&n instanceof o)return n.presign(e,r);throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,r)}async presignWithCredentials(e,r,n={}){if(n.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,r,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=tm.CrtSignerV4,r=Yz.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!r)throw new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e=="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(r&&typeof r=="function")this.sigv4aSigner=new r({...this.signerOptions});else throw new Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!r||typeof r!="function")throw new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new r({...this.signerOptions})}}return this.sigv4aSigner}};dE.SignatureV4MultiRegion=lk;dE.SignatureV4SignWithCredentials=lE;dE.signatureV4CrtContainer=tm});var Zl,Gc,nm,eV,cV,om,Dr,dk,tV,rV,nV,oV,sV,Ir,pk,Xl,iV,aV,Iwe,Pe,wwe,uV,lV=g(()=>{He();Zl="ref",Gc=-1,nm=!0,eV="isSet",cV="PartitionResult",om="booleanEquals",Dr="stringEquals",dk="getAttr",tV="us-east-1",rV="sigv4",nV="sts",oV="https://sts.{Region}.{PartitionResult#dnsSuffix}",sV={[Zl]:"Endpoint"},Ir={[Zl]:"Region"},pk={[Zl]:cV},Xl={},iV=[Ir],aV={conditions:[[eV,[sV]],[eV,iV],["aws.partition",iV,cV],[om,[{[Zl]:"UseFIPS"},nm]],[om,[{[Zl]:"UseDualStack"},nm]],[Dr,[Ir,"aws-global"]],[om,[{[Zl]:"UseGlobalEndpoint"},nm]],[Dr,[Ir,"eu-central-1"]],[om,[{fn:dk,argv:[pk,"supportsDualStack"]},nm]],[om,[{fn:dk,argv:[pk,"supportsFIPS"]},nm]],[Dr,[Ir,"ap-south-1"]],[Dr,[Ir,"eu-north-1"]],[Dr,[Ir,"eu-west-1"]],[Dr,[Ir,"eu-west-2"]],[Dr,[Ir,"eu-west-3"]],[Dr,[Ir,"sa-east-1"]],[Dr,[Ir,tV]],[Dr,[Ir,"us-east-2"]],[Dr,[Ir,"us-west-2"]],[Dr,[Ir,"us-west-1"]],[Dr,[Ir,"ca-central-1"]],[Dr,[Ir,"ap-southeast-1"]],[Dr,[Ir,"ap-northeast-1"]],[Dr,[Ir,"ap-southeast-2"]],[Dr,[{fn:dk,argv:[pk,"name"]},"aws-us-gov"]]],results:[[Gc],["https://sts.amazonaws.com",{authSchemes:[{name:rV,signingName:nV,signingRegion:tV}]}],[oV,{authSchemes:[{name:rV,signingName:nV,signingRegion:"{Region}"}]}],[Gc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Gc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[sV,Xl],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Xl],[Gc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",Xl],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",Xl],[Gc,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",Xl],[Gc,"DualStack is enabled but this partition does not support DualStack"],[oV,Xl],[Gc,"Invalid Configuration: Missing Region"]]},Iwe=2,Pe=1e8,wwe=new Int32Array([-1,1,-1,0,30,3,1,4,Pe+14,2,5,Pe+14,3,25,6,4,24,7,5,Pe+1,8,6,9,Pe+13,7,Pe+1,10,10,Pe+1,11,11,Pe+1,12,12,Pe+1,13,13,Pe+1,14,14,Pe+1,15,15,Pe+1,16,16,Pe+1,17,17,Pe+1,18,18,Pe+1,19,19,Pe+1,20,20,Pe+1,21,21,Pe+1,22,22,Pe+1,23,23,Pe+1,Pe+2,8,Pe+11,Pe+12,4,28,26,9,27,Pe+10,24,Pe+8,Pe+9,8,29,Pe+7,9,Pe+6,Pe+7,3,Pe+3,31,4,Pe+4,Pe+5]),uV=Kn.from(wwe,Iwe,aV.conditions,aV.results)});var Pwe,pE,fk=g(()=>{Ee();He();lV();Pwe=new Qn({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),pE=(t,e={})=>Pwe.get(t,()=>Ts(uV,{endpointParams:t,logger:e.logger}));Sn.aws=Lo});function fV(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function mk(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function mV(t){return{schemeId:"smithy.api#noAuth"}}var dV,Owe,$we,pV,kwe,Mwe,gV,hV,gk=g(()=>{rr();dV=De(rm());J();He();fk();Owe=t=>async(e,r,n)=>{if(!n)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let o=await t(e,r,n),s=Le(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!s)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let i=await Bp(n,{getEndpointParameterInstructions:s},e);return Object.assign(o,i)},$we=async(t,e,r)=>({operation:Le(e).operation,region:await we(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),pV=Owe($we);kwe=(t,e,r)=>o=>{let i=t(o).properties?.authSchemes;if(!i)return e(o);let a=[];for(let c of i){let{name:u,properties:f={},...m}=c,y=u.toLowerCase();u!==y&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${u}' to '${y}'`);let _;if(y==="sigv4a"){_="aws.auth#sigv4a";let x=i.find(T=>{let I=T.name.toLowerCase();return I!=="sigv4a"&&I.startsWith("sigv4")});if(dV.SignatureV4MultiRegion.sigv4aDependency()==="none"&&x)continue}else if(y.startsWith("sigv4"))_="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let C=r[_];if(!C)throw new Error(`Could not find HttpAuthOption create function for '${_}'`);let A=C(o);A.schemeId=_,A.signingProperties={...A.signingProperties||{},...m,...f},a.push(A)}return a},Mwe=t=>{let e=[];return t.operation==="AssumeRoleWithWebIdentity"?(e.push(mV(t)),e.push(mk(t))):(e.push(fV(t)),e.push(mk(t))),e},gV=kwe(pE,Mwe,{"aws.auth#sigv4":fV,"aws.auth#sigv4a":mk,"smithy.api#noAuth":mV}),hV=t=>{let e=js(t),r=gf(e);return Object.assign(r,{authSchemePreference:we(t.authSchemePreference??[])})}});var SV,yV,hk=g(()=>{SV=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,defaultSigningName:"sts"}),yV={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var Cn,fE=g(()=>{J();Cn=class t extends zn{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sts#STSServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var sm,im,am,cm,um,lm,dm,Sk=g(()=>{fE();sm=class t extends Cn{static shapeId="com.amazonaws.sts#ExpiredTokenException";name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},im=class t extends Cn{static shapeId="com.amazonaws.sts#MalformedPolicyDocumentException";name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},am=class t extends Cn{static shapeId="com.amazonaws.sts#PackedPolicyTooLargeException";name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cm=class t extends Cn{static shapeId="com.amazonaws.sts#RegionDisabledException";name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},um=class t extends Cn{static shapeId="com.amazonaws.sts#IDPRejectedClaimException";name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lm=class t extends Cn{static shapeId="com.amazonaws.sts#InvalidIdentityTokenException";name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},dm=class t extends Cn{static shapeId="com.amazonaws.sts#IDPCommunicationErrorException";name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}}});var Lwe,Nwe,Fwe,Bwe,Uwe,Gwe,yk,qwe,Hwe,jwe,zwe,Ek,Vwe,EV,Wwe,Kwe,Qwe,Ywe,Jwe,Xwe,Zwe,ePe,_V,RV,CV,tPe,rPe,nPe,oPe,sPe,iPe,bV,aPe,cPe,AV,uPe,xV,lPe,dPe,_k,pPe,fPe,TV,vV,mPe,gPe,hPe,SPe,yPe,EPe,_Pe,RPe,qc,Hc,CPe,jc,zc,Vc,bPe,DV,APe,it,IV,wV,wa,PV,OV,$V,kV,MV,LV,NV,Rk,xPe,TPe,Ck,FV,BV,UV,GV,bk,qV,HV,jV,zV,vPe,DPe,Ak,xk,pm=g(()=>{ae();Sk();fE();Lwe="Arn",Nwe="AccessKeyId",Fwe="AssumeRole",Bwe="AssumedRoleId",Uwe="AssumeRoleRequest",Gwe="AssumeRoleResponse",yk="AssumedRoleUser",qwe="AssumeRoleWithWebIdentity",Hwe="AssumeRoleWithWebIdentityRequest",jwe="AssumeRoleWithWebIdentityResponse",zwe="Audience",Ek="Credentials",Vwe="ContextAssertion",EV="DurationSeconds",Wwe="Expiration",Kwe="ExternalId",Qwe="ExpiredTokenException",Ywe="IDPCommunicationErrorException",Jwe="IDPRejectedClaimException",Xwe="InvalidIdentityTokenException",Zwe="Key",ePe="MalformedPolicyDocumentException",_V="MinimumSessionTokenSize",RV="Policy",CV="PolicyArns",tPe="ProviderArn",rPe="ProvidedContexts",nPe="ProvidedContextsListType",oPe="ProvidedContext",sPe="PolicyDescriptorType",iPe="ProviderId",bV="PackedPolicySize",aPe="PackedPolicyTooLargeException",cPe="Provider",AV="RoleArn",uPe="RegionDisabledException",xV="RoleSessionName",lPe="SecretAccessKey",dPe="SubjectFromWebIdentityToken",_k="SourceIdentity",pPe="SerialNumber",fPe="SessionToken",TV="SessionTokenSize",vV="SessionTokenUtilization",mPe="Tags",gPe="TokenCode",hPe="TransitiveTagKeys",SPe="Tag",yPe="Value",EPe="WebIdentityToken",_Pe="arn",RPe="accessKeySecretType",qc="awsQueryError",Hc="client",CPe="clientTokenType",jc="error",zc="httpError",Vc="message",bPe="policyDescriptorListType",DV="smithy.ts.sdk.synthetic.com.amazonaws.sts",APe="tagListType",it="com.amazonaws.sts",IV=new Fe(DV),wV=[-3,DV,"STSServiceException",0,[],[]];IV.registerError(wV,Cn);wa=new Fe(it),PV=[-3,it,Qwe,{[qc]:["ExpiredTokenException",400],[jc]:Hc,[zc]:400},[Vc],[0]];wa.registerError(PV,sm);OV=[-3,it,Ywe,{[qc]:["IDPCommunicationError",400],[jc]:Hc,[zc]:400},[Vc],[0]];wa.registerError(OV,dm);$V=[-3,it,Jwe,{[qc]:["IDPRejectedClaim",403],[jc]:Hc,[zc]:403},[Vc],[0]];wa.registerError($V,um);kV=[-3,it,Xwe,{[qc]:["InvalidIdentityToken",400],[jc]:Hc,[zc]:400},[Vc],[0]];wa.registerError(kV,lm);MV=[-3,it,ePe,{[qc]:["MalformedPolicyDocument",400],[jc]:Hc,[zc]:400},[Vc],[0]];wa.registerError(MV,im);LV=[-3,it,aPe,{[qc]:["PackedPolicyTooLarge",400],[jc]:Hc,[zc]:400},[Vc],[0]];wa.registerError(LV,am);NV=[-3,it,uPe,{[qc]:["RegionDisabledException",403],[jc]:Hc,[zc]:403},[Vc],[0]];wa.registerError(NV,cm);Rk=[IV,wa],xPe=[0,it,RPe,8,0],TPe=[0,it,CPe,8,0],Ck=[3,it,yk,0,[Bwe,Lwe],[0,0],2],FV=[3,it,Uwe,0,[AV,xV,CV,RV,EV,mPe,hPe,Kwe,pPe,gPe,_k,rPe,_V],[0,0,()=>zV,0,1,()=>DPe,64,0,0,0,0,()=>vPe,1],2],BV=[3,it,Gwe,0,[Ek,yk,bV,_k,vV,TV],[[()=>bk,0],()=>Ck,1,0,1,1]],UV=[3,it,Hwe,0,[AV,xV,EPe,iPe,CV,RV,EV,_V],[0,0,[()=>TPe,0],0,()=>zV,0,1,1],3],GV=[3,it,jwe,0,[Ek,dPe,yk,bV,cPe,zwe,_k,vV,TV],[[()=>bk,0],0,()=>Ck,1,0,0,0,1,1]],bk=[3,it,Ek,0,[Nwe,lPe,fPe,Wwe],[0,[()=>xPe,0],0,4],4],qV=[3,it,sPe,0,[_Pe],[0]],HV=[3,it,oPe,0,[tPe,Vwe],[0,0]],jV=[3,it,SPe,0,[Zwe,yPe],[0,0],2],zV=[1,it,bPe,0,()=>qV],vPe=[1,it,nPe,0,()=>HV],DPe=[1,it,APe,0,()=>jV],Ak=[9,it,Fwe,0,()=>FV,()=>BV],xk=[9,it,qwe,0,()=>UV,()=>GV]});var VV,WV,KV=g(()=>{rr();Di();VV=De(rm());jt();$n();J();V();j();gk();fk();pm();WV=t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??Xe,base64Encoder:t?.base64Encoder??Ie,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??pE,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??gV,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new tr},{schemeId:"aws.auth#sigv4a",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4a"),signer:new Ti},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],logger:t?.logger??new Nr,protocol:t?.protocol??Ia,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:Rk,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:t?.serviceId??"STS",sha256:t?.sha256??yn,signerConstructor:t?.signerConstructor??VV.SignatureV4MultiRegion,urlParser:t?.urlParser??Cr,utf8Decoder:t?.utf8Decoder??qt,utf8Encoder:t?.utf8Encoder??ze})});var mE,QV,YV=g(()=>{bf();Ee();rr();jt();J();ye();tn();j();mE=De(zs());KV();QV=t=>{fs(process.version);let e=As(t),r=()=>e().then(ps),n=WV(t);us(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ue(No,o),bodyLengthChecker:t?.bodyLengthChecker??Es,defaultUserAgentProvider:t?.defaultUserAgentProvider??Mo({serviceId:n.serviceId,clientVersion:ba.version}),httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:s=>s.getIdentityProvider("aws.auth#sigv4")||(async i=>await t.credentialDefaultProvider(i?.__config||{})()),signer:new tr},{schemeId:"aws.auth#sigv4a",identityProvider:s=>s.getIdentityProvider("aws.auth#sigv4a"),signer:new Ti},{schemeId:"smithy.api#noAuth",identityProvider:s=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],maxAttempts:t?.maxAttempts??ue($s,t),region:t?.region??ue(Ar,{...en,...o}),requestHandler:mE.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ue({...Ms,default:async()=>(await r()).retryMode||Jn},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??ue(hf,o),streamCollector:t?.streamCollector??mE.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ue(Cs,o),useFipsEndpoint:t?.useFipsEndpoint??ue(bs,o),userAgentAppId:t?.userAgentAppId??ue(Gs,o)}}});var JV,XV,ZV=g(()=>{JV=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},XV=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var eW,tW=g(()=>{Ee();J();V();ZV();eW=(t,e)=>{let r=Object.assign(qs(t),Co(t),vs(t),JV(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Hs(r),ms(r),Ds(r),XV(r))}});var Pa,gE=g(()=>{Ee();jt();J();ye();He();V();tn();ae();gk();hk();YV();tW();Pa=class extends Lr{config;constructor(...[e]){let r=QV(e||{});super(r),this.initConfig=r;let n=SV(r),o=Bs(n),s=ks(o),i=wn(s),a=i,c=Ci(a),u=hV(c),f=eW(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(Us(this.config)),this.middlewareStack.use(xi(this.config)),this.middlewareStack.use(Is(this.config)),this.middlewareStack.use(Ls(this.config)),this.middlewareStack.use(Ns(this.config)),this.middlewareStack.use(Fs(this.config)),this.middlewareStack.use($o(this.config,{httpAuthSchemeParametersProvider:pV,identityProviderConfigProvider:async m=>new kn({"aws.auth#sigv4":m.credentials,"aws.auth#sigv4a":m.credentials})})),this.middlewareStack.use(ko(this.config))}destroy(){super.destroy()}}});var hE,SE,yE,Tk=g(()=>{J();He();hk();hE=gs(yV,"AWSSecurityTokenServiceV20110615","STSClient",bi),SE={},yE=(t,e,r,n)=>[]});var Wc,EE=g(()=>{Tk();pm();Wc=class extends hE(SE,yE,"AssumeRole",Ak){}});var Kc,_E=g(()=>{Tk();pm();Kc=class extends hE(SE,yE,"AssumeRoleWithWebIdentity",xk){}});var IPe,RE,rW=g(()=>{J();EE();_E();gE();IPe={AssumeRoleCommand:Wc,AssumeRoleWithWebIdentityCommand:Kc},RE=class extends Pa{};ds(IPe,RE)});var nW=g(()=>{EE();_E()});var oW=g(()=>{});var sW,iW,aW,cW,uW,lW=g(()=>{Ee();EE();_E();sW=t=>{if(typeof t?.Arn=="string"){let e=t.Arn.split(":");if(e.length>4&&e[4]!=="")return e[4]}},iW=async(t,e,r,n={})=>{let o=typeof t=="function"?await t():t,s=typeof e=="function"?await e():e,i="",a=o??s??(i=await H0(n)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${o} (credential provider clientConfig)`,`${s} (contextual client)`,`${i} (STS default: AWS_REGION, profile region, or us-east-1)`),a},aW=(t,e)=>{let r,n;return async(o,s)=>{if(n=o,!r){let{logger:f=t?.parentClientConfig?.logger,profile:m=t?.parentClientConfig?.profile,region:y,requestHandler:_=t?.parentClientConfig?.requestHandler,credentialProviderLogger:C,userAgentAppId:A=t?.parentClientConfig?.userAgentAppId}=t,x=await iW(y,t?.parentClientConfig?.region,C,{logger:f,profile:m}),T=!uW(_);r=new e({...t,userAgentAppId:A,profile:m,credentialDefaultProvider:()=>async()=>n,region:x,requestHandler:T?_:void 0,logger:f})}let{Credentials:i,AssumedRoleUser:a}=await r.send(new Wc(s));if(!i||!i.AccessKeyId||!i.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);let c=sW(a),u={accessKeyId:i.AccessKeyId,secretAccessKey:i.SecretAccessKey,sessionToken:i.SessionToken,expiration:i.Expiration,...i.CredentialScope&&{credentialScope:i.CredentialScope},...c&&{accountId:c}};return Yi(u,"CREDENTIALS_STS_ASSUME_ROLE","i"),u}},cW=(t,e)=>{let r;return async n=>{if(!r){let{logger:c=t?.parentClientConfig?.logger,profile:u=t?.parentClientConfig?.profile,region:f,requestHandler:m=t?.parentClientConfig?.requestHandler,credentialProviderLogger:y,userAgentAppId:_=t?.parentClientConfig?.userAgentAppId}=t,C=await iW(f,t?.parentClientConfig?.region,y,{logger:c,profile:u}),A=!uW(m);r=new e({...t,userAgentAppId:_,profile:u,region:C,requestHandler:A?m:void 0,logger:c})}let{Credentials:o,AssumedRoleUser:s}=await r.send(new Kc(n));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let i=sW(s),a={accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration,...o.CredentialScope&&{credentialScope:o.CredentialScope},...i&&{accountId:i}};return i&&Yi(a,"RESOLVED_ACCOUNT_ID","T"),Yi(a,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),a}},uW=t=>t?.metadata?.handlerProtocol==="h2"});var dW,pW,fW,wPe,mW=g(()=>{lW();gE();dW=(t,e)=>e?class extends t{constructor(n){super(n);for(let o of e)this.middlewareStack.use(o)}}:t,pW=(t={},e)=>aW(t,dW(Pa,e)),fW=(t={},e)=>cW(t,dW(Pa,e)),wPe=t=>e=>t({roleAssumer:pW(e),roleAssumerWithWebIdentity:fW(e),...e})});var vk={};Ct(vk,{$Command:()=>Zr,AssumeRole$:()=>Ak,AssumeRoleCommand:()=>Wc,AssumeRoleRequest$:()=>FV,AssumeRoleResponse$:()=>BV,AssumeRoleWithWebIdentity$:()=>xk,AssumeRoleWithWebIdentityCommand:()=>Kc,AssumeRoleWithWebIdentityRequest$:()=>UV,AssumeRoleWithWebIdentityResponse$:()=>GV,AssumedRoleUser$:()=>Ck,Credentials$:()=>bk,ExpiredTokenException:()=>sm,ExpiredTokenException$:()=>PV,IDPCommunicationErrorException:()=>dm,IDPCommunicationErrorException$:()=>OV,IDPRejectedClaimException:()=>um,IDPRejectedClaimException$:()=>$V,InvalidIdentityTokenException:()=>lm,InvalidIdentityTokenException$:()=>kV,MalformedPolicyDocumentException:()=>im,MalformedPolicyDocumentException$:()=>MV,PackedPolicyTooLargeException:()=>am,PackedPolicyTooLargeException$:()=>LV,PolicyDescriptorType$:()=>qV,ProvidedContext$:()=>HV,RegionDisabledException:()=>cm,RegionDisabledException$:()=>NV,STS:()=>RE,STSClient:()=>Pa,STSServiceException:()=>Cn,STSServiceException$:()=>wV,Tag$:()=>jV,__Client:()=>Lr,decorateDefaultCredentialProvider:()=>wPe,errorTypeRegistries:()=>Rk,getDefaultRoleAssumer:()=>pW,getDefaultRoleAssumerWithWebIdentity:()=>fW});var Dk=g(()=>{gE();rW();nW();J();pm();Sk();oW();mW();fE()});function PPe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function OPe(t){return{schemeId:"smithy.api#noAuth"}}var gW,hW,SW,Ik=g(()=>{rr();J();gW=async(t,e,r)=>({operation:Le(e).operation,region:await we(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});hW=t=>{let e=[];return t.operation==="CreateOAuth2Token"?e.push(OPe(t)):e.push(PPe(t)),e},SW=t=>{let e=js(t);return Object.assign(e,{authSchemePreference:we(t.authSchemePreference??[])})}});var yW,EW,wk=g(()=>{yW=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"signin"}),EW={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var ka,Oa,_W,ed,RW,td,CW,Ok,Ii,Pk,bW,AW,$a,DW,xW,CE,Gr,TW,vW,$Pe,_e,kPe,IW,wW=g(()=>{He();ka="ref",Oa=-1,_W=!1,ed=!0,RW="isSet",td="booleanEquals",CW="coalesce",Ok="PartitionResult",Ii="stringEquals",Pk="getAttr",bW="https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",AW={[ka]:"Endpoint"},$a={fn:Pk,argv:[{[ka]:Ok},"name"]},DW={[ka]:"Region"},xW={[ka]:Ok},CE={authSchemes:[{name:"sigv4",signingName:"signin",signingRegion:"{Region}"}]},Gr={},TW=[DW],vW={conditions:[[RW,TW],[td,[{fn:CW,argv:[{[ka]:"IsControlPlane"},_W]},ed]],[RW,[AW]],["aws.partition",TW,Ok],[td,[{[ka]:"UseFIPS"},ed]],[Ii,[$a,"aws"]],[td,[{fn:CW,argv:[{[ka]:"IsOAuthEndpoint"},_W]},ed]],[td,[{[ka]:"UseDualStack"},ed]],[Ii,[$a,"aws-cn"]],[Ii,[DW,"us-gov-west-1"]],[Ii,[$a,"aws-us-gov"]],[td,[{fn:Pk,argv:[xW,"supportsFIPS"]},ed]],[Ii,[$a,"aws-iso"]],[Ii,[$a,"aws-iso-b"]],[Ii,[$a,"aws-iso-f"]],[Ii,[$a,"aws-iso-e"]],[Ii,[$a,"aws-eusc"]],[td,[{fn:Pk,argv:[xW,"supportsDualStack"]},ed]]],results:[[Oa],["https://signin.{Region}.api.aws",CE],["https://signin.{Region}.api.amazonwebservices.com.cn",CE],[bW,CE],[Oa,"FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."],["https://{Region}.oauth.signin.aws",CE],["https://{Region}.signin.aws.amazon.com",Gr],["https://{Region}.signin.amazonaws.cn",Gr],["https://{Region}.signin.amazonaws-us-gov.com",Gr],["https://{Region}.signin.c2shome.ic.gov",Gr],["https://{Region}.signin.sc2shome.sgov.gov",Gr],["https://{Region}.signin.csphome.hci.ic.gov",Gr],["https://{Region}.signin.csphome.adc-e.uk",Gr],["https://{Region}.signin.amazonaws-eusc.eu",Gr],["https://signin-fips.amazonaws-us-gov.com",Gr],["https://{Region}.signin-fips.amazonaws-us-gov.com",Gr],["https://{Region}.signin.{PartitionResult#dnsSuffix}",Gr],[Oa,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Oa,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[AW,Gr],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Gr],[Oa,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",Gr],[Oa,"FIPS is enabled but this partition does not support FIPS"],[bW,Gr],[Oa,"DualStack is enabled but this partition does not support DualStack"],["https://signin.{Region}.{PartitionResult#dnsSuffix}",Gr],[Oa,"Invalid Configuration: Missing Region"]]},$Pe=2,_e=1e8,kPe=new Int32Array([-1,1,-1,0,6,3,2,36,4,4,5,_e+27,6,_e+4,_e+27,1,29,7,2,36,8,3,9,31,4,22,10,5,19,11,7,21,12,8,_e+7,13,10,_e+8,14,12,_e+9,15,13,_e+10,16,14,_e+11,17,15,_e+12,18,16,_e+13,_e+16,6,_e+5,20,7,21,_e+6,17,_e+24,_e+25,6,_e+4,23,7,27,24,9,_e+14,25,10,_e+15,26,11,_e+22,_e+23,11,28,_e+21,17,_e+20,_e+21,2,35,30,3,39,31,4,32,_e+27,6,_e+4,33,7,_e+27,34,9,_e+14,_e+27,3,39,36,4,38,37,7,_e+18,_e+19,6,_e+4,_e+17,5,_e+1,40,8,_e+2,_e+3]),IW=Kn.from(kPe,$Pe,vW.conditions,vW.results)});var MPe,PW,OW=g(()=>{Ee();He();wW();MPe=new Qn({size:50,params:["Endpoint","IsControlPlane","IsOAuthEndpoint","Region","UseDualStack","UseFIPS"]}),PW=(t,e={})=>MPe.get(t,()=>Ts(IW,{endpointParams:t,logger:e.logger}));Sn.aws=Lo});var zo,bE=g(()=>{J();zo=class t extends zn{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.signin#SigninServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var fm,mm,gm,hm,$k=g(()=>{bE();fm=class t extends zo{static shapeId="com.amazonaws.signin#AccessDeniedException";name="AccessDeniedException";$fault="client";error;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},mm=class t extends zo{static shapeId="com.amazonaws.signin#InternalServerException";name="InternalServerException";$fault="server";error;constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},gm=class t extends zo{static shapeId="com.amazonaws.signin#TooManyRequestsError";name="TooManyRequestsError";$fault="client";error;constructor(e){super({name:"TooManyRequestsError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},hm=class t extends zo{static shapeId="com.amazonaws.signin#ValidationException";name="ValidationException";$fault="client";error;constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}}});var LPe,NPe,FPe,BPe,UPe,GPe,qPe,HPe,jPe,zPe,VPe,WPe,KPe,QPe,YPe,$W,kk,JPe,Fk,kW,MW,XPe,Ma,Mk,ZPe,Lk,eOe,UW,Bk,LW,wr,xE,tOe,AE,NW,GW,FW,BW,rOe,nOe,oOe,Nk,sOe,qr,qW,HW,Sm,jW,zW,VW,WW,Uk,iOe,KW,QW,YW,JW,XW,ZW,e8,t8,Gk,qk,ym=g(()=>{ae();$k();bE();LPe="AccessDeniedException",NPe="AccessToken",FPe="CreateOAuth2Token",BPe="CreateOAuth2TokenRequest",UPe="CreateOAuth2TokenRequestBody",GPe="CreateOAuth2TokenResponseBody",qPe="CreateOAuth2TokenResponse",HPe="CreateOAuth2TokenWithIAM",jPe="CreateOAuth2TokenWithIAMRequest",zPe="CreateOAuth2TokenWithIAMResponse",VPe="InternalServerException",WPe="OAuthAccessToken",KPe="RefreshToken",QPe="TooManyRequestsError",YPe="ValidationException",$W="accessKeyId",kk="accessToken",JPe="access_token",Fk="client",kW="clientId",MW="codeVerifier",XPe="code",Ma="error",Mk="expiresIn",ZPe="expires_in",Lk="grantType",eOe="grant_type",UW="http",Bk="httpError",LW="idToken",wr="jsonName",xE="message",tOe="resource",AE="refreshToken",NW="redirectUri",GW="smithy.ts.sdk.synthetic.com.amazonaws.signin",FW="secretAccessKey",BW="sessionToken",rOe="server",nOe="tokenInput",oOe="tokenOutput",Nk="tokenType",sOe="token_type",qr="com.amazonaws.signin",qW=new Fe(GW),HW=[-3,GW,"SigninServiceException",0,[],[]];qW.registerError(HW,zo);Sm=new Fe(qr),jW=[-3,qr,LPe,{[Ma]:Fk},[Ma,xE],[0,0],2];Sm.registerError(jW,fm);zW=[-3,qr,VPe,{[Ma]:rOe,[Bk]:500},[Ma,xE],[0,0],2];Sm.registerError(zW,mm);VW=[-3,qr,QPe,{[Ma]:Fk,[Bk]:429},[Ma,xE],[0,0],2];Sm.registerError(VW,gm);WW=[-3,qr,YPe,{[Ma]:Fk,[Bk]:400},[Ma,xE],[0,0],2];Sm.registerError(WW,hm);Uk=[qW,Sm],iOe=[0,qr,WPe,8,0],KW=[0,qr,KPe,8,0],QW=[3,qr,NPe,8,[$W,FW,BW],[[0,{[wr]:$W}],[0,{[wr]:FW}],[0,{[wr]:BW}]],3],YW=[3,qr,BPe,0,[nOe],[[()=>JW,16]],1],JW=[3,qr,UPe,0,[kW,Lk,XPe,NW,MW,AE],[[0,{[wr]:kW}],[0,{[wr]:Lk}],0,[0,{[wr]:NW}],[0,{[wr]:MW}],[()=>KW,{[wr]:AE}]],2],XW=[3,qr,qPe,0,[oOe],[[()=>ZW,16]],1],ZW=[3,qr,GPe,0,[kk,Nk,Mk,AE,LW],[[()=>QW,{[wr]:kk}],[0,{[wr]:Nk}],[1,{[wr]:Mk}],[()=>KW,{[wr]:AE}],[0,{[wr]:LW}]],4],e8=[3,qr,jPe,0,[Lk,tOe],[[0,{[wr]:eOe}],0],2],t8=[3,qr,zPe,0,[kk,Nk,Mk],[[()=>iOe,{[wr]:JPe}],[0,{[wr]:sOe}],[1,{[wr]:ZPe}]],3],Gk=[9,qr,FPe,{[UW]:["POST","/v1/token",200]},()=>YW,()=>XW],qk=[9,qr,HPe,{[UW]:["POST","/v1/token?x-amz-client-auth-method=iam",200]},()=>e8,()=>t8]});var r8,n8=g(()=>{rr();Di();jt();$n();J();V();j();Ik();OW();ym();r8=t=>({apiVersion:"2023-01-01",base64Decoder:t?.base64Decoder??Xe,base64Encoder:t?.base64Encoder??Ie,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??PW,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??hW,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new tr},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],logger:t?.logger??new Nr,protocol:t?.protocol??Ks,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:Uk,version:"2023-01-01",serviceTarget:"Signin"},serviceId:t?.serviceId??"Signin",sha256:t?.sha256??yn,urlParser:t?.urlParser??Cr,utf8Decoder:t?.utf8Decoder??qt,utf8Encoder:t?.utf8Encoder??ze})});var TE,o8,s8=g(()=>{bf();Ee();rr();J();ye();tn();j();TE=De(zs());n8();o8=t=>{fs(process.version);let e=As(t),r=()=>e().then(ps),n=r8(t);us(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ue(No,o),bodyLengthChecker:t?.bodyLengthChecker??Es,defaultUserAgentProvider:t?.defaultUserAgentProvider??Mo({serviceId:n.serviceId,clientVersion:ba.version}),maxAttempts:t?.maxAttempts??ue($s,t),region:t?.region??ue(Ar,{...en,...o}),requestHandler:TE.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ue({...Ms,default:async()=>(await r()).retryMode||Jn},t),streamCollector:t?.streamCollector??TE.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ue(Cs,o),useFipsEndpoint:t?.useFipsEndpoint??ue(bs,o),userAgentAppId:t?.userAgentAppId??ue(Gs,o)}}});var i8,a8,c8=g(()=>{i8=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},a8=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var u8,l8=g(()=>{Ee();J();V();c8();u8=(t,e)=>{let r=Object.assign(qs(t),Co(t),vs(t),i8(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Hs(r),ms(r),Ds(r),a8(r))}});var Em,Hk=g(()=>{Ee();jt();J();ye();He();V();tn();ae();Ik();wk();s8();l8();Em=class extends Lr{config;constructor(...[e]){let r=o8(e||{});super(r),this.initConfig=r;let n=yW(r),o=Bs(n),s=ks(o),i=wn(s),a=i,c=Ci(a),u=SW(c),f=u8(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(Us(this.config)),this.middlewareStack.use(xi(this.config)),this.middlewareStack.use(Is(this.config)),this.middlewareStack.use(Ls(this.config)),this.middlewareStack.use(Ns(this.config)),this.middlewareStack.use(Fs(this.config)),this.middlewareStack.use($o(this.config,{httpAuthSchemeParametersProvider:gW,identityProviderConfigProvider:async m=>new kn({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(ko(this.config))}destroy(){super.destroy()}}});var vE,d8,p8,DE,jk=g(()=>{J();He();wk();vE=gs(EW,"Signin","SigninClient",bi),d8={IsControlPlane:{type:"staticContextParams",value:!1}},p8={IsOAuthEndpoint:{type:"staticContextParams",value:!0}},DE=(t,e,r,n)=>[]});var _m,zk=g(()=>{jk();ym();_m=class extends vE(d8,DE,"CreateOAuth2Token",Gk){}});var Rm,Vk=g(()=>{jk();ym();Rm=class extends vE(p8,DE,"CreateOAuth2TokenWithIAM",qk){}});var aOe,IE,f8=g(()=>{J();zk();Vk();Hk();aOe={CreateOAuth2TokenCommand:_m,CreateOAuth2TokenWithIAMCommand:Rm},IE=class extends Em{};ds(aOe,IE)});var m8=g(()=>{zk();Vk()});var cOe,g8=g(()=>{cOe={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",CONFLICT:"CONFLICT",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",RESOURCE_NOT_FOUND:"RESOURCE_NOT_FOUND",SERVER_ERROR:"server_error",SERVICE_QUOTA_EXCEEDED:"SERVICE_QUOTA_EXCEEDED",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"}});var h8=g(()=>{});var S8={};Ct(S8,{$Command:()=>Zr,AccessDeniedException:()=>fm,AccessDeniedException$:()=>jW,AccessToken$:()=>QW,CreateOAuth2Token$:()=>Gk,CreateOAuth2TokenCommand:()=>_m,CreateOAuth2TokenRequest$:()=>YW,CreateOAuth2TokenRequestBody$:()=>JW,CreateOAuth2TokenResponse$:()=>XW,CreateOAuth2TokenResponseBody$:()=>ZW,CreateOAuth2TokenWithIAM$:()=>qk,CreateOAuth2TokenWithIAMCommand:()=>Rm,CreateOAuth2TokenWithIAMRequest$:()=>e8,CreateOAuth2TokenWithIAMResponse$:()=>t8,InternalServerException:()=>mm,InternalServerException$:()=>zW,OAuth2ErrorCode:()=>cOe,Signin:()=>IE,SigninClient:()=>Em,SigninServiceException:()=>zo,SigninServiceException$:()=>HW,TooManyRequestsError:()=>gm,TooManyRequestsError$:()=>VW,ValidationException:()=>hm,ValidationException$:()=>WW,__Client:()=>Lr,errorTypeRegistries:()=>Uk});var y8=g(()=>{Hk();f8();m8();J();ym();g8();$k();h8();bE()});var R8=st(_8=>{var{setCredentialFeature:uOe}=(Ee(),F(Mn)),{CredentialsProviderError:La,parseKnownFiles:lOe,getProfileName:dOe}=(ye(),F(Br)),{HttpRequest:pOe}=(V(),F(wo)),{createHash:fOe,createPrivateKey:mOe,createPublicKey:gOe,sign:hOe}=require("node:crypto"),{promises:Wk}=require("node:fs"),{homedir:SOe}=require("node:os"),{dirname:yOe,join:E8}=require("node:path"),Kk=class t{profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300*1e3;constructor(e,r,n){this.profileData=e,this.init=r,this.callerClientConfig=n}async loadCredentials(){let e=await this.loadToken();if(!e)throw new La(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let r=e.accessToken,n=Date.now();return new Date(r.expiresAt).getTime()-n<=t.REFRESH_THRESHOLD?this.refresh(e):this.toCredentials(e.accessToken)}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}toCredentials(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken,accountId:e.accountId,expiration:new Date(e.expiresAt)}}async refresh(e){let r=await this.loadToken().catch(()=>e),n=Date.now(),o=new Date(r.accessToken.expiresAt).getTime(),s=new Date(e.accessToken.expiresAt).getTime(),i=o<=n&&s>n?e:r;if(new Date(i.accessToken.expiresAt).getTime()-Date.now()>t.REFRESH_THRESHOLD)return this.toCredentials(i.accessToken);let{SigninClient:c,CreateOAuth2TokenCommand:u}=(y8(),F(S8)),{logger:f,userAgentAppId:m}=this.callerClientConfig??{},_=(T=>T?.metadata?.handlerProtocol==="h2")(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,C=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,A=new c({credentials:{accessKeyId:"",secretAccessKey:""},region:C,requestHandler:_,logger:f,userAgentAppId:m,...this.init?.clientConfig});this.createDPoPInterceptor(A.middlewareStack);let x={tokenInput:{clientId:i.clientId,refreshToken:i.refreshToken,grantType:"refresh_token"}};try{let T=await A.send(new u(x)),{accessKeyId:I,secretAccessKey:q,sessionToken:H}=T.tokenOutput?.accessToken??{},{refreshToken:me,expiresIn:et}=T.tokenOutput??{};if(!I||!q||!H||!me)throw new La("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let ot=(et??900)*1e3,tt=new Date(Date.now()+ot),pt={...i,accessToken:{...i.accessToken,accessKeyId:I,secretAccessKey:q,sessionToken:H,expiresAt:tt.toISOString()},refreshToken:me};return await this.saveToken(pt),this.toCredentials(pt.accessToken)}catch(T){if(T.name==="AccessDeniedException"){let q=T.error,H;switch(q){case"TOKEN_EXPIRED":H="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":H="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":H="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:H=`Failed to refresh token: ${String(T)}. Please re-authenticate using \`aws login\``}throw new La(H,{logger:this.logger,tryNextLink:!1})}if(new Date(i.accessToken.expiresAt).getTime()>Date.now())return this.logger?.warn?.(`Failed to refresh token: ${String(T)}. Using existing token until expiry.`),this.toCredentials(i.accessToken);throw new La(`Failed to refresh token: ${String(T)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let r=await Wk.readFile(e,"utf8"),n=JSON.parse(r),o=["accessToken","clientId","refreshToken","dpopKey"].filter(s=>!n[s]);if(n.accessToken?.accountId||o.push("accountId"),o.length>0)throw new La(`Token validation failed, missing fields: ${o.join(", ")}`,{logger:this.logger,tryNextLink:!1});return n}catch(r){throw new La(`Failed to load token from ${e}: ${String(r)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let r=this.getTokenFilePath(),n=yOe(r);try{await Wk.mkdir(n,{recursive:!0})}catch{}await Wk.writeFile(r,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??E8(SOe(),".aws","login","cache"),r=Buffer.from(this.loginSession,"utf8"),n=fOe("sha256").update(r).digest("hex");return E8(e,`${n}.json`)}derToRawSignature(e){let r=2;if(e[r]!==2)throw new Error("Invalid DER signature");r++;let n=e[r++],o=e.subarray(r,r+n);if(r+=n,e[r]!==2)throw new Error("Invalid DER signature");r++;let s=e[r++],i=e.subarray(r,r+s);o=o[0]===0?o.subarray(1):o,i=i[0]===0?i.subarray(1):i;let a=Buffer.concat([Buffer.alloc(32-o.length),o]),c=Buffer.concat([Buffer.alloc(32-i.length),i]);return Buffer.concat([a,c])}createDPoPInterceptor(e){e.add(r=>async n=>{if(pOe.isInstance(n.request)){let o=n.request,s=`${o.protocol}//${o.hostname}${o.port?`:${o.port}`:""}${o.path}`,i=await this.generateDpop(o.method,s);o.headers={...o.headers,DPoP:i}}return r(n)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",r){let n=await this.loadToken();try{let o=mOe({key:n.dpopKey,format:"pem",type:"sec1"}),i=gOe(o).export({format:"der",type:"spki"}),a=-1;for(let I=0;I<i.length;I++)if(i[I]===4){a=I;break}let c=i.slice(a+1,a+33),u=i.slice(a+33,a+65),f={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:c.toString("base64url"),y:u.toString("base64url")}},m={jti:crypto.randomUUID(),htm:e,htu:r,iat:Math.floor(Date.now()/1e3)},y=Buffer.from(JSON.stringify(f)).toString("base64url"),_=Buffer.from(JSON.stringify(m)).toString("base64url"),C=`${y}.${_}`,A=hOe("sha256",Buffer.from(C),o),T=this.derToRawSignature(A).toString("base64url");return`${C}.${T}`}catch(o){throw new La(`Failed to generate Dpop proof: ${o instanceof Error?o.message:String(o)}`,{logger:this.logger,tryNextLink:!1})}}},EOe=t=>async({callerClientConfig:e}={})=>{t?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let r=await lOe(t||{}),n=dOe({profile:t?.profile??e?.profile}),o=r[n];if(!o?.login_session)throw new La(`Profile ${n} does not contain login_session.`,{tryNextLink:!0,logger:t?.logger});let i=await new Kk(o,t,e).loadCredentials();return uOe(i,"CREDENTIALS_LOGIN","AD")};_8.fromLoginCredentials=EOe});var Yk=st(C8=>{var{externalDataInterceptor:_Oe,CredentialsProviderError:Qk,parseKnownFiles:ROe,getProfileName:COe}=(ye(),F(Br)),{exec:bOe}=require("node:child_process"),{promisify:AOe}=require("node:util"),{setCredentialFeature:xOe}=(Ee(),F(Mn)),TOe=(t,e,r)=>{if(e.Version!==1)throw Error(`Profile ${t} credential_process did not return Version 1.`);if(e.AccessKeyId===void 0||e.SecretAccessKey===void 0)throw Error(`Profile ${t} credential_process returned invalid credentials.`);if(e.Expiration){let s=new Date;if(new Date(e.Expiration)<s)throw Error(`Profile ${t} credential_process returned expired credentials.`)}let n=e.AccountId;!n&&r?.[t]?.aws_account_id&&(n=r[t].aws_account_id);let o={accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,...e.SessionToken&&{sessionToken:e.SessionToken},...e.Expiration&&{expiration:new Date(e.Expiration)},...e.CredentialScope&&{credentialScope:e.CredentialScope},...n&&{accountId:n}};return xOe(o,"CREDENTIALS_PROCESS","w"),o},vOe=async(t,e,r)=>{let n=e[t];if(e[t]){let o=n.credential_process;if(o!==void 0){let s=AOe(_Oe?.getTokenRecord?.().exec??bOe);try{let{stdout:i}=await s(o),a;try{a=JSON.parse(i.trim())}catch{throw Error(`Profile ${t} credential_process returned invalid JSON.`)}return TOe(t,a,e)}catch(i){throw new Qk(i.message,{logger:r})}}else throw new Qk(`Profile ${t} did not contain credential_process.`,{logger:r})}else throw new Qk(`Profile ${t} could not be found in shared credentials file.`,{logger:r})},DOe=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let r=await ROe(t);return vOe(COe({profile:t.profile??e?.profile}),r,t.logger)};C8.fromProcess=DOe});var Xk=st(Jk=>{var{setCredentialFeature:IOe}=(Ee(),F(Mn)),{CredentialsProviderError:wOe,externalDataInterceptor:POe}=(ye(),F(Br)),{readFileSync:OOe}=require("node:fs"),A8=t=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:r,roleSessionName:n,webIdentityToken:o,providerId:s,policyArns:i,policy:a,durationSeconds:c}=t,{roleAssumerWithWebIdentity:u}=t;if(!u){let{getDefaultRoleAssumerWithWebIdentity:f}=(Dk(),F(vk));u=f({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...e?.callerClientConfig,...t.parentClientConfig}},t.clientPlugins)}return u({RoleArn:r,RoleSessionName:n??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:o,ProviderId:s,PolicyArns:i,Policy:a,DurationSeconds:c})},b8="AWS_WEB_IDENTITY_TOKEN_FILE",$Oe="AWS_ROLE_ARN",kOe="AWS_ROLE_SESSION_NAME",MOe=(t={})=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let r=t?.webIdentityTokenFile??process.env[b8],n=t?.roleArn??process.env[$Oe],o=t?.roleSessionName??process.env[kOe];if(!r||!n)throw new wOe("Web identity configuration not specified",{logger:t.logger});let s=await A8({...t,webIdentityToken:POe?.getTokenRecord?.()[r]??OOe(r,{encoding:"ascii"}),roleArn:n,roleSessionName:o})(e);return r===process.env[b8]&&IOe(s,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h"),s};Jk.fromTokenFile=MOe;Jk.fromWebToken=A8});var P8=st(w8=>{var{CredentialsProviderError:wE,chain:LOe,getProfileName:D8,parseKnownFiles:NOe}=(ye(),F(Br)),{setCredentialFeature:wi}=(Ee(),F(Mn)),FOe=(t,e,r)=>{let n={EcsContainer:async o=>{let{fromHttp:s}=r$(),{fromContainerMetadata:i}=ny();return r?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>LOe(s(o??{}),i(o))().then(Zk)},Ec2InstanceMetadata:async o=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:s}=ny();return async()=>s(o)().then(Zk)},Environment:async o=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:s}=HO();return async()=>s(o)().then(Zk)}};if(t in n)return n[t];throw new wE(`Unsupported credential source in profile ${e}. Got ${t}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:r})},Zk=t=>wi(t,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),BOe=(t,{profile:e="default",logger:r}={})=>!!t&&typeof t=="object"&&typeof t.role_arn=="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1&&["undefined","string"].indexOf(typeof t.external_id)>-1&&["undefined","string"].indexOf(typeof t.mfa_serial)>-1&&(UOe(t,{profile:e,logger:r})||GOe(t,{profile:e,logger:r})),UOe=(t,{profile:e,logger:r})=>{let n=typeof t.source_profile=="string"&&typeof t.credential_source>"u";return n&&r?.debug?.(` ${e} isAssumeRoleWithSourceProfile source_profile=${t.source_profile}`),n},GOe=(t,{profile:e,logger:r})=>{let n=typeof t.credential_source=="string"&&typeof t.source_profile>"u";return n&&r?.debug?.(` ${e} isCredentialSourceProfile credential_source=${t.credential_source}`),n},qOe=async(t,e,r,n,o={},s)=>{r.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let i=e[t],{source_profile:a,region:c}=i;if(!r.roleAssumer){let{getDefaultRoleAssumer:f}=(Dk(),F(vk));r.roleAssumer=f({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:{...n,...r?.parentClientConfig,region:c??r?.parentClientConfig?.region??n?.region}},r.clientPlugins)}if(a&&a in o)throw new wE(`Detected a cycle attempting to resolve credentials for profile ${D8(r)}. Profiles visited: `+Object.keys(o).join(", "),{logger:r.logger});r.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${a?`source_profile=[${a}]`:`profile=[${t}]`}`);let u=a?s(a,e,r,n,{...o,[a]:!0},x8(e[a]??{})):(await FOe(i.credential_source,t,r.logger)(r))();if(x8(i))return u.then(f=>wi(f,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));{let f={RoleArn:i.role_arn,RoleSessionName:i.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:i.external_id,DurationSeconds:parseInt(i.duration_seconds||"3600",10)},{mfa_serial:m}=i;if(m){if(!r.mfaCodeProvider)throw new wE(`Profile ${t} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:r.logger,tryNextLink:!1});f.SerialNumber=m,f.TokenCode=await r.mfaCodeProvider(m)}let y=await u;return r.roleAssumer(y,f).then(_=>wi(_,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},x8=t=>!t.role_arn&&!!t.credential_source,HOe=t=>!!(t&&t.login_session),jOe=async(t,e,r)=>{let{fromLoginCredentials:n}=R8(),o=await n({...e,profile:t})({callerClientConfig:r});return wi(o,"CREDENTIALS_PROFILE_LOGIN","AC")},zOe=t=>!!t&&typeof t=="object"&&typeof t.credential_process=="string",VOe=async(t,e)=>{let{fromProcess:r}=Yk(),n=await r({...t,profile:e})();return wi(n,"CREDENTIALS_PROFILE_PROCESS","v")},WOe=async(t,e,r={},n)=>{let{fromSSO:o}=ck();return o({profile:t,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:n}).then(s=>e.sso_session?wi(s,"CREDENTIALS_PROFILE_SSO","r"):wi(s,"CREDENTIALS_PROFILE_SSO_LEGACY","t"))},KOe=t=>t&&(typeof t.sso_start_url=="string"||typeof t.sso_account_id=="string"||typeof t.sso_session=="string"||typeof t.sso_region=="string"||typeof t.sso_role_name=="string"),T8=t=>!!t&&typeof t=="object"&&typeof t.aws_access_key_id=="string"&&typeof t.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof t.aws_session_token)>-1&&["undefined","string"].indexOf(typeof t.aws_account_id)>-1,v8=async(t,e)=>{e?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let r={accessKeyId:t.aws_access_key_id,secretAccessKey:t.aws_secret_access_key,sessionToken:t.aws_session_token,...t.aws_credential_scope&&{credentialScope:t.aws_credential_scope},...t.aws_account_id&&{accountId:t.aws_account_id}};return wi(r,"CREDENTIALS_PROFILE","n")},QOe=t=>!!t&&typeof t=="object"&&typeof t.web_identity_token_file=="string"&&typeof t.role_arn=="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1,YOe=async(t,e,r)=>{let{fromTokenFile:n}=Xk(),o=await n({webIdentityTokenFile:t.web_identity_token_file,roleArn:t.role_arn,roleSessionName:t.role_session_name,roleAssumerWithWebIdentity:e.roleAssumerWithWebIdentity,logger:e.logger,parentClientConfig:e.parentClientConfig})({callerClientConfig:r});return wi(o,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")},I8=async(t,e,r,n,o={},s=!1)=>{let i=e[t];if(Object.keys(o).length>0&&T8(i))return v8(i,r);if(s||BOe(i,{profile:t,logger:r.logger}))return qOe(t,e,r,n,o,I8);if(T8(i))return v8(i,r);if(QOe(i))return YOe(i,r,n);if(zOe(i))return VOe(r,t);if(KOe(i))return await WOe(t,i,r,n);if(HOe(i))return jOe(t,r,n);throw new wE(`Could not resolve credentials using profile: [${t}] in configuration/credentials file(s).`,{logger:r.logger})},JOe=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let r=await NOe(t);return I8(D8({profile:t.profile??e?.profile}),r,t,e)};w8.fromIni=JOe});var Cm=st(OE=>{var{ENV_KEY:XOe,ENV_SECRET:ZOe,fromEnv:e$e}=HO(),{chain:t$e,CredentialsProviderError:PE,ENV_PROFILE:r$e}=(ye(),F(Br)),O8="AWS_EC2_METADATA_DISABLED",n$e=async t=>{let{ENV_CMDS_FULL_URI:e,ENV_CMDS_RELATIVE_URI:r,fromContainerMetadata:n,fromInstanceMetadata:o}=ny();if(process.env[r]||process.env[e]){t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:s}=r$();return t$e(s(t),n(t))}return process.env[O8]&&process.env[O8]!=="false"?async()=>{throw new PE("EC2 Instance Metadata Service access disabled",{logger:t.logger})}:(t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),o(t))};function o$e(t,e){let r=s$e(t),n,o,s,i,a=async c=>{if(c?.forceRefresh)return i||(i=r(c).then(u=>{s=u}).finally(()=>{i=void 0})),await i,s;if(s?.expiration&&s?.expiration?.getTime()<Date.now()&&(s=void 0),n)await n;else if(!s||e?.(s))if(s)o||(o=r(c).then(u=>{s=u}).catch(()=>{}).finally(()=>{o=void 0}));else return n=r(c).then(u=>{s=u}).finally(()=>{n=void 0}),a(c);return s};return a}var s$e=t=>async e=>{let r;for(let n of t)try{return await n(e)}catch(o){if(r=o,o?.tryNextLink)continue;throw o}throw r},$8=!1,i$e=(t={})=>o$e([async()=>{if(t.profile??process.env[r$e])throw process.env[XOe]&&process.env[ZOe]&&($8||((t.logger?.warn&&t.logger?.constructor?.name!=="NoOpLogger"?t.logger.warn.bind(t.logger):console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
|
|
51
51
|
Multiple credential sources detected:
|
|
52
52
|
Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
|
|
53
53
|
This SDK will proceed with the AWS_PROFILE value.
|
|
@@ -55,5 +55,5 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
55
55
|
However, a future version may change this behavior to prefer the ENV static credentials.
|
|
56
56
|
Please ensure that your environment only sets either the AWS_PROFILE or the
|
|
57
57
|
AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
|
|
58
|
-
`),$8=!0)),new PE("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),ZOe(t)()},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:o,ssoRoleName:s,ssoSession:i}=t;if(!r&&!n&&!o&&!s&&!i)throw new PE("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:a}=ck();return a(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=P8();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=Yk();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=Xk();return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await r$e(t))()),async()=>{throw new PE("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],k8),i$e=t=>t?.expiration!==void 0,k8=t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5;OE.credentialsTreatedAsExpired=k8;OE.credentialsWillNeedRefresh=i$e;OE.defaultProvider=s$e});var vJ=st(R=>{var{awsEndpointFunctions:a$e,emitWarningIfUnsupportedVersion:c$e,createDefaultUserAgentProvider:u$e,NODE_APP_ID_CONFIG_OPTIONS:l$e,getAwsRegionExtensionConfiguration:d$e,resolveAwsRegionExtensionConfiguration:p$e,resolveUserAgentConfig:f$e,resolveHostHeaderConfig:m$e,getUserAgentPlugin:g$e,getHostHeaderPlugin:h$e,getLoggerPlugin:S$e,getRecursionDetectionPlugin:y$e}=(Ee(),F(kn)),{getHttpAuthSchemeEndpointRuleSetPlugin:E$e,DefaultIdentityProviderConfig:_$e,getHttpSigningPlugin:R$e,createPaginator:Js}=(jt(),F(xl)),{normalizeProvider:B8,getSmithyContext:C$e,ServiceException:b$e,NoOpLogger:A$e,emitWarningIfUnsupportedVersion:x$e,loadConfigsForDefaultMode:T$e,getDefaultExtensionConfiguration:v$e,resolveDefaultRuntimeConfig:D$e,Client:U8,makeBuilder:I$e,createWaiter:Fa,checkExceptions:V_,WaiterState:Oi,createAggregatedClient:w$e}=(J(),F(bo)),{Command:P$e}=(J(),F(bo));R.$Command=P$e;R.__Client=U8;var{resolveDefaultsModeConfig:O$e,loadConfig:Pi,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:$$e,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:k$e,NODE_REGION_CONFIG_OPTIONS:M$e,NODE_REGION_CONFIG_FILE_OPTIONS:L$e,resolveRegionConfig:N$e}=(ye(),F(Br)),{BinaryDecisionDiagram:F$e,EndpointCache:B$e,decideEndpoint:U$e,customEndpointFunctions:G$e,resolveEndpointConfig:q$e,getEndpointPlugin:H$e}=(He(),F(jp)),{parseUrl:j$e,getHttpHandlerExtensionConfiguration:z$e,resolveHttpHandlerRuntimeConfig:V$e,getContentLengthPlugin:W$e}=(V(),F(wo)),{DEFAULT_RETRY_MODE:K$e,NODE_RETRY_MODE_CONFIG_OPTIONS:Q$e,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:Y$e,resolveRetryConfig:J$e,getRetryPlugin:X$e}=(en(),F(nf)),{TypeRegistry:G8,getSchemaSerdePlugin:Z$e}=(ae(),F(Dp)),{NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_CONFIG_OPTIONS:eke,NODE_DISABLE_REQUEST_COMPRESSION_CONFIG_OPTIONS:tke,resolveCompressionConfig:rke,getCompressionPlugin:nke}=YH(),{resolveAwsSdkSigV4Config:oke,AwsSdkSigV4Signer:ske,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:ike}=(rr(),F(Il)),{defaultProvider:ake}=Cm(),{toUtf8:cke,fromUtf8:uke,toBase64:lke,fromBase64:dke,calculateBodyLength:pke}=(j(),F(To)),{streamCollector:fke,NodeHttpHandler:mke}=zs(),{AwsJson1_0Protocol:gke}=(Di(),F(Vy)),{Sha256:hke}=(On(),F(Vp)),Ske=async(t,e,r)=>({operation:C$e(e).operation,region:await B8(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function yke(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"monitoring",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var Eke=t=>{let e=[];switch(t.operation){default:e.push(yke(t))}return e},_ke=t=>{let e=oke(t);return Object.assign(e,{authSchemePreference:B8(t.authSchemePreference??[])})},Rke=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"monitoring"}),Cke={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},bke="3.1151.0",Ake={version:bke},Am="ref",Qc=-1,$E=!0,M8="isSet",q8="PartitionResult",kE="booleanEquals",e1="getAttr",L8={[Am]:"Endpoint"},t1={[Am]:q8},bm={},N8=[{[Am]:"Region"}],F8={conditions:[[M8,[L8]],[M8,N8],["aws.partition",N8,q8],[kE,[{[Am]:"UseFIPS"},$E]],[kE,[{[Am]:"UseDualStack"},$E]],["stringEquals",[{fn:e1,argv:[t1,"name"]},"aws-us-gov"]],[kE,[{fn:e1,argv:[t1,"supportsFIPS"]},$E]],[kE,[{fn:e1,argv:[t1,"supportsDualStack"]},$E]]],results:[[Qc],[Qc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Qc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[L8,bm],["https://monitoring.{Region}.{PartitionResult#dnsSuffix}",bm],["https://monitoring.{Region}.{PartitionResult#dualStackDnsSuffix}",bm],["https://monitoring-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",bm],[Qc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://monitoring-fips.{Region}.{PartitionResult#dnsSuffix}",bm],[Qc,"FIPS is enabled but this partition does not support FIPS"],[Qc,"DualStack is enabled but this partition does not support DualStack"],[Qc,"Invalid Configuration: Missing Region"]]},xke=2,rn=1e8,Tke=new Int32Array([-1,1,-1,0,14,3,1,4,rn+11,2,5,rn+11,3,8,6,4,7,rn+4,7,rn+5,rn+10,4,11,9,5,rn+4,10,6,rn+8,rn+9,5,rn+5,12,6,13,rn+7,7,rn+6,rn+7,3,rn+1,15,4,rn+2,rn+3]),vke=F$e.from(Tke,xke,F8.conditions,F8.results),Dke=new B$e({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Ike=(t,e={})=>Dke.get(t,()=>U$e(vke,{endpointParams:t,logger:e.logger}));G$e.aws=a$e;var ut=class t extends b$e{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatch#CloudWatchServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},ME=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ConflictException";name="ConflictException";$fault="client";Message;constructor(e){super({name:"ConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},LE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#KmsAccessDeniedException";name="KmsAccessDeniedException";$fault="client";Message;constructor(e){super({name:"KmsAccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},NE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#KmsKeyDisabledException";name="KmsKeyDisabledException";$fault="client";Message;constructor(e){super({name:"KmsKeyDisabledException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},FE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#KmsKeyNotFoundException";name="KmsKeyNotFoundException";$fault="client";Message;constructor(e){super({name:"KmsKeyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},BE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";ResourceType;ResourceId;Message;constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.ResourceType=e.ResourceType,this.ResourceId=e.ResourceId,this.Message=e.Message}},UE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ConcurrentModificationException";name="ConcurrentModificationException";$fault="client";Message;constructor(e){super({name:"ConcurrentModificationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},GE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#DashboardInvalidInputError";name="DashboardInvalidInputError";$fault="client";dashboardValidationMessages;constructor(e){super({name:"DashboardInvalidInputError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.dashboardValidationMessages=e.dashboardValidationMessages}},qE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#DashboardNotFoundError";name="DashboardNotFoundError";$fault="client";constructor(e){super({name:"DashboardNotFoundError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},HE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ResourceConflict";name="ResourceConflict";$fault="client";constructor(e){super({name:"ResourceConflict",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},jE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ResourceNotFound";name="ResourceNotFound";$fault="client";constructor(e){super({name:"ResourceNotFound",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},zE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InternalServiceFault";name="InternalServiceFault";$fault="server";Message;constructor(e){super({name:"InternalServiceFault",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},VE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InvalidParameterCombinationException";name="InvalidParameterCombinationException";$fault="client";constructor(e){super({name:"InvalidParameterCombinationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},WE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InvalidParameterValueException";name="InvalidParameterValueException";$fault="client";constructor(e){super({name:"InvalidParameterValueException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},KE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#MissingRequiredParameterException";name="MissingRequiredParameterException";$fault="client";constructor(e){super({name:"MissingRequiredParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},QE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InvalidNextToken";name="InvalidNextToken";$fault="client";constructor(e){super({name:"InvalidNextToken",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},YE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#LimitExceededException";name="LimitExceededException";$fault="client";Message;constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},JE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#LimitExceededFault";name="LimitExceededFault";$fault="client";constructor(e){super({name:"LimitExceededFault",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},XE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InvalidFormatFault";name="InvalidFormatFault";$fault="client";constructor(e){super({name:"InvalidFormatFault",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},ZE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ValidationException";name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},H8="Average",rd="AlarmActions",wke="ApproximateAggregateValue",r1="AlarmArn",Pke="AlarmContributor",Oke="AlarmContributorAttributes",j8="AlarmContributorId",n1="AlarmConfigurationUpdatedTimestamp",z8="AlarmContributors",$ke="AnomalyDetector",kke="AnomalyDetectorConfiguration",Mke="AnomalyDetectorExcludedTimeRanges",o1="AnomalyDetectorId",Lke="AnomalyDetectorIds",Nke="AssociateDatasetKmsKey",Fke="AssociateDatasetKmsKeyInput",Bke="AssociateDatasetKmsKeyOutput",Uke="AnomalyDetectorTypes",nd="AlarmDescription",V8="AnomalyDetectors",od="ActionsEnabled",Gke="AggregationExpression",qke="AlarmHistoryItem",W8="AlarmHistoryItems",K8="AccountId",Q8="ActionLogLineCount",Y8="ActionLogLineRoleArn",J8="AlarmMuteRuleArn",X8="AlarmMuteRuleName",Hke="AlarmMuteRuleSummary",Z8="AlarmMuteRuleSummaries",Vo="AlarmName",jke="AlarmNamePrefix",Mm="AlarmNames",e9="ApplyOnTransformedLogs",zke="ActionPrefix",Vke="AlarmPromQLCriteria",t9="AlarmRule",r9="ActionsSuppressor",Wke="ActionsSuppressedBy",n9="ActionsSuppressorExtensionPeriod",Kke="ActionsSuppressedReason",o9="ActionsSuppressorWaitPeriod",Qke="AdditionalStatistics",Yke="AggregationStatistic",Jke="AlarmType",s9="AlarmTypes",Xke="ApproximateUniqueCount",Zke="AggregateValue",e1e="ApproximateValue",W_="Arn",t1e="Attributes",r1e="BatchFailures",i9="Configuration",n1e="ContributorAttributes",o1e="CompositeAlarm",a9="CompositeAlarms",K_="CreatedAt",c9="CreationDate",s1e="ConflictException",i1e="ContributorId",a1e="ConcurrentModificationException",Q_="ComparisonOperator",c1e="ChildrenOfAlarmName",u1e="CreateResourceMetricsConfiguration",l1e="CreateResourceMetricsConfigurationInput",d1e="CreateResourceMetricsConfigurationOutput",p1e="Contributors",f1e="Code",m1e="Counts",Nn="Dimensions",u9="DashboardArn",g1e="DisableAlarmActions",h1e="DisableAlarmActionsInput",S1e="DescribeAlarmContributors",y1e="DescribeAlarmContributorsInput",E1e="DescribeAlarmContributorsOutput",_1e="DeleteAnomalyDetector",R1e="DeleteAnomalyDetectorInput",C1e="DescribeAnomalyDetectorsInput",b1e="DeleteAnomalyDetectorOutput",A1e="DescribeAnomalyDetectorsOutput",x1e="DescribeAnomalyDetectors",T1e="DescribeAlarmsForMetric",v1e="DescribeAlarmsForMetricInput",D1e="DescribeAlarmsForMetricOutput",I1e="DescribeAlarmHistory",w1e="DescribeAlarmHistoryInput",P1e="DescribeAlarmHistoryOutput",O1e="DeleteAlarmsInput",$1e="DescribeAlarmsInput",k1e="DeleteAlarmMuteRule",M1e="DeleteAlarmMuteRuleInput",L1e="DescribeAlarmsOutput",N1e="DeleteAlarms",F1e="DescribeAlarms",l9="DashboardBody",B1e="DeleteDashboards",U1e="DeleteDashboardsInput",G1e="DisassociateDatasetKmsKey",q1e="DisassociateDatasetKmsKeyInput",H1e="DisassociateDatasetKmsKeyOutput",j1e="DeleteDashboardsOutput",z1e="DashboardEntry",d9="DashboardEntries",V1e="DimensionFilter",W1e="DimensionFilters",s1="DatasetIdentifier",K1e="DashboardInvalidInputError",Q1e="DeleteInsightRules",Y1e="DeleteInsightRulesInput",J1e="DescribeInsightRulesInput",X1e="DisableInsightRulesInput",Z1e="DeleteInsightRulesOutput",eMe="DescribeInsightRulesOutput",tMe="DisableInsightRulesOutput",rMe="DescribeInsightRules",nMe="DisableInsightRules",oMe="DatasetId",sMe="DeleteMetricStream",iMe="DeleteMetricStreamInput",aMe="DeleteMetricStreamOutput",Y_="DashboardName",cMe="DashboardNotFoundError",uMe="DashboardNamePrefix",lMe="DashboardNames",dMe="DataPath",pMe="DeleteResourceMetricsConfiguration",fMe="DeleteResourceMetricsConfigurationInput",mMe="DeleteResourceMetricsConfigurationOutput",p9="DatapointsToAlarm",gMe="DashboardValidationMessage",f9="DashboardValidationMessages",hMe="Datapoint",i1="Datapoints",m9="Description",SMe="Definition",yMe="Dimension",EMe="Duration",g9="Entity",_Me="EnableAlarmActions",RMe="EnableAlarmActionsInput",a1="EvaluationCriteria",c1="ExpireDate",CMe="EndDate",Yc="ExcludeFilters",h9="EvaluationInterval",bMe="EnableInsightRules",AMe="EnableInsightRulesInput",xMe="EnableInsightRulesOutput",S9="EvaluateLowSampleCountPercentile",y9="EntityMetricData",TMe="EntityMetricDataList",E9="EvaluationPeriods",_9="ExtendedStatistics",R9="EvaluationState",u1="ExtendedStatistic",J_="EndTime",vMe="EndTimeOffset",DMe="ExcludedTimeRanges",IMe="ExceptionType",l1="EvaluationWindow",wMe="Entries",C9="Expression",X_="Failures",d1="FirehoseArn",PMe="FailureCode",OMe="FailureDescription",$Me="FailureResource",kMe="GetAlarmMuteRule",MMe="GetAlarmMuteRuleInput",LMe="GetAlarmMuteRuleOutput",NMe="GetDashboard",FMe="GetDashboardInput",BMe="GetDatasetInput",UMe="GetDashboardOutput",GMe="GetDatasetOutput",qMe="GetDataset",HMe="GetInsightRuleReport",jMe="GetInsightRuleReportInput",zMe="GetInsightRuleReportOutput",VMe="GetMetricData",WMe="GetMetricDataInput",KMe="GetMetricDataOutput",QMe="GetMetricStatistics",YMe="GetMetricStatisticsInput",JMe="GetMetricStreamInput",XMe="GetMetricStatisticsOutput",ZMe="GetMetricStreamOutput",eLe="GetMetricStream",tLe="GetMetricWidgetImage",rLe="GetMetricWidgetImageInput",nLe="GetMetricWidgetImageOutput",oLe="GetOTelEnrichment",sLe="GetOTelEnrichmentInput",iLe="GetOTelEnrichmentOutput",aLe="GetResourceMetricsConfiguration",cLe="GetResourceMetricsConfigurationInput",uLe="GetResourceMetricsConfigurationOutput",lLe="HistoryData",b9="HistoryItemType",dLe="HistorySummary",A9="Id",sd="InsufficientDataActions",Jc="IncludeFilters",pLe="InvalidFormatFault",fLe="IncludeLinkedAccounts",x9="IncludeLinkedAccountsMetrics",T9="IncludeMetrics",mLe="InvalidNextToken",gLe="InvalidParameterCombinationException",hLe="InvalidParameterValueException",v9="InsightRules",SLe="InsightRuleContributor",yLe="InsightRuleContributorDatapoint",ELe="InsightRuleContributorDatapoints",_Le="InsightRuleContributors",RLe="InsightRuleMetricDatapoint",CLe="InsightRuleMetricDatapoints",bLe="InsightRule",ALe="InternalServiceFault",xLe="Keys",TLe="KeyAttributes",vLe="KmsAccessDeniedException",D9="KmsKeyArn",DLe="KmsKeyDisabledException",ILe="KmsKeyNotFoundException",wLe="KeyLabels",PLe="Key",p1="Label",I9="LogAlarms",OLe="ListAlarmMuteRules",$Le="ListAlarmMuteRulesInput",kLe="ListAlarmMuteRulesOutput",MLe="LogAlarm",LLe="ListDashboards",NLe="ListDashboardsInput",FLe="ListDashboardsOutput",BLe="LimitExceededException",ULe="LimitExceededFault",GLe="LogGroupIdentifiers",qLe="LastModified",HLe="ListMetricsInput",jLe="ListManagedInsightRules",zLe="ListManagedInsightRulesInput",VLe="ListManagedInsightRulesOutput",WLe="ListMetricsOutput",KLe="ListMetricStreams",QLe="ListMetricStreamsInput",YLe="ListMetricStreamsOutput",JLe="ListMetrics",w9="LabelOptions",XLe="ListTagsForResource",ZLe="ListTagsForResourceInput",eNe="ListTagsForResourceOutput",P9="LastUpdateDate",O9="LastUpdatedTimestamp",$i="Message",f1="MetricAlarms",tNe="MetricAlarm",m1="MetricCharacteristics",rNe="MaxContributorCount",nNe="MaxContributorValue",g1="MetricData",h1="MetricDataQueries",oNe="MetricDataQuery",$9="MetricDataResults",sNe="MetricDataResultMessages",iNe="MetricDataResult",aNe="MaxDatapoints",cNe="MetricDatapoints",uNe="MessageData",lNe="MetricDatum",Z_="MetricMathAnomalyDetector",Fn="MetricName",k9="MetricNames",S1="MaxRecords",dNe="ManagedRuleDescription",pNe="ManagedRuleDescriptions",fNe="MissingRequiredParameterException",mNe="ManagedRuleState",eR="MaxResults",M9="ManagedRule",y1="ManagedRules",E1="MetricSelections",gNe="MetricStreamEntry",hNe="MetricStreamEntries",SNe="MetricStreamFilter",yNe="MetricStreamFilters",ENe="MetricStreamStatisticsConfiguration",_Ne="MetricStreamStatisticsConfigurations",RNe="MetricStreamStatisticsIncludeMetrics",CNe="MetricStreamStatisticsMetric",L9="MetricStat",N9="MuteType",bNe="MetricTimezone",_1="MuteTargets",ANe="MetricWidget",xNe="MetricWidgetImage",R1="Maximum",Lm="Metrics",F9="Messages",B9="Metric",C1="Minimum",nn="Namespace",yt="NextToken",Xs="Name",U9="Names",TNe="OwningAccount",vNe="OwningAccounts",DNe="OrderBy",tR="OutputFormat",id="OKActions",INe="OnlyStartEvaluatingAfterWarmUpPeriodEnds",wNe="OTelEnrichmentMetricSelector",PNe="OTelEnrichmentMetricSelectorList",Xc="Period",ONe="PutAnomalyDetector",$Ne="PutAnomalyDetectorInput",kNe="PutAnomalyDetectorOutput",MNe="PutAlarmMuteRule",LNe="PutAlarmMuteRuleInput",NNe="PutCompositeAlarm",FNe="PutCompositeAlarmInput",BNe="PutDashboard",UNe="PutDashboardInput",GNe="PutDashboardOutput",qNe="PartialFailure",HNe="PutInsightRule",jNe="PutInsightRuleInput",zNe="PutInsightRuleOutput",VNe="PutLogAlarm",WNe="PutLogAlarmInput",KNe="PutMetricAlarm",QNe="PutMetricAlarmInput",YNe="PutMetricData",JNe="PutMetricDataInput",XNe="PutManagedInsightRules",ZNe="PutManagedInsightRulesInput",e3e="PutManagedInsightRulesOutput",t3e="PutMetricStream",r3e="PutMetricStreamInput",n3e="PutMetricStreamOutput",o3e="ParentsOfAlarmName",s3e="PendingPeriod",i3e="PromQLCriteria",a3e="PeriodicSpikes",c3e="Query",u3e="QueryARN",G9="QueryResultsToAlarm",q9="QueryResultsToEvaluate",l3e="QueryString",b1="Rule",Nm="ResourceArn",ad="ResourceARN",d3e="RecentlyActive",H9="RoleArn",p3e="ResourceConflict",f3e="ReturnData",m3e="RuleDefinition",g3e="ResourceId",rR="ResourceMetricsConfiguration",h3e="ResourceMetricSelection",S3e="ResourceMetricSelectionList",A1="RuleNames",y3e="ResourceNotFound",E3e="ResourceNotFoundException",x1="RuleName",_3e="RecoveryPeriod",j9="RuleState",R3e="ResourceType",C3e="Range",T1="Status",b3e="SetAlarmState",A3e="SetAlarmStateInput",z9="ScanBy",v1="SampleCount",V9="ScheduleConfiguration",W9="StatisticsConfigurations",x3e="StatusCode",D1="StartDate",T3e="ScheduleExpression",v3e="StrictEntityValidation",nR="SingleMetricAnomalyDetector",D3e="StartMetricStreams",I3e="StartMetricStreamsInput",w3e="StopMetricStreamsInput",P3e="StartMetricStreamsOutput",O3e="StopMetricStreamsOutput",$3e="StopMetricStreams",k3e="StartOTelEnrichment",M3e="StartOTelEnrichmentInput",L3e="StopOTelEnrichmentInput",N3e="StartOTelEnrichmentOutput",F3e="StopOTelEnrichmentOutput",B3e="StopOTelEnrichment",I1="ScheduledQueryConfiguration",U3e="ScheduledQueryRoleARN",Fm="StateReason",oR="StateReasonData",G3e="StorageResolution",q3e="StatisticSet",sR="StartTime",H3e="StartTimeOffset",iR="StateTransitionedTimestamp",w1="StateUpdatedTimestamp",cd="StateValue",j3e="StatisticValues",K9="SlidingWindow",z3e="Schema",Q9="Schedule",V3e="Size",Bm="Stat",P1="Statistic",W3e="Statistics",aR="State",K3e="Statuses",O1="Sum",Um="Timestamp",Q3e="TagKeys",Y3e="TagList",cR="TreatMissingData",Y9="ThresholdMetricId",J9="TemplateName",J3e="TagResource",X3e="TagResourceInput",Z3e="TagResourceOutput",Wo="Tags",eFe="Tag",uR="Threshold",$1="Timezone",tFe="Timestamps",Zc="Unit",lR="UpdatedAt",rFe="UniqueContributors",nFe="UpdateOTelEnrichment",oFe="UpdateOTelEnrichmentInput",sFe="UpdateOTelEnrichmentOutput",iFe="UntagResource",aFe="UntagResourceInput",cFe="UpdateResourceMetricsConfiguration",uFe="UpdateResourceMetricsConfigurationInput",lFe="UpdateResourceMetricsConfigurationOutput",dFe="UntagResourceOutput",Gm="Value",pFe="ValidationException",X9="Values",Z9="WallClockWindow",qm="WarmUpConfiguration",fFe="WarmUpPeriodDurationInMinutes",on="awsQueryError",ir="client",mFe="dashboardValidationMessages",zt="error",Hr="httpError",Ko="message",eK="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatch",gFe="server",b="com.amazonaws.cloudwatch",tK=new G8(eK),rK=[-3,eK,"CloudWatchServiceException",0,[],[]];tK.registerError(rK,ut);var Ot=new G8(b),nK=[-3,b,a1e,{[on]:["ConcurrentModificationException",429],[zt]:ir,[Hr]:429},[$i],[0]];Ot.registerError(nK,UE);var oK=[-3,b,s1e,{[zt]:ir,[Hr]:409},[$i],[0]];Ot.registerError(oK,ME);var sK=[-3,b,K1e,{[on]:["InvalidParameterInput",400],[zt]:ir,[Hr]:400},[Ko,mFe],[0,()=>nY]];Ot.registerError(sK,GE);var iK=[-3,b,cMe,{[on]:["ResourceNotFound",404],[zt]:ir,[Hr]:404},[Ko],[0]];Ot.registerError(iK,qE);var aK=[-3,b,ALe,{[on]:["InternalServiceError",500],[zt]:gFe,[Hr]:500},[$i],[0]];Ot.registerError(aK,zE);var cK=[-3,b,pLe,{[on]:["InvalidFormat",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(cK,XE);var uK=[-3,b,mLe,{[on]:["InvalidNextToken",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(uK,QE);var lK=[-3,b,gLe,{[on]:["InvalidParameterCombination",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(lK,VE);var dK=[-3,b,hLe,{[on]:["InvalidParameterValue",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(dK,WE);var pK=[-3,b,vLe,{[zt]:ir},[$i],[0],1];Ot.registerError(pK,LE);var fK=[-3,b,DLe,{[zt]:ir},[$i],[0],1];Ot.registerError(fK,NE);var mK=[-3,b,ILe,{[zt]:ir},[$i],[0],1];Ot.registerError(mK,FE);var gK=[-3,b,BLe,{[on]:["LimitExceededException",400],[zt]:ir,[Hr]:400},[$i],[0]];Ot.registerError(gK,YE);var hK=[-3,b,ULe,{[on]:["LimitExceeded",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(hK,JE);var SK=[-3,b,fNe,{[on]:["MissingParameter",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(SK,KE);var yK=[-3,b,p3e,{[on]:["ResourceConflict",409],[zt]:ir,[Hr]:409},[Ko],[0]];Ot.registerError(yK,HE);var EK=[-3,b,y3e,{[on]:["ResourceNotFound",404],[zt]:ir,[Hr]:404},[Ko],[0]];Ot.registerError(EK,jE);var _K=[-3,b,E3e,{[on]:["ResourceNotFoundException",404],[zt]:ir,[Hr]:404},[R3e,g3e,$i],[0,0,0]];Ot.registerError(_K,BE);var RK=[-3,b,pFe,{[on]:["ValidationError",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(RK,ZE);var CK=[tK,Ot],bK=[3,b,Pke,0,[i1e,n1e,Fm,iR],[0,128,0,4],3],AK=[3,b,qke,0,[Vo,j8,Jke,Um,b9,dLe,lLe,Oke],[0,0,0,4,0,0,0,128]],xK=[3,b,Hke,0,[J8,c1,T1,N9,O9],[0,4,0,0,4]],TK=[3,b,Vke,0,[c3e,s3e,_3e],[0,1,1],1],vK=[3,b,$ke,0,[o1,nn,Fn,Nn,Bm,i9,cd,m1,nR,Z_],[0,0,0,()=>Qo,0,()=>k1,0,()=>L1,()=>fR,()=>dR]],k1=[3,b,kke,0,[DMe,bNe],[()=>EFe,0]],DK=[3,b,Fke,0,[s1,D9],[0,0],2],IK=[3,b,Bke,0,[],[]],wK=[3,b,o1e,0,[od,rd,r1,n1,nd,Vo,t9,sd,id,Fm,oR,w1,cd,iR,Wke,Kke,r9,o9,n9],[2,64,0,4,0,0,0,64,64,0,0,4,0,4,0,0,0,1,1]],PK=[3,b,l1e,0,[Nm,E1],[0,()=>U1],1],OK=[3,b,d1e,0,[rR],[()=>pR],1],$K=[3,b,z1e,0,[Y_,u9,qLe,V3e],[0,0,4,1]],kK=[3,b,gMe,0,[dMe,$i],[0,0]],MK=[3,b,hMe,0,[Um,v1,H8,O1,C1,R1,Zc,_9],[4,1,1,1,1,1,0,129]],LK=[3,b,M1e,0,[X8],[0],1],NK=[3,b,O1e,0,[Mm],[64],1],FK=[3,b,R1e,0,[o1,nn,Fn,Nn,Bm,nR,Z_],[0,0,0,()=>Qo,0,()=>fR,()=>dR]],BK=[3,b,b1e,0,[],[]],UK=[3,b,U1e,0,[lMe],[64],1],GK=[3,b,j1e,0,[],[]],qK=[3,b,Y1e,0,[A1],[64],1],HK=[3,b,Z1e,0,[X_],[()=>mR]],jK=[3,b,iMe,0,[Xs],[0],1],zK=[3,b,aMe,0,[],[]],VK=[3,b,fMe,0,[Nm],[0],1],WK=[3,b,mMe,0,[],[]],KK=[3,b,y1e,0,[Vo,yt],[0,0],1],QK=[3,b,E1e,0,[z8,yt],[()=>hFe,0],1],YK=[3,b,w1e,0,[Vo,j8,s9,b9,D1,CMe,S1,yt,z9],[0,0,64,0,4,4,1,0,0]],JK=[3,b,P1e,0,[W8,yt],[()=>SFe,0]],XK=[3,b,v1e,0,[Fn,nn,P1,u1,Nn,Xc,Zc],[0,0,0,0,()=>Qo,1,0],2],ZK=[3,b,D1e,0,[f1],[()=>oY]],eQ=[3,b,$1e,0,[Mm,jke,s9,c1e,o3e,cd,zke,S1,yt],[64,0,64,0,0,0,0,1,0]],tQ=[3,b,L1e,0,[a9,f1,I9,yt],[()=>RFe,()=>oY,()=>wFe,0]],rQ=[3,b,C1e,0,[Lke,yt,eR,nn,Fn,Nn,Uke],[64,0,1,0,0,()=>Qo,64]],nQ=[3,b,A1e,0,[V8,yt],[()=>_Fe,0]],oQ=[3,b,J1e,0,[yt,eR],[0,1]],sQ=[3,b,eMe,0,[yt,v9],[0,()=>IFe]],iQ=[3,b,yMe,0,[Xs,Gm],[0,0],2],aQ=[3,b,V1e,0,[Xs,Gm],[0,0],1],cQ=[3,b,h1e,0,[Mm],[64],1],uQ=[3,b,X1e,0,[A1],[64],1],lQ=[3,b,tMe,0,[X_],[()=>mR]],dQ=[3,b,q1e,0,[s1],[0],1],pQ=[3,b,H1e,0,[],[]],fQ=[3,b,RMe,0,[Mm],[64],1],mQ=[3,b,AMe,0,[A1],[64],1],gQ=[3,b,xMe,0,[X_],[()=>mR]],hQ=[3,b,g9,0,[TLe,t1e],[128,128]],SQ=[3,b,y9,0,[g9,g1],[()=>hQ,()=>sY]],yQ=[3,b,MMe,0,[X8],[0],1],EQ=[3,b,LMe,0,[Xs,J8,m9,b1,_1,D1,c1,T1,O9,N9],[0,0,0,()=>F1,()=>N1,4,4,0,4,0]],_Q=[3,b,FMe,0,[Y_],[0],1],RQ=[3,b,UMe,0,[u9,l9,Y_],[0,0,0]],CQ=[3,b,BMe,0,[s1],[0],1],bQ=[3,b,GMe,0,[oMe,W_,D9],[0,0,0],2],AQ=[3,b,jMe,0,[x1,sR,J_,Xc,rNe,Lm,DNe],[0,4,4,1,1,64,0],4],xQ=[3,b,zMe,0,[wLe,Yke,Zke,Xke,p1e,cNe],[64,0,1,1,()=>vFe,()=>DFe]],TQ=[3,b,WMe,0,[h1,sR,J_,yt,z9,aNe,w9],[()=>gR,4,4,0,0,1,()=>qQ],3],vQ=[3,b,KMe,0,[$9,yt,F9],[()=>$Fe,0,()=>iY]],DQ=[3,b,YMe,0,[nn,Fn,sR,J_,Xc,Nn,W3e,_9,Zc],[0,0,4,4,1,()=>Qo,64,64,0],5],IQ=[3,b,XMe,0,[p1,i1],[0,()=>bFe]],wQ=[3,b,JMe,0,[Xs],[0],1],PQ=[3,b,ZMe,0,[W_,Xs,Jc,Yc,d1,H9,aR,c9,P9,tR,W9,x9],[0,0,()=>e_,()=>e_,0,0,0,4,4,0,()=>aY,2]],OQ=[3,b,rLe,0,[ANe,tR],[0,0],1],$Q=[3,b,nLe,0,[xNe],[21]],kQ=[3,b,sLe,0,[],[]],MQ=[3,b,iLe,0,[T1,Jc,Yc,K_,lR],[0,()=>Ys,()=>Ys,4,4],1],LQ=[3,b,cLe,0,[Nm],[0],1],NQ=[3,b,uLe,0,[rR],[()=>pR],1],FQ=[3,b,bLe,0,[Xs,aR,z3e,SMe,M9,e9],[0,0,0,0,2,2],4],BQ=[3,b,SLe,0,[xLe,wke,i1],[64,1,()=>TFe],3],UQ=[3,b,yLe,0,[Um,e1e],[4,1],2],GQ=[3,b,RLe,0,[Um,rFe,nNe,v1,H8,O1,C1,R1],[4,1,1,1,1,1,1,1],1],qQ=[3,b,w9,0,[$1],[0]],HQ=[3,b,$Le,0,[Vo,K3e,S1,yt],[0,64,1,0]],jQ=[3,b,kLe,0,[Z8,yt],[()=>yFe,0]],zQ=[3,b,NLe,0,[uMe,yt],[0,0]],VQ=[3,b,FLe,0,[d9,yt],[()=>CFe,0]],WQ=[3,b,zLe,0,[ad,yt,eR],[0,0,1],1],KQ=[3,b,VLe,0,[y1,yt],[()=>PFe,0]],QQ=[3,b,HLe,0,[nn,Fn,Nn,yt,d3e,fLe,TNe],[0,0,()=>AFe,0,0,2,0]],YQ=[3,b,WLe,0,[Lm,yt,vNe],[()=>kFe,0,64]],JQ=[3,b,QLe,0,[yt,eR],[0,1]],XQ=[3,b,YLe,0,[yt,wMe],[0,()=>MFe]],ZQ=[3,b,ZLe,0,[ad],[0],1],e7=[3,b,eNe,0,[Wo],[()=>Yo]],t7=[3,b,MLe,0,[Vo,r1,nd,n1,od,id,rd,sd,cd,Fm,oR,w1,I1,q9,G9,uR,Q_,cR,iR,R9,Q8,Y8,qm],[0,0,0,4,2,64,64,64,0,0,0,4,()=>B1,1,1,1,0,0,4,0,1,0,()=>Hm]],r7=[3,b,M9,0,[J9,ad,Wo],[0,0,()=>Yo],2],n7=[3,b,dNe,0,[J9,ad,j9],[0,0,()=>o7]],o7=[3,b,mNe,0,[x1,aR],[0,0],2],s7=[3,b,uNe,0,[f1e,Gm],[0,0]],M1=[3,b,B9,0,[nn,Fn,Nn],[0,0,()=>Qo]],i7=[3,b,tNe,0,[Vo,r1,nd,n1,od,id,rd,sd,cd,Fm,oR,w1,Fn,nn,P1,u1,Nn,Xc,Zc,E9,p9,uR,Q_,cR,S9,Lm,Y9,R9,iR,l1,qm,a1,h9],[0,0,0,4,2,64,64,64,0,0,0,4,0,0,0,0,()=>Qo,1,0,1,1,1,0,0,0,()=>gR,0,0,4,()=>q1,()=>Hm,()=>G1,1]],L1=[3,b,m1,0,[a3e],[2]],a7=[3,b,oNe,0,[A9,L9,C9,p1,f3e,Xc,K8],[0,()=>l7,0,0,2,1,0],1],c7=[3,b,iNe,0,[A9,p1,tFe,X9,x3e,F9],[0,0,68,65,0,()=>iY]],u7=[3,b,lNe,0,[Fn,Nn,Um,Gm,j3e,X9,m1e,Zc,G3e],[0,()=>Qo,4,1,()=>q7,65,65,0,1],1],dR=[3,b,Z_,0,[h1],[()=>gR]],l7=[3,b,L9,0,[B9,Xc,Bm,Zc],[()=>M1,1,0,0],3],d7=[3,b,gNe,0,[W_,c9,P9,Xs,d1,aR,tR],[0,4,4,0,0,0,0]],p7=[3,b,SNe,0,[nn,k9],[0,64]],f7=[3,b,ENe,0,[T9,Qke],[()=>LFe,64],2],m7=[3,b,CNe,0,[nn,Fn],[0,0],2],N1=[3,b,_1,0,[Mm],[64],1],g7=[3,b,wNe,0,[nn,k9],[0,64],1],h7=[3,b,qNe,0,[$Me,IMe,PMe,OMe],[0,0,0,0]],S7=[3,b,LNe,0,[Xs,b1,m9,_1,Wo,D1,c1],[0,()=>F1,0,()=>N1,()=>Yo,4,4],2],y7=[3,b,$Ne,0,[nn,Fn,Nn,Bm,i9,m1,nR,Z_],[0,0,()=>Qo,0,()=>k1,()=>L1,()=>fR,()=>dR]],E7=[3,b,kNe,0,[o1],[0]],_7=[3,b,FNe,0,[Vo,t9,od,rd,nd,sd,id,Wo,r9,o9,n9],[0,0,2,64,0,64,64,()=>Yo,0,1,1],2],R7=[3,b,UNe,0,[Y_,l9,Wo],[0,0,()=>Yo],2],C7=[3,b,GNe,0,[f9],[()=>nY]],b7=[3,b,jNe,0,[x1,m3e,j9,Wo,e9],[0,0,0,()=>Yo,2],2],A7=[3,b,zNe,0,[],[]],x7=[3,b,WNe,0,[Vo,I1,q9,G9,uR,Q_,nd,Q8,Y8,od,id,rd,sd,cR,Wo,qm],[0,()=>B1,1,1,1,0,0,1,0,2,64,64,64,0,()=>Yo,()=>Hm],6],T7=[3,b,ZNe,0,[y1],[()=>OFe],1],v7=[3,b,e3e,0,[X_],[()=>mR]],D7=[3,b,QNe,0,[Vo,nd,od,id,rd,sd,Fn,nn,P1,u1,Nn,Xc,Zc,E9,p9,uR,Q_,cR,S9,Lm,Wo,Y9,l1,qm,a1,h9],[0,0,2,64,64,64,0,0,0,0,()=>Qo,1,0,1,1,1,0,0,0,()=>gR,()=>Yo,0,()=>q1,()=>Hm,()=>G1,1],1],I7=[3,b,JNe,0,[nn,g1,y9,v3e],[0,()=>sY,()=>xFe,2],1],w7=[3,b,r3e,0,[Xs,d1,H9,tR,Jc,Yc,Wo,W9,x9],[0,0,0,0,()=>e_,()=>e_,()=>Yo,()=>aY,2],4],P7=[3,b,n3e,0,[W_],[0]],O7=[3,b,C3e,0,[sR,J_],[4,4],2],pR=[3,b,rR,0,[Nm,K_,lR,E1],[0,4,4,()=>U1],3],$7=[3,b,h3e,0,[T9],[64],1],F1=[3,b,b1,0,[Q9],[()=>k7],1],k7=[3,b,Q9,0,[C9,EMe,$1],[0,0,0],2],M7=[3,b,V9,0,[T3e,H3e,vMe],[0,1,1],2],B1=[3,b,I1,0,[l3e,U3e,V9,Gke,GLe,u3e,Wo],[0,0,()=>M7,0,64,0,()=>Yo],4],L7=[3,b,A3e,0,[Vo,cd,Fm,oR],[0,0,0,0],3],fR=[3,b,nR,0,[K8,nn,Fn,Nn,Bm],[0,0,0,()=>Qo,0]],N7=[3,b,K9,0,[],[]],F7=[3,b,I3e,0,[U9],[64],1],B7=[3,b,P3e,0,[],[]],U7=[3,b,M3e,0,[Jc,Yc],[()=>Ys,()=>Ys]],G7=[3,b,N3e,0,[Jc,Yc,K_,lR],[()=>Ys,()=>Ys,4,4]],q7=[3,b,q3e,0,[v1,O1,C1,R1],[1,1,1,1],4],H7=[3,b,w3e,0,[U9],[64],1],j7=[3,b,O3e,0,[],[]],z7=[3,b,L3e,0,[],[]],V7=[3,b,F3e,0,[],[]],W7=[3,b,eFe,0,[PLe,Gm],[0,0],2],K7=[3,b,X3e,0,[ad,Wo],[0,()=>Yo],2],Q7=[3,b,Z3e,0,[],[]],Y7=[3,b,aFe,0,[ad,Q3e],[0,64],2],J7=[3,b,dFe,0,[],[]],X7=[3,b,oFe,0,[Jc,Yc],[()=>Ys,()=>Ys]],Z7=[3,b,sFe,0,[Jc,Yc,K_,lR],[()=>Ys,()=>Ys,4,4]],eY=[3,b,uFe,0,[Nm,E1],[0,()=>U1],1],tY=[3,b,lFe,0,[rR],[()=>pR],1],rY=[3,b,Z9,0,[$1],[0]],Hm=[3,b,qm,0,[fFe,INe],[1,2],1],Zs="unit",hFe=[1,b,z8,0,()=>bK],SFe=[1,b,W8,0,()=>AK],yFe=[1,b,Z8,0,()=>xK],EFe=[1,b,Mke,0,()=>O7],_Fe=[1,b,V8,0,()=>vK],mR=[1,b,r1e,0,()=>h7],RFe=[1,b,a9,0,()=>wK],CFe=[1,b,d9,0,()=>$K],nY=[1,b,f9,0,()=>kK],bFe=[1,b,i1,0,()=>MK],AFe=[1,b,W1e,0,()=>aQ],Qo=[1,b,Nn,0,()=>iQ],xFe=[1,b,TMe,0,()=>SQ],TFe=[1,b,ELe,0,()=>UQ],vFe=[1,b,_Le,0,()=>BQ],DFe=[1,b,CLe,0,()=>GQ],IFe=[1,b,v9,0,()=>FQ],wFe=[1,b,I9,0,()=>t7],PFe=[1,b,pNe,0,()=>n7],OFe=[1,b,y1,0,()=>r7],oY=[1,b,f1,0,()=>i7],sY=[1,b,g1,0,()=>u7],gR=[1,b,h1,0,()=>a7],iY=[1,b,sNe,0,()=>s7],$Fe=[1,b,$9,0,()=>c7],kFe=[1,b,Lm,0,()=>M1],MFe=[1,b,hNe,0,()=>d7],e_=[1,b,yNe,0,()=>p7],aY=[1,b,_Ne,0,()=>f7],LFe=[1,b,RNe,0,()=>m7],Ys=[1,b,PNe,0,()=>g7],U1=[1,b,S3e,0,()=>$7],Yo=[1,b,Y3e,0,()=>W7],G1=[4,b,a1,0,[i3e],[()=>TK]],q1=[4,b,l1,0,[Z9,K9],[()=>rY,()=>N7]],cY=[9,b,Nke,0,()=>DK,()=>IK],uY=[9,b,u1e,0,()=>PK,()=>OK],lY=[9,b,k1e,0,()=>LK,()=>Zs],dY=[9,b,N1e,0,()=>NK,()=>Zs],pY=[9,b,_1e,0,()=>FK,()=>BK],fY=[9,b,B1e,0,()=>UK,()=>GK],mY=[9,b,Q1e,0,()=>qK,()=>HK],gY=[9,b,sMe,0,()=>jK,()=>zK],hY=[9,b,pMe,0,()=>VK,()=>WK],SY=[9,b,S1e,0,()=>KK,()=>QK],yY=[9,b,I1e,0,()=>YK,()=>JK],EY=[9,b,F1e,0,()=>eQ,()=>tQ],_Y=[9,b,T1e,0,()=>XK,()=>ZK],RY=[9,b,x1e,0,()=>rQ,()=>nQ],CY=[9,b,rMe,0,()=>oQ,()=>sQ],bY=[9,b,g1e,0,()=>cQ,()=>Zs],AY=[9,b,nMe,0,()=>uQ,()=>lQ],xY=[9,b,G1e,2,()=>dQ,()=>pQ],TY=[9,b,_Me,0,()=>fQ,()=>Zs],vY=[9,b,bMe,0,()=>mQ,()=>gQ],DY=[9,b,kMe,0,()=>yQ,()=>EQ],IY=[9,b,NMe,0,()=>_Q,()=>RQ],wY=[9,b,qMe,0,()=>CQ,()=>bQ],PY=[9,b,HMe,0,()=>AQ,()=>xQ],OY=[9,b,VMe,0,()=>TQ,()=>vQ],$Y=[9,b,QMe,0,()=>DQ,()=>IQ],kY=[9,b,eLe,0,()=>wQ,()=>PQ],MY=[9,b,tLe,0,()=>OQ,()=>$Q],LY=[9,b,oLe,0,()=>kQ,()=>MQ],NY=[9,b,aLe,0,()=>LQ,()=>NQ],FY=[9,b,OLe,0,()=>HQ,()=>jQ],BY=[9,b,LLe,0,()=>zQ,()=>VQ],UY=[9,b,jLe,0,()=>WQ,()=>KQ],GY=[9,b,JLe,0,()=>QQ,()=>YQ],qY=[9,b,KLe,0,()=>JQ,()=>XQ],HY=[9,b,XLe,0,()=>ZQ,()=>e7],jY=[9,b,MNe,0,()=>S7,()=>Zs],zY=[9,b,ONe,0,()=>y7,()=>E7],VY=[9,b,NNe,0,()=>_7,()=>Zs],WY=[9,b,BNe,0,()=>R7,()=>C7],KY=[9,b,HNe,0,()=>b7,()=>A7],QY=[9,b,VNe,0,()=>x7,()=>Zs],YY=[9,b,XNe,0,()=>T7,()=>v7],JY=[9,b,KNe,0,()=>D7,()=>Zs],XY=[9,b,YNe,0,()=>I7,()=>Zs],ZY=[9,b,t3e,0,()=>w7,()=>P7],eJ=[9,b,b3e,0,()=>L7,()=>Zs],tJ=[9,b,D3e,0,()=>F7,()=>B7],rJ=[9,b,k3e,0,()=>U7,()=>G7],nJ=[9,b,$3e,0,()=>H7,()=>j7],oJ=[9,b,B3e,0,()=>z7,()=>V7],sJ=[9,b,J3e,0,()=>K7,()=>Q7],iJ=[9,b,iFe,0,()=>Y7,()=>J7],aJ=[9,b,nFe,0,()=>X7,()=>Z7],cJ=[9,b,cFe,0,()=>eY,()=>tY],NFe=t=>({apiVersion:"2010-08-01",base64Decoder:t?.base64Decoder??dke,base64Encoder:t?.base64Encoder??lke,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??Ike,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??Eke,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new ske}],logger:t?.logger??new A$e,protocol:t?.protocol??gke,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.cloudwatch",errorTypeRegistries:CK,xmlNamespace:"http://monitoring.amazonaws.com/doc/2010-08-01/",version:"2010-08-01",serviceTarget:"GraniteServiceVersion20100801",awsQueryCompatible:!0},serviceId:t?.serviceId??"CloudWatch",sha256:t?.sha256??hke,urlParser:t?.urlParser??j$e,utf8Decoder:t?.utf8Decoder??uke,utf8Encoder:t?.utf8Encoder??cke}),FFe=t=>{x$e(process.version);let e=O$e(t),r=()=>e().then(T$e),n=NFe(t);c$e(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??Pi(ike,o),bodyLengthChecker:t?.bodyLengthChecker??pke,credentialDefaultProvider:t?.credentialDefaultProvider??ake,defaultUserAgentProvider:t?.defaultUserAgentProvider??u$e({serviceId:n.serviceId,clientVersion:Ake.version}),disableRequestCompression:t?.disableRequestCompression??Pi(tke,t),maxAttempts:t?.maxAttempts??Pi(Y$e,t),region:t?.region??Pi(M$e,{...L$e,...o}),requestHandler:mke.create(t?.requestHandler??r),requestMinCompressionSizeBytes:t?.requestMinCompressionSizeBytes??Pi(eke,t),retryMode:t?.retryMode??Pi({...Q$e,default:async()=>(await r()).retryMode||K$e},t),streamCollector:t?.streamCollector??fke,useDualstackEndpoint:t?.useDualstackEndpoint??Pi(k$e,o),useFipsEndpoint:t?.useFipsEndpoint??Pi($$e,o),userAgentAppId:t?.userAgentAppId??Pi(l$e,o)}},BFe=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},UFe=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),GFe=(t,e)=>{let r=Object.assign(d$e(t),v$e(t),z$e(t),BFe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,p$e(r),D$e(r),V$e(r),UFe(r))},Cn=class extends U8{config;constructor(...[e]){let r=FFe(e||{});super(r),this.initConfig=r;let n=Rke(r),o=f$e(n),s=J$e(o),i=N$e(s),a=m$e(i),c=q$e(a),u=_ke(c),f=rke(u),m=GFe(f,e?.extensions||[]);this.config=m,this.middlewareStack.use(Z$e(this.config)),this.middlewareStack.use(g$e(this.config)),this.middlewareStack.use(X$e(this.config)),this.middlewareStack.use(W$e(this.config)),this.middlewareStack.use(h$e(this.config)),this.middlewareStack.use(S$e(this.config)),this.middlewareStack.use(y$e(this.config)),this.middlewareStack.use(E$e(this.config,{httpAuthSchemeParametersProvider:Ske,identityProviderConfigProvider:async y=>new _$e({"aws.auth#sigv4":y.credentials})})),this.middlewareStack.use(R$e(this.config))}destroy(){super.destroy()}},X=I$e(Cke,"GraniteServiceVersion20100801","CloudWatchClient",H$e),Z={},ee=(t,e,r,n)=>[],qFe=(t,e,r,n)=>[nke(r,{encodings:["gzip"]})],t_=class extends X(Z,ee,"AssociateDatasetKmsKey",cY){},r_=class extends X(Z,ee,"CreateResourceMetricsConfiguration",uY){},n_=class extends X(Z,ee,"DeleteAlarmMuteRule",lY){},o_=class extends X(Z,ee,"DeleteAlarms",dY){},s_=class extends X(Z,ee,"DeleteAnomalyDetector",pY){},i_=class extends X(Z,ee,"DeleteDashboards",fY){},a_=class extends X(Z,ee,"DeleteInsightRules",mY){},c_=class extends X(Z,ee,"DeleteMetricStream",gY){},u_=class extends X(Z,ee,"DeleteResourceMetricsConfiguration",hY){},l_=class extends X(Z,ee,"DescribeAlarmContributors",SY){},xm=class extends X(Z,ee,"DescribeAlarmHistory",yY){},Na=class extends X(Z,ee,"DescribeAlarms",EY){},d_=class extends X(Z,ee,"DescribeAlarmsForMetric",_Y){},Tm=class extends X(Z,ee,"DescribeAnomalyDetectors",RY){},vm=class extends X(Z,ee,"DescribeInsightRules",CY){},p_=class extends X(Z,ee,"DisableAlarmActions",bY){},f_=class extends X(Z,ee,"DisableInsightRules",AY){},m_=class extends X(Z,ee,"DisassociateDatasetKmsKey",xY){},g_=class extends X(Z,ee,"EnableAlarmActions",TY){},h_=class extends X(Z,ee,"EnableInsightRules",vY){},Dm=class extends X(Z,ee,"GetAlarmMuteRule",DY){},S_=class extends X(Z,ee,"GetDashboard",IY){},y_=class extends X(Z,ee,"GetDataset",wY){},E_=class extends X(Z,ee,"GetInsightRuleReport",PY){},Im=class extends X(Z,ee,"GetMetricData",OY){},__=class extends X(Z,ee,"GetMetricStatistics",$Y){},R_=class extends X(Z,ee,"GetMetricStream",kY){},C_=class extends X(Z,ee,"GetMetricWidgetImage",MY){},b_=class extends X(Z,ee,"GetOTelEnrichment",LY){},A_=class extends X(Z,ee,"GetResourceMetricsConfiguration",NY){},wm=class extends X(Z,ee,"ListAlarmMuteRules",FY){},Pm=class extends X(Z,ee,"ListDashboards",BY){},Om=class extends X(Z,ee,"ListManagedInsightRules",UY){},$m=class extends X(Z,ee,"ListMetrics",GY){},km=class extends X(Z,ee,"ListMetricStreams",qY){},x_=class extends X(Z,ee,"ListTagsForResource",HY){},T_=class extends X(Z,ee,"PutAlarmMuteRule",jY){},v_=class extends X(Z,ee,"PutAnomalyDetector",zY){},D_=class extends X(Z,ee,"PutCompositeAlarm",VY){},I_=class extends X(Z,ee,"PutDashboard",WY){},w_=class extends X(Z,ee,"PutInsightRule",KY){},P_=class extends X(Z,ee,"PutLogAlarm",QY){},O_=class extends X(Z,ee,"PutManagedInsightRules",YY){},$_=class extends X(Z,ee,"PutMetricAlarm",JY){},k_=class extends X(Z,qFe,"PutMetricData",XY){},M_=class extends X(Z,ee,"PutMetricStream",ZY){},L_=class extends X(Z,ee,"SetAlarmState",eJ){},N_=class extends X(Z,ee,"StartMetricStreams",tJ){},F_=class extends X(Z,ee,"StartOTelEnrichment",rJ){},B_=class extends X(Z,ee,"StopMetricStreams",nJ){},U_=class extends X(Z,ee,"StopOTelEnrichment",oJ){},G_=class extends X(Z,ee,"TagResource",sJ){},q_=class extends X(Z,ee,"UntagResource",iJ){},H_=class extends X(Z,ee,"UpdateOTelEnrichment",aJ){},j_=class extends X(Z,ee,"UpdateResourceMetricsConfiguration",cJ){},uJ=Js(Cn,xm,"NextToken","NextToken","MaxRecords"),lJ=Js(Cn,Na,"NextToken","NextToken","MaxRecords"),dJ=Js(Cn,Tm,"NextToken","NextToken","MaxResults"),pJ=Js(Cn,vm,"NextToken","NextToken","MaxResults"),fJ=Js(Cn,Im,"NextToken","NextToken","MaxDatapoints"),mJ=Js(Cn,wm,"NextToken","NextToken","MaxRecords"),gJ=Js(Cn,Pm,"NextToken","NextToken",""),hJ=Js(Cn,Om,"NextToken","NextToken","MaxResults"),SJ=Js(Cn,$m,"NextToken","NextToken",""),yJ=Js(Cn,km,"NextToken","NextToken","MaxResults"),EJ=async(t,e)=>{let r;try{let n=await t.send(new Na(e));r=n;try{if([].concat(...n.MetricAlarms).length>0==!0)return{state:Oi.SUCCESS,reason:r}}catch{}}catch(n){r=n}return{state:Oi.RETRY,reason:r}},HFe=async(t,e)=>Fa({...{minDelay:5,maxDelay:120},...t},e,EJ),_J=async(t,e)=>{let n=await Fa({...{minDelay:5,maxDelay:120},...t},e,EJ);return V_(n)},RJ=async(t,e)=>{let r;try{return r=await t.send(new Dm(e)),{state:Oi.SUCCESS,reason:r}}catch(n){if(r=n,n.name==="ResourceNotFoundException")return{state:Oi.RETRY,reason:r}}return{state:Oi.RETRY,reason:r}},jFe=async(t,e)=>Fa({...{minDelay:5,maxDelay:120},...t},e,RJ),CJ=async(t,e)=>{let n=await Fa({...{minDelay:5,maxDelay:120},...t},e,RJ);return V_(n)},bJ=async(t,e)=>{let r;try{let n=await t.send(new Na(e));r=n;try{if([].concat(...n.CompositeAlarms).length>0==!0)return{state:Oi.SUCCESS,reason:r}}catch{}}catch(n){r=n}return{state:Oi.RETRY,reason:r}},zFe=async(t,e)=>Fa({...{minDelay:5,maxDelay:120},...t},e,bJ),AJ=async(t,e)=>{let n=await Fa({...{minDelay:5,maxDelay:120},...t},e,bJ);return V_(n)},xJ=async(t,e)=>{let r;try{let n=await t.send(new Na(e));r=n;try{if([].concat(...n.LogAlarms).length>0==!0)return{state:Oi.SUCCESS,reason:r}}catch{}}catch(n){r=n}return{state:Oi.RETRY,reason:r}},VFe=async(t,e)=>Fa({...{minDelay:5,maxDelay:120},...t},e,xJ),TJ=async(t,e)=>{let n=await Fa({...{minDelay:5,maxDelay:120},...t},e,xJ);return V_(n)},WFe={AssociateDatasetKmsKeyCommand:t_,CreateResourceMetricsConfigurationCommand:r_,DeleteAlarmMuteRuleCommand:n_,DeleteAlarmsCommand:o_,DeleteAnomalyDetectorCommand:s_,DeleteDashboardsCommand:i_,DeleteInsightRulesCommand:a_,DeleteMetricStreamCommand:c_,DeleteResourceMetricsConfigurationCommand:u_,DescribeAlarmContributorsCommand:l_,DescribeAlarmHistoryCommand:xm,DescribeAlarmsCommand:Na,DescribeAlarmsForMetricCommand:d_,DescribeAnomalyDetectorsCommand:Tm,DescribeInsightRulesCommand:vm,DisableAlarmActionsCommand:p_,DisableInsightRulesCommand:f_,DisassociateDatasetKmsKeyCommand:m_,EnableAlarmActionsCommand:g_,EnableInsightRulesCommand:h_,GetAlarmMuteRuleCommand:Dm,GetDashboardCommand:S_,GetDatasetCommand:y_,GetInsightRuleReportCommand:E_,GetMetricDataCommand:Im,GetMetricStatisticsCommand:__,GetMetricStreamCommand:R_,GetMetricWidgetImageCommand:C_,GetOTelEnrichmentCommand:b_,GetResourceMetricsConfigurationCommand:A_,ListAlarmMuteRulesCommand:wm,ListDashboardsCommand:Pm,ListManagedInsightRulesCommand:Om,ListMetricsCommand:$m,ListMetricStreamsCommand:km,ListTagsForResourceCommand:x_,PutAlarmMuteRuleCommand:T_,PutAnomalyDetectorCommand:v_,PutCompositeAlarmCommand:D_,PutDashboardCommand:I_,PutInsightRuleCommand:w_,PutLogAlarmCommand:P_,PutManagedInsightRulesCommand:O_,PutMetricAlarmCommand:$_,PutMetricDataCommand:k_,PutMetricStreamCommand:M_,SetAlarmStateCommand:L_,StartMetricStreamsCommand:N_,StartOTelEnrichmentCommand:F_,StopMetricStreamsCommand:B_,StopOTelEnrichmentCommand:U_,TagResourceCommand:G_,UntagResourceCommand:q_,UpdateOTelEnrichmentCommand:H_,UpdateResourceMetricsConfigurationCommand:j_},KFe={paginateDescribeAlarmHistory:uJ,paginateDescribeAlarms:lJ,paginateDescribeAnomalyDetectors:dJ,paginateDescribeInsightRules:pJ,paginateGetMetricData:fJ,paginateListAlarmMuteRules:mJ,paginateListDashboards:gJ,paginateListManagedInsightRules:hJ,paginateListMetrics:SJ,paginateListMetricStreams:yJ},QFe={waitUntilAlarmExists:_J,waitUntilCompositeAlarmExists:AJ,waitUntilLogAlarmExists:TJ,waitUntilAlarmMuteRuleExists:CJ},z_=class extends Cn{};w$e(WFe,z_,{paginators:KFe,waiters:QFe});var YFe={Alarm:"Alarm",ExtensionPeriod:"ExtensionPeriod",WaitPeriod:"WaitPeriod"},JFe={CompositeAlarm:"CompositeAlarm",LogAlarm:"LogAlarm",MetricAlarm:"MetricAlarm"},XFe={Action:"Action",AlarmContributorAction:"AlarmContributorAction",AlarmContributorStateUpdate:"AlarmContributorStateUpdate",ConfigurationUpdate:"ConfigurationUpdate",StateUpdate:"StateUpdate"},ZFe={ACTIVE:"ACTIVE",EXPIRED:"EXPIRED",SCHEDULED:"SCHEDULED"},eBe={Bits:"Bits",Bits_Second:"Bits/Second",Bytes:"Bytes",Bytes_Second:"Bytes/Second",Count:"Count",Count_Second:"Count/Second",Gigabits:"Gigabits",Gigabits_Second:"Gigabits/Second",Gigabytes:"Gigabytes",Gigabytes_Second:"Gigabytes/Second",Kilobits:"Kilobits",Kilobits_Second:"Kilobits/Second",Kilobytes:"Kilobytes",Kilobytes_Second:"Kilobytes/Second",Megabits:"Megabits",Megabits_Second:"Megabits/Second",Megabytes:"Megabytes",Megabytes_Second:"Megabytes/Second",Microseconds:"Microseconds",Milliseconds:"Milliseconds",None:"None",Percent:"Percent",Seconds:"Seconds",Terabits:"Terabits",Terabits_Second:"Terabits/Second",Terabytes:"Terabytes",Terabytes_Second:"Terabytes/Second"},tBe={PENDING_TRAINING:"PENDING_TRAINING",TRAINED:"TRAINED",TRAINED_INSUFFICIENT_DATA:"TRAINED_INSUFFICIENT_DATA"},rBe={METRIC_MATH:"METRIC_MATH",SINGLE_METRIC:"SINGLE_METRIC"},nBe={GreaterThanOrEqualToThreshold:"GreaterThanOrEqualToThreshold",GreaterThanThreshold:"GreaterThanThreshold",GreaterThanUpperThreshold:"GreaterThanUpperThreshold",LessThanLowerOrGreaterThanUpperThreshold:"LessThanLowerOrGreaterThanUpperThreshold",LessThanLowerThreshold:"LessThanLowerThreshold",LessThanOrEqualToThreshold:"LessThanOrEqualToThreshold",LessThanThreshold:"LessThanThreshold"},oBe={ALARM:"ALARM",INSUFFICIENT_DATA:"INSUFFICIENT_DATA",OK:"OK"},sBe={TIMESTAMP_ASCENDING:"TimestampAscending",TIMESTAMP_DESCENDING:"TimestampDescending"},iBe={EVALUATION_ERROR:"EVALUATION_ERROR",EVALUATION_FAILURE:"EVALUATION_FAILURE",PARTIAL_DATA:"PARTIAL_DATA"},aBe={Average:"Average",Maximum:"Maximum",Minimum:"Minimum",SampleCount:"SampleCount",Sum:"Sum"},cBe={COMPLETE:"Complete",FORBIDDEN:"Forbidden",INTERNAL_ERROR:"InternalError",PARTIAL_DATA:"PartialData"},uBe={JSON:"json",OPEN_TELEMETRY_0_7:"opentelemetry0.7",OPEN_TELEMETRY_1_0:"opentelemetry1.0"},lBe={RUNNING:"Running",STOPPED:"Stopped"},dBe={PT3H:"PT3H"};R.ActionsSuppressedBy=YFe;R.AlarmContributor$=bK;R.AlarmHistoryItem$=AK;R.AlarmMuteRuleStatus=ZFe;R.AlarmMuteRuleSummary$=xK;R.AlarmPromQLCriteria$=TK;R.AlarmType=JFe;R.AnomalyDetector$=vK;R.AnomalyDetectorConfiguration$=k1;R.AnomalyDetectorStateValue=tBe;R.AnomalyDetectorType=rBe;R.AssociateDatasetKmsKey$=cY;R.AssociateDatasetKmsKeyCommand=t_;R.AssociateDatasetKmsKeyInput$=DK;R.AssociateDatasetKmsKeyOutput$=IK;R.CloudWatch=z_;R.CloudWatchClient=Cn;R.CloudWatchServiceException=ut;R.CloudWatchServiceException$=rK;R.ComparisonOperator=nBe;R.CompositeAlarm$=wK;R.ConcurrentModificationException=UE;R.ConcurrentModificationException$=nK;R.ConflictException=ME;R.ConflictException$=oK;R.CreateResourceMetricsConfiguration$=uY;R.CreateResourceMetricsConfigurationCommand=r_;R.CreateResourceMetricsConfigurationInput$=PK;R.CreateResourceMetricsConfigurationOutput$=OK;R.DashboardEntry$=$K;R.DashboardInvalidInputError=GE;R.DashboardInvalidInputError$=sK;R.DashboardNotFoundError=qE;R.DashboardNotFoundError$=iK;R.DashboardValidationMessage$=kK;R.Datapoint$=MK;R.DeleteAlarmMuteRule$=lY;R.DeleteAlarmMuteRuleCommand=n_;R.DeleteAlarmMuteRuleInput$=LK;R.DeleteAlarms$=dY;R.DeleteAlarmsCommand=o_;R.DeleteAlarmsInput$=NK;R.DeleteAnomalyDetector$=pY;R.DeleteAnomalyDetectorCommand=s_;R.DeleteAnomalyDetectorInput$=FK;R.DeleteAnomalyDetectorOutput$=BK;R.DeleteDashboards$=fY;R.DeleteDashboardsCommand=i_;R.DeleteDashboardsInput$=UK;R.DeleteDashboardsOutput$=GK;R.DeleteInsightRules$=mY;R.DeleteInsightRulesCommand=a_;R.DeleteInsightRulesInput$=qK;R.DeleteInsightRulesOutput$=HK;R.DeleteMetricStream$=gY;R.DeleteMetricStreamCommand=c_;R.DeleteMetricStreamInput$=jK;R.DeleteMetricStreamOutput$=zK;R.DeleteResourceMetricsConfiguration$=hY;R.DeleteResourceMetricsConfigurationCommand=u_;R.DeleteResourceMetricsConfigurationInput$=VK;R.DeleteResourceMetricsConfigurationOutput$=WK;R.DescribeAlarmContributors$=SY;R.DescribeAlarmContributorsCommand=l_;R.DescribeAlarmContributorsInput$=KK;R.DescribeAlarmContributorsOutput$=QK;R.DescribeAlarmHistory$=yY;R.DescribeAlarmHistoryCommand=xm;R.DescribeAlarmHistoryInput$=YK;R.DescribeAlarmHistoryOutput$=JK;R.DescribeAlarms$=EY;R.DescribeAlarmsCommand=Na;R.DescribeAlarmsForMetric$=_Y;R.DescribeAlarmsForMetricCommand=d_;R.DescribeAlarmsForMetricInput$=XK;R.DescribeAlarmsForMetricOutput$=ZK;R.DescribeAlarmsInput$=eQ;R.DescribeAlarmsOutput$=tQ;R.DescribeAnomalyDetectors$=RY;R.DescribeAnomalyDetectorsCommand=Tm;R.DescribeAnomalyDetectorsInput$=rQ;R.DescribeAnomalyDetectorsOutput$=nQ;R.DescribeInsightRules$=CY;R.DescribeInsightRulesCommand=vm;R.DescribeInsightRulesInput$=oQ;R.DescribeInsightRulesOutput$=sQ;R.Dimension$=iQ;R.DimensionFilter$=aQ;R.DisableAlarmActions$=bY;R.DisableAlarmActionsCommand=p_;R.DisableAlarmActionsInput$=cQ;R.DisableInsightRules$=AY;R.DisableInsightRulesCommand=f_;R.DisableInsightRulesInput$=uQ;R.DisableInsightRulesOutput$=lQ;R.DisassociateDatasetKmsKey$=xY;R.DisassociateDatasetKmsKeyCommand=m_;R.DisassociateDatasetKmsKeyInput$=dQ;R.DisassociateDatasetKmsKeyOutput$=pQ;R.EnableAlarmActions$=TY;R.EnableAlarmActionsCommand=g_;R.EnableAlarmActionsInput$=fQ;R.EnableInsightRules$=vY;R.EnableInsightRulesCommand=h_;R.EnableInsightRulesInput$=mQ;R.EnableInsightRulesOutput$=gQ;R.Entity$=hQ;R.EntityMetricData$=SQ;R.EvaluationCriteria$=G1;R.EvaluationState=iBe;R.EvaluationWindow$=q1;R.GetAlarmMuteRule$=DY;R.GetAlarmMuteRuleCommand=Dm;R.GetAlarmMuteRuleInput$=yQ;R.GetAlarmMuteRuleOutput$=EQ;R.GetDashboard$=IY;R.GetDashboardCommand=S_;R.GetDashboardInput$=_Q;R.GetDashboardOutput$=RQ;R.GetDataset$=wY;R.GetDatasetCommand=y_;R.GetDatasetInput$=CQ;R.GetDatasetOutput$=bQ;R.GetInsightRuleReport$=PY;R.GetInsightRuleReportCommand=E_;R.GetInsightRuleReportInput$=AQ;R.GetInsightRuleReportOutput$=xQ;R.GetMetricData$=OY;R.GetMetricDataCommand=Im;R.GetMetricDataInput$=TQ;R.GetMetricDataOutput$=vQ;R.GetMetricStatistics$=$Y;R.GetMetricStatisticsCommand=__;R.GetMetricStatisticsInput$=DQ;R.GetMetricStatisticsOutput$=IQ;R.GetMetricStream$=kY;R.GetMetricStreamCommand=R_;R.GetMetricStreamInput$=wQ;R.GetMetricStreamOutput$=PQ;R.GetMetricWidgetImage$=MY;R.GetMetricWidgetImageCommand=C_;R.GetMetricWidgetImageInput$=OQ;R.GetMetricWidgetImageOutput$=$Q;R.GetOTelEnrichment$=LY;R.GetOTelEnrichmentCommand=b_;R.GetOTelEnrichmentInput$=kQ;R.GetOTelEnrichmentOutput$=MQ;R.GetResourceMetricsConfiguration$=NY;R.GetResourceMetricsConfigurationCommand=A_;R.GetResourceMetricsConfigurationInput$=LQ;R.GetResourceMetricsConfigurationOutput$=NQ;R.HistoryItemType=XFe;R.InsightRule$=FQ;R.InsightRuleContributor$=BQ;R.InsightRuleContributorDatapoint$=UQ;R.InsightRuleMetricDatapoint$=GQ;R.InternalServiceFault=zE;R.InternalServiceFault$=aK;R.InvalidFormatFault=XE;R.InvalidFormatFault$=cK;R.InvalidNextToken=QE;R.InvalidNextToken$=uK;R.InvalidParameterCombinationException=VE;R.InvalidParameterCombinationException$=lK;R.InvalidParameterValueException=WE;R.InvalidParameterValueException$=dK;R.KmsAccessDeniedException=LE;R.KmsAccessDeniedException$=pK;R.KmsKeyDisabledException=NE;R.KmsKeyDisabledException$=fK;R.KmsKeyNotFoundException=FE;R.KmsKeyNotFoundException$=mK;R.LabelOptions$=qQ;R.LimitExceededException=YE;R.LimitExceededException$=gK;R.LimitExceededFault=JE;R.LimitExceededFault$=hK;R.ListAlarmMuteRules$=FY;R.ListAlarmMuteRulesCommand=wm;R.ListAlarmMuteRulesInput$=HQ;R.ListAlarmMuteRulesOutput$=jQ;R.ListDashboards$=BY;R.ListDashboardsCommand=Pm;R.ListDashboardsInput$=zQ;R.ListDashboardsOutput$=VQ;R.ListManagedInsightRules$=UY;R.ListManagedInsightRulesCommand=Om;R.ListManagedInsightRulesInput$=WQ;R.ListManagedInsightRulesOutput$=KQ;R.ListMetricStreams$=qY;R.ListMetricStreamsCommand=km;R.ListMetricStreamsInput$=JQ;R.ListMetricStreamsOutput$=XQ;R.ListMetrics$=GY;R.ListMetricsCommand=$m;R.ListMetricsInput$=QQ;R.ListMetricsOutput$=YQ;R.ListTagsForResource$=HY;R.ListTagsForResourceCommand=x_;R.ListTagsForResourceInput$=ZQ;R.ListTagsForResourceOutput$=e7;R.LogAlarm$=t7;R.ManagedRule$=r7;R.ManagedRuleDescription$=n7;R.ManagedRuleState$=o7;R.MessageData$=s7;R.Metric$=M1;R.MetricAlarm$=i7;R.MetricCharacteristics$=L1;R.MetricDataQuery$=a7;R.MetricDataResult$=c7;R.MetricDatum$=u7;R.MetricMathAnomalyDetector$=dR;R.MetricStat$=l7;R.MetricStreamEntry$=d7;R.MetricStreamFilter$=p7;R.MetricStreamOutputFormat=uBe;R.MetricStreamStatisticsConfiguration$=f7;R.MetricStreamStatisticsMetric$=m7;R.MissingRequiredParameterException=KE;R.MissingRequiredParameterException$=SK;R.MuteTargets$=N1;R.OTelEnrichmentMetricSelector$=g7;R.OTelEnrichmentStatus=lBe;R.PartialFailure$=h7;R.PutAlarmMuteRule$=jY;R.PutAlarmMuteRuleCommand=T_;R.PutAlarmMuteRuleInput$=S7;R.PutAnomalyDetector$=zY;R.PutAnomalyDetectorCommand=v_;R.PutAnomalyDetectorInput$=y7;R.PutAnomalyDetectorOutput$=E7;R.PutCompositeAlarm$=VY;R.PutCompositeAlarmCommand=D_;R.PutCompositeAlarmInput$=_7;R.PutDashboard$=WY;R.PutDashboardCommand=I_;R.PutDashboardInput$=R7;R.PutDashboardOutput$=C7;R.PutInsightRule$=KY;R.PutInsightRuleCommand=w_;R.PutInsightRuleInput$=b7;R.PutInsightRuleOutput$=A7;R.PutLogAlarm$=QY;R.PutLogAlarmCommand=P_;R.PutLogAlarmInput$=x7;R.PutManagedInsightRules$=YY;R.PutManagedInsightRulesCommand=O_;R.PutManagedInsightRulesInput$=T7;R.PutManagedInsightRulesOutput$=v7;R.PutMetricAlarm$=JY;R.PutMetricAlarmCommand=$_;R.PutMetricAlarmInput$=D7;R.PutMetricData$=XY;R.PutMetricDataCommand=k_;R.PutMetricDataInput$=I7;R.PutMetricStream$=ZY;R.PutMetricStreamCommand=M_;R.PutMetricStreamInput$=w7;R.PutMetricStreamOutput$=P7;R.Range$=O7;R.RecentlyActive=dBe;R.ResourceConflict=HE;R.ResourceConflict$=yK;R.ResourceMetricSelection$=$7;R.ResourceMetricsConfiguration$=pR;R.ResourceNotFound=jE;R.ResourceNotFound$=EK;R.ResourceNotFoundException=BE;R.ResourceNotFoundException$=_K;R.Rule$=F1;R.ScanBy=sBe;R.Schedule$=k7;R.ScheduleConfiguration$=M7;R.ScheduledQueryConfiguration$=B1;R.SetAlarmState$=eJ;R.SetAlarmStateCommand=L_;R.SetAlarmStateInput$=L7;R.SingleMetricAnomalyDetector$=fR;R.SlidingWindow$=N7;R.StandardUnit=eBe;R.StartMetricStreams$=tJ;R.StartMetricStreamsCommand=N_;R.StartMetricStreamsInput$=F7;R.StartMetricStreamsOutput$=B7;R.StartOTelEnrichment$=rJ;R.StartOTelEnrichmentCommand=F_;R.StartOTelEnrichmentInput$=U7;R.StartOTelEnrichmentOutput$=G7;R.StateValue=oBe;R.Statistic=aBe;R.StatisticSet$=q7;R.StatusCode=cBe;R.StopMetricStreams$=nJ;R.StopMetricStreamsCommand=B_;R.StopMetricStreamsInput$=H7;R.StopMetricStreamsOutput$=j7;R.StopOTelEnrichment$=oJ;R.StopOTelEnrichmentCommand=U_;R.StopOTelEnrichmentInput$=z7;R.StopOTelEnrichmentOutput$=V7;R.Tag$=W7;R.TagResource$=sJ;R.TagResourceCommand=G_;R.TagResourceInput$=K7;R.TagResourceOutput$=Q7;R.UntagResource$=iJ;R.UntagResourceCommand=q_;R.UntagResourceInput$=Y7;R.UntagResourceOutput$=J7;R.UpdateOTelEnrichment$=aJ;R.UpdateOTelEnrichmentCommand=H_;R.UpdateOTelEnrichmentInput$=X7;R.UpdateOTelEnrichmentOutput$=Z7;R.UpdateResourceMetricsConfiguration$=cJ;R.UpdateResourceMetricsConfigurationCommand=j_;R.UpdateResourceMetricsConfigurationInput$=eY;R.UpdateResourceMetricsConfigurationOutput$=tY;R.ValidationException=ZE;R.ValidationException$=RK;R.WallClockWindow$=rY;R.WarmUpConfiguration$=Hm;R.errorTypeRegistries=CK;R.paginateDescribeAlarmHistory=uJ;R.paginateDescribeAlarms=lJ;R.paginateDescribeAnomalyDetectors=dJ;R.paginateDescribeInsightRules=pJ;R.paginateGetMetricData=fJ;R.paginateListAlarmMuteRules=mJ;R.paginateListDashboards=gJ;R.paginateListManagedInsightRules=hJ;R.paginateListMetricStreams=yJ;R.paginateListMetrics=SJ;R.waitForAlarmExists=HFe;R.waitForAlarmMuteRuleExists=jFe;R.waitForCompositeAlarmExists=zFe;R.waitForLogAlarmExists=VFe;R.waitUntilAlarmExists=_J;R.waitUntilAlarmMuteRuleExists=CJ;R.waitUntilCompositeAlarmExists=AJ;R.waitUntilLogAlarmExists=TJ});var bn,ld,ki,dd,Ae,hR,eu,no=g(()=>{bn={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},ld=bn.WHEN_SUPPORTED,ki={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},dd=bn.WHEN_SUPPORTED;(function(t){t.MD5="MD5",t.CRC32="CRC32",t.CRC32C="CRC32C",t.CRC64NVME="CRC64NVME",t.SHA1="SHA1",t.SHA256="SHA256"})(Ae||(Ae={}));(function(t){t.HEADER="header",t.TRAILER="trailer"})(hR||(hR={}));eu=Ae.CRC32});var Ba,pd,H1=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(Ba||(Ba={}));pd=(t,e,r,n)=>{if(!(e in t))return;let o=t[e].toUpperCase();if(!Object.values(r).includes(o))throw new TypeError(`Cannot load ${n} '${e}'. Expected one of ${Object.values(r)}, got '${t[e]}'.`);return o}});var j1,z1,OJ,$J=g(()=>{no();H1();j1="AWS_REQUEST_CHECKSUM_CALCULATION",z1="request_checksum_calculation",OJ={environmentVariableSelector:t=>pd(t,j1,bn,Ba.ENV),configFileSelector:t=>pd(t,z1,bn,Ba.CONFIG),default:ld}});var V1,W1,kJ,MJ=g(()=>{no();H1();V1="AWS_RESPONSE_CHECKSUM_VALIDATION",W1="response_checksum_validation",kJ={environmentVariableSelector:t=>pd(t,V1,ki,Ba.ENV),configFileSelector:t=>pd(t,W1,ki,Ba.CONFIG),default:dd}});var LJ,NJ=g(()=>{no();LJ=(t,{requestChecksumRequired:e,requestAlgorithmMember:r,requestChecksumCalculation:n})=>r?t[r]?t[r]:void 0:n===bn.WHEN_SUPPORTED||e?eu:void 0});var tu,SR=g(()=>{no();tu=t=>t===Ae.MD5?"content-md5":`x-amz-checksum-${t.toLowerCase()}`});var FJ,BJ=g(()=>{FJ=(t,e)=>{let r=t.toLowerCase();for(let n of Object.keys(e))if(r===n.toLowerCase())return!0;return!1}});var UJ,GJ=g(()=>{UJ=(t,e)=>{let r=t.toLowerCase();for(let n of Object.keys(e))if(n.toLowerCase().startsWith(r))return!0;return!1}});var yR,K1=g(()=>{j();yR=t=>t!==void 0&&typeof t!="string"&&!ArrayBuffer.isView(t)&&!$u(t)});var qJ,ER,HJ=g(()=>{qJ=new Uint32Array(256);for(let t=0;t<256;++t){let e=t;for(let r=0;r<8;++r)e=e&1?2197175160^e>>>1:e>>>1;qJ[t]=e>>>0}ER=class{digestLength=4;crc=4294967295;update(e){let r=this.crc;for(let n=0;n<e.length;++n)r=r>>>8^qJ[(r^e[n])&255];this.crc=r}async digest(){let e=(this.crc^4294967295)>>>0,r=new Uint8Array(4);return r[0]=e>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r}reset(){this.crc=4294967295}}});var _R,jJ=g(()=>{HJ();_R=ER});var zJ,VJ=g(()=>{zJ={CrtCrc64Nvme:null}});var pBe,Q1,jm,Y1,J1,X1,Z1,eM,tM,rM,fBe,RR,WJ=g(()=>{pBe=()=>{let e=new Array(8);for(let r=0;r<8;r++){let n=new Array(512);for(let o=0;o<256;o++){let s=BigInt(o);for(let i=0;i<8*(r+1);i++)s&1n?s=s>>1n^0x9a6c9329ac4bc9b5n:s=s>>1n;n[o*2]=Number(s>>32n&0xffffffffn),n[o*2+1]=Number(s&0xffffffffn)}e[r]=new Uint32Array(n)}return e},fBe=()=>{Q1||(Q1=pBe(),[jm,Y1,J1,X1,Z1,eM,tM,rM]=Q1)},RR=class{c1=0;c2=0;constructor(){fBe(),this.reset()}update(e){let r=e.length,n=0,o=this.c1,s=this.c2;for(;n+8<=r;){let i=((s^e[n++])&255)<<1,a=((s>>>8^e[n++])&255)<<1,c=((s>>>16^e[n++])&255)<<1,u=((s>>>24^e[n++])&255)<<1,f=((o^e[n++])&255)<<1,m=((o>>>8^e[n++])&255)<<1,y=((o>>>16^e[n++])&255)<<1,_=((o>>>24^e[n++])&255)<<1;o=rM[i]^tM[a]^eM[c]^Z1[u]^X1[f]^J1[m]^Y1[y]^jm[_],s=rM[i+1]^tM[a+1]^eM[c+1]^Z1[u+1]^X1[f+1]^J1[m+1]^Y1[y+1]^jm[_+1]}for(;n<r;){let i=((s^e[n])&255)<<1;s=(s>>>8|(o&255)<<24)>>>0,o=o>>>8^jm[i],s^=jm[i+1],++n}this.c1=o,this.c2=s}async digest(){let e=this.c1^4294967295,r=this.c2^4294967295;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,e&255,r>>>24,r>>>16&255,r>>>8&255,r&255])}reset(){this.c1=4294967295,this.c2=4294967295}}});var zm,KJ=g(()=>{VJ();WJ();zm=class{impl;constructor(){let e=zJ.CrtCrc64Nvme;this.impl=e?new e:new RR}update(e){this.impl.update(e)}async digest(){return this.impl.digest()}reset(){this.impl.reset()}}});var QJ=g(()=>{jJ();KJ();On()});var YJ,nM,oM=g(()=>{no();YJ=[Ae.CRC32,Ae.CRC32C,Ae.CRC64NVME,Ae.SHA1,Ae.SHA256],nM=[Ae.SHA256,Ae.SHA1,Ae.CRC32,Ae.CRC32C,Ae.CRC64NVME]});var CR,sM=g(()=>{QJ();no();oM();CR=(t,e)=>{let{checksumAlgorithms:r={}}=e;switch(t){case Ae.MD5:return r?.MD5??e.md5;case Ae.CRC32:return r?.CRC32??Do;case Ae.CRC32C:return r?.CRC32C??_R;case Ae.CRC64NVME:return r?.CRC64NVME??zm;case Ae.SHA1:return r?.SHA1??e.sha1;case Ae.SHA256:return r?.SHA256??e.sha256;default:if(r?.[t])return r[t];throw new Error(`The checksum algorithm "${t}" is not supported by the client. Select one of ${YJ}, or provide an implementation to the client constructor checksums field.`)}}});var bR,iM=g(()=>{j();bR=(t,e)=>{let r=new t;return r.update(bt(e||"")),r.digest()}});var AR,xR,aM=g(()=>{Ee();V();j();no();NJ();SR();BJ();GJ();K1();sM();iM();AR={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},xR=(t,e)=>(r,n)=>async o=>{if(!re.isInstance(o.request)||UJ("x-amz-checksum-",o.request.headers))return r(o);let{request:s,input:i}=o,{body:a,headers:c}=s,{base64Encoder:u,streamHasher:f}=t,{requestChecksumRequired:m,requestAlgorithmMember:y}=e,_=await t.requestChecksumCalculation(),C=y?.name,A=y?.httpHeader;C&&!i[C]&&(_===bn.WHEN_SUPPORTED||m)&&(i[C]=eu,A&&(c[A]=eu));let x=LJ(i,{requestChecksumRequired:m,requestAlgorithmMember:y?.name,requestChecksumCalculation:_}),T=a,I=c;if(x){switch(x){case Ae.CRC32:We(n,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case Ae.CRC32C:We(n,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case Ae.CRC64NVME:We(n,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case Ae.SHA1:We(n,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case Ae.SHA256:We(n,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y");break}let q=tu(x),H=CR(x,t);if(yR(a)){let{getAwsChunkedEncodingStream:me,bodyLengthChecker:et}=t;T=me(typeof t.requestStreamBufferSize=="number"&&t.requestStreamBufferSize>=8*1024?kS(a,t.requestStreamBufferSize,n.logger):a,{base64Encoder:u,bodyLengthChecker:et,checksumLocationName:q,checksumAlgorithmFn:H,streamHasher:f}),I={...c,"content-encoding":c["content-encoding"]?`${c["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":c["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":q},delete I["content-length"]}else if(!FJ(q,c)){let me=await bR(H,a);I={...c,[q]:u(me)}}}try{return await r({...o,request:{...s,headers:I,body:T}})}catch(q){if(q instanceof Error&&q.name==="InvalidChunkSizeError")try{q.message.endsWith(".")||(q.message+="."),q.message+=" Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."}catch{}throw q}}});var JJ,XJ,ZJ=g(()=>{Ee();no();JJ={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0},XJ=(t,e)=>(r,n)=>async o=>{let s=o.input,{requestValidationModeMember:i}=e,a=await t.requestChecksumCalculation(),c=await t.responseChecksumValidation();switch(a){case bn.WHEN_REQUIRED:We(n,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case bn.WHEN_SUPPORTED:We(n,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z");break}switch(c){case ki.WHEN_REQUIRED:We(n,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case ki.WHEN_SUPPORTED:We(n,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b");break}return i&&!s[i]&&c===ki.WHEN_SUPPORTED&&(s[i]="ENABLED"),r(o)}});var TR,cM=g(()=>{oM();TR=(t=[])=>{let e=[],r=nM.length;for(let n of t){let o=nM.indexOf(n);o!==-1?e[o]=n:e[r++]=n}return e.filter(Boolean)}});var eX,tX=g(()=>{eX=t=>{let e=t.lastIndexOf("-");if(e!==-1){let r=t.slice(e+1);if(!r.startsWith("0")){let n=parseInt(r,10);if(!isNaN(n)&&n>=1&&n<=1e4)return!0}}return!1}});var rX,nX=g(()=>{iM();rX=async(t,{checksumAlgorithmFn:e,base64Encoder:r})=>r(await bR(e,t))});var oX,sX=g(()=>{j();no();nX();cM();SR();K1();sM();oX=async(t,{config:e,responseAlgorithms:r,logger:n})=>{let o=TR(r),{body:s,headers:i}=t;for(let a of o){let c=tu(a),u=i[c];if(u){let f;try{f=CR(a,e)}catch(_){if(a===Ae.CRC64NVME){n?.warn(`Skipping ${Ae.CRC64NVME} checksum validation: ${_.message}`);continue}throw _}let{base64Encoder:m}=e;if(yR(s)){t.body=$S({expectedChecksum:u,checksumSourceLocation:c,checksum:new f,source:s,base64Encoder:m});return}let y=await rX(s,{checksumAlgorithmFn:f,base64Encoder:m});if(y===u)break;throw new Error(`Checksum mismatch: expected "${y}" but received "${u}" in response header "${c}".`)}}}});var iX,aX,cX=g(()=>{V();cM();SR();tX();sX();iX={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},aX=(t,e)=>(r,n)=>async o=>{if(!re.isInstance(o.request))return r(o);let s=o.input,i=await r(o),a=i.response,{requestValidationModeMember:c,responseAlgorithms:u}=e;if(c&&s[c]==="ENABLED"){let{clientName:f,commandName:m}=n,y=Object.keys(t.checksumAlgorithms??{}).filter(A=>{let x=tu(A);return a.headers[x]!==void 0}),_=TR([...u??[],...y]);if(f==="S3Client"&&m==="GetObjectCommand"&&_.every(A=>{let x=tu(A),T=a.headers[x];return!T||eX(T)}))return i;await oX(a,{config:t,responseAlgorithms:_,logger:n.logger})}return i}});var uX,lX=g(()=>{ZJ();aM();cX();uX=(t,e)=>({applyToStack:r=>{r.add(xR(t,e),AR),r.addRelativeTo(XJ(t,e),JJ),r.addRelativeTo(aX(t,e),iX)}})});var dX,pX=g(()=>{J();no();dX=t=>{let{requestChecksumCalculation:e,responseChecksumValidation:r,requestStreamBufferSize:n}=t;return Object.assign(t,{requestChecksumCalculation:we(e??ld),responseChecksumValidation:we(r??dd),requestStreamBufferSize:Number(n??0),checksumAlgorithms:t.checksumAlgorithms??{}})}});var fX={};Ct(fX,{CONFIG_REQUEST_CHECKSUM_CALCULATION:()=>z1,CONFIG_RESPONSE_CHECKSUM_VALIDATION:()=>W1,ChecksumAlgorithm:()=>Ae,ChecksumLocation:()=>hR,DEFAULT_CHECKSUM_ALGORITHM:()=>eu,DEFAULT_REQUEST_CHECKSUM_CALCULATION:()=>ld,DEFAULT_RESPONSE_CHECKSUM_VALIDATION:()=>dd,ENV_REQUEST_CHECKSUM_CALCULATION:()=>j1,ENV_RESPONSE_CHECKSUM_VALIDATION:()=>V1,NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS:()=>OJ,NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS:()=>kJ,RequestChecksumCalculation:()=>bn,ResponseChecksumValidation:()=>ki,flexibleChecksumsMiddleware:()=>xR,flexibleChecksumsMiddlewareOptions:()=>AR,getFlexibleChecksumsPlugin:()=>uX,resolveFlexibleChecksumsConfig:()=>dX});var mX=g(()=>{$J();MJ();no();aM();lX();pX()});function uM(){return(t,e)=>async r=>{let{request:n}=r;if(re.isInstance(n)&&!(mBe in n.headers)&&!(gBe in n.headers)){let o="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof e?.logger?.warn=="function"&&!(e.logger instanceof Nr)?e.logger.warn(o):console.warn(o)}return t({...r})}}var mBe,gBe,lM,gX,hX=g(()=>{J();V();mBe="content-length",gBe="x-amz-decoded-content-length";lM={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},gX=t=>({applyToStack:e=>{e.add(uM(),lM)}})});var vR,DR,dM=g(()=>{vR=t=>(e,r)=>async n=>{let o=await t.region(),s=t.region,i=()=>{};r.__s3RegionRedirect&&(Object.defineProperty(t,"region",{writable:!1,value:async()=>r.__s3RegionRedirect}),i=()=>Object.defineProperty(t,"region",{writable:!0,value:s}));try{let a=await e(n);if(r.__s3RegionRedirect){i();let c=await t.region();if(o!==c)throw new Error("Region was not restored following S3 region redirect.")}return a}catch(a){throw i(),a}},DR={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"}});function pM(t){return(e,r)=>async n=>{try{return await e(n)}catch(o){if(t.followRegionRedirects){let s=o?.$metadata?.httpStatusCode,i=r.commandName==="HeadBucketCommand",a=o?.$response?.headers?.["x-amz-bucket-region"];if(a&&(s===301||s===400&&(o?.name==="IllegalLocationConstraintException"||i))){try{let c=a;r.logger?.debug(`Redirecting from ${await t.region()} to ${c}`),r.__s3RegionRedirect=c,We(r,"S3_REGION_REDIRECT","Ah")}catch(c){throw new Error("Region redirect failed: "+c)}return e(n)}}throw o}}}var fM,SX,yX=g(()=>{Ee();dM();fM={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},SX=t=>({applyToStack:e=>{e.add(pM(t),fM),e.addRelativeTo(vR(t),DR)}})});var fd,mM=g(()=>{fd=class t{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){let r=this.data[e];if(r)return r}set(e,r){return this.data[e]=r,r}delete(e){delete this.data[e]}async purgeExpired(){let e=Date.now();if(!(this.lastPurgeTime+t.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>e))for(let r in this.data){let n=this.data[r];if(!n.isRefreshing){let o=await n.identity;o.expiration&&o.expiration.getTime()<e&&delete this.data[r]}}}}});var Ua,gM=g(()=>{Ua=class{_identity;isRefreshing;accessed;constructor(e,r=!1,n=Date.now()){this._identity=e,this.isRefreshing=r,this.accessed=n}get identity(){return this.accessed=Date.now(),this._identity}}});var md,hM=g(()=>{mM();gM();md=class t{createSessionFn;cache;static REFRESH_WINDOW_MS=6e4;constructor(e,r=new fd){this.createSessionFn=e,this.cache=r}async getS3ExpressIdentity(e,r){let n=r.Bucket,{cache:o}=this,s=o.get(n);return s?s.identity.then(i=>(i.expiration?.getTime()??0)<Date.now()?o.set(n,new Ua(this.getIdentity(n))).identity:((i.expiration?.getTime()??0)<Date.now()+t.REFRESH_WINDOW_MS&&!s.isRefreshing&&(s.isRefreshing=!0,this.getIdentity(n).then(u=>{o.set(n,new Ua(Promise.resolve(u)))})),i)):o.set(n,new Ua(this.getIdentity(n))).identity}async getIdentity(e){await this.cache.purgeExpired().catch(o=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
|
|
59
|
-
`+o)});let r=await this.createSessionFn(e);if(!r.Credentials?.AccessKeyId||!r.Credentials?.SecretAccessKey)throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:r.Credentials.AccessKeyId,secretAccessKey:r.Credentials.SecretAccessKey,sessionToken:r.Credentials.SessionToken,expiration:r.Credentials.Expiration?new Date(r.Credentials.Expiration):void 0}}}});var EX,_X=g(()=>{hM();EX=(t,{session:e})=>{let[r,n]=e,{forcePathStyle:o,useAccelerateEndpoint:s,disableMultiregionAccessPoints:i,followRegionRedirects:a,s3ExpressIdentityProvider:c,bucketEndpoint:u,expectContinueHeader:f}=t;return Object.assign(t,{forcePathStyle:o??!1,useAccelerateEndpoint:s??!1,disableMultiregionAccessPoints:i??!1,followRegionRedirects:a??!1,s3ExpressIdentityProvider:c??new md(async m=>r().send(new n({Bucket:m}))),bucketEndpoint:u??!1,expectContinueHeader:f??2097152})}});var SM,yM,RX,CX=g(()=>{V();j();SM=t=>(e,r)=>async n=>{let o=await e(n),{response:s}=o;if(ft.isInstance(s)&&s.headers.expires){s.headers.expiresstring=s.headers.expires;try{gn(s.headers.expires)}catch(i){r.logger?.warn(`AWS SDK Warning for ${r.clientName}::${r.commandName} response parsing (${s.headers.expires}): ${i}`),delete s.headers.expires}}return o},yM={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},RX=t=>({applyToStack:e=>{e.addRelativeTo(SM(t),yM)}})});var bX,IR,AX=g(()=>{bX=De(rm()),IR=class extends bX.SignatureV4SignWithCredentials{}});var xX,TX,vX,hBe,DX,SBe,yBe,IX,EM=g(()=>{ye();xX="Directory",TX="S3Express",vX="sigv4-s3express",hBe="X-Amz-S3session-Token",DX=hBe.toLowerCase(),SBe="AWS_S3_DISABLE_EXPRESS_SESSION_AUTH",yBe="s3_disable_express_session_auth",IX={environmentVariableSelector:t=>Ve(t,SBe,Be.ENV),configFileSelector:t=>Ve(t,yBe,Be.CONFIG),default:!1}});var _M,RM,wX,PX=g(()=>{Ee();V();EM();_M=t=>(e,r)=>async n=>{if(r.endpointV2){let o=r.endpointV2,s=o.properties?.authSchemes?.[0]?.name===vX;if((o.properties?.backend===TX||o.properties?.bucketType===xX)&&(We(r,"S3_EXPRESS_BUCKET","J"),r.isS3ExpressBucket=!0),s){let a=n.input.Bucket;if(a){let c=await t.s3ExpressIdentityProvider.getS3ExpressIdentity(await t.credentials(),{Bucket:a});r.s3ExpressIdentity=c,re.isInstance(n.request)&&c.sessionToken&&(n.request.headers[DX]=c.sessionToken)}}}return e(n)},RM={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},wX=t=>({applyToStack:e=>{e.add(_M(t),RM)}})});var OX,$X=g(()=>{OX=async(t,e,r,n)=>{let o=await n.signWithCredentials(r,t,{});if(o.headers["X-Amz-Security-Token"]||o.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return o}});var EBe,_Be,kX,CM,MX,LX=g(()=>{jt();J();V();$X();EBe=t=>e=>{throw e},_Be=(t,e)=>{},kX=Oc,CM=t=>(e,r)=>async n=>{if(!re.isInstance(n.request))return e(n);let s=Le(r).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:i={}},identity:a,signer:c}=s,u;r.s3ExpressIdentity?u=await OX(r.s3ExpressIdentity,i,n.request,await t.signer()):u=await c.sign(n.request,a,i);let f=await e({...n,request:u}).catch((c.errorHandler||EBe)(i));return(c.successHandler||_Be)(f.response,i),f},MX=t=>({applyToStack:e=>{e.addRelativeTo(CM(t),Oc)}})});function FX(t){return NX.Readable.from(Buffer.from(t))}var NX,BX=g(()=>{NX=require("node:stream")});var RBe,bM,CBe,AM,UX,GX=g(()=>{V();BX();RBe={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},bM=t=>(e,r)=>async n=>{let o=await e(n),{response:s}=o;if(!ft.isInstance(s))return o;let{statusCode:i,body:a}=s;if(i<200||i>=300)return o;let c=await CBe(a,t);if(s.body=FX(c),c.length===0&&RBe[r.commandName]){let f=new Error("S3 aborted request");throw f.$metadata={httpStatusCode:503},f.name="InternalError",f}let u=t.utf8Encoder(c.subarray(c.length-16));return u&&u.endsWith("</Error>")&&(s.statusCode=503),o},CBe=(t=new Uint8Array,e)=>t instanceof Uint8Array?Promise.resolve(t):e.streamCollector(t)||Promise.resolve(new Uint8Array),AM={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},UX=t=>({applyToStack:e=>{e.addRelativeTo(bM(t),AM)}})});var Vm,xM,qX=g(()=>{Vm=t=>typeof t=="string"&&t.indexOf("arn:")===0&&t.split(":").length>=6,xM=t=>{let e=t.split(":");if(e.length<6||e[0]!=="arn")throw new Error("Malformed ARN");let[,r,n,o,s,...i]=e;return{partition:r,service:n,region:o,accountId:s,resource:i.join(":")}}});var TM=g(()=>{qX()});function HX(t){return(e,r)=>async n=>{if(t.bucketEndpoint){let o=r.endpointV2;if(o){let s=n.input.Bucket;if(typeof s=="string")try{let i=new URL(s);r.endpointV2={...o,url:i}}catch(i){let a=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${s} could not be parsed as URL.`;throw r.logger?.constructor?.name==="NoOpLogger"?console.warn(a):r.logger?.warn?.(a),i}}}return e(n)}}var jX,zX=g(()=>{jX={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"}});function vM({bucketEndpoint:t}){return e=>async r=>{let{input:{Bucket:n}}=r;if(!t&&typeof n=="string"&&!Vm(n)&&n.indexOf("/")>=0){let o=new Error(`Bucket name shouldn't contain '/', received '${n}'`);throw o.name="InvalidBucketName",o}return e({...r})}}var DM,VX,WX=g(()=>{TM();zX();DM={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},VX=t=>({applyToStack:e=>{e.add(vM(t),DM),e.addRelativeTo(HX(t),jX)}})});var wR,KX=g(()=>{Di();ae();wR=class extends Ql{async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n),s=B.of(e.input),i=s.getSchema(),a=0,c=i[6]??0;if(r&&typeof r=="object")for(let[u,f]of s.structIterator()){if(++a>c)break;if(u==="Bucket"){if(!r.Bucket&&f.getMergedTraits().httpLabel)throw new Error("No value provided for input HTTP label: Bucket.");break}}return o}}});var IM,wM,QX,YX=g(()=>{ye();IM="AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS",wM="s3_disable_multiregion_access_points",QX={environmentVariableSelector:t=>Ve(t,IM,Be.ENV),configFileSelector:t=>Ve(t,wM,Be.CONFIG),default:!1}});var PM,OM,JX,XX=g(()=>{ye();PM="AWS_S3_USE_ARN_REGION",OM="s3_use_arn_region",JX={environmentVariableSelector:t=>Ve(t,PM,Be.ENV),configFileSelector:t=>Ve(t,OM,Be.CONFIG),default:void 0}});var bBe,ABe,xBe,kM,TBe,ZX,$M,eZ,tZ,rZ,nZ,PR,oZ,sZ,iZ,OR,$R,aZ,kR,MR,Ga,cZ,LR,uZ,NR,lZ,MM=g(()=>{bBe=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,ABe=/(\d+\.){3}\d+/,xBe=/\.\./,kM=/\./,TBe=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./,ZX=/^s3(-external-1)?\.amazonaws\.com$/,$M="amazonaws.com",eZ=t=>typeof t.bucketName=="string",tZ=t=>bBe.test(t)&&!ABe.test(t)&&!xBe.test(t),rZ=t=>{let e=t.match(TBe);return[e[4],t.replace(new RegExp(`^${e[0]}`),"")]},nZ=t=>ZX.test(t)?["us-east-1",$M]:rZ(t),PR=t=>ZX.test(t)?[t.replace(`.${$M}`,""),$M]:rZ(t),oZ=t=>{if(t.pathStyleEndpoint)throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN");if(t.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported when bucket is an ARN");if(!t.tlsCompatible)throw new Error("HTTPS is required when bucket is an ARN")},sZ=t=>{if(t!=="s3"&&t!=="s3-outposts"&&t!=="s3-object-lambda")throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component")},iZ=t=>{if(t!=="s3")throw new Error("Expect 's3' in Accesspoint ARN service component")},OR=t=>{if(t!=="s3-outposts")throw new Error("Expect 's3-posts' in Outpost ARN service component")},$R=(t,e)=>{if(t!==e.clientPartition)throw new Error(`Partition in ARN is incompatible, got "${t}" but expected "${e.clientPartition}"`)},aZ=(t,e)=>{},kR=t=>{if(["s3-external-1","aws-global"].includes(t))throw new Error(`Client region ${t} is not regional`)},MR=t=>{if(!/[0-9]{12}/.exec(t))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")},Ga=(t,e={tlsCompatible:!0})=>{if(t.length>=64||!/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)||/(\d+\.){3}\d+/.test(t)||/[.-]{2}/.test(t)||e?.tlsCompatible&&kM.test(t))throw new Error(`Invalid DNS label ${t}`)},cZ=t=>{if(t.isCustomEndpoint){if(t.dualstackEndpoint)throw new Error("Dualstack endpoint is not supported with custom endpoint");if(t.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported with custom endpoint")}},LR=t=>{let e=t.includes(":")?":":"/",[r,...n]=t.split(e);if(r==="accesspoint"){if(n.length!==1||n[0]==="")throw new Error(`Access Point ARN should have one resource accesspoint${e}{accesspointname}`);return{accesspointName:n[0]}}else if(r==="outpost"){if(!n[0]||n[1]!=="accesspoint"||!n[2]||n.length!==3)throw new Error(`Outpost ARN should have resource outpost${e}{outpostId}${e}accesspoint${e}{accesspointName}`);let[o,s,i]=n;return{outpostId:o,accesspointName:i}}else throw new Error(`ARN resource should begin with 'accesspoint${e}' or 'outpost${e}'`)},uZ=t=>{},NR=t=>{if(t)throw new Error("FIPS region is not supported with Outpost.")},lZ=t=>{try{t.split(".").forEach(e=>{Ga(e)})}catch{throw new Error(`"${t}" is not a DNS compatible name.`)}}});var Wm,vBe,DBe,IBe,wBe,PBe,OBe,LM=g(()=>{MM();Wm=t=>(cZ(t),eZ(t)?vBe(t):DBe(t)),vBe=({accelerateEndpoint:t=!1,clientRegion:e,baseHostname:r,bucketName:n,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,pathStyleEndpoint:i=!1,tlsCompatible:a=!0,isCustomEndpoint:c=!1})=>{let[u,f]=c?[e,r]:nZ(r);return i||!tZ(n)||a&&kM.test(n)?{bucketEndpoint:!1,hostname:o?`s3.dualstack.${u}.${f}`:r}:(t?r=`s3-accelerate${o?".dualstack":""}.${f}`:o&&(r=`s3.dualstack.${u}.${f}`),{bucketEndpoint:!0,hostname:`${n}.${r}`})},DBe=t=>{let{isCustomEndpoint:e,baseHostname:r,clientRegion:n}=t,o=e?r:PR(r)[1],{pathStyleEndpoint:s,accelerateEndpoint:i=!1,fipsEndpoint:a=!1,tlsCompatible:c=!0,bucketName:u,clientPartition:f="aws"}=t;oZ({pathStyleEndpoint:s,accelerateEndpoint:i,tlsCompatible:c});let{service:m,partition:y,accountId:_,region:C,resource:A}=u;sZ(m),$R(y,{clientPartition:f}),MR(_);let{accesspointName:x,outpostId:T}=LR(A);return m==="s3-object-lambda"?IBe({...t,tlsCompatible:c,bucketName:u,accesspointName:x,hostnameSuffix:o}):C===""?wBe({...t,clientRegion:n,mrapAlias:x,hostnameSuffix:o}):T?PBe({...t,clientRegion:n,outpostId:T,accesspointName:x,hostnameSuffix:o}):OBe({...t,clientRegion:n,accesspointName:x,hostnameSuffix:o})},IBe=({dualstackEndpoint:t=!1,fipsEndpoint:e=!1,tlsCompatible:r=!0,useArnRegion:n,clientRegion:o,clientSigningRegion:s=o,accesspointName:i,bucketName:a,hostnameSuffix:c})=>{let{accountId:u,region:f,service:m}=a;kR(o);let y=`${i}-${u}`;Ga(y,{tlsCompatible:r});let _=n?f:o,C=n?f:s;return{bucketEndpoint:!0,hostname:`${y}.${m}${e?"-fips":""}.${_}.${c}`,signingRegion:C,signingService:m}},wBe=({disableMultiregionAccessPoints:t,dualstackEndpoint:e=!1,isCustomEndpoint:r,mrapAlias:n,hostnameSuffix:o})=>{if(t===!0)throw new Error("SDK is attempting to use a MRAP ARN. Please enable to feature.");return lZ(n),{bucketEndpoint:!0,hostname:`${n}${r?"":".accesspoint.s3-global"}.${o}`,signingRegion:"*"}},PBe=({useArnRegion:t,clientRegion:e,clientSigningRegion:r=e,bucketName:n,outpostId:o,dualstackEndpoint:s=!1,fipsEndpoint:i=!1,tlsCompatible:a=!0,accesspointName:c,isCustomEndpoint:u,hostnameSuffix:f})=>{kR(e);let m=`${c}-${n.accountId}`;Ga(m,{tlsCompatible:a});let y=t?n.region:e,_=t?n.region:r;return OR(n.service),Ga(o,{tlsCompatible:a}),NR(i),{bucketEndpoint:!0,hostname:`${`${m}.${o}`}${u?"":`.s3-outposts.${y}`}.${f}`,signingRegion:_,signingService:"s3-outposts"}},OBe=({useArnRegion:t,clientRegion:e,clientSigningRegion:r=e,bucketName:n,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,tlsCompatible:i=!0,accesspointName:a,isCustomEndpoint:c,hostnameSuffix:u})=>{kR(e);let f=`${a}-${n.accountId}`;Ga(f,{tlsCompatible:i});let m=t?n.region:e,y=t?n.region:r;return iZ(n.service),{bucketEndpoint:!0,hostname:`${f}${c?"":`.s3-accesspoint${s?"-fips":""}${o?".dualstack":""}.${m}`}.${u}`,signingRegion:y}}});var NM,FM,dZ,pZ=g(()=>{TM();V();LM();NM=t=>(e,r)=>async n=>{let{Bucket:o}=n.input,s=t.bucketEndpoint,i=n.request;if(re.isInstance(i)){if(t.bucketEndpoint)i.hostname=o;else if(Vm(o)){let a=xM(o),c=await t.region(),u=await t.useDualstackEndpoint(),f=await t.useFipsEndpoint(),{partition:m,signingRegion:y=c}=await t.regionInfoProvider(c,{useDualstackEndpoint:u,useFipsEndpoint:f})||{},_=await t.useArnRegion(),{hostname:C,bucketEndpoint:A,signingRegion:x,signingService:T}=Wm({bucketName:a,baseHostname:i.hostname,accelerateEndpoint:t.useAccelerateEndpoint,dualstackEndpoint:u,fipsEndpoint:f,pathStyleEndpoint:t.forcePathStyle,tlsCompatible:i.protocol==="https:",useArnRegion:_,clientPartition:m,clientSigningRegion:y,clientRegion:c,isCustomEndpoint:t.isCustomEndpoint,disableMultiregionAccessPoints:await t.disableMultiregionAccessPoints()});x&&x!==y&&(r.signing_region=x),T&&T!=="s3"&&(r.signing_service=T),i.hostname=C,s=A}else{let a=await t.region(),c=await t.useDualstackEndpoint(),u=await t.useFipsEndpoint(),{hostname:f,bucketEndpoint:m}=Wm({bucketName:o,clientRegion:a,baseHostname:i.hostname,accelerateEndpoint:t.useAccelerateEndpoint,dualstackEndpoint:c,fipsEndpoint:u,pathStyleEndpoint:t.forcePathStyle,tlsCompatible:i.protocol==="https:",isCustomEndpoint:t.isCustomEndpoint});i.hostname=f,s=m}s&&(i.path=i.path.replace(/^(\/)?[^\/]+/,""),i.path===""&&(i.path="/"))}return e({...n,request:i})},FM={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0},dZ=t=>({applyToStack:e=>{e.addRelativeTo(NM(t),FM)}})});function fZ(t){let{bucketEndpoint:e=!1,forcePathStyle:r=!1,useAccelerateEndpoint:n=!1,useArnRegion:o,disableMultiregionAccessPoints:s=!1}=t;return Object.assign(t,{bucketEndpoint:e,forcePathStyle:r,useAccelerateEndpoint:n,useArnRegion:typeof o=="function"?o:()=>Promise.resolve(o),disableMultiregionAccessPoints:typeof s=="function"?s:()=>Promise.resolve(s)})}var mZ=g(()=>{});function BM(t){return e=>async r=>{let{request:n}=r;if(t.expectContinueHeader!==!1&&re.isInstance(n)&&n.body&&t.runtime==="node"&&t.requestHandler?.constructor?.name!=="FetchHttpHandler"){let o=!0;if(typeof t.expectContinueHeader=="number")try{o=(Number(n.headers?.["content-length"])??t.bodyLengthChecker?.(n.body)??1/0)>=t.expectContinueHeader}catch{}else o=!!t.expectContinueHeader;o&&(n.headers.Expect="100-continue")}return e({...r,request:n})}}var UM,gZ,hZ=g(()=>{V();UM={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},gZ=t=>({applyToStack:e=>{e.add(BM(t),UM)}})});function GM(t){return e=>async r=>{let{CreateBucketConfiguration:n}=r.input,o=await t.region();return!n?.LocationConstraint&&!n?.Location&&o!=="us-east-1"&&(r.input.CreateBucketConfiguration=r.input.CreateBucketConfiguration??{},r.input.CreateBucketConfiguration.LocationConstraint=o),e(r)}}var qM,SZ,yZ=g(()=>{qM={step:"initialize",tags:["LOCATION_CONSTRAINT","CREATE_BUCKET_CONFIGURATION"],name:"locationConstraintMiddleware",override:!0},SZ=t=>({applyToStack:e=>{e.add(GM(t),qM)}})});function EZ(t){return t}var _Z=g(()=>{});function HM(t){return e=>async r=>{let n={...r.input},o=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(let s of o){let i=n[s.target];if(i){let a;typeof i=="string"?zM(i,t)?a=t.base64Decoder(i):(a=t.utf8Decoder(i),n[s.target]=t.base64Encoder(a)):(a=ArrayBuffer.isView(i)?new Uint8Array(i.buffer,i.byteOffset,i.byteLength):new Uint8Array(i),n[s.target]=t.base64Encoder(a));let c=new t.md5;c.update(a),n[s.hash]=t.base64Encoder(await c.digest())}}return e({...r,input:n})}}function zM(t,e){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t))return!1;try{return e.base64Decoder(t).length===32}catch{return!1}}var jM,RZ,CZ=g(()=>{jM={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},RZ=t=>({applyToStack:e=>{e.add(HM(t),jM)}})});var bZ={};Ct(bZ,{NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS:()=>QX,NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME:()=>IM,NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME:()=>wM,NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS:()=>IX,NODE_USE_ARN_REGION_CONFIG_OPTIONS:()=>JX,NODE_USE_ARN_REGION_ENV_NAME:()=>PM,NODE_USE_ARN_REGION_INI_NAME:()=>OM,S3ExpressIdentityCache:()=>fd,S3ExpressIdentityCacheEntry:()=>Ua,S3ExpressIdentityProviderImpl:()=>md,S3RestXmlProtocol:()=>wR,SignatureV4S3Express:()=>IR,addExpectContinueMiddleware:()=>BM,addExpectContinueMiddlewareOptions:()=>UM,bucketEndpointMiddleware:()=>NM,bucketEndpointMiddlewareOptions:()=>FM,bucketHostname:()=>Wm,checkContentLengthHeader:()=>uM,checkContentLengthHeaderMiddlewareOptions:()=>lM,getAddExpectContinuePlugin:()=>gZ,getArnResources:()=>LR,getBucketEndpointPlugin:()=>dZ,getCheckContentLengthHeaderPlugin:()=>gX,getLocationConstraintPlugin:()=>SZ,getRegionRedirectMiddlewarePlugin:()=>SX,getS3ExpiresMiddlewarePlugin:()=>RX,getS3ExpressHttpSigningPlugin:()=>MX,getS3ExpressPlugin:()=>wX,getSsecPlugin:()=>RZ,getSuffixForArnEndpoint:()=>PR,getThrow200ExceptionsPlugin:()=>UX,getValidateBucketNamePlugin:()=>VX,isValidBase64EncodedSSECustomerKey:()=>zM,locationConstraintMiddleware:()=>GM,locationConstraintMiddlewareOptions:()=>qM,regionRedirectEndpointMiddleware:()=>vR,regionRedirectEndpointMiddlewareOptions:()=>DR,regionRedirectMiddleware:()=>pM,regionRedirectMiddlewareOptions:()=>fM,resolveBucketEndpointConfig:()=>fZ,resolveLocationConstraintConfig:()=>EZ,resolveS3Config:()=>EX,s3ExpiresMiddleware:()=>SM,s3ExpiresMiddlewareOptions:()=>yM,s3ExpressHttpSigningMiddleware:()=>CM,s3ExpressHttpSigningMiddlewareOptions:()=>kX,s3ExpressMiddleware:()=>_M,s3ExpressMiddlewareOptions:()=>RM,ssecMiddleware:()=>HM,ssecMiddlewareOptions:()=>jM,throw200ExceptionsMiddleware:()=>bM,throw200ExceptionsMiddlewareOptions:()=>AM,validateAccountId:()=>MR,validateBucketNameMiddleware:()=>vM,validateBucketNameMiddlewareOptions:()=>DM,validateDNSHostLabel:()=>Ga,validateNoDualstack:()=>uZ,validateNoFIPS:()=>NR,validateOutpostService:()=>OR,validatePartition:()=>$R,validateRegion:()=>aZ});var AZ=g(()=>{hX();dM();yX();_X();CX();mM();gM();hM();AX();EM();PX();LX();GX();WX();KX();YX();XX();pZ();LM();mZ();MM();hZ();yZ();_Z();CZ()});var Tt,xZ,TZ,$Be,Mi,FR=g(()=>{j();Tt=64,xZ=20,TZ=new Int32Array([1732584193,4023233417,2562383102,271733878,3285377520]),$Be=new Int32Array([1518500249,1859775393,2400959708,3395469782]),Mi=class t{digestLength=xZ;state=Int32Array.from(TZ);w;buffer=new Uint8Array(Tt);bufferLength=0;bytesHashed=0;finished=!1;inner;outer;constructor(e){if(e){let r=t.normalizeKey(e);this.inner=new t,this.outer=new t;let n=new Uint8Array(Tt*2);for(let o=0;o<Tt;++o)n[o]=54^r[o],n[o+Tt]=92^r[o];this.inner.update(n.subarray(0,Tt)),this.outer.update(n.subarray(Tt))}}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.inner){this.inner.update(e);return}let r=0,{length:n}=e;if(this.bytesHashed+=n,this.bufferLength>0){for(;n>0&&this.bufferLength<Tt;)this.buffer[this.bufferLength++]=e[r++],--n;this.bufferLength===Tt&&(this.hashBuffer(this.buffer,0),this.bufferLength=0)}for(;n>=Tt;)this.hashBuffer(e,r),r+=Tt,n-=Tt;for(;n>0;)this.buffer[this.bufferLength++]=e[r++],--n}async digest(){if(this.inner&&this.outer){if(this.finished)throw new Error("Attempted to digest an already finished HMAC.");this.finished=!0;let e=this.inner.digestSync();return this.outer.update(e),this.outer.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(TZ),this.buffer=new Uint8Array(Tt),this.bufferLength=0,this.bytesHashed=0}digestSync(){let e=this.state.slice(),r=this.buffer.slice(),n=this.bufferLength,o=this.bytesHashed/536870912|0,s=this.bytesHashed<<3;if(r[n++]=128,n>Tt-8){for(let c=n;c<Tt;++c)r[c]=0;this.hashBufferWith(e,r,0),n=0}for(let c=n;c<Tt-8;++c)r[c]=0;let i=new DataView(r.buffer,r.byteOffset,Tt);i.setUint32(Tt-8,o,!1),i.setUint32(Tt-4,s,!1),this.hashBufferWith(e,r,0);let a=new Uint8Array(xZ);return a[0]=e[0]>>>24&255,a[1]=e[0]>>>16&255,a[2]=e[0]>>>8&255,a[3]=e[0]&255,a[4]=e[1]>>>24&255,a[5]=e[1]>>>16&255,a[6]=e[1]>>>8&255,a[7]=e[1]&255,a[8]=e[2]>>>24&255,a[9]=e[2]>>>16&255,a[10]=e[2]>>>8&255,a[11]=e[2]&255,a[12]=e[3]>>>24&255,a[13]=e[3]>>>16&255,a[14]=e[3]>>>8&255,a[15]=e[3]&255,a[16]=e[4]>>>24&255,a[17]=e[4]>>>16&255,a[18]=e[4]>>>8&255,a[19]=e[4]&255,a}static normalizeKey(e){let r=bt(e);if(r.byteLength>Tt){let o=new t;o.update(r);let s=o.digestSync(),i=new Uint8Array(Tt);return i.set(s),i}let n=new Uint8Array(Tt);return n.set(r),n}hashBuffer(e,r){this.hashBufferWith(this.state,e,r)}hashBufferWith(e,r,n){let o=this.w??=new Int32Array(80),s=e[0],i=e[1],a=e[2],c=e[3],u=e[4];for(let f=0;f<16;++f)o[f]=(r[n+f*4]&255)<<24|(r[n+f*4+1]&255)<<16|(r[n+f*4+2]&255)<<8|r[n+f*4+3]&255;for(let f=16;f<80;++f){let m=o[f-3]^o[f-8]^o[f-14]^o[f-16];o[f]=m<<1|m>>>31}for(let f=0;f<80;++f){let m=f<20?0:f<40?1:f<60?2:3,y=((s<<5|s>>>27)+(m===0?i&a^~i&c:m===2?i&a^i&c^a&c:i^a^c)|0)+(u+($Be[m]+o[f]|0)|0)|0;u=c,c=a,a=i<<30|i>>>2,i=s,s=y}e[0]=e[0]+s|0,e[1]=e[1]+i|0,e[2]=e[2]+a|0,e[3]=e[3]+c|0,e[4]=e[4]+u|0}}});function MBe(){return class{digestLength=20;secret;hash;isHmac;finished=!1;constructor(e){this.secret=e,this.isHmac=!!e,this.hash=this.createHash()}update(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");this.hash.update(e)}async digest(){let e;return this.isHmac?(this.finished=!0,e=this.hash.digest()):e=this.hash.copy().digest(),new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=this.createHash(),this.finished=!1}createHash(){return this.secret?(0,Km.createHmac)("sha1",LBe(this.secret)):(0,Km.createHash)("sha1")}}}function LBe(t){return typeof t=="string"?t:ArrayBuffer.isView(t)?Buffer.from(t.buffer,t.byteOffset,t.byteLength):Buffer.from(t)}var Km,kBe,VM,vZ=g(()=>{Km=require("node:crypto");FR();kBe=(()=>{try{return(0,Km.createHash)("sha1"),!0}catch{return!1}})(),VM=kBe?MBe():Mi});var NBe,FBe,BBe,BR,UBe,UR,DZ=g(()=>{j();FR();({digest:NBe,sign:FBe,importKey:BBe}=globalThis?.crypto?.subtle??{}),BR=typeof NBe=="function"&&typeof FBe=="function"&&typeof BBe=="function"?globalThis.crypto.subtle:void 0,UBe=8*1024*1024,UR=class{digestLength=20;secret;pending=[];pendingBytes=0;fallback;finished=!1;constructor(e){e&&(this.secret=bt(e))}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.fallback){this.fallback.update(e);return}this.pending.push(e.slice()),this.pendingBytes+=e.byteLength,this.pendingBytes>=UBe&&this.switchToFallback()}async digest(){if(this.fallback)return this.fallback.digest();if(this.secret&&this.finished)throw new Error("Attempted to digest an already finished HMAC.");let e=Vn(this.pending);if(BR){if(this.secret){this.finished=!0;let o=await BR.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-1"},!1,["sign"]),s=await BR.sign("HMAC",o,e);return new Uint8Array(s)}let n=await BR.digest("SHA-1",e);return new Uint8Array(n)}let r=new Mi(this.secret);return r.update(e),r.digest()}reset(){this.pending=[],this.pendingBytes=0,this.fallback=void 0,this.finished=!1}switchToFallback(){let e=new Mi(this.secret);for(let r of this.pending)e.update(r);this.fallback=e,this.pending=[],this.pendingBytes=0}}});var IZ={};Ct(IZ,{Sha1:()=>VM,Sha1Js:()=>Mi,Sha1Node:()=>VM,Sha1WebCrypto:()=>UR,Sha256:()=>Sn,Sha256Js:()=>Io,Sha256Node:()=>Sn});var wZ=g(()=>{FR();vZ();DZ();On()});var $N=st(d=>{var{getFlexibleChecksumsPlugin:qa,NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS:GBe,NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS:qBe,resolveFlexibleChecksumsConfig:HBe}=(mX(),F(fX)),{awsEndpointFunctions:jBe,emitWarningIfUnsupportedVersion:zBe,createDefaultUserAgentProvider:VBe,NODE_APP_ID_CONFIG_OPTIONS:WBe,getAwsRegionExtensionConfiguration:KBe,resolveAwsRegionExtensionConfiguration:QBe,resolveUserAgentConfig:YBe,resolveHostHeaderConfig:JBe,getUserAgentPlugin:XBe,getHostHeaderPlugin:ZBe,getLoggerPlugin:e2e,getRecursionDetectionPlugin:t2e}=(Ee(),F(kn)),{getThrow200ExceptionsPlugin:Ha,getSsecPlugin:yd,getLocationConstraintPlugin:r2e,getS3ExpiresMiddlewarePlugin:gee,getCheckContentLengthHeaderPlugin:n2e,S3RestXmlProtocol:o2e,NODE_USE_ARN_REGION_CONFIG_OPTIONS:s2e,NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS:i2e,resolveS3Config:a2e,getValidateBucketNamePlugin:c2e,getAddExpectContinuePlugin:u2e,getRegionRedirectMiddlewarePlugin:l2e,getS3ExpressPlugin:d2e,getS3ExpressHttpSigningPlugin:p2e}=(AZ(),F(bZ)),{getHttpAuthSchemeEndpointRuleSetPlugin:f2e,DefaultIdentityProviderConfig:m2e,getHttpSigningPlugin:g2e,createPaginator:cg}=(jt(),F(xl)),{normalizeProvider:hee,getSmithyContext:See,makeBuilder:h2e,ServiceException:S2e,NoOpLogger:y2e,emitWarningIfUnsupportedVersion:E2e,loadConfigsForDefaultMode:_2e,getDefaultExtensionConfiguration:R2e,resolveDefaultRuntimeConfig:C2e,Client:yee,createWaiter:ja,checkExceptions:OA,WaiterState:ei,createAggregatedClient:b2e}=(J(),F(bo)),{Command:A2e}=(J(),F(bo));d.$Command=A2e;d.__Client=yee;var{resolveDefaultsModeConfig:x2e,loadConfig:oo,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:T2e,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:v2e,NODE_REGION_CONFIG_OPTIONS:D2e,NODE_REGION_CONFIG_FILE_OPTIONS:I2e,resolveRegionConfig:w2e}=(ye(),F(Br)),{BinaryDecisionDiagram:P2e,EndpointCache:O2e,decideEndpoint:$2e,customEndpointFunctions:k2e,resolveParams:M2e,getEndpointPlugin:L2e,resolveEndpointConfig:N2e}=(He(),F(jp)),{eventStreamSerdeProvider:F2e,resolveEventStreamSerdeConfig:B2e}=(WS(),F(VS)),{parseUrl:U2e,getHttpHandlerExtensionConfiguration:G2e,resolveHttpHandlerRuntimeConfig:q2e,getContentLengthPlugin:H2e}=(V(),F(wo)),{DEFAULT_RETRY_MODE:j2e,NODE_RETRY_MODE_CONFIG_OPTIONS:z2e,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:V2e,resolveRetryConfig:W2e,getRetryPlugin:K2e}=(en(),F(nf)),{TypeRegistry:Eee,getSchemaSerdePlugin:Q2e}=(ae(),F(Dp)),{resolveAwsSdkSigV4Config:Y2e,resolveAwsSdkSigV4AConfig:J2e,AwsSdkSigV4Signer:X2e,AwsSdkSigV4ASigner:Z2e,NODE_SIGV4A_CONFIG_OPTIONS:eUe,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:tUe}=(rr(),F(Il)),{SignatureV4MultiRegion:_ee}=rm(),{defaultProvider:rUe}=Cm(),{Sha256:nUe,Md5:oUe,readableStreamHasher:sUe}=(On(),F(Vp)),{toUtf8:iUe,fromUtf8:aUe,sdkStreamMixin:cUe,getAwsChunkedEncodingStream:uUe,toBase64:lUe,fromBase64:dUe,calculateBodyLength:pUe}=(j(),F(To)),{streamCollector:fUe,NodeHttpHandler:mUe}=zs(),{Sha1:gUe}=(wZ(),F(IZ)),Ke="ref",he="argv",Ree="backend",ri="authSchemes",io="disableDoubleEncoding",ao="signingName",Ui="signingRegion",dL="signingRegionSet",te=-1,Ge=!0,so=!1,WM="isSet",Jo="booleanEquals",Oe="stringEquals",jr="coalesce",sn="substring",Vt="",PZ="aws.partition",Cee="partitionResult",OZ="accessPointSuffix",$Z="regionPrefix",GR=t=>"outpostId_ssa_"+t+Vt,bee="hardwareType",KM="ite",Li="isValidHostLabel",Gi="sigv4",kZ="aws.isVirtualHostableS3Bucket",Aee="url",an="getAttr",xee="bucketArn",Ni="--",Tee="arnType",MZ="accesspoint",QM=t=>"accessPointName_ssa_"+t+Vt,pL="s3-object-lambda",Ym="s3-outposts",LZ="bucketPartition",vee="us-east-1",NZ="outpostType",Bn="name",Jm="s3",YM="{url#scheme}://{Bucket}.{url#authority}{url#path}",qR="{url#scheme}://{url#authority}{url#path}",FZ="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",BZ="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",UZ="https://{Bucket}.s3.{partitionResult#dnsSuffix}",GZ=t=>"{url#scheme}://{accessPointName_ssa_"+t+"}-{bucketArn#accountId}.{url#authority}{url#path}",qZ=t=>"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_"+t+"}`",fL="sigv4a",HZ="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",jZ="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",zZ="https://s3.{partitionResult#dnsSuffix}",VZ={[Ke]:"UseFIPS"},WZ={[Ke]:"UseDualStack"},cr={[Ke]:"Bucket"},JM={fn:an,[he]:[{[Ke]:Cee},Bn]},KZ={[Ke]:Aee},gd={[Ke]:"Region"},Fi={[Ke]:xee},QZ={[Ke]:Tee},XM={[Ke]:"accessPointName_ssa_1"},HR={fn:an,[he]:[Fi,"region"]},YZ={[Ke]:bee},ZM={fn:an,[he]:[Fi,"service"]},JZ={fn:an,[he]:[Fi,"accountId"]},jR={[Ree]:"S3Express",[ri]:[{[io]:!0,[Bn]:"{_s3e_auth}",[ao]:"s3express",[Ui]:"{Region}"}]},XZ={[Ree]:"S3Express",[ri]:[{[io]:!0,[Bn]:Gi,[ao]:"s3express",[Ui]:"{Region}"}]},zR={[ri]:[{[io]:!0,[Bn]:fL,[ao]:Ym,[dL]:["*"]},{[io]:!0,[Bn]:Gi,[ao]:Ym,[Ui]:"{Region}"}]},ar={[ri]:[{[io]:!0,[Bn]:Gi,[ao]:Jm,[Ui]:vee}]},vt={[ri]:[{[io]:!0,[Bn]:Gi,[ao]:Jm,[Ui]:"{Region}"}]},eL={[ri]:[{[io]:!0,[Bn]:Gi,[ao]:pL,[Ui]:"{bucketArn#region}"}]},Qm={[ri]:[{[io]:!0,[Bn]:Gi,[ao]:Jm,[Ui]:"{bucketArn#region}"}]},ZZ={[ri]:[{[io]:!0,[Bn]:fL,[ao]:Ym,[dL]:["*"]},{[io]:!0,[Bn]:Gi,[ao]:Ym,[Ui]:"{bucketArn#region}"}]},tL={[ri]:[{[io]:!0,[Bn]:Gi,[ao]:pL,[Ui]:"{Region}"}]},eee=[gd],tee=[{[Ke]:"Endpoint"}],rL=[cr],ree=[cr,0,7,!0],nee=[Fi,"resourceId[1]"],hUe=["*"],oee={conditions:[[WM,eee],[Jo,[{[Ke]:"Accelerate"},Ge]],[Jo,[VZ,Ge]],[Jo,[WZ,Ge]],[WM,tee],[WM,rL],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,0,6,Ge]},Vt]},"--x-s3"]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:ree},Vt]},"--xa-s3"]],[PZ,eee,Cee],[sn,ree,OZ],[Oe,[{[Ke]:OZ},"--op-s3"]],[sn,[cr,8,12,Ge],$Z],[sn,[cr,32,49,Ge],GR(2)],[sn,[cr,49,50,Ge],bee],[Jo,[{[Ke]:"ForcePathStyle"},Ge]],[Oe,[JM,"aws-cn"]],[KM,[WZ,".dualstack",Vt],"_s3e_ds"],[Li,[{[Ke]:GR(2)},so]],[KM,[VZ,"-fips",Vt],"_s3e_fips"],[KM,[{fn:jr,[he]:[{[Ke]:"DisableS3ExpressSessionAuth"},so]},Gi,"sigv4-s3express"],"_s3e_auth"],[kZ,[cr,so]],["parseURL",tee,Aee],[Jo,[{fn:jr,[he]:[{[Ke]:"UseS3ExpressControlEndpoint"},so]},Ge]],[kZ,[cr,Ge]],[Oe,[{fn:an,[he]:[KZ,"scheme"]},"http"]],[Li,[gd,so]],["aws.parseArn",rL,xee],[an,[{fn:"split",[he]:[cr,Ni,0]},"[-2]"],"s3expressAvailabilityZoneId"],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,0,4,so]},Vt]},"arn:"]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,16,18,Ge]},Vt]},Ni]],[Jo,[{fn:an,[he]:[KZ,"isIp"]},Ge]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,21,23,Ge]},Vt]},Ni]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,27,29,Ge]},Vt]},Ni]],[Oe,[{[Ke]:$Z},"beta"]],["uriEncode",rL,"uri_encoded_bucket"],[Li,[gd,Ge]],[Jo,[{fn:jr,[he]:[{[Ke]:"UseObjectLambdaEndpoint"},so]},Ge]],[an,[Fi,"resourceId[0]"],Tee],[Oe,[QZ,Vt]],[Oe,[QZ,MZ]],[an,nee,QM(1)],[Oe,[XM,Vt]],[Oe,[HR,Vt]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,14,16,Ge]},Vt]},Ni]],[Oe,[YZ,"e"]],[Oe,[YZ,"o"]],[Oe,[gd,"aws-global"]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,19,21,Ge]},Vt]},Ni]],[Oe,[ZM,pL]],[Jo,[{fn:jr,[he]:[{[Ke]:"DisableAccessPoints"},so]},Ge]],[Oe,[ZM,Ym]],[PZ,[HR],LZ],[Li,[XM,Ge]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,26,28,Ge]},Vt]},Ni]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,15,17,Ge]},Vt]},Ni]],[an,[Fi,"resourceId[4]"]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,20,22,Ge]},Vt]},Ni]],[Jo,[{[Ke]:"UseGlobalEndpoint"},Ge]],[Oe,[gd,vee]],[an,nee,GR(1)],[Jo,[{fn:jr,[he]:[{[Ke]:"UseArnRegion"},Ge]},Ge]],[Li,[{[Ke]:GR(1)},so]],[an,[Fi,"resourceId[2]"],NZ],[Oe,[gd,HR]],[Oe,[{fn:an,[he]:[{[Ke]:LZ},Bn]},JM]],[Jo,[{[Ke]:"DisableMultiRegionAccessPoints"},Ge]],[Li,[HR,Ge]],[Oe,[{fn:an,[he]:[Fi,"partition"]},JM]],[Oe,[JZ,Vt]],[Oe,[ZM,Jm]],[Li,[JZ,so]],[an,[Fi,"resourceId[3]"],QM(2)],[Li,[XM,so]],[Oe,[{[Ke]:NZ},MZ]],[Li,[{[Ke]:QM(2)},so]]],results:[[te],[te,"Accelerate cannot be used with FIPS"],[te,"Cannot set dual-stack in combination with a custom endpoint."],[te,"A custom endpoint cannot be combined with FIPS"],[te,"A custom endpoint cannot be combined with S3 Accelerate"],[te,"Partition does not support FIPS"],[te,"S3Express does not support S3 Accelerate."],["{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",jR],[YM,jR],[te,"S3Express bucket name is not a valid virtual hostable name."],["https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",XZ],["https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}",jR],[te,"Unrecognized S3Express bucket name format."],[qR,jR],["https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}",XZ],[te,"Expected a endpoint to be specified but no endpoint was found"],["https://{Bucket}.ec2.{url#authority}",zR],["https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}",zR],["https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}",zR],["https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}",zR],[te,'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"'],[te,"Invalid Outposts Bucket alias - it must be a valid bucket name."],[te,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[te,"Custom endpoint `{Endpoint}` was not a valid URI"],[te,"S3 Accelerate cannot be used in this region"],["https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",vt],["https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",ar],["https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",vt],["https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",vt],["https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",vt],[FZ,ar],[YM,ar],[FZ,vt],[YM,vt],[BZ,ar],[BZ,vt],[UZ,ar],[UZ,vt],["https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",vt],[te,"Invalid region: region was not a valid DNS name."],[te,"S3 Object Lambda does not support Dual-stack"],[te,"S3 Object Lambda does not support S3 Accelerate"],[te,"Access points are not supported for this operation"],[te,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[te,"Invalid ARN: Missing account id"],[GZ(1),eL],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",eL],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",eL],[te,qZ(1)],[te,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[te,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[te,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[te,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[te,"Invalid ARN: bucket ARN is missing a region"],[te,"Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided"],[te,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[te,"Access Points do not support S3 Accelerate"],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",Qm],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",Qm],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",Qm],[GZ(1),Qm],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",Qm],[te,"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}"],[te,"S3 MRAP does not support dual-stack"],[te,"S3 MRAP does not support FIPS"],[te,"S3 MRAP does not support S3 Accelerate"],[te,"Invalid configuration: Multi-Region Access Point ARNs are disabled."],["https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}",{[ri]:[{[io]:Ge,name:fL,[ao]:Jm,[dL]:hUe}]}],[te,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[te,"Invalid Access Point Name"],[te,"S3 Outposts does not support Dual-stack"],[te,"S3 Outposts does not support FIPS"],[te,"S3 Outposts does not support S3 Accelerate"],[te,"Invalid Arn: Outpost Access Point ARN contains sub resources"],["https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}",ZZ],["https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",ZZ],[te,qZ(2)],[te,"Expected an outpost type `accesspoint`, found {outpostType}"],[te,"Invalid ARN: expected an access point name"],[te,"Invalid ARN: Expected a 4-component resource"],[te,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[te,"Invalid ARN: The Outpost Id was not set"],[te,"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})"],[te,"Invalid ARN: No ARN type specified"],[te,"Invalid ARN: `{Bucket}` was not a valid ARN"],[te,"Path-style addressing cannot be used with ARN buckets"],["https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",ar],["https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",vt],["https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",ar],["https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",vt],["https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",ar],["https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",vt],[HZ,ar],[HZ,vt],[jZ,ar],[jZ,vt],["https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",vt],[te,"Path-style addressing cannot be used with S3 Accelerate"],[qR,tL],["https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",tL],["https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",tL],["https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",vt],["https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",ar],["https://s3-fips.{Region}.{partitionResult#dnsSuffix}",vt],["https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",vt],[qR,ar],[qR,vt],[zZ,ar],[zZ,vt],["https://s3.{Region}.{partitionResult#dnsSuffix}",vt],[te,"A region must be set when sending requests to S3."]]},SUe=2,E=1e8,yUe=new Int32Array([-1,1,-1,0,3,E+115,1,424,4,2,272,5,3,233,6,4,85,7,5,15,8,8,9,E+115,16,10,13,18,11,13,19,12,13,22,E+14,13,35,14,E+42,36,E+103,435,6,271,16,7,270,17,8,19,18,14,501,106,9,20,24,10,21,24,11,22,24,12,23,24,13,547,24,14,77,25,20,73,26,26,27,78,37,28,E+86,38,E+86,29,39,47,30,48,E+58,31,50,32,E+85,51,33,136,55,E+76,34,59,35,E+84,60,39,36,61,37,E+83,62,38,146,63,41,E+46,61,40,E+83,62,41,150,64,42,E+54,66,43,E+53,70,44,E+52,71,45,E+81,73,46,E+80,74,E+78,E+79,40,48,E+57,41,E+57,49,42,185,50,48,62,51,49,E+45,52,51,53,526,60,56,54,62,E+55,55,63,57,E+46,62,E+55,57,64,58,E+54,66,59,E+53,69,60,E+65,70,61,E+52,72,E+64,E+51,49,E+45,63,51,64,526,60,67,65,62,E+55,66,63,68,E+46,62,E+55,68,64,69,E+54,66,70,E+53,68,E+47,71,70,72,E+52,72,E+50,E+51,25,74,E+42,46,E+39,75,57,76,E+41,58,E+40,E+41,26,E+88,78,28,E+87,79,34,82,80,35,81,545,36,E+103,E+115,46,E+97,83,57,84,E+99,58,E+98,E+99,5,101,86,8,87,E+115,16,88,89,18,91,89,19,90,92,21,97,95,19,93,92,21,98,95,21,97,94,22,E+14,95,35,96,E+42,36,E+103,E+42,22,E+13,98,35,99,E+42,36,E+101,100,46,E+110,E+111,6,214,102,7,208,103,8,119,104,14,118,105,21,106,E+23,26,107,502,37,108,E+86,38,E+86,109,39,112,110,48,E+58,111,50,136,E+85,40,113,E+57,41,E+57,114,42,115,500,48,E+56,116,52,117,E+72,65,E+69,E+72,21,501,E+23,9,120,124,10,121,124,11,122,124,12,123,124,13,202,124,14,195,125,20,190,126,21,127,E+23,23,128,129,24,189,129,26,130,197,37,131,E+86,38,E+86,132,39,159,133,48,E+58,134,50,135,E+85,51,141,136,55,E+76,137,59,138,E+84,60,E+83,139,61,140,E+83,63,E+83,E+46,55,E+76,142,59,143,E+84,60,148,144,61,145,E+83,62,147,146,63,150,E+46,63,153,E+46,61,149,E+83,62,153,150,64,151,E+54,66,152,E+53,70,E+82,E+52,64,154,E+54,66,155,E+53,70,156,E+52,71,157,E+81,73,158,E+80,74,E+77,E+79,40,160,E+57,41,E+57,161,42,185,162,48,174,163,49,E+45,164,51,165,526,60,168,166,62,E+55,167,63,169,E+46,62,E+55,169,64,170,E+54,66,171,E+53,69,172,E+65,70,173,E+52,72,E+63,E+51,49,E+45,175,51,176,526,60,179,177,62,E+55,178,63,180,E+46,62,E+55,180,64,181,E+54,66,182,E+53,68,E+47,183,70,184,E+52,72,E+48,E+51,48,E+56,186,52,187,E+72,65,E+69,188,67,E+70,E+71,25,E+36,E+42,21,191,E+23,25,192,E+42,30,194,193,46,E+34,E+36,46,E+33,E+35,21,196,E+23,26,E+88,197,28,E+87,198,34,201,199,35,200,545,36,E+101,E+115,46,E+95,E+96,17,203,E+22,20,204,E+21,21,205,550,33,206,550,44,E+16,207,45,E+18,E+20,8,209,215,16,210,220,18,211,220,19,212,224,20,213,227,21,231,401,8,218,215,19,216,E+9,20,217,227,21,231,E+9,16,219,220,18,223,220,19,221,224,20,222,227,21,231,E+12,19,226,224,20,225,E+9,21,E+9,E+12,20,230,227,21,228,E+9,30,229,E+9,34,E+7,E+9,21,231,415,30,232,E+8,34,E+7,E+8,4,E+2,234,5,235,480,6,271,236,7,270,237,8,238,491,9,239,243,10,240,243,11,241,243,12,242,243,13,547,243,14,266,244,20,264,245,26,246,267,37,247,E+86,38,E+86,248,39,249,518,40,250,E+57,41,E+57,251,42,538,252,48,E+43,253,49,E+45,254,51,255,526,60,258,256,62,E+55,257,63,259,E+46,62,E+55,259,64,260,E+54,66,261,E+53,69,262,E+65,70,263,E+52,72,E+62,E+51,25,265,E+42,46,E+31,E+32,26,E+88,267,28,E+87,268,34,269,544,46,E+93,E+94,8,397,E+9,8,407,E+9,3,346,273,4,E+3,274,5,284,275,8,276,E+115,15,E+5,277,16,278,281,18,279,281,19,280,281,22,E+14,281,35,282,E+42,36,E+102,283,46,E+106,E+107,6,405,285,7,395,286,8,295,287,14,501,288,26,289,502,37,290,E+86,38,E+86,291,39,292,307,40,293,E+57,41,E+57,294,42,335,500,9,296,300,10,297,300,11,298,300,12,299,300,13,394,300,14,339,301,15,E+5,302,20,337,303,26,304,341,37,305,E+86,38,E+86,306,39,309,307,48,E+58,308,50,E+74,E+85,40,310,E+57,41,E+57,311,42,335,312,48,324,313,49,E+45,314,51,315,526,60,318,316,62,E+55,317,63,319,E+46,62,E+55,319,64,320,E+54,66,321,E+53,69,322,E+65,70,323,E+52,72,E+61,E+51,49,E+45,325,51,326,526,60,329,327,62,E+55,328,63,330,E+46,62,E+55,330,64,331,E+54,66,332,E+53,68,E+47,333,70,334,E+52,72,E+49,E+51,48,E+56,336,52,E+67,E+72,25,338,E+42,46,E+27,E+28,15,E+5,340,26,E+88,341,28,E+87,342,34,345,343,35,344,545,36,E+102,E+115,46,E+91,E+92,4,E+2,347,5,357,348,8,349,E+115,15,E+5,350,16,351,354,18,352,354,19,353,354,22,E+14,354,35,355,E+42,36,E+43,356,46,E+104,E+105,6,405,358,7,395,359,8,360,491,9,361,365,10,362,365,11,363,365,12,364,365,13,394,365,14,389,366,15,E+5,367,20,387,368,26,369,391,37,370,E+86,38,E+86,371,39,372,518,40,373,E+57,41,E+57,374,42,538,375,48,E+43,376,49,E+45,377,51,378,526,60,381,379,62,E+55,380,63,382,E+46,62,E+55,382,64,383,E+54,66,384,E+53,69,385,E+65,70,386,E+52,72,E+60,E+51,25,388,E+42,46,E+25,E+26,15,E+5,390,26,E+88,391,28,E+87,392,34,393,544,46,E+89,E+90,15,E+5,547,8,396,E+9,15,E+5,397,16,398,410,18,399,410,19,400,410,20,401,E+9,27,402,E+12,29,E+11,403,31,E+11,404,32,E+11,422,8,406,E+9,15,E+5,407,16,408,410,18,409,410,19,411,410,20,E+12,E+9,20,414,412,22,413,E+9,34,E+10,E+9,22,416,415,27,419,E+12,27,418,417,34,E+10,E+12,34,E+10,419,43,E+11,420,47,E+11,421,53,E+11,422,54,E+11,423,56,E+11,E+12,2,E+1,425,3,478,426,4,E+4,427,5,438,428,8,429,E+115,16,430,433,18,431,433,19,432,433,22,E+14,433,35,434,E+42,36,E+44,435,46,E+112,436,57,437,E+114,58,E+113,E+114,6,E+6,439,7,E+6,440,8,450,441,14,501,442,26,443,502,37,444,E+86,38,E+86,445,39,446,465,40,447,E+57,41,E+57,448,42,471,449,48,E+44,500,9,451,455,10,452,455,11,453,455,12,454,455,13,547,455,14,473,456,15,460,457,20,458,461,25,459,E+42,46,E+37,E+38,20,540,461,26,462,474,37,463,E+86,38,E+86,464,39,467,465,48,E+58,466,50,E+75,E+85,40,468,E+57,41,E+57,469,42,471,470,48,E+44,524,48,E+44,472,52,E+68,E+72,26,E+88,474,28,E+87,475,34,E+100,476,35,477,545,36,E+44,E+115,4,E+2,479,5,488,480,8,481,E+115,16,482,485,18,483,485,19,484,485,22,E+14,485,35,486,E+42,36,E+43,487,46,E+108,E+109,6,E+6,489,7,E+6,490,8,503,491,14,501,492,26,493,502,37,494,E+86,38,E+86,495,39,496,518,40,497,E+57,41,E+57,498,42,538,499,48,E+43,500,49,E+45,526,26,E+88,502,28,E+87,E+115,9,504,508,10,505,508,11,506,508,12,507,508,13,547,508,14,541,509,15,513,510,20,511,514,25,512,E+42,46,E+29,E+30,20,540,514,26,515,542,37,516,E+86,38,E+86,517,39,520,518,48,E+58,519,50,E+73,E+85,40,521,E+57,41,E+57,522,42,538,523,48,E+43,524,49,E+45,525,51,529,526,60,E+55,527,62,E+55,528,63,E+55,E+46,60,532,530,62,E+55,531,63,533,E+46,62,E+55,533,64,534,E+54,66,535,E+53,69,536,E+65,70,537,E+52,72,E+59,E+51,48,E+43,539,52,E+66,E+72,25,E+24,E+42,26,E+88,542,28,E+87,543,34,E+100,544,35,546,545,36,E+42,E+115,36,E+43,E+115,17,548,E+22,20,549,E+21,33,552,550,44,E+17,551,45,E+19,E+20,44,E+15,553,45,E+15,E+20]),EUe=P2e.from(yUe,SUe,oee.conditions,oee.results),_Ue=new O2e({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),Dee=(t,e={})=>_Ue.get(t,()=>$2e(EUe,{endpointParams:t,logger:e.logger}));k2e.aws=jBe;var RUe=t=>async(e,r,n)=>{if(!n)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let o=await t(e,r,n),s=See(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!s)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let i=await M2e(n,{getEndpointParameterInstructions:s},e);return Object.assign(o,i)},CUe=async(t,e,r)=>({operation:See(e).operation,region:await hee(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),bUe=RUe(CUe);function Iee(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function wee(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var AUe=(t,e,r)=>o=>{let i=t(o).properties?.authSchemes;if(!i)return e(o);let a=[];for(let c of i){let{name:u,properties:f={},...m}=c,y=u.toLowerCase();u!==y&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${u}' to '${y}'`);let _;if(y==="sigv4a"){_="aws.auth#sigv4a";let x=i.find(T=>{let I=T.name.toLowerCase();return I!=="sigv4a"&&I.startsWith("sigv4")});if(_ee.sigv4aDependency()==="none"&&x)continue}else if(y.startsWith("sigv4"))_="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let C=r[_];if(!C)throw new Error(`Could not find HttpAuthOption create function for '${_}'`);let A=C(o);A.schemeId=_,A.signingProperties={...A.signingProperties||{},...m,...f},a.push(A)}return a},xUe=t=>{let e=[];switch(t.operation){default:e.push(Iee(t)),e.push(wee(t))}return e},TUe=AUe(Dee,xUe,{"aws.auth#sigv4":Iee,"aws.auth#sigv4a":wee}),vUe=t=>{let e=Y2e(t),r=J2e(e);return Object.assign(r,{authSchemePreference:hee(t.authSchemePreference??[])})},DUe=t=>Object.assign(t,{useFipsEndpoint:t.useFipsEndpoint??!1,useDualstackEndpoint:t.useDualstackEndpoint??!1,forcePathStyle:t.forcePathStyle??!1,useAccelerateEndpoint:t.useAccelerateEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,disableMultiregionAccessPoints:t.disableMultiregionAccessPoints??!1,defaultSigningName:"s3",clientContextParams:t.clientContextParams??{}}),IUe={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},k=h2e(IUe,"AmazonS3","S3Client",L2e),An={Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}},wUe={DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"},CopySource:{type:"contextParams",name:"CopySource"}},PUe={UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},DisableAccessPoints:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}},z={UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}},Pee={DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}},$t={Bucket:{type:"contextParams",name:"Bucket"}},OUe={},$Ue={UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0}},$A={Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}},kUe={UseObjectLambdaEndpoint:{type:"staticContextParams",value:!0}},ce=(t,e,r,n)=>[Ha(r)],Ed=(t,e,r,n)=>[Ha(r),yd(r)],MUe=(t,e,r,n)=>[Ha(r),r2e(r)],Pr=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0})],at=(t,e,r,n)=>[],za=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0}),Ha(r)],LUe=(t,e,r,n)=>[qa(r,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1","SHA512","MD5","XXHASH64","XXHASH3","XXHASH128"]})],NUe=(t,e,r,n)=>[qa(r,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1","SHA512","MD5","XXHASH64","XXHASH3","XXHASH128"]}),yd(r),gee(r)],FUe=(t,e,r,n)=>[Ha(r),yd(r),gee(r)],Oee=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1})],$ee=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),Ha(r)],BUe=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),n2e(r),Ha(r),yd(r)],UUe=(t,e,r,n)=>[yd(r)],GUe=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),Ha(r),yd(r)],rt=class t extends S2e{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.s3#S3ServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},VR=class t extends rt{static shapeId="com.amazonaws.s3#NoSuchUpload";name="NoSuchUpload";$fault="client";constructor(e){super({name:"NoSuchUpload",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},WR=class t extends rt{static shapeId="com.amazonaws.s3#AccessDenied";name="AccessDenied";$fault="client";constructor(e){super({name:"AccessDenied",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},KR=class t extends rt{static shapeId="com.amazonaws.s3#ObjectNotInActiveTierError";name="ObjectNotInActiveTierError";$fault="client";constructor(e){super({name:"ObjectNotInActiveTierError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},QR=class t extends rt{static shapeId="com.amazonaws.s3#BucketAlreadyExists";name="BucketAlreadyExists";$fault="client";constructor(e){super({name:"BucketAlreadyExists",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},YR=class t extends rt{static shapeId="com.amazonaws.s3#BucketAlreadyOwnedByYou";name="BucketAlreadyOwnedByYou";$fault="client";constructor(e){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},JR=class t extends rt{static shapeId="com.amazonaws.s3#NoSuchBucket";name="NoSuchBucket";$fault="client";constructor(e){super({name:"NoSuchBucket",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},XR=class t extends rt{static shapeId="com.amazonaws.s3#NoSuchKey";name="NoSuchKey";$fault="client";constructor(e){super({name:"NoSuchKey",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},ZR=class t extends rt{static shapeId="com.amazonaws.s3#InvalidObjectState";name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(e){super({name:"InvalidObjectState",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.StorageClass=e.StorageClass,this.AccessTier=e.AccessTier}},eC=class t extends rt{static shapeId="com.amazonaws.s3#NoSuchAnnotation";name="NoSuchAnnotation";$fault="client";constructor(e){super({name:"NoSuchAnnotation",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},tC=class t extends rt{static shapeId="com.amazonaws.s3#NotFound";name="NotFound";$fault="client";constructor(e){super({name:"NotFound",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},rC=class t extends rt{static shapeId="com.amazonaws.s3#InvalidPrefix";name="InvalidPrefix";$fault="client";constructor(e){super({name:"InvalidPrefix",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},nC=class t extends rt{static shapeId="com.amazonaws.s3#EncryptionTypeMismatch";name="EncryptionTypeMismatch";$fault="client";constructor(e){super({name:"EncryptionTypeMismatch",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},oC=class t extends rt{static shapeId="com.amazonaws.s3#InvalidRequest";name="InvalidRequest";$fault="client";constructor(e){super({name:"InvalidRequest",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},sC=class t extends rt{static shapeId="com.amazonaws.s3#InvalidWriteOffset";name="InvalidWriteOffset";$fault="client";constructor(e){super({name:"InvalidWriteOffset",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},iC=class t extends rt{static shapeId="com.amazonaws.s3#TooManyParts";name="TooManyParts";$fault="client";constructor(e){super({name:"TooManyParts",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},aC=class t extends rt{static shapeId="com.amazonaws.s3#AnnotationLimitExceeded";name="AnnotationLimitExceeded";$fault="client";constructor(e){super({name:"AnnotationLimitExceeded",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cC=class t extends rt{static shapeId="com.amazonaws.s3#AnnotationNameTooLong";name="AnnotationNameTooLong";$fault="client";constructor(e){super({name:"AnnotationNameTooLong",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},uC=class t extends rt{static shapeId="com.amazonaws.s3#InvalidAnnotationName";name="InvalidAnnotationName";$fault="client";constructor(e){super({name:"InvalidAnnotationName",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lC=class t extends rt{static shapeId="com.amazonaws.s3#UnsupportedMediaType";name="UnsupportedMediaType";$fault="client";constructor(e){super({name:"UnsupportedMediaType",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},dC=class t extends rt{static shapeId="com.amazonaws.s3#IdempotencyParameterMismatch";name="IdempotencyParameterMismatch";$fault="client";constructor(e){super({name:"IdempotencyParameterMismatch",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},pC=class t extends rt{static shapeId="com.amazonaws.s3#ObjectAlreadyInActiveTierError";name="ObjectAlreadyInActiveTierError";$fault="client";constructor(e){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},qUe="Account",HUe="AnalyticsAndOperator",fC="AccelerateConfiguration",kA="AccessControlList",_d="ACL",kee="AnalyticsConfigurationList",ru="AccessControlPolicy",Mee="AccessControlTranslation",Xm="AnalyticsConfiguration",jUe="AnnotationCount",zUe="AccessDenied",Lee="AbortDate",VUe="AnnotationDirective",Nee="AnnotationEntry",WUe="AnalyticsExportDestination",KUe="AnalyticsFilter",QUe="AllowedHeaders",YUe="AllowedHeader",JUe="AccountId",Fee="AbortIncompleteMultipartUpload",see="AccessKeyId",XUe="AnnotationList",ZUe="AnnotationLimitExceeded",eGe="AllowedMethods",tGe="AbortMultipartUpload",rGe="AbortMultipartUploadOutput",nGe="AbortMultipartUploadRequest",oGe="AllowedMethod",ug="AnnotationName",sGe="AnnotationNameTooLong",iGe="AllowedOrigins",aGe="AllowedOrigin",Bee="AnnotationPayload",cGe="AccessPointAlias",Uee="AccessPointArn",Gee="AnnotationPrefix",uGe="AllowQuotedRecordDelimiter",mL="AcceptRanges",qee="AbortRuleId",mC="AbacStatus",lGe="AnalyticsS3BucketDestination",dGe="ApplyServerSideEncryptionByDefault",pGe="ArchiveStatus",Hee="AccessTier",gC="AnnotationTableConfiguration",jee="AnnotationTableConfigurationResult",fGe="AnnotationTableConfigurationUpdates",lg="And",mGe="Annotations",w="Bucket",gL="BucketArn",gGe="BucketAlreadyExists",hGe="BucketAccountId",SGe="BucketAlreadyOwnedByYou",zee="BlockedEncryptionTypes",hL="BypassGovernanceRetention",yGe="BucketInfo",zr="BucketKeyEnabled",EGe="BucketLifecycleConfiguration",_Ge="BucketLocationName",hC="BucketLoggingStatus",RGe="BucketLocationType",CGe="BucketNamespace",bGe="BucketName",Vee="BytesProcessed",iee="BlockPublicAcls",aee="BlockPublicPolicy",SL="BucketRegion",Wee="BytesReturned",Kee="BytesScanned",dg="Body",yL="Buckets",Qee="Checksum",ge="ChecksumAlgorithm",AGe="CannedACL",xGe="CreateBucket",nL="CreateBucketConfiguration",TGe="CreateBucketMetadataConfiguration",vGe="CreateBucketMetadataConfigurationRequest",DGe="CreateBucketMetadataTableConfiguration",IGe="CreateBucketMetadataTableConfigurationRequest",wGe="CreateBucketOutput",PGe="CreateBucketRequest",Rd="CacheControl",ur="ChecksumCRC32",lr="ChecksumCRC32C",dr="ChecksumCRC64NVME",pg="Cache-Control",OGe="CreationDate",fg="Content-Disposition",Cd="ContentDisposition",$Ge="ContinuationEvent",mg="Content-Encoding",bd="ContentEncoding",kGe="CloudFunction",MGe="CloudFunctionConfiguration",Ad="ContentLanguage",gg="Content-Language",xd="Content-Length",Td="ContentLength",Qe="Content-MD5",pr="ChecksumMD5",Ye="ContentMD5",LGe="CompletedMultipartUpload",NGe="CompleteMultipartUploadOutput",FGe="CreateMultipartUploadOutput",BGe="CompleteMultipartUploadResult",UGe="CompleteMultipartUploadRequest",GGe="CreateMultipartUploadRequest",Yee="CompleteMultipartUpload",qGe="CreateMultipartUpload",EL="ChecksumMode",HGe="CopyObject",jGe="CopyObjectOutput",Jee="CopyObjectResult",SC="CORSConfiguration",_L="CORSRules",RL="CORSRule",zGe="CopyObjectRequest",VGe="CommonPrefix",WGe="CommonPrefixList",KGe="CompletedPartList",Xee="CopyPartResult",QGe="CompletedPart",MA="CommonPrefixes",CL="ContentRange",YGe="ConfirmRemoveSelfBucketAccess",Zee="Content-Range",vd="ConfigurationState",fr="ChecksumSHA1",mr="ChecksumSHA256",gr="ChecksumSHA512",ete="CopySourceIfMatch",tte="CopySourceIfModifiedSince",rte="CopySourceIfNoneMatch",nte="CopySourceIfUnmodifiedSince",JGe="CreateSessionOutput",XGe="CreateSessionResult",ZGe="CopySourceRange",e4e="CreateSessionRequest",ote="CopySourceSSECustomerAlgorithm",bL="CopySourceSSECustomerKey",ste="CopySourceSSECustomerKeyMD5",ite="CSV",ate="CopySourceVersionId",t4e="CSVInput",r4e="CSVOutput",cte="CopySource",n4e="CreateSession",cn="ChecksumType",hg="Content-Type",o4e="ClientToken",Dd="ContentType",s4e="CompressionType",Vr="ContinuationToken",hr="ChecksumXXHASH64",Sr="ChecksumXXHASH3",yr="ChecksumXXHASH128",ute="Condition",i4e="Code",a4e="Comments",lte="Contents",c4e="Cont",cee="Credentials",nu="Days",u4e="DaysAfterInitiation",l4e="DeleteBucket",d4e="DeleteBucketAnalyticsConfiguration",p4e="DeleteBucketAnalyticsConfigurationRequest",f4e="DeleteBucketCors",m4e="DeleteBucketCorsRequest",g4e="DeleteBucketEncryption",h4e="DeleteBucketEncryptionRequest",S4e="DeleteBucketInventoryConfiguration",y4e="DeleteBucketInventoryConfigurationRequest",E4e="DeleteBucketIntelligentTieringConfiguration",_4e="DeleteBucketIntelligentTieringConfigurationRequest",R4e="DeleteBucketLifecycle",C4e="DeleteBucketLifecycleRequest",b4e="DeleteBucketMetadataConfiguration",A4e="DeleteBucketMetadataConfigurationRequest",x4e="DeleteBucketMetricsConfigurationRequest",T4e="DeleteBucketMetricsConfiguration",v4e="DeleteBucketMetadataTableConfiguration",D4e="DeleteBucketMetadataTableConfigurationRequest",I4e="DeleteBucketOwnershipControls",w4e="DeleteBucketOwnershipControlsRequest",P4e="DeleteBucketPolicy",O4e="DeleteBucketPolicyRequest",$4e="DeleteBucketRequest",k4e="DeleteBucketReplicationRequest",M4e="DeleteBucketReplication",L4e="DeleteBucketTagging",N4e="DeleteBucketTaggingRequest",F4e="DeleteBucketWebsite",B4e="DeleteBucketWebsiteRequest",U4e="DataExport",G4e="DefaultEventHold",q4e="DestinationIfMatch",H4e="DestinationIfModifiedSince",j4e="DestinationIfNoneMatch",z4e="DestinationIfUnmodifiedSince",ou="DeleteMarker",V4e="DeleteMarkerEntry",dte="DeleteMarkerReplication",W4e="DeleteMarkerVersionId",pte="DeleteMarkers",AL="DisplayName",K4e="DeletedObject",Q4e="DeleteObjectAnnotation",Y4e="DeleteObjectAnnotationOutput",J4e="DeleteObjectAnnotationRequest",X4e="DeleteObjectOutput",Z4e="DeleteObjectsOutput",eqe="DeleteObjectRequest",tqe="DeleteObjectsRequest",rqe="DeleteObjectTagging",nqe="DeleteObjectTaggingOutput",oqe="DeleteObjectTaggingRequest",sqe="DeletedObjects",iqe="DeleteObject",aqe="DeleteObjects",cqe="DeletePublicAccessBlock",uqe="DeletePublicAccessBlockRequest",lqe="DataRedundancy",fte="DefaultRetention",dqe="DeleteResult",mte="DestinationResult",gte="Date",oL="Delete",pqe="Deleted",Va="Delimiter",LA="Destination",fqe="Description",hte="Details",Id="Error",mqe="EmailAddress",Ste="EventBridgeConfiguration",L="ExpectedBucketOwner",su="EncryptionConfiguration",yte="ErrorCode",gqe="ErrorDetails",xL="ErrorDocument",hqe="EndEvent",Sqe="ExposeHeaders",Ete="EventHoldDuration",yqe="EventHold",Eqe="ExposeHeader",_te="ErrorMessage",_qe="ExpiredObjectDeleteMarker",Rte="ExistingObjectReplication",yC="ExpiresString",Cte="ExpectedSourceBucketOwner",lt="ETag",Rqe="EncryptionTypeList",Cqe="EncryptionTypeMismatch",TL="EncryptionType",Wa="EncodingType",bqe="EventThreshold",bte="ExpressionType",vL="Encryption",Aqe="Enabled",Ate="End",xte="Errors",DL="Events",IL="Event",ti="Expiration",Xo="Expires",Tte="Expression",qi="Filter",vte="FieldDelimiter",xqe="FileHeaderInfo",Tqe="FetchOwner",Dte="FilterRule",vqe="FilterRuleList",Dqe="FilterRules",Iqe="Field",Ite="Format",wqe="Frequency",NA="Grants",Pqe="GetBucketAbac",Oqe="GetBucketAccelerateConfiguration",$qe="GetBucketAccelerateConfigurationOutput",kqe="GetBucketAnalyticsConfigurationOutput",Mqe="GetBucketAccelerateConfigurationRequest",Lqe="GetBucketAnalyticsConfigurationRequest",Nqe="GetBucketAnalyticsConfiguration",Fqe="GetBucketAbacOutput",Bqe="GetBucketAclOutput",Uqe="GetBucketAbacRequest",Gqe="GetBucketAclRequest",qqe="GetBucketAcl",Hqe="GetBucketCors",jqe="GetBucketCorsOutput",zqe="GetBucketCorsRequest",Vqe="GetBucketEncryption",Wqe="GetBucketEncryptionOutput",Kqe="GetBucketEncryptionRequest",Qqe="GetBucketInventoryConfiguration",Yqe="GetBucketInventoryConfigurationOutput",Jqe="GetBucketInventoryConfigurationRequest",Xqe="GetBucketIntelligentTieringConfiguration",Zqe="GetBucketIntelligentTieringConfigurationOutput",eHe="GetBucketIntelligentTieringConfigurationRequest",tHe="GetBucketLocation",rHe="GetBucketLifecycleConfiguration",nHe="GetBucketLifecycleConfigurationOutput",oHe="GetBucketLifecycleConfigurationRequest",sHe="GetBucketLocationOutput",iHe="GetBucketLoggingOutput",aHe="GetBucketLocationRequest",cHe="GetBucketLoggingRequest",uHe="GetBucketLogging",lHe="GetBucketMetadataConfiguration",dHe="GetBucketMetadataConfigurationOutput",pHe="GetBucketMetricsConfigurationOutput",wte="GetBucketMetadataConfigurationResult",fHe="GetBucketMetadataConfigurationRequest",mHe="GetBucketMetricsConfigurationRequest",gHe="GetBucketMetricsConfiguration",hHe="GetBucketMetadataTableConfiguration",SHe="GetBucketMetadataTableConfigurationOutput",Pte="GetBucketMetadataTableConfigurationResult",yHe="GetBucketMetadataTableConfigurationRequest",EHe="GetBucketNotificationConfiguration",_He="GetBucketNotificationConfigurationRequest",RHe="GetBucketOwnershipControls",CHe="GetBucketOwnershipControlsOutput",bHe="GetBucketOwnershipControlsRequest",AHe="GetBucketPolicy",xHe="GetBucketPolicyOutput",THe="GetBucketPolicyRequest",vHe="GetBucketPolicyStatus",DHe="GetBucketPolicyStatusOutput",IHe="GetBucketPolicyStatusRequest",wHe="GetBucketReplication",PHe="GetBucketReplicationOutput",OHe="GetBucketRequestPayment",$He="GetBucketRequestPaymentOutput",kHe="GetBucketRequestPaymentRequest",MHe="GetBucketReplicationRequest",LHe="GetBucketTagging",NHe="GetBucketTaggingOutput",FHe="GetBucketTaggingRequest",BHe="GetBucketVersioning",UHe="GetBucketVersioningOutput",GHe="GetBucketVersioningRequest",qHe="GetBucketWebsite",HHe="GetBucketWebsiteOutput",jHe="GetBucketWebsiteRequest",wd="GrantFullControl",Ote="GlacierJobParameters",zHe="GetObject",VHe="GetObjectAcl",WHe="GetObjectAclOutput",KHe="GetObjectAnnotationOutput",QHe="GetObjectAttributesOutput",YHe="GetObjectAttributesParts",JHe="GetObjectAclRequest",XHe="GetObjectAnnotationRequest",ZHe="GetObjectAttributesResponse",eje="GetObjectAttributesRequest",tje="GetObjectAnnotation",rje="GetObjectAttributes",nje="GetObjectLockConfiguration",oje="GetObjectLockConfigurationOutput",sje="GetObjectLockConfigurationRequest",ije="GetObjectLegalHold",aje="GetObjectLegalHoldOutput",cje="GetObjectLegalHoldRequest",uje="GetObjectOutput",lje="GetObjectRequest",dje="GetObjectRetentionOutput",pje="GetObjectRetentionRequest",fje="GetObjectRetention",mje="GetObjectTagging",gje="GetObjectTaggingOutput",hje="GetObjectTorrentOutput",Sje="GetObjectTaggingRequest",yje="GetObjectTorrentRequest",Eje="GetObjectTorrent",_je="GetPublicAccessBlock",Rje="GetPublicAccessBlockOutput",Cje="GetPublicAccessBlockRequest",Pd="GrantRead",Od="GrantReadACP",wL="GrantWrite",$d="GrantWriteACP",PL="Grant",OL="Grantee",bje="HeadBucket",Aje="HeadBucketOutput",xje="HeadBucketRequest",Tje="HttpErrorCodeReturnedEquals",$te="HostName",vje="HeadObject",Dje="HeadObjectOutput",Ije="HeadObjectRequest",wje="HttpRedirectCode",Wt="Id",Pje="InvalidAnnotationName",Zm="InventoryConfiguration",kte="InventoryConfigurationList",kd="ID",$L="IndexDocument",Oje="InventoryDestination",$je="IsEnabled",kje="InventoryEncryption",Mje="InventoryFilter",Mte="IsLatest",Md="IfMatch",Lje="IfMatchInitiatedTime",Nje="IfMatchLastModifiedTime",Fje="IfMatchSize",kL="If-Modified-Since",Lte="IfModifiedSince",Bje="InitiateMultipartUploadResult",iu="If-Match",Sg="IfNoneMatch",Ld="If-None-Match",Uje="InventoryOptionalFields",Gje="InvalidObjectState",qje="IncludedObjectVersions",Hje="InvalidPrefix",uee="IgnorePublicAcls",jje="IdempotencyParameterMismatch",lee="IsPublic",zje="InvalidRequest",Vje="IsRestoreInProgress",ML="InputSerialization",Wje="InventoryS3BucketDestination",Kje="InventorySchedule",ni="IsTruncated",Qje="IntelligentTieringAndOperator",eg="IntelligentTieringConfiguration",Nte="IntelligentTieringConfigurationList",Fte="InventoryTableConfigurationResult",Yje="InventoryTableConfigurationUpdates",EC="InventoryTableConfiguration",Jje="IntelligentTieringFilter",Bte="IfUnmodifiedSince",LL="If-Unmodified-Since",Xje="InvalidWriteOffset",NL="Initiator",Zje="Initiated",Ute="JSON",e6e="JSONInput",t6e="JSONOutput",_C="JournalTableConfiguration",Gte="JournalTableConfigurationResult",r6e="JournalTableConfigurationUpdates",le="Key",n6e="KeyCount",o6e="KeyId",s6e="KmsKeyArn",FA="KeyMarker",i6e="KMSContext",a6e="KMSKeyArn",c6e="KMSKeyId",u6e="KMSMasterKeyID",l6e="KeyPrefixEquals",RC="Location",d6e="ListAllMyBucketsResult",p6e="ListAllMyDirectoryBucketsResult",f6e="ListBuckets",m6e="ListBucketAnalyticsConfigurations",g6e="ListBucketAnalyticsConfigurationsOutput",h6e="ListBucketAnalyticsConfigurationResult",S6e="ListBucketAnalyticsConfigurationsRequest",y6e="ListBucketInventoryConfigurations",E6e="ListBucketInventoryConfigurationsOutput",_6e="ListBucketInventoryConfigurationsRequest",R6e="ListBucketIntelligentTieringConfigurations",C6e="ListBucketIntelligentTieringConfigurationsOutput",b6e="ListBucketIntelligentTieringConfigurationsRequest",A6e="ListBucketMetricsConfigurations",x6e="ListBucketMetricsConfigurationsOutput",T6e="ListBucketMetricsConfigurationsRequest",v6e="ListBucketsOutput",D6e="ListBucketsRequest",qte="ListBucketResult",sL="LocationConstraint",iL="LifecycleConfiguration",I6e="ListDirectoryBuckets",w6e="ListDirectoryBucketsOutput",P6e="ListDirectoryBucketsRequest",FL="LoggingEnabled",O6e="LifecycleExpiration",$6e="LambdaFunctionArn",k6e="LambdaFunctionConfiguration",M6e="LambdaFunctionConfigurationList",L6e="LambdaFunctionConfigurations",CC="LegalHold",N6e="LocationInfo",F6e="ListInventoryConfigurationsResult",co="LastModified",B6e="ListMetricsConfigurationsResult",U6e="LastModifiedTime",G6e="ListMultipartUploads",q6e="ListMultipartUploadsOutput",H6e="ListMultipartUploadsResult",j6e="ListMultipartUploadsRequest",BA="Last-Modified",z6e="ListObjects",V6e="ListObjectAnnotations",W6e="ListObjectAnnotationsOutput",K6e="ListObjectAnnotationsRequest",Q6e="ListObjectsOutput",Y6e="ListObjectsRequest",J6e="ListObjectsV2",X6e="ListObjectsV2Output",Z6e="ListObjectVersionsOutput",e5e="ListObjectsV2Request",t5e="ListObjectVersionsRequest",r5e="ListObjectVersions",n5e="ListParts",o5e="ListPartsOutput",s5e="ListPartsResult",i5e="ListPartsRequest",a5e="LifecycleRule",c5e="LifecycleRuleAndOperator",u5e="LifecycleRuleFilter",l5e="LifecycleRules",d5e="ListVersionsResult",Nd="Metadata",p5e="MetricsAndOperator",Hte="MaxAnnotationResults",f5e="MaxAgeSeconds",m5e="MaxBuckets",aL="MetadataConfiguration",jte="MetricsConfigurationList",zte="MetadataConfigurationResult",tg="MetricsConfiguration",g5e="MetadataDirective",h5e="MaxDirectoryBuckets",Vte="MfaDelete",Wte="MetadataEntry",S5e="MetricsFilter",BL="MFA",Kte="MFADelete",Fd="MaxKeys",UL="MissingMeta",y5e="MpuObjectSize",UA="MaxParts",cL="MetadataTableConfiguration",Qte="MetadataTableConfigurationResult",E5e="MetadataTableEncryptionConfiguration",Yte="MultipartUpload",_5e="MultipartUploadList",Jte="MaxUploads",Xte="Marker",Zte="Metrics",R5e="Message",C5e="Minutes",ere="Mode",au="Name",uL="NotificationConfiguration",b5e="NotificationConfigurationFilter",Bd="NextContinuationToken",tre="NoncurrentDays",A5e="NonEmptyKmsKeyArnString",x5e="NotFound",rre="NextKeyMarker",T5e="NextMarker",nre="NewerNoncurrentVersions",ore="NextPartNumberMarker",v5e="NoSuchAnnotation",D5e="NoSuchBucket",I5e="NoSuchKey",w5e="NoSuchUpload",P5e="NextUploadIdMarker",sre="NoncurrentVersionExpiration",O5e="NextVersionIdMarker",$5e="NoncurrentVersionTransitions",k5e="NoncurrentVersionTransitionList",ire="NoncurrentVersionTransition",es="Owner",M5e="ObjectAttributes",L5e="ObjectAlreadyInActiveTierError",bC="OwnershipControls",N5e="OwnershipControlsRule",F5e="OwnershipControlsRules",are="ObjectEncryption",B5e="OptionalFields",U5e="ObjectIdentifier",G5e="ObjectIdentifierList",cre="ObjectIfMatch",ure="OutputLocation",AC="ObjectLockConfiguration",q5e="ObjectLockEnabled",H5e="ObjectLockEnabledForBucket",yg="ObjectLockEventHold",Eg="ObjectLockEventHoldDurationDays",_g="ObjectLockEventHoldDurationYears",j5e="ObjectLockLegalHold",Ud="ObjectLockLegalHoldStatus",Gd="ObjectLockMode",z5e="ObjectLockRetention",qd="ObjectLockRetainUntilDate",V5e="ObjectLockRule",W5e="ObjectList",K5e="ObjectNotInActiveTierError",lre="ObjectOwnership",GL="OptionalObjectAttributes",Q5e="ObjectParts",Y5e="ObjectPart",J5e="ObjectSize",dre="ObjectSizeGreaterThan",pre="ObjectSizeLessThan",X5e="OutputSchemaVersion",qL="OutputSerialization",Z5e="ObjectVersion",GA="ObjectVersionId",eze="ObjectVersionList",tze="Objects",fre="Object",Je="Prefix",xC="PublicAccessBlockConfiguration",rze="PutBucketAbac",nze="PutBucketAccelerateConfiguration",oze="PutBucketAccelerateConfigurationRequest",sze="PutBucketAnalyticsConfigurationRequest",ize="PutBucketAnalyticsConfiguration",aze="PutBucketAbacRequest",cze="PutBucketAclRequest",uze="PutBucketAcl",lze="PutBucketCors",dze="PutBucketCorsRequest",pze="PutBucketEncryption",fze="PutBucketEncryptionRequest",mze="PutBucketInventoryConfiguration",gze="PutBucketInventoryConfigurationRequest",hze="PutBucketIntelligentTieringConfiguration",Sze="PutBucketIntelligentTieringConfigurationRequest",yze="PutBucketLogging",Eze="PutBucketLifecycleConfiguration",_ze="PutBucketLifecycleConfigurationOutput",Rze="PutBucketLifecycleConfigurationRequest",Cze="PutBucketLoggingRequest",bze="PutBucketMetricsConfiguration",Aze="PutBucketMetricsConfigurationRequest",xze="PutBucketNotificationConfiguration",Tze="PutBucketNotificationConfigurationRequest",vze="PutBucketOwnershipControls",Dze="PutBucketOwnershipControlsRequest",Ize="PutBucketPolicy",wze="PutBucketPolicyRequest",Pze="PutBucketReplication",Oze="PutBucketRequestPayment",$ze="PutBucketRequestPaymentRequest",kze="PutBucketReplicationRequest",Mze="PutBucketTagging",Lze="PutBucketTaggingRequest",Nze="PutBucketVersioning",Fze="PutBucketVersioningRequest",Bze="PutBucketWebsite",Uze="PutBucketWebsiteRequest",qA="PartsCount",Gze="PartitionDateSource",qze="ProgressEvent",Hze="ParquetInput",jze="PartsList",cu="PartNumber",HA="PartNumberMarker",zze="PutObject",Vze="PutObjectAcl",Wze="PutObjectAclOutput",Kze="PutObjectAnnotationOutput",Qze="PutObjectAclRequest",Yze="PutObjectAnnotationRequest",Jze="PutObjectAnnotation",Xze="PutObjectLockConfiguration",Zze="PutObjectLockConfigurationOutput",eVe="PutObjectLockConfigurationRequest",tVe="PutObjectLegalHold",rVe="PutObjectLegalHoldOutput",nVe="PutObjectLegalHoldRequest",oVe="PutObjectOutput",sVe="PutObjectRequest",iVe="PutObjectRetentionOutput",aVe="PutObjectRetentionRequest",cVe="PutObjectRetention",uVe="PutObjectTagging",lVe="PutObjectTaggingOutput",dVe="PutObjectTaggingRequest",TC="PartitionedPrefix",pVe="PutPublicAccessBlock",fVe="PutPublicAccessBlockRequest",mre="PolicyStatus",jA="Parts",zA="Part",mVe="Parquet",gre="Payer",hre="Payload",Sre="Permission",yre="Policy",Ere="Progress",gVe="Priority",_re="Protocol",hVe="Quiet",SVe="QueueArn",Rre="QuoteCharacter",yVe="QueueConfigurationList",EVe="QueueConfigurations",Cre="QueueConfiguration",bre="QuoteEscapeCharacter",_Ve="QuoteFields",RVe="Queue",VA="Role",HL="RedirectAllRequestsTo",$e="RequestCharged",Are="ResponseCacheControl",xre="ResponseContentDisposition",Tre="ResponseContentEncoding",vre="ResponseContentLanguage",Dre="ResponseContentType",vC="ReplicationConfiguration",jL="RecordDelimiter",Ire="ResponseExpires",CVe="RestoreExpiryDate",WA="RecordExpiration",bVe="RecordsEvent",AVe="ReplicaKmsKeyID",xVe="ReplaceKeyPrefixWith",TVe="ReplaceKeyWith",wre="ReplicaModifications",vVe="RenameObject",DVe="RenameObjectOutput",IVe="RestoreObjectOutput",wVe="RestoreOutputPath",PVe="RenameObjectRequest",OVe="RestoreObjectRequest",$Ve="RestoreObject",xe="RequestPayer",dee="RestrictPublicBuckets",DC="RequestPaymentConfiguration",Pre="RequestProgress",zL="RoutingRules",kVe="ReplicationRuleAndOperator",MVe="ReplicationRuleFilter",LVe="ReplicationRule",NVe="ReplicationRules",FVe="RequestRoute",lL="RestoreRequest",Ore="RoutingRule",Rg="ReplicationStatus",VL="RestoreStatus",BVe="RenameSource",$re="ReplicationTime",UVe="ReplicationTimeValue",GVe="RequestToken",qVe="RetainUntilDate",IC="Range",WL="Restore",HVe="Records",kre="Redirect",wC="Retention",Cg="Rules",Hd="Rule",Wr="Status",Mre="StartAfter",pee="SecretAccessKey",jVe="SseAlgorithm",zVe="StreamingBlob",Lre="S3BucketDestination",Kr="StorageClass",Nre="StorageClassAnalysis",VVe="StorageClassAnalysisDataExport",WVe="SessionCredentialValue",KVe="SessionCredentials",QVe="StatusCode",YVe="SkipDestinationValidation",JVe="StatsEvent",XVe="SourceIfMatch",ZVe="SourceIfModifiedSince",eWe="SourceIfNoneMatch",tWe="SourceIfUnmodifiedSince",KA="SSE-KMS",Fre="SseKmsEncryptedObjects",rWe="S3KeyFilter",nWe="S3Key",oWe="S3Location",sWe="SessionMode",iWe="SelectObjectContent",aWe="SelectObjectContentEventStream",cWe="SelectObjectContentOutput",uWe="SelectObjectContentRequest",Bre="SelectParameters",PC="SimplePrefix",Ure="ScanRange",Gre="SSE-S3",qre="SourceSelectionCriteria",Qr="ServerSideEncryption",lWe="SSEAlgorithm",dWe="ServerSideEncryptionByDefault",OC="ServerSideEncryptionConfiguration",Kt="SSECustomerAlgorithm",uo="SSECustomerKey",Qt="SSECustomerKeyMD5",KL="SSEKMS",pWe="SSEKMSEncryption",Hi="SSEKMSEncryptionContext",un="SSEKMSKeyId",fWe="ServerSideEncryptionRule",mWe="ServerSideEncryptionRules",Hre="SSES3",fee="SessionToken",jre="S3TablesDestination",zre="S3TablesDestinationResult",gWe="S3",hWe="Schedule",uu="Size",SWe="Start",Vre="Stats",yWe="Suffix",jd="Tags",QA="TableArn",EWe="TopicArn",_We="TargetBucket",QL="TableBucketArn",RWe="TableBucketType",YL="TagCount",CWe="TopicConfigurationList",bWe="TopicConfigurations",Wre="TopicConfiguration",AWe="TaggingDirective",JL="TransitionDefaultMinimumObjectSize",Kre="TargetGrants",xWe="TargetGrant",TWe="TieringList",vWe="TransitionList",DWe="TooManyParts",bg="TableName",Qre="TableNamespace",Yre="TargetObjectKeyFormat",IWe="TargetPrefix",wWe="TotalPartsCount",XL="TableStatus",YA="TagSet",lo="Tag",Zo="Tagging",Jre="Tier",PWe="Tierings",Xre="Tiering",OWe="Time",Zre="Token",$We="Topic",kWe="Transitions",ene="Transition",Ag="Type",MWe="Uploads",LWe="UpdateBucketMetadataAnnotationTableConfiguration",NWe="UpdateBucketMetadataAnnotationTableConfigurationRequest",FWe="UpdateBucketMetadataInventoryTableConfiguration",BWe="UpdateBucketMetadataInventoryTableConfigurationRequest",UWe="UpdateBucketMetadataJournalTableConfiguration",GWe="UpdateBucketMetadataJournalTableConfigurationRequest",Ka="UploadId",tne="UploadIdMarker",rne="UserMetadata",qWe="UnsupportedMediaType",HWe="UpdateObjectEncryption",jWe="UpdateObjectEncryptionRequest",zWe="UpdateObjectEncryptionResponse",VWe="UploadPart",WWe="UploadPartCopy",KWe="UploadPartCopyOutput",QWe="UploadPartCopyRequest",YWe="UploadPartOutput",JWe="UploadPartRequest",XWe="URI",ZWe="Upload",ZL="Value",$C="VersioningConfiguration",Re="VersionId",nne="VersionIdMarker",e8e="Versions",t8e="Version",kC="WebsiteConfiguration",r8e="WriteGetObjectResponse",n8e="WriteGetObjectResponseRequest",o8e="WriteOffsetBytes",xg="WebsiteRedirectLocation",one="Years",eN="annotationName",s8e="annotation-prefix",sne="accept-ranges",i8e="bucket-region",Dt="client",Qa="continuation-token",JA="delimiter",It="error",tN="eventPayload",a8e="endpoint",XA="encoding-type",c8e="fetch-owner",M="http",ve="httpChecksum",kt="httpError",l="httpHeader",u8e="hostLabel",Ce="httpPayload",zd="httpPrefixHeaders",U="httpQuery",ine="http://www.w3.org/2001/XMLSchema-instance",po="id",l8e="idempotencyToken",ane="key-marker",d8e="marker",p8e="max-annotation-results",f8e="max-buckets",m8e="max-directory-buckets",rN="max-keys",g8e="max-parts",h8e="max-uploads",Tg="prefix",ZA="partNumber",S8e="part-number-marker",cne="response-cache-control",une="response-content-disposition",lne="response-content-encoding",dne="response-content-language",pne="response-content-type",fne="response-expires",mne="smithy.ts.sdk.synthetic.com.amazonaws.s3",y8e="start-after",gne="streaming",vg="uploadId",E8e="upload-id-marker",Yt="versionId",_8e="version-id-marker",hne="xsi",R8e="xmlAttribute",ne="xmlFlattened",v="xmlName",Sne="xmlNamespace",Vd="x-amz-acl",yne="x-amz-abort-date",C8e="x-amz-access-point-alias",Ene="x-amz-abort-rule-id",b8e="x-amz-archive-status",_ne="x-amz-bucket-arn",nN="x-amz-bypass-governance-retention",A8e="x-amz-bucket-location-name",x8e="x-amz-bucket-location-type",T8e="x-amz-bucket-namespace",v8e="x-amz-bucket-object-lock-enabled",Rne="x-amz-bucket-object-lock-token",D8e="x-amz-bucket-region",oN="x-amz-checksum-algorithm",oi="x-amz-checksum-crc32",si="x-amz-checksum-crc32c",ii="x-amz-checksum-crc64nvme",ai="x-amz-checksum-md5",sN="x-amz-checksum-mode",I8e="x-amz-confirm-remove-self-bucket-access",ci="x-amz-checksum-sha1",ui="x-amz-checksum-sha256",li="x-amz-checksum-sha512",Cne="x-amz-copy-source",bne="x-amz-copy-source-if-match",Ane="x-amz-copy-source-if-modified-since",xne="x-amz-copy-source-if-none-match",Tne="x-amz-copy-source-if-unmodified-since",w8e="x-amz-create-session-mode",P8e="x-amz-copy-source-range",vne="x-amz-copy-source-server-side-encryption-customer-algorithm",Dne="x-amz-copy-source-server-side-encryption-customer-key",Ine="x-amz-copy-source-server-side-encryption-customer-key-MD5",wne="x-amz-copy-source-version-id",Ya="x-amz-checksum-type",O8e="x-amz-client-token",di="x-amz-checksum-xxhash64",pi="x-amz-checksum-xxhash3",fi="x-amz-checksum-xxhash128",ex="x-amz-delete-marker",Dg="x-amz-expiration",N="x-amz-expected-bucket-owner",$8e="x-amz-fwd-error-code",k8e="x-amz-fwd-error-message",M8e="x-amz-fwd-header-Cache-Control",L8e="x-amz-fwd-header-Content-Disposition",N8e="x-amz-fwd-header-Content-Encoding",F8e="x-amz-fwd-header-Content-Language",B8e="x-amz-fwd-header-Content-Range",U8e="x-amz-fwd-header-Content-Type",G8e="x-amz-fwd-header-ETag",q8e="x-amz-fwd-header-Expires",H8e="x-amz-fwd-header-Last-Modified",j8e="x-amz-fwd-header-accept-ranges",z8e="x-amz-fwd-header-x-amz-checksum-crc32",V8e="x-amz-fwd-header-x-amz-checksum-crc32c",W8e="x-amz-fwd-header-x-amz-checksum-crc64nvme",K8e="x-amz-fwd-header-x-amz-checksum-md5",Q8e="x-amz-fwd-header-x-amz-checksum-sha1",Y8e="x-amz-fwd-header-x-amz-checksum-sha256",J8e="x-amz-fwd-header-x-amz-checksum-sha512",X8e="x-amz-fwd-header-x-amz-checksum-xxhash64",Z8e="x-amz-fwd-header-x-amz-checksum-xxhash3",e9e="x-amz-fwd-header-x-amz-checksum-xxhash128",t9e="x-amz-fwd-header-x-amz-delete-marker",r9e="x-amz-fwd-header-x-amz-expiration",n9e="x-amz-fwd-header-x-amz-missing-meta",o9e="x-amz-fwd-header-x-amz-mp-parts-count",s9e="x-amz-fwd-header-x-amz-object-lock-legal-hold",i9e="x-amz-fwd-header-x-amz-object-lock-mode",a9e="x-amz-fwd-header-x-amz-object-lock-retain-until-date",c9e="x-amz-fwd-header-x-amz-restore",u9e="x-amz-fwd-header-x-amz-request-charged",l9e="x-amz-fwd-header-x-amz-replication-status",d9e="x-amz-fwd-header-x-amz-storage-class",p9e="x-amz-fwd-header-x-amz-server-side-encryption",f9e="x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id",m9e="x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled",g9e="x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm",h9e="x-amz-fwd-header-x-amz-server-side-encryption-customer-key-MD5",S9e="x-amz-fwd-header-x-amz-tagging-count",y9e="x-amz-fwd-header-x-amz-version-id",E9e="x-amz-fwd-status",Wd="x-amz-grant-full-control",Kd="x-amz-grant-read",Qd="x-amz-grant-read-acp",iN="x-amz-grant-write",Yd="x-amz-grant-write-acp",_9e="x-amz-if-match-initiated-time",R9e="x-amz-if-match-last-modified-time",C9e="x-amz-if-match-size",Jd="x-amz-meta-",aN="x-amz-mfa",b9e="x-amz-metadata-directive",Pne="x-amz-missing-meta",A9e="x-amz-mp-object-size",x9e="x-amz-max-parts",One="x-amz-mp-parts-count",T9e="x-amz-object-attributes",v9e="x-amz-object-annotation-directive",$ne="x-amz-object-if-match",Ig="x-amz-object-lock-event-hold",wg="x-amz-object-lock-event-hold-duration-days",Pg="x-amz-object-lock-event-hold-duration-years",Og="x-amz-object-lock-legal-hold",$g="x-amz-object-lock-mode",kg="x-amz-object-lock-retain-until-date",D9e="x-amz-object-ownership",cN="x-amz-optional-object-attributes",I9e="x-amz-object-size",tx="x-amz-object-version-id",w9e="x-amz-part-number-marker",kne="x-amz-restore",Ne="x-amz-request-charged",P9e="x-amz-restore-output-path",Te="x-amz-request-payer",O9e="x-amz-request-route",uN="x-amz-replication-status",$9e="x-amz-rename-source",k9e="x-amz-rename-source-if-match",M9e="x-amz-rename-source-if-modified-since",L9e="x-amz-rename-source-if-none-match",N9e="x-amz-rename-source-if-unmodified-since",F9e="x-amz-request-token",Mg="x-amz-storage-class",ke="x-amz-sdk-checksum-algorithm",B9e="x-amz-skip-destination-validation",Mne="x-amz-source-expected-bucket-owner",ln="x-amz-server-side-encryption",Un="x-amz-server-side-encryption-aws-kms-key-id",Gn="x-amz-server-side-encryption-bucket-key-enabled",Ja="x-amz-server-side-encryption-context",Er="x-amz-server-side-encryption-customer-algorithm",ts="x-amz-server-side-encryption-customer-key",_r="x-amz-server-side-encryption-customer-key-MD5",lN="x-amz-tagging",Lne="x-amz-tagging-count",U9e="x-amz-tagging-directive",dN="x-amz-transition-default-minimum-object-size",mi="x-amz-version-id",G9e="x-amz-write-offset-bytes",Lg="x-amz-website-redirect-location",q9e="xsi:type",h="com.amazonaws.s3",Nne=new Eee(mne),Fne=[-3,mne,"S3ServiceException",0,[],[]];Nne.registerError(Fne,rt);var Et=new Eee(h),Bne=[-3,h,zUe,{[It]:Dt,[kt]:403},[],[]];Et.registerError(Bne,WR);var Une=[-3,h,ZUe,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Une,aC);var Gne=[-3,h,sGe,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Gne,cC);var qne=[-3,h,gGe,{[It]:Dt,[kt]:409},[],[]];Et.registerError(qne,QR);var Hne=[-3,h,SGe,{[It]:Dt,[kt]:409},[],[]];Et.registerError(Hne,YR);var jne=[-3,h,Cqe,{[It]:Dt,[kt]:400},[],[]];Et.registerError(jne,nC);var zne=[-3,h,jje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(zne,dC);var Vne=[-3,h,Pje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Vne,uC);var Wne=[-3,h,Gje,{[It]:Dt,[kt]:403},[Kr,Hee],[0,0]];Et.registerError(Wne,ZR);var Kne=[-3,h,Hje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Kne,rC);var Qne=[-3,h,zje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Qne,oC);var Yne=[-3,h,Xje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Yne,sC);var Jne=[-3,h,v5e,{[It]:Dt,[kt]:404},[],[]];Et.registerError(Jne,eC);var Xne=[-3,h,D5e,{[It]:Dt,[kt]:404},[],[]];Et.registerError(Xne,JR);var Zne=[-3,h,I5e,{[It]:Dt,[kt]:404},[],[]];Et.registerError(Zne,XR);var eoe=[-3,h,w5e,{[It]:Dt,[kt]:404},[],[]];Et.registerError(eoe,VR);var toe=[-3,h,x5e,{[It]:Dt},[],[]];Et.registerError(toe,tC);var roe=[-3,h,L5e,{[It]:Dt,[kt]:403},[],[]];Et.registerError(roe,pC);var noe=[-3,h,K5e,{[It]:Dt,[kt]:403},[],[]];Et.registerError(noe,KR);var ooe=[-3,h,DWe,{[It]:Dt,[kt]:400},[],[]];Et.registerError(ooe,iC);var soe=[-3,h,qWe,{[It]:Dt,[kt]:415},[],[]];Et.registerError(soe,lC);var ioe=[Nne,Et],aoe=[0,h,bL,8,0],H9e=[0,h,A5e,8,0],mee=[0,h,WVe,8,0],rs=[0,h,uo,8,0],Xa=[0,h,Hi,8,0],Or=[0,h,un,8,0],lu=[0,h,zVe,{[gne]:1},42],pN=[3,h,mC,0,[Wr],[0]],coe=[3,h,Fee,0,[u4e],[1]],uoe=[3,h,rGe,0,[$e],[[0,{[l]:Ne}]]],loe=[3,h,nGe,0,[w,le,Ka,xe,L,Lje],[[0,1],[0,1],[0,{[U]:vg}],[0,{[l]:Te}],[0,{[l]:N}],[6,{[l]:_9e}]],3],doe=[3,h,fC,0,[Wr],[0]],fN=[3,h,ru,0,[NA,es],[[()=>lx,{[v]:kA}],()=>gi]],poe=[3,h,Mee,0,[es],[0],1],foe=[3,h,HUe,0,[Je,jd],[0,[()=>ji,{[ne]:1,[v]:lo}]]],rx=[3,h,Xm,0,[Wt,Nre,qi],[0,()=>wue,[()=>ele,0]],2],moe=[3,h,WUe,0,[Lre],[()=>goe],1],goe=[3,h,lGe,0,[Ite,w,hGe,Je],[0,0,0,0],2],hoe=[3,h,Nee,0,[ug,co,uu,lt,ge,Rg],[0,4,1,0,[64,{[ne]:1}],0],3],Soe=[3,h,gC,0,[vd,su,VA],[0,()=>Xd,0],1],yoe=[3,h,jee,0,[vd,XL,Id,bg,QA,VA],[0,0,()=>Ng,0,0,0],1],Eoe=[3,h,fGe,0,[vd,su,VA],[0,()=>Xd,0],1],_oe=[3,h,zee,0,[TL],[[()=>Q9e,{[ne]:1}]]],Roe=[3,h,w,0,[au,OGe,SL,gL],[0,4,0,0]],Coe=[3,h,yGe,0,[lqe,Ag],[0,0]],boe=[3,h,EGe,0,[Cg],[[()=>Jue,{[ne]:1,[v]:Hd}]],1],Aoe=[3,h,hC,0,[FL],[[()=>_N,0]]],xoe=[3,h,Qee,0,[ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn],[0,0,0,0,0,0,0,0,0,0,0]],Toe=[3,h,VGe,0,[Je],[0]],voe=[3,h,LGe,0,[jA],[[()=>V9e,{[ne]:1,[v]:zA}]]],Doe=[3,h,QGe,0,[lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cu],[0,0,0,0,0,0,0,0,0,0,0,1]],Ioe=[3,h,NGe,{[v]:BGe},[RC,w,le,ti,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,Qr,Re,un,zr,$e],[0,0,0,[0,{[l]:Dg}],0,0,0,0,0,0,0,0,0,0,0,0,[0,{[l]:ln}],[0,{[l]:mi}],[()=>Or,{[l]:Un}],[2,{[l]:Gn}],[0,{[l]:Ne}]]],woe=[3,h,UGe,0,[w,le,Ka,Yte,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,y5e,xe,L,Md,Sg,Kt,uo,Qt],[[0,1],[0,1],[0,{[U]:vg}],[()=>voe,{[Ce]:1,[v]:Yee}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[1,{[l]:A9e}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:iu}],[0,{[l]:Ld}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}]],3],Poe=[3,h,ute,0,[Tje,l6e],[0,0]],Ooe=[3,h,$Ge,0,[],[]],$oe=[3,h,jGe,0,[Jee,ti,ate,Re,Qr,Kt,Qt,un,Hi,zr,$e],[[()=>Moe,16],[0,{[l]:Dg}],[0,{[l]:wne}],[0,{[l]:mi}],[0,{[l]:ln}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[0,{[l]:Ne}]]],koe=[3,h,zGe,0,[w,cte,le,_d,Rd,ge,Cd,bd,Ad,Dd,ete,tte,rte,nte,Xo,wd,Pd,Od,$d,Md,Sg,Nd,g5e,AWe,VUe,Qr,Kr,xg,Kt,uo,Qt,un,Hi,zr,ote,bL,ste,xe,Zo,Gd,qd,Ud,yg,Eg,_g,L,Cte],[[0,1],[0,{[l]:Cne}],[0,1],[0,{[l]:Vd}],[0,{[l]:pg}],[0,{[l]:oN}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:gg}],[0,{[l]:hg}],[0,{[l]:bne}],[4,{[l]:Ane}],[0,{[l]:xne}],[4,{[l]:Tne}],[4,{[l]:Xo}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[0,{[l]:Yd}],[0,{[l]:iu}],[0,{[l]:Ld}],[128,{[zd]:Jd}],[0,{[l]:b9e}],[0,{[l]:U9e}],[0,{[l]:v9e}],[0,{[l]:ln}],[0,{[l]:Mg}],[0,{[l]:Lg}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[0,{[l]:vne}],[()=>aoe,{[l]:Dne}],[0,{[l]:Ine}],[0,{[l]:Te}],[0,{[l]:lN}],[0,{[l]:$g}],[5,{[l]:kg}],[0,{[l]:Og}],[0,{[l]:Ig}],[1,{[l]:wg}],[1,{[l]:Pg}],[0,{[l]:N}],[0,{[l]:Mne}]],3],Moe=[3,h,Jee,0,[lt,co,cn,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr],[0,4,0,0,0,0,0,0,0,0,0,0,0]],Loe=[3,h,Xee,0,[lt,co,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr],[0,4,0,0,0,0,0,0,0,0,0,0]],Noe=[3,h,SC,0,[_L],[[()=>Yue,{[ne]:1,[v]:RL}]],1],Foe=[3,h,RL,0,[eGe,iGe,kd,QUe,Sqe,f5e],[[64,{[ne]:1,[v]:oGe}],[64,{[ne]:1,[v]:aGe}],0,[64,{[ne]:1,[v]:YUe}],[64,{[ne]:1,[v]:Eqe}],1],2],Boe=[3,h,nL,0,[sL,RC,w,jd],[0,()=>jae,()=>Coe,[()=>ji,0]]],Uoe=[3,h,vGe,0,[w,aL,Ye,ge,L],[[0,1],[()=>zae,{[Ce]:1,[v]:aL}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Goe=[3,h,IGe,0,[w,cL,Ye,ge,L],[[0,1],[()=>Kae,{[Ce]:1,[v]:cL}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],qoe=[3,h,wGe,0,[RC,gL],[[0,{[l]:RC}],[0,{[l]:_ne}]]],Hoe=[3,h,PGe,0,[w,_d,nL,wd,Pd,Od,wL,$d,H5e,lre,CGe],[[0,1],[0,{[l]:Vd}],[()=>Boe,{[Ce]:1,[v]:nL}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[0,{[l]:iN}],[0,{[l]:Yd}],[2,{[l]:v8e}],[0,{[l]:D9e}],[0,{[l]:T8e}]],1],joe=[3,h,FGe,{[v]:Bje},[Lee,qee,w,le,Ka,Qr,Kt,Qt,un,Hi,zr,$e,ge,cn],[[4,{[l]:yne}],[0,{[l]:Ene}],[0,{[v]:w}],0,0,[0,{[l]:ln}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[0,{[l]:Ne}],[0,{[l]:oN}],[0,{[l]:Ya}]]],zoe=[3,h,GGe,0,[w,le,_d,Rd,Cd,bd,Ad,Dd,Xo,wd,Pd,Od,$d,Nd,Qr,Kr,xg,Kt,uo,Qt,un,Hi,zr,xe,Zo,Gd,qd,Ud,yg,Eg,_g,L,ge,cn],[[0,1],[0,1],[0,{[l]:Vd}],[0,{[l]:pg}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:gg}],[0,{[l]:hg}],[4,{[l]:Xo}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[0,{[l]:Yd}],[128,{[zd]:Jd}],[0,{[l]:ln}],[0,{[l]:Mg}],[0,{[l]:Lg}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[0,{[l]:Te}],[0,{[l]:lN}],[0,{[l]:$g}],[5,{[l]:kg}],[0,{[l]:Og}],[0,{[l]:Ig}],[1,{[l]:wg}],[1,{[l]:Pg}],[0,{[l]:N}],[0,{[l]:oN}],[0,{[l]:Ya}]],2],Voe=[3,h,JGe,{[v]:XGe},[cee,Qr,un,Hi,zr],[[()=>Rue,{[v]:cee}],[0,{[l]:ln}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}]],1],Woe=[3,h,e4e,0,[w,sWe,Qr,un,Hi,zr],[[0,1],[0,{[l]:w8e}],[0,{[l]:ln}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}]],1],Koe=[3,h,t4e,0,[xqe,a4e,bre,jL,vte,Rre,uGe],[0,0,0,0,0,0,2]],Qoe=[3,h,r4e,0,[_Ve,bre,jL,vte,Rre],[0,0,0,0,0]],Yoe=[3,h,fte,0,[ere,nu,one,G4e],[0,1,1,()=>gN]],Joe=[3,h,oL,0,[tze,hVe],[[()=>sKe,{[ne]:1,[v]:fre}],2],1],Xoe=[3,h,p4e,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],Zoe=[3,h,m4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],ese=[3,h,h4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],tse=[3,h,_4e,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],rse=[3,h,y4e,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],nse=[3,h,C4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],ose=[3,h,A4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],sse=[3,h,D4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],ise=[3,h,x4e,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],ase=[3,h,w4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],cse=[3,h,O4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],use=[3,h,k4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],lse=[3,h,$4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],dse=[3,h,N4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],pse=[3,h,B4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],fse=[3,h,K4e,0,[le,Re,ou,W4e],[0,0,2,0]],mse=[3,h,V4e,0,[es,le,Re,Mte,co],[()=>gi,0,0,2,4]],gse=[3,h,dte,0,[Wr],[0]],hse=[3,h,Y4e,0,[GA,$e],[[0,{[l]:tx}],[0,{[l]:Ne}]]],Sse=[3,h,J4e,0,[w,le,ug,Re,xe,L,cre],[[0,1],[0,1],[0,{[U]:eN}],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:$ne}]],3],yse=[3,h,X4e,0,[ou,Re,$e],[[2,{[l]:ex}],[0,{[l]:mi}],[0,{[l]:Ne}]]],Ese=[3,h,eqe,0,[w,le,BL,Re,xe,hL,L,Md,Nje,Fje],[[0,1],[0,1],[0,{[l]:aN}],[0,{[U]:Yt}],[0,{[l]:Te}],[2,{[l]:nN}],[0,{[l]:N}],[0,{[l]:iu}],[6,{[l]:R9e}],[1,{[l]:C9e}]],2],_se=[3,h,Z4e,{[v]:dqe},[pqe,$e,xte],[[()=>W9e,{[ne]:1}],[0,{[l]:Ne}],[()=>Y9e,{[ne]:1,[v]:Id}]]],Rse=[3,h,tqe,0,[w,oL,BL,xe,hL,L,ge],[[0,1],[()=>Joe,{[Ce]:1,[v]:oL}],[0,{[l]:aN}],[0,{[l]:Te}],[2,{[l]:nN}],[0,{[l]:N}],[0,{[l]:ke}]],2],Cse=[3,h,nqe,0,[Re],[[0,{[l]:mi}]]],bse=[3,h,oqe,0,[w,le,Re,L],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:N}]],2],Ase=[3,h,uqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],xse=[3,h,LA,0,[w,qUe,Kr,Mee,su,$re,Zte],[0,0,0,()=>poe,()=>Dse,()=>oue,()=>Yae],1],Tse=[3,h,mte,0,[RWe,QL,Qre],[0,0,0]],vse=[3,h,vL,0,[TL,c6e,i6e],[0,[()=>Or,0],0],1],Dse=[3,h,su,0,[AVe],[0]],Ise=[3,h,hqe,0,[],[]],wse=[3,h,Id,0,[le,Re,i4e,R5e],[0,0,0,0]],Ng=[3,h,gqe,0,[yte,_te],[0,0]],mN=[3,h,xL,0,[le],[0],1],Pse=[3,h,Ste,0,[],[]],gN=[3,h,Ete,0,[nu,one],[1,1]],Ose=[3,h,Rte,0,[Wr],[0],1],$se=[3,h,Dte,0,[au,ZL],[0,0]],kse=[3,h,Fqe,0,[mC],[[()=>pN,16]]],Mse=[3,h,Uqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Lse=[3,h,$qe,{[v]:fC},[Wr,$e],[0,[0,{[l]:Ne}]]],Nse=[3,h,Mqe,0,[w,L,xe],[[0,1],[0,{[l]:N}],[0,{[l]:Te}]],1],Fse=[3,h,Bqe,{[v]:ru},[es,NA],[()=>gi,[()=>lx,{[v]:kA}]]],Bse=[3,h,Gqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Use=[3,h,kqe,0,[Xm],[[()=>rx,16]]],Gse=[3,h,Lqe,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],qse=[3,h,jqe,{[v]:SC},[_L],[[()=>Yue,{[ne]:1,[v]:RL}]]],Hse=[3,h,zqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],jse=[3,h,Wqe,0,[OC],[[()=>ON,16]]],zse=[3,h,Kqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Vse=[3,h,Zqe,0,[eg],[[()=>nx,16]]],Wse=[3,h,eHe,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],Kse=[3,h,Yqe,0,[Zm],[[()=>ox,16]]],Qse=[3,h,Jqe,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],Yse=[3,h,nHe,{[v]:iL},[Cg,JL],[[()=>Jue,{[ne]:1,[v]:Hd}],[0,{[l]:dN}]]],Jse=[3,h,oHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Xse=[3,h,sHe,{[v]:sL},[sL],[0]],Zse=[3,h,aHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],eie=[3,h,iHe,{[v]:hC},[FL],[[()=>_N,0]]],tie=[3,h,cHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],rie=[3,h,dHe,0,[wte],[[()=>oie,16]]],nie=[3,h,fHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],oie=[3,h,wte,0,[zte],[()=>Vae],1],sie=[3,h,SHe,0,[Pte],[[()=>aie,16]]],iie=[3,h,yHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],aie=[3,h,Pte,0,[Qte,Wr,Id],[()=>Qae,0,()=>Ng],2],cie=[3,h,pHe,0,[tg],[[()=>sx,16]]],uie=[3,h,mHe,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],lie=[3,h,_He,0,[w,L],[[0,1],[0,{[l]:N}]],1],die=[3,h,CHe,0,[bC],[[()=>TN,16]]],pie=[3,h,bHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],fie=[3,h,xHe,0,[yre],[[0,16]]],mie=[3,h,THe,0,[w,L],[[0,1],[0,{[l]:N}]],1],gie=[3,h,DHe,0,[mre],[[()=>dce,16]]],hie=[3,h,IHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Sie=[3,h,PHe,0,[vC],[[()=>IN,16]]],yie=[3,h,MHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Eie=[3,h,$He,{[v]:DC},[gre],[0]],_ie=[3,h,kHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Rie=[3,h,NHe,{[v]:Zo},[YA],[[()=>ji,0]],1],Cie=[3,h,FHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],bie=[3,h,UHe,{[v]:$C},[Wr,Kte],[0,[0,{[v]:Vte}]]],Aie=[3,h,GHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],xie=[3,h,HHe,{[v]:kC},[HL,$L,xL,zL],[()=>DN,()=>SN,()=>mN,[()=>Zue,0]]],Tie=[3,h,jHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],vie=[3,h,WHe,{[v]:ru},[es,NA,$e],[()=>gi,[()=>lx,{[v]:kA}],[0,{[l]:Ne}]]],Die=[3,h,JHe,0,[w,le,Re,xe,L],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}]],2],Iie=[3,h,KHe,0,[Bee,GA,co,Td,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,Qr,$e,Rg],[[()=>lu,16],[0,{[l]:tx}],[4,{[l]:BA}],[1,{[l]:xd}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[0,{[l]:ln}],[0,{[l]:Ne}],[0,{[l]:uN}]]],wie=[3,h,XHe,0,[w,le,ug,Re,xe,L,EL],[[0,1],[0,1],[0,{[U]:eN}],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:sN}]],3],Pie=[3,h,QHe,{[v]:ZHe},[ou,co,Re,$e,lt,Qee,Q5e,Kr,J5e],[[2,{[l]:ex}],[4,{[l]:BA}],[0,{[l]:mi}],[0,{[l]:Ne}],0,()=>xoe,[()=>Oie,0],0,1]],Oie=[3,h,YHe,0,[wWe,HA,ore,UA,ni,jA],[[1,{[v]:qA}],0,0,1,2,[()=>uKe,{[ne]:1,[v]:zA}]]],$ie=[3,h,eje,0,[w,le,M5e,Re,UA,HA,Kt,uo,Qt,xe,L],[[0,1],[0,1],[64,{[l]:T9e}],[0,{[U]:Yt}],[1,{[l]:x9e}],[0,{[l]:w9e}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:Te}],[0,{[l]:N}]],3],kie=[3,h,aje,0,[CC],[[()=>bN,{[Ce]:1,[v]:CC}]]],Mie=[3,h,cje,0,[w,le,Re,xe,L],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}]],2],Lie=[3,h,oje,0,[AC],[[()=>CN,16]]],Nie=[3,h,sje,0,[w,L],[[0,1],[0,{[l]:N}]],1],Fie=[3,h,uje,0,[dg,ou,mL,ti,WL,co,Td,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,UL,Re,Rd,Cd,bd,Ad,CL,Dd,Xo,yC,xg,Qr,Nd,Kt,Qt,un,zr,Kr,$e,Rg,qA,YL,Gd,qd,Ud,yg,Eg,_g],[[()=>lu,16],[2,{[l]:ex}],[0,{[l]:sne}],[0,{[l]:Dg}],[0,{[l]:kne}],[4,{[l]:BA}],[1,{[l]:xd}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[1,{[l]:Pne}],[0,{[l]:mi}],[0,{[l]:pg}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:gg}],[0,{[l]:Zee}],[0,{[l]:hg}],[4,{[l]:Xo}],[0,{[l]:yC}],[0,{[l]:Lg}],[0,{[l]:ln}],[128,{[zd]:Jd}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[2,{[l]:Gn}],[0,{[l]:Mg}],[0,{[l]:Ne}],[0,{[l]:uN}],[1,{[l]:One}],[1,{[l]:Lne}],[0,{[l]:$g}],[5,{[l]:kg}],[0,{[l]:Og}],[0,{[l]:Ig}],[1,{[l]:wg}],[1,{[l]:Pg}]]],Bie=[3,h,lje,0,[w,le,Md,Lte,Sg,Bte,IC,Are,xre,Tre,vre,Dre,Ire,Re,Kt,uo,Qt,xe,cu,L,EL],[[0,1],[0,1],[0,{[l]:iu}],[4,{[l]:kL}],[0,{[l]:Ld}],[4,{[l]:LL}],[0,{[l]:IC}],[0,{[U]:cne}],[0,{[U]:une}],[0,{[U]:lne}],[0,{[U]:dne}],[0,{[U]:pne}],[6,{[U]:fne}],[0,{[U]:Yt}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:Te}],[1,{[U]:ZA}],[0,{[l]:N}],[0,{[l]:sN}]],2],Uie=[3,h,dje,0,[wC],[[()=>AN,{[Ce]:1,[v]:wC}]]],Gie=[3,h,pje,0,[w,le,Re,xe,L],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}]],2],qie=[3,h,gje,{[v]:Zo},[YA,Re],[[()=>ji,0],[0,{[l]:mi}]],1],Hie=[3,h,Sje,0,[w,le,Re,L,xe],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:N}],[0,{[l]:Te}]],2],jie=[3,h,hje,0,[dg,$e],[[()=>lu,16],[0,{[l]:Ne}]]],zie=[3,h,yje,0,[w,le,xe,L],[[0,1],[0,1],[0,{[l]:Te}],[0,{[l]:N}]],2],Vie=[3,h,Rje,0,[xC],[[()=>vN,16]]],Wie=[3,h,Cje,0,[w,L],[[0,1],[0,{[l]:N}]],1],Kie=[3,h,Ote,0,[Jre],[0],1],Qie=[3,h,PL,0,[OL,Sre],[[()=>hN,{[Sne]:[hne,ine]}],0]],hN=[3,h,OL,0,[Ag,AL,mqe,kd,XWe],[[0,{[R8e]:1,[v]:q9e}],0,0,0,0],1],Yie=[3,h,Aje,0,[gL,RGe,_Ge,SL,cGe],[[0,{[l]:_ne}],[0,{[l]:x8e}],[0,{[l]:A8e}],[0,{[l]:D8e}],[2,{[l]:C8e}]]],Jie=[3,h,xje,0,[w,L],[[0,1],[0,{[l]:N}]],1],Xie=[3,h,Dje,0,[ou,mL,ti,WL,pGe,co,Td,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,lt,UL,Re,Rd,Cd,bd,Ad,Dd,CL,Xo,yC,xg,Qr,Nd,Kt,Qt,un,zr,Kr,$e,Rg,qA,YL,Gd,qd,Ud,yg,Eg,_g],[[2,{[l]:ex}],[0,{[l]:sne}],[0,{[l]:Dg}],[0,{[l]:kne}],[0,{[l]:b8e}],[4,{[l]:BA}],[1,{[l]:xd}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[0,{[l]:lt}],[1,{[l]:Pne}],[0,{[l]:mi}],[0,{[l]:pg}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:gg}],[0,{[l]:hg}],[0,{[l]:Zee}],[4,{[l]:Xo}],[0,{[l]:yC}],[0,{[l]:Lg}],[0,{[l]:ln}],[128,{[zd]:Jd}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[2,{[l]:Gn}],[0,{[l]:Mg}],[0,{[l]:Ne}],[0,{[l]:uN}],[1,{[l]:One}],[1,{[l]:Lne}],[0,{[l]:$g}],[5,{[l]:kg}],[0,{[l]:Og}],[0,{[l]:Ig}],[1,{[l]:wg}],[1,{[l]:Pg}]]],Zie=[3,h,Ije,0,[w,le,Md,Lte,Sg,Bte,IC,Are,xre,Tre,vre,Dre,Ire,Re,Kt,uo,Qt,xe,cu,L,EL],[[0,1],[0,1],[0,{[l]:iu}],[4,{[l]:kL}],[0,{[l]:Ld}],[4,{[l]:LL}],[0,{[l]:IC}],[0,{[U]:cne}],[0,{[U]:une}],[0,{[U]:lne}],[0,{[U]:dne}],[0,{[U]:pne}],[6,{[U]:fne}],[0,{[U]:Yt}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:Te}],[1,{[U]:ZA}],[0,{[l]:N}],[0,{[l]:sN}]],2],SN=[3,h,$L,0,[yWe],[0],1],yN=[3,h,NL,0,[kd,AL],[0,0]],EN=[3,h,ML,0,[ite,s4e,Ute,mVe],[()=>Koe,0,()=>fae,()=>cce]],eae=[3,h,Qje,0,[Je,jd],[0,[()=>ji,{[ne]:1,[v]:lo}]]],nx=[3,h,eg,0,[Wt,Wr,PWe,qi],[0,0,[()=>mKe,{[ne]:1,[v]:Xre}],[()=>tae,0]],3],tae=[3,h,Jje,0,[Je,lo,lg],[0,()=>du,[()=>eae,0]]],ox=[3,h,Zm,0,[LA,$je,Wt,qje,hWe,qi,B5e],[[()=>rae,0],2,0,0,()=>iae,()=>oae,[()=>eKe,0]],5],rae=[3,h,Oje,0,[Lre],[[()=>sae,0]],1],nae=[3,h,kje,0,[Hre,KL],[[()=>vue,{[v]:Gre}],[()=>Aue,{[v]:KA}]]],oae=[3,h,Mje,0,[Je],[0],1],sae=[3,h,Wje,0,[w,Ite,JUe,Je,vL],[0,0,0,0,[()=>nae,0]],2],iae=[3,h,Kje,0,[wqe],[0],1],aae=[3,h,EC,0,[vd,su],[0,()=>Xd],1],cae=[3,h,Fte,0,[vd,XL,Id,bg,QA],[0,0,()=>Ng,0,0],1],uae=[3,h,Yje,0,[vd,su],[0,()=>Xd],1],lae=[3,h,_C,0,[WA,su],[()=>ax,()=>Xd],1],dae=[3,h,Gte,0,[XL,bg,WA,Id,QA],[0,0,()=>ax,()=>Ng,0],3],pae=[3,h,r6e,0,[WA],[()=>ax],1],fae=[3,h,e6e,0,[Ag],[0]],mae=[3,h,t6e,0,[jL],[0]],gae=[3,h,k6e,0,[$6e,DL,Wt,qi],[[0,{[v]:kGe}],[64,{[ne]:1,[v]:IL}],0,[()=>ix,0]],2],hae=[3,h,O6e,0,[gte,nu,_qe],[5,1,2]],Sae=[3,h,a5e,0,[Wr,ti,kd,Je,qi,kWe,$5e,sre,Fee],[0,()=>hae,0,0,[()=>Eae,0],[()=>hKe,{[ne]:1,[v]:ene}],[()=>oKe,{[ne]:1,[v]:ire}],()=>Zae,()=>coe],1],yae=[3,h,c5e,0,[Je,jd,dre,pre],[0,[()=>ji,{[ne]:1,[v]:lo}],1,1]],Eae=[3,h,u5e,0,[Je,lo,dre,pre,lg],[0,()=>du,1,1,[()=>yae,0]]],_ae=[3,h,g6e,{[v]:h6e},[ni,Vr,Bd,kee],[2,0,0,[()=>j9e,{[ne]:1,[v]:Xm}]]],Rae=[3,h,S6e,0,[w,Vr,L],[[0,1],[0,{[U]:Qa}],[0,{[l]:N}]],1],Cae=[3,h,C6e,0,[ni,Vr,Bd,Nte],[2,0,0,[()=>X9e,{[ne]:1,[v]:eg}]]],bae=[3,h,b6e,0,[w,Vr,L],[[0,1],[0,{[U]:Qa}],[0,{[l]:N}]],1],Aae=[3,h,E6e,{[v]:F6e},[Vr,kte,ni,Bd],[0,[()=>Z9e,{[ne]:1,[v]:Zm}],2,0]],xae=[3,h,_6e,0,[w,Vr,L],[[0,1],[0,{[U]:Qa}],[0,{[l]:N}]],1],Tae=[3,h,x6e,{[v]:B6e},[ni,Vr,Bd,jte],[2,0,0,[()=>rKe,{[ne]:1,[v]:tg}]]],vae=[3,h,T6e,0,[w,Vr,L],[[0,1],[0,{[U]:Qa}],[0,{[l]:N}]],1],Dae=[3,h,v6e,{[v]:d6e},[yL,es,Vr,Je],[[()=>Que,0],()=>gi,0,0]],Iae=[3,h,D6e,0,[m5e,Vr,Je,SL],[[1,{[U]:f8e}],[0,{[U]:Qa}],[0,{[U]:Tg}],[0,{[U]:i8e}]]],wae=[3,h,w6e,{[v]:p6e},[yL,Vr],[[()=>Que,0],0]],Pae=[3,h,P6e,0,[Vr,h5e],[[0,{[U]:Qa}],[1,{[U]:m8e}]]],Oae=[3,h,q6e,{[v]:H6e},[w,FA,tne,rre,Je,Va,P5e,Jte,ni,MWe,MA,Wa,$e],[0,0,0,0,0,0,0,1,2,[()=>nKe,{[ne]:1,[v]:ZWe}],[()=>ux,{[ne]:1}],0,[0,{[l]:Ne}]]],$ae=[3,h,j6e,0,[w,Va,Wa,FA,Jte,Je,tne,L,xe],[[0,1],[0,{[U]:JA}],[0,{[U]:XA}],[0,{[U]:ane}],[1,{[U]:h8e}],[0,{[U]:Tg}],[0,{[U]:E8e}],[0,{[l]:N}],[0,{[l]:Te}]],1],kae=[3,h,W6e,0,[mGe,w,le,GA,Gee,Hte,jUe,Vr,Bd,$e],[[()=>z9e,0],0,0,[0,{[l]:tx}],0,1,1,0,0,[0,{[l]:Ne}]]],Mae=[3,h,K6e,0,[w,le,Re,Hte,Gee,Vr,xe,L],[[0,1],[0,1],[0,{[U]:Yt}],[1,{[U]:p8e}],[0,{[U]:s8e}],[0,{[U]:Qa}],[0,{[l]:Te}],[0,{[l]:N}]],2],Lae=[3,h,Q6e,{[v]:qte},[ni,Xte,T5e,lte,au,Je,Va,Fd,MA,Wa,$e],[2,0,0,[()=>Xue,{[ne]:1}],0,0,0,1,[()=>ux,{[ne]:1}],0,[0,{[l]:Ne}]]],Nae=[3,h,Y6e,0,[w,Va,Wa,Xte,Fd,Je,xe,L,GL],[[0,1],[0,{[U]:JA}],[0,{[U]:XA}],[0,{[U]:d8e}],[1,{[U]:rN}],[0,{[U]:Tg}],[0,{[l]:Te}],[0,{[l]:N}],[64,{[l]:cN}]],1],Fae=[3,h,X6e,{[v]:qte},[ni,lte,au,Je,Va,Fd,MA,Wa,n6e,Vr,Bd,Mre,$e],[2,[()=>Xue,{[ne]:1}],0,0,0,1,[()=>ux,{[ne]:1}],0,1,0,0,0,[0,{[l]:Ne}]]],Bae=[3,h,e5e,0,[w,Va,Wa,Fd,Je,Vr,Tqe,Mre,xe,L,GL],[[0,1],[0,{[U]:JA}],[0,{[U]:XA}],[1,{[U]:rN}],[0,{[U]:Tg}],[0,{[U]:Qa}],[2,{[U]:c8e}],[0,{[U]:y8e}],[0,{[l]:Te}],[0,{[l]:N}],[64,{[l]:cN}]],1],Uae=[3,h,Z6e,{[v]:d5e},[ni,FA,nne,rre,O5e,e8e,pte,au,Je,Va,Fd,MA,Wa,$e],[2,0,0,0,0,[()=>iKe,{[ne]:1,[v]:t8e}],[()=>K9e,{[ne]:1,[v]:ou}],0,0,0,1,[()=>ux,{[ne]:1}],0,[0,{[l]:Ne}]]],Gae=[3,h,t5e,0,[w,Va,Wa,FA,Fd,Je,nne,L,xe,GL],[[0,1],[0,{[U]:JA}],[0,{[U]:XA}],[0,{[U]:ane}],[1,{[U]:rN}],[0,{[U]:Tg}],[0,{[U]:_8e}],[0,{[l]:N}],[0,{[l]:Te}],[64,{[l]:cN}]],1],qae=[3,h,o5e,{[v]:s5e},[Lee,qee,w,le,Ka,HA,ore,UA,ni,jA,NL,es,Kr,$e,ge,cn],[[4,{[l]:yne}],[0,{[l]:Ene}],0,0,0,0,0,1,2,[()=>cKe,{[ne]:1,[v]:zA}],()=>yN,()=>gi,0,[0,{[l]:Ne}],0,0]],Hae=[3,h,i5e,0,[w,le,Ka,UA,HA,xe,L,Kt,uo,Qt],[[0,1],[0,1],[0,{[U]:vg}],[1,{[U]:g8e}],[0,{[U]:S8e}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}]],3],jae=[3,h,N6e,0,[Ag,au],[0,0]],_N=[3,h,FL,0,[_We,IWe,Kre,Yre],[0,0,[()=>fKe,0],[()=>$ue,0]],2],zae=[3,h,aL,0,[_C,EC,gC],[()=>lae,()=>aae,()=>Soe],1],Vae=[3,h,zte,0,[mte,Gte,Fte,jee],[()=>Tse,()=>dae,()=>cae,()=>yoe],1],Wae=[3,h,Wte,0,[au,ZL],[0,0]],Kae=[3,h,cL,0,[jre],[()=>fue],1],Qae=[3,h,Qte,0,[zre],[()=>mue],1],Xd=[3,h,E5e,0,[jVe,s6e],[0,0],1],Yae=[3,h,Zte,0,[Wr,bqe],[0,()=>wN],1],Jae=[3,h,p5e,0,[Je,jd,Uee],[0,[()=>ji,{[ne]:1,[v]:lo}],0]],sx=[3,h,tg,0,[Wt,qi],[0,[()=>tle,0]],1],Xae=[3,h,Yte,0,[Ka,le,Zje,Kr,es,NL,ge,cn],[0,0,4,0,()=>gi,()=>yN,0,0]],Zae=[3,h,sre,0,[tre,nre],[1,1]],ece=[3,h,ire,0,[tre,Kr,nre],[1,0,1]],RN=[3,h,uL,0,[bWe,EVe,L6e,Ste],[[()=>gKe,{[ne]:1,[v]:Wre}],[()=>lKe,{[ne]:1,[v]:Cre}],[()=>tKe,{[ne]:1,[v]:MGe}],()=>Pse]],ix=[3,h,b5e,0,[le],[[()=>due,{[v]:nWe}]]],tce=[3,h,fre,0,[le,co,lt,ge,cn,uu,Kr,es,VL],[0,4,0,[64,{[ne]:1}],0,1,0,()=>gi,()=>PN]],rce=[3,h,U5e,0,[le,Re,lt,U6e,uu],[0,0,0,6,1],1],CN=[3,h,AC,0,[q5e,Hd],[0,()=>nce]],bN=[3,h,j5e,0,[Wr],[0]],AN=[3,h,z5e,0,[ere,qVe,yqe,Ete],[0,5,0,()=>gN]],nce=[3,h,V5e,0,[fte],[()=>Yoe]],oce=[3,h,Y5e,0,[cu,uu,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr],[1,1,0,0,0,0,0,0,0,0,0,0]],sce=[3,h,Z5e,0,[lt,ge,cn,uu,Kr,le,Re,Mte,co,es,VL],[0,[64,{[ne]:1}],0,1,0,0,0,2,4,()=>gi,()=>PN]],ice=[3,h,ure,0,[gWe],[[()=>pue,0]]],xN=[3,h,qL,0,[ite,Ute],[()=>Qoe,()=>mae]],gi=[3,h,es,0,[AL,kd],[0,0]],TN=[3,h,bC,0,[Cg],[[()=>aKe,{[ne]:1,[v]:Hd}]],1],ace=[3,h,N5e,0,[lre],[0],1],cce=[3,h,Hze,0,[],[]],uce=[3,h,zA,0,[cu,co,lt,uu,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr],[1,4,0,1,0,0,0,0,0,0,0,0,0,0]],lce=[3,h,TC,{[v]:TC},[Gze],[0]],dce=[3,h,mre,0,[lee],[[2,{[v]:lee}]]],pce=[3,h,Ere,0,[Kee,Vee,Wee],[1,1,1]],fce=[3,h,qze,0,[hte],[[()=>pce,{[tN]:1}]]],vN=[3,h,xC,0,[iee,uee,aee,dee],[[2,{[v]:iee}],[2,{[v]:uee}],[2,{[v]:aee}],[2,{[v]:dee}]]],mce=[3,h,aze,0,[w,mC,Ye,ge,L],[[0,1],[()=>pN,{[Ce]:1,[v]:mC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],gce=[3,h,oze,0,[w,fC,L,ge],[[0,1],[()=>doe,{[Ce]:1,[v]:fC}],[0,{[l]:N}],[0,{[l]:ke}]],2],hce=[3,h,cze,0,[w,_d,ru,Ye,ge,wd,Pd,Od,wL,$d,L],[[0,1],[0,{[l]:Vd}],[()=>fN,{[Ce]:1,[v]:ru}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[0,{[l]:iN}],[0,{[l]:Yd}],[0,{[l]:N}]],1],Sce=[3,h,sze,0,[w,Wt,Xm,L],[[0,1],[0,{[U]:po}],[()=>rx,{[Ce]:1,[v]:Xm}],[0,{[l]:N}]],3],yce=[3,h,dze,0,[w,SC,Ye,ge,L],[[0,1],[()=>Noe,{[Ce]:1,[v]:SC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Ece=[3,h,fze,0,[w,OC,Ye,ge,L],[[0,1],[()=>ON,{[Ce]:1,[v]:OC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],_ce=[3,h,Sze,0,[w,Wt,eg,L],[[0,1],[0,{[U]:po}],[()=>nx,{[Ce]:1,[v]:eg}],[0,{[l]:N}]],3],Rce=[3,h,gze,0,[w,Wt,Zm,L],[[0,1],[0,{[U]:po}],[()=>ox,{[Ce]:1,[v]:Zm}],[0,{[l]:N}]],3],Cce=[3,h,_ze,0,[JL],[[0,{[l]:dN}]]],bce=[3,h,Rze,0,[w,ge,iL,L,JL],[[0,1],[0,{[l]:ke}],[()=>boe,{[Ce]:1,[v]:iL}],[0,{[l]:N}],[0,{[l]:dN}]],1],Ace=[3,h,Cze,0,[w,hC,Ye,ge,L],[[0,1],[()=>Aoe,{[Ce]:1,[v]:hC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],xce=[3,h,Aze,0,[w,Wt,tg,L],[[0,1],[0,{[U]:po}],[()=>sx,{[Ce]:1,[v]:tg}],[0,{[l]:N}]],3],Tce=[3,h,Tze,0,[w,uL,L,YVe],[[0,1],[()=>RN,{[Ce]:1,[v]:uL}],[0,{[l]:N}],[2,{[l]:B9e}]],2],vce=[3,h,Dze,0,[w,bC,Ye,L,ge],[[0,1],[()=>TN,{[Ce]:1,[v]:bC}],[0,{[l]:Qe}],[0,{[l]:N}],[0,{[l]:ke}]],2],Dce=[3,h,wze,0,[w,yre,Ye,ge,YGe,L],[[0,1],[0,16],[0,{[l]:Qe}],[0,{[l]:ke}],[2,{[l]:I8e}],[0,{[l]:N}]],2],Ice=[3,h,kze,0,[w,vC,Ye,ge,Zre,L],[[0,1],[()=>IN,{[Ce]:1,[v]:vC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:Rne}],[0,{[l]:N}]],2],wce=[3,h,$ze,0,[w,DC,Ye,ge,L],[[0,1],[()=>sue,{[Ce]:1,[v]:DC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Pce=[3,h,Lze,0,[w,Zo,Ye,ge,L],[[0,1],[()=>cx,{[Ce]:1,[v]:Zo}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Oce=[3,h,Fze,0,[w,$C,Ye,ge,BL,L],[[0,1],[()=>Vue,{[Ce]:1,[v]:$C}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:aN}],[0,{[l]:N}]],2],$ce=[3,h,Uze,0,[w,kC,Ye,ge,L],[[0,1],[()=>Wue,{[Ce]:1,[v]:kC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],kce=[3,h,Wze,0,[$e],[[0,{[l]:Ne}]]],Mce=[3,h,Qze,0,[w,le,_d,ru,Ye,ge,wd,Pd,Od,wL,$d,xe,Re,L],[[0,1],[0,1],[0,{[l]:Vd}],[()=>fN,{[Ce]:1,[v]:ru}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[0,{[l]:iN}],[0,{[l]:Yd}],[0,{[l]:Te}],[0,{[U]:Yt}],[0,{[l]:N}]],2],Lce=[3,h,Kze,0,[le,ug,GA,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,Qr,$e],[0,0,[0,{[l]:tx}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[0,{[l]:ln}],[0,{[l]:Ne}]]],Nce=[3,h,Yze,0,[w,le,ug,Bee,Re,cre,ge,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,Ye,xe,L],[[0,1],[0,1],[0,{[U]:eN}],[()=>lu,16],[0,{[U]:Yt}],[0,{[l]:$ne}],[0,{[l]:ke}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Qe}],[0,{[l]:Te}],[0,{[l]:N}]],4],Fce=[3,h,rVe,0,[$e],[[0,{[l]:Ne}]]],Bce=[3,h,nVe,0,[w,le,CC,xe,Re,Ye,ge,L],[[0,1],[0,1],[()=>bN,{[Ce]:1,[v]:CC}],[0,{[l]:Te}],[0,{[U]:Yt}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Uce=[3,h,Zze,0,[$e],[[0,{[l]:Ne}]]],Gce=[3,h,eVe,0,[w,AC,xe,Zre,Ye,ge,L],[[0,1],[()=>CN,{[Ce]:1,[v]:AC}],[0,{[l]:Te}],[0,{[l]:Rne}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],1],qce=[3,h,oVe,0,[ti,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,Qr,Re,Kt,Qt,un,Hi,zr,uu,$e],[[0,{[l]:Dg}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[0,{[l]:ln}],[0,{[l]:mi}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[1,{[l]:I9e}],[0,{[l]:Ne}]]],Hce=[3,h,sVe,0,[w,le,_d,dg,Rd,Cd,bd,Ad,Td,Ye,Dd,ge,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,Xo,Md,Sg,wd,Pd,Od,$d,o8e,Nd,Qr,Kr,xg,Kt,uo,Qt,un,Hi,zr,xe,Zo,Gd,qd,Ud,yg,Eg,_g,L],[[0,1],[0,1],[0,{[l]:Vd}],[()=>lu,16],[0,{[l]:pg}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:gg}],[1,{[l]:xd}],[0,{[l]:Qe}],[0,{[l]:hg}],[0,{[l]:ke}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[4,{[l]:Xo}],[0,{[l]:iu}],[0,{[l]:Ld}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[0,{[l]:Yd}],[1,{[l]:G9e}],[128,{[zd]:Jd}],[0,{[l]:ln}],[0,{[l]:Mg}],[0,{[l]:Lg}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[0,{[l]:Te}],[0,{[l]:lN}],[0,{[l]:$g}],[5,{[l]:kg}],[0,{[l]:Og}],[0,{[l]:Ig}],[1,{[l]:wg}],[1,{[l]:Pg}],[0,{[l]:N}]],2],jce=[3,h,iVe,0,[$e],[[0,{[l]:Ne}]]],zce=[3,h,aVe,0,[w,le,wC,xe,Re,hL,Ye,ge,L],[[0,1],[0,1],[()=>AN,{[Ce]:1,[v]:wC}],[0,{[l]:Te}],[0,{[U]:Yt}],[2,{[l]:nN}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Vce=[3,h,lVe,0,[Re],[[0,{[l]:mi}]]],Wce=[3,h,dVe,0,[w,le,Zo,Re,Ye,ge,L,xe],[[0,1],[0,1],[()=>cx,{[Ce]:1,[v]:Zo}],[0,{[U]:Yt}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}],[0,{[l]:Te}]],3],Kce=[3,h,fVe,0,[w,xC,Ye,ge,L],[[0,1],[()=>vN,{[Ce]:1,[v]:xC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Qce=[3,h,Cre,0,[SVe,DL,Wt,qi],[[0,{[v]:RVe}],[64,{[ne]:1,[v]:IL}],0,[()=>ix,0]],2],ax=[3,h,WA,0,[ti,nu],[0,1],1],Yce=[3,h,bVe,0,[hre],[[21,{[tN]:1}]]],Jce=[3,h,kre,0,[$te,wje,_re,xVe,TVe],[0,0,0,0,0]],DN=[3,h,HL,0,[$te,_re],[0,0],1],Xce=[3,h,DVe,0,[],[]],Zce=[3,h,PVe,0,[w,le,BVe,q4e,j4e,H4e,z4e,XVe,eWe,ZVe,tWe,o4e],[[0,1],[0,1],[0,{[l]:$9e}],[0,{[l]:iu}],[0,{[l]:Ld}],[4,{[l]:kL}],[4,{[l]:LL}],[0,{[l]:k9e}],[0,{[l]:L9e}],[6,{[l]:M9e}],[6,{[l]:N9e}],[0,{[l]:O8e,[l8e]:1}]],3],eue=[3,h,wre,0,[Wr],[0],1],IN=[3,h,vC,0,[VA,Cg],[0,[()=>dKe,{[ne]:1,[v]:Hd}]],2],tue=[3,h,LVe,0,[Wr,LA,kd,gVe,Je,qi,qre,Rte,dte],[0,()=>xse,0,1,0,[()=>nue,0],()=>bue,()=>Ose,()=>gse],2],rue=[3,h,kVe,0,[Je,jd],[0,[()=>ji,{[ne]:1,[v]:lo}]]],nue=[3,h,MVe,0,[Je,lo,lg],[0,()=>du,[()=>rue,0]]],oue=[3,h,$re,0,[Wr,OWe],[0,()=>wN],2],wN=[3,h,UVe,0,[C5e],[1]],sue=[3,h,DC,0,[gre],[0],1],iue=[3,h,Pre,0,[Aqe],[2]],aue=[3,h,IVe,0,[$e,wVe],[[0,{[l]:Ne}],[0,{[l]:P9e}]]],cue=[3,h,OVe,0,[w,le,Re,lL,xe,ge,L],[[0,1],[0,1],[0,{[U]:Yt}],[()=>uue,{[Ce]:1,[v]:lL}],[0,{[l]:Te}],[0,{[l]:ke}],[0,{[l]:N}]],2],uue=[3,h,lL,0,[nu,Ote,Ag,Jre,fqe,Bre,ure],[1,()=>Kie,0,0,0,()=>yue,[()=>ice,0]]],PN=[3,h,VL,0,[Vje,CVe],[2,4]],lue=[3,h,Ore,0,[kre,ute],[()=>Jce,()=>Poe],1],due=[3,h,rWe,0,[Dqe],[[()=>J9e,{[ne]:1,[v]:Dte}]]],pue=[3,h,oWe,0,[bGe,Je,vL,AGe,kA,Zo,rne,Kr],[0,0,[()=>vse,0],0,[()=>lx,0],[()=>cx,0],[()=>SKe,0],0],2],fue=[3,h,jre,0,[QL,bg],[0,0],2],mue=[3,h,zre,0,[QL,bg,QA,Qre],[0,0,0,0],4],gue=[3,h,Ure,0,[SWe,Ate],[1,1]],hue=[3,h,cWe,0,[hre],[[()=>nle,16]]],Sue=[3,h,uWe,0,[w,le,Tte,bte,ML,qL,Kt,uo,Qt,Pre,Ure,L],[[0,1],[0,1],0,0,()=>EN,()=>xN,[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],()=>iue,()=>gue,[0,{[l]:N}]],6],yue=[3,h,Bre,0,[ML,bte,Tte,qL],[()=>EN,0,0,()=>xN],4],Eue=[3,h,dWe,0,[lWe,u6e],[0,[()=>Or,0]],1],ON=[3,h,OC,0,[Cg],[[()=>pKe,{[ne]:1,[v]:Hd}]],1],_ue=[3,h,fWe,0,[dGe,zr,zee],[[()=>Eue,0],2,[()=>_oe,0]]],Rue=[3,h,KVe,0,[see,pee,fee,ti],[[0,{[v]:see}],[()=>mee,{[v]:pee}],[()=>mee,{[v]:fee}],[4,{[v]:ti}]],4],Cue=[3,h,PC,{[v]:PC},[],[]],bue=[3,h,qre,0,[Fre,wre],[()=>xue,()=>eue]],Aue=[3,h,KL,{[v]:KA},[o6e],[[()=>Or,0]],1],xue=[3,h,Fre,0,[Wr],[0],1],Tue=[3,h,pWe,{[v]:KA},[a6e,zr],[[()=>H9e,0],2],1],vue=[3,h,Hre,{[v]:Gre},[],[]],Due=[3,h,Vre,0,[Kee,Vee,Wee],[1,1,1]],Iue=[3,h,JVe,0,[hte],[[()=>Due,{[tN]:1}]]],wue=[3,h,Nre,0,[U4e],[()=>Pue]],Pue=[3,h,VVe,0,[X5e,LA],[0,()=>moe],2],du=[3,h,lo,0,[le,ZL],[0,0],2],cx=[3,h,Zo,0,[YA],[[()=>ji,0]],1],Oue=[3,h,xWe,0,[OL,Sre],[[()=>hN,{[Sne]:[hne,ine]}],0]],$ue=[3,h,Yre,0,[PC,TC],[[()=>Cue,{[v]:PC}],[()=>lce,{[v]:TC}]]],kue=[3,h,Xre,0,[nu,Hee],[1,0],2],Mue=[3,h,Wre,0,[EWe,DL,Wt,qi],[[0,{[v]:$We}],[64,{[ne]:1,[v]:IL}],0,[()=>ix,0]],2],Lue=[3,h,ene,0,[gte,nu,Kr],[5,1,0]],Nue=[3,h,NWe,0,[w,gC,Ye,ge,L],[[0,1],[()=>Eoe,{[Ce]:1,[v]:gC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Fue=[3,h,BWe,0,[w,EC,Ye,ge,L],[[0,1],[()=>uae,{[Ce]:1,[v]:EC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Bue=[3,h,GWe,0,[w,_C,Ye,ge,L],[[0,1],[()=>pae,{[Ce]:1,[v]:_C}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Uue=[3,h,jWe,0,[w,le,are,Re,xe,L,Ye,ge],[[0,1],[0,1],[()=>rle,16],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:Qe}],[0,{[l]:ke}]],3],Gue=[3,h,zWe,0,[$e],[[0,{[l]:Ne}]]],que=[3,h,KWe,0,[ate,Xee,Qr,Kt,Qt,un,zr,$e],[[0,{[l]:wne}],[()=>Loe,16],[0,{[l]:ln}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[2,{[l]:Gn}],[0,{[l]:Ne}]]],Hue=[3,h,QWe,0,[w,cte,le,cu,Ka,ete,tte,rte,nte,ZGe,Kt,uo,Qt,ote,bL,ste,xe,L,Cte],[[0,1],[0,{[l]:Cne}],[0,1],[1,{[U]:ZA}],[0,{[U]:vg}],[0,{[l]:bne}],[4,{[l]:Ane}],[0,{[l]:xne}],[4,{[l]:Tne}],[0,{[l]:P8e}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:vne}],[()=>aoe,{[l]:Dne}],[0,{[l]:Ine}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:Mne}]],5],jue=[3,h,YWe,0,[Qr,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,Kt,Qt,un,zr,$e],[[0,{[l]:ln}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[2,{[l]:Gn}],[0,{[l]:Ne}]]],zue=[3,h,JWe,0,[w,le,cu,Ka,dg,Td,Ye,ge,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,Kt,uo,Qt,xe,L],[[0,1],[0,1],[1,{[U]:ZA}],[0,{[U]:vg}],[()=>lu,16],[1,{[l]:xd}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:Te}],[0,{[l]:N}]],4],Vue=[3,h,$C,0,[Kte,Wr],[[0,{[v]:Vte}],0]],Wue=[3,h,kC,0,[xL,$L,HL,zL],[()=>mN,()=>SN,()=>DN,[()=>Zue,0]]],Kue=[3,h,n8e,0,[FVe,GVe,dg,QVe,yte,_te,mL,Rd,Cd,bd,Ad,Td,CL,Dd,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,ou,lt,Xo,ti,co,UL,Nd,Gd,Ud,qd,qA,Rg,$e,WL,Qr,Kt,un,Qt,Kr,YL,Re,zr],[[0,{[u8e]:1,[l]:O9e}],[0,{[l]:F9e}],[()=>lu,16],[1,{[l]:E9e}],[0,{[l]:$8e}],[0,{[l]:k8e}],[0,{[l]:j8e}],[0,{[l]:M8e}],[0,{[l]:L8e}],[0,{[l]:N8e}],[0,{[l]:F8e}],[1,{[l]:xd}],[0,{[l]:B8e}],[0,{[l]:U8e}],[0,{[l]:z8e}],[0,{[l]:V8e}],[0,{[l]:W8e}],[0,{[l]:Q8e}],[0,{[l]:Y8e}],[0,{[l]:J8e}],[0,{[l]:K8e}],[0,{[l]:X8e}],[0,{[l]:Z8e}],[0,{[l]:e9e}],[2,{[l]:t9e}],[0,{[l]:G8e}],[4,{[l]:q8e}],[0,{[l]:r9e}],[4,{[l]:H8e}],[1,{[l]:n9e}],[128,{[zd]:Jd}],[0,{[l]:i9e}],[0,{[l]:s9e}],[5,{[l]:a9e}],[1,{[l]:o9e}],[0,{[l]:l9e}],[0,{[l]:u9e}],[0,{[l]:c9e}],[0,{[l]:p9e}],[0,{[l]:g9e}],[()=>Or,{[l]:f9e}],[0,{[l]:h9e}],[0,{[l]:d9e}],[1,{[l]:S9e}],[0,{[l]:y9e}],[2,{[l]:m9e}]],2],pe="unit",j9e=[1,h,kee,0,[()=>rx,0]],z9e=[1,h,XUe,0,[()=>hoe,{[v]:Nee}]],Que=[1,h,yL,0,[()=>Roe,{[v]:w}]],ux=[1,h,WGe,0,()=>Toe],V9e=[1,h,KGe,0,()=>Doe],Yue=[1,h,_L,0,[()=>Foe,0]],W9e=[1,h,sqe,0,()=>fse],K9e=[1,h,pte,0,()=>mse],Q9e=[1,h,Rqe,0,[0,{[v]:TL}]],Y9e=[1,h,xte,0,()=>wse],J9e=[1,h,vqe,0,()=>$se],lx=[1,h,NA,0,[()=>Qie,{[v]:PL}]],X9e=[1,h,Nte,0,[()=>nx,0]],Z9e=[1,h,kte,0,[()=>ox,0]],eKe=[1,h,Uje,0,[0,{[v]:Iqe}]],tKe=[1,h,M6e,0,[()=>gae,0]],Jue=[1,h,l5e,0,[()=>Sae,0]],rKe=[1,h,jte,0,[()=>sx,0]],nKe=[1,h,_5e,0,()=>Xae],oKe=[1,h,k5e,0,()=>ece],sKe=[1,h,G5e,0,()=>rce],Xue=[1,h,W5e,0,[()=>tce,0]],iKe=[1,h,eze,0,[()=>sce,0]],aKe=[1,h,F5e,0,()=>ace],cKe=[1,h,jA,0,()=>uce],uKe=[1,h,jze,0,()=>oce],lKe=[1,h,yVe,0,[()=>Qce,0]],dKe=[1,h,NVe,0,[()=>tue,0]],Zue=[1,h,zL,0,[()=>lue,{[v]:Ore}]],pKe=[1,h,mWe,0,[()=>_ue,0]],ji=[1,h,YA,0,[()=>du,{[v]:lo}]],fKe=[1,h,Kre,0,[()=>Oue,{[v]:PL}]],mKe=[1,h,TWe,0,()=>kue],gKe=[1,h,CWe,0,[()=>Mue,0]],hKe=[1,h,vWe,0,()=>Lue],SKe=[1,h,rne,0,[()=>Wae,{[v]:Wte}]],ele=[4,h,KUe,0,[Je,lo,lg],[0,()=>du,[()=>foe,0]]],tle=[4,h,S5e,0,[Je,lo,Uee,lg],[0,()=>du,0,[()=>Jae,0]]],rle=[4,h,are,0,[KL],[[()=>Tue,{[v]:KA}]]],nle=[4,h,aWe,{[gne]:1},[HVe,Vre,Ere,c4e,Ate],[[()=>Yce,0],[()=>Iue,0],[()=>fce,0],()=>Ooe,()=>Ise]],ole=[9,h,tGe,{[M]:["DELETE","/{Key+}?x-id=AbortMultipartUpload",204]},()=>loe,()=>uoe],sle=[9,h,Yee,{[M]:["POST","/{Key+}",200]},()=>woe,()=>Ioe],ile=[9,h,HGe,{[M]:["PUT","/{Key+}?x-id=CopyObject",200]},()=>koe,()=>$oe],ale=[9,h,xGe,{[M]:["PUT","/",200]},()=>Hoe,()=>qoe],cle=[9,h,TGe,{[ve]:"-",[M]:["POST","/?metadataConfiguration",200]},()=>Uoe,()=>pe],ule=[9,h,DGe,{[ve]:"-",[M]:["POST","/?metadataTable",200]},()=>Goe,()=>pe],lle=[9,h,qGe,{[M]:["POST","/{Key+}?uploads",200]},()=>zoe,()=>joe],dle=[9,h,n4e,{[M]:["GET","/?session",200]},()=>Woe,()=>Voe],ple=[9,h,l4e,{[M]:["DELETE","/",204]},()=>lse,()=>pe],fle=[9,h,d4e,{[M]:["DELETE","/?analytics",204]},()=>Xoe,()=>pe],mle=[9,h,f4e,{[M]:["DELETE","/?cors",204]},()=>Zoe,()=>pe],gle=[9,h,g4e,{[M]:["DELETE","/?encryption",204]},()=>ese,()=>pe],hle=[9,h,E4e,{[M]:["DELETE","/?intelligent-tiering",204]},()=>tse,()=>pe],Sle=[9,h,S4e,{[M]:["DELETE","/?inventory",204]},()=>rse,()=>pe],yle=[9,h,R4e,{[M]:["DELETE","/?lifecycle",204]},()=>nse,()=>pe],Ele=[9,h,b4e,{[M]:["DELETE","/?metadataConfiguration",204]},()=>ose,()=>pe],_le=[9,h,v4e,{[M]:["DELETE","/?metadataTable",204]},()=>sse,()=>pe],Rle=[9,h,T4e,{[M]:["DELETE","/?metrics",204]},()=>ise,()=>pe],Cle=[9,h,I4e,{[M]:["DELETE","/?ownershipControls",204]},()=>ase,()=>pe],ble=[9,h,P4e,{[M]:["DELETE","/?policy",204]},()=>cse,()=>pe],Ale=[9,h,M4e,{[M]:["DELETE","/?replication",204]},()=>use,()=>pe],xle=[9,h,L4e,{[M]:["DELETE","/?tagging",204]},()=>dse,()=>pe],Tle=[9,h,F4e,{[M]:["DELETE","/?website",204]},()=>pse,()=>pe],vle=[9,h,iqe,{[M]:["DELETE","/{Key+}?x-id=DeleteObject",204]},()=>Ese,()=>yse],Dle=[9,h,Q4e,{[M]:["DELETE","/{Key+}?annotation",204]},()=>Sse,()=>hse],Ile=[9,h,aqe,{[ve]:"-",[M]:["POST","/?delete",200]},()=>Rse,()=>_se],wle=[9,h,rqe,{[M]:["DELETE","/{Key+}?tagging",204]},()=>bse,()=>Cse],Ple=[9,h,cqe,{[M]:["DELETE","/?publicAccessBlock",204]},()=>Ase,()=>pe],Ole=[9,h,Pqe,{[M]:["GET","/?abac",200]},()=>Mse,()=>kse],$le=[9,h,Oqe,{[M]:["GET","/?accelerate",200]},()=>Nse,()=>Lse],kle=[9,h,qqe,{[M]:["GET","/?acl",200]},()=>Bse,()=>Fse],Mle=[9,h,Nqe,{[M]:["GET","/?analytics&x-id=GetBucketAnalyticsConfiguration",200]},()=>Gse,()=>Use],Lle=[9,h,Hqe,{[M]:["GET","/?cors",200]},()=>Hse,()=>qse],Nle=[9,h,Vqe,{[M]:["GET","/?encryption",200]},()=>zse,()=>jse],Fle=[9,h,Xqe,{[M]:["GET","/?intelligent-tiering&x-id=GetBucketIntelligentTieringConfiguration",200]},()=>Wse,()=>Vse],Ble=[9,h,Qqe,{[M]:["GET","/?inventory&x-id=GetBucketInventoryConfiguration",200]},()=>Qse,()=>Kse],Ule=[9,h,rHe,{[M]:["GET","/?lifecycle",200]},()=>Jse,()=>Yse],Gle=[9,h,tHe,{[M]:["GET","/?location",200]},()=>Zse,()=>Xse],qle=[9,h,uHe,{[M]:["GET","/?logging",200]},()=>tie,()=>eie],Hle=[9,h,lHe,{[M]:["GET","/?metadataConfiguration",200]},()=>nie,()=>rie],jle=[9,h,hHe,{[M]:["GET","/?metadataTable",200]},()=>iie,()=>sie],zle=[9,h,gHe,{[M]:["GET","/?metrics&x-id=GetBucketMetricsConfiguration",200]},()=>uie,()=>cie],Vle=[9,h,EHe,{[M]:["GET","/?notification",200]},()=>lie,()=>RN],Wle=[9,h,RHe,{[M]:["GET","/?ownershipControls",200]},()=>pie,()=>die],Kle=[9,h,AHe,{[M]:["GET","/?policy",200]},()=>mie,()=>fie],Qle=[9,h,vHe,{[M]:["GET","/?policyStatus",200]},()=>hie,()=>gie],Yle=[9,h,wHe,{[M]:["GET","/?replication",200]},()=>yie,()=>Sie],Jle=[9,h,OHe,{[M]:["GET","/?requestPayment",200]},()=>_ie,()=>Eie],Xle=[9,h,LHe,{[M]:["GET","/?tagging",200]},()=>Cie,()=>Rie],Zle=[9,h,BHe,{[M]:["GET","/?versioning",200]},()=>Aie,()=>bie],ede=[9,h,qHe,{[M]:["GET","/?website",200]},()=>Tie,()=>xie],tde=[9,h,zHe,{[ve]:"-",[M]:["GET","/{Key+}?x-id=GetObject",200]},()=>Bie,()=>Fie],rde=[9,h,VHe,{[M]:["GET","/{Key+}?acl",200]},()=>Die,()=>vie],nde=[9,h,tje,{[ve]:"-",[M]:["GET","/{Key+}?annotation&x-id=GetObjectAnnotation",200]},()=>wie,()=>Iie],ode=[9,h,rje,{[M]:["GET","/{Key+}?attributes",200]},()=>$ie,()=>Pie],sde=[9,h,ije,{[M]:["GET","/{Key+}?legal-hold",200]},()=>Mie,()=>kie],ide=[9,h,nje,{[M]:["GET","/?object-lock",200]},()=>Nie,()=>Lie],ade=[9,h,fje,{[M]:["GET","/{Key+}?retention",200]},()=>Gie,()=>Uie],cde=[9,h,mje,{[M]:["GET","/{Key+}?tagging",200]},()=>Hie,()=>qie],ude=[9,h,Eje,{[M]:["GET","/{Key+}?torrent",200]},()=>zie,()=>jie],lde=[9,h,_je,{[M]:["GET","/?publicAccessBlock",200]},()=>Wie,()=>Vie],dde=[9,h,bje,{[M]:["HEAD","/",200]},()=>Jie,()=>Yie],pde=[9,h,vje,{[M]:["HEAD","/{Key+}",200]},()=>Zie,()=>Xie],fde=[9,h,m6e,{[M]:["GET","/?analytics&x-id=ListBucketAnalyticsConfigurations",200]},()=>Rae,()=>_ae],mde=[9,h,R6e,{[M]:["GET","/?intelligent-tiering&x-id=ListBucketIntelligentTieringConfigurations",200]},()=>bae,()=>Cae],gde=[9,h,y6e,{[M]:["GET","/?inventory&x-id=ListBucketInventoryConfigurations",200]},()=>xae,()=>Aae],hde=[9,h,A6e,{[M]:["GET","/?metrics&x-id=ListBucketMetricsConfigurations",200]},()=>vae,()=>Tae],Sde=[9,h,f6e,{[M]:["GET","/?x-id=ListBuckets",200]},()=>Iae,()=>Dae],yde=[9,h,I6e,{[M]:["GET","/?x-id=ListDirectoryBuckets",200]},()=>Pae,()=>wae],Ede=[9,h,G6e,{[M]:["GET","/?uploads",200]},()=>$ae,()=>Oae],_de=[9,h,V6e,{[M]:["GET","/{Key+}?annotation&x-id=ListObjectAnnotations",200]},()=>Mae,()=>kae],Rde=[9,h,z6e,{[M]:["GET","/",200]},()=>Nae,()=>Lae],Cde=[9,h,J6e,{[M]:["GET","/?list-type=2",200]},()=>Bae,()=>Fae],bde=[9,h,r5e,{[M]:["GET","/?versions",200]},()=>Gae,()=>Uae],Ade=[9,h,n5e,{[M]:["GET","/{Key+}?x-id=ListParts",200]},()=>Hae,()=>qae],xde=[9,h,rze,{[ve]:"-",[M]:["PUT","/?abac",200]},()=>mce,()=>pe],Tde=[9,h,nze,{[ve]:"-",[M]:["PUT","/?accelerate",200]},()=>gce,()=>pe],vde=[9,h,uze,{[ve]:"-",[M]:["PUT","/?acl",200]},()=>hce,()=>pe],Dde=[9,h,ize,{[M]:["PUT","/?analytics",200]},()=>Sce,()=>pe],Ide=[9,h,lze,{[ve]:"-",[M]:["PUT","/?cors",200]},()=>yce,()=>pe],wde=[9,h,pze,{[ve]:"-",[M]:["PUT","/?encryption",200]},()=>Ece,()=>pe],Pde=[9,h,hze,{[M]:["PUT","/?intelligent-tiering",200]},()=>_ce,()=>pe],Ode=[9,h,mze,{[M]:["PUT","/?inventory",200]},()=>Rce,()=>pe],$de=[9,h,Eze,{[ve]:"-",[M]:["PUT","/?lifecycle",200]},()=>bce,()=>Cce],kde=[9,h,yze,{[ve]:"-",[M]:["PUT","/?logging",200]},()=>Ace,()=>pe],Mde=[9,h,bze,{[M]:["PUT","/?metrics",200]},()=>xce,()=>pe],Lde=[9,h,xze,{[M]:["PUT","/?notification",200]},()=>Tce,()=>pe],Nde=[9,h,vze,{[ve]:"-",[M]:["PUT","/?ownershipControls",200]},()=>vce,()=>pe],Fde=[9,h,Ize,{[ve]:"-",[M]:["PUT","/?policy",200]},()=>Dce,()=>pe],Bde=[9,h,Pze,{[ve]:"-",[M]:["PUT","/?replication",200]},()=>Ice,()=>pe],Ude=[9,h,Oze,{[ve]:"-",[M]:["PUT","/?requestPayment",200]},()=>wce,()=>pe],Gde=[9,h,Mze,{[ve]:"-",[M]:["PUT","/?tagging",200]},()=>Pce,()=>pe],qde=[9,h,Nze,{[ve]:"-",[M]:["PUT","/?versioning",200]},()=>Oce,()=>pe],Hde=[9,h,Bze,{[ve]:"-",[M]:["PUT","/?website",200]},()=>$ce,()=>pe],jde=[9,h,zze,{[ve]:"-",[M]:["PUT","/{Key+}?x-id=PutObject",200]},()=>Hce,()=>qce],zde=[9,h,Vze,{[ve]:"-",[M]:["PUT","/{Key+}?acl",200]},()=>Mce,()=>kce],Vde=[9,h,Jze,{[ve]:"-",[M]:["PUT","/{Key+}?annotation",200]},()=>Nce,()=>Lce],Wde=[9,h,tVe,{[ve]:"-",[M]:["PUT","/{Key+}?legal-hold",200]},()=>Bce,()=>Fce],Kde=[9,h,Xze,{[ve]:"-",[M]:["PUT","/?object-lock",200]},()=>Gce,()=>Uce],Qde=[9,h,cVe,{[ve]:"-",[M]:["PUT","/{Key+}?retention",200]},()=>zce,()=>jce],Yde=[9,h,uVe,{[ve]:"-",[M]:["PUT","/{Key+}?tagging",200]},()=>Wce,()=>Vce],Jde=[9,h,pVe,{[ve]:"-",[M]:["PUT","/?publicAccessBlock",200]},()=>Kce,()=>pe],Xde=[9,h,vVe,{[M]:["PUT","/{Key+}?renameObject",200]},()=>Zce,()=>Xce],Zde=[9,h,$Ve,{[ve]:"-",[M]:["POST","/{Key+}?restore",200]},()=>cue,()=>aue],epe=[9,h,iWe,{[M]:["POST","/{Key+}?select&select-type=2",200]},()=>Sue,()=>hue],tpe=[9,h,LWe,{[ve]:"-",[M]:["PUT","/?metadataAnnotationTable",200]},()=>Nue,()=>pe],rpe=[9,h,FWe,{[ve]:"-",[M]:["PUT","/?metadataInventoryTable",200]},()=>Fue,()=>pe],npe=[9,h,UWe,{[ve]:"-",[M]:["PUT","/?metadataJournalTable",200]},()=>Bue,()=>pe],ope=[9,h,HWe,{[ve]:"-",[M]:["PUT","/{Key+}?encryption",200]},()=>Uue,()=>Gue],spe=[9,h,VWe,{[ve]:"-",[M]:["PUT","/{Key+}?x-id=UploadPart",200]},()=>zue,()=>jue],ipe=[9,h,WWe,{[M]:["PUT","/{Key+}?x-id=UploadPartCopy",200]},()=>Hue,()=>que],ape=[9,h,r8e,{[a8e]:["{RequestRoute}."],[M]:["POST","/WriteGetObjectResponse",200]},()=>Kue,()=>pe],rg=class extends k(Pee,ce,"CreateSession",dle){},yKe="3.1151.0",EKe={version:yKe},_Ke=t=>({apiVersion:"2006-03-01",base64Decoder:t?.base64Decoder??dUe,base64Encoder:t?.base64Encoder??lUe,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??Dee,extensions:t?.extensions??[],getAwsChunkedEncodingStream:t?.getAwsChunkedEncodingStream??uUe,httpAuthSchemeProvider:t?.httpAuthSchemeProvider??TUe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new X2e},{schemeId:"aws.auth#sigv4a",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4a"),signer:new Z2e}],logger:t?.logger??new y2e,md5:t?.md5??oUe,protocol:t?.protocol??o2e,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.s3",errorTypeRegistries:ioe,xmlNamespace:"http://s3.amazonaws.com/doc/2006-03-01/",version:"2006-03-01",serviceTarget:"AmazonS3"},sdkStreamMixin:t?.sdkStreamMixin??cUe,serviceId:t?.serviceId??"S3",sha1:t?.sha1??gUe,sha256:t?.sha256??nUe,signerConstructor:t?.signerConstructor??_ee,signingEscapePath:t?.signingEscapePath??!1,urlParser:t?.urlParser??U2e,useArnRegion:t?.useArnRegion??void 0,utf8Decoder:t?.utf8Decoder??aUe,utf8Encoder:t?.utf8Encoder??iUe}),RKe=t=>{E2e(process.version);let e=x2e(t),r=()=>e().then(_2e),n=_Ke(t);zBe(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??oo(tUe,o),bodyLengthChecker:t?.bodyLengthChecker??pUe,credentialDefaultProvider:t?.credentialDefaultProvider??rUe,defaultUserAgentProvider:t?.defaultUserAgentProvider??VBe({serviceId:n.serviceId,clientVersion:EKe.version}),disableS3ExpressSessionAuth:t?.disableS3ExpressSessionAuth??oo(i2e,o),eventStreamSerdeProvider:t?.eventStreamSerdeProvider??F2e,maxAttempts:t?.maxAttempts??oo(V2e,t),region:t?.region??oo(D2e,{...I2e,...o}),requestChecksumCalculation:t?.requestChecksumCalculation??oo(qBe,o),requestHandler:mUe.create(t?.requestHandler??r),responseChecksumValidation:t?.responseChecksumValidation??oo(GBe,o),retryMode:t?.retryMode??oo({...z2e,default:async()=>(await r()).retryMode||j2e},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??oo(eUe,o),streamCollector:t?.streamCollector??fUe,streamHasher:t?.streamHasher??sUe,useArnRegion:t?.useArnRegion??oo(s2e,o),useDualstackEndpoint:t?.useDualstackEndpoint??oo(v2e,o),useFipsEndpoint:t?.useFipsEndpoint??oo(T2e,o),userAgentAppId:t?.userAgentAppId??oo(WBe,o)}},CKe=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},bKe=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),AKe=(t,e)=>{let r=Object.assign(KBe(t),R2e(t),G2e(t),CKe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,QBe(r),C2e(r),q2e(r),bKe(r))},Bi=class extends yee{config;constructor(...[e]){let r=RKe(e||{});super(r),this.initConfig=r;let n=DUe(r),o=YBe(n),s=HBe(o),i=W2e(s),a=w2e(i),c=JBe(a),u=N2e(c),f=B2e(u),m=vUe(f),y=a2e(m,{session:[()=>this,rg]}),_=AKe(y,e?.extensions||[]);this.config=_,this.middlewareStack.use(Q2e(this.config)),this.middlewareStack.use(XBe(this.config)),this.middlewareStack.use(K2e(this.config)),this.middlewareStack.use(H2e(this.config)),this.middlewareStack.use(ZBe(this.config)),this.middlewareStack.use(e2e(this.config)),this.middlewareStack.use(t2e(this.config)),this.middlewareStack.use(f2e(this.config,{httpAuthSchemeParametersProvider:bUe,identityProviderConfigProvider:async C=>new m2e({"aws.auth#sigv4":C.credentials,"aws.auth#sigv4a":C.credentials})})),this.middlewareStack.use(g2e(this.config)),this.middlewareStack.use(c2e(this.config)),this.middlewareStack.use(u2e(this.config)),this.middlewareStack.use(l2e(this.config)),this.middlewareStack.use(d2e(this.config)),this.middlewareStack.use(p2e(this.config))}destroy(){super.destroy()}},MC=class extends k(An,ce,"AbortMultipartUpload",ole){},LC=class extends k(An,Ed,"CompleteMultipartUpload",sle){},NC=class extends k(wUe,Ed,"CopyObject",ile){},FC=class extends k(PUe,MUe,"CreateBucket",ale){},BC=class extends k(z,Pr,"CreateBucketMetadataConfiguration",cle){},UC=class extends k(z,Pr,"CreateBucketMetadataTableConfiguration",ule){},GC=class extends k(An,Ed,"CreateMultipartUpload",lle){},qC=class extends k(z,at,"DeleteBucketAnalyticsConfiguration",fle){},HC=class extends k(z,at,"DeleteBucket",ple){},jC=class extends k(z,at,"DeleteBucketCors",mle){},zC=class extends k(z,at,"DeleteBucketEncryption",gle){},VC=class extends k(z,at,"DeleteBucketIntelligentTieringConfiguration",hle){},WC=class extends k(z,at,"DeleteBucketInventoryConfiguration",Sle){},KC=class extends k(z,at,"DeleteBucketLifecycle",yle){},QC=class extends k(z,at,"DeleteBucketMetadataConfiguration",Ele){},YC=class extends k(z,at,"DeleteBucketMetadataTableConfiguration",_le){},JC=class extends k(z,at,"DeleteBucketMetricsConfiguration",Rle){},XC=class extends k(z,at,"DeleteBucketOwnershipControls",Cle){},ZC=class extends k(z,at,"DeleteBucketPolicy",ble){},eb=class extends k(z,at,"DeleteBucketReplication",Ale){},tb=class extends k(z,at,"DeleteBucketTagging",xle){},rb=class extends k(z,at,"DeleteBucketWebsite",Tle){},nb=class extends k($t,ce,"DeleteObjectAnnotation",Dle){},ob=class extends k(An,ce,"DeleteObject",vle){},sb=class extends k($t,za,"DeleteObjects",Ile){},ib=class extends k($t,ce,"DeleteObjectTagging",wle){},ab=class extends k(z,at,"DeletePublicAccessBlock",Ple){},cb=class extends k($t,ce,"GetBucketAbac",Ole){},ub=class extends k(z,ce,"GetBucketAccelerateConfiguration",$le){},lb=class extends k(z,ce,"GetBucketAcl",kle){},db=class extends k(z,ce,"GetBucketAnalyticsConfiguration",Mle){},pb=class extends k(z,ce,"GetBucketCors",Lle){},fb=class extends k(z,ce,"GetBucketEncryption",Nle){},mb=class extends k(z,ce,"GetBucketIntelligentTieringConfiguration",Fle){},gb=class extends k(z,ce,"GetBucketInventoryConfiguration",Ble){},hb=class extends k(z,ce,"GetBucketLifecycleConfiguration",Ule){},Sb=class extends k(z,ce,"GetBucketLocation",Gle){},yb=class extends k(z,ce,"GetBucketLogging",qle){},Eb=class extends k(z,ce,"GetBucketMetadataConfiguration",Hle){},_b=class extends k(z,ce,"GetBucketMetadataTableConfiguration",jle){},Rb=class extends k(z,ce,"GetBucketMetricsConfiguration",zle){},Cb=class extends k(z,ce,"GetBucketNotificationConfiguration",Vle){},bb=class extends k(z,ce,"GetBucketOwnershipControls",Wle){},Ab=class extends k(z,at,"GetBucketPolicy",Kle){},xb=class extends k(z,ce,"GetBucketPolicyStatus",Qle){},Tb=class extends k(z,ce,"GetBucketReplication",Yle){},vb=class extends k(z,ce,"GetBucketRequestPayment",Jle){},Db=class extends k(z,ce,"GetBucketTagging",Xle){},Ib=class extends k(z,ce,"GetBucketVersioning",Zle){},wb=class extends k(z,ce,"GetBucketWebsite",ede){},Pb=class extends k(An,ce,"GetObjectAcl",rde){},Ob=class extends k(An,LUe,"GetObjectAnnotation",nde){},$b=class extends k($t,Ed,"GetObjectAttributes",ode){},kb=class extends k(An,NUe,"GetObject",tde){},Mb=class extends k($t,ce,"GetObjectLegalHold",sde){},Lb=class extends k($t,ce,"GetObjectLockConfiguration",ide){},Nb=class extends k($t,ce,"GetObjectRetention",ade){},Fb=class extends k($t,ce,"GetObjectTagging",cde){},Bb=class extends k($t,at,"GetObjectTorrent",ude){},Ub=class extends k(z,ce,"GetPublicAccessBlock",lde){},hd=class extends k($t,ce,"HeadBucket",dde){},Sd=class extends k(An,FUe,"HeadObject",pde){},Gb=class extends k(z,ce,"ListBucketAnalyticsConfigurations",fde){},qb=class extends k(z,ce,"ListBucketIntelligentTieringConfigurations",mde){},Hb=class extends k(z,ce,"ListBucketInventoryConfigurations",gde){},jb=class extends k(z,ce,"ListBucketMetricsConfigurations",hde){},ng=class extends k(OUe,ce,"ListBuckets",Sde){},og=class extends k($Ue,ce,"ListDirectoryBuckets",yde){},zb=class extends k($A,ce,"ListMultipartUploads",Ede){},sg=class extends k($t,ce,"ListObjectAnnotations",_de){},Vb=class extends k($A,ce,"ListObjects",Rde){},ig=class extends k($A,ce,"ListObjectsV2",Cde){},Wb=class extends k($A,ce,"ListObjectVersions",bde){},ag=class extends k(An,Ed,"ListParts",Ade){},Kb=class extends k($t,Oee,"PutBucketAbac",xde){},Qb=class extends k(z,Oee,"PutBucketAccelerateConfiguration",Tde){},Yb=class extends k(z,Pr,"PutBucketAcl",vde){},Jb=class extends k(z,at,"PutBucketAnalyticsConfiguration",Dde){},Xb=class extends k(z,Pr,"PutBucketCors",Ide){},Zb=class extends k(z,Pr,"PutBucketEncryption",wde){},eA=class extends k(z,at,"PutBucketIntelligentTieringConfiguration",Pde){},tA=class extends k(z,at,"PutBucketInventoryConfiguration",Ode){},rA=class extends k(z,za,"PutBucketLifecycleConfiguration",$de){},nA=class extends k(z,Pr,"PutBucketLogging",kde){},oA=class extends k(z,at,"PutBucketMetricsConfiguration",Mde){},sA=class extends k(z,at,"PutBucketNotificationConfiguration",Lde){},iA=class extends k(z,Pr,"PutBucketOwnershipControls",Nde){},aA=class extends k(z,Pr,"PutBucketPolicy",Fde){},cA=class extends k(z,Pr,"PutBucketReplication",Bde){},uA=class extends k(z,Pr,"PutBucketRequestPayment",Ude){},lA=class extends k(z,Pr,"PutBucketTagging",Gde){},dA=class extends k(z,Pr,"PutBucketVersioning",qde){},pA=class extends k(z,Pr,"PutBucketWebsite",Hde){},fA=class extends k(An,za,"PutObjectAcl",zde){},mA=class extends k(An,$ee,"PutObjectAnnotation",Vde){},gA=class extends k(An,BUe,"PutObject",jde){},hA=class extends k($t,za,"PutObjectLegalHold",Wde){},SA=class extends k($t,za,"PutObjectLockConfiguration",Kde){},yA=class extends k($t,za,"PutObjectRetention",Qde){},EA=class extends k($t,za,"PutObjectTagging",Yde){},_A=class extends k(z,Pr,"PutPublicAccessBlock",Jde){},RA=class extends k(An,ce,"RenameObject",Xde){},CA=class extends k($t,$ee,"RestoreObject",Zde){},bA=class extends k($t,UUe,"SelectObjectContent",epe){},AA=class extends k(z,Pr,"UpdateBucketMetadataAnnotationTableConfiguration",tpe){},xA=class extends k(z,Pr,"UpdateBucketMetadataInventoryTableConfiguration",rpe){},TA=class extends k(z,Pr,"UpdateBucketMetadataJournalTableConfiguration",npe){},vA=class extends k($t,za,"UpdateObjectEncryption",ope){},DA=class extends k(An,GUe,"UploadPart",spe){},IA=class extends k(Pee,Ed,"UploadPartCopy",ipe){},wA=class extends k(kUe,at,"WriteGetObjectResponse",ape){},cpe=cg(Bi,ng,"ContinuationToken","ContinuationToken","MaxBuckets"),upe=cg(Bi,og,"ContinuationToken","ContinuationToken","MaxDirectoryBuckets"),lpe=cg(Bi,sg,"ContinuationToken","NextContinuationToken","MaxAnnotationResults"),dpe=cg(Bi,ig,"ContinuationToken","NextContinuationToken","MaxKeys"),ppe=cg(Bi,ag,"PartNumberMarker","NextPartNumberMarker","MaxParts"),fpe=async(t,e)=>{let r;try{return r=await t.send(new hd(e)),{state:ei.SUCCESS,reason:r}}catch(n){if(r=n,n.name==="NotFound")return{state:ei.RETRY,reason:r}}return{state:ei.RETRY,reason:r}},xKe=async(t,e)=>ja({...{minDelay:5,maxDelay:120},...t},e,fpe),mpe=async(t,e)=>{let n=await ja({...{minDelay:5,maxDelay:120},...t},e,fpe);return OA(n)},gpe=async(t,e)=>{let r;try{r=await t.send(new hd(e))}catch(n){if(r=n,n.name==="NotFound")return{state:ei.SUCCESS,reason:r}}return{state:ei.RETRY,reason:r}},TKe=async(t,e)=>ja({...{minDelay:5,maxDelay:120},...t},e,gpe),hpe=async(t,e)=>{let n=await ja({...{minDelay:5,maxDelay:120},...t},e,gpe);return OA(n)},Spe=async(t,e)=>{let r;try{return r=await t.send(new Sd(e)),{state:ei.SUCCESS,reason:r}}catch(n){if(r=n,n.name==="NotFound")return{state:ei.RETRY,reason:r}}return{state:ei.RETRY,reason:r}},vKe=async(t,e)=>ja({...{minDelay:5,maxDelay:120},...t},e,Spe),ype=async(t,e)=>{let n=await ja({...{minDelay:5,maxDelay:120},...t},e,Spe);return OA(n)},Epe=async(t,e)=>{let r;try{r=await t.send(new Sd(e))}catch(n){if(r=n,n.name==="NotFound")return{state:ei.SUCCESS,reason:r}}return{state:ei.RETRY,reason:r}},DKe=async(t,e)=>ja({...{minDelay:5,maxDelay:120},...t},e,Epe),_pe=async(t,e)=>{let n=await ja({...{minDelay:5,maxDelay:120},...t},e,Epe);return OA(n)},IKe={AbortMultipartUploadCommand:MC,CompleteMultipartUploadCommand:LC,CopyObjectCommand:NC,CreateBucketCommand:FC,CreateBucketMetadataConfigurationCommand:BC,CreateBucketMetadataTableConfigurationCommand:UC,CreateMultipartUploadCommand:GC,CreateSessionCommand:rg,DeleteBucketCommand:HC,DeleteBucketAnalyticsConfigurationCommand:qC,DeleteBucketCorsCommand:jC,DeleteBucketEncryptionCommand:zC,DeleteBucketIntelligentTieringConfigurationCommand:VC,DeleteBucketInventoryConfigurationCommand:WC,DeleteBucketLifecycleCommand:KC,DeleteBucketMetadataConfigurationCommand:QC,DeleteBucketMetadataTableConfigurationCommand:YC,DeleteBucketMetricsConfigurationCommand:JC,DeleteBucketOwnershipControlsCommand:XC,DeleteBucketPolicyCommand:ZC,DeleteBucketReplicationCommand:eb,DeleteBucketTaggingCommand:tb,DeleteBucketWebsiteCommand:rb,DeleteObjectCommand:ob,DeleteObjectAnnotationCommand:nb,DeleteObjectsCommand:sb,DeleteObjectTaggingCommand:ib,DeletePublicAccessBlockCommand:ab,GetBucketAbacCommand:cb,GetBucketAccelerateConfigurationCommand:ub,GetBucketAclCommand:lb,GetBucketAnalyticsConfigurationCommand:db,GetBucketCorsCommand:pb,GetBucketEncryptionCommand:fb,GetBucketIntelligentTieringConfigurationCommand:mb,GetBucketInventoryConfigurationCommand:gb,GetBucketLifecycleConfigurationCommand:hb,GetBucketLocationCommand:Sb,GetBucketLoggingCommand:yb,GetBucketMetadataConfigurationCommand:Eb,GetBucketMetadataTableConfigurationCommand:_b,GetBucketMetricsConfigurationCommand:Rb,GetBucketNotificationConfigurationCommand:Cb,GetBucketOwnershipControlsCommand:bb,GetBucketPolicyCommand:Ab,GetBucketPolicyStatusCommand:xb,GetBucketReplicationCommand:Tb,GetBucketRequestPaymentCommand:vb,GetBucketTaggingCommand:Db,GetBucketVersioningCommand:Ib,GetBucketWebsiteCommand:wb,GetObjectCommand:kb,GetObjectAclCommand:Pb,GetObjectAnnotationCommand:Ob,GetObjectAttributesCommand:$b,GetObjectLegalHoldCommand:Mb,GetObjectLockConfigurationCommand:Lb,GetObjectRetentionCommand:Nb,GetObjectTaggingCommand:Fb,GetObjectTorrentCommand:Bb,GetPublicAccessBlockCommand:Ub,HeadBucketCommand:hd,HeadObjectCommand:Sd,ListBucketAnalyticsConfigurationsCommand:Gb,ListBucketIntelligentTieringConfigurationsCommand:qb,ListBucketInventoryConfigurationsCommand:Hb,ListBucketMetricsConfigurationsCommand:jb,ListBucketsCommand:ng,ListDirectoryBucketsCommand:og,ListMultipartUploadsCommand:zb,ListObjectAnnotationsCommand:sg,ListObjectsCommand:Vb,ListObjectsV2Command:ig,ListObjectVersionsCommand:Wb,ListPartsCommand:ag,PutBucketAbacCommand:Kb,PutBucketAccelerateConfigurationCommand:Qb,PutBucketAclCommand:Yb,PutBucketAnalyticsConfigurationCommand:Jb,PutBucketCorsCommand:Xb,PutBucketEncryptionCommand:Zb,PutBucketIntelligentTieringConfigurationCommand:eA,PutBucketInventoryConfigurationCommand:tA,PutBucketLifecycleConfigurationCommand:rA,PutBucketLoggingCommand:nA,PutBucketMetricsConfigurationCommand:oA,PutBucketNotificationConfigurationCommand:sA,PutBucketOwnershipControlsCommand:iA,PutBucketPolicyCommand:aA,PutBucketReplicationCommand:cA,PutBucketRequestPaymentCommand:uA,PutBucketTaggingCommand:lA,PutBucketVersioningCommand:dA,PutBucketWebsiteCommand:pA,PutObjectCommand:gA,PutObjectAclCommand:fA,PutObjectAnnotationCommand:mA,PutObjectLegalHoldCommand:hA,PutObjectLockConfigurationCommand:SA,PutObjectRetentionCommand:yA,PutObjectTaggingCommand:EA,PutPublicAccessBlockCommand:_A,RenameObjectCommand:RA,RestoreObjectCommand:CA,SelectObjectContentCommand:bA,UpdateBucketMetadataAnnotationTableConfigurationCommand:AA,UpdateBucketMetadataInventoryTableConfigurationCommand:xA,UpdateBucketMetadataJournalTableConfigurationCommand:TA,UpdateObjectEncryptionCommand:vA,UploadPartCommand:DA,UploadPartCopyCommand:IA,WriteGetObjectResponseCommand:wA},wKe={paginateListBuckets:cpe,paginateListDirectoryBuckets:upe,paginateListObjectAnnotations:lpe,paginateListObjectsV2:dpe,paginateListParts:ppe},PKe={waitUntilBucketExists:mpe,waitUntilBucketNotExists:hpe,waitUntilObjectExists:ype,waitUntilObjectNotExists:_pe},PA=class extends Bi{};b2e(IKe,PA,{paginators:wKe,waiters:PKe});var OKe={Disabled:"Disabled",Enabled:"Enabled"},$Ke={requester:"requester"},kKe={requester:"requester"},MKe={Enabled:"Enabled",Suspended:"Suspended"},LKe={AmazonCustomerByEmail:"AmazonCustomerByEmail",CanonicalUser:"CanonicalUser",Group:"Group"},NKe={FULL_CONTROL:"FULL_CONTROL",READ:"READ",READ_ACP:"READ_ACP",WRITE:"WRITE",WRITE_ACP:"WRITE_ACP"},FKe={Destination:"Destination"},BKe={COMPOSITE:"COMPOSITE",FULL_OBJECT:"FULL_OBJECT"},UKe={AES256:"AES256",aws_backup:"aws:backup",aws_fsx:"aws:fsx",aws_kms:"aws:kms",aws_kms_dsse:"aws:kms:dsse"},GKe={authenticated_read:"authenticated-read",aws_exec_read:"aws-exec-read",bucket_owner_full_control:"bucket-owner-full-control",bucket_owner_read:"bucket-owner-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"},qKe={COPY:"COPY",EXCLUDE:"EXCLUDE"},HKe={CRC32:"CRC32",CRC32C:"CRC32C",CRC64NVME:"CRC64NVME",MD5:"MD5",SHA1:"SHA1",SHA256:"SHA256",SHA512:"SHA512",XXHASH128:"XXHASH128",XXHASH3:"XXHASH3",XXHASH64:"XXHASH64"},jKe={COPY:"COPY",REPLACE:"REPLACE"},zKe={OFF:"OFF",ON:"ON"},VKe={OFF:"OFF",ON:"ON"},WKe={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"},KKe={AWS_BACKUP_LOW_COST_WARM:"AWS_BACKUP_LOW_COST_WARM",AWS_BACKUP_WARM:"AWS_BACKUP_WARM",DEEP_ARCHIVE:"DEEP_ARCHIVE",EXPRESS_ONEZONE:"EXPRESS_ONEZONE",FSX_ONTAP:"FSX_ONTAP",FSX_OPENZFS:"FSX_OPENZFS",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"},QKe={COPY:"COPY",REPLACE:"REPLACE"},YKe={authenticated_read:"authenticated-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"},JKe={ACCOUNT_REGIONAL:"account-regional",GLOBAL:"global"},XKe={SingleAvailabilityZone:"SingleAvailabilityZone",SingleLocalZone:"SingleLocalZone"},ZKe={Directory:"Directory"},eQe={AvailabilityZone:"AvailabilityZone",LocalZone:"LocalZone"},tQe={EU:"EU",af_south_1:"af-south-1",ap_east_1:"ap-east-1",ap_east_2:"ap-east-2",ap_northeast_1:"ap-northeast-1",ap_northeast_2:"ap-northeast-2",ap_northeast_3:"ap-northeast-3",ap_south_1:"ap-south-1",ap_south_2:"ap-south-2",ap_southeast_1:"ap-southeast-1",ap_southeast_2:"ap-southeast-2",ap_southeast_3:"ap-southeast-3",ap_southeast_4:"ap-southeast-4",ap_southeast_5:"ap-southeast-5",ap_southeast_6:"ap-southeast-6",ap_southeast_7:"ap-southeast-7",ca_central_1:"ca-central-1",ca_west_1:"ca-west-1",cn_north_1:"cn-north-1",cn_northwest_1:"cn-northwest-1",eu_central_1:"eu-central-1",eu_central_2:"eu-central-2",eu_north_1:"eu-north-1",eu_south_1:"eu-south-1",eu_south_2:"eu-south-2",eu_west_1:"eu-west-1",eu_west_2:"eu-west-2",eu_west_3:"eu-west-3",il_central_1:"il-central-1",me_central_1:"me-central-1",me_south_1:"me-south-1",mx_central_1:"mx-central-1",sa_east_1:"sa-east-1",us_east_2:"us-east-2",us_gov_east_1:"us-gov-east-1",us_gov_west_1:"us-gov-west-1",us_west_1:"us-west-1",us_west_2:"us-west-2"},rQe={BucketOwnerEnforced:"BucketOwnerEnforced",BucketOwnerPreferred:"BucketOwnerPreferred",ObjectWriter:"ObjectWriter"},nQe={DISABLED:"DISABLED",ENABLED:"ENABLED"},oQe={AES256:"AES256",aws_kms:"aws:kms"},sQe={DISABLED:"DISABLED",ENABLED:"ENABLED"},iQe={DISABLED:"DISABLED",ENABLED:"ENABLED"},aQe={ReadOnly:"ReadOnly",ReadWrite:"ReadWrite"},cQe={CSV:"CSV"},uQe={V_1:"V_1"},lQe={NONE:"NONE",SSE_C:"SSE-C"},dQe={Disabled:"Disabled",Enabled:"Enabled"},pQe={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"},fQe={CSV:"CSV",ORC:"ORC",Parquet:"Parquet"},mQe={All:"All",Current:"Current"},gQe={BucketKeyStatus:"BucketKeyStatus",ChecksumAlgorithm:"ChecksumAlgorithm",ETag:"ETag",EncryptionStatus:"EncryptionStatus",IntelligentTieringAccessTier:"IntelligentTieringAccessTier",IntelligentTieringReferenceDate:"IntelligentTieringReferenceDate",IsMultipartUploaded:"IsMultipartUploaded",LastModifiedDate:"LastModifiedDate",LifecycleExpirationDate:"LifecycleExpirationDate",ObjectAccessControlList:"ObjectAccessControlList",ObjectLockEventHoldDuration:"ObjectLockEventHoldDuration",ObjectLockEventHoldStatus:"ObjectLockEventHoldStatus",ObjectLockLegalHoldStatus:"ObjectLockLegalHoldStatus",ObjectLockMode:"ObjectLockMode",ObjectLockRetainUntilDate:"ObjectLockRetainUntilDate",ObjectOwner:"ObjectOwner",ReplicationStatus:"ReplicationStatus",Size:"Size",StorageClass:"StorageClass"},hQe={Daily:"Daily",Weekly:"Weekly"},SQe={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",STANDARD_IA:"STANDARD_IA"},yQe={Disabled:"Disabled",Enabled:"Enabled"},EQe={all_storage_classes_128K:"all_storage_classes_128K",varies_by_storage_class:"varies_by_storage_class"},_Qe={FULL_CONTROL:"FULL_CONTROL",READ:"READ",WRITE:"WRITE"},RQe={DeliveryTime:"DeliveryTime",EventTime:"EventTime"},CQe={aws:"aws",customer:"customer"},bQe={s3_IntelligentTiering:"s3:IntelligentTiering",s3_LifecycleExpiration_:"s3:LifecycleExpiration:*",s3_LifecycleExpiration_Delete:"s3:LifecycleExpiration:Delete",s3_LifecycleExpiration_DeleteMarkerCreated:"s3:LifecycleExpiration:DeleteMarkerCreated",s3_LifecycleTransition:"s3:LifecycleTransition",s3_ObjectAcl_Put:"s3:ObjectAcl:Put",s3_ObjectAnnotation_:"s3:ObjectAnnotation:*",s3_ObjectAnnotation_Delete:"s3:ObjectAnnotation:Delete",s3_ObjectAnnotation_Put:"s3:ObjectAnnotation:Put",s3_ObjectCreated_:"s3:ObjectCreated:*",s3_ObjectCreated_CompleteMultipartUpload:"s3:ObjectCreated:CompleteMultipartUpload",s3_ObjectCreated_Copy:"s3:ObjectCreated:Copy",s3_ObjectCreated_Post:"s3:ObjectCreated:Post",s3_ObjectCreated_Put:"s3:ObjectCreated:Put",s3_ObjectRemoved_:"s3:ObjectRemoved:*",s3_ObjectRemoved_Delete:"s3:ObjectRemoved:Delete",s3_ObjectRemoved_DeleteMarkerCreated:"s3:ObjectRemoved:DeleteMarkerCreated",s3_ObjectRestore_:"s3:ObjectRestore:*",s3_ObjectRestore_Completed:"s3:ObjectRestore:Completed",s3_ObjectRestore_Delete:"s3:ObjectRestore:Delete",s3_ObjectRestore_Post:"s3:ObjectRestore:Post",s3_ObjectRetention_Put:"s3:ObjectRetention:Put",s3_ObjectTagging_:"s3:ObjectTagging:*",s3_ObjectTagging_Delete:"s3:ObjectTagging:Delete",s3_ObjectTagging_Put:"s3:ObjectTagging:Put",s3_ReducedRedundancyLostObject:"s3:ReducedRedundancyLostObject",s3_Replication_:"s3:Replication:*",s3_Replication_OperationFailedReplication:"s3:Replication:OperationFailedReplication",s3_Replication_OperationMissedThreshold:"s3:Replication:OperationMissedThreshold",s3_Replication_OperationNotTracked:"s3:Replication:OperationNotTracked",s3_Replication_OperationReplicatedAfterThreshold:"s3:Replication:OperationReplicatedAfterThreshold"},AQe={prefix:"prefix",suffix:"suffix"},xQe={Disabled:"Disabled",Enabled:"Enabled"},TQe={Disabled:"Disabled",Enabled:"Enabled"},vQe={Disabled:"Disabled",Enabled:"Enabled"},DQe={Disabled:"Disabled",Enabled:"Enabled"},IQe={Disabled:"Disabled",Enabled:"Enabled"},wQe={Disabled:"Disabled",Enabled:"Enabled"},PQe={Disabled:"Disabled",Enabled:"Enabled"},OQe={BucketOwner:"BucketOwner",Requester:"Requester"},$Qe={Disabled:"Disabled",Enabled:"Enabled"},kQe={Enabled:"Enabled",Suspended:"Suspended"},MQe={http:"http",https:"https"},LQe={COMPLETE:"COMPLETE",COMPLETED:"COMPLETED",FAILED:"FAILED",PENDING:"PENDING",REPLICA:"REPLICA"},NQe={ENABLED:"ENABLED"},FQe={CHECKSUM:"Checksum",ETAG:"ETag",OBJECT_PARTS:"ObjectParts",OBJECT_SIZE:"ObjectSize",STORAGE_CLASS:"StorageClass"},BQe={Enabled:"Enabled"},UQe={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"},GQe={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"},qQe={url:"url"},HQe={AWS_BACKUP_LOW_COST_WARM:"AWS_BACKUP_LOW_COST_WARM",AWS_BACKUP_WARM:"AWS_BACKUP_WARM",DEEP_ARCHIVE:"DEEP_ARCHIVE",EXPRESS_ONEZONE:"EXPRESS_ONEZONE",FSX_ONTAP:"FSX_ONTAP",FSX_OPENZFS:"FSX_OPENZFS",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"},jQe={RESTORE_STATUS:"RestoreStatus"},zQe={STANDARD:"STANDARD"},VQe={Disabled:"Disabled",Enabled:"Enabled"},WQe={Bulk:"Bulk",Expedited:"Expedited",Standard:"Standard"},KQe={SQL:"SQL"},QQe={BZIP2:"BZIP2",GZIP:"GZIP",NONE:"NONE"},YQe={IGNORE:"IGNORE",NONE:"NONE",USE:"USE"},JQe={DOCUMENT:"DOCUMENT",LINES:"LINES"},XQe={ALWAYS:"ALWAYS",ASNEEDED:"ASNEEDED"},ZQe={SELECT:"SELECT"};d.AbacStatus$=pN;d.AbortIncompleteMultipartUpload$=coe;d.AbortMultipartUpload$=ole;d.AbortMultipartUploadCommand=MC;d.AbortMultipartUploadOutput$=uoe;d.AbortMultipartUploadRequest$=loe;d.AccelerateConfiguration$=doe;d.AccessControlPolicy$=fN;d.AccessControlTranslation$=poe;d.AccessDenied=WR;d.AccessDenied$=Bne;d.AnalyticsAndOperator$=foe;d.AnalyticsConfiguration$=rx;d.AnalyticsExportDestination$=moe;d.AnalyticsFilter$=ele;d.AnalyticsS3BucketDestination$=goe;d.AnalyticsS3ExportFileFormat=cQe;d.AnnotationConfigurationState=nQe;d.AnnotationDirective=qKe;d.AnnotationEntry$=hoe;d.AnnotationLimitExceeded=aC;d.AnnotationLimitExceeded$=Une;d.AnnotationNameTooLong=cC;d.AnnotationNameTooLong$=Gne;d.AnnotationTableConfiguration$=Soe;d.AnnotationTableConfigurationResult$=yoe;d.AnnotationTableConfigurationUpdates$=Eoe;d.ArchiveStatus=GQe;d.BlockedEncryptionTypes$=_oe;d.Bucket$=Roe;d.BucketAbacStatus=OKe;d.BucketAccelerateStatus=MKe;d.BucketAlreadyExists=QR;d.BucketAlreadyExists$=qne;d.BucketAlreadyOwnedByYou=YR;d.BucketAlreadyOwnedByYou$=Hne;d.BucketCannedACL=YKe;d.BucketInfo$=Coe;d.BucketLifecycleConfiguration$=boe;d.BucketLocationConstraint=tQe;d.BucketLoggingStatus$=Aoe;d.BucketLogsPermission=_Qe;d.BucketNamespace=JKe;d.BucketType=ZKe;d.BucketVersioningStatus=kQe;d.CORSConfiguration$=Noe;d.CORSRule$=Foe;d.CSVInput$=Koe;d.CSVOutput$=Qoe;d.Checksum$=xoe;d.ChecksumAlgorithm=HKe;d.ChecksumMode=NQe;d.ChecksumType=BKe;d.CommonPrefix$=Toe;d.CompleteMultipartUpload$=sle;d.CompleteMultipartUploadCommand=LC;d.CompleteMultipartUploadOutput$=Ioe;d.CompleteMultipartUploadRequest$=woe;d.CompletedMultipartUpload$=voe;d.CompletedPart$=Doe;d.CompressionType=QQe;d.Condition$=Poe;d.ContinuationEvent$=Ooe;d.CopyObject$=ile;d.CopyObjectCommand=NC;d.CopyObjectOutput$=$oe;d.CopyObjectRequest$=koe;d.CopyObjectResult$=Moe;d.CopyPartResult$=Loe;d.CreateBucket$=ale;d.CreateBucketCommand=FC;d.CreateBucketConfiguration$=Boe;d.CreateBucketMetadataConfiguration$=cle;d.CreateBucketMetadataConfigurationCommand=BC;d.CreateBucketMetadataConfigurationRequest$=Uoe;d.CreateBucketMetadataTableConfiguration$=ule;d.CreateBucketMetadataTableConfigurationCommand=UC;d.CreateBucketMetadataTableConfigurationRequest$=Goe;d.CreateBucketOutput$=qoe;d.CreateBucketRequest$=Hoe;d.CreateMultipartUpload$=lle;d.CreateMultipartUploadCommand=GC;d.CreateMultipartUploadOutput$=joe;d.CreateMultipartUploadRequest$=zoe;d.CreateSession$=dle;d.CreateSessionCommand=rg;d.CreateSessionOutput$=Voe;d.CreateSessionRequest$=Woe;d.DataRedundancy=XKe;d.DefaultRetention$=Yoe;d.Delete$=Joe;d.DeleteBucket$=ple;d.DeleteBucketAnalyticsConfiguration$=fle;d.DeleteBucketAnalyticsConfigurationCommand=qC;d.DeleteBucketAnalyticsConfigurationRequest$=Xoe;d.DeleteBucketCommand=HC;d.DeleteBucketCors$=mle;d.DeleteBucketCorsCommand=jC;d.DeleteBucketCorsRequest$=Zoe;d.DeleteBucketEncryption$=gle;d.DeleteBucketEncryptionCommand=zC;d.DeleteBucketEncryptionRequest$=ese;d.DeleteBucketIntelligentTieringConfiguration$=hle;d.DeleteBucketIntelligentTieringConfigurationCommand=VC;d.DeleteBucketIntelligentTieringConfigurationRequest$=tse;d.DeleteBucketInventoryConfiguration$=Sle;d.DeleteBucketInventoryConfigurationCommand=WC;d.DeleteBucketInventoryConfigurationRequest$=rse;d.DeleteBucketLifecycle$=yle;d.DeleteBucketLifecycleCommand=KC;d.DeleteBucketLifecycleRequest$=nse;d.DeleteBucketMetadataConfiguration$=Ele;d.DeleteBucketMetadataConfigurationCommand=QC;d.DeleteBucketMetadataConfigurationRequest$=ose;d.DeleteBucketMetadataTableConfiguration$=_le;d.DeleteBucketMetadataTableConfigurationCommand=YC;d.DeleteBucketMetadataTableConfigurationRequest$=sse;d.DeleteBucketMetricsConfiguration$=Rle;d.DeleteBucketMetricsConfigurationCommand=JC;d.DeleteBucketMetricsConfigurationRequest$=ise;d.DeleteBucketOwnershipControls$=Cle;d.DeleteBucketOwnershipControlsCommand=XC;d.DeleteBucketOwnershipControlsRequest$=ase;d.DeleteBucketPolicy$=ble;d.DeleteBucketPolicyCommand=ZC;d.DeleteBucketPolicyRequest$=cse;d.DeleteBucketReplication$=Ale;d.DeleteBucketReplicationCommand=eb;d.DeleteBucketReplicationRequest$=use;d.DeleteBucketRequest$=lse;d.DeleteBucketTagging$=xle;d.DeleteBucketTaggingCommand=tb;d.DeleteBucketTaggingRequest$=dse;d.DeleteBucketWebsite$=Tle;d.DeleteBucketWebsiteCommand=rb;d.DeleteBucketWebsiteRequest$=pse;d.DeleteMarkerEntry$=mse;d.DeleteMarkerReplication$=gse;d.DeleteMarkerReplicationStatus=xQe;d.DeleteObject$=vle;d.DeleteObjectAnnotation$=Dle;d.DeleteObjectAnnotationCommand=nb;d.DeleteObjectAnnotationOutput$=hse;d.DeleteObjectAnnotationRequest$=Sse;d.DeleteObjectCommand=ob;d.DeleteObjectOutput$=yse;d.DeleteObjectRequest$=Ese;d.DeleteObjectTagging$=wle;d.DeleteObjectTaggingCommand=ib;d.DeleteObjectTaggingOutput$=Cse;d.DeleteObjectTaggingRequest$=bse;d.DeleteObjects$=Ile;d.DeleteObjectsCommand=sb;d.DeleteObjectsOutput$=_se;d.DeleteObjectsRequest$=Rse;d.DeletePublicAccessBlock$=Ple;d.DeletePublicAccessBlockCommand=ab;d.DeletePublicAccessBlockRequest$=Ase;d.DeletedObject$=fse;d.Destination$=xse;d.DestinationResult$=Tse;d.EncodingType=qQe;d.Encryption$=vse;d.EncryptionConfiguration$=Dse;d.EncryptionType=lQe;d.EncryptionTypeMismatch=nC;d.EncryptionTypeMismatch$=jne;d.EndEvent$=Ise;d.ErrorDetails$=Ng;d.ErrorDocument$=mN;d.Event=bQe;d.EventBridgeConfiguration$=Pse;d.EventHoldDuration$=gN;d.ExistingObjectReplication$=Ose;d.ExistingObjectReplicationStatus=DQe;d.ExpirationState=iQe;d.ExpirationStatus=yQe;d.ExpressionType=KQe;d.FileHeaderInfo=YQe;d.FilterRule$=$se;d.FilterRuleName=AQe;d.GetBucketAbac$=Ole;d.GetBucketAbacCommand=cb;d.GetBucketAbacOutput$=kse;d.GetBucketAbacRequest$=Mse;d.GetBucketAccelerateConfiguration$=$le;d.GetBucketAccelerateConfigurationCommand=ub;d.GetBucketAccelerateConfigurationOutput$=Lse;d.GetBucketAccelerateConfigurationRequest$=Nse;d.GetBucketAcl$=kle;d.GetBucketAclCommand=lb;d.GetBucketAclOutput$=Fse;d.GetBucketAclRequest$=Bse;d.GetBucketAnalyticsConfiguration$=Mle;d.GetBucketAnalyticsConfigurationCommand=db;d.GetBucketAnalyticsConfigurationOutput$=Use;d.GetBucketAnalyticsConfigurationRequest$=Gse;d.GetBucketCors$=Lle;d.GetBucketCorsCommand=pb;d.GetBucketCorsOutput$=qse;d.GetBucketCorsRequest$=Hse;d.GetBucketEncryption$=Nle;d.GetBucketEncryptionCommand=fb;d.GetBucketEncryptionOutput$=jse;d.GetBucketEncryptionRequest$=zse;d.GetBucketIntelligentTieringConfiguration$=Fle;d.GetBucketIntelligentTieringConfigurationCommand=mb;d.GetBucketIntelligentTieringConfigurationOutput$=Vse;d.GetBucketIntelligentTieringConfigurationRequest$=Wse;d.GetBucketInventoryConfiguration$=Ble;d.GetBucketInventoryConfigurationCommand=gb;d.GetBucketInventoryConfigurationOutput$=Kse;d.GetBucketInventoryConfigurationRequest$=Qse;d.GetBucketLifecycleConfiguration$=Ule;d.GetBucketLifecycleConfigurationCommand=hb;d.GetBucketLifecycleConfigurationOutput$=Yse;d.GetBucketLifecycleConfigurationRequest$=Jse;d.GetBucketLocation$=Gle;d.GetBucketLocationCommand=Sb;d.GetBucketLocationOutput$=Xse;d.GetBucketLocationRequest$=Zse;d.GetBucketLogging$=qle;d.GetBucketLoggingCommand=yb;d.GetBucketLoggingOutput$=eie;d.GetBucketLoggingRequest$=tie;d.GetBucketMetadataConfiguration$=Hle;d.GetBucketMetadataConfigurationCommand=Eb;d.GetBucketMetadataConfigurationOutput$=rie;d.GetBucketMetadataConfigurationRequest$=nie;d.GetBucketMetadataConfigurationResult$=oie;d.GetBucketMetadataTableConfiguration$=jle;d.GetBucketMetadataTableConfigurationCommand=_b;d.GetBucketMetadataTableConfigurationOutput$=sie;d.GetBucketMetadataTableConfigurationRequest$=iie;d.GetBucketMetadataTableConfigurationResult$=aie;d.GetBucketMetricsConfiguration$=zle;d.GetBucketMetricsConfigurationCommand=Rb;d.GetBucketMetricsConfigurationOutput$=cie;d.GetBucketMetricsConfigurationRequest$=uie;d.GetBucketNotificationConfiguration$=Vle;d.GetBucketNotificationConfigurationCommand=Cb;d.GetBucketNotificationConfigurationRequest$=lie;d.GetBucketOwnershipControls$=Wle;d.GetBucketOwnershipControlsCommand=bb;d.GetBucketOwnershipControlsOutput$=die;d.GetBucketOwnershipControlsRequest$=pie;d.GetBucketPolicy$=Kle;d.GetBucketPolicyCommand=Ab;d.GetBucketPolicyOutput$=fie;d.GetBucketPolicyRequest$=mie;d.GetBucketPolicyStatus$=Qle;d.GetBucketPolicyStatusCommand=xb;d.GetBucketPolicyStatusOutput$=gie;d.GetBucketPolicyStatusRequest$=hie;d.GetBucketReplication$=Yle;d.GetBucketReplicationCommand=Tb;d.GetBucketReplicationOutput$=Sie;d.GetBucketReplicationRequest$=yie;d.GetBucketRequestPayment$=Jle;d.GetBucketRequestPaymentCommand=vb;d.GetBucketRequestPaymentOutput$=Eie;d.GetBucketRequestPaymentRequest$=_ie;d.GetBucketTagging$=Xle;d.GetBucketTaggingCommand=Db;d.GetBucketTaggingOutput$=Rie;d.GetBucketTaggingRequest$=Cie;d.GetBucketVersioning$=Zle;d.GetBucketVersioningCommand=Ib;d.GetBucketVersioningOutput$=bie;d.GetBucketVersioningRequest$=Aie;d.GetBucketWebsite$=ede;d.GetBucketWebsiteCommand=wb;d.GetBucketWebsiteOutput$=xie;d.GetBucketWebsiteRequest$=Tie;d.GetObject$=tde;d.GetObjectAcl$=rde;d.GetObjectAclCommand=Pb;d.GetObjectAclOutput$=vie;d.GetObjectAclRequest$=Die;d.GetObjectAnnotation$=nde;d.GetObjectAnnotationCommand=Ob;d.GetObjectAnnotationOutput$=Iie;d.GetObjectAnnotationRequest$=wie;d.GetObjectAttributes$=ode;d.GetObjectAttributesCommand=$b;d.GetObjectAttributesOutput$=Pie;d.GetObjectAttributesParts$=Oie;d.GetObjectAttributesRequest$=$ie;d.GetObjectCommand=kb;d.GetObjectLegalHold$=sde;d.GetObjectLegalHoldCommand=Mb;d.GetObjectLegalHoldOutput$=kie;d.GetObjectLegalHoldRequest$=Mie;d.GetObjectLockConfiguration$=ide;d.GetObjectLockConfigurationCommand=Lb;d.GetObjectLockConfigurationOutput$=Lie;d.GetObjectLockConfigurationRequest$=Nie;d.GetObjectOutput$=Fie;d.GetObjectRequest$=Bie;d.GetObjectRetention$=ade;d.GetObjectRetentionCommand=Nb;d.GetObjectRetentionOutput$=Uie;d.GetObjectRetentionRequest$=Gie;d.GetObjectTagging$=cde;d.GetObjectTaggingCommand=Fb;d.GetObjectTaggingOutput$=qie;d.GetObjectTaggingRequest$=Hie;d.GetObjectTorrent$=ude;d.GetObjectTorrentCommand=Bb;d.GetObjectTorrentOutput$=jie;d.GetObjectTorrentRequest$=zie;d.GetPublicAccessBlock$=lde;d.GetPublicAccessBlockCommand=Ub;d.GetPublicAccessBlockOutput$=Vie;d.GetPublicAccessBlockRequest$=Wie;d.GlacierJobParameters$=Kie;d.Grant$=Qie;d.Grantee$=hN;d.HeadBucket$=dde;d.HeadBucketCommand=hd;d.HeadBucketOutput$=Yie;d.HeadBucketRequest$=Jie;d.HeadObject$=pde;d.HeadObjectCommand=Sd;d.HeadObjectOutput$=Xie;d.HeadObjectRequest$=Zie;d.IdempotencyParameterMismatch=dC;d.IdempotencyParameterMismatch$=zne;d.IndexDocument$=SN;d.Initiator$=yN;d.InputSerialization$=EN;d.IntelligentTieringAccessTier=pQe;d.IntelligentTieringAndOperator$=eae;d.IntelligentTieringConfiguration$=nx;d.IntelligentTieringFilter$=tae;d.IntelligentTieringStatus=dQe;d.InvalidAnnotationName=uC;d.InvalidAnnotationName$=Vne;d.InvalidObjectState=ZR;d.InvalidObjectState$=Wne;d.InvalidPrefix=rC;d.InvalidPrefix$=Kne;d.InvalidRequest=oC;d.InvalidRequest$=Qne;d.InvalidWriteOffset=sC;d.InvalidWriteOffset$=Yne;d.InventoryConfiguration$=ox;d.InventoryConfigurationState=sQe;d.InventoryDestination$=rae;d.InventoryEncryption$=nae;d.InventoryFilter$=oae;d.InventoryFormat=fQe;d.InventoryFrequency=hQe;d.InventoryIncludedObjectVersions=mQe;d.InventoryOptionalField=gQe;d.InventoryS3BucketDestination$=sae;d.InventorySchedule$=iae;d.InventoryTableConfiguration$=aae;d.InventoryTableConfigurationResult$=cae;d.InventoryTableConfigurationUpdates$=uae;d.JSONInput$=fae;d.JSONOutput$=mae;d.JSONType=JQe;d.JournalTableConfiguration$=lae;d.JournalTableConfigurationResult$=dae;d.JournalTableConfigurationUpdates$=pae;d.LambdaFunctionConfiguration$=gae;d.LifecycleExpiration$=hae;d.LifecycleRule$=Sae;d.LifecycleRuleAndOperator$=yae;d.LifecycleRuleFilter$=Eae;d.ListBucketAnalyticsConfigurations$=fde;d.ListBucketAnalyticsConfigurationsCommand=Gb;d.ListBucketAnalyticsConfigurationsOutput$=_ae;d.ListBucketAnalyticsConfigurationsRequest$=Rae;d.ListBucketIntelligentTieringConfigurations$=mde;d.ListBucketIntelligentTieringConfigurationsCommand=qb;d.ListBucketIntelligentTieringConfigurationsOutput$=Cae;d.ListBucketIntelligentTieringConfigurationsRequest$=bae;d.ListBucketInventoryConfigurations$=gde;d.ListBucketInventoryConfigurationsCommand=Hb;d.ListBucketInventoryConfigurationsOutput$=Aae;d.ListBucketInventoryConfigurationsRequest$=xae;d.ListBucketMetricsConfigurations$=hde;d.ListBucketMetricsConfigurationsCommand=jb;d.ListBucketMetricsConfigurationsOutput$=Tae;d.ListBucketMetricsConfigurationsRequest$=vae;d.ListBuckets$=Sde;d.ListBucketsCommand=ng;d.ListBucketsOutput$=Dae;d.ListBucketsRequest$=Iae;d.ListDirectoryBuckets$=yde;d.ListDirectoryBucketsCommand=og;d.ListDirectoryBucketsOutput$=wae;d.ListDirectoryBucketsRequest$=Pae;d.ListMultipartUploads$=Ede;d.ListMultipartUploadsCommand=zb;d.ListMultipartUploadsOutput$=Oae;d.ListMultipartUploadsRequest$=$ae;d.ListObjectAnnotations$=_de;d.ListObjectAnnotationsCommand=sg;d.ListObjectAnnotationsOutput$=kae;d.ListObjectAnnotationsRequest$=Mae;d.ListObjectVersions$=bde;d.ListObjectVersionsCommand=Wb;d.ListObjectVersionsOutput$=Uae;d.ListObjectVersionsRequest$=Gae;d.ListObjects$=Rde;d.ListObjectsCommand=Vb;d.ListObjectsOutput$=Lae;d.ListObjectsRequest$=Nae;d.ListObjectsV2$=Cde;d.ListObjectsV2Command=ig;d.ListObjectsV2Output$=Fae;d.ListObjectsV2Request$=Bae;d.ListParts$=Ade;d.ListPartsCommand=ag;d.ListPartsOutput$=qae;d.ListPartsRequest$=Hae;d.LocationInfo$=jae;d.LocationType=eQe;d.LoggingEnabled$=_N;d.MFADelete=VQe;d.MFADeleteStatus=$Qe;d.MetadataConfiguration$=zae;d.MetadataConfigurationResult$=Vae;d.MetadataDirective=jKe;d.MetadataEntry$=Wae;d.MetadataTableConfiguration$=Kae;d.MetadataTableConfigurationResult$=Qae;d.MetadataTableEncryptionConfiguration$=Xd;d.Metrics$=Yae;d.MetricsAndOperator$=Jae;d.MetricsConfiguration$=sx;d.MetricsFilter$=tle;d.MetricsStatus=TQe;d.MultipartUpload$=Xae;d.NoSuchAnnotation=eC;d.NoSuchAnnotation$=Jne;d.NoSuchBucket=JR;d.NoSuchBucket$=Xne;d.NoSuchKey=XR;d.NoSuchKey$=Zne;d.NoSuchUpload=VR;d.NoSuchUpload$=eoe;d.NoncurrentVersionExpiration$=Zae;d.NoncurrentVersionTransition$=ece;d.NotFound=tC;d.NotFound$=toe;d.NotificationConfiguration$=RN;d.NotificationConfigurationFilter$=ix;d.ObjectAlreadyInActiveTierError=pC;d.ObjectAlreadyInActiveTierError$=roe;d.ObjectAttributes=FQe;d.ObjectCannedACL=GKe;d.ObjectEncryption$=rle;d.ObjectIdentifier$=rce;d.ObjectLockConfiguration$=CN;d.ObjectLockEnabled=BQe;d.ObjectLockEventHold=zKe;d.ObjectLockLegalHold$=bN;d.ObjectLockLegalHoldStatus=VKe;d.ObjectLockMode=WKe;d.ObjectLockRetention$=AN;d.ObjectLockRetentionMode=UQe;d.ObjectLockRule$=nce;d.ObjectNotInActiveTierError=KR;d.ObjectNotInActiveTierError$=noe;d.ObjectOwnership=rQe;d.ObjectPart$=oce;d.ObjectStorageClass=HQe;d.ObjectVersion$=sce;d.ObjectVersionStorageClass=zQe;d.OptionalObjectAttributes=jQe;d.OutputLocation$=ice;d.OutputSerialization$=xN;d.Owner$=gi;d.OwnerOverride=FKe;d.OwnershipControls$=TN;d.OwnershipControlsRule$=ace;d.ParquetInput$=cce;d.Part$=uce;d.PartitionDateSource=RQe;d.PartitionedPrefix$=lce;d.Payer=OQe;d.Permission=NKe;d.PolicyStatus$=dce;d.Progress$=pce;d.ProgressEvent$=fce;d.Protocol=MQe;d.PublicAccessBlockConfiguration$=vN;d.PutBucketAbac$=xde;d.PutBucketAbacCommand=Kb;d.PutBucketAbacRequest$=mce;d.PutBucketAccelerateConfiguration$=Tde;d.PutBucketAccelerateConfigurationCommand=Qb;d.PutBucketAccelerateConfigurationRequest$=gce;d.PutBucketAcl$=vde;d.PutBucketAclCommand=Yb;d.PutBucketAclRequest$=hce;d.PutBucketAnalyticsConfiguration$=Dde;d.PutBucketAnalyticsConfigurationCommand=Jb;d.PutBucketAnalyticsConfigurationRequest$=Sce;d.PutBucketCors$=Ide;d.PutBucketCorsCommand=Xb;d.PutBucketCorsRequest$=yce;d.PutBucketEncryption$=wde;d.PutBucketEncryptionCommand=Zb;d.PutBucketEncryptionRequest$=Ece;d.PutBucketIntelligentTieringConfiguration$=Pde;d.PutBucketIntelligentTieringConfigurationCommand=eA;d.PutBucketIntelligentTieringConfigurationRequest$=_ce;d.PutBucketInventoryConfiguration$=Ode;d.PutBucketInventoryConfigurationCommand=tA;d.PutBucketInventoryConfigurationRequest$=Rce;d.PutBucketLifecycleConfiguration$=$de;d.PutBucketLifecycleConfigurationCommand=rA;d.PutBucketLifecycleConfigurationOutput$=Cce;d.PutBucketLifecycleConfigurationRequest$=bce;d.PutBucketLogging$=kde;d.PutBucketLoggingCommand=nA;d.PutBucketLoggingRequest$=Ace;d.PutBucketMetricsConfiguration$=Mde;d.PutBucketMetricsConfigurationCommand=oA;d.PutBucketMetricsConfigurationRequest$=xce;d.PutBucketNotificationConfiguration$=Lde;d.PutBucketNotificationConfigurationCommand=sA;d.PutBucketNotificationConfigurationRequest$=Tce;d.PutBucketOwnershipControls$=Nde;d.PutBucketOwnershipControlsCommand=iA;d.PutBucketOwnershipControlsRequest$=vce;d.PutBucketPolicy$=Fde;d.PutBucketPolicyCommand=aA;d.PutBucketPolicyRequest$=Dce;d.PutBucketReplication$=Bde;d.PutBucketReplicationCommand=cA;d.PutBucketReplicationRequest$=Ice;d.PutBucketRequestPayment$=Ude;d.PutBucketRequestPaymentCommand=uA;d.PutBucketRequestPaymentRequest$=wce;d.PutBucketTagging$=Gde;d.PutBucketTaggingCommand=lA;d.PutBucketTaggingRequest$=Pce;d.PutBucketVersioning$=qde;d.PutBucketVersioningCommand=dA;d.PutBucketVersioningRequest$=Oce;d.PutBucketWebsite$=Hde;d.PutBucketWebsiteCommand=pA;d.PutBucketWebsiteRequest$=$ce;d.PutObject$=jde;d.PutObjectAcl$=zde;d.PutObjectAclCommand=fA;d.PutObjectAclOutput$=kce;d.PutObjectAclRequest$=Mce;d.PutObjectAnnotation$=Vde;d.PutObjectAnnotationCommand=mA;d.PutObjectAnnotationOutput$=Lce;d.PutObjectAnnotationRequest$=Nce;d.PutObjectCommand=gA;d.PutObjectLegalHold$=Wde;d.PutObjectLegalHoldCommand=hA;d.PutObjectLegalHoldOutput$=Fce;d.PutObjectLegalHoldRequest$=Bce;d.PutObjectLockConfiguration$=Kde;d.PutObjectLockConfigurationCommand=SA;d.PutObjectLockConfigurationOutput$=Uce;d.PutObjectLockConfigurationRequest$=Gce;d.PutObjectOutput$=qce;d.PutObjectRequest$=Hce;d.PutObjectRetention$=Qde;d.PutObjectRetentionCommand=yA;d.PutObjectRetentionOutput$=jce;d.PutObjectRetentionRequest$=zce;d.PutObjectTagging$=Yde;d.PutObjectTaggingCommand=EA;d.PutObjectTaggingOutput$=Vce;d.PutObjectTaggingRequest$=Wce;d.PutPublicAccessBlock$=Jde;d.PutPublicAccessBlockCommand=_A;d.PutPublicAccessBlockRequest$=Kce;d.QueueConfiguration$=Qce;d.QuoteFields=XQe;d.RecordExpiration$=ax;d.RecordsEvent$=Yce;d.Redirect$=Jce;d.RedirectAllRequestsTo$=DN;d.RenameObject$=Xde;d.RenameObjectCommand=RA;d.RenameObjectOutput$=Xce;d.RenameObjectRequest$=Zce;d.ReplicaModifications$=eue;d.ReplicaModificationsStatus=IQe;d.ReplicationConfiguration$=IN;d.ReplicationRule$=tue;d.ReplicationRuleAndOperator$=rue;d.ReplicationRuleFilter$=nue;d.ReplicationRuleStatus=PQe;d.ReplicationStatus=LQe;d.ReplicationTime$=oue;d.ReplicationTimeStatus=vQe;d.ReplicationTimeValue$=wN;d.RequestCharged=$Ke;d.RequestPayer=kKe;d.RequestPaymentConfiguration$=sue;d.RequestProgress$=iue;d.RestoreObject$=Zde;d.RestoreObjectCommand=CA;d.RestoreObjectOutput$=aue;d.RestoreObjectRequest$=cue;d.RestoreRequest$=uue;d.RestoreRequestType=ZQe;d.RestoreStatus$=PN;d.RoutingRule$=lue;d.S3=PA;d.S3Client=Bi;d.S3KeyFilter$=due;d.S3Location$=pue;d.S3ServiceException=rt;d.S3ServiceException$=Fne;d.S3TablesBucketType=CQe;d.S3TablesDestination$=fue;d.S3TablesDestinationResult$=mue;d.SSEKMS$=Aue;d.SSEKMSEncryption$=Tue;d.SSES3$=vue;d.ScanRange$=gue;d.SelectObjectContent$=epe;d.SelectObjectContentCommand=bA;d.SelectObjectContentEventStream$=nle;d.SelectObjectContentOutput$=hue;d.SelectObjectContentRequest$=Sue;d.SelectParameters$=yue;d.ServerSideEncryption=UKe;d.ServerSideEncryptionByDefault$=Eue;d.ServerSideEncryptionConfiguration$=ON;d.ServerSideEncryptionRule$=_ue;d.SessionCredentials$=Rue;d.SessionMode=aQe;d.SimplePrefix$=Cue;d.SourceSelectionCriteria$=bue;d.SseKmsEncryptedObjects$=xue;d.SseKmsEncryptedObjectsStatus=wQe;d.Stats$=Due;d.StatsEvent$=Iue;d.StorageClass=KKe;d.StorageClassAnalysis$=wue;d.StorageClassAnalysisDataExport$=Pue;d.StorageClassAnalysisSchemaVersion=uQe;d.TableSseAlgorithm=oQe;d.Tag$=du;d.Tagging$=cx;d.TaggingDirective=QKe;d.TargetGrant$=Oue;d.TargetObjectKeyFormat$=$ue;d.Tier=WQe;d.Tiering$=kue;d.TooManyParts=iC;d.TooManyParts$=ooe;d.TopicConfiguration$=Mue;d.Transition$=Lue;d.TransitionDefaultMinimumObjectSize=EQe;d.TransitionStorageClass=SQe;d.Type=LKe;d.UnsupportedMediaType=lC;d.UnsupportedMediaType$=soe;d.UpdateBucketMetadataAnnotationTableConfiguration$=tpe;d.UpdateBucketMetadataAnnotationTableConfigurationCommand=AA;d.UpdateBucketMetadataAnnotationTableConfigurationRequest$=Nue;d.UpdateBucketMetadataInventoryTableConfiguration$=rpe;d.UpdateBucketMetadataInventoryTableConfigurationCommand=xA;d.UpdateBucketMetadataInventoryTableConfigurationRequest$=Fue;d.UpdateBucketMetadataJournalTableConfiguration$=npe;d.UpdateBucketMetadataJournalTableConfigurationCommand=TA;d.UpdateBucketMetadataJournalTableConfigurationRequest$=Bue;d.UpdateObjectEncryption$=ope;d.UpdateObjectEncryptionCommand=vA;d.UpdateObjectEncryptionRequest$=Uue;d.UpdateObjectEncryptionResponse$=Gue;d.UploadPart$=spe;d.UploadPartCommand=DA;d.UploadPartCopy$=ipe;d.UploadPartCopyCommand=IA;d.UploadPartCopyOutput$=que;d.UploadPartCopyRequest$=Hue;d.UploadPartOutput$=jue;d.UploadPartRequest$=zue;d.VersioningConfiguration$=Vue;d.WebsiteConfiguration$=Wue;d.WriteGetObjectResponse$=ape;d.WriteGetObjectResponseCommand=wA;d.WriteGetObjectResponseRequest$=Kue;d._Error$=wse;d._Object$=tce;d.errorTypeRegistries=ioe;d.paginateListBuckets=cpe;d.paginateListDirectoryBuckets=upe;d.paginateListObjectAnnotations=lpe;d.paginateListObjectsV2=dpe;d.paginateListParts=ppe;d.waitForBucketExists=xKe;d.waitForBucketNotExists=TKe;d.waitForObjectExists=vKe;d.waitForObjectNotExists=DKe;d.waitUntilBucketExists=mpe;d.waitUntilBucketNotExists=hpe;d.waitUntilObjectExists=ype;d.waitUntilObjectNotExists=_pe});var Gx=st(D=>{var{awsEndpointFunctions:n7e,emitWarningIfUnsupportedVersion:o7e,createDefaultUserAgentProvider:s7e,NODE_APP_ID_CONFIG_OPTIONS:i7e,getAwsRegionExtensionConfiguration:a7e,resolveAwsRegionExtensionConfiguration:c7e,resolveUserAgentConfig:u7e,resolveHostHeaderConfig:l7e,getUserAgentPlugin:d7e,getHostHeaderPlugin:p7e,getLoggerPlugin:f7e,getRecursionDetectionPlugin:m7e}=(Ee(),F(kn)),{getHttpAuthSchemeEndpointRuleSetPlugin:g7e,DefaultIdentityProviderConfig:h7e,getHttpSigningPlugin:S7e,createPaginator:LN}=(jt(),F(xl)),{normalizeProvider:Gpe,getSmithyContext:y7e,ServiceException:E7e,NoOpLogger:_7e,emitWarningIfUnsupportedVersion:R7e,loadConfigsForDefaultMode:C7e,getDefaultExtensionConfiguration:b7e,resolveDefaultRuntimeConfig:A7e,Client:qpe,makeBuilder:x7e,createWaiter:fo,checkExceptions:tp,WaiterState:ct,createAggregatedClient:T7e}=(J(),F(bo)),{Command:v7e}=(J(),F(bo));D.$Command=v7e;D.__Client=qpe;var{resolveDefaultsModeConfig:D7e,loadConfig:pu,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:I7e,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:w7e,NODE_REGION_CONFIG_OPTIONS:P7e,NODE_REGION_CONFIG_FILE_OPTIONS:O7e,resolveRegionConfig:$7e}=(ye(),F(Br)),{BinaryDecisionDiagram:k7e,EndpointCache:M7e,decideEndpoint:L7e,customEndpointFunctions:N7e,resolveEndpointConfig:F7e,getEndpointPlugin:B7e}=(He(),F(jp)),{parseUrl:U7e,getHttpHandlerExtensionConfiguration:G7e,resolveHttpHandlerRuntimeConfig:q7e,getContentLengthPlugin:H7e}=(V(),F(wo)),{DEFAULT_RETRY_MODE:j7e,NODE_RETRY_MODE_CONFIG_OPTIONS:z7e,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:V7e,resolveRetryConfig:W7e,getRetryPlugin:K7e}=(en(),F(nf)),{TypeRegistry:Hpe,getSchemaSerdePlugin:Q7e}=(ae(),F(Dp)),{resolveAwsSdkSigV4Config:Y7e,AwsSdkSigV4Signer:J7e,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:X7e}=(rr(),F(Il)),{defaultProvider:Z7e}=Cm(),{toUtf8:eYe,fromUtf8:tYe,toBase64:rYe,fromBase64:nYe,calculateBodyLength:oYe}=(j(),F(To)),{streamCollector:sYe,NodeHttpHandler:iYe}=zs(),{AwsRestJsonProtocol:aYe}=(Di(),F(Vy)),{Sha256:cYe}=(On(),F(Vp)),uYe=async(t,e,r)=>({operation:y7e(e).operation,region:await Gpe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function lYe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"lambda",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var dYe=t=>{let e=[];switch(t.operation){default:e.push(lYe(t))}return e},pYe=t=>{let e=Y7e(t);return Object.assign(e,{authSchemePreference:Gpe(t.authSchemePreference??[])})},fYe=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"lambda"}),mYe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},gYe="3.1151.0",hYe={version:gYe},Bg="ref",fu=-1,dx=!0,kpe="isSet",jpe="PartitionResult",px="booleanEquals",Mpe="getAttr",Lpe={[Bg]:"Endpoint"},Npe={[Bg]:jpe},Fg={},Fpe=[{[Bg]:"Region"}],Bpe={conditions:[[kpe,[Lpe]],[kpe,Fpe],["aws.partition",Fpe,jpe],[px,[{[Bg]:"UseFIPS"},dx]],[px,[{[Bg]:"UseDualStack"},dx]],[px,[{fn:Mpe,argv:[Npe,"supportsDualStack"]},dx]],[px,[{fn:Mpe,argv:[Npe,"supportsFIPS"]},dx]]],results:[[fu],[fu,"Invalid Configuration: FIPS and custom endpoint are not supported"],[fu,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Lpe,Fg],["https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Fg],[fu,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}",Fg],[fu,"FIPS is enabled but this partition does not support FIPS"],["https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}",Fg],[fu,"DualStack is enabled but this partition does not support DualStack"],["https://lambda.{Region}.{PartitionResult#dnsSuffix}",Fg],[fu,"Invalid Configuration: Missing Region"]]},SYe=2,qn=1e8,yYe=new Int32Array([-1,1,-1,0,12,3,1,4,qn+11,2,5,qn+11,3,8,6,4,7,qn+10,5,qn+8,qn+9,4,10,9,6,qn+6,qn+7,5,11,qn+5,6,qn+4,qn+5,3,qn+1,13,4,qn+2,qn+3]),EYe=k7e.from(yYe,SYe,Bpe.conditions,Bpe.results),_Ye=new M7e({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),RYe=(t,e={})=>_Ye.get(t,()=>L7e(EYe,{endpointParams:t,logger:e.logger}));N7e.aws=n7e;var ns=class t extends E7e{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.lambdaweb#LambdaWebServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},fx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#AccessDeniedException";name="AccessDeniedException";$fault="client";constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},mx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ConflictException";name="ConflictException";$fault="client";resourceId;resourceType;constructor(e){super({name:"ConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceId=e.resourceId,this.resourceType=e.resourceType}},gx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#InternalServerException";name="InternalServerException";$fault="server";$retryable={};constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},hx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";resourceId;resourceType;constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceId=e.resourceId,this.resourceType=e.resourceType}},Sx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ServiceQuotaExceededException";name="ServiceQuotaExceededException";$fault="client";resourceId;resourceType;serviceCode;quotaCode;constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceId=e.resourceId,this.resourceType=e.resourceType,this.serviceCode=e.serviceCode,this.quotaCode=e.quotaCode}},yx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ThrottlingException";name="ThrottlingException";$fault="client";$retryable={throttling:!0};retryAfterSeconds;serviceCode;quotaCode;constructor(e){super({name:"ThrottlingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.retryAfterSeconds=e.retryAfterSeconds,this.serviceCode=e.serviceCode,this.quotaCode=e.quotaCode}},Ex=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ValidationException";name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},CYe="AccessDeniedException",bYe="AccountQuotas",AYe="AccountUsage",xYe="BuildConfig",TYe="CodeConfig",vYe="ConflictException",DYe="CreateWebFunction",IYe="CreateWebFunctionEndpoint",wYe="CreateWebFunctionEndpointRequest",PYe="CreateWebFunctionEndpointResponse",OYe="CreateWebFunctionRequest",$Ye="CreateWebFunctionRevisionRequest",kYe="CreateWebFunctionRevisionResponse",MYe="CreateWebFunctionResponse",LYe="CreateWebFunctionRevision",NYe="DeleteResourcePolicy",FYe="DeleteResourcePolicyRequest",BYe="DeleteWebFunction",UYe="DeleteWebFunctionEndpoint",GYe="DeleteWebFunctionEndpointRequest",qYe="DeleteWebFunctionRequest",HYe="DeleteWebFunctionRevisionRequest",jYe="DeleteWebFunctionRevision",zYe="EndpointConfig",VYe="EnvironmentVariables",WYe="Filter",KYe="FunctionEndpointSummary",QYe="FunctionEndpointSummaryList",YYe="FilterList",JYe="FunctionRevisionSummary",XYe="FunctionRevisionSummaryList",ZYe="FunctionSummary",eJe="FunctionSummaryList",tJe="GetResourcePolicy",rJe="GetResourcePolicyRequest",nJe="GetResourcePolicyResponse",oJe="GetWebAccountSettings",sJe="GetWebAccountSettingsRequest",iJe="GetWebAccountSettingsResponse",aJe="GetWebFunction",cJe="GetWebFunctionEndpoint",uJe="GetWebFunctionEndpointRequest",lJe="GetWebFunctionEndpointResponse",dJe="GetWebFunctionRequest",pJe="GetWebFunctionRevisionRequest",fJe="GetWebFunctionRevisionResponse",mJe="GetWebFunctionResponse",gJe="GetWebFunctionRevision",hJe="InternalServerException",SJe="LoggingConfig",yJe="ListTags",EJe="ListTagsRequest",_Je="ListTagsResponse",RJe="ListWebFunctions",CJe="ListWebFunctionEndpoints",bJe="ListWebFunctionEndpointsRequest",AJe="ListWebFunctionEndpointsResponse",xJe="ListWebFunctionsRequest",TJe="ListWebFunctionRevisionsRequest",vJe="ListWebFunctionRevisionsResponse",DJe="ListWebFunctionsResponse",IJe="ListWebFunctionRevisions",NN="Policy",wJe="PutResourcePolicy",PJe="PutResourcePolicyRequest",OJe="PutResourcePolicyResponse",$Je="Retry-After",kJe="RevisionConfig",MJe="RuntimeConfig",LJe="RegionalEndpoint",NJe="RevisionError",FJe="RegionalEndpoints",BJe="RevisionErrors",Mx="RevisionId",UJe="ResourceNotFoundException",GJe="RevisionWeight",qJe="RevisionWeightList",HJe="ScalingConfig",jJe="ServiceConfig",zJe="S3Object",VJe="ServiceQuotaExceededException",zpe="Tags",WJe="TelemetryConfig",KJe="ThrottleConfig",QJe="ThrottlingException",YJe="TagResource",JJe="TagResourceRequest",XJe="UntagResource",ZJe="UntagResourceRequest",eXe="UpdateWebFunctionEndpoint",tXe="UpdateWebFunctionEndpointRequest",rXe="UpdateWebFunctionEndpointResponse",nXe="ValidationException",oXe="attribute",hu="autoDeploymentMode",sXe="applicationLogLevel",iXe="accountQuotas",tc="authType",aXe="accountUsage",cXe="bucket",Lx="buildConfig",rp="client",hi="createdAt",uXe="codeConfig",mo="description",jg="domainName",Su="error",Nx="endpointArn",lXe="endpointConfig",dXe="errorCode",pXe="errorMessage",zi="endpointName",fXe="egressNetworkConnectorArn",mXe="executionRoleArn",np="endpointType",gXe="environmentVariables",hXe="endpoint",SXe="endpoints",Vpe="errors",FN="filters",rc="functionArn",yXe="functionCount",dn="functionName",EXe="functions",Mt="http",yu="httpError",_Xe="httpHeader",Wpe="httpQuery",ec="jsonName",RXe="key",Fx="kmsKeyArn",CXe="loggingConfig",bXe="logGroup",Eu="message",AXe="maxConcurrencyPerEnvironment",xXe="maxEnvironments",TXe="maxEndpointsPerFunction",BN="maxResults",vXe="maxRevisionsPerFunction",DXe="maxTotalArmVCpus",IXe="maxTotalRateLimit",wXe="name",op="nextToken",UN="policy",Kpe="quotaCode",sp="regions",GN="revisionArn",PXe="retryAfterSeconds",qN="resourceArn",OXe="runtimeConfig",$Xe="revisionConfig",HN="regionalEndpoints",jN="resourceId",Si="revisionId",kXe="rateLimit",zN="resourceType",_u="revisionWeights",MXe="revision",VN="resource",LXe="revisions",NXe="runtime",Qpe="smithy.ts.sdk.synthetic.com.amazonaws.lambdaweb",Ype="serviceCode",nc="scalingConfig",Bx="serviceConfig",FXe="systemLogLevel",BXe="s3Object",os="stateReason",UXe="server",ss="state",Ux="tags",oc="throttleConfig",GXe="telemetryConfig",Upe="tagKeys",qXe="timeoutSeconds",Ru="updatedAt",zg="updateStatus",Vg="updateStatusReason",HXe="values",jXe="versionId",zXe="weight",G="com.amazonaws.lambdaweb",Jpe=new Hpe(Qpe),Xpe=[-3,Qpe,"LambdaWebServiceException",0,[],[]];Jpe.registerError(Xpe,ns);var sc=new Hpe(G),Zpe=[-3,G,CYe,{[Su]:rp,[yu]:403},[Eu],[0],1];sc.registerError(Zpe,fx);var efe=[-3,G,vYe,{[Su]:rp,[yu]:409},[Eu,jN,zN],[0,0,0],1];sc.registerError(efe,mx);var tfe=[-3,G,hJe,{[Su]:UXe,[yu]:500},[Eu],[0]];sc.registerError(tfe,gx);var rfe=[-3,G,UJe,{[Su]:rp,[yu]:404},[Eu,jN,zN],[0,0,0],1];sc.registerError(rfe,hx);var nfe=[-3,G,VJe,{[Su]:rp,[yu]:402},[Eu,jN,zN,Ype,Kpe],[0,0,0,0,0],1];sc.registerError(nfe,Sx);var ofe=[-3,G,QJe,{[Su]:rp,[yu]:429},[Eu,PXe,Ype,Kpe],[0,[1,{[_Xe]:$Je}],0,0],1];sc.registerError(ofe,yx);var sfe=[-3,G,nXe,{[Su]:rp,[yu]:400},[Eu],[0],1];sc.registerError(sfe,Ex);var ife=[Jpe,sc],afe=[3,G,bYe,0,[DXe,IXe,vXe,TXe],[1,1,1,1],4],cfe=[3,G,AYe,0,[yXe],[1],1],Wg=[3,G,xYe,0,[uXe,OXe],[()=>ufe,()=>Kfe],2],ufe=[3,G,TYe,0,[BXe],[()=>Qfe],1],lfe=[3,G,wYe,0,[dn,zi,np,tc,mo,hu,_u,sp,nc,oc],[[0,1],0,0,0,0,0,()=>Cu,64,()=>Vi,()=>Wi],4],dfe=[3,G,PYe,0,[rc,Nx,zi,np,jg,tc,hu,_u,sp,ss,os,HN,hi,Ru,mo,nc,oc,zg,Vg],[0,0,0,0,0,0,0,()=>Cu,64,0,0,()=>YN,5,5,0,()=>Vi,()=>Wi,0,0],14],pfe=[3,G,OYe,0,[dn,$Xe,lXe,Ux],[0,[()=>zfe,0],()=>_fe,128],1],ffe=[3,G,MYe,0,[dn,rc,ss,os,hi,Ru,MXe,hXe,Ux],[0,0,0,0,5,5,()=>KN,()=>WN,128],6],mfe=[3,G,$Ye,0,[dn,Lx,Bx,mo,Fx],[[0,1],()=>Wg,[()=>Kg,0],0,0],3],gfe=[3,G,kYe,0,[rc,GN,Si,Lx,Bx,ss,os,hi,mo,Fx,Vpe],[0,0,0,()=>Wg,[()=>Kg,0],0,0,5,0,0,()=>tme],8],hfe=[3,G,FYe,0,[qN,Si],[[0,1],[0,{[Wpe]:Mx}]],1],Sfe=[3,G,GYe,0,[dn,zi],[[0,1],[0,1]],2],yfe=[3,G,qYe,0,[dn],[[0,1]],1],Efe=[3,G,HYe,0,[dn,Si],[[0,1],[0,1]],2],_fe=[3,G,zYe,0,[zi,np,tc,mo,hu,sp,nc,oc],[0,0,0,0,0,64,()=>Vi,()=>Wi],3],Rfe=[3,G,WYe,0,[wXe,HXe],[0,64],2],WN=[3,G,KYe,0,[Nx,zi,np,jg,tc,hu,_u,sp,ss,os,hi,Ru,mo,nc,oc,zg,Vg],[0,0,0,0,0,0,()=>Cu,64,0,0,5,5,0,()=>Vi,()=>Wi,0,0],12],KN=[3,G,JYe,0,[GN,Si,ss,os,hi,mo],[0,0,0,0,5,0],5],Cfe=[3,G,ZYe,0,[dn,rc,ss,os,hi,Ru],[0,0,0,0,5,5],6],bfe=[3,G,rJe,0,[qN],[[0,1]],1],Afe=[3,G,nJe,0,[UN,Si],[[0,{[ec]:NN}],[0,{[ec]:Mx}]],2],xfe=[3,G,sJe,0,[],[]],Tfe=[3,G,iJe,0,[iXe,aXe],[()=>afe,()=>cfe],2],vfe=[3,G,uJe,0,[dn,zi],[[0,1],[0,1]],2],Dfe=[3,G,lJe,0,[rc,Nx,zi,np,jg,tc,hu,_u,sp,ss,os,HN,hi,Ru,mo,nc,oc,zg,Vg],[0,0,0,0,0,0,0,()=>Cu,64,0,0,()=>YN,5,5,0,()=>Vi,()=>Wi,0,0],14],Ife=[3,G,dJe,0,[dn],[[0,1]],1],wfe=[3,G,mJe,0,[dn,rc,ss,os,hi,Ru],[0,0,0,0,5,5],6],Pfe=[3,G,pJe,0,[dn,Si],[[0,1],[0,1]],2],Ofe=[3,G,fJe,0,[rc,GN,Si,Lx,Bx,ss,os,hi,mo,Fx,Vpe],[0,0,0,()=>Wg,[()=>Kg,0],0,0,5,0,0,()=>tme],8],$fe=[3,G,EJe,0,[VN],[[0,1]],1],kfe=[3,G,_Je,0,[Ux],[[128,{[ec]:zpe}]]],Mfe=[3,G,bJe,0,[dn,FN,BN,op],[[0,1],()=>QN,1,0],1],Lfe=[3,G,AJe,0,[SXe,op],[()=>VXe,0],1],Nfe=[3,G,TJe,0,[dn,FN,BN,op],[[0,1],()=>QN,1,0],1],Ffe=[3,G,vJe,0,[LXe,op],[()=>WXe,0],1],Bfe=[3,G,xJe,0,[FN,BN,op],[()=>QN,1,0]],Ufe=[3,G,DJe,0,[EXe,op],[()=>KXe,0],1],Gfe=[3,G,SJe,0,[bXe,sXe,FXe],[0,0,0]],qfe=[3,G,PJe,0,[qN,UN,Si],[[0,1],[0,{[ec]:NN}],[0,{[ec]:Mx}]],2],Hfe=[3,G,OJe,0,[UN,Si],[[0,{[ec]:NN}],[0,{[ec]:Mx}]],2],jfe=[3,G,LJe,0,[tc,_u,ss,os,jg,nc,oc,zg,Vg],[0,()=>Cu,0,0,0,()=>Vi,()=>Wi,0,0],4],zfe=[3,G,kJe,0,[Lx,Bx,mo,Fx],[()=>Wg,[()=>Kg,0],0,0],2],Vfe=[3,G,NJe,0,[oXe,dXe,pXe],[0,0,0],3],Wfe=[3,G,GJe,0,[Si,zXe],[0,1],2],Kfe=[3,G,MJe,0,[NXe],[0],1],Qfe=[3,G,zJe,0,[cXe,RXe,jXe],[0,0,0],2],Vi=[3,G,HJe,0,[xXe],[1]],Kg=[3,G,jJe,0,[mXe,qXe,fXe,AXe,gXe,GXe],[0,1,0,1,[()=>QXe,0],()=>Jfe],1],Yfe=[3,G,JJe,0,[VN,Ux],[[0,1],[128,{[ec]:zpe}]],2],Jfe=[3,G,WJe,0,[CXe],[()=>Gfe]],Wi=[3,G,KJe,0,[kXe],[1]],Xfe=[3,G,ZJe,0,[VN,Upe],[[0,1],[64,{[Wpe]:Upe}]],2],Zfe=[3,G,tXe,0,[dn,zi,mo,tc,hu,_u,nc,oc],[[0,1],[0,1],0,0,0,()=>Cu,()=>Vi,()=>Wi],2],eme=[3,G,rXe,0,[rc,Nx,zi,np,jg,tc,hu,_u,sp,ss,os,HN,hi,Ru,mo,nc,oc,zg,Vg],[0,0,0,0,0,0,0,()=>Cu,64,0,0,()=>YN,5,5,0,()=>Vi,()=>Wi,0,0],14],ip="unit",QN=[1,G,YYe,0,()=>Rfe],VXe=[1,G,QYe,0,()=>WN],WXe=[1,G,XYe,0,()=>KN],KXe=[1,G,eJe,0,()=>Cfe],tme=[1,G,BJe,0,()=>Vfe],Cu=[1,G,qJe,0,()=>Wfe],QXe=[2,G,VYe,8,0,0],YN=[2,G,FJe,0,0,()=>jfe],rme=[9,G,DYe,{[Mt]:["PUT","/2025-03-07/web-functions",202]},()=>pfe,()=>ffe],nme=[9,G,IYe,{[Mt]:["PUT","/2025-03-07/web-functions/{functionName}/endpoints",202]},()=>lfe,()=>dfe],ome=[9,G,LYe,{[Mt]:["POST","/2025-03-07/web-functions/{functionName}/revisions",202]},()=>mfe,()=>gfe],sme=[9,G,NYe,{[Mt]:["DELETE","/2025-03-07/resource-policy/{resourceArn}",204]},()=>hfe,()=>ip],ime=[9,G,BYe,{[Mt]:["DELETE","/2025-03-07/web-functions/{functionName}",204]},()=>yfe,()=>ip],ame=[9,G,UYe,{[Mt]:["DELETE","/2025-03-07/web-functions/{functionName}/endpoints/{endpointName}",204]},()=>Sfe,()=>ip],cme=[9,G,jYe,{[Mt]:["DELETE","/2025-03-07/web-functions/{functionName}/revisions/{revisionId}",204]},()=>Efe,()=>ip],ume=[9,G,tJe,{[Mt]:["GET","/2025-03-07/resource-policy/{resourceArn}",200]},()=>bfe,()=>Afe],lme=[9,G,oJe,{[Mt]:["GET","/2025-03-07/web-account-settings",200]},()=>xfe,()=>Tfe],dme=[9,G,aJe,{[Mt]:["GET","/2025-03-07/web-functions/{functionName}",200]},()=>Ife,()=>wfe],pme=[9,G,cJe,{[Mt]:["GET","/2025-03-07/web-functions/{functionName}/endpoints/{endpointName}",200]},()=>vfe,()=>Dfe],fme=[9,G,gJe,{[Mt]:["GET","/2025-03-07/web-functions/{functionName}/revisions/{revisionId}",200]},()=>Pfe,()=>Ofe],mme=[9,G,yJe,{[Mt]:["GET","/2025-03-07/tags/{resource}",200]},()=>$fe,()=>kfe],gme=[9,G,CJe,{[Mt]:["POST","/2025-03-07/web-functions/{functionName}/list-endpoints",200]},()=>Mfe,()=>Lfe],hme=[9,G,IJe,{[Mt]:["POST","/2025-03-07/web-functions/{functionName}/list-revisions",200]},()=>Nfe,()=>Ffe],Sme=[9,G,RJe,{[Mt]:["POST","/2025-03-07/web-functions",200]},()=>Bfe,()=>Ufe],yme=[9,G,wJe,{[Mt]:["PUT","/2025-03-07/resource-policy/{resourceArn}",200]},()=>qfe,()=>Hfe],Eme=[9,G,YJe,{[Mt]:["POST","/2025-03-07/tags/{resource}",204]},()=>Yfe,()=>ip],_me=[9,G,XJe,{[Mt]:["DELETE","/2025-03-07/tags/{resource}",204]},()=>Xfe,()=>ip],Rme=[9,G,eXe,{[Mt]:["PATCH","/2025-03-07/web-functions/{functionName}/endpoints/{endpointName}",202]},()=>Zfe,()=>eme],YXe=t=>({apiVersion:"2025-03-07",base64Decoder:t?.base64Decoder??nYe,base64Encoder:t?.base64Encoder??rYe,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??RYe,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??dYe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new J7e}],logger:t?.logger??new _7e,protocol:t?.protocol??aYe,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.lambdaweb",errorTypeRegistries:ife,version:"2025-03-07",serviceTarget:"LambdaWeb"},serviceId:t?.serviceId??"Lambda Web",sha256:t?.sha256??cYe,urlParser:t?.urlParser??U7e,utf8Decoder:t?.utf8Decoder??tYe,utf8Encoder:t?.utf8Encoder??eYe}),JXe=t=>{R7e(process.version);let e=D7e(t),r=()=>e().then(C7e),n=YXe(t);o7e(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??pu(X7e,o),bodyLengthChecker:t?.bodyLengthChecker??oYe,credentialDefaultProvider:t?.credentialDefaultProvider??Z7e,defaultUserAgentProvider:t?.defaultUserAgentProvider??s7e({serviceId:n.serviceId,clientVersion:hYe.version}),maxAttempts:t?.maxAttempts??pu(V7e,t),region:t?.region??pu(P7e,{...O7e,...o}),requestHandler:iYe.create(t?.requestHandler??r),retryMode:t?.retryMode??pu({...z7e,default:async()=>(await r()).retryMode||j7e},t),streamCollector:t?.streamCollector??sYe,useDualstackEndpoint:t?.useDualstackEndpoint??pu(w7e,o),useFipsEndpoint:t?.useFipsEndpoint??pu(I7e,o),userAgentAppId:t?.userAgentAppId??pu(i7e,o)}},XXe=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},ZXe=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),eZe=(t,e)=>{let r=Object.assign(a7e(t),b7e(t),G7e(t),XXe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,c7e(r),A7e(r),q7e(r),ZXe(r))},mu=class extends qpe{config;constructor(...[e]){let r=JXe(e||{});super(r),this.initConfig=r;let n=fYe(r),o=u7e(n),s=W7e(o),i=$7e(s),a=l7e(i),c=F7e(a),u=pYe(c),f=eZe(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(Q7e(this.config)),this.middlewareStack.use(d7e(this.config)),this.middlewareStack.use(K7e(this.config)),this.middlewareStack.use(H7e(this.config)),this.middlewareStack.use(p7e(this.config)),this.middlewareStack.use(f7e(this.config)),this.middlewareStack.use(m7e(this.config)),this.middlewareStack.use(g7e(this.config,{httpAuthSchemeParametersProvider:uYe,identityProviderConfigProvider:async m=>new h7e({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(S7e(this.config))}destroy(){super.destroy()}},Lt=x7e(mYe,"LambdaWeb","LambdaWebClient",B7e),Nt={},Ft=(t,e,r,n)=>[],_x=class extends Lt(Nt,Ft,"CreateWebFunction",rme){},Rx=class extends Lt(Nt,Ft,"CreateWebFunctionEndpoint",nme){},Cx=class extends Lt(Nt,Ft,"CreateWebFunctionRevision",ome){},bx=class extends Lt(Nt,Ft,"DeleteResourcePolicy",sme){},Ax=class extends Lt(Nt,Ft,"DeleteWebFunction",ime){},xx=class extends Lt(Nt,Ft,"DeleteWebFunctionEndpoint",ame){},Tx=class extends Lt(Nt,Ft,"DeleteWebFunctionRevision",cme){},vx=class extends Lt(Nt,Ft,"GetResourcePolicy",ume){},Dx=class extends Lt(Nt,Ft,"GetWebAccountSettings",lme){},ep=class extends Lt(Nt,Ft,"GetWebFunction",dme){},gu=class extends Lt(Nt,Ft,"GetWebFunctionEndpoint",pme){},Ug=class extends Lt(Nt,Ft,"GetWebFunctionRevision",fme){},Ix=class extends Lt(Nt,Ft,"ListTags",mme){},Gg=class extends Lt(Nt,Ft,"ListWebFunctionEndpoints",gme){},qg=class extends Lt(Nt,Ft,"ListWebFunctionRevisions",hme){},Hg=class extends Lt(Nt,Ft,"ListWebFunctions",Sme){},wx=class extends Lt(Nt,Ft,"PutResourcePolicy",yme){},Px=class extends Lt(Nt,Ft,"TagResource",Eme){},Ox=class extends Lt(Nt,Ft,"UntagResource",_me){},$x=class extends Lt(Nt,Ft,"UpdateWebFunctionEndpoint",Rme){},Cme=LN(mu,Gg,"nextToken","nextToken","maxResults"),bme=LN(mu,qg,"nextToken","nextToken","maxResults"),Ame=LN(mu,Hg,"nextToken","nextToken","maxResults"),xme=async(t,e)=>{let r;try{let n=await t.send(new ep(e));r=n;try{if(n.state==="Active")return{state:ct.SUCCESS,reason:r}}catch{}try{if(n.state==="Failed")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Deleting")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Pending")return{state:ct.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:ct.RETRY,reason:r}},tZe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,xme),Tme=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,xme);return tp(n)},vme=async(t,e)=>{let r;try{let n=await t.send(new ep(e));r=n;try{if(n.state==="Deleting")return{state:ct.RETRY,reason:r}}catch{}}catch(n){if(r=n,n.name==="ResourceNotFoundException")return{state:ct.SUCCESS,reason:r}}return{state:ct.RETRY,reason:r}},rZe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,vme),Dme=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,vme);return tp(n)},Ime=async(t,e)=>{let r;try{let n=await t.send(new gu(e));r=n;try{if(n.state==="Active")return{state:ct.SUCCESS,reason:r}}catch{}try{if(n.state==="Failed")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Deleting")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Pending")return{state:ct.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:ct.RETRY,reason:r}},nZe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,Ime),wme=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,Ime);return tp(n)},Pme=async(t,e)=>{let r;try{let n=await t.send(new gu(e));r=n;try{if(n.state==="Deleting")return{state:ct.RETRY,reason:r}}catch{}}catch(n){if(r=n,n.name==="ResourceNotFoundException")return{state:ct.SUCCESS,reason:r}}return{state:ct.RETRY,reason:r}},oZe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,Pme),Ome=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,Pme);return tp(n)},$me=async(t,e)=>{let r;try{let n=await t.send(new gu(e));r=n;try{if(n.updateStatus==="Successful")return{state:ct.SUCCESS,reason:r}}catch{}try{if(n.updateStatus==="Failed")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.updateStatus==="InProgress")return{state:ct.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:ct.RETRY,reason:r}},sZe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,$me),kme=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,$me);return tp(n)},Mme=async(t,e)=>{let r;try{let n=await t.send(new Ug(e));r=n;try{if(n.state==="Active")return{state:ct.SUCCESS,reason:r}}catch{}try{if(n.state==="Failed")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Pending")return{state:ct.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:ct.RETRY,reason:r}},iZe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,Mme),Lme=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,Mme);return tp(n)},aZe={CreateWebFunctionCommand:_x,CreateWebFunctionEndpointCommand:Rx,CreateWebFunctionRevisionCommand:Cx,DeleteResourcePolicyCommand:bx,DeleteWebFunctionCommand:Ax,DeleteWebFunctionEndpointCommand:xx,DeleteWebFunctionRevisionCommand:Tx,GetResourcePolicyCommand:vx,GetWebAccountSettingsCommand:Dx,GetWebFunctionCommand:ep,GetWebFunctionEndpointCommand:gu,GetWebFunctionRevisionCommand:Ug,ListTagsCommand:Ix,ListWebFunctionEndpointsCommand:Gg,ListWebFunctionRevisionsCommand:qg,ListWebFunctionsCommand:Hg,PutResourcePolicyCommand:wx,TagResourceCommand:Px,UntagResourceCommand:Ox,UpdateWebFunctionEndpointCommand:$x},cZe={paginateListWebFunctionEndpoints:Cme,paginateListWebFunctionRevisions:bme,paginateListWebFunctions:Ame},uZe={waitUntilWebFunctionActive:Tme,waitUntilWebFunctionDeleted:Dme,waitUntilWebFunctionEndpointActive:wme,waitUntilWebFunctionEndpointDeleted:Ome,waitUntilWebFunctionEndpointUpdated:kme,waitUntilWebFunctionRevisionActive:Lme},kx=class extends mu{};T7e(aZe,kx,{paginators:cZe,waiters:uZe});var lZe={DEBUG:"DEBUG",ERROR:"ERROR",FATAL:"FATAL",INFO:"INFO",TRACE:"TRACE",WARN:"WARN"},dZe={APPLICATION_MANAGED:"ApplicationManaged",IAM_AUTH:"IamAuth"},pZe={DISABLED:"Disabled",LATEST_REVISION:"LatestRevision"},fZe={HOME_REGION:"HomeRegion",MULTI_REGION:"MultiRegion",PER_REGION:"PerRegion"},mZe={DEBUG:"DEBUG",INFO:"INFO",WARN:"WARN"},gZe={ACTIVE:"Active",DELETING:"Deleting",FAILED:"Failed",PENDING:"Pending"},hZe={FAILED:"Failed",IN_PROGRESS:"InProgress",SUCCESSFUL:"Successful"},SZe={ACTIVE:"Active",FAILED:"Failed",PENDING:"Pending"},yZe={ACTIVE:"Active",DELETING:"Deleting",FAILED:"Failed",PENDING:"Pending"};D.AccessDeniedException=fx;D.AccessDeniedException$=Zpe;D.AccountQuotas$=afe;D.AccountUsage$=cfe;D.ApplicationLogLevel=lZe;D.AuthType=dZe;D.AutoDeploymentMode=pZe;D.BuildConfig$=Wg;D.CodeConfig$=ufe;D.ConflictException=mx;D.ConflictException$=efe;D.CreateWebFunction$=rme;D.CreateWebFunctionCommand=_x;D.CreateWebFunctionEndpoint$=nme;D.CreateWebFunctionEndpointCommand=Rx;D.CreateWebFunctionEndpointRequest$=lfe;D.CreateWebFunctionEndpointResponse$=dfe;D.CreateWebFunctionRequest$=pfe;D.CreateWebFunctionResponse$=ffe;D.CreateWebFunctionRevision$=ome;D.CreateWebFunctionRevisionCommand=Cx;D.CreateWebFunctionRevisionRequest$=mfe;D.CreateWebFunctionRevisionResponse$=gfe;D.DeleteResourcePolicy$=sme;D.DeleteResourcePolicyCommand=bx;D.DeleteResourcePolicyRequest$=hfe;D.DeleteWebFunction$=ime;D.DeleteWebFunctionCommand=Ax;D.DeleteWebFunctionEndpoint$=ame;D.DeleteWebFunctionEndpointCommand=xx;D.DeleteWebFunctionEndpointRequest$=Sfe;D.DeleteWebFunctionRequest$=yfe;D.DeleteWebFunctionRevision$=cme;D.DeleteWebFunctionRevisionCommand=Tx;D.DeleteWebFunctionRevisionRequest$=Efe;D.EndpointConfig$=_fe;D.EndpointState=gZe;D.EndpointType=fZe;D.EndpointUpdateStatus=hZe;D.Filter$=Rfe;D.FunctionEndpointSummary$=WN;D.FunctionRevisionSummary$=KN;D.FunctionState=yZe;D.FunctionSummary$=Cfe;D.GetResourcePolicy$=ume;D.GetResourcePolicyCommand=vx;D.GetResourcePolicyRequest$=bfe;D.GetResourcePolicyResponse$=Afe;D.GetWebAccountSettings$=lme;D.GetWebAccountSettingsCommand=Dx;D.GetWebAccountSettingsRequest$=xfe;D.GetWebAccountSettingsResponse$=Tfe;D.GetWebFunction$=dme;D.GetWebFunctionCommand=ep;D.GetWebFunctionEndpoint$=pme;D.GetWebFunctionEndpointCommand=gu;D.GetWebFunctionEndpointRequest$=vfe;D.GetWebFunctionEndpointResponse$=Dfe;D.GetWebFunctionRequest$=Ife;D.GetWebFunctionResponse$=wfe;D.GetWebFunctionRevision$=fme;D.GetWebFunctionRevisionCommand=Ug;D.GetWebFunctionRevisionRequest$=Pfe;D.GetWebFunctionRevisionResponse$=Ofe;D.InternalServerException=gx;D.InternalServerException$=tfe;D.LambdaWeb=kx;D.LambdaWebClient=mu;D.LambdaWebServiceException=ns;D.LambdaWebServiceException$=Xpe;D.ListTags$=mme;D.ListTagsCommand=Ix;D.ListTagsRequest$=$fe;D.ListTagsResponse$=kfe;D.ListWebFunctionEndpoints$=gme;D.ListWebFunctionEndpointsCommand=Gg;D.ListWebFunctionEndpointsRequest$=Mfe;D.ListWebFunctionEndpointsResponse$=Lfe;D.ListWebFunctionRevisions$=hme;D.ListWebFunctionRevisionsCommand=qg;D.ListWebFunctionRevisionsRequest$=Nfe;D.ListWebFunctionRevisionsResponse$=Ffe;D.ListWebFunctions$=Sme;D.ListWebFunctionsCommand=Hg;D.ListWebFunctionsRequest$=Bfe;D.ListWebFunctionsResponse$=Ufe;D.LoggingConfig$=Gfe;D.PutResourcePolicy$=yme;D.PutResourcePolicyCommand=wx;D.PutResourcePolicyRequest$=qfe;D.PutResourcePolicyResponse$=Hfe;D.RegionalEndpoint$=jfe;D.ResourceNotFoundException=hx;D.ResourceNotFoundException$=rfe;D.RevisionConfig$=zfe;D.RevisionError$=Vfe;D.RevisionState=SZe;D.RevisionWeight$=Wfe;D.RuntimeConfig$=Kfe;D.S3Object$=Qfe;D.ScalingConfig$=Vi;D.ServiceConfig$=Kg;D.ServiceQuotaExceededException=Sx;D.ServiceQuotaExceededException$=nfe;D.SystemLogLevel=mZe;D.TagResource$=Eme;D.TagResourceCommand=Px;D.TagResourceRequest$=Yfe;D.TelemetryConfig$=Jfe;D.ThrottleConfig$=Wi;D.ThrottlingException=yx;D.ThrottlingException$=ofe;D.UntagResource$=_me;D.UntagResourceCommand=Ox;D.UntagResourceRequest$=Xfe;D.UpdateWebFunctionEndpoint$=Rme;D.UpdateWebFunctionEndpointCommand=$x;D.UpdateWebFunctionEndpointRequest$=Zfe;D.UpdateWebFunctionEndpointResponse$=eme;D.ValidationException=Ex;D.ValidationException$=sfe;D.errorTypeRegistries=ife;D.paginateListWebFunctionEndpoints=Cme;D.paginateListWebFunctionRevisions=bme;D.paginateListWebFunctions=Ame;D.waitForWebFunctionActive=tZe;D.waitForWebFunctionDeleted=rZe;D.waitForWebFunctionEndpointActive=nZe;D.waitForWebFunctionEndpointDeleted=oZe;D.waitForWebFunctionEndpointUpdated=sZe;D.waitForWebFunctionRevisionActive=iZe;D.waitUntilWebFunctionActive=Tme;D.waitUntilWebFunctionDeleted=Dme;D.waitUntilWebFunctionEndpointActive=wme;D.waitUntilWebFunctionEndpointDeleted=Ome;D.waitUntilWebFunctionEndpointUpdated=kme;D.waitUntilWebFunctionRevisionActive=Lme});var Gbe=st(p=>{var{awsEndpointFunctions:EZe,emitWarningIfUnsupportedVersion:_Ze,createDefaultUserAgentProvider:RZe,NODE_APP_ID_CONFIG_OPTIONS:CZe,getAwsRegionExtensionConfiguration:bZe,resolveAwsRegionExtensionConfiguration:AZe,resolveUserAgentConfig:xZe,resolveHostHeaderConfig:TZe,getUserAgentPlugin:vZe,getHostHeaderPlugin:DZe,getLoggerPlugin:IZe,getRecursionDetectionPlugin:wZe}=(Ee(),F(kn)),{getHttpAuthSchemeEndpointRuleSetPlugin:PZe,DefaultIdentityProviderConfig:OZe,getHttpSigningPlugin:$Ze,createPaginator:Rr}=(jt(),F(xl)),{normalizeProvider:zme,getSmithyContext:kZe,ServiceException:MZe,NoOpLogger:LZe,emitWarningIfUnsupportedVersion:NZe,loadConfigsForDefaultMode:FZe,getDefaultExtensionConfiguration:BZe,resolveDefaultRuntimeConfig:UZe,Client:Vme,makeBuilder:GZe,createAggregatedClient:qZe}=(J(),F(bo)),{Command:HZe}=(J(),F(bo));p.$Command=HZe;p.__Client=Vme;var{resolveDefaultsModeConfig:jZe,loadConfig:bu,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:zZe,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:VZe,NODE_REGION_CONFIG_OPTIONS:WZe,NODE_REGION_CONFIG_FILE_OPTIONS:KZe,resolveRegionConfig:QZe}=(ye(),F(Br)),{BinaryDecisionDiagram:YZe,EndpointCache:JZe,decideEndpoint:XZe,customEndpointFunctions:ZZe,resolveEndpointConfig:eet,getEndpointPlugin:tet}=(He(),F(jp)),{eventStreamSerdeProvider:ret,resolveEventStreamSerdeConfig:net}=(WS(),F(VS)),{parseUrl:oet,getHttpHandlerExtensionConfiguration:set,resolveHttpHandlerRuntimeConfig:iet,getContentLengthPlugin:aet}=(V(),F(wo)),{DEFAULT_RETRY_MODE:cet,NODE_RETRY_MODE_CONFIG_OPTIONS:uet,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:det,resolveRetryConfig:pet,getRetryPlugin:fet}=(en(),F(nf)),{TypeRegistry:Wme,getSchemaSerdePlugin:met}=(ae(),F(Dp)),{resolveAwsSdkSigV4Config:get,AwsSdkSigV4Signer:het,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:yet}=(rr(),F(Il)),{defaultProvider:Eet}=Cm(),{toUtf8:_et,fromUtf8:Ret,toBase64:Cet,fromBase64:bet,calculateBodyLength:Aet}=(j(),F(To)),{streamCollector:xet,NodeHttpHandler:Tet}=zs(),{AwsJson1_1Protocol:vet}=(Di(),F(Vy)),{Sha256:Det}=(On(),F(Vp)),Iet=async(t,e,r)=>({operation:kZe(e).operation,region:await zme(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function wet(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"logs",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var Pet=t=>{let e=[];switch(t.operation){default:e.push(wet(t))}return e},Oet=t=>{let e=get(t);return Object.assign(e,{authSchemePreference:zme(t.authSchemePreference??[])})},$et=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"logs"}),ket={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Met="3.1151.0",Let={version:Met},Qg="ref",Au=-1,Hx=!0,Fme="isSet",Kme="PartitionResult",jx="booleanEquals",Bme="getAttr",Ume="stringEquals",Gme={[Qg]:"Endpoint"},qme={[Qg]:Kme},JN={[Qg]:"Region"},xu={},Hme=[JN],jme={conditions:[[Fme,[Gme]],[Fme,Hme],["aws.partition",Hme,Kme],[jx,[{[Qg]:"UseFIPS"},Hx]],[jx,[{[Qg]:"UseDualStack"},Hx]],[jx,[{fn:Bme,argv:[qme,"supportsDualStack"]},Hx]],[jx,[{fn:Bme,argv:[qme,"supportsFIPS"]},Hx]],[Ume,[JN,"us-gov-east-1"]],[Ume,[JN,"us-gov-west-1"]]],results:[[Au],[Au,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Au,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Gme,xu],["https://logs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",xu],[Au,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://logs.us-gov-east-1.amazonaws.com",xu],["https://logs.us-gov-west-1.amazonaws.com",xu],["https://logs-fips.{Region}.{PartitionResult#dnsSuffix}",xu],[Au,"FIPS is enabled but this partition does not support FIPS"],["https://logs.{Region}.{PartitionResult#dualStackDnsSuffix}",xu],[Au,"DualStack is enabled but this partition does not support DualStack"],["https://logs.{Region}.{PartitionResult#dnsSuffix}",xu],[Au,"Invalid Configuration: Missing Region"]]},Net=2,pn=1e8,Fet=new Int32Array([-1,1,-1,0,14,3,1,4,pn+13,2,5,pn+13,3,8,6,4,7,pn+12,5,pn+10,pn+11,4,12,9,6,10,pn+9,7,pn+6,11,8,pn+7,pn+8,5,13,pn+5,6,pn+4,pn+5,3,pn+1,15,4,pn+2,pn+3]),Bet=YZe.from(Fet,Net,jme.conditions,jme.results),Uet=new JZe({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Get=(t,e={})=>Uet.get(t,()=>XZe(Bet,{endpointParams:t,logger:e.logger}));ZZe.aws=EZe;var nt=class t extends MZe{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatchlogs#CloudWatchLogsServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},zx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#AccessDeniedException";name="AccessDeniedException";$fault="client";constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Vx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InvalidParameterException";name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Wx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#OperationAbortedException";name="OperationAbortedException";$fault="client";constructor(e){super({name:"OperationAbortedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Kx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Qx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ServiceUnavailableException";name="ServiceUnavailableException";$fault="server";constructor(e){super({name:"ServiceUnavailableException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},Yx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InternalServerException";name="InternalServerException";$fault="server";constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},Jx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ThrottlingException";name="ThrottlingException";$fault="client";constructor(e){super({name:"ThrottlingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Xx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ValidationException";name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Zx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InvalidOperationException";name="InvalidOperationException";$fault="client";constructor(e){super({name:"InvalidOperationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},eT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ConflictException";name="ConflictException";$fault="client";constructor(e){super({name:"ConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},tT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException";name="ServiceQuotaExceededException";$fault="client";constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},rT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#LimitExceededException";name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},nT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException";name="ResourceAlreadyExistsException";$fault="client";constructor(e){super({name:"ResourceAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},oT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#DataAlreadyAcceptedException";name="DataAlreadyAcceptedException";$fault="client";expectedSequenceToken;constructor(e){super({name:"DataAlreadyAcceptedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.expectedSequenceToken=e.expectedSequenceToken}},sT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InternalStreamingException";name="InternalStreamingException";$fault="client";constructor(e){super({name:"InternalStreamingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},iT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InvalidSequenceTokenException";name="InvalidSequenceTokenException";$fault="client";expectedSequenceToken;constructor(e){super({name:"InvalidSequenceTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.expectedSequenceToken=e.expectedSequenceToken}},aT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#UnrecognizedClientException";name="UnrecognizedClientException";$fault="client";constructor(e){super({name:"UnrecognizedClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#SessionStreamingException";name="SessionStreamingException";$fault="client";constructor(e){super({name:"SessionStreamingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},uT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#SessionTimeoutException";name="SessionTimeoutException";$fault="client";constructor(e){super({name:"SessionTimeoutException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#MalformedQueryException";name="MalformedQueryException";$fault="client";queryCompileError;constructor(e){super({name:"MalformedQueryException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.queryCompileError=e.queryCompileError}},dT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#TooManyTagsException";name="TooManyTagsException";$fault="client";resourceName;constructor(e){super({name:"TooManyTagsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceName=e.resourceName}},qet="Anomaly",Het="AnomalyDetector",jet="AccessDeniedException",zet="AnomalyDetectors",Vet="AllowedFields",Wet="AddKeys",Ket="AddKeyEntry",Qet="AddKeyEntries",Yet="AssociateKmsKey",Jet="AssociateKmsKeyRequest",Xet="AggregateLogGroupSummary",Zet="AggregateLogGroupSummaries",ett="AccountPolicy",ttt="AccountPolicies",rtt="AssociateSourceToS3TableIntegration",ntt="AssociateSourceToS3TableIntegrationRequest",ott="AssociateSourceToS3TableIntegrationResponse",stt="Anomalies",itt="CreateDelivery",att="CreateDeliveryRequest",ctt="CreateDeliveryResponse",utt="ConflictException",ltt="CancelExportTask",dtt="CancelExportTaskRequest",ptt="CreateExportTaskRequest",ftt="CreateExportTaskResponse",mtt="CreateExportTask",gtt="CancelImportTask",htt="CancelImportTaskRequest",Stt="CancelImportTaskResponse",ytt="CreateImportTaskRequest",Ett="CreateImportTaskResponse",_tt="CreateImportTask",Rtt="CreateLogAnomalyDetector",Ctt="CreateLogAnomalyDetectorRequest",btt="CreateLogAnomalyDetectorResponse",Att="CreateLogGroup",xtt="CreateLogGroupRequest",Ttt="CreateLogStream",vtt="CreateLogStreamRequest",Dtt="CreateLookupTable",Itt="CreateLookupTableRequest",wtt="CreateLookupTableResponse",Ptt="CreateScheduledQuery",Ott="CreateScheduledQueryRequest",$tt="CreateScheduledQueryResponse",ktt="CSV",Mtt="ConfigurationTemplate",Ltt="ConfigurationTemplateDeliveryConfigValues",Ntt="ConfigurationTemplates",Ftt="CopyValue",Btt="CopyValueEntry",Utt="CopyValueEntries",Gtt="Delivery",qtt="DataAlreadyAcceptedException",Htt="DeleteAccountPolicy",jtt="DeleteAccountPolicyRequest",ztt="DescribeAccountPoliciesRequest",Vtt="DescribeAccountPoliciesResponse",Wtt="DescribeAccountPolicies",Ktt="DestinationConfiguration",Qtt="DescribeConfigurationTemplates",Ytt="DescribeConfigurationTemplatesRequest",Jtt="DescribeConfigurationTemplatesResponse",Xtt="DeliveryDestination",Ztt="DeliveryDestinationConfiguration",ert="DeleteDeliveryDestination",trt="DeleteDeliveryDestinationPolicy",rrt="DeleteDeliveryDestinationPolicyRequest",nrt="DeleteDeliveryDestinationRequest",ort="DescribeDeliveryDestinationsRequest",srt="DescribeDeliveryDestinationsResponse",irt="DescribeDeliveryDestinations",art="DeleteDataProtectionPolicy",crt="DeleteDataProtectionPolicyRequest",urt="DeleteDeliveryRequest",lrt="DeleteDestinationRequest",drt="DescribeDeliveriesRequest",prt="DescribeDeliveriesResponse",frt="DescribeDestinationsRequest",mrt="DescribeDestinationsResponse",grt="DeleteDeliverySource",hrt="DeleteDeliverySourceRequest",Srt="DescribeDeliverySourcesRequest",yrt="DescribeDeliverySourcesResponse",Ert="DescribeDeliverySources",_rt="DeliveryDestinations",Rrt="DeleteDelivery",Crt="DeleteDestination",brt="DescribeDeliveries",Art="DescribeDestinations",xrt="DescribeExportTasks",Trt="DescribeExportTasksRequest",vrt="DescribeExportTasksResponse",Drt="DescribeFieldIndexes",Irt="DescribeFieldIndexesRequest",wrt="DescribeFieldIndexesResponse",Prt="DeleteIntegration",Ort="DeleteIndexPolicy",$rt="DeleteIndexPolicyRequest",krt="DeleteIndexPolicyResponse",Mrt="DescribeIndexPoliciesRequest",Lrt="DescribeIndexPoliciesResponse",Nrt="DescribeIndexPolicies",Frt="DeleteIntegrationRequest",Brt="DeleteIntegrationResponse",Urt="DescribeImportTasks",Grt="DescribeImportTaskBatches",qrt="DescribeImportTaskBatchesRequest",Hrt="DescribeImportTaskBatchesResponse",jrt="DescribeImportTasksRequest",zrt="DescribeImportTasksResponse",Vrt="DeleteKeys",Wrt="DisassociateKmsKey",Krt="DisassociateKmsKeyRequest",Qrt="DeleteLogAnomalyDetector",Yrt="DeleteLogAnomalyDetectorRequest",Jrt="DeleteLogGroup",Xrt="DeleteLogGroupRequest",Zrt="DescribeLogGroupsRequest",ent="DescribeLogGroupsResponse",tnt="DescribeLogGroups",rnt="DeleteLogStream",nnt="DeleteLogStreamRequest",ont="DescribeLogStreamsRequest",snt="DescribeLogStreamsResponse",int="DescribeLogStreams",ant="DeleteLookupTable",cnt="DeleteLookupTableRequest",unt="DescribeLookupTablesRequest",lnt="DescribeLookupTablesResponse",dnt="DescribeLookupTables",pnt="DeleteMetricFilter",fnt="DeleteMetricFilterRequest",mnt="DescribeMetricFiltersRequest",gnt="DescribeMetricFiltersResponse",hnt="DescribeMetricFilters",Snt="DestinationNamePrefix",ynt="DescribeQueries",Ent="DeleteQueryDefinition",_nt="DeleteQueryDefinitionRequest",Rnt="DeleteQueryDefinitionResponse",Cnt="DescribeQueryDefinitionsRequest",bnt="DescribeQueryDefinitionsResponse",Ant="DescribeQueryDefinitions",xnt="DescribeQueriesRequest",Tnt="DescribeQueriesResponse",vnt="DeleteResourcePolicy",Dnt="DeleteResourcePolicyRequest",Int="DeleteRetentionPolicyRequest",wnt="DescribeResourcePoliciesRequest",Pnt="DescribeResourcePoliciesResponse",Ont="DeleteRetentionPolicy",$nt="DescribeResourcePolicies",knt="DataSource",Mnt="DeleteSyslogConfiguration",Lnt="DeleteSyslogConfigurationRequest",Nnt="DeliverySourceConfigurationSchema",Fnt="DeliverySourceConfigurationSchemas",Bnt="DataSourceFilter",Unt="DeleteSubscriptionFilterRequest",Gnt="DescribeSubscriptionFiltersRequest",qnt="DescribeSubscriptionFiltersResponse",Hnt="DisassociateSourceFromS3TableIntegration",jnt="DisassociateSourceFromS3TableIntegrationRequest",znt="DisassociateSourceFromS3TableIntegrationResponse",Vnt="DataSourceFilters",Wnt="DeleteSubscriptionFilter",Knt="DescribeSubscriptionFilters",Qnt="DeleteScheduledQuery",Ynt="DeleteScheduledQueryRequest",Jnt="DeleteScheduledQueryResponse",Xnt="DeliverySource",Znt="DeliverySources",eot="DeleteTransformer",tot="DateTimeConverter",rot="DeleteTransformerRequest",not="Destination",oot="Deliveries",sot="Destinations",iot="Entity",aot="ExportTask",cot="ExportTaskExecutionInfo",uot="ExportTaskStatus",lot="ExportTasks",dot="FieldsData",pot="FieldIndex",fot="FieldIndexes",mot="FilteredLogEvent",got="FilterLogEventsRequest",hot="FilterLogEventsResponse",Sot="FilteredLogEvents",yot="FilterLogEvents",Eot="Grok",_ot="GetDelivery",Rot="GetDeliveryDestination",Cot="GetDeliveryDestinationPolicy",bot="GetDeliveryDestinationPolicyRequest",Aot="GetDeliveryDestinationPolicyResponse",xot="GetDeliveryDestinationRequest",Tot="GetDeliveryDestinationResponse",vot="GetDataProtectionPolicy",Dot="GetDataProtectionPolicyRequest",Iot="GetDataProtectionPolicyResponse",wot="GetDeliveryRequest",Pot="GetDeliveryResponse",Oot="GetDeliverySource",$ot="GetDeliverySourceRequest",kot="GetDeliverySourceResponse",Mot="GroupingIdentifier",Lot="GetIntegrationRequest",Not="GetIntegrationResponse",Fot="GetIntegration",Bot="GroupingIdentifiers",Uot="GetLogAnomalyDetector",Got="GetLogAnomalyDetectorRequest",qot="GetLogAnomalyDetectorResponse",Hot="GetLogEvents",jot="GetLogEventsRequest",zot="GetLogEventsResponse",Vot="GetLogFields",Wot="GetLogFieldsRequest",Kot="GetLogFieldsResponse",Qot="GetLogGroupFields",Yot="GetLogGroupFieldsRequest",Jot="GetLogGroupFieldsResponse",Xot="GetLogObject",Zot="GetLogObjectRequest",est="GetLogObjectResponseStream",tst="GetLogObjectResponse",rst="GetLogRecord",nst="GetLogRecordRequest",ost="GetLogRecordResponse",sst="GetLookupTable",ist="GetLookupTableRequest",ast="GetLookupTableResponse",cst="GetQueryResults",ust="GetQueryResultsRequest",lst="GetQueryResultsResponse",dst="GetScheduledQuery",pst="GetScheduledQueryHistory",fst="GetScheduledQueryHistoryRequest",mst="GetScheduledQueryHistoryResponse",gst="GetScheduledQueryRequest",hst="GetScheduledQueryResponse",Sst="GetStorageTierPolicy",yst="GetStorageTierPolicyRequest",Est="GetStorageTierPolicyResponse",_st="GetTransformer",Rst="GetTransformerRequest",Cst="GetTransformerResponse",bst="Import",Ast="ImportBatch",xst="ImportBatchList",Tst="IntegrationDetails",vst="ImportFilter",Dst="ImportList",Ist="InputLogEvent",wst="InputLogEvents",Pst="InvalidOperationException",Ost="IndexPolicy",$st="InvalidParameterException",kst="IndexPolicies",Mst="ImportStatistics",Lst="InternalServerException",Qme="InternalStreamingException",Nst="InvalidSequenceTokenException",Fst="IntegrationSummary",Bst="IntegrationSummaries",Ust="ListAnomalies",Gst="ListAggregateLogGroupSummaries",qst="ListAggregateLogGroupSummariesRequest",Hst="ListAggregateLogGroupSummariesResponse",jst="ListAnomaliesRequest",zst="ListAnomaliesResponse",Vst="LowerCaseString",Wst="LogEvent",Kst="LimitExceededException",Qst="LogFieldsList",Yst="LogFieldsListItem",Jst="LogFieldType",Xst="LogGroup",Zst="LogGroupField",eit="LogGroupFieldList",tit="LogGroupSummary",rit="LogGroupSummaries",nit="LogGroups",oit="ListIntegrations",sit="ListIntegrationsRequest",iit="ListIntegrationsResponse",ait="ListLogAnomalyDetectors",cit="ListLogAnomalyDetectorsRequest",uit="ListLogAnomalyDetectorsResponse",lit="ListLogGroups",dit="ListLogGroupsForQuery",pit="ListLogGroupsForQueryRequest",fit="ListLogGroupsForQueryResponse",mit="ListLogGroupsRequest",git="ListLogGroupsResponse",hit="LogStream",Sit="ListSyslogConfigurations",yit="ListSyslogConfigurationsRequest",Eit="ListSyslogConfigurationsResponse",_it="ListSourcesForS3TableIntegration",Rit="ListSourcesForS3TableIntegrationRequest",Cit="ListSourcesForS3TableIntegrationResponse",bit="ListScheduledQueries",Ait="ListScheduledQueriesRequest",xit="ListScheduledQueriesResponse",Tit="LogSamples",vit="LogStreams",Dit="LookupTable",Iit="LookupTableConfiguration",wit="ListTagsForResource",Pit="ListTagsForResourceRequest",Oit="ListTagsForResourceResponse",$it="ListTagsLogGroup",kit="ListTagsLogGroupRequest",Mit="ListTagsLogGroupResponse",Lit="ListToMap",Nit="LiveTailSessionLogEvent",Fit="LiveTailSessionMetadata",Bit="LiveTailSessionResults",Uit="LiveTailSessionStart",Git="LiveTailSessionUpdate",qit="LookupTables",Hit="MetricFilter",jit="MetricFilterMatches",zit="MetricFilterMatchRecord",Vit="MetricFilters",Wit="MoveKeys",Kit="MoveKeyEntry",Qit="MoveKeyEntries",Yit="MalformedQueryException",Jit="MetricTransformation",Xit="MetricTransformations",Zit="OperationAbortedException",eat="OutputLogEvent",tat="OutputLogEvents",rat="OpenSearchApplication",nat="OpenSearchCollection",oat="OpenSearchDataAccessPolicy",sat="OpenSearchDataSource",iat="OpenSearchEncryptionPolicy",aat="OpenSearchIntegrationDetails",cat="OpenSearchLifecyclePolicy",uat="OpenSearchNetworkPolicy",lat="OpenSearchResourceConfig",dat="OpenSearchResourceStatus",pat="OpenSearchWorkspace",fat="Policy",mat="PutAccountPolicy",gat="PutAccountPolicyRequest",hat="PutAccountPolicyResponse",Sat="PutBearerTokenAuthentication",yat="PutBearerTokenAuthenticationRequest",Eat="ParseCloudfront",_at="PutDestination",Rat="PutDeliveryDestination",Cat="PutDeliveryDestinationPolicy",bat="PutDeliveryDestinationPolicyRequest",Aat="PutDeliveryDestinationPolicyResponse",xat="PutDeliveryDestinationRequest",Tat="PutDeliveryDestinationResponse",vat="PutDestinationPolicy",Dat="PutDataProtectionPolicy",Iat="PutDataProtectionPolicyRequest",wat="PutDataProtectionPolicyResponse",Pat="PutDestinationPolicyRequest",Oat="PutDestinationRequest",$at="PutDestinationResponse",kat="PutDeliverySource",Mat="PutDeliverySourceRequest",Lat="PutDeliverySourceResponse",Nat="PutIntegration",Fat="PutIndexPolicy",Bat="PutIndexPolicyRequest",Uat="PutIndexPolicyResponse",Gat="PutIntegrationRequest",qat="PutIntegrationResponse",Hat="ParseJSON",jat="ParseKeyValue",zat="PutLogEvents",Vat="PutLogEventsRequest",Wat="PutLogEventsResponse",Kat="PutLogGroupDeletionProtection",Qat="PutLogGroupDeletionProtectionRequest",Yat="PutMetricFilter",Jat="PutMetricFilterRequest",Xat="ParsePostgres",Zat="PutQueryDefinition",ect="PutQueryDefinitionRequest",tct="PutQueryDefinitionResponse",rct="ParseRoute53",nct="PutResourcePolicy",oct="PutResourcePolicyRequest",sct="PutResourcePolicyResponse",ict="PutRetentionPolicyRequest",act="PutRetentionPolicy",cct="PutSyslogConfiguration",uct="PutSyslogConfigurationRequest",lct="PutSubscriptionFilter",dct="PutSubscriptionFilterRequest",pct="PutStorageTierPolicy",fct="PutStorageTierPolicyRequest",mct="PutStorageTierPolicyResponse",gct="PatternToken",hct="ParseToOCSF",Sct="PutTransformerRequest",yct="PatternTokens",Ect="PutTransformer",_ct="ParseVPC",Rct="ParseWAF",Cct="Processor",bct="Processors",Act="QueryCompileError",xct="QueryCompileErrorLocation",Tct="QueryDefinition",vct="QueryDefinitionList",Dct="QueryInfo",Ict="QueryInfoList",wct="QueryParameter",Pct="QueryParameterList",Oct="QueryResults",$ct="QueryStatistics",kct="ResourceAlreadyExistsException",Mct="ResourceConfig",Lct="RejectedEntityInfo",Nct="RecordField",Fct="ResultField",Bct="RenameKeys",Uct="RenameKeyEntry",Gct="RenameKeyEntries",qct="RejectedLogEventsInfo",Hct="ResourceNotFoundException",jct="ResourcePolicy",zct="ResourcePolicies",Vct="ResultRows",Wct="S3Configuration",Kct="SyslogConfiguration",Qct="SyslogConfigurations",Yct="S3DeliveryConfiguration",Jct="SubscriptionFilter",Xct="SubscriptionFilters",Zct="SearchedLogStream",eut="SearchedLogStreams",tut="StartLiveTail",rut="StartLiveTailRequest",nut="StartLiveTailResponseStream",out="StartLiveTailResponse",sut="SuppressionPeriod",iut="StartQuery",aut="ScheduledQueryDestination",cut="ScheduledQueryDestinationList",uut="ServiceQuotaExceededException",lut="StartQueryRequest",dut="StartQueryResponse",put="StopQueryRequest",fut="StopQueryResponse",mut="ScheduledQuerySummary",gut="ScheduledQuerySummaryList",hut="StopQuery",Sut="SplitString",Yme="SessionStreamingException",yut="SplitStringEntry",Eut="SplitStringEntries",_ut="SubstituteStringEntry",Rut="SubstituteStringEntries",Cut="SubstituteString",Jme="SessionTimeoutException",but="S3TablesIntegration",Aut="S3TableIntegrationSource",xut="S3TableIntegrationSources",Tut="ServiceUnavailableException",vut="TypeConverter",Dut="TypeConverterEntry",Iut="TypeConverterEntries",wut="ThrottlingException",Put="TagFilter",Out="TagFilters",$ut="TriggerHistoryRecord",kut="TriggerHistoryRecordList",Mut="TransformedLogs",Lut="TagLogGroup",Nut="TagLogGroupRequest",Fut="TransformedLogRecord",But="TestMetricFilter",Uut="TestMetricFilterRequest",Gut="TestMetricFilterResponse",qut="TooManyTagsException",Hut="TagResource",jut="TagResourceRequest",zut="TrimString",Vut="TestTransformer",Wut="TestTransformerRequest",Kut="TestTransformerResponse",Qut="UpdateAnomaly",Yut="UpdateAnomalyRequest",Jut="UnrecognizedClientException",Xut="UpperCaseString",Zut="UpdateDeliveryConfiguration",elt="UpdateDeliveryConfigurationRequest",tlt="UpdateDeliveryConfigurationResponse",rlt="UpdateLogAnomalyDetector",nlt="UpdateLogAnomalyDetectorRequest",olt="UntagLogGroup",slt="UntagLogGroupRequest",ilt="UpdateLookupTable",alt="UpdateLookupTableRequest",clt="UpdateLookupTableResponse",ult="UntagResource",llt="UntagResourceRequest",dlt="UpdateScheduledQuery",plt="UpdateScheduledQueryRequest",flt="UpdateScheduledQueryResponse",mlt="ValidationException",glt="active",Xme="applicationArn",hlt="allowedActionForAllowVendedLogsDeliveryForResource",Slt="anomalyDetectors",ic="anomalyDetectorArn",Zme="anomalyDetectorStatus",ylt="applicationEndpoint",Elt="allowedFields",_lt="allowedFieldDelimiters",Rlt="accountId",sD="accountIdentifiers",ege="anomalyId",Clt="applicationId",blt="addKeys",Alt="aggregateLogGroupSummaries",xlt="allowedOutputFormats",iD="applyOnTransformedLogs",Tlt="accountPolicies",XN="accessPolicy",vlt="accountPolicy",Dlt="allowedSuffixPathFields",aD="anomalyVisibilityTime",Ilt="anomalies",wlt="application",ap="arn",Plt="attributes",Olt="baseline",$lt="batchId",klt="batchImportStatus",Mlt="bytesImported",tge="bytesScanned",rge="bearerTokenAuthenticationEnabled",Jt="client",nge="createdAt",Llt="collectionArn",Nlt="collectionEndpoint",Hn="creationTime",oge="creationTimeStamp",Flt="createdTimeStamp",Blt="clientToken",Ult="configurationTemplates",Glt="completionTime",qlt="createTime",Hlt="copyValue",jlt="columns",zlt="code",Vlt="collection",Wlt="csv",is="description",sge="destinationArn",mh="destinationConfiguration",Klt="deliveryDestinations",ige="deliveryDestinationArn",age="deliveryDestinationConfiguration",Qlt="defaultDeliveryConfigValues",ZN="deliveryDestinationName",cge="deliveryDestinationPolicy",cD="deliveryDestinationType",Ylt="deliveryDestinationTypes",uge="deliveryDestination",lge="destinationIdentifier",Jlt="deleteKeys",e3="detectorName",Xlt="datasourceName",uD="destinationName",dge="destinationPrefix",t3="deletionProtectionEnabled",Zlt="dataProtectionStatus",edt="destinationResourceArn",r3="dataSource",n3="deliverySourceConfiguration",pge="deliverySourceName",fge="dataSourceName",tdt="dataSourceRoleArn",rdt="dataSourceType",mge="dataSources",ndt="deliverySources",gge="deliverySource",odt="datasourceType",sdt="dateTimeConverter",idt="dynamicTokenPosition",adt="destinationType",o3="defaultValue",cdt="dashboardViewerPrincipals",udt="data",hge="delivery",Sge="delimiter",ldt="deliveries",cp="destination",ddt="descending",yge="destinations",pdt="dimensions",Ege="distribution",wt="error",fdt="estimatedBytesSkipped",mdt="endCharOffset",gdt="endEventTime",lD="evaluationFrequency",hdt="enableHiveCompatiblePath",Sdt="executionInfo",ydt="eventId",Edt="encryptionKey",_dt="expiredLogEventEndIndex",dD="errorMessage",_ge="eventMessage",Rge="eventNumber",Rdt="encryptionPolicy",pD="executionRoleArn",Cge="expectedRevisionId",Cdt="estimatedRecordsSkipped",bdt="executionStatuses",bge="emitSystemFields",Age="emitSystemFieldDimensions",xge="expectedSequenceToken",Adt="eventSource",xdt="executionStatus",Tdt="exportTasks",fD="endTimeOffset",mD="endTime",vdt="errorType",Ddt="extractedValues",Idt="element",Tu="entries",wdt="enabled",Tge="endpoint",Pdt="entity",Odt="enumerations",vge="events",s3="from",gh="fieldDelimiter",$dt="flattenedElement",kdt="firstEventTime",Mdt="firstEventTimestamp",Ldt="fieldIndexes",Ndt="fieldIndexName",Fdt="fieldIndexNames",Bdt="filterLogGroupArn",up="filterName",Dge="filterNamePrefix",yi="filterPattern",Udt="firstSeen",gD="fieldSelectionCriteria",Gdt="fieldStream",qdt="forceUpdate",Ige="fields",Hdt="field",jdt="flatten",zdt="force",Vdt="grok",Wdt="groupBy",Kdt="groupingIdentifiers",Qdt="histogram",wge="httpError",ac="identifier",Pge="integrationArn",Ydt="importBatches",Jdt="indexCategories",Xdt="indexCategory",Zdt="integrationDetails",Oge="importDestinationArn",ept="isDynamic",$ge="importFilter",vu="importId",i3="includeLinkedAccounts",lp="integrationName",tpt="integrationNamePrefix",rpt="indexPolicies",npt="isPatternLevelSuppression",opt="inheritedProperties",spt="indexPolicy",ipt="importRoleArn",kge="importStatistics",hD="importSourceArn",a3="importStatus",SD="integrationStatus",apt="integrationSummaries",c3="ingestionTime",cpt="inferredTokenName",yD="integrationType",ED="id",upt="imports",lpt="interleaved",dp="key",dpt="keyAttributes",ppt="kmsKeyArn",go="kmsKeyId",fpt="keyName",mpt="keyPrefix",gpt="keyValueDelimiter",hpt="locale",Spt="lowerCaseString",ypt="logEvents",Mge="logEventFilterPattern",Lge="logEventMessages",u3="lastExecutionStatus",Ept="lastEventTime",_pt="lastEventTimestamp",Rpt="logFields",Cpt="logFieldName",bpt="logFieldType",Nge="logGroups",l3="logGroupArn",_D="logGroupArnList",Apt="logGroupCount",pp="logGroupClass",xpt="logGroupFields",as="logGroupIdentifiers",dt="logGroupIdentifier",Me="logGroupName",Tpt="logGroupNamePrefix",d3="logGroupNamePattern",p3="logGroupNames",vpt="logGroupsScanned",Dpt="logGroupTags",Ipt="lastIngestionTime",wpt="lastModified",Ppt="lastModifiedTime",Fge="lastModifiedTimeStamp",Opt="logObjectPointer",$pt="lifecyclePolicy",kpt="logRecord",Mpt="logRecordPointer",Lpt="lastSeen",cc="logStreamName",f3="logStreamNamePrefix",Bge="logStreamNamePrefixes",m3="logStreamNames",Npt="lastScanTime",Fpt="logSamples",Bpt="logStreams",g3="logType",Du="lookupTableArn",Upt="lookupTableConfiguration",Gpt="listToMap",h3="lookupTableName",qpt="lookupTableNamePrefix",S3="lastTriggeredTime",Hpt="logTypes",jpt="lookupTables",xn="lastUpdatedTime",zpt="lastUpdateTime",Bt="limit",Vpt="location",je="message",Wpt="metricFilters",Kpt="metricFilterCount",Qpt="maxItems",Ypt="moveKeys",Uge="metricName",Gge="metricNamespace",Jpt="matchPatterns",uc="maxResults",qge="metricTransformations",Xpt="minValue",Zpt="maxValue",eft="mappingVersion",tft="metricValue",rft="match",nft="mandatory",oft="matches",Ut="name",sft="nextBackwardToken",ift="nextForwardToken",aft="nonMatchValue",cft="networkPolicy",uft="nextSequenceToken",Q="nextToken",lft="ownerAccountId",dft="orderBy",Hge="outputFormat",hh="overwriteIfExists",pft="openSearchIntegrationDetails",fft="openSearchResourceConfig",mft="ocsfVersion",gft="priority",hft="parseCloudfront",Ki="policyDocument",jge="patternId",Sft="processedIdentifier",yft="parseJSON",Eft="parseKeyValue",ho="policyName",_ft="parsePostgres",Rft="patternRegex",Cft="parseRoute53",bft="patternString",Aft="parentSourceIdentifier",zge="policyScope",RD="policyType",xft="parseToOCSF",Tft="patternTokens",vft="parseVPC",Dft="parseWAF",Vge="parameters",Ift="percent",Wge="policy",wft="queries",Pft="quoteCharacter",Oft="queryCompileError",$ft="queryDefinitions",CD="queryDefinitionId",kft="queryDefinitionNamePrefix",Mft="queryDuration",lc="queryId",cs="queryLanguage",dc="queryString",Lft="results",pc="resourceArn",Nft="resourceArns",fc="roleArn",Fft="recordsCount",Bft="resourceConfig",Uft="resultCount",Gft="retentionDays",qft="rejectedEntityInfo",bD="recordFields",Kge="resourceIdentifier",Qge="retentionInDays",Hft="requestId",Yge="revisionId",jft="renameKeys",zft="rejectedLogEventsInfo",Vft="recordsMatched",Wft="resourceName",Kft="resourcePolicies",Qft="resourcePolicy",Yft="recordsScanned",Jft="responseStream",Xft="resourceType",Zft="resourceTypes",emt="renameTo",Jge="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatchlogs",Xge="sizeBytes",Zge="storedBytes",ehe="selectionCriteria",tmt="startCharOffset",rmt="searchedCompletely",nmt="s3Configuration",omt="statusCode",smt="syslogConfigurations",imt="suppressedDate",AD="s3DeliveryConfiguration",Sh="scheduleExpression",xD="scheduleEndTime",amt="startEventTime",cmt="subscriptionFilters",the="startFromHead",umt="sessionId",lmt="searchedLogStreams",dmt="sessionMetadata",pmt="statusMessage",fmt="suffixPath",mmt="suppressionPeriod",gmt="scheduledQueries",yh="scheduledQueryArn",rhe="statusReason",hmt="sessionResults",Smt="suppressionState",TD="scheduleStartTime",ymt="sessionStart",Emt="splitString",_mt="substituteString",Rmt="sourceTimezone",Cmt="s3TablesIntegration",vD="startTimeOffset",DD="scheduleType",bmt="sequenceToken",Amt="sourceType",ID="startTime",y3="storageTier",xmt="suppressionType",Tmt="suppressedUntil",vmt="sessionUpdate",Dmt="suppressionUnit",Imt="supportedValues",wmt="sampled",nhe="scope",ohe="server",E3="service",$r="source",Pmt="sources",mc="state",kr="status",Omt="statistics",she="streaming",$mt="suppressed",ihe="success",wD="target",ahe="targetArn",_3="tableBody",R3="transformerConfig",kmt="typeConverter",Mmt="transformedEventMessage",Lmt="targetFormat",Nmt="tableFields",Fmt="triggerHistory",PD="taskId",Bmt="tagKeys",Umt="transformedLogs",che="taskName",Gmt="tooNewLogEventStartIndex",qmt="tableName",Hmt="tooOldLogEventEndIndex",jmt="tokenString",zmt="trimString",Vmt="targetTimezone",Wmt="triggeredTimestamp",Mr="tags",Eh="timezone",_h="timestamp",Kmt="time",C3="to",Rh="type",OD="unmask",Qmt="upperCaseString",Ymt="userIdentity",Jmt="uploadSequenceToken",Xmt="unit",$D="value",kD="vpcEndpointId",Zmt="valueKey",egt="valueType",tgt="values",rgt="workspace",ngt="workspaceId",MD="withKeys",S="com.amazonaws.cloudwatchlogs",uhe=new Wme(Jge),lhe=[-3,Jge,"CloudWatchLogsServiceException",0,[],[]];uhe.registerError(lhe,nt);var Rt=new Wme(S),dhe=[-3,S,jet,{[wt]:Jt},[je],[0]];Rt.registerError(dhe,zx);var phe=[-3,S,utt,{[wt]:Jt},[je],[0]];Rt.registerError(phe,eT);var fhe=[-3,S,qtt,{[wt]:Jt},[xge,je],[0,0]];Rt.registerError(fhe,oT);var mhe=[-3,S,Lst,{[wt]:ohe,[wge]:500},[je],[0]];Rt.registerError(mhe,Yx);var b3=[-3,S,Qme,{[wt]:Jt},[je],[0]];Rt.registerError(b3,sT);var ghe=[-3,S,Pst,{[wt]:Jt},[je],[0]];Rt.registerError(ghe,Zx);var hhe=[-3,S,$st,{[wt]:Jt},[je],[0]];Rt.registerError(hhe,Vx);var She=[-3,S,Nst,{[wt]:Jt},[xge,je],[0,0]];Rt.registerError(She,iT);var yhe=[-3,S,Kst,{[wt]:Jt},[je],[0]];Rt.registerError(yhe,rT);var Ehe=[-3,S,Yit,{[wt]:Jt},[Oft,je],[()=>s_e,0]];Rt.registerError(Ehe,lT);var _he=[-3,S,Zit,{[wt]:Jt},[je],[0]];Rt.registerError(_he,Wx);var Rhe=[-3,S,kct,{[wt]:Jt},[je],[0]];Rt.registerError(Rhe,nT);var Che=[-3,S,Hct,{[wt]:Jt},[je],[0]];Rt.registerError(Che,Kx);var bhe=[-3,S,uut,{[wt]:Jt},[je],[0]];Rt.registerError(bhe,tT);var Ahe=[-3,S,Tut,{[wt]:ohe},[je],[0]];Rt.registerError(Ahe,Qx);var A3=[-3,S,Yme,{[wt]:Jt},[je],[0]];Rt.registerError(A3,cT);var x3=[-3,S,Jme,{[wt]:Jt},[je],[0]];Rt.registerError(x3,uT);var xhe=[-3,S,wut,{[wt]:Jt},[je],[0]];Rt.registerError(xhe,Jx);var The=[-3,S,qut,{[wt]:Jt,[wge]:400},[je,Wft],[0,0]];Rt.registerError(The,dT);var vhe=[-3,S,Jut,{[wt]:Jt},[je],[0]];Rt.registerError(vhe,aT);var Dhe=[-3,S,mlt,{[wt]:Jt},[je],[0]];Rt.registerError(Dhe,Xx);var Ihe=[uhe,Rt],T3=[3,S,ett,0,[ho,Ki,xn,RD,nhe,ehe,Rlt],[0,0,1,0,0,0,0]],whe=[3,S,Ket,0,[dp,$D,hh],[0,0,2],2],Phe=[3,S,Wet,0,[Tu],[()=>sgt],1],Ohe=[3,S,Xet,0,[Apt,Kdt],[1,()=>_gt]],$he=[3,S,qet,0,[ege,jge,ic,bft,Udt,Lpt,is,glt,mc,Qdt,Fpt,Tft,_D,Rft,gft,$mt,imt,Tmt,npt],[0,0,0,0,1,1,0,2,0,129,()=>wgt,()=>Ngt,64,0,0,2,1,1,2],13],khe=[3,S,Het,0,[ic,e3,_D,lD,yi,Zme,go,oge,Fge,aD],[0,0,64,0,0,0,0,1,1,1]],Mhe=[3,S,Jet,0,[go,Me,Kge],[0,0,0],1],Lhe=[3,S,ntt,0,[Pge,r3],[0,()=>v3],2],Nhe=[3,S,ott,0,[ac],[0]],Fhe=[3,S,dtt,0,[PD],[0],1],Bhe=[3,S,htt,0,[vu],[0],1],Uhe=[3,S,Stt,0,[vu,kge,a3,Hn,xn],[0,()=>P3,0,1,1]],Ghe=[3,S,Mtt,0,[E3,g3,Xft,cD,Qlt,Elt,xlt,hlt,_lt,Dlt,n3,Cmt],[0,0,0,0,()=>qhe,()=>agt,64,0,64,64,()=>mgt,()=>E_e]],qhe=[3,S,Ltt,0,[bD,gh,AD],[64,0,()=>Ch]],Hhe=[3,S,Ftt,0,[Tu],[()=>dgt],1],jhe=[3,S,Btt,0,[$r,wD,hh],[0,0,2],2],zhe=[3,S,att,0,[pge,ige,bD,gh,AD,Mr],[0,0,64,0,()=>Ch,128],2],Vhe=[3,S,ctt,0,[hge],[()=>LD]],Whe=[3,S,ptt,0,[Me,s3,C3,cp,che,f3,dge],[0,1,1,0,0,0,0],4],Khe=[3,S,ftt,0,[PD],[0]],Qhe=[3,S,ytt,0,[hD,ipt,$ge],[0,0,()=>w3],2],Yhe=[3,S,Ett,0,[vu,Oge,Hn],[0,0,1]],Jhe=[3,S,Ctt,0,[_D,e3,lD,yi,go,aD,Mr],[64,0,0,0,0,1,128],1],Xhe=[3,S,btt,0,[ic],[0]],Zhe=[3,S,xtt,0,[Me,go,Mr,pp,t3],[0,0,128,0,2],1],eSe=[3,S,vtt,0,[Me,cc],[0,0],2],tSe=[3,S,Itt,0,[h3,is,_3,lc,go,Mr],[0,0,0,0,0,128],1],rSe=[3,S,wtt,0,[Du,nge],[0,1]],nSe=[3,S,Ott,0,[Ut,cs,dc,Sh,pD,is,as,Eh,vD,fD,mh,TD,xD,mc,Mr],[0,0,0,0,0,0,64,0,1,1,()=>fp,1,1,0,128],5],oSe=[3,S,$tt,0,[yh,mc],[0,0]],sSe=[3,S,ktt,0,[Pft,Sge,jlt,$r,cp],[0,0,64,0,0]],v3=[3,S,knt,0,[Ut,Rh],[0,0],1],iSe=[3,S,Bnt,0,[Ut,Rh],[0,0],1],aSe=[3,S,tot,0,[$r,wD,Jpt,Lmt,Rmt,Vmt,hpt],[0,0,64,0,0,0,0],3],cSe=[3,S,jtt,0,[ho,RD],[0,0],2],uSe=[3,S,crt,0,[dt],[0],1],lSe=[3,S,rrt,0,[ZN],[0],1],dSe=[3,S,nrt,0,[Ut],[0],1],pSe=[3,S,urt,0,[ED],[0],1],fSe=[3,S,hrt,0,[Ut],[0],1],mSe=[3,S,lrt,0,[uD],[0],1],gSe=[3,S,$rt,0,[dt],[0],1],hSe=[3,S,krt,0,[],[]],SSe=[3,S,Frt,0,[lp,zdt],[0,2],1],ySe=[3,S,Brt,0,[],[]],ESe=[3,S,Vrt,0,[MD],[64],1],_Se=[3,S,Yrt,0,[ic],[0],1],RSe=[3,S,Xrt,0,[Me],[0],1],CSe=[3,S,nnt,0,[Me,cc],[0,0],2],bSe=[3,S,cnt,0,[Du],[0],1],ASe=[3,S,fnt,0,[Me,up],[0,0],2],xSe=[3,S,_nt,0,[CD],[0],1],TSe=[3,S,Rnt,0,[ihe],[2]],vSe=[3,S,Dnt,0,[ho,pc,Cge],[0,0,0]],DSe=[3,S,Int,0,[Me],[0],1],ISe=[3,S,Ynt,0,[ac],[0],1],wSe=[3,S,Jnt,0,[],[]],PSe=[3,S,Unt,0,[Me,up],[0,0],2],OSe=[3,S,Lnt,0,[dt,kD],[0,0],1],$Se=[3,S,rot,0,[dt],[0],1],LD=[3,S,Gtt,0,[ED,ap,pge,ige,cD,bD,gh,AD,Mr],[0,0,0,0,0,64,0,()=>Ch,128]],ND=[3,S,Xtt,0,[Ut,ap,cD,Hge,age,fc,Mr],[0,0,0,0,()=>D3,0,128]],D3=[3,S,Ztt,0,[edt],[0],1],FD=[3,S,Xnt,0,[Ut,ap,Nft,E3,g3,Mr,n3,kr,rhe],[0,0,64,0,0,128,128,0,0]],kSe=[3,S,Nnt,0,[fpt,egt,o3,Imt,Xpt,Zpt],[0,0,0,64,1,1],3],MSe=[3,S,ztt,0,[RD,ho,sD,Q],[0,0,64,0],1],LSe=[3,S,Vtt,0,[Tlt,Q],[()=>ogt,0]],NSe=[3,S,Ytt,0,[E3,Hpt,Zft,Ylt,Q,Bt],[0,64,64,64,0,1]],FSe=[3,S,Jtt,0,[Ult,Q],[()=>lgt,0]],BSe=[3,S,drt,0,[Q,Bt],[0,1]],USe=[3,S,prt,0,[ldt,Q],[()=>pgt,0]],GSe=[3,S,ort,0,[Q,Bt],[0,1]],qSe=[3,S,srt,0,[Klt,Q],[()=>fgt,0]],HSe=[3,S,Srt,0,[Q,Bt],[0,1]],jSe=[3,S,yrt,0,[ndt,Q],[()=>ggt,0]],zSe=[3,S,frt,0,[Snt,Q,Bt],[0,0,1]],VSe=[3,S,mrt,0,[yge,Q],[()=>hgt,0]],WSe=[3,S,Trt,0,[PD,omt,Q,Bt],[0,0,0,1]],KSe=[3,S,vrt,0,[Tdt,Q],[()=>Sgt,0]],QSe=[3,S,Irt,0,[as,Jdt,Q],[64,64,0],1],YSe=[3,S,wrt,0,[Ldt,Q],[()=>ygt,0]],JSe=[3,S,qrt,0,[vu,klt,Bt,Q],[0,64,1,0],1],XSe=[3,S,Hrt,0,[hD,vu,Ydt,Q],[0,0,()=>Rgt,0]],ZSe=[3,S,jrt,0,[vu,a3,hD,Bt,Q],[0,0,0,1,0]],e0e=[3,S,zrt,0,[upt,Q],[()=>Cgt,0]],t0e=[3,S,Mrt,0,[as,Q],[64,0],1],r0e=[3,S,Lrt,0,[rpt,Q],[()=>bgt,0]],n0e=[3,S,Zrt,0,[sD,Tpt,d3,Q,Bt,i3,pp,as],[64,0,0,0,1,2,0,64]],o0e=[3,S,ent,0,[Nge,Q],[()=>Dgt,0]],s0e=[3,S,ont,0,[Me,dt,f3,dft,ddt,Q,Bt],[0,0,0,0,2,0,1]],i0e=[3,S,snt,0,[Bpt,Q],[()=>Pgt,0]],a0e=[3,S,unt,0,[qpt,uc,Q],[0,1,0]],c0e=[3,S,lnt,0,[jpt,Q],[()=>Ogt,0]],u0e=[3,S,mnt,0,[Me,Dge,Q,Bt,Uge,Gge],[0,0,0,1,0,0]],l0e=[3,S,gnt,0,[Wpt,Q],[()=>kgt,0]],d0e=[3,S,xnt,0,[Me,kr,uc,Q,cs],[0,0,1,0,0]],p0e=[3,S,Tnt,0,[wft,Q],[()=>Bgt,0]],f0e=[3,S,Cnt,0,[cs,kft,uc,Q],[0,0,1,0]],m0e=[3,S,bnt,0,[$ft,Q],[()=>Fgt,0]],g0e=[3,S,wnt,0,[Q,Bt,pc,zge],[0,1,0,0]],h0e=[3,S,Pnt,0,[Kft,Q],[()=>qgt,0]],S0e=[3,S,Gnt,0,[Me,Dge,Q,Bt],[0,0,0,1],1],y0e=[3,S,qnt,0,[cmt,Q],[()=>Qgt,0]],I3=[3,S,not,0,[uD,ahe,fc,XN,ap,Hn],[0,0,0,0,0,1]],fp=[3,S,Ktt,0,[nmt,Upt],[()=>S_e,()=>Zye]],E0e=[3,S,Krt,0,[Me,Kge],[0,0]],_0e=[3,S,jnt,0,[ac],[0],1],R0e=[3,S,znt,0,[ac],[0]],C0e=[3,S,iot,0,[dpt,Plt],[128,128]],b0e=[3,S,aot,0,[PD,che,Me,s3,C3,cp,dge,kr,Sdt],[0,0,0,1,1,0,0,()=>x0e,()=>A0e]],A0e=[3,S,cot,0,[Hn,Glt],[1,1]],x0e=[3,S,uot,0,[zlt,je],[0,0]],T0e=[3,S,pot,0,[dt,Ndt,Npt,kdt,Ept,Rh,Xdt],[0,0,1,1,1,0,0]],v0e=[3,S,dot,0,[udt],[21]],D0e=[3,S,mot,0,[cc,_h,je,c3,ydt],[0,1,0,1,0]],I0e=[3,S,got,0,[Me,dt,m3,f3,ID,mD,yi,Q,Bt,the,lpt,OD],[0,0,64,0,1,1,0,0,1,2,2,2]],w0e=[3,S,hot,0,[vge,lmt,Q],[()=>Egt,()=>Wgt,0]],P0e=[3,S,Dot,0,[dt],[0],1],O0e=[3,S,Iot,0,[dt,Ki,xn],[0,0,1]],$0e=[3,S,bot,0,[ZN],[0],1],k0e=[3,S,Aot,0,[Wge],[()=>k3]],M0e=[3,S,xot,0,[Ut],[0],1],L0e=[3,S,Tot,0,[uge],[()=>ND]],N0e=[3,S,wot,0,[ED],[0],1],F0e=[3,S,Pot,0,[hge],[()=>LD]],B0e=[3,S,$ot,0,[Ut],[0],1],U0e=[3,S,kot,0,[gge],[()=>FD]],G0e=[3,S,Lot,0,[lp],[0],1],q0e=[3,S,Not,0,[lp,yD,SD,Zdt],[0,0,0,()=>lRe]],H0e=[3,S,Got,0,[ic],[0],1],j0e=[3,S,qot,0,[e3,_D,lD,yi,Zme,go,oge,Fge,aD],[0,64,0,0,0,0,1,1,1]],z0e=[3,S,jot,0,[cc,Me,dt,ID,mD,Q,Bt,the,OD],[0,0,0,1,1,0,1,2,2],1],V0e=[3,S,zot,0,[vge,ift,sft],[()=>Lgt,0,0]],W0e=[3,S,Wot,0,[fge,rdt],[0,0],2],K0e=[3,S,Kot,0,[Rpt],[()=>iRe]],Q0e=[3,S,Yot,0,[Me,Kmt,dt],[0,1,0]],Y0e=[3,S,Jot,0,[xpt],[()=>vgt]],J0e=[3,S,Zot,0,[Opt,OD],[0,2],1],X0e=[3,S,tst,0,[Gdt],[[()=>uRe,0]]],Z0e=[3,S,nst,0,[Mpt,OD],[0,2],1],eye=[3,S,ost,0,[kpt],[128]],tye=[3,S,ist,0,[Du],[0],1],rye=[3,S,ast,0,[Du,h3,is,_3,Xge,xn,go],[0,0,0,0,1,1,0]],nye=[3,S,ust,0,[lc,Q,Qpt],[0,0,1],1],oye=[3,S,lst,0,[cs,Lft,Omt,kr,Edt,Q],[0,()=>Ugt,()=>l_e,0,0,0]],sye=[3,S,fst,0,[ac,ID,mD,bdt,uc,Q],[0,1,1,64,1,0],3],iye=[3,S,mst,0,[Ut,yh,Fmt,Q],[0,0,()=>eht,0]],aye=[3,S,gst,0,[ac],[0],1],cye=[3,S,hst,0,[yh,Ut,is,cs,dc,as,Sh,Eh,vD,fD,mh,mc,DD,S3,u3,TD,xD,pD,Hn,xn],[0,0,0,0,0,64,0,0,1,1,()=>fp,0,0,1,0,1,1,0,1,1]],uye=[3,S,yst,0,[],[]],lye=[3,S,Est,0,[y3,xn],[0,1]],dye=[3,S,Rst,0,[dt],[0],1],pye=[3,S,Cst,0,[dt,Hn,Ppt,R3],[0,1,1,()=>L3]],fye=[3,S,Eot,0,[rft,$r],[0,0],1],mye=[3,S,Mot,0,[dp,$D],[0,0]],gye=[3,S,bst,0,[vu,hD,a3,Oge,kge,$ge,Hn,xn,dD],[0,0,0,0,()=>P3,()=>w3,1,1,0]],hye=[3,S,Ast,0,[$lt,kr,dD],[0,0,0],2],w3=[3,S,vst,0,[amt,gdt],[1,1]],P3=[3,S,Mst,0,[Mlt],[1]],O3=[3,S,Ost,0,[dt,zpt,Ki,ho,$r],[0,1,0,0,0]],Sye=[3,S,Ist,0,[_h,je],[1,0],2],yye=[3,S,Fst,0,[lp,yD,SD],[0,0,0]],Eye=[3,S,qst,0,[Wdt,sD,i3,pp,d3,mge,Q,Bt],[0,64,2,0,0,()=>sRe,0,1],1],_ye=[3,S,Hst,0,[Alt,Q],[()=>igt,0]],Rye=[3,S,jst,0,[ic,Smt,Bt,Q],[0,0,1,0]],Cye=[3,S,zst,0,[Ilt,Q],[()=>cgt,0]],bye=[3,S,sit,0,[tpt,yD,SD],[0,0,0]],Aye=[3,S,iit,0,[apt],[()=>xgt]],xye=[3,S,cit,0,[Bdt,Bt,Q],[0,1,0]],Tye=[3,S,uit,0,[Slt,Q],[()=>ugt,0]],vye=[3,S,pit,0,[lc,Q,uc],[0,0,1],1],Dye=[3,S,fit,0,[as,Q],[64,0]],Iye=[3,S,mit,0,[d3,pp,i3,sD,Q,Bt,mge,Fdt,Dpt],[0,0,2,64,0,1,()=>sRe,64,()=>Xgt]],wye=[3,S,git,0,[Nge,Q],[()=>Igt,0]],Pye=[3,S,Ait,0,[uc,Q,mc,DD],[1,0,0,0]],Oye=[3,S,xit,0,[Q,gmt],[0,()=>Vgt]],$ye=[3,S,Rit,0,[Pge,uc,Q],[0,1,0],1],kye=[3,S,Cit,0,[Pmt,Q],[()=>jgt,0]],Mye=[3,S,yit,0,[dt,kD,Q,uc],[0,0,0,1]],Lye=[3,S,Eit,0,[smt,Q],[()=>Jgt,0]],Nye=[3,S,Pit,0,[pc],[0],1],Fye=[3,S,Oit,0,[Mr],[128]],Bye=[3,S,kit,0,[Me],[0],1],Uye=[3,S,Mit,0,[Mr],[128]],Gye=[3,S,Lit,0,[$r,dp,Zmt,wD,jdt,$dt],[0,0,0,0,2,0],2],qye=[3,S,Nit,0,[cc,dt,je,_h,c3],[0,0,0,1,1]],Hye=[3,S,Fit,0,[wmt],[2]],jye=[3,S,Uit,0,[Hft,umt,as,m3,Bge,Mge],[0,0,64,64,64,0]],zye=[3,S,Git,0,[dmt,hmt],[()=>Hye,()=>Tgt]],Vye=[3,S,Wst,0,[_h,je],[1,0]],Wye=[3,S,Yst,0,[Cpt,bpt],[0,()=>$3]],$3=[3,S,Jst,0,[Rh,Idt,Ige],[0,()=>$3,()=>iRe]],Kye=[3,S,Xst,0,[Me,Hn,Qge,Kpt,ap,Zge,go,Zlt,opt,pp,l3,t3,rge],[0,1,1,1,0,1,0,0,64,0,0,2,2]],Qye=[3,S,Zst,0,[Ut,Ift],[0,1]],Yye=[3,S,tit,0,[Me,l3,pp],[0,0,0]],Jye=[3,S,hit,0,[cc,Hn,Mdt,_pt,Ipt,Jmt,ap,Zge],[0,1,1,1,1,0,0,1]],Xye=[3,S,Dit,0,[Du,h3,is,Nmt,Fft,Xge,xn,go],[0,0,0,64,1,1,1,0]],Zye=[3,S,Iit,0,[qmt,fc,is,go,Mr],[0,0,0,0,128],2],eEe=[3,S,Vst,0,[MD],[64],1],tEe=[3,S,Hit,0,[up,yi,qge,Hn,Me,iD,gD,Age],[0,0,()=>aRe,1,0,2,0,64]],rEe=[3,S,zit,0,[Rge,_ge,Ddt],[1,0,128]],nEe=[3,S,Jit,0,[Uge,Gge,tft,o3,pdt,Xmt],[0,0,0,1,128,0],3],oEe=[3,S,Kit,0,[$r,wD,hh],[0,0,2],2],sEe=[3,S,Wit,0,[Tu],[()=>Mgt],1],iEe=[3,S,rat,0,[ylt,Xme,Clt,kr],[0,0,0,()=>Qi]],aEe=[3,S,nat,0,[Nlt,Llt,kr],[0,0,()=>Qi]],cEe=[3,S,oat,0,[ho,kr],[0,()=>Qi]],uEe=[3,S,sat,0,[fge,kr],[0,()=>Qi]],lEe=[3,S,iat,0,[ho,kr],[0,()=>Qi]],dEe=[3,S,aat,0,[r3,wlt,Vlt,rgt,Rdt,cft,XN,$pt],[()=>uEe,()=>iEe,()=>aEe,()=>gEe,()=>lEe,()=>fEe,()=>cEe,()=>pEe]],pEe=[3,S,cat,0,[ho,kr],[0,()=>Qi]],fEe=[3,S,uat,0,[ho,kr],[0,()=>Qi]],mEe=[3,S,lat,0,[tdt,cdt,Gft,ppt,Xme],[0,64,1,0,0],3],Qi=[3,S,dat,0,[kr,pmt],[0,0]],gEe=[3,S,pat,0,[ngt,kr],[0,()=>Qi]],hEe=[3,S,eat,0,[_h,je,c3],[1,0,1]],SEe=[3,S,Eat,0,[$r],[0]],yEe=[3,S,Hat,0,[$r,cp],[0,0]],EEe=[3,S,jat,0,[$r,cp,gh,gpt,mpt,aft,hh],[0,0,0,0,0,0,2]],_Ee=[3,S,Xat,0,[$r],[0]],REe=[3,S,rct,0,[$r],[0]],CEe=[3,S,hct,0,[Adt,mft,$r,eft],[0,0,0,0],2],bEe=[3,S,_ct,0,[$r],[0]],AEe=[3,S,Rct,0,[$r],[0]],xEe=[3,S,gct,0,[idt,ept,jmt,Odt,cpt],[1,2,0,129,0]],k3=[3,S,fat,0,[cge],[0]],TEe=[3,S,Cct,0,[blt,Hlt,Wlt,sdt,Jlt,Vdt,Gpt,Spt,Ypt,hft,yft,Eft,Cft,xft,_ft,vft,Dft,jft,Emt,_mt,zmt,kmt,Qmt],[()=>Phe,()=>Hhe,()=>sSe,()=>aSe,()=>ESe,()=>fye,()=>Gye,()=>eEe,()=>sEe,()=>SEe,()=>yEe,()=>EEe,()=>REe,()=>CEe,()=>_Ee,()=>bEe,()=>AEe,()=>g_e,()=>b_e,()=>O_e,()=>z_e,()=>V_e,()=>oRe]],vEe=[3,S,gat,0,[ho,Ki,RD,nhe,ehe],[0,0,0,0,0],3],DEe=[3,S,hat,0,[vlt],[()=>T3]],IEe=[3,S,yat,0,[dt,rge],[0,2],2],wEe=[3,S,Iat,0,[dt,Ki],[0,0],2],PEe=[3,S,wat,0,[dt,Ki,xn],[0,0,1]],OEe=[3,S,bat,0,[ZN,cge],[0,0],2],$Ee=[3,S,Aat,0,[Wge],[()=>k3]],kEe=[3,S,xat,0,[Ut,Hge,age,cD,fc,Mr],[0,0,()=>D3,0,0,128],1],MEe=[3,S,Tat,0,[uge],[()=>ND]],LEe=[3,S,Mat,0,[Ut,pc,g3,Mr,n3],[0,0,0,128,128],3],NEe=[3,S,Lat,0,[gge],[()=>FD]],FEe=[3,S,Pat,0,[uD,XN,qdt],[0,0,2],2],BEe=[3,S,Oat,0,[uD,ahe,fc,Mr],[0,0,0,128],3],UEe=[3,S,$at,0,[cp],[()=>I3]],GEe=[3,S,Bat,0,[dt,Ki],[0,0],2],qEe=[3,S,Uat,0,[spt],[()=>O3]],HEe=[3,S,Gat,0,[lp,Bft,yD],[0,()=>dRe,0],3],jEe=[3,S,qat,0,[lp,SD],[0,0]],zEe=[3,S,Vat,0,[Me,cc,ypt,bmt,Pdt],[0,0,()=>Agt,0,()=>C0e],3],VEe=[3,S,Wat,0,[uft,zft,qft],[0,()=>f_e,()=>p_e]],WEe=[3,S,Qat,0,[dt,t3],[0,2],2],KEe=[3,S,Jat,0,[Me,up,yi,qge,iD,gD,Age],[0,0,0,()=>aRe,2,0,64],4],QEe=[3,S,ect,0,[Ut,dc,cs,CD,p3,Blt,Vge],[0,0,0,0,64,[0,4],()=>cRe],2],YEe=[3,S,tct,0,[CD],[0]],JEe=[3,S,oct,0,[ho,Ki,pc,Cge],[0,0,0,0]],XEe=[3,S,sct,0,[Qft,Yge],[()=>M3,0]],ZEe=[3,S,ict,0,[Me,Qge],[0,1],2],e_e=[3,S,fct,0,[y3],[0],1],t_e=[3,S,mct,0,[y3,xn],[0,1]],r_e=[3,S,dct,0,[Me,up,yi,sge,fc,Ege,iD,gD,bge],[0,0,0,0,0,0,2,0,64],4],n_e=[3,S,uct,0,[dt,kD],[0,0],1],o_e=[3,S,Sct,0,[dt,R3],[0,()=>L3],2],s_e=[3,S,Act,0,[Vpt,je],[()=>i_e,0]],i_e=[3,S,xct,0,[tmt,mdt],[1,1]],a_e=[3,S,Tct,0,[cs,CD,Ut,dc,wpt,p3,Vge],[0,0,0,0,1,64,()=>cRe]],c_e=[3,S,Dct,0,[cs,lc,dc,kr,qlt,Me,Mft,tge,Ymt],[0,0,0,0,1,0,1,1,0]],u_e=[3,S,wct,0,[Ut,o3,is],[0,0,0],1],l_e=[3,S,$ct,0,[Vft,Yft,Cdt,tge,fdt,vpt,Uft],[1,1,1,1,1,1,1]],d_e=[3,S,Nct,0,[Ut,nft],[0,2]],p_e=[3,S,Lct,0,[vdt],[0],1],f_e=[3,S,qct,0,[Gmt,Hmt,_dt],[1,1,1]],m_e=[3,S,Uct,0,[dp,emt,hh],[0,0,2],2],g_e=[3,S,Bct,0,[Tu],[()=>Ggt],1],M3=[3,S,jct,0,[ho,Ki,xn,zge,pc,Yge],[0,0,1,0,0,0]],h_e=[3,S,Fct,0,[Hdt,$D],[0,0]],S_e=[3,S,Wct,0,[lge,fc,lft,go],[0,0,0,0],2],Ch=[3,S,Yct,0,[fmt,hdt],[0,2]],y_e=[3,S,Aut,0,[ac,r3,kr,rhe,Flt,Aft],[0,()=>v3,0,0,1,0]],E_e=[3,S,but,0,[Xlt,odt],[0,0]],__e=[3,S,aut,0,[adt,lge,kr,Sft,dD],[0,0,0,0,0]],R_e=[3,S,mut,0,[yh,Ut,mc,DD,S3,u3,Sh,Eh,mh,Hn,xn],[0,0,0,0,1,0,0,0,()=>fp,1,1]],C_e=[3,S,Zct,0,[cc,rmt],[0,2]],b_e=[3,S,Sut,0,[Tu],[()=>Kgt],1],A_e=[3,S,yut,0,[$r,Sge],[0,0],2],x_e=[3,S,rut,0,[as,m3,Bge,Mge],[64,64,64,0],1],T_e=[3,S,out,0,[Jft],[[()=>pRe,0]]],v_e=[3,S,lut,0,[ID,mD,dc,cs,Me,p3,as,Bt],[1,1,0,0,0,64,64,1],3],D_e=[3,S,dut,0,[lc],[0]],I_e=[3,S,put,0,[lc],[0],1],w_e=[3,S,fut,0,[ihe],[2]],P_e=[3,S,Jct,0,[up,Me,yi,sge,fc,Ege,iD,Hn,gD,bge],[0,0,0,0,0,0,2,1,0,64]],O_e=[3,S,Cut,0,[Tu],[()=>Ygt],1],$_e=[3,S,_ut,0,[$r,s3,C3],[0,0,0],3],k_e=[3,S,sut,0,[$D,Dmt],[1,0]],M_e=[3,S,Kct,0,[l3,Amt,kD,nge],[0,0,0,1]],L_e=[3,S,Put,0,[dp,tgt],[0,64],1],N_e=[3,S,Nut,0,[Me,Mr],[0,128],2],F_e=[3,S,jut,0,[pc,Mr],[0,128],2],B_e=[3,S,Uut,0,[yi,Lge],[0,64],2],U_e=[3,S,Gut,0,[oft],[()=>$gt]],G_e=[3,S,Wut,0,[R3,Lge],[()=>L3,64],2],q_e=[3,S,Kut,0,[Umt],[()=>Zgt]],H_e=[3,S,Fut,0,[Rge,_ge,Mmt],[1,0,0]],j_e=[3,S,$ut,0,[lc,xdt,Wmt,dD,yge],[0,0,1,0,()=>zgt]],z_e=[3,S,zut,0,[MD],[64],1],V_e=[3,S,vut,0,[Tu],[()=>tht],1],W_e=[3,S,Dut,0,[dp,Rh],[0,0],2],K_e=[3,S,slt,0,[Me,Mr],[0,64],2],Q_e=[3,S,llt,0,[pc,Bmt],[0,64],2],Y_e=[3,S,Yut,0,[ic,ege,jge,xmt,mmt,Olt],[0,0,0,0,()=>k_e,2],1],J_e=[3,S,elt,0,[ED,bD,gh,AD],[0,64,0,()=>Ch],1],X_e=[3,S,tlt,0,[],[]],Z_e=[3,S,nlt,0,[ic,wdt,lD,yi,aD],[0,2,0,0,1],2],eRe=[3,S,alt,0,[Du,is,_3,lc,go],[0,0,0,0,0],1],tRe=[3,S,clt,0,[Du,xn],[0,1]],rRe=[3,S,plt,0,[ac,cs,dc,Sh,pD,is,as,Eh,vD,fD,mh,TD,xD,mc],[0,0,0,0,0,0,64,0,1,1,()=>fp,1,1,0],5],nRe=[3,S,flt,0,[yh,Ut,is,cs,dc,as,Sh,Eh,vD,fD,mh,mc,DD,S3,u3,TD,xD,pD,Hn,xn],[0,0,0,0,0,64,0,0,1,1,()=>fp,0,0,1,0,1,1,0,1,1]],oRe=[3,S,Xut,0,[MD],[64],1],Se="unit",ogt=[1,S,ttt,0,()=>T3],sgt=[1,S,Qet,0,()=>whe],igt=[1,S,Zet,0,()=>Ohe],agt=[1,S,Vet,0,()=>d_e],cgt=[1,S,stt,0,()=>$he],ugt=[1,S,zet,0,()=>khe],lgt=[1,S,Ntt,0,()=>Ghe],dgt=[1,S,Utt,0,()=>jhe],sRe=[1,S,Vnt,0,()=>iSe],pgt=[1,S,oot,0,()=>LD],fgt=[1,S,_rt,0,()=>ND],mgt=[1,S,Fnt,0,()=>kSe],ggt=[1,S,Znt,0,()=>FD],hgt=[1,S,sot,0,()=>I3],Sgt=[1,S,lot,0,()=>b0e],ygt=[1,S,fot,0,()=>T0e],Egt=[1,S,Sot,0,()=>D0e],_gt=[1,S,Bot,0,()=>mye],Rgt=[1,S,xst,0,()=>hye],Cgt=[1,S,Dst,0,()=>gye],bgt=[1,S,kst,0,()=>O3],Agt=[1,S,wst,0,()=>Sye],xgt=[1,S,Bst,0,()=>yye],Tgt=[1,S,Bit,0,()=>qye],iRe=[1,S,Qst,0,()=>Wye],vgt=[1,S,eit,0,()=>Qye],Dgt=[1,S,nit,0,()=>Kye],Igt=[1,S,rit,0,()=>Yye],wgt=[1,S,Tit,0,()=>Vye],Pgt=[1,S,vit,0,()=>Jye],Ogt=[1,S,qit,0,()=>Xye],$gt=[1,S,jit,0,()=>rEe],kgt=[1,S,Vit,0,()=>tEe],aRe=[1,S,Xit,0,()=>nEe],Mgt=[1,S,Qit,0,()=>oEe],Lgt=[1,S,tat,0,()=>hEe],Ngt=[1,S,yct,0,()=>xEe],L3=[1,S,bct,0,()=>TEe],Fgt=[1,S,vct,0,()=>a_e],Bgt=[1,S,Ict,0,()=>c_e],cRe=[1,S,Pct,0,()=>u_e],Ugt=[1,S,Oct,0,()=>Hgt],Ggt=[1,S,Gct,0,()=>m_e],qgt=[1,S,zct,0,()=>M3],Hgt=[1,S,Vct,0,()=>h_e],jgt=[1,S,xut,0,()=>y_e],zgt=[1,S,cut,0,()=>__e],Vgt=[1,S,gut,0,()=>R_e],Wgt=[1,S,eut,0,()=>C_e],Kgt=[1,S,Eut,0,()=>A_e],Qgt=[1,S,Xct,0,()=>P_e],Ygt=[1,S,Rut,0,()=>$_e],Jgt=[1,S,Qct,0,()=>M_e],Xgt=[1,S,Out,0,()=>L_e],Zgt=[1,S,Mut,0,()=>H_e],eht=[1,S,kut,0,()=>j_e],tht=[1,S,Iut,0,()=>W_e],uRe=[4,S,est,{[she]:1},[Ige,Qme],[()=>v0e,[()=>b3,0]]],lRe=[4,S,Tst,0,[pft],[()=>dEe]],dRe=[4,S,Mct,0,[fft],[()=>mEe]],pRe=[4,S,nut,{[she]:1},[ymt,vmt,Jme,Yme],[()=>jye,()=>zye,[()=>x3,0],[()=>A3,0]]],fRe=[9,S,Yet,0,()=>Mhe,()=>Se],mRe=[9,S,rtt,0,()=>Lhe,()=>Nhe],gRe=[9,S,ltt,0,()=>Fhe,()=>Se],hRe=[9,S,gtt,0,()=>Bhe,()=>Uhe],SRe=[9,S,itt,0,()=>zhe,()=>Vhe],yRe=[9,S,mtt,0,()=>Whe,()=>Khe],ERe=[9,S,_tt,0,()=>Qhe,()=>Yhe],_Re=[9,S,Rtt,0,()=>Jhe,()=>Xhe],RRe=[9,S,Att,0,()=>Zhe,()=>Se],CRe=[9,S,Ttt,0,()=>eSe,()=>Se],bRe=[9,S,Dtt,0,()=>tSe,()=>rSe],ARe=[9,S,Ptt,0,()=>nSe,()=>oSe],xRe=[9,S,Htt,0,()=>cSe,()=>Se],TRe=[9,S,art,0,()=>uSe,()=>Se],vRe=[9,S,Rrt,0,()=>pSe,()=>Se],DRe=[9,S,ert,0,()=>dSe,()=>Se],IRe=[9,S,trt,0,()=>lSe,()=>Se],wRe=[9,S,grt,0,()=>fSe,()=>Se],PRe=[9,S,Crt,0,()=>mSe,()=>Se],ORe=[9,S,Ort,0,()=>gSe,()=>hSe],$Re=[9,S,Prt,0,()=>SSe,()=>ySe],kRe=[9,S,Qrt,0,()=>_Se,()=>Se],MRe=[9,S,Jrt,0,()=>RSe,()=>Se],LRe=[9,S,rnt,0,()=>CSe,()=>Se],NRe=[9,S,ant,0,()=>bSe,()=>Se],FRe=[9,S,pnt,0,()=>ASe,()=>Se],BRe=[9,S,Ent,0,()=>xSe,()=>TSe],URe=[9,S,vnt,0,()=>vSe,()=>Se],GRe=[9,S,Ont,0,()=>DSe,()=>Se],qRe=[9,S,Qnt,0,()=>ISe,()=>wSe],HRe=[9,S,Wnt,0,()=>PSe,()=>Se],jRe=[9,S,Mnt,0,()=>OSe,()=>Se],zRe=[9,S,eot,0,()=>$Se,()=>Se],VRe=[9,S,Wtt,0,()=>MSe,()=>LSe],WRe=[9,S,Qtt,0,()=>NSe,()=>FSe],KRe=[9,S,brt,0,()=>BSe,()=>USe],QRe=[9,S,irt,0,()=>GSe,()=>qSe],YRe=[9,S,Ert,0,()=>HSe,()=>jSe],JRe=[9,S,Art,0,()=>zSe,()=>VSe],XRe=[9,S,xrt,0,()=>WSe,()=>KSe],ZRe=[9,S,Drt,0,()=>QSe,()=>YSe],eCe=[9,S,Grt,0,()=>JSe,()=>XSe],tCe=[9,S,Urt,0,()=>ZSe,()=>e0e],rCe=[9,S,Nrt,0,()=>t0e,()=>r0e],nCe=[9,S,tnt,0,()=>n0e,()=>o0e],oCe=[9,S,int,0,()=>s0e,()=>i0e],sCe=[9,S,dnt,0,()=>a0e,()=>c0e],iCe=[9,S,hnt,0,()=>u0e,()=>l0e],aCe=[9,S,ynt,0,()=>d0e,()=>p0e],cCe=[9,S,Ant,0,()=>f0e,()=>m0e],uCe=[9,S,$nt,0,()=>g0e,()=>h0e],lCe=[9,S,Knt,0,()=>S0e,()=>y0e],dCe=[9,S,Wrt,0,()=>E0e,()=>Se],pCe=[9,S,Hnt,0,()=>_0e,()=>R0e],fCe=[9,S,yot,0,()=>I0e,()=>w0e],mCe=[9,S,vot,0,()=>P0e,()=>O0e],gCe=[9,S,_ot,0,()=>N0e,()=>F0e],hCe=[9,S,Rot,0,()=>M0e,()=>L0e],SCe=[9,S,Cot,0,()=>$0e,()=>k0e],yCe=[9,S,Oot,0,()=>B0e,()=>U0e],ECe=[9,S,Fot,0,()=>G0e,()=>q0e],_Ce=[9,S,Uot,0,()=>H0e,()=>j0e],RCe=[9,S,Hot,0,()=>z0e,()=>V0e],CCe=[9,S,Vot,0,()=>W0e,()=>K0e],bCe=[9,S,Qot,0,()=>Q0e,()=>Y0e],ACe=[9,S,Xot,{[Tge]:["stream-"]},()=>J0e,()=>X0e],xCe=[9,S,rst,0,()=>Z0e,()=>eye],TCe=[9,S,sst,0,()=>tye,()=>rye],vCe=[9,S,cst,0,()=>nye,()=>oye],DCe=[9,S,dst,0,()=>aye,()=>cye],ICe=[9,S,pst,0,()=>sye,()=>iye],wCe=[9,S,Sst,0,()=>uye,()=>lye],PCe=[9,S,_st,0,()=>dye,()=>pye],OCe=[9,S,Gst,0,()=>Eye,()=>_ye],$Ce=[9,S,Ust,0,()=>Rye,()=>Cye],kCe=[9,S,oit,0,()=>bye,()=>Aye],MCe=[9,S,ait,0,()=>xye,()=>Tye],LCe=[9,S,lit,0,()=>Iye,()=>wye],NCe=[9,S,dit,0,()=>vye,()=>Dye],FCe=[9,S,bit,0,()=>Pye,()=>Oye],BCe=[9,S,_it,0,()=>$ye,()=>kye],UCe=[9,S,Sit,0,()=>Mye,()=>Lye],GCe=[9,S,wit,0,()=>Nye,()=>Fye],qCe=[9,S,$it,0,()=>Bye,()=>Uye],HCe=[9,S,mat,0,()=>vEe,()=>DEe],jCe=[9,S,Sat,0,()=>IEe,()=>Se],zCe=[9,S,Dat,0,()=>wEe,()=>PEe],VCe=[9,S,Rat,0,()=>kEe,()=>MEe],WCe=[9,S,Cat,0,()=>OEe,()=>$Ee],KCe=[9,S,kat,0,()=>LEe,()=>NEe],QCe=[9,S,_at,0,()=>BEe,()=>UEe],YCe=[9,S,vat,0,()=>FEe,()=>Se],JCe=[9,S,Fat,0,()=>GEe,()=>qEe],XCe=[9,S,Nat,0,()=>HEe,()=>jEe],ZCe=[9,S,zat,0,()=>zEe,()=>VEe],ebe=[9,S,Kat,0,()=>WEe,()=>Se],tbe=[9,S,Yat,0,()=>KEe,()=>Se],rbe=[9,S,Zat,0,()=>QEe,()=>YEe],nbe=[9,S,nct,0,()=>JEe,()=>XEe],obe=[9,S,act,0,()=>ZEe,()=>Se],sbe=[9,S,pct,0,()=>e_e,()=>t_e],ibe=[9,S,lct,0,()=>r_e,()=>Se],abe=[9,S,cct,0,()=>n_e,()=>Se],cbe=[9,S,Ect,0,()=>o_e,()=>Se],ube=[9,S,tut,{[Tge]:["stream-"]},()=>x_e,()=>T_e],lbe=[9,S,iut,0,()=>v_e,()=>D_e],dbe=[9,S,hut,0,()=>I_e,()=>w_e],pbe=[9,S,Lut,0,()=>N_e,()=>Se],fbe=[9,S,Hut,0,()=>F_e,()=>Se],mbe=[9,S,But,0,()=>B_e,()=>U_e],gbe=[9,S,Vut,0,()=>G_e,()=>q_e],hbe=[9,S,olt,0,()=>K_e,()=>Se],Sbe=[9,S,ult,0,()=>Q_e,()=>Se],ybe=[9,S,Qut,0,()=>Y_e,()=>Se],Ebe=[9,S,Zut,0,()=>J_e,()=>X_e],_be=[9,S,rlt,0,()=>Z_e,()=>Se],Rbe=[9,S,ilt,0,()=>eRe,()=>tRe],Cbe=[9,S,dlt,0,()=>rRe,()=>nRe],rht=t=>({apiVersion:"2014-03-28",base64Decoder:t?.base64Decoder??bet,base64Encoder:t?.base64Encoder??Cet,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??Get,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??Pet,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new het}],logger:t?.logger??new LZe,protocol:t?.protocol??vet,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.cloudwatchlogs",errorTypeRegistries:Ihe,xmlNamespace:"http://monitoring.amazonaws.com/doc/2014-03-28/",version:"2014-03-28",serviceTarget:"Logs_20140328"},serviceId:t?.serviceId??"CloudWatch Logs",sha256:t?.sha256??Det,urlParser:t?.urlParser??oet,utf8Decoder:t?.utf8Decoder??Ret,utf8Encoder:t?.utf8Encoder??_et}),nht=t=>{NZe(process.version);let e=jZe(t),r=()=>e().then(FZe),n=rht(t);_Ze(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??bu(yet,o),bodyLengthChecker:t?.bodyLengthChecker??Aet,credentialDefaultProvider:t?.credentialDefaultProvider??Eet,defaultUserAgentProvider:t?.defaultUserAgentProvider??RZe({serviceId:n.serviceId,clientVersion:Let.version}),eventStreamSerdeProvider:t?.eventStreamSerdeProvider??ret,maxAttempts:t?.maxAttempts??bu(det,t),region:t?.region??bu(WZe,{...KZe,...o}),requestHandler:Tet.create(t?.requestHandler??r),retryMode:t?.retryMode??bu({...uet,default:async()=>(await r()).retryMode||cet},t),streamCollector:t?.streamCollector??xet,useDualstackEndpoint:t?.useDualstackEndpoint??bu(VZe,o),useFipsEndpoint:t?.useFipsEndpoint??bu(zZe,o),userAgentAppId:t?.userAgentAppId??bu(CZe,o)}},oht=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},sht=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),iht=(t,e)=>{let r=Object.assign(bZe(t),BZe(t),set(t),oht(t));return e.forEach(n=>n.configure(r)),Object.assign(t,AZe(r),UZe(r),iet(r),sht(r))},_t=class extends Vme{config;constructor(...[e]){let r=nht(e||{});super(r),this.initConfig=r;let n=$et(r),o=xZe(n),s=pet(o),i=QZe(s),a=TZe(i),c=eet(a),u=net(c),f=Oet(u),m=iht(f,e?.extensions||[]);this.config=m,this.middlewareStack.use(met(this.config)),this.middlewareStack.use(vZe(this.config)),this.middlewareStack.use(fet(this.config)),this.middlewareStack.use(aet(this.config)),this.middlewareStack.use(DZe(this.config)),this.middlewareStack.use(IZe(this.config)),this.middlewareStack.use(wZe(this.config)),this.middlewareStack.use(PZe(this.config,{httpAuthSchemeParametersProvider:Iet,identityProviderConfigProvider:async y=>new OZe({"aws.auth#sigv4":y.credentials})})),this.middlewareStack.use($Ze(this.config))}destroy(){super.destroy()}},P=GZe(ket,"Logs_20140328","CloudWatchLogsClient",tet),O={},$=(t,e,r,n)=>[],pT=class extends P(O,$,"AssociateKmsKey",fRe){},fT=class extends P(O,$,"AssociateSourceToS3TableIntegration",mRe){},mT=class extends P(O,$,"CancelExportTask",gRe){},gT=class extends P(O,$,"CancelImportTask",hRe){},hT=class extends P(O,$,"CreateDelivery",SRe){},ST=class extends P(O,$,"CreateExportTask",yRe){},yT=class extends P(O,$,"CreateImportTask",ERe){},ET=class extends P(O,$,"CreateLogAnomalyDetector",_Re){},_T=class extends P(O,$,"CreateLogGroup",RRe){},RT=class extends P(O,$,"CreateLogStream",CRe){},CT=class extends P(O,$,"CreateLookupTable",bRe){},bT=class extends P(O,$,"CreateScheduledQuery",ARe){},AT=class extends P(O,$,"DeleteAccountPolicy",xRe){},xT=class extends P(O,$,"DeleteDataProtectionPolicy",TRe){},TT=class extends P(O,$,"DeleteDelivery",vRe){},vT=class extends P(O,$,"DeleteDeliveryDestination",DRe){},DT=class extends P(O,$,"DeleteDeliveryDestinationPolicy",IRe){},IT=class extends P(O,$,"DeleteDeliverySource",wRe){},wT=class extends P(O,$,"DeleteDestination",PRe){},PT=class extends P(O,$,"DeleteIndexPolicy",ORe){},OT=class extends P(O,$,"DeleteIntegration",$Re){},$T=class extends P(O,$,"DeleteLogAnomalyDetector",kRe){},kT=class extends P(O,$,"DeleteLogGroup",MRe){},MT=class extends P(O,$,"DeleteLogStream",LRe){},LT=class extends P(O,$,"DeleteLookupTable",NRe){},NT=class extends P(O,$,"DeleteMetricFilter",FRe){},FT=class extends P(O,$,"DeleteQueryDefinition",BRe){},BT=class extends P(O,$,"DeleteResourcePolicy",URe){},UT=class extends P(O,$,"DeleteRetentionPolicy",GRe){},GT=class extends P(O,$,"DeleteScheduledQuery",qRe){},qT=class extends P(O,$,"DeleteSubscriptionFilter",HRe){},HT=class extends P(O,$,"DeleteSyslogConfiguration",jRe){},jT=class extends P(O,$,"DeleteTransformer",zRe){},zT=class extends P(O,$,"DescribeAccountPolicies",VRe){},Yg=class extends P(O,$,"DescribeConfigurationTemplates",WRe){},Jg=class extends P(O,$,"DescribeDeliveries",KRe){},Xg=class extends P(O,$,"DescribeDeliveryDestinations",QRe){},Zg=class extends P(O,$,"DescribeDeliverySources",YRe){},eh=class extends P(O,$,"DescribeDestinations",JRe){},VT=class extends P(O,$,"DescribeExportTasks",XRe){},WT=class extends P(O,$,"DescribeFieldIndexes",ZRe){},KT=class extends P(O,$,"DescribeImportTaskBatches",eCe){},QT=class extends P(O,$,"DescribeImportTasks",tCe){},YT=class extends P(O,$,"DescribeIndexPolicies",rCe){},th=class extends P(O,$,"DescribeLogGroups",nCe){},rh=class extends P(O,$,"DescribeLogStreams",oCe){},JT=class extends P(O,$,"DescribeLookupTables",sCe){},nh=class extends P(O,$,"DescribeMetricFilters",iCe){},XT=class extends P(O,$,"DescribeQueries",aCe){},ZT=class extends P(O,$,"DescribeQueryDefinitions",cCe){},ev=class extends P(O,$,"DescribeResourcePolicies",uCe){},oh=class extends P(O,$,"DescribeSubscriptionFilters",lCe){},tv=class extends P(O,$,"DisassociateKmsKey",dCe){},rv=class extends P(O,$,"DisassociateSourceFromS3TableIntegration",pCe){},sh=class extends P(O,$,"FilterLogEvents",fCe){},nv=class extends P(O,$,"GetDataProtectionPolicy",mCe){},ov=class extends P(O,$,"GetDelivery",gCe){},sv=class extends P(O,$,"GetDeliveryDestination",hCe){},iv=class extends P(O,$,"GetDeliveryDestinationPolicy",SCe){},av=class extends P(O,$,"GetDeliverySource",yCe){},cv=class extends P(O,$,"GetIntegration",ECe){},uv=class extends P(O,$,"GetLogAnomalyDetector",_Ce){},ih=class extends P(O,$,"GetLogEvents",RCe){},lv=class extends P(O,$,"GetLogFields",CCe){},dv=class extends P(O,$,"GetLogGroupFields",bCe){},pv=class extends P(O,$,"GetLogObject",ACe){},fv=class extends P(O,$,"GetLogRecord",xCe){},mv=class extends P(O,$,"GetLookupTable",TCe){},gv=class extends P(O,$,"GetQueryResults",vCe){},hv=class extends P(O,$,"GetScheduledQuery",DCe){},ah=class extends P(O,$,"GetScheduledQueryHistory",ICe){},Sv=class extends P(O,$,"GetStorageTierPolicy",wCe){},yv=class extends P(O,$,"GetTransformer",PCe){},ch=class extends P(O,$,"ListAggregateLogGroupSummaries",OCe){},uh=class extends P(O,$,"ListAnomalies",$Ce){},Ev=class extends P(O,$,"ListIntegrations",kCe){},lh=class extends P(O,$,"ListLogAnomalyDetectors",MCe){},_v=class extends P(O,$,"ListLogGroups",LCe){},dh=class extends P(O,$,"ListLogGroupsForQuery",NCe){},ph=class extends P(O,$,"ListScheduledQueries",FCe){},fh=class extends P(O,$,"ListSourcesForS3TableIntegration",BCe){},Rv=class extends P(O,$,"ListSyslogConfigurations",UCe){},Cv=class extends P(O,$,"ListTagsForResource",GCe){},bv=class extends P(O,$,"ListTagsLogGroup",qCe){},Av=class extends P(O,$,"PutAccountPolicy",HCe){},xv=class extends P(O,$,"PutBearerTokenAuthentication",jCe){},Tv=class extends P(O,$,"PutDataProtectionPolicy",zCe){},vv=class extends P(O,$,"PutDeliveryDestination",VCe){},Dv=class extends P(O,$,"PutDeliveryDestinationPolicy",WCe){},Iv=class extends P(O,$,"PutDeliverySource",KCe){},wv=class extends P(O,$,"PutDestination",QCe){},Pv=class extends P(O,$,"PutDestinationPolicy",YCe){},Ov=class extends P(O,$,"PutIndexPolicy",JCe){},$v=class extends P(O,$,"PutIntegration",XCe){},kv=class extends P(O,$,"PutLogEvents",ZCe){},Mv=class extends P(O,$,"PutLogGroupDeletionProtection",ebe){},Lv=class extends P(O,$,"PutMetricFilter",tbe){},Nv=class extends P(O,$,"PutQueryDefinition",rbe){},Fv=class extends P(O,$,"PutResourcePolicy",nbe){},Bv=class extends P(O,$,"PutRetentionPolicy",obe){},Uv=class extends P(O,$,"PutStorageTierPolicy",sbe){},Gv=class extends P(O,$,"PutSubscriptionFilter",ibe){},qv=class extends P(O,$,"PutSyslogConfiguration",abe){},Hv=class extends P(O,$,"PutTransformer",cbe){},jv=class extends P(O,$,"StartLiveTail",ube){},zv=class extends P(O,$,"StartQuery",lbe){},Vv=class extends P(O,$,"StopQuery",dbe){},Wv=class extends P(O,$,"TagLogGroup",pbe){},Kv=class extends P(O,$,"TagResource",fbe){},Qv=class extends P(O,$,"TestMetricFilter",mbe){},Yv=class extends P(O,$,"TestTransformer",gbe){},Jv=class extends P(O,$,"UntagLogGroup",hbe){},Xv=class extends P(O,$,"UntagResource",Sbe){},Zv=class extends P(O,$,"UpdateAnomaly",ybe){},eD=class extends P(O,$,"UpdateDeliveryConfiguration",Ebe){},tD=class extends P(O,$,"UpdateLogAnomalyDetector",_be){},rD=class extends P(O,$,"UpdateLookupTable",Rbe){},nD=class extends P(O,$,"UpdateScheduledQuery",Cbe){},bbe=Rr(_t,Yg,"nextToken","nextToken","limit"),Abe=Rr(_t,Jg,"nextToken","nextToken","limit"),xbe=Rr(_t,Xg,"nextToken","nextToken","limit"),Tbe=Rr(_t,Zg,"nextToken","nextToken","limit"),vbe=Rr(_t,eh,"nextToken","nextToken","limit"),Dbe=Rr(_t,th,"nextToken","nextToken","limit"),Ibe=Rr(_t,rh,"nextToken","nextToken","limit"),wbe=Rr(_t,nh,"nextToken","nextToken","limit"),Pbe=Rr(_t,oh,"nextToken","nextToken","limit"),Obe=Rr(_t,sh,"nextToken","nextToken","limit"),$be=Rr(_t,ih,"nextToken","nextForwardToken","limit"),kbe=Rr(_t,ah,"nextToken","nextToken","maxResults"),Mbe=Rr(_t,ch,"nextToken","nextToken","limit"),Lbe=Rr(_t,uh,"nextToken","nextToken","limit"),Nbe=Rr(_t,lh,"nextToken","nextToken","limit"),Fbe=Rr(_t,dh,"nextToken","nextToken","maxResults"),Bbe=Rr(_t,ph,"nextToken","nextToken","maxResults"),Ube=Rr(_t,fh,"nextToken","nextToken","maxResults"),aht={AssociateKmsKeyCommand:pT,AssociateSourceToS3TableIntegrationCommand:fT,CancelExportTaskCommand:mT,CancelImportTaskCommand:gT,CreateDeliveryCommand:hT,CreateExportTaskCommand:ST,CreateImportTaskCommand:yT,CreateLogAnomalyDetectorCommand:ET,CreateLogGroupCommand:_T,CreateLogStreamCommand:RT,CreateLookupTableCommand:CT,CreateScheduledQueryCommand:bT,DeleteAccountPolicyCommand:AT,DeleteDataProtectionPolicyCommand:xT,DeleteDeliveryCommand:TT,DeleteDeliveryDestinationCommand:vT,DeleteDeliveryDestinationPolicyCommand:DT,DeleteDeliverySourceCommand:IT,DeleteDestinationCommand:wT,DeleteIndexPolicyCommand:PT,DeleteIntegrationCommand:OT,DeleteLogAnomalyDetectorCommand:$T,DeleteLogGroupCommand:kT,DeleteLogStreamCommand:MT,DeleteLookupTableCommand:LT,DeleteMetricFilterCommand:NT,DeleteQueryDefinitionCommand:FT,DeleteResourcePolicyCommand:BT,DeleteRetentionPolicyCommand:UT,DeleteScheduledQueryCommand:GT,DeleteSubscriptionFilterCommand:qT,DeleteSyslogConfigurationCommand:HT,DeleteTransformerCommand:jT,DescribeAccountPoliciesCommand:zT,DescribeConfigurationTemplatesCommand:Yg,DescribeDeliveriesCommand:Jg,DescribeDeliveryDestinationsCommand:Xg,DescribeDeliverySourcesCommand:Zg,DescribeDestinationsCommand:eh,DescribeExportTasksCommand:VT,DescribeFieldIndexesCommand:WT,DescribeImportTaskBatchesCommand:KT,DescribeImportTasksCommand:QT,DescribeIndexPoliciesCommand:YT,DescribeLogGroupsCommand:th,DescribeLogStreamsCommand:rh,DescribeLookupTablesCommand:JT,DescribeMetricFiltersCommand:nh,DescribeQueriesCommand:XT,DescribeQueryDefinitionsCommand:ZT,DescribeResourcePoliciesCommand:ev,DescribeSubscriptionFiltersCommand:oh,DisassociateKmsKeyCommand:tv,DisassociateSourceFromS3TableIntegrationCommand:rv,FilterLogEventsCommand:sh,GetDataProtectionPolicyCommand:nv,GetDeliveryCommand:ov,GetDeliveryDestinationCommand:sv,GetDeliveryDestinationPolicyCommand:iv,GetDeliverySourceCommand:av,GetIntegrationCommand:cv,GetLogAnomalyDetectorCommand:uv,GetLogEventsCommand:ih,GetLogFieldsCommand:lv,GetLogGroupFieldsCommand:dv,GetLogObjectCommand:pv,GetLogRecordCommand:fv,GetLookupTableCommand:mv,GetQueryResultsCommand:gv,GetScheduledQueryCommand:hv,GetScheduledQueryHistoryCommand:ah,GetStorageTierPolicyCommand:Sv,GetTransformerCommand:yv,ListAggregateLogGroupSummariesCommand:ch,ListAnomaliesCommand:uh,ListIntegrationsCommand:Ev,ListLogAnomalyDetectorsCommand:lh,ListLogGroupsCommand:_v,ListLogGroupsForQueryCommand:dh,ListScheduledQueriesCommand:ph,ListSourcesForS3TableIntegrationCommand:fh,ListSyslogConfigurationsCommand:Rv,ListTagsForResourceCommand:Cv,ListTagsLogGroupCommand:bv,PutAccountPolicyCommand:Av,PutBearerTokenAuthenticationCommand:xv,PutDataProtectionPolicyCommand:Tv,PutDeliveryDestinationCommand:vv,PutDeliveryDestinationPolicyCommand:Dv,PutDeliverySourceCommand:Iv,PutDestinationCommand:wv,PutDestinationPolicyCommand:Pv,PutIndexPolicyCommand:Ov,PutIntegrationCommand:$v,PutLogEventsCommand:kv,PutLogGroupDeletionProtectionCommand:Mv,PutMetricFilterCommand:Lv,PutQueryDefinitionCommand:Nv,PutResourcePolicyCommand:Fv,PutRetentionPolicyCommand:Bv,PutStorageTierPolicyCommand:Uv,PutSubscriptionFilterCommand:Gv,PutSyslogConfigurationCommand:qv,PutTransformerCommand:Hv,StartLiveTailCommand:jv,StartQueryCommand:zv,StopQueryCommand:Vv,TagLogGroupCommand:Wv,TagResourceCommand:Kv,TestMetricFilterCommand:Qv,TestTransformerCommand:Yv,UntagLogGroupCommand:Jv,UntagResourceCommand:Xv,UpdateAnomalyCommand:Zv,UpdateDeliveryConfigurationCommand:eD,UpdateLogAnomalyDetectorCommand:tD,UpdateLookupTableCommand:rD,UpdateScheduledQueryCommand:nD},cht={paginateDescribeConfigurationTemplates:bbe,paginateDescribeDeliveries:Abe,paginateDescribeDeliveryDestinations:xbe,paginateDescribeDeliverySources:Tbe,paginateDescribeDestinations:vbe,paginateDescribeLogGroups:Dbe,paginateDescribeLogStreams:Ibe,paginateDescribeMetricFilters:wbe,paginateDescribeSubscriptionFilters:Pbe,paginateFilterLogEvents:Obe,paginateGetLogEvents:$be,paginateGetScheduledQueryHistory:kbe,paginateListAggregateLogGroupSummaries:Mbe,paginateListAnomalies:Lbe,paginateListLogAnomalyDetectors:Nbe,paginateListLogGroupsForQuery:Fbe,paginateListScheduledQueries:Bbe,paginateListSourcesForS3TableIntegration:Ube},oD=class extends _t{};qZe(aht,oD,{paginators:cht});var uht={DATA_PROTECTION_POLICY:"DATA_PROTECTION_POLICY",FIELD_INDEX_POLICY:"FIELD_INDEX_POLICY",METRIC_EXTRACTION_POLICY:"METRIC_EXTRACTION_POLICY",SUBSCRIPTION_FILTER_POLICY:"SUBSCRIPTION_FILTER_POLICY",TRANSFORMER_POLICY:"TRANSFORMER_POLICY"},lht={ALL:"ALL"},dht={CLIENT_ERROR:"CLIENT_ERROR",COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},pht={Active:"Active",Baseline:"Baseline",Suppressed:"Suppressed"},fht={ANALYZING:"ANALYZING",DELETED:"DELETED",FAILED:"FAILED",INITIALIZING:"INITIALIZING",PAUSED:"PAUSED",TRAINING:"TRAINING"},mht={FIFTEEN_MIN:"FIFTEEN_MIN",FIVE_MIN:"FIVE_MIN",ONE_HOUR:"ONE_HOUR",ONE_MIN:"ONE_MIN",TEN_MIN:"TEN_MIN",THIRTY_MIN:"THIRTY_MIN"},ght={CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},hht={JSON:"json",PARQUET:"parquet",PLAIN:"plain",RAW:"raw",W3C:"w3c"},Sht={CWL:"CWL",FH:"FH",S3:"S3",XRAY:"XRAY"},yht={BOOLEAN:"boolean",DOUBLE:"double",INT:"int",LONG:"long",STRING:"string"},Eht={DELIVERY:"DELIVERY",INFREQUENT_ACCESS:"INFREQUENT_ACCESS",STANDARD:"STANDARD"},_ht={CWLI:"CWLI",PPL:"PPL",SQL:"SQL"},Rht={DISABLED:"DISABLED",ENABLED:"ENABLED"},Cht={ACTIVATED:"ACTIVATED",ARCHIVED:"ARCHIVED",DELETED:"DELETED",DISABLED:"DISABLED"},bht={ACTIVE:"ACTIVE",INACTIVE:"INACTIVE"},Aht={RESOURCE_DELETED:"RESOURCE_DELETED"},xht={CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",FAILED:"FAILED",PENDING:"PENDING",PENDING_CANCEL:"PENDING_CANCEL",RUNNING:"RUNNING"},Tht={AUTO:"AUTO",CUSTOM:"CUSTOM",DEFAULT:"DEFAULT",INACTIVE:"INACTIVE"},vht={FACET:"FACET",FIELD_INDEX:"FIELD_INDEX"},Dht={ACCOUNT:"ACCOUNT",LOG_GROUP:"LOG_GROUP"},Iht={ACCOUNT_DATA_PROTECTION:"ACCOUNT_DATA_PROTECTION"},wht={LastEventTime:"LastEventTime",LogStreamName:"LogStreamName"},Pht={Bits:"Bits",BitsSecond:"Bits/Second",Bytes:"Bytes",BytesSecond:"Bytes/Second",Count:"Count",CountSecond:"Count/Second",Gigabits:"Gigabits",GigabitsSecond:"Gigabits/Second",Gigabytes:"Gigabytes",GigabytesSecond:"Gigabytes/Second",Kilobits:"Kilobits",KilobitsSecond:"Kilobits/Second",Kilobytes:"Kilobytes",KilobytesSecond:"Kilobytes/Second",Megabits:"Megabits",MegabitsSecond:"Megabits/Second",Megabytes:"Megabytes",MegabytesSecond:"Megabytes/Second",Microseconds:"Microseconds",Milliseconds:"Milliseconds",None:"None",Percent:"Percent",Seconds:"Seconds",Terabits:"Terabits",TerabitsSecond:"Terabits/Second",Terabytes:"Terabytes",TerabytesSecond:"Terabytes/Second"},Oht={Cancelled:"Cancelled",Complete:"Complete",Failed:"Failed",Running:"Running",Scheduled:"Scheduled",Timeout:"Timeout",Unknown:"Unknown"},$ht={ACCOUNT:"ACCOUNT",RESOURCE:"RESOURCE"},kht={ByLogStream:"ByLogStream",Random:"Random"},Mht={ENTITY_SIZE_TOO_LARGE:"EntitySizeTooLarge",INVALID_ATTRIBUTES:"InvalidAttributes",INVALID_ENTITY:"InvalidEntity",INVALID_KEY_ATTRIBUTE:"InvalidKeyAttributes",INVALID_TYPE_VALUE:"InvalidTypeValue",MISSING_REQUIRED_FIELDS:"MissingRequiredFields",UNSUPPORTED_LOG_GROUP_TYPE:"UnsupportedLogGroupType"},Lht={AWSWAF:"AWSWAF",CLOUD_TRAIL:"CloudTrail",EKS_AUDIT:"EKSAudit",ROUTE53_RESOLVER:"Route53Resolver",VPC_FLOW:"VPCFlow"},Nht={Complete:"Complete",Failed:"Failed",InvalidQuery:"InvalidQuery",Running:"Running",Timeout:"Timeout"},Fht={FIRST:"first",LAST:"last"},Bht={ACTIVE:"ACTIVE",ERROR:"ERROR",NOT_FOUND:"NOT_FOUND"},Uht={ACTIVE:"ACTIVE",FAILED:"FAILED",PROVISIONING:"PROVISIONING"},Ght={OPENSEARCH:"OPENSEARCH"},qht={AWS_MANAGED:"AWS_MANAGED",CUSTOMER_MANAGED:"CUSTOMER_MANAGED"},Hht={LOOKUP_TABLE:"LOOKUP_TABLE",S3:"S3"},jht={INTELLIGENT_TIERING:"INTELLIGENT_TIERING",STANDARD:"STANDARD"},zht={V1_1:"V1.1",V1_5:"V1.5"},Vht={BOOLEAN:"boolean",DOUBLE:"double",INTEGER:"integer",STRING:"string"},Wht={DATA_SOURCE_NAME_AND_TYPE:"DATA_SOURCE_NAME_AND_TYPE",DATA_SOURCE_NAME_TYPE_AND_FORMAT:"DATA_SOURCE_NAME_TYPE_AND_FORMAT"},Kht={SUPPRESSED:"SUPPRESSED",UNSUPPRESSED:"UNSUPPRESSED"},Qht={ACTIVE:"ACTIVE",DATA_SOURCE_DELETE_IN_PROGRESS:"DATA_SOURCE_DELETE_IN_PROGRESS",FAILED:"FAILED",UNHEALTHY:"UNHEALTHY"},Yht={VPCE:"VPCE"},Jht={HOURS:"HOURS",MINUTES:"MINUTES",SECONDS:"SECONDS"},Xht={INFINITE:"INFINITE",LIMITED:"LIMITED"};p.AccessDeniedException=zx;p.AccessDeniedException$=dhe;p.AccountPolicy$=T3;p.ActionStatus=dht;p.AddKeyEntry$=whe;p.AddKeys$=Phe;p.AggregateLogGroupSummary$=Ohe;p.Anomaly$=$he;p.AnomalyDetector$=khe;p.AnomalyDetectorStatus=fht;p.AssociateKmsKey$=fRe;p.AssociateKmsKeyCommand=pT;p.AssociateKmsKeyRequest$=Mhe;p.AssociateSourceToS3TableIntegration$=mRe;p.AssociateSourceToS3TableIntegrationCommand=fT;p.AssociateSourceToS3TableIntegrationRequest$=Lhe;p.AssociateSourceToS3TableIntegrationResponse$=Nhe;p.CSV$=sSe;p.CancelExportTask$=gRe;p.CancelExportTaskCommand=mT;p.CancelExportTaskRequest$=Fhe;p.CancelImportTask$=hRe;p.CancelImportTaskCommand=gT;p.CancelImportTaskRequest$=Bhe;p.CancelImportTaskResponse$=Uhe;p.CloudWatchLogs=oD;p.CloudWatchLogsClient=_t;p.CloudWatchLogsServiceException=nt;p.CloudWatchLogsServiceException$=lhe;p.ConfigurationTemplate$=Ghe;p.ConfigurationTemplateDeliveryConfigValues$=qhe;p.ConflictException=eT;p.ConflictException$=phe;p.CopyValue$=Hhe;p.CopyValueEntry$=jhe;p.CreateDelivery$=SRe;p.CreateDeliveryCommand=hT;p.CreateDeliveryRequest$=zhe;p.CreateDeliveryResponse$=Vhe;p.CreateExportTask$=yRe;p.CreateExportTaskCommand=ST;p.CreateExportTaskRequest$=Whe;p.CreateExportTaskResponse$=Khe;p.CreateImportTask$=ERe;p.CreateImportTaskCommand=yT;p.CreateImportTaskRequest$=Qhe;p.CreateImportTaskResponse$=Yhe;p.CreateLogAnomalyDetector$=_Re;p.CreateLogAnomalyDetectorCommand=ET;p.CreateLogAnomalyDetectorRequest$=Jhe;p.CreateLogAnomalyDetectorResponse$=Xhe;p.CreateLogGroup$=RRe;p.CreateLogGroupCommand=_T;p.CreateLogGroupRequest$=Zhe;p.CreateLogStream$=CRe;p.CreateLogStreamCommand=RT;p.CreateLogStreamRequest$=eSe;p.CreateLookupTable$=bRe;p.CreateLookupTableCommand=CT;p.CreateLookupTableRequest$=tSe;p.CreateLookupTableResponse$=rSe;p.CreateScheduledQuery$=ARe;p.CreateScheduledQueryCommand=bT;p.CreateScheduledQueryRequest$=nSe;p.CreateScheduledQueryResponse$=oSe;p.DataAlreadyAcceptedException=oT;p.DataAlreadyAcceptedException$=fhe;p.DataProtectionStatus=Cht;p.DataSource$=v3;p.DataSourceFilter$=iSe;p.DateTimeConverter$=aSe;p.DeleteAccountPolicy$=xRe;p.DeleteAccountPolicyCommand=AT;p.DeleteAccountPolicyRequest$=cSe;p.DeleteDataProtectionPolicy$=TRe;p.DeleteDataProtectionPolicyCommand=xT;p.DeleteDataProtectionPolicyRequest$=uSe;p.DeleteDelivery$=vRe;p.DeleteDeliveryCommand=TT;p.DeleteDeliveryDestination$=DRe;p.DeleteDeliveryDestinationCommand=vT;p.DeleteDeliveryDestinationPolicy$=IRe;p.DeleteDeliveryDestinationPolicyCommand=DT;p.DeleteDeliveryDestinationPolicyRequest$=lSe;p.DeleteDeliveryDestinationRequest$=dSe;p.DeleteDeliveryRequest$=pSe;p.DeleteDeliverySource$=wRe;p.DeleteDeliverySourceCommand=IT;p.DeleteDeliverySourceRequest$=fSe;p.DeleteDestination$=PRe;p.DeleteDestinationCommand=wT;p.DeleteDestinationRequest$=mSe;p.DeleteIndexPolicy$=ORe;p.DeleteIndexPolicyCommand=PT;p.DeleteIndexPolicyRequest$=gSe;p.DeleteIndexPolicyResponse$=hSe;p.DeleteIntegration$=$Re;p.DeleteIntegrationCommand=OT;p.DeleteIntegrationRequest$=SSe;p.DeleteIntegrationResponse$=ySe;p.DeleteKeys$=ESe;p.DeleteLogAnomalyDetector$=kRe;p.DeleteLogAnomalyDetectorCommand=$T;p.DeleteLogAnomalyDetectorRequest$=_Se;p.DeleteLogGroup$=MRe;p.DeleteLogGroupCommand=kT;p.DeleteLogGroupRequest$=RSe;p.DeleteLogStream$=LRe;p.DeleteLogStreamCommand=MT;p.DeleteLogStreamRequest$=CSe;p.DeleteLookupTable$=NRe;p.DeleteLookupTableCommand=LT;p.DeleteLookupTableRequest$=bSe;p.DeleteMetricFilter$=FRe;p.DeleteMetricFilterCommand=NT;p.DeleteMetricFilterRequest$=ASe;p.DeleteQueryDefinition$=BRe;p.DeleteQueryDefinitionCommand=FT;p.DeleteQueryDefinitionRequest$=xSe;p.DeleteQueryDefinitionResponse$=TSe;p.DeleteResourcePolicy$=URe;p.DeleteResourcePolicyCommand=BT;p.DeleteResourcePolicyRequest$=vSe;p.DeleteRetentionPolicy$=GRe;p.DeleteRetentionPolicyCommand=UT;p.DeleteRetentionPolicyRequest$=DSe;p.DeleteScheduledQuery$=qRe;p.DeleteScheduledQueryCommand=GT;p.DeleteScheduledQueryRequest$=ISe;p.DeleteScheduledQueryResponse$=wSe;p.DeleteSubscriptionFilter$=HRe;p.DeleteSubscriptionFilterCommand=qT;p.DeleteSubscriptionFilterRequest$=PSe;p.DeleteSyslogConfiguration$=jRe;p.DeleteSyslogConfigurationCommand=HT;p.DeleteSyslogConfigurationRequest$=OSe;p.DeleteTransformer$=zRe;p.DeleteTransformerCommand=jT;p.DeleteTransformerRequest$=$Se;p.Delivery$=LD;p.DeliveryDestination$=ND;p.DeliveryDestinationConfiguration$=D3;p.DeliveryDestinationType=Sht;p.DeliverySource$=FD;p.DeliverySourceConfigurationSchema$=kSe;p.DeliverySourceConfigurationSchemaValueType=yht;p.DeliverySourceStatus=bht;p.DeliverySourceStatusReason=Aht;p.DescribeAccountPolicies$=VRe;p.DescribeAccountPoliciesCommand=zT;p.DescribeAccountPoliciesRequest$=MSe;p.DescribeAccountPoliciesResponse$=LSe;p.DescribeConfigurationTemplates$=WRe;p.DescribeConfigurationTemplatesCommand=Yg;p.DescribeConfigurationTemplatesRequest$=NSe;p.DescribeConfigurationTemplatesResponse$=FSe;p.DescribeDeliveries$=KRe;p.DescribeDeliveriesCommand=Jg;p.DescribeDeliveriesRequest$=BSe;p.DescribeDeliveriesResponse$=USe;p.DescribeDeliveryDestinations$=QRe;p.DescribeDeliveryDestinationsCommand=Xg;p.DescribeDeliveryDestinationsRequest$=GSe;p.DescribeDeliveryDestinationsResponse$=qSe;p.DescribeDeliverySources$=YRe;p.DescribeDeliverySourcesCommand=Zg;p.DescribeDeliverySourcesRequest$=HSe;p.DescribeDeliverySourcesResponse$=jSe;p.DescribeDestinations$=JRe;p.DescribeDestinationsCommand=eh;p.DescribeDestinationsRequest$=zSe;p.DescribeDestinationsResponse$=VSe;p.DescribeExportTasks$=XRe;p.DescribeExportTasksCommand=VT;p.DescribeExportTasksRequest$=WSe;p.DescribeExportTasksResponse$=KSe;p.DescribeFieldIndexes$=ZRe;p.DescribeFieldIndexesCommand=WT;p.DescribeFieldIndexesRequest$=QSe;p.DescribeFieldIndexesResponse$=YSe;p.DescribeImportTaskBatches$=eCe;p.DescribeImportTaskBatchesCommand=KT;p.DescribeImportTaskBatchesRequest$=JSe;p.DescribeImportTaskBatchesResponse$=XSe;p.DescribeImportTasks$=tCe;p.DescribeImportTasksCommand=QT;p.DescribeImportTasksRequest$=ZSe;p.DescribeImportTasksResponse$=e0e;p.DescribeIndexPolicies$=rCe;p.DescribeIndexPoliciesCommand=YT;p.DescribeIndexPoliciesRequest$=t0e;p.DescribeIndexPoliciesResponse$=r0e;p.DescribeLogGroups$=nCe;p.DescribeLogGroupsCommand=th;p.DescribeLogGroupsRequest$=n0e;p.DescribeLogGroupsResponse$=o0e;p.DescribeLogStreams$=oCe;p.DescribeLogStreamsCommand=rh;p.DescribeLogStreamsRequest$=s0e;p.DescribeLogStreamsResponse$=i0e;p.DescribeLookupTables$=sCe;p.DescribeLookupTablesCommand=JT;p.DescribeLookupTablesRequest$=a0e;p.DescribeLookupTablesResponse$=c0e;p.DescribeMetricFilters$=iCe;p.DescribeMetricFiltersCommand=nh;p.DescribeMetricFiltersRequest$=u0e;p.DescribeMetricFiltersResponse$=l0e;p.DescribeQueries$=aCe;p.DescribeQueriesCommand=XT;p.DescribeQueriesRequest$=d0e;p.DescribeQueriesResponse$=p0e;p.DescribeQueryDefinitions$=cCe;p.DescribeQueryDefinitionsCommand=ZT;p.DescribeQueryDefinitionsRequest$=f0e;p.DescribeQueryDefinitionsResponse$=m0e;p.DescribeResourcePolicies$=uCe;p.DescribeResourcePoliciesCommand=ev;p.DescribeResourcePoliciesRequest$=g0e;p.DescribeResourcePoliciesResponse$=h0e;p.DescribeSubscriptionFilters$=lCe;p.DescribeSubscriptionFiltersCommand=oh;p.DescribeSubscriptionFiltersRequest$=S0e;p.DescribeSubscriptionFiltersResponse$=y0e;p.Destination$=I3;p.DestinationConfiguration$=fp;p.DisassociateKmsKey$=dCe;p.DisassociateKmsKeyCommand=tv;p.DisassociateKmsKeyRequest$=E0e;p.DisassociateSourceFromS3TableIntegration$=pCe;p.DisassociateSourceFromS3TableIntegrationCommand=rv;p.DisassociateSourceFromS3TableIntegrationRequest$=_0e;p.DisassociateSourceFromS3TableIntegrationResponse$=R0e;p.Distribution=kht;p.Entity$=C0e;p.EntityRejectionErrorType=Mht;p.EvaluationFrequency=mht;p.EventSource=Lht;p.ExecutionStatus=Nht;p.ExportTask$=b0e;p.ExportTaskExecutionInfo$=A0e;p.ExportTaskStatus$=x0e;p.ExportTaskStatusCode=xht;p.FieldIndex$=T0e;p.FieldsData$=v0e;p.FilterLogEvents$=fCe;p.FilterLogEventsCommand=sh;p.FilterLogEventsRequest$=I0e;p.FilterLogEventsResponse$=w0e;p.FilteredLogEvent$=D0e;p.FlattenedElement=Fht;p.GetDataProtectionPolicy$=mCe;p.GetDataProtectionPolicyCommand=nv;p.GetDataProtectionPolicyRequest$=P0e;p.GetDataProtectionPolicyResponse$=O0e;p.GetDelivery$=gCe;p.GetDeliveryCommand=ov;p.GetDeliveryDestination$=hCe;p.GetDeliveryDestinationCommand=sv;p.GetDeliveryDestinationPolicy$=SCe;p.GetDeliveryDestinationPolicyCommand=iv;p.GetDeliveryDestinationPolicyRequest$=$0e;p.GetDeliveryDestinationPolicyResponse$=k0e;p.GetDeliveryDestinationRequest$=M0e;p.GetDeliveryDestinationResponse$=L0e;p.GetDeliveryRequest$=N0e;p.GetDeliveryResponse$=F0e;p.GetDeliverySource$=yCe;p.GetDeliverySourceCommand=av;p.GetDeliverySourceRequest$=B0e;p.GetDeliverySourceResponse$=U0e;p.GetIntegration$=ECe;p.GetIntegrationCommand=cv;p.GetIntegrationRequest$=G0e;p.GetIntegrationResponse$=q0e;p.GetLogAnomalyDetector$=_Ce;p.GetLogAnomalyDetectorCommand=uv;p.GetLogAnomalyDetectorRequest$=H0e;p.GetLogAnomalyDetectorResponse$=j0e;p.GetLogEvents$=RCe;p.GetLogEventsCommand=ih;p.GetLogEventsRequest$=z0e;p.GetLogEventsResponse$=V0e;p.GetLogFields$=CCe;p.GetLogFieldsCommand=lv;p.GetLogFieldsRequest$=W0e;p.GetLogFieldsResponse$=K0e;p.GetLogGroupFields$=bCe;p.GetLogGroupFieldsCommand=dv;p.GetLogGroupFieldsRequest$=Q0e;p.GetLogGroupFieldsResponse$=Y0e;p.GetLogObject$=ACe;p.GetLogObjectCommand=pv;p.GetLogObjectRequest$=J0e;p.GetLogObjectResponse$=X0e;p.GetLogObjectResponseStream$=uRe;p.GetLogRecord$=xCe;p.GetLogRecordCommand=fv;p.GetLogRecordRequest$=Z0e;p.GetLogRecordResponse$=eye;p.GetLookupTable$=TCe;p.GetLookupTableCommand=mv;p.GetLookupTableRequest$=tye;p.GetLookupTableResponse$=rye;p.GetQueryResults$=vCe;p.GetQueryResultsCommand=gv;p.GetQueryResultsRequest$=nye;p.GetQueryResultsResponse$=oye;p.GetScheduledQuery$=DCe;p.GetScheduledQueryCommand=hv;p.GetScheduledQueryHistory$=ICe;p.GetScheduledQueryHistoryCommand=ah;p.GetScheduledQueryHistoryRequest$=sye;p.GetScheduledQueryHistoryResponse$=iye;p.GetScheduledQueryRequest$=aye;p.GetScheduledQueryResponse$=cye;p.GetStorageTierPolicy$=wCe;p.GetStorageTierPolicyCommand=Sv;p.GetStorageTierPolicyRequest$=uye;p.GetStorageTierPolicyResponse$=lye;p.GetTransformer$=PCe;p.GetTransformerCommand=yv;p.GetTransformerRequest$=dye;p.GetTransformerResponse$=pye;p.Grok$=fye;p.GroupingIdentifier$=mye;p.Import$=gye;p.ImportBatch$=hye;p.ImportFilter$=w3;p.ImportStatistics$=P3;p.ImportStatus=ght;p.IndexCategory=Tht;p.IndexPolicy$=O3;p.IndexSource=Dht;p.IndexType=vht;p.InheritedProperty=Iht;p.InputLogEvent$=Sye;p.IntegrationDetails$=lRe;p.IntegrationStatus=Uht;p.IntegrationSummary$=yye;p.IntegrationType=Ght;p.InternalServerException=Yx;p.InternalServerException$=mhe;p.InternalStreamingException=sT;p.InternalStreamingException$=b3;p.InvalidOperationException=Zx;p.InvalidOperationException$=ghe;p.InvalidParameterException=Vx;p.InvalidParameterException$=hhe;p.InvalidSequenceTokenException=iT;p.InvalidSequenceTokenException$=She;p.LimitExceededException=rT;p.LimitExceededException$=yhe;p.ListAggregateLogGroupSummaries$=OCe;p.ListAggregateLogGroupSummariesCommand=ch;p.ListAggregateLogGroupSummariesGroupBy=Wht;p.ListAggregateLogGroupSummariesRequest$=Eye;p.ListAggregateLogGroupSummariesResponse$=_ye;p.ListAnomalies$=$Ce;p.ListAnomaliesCommand=uh;p.ListAnomaliesRequest$=Rye;p.ListAnomaliesResponse$=Cye;p.ListIntegrations$=kCe;p.ListIntegrationsCommand=Ev;p.ListIntegrationsRequest$=bye;p.ListIntegrationsResponse$=Aye;p.ListLogAnomalyDetectors$=MCe;p.ListLogAnomalyDetectorsCommand=lh;p.ListLogAnomalyDetectorsRequest$=xye;p.ListLogAnomalyDetectorsResponse$=Tye;p.ListLogGroups$=LCe;p.ListLogGroupsCommand=_v;p.ListLogGroupsForQuery$=NCe;p.ListLogGroupsForQueryCommand=dh;p.ListLogGroupsForQueryRequest$=vye;p.ListLogGroupsForQueryResponse$=Dye;p.ListLogGroupsRequest$=Iye;p.ListLogGroupsResponse$=wye;p.ListScheduledQueries$=FCe;p.ListScheduledQueriesCommand=ph;p.ListScheduledQueriesRequest$=Pye;p.ListScheduledQueriesResponse$=Oye;p.ListSourcesForS3TableIntegration$=BCe;p.ListSourcesForS3TableIntegrationCommand=fh;p.ListSourcesForS3TableIntegrationRequest$=$ye;p.ListSourcesForS3TableIntegrationResponse$=kye;p.ListSyslogConfigurations$=UCe;p.ListSyslogConfigurationsCommand=Rv;p.ListSyslogConfigurationsRequest$=Mye;p.ListSyslogConfigurationsResponse$=Lye;p.ListTagsForResource$=GCe;p.ListTagsForResourceCommand=Cv;p.ListTagsForResourceRequest$=Nye;p.ListTagsForResourceResponse$=Fye;p.ListTagsLogGroup$=qCe;p.ListTagsLogGroupCommand=bv;p.ListTagsLogGroupRequest$=Bye;p.ListTagsLogGroupResponse$=Uye;p.ListToMap$=Gye;p.LiveTailSessionLogEvent$=qye;p.LiveTailSessionMetadata$=Hye;p.LiveTailSessionStart$=jye;p.LiveTailSessionUpdate$=zye;p.LogEvent$=Vye;p.LogFieldType$=$3;p.LogFieldsListItem$=Wye;p.LogGroup$=Kye;p.LogGroupClass=Eht;p.LogGroupField$=Qye;p.LogGroupSummary$=Yye;p.LogStream$=Jye;p.LookupTable$=Xye;p.LookupTableConfiguration$=Zye;p.LowerCaseString$=eEe;p.MalformedQueryException=lT;p.MalformedQueryException$=Ehe;p.MetricFilter$=tEe;p.MetricFilterMatchRecord$=rEe;p.MetricTransformation$=nEe;p.MoveKeyEntry$=oEe;p.MoveKeys$=sEe;p.OCSFVersion=zht;p.OpenSearchApplication$=iEe;p.OpenSearchCollection$=aEe;p.OpenSearchDataAccessPolicy$=cEe;p.OpenSearchDataSource$=uEe;p.OpenSearchEncryptionPolicy$=lEe;p.OpenSearchIntegrationDetails$=dEe;p.OpenSearchLifecyclePolicy$=pEe;p.OpenSearchNetworkPolicy$=fEe;p.OpenSearchResourceConfig$=mEe;p.OpenSearchResourceStatus$=Qi;p.OpenSearchResourceStatusType=Bht;p.OpenSearchWorkspace$=gEe;p.OperationAbortedException=Wx;p.OperationAbortedException$=_he;p.OrderBy=wht;p.OutputFormat=hht;p.OutputLogEvent$=hEe;p.ParseCloudfront$=SEe;p.ParseJSON$=yEe;p.ParseKeyValue$=EEe;p.ParsePostgres$=_Ee;p.ParseRoute53$=REe;p.ParseToOCSF$=CEe;p.ParseVPC$=bEe;p.ParseWAF$=AEe;p.PatternToken$=xEe;p.Policy$=k3;p.PolicyScope=$ht;p.PolicyType=uht;p.Processor$=TEe;p.PutAccountPolicy$=HCe;p.PutAccountPolicyCommand=Av;p.PutAccountPolicyRequest$=vEe;p.PutAccountPolicyResponse$=DEe;p.PutBearerTokenAuthentication$=jCe;p.PutBearerTokenAuthenticationCommand=xv;p.PutBearerTokenAuthenticationRequest$=IEe;p.PutDataProtectionPolicy$=zCe;p.PutDataProtectionPolicyCommand=Tv;p.PutDataProtectionPolicyRequest$=wEe;p.PutDataProtectionPolicyResponse$=PEe;p.PutDeliveryDestination$=VCe;p.PutDeliveryDestinationCommand=vv;p.PutDeliveryDestinationPolicy$=WCe;p.PutDeliveryDestinationPolicyCommand=Dv;p.PutDeliveryDestinationPolicyRequest$=OEe;p.PutDeliveryDestinationPolicyResponse$=$Ee;p.PutDeliveryDestinationRequest$=kEe;p.PutDeliveryDestinationResponse$=MEe;p.PutDeliverySource$=KCe;p.PutDeliverySourceCommand=Iv;p.PutDeliverySourceRequest$=LEe;p.PutDeliverySourceResponse$=NEe;p.PutDestination$=QCe;p.PutDestinationCommand=wv;p.PutDestinationPolicy$=YCe;p.PutDestinationPolicyCommand=Pv;p.PutDestinationPolicyRequest$=FEe;p.PutDestinationRequest$=BEe;p.PutDestinationResponse$=UEe;p.PutIndexPolicy$=JCe;p.PutIndexPolicyCommand=Ov;p.PutIndexPolicyRequest$=GEe;p.PutIndexPolicyResponse$=qEe;p.PutIntegration$=XCe;p.PutIntegrationCommand=$v;p.PutIntegrationRequest$=HEe;p.PutIntegrationResponse$=jEe;p.PutLogEvents$=ZCe;p.PutLogEventsCommand=kv;p.PutLogEventsRequest$=zEe;p.PutLogEventsResponse$=VEe;p.PutLogGroupDeletionProtection$=ebe;p.PutLogGroupDeletionProtectionCommand=Mv;p.PutLogGroupDeletionProtectionRequest$=WEe;p.PutMetricFilter$=tbe;p.PutMetricFilterCommand=Lv;p.PutMetricFilterRequest$=KEe;p.PutQueryDefinition$=rbe;p.PutQueryDefinitionCommand=Nv;p.PutQueryDefinitionRequest$=QEe;p.PutQueryDefinitionResponse$=YEe;p.PutResourcePolicy$=nbe;p.PutResourcePolicyCommand=Fv;p.PutResourcePolicyRequest$=JEe;p.PutResourcePolicyResponse$=XEe;p.PutRetentionPolicy$=obe;p.PutRetentionPolicyCommand=Bv;p.PutRetentionPolicyRequest$=ZEe;p.PutStorageTierPolicy$=sbe;p.PutStorageTierPolicyCommand=Uv;p.PutStorageTierPolicyRequest$=e_e;p.PutStorageTierPolicyResponse$=t_e;p.PutSubscriptionFilter$=ibe;p.PutSubscriptionFilterCommand=Gv;p.PutSubscriptionFilterRequest$=r_e;p.PutSyslogConfiguration$=abe;p.PutSyslogConfigurationCommand=qv;p.PutSyslogConfigurationRequest$=n_e;p.PutTransformer$=cbe;p.PutTransformerCommand=Hv;p.PutTransformerRequest$=o_e;p.QueryCompileError$=s_e;p.QueryCompileErrorLocation$=i_e;p.QueryDefinition$=a_e;p.QueryInfo$=c_e;p.QueryLanguage=_ht;p.QueryParameter$=u_e;p.QueryStatistics$=l_e;p.QueryStatus=Oht;p.RecordField$=d_e;p.RejectedEntityInfo$=p_e;p.RejectedLogEventsInfo$=f_e;p.RenameKeyEntry$=m_e;p.RenameKeys$=g_e;p.ResourceAlreadyExistsException=nT;p.ResourceAlreadyExistsException$=Rhe;p.ResourceConfig$=dRe;p.ResourceNotFoundException=Kx;p.ResourceNotFoundException$=Che;p.ResourcePolicy$=M3;p.ResultField$=h_e;p.S3Configuration$=S_e;p.S3DeliveryConfiguration$=Ch;p.S3TableIntegrationSource$=y_e;p.S3TableIntegrationSourceStatus=Qht;p.S3TablesIntegration$=E_e;p.ScheduleType=qht;p.ScheduledQueryDestination$=__e;p.ScheduledQueryDestinationType=Hht;p.ScheduledQueryState=Rht;p.ScheduledQuerySummary$=R_e;p.Scope=lht;p.SearchedLogStream$=C_e;p.ServiceQuotaExceededException=tT;p.ServiceQuotaExceededException$=bhe;p.ServiceUnavailableException=Qx;p.ServiceUnavailableException$=Ahe;p.SessionStreamingException=cT;p.SessionStreamingException$=A3;p.SessionTimeoutException=uT;p.SessionTimeoutException$=x3;p.SplitString$=b_e;p.SplitStringEntry$=A_e;p.StandardUnit=Pht;p.StartLiveTail$=ube;p.StartLiveTailCommand=jv;p.StartLiveTailRequest$=x_e;p.StartLiveTailResponse$=T_e;p.StartLiveTailResponseStream$=pRe;p.StartQuery$=lbe;p.StartQueryCommand=zv;p.StartQueryRequest$=v_e;p.StartQueryResponse$=D_e;p.State=pht;p.StopQuery$=dbe;p.StopQueryCommand=Vv;p.StopQueryRequest$=I_e;p.StopQueryResponse$=w_e;p.StorageTier=jht;p.SubscriptionFilter$=P_e;p.SubstituteString$=O_e;p.SubstituteStringEntry$=$_e;p.SuppressionPeriod$=k_e;p.SuppressionState=Kht;p.SuppressionType=Xht;p.SuppressionUnit=Jht;p.SyslogConfiguration$=M_e;p.SyslogSourceType=Yht;p.TagFilter$=L_e;p.TagLogGroup$=pbe;p.TagLogGroupCommand=Wv;p.TagLogGroupRequest$=N_e;p.TagResource$=fbe;p.TagResourceCommand=Kv;p.TagResourceRequest$=F_e;p.TestMetricFilter$=mbe;p.TestMetricFilterCommand=Qv;p.TestMetricFilterRequest$=B_e;p.TestMetricFilterResponse$=U_e;p.TestTransformer$=gbe;p.TestTransformerCommand=Yv;p.TestTransformerRequest$=G_e;p.TestTransformerResponse$=q_e;p.ThrottlingException=Jx;p.ThrottlingException$=xhe;p.TooManyTagsException=dT;p.TooManyTagsException$=The;p.TransformedLogRecord$=H_e;p.TriggerHistoryRecord$=j_e;p.TrimString$=z_e;p.Type=Vht;p.TypeConverter$=V_e;p.TypeConverterEntry$=W_e;p.UnrecognizedClientException=aT;p.UnrecognizedClientException$=vhe;p.UntagLogGroup$=hbe;p.UntagLogGroupCommand=Jv;p.UntagLogGroupRequest$=K_e;p.UntagResource$=Sbe;p.UntagResourceCommand=Xv;p.UntagResourceRequest$=Q_e;p.UpdateAnomaly$=ybe;p.UpdateAnomalyCommand=Zv;p.UpdateAnomalyRequest$=Y_e;p.UpdateDeliveryConfiguration$=Ebe;p.UpdateDeliveryConfigurationCommand=eD;p.UpdateDeliveryConfigurationRequest$=J_e;p.UpdateDeliveryConfigurationResponse$=X_e;p.UpdateLogAnomalyDetector$=_be;p.UpdateLogAnomalyDetectorCommand=tD;p.UpdateLogAnomalyDetectorRequest$=Z_e;p.UpdateLookupTable$=Rbe;p.UpdateLookupTableCommand=rD;p.UpdateLookupTableRequest$=eRe;p.UpdateLookupTableResponse$=tRe;p.UpdateScheduledQuery$=Cbe;p.UpdateScheduledQueryCommand=nD;p.UpdateScheduledQueryRequest$=rRe;p.UpdateScheduledQueryResponse$=nRe;p.UpperCaseString$=oRe;p.ValidationException=Xx;p.ValidationException$=Dhe;p.errorTypeRegistries=Ihe;p.paginateDescribeConfigurationTemplates=bbe;p.paginateDescribeDeliveries=Abe;p.paginateDescribeDeliveryDestinations=xbe;p.paginateDescribeDeliverySources=Tbe;p.paginateDescribeDestinations=vbe;p.paginateDescribeLogGroups=Dbe;p.paginateDescribeLogStreams=Ibe;p.paginateDescribeMetricFilters=wbe;p.paginateDescribeSubscriptionFilters=Pbe;p.paginateFilterLogEvents=Obe;p.paginateGetLogEvents=$be;p.paginateGetScheduledQueryHistory=kbe;p.paginateListAggregateLogGroupSummaries=Mbe;p.paginateListAnomalies=Lbe;p.paginateListLogAnomalyDetectors=Nbe;p.paginateListLogGroupsForQuery=Fbe;p.paginateListScheduledQueries=Bbe;p.paginateListSourcesForS3TableIntegration=Ube});var iSt={};Ct(iSt,{handler:()=>sSt});module.exports=F(iSt);var ud=De(vJ()),DJ={delaySeconds:15,attempts:8},IJ=new Map;function wJ(t){let e=IJ.get(t);return e||(e=new ud.CloudWatchClient({region:t}),IJ.set(t,e)),e}async function PJ(t){let e=t.ResourceProperties;if(t.RequestType==="Delete"){let[n,...o]=t.PhysicalResourceId.split(":");return o.length>0&&await wJ(n).send(new ud.DeleteAlarmsCommand({AlarmNames:[o.join(":")]})),{PhysicalResourceId:t.PhysicalResourceId}}let r=new ud.PutMetricAlarmCommand({AlarmName:e.AlarmName,AlarmDescription:e.AlarmDescription,Metrics:JSON.parse(e.Metrics),Threshold:Number(e.Threshold),EvaluationPeriods:Number(e.EvaluationPeriods),ComparisonOperator:e.ComparisonOperator,TreatMissingData:e.TreatMissingData,ActionsEnabled:!1});for(let n=1;;n++)try{await wJ(e.Region).send(r);break}catch(o){if(!/AccessDenied/.test(o.name)||n>=DJ.attempts)throw o;await new Promise(s=>setTimeout(s,DJ.delaySeconds*1e3))}return{PhysicalResourceId:`${e.Region}:${e.AlarmName}`}}var Zd=De($N()),Cpe=new Zd.S3Client({}),bpe="lambda-web-source";async function Ape(t){let e=t.ResourceProperties,r=`s3://${e.DestinationBucket}/${e.DestinationKey}`;if(t.RequestType==="Delete")return{PhysicalResourceId:t.PhysicalResourceId};let n=`${e.SourceBucket}/${e.SourceKey}${e.SourceVersion?`?versionId=${e.SourceVersion}`:""}`,o=await Rpe("HeadObject on the code bucket",()=>e7e(e.DestinationBucket,e.DestinationKey));if(o?.source===n&&o.versionId)return{PhysicalResourceId:r,Data:{VersionId:o.versionId}};let s=await Rpe(`CopyObject from ${n}`,()=>Cpe.send(new Zd.CopyObjectCommand({Bucket:e.DestinationBucket,Key:e.DestinationKey,CopySource:encodeURI(n),MetadataDirective:"REPLACE",Metadata:{[bpe]:n}})));if(!s.VersionId)throw new Error(`Code bucket ${e.DestinationBucket} must have versioning enabled: Lambda Web Functions reject unversioned code objects`);return{PhysicalResourceId:r,Data:{VersionId:s.VersionId}}}async function e7e(t,e){try{let r=await Cpe.send(new Zd.HeadObjectCommand({Bucket:t,Key:e}));return{versionId:r.VersionId,source:r.Metadata?.[bpe]}}catch(r){if(t7e(r))return;throw r}}async function Rpe(t,e){try{return await e()}catch(r){let n=r;throw n.message=`${t} failed: ${n.name} (HTTP ${n.$metadata?.httpStatusCode??"?"}): ${n.message}`,n}}function t7e(t){let e=t;return e.name==="NotFound"||e.name==="NoSuchKey"||e.$metadata?.httpStatusCode===404}var Za=De($N());var xpe="Custom::LambdaWebCode",Tpe="Custom::LambdaWebLogGroup",vpe="Custom::LambdaWebEndpointLookup";function Dpe(t){return`Domain.${t}`}var Ipe="Custom::LambdaWebRevisionCleanup";var wpe="Custom::LambdaWebAlarm",Ppe="Custom::LambdaWebCodeBucketCleanup",kN={key:"cdk-lambda-web:empty-on-delete",value:"true"},Ope="Custom::LambdaWebResourcePolicyStatements";var MN=new Za.S3Client({});async function $pe(t){let e=t.ResourceProperties;if(t.RequestType!=="Delete")return{PhysicalResourceId:e.BucketName};let r=t.PhysicalResourceId;try{if(!await r7e(r))return console.log(JSON.stringify({msg:"code bucket kept: not tagged for emptying (rollback of an update that added this resource)",bucket:r})),{PhysicalResourceId:t.PhysicalResourceId};let n={};for(;;){let o=await MN.send(new Za.ListObjectVersionsCommand({Bucket:r,...n})),s=[...o.Versions??[],...o.DeleteMarkers??[]].map(i=>({Key:i.Key,VersionId:i.VersionId}));if(s.length>0){let i=await MN.send(new Za.DeleteObjectsCommand({Bucket:r,Delete:{Objects:s,Quiet:!0}}));if(i.Errors?.length)throw new Error(`could not delete ${i.Errors.length} object version(s) from ${r}: ${i.Errors[0].Code} ${i.Errors[0].Message}`)}if(!o.IsTruncated)break;n={KeyMarker:o.NextKeyMarker,VersionIdMarker:o.NextVersionIdMarker}}}catch(n){if(n.name!=="NoSuchBucket")throw n}return{PhysicalResourceId:t.PhysicalResourceId}}async function r7e(t){try{let{TagSet:e}=await MN.send(new Za.GetBucketTaggingCommand({Bucket:t}));return(e??[]).some(r=>r.Key===kN.key&&r.Value===kN.value)}catch(e){if(e.name==="NoSuchTagSet")return!1;throw e}}var qx=De(Gx());async function Nme(t){let e=t.ResourceProperties;if(t.RequestType==="Delete")return{PhysicalResourceId:t.PhysicalResourceId};let r=e.FunctionArn.split(":")[3],o=await new qx.LambdaWebClient({region:r}).send(new qx.GetWebFunctionEndpointCommand({functionName:e.FunctionArn,endpointName:e.EndpointName})),s={};for(let[i,a]of Object.entries(o.regionalEndpoints??{}))a.domainName&&(s[Dpe(i)]=a.domainName);return{PhysicalResourceId:e.EndpointArn,Data:s}}var So=De(Gbe()),qbe=new Map;function N3(t){let e=qbe.get(t);return e||(e=new So.CloudWatchLogsClient({region:t}),qbe.set(t,e)),e}var Hbe={seconds:t=>new Promise(e=>setTimeout(e,t*1e3))};async function zbe(t){let e=t.ResourceProperties,r=`${e.Region}:${e.LogGroupName}`;return t.RequestType==="Delete"?(e.RemovalPolicy==="destroy"&&await eSt(e),{PhysicalResourceId:t.PhysicalResourceId}):(await Zht(e),{PhysicalResourceId:r})}async function Zht(t){let e=N3(t.Region);try{await e.send(new So.CreateLogGroupCommand({logGroupName:t.LogGroupName}))}catch(r){if(r.name!=="ResourceAlreadyExistsException")throw r}t.RetentionInDays==="Infinite"?await e.send(new So.DeleteRetentionPolicyCommand({logGroupName:t.LogGroupName})):await e.send(new So.PutRetentionPolicyCommand({logGroupName:t.LogGroupName,retentionInDays:Number(t.RetentionInDays)}))}async function eSt(t){await Hbe.seconds(Number(t.FlushWaitSeconds)),await jbe(t),await Hbe.seconds(Number(t.RecheckWaitSeconds)),await tSt(t)&&await jbe(t)}async function jbe(t){try{await N3(t.Region).send(new So.DeleteLogGroupCommand({logGroupName:t.LogGroupName}))}catch(e){if(e.name!=="ResourceNotFoundException")throw e}}async function tSt(t){return((await N3(t.Region).send(new So.DescribeLogGroupsCommand({logGroupNamePrefix:t.LogGroupName}))).logGroups??[]).some(r=>r.logGroupName===t.LogGroupName)}var gc=De(Gx()),BD={conflictDelaySeconds:2,conflictAttempts:10,accessDeniedDelaySeconds:15,accessDeniedAttempts:8},Vbe=20480;async function Ybe(t){let e=t.ResourceProperties;if(t.RequestType==="Delete")return await Wbe(e.FunctionArn,Kbe(e),[],!1),{PhysicalResourceId:t.PhysicalResourceId};let r=t.RequestType==="Update"?t.OldResourceProperties:void 0,n=r!==void 0&&r.FunctionArn===e.FunctionArn;return await Wbe(e.FunctionArn,n?Kbe(r):new Set,[...e.Policy.Statement],!n),{PhysicalResourceId:`${e.FunctionArn}/statements/${t.LogicalResourceId}`}}async function Wbe(t,e,r,n){let o=new gc.LambdaWebClient({region:t.split(":")[3]}),s=new Map(r.map(i=>[i.Sid,i]));for(let i=1;;i++){let a=await F3(()=>Jbe(o,t)),c=[];for(let f of a?.statements??[]){let m=f.Sid;if(!(m!==void 0&&e.has(m))){if(m!==void 0&&s.has(m)){if(Qbe(f,s.get(m)))continue;throw new Error(`The resource policy of ${t} already has a statement with Sid '${m}' that another stack or tool added. Use another id (addPermission) or remove that statement.`)}m===void 0&&n&&r.some(y=>Qbe(f,nSt(y)))||c.push(f)}}let u=[...c,...r];try{if(u.length===0)a!==void 0&&await F3(()=>o.send(new gc.DeleteResourcePolicyCommand({resourceArn:t,revisionId:a.revisionId})));else{let f=JSON.stringify({Version:"2012-10-17",Statement:u});if(f.length>Vbe)throw new Error(`The resource policy of ${t} would be ${f.length} characters, over Lambda's limit of ${Vbe}`);if(await F3(()=>o.send(new gc.PutResourcePolicyCommand({resourceArn:t,policy:f,revisionId:a?.revisionId}))),a===void 0&&!await rSt(o,t,r))throw oSt("another writer created the policy at the same time")}console.log(JSON.stringify({msg:"resource policy written",functionArn:t,removed:[...e],written:r.map(f=>f.Sid),kept:c.length}));return}catch(f){let m=f.name;if(m==="ResourceNotFoundException"&&r.length===0)return;if(m!=="ConflictException"||i>=BD.conflictAttempts)throw f;await Xbe(BD.conflictDelaySeconds*i)}}}async function Jbe(t,e){try{let r=await t.send(new gc.GetResourcePolicyCommand({resourceArn:e}));return{statements:JSON.parse(r.policy).Statement??[],revisionId:r.revisionId}}catch(r){if(r.name==="ResourceNotFoundException")return;throw r}}async function rSt(t,e,r){let n=new Set((await Jbe(t,e))?.statements.map(o=>o.Sid));return r.every(o=>n.has(o.Sid))}async function F3(t){for(let e=1;;e++)try{return await t()}catch(r){if(!/AccessDenied/.test(r.name)||e>=BD.accessDeniedAttempts)throw r;await Xbe(BD.accessDeniedDelaySeconds)}}function Kbe(t){return new Set((t.Policy?.Statement??[]).map(e=>e.Sid))}function nSt(t){let{Sid:e,...r}=t;return r}function Qbe(t,e){return JSON.stringify(UD(t))===JSON.stringify(UD(e))}function UD(t){if(Array.isArray(t)){let e=t.map(UD).sort((r,n)=>JSON.stringify(r).localeCompare(JSON.stringify(n)));return e.length===1?e[0]:e}return t!==null&&typeof t=="object"?Object.fromEntries(Object.keys(t).sort().map(e=>[e,UD(t[e])])):t===void 0?t:String(t)}function oSt(t){return Object.assign(new Error(t),{name:"ConflictException"})}var Xbe=t=>new Promise(e=>setTimeout(e,t*1e3));var mp=De(Gx());async function Zbe(t){let e=t.ResourceProperties,r=`${e.FunctionArn}/revision-cleanup`;if(t.RequestType==="Delete")return{PhysicalResourceId:t.PhysicalResourceId};let n=t.RequestType==="Update"?t.OldResourceProperties.RevisionIds??[]:[],o=new Set([...e.RevisionIds??[],...n]),s=[],i=[];try{let a=new mp.LambdaWebClient({region:e.FunctionArn.split(":")[3]}),c=[];for await(let u of(0,mp.paginateListWebFunctionRevisions)({client:a},{functionName:e.FunctionArn}))c.push(...u.revisions??[]);c.sort((u,f)=>(f.createdAt?.getTime()??0)-(u.createdAt?.getTime()??0));for(let u of c.slice(Number(e.Keep))){let f=u.revisionId;if(!o.has(f))try{await a.send(new mp.DeleteWebFunctionRevisionCommand({functionName:e.FunctionArn,revisionId:f})),s.push(f)}catch(m){let y=m.name;if(y==="ConflictException")i.push(f);else if(y!=="ResourceNotFoundException")throw m}}console.log(JSON.stringify({msg:"revision cleanup",total:c.length,keep:Number(e.Keep),deleted:s,inUse:i}))}catch(a){console.warn(JSON.stringify({msg:"revision cleanup failed; old revisions are left in place",error:`${a.name}: ${a.message}`,deleted:s}))}return{PhysicalResourceId:r,Data:{Deleted:String(s.length)}}}async function sSt(t){switch(t.ResourceType){case xpe:return Ape(t);case Tpe:return zbe(t);case vpe:return Nme(t);case Ipe:return Zbe(t);case wpe:return PJ(t);case Ppe:return $pe(t);case Ope:return Ybe(t);default:if(t.RequestType==="Delete")return console.log(JSON.stringify({msg:"delete of an unknown resource type ignored",resourceType:t.ResourceType})),{PhysicalResourceId:t.PhysicalResourceId};throw new Error(`Unsupported resource type: ${t.ResourceType}`)}}0&&(module.exports={handler});
|
|
58
|
+
`),$8=!0)),new PE("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),e$e(t)()},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:o,ssoRoleName:s,ssoSession:i}=t;if(!r&&!n&&!o&&!s&&!i)throw new PE("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:a}=ck();return a(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=P8();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=Yk();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=Xk();return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await n$e(t))()),async()=>{throw new PE("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],k8),a$e=t=>t?.expiration!==void 0,k8=t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5;OE.credentialsTreatedAsExpired=k8;OE.credentialsWillNeedRefresh=a$e;OE.defaultProvider=i$e});var vJ=st(R=>{var{awsEndpointFunctions:c$e,emitWarningIfUnsupportedVersion:u$e,createDefaultUserAgentProvider:l$e,NODE_APP_ID_CONFIG_OPTIONS:d$e,getAwsRegionExtensionConfiguration:p$e,resolveAwsRegionExtensionConfiguration:f$e,resolveUserAgentConfig:m$e,resolveHostHeaderConfig:g$e,getUserAgentPlugin:h$e,getHostHeaderPlugin:S$e,getLoggerPlugin:y$e,getRecursionDetectionPlugin:E$e}=(Ee(),F(Mn)),{getHttpAuthSchemeEndpointRuleSetPlugin:_$e,DefaultIdentityProviderConfig:R$e,getHttpSigningPlugin:C$e,createPaginator:Js}=(jt(),F(xl)),{normalizeProvider:B8,getSmithyContext:b$e,ServiceException:A$e,NoOpLogger:x$e,emitWarningIfUnsupportedVersion:T$e,loadConfigsForDefaultMode:v$e,getDefaultExtensionConfiguration:D$e,resolveDefaultRuntimeConfig:I$e,Client:U8,makeBuilder:w$e,createWaiter:Fa,checkExceptions:V_,WaiterState:Oi,createAggregatedClient:P$e}=(J(),F(bo)),{Command:O$e}=(J(),F(bo));R.$Command=O$e;R.__Client=U8;var{resolveDefaultsModeConfig:$$e,loadConfig:Pi,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:k$e,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:M$e,NODE_REGION_CONFIG_OPTIONS:L$e,NODE_REGION_CONFIG_FILE_OPTIONS:N$e,resolveRegionConfig:F$e}=(ye(),F(Br)),{BinaryDecisionDiagram:B$e,EndpointCache:U$e,decideEndpoint:G$e,customEndpointFunctions:q$e,resolveEndpointConfig:H$e,getEndpointPlugin:j$e}=(He(),F(jp)),{parseUrl:z$e,getHttpHandlerExtensionConfiguration:V$e,resolveHttpHandlerRuntimeConfig:W$e,getContentLengthPlugin:K$e}=(V(),F(wo)),{DEFAULT_RETRY_MODE:Q$e,NODE_RETRY_MODE_CONFIG_OPTIONS:Y$e,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:J$e,resolveRetryConfig:X$e,getRetryPlugin:Z$e}=(tn(),F(nf)),{TypeRegistry:G8,getSchemaSerdePlugin:eke}=(ae(),F(Dp)),{NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_CONFIG_OPTIONS:tke,NODE_DISABLE_REQUEST_COMPRESSION_CONFIG_OPTIONS:rke,resolveCompressionConfig:nke,getCompressionPlugin:oke}=YH(),{resolveAwsSdkSigV4Config:ske,AwsSdkSigV4Signer:ike,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:ake}=(rr(),F(Il)),{defaultProvider:cke}=Cm(),{toUtf8:uke,fromUtf8:lke,toBase64:dke,fromBase64:pke,calculateBodyLength:fke}=(j(),F(To)),{streamCollector:mke,NodeHttpHandler:gke}=zs(),{AwsJson1_0Protocol:hke}=(Di(),F(Vy)),{Sha256:Ske}=($n(),F(Vp)),yke=async(t,e,r)=>({operation:b$e(e).operation,region:await B8(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Eke(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"monitoring",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var _ke=t=>{let e=[];switch(t.operation){default:e.push(Eke(t))}return e},Rke=t=>{let e=ske(t);return Object.assign(e,{authSchemePreference:B8(t.authSchemePreference??[])})},Cke=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"monitoring"}),bke={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Ake="3.1151.0",xke={version:Ake},Am="ref",Qc=-1,$E=!0,M8="isSet",q8="PartitionResult",kE="booleanEquals",e1="getAttr",L8={[Am]:"Endpoint"},t1={[Am]:q8},bm={},N8=[{[Am]:"Region"}],F8={conditions:[[M8,[L8]],[M8,N8],["aws.partition",N8,q8],[kE,[{[Am]:"UseFIPS"},$E]],[kE,[{[Am]:"UseDualStack"},$E]],["stringEquals",[{fn:e1,argv:[t1,"name"]},"aws-us-gov"]],[kE,[{fn:e1,argv:[t1,"supportsFIPS"]},$E]],[kE,[{fn:e1,argv:[t1,"supportsDualStack"]},$E]]],results:[[Qc],[Qc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Qc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[L8,bm],["https://monitoring.{Region}.{PartitionResult#dnsSuffix}",bm],["https://monitoring.{Region}.{PartitionResult#dualStackDnsSuffix}",bm],["https://monitoring-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",bm],[Qc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://monitoring-fips.{Region}.{PartitionResult#dnsSuffix}",bm],[Qc,"FIPS is enabled but this partition does not support FIPS"],[Qc,"DualStack is enabled but this partition does not support DualStack"],[Qc,"Invalid Configuration: Missing Region"]]},Tke=2,nn=1e8,vke=new Int32Array([-1,1,-1,0,14,3,1,4,nn+11,2,5,nn+11,3,8,6,4,7,nn+4,7,nn+5,nn+10,4,11,9,5,nn+4,10,6,nn+8,nn+9,5,nn+5,12,6,13,nn+7,7,nn+6,nn+7,3,nn+1,15,4,nn+2,nn+3]),Dke=B$e.from(vke,Tke,F8.conditions,F8.results),Ike=new U$e({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),wke=(t,e={})=>Ike.get(t,()=>G$e(Dke,{endpointParams:t,logger:e.logger}));q$e.aws=c$e;var ut=class t extends A$e{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatch#CloudWatchServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},ME=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ConflictException";name="ConflictException";$fault="client";Message;constructor(e){super({name:"ConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},LE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#KmsAccessDeniedException";name="KmsAccessDeniedException";$fault="client";Message;constructor(e){super({name:"KmsAccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},NE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#KmsKeyDisabledException";name="KmsKeyDisabledException";$fault="client";Message;constructor(e){super({name:"KmsKeyDisabledException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},FE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#KmsKeyNotFoundException";name="KmsKeyNotFoundException";$fault="client";Message;constructor(e){super({name:"KmsKeyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},BE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";ResourceType;ResourceId;Message;constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.ResourceType=e.ResourceType,this.ResourceId=e.ResourceId,this.Message=e.Message}},UE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ConcurrentModificationException";name="ConcurrentModificationException";$fault="client";Message;constructor(e){super({name:"ConcurrentModificationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},GE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#DashboardInvalidInputError";name="DashboardInvalidInputError";$fault="client";dashboardValidationMessages;constructor(e){super({name:"DashboardInvalidInputError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.dashboardValidationMessages=e.dashboardValidationMessages}},qE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#DashboardNotFoundError";name="DashboardNotFoundError";$fault="client";constructor(e){super({name:"DashboardNotFoundError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},HE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ResourceConflict";name="ResourceConflict";$fault="client";constructor(e){super({name:"ResourceConflict",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},jE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ResourceNotFound";name="ResourceNotFound";$fault="client";constructor(e){super({name:"ResourceNotFound",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},zE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InternalServiceFault";name="InternalServiceFault";$fault="server";Message;constructor(e){super({name:"InternalServiceFault",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},VE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InvalidParameterCombinationException";name="InvalidParameterCombinationException";$fault="client";constructor(e){super({name:"InvalidParameterCombinationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},WE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InvalidParameterValueException";name="InvalidParameterValueException";$fault="client";constructor(e){super({name:"InvalidParameterValueException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},KE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#MissingRequiredParameterException";name="MissingRequiredParameterException";$fault="client";constructor(e){super({name:"MissingRequiredParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},QE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InvalidNextToken";name="InvalidNextToken";$fault="client";constructor(e){super({name:"InvalidNextToken",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},YE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#LimitExceededException";name="LimitExceededException";$fault="client";Message;constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},JE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#LimitExceededFault";name="LimitExceededFault";$fault="client";constructor(e){super({name:"LimitExceededFault",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},XE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InvalidFormatFault";name="InvalidFormatFault";$fault="client";constructor(e){super({name:"InvalidFormatFault",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},ZE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ValidationException";name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},H8="Average",rd="AlarmActions",Pke="ApproximateAggregateValue",r1="AlarmArn",Oke="AlarmContributor",$ke="AlarmContributorAttributes",j8="AlarmContributorId",n1="AlarmConfigurationUpdatedTimestamp",z8="AlarmContributors",kke="AnomalyDetector",Mke="AnomalyDetectorConfiguration",Lke="AnomalyDetectorExcludedTimeRanges",o1="AnomalyDetectorId",Nke="AnomalyDetectorIds",Fke="AssociateDatasetKmsKey",Bke="AssociateDatasetKmsKeyInput",Uke="AssociateDatasetKmsKeyOutput",Gke="AnomalyDetectorTypes",nd="AlarmDescription",V8="AnomalyDetectors",od="ActionsEnabled",qke="AggregationExpression",Hke="AlarmHistoryItem",W8="AlarmHistoryItems",K8="AccountId",Q8="ActionLogLineCount",Y8="ActionLogLineRoleArn",J8="AlarmMuteRuleArn",X8="AlarmMuteRuleName",jke="AlarmMuteRuleSummary",Z8="AlarmMuteRuleSummaries",Vo="AlarmName",zke="AlarmNamePrefix",Mm="AlarmNames",eK="ApplyOnTransformedLogs",Vke="ActionPrefix",Wke="AlarmPromQLCriteria",tK="AlarmRule",rK="ActionsSuppressor",Kke="ActionsSuppressedBy",nK="ActionsSuppressorExtensionPeriod",Qke="ActionsSuppressedReason",oK="ActionsSuppressorWaitPeriod",Yke="AdditionalStatistics",Jke="AggregationStatistic",Xke="AlarmType",sK="AlarmTypes",Zke="ApproximateUniqueCount",e1e="AggregateValue",t1e="ApproximateValue",W_="Arn",r1e="Attributes",n1e="BatchFailures",iK="Configuration",o1e="ContributorAttributes",s1e="CompositeAlarm",aK="CompositeAlarms",K_="CreatedAt",cK="CreationDate",i1e="ConflictException",a1e="ContributorId",c1e="ConcurrentModificationException",Q_="ComparisonOperator",u1e="ChildrenOfAlarmName",l1e="CreateResourceMetricsConfiguration",d1e="CreateResourceMetricsConfigurationInput",p1e="CreateResourceMetricsConfigurationOutput",f1e="Contributors",m1e="Code",g1e="Counts",Fn="Dimensions",uK="DashboardArn",h1e="DisableAlarmActions",S1e="DisableAlarmActionsInput",y1e="DescribeAlarmContributors",E1e="DescribeAlarmContributorsInput",_1e="DescribeAlarmContributorsOutput",R1e="DeleteAnomalyDetector",C1e="DeleteAnomalyDetectorInput",b1e="DescribeAnomalyDetectorsInput",A1e="DeleteAnomalyDetectorOutput",x1e="DescribeAnomalyDetectorsOutput",T1e="DescribeAnomalyDetectors",v1e="DescribeAlarmsForMetric",D1e="DescribeAlarmsForMetricInput",I1e="DescribeAlarmsForMetricOutput",w1e="DescribeAlarmHistory",P1e="DescribeAlarmHistoryInput",O1e="DescribeAlarmHistoryOutput",$1e="DeleteAlarmsInput",k1e="DescribeAlarmsInput",M1e="DeleteAlarmMuteRule",L1e="DeleteAlarmMuteRuleInput",N1e="DescribeAlarmsOutput",F1e="DeleteAlarms",B1e="DescribeAlarms",lK="DashboardBody",U1e="DeleteDashboards",G1e="DeleteDashboardsInput",q1e="DisassociateDatasetKmsKey",H1e="DisassociateDatasetKmsKeyInput",j1e="DisassociateDatasetKmsKeyOutput",z1e="DeleteDashboardsOutput",V1e="DashboardEntry",dK="DashboardEntries",W1e="DimensionFilter",K1e="DimensionFilters",s1="DatasetIdentifier",Q1e="DashboardInvalidInputError",Y1e="DeleteInsightRules",J1e="DeleteInsightRulesInput",X1e="DescribeInsightRulesInput",Z1e="DisableInsightRulesInput",eMe="DeleteInsightRulesOutput",tMe="DescribeInsightRulesOutput",rMe="DisableInsightRulesOutput",nMe="DescribeInsightRules",oMe="DisableInsightRules",sMe="DatasetId",iMe="DeleteMetricStream",aMe="DeleteMetricStreamInput",cMe="DeleteMetricStreamOutput",Y_="DashboardName",uMe="DashboardNotFoundError",lMe="DashboardNamePrefix",dMe="DashboardNames",pMe="DataPath",fMe="DeleteResourceMetricsConfiguration",mMe="DeleteResourceMetricsConfigurationInput",gMe="DeleteResourceMetricsConfigurationOutput",pK="DatapointsToAlarm",hMe="DashboardValidationMessage",fK="DashboardValidationMessages",SMe="Datapoint",i1="Datapoints",mK="Description",yMe="Definition",EMe="Dimension",_Me="Duration",gK="Entity",RMe="EnableAlarmActions",CMe="EnableAlarmActionsInput",a1="EvaluationCriteria",c1="ExpireDate",bMe="EndDate",Yc="ExcludeFilters",hK="EvaluationInterval",AMe="EnableInsightRules",xMe="EnableInsightRulesInput",TMe="EnableInsightRulesOutput",SK="EvaluateLowSampleCountPercentile",yK="EntityMetricData",vMe="EntityMetricDataList",EK="EvaluationPeriods",_K="ExtendedStatistics",RK="EvaluationState",u1="ExtendedStatistic",J_="EndTime",DMe="EndTimeOffset",IMe="ExcludedTimeRanges",wMe="ExceptionType",l1="EvaluationWindow",PMe="Entries",CK="Expression",X_="Failures",d1="FirehoseArn",OMe="FailureCode",$Me="FailureDescription",kMe="FailureResource",MMe="GetAlarmMuteRule",LMe="GetAlarmMuteRuleInput",NMe="GetAlarmMuteRuleOutput",FMe="GetDashboard",BMe="GetDashboardInput",UMe="GetDatasetInput",GMe="GetDashboardOutput",qMe="GetDatasetOutput",HMe="GetDataset",jMe="GetInsightRuleReport",zMe="GetInsightRuleReportInput",VMe="GetInsightRuleReportOutput",WMe="GetMetricData",KMe="GetMetricDataInput",QMe="GetMetricDataOutput",YMe="GetMetricStatistics",JMe="GetMetricStatisticsInput",XMe="GetMetricStreamInput",ZMe="GetMetricStatisticsOutput",eLe="GetMetricStreamOutput",tLe="GetMetricStream",rLe="GetMetricWidgetImage",nLe="GetMetricWidgetImageInput",oLe="GetMetricWidgetImageOutput",sLe="GetOTelEnrichment",iLe="GetOTelEnrichmentInput",aLe="GetOTelEnrichmentOutput",cLe="GetResourceMetricsConfiguration",uLe="GetResourceMetricsConfigurationInput",lLe="GetResourceMetricsConfigurationOutput",dLe="HistoryData",bK="HistoryItemType",pLe="HistorySummary",AK="Id",sd="InsufficientDataActions",Jc="IncludeFilters",fLe="InvalidFormatFault",mLe="IncludeLinkedAccounts",xK="IncludeLinkedAccountsMetrics",TK="IncludeMetrics",gLe="InvalidNextToken",hLe="InvalidParameterCombinationException",SLe="InvalidParameterValueException",vK="InsightRules",yLe="InsightRuleContributor",ELe="InsightRuleContributorDatapoint",_Le="InsightRuleContributorDatapoints",RLe="InsightRuleContributors",CLe="InsightRuleMetricDatapoint",bLe="InsightRuleMetricDatapoints",ALe="InsightRule",xLe="InternalServiceFault",TLe="Keys",vLe="KeyAttributes",DLe="KmsAccessDeniedException",DK="KmsKeyArn",ILe="KmsKeyDisabledException",wLe="KmsKeyNotFoundException",PLe="KeyLabels",OLe="Key",p1="Label",IK="LogAlarms",$Le="ListAlarmMuteRules",kLe="ListAlarmMuteRulesInput",MLe="ListAlarmMuteRulesOutput",LLe="LogAlarm",NLe="ListDashboards",FLe="ListDashboardsInput",BLe="ListDashboardsOutput",ULe="LimitExceededException",GLe="LimitExceededFault",qLe="LogGroupIdentifiers",HLe="LastModified",jLe="ListMetricsInput",zLe="ListManagedInsightRules",VLe="ListManagedInsightRulesInput",WLe="ListManagedInsightRulesOutput",KLe="ListMetricsOutput",QLe="ListMetricStreams",YLe="ListMetricStreamsInput",JLe="ListMetricStreamsOutput",XLe="ListMetrics",wK="LabelOptions",ZLe="ListTagsForResource",eNe="ListTagsForResourceInput",tNe="ListTagsForResourceOutput",PK="LastUpdateDate",OK="LastUpdatedTimestamp",$i="Message",f1="MetricAlarms",rNe="MetricAlarm",m1="MetricCharacteristics",nNe="MaxContributorCount",oNe="MaxContributorValue",g1="MetricData",h1="MetricDataQueries",sNe="MetricDataQuery",$K="MetricDataResults",iNe="MetricDataResultMessages",aNe="MetricDataResult",cNe="MaxDatapoints",uNe="MetricDatapoints",lNe="MessageData",dNe="MetricDatum",Z_="MetricMathAnomalyDetector",Bn="MetricName",kK="MetricNames",S1="MaxRecords",pNe="ManagedRuleDescription",fNe="ManagedRuleDescriptions",mNe="MissingRequiredParameterException",gNe="ManagedRuleState",eR="MaxResults",MK="ManagedRule",y1="ManagedRules",E1="MetricSelections",hNe="MetricStreamEntry",SNe="MetricStreamEntries",yNe="MetricStreamFilter",ENe="MetricStreamFilters",_Ne="MetricStreamStatisticsConfiguration",RNe="MetricStreamStatisticsConfigurations",CNe="MetricStreamStatisticsIncludeMetrics",bNe="MetricStreamStatisticsMetric",LK="MetricStat",NK="MuteType",ANe="MetricTimezone",_1="MuteTargets",xNe="MetricWidget",TNe="MetricWidgetImage",R1="Maximum",Lm="Metrics",FK="Messages",BK="Metric",C1="Minimum",on="Namespace",yt="NextToken",Xs="Name",UK="Names",vNe="OwningAccount",DNe="OwningAccounts",INe="OrderBy",tR="OutputFormat",id="OKActions",wNe="OnlyStartEvaluatingAfterWarmUpPeriodEnds",PNe="OTelEnrichmentMetricSelector",ONe="OTelEnrichmentMetricSelectorList",Xc="Period",$Ne="PutAnomalyDetector",kNe="PutAnomalyDetectorInput",MNe="PutAnomalyDetectorOutput",LNe="PutAlarmMuteRule",NNe="PutAlarmMuteRuleInput",FNe="PutCompositeAlarm",BNe="PutCompositeAlarmInput",UNe="PutDashboard",GNe="PutDashboardInput",qNe="PutDashboardOutput",HNe="PartialFailure",jNe="PutInsightRule",zNe="PutInsightRuleInput",VNe="PutInsightRuleOutput",WNe="PutLogAlarm",KNe="PutLogAlarmInput",QNe="PutMetricAlarm",YNe="PutMetricAlarmInput",JNe="PutMetricData",XNe="PutMetricDataInput",ZNe="PutManagedInsightRules",e3e="PutManagedInsightRulesInput",t3e="PutManagedInsightRulesOutput",r3e="PutMetricStream",n3e="PutMetricStreamInput",o3e="PutMetricStreamOutput",s3e="ParentsOfAlarmName",i3e="PendingPeriod",a3e="PromQLCriteria",c3e="PeriodicSpikes",u3e="Query",l3e="QueryARN",GK="QueryResultsToAlarm",qK="QueryResultsToEvaluate",d3e="QueryString",b1="Rule",Nm="ResourceArn",ad="ResourceARN",p3e="RecentlyActive",HK="RoleArn",f3e="ResourceConflict",m3e="ReturnData",g3e="RuleDefinition",h3e="ResourceId",rR="ResourceMetricsConfiguration",S3e="ResourceMetricSelection",y3e="ResourceMetricSelectionList",A1="RuleNames",E3e="ResourceNotFound",_3e="ResourceNotFoundException",x1="RuleName",R3e="RecoveryPeriod",jK="RuleState",C3e="ResourceType",b3e="Range",T1="Status",A3e="SetAlarmState",x3e="SetAlarmStateInput",zK="ScanBy",v1="SampleCount",VK="ScheduleConfiguration",WK="StatisticsConfigurations",T3e="StatusCode",D1="StartDate",v3e="ScheduleExpression",D3e="StrictEntityValidation",nR="SingleMetricAnomalyDetector",I3e="StartMetricStreams",w3e="StartMetricStreamsInput",P3e="StopMetricStreamsInput",O3e="StartMetricStreamsOutput",$3e="StopMetricStreamsOutput",k3e="StopMetricStreams",M3e="StartOTelEnrichment",L3e="StartOTelEnrichmentInput",N3e="StopOTelEnrichmentInput",F3e="StartOTelEnrichmentOutput",B3e="StopOTelEnrichmentOutput",U3e="StopOTelEnrichment",I1="ScheduledQueryConfiguration",G3e="ScheduledQueryRoleARN",Fm="StateReason",oR="StateReasonData",q3e="StorageResolution",H3e="StatisticSet",sR="StartTime",j3e="StartTimeOffset",iR="StateTransitionedTimestamp",w1="StateUpdatedTimestamp",cd="StateValue",z3e="StatisticValues",KK="SlidingWindow",V3e="Schema",QK="Schedule",W3e="Size",Bm="Stat",P1="Statistic",K3e="Statistics",aR="State",Q3e="Statuses",O1="Sum",Um="Timestamp",Y3e="TagKeys",J3e="TagList",cR="TreatMissingData",YK="ThresholdMetricId",JK="TemplateName",X3e="TagResource",Z3e="TagResourceInput",eFe="TagResourceOutput",Wo="Tags",tFe="Tag",uR="Threshold",$1="Timezone",rFe="Timestamps",Zc="Unit",lR="UpdatedAt",nFe="UniqueContributors",oFe="UpdateOTelEnrichment",sFe="UpdateOTelEnrichmentInput",iFe="UpdateOTelEnrichmentOutput",aFe="UntagResource",cFe="UntagResourceInput",uFe="UpdateResourceMetricsConfiguration",lFe="UpdateResourceMetricsConfigurationInput",dFe="UpdateResourceMetricsConfigurationOutput",pFe="UntagResourceOutput",Gm="Value",fFe="ValidationException",XK="Values",ZK="WallClockWindow",qm="WarmUpConfiguration",mFe="WarmUpPeriodDurationInMinutes",sn="awsQueryError",ir="client",gFe="dashboardValidationMessages",zt="error",Hr="httpError",Ko="message",e9="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatch",hFe="server",b="com.amazonaws.cloudwatch",t9=new G8(e9),r9=[-3,e9,"CloudWatchServiceException",0,[],[]];t9.registerError(r9,ut);var Ot=new G8(b),n9=[-3,b,c1e,{[sn]:["ConcurrentModificationException",429],[zt]:ir,[Hr]:429},[$i],[0]];Ot.registerError(n9,UE);var o9=[-3,b,i1e,{[zt]:ir,[Hr]:409},[$i],[0]];Ot.registerError(o9,ME);var s9=[-3,b,Q1e,{[sn]:["InvalidParameterInput",400],[zt]:ir,[Hr]:400},[Ko,gFe],[0,()=>nY]];Ot.registerError(s9,GE);var i9=[-3,b,uMe,{[sn]:["ResourceNotFound",404],[zt]:ir,[Hr]:404},[Ko],[0]];Ot.registerError(i9,qE);var a9=[-3,b,xLe,{[sn]:["InternalServiceError",500],[zt]:hFe,[Hr]:500},[$i],[0]];Ot.registerError(a9,zE);var c9=[-3,b,fLe,{[sn]:["InvalidFormat",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(c9,XE);var u9=[-3,b,gLe,{[sn]:["InvalidNextToken",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(u9,QE);var l9=[-3,b,hLe,{[sn]:["InvalidParameterCombination",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(l9,VE);var d9=[-3,b,SLe,{[sn]:["InvalidParameterValue",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(d9,WE);var p9=[-3,b,DLe,{[zt]:ir},[$i],[0],1];Ot.registerError(p9,LE);var f9=[-3,b,ILe,{[zt]:ir},[$i],[0],1];Ot.registerError(f9,NE);var m9=[-3,b,wLe,{[zt]:ir},[$i],[0],1];Ot.registerError(m9,FE);var g9=[-3,b,ULe,{[sn]:["LimitExceededException",400],[zt]:ir,[Hr]:400},[$i],[0]];Ot.registerError(g9,YE);var h9=[-3,b,GLe,{[sn]:["LimitExceeded",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(h9,JE);var S9=[-3,b,mNe,{[sn]:["MissingParameter",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(S9,KE);var y9=[-3,b,f3e,{[sn]:["ResourceConflict",409],[zt]:ir,[Hr]:409},[Ko],[0]];Ot.registerError(y9,HE);var E9=[-3,b,E3e,{[sn]:["ResourceNotFound",404],[zt]:ir,[Hr]:404},[Ko],[0]];Ot.registerError(E9,jE);var _9=[-3,b,_3e,{[sn]:["ResourceNotFoundException",404],[zt]:ir,[Hr]:404},[C3e,h3e,$i],[0,0,0]];Ot.registerError(_9,BE);var R9=[-3,b,fFe,{[sn]:["ValidationError",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(R9,ZE);var C9=[t9,Ot],b9=[3,b,Oke,0,[a1e,o1e,Fm,iR],[0,128,0,4],3],A9=[3,b,Hke,0,[Vo,j8,Xke,Um,bK,pLe,dLe,$ke],[0,0,0,4,0,0,0,128]],x9=[3,b,jke,0,[J8,c1,T1,NK,OK],[0,4,0,0,4]],T9=[3,b,Wke,0,[u3e,i3e,R3e],[0,1,1],1],v9=[3,b,kke,0,[o1,on,Bn,Fn,Bm,iK,cd,m1,nR,Z_],[0,0,0,()=>Qo,0,()=>k1,0,()=>L1,()=>fR,()=>dR]],k1=[3,b,Mke,0,[IMe,ANe],[()=>_Fe,0]],D9=[3,b,Bke,0,[s1,DK],[0,0],2],I9=[3,b,Uke,0,[],[]],w9=[3,b,s1e,0,[od,rd,r1,n1,nd,Vo,tK,sd,id,Fm,oR,w1,cd,iR,Kke,Qke,rK,oK,nK],[2,64,0,4,0,0,0,64,64,0,0,4,0,4,0,0,0,1,1]],P9=[3,b,d1e,0,[Nm,E1],[0,()=>U1],1],O9=[3,b,p1e,0,[rR],[()=>pR],1],$9=[3,b,V1e,0,[Y_,uK,HLe,W3e],[0,0,4,1]],k9=[3,b,hMe,0,[pMe,$i],[0,0]],M9=[3,b,SMe,0,[Um,v1,H8,O1,C1,R1,Zc,_K],[4,1,1,1,1,1,0,129]],L9=[3,b,L1e,0,[X8],[0],1],N9=[3,b,$1e,0,[Mm],[64],1],F9=[3,b,C1e,0,[o1,on,Bn,Fn,Bm,nR,Z_],[0,0,0,()=>Qo,0,()=>fR,()=>dR]],B9=[3,b,A1e,0,[],[]],U9=[3,b,G1e,0,[dMe],[64],1],G9=[3,b,z1e,0,[],[]],q9=[3,b,J1e,0,[A1],[64],1],H9=[3,b,eMe,0,[X_],[()=>mR]],j9=[3,b,aMe,0,[Xs],[0],1],z9=[3,b,cMe,0,[],[]],V9=[3,b,mMe,0,[Nm],[0],1],W9=[3,b,gMe,0,[],[]],K9=[3,b,E1e,0,[Vo,yt],[0,0],1],Q9=[3,b,_1e,0,[z8,yt],[()=>SFe,0],1],Y9=[3,b,P1e,0,[Vo,j8,sK,bK,D1,bMe,S1,yt,zK],[0,0,64,0,4,4,1,0,0]],J9=[3,b,O1e,0,[W8,yt],[()=>yFe,0]],X9=[3,b,D1e,0,[Bn,on,P1,u1,Fn,Xc,Zc],[0,0,0,0,()=>Qo,1,0],2],Z9=[3,b,I1e,0,[f1],[()=>oY]],eQ=[3,b,k1e,0,[Mm,zke,sK,u1e,s3e,cd,Vke,S1,yt],[64,0,64,0,0,0,0,1,0]],tQ=[3,b,N1e,0,[aK,f1,IK,yt],[()=>CFe,()=>oY,()=>PFe,0]],rQ=[3,b,b1e,0,[Nke,yt,eR,on,Bn,Fn,Gke],[64,0,1,0,0,()=>Qo,64]],nQ=[3,b,x1e,0,[V8,yt],[()=>RFe,0]],oQ=[3,b,X1e,0,[yt,eR],[0,1]],sQ=[3,b,tMe,0,[yt,vK],[0,()=>wFe]],iQ=[3,b,EMe,0,[Xs,Gm],[0,0],2],aQ=[3,b,W1e,0,[Xs,Gm],[0,0],1],cQ=[3,b,S1e,0,[Mm],[64],1],uQ=[3,b,Z1e,0,[A1],[64],1],lQ=[3,b,rMe,0,[X_],[()=>mR]],dQ=[3,b,H1e,0,[s1],[0],1],pQ=[3,b,j1e,0,[],[]],fQ=[3,b,CMe,0,[Mm],[64],1],mQ=[3,b,xMe,0,[A1],[64],1],gQ=[3,b,TMe,0,[X_],[()=>mR]],hQ=[3,b,gK,0,[vLe,r1e],[128,128]],SQ=[3,b,yK,0,[gK,g1],[()=>hQ,()=>sY]],yQ=[3,b,LMe,0,[X8],[0],1],EQ=[3,b,NMe,0,[Xs,J8,mK,b1,_1,D1,c1,T1,OK,NK],[0,0,0,()=>F1,()=>N1,4,4,0,4,0]],_Q=[3,b,BMe,0,[Y_],[0],1],RQ=[3,b,GMe,0,[uK,lK,Y_],[0,0,0]],CQ=[3,b,UMe,0,[s1],[0],1],bQ=[3,b,qMe,0,[sMe,W_,DK],[0,0,0],2],AQ=[3,b,zMe,0,[x1,sR,J_,Xc,nNe,Lm,INe],[0,4,4,1,1,64,0],4],xQ=[3,b,VMe,0,[PLe,Jke,e1e,Zke,f1e,uNe],[64,0,1,1,()=>DFe,()=>IFe]],TQ=[3,b,KMe,0,[h1,sR,J_,yt,zK,cNe,wK],[()=>gR,4,4,0,0,1,()=>qQ],3],vQ=[3,b,QMe,0,[$K,yt,FK],[()=>kFe,0,()=>iY]],DQ=[3,b,JMe,0,[on,Bn,sR,J_,Xc,Fn,K3e,_K,Zc],[0,0,4,4,1,()=>Qo,64,64,0],5],IQ=[3,b,ZMe,0,[p1,i1],[0,()=>AFe]],wQ=[3,b,XMe,0,[Xs],[0],1],PQ=[3,b,eLe,0,[W_,Xs,Jc,Yc,d1,HK,aR,cK,PK,tR,WK,xK],[0,0,()=>e_,()=>e_,0,0,0,4,4,0,()=>aY,2]],OQ=[3,b,nLe,0,[xNe,tR],[0,0],1],$Q=[3,b,oLe,0,[TNe],[21]],kQ=[3,b,iLe,0,[],[]],MQ=[3,b,aLe,0,[T1,Jc,Yc,K_,lR],[0,()=>Ys,()=>Ys,4,4],1],LQ=[3,b,uLe,0,[Nm],[0],1],NQ=[3,b,lLe,0,[rR],[()=>pR],1],FQ=[3,b,ALe,0,[Xs,aR,V3e,yMe,MK,eK],[0,0,0,0,2,2],4],BQ=[3,b,yLe,0,[TLe,Pke,i1],[64,1,()=>vFe],3],UQ=[3,b,ELe,0,[Um,t1e],[4,1],2],GQ=[3,b,CLe,0,[Um,nFe,oNe,v1,H8,O1,C1,R1],[4,1,1,1,1,1,1,1],1],qQ=[3,b,wK,0,[$1],[0]],HQ=[3,b,kLe,0,[Vo,Q3e,S1,yt],[0,64,1,0]],jQ=[3,b,MLe,0,[Z8,yt],[()=>EFe,0]],zQ=[3,b,FLe,0,[lMe,yt],[0,0]],VQ=[3,b,BLe,0,[dK,yt],[()=>bFe,0]],WQ=[3,b,VLe,0,[ad,yt,eR],[0,0,1],1],KQ=[3,b,WLe,0,[y1,yt],[()=>OFe,0]],QQ=[3,b,jLe,0,[on,Bn,Fn,yt,p3e,mLe,vNe],[0,0,()=>xFe,0,0,2,0]],YQ=[3,b,KLe,0,[Lm,yt,DNe],[()=>MFe,0,64]],JQ=[3,b,YLe,0,[yt,eR],[0,1]],XQ=[3,b,JLe,0,[yt,PMe],[0,()=>LFe]],ZQ=[3,b,eNe,0,[ad],[0],1],e7=[3,b,tNe,0,[Wo],[()=>Yo]],t7=[3,b,LLe,0,[Vo,r1,nd,n1,od,id,rd,sd,cd,Fm,oR,w1,I1,qK,GK,uR,Q_,cR,iR,RK,Q8,Y8,qm],[0,0,0,4,2,64,64,64,0,0,0,4,()=>B1,1,1,1,0,0,4,0,1,0,()=>Hm]],r7=[3,b,MK,0,[JK,ad,Wo],[0,0,()=>Yo],2],n7=[3,b,pNe,0,[JK,ad,jK],[0,0,()=>o7]],o7=[3,b,gNe,0,[x1,aR],[0,0],2],s7=[3,b,lNe,0,[m1e,Gm],[0,0]],M1=[3,b,BK,0,[on,Bn,Fn],[0,0,()=>Qo]],i7=[3,b,rNe,0,[Vo,r1,nd,n1,od,id,rd,sd,cd,Fm,oR,w1,Bn,on,P1,u1,Fn,Xc,Zc,EK,pK,uR,Q_,cR,SK,Lm,YK,RK,iR,l1,qm,a1,hK],[0,0,0,4,2,64,64,64,0,0,0,4,0,0,0,0,()=>Qo,1,0,1,1,1,0,0,0,()=>gR,0,0,4,()=>q1,()=>Hm,()=>G1,1]],L1=[3,b,m1,0,[c3e],[2]],a7=[3,b,sNe,0,[AK,LK,CK,p1,m3e,Xc,K8],[0,()=>l7,0,0,2,1,0],1],c7=[3,b,aNe,0,[AK,p1,rFe,XK,T3e,FK],[0,0,68,65,0,()=>iY]],u7=[3,b,dNe,0,[Bn,Fn,Um,Gm,z3e,XK,g1e,Zc,q3e],[0,()=>Qo,4,1,()=>q7,65,65,0,1],1],dR=[3,b,Z_,0,[h1],[()=>gR]],l7=[3,b,LK,0,[BK,Xc,Bm,Zc],[()=>M1,1,0,0],3],d7=[3,b,hNe,0,[W_,cK,PK,Xs,d1,aR,tR],[0,4,4,0,0,0,0]],p7=[3,b,yNe,0,[on,kK],[0,64]],f7=[3,b,_Ne,0,[TK,Yke],[()=>NFe,64],2],m7=[3,b,bNe,0,[on,Bn],[0,0],2],N1=[3,b,_1,0,[Mm],[64],1],g7=[3,b,PNe,0,[on,kK],[0,64],1],h7=[3,b,HNe,0,[kMe,wMe,OMe,$Me],[0,0,0,0]],S7=[3,b,NNe,0,[Xs,b1,mK,_1,Wo,D1,c1],[0,()=>F1,0,()=>N1,()=>Yo,4,4],2],y7=[3,b,kNe,0,[on,Bn,Fn,Bm,iK,m1,nR,Z_],[0,0,()=>Qo,0,()=>k1,()=>L1,()=>fR,()=>dR]],E7=[3,b,MNe,0,[o1],[0]],_7=[3,b,BNe,0,[Vo,tK,od,rd,nd,sd,id,Wo,rK,oK,nK],[0,0,2,64,0,64,64,()=>Yo,0,1,1],2],R7=[3,b,GNe,0,[Y_,lK,Wo],[0,0,()=>Yo],2],C7=[3,b,qNe,0,[fK],[()=>nY]],b7=[3,b,zNe,0,[x1,g3e,jK,Wo,eK],[0,0,0,()=>Yo,2],2],A7=[3,b,VNe,0,[],[]],x7=[3,b,KNe,0,[Vo,I1,qK,GK,uR,Q_,nd,Q8,Y8,od,id,rd,sd,cR,Wo,qm],[0,()=>B1,1,1,1,0,0,1,0,2,64,64,64,0,()=>Yo,()=>Hm],6],T7=[3,b,e3e,0,[y1],[()=>$Fe],1],v7=[3,b,t3e,0,[X_],[()=>mR]],D7=[3,b,YNe,0,[Vo,nd,od,id,rd,sd,Bn,on,P1,u1,Fn,Xc,Zc,EK,pK,uR,Q_,cR,SK,Lm,Wo,YK,l1,qm,a1,hK],[0,0,2,64,64,64,0,0,0,0,()=>Qo,1,0,1,1,1,0,0,0,()=>gR,()=>Yo,0,()=>q1,()=>Hm,()=>G1,1],1],I7=[3,b,XNe,0,[on,g1,yK,D3e],[0,()=>sY,()=>TFe,2],1],w7=[3,b,n3e,0,[Xs,d1,HK,tR,Jc,Yc,Wo,WK,xK],[0,0,0,0,()=>e_,()=>e_,()=>Yo,()=>aY,2],4],P7=[3,b,o3e,0,[W_],[0]],O7=[3,b,b3e,0,[sR,J_],[4,4],2],pR=[3,b,rR,0,[Nm,K_,lR,E1],[0,4,4,()=>U1],3],$7=[3,b,S3e,0,[TK],[64],1],F1=[3,b,b1,0,[QK],[()=>k7],1],k7=[3,b,QK,0,[CK,_Me,$1],[0,0,0],2],M7=[3,b,VK,0,[v3e,j3e,DMe],[0,1,1],2],B1=[3,b,I1,0,[d3e,G3e,VK,qke,qLe,l3e,Wo],[0,0,()=>M7,0,64,0,()=>Yo],4],L7=[3,b,x3e,0,[Vo,cd,Fm,oR],[0,0,0,0],3],fR=[3,b,nR,0,[K8,on,Bn,Fn,Bm],[0,0,0,()=>Qo,0]],N7=[3,b,KK,0,[],[]],F7=[3,b,w3e,0,[UK],[64],1],B7=[3,b,O3e,0,[],[]],U7=[3,b,L3e,0,[Jc,Yc],[()=>Ys,()=>Ys]],G7=[3,b,F3e,0,[Jc,Yc,K_,lR],[()=>Ys,()=>Ys,4,4]],q7=[3,b,H3e,0,[v1,O1,C1,R1],[1,1,1,1],4],H7=[3,b,P3e,0,[UK],[64],1],j7=[3,b,$3e,0,[],[]],z7=[3,b,N3e,0,[],[]],V7=[3,b,B3e,0,[],[]],W7=[3,b,tFe,0,[OLe,Gm],[0,0],2],K7=[3,b,Z3e,0,[ad,Wo],[0,()=>Yo],2],Q7=[3,b,eFe,0,[],[]],Y7=[3,b,cFe,0,[ad,Y3e],[0,64],2],J7=[3,b,pFe,0,[],[]],X7=[3,b,sFe,0,[Jc,Yc],[()=>Ys,()=>Ys]],Z7=[3,b,iFe,0,[Jc,Yc,K_,lR],[()=>Ys,()=>Ys,4,4]],eY=[3,b,lFe,0,[Nm,E1],[0,()=>U1],1],tY=[3,b,dFe,0,[rR],[()=>pR],1],rY=[3,b,ZK,0,[$1],[0]],Hm=[3,b,qm,0,[mFe,wNe],[1,2],1],Zs="unit",SFe=[1,b,z8,0,()=>b9],yFe=[1,b,W8,0,()=>A9],EFe=[1,b,Z8,0,()=>x9],_Fe=[1,b,Lke,0,()=>O7],RFe=[1,b,V8,0,()=>v9],mR=[1,b,n1e,0,()=>h7],CFe=[1,b,aK,0,()=>w9],bFe=[1,b,dK,0,()=>$9],nY=[1,b,fK,0,()=>k9],AFe=[1,b,i1,0,()=>M9],xFe=[1,b,K1e,0,()=>aQ],Qo=[1,b,Fn,0,()=>iQ],TFe=[1,b,vMe,0,()=>SQ],vFe=[1,b,_Le,0,()=>UQ],DFe=[1,b,RLe,0,()=>BQ],IFe=[1,b,bLe,0,()=>GQ],wFe=[1,b,vK,0,()=>FQ],PFe=[1,b,IK,0,()=>t7],OFe=[1,b,fNe,0,()=>n7],$Fe=[1,b,y1,0,()=>r7],oY=[1,b,f1,0,()=>i7],sY=[1,b,g1,0,()=>u7],gR=[1,b,h1,0,()=>a7],iY=[1,b,iNe,0,()=>s7],kFe=[1,b,$K,0,()=>c7],MFe=[1,b,Lm,0,()=>M1],LFe=[1,b,SNe,0,()=>d7],e_=[1,b,ENe,0,()=>p7],aY=[1,b,RNe,0,()=>f7],NFe=[1,b,CNe,0,()=>m7],Ys=[1,b,ONe,0,()=>g7],U1=[1,b,y3e,0,()=>$7],Yo=[1,b,J3e,0,()=>W7],G1=[4,b,a1,0,[a3e],[()=>T9]],q1=[4,b,l1,0,[ZK,KK],[()=>rY,()=>N7]],cY=[9,b,Fke,0,()=>D9,()=>I9],uY=[9,b,l1e,0,()=>P9,()=>O9],lY=[9,b,M1e,0,()=>L9,()=>Zs],dY=[9,b,F1e,0,()=>N9,()=>Zs],pY=[9,b,R1e,0,()=>F9,()=>B9],fY=[9,b,U1e,0,()=>U9,()=>G9],mY=[9,b,Y1e,0,()=>q9,()=>H9],gY=[9,b,iMe,0,()=>j9,()=>z9],hY=[9,b,fMe,0,()=>V9,()=>W9],SY=[9,b,y1e,0,()=>K9,()=>Q9],yY=[9,b,w1e,0,()=>Y9,()=>J9],EY=[9,b,B1e,0,()=>eQ,()=>tQ],_Y=[9,b,v1e,0,()=>X9,()=>Z9],RY=[9,b,T1e,0,()=>rQ,()=>nQ],CY=[9,b,nMe,0,()=>oQ,()=>sQ],bY=[9,b,h1e,0,()=>cQ,()=>Zs],AY=[9,b,oMe,0,()=>uQ,()=>lQ],xY=[9,b,q1e,2,()=>dQ,()=>pQ],TY=[9,b,RMe,0,()=>fQ,()=>Zs],vY=[9,b,AMe,0,()=>mQ,()=>gQ],DY=[9,b,MMe,0,()=>yQ,()=>EQ],IY=[9,b,FMe,0,()=>_Q,()=>RQ],wY=[9,b,HMe,0,()=>CQ,()=>bQ],PY=[9,b,jMe,0,()=>AQ,()=>xQ],OY=[9,b,WMe,0,()=>TQ,()=>vQ],$Y=[9,b,YMe,0,()=>DQ,()=>IQ],kY=[9,b,tLe,0,()=>wQ,()=>PQ],MY=[9,b,rLe,0,()=>OQ,()=>$Q],LY=[9,b,sLe,0,()=>kQ,()=>MQ],NY=[9,b,cLe,0,()=>LQ,()=>NQ],FY=[9,b,$Le,0,()=>HQ,()=>jQ],BY=[9,b,NLe,0,()=>zQ,()=>VQ],UY=[9,b,zLe,0,()=>WQ,()=>KQ],GY=[9,b,XLe,0,()=>QQ,()=>YQ],qY=[9,b,QLe,0,()=>JQ,()=>XQ],HY=[9,b,ZLe,0,()=>ZQ,()=>e7],jY=[9,b,LNe,0,()=>S7,()=>Zs],zY=[9,b,$Ne,0,()=>y7,()=>E7],VY=[9,b,FNe,0,()=>_7,()=>Zs],WY=[9,b,UNe,0,()=>R7,()=>C7],KY=[9,b,jNe,0,()=>b7,()=>A7],QY=[9,b,WNe,0,()=>x7,()=>Zs],YY=[9,b,ZNe,0,()=>T7,()=>v7],JY=[9,b,QNe,0,()=>D7,()=>Zs],XY=[9,b,JNe,0,()=>I7,()=>Zs],ZY=[9,b,r3e,0,()=>w7,()=>P7],eJ=[9,b,A3e,0,()=>L7,()=>Zs],tJ=[9,b,I3e,0,()=>F7,()=>B7],rJ=[9,b,M3e,0,()=>U7,()=>G7],nJ=[9,b,k3e,0,()=>H7,()=>j7],oJ=[9,b,U3e,0,()=>z7,()=>V7],sJ=[9,b,X3e,0,()=>K7,()=>Q7],iJ=[9,b,aFe,0,()=>Y7,()=>J7],aJ=[9,b,oFe,0,()=>X7,()=>Z7],cJ=[9,b,uFe,0,()=>eY,()=>tY],FFe=t=>({apiVersion:"2010-08-01",base64Decoder:t?.base64Decoder??pke,base64Encoder:t?.base64Encoder??dke,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??wke,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??_ke,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new ike}],logger:t?.logger??new x$e,protocol:t?.protocol??hke,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.cloudwatch",errorTypeRegistries:C9,xmlNamespace:"http://monitoring.amazonaws.com/doc/2010-08-01/",version:"2010-08-01",serviceTarget:"GraniteServiceVersion20100801",awsQueryCompatible:!0},serviceId:t?.serviceId??"CloudWatch",sha256:t?.sha256??Ske,urlParser:t?.urlParser??z$e,utf8Decoder:t?.utf8Decoder??lke,utf8Encoder:t?.utf8Encoder??uke}),BFe=t=>{T$e(process.version);let e=$$e(t),r=()=>e().then(v$e),n=FFe(t);u$e(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??Pi(ake,o),bodyLengthChecker:t?.bodyLengthChecker??fke,credentialDefaultProvider:t?.credentialDefaultProvider??cke,defaultUserAgentProvider:t?.defaultUserAgentProvider??l$e({serviceId:n.serviceId,clientVersion:xke.version}),disableRequestCompression:t?.disableRequestCompression??Pi(rke,t),maxAttempts:t?.maxAttempts??Pi(J$e,t),region:t?.region??Pi(L$e,{...N$e,...o}),requestHandler:gke.create(t?.requestHandler??r),requestMinCompressionSizeBytes:t?.requestMinCompressionSizeBytes??Pi(tke,t),retryMode:t?.retryMode??Pi({...Y$e,default:async()=>(await r()).retryMode||Q$e},t),streamCollector:t?.streamCollector??mke,useDualstackEndpoint:t?.useDualstackEndpoint??Pi(M$e,o),useFipsEndpoint:t?.useFipsEndpoint??Pi(k$e,o),userAgentAppId:t?.userAgentAppId??Pi(d$e,o)}},UFe=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},GFe=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),qFe=(t,e)=>{let r=Object.assign(p$e(t),D$e(t),V$e(t),UFe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,f$e(r),I$e(r),W$e(r),GFe(r))},bn=class extends U8{config;constructor(...[e]){let r=BFe(e||{});super(r),this.initConfig=r;let n=Cke(r),o=m$e(n),s=X$e(o),i=F$e(s),a=g$e(i),c=H$e(a),u=Rke(c),f=nke(u),m=qFe(f,e?.extensions||[]);this.config=m,this.middlewareStack.use(eke(this.config)),this.middlewareStack.use(h$e(this.config)),this.middlewareStack.use(Z$e(this.config)),this.middlewareStack.use(K$e(this.config)),this.middlewareStack.use(S$e(this.config)),this.middlewareStack.use(y$e(this.config)),this.middlewareStack.use(E$e(this.config)),this.middlewareStack.use(_$e(this.config,{httpAuthSchemeParametersProvider:yke,identityProviderConfigProvider:async y=>new R$e({"aws.auth#sigv4":y.credentials})})),this.middlewareStack.use(C$e(this.config))}destroy(){super.destroy()}},X=w$e(bke,"GraniteServiceVersion20100801","CloudWatchClient",j$e),Z={},ee=(t,e,r,n)=>[],HFe=(t,e,r,n)=>[oke(r,{encodings:["gzip"]})],t_=class extends X(Z,ee,"AssociateDatasetKmsKey",cY){},r_=class extends X(Z,ee,"CreateResourceMetricsConfiguration",uY){},n_=class extends X(Z,ee,"DeleteAlarmMuteRule",lY){},o_=class extends X(Z,ee,"DeleteAlarms",dY){},s_=class extends X(Z,ee,"DeleteAnomalyDetector",pY){},i_=class extends X(Z,ee,"DeleteDashboards",fY){},a_=class extends X(Z,ee,"DeleteInsightRules",mY){},c_=class extends X(Z,ee,"DeleteMetricStream",gY){},u_=class extends X(Z,ee,"DeleteResourceMetricsConfiguration",hY){},l_=class extends X(Z,ee,"DescribeAlarmContributors",SY){},xm=class extends X(Z,ee,"DescribeAlarmHistory",yY){},Na=class extends X(Z,ee,"DescribeAlarms",EY){},d_=class extends X(Z,ee,"DescribeAlarmsForMetric",_Y){},Tm=class extends X(Z,ee,"DescribeAnomalyDetectors",RY){},vm=class extends X(Z,ee,"DescribeInsightRules",CY){},p_=class extends X(Z,ee,"DisableAlarmActions",bY){},f_=class extends X(Z,ee,"DisableInsightRules",AY){},m_=class extends X(Z,ee,"DisassociateDatasetKmsKey",xY){},g_=class extends X(Z,ee,"EnableAlarmActions",TY){},h_=class extends X(Z,ee,"EnableInsightRules",vY){},Dm=class extends X(Z,ee,"GetAlarmMuteRule",DY){},S_=class extends X(Z,ee,"GetDashboard",IY){},y_=class extends X(Z,ee,"GetDataset",wY){},E_=class extends X(Z,ee,"GetInsightRuleReport",PY){},Im=class extends X(Z,ee,"GetMetricData",OY){},__=class extends X(Z,ee,"GetMetricStatistics",$Y){},R_=class extends X(Z,ee,"GetMetricStream",kY){},C_=class extends X(Z,ee,"GetMetricWidgetImage",MY){},b_=class extends X(Z,ee,"GetOTelEnrichment",LY){},A_=class extends X(Z,ee,"GetResourceMetricsConfiguration",NY){},wm=class extends X(Z,ee,"ListAlarmMuteRules",FY){},Pm=class extends X(Z,ee,"ListDashboards",BY){},Om=class extends X(Z,ee,"ListManagedInsightRules",UY){},$m=class extends X(Z,ee,"ListMetrics",GY){},km=class extends X(Z,ee,"ListMetricStreams",qY){},x_=class extends X(Z,ee,"ListTagsForResource",HY){},T_=class extends X(Z,ee,"PutAlarmMuteRule",jY){},v_=class extends X(Z,ee,"PutAnomalyDetector",zY){},D_=class extends X(Z,ee,"PutCompositeAlarm",VY){},I_=class extends X(Z,ee,"PutDashboard",WY){},w_=class extends X(Z,ee,"PutInsightRule",KY){},P_=class extends X(Z,ee,"PutLogAlarm",QY){},O_=class extends X(Z,ee,"PutManagedInsightRules",YY){},$_=class extends X(Z,ee,"PutMetricAlarm",JY){},k_=class extends X(Z,HFe,"PutMetricData",XY){},M_=class extends X(Z,ee,"PutMetricStream",ZY){},L_=class extends X(Z,ee,"SetAlarmState",eJ){},N_=class extends X(Z,ee,"StartMetricStreams",tJ){},F_=class extends X(Z,ee,"StartOTelEnrichment",rJ){},B_=class extends X(Z,ee,"StopMetricStreams",nJ){},U_=class extends X(Z,ee,"StopOTelEnrichment",oJ){},G_=class extends X(Z,ee,"TagResource",sJ){},q_=class extends X(Z,ee,"UntagResource",iJ){},H_=class extends X(Z,ee,"UpdateOTelEnrichment",aJ){},j_=class extends X(Z,ee,"UpdateResourceMetricsConfiguration",cJ){},uJ=Js(bn,xm,"NextToken","NextToken","MaxRecords"),lJ=Js(bn,Na,"NextToken","NextToken","MaxRecords"),dJ=Js(bn,Tm,"NextToken","NextToken","MaxResults"),pJ=Js(bn,vm,"NextToken","NextToken","MaxResults"),fJ=Js(bn,Im,"NextToken","NextToken","MaxDatapoints"),mJ=Js(bn,wm,"NextToken","NextToken","MaxRecords"),gJ=Js(bn,Pm,"NextToken","NextToken",""),hJ=Js(bn,Om,"NextToken","NextToken","MaxResults"),SJ=Js(bn,$m,"NextToken","NextToken",""),yJ=Js(bn,km,"NextToken","NextToken","MaxResults"),EJ=async(t,e)=>{let r;try{let n=await t.send(new Na(e));r=n;try{if([].concat(...n.MetricAlarms).length>0==!0)return{state:Oi.SUCCESS,reason:r}}catch{}}catch(n){r=n}return{state:Oi.RETRY,reason:r}},jFe=async(t,e)=>Fa({...{minDelay:5,maxDelay:120},...t},e,EJ),_J=async(t,e)=>{let n=await Fa({...{minDelay:5,maxDelay:120},...t},e,EJ);return V_(n)},RJ=async(t,e)=>{let r;try{return r=await t.send(new Dm(e)),{state:Oi.SUCCESS,reason:r}}catch(n){if(r=n,n.name==="ResourceNotFoundException")return{state:Oi.RETRY,reason:r}}return{state:Oi.RETRY,reason:r}},zFe=async(t,e)=>Fa({...{minDelay:5,maxDelay:120},...t},e,RJ),CJ=async(t,e)=>{let n=await Fa({...{minDelay:5,maxDelay:120},...t},e,RJ);return V_(n)},bJ=async(t,e)=>{let r;try{let n=await t.send(new Na(e));r=n;try{if([].concat(...n.CompositeAlarms).length>0==!0)return{state:Oi.SUCCESS,reason:r}}catch{}}catch(n){r=n}return{state:Oi.RETRY,reason:r}},VFe=async(t,e)=>Fa({...{minDelay:5,maxDelay:120},...t},e,bJ),AJ=async(t,e)=>{let n=await Fa({...{minDelay:5,maxDelay:120},...t},e,bJ);return V_(n)},xJ=async(t,e)=>{let r;try{let n=await t.send(new Na(e));r=n;try{if([].concat(...n.LogAlarms).length>0==!0)return{state:Oi.SUCCESS,reason:r}}catch{}}catch(n){r=n}return{state:Oi.RETRY,reason:r}},WFe=async(t,e)=>Fa({...{minDelay:5,maxDelay:120},...t},e,xJ),TJ=async(t,e)=>{let n=await Fa({...{minDelay:5,maxDelay:120},...t},e,xJ);return V_(n)},KFe={AssociateDatasetKmsKeyCommand:t_,CreateResourceMetricsConfigurationCommand:r_,DeleteAlarmMuteRuleCommand:n_,DeleteAlarmsCommand:o_,DeleteAnomalyDetectorCommand:s_,DeleteDashboardsCommand:i_,DeleteInsightRulesCommand:a_,DeleteMetricStreamCommand:c_,DeleteResourceMetricsConfigurationCommand:u_,DescribeAlarmContributorsCommand:l_,DescribeAlarmHistoryCommand:xm,DescribeAlarmsCommand:Na,DescribeAlarmsForMetricCommand:d_,DescribeAnomalyDetectorsCommand:Tm,DescribeInsightRulesCommand:vm,DisableAlarmActionsCommand:p_,DisableInsightRulesCommand:f_,DisassociateDatasetKmsKeyCommand:m_,EnableAlarmActionsCommand:g_,EnableInsightRulesCommand:h_,GetAlarmMuteRuleCommand:Dm,GetDashboardCommand:S_,GetDatasetCommand:y_,GetInsightRuleReportCommand:E_,GetMetricDataCommand:Im,GetMetricStatisticsCommand:__,GetMetricStreamCommand:R_,GetMetricWidgetImageCommand:C_,GetOTelEnrichmentCommand:b_,GetResourceMetricsConfigurationCommand:A_,ListAlarmMuteRulesCommand:wm,ListDashboardsCommand:Pm,ListManagedInsightRulesCommand:Om,ListMetricsCommand:$m,ListMetricStreamsCommand:km,ListTagsForResourceCommand:x_,PutAlarmMuteRuleCommand:T_,PutAnomalyDetectorCommand:v_,PutCompositeAlarmCommand:D_,PutDashboardCommand:I_,PutInsightRuleCommand:w_,PutLogAlarmCommand:P_,PutManagedInsightRulesCommand:O_,PutMetricAlarmCommand:$_,PutMetricDataCommand:k_,PutMetricStreamCommand:M_,SetAlarmStateCommand:L_,StartMetricStreamsCommand:N_,StartOTelEnrichmentCommand:F_,StopMetricStreamsCommand:B_,StopOTelEnrichmentCommand:U_,TagResourceCommand:G_,UntagResourceCommand:q_,UpdateOTelEnrichmentCommand:H_,UpdateResourceMetricsConfigurationCommand:j_},QFe={paginateDescribeAlarmHistory:uJ,paginateDescribeAlarms:lJ,paginateDescribeAnomalyDetectors:dJ,paginateDescribeInsightRules:pJ,paginateGetMetricData:fJ,paginateListAlarmMuteRules:mJ,paginateListDashboards:gJ,paginateListManagedInsightRules:hJ,paginateListMetrics:SJ,paginateListMetricStreams:yJ},YFe={waitUntilAlarmExists:_J,waitUntilCompositeAlarmExists:AJ,waitUntilLogAlarmExists:TJ,waitUntilAlarmMuteRuleExists:CJ},z_=class extends bn{};P$e(KFe,z_,{paginators:QFe,waiters:YFe});var JFe={Alarm:"Alarm",ExtensionPeriod:"ExtensionPeriod",WaitPeriod:"WaitPeriod"},XFe={CompositeAlarm:"CompositeAlarm",LogAlarm:"LogAlarm",MetricAlarm:"MetricAlarm"},ZFe={Action:"Action",AlarmContributorAction:"AlarmContributorAction",AlarmContributorStateUpdate:"AlarmContributorStateUpdate",ConfigurationUpdate:"ConfigurationUpdate",StateUpdate:"StateUpdate"},eBe={ACTIVE:"ACTIVE",EXPIRED:"EXPIRED",SCHEDULED:"SCHEDULED"},tBe={Bits:"Bits",Bits_Second:"Bits/Second",Bytes:"Bytes",Bytes_Second:"Bytes/Second",Count:"Count",Count_Second:"Count/Second",Gigabits:"Gigabits",Gigabits_Second:"Gigabits/Second",Gigabytes:"Gigabytes",Gigabytes_Second:"Gigabytes/Second",Kilobits:"Kilobits",Kilobits_Second:"Kilobits/Second",Kilobytes:"Kilobytes",Kilobytes_Second:"Kilobytes/Second",Megabits:"Megabits",Megabits_Second:"Megabits/Second",Megabytes:"Megabytes",Megabytes_Second:"Megabytes/Second",Microseconds:"Microseconds",Milliseconds:"Milliseconds",None:"None",Percent:"Percent",Seconds:"Seconds",Terabits:"Terabits",Terabits_Second:"Terabits/Second",Terabytes:"Terabytes",Terabytes_Second:"Terabytes/Second"},rBe={PENDING_TRAINING:"PENDING_TRAINING",TRAINED:"TRAINED",TRAINED_INSUFFICIENT_DATA:"TRAINED_INSUFFICIENT_DATA"},nBe={METRIC_MATH:"METRIC_MATH",SINGLE_METRIC:"SINGLE_METRIC"},oBe={GreaterThanOrEqualToThreshold:"GreaterThanOrEqualToThreshold",GreaterThanThreshold:"GreaterThanThreshold",GreaterThanUpperThreshold:"GreaterThanUpperThreshold",LessThanLowerOrGreaterThanUpperThreshold:"LessThanLowerOrGreaterThanUpperThreshold",LessThanLowerThreshold:"LessThanLowerThreshold",LessThanOrEqualToThreshold:"LessThanOrEqualToThreshold",LessThanThreshold:"LessThanThreshold"},sBe={ALARM:"ALARM",INSUFFICIENT_DATA:"INSUFFICIENT_DATA",OK:"OK"},iBe={TIMESTAMP_ASCENDING:"TimestampAscending",TIMESTAMP_DESCENDING:"TimestampDescending"},aBe={EVALUATION_ERROR:"EVALUATION_ERROR",EVALUATION_FAILURE:"EVALUATION_FAILURE",PARTIAL_DATA:"PARTIAL_DATA"},cBe={Average:"Average",Maximum:"Maximum",Minimum:"Minimum",SampleCount:"SampleCount",Sum:"Sum"},uBe={COMPLETE:"Complete",FORBIDDEN:"Forbidden",INTERNAL_ERROR:"InternalError",PARTIAL_DATA:"PartialData"},lBe={JSON:"json",OPEN_TELEMETRY_0_7:"opentelemetry0.7",OPEN_TELEMETRY_1_0:"opentelemetry1.0"},dBe={RUNNING:"Running",STOPPED:"Stopped"},pBe={PT3H:"PT3H"};R.ActionsSuppressedBy=JFe;R.AlarmContributor$=b9;R.AlarmHistoryItem$=A9;R.AlarmMuteRuleStatus=eBe;R.AlarmMuteRuleSummary$=x9;R.AlarmPromQLCriteria$=T9;R.AlarmType=XFe;R.AnomalyDetector$=v9;R.AnomalyDetectorConfiguration$=k1;R.AnomalyDetectorStateValue=rBe;R.AnomalyDetectorType=nBe;R.AssociateDatasetKmsKey$=cY;R.AssociateDatasetKmsKeyCommand=t_;R.AssociateDatasetKmsKeyInput$=D9;R.AssociateDatasetKmsKeyOutput$=I9;R.CloudWatch=z_;R.CloudWatchClient=bn;R.CloudWatchServiceException=ut;R.CloudWatchServiceException$=r9;R.ComparisonOperator=oBe;R.CompositeAlarm$=w9;R.ConcurrentModificationException=UE;R.ConcurrentModificationException$=n9;R.ConflictException=ME;R.ConflictException$=o9;R.CreateResourceMetricsConfiguration$=uY;R.CreateResourceMetricsConfigurationCommand=r_;R.CreateResourceMetricsConfigurationInput$=P9;R.CreateResourceMetricsConfigurationOutput$=O9;R.DashboardEntry$=$9;R.DashboardInvalidInputError=GE;R.DashboardInvalidInputError$=s9;R.DashboardNotFoundError=qE;R.DashboardNotFoundError$=i9;R.DashboardValidationMessage$=k9;R.Datapoint$=M9;R.DeleteAlarmMuteRule$=lY;R.DeleteAlarmMuteRuleCommand=n_;R.DeleteAlarmMuteRuleInput$=L9;R.DeleteAlarms$=dY;R.DeleteAlarmsCommand=o_;R.DeleteAlarmsInput$=N9;R.DeleteAnomalyDetector$=pY;R.DeleteAnomalyDetectorCommand=s_;R.DeleteAnomalyDetectorInput$=F9;R.DeleteAnomalyDetectorOutput$=B9;R.DeleteDashboards$=fY;R.DeleteDashboardsCommand=i_;R.DeleteDashboardsInput$=U9;R.DeleteDashboardsOutput$=G9;R.DeleteInsightRules$=mY;R.DeleteInsightRulesCommand=a_;R.DeleteInsightRulesInput$=q9;R.DeleteInsightRulesOutput$=H9;R.DeleteMetricStream$=gY;R.DeleteMetricStreamCommand=c_;R.DeleteMetricStreamInput$=j9;R.DeleteMetricStreamOutput$=z9;R.DeleteResourceMetricsConfiguration$=hY;R.DeleteResourceMetricsConfigurationCommand=u_;R.DeleteResourceMetricsConfigurationInput$=V9;R.DeleteResourceMetricsConfigurationOutput$=W9;R.DescribeAlarmContributors$=SY;R.DescribeAlarmContributorsCommand=l_;R.DescribeAlarmContributorsInput$=K9;R.DescribeAlarmContributorsOutput$=Q9;R.DescribeAlarmHistory$=yY;R.DescribeAlarmHistoryCommand=xm;R.DescribeAlarmHistoryInput$=Y9;R.DescribeAlarmHistoryOutput$=J9;R.DescribeAlarms$=EY;R.DescribeAlarmsCommand=Na;R.DescribeAlarmsForMetric$=_Y;R.DescribeAlarmsForMetricCommand=d_;R.DescribeAlarmsForMetricInput$=X9;R.DescribeAlarmsForMetricOutput$=Z9;R.DescribeAlarmsInput$=eQ;R.DescribeAlarmsOutput$=tQ;R.DescribeAnomalyDetectors$=RY;R.DescribeAnomalyDetectorsCommand=Tm;R.DescribeAnomalyDetectorsInput$=rQ;R.DescribeAnomalyDetectorsOutput$=nQ;R.DescribeInsightRules$=CY;R.DescribeInsightRulesCommand=vm;R.DescribeInsightRulesInput$=oQ;R.DescribeInsightRulesOutput$=sQ;R.Dimension$=iQ;R.DimensionFilter$=aQ;R.DisableAlarmActions$=bY;R.DisableAlarmActionsCommand=p_;R.DisableAlarmActionsInput$=cQ;R.DisableInsightRules$=AY;R.DisableInsightRulesCommand=f_;R.DisableInsightRulesInput$=uQ;R.DisableInsightRulesOutput$=lQ;R.DisassociateDatasetKmsKey$=xY;R.DisassociateDatasetKmsKeyCommand=m_;R.DisassociateDatasetKmsKeyInput$=dQ;R.DisassociateDatasetKmsKeyOutput$=pQ;R.EnableAlarmActions$=TY;R.EnableAlarmActionsCommand=g_;R.EnableAlarmActionsInput$=fQ;R.EnableInsightRules$=vY;R.EnableInsightRulesCommand=h_;R.EnableInsightRulesInput$=mQ;R.EnableInsightRulesOutput$=gQ;R.Entity$=hQ;R.EntityMetricData$=SQ;R.EvaluationCriteria$=G1;R.EvaluationState=aBe;R.EvaluationWindow$=q1;R.GetAlarmMuteRule$=DY;R.GetAlarmMuteRuleCommand=Dm;R.GetAlarmMuteRuleInput$=yQ;R.GetAlarmMuteRuleOutput$=EQ;R.GetDashboard$=IY;R.GetDashboardCommand=S_;R.GetDashboardInput$=_Q;R.GetDashboardOutput$=RQ;R.GetDataset$=wY;R.GetDatasetCommand=y_;R.GetDatasetInput$=CQ;R.GetDatasetOutput$=bQ;R.GetInsightRuleReport$=PY;R.GetInsightRuleReportCommand=E_;R.GetInsightRuleReportInput$=AQ;R.GetInsightRuleReportOutput$=xQ;R.GetMetricData$=OY;R.GetMetricDataCommand=Im;R.GetMetricDataInput$=TQ;R.GetMetricDataOutput$=vQ;R.GetMetricStatistics$=$Y;R.GetMetricStatisticsCommand=__;R.GetMetricStatisticsInput$=DQ;R.GetMetricStatisticsOutput$=IQ;R.GetMetricStream$=kY;R.GetMetricStreamCommand=R_;R.GetMetricStreamInput$=wQ;R.GetMetricStreamOutput$=PQ;R.GetMetricWidgetImage$=MY;R.GetMetricWidgetImageCommand=C_;R.GetMetricWidgetImageInput$=OQ;R.GetMetricWidgetImageOutput$=$Q;R.GetOTelEnrichment$=LY;R.GetOTelEnrichmentCommand=b_;R.GetOTelEnrichmentInput$=kQ;R.GetOTelEnrichmentOutput$=MQ;R.GetResourceMetricsConfiguration$=NY;R.GetResourceMetricsConfigurationCommand=A_;R.GetResourceMetricsConfigurationInput$=LQ;R.GetResourceMetricsConfigurationOutput$=NQ;R.HistoryItemType=ZFe;R.InsightRule$=FQ;R.InsightRuleContributor$=BQ;R.InsightRuleContributorDatapoint$=UQ;R.InsightRuleMetricDatapoint$=GQ;R.InternalServiceFault=zE;R.InternalServiceFault$=a9;R.InvalidFormatFault=XE;R.InvalidFormatFault$=c9;R.InvalidNextToken=QE;R.InvalidNextToken$=u9;R.InvalidParameterCombinationException=VE;R.InvalidParameterCombinationException$=l9;R.InvalidParameterValueException=WE;R.InvalidParameterValueException$=d9;R.KmsAccessDeniedException=LE;R.KmsAccessDeniedException$=p9;R.KmsKeyDisabledException=NE;R.KmsKeyDisabledException$=f9;R.KmsKeyNotFoundException=FE;R.KmsKeyNotFoundException$=m9;R.LabelOptions$=qQ;R.LimitExceededException=YE;R.LimitExceededException$=g9;R.LimitExceededFault=JE;R.LimitExceededFault$=h9;R.ListAlarmMuteRules$=FY;R.ListAlarmMuteRulesCommand=wm;R.ListAlarmMuteRulesInput$=HQ;R.ListAlarmMuteRulesOutput$=jQ;R.ListDashboards$=BY;R.ListDashboardsCommand=Pm;R.ListDashboardsInput$=zQ;R.ListDashboardsOutput$=VQ;R.ListManagedInsightRules$=UY;R.ListManagedInsightRulesCommand=Om;R.ListManagedInsightRulesInput$=WQ;R.ListManagedInsightRulesOutput$=KQ;R.ListMetricStreams$=qY;R.ListMetricStreamsCommand=km;R.ListMetricStreamsInput$=JQ;R.ListMetricStreamsOutput$=XQ;R.ListMetrics$=GY;R.ListMetricsCommand=$m;R.ListMetricsInput$=QQ;R.ListMetricsOutput$=YQ;R.ListTagsForResource$=HY;R.ListTagsForResourceCommand=x_;R.ListTagsForResourceInput$=ZQ;R.ListTagsForResourceOutput$=e7;R.LogAlarm$=t7;R.ManagedRule$=r7;R.ManagedRuleDescription$=n7;R.ManagedRuleState$=o7;R.MessageData$=s7;R.Metric$=M1;R.MetricAlarm$=i7;R.MetricCharacteristics$=L1;R.MetricDataQuery$=a7;R.MetricDataResult$=c7;R.MetricDatum$=u7;R.MetricMathAnomalyDetector$=dR;R.MetricStat$=l7;R.MetricStreamEntry$=d7;R.MetricStreamFilter$=p7;R.MetricStreamOutputFormat=lBe;R.MetricStreamStatisticsConfiguration$=f7;R.MetricStreamStatisticsMetric$=m7;R.MissingRequiredParameterException=KE;R.MissingRequiredParameterException$=S9;R.MuteTargets$=N1;R.OTelEnrichmentMetricSelector$=g7;R.OTelEnrichmentStatus=dBe;R.PartialFailure$=h7;R.PutAlarmMuteRule$=jY;R.PutAlarmMuteRuleCommand=T_;R.PutAlarmMuteRuleInput$=S7;R.PutAnomalyDetector$=zY;R.PutAnomalyDetectorCommand=v_;R.PutAnomalyDetectorInput$=y7;R.PutAnomalyDetectorOutput$=E7;R.PutCompositeAlarm$=VY;R.PutCompositeAlarmCommand=D_;R.PutCompositeAlarmInput$=_7;R.PutDashboard$=WY;R.PutDashboardCommand=I_;R.PutDashboardInput$=R7;R.PutDashboardOutput$=C7;R.PutInsightRule$=KY;R.PutInsightRuleCommand=w_;R.PutInsightRuleInput$=b7;R.PutInsightRuleOutput$=A7;R.PutLogAlarm$=QY;R.PutLogAlarmCommand=P_;R.PutLogAlarmInput$=x7;R.PutManagedInsightRules$=YY;R.PutManagedInsightRulesCommand=O_;R.PutManagedInsightRulesInput$=T7;R.PutManagedInsightRulesOutput$=v7;R.PutMetricAlarm$=JY;R.PutMetricAlarmCommand=$_;R.PutMetricAlarmInput$=D7;R.PutMetricData$=XY;R.PutMetricDataCommand=k_;R.PutMetricDataInput$=I7;R.PutMetricStream$=ZY;R.PutMetricStreamCommand=M_;R.PutMetricStreamInput$=w7;R.PutMetricStreamOutput$=P7;R.Range$=O7;R.RecentlyActive=pBe;R.ResourceConflict=HE;R.ResourceConflict$=y9;R.ResourceMetricSelection$=$7;R.ResourceMetricsConfiguration$=pR;R.ResourceNotFound=jE;R.ResourceNotFound$=E9;R.ResourceNotFoundException=BE;R.ResourceNotFoundException$=_9;R.Rule$=F1;R.ScanBy=iBe;R.Schedule$=k7;R.ScheduleConfiguration$=M7;R.ScheduledQueryConfiguration$=B1;R.SetAlarmState$=eJ;R.SetAlarmStateCommand=L_;R.SetAlarmStateInput$=L7;R.SingleMetricAnomalyDetector$=fR;R.SlidingWindow$=N7;R.StandardUnit=tBe;R.StartMetricStreams$=tJ;R.StartMetricStreamsCommand=N_;R.StartMetricStreamsInput$=F7;R.StartMetricStreamsOutput$=B7;R.StartOTelEnrichment$=rJ;R.StartOTelEnrichmentCommand=F_;R.StartOTelEnrichmentInput$=U7;R.StartOTelEnrichmentOutput$=G7;R.StateValue=sBe;R.Statistic=cBe;R.StatisticSet$=q7;R.StatusCode=uBe;R.StopMetricStreams$=nJ;R.StopMetricStreamsCommand=B_;R.StopMetricStreamsInput$=H7;R.StopMetricStreamsOutput$=j7;R.StopOTelEnrichment$=oJ;R.StopOTelEnrichmentCommand=U_;R.StopOTelEnrichmentInput$=z7;R.StopOTelEnrichmentOutput$=V7;R.Tag$=W7;R.TagResource$=sJ;R.TagResourceCommand=G_;R.TagResourceInput$=K7;R.TagResourceOutput$=Q7;R.UntagResource$=iJ;R.UntagResourceCommand=q_;R.UntagResourceInput$=Y7;R.UntagResourceOutput$=J7;R.UpdateOTelEnrichment$=aJ;R.UpdateOTelEnrichmentCommand=H_;R.UpdateOTelEnrichmentInput$=X7;R.UpdateOTelEnrichmentOutput$=Z7;R.UpdateResourceMetricsConfiguration$=cJ;R.UpdateResourceMetricsConfigurationCommand=j_;R.UpdateResourceMetricsConfigurationInput$=eY;R.UpdateResourceMetricsConfigurationOutput$=tY;R.ValidationException=ZE;R.ValidationException$=R9;R.WallClockWindow$=rY;R.WarmUpConfiguration$=Hm;R.errorTypeRegistries=C9;R.paginateDescribeAlarmHistory=uJ;R.paginateDescribeAlarms=lJ;R.paginateDescribeAnomalyDetectors=dJ;R.paginateDescribeInsightRules=pJ;R.paginateGetMetricData=fJ;R.paginateListAlarmMuteRules=mJ;R.paginateListDashboards=gJ;R.paginateListManagedInsightRules=hJ;R.paginateListMetricStreams=yJ;R.paginateListMetrics=SJ;R.waitForAlarmExists=jFe;R.waitForAlarmMuteRuleExists=zFe;R.waitForCompositeAlarmExists=VFe;R.waitForLogAlarmExists=WFe;R.waitUntilAlarmExists=_J;R.waitUntilAlarmMuteRuleExists=CJ;R.waitUntilCompositeAlarmExists=AJ;R.waitUntilLogAlarmExists=TJ});var An,ld,ki,dd,Ae,hR,eu,oo=g(()=>{An={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},ld=An.WHEN_SUPPORTED,ki={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},dd=An.WHEN_SUPPORTED;(function(t){t.MD5="MD5",t.CRC32="CRC32",t.CRC32C="CRC32C",t.CRC64NVME="CRC64NVME",t.SHA1="SHA1",t.SHA256="SHA256"})(Ae||(Ae={}));(function(t){t.HEADER="header",t.TRAILER="trailer"})(hR||(hR={}));eu=Ae.CRC32});var Ba,pd,H1=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(Ba||(Ba={}));pd=(t,e,r,n)=>{if(!(e in t))return;let o=t[e].toUpperCase();if(!Object.values(r).includes(o))throw new TypeError(`Cannot load ${n} '${e}'. Expected one of ${Object.values(r)}, got '${t[e]}'.`);return o}});var j1,z1,OJ,$J=g(()=>{oo();H1();j1="AWS_REQUEST_CHECKSUM_CALCULATION",z1="request_checksum_calculation",OJ={environmentVariableSelector:t=>pd(t,j1,An,Ba.ENV),configFileSelector:t=>pd(t,z1,An,Ba.CONFIG),default:ld}});var V1,W1,kJ,MJ=g(()=>{oo();H1();V1="AWS_RESPONSE_CHECKSUM_VALIDATION",W1="response_checksum_validation",kJ={environmentVariableSelector:t=>pd(t,V1,ki,Ba.ENV),configFileSelector:t=>pd(t,W1,ki,Ba.CONFIG),default:dd}});var LJ,NJ=g(()=>{oo();LJ=(t,{requestChecksumRequired:e,requestAlgorithmMember:r,requestChecksumCalculation:n})=>r?t[r]?t[r]:void 0:n===An.WHEN_SUPPORTED||e?eu:void 0});var tu,SR=g(()=>{oo();tu=t=>t===Ae.MD5?"content-md5":`x-amz-checksum-${t.toLowerCase()}`});var FJ,BJ=g(()=>{FJ=(t,e)=>{let r=t.toLowerCase();for(let n of Object.keys(e))if(r===n.toLowerCase())return!0;return!1}});var UJ,GJ=g(()=>{UJ=(t,e)=>{let r=t.toLowerCase();for(let n of Object.keys(e))if(n.toLowerCase().startsWith(r))return!0;return!1}});var yR,K1=g(()=>{j();yR=t=>t!==void 0&&typeof t!="string"&&!ArrayBuffer.isView(t)&&!$u(t)});var qJ,ER,HJ=g(()=>{qJ=new Uint32Array(256);for(let t=0;t<256;++t){let e=t;for(let r=0;r<8;++r)e=e&1?2197175160^e>>>1:e>>>1;qJ[t]=e>>>0}ER=class{digestLength=4;crc=4294967295;update(e){let r=this.crc;for(let n=0;n<e.length;++n)r=r>>>8^qJ[(r^e[n])&255];this.crc=r}async digest(){let e=(this.crc^4294967295)>>>0,r=new Uint8Array(4);return r[0]=e>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r}reset(){this.crc=4294967295}}});var _R,jJ=g(()=>{HJ();_R=ER});var zJ,VJ=g(()=>{zJ={CrtCrc64Nvme:null}});var fBe,Q1,jm,Y1,J1,X1,Z1,eM,tM,rM,mBe,RR,WJ=g(()=>{fBe=()=>{let e=new Array(8);for(let r=0;r<8;r++){let n=new Array(512);for(let o=0;o<256;o++){let s=BigInt(o);for(let i=0;i<8*(r+1);i++)s&1n?s=s>>1n^0x9a6c9329ac4bc9b5n:s=s>>1n;n[o*2]=Number(s>>32n&0xffffffffn),n[o*2+1]=Number(s&0xffffffffn)}e[r]=new Uint32Array(n)}return e},mBe=()=>{Q1||(Q1=fBe(),[jm,Y1,J1,X1,Z1,eM,tM,rM]=Q1)},RR=class{c1=0;c2=0;constructor(){mBe(),this.reset()}update(e){let r=e.length,n=0,o=this.c1,s=this.c2;for(;n+8<=r;){let i=((s^e[n++])&255)<<1,a=((s>>>8^e[n++])&255)<<1,c=((s>>>16^e[n++])&255)<<1,u=((s>>>24^e[n++])&255)<<1,f=((o^e[n++])&255)<<1,m=((o>>>8^e[n++])&255)<<1,y=((o>>>16^e[n++])&255)<<1,_=((o>>>24^e[n++])&255)<<1;o=rM[i]^tM[a]^eM[c]^Z1[u]^X1[f]^J1[m]^Y1[y]^jm[_],s=rM[i+1]^tM[a+1]^eM[c+1]^Z1[u+1]^X1[f+1]^J1[m+1]^Y1[y+1]^jm[_+1]}for(;n<r;){let i=((s^e[n])&255)<<1;s=(s>>>8|(o&255)<<24)>>>0,o=o>>>8^jm[i],s^=jm[i+1],++n}this.c1=o,this.c2=s}async digest(){let e=this.c1^4294967295,r=this.c2^4294967295;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,e&255,r>>>24,r>>>16&255,r>>>8&255,r&255])}reset(){this.c1=4294967295,this.c2=4294967295}}});var zm,KJ=g(()=>{VJ();WJ();zm=class{impl;constructor(){let e=zJ.CrtCrc64Nvme;this.impl=e?new e:new RR}update(e){this.impl.update(e)}async digest(){return this.impl.digest()}reset(){this.impl.reset()}}});var QJ=g(()=>{jJ();KJ();$n()});var YJ,nM,oM=g(()=>{oo();YJ=[Ae.CRC32,Ae.CRC32C,Ae.CRC64NVME,Ae.SHA1,Ae.SHA256],nM=[Ae.SHA256,Ae.SHA1,Ae.CRC32,Ae.CRC32C,Ae.CRC64NVME]});var CR,sM=g(()=>{QJ();oo();oM();CR=(t,e)=>{let{checksumAlgorithms:r={}}=e;switch(t){case Ae.MD5:return r?.MD5??e.md5;case Ae.CRC32:return r?.CRC32??Do;case Ae.CRC32C:return r?.CRC32C??_R;case Ae.CRC64NVME:return r?.CRC64NVME??zm;case Ae.SHA1:return r?.SHA1??e.sha1;case Ae.SHA256:return r?.SHA256??e.sha256;default:if(r?.[t])return r[t];throw new Error(`The checksum algorithm "${t}" is not supported by the client. Select one of ${YJ}, or provide an implementation to the client constructor checksums field.`)}}});var bR,iM=g(()=>{j();bR=(t,e)=>{let r=new t;return r.update(bt(e||"")),r.digest()}});var AR,xR,aM=g(()=>{Ee();V();j();oo();NJ();SR();BJ();GJ();K1();sM();iM();AR={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},xR=(t,e)=>(r,n)=>async o=>{if(!re.isInstance(o.request)||UJ("x-amz-checksum-",o.request.headers))return r(o);let{request:s,input:i}=o,{body:a,headers:c}=s,{base64Encoder:u,streamHasher:f}=t,{requestChecksumRequired:m,requestAlgorithmMember:y}=e,_=await t.requestChecksumCalculation(),C=y?.name,A=y?.httpHeader;C&&!i[C]&&(_===An.WHEN_SUPPORTED||m)&&(i[C]=eu,A&&(c[A]=eu));let x=LJ(i,{requestChecksumRequired:m,requestAlgorithmMember:y?.name,requestChecksumCalculation:_}),T=a,I=c;if(x){switch(x){case Ae.CRC32:We(n,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case Ae.CRC32C:We(n,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case Ae.CRC64NVME:We(n,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case Ae.SHA1:We(n,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case Ae.SHA256:We(n,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y");break}let q=tu(x),H=CR(x,t);if(yR(a)){let{getAwsChunkedEncodingStream:me,bodyLengthChecker:et}=t;T=me(typeof t.requestStreamBufferSize=="number"&&t.requestStreamBufferSize>=8*1024?kS(a,t.requestStreamBufferSize,n.logger):a,{base64Encoder:u,bodyLengthChecker:et,checksumLocationName:q,checksumAlgorithmFn:H,streamHasher:f}),I={...c,"content-encoding":c["content-encoding"]?`${c["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":c["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":q},delete I["content-length"]}else if(!FJ(q,c)){let me=await bR(H,a);I={...c,[q]:u(me)}}}try{return await r({...o,request:{...s,headers:I,body:T}})}catch(q){if(q instanceof Error&&q.name==="InvalidChunkSizeError")try{q.message.endsWith(".")||(q.message+="."),q.message+=" Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."}catch{}throw q}}});var JJ,XJ,ZJ=g(()=>{Ee();oo();JJ={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0},XJ=(t,e)=>(r,n)=>async o=>{let s=o.input,{requestValidationModeMember:i}=e,a=await t.requestChecksumCalculation(),c=await t.responseChecksumValidation();switch(a){case An.WHEN_REQUIRED:We(n,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case An.WHEN_SUPPORTED:We(n,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z");break}switch(c){case ki.WHEN_REQUIRED:We(n,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case ki.WHEN_SUPPORTED:We(n,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b");break}return i&&!s[i]&&c===ki.WHEN_SUPPORTED&&(s[i]="ENABLED"),r(o)}});var TR,cM=g(()=>{oM();TR=(t=[])=>{let e=[],r=nM.length;for(let n of t){let o=nM.indexOf(n);o!==-1?e[o]=n:e[r++]=n}return e.filter(Boolean)}});var eX,tX=g(()=>{eX=t=>{let e=t.lastIndexOf("-");if(e!==-1){let r=t.slice(e+1);if(!r.startsWith("0")){let n=parseInt(r,10);if(!isNaN(n)&&n>=1&&n<=1e4)return!0}}return!1}});var rX,nX=g(()=>{iM();rX=async(t,{checksumAlgorithmFn:e,base64Encoder:r})=>r(await bR(e,t))});var oX,sX=g(()=>{j();oo();nX();cM();SR();K1();sM();oX=async(t,{config:e,responseAlgorithms:r,logger:n})=>{let o=TR(r),{body:s,headers:i}=t;for(let a of o){let c=tu(a),u=i[c];if(u){let f;try{f=CR(a,e)}catch(_){if(a===Ae.CRC64NVME){n?.warn(`Skipping ${Ae.CRC64NVME} checksum validation: ${_.message}`);continue}throw _}let{base64Encoder:m}=e;if(yR(s)){t.body=$S({expectedChecksum:u,checksumSourceLocation:c,checksum:new f,source:s,base64Encoder:m});return}let y=await rX(s,{checksumAlgorithmFn:f,base64Encoder:m});if(y===u)break;throw new Error(`Checksum mismatch: expected "${y}" but received "${u}" in response header "${c}".`)}}}});var iX,aX,cX=g(()=>{V();cM();SR();tX();sX();iX={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},aX=(t,e)=>(r,n)=>async o=>{if(!re.isInstance(o.request))return r(o);let s=o.input,i=await r(o),a=i.response,{requestValidationModeMember:c,responseAlgorithms:u}=e;if(c&&s[c]==="ENABLED"){let{clientName:f,commandName:m}=n,y=Object.keys(t.checksumAlgorithms??{}).filter(A=>{let x=tu(A);return a.headers[x]!==void 0}),_=TR([...u??[],...y]);if(f==="S3Client"&&m==="GetObjectCommand"&&_.every(A=>{let x=tu(A),T=a.headers[x];return!T||eX(T)}))return i;await oX(a,{config:t,responseAlgorithms:_,logger:n.logger})}return i}});var uX,lX=g(()=>{ZJ();aM();cX();uX=(t,e)=>({applyToStack:r=>{r.add(xR(t,e),AR),r.addRelativeTo(XJ(t,e),JJ),r.addRelativeTo(aX(t,e),iX)}})});var dX,pX=g(()=>{J();oo();dX=t=>{let{requestChecksumCalculation:e,responseChecksumValidation:r,requestStreamBufferSize:n}=t;return Object.assign(t,{requestChecksumCalculation:we(e??ld),responseChecksumValidation:we(r??dd),requestStreamBufferSize:Number(n??0),checksumAlgorithms:t.checksumAlgorithms??{}})}});var fX={};Ct(fX,{CONFIG_REQUEST_CHECKSUM_CALCULATION:()=>z1,CONFIG_RESPONSE_CHECKSUM_VALIDATION:()=>W1,ChecksumAlgorithm:()=>Ae,ChecksumLocation:()=>hR,DEFAULT_CHECKSUM_ALGORITHM:()=>eu,DEFAULT_REQUEST_CHECKSUM_CALCULATION:()=>ld,DEFAULT_RESPONSE_CHECKSUM_VALIDATION:()=>dd,ENV_REQUEST_CHECKSUM_CALCULATION:()=>j1,ENV_RESPONSE_CHECKSUM_VALIDATION:()=>V1,NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS:()=>OJ,NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS:()=>kJ,RequestChecksumCalculation:()=>An,ResponseChecksumValidation:()=>ki,flexibleChecksumsMiddleware:()=>xR,flexibleChecksumsMiddlewareOptions:()=>AR,getFlexibleChecksumsPlugin:()=>uX,resolveFlexibleChecksumsConfig:()=>dX});var mX=g(()=>{$J();MJ();oo();aM();lX();pX()});function uM(){return(t,e)=>async r=>{let{request:n}=r;if(re.isInstance(n)&&!(gBe in n.headers)&&!(hBe in n.headers)){let o="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof e?.logger?.warn=="function"&&!(e.logger instanceof Nr)?e.logger.warn(o):console.warn(o)}return t({...r})}}var gBe,hBe,lM,gX,hX=g(()=>{J();V();gBe="content-length",hBe="x-amz-decoded-content-length";lM={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},gX=t=>({applyToStack:e=>{e.add(uM(),lM)}})});var vR,DR,dM=g(()=>{vR=t=>(e,r)=>async n=>{let o=await t.region(),s=t.region,i=()=>{};r.__s3RegionRedirect&&(Object.defineProperty(t,"region",{writable:!1,value:async()=>r.__s3RegionRedirect}),i=()=>Object.defineProperty(t,"region",{writable:!0,value:s}));try{let a=await e(n);if(r.__s3RegionRedirect){i();let c=await t.region();if(o!==c)throw new Error("Region was not restored following S3 region redirect.")}return a}catch(a){throw i(),a}},DR={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"}});function pM(t){return(e,r)=>async n=>{try{return await e(n)}catch(o){if(t.followRegionRedirects){let s=o?.$metadata?.httpStatusCode,i=r.commandName==="HeadBucketCommand",a=o?.$response?.headers?.["x-amz-bucket-region"];if(a&&(s===301||s===400&&(o?.name==="IllegalLocationConstraintException"||i))){try{let c=a;r.logger?.debug(`Redirecting from ${await t.region()} to ${c}`),r.__s3RegionRedirect=c,We(r,"S3_REGION_REDIRECT","Ah")}catch(c){throw new Error("Region redirect failed: "+c)}return e(n)}}throw o}}}var fM,SX,yX=g(()=>{Ee();dM();fM={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},SX=t=>({applyToStack:e=>{e.add(pM(t),fM),e.addRelativeTo(vR(t),DR)}})});var fd,mM=g(()=>{fd=class t{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){let r=this.data[e];if(r)return r}set(e,r){return this.data[e]=r,r}delete(e){delete this.data[e]}async purgeExpired(){let e=Date.now();if(!(this.lastPurgeTime+t.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>e))for(let r in this.data){let n=this.data[r];if(!n.isRefreshing){let o=await n.identity;o.expiration&&o.expiration.getTime()<e&&delete this.data[r]}}}}});var Ua,gM=g(()=>{Ua=class{_identity;isRefreshing;accessed;constructor(e,r=!1,n=Date.now()){this._identity=e,this.isRefreshing=r,this.accessed=n}get identity(){return this.accessed=Date.now(),this._identity}}});var md,hM=g(()=>{mM();gM();md=class t{createSessionFn;cache;static REFRESH_WINDOW_MS=6e4;constructor(e,r=new fd){this.createSessionFn=e,this.cache=r}async getS3ExpressIdentity(e,r){let n=r.Bucket,{cache:o}=this,s=o.get(n);return s?s.identity.then(i=>(i.expiration?.getTime()??0)<Date.now()?o.set(n,new Ua(this.getIdentity(n))).identity:((i.expiration?.getTime()??0)<Date.now()+t.REFRESH_WINDOW_MS&&!s.isRefreshing&&(s.isRefreshing=!0,this.getIdentity(n).then(u=>{o.set(n,new Ua(Promise.resolve(u)))})),i)):o.set(n,new Ua(this.getIdentity(n))).identity}async getIdentity(e){await this.cache.purgeExpired().catch(o=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
|
|
59
|
+
`+o)});let r=await this.createSessionFn(e);if(!r.Credentials?.AccessKeyId||!r.Credentials?.SecretAccessKey)throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:r.Credentials.AccessKeyId,secretAccessKey:r.Credentials.SecretAccessKey,sessionToken:r.Credentials.SessionToken,expiration:r.Credentials.Expiration?new Date(r.Credentials.Expiration):void 0}}}});var EX,_X=g(()=>{hM();EX=(t,{session:e})=>{let[r,n]=e,{forcePathStyle:o,useAccelerateEndpoint:s,disableMultiregionAccessPoints:i,followRegionRedirects:a,s3ExpressIdentityProvider:c,bucketEndpoint:u,expectContinueHeader:f}=t;return Object.assign(t,{forcePathStyle:o??!1,useAccelerateEndpoint:s??!1,disableMultiregionAccessPoints:i??!1,followRegionRedirects:a??!1,s3ExpressIdentityProvider:c??new md(async m=>r().send(new n({Bucket:m}))),bucketEndpoint:u??!1,expectContinueHeader:f??2097152})}});var SM,yM,RX,CX=g(()=>{V();j();SM=t=>(e,r)=>async n=>{let o=await e(n),{response:s}=o;if(ft.isInstance(s)&&s.headers.expires){s.headers.expiresstring=s.headers.expires;try{hn(s.headers.expires)}catch(i){r.logger?.warn(`AWS SDK Warning for ${r.clientName}::${r.commandName} response parsing (${s.headers.expires}): ${i}`),delete s.headers.expires}}return o},yM={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},RX=t=>({applyToStack:e=>{e.addRelativeTo(SM(t),yM)}})});var bX,IR,AX=g(()=>{bX=De(rm()),IR=class extends bX.SignatureV4SignWithCredentials{}});var xX,TX,vX,SBe,DX,yBe,EBe,IX,EM=g(()=>{ye();xX="Directory",TX="S3Express",vX="sigv4-s3express",SBe="X-Amz-S3session-Token",DX=SBe.toLowerCase(),yBe="AWS_S3_DISABLE_EXPRESS_SESSION_AUTH",EBe="s3_disable_express_session_auth",IX={environmentVariableSelector:t=>Ve(t,yBe,Be.ENV),configFileSelector:t=>Ve(t,EBe,Be.CONFIG),default:!1}});var _M,RM,wX,PX=g(()=>{Ee();V();EM();_M=t=>(e,r)=>async n=>{if(r.endpointV2){let o=r.endpointV2,s=o.properties?.authSchemes?.[0]?.name===vX;if((o.properties?.backend===TX||o.properties?.bucketType===xX)&&(We(r,"S3_EXPRESS_BUCKET","J"),r.isS3ExpressBucket=!0),s){let a=n.input.Bucket;if(a){let c=await t.s3ExpressIdentityProvider.getS3ExpressIdentity(await t.credentials(),{Bucket:a});r.s3ExpressIdentity=c,re.isInstance(n.request)&&c.sessionToken&&(n.request.headers[DX]=c.sessionToken)}}}return e(n)},RM={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},wX=t=>({applyToStack:e=>{e.add(_M(t),RM)}})});var OX,$X=g(()=>{OX=async(t,e,r,n)=>{let o=await n.signWithCredentials(r,t,{});if(o.headers["X-Amz-Security-Token"]||o.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return o}});var _Be,RBe,kX,CM,MX,LX=g(()=>{jt();J();V();$X();_Be=t=>e=>{throw e},RBe=(t,e)=>{},kX=Oc,CM=t=>(e,r)=>async n=>{if(!re.isInstance(n.request))return e(n);let s=Le(r).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:i={}},identity:a,signer:c}=s,u;r.s3ExpressIdentity?u=await OX(r.s3ExpressIdentity,i,n.request,await t.signer()):u=await c.sign(n.request,a,i);let f=await e({...n,request:u}).catch((c.errorHandler||_Be)(i));return(c.successHandler||RBe)(f.response,i),f},MX=t=>({applyToStack:e=>{e.addRelativeTo(CM(t),Oc)}})});function FX(t){return NX.Readable.from(Buffer.from(t))}var NX,BX=g(()=>{NX=require("node:stream")});var CBe,bM,bBe,AM,UX,GX=g(()=>{V();BX();CBe={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},bM=t=>(e,r)=>async n=>{let o=await e(n),{response:s}=o;if(!ft.isInstance(s))return o;let{statusCode:i,body:a}=s;if(i<200||i>=300)return o;let c=await bBe(a,t);if(s.body=FX(c),c.length===0&&CBe[r.commandName]){let f=new Error("S3 aborted request");throw f.$metadata={httpStatusCode:503},f.name="InternalError",f}let u=t.utf8Encoder(c.subarray(c.length-16));return u&&u.endsWith("</Error>")&&(s.statusCode=503),o},bBe=(t=new Uint8Array,e)=>t instanceof Uint8Array?Promise.resolve(t):e.streamCollector(t)||Promise.resolve(new Uint8Array),AM={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},UX=t=>({applyToStack:e=>{e.addRelativeTo(bM(t),AM)}})});var Vm,xM,qX=g(()=>{Vm=t=>typeof t=="string"&&t.indexOf("arn:")===0&&t.split(":").length>=6,xM=t=>{let e=t.split(":");if(e.length<6||e[0]!=="arn")throw new Error("Malformed ARN");let[,r,n,o,s,...i]=e;return{partition:r,service:n,region:o,accountId:s,resource:i.join(":")}}});var TM=g(()=>{qX()});function HX(t){return(e,r)=>async n=>{if(t.bucketEndpoint){let o=r.endpointV2;if(o){let s=n.input.Bucket;if(typeof s=="string")try{let i=new URL(s);r.endpointV2={...o,url:i}}catch(i){let a=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${s} could not be parsed as URL.`;throw r.logger?.constructor?.name==="NoOpLogger"?console.warn(a):r.logger?.warn?.(a),i}}}return e(n)}}var jX,zX=g(()=>{jX={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"}});function vM({bucketEndpoint:t}){return e=>async r=>{let{input:{Bucket:n}}=r;if(!t&&typeof n=="string"&&!Vm(n)&&n.indexOf("/")>=0){let o=new Error(`Bucket name shouldn't contain '/', received '${n}'`);throw o.name="InvalidBucketName",o}return e({...r})}}var DM,VX,WX=g(()=>{TM();zX();DM={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},VX=t=>({applyToStack:e=>{e.add(vM(t),DM),e.addRelativeTo(HX(t),jX)}})});var wR,KX=g(()=>{Di();ae();wR=class extends Ql{async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n),s=B.of(e.input),i=s.getSchema(),a=0,c=i[6]??0;if(r&&typeof r=="object")for(let[u,f]of s.structIterator()){if(++a>c)break;if(u==="Bucket"){if(!r.Bucket&&f.getMergedTraits().httpLabel)throw new Error("No value provided for input HTTP label: Bucket.");break}}return o}}});var IM,wM,QX,YX=g(()=>{ye();IM="AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS",wM="s3_disable_multiregion_access_points",QX={environmentVariableSelector:t=>Ve(t,IM,Be.ENV),configFileSelector:t=>Ve(t,wM,Be.CONFIG),default:!1}});var PM,OM,JX,XX=g(()=>{ye();PM="AWS_S3_USE_ARN_REGION",OM="s3_use_arn_region",JX={environmentVariableSelector:t=>Ve(t,PM,Be.ENV),configFileSelector:t=>Ve(t,OM,Be.CONFIG),default:void 0}});var ABe,xBe,TBe,kM,vBe,ZX,$M,eZ,tZ,rZ,nZ,PR,oZ,sZ,iZ,OR,$R,aZ,kR,MR,Ga,cZ,LR,uZ,NR,lZ,MM=g(()=>{ABe=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,xBe=/(\d+\.){3}\d+/,TBe=/\.\./,kM=/\./,vBe=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./,ZX=/^s3(-external-1)?\.amazonaws\.com$/,$M="amazonaws.com",eZ=t=>typeof t.bucketName=="string",tZ=t=>ABe.test(t)&&!xBe.test(t)&&!TBe.test(t),rZ=t=>{let e=t.match(vBe);return[e[4],t.replace(new RegExp(`^${e[0]}`),"")]},nZ=t=>ZX.test(t)?["us-east-1",$M]:rZ(t),PR=t=>ZX.test(t)?[t.replace(`.${$M}`,""),$M]:rZ(t),oZ=t=>{if(t.pathStyleEndpoint)throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN");if(t.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported when bucket is an ARN");if(!t.tlsCompatible)throw new Error("HTTPS is required when bucket is an ARN")},sZ=t=>{if(t!=="s3"&&t!=="s3-outposts"&&t!=="s3-object-lambda")throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component")},iZ=t=>{if(t!=="s3")throw new Error("Expect 's3' in Accesspoint ARN service component")},OR=t=>{if(t!=="s3-outposts")throw new Error("Expect 's3-posts' in Outpost ARN service component")},$R=(t,e)=>{if(t!==e.clientPartition)throw new Error(`Partition in ARN is incompatible, got "${t}" but expected "${e.clientPartition}"`)},aZ=(t,e)=>{},kR=t=>{if(["s3-external-1","aws-global"].includes(t))throw new Error(`Client region ${t} is not regional`)},MR=t=>{if(!/[0-9]{12}/.exec(t))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")},Ga=(t,e={tlsCompatible:!0})=>{if(t.length>=64||!/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)||/(\d+\.){3}\d+/.test(t)||/[.-]{2}/.test(t)||e?.tlsCompatible&&kM.test(t))throw new Error(`Invalid DNS label ${t}`)},cZ=t=>{if(t.isCustomEndpoint){if(t.dualstackEndpoint)throw new Error("Dualstack endpoint is not supported with custom endpoint");if(t.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported with custom endpoint")}},LR=t=>{let e=t.includes(":")?":":"/",[r,...n]=t.split(e);if(r==="accesspoint"){if(n.length!==1||n[0]==="")throw new Error(`Access Point ARN should have one resource accesspoint${e}{accesspointname}`);return{accesspointName:n[0]}}else if(r==="outpost"){if(!n[0]||n[1]!=="accesspoint"||!n[2]||n.length!==3)throw new Error(`Outpost ARN should have resource outpost${e}{outpostId}${e}accesspoint${e}{accesspointName}`);let[o,s,i]=n;return{outpostId:o,accesspointName:i}}else throw new Error(`ARN resource should begin with 'accesspoint${e}' or 'outpost${e}'`)},uZ=t=>{},NR=t=>{if(t)throw new Error("FIPS region is not supported with Outpost.")},lZ=t=>{try{t.split(".").forEach(e=>{Ga(e)})}catch{throw new Error(`"${t}" is not a DNS compatible name.`)}}});var Wm,DBe,IBe,wBe,PBe,OBe,$Be,LM=g(()=>{MM();Wm=t=>(cZ(t),eZ(t)?DBe(t):IBe(t)),DBe=({accelerateEndpoint:t=!1,clientRegion:e,baseHostname:r,bucketName:n,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,pathStyleEndpoint:i=!1,tlsCompatible:a=!0,isCustomEndpoint:c=!1})=>{let[u,f]=c?[e,r]:nZ(r);return i||!tZ(n)||a&&kM.test(n)?{bucketEndpoint:!1,hostname:o?`s3.dualstack.${u}.${f}`:r}:(t?r=`s3-accelerate${o?".dualstack":""}.${f}`:o&&(r=`s3.dualstack.${u}.${f}`),{bucketEndpoint:!0,hostname:`${n}.${r}`})},IBe=t=>{let{isCustomEndpoint:e,baseHostname:r,clientRegion:n}=t,o=e?r:PR(r)[1],{pathStyleEndpoint:s,accelerateEndpoint:i=!1,fipsEndpoint:a=!1,tlsCompatible:c=!0,bucketName:u,clientPartition:f="aws"}=t;oZ({pathStyleEndpoint:s,accelerateEndpoint:i,tlsCompatible:c});let{service:m,partition:y,accountId:_,region:C,resource:A}=u;sZ(m),$R(y,{clientPartition:f}),MR(_);let{accesspointName:x,outpostId:T}=LR(A);return m==="s3-object-lambda"?wBe({...t,tlsCompatible:c,bucketName:u,accesspointName:x,hostnameSuffix:o}):C===""?PBe({...t,clientRegion:n,mrapAlias:x,hostnameSuffix:o}):T?OBe({...t,clientRegion:n,outpostId:T,accesspointName:x,hostnameSuffix:o}):$Be({...t,clientRegion:n,accesspointName:x,hostnameSuffix:o})},wBe=({dualstackEndpoint:t=!1,fipsEndpoint:e=!1,tlsCompatible:r=!0,useArnRegion:n,clientRegion:o,clientSigningRegion:s=o,accesspointName:i,bucketName:a,hostnameSuffix:c})=>{let{accountId:u,region:f,service:m}=a;kR(o);let y=`${i}-${u}`;Ga(y,{tlsCompatible:r});let _=n?f:o,C=n?f:s;return{bucketEndpoint:!0,hostname:`${y}.${m}${e?"-fips":""}.${_}.${c}`,signingRegion:C,signingService:m}},PBe=({disableMultiregionAccessPoints:t,dualstackEndpoint:e=!1,isCustomEndpoint:r,mrapAlias:n,hostnameSuffix:o})=>{if(t===!0)throw new Error("SDK is attempting to use a MRAP ARN. Please enable to feature.");return lZ(n),{bucketEndpoint:!0,hostname:`${n}${r?"":".accesspoint.s3-global"}.${o}`,signingRegion:"*"}},OBe=({useArnRegion:t,clientRegion:e,clientSigningRegion:r=e,bucketName:n,outpostId:o,dualstackEndpoint:s=!1,fipsEndpoint:i=!1,tlsCompatible:a=!0,accesspointName:c,isCustomEndpoint:u,hostnameSuffix:f})=>{kR(e);let m=`${c}-${n.accountId}`;Ga(m,{tlsCompatible:a});let y=t?n.region:e,_=t?n.region:r;return OR(n.service),Ga(o,{tlsCompatible:a}),NR(i),{bucketEndpoint:!0,hostname:`${`${m}.${o}`}${u?"":`.s3-outposts.${y}`}.${f}`,signingRegion:_,signingService:"s3-outposts"}},$Be=({useArnRegion:t,clientRegion:e,clientSigningRegion:r=e,bucketName:n,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,tlsCompatible:i=!0,accesspointName:a,isCustomEndpoint:c,hostnameSuffix:u})=>{kR(e);let f=`${a}-${n.accountId}`;Ga(f,{tlsCompatible:i});let m=t?n.region:e,y=t?n.region:r;return iZ(n.service),{bucketEndpoint:!0,hostname:`${f}${c?"":`.s3-accesspoint${s?"-fips":""}${o?".dualstack":""}.${m}`}.${u}`,signingRegion:y}}});var NM,FM,dZ,pZ=g(()=>{TM();V();LM();NM=t=>(e,r)=>async n=>{let{Bucket:o}=n.input,s=t.bucketEndpoint,i=n.request;if(re.isInstance(i)){if(t.bucketEndpoint)i.hostname=o;else if(Vm(o)){let a=xM(o),c=await t.region(),u=await t.useDualstackEndpoint(),f=await t.useFipsEndpoint(),{partition:m,signingRegion:y=c}=await t.regionInfoProvider(c,{useDualstackEndpoint:u,useFipsEndpoint:f})||{},_=await t.useArnRegion(),{hostname:C,bucketEndpoint:A,signingRegion:x,signingService:T}=Wm({bucketName:a,baseHostname:i.hostname,accelerateEndpoint:t.useAccelerateEndpoint,dualstackEndpoint:u,fipsEndpoint:f,pathStyleEndpoint:t.forcePathStyle,tlsCompatible:i.protocol==="https:",useArnRegion:_,clientPartition:m,clientSigningRegion:y,clientRegion:c,isCustomEndpoint:t.isCustomEndpoint,disableMultiregionAccessPoints:await t.disableMultiregionAccessPoints()});x&&x!==y&&(r.signing_region=x),T&&T!=="s3"&&(r.signing_service=T),i.hostname=C,s=A}else{let a=await t.region(),c=await t.useDualstackEndpoint(),u=await t.useFipsEndpoint(),{hostname:f,bucketEndpoint:m}=Wm({bucketName:o,clientRegion:a,baseHostname:i.hostname,accelerateEndpoint:t.useAccelerateEndpoint,dualstackEndpoint:c,fipsEndpoint:u,pathStyleEndpoint:t.forcePathStyle,tlsCompatible:i.protocol==="https:",isCustomEndpoint:t.isCustomEndpoint});i.hostname=f,s=m}s&&(i.path=i.path.replace(/^(\/)?[^\/]+/,""),i.path===""&&(i.path="/"))}return e({...n,request:i})},FM={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0},dZ=t=>({applyToStack:e=>{e.addRelativeTo(NM(t),FM)}})});function fZ(t){let{bucketEndpoint:e=!1,forcePathStyle:r=!1,useAccelerateEndpoint:n=!1,useArnRegion:o,disableMultiregionAccessPoints:s=!1}=t;return Object.assign(t,{bucketEndpoint:e,forcePathStyle:r,useAccelerateEndpoint:n,useArnRegion:typeof o=="function"?o:()=>Promise.resolve(o),disableMultiregionAccessPoints:typeof s=="function"?s:()=>Promise.resolve(s)})}var mZ=g(()=>{});function BM(t){return e=>async r=>{let{request:n}=r;if(t.expectContinueHeader!==!1&&re.isInstance(n)&&n.body&&t.runtime==="node"&&t.requestHandler?.constructor?.name!=="FetchHttpHandler"){let o=!0;if(typeof t.expectContinueHeader=="number")try{o=(Number(n.headers?.["content-length"])??t.bodyLengthChecker?.(n.body)??1/0)>=t.expectContinueHeader}catch{}else o=!!t.expectContinueHeader;o&&(n.headers.Expect="100-continue")}return e({...r,request:n})}}var UM,gZ,hZ=g(()=>{V();UM={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},gZ=t=>({applyToStack:e=>{e.add(BM(t),UM)}})});function GM(t){return e=>async r=>{let{CreateBucketConfiguration:n}=r.input,o=await t.region();return!n?.LocationConstraint&&!n?.Location&&o!=="us-east-1"&&(r.input.CreateBucketConfiguration=r.input.CreateBucketConfiguration??{},r.input.CreateBucketConfiguration.LocationConstraint=o),e(r)}}var qM,SZ,yZ=g(()=>{qM={step:"initialize",tags:["LOCATION_CONSTRAINT","CREATE_BUCKET_CONFIGURATION"],name:"locationConstraintMiddleware",override:!0},SZ=t=>({applyToStack:e=>{e.add(GM(t),qM)}})});function EZ(t){return t}var _Z=g(()=>{});function HM(t){return e=>async r=>{let n={...r.input},o=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(let s of o){let i=n[s.target];if(i){let a;typeof i=="string"?zM(i,t)?a=t.base64Decoder(i):(a=t.utf8Decoder(i),n[s.target]=t.base64Encoder(a)):(a=ArrayBuffer.isView(i)?new Uint8Array(i.buffer,i.byteOffset,i.byteLength):new Uint8Array(i),n[s.target]=t.base64Encoder(a));let c=new t.md5;c.update(a),n[s.hash]=t.base64Encoder(await c.digest())}}return e({...r,input:n})}}function zM(t,e){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t))return!1;try{return e.base64Decoder(t).length===32}catch{return!1}}var jM,RZ,CZ=g(()=>{jM={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},RZ=t=>({applyToStack:e=>{e.add(HM(t),jM)}})});var bZ={};Ct(bZ,{NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS:()=>QX,NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME:()=>IM,NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME:()=>wM,NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS:()=>IX,NODE_USE_ARN_REGION_CONFIG_OPTIONS:()=>JX,NODE_USE_ARN_REGION_ENV_NAME:()=>PM,NODE_USE_ARN_REGION_INI_NAME:()=>OM,S3ExpressIdentityCache:()=>fd,S3ExpressIdentityCacheEntry:()=>Ua,S3ExpressIdentityProviderImpl:()=>md,S3RestXmlProtocol:()=>wR,SignatureV4S3Express:()=>IR,addExpectContinueMiddleware:()=>BM,addExpectContinueMiddlewareOptions:()=>UM,bucketEndpointMiddleware:()=>NM,bucketEndpointMiddlewareOptions:()=>FM,bucketHostname:()=>Wm,checkContentLengthHeader:()=>uM,checkContentLengthHeaderMiddlewareOptions:()=>lM,getAddExpectContinuePlugin:()=>gZ,getArnResources:()=>LR,getBucketEndpointPlugin:()=>dZ,getCheckContentLengthHeaderPlugin:()=>gX,getLocationConstraintPlugin:()=>SZ,getRegionRedirectMiddlewarePlugin:()=>SX,getS3ExpiresMiddlewarePlugin:()=>RX,getS3ExpressHttpSigningPlugin:()=>MX,getS3ExpressPlugin:()=>wX,getSsecPlugin:()=>RZ,getSuffixForArnEndpoint:()=>PR,getThrow200ExceptionsPlugin:()=>UX,getValidateBucketNamePlugin:()=>VX,isValidBase64EncodedSSECustomerKey:()=>zM,locationConstraintMiddleware:()=>GM,locationConstraintMiddlewareOptions:()=>qM,regionRedirectEndpointMiddleware:()=>vR,regionRedirectEndpointMiddlewareOptions:()=>DR,regionRedirectMiddleware:()=>pM,regionRedirectMiddlewareOptions:()=>fM,resolveBucketEndpointConfig:()=>fZ,resolveLocationConstraintConfig:()=>EZ,resolveS3Config:()=>EX,s3ExpiresMiddleware:()=>SM,s3ExpiresMiddlewareOptions:()=>yM,s3ExpressHttpSigningMiddleware:()=>CM,s3ExpressHttpSigningMiddlewareOptions:()=>kX,s3ExpressMiddleware:()=>_M,s3ExpressMiddlewareOptions:()=>RM,ssecMiddleware:()=>HM,ssecMiddlewareOptions:()=>jM,throw200ExceptionsMiddleware:()=>bM,throw200ExceptionsMiddlewareOptions:()=>AM,validateAccountId:()=>MR,validateBucketNameMiddleware:()=>vM,validateBucketNameMiddlewareOptions:()=>DM,validateDNSHostLabel:()=>Ga,validateNoDualstack:()=>uZ,validateNoFIPS:()=>NR,validateOutpostService:()=>OR,validatePartition:()=>$R,validateRegion:()=>aZ});var AZ=g(()=>{hX();dM();yX();_X();CX();mM();gM();hM();AX();EM();PX();LX();GX();WX();KX();YX();XX();pZ();LM();mZ();MM();hZ();yZ();_Z();CZ()});var Tt,xZ,TZ,kBe,Mi,FR=g(()=>{j();Tt=64,xZ=20,TZ=new Int32Array([1732584193,4023233417,2562383102,271733878,3285377520]),kBe=new Int32Array([1518500249,1859775393,2400959708,3395469782]),Mi=class t{digestLength=xZ;state=Int32Array.from(TZ);w;buffer=new Uint8Array(Tt);bufferLength=0;bytesHashed=0;finished=!1;inner;outer;constructor(e){if(e){let r=t.normalizeKey(e);this.inner=new t,this.outer=new t;let n=new Uint8Array(Tt*2);for(let o=0;o<Tt;++o)n[o]=54^r[o],n[o+Tt]=92^r[o];this.inner.update(n.subarray(0,Tt)),this.outer.update(n.subarray(Tt))}}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.inner){this.inner.update(e);return}let r=0,{length:n}=e;if(this.bytesHashed+=n,this.bufferLength>0){for(;n>0&&this.bufferLength<Tt;)this.buffer[this.bufferLength++]=e[r++],--n;this.bufferLength===Tt&&(this.hashBuffer(this.buffer,0),this.bufferLength=0)}for(;n>=Tt;)this.hashBuffer(e,r),r+=Tt,n-=Tt;for(;n>0;)this.buffer[this.bufferLength++]=e[r++],--n}async digest(){if(this.inner&&this.outer){if(this.finished)throw new Error("Attempted to digest an already finished HMAC.");this.finished=!0;let e=this.inner.digestSync();return this.outer.update(e),this.outer.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(TZ),this.buffer=new Uint8Array(Tt),this.bufferLength=0,this.bytesHashed=0}digestSync(){let e=this.state.slice(),r=this.buffer.slice(),n=this.bufferLength,o=this.bytesHashed/536870912|0,s=this.bytesHashed<<3;if(r[n++]=128,n>Tt-8){for(let c=n;c<Tt;++c)r[c]=0;this.hashBufferWith(e,r,0),n=0}for(let c=n;c<Tt-8;++c)r[c]=0;let i=new DataView(r.buffer,r.byteOffset,Tt);i.setUint32(Tt-8,o,!1),i.setUint32(Tt-4,s,!1),this.hashBufferWith(e,r,0);let a=new Uint8Array(xZ);return a[0]=e[0]>>>24&255,a[1]=e[0]>>>16&255,a[2]=e[0]>>>8&255,a[3]=e[0]&255,a[4]=e[1]>>>24&255,a[5]=e[1]>>>16&255,a[6]=e[1]>>>8&255,a[7]=e[1]&255,a[8]=e[2]>>>24&255,a[9]=e[2]>>>16&255,a[10]=e[2]>>>8&255,a[11]=e[2]&255,a[12]=e[3]>>>24&255,a[13]=e[3]>>>16&255,a[14]=e[3]>>>8&255,a[15]=e[3]&255,a[16]=e[4]>>>24&255,a[17]=e[4]>>>16&255,a[18]=e[4]>>>8&255,a[19]=e[4]&255,a}static normalizeKey(e){let r=bt(e);if(r.byteLength>Tt){let o=new t;o.update(r);let s=o.digestSync(),i=new Uint8Array(Tt);return i.set(s),i}let n=new Uint8Array(Tt);return n.set(r),n}hashBuffer(e,r){this.hashBufferWith(this.state,e,r)}hashBufferWith(e,r,n){let o=this.w??=new Int32Array(80),s=e[0],i=e[1],a=e[2],c=e[3],u=e[4];for(let f=0;f<16;++f)o[f]=(r[n+f*4]&255)<<24|(r[n+f*4+1]&255)<<16|(r[n+f*4+2]&255)<<8|r[n+f*4+3]&255;for(let f=16;f<80;++f){let m=o[f-3]^o[f-8]^o[f-14]^o[f-16];o[f]=m<<1|m>>>31}for(let f=0;f<80;++f){let m=f<20?0:f<40?1:f<60?2:3,y=((s<<5|s>>>27)+(m===0?i&a^~i&c:m===2?i&a^i&c^a&c:i^a^c)|0)+(u+(kBe[m]+o[f]|0)|0)|0;u=c,c=a,a=i<<30|i>>>2,i=s,s=y}e[0]=e[0]+s|0,e[1]=e[1]+i|0,e[2]=e[2]+a|0,e[3]=e[3]+c|0,e[4]=e[4]+u|0}}});function LBe(){return class{digestLength=20;secret;hash;isHmac;finished=!1;constructor(e){this.secret=e,this.isHmac=!!e,this.hash=this.createHash()}update(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");this.hash.update(e)}async digest(){let e;return this.isHmac?(this.finished=!0,e=this.hash.digest()):e=this.hash.copy().digest(),new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=this.createHash(),this.finished=!1}createHash(){return this.secret?(0,Km.createHmac)("sha1",NBe(this.secret)):(0,Km.createHash)("sha1")}}}function NBe(t){return typeof t=="string"?t:ArrayBuffer.isView(t)?Buffer.from(t.buffer,t.byteOffset,t.byteLength):Buffer.from(t)}var Km,MBe,VM,vZ=g(()=>{Km=require("node:crypto");FR();MBe=(()=>{try{return(0,Km.createHash)("sha1"),!0}catch{return!1}})(),VM=MBe?LBe():Mi});var FBe,BBe,UBe,BR,GBe,UR,DZ=g(()=>{j();FR();({digest:FBe,sign:BBe,importKey:UBe}=globalThis?.crypto?.subtle??{}),BR=typeof FBe=="function"&&typeof BBe=="function"&&typeof UBe=="function"?globalThis.crypto.subtle:void 0,GBe=8*1024*1024,UR=class{digestLength=20;secret;pending=[];pendingBytes=0;fallback;finished=!1;constructor(e){e&&(this.secret=bt(e))}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.fallback){this.fallback.update(e);return}this.pending.push(e.slice()),this.pendingBytes+=e.byteLength,this.pendingBytes>=GBe&&this.switchToFallback()}async digest(){if(this.fallback)return this.fallback.digest();if(this.secret&&this.finished)throw new Error("Attempted to digest an already finished HMAC.");let e=Wn(this.pending);if(BR){if(this.secret){this.finished=!0;let o=await BR.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-1"},!1,["sign"]),s=await BR.sign("HMAC",o,e);return new Uint8Array(s)}let n=await BR.digest("SHA-1",e);return new Uint8Array(n)}let r=new Mi(this.secret);return r.update(e),r.digest()}reset(){this.pending=[],this.pendingBytes=0,this.fallback=void 0,this.finished=!1}switchToFallback(){let e=new Mi(this.secret);for(let r of this.pending)e.update(r);this.fallback=e,this.pending=[],this.pendingBytes=0}}});var IZ={};Ct(IZ,{Sha1:()=>VM,Sha1Js:()=>Mi,Sha1Node:()=>VM,Sha1WebCrypto:()=>UR,Sha256:()=>yn,Sha256Js:()=>Io,Sha256Node:()=>yn});var wZ=g(()=>{FR();vZ();DZ();$n()});var $N=st(d=>{var{getFlexibleChecksumsPlugin:qa,NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS:qBe,NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS:HBe,resolveFlexibleChecksumsConfig:jBe}=(mX(),F(fX)),{awsEndpointFunctions:zBe,emitWarningIfUnsupportedVersion:VBe,createDefaultUserAgentProvider:WBe,NODE_APP_ID_CONFIG_OPTIONS:KBe,getAwsRegionExtensionConfiguration:QBe,resolveAwsRegionExtensionConfiguration:YBe,resolveUserAgentConfig:JBe,resolveHostHeaderConfig:XBe,getUserAgentPlugin:ZBe,getHostHeaderPlugin:e2e,getLoggerPlugin:t2e,getRecursionDetectionPlugin:r2e}=(Ee(),F(Mn)),{getThrow200ExceptionsPlugin:Ha,getSsecPlugin:yd,getLocationConstraintPlugin:n2e,getS3ExpiresMiddlewarePlugin:gee,getCheckContentLengthHeaderPlugin:o2e,S3RestXmlProtocol:s2e,NODE_USE_ARN_REGION_CONFIG_OPTIONS:i2e,NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS:a2e,resolveS3Config:c2e,getValidateBucketNamePlugin:u2e,getAddExpectContinuePlugin:l2e,getRegionRedirectMiddlewarePlugin:d2e,getS3ExpressPlugin:p2e,getS3ExpressHttpSigningPlugin:f2e}=(AZ(),F(bZ)),{getHttpAuthSchemeEndpointRuleSetPlugin:m2e,DefaultIdentityProviderConfig:g2e,getHttpSigningPlugin:h2e,createPaginator:cg}=(jt(),F(xl)),{normalizeProvider:hee,getSmithyContext:See,makeBuilder:S2e,ServiceException:y2e,NoOpLogger:E2e,emitWarningIfUnsupportedVersion:_2e,loadConfigsForDefaultMode:R2e,getDefaultExtensionConfiguration:C2e,resolveDefaultRuntimeConfig:b2e,Client:yee,createWaiter:ja,checkExceptions:OA,WaiterState:ei,createAggregatedClient:A2e}=(J(),F(bo)),{Command:x2e}=(J(),F(bo));d.$Command=x2e;d.__Client=yee;var{resolveDefaultsModeConfig:T2e,loadConfig:so,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:v2e,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:D2e,NODE_REGION_CONFIG_OPTIONS:I2e,NODE_REGION_CONFIG_FILE_OPTIONS:w2e,resolveRegionConfig:P2e}=(ye(),F(Br)),{BinaryDecisionDiagram:O2e,EndpointCache:$2e,decideEndpoint:k2e,customEndpointFunctions:M2e,resolveParams:L2e,getEndpointPlugin:N2e,resolveEndpointConfig:F2e}=(He(),F(jp)),{eventStreamSerdeProvider:B2e,resolveEventStreamSerdeConfig:U2e}=(WS(),F(VS)),{parseUrl:G2e,getHttpHandlerExtensionConfiguration:q2e,resolveHttpHandlerRuntimeConfig:H2e,getContentLengthPlugin:j2e}=(V(),F(wo)),{DEFAULT_RETRY_MODE:z2e,NODE_RETRY_MODE_CONFIG_OPTIONS:V2e,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:W2e,resolveRetryConfig:K2e,getRetryPlugin:Q2e}=(tn(),F(nf)),{TypeRegistry:Eee,getSchemaSerdePlugin:Y2e}=(ae(),F(Dp)),{resolveAwsSdkSigV4Config:J2e,resolveAwsSdkSigV4AConfig:X2e,AwsSdkSigV4Signer:Z2e,AwsSdkSigV4ASigner:eUe,NODE_SIGV4A_CONFIG_OPTIONS:tUe,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:rUe}=(rr(),F(Il)),{SignatureV4MultiRegion:_ee}=rm(),{defaultProvider:nUe}=Cm(),{Sha256:oUe,Md5:sUe,readableStreamHasher:iUe}=($n(),F(Vp)),{toUtf8:aUe,fromUtf8:cUe,sdkStreamMixin:uUe,getAwsChunkedEncodingStream:lUe,toBase64:dUe,fromBase64:pUe,calculateBodyLength:fUe}=(j(),F(To)),{streamCollector:mUe,NodeHttpHandler:gUe}=zs(),{Sha1:hUe}=(wZ(),F(IZ)),Ke="ref",he="argv",Ree="backend",ri="authSchemes",ao="disableDoubleEncoding",co="signingName",Ui="signingRegion",dL="signingRegionSet",te=-1,Ge=!0,io=!1,WM="isSet",Jo="booleanEquals",Oe="stringEquals",jr="coalesce",an="substring",Vt="",PZ="aws.partition",Cee="partitionResult",OZ="accessPointSuffix",$Z="regionPrefix",GR=t=>"outpostId_ssa_"+t+Vt,bee="hardwareType",KM="ite",Li="isValidHostLabel",Gi="sigv4",kZ="aws.isVirtualHostableS3Bucket",Aee="url",cn="getAttr",xee="bucketArn",Ni="--",Tee="arnType",MZ="accesspoint",QM=t=>"accessPointName_ssa_"+t+Vt,pL="s3-object-lambda",Ym="s3-outposts",LZ="bucketPartition",vee="us-east-1",NZ="outpostType",Un="name",Jm="s3",YM="{url#scheme}://{Bucket}.{url#authority}{url#path}",qR="{url#scheme}://{url#authority}{url#path}",FZ="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",BZ="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",UZ="https://{Bucket}.s3.{partitionResult#dnsSuffix}",GZ=t=>"{url#scheme}://{accessPointName_ssa_"+t+"}-{bucketArn#accountId}.{url#authority}{url#path}",qZ=t=>"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_"+t+"}`",fL="sigv4a",HZ="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",jZ="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",zZ="https://s3.{partitionResult#dnsSuffix}",VZ={[Ke]:"UseFIPS"},WZ={[Ke]:"UseDualStack"},cr={[Ke]:"Bucket"},JM={fn:cn,[he]:[{[Ke]:Cee},Un]},KZ={[Ke]:Aee},gd={[Ke]:"Region"},Fi={[Ke]:xee},QZ={[Ke]:Tee},XM={[Ke]:"accessPointName_ssa_1"},HR={fn:cn,[he]:[Fi,"region"]},YZ={[Ke]:bee},ZM={fn:cn,[he]:[Fi,"service"]},JZ={fn:cn,[he]:[Fi,"accountId"]},jR={[Ree]:"S3Express",[ri]:[{[ao]:!0,[Un]:"{_s3e_auth}",[co]:"s3express",[Ui]:"{Region}"}]},XZ={[Ree]:"S3Express",[ri]:[{[ao]:!0,[Un]:Gi,[co]:"s3express",[Ui]:"{Region}"}]},zR={[ri]:[{[ao]:!0,[Un]:fL,[co]:Ym,[dL]:["*"]},{[ao]:!0,[Un]:Gi,[co]:Ym,[Ui]:"{Region}"}]},ar={[ri]:[{[ao]:!0,[Un]:Gi,[co]:Jm,[Ui]:vee}]},vt={[ri]:[{[ao]:!0,[Un]:Gi,[co]:Jm,[Ui]:"{Region}"}]},eL={[ri]:[{[ao]:!0,[Un]:Gi,[co]:pL,[Ui]:"{bucketArn#region}"}]},Qm={[ri]:[{[ao]:!0,[Un]:Gi,[co]:Jm,[Ui]:"{bucketArn#region}"}]},ZZ={[ri]:[{[ao]:!0,[Un]:fL,[co]:Ym,[dL]:["*"]},{[ao]:!0,[Un]:Gi,[co]:Ym,[Ui]:"{bucketArn#region}"}]},tL={[ri]:[{[ao]:!0,[Un]:Gi,[co]:pL,[Ui]:"{Region}"}]},eee=[gd],tee=[{[Ke]:"Endpoint"}],rL=[cr],ree=[cr,0,7,!0],nee=[Fi,"resourceId[1]"],SUe=["*"],oee={conditions:[[WM,eee],[Jo,[{[Ke]:"Accelerate"},Ge]],[Jo,[VZ,Ge]],[Jo,[WZ,Ge]],[WM,tee],[WM,rL],[Oe,[{fn:jr,[he]:[{fn:an,[he]:[cr,0,6,Ge]},Vt]},"--x-s3"]],[Oe,[{fn:jr,[he]:[{fn:an,[he]:ree},Vt]},"--xa-s3"]],[PZ,eee,Cee],[an,ree,OZ],[Oe,[{[Ke]:OZ},"--op-s3"]],[an,[cr,8,12,Ge],$Z],[an,[cr,32,49,Ge],GR(2)],[an,[cr,49,50,Ge],bee],[Jo,[{[Ke]:"ForcePathStyle"},Ge]],[Oe,[JM,"aws-cn"]],[KM,[WZ,".dualstack",Vt],"_s3e_ds"],[Li,[{[Ke]:GR(2)},io]],[KM,[VZ,"-fips",Vt],"_s3e_fips"],[KM,[{fn:jr,[he]:[{[Ke]:"DisableS3ExpressSessionAuth"},io]},Gi,"sigv4-s3express"],"_s3e_auth"],[kZ,[cr,io]],["parseURL",tee,Aee],[Jo,[{fn:jr,[he]:[{[Ke]:"UseS3ExpressControlEndpoint"},io]},Ge]],[kZ,[cr,Ge]],[Oe,[{fn:cn,[he]:[KZ,"scheme"]},"http"]],[Li,[gd,io]],["aws.parseArn",rL,xee],[cn,[{fn:"split",[he]:[cr,Ni,0]},"[-2]"],"s3expressAvailabilityZoneId"],[Oe,[{fn:jr,[he]:[{fn:an,[he]:[cr,0,4,io]},Vt]},"arn:"]],[Oe,[{fn:jr,[he]:[{fn:an,[he]:[cr,16,18,Ge]},Vt]},Ni]],[Jo,[{fn:cn,[he]:[KZ,"isIp"]},Ge]],[Oe,[{fn:jr,[he]:[{fn:an,[he]:[cr,21,23,Ge]},Vt]},Ni]],[Oe,[{fn:jr,[he]:[{fn:an,[he]:[cr,27,29,Ge]},Vt]},Ni]],[Oe,[{[Ke]:$Z},"beta"]],["uriEncode",rL,"uri_encoded_bucket"],[Li,[gd,Ge]],[Jo,[{fn:jr,[he]:[{[Ke]:"UseObjectLambdaEndpoint"},io]},Ge]],[cn,[Fi,"resourceId[0]"],Tee],[Oe,[QZ,Vt]],[Oe,[QZ,MZ]],[cn,nee,QM(1)],[Oe,[XM,Vt]],[Oe,[HR,Vt]],[Oe,[{fn:jr,[he]:[{fn:an,[he]:[cr,14,16,Ge]},Vt]},Ni]],[Oe,[YZ,"e"]],[Oe,[YZ,"o"]],[Oe,[gd,"aws-global"]],[Oe,[{fn:jr,[he]:[{fn:an,[he]:[cr,19,21,Ge]},Vt]},Ni]],[Oe,[ZM,pL]],[Jo,[{fn:jr,[he]:[{[Ke]:"DisableAccessPoints"},io]},Ge]],[Oe,[ZM,Ym]],[PZ,[HR],LZ],[Li,[XM,Ge]],[Oe,[{fn:jr,[he]:[{fn:an,[he]:[cr,26,28,Ge]},Vt]},Ni]],[Oe,[{fn:jr,[he]:[{fn:an,[he]:[cr,15,17,Ge]},Vt]},Ni]],[cn,[Fi,"resourceId[4]"]],[Oe,[{fn:jr,[he]:[{fn:an,[he]:[cr,20,22,Ge]},Vt]},Ni]],[Jo,[{[Ke]:"UseGlobalEndpoint"},Ge]],[Oe,[gd,vee]],[cn,nee,GR(1)],[Jo,[{fn:jr,[he]:[{[Ke]:"UseArnRegion"},Ge]},Ge]],[Li,[{[Ke]:GR(1)},io]],[cn,[Fi,"resourceId[2]"],NZ],[Oe,[gd,HR]],[Oe,[{fn:cn,[he]:[{[Ke]:LZ},Un]},JM]],[Jo,[{[Ke]:"DisableMultiRegionAccessPoints"},Ge]],[Li,[HR,Ge]],[Oe,[{fn:cn,[he]:[Fi,"partition"]},JM]],[Oe,[JZ,Vt]],[Oe,[ZM,Jm]],[Li,[JZ,io]],[cn,[Fi,"resourceId[3]"],QM(2)],[Li,[XM,io]],[Oe,[{[Ke]:NZ},MZ]],[Li,[{[Ke]:QM(2)},io]]],results:[[te],[te,"Accelerate cannot be used with FIPS"],[te,"Cannot set dual-stack in combination with a custom endpoint."],[te,"A custom endpoint cannot be combined with FIPS"],[te,"A custom endpoint cannot be combined with S3 Accelerate"],[te,"Partition does not support FIPS"],[te,"S3Express does not support S3 Accelerate."],["{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",jR],[YM,jR],[te,"S3Express bucket name is not a valid virtual hostable name."],["https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",XZ],["https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}",jR],[te,"Unrecognized S3Express bucket name format."],[qR,jR],["https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}",XZ],[te,"Expected a endpoint to be specified but no endpoint was found"],["https://{Bucket}.ec2.{url#authority}",zR],["https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}",zR],["https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}",zR],["https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}",zR],[te,'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"'],[te,"Invalid Outposts Bucket alias - it must be a valid bucket name."],[te,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[te,"Custom endpoint `{Endpoint}` was not a valid URI"],[te,"S3 Accelerate cannot be used in this region"],["https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",vt],["https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",ar],["https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",vt],["https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",vt],["https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",vt],[FZ,ar],[YM,ar],[FZ,vt],[YM,vt],[BZ,ar],[BZ,vt],[UZ,ar],[UZ,vt],["https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",vt],[te,"Invalid region: region was not a valid DNS name."],[te,"S3 Object Lambda does not support Dual-stack"],[te,"S3 Object Lambda does not support S3 Accelerate"],[te,"Access points are not supported for this operation"],[te,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[te,"Invalid ARN: Missing account id"],[GZ(1),eL],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",eL],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",eL],[te,qZ(1)],[te,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[te,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[te,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[te,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[te,"Invalid ARN: bucket ARN is missing a region"],[te,"Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided"],[te,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[te,"Access Points do not support S3 Accelerate"],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",Qm],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",Qm],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",Qm],[GZ(1),Qm],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",Qm],[te,"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}"],[te,"S3 MRAP does not support dual-stack"],[te,"S3 MRAP does not support FIPS"],[te,"S3 MRAP does not support S3 Accelerate"],[te,"Invalid configuration: Multi-Region Access Point ARNs are disabled."],["https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}",{[ri]:[{[ao]:Ge,name:fL,[co]:Jm,[dL]:SUe}]}],[te,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[te,"Invalid Access Point Name"],[te,"S3 Outposts does not support Dual-stack"],[te,"S3 Outposts does not support FIPS"],[te,"S3 Outposts does not support S3 Accelerate"],[te,"Invalid Arn: Outpost Access Point ARN contains sub resources"],["https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}",ZZ],["https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",ZZ],[te,qZ(2)],[te,"Expected an outpost type `accesspoint`, found {outpostType}"],[te,"Invalid ARN: expected an access point name"],[te,"Invalid ARN: Expected a 4-component resource"],[te,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[te,"Invalid ARN: The Outpost Id was not set"],[te,"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})"],[te,"Invalid ARN: No ARN type specified"],[te,"Invalid ARN: `{Bucket}` was not a valid ARN"],[te,"Path-style addressing cannot be used with ARN buckets"],["https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",ar],["https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",vt],["https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",ar],["https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",vt],["https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",ar],["https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",vt],[HZ,ar],[HZ,vt],[jZ,ar],[jZ,vt],["https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",vt],[te,"Path-style addressing cannot be used with S3 Accelerate"],[qR,tL],["https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",tL],["https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",tL],["https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",vt],["https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",ar],["https://s3-fips.{Region}.{partitionResult#dnsSuffix}",vt],["https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",vt],[qR,ar],[qR,vt],[zZ,ar],[zZ,vt],["https://s3.{Region}.{partitionResult#dnsSuffix}",vt],[te,"A region must be set when sending requests to S3."]]},yUe=2,E=1e8,EUe=new Int32Array([-1,1,-1,0,3,E+115,1,424,4,2,272,5,3,233,6,4,85,7,5,15,8,8,9,E+115,16,10,13,18,11,13,19,12,13,22,E+14,13,35,14,E+42,36,E+103,435,6,271,16,7,270,17,8,19,18,14,501,106,9,20,24,10,21,24,11,22,24,12,23,24,13,547,24,14,77,25,20,73,26,26,27,78,37,28,E+86,38,E+86,29,39,47,30,48,E+58,31,50,32,E+85,51,33,136,55,E+76,34,59,35,E+84,60,39,36,61,37,E+83,62,38,146,63,41,E+46,61,40,E+83,62,41,150,64,42,E+54,66,43,E+53,70,44,E+52,71,45,E+81,73,46,E+80,74,E+78,E+79,40,48,E+57,41,E+57,49,42,185,50,48,62,51,49,E+45,52,51,53,526,60,56,54,62,E+55,55,63,57,E+46,62,E+55,57,64,58,E+54,66,59,E+53,69,60,E+65,70,61,E+52,72,E+64,E+51,49,E+45,63,51,64,526,60,67,65,62,E+55,66,63,68,E+46,62,E+55,68,64,69,E+54,66,70,E+53,68,E+47,71,70,72,E+52,72,E+50,E+51,25,74,E+42,46,E+39,75,57,76,E+41,58,E+40,E+41,26,E+88,78,28,E+87,79,34,82,80,35,81,545,36,E+103,E+115,46,E+97,83,57,84,E+99,58,E+98,E+99,5,101,86,8,87,E+115,16,88,89,18,91,89,19,90,92,21,97,95,19,93,92,21,98,95,21,97,94,22,E+14,95,35,96,E+42,36,E+103,E+42,22,E+13,98,35,99,E+42,36,E+101,100,46,E+110,E+111,6,214,102,7,208,103,8,119,104,14,118,105,21,106,E+23,26,107,502,37,108,E+86,38,E+86,109,39,112,110,48,E+58,111,50,136,E+85,40,113,E+57,41,E+57,114,42,115,500,48,E+56,116,52,117,E+72,65,E+69,E+72,21,501,E+23,9,120,124,10,121,124,11,122,124,12,123,124,13,202,124,14,195,125,20,190,126,21,127,E+23,23,128,129,24,189,129,26,130,197,37,131,E+86,38,E+86,132,39,159,133,48,E+58,134,50,135,E+85,51,141,136,55,E+76,137,59,138,E+84,60,E+83,139,61,140,E+83,63,E+83,E+46,55,E+76,142,59,143,E+84,60,148,144,61,145,E+83,62,147,146,63,150,E+46,63,153,E+46,61,149,E+83,62,153,150,64,151,E+54,66,152,E+53,70,E+82,E+52,64,154,E+54,66,155,E+53,70,156,E+52,71,157,E+81,73,158,E+80,74,E+77,E+79,40,160,E+57,41,E+57,161,42,185,162,48,174,163,49,E+45,164,51,165,526,60,168,166,62,E+55,167,63,169,E+46,62,E+55,169,64,170,E+54,66,171,E+53,69,172,E+65,70,173,E+52,72,E+63,E+51,49,E+45,175,51,176,526,60,179,177,62,E+55,178,63,180,E+46,62,E+55,180,64,181,E+54,66,182,E+53,68,E+47,183,70,184,E+52,72,E+48,E+51,48,E+56,186,52,187,E+72,65,E+69,188,67,E+70,E+71,25,E+36,E+42,21,191,E+23,25,192,E+42,30,194,193,46,E+34,E+36,46,E+33,E+35,21,196,E+23,26,E+88,197,28,E+87,198,34,201,199,35,200,545,36,E+101,E+115,46,E+95,E+96,17,203,E+22,20,204,E+21,21,205,550,33,206,550,44,E+16,207,45,E+18,E+20,8,209,215,16,210,220,18,211,220,19,212,224,20,213,227,21,231,401,8,218,215,19,216,E+9,20,217,227,21,231,E+9,16,219,220,18,223,220,19,221,224,20,222,227,21,231,E+12,19,226,224,20,225,E+9,21,E+9,E+12,20,230,227,21,228,E+9,30,229,E+9,34,E+7,E+9,21,231,415,30,232,E+8,34,E+7,E+8,4,E+2,234,5,235,480,6,271,236,7,270,237,8,238,491,9,239,243,10,240,243,11,241,243,12,242,243,13,547,243,14,266,244,20,264,245,26,246,267,37,247,E+86,38,E+86,248,39,249,518,40,250,E+57,41,E+57,251,42,538,252,48,E+43,253,49,E+45,254,51,255,526,60,258,256,62,E+55,257,63,259,E+46,62,E+55,259,64,260,E+54,66,261,E+53,69,262,E+65,70,263,E+52,72,E+62,E+51,25,265,E+42,46,E+31,E+32,26,E+88,267,28,E+87,268,34,269,544,46,E+93,E+94,8,397,E+9,8,407,E+9,3,346,273,4,E+3,274,5,284,275,8,276,E+115,15,E+5,277,16,278,281,18,279,281,19,280,281,22,E+14,281,35,282,E+42,36,E+102,283,46,E+106,E+107,6,405,285,7,395,286,8,295,287,14,501,288,26,289,502,37,290,E+86,38,E+86,291,39,292,307,40,293,E+57,41,E+57,294,42,335,500,9,296,300,10,297,300,11,298,300,12,299,300,13,394,300,14,339,301,15,E+5,302,20,337,303,26,304,341,37,305,E+86,38,E+86,306,39,309,307,48,E+58,308,50,E+74,E+85,40,310,E+57,41,E+57,311,42,335,312,48,324,313,49,E+45,314,51,315,526,60,318,316,62,E+55,317,63,319,E+46,62,E+55,319,64,320,E+54,66,321,E+53,69,322,E+65,70,323,E+52,72,E+61,E+51,49,E+45,325,51,326,526,60,329,327,62,E+55,328,63,330,E+46,62,E+55,330,64,331,E+54,66,332,E+53,68,E+47,333,70,334,E+52,72,E+49,E+51,48,E+56,336,52,E+67,E+72,25,338,E+42,46,E+27,E+28,15,E+5,340,26,E+88,341,28,E+87,342,34,345,343,35,344,545,36,E+102,E+115,46,E+91,E+92,4,E+2,347,5,357,348,8,349,E+115,15,E+5,350,16,351,354,18,352,354,19,353,354,22,E+14,354,35,355,E+42,36,E+43,356,46,E+104,E+105,6,405,358,7,395,359,8,360,491,9,361,365,10,362,365,11,363,365,12,364,365,13,394,365,14,389,366,15,E+5,367,20,387,368,26,369,391,37,370,E+86,38,E+86,371,39,372,518,40,373,E+57,41,E+57,374,42,538,375,48,E+43,376,49,E+45,377,51,378,526,60,381,379,62,E+55,380,63,382,E+46,62,E+55,382,64,383,E+54,66,384,E+53,69,385,E+65,70,386,E+52,72,E+60,E+51,25,388,E+42,46,E+25,E+26,15,E+5,390,26,E+88,391,28,E+87,392,34,393,544,46,E+89,E+90,15,E+5,547,8,396,E+9,15,E+5,397,16,398,410,18,399,410,19,400,410,20,401,E+9,27,402,E+12,29,E+11,403,31,E+11,404,32,E+11,422,8,406,E+9,15,E+5,407,16,408,410,18,409,410,19,411,410,20,E+12,E+9,20,414,412,22,413,E+9,34,E+10,E+9,22,416,415,27,419,E+12,27,418,417,34,E+10,E+12,34,E+10,419,43,E+11,420,47,E+11,421,53,E+11,422,54,E+11,423,56,E+11,E+12,2,E+1,425,3,478,426,4,E+4,427,5,438,428,8,429,E+115,16,430,433,18,431,433,19,432,433,22,E+14,433,35,434,E+42,36,E+44,435,46,E+112,436,57,437,E+114,58,E+113,E+114,6,E+6,439,7,E+6,440,8,450,441,14,501,442,26,443,502,37,444,E+86,38,E+86,445,39,446,465,40,447,E+57,41,E+57,448,42,471,449,48,E+44,500,9,451,455,10,452,455,11,453,455,12,454,455,13,547,455,14,473,456,15,460,457,20,458,461,25,459,E+42,46,E+37,E+38,20,540,461,26,462,474,37,463,E+86,38,E+86,464,39,467,465,48,E+58,466,50,E+75,E+85,40,468,E+57,41,E+57,469,42,471,470,48,E+44,524,48,E+44,472,52,E+68,E+72,26,E+88,474,28,E+87,475,34,E+100,476,35,477,545,36,E+44,E+115,4,E+2,479,5,488,480,8,481,E+115,16,482,485,18,483,485,19,484,485,22,E+14,485,35,486,E+42,36,E+43,487,46,E+108,E+109,6,E+6,489,7,E+6,490,8,503,491,14,501,492,26,493,502,37,494,E+86,38,E+86,495,39,496,518,40,497,E+57,41,E+57,498,42,538,499,48,E+43,500,49,E+45,526,26,E+88,502,28,E+87,E+115,9,504,508,10,505,508,11,506,508,12,507,508,13,547,508,14,541,509,15,513,510,20,511,514,25,512,E+42,46,E+29,E+30,20,540,514,26,515,542,37,516,E+86,38,E+86,517,39,520,518,48,E+58,519,50,E+73,E+85,40,521,E+57,41,E+57,522,42,538,523,48,E+43,524,49,E+45,525,51,529,526,60,E+55,527,62,E+55,528,63,E+55,E+46,60,532,530,62,E+55,531,63,533,E+46,62,E+55,533,64,534,E+54,66,535,E+53,69,536,E+65,70,537,E+52,72,E+59,E+51,48,E+43,539,52,E+66,E+72,25,E+24,E+42,26,E+88,542,28,E+87,543,34,E+100,544,35,546,545,36,E+42,E+115,36,E+43,E+115,17,548,E+22,20,549,E+21,33,552,550,44,E+17,551,45,E+19,E+20,44,E+15,553,45,E+15,E+20]),_Ue=O2e.from(EUe,yUe,oee.conditions,oee.results),RUe=new $2e({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),Dee=(t,e={})=>RUe.get(t,()=>k2e(_Ue,{endpointParams:t,logger:e.logger}));M2e.aws=zBe;var CUe=t=>async(e,r,n)=>{if(!n)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let o=await t(e,r,n),s=See(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!s)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let i=await L2e(n,{getEndpointParameterInstructions:s},e);return Object.assign(o,i)},bUe=async(t,e,r)=>({operation:See(e).operation,region:await hee(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),AUe=CUe(bUe);function Iee(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function wee(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var xUe=(t,e,r)=>o=>{let i=t(o).properties?.authSchemes;if(!i)return e(o);let a=[];for(let c of i){let{name:u,properties:f={},...m}=c,y=u.toLowerCase();u!==y&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${u}' to '${y}'`);let _;if(y==="sigv4a"){_="aws.auth#sigv4a";let x=i.find(T=>{let I=T.name.toLowerCase();return I!=="sigv4a"&&I.startsWith("sigv4")});if(_ee.sigv4aDependency()==="none"&&x)continue}else if(y.startsWith("sigv4"))_="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let C=r[_];if(!C)throw new Error(`Could not find HttpAuthOption create function for '${_}'`);let A=C(o);A.schemeId=_,A.signingProperties={...A.signingProperties||{},...m,...f},a.push(A)}return a},TUe=t=>{let e=[];switch(t.operation){default:e.push(Iee(t)),e.push(wee(t))}return e},vUe=xUe(Dee,TUe,{"aws.auth#sigv4":Iee,"aws.auth#sigv4a":wee}),DUe=t=>{let e=J2e(t),r=X2e(e);return Object.assign(r,{authSchemePreference:hee(t.authSchemePreference??[])})},IUe=t=>Object.assign(t,{useFipsEndpoint:t.useFipsEndpoint??!1,useDualstackEndpoint:t.useDualstackEndpoint??!1,forcePathStyle:t.forcePathStyle??!1,useAccelerateEndpoint:t.useAccelerateEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,disableMultiregionAccessPoints:t.disableMultiregionAccessPoints??!1,defaultSigningName:"s3",clientContextParams:t.clientContextParams??{}}),wUe={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},k=S2e(wUe,"AmazonS3","S3Client",N2e),xn={Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}},PUe={DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"},CopySource:{type:"contextParams",name:"CopySource"}},OUe={UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},DisableAccessPoints:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}},z={UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}},Pee={DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}},$t={Bucket:{type:"contextParams",name:"Bucket"}},$Ue={},kUe={UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0}},$A={Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}},MUe={UseObjectLambdaEndpoint:{type:"staticContextParams",value:!0}},ce=(t,e,r,n)=>[Ha(r)],Ed=(t,e,r,n)=>[Ha(r),yd(r)],LUe=(t,e,r,n)=>[Ha(r),n2e(r)],Pr=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0})],at=(t,e,r,n)=>[],za=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0}),Ha(r)],NUe=(t,e,r,n)=>[qa(r,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1","SHA512","MD5","XXHASH64","XXHASH3","XXHASH128"]})],FUe=(t,e,r,n)=>[qa(r,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1","SHA512","MD5","XXHASH64","XXHASH3","XXHASH128"]}),yd(r),gee(r)],BUe=(t,e,r,n)=>[Ha(r),yd(r),gee(r)],Oee=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1})],$ee=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),Ha(r)],UUe=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),o2e(r),Ha(r),yd(r)],GUe=(t,e,r,n)=>[yd(r)],qUe=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),Ha(r),yd(r)],rt=class t extends y2e{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.s3#S3ServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},VR=class t extends rt{static shapeId="com.amazonaws.s3#NoSuchUpload";name="NoSuchUpload";$fault="client";constructor(e){super({name:"NoSuchUpload",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},WR=class t extends rt{static shapeId="com.amazonaws.s3#AccessDenied";name="AccessDenied";$fault="client";constructor(e){super({name:"AccessDenied",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},KR=class t extends rt{static shapeId="com.amazonaws.s3#ObjectNotInActiveTierError";name="ObjectNotInActiveTierError";$fault="client";constructor(e){super({name:"ObjectNotInActiveTierError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},QR=class t extends rt{static shapeId="com.amazonaws.s3#BucketAlreadyExists";name="BucketAlreadyExists";$fault="client";constructor(e){super({name:"BucketAlreadyExists",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},YR=class t extends rt{static shapeId="com.amazonaws.s3#BucketAlreadyOwnedByYou";name="BucketAlreadyOwnedByYou";$fault="client";constructor(e){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},JR=class t extends rt{static shapeId="com.amazonaws.s3#NoSuchBucket";name="NoSuchBucket";$fault="client";constructor(e){super({name:"NoSuchBucket",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},XR=class t extends rt{static shapeId="com.amazonaws.s3#NoSuchKey";name="NoSuchKey";$fault="client";constructor(e){super({name:"NoSuchKey",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},ZR=class t extends rt{static shapeId="com.amazonaws.s3#InvalidObjectState";name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(e){super({name:"InvalidObjectState",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.StorageClass=e.StorageClass,this.AccessTier=e.AccessTier}},eC=class t extends rt{static shapeId="com.amazonaws.s3#NoSuchAnnotation";name="NoSuchAnnotation";$fault="client";constructor(e){super({name:"NoSuchAnnotation",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},tC=class t extends rt{static shapeId="com.amazonaws.s3#NotFound";name="NotFound";$fault="client";constructor(e){super({name:"NotFound",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},rC=class t extends rt{static shapeId="com.amazonaws.s3#InvalidPrefix";name="InvalidPrefix";$fault="client";constructor(e){super({name:"InvalidPrefix",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},nC=class t extends rt{static shapeId="com.amazonaws.s3#EncryptionTypeMismatch";name="EncryptionTypeMismatch";$fault="client";constructor(e){super({name:"EncryptionTypeMismatch",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},oC=class t extends rt{static shapeId="com.amazonaws.s3#InvalidRequest";name="InvalidRequest";$fault="client";constructor(e){super({name:"InvalidRequest",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},sC=class t extends rt{static shapeId="com.amazonaws.s3#InvalidWriteOffset";name="InvalidWriteOffset";$fault="client";constructor(e){super({name:"InvalidWriteOffset",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},iC=class t extends rt{static shapeId="com.amazonaws.s3#TooManyParts";name="TooManyParts";$fault="client";constructor(e){super({name:"TooManyParts",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},aC=class t extends rt{static shapeId="com.amazonaws.s3#AnnotationLimitExceeded";name="AnnotationLimitExceeded";$fault="client";constructor(e){super({name:"AnnotationLimitExceeded",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cC=class t extends rt{static shapeId="com.amazonaws.s3#AnnotationNameTooLong";name="AnnotationNameTooLong";$fault="client";constructor(e){super({name:"AnnotationNameTooLong",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},uC=class t extends rt{static shapeId="com.amazonaws.s3#InvalidAnnotationName";name="InvalidAnnotationName";$fault="client";constructor(e){super({name:"InvalidAnnotationName",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lC=class t extends rt{static shapeId="com.amazonaws.s3#UnsupportedMediaType";name="UnsupportedMediaType";$fault="client";constructor(e){super({name:"UnsupportedMediaType",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},dC=class t extends rt{static shapeId="com.amazonaws.s3#IdempotencyParameterMismatch";name="IdempotencyParameterMismatch";$fault="client";constructor(e){super({name:"IdempotencyParameterMismatch",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},pC=class t extends rt{static shapeId="com.amazonaws.s3#ObjectAlreadyInActiveTierError";name="ObjectAlreadyInActiveTierError";$fault="client";constructor(e){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},HUe="Account",jUe="AnalyticsAndOperator",fC="AccelerateConfiguration",kA="AccessControlList",_d="ACL",kee="AnalyticsConfigurationList",ru="AccessControlPolicy",Mee="AccessControlTranslation",Xm="AnalyticsConfiguration",zUe="AnnotationCount",VUe="AccessDenied",Lee="AbortDate",WUe="AnnotationDirective",Nee="AnnotationEntry",KUe="AnalyticsExportDestination",QUe="AnalyticsFilter",YUe="AllowedHeaders",JUe="AllowedHeader",XUe="AccountId",Fee="AbortIncompleteMultipartUpload",see="AccessKeyId",ZUe="AnnotationList",eGe="AnnotationLimitExceeded",tGe="AllowedMethods",rGe="AbortMultipartUpload",nGe="AbortMultipartUploadOutput",oGe="AbortMultipartUploadRequest",sGe="AllowedMethod",ug="AnnotationName",iGe="AnnotationNameTooLong",aGe="AllowedOrigins",cGe="AllowedOrigin",Bee="AnnotationPayload",uGe="AccessPointAlias",Uee="AccessPointArn",Gee="AnnotationPrefix",lGe="AllowQuotedRecordDelimiter",mL="AcceptRanges",qee="AbortRuleId",mC="AbacStatus",dGe="AnalyticsS3BucketDestination",pGe="ApplyServerSideEncryptionByDefault",fGe="ArchiveStatus",Hee="AccessTier",gC="AnnotationTableConfiguration",jee="AnnotationTableConfigurationResult",mGe="AnnotationTableConfigurationUpdates",lg="And",gGe="Annotations",w="Bucket",gL="BucketArn",hGe="BucketAlreadyExists",SGe="BucketAccountId",yGe="BucketAlreadyOwnedByYou",zee="BlockedEncryptionTypes",hL="BypassGovernanceRetention",EGe="BucketInfo",zr="BucketKeyEnabled",_Ge="BucketLifecycleConfiguration",RGe="BucketLocationName",hC="BucketLoggingStatus",CGe="BucketLocationType",bGe="BucketNamespace",AGe="BucketName",Vee="BytesProcessed",iee="BlockPublicAcls",aee="BlockPublicPolicy",SL="BucketRegion",Wee="BytesReturned",Kee="BytesScanned",dg="Body",yL="Buckets",Qee="Checksum",ge="ChecksumAlgorithm",xGe="CannedACL",TGe="CreateBucket",nL="CreateBucketConfiguration",vGe="CreateBucketMetadataConfiguration",DGe="CreateBucketMetadataConfigurationRequest",IGe="CreateBucketMetadataTableConfiguration",wGe="CreateBucketMetadataTableConfigurationRequest",PGe="CreateBucketOutput",OGe="CreateBucketRequest",Rd="CacheControl",ur="ChecksumCRC32",lr="ChecksumCRC32C",dr="ChecksumCRC64NVME",pg="Cache-Control",$Ge="CreationDate",fg="Content-Disposition",Cd="ContentDisposition",kGe="ContinuationEvent",mg="Content-Encoding",bd="ContentEncoding",MGe="CloudFunction",LGe="CloudFunctionConfiguration",Ad="ContentLanguage",gg="Content-Language",xd="Content-Length",Td="ContentLength",Qe="Content-MD5",pr="ChecksumMD5",Ye="ContentMD5",NGe="CompletedMultipartUpload",FGe="CompleteMultipartUploadOutput",BGe="CreateMultipartUploadOutput",UGe="CompleteMultipartUploadResult",GGe="CompleteMultipartUploadRequest",qGe="CreateMultipartUploadRequest",Yee="CompleteMultipartUpload",HGe="CreateMultipartUpload",EL="ChecksumMode",jGe="CopyObject",zGe="CopyObjectOutput",Jee="CopyObjectResult",SC="CORSConfiguration",_L="CORSRules",RL="CORSRule",VGe="CopyObjectRequest",WGe="CommonPrefix",KGe="CommonPrefixList",QGe="CompletedPartList",Xee="CopyPartResult",YGe="CompletedPart",MA="CommonPrefixes",CL="ContentRange",JGe="ConfirmRemoveSelfBucketAccess",Zee="Content-Range",vd="ConfigurationState",fr="ChecksumSHA1",mr="ChecksumSHA256",gr="ChecksumSHA512",ete="CopySourceIfMatch",tte="CopySourceIfModifiedSince",rte="CopySourceIfNoneMatch",nte="CopySourceIfUnmodifiedSince",XGe="CreateSessionOutput",ZGe="CreateSessionResult",e4e="CopySourceRange",t4e="CreateSessionRequest",ote="CopySourceSSECustomerAlgorithm",bL="CopySourceSSECustomerKey",ste="CopySourceSSECustomerKeyMD5",ite="CSV",ate="CopySourceVersionId",r4e="CSVInput",n4e="CSVOutput",cte="CopySource",o4e="CreateSession",un="ChecksumType",hg="Content-Type",s4e="ClientToken",Dd="ContentType",i4e="CompressionType",Vr="ContinuationToken",hr="ChecksumXXHASH64",Sr="ChecksumXXHASH3",yr="ChecksumXXHASH128",ute="Condition",a4e="Code",c4e="Comments",lte="Contents",u4e="Cont",cee="Credentials",nu="Days",l4e="DaysAfterInitiation",d4e="DeleteBucket",p4e="DeleteBucketAnalyticsConfiguration",f4e="DeleteBucketAnalyticsConfigurationRequest",m4e="DeleteBucketCors",g4e="DeleteBucketCorsRequest",h4e="DeleteBucketEncryption",S4e="DeleteBucketEncryptionRequest",y4e="DeleteBucketInventoryConfiguration",E4e="DeleteBucketInventoryConfigurationRequest",_4e="DeleteBucketIntelligentTieringConfiguration",R4e="DeleteBucketIntelligentTieringConfigurationRequest",C4e="DeleteBucketLifecycle",b4e="DeleteBucketLifecycleRequest",A4e="DeleteBucketMetadataConfiguration",x4e="DeleteBucketMetadataConfigurationRequest",T4e="DeleteBucketMetricsConfigurationRequest",v4e="DeleteBucketMetricsConfiguration",D4e="DeleteBucketMetadataTableConfiguration",I4e="DeleteBucketMetadataTableConfigurationRequest",w4e="DeleteBucketOwnershipControls",P4e="DeleteBucketOwnershipControlsRequest",O4e="DeleteBucketPolicy",$4e="DeleteBucketPolicyRequest",k4e="DeleteBucketRequest",M4e="DeleteBucketReplicationRequest",L4e="DeleteBucketReplication",N4e="DeleteBucketTagging",F4e="DeleteBucketTaggingRequest",B4e="DeleteBucketWebsite",U4e="DeleteBucketWebsiteRequest",G4e="DataExport",q4e="DefaultEventHold",H4e="DestinationIfMatch",j4e="DestinationIfModifiedSince",z4e="DestinationIfNoneMatch",V4e="DestinationIfUnmodifiedSince",ou="DeleteMarker",W4e="DeleteMarkerEntry",dte="DeleteMarkerReplication",K4e="DeleteMarkerVersionId",pte="DeleteMarkers",AL="DisplayName",Q4e="DeletedObject",Y4e="DeleteObjectAnnotation",J4e="DeleteObjectAnnotationOutput",X4e="DeleteObjectAnnotationRequest",Z4e="DeleteObjectOutput",eqe="DeleteObjectsOutput",tqe="DeleteObjectRequest",rqe="DeleteObjectsRequest",nqe="DeleteObjectTagging",oqe="DeleteObjectTaggingOutput",sqe="DeleteObjectTaggingRequest",iqe="DeletedObjects",aqe="DeleteObject",cqe="DeleteObjects",uqe="DeletePublicAccessBlock",lqe="DeletePublicAccessBlockRequest",dqe="DataRedundancy",fte="DefaultRetention",pqe="DeleteResult",mte="DestinationResult",gte="Date",oL="Delete",fqe="Deleted",Va="Delimiter",LA="Destination",mqe="Description",hte="Details",Id="Error",gqe="EmailAddress",Ste="EventBridgeConfiguration",L="ExpectedBucketOwner",su="EncryptionConfiguration",yte="ErrorCode",hqe="ErrorDetails",xL="ErrorDocument",Sqe="EndEvent",yqe="ExposeHeaders",Ete="EventHoldDuration",Eqe="EventHold",_qe="ExposeHeader",_te="ErrorMessage",Rqe="ExpiredObjectDeleteMarker",Rte="ExistingObjectReplication",yC="ExpiresString",Cte="ExpectedSourceBucketOwner",lt="ETag",Cqe="EncryptionTypeList",bqe="EncryptionTypeMismatch",TL="EncryptionType",Wa="EncodingType",Aqe="EventThreshold",bte="ExpressionType",vL="Encryption",xqe="Enabled",Ate="End",xte="Errors",DL="Events",IL="Event",ti="Expiration",Xo="Expires",Tte="Expression",qi="Filter",vte="FieldDelimiter",Tqe="FileHeaderInfo",vqe="FetchOwner",Dte="FilterRule",Dqe="FilterRuleList",Iqe="FilterRules",wqe="Field",Ite="Format",Pqe="Frequency",NA="Grants",Oqe="GetBucketAbac",$qe="GetBucketAccelerateConfiguration",kqe="GetBucketAccelerateConfigurationOutput",Mqe="GetBucketAnalyticsConfigurationOutput",Lqe="GetBucketAccelerateConfigurationRequest",Nqe="GetBucketAnalyticsConfigurationRequest",Fqe="GetBucketAnalyticsConfiguration",Bqe="GetBucketAbacOutput",Uqe="GetBucketAclOutput",Gqe="GetBucketAbacRequest",qqe="GetBucketAclRequest",Hqe="GetBucketAcl",jqe="GetBucketCors",zqe="GetBucketCorsOutput",Vqe="GetBucketCorsRequest",Wqe="GetBucketEncryption",Kqe="GetBucketEncryptionOutput",Qqe="GetBucketEncryptionRequest",Yqe="GetBucketInventoryConfiguration",Jqe="GetBucketInventoryConfigurationOutput",Xqe="GetBucketInventoryConfigurationRequest",Zqe="GetBucketIntelligentTieringConfiguration",eHe="GetBucketIntelligentTieringConfigurationOutput",tHe="GetBucketIntelligentTieringConfigurationRequest",rHe="GetBucketLocation",nHe="GetBucketLifecycleConfiguration",oHe="GetBucketLifecycleConfigurationOutput",sHe="GetBucketLifecycleConfigurationRequest",iHe="GetBucketLocationOutput",aHe="GetBucketLoggingOutput",cHe="GetBucketLocationRequest",uHe="GetBucketLoggingRequest",lHe="GetBucketLogging",dHe="GetBucketMetadataConfiguration",pHe="GetBucketMetadataConfigurationOutput",fHe="GetBucketMetricsConfigurationOutput",wte="GetBucketMetadataConfigurationResult",mHe="GetBucketMetadataConfigurationRequest",gHe="GetBucketMetricsConfigurationRequest",hHe="GetBucketMetricsConfiguration",SHe="GetBucketMetadataTableConfiguration",yHe="GetBucketMetadataTableConfigurationOutput",Pte="GetBucketMetadataTableConfigurationResult",EHe="GetBucketMetadataTableConfigurationRequest",_He="GetBucketNotificationConfiguration",RHe="GetBucketNotificationConfigurationRequest",CHe="GetBucketOwnershipControls",bHe="GetBucketOwnershipControlsOutput",AHe="GetBucketOwnershipControlsRequest",xHe="GetBucketPolicy",THe="GetBucketPolicyOutput",vHe="GetBucketPolicyRequest",DHe="GetBucketPolicyStatus",IHe="GetBucketPolicyStatusOutput",wHe="GetBucketPolicyStatusRequest",PHe="GetBucketReplication",OHe="GetBucketReplicationOutput",$He="GetBucketRequestPayment",kHe="GetBucketRequestPaymentOutput",MHe="GetBucketRequestPaymentRequest",LHe="GetBucketReplicationRequest",NHe="GetBucketTagging",FHe="GetBucketTaggingOutput",BHe="GetBucketTaggingRequest",UHe="GetBucketVersioning",GHe="GetBucketVersioningOutput",qHe="GetBucketVersioningRequest",HHe="GetBucketWebsite",jHe="GetBucketWebsiteOutput",zHe="GetBucketWebsiteRequest",wd="GrantFullControl",Ote="GlacierJobParameters",VHe="GetObject",WHe="GetObjectAcl",KHe="GetObjectAclOutput",QHe="GetObjectAnnotationOutput",YHe="GetObjectAttributesOutput",JHe="GetObjectAttributesParts",XHe="GetObjectAclRequest",ZHe="GetObjectAnnotationRequest",eje="GetObjectAttributesResponse",tje="GetObjectAttributesRequest",rje="GetObjectAnnotation",nje="GetObjectAttributes",oje="GetObjectLockConfiguration",sje="GetObjectLockConfigurationOutput",ije="GetObjectLockConfigurationRequest",aje="GetObjectLegalHold",cje="GetObjectLegalHoldOutput",uje="GetObjectLegalHoldRequest",lje="GetObjectOutput",dje="GetObjectRequest",pje="GetObjectRetentionOutput",fje="GetObjectRetentionRequest",mje="GetObjectRetention",gje="GetObjectTagging",hje="GetObjectTaggingOutput",Sje="GetObjectTorrentOutput",yje="GetObjectTaggingRequest",Eje="GetObjectTorrentRequest",_je="GetObjectTorrent",Rje="GetPublicAccessBlock",Cje="GetPublicAccessBlockOutput",bje="GetPublicAccessBlockRequest",Pd="GrantRead",Od="GrantReadACP",wL="GrantWrite",$d="GrantWriteACP",PL="Grant",OL="Grantee",Aje="HeadBucket",xje="HeadBucketOutput",Tje="HeadBucketRequest",vje="HttpErrorCodeReturnedEquals",$te="HostName",Dje="HeadObject",Ije="HeadObjectOutput",wje="HeadObjectRequest",Pje="HttpRedirectCode",Wt="Id",Oje="InvalidAnnotationName",Zm="InventoryConfiguration",kte="InventoryConfigurationList",kd="ID",$L="IndexDocument",$je="InventoryDestination",kje="IsEnabled",Mje="InventoryEncryption",Lje="InventoryFilter",Mte="IsLatest",Md="IfMatch",Nje="IfMatchInitiatedTime",Fje="IfMatchLastModifiedTime",Bje="IfMatchSize",kL="If-Modified-Since",Lte="IfModifiedSince",Uje="InitiateMultipartUploadResult",iu="If-Match",Sg="IfNoneMatch",Ld="If-None-Match",Gje="InventoryOptionalFields",qje="InvalidObjectState",Hje="IncludedObjectVersions",jje="InvalidPrefix",uee="IgnorePublicAcls",zje="IdempotencyParameterMismatch",lee="IsPublic",Vje="InvalidRequest",Wje="IsRestoreInProgress",ML="InputSerialization",Kje="InventoryS3BucketDestination",Qje="InventorySchedule",ni="IsTruncated",Yje="IntelligentTieringAndOperator",eg="IntelligentTieringConfiguration",Nte="IntelligentTieringConfigurationList",Fte="InventoryTableConfigurationResult",Jje="InventoryTableConfigurationUpdates",EC="InventoryTableConfiguration",Xje="IntelligentTieringFilter",Bte="IfUnmodifiedSince",LL="If-Unmodified-Since",Zje="InvalidWriteOffset",NL="Initiator",e6e="Initiated",Ute="JSON",t6e="JSONInput",r6e="JSONOutput",_C="JournalTableConfiguration",Gte="JournalTableConfigurationResult",n6e="JournalTableConfigurationUpdates",le="Key",o6e="KeyCount",s6e="KeyId",i6e="KmsKeyArn",FA="KeyMarker",a6e="KMSContext",c6e="KMSKeyArn",u6e="KMSKeyId",l6e="KMSMasterKeyID",d6e="KeyPrefixEquals",RC="Location",p6e="ListAllMyBucketsResult",f6e="ListAllMyDirectoryBucketsResult",m6e="ListBuckets",g6e="ListBucketAnalyticsConfigurations",h6e="ListBucketAnalyticsConfigurationsOutput",S6e="ListBucketAnalyticsConfigurationResult",y6e="ListBucketAnalyticsConfigurationsRequest",E6e="ListBucketInventoryConfigurations",_6e="ListBucketInventoryConfigurationsOutput",R6e="ListBucketInventoryConfigurationsRequest",C6e="ListBucketIntelligentTieringConfigurations",b6e="ListBucketIntelligentTieringConfigurationsOutput",A6e="ListBucketIntelligentTieringConfigurationsRequest",x6e="ListBucketMetricsConfigurations",T6e="ListBucketMetricsConfigurationsOutput",v6e="ListBucketMetricsConfigurationsRequest",D6e="ListBucketsOutput",I6e="ListBucketsRequest",qte="ListBucketResult",sL="LocationConstraint",iL="LifecycleConfiguration",w6e="ListDirectoryBuckets",P6e="ListDirectoryBucketsOutput",O6e="ListDirectoryBucketsRequest",FL="LoggingEnabled",$6e="LifecycleExpiration",k6e="LambdaFunctionArn",M6e="LambdaFunctionConfiguration",L6e="LambdaFunctionConfigurationList",N6e="LambdaFunctionConfigurations",CC="LegalHold",F6e="LocationInfo",B6e="ListInventoryConfigurationsResult",uo="LastModified",U6e="ListMetricsConfigurationsResult",G6e="LastModifiedTime",q6e="ListMultipartUploads",H6e="ListMultipartUploadsOutput",j6e="ListMultipartUploadsResult",z6e="ListMultipartUploadsRequest",BA="Last-Modified",V6e="ListObjects",W6e="ListObjectAnnotations",K6e="ListObjectAnnotationsOutput",Q6e="ListObjectAnnotationsRequest",Y6e="ListObjectsOutput",J6e="ListObjectsRequest",X6e="ListObjectsV2",Z6e="ListObjectsV2Output",e5e="ListObjectVersionsOutput",t5e="ListObjectsV2Request",r5e="ListObjectVersionsRequest",n5e="ListObjectVersions",o5e="ListParts",s5e="ListPartsOutput",i5e="ListPartsResult",a5e="ListPartsRequest",c5e="LifecycleRule",u5e="LifecycleRuleAndOperator",l5e="LifecycleRuleFilter",d5e="LifecycleRules",p5e="ListVersionsResult",Nd="Metadata",f5e="MetricsAndOperator",Hte="MaxAnnotationResults",m5e="MaxAgeSeconds",g5e="MaxBuckets",aL="MetadataConfiguration",jte="MetricsConfigurationList",zte="MetadataConfigurationResult",tg="MetricsConfiguration",h5e="MetadataDirective",S5e="MaxDirectoryBuckets",Vte="MfaDelete",Wte="MetadataEntry",y5e="MetricsFilter",BL="MFA",Kte="MFADelete",Fd="MaxKeys",UL="MissingMeta",E5e="MpuObjectSize",UA="MaxParts",cL="MetadataTableConfiguration",Qte="MetadataTableConfigurationResult",_5e="MetadataTableEncryptionConfiguration",Yte="MultipartUpload",R5e="MultipartUploadList",Jte="MaxUploads",Xte="Marker",Zte="Metrics",C5e="Message",b5e="Minutes",ere="Mode",au="Name",uL="NotificationConfiguration",A5e="NotificationConfigurationFilter",Bd="NextContinuationToken",tre="NoncurrentDays",x5e="NonEmptyKmsKeyArnString",T5e="NotFound",rre="NextKeyMarker",v5e="NextMarker",nre="NewerNoncurrentVersions",ore="NextPartNumberMarker",D5e="NoSuchAnnotation",I5e="NoSuchBucket",w5e="NoSuchKey",P5e="NoSuchUpload",O5e="NextUploadIdMarker",sre="NoncurrentVersionExpiration",$5e="NextVersionIdMarker",k5e="NoncurrentVersionTransitions",M5e="NoncurrentVersionTransitionList",ire="NoncurrentVersionTransition",es="Owner",L5e="ObjectAttributes",N5e="ObjectAlreadyInActiveTierError",bC="OwnershipControls",F5e="OwnershipControlsRule",B5e="OwnershipControlsRules",are="ObjectEncryption",U5e="OptionalFields",G5e="ObjectIdentifier",q5e="ObjectIdentifierList",cre="ObjectIfMatch",ure="OutputLocation",AC="ObjectLockConfiguration",H5e="ObjectLockEnabled",j5e="ObjectLockEnabledForBucket",yg="ObjectLockEventHold",Eg="ObjectLockEventHoldDurationDays",_g="ObjectLockEventHoldDurationYears",z5e="ObjectLockLegalHold",Ud="ObjectLockLegalHoldStatus",Gd="ObjectLockMode",V5e="ObjectLockRetention",qd="ObjectLockRetainUntilDate",W5e="ObjectLockRule",K5e="ObjectList",Q5e="ObjectNotInActiveTierError",lre="ObjectOwnership",GL="OptionalObjectAttributes",Y5e="ObjectParts",J5e="ObjectPart",X5e="ObjectSize",dre="ObjectSizeGreaterThan",pre="ObjectSizeLessThan",Z5e="OutputSchemaVersion",qL="OutputSerialization",eze="ObjectVersion",GA="ObjectVersionId",tze="ObjectVersionList",rze="Objects",fre="Object",Je="Prefix",xC="PublicAccessBlockConfiguration",nze="PutBucketAbac",oze="PutBucketAccelerateConfiguration",sze="PutBucketAccelerateConfigurationRequest",ize="PutBucketAnalyticsConfigurationRequest",aze="PutBucketAnalyticsConfiguration",cze="PutBucketAbacRequest",uze="PutBucketAclRequest",lze="PutBucketAcl",dze="PutBucketCors",pze="PutBucketCorsRequest",fze="PutBucketEncryption",mze="PutBucketEncryptionRequest",gze="PutBucketInventoryConfiguration",hze="PutBucketInventoryConfigurationRequest",Sze="PutBucketIntelligentTieringConfiguration",yze="PutBucketIntelligentTieringConfigurationRequest",Eze="PutBucketLogging",_ze="PutBucketLifecycleConfiguration",Rze="PutBucketLifecycleConfigurationOutput",Cze="PutBucketLifecycleConfigurationRequest",bze="PutBucketLoggingRequest",Aze="PutBucketMetricsConfiguration",xze="PutBucketMetricsConfigurationRequest",Tze="PutBucketNotificationConfiguration",vze="PutBucketNotificationConfigurationRequest",Dze="PutBucketOwnershipControls",Ize="PutBucketOwnershipControlsRequest",wze="PutBucketPolicy",Pze="PutBucketPolicyRequest",Oze="PutBucketReplication",$ze="PutBucketRequestPayment",kze="PutBucketRequestPaymentRequest",Mze="PutBucketReplicationRequest",Lze="PutBucketTagging",Nze="PutBucketTaggingRequest",Fze="PutBucketVersioning",Bze="PutBucketVersioningRequest",Uze="PutBucketWebsite",Gze="PutBucketWebsiteRequest",qA="PartsCount",qze="PartitionDateSource",Hze="ProgressEvent",jze="ParquetInput",zze="PartsList",cu="PartNumber",HA="PartNumberMarker",Vze="PutObject",Wze="PutObjectAcl",Kze="PutObjectAclOutput",Qze="PutObjectAnnotationOutput",Yze="PutObjectAclRequest",Jze="PutObjectAnnotationRequest",Xze="PutObjectAnnotation",Zze="PutObjectLockConfiguration",eVe="PutObjectLockConfigurationOutput",tVe="PutObjectLockConfigurationRequest",rVe="PutObjectLegalHold",nVe="PutObjectLegalHoldOutput",oVe="PutObjectLegalHoldRequest",sVe="PutObjectOutput",iVe="PutObjectRequest",aVe="PutObjectRetentionOutput",cVe="PutObjectRetentionRequest",uVe="PutObjectRetention",lVe="PutObjectTagging",dVe="PutObjectTaggingOutput",pVe="PutObjectTaggingRequest",TC="PartitionedPrefix",fVe="PutPublicAccessBlock",mVe="PutPublicAccessBlockRequest",mre="PolicyStatus",jA="Parts",zA="Part",gVe="Parquet",gre="Payer",hre="Payload",Sre="Permission",yre="Policy",Ere="Progress",hVe="Priority",_re="Protocol",SVe="Quiet",yVe="QueueArn",Rre="QuoteCharacter",EVe="QueueConfigurationList",_Ve="QueueConfigurations",Cre="QueueConfiguration",bre="QuoteEscapeCharacter",RVe="QuoteFields",CVe="Queue",VA="Role",HL="RedirectAllRequestsTo",$e="RequestCharged",Are="ResponseCacheControl",xre="ResponseContentDisposition",Tre="ResponseContentEncoding",vre="ResponseContentLanguage",Dre="ResponseContentType",vC="ReplicationConfiguration",jL="RecordDelimiter",Ire="ResponseExpires",bVe="RestoreExpiryDate",WA="RecordExpiration",AVe="RecordsEvent",xVe="ReplicaKmsKeyID",TVe="ReplaceKeyPrefixWith",vVe="ReplaceKeyWith",wre="ReplicaModifications",DVe="RenameObject",IVe="RenameObjectOutput",wVe="RestoreObjectOutput",PVe="RestoreOutputPath",OVe="RenameObjectRequest",$Ve="RestoreObjectRequest",kVe="RestoreObject",xe="RequestPayer",dee="RestrictPublicBuckets",DC="RequestPaymentConfiguration",Pre="RequestProgress",zL="RoutingRules",MVe="ReplicationRuleAndOperator",LVe="ReplicationRuleFilter",NVe="ReplicationRule",FVe="ReplicationRules",BVe="RequestRoute",lL="RestoreRequest",Ore="RoutingRule",Rg="ReplicationStatus",VL="RestoreStatus",UVe="RenameSource",$re="ReplicationTime",GVe="ReplicationTimeValue",qVe="RequestToken",HVe="RetainUntilDate",IC="Range",WL="Restore",jVe="Records",kre="Redirect",wC="Retention",Cg="Rules",Hd="Rule",Wr="Status",Mre="StartAfter",pee="SecretAccessKey",zVe="SseAlgorithm",VVe="StreamingBlob",Lre="S3BucketDestination",Kr="StorageClass",Nre="StorageClassAnalysis",WVe="StorageClassAnalysisDataExport",KVe="SessionCredentialValue",QVe="SessionCredentials",YVe="StatusCode",JVe="SkipDestinationValidation",XVe="StatsEvent",ZVe="SourceIfMatch",eWe="SourceIfModifiedSince",tWe="SourceIfNoneMatch",rWe="SourceIfUnmodifiedSince",KA="SSE-KMS",Fre="SseKmsEncryptedObjects",nWe="S3KeyFilter",oWe="S3Key",sWe="S3Location",iWe="SessionMode",aWe="SelectObjectContent",cWe="SelectObjectContentEventStream",uWe="SelectObjectContentOutput",lWe="SelectObjectContentRequest",Bre="SelectParameters",PC="SimplePrefix",Ure="ScanRange",Gre="SSE-S3",qre="SourceSelectionCriteria",Qr="ServerSideEncryption",dWe="SSEAlgorithm",pWe="ServerSideEncryptionByDefault",OC="ServerSideEncryptionConfiguration",Kt="SSECustomerAlgorithm",lo="SSECustomerKey",Qt="SSECustomerKeyMD5",KL="SSEKMS",fWe="SSEKMSEncryption",Hi="SSEKMSEncryptionContext",ln="SSEKMSKeyId",mWe="ServerSideEncryptionRule",gWe="ServerSideEncryptionRules",Hre="SSES3",fee="SessionToken",jre="S3TablesDestination",zre="S3TablesDestinationResult",hWe="S3",SWe="Schedule",uu="Size",yWe="Start",Vre="Stats",EWe="Suffix",jd="Tags",QA="TableArn",_We="TopicArn",RWe="TargetBucket",QL="TableBucketArn",CWe="TableBucketType",YL="TagCount",bWe="TopicConfigurationList",AWe="TopicConfigurations",Wre="TopicConfiguration",xWe="TaggingDirective",JL="TransitionDefaultMinimumObjectSize",Kre="TargetGrants",TWe="TargetGrant",vWe="TieringList",DWe="TransitionList",IWe="TooManyParts",bg="TableName",Qre="TableNamespace",Yre="TargetObjectKeyFormat",wWe="TargetPrefix",PWe="TotalPartsCount",XL="TableStatus",YA="TagSet",po="Tag",Zo="Tagging",Jre="Tier",OWe="Tierings",Xre="Tiering",$We="Time",Zre="Token",kWe="Topic",MWe="Transitions",ene="Transition",Ag="Type",LWe="Uploads",NWe="UpdateBucketMetadataAnnotationTableConfiguration",FWe="UpdateBucketMetadataAnnotationTableConfigurationRequest",BWe="UpdateBucketMetadataInventoryTableConfiguration",UWe="UpdateBucketMetadataInventoryTableConfigurationRequest",GWe="UpdateBucketMetadataJournalTableConfiguration",qWe="UpdateBucketMetadataJournalTableConfigurationRequest",Ka="UploadId",tne="UploadIdMarker",rne="UserMetadata",HWe="UnsupportedMediaType",jWe="UpdateObjectEncryption",zWe="UpdateObjectEncryptionRequest",VWe="UpdateObjectEncryptionResponse",WWe="UploadPart",KWe="UploadPartCopy",QWe="UploadPartCopyOutput",YWe="UploadPartCopyRequest",JWe="UploadPartOutput",XWe="UploadPartRequest",ZWe="URI",e8e="Upload",ZL="Value",$C="VersioningConfiguration",Re="VersionId",nne="VersionIdMarker",t8e="Versions",r8e="Version",kC="WebsiteConfiguration",n8e="WriteGetObjectResponse",o8e="WriteGetObjectResponseRequest",s8e="WriteOffsetBytes",xg="WebsiteRedirectLocation",one="Years",eN="annotationName",i8e="annotation-prefix",sne="accept-ranges",a8e="bucket-region",Dt="client",Qa="continuation-token",JA="delimiter",It="error",tN="eventPayload",c8e="endpoint",XA="encoding-type",u8e="fetch-owner",M="http",ve="httpChecksum",kt="httpError",l="httpHeader",l8e="hostLabel",Ce="httpPayload",zd="httpPrefixHeaders",U="httpQuery",ine="http://www.w3.org/2001/XMLSchema-instance",fo="id",d8e="idempotencyToken",ane="key-marker",p8e="marker",f8e="max-annotation-results",m8e="max-buckets",g8e="max-directory-buckets",rN="max-keys",h8e="max-parts",S8e="max-uploads",Tg="prefix",ZA="partNumber",y8e="part-number-marker",cne="response-cache-control",une="response-content-disposition",lne="response-content-encoding",dne="response-content-language",pne="response-content-type",fne="response-expires",mne="smithy.ts.sdk.synthetic.com.amazonaws.s3",E8e="start-after",gne="streaming",vg="uploadId",_8e="upload-id-marker",Yt="versionId",R8e="version-id-marker",hne="xsi",C8e="xmlAttribute",ne="xmlFlattened",v="xmlName",Sne="xmlNamespace",Vd="x-amz-acl",yne="x-amz-abort-date",b8e="x-amz-access-point-alias",Ene="x-amz-abort-rule-id",A8e="x-amz-archive-status",_ne="x-amz-bucket-arn",nN="x-amz-bypass-governance-retention",x8e="x-amz-bucket-location-name",T8e="x-amz-bucket-location-type",v8e="x-amz-bucket-namespace",D8e="x-amz-bucket-object-lock-enabled",Rne="x-amz-bucket-object-lock-token",I8e="x-amz-bucket-region",oN="x-amz-checksum-algorithm",oi="x-amz-checksum-crc32",si="x-amz-checksum-crc32c",ii="x-amz-checksum-crc64nvme",ai="x-amz-checksum-md5",sN="x-amz-checksum-mode",w8e="x-amz-confirm-remove-self-bucket-access",ci="x-amz-checksum-sha1",ui="x-amz-checksum-sha256",li="x-amz-checksum-sha512",Cne="x-amz-copy-source",bne="x-amz-copy-source-if-match",Ane="x-amz-copy-source-if-modified-since",xne="x-amz-copy-source-if-none-match",Tne="x-amz-copy-source-if-unmodified-since",P8e="x-amz-create-session-mode",O8e="x-amz-copy-source-range",vne="x-amz-copy-source-server-side-encryption-customer-algorithm",Dne="x-amz-copy-source-server-side-encryption-customer-key",Ine="x-amz-copy-source-server-side-encryption-customer-key-MD5",wne="x-amz-copy-source-version-id",Ya="x-amz-checksum-type",$8e="x-amz-client-token",di="x-amz-checksum-xxhash64",pi="x-amz-checksum-xxhash3",fi="x-amz-checksum-xxhash128",ex="x-amz-delete-marker",Dg="x-amz-expiration",N="x-amz-expected-bucket-owner",k8e="x-amz-fwd-error-code",M8e="x-amz-fwd-error-message",L8e="x-amz-fwd-header-Cache-Control",N8e="x-amz-fwd-header-Content-Disposition",F8e="x-amz-fwd-header-Content-Encoding",B8e="x-amz-fwd-header-Content-Language",U8e="x-amz-fwd-header-Content-Range",G8e="x-amz-fwd-header-Content-Type",q8e="x-amz-fwd-header-ETag",H8e="x-amz-fwd-header-Expires",j8e="x-amz-fwd-header-Last-Modified",z8e="x-amz-fwd-header-accept-ranges",V8e="x-amz-fwd-header-x-amz-checksum-crc32",W8e="x-amz-fwd-header-x-amz-checksum-crc32c",K8e="x-amz-fwd-header-x-amz-checksum-crc64nvme",Q8e="x-amz-fwd-header-x-amz-checksum-md5",Y8e="x-amz-fwd-header-x-amz-checksum-sha1",J8e="x-amz-fwd-header-x-amz-checksum-sha256",X8e="x-amz-fwd-header-x-amz-checksum-sha512",Z8e="x-amz-fwd-header-x-amz-checksum-xxhash64",eKe="x-amz-fwd-header-x-amz-checksum-xxhash3",tKe="x-amz-fwd-header-x-amz-checksum-xxhash128",rKe="x-amz-fwd-header-x-amz-delete-marker",nKe="x-amz-fwd-header-x-amz-expiration",oKe="x-amz-fwd-header-x-amz-missing-meta",sKe="x-amz-fwd-header-x-amz-mp-parts-count",iKe="x-amz-fwd-header-x-amz-object-lock-legal-hold",aKe="x-amz-fwd-header-x-amz-object-lock-mode",cKe="x-amz-fwd-header-x-amz-object-lock-retain-until-date",uKe="x-amz-fwd-header-x-amz-restore",lKe="x-amz-fwd-header-x-amz-request-charged",dKe="x-amz-fwd-header-x-amz-replication-status",pKe="x-amz-fwd-header-x-amz-storage-class",fKe="x-amz-fwd-header-x-amz-server-side-encryption",mKe="x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id",gKe="x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled",hKe="x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm",SKe="x-amz-fwd-header-x-amz-server-side-encryption-customer-key-MD5",yKe="x-amz-fwd-header-x-amz-tagging-count",EKe="x-amz-fwd-header-x-amz-version-id",_Ke="x-amz-fwd-status",Wd="x-amz-grant-full-control",Kd="x-amz-grant-read",Qd="x-amz-grant-read-acp",iN="x-amz-grant-write",Yd="x-amz-grant-write-acp",RKe="x-amz-if-match-initiated-time",CKe="x-amz-if-match-last-modified-time",bKe="x-amz-if-match-size",Jd="x-amz-meta-",aN="x-amz-mfa",AKe="x-amz-metadata-directive",Pne="x-amz-missing-meta",xKe="x-amz-mp-object-size",TKe="x-amz-max-parts",One="x-amz-mp-parts-count",vKe="x-amz-object-attributes",DKe="x-amz-object-annotation-directive",$ne="x-amz-object-if-match",Ig="x-amz-object-lock-event-hold",wg="x-amz-object-lock-event-hold-duration-days",Pg="x-amz-object-lock-event-hold-duration-years",Og="x-amz-object-lock-legal-hold",$g="x-amz-object-lock-mode",kg="x-amz-object-lock-retain-until-date",IKe="x-amz-object-ownership",cN="x-amz-optional-object-attributes",wKe="x-amz-object-size",tx="x-amz-object-version-id",PKe="x-amz-part-number-marker",kne="x-amz-restore",Ne="x-amz-request-charged",OKe="x-amz-restore-output-path",Te="x-amz-request-payer",$Ke="x-amz-request-route",uN="x-amz-replication-status",kKe="x-amz-rename-source",MKe="x-amz-rename-source-if-match",LKe="x-amz-rename-source-if-modified-since",NKe="x-amz-rename-source-if-none-match",FKe="x-amz-rename-source-if-unmodified-since",BKe="x-amz-request-token",Mg="x-amz-storage-class",ke="x-amz-sdk-checksum-algorithm",UKe="x-amz-skip-destination-validation",Mne="x-amz-source-expected-bucket-owner",dn="x-amz-server-side-encryption",Gn="x-amz-server-side-encryption-aws-kms-key-id",qn="x-amz-server-side-encryption-bucket-key-enabled",Ja="x-amz-server-side-encryption-context",Er="x-amz-server-side-encryption-customer-algorithm",ts="x-amz-server-side-encryption-customer-key",_r="x-amz-server-side-encryption-customer-key-MD5",lN="x-amz-tagging",Lne="x-amz-tagging-count",GKe="x-amz-tagging-directive",dN="x-amz-transition-default-minimum-object-size",mi="x-amz-version-id",qKe="x-amz-write-offset-bytes",Lg="x-amz-website-redirect-location",HKe="xsi:type",h="com.amazonaws.s3",Nne=new Eee(mne),Fne=[-3,mne,"S3ServiceException",0,[],[]];Nne.registerError(Fne,rt);var Et=new Eee(h),Bne=[-3,h,VUe,{[It]:Dt,[kt]:403},[],[]];Et.registerError(Bne,WR);var Une=[-3,h,eGe,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Une,aC);var Gne=[-3,h,iGe,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Gne,cC);var qne=[-3,h,hGe,{[It]:Dt,[kt]:409},[],[]];Et.registerError(qne,QR);var Hne=[-3,h,yGe,{[It]:Dt,[kt]:409},[],[]];Et.registerError(Hne,YR);var jne=[-3,h,bqe,{[It]:Dt,[kt]:400},[],[]];Et.registerError(jne,nC);var zne=[-3,h,zje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(zne,dC);var Vne=[-3,h,Oje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Vne,uC);var Wne=[-3,h,qje,{[It]:Dt,[kt]:403},[Kr,Hee],[0,0]];Et.registerError(Wne,ZR);var Kne=[-3,h,jje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Kne,rC);var Qne=[-3,h,Vje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Qne,oC);var Yne=[-3,h,Zje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Yne,sC);var Jne=[-3,h,D5e,{[It]:Dt,[kt]:404},[],[]];Et.registerError(Jne,eC);var Xne=[-3,h,I5e,{[It]:Dt,[kt]:404},[],[]];Et.registerError(Xne,JR);var Zne=[-3,h,w5e,{[It]:Dt,[kt]:404},[],[]];Et.registerError(Zne,XR);var eoe=[-3,h,P5e,{[It]:Dt,[kt]:404},[],[]];Et.registerError(eoe,VR);var toe=[-3,h,T5e,{[It]:Dt},[],[]];Et.registerError(toe,tC);var roe=[-3,h,N5e,{[It]:Dt,[kt]:403},[],[]];Et.registerError(roe,pC);var noe=[-3,h,Q5e,{[It]:Dt,[kt]:403},[],[]];Et.registerError(noe,KR);var ooe=[-3,h,IWe,{[It]:Dt,[kt]:400},[],[]];Et.registerError(ooe,iC);var soe=[-3,h,HWe,{[It]:Dt,[kt]:415},[],[]];Et.registerError(soe,lC);var ioe=[Nne,Et],aoe=[0,h,bL,8,0],jKe=[0,h,x5e,8,0],mee=[0,h,KVe,8,0],rs=[0,h,lo,8,0],Xa=[0,h,Hi,8,0],Or=[0,h,ln,8,0],lu=[0,h,VVe,{[gne]:1},42],pN=[3,h,mC,0,[Wr],[0]],coe=[3,h,Fee,0,[l4e],[1]],uoe=[3,h,nGe,0,[$e],[[0,{[l]:Ne}]]],loe=[3,h,oGe,0,[w,le,Ka,xe,L,Nje],[[0,1],[0,1],[0,{[U]:vg}],[0,{[l]:Te}],[0,{[l]:N}],[6,{[l]:RKe}]],3],doe=[3,h,fC,0,[Wr],[0]],fN=[3,h,ru,0,[NA,es],[[()=>lx,{[v]:kA}],()=>gi]],poe=[3,h,Mee,0,[es],[0],1],foe=[3,h,jUe,0,[Je,jd],[0,[()=>ji,{[ne]:1,[v]:po}]]],rx=[3,h,Xm,0,[Wt,Nre,qi],[0,()=>wue,[()=>ele,0]],2],moe=[3,h,KUe,0,[Lre],[()=>goe],1],goe=[3,h,dGe,0,[Ite,w,SGe,Je],[0,0,0,0],2],hoe=[3,h,Nee,0,[ug,uo,uu,lt,ge,Rg],[0,4,1,0,[64,{[ne]:1}],0],3],Soe=[3,h,gC,0,[vd,su,VA],[0,()=>Xd,0],1],yoe=[3,h,jee,0,[vd,XL,Id,bg,QA,VA],[0,0,()=>Ng,0,0,0],1],Eoe=[3,h,mGe,0,[vd,su,VA],[0,()=>Xd,0],1],_oe=[3,h,zee,0,[TL],[[()=>YKe,{[ne]:1}]]],Roe=[3,h,w,0,[au,$Ge,SL,gL],[0,4,0,0]],Coe=[3,h,EGe,0,[dqe,Ag],[0,0]],boe=[3,h,_Ge,0,[Cg],[[()=>Jue,{[ne]:1,[v]:Hd}]],1],Aoe=[3,h,hC,0,[FL],[[()=>_N,0]]],xoe=[3,h,Qee,0,[ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,un],[0,0,0,0,0,0,0,0,0,0,0]],Toe=[3,h,WGe,0,[Je],[0]],voe=[3,h,NGe,0,[jA],[[()=>WKe,{[ne]:1,[v]:zA}]]],Doe=[3,h,YGe,0,[lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cu],[0,0,0,0,0,0,0,0,0,0,0,1]],Ioe=[3,h,FGe,{[v]:UGe},[RC,w,le,ti,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,un,Qr,Re,ln,zr,$e],[0,0,0,[0,{[l]:Dg}],0,0,0,0,0,0,0,0,0,0,0,0,[0,{[l]:dn}],[0,{[l]:mi}],[()=>Or,{[l]:Gn}],[2,{[l]:qn}],[0,{[l]:Ne}]]],woe=[3,h,GGe,0,[w,le,Ka,Yte,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,un,E5e,xe,L,Md,Sg,Kt,lo,Qt],[[0,1],[0,1],[0,{[U]:vg}],[()=>voe,{[Ce]:1,[v]:Yee}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[1,{[l]:xKe}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:iu}],[0,{[l]:Ld}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}]],3],Poe=[3,h,ute,0,[vje,d6e],[0,0]],Ooe=[3,h,kGe,0,[],[]],$oe=[3,h,zGe,0,[Jee,ti,ate,Re,Qr,Kt,Qt,ln,Hi,zr,$e],[[()=>Moe,16],[0,{[l]:Dg}],[0,{[l]:wne}],[0,{[l]:mi}],[0,{[l]:dn}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Gn}],[()=>Xa,{[l]:Ja}],[2,{[l]:qn}],[0,{[l]:Ne}]]],koe=[3,h,VGe,0,[w,cte,le,_d,Rd,ge,Cd,bd,Ad,Dd,ete,tte,rte,nte,Xo,wd,Pd,Od,$d,Md,Sg,Nd,h5e,xWe,WUe,Qr,Kr,xg,Kt,lo,Qt,ln,Hi,zr,ote,bL,ste,xe,Zo,Gd,qd,Ud,yg,Eg,_g,L,Cte],[[0,1],[0,{[l]:Cne}],[0,1],[0,{[l]:Vd}],[0,{[l]:pg}],[0,{[l]:oN}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:gg}],[0,{[l]:hg}],[0,{[l]:bne}],[4,{[l]:Ane}],[0,{[l]:xne}],[4,{[l]:Tne}],[4,{[l]:Xo}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[0,{[l]:Yd}],[0,{[l]:iu}],[0,{[l]:Ld}],[128,{[zd]:Jd}],[0,{[l]:AKe}],[0,{[l]:GKe}],[0,{[l]:DKe}],[0,{[l]:dn}],[0,{[l]:Mg}],[0,{[l]:Lg}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[()=>Or,{[l]:Gn}],[()=>Xa,{[l]:Ja}],[2,{[l]:qn}],[0,{[l]:vne}],[()=>aoe,{[l]:Dne}],[0,{[l]:Ine}],[0,{[l]:Te}],[0,{[l]:lN}],[0,{[l]:$g}],[5,{[l]:kg}],[0,{[l]:Og}],[0,{[l]:Ig}],[1,{[l]:wg}],[1,{[l]:Pg}],[0,{[l]:N}],[0,{[l]:Mne}]],3],Moe=[3,h,Jee,0,[lt,uo,un,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr],[0,4,0,0,0,0,0,0,0,0,0,0,0]],Loe=[3,h,Xee,0,[lt,uo,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr],[0,4,0,0,0,0,0,0,0,0,0,0]],Noe=[3,h,SC,0,[_L],[[()=>Yue,{[ne]:1,[v]:RL}]],1],Foe=[3,h,RL,0,[tGe,aGe,kd,YUe,yqe,m5e],[[64,{[ne]:1,[v]:sGe}],[64,{[ne]:1,[v]:cGe}],0,[64,{[ne]:1,[v]:JUe}],[64,{[ne]:1,[v]:_qe}],1],2],Boe=[3,h,nL,0,[sL,RC,w,jd],[0,()=>jae,()=>Coe,[()=>ji,0]]],Uoe=[3,h,DGe,0,[w,aL,Ye,ge,L],[[0,1],[()=>zae,{[Ce]:1,[v]:aL}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Goe=[3,h,wGe,0,[w,cL,Ye,ge,L],[[0,1],[()=>Kae,{[Ce]:1,[v]:cL}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],qoe=[3,h,PGe,0,[RC,gL],[[0,{[l]:RC}],[0,{[l]:_ne}]]],Hoe=[3,h,OGe,0,[w,_d,nL,wd,Pd,Od,wL,$d,j5e,lre,bGe],[[0,1],[0,{[l]:Vd}],[()=>Boe,{[Ce]:1,[v]:nL}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[0,{[l]:iN}],[0,{[l]:Yd}],[2,{[l]:D8e}],[0,{[l]:IKe}],[0,{[l]:v8e}]],1],joe=[3,h,BGe,{[v]:Uje},[Lee,qee,w,le,Ka,Qr,Kt,Qt,ln,Hi,zr,$e,ge,un],[[4,{[l]:yne}],[0,{[l]:Ene}],[0,{[v]:w}],0,0,[0,{[l]:dn}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Gn}],[()=>Xa,{[l]:Ja}],[2,{[l]:qn}],[0,{[l]:Ne}],[0,{[l]:oN}],[0,{[l]:Ya}]]],zoe=[3,h,qGe,0,[w,le,_d,Rd,Cd,bd,Ad,Dd,Xo,wd,Pd,Od,$d,Nd,Qr,Kr,xg,Kt,lo,Qt,ln,Hi,zr,xe,Zo,Gd,qd,Ud,yg,Eg,_g,L,ge,un],[[0,1],[0,1],[0,{[l]:Vd}],[0,{[l]:pg}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:gg}],[0,{[l]:hg}],[4,{[l]:Xo}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[0,{[l]:Yd}],[128,{[zd]:Jd}],[0,{[l]:dn}],[0,{[l]:Mg}],[0,{[l]:Lg}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[()=>Or,{[l]:Gn}],[()=>Xa,{[l]:Ja}],[2,{[l]:qn}],[0,{[l]:Te}],[0,{[l]:lN}],[0,{[l]:$g}],[5,{[l]:kg}],[0,{[l]:Og}],[0,{[l]:Ig}],[1,{[l]:wg}],[1,{[l]:Pg}],[0,{[l]:N}],[0,{[l]:oN}],[0,{[l]:Ya}]],2],Voe=[3,h,XGe,{[v]:ZGe},[cee,Qr,ln,Hi,zr],[[()=>Rue,{[v]:cee}],[0,{[l]:dn}],[()=>Or,{[l]:Gn}],[()=>Xa,{[l]:Ja}],[2,{[l]:qn}]],1],Woe=[3,h,t4e,0,[w,iWe,Qr,ln,Hi,zr],[[0,1],[0,{[l]:P8e}],[0,{[l]:dn}],[()=>Or,{[l]:Gn}],[()=>Xa,{[l]:Ja}],[2,{[l]:qn}]],1],Koe=[3,h,r4e,0,[Tqe,c4e,bre,jL,vte,Rre,lGe],[0,0,0,0,0,0,2]],Qoe=[3,h,n4e,0,[RVe,bre,jL,vte,Rre],[0,0,0,0,0]],Yoe=[3,h,fte,0,[ere,nu,one,q4e],[0,1,1,()=>gN]],Joe=[3,h,oL,0,[rze,SVe],[[()=>i9e,{[ne]:1,[v]:fre}],2],1],Xoe=[3,h,f4e,0,[w,Wt,L],[[0,1],[0,{[U]:fo}],[0,{[l]:N}]],2],Zoe=[3,h,g4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],ese=[3,h,S4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],tse=[3,h,R4e,0,[w,Wt,L],[[0,1],[0,{[U]:fo}],[0,{[l]:N}]],2],rse=[3,h,E4e,0,[w,Wt,L],[[0,1],[0,{[U]:fo}],[0,{[l]:N}]],2],nse=[3,h,b4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],ose=[3,h,x4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],sse=[3,h,I4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],ise=[3,h,T4e,0,[w,Wt,L],[[0,1],[0,{[U]:fo}],[0,{[l]:N}]],2],ase=[3,h,P4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],cse=[3,h,$4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],use=[3,h,M4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],lse=[3,h,k4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],dse=[3,h,F4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],pse=[3,h,U4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],fse=[3,h,Q4e,0,[le,Re,ou,K4e],[0,0,2,0]],mse=[3,h,W4e,0,[es,le,Re,Mte,uo],[()=>gi,0,0,2,4]],gse=[3,h,dte,0,[Wr],[0]],hse=[3,h,J4e,0,[GA,$e],[[0,{[l]:tx}],[0,{[l]:Ne}]]],Sse=[3,h,X4e,0,[w,le,ug,Re,xe,L,cre],[[0,1],[0,1],[0,{[U]:eN}],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:$ne}]],3],yse=[3,h,Z4e,0,[ou,Re,$e],[[2,{[l]:ex}],[0,{[l]:mi}],[0,{[l]:Ne}]]],Ese=[3,h,tqe,0,[w,le,BL,Re,xe,hL,L,Md,Fje,Bje],[[0,1],[0,1],[0,{[l]:aN}],[0,{[U]:Yt}],[0,{[l]:Te}],[2,{[l]:nN}],[0,{[l]:N}],[0,{[l]:iu}],[6,{[l]:CKe}],[1,{[l]:bKe}]],2],_se=[3,h,eqe,{[v]:pqe},[fqe,$e,xte],[[()=>KKe,{[ne]:1}],[0,{[l]:Ne}],[()=>JKe,{[ne]:1,[v]:Id}]]],Rse=[3,h,rqe,0,[w,oL,BL,xe,hL,L,ge],[[0,1],[()=>Joe,{[Ce]:1,[v]:oL}],[0,{[l]:aN}],[0,{[l]:Te}],[2,{[l]:nN}],[0,{[l]:N}],[0,{[l]:ke}]],2],Cse=[3,h,oqe,0,[Re],[[0,{[l]:mi}]]],bse=[3,h,sqe,0,[w,le,Re,L],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:N}]],2],Ase=[3,h,lqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],xse=[3,h,LA,0,[w,HUe,Kr,Mee,su,$re,Zte],[0,0,0,()=>poe,()=>Dse,()=>oue,()=>Yae],1],Tse=[3,h,mte,0,[CWe,QL,Qre],[0,0,0]],vse=[3,h,vL,0,[TL,u6e,a6e],[0,[()=>Or,0],0],1],Dse=[3,h,su,0,[xVe],[0]],Ise=[3,h,Sqe,0,[],[]],wse=[3,h,Id,0,[le,Re,a4e,C5e],[0,0,0,0]],Ng=[3,h,hqe,0,[yte,_te],[0,0]],mN=[3,h,xL,0,[le],[0],1],Pse=[3,h,Ste,0,[],[]],gN=[3,h,Ete,0,[nu,one],[1,1]],Ose=[3,h,Rte,0,[Wr],[0],1],$se=[3,h,Dte,0,[au,ZL],[0,0]],kse=[3,h,Bqe,0,[mC],[[()=>pN,16]]],Mse=[3,h,Gqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Lse=[3,h,kqe,{[v]:fC},[Wr,$e],[0,[0,{[l]:Ne}]]],Nse=[3,h,Lqe,0,[w,L,xe],[[0,1],[0,{[l]:N}],[0,{[l]:Te}]],1],Fse=[3,h,Uqe,{[v]:ru},[es,NA],[()=>gi,[()=>lx,{[v]:kA}]]],Bse=[3,h,qqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Use=[3,h,Mqe,0,[Xm],[[()=>rx,16]]],Gse=[3,h,Nqe,0,[w,Wt,L],[[0,1],[0,{[U]:fo}],[0,{[l]:N}]],2],qse=[3,h,zqe,{[v]:SC},[_L],[[()=>Yue,{[ne]:1,[v]:RL}]]],Hse=[3,h,Vqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],jse=[3,h,Kqe,0,[OC],[[()=>ON,16]]],zse=[3,h,Qqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Vse=[3,h,eHe,0,[eg],[[()=>nx,16]]],Wse=[3,h,tHe,0,[w,Wt,L],[[0,1],[0,{[U]:fo}],[0,{[l]:N}]],2],Kse=[3,h,Jqe,0,[Zm],[[()=>ox,16]]],Qse=[3,h,Xqe,0,[w,Wt,L],[[0,1],[0,{[U]:fo}],[0,{[l]:N}]],2],Yse=[3,h,oHe,{[v]:iL},[Cg,JL],[[()=>Jue,{[ne]:1,[v]:Hd}],[0,{[l]:dN}]]],Jse=[3,h,sHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Xse=[3,h,iHe,{[v]:sL},[sL],[0]],Zse=[3,h,cHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],eie=[3,h,aHe,{[v]:hC},[FL],[[()=>_N,0]]],tie=[3,h,uHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],rie=[3,h,pHe,0,[wte],[[()=>oie,16]]],nie=[3,h,mHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],oie=[3,h,wte,0,[zte],[()=>Vae],1],sie=[3,h,yHe,0,[Pte],[[()=>aie,16]]],iie=[3,h,EHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],aie=[3,h,Pte,0,[Qte,Wr,Id],[()=>Qae,0,()=>Ng],2],cie=[3,h,fHe,0,[tg],[[()=>sx,16]]],uie=[3,h,gHe,0,[w,Wt,L],[[0,1],[0,{[U]:fo}],[0,{[l]:N}]],2],lie=[3,h,RHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],die=[3,h,bHe,0,[bC],[[()=>TN,16]]],pie=[3,h,AHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],fie=[3,h,THe,0,[yre],[[0,16]]],mie=[3,h,vHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],gie=[3,h,IHe,0,[mre],[[()=>dce,16]]],hie=[3,h,wHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Sie=[3,h,OHe,0,[vC],[[()=>IN,16]]],yie=[3,h,LHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Eie=[3,h,kHe,{[v]:DC},[gre],[0]],_ie=[3,h,MHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Rie=[3,h,FHe,{[v]:Zo},[YA],[[()=>ji,0]],1],Cie=[3,h,BHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],bie=[3,h,GHe,{[v]:$C},[Wr,Kte],[0,[0,{[v]:Vte}]]],Aie=[3,h,qHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],xie=[3,h,jHe,{[v]:kC},[HL,$L,xL,zL],[()=>DN,()=>SN,()=>mN,[()=>Zue,0]]],Tie=[3,h,zHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],vie=[3,h,KHe,{[v]:ru},[es,NA,$e],[()=>gi,[()=>lx,{[v]:kA}],[0,{[l]:Ne}]]],Die=[3,h,XHe,0,[w,le,Re,xe,L],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}]],2],Iie=[3,h,QHe,0,[Bee,GA,uo,Td,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,un,Qr,$e,Rg],[[()=>lu,16],[0,{[l]:tx}],[4,{[l]:BA}],[1,{[l]:xd}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[0,{[l]:dn}],[0,{[l]:Ne}],[0,{[l]:uN}]]],wie=[3,h,ZHe,0,[w,le,ug,Re,xe,L,EL],[[0,1],[0,1],[0,{[U]:eN}],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:sN}]],3],Pie=[3,h,YHe,{[v]:eje},[ou,uo,Re,$e,lt,Qee,Y5e,Kr,X5e],[[2,{[l]:ex}],[4,{[l]:BA}],[0,{[l]:mi}],[0,{[l]:Ne}],0,()=>xoe,[()=>Oie,0],0,1]],Oie=[3,h,JHe,0,[PWe,HA,ore,UA,ni,jA],[[1,{[v]:qA}],0,0,1,2,[()=>l9e,{[ne]:1,[v]:zA}]]],$ie=[3,h,tje,0,[w,le,L5e,Re,UA,HA,Kt,lo,Qt,xe,L],[[0,1],[0,1],[64,{[l]:vKe}],[0,{[U]:Yt}],[1,{[l]:TKe}],[0,{[l]:PKe}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:Te}],[0,{[l]:N}]],3],kie=[3,h,cje,0,[CC],[[()=>bN,{[Ce]:1,[v]:CC}]]],Mie=[3,h,uje,0,[w,le,Re,xe,L],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}]],2],Lie=[3,h,sje,0,[AC],[[()=>CN,16]]],Nie=[3,h,ije,0,[w,L],[[0,1],[0,{[l]:N}]],1],Fie=[3,h,lje,0,[dg,ou,mL,ti,WL,uo,Td,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,un,UL,Re,Rd,Cd,bd,Ad,CL,Dd,Xo,yC,xg,Qr,Nd,Kt,Qt,ln,zr,Kr,$e,Rg,qA,YL,Gd,qd,Ud,yg,Eg,_g],[[()=>lu,16],[2,{[l]:ex}],[0,{[l]:sne}],[0,{[l]:Dg}],[0,{[l]:kne}],[4,{[l]:BA}],[1,{[l]:xd}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[1,{[l]:Pne}],[0,{[l]:mi}],[0,{[l]:pg}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:gg}],[0,{[l]:Zee}],[0,{[l]:hg}],[4,{[l]:Xo}],[0,{[l]:yC}],[0,{[l]:Lg}],[0,{[l]:dn}],[128,{[zd]:Jd}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Gn}],[2,{[l]:qn}],[0,{[l]:Mg}],[0,{[l]:Ne}],[0,{[l]:uN}],[1,{[l]:One}],[1,{[l]:Lne}],[0,{[l]:$g}],[5,{[l]:kg}],[0,{[l]:Og}],[0,{[l]:Ig}],[1,{[l]:wg}],[1,{[l]:Pg}]]],Bie=[3,h,dje,0,[w,le,Md,Lte,Sg,Bte,IC,Are,xre,Tre,vre,Dre,Ire,Re,Kt,lo,Qt,xe,cu,L,EL],[[0,1],[0,1],[0,{[l]:iu}],[4,{[l]:kL}],[0,{[l]:Ld}],[4,{[l]:LL}],[0,{[l]:IC}],[0,{[U]:cne}],[0,{[U]:une}],[0,{[U]:lne}],[0,{[U]:dne}],[0,{[U]:pne}],[6,{[U]:fne}],[0,{[U]:Yt}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:Te}],[1,{[U]:ZA}],[0,{[l]:N}],[0,{[l]:sN}]],2],Uie=[3,h,pje,0,[wC],[[()=>AN,{[Ce]:1,[v]:wC}]]],Gie=[3,h,fje,0,[w,le,Re,xe,L],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}]],2],qie=[3,h,hje,{[v]:Zo},[YA,Re],[[()=>ji,0],[0,{[l]:mi}]],1],Hie=[3,h,yje,0,[w,le,Re,L,xe],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:N}],[0,{[l]:Te}]],2],jie=[3,h,Sje,0,[dg,$e],[[()=>lu,16],[0,{[l]:Ne}]]],zie=[3,h,Eje,0,[w,le,xe,L],[[0,1],[0,1],[0,{[l]:Te}],[0,{[l]:N}]],2],Vie=[3,h,Cje,0,[xC],[[()=>vN,16]]],Wie=[3,h,bje,0,[w,L],[[0,1],[0,{[l]:N}]],1],Kie=[3,h,Ote,0,[Jre],[0],1],Qie=[3,h,PL,0,[OL,Sre],[[()=>hN,{[Sne]:[hne,ine]}],0]],hN=[3,h,OL,0,[Ag,AL,gqe,kd,ZWe],[[0,{[C8e]:1,[v]:HKe}],0,0,0,0],1],Yie=[3,h,xje,0,[gL,CGe,RGe,SL,uGe],[[0,{[l]:_ne}],[0,{[l]:T8e}],[0,{[l]:x8e}],[0,{[l]:I8e}],[2,{[l]:b8e}]]],Jie=[3,h,Tje,0,[w,L],[[0,1],[0,{[l]:N}]],1],Xie=[3,h,Ije,0,[ou,mL,ti,WL,fGe,uo,Td,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,un,lt,UL,Re,Rd,Cd,bd,Ad,Dd,CL,Xo,yC,xg,Qr,Nd,Kt,Qt,ln,zr,Kr,$e,Rg,qA,YL,Gd,qd,Ud,yg,Eg,_g],[[2,{[l]:ex}],[0,{[l]:sne}],[0,{[l]:Dg}],[0,{[l]:kne}],[0,{[l]:A8e}],[4,{[l]:BA}],[1,{[l]:xd}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[0,{[l]:lt}],[1,{[l]:Pne}],[0,{[l]:mi}],[0,{[l]:pg}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:gg}],[0,{[l]:hg}],[0,{[l]:Zee}],[4,{[l]:Xo}],[0,{[l]:yC}],[0,{[l]:Lg}],[0,{[l]:dn}],[128,{[zd]:Jd}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Gn}],[2,{[l]:qn}],[0,{[l]:Mg}],[0,{[l]:Ne}],[0,{[l]:uN}],[1,{[l]:One}],[1,{[l]:Lne}],[0,{[l]:$g}],[5,{[l]:kg}],[0,{[l]:Og}],[0,{[l]:Ig}],[1,{[l]:wg}],[1,{[l]:Pg}]]],Zie=[3,h,wje,0,[w,le,Md,Lte,Sg,Bte,IC,Are,xre,Tre,vre,Dre,Ire,Re,Kt,lo,Qt,xe,cu,L,EL],[[0,1],[0,1],[0,{[l]:iu}],[4,{[l]:kL}],[0,{[l]:Ld}],[4,{[l]:LL}],[0,{[l]:IC}],[0,{[U]:cne}],[0,{[U]:une}],[0,{[U]:lne}],[0,{[U]:dne}],[0,{[U]:pne}],[6,{[U]:fne}],[0,{[U]:Yt}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:Te}],[1,{[U]:ZA}],[0,{[l]:N}],[0,{[l]:sN}]],2],SN=[3,h,$L,0,[EWe],[0],1],yN=[3,h,NL,0,[kd,AL],[0,0]],EN=[3,h,ML,0,[ite,i4e,Ute,gVe],[()=>Koe,0,()=>fae,()=>cce]],eae=[3,h,Yje,0,[Je,jd],[0,[()=>ji,{[ne]:1,[v]:po}]]],nx=[3,h,eg,0,[Wt,Wr,OWe,qi],[0,0,[()=>g9e,{[ne]:1,[v]:Xre}],[()=>tae,0]],3],tae=[3,h,Xje,0,[Je,po,lg],[0,()=>du,[()=>eae,0]]],ox=[3,h,Zm,0,[LA,kje,Wt,Hje,SWe,qi,U5e],[[()=>rae,0],2,0,0,()=>iae,()=>oae,[()=>t9e,0]],5],rae=[3,h,$je,0,[Lre],[[()=>sae,0]],1],nae=[3,h,Mje,0,[Hre,KL],[[()=>vue,{[v]:Gre}],[()=>Aue,{[v]:KA}]]],oae=[3,h,Lje,0,[Je],[0],1],sae=[3,h,Kje,0,[w,Ite,XUe,Je,vL],[0,0,0,0,[()=>nae,0]],2],iae=[3,h,Qje,0,[Pqe],[0],1],aae=[3,h,EC,0,[vd,su],[0,()=>Xd],1],cae=[3,h,Fte,0,[vd,XL,Id,bg,QA],[0,0,()=>Ng,0,0],1],uae=[3,h,Jje,0,[vd,su],[0,()=>Xd],1],lae=[3,h,_C,0,[WA,su],[()=>ax,()=>Xd],1],dae=[3,h,Gte,0,[XL,bg,WA,Id,QA],[0,0,()=>ax,()=>Ng,0],3],pae=[3,h,n6e,0,[WA],[()=>ax],1],fae=[3,h,t6e,0,[Ag],[0]],mae=[3,h,r6e,0,[jL],[0]],gae=[3,h,M6e,0,[k6e,DL,Wt,qi],[[0,{[v]:MGe}],[64,{[ne]:1,[v]:IL}],0,[()=>ix,0]],2],hae=[3,h,$6e,0,[gte,nu,Rqe],[5,1,2]],Sae=[3,h,c5e,0,[Wr,ti,kd,Je,qi,MWe,k5e,sre,Fee],[0,()=>hae,0,0,[()=>Eae,0],[()=>S9e,{[ne]:1,[v]:ene}],[()=>s9e,{[ne]:1,[v]:ire}],()=>Zae,()=>coe],1],yae=[3,h,u5e,0,[Je,jd,dre,pre],[0,[()=>ji,{[ne]:1,[v]:po}],1,1]],Eae=[3,h,l5e,0,[Je,po,dre,pre,lg],[0,()=>du,1,1,[()=>yae,0]]],_ae=[3,h,h6e,{[v]:S6e},[ni,Vr,Bd,kee],[2,0,0,[()=>zKe,{[ne]:1,[v]:Xm}]]],Rae=[3,h,y6e,0,[w,Vr,L],[[0,1],[0,{[U]:Qa}],[0,{[l]:N}]],1],Cae=[3,h,b6e,0,[ni,Vr,Bd,Nte],[2,0,0,[()=>ZKe,{[ne]:1,[v]:eg}]]],bae=[3,h,A6e,0,[w,Vr,L],[[0,1],[0,{[U]:Qa}],[0,{[l]:N}]],1],Aae=[3,h,_6e,{[v]:B6e},[Vr,kte,ni,Bd],[0,[()=>e9e,{[ne]:1,[v]:Zm}],2,0]],xae=[3,h,R6e,0,[w,Vr,L],[[0,1],[0,{[U]:Qa}],[0,{[l]:N}]],1],Tae=[3,h,T6e,{[v]:U6e},[ni,Vr,Bd,jte],[2,0,0,[()=>n9e,{[ne]:1,[v]:tg}]]],vae=[3,h,v6e,0,[w,Vr,L],[[0,1],[0,{[U]:Qa}],[0,{[l]:N}]],1],Dae=[3,h,D6e,{[v]:p6e},[yL,es,Vr,Je],[[()=>Que,0],()=>gi,0,0]],Iae=[3,h,I6e,0,[g5e,Vr,Je,SL],[[1,{[U]:m8e}],[0,{[U]:Qa}],[0,{[U]:Tg}],[0,{[U]:a8e}]]],wae=[3,h,P6e,{[v]:f6e},[yL,Vr],[[()=>Que,0],0]],Pae=[3,h,O6e,0,[Vr,S5e],[[0,{[U]:Qa}],[1,{[U]:g8e}]]],Oae=[3,h,H6e,{[v]:j6e},[w,FA,tne,rre,Je,Va,O5e,Jte,ni,LWe,MA,Wa,$e],[0,0,0,0,0,0,0,1,2,[()=>o9e,{[ne]:1,[v]:e8e}],[()=>ux,{[ne]:1}],0,[0,{[l]:Ne}]]],$ae=[3,h,z6e,0,[w,Va,Wa,FA,Jte,Je,tne,L,xe],[[0,1],[0,{[U]:JA}],[0,{[U]:XA}],[0,{[U]:ane}],[1,{[U]:S8e}],[0,{[U]:Tg}],[0,{[U]:_8e}],[0,{[l]:N}],[0,{[l]:Te}]],1],kae=[3,h,K6e,0,[gGe,w,le,GA,Gee,Hte,zUe,Vr,Bd,$e],[[()=>VKe,0],0,0,[0,{[l]:tx}],0,1,1,0,0,[0,{[l]:Ne}]]],Mae=[3,h,Q6e,0,[w,le,Re,Hte,Gee,Vr,xe,L],[[0,1],[0,1],[0,{[U]:Yt}],[1,{[U]:f8e}],[0,{[U]:i8e}],[0,{[U]:Qa}],[0,{[l]:Te}],[0,{[l]:N}]],2],Lae=[3,h,Y6e,{[v]:qte},[ni,Xte,v5e,lte,au,Je,Va,Fd,MA,Wa,$e],[2,0,0,[()=>Xue,{[ne]:1}],0,0,0,1,[()=>ux,{[ne]:1}],0,[0,{[l]:Ne}]]],Nae=[3,h,J6e,0,[w,Va,Wa,Xte,Fd,Je,xe,L,GL],[[0,1],[0,{[U]:JA}],[0,{[U]:XA}],[0,{[U]:p8e}],[1,{[U]:rN}],[0,{[U]:Tg}],[0,{[l]:Te}],[0,{[l]:N}],[64,{[l]:cN}]],1],Fae=[3,h,Z6e,{[v]:qte},[ni,lte,au,Je,Va,Fd,MA,Wa,o6e,Vr,Bd,Mre,$e],[2,[()=>Xue,{[ne]:1}],0,0,0,1,[()=>ux,{[ne]:1}],0,1,0,0,0,[0,{[l]:Ne}]]],Bae=[3,h,t5e,0,[w,Va,Wa,Fd,Je,Vr,vqe,Mre,xe,L,GL],[[0,1],[0,{[U]:JA}],[0,{[U]:XA}],[1,{[U]:rN}],[0,{[U]:Tg}],[0,{[U]:Qa}],[2,{[U]:u8e}],[0,{[U]:E8e}],[0,{[l]:Te}],[0,{[l]:N}],[64,{[l]:cN}]],1],Uae=[3,h,e5e,{[v]:p5e},[ni,FA,nne,rre,$5e,t8e,pte,au,Je,Va,Fd,MA,Wa,$e],[2,0,0,0,0,[()=>a9e,{[ne]:1,[v]:r8e}],[()=>QKe,{[ne]:1,[v]:ou}],0,0,0,1,[()=>ux,{[ne]:1}],0,[0,{[l]:Ne}]]],Gae=[3,h,r5e,0,[w,Va,Wa,FA,Fd,Je,nne,L,xe,GL],[[0,1],[0,{[U]:JA}],[0,{[U]:XA}],[0,{[U]:ane}],[1,{[U]:rN}],[0,{[U]:Tg}],[0,{[U]:R8e}],[0,{[l]:N}],[0,{[l]:Te}],[64,{[l]:cN}]],1],qae=[3,h,s5e,{[v]:i5e},[Lee,qee,w,le,Ka,HA,ore,UA,ni,jA,NL,es,Kr,$e,ge,un],[[4,{[l]:yne}],[0,{[l]:Ene}],0,0,0,0,0,1,2,[()=>u9e,{[ne]:1,[v]:zA}],()=>yN,()=>gi,0,[0,{[l]:Ne}],0,0]],Hae=[3,h,a5e,0,[w,le,Ka,UA,HA,xe,L,Kt,lo,Qt],[[0,1],[0,1],[0,{[U]:vg}],[1,{[U]:h8e}],[0,{[U]:y8e}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}]],3],jae=[3,h,F6e,0,[Ag,au],[0,0]],_N=[3,h,FL,0,[RWe,wWe,Kre,Yre],[0,0,[()=>m9e,0],[()=>$ue,0]],2],zae=[3,h,aL,0,[_C,EC,gC],[()=>lae,()=>aae,()=>Soe],1],Vae=[3,h,zte,0,[mte,Gte,Fte,jee],[()=>Tse,()=>dae,()=>cae,()=>yoe],1],Wae=[3,h,Wte,0,[au,ZL],[0,0]],Kae=[3,h,cL,0,[jre],[()=>fue],1],Qae=[3,h,Qte,0,[zre],[()=>mue],1],Xd=[3,h,_5e,0,[zVe,i6e],[0,0],1],Yae=[3,h,Zte,0,[Wr,Aqe],[0,()=>wN],1],Jae=[3,h,f5e,0,[Je,jd,Uee],[0,[()=>ji,{[ne]:1,[v]:po}],0]],sx=[3,h,tg,0,[Wt,qi],[0,[()=>tle,0]],1],Xae=[3,h,Yte,0,[Ka,le,e6e,Kr,es,NL,ge,un],[0,0,4,0,()=>gi,()=>yN,0,0]],Zae=[3,h,sre,0,[tre,nre],[1,1]],ece=[3,h,ire,0,[tre,Kr,nre],[1,0,1]],RN=[3,h,uL,0,[AWe,_Ve,N6e,Ste],[[()=>h9e,{[ne]:1,[v]:Wre}],[()=>d9e,{[ne]:1,[v]:Cre}],[()=>r9e,{[ne]:1,[v]:LGe}],()=>Pse]],ix=[3,h,A5e,0,[le],[[()=>due,{[v]:oWe}]]],tce=[3,h,fre,0,[le,uo,lt,ge,un,uu,Kr,es,VL],[0,4,0,[64,{[ne]:1}],0,1,0,()=>gi,()=>PN]],rce=[3,h,G5e,0,[le,Re,lt,G6e,uu],[0,0,0,6,1],1],CN=[3,h,AC,0,[H5e,Hd],[0,()=>nce]],bN=[3,h,z5e,0,[Wr],[0]],AN=[3,h,V5e,0,[ere,HVe,Eqe,Ete],[0,5,0,()=>gN]],nce=[3,h,W5e,0,[fte],[()=>Yoe]],oce=[3,h,J5e,0,[cu,uu,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr],[1,1,0,0,0,0,0,0,0,0,0,0]],sce=[3,h,eze,0,[lt,ge,un,uu,Kr,le,Re,Mte,uo,es,VL],[0,[64,{[ne]:1}],0,1,0,0,0,2,4,()=>gi,()=>PN]],ice=[3,h,ure,0,[hWe],[[()=>pue,0]]],xN=[3,h,qL,0,[ite,Ute],[()=>Qoe,()=>mae]],gi=[3,h,es,0,[AL,kd],[0,0]],TN=[3,h,bC,0,[Cg],[[()=>c9e,{[ne]:1,[v]:Hd}]],1],ace=[3,h,F5e,0,[lre],[0],1],cce=[3,h,jze,0,[],[]],uce=[3,h,zA,0,[cu,uo,lt,uu,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr],[1,4,0,1,0,0,0,0,0,0,0,0,0,0]],lce=[3,h,TC,{[v]:TC},[qze],[0]],dce=[3,h,mre,0,[lee],[[2,{[v]:lee}]]],pce=[3,h,Ere,0,[Kee,Vee,Wee],[1,1,1]],fce=[3,h,Hze,0,[hte],[[()=>pce,{[tN]:1}]]],vN=[3,h,xC,0,[iee,uee,aee,dee],[[2,{[v]:iee}],[2,{[v]:uee}],[2,{[v]:aee}],[2,{[v]:dee}]]],mce=[3,h,cze,0,[w,mC,Ye,ge,L],[[0,1],[()=>pN,{[Ce]:1,[v]:mC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],gce=[3,h,sze,0,[w,fC,L,ge],[[0,1],[()=>doe,{[Ce]:1,[v]:fC}],[0,{[l]:N}],[0,{[l]:ke}]],2],hce=[3,h,uze,0,[w,_d,ru,Ye,ge,wd,Pd,Od,wL,$d,L],[[0,1],[0,{[l]:Vd}],[()=>fN,{[Ce]:1,[v]:ru}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[0,{[l]:iN}],[0,{[l]:Yd}],[0,{[l]:N}]],1],Sce=[3,h,ize,0,[w,Wt,Xm,L],[[0,1],[0,{[U]:fo}],[()=>rx,{[Ce]:1,[v]:Xm}],[0,{[l]:N}]],3],yce=[3,h,pze,0,[w,SC,Ye,ge,L],[[0,1],[()=>Noe,{[Ce]:1,[v]:SC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Ece=[3,h,mze,0,[w,OC,Ye,ge,L],[[0,1],[()=>ON,{[Ce]:1,[v]:OC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],_ce=[3,h,yze,0,[w,Wt,eg,L],[[0,1],[0,{[U]:fo}],[()=>nx,{[Ce]:1,[v]:eg}],[0,{[l]:N}]],3],Rce=[3,h,hze,0,[w,Wt,Zm,L],[[0,1],[0,{[U]:fo}],[()=>ox,{[Ce]:1,[v]:Zm}],[0,{[l]:N}]],3],Cce=[3,h,Rze,0,[JL],[[0,{[l]:dN}]]],bce=[3,h,Cze,0,[w,ge,iL,L,JL],[[0,1],[0,{[l]:ke}],[()=>boe,{[Ce]:1,[v]:iL}],[0,{[l]:N}],[0,{[l]:dN}]],1],Ace=[3,h,bze,0,[w,hC,Ye,ge,L],[[0,1],[()=>Aoe,{[Ce]:1,[v]:hC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],xce=[3,h,xze,0,[w,Wt,tg,L],[[0,1],[0,{[U]:fo}],[()=>sx,{[Ce]:1,[v]:tg}],[0,{[l]:N}]],3],Tce=[3,h,vze,0,[w,uL,L,JVe],[[0,1],[()=>RN,{[Ce]:1,[v]:uL}],[0,{[l]:N}],[2,{[l]:UKe}]],2],vce=[3,h,Ize,0,[w,bC,Ye,L,ge],[[0,1],[()=>TN,{[Ce]:1,[v]:bC}],[0,{[l]:Qe}],[0,{[l]:N}],[0,{[l]:ke}]],2],Dce=[3,h,Pze,0,[w,yre,Ye,ge,JGe,L],[[0,1],[0,16],[0,{[l]:Qe}],[0,{[l]:ke}],[2,{[l]:w8e}],[0,{[l]:N}]],2],Ice=[3,h,Mze,0,[w,vC,Ye,ge,Zre,L],[[0,1],[()=>IN,{[Ce]:1,[v]:vC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:Rne}],[0,{[l]:N}]],2],wce=[3,h,kze,0,[w,DC,Ye,ge,L],[[0,1],[()=>sue,{[Ce]:1,[v]:DC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Pce=[3,h,Nze,0,[w,Zo,Ye,ge,L],[[0,1],[()=>cx,{[Ce]:1,[v]:Zo}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Oce=[3,h,Bze,0,[w,$C,Ye,ge,BL,L],[[0,1],[()=>Vue,{[Ce]:1,[v]:$C}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:aN}],[0,{[l]:N}]],2],$ce=[3,h,Gze,0,[w,kC,Ye,ge,L],[[0,1],[()=>Wue,{[Ce]:1,[v]:kC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],kce=[3,h,Kze,0,[$e],[[0,{[l]:Ne}]]],Mce=[3,h,Yze,0,[w,le,_d,ru,Ye,ge,wd,Pd,Od,wL,$d,xe,Re,L],[[0,1],[0,1],[0,{[l]:Vd}],[()=>fN,{[Ce]:1,[v]:ru}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[0,{[l]:iN}],[0,{[l]:Yd}],[0,{[l]:Te}],[0,{[U]:Yt}],[0,{[l]:N}]],2],Lce=[3,h,Qze,0,[le,ug,GA,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,un,Qr,$e],[0,0,[0,{[l]:tx}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[0,{[l]:dn}],[0,{[l]:Ne}]]],Nce=[3,h,Jze,0,[w,le,ug,Bee,Re,cre,ge,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,Ye,xe,L],[[0,1],[0,1],[0,{[U]:eN}],[()=>lu,16],[0,{[U]:Yt}],[0,{[l]:$ne}],[0,{[l]:ke}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Qe}],[0,{[l]:Te}],[0,{[l]:N}]],4],Fce=[3,h,nVe,0,[$e],[[0,{[l]:Ne}]]],Bce=[3,h,oVe,0,[w,le,CC,xe,Re,Ye,ge,L],[[0,1],[0,1],[()=>bN,{[Ce]:1,[v]:CC}],[0,{[l]:Te}],[0,{[U]:Yt}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Uce=[3,h,eVe,0,[$e],[[0,{[l]:Ne}]]],Gce=[3,h,tVe,0,[w,AC,xe,Zre,Ye,ge,L],[[0,1],[()=>CN,{[Ce]:1,[v]:AC}],[0,{[l]:Te}],[0,{[l]:Rne}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],1],qce=[3,h,sVe,0,[ti,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,un,Qr,Re,Kt,Qt,ln,Hi,zr,uu,$e],[[0,{[l]:Dg}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[0,{[l]:dn}],[0,{[l]:mi}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Gn}],[()=>Xa,{[l]:Ja}],[2,{[l]:qn}],[1,{[l]:wKe}],[0,{[l]:Ne}]]],Hce=[3,h,iVe,0,[w,le,_d,dg,Rd,Cd,bd,Ad,Td,Ye,Dd,ge,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,Xo,Md,Sg,wd,Pd,Od,$d,s8e,Nd,Qr,Kr,xg,Kt,lo,Qt,ln,Hi,zr,xe,Zo,Gd,qd,Ud,yg,Eg,_g,L],[[0,1],[0,1],[0,{[l]:Vd}],[()=>lu,16],[0,{[l]:pg}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:gg}],[1,{[l]:xd}],[0,{[l]:Qe}],[0,{[l]:hg}],[0,{[l]:ke}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[4,{[l]:Xo}],[0,{[l]:iu}],[0,{[l]:Ld}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[0,{[l]:Yd}],[1,{[l]:qKe}],[128,{[zd]:Jd}],[0,{[l]:dn}],[0,{[l]:Mg}],[0,{[l]:Lg}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[()=>Or,{[l]:Gn}],[()=>Xa,{[l]:Ja}],[2,{[l]:qn}],[0,{[l]:Te}],[0,{[l]:lN}],[0,{[l]:$g}],[5,{[l]:kg}],[0,{[l]:Og}],[0,{[l]:Ig}],[1,{[l]:wg}],[1,{[l]:Pg}],[0,{[l]:N}]],2],jce=[3,h,aVe,0,[$e],[[0,{[l]:Ne}]]],zce=[3,h,cVe,0,[w,le,wC,xe,Re,hL,Ye,ge,L],[[0,1],[0,1],[()=>AN,{[Ce]:1,[v]:wC}],[0,{[l]:Te}],[0,{[U]:Yt}],[2,{[l]:nN}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Vce=[3,h,dVe,0,[Re],[[0,{[l]:mi}]]],Wce=[3,h,pVe,0,[w,le,Zo,Re,Ye,ge,L,xe],[[0,1],[0,1],[()=>cx,{[Ce]:1,[v]:Zo}],[0,{[U]:Yt}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}],[0,{[l]:Te}]],3],Kce=[3,h,mVe,0,[w,xC,Ye,ge,L],[[0,1],[()=>vN,{[Ce]:1,[v]:xC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Qce=[3,h,Cre,0,[yVe,DL,Wt,qi],[[0,{[v]:CVe}],[64,{[ne]:1,[v]:IL}],0,[()=>ix,0]],2],ax=[3,h,WA,0,[ti,nu],[0,1],1],Yce=[3,h,AVe,0,[hre],[[21,{[tN]:1}]]],Jce=[3,h,kre,0,[$te,Pje,_re,TVe,vVe],[0,0,0,0,0]],DN=[3,h,HL,0,[$te,_re],[0,0],1],Xce=[3,h,IVe,0,[],[]],Zce=[3,h,OVe,0,[w,le,UVe,H4e,z4e,j4e,V4e,ZVe,tWe,eWe,rWe,s4e],[[0,1],[0,1],[0,{[l]:kKe}],[0,{[l]:iu}],[0,{[l]:Ld}],[4,{[l]:kL}],[4,{[l]:LL}],[0,{[l]:MKe}],[0,{[l]:NKe}],[6,{[l]:LKe}],[6,{[l]:FKe}],[0,{[l]:$8e,[d8e]:1}]],3],eue=[3,h,wre,0,[Wr],[0],1],IN=[3,h,vC,0,[VA,Cg],[0,[()=>p9e,{[ne]:1,[v]:Hd}]],2],tue=[3,h,NVe,0,[Wr,LA,kd,hVe,Je,qi,qre,Rte,dte],[0,()=>xse,0,1,0,[()=>nue,0],()=>bue,()=>Ose,()=>gse],2],rue=[3,h,MVe,0,[Je,jd],[0,[()=>ji,{[ne]:1,[v]:po}]]],nue=[3,h,LVe,0,[Je,po,lg],[0,()=>du,[()=>rue,0]]],oue=[3,h,$re,0,[Wr,$We],[0,()=>wN],2],wN=[3,h,GVe,0,[b5e],[1]],sue=[3,h,DC,0,[gre],[0],1],iue=[3,h,Pre,0,[xqe],[2]],aue=[3,h,wVe,0,[$e,PVe],[[0,{[l]:Ne}],[0,{[l]:OKe}]]],cue=[3,h,$Ve,0,[w,le,Re,lL,xe,ge,L],[[0,1],[0,1],[0,{[U]:Yt}],[()=>uue,{[Ce]:1,[v]:lL}],[0,{[l]:Te}],[0,{[l]:ke}],[0,{[l]:N}]],2],uue=[3,h,lL,0,[nu,Ote,Ag,Jre,mqe,Bre,ure],[1,()=>Kie,0,0,0,()=>yue,[()=>ice,0]]],PN=[3,h,VL,0,[Wje,bVe],[2,4]],lue=[3,h,Ore,0,[kre,ute],[()=>Jce,()=>Poe],1],due=[3,h,nWe,0,[Iqe],[[()=>XKe,{[ne]:1,[v]:Dte}]]],pue=[3,h,sWe,0,[AGe,Je,vL,xGe,kA,Zo,rne,Kr],[0,0,[()=>vse,0],0,[()=>lx,0],[()=>cx,0],[()=>y9e,0],0],2],fue=[3,h,jre,0,[QL,bg],[0,0],2],mue=[3,h,zre,0,[QL,bg,QA,Qre],[0,0,0,0],4],gue=[3,h,Ure,0,[yWe,Ate],[1,1]],hue=[3,h,uWe,0,[hre],[[()=>nle,16]]],Sue=[3,h,lWe,0,[w,le,Tte,bte,ML,qL,Kt,lo,Qt,Pre,Ure,L],[[0,1],[0,1],0,0,()=>EN,()=>xN,[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],()=>iue,()=>gue,[0,{[l]:N}]],6],yue=[3,h,Bre,0,[ML,bte,Tte,qL],[()=>EN,0,0,()=>xN],4],Eue=[3,h,pWe,0,[dWe,l6e],[0,[()=>Or,0]],1],ON=[3,h,OC,0,[Cg],[[()=>f9e,{[ne]:1,[v]:Hd}]],1],_ue=[3,h,mWe,0,[pGe,zr,zee],[[()=>Eue,0],2,[()=>_oe,0]]],Rue=[3,h,QVe,0,[see,pee,fee,ti],[[0,{[v]:see}],[()=>mee,{[v]:pee}],[()=>mee,{[v]:fee}],[4,{[v]:ti}]],4],Cue=[3,h,PC,{[v]:PC},[],[]],bue=[3,h,qre,0,[Fre,wre],[()=>xue,()=>eue]],Aue=[3,h,KL,{[v]:KA},[s6e],[[()=>Or,0]],1],xue=[3,h,Fre,0,[Wr],[0],1],Tue=[3,h,fWe,{[v]:KA},[c6e,zr],[[()=>jKe,0],2],1],vue=[3,h,Hre,{[v]:Gre},[],[]],Due=[3,h,Vre,0,[Kee,Vee,Wee],[1,1,1]],Iue=[3,h,XVe,0,[hte],[[()=>Due,{[tN]:1}]]],wue=[3,h,Nre,0,[G4e],[()=>Pue]],Pue=[3,h,WVe,0,[Z5e,LA],[0,()=>moe],2],du=[3,h,po,0,[le,ZL],[0,0],2],cx=[3,h,Zo,0,[YA],[[()=>ji,0]],1],Oue=[3,h,TWe,0,[OL,Sre],[[()=>hN,{[Sne]:[hne,ine]}],0]],$ue=[3,h,Yre,0,[PC,TC],[[()=>Cue,{[v]:PC}],[()=>lce,{[v]:TC}]]],kue=[3,h,Xre,0,[nu,Hee],[1,0],2],Mue=[3,h,Wre,0,[_We,DL,Wt,qi],[[0,{[v]:kWe}],[64,{[ne]:1,[v]:IL}],0,[()=>ix,0]],2],Lue=[3,h,ene,0,[gte,nu,Kr],[5,1,0]],Nue=[3,h,FWe,0,[w,gC,Ye,ge,L],[[0,1],[()=>Eoe,{[Ce]:1,[v]:gC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Fue=[3,h,UWe,0,[w,EC,Ye,ge,L],[[0,1],[()=>uae,{[Ce]:1,[v]:EC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Bue=[3,h,qWe,0,[w,_C,Ye,ge,L],[[0,1],[()=>pae,{[Ce]:1,[v]:_C}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Uue=[3,h,zWe,0,[w,le,are,Re,xe,L,Ye,ge],[[0,1],[0,1],[()=>rle,16],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:Qe}],[0,{[l]:ke}]],3],Gue=[3,h,VWe,0,[$e],[[0,{[l]:Ne}]]],que=[3,h,QWe,0,[ate,Xee,Qr,Kt,Qt,ln,zr,$e],[[0,{[l]:wne}],[()=>Loe,16],[0,{[l]:dn}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Gn}],[2,{[l]:qn}],[0,{[l]:Ne}]]],Hue=[3,h,YWe,0,[w,cte,le,cu,Ka,ete,tte,rte,nte,e4e,Kt,lo,Qt,ote,bL,ste,xe,L,Cte],[[0,1],[0,{[l]:Cne}],[0,1],[1,{[U]:ZA}],[0,{[U]:vg}],[0,{[l]:bne}],[4,{[l]:Ane}],[0,{[l]:xne}],[4,{[l]:Tne}],[0,{[l]:O8e}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:vne}],[()=>aoe,{[l]:Dne}],[0,{[l]:Ine}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:Mne}]],5],jue=[3,h,JWe,0,[Qr,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,Kt,Qt,ln,zr,$e],[[0,{[l]:dn}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Gn}],[2,{[l]:qn}],[0,{[l]:Ne}]]],zue=[3,h,XWe,0,[w,le,cu,Ka,dg,Td,Ye,ge,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,Kt,lo,Qt,xe,L],[[0,1],[0,1],[1,{[U]:ZA}],[0,{[U]:vg}],[()=>lu,16],[1,{[l]:xd}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:Te}],[0,{[l]:N}]],4],Vue=[3,h,$C,0,[Kte,Wr],[[0,{[v]:Vte}],0]],Wue=[3,h,kC,0,[xL,$L,HL,zL],[()=>mN,()=>SN,()=>DN,[()=>Zue,0]]],Kue=[3,h,o8e,0,[BVe,qVe,dg,YVe,yte,_te,mL,Rd,Cd,bd,Ad,Td,CL,Dd,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,ou,lt,Xo,ti,uo,UL,Nd,Gd,Ud,qd,qA,Rg,$e,WL,Qr,Kt,ln,Qt,Kr,YL,Re,zr],[[0,{[l8e]:1,[l]:$Ke}],[0,{[l]:BKe}],[()=>lu,16],[1,{[l]:_Ke}],[0,{[l]:k8e}],[0,{[l]:M8e}],[0,{[l]:z8e}],[0,{[l]:L8e}],[0,{[l]:N8e}],[0,{[l]:F8e}],[0,{[l]:B8e}],[1,{[l]:xd}],[0,{[l]:U8e}],[0,{[l]:G8e}],[0,{[l]:V8e}],[0,{[l]:W8e}],[0,{[l]:K8e}],[0,{[l]:Y8e}],[0,{[l]:J8e}],[0,{[l]:X8e}],[0,{[l]:Q8e}],[0,{[l]:Z8e}],[0,{[l]:eKe}],[0,{[l]:tKe}],[2,{[l]:rKe}],[0,{[l]:q8e}],[4,{[l]:H8e}],[0,{[l]:nKe}],[4,{[l]:j8e}],[1,{[l]:oKe}],[128,{[zd]:Jd}],[0,{[l]:aKe}],[0,{[l]:iKe}],[5,{[l]:cKe}],[1,{[l]:sKe}],[0,{[l]:dKe}],[0,{[l]:lKe}],[0,{[l]:uKe}],[0,{[l]:fKe}],[0,{[l]:hKe}],[()=>Or,{[l]:mKe}],[0,{[l]:SKe}],[0,{[l]:pKe}],[1,{[l]:yKe}],[0,{[l]:EKe}],[2,{[l]:gKe}]],2],pe="unit",zKe=[1,h,kee,0,[()=>rx,0]],VKe=[1,h,ZUe,0,[()=>hoe,{[v]:Nee}]],Que=[1,h,yL,0,[()=>Roe,{[v]:w}]],ux=[1,h,KGe,0,()=>Toe],WKe=[1,h,QGe,0,()=>Doe],Yue=[1,h,_L,0,[()=>Foe,0]],KKe=[1,h,iqe,0,()=>fse],QKe=[1,h,pte,0,()=>mse],YKe=[1,h,Cqe,0,[0,{[v]:TL}]],JKe=[1,h,xte,0,()=>wse],XKe=[1,h,Dqe,0,()=>$se],lx=[1,h,NA,0,[()=>Qie,{[v]:PL}]],ZKe=[1,h,Nte,0,[()=>nx,0]],e9e=[1,h,kte,0,[()=>ox,0]],t9e=[1,h,Gje,0,[0,{[v]:wqe}]],r9e=[1,h,L6e,0,[()=>gae,0]],Jue=[1,h,d5e,0,[()=>Sae,0]],n9e=[1,h,jte,0,[()=>sx,0]],o9e=[1,h,R5e,0,()=>Xae],s9e=[1,h,M5e,0,()=>ece],i9e=[1,h,q5e,0,()=>rce],Xue=[1,h,K5e,0,[()=>tce,0]],a9e=[1,h,tze,0,[()=>sce,0]],c9e=[1,h,B5e,0,()=>ace],u9e=[1,h,jA,0,()=>uce],l9e=[1,h,zze,0,()=>oce],d9e=[1,h,EVe,0,[()=>Qce,0]],p9e=[1,h,FVe,0,[()=>tue,0]],Zue=[1,h,zL,0,[()=>lue,{[v]:Ore}]],f9e=[1,h,gWe,0,[()=>_ue,0]],ji=[1,h,YA,0,[()=>du,{[v]:po}]],m9e=[1,h,Kre,0,[()=>Oue,{[v]:PL}]],g9e=[1,h,vWe,0,()=>kue],h9e=[1,h,bWe,0,[()=>Mue,0]],S9e=[1,h,DWe,0,()=>Lue],y9e=[1,h,rne,0,[()=>Wae,{[v]:Wte}]],ele=[4,h,QUe,0,[Je,po,lg],[0,()=>du,[()=>foe,0]]],tle=[4,h,y5e,0,[Je,po,Uee,lg],[0,()=>du,0,[()=>Jae,0]]],rle=[4,h,are,0,[KL],[[()=>Tue,{[v]:KA}]]],nle=[4,h,cWe,{[gne]:1},[jVe,Vre,Ere,u4e,Ate],[[()=>Yce,0],[()=>Iue,0],[()=>fce,0],()=>Ooe,()=>Ise]],ole=[9,h,rGe,{[M]:["DELETE","/{Key+}?x-id=AbortMultipartUpload",204]},()=>loe,()=>uoe],sle=[9,h,Yee,{[M]:["POST","/{Key+}",200]},()=>woe,()=>Ioe],ile=[9,h,jGe,{[M]:["PUT","/{Key+}?x-id=CopyObject",200]},()=>koe,()=>$oe],ale=[9,h,TGe,{[M]:["PUT","/",200]},()=>Hoe,()=>qoe],cle=[9,h,vGe,{[ve]:"-",[M]:["POST","/?metadataConfiguration",200]},()=>Uoe,()=>pe],ule=[9,h,IGe,{[ve]:"-",[M]:["POST","/?metadataTable",200]},()=>Goe,()=>pe],lle=[9,h,HGe,{[M]:["POST","/{Key+}?uploads",200]},()=>zoe,()=>joe],dle=[9,h,o4e,{[M]:["GET","/?session",200]},()=>Woe,()=>Voe],ple=[9,h,d4e,{[M]:["DELETE","/",204]},()=>lse,()=>pe],fle=[9,h,p4e,{[M]:["DELETE","/?analytics",204]},()=>Xoe,()=>pe],mle=[9,h,m4e,{[M]:["DELETE","/?cors",204]},()=>Zoe,()=>pe],gle=[9,h,h4e,{[M]:["DELETE","/?encryption",204]},()=>ese,()=>pe],hle=[9,h,_4e,{[M]:["DELETE","/?intelligent-tiering",204]},()=>tse,()=>pe],Sle=[9,h,y4e,{[M]:["DELETE","/?inventory",204]},()=>rse,()=>pe],yle=[9,h,C4e,{[M]:["DELETE","/?lifecycle",204]},()=>nse,()=>pe],Ele=[9,h,A4e,{[M]:["DELETE","/?metadataConfiguration",204]},()=>ose,()=>pe],_le=[9,h,D4e,{[M]:["DELETE","/?metadataTable",204]},()=>sse,()=>pe],Rle=[9,h,v4e,{[M]:["DELETE","/?metrics",204]},()=>ise,()=>pe],Cle=[9,h,w4e,{[M]:["DELETE","/?ownershipControls",204]},()=>ase,()=>pe],ble=[9,h,O4e,{[M]:["DELETE","/?policy",204]},()=>cse,()=>pe],Ale=[9,h,L4e,{[M]:["DELETE","/?replication",204]},()=>use,()=>pe],xle=[9,h,N4e,{[M]:["DELETE","/?tagging",204]},()=>dse,()=>pe],Tle=[9,h,B4e,{[M]:["DELETE","/?website",204]},()=>pse,()=>pe],vle=[9,h,aqe,{[M]:["DELETE","/{Key+}?x-id=DeleteObject",204]},()=>Ese,()=>yse],Dle=[9,h,Y4e,{[M]:["DELETE","/{Key+}?annotation",204]},()=>Sse,()=>hse],Ile=[9,h,cqe,{[ve]:"-",[M]:["POST","/?delete",200]},()=>Rse,()=>_se],wle=[9,h,nqe,{[M]:["DELETE","/{Key+}?tagging",204]},()=>bse,()=>Cse],Ple=[9,h,uqe,{[M]:["DELETE","/?publicAccessBlock",204]},()=>Ase,()=>pe],Ole=[9,h,Oqe,{[M]:["GET","/?abac",200]},()=>Mse,()=>kse],$le=[9,h,$qe,{[M]:["GET","/?accelerate",200]},()=>Nse,()=>Lse],kle=[9,h,Hqe,{[M]:["GET","/?acl",200]},()=>Bse,()=>Fse],Mle=[9,h,Fqe,{[M]:["GET","/?analytics&x-id=GetBucketAnalyticsConfiguration",200]},()=>Gse,()=>Use],Lle=[9,h,jqe,{[M]:["GET","/?cors",200]},()=>Hse,()=>qse],Nle=[9,h,Wqe,{[M]:["GET","/?encryption",200]},()=>zse,()=>jse],Fle=[9,h,Zqe,{[M]:["GET","/?intelligent-tiering&x-id=GetBucketIntelligentTieringConfiguration",200]},()=>Wse,()=>Vse],Ble=[9,h,Yqe,{[M]:["GET","/?inventory&x-id=GetBucketInventoryConfiguration",200]},()=>Qse,()=>Kse],Ule=[9,h,nHe,{[M]:["GET","/?lifecycle",200]},()=>Jse,()=>Yse],Gle=[9,h,rHe,{[M]:["GET","/?location",200]},()=>Zse,()=>Xse],qle=[9,h,lHe,{[M]:["GET","/?logging",200]},()=>tie,()=>eie],Hle=[9,h,dHe,{[M]:["GET","/?metadataConfiguration",200]},()=>nie,()=>rie],jle=[9,h,SHe,{[M]:["GET","/?metadataTable",200]},()=>iie,()=>sie],zle=[9,h,hHe,{[M]:["GET","/?metrics&x-id=GetBucketMetricsConfiguration",200]},()=>uie,()=>cie],Vle=[9,h,_He,{[M]:["GET","/?notification",200]},()=>lie,()=>RN],Wle=[9,h,CHe,{[M]:["GET","/?ownershipControls",200]},()=>pie,()=>die],Kle=[9,h,xHe,{[M]:["GET","/?policy",200]},()=>mie,()=>fie],Qle=[9,h,DHe,{[M]:["GET","/?policyStatus",200]},()=>hie,()=>gie],Yle=[9,h,PHe,{[M]:["GET","/?replication",200]},()=>yie,()=>Sie],Jle=[9,h,$He,{[M]:["GET","/?requestPayment",200]},()=>_ie,()=>Eie],Xle=[9,h,NHe,{[M]:["GET","/?tagging",200]},()=>Cie,()=>Rie],Zle=[9,h,UHe,{[M]:["GET","/?versioning",200]},()=>Aie,()=>bie],ede=[9,h,HHe,{[M]:["GET","/?website",200]},()=>Tie,()=>xie],tde=[9,h,VHe,{[ve]:"-",[M]:["GET","/{Key+}?x-id=GetObject",200]},()=>Bie,()=>Fie],rde=[9,h,WHe,{[M]:["GET","/{Key+}?acl",200]},()=>Die,()=>vie],nde=[9,h,rje,{[ve]:"-",[M]:["GET","/{Key+}?annotation&x-id=GetObjectAnnotation",200]},()=>wie,()=>Iie],ode=[9,h,nje,{[M]:["GET","/{Key+}?attributes",200]},()=>$ie,()=>Pie],sde=[9,h,aje,{[M]:["GET","/{Key+}?legal-hold",200]},()=>Mie,()=>kie],ide=[9,h,oje,{[M]:["GET","/?object-lock",200]},()=>Nie,()=>Lie],ade=[9,h,mje,{[M]:["GET","/{Key+}?retention",200]},()=>Gie,()=>Uie],cde=[9,h,gje,{[M]:["GET","/{Key+}?tagging",200]},()=>Hie,()=>qie],ude=[9,h,_je,{[M]:["GET","/{Key+}?torrent",200]},()=>zie,()=>jie],lde=[9,h,Rje,{[M]:["GET","/?publicAccessBlock",200]},()=>Wie,()=>Vie],dde=[9,h,Aje,{[M]:["HEAD","/",200]},()=>Jie,()=>Yie],pde=[9,h,Dje,{[M]:["HEAD","/{Key+}",200]},()=>Zie,()=>Xie],fde=[9,h,g6e,{[M]:["GET","/?analytics&x-id=ListBucketAnalyticsConfigurations",200]},()=>Rae,()=>_ae],mde=[9,h,C6e,{[M]:["GET","/?intelligent-tiering&x-id=ListBucketIntelligentTieringConfigurations",200]},()=>bae,()=>Cae],gde=[9,h,E6e,{[M]:["GET","/?inventory&x-id=ListBucketInventoryConfigurations",200]},()=>xae,()=>Aae],hde=[9,h,x6e,{[M]:["GET","/?metrics&x-id=ListBucketMetricsConfigurations",200]},()=>vae,()=>Tae],Sde=[9,h,m6e,{[M]:["GET","/?x-id=ListBuckets",200]},()=>Iae,()=>Dae],yde=[9,h,w6e,{[M]:["GET","/?x-id=ListDirectoryBuckets",200]},()=>Pae,()=>wae],Ede=[9,h,q6e,{[M]:["GET","/?uploads",200]},()=>$ae,()=>Oae],_de=[9,h,W6e,{[M]:["GET","/{Key+}?annotation&x-id=ListObjectAnnotations",200]},()=>Mae,()=>kae],Rde=[9,h,V6e,{[M]:["GET","/",200]},()=>Nae,()=>Lae],Cde=[9,h,X6e,{[M]:["GET","/?list-type=2",200]},()=>Bae,()=>Fae],bde=[9,h,n5e,{[M]:["GET","/?versions",200]},()=>Gae,()=>Uae],Ade=[9,h,o5e,{[M]:["GET","/{Key+}?x-id=ListParts",200]},()=>Hae,()=>qae],xde=[9,h,nze,{[ve]:"-",[M]:["PUT","/?abac",200]},()=>mce,()=>pe],Tde=[9,h,oze,{[ve]:"-",[M]:["PUT","/?accelerate",200]},()=>gce,()=>pe],vde=[9,h,lze,{[ve]:"-",[M]:["PUT","/?acl",200]},()=>hce,()=>pe],Dde=[9,h,aze,{[M]:["PUT","/?analytics",200]},()=>Sce,()=>pe],Ide=[9,h,dze,{[ve]:"-",[M]:["PUT","/?cors",200]},()=>yce,()=>pe],wde=[9,h,fze,{[ve]:"-",[M]:["PUT","/?encryption",200]},()=>Ece,()=>pe],Pde=[9,h,Sze,{[M]:["PUT","/?intelligent-tiering",200]},()=>_ce,()=>pe],Ode=[9,h,gze,{[M]:["PUT","/?inventory",200]},()=>Rce,()=>pe],$de=[9,h,_ze,{[ve]:"-",[M]:["PUT","/?lifecycle",200]},()=>bce,()=>Cce],kde=[9,h,Eze,{[ve]:"-",[M]:["PUT","/?logging",200]},()=>Ace,()=>pe],Mde=[9,h,Aze,{[M]:["PUT","/?metrics",200]},()=>xce,()=>pe],Lde=[9,h,Tze,{[M]:["PUT","/?notification",200]},()=>Tce,()=>pe],Nde=[9,h,Dze,{[ve]:"-",[M]:["PUT","/?ownershipControls",200]},()=>vce,()=>pe],Fde=[9,h,wze,{[ve]:"-",[M]:["PUT","/?policy",200]},()=>Dce,()=>pe],Bde=[9,h,Oze,{[ve]:"-",[M]:["PUT","/?replication",200]},()=>Ice,()=>pe],Ude=[9,h,$ze,{[ve]:"-",[M]:["PUT","/?requestPayment",200]},()=>wce,()=>pe],Gde=[9,h,Lze,{[ve]:"-",[M]:["PUT","/?tagging",200]},()=>Pce,()=>pe],qde=[9,h,Fze,{[ve]:"-",[M]:["PUT","/?versioning",200]},()=>Oce,()=>pe],Hde=[9,h,Uze,{[ve]:"-",[M]:["PUT","/?website",200]},()=>$ce,()=>pe],jde=[9,h,Vze,{[ve]:"-",[M]:["PUT","/{Key+}?x-id=PutObject",200]},()=>Hce,()=>qce],zde=[9,h,Wze,{[ve]:"-",[M]:["PUT","/{Key+}?acl",200]},()=>Mce,()=>kce],Vde=[9,h,Xze,{[ve]:"-",[M]:["PUT","/{Key+}?annotation",200]},()=>Nce,()=>Lce],Wde=[9,h,rVe,{[ve]:"-",[M]:["PUT","/{Key+}?legal-hold",200]},()=>Bce,()=>Fce],Kde=[9,h,Zze,{[ve]:"-",[M]:["PUT","/?object-lock",200]},()=>Gce,()=>Uce],Qde=[9,h,uVe,{[ve]:"-",[M]:["PUT","/{Key+}?retention",200]},()=>zce,()=>jce],Yde=[9,h,lVe,{[ve]:"-",[M]:["PUT","/{Key+}?tagging",200]},()=>Wce,()=>Vce],Jde=[9,h,fVe,{[ve]:"-",[M]:["PUT","/?publicAccessBlock",200]},()=>Kce,()=>pe],Xde=[9,h,DVe,{[M]:["PUT","/{Key+}?renameObject",200]},()=>Zce,()=>Xce],Zde=[9,h,kVe,{[ve]:"-",[M]:["POST","/{Key+}?restore",200]},()=>cue,()=>aue],epe=[9,h,aWe,{[M]:["POST","/{Key+}?select&select-type=2",200]},()=>Sue,()=>hue],tpe=[9,h,NWe,{[ve]:"-",[M]:["PUT","/?metadataAnnotationTable",200]},()=>Nue,()=>pe],rpe=[9,h,BWe,{[ve]:"-",[M]:["PUT","/?metadataInventoryTable",200]},()=>Fue,()=>pe],npe=[9,h,GWe,{[ve]:"-",[M]:["PUT","/?metadataJournalTable",200]},()=>Bue,()=>pe],ope=[9,h,jWe,{[ve]:"-",[M]:["PUT","/{Key+}?encryption",200]},()=>Uue,()=>Gue],spe=[9,h,WWe,{[ve]:"-",[M]:["PUT","/{Key+}?x-id=UploadPart",200]},()=>zue,()=>jue],ipe=[9,h,KWe,{[M]:["PUT","/{Key+}?x-id=UploadPartCopy",200]},()=>Hue,()=>que],ape=[9,h,n8e,{[c8e]:["{RequestRoute}."],[M]:["POST","/WriteGetObjectResponse",200]},()=>Kue,()=>pe],rg=class extends k(Pee,ce,"CreateSession",dle){},E9e="3.1151.0",_9e={version:E9e},R9e=t=>({apiVersion:"2006-03-01",base64Decoder:t?.base64Decoder??pUe,base64Encoder:t?.base64Encoder??dUe,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??Dee,extensions:t?.extensions??[],getAwsChunkedEncodingStream:t?.getAwsChunkedEncodingStream??lUe,httpAuthSchemeProvider:t?.httpAuthSchemeProvider??vUe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new Z2e},{schemeId:"aws.auth#sigv4a",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4a"),signer:new eUe}],logger:t?.logger??new E2e,md5:t?.md5??sUe,protocol:t?.protocol??s2e,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.s3",errorTypeRegistries:ioe,xmlNamespace:"http://s3.amazonaws.com/doc/2006-03-01/",version:"2006-03-01",serviceTarget:"AmazonS3"},sdkStreamMixin:t?.sdkStreamMixin??uUe,serviceId:t?.serviceId??"S3",sha1:t?.sha1??hUe,sha256:t?.sha256??oUe,signerConstructor:t?.signerConstructor??_ee,signingEscapePath:t?.signingEscapePath??!1,urlParser:t?.urlParser??G2e,useArnRegion:t?.useArnRegion??void 0,utf8Decoder:t?.utf8Decoder??cUe,utf8Encoder:t?.utf8Encoder??aUe}),C9e=t=>{_2e(process.version);let e=T2e(t),r=()=>e().then(R2e),n=R9e(t);VBe(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??so(rUe,o),bodyLengthChecker:t?.bodyLengthChecker??fUe,credentialDefaultProvider:t?.credentialDefaultProvider??nUe,defaultUserAgentProvider:t?.defaultUserAgentProvider??WBe({serviceId:n.serviceId,clientVersion:_9e.version}),disableS3ExpressSessionAuth:t?.disableS3ExpressSessionAuth??so(a2e,o),eventStreamSerdeProvider:t?.eventStreamSerdeProvider??B2e,maxAttempts:t?.maxAttempts??so(W2e,t),region:t?.region??so(I2e,{...w2e,...o}),requestChecksumCalculation:t?.requestChecksumCalculation??so(HBe,o),requestHandler:gUe.create(t?.requestHandler??r),responseChecksumValidation:t?.responseChecksumValidation??so(qBe,o),retryMode:t?.retryMode??so({...V2e,default:async()=>(await r()).retryMode||z2e},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??so(tUe,o),streamCollector:t?.streamCollector??mUe,streamHasher:t?.streamHasher??iUe,useArnRegion:t?.useArnRegion??so(i2e,o),useDualstackEndpoint:t?.useDualstackEndpoint??so(D2e,o),useFipsEndpoint:t?.useFipsEndpoint??so(v2e,o),userAgentAppId:t?.userAgentAppId??so(KBe,o)}},b9e=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},A9e=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),x9e=(t,e)=>{let r=Object.assign(QBe(t),C2e(t),q2e(t),b9e(t));return e.forEach(n=>n.configure(r)),Object.assign(t,YBe(r),b2e(r),H2e(r),A9e(r))},Bi=class extends yee{config;constructor(...[e]){let r=C9e(e||{});super(r),this.initConfig=r;let n=IUe(r),o=JBe(n),s=jBe(o),i=K2e(s),a=P2e(i),c=XBe(a),u=F2e(c),f=U2e(u),m=DUe(f),y=c2e(m,{session:[()=>this,rg]}),_=x9e(y,e?.extensions||[]);this.config=_,this.middlewareStack.use(Y2e(this.config)),this.middlewareStack.use(ZBe(this.config)),this.middlewareStack.use(Q2e(this.config)),this.middlewareStack.use(j2e(this.config)),this.middlewareStack.use(e2e(this.config)),this.middlewareStack.use(t2e(this.config)),this.middlewareStack.use(r2e(this.config)),this.middlewareStack.use(m2e(this.config,{httpAuthSchemeParametersProvider:AUe,identityProviderConfigProvider:async C=>new g2e({"aws.auth#sigv4":C.credentials,"aws.auth#sigv4a":C.credentials})})),this.middlewareStack.use(h2e(this.config)),this.middlewareStack.use(u2e(this.config)),this.middlewareStack.use(l2e(this.config)),this.middlewareStack.use(d2e(this.config)),this.middlewareStack.use(p2e(this.config)),this.middlewareStack.use(f2e(this.config))}destroy(){super.destroy()}},MC=class extends k(xn,ce,"AbortMultipartUpload",ole){},LC=class extends k(xn,Ed,"CompleteMultipartUpload",sle){},NC=class extends k(PUe,Ed,"CopyObject",ile){},FC=class extends k(OUe,LUe,"CreateBucket",ale){},BC=class extends k(z,Pr,"CreateBucketMetadataConfiguration",cle){},UC=class extends k(z,Pr,"CreateBucketMetadataTableConfiguration",ule){},GC=class extends k(xn,Ed,"CreateMultipartUpload",lle){},qC=class extends k(z,at,"DeleteBucketAnalyticsConfiguration",fle){},HC=class extends k(z,at,"DeleteBucket",ple){},jC=class extends k(z,at,"DeleteBucketCors",mle){},zC=class extends k(z,at,"DeleteBucketEncryption",gle){},VC=class extends k(z,at,"DeleteBucketIntelligentTieringConfiguration",hle){},WC=class extends k(z,at,"DeleteBucketInventoryConfiguration",Sle){},KC=class extends k(z,at,"DeleteBucketLifecycle",yle){},QC=class extends k(z,at,"DeleteBucketMetadataConfiguration",Ele){},YC=class extends k(z,at,"DeleteBucketMetadataTableConfiguration",_le){},JC=class extends k(z,at,"DeleteBucketMetricsConfiguration",Rle){},XC=class extends k(z,at,"DeleteBucketOwnershipControls",Cle){},ZC=class extends k(z,at,"DeleteBucketPolicy",ble){},eb=class extends k(z,at,"DeleteBucketReplication",Ale){},tb=class extends k(z,at,"DeleteBucketTagging",xle){},rb=class extends k(z,at,"DeleteBucketWebsite",Tle){},nb=class extends k($t,ce,"DeleteObjectAnnotation",Dle){},ob=class extends k(xn,ce,"DeleteObject",vle){},sb=class extends k($t,za,"DeleteObjects",Ile){},ib=class extends k($t,ce,"DeleteObjectTagging",wle){},ab=class extends k(z,at,"DeletePublicAccessBlock",Ple){},cb=class extends k($t,ce,"GetBucketAbac",Ole){},ub=class extends k(z,ce,"GetBucketAccelerateConfiguration",$le){},lb=class extends k(z,ce,"GetBucketAcl",kle){},db=class extends k(z,ce,"GetBucketAnalyticsConfiguration",Mle){},pb=class extends k(z,ce,"GetBucketCors",Lle){},fb=class extends k(z,ce,"GetBucketEncryption",Nle){},mb=class extends k(z,ce,"GetBucketIntelligentTieringConfiguration",Fle){},gb=class extends k(z,ce,"GetBucketInventoryConfiguration",Ble){},hb=class extends k(z,ce,"GetBucketLifecycleConfiguration",Ule){},Sb=class extends k(z,ce,"GetBucketLocation",Gle){},yb=class extends k(z,ce,"GetBucketLogging",qle){},Eb=class extends k(z,ce,"GetBucketMetadataConfiguration",Hle){},_b=class extends k(z,ce,"GetBucketMetadataTableConfiguration",jle){},Rb=class extends k(z,ce,"GetBucketMetricsConfiguration",zle){},Cb=class extends k(z,ce,"GetBucketNotificationConfiguration",Vle){},bb=class extends k(z,ce,"GetBucketOwnershipControls",Wle){},Ab=class extends k(z,at,"GetBucketPolicy",Kle){},xb=class extends k(z,ce,"GetBucketPolicyStatus",Qle){},Tb=class extends k(z,ce,"GetBucketReplication",Yle){},vb=class extends k(z,ce,"GetBucketRequestPayment",Jle){},Db=class extends k(z,ce,"GetBucketTagging",Xle){},Ib=class extends k(z,ce,"GetBucketVersioning",Zle){},wb=class extends k(z,ce,"GetBucketWebsite",ede){},Pb=class extends k(xn,ce,"GetObjectAcl",rde){},Ob=class extends k(xn,NUe,"GetObjectAnnotation",nde){},$b=class extends k($t,Ed,"GetObjectAttributes",ode){},kb=class extends k(xn,FUe,"GetObject",tde){},Mb=class extends k($t,ce,"GetObjectLegalHold",sde){},Lb=class extends k($t,ce,"GetObjectLockConfiguration",ide){},Nb=class extends k($t,ce,"GetObjectRetention",ade){},Fb=class extends k($t,ce,"GetObjectTagging",cde){},Bb=class extends k($t,at,"GetObjectTorrent",ude){},Ub=class extends k(z,ce,"GetPublicAccessBlock",lde){},hd=class extends k($t,ce,"HeadBucket",dde){},Sd=class extends k(xn,BUe,"HeadObject",pde){},Gb=class extends k(z,ce,"ListBucketAnalyticsConfigurations",fde){},qb=class extends k(z,ce,"ListBucketIntelligentTieringConfigurations",mde){},Hb=class extends k(z,ce,"ListBucketInventoryConfigurations",gde){},jb=class extends k(z,ce,"ListBucketMetricsConfigurations",hde){},ng=class extends k($Ue,ce,"ListBuckets",Sde){},og=class extends k(kUe,ce,"ListDirectoryBuckets",yde){},zb=class extends k($A,ce,"ListMultipartUploads",Ede){},sg=class extends k($t,ce,"ListObjectAnnotations",_de){},Vb=class extends k($A,ce,"ListObjects",Rde){},ig=class extends k($A,ce,"ListObjectsV2",Cde){},Wb=class extends k($A,ce,"ListObjectVersions",bde){},ag=class extends k(xn,Ed,"ListParts",Ade){},Kb=class extends k($t,Oee,"PutBucketAbac",xde){},Qb=class extends k(z,Oee,"PutBucketAccelerateConfiguration",Tde){},Yb=class extends k(z,Pr,"PutBucketAcl",vde){},Jb=class extends k(z,at,"PutBucketAnalyticsConfiguration",Dde){},Xb=class extends k(z,Pr,"PutBucketCors",Ide){},Zb=class extends k(z,Pr,"PutBucketEncryption",wde){},eA=class extends k(z,at,"PutBucketIntelligentTieringConfiguration",Pde){},tA=class extends k(z,at,"PutBucketInventoryConfiguration",Ode){},rA=class extends k(z,za,"PutBucketLifecycleConfiguration",$de){},nA=class extends k(z,Pr,"PutBucketLogging",kde){},oA=class extends k(z,at,"PutBucketMetricsConfiguration",Mde){},sA=class extends k(z,at,"PutBucketNotificationConfiguration",Lde){},iA=class extends k(z,Pr,"PutBucketOwnershipControls",Nde){},aA=class extends k(z,Pr,"PutBucketPolicy",Fde){},cA=class extends k(z,Pr,"PutBucketReplication",Bde){},uA=class extends k(z,Pr,"PutBucketRequestPayment",Ude){},lA=class extends k(z,Pr,"PutBucketTagging",Gde){},dA=class extends k(z,Pr,"PutBucketVersioning",qde){},pA=class extends k(z,Pr,"PutBucketWebsite",Hde){},fA=class extends k(xn,za,"PutObjectAcl",zde){},mA=class extends k(xn,$ee,"PutObjectAnnotation",Vde){},gA=class extends k(xn,UUe,"PutObject",jde){},hA=class extends k($t,za,"PutObjectLegalHold",Wde){},SA=class extends k($t,za,"PutObjectLockConfiguration",Kde){},yA=class extends k($t,za,"PutObjectRetention",Qde){},EA=class extends k($t,za,"PutObjectTagging",Yde){},_A=class extends k(z,Pr,"PutPublicAccessBlock",Jde){},RA=class extends k(xn,ce,"RenameObject",Xde){},CA=class extends k($t,$ee,"RestoreObject",Zde){},bA=class extends k($t,GUe,"SelectObjectContent",epe){},AA=class extends k(z,Pr,"UpdateBucketMetadataAnnotationTableConfiguration",tpe){},xA=class extends k(z,Pr,"UpdateBucketMetadataInventoryTableConfiguration",rpe){},TA=class extends k(z,Pr,"UpdateBucketMetadataJournalTableConfiguration",npe){},vA=class extends k($t,za,"UpdateObjectEncryption",ope){},DA=class extends k(xn,qUe,"UploadPart",spe){},IA=class extends k(Pee,Ed,"UploadPartCopy",ipe){},wA=class extends k(MUe,at,"WriteGetObjectResponse",ape){},cpe=cg(Bi,ng,"ContinuationToken","ContinuationToken","MaxBuckets"),upe=cg(Bi,og,"ContinuationToken","ContinuationToken","MaxDirectoryBuckets"),lpe=cg(Bi,sg,"ContinuationToken","NextContinuationToken","MaxAnnotationResults"),dpe=cg(Bi,ig,"ContinuationToken","NextContinuationToken","MaxKeys"),ppe=cg(Bi,ag,"PartNumberMarker","NextPartNumberMarker","MaxParts"),fpe=async(t,e)=>{let r;try{return r=await t.send(new hd(e)),{state:ei.SUCCESS,reason:r}}catch(n){if(r=n,n.name==="NotFound")return{state:ei.RETRY,reason:r}}return{state:ei.RETRY,reason:r}},T9e=async(t,e)=>ja({...{minDelay:5,maxDelay:120},...t},e,fpe),mpe=async(t,e)=>{let n=await ja({...{minDelay:5,maxDelay:120},...t},e,fpe);return OA(n)},gpe=async(t,e)=>{let r;try{r=await t.send(new hd(e))}catch(n){if(r=n,n.name==="NotFound")return{state:ei.SUCCESS,reason:r}}return{state:ei.RETRY,reason:r}},v9e=async(t,e)=>ja({...{minDelay:5,maxDelay:120},...t},e,gpe),hpe=async(t,e)=>{let n=await ja({...{minDelay:5,maxDelay:120},...t},e,gpe);return OA(n)},Spe=async(t,e)=>{let r;try{return r=await t.send(new Sd(e)),{state:ei.SUCCESS,reason:r}}catch(n){if(r=n,n.name==="NotFound")return{state:ei.RETRY,reason:r}}return{state:ei.RETRY,reason:r}},D9e=async(t,e)=>ja({...{minDelay:5,maxDelay:120},...t},e,Spe),ype=async(t,e)=>{let n=await ja({...{minDelay:5,maxDelay:120},...t},e,Spe);return OA(n)},Epe=async(t,e)=>{let r;try{r=await t.send(new Sd(e))}catch(n){if(r=n,n.name==="NotFound")return{state:ei.SUCCESS,reason:r}}return{state:ei.RETRY,reason:r}},I9e=async(t,e)=>ja({...{minDelay:5,maxDelay:120},...t},e,Epe),_pe=async(t,e)=>{let n=await ja({...{minDelay:5,maxDelay:120},...t},e,Epe);return OA(n)},w9e={AbortMultipartUploadCommand:MC,CompleteMultipartUploadCommand:LC,CopyObjectCommand:NC,CreateBucketCommand:FC,CreateBucketMetadataConfigurationCommand:BC,CreateBucketMetadataTableConfigurationCommand:UC,CreateMultipartUploadCommand:GC,CreateSessionCommand:rg,DeleteBucketCommand:HC,DeleteBucketAnalyticsConfigurationCommand:qC,DeleteBucketCorsCommand:jC,DeleteBucketEncryptionCommand:zC,DeleteBucketIntelligentTieringConfigurationCommand:VC,DeleteBucketInventoryConfigurationCommand:WC,DeleteBucketLifecycleCommand:KC,DeleteBucketMetadataConfigurationCommand:QC,DeleteBucketMetadataTableConfigurationCommand:YC,DeleteBucketMetricsConfigurationCommand:JC,DeleteBucketOwnershipControlsCommand:XC,DeleteBucketPolicyCommand:ZC,DeleteBucketReplicationCommand:eb,DeleteBucketTaggingCommand:tb,DeleteBucketWebsiteCommand:rb,DeleteObjectCommand:ob,DeleteObjectAnnotationCommand:nb,DeleteObjectsCommand:sb,DeleteObjectTaggingCommand:ib,DeletePublicAccessBlockCommand:ab,GetBucketAbacCommand:cb,GetBucketAccelerateConfigurationCommand:ub,GetBucketAclCommand:lb,GetBucketAnalyticsConfigurationCommand:db,GetBucketCorsCommand:pb,GetBucketEncryptionCommand:fb,GetBucketIntelligentTieringConfigurationCommand:mb,GetBucketInventoryConfigurationCommand:gb,GetBucketLifecycleConfigurationCommand:hb,GetBucketLocationCommand:Sb,GetBucketLoggingCommand:yb,GetBucketMetadataConfigurationCommand:Eb,GetBucketMetadataTableConfigurationCommand:_b,GetBucketMetricsConfigurationCommand:Rb,GetBucketNotificationConfigurationCommand:Cb,GetBucketOwnershipControlsCommand:bb,GetBucketPolicyCommand:Ab,GetBucketPolicyStatusCommand:xb,GetBucketReplicationCommand:Tb,GetBucketRequestPaymentCommand:vb,GetBucketTaggingCommand:Db,GetBucketVersioningCommand:Ib,GetBucketWebsiteCommand:wb,GetObjectCommand:kb,GetObjectAclCommand:Pb,GetObjectAnnotationCommand:Ob,GetObjectAttributesCommand:$b,GetObjectLegalHoldCommand:Mb,GetObjectLockConfigurationCommand:Lb,GetObjectRetentionCommand:Nb,GetObjectTaggingCommand:Fb,GetObjectTorrentCommand:Bb,GetPublicAccessBlockCommand:Ub,HeadBucketCommand:hd,HeadObjectCommand:Sd,ListBucketAnalyticsConfigurationsCommand:Gb,ListBucketIntelligentTieringConfigurationsCommand:qb,ListBucketInventoryConfigurationsCommand:Hb,ListBucketMetricsConfigurationsCommand:jb,ListBucketsCommand:ng,ListDirectoryBucketsCommand:og,ListMultipartUploadsCommand:zb,ListObjectAnnotationsCommand:sg,ListObjectsCommand:Vb,ListObjectsV2Command:ig,ListObjectVersionsCommand:Wb,ListPartsCommand:ag,PutBucketAbacCommand:Kb,PutBucketAccelerateConfigurationCommand:Qb,PutBucketAclCommand:Yb,PutBucketAnalyticsConfigurationCommand:Jb,PutBucketCorsCommand:Xb,PutBucketEncryptionCommand:Zb,PutBucketIntelligentTieringConfigurationCommand:eA,PutBucketInventoryConfigurationCommand:tA,PutBucketLifecycleConfigurationCommand:rA,PutBucketLoggingCommand:nA,PutBucketMetricsConfigurationCommand:oA,PutBucketNotificationConfigurationCommand:sA,PutBucketOwnershipControlsCommand:iA,PutBucketPolicyCommand:aA,PutBucketReplicationCommand:cA,PutBucketRequestPaymentCommand:uA,PutBucketTaggingCommand:lA,PutBucketVersioningCommand:dA,PutBucketWebsiteCommand:pA,PutObjectCommand:gA,PutObjectAclCommand:fA,PutObjectAnnotationCommand:mA,PutObjectLegalHoldCommand:hA,PutObjectLockConfigurationCommand:SA,PutObjectRetentionCommand:yA,PutObjectTaggingCommand:EA,PutPublicAccessBlockCommand:_A,RenameObjectCommand:RA,RestoreObjectCommand:CA,SelectObjectContentCommand:bA,UpdateBucketMetadataAnnotationTableConfigurationCommand:AA,UpdateBucketMetadataInventoryTableConfigurationCommand:xA,UpdateBucketMetadataJournalTableConfigurationCommand:TA,UpdateObjectEncryptionCommand:vA,UploadPartCommand:DA,UploadPartCopyCommand:IA,WriteGetObjectResponseCommand:wA},P9e={paginateListBuckets:cpe,paginateListDirectoryBuckets:upe,paginateListObjectAnnotations:lpe,paginateListObjectsV2:dpe,paginateListParts:ppe},O9e={waitUntilBucketExists:mpe,waitUntilBucketNotExists:hpe,waitUntilObjectExists:ype,waitUntilObjectNotExists:_pe},PA=class extends Bi{};A2e(w9e,PA,{paginators:P9e,waiters:O9e});var $9e={Disabled:"Disabled",Enabled:"Enabled"},k9e={requester:"requester"},M9e={requester:"requester"},L9e={Enabled:"Enabled",Suspended:"Suspended"},N9e={AmazonCustomerByEmail:"AmazonCustomerByEmail",CanonicalUser:"CanonicalUser",Group:"Group"},F9e={FULL_CONTROL:"FULL_CONTROL",READ:"READ",READ_ACP:"READ_ACP",WRITE:"WRITE",WRITE_ACP:"WRITE_ACP"},B9e={Destination:"Destination"},U9e={COMPOSITE:"COMPOSITE",FULL_OBJECT:"FULL_OBJECT"},G9e={AES256:"AES256",aws_backup:"aws:backup",aws_fsx:"aws:fsx",aws_kms:"aws:kms",aws_kms_dsse:"aws:kms:dsse"},q9e={authenticated_read:"authenticated-read",aws_exec_read:"aws-exec-read",bucket_owner_full_control:"bucket-owner-full-control",bucket_owner_read:"bucket-owner-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"},H9e={COPY:"COPY",EXCLUDE:"EXCLUDE"},j9e={CRC32:"CRC32",CRC32C:"CRC32C",CRC64NVME:"CRC64NVME",MD5:"MD5",SHA1:"SHA1",SHA256:"SHA256",SHA512:"SHA512",XXHASH128:"XXHASH128",XXHASH3:"XXHASH3",XXHASH64:"XXHASH64"},z9e={COPY:"COPY",REPLACE:"REPLACE"},V9e={OFF:"OFF",ON:"ON"},W9e={OFF:"OFF",ON:"ON"},K9e={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"},Q9e={AWS_BACKUP_LOW_COST_WARM:"AWS_BACKUP_LOW_COST_WARM",AWS_BACKUP_WARM:"AWS_BACKUP_WARM",DEEP_ARCHIVE:"DEEP_ARCHIVE",EXPRESS_ONEZONE:"EXPRESS_ONEZONE",FSX_ONTAP:"FSX_ONTAP",FSX_OPENZFS:"FSX_OPENZFS",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"},Y9e={COPY:"COPY",REPLACE:"REPLACE"},J9e={authenticated_read:"authenticated-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"},X9e={ACCOUNT_REGIONAL:"account-regional",GLOBAL:"global"},Z9e={SingleAvailabilityZone:"SingleAvailabilityZone",SingleLocalZone:"SingleLocalZone"},eQe={Directory:"Directory"},tQe={AvailabilityZone:"AvailabilityZone",LocalZone:"LocalZone"},rQe={EU:"EU",af_south_1:"af-south-1",ap_east_1:"ap-east-1",ap_east_2:"ap-east-2",ap_northeast_1:"ap-northeast-1",ap_northeast_2:"ap-northeast-2",ap_northeast_3:"ap-northeast-3",ap_south_1:"ap-south-1",ap_south_2:"ap-south-2",ap_southeast_1:"ap-southeast-1",ap_southeast_2:"ap-southeast-2",ap_southeast_3:"ap-southeast-3",ap_southeast_4:"ap-southeast-4",ap_southeast_5:"ap-southeast-5",ap_southeast_6:"ap-southeast-6",ap_southeast_7:"ap-southeast-7",ca_central_1:"ca-central-1",ca_west_1:"ca-west-1",cn_north_1:"cn-north-1",cn_northwest_1:"cn-northwest-1",eu_central_1:"eu-central-1",eu_central_2:"eu-central-2",eu_north_1:"eu-north-1",eu_south_1:"eu-south-1",eu_south_2:"eu-south-2",eu_west_1:"eu-west-1",eu_west_2:"eu-west-2",eu_west_3:"eu-west-3",il_central_1:"il-central-1",me_central_1:"me-central-1",me_south_1:"me-south-1",mx_central_1:"mx-central-1",sa_east_1:"sa-east-1",us_east_2:"us-east-2",us_gov_east_1:"us-gov-east-1",us_gov_west_1:"us-gov-west-1",us_west_1:"us-west-1",us_west_2:"us-west-2"},nQe={BucketOwnerEnforced:"BucketOwnerEnforced",BucketOwnerPreferred:"BucketOwnerPreferred",ObjectWriter:"ObjectWriter"},oQe={DISABLED:"DISABLED",ENABLED:"ENABLED"},sQe={AES256:"AES256",aws_kms:"aws:kms"},iQe={DISABLED:"DISABLED",ENABLED:"ENABLED"},aQe={DISABLED:"DISABLED",ENABLED:"ENABLED"},cQe={ReadOnly:"ReadOnly",ReadWrite:"ReadWrite"},uQe={CSV:"CSV"},lQe={V_1:"V_1"},dQe={NONE:"NONE",SSE_C:"SSE-C"},pQe={Disabled:"Disabled",Enabled:"Enabled"},fQe={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"},mQe={CSV:"CSV",ORC:"ORC",Parquet:"Parquet"},gQe={All:"All",Current:"Current"},hQe={BucketKeyStatus:"BucketKeyStatus",ChecksumAlgorithm:"ChecksumAlgorithm",ETag:"ETag",EncryptionStatus:"EncryptionStatus",IntelligentTieringAccessTier:"IntelligentTieringAccessTier",IntelligentTieringReferenceDate:"IntelligentTieringReferenceDate",IsMultipartUploaded:"IsMultipartUploaded",LastModifiedDate:"LastModifiedDate",LifecycleExpirationDate:"LifecycleExpirationDate",ObjectAccessControlList:"ObjectAccessControlList",ObjectLockEventHoldDuration:"ObjectLockEventHoldDuration",ObjectLockEventHoldStatus:"ObjectLockEventHoldStatus",ObjectLockLegalHoldStatus:"ObjectLockLegalHoldStatus",ObjectLockMode:"ObjectLockMode",ObjectLockRetainUntilDate:"ObjectLockRetainUntilDate",ObjectOwner:"ObjectOwner",ReplicationStatus:"ReplicationStatus",Size:"Size",StorageClass:"StorageClass"},SQe={Daily:"Daily",Weekly:"Weekly"},yQe={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",STANDARD_IA:"STANDARD_IA"},EQe={Disabled:"Disabled",Enabled:"Enabled"},_Qe={all_storage_classes_128K:"all_storage_classes_128K",varies_by_storage_class:"varies_by_storage_class"},RQe={FULL_CONTROL:"FULL_CONTROL",READ:"READ",WRITE:"WRITE"},CQe={DeliveryTime:"DeliveryTime",EventTime:"EventTime"},bQe={aws:"aws",customer:"customer"},AQe={s3_IntelligentTiering:"s3:IntelligentTiering",s3_LifecycleExpiration_:"s3:LifecycleExpiration:*",s3_LifecycleExpiration_Delete:"s3:LifecycleExpiration:Delete",s3_LifecycleExpiration_DeleteMarkerCreated:"s3:LifecycleExpiration:DeleteMarkerCreated",s3_LifecycleTransition:"s3:LifecycleTransition",s3_ObjectAcl_Put:"s3:ObjectAcl:Put",s3_ObjectAnnotation_:"s3:ObjectAnnotation:*",s3_ObjectAnnotation_Delete:"s3:ObjectAnnotation:Delete",s3_ObjectAnnotation_Put:"s3:ObjectAnnotation:Put",s3_ObjectCreated_:"s3:ObjectCreated:*",s3_ObjectCreated_CompleteMultipartUpload:"s3:ObjectCreated:CompleteMultipartUpload",s3_ObjectCreated_Copy:"s3:ObjectCreated:Copy",s3_ObjectCreated_Post:"s3:ObjectCreated:Post",s3_ObjectCreated_Put:"s3:ObjectCreated:Put",s3_ObjectRemoved_:"s3:ObjectRemoved:*",s3_ObjectRemoved_Delete:"s3:ObjectRemoved:Delete",s3_ObjectRemoved_DeleteMarkerCreated:"s3:ObjectRemoved:DeleteMarkerCreated",s3_ObjectRestore_:"s3:ObjectRestore:*",s3_ObjectRestore_Completed:"s3:ObjectRestore:Completed",s3_ObjectRestore_Delete:"s3:ObjectRestore:Delete",s3_ObjectRestore_Post:"s3:ObjectRestore:Post",s3_ObjectRetention_Put:"s3:ObjectRetention:Put",s3_ObjectTagging_:"s3:ObjectTagging:*",s3_ObjectTagging_Delete:"s3:ObjectTagging:Delete",s3_ObjectTagging_Put:"s3:ObjectTagging:Put",s3_ReducedRedundancyLostObject:"s3:ReducedRedundancyLostObject",s3_Replication_:"s3:Replication:*",s3_Replication_OperationFailedReplication:"s3:Replication:OperationFailedReplication",s3_Replication_OperationMissedThreshold:"s3:Replication:OperationMissedThreshold",s3_Replication_OperationNotTracked:"s3:Replication:OperationNotTracked",s3_Replication_OperationReplicatedAfterThreshold:"s3:Replication:OperationReplicatedAfterThreshold"},xQe={prefix:"prefix",suffix:"suffix"},TQe={Disabled:"Disabled",Enabled:"Enabled"},vQe={Disabled:"Disabled",Enabled:"Enabled"},DQe={Disabled:"Disabled",Enabled:"Enabled"},IQe={Disabled:"Disabled",Enabled:"Enabled"},wQe={Disabled:"Disabled",Enabled:"Enabled"},PQe={Disabled:"Disabled",Enabled:"Enabled"},OQe={Disabled:"Disabled",Enabled:"Enabled"},$Qe={BucketOwner:"BucketOwner",Requester:"Requester"},kQe={Disabled:"Disabled",Enabled:"Enabled"},MQe={Enabled:"Enabled",Suspended:"Suspended"},LQe={http:"http",https:"https"},NQe={COMPLETE:"COMPLETE",COMPLETED:"COMPLETED",FAILED:"FAILED",PENDING:"PENDING",REPLICA:"REPLICA"},FQe={ENABLED:"ENABLED"},BQe={CHECKSUM:"Checksum",ETAG:"ETag",OBJECT_PARTS:"ObjectParts",OBJECT_SIZE:"ObjectSize",STORAGE_CLASS:"StorageClass"},UQe={Enabled:"Enabled"},GQe={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"},qQe={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"},HQe={url:"url"},jQe={AWS_BACKUP_LOW_COST_WARM:"AWS_BACKUP_LOW_COST_WARM",AWS_BACKUP_WARM:"AWS_BACKUP_WARM",DEEP_ARCHIVE:"DEEP_ARCHIVE",EXPRESS_ONEZONE:"EXPRESS_ONEZONE",FSX_ONTAP:"FSX_ONTAP",FSX_OPENZFS:"FSX_OPENZFS",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"},zQe={RESTORE_STATUS:"RestoreStatus"},VQe={STANDARD:"STANDARD"},WQe={Disabled:"Disabled",Enabled:"Enabled"},KQe={Bulk:"Bulk",Expedited:"Expedited",Standard:"Standard"},QQe={SQL:"SQL"},YQe={BZIP2:"BZIP2",GZIP:"GZIP",NONE:"NONE"},JQe={IGNORE:"IGNORE",NONE:"NONE",USE:"USE"},XQe={DOCUMENT:"DOCUMENT",LINES:"LINES"},ZQe={ALWAYS:"ALWAYS",ASNEEDED:"ASNEEDED"},e7e={SELECT:"SELECT"};d.AbacStatus$=pN;d.AbortIncompleteMultipartUpload$=coe;d.AbortMultipartUpload$=ole;d.AbortMultipartUploadCommand=MC;d.AbortMultipartUploadOutput$=uoe;d.AbortMultipartUploadRequest$=loe;d.AccelerateConfiguration$=doe;d.AccessControlPolicy$=fN;d.AccessControlTranslation$=poe;d.AccessDenied=WR;d.AccessDenied$=Bne;d.AnalyticsAndOperator$=foe;d.AnalyticsConfiguration$=rx;d.AnalyticsExportDestination$=moe;d.AnalyticsFilter$=ele;d.AnalyticsS3BucketDestination$=goe;d.AnalyticsS3ExportFileFormat=uQe;d.AnnotationConfigurationState=oQe;d.AnnotationDirective=H9e;d.AnnotationEntry$=hoe;d.AnnotationLimitExceeded=aC;d.AnnotationLimitExceeded$=Une;d.AnnotationNameTooLong=cC;d.AnnotationNameTooLong$=Gne;d.AnnotationTableConfiguration$=Soe;d.AnnotationTableConfigurationResult$=yoe;d.AnnotationTableConfigurationUpdates$=Eoe;d.ArchiveStatus=qQe;d.BlockedEncryptionTypes$=_oe;d.Bucket$=Roe;d.BucketAbacStatus=$9e;d.BucketAccelerateStatus=L9e;d.BucketAlreadyExists=QR;d.BucketAlreadyExists$=qne;d.BucketAlreadyOwnedByYou=YR;d.BucketAlreadyOwnedByYou$=Hne;d.BucketCannedACL=J9e;d.BucketInfo$=Coe;d.BucketLifecycleConfiguration$=boe;d.BucketLocationConstraint=rQe;d.BucketLoggingStatus$=Aoe;d.BucketLogsPermission=RQe;d.BucketNamespace=X9e;d.BucketType=eQe;d.BucketVersioningStatus=MQe;d.CORSConfiguration$=Noe;d.CORSRule$=Foe;d.CSVInput$=Koe;d.CSVOutput$=Qoe;d.Checksum$=xoe;d.ChecksumAlgorithm=j9e;d.ChecksumMode=FQe;d.ChecksumType=U9e;d.CommonPrefix$=Toe;d.CompleteMultipartUpload$=sle;d.CompleteMultipartUploadCommand=LC;d.CompleteMultipartUploadOutput$=Ioe;d.CompleteMultipartUploadRequest$=woe;d.CompletedMultipartUpload$=voe;d.CompletedPart$=Doe;d.CompressionType=YQe;d.Condition$=Poe;d.ContinuationEvent$=Ooe;d.CopyObject$=ile;d.CopyObjectCommand=NC;d.CopyObjectOutput$=$oe;d.CopyObjectRequest$=koe;d.CopyObjectResult$=Moe;d.CopyPartResult$=Loe;d.CreateBucket$=ale;d.CreateBucketCommand=FC;d.CreateBucketConfiguration$=Boe;d.CreateBucketMetadataConfiguration$=cle;d.CreateBucketMetadataConfigurationCommand=BC;d.CreateBucketMetadataConfigurationRequest$=Uoe;d.CreateBucketMetadataTableConfiguration$=ule;d.CreateBucketMetadataTableConfigurationCommand=UC;d.CreateBucketMetadataTableConfigurationRequest$=Goe;d.CreateBucketOutput$=qoe;d.CreateBucketRequest$=Hoe;d.CreateMultipartUpload$=lle;d.CreateMultipartUploadCommand=GC;d.CreateMultipartUploadOutput$=joe;d.CreateMultipartUploadRequest$=zoe;d.CreateSession$=dle;d.CreateSessionCommand=rg;d.CreateSessionOutput$=Voe;d.CreateSessionRequest$=Woe;d.DataRedundancy=Z9e;d.DefaultRetention$=Yoe;d.Delete$=Joe;d.DeleteBucket$=ple;d.DeleteBucketAnalyticsConfiguration$=fle;d.DeleteBucketAnalyticsConfigurationCommand=qC;d.DeleteBucketAnalyticsConfigurationRequest$=Xoe;d.DeleteBucketCommand=HC;d.DeleteBucketCors$=mle;d.DeleteBucketCorsCommand=jC;d.DeleteBucketCorsRequest$=Zoe;d.DeleteBucketEncryption$=gle;d.DeleteBucketEncryptionCommand=zC;d.DeleteBucketEncryptionRequest$=ese;d.DeleteBucketIntelligentTieringConfiguration$=hle;d.DeleteBucketIntelligentTieringConfigurationCommand=VC;d.DeleteBucketIntelligentTieringConfigurationRequest$=tse;d.DeleteBucketInventoryConfiguration$=Sle;d.DeleteBucketInventoryConfigurationCommand=WC;d.DeleteBucketInventoryConfigurationRequest$=rse;d.DeleteBucketLifecycle$=yle;d.DeleteBucketLifecycleCommand=KC;d.DeleteBucketLifecycleRequest$=nse;d.DeleteBucketMetadataConfiguration$=Ele;d.DeleteBucketMetadataConfigurationCommand=QC;d.DeleteBucketMetadataConfigurationRequest$=ose;d.DeleteBucketMetadataTableConfiguration$=_le;d.DeleteBucketMetadataTableConfigurationCommand=YC;d.DeleteBucketMetadataTableConfigurationRequest$=sse;d.DeleteBucketMetricsConfiguration$=Rle;d.DeleteBucketMetricsConfigurationCommand=JC;d.DeleteBucketMetricsConfigurationRequest$=ise;d.DeleteBucketOwnershipControls$=Cle;d.DeleteBucketOwnershipControlsCommand=XC;d.DeleteBucketOwnershipControlsRequest$=ase;d.DeleteBucketPolicy$=ble;d.DeleteBucketPolicyCommand=ZC;d.DeleteBucketPolicyRequest$=cse;d.DeleteBucketReplication$=Ale;d.DeleteBucketReplicationCommand=eb;d.DeleteBucketReplicationRequest$=use;d.DeleteBucketRequest$=lse;d.DeleteBucketTagging$=xle;d.DeleteBucketTaggingCommand=tb;d.DeleteBucketTaggingRequest$=dse;d.DeleteBucketWebsite$=Tle;d.DeleteBucketWebsiteCommand=rb;d.DeleteBucketWebsiteRequest$=pse;d.DeleteMarkerEntry$=mse;d.DeleteMarkerReplication$=gse;d.DeleteMarkerReplicationStatus=TQe;d.DeleteObject$=vle;d.DeleteObjectAnnotation$=Dle;d.DeleteObjectAnnotationCommand=nb;d.DeleteObjectAnnotationOutput$=hse;d.DeleteObjectAnnotationRequest$=Sse;d.DeleteObjectCommand=ob;d.DeleteObjectOutput$=yse;d.DeleteObjectRequest$=Ese;d.DeleteObjectTagging$=wle;d.DeleteObjectTaggingCommand=ib;d.DeleteObjectTaggingOutput$=Cse;d.DeleteObjectTaggingRequest$=bse;d.DeleteObjects$=Ile;d.DeleteObjectsCommand=sb;d.DeleteObjectsOutput$=_se;d.DeleteObjectsRequest$=Rse;d.DeletePublicAccessBlock$=Ple;d.DeletePublicAccessBlockCommand=ab;d.DeletePublicAccessBlockRequest$=Ase;d.DeletedObject$=fse;d.Destination$=xse;d.DestinationResult$=Tse;d.EncodingType=HQe;d.Encryption$=vse;d.EncryptionConfiguration$=Dse;d.EncryptionType=dQe;d.EncryptionTypeMismatch=nC;d.EncryptionTypeMismatch$=jne;d.EndEvent$=Ise;d.ErrorDetails$=Ng;d.ErrorDocument$=mN;d.Event=AQe;d.EventBridgeConfiguration$=Pse;d.EventHoldDuration$=gN;d.ExistingObjectReplication$=Ose;d.ExistingObjectReplicationStatus=IQe;d.ExpirationState=aQe;d.ExpirationStatus=EQe;d.ExpressionType=QQe;d.FileHeaderInfo=JQe;d.FilterRule$=$se;d.FilterRuleName=xQe;d.GetBucketAbac$=Ole;d.GetBucketAbacCommand=cb;d.GetBucketAbacOutput$=kse;d.GetBucketAbacRequest$=Mse;d.GetBucketAccelerateConfiguration$=$le;d.GetBucketAccelerateConfigurationCommand=ub;d.GetBucketAccelerateConfigurationOutput$=Lse;d.GetBucketAccelerateConfigurationRequest$=Nse;d.GetBucketAcl$=kle;d.GetBucketAclCommand=lb;d.GetBucketAclOutput$=Fse;d.GetBucketAclRequest$=Bse;d.GetBucketAnalyticsConfiguration$=Mle;d.GetBucketAnalyticsConfigurationCommand=db;d.GetBucketAnalyticsConfigurationOutput$=Use;d.GetBucketAnalyticsConfigurationRequest$=Gse;d.GetBucketCors$=Lle;d.GetBucketCorsCommand=pb;d.GetBucketCorsOutput$=qse;d.GetBucketCorsRequest$=Hse;d.GetBucketEncryption$=Nle;d.GetBucketEncryptionCommand=fb;d.GetBucketEncryptionOutput$=jse;d.GetBucketEncryptionRequest$=zse;d.GetBucketIntelligentTieringConfiguration$=Fle;d.GetBucketIntelligentTieringConfigurationCommand=mb;d.GetBucketIntelligentTieringConfigurationOutput$=Vse;d.GetBucketIntelligentTieringConfigurationRequest$=Wse;d.GetBucketInventoryConfiguration$=Ble;d.GetBucketInventoryConfigurationCommand=gb;d.GetBucketInventoryConfigurationOutput$=Kse;d.GetBucketInventoryConfigurationRequest$=Qse;d.GetBucketLifecycleConfiguration$=Ule;d.GetBucketLifecycleConfigurationCommand=hb;d.GetBucketLifecycleConfigurationOutput$=Yse;d.GetBucketLifecycleConfigurationRequest$=Jse;d.GetBucketLocation$=Gle;d.GetBucketLocationCommand=Sb;d.GetBucketLocationOutput$=Xse;d.GetBucketLocationRequest$=Zse;d.GetBucketLogging$=qle;d.GetBucketLoggingCommand=yb;d.GetBucketLoggingOutput$=eie;d.GetBucketLoggingRequest$=tie;d.GetBucketMetadataConfiguration$=Hle;d.GetBucketMetadataConfigurationCommand=Eb;d.GetBucketMetadataConfigurationOutput$=rie;d.GetBucketMetadataConfigurationRequest$=nie;d.GetBucketMetadataConfigurationResult$=oie;d.GetBucketMetadataTableConfiguration$=jle;d.GetBucketMetadataTableConfigurationCommand=_b;d.GetBucketMetadataTableConfigurationOutput$=sie;d.GetBucketMetadataTableConfigurationRequest$=iie;d.GetBucketMetadataTableConfigurationResult$=aie;d.GetBucketMetricsConfiguration$=zle;d.GetBucketMetricsConfigurationCommand=Rb;d.GetBucketMetricsConfigurationOutput$=cie;d.GetBucketMetricsConfigurationRequest$=uie;d.GetBucketNotificationConfiguration$=Vle;d.GetBucketNotificationConfigurationCommand=Cb;d.GetBucketNotificationConfigurationRequest$=lie;d.GetBucketOwnershipControls$=Wle;d.GetBucketOwnershipControlsCommand=bb;d.GetBucketOwnershipControlsOutput$=die;d.GetBucketOwnershipControlsRequest$=pie;d.GetBucketPolicy$=Kle;d.GetBucketPolicyCommand=Ab;d.GetBucketPolicyOutput$=fie;d.GetBucketPolicyRequest$=mie;d.GetBucketPolicyStatus$=Qle;d.GetBucketPolicyStatusCommand=xb;d.GetBucketPolicyStatusOutput$=gie;d.GetBucketPolicyStatusRequest$=hie;d.GetBucketReplication$=Yle;d.GetBucketReplicationCommand=Tb;d.GetBucketReplicationOutput$=Sie;d.GetBucketReplicationRequest$=yie;d.GetBucketRequestPayment$=Jle;d.GetBucketRequestPaymentCommand=vb;d.GetBucketRequestPaymentOutput$=Eie;d.GetBucketRequestPaymentRequest$=_ie;d.GetBucketTagging$=Xle;d.GetBucketTaggingCommand=Db;d.GetBucketTaggingOutput$=Rie;d.GetBucketTaggingRequest$=Cie;d.GetBucketVersioning$=Zle;d.GetBucketVersioningCommand=Ib;d.GetBucketVersioningOutput$=bie;d.GetBucketVersioningRequest$=Aie;d.GetBucketWebsite$=ede;d.GetBucketWebsiteCommand=wb;d.GetBucketWebsiteOutput$=xie;d.GetBucketWebsiteRequest$=Tie;d.GetObject$=tde;d.GetObjectAcl$=rde;d.GetObjectAclCommand=Pb;d.GetObjectAclOutput$=vie;d.GetObjectAclRequest$=Die;d.GetObjectAnnotation$=nde;d.GetObjectAnnotationCommand=Ob;d.GetObjectAnnotationOutput$=Iie;d.GetObjectAnnotationRequest$=wie;d.GetObjectAttributes$=ode;d.GetObjectAttributesCommand=$b;d.GetObjectAttributesOutput$=Pie;d.GetObjectAttributesParts$=Oie;d.GetObjectAttributesRequest$=$ie;d.GetObjectCommand=kb;d.GetObjectLegalHold$=sde;d.GetObjectLegalHoldCommand=Mb;d.GetObjectLegalHoldOutput$=kie;d.GetObjectLegalHoldRequest$=Mie;d.GetObjectLockConfiguration$=ide;d.GetObjectLockConfigurationCommand=Lb;d.GetObjectLockConfigurationOutput$=Lie;d.GetObjectLockConfigurationRequest$=Nie;d.GetObjectOutput$=Fie;d.GetObjectRequest$=Bie;d.GetObjectRetention$=ade;d.GetObjectRetentionCommand=Nb;d.GetObjectRetentionOutput$=Uie;d.GetObjectRetentionRequest$=Gie;d.GetObjectTagging$=cde;d.GetObjectTaggingCommand=Fb;d.GetObjectTaggingOutput$=qie;d.GetObjectTaggingRequest$=Hie;d.GetObjectTorrent$=ude;d.GetObjectTorrentCommand=Bb;d.GetObjectTorrentOutput$=jie;d.GetObjectTorrentRequest$=zie;d.GetPublicAccessBlock$=lde;d.GetPublicAccessBlockCommand=Ub;d.GetPublicAccessBlockOutput$=Vie;d.GetPublicAccessBlockRequest$=Wie;d.GlacierJobParameters$=Kie;d.Grant$=Qie;d.Grantee$=hN;d.HeadBucket$=dde;d.HeadBucketCommand=hd;d.HeadBucketOutput$=Yie;d.HeadBucketRequest$=Jie;d.HeadObject$=pde;d.HeadObjectCommand=Sd;d.HeadObjectOutput$=Xie;d.HeadObjectRequest$=Zie;d.IdempotencyParameterMismatch=dC;d.IdempotencyParameterMismatch$=zne;d.IndexDocument$=SN;d.Initiator$=yN;d.InputSerialization$=EN;d.IntelligentTieringAccessTier=fQe;d.IntelligentTieringAndOperator$=eae;d.IntelligentTieringConfiguration$=nx;d.IntelligentTieringFilter$=tae;d.IntelligentTieringStatus=pQe;d.InvalidAnnotationName=uC;d.InvalidAnnotationName$=Vne;d.InvalidObjectState=ZR;d.InvalidObjectState$=Wne;d.InvalidPrefix=rC;d.InvalidPrefix$=Kne;d.InvalidRequest=oC;d.InvalidRequest$=Qne;d.InvalidWriteOffset=sC;d.InvalidWriteOffset$=Yne;d.InventoryConfiguration$=ox;d.InventoryConfigurationState=iQe;d.InventoryDestination$=rae;d.InventoryEncryption$=nae;d.InventoryFilter$=oae;d.InventoryFormat=mQe;d.InventoryFrequency=SQe;d.InventoryIncludedObjectVersions=gQe;d.InventoryOptionalField=hQe;d.InventoryS3BucketDestination$=sae;d.InventorySchedule$=iae;d.InventoryTableConfiguration$=aae;d.InventoryTableConfigurationResult$=cae;d.InventoryTableConfigurationUpdates$=uae;d.JSONInput$=fae;d.JSONOutput$=mae;d.JSONType=XQe;d.JournalTableConfiguration$=lae;d.JournalTableConfigurationResult$=dae;d.JournalTableConfigurationUpdates$=pae;d.LambdaFunctionConfiguration$=gae;d.LifecycleExpiration$=hae;d.LifecycleRule$=Sae;d.LifecycleRuleAndOperator$=yae;d.LifecycleRuleFilter$=Eae;d.ListBucketAnalyticsConfigurations$=fde;d.ListBucketAnalyticsConfigurationsCommand=Gb;d.ListBucketAnalyticsConfigurationsOutput$=_ae;d.ListBucketAnalyticsConfigurationsRequest$=Rae;d.ListBucketIntelligentTieringConfigurations$=mde;d.ListBucketIntelligentTieringConfigurationsCommand=qb;d.ListBucketIntelligentTieringConfigurationsOutput$=Cae;d.ListBucketIntelligentTieringConfigurationsRequest$=bae;d.ListBucketInventoryConfigurations$=gde;d.ListBucketInventoryConfigurationsCommand=Hb;d.ListBucketInventoryConfigurationsOutput$=Aae;d.ListBucketInventoryConfigurationsRequest$=xae;d.ListBucketMetricsConfigurations$=hde;d.ListBucketMetricsConfigurationsCommand=jb;d.ListBucketMetricsConfigurationsOutput$=Tae;d.ListBucketMetricsConfigurationsRequest$=vae;d.ListBuckets$=Sde;d.ListBucketsCommand=ng;d.ListBucketsOutput$=Dae;d.ListBucketsRequest$=Iae;d.ListDirectoryBuckets$=yde;d.ListDirectoryBucketsCommand=og;d.ListDirectoryBucketsOutput$=wae;d.ListDirectoryBucketsRequest$=Pae;d.ListMultipartUploads$=Ede;d.ListMultipartUploadsCommand=zb;d.ListMultipartUploadsOutput$=Oae;d.ListMultipartUploadsRequest$=$ae;d.ListObjectAnnotations$=_de;d.ListObjectAnnotationsCommand=sg;d.ListObjectAnnotationsOutput$=kae;d.ListObjectAnnotationsRequest$=Mae;d.ListObjectVersions$=bde;d.ListObjectVersionsCommand=Wb;d.ListObjectVersionsOutput$=Uae;d.ListObjectVersionsRequest$=Gae;d.ListObjects$=Rde;d.ListObjectsCommand=Vb;d.ListObjectsOutput$=Lae;d.ListObjectsRequest$=Nae;d.ListObjectsV2$=Cde;d.ListObjectsV2Command=ig;d.ListObjectsV2Output$=Fae;d.ListObjectsV2Request$=Bae;d.ListParts$=Ade;d.ListPartsCommand=ag;d.ListPartsOutput$=qae;d.ListPartsRequest$=Hae;d.LocationInfo$=jae;d.LocationType=tQe;d.LoggingEnabled$=_N;d.MFADelete=WQe;d.MFADeleteStatus=kQe;d.MetadataConfiguration$=zae;d.MetadataConfigurationResult$=Vae;d.MetadataDirective=z9e;d.MetadataEntry$=Wae;d.MetadataTableConfiguration$=Kae;d.MetadataTableConfigurationResult$=Qae;d.MetadataTableEncryptionConfiguration$=Xd;d.Metrics$=Yae;d.MetricsAndOperator$=Jae;d.MetricsConfiguration$=sx;d.MetricsFilter$=tle;d.MetricsStatus=vQe;d.MultipartUpload$=Xae;d.NoSuchAnnotation=eC;d.NoSuchAnnotation$=Jne;d.NoSuchBucket=JR;d.NoSuchBucket$=Xne;d.NoSuchKey=XR;d.NoSuchKey$=Zne;d.NoSuchUpload=VR;d.NoSuchUpload$=eoe;d.NoncurrentVersionExpiration$=Zae;d.NoncurrentVersionTransition$=ece;d.NotFound=tC;d.NotFound$=toe;d.NotificationConfiguration$=RN;d.NotificationConfigurationFilter$=ix;d.ObjectAlreadyInActiveTierError=pC;d.ObjectAlreadyInActiveTierError$=roe;d.ObjectAttributes=BQe;d.ObjectCannedACL=q9e;d.ObjectEncryption$=rle;d.ObjectIdentifier$=rce;d.ObjectLockConfiguration$=CN;d.ObjectLockEnabled=UQe;d.ObjectLockEventHold=V9e;d.ObjectLockLegalHold$=bN;d.ObjectLockLegalHoldStatus=W9e;d.ObjectLockMode=K9e;d.ObjectLockRetention$=AN;d.ObjectLockRetentionMode=GQe;d.ObjectLockRule$=nce;d.ObjectNotInActiveTierError=KR;d.ObjectNotInActiveTierError$=noe;d.ObjectOwnership=nQe;d.ObjectPart$=oce;d.ObjectStorageClass=jQe;d.ObjectVersion$=sce;d.ObjectVersionStorageClass=VQe;d.OptionalObjectAttributes=zQe;d.OutputLocation$=ice;d.OutputSerialization$=xN;d.Owner$=gi;d.OwnerOverride=B9e;d.OwnershipControls$=TN;d.OwnershipControlsRule$=ace;d.ParquetInput$=cce;d.Part$=uce;d.PartitionDateSource=CQe;d.PartitionedPrefix$=lce;d.Payer=$Qe;d.Permission=F9e;d.PolicyStatus$=dce;d.Progress$=pce;d.ProgressEvent$=fce;d.Protocol=LQe;d.PublicAccessBlockConfiguration$=vN;d.PutBucketAbac$=xde;d.PutBucketAbacCommand=Kb;d.PutBucketAbacRequest$=mce;d.PutBucketAccelerateConfiguration$=Tde;d.PutBucketAccelerateConfigurationCommand=Qb;d.PutBucketAccelerateConfigurationRequest$=gce;d.PutBucketAcl$=vde;d.PutBucketAclCommand=Yb;d.PutBucketAclRequest$=hce;d.PutBucketAnalyticsConfiguration$=Dde;d.PutBucketAnalyticsConfigurationCommand=Jb;d.PutBucketAnalyticsConfigurationRequest$=Sce;d.PutBucketCors$=Ide;d.PutBucketCorsCommand=Xb;d.PutBucketCorsRequest$=yce;d.PutBucketEncryption$=wde;d.PutBucketEncryptionCommand=Zb;d.PutBucketEncryptionRequest$=Ece;d.PutBucketIntelligentTieringConfiguration$=Pde;d.PutBucketIntelligentTieringConfigurationCommand=eA;d.PutBucketIntelligentTieringConfigurationRequest$=_ce;d.PutBucketInventoryConfiguration$=Ode;d.PutBucketInventoryConfigurationCommand=tA;d.PutBucketInventoryConfigurationRequest$=Rce;d.PutBucketLifecycleConfiguration$=$de;d.PutBucketLifecycleConfigurationCommand=rA;d.PutBucketLifecycleConfigurationOutput$=Cce;d.PutBucketLifecycleConfigurationRequest$=bce;d.PutBucketLogging$=kde;d.PutBucketLoggingCommand=nA;d.PutBucketLoggingRequest$=Ace;d.PutBucketMetricsConfiguration$=Mde;d.PutBucketMetricsConfigurationCommand=oA;d.PutBucketMetricsConfigurationRequest$=xce;d.PutBucketNotificationConfiguration$=Lde;d.PutBucketNotificationConfigurationCommand=sA;d.PutBucketNotificationConfigurationRequest$=Tce;d.PutBucketOwnershipControls$=Nde;d.PutBucketOwnershipControlsCommand=iA;d.PutBucketOwnershipControlsRequest$=vce;d.PutBucketPolicy$=Fde;d.PutBucketPolicyCommand=aA;d.PutBucketPolicyRequest$=Dce;d.PutBucketReplication$=Bde;d.PutBucketReplicationCommand=cA;d.PutBucketReplicationRequest$=Ice;d.PutBucketRequestPayment$=Ude;d.PutBucketRequestPaymentCommand=uA;d.PutBucketRequestPaymentRequest$=wce;d.PutBucketTagging$=Gde;d.PutBucketTaggingCommand=lA;d.PutBucketTaggingRequest$=Pce;d.PutBucketVersioning$=qde;d.PutBucketVersioningCommand=dA;d.PutBucketVersioningRequest$=Oce;d.PutBucketWebsite$=Hde;d.PutBucketWebsiteCommand=pA;d.PutBucketWebsiteRequest$=$ce;d.PutObject$=jde;d.PutObjectAcl$=zde;d.PutObjectAclCommand=fA;d.PutObjectAclOutput$=kce;d.PutObjectAclRequest$=Mce;d.PutObjectAnnotation$=Vde;d.PutObjectAnnotationCommand=mA;d.PutObjectAnnotationOutput$=Lce;d.PutObjectAnnotationRequest$=Nce;d.PutObjectCommand=gA;d.PutObjectLegalHold$=Wde;d.PutObjectLegalHoldCommand=hA;d.PutObjectLegalHoldOutput$=Fce;d.PutObjectLegalHoldRequest$=Bce;d.PutObjectLockConfiguration$=Kde;d.PutObjectLockConfigurationCommand=SA;d.PutObjectLockConfigurationOutput$=Uce;d.PutObjectLockConfigurationRequest$=Gce;d.PutObjectOutput$=qce;d.PutObjectRequest$=Hce;d.PutObjectRetention$=Qde;d.PutObjectRetentionCommand=yA;d.PutObjectRetentionOutput$=jce;d.PutObjectRetentionRequest$=zce;d.PutObjectTagging$=Yde;d.PutObjectTaggingCommand=EA;d.PutObjectTaggingOutput$=Vce;d.PutObjectTaggingRequest$=Wce;d.PutPublicAccessBlock$=Jde;d.PutPublicAccessBlockCommand=_A;d.PutPublicAccessBlockRequest$=Kce;d.QueueConfiguration$=Qce;d.QuoteFields=ZQe;d.RecordExpiration$=ax;d.RecordsEvent$=Yce;d.Redirect$=Jce;d.RedirectAllRequestsTo$=DN;d.RenameObject$=Xde;d.RenameObjectCommand=RA;d.RenameObjectOutput$=Xce;d.RenameObjectRequest$=Zce;d.ReplicaModifications$=eue;d.ReplicaModificationsStatus=wQe;d.ReplicationConfiguration$=IN;d.ReplicationRule$=tue;d.ReplicationRuleAndOperator$=rue;d.ReplicationRuleFilter$=nue;d.ReplicationRuleStatus=OQe;d.ReplicationStatus=NQe;d.ReplicationTime$=oue;d.ReplicationTimeStatus=DQe;d.ReplicationTimeValue$=wN;d.RequestCharged=k9e;d.RequestPayer=M9e;d.RequestPaymentConfiguration$=sue;d.RequestProgress$=iue;d.RestoreObject$=Zde;d.RestoreObjectCommand=CA;d.RestoreObjectOutput$=aue;d.RestoreObjectRequest$=cue;d.RestoreRequest$=uue;d.RestoreRequestType=e7e;d.RestoreStatus$=PN;d.RoutingRule$=lue;d.S3=PA;d.S3Client=Bi;d.S3KeyFilter$=due;d.S3Location$=pue;d.S3ServiceException=rt;d.S3ServiceException$=Fne;d.S3TablesBucketType=bQe;d.S3TablesDestination$=fue;d.S3TablesDestinationResult$=mue;d.SSEKMS$=Aue;d.SSEKMSEncryption$=Tue;d.SSES3$=vue;d.ScanRange$=gue;d.SelectObjectContent$=epe;d.SelectObjectContentCommand=bA;d.SelectObjectContentEventStream$=nle;d.SelectObjectContentOutput$=hue;d.SelectObjectContentRequest$=Sue;d.SelectParameters$=yue;d.ServerSideEncryption=G9e;d.ServerSideEncryptionByDefault$=Eue;d.ServerSideEncryptionConfiguration$=ON;d.ServerSideEncryptionRule$=_ue;d.SessionCredentials$=Rue;d.SessionMode=cQe;d.SimplePrefix$=Cue;d.SourceSelectionCriteria$=bue;d.SseKmsEncryptedObjects$=xue;d.SseKmsEncryptedObjectsStatus=PQe;d.Stats$=Due;d.StatsEvent$=Iue;d.StorageClass=Q9e;d.StorageClassAnalysis$=wue;d.StorageClassAnalysisDataExport$=Pue;d.StorageClassAnalysisSchemaVersion=lQe;d.TableSseAlgorithm=sQe;d.Tag$=du;d.Tagging$=cx;d.TaggingDirective=Y9e;d.TargetGrant$=Oue;d.TargetObjectKeyFormat$=$ue;d.Tier=KQe;d.Tiering$=kue;d.TooManyParts=iC;d.TooManyParts$=ooe;d.TopicConfiguration$=Mue;d.Transition$=Lue;d.TransitionDefaultMinimumObjectSize=_Qe;d.TransitionStorageClass=yQe;d.Type=N9e;d.UnsupportedMediaType=lC;d.UnsupportedMediaType$=soe;d.UpdateBucketMetadataAnnotationTableConfiguration$=tpe;d.UpdateBucketMetadataAnnotationTableConfigurationCommand=AA;d.UpdateBucketMetadataAnnotationTableConfigurationRequest$=Nue;d.UpdateBucketMetadataInventoryTableConfiguration$=rpe;d.UpdateBucketMetadataInventoryTableConfigurationCommand=xA;d.UpdateBucketMetadataInventoryTableConfigurationRequest$=Fue;d.UpdateBucketMetadataJournalTableConfiguration$=npe;d.UpdateBucketMetadataJournalTableConfigurationCommand=TA;d.UpdateBucketMetadataJournalTableConfigurationRequest$=Bue;d.UpdateObjectEncryption$=ope;d.UpdateObjectEncryptionCommand=vA;d.UpdateObjectEncryptionRequest$=Uue;d.UpdateObjectEncryptionResponse$=Gue;d.UploadPart$=spe;d.UploadPartCommand=DA;d.UploadPartCopy$=ipe;d.UploadPartCopyCommand=IA;d.UploadPartCopyOutput$=que;d.UploadPartCopyRequest$=Hue;d.UploadPartOutput$=jue;d.UploadPartRequest$=zue;d.VersioningConfiguration$=Vue;d.WebsiteConfiguration$=Wue;d.WriteGetObjectResponse$=ape;d.WriteGetObjectResponseCommand=wA;d.WriteGetObjectResponseRequest$=Kue;d._Error$=wse;d._Object$=tce;d.errorTypeRegistries=ioe;d.paginateListBuckets=cpe;d.paginateListDirectoryBuckets=upe;d.paginateListObjectAnnotations=lpe;d.paginateListObjectsV2=dpe;d.paginateListParts=ppe;d.waitForBucketExists=T9e;d.waitForBucketNotExists=v9e;d.waitForObjectExists=D9e;d.waitForObjectNotExists=I9e;d.waitUntilBucketExists=mpe;d.waitUntilBucketNotExists=hpe;d.waitUntilObjectExists=ype;d.waitUntilObjectNotExists=_pe});var Gx=st(D=>{var{awsEndpointFunctions:o7e,emitWarningIfUnsupportedVersion:s7e,createDefaultUserAgentProvider:i7e,NODE_APP_ID_CONFIG_OPTIONS:a7e,getAwsRegionExtensionConfiguration:c7e,resolveAwsRegionExtensionConfiguration:u7e,resolveUserAgentConfig:l7e,resolveHostHeaderConfig:d7e,getUserAgentPlugin:p7e,getHostHeaderPlugin:f7e,getLoggerPlugin:m7e,getRecursionDetectionPlugin:g7e}=(Ee(),F(Mn)),{getHttpAuthSchemeEndpointRuleSetPlugin:h7e,DefaultIdentityProviderConfig:S7e,getHttpSigningPlugin:y7e,createPaginator:LN}=(jt(),F(xl)),{normalizeProvider:Gpe,getSmithyContext:E7e,ServiceException:_7e,NoOpLogger:R7e,emitWarningIfUnsupportedVersion:C7e,loadConfigsForDefaultMode:b7e,getDefaultExtensionConfiguration:A7e,resolveDefaultRuntimeConfig:x7e,Client:qpe,makeBuilder:T7e,createWaiter:mo,checkExceptions:tp,WaiterState:ct,createAggregatedClient:v7e}=(J(),F(bo)),{Command:D7e}=(J(),F(bo));D.$Command=D7e;D.__Client=qpe;var{resolveDefaultsModeConfig:I7e,loadConfig:pu,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:w7e,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:P7e,NODE_REGION_CONFIG_OPTIONS:O7e,NODE_REGION_CONFIG_FILE_OPTIONS:$7e,resolveRegionConfig:k7e}=(ye(),F(Br)),{BinaryDecisionDiagram:M7e,EndpointCache:L7e,decideEndpoint:N7e,customEndpointFunctions:F7e,resolveEndpointConfig:B7e,getEndpointPlugin:U7e}=(He(),F(jp)),{parseUrl:G7e,getHttpHandlerExtensionConfiguration:q7e,resolveHttpHandlerRuntimeConfig:H7e,getContentLengthPlugin:j7e}=(V(),F(wo)),{DEFAULT_RETRY_MODE:z7e,NODE_RETRY_MODE_CONFIG_OPTIONS:V7e,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:W7e,resolveRetryConfig:K7e,getRetryPlugin:Q7e}=(tn(),F(nf)),{TypeRegistry:Hpe,getSchemaSerdePlugin:Y7e}=(ae(),F(Dp)),{resolveAwsSdkSigV4Config:J7e,AwsSdkSigV4Signer:X7e,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:Z7e}=(rr(),F(Il)),{defaultProvider:eYe}=Cm(),{toUtf8:tYe,fromUtf8:rYe,toBase64:nYe,fromBase64:oYe,calculateBodyLength:sYe}=(j(),F(To)),{streamCollector:iYe,NodeHttpHandler:aYe}=zs(),{AwsRestJsonProtocol:cYe}=(Di(),F(Vy)),{Sha256:uYe}=($n(),F(Vp)),lYe=async(t,e,r)=>({operation:E7e(e).operation,region:await Gpe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function dYe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"lambda",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var pYe=t=>{let e=[];switch(t.operation){default:e.push(dYe(t))}return e},fYe=t=>{let e=J7e(t);return Object.assign(e,{authSchemePreference:Gpe(t.authSchemePreference??[])})},mYe=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"lambda"}),gYe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},hYe="3.1151.0",SYe={version:hYe},Bg="ref",fu=-1,dx=!0,kpe="isSet",jpe="PartitionResult",px="booleanEquals",Mpe="getAttr",Lpe={[Bg]:"Endpoint"},Npe={[Bg]:jpe},Fg={},Fpe=[{[Bg]:"Region"}],Bpe={conditions:[[kpe,[Lpe]],[kpe,Fpe],["aws.partition",Fpe,jpe],[px,[{[Bg]:"UseFIPS"},dx]],[px,[{[Bg]:"UseDualStack"},dx]],[px,[{fn:Mpe,argv:[Npe,"supportsDualStack"]},dx]],[px,[{fn:Mpe,argv:[Npe,"supportsFIPS"]},dx]]],results:[[fu],[fu,"Invalid Configuration: FIPS and custom endpoint are not supported"],[fu,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Lpe,Fg],["https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Fg],[fu,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}",Fg],[fu,"FIPS is enabled but this partition does not support FIPS"],["https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}",Fg],[fu,"DualStack is enabled but this partition does not support DualStack"],["https://lambda.{Region}.{PartitionResult#dnsSuffix}",Fg],[fu,"Invalid Configuration: Missing Region"]]},yYe=2,Hn=1e8,EYe=new Int32Array([-1,1,-1,0,12,3,1,4,Hn+11,2,5,Hn+11,3,8,6,4,7,Hn+10,5,Hn+8,Hn+9,4,10,9,6,Hn+6,Hn+7,5,11,Hn+5,6,Hn+4,Hn+5,3,Hn+1,13,4,Hn+2,Hn+3]),_Ye=M7e.from(EYe,yYe,Bpe.conditions,Bpe.results),RYe=new L7e({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),CYe=(t,e={})=>RYe.get(t,()=>N7e(_Ye,{endpointParams:t,logger:e.logger}));F7e.aws=o7e;var ns=class t extends _7e{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.lambdaweb#LambdaWebServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},fx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#AccessDeniedException";name="AccessDeniedException";$fault="client";constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},mx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ConflictException";name="ConflictException";$fault="client";resourceId;resourceType;constructor(e){super({name:"ConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceId=e.resourceId,this.resourceType=e.resourceType}},gx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#InternalServerException";name="InternalServerException";$fault="server";$retryable={};constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},hx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";resourceId;resourceType;constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceId=e.resourceId,this.resourceType=e.resourceType}},Sx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ServiceQuotaExceededException";name="ServiceQuotaExceededException";$fault="client";resourceId;resourceType;serviceCode;quotaCode;constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceId=e.resourceId,this.resourceType=e.resourceType,this.serviceCode=e.serviceCode,this.quotaCode=e.quotaCode}},yx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ThrottlingException";name="ThrottlingException";$fault="client";$retryable={throttling:!0};retryAfterSeconds;serviceCode;quotaCode;constructor(e){super({name:"ThrottlingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.retryAfterSeconds=e.retryAfterSeconds,this.serviceCode=e.serviceCode,this.quotaCode=e.quotaCode}},Ex=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ValidationException";name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},bYe="AccessDeniedException",AYe="AccountQuotas",xYe="AccountUsage",TYe="BuildConfig",vYe="CodeConfig",DYe="ConflictException",IYe="CreateWebFunction",wYe="CreateWebFunctionEndpoint",PYe="CreateWebFunctionEndpointRequest",OYe="CreateWebFunctionEndpointResponse",$Ye="CreateWebFunctionRequest",kYe="CreateWebFunctionRevisionRequest",MYe="CreateWebFunctionRevisionResponse",LYe="CreateWebFunctionResponse",NYe="CreateWebFunctionRevision",FYe="DeleteResourcePolicy",BYe="DeleteResourcePolicyRequest",UYe="DeleteWebFunction",GYe="DeleteWebFunctionEndpoint",qYe="DeleteWebFunctionEndpointRequest",HYe="DeleteWebFunctionRequest",jYe="DeleteWebFunctionRevisionRequest",zYe="DeleteWebFunctionRevision",VYe="EndpointConfig",WYe="EnvironmentVariables",KYe="Filter",QYe="FunctionEndpointSummary",YYe="FunctionEndpointSummaryList",JYe="FilterList",XYe="FunctionRevisionSummary",ZYe="FunctionRevisionSummaryList",eJe="FunctionSummary",tJe="FunctionSummaryList",rJe="GetResourcePolicy",nJe="GetResourcePolicyRequest",oJe="GetResourcePolicyResponse",sJe="GetWebAccountSettings",iJe="GetWebAccountSettingsRequest",aJe="GetWebAccountSettingsResponse",cJe="GetWebFunction",uJe="GetWebFunctionEndpoint",lJe="GetWebFunctionEndpointRequest",dJe="GetWebFunctionEndpointResponse",pJe="GetWebFunctionRequest",fJe="GetWebFunctionRevisionRequest",mJe="GetWebFunctionRevisionResponse",gJe="GetWebFunctionResponse",hJe="GetWebFunctionRevision",SJe="InternalServerException",yJe="LoggingConfig",EJe="ListTags",_Je="ListTagsRequest",RJe="ListTagsResponse",CJe="ListWebFunctions",bJe="ListWebFunctionEndpoints",AJe="ListWebFunctionEndpointsRequest",xJe="ListWebFunctionEndpointsResponse",TJe="ListWebFunctionsRequest",vJe="ListWebFunctionRevisionsRequest",DJe="ListWebFunctionRevisionsResponse",IJe="ListWebFunctionsResponse",wJe="ListWebFunctionRevisions",NN="Policy",PJe="PutResourcePolicy",OJe="PutResourcePolicyRequest",$Je="PutResourcePolicyResponse",kJe="Retry-After",MJe="RevisionConfig",LJe="RuntimeConfig",NJe="RegionalEndpoint",FJe="RevisionError",BJe="RegionalEndpoints",UJe="RevisionErrors",Mx="RevisionId",GJe="ResourceNotFoundException",qJe="RevisionWeight",HJe="RevisionWeightList",jJe="ScalingConfig",zJe="ServiceConfig",VJe="S3Object",WJe="ServiceQuotaExceededException",zpe="Tags",KJe="TelemetryConfig",QJe="ThrottleConfig",YJe="ThrottlingException",JJe="TagResource",XJe="TagResourceRequest",ZJe="UntagResource",eXe="UntagResourceRequest",tXe="UpdateWebFunctionEndpoint",rXe="UpdateWebFunctionEndpointRequest",nXe="UpdateWebFunctionEndpointResponse",oXe="ValidationException",sXe="attribute",hu="autoDeploymentMode",iXe="applicationLogLevel",aXe="accountQuotas",tc="authType",cXe="accountUsage",uXe="bucket",Lx="buildConfig",rp="client",hi="createdAt",lXe="codeConfig",go="description",jg="domainName",Su="error",Nx="endpointArn",dXe="endpointConfig",pXe="errorCode",fXe="errorMessage",zi="endpointName",mXe="egressNetworkConnectorArn",gXe="executionRoleArn",np="endpointType",hXe="environmentVariables",SXe="endpoint",yXe="endpoints",Vpe="errors",FN="filters",rc="functionArn",EXe="functionCount",pn="functionName",_Xe="functions",Mt="http",yu="httpError",RXe="httpHeader",Wpe="httpQuery",ec="jsonName",CXe="key",Fx="kmsKeyArn",bXe="loggingConfig",AXe="logGroup",Eu="message",xXe="maxConcurrencyPerEnvironment",TXe="maxEnvironments",vXe="maxEndpointsPerFunction",BN="maxResults",DXe="maxRevisionsPerFunction",IXe="maxTotalArmVCpus",wXe="maxTotalRateLimit",PXe="name",op="nextToken",UN="policy",Kpe="quotaCode",sp="regions",GN="revisionArn",OXe="retryAfterSeconds",qN="resourceArn",$Xe="runtimeConfig",kXe="revisionConfig",HN="regionalEndpoints",jN="resourceId",Si="revisionId",MXe="rateLimit",zN="resourceType",_u="revisionWeights",LXe="revision",VN="resource",NXe="revisions",FXe="runtime",Qpe="smithy.ts.sdk.synthetic.com.amazonaws.lambdaweb",Ype="serviceCode",nc="scalingConfig",Bx="serviceConfig",BXe="systemLogLevel",UXe="s3Object",os="stateReason",GXe="server",ss="state",Ux="tags",oc="throttleConfig",qXe="telemetryConfig",Upe="tagKeys",HXe="timeoutSeconds",Ru="updatedAt",zg="updateStatus",Vg="updateStatusReason",jXe="values",zXe="versionId",VXe="weight",G="com.amazonaws.lambdaweb",Jpe=new Hpe(Qpe),Xpe=[-3,Qpe,"LambdaWebServiceException",0,[],[]];Jpe.registerError(Xpe,ns);var sc=new Hpe(G),Zpe=[-3,G,bYe,{[Su]:rp,[yu]:403},[Eu],[0],1];sc.registerError(Zpe,fx);var efe=[-3,G,DYe,{[Su]:rp,[yu]:409},[Eu,jN,zN],[0,0,0],1];sc.registerError(efe,mx);var tfe=[-3,G,SJe,{[Su]:GXe,[yu]:500},[Eu],[0]];sc.registerError(tfe,gx);var rfe=[-3,G,GJe,{[Su]:rp,[yu]:404},[Eu,jN,zN],[0,0,0],1];sc.registerError(rfe,hx);var nfe=[-3,G,WJe,{[Su]:rp,[yu]:402},[Eu,jN,zN,Ype,Kpe],[0,0,0,0,0],1];sc.registerError(nfe,Sx);var ofe=[-3,G,YJe,{[Su]:rp,[yu]:429},[Eu,OXe,Ype,Kpe],[0,[1,{[RXe]:kJe}],0,0],1];sc.registerError(ofe,yx);var sfe=[-3,G,oXe,{[Su]:rp,[yu]:400},[Eu],[0],1];sc.registerError(sfe,Ex);var ife=[Jpe,sc],afe=[3,G,AYe,0,[IXe,wXe,DXe,vXe],[1,1,1,1],4],cfe=[3,G,xYe,0,[EXe],[1],1],Wg=[3,G,TYe,0,[lXe,$Xe],[()=>ufe,()=>Kfe],2],ufe=[3,G,vYe,0,[UXe],[()=>Qfe],1],lfe=[3,G,PYe,0,[pn,zi,np,tc,go,hu,_u,sp,nc,oc],[[0,1],0,0,0,0,0,()=>Cu,64,()=>Vi,()=>Wi],4],dfe=[3,G,OYe,0,[rc,Nx,zi,np,jg,tc,hu,_u,sp,ss,os,HN,hi,Ru,go,nc,oc,zg,Vg],[0,0,0,0,0,0,0,()=>Cu,64,0,0,()=>YN,5,5,0,()=>Vi,()=>Wi,0,0],14],pfe=[3,G,$Ye,0,[pn,kXe,dXe,Ux],[0,[()=>zfe,0],()=>_fe,128],1],ffe=[3,G,LYe,0,[pn,rc,ss,os,hi,Ru,LXe,SXe,Ux],[0,0,0,0,5,5,()=>KN,()=>WN,128],6],mfe=[3,G,kYe,0,[pn,Lx,Bx,go,Fx],[[0,1],()=>Wg,[()=>Kg,0],0,0],3],gfe=[3,G,MYe,0,[rc,GN,Si,Lx,Bx,ss,os,hi,go,Fx,Vpe],[0,0,0,()=>Wg,[()=>Kg,0],0,0,5,0,0,()=>tme],8],hfe=[3,G,BYe,0,[qN,Si],[[0,1],[0,{[Wpe]:Mx}]],1],Sfe=[3,G,qYe,0,[pn,zi],[[0,1],[0,1]],2],yfe=[3,G,HYe,0,[pn],[[0,1]],1],Efe=[3,G,jYe,0,[pn,Si],[[0,1],[0,1]],2],_fe=[3,G,VYe,0,[zi,np,tc,go,hu,sp,nc,oc],[0,0,0,0,0,64,()=>Vi,()=>Wi],3],Rfe=[3,G,KYe,0,[PXe,jXe],[0,64],2],WN=[3,G,QYe,0,[Nx,zi,np,jg,tc,hu,_u,sp,ss,os,hi,Ru,go,nc,oc,zg,Vg],[0,0,0,0,0,0,()=>Cu,64,0,0,5,5,0,()=>Vi,()=>Wi,0,0],12],KN=[3,G,XYe,0,[GN,Si,ss,os,hi,go],[0,0,0,0,5,0],5],Cfe=[3,G,eJe,0,[pn,rc,ss,os,hi,Ru],[0,0,0,0,5,5],6],bfe=[3,G,nJe,0,[qN],[[0,1]],1],Afe=[3,G,oJe,0,[UN,Si],[[0,{[ec]:NN}],[0,{[ec]:Mx}]],2],xfe=[3,G,iJe,0,[],[]],Tfe=[3,G,aJe,0,[aXe,cXe],[()=>afe,()=>cfe],2],vfe=[3,G,lJe,0,[pn,zi],[[0,1],[0,1]],2],Dfe=[3,G,dJe,0,[rc,Nx,zi,np,jg,tc,hu,_u,sp,ss,os,HN,hi,Ru,go,nc,oc,zg,Vg],[0,0,0,0,0,0,0,()=>Cu,64,0,0,()=>YN,5,5,0,()=>Vi,()=>Wi,0,0],14],Ife=[3,G,pJe,0,[pn],[[0,1]],1],wfe=[3,G,gJe,0,[pn,rc,ss,os,hi,Ru],[0,0,0,0,5,5],6],Pfe=[3,G,fJe,0,[pn,Si],[[0,1],[0,1]],2],Ofe=[3,G,mJe,0,[rc,GN,Si,Lx,Bx,ss,os,hi,go,Fx,Vpe],[0,0,0,()=>Wg,[()=>Kg,0],0,0,5,0,0,()=>tme],8],$fe=[3,G,_Je,0,[VN],[[0,1]],1],kfe=[3,G,RJe,0,[Ux],[[128,{[ec]:zpe}]]],Mfe=[3,G,AJe,0,[pn,FN,BN,op],[[0,1],()=>QN,1,0],1],Lfe=[3,G,xJe,0,[yXe,op],[()=>WXe,0],1],Nfe=[3,G,vJe,0,[pn,FN,BN,op],[[0,1],()=>QN,1,0],1],Ffe=[3,G,DJe,0,[NXe,op],[()=>KXe,0],1],Bfe=[3,G,TJe,0,[FN,BN,op],[()=>QN,1,0]],Ufe=[3,G,IJe,0,[_Xe,op],[()=>QXe,0],1],Gfe=[3,G,yJe,0,[AXe,iXe,BXe],[0,0,0]],qfe=[3,G,OJe,0,[qN,UN,Si],[[0,1],[0,{[ec]:NN}],[0,{[ec]:Mx}]],2],Hfe=[3,G,$Je,0,[UN,Si],[[0,{[ec]:NN}],[0,{[ec]:Mx}]],2],jfe=[3,G,NJe,0,[tc,_u,ss,os,jg,nc,oc,zg,Vg],[0,()=>Cu,0,0,0,()=>Vi,()=>Wi,0,0],4],zfe=[3,G,MJe,0,[Lx,Bx,go,Fx],[()=>Wg,[()=>Kg,0],0,0],2],Vfe=[3,G,FJe,0,[sXe,pXe,fXe],[0,0,0],3],Wfe=[3,G,qJe,0,[Si,VXe],[0,1],2],Kfe=[3,G,LJe,0,[FXe],[0],1],Qfe=[3,G,VJe,0,[uXe,CXe,zXe],[0,0,0],2],Vi=[3,G,jJe,0,[TXe],[1]],Kg=[3,G,zJe,0,[gXe,HXe,mXe,xXe,hXe,qXe],[0,1,0,1,[()=>YXe,0],()=>Jfe],1],Yfe=[3,G,XJe,0,[VN,Ux],[[0,1],[128,{[ec]:zpe}]],2],Jfe=[3,G,KJe,0,[bXe],[()=>Gfe]],Wi=[3,G,QJe,0,[MXe],[1]],Xfe=[3,G,eXe,0,[VN,Upe],[[0,1],[64,{[Wpe]:Upe}]],2],Zfe=[3,G,rXe,0,[pn,zi,go,tc,hu,_u,nc,oc],[[0,1],[0,1],0,0,0,()=>Cu,()=>Vi,()=>Wi],2],eme=[3,G,nXe,0,[rc,Nx,zi,np,jg,tc,hu,_u,sp,ss,os,HN,hi,Ru,go,nc,oc,zg,Vg],[0,0,0,0,0,0,0,()=>Cu,64,0,0,()=>YN,5,5,0,()=>Vi,()=>Wi,0,0],14],ip="unit",QN=[1,G,JYe,0,()=>Rfe],WXe=[1,G,YYe,0,()=>WN],KXe=[1,G,ZYe,0,()=>KN],QXe=[1,G,tJe,0,()=>Cfe],tme=[1,G,UJe,0,()=>Vfe],Cu=[1,G,HJe,0,()=>Wfe],YXe=[2,G,WYe,8,0,0],YN=[2,G,BJe,0,0,()=>jfe],rme=[9,G,IYe,{[Mt]:["PUT","/2025-03-07/web-functions",202]},()=>pfe,()=>ffe],nme=[9,G,wYe,{[Mt]:["PUT","/2025-03-07/web-functions/{functionName}/endpoints",202]},()=>lfe,()=>dfe],ome=[9,G,NYe,{[Mt]:["POST","/2025-03-07/web-functions/{functionName}/revisions",202]},()=>mfe,()=>gfe],sme=[9,G,FYe,{[Mt]:["DELETE","/2025-03-07/resource-policy/{resourceArn}",204]},()=>hfe,()=>ip],ime=[9,G,UYe,{[Mt]:["DELETE","/2025-03-07/web-functions/{functionName}",204]},()=>yfe,()=>ip],ame=[9,G,GYe,{[Mt]:["DELETE","/2025-03-07/web-functions/{functionName}/endpoints/{endpointName}",204]},()=>Sfe,()=>ip],cme=[9,G,zYe,{[Mt]:["DELETE","/2025-03-07/web-functions/{functionName}/revisions/{revisionId}",204]},()=>Efe,()=>ip],ume=[9,G,rJe,{[Mt]:["GET","/2025-03-07/resource-policy/{resourceArn}",200]},()=>bfe,()=>Afe],lme=[9,G,sJe,{[Mt]:["GET","/2025-03-07/web-account-settings",200]},()=>xfe,()=>Tfe],dme=[9,G,cJe,{[Mt]:["GET","/2025-03-07/web-functions/{functionName}",200]},()=>Ife,()=>wfe],pme=[9,G,uJe,{[Mt]:["GET","/2025-03-07/web-functions/{functionName}/endpoints/{endpointName}",200]},()=>vfe,()=>Dfe],fme=[9,G,hJe,{[Mt]:["GET","/2025-03-07/web-functions/{functionName}/revisions/{revisionId}",200]},()=>Pfe,()=>Ofe],mme=[9,G,EJe,{[Mt]:["GET","/2025-03-07/tags/{resource}",200]},()=>$fe,()=>kfe],gme=[9,G,bJe,{[Mt]:["POST","/2025-03-07/web-functions/{functionName}/list-endpoints",200]},()=>Mfe,()=>Lfe],hme=[9,G,wJe,{[Mt]:["POST","/2025-03-07/web-functions/{functionName}/list-revisions",200]},()=>Nfe,()=>Ffe],Sme=[9,G,CJe,{[Mt]:["POST","/2025-03-07/web-functions",200]},()=>Bfe,()=>Ufe],yme=[9,G,PJe,{[Mt]:["PUT","/2025-03-07/resource-policy/{resourceArn}",200]},()=>qfe,()=>Hfe],Eme=[9,G,JJe,{[Mt]:["POST","/2025-03-07/tags/{resource}",204]},()=>Yfe,()=>ip],_me=[9,G,ZJe,{[Mt]:["DELETE","/2025-03-07/tags/{resource}",204]},()=>Xfe,()=>ip],Rme=[9,G,tXe,{[Mt]:["PATCH","/2025-03-07/web-functions/{functionName}/endpoints/{endpointName}",202]},()=>Zfe,()=>eme],JXe=t=>({apiVersion:"2025-03-07",base64Decoder:t?.base64Decoder??oYe,base64Encoder:t?.base64Encoder??nYe,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??CYe,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??pYe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new X7e}],logger:t?.logger??new R7e,protocol:t?.protocol??cYe,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.lambdaweb",errorTypeRegistries:ife,version:"2025-03-07",serviceTarget:"LambdaWeb"},serviceId:t?.serviceId??"Lambda Web",sha256:t?.sha256??uYe,urlParser:t?.urlParser??G7e,utf8Decoder:t?.utf8Decoder??rYe,utf8Encoder:t?.utf8Encoder??tYe}),XXe=t=>{C7e(process.version);let e=I7e(t),r=()=>e().then(b7e),n=JXe(t);s7e(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??pu(Z7e,o),bodyLengthChecker:t?.bodyLengthChecker??sYe,credentialDefaultProvider:t?.credentialDefaultProvider??eYe,defaultUserAgentProvider:t?.defaultUserAgentProvider??i7e({serviceId:n.serviceId,clientVersion:SYe.version}),maxAttempts:t?.maxAttempts??pu(W7e,t),region:t?.region??pu(O7e,{...$7e,...o}),requestHandler:aYe.create(t?.requestHandler??r),retryMode:t?.retryMode??pu({...V7e,default:async()=>(await r()).retryMode||z7e},t),streamCollector:t?.streamCollector??iYe,useDualstackEndpoint:t?.useDualstackEndpoint??pu(P7e,o),useFipsEndpoint:t?.useFipsEndpoint??pu(w7e,o),userAgentAppId:t?.userAgentAppId??pu(a7e,o)}},ZXe=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},eZe=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),tZe=(t,e)=>{let r=Object.assign(c7e(t),A7e(t),q7e(t),ZXe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,u7e(r),x7e(r),H7e(r),eZe(r))},mu=class extends qpe{config;constructor(...[e]){let r=XXe(e||{});super(r),this.initConfig=r;let n=mYe(r),o=l7e(n),s=K7e(o),i=k7e(s),a=d7e(i),c=B7e(a),u=fYe(c),f=tZe(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(Y7e(this.config)),this.middlewareStack.use(p7e(this.config)),this.middlewareStack.use(Q7e(this.config)),this.middlewareStack.use(j7e(this.config)),this.middlewareStack.use(f7e(this.config)),this.middlewareStack.use(m7e(this.config)),this.middlewareStack.use(g7e(this.config)),this.middlewareStack.use(h7e(this.config,{httpAuthSchemeParametersProvider:lYe,identityProviderConfigProvider:async m=>new S7e({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(y7e(this.config))}destroy(){super.destroy()}},Lt=T7e(gYe,"LambdaWeb","LambdaWebClient",U7e),Nt={},Ft=(t,e,r,n)=>[],_x=class extends Lt(Nt,Ft,"CreateWebFunction",rme){},Rx=class extends Lt(Nt,Ft,"CreateWebFunctionEndpoint",nme){},Cx=class extends Lt(Nt,Ft,"CreateWebFunctionRevision",ome){},bx=class extends Lt(Nt,Ft,"DeleteResourcePolicy",sme){},Ax=class extends Lt(Nt,Ft,"DeleteWebFunction",ime){},xx=class extends Lt(Nt,Ft,"DeleteWebFunctionEndpoint",ame){},Tx=class extends Lt(Nt,Ft,"DeleteWebFunctionRevision",cme){},vx=class extends Lt(Nt,Ft,"GetResourcePolicy",ume){},Dx=class extends Lt(Nt,Ft,"GetWebAccountSettings",lme){},ep=class extends Lt(Nt,Ft,"GetWebFunction",dme){},gu=class extends Lt(Nt,Ft,"GetWebFunctionEndpoint",pme){},Ug=class extends Lt(Nt,Ft,"GetWebFunctionRevision",fme){},Ix=class extends Lt(Nt,Ft,"ListTags",mme){},Gg=class extends Lt(Nt,Ft,"ListWebFunctionEndpoints",gme){},qg=class extends Lt(Nt,Ft,"ListWebFunctionRevisions",hme){},Hg=class extends Lt(Nt,Ft,"ListWebFunctions",Sme){},wx=class extends Lt(Nt,Ft,"PutResourcePolicy",yme){},Px=class extends Lt(Nt,Ft,"TagResource",Eme){},Ox=class extends Lt(Nt,Ft,"UntagResource",_me){},$x=class extends Lt(Nt,Ft,"UpdateWebFunctionEndpoint",Rme){},Cme=LN(mu,Gg,"nextToken","nextToken","maxResults"),bme=LN(mu,qg,"nextToken","nextToken","maxResults"),Ame=LN(mu,Hg,"nextToken","nextToken","maxResults"),xme=async(t,e)=>{let r;try{let n=await t.send(new ep(e));r=n;try{if(n.state==="Active")return{state:ct.SUCCESS,reason:r}}catch{}try{if(n.state==="Failed")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Deleting")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Pending")return{state:ct.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:ct.RETRY,reason:r}},rZe=async(t,e)=>mo({...{minDelay:1,maxDelay:300},...t},e,xme),Tme=async(t,e)=>{let n=await mo({...{minDelay:1,maxDelay:300},...t},e,xme);return tp(n)},vme=async(t,e)=>{let r;try{let n=await t.send(new ep(e));r=n;try{if(n.state==="Deleting")return{state:ct.RETRY,reason:r}}catch{}}catch(n){if(r=n,n.name==="ResourceNotFoundException")return{state:ct.SUCCESS,reason:r}}return{state:ct.RETRY,reason:r}},nZe=async(t,e)=>mo({...{minDelay:1,maxDelay:300},...t},e,vme),Dme=async(t,e)=>{let n=await mo({...{minDelay:1,maxDelay:300},...t},e,vme);return tp(n)},Ime=async(t,e)=>{let r;try{let n=await t.send(new gu(e));r=n;try{if(n.state==="Active")return{state:ct.SUCCESS,reason:r}}catch{}try{if(n.state==="Failed")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Deleting")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Pending")return{state:ct.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:ct.RETRY,reason:r}},oZe=async(t,e)=>mo({...{minDelay:1,maxDelay:300},...t},e,Ime),wme=async(t,e)=>{let n=await mo({...{minDelay:1,maxDelay:300},...t},e,Ime);return tp(n)},Pme=async(t,e)=>{let r;try{let n=await t.send(new gu(e));r=n;try{if(n.state==="Deleting")return{state:ct.RETRY,reason:r}}catch{}}catch(n){if(r=n,n.name==="ResourceNotFoundException")return{state:ct.SUCCESS,reason:r}}return{state:ct.RETRY,reason:r}},sZe=async(t,e)=>mo({...{minDelay:1,maxDelay:300},...t},e,Pme),Ome=async(t,e)=>{let n=await mo({...{minDelay:1,maxDelay:300},...t},e,Pme);return tp(n)},$me=async(t,e)=>{let r;try{let n=await t.send(new gu(e));r=n;try{if(n.updateStatus==="Successful")return{state:ct.SUCCESS,reason:r}}catch{}try{if(n.updateStatus==="Failed")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.updateStatus==="InProgress")return{state:ct.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:ct.RETRY,reason:r}},iZe=async(t,e)=>mo({...{minDelay:1,maxDelay:300},...t},e,$me),kme=async(t,e)=>{let n=await mo({...{minDelay:1,maxDelay:300},...t},e,$me);return tp(n)},Mme=async(t,e)=>{let r;try{let n=await t.send(new Ug(e));r=n;try{if(n.state==="Active")return{state:ct.SUCCESS,reason:r}}catch{}try{if(n.state==="Failed")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Pending")return{state:ct.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:ct.RETRY,reason:r}},aZe=async(t,e)=>mo({...{minDelay:1,maxDelay:300},...t},e,Mme),Lme=async(t,e)=>{let n=await mo({...{minDelay:1,maxDelay:300},...t},e,Mme);return tp(n)},cZe={CreateWebFunctionCommand:_x,CreateWebFunctionEndpointCommand:Rx,CreateWebFunctionRevisionCommand:Cx,DeleteResourcePolicyCommand:bx,DeleteWebFunctionCommand:Ax,DeleteWebFunctionEndpointCommand:xx,DeleteWebFunctionRevisionCommand:Tx,GetResourcePolicyCommand:vx,GetWebAccountSettingsCommand:Dx,GetWebFunctionCommand:ep,GetWebFunctionEndpointCommand:gu,GetWebFunctionRevisionCommand:Ug,ListTagsCommand:Ix,ListWebFunctionEndpointsCommand:Gg,ListWebFunctionRevisionsCommand:qg,ListWebFunctionsCommand:Hg,PutResourcePolicyCommand:wx,TagResourceCommand:Px,UntagResourceCommand:Ox,UpdateWebFunctionEndpointCommand:$x},uZe={paginateListWebFunctionEndpoints:Cme,paginateListWebFunctionRevisions:bme,paginateListWebFunctions:Ame},lZe={waitUntilWebFunctionActive:Tme,waitUntilWebFunctionDeleted:Dme,waitUntilWebFunctionEndpointActive:wme,waitUntilWebFunctionEndpointDeleted:Ome,waitUntilWebFunctionEndpointUpdated:kme,waitUntilWebFunctionRevisionActive:Lme},kx=class extends mu{};v7e(cZe,kx,{paginators:uZe,waiters:lZe});var dZe={DEBUG:"DEBUG",ERROR:"ERROR",FATAL:"FATAL",INFO:"INFO",TRACE:"TRACE",WARN:"WARN"},pZe={APPLICATION_MANAGED:"ApplicationManaged",IAM_AUTH:"IamAuth"},fZe={DISABLED:"Disabled",LATEST_REVISION:"LatestRevision"},mZe={HOME_REGION:"HomeRegion",MULTI_REGION:"MultiRegion",PER_REGION:"PerRegion"},gZe={DEBUG:"DEBUG",INFO:"INFO",WARN:"WARN"},hZe={ACTIVE:"Active",DELETING:"Deleting",FAILED:"Failed",PENDING:"Pending"},SZe={FAILED:"Failed",IN_PROGRESS:"InProgress",SUCCESSFUL:"Successful"},yZe={ACTIVE:"Active",FAILED:"Failed",PENDING:"Pending"},EZe={ACTIVE:"Active",DELETING:"Deleting",FAILED:"Failed",PENDING:"Pending"};D.AccessDeniedException=fx;D.AccessDeniedException$=Zpe;D.AccountQuotas$=afe;D.AccountUsage$=cfe;D.ApplicationLogLevel=dZe;D.AuthType=pZe;D.AutoDeploymentMode=fZe;D.BuildConfig$=Wg;D.CodeConfig$=ufe;D.ConflictException=mx;D.ConflictException$=efe;D.CreateWebFunction$=rme;D.CreateWebFunctionCommand=_x;D.CreateWebFunctionEndpoint$=nme;D.CreateWebFunctionEndpointCommand=Rx;D.CreateWebFunctionEndpointRequest$=lfe;D.CreateWebFunctionEndpointResponse$=dfe;D.CreateWebFunctionRequest$=pfe;D.CreateWebFunctionResponse$=ffe;D.CreateWebFunctionRevision$=ome;D.CreateWebFunctionRevisionCommand=Cx;D.CreateWebFunctionRevisionRequest$=mfe;D.CreateWebFunctionRevisionResponse$=gfe;D.DeleteResourcePolicy$=sme;D.DeleteResourcePolicyCommand=bx;D.DeleteResourcePolicyRequest$=hfe;D.DeleteWebFunction$=ime;D.DeleteWebFunctionCommand=Ax;D.DeleteWebFunctionEndpoint$=ame;D.DeleteWebFunctionEndpointCommand=xx;D.DeleteWebFunctionEndpointRequest$=Sfe;D.DeleteWebFunctionRequest$=yfe;D.DeleteWebFunctionRevision$=cme;D.DeleteWebFunctionRevisionCommand=Tx;D.DeleteWebFunctionRevisionRequest$=Efe;D.EndpointConfig$=_fe;D.EndpointState=hZe;D.EndpointType=mZe;D.EndpointUpdateStatus=SZe;D.Filter$=Rfe;D.FunctionEndpointSummary$=WN;D.FunctionRevisionSummary$=KN;D.FunctionState=EZe;D.FunctionSummary$=Cfe;D.GetResourcePolicy$=ume;D.GetResourcePolicyCommand=vx;D.GetResourcePolicyRequest$=bfe;D.GetResourcePolicyResponse$=Afe;D.GetWebAccountSettings$=lme;D.GetWebAccountSettingsCommand=Dx;D.GetWebAccountSettingsRequest$=xfe;D.GetWebAccountSettingsResponse$=Tfe;D.GetWebFunction$=dme;D.GetWebFunctionCommand=ep;D.GetWebFunctionEndpoint$=pme;D.GetWebFunctionEndpointCommand=gu;D.GetWebFunctionEndpointRequest$=vfe;D.GetWebFunctionEndpointResponse$=Dfe;D.GetWebFunctionRequest$=Ife;D.GetWebFunctionResponse$=wfe;D.GetWebFunctionRevision$=fme;D.GetWebFunctionRevisionCommand=Ug;D.GetWebFunctionRevisionRequest$=Pfe;D.GetWebFunctionRevisionResponse$=Ofe;D.InternalServerException=gx;D.InternalServerException$=tfe;D.LambdaWeb=kx;D.LambdaWebClient=mu;D.LambdaWebServiceException=ns;D.LambdaWebServiceException$=Xpe;D.ListTags$=mme;D.ListTagsCommand=Ix;D.ListTagsRequest$=$fe;D.ListTagsResponse$=kfe;D.ListWebFunctionEndpoints$=gme;D.ListWebFunctionEndpointsCommand=Gg;D.ListWebFunctionEndpointsRequest$=Mfe;D.ListWebFunctionEndpointsResponse$=Lfe;D.ListWebFunctionRevisions$=hme;D.ListWebFunctionRevisionsCommand=qg;D.ListWebFunctionRevisionsRequest$=Nfe;D.ListWebFunctionRevisionsResponse$=Ffe;D.ListWebFunctions$=Sme;D.ListWebFunctionsCommand=Hg;D.ListWebFunctionsRequest$=Bfe;D.ListWebFunctionsResponse$=Ufe;D.LoggingConfig$=Gfe;D.PutResourcePolicy$=yme;D.PutResourcePolicyCommand=wx;D.PutResourcePolicyRequest$=qfe;D.PutResourcePolicyResponse$=Hfe;D.RegionalEndpoint$=jfe;D.ResourceNotFoundException=hx;D.ResourceNotFoundException$=rfe;D.RevisionConfig$=zfe;D.RevisionError$=Vfe;D.RevisionState=yZe;D.RevisionWeight$=Wfe;D.RuntimeConfig$=Kfe;D.S3Object$=Qfe;D.ScalingConfig$=Vi;D.ServiceConfig$=Kg;D.ServiceQuotaExceededException=Sx;D.ServiceQuotaExceededException$=nfe;D.SystemLogLevel=gZe;D.TagResource$=Eme;D.TagResourceCommand=Px;D.TagResourceRequest$=Yfe;D.TelemetryConfig$=Jfe;D.ThrottleConfig$=Wi;D.ThrottlingException=yx;D.ThrottlingException$=ofe;D.UntagResource$=_me;D.UntagResourceCommand=Ox;D.UntagResourceRequest$=Xfe;D.UpdateWebFunctionEndpoint$=Rme;D.UpdateWebFunctionEndpointCommand=$x;D.UpdateWebFunctionEndpointRequest$=Zfe;D.UpdateWebFunctionEndpointResponse$=eme;D.ValidationException=Ex;D.ValidationException$=sfe;D.errorTypeRegistries=ife;D.paginateListWebFunctionEndpoints=Cme;D.paginateListWebFunctionRevisions=bme;D.paginateListWebFunctions=Ame;D.waitForWebFunctionActive=rZe;D.waitForWebFunctionDeleted=nZe;D.waitForWebFunctionEndpointActive=oZe;D.waitForWebFunctionEndpointDeleted=sZe;D.waitForWebFunctionEndpointUpdated=iZe;D.waitForWebFunctionRevisionActive=aZe;D.waitUntilWebFunctionActive=Tme;D.waitUntilWebFunctionDeleted=Dme;D.waitUntilWebFunctionEndpointActive=wme;D.waitUntilWebFunctionEndpointDeleted=Ome;D.waitUntilWebFunctionEndpointUpdated=kme;D.waitUntilWebFunctionRevisionActive=Lme});var Gbe=st(p=>{var{awsEndpointFunctions:_Ze,emitWarningIfUnsupportedVersion:RZe,createDefaultUserAgentProvider:CZe,NODE_APP_ID_CONFIG_OPTIONS:bZe,getAwsRegionExtensionConfiguration:AZe,resolveAwsRegionExtensionConfiguration:xZe,resolveUserAgentConfig:TZe,resolveHostHeaderConfig:vZe,getUserAgentPlugin:DZe,getHostHeaderPlugin:IZe,getLoggerPlugin:wZe,getRecursionDetectionPlugin:PZe}=(Ee(),F(Mn)),{getHttpAuthSchemeEndpointRuleSetPlugin:OZe,DefaultIdentityProviderConfig:$Ze,getHttpSigningPlugin:kZe,createPaginator:Rr}=(jt(),F(xl)),{normalizeProvider:zme,getSmithyContext:MZe,ServiceException:LZe,NoOpLogger:NZe,emitWarningIfUnsupportedVersion:FZe,loadConfigsForDefaultMode:BZe,getDefaultExtensionConfiguration:UZe,resolveDefaultRuntimeConfig:GZe,Client:Vme,makeBuilder:qZe,createAggregatedClient:HZe}=(J(),F(bo)),{Command:jZe}=(J(),F(bo));p.$Command=jZe;p.__Client=Vme;var{resolveDefaultsModeConfig:zZe,loadConfig:bu,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:VZe,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:WZe,NODE_REGION_CONFIG_OPTIONS:KZe,NODE_REGION_CONFIG_FILE_OPTIONS:QZe,resolveRegionConfig:YZe}=(ye(),F(Br)),{BinaryDecisionDiagram:JZe,EndpointCache:XZe,decideEndpoint:ZZe,customEndpointFunctions:eet,resolveEndpointConfig:tet,getEndpointPlugin:ret}=(He(),F(jp)),{eventStreamSerdeProvider:net,resolveEventStreamSerdeConfig:oet}=(WS(),F(VS)),{parseUrl:set,getHttpHandlerExtensionConfiguration:iet,resolveHttpHandlerRuntimeConfig:aet,getContentLengthPlugin:cet}=(V(),F(wo)),{DEFAULT_RETRY_MODE:uet,NODE_RETRY_MODE_CONFIG_OPTIONS:det,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:pet,resolveRetryConfig:fet,getRetryPlugin:met}=(tn(),F(nf)),{TypeRegistry:Wme,getSchemaSerdePlugin:get}=(ae(),F(Dp)),{resolveAwsSdkSigV4Config:het,AwsSdkSigV4Signer:yet,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:Eet}=(rr(),F(Il)),{defaultProvider:_et}=Cm(),{toUtf8:Ret,fromUtf8:Cet,toBase64:bet,fromBase64:Aet,calculateBodyLength:xet}=(j(),F(To)),{streamCollector:Tet,NodeHttpHandler:vet}=zs(),{AwsJson1_1Protocol:Det}=(Di(),F(Vy)),{Sha256:Iet}=($n(),F(Vp)),wet=async(t,e,r)=>({operation:MZe(e).operation,region:await zme(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Pet(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"logs",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var Oet=t=>{let e=[];switch(t.operation){default:e.push(Pet(t))}return e},$et=t=>{let e=het(t);return Object.assign(e,{authSchemePreference:zme(t.authSchemePreference??[])})},ket=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"logs"}),Met={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Let="3.1151.0",Net={version:Let},Qg="ref",Au=-1,Hx=!0,Fme="isSet",Kme="PartitionResult",jx="booleanEquals",Bme="getAttr",Ume="stringEquals",Gme={[Qg]:"Endpoint"},qme={[Qg]:Kme},JN={[Qg]:"Region"},xu={},Hme=[JN],jme={conditions:[[Fme,[Gme]],[Fme,Hme],["aws.partition",Hme,Kme],[jx,[{[Qg]:"UseFIPS"},Hx]],[jx,[{[Qg]:"UseDualStack"},Hx]],[jx,[{fn:Bme,argv:[qme,"supportsDualStack"]},Hx]],[jx,[{fn:Bme,argv:[qme,"supportsFIPS"]},Hx]],[Ume,[JN,"us-gov-east-1"]],[Ume,[JN,"us-gov-west-1"]]],results:[[Au],[Au,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Au,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Gme,xu],["https://logs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",xu],[Au,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://logs.us-gov-east-1.amazonaws.com",xu],["https://logs.us-gov-west-1.amazonaws.com",xu],["https://logs-fips.{Region}.{PartitionResult#dnsSuffix}",xu],[Au,"FIPS is enabled but this partition does not support FIPS"],["https://logs.{Region}.{PartitionResult#dualStackDnsSuffix}",xu],[Au,"DualStack is enabled but this partition does not support DualStack"],["https://logs.{Region}.{PartitionResult#dnsSuffix}",xu],[Au,"Invalid Configuration: Missing Region"]]},Fet=2,fn=1e8,Bet=new Int32Array([-1,1,-1,0,14,3,1,4,fn+13,2,5,fn+13,3,8,6,4,7,fn+12,5,fn+10,fn+11,4,12,9,6,10,fn+9,7,fn+6,11,8,fn+7,fn+8,5,13,fn+5,6,fn+4,fn+5,3,fn+1,15,4,fn+2,fn+3]),Uet=JZe.from(Bet,Fet,jme.conditions,jme.results),Get=new XZe({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),qet=(t,e={})=>Get.get(t,()=>ZZe(Uet,{endpointParams:t,logger:e.logger}));eet.aws=_Ze;var nt=class t extends LZe{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatchlogs#CloudWatchLogsServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},zx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#AccessDeniedException";name="AccessDeniedException";$fault="client";constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Vx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InvalidParameterException";name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Wx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#OperationAbortedException";name="OperationAbortedException";$fault="client";constructor(e){super({name:"OperationAbortedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Kx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Qx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ServiceUnavailableException";name="ServiceUnavailableException";$fault="server";constructor(e){super({name:"ServiceUnavailableException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},Yx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InternalServerException";name="InternalServerException";$fault="server";constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},Jx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ThrottlingException";name="ThrottlingException";$fault="client";constructor(e){super({name:"ThrottlingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Xx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ValidationException";name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Zx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InvalidOperationException";name="InvalidOperationException";$fault="client";constructor(e){super({name:"InvalidOperationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},eT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ConflictException";name="ConflictException";$fault="client";constructor(e){super({name:"ConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},tT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException";name="ServiceQuotaExceededException";$fault="client";constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},rT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#LimitExceededException";name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},nT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException";name="ResourceAlreadyExistsException";$fault="client";constructor(e){super({name:"ResourceAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},oT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#DataAlreadyAcceptedException";name="DataAlreadyAcceptedException";$fault="client";expectedSequenceToken;constructor(e){super({name:"DataAlreadyAcceptedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.expectedSequenceToken=e.expectedSequenceToken}},sT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InternalStreamingException";name="InternalStreamingException";$fault="client";constructor(e){super({name:"InternalStreamingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},iT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InvalidSequenceTokenException";name="InvalidSequenceTokenException";$fault="client";expectedSequenceToken;constructor(e){super({name:"InvalidSequenceTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.expectedSequenceToken=e.expectedSequenceToken}},aT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#UnrecognizedClientException";name="UnrecognizedClientException";$fault="client";constructor(e){super({name:"UnrecognizedClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#SessionStreamingException";name="SessionStreamingException";$fault="client";constructor(e){super({name:"SessionStreamingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},uT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#SessionTimeoutException";name="SessionTimeoutException";$fault="client";constructor(e){super({name:"SessionTimeoutException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#MalformedQueryException";name="MalformedQueryException";$fault="client";queryCompileError;constructor(e){super({name:"MalformedQueryException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.queryCompileError=e.queryCompileError}},dT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#TooManyTagsException";name="TooManyTagsException";$fault="client";resourceName;constructor(e){super({name:"TooManyTagsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceName=e.resourceName}},Het="Anomaly",jet="AnomalyDetector",zet="AccessDeniedException",Vet="AnomalyDetectors",Wet="AllowedFields",Ket="AddKeys",Qet="AddKeyEntry",Yet="AddKeyEntries",Jet="AssociateKmsKey",Xet="AssociateKmsKeyRequest",Zet="AggregateLogGroupSummary",ett="AggregateLogGroupSummaries",ttt="AccountPolicy",rtt="AccountPolicies",ntt="AssociateSourceToS3TableIntegration",ott="AssociateSourceToS3TableIntegrationRequest",stt="AssociateSourceToS3TableIntegrationResponse",itt="Anomalies",att="CreateDelivery",ctt="CreateDeliveryRequest",utt="CreateDeliveryResponse",ltt="ConflictException",dtt="CancelExportTask",ptt="CancelExportTaskRequest",ftt="CreateExportTaskRequest",mtt="CreateExportTaskResponse",gtt="CreateExportTask",htt="CancelImportTask",Stt="CancelImportTaskRequest",ytt="CancelImportTaskResponse",Ett="CreateImportTaskRequest",_tt="CreateImportTaskResponse",Rtt="CreateImportTask",Ctt="CreateLogAnomalyDetector",btt="CreateLogAnomalyDetectorRequest",Att="CreateLogAnomalyDetectorResponse",xtt="CreateLogGroup",Ttt="CreateLogGroupRequest",vtt="CreateLogStream",Dtt="CreateLogStreamRequest",Itt="CreateLookupTable",wtt="CreateLookupTableRequest",Ptt="CreateLookupTableResponse",Ott="CreateScheduledQuery",$tt="CreateScheduledQueryRequest",ktt="CreateScheduledQueryResponse",Mtt="CSV",Ltt="ConfigurationTemplate",Ntt="ConfigurationTemplateDeliveryConfigValues",Ftt="ConfigurationTemplates",Btt="CopyValue",Utt="CopyValueEntry",Gtt="CopyValueEntries",qtt="Delivery",Htt="DataAlreadyAcceptedException",jtt="DeleteAccountPolicy",ztt="DeleteAccountPolicyRequest",Vtt="DescribeAccountPoliciesRequest",Wtt="DescribeAccountPoliciesResponse",Ktt="DescribeAccountPolicies",Qtt="DestinationConfiguration",Ytt="DescribeConfigurationTemplates",Jtt="DescribeConfigurationTemplatesRequest",Xtt="DescribeConfigurationTemplatesResponse",Ztt="DeliveryDestination",ert="DeliveryDestinationConfiguration",trt="DeleteDeliveryDestination",rrt="DeleteDeliveryDestinationPolicy",nrt="DeleteDeliveryDestinationPolicyRequest",ort="DeleteDeliveryDestinationRequest",srt="DescribeDeliveryDestinationsRequest",irt="DescribeDeliveryDestinationsResponse",art="DescribeDeliveryDestinations",crt="DeleteDataProtectionPolicy",urt="DeleteDataProtectionPolicyRequest",lrt="DeleteDeliveryRequest",drt="DeleteDestinationRequest",prt="DescribeDeliveriesRequest",frt="DescribeDeliveriesResponse",mrt="DescribeDestinationsRequest",grt="DescribeDestinationsResponse",hrt="DeleteDeliverySource",Srt="DeleteDeliverySourceRequest",yrt="DescribeDeliverySourcesRequest",Ert="DescribeDeliverySourcesResponse",_rt="DescribeDeliverySources",Rrt="DeliveryDestinations",Crt="DeleteDelivery",brt="DeleteDestination",Art="DescribeDeliveries",xrt="DescribeDestinations",Trt="DescribeExportTasks",vrt="DescribeExportTasksRequest",Drt="DescribeExportTasksResponse",Irt="DescribeFieldIndexes",wrt="DescribeFieldIndexesRequest",Prt="DescribeFieldIndexesResponse",Ort="DeleteIntegration",$rt="DeleteIndexPolicy",krt="DeleteIndexPolicyRequest",Mrt="DeleteIndexPolicyResponse",Lrt="DescribeIndexPoliciesRequest",Nrt="DescribeIndexPoliciesResponse",Frt="DescribeIndexPolicies",Brt="DeleteIntegrationRequest",Urt="DeleteIntegrationResponse",Grt="DescribeImportTasks",qrt="DescribeImportTaskBatches",Hrt="DescribeImportTaskBatchesRequest",jrt="DescribeImportTaskBatchesResponse",zrt="DescribeImportTasksRequest",Vrt="DescribeImportTasksResponse",Wrt="DeleteKeys",Krt="DisassociateKmsKey",Qrt="DisassociateKmsKeyRequest",Yrt="DeleteLogAnomalyDetector",Jrt="DeleteLogAnomalyDetectorRequest",Xrt="DeleteLogGroup",Zrt="DeleteLogGroupRequest",ent="DescribeLogGroupsRequest",tnt="DescribeLogGroupsResponse",rnt="DescribeLogGroups",nnt="DeleteLogStream",ont="DeleteLogStreamRequest",snt="DescribeLogStreamsRequest",int="DescribeLogStreamsResponse",ant="DescribeLogStreams",cnt="DeleteLookupTable",unt="DeleteLookupTableRequest",lnt="DescribeLookupTablesRequest",dnt="DescribeLookupTablesResponse",pnt="DescribeLookupTables",fnt="DeleteMetricFilter",mnt="DeleteMetricFilterRequest",gnt="DescribeMetricFiltersRequest",hnt="DescribeMetricFiltersResponse",Snt="DescribeMetricFilters",ynt="DestinationNamePrefix",Ent="DescribeQueries",_nt="DeleteQueryDefinition",Rnt="DeleteQueryDefinitionRequest",Cnt="DeleteQueryDefinitionResponse",bnt="DescribeQueryDefinitionsRequest",Ant="DescribeQueryDefinitionsResponse",xnt="DescribeQueryDefinitions",Tnt="DescribeQueriesRequest",vnt="DescribeQueriesResponse",Dnt="DeleteResourcePolicy",Int="DeleteResourcePolicyRequest",wnt="DeleteRetentionPolicyRequest",Pnt="DescribeResourcePoliciesRequest",Ont="DescribeResourcePoliciesResponse",$nt="DeleteRetentionPolicy",knt="DescribeResourcePolicies",Mnt="DataSource",Lnt="DeleteSyslogConfiguration",Nnt="DeleteSyslogConfigurationRequest",Fnt="DeliverySourceConfigurationSchema",Bnt="DeliverySourceConfigurationSchemas",Unt="DataSourceFilter",Gnt="DeleteSubscriptionFilterRequest",qnt="DescribeSubscriptionFiltersRequest",Hnt="DescribeSubscriptionFiltersResponse",jnt="DisassociateSourceFromS3TableIntegration",znt="DisassociateSourceFromS3TableIntegrationRequest",Vnt="DisassociateSourceFromS3TableIntegrationResponse",Wnt="DataSourceFilters",Knt="DeleteSubscriptionFilter",Qnt="DescribeSubscriptionFilters",Ynt="DeleteScheduledQuery",Jnt="DeleteScheduledQueryRequest",Xnt="DeleteScheduledQueryResponse",Znt="DeliverySource",eot="DeliverySources",tot="DeleteTransformer",rot="DateTimeConverter",not="DeleteTransformerRequest",oot="Destination",sot="Deliveries",iot="Destinations",aot="Entity",cot="ExportTask",uot="ExportTaskExecutionInfo",lot="ExportTaskStatus",dot="ExportTasks",pot="FieldsData",fot="FieldIndex",mot="FieldIndexes",got="FilteredLogEvent",hot="FilterLogEventsRequest",Sot="FilterLogEventsResponse",yot="FilteredLogEvents",Eot="FilterLogEvents",_ot="Grok",Rot="GetDelivery",Cot="GetDeliveryDestination",bot="GetDeliveryDestinationPolicy",Aot="GetDeliveryDestinationPolicyRequest",xot="GetDeliveryDestinationPolicyResponse",Tot="GetDeliveryDestinationRequest",vot="GetDeliveryDestinationResponse",Dot="GetDataProtectionPolicy",Iot="GetDataProtectionPolicyRequest",wot="GetDataProtectionPolicyResponse",Pot="GetDeliveryRequest",Oot="GetDeliveryResponse",$ot="GetDeliverySource",kot="GetDeliverySourceRequest",Mot="GetDeliverySourceResponse",Lot="GroupingIdentifier",Not="GetIntegrationRequest",Fot="GetIntegrationResponse",Bot="GetIntegration",Uot="GroupingIdentifiers",Got="GetLogAnomalyDetector",qot="GetLogAnomalyDetectorRequest",Hot="GetLogAnomalyDetectorResponse",jot="GetLogEvents",zot="GetLogEventsRequest",Vot="GetLogEventsResponse",Wot="GetLogFields",Kot="GetLogFieldsRequest",Qot="GetLogFieldsResponse",Yot="GetLogGroupFields",Jot="GetLogGroupFieldsRequest",Xot="GetLogGroupFieldsResponse",Zot="GetLogObject",est="GetLogObjectRequest",tst="GetLogObjectResponseStream",rst="GetLogObjectResponse",nst="GetLogRecord",ost="GetLogRecordRequest",sst="GetLogRecordResponse",ist="GetLookupTable",ast="GetLookupTableRequest",cst="GetLookupTableResponse",ust="GetQueryResults",lst="GetQueryResultsRequest",dst="GetQueryResultsResponse",pst="GetScheduledQuery",fst="GetScheduledQueryHistory",mst="GetScheduledQueryHistoryRequest",gst="GetScheduledQueryHistoryResponse",hst="GetScheduledQueryRequest",Sst="GetScheduledQueryResponse",yst="GetStorageTierPolicy",Est="GetStorageTierPolicyRequest",_st="GetStorageTierPolicyResponse",Rst="GetTransformer",Cst="GetTransformerRequest",bst="GetTransformerResponse",Ast="Import",xst="ImportBatch",Tst="ImportBatchList",vst="IntegrationDetails",Dst="ImportFilter",Ist="ImportList",wst="InputLogEvent",Pst="InputLogEvents",Ost="InvalidOperationException",$st="IndexPolicy",kst="InvalidParameterException",Mst="IndexPolicies",Lst="ImportStatistics",Nst="InternalServerException",Qme="InternalStreamingException",Fst="InvalidSequenceTokenException",Bst="IntegrationSummary",Ust="IntegrationSummaries",Gst="ListAnomalies",qst="ListAggregateLogGroupSummaries",Hst="ListAggregateLogGroupSummariesRequest",jst="ListAggregateLogGroupSummariesResponse",zst="ListAnomaliesRequest",Vst="ListAnomaliesResponse",Wst="LowerCaseString",Kst="LogEvent",Qst="LimitExceededException",Yst="LogFieldsList",Jst="LogFieldsListItem",Xst="LogFieldType",Zst="LogGroup",eit="LogGroupField",tit="LogGroupFieldList",rit="LogGroupSummary",nit="LogGroupSummaries",oit="LogGroups",sit="ListIntegrations",iit="ListIntegrationsRequest",ait="ListIntegrationsResponse",cit="ListLogAnomalyDetectors",uit="ListLogAnomalyDetectorsRequest",lit="ListLogAnomalyDetectorsResponse",dit="ListLogGroups",pit="ListLogGroupsForQuery",fit="ListLogGroupsForQueryRequest",mit="ListLogGroupsForQueryResponse",git="ListLogGroupsRequest",hit="ListLogGroupsResponse",Sit="LogStream",yit="ListSyslogConfigurations",Eit="ListSyslogConfigurationsRequest",_it="ListSyslogConfigurationsResponse",Rit="ListSourcesForS3TableIntegration",Cit="ListSourcesForS3TableIntegrationRequest",bit="ListSourcesForS3TableIntegrationResponse",Ait="ListScheduledQueries",xit="ListScheduledQueriesRequest",Tit="ListScheduledQueriesResponse",vit="LogSamples",Dit="LogStreams",Iit="LookupTable",wit="LookupTableConfiguration",Pit="ListTagsForResource",Oit="ListTagsForResourceRequest",$it="ListTagsForResourceResponse",kit="ListTagsLogGroup",Mit="ListTagsLogGroupRequest",Lit="ListTagsLogGroupResponse",Nit="ListToMap",Fit="LiveTailSessionLogEvent",Bit="LiveTailSessionMetadata",Uit="LiveTailSessionResults",Git="LiveTailSessionStart",qit="LiveTailSessionUpdate",Hit="LookupTables",jit="MetricFilter",zit="MetricFilterMatches",Vit="MetricFilterMatchRecord",Wit="MetricFilters",Kit="MoveKeys",Qit="MoveKeyEntry",Yit="MoveKeyEntries",Jit="MalformedQueryException",Xit="MetricTransformation",Zit="MetricTransformations",eat="OperationAbortedException",tat="OutputLogEvent",rat="OutputLogEvents",nat="OpenSearchApplication",oat="OpenSearchCollection",sat="OpenSearchDataAccessPolicy",iat="OpenSearchDataSource",aat="OpenSearchEncryptionPolicy",cat="OpenSearchIntegrationDetails",uat="OpenSearchLifecyclePolicy",lat="OpenSearchNetworkPolicy",dat="OpenSearchResourceConfig",pat="OpenSearchResourceStatus",fat="OpenSearchWorkspace",mat="Policy",gat="PutAccountPolicy",hat="PutAccountPolicyRequest",Sat="PutAccountPolicyResponse",yat="PutBearerTokenAuthentication",Eat="PutBearerTokenAuthenticationRequest",_at="ParseCloudfront",Rat="PutDestination",Cat="PutDeliveryDestination",bat="PutDeliveryDestinationPolicy",Aat="PutDeliveryDestinationPolicyRequest",xat="PutDeliveryDestinationPolicyResponse",Tat="PutDeliveryDestinationRequest",vat="PutDeliveryDestinationResponse",Dat="PutDestinationPolicy",Iat="PutDataProtectionPolicy",wat="PutDataProtectionPolicyRequest",Pat="PutDataProtectionPolicyResponse",Oat="PutDestinationPolicyRequest",$at="PutDestinationRequest",kat="PutDestinationResponse",Mat="PutDeliverySource",Lat="PutDeliverySourceRequest",Nat="PutDeliverySourceResponse",Fat="PutIntegration",Bat="PutIndexPolicy",Uat="PutIndexPolicyRequest",Gat="PutIndexPolicyResponse",qat="PutIntegrationRequest",Hat="PutIntegrationResponse",jat="ParseJSON",zat="ParseKeyValue",Vat="PutLogEvents",Wat="PutLogEventsRequest",Kat="PutLogEventsResponse",Qat="PutLogGroupDeletionProtection",Yat="PutLogGroupDeletionProtectionRequest",Jat="PutMetricFilter",Xat="PutMetricFilterRequest",Zat="ParsePostgres",ect="PutQueryDefinition",tct="PutQueryDefinitionRequest",rct="PutQueryDefinitionResponse",nct="ParseRoute53",oct="PutResourcePolicy",sct="PutResourcePolicyRequest",ict="PutResourcePolicyResponse",act="PutRetentionPolicyRequest",cct="PutRetentionPolicy",uct="PutSyslogConfiguration",lct="PutSyslogConfigurationRequest",dct="PutSubscriptionFilter",pct="PutSubscriptionFilterRequest",fct="PutStorageTierPolicy",mct="PutStorageTierPolicyRequest",gct="PutStorageTierPolicyResponse",hct="PatternToken",Sct="ParseToOCSF",yct="PutTransformerRequest",Ect="PatternTokens",_ct="PutTransformer",Rct="ParseVPC",Cct="ParseWAF",bct="Processor",Act="Processors",xct="QueryCompileError",Tct="QueryCompileErrorLocation",vct="QueryDefinition",Dct="QueryDefinitionList",Ict="QueryInfo",wct="QueryInfoList",Pct="QueryParameter",Oct="QueryParameterList",$ct="QueryResults",kct="QueryStatistics",Mct="ResourceAlreadyExistsException",Lct="ResourceConfig",Nct="RejectedEntityInfo",Fct="RecordField",Bct="ResultField",Uct="RenameKeys",Gct="RenameKeyEntry",qct="RenameKeyEntries",Hct="RejectedLogEventsInfo",jct="ResourceNotFoundException",zct="ResourcePolicy",Vct="ResourcePolicies",Wct="ResultRows",Kct="S3Configuration",Qct="SyslogConfiguration",Yct="SyslogConfigurations",Jct="S3DeliveryConfiguration",Xct="SubscriptionFilter",Zct="SubscriptionFilters",eut="SearchedLogStream",tut="SearchedLogStreams",rut="StartLiveTail",nut="StartLiveTailRequest",out="StartLiveTailResponseStream",sut="StartLiveTailResponse",iut="SuppressionPeriod",aut="StartQuery",cut="ScheduledQueryDestination",uut="ScheduledQueryDestinationList",lut="ServiceQuotaExceededException",dut="StartQueryRequest",put="StartQueryResponse",fut="StopQueryRequest",mut="StopQueryResponse",gut="ScheduledQuerySummary",hut="ScheduledQuerySummaryList",Sut="StopQuery",yut="SplitString",Yme="SessionStreamingException",Eut="SplitStringEntry",_ut="SplitStringEntries",Rut="SubstituteStringEntry",Cut="SubstituteStringEntries",but="SubstituteString",Jme="SessionTimeoutException",Aut="S3TablesIntegration",xut="S3TableIntegrationSource",Tut="S3TableIntegrationSources",vut="ServiceUnavailableException",Dut="TypeConverter",Iut="TypeConverterEntry",wut="TypeConverterEntries",Put="ThrottlingException",Out="TagFilter",$ut="TagFilters",kut="TriggerHistoryRecord",Mut="TriggerHistoryRecordList",Lut="TransformedLogs",Nut="TagLogGroup",Fut="TagLogGroupRequest",But="TransformedLogRecord",Uut="TestMetricFilter",Gut="TestMetricFilterRequest",qut="TestMetricFilterResponse",Hut="TooManyTagsException",jut="TagResource",zut="TagResourceRequest",Vut="TrimString",Wut="TestTransformer",Kut="TestTransformerRequest",Qut="TestTransformerResponse",Yut="UpdateAnomaly",Jut="UpdateAnomalyRequest",Xut="UnrecognizedClientException",Zut="UpperCaseString",elt="UpdateDeliveryConfiguration",tlt="UpdateDeliveryConfigurationRequest",rlt="UpdateDeliveryConfigurationResponse",nlt="UpdateLogAnomalyDetector",olt="UpdateLogAnomalyDetectorRequest",slt="UntagLogGroup",ilt="UntagLogGroupRequest",alt="UpdateLookupTable",clt="UpdateLookupTableRequest",ult="UpdateLookupTableResponse",llt="UntagResource",dlt="UntagResourceRequest",plt="UpdateScheduledQuery",flt="UpdateScheduledQueryRequest",mlt="UpdateScheduledQueryResponse",glt="ValidationException",hlt="active",Xme="applicationArn",Slt="allowedActionForAllowVendedLogsDeliveryForResource",ylt="anomalyDetectors",ic="anomalyDetectorArn",Zme="anomalyDetectorStatus",Elt="applicationEndpoint",_lt="allowedFields",Rlt="allowedFieldDelimiters",Clt="accountId",sD="accountIdentifiers",ege="anomalyId",blt="applicationId",Alt="addKeys",xlt="aggregateLogGroupSummaries",Tlt="allowedOutputFormats",iD="applyOnTransformedLogs",vlt="accountPolicies",XN="accessPolicy",Dlt="accountPolicy",Ilt="allowedSuffixPathFields",aD="anomalyVisibilityTime",wlt="anomalies",Plt="application",ap="arn",Olt="attributes",$lt="baseline",klt="batchId",Mlt="batchImportStatus",Llt="bytesImported",tge="bytesScanned",rge="bearerTokenAuthenticationEnabled",Jt="client",nge="createdAt",Nlt="collectionArn",Flt="collectionEndpoint",jn="creationTime",oge="creationTimeStamp",Blt="createdTimeStamp",Ult="clientToken",Glt="configurationTemplates",qlt="completionTime",Hlt="createTime",jlt="copyValue",zlt="columns",Vlt="code",Wlt="collection",Klt="csv",is="description",sge="destinationArn",mh="destinationConfiguration",Qlt="deliveryDestinations",ige="deliveryDestinationArn",age="deliveryDestinationConfiguration",Ylt="defaultDeliveryConfigValues",ZN="deliveryDestinationName",cge="deliveryDestinationPolicy",cD="deliveryDestinationType",Jlt="deliveryDestinationTypes",uge="deliveryDestination",lge="destinationIdentifier",Xlt="deleteKeys",e3="detectorName",Zlt="datasourceName",uD="destinationName",dge="destinationPrefix",t3="deletionProtectionEnabled",edt="dataProtectionStatus",tdt="destinationResourceArn",r3="dataSource",n3="deliverySourceConfiguration",pge="deliverySourceName",fge="dataSourceName",rdt="dataSourceRoleArn",ndt="dataSourceType",mge="dataSources",odt="deliverySources",gge="deliverySource",sdt="datasourceType",idt="dateTimeConverter",adt="dynamicTokenPosition",cdt="destinationType",o3="defaultValue",udt="dashboardViewerPrincipals",ldt="data",hge="delivery",Sge="delimiter",ddt="deliveries",cp="destination",pdt="descending",yge="destinations",fdt="dimensions",Ege="distribution",wt="error",mdt="estimatedBytesSkipped",gdt="endCharOffset",hdt="endEventTime",lD="evaluationFrequency",Sdt="enableHiveCompatiblePath",ydt="executionInfo",Edt="eventId",_dt="encryptionKey",Rdt="expiredLogEventEndIndex",dD="errorMessage",_ge="eventMessage",Rge="eventNumber",Cdt="encryptionPolicy",pD="executionRoleArn",Cge="expectedRevisionId",bdt="estimatedRecordsSkipped",Adt="executionStatuses",bge="emitSystemFields",Age="emitSystemFieldDimensions",xge="expectedSequenceToken",xdt="eventSource",Tdt="executionStatus",vdt="exportTasks",fD="endTimeOffset",mD="endTime",Ddt="errorType",Idt="extractedValues",wdt="element",Tu="entries",Pdt="enabled",Tge="endpoint",Odt="entity",$dt="enumerations",vge="events",s3="from",gh="fieldDelimiter",kdt="flattenedElement",Mdt="firstEventTime",Ldt="firstEventTimestamp",Ndt="fieldIndexes",Fdt="fieldIndexName",Bdt="fieldIndexNames",Udt="filterLogGroupArn",up="filterName",Dge="filterNamePrefix",yi="filterPattern",Gdt="firstSeen",gD="fieldSelectionCriteria",qdt="fieldStream",Hdt="forceUpdate",Ige="fields",jdt="field",zdt="flatten",Vdt="force",Wdt="grok",Kdt="groupBy",Qdt="groupingIdentifiers",Ydt="histogram",wge="httpError",ac="identifier",Pge="integrationArn",Jdt="importBatches",Xdt="indexCategories",Zdt="indexCategory",ept="integrationDetails",Oge="importDestinationArn",tpt="isDynamic",$ge="importFilter",vu="importId",i3="includeLinkedAccounts",lp="integrationName",rpt="integrationNamePrefix",npt="indexPolicies",opt="isPatternLevelSuppression",spt="inheritedProperties",ipt="indexPolicy",apt="importRoleArn",kge="importStatistics",hD="importSourceArn",a3="importStatus",SD="integrationStatus",cpt="integrationSummaries",c3="ingestionTime",upt="inferredTokenName",yD="integrationType",ED="id",lpt="imports",dpt="interleaved",dp="key",ppt="keyAttributes",fpt="kmsKeyArn",ho="kmsKeyId",mpt="keyName",gpt="keyPrefix",hpt="keyValueDelimiter",Spt="locale",ypt="lowerCaseString",Ept="logEvents",Mge="logEventFilterPattern",Lge="logEventMessages",u3="lastExecutionStatus",_pt="lastEventTime",Rpt="lastEventTimestamp",Cpt="logFields",bpt="logFieldName",Apt="logFieldType",Nge="logGroups",l3="logGroupArn",_D="logGroupArnList",xpt="logGroupCount",pp="logGroupClass",Tpt="logGroupFields",as="logGroupIdentifiers",dt="logGroupIdentifier",Me="logGroupName",vpt="logGroupNamePrefix",d3="logGroupNamePattern",p3="logGroupNames",Dpt="logGroupsScanned",Ipt="logGroupTags",wpt="lastIngestionTime",Ppt="lastModified",Opt="lastModifiedTime",Fge="lastModifiedTimeStamp",$pt="logObjectPointer",kpt="lifecyclePolicy",Mpt="logRecord",Lpt="logRecordPointer",Npt="lastSeen",cc="logStreamName",f3="logStreamNamePrefix",Bge="logStreamNamePrefixes",m3="logStreamNames",Fpt="lastScanTime",Bpt="logSamples",Upt="logStreams",g3="logType",Du="lookupTableArn",Gpt="lookupTableConfiguration",qpt="listToMap",h3="lookupTableName",Hpt="lookupTableNamePrefix",S3="lastTriggeredTime",jpt="logTypes",zpt="lookupTables",Tn="lastUpdatedTime",Vpt="lastUpdateTime",Bt="limit",Wpt="location",je="message",Kpt="metricFilters",Qpt="metricFilterCount",Ypt="maxItems",Jpt="moveKeys",Uge="metricName",Gge="metricNamespace",Xpt="matchPatterns",uc="maxResults",qge="metricTransformations",Zpt="minValue",eft="maxValue",tft="mappingVersion",rft="metricValue",nft="match",oft="mandatory",sft="matches",Ut="name",ift="nextBackwardToken",aft="nextForwardToken",cft="nonMatchValue",uft="networkPolicy",lft="nextSequenceToken",Q="nextToken",dft="ownerAccountId",pft="orderBy",Hge="outputFormat",hh="overwriteIfExists",fft="openSearchIntegrationDetails",mft="openSearchResourceConfig",gft="ocsfVersion",hft="priority",Sft="parseCloudfront",Ki="policyDocument",jge="patternId",yft="processedIdentifier",Eft="parseJSON",_ft="parseKeyValue",So="policyName",Rft="parsePostgres",Cft="patternRegex",bft="parseRoute53",Aft="patternString",xft="parentSourceIdentifier",zge="policyScope",RD="policyType",Tft="parseToOCSF",vft="patternTokens",Dft="parseVPC",Ift="parseWAF",Vge="parameters",wft="percent",Wge="policy",Pft="queries",Oft="quoteCharacter",$ft="queryCompileError",kft="queryDefinitions",CD="queryDefinitionId",Mft="queryDefinitionNamePrefix",Lft="queryDuration",lc="queryId",cs="queryLanguage",dc="queryString",Nft="results",pc="resourceArn",Fft="resourceArns",fc="roleArn",Bft="recordsCount",Uft="resourceConfig",Gft="resultCount",qft="retentionDays",Hft="rejectedEntityInfo",bD="recordFields",Kge="resourceIdentifier",Qge="retentionInDays",jft="requestId",Yge="revisionId",zft="renameKeys",Vft="rejectedLogEventsInfo",Wft="recordsMatched",Kft="resourceName",Qft="resourcePolicies",Yft="resourcePolicy",Jft="recordsScanned",Xft="responseStream",Zft="resourceType",emt="resourceTypes",tmt="renameTo",Jge="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatchlogs",Xge="sizeBytes",Zge="storedBytes",ehe="selectionCriteria",rmt="startCharOffset",nmt="searchedCompletely",omt="s3Configuration",smt="statusCode",imt="syslogConfigurations",amt="suppressedDate",AD="s3DeliveryConfiguration",Sh="scheduleExpression",xD="scheduleEndTime",cmt="startEventTime",umt="subscriptionFilters",the="startFromHead",lmt="sessionId",dmt="searchedLogStreams",pmt="sessionMetadata",fmt="statusMessage",mmt="suffixPath",gmt="suppressionPeriod",hmt="scheduledQueries",yh="scheduledQueryArn",rhe="statusReason",Smt="sessionResults",ymt="suppressionState",TD="scheduleStartTime",Emt="sessionStart",_mt="splitString",Rmt="substituteString",Cmt="sourceTimezone",bmt="s3TablesIntegration",vD="startTimeOffset",DD="scheduleType",Amt="sequenceToken",xmt="sourceType",ID="startTime",y3="storageTier",Tmt="suppressionType",vmt="suppressedUntil",Dmt="sessionUpdate",Imt="suppressionUnit",wmt="supportedValues",Pmt="sampled",nhe="scope",ohe="server",E3="service",$r="source",Omt="sources",mc="state",kr="status",$mt="statistics",she="streaming",kmt="suppressed",ihe="success",wD="target",ahe="targetArn",_3="tableBody",R3="transformerConfig",Mmt="typeConverter",Lmt="transformedEventMessage",Nmt="targetFormat",Fmt="tableFields",Bmt="triggerHistory",PD="taskId",Umt="tagKeys",Gmt="transformedLogs",che="taskName",qmt="tooNewLogEventStartIndex",Hmt="tableName",jmt="tooOldLogEventEndIndex",zmt="tokenString",Vmt="trimString",Wmt="targetTimezone",Kmt="triggeredTimestamp",Mr="tags",Eh="timezone",_h="timestamp",Qmt="time",C3="to",Rh="type",OD="unmask",Ymt="upperCaseString",Jmt="userIdentity",Xmt="uploadSequenceToken",Zmt="unit",$D="value",kD="vpcEndpointId",egt="valueKey",tgt="valueType",rgt="values",ngt="workspace",ogt="workspaceId",MD="withKeys",S="com.amazonaws.cloudwatchlogs",uhe=new Wme(Jge),lhe=[-3,Jge,"CloudWatchLogsServiceException",0,[],[]];uhe.registerError(lhe,nt);var Rt=new Wme(S),dhe=[-3,S,zet,{[wt]:Jt},[je],[0]];Rt.registerError(dhe,zx);var phe=[-3,S,ltt,{[wt]:Jt},[je],[0]];Rt.registerError(phe,eT);var fhe=[-3,S,Htt,{[wt]:Jt},[xge,je],[0,0]];Rt.registerError(fhe,oT);var mhe=[-3,S,Nst,{[wt]:ohe,[wge]:500},[je],[0]];Rt.registerError(mhe,Yx);var b3=[-3,S,Qme,{[wt]:Jt},[je],[0]];Rt.registerError(b3,sT);var ghe=[-3,S,Ost,{[wt]:Jt},[je],[0]];Rt.registerError(ghe,Zx);var hhe=[-3,S,kst,{[wt]:Jt},[je],[0]];Rt.registerError(hhe,Vx);var She=[-3,S,Fst,{[wt]:Jt},[xge,je],[0,0]];Rt.registerError(She,iT);var yhe=[-3,S,Qst,{[wt]:Jt},[je],[0]];Rt.registerError(yhe,rT);var Ehe=[-3,S,Jit,{[wt]:Jt},[$ft,je],[()=>s_e,0]];Rt.registerError(Ehe,lT);var _he=[-3,S,eat,{[wt]:Jt},[je],[0]];Rt.registerError(_he,Wx);var Rhe=[-3,S,Mct,{[wt]:Jt},[je],[0]];Rt.registerError(Rhe,nT);var Che=[-3,S,jct,{[wt]:Jt},[je],[0]];Rt.registerError(Che,Kx);var bhe=[-3,S,lut,{[wt]:Jt},[je],[0]];Rt.registerError(bhe,tT);var Ahe=[-3,S,vut,{[wt]:ohe},[je],[0]];Rt.registerError(Ahe,Qx);var A3=[-3,S,Yme,{[wt]:Jt},[je],[0]];Rt.registerError(A3,cT);var x3=[-3,S,Jme,{[wt]:Jt},[je],[0]];Rt.registerError(x3,uT);var xhe=[-3,S,Put,{[wt]:Jt},[je],[0]];Rt.registerError(xhe,Jx);var The=[-3,S,Hut,{[wt]:Jt,[wge]:400},[je,Kft],[0,0]];Rt.registerError(The,dT);var vhe=[-3,S,Xut,{[wt]:Jt},[je],[0]];Rt.registerError(vhe,aT);var Dhe=[-3,S,glt,{[wt]:Jt},[je],[0]];Rt.registerError(Dhe,Xx);var Ihe=[uhe,Rt],T3=[3,S,ttt,0,[So,Ki,Tn,RD,nhe,ehe,Clt],[0,0,1,0,0,0,0]],whe=[3,S,Qet,0,[dp,$D,hh],[0,0,2],2],Phe=[3,S,Ket,0,[Tu],[()=>igt],1],Ohe=[3,S,Zet,0,[xpt,Qdt],[1,()=>Rgt]],$he=[3,S,Het,0,[ege,jge,ic,Aft,Gdt,Npt,is,hlt,mc,Ydt,Bpt,vft,_D,Cft,hft,kmt,amt,vmt,opt],[0,0,0,0,1,1,0,2,0,129,()=>Pgt,()=>Fgt,64,0,0,2,1,1,2],13],khe=[3,S,jet,0,[ic,e3,_D,lD,yi,Zme,ho,oge,Fge,aD],[0,0,64,0,0,0,0,1,1,1]],Mhe=[3,S,Xet,0,[ho,Me,Kge],[0,0,0],1],Lhe=[3,S,ott,0,[Pge,r3],[0,()=>v3],2],Nhe=[3,S,stt,0,[ac],[0]],Fhe=[3,S,ptt,0,[PD],[0],1],Bhe=[3,S,Stt,0,[vu],[0],1],Uhe=[3,S,ytt,0,[vu,kge,a3,jn,Tn],[0,()=>P3,0,1,1]],Ghe=[3,S,Ltt,0,[E3,g3,Zft,cD,Ylt,_lt,Tlt,Slt,Rlt,Ilt,n3,bmt],[0,0,0,0,()=>qhe,()=>cgt,64,0,64,64,()=>ggt,()=>E_e]],qhe=[3,S,Ntt,0,[bD,gh,AD],[64,0,()=>Ch]],Hhe=[3,S,Btt,0,[Tu],[()=>pgt],1],jhe=[3,S,Utt,0,[$r,wD,hh],[0,0,2],2],zhe=[3,S,ctt,0,[pge,ige,bD,gh,AD,Mr],[0,0,64,0,()=>Ch,128],2],Vhe=[3,S,utt,0,[hge],[()=>LD]],Whe=[3,S,ftt,0,[Me,s3,C3,cp,che,f3,dge],[0,1,1,0,0,0,0],4],Khe=[3,S,mtt,0,[PD],[0]],Qhe=[3,S,Ett,0,[hD,apt,$ge],[0,0,()=>w3],2],Yhe=[3,S,_tt,0,[vu,Oge,jn],[0,0,1]],Jhe=[3,S,btt,0,[_D,e3,lD,yi,ho,aD,Mr],[64,0,0,0,0,1,128],1],Xhe=[3,S,Att,0,[ic],[0]],Zhe=[3,S,Ttt,0,[Me,ho,Mr,pp,t3],[0,0,128,0,2],1],eSe=[3,S,Dtt,0,[Me,cc],[0,0],2],tSe=[3,S,wtt,0,[h3,is,_3,lc,ho,Mr],[0,0,0,0,0,128],1],rSe=[3,S,Ptt,0,[Du,nge],[0,1]],nSe=[3,S,$tt,0,[Ut,cs,dc,Sh,pD,is,as,Eh,vD,fD,mh,TD,xD,mc,Mr],[0,0,0,0,0,0,64,0,1,1,()=>fp,1,1,0,128],5],oSe=[3,S,ktt,0,[yh,mc],[0,0]],sSe=[3,S,Mtt,0,[Oft,Sge,zlt,$r,cp],[0,0,64,0,0]],v3=[3,S,Mnt,0,[Ut,Rh],[0,0],1],iSe=[3,S,Unt,0,[Ut,Rh],[0,0],1],aSe=[3,S,rot,0,[$r,wD,Xpt,Nmt,Cmt,Wmt,Spt],[0,0,64,0,0,0,0],3],cSe=[3,S,ztt,0,[So,RD],[0,0],2],uSe=[3,S,urt,0,[dt],[0],1],lSe=[3,S,nrt,0,[ZN],[0],1],dSe=[3,S,ort,0,[Ut],[0],1],pSe=[3,S,lrt,0,[ED],[0],1],fSe=[3,S,Srt,0,[Ut],[0],1],mSe=[3,S,drt,0,[uD],[0],1],gSe=[3,S,krt,0,[dt],[0],1],hSe=[3,S,Mrt,0,[],[]],SSe=[3,S,Brt,0,[lp,Vdt],[0,2],1],ySe=[3,S,Urt,0,[],[]],ESe=[3,S,Wrt,0,[MD],[64],1],_Se=[3,S,Jrt,0,[ic],[0],1],RSe=[3,S,Zrt,0,[Me],[0],1],CSe=[3,S,ont,0,[Me,cc],[0,0],2],bSe=[3,S,unt,0,[Du],[0],1],ASe=[3,S,mnt,0,[Me,up],[0,0],2],xSe=[3,S,Rnt,0,[CD],[0],1],TSe=[3,S,Cnt,0,[ihe],[2]],vSe=[3,S,Int,0,[So,pc,Cge],[0,0,0]],DSe=[3,S,wnt,0,[Me],[0],1],ISe=[3,S,Jnt,0,[ac],[0],1],wSe=[3,S,Xnt,0,[],[]],PSe=[3,S,Gnt,0,[Me,up],[0,0],2],OSe=[3,S,Nnt,0,[dt,kD],[0,0],1],$Se=[3,S,not,0,[dt],[0],1],LD=[3,S,qtt,0,[ED,ap,pge,ige,cD,bD,gh,AD,Mr],[0,0,0,0,0,64,0,()=>Ch,128]],ND=[3,S,Ztt,0,[Ut,ap,cD,Hge,age,fc,Mr],[0,0,0,0,()=>D3,0,128]],D3=[3,S,ert,0,[tdt],[0],1],FD=[3,S,Znt,0,[Ut,ap,Fft,E3,g3,Mr,n3,kr,rhe],[0,0,64,0,0,128,128,0,0]],kSe=[3,S,Fnt,0,[mpt,tgt,o3,wmt,Zpt,eft],[0,0,0,64,1,1],3],MSe=[3,S,Vtt,0,[RD,So,sD,Q],[0,0,64,0],1],LSe=[3,S,Wtt,0,[vlt,Q],[()=>sgt,0]],NSe=[3,S,Jtt,0,[E3,jpt,emt,Jlt,Q,Bt],[0,64,64,64,0,1]],FSe=[3,S,Xtt,0,[Glt,Q],[()=>dgt,0]],BSe=[3,S,prt,0,[Q,Bt],[0,1]],USe=[3,S,frt,0,[ddt,Q],[()=>fgt,0]],GSe=[3,S,srt,0,[Q,Bt],[0,1]],qSe=[3,S,irt,0,[Qlt,Q],[()=>mgt,0]],HSe=[3,S,yrt,0,[Q,Bt],[0,1]],jSe=[3,S,Ert,0,[odt,Q],[()=>hgt,0]],zSe=[3,S,mrt,0,[ynt,Q,Bt],[0,0,1]],VSe=[3,S,grt,0,[yge,Q],[()=>Sgt,0]],WSe=[3,S,vrt,0,[PD,smt,Q,Bt],[0,0,0,1]],KSe=[3,S,Drt,0,[vdt,Q],[()=>ygt,0]],QSe=[3,S,wrt,0,[as,Xdt,Q],[64,64,0],1],YSe=[3,S,Prt,0,[Ndt,Q],[()=>Egt,0]],JSe=[3,S,Hrt,0,[vu,Mlt,Bt,Q],[0,64,1,0],1],XSe=[3,S,jrt,0,[hD,vu,Jdt,Q],[0,0,()=>Cgt,0]],ZSe=[3,S,zrt,0,[vu,a3,hD,Bt,Q],[0,0,0,1,0]],e0e=[3,S,Vrt,0,[lpt,Q],[()=>bgt,0]],t0e=[3,S,Lrt,0,[as,Q],[64,0],1],r0e=[3,S,Nrt,0,[npt,Q],[()=>Agt,0]],n0e=[3,S,ent,0,[sD,vpt,d3,Q,Bt,i3,pp,as],[64,0,0,0,1,2,0,64]],o0e=[3,S,tnt,0,[Nge,Q],[()=>Igt,0]],s0e=[3,S,snt,0,[Me,dt,f3,pft,pdt,Q,Bt],[0,0,0,0,2,0,1]],i0e=[3,S,int,0,[Upt,Q],[()=>Ogt,0]],a0e=[3,S,lnt,0,[Hpt,uc,Q],[0,1,0]],c0e=[3,S,dnt,0,[zpt,Q],[()=>$gt,0]],u0e=[3,S,gnt,0,[Me,Dge,Q,Bt,Uge,Gge],[0,0,0,1,0,0]],l0e=[3,S,hnt,0,[Kpt,Q],[()=>Mgt,0]],d0e=[3,S,Tnt,0,[Me,kr,uc,Q,cs],[0,0,1,0,0]],p0e=[3,S,vnt,0,[Pft,Q],[()=>Ugt,0]],f0e=[3,S,bnt,0,[cs,Mft,uc,Q],[0,0,1,0]],m0e=[3,S,Ant,0,[kft,Q],[()=>Bgt,0]],g0e=[3,S,Pnt,0,[Q,Bt,pc,zge],[0,1,0,0]],h0e=[3,S,Ont,0,[Qft,Q],[()=>Hgt,0]],S0e=[3,S,qnt,0,[Me,Dge,Q,Bt],[0,0,0,1],1],y0e=[3,S,Hnt,0,[umt,Q],[()=>Ygt,0]],I3=[3,S,oot,0,[uD,ahe,fc,XN,ap,jn],[0,0,0,0,0,1]],fp=[3,S,Qtt,0,[omt,Gpt],[()=>S_e,()=>Zye]],E0e=[3,S,Qrt,0,[Me,Kge],[0,0]],_0e=[3,S,znt,0,[ac],[0],1],R0e=[3,S,Vnt,0,[ac],[0]],C0e=[3,S,aot,0,[ppt,Olt],[128,128]],b0e=[3,S,cot,0,[PD,che,Me,s3,C3,cp,dge,kr,ydt],[0,0,0,1,1,0,0,()=>x0e,()=>A0e]],A0e=[3,S,uot,0,[jn,qlt],[1,1]],x0e=[3,S,lot,0,[Vlt,je],[0,0]],T0e=[3,S,fot,0,[dt,Fdt,Fpt,Mdt,_pt,Rh,Zdt],[0,0,1,1,1,0,0]],v0e=[3,S,pot,0,[ldt],[21]],D0e=[3,S,got,0,[cc,_h,je,c3,Edt],[0,1,0,1,0]],I0e=[3,S,hot,0,[Me,dt,m3,f3,ID,mD,yi,Q,Bt,the,dpt,OD],[0,0,64,0,1,1,0,0,1,2,2,2]],w0e=[3,S,Sot,0,[vge,dmt,Q],[()=>_gt,()=>Kgt,0]],P0e=[3,S,Iot,0,[dt],[0],1],O0e=[3,S,wot,0,[dt,Ki,Tn],[0,0,1]],$0e=[3,S,Aot,0,[ZN],[0],1],k0e=[3,S,xot,0,[Wge],[()=>k3]],M0e=[3,S,Tot,0,[Ut],[0],1],L0e=[3,S,vot,0,[uge],[()=>ND]],N0e=[3,S,Pot,0,[ED],[0],1],F0e=[3,S,Oot,0,[hge],[()=>LD]],B0e=[3,S,kot,0,[Ut],[0],1],U0e=[3,S,Mot,0,[gge],[()=>FD]],G0e=[3,S,Not,0,[lp],[0],1],q0e=[3,S,Fot,0,[lp,yD,SD,ept],[0,0,0,()=>lRe]],H0e=[3,S,qot,0,[ic],[0],1],j0e=[3,S,Hot,0,[e3,_D,lD,yi,Zme,ho,oge,Fge,aD],[0,64,0,0,0,0,1,1,1]],z0e=[3,S,zot,0,[cc,Me,dt,ID,mD,Q,Bt,the,OD],[0,0,0,1,1,0,1,2,2],1],V0e=[3,S,Vot,0,[vge,aft,ift],[()=>Ngt,0,0]],W0e=[3,S,Kot,0,[fge,ndt],[0,0],2],K0e=[3,S,Qot,0,[Cpt],[()=>iRe]],Q0e=[3,S,Jot,0,[Me,Qmt,dt],[0,1,0]],Y0e=[3,S,Xot,0,[Tpt],[()=>Dgt]],J0e=[3,S,est,0,[$pt,OD],[0,2],1],X0e=[3,S,rst,0,[qdt],[[()=>uRe,0]]],Z0e=[3,S,ost,0,[Lpt,OD],[0,2],1],eye=[3,S,sst,0,[Mpt],[128]],tye=[3,S,ast,0,[Du],[0],1],rye=[3,S,cst,0,[Du,h3,is,_3,Xge,Tn,ho],[0,0,0,0,1,1,0]],nye=[3,S,lst,0,[lc,Q,Ypt],[0,0,1],1],oye=[3,S,dst,0,[cs,Nft,$mt,kr,_dt,Q],[0,()=>Ggt,()=>l_e,0,0,0]],sye=[3,S,mst,0,[ac,ID,mD,Adt,uc,Q],[0,1,1,64,1,0],3],iye=[3,S,gst,0,[Ut,yh,Bmt,Q],[0,0,()=>tht,0]],aye=[3,S,hst,0,[ac],[0],1],cye=[3,S,Sst,0,[yh,Ut,is,cs,dc,as,Sh,Eh,vD,fD,mh,mc,DD,S3,u3,TD,xD,pD,jn,Tn],[0,0,0,0,0,64,0,0,1,1,()=>fp,0,0,1,0,1,1,0,1,1]],uye=[3,S,Est,0,[],[]],lye=[3,S,_st,0,[y3,Tn],[0,1]],dye=[3,S,Cst,0,[dt],[0],1],pye=[3,S,bst,0,[dt,jn,Opt,R3],[0,1,1,()=>L3]],fye=[3,S,_ot,0,[nft,$r],[0,0],1],mye=[3,S,Lot,0,[dp,$D],[0,0]],gye=[3,S,Ast,0,[vu,hD,a3,Oge,kge,$ge,jn,Tn,dD],[0,0,0,0,()=>P3,()=>w3,1,1,0]],hye=[3,S,xst,0,[klt,kr,dD],[0,0,0],2],w3=[3,S,Dst,0,[cmt,hdt],[1,1]],P3=[3,S,Lst,0,[Llt],[1]],O3=[3,S,$st,0,[dt,Vpt,Ki,So,$r],[0,1,0,0,0]],Sye=[3,S,wst,0,[_h,je],[1,0],2],yye=[3,S,Bst,0,[lp,yD,SD],[0,0,0]],Eye=[3,S,Hst,0,[Kdt,sD,i3,pp,d3,mge,Q,Bt],[0,64,2,0,0,()=>sRe,0,1],1],_ye=[3,S,jst,0,[xlt,Q],[()=>agt,0]],Rye=[3,S,zst,0,[ic,ymt,Bt,Q],[0,0,1,0]],Cye=[3,S,Vst,0,[wlt,Q],[()=>ugt,0]],bye=[3,S,iit,0,[rpt,yD,SD],[0,0,0]],Aye=[3,S,ait,0,[cpt],[()=>Tgt]],xye=[3,S,uit,0,[Udt,Bt,Q],[0,1,0]],Tye=[3,S,lit,0,[ylt,Q],[()=>lgt,0]],vye=[3,S,fit,0,[lc,Q,uc],[0,0,1],1],Dye=[3,S,mit,0,[as,Q],[64,0]],Iye=[3,S,git,0,[d3,pp,i3,sD,Q,Bt,mge,Bdt,Ipt],[0,0,2,64,0,1,()=>sRe,64,()=>Zgt]],wye=[3,S,hit,0,[Nge,Q],[()=>wgt,0]],Pye=[3,S,xit,0,[uc,Q,mc,DD],[1,0,0,0]],Oye=[3,S,Tit,0,[Q,hmt],[0,()=>Wgt]],$ye=[3,S,Cit,0,[Pge,uc,Q],[0,1,0],1],kye=[3,S,bit,0,[Omt,Q],[()=>zgt,0]],Mye=[3,S,Eit,0,[dt,kD,Q,uc],[0,0,0,1]],Lye=[3,S,_it,0,[imt,Q],[()=>Xgt,0]],Nye=[3,S,Oit,0,[pc],[0],1],Fye=[3,S,$it,0,[Mr],[128]],Bye=[3,S,Mit,0,[Me],[0],1],Uye=[3,S,Lit,0,[Mr],[128]],Gye=[3,S,Nit,0,[$r,dp,egt,wD,zdt,kdt],[0,0,0,0,2,0],2],qye=[3,S,Fit,0,[cc,dt,je,_h,c3],[0,0,0,1,1]],Hye=[3,S,Bit,0,[Pmt],[2]],jye=[3,S,Git,0,[jft,lmt,as,m3,Bge,Mge],[0,0,64,64,64,0]],zye=[3,S,qit,0,[pmt,Smt],[()=>Hye,()=>vgt]],Vye=[3,S,Kst,0,[_h,je],[1,0]],Wye=[3,S,Jst,0,[bpt,Apt],[0,()=>$3]],$3=[3,S,Xst,0,[Rh,wdt,Ige],[0,()=>$3,()=>iRe]],Kye=[3,S,Zst,0,[Me,jn,Qge,Qpt,ap,Zge,ho,edt,spt,pp,l3,t3,rge],[0,1,1,1,0,1,0,0,64,0,0,2,2]],Qye=[3,S,eit,0,[Ut,wft],[0,1]],Yye=[3,S,rit,0,[Me,l3,pp],[0,0,0]],Jye=[3,S,Sit,0,[cc,jn,Ldt,Rpt,wpt,Xmt,ap,Zge],[0,1,1,1,1,0,0,1]],Xye=[3,S,Iit,0,[Du,h3,is,Fmt,Bft,Xge,Tn,ho],[0,0,0,64,1,1,1,0]],Zye=[3,S,wit,0,[Hmt,fc,is,ho,Mr],[0,0,0,0,128],2],eEe=[3,S,Wst,0,[MD],[64],1],tEe=[3,S,jit,0,[up,yi,qge,jn,Me,iD,gD,Age],[0,0,()=>aRe,1,0,2,0,64]],rEe=[3,S,Vit,0,[Rge,_ge,Idt],[1,0,128]],nEe=[3,S,Xit,0,[Uge,Gge,rft,o3,fdt,Zmt],[0,0,0,1,128,0],3],oEe=[3,S,Qit,0,[$r,wD,hh],[0,0,2],2],sEe=[3,S,Kit,0,[Tu],[()=>Lgt],1],iEe=[3,S,nat,0,[Elt,Xme,blt,kr],[0,0,0,()=>Qi]],aEe=[3,S,oat,0,[Flt,Nlt,kr],[0,0,()=>Qi]],cEe=[3,S,sat,0,[So,kr],[0,()=>Qi]],uEe=[3,S,iat,0,[fge,kr],[0,()=>Qi]],lEe=[3,S,aat,0,[So,kr],[0,()=>Qi]],dEe=[3,S,cat,0,[r3,Plt,Wlt,ngt,Cdt,uft,XN,kpt],[()=>uEe,()=>iEe,()=>aEe,()=>gEe,()=>lEe,()=>fEe,()=>cEe,()=>pEe]],pEe=[3,S,uat,0,[So,kr],[0,()=>Qi]],fEe=[3,S,lat,0,[So,kr],[0,()=>Qi]],mEe=[3,S,dat,0,[rdt,udt,qft,fpt,Xme],[0,64,1,0,0],3],Qi=[3,S,pat,0,[kr,fmt],[0,0]],gEe=[3,S,fat,0,[ogt,kr],[0,()=>Qi]],hEe=[3,S,tat,0,[_h,je,c3],[1,0,1]],SEe=[3,S,_at,0,[$r],[0]],yEe=[3,S,jat,0,[$r,cp],[0,0]],EEe=[3,S,zat,0,[$r,cp,gh,hpt,gpt,cft,hh],[0,0,0,0,0,0,2]],_Ee=[3,S,Zat,0,[$r],[0]],REe=[3,S,nct,0,[$r],[0]],CEe=[3,S,Sct,0,[xdt,gft,$r,tft],[0,0,0,0],2],bEe=[3,S,Rct,0,[$r],[0]],AEe=[3,S,Cct,0,[$r],[0]],xEe=[3,S,hct,0,[adt,tpt,zmt,$dt,upt],[1,2,0,129,0]],k3=[3,S,mat,0,[cge],[0]],TEe=[3,S,bct,0,[Alt,jlt,Klt,idt,Xlt,Wdt,qpt,ypt,Jpt,Sft,Eft,_ft,bft,Tft,Rft,Dft,Ift,zft,_mt,Rmt,Vmt,Mmt,Ymt],[()=>Phe,()=>Hhe,()=>sSe,()=>aSe,()=>ESe,()=>fye,()=>Gye,()=>eEe,()=>sEe,()=>SEe,()=>yEe,()=>EEe,()=>REe,()=>CEe,()=>_Ee,()=>bEe,()=>AEe,()=>g_e,()=>b_e,()=>O_e,()=>z_e,()=>V_e,()=>oRe]],vEe=[3,S,hat,0,[So,Ki,RD,nhe,ehe],[0,0,0,0,0],3],DEe=[3,S,Sat,0,[Dlt],[()=>T3]],IEe=[3,S,Eat,0,[dt,rge],[0,2],2],wEe=[3,S,wat,0,[dt,Ki],[0,0],2],PEe=[3,S,Pat,0,[dt,Ki,Tn],[0,0,1]],OEe=[3,S,Aat,0,[ZN,cge],[0,0],2],$Ee=[3,S,xat,0,[Wge],[()=>k3]],kEe=[3,S,Tat,0,[Ut,Hge,age,cD,fc,Mr],[0,0,()=>D3,0,0,128],1],MEe=[3,S,vat,0,[uge],[()=>ND]],LEe=[3,S,Lat,0,[Ut,pc,g3,Mr,n3],[0,0,0,128,128],3],NEe=[3,S,Nat,0,[gge],[()=>FD]],FEe=[3,S,Oat,0,[uD,XN,Hdt],[0,0,2],2],BEe=[3,S,$at,0,[uD,ahe,fc,Mr],[0,0,0,128],3],UEe=[3,S,kat,0,[cp],[()=>I3]],GEe=[3,S,Uat,0,[dt,Ki],[0,0],2],qEe=[3,S,Gat,0,[ipt],[()=>O3]],HEe=[3,S,qat,0,[lp,Uft,yD],[0,()=>dRe,0],3],jEe=[3,S,Hat,0,[lp,SD],[0,0]],zEe=[3,S,Wat,0,[Me,cc,Ept,Amt,Odt],[0,0,()=>xgt,0,()=>C0e],3],VEe=[3,S,Kat,0,[lft,Vft,Hft],[0,()=>f_e,()=>p_e]],WEe=[3,S,Yat,0,[dt,t3],[0,2],2],KEe=[3,S,Xat,0,[Me,up,yi,qge,iD,gD,Age],[0,0,0,()=>aRe,2,0,64],4],QEe=[3,S,tct,0,[Ut,dc,cs,CD,p3,Ult,Vge],[0,0,0,0,64,[0,4],()=>cRe],2],YEe=[3,S,rct,0,[CD],[0]],JEe=[3,S,sct,0,[So,Ki,pc,Cge],[0,0,0,0]],XEe=[3,S,ict,0,[Yft,Yge],[()=>M3,0]],ZEe=[3,S,act,0,[Me,Qge],[0,1],2],e_e=[3,S,mct,0,[y3],[0],1],t_e=[3,S,gct,0,[y3,Tn],[0,1]],r_e=[3,S,pct,0,[Me,up,yi,sge,fc,Ege,iD,gD,bge],[0,0,0,0,0,0,2,0,64],4],n_e=[3,S,lct,0,[dt,kD],[0,0],1],o_e=[3,S,yct,0,[dt,R3],[0,()=>L3],2],s_e=[3,S,xct,0,[Wpt,je],[()=>i_e,0]],i_e=[3,S,Tct,0,[rmt,gdt],[1,1]],a_e=[3,S,vct,0,[cs,CD,Ut,dc,Ppt,p3,Vge],[0,0,0,0,1,64,()=>cRe]],c_e=[3,S,Ict,0,[cs,lc,dc,kr,Hlt,Me,Lft,tge,Jmt],[0,0,0,0,1,0,1,1,0]],u_e=[3,S,Pct,0,[Ut,o3,is],[0,0,0],1],l_e=[3,S,kct,0,[Wft,Jft,bdt,tge,mdt,Dpt,Gft],[1,1,1,1,1,1,1]],d_e=[3,S,Fct,0,[Ut,oft],[0,2]],p_e=[3,S,Nct,0,[Ddt],[0],1],f_e=[3,S,Hct,0,[qmt,jmt,Rdt],[1,1,1]],m_e=[3,S,Gct,0,[dp,tmt,hh],[0,0,2],2],g_e=[3,S,Uct,0,[Tu],[()=>qgt],1],M3=[3,S,zct,0,[So,Ki,Tn,zge,pc,Yge],[0,0,1,0,0,0]],h_e=[3,S,Bct,0,[jdt,$D],[0,0]],S_e=[3,S,Kct,0,[lge,fc,dft,ho],[0,0,0,0],2],Ch=[3,S,Jct,0,[mmt,Sdt],[0,2]],y_e=[3,S,xut,0,[ac,r3,kr,rhe,Blt,xft],[0,()=>v3,0,0,1,0]],E_e=[3,S,Aut,0,[Zlt,sdt],[0,0]],__e=[3,S,cut,0,[cdt,lge,kr,yft,dD],[0,0,0,0,0]],R_e=[3,S,gut,0,[yh,Ut,mc,DD,S3,u3,Sh,Eh,mh,jn,Tn],[0,0,0,0,1,0,0,0,()=>fp,1,1]],C_e=[3,S,eut,0,[cc,nmt],[0,2]],b_e=[3,S,yut,0,[Tu],[()=>Qgt],1],A_e=[3,S,Eut,0,[$r,Sge],[0,0],2],x_e=[3,S,nut,0,[as,m3,Bge,Mge],[64,64,64,0],1],T_e=[3,S,sut,0,[Xft],[[()=>pRe,0]]],v_e=[3,S,dut,0,[ID,mD,dc,cs,Me,p3,as,Bt],[1,1,0,0,0,64,64,1],3],D_e=[3,S,put,0,[lc],[0]],I_e=[3,S,fut,0,[lc],[0],1],w_e=[3,S,mut,0,[ihe],[2]],P_e=[3,S,Xct,0,[up,Me,yi,sge,fc,Ege,iD,jn,gD,bge],[0,0,0,0,0,0,2,1,0,64]],O_e=[3,S,but,0,[Tu],[()=>Jgt],1],$_e=[3,S,Rut,0,[$r,s3,C3],[0,0,0],3],k_e=[3,S,iut,0,[$D,Imt],[1,0]],M_e=[3,S,Qct,0,[l3,xmt,kD,nge],[0,0,0,1]],L_e=[3,S,Out,0,[dp,rgt],[0,64],1],N_e=[3,S,Fut,0,[Me,Mr],[0,128],2],F_e=[3,S,zut,0,[pc,Mr],[0,128],2],B_e=[3,S,Gut,0,[yi,Lge],[0,64],2],U_e=[3,S,qut,0,[sft],[()=>kgt]],G_e=[3,S,Kut,0,[R3,Lge],[()=>L3,64],2],q_e=[3,S,Qut,0,[Gmt],[()=>eht]],H_e=[3,S,But,0,[Rge,_ge,Lmt],[1,0,0]],j_e=[3,S,kut,0,[lc,Tdt,Kmt,dD,yge],[0,0,1,0,()=>Vgt]],z_e=[3,S,Vut,0,[MD],[64],1],V_e=[3,S,Dut,0,[Tu],[()=>rht],1],W_e=[3,S,Iut,0,[dp,Rh],[0,0],2],K_e=[3,S,ilt,0,[Me,Mr],[0,64],2],Q_e=[3,S,dlt,0,[pc,Umt],[0,64],2],Y_e=[3,S,Jut,0,[ic,ege,jge,Tmt,gmt,$lt],[0,0,0,0,()=>k_e,2],1],J_e=[3,S,tlt,0,[ED,bD,gh,AD],[0,64,0,()=>Ch],1],X_e=[3,S,rlt,0,[],[]],Z_e=[3,S,olt,0,[ic,Pdt,lD,yi,aD],[0,2,0,0,1],2],eRe=[3,S,clt,0,[Du,is,_3,lc,ho],[0,0,0,0,0],1],tRe=[3,S,ult,0,[Du,Tn],[0,1]],rRe=[3,S,flt,0,[ac,cs,dc,Sh,pD,is,as,Eh,vD,fD,mh,TD,xD,mc],[0,0,0,0,0,0,64,0,1,1,()=>fp,1,1,0],5],nRe=[3,S,mlt,0,[yh,Ut,is,cs,dc,as,Sh,Eh,vD,fD,mh,mc,DD,S3,u3,TD,xD,pD,jn,Tn],[0,0,0,0,0,64,0,0,1,1,()=>fp,0,0,1,0,1,1,0,1,1]],oRe=[3,S,Zut,0,[MD],[64],1],Se="unit",sgt=[1,S,rtt,0,()=>T3],igt=[1,S,Yet,0,()=>whe],agt=[1,S,ett,0,()=>Ohe],cgt=[1,S,Wet,0,()=>d_e],ugt=[1,S,itt,0,()=>$he],lgt=[1,S,Vet,0,()=>khe],dgt=[1,S,Ftt,0,()=>Ghe],pgt=[1,S,Gtt,0,()=>jhe],sRe=[1,S,Wnt,0,()=>iSe],fgt=[1,S,sot,0,()=>LD],mgt=[1,S,Rrt,0,()=>ND],ggt=[1,S,Bnt,0,()=>kSe],hgt=[1,S,eot,0,()=>FD],Sgt=[1,S,iot,0,()=>I3],ygt=[1,S,dot,0,()=>b0e],Egt=[1,S,mot,0,()=>T0e],_gt=[1,S,yot,0,()=>D0e],Rgt=[1,S,Uot,0,()=>mye],Cgt=[1,S,Tst,0,()=>hye],bgt=[1,S,Ist,0,()=>gye],Agt=[1,S,Mst,0,()=>O3],xgt=[1,S,Pst,0,()=>Sye],Tgt=[1,S,Ust,0,()=>yye],vgt=[1,S,Uit,0,()=>qye],iRe=[1,S,Yst,0,()=>Wye],Dgt=[1,S,tit,0,()=>Qye],Igt=[1,S,oit,0,()=>Kye],wgt=[1,S,nit,0,()=>Yye],Pgt=[1,S,vit,0,()=>Vye],Ogt=[1,S,Dit,0,()=>Jye],$gt=[1,S,Hit,0,()=>Xye],kgt=[1,S,zit,0,()=>rEe],Mgt=[1,S,Wit,0,()=>tEe],aRe=[1,S,Zit,0,()=>nEe],Lgt=[1,S,Yit,0,()=>oEe],Ngt=[1,S,rat,0,()=>hEe],Fgt=[1,S,Ect,0,()=>xEe],L3=[1,S,Act,0,()=>TEe],Bgt=[1,S,Dct,0,()=>a_e],Ugt=[1,S,wct,0,()=>c_e],cRe=[1,S,Oct,0,()=>u_e],Ggt=[1,S,$ct,0,()=>jgt],qgt=[1,S,qct,0,()=>m_e],Hgt=[1,S,Vct,0,()=>M3],jgt=[1,S,Wct,0,()=>h_e],zgt=[1,S,Tut,0,()=>y_e],Vgt=[1,S,uut,0,()=>__e],Wgt=[1,S,hut,0,()=>R_e],Kgt=[1,S,tut,0,()=>C_e],Qgt=[1,S,_ut,0,()=>A_e],Ygt=[1,S,Zct,0,()=>P_e],Jgt=[1,S,Cut,0,()=>$_e],Xgt=[1,S,Yct,0,()=>M_e],Zgt=[1,S,$ut,0,()=>L_e],eht=[1,S,Lut,0,()=>H_e],tht=[1,S,Mut,0,()=>j_e],rht=[1,S,wut,0,()=>W_e],uRe=[4,S,tst,{[she]:1},[Ige,Qme],[()=>v0e,[()=>b3,0]]],lRe=[4,S,vst,0,[fft],[()=>dEe]],dRe=[4,S,Lct,0,[mft],[()=>mEe]],pRe=[4,S,out,{[she]:1},[Emt,Dmt,Jme,Yme],[()=>jye,()=>zye,[()=>x3,0],[()=>A3,0]]],fRe=[9,S,Jet,0,()=>Mhe,()=>Se],mRe=[9,S,ntt,0,()=>Lhe,()=>Nhe],gRe=[9,S,dtt,0,()=>Fhe,()=>Se],hRe=[9,S,htt,0,()=>Bhe,()=>Uhe],SRe=[9,S,att,0,()=>zhe,()=>Vhe],yRe=[9,S,gtt,0,()=>Whe,()=>Khe],ERe=[9,S,Rtt,0,()=>Qhe,()=>Yhe],_Re=[9,S,Ctt,0,()=>Jhe,()=>Xhe],RRe=[9,S,xtt,0,()=>Zhe,()=>Se],CRe=[9,S,vtt,0,()=>eSe,()=>Se],bRe=[9,S,Itt,0,()=>tSe,()=>rSe],ARe=[9,S,Ott,0,()=>nSe,()=>oSe],xRe=[9,S,jtt,0,()=>cSe,()=>Se],TRe=[9,S,crt,0,()=>uSe,()=>Se],vRe=[9,S,Crt,0,()=>pSe,()=>Se],DRe=[9,S,trt,0,()=>dSe,()=>Se],IRe=[9,S,rrt,0,()=>lSe,()=>Se],wRe=[9,S,hrt,0,()=>fSe,()=>Se],PRe=[9,S,brt,0,()=>mSe,()=>Se],ORe=[9,S,$rt,0,()=>gSe,()=>hSe],$Re=[9,S,Ort,0,()=>SSe,()=>ySe],kRe=[9,S,Yrt,0,()=>_Se,()=>Se],MRe=[9,S,Xrt,0,()=>RSe,()=>Se],LRe=[9,S,nnt,0,()=>CSe,()=>Se],NRe=[9,S,cnt,0,()=>bSe,()=>Se],FRe=[9,S,fnt,0,()=>ASe,()=>Se],BRe=[9,S,_nt,0,()=>xSe,()=>TSe],URe=[9,S,Dnt,0,()=>vSe,()=>Se],GRe=[9,S,$nt,0,()=>DSe,()=>Se],qRe=[9,S,Ynt,0,()=>ISe,()=>wSe],HRe=[9,S,Knt,0,()=>PSe,()=>Se],jRe=[9,S,Lnt,0,()=>OSe,()=>Se],zRe=[9,S,tot,0,()=>$Se,()=>Se],VRe=[9,S,Ktt,0,()=>MSe,()=>LSe],WRe=[9,S,Ytt,0,()=>NSe,()=>FSe],KRe=[9,S,Art,0,()=>BSe,()=>USe],QRe=[9,S,art,0,()=>GSe,()=>qSe],YRe=[9,S,_rt,0,()=>HSe,()=>jSe],JRe=[9,S,xrt,0,()=>zSe,()=>VSe],XRe=[9,S,Trt,0,()=>WSe,()=>KSe],ZRe=[9,S,Irt,0,()=>QSe,()=>YSe],eCe=[9,S,qrt,0,()=>JSe,()=>XSe],tCe=[9,S,Grt,0,()=>ZSe,()=>e0e],rCe=[9,S,Frt,0,()=>t0e,()=>r0e],nCe=[9,S,rnt,0,()=>n0e,()=>o0e],oCe=[9,S,ant,0,()=>s0e,()=>i0e],sCe=[9,S,pnt,0,()=>a0e,()=>c0e],iCe=[9,S,Snt,0,()=>u0e,()=>l0e],aCe=[9,S,Ent,0,()=>d0e,()=>p0e],cCe=[9,S,xnt,0,()=>f0e,()=>m0e],uCe=[9,S,knt,0,()=>g0e,()=>h0e],lCe=[9,S,Qnt,0,()=>S0e,()=>y0e],dCe=[9,S,Krt,0,()=>E0e,()=>Se],pCe=[9,S,jnt,0,()=>_0e,()=>R0e],fCe=[9,S,Eot,0,()=>I0e,()=>w0e],mCe=[9,S,Dot,0,()=>P0e,()=>O0e],gCe=[9,S,Rot,0,()=>N0e,()=>F0e],hCe=[9,S,Cot,0,()=>M0e,()=>L0e],SCe=[9,S,bot,0,()=>$0e,()=>k0e],yCe=[9,S,$ot,0,()=>B0e,()=>U0e],ECe=[9,S,Bot,0,()=>G0e,()=>q0e],_Ce=[9,S,Got,0,()=>H0e,()=>j0e],RCe=[9,S,jot,0,()=>z0e,()=>V0e],CCe=[9,S,Wot,0,()=>W0e,()=>K0e],bCe=[9,S,Yot,0,()=>Q0e,()=>Y0e],ACe=[9,S,Zot,{[Tge]:["stream-"]},()=>J0e,()=>X0e],xCe=[9,S,nst,0,()=>Z0e,()=>eye],TCe=[9,S,ist,0,()=>tye,()=>rye],vCe=[9,S,ust,0,()=>nye,()=>oye],DCe=[9,S,pst,0,()=>aye,()=>cye],ICe=[9,S,fst,0,()=>sye,()=>iye],wCe=[9,S,yst,0,()=>uye,()=>lye],PCe=[9,S,Rst,0,()=>dye,()=>pye],OCe=[9,S,qst,0,()=>Eye,()=>_ye],$Ce=[9,S,Gst,0,()=>Rye,()=>Cye],kCe=[9,S,sit,0,()=>bye,()=>Aye],MCe=[9,S,cit,0,()=>xye,()=>Tye],LCe=[9,S,dit,0,()=>Iye,()=>wye],NCe=[9,S,pit,0,()=>vye,()=>Dye],FCe=[9,S,Ait,0,()=>Pye,()=>Oye],BCe=[9,S,Rit,0,()=>$ye,()=>kye],UCe=[9,S,yit,0,()=>Mye,()=>Lye],GCe=[9,S,Pit,0,()=>Nye,()=>Fye],qCe=[9,S,kit,0,()=>Bye,()=>Uye],HCe=[9,S,gat,0,()=>vEe,()=>DEe],jCe=[9,S,yat,0,()=>IEe,()=>Se],zCe=[9,S,Iat,0,()=>wEe,()=>PEe],VCe=[9,S,Cat,0,()=>kEe,()=>MEe],WCe=[9,S,bat,0,()=>OEe,()=>$Ee],KCe=[9,S,Mat,0,()=>LEe,()=>NEe],QCe=[9,S,Rat,0,()=>BEe,()=>UEe],YCe=[9,S,Dat,0,()=>FEe,()=>Se],JCe=[9,S,Bat,0,()=>GEe,()=>qEe],XCe=[9,S,Fat,0,()=>HEe,()=>jEe],ZCe=[9,S,Vat,0,()=>zEe,()=>VEe],ebe=[9,S,Qat,0,()=>WEe,()=>Se],tbe=[9,S,Jat,0,()=>KEe,()=>Se],rbe=[9,S,ect,0,()=>QEe,()=>YEe],nbe=[9,S,oct,0,()=>JEe,()=>XEe],obe=[9,S,cct,0,()=>ZEe,()=>Se],sbe=[9,S,fct,0,()=>e_e,()=>t_e],ibe=[9,S,dct,0,()=>r_e,()=>Se],abe=[9,S,uct,0,()=>n_e,()=>Se],cbe=[9,S,_ct,0,()=>o_e,()=>Se],ube=[9,S,rut,{[Tge]:["stream-"]},()=>x_e,()=>T_e],lbe=[9,S,aut,0,()=>v_e,()=>D_e],dbe=[9,S,Sut,0,()=>I_e,()=>w_e],pbe=[9,S,Nut,0,()=>N_e,()=>Se],fbe=[9,S,jut,0,()=>F_e,()=>Se],mbe=[9,S,Uut,0,()=>B_e,()=>U_e],gbe=[9,S,Wut,0,()=>G_e,()=>q_e],hbe=[9,S,slt,0,()=>K_e,()=>Se],Sbe=[9,S,llt,0,()=>Q_e,()=>Se],ybe=[9,S,Yut,0,()=>Y_e,()=>Se],Ebe=[9,S,elt,0,()=>J_e,()=>X_e],_be=[9,S,nlt,0,()=>Z_e,()=>Se],Rbe=[9,S,alt,0,()=>eRe,()=>tRe],Cbe=[9,S,plt,0,()=>rRe,()=>nRe],nht=t=>({apiVersion:"2014-03-28",base64Decoder:t?.base64Decoder??Aet,base64Encoder:t?.base64Encoder??bet,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??qet,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??Oet,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new yet}],logger:t?.logger??new NZe,protocol:t?.protocol??Det,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.cloudwatchlogs",errorTypeRegistries:Ihe,xmlNamespace:"http://monitoring.amazonaws.com/doc/2014-03-28/",version:"2014-03-28",serviceTarget:"Logs_20140328"},serviceId:t?.serviceId??"CloudWatch Logs",sha256:t?.sha256??Iet,urlParser:t?.urlParser??set,utf8Decoder:t?.utf8Decoder??Cet,utf8Encoder:t?.utf8Encoder??Ret}),oht=t=>{FZe(process.version);let e=zZe(t),r=()=>e().then(BZe),n=nht(t);RZe(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??bu(Eet,o),bodyLengthChecker:t?.bodyLengthChecker??xet,credentialDefaultProvider:t?.credentialDefaultProvider??_et,defaultUserAgentProvider:t?.defaultUserAgentProvider??CZe({serviceId:n.serviceId,clientVersion:Net.version}),eventStreamSerdeProvider:t?.eventStreamSerdeProvider??net,maxAttempts:t?.maxAttempts??bu(pet,t),region:t?.region??bu(KZe,{...QZe,...o}),requestHandler:vet.create(t?.requestHandler??r),retryMode:t?.retryMode??bu({...det,default:async()=>(await r()).retryMode||uet},t),streamCollector:t?.streamCollector??Tet,useDualstackEndpoint:t?.useDualstackEndpoint??bu(WZe,o),useFipsEndpoint:t?.useFipsEndpoint??bu(VZe,o),userAgentAppId:t?.userAgentAppId??bu(bZe,o)}},sht=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},iht=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),aht=(t,e)=>{let r=Object.assign(AZe(t),UZe(t),iet(t),sht(t));return e.forEach(n=>n.configure(r)),Object.assign(t,xZe(r),GZe(r),aet(r),iht(r))},_t=class extends Vme{config;constructor(...[e]){let r=oht(e||{});super(r),this.initConfig=r;let n=ket(r),o=TZe(n),s=fet(o),i=YZe(s),a=vZe(i),c=tet(a),u=oet(c),f=$et(u),m=aht(f,e?.extensions||[]);this.config=m,this.middlewareStack.use(get(this.config)),this.middlewareStack.use(DZe(this.config)),this.middlewareStack.use(met(this.config)),this.middlewareStack.use(cet(this.config)),this.middlewareStack.use(IZe(this.config)),this.middlewareStack.use(wZe(this.config)),this.middlewareStack.use(PZe(this.config)),this.middlewareStack.use(OZe(this.config,{httpAuthSchemeParametersProvider:wet,identityProviderConfigProvider:async y=>new $Ze({"aws.auth#sigv4":y.credentials})})),this.middlewareStack.use(kZe(this.config))}destroy(){super.destroy()}},P=qZe(Met,"Logs_20140328","CloudWatchLogsClient",ret),O={},$=(t,e,r,n)=>[],pT=class extends P(O,$,"AssociateKmsKey",fRe){},fT=class extends P(O,$,"AssociateSourceToS3TableIntegration",mRe){},mT=class extends P(O,$,"CancelExportTask",gRe){},gT=class extends P(O,$,"CancelImportTask",hRe){},hT=class extends P(O,$,"CreateDelivery",SRe){},ST=class extends P(O,$,"CreateExportTask",yRe){},yT=class extends P(O,$,"CreateImportTask",ERe){},ET=class extends P(O,$,"CreateLogAnomalyDetector",_Re){},_T=class extends P(O,$,"CreateLogGroup",RRe){},RT=class extends P(O,$,"CreateLogStream",CRe){},CT=class extends P(O,$,"CreateLookupTable",bRe){},bT=class extends P(O,$,"CreateScheduledQuery",ARe){},AT=class extends P(O,$,"DeleteAccountPolicy",xRe){},xT=class extends P(O,$,"DeleteDataProtectionPolicy",TRe){},TT=class extends P(O,$,"DeleteDelivery",vRe){},vT=class extends P(O,$,"DeleteDeliveryDestination",DRe){},DT=class extends P(O,$,"DeleteDeliveryDestinationPolicy",IRe){},IT=class extends P(O,$,"DeleteDeliverySource",wRe){},wT=class extends P(O,$,"DeleteDestination",PRe){},PT=class extends P(O,$,"DeleteIndexPolicy",ORe){},OT=class extends P(O,$,"DeleteIntegration",$Re){},$T=class extends P(O,$,"DeleteLogAnomalyDetector",kRe){},kT=class extends P(O,$,"DeleteLogGroup",MRe){},MT=class extends P(O,$,"DeleteLogStream",LRe){},LT=class extends P(O,$,"DeleteLookupTable",NRe){},NT=class extends P(O,$,"DeleteMetricFilter",FRe){},FT=class extends P(O,$,"DeleteQueryDefinition",BRe){},BT=class extends P(O,$,"DeleteResourcePolicy",URe){},UT=class extends P(O,$,"DeleteRetentionPolicy",GRe){},GT=class extends P(O,$,"DeleteScheduledQuery",qRe){},qT=class extends P(O,$,"DeleteSubscriptionFilter",HRe){},HT=class extends P(O,$,"DeleteSyslogConfiguration",jRe){},jT=class extends P(O,$,"DeleteTransformer",zRe){},zT=class extends P(O,$,"DescribeAccountPolicies",VRe){},Yg=class extends P(O,$,"DescribeConfigurationTemplates",WRe){},Jg=class extends P(O,$,"DescribeDeliveries",KRe){},Xg=class extends P(O,$,"DescribeDeliveryDestinations",QRe){},Zg=class extends P(O,$,"DescribeDeliverySources",YRe){},eh=class extends P(O,$,"DescribeDestinations",JRe){},VT=class extends P(O,$,"DescribeExportTasks",XRe){},WT=class extends P(O,$,"DescribeFieldIndexes",ZRe){},KT=class extends P(O,$,"DescribeImportTaskBatches",eCe){},QT=class extends P(O,$,"DescribeImportTasks",tCe){},YT=class extends P(O,$,"DescribeIndexPolicies",rCe){},th=class extends P(O,$,"DescribeLogGroups",nCe){},rh=class extends P(O,$,"DescribeLogStreams",oCe){},JT=class extends P(O,$,"DescribeLookupTables",sCe){},nh=class extends P(O,$,"DescribeMetricFilters",iCe){},XT=class extends P(O,$,"DescribeQueries",aCe){},ZT=class extends P(O,$,"DescribeQueryDefinitions",cCe){},ev=class extends P(O,$,"DescribeResourcePolicies",uCe){},oh=class extends P(O,$,"DescribeSubscriptionFilters",lCe){},tv=class extends P(O,$,"DisassociateKmsKey",dCe){},rv=class extends P(O,$,"DisassociateSourceFromS3TableIntegration",pCe){},sh=class extends P(O,$,"FilterLogEvents",fCe){},nv=class extends P(O,$,"GetDataProtectionPolicy",mCe){},ov=class extends P(O,$,"GetDelivery",gCe){},sv=class extends P(O,$,"GetDeliveryDestination",hCe){},iv=class extends P(O,$,"GetDeliveryDestinationPolicy",SCe){},av=class extends P(O,$,"GetDeliverySource",yCe){},cv=class extends P(O,$,"GetIntegration",ECe){},uv=class extends P(O,$,"GetLogAnomalyDetector",_Ce){},ih=class extends P(O,$,"GetLogEvents",RCe){},lv=class extends P(O,$,"GetLogFields",CCe){},dv=class extends P(O,$,"GetLogGroupFields",bCe){},pv=class extends P(O,$,"GetLogObject",ACe){},fv=class extends P(O,$,"GetLogRecord",xCe){},mv=class extends P(O,$,"GetLookupTable",TCe){},gv=class extends P(O,$,"GetQueryResults",vCe){},hv=class extends P(O,$,"GetScheduledQuery",DCe){},ah=class extends P(O,$,"GetScheduledQueryHistory",ICe){},Sv=class extends P(O,$,"GetStorageTierPolicy",wCe){},yv=class extends P(O,$,"GetTransformer",PCe){},ch=class extends P(O,$,"ListAggregateLogGroupSummaries",OCe){},uh=class extends P(O,$,"ListAnomalies",$Ce){},Ev=class extends P(O,$,"ListIntegrations",kCe){},lh=class extends P(O,$,"ListLogAnomalyDetectors",MCe){},_v=class extends P(O,$,"ListLogGroups",LCe){},dh=class extends P(O,$,"ListLogGroupsForQuery",NCe){},ph=class extends P(O,$,"ListScheduledQueries",FCe){},fh=class extends P(O,$,"ListSourcesForS3TableIntegration",BCe){},Rv=class extends P(O,$,"ListSyslogConfigurations",UCe){},Cv=class extends P(O,$,"ListTagsForResource",GCe){},bv=class extends P(O,$,"ListTagsLogGroup",qCe){},Av=class extends P(O,$,"PutAccountPolicy",HCe){},xv=class extends P(O,$,"PutBearerTokenAuthentication",jCe){},Tv=class extends P(O,$,"PutDataProtectionPolicy",zCe){},vv=class extends P(O,$,"PutDeliveryDestination",VCe){},Dv=class extends P(O,$,"PutDeliveryDestinationPolicy",WCe){},Iv=class extends P(O,$,"PutDeliverySource",KCe){},wv=class extends P(O,$,"PutDestination",QCe){},Pv=class extends P(O,$,"PutDestinationPolicy",YCe){},Ov=class extends P(O,$,"PutIndexPolicy",JCe){},$v=class extends P(O,$,"PutIntegration",XCe){},kv=class extends P(O,$,"PutLogEvents",ZCe){},Mv=class extends P(O,$,"PutLogGroupDeletionProtection",ebe){},Lv=class extends P(O,$,"PutMetricFilter",tbe){},Nv=class extends P(O,$,"PutQueryDefinition",rbe){},Fv=class extends P(O,$,"PutResourcePolicy",nbe){},Bv=class extends P(O,$,"PutRetentionPolicy",obe){},Uv=class extends P(O,$,"PutStorageTierPolicy",sbe){},Gv=class extends P(O,$,"PutSubscriptionFilter",ibe){},qv=class extends P(O,$,"PutSyslogConfiguration",abe){},Hv=class extends P(O,$,"PutTransformer",cbe){},jv=class extends P(O,$,"StartLiveTail",ube){},zv=class extends P(O,$,"StartQuery",lbe){},Vv=class extends P(O,$,"StopQuery",dbe){},Wv=class extends P(O,$,"TagLogGroup",pbe){},Kv=class extends P(O,$,"TagResource",fbe){},Qv=class extends P(O,$,"TestMetricFilter",mbe){},Yv=class extends P(O,$,"TestTransformer",gbe){},Jv=class extends P(O,$,"UntagLogGroup",hbe){},Xv=class extends P(O,$,"UntagResource",Sbe){},Zv=class extends P(O,$,"UpdateAnomaly",ybe){},eD=class extends P(O,$,"UpdateDeliveryConfiguration",Ebe){},tD=class extends P(O,$,"UpdateLogAnomalyDetector",_be){},rD=class extends P(O,$,"UpdateLookupTable",Rbe){},nD=class extends P(O,$,"UpdateScheduledQuery",Cbe){},bbe=Rr(_t,Yg,"nextToken","nextToken","limit"),Abe=Rr(_t,Jg,"nextToken","nextToken","limit"),xbe=Rr(_t,Xg,"nextToken","nextToken","limit"),Tbe=Rr(_t,Zg,"nextToken","nextToken","limit"),vbe=Rr(_t,eh,"nextToken","nextToken","limit"),Dbe=Rr(_t,th,"nextToken","nextToken","limit"),Ibe=Rr(_t,rh,"nextToken","nextToken","limit"),wbe=Rr(_t,nh,"nextToken","nextToken","limit"),Pbe=Rr(_t,oh,"nextToken","nextToken","limit"),Obe=Rr(_t,sh,"nextToken","nextToken","limit"),$be=Rr(_t,ih,"nextToken","nextForwardToken","limit"),kbe=Rr(_t,ah,"nextToken","nextToken","maxResults"),Mbe=Rr(_t,ch,"nextToken","nextToken","limit"),Lbe=Rr(_t,uh,"nextToken","nextToken","limit"),Nbe=Rr(_t,lh,"nextToken","nextToken","limit"),Fbe=Rr(_t,dh,"nextToken","nextToken","maxResults"),Bbe=Rr(_t,ph,"nextToken","nextToken","maxResults"),Ube=Rr(_t,fh,"nextToken","nextToken","maxResults"),cht={AssociateKmsKeyCommand:pT,AssociateSourceToS3TableIntegrationCommand:fT,CancelExportTaskCommand:mT,CancelImportTaskCommand:gT,CreateDeliveryCommand:hT,CreateExportTaskCommand:ST,CreateImportTaskCommand:yT,CreateLogAnomalyDetectorCommand:ET,CreateLogGroupCommand:_T,CreateLogStreamCommand:RT,CreateLookupTableCommand:CT,CreateScheduledQueryCommand:bT,DeleteAccountPolicyCommand:AT,DeleteDataProtectionPolicyCommand:xT,DeleteDeliveryCommand:TT,DeleteDeliveryDestinationCommand:vT,DeleteDeliveryDestinationPolicyCommand:DT,DeleteDeliverySourceCommand:IT,DeleteDestinationCommand:wT,DeleteIndexPolicyCommand:PT,DeleteIntegrationCommand:OT,DeleteLogAnomalyDetectorCommand:$T,DeleteLogGroupCommand:kT,DeleteLogStreamCommand:MT,DeleteLookupTableCommand:LT,DeleteMetricFilterCommand:NT,DeleteQueryDefinitionCommand:FT,DeleteResourcePolicyCommand:BT,DeleteRetentionPolicyCommand:UT,DeleteScheduledQueryCommand:GT,DeleteSubscriptionFilterCommand:qT,DeleteSyslogConfigurationCommand:HT,DeleteTransformerCommand:jT,DescribeAccountPoliciesCommand:zT,DescribeConfigurationTemplatesCommand:Yg,DescribeDeliveriesCommand:Jg,DescribeDeliveryDestinationsCommand:Xg,DescribeDeliverySourcesCommand:Zg,DescribeDestinationsCommand:eh,DescribeExportTasksCommand:VT,DescribeFieldIndexesCommand:WT,DescribeImportTaskBatchesCommand:KT,DescribeImportTasksCommand:QT,DescribeIndexPoliciesCommand:YT,DescribeLogGroupsCommand:th,DescribeLogStreamsCommand:rh,DescribeLookupTablesCommand:JT,DescribeMetricFiltersCommand:nh,DescribeQueriesCommand:XT,DescribeQueryDefinitionsCommand:ZT,DescribeResourcePoliciesCommand:ev,DescribeSubscriptionFiltersCommand:oh,DisassociateKmsKeyCommand:tv,DisassociateSourceFromS3TableIntegrationCommand:rv,FilterLogEventsCommand:sh,GetDataProtectionPolicyCommand:nv,GetDeliveryCommand:ov,GetDeliveryDestinationCommand:sv,GetDeliveryDestinationPolicyCommand:iv,GetDeliverySourceCommand:av,GetIntegrationCommand:cv,GetLogAnomalyDetectorCommand:uv,GetLogEventsCommand:ih,GetLogFieldsCommand:lv,GetLogGroupFieldsCommand:dv,GetLogObjectCommand:pv,GetLogRecordCommand:fv,GetLookupTableCommand:mv,GetQueryResultsCommand:gv,GetScheduledQueryCommand:hv,GetScheduledQueryHistoryCommand:ah,GetStorageTierPolicyCommand:Sv,GetTransformerCommand:yv,ListAggregateLogGroupSummariesCommand:ch,ListAnomaliesCommand:uh,ListIntegrationsCommand:Ev,ListLogAnomalyDetectorsCommand:lh,ListLogGroupsCommand:_v,ListLogGroupsForQueryCommand:dh,ListScheduledQueriesCommand:ph,ListSourcesForS3TableIntegrationCommand:fh,ListSyslogConfigurationsCommand:Rv,ListTagsForResourceCommand:Cv,ListTagsLogGroupCommand:bv,PutAccountPolicyCommand:Av,PutBearerTokenAuthenticationCommand:xv,PutDataProtectionPolicyCommand:Tv,PutDeliveryDestinationCommand:vv,PutDeliveryDestinationPolicyCommand:Dv,PutDeliverySourceCommand:Iv,PutDestinationCommand:wv,PutDestinationPolicyCommand:Pv,PutIndexPolicyCommand:Ov,PutIntegrationCommand:$v,PutLogEventsCommand:kv,PutLogGroupDeletionProtectionCommand:Mv,PutMetricFilterCommand:Lv,PutQueryDefinitionCommand:Nv,PutResourcePolicyCommand:Fv,PutRetentionPolicyCommand:Bv,PutStorageTierPolicyCommand:Uv,PutSubscriptionFilterCommand:Gv,PutSyslogConfigurationCommand:qv,PutTransformerCommand:Hv,StartLiveTailCommand:jv,StartQueryCommand:zv,StopQueryCommand:Vv,TagLogGroupCommand:Wv,TagResourceCommand:Kv,TestMetricFilterCommand:Qv,TestTransformerCommand:Yv,UntagLogGroupCommand:Jv,UntagResourceCommand:Xv,UpdateAnomalyCommand:Zv,UpdateDeliveryConfigurationCommand:eD,UpdateLogAnomalyDetectorCommand:tD,UpdateLookupTableCommand:rD,UpdateScheduledQueryCommand:nD},uht={paginateDescribeConfigurationTemplates:bbe,paginateDescribeDeliveries:Abe,paginateDescribeDeliveryDestinations:xbe,paginateDescribeDeliverySources:Tbe,paginateDescribeDestinations:vbe,paginateDescribeLogGroups:Dbe,paginateDescribeLogStreams:Ibe,paginateDescribeMetricFilters:wbe,paginateDescribeSubscriptionFilters:Pbe,paginateFilterLogEvents:Obe,paginateGetLogEvents:$be,paginateGetScheduledQueryHistory:kbe,paginateListAggregateLogGroupSummaries:Mbe,paginateListAnomalies:Lbe,paginateListLogAnomalyDetectors:Nbe,paginateListLogGroupsForQuery:Fbe,paginateListScheduledQueries:Bbe,paginateListSourcesForS3TableIntegration:Ube},oD=class extends _t{};HZe(cht,oD,{paginators:uht});var lht={DATA_PROTECTION_POLICY:"DATA_PROTECTION_POLICY",FIELD_INDEX_POLICY:"FIELD_INDEX_POLICY",METRIC_EXTRACTION_POLICY:"METRIC_EXTRACTION_POLICY",SUBSCRIPTION_FILTER_POLICY:"SUBSCRIPTION_FILTER_POLICY",TRANSFORMER_POLICY:"TRANSFORMER_POLICY"},dht={ALL:"ALL"},pht={CLIENT_ERROR:"CLIENT_ERROR",COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},fht={Active:"Active",Baseline:"Baseline",Suppressed:"Suppressed"},mht={ANALYZING:"ANALYZING",DELETED:"DELETED",FAILED:"FAILED",INITIALIZING:"INITIALIZING",PAUSED:"PAUSED",TRAINING:"TRAINING"},ght={FIFTEEN_MIN:"FIFTEEN_MIN",FIVE_MIN:"FIVE_MIN",ONE_HOUR:"ONE_HOUR",ONE_MIN:"ONE_MIN",TEN_MIN:"TEN_MIN",THIRTY_MIN:"THIRTY_MIN"},hht={CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},Sht={JSON:"json",PARQUET:"parquet",PLAIN:"plain",RAW:"raw",W3C:"w3c"},yht={CWL:"CWL",FH:"FH",S3:"S3",XRAY:"XRAY"},Eht={BOOLEAN:"boolean",DOUBLE:"double",INT:"int",LONG:"long",STRING:"string"},_ht={DELIVERY:"DELIVERY",INFREQUENT_ACCESS:"INFREQUENT_ACCESS",STANDARD:"STANDARD"},Rht={CWLI:"CWLI",PPL:"PPL",SQL:"SQL"},Cht={DISABLED:"DISABLED",ENABLED:"ENABLED"},bht={ACTIVATED:"ACTIVATED",ARCHIVED:"ARCHIVED",DELETED:"DELETED",DISABLED:"DISABLED"},Aht={ACTIVE:"ACTIVE",INACTIVE:"INACTIVE"},xht={RESOURCE_DELETED:"RESOURCE_DELETED"},Tht={CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",FAILED:"FAILED",PENDING:"PENDING",PENDING_CANCEL:"PENDING_CANCEL",RUNNING:"RUNNING"},vht={AUTO:"AUTO",CUSTOM:"CUSTOM",DEFAULT:"DEFAULT",INACTIVE:"INACTIVE"},Dht={FACET:"FACET",FIELD_INDEX:"FIELD_INDEX"},Iht={ACCOUNT:"ACCOUNT",LOG_GROUP:"LOG_GROUP"},wht={ACCOUNT_DATA_PROTECTION:"ACCOUNT_DATA_PROTECTION"},Pht={LastEventTime:"LastEventTime",LogStreamName:"LogStreamName"},Oht={Bits:"Bits",BitsSecond:"Bits/Second",Bytes:"Bytes",BytesSecond:"Bytes/Second",Count:"Count",CountSecond:"Count/Second",Gigabits:"Gigabits",GigabitsSecond:"Gigabits/Second",Gigabytes:"Gigabytes",GigabytesSecond:"Gigabytes/Second",Kilobits:"Kilobits",KilobitsSecond:"Kilobits/Second",Kilobytes:"Kilobytes",KilobytesSecond:"Kilobytes/Second",Megabits:"Megabits",MegabitsSecond:"Megabits/Second",Megabytes:"Megabytes",MegabytesSecond:"Megabytes/Second",Microseconds:"Microseconds",Milliseconds:"Milliseconds",None:"None",Percent:"Percent",Seconds:"Seconds",Terabits:"Terabits",TerabitsSecond:"Terabits/Second",Terabytes:"Terabytes",TerabytesSecond:"Terabytes/Second"},$ht={Cancelled:"Cancelled",Complete:"Complete",Failed:"Failed",Running:"Running",Scheduled:"Scheduled",Timeout:"Timeout",Unknown:"Unknown"},kht={ACCOUNT:"ACCOUNT",RESOURCE:"RESOURCE"},Mht={ByLogStream:"ByLogStream",Random:"Random"},Lht={ENTITY_SIZE_TOO_LARGE:"EntitySizeTooLarge",INVALID_ATTRIBUTES:"InvalidAttributes",INVALID_ENTITY:"InvalidEntity",INVALID_KEY_ATTRIBUTE:"InvalidKeyAttributes",INVALID_TYPE_VALUE:"InvalidTypeValue",MISSING_REQUIRED_FIELDS:"MissingRequiredFields",UNSUPPORTED_LOG_GROUP_TYPE:"UnsupportedLogGroupType"},Nht={AWSWAF:"AWSWAF",CLOUD_TRAIL:"CloudTrail",EKS_AUDIT:"EKSAudit",ROUTE53_RESOLVER:"Route53Resolver",VPC_FLOW:"VPCFlow"},Fht={Complete:"Complete",Failed:"Failed",InvalidQuery:"InvalidQuery",Running:"Running",Timeout:"Timeout"},Bht={FIRST:"first",LAST:"last"},Uht={ACTIVE:"ACTIVE",ERROR:"ERROR",NOT_FOUND:"NOT_FOUND"},Ght={ACTIVE:"ACTIVE",FAILED:"FAILED",PROVISIONING:"PROVISIONING"},qht={OPENSEARCH:"OPENSEARCH"},Hht={AWS_MANAGED:"AWS_MANAGED",CUSTOMER_MANAGED:"CUSTOMER_MANAGED"},jht={LOOKUP_TABLE:"LOOKUP_TABLE",S3:"S3"},zht={INTELLIGENT_TIERING:"INTELLIGENT_TIERING",STANDARD:"STANDARD"},Vht={V1_1:"V1.1",V1_5:"V1.5"},Wht={BOOLEAN:"boolean",DOUBLE:"double",INTEGER:"integer",STRING:"string"},Kht={DATA_SOURCE_NAME_AND_TYPE:"DATA_SOURCE_NAME_AND_TYPE",DATA_SOURCE_NAME_TYPE_AND_FORMAT:"DATA_SOURCE_NAME_TYPE_AND_FORMAT"},Qht={SUPPRESSED:"SUPPRESSED",UNSUPPRESSED:"UNSUPPRESSED"},Yht={ACTIVE:"ACTIVE",DATA_SOURCE_DELETE_IN_PROGRESS:"DATA_SOURCE_DELETE_IN_PROGRESS",FAILED:"FAILED",UNHEALTHY:"UNHEALTHY"},Jht={VPCE:"VPCE"},Xht={HOURS:"HOURS",MINUTES:"MINUTES",SECONDS:"SECONDS"},Zht={INFINITE:"INFINITE",LIMITED:"LIMITED"};p.AccessDeniedException=zx;p.AccessDeniedException$=dhe;p.AccountPolicy$=T3;p.ActionStatus=pht;p.AddKeyEntry$=whe;p.AddKeys$=Phe;p.AggregateLogGroupSummary$=Ohe;p.Anomaly$=$he;p.AnomalyDetector$=khe;p.AnomalyDetectorStatus=mht;p.AssociateKmsKey$=fRe;p.AssociateKmsKeyCommand=pT;p.AssociateKmsKeyRequest$=Mhe;p.AssociateSourceToS3TableIntegration$=mRe;p.AssociateSourceToS3TableIntegrationCommand=fT;p.AssociateSourceToS3TableIntegrationRequest$=Lhe;p.AssociateSourceToS3TableIntegrationResponse$=Nhe;p.CSV$=sSe;p.CancelExportTask$=gRe;p.CancelExportTaskCommand=mT;p.CancelExportTaskRequest$=Fhe;p.CancelImportTask$=hRe;p.CancelImportTaskCommand=gT;p.CancelImportTaskRequest$=Bhe;p.CancelImportTaskResponse$=Uhe;p.CloudWatchLogs=oD;p.CloudWatchLogsClient=_t;p.CloudWatchLogsServiceException=nt;p.CloudWatchLogsServiceException$=lhe;p.ConfigurationTemplate$=Ghe;p.ConfigurationTemplateDeliveryConfigValues$=qhe;p.ConflictException=eT;p.ConflictException$=phe;p.CopyValue$=Hhe;p.CopyValueEntry$=jhe;p.CreateDelivery$=SRe;p.CreateDeliveryCommand=hT;p.CreateDeliveryRequest$=zhe;p.CreateDeliveryResponse$=Vhe;p.CreateExportTask$=yRe;p.CreateExportTaskCommand=ST;p.CreateExportTaskRequest$=Whe;p.CreateExportTaskResponse$=Khe;p.CreateImportTask$=ERe;p.CreateImportTaskCommand=yT;p.CreateImportTaskRequest$=Qhe;p.CreateImportTaskResponse$=Yhe;p.CreateLogAnomalyDetector$=_Re;p.CreateLogAnomalyDetectorCommand=ET;p.CreateLogAnomalyDetectorRequest$=Jhe;p.CreateLogAnomalyDetectorResponse$=Xhe;p.CreateLogGroup$=RRe;p.CreateLogGroupCommand=_T;p.CreateLogGroupRequest$=Zhe;p.CreateLogStream$=CRe;p.CreateLogStreamCommand=RT;p.CreateLogStreamRequest$=eSe;p.CreateLookupTable$=bRe;p.CreateLookupTableCommand=CT;p.CreateLookupTableRequest$=tSe;p.CreateLookupTableResponse$=rSe;p.CreateScheduledQuery$=ARe;p.CreateScheduledQueryCommand=bT;p.CreateScheduledQueryRequest$=nSe;p.CreateScheduledQueryResponse$=oSe;p.DataAlreadyAcceptedException=oT;p.DataAlreadyAcceptedException$=fhe;p.DataProtectionStatus=bht;p.DataSource$=v3;p.DataSourceFilter$=iSe;p.DateTimeConverter$=aSe;p.DeleteAccountPolicy$=xRe;p.DeleteAccountPolicyCommand=AT;p.DeleteAccountPolicyRequest$=cSe;p.DeleteDataProtectionPolicy$=TRe;p.DeleteDataProtectionPolicyCommand=xT;p.DeleteDataProtectionPolicyRequest$=uSe;p.DeleteDelivery$=vRe;p.DeleteDeliveryCommand=TT;p.DeleteDeliveryDestination$=DRe;p.DeleteDeliveryDestinationCommand=vT;p.DeleteDeliveryDestinationPolicy$=IRe;p.DeleteDeliveryDestinationPolicyCommand=DT;p.DeleteDeliveryDestinationPolicyRequest$=lSe;p.DeleteDeliveryDestinationRequest$=dSe;p.DeleteDeliveryRequest$=pSe;p.DeleteDeliverySource$=wRe;p.DeleteDeliverySourceCommand=IT;p.DeleteDeliverySourceRequest$=fSe;p.DeleteDestination$=PRe;p.DeleteDestinationCommand=wT;p.DeleteDestinationRequest$=mSe;p.DeleteIndexPolicy$=ORe;p.DeleteIndexPolicyCommand=PT;p.DeleteIndexPolicyRequest$=gSe;p.DeleteIndexPolicyResponse$=hSe;p.DeleteIntegration$=$Re;p.DeleteIntegrationCommand=OT;p.DeleteIntegrationRequest$=SSe;p.DeleteIntegrationResponse$=ySe;p.DeleteKeys$=ESe;p.DeleteLogAnomalyDetector$=kRe;p.DeleteLogAnomalyDetectorCommand=$T;p.DeleteLogAnomalyDetectorRequest$=_Se;p.DeleteLogGroup$=MRe;p.DeleteLogGroupCommand=kT;p.DeleteLogGroupRequest$=RSe;p.DeleteLogStream$=LRe;p.DeleteLogStreamCommand=MT;p.DeleteLogStreamRequest$=CSe;p.DeleteLookupTable$=NRe;p.DeleteLookupTableCommand=LT;p.DeleteLookupTableRequest$=bSe;p.DeleteMetricFilter$=FRe;p.DeleteMetricFilterCommand=NT;p.DeleteMetricFilterRequest$=ASe;p.DeleteQueryDefinition$=BRe;p.DeleteQueryDefinitionCommand=FT;p.DeleteQueryDefinitionRequest$=xSe;p.DeleteQueryDefinitionResponse$=TSe;p.DeleteResourcePolicy$=URe;p.DeleteResourcePolicyCommand=BT;p.DeleteResourcePolicyRequest$=vSe;p.DeleteRetentionPolicy$=GRe;p.DeleteRetentionPolicyCommand=UT;p.DeleteRetentionPolicyRequest$=DSe;p.DeleteScheduledQuery$=qRe;p.DeleteScheduledQueryCommand=GT;p.DeleteScheduledQueryRequest$=ISe;p.DeleteScheduledQueryResponse$=wSe;p.DeleteSubscriptionFilter$=HRe;p.DeleteSubscriptionFilterCommand=qT;p.DeleteSubscriptionFilterRequest$=PSe;p.DeleteSyslogConfiguration$=jRe;p.DeleteSyslogConfigurationCommand=HT;p.DeleteSyslogConfigurationRequest$=OSe;p.DeleteTransformer$=zRe;p.DeleteTransformerCommand=jT;p.DeleteTransformerRequest$=$Se;p.Delivery$=LD;p.DeliveryDestination$=ND;p.DeliveryDestinationConfiguration$=D3;p.DeliveryDestinationType=yht;p.DeliverySource$=FD;p.DeliverySourceConfigurationSchema$=kSe;p.DeliverySourceConfigurationSchemaValueType=Eht;p.DeliverySourceStatus=Aht;p.DeliverySourceStatusReason=xht;p.DescribeAccountPolicies$=VRe;p.DescribeAccountPoliciesCommand=zT;p.DescribeAccountPoliciesRequest$=MSe;p.DescribeAccountPoliciesResponse$=LSe;p.DescribeConfigurationTemplates$=WRe;p.DescribeConfigurationTemplatesCommand=Yg;p.DescribeConfigurationTemplatesRequest$=NSe;p.DescribeConfigurationTemplatesResponse$=FSe;p.DescribeDeliveries$=KRe;p.DescribeDeliveriesCommand=Jg;p.DescribeDeliveriesRequest$=BSe;p.DescribeDeliveriesResponse$=USe;p.DescribeDeliveryDestinations$=QRe;p.DescribeDeliveryDestinationsCommand=Xg;p.DescribeDeliveryDestinationsRequest$=GSe;p.DescribeDeliveryDestinationsResponse$=qSe;p.DescribeDeliverySources$=YRe;p.DescribeDeliverySourcesCommand=Zg;p.DescribeDeliverySourcesRequest$=HSe;p.DescribeDeliverySourcesResponse$=jSe;p.DescribeDestinations$=JRe;p.DescribeDestinationsCommand=eh;p.DescribeDestinationsRequest$=zSe;p.DescribeDestinationsResponse$=VSe;p.DescribeExportTasks$=XRe;p.DescribeExportTasksCommand=VT;p.DescribeExportTasksRequest$=WSe;p.DescribeExportTasksResponse$=KSe;p.DescribeFieldIndexes$=ZRe;p.DescribeFieldIndexesCommand=WT;p.DescribeFieldIndexesRequest$=QSe;p.DescribeFieldIndexesResponse$=YSe;p.DescribeImportTaskBatches$=eCe;p.DescribeImportTaskBatchesCommand=KT;p.DescribeImportTaskBatchesRequest$=JSe;p.DescribeImportTaskBatchesResponse$=XSe;p.DescribeImportTasks$=tCe;p.DescribeImportTasksCommand=QT;p.DescribeImportTasksRequest$=ZSe;p.DescribeImportTasksResponse$=e0e;p.DescribeIndexPolicies$=rCe;p.DescribeIndexPoliciesCommand=YT;p.DescribeIndexPoliciesRequest$=t0e;p.DescribeIndexPoliciesResponse$=r0e;p.DescribeLogGroups$=nCe;p.DescribeLogGroupsCommand=th;p.DescribeLogGroupsRequest$=n0e;p.DescribeLogGroupsResponse$=o0e;p.DescribeLogStreams$=oCe;p.DescribeLogStreamsCommand=rh;p.DescribeLogStreamsRequest$=s0e;p.DescribeLogStreamsResponse$=i0e;p.DescribeLookupTables$=sCe;p.DescribeLookupTablesCommand=JT;p.DescribeLookupTablesRequest$=a0e;p.DescribeLookupTablesResponse$=c0e;p.DescribeMetricFilters$=iCe;p.DescribeMetricFiltersCommand=nh;p.DescribeMetricFiltersRequest$=u0e;p.DescribeMetricFiltersResponse$=l0e;p.DescribeQueries$=aCe;p.DescribeQueriesCommand=XT;p.DescribeQueriesRequest$=d0e;p.DescribeQueriesResponse$=p0e;p.DescribeQueryDefinitions$=cCe;p.DescribeQueryDefinitionsCommand=ZT;p.DescribeQueryDefinitionsRequest$=f0e;p.DescribeQueryDefinitionsResponse$=m0e;p.DescribeResourcePolicies$=uCe;p.DescribeResourcePoliciesCommand=ev;p.DescribeResourcePoliciesRequest$=g0e;p.DescribeResourcePoliciesResponse$=h0e;p.DescribeSubscriptionFilters$=lCe;p.DescribeSubscriptionFiltersCommand=oh;p.DescribeSubscriptionFiltersRequest$=S0e;p.DescribeSubscriptionFiltersResponse$=y0e;p.Destination$=I3;p.DestinationConfiguration$=fp;p.DisassociateKmsKey$=dCe;p.DisassociateKmsKeyCommand=tv;p.DisassociateKmsKeyRequest$=E0e;p.DisassociateSourceFromS3TableIntegration$=pCe;p.DisassociateSourceFromS3TableIntegrationCommand=rv;p.DisassociateSourceFromS3TableIntegrationRequest$=_0e;p.DisassociateSourceFromS3TableIntegrationResponse$=R0e;p.Distribution=Mht;p.Entity$=C0e;p.EntityRejectionErrorType=Lht;p.EvaluationFrequency=ght;p.EventSource=Nht;p.ExecutionStatus=Fht;p.ExportTask$=b0e;p.ExportTaskExecutionInfo$=A0e;p.ExportTaskStatus$=x0e;p.ExportTaskStatusCode=Tht;p.FieldIndex$=T0e;p.FieldsData$=v0e;p.FilterLogEvents$=fCe;p.FilterLogEventsCommand=sh;p.FilterLogEventsRequest$=I0e;p.FilterLogEventsResponse$=w0e;p.FilteredLogEvent$=D0e;p.FlattenedElement=Bht;p.GetDataProtectionPolicy$=mCe;p.GetDataProtectionPolicyCommand=nv;p.GetDataProtectionPolicyRequest$=P0e;p.GetDataProtectionPolicyResponse$=O0e;p.GetDelivery$=gCe;p.GetDeliveryCommand=ov;p.GetDeliveryDestination$=hCe;p.GetDeliveryDestinationCommand=sv;p.GetDeliveryDestinationPolicy$=SCe;p.GetDeliveryDestinationPolicyCommand=iv;p.GetDeliveryDestinationPolicyRequest$=$0e;p.GetDeliveryDestinationPolicyResponse$=k0e;p.GetDeliveryDestinationRequest$=M0e;p.GetDeliveryDestinationResponse$=L0e;p.GetDeliveryRequest$=N0e;p.GetDeliveryResponse$=F0e;p.GetDeliverySource$=yCe;p.GetDeliverySourceCommand=av;p.GetDeliverySourceRequest$=B0e;p.GetDeliverySourceResponse$=U0e;p.GetIntegration$=ECe;p.GetIntegrationCommand=cv;p.GetIntegrationRequest$=G0e;p.GetIntegrationResponse$=q0e;p.GetLogAnomalyDetector$=_Ce;p.GetLogAnomalyDetectorCommand=uv;p.GetLogAnomalyDetectorRequest$=H0e;p.GetLogAnomalyDetectorResponse$=j0e;p.GetLogEvents$=RCe;p.GetLogEventsCommand=ih;p.GetLogEventsRequest$=z0e;p.GetLogEventsResponse$=V0e;p.GetLogFields$=CCe;p.GetLogFieldsCommand=lv;p.GetLogFieldsRequest$=W0e;p.GetLogFieldsResponse$=K0e;p.GetLogGroupFields$=bCe;p.GetLogGroupFieldsCommand=dv;p.GetLogGroupFieldsRequest$=Q0e;p.GetLogGroupFieldsResponse$=Y0e;p.GetLogObject$=ACe;p.GetLogObjectCommand=pv;p.GetLogObjectRequest$=J0e;p.GetLogObjectResponse$=X0e;p.GetLogObjectResponseStream$=uRe;p.GetLogRecord$=xCe;p.GetLogRecordCommand=fv;p.GetLogRecordRequest$=Z0e;p.GetLogRecordResponse$=eye;p.GetLookupTable$=TCe;p.GetLookupTableCommand=mv;p.GetLookupTableRequest$=tye;p.GetLookupTableResponse$=rye;p.GetQueryResults$=vCe;p.GetQueryResultsCommand=gv;p.GetQueryResultsRequest$=nye;p.GetQueryResultsResponse$=oye;p.GetScheduledQuery$=DCe;p.GetScheduledQueryCommand=hv;p.GetScheduledQueryHistory$=ICe;p.GetScheduledQueryHistoryCommand=ah;p.GetScheduledQueryHistoryRequest$=sye;p.GetScheduledQueryHistoryResponse$=iye;p.GetScheduledQueryRequest$=aye;p.GetScheduledQueryResponse$=cye;p.GetStorageTierPolicy$=wCe;p.GetStorageTierPolicyCommand=Sv;p.GetStorageTierPolicyRequest$=uye;p.GetStorageTierPolicyResponse$=lye;p.GetTransformer$=PCe;p.GetTransformerCommand=yv;p.GetTransformerRequest$=dye;p.GetTransformerResponse$=pye;p.Grok$=fye;p.GroupingIdentifier$=mye;p.Import$=gye;p.ImportBatch$=hye;p.ImportFilter$=w3;p.ImportStatistics$=P3;p.ImportStatus=hht;p.IndexCategory=vht;p.IndexPolicy$=O3;p.IndexSource=Iht;p.IndexType=Dht;p.InheritedProperty=wht;p.InputLogEvent$=Sye;p.IntegrationDetails$=lRe;p.IntegrationStatus=Ght;p.IntegrationSummary$=yye;p.IntegrationType=qht;p.InternalServerException=Yx;p.InternalServerException$=mhe;p.InternalStreamingException=sT;p.InternalStreamingException$=b3;p.InvalidOperationException=Zx;p.InvalidOperationException$=ghe;p.InvalidParameterException=Vx;p.InvalidParameterException$=hhe;p.InvalidSequenceTokenException=iT;p.InvalidSequenceTokenException$=She;p.LimitExceededException=rT;p.LimitExceededException$=yhe;p.ListAggregateLogGroupSummaries$=OCe;p.ListAggregateLogGroupSummariesCommand=ch;p.ListAggregateLogGroupSummariesGroupBy=Kht;p.ListAggregateLogGroupSummariesRequest$=Eye;p.ListAggregateLogGroupSummariesResponse$=_ye;p.ListAnomalies$=$Ce;p.ListAnomaliesCommand=uh;p.ListAnomaliesRequest$=Rye;p.ListAnomaliesResponse$=Cye;p.ListIntegrations$=kCe;p.ListIntegrationsCommand=Ev;p.ListIntegrationsRequest$=bye;p.ListIntegrationsResponse$=Aye;p.ListLogAnomalyDetectors$=MCe;p.ListLogAnomalyDetectorsCommand=lh;p.ListLogAnomalyDetectorsRequest$=xye;p.ListLogAnomalyDetectorsResponse$=Tye;p.ListLogGroups$=LCe;p.ListLogGroupsCommand=_v;p.ListLogGroupsForQuery$=NCe;p.ListLogGroupsForQueryCommand=dh;p.ListLogGroupsForQueryRequest$=vye;p.ListLogGroupsForQueryResponse$=Dye;p.ListLogGroupsRequest$=Iye;p.ListLogGroupsResponse$=wye;p.ListScheduledQueries$=FCe;p.ListScheduledQueriesCommand=ph;p.ListScheduledQueriesRequest$=Pye;p.ListScheduledQueriesResponse$=Oye;p.ListSourcesForS3TableIntegration$=BCe;p.ListSourcesForS3TableIntegrationCommand=fh;p.ListSourcesForS3TableIntegrationRequest$=$ye;p.ListSourcesForS3TableIntegrationResponse$=kye;p.ListSyslogConfigurations$=UCe;p.ListSyslogConfigurationsCommand=Rv;p.ListSyslogConfigurationsRequest$=Mye;p.ListSyslogConfigurationsResponse$=Lye;p.ListTagsForResource$=GCe;p.ListTagsForResourceCommand=Cv;p.ListTagsForResourceRequest$=Nye;p.ListTagsForResourceResponse$=Fye;p.ListTagsLogGroup$=qCe;p.ListTagsLogGroupCommand=bv;p.ListTagsLogGroupRequest$=Bye;p.ListTagsLogGroupResponse$=Uye;p.ListToMap$=Gye;p.LiveTailSessionLogEvent$=qye;p.LiveTailSessionMetadata$=Hye;p.LiveTailSessionStart$=jye;p.LiveTailSessionUpdate$=zye;p.LogEvent$=Vye;p.LogFieldType$=$3;p.LogFieldsListItem$=Wye;p.LogGroup$=Kye;p.LogGroupClass=_ht;p.LogGroupField$=Qye;p.LogGroupSummary$=Yye;p.LogStream$=Jye;p.LookupTable$=Xye;p.LookupTableConfiguration$=Zye;p.LowerCaseString$=eEe;p.MalformedQueryException=lT;p.MalformedQueryException$=Ehe;p.MetricFilter$=tEe;p.MetricFilterMatchRecord$=rEe;p.MetricTransformation$=nEe;p.MoveKeyEntry$=oEe;p.MoveKeys$=sEe;p.OCSFVersion=Vht;p.OpenSearchApplication$=iEe;p.OpenSearchCollection$=aEe;p.OpenSearchDataAccessPolicy$=cEe;p.OpenSearchDataSource$=uEe;p.OpenSearchEncryptionPolicy$=lEe;p.OpenSearchIntegrationDetails$=dEe;p.OpenSearchLifecyclePolicy$=pEe;p.OpenSearchNetworkPolicy$=fEe;p.OpenSearchResourceConfig$=mEe;p.OpenSearchResourceStatus$=Qi;p.OpenSearchResourceStatusType=Uht;p.OpenSearchWorkspace$=gEe;p.OperationAbortedException=Wx;p.OperationAbortedException$=_he;p.OrderBy=Pht;p.OutputFormat=Sht;p.OutputLogEvent$=hEe;p.ParseCloudfront$=SEe;p.ParseJSON$=yEe;p.ParseKeyValue$=EEe;p.ParsePostgres$=_Ee;p.ParseRoute53$=REe;p.ParseToOCSF$=CEe;p.ParseVPC$=bEe;p.ParseWAF$=AEe;p.PatternToken$=xEe;p.Policy$=k3;p.PolicyScope=kht;p.PolicyType=lht;p.Processor$=TEe;p.PutAccountPolicy$=HCe;p.PutAccountPolicyCommand=Av;p.PutAccountPolicyRequest$=vEe;p.PutAccountPolicyResponse$=DEe;p.PutBearerTokenAuthentication$=jCe;p.PutBearerTokenAuthenticationCommand=xv;p.PutBearerTokenAuthenticationRequest$=IEe;p.PutDataProtectionPolicy$=zCe;p.PutDataProtectionPolicyCommand=Tv;p.PutDataProtectionPolicyRequest$=wEe;p.PutDataProtectionPolicyResponse$=PEe;p.PutDeliveryDestination$=VCe;p.PutDeliveryDestinationCommand=vv;p.PutDeliveryDestinationPolicy$=WCe;p.PutDeliveryDestinationPolicyCommand=Dv;p.PutDeliveryDestinationPolicyRequest$=OEe;p.PutDeliveryDestinationPolicyResponse$=$Ee;p.PutDeliveryDestinationRequest$=kEe;p.PutDeliveryDestinationResponse$=MEe;p.PutDeliverySource$=KCe;p.PutDeliverySourceCommand=Iv;p.PutDeliverySourceRequest$=LEe;p.PutDeliverySourceResponse$=NEe;p.PutDestination$=QCe;p.PutDestinationCommand=wv;p.PutDestinationPolicy$=YCe;p.PutDestinationPolicyCommand=Pv;p.PutDestinationPolicyRequest$=FEe;p.PutDestinationRequest$=BEe;p.PutDestinationResponse$=UEe;p.PutIndexPolicy$=JCe;p.PutIndexPolicyCommand=Ov;p.PutIndexPolicyRequest$=GEe;p.PutIndexPolicyResponse$=qEe;p.PutIntegration$=XCe;p.PutIntegrationCommand=$v;p.PutIntegrationRequest$=HEe;p.PutIntegrationResponse$=jEe;p.PutLogEvents$=ZCe;p.PutLogEventsCommand=kv;p.PutLogEventsRequest$=zEe;p.PutLogEventsResponse$=VEe;p.PutLogGroupDeletionProtection$=ebe;p.PutLogGroupDeletionProtectionCommand=Mv;p.PutLogGroupDeletionProtectionRequest$=WEe;p.PutMetricFilter$=tbe;p.PutMetricFilterCommand=Lv;p.PutMetricFilterRequest$=KEe;p.PutQueryDefinition$=rbe;p.PutQueryDefinitionCommand=Nv;p.PutQueryDefinitionRequest$=QEe;p.PutQueryDefinitionResponse$=YEe;p.PutResourcePolicy$=nbe;p.PutResourcePolicyCommand=Fv;p.PutResourcePolicyRequest$=JEe;p.PutResourcePolicyResponse$=XEe;p.PutRetentionPolicy$=obe;p.PutRetentionPolicyCommand=Bv;p.PutRetentionPolicyRequest$=ZEe;p.PutStorageTierPolicy$=sbe;p.PutStorageTierPolicyCommand=Uv;p.PutStorageTierPolicyRequest$=e_e;p.PutStorageTierPolicyResponse$=t_e;p.PutSubscriptionFilter$=ibe;p.PutSubscriptionFilterCommand=Gv;p.PutSubscriptionFilterRequest$=r_e;p.PutSyslogConfiguration$=abe;p.PutSyslogConfigurationCommand=qv;p.PutSyslogConfigurationRequest$=n_e;p.PutTransformer$=cbe;p.PutTransformerCommand=Hv;p.PutTransformerRequest$=o_e;p.QueryCompileError$=s_e;p.QueryCompileErrorLocation$=i_e;p.QueryDefinition$=a_e;p.QueryInfo$=c_e;p.QueryLanguage=Rht;p.QueryParameter$=u_e;p.QueryStatistics$=l_e;p.QueryStatus=$ht;p.RecordField$=d_e;p.RejectedEntityInfo$=p_e;p.RejectedLogEventsInfo$=f_e;p.RenameKeyEntry$=m_e;p.RenameKeys$=g_e;p.ResourceAlreadyExistsException=nT;p.ResourceAlreadyExistsException$=Rhe;p.ResourceConfig$=dRe;p.ResourceNotFoundException=Kx;p.ResourceNotFoundException$=Che;p.ResourcePolicy$=M3;p.ResultField$=h_e;p.S3Configuration$=S_e;p.S3DeliveryConfiguration$=Ch;p.S3TableIntegrationSource$=y_e;p.S3TableIntegrationSourceStatus=Yht;p.S3TablesIntegration$=E_e;p.ScheduleType=Hht;p.ScheduledQueryDestination$=__e;p.ScheduledQueryDestinationType=jht;p.ScheduledQueryState=Cht;p.ScheduledQuerySummary$=R_e;p.Scope=dht;p.SearchedLogStream$=C_e;p.ServiceQuotaExceededException=tT;p.ServiceQuotaExceededException$=bhe;p.ServiceUnavailableException=Qx;p.ServiceUnavailableException$=Ahe;p.SessionStreamingException=cT;p.SessionStreamingException$=A3;p.SessionTimeoutException=uT;p.SessionTimeoutException$=x3;p.SplitString$=b_e;p.SplitStringEntry$=A_e;p.StandardUnit=Oht;p.StartLiveTail$=ube;p.StartLiveTailCommand=jv;p.StartLiveTailRequest$=x_e;p.StartLiveTailResponse$=T_e;p.StartLiveTailResponseStream$=pRe;p.StartQuery$=lbe;p.StartQueryCommand=zv;p.StartQueryRequest$=v_e;p.StartQueryResponse$=D_e;p.State=fht;p.StopQuery$=dbe;p.StopQueryCommand=Vv;p.StopQueryRequest$=I_e;p.StopQueryResponse$=w_e;p.StorageTier=zht;p.SubscriptionFilter$=P_e;p.SubstituteString$=O_e;p.SubstituteStringEntry$=$_e;p.SuppressionPeriod$=k_e;p.SuppressionState=Qht;p.SuppressionType=Zht;p.SuppressionUnit=Xht;p.SyslogConfiguration$=M_e;p.SyslogSourceType=Jht;p.TagFilter$=L_e;p.TagLogGroup$=pbe;p.TagLogGroupCommand=Wv;p.TagLogGroupRequest$=N_e;p.TagResource$=fbe;p.TagResourceCommand=Kv;p.TagResourceRequest$=F_e;p.TestMetricFilter$=mbe;p.TestMetricFilterCommand=Qv;p.TestMetricFilterRequest$=B_e;p.TestMetricFilterResponse$=U_e;p.TestTransformer$=gbe;p.TestTransformerCommand=Yv;p.TestTransformerRequest$=G_e;p.TestTransformerResponse$=q_e;p.ThrottlingException=Jx;p.ThrottlingException$=xhe;p.TooManyTagsException=dT;p.TooManyTagsException$=The;p.TransformedLogRecord$=H_e;p.TriggerHistoryRecord$=j_e;p.TrimString$=z_e;p.Type=Wht;p.TypeConverter$=V_e;p.TypeConverterEntry$=W_e;p.UnrecognizedClientException=aT;p.UnrecognizedClientException$=vhe;p.UntagLogGroup$=hbe;p.UntagLogGroupCommand=Jv;p.UntagLogGroupRequest$=K_e;p.UntagResource$=Sbe;p.UntagResourceCommand=Xv;p.UntagResourceRequest$=Q_e;p.UpdateAnomaly$=ybe;p.UpdateAnomalyCommand=Zv;p.UpdateAnomalyRequest$=Y_e;p.UpdateDeliveryConfiguration$=Ebe;p.UpdateDeliveryConfigurationCommand=eD;p.UpdateDeliveryConfigurationRequest$=J_e;p.UpdateDeliveryConfigurationResponse$=X_e;p.UpdateLogAnomalyDetector$=_be;p.UpdateLogAnomalyDetectorCommand=tD;p.UpdateLogAnomalyDetectorRequest$=Z_e;p.UpdateLookupTable$=Rbe;p.UpdateLookupTableCommand=rD;p.UpdateLookupTableRequest$=eRe;p.UpdateLookupTableResponse$=tRe;p.UpdateScheduledQuery$=Cbe;p.UpdateScheduledQueryCommand=nD;p.UpdateScheduledQueryRequest$=rRe;p.UpdateScheduledQueryResponse$=nRe;p.UpperCaseString$=oRe;p.ValidationException=Xx;p.ValidationException$=Dhe;p.errorTypeRegistries=Ihe;p.paginateDescribeConfigurationTemplates=bbe;p.paginateDescribeDeliveries=Abe;p.paginateDescribeDeliveryDestinations=xbe;p.paginateDescribeDeliverySources=Tbe;p.paginateDescribeDestinations=vbe;p.paginateDescribeLogGroups=Dbe;p.paginateDescribeLogStreams=Ibe;p.paginateDescribeMetricFilters=wbe;p.paginateDescribeSubscriptionFilters=Pbe;p.paginateFilterLogEvents=Obe;p.paginateGetLogEvents=$be;p.paginateGetScheduledQueryHistory=kbe;p.paginateListAggregateLogGroupSummaries=Mbe;p.paginateListAnomalies=Lbe;p.paginateListLogAnomalyDetectors=Nbe;p.paginateListLogGroupsForQuery=Fbe;p.paginateListScheduledQueries=Bbe;p.paginateListSourcesForS3TableIntegration=Ube});var aSt={};Ct(aSt,{handler:()=>iSt});module.exports=F(aSt);var ud=De(vJ()),DJ={delaySeconds:15,attempts:8},IJ=new Map;function wJ(t){let e=IJ.get(t);return e||(e=new ud.CloudWatchClient({region:t}),IJ.set(t,e)),e}async function PJ(t){let e=t.ResourceProperties;if(t.RequestType==="Delete"){let[n,...o]=t.PhysicalResourceId.split(":");return o.length>0&&await wJ(n).send(new ud.DeleteAlarmsCommand({AlarmNames:[o.join(":")]})),{PhysicalResourceId:t.PhysicalResourceId}}let r=new ud.PutMetricAlarmCommand({AlarmName:e.AlarmName,AlarmDescription:e.AlarmDescription,Metrics:JSON.parse(e.Metrics),Threshold:Number(e.Threshold),EvaluationPeriods:Number(e.EvaluationPeriods),ComparisonOperator:e.ComparisonOperator,TreatMissingData:e.TreatMissingData,ActionsEnabled:!1});for(let n=1;;n++)try{await wJ(e.Region).send(r);break}catch(o){if(!/AccessDenied/.test(o.name)||n>=DJ.attempts)throw o;await new Promise(s=>setTimeout(s,DJ.delaySeconds*1e3))}return{PhysicalResourceId:`${e.Region}:${e.AlarmName}`}}var Zd=De($N()),Cpe=new Zd.S3Client({}),bpe="lambda-web-source";async function Ape(t){let e=t.ResourceProperties,r=`s3://${e.DestinationBucket}/${e.DestinationKey}`;if(t.RequestType==="Delete")return{PhysicalResourceId:t.PhysicalResourceId};let n=`${e.SourceBucket}/${e.SourceKey}${e.SourceVersion?`?versionId=${e.SourceVersion}`:""}`,o=await Rpe("HeadObject on the code bucket",()=>t7e(e.DestinationBucket,e.DestinationKey));if(o?.source===n&&o.versionId)return{PhysicalResourceId:r,Data:{VersionId:o.versionId}};let s=await Rpe(`CopyObject from ${n}`,()=>Cpe.send(new Zd.CopyObjectCommand({Bucket:e.DestinationBucket,Key:e.DestinationKey,CopySource:encodeURI(n),MetadataDirective:"REPLACE",Metadata:{[bpe]:n}})));if(!s.VersionId)throw new Error(`Code bucket ${e.DestinationBucket} must have versioning enabled: Lambda Web Functions reject unversioned code objects`);return{PhysicalResourceId:r,Data:{VersionId:s.VersionId}}}async function t7e(t,e){try{let r=await Cpe.send(new Zd.HeadObjectCommand({Bucket:t,Key:e}));return{versionId:r.VersionId,source:r.Metadata?.[bpe]}}catch(r){if(r7e(r))return;throw r}}async function Rpe(t,e){try{return await e()}catch(r){let n=r;throw n.message=`${t} failed: ${n.name} (HTTP ${n.$metadata?.httpStatusCode??"?"}): ${n.message}`,n}}function r7e(t){let e=t;return e.name==="NotFound"||e.name==="NoSuchKey"||e.$metadata?.httpStatusCode===404}var Za=De($N());var xpe="Custom::LambdaWebCode",Tpe="Custom::LambdaWebLogGroup",vpe="Custom::LambdaWebEndpointLookup";function Dpe(t){return`Domain.${t}`}var Ipe="Custom::LambdaWebRevisionCleanup";var wpe="Custom::LambdaWebAlarm",Ppe="Custom::LambdaWebCodeBucketCleanup",kN={key:"cdk-lambda-web:empty-on-delete",value:"true"},Ope="Custom::LambdaWebResourcePolicyStatements";var MN=new Za.S3Client({});async function $pe(t){let e=t.ResourceProperties;if(t.RequestType!=="Delete")return{PhysicalResourceId:e.BucketName};let r=t.PhysicalResourceId;try{if(!await n7e(r))return console.log(JSON.stringify({msg:"code bucket kept: not tagged for emptying (rollback of an update that added this resource)",bucket:r})),{PhysicalResourceId:t.PhysicalResourceId};let n={};for(;;){let o=await MN.send(new Za.ListObjectVersionsCommand({Bucket:r,...n})),s=[...o.Versions??[],...o.DeleteMarkers??[]].map(i=>({Key:i.Key,VersionId:i.VersionId}));if(s.length>0){let i=await MN.send(new Za.DeleteObjectsCommand({Bucket:r,Delete:{Objects:s,Quiet:!0}}));if(i.Errors?.length)throw new Error(`could not delete ${i.Errors.length} object version(s) from ${r}: ${i.Errors[0].Code} ${i.Errors[0].Message}`)}if(!o.IsTruncated)break;n={KeyMarker:o.NextKeyMarker,VersionIdMarker:o.NextVersionIdMarker}}}catch(n){if(n.name!=="NoSuchBucket")throw n}return{PhysicalResourceId:t.PhysicalResourceId}}async function n7e(t){try{let{TagSet:e}=await MN.send(new Za.GetBucketTaggingCommand({Bucket:t}));return(e??[]).some(r=>r.Key===kN.key&&r.Value===kN.value)}catch(e){if(e.name==="NoSuchTagSet")return!1;throw e}}var qx=De(Gx());async function Nme(t){let e=t.ResourceProperties;if(t.RequestType==="Delete")return{PhysicalResourceId:t.PhysicalResourceId};let r=e.FunctionArn.split(":")[3],o=await new qx.LambdaWebClient({region:r}).send(new qx.GetWebFunctionEndpointCommand({functionName:e.FunctionArn,endpointName:e.EndpointName})),s={};for(let[i,a]of Object.entries(o.regionalEndpoints??{}))a.domainName&&(s[Dpe(i)]=a.domainName);return{PhysicalResourceId:e.EndpointArn,Data:s}}var Yr=De(Gbe()),qbe=new Map;function N3(t){let e=qbe.get(t);return e||(e=new Yr.CloudWatchLogsClient({region:t}),qbe.set(t,e)),e}var Hbe={seconds:t=>new Promise(e=>setTimeout(e,t*1e3))};async function zbe(t){let e=t.ResourceProperties,r=`${e.Region}:${e.LogGroupName}`;return t.RequestType==="Delete"?(e.RemovalPolicy==="destroy"&&await tSt(e),{PhysicalResourceId:t.PhysicalResourceId}):(await eSt(e),{PhysicalResourceId:r})}async function eSt(t){let e=N3(t.Region),r=!1;try{await e.send(new Yr.CreateLogGroupCommand({logGroupName:t.LogGroupName,kmsKeyId:t.KmsKeyId})),r=!0}catch(n){if(n.name!=="ResourceAlreadyExistsException")throw n}if(!r){let n=(await Vbe(t))?.kmsKeyId;t.KmsKeyId&&n!==t.KmsKeyId?await e.send(new Yr.AssociateKmsKeyCommand({logGroupName:t.LogGroupName,kmsKeyId:t.KmsKeyId})):!t.KmsKeyId&&n&&await e.send(new Yr.DisassociateKmsKeyCommand({logGroupName:t.LogGroupName}))}t.RetentionInDays==="Infinite"?await e.send(new Yr.DeleteRetentionPolicyCommand({logGroupName:t.LogGroupName})):await e.send(new Yr.PutRetentionPolicyCommand({logGroupName:t.LogGroupName,retentionInDays:Number(t.RetentionInDays)}))}async function tSt(t){await Hbe.seconds(Number(t.FlushWaitSeconds)),await jbe(t),await Hbe.seconds(Number(t.RecheckWaitSeconds)),await rSt(t)&&await jbe(t)}async function jbe(t){try{await N3(t.Region).send(new Yr.DeleteLogGroupCommand({logGroupName:t.LogGroupName}))}catch(e){if(e.name!=="ResourceNotFoundException")throw e}}async function rSt(t){return await Vbe(t)!==void 0}async function Vbe(t){return((await N3(t.Region).send(new Yr.DescribeLogGroupsCommand({logGroupNamePrefix:t.LogGroupName}))).logGroups??[]).find(r=>r.logGroupName===t.LogGroupName)}var gc=De(Gx()),BD={conflictDelaySeconds:2,conflictAttempts:10,accessDeniedDelaySeconds:15,accessDeniedAttempts:8},Wbe=20480;async function Jbe(t){let e=t.ResourceProperties;if(t.RequestType==="Delete")return await Kbe(e.FunctionArn,Qbe(e),[],!1),{PhysicalResourceId:t.PhysicalResourceId};let r=t.RequestType==="Update"?t.OldResourceProperties:void 0,n=r!==void 0&&r.FunctionArn===e.FunctionArn;return await Kbe(e.FunctionArn,n?Qbe(r):new Set,[...e.Policy.Statement],!n),{PhysicalResourceId:`${e.FunctionArn}/statements/${t.LogicalResourceId}`}}async function Kbe(t,e,r,n){let o=new gc.LambdaWebClient({region:t.split(":")[3]}),s=new Map(r.map(i=>[i.Sid,i]));for(let i=1;;i++){let a=await F3(()=>Xbe(o,t)),c=[];for(let f of a?.statements??[]){let m=f.Sid;if(!(m!==void 0&&e.has(m))){if(m!==void 0&&s.has(m)){if(Ybe(f,s.get(m)))continue;throw new Error(`The resource policy of ${t} already has a statement with Sid '${m}' that another stack or tool added. Use another id (addPermission) or remove that statement.`)}m===void 0&&n&&r.some(y=>Ybe(f,oSt(y)))||c.push(f)}}let u=[...c,...r];try{if(u.length===0)a!==void 0&&await F3(()=>o.send(new gc.DeleteResourcePolicyCommand({resourceArn:t,revisionId:a.revisionId})));else{let f=JSON.stringify({Version:"2012-10-17",Statement:u});if(f.length>Wbe)throw new Error(`The resource policy of ${t} would be ${f.length} characters, over Lambda's limit of ${Wbe}`);if(await F3(()=>o.send(new gc.PutResourcePolicyCommand({resourceArn:t,policy:f,revisionId:a?.revisionId}))),a===void 0&&!await nSt(o,t,r))throw sSt("another writer created the policy at the same time")}console.log(JSON.stringify({msg:"resource policy written",functionArn:t,removed:[...e],written:r.map(f=>f.Sid),kept:c.length}));return}catch(f){let m=f.name;if(m==="ResourceNotFoundException"&&r.length===0)return;if(m!=="ConflictException"||i>=BD.conflictAttempts)throw f;await Zbe(BD.conflictDelaySeconds*i)}}}async function Xbe(t,e){try{let r=await t.send(new gc.GetResourcePolicyCommand({resourceArn:e}));return{statements:JSON.parse(r.policy).Statement??[],revisionId:r.revisionId}}catch(r){if(r.name==="ResourceNotFoundException")return;throw r}}async function nSt(t,e,r){let n=new Set((await Xbe(t,e))?.statements.map(o=>o.Sid));return r.every(o=>n.has(o.Sid))}async function F3(t){for(let e=1;;e++)try{return await t()}catch(r){if(!/AccessDenied/.test(r.name)||e>=BD.accessDeniedAttempts)throw r;await Zbe(BD.accessDeniedDelaySeconds)}}function Qbe(t){return new Set((t.Policy?.Statement??[]).map(e=>e.Sid))}function oSt(t){let{Sid:e,...r}=t;return r}function Ybe(t,e){return JSON.stringify(UD(t))===JSON.stringify(UD(e))}function UD(t){if(Array.isArray(t)){let e=t.map(UD).sort((r,n)=>JSON.stringify(r).localeCompare(JSON.stringify(n)));return e.length===1?e[0]:e}return t!==null&&typeof t=="object"?Object.fromEntries(Object.keys(t).sort().map(e=>[e,UD(t[e])])):t===void 0?t:String(t)}function sSt(t){return Object.assign(new Error(t),{name:"ConflictException"})}var Zbe=t=>new Promise(e=>setTimeout(e,t*1e3));var mp=De(Gx());async function eAe(t){let e=t.ResourceProperties,r=`${e.FunctionArn}/revision-cleanup`;if(t.RequestType==="Delete")return{PhysicalResourceId:t.PhysicalResourceId};let n=t.RequestType==="Update"?t.OldResourceProperties.RevisionIds??[]:[],o=new Set([...e.RevisionIds??[],...n]),s=[],i=[];try{let a=new mp.LambdaWebClient({region:e.FunctionArn.split(":")[3]}),c=[];for await(let u of(0,mp.paginateListWebFunctionRevisions)({client:a},{functionName:e.FunctionArn}))c.push(...u.revisions??[]);c.sort((u,f)=>(f.createdAt?.getTime()??0)-(u.createdAt?.getTime()??0));for(let u of c.slice(Number(e.Keep))){let f=u.revisionId;if(!o.has(f))try{await a.send(new mp.DeleteWebFunctionRevisionCommand({functionName:e.FunctionArn,revisionId:f})),s.push(f)}catch(m){let y=m.name;if(y==="ConflictException")i.push(f);else if(y!=="ResourceNotFoundException")throw m}}console.log(JSON.stringify({msg:"revision cleanup",total:c.length,keep:Number(e.Keep),deleted:s,inUse:i}))}catch(a){console.warn(JSON.stringify({msg:"revision cleanup failed; old revisions are left in place",error:`${a.name}: ${a.message}`,deleted:s}))}return{PhysicalResourceId:r,Data:{Deleted:String(s.length)}}}async function iSt(t){switch(t.ResourceType){case xpe:return Ape(t);case Tpe:return zbe(t);case vpe:return Nme(t);case Ipe:return eAe(t);case wpe:return PJ(t);case Ppe:return $pe(t);case Ope:return Jbe(t);default:if(t.RequestType==="Delete")return console.log(JSON.stringify({msg:"delete of an unknown resource type ignored",resourceType:t.ResourceType})),{PhysicalResourceId:t.PhysicalResourceId};throw new Error(`Unsupported resource type: ${t.ResourceType}`)}}0&&(module.exports={handler});
|