gemi 0.4.43 → 0.4.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/App.d.ts.map +1 -1
- package/dist/app/index.js +19 -19
- package/dist/chunk-00e9dad0734d9761.js +1 -1
- package/dist/chunk-00ecc27f03e2e84a.js +2 -0
- package/dist/chunk-0130e95410edb036.js +18 -0
- package/dist/chunk-08e9ab1091d7383e.js +3 -0
- package/dist/chunk-0db33ac43bd1d504.js +2 -0
- package/dist/chunk-107dbe753ed86605.js +2 -0
- package/dist/chunk-132c71db605759c9.js +2 -0
- package/dist/chunk-14d5491e97673c7d.js +2 -0
- package/dist/chunk-1874b66d572fb0db.js +6 -0
- package/dist/chunk-1d2c062034e3ed2d.js +9 -0
- package/dist/chunk-2665dffd37ead1d9.js +2 -0
- package/dist/chunk-2a328e3beda74e4f.js +2 -0
- package/dist/chunk-3bedef94ef8dba4a.js +2 -0
- package/dist/chunk-3cbc1c9cdc091b43.js +2 -0
- package/dist/chunk-415d564ff61a8fe6.js +2 -0
- package/dist/chunk-4cc2463d985f6882.js +9 -0
- package/dist/chunk-4d80485e7efb826f.js +2 -0
- package/dist/chunk-4e5485d3cfe9dc4e.js +2 -0
- package/dist/chunk-515c26d532207095.js +2 -0
- package/dist/chunk-55f76d4f6116f296.js +9 -0
- package/dist/chunk-590bd43a75f48606.js +18 -0
- package/dist/chunk-5a75eae6c32c2ba3.js +2 -0
- package/dist/chunk-5d51afe60efaf99e.js +2 -0
- package/dist/chunk-5d86d49d66db1c22.js +2 -0
- package/dist/chunk-5e13846c554dc272.js +2 -0
- package/dist/chunk-63c5605bcce508ea.js +1 -0
- package/dist/chunk-64c89cee4d4bd9a9.js +2 -0
- package/dist/chunk-65626c3d72d4e071.js +2 -0
- package/dist/chunk-67351e678a7ccc10.js +2 -0
- package/dist/chunk-69ff5047661fe699.js +2 -0
- package/dist/chunk-6c461d293fa213f1.js +2 -0
- package/dist/chunk-6e06660ab4e9d4da.js +6 -0
- package/dist/chunk-7195a8718fcd8215.js +1 -0
- package/dist/chunk-73fb3bb4d001bb2e.js +1 -0
- package/dist/chunk-782dde0748025b5a.js +2 -0
- package/dist/chunk-7de7f34d46c76019.js +18 -0
- package/dist/chunk-80b17f9853d76e98.js +2 -0
- package/dist/chunk-81f5123a24c19089.js +2 -0
- package/dist/chunk-827d2c67c03d1a52.js +2 -0
- package/dist/chunk-8581aa9e876d46fb.js +2 -0
- package/dist/chunk-869d80d2e475b938.js +3 -0
- package/dist/chunk-895d9b1ef7a65211.js +1 -1
- package/dist/chunk-8c2b349a7198788f.js +6 -0
- package/dist/chunk-90c5196ff1f827a8.js +2 -0
- package/dist/chunk-934ebff128f86ef1.js +1 -0
- package/dist/chunk-98126e4b5bd19831.js +2 -0
- package/dist/chunk-99ba9dfd7c11383b.js +18 -0
- package/dist/chunk-a63e13c410e92923.js +2 -0
- package/dist/chunk-a7f3e9d5b7cf7c42.js +2 -0
- package/dist/chunk-a88c3919c74b7877.js +18 -0
- package/dist/chunk-acd4530b2ff92aff.js +18 -0
- package/dist/chunk-ae50ef54d7de9179.js +2 -0
- package/dist/chunk-ae7b1bdf00266d88.js +2 -0
- package/dist/chunk-af6b79a6ce7388ee.js +18 -0
- package/dist/chunk-b0cc82fa84d5362d.js +1 -1
- package/dist/chunk-b2bc43f60314d1a9.js +2 -0
- package/dist/chunk-b8d3d76e1dd9affe.js +2 -0
- package/dist/chunk-b9f4c1fce7152fc8.js +9 -0
- package/dist/chunk-c3e4a396dc7a5fe7.js +2 -0
- package/dist/chunk-c882d0c175c22c17.js +2 -0
- package/dist/chunk-ccfd101ce72e80bf.js +1 -0
- package/dist/chunk-d0806df6defd9dce.js +1 -1
- package/dist/chunk-d535b1e3078465f8.js +2 -0
- package/dist/chunk-d54843c1d8516c75.js +2 -0
- package/dist/chunk-d665d3ee2a62d48b.js +2 -0
- package/dist/chunk-d9762bab5df03532.js +2 -0
- package/dist/chunk-e1a08bb52ee7ea09.js +1 -1
- package/dist/chunk-e3e996b3821027e1.js +2 -0
- package/dist/chunk-e64d5a7b7e0fa2c5.js +6 -0
- package/dist/chunk-f077321ef55ea627.js +1 -0
- package/dist/chunk-f32726d374c6bee5.js +1 -0
- package/dist/chunk-f5200f44395bf49d.js +3 -0
- package/dist/chunk-f868cdf653dbe87e.js +2 -0
- package/dist/chunk-f900b5868b14827e.js +2 -0
- package/dist/chunk-f9a17b871b527bff.js +2 -0
- package/dist/chunk-feaaa37d30cd1e9b.js +2 -0
- package/dist/client/ClientRouter.d.ts.map +1 -1
- package/dist/client/ClientRouterContext.d.ts +4 -0
- package/dist/client/ClientRouterContext.d.ts.map +1 -1
- package/dist/client/Link.d.ts +2 -1
- package/dist/client/Link.d.ts.map +1 -1
- package/dist/client/ProgressManager.d.ts +16 -0
- package/dist/client/ProgressManager.d.ts.map +1 -0
- package/dist/client/i18n/I18nContext.d.ts +1 -1
- package/dist/client/i18n/I18nContext.d.ts.map +1 -1
- package/dist/client/i18n/useScopedTranslator.d.ts +3 -6
- package/dist/client/i18n/useScopedTranslator.d.ts.map +1 -1
- package/dist/client/index.d.ts +5 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +221 -35
- package/dist/client/useIsNavigationPending.d.ts +2 -0
- package/dist/client/useIsNavigationPending.d.ts.map +1 -0
- package/dist/client/{useRouter.d.ts → useNavigate.d.ts} +2 -2
- package/dist/client/useNavigate.d.ts.map +1 -0
- package/dist/client/useNavigationProgress.d.ts +2 -0
- package/dist/client/useNavigationProgress.d.ts.map +1 -0
- package/dist/client/useRoute.d.ts +8 -0
- package/dist/client/useRoute.d.ts.map +1 -0
- package/dist/facades/I18n.d.ts +4 -2
- package/dist/facades/I18n.d.ts.map +1 -1
- package/dist/facades/index.js +1 -1
- package/dist/http/HttpRequest.d.ts +4 -1
- package/dist/http/HttpRequest.d.ts.map +1 -1
- package/dist/http/I18nServiceContainer.d.ts +1 -0
- package/dist/http/I18nServiceContainer.d.ts.map +1 -1
- package/dist/http/index.js +1 -1
- package/dist/kernel/index.js +2 -2
- package/dist/server/index.js +1 -1
- package/dist/storage/index.js +10 -1
- package/dist/utils/applyTranslationParams.d.ts +2 -0
- package/dist/utils/applyTranslationParams.d.ts.map +1 -0
- package/dist/utils/sleep.d.ts +2 -0
- package/dist/utils/sleep.d.ts.map +1 -0
- package/dist/utils/type.d.ts +3 -0
- package/dist/utils/type.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/client/useRouter.d.ts.map +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import{y as a0,z as T} from"./chunk-7ce930fe69575c87.js";import{C as x,D as kU,E as F6,H as tU,I as fE,L as LE,P as mW} from"./chunk-08e9ab1091d7383e.js";import{jb as X0} from"./chunk-2665dffd37ead1d9.js";import{kb as Q0,lb as NU} from"./chunk-4d80485e7efb826f.js";import{mb as O$} from"./chunk-65626c3d72d4e071.js";import{sb as CU} from"./chunk-73fb3bb4d001bb2e.js";var L1=T((Xz,Ew)=>{var Lw=function($,U,w){return{applyToStack:(W)=>{W.add(ww($,w),Ww),W.add(Gw($,U),fw)}}},f1=Object.defineProperty,OE=Object.getOwnPropertyDescriptor,BE=Object.getOwnPropertyNames,HE=Object.prototype.hasOwnProperty,Y$=($,U)=>f1($,"name",{value:U,configurable:!0}),CE=($,U)=>{for(var w in U)f1($,w,{get:U[w],enumerable:!0})},NE=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of BE(U))if(!HE.call($,G)&&G!==w)f1($,G,{get:()=>U[G],enumerable:!(W=OE(U,G))||W.enumerable})}return $},qE=($)=>NE(f1({},"__esModule",{value:!0}),$),Uw={};CE(Uw,{deserializerMiddleware:()=>ww,deserializerMiddlewareOption:()=>Ww,getSerdePlugin:()=>Lw,serializerMiddleware:()=>Gw,serializerMiddlewareOption:()=>fw});Ew.exports=qE(Uw);var ww=Y$(($,U)=>(w)=>async(W)=>{const{response:G}=await w(W);try{const f=await U(G,$);return{response:G,output:f}}catch(f){if(Object.defineProperty(f,"$response",{value:G}),!("$metadata"in f)){if(f.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof f.$responseBodyText!=="undefined"){if(f.$response)f.$response.body=f.$responseBodyText}}throw f}},"deserializerMiddleware"),Gw=Y$(($,U)=>(w,W)=>async(G)=>{var f;const L=((f=W.endpointV2)==null?void 0:f.url)&&$.urlParser?async()=>$.urlParser(W.endpointV2.url):$.endpoint;if(!L)throw new Error("No valid endpoint provider available.");const E=await U(G.input,{...$,endpoint:L});return w({...G,request:E})},"serializerMiddleware"),Ww={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},fw={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};Y$(Lw,"getSerdePlugin")});var D0=T((Zz,Rw)=>{var{defineProperty:E1,getOwnPropertyDescriptor:PE,getOwnPropertyNames:jE}=Object,SE=Object.prototype.hasOwnProperty,Xw=($,U)=>E1($,"name",{value:U,configurable:!0}),bE=($,U)=>{for(var w in U)E1($,w,{get:U[w],enumerable:!0})},hE=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of jE(U))if(!SE.call($,G)&&G!==w)E1($,G,{get:()=>U[G],enumerable:!(W=PE(U,G))||W.enumerable})}return $},DE=($)=>hE(E1({},"__esModule",{value:!0}),$),Zw={};bE(Zw,{getSmithyContext:()=>kE,normalizeProvider:()=>cE});Rw.exports=DE(Zw);var Fw=X0(),kE=Xw(($)=>$[Fw.SMITHY_CONTEXT_KEY]||($[Fw.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),cE=Xw(($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U},"normalizeProvider")});var M0=T((Iw)=>{Object.defineProperty(Iw,"__esModule",{value:!0});Iw.getHomeDir=void 0;var vE=import.meta.require("os"),xE=import.meta.require("path"),Q$={},uE=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},yE=()=>{const{HOME:$,USERPROFILE:U,HOMEPATH:w,HOMEDRIVE:W=`C:${xE.sep}`}=process.env;if($)return $;if(U)return U;if(w)return`${W}${w}`;const G=uE();if(!Q$[G])Q$[G]=vE.homedir();return Q$[G]};Iw.getHomeDir=yE});var z$=T((Qw)=>{Object.defineProperty(Qw,"__esModule",{value:!0});Qw.getSSOTokenFilepath=void 0;var _E=import.meta.require("crypto"),dE=import.meta.require("path"),pE=M0(),gE=($)=>{const w=_E.createHash("sha1").update($).digest("hex");return dE.join(pE.getHomeDir(),".aws","sso","cache",`${w}.json`)};Qw.getSSOTokenFilepath=gE});var Tw=T((Jw)=>{Object.defineProperty(Jw,"__esModule",{value:!0});Jw.getSSOTokenFromFile=void 0;var lE=import.meta.require("fs"),sE=z$(),{readFile:nE}=lE.promises,mE=async($)=>{const U=sE.getSSOTokenFilepath($),w=await nE(U,"utf8");return JSON.parse(w)};Jw.getSSOTokenFromFile=mE});var K$=T((Mw)=>{Object.defineProperty(Mw,"__esModule",{value:!0});Mw.slurpFile=void 0;var iE=import.meta.require("fs"),{readFile:rE}=iE.promises,J$={},oE=($,U)=>{if(!J$[$]||(U===null||U===void 0?void 0:U.ignoreCache))J$[$]=rE($,"utf8");return J$[$]};Mw.slurpFile=oE});var V$=T((zz,c0)=>{var{defineProperty:Z1,getOwnPropertyDescriptor:tE,getOwnPropertyNames:aE}=Object,eE=Object.prototype.hasOwnProperty,u=($,U)=>Z1($,"name",{value:U,configurable:!0}),$F=($,U)=>{for(var w in U)Z1($,w,{get:U[w],enumerable:!0})},T$=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of aE(U))if(!eE.call($,G)&&G!==w)Z1($,G,{get:()=>U[G],enumerable:!(W=tE(U,G))||W.enumerable})}return $},A$=($,U,w)=>(T$($,U,"default"),w&&T$(w,U,"default")),UF=($)=>T$(Z1({},"__esModule",{value:!0}),$),k0={};$F(k0,{CONFIG_PREFIX_SEPARATOR:()=>Z0,DEFAULT_PROFILE:()=>Hw,ENV_PROFILE:()=>Bw,getProfileName:()=>wF,loadSharedConfigFiles:()=>Nw,loadSsoSessionData:()=>zF,parseKnownFiles:()=>KF});c0.exports=UF(k0);A$(k0,M0(),c0.exports);var Bw="AWS_PROFILE",Hw="default",wF=u(($)=>$.profile||process.env[Bw]||Hw,"getProfileName");A$(k0,z$(),c0.exports);A$(k0,Tw(),c0.exports);var F1=X0(),GF=u(($)=>Object.entries($).filter(([U])=>{const w=U.indexOf(Z0);if(w===-1)return!1;return Object.values(F1.IniSectionType).includes(U.substring(0,w))}).reduce((U,[w,W])=>{const G=w.indexOf(Z0),f=w.substring(0,G)===F1.IniSectionType.PROFILE?w.substring(G+1):w;return U[f]=W,U},{...$.default&&{default:$.default}}),"getConfigData"),X1=import.meta.require("path"),WF=M0(),fF="AWS_CONFIG_FILE",Cw=u(()=>process.env[fF]||X1.join(WF.getHomeDir(),".aws","config"),"getConfigFilepath"),LF=M0(),EF="AWS_SHARED_CREDENTIALS_FILE",FF=u(()=>process.env[EF]||X1.join(LF.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),XF=M0(),ZF=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,RF=["__proto__","profile __proto__"],M$=u(($)=>{const U={};let w,W;for(let G of $.split(/\r?\n/)){const f=G.split(/(^|\s)[;#]/)[0].trim();if(f[0]==="["&&f[f.length-1]==="]"){w=void 0,W=void 0;const E=f.substring(1,f.length-1),F=ZF.exec(E);if(F){const[,X,,Z]=F;if(Object.values(F1.IniSectionType).includes(X))w=[X,Z].join(Z0)}else w=E;if(RF.includes(E))throw new Error(`Found invalid profile name "${E}"`)}else if(w){const E=f.indexOf("=");if(![0,-1].includes(E)){const[F,X]=[f.substring(0,E).trim(),f.substring(E+1).trim()];if(X==="")W=F;else{if(W&&G.trimStart()===G)W=void 0;U[w]=U[w]||{};const Z=W?[W,F].join(Z0):F;U[w][Z]=X}}}}return U},"parseIni"),Vw=K$(),Ow=u(()=>({}),"swallowError"),Z0=".",Nw=u(async($={})=>{const{filepath:U=FF(),configFilepath:w=Cw()}=$,W=XF.getHomeDir();let f=U;if(U.startsWith("~/"))f=X1.join(W,U.slice(2));let L=w;if(w.startsWith("~/"))L=X1.join(W,w.slice(2));const E=await Promise.all([Vw.slurpFile(L,{ignoreCache:$.ignoreCache}).then(M$).then(GF).catch(Ow),Vw.slurpFile(f,{ignoreCache:$.ignoreCache}).then(M$).catch(Ow)]);return{configFile:E[0],credentialsFile:E[1]}},"loadSharedConfigFiles"),IF=u(($)=>Object.entries($).filter(([U])=>U.startsWith(F1.IniSectionType.SSO_SESSION+Z0)).reduce((U,[w,W])=>({...U,[w.substring(w.indexOf(Z0)+1)]:W}),{}),"getSsoSessionData"),YF=K$(),QF=u(()=>({}),"swallowError"),zF=u(async($={})=>YF.slurpFile($.configFilepath??Cw()).then(M$).then(IF).catch(QF),"loadSsoSessionData"),JF=u((...$)=>{const U={};for(let w of $)for(let[W,G]of Object.entries(w))if(U[W]!==void 0)Object.assign(U[W],G);else U[W]=G;return U},"mergeConfigFiles"),KF=u(async($)=>{const U=await Nw($);return JF(U.configFile,U.credentialsFile)},"parseKnownFiles")});var Sw=T((Jz,jw)=>{var B$=function($){try{const U=new Set(Array.from($.match(/([A-Z_]){3,}/g)??[]));return U.delete("CONFIG"),U.delete("CONFIG_PREFIX_SEPARATOR"),U.delete("ENV"),[...U].join(", ")}catch(U){return $}},R1=Object.defineProperty,TF=Object.getOwnPropertyDescriptor,MF=Object.getOwnPropertyNames,AF=Object.prototype.hasOwnProperty,A0=($,U)=>R1($,"name",{value:U,configurable:!0}),VF=($,U)=>{for(var w in U)R1($,w,{get:U[w],enumerable:!0})},OF=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of MF(U))if(!AF.call($,G)&&G!==w)R1($,G,{get:()=>U[G],enumerable:!(W=TF(U,G))||W.enumerable})}return $},BF=($)=>OF(R1({},"__esModule",{value:!0}),$),Pw={};VF(Pw,{loadConfig:()=>PF});jw.exports=BF(Pw);var v0=O$();A0(B$,"getSelectorName");var HF=A0(($,U)=>async()=>{try{const w=$(process.env);if(w===void 0)throw new Error;return w}catch(w){throw new v0.CredentialsProviderError(w.message||`Not found in ENV: ${B$($.toString())}`,{logger:U})}},"fromEnv"),qw=V$(),CF=A0(($,{preferredFile:U="config",...w}={})=>async()=>{const W=qw.getProfileName(w),{configFile:G,credentialsFile:f}=await qw.loadSharedConfigFiles(w),L=f[W]||{},E=G[W]||{},F=U==="config"?{...L,...E}:{...E,...L};try{const Z=$(F,U==="config"?G:f);if(Z===void 0)throw new Error;return Z}catch(X){throw new v0.CredentialsProviderError(X.message||`Not found in config files w/ profile [${W}]: ${B$($.toString())}`,{logger:w.logger})}},"fromSharedConfigFiles"),NF=A0(($)=>typeof $==="function","isFunction"),qF=A0(($)=>NF($)?async()=>await $():v0.fromStatic($),"fromStatic"),PF=A0(({environmentVariableSelector:$,configFileSelector:U,default:w},W={})=>v0.memoize(v0.chain(HF($),CF(U,W),qF(w))),"loadConfig")});var vw=T((kw)=>{Object.defineProperty(kw,"__esModule",{value:!0});kw.getEndpointUrlConfig=void 0;var bw=V$(),hw="AWS_ENDPOINT_URL",Dw="endpoint_url",jF=($)=>({environmentVariableSelector:(U)=>{const w=$.split(" ").map((f)=>f.toUpperCase()),W=U[[hw,...w].join("_")];if(W)return W;const G=U[hw];if(G)return G;return},configFileSelector:(U,w)=>{if(w&&U.services){const G=w[["services",U.services].join(bw.CONFIG_PREFIX_SEPARATOR)];if(G){const f=$.split(" ").map((E)=>E.toLowerCase()),L=G[[f.join("_"),Dw].join(bw.CONFIG_PREFIX_SEPARATOR)];if(L)return L}}const W=U[Dw];if(W)return W;return},default:void 0});kw.getEndpointUrlConfig=jF});var yw=T((xw)=>{Object.defineProperty(xw,"__esModule",{value:!0});xw.getEndpointFromConfig=void 0;var SF=Sw(),bF=vw(),hF=async($)=>SF.loadConfig(bF.getEndpointUrlConfig($))();xw.getEndpointFromConfig=hF});var gw=T((Mz,pw)=>{var dw=function($){const U={};if($=$.replace(/^\?/,""),$)for(let w of $.split("&")){let[W,G=null]=w.split("=");if(W=decodeURIComponent(W),G)G=decodeURIComponent(G);if(!(W in U))U[W]=G;else if(Array.isArray(U[W]))U[W].push(G);else U[W]=[U[W],G]}return U},I1=Object.defineProperty,DF=Object.getOwnPropertyDescriptor,kF=Object.getOwnPropertyNames,cF=Object.prototype.hasOwnProperty,vF=($,U)=>I1($,"name",{value:U,configurable:!0}),xF=($,U)=>{for(var w in U)I1($,w,{get:U[w],enumerable:!0})},uF=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of kF(U))if(!cF.call($,G)&&G!==w)I1($,G,{get:()=>U[G],enumerable:!(W=DF(U,G))||W.enumerable})}return $},yF=($)=>uF(I1({},"__esModule",{value:!0}),$),_w={};xF(_w,{parseQueryString:()=>dw});pw.exports=yF(_w);vF(dw,"parseQueryString")});var mw=T((Az,nw)=>{var{defineProperty:Y1,getOwnPropertyDescriptor:_F,getOwnPropertyNames:dF}=Object,pF=Object.prototype.hasOwnProperty,gF=($,U)=>Y1($,"name",{value:U,configurable:!0}),lF=($,U)=>{for(var w in U)Y1($,w,{get:U[w],enumerable:!0})},sF=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of dF(U))if(!pF.call($,G)&&G!==w)Y1($,G,{get:()=>U[G],enumerable:!(W=_F(U,G))||W.enumerable})}return $},nF=($)=>sF(Y1({},"__esModule",{value:!0}),$),lw={};lF(lw,{parseUrl:()=>sw});nw.exports=nF(lw);var mF=gw(),sw=gF(($)=>{if(typeof $==="string")return sw(new URL($));const{hostname:U,pathname:w,port:W,protocol:G,search:f}=$;let L;if(f)L=mF.parseQueryString(f);return{hostname:U,port:W?parseInt(W):void 0,protocol:G,path:w,query:L}},"parseUrl")});var UG=T((Vz,$G)=>{var{defineProperty:z1,getOwnPropertyDescriptor:iF,getOwnPropertyNames:rF}=Object,oF=Object.prototype.hasOwnProperty,p=($,U)=>z1($,"name",{value:U,configurable:!0}),tF=($,U)=>{for(var w in U)z1($,w,{get:U[w],enumerable:!0})},aF=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of rF(U))if(!oF.call($,G)&&G!==w)z1($,G,{get:()=>U[G],enumerable:!(W=iF(U,G))||W.enumerable})}return $},eF=($)=>aF(z1({},"__esModule",{value:!0}),$),rw={};tF(rw,{endpointMiddleware:()=>aw,endpointMiddlewareOptions:()=>ew,getEndpointFromInstructions:()=>ow,getEndpointPlugin:()=>X2,resolveEndpointConfig:()=>Z2,resolveParams:()=>tw,toEndpointV1:()=>H$});$G.exports=eF(rw);var $2=p(async($)=>{const U=($==null?void 0:$.Bucket)||"";if(typeof $.Bucket==="string")$.Bucket=U.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(f2(U)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!W2(U)||U.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||U.toLowerCase()!==U||U.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},"resolveParamsForS3"),U2=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,w2=/(\d+\.){3}\d+/,G2=/\.\./,W2=p(($)=>U2.test($)&&!w2.test($)&&!G2.test($),"isDnsCompatibleBucketName"),f2=p(($)=>{const[U,w,W,,,G]=$.split(":"),f=U==="arn"&&$.split(":").length>=6,L=Boolean(f&&w&&W&&G);if(f&&!L)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return L},"isArnBucketName"),L2=p(($,U,w)=>{const W=p(async()=>{const G=w[$]??w[U];if(typeof G==="function")return G();return G},"configProvider");if($==="credentialScope"||U==="CredentialScope")return async()=>{const G=typeof w.credentials==="function"?await w.credentials():w.credentials;return(G==null?void 0:G.credentialScope)??(G==null?void 0:G.CredentialScope)};if($==="accountId"||U==="AccountId")return async()=>{const G=typeof w.credentials==="function"?await w.credentials():w.credentials;return(G==null?void 0:G.accountId)??(G==null?void 0:G.AccountId)};if($==="endpoint"||U==="endpoint")return async()=>{const G=await W();if(G&&typeof G==="object"){if("url"in G)return G.url.href;if("hostname"in G){const{protocol:f,hostname:L,port:E,path:F}=G;return`${f}//${L}${E?":"+E:""}${F}`}}return G};return W},"createConfigValueProvider"),E2=yw(),iw=mw(),H$=p(($)=>{if(typeof $==="object"){if("url"in $)return iw.parseUrl($.url);return $}return iw.parseUrl($)},"toEndpointV1"),ow=p(async($,U,w,W)=>{if(!w.endpoint){const L=await E2.getEndpointFromConfig(w.serviceId||"");if(L)w.endpoint=()=>Promise.resolve(H$(L))}const G=await tw($,U,w);if(typeof w.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return w.endpointProvider(G,W)},"getEndpointFromInstructions"),tw=p(async($,U,w)=>{var W;const G={},f=((W=U==null?void 0:U.getEndpointParameterInstructions)==null?void 0:W.call(U))||{};for(let[L,E]of Object.entries(f))switch(E.type){case"staticContextParams":G[L]=E.value;break;case"contextParams":G[L]=$[E.name];break;case"clientContextParams":case"builtInParams":G[L]=await L2(E.name,L,w)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(E))}if(Object.keys(f).length===0)Object.assign(G,w);if(String(w.serviceId).toLowerCase()==="s3")await $2(G);return G},"resolveParams"),Q1=D0(),aw=p(({config:$,instructions:U})=>{return(w,W)=>async(G)=>{var f,L,E;const F=await ow(G.input,{getEndpointParameterInstructions(){return U}},{...$},W);W.endpointV2=F,W.authSchemes=(f=F.properties)==null?void 0:f.authSchemes;const X=(L=W.authSchemes)==null?void 0:L[0];if(X){W.signing_region=X.signingRegion,W.signing_service=X.signingName;const Z=Q1.getSmithyContext(W),R=(E=Z==null?void 0:Z.selectedHttpAuthScheme)==null?void 0:E.httpAuthOption;if(R)R.signingProperties=Object.assign(R.signingProperties||{},{signing_region:X.signingRegion,signingRegion:X.signingRegion,signing_service:X.signingName,signingName:X.signingName,signingRegionSet:X.signingRegionSet},X.properties)}return w({...G})}},"endpointMiddleware"),F2=L1(),ew={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:F2.serializerMiddlewareOption.name},X2=p(($,U)=>({applyToStack:(w)=>{w.addRelativeTo(aw({config:$,instructions:U}),ew)}}),"getEndpointPlugin"),Z2=p(($)=>{const U=$.tls??!0,{endpoint:w}=$,W=w!=null?async()=>H$(await Q1.normalizeProvider(w)()):void 0;return{...$,endpoint:W,tls:U,isCustomEndpoint:!!w,useDualstackEndpoint:Q1.normalizeProvider($.useDualstackEndpoint??!1),useFipsEndpoint:Q1.normalizeProvider($.useFipsEndpoint??!1)}},"resolveEndpointConfig")});var i=T((Oz,ZG)=>{var EG=function($){return Object.keys($).reduce((U,w)=>{const W=$[w];return{...U,[w]:Array.isArray(W)?[...W]:W}},{})},XG=function($){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test($)},J1=Object.defineProperty,R2=Object.getOwnPropertyDescriptor,I2=Object.getOwnPropertyNames,Y2=Object.prototype.hasOwnProperty,$0=($,U)=>J1($,"name",{value:U,configurable:!0}),Q2=($,U)=>{for(var w in U)J1($,w,{get:U[w],enumerable:!0})},z2=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of I2(U))if(!Y2.call($,G)&&G!==w)J1($,G,{get:()=>U[G],enumerable:!(W=R2(U,G))||W.enumerable})}return $},J2=($)=>z2(J1({},"__esModule",{value:!0}),$),wG={};Q2(wG,{Field:()=>M2,Fields:()=>A2,HttpRequest:()=>V2,HttpResponse:()=>O2,IHttpRequest:()=>GG.HttpRequest,getHttpHandlerExtensionConfiguration:()=>K2,isValidHostname:()=>XG,resolveHttpHandlerRuntimeConfig:()=>T2});ZG.exports=J2(wG);var K2=$0(($)=>{let U=$.httpHandler;return{setHttpHandler(w){U=w},httpHandler(){return U},updateHttpClientConfig(w,W){U.updateHttpClientConfig(w,W)},httpHandlerConfigs(){return U.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),T2=$0(($)=>{return{httpHandler:$.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),GG=X0(),WG=class ${constructor({name:U,kind:w=GG.FieldPosition.HEADER,values:W=[]}){this.name=U,this.kind=w,this.values=W}add(U){this.values.push(U)}set(U){this.values=U}remove(U){this.values=this.values.filter((w)=>w!==U)}toString(){return this.values.map((U)=>U.includes(",")||U.includes(" ")?`"${U}"`:U).join(", ")}get(){return this.values}};$0(WG,"Field");var M2=WG,fG=class ${constructor({fields:U=[],encoding:w="utf-8"}){this.entries={},U.forEach(this.setField.bind(this)),this.encoding=w}setField(U){this.entries[U.name.toLowerCase()]=U}getField(U){return this.entries[U.toLowerCase()]}removeField(U){delete this.entries[U.toLowerCase()]}getByType(U){return Object.values(this.entries).filter((w)=>w.kind===U)}};$0(fG,"Fields");var A2=fG,LG=class ${constructor(U){this.method=U.method||"GET",this.hostname=U.hostname||"localhost",this.port=U.port,this.query=U.query||{},this.headers=U.headers||{},this.body=U.body,this.protocol=U.protocol?U.protocol.slice(-1)!==":"?`${U.protocol}:`:U.protocol:"https:",this.path=U.path?U.path.charAt(0)!=="/"?`/${U.path}`:U.path:"/",this.username=U.username,this.password=U.password,this.fragment=U.fragment}static clone(U){const w=new $({...U,headers:{...U.headers}});if(w.query)w.query=EG(w.query);return w}static isInstance(U){if(!U)return!1;const w=U;return"method"in w&&"protocol"in w&&"hostname"in w&&"path"in w&&typeof w.query==="object"&&typeof w.headers==="object"}clone(){return $.clone(this)}};$0(LG,"HttpRequest");var V2=LG;$0(EG,"cloneQuery");var FG=class ${constructor(U){this.statusCode=U.statusCode,this.reason=U.reason,this.headers=U.headers||{},this.body=U.body}static isInstance(U){if(!U)return!1;const w=U;return typeof w.statusCode==="number"&&typeof w.headers==="object"}};$0(FG,"HttpResponse");var O2=FG;$0(XG,"isValidHostname")});var C$=T((RG)=>{var H2=function($){return $&&$.__esModule?$:{default:$}},C2=function(){if(K1>T1.length-16)B2.default.randomFillSync(T1),K1=0;return T1.slice(K1,K1+=16)};Object.defineProperty(RG,"__esModule",{value:!0});RG.default=C2;var B2=H2(import.meta.require("crypto")),T1=new Uint8Array(256),K1=T1.length});var QG=T((IG)=>{Object.defineProperty(IG,"__esModule",{value:!0});IG.default=void 0;var q2=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;IG.default=q2});var x0=T((zG)=>{var j2=function($){return $&&$.__esModule?$:{default:$}},S2=function($){return typeof $==="string"&&P2.default.test($)};Object.defineProperty(zG,"__esModule",{value:!0});zG.default=void 0;var P2=j2(QG()),b2=S2;zG.default=b2});var u0=T((TG)=>{var D2=function($){return $&&$.__esModule?$:{default:$}},KG=function($,U=0){return h[$[U+0]]+h[$[U+1]]+h[$[U+2]]+h[$[U+3]]+"-"+h[$[U+4]]+h[$[U+5]]+"-"+h[$[U+6]]+h[$[U+7]]+"-"+h[$[U+8]]+h[$[U+9]]+"-"+h[$[U+10]]+h[$[U+11]]+h[$[U+12]]+h[$[U+13]]+h[$[U+14]]+h[$[U+15]]},k2=function($,U=0){const w=KG($,U);if(!h2.default(w))throw TypeError("Stringified UUID is invalid");return w};Object.defineProperty(TG,"__esModule",{value:!0});TG.default=void 0;TG.unsafeStringify=KG;var h2=D2(x0()),h=[];for(let $=0;$<256;++$)h.push(($+256).toString(16).slice(1));var c2=k2;TG.default=c2});var BG=T((VG)=>{var y2=function($){return $&&$.__esModule?$:{default:$}},_2=function($,U,w){let W=U&&w||0;const G=U||new Array(16);$=$||{};let f=$.node||AG,L=$.clockseq!==void 0?$.clockseq:N$;if(f==null||L==null){const Y=$.random||($.rng||x2.default)();if(f==null)f=AG=[Y[0]|1,Y[1],Y[2],Y[3],Y[4],Y[5]];if(L==null)L=N$=(Y[6]<<8|Y[7])&16383}let E=$.msecs!==void 0?$.msecs:Date.now(),F=$.nsecs!==void 0?$.nsecs:P$+1;const X=E-q$+(F-P$)/1e4;if(X<0&&$.clockseq===void 0)L=L+1&16383;if((X<0||E>q$)&&$.nsecs===void 0)F=0;if(F>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");q$=E,P$=F,N$=L,E+=12219292800000;const Z=((E&268435455)*1e4+F)%4294967296;G[W++]=Z>>>24&255,G[W++]=Z>>>16&255,G[W++]=Z>>>8&255,G[W++]=Z&255;const R=E/4294967296*1e4&268435455;G[W++]=R>>>8&255,G[W++]=R&255,G[W++]=R>>>24&15|16,G[W++]=R>>>16&255,G[W++]=L>>>8|128,G[W++]=L&255;for(let Y=0;Y<6;++Y)G[W+Y]=f[Y];return U||u2.unsafeStringify(G)};Object.defineProperty(VG,"__esModule",{value:!0});VG.default=void 0;var x2=y2(C$()),u2=u0(),AG,N$,q$=0,P$=0,d2=_2;VG.default=d2});var j$=T((HG)=>{var g2=function($){return $&&$.__esModule?$:{default:$}},l2=function($){if(!p2.default($))throw TypeError("Invalid UUID");let U;const w=new Uint8Array(16);return w[0]=(U=parseInt($.slice(0,8),16))>>>24,w[1]=U>>>16&255,w[2]=U>>>8&255,w[3]=U&255,w[4]=(U=parseInt($.slice(9,13),16))>>>8,w[5]=U&255,w[6]=(U=parseInt($.slice(14,18),16))>>>8,w[7]=U&255,w[8]=(U=parseInt($.slice(19,23),16))>>>8,w[9]=U&255,w[10]=(U=parseInt($.slice(24,36),16))/1099511627776&255,w[11]=U/4294967296&255,w[12]=U>>>24&255,w[13]=U>>>16&255,w[14]=U>>>8&255,w[15]=U&255,w};Object.defineProperty(HG,"__esModule",{value:!0});HG.default=void 0;var p2=g2(x0()),s2=l2;HG.default=s2});var S$=T((PG)=>{var i2=function($){return $&&$.__esModule?$:{default:$}},r2=function($){$=unescape(encodeURIComponent($));const U=[];for(let w=0;w<$.length;++w)U.push($.charCodeAt(w));return U},o2=function($,U,w){function W(G,f,L,E){var F;if(typeof G==="string")G=r2(G);if(typeof f==="string")f=m2.default(f);if(((F=f)===null||F===void 0?void 0:F.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let X=new Uint8Array(16+G.length);if(X.set(f),X.set(G,f.length),X=w(X),X[6]=X[6]&15|U,X[8]=X[8]&63|128,L){E=E||0;for(let Z=0;Z<16;++Z)L[E+Z]=X[Z];return L}return n2.unsafeStringify(X)}try{W.name=$}catch(G){}return W.DNS=NG,W.URL=qG,W};Object.defineProperty(PG,"__esModule",{value:!0});PG.URL=PG.DNS=void 0;PG.default=o2;var n2=u0(),m2=i2(j$()),NG="6ba7b810-9dad-11d1-80b4-00c04fd430c8";PG.DNS=NG;var qG="6ba7b811-9dad-11d1-80b4-00c04fd430c8";PG.URL=qG});var hG=T((SG)=>{var $X=function($){return $&&$.__esModule?$:{default:$}},UX=function($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return e2.default.createHash("md5").update($).digest()};Object.defineProperty(SG,"__esModule",{value:!0});SG.default=void 0;var e2=$X(import.meta.require("crypto")),wX=UX;SG.default=wX});var vG=T((kG)=>{var DG=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(kG,"__esModule",{value:!0});kG.default=void 0;var GX=DG(S$()),WX=DG(hG()),fX=GX.default("v3",48,WX.default),LX=fX;kG.default=LX});var yG=T((xG)=>{var FX=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(xG,"__esModule",{value:!0});xG.default=void 0;var EX=FX(import.meta.require("crypto")),XX={randomUUID:EX.default.randomUUID};xG.default=XX});var lG=T((pG)=>{var dG=function($){return $&&$.__esModule?$:{default:$}},IX=function($,U,w){if(_G.default.randomUUID&&!U&&!$)return _G.default.randomUUID();$=$||{};const W=$.random||($.rng||ZX.default)();if(W[6]=W[6]&15|64,W[8]=W[8]&63|128,U){w=w||0;for(let G=0;G<16;++G)U[w+G]=W[G];return U}return RX.unsafeStringify(W)};Object.defineProperty(pG,"__esModule",{value:!0});pG.default=void 0;var _G=dG(yG()),ZX=dG(C$()),RX=u0(),YX=IX;pG.default=YX});var mG=T((sG)=>{var zX=function($){return $&&$.__esModule?$:{default:$}},JX=function($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return QX.default.createHash("sha1").update($).digest()};Object.defineProperty(sG,"__esModule",{value:!0});sG.default=void 0;var QX=zX(import.meta.require("crypto")),KX=JX;sG.default=KX});var tG=T((rG)=>{var iG=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(rG,"__esModule",{value:!0});rG.default=void 0;var TX=iG(S$()),MX=iG(mG()),AX=TX.default("v5",80,MX.default),VX=AX;rG.default=VX});var $W=T((aG)=>{Object.defineProperty(aG,"__esModule",{value:!0});aG.default=void 0;var OX="00000000-0000-0000-0000-000000000000";aG.default=OX});var GW=T((UW)=>{var HX=function($){return $&&$.__esModule?$:{default:$}},CX=function($){if(!BX.default($))throw TypeError("Invalid UUID");return parseInt($.slice(14,15),16)};Object.defineProperty(UW,"__esModule",{value:!0});UW.default=void 0;var BX=HX(x0()),NX=CX;UW.default=NX});var b$=T((g)=>{var r=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(g,"__esModule",{value:!0});Object.defineProperty(g,"NIL",{enumerable:!0,get:function(){return bX.default}});Object.defineProperty(g,"parse",{enumerable:!0,get:function(){return cX.default}});Object.defineProperty(g,"stringify",{enumerable:!0,get:function(){return kX.default}});Object.defineProperty(g,"v1",{enumerable:!0,get:function(){return qX.default}});Object.defineProperty(g,"v3",{enumerable:!0,get:function(){return PX.default}});Object.defineProperty(g,"v4",{enumerable:!0,get:function(){return jX.default}});Object.defineProperty(g,"v5",{enumerable:!0,get:function(){return SX.default}});Object.defineProperty(g,"validate",{enumerable:!0,get:function(){return DX.default}});Object.defineProperty(g,"version",{enumerable:!0,get:function(){return hX.default}});var qX=r(BG()),PX=r(vG()),jX=r(lG()),SX=r(tG()),bX=r($W()),hX=r(GW()),DX=r(x0()),kX=r(u0()),cX=r(j$())});var h$=T((yz,EW)=>{var{defineProperty:M1,getOwnPropertyDescriptor:vX,getOwnPropertyNames:xX}=Object,uX=Object.prototype.hasOwnProperty,V0=($,U)=>M1($,"name",{value:U,configurable:!0}),yX=($,U)=>{for(var w in U)M1($,w,{get:U[w],enumerable:!0})},_X=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of xX(U))if(!uX.call($,G)&&G!==w)M1($,G,{get:()=>U[G],enumerable:!(W=vX(U,G))||W.enumerable})}return $},dX=($)=>_X(M1({},"__esModule",{value:!0}),$),WW={};yX(WW,{isClockSkewCorrectedError:()=>fW,isClockSkewError:()=>iX,isRetryableByTrait:()=>mX,isServerError:()=>oX,isThrottlingError:()=>rX,isTransientError:()=>LW});EW.exports=dX(WW);var pX=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],gX=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],lX=["TimeoutError","RequestTimeout","RequestTimeoutException"],sX=[500,502,503,504],nX=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],mX=V0(($)=>$.$retryable!==void 0,"isRetryableByTrait"),iX=V0(($)=>pX.includes($.name),"isClockSkewError"),fW=V0(($)=>{var U;return(U=$.$metadata)==null?void 0:U.clockSkewCorrected},"isClockSkewCorrectedError"),rX=V0(($)=>{var U,w;return((U=$.$metadata)==null?void 0:U.httpStatusCode)===429||gX.includes($.name)||((w=$.$retryable)==null?void 0:w.throttling)==!0},"isThrottlingError"),LW=V0(($)=>{var U;return fW($)||lX.includes($.name)||nX.includes(($==null?void 0:$.code)||"")||sX.includes(((U=$.$metadata)==null?void 0:U.httpStatusCode)||0)},"isTransientError"),oX=V0(($)=>{var U;if(((U=$.$metadata)==null?void 0:U.httpStatusCode)!==void 0){const w=$.$metadata.httpStatusCode;if(500<=w&&w<=599&&!LW($))return!0;return!1}return!1},"isServerError")});var VW=T((_z,AW)=>{var{defineProperty:A1,getOwnPropertyDescriptor:tX,getOwnPropertyNames:aX}=Object,eX=Object.prototype.hasOwnProperty,l=($,U)=>A1($,"name",{value:U,configurable:!0}),$Z=($,U)=>{for(var w in U)A1($,w,{get:U[w],enumerable:!0})},UZ=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of aX(U))if(!eX.call($,G)&&G!==w)A1($,G,{get:()=>U[G],enumerable:!(W=tX(U,G))||W.enumerable})}return $},wZ=($)=>UZ(A1({},"__esModule",{value:!0}),$),XW={};$Z(XW,{AdaptiveRetryStrategy:()=>FZ,ConfiguredRetryStrategy:()=>XZ,DEFAULT_MAX_ATTEMPTS:()=>D$,DEFAULT_RETRY_DELAY_BASE:()=>y0,DEFAULT_RETRY_MODE:()=>GZ,DefaultRateLimiter:()=>IW,INITIAL_RETRY_TOKENS:()=>k$,INVOCATION_ID_HEADER:()=>fZ,MAXIMUM_RETRY_DELAY:()=>c$,NO_RETRY_INCREMENT:()=>JW,REQUEST_HEADER:()=>LZ,RETRY_COST:()=>QW,RETRY_MODES:()=>ZW,StandardRetryStrategy:()=>v$,THROTTLING_RETRY_DELAY_BASE:()=>YW,TIMEOUT_RETRY_COST:()=>zW});AW.exports=wZ(XW);var ZW=(($)=>{return $.STANDARD="standard",$.ADAPTIVE="adaptive",$})(ZW||{}),D$=3,GZ="standard",WZ=h$(),RW=class ${constructor(U){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(U==null?void 0:U.beta)??0.7,this.minCapacity=(U==null?void 0:U.minCapacity)??1,this.minFillRate=(U==null?void 0:U.minFillRate)??0.5,this.scaleConstant=(U==null?void 0:U.scaleConstant)??0.4,this.smooth=(U==null?void 0:U.smooth)??0.8;const w=this.getCurrentTimeInSeconds();this.lastThrottleTime=w,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(U){if(!this.enabled)return;if(this.refillTokenBucket(),U>this.currentCapacity){const w=(U-this.currentCapacity)/this.fillRate*1000;await new Promise((W)=>setTimeout(W,w))}this.currentCapacity=this.currentCapacity-U}refillTokenBucket(){const U=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=U;return}const w=(U-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+w),this.lastTimestamp=U}updateClientSendingRate(U){let w;if(this.updateMeasuredRate(),WZ.isThrottlingError(U)){const G=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=G,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),w=this.cubicThrottle(G),this.enableTokenBucket()}else this.calculateTimeWindow(),w=this.cubicSuccess(this.getCurrentTimeInSeconds());const W=Math.min(w,2*this.measuredTxRate);this.updateTokenBucketRate(W)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(U){return this.getPrecise(U*this.beta)}cubicSuccess(U){return this.getPrecise(this.scaleConstant*Math.pow(U-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(U){this.refillTokenBucket(),this.fillRate=Math.max(U,this.minFillRate),this.maxCapacity=Math.max(U,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const U=this.getCurrentTimeInSeconds(),w=Math.floor(U*2)/2;if(this.requestCount++,w>this.lastTxRateBucket){const W=this.requestCount/(w-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(W*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=w}}getPrecise(U){return parseFloat(U.toFixed(8))}};l(RW,"DefaultRateLimiter");var IW=RW,y0=100,c$=20000,YW=500,k$=500,QW=5,zW=10,JW=1,fZ="amz-sdk-invocation-id",LZ="amz-sdk-request",EZ=l(()=>{let $=y0;return{computeNextBackoffDelay:l((W)=>{return Math.floor(Math.min(c$,Math.random()*2**W*$))},"computeNextBackoffDelay"),setDelayBase:l((W)=>{$=W},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),FW=l(({retryDelay:$,retryCount:U,retryCost:w})=>{return{getRetryCount:l(()=>U,"getRetryCount"),getRetryDelay:l(()=>Math.min(c$,$),"getRetryDelay"),getRetryCost:l(()=>w,"getRetryCost")}},"createDefaultRetryToken"),KW=class ${constructor(U){this.maxAttempts=U,this.mode="standard",this.capacity=k$,this.retryBackoffStrategy=EZ(),this.maxAttemptsProvider=typeof U==="function"?U:async()=>U}async acquireInitialRetryToken(U){return FW({retryDelay:y0,retryCount:0})}async refreshRetryTokenForRetry(U,w){const W=await this.getMaxAttempts();if(this.shouldRetry(U,w,W)){const G=w.errorType;this.retryBackoffStrategy.setDelayBase(G==="THROTTLING"?YW:y0);const f=this.retryBackoffStrategy.computeNextBackoffDelay(U.getRetryCount()),L=w.retryAfterHint?Math.max(w.retryAfterHint.getTime()-Date.now()||0,f):f,E=this.getCapacityCost(G);return this.capacity-=E,FW({retryDelay:L,retryCount:U.getRetryCount()+1,retryCost:E})}throw new Error("No retry token available")}recordSuccess(U){this.capacity=Math.max(k$,this.capacity+(U.getRetryCost()??JW))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(U){return console.warn(`Max attempts provider could not resolve. Using default of ${D$}`),D$}}shouldRetry(U,w,W){return U.getRetryCount()+1<W&&this.capacity>=this.getCapacityCost(w.errorType)&&this.isRetryableError(w.errorType)}getCapacityCost(U){return U==="TRANSIENT"?zW:QW}isRetryableError(U){return U==="THROTTLING"||U==="TRANSIENT"}};l(KW,"StandardRetryStrategy");var v$=KW,TW=class ${constructor(U,w){this.maxAttemptsProvider=U,this.mode="adaptive";const{rateLimiter:W}=w??{};this.rateLimiter=W??new IW,this.standardRetryStrategy=new v$(U)}async acquireInitialRetryToken(U){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(U)}async refreshRetryTokenForRetry(U,w){return this.rateLimiter.updateClientSendingRate(w),this.standardRetryStrategy.refreshRetryTokenForRetry(U,w)}recordSuccess(U){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(U)}};l(TW,"AdaptiveRetryStrategy");var FZ=TW,MW=class $ extends v${constructor(U,w=y0){super(typeof U==="function"?U:async()=>U);if(typeof w==="number")this.computeNextBackoffDelay=()=>w;else this.computeNextBackoffDelay=w}async refreshRetryTokenForRetry(U,w){const W=await super.refreshRetryTokenForRetry(U,w);return W.getRetryDelay=()=>this.computeNextBackoffDelay(W.getRetryCount()),W}};l(MW,"ConfiguredRetryStrategy");var XZ=MW});var NW=T((dz,CW)=>{var{defineProperty:V1,getOwnPropertyDescriptor:ZZ,getOwnPropertyNames:RZ}=Object,IZ=Object.prototype.hasOwnProperty,y=($,U)=>V1($,"name",{value:U,configurable:!0}),YZ=($,U)=>{for(var w in U)V1($,w,{get:U[w],enumerable:!0})},QZ=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of RZ(U))if(!IZ.call($,G)&&G!==w)V1($,G,{get:()=>U[G],enumerable:!(W=ZZ(U,G))||W.enumerable})}return $},zZ=($)=>QZ(V1({},"__esModule",{value:!0}),$),HW={};YZ(HW,{constructStack:()=>x$});CW.exports=zZ(HW);var R0=y(($,U)=>{const w=[];if($)w.push($);if(U)for(let W of U)w.push(W);return w},"getAllAliases"),U0=y(($,U)=>{return`${$||"anonymous"}${U&&U.length>0?` (a.k.a. ${U.join(",")})`:""}`},"getMiddlewareNameWithAliases"),x$=y(()=>{let $=[],U=[],w=!1;const W=new Set,G=y((R)=>R.sort((Y,I)=>OW[I.step]-OW[Y.step]||BW[I.priority||"normal"]-BW[Y.priority||"normal"]),"sort"),f=y((R)=>{let Y=!1;const I=y((Q)=>{const A=R0(Q.name,Q.aliases);if(A.includes(R)){Y=!0;for(let K of A)W.delete(K);return!1}return!0},"filterCb");return $=$.filter(I),U=U.filter(I),Y},"removeByName"),L=y((R)=>{let Y=!1;const I=y((Q)=>{if(Q.middleware===R){Y=!0;for(let A of R0(Q.name,Q.aliases))W.delete(A);return!1}return!0},"filterCb");return $=$.filter(I),U=U.filter(I),Y},"removeByReference"),E=y((R)=>{var Y;return $.forEach((I)=>{R.add(I.middleware,{...I})}),U.forEach((I)=>{R.addRelativeTo(I.middleware,{...I})}),(Y=R.identifyOnResolve)==null||Y.call(R,Z.identifyOnResolve()),R},"cloneTo"),F=y((R)=>{const Y=[];return R.before.forEach((I)=>{if(I.before.length===0&&I.after.length===0)Y.push(I);else Y.push(...F(I))}),Y.push(R),R.after.reverse().forEach((I)=>{if(I.before.length===0&&I.after.length===0)Y.push(I);else Y.push(...F(I))}),Y},"expandRelativeMiddlewareList"),X=y((R=!1)=>{const Y=[],I=[],Q={};return $.forEach((K)=>{const z={...K,before:[],after:[]};for(let M of R0(z.name,z.aliases))Q[M]=z;Y.push(z)}),U.forEach((K)=>{const z={...K,before:[],after:[]};for(let M of R0(z.name,z.aliases))Q[M]=z;I.push(z)}),I.forEach((K)=>{if(K.toMiddleware){const z=Q[K.toMiddleware];if(z===void 0){if(R)return;throw new Error(`${K.toMiddleware} is not found when adding ${U0(K.name,K.aliases)} middleware ${K.relation} ${K.toMiddleware}`)}if(K.relation==="after")z.after.push(K);if(K.relation==="before")z.before.push(K)}}),G(Y).map(F).reduce((K,z)=>{return K.push(...z),K},[])},"getMiddlewareList"),Z={add:(R,Y={})=>{const{name:I,override:Q,aliases:A}=Y,K={step:"initialize",priority:"normal",middleware:R,...Y},z=R0(I,A);if(z.length>0){if(z.some((M)=>W.has(M))){if(!Q)throw new Error(`Duplicate middleware name '${U0(I,A)}'`);for(let M of z){const V=$.findIndex((B)=>{var e;return B.name===M||((e=B.aliases)==null?void 0:e.some((F0)=>F0===M))});if(V===-1)continue;const O=$[V];if(O.step!==K.step||K.priority!==O.priority)throw new Error(`"${U0(O.name,O.aliases)}" middleware with ${O.priority} priority in ${O.step} step cannot be overridden by "${U0(I,A)}" middleware with ${K.priority} priority in ${K.step} step.`);$.splice(V,1)}}for(let M of z)W.add(M)}$.push(K)},addRelativeTo:(R,Y)=>{const{name:I,override:Q,aliases:A}=Y,K={middleware:R,...Y},z=R0(I,A);if(z.length>0){if(z.some((M)=>W.has(M))){if(!Q)throw new Error(`Duplicate middleware name '${U0(I,A)}'`);for(let M of z){const V=U.findIndex((B)=>{var e;return B.name===M||((e=B.aliases)==null?void 0:e.some((F0)=>F0===M))});if(V===-1)continue;const O=U[V];if(O.toMiddleware!==K.toMiddleware||O.relation!==K.relation)throw new Error(`"${U0(O.name,O.aliases)}" middleware ${O.relation} "${O.toMiddleware}" middleware cannot be overridden by "${U0(I,A)}" middleware ${K.relation} "${K.toMiddleware}" middleware.`);U.splice(V,1)}}for(let M of z)W.add(M)}U.push(K)},clone:()=>E(x$()),use:(R)=>{R.applyToStack(Z)},remove:(R)=>{if(typeof R==="string")return f(R);else return L(R)},removeByTag:(R)=>{let Y=!1;const I=y((Q)=>{const{tags:A,name:K,aliases:z}=Q;if(A&&A.includes(R)){const M=R0(K,z);for(let V of M)W.delete(V);return Y=!0,!1}return!0},"filterCb");return $=$.filter(I),U=U.filter(I),Y},concat:(R)=>{var Y;const I=E(x$());return I.use(R),I.identifyOnResolve(w||I.identifyOnResolve()||(((Y=R.identifyOnResolve)==null?void 0:Y.call(R))??!1)),I},applyToStack:E,identify:()=>{return X(!0).map((R)=>{const Y=R.step??R.relation+" "+R.toMiddleware;return U0(R.name,R.aliases)+" - "+Y})},identifyOnResolve(R){if(typeof R==="boolean")w=R;return w},resolve:(R,Y)=>{for(let I of X().map((Q)=>Q.middleware).reverse())R=I(R,Y);if(w)console.log(Z.identify());return R}};return Z},"constructStack"),OW={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},BW={high:3,normal:2,low:1}});var u$=T((pz,PW)=>{var{defineProperty:O1,getOwnPropertyDescriptor:JZ,getOwnPropertyNames:KZ}=Object,TZ=Object.prototype.hasOwnProperty,MZ=($,U)=>O1($,"name",{value:U,configurable:!0}),AZ=($,U)=>{for(var w in U)O1($,w,{get:U[w],enumerable:!0})},VZ=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of KZ(U))if(!TZ.call($,G)&&G!==w)O1($,G,{get:()=>U[G],enumerable:!(W=JZ(U,G))||W.enumerable})}return $},OZ=($)=>VZ(O1({},"__esModule",{value:!0}),$),qW={};AZ(qW,{isArrayBuffer:()=>BZ});PW.exports=OZ(qW);var BZ=MZ(($)=>typeof ArrayBuffer==="function"&&$ instanceof ArrayBuffer||Object.prototype.toString.call($)==="[object ArrayBuffer]","isArrayBuffer")});var _0=T((gz,bW)=>{var{defineProperty:B1,getOwnPropertyDescriptor:HZ,getOwnPropertyNames:CZ}=Object,NZ=Object.prototype.hasOwnProperty,jW=($,U)=>B1($,"name",{value:U,configurable:!0}),qZ=($,U)=>{for(var w in U)B1($,w,{get:U[w],enumerable:!0})},PZ=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of CZ(U))if(!NZ.call($,G)&&G!==w)B1($,G,{get:()=>U[G],enumerable:!(W=HZ(U,G))||W.enumerable})}return $},jZ=($)=>PZ(B1({},"__esModule",{value:!0}),$),SW={};qZ(SW,{fromArrayBuffer:()=>bZ,fromString:()=>hZ});bW.exports=jZ(SW);var SZ=u$(),y$=import.meta.require("buffer"),bZ=jW(($,U=0,w=$.byteLength-U)=>{if(!SZ.isArrayBuffer($))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof $} (${$})`);return y$.Buffer.from($,U,w)},"fromArrayBuffer"),hZ=jW(($,U)=>{if(typeof $!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof $} (${$})`);return U?y$.Buffer.from($,U):y$.Buffer.from($)},"fromString")});var kW=T((hW)=>{Object.defineProperty(hW,"__esModule",{value:!0});hW.fromBase64=void 0;var DZ=_0(),kZ=/^[A-Za-z0-9+/]*={0,2}$/,cZ=($)=>{if($.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!kZ.exec($))throw new TypeError("Invalid base64 string.");const U=DZ.fromString($,"base64");return new Uint8Array(U.buffer,U.byteOffset,U.byteLength)};hW.fromBase64=cZ});var w0=T((sz,uW)=>{var{defineProperty:H1,getOwnPropertyDescriptor:vZ,getOwnPropertyNames:xZ}=Object,uZ=Object.prototype.hasOwnProperty,_$=($,U)=>H1($,"name",{value:U,configurable:!0}),yZ=($,U)=>{for(var w in U)H1($,w,{get:U[w],enumerable:!0})},_Z=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of xZ(U))if(!uZ.call($,G)&&G!==w)H1($,G,{get:()=>U[G],enumerable:!(W=vZ(U,G))||W.enumerable})}return $},dZ=($)=>_Z(H1({},"__esModule",{value:!0}),$),cW={};yZ(cW,{fromUtf8:()=>xW,toUint8Array:()=>pZ,toUtf8:()=>gZ});uW.exports=dZ(cW);var vW=_0(),xW=_$(($)=>{const U=vW.fromString($,"utf8");return new Uint8Array(U.buffer,U.byteOffset,U.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),pZ=_$(($)=>{if(typeof $==="string")return xW($);if(ArrayBuffer.isView($))return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array($)},"toUint8Array"),gZ=_$(($)=>{if(typeof $==="string")return $;if(typeof $!=="object"||typeof $.byteOffset!=="number"||typeof $.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return vW.fromArrayBuffer($.buffer,$.byteOffset,$.byteLength).toString("utf8")},"toUtf8")});var dW=T((yW)=>{Object.defineProperty(yW,"__esModule",{value:!0});yW.toBase64=void 0;var lZ=_0(),sZ=w0(),nZ=($)=>{let U;if(typeof $==="string")U=sZ.fromUtf8($);else U=$;if(typeof U!=="object"||typeof U.byteOffset!=="number"||typeof U.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return lZ.fromArrayBuffer(U.buffer,U.byteOffset,U.byteLength).toString("base64")};yW.toBase64=nZ});var N1=T((mz,C1)=>{var{defineProperty:pW,getOwnPropertyDescriptor:mZ,getOwnPropertyNames:iZ}=Object,rZ=Object.prototype.hasOwnProperty,d$=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of iZ(U))if(!rZ.call($,G)&&G!==w)pW($,G,{get:()=>U[G],enumerable:!(W=mZ(U,G))||W.enumerable})}return $},gW=($,U,w)=>(d$($,U,"default"),w&&d$(w,U,"default")),oZ=($)=>d$(pW({},"__esModule",{value:!0}),$),p$={};C1.exports=oZ(p$);gW(p$,kW(),C1.exports);gW(p$,dW(),C1.exports)});var nW=T((lW)=>{Object.defineProperty(lW,"__esModule",{value:!0});lW.getAwsChunkedEncodingStream=void 0;var tZ=import.meta.require("stream"),aZ=($,U)=>{const{base64Encoder:w,bodyLengthChecker:W,checksumAlgorithmFn:G,checksumLocationName:f,streamHasher:L}=U,E=w!==void 0&&G!==void 0&&f!==void 0&&L!==void 0,F=E?L(G,$):void 0,X=new tZ.Readable({read:()=>{}});return $.on("data",(Z)=>{const R=W(Z)||0;X.push(`${R.toString(16)}\r\n`),X.push(Z),X.push("\r\n")}),$.on("end",async()=>{if(X.push("0\r\n"),E){const Z=w(await F);X.push(`${f}:${Z}\r\n`),X.push("\r\n")}X.push(null)}),X};lW.getAwsChunkedEncodingStream=aZ});var l$=T((rz,oW)=>{var rW=function($){const U=[];for(let w of Object.keys($).sort()){const W=$[w];if(w=g$.escapeUri(w),Array.isArray(W))for(let G=0,f=W.length;G<f;G++)U.push(`${w}=${g$.escapeUri(W[G])}`);else{let G=w;if(W||typeof W==="string")G+=`=${g$.escapeUri(W)}`;U.push(G)}}return U.join("&")},q1=Object.defineProperty,eZ=Object.getOwnPropertyDescriptor,$R=Object.getOwnPropertyNames,UR=Object.prototype.hasOwnProperty,wR=($,U)=>q1($,"name",{value:U,configurable:!0}),GR=($,U)=>{for(var w in U)q1($,w,{get:U[w],enumerable:!0})},WR=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of $R(U))if(!UR.call($,G)&&G!==w)q1($,G,{get:()=>U[G],enumerable:!(W=eZ(U,G))||W.enumerable})}return $},fR=($)=>WR(q1({},"__esModule",{value:!0}),$),iW={};GR(iW,{buildQueryString:()=>rW});oW.exports=fR(iW);var g$=mW();wR(rW,"buildQueryString")});var Y8=T((oz,I8)=>{async function m$($,U,w=tW){const W=U.headers??{},G=W.Expect||W.expect;let f=-1,L=!1;if(G==="100-continue")await Promise.race([new Promise((E)=>{f=Number(setTimeout(E,Math.max(tW,w)))}),new Promise((E)=>{$.on("continue",()=>{clearTimeout(f),E()}),$.on("error",()=>{L=!0,clearTimeout(f),E()})})]);if(!L)f8($,U.body)}var f8=function($,U){if(U instanceof W8.Readable){U.pipe($);return}if(U){if(Buffer.isBuffer(U)||typeof U==="string"){$.end(U);return}const w=U;if(typeof w==="object"&&w.buffer&&typeof w.byteOffset==="number"&&typeof w.byteLength==="number"){$.end(Buffer.from(w.buffer,w.byteOffset,w.byteLength));return}$.end(Buffer.from(U));return}$.end()};async function R8($){const U=[],w=$.getReader();let W=!1,G=0;while(!W){const{done:E,value:F}=await w.read();if(F)U.push(F),G+=F.length;W=E}const f=new Uint8Array(G);let L=0;for(let E of U)f.set(E,L),L+=E.length;return f}var{create:LR,defineProperty:d0,getOwnPropertyDescriptor:ER,getOwnPropertyNames:FR,getPrototypeOf:XR}=Object,ZR=Object.prototype.hasOwnProperty,P=($,U)=>d0($,"name",{value:U,configurable:!0}),RR=($,U)=>{for(var w in U)d0($,w,{get:U[w],enumerable:!0})},eW=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of FR(U))if(!ZR.call($,G)&&G!==w)d0($,G,{get:()=>U[G],enumerable:!(W=ER(U,G))||W.enumerable})}return $},IR=($,U,w)=>(w=$!=null?LR(XR($)):{},eW(U||!$||!$.__esModule?d0(w,"default",{value:$,enumerable:!0}):w,$)),YR=($)=>eW(d0({},"__esModule",{value:!0}),$),$8={};RR($8,{DEFAULT_REQUEST_TIMEOUT:()=>TR,NodeHttp2Handler:()=>BR,NodeHttpHandler:()=>MR,streamCollector:()=>CR});I8.exports=YR($8);var U8=i(),w8=l$(),s$=import.meta.require("http"),n$=import.meta.require("https"),QR=["ECONNRESET","EPIPE","ETIMEDOUT"],G8=P(($)=>{const U={};for(let w of Object.keys($)){const W=$[w];U[w]=Array.isArray(W)?W.join(","):W}return U},"getTransformedHeaders"),zR=P(($,U,w=0)=>{if(!w)return;const W=setTimeout(()=>{$.destroy(),U(Object.assign(new Error(`Socket timed out without establishing a connection within ${w} ms`),{name:"TimeoutError"}))},w);$.on("socket",(G)=>{if(G.connecting)G.on("connect",()=>{clearTimeout(W)});else clearTimeout(W)})},"setConnectionTimeout"),JR=P(($,{keepAlive:U,keepAliveMsecs:w})=>{if(U!==!0)return;$.on("socket",(W)=>{W.setKeepAlive(U,w||0)})},"setSocketKeepAlive"),KR=P(($,U,w=0)=>{$.setTimeout(w,()=>{$.destroy(),U(Object.assign(new Error(`Connection timed out after ${w} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),W8=import.meta.require("stream"),tW=1000;P(m$,"writeRequestBody");P(f8,"writeBody");var TR=0,L8=class ${constructor(U){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((w,W)=>{if(typeof U==="function")U().then((G)=>{w(this.resolveDefaultConfig(G))}).catch(W);else w(this.resolveDefaultConfig(U))})}static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}static checkSocketUsage(U,w,W=console){var G,f,L;const{sockets:E,requests:F,maxSockets:X}=U;if(typeof X!=="number"||X===Infinity)return w;const Z=15000;if(Date.now()-Z<w)return w;if(E&&F)for(let R in E){const Y=((G=E[R])==null?void 0:G.length)??0,I=((f=F[R])==null?void 0:f.length)??0;if(Y>=X&&I>=2*X)return(L=W==null?void 0:W.warn)==null||L.call(W,`@smithy/node-http-handler:WARN - socket usage at capacity=${Y} and ${I} additional requests are enqueued.
|
|
2
|
+
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
3
|
+
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return w}resolveDefaultConfig(U){const{requestTimeout:w,connectionTimeout:W,socketTimeout:G,httpAgent:f,httpsAgent:L}=U||{};return{connectionTimeout:W,requestTimeout:w??G,httpAgent:(()=>{if(f instanceof s$.Agent||typeof(f==null?void 0:f.destroy)==="function")return f;return new s$.Agent({keepAlive:!0,maxSockets:50,...f})})(),httpsAgent:(()=>{if(L instanceof n$.Agent||typeof(L==null?void 0:L.destroy)==="function")return L;return new n$.Agent({keepAlive:!0,maxSockets:50,...L})})(),logger:console}}destroy(){var U,w,W,G;(w=(U=this.config)==null?void 0:U.httpAgent)==null||w.destroy(),(G=(W=this.config)==null?void 0:W.httpsAgent)==null||G.destroy()}async handle(U,{abortSignal:w}={}){if(!this.config)this.config=await this.configProvider;let W;return new Promise((G,f)=>{let L=void 0;const E=P(async(M)=>{await L,clearTimeout(W),G(M)},"resolve"),F=P(async(M)=>{await L,clearTimeout(W),f(M)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(w==null?void 0:w.aborted){const M=new Error("Request aborted");M.name="AbortError",F(M);return}const X=U.protocol==="https:",Z=X?this.config.httpsAgent:this.config.httpAgent;W=setTimeout(()=>{this.socketWarningTimestamp=$.checkSocketUsage(Z,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const R=w8.buildQueryString(U.query||{});let Y=void 0;if(U.username!=null||U.password!=null){const M=U.username??"",V=U.password??"";Y=`${M}:${V}`}let I=U.path;if(R)I+=`?${R}`;if(U.fragment)I+=`#${U.fragment}`;const Q={headers:U.headers,host:U.hostname,method:U.method,path:I,port:U.port,agent:Z,auth:Y},K=(X?n$.request:s$.request)(Q,(M)=>{const V=new U8.HttpResponse({statusCode:M.statusCode||-1,reason:M.statusMessage,headers:G8(M.headers),body:M});E({response:V})});if(K.on("error",(M)=>{if(QR.includes(M.code))F(Object.assign(M,{name:"TimeoutError"}));else F(M)}),zR(K,F,this.config.connectionTimeout),KR(K,F,this.config.requestTimeout),w){const M=P(()=>{K.destroy();const V=new Error("Request aborted");V.name="AbortError",F(V)},"onAbort");if(typeof w.addEventListener==="function"){const V=w;V.addEventListener("abort",M,{once:!0}),K.once("close",()=>V.removeEventListener("abort",M))}else w.onabort=M}const z=Q.agent;if(typeof z==="object"&&"keepAlive"in z)JR(K,{keepAlive:z.keepAlive,keepAliveMsecs:z.keepAliveMsecs});L=m$(K,U,this.config.requestTimeout).catch((M)=>{return clearTimeout(W),f(M)})})}updateHttpClientConfig(U,w){this.config=void 0,this.configProvider=this.configProvider.then((W)=>{return{...W,[U]:w}})}httpHandlerConfigs(){return this.config??{}}};P(L8,"NodeHttpHandler");var MR=L8,aW=import.meta.require("http2"),AR=IR(import.meta.require("http2")),E8=class ${constructor(U){this.sessions=[],this.sessions=U??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(U){this.sessions.push(U)}contains(U){return this.sessions.includes(U)}remove(U){this.sessions=this.sessions.filter((w)=>w!==U)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(U){for(let w of this.sessions)if(w===U){if(!w.destroyed)w.destroy()}}};P(E8,"NodeHttp2ConnectionPool");var VR=E8,F8=class ${constructor(U){if(this.sessionCache=new Map,this.config=U,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(U,w){const W=this.getUrlString(U),G=this.sessionCache.get(W);if(G){const F=G.poll();if(F&&!this.config.disableConcurrency)return F}const f=AR.default.connect(W);if(this.config.maxConcurrency)f.settings({maxConcurrentStreams:this.config.maxConcurrency},(F)=>{if(F)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+U.destination.toString())});f.unref();const L=P(()=>{f.destroy(),this.deleteSession(W,f)},"destroySessionCb");if(f.on("goaway",L),f.on("error",L),f.on("frameError",L),f.on("close",()=>this.deleteSession(W,f)),w.requestTimeout)f.setTimeout(w.requestTimeout,L);const E=this.sessionCache.get(W)||new VR;return E.offerLast(f),this.sessionCache.set(W,E),f}deleteSession(U,w){const W=this.sessionCache.get(U);if(!W)return;if(!W.contains(w))return;W.remove(w),this.sessionCache.set(U,W)}release(U,w){var W;const G=this.getUrlString(U);(W=this.sessionCache.get(G))==null||W.offerLast(w)}destroy(){for(let[U,w]of this.sessionCache){for(let W of w){if(!W.destroyed)W.destroy();w.remove(W)}this.sessionCache.delete(U)}}setMaxConcurrentStreams(U){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=U}setDisableConcurrentStreams(U){this.config.disableConcurrency=U}getUrlString(U){return U.destination.toString()}};P(F8,"NodeHttp2ConnectionManager");var OR=F8,X8=class ${constructor(U){this.metadata={handlerProtocol:"h2"},this.connectionManager=new OR({}),this.configProvider=new Promise((w,W)=>{if(typeof U==="function")U().then((G)=>{w(G||{})}).catch(W);else w(U||{})})}static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}destroy(){this.connectionManager.destroy()}async handle(U,{abortSignal:w}={}){if(!this.config){if(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams)this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}const{requestTimeout:W,disableConcurrentStreams:G}=this.config;return new Promise((f,L)=>{var E;let F=!1,X=void 0;const Z=P(async(q)=>{await X,f(q)},"resolve"),R=P(async(q)=>{await X,L(q)},"reject");if(w==null?void 0:w.aborted){F=!0;const q=new Error("Request aborted");q.name="AbortError",R(q);return}const{hostname:Y,method:I,port:Q,protocol:A,query:K}=U;let z="";if(U.username!=null||U.password!=null){const q=U.username??"",d=U.password??"";z=`${q}:${d}@`}const M=`${A}//${z}${Y}${Q?`:${Q}`:""}`,V={destination:new URL(M)},O=this.connectionManager.lease(V,{requestTimeout:(E=this.config)==null?void 0:E.sessionTimeout,disableConcurrentStreams:G||!1}),B=P((q)=>{if(G)this.destroySession(O);F=!0,R(q)},"rejectWithDestroy"),e=w8.buildQueryString(K||{});let F0=U.path;if(e)F0+=`?${e}`;if(U.fragment)F0+=`#${U.fragment}`;const v=O.request({...U.headers,[aW.constants.HTTP2_HEADER_PATH]:F0,[aW.constants.HTTP2_HEADER_METHOD]:I});if(O.ref(),v.on("response",(q)=>{const d=new U8.HttpResponse({statusCode:q[":status"]||-1,headers:G8(q),body:v});if(F=!0,Z({response:d}),G)O.close(),this.connectionManager.deleteSession(M,O)}),W)v.setTimeout(W,()=>{v.close();const q=new Error(`Stream timed out because of no activity for ${W} ms`);q.name="TimeoutError",B(q)});if(w){const q=P(()=>{v.close();const d=new Error("Request aborted");d.name="AbortError",B(d)},"onAbort");if(typeof w.addEventListener==="function"){const d=w;d.addEventListener("abort",q,{once:!0}),v.once("close",()=>d.removeEventListener("abort",q))}else w.onabort=q}v.on("frameError",(q,d,YE)=>{B(new Error(`Frame type id ${q} in stream id ${YE} has failed with code ${d}.`))}),v.on("error",B),v.on("aborted",()=>{B(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${v.rstCode}.`))}),v.on("close",()=>{if(O.unref(),G)O.destroy();if(!F)B(new Error("Unexpected error: http2 request did not get a response"))}),X=m$(v,U,W)})}updateHttpClientConfig(U,w){this.config=void 0,this.configProvider=this.configProvider.then((W)=>{return{...W,[U]:w}})}httpHandlerConfigs(){return this.config??{}}destroySession(U){if(!U.destroyed)U.destroy()}};P(X8,"NodeHttp2Handler");var BR=X8,Z8=class $ extends W8.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(U,w,W){this.bufferedBytes.push(U),W()}};P(Z8,"Collector");var HR=Z8,CR=P(($)=>{if(NR($))return R8($);return new Promise((U,w)=>{const W=new HR;$.pipe(W),$.on("error",(G)=>{W.end(),w(G)}),W.on("error",w),W.on("finish",function(){const G=new Uint8Array(Buffer.concat(this.bufferedBytes));U(G)})})},"streamCollector"),NR=P(($)=>typeof ReadableStream==="function"&&$ instanceof ReadableStream,"isReadableStreamInstance");P(R8,"collectReadableStream")});var O8=T((tz,V8)=>{var J8=function($=0){return new Promise((U,w)=>{if($)setTimeout(()=>{const W=new Error(`Request did not complete within ${$} ms`);W.name="TimeoutError",w(W)},$)})};async function T8($){const U=await A8($),w=cR.fromBase64(U);return new Uint8Array(w)}async function M8($){const U=[],w=$.getReader();let W=!1,G=0;while(!W){const{done:E,value:F}=await w.read();if(F)U.push(F),G+=F.length;W=E}const f=new Uint8Array(G);let L=0;for(let E of U)f.set(E,L),L+=E.length;return f}var A8=function($){return new Promise((U,w)=>{const W=new FileReader;W.onloadend=()=>{if(W.readyState!==2)return w(new Error("Reader aborted too early"));const G=W.result??"",f=G.indexOf(","),L=f>-1?f+1:G.length;U(G.substring(L))},W.onabort=()=>w(new Error("Read aborted")),W.onerror=()=>w(W.error),W.readAsDataURL($)})},j1=Object.defineProperty,qR=Object.getOwnPropertyDescriptor,PR=Object.getOwnPropertyNames,jR=Object.prototype.hasOwnProperty,o=($,U)=>j1($,"name",{value:U,configurable:!0}),SR=($,U)=>{for(var w in U)j1($,w,{get:U[w],enumerable:!0})},bR=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of PR(U))if(!jR.call($,G)&&G!==w)j1($,G,{get:()=>U[G],enumerable:!(W=qR(U,G))||W.enumerable})}return $},hR=($)=>bR(j1({},"__esModule",{value:!0}),$),z8={};SR(z8,{FetchHttpHandler:()=>kR,keepAliveSupport:()=>P1,streamCollector:()=>vR});V8.exports=hR(z8);var Q8=i(),DR=l$();o(J8,"requestTimeout");var P1={supported:void 0},K8=class ${static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}constructor(U){if(typeof U==="function")this.configProvider=U().then((w)=>w||{});else this.config=U??{},this.configProvider=Promise.resolve(this.config);if(P1.supported===void 0)P1.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in new Request("https://[::1]"))}destroy(){}async handle(U,{abortSignal:w}={}){if(!this.config)this.config=await this.configProvider;const W=this.config.requestTimeout,G=this.config.keepAlive===!0,f=this.config.credentials;if(w==null?void 0:w.aborted){const z=new Error("Request aborted");return z.name="AbortError",Promise.reject(z)}let L=U.path;const E=DR.buildQueryString(U.query||{});if(E)L+=`?${E}`;if(U.fragment)L+=`#${U.fragment}`;let F="";if(U.username!=null||U.password!=null){const z=U.username??"",M=U.password??"";F=`${z}:${M}@`}const{port:X,method:Z}=U,R=`${U.protocol}//${F}${U.hostname}${X?`:${X}`:""}${L}`,Y=Z==="GET"||Z==="HEAD"?void 0:U.body,I={body:Y,headers:new Headers(U.headers),method:Z,credentials:f};if(Y)I.duplex="half";if(typeof AbortController!=="undefined")I.signal=w;if(P1.supported)I.keepalive=G;let Q=o(()=>{},"removeSignalEventListener");const A=new Request(R,I),K=[fetch(A).then((z)=>{const M=z.headers,V={};for(let B of M.entries())V[B[0]]=B[1];if(z.body==null)return z.blob().then((B)=>({response:new Q8.HttpResponse({headers:V,reason:z.statusText,statusCode:z.status,body:B})}));return{response:new Q8.HttpResponse({headers:V,reason:z.statusText,statusCode:z.status,body:z.body})}}),J8(W)];if(w)K.push(new Promise((z,M)=>{const V=o(()=>{const O=new Error("Request aborted");O.name="AbortError",M(O)},"onAbort");if(typeof w.addEventListener==="function"){const O=w;O.addEventListener("abort",V,{once:!0}),Q=o(()=>O.removeEventListener("abort",V),"removeSignalEventListener")}else w.onabort=V}));return Promise.race(K).finally(Q)}updateHttpClientConfig(U,w){this.config=void 0,this.configProvider=this.configProvider.then((W)=>{return W[U]=w,W})}httpHandlerConfigs(){return this.config??{}}};o(K8,"FetchHttpHandler");var kR=K8,cR=N1(),vR=o(($)=>{if(typeof Blob==="function"&&$ instanceof Blob)return T8($);return M8($)},"streamCollector");o(T8,"collectBlob");o(M8,"collectStream");o(A8,"readToBase64")});var r$=T((az,P8)=>{var N8=function($){if($.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const U=new Uint8Array($.length/2);for(let w=0;w<$.length;w+=2){const W=$.slice(w,w+2).toLowerCase();if(W in i$)U[w/2]=i$[W];else throw new Error(`Cannot decode unrecognized sequence ${W} as hexadecimal`)}return U},q8=function($){let U="";for(let w=0;w<$.byteLength;w++)U+=C8[$[w]];return U},S1=Object.defineProperty,xR=Object.getOwnPropertyDescriptor,uR=Object.getOwnPropertyNames,yR=Object.prototype.hasOwnProperty,B8=($,U)=>S1($,"name",{value:U,configurable:!0}),_R=($,U)=>{for(var w in U)S1($,w,{get:U[w],enumerable:!0})},dR=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of uR(U))if(!yR.call($,G)&&G!==w)S1($,G,{get:()=>U[G],enumerable:!(W=xR(U,G))||W.enumerable})}return $},pR=($)=>dR(S1({},"__esModule",{value:!0}),$),H8={};_R(H8,{fromHex:()=>N8,toHex:()=>q8});P8.exports=pR(H8);var C8={},i$={};for(let $=0;$<256;$++){let U=$.toString(16).toLowerCase();if(U.length===1)U=`0${U}`;C8[$]=U,i$[U]=$}B8(N8,"fromHex");B8(q8,"toHex")});var p0=T((j8)=>{Object.defineProperty(j8,"__esModule",{value:!0});j8.isReadableStream=void 0;var gR=($)=>{var U;return typeof ReadableStream==="function"&&(((U=$===null||$===void 0?void 0:$.constructor)===null||U===void 0?void 0:U.name)===ReadableStream.name||$ instanceof ReadableStream)};j8.isReadableStream=gR});var v8=T((k8)=>{Object.defineProperty(k8,"__esModule",{value:!0});k8.sdkStreamMixin=void 0;var lR=O8(),sR=N1(),nR=r$(),mR=w0(),b8=p0(),h8="The stream has already been transformed.",iR=($)=>{var U,w;if(!D8($)&&!b8.isReadableStream($)){const L=((w=(U=$===null||$===void 0?void 0:$.__proto__)===null||U===void 0?void 0:U.constructor)===null||w===void 0?void 0:w.name)||$;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${L}`)}let W=!1;const G=async()=>{if(W)throw new Error(h8);return W=!0,await lR.streamCollector($)},f=(L)=>{if(typeof L.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return L.stream()};return Object.assign($,{transformToByteArray:G,transformToString:async(L)=>{const E=await G();if(L==="base64")return sR.toBase64(E);else if(L==="hex")return nR.toHex(E);else if(L===void 0||L==="utf8"||L==="utf-8")return mR.toUtf8(E);else if(typeof TextDecoder==="function")return new TextDecoder(L).decode(E);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(W)throw new Error(h8);if(W=!0,D8($))return f($);else if(b8.isReadableStream($))return $;else throw new Error(`Cannot transform payload to web stream, got ${$}`)}})};k8.sdkStreamMixin=iR;var D8=($)=>typeof Blob==="function"&&$ instanceof Blob});var _8=T((u8)=>{Object.defineProperty(u8,"__esModule",{value:!0});u8.sdkStreamMixin=void 0;var rR=Y8(),oR=_0(),o$=import.meta.require("stream"),tR=import.meta.require("util"),aR=v8(),x8="The stream has already been transformed.",eR=($)=>{var U,w;if(!($ instanceof o$.Readable))try{return aR.sdkStreamMixin($)}catch(f){const L=((w=(U=$===null||$===void 0?void 0:$.__proto__)===null||U===void 0?void 0:U.constructor)===null||w===void 0?void 0:w.name)||$;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${L}`)}let W=!1;const G=async()=>{if(W)throw new Error(x8);return W=!0,await rR.streamCollector($)};return Object.assign($,{transformToByteArray:G,transformToString:async(f)=>{const L=await G();if(f===void 0||Buffer.isEncoding(f))return oR.fromArrayBuffer(L.buffer,L.byteOffset,L.byteLength).toString(f);else return new tR.TextDecoder(f).decode(L)},transformToWebStream:()=>{if(W)throw new Error(x8);if($.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof o$.Readable.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return W=!0,o$.Readable.toWeb($)}})};u8.sdkStreamMixin=eR});var g8=T((d8)=>{async function $I($){if(typeof $.stream==="function")$=$.stream();return $.tee()}Object.defineProperty(d8,"__esModule",{value:!0});d8.splitStream=void 0;d8.splitStream=$I});var m8=T((s8)=>{async function GI($){if(wI.isReadableStream($))return UI.splitStream($);const U=new l8.PassThrough,w=new l8.PassThrough;return $.pipe(U),$.pipe(w),[U,w]}Object.defineProperty(s8,"__esModule",{value:!0});s8.splitStream=void 0;var l8=import.meta.require("stream"),UI=g8(),wI=p0();s8.splitStream=GI});var o8=T((i8)=>{async function WI($,U){var w;let W=0;const G=[],f=$.getReader();let L=!1;while(!L){const{done:X,value:Z}=await f.read();if(Z)G.push(Z),W+=(w=Z===null||Z===void 0?void 0:Z.byteLength)!==null&&w!==void 0?w:0;if(W>=U)break;L=X}f.releaseLock();const E=new Uint8Array(Math.min(U,W));let F=0;for(let X of G){if(X.byteLength>E.byteLength-F){E.set(X.subarray(0,E.byteLength-F),F);break}else E.set(X,F);F+=X.length}return E}Object.defineProperty(i8,"__esModule",{value:!0});i8.headStream=void 0;i8.headStream=WI});var $4=T((a8)=>{Object.defineProperty(a8,"__esModule",{value:!0});a8.headStream=void 0;var fI=import.meta.require("stream"),LI=o8(),EI=p0(),FI=($,U)=>{if(EI.isReadableStream($))return LI.headStream($,U);return new Promise((w,W)=>{const G=new t8;G.limit=U,$.pipe(G),$.on("error",(f)=>{G.end(),W(f)}),G.on("error",W),G.on("finish",function(){const f=new Uint8Array(Buffer.concat(this.buffers));w(f)})})};a8.headStream=FI;class t8 extends fI.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=Infinity,this.bytesBuffered=0}_write($,U,w){var W;if(this.buffers.push($),this.bytesBuffered+=(W=$.byteLength)!==null&&W!==void 0?W:0,this.bytesBuffered>=this.limit){const G=this.bytesBuffered-this.limit,f=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=f.subarray(0,f.byteLength-G),this.emit("finish")}w()}}});var L4=T((LJ,Y0)=>{var G4=function($,U="utf-8"){if(U==="base64")return U4.toBase64($);return w4.toUtf8($)},W4=function($,U){if(U==="base64")return a$.mutate(U4.fromBase64($));return a$.mutate(w4.fromUtf8($))},b1=Object.defineProperty,XI=Object.getOwnPropertyDescriptor,ZI=Object.getOwnPropertyNames,RI=Object.prototype.hasOwnProperty,e$=($,U)=>b1($,"name",{value:U,configurable:!0}),II=($,U)=>{for(var w in U)b1($,w,{get:U[w],enumerable:!0})},t$=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of ZI(U))if(!RI.call($,G)&&G!==w)b1($,G,{get:()=>U[G],enumerable:!(W=XI(U,G))||W.enumerable})}return $},g0=($,U,w)=>(t$($,U,"default"),w&&t$(w,U,"default")),YI=($)=>t$(b1({},"__esModule",{value:!0}),$),I0={};II(I0,{Uint8ArrayBlobAdapter:()=>a$});Y0.exports=YI(I0);var U4=N1(),w4=w0();e$(G4,"transformToString");e$(W4,"transformFromString");var f4=class $ extends Uint8Array{static fromString(U,w="utf-8"){switch(typeof U){case"string":return W4(U,w);default:throw new Error(`Unsupported conversion from ${typeof U} to Uint8ArrayBlobAdapter.`)}}static mutate(U){return Object.setPrototypeOf(U,$.prototype),U}transformToString(U="utf-8"){return G4(this,U)}};e$(f4,"Uint8ArrayBlobAdapter");var a$=f4;g0(I0,nW(),Y0.exports);g0(I0,_8(),Y0.exports);g0(I0,m8(),Y0.exports);g0(I0,$4(),Y0.exports);g0(I0,p0(),Y0.exports)});var C0=T((EJ,j4)=>{var A4=function($){const U=$.getUTCFullYear(),w=$.getUTCMonth(),W=$.getUTCDay(),G=$.getUTCDate(),f=$.getUTCHours(),L=$.getUTCMinutes(),E=$.getUTCSeconds(),F=G<10?`0${G}`:`${G}`,X=f<10?`0${f}`:`${f}`,Z=L<10?`0${L}`:`${L}`,R=E<10?`0${E}`:`${E}`;return`${dI[W]}, ${F} ${ZU[w]} ${U} ${X}:${Z}:${R} GMT`},k1=function($){return encodeURIComponent($).replace(/[!'()*]/g,function(U){return"%"+U.charCodeAt(0).toString(16).toUpperCase()})},RU=function($,U,w){let W,G,f;if(typeof U==="undefined"&&typeof w==="undefined")W={},f=$;else if(W=$,typeof U==="function")return G=U,f=w,AY(W,G,f);else f=U;for(let L of Object.keys(f)){if(!Array.isArray(f[L])){W[L]=f[L];continue}q4(W,null,f,L)}return W},P4=function($,U,w){if(w<=0||!Number.isInteger(w))throw new Error("Invalid number of delimiters ("+w+") for splitEvery.");const W=$.split(U);if(w===1)return W;const G=[];let f="";for(let L=0;L<W.length;L++){if(f==="")f=W[L];else f+=U+W[L];if((L+1)%w===0)G.push(f),f=""}if(f!=="")G.push(f);return G},c1=Object.defineProperty,QI=Object.getOwnPropertyDescriptor,zI=Object.getOwnPropertyNames,JI=Object.prototype.hasOwnProperty,J=($,U)=>c1($,"name",{value:U,configurable:!0}),KI=($,U)=>{for(var w in U)c1($,w,{get:U[w],enumerable:!0})},TI=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of zI(U))if(!JI.call($,G)&&G!==w)c1($,G,{get:()=>U[G],enumerable:!(W=QI(U,G))||W.enumerable})}return $},MI=($)=>TI(c1({},"__esModule",{value:!0}),$),F4={};KI(F4,{Client:()=>VI,Command:()=>Y4,LazyJsonString:()=>KY,NoOpLogger:()=>AI,SENSITIVE_STRING:()=>HI,ServiceException:()=>fY,StringWrapper:()=>i0,_json:()=>LU,collectBody:()=>OI,convertMap:()=>TY,createAggregatedClient:()=>CI,dateToUtcString:()=>A4,decorateServiceException:()=>O4,emitWarningIfUnsupportedVersion:()=>XY,expectBoolean:()=>qI,expectByte:()=>fU,expectFloat32:()=>h1,expectInt:()=>jI,expectInt32:()=>GU,expectLong:()=>n0,expectNonNull:()=>bI,expectNumber:()=>s0,expectObject:()=>z4,expectShort:()=>WU,expectString:()=>hI,expectUnion:()=>DI,extendedEncodeURIComponent:()=>k1,getArrayIfSingleItem:()=>JY,getDefaultClientConfiguration:()=>QY,getDefaultExtensionConfiguration:()=>H4,getValueFromTextNode:()=>C4,handleFloat:()=>vI,limitedParseDouble:()=>XU,limitedParseFloat:()=>xI,limitedParseFloat32:()=>uI,loadConfigsForDefaultMode:()=>FY,logger:()=>m0,map:()=>RU,parseBoolean:()=>NI,parseEpochTimestamp:()=>oI,parseRfc3339DateTime:()=>gI,parseRfc3339DateTimeWithOffset:()=>sI,parseRfc7231DateTime:()=>rI,resolveDefaultRuntimeConfig:()=>zY,resolvedPath:()=>BY,serializeDateTime:()=>CY,serializeFloat:()=>HY,splitEvery:()=>P4,strictParseByte:()=>M4,strictParseDouble:()=>FU,strictParseFloat:()=>kI,strictParseFloat32:()=>J4,strictParseInt:()=>yI,strictParseInt32:()=>_I,strictParseLong:()=>T4,strictParseShort:()=>O0,take:()=>MY,throwDefaultError:()=>B4,withBaseException:()=>LY});j4.exports=MI(F4);var X4=class ${trace(){}debug(){}info(){}warn(){}error(){}};J(X4,"NoOpLogger");var AI=X4,Z4=NW(),R4=class ${constructor(U){this.middlewareStack=Z4.constructStack(),this.config=U}send(U,w,W){const G=typeof w!=="function"?w:void 0,f=typeof w==="function"?w:W,L=U.resolveMiddleware(this.middlewareStack,this.config,G);if(f)L(U).then((E)=>f(null,E.output),(E)=>f(E)).catch(()=>{});else return L(U).then((E)=>E.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}};J(R4,"Client");var VI=R4,$U=L4(),OI=J(async($=new Uint8Array,U)=>{if($ instanceof Uint8Array)return $U.Uint8ArrayBlobAdapter.mutate($);if(!$)return $U.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const w=U.streamCollector($);return $U.Uint8ArrayBlobAdapter.mutate(await w)},"collectBody"),wU=X0(),I4=class ${constructor(){this.middlewareStack=Z4.constructStack()}static classBuilder(){return new BI}resolveMiddlewareWithContext(U,w,W,{middlewareFn:G,clientName:f,commandName:L,inputFilterSensitiveLog:E,outputFilterSensitiveLog:F,smithyContext:X,additionalContext:Z,CommandCtor:R}){for(let K of G.bind(this)(R,U,w,W))this.middlewareStack.use(K);const Y=U.concat(this.middlewareStack),{logger:I}=w,Q={logger:I,clientName:f,commandName:L,inputFilterSensitiveLog:E,outputFilterSensitiveLog:F,[wU.SMITHY_CONTEXT_KEY]:{commandInstance:this,...X},...Z},{requestHandler:A}=w;return Y.resolve((K)=>A.handle(K.request,W||{}),Q)}};J(I4,"Command");var Y4=I4,Q4=class ${constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(U)=>U,this._outputFilterSensitiveLog=(U)=>U,this._serializer=null,this._deserializer=null}init(U){this._init=U}ep(U){return this._ep=U,this}m(U){return this._middlewareFn=U,this}s(U,w,W={}){return this._smithyContext={service:U,operation:w,...W},this}c(U={}){return this._additionalContext=U,this}n(U,w){return this._clientName=U,this._commandName=w,this}f(U=(W)=>W,w=(W)=>W){return this._inputFilterSensitiveLog=U,this._outputFilterSensitiveLog=w,this}ser(U){return this._serializer=U,this}de(U){return this._deserializer=U,this}build(){var U;const w=this;let W;return W=(U=class extends Y4{constructor(...[G]){super();this.serialize=w._serializer,this.deserialize=w._deserializer,this.input=G??{},w._init(this)}static getEndpointParameterInstructions(){return w._ep}resolveMiddleware(G,f,L){return this.resolveMiddlewareWithContext(G,f,L,{CommandCtor:W,middlewareFn:w._middlewareFn,clientName:w._clientName,commandName:w._commandName,inputFilterSensitiveLog:w._inputFilterSensitiveLog,outputFilterSensitiveLog:w._outputFilterSensitiveLog,smithyContext:w._smithyContext,additionalContext:w._additionalContext})}},J(U,"CommandRef"),U)}};J(Q4,"ClassBuilder");var BI=Q4,HI="***SensitiveInformation***",CI=J(($,U)=>{for(let w of Object.keys($)){const W=$[w],G=J(async function(L,E,F){const X=new W(L);if(typeof E==="function")this.send(X,E);else if(typeof F==="function"){if(typeof E!=="object")throw new Error(`Expected http options but got ${typeof E}`);this.send(X,E||{},F)}else return this.send(X,E)},"methodImpl"),f=(w[0].toLowerCase()+w.slice(1)).replace(/Command$/,"");U.prototype[f]=G}},"createAggregatedClient"),NI=J(($)=>{switch($){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${$}"`)}},"parseBoolean"),qI=J(($)=>{if($===null||$===void 0)return;if(typeof $==="number"){if($===0||$===1)m0.warn(D1(`Expected boolean, got ${typeof $}: ${$}`));if($===0)return!1;if($===1)return!0}if(typeof $==="string"){const U=$.toLowerCase();if(U==="false"||U==="true")m0.warn(D1(`Expected boolean, got ${typeof $}: ${$}`));if(U==="false")return!1;if(U==="true")return!0}if(typeof $==="boolean")return $;throw new TypeError(`Expected boolean, got ${typeof $}: ${$}`)},"expectBoolean"),s0=J(($)=>{if($===null||$===void 0)return;if(typeof $==="string"){const U=parseFloat($);if(!Number.isNaN(U)){if(String(U)!==String($))m0.warn(D1(`Expected number but observed string: ${$}`));return U}}if(typeof $==="number")return $;throw new TypeError(`Expected number, got ${typeof $}: ${$}`)},"expectNumber"),PI=Math.ceil(340282346638528860000000000000000000000),h1=J(($)=>{const U=s0($);if(U!==void 0&&!Number.isNaN(U)&&U!==Infinity&&U!==(-Infinity)){if(Math.abs(U)>PI)throw new TypeError(`Expected 32-bit float, got ${$}`)}return U},"expectFloat32"),n0=J(($)=>{if($===null||$===void 0)return;if(Number.isInteger($)&&!Number.isNaN($))return $;throw new TypeError(`Expected integer, got ${typeof $}: ${$}`)},"expectLong"),jI=n0,GU=J(($)=>EU($,32),"expectInt32"),WU=J(($)=>EU($,16),"expectShort"),fU=J(($)=>EU($,8),"expectByte"),EU=J(($,U)=>{const w=n0($);if(w!==void 0&&SI(w,U)!==w)throw new TypeError(`Expected ${U}-bit integer, got ${$}`);return w},"expectSizedInt"),SI=J(($,U)=>{switch(U){case 32:return Int32Array.of($)[0];case 16:return Int16Array.of($)[0];case 8:return Int8Array.of($)[0]}},"castInt"),bI=J(($,U)=>{if($===null||$===void 0){if(U)throw new TypeError(`Expected a non-null value for ${U}`);throw new TypeError("Expected a non-null value")}return $},"expectNonNull"),z4=J(($)=>{if($===null||$===void 0)return;if(typeof $==="object"&&!Array.isArray($))return $;const U=Array.isArray($)?"array":typeof $;throw new TypeError(`Expected object, got ${U}: ${$}`)},"expectObject"),hI=J(($)=>{if($===null||$===void 0)return;if(typeof $==="string")return $;if(["boolean","number","bigint"].includes(typeof $))return m0.warn(D1(`Expected string, got ${typeof $}: ${$}`)),String($);throw new TypeError(`Expected string, got ${typeof $}: ${$}`)},"expectString"),DI=J(($)=>{if($===null||$===void 0)return;const U=z4($),w=Object.entries(U).filter(([,W])=>W!=null).map(([W])=>W);if(w.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(w.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${w} were not null.`);return U},"expectUnion"),FU=J(($)=>{if(typeof $=="string")return s0(H0($));return s0($)},"strictParseDouble"),kI=FU,J4=J(($)=>{if(typeof $=="string")return h1(H0($));return h1($)},"strictParseFloat32"),cI=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,H0=J(($)=>{const U=$.match(cI);if(U===null||U[0].length!==$.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat($)},"parseNumber"),XU=J(($)=>{if(typeof $=="string")return K4($);return s0($)},"limitedParseDouble"),vI=XU,xI=XU,uI=J(($)=>{if(typeof $=="string")return K4($);return h1($)},"limitedParseFloat32"),K4=J(($)=>{switch($){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return (-Infinity);default:throw new Error(`Unable to parse float value: ${$}`)}},"parseFloatString"),T4=J(($)=>{if(typeof $==="string")return n0(H0($));return n0($)},"strictParseLong"),yI=T4,_I=J(($)=>{if(typeof $==="string")return GU(H0($));return GU($)},"strictParseInt32"),O0=J(($)=>{if(typeof $==="string")return WU(H0($));return WU($)},"strictParseShort"),M4=J(($)=>{if(typeof $==="string")return fU(H0($));return fU($)},"strictParseByte"),D1=J(($)=>{return String(new TypeError($).stack||$).split("\n").slice(0,5).filter((U)=>!U.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),m0={warn:console.warn},dI=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ZU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];J(A4,"dateToUtcString");var pI=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),gI=J(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const U=pI.exec($);if(!U)throw new TypeError("Invalid RFC-3339 date-time value");const[w,W,G,f,L,E,F,X]=U,Z=O0(B0(W)),R=n(G,"month",1,12),Y=n(f,"day",1,31);return l0(Z,R,Y,{hours:L,minutes:E,seconds:F,fractionalMilliseconds:X})},"parseRfc3339DateTime"),lI=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),sI=J(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const U=lI.exec($);if(!U)throw new TypeError("Invalid RFC-3339 date-time value");const[w,W,G,f,L,E,F,X,Z]=U,R=O0(B0(W)),Y=n(G,"month",1,12),I=n(f,"day",1,31),Q=l0(R,Y,I,{hours:L,minutes:E,seconds:F,fractionalMilliseconds:X});if(Z.toUpperCase()!="Z")Q.setTime(Q.getTime()-WY(Z));return Q},"parseRfc3339DateTimeWithOffset"),nI=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$/),mI=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$/),iI=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})$/),rI=J(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let U=nI.exec($);if(U){const[w,W,G,f,L,E,F,X]=U;return l0(O0(B0(f)),UU(G),n(W,"day",1,31),{hours:L,minutes:E,seconds:F,fractionalMilliseconds:X})}if(U=mI.exec($),U){const[w,W,G,f,L,E,F,X]=U;return eI(l0(tI(f),UU(G),n(W,"day",1,31),{hours:L,minutes:E,seconds:F,fractionalMilliseconds:X}))}if(U=iI.exec($),U){const[w,W,G,f,L,E,F,X]=U;return l0(O0(B0(X)),UU(W),n(G.trimLeft(),"day",1,31),{hours:f,minutes:L,seconds:E,fractionalMilliseconds:F})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),oI=J(($)=>{if($===null||$===void 0)return;let U;if(typeof $==="number")U=$;else if(typeof $==="string")U=FU($);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(U)||U===Infinity||U===(-Infinity))throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(U*1000))},"parseEpochTimestamp"),l0=J(($,U,w,W)=>{const G=U-1;return UY($,G,w),new Date(Date.UTC($,G,w,n(W.hours,"hour",0,23),n(W.minutes,"minute",0,59),n(W.seconds,"seconds",0,60),GY(W.fractionalMilliseconds)))},"buildDate"),tI=J(($)=>{const U=(new Date()).getUTCFullYear(),w=Math.floor(U/100)*100+O0(B0($));if(w<U)return w+100;return w},"parseTwoDigitYear"),aI=1576800000000,eI=J(($)=>{if($.getTime()-(new Date()).getTime()>aI)return new Date(Date.UTC($.getUTCFullYear()-100,$.getUTCMonth(),$.getUTCDate(),$.getUTCHours(),$.getUTCMinutes(),$.getUTCSeconds(),$.getUTCMilliseconds()));return $},"adjustRfc850Year"),UU=J(($)=>{const U=ZU.indexOf($);if(U<0)throw new TypeError(`Invalid month: ${$}`);return U+1},"parseMonthByShortName"),$Y=[31,28,31,30,31,30,31,31,30,31,30,31],UY=J(($,U,w)=>{let W=$Y[U];if(U===1&&wY($))W=29;if(w>W)throw new TypeError(`Invalid day for ${ZU[U]} in ${$}: ${w}`)},"validateDayOfMonth"),wY=J(($)=>{return $%4===0&&($%100!==0||$%400===0)},"isLeapYear"),n=J(($,U,w,W)=>{const G=M4(B0($));if(G<w||G>W)throw new TypeError(`${U} must be between ${w} and ${W}, inclusive`);return G},"parseDateValue"),GY=J(($)=>{if($===null||$===void 0)return 0;return J4("0."+$)*1000},"parseMilliseconds"),WY=J(($)=>{const U=$[0];let w=1;if(U=="+")w=1;else if(U=="-")w=-1;else throw new TypeError(`Offset direction, ${U}, must be "+" or "-"`);const W=Number($.substring(1,3)),G=Number($.substring(4,6));return w*(W*60+G)*60*1000},"parseOffsetToMilliseconds"),B0=J(($)=>{let U=0;while(U<$.length-1&&$.charAt(U)==="0")U++;if(U===0)return $;return $.slice(U)},"stripLeadingZeroes"),V4=class $ extends Error{constructor(U){super(U.message);Object.setPrototypeOf(this,$.prototype),this.name=U.name,this.$fault=U.$fault,this.$metadata=U.$metadata}};J(V4,"ServiceException");var fY=V4,O4=J(($,U={})=>{Object.entries(U).filter(([,W])=>W!==void 0).forEach(([W,G])=>{if($[W]==null||$[W]==="")$[W]=G});const w=$.message||$.Message||"UnknownError";return $.message=w,delete $.Message,$},"decorateServiceException"),B4=J(({output:$,parsedBody:U,exceptionCtor:w,errorCode:W})=>{const G=EY($),f=G.httpStatusCode?G.httpStatusCode+"":void 0,L=new w({name:(U==null?void 0:U.code)||(U==null?void 0:U.Code)||W||f||"UnknownError",$fault:"client",$metadata:G});throw O4(L,U)},"throwDefaultError"),LY=J(($)=>{return({output:U,parsedBody:w,errorCode:W})=>{B4({output:U,parsedBody:w,exceptionCtor:$,errorCode:W})}},"withBaseException"),EY=J(($)=>({httpStatusCode:$.statusCode,requestId:$.headers["x-amzn-requestid"]??$.headers["x-amzn-request-id"]??$.headers["x-amz-request-id"],extendedRequestId:$.headers["x-amz-id-2"],cfId:$.headers["x-amz-cf-id"]}),"deserializeMetadata"),FY=J(($)=>{switch($){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:30000};default:return{}}},"loadConfigsForDefaultMode"),E4=!1,XY=J(($)=>{if($&&!E4&&parseInt($.substring(1,$.indexOf(".")))<16)E4=!0},"emitWarningIfUnsupportedVersion"),ZY=J(($)=>{const U=[];for(let w in wU.AlgorithmId){const W=wU.AlgorithmId[w];if($[W]===void 0)continue;U.push({algorithmId:()=>W,checksumConstructor:()=>$[W]})}return{_checksumAlgorithms:U,addChecksumAlgorithm(w){this._checksumAlgorithms.push(w)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),RY=J(($)=>{const U={};return $.checksumAlgorithms().forEach((w)=>{U[w.algorithmId()]=w.checksumConstructor()}),U},"resolveChecksumRuntimeConfig"),IY=J(($)=>{let U=$.retryStrategy;return{setRetryStrategy(w){U=w},retryStrategy(){return U}}},"getRetryConfiguration"),YY=J(($)=>{const U={};return U.retryStrategy=$.retryStrategy(),U},"resolveRetryRuntimeConfig"),H4=J(($)=>{return{...ZY($),...IY($)}},"getDefaultExtensionConfiguration"),QY=H4,zY=J(($)=>{return{...RY($),...YY($)}},"resolveDefaultRuntimeConfig");J(k1,"extendedEncodeURIComponent");var JY=J(($)=>Array.isArray($)?$:[$],"getArrayIfSingleItem"),C4=J(($)=>{for(let w in $)if($.hasOwnProperty(w)&&$[w]["#text"]!==void 0)$[w]=$[w]["#text"];else if(typeof $[w]==="object"&&$[w]!==null)$[w]=C4($[w]);return $},"getValueFromTextNode"),i0=J(function(){const $=Object.getPrototypeOf(this).constructor,w=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(w,$.prototype),w},"StringWrapper");i0.prototype=Object.create(String.prototype,{constructor:{value:i0,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(i0,String);var N4=class $ extends i0{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(U){if(U instanceof $)return U;else if(U instanceof String||typeof U==="string")return new $(U);return new $(JSON.stringify(U))}};J(N4,"LazyJsonString");var KY=N4;J(RU,"map");var TY=J(($)=>{const U={};for(let[w,W]of Object.entries($||{}))U[w]=[,W];return U},"convertMap"),MY=J(($,U)=>{const w={};for(let W in U)q4(w,$,U,W);return w},"take"),AY=J(($,U,w)=>{return RU($,Object.entries(w).reduce((W,[G,f])=>{if(Array.isArray(f))W[G]=f;else if(typeof f==="function")W[G]=[U,f()];else W[G]=[U,f];return W},{}))},"mapWithFilter"),q4=J(($,U,w,W)=>{if(U!==null){let L=w[W];if(typeof L==="function")L=[,L];const[E=VY,F=OY,X=W]=L;if(typeof E==="function"&&E(U[X])||typeof E!=="function"&&!!E)$[W]=F(U[X]);return}let[G,f]=w[W];if(typeof f==="function"){let L;const E=G===void 0&&(L=f())!=null,F=typeof G==="function"&&!!G(void 0)||typeof G!=="function"&&!!G;if(E)$[W]=L;else if(F)$[W]=f()}else{const L=G===void 0&&f!=null,E=typeof G==="function"&&!!G(f)||typeof G!=="function"&&!!G;if(L||E)$[W]=f}},"applyInstruction"),VY=J(($)=>$!=null,"nonNullish"),OY=J(($)=>$,"pass"),BY=J(($,U,w,W,G,f)=>{if(U!=null&&U[w]!==void 0){const L=W();if(L.length<=0)throw new Error("Empty value provided for input HTTP label: "+w+".");$=$.replace(G,f?L.split("/").map((E)=>k1(E)).join("/"):k1(L))}else throw new Error("No value provided for input HTTP label: "+w+".");return $},"resolvedPath"),HY=J(($)=>{if($!==$)return"NaN";switch($){case Infinity:return"Infinity";case (-Infinity):return"-Infinity";default:return $}},"serializeFloat"),CY=J(($)=>$.toISOString().replace(".000Z","Z"),"serializeDateTime"),LU=J(($)=>{if($==null)return{};if(Array.isArray($))return $.filter((U)=>U!=null).map(LU);if(typeof $==="object"){const U={};for(let w of Object.keys($)){if($[w]==null)continue;U[w]=LU($[w])}return U}return $},"_json");J(P4,"splitEvery")});var h4=T((S4)=>{Object.defineProperty(S4,"__esModule",{value:!0});S4.isStreamingPayload=void 0;var NY=import.meta.require("stream"),qY=($)=>($===null||$===void 0?void 0:$.body)instanceof NY.Readable||typeof ReadableStream!=="undefined"&&($===null||$===void 0?void 0:$.body)instanceof ReadableStream;S4.isStreamingPayload=qY});var o4=T((ZJ,r4)=>{var{defineProperty:v1,getOwnPropertyDescriptor:PY,getOwnPropertyNames:jY}=Object,SY=Object.prototype.hasOwnProperty,S=($,U)=>v1($,"name",{value:U,configurable:!0}),bY=($,U)=>{for(var w in U)v1($,w,{get:U[w],enumerable:!0})},hY=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of jY(U))if(!SY.call($,G)&&G!==w)v1($,G,{get:()=>U[G],enumerable:!(W=PY(U,G))||W.enumerable})}return $},DY=($)=>hY(v1({},"__esModule",{value:!0}),$),k4={};bY(k4,{AdaptiveRetryStrategy:()=>vY,CONFIG_MAX_ATTEMPTS:()=>YU,CONFIG_RETRY_MODE:()=>g4,ENV_MAX_ATTEMPTS:()=>IU,ENV_RETRY_MODE:()=>p4,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>xY,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>yY,StandardRetryStrategy:()=>_4,defaultDelayDecider:()=>v4,defaultRetryDecider:()=>x4,getOmitRetryHeadersPlugin:()=>_Y,getRetryAfterHint:()=>i4,getRetryPlugin:()=>nY,omitRetryHeadersMiddleware:()=>l4,omitRetryHeadersMiddlewareOptions:()=>s4,resolveRetryConfig:()=>uY,retryMiddleware:()=>n4,retryMiddlewareOptions:()=>m4});r4.exports=DY(k4);var N0=i(),c4=b$(),N=VW(),kY=S(($,U)=>{const w=$,W=(U==null?void 0:U.noRetryIncrement)??N.NO_RETRY_INCREMENT,G=(U==null?void 0:U.retryCost)??N.RETRY_COST,f=(U==null?void 0:U.timeoutRetryCost)??N.TIMEOUT_RETRY_COST;let L=$;const E=S((R)=>R.name==="TimeoutError"?f:G,"getCapacityAmount"),F=S((R)=>E(R)<=L,"hasRetryTokens");return Object.freeze({hasRetryTokens:F,retrieveRetryTokens:S((R)=>{if(!F(R))throw new Error("No retry token available");const Y=E(R);return L-=Y,Y},"retrieveRetryTokens"),releaseRetryTokens:S((R)=>{L+=R??W,L=Math.min(L,w)},"releaseRetryTokens")})},"getDefaultRetryQuota"),v4=S(($,U)=>Math.floor(Math.min(N.MAXIMUM_RETRY_DELAY,Math.random()*2**U*$)),"defaultDelayDecider"),G0=h$(),x4=S(($)=>{if(!$)return!1;return G0.isRetryableByTrait($)||G0.isClockSkewError($)||G0.isThrottlingError($)||G0.isTransientError($)},"defaultRetryDecider"),u4=S(($)=>{if($ instanceof Error)return $;if($ instanceof Object)return Object.assign(new Error,$);if(typeof $==="string")return new Error($);return new Error(`AWS SDK error wrapper for ${$}`)},"asSdkError"),y4=class ${constructor(U,w){this.maxAttemptsProvider=U,this.mode=N.RETRY_MODES.STANDARD,this.retryDecider=(w==null?void 0:w.retryDecider)??x4,this.delayDecider=(w==null?void 0:w.delayDecider)??v4,this.retryQuota=(w==null?void 0:w.retryQuota)??kY(N.INITIAL_RETRY_TOKENS)}shouldRetry(U,w,W){return w<W&&this.retryDecider(U)&&this.retryQuota.hasRetryTokens(U)}async getMaxAttempts(){let U;try{U=await this.maxAttemptsProvider()}catch(w){U=N.DEFAULT_MAX_ATTEMPTS}return U}async retry(U,w,W){let G,f=0,L=0;const E=await this.getMaxAttempts(),{request:F}=w;if(N0.HttpRequest.isInstance(F))F.headers[N.INVOCATION_ID_HEADER]=c4.v4();while(!0)try{if(N0.HttpRequest.isInstance(F))F.headers[N.REQUEST_HEADER]=`attempt=${f+1}; max=${E}`;if(W==null?void 0:W.beforeRequest)await W.beforeRequest();const{response:X,output:Z}=await U(w);if(W==null?void 0:W.afterRequest)W.afterRequest(X);return this.retryQuota.releaseRetryTokens(G),Z.$metadata.attempts=f+1,Z.$metadata.totalRetryDelay=L,{response:X,output:Z}}catch(X){const Z=u4(X);if(f++,this.shouldRetry(Z,f,E)){G=this.retryQuota.retrieveRetryTokens(Z);const R=this.delayDecider(G0.isThrottlingError(Z)?N.THROTTLING_RETRY_DELAY_BASE:N.DEFAULT_RETRY_DELAY_BASE,f),Y=cY(Z.$response),I=Math.max(Y||0,R);L+=I,await new Promise((Q)=>setTimeout(Q,I));continue}if(!Z.$metadata)Z.$metadata={};throw Z.$metadata.attempts=f,Z.$metadata.totalRetryDelay=L,Z}}};S(y4,"StandardRetryStrategy");var _4=y4,cY=S(($)=>{if(!N0.HttpResponse.isInstance($))return;const U=Object.keys($.headers).find((f)=>f.toLowerCase()==="retry-after");if(!U)return;const w=$.headers[U],W=Number(w);if(!Number.isNaN(W))return W*1000;return new Date(w).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),d4=class $ extends _4{constructor(U,w){const{rateLimiter:W,...G}=w??{};super(U,G);this.rateLimiter=W??new N.DefaultRateLimiter,this.mode=N.RETRY_MODES.ADAPTIVE}async retry(U,w){return super.retry(U,w,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(W)=>{this.rateLimiter.updateClientSendingRate(W)}})}};S(d4,"AdaptiveRetryStrategy");var vY=d4,D4=D0(),IU="AWS_MAX_ATTEMPTS",YU="max_attempts",xY={environmentVariableSelector:($)=>{const U=$[IU];if(!U)return;const w=parseInt(U);if(Number.isNaN(w))throw new Error(`Environment variable ${IU} mast be a number, got "${U}"`);return w},configFileSelector:($)=>{const U=$[YU];if(!U)return;const w=parseInt(U);if(Number.isNaN(w))throw new Error(`Shared config file entry ${YU} mast be a number, got "${U}"`);return w},default:N.DEFAULT_MAX_ATTEMPTS},uY=S(($)=>{const{retryStrategy:U}=$,w=D4.normalizeProvider($.maxAttempts??N.DEFAULT_MAX_ATTEMPTS);return{...$,maxAttempts:w,retryStrategy:async()=>{if(U)return U;if(await D4.normalizeProvider($.retryMode)()===N.RETRY_MODES.ADAPTIVE)return new N.AdaptiveRetryStrategy(w);return new N.StandardRetryStrategy(w)}}},"resolveRetryConfig"),p4="AWS_RETRY_MODE",g4="retry_mode",yY={environmentVariableSelector:($)=>$[p4],configFileSelector:($)=>$[g4],default:N.DEFAULT_RETRY_MODE},l4=S(()=>($)=>async(U)=>{const{request:w}=U;if(N0.HttpRequest.isInstance(w))delete w.headers[N.INVOCATION_ID_HEADER],delete w.headers[N.REQUEST_HEADER];return $(U)},"omitRetryHeadersMiddleware"),s4={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},_Y=S(($)=>({applyToStack:(U)=>{U.addRelativeTo(l4(),s4)}}),"getOmitRetryHeadersPlugin"),dY=C0(),pY=h4(),n4=S(($)=>(U,w)=>async(W)=>{var G;let f=await $.retryStrategy();const L=await $.maxAttempts();if(gY(f)){f=f;let E=await f.acquireInitialRetryToken(w.partition_id),F=new Error,X=0,Z=0;const{request:R}=W,Y=N0.HttpRequest.isInstance(R);if(Y)R.headers[N.INVOCATION_ID_HEADER]=c4.v4();while(!0)try{if(Y)R.headers[N.REQUEST_HEADER]=`attempt=${X+1}; max=${L}`;const{response:I,output:Q}=await U(W);return f.recordSuccess(E),Q.$metadata.attempts=X+1,Q.$metadata.totalRetryDelay=Z,{response:I,output:Q}}catch(I){const Q=lY(I);if(F=u4(I),Y&&pY.isStreamingPayload(R))throw(G=w.logger instanceof dY.NoOpLogger?console:w.logger)==null||G.warn("An error was encountered in a non-retryable streaming request."),F;try{E=await f.refreshRetryTokenForRetry(E,Q)}catch(K){if(!F.$metadata)F.$metadata={};throw F.$metadata.attempts=X+1,F.$metadata.totalRetryDelay=Z,F}X=E.getRetryCount();const A=E.getRetryDelay();Z+=A,await new Promise((K)=>setTimeout(K,A))}}else{if(f=f,f==null?void 0:f.mode)w.userAgent=[...w.userAgent||[],["cfg/retry-mode",f.mode]];return f.retry(U,W)}},"retryMiddleware"),gY=S(($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined","isRetryStrategyV2"),lY=S(($)=>{const U={error:$,errorType:sY($)},w=i4($.$response);if(w)U.retryAfterHint=w;return U},"getRetryErrorInfo"),sY=S(($)=>{if(G0.isThrottlingError($))return"THROTTLING";if(G0.isTransientError($))return"TRANSIENT";if(G0.isServerError($))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),m4={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},nY=S(($)=>({applyToStack:(U)=>{U.add(n4($),m4)}}),"getRetryPlugin"),i4=S(($)=>{if(!N0.HttpResponse.isInstance($))return;const U=Object.keys($.headers).find((f)=>f.toLowerCase()==="retry-after");if(!U)return;const w=$.headers[U],W=Number(w);if(!Number.isNaN(W))return new Date(W*1000);return new Date(w)},"getRetryAfterHint")});var zU=T((RJ,zf)=>{var e4=function($){const U=new Map;for(let w of $)U.set(w.schemeId,w);return U},Rf=function($,U){return new Yf($,U)},Qf=function($,U,w,W,G){return C(async function*f(L,E,...F){let X=L.startingToken||void 0,Z=!0,R;while(Z){if(E[w]=X,G)E[G]=E[G]??L.pageSize;if(L.client instanceof $)R=await J5(U,L.client,E,...F);else throw new Error(`Invalid client, expected instance of ${$.name}`);yield R;const Y=X;X=K5(R,W),Z=!!(X&&(!L.stopOnSameToken||X!==Y))}return},"paginateOperation")},u1=Object.defineProperty,mY=Object.getOwnPropertyDescriptor,iY=Object.getOwnPropertyNames,rY=Object.prototype.hasOwnProperty,C=($,U)=>u1($,"name",{value:U,configurable:!0}),oY=($,U)=>{for(var w in U)u1($,w,{get:U[w],enumerable:!0})},tY=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of iY(U))if(!rY.call($,G)&&G!==w)u1($,G,{get:()=>U[G],enumerable:!(W=mY(U,G))||W.enumerable})}return $},aY=($)=>tY(u1({},"__esModule",{value:!0}),$),t4={};oY(t4,{DefaultIdentityProviderConfig:()=>E5,EXPIRATION_MS:()=>Xf,HttpApiKeyAuthSigner:()=>F5,HttpBearerAuthSigner:()=>X5,NoAuthSigner:()=>Z5,RequestBuilder:()=>Yf,createIsIdentityExpiredFunction:()=>Ff,createPaginator:()=>Qf,doesIdentityRequireRefresh:()=>Zf,getHttpAuthSchemeEndpointRuleSetPlugin:()=>$5,getHttpAuthSchemePlugin:()=>w5,getHttpSigningPlugin:()=>L5,getSmithyContext:()=>Y5,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>$f,httpAuthSchemeMiddleware:()=>QU,httpAuthSchemeMiddlewareOptions:()=>Uf,httpSigningMiddleware:()=>wf,httpSigningMiddlewareOptions:()=>Gf,isIdentityExpired:()=>R5,memoizeIdentityProvider:()=>I5,normalizeProvider:()=>Q5,requestBuilder:()=>Rf});zf.exports=aY(t4);var a4=D0();C(e4,"convertHttpAuthSchemesToMap");var QU=C(($,U)=>(w,W)=>async(G)=>{var f;const L=$.httpAuthSchemeProvider(await U.httpAuthSchemeParametersProvider($,W,G.input)),E=e4($.httpAuthSchemes),F=a4.getSmithyContext(W),X=[];for(let Z of L){const R=E.get(Z.schemeId);if(!R){X.push(`HttpAuthScheme \`${Z.schemeId}\` was not enabled for this service.`);continue}const Y=R.identityProvider(await U.identityProviderConfigProvider($));if(!Y){X.push(`HttpAuthScheme \`${Z.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:I={},signingProperties:Q={}}=((f=Z.propertiesExtractor)==null?void 0:f.call(Z,$,W))||{};Z.identityProperties=Object.assign(Z.identityProperties||{},I),Z.signingProperties=Object.assign(Z.signingProperties||{},Q),F.selectedHttpAuthScheme={httpAuthOption:Z,identity:await Y(Z.identityProperties),signer:R.signer};break}if(!F.selectedHttpAuthScheme)throw new Error(X.join("\n"));return w(G)},"httpAuthSchemeMiddleware"),eY=UG(),$f={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:eY.endpointMiddlewareOptions.name},$5=C(($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:w})=>({applyToStack:(W)=>{W.addRelativeTo(QU($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:w}),$f)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),U5=L1(),Uf={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:U5.serializerMiddlewareOption.name},w5=C(($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:w})=>({applyToStack:(W)=>{W.addRelativeTo(QU($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:w}),Uf)}}),"getHttpAuthSchemePlugin"),y1=i(),G5=C(($)=>(U)=>{throw U},"defaultErrorHandler"),W5=C(($,U)=>{},"defaultSuccessHandler"),wf=C(($)=>(U,w)=>async(W)=>{if(!y1.HttpRequest.isInstance(W.request))return U(W);const f=a4.getSmithyContext(w).selectedHttpAuthScheme;if(!f)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:L={}},identity:E,signer:F}=f,X=await U({...W,request:await F.sign(W.request,E,L)}).catch((F.errorHandler||G5)(L));return(F.successHandler||W5)(X.response,L),X},"httpSigningMiddleware"),f5=o4(),Gf={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:f5.retryMiddlewareOptions.name},L5=C(($)=>({applyToStack:(U)=>{U.addRelativeTo(wf($),Gf)}}),"getHttpSigningPlugin"),Wf=class ${constructor(U){this.authSchemes=new Map;for(let[w,W]of Object.entries(U))if(W!==void 0)this.authSchemes.set(w,W)}getIdentityProvider(U){return this.authSchemes.get(U)}};C(Wf,"DefaultIdentityProviderConfig");var E5=Wf,x1=X0(),ff=class ${async sign(U,w,W){if(!W)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!W.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!W.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!w.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");const G=y1.HttpRequest.clone(U);if(W.in===x1.HttpApiKeyAuthLocation.QUERY)G.query[W.name]=w.apiKey;else if(W.in===x1.HttpApiKeyAuthLocation.HEADER)G.headers[W.name]=W.scheme?`${W.scheme} ${w.apiKey}`:w.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+W.in+"`");return G}};C(ff,"HttpApiKeyAuthSigner");var F5=ff,Lf=class ${async sign(U,w,W){const G=y1.HttpRequest.clone(U);if(!w.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return G.headers.Authorization=`Bearer ${w.token}`,G}};C(Lf,"HttpBearerAuthSigner");var X5=Lf,Ef=class ${async sign(U,w,W){return U}};C(Ef,"NoAuthSigner");var Z5=Ef,Ff=C(($)=>(U)=>Zf(U)&&U.expiration.getTime()-Date.now()<$,"createIsIdentityExpiredFunction"),Xf=300000,R5=Ff(Xf),Zf=C(($)=>$.expiration!==void 0,"doesIdentityRequireRefresh"),I5=C(($,U,w)=>{if($===void 0)return;const W=typeof $!=="function"?async()=>Promise.resolve($):$;let G,f,L,E=!1;const F=C(async(X)=>{if(!f)f=W(X);try{G=await f,L=!0,E=!1}finally{f=void 0}return G},"coalesceProvider");if(U===void 0)return async(X)=>{if(!L||(X==null?void 0:X.forceRefresh))G=await F(X);return G};return async(X)=>{if(!L||(X==null?void 0:X.forceRefresh))G=await F(X);if(E)return G;if(!w(G))return E=!0,G;if(U(G))return await F(X),G;return G}},"memoizeIdentityProvider"),Y5=C(($)=>$[x1.SMITHY_CONTEXT_KEY]||($[x1.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),Q5=C(($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U},"normalizeProvider"),z5=C0();C(Rf,"requestBuilder");var If=class ${constructor(U,w){this.input=U,this.context=w,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:U,protocol:w="https",port:W,path:G}=await this.context.endpoint();this.path=G;for(let f of this.resolvePathStack)f(this.path);return new y1.HttpRequest({protocol:w,hostname:this.hostname||U,port:W,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(U){return this.hostname=U,this}bp(U){return this.resolvePathStack.push((w)=>{this.path=`${(w==null?void 0:w.endsWith("/"))?w.slice(0,-1):w||""}`+U}),this}p(U,w,W,G){return this.resolvePathStack.push((f)=>{this.path=z5.resolvedPath(f,this.input,U,w,W,G)}),this}h(U){return this.headers=U,this}q(U){return this.query=U,this}b(U){return this.body=U,this}m(U){return this.method=U,this}};C(If,"RequestBuilder");var Yf=If,J5=C(async($,U,w,...W)=>{return await U.send(new $(w),...W)},"makePagedClientRequest");C(Qf,"createPaginator");var K5=C(($,U)=>{let w=$;const W=U.split(".");for(let G of W){if(!w||typeof w!=="object")return;w=w[G]}return w},"get")});var v6=T((PV,G$)=>{var X6,Z6,R6,I6,Y6,Q6,z6,J6,K6,T6,M6,A6,V6,U$,cU,O6,B6,H6,b0,C6,N6,q6,P6,j6,S6,b6,h6,D6,w$,k6,c6;(function($){var U=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(W){$(w(U,w(W)))});else if(typeof G$==="object"&&typeof PV==="object")$(w(U,w(PV)));else $(w(U));function w(W,G){if(W!==U)if(typeof Object.create==="function")Object.defineProperty(W,"__esModule",{value:!0});else W.__esModule=!0;return function(f,L){return W[f]=G?G(f,L):L}}})(function($){var U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,f){G.__proto__=f}||function(G,f){for(var L in f)if(Object.prototype.hasOwnProperty.call(f,L))G[L]=f[L]};X6=function(G,f){if(typeof f!=="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");U(G,f);function L(){this.constructor=G}G.prototype=f===null?Object.create(f):(L.prototype=f.prototype,new L)},Z6=Object.assign||function(G){for(var f,L=1,E=arguments.length;L<E;L++){f=arguments[L];for(var F in f)if(Object.prototype.hasOwnProperty.call(f,F))G[F]=f[F]}return G},R6=function(G,f){var L={};for(var E in G)if(Object.prototype.hasOwnProperty.call(G,E)&&f.indexOf(E)<0)L[E]=G[E];if(G!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var F=0,E=Object.getOwnPropertySymbols(G);F<E.length;F++)if(f.indexOf(E[F])<0&&Object.prototype.propertyIsEnumerable.call(G,E[F]))L[E[F]]=G[E[F]]}return L},I6=function(G,f,L,E){var F=arguments.length,X=F<3?f:E===null?E=Object.getOwnPropertyDescriptor(f,L):E,Z;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")X=Reflect.decorate(G,f,L,E);else for(var R=G.length-1;R>=0;R--)if(Z=G[R])X=(F<3?Z(X):F>3?Z(f,L,X):Z(f,L))||X;return F>3&&X&&Object.defineProperty(f,L,X),X},Y6=function(G,f){return function(L,E){f(L,E,G)}},Q6=function(G,f,L,E,F,X){function Z(B){if(B!==void 0&&typeof B!=="function")throw new TypeError("Function expected");return B}var R=E.kind,Y=R==="getter"?"get":R==="setter"?"set":"value",I=!f&&G?E.static?G:G.prototype:null,Q=f||(I?Object.getOwnPropertyDescriptor(I,E.name):{}),A,K=!1;for(var z=L.length-1;z>=0;z--){var M={};for(var V in E)M[V]=V==="access"?{}:E[V];for(var V in E.access)M.access[V]=E.access[V];M.addInitializer=function(B){if(K)throw new TypeError("Cannot add initializers after decoration has completed");X.push(Z(B||null))};var O=L[z](R==="accessor"?{get:Q.get,set:Q.set}:Q[Y],M);if(R==="accessor"){if(O===void 0)continue;if(O===null||typeof O!=="object")throw new TypeError("Object expected");if(A=Z(O.get))Q.get=A;if(A=Z(O.set))Q.set=A;if(A=Z(O.init))F.unshift(A)}else if(A=Z(O))if(R==="field")F.unshift(A);else Q[Y]=A}if(I)Object.defineProperty(I,E.name,Q);K=!0},z6=function(G,f,L){var E=arguments.length>2;for(var F=0;F<f.length;F++)L=E?f[F].call(G,L):f[F].call(G);return E?L:void 0},J6=function(G){return typeof G==="symbol"?G:"".concat(G)},K6=function(G,f,L){if(typeof f==="symbol")f=f.description?"[".concat(f.description,"]"):"";return Object.defineProperty(G,"name",{configurable:!0,value:L?"".concat(L," ",f):f})},T6=function(G,f){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(G,f)},M6=function(G,f,L,E){function F(X){return X instanceof L?X:new L(function(Z){Z(X)})}return new(L||(L=Promise))(function(X,Z){function R(Q){try{I(E.next(Q))}catch(A){Z(A)}}function Y(Q){try{I(E.throw(Q))}catch(A){Z(A)}}function I(Q){Q.done?X(Q.value):F(Q.value).then(R,Y)}I((E=E.apply(G,f||[])).next())})},A6=function(G,f){var L={label:0,sent:function(){if(X[0]&1)throw X[1];return X[1]},trys:[],ops:[]},E,F,X,Z;return Z={next:R(0),throw:R(1),return:R(2)},typeof Symbol==="function"&&(Z[Symbol.iterator]=function(){return this}),Z;function R(I){return function(Q){return Y([I,Q])}}function Y(I){if(E)throw new TypeError("Generator is already executing.");while(Z&&(Z=0,I[0]&&(L=0)),L)try{if(E=1,F&&(X=I[0]&2?F.return:I[0]?F.throw||((X=F.return)&&X.call(F),0):F.next)&&!(X=X.call(F,I[1])).done)return X;if(F=0,X)I=[I[0]&2,X.value];switch(I[0]){case 0:case 1:X=I;break;case 4:return L.label++,{value:I[1],done:!1};case 5:L.label++,F=I[1],I=[0];continue;case 7:I=L.ops.pop(),L.trys.pop();continue;default:if((X=L.trys,!(X=X.length>0&&X[X.length-1]))&&(I[0]===6||I[0]===2)){L=0;continue}if(I[0]===3&&(!X||I[1]>X[0]&&I[1]<X[3])){L.label=I[1];break}if(I[0]===6&&L.label<X[1]){L.label=X[1],X=I;break}if(X&&L.label<X[2]){L.label=X[2],L.ops.push(I);break}if(X[2])L.ops.pop();L.trys.pop();continue}I=f.call(G,L)}catch(Q){I=[6,Q],F=0}finally{E=X=0}if(I[0]&5)throw I[1];return{value:I[0]?I[1]:void 0,done:!0}}},V6=function(G,f){for(var L in G)if(L!=="default"&&!Object.prototype.hasOwnProperty.call(f,L))w$(f,G,L)},w$=Object.create?function(G,f,L,E){if(E===void 0)E=L;var F=Object.getOwnPropertyDescriptor(f,L);if(!F||("get"in F?!f.__esModule:F.writable||F.configurable))F={enumerable:!0,get:function(){return f[L]}};Object.defineProperty(G,E,F)}:function(G,f,L,E){if(E===void 0)E=L;G[E]=f[L]},U$=function(G){var f=typeof Symbol==="function"&&Symbol.iterator,L=f&&G[f],E=0;if(L)return L.call(G);if(G&&typeof G.length==="number")return{next:function(){if(G&&E>=G.length)G=void 0;return{value:G&&G[E++],done:!G}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")},cU=function(G,f){var L=typeof Symbol==="function"&&G[Symbol.iterator];if(!L)return G;var E=L.call(G),F,X=[],Z;try{while((f===void 0||f-- >0)&&!(F=E.next()).done)X.push(F.value)}catch(R){Z={error:R}}finally{try{if(F&&!F.done&&(L=E.return))L.call(E)}finally{if(Z)throw Z.error}}return X},O6=function(){for(var G=[],f=0;f<arguments.length;f++)G=G.concat(cU(arguments[f]));return G},B6=function(){for(var G=0,f=0,L=arguments.length;f<L;f++)G+=arguments[f].length;for(var E=Array(G),F=0,f=0;f<L;f++)for(var X=arguments[f],Z=0,R=X.length;Z<R;Z++,F++)E[F]=X[Z];return E},H6=function(G,f,L){if(L||arguments.length===2){for(var E=0,F=f.length,X;E<F;E++)if(X||!(E in f)){if(!X)X=Array.prototype.slice.call(f,0,E);X[E]=f[E]}}return G.concat(X||Array.prototype.slice.call(f))},b0=function(G){return this instanceof b0?(this.v=G,this):new b0(G)},C6=function(G,f,L){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var E=L.apply(G,f||[]),F,X=[];return F={},R("next"),R("throw"),R("return",Z),F[Symbol.asyncIterator]=function(){return this},F;function Z(z){return function(M){return Promise.resolve(M).then(z,A)}}function R(z,M){if(E[z]){if(F[z]=function(V){return new Promise(function(O,B){X.push([z,V,O,B])>1||Y(z,V)})},M)F[z]=M(F[z])}}function Y(z,M){try{I(E[z](M))}catch(V){K(X[0][3],V)}}function I(z){z.value instanceof b0?Promise.resolve(z.value.v).then(Q,A):K(X[0][2],z)}function Q(z){Y("next",z)}function A(z){Y("throw",z)}function K(z,M){if(z(M),X.shift(),X.length)Y(X[0][0],X[0][1])}},N6=function(G){var f,L;return f={},E("next"),E("throw",function(F){throw F}),E("return"),f[Symbol.iterator]=function(){return this},f;function E(F,X){f[F]=G[F]?function(Z){return(L=!L)?{value:b0(G[F](Z)),done:!1}:X?X(Z):Z}:X}},q6=function(G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f=G[Symbol.asyncIterator],L;return f?f.call(G):(G=typeof U$==="function"?U$(G):G[Symbol.iterator](),L={},E("next"),E("throw"),E("return"),L[Symbol.asyncIterator]=function(){return this},L);function E(X){L[X]=G[X]&&function(Z){return new Promise(function(R,Y){Z=G[X](Z),F(R,Y,Z.done,Z.value)})}}function F(X,Z,R,Y){Promise.resolve(Y).then(function(I){X({value:I,done:R})},Z)}},P6=function(G,f){if(Object.defineProperty)Object.defineProperty(G,"raw",{value:f});else G.raw=f;return G};var w=Object.create?function(G,f){Object.defineProperty(G,"default",{enumerable:!0,value:f})}:function(G,f){G.default=f};j6=function(G){if(G&&G.__esModule)return G;var f={};if(G!=null){for(var L in G)if(L!=="default"&&Object.prototype.hasOwnProperty.call(G,L))w$(f,G,L)}return w(f,G),f},S6=function(G){return G&&G.__esModule?G:{default:G}},b6=function(G,f,L,E){if(L==="a"&&!E)throw new TypeError("Private accessor was defined without a getter");if(typeof f==="function"?G!==f||!E:!f.has(G))throw new TypeError("Cannot read private member from an object whose class did not declare it");return L==="m"?E:L==="a"?E.call(G):E?E.value:f.get(G)},h6=function(G,f,L,E,F){if(E==="m")throw new TypeError("Private method is not writable");if(E==="a"&&!F)throw new TypeError("Private accessor was defined without a setter");if(typeof f==="function"?G!==f||!F:!f.has(G))throw new TypeError("Cannot write private member to an object whose class did not declare it");return E==="a"?F.call(G,L):F?F.value=L:f.set(G,L),L},D6=function(G,f){if(f===null||typeof f!=="object"&&typeof f!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof G==="function"?f===G:G.has(f)},k6=function(G,f,L){if(f!==null&&f!==void 0){if(typeof f!=="object"&&typeof f!=="function")throw new TypeError("Object expected.");var E,F;if(L){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");E=f[Symbol.asyncDispose]}if(E===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");if(E=f[Symbol.dispose],L)F=E}if(typeof E!=="function")throw new TypeError("Object not disposable.");if(F)E=function(){try{F.call(this)}catch(X){return Promise.reject(X)}};G.stack.push({value:f,dispose:E,async:L})}else if(L)G.stack.push({async:!0});return f};var W=typeof SuppressedError==="function"?SuppressedError:function(G,f,L){var E=new Error(L);return E.name="SuppressedError",E.error=G,E.suppressed=f,E};c6=function(G){function f(E){G.error=G.hasError?new W(E,G.error,"An error was suppressed during disposal."):E,G.hasError=!0}function L(){while(G.stack.length){var E=G.stack.pop();try{var F=E.dispose&&E.dispose.call(E.value);if(E.async)return Promise.resolve(F).then(L,function(X){return f(X),L()})}catch(X){f(X)}}if(G.hasError)throw G.error}return L()},$("__extends",X6),$("__assign",Z6),$("__rest",R6),$("__decorate",I6),$("__param",Y6),$("__esDecorate",Q6),$("__runInitializers",z6),$("__propKey",J6),$("__setFunctionName",K6),$("__metadata",T6),$("__awaiter",M6),$("__generator",A6),$("__exportStar",V6),$("__createBinding",w$),$("__values",U$),$("__read",cU),$("__spread",O6),$("__spreadArrays",B6),$("__spreadArray",H6),$("__await",b0),$("__asyncGenerator",C6),$("__asyncDelegator",N6),$("__asyncValues",q6),$("__makeTemplateObject",P6),$("__importStar",j6),$("__importDefault",S6),$("__classPrivateFieldGet",b6),$("__classPrivateFieldSet",h6),$("__classPrivateFieldIn",D6),$("__addDisposableResource",k6),$("__disposeResources",c6)})});var _6=T((jV,y6)=>{var{defineProperty:W$,getOwnPropertyDescriptor:o5,getOwnPropertyNames:t5}=Object,a5=Object.prototype.hasOwnProperty,e5=($,U)=>W$($,"name",{value:U,configurable:!0}),$9=($,U)=>{for(var w in U)W$($,w,{get:U[w],enumerable:!0})},U9=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of t5(U))if(!a5.call($,G)&&G!==w)W$($,G,{get:()=>U[G],enumerable:!(W=o5(U,G))||W.enumerable})}return $},w9=($)=>U9(W$({},"__esModule",{value:!0}),$),u6={};$9(u6,{emitWarningIfUnsupportedVersion:()=>G9});y6.exports=w9(u6);var x6=!1,G9=e5(($)=>{if($&&!x6&&parseInt($.substring(1,$.indexOf(".")))<18)x6=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
|
|
4
|
+
no longer support Node.js 16.x on January 6, 2025.
|
|
5
|
+
|
|
6
|
+
To continue receiving updates to AWS services, bug fixes, and security
|
|
7
|
+
updates please upgrade to a supported Node.js LTS version.
|
|
8
|
+
|
|
9
|
+
More information can be found at: https://a.co/74kJMmI`)},"emitWarningIfUnsupportedVersion")});var LL=T((SV,fL)=>{var _U=function($){for(let U=0;U<8;U++)$[U]^=255;for(let U=7;U>-1;U--)if($[U]++,$[U]!==0)break},X$=Object.defineProperty,W9=Object.getOwnPropertyDescriptor,f9=Object.getOwnPropertyNames,L9=Object.prototype.hasOwnProperty,b=($,U)=>X$($,"name",{value:U,configurable:!0}),E9=($,U)=>{for(var w in U)X$($,w,{get:U[w],enumerable:!0})},F9=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of f9(U))if(!L9.call($,G)&&G!==w)X$($,G,{get:()=>U[G],enumerable:!(W=W9(U,G))||W.enumerable})}return $},X9=($)=>F9(X$({},"__esModule",{value:!0}),$),s6={};E9(s6,{SignatureV4:()=>c9,clearCredentialCache:()=>N9,createScope:()=>E$,getCanonicalHeaders:()=>yU,getCanonicalQuery:()=>e6,getPayloadHash:()=>F$,getSigningKey:()=>a6,moveHeadersToQuery:()=>GL,prepareRequest:()=>dU});fL.exports=X9(s6);var d6=D0(),vU=w0(),Z9="X-Amz-Algorithm",R9="X-Amz-Credential",n6="X-Amz-Date",I9="X-Amz-SignedHeaders",Y9="X-Amz-Expires",m6="X-Amz-Signature",i6="X-Amz-Security-Token",r6="authorization",o6=n6.toLowerCase(),Q9="date",z9=[r6,o6,Q9],J9=m6.toLowerCase(),uU="x-amz-content-sha256",K9=i6.toLowerCase(),T9={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},M9=/^proxy-/,A9=/^sec-/,xU="AWS4-HMAC-SHA256",V9="AWS4-HMAC-SHA256-PAYLOAD",O9="UNSIGNED-PAYLOAD",B9=50,t6="aws4_request",H9=604800,L0=r$(),C9=w0(),h0={},L$=[],E$=b(($,U,w)=>`${$}/${U}/${w}/${t6}`,"createScope"),a6=b(async($,U,w,W,G)=>{const f=await p6($,U.secretAccessKey,U.accessKeyId),L=`${w}:${W}:${G}:${L0.toHex(f)}:${U.sessionToken}`;if(L in h0)return h0[L];L$.push(L);while(L$.length>B9)delete h0[L$.shift()];let E=`AWS4${U.secretAccessKey}`;for(let F of[w,W,G,t6])E=await p6($,E,F);return h0[L]=E},"getSigningKey"),N9=b(()=>{L$.length=0,Object.keys(h0).forEach(($)=>{delete h0[$]})},"clearCredentialCache"),p6=b(($,U,w)=>{const W=new $(U);return W.update(C9.toUint8Array(w)),W.digest()},"hmac"),yU=b(({headers:$},U,w)=>{const W={};for(let G of Object.keys($).sort()){if($[G]==null)continue;const f=G.toLowerCase();if(f in T9||(U==null?void 0:U.has(f))||M9.test(f)||A9.test(f)){if(!w||w&&!w.has(f))continue}W[f]=$[G].trim().replace(/\s+/g," ")}return W},"getCanonicalHeaders"),$1=mW(),e6=b(({query:$={}})=>{const U=[],w={};for(let W of Object.keys($).sort()){if(W.toLowerCase()===J9)continue;U.push(W);const G=$[W];if(typeof G==="string")w[W]=`${$1.escapeUri(W)}=${$1.escapeUri(G)}`;else if(Array.isArray(G))w[W]=G.slice(0).reduce((f,L)=>f.concat([`${$1.escapeUri(W)}=${$1.escapeUri(L)}`]),[]).sort().join("&")}return U.map((W)=>w[W]).filter((W)=>W).join("&")},"getCanonicalQuery"),q9=u$(),P9=w0(),F$=b(async({headers:$,body:U},w)=>{for(let W of Object.keys($))if(W.toLowerCase()===uU)return $[W];if(U==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof U==="string"||ArrayBuffer.isView(U)||q9.isArrayBuffer(U)){const W=new w;return W.update(P9.toUint8Array(U)),L0.toHex(await W.digest())}return O9},"getPayloadHash"),g6=w0(),$L=class ${format(U){const w=[];for(let f of Object.keys(U)){const L=g6.fromUtf8(f);w.push(Uint8Array.from([L.byteLength]),L,this.formatHeaderValue(U[f]))}const W=new Uint8Array(w.reduce((f,L)=>f+L.byteLength,0));let G=0;for(let f of w)W.set(f,G),G+=f.byteLength;return W}formatHeaderValue(U){switch(U.type){case"boolean":return Uint8Array.from([U.value?0:1]);case"byte":return Uint8Array.from([2,U.value]);case"short":const w=new DataView(new ArrayBuffer(3));return w.setUint8(0,3),w.setInt16(1,U.value,!1),new Uint8Array(w.buffer);case"integer":const W=new DataView(new ArrayBuffer(5));return W.setUint8(0,4),W.setInt32(1,U.value,!1),new Uint8Array(W.buffer);case"long":const G=new Uint8Array(9);return G[0]=5,G.set(U.value.bytes,1),G;case"binary":const f=new DataView(new ArrayBuffer(3+U.value.byteLength));f.setUint8(0,6),f.setUint16(1,U.value.byteLength,!1);const L=new Uint8Array(f.buffer);return L.set(U.value,3),L;case"string":const E=g6.fromUtf8(U.value),F=new DataView(new ArrayBuffer(3+E.byteLength));F.setUint8(0,7),F.setUint16(1,E.byteLength,!1);const X=new Uint8Array(F.buffer);return X.set(E,3),X;case"timestamp":const Z=new Uint8Array(9);return Z[0]=8,Z.set(b9.fromNumber(U.value.valueOf()).bytes,1),Z;case"uuid":if(!S9.test(U.value))throw new Error(`Invalid UUID received: ${U.value}`);const R=new Uint8Array(17);return R[0]=9,R.set(L0.fromHex(U.value.replace(/\-/g,"")),1),R}}};b($L,"HeaderFormatter");var j9=$L,S9=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,UL=class ${constructor(U){if(this.bytes=U,U.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(U){if(U>9223372036854776000||U<-9223372036854776000)throw new Error(`${U} is too large (or, if negative, too small) to represent as an Int64`);const w=new Uint8Array(8);for(let W=7,G=Math.abs(Math.round(U));W>-1&&G>0;W--,G/=256)w[W]=G;if(U<0)_U(w);return new $(w)}valueOf(){const U=this.bytes.slice(0),w=U[0]&128;if(w)_U(U);return parseInt(L0.toHex(U),16)*(w?-1:1)}toString(){return String(this.valueOf())}};b(UL,"Int64");var b9=UL;b(_U,"negate");var h9=b(($,U)=>{$=$.toLowerCase();for(let w of Object.keys(U))if($===w.toLowerCase())return!0;return!1},"hasHeader"),wL=i(),GL=b(($,U={})=>{var w;const{headers:W,query:G={}}=wL.HttpRequest.clone($);for(let f of Object.keys(W)){const L=f.toLowerCase();if(L.slice(0,6)==="x-amz-"&&!((w=U.unhoistableHeaders)==null?void 0:w.has(L)))G[f]=W[f],delete W[f]}return{...$,headers:W,query:G}},"moveHeadersToQuery"),dU=b(($)=>{$=wL.HttpRequest.clone($);for(let U of Object.keys($.headers))if(z9.indexOf(U.toLowerCase())>-1)delete $.headers[U];return $},"prepareRequest"),D9=b(($)=>k9($).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),k9=b(($)=>{if(typeof $==="number")return new Date($*1000);if(typeof $==="string"){if(Number($))return new Date(Number($)*1000);return new Date($)}return $},"toDate"),WL=class ${constructor({applyChecksum:U,credentials:w,region:W,service:G,sha256:f,uriEscapePath:L=!0}){this.headerFormatter=new j9,this.service=G,this.sha256=f,this.uriEscapePath=L,this.applyChecksum=typeof U==="boolean"?U:!0,this.regionProvider=d6.normalizeProvider(W),this.credentialProvider=d6.normalizeProvider(w)}async presign(U,w={}){const{signingDate:W=new Date,expiresIn:G=3600,unsignableHeaders:f,unhoistableHeaders:L,signableHeaders:E,signingRegion:F,signingService:X}=w,Z=await this.credentialProvider();this.validateResolvedCredentials(Z);const R=F??await this.regionProvider(),{longDate:Y,shortDate:I}=f$(W);if(G>H9)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const Q=E$(I,R,X??this.service),A=GL(dU(U),{unhoistableHeaders:L});if(Z.sessionToken)A.query[i6]=Z.sessionToken;A.query[Z9]=xU,A.query[R9]=`${Z.accessKeyId}/${Q}`,A.query[n6]=Y,A.query[Y9]=G.toString(10);const K=yU(A,f,E);return A.query[I9]=l6(K),A.query[m6]=await this.getSignature(Y,Q,this.getSigningKey(Z,R,I,X),this.createCanonicalRequest(A,K,await F$(U,this.sha256))),A}async sign(U,w){if(typeof U==="string")return this.signString(U,w);else if(U.headers&&U.payload)return this.signEvent(U,w);else if(U.message)return this.signMessage(U,w);else return this.signRequest(U,w)}async signEvent({headers:U,payload:w},{signingDate:W=new Date,priorSignature:G,signingRegion:f,signingService:L}){const E=f??await this.regionProvider(),{shortDate:F,longDate:X}=f$(W),Z=E$(F,E,L??this.service),R=await F$({headers:{},body:w},this.sha256),Y=new this.sha256;Y.update(U);const I=L0.toHex(await Y.digest()),Q=[V9,X,Z,G,I,R].join("\n");return this.signString(Q,{signingDate:W,signingRegion:E,signingService:L})}async signMessage(U,{signingDate:w=new Date,signingRegion:W,signingService:G}){return this.signEvent({headers:this.headerFormatter.format(U.message.headers),payload:U.message.body},{signingDate:w,signingRegion:W,signingService:G,priorSignature:U.priorSignature}).then((L)=>{return{message:U.message,signature:L}})}async signString(U,{signingDate:w=new Date,signingRegion:W,signingService:G}={}){const f=await this.credentialProvider();this.validateResolvedCredentials(f);const L=W??await this.regionProvider(),{shortDate:E}=f$(w),F=new this.sha256(await this.getSigningKey(f,L,E,G));return F.update(vU.toUint8Array(U)),L0.toHex(await F.digest())}async signRequest(U,{signingDate:w=new Date,signableHeaders:W,unsignableHeaders:G,signingRegion:f,signingService:L}={}){const E=await this.credentialProvider();this.validateResolvedCredentials(E);const F=f??await this.regionProvider(),X=dU(U),{longDate:Z,shortDate:R}=f$(w),Y=E$(R,F,L??this.service);if(X.headers[o6]=Z,E.sessionToken)X.headers[K9]=E.sessionToken;const I=await F$(X,this.sha256);if(!h9(uU,X.headers)&&this.applyChecksum)X.headers[uU]=I;const Q=yU(X,G,W),A=await this.getSignature(Z,Y,this.getSigningKey(E,F,R,L),this.createCanonicalRequest(X,Q,I));return X.headers[r6]=`${xU} Credential=${E.accessKeyId}/${Y}, SignedHeaders=${l6(Q)}, Signature=${A}`,X}createCanonicalRequest(U,w,W){const G=Object.keys(w).sort();return`${U.method}
|
|
10
|
+
${this.getCanonicalPath(U)}
|
|
11
|
+
${e6(U)}
|
|
12
|
+
${G.map((f)=>`${f}:${w[f]}`).join("\n")}
|
|
13
|
+
|
|
14
|
+
${G.join(";")}
|
|
15
|
+
${W}`}async createStringToSign(U,w,W){const G=new this.sha256;G.update(vU.toUint8Array(W));const f=await G.digest();return`${xU}
|
|
16
|
+
${U}
|
|
17
|
+
${w}
|
|
18
|
+
${L0.toHex(f)}`}getCanonicalPath({path:U}){if(this.uriEscapePath){const w=[];for(let f of U.split("/")){if((f==null?void 0:f.length)===0)continue;if(f===".")continue;if(f==="..")w.pop();else w.push(f)}const W=`${(U==null?void 0:U.startsWith("/"))?"/":""}${w.join("/")}${w.length>0&&(U==null?void 0:U.endsWith("/"))?"/":""}`;return $1.escapeUri(W).replace(/%2F/g,"/")}return U}async getSignature(U,w,W,G){const f=await this.createStringToSign(U,w,G),L=new this.sha256(await W);return L.update(vU.toUint8Array(f)),L0.toHex(await L.digest())}getSigningKey(U,w,W,G){return a6(this.sha256,U,W,w,G||this.service)}validateResolvedCredentials(U){if(typeof U!=="object"||typeof U.accessKeyId!=="string"||typeof U.secretAccessKey!=="string")throw new Error("Resolved credential object is not valid")}};b(WL,"SignatureV4");var c9=WL,f$=b(($)=>{const U=D9($).replace(/[\-:]/g,"");return{longDate:U,shortDate:U.slice(0,8)}},"formatDate"),l6=b(($)=>Object.keys($).sort().join(";"),"getCanonicalHeaderList")});var JL=T((bV,zL)=>{var{defineProperty:Z$,getOwnPropertyDescriptor:v9,getOwnPropertyNames:x9}=Object,u9=Object.prototype.hasOwnProperty,k=($,U)=>Z$($,"name",{value:U,configurable:!0}),y9=($,U)=>{for(var w in U)Z$($,w,{get:U[w],enumerable:!0})},_9=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of x9(U))if(!u9.call($,G)&&G!==w)Z$($,G,{get:()=>U[G],enumerable:!(W=v9(U,G))||W.enumerable})}return $},d9=($)=>_9(Z$({},"__esModule",{value:!0}),$),RL={};y9(RL,{AWSSDKSigV4Signer:()=>s9,AwsSdkSigV4ASigner:()=>m9,AwsSdkSigV4Signer:()=>lU,NODE_SIGV4A_CONFIG_OPTIONS:()=>o9,resolveAWSSDKSigV4Config:()=>t9,resolveAwsSdkSigV4AConfig:()=>r9,resolveAwsSdkSigV4Config:()=>QL,validateSigningProperties:()=>gU});zL.exports=d9(RL);var p9=i(),g9=i(),EL=k(($)=>{var U,w;return g9.HttpResponse.isInstance($)?((U=$.headers)==null?void 0:U.date)??((w=$.headers)==null?void 0:w.Date):void 0},"getDateHeader"),pU=k(($)=>new Date(Date.now()+$),"getSkewCorrectedDate"),l9=k(($,U)=>Math.abs(pU(U).getTime()-$)>=300000,"isClockSkewed"),FL=k(($,U)=>{const w=Date.parse($);if(l9(w,U))return w-Date.now();return U},"getUpdatedSystemClockOffset"),U1=k(($,U)=>{if(!U)throw new Error(`Property \`${$}\` is not resolved for AWS SDK SigV4Auth`);return U},"throwSigningPropertyError"),gU=k(async($)=>{var U,w,W;const G=U1("context",$.context),f=U1("config",$.config),L=(W=(w=(U=G.endpointV2)==null?void 0:U.properties)==null?void 0:w.authSchemes)==null?void 0:W[0],F=await U1("signer",f.signer)(L),X=$==null?void 0:$.signingRegion,Z=$==null?void 0:$.signingRegionSet,R=$==null?void 0:$.signingName;return{config:f,signer:F,signingRegion:X,signingRegionSet:Z,signingName:R}},"validateSigningProperties"),IL=class ${async sign(U,w,W){var G;if(!p9.HttpRequest.isInstance(U))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const f=await gU(W),{config:L,signer:E}=f;let{signingRegion:F,signingName:X}=f;const Z=W.context;if(((G=Z==null?void 0:Z.authSchemes)==null?void 0:G.length)??0>1){const[Y,I]=Z.authSchemes;if((Y==null?void 0:Y.name)==="sigv4a"&&(I==null?void 0:I.name)==="sigv4")F=(I==null?void 0:I.signingRegion)??F,X=(I==null?void 0:I.signingName)??X}return await E.sign(U,{signingDate:pU(L.systemClockOffset),signingRegion:F,signingService:X})}errorHandler(U){return(w)=>{const W=w.ServerTime??EL(w.$response);if(W){const G=U1("config",U.config),f=G.systemClockOffset;if(G.systemClockOffset=FL(W,G.systemClockOffset),G.systemClockOffset!==f&&w.$metadata)w.$metadata.clockSkewCorrected=!0}throw w}}successHandler(U,w){const W=EL(U);if(W){const G=U1("config",w.config);G.systemClockOffset=FL(W,G.systemClockOffset)}}};k(IL,"AwsSdkSigV4Signer");var lU=IL,s9=lU,n9=i(),YL=class $ extends lU{async sign(U,w,W){var G;if(!n9.HttpRequest.isInstance(U))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:f,signer:L,signingRegion:E,signingRegionSet:F,signingName:X}=await gU(W),R=(await((G=f.sigv4aSigningRegionSet)==null?void 0:G.call(f))??F??[E]).join(",");return await L.sign(U,{signingDate:pU(f.systemClockOffset),signingRegion:R,signingService:X})}};k(YL,"AwsSdkSigV4ASigner");var m9=YL,i9=zU(),XL=O$(),r9=k(($)=>{return $.sigv4aSigningRegionSet=i9.normalizeProvider($.sigv4aSigningRegionSet),$},"resolveAwsSdkSigV4AConfig"),o9={environmentVariableSelector($){if($.AWS_SIGV4A_SIGNING_REGION_SET)return $.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((U)=>U.trim());throw new XL.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector($){if($.sigv4a_signing_region_set)return($.sigv4a_signing_region_set??"").split(",").map((U)=>U.trim());throw new XL.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},K0=zU(),ZL=LL(),QL=k(($)=>{let U;if($.credentials)U=K0.memoizeIdentityProvider($.credentials,K0.isIdentityExpired,K0.doesIdentityRequireRefresh);if(!U)if($.credentialDefaultProvider)U=K0.normalizeProvider($.credentialDefaultProvider(Object.assign({},$,{parentClientConfig:$})));else U=k(async()=>{throw new Error("`credentials` is missing")},"normalizedCreds");const{signingEscapePath:w=!0,systemClockOffset:W=$.systemClockOffset||0,sha256:G}=$;let f;if($.signer)f=K0.normalizeProvider($.signer);else if($.regionInfoProvider)f=k(()=>K0.normalizeProvider($.region)().then(async(L)=>[await $.regionInfoProvider(L,{useFipsEndpoint:await $.useFipsEndpoint(),useDualstackEndpoint:await $.useDualstackEndpoint()})||{},L]).then(([L,E])=>{const{signingRegion:F,signingService:X}=L;$.signingRegion=$.signingRegion||F||E,$.signingName=$.signingName||X||$.serviceId;const Z={...$,credentials:U,region:$.signingRegion,service:$.signingName,sha256:G,uriEscapePath:w};return new($.signerConstructor||ZL.SignatureV4)(Z)}),"signer");else f=k(async(L)=>{L=Object.assign({},{name:"sigv4",signingName:$.signingName||$.defaultSigningName,signingRegion:await K0.normalizeProvider($.region)(),properties:{}},L);const{signingRegion:E,signingName:F}=L;$.signingRegion=$.signingRegion||E,$.signingName=$.signingName||F||$.serviceId;const X={...$,credentials:U,region:$.signingRegion,service:$.signingName,sha256:G,uriEscapePath:w};return new($.signerConstructor||ZL.SignatureV4)(X)},"signer");return{...$,systemClockOffset:W,signingEscapePath:w,credentials:U,signer:f}},"resolveAwsSdkSigV4Config"),t9=QL});var R$=T((wQ)=>{var a9=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",KL="[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]["+a9+"]*",e9=new RegExp("^"+KL+"$"),$Q=function($,U){const w=[];let W=U.exec($);while(W){const G=[];G.startIndex=U.lastIndex-W[0].length;const f=W.length;for(let L=0;L<f;L++)G.push(W[L]);w.push(G),W=U.exec($)}return w},UQ=function($){const U=e9.exec($);return!(U===null||typeof U==="undefined")};wQ.isExist=function($){return typeof $!=="undefined"};wQ.isEmptyObject=function($){return Object.keys($).length===0};wQ.merge=function($,U,w){if(U){const W=Object.keys(U),G=W.length;for(let f=0;f<G;f++)if(w==="strict")$[W[f]]=[U[W[f]]];else $[W[f]]=U[W[f]]}};wQ.getValue=function($){if(wQ.isExist($))return $;else return""};wQ.isName=UQ;wQ.getAllMatches=$Q;wQ.nameRegexp=KL});var nU=T((TQ)=>{var ML=function($){return $===" "||$==="\t"||$==="\n"||$==="\r"},AL=function($,U){const w=U;for(;U<$.length;U++)if($[U]=="?"||$[U]==" "){const W=$.substr(w,U-w);if(U>5&&W==="xml")return j("InvalidXml","XML declaration allowed only at the start of the document.",D($,U));else if($[U]=="?"&&$[U+1]==">"){U++;break}else continue}return U},VL=function($,U){if($.length>U+5&&$[U+1]==="-"&&$[U+2]==="-"){for(U+=3;U<$.length;U++)if($[U]==="-"&&$[U+1]==="-"&&$[U+2]===">"){U+=2;break}}else if($.length>U+8&&$[U+1]==="D"&&$[U+2]==="O"&&$[U+3]==="C"&&$[U+4]==="T"&&$[U+5]==="Y"&&$[U+6]==="P"&&$[U+7]==="E"){let w=1;for(U+=8;U<$.length;U++)if($[U]==="<")w++;else if($[U]===">"){if(w--,w===0)break}}else if($.length>U+9&&$[U+1]==="["&&$[U+2]==="C"&&$[U+3]==="D"&&$[U+4]==="A"&&$[U+5]==="T"&&$[U+6]==="A"&&$[U+7]==="["){for(U+=8;U<$.length;U++)if($[U]==="]"&&$[U+1]==="]"&&$[U+2]===">"){U+=2;break}}return U},IQ=function($,U){let w="",W="",G=!1;for(;U<$.length;U++){if($[U]===ZQ||$[U]===RQ)if(W==="")W=$[U];else if(W!==$[U]);else W="";else if($[U]===">"){if(W===""){G=!0;break}}w+=$[U]}if(W!=="")return!1;return{value:w,index:U,tagClosed:G}},OL=function($,U){const w=sU.getAllMatches($,YQ),W={};for(let G=0;G<w.length;G++){if(w[G][1].length===0)return j("InvalidAttr","Attribute '"+w[G][2]+"' has no space in starting.",w1(w[G]));else if(w[G][3]!==void 0&&w[G][4]===void 0)return j("InvalidAttr","Attribute '"+w[G][2]+"' is without value.",w1(w[G]));else if(w[G][3]===void 0&&!U.allowBooleanAttributes)return j("InvalidAttr","boolean attribute '"+w[G][2]+"' is not allowed.",w1(w[G]));const f=w[G][2];if(!JQ(f))return j("InvalidAttr","Attribute '"+f+"' is an invalid name.",w1(w[G]));if(!W.hasOwnProperty(f))W[f]=1;else return j("InvalidAttr","Attribute '"+f+"' is repeated.",w1(w[G]))}return!0},QQ=function($,U){let w=/\d/;if($[U]==="x")U++,w=/[\da-fA-F]/;for(;U<$.length;U++){if($[U]===";")return U;if(!$[U].match(w))break}return-1},zQ=function($,U){if(U++,$[U]===";")return-1;if($[U]==="#")return U++,QQ($,U);let w=0;for(;U<$.length;U++,w++){if($[U].match(/\w/)&&w<20)continue;if($[U]===";")break;return-1}return U},j=function($,U,w){return{err:{code:$,msg:U,line:w.line||w,col:w.col}}},JQ=function($){return sU.isName($)},KQ=function($){return sU.isName($)},D=function($,U){const w=$.substring(0,U).split(/\r?\n/);return{line:w.length,col:w[w.length-1].length+1}},w1=function($){return $.startIndex+$[1].length},sU=R$(),XQ={allowBooleanAttributes:!1,unpairedTags:[]};TQ.validate=function($,U){U=Object.assign({},XQ,U);const w=[];let W=!1,G=!1;if($[0]==="\uFEFF")$=$.substr(1);for(let f=0;f<$.length;f++)if($[f]==="<"&&$[f+1]==="?"){if(f+=2,f=AL($,f),f.err)return f}else if($[f]==="<"){let L=f;if(f++,$[f]==="!"){f=VL($,f);continue}else{let E=!1;if($[f]==="/")E=!0,f++;let F="";for(;f<$.length&&$[f]!==">"&&$[f]!==" "&&$[f]!=="\t"&&$[f]!=="\n"&&$[f]!=="\r";f++)F+=$[f];if(F=F.trim(),F[F.length-1]==="/")F=F.substring(0,F.length-1),f--;if(!KQ(F)){let R;if(F.trim().length===0)R="Invalid space after '<'.";else R="Tag '"+F+"' is an invalid name.";return j("InvalidTag",R,D($,f))}const X=IQ($,f);if(X===!1)return j("InvalidAttr","Attributes for '"+F+"' have open quote.",D($,f));let Z=X.value;if(f=X.index,Z[Z.length-1]==="/"){const R=f-Z.length;Z=Z.substring(0,Z.length-1);const Y=OL(Z,U);if(Y===!0)W=!0;else return j(Y.err.code,Y.err.msg,D($,R+Y.err.line))}else if(E)if(!X.tagClosed)return j("InvalidTag","Closing tag '"+F+"' doesn't have proper closing.",D($,f));else if(Z.trim().length>0)return j("InvalidTag","Closing tag '"+F+"' can't have attributes or invalid starting.",D($,L));else if(w.length===0)return j("InvalidTag","Closing tag '"+F+"' has not been opened.",D($,L));else{const R=w.pop();if(F!==R.tagName){let Y=D($,R.tagStartPos);return j("InvalidTag","Expected closing tag '"+R.tagName+"' (opened in line "+Y.line+", col "+Y.col+") instead of closing tag '"+F+"'.",D($,L))}if(w.length==0)G=!0}else{const R=OL(Z,U);if(R!==!0)return j(R.err.code,R.err.msg,D($,f-Z.length+R.err.line));if(G===!0)return j("InvalidXml","Multiple possible root nodes found.",D($,f));else if(U.unpairedTags.indexOf(F)!==-1);else w.push({tagName:F,tagStartPos:L});W=!0}for(f++;f<$.length;f++)if($[f]==="<")if($[f+1]==="!"){f++,f=VL($,f);continue}else if($[f+1]==="?"){if(f=AL($,++f),f.err)return f}else break;else if($[f]==="&"){const R=zQ($,f);if(R==-1)return j("InvalidChar","char '&' is not expected.",D($,f));f=R}else if(G===!0&&!ML($[f]))return j("InvalidXml","Extra text at the end",D($,f));if($[f]==="<")f--}}else{if(ML($[f]))continue;return j("InvalidChar","char '"+$[f]+"' is not expected.",D($,f))}if(!W)return j("InvalidXml","Start tag expected.",1);else if(w.length==1)return j("InvalidTag","Unclosed tag '"+w[0].tagName+"'.",D($,w[0].tagStartPos));else if(w.length>0)return j("InvalidXml","Invalid '"+JSON.stringify(w.map((f)=>f.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};var ZQ='"',RQ="'",YQ=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g")});var HL=T((VQ)=>{var BL={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function($,U){return U},attributeValueProcessor:function($,U){return U},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function($,U,w){return $}},AQ=function($){return Object.assign({},BL,$)};VQ.buildOptions=AQ;VQ.defaultOptions=BL});var qL=T((cV,NL)=>{class CL{constructor($){this.tagname=$,this.child=[],this[":@"]={}}add($,U){if($==="__proto__")$="#__proto__";this.child.push({[$]:U})}addChild($){if($.tagname==="__proto__")$.tagname="#__proto__";if($[":@"]&&Object.keys($[":@"]).length>0)this.child.push({[$.tagname]:$.child,[":@"]:$[":@"]});else this.child.push({[$.tagname]:$.child})}}NL.exports=CL});var jL=T((vV,PL)=>{var CQ=function($,U){const w={};if($[U+3]==="O"&&$[U+4]==="C"&&$[U+5]==="T"&&$[U+6]==="Y"&&$[U+7]==="P"&&$[U+8]==="E"){U=U+9;let W=1,G=!1,f=!1,L="";for(;U<$.length;U++)if($[U]==="<"&&!f){if(G&&PQ($,U)){if(U+=7,[entityName,val,U]=NQ($,U+1),val.indexOf("&")===-1)w[hQ(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(G&&jQ($,U))U+=8;else if(G&&SQ($,U))U+=8;else if(G&&bQ($,U))U+=9;else if(qQ)f=!0;else throw new Error("Invalid DOCTYPE");W++,L=""}else if($[U]===">"){if(f){if($[U-1]==="-"&&$[U-2]==="-")f=!1,W--}else W--;if(W===0)break}else if($[U]==="[")G=!0;else L+=$[U];if(W!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:w,i:U}},NQ=function($,U){let w="";for(;U<$.length&&($[U]!=="'"&&$[U]!=='"');U++)w+=$[U];if(w=w.trim(),w.indexOf(" ")!==-1)throw new Error("External entites are not supported");const W=$[U++];let G="";for(;U<$.length&&$[U]!==W;U++)G+=$[U];return[w,G,U]},qQ=function($,U){if($[U+1]==="!"&&$[U+2]==="-"&&$[U+3]==="-")return!0;return!1},PQ=function($,U){if($[U+1]==="!"&&$[U+2]==="E"&&$[U+3]==="N"&&$[U+4]==="T"&&$[U+5]==="I"&&$[U+6]==="T"&&$[U+7]==="Y")return!0;return!1},jQ=function($,U){if($[U+1]==="!"&&$[U+2]==="E"&&$[U+3]==="L"&&$[U+4]==="E"&&$[U+5]==="M"&&$[U+6]==="E"&&$[U+7]==="N"&&$[U+8]==="T")return!0;return!1},SQ=function($,U){if($[U+1]==="!"&&$[U+2]==="A"&&$[U+3]==="T"&&$[U+4]==="T"&&$[U+5]==="L"&&$[U+6]==="I"&&$[U+7]==="S"&&$[U+8]==="T")return!0;return!1},bQ=function($,U){if($[U+1]==="!"&&$[U+2]==="N"&&$[U+3]==="O"&&$[U+4]==="T"&&$[U+5]==="A"&&$[U+6]==="T"&&$[U+7]==="I"&&$[U+8]==="O"&&$[U+9]==="N")return!0;return!1},hQ=function($){if(HQ.isName($))return $;else throw new Error(`Invalid entity name ${$}`)},HQ=R$();PL.exports=CQ});var bL=T((xV,SL)=>{var vQ=function($,U={}){if(U=Object.assign({},cQ,U),!$||typeof $!=="string")return $;let w=$.trim();if(U.skipLike!==void 0&&U.skipLike.test(w))return $;else if(U.hex&&DQ.test(w))return Number.parseInt(w,16);else{const W=kQ.exec(w);if(W){const G=W[1],f=W[2];let L=xQ(W[3]);const E=W[4]||W[6];if(!U.leadingZeros&&f.length>0&&G&&w[2]!==".")return $;else if(!U.leadingZeros&&f.length>0&&!G&&w[1]!==".")return $;else{const F=Number(w),X=""+F;if(X.search(/[eE]/)!==-1)if(U.eNotation)return F;else return $;else if(E)if(U.eNotation)return F;else return $;else if(w.indexOf(".")!==-1)if(X==="0"&&L==="")return F;else if(X===L)return F;else if(G&&X==="-"+L)return F;else return $;if(f)if(L===X)return F;else if(G+L===X)return F;else return $;if(w===X)return F;else if(w===G+X)return F;return $}}else return $}},xQ=function($){if($&&$.indexOf(".")!==-1){if($=$.replace(/0+$/,""),$===".")$="0";else if($[0]===".")$="0"+$;else if($[$.length-1]===".")$=$.substr(0,$.length-1);return $}return $},DQ=/^[-+]?0x[a-fA-F0-9]+$/,kQ=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;if(!Number.parseInt&&window.parseInt)Number.parseInt=window.parseInt;if(!Number.parseFloat&&window.parseFloat)Number.parseFloat=window.parseFloat;var cQ={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};SL.exports=vQ});var cL=T((uV,kL)=>{var _Q=function($){const U=Object.keys($);for(let w=0;w<U.length;w++){const W=U[w];this.lastEntities[W]={regex:new RegExp("&"+W+";","g"),val:$[W]}}},dQ=function($,U,w,W,G,f,L){if($!==void 0){if(this.options.trimValues&&!W)$=$.trim();if($.length>0){if(!L)$=this.replaceEntitiesValue($);const E=this.options.tagValueProcessor(U,$,w,G,f);if(E===null||E===void 0)return $;else if(typeof E!==typeof $||E!==$)return E;else if(this.options.trimValues)return iU($,this.options.parseTagValue,this.options.numberParseOptions);else if($.trim()===$)return iU($,this.options.parseTagValue,this.options.numberParseOptions);else return $}}},pQ=function($){if(this.options.removeNSPrefix){const U=$.split(":"),w=$.charAt(0)==="/"?"/":"";if(U[0]==="xmlns")return"";if(U.length===2)$=w+U[1]}return $},lQ=function($,U,w){if(!this.options.ignoreAttributes&&typeof $==="string"){const W=hL.getAllMatches($,gQ),G=W.length,f={};for(let L=0;L<G;L++){const E=this.resolveNameSpace(W[L][1]);let F=W[L][4],X=this.options.attributeNamePrefix+E;if(E.length){if(this.options.transformAttributeName)X=this.options.transformAttributeName(X);if(X==="__proto__")X="#__proto__";if(F!==void 0){if(this.options.trimValues)F=F.trim();F=this.replaceEntitiesValue(F);const Z=this.options.attributeValueProcessor(E,F,U);if(Z===null||Z===void 0)f[X]=F;else if(typeof Z!==typeof F||Z!==F)f[X]=Z;else f[X]=iU(F,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)f[X]=!0}}if(!Object.keys(f).length)return;if(this.options.attributesGroupName){const L={};return L[this.options.attributesGroupName]=f,L}return f}},nQ=function($,U,w){const W=this.options.updateTag(U.tagname,w,U[":@"]);if(W===!1);else if(typeof W==="string")U.tagname=W,$.addChild(U);else $.addChild(U)},iQ=function($,U,w,W){if($){if(W===void 0)W=Object.keys(U.child).length===0;if($=this.parseTextData($,U.tagname,w,!1,U[":@"]?Object.keys(U[":@"]).length!==0:!1,W),$!==void 0&&$!=="")U.add(this.options.textNodeName,$);$=""}return $},rQ=function($,U,w){const W="*."+w;for(let G in $){const f=$[G];if(W===f||U===f)return!0}return!1},oQ=function($,U,w=">"){let W,G="";for(let f=U;f<$.length;f++){let L=$[f];if(W){if(L===W)W=""}else if(L==='"'||L==="'")W=L;else if(L===w[0])if(w[1]){if($[f+1]===w[1])return{data:G,index:f}}else return{data:G,index:f};else if(L==="\t")L=" ";G+=L}},T0=function($,U,w,W){const G=$.indexOf(U,w);if(G===-1)throw new Error(W);else return G+U.length-1},mU=function($,U,w,W=">"){const G=oQ($,U+1,W);if(!G)return;let f=G.data;const L=G.index,E=f.search(/\s/);let F=f,X=!0;if(E!==-1)F=f.substring(0,E),f=f.substring(E+1).trimStart();const Z=F;if(w){const R=F.indexOf(":");if(R!==-1)F=F.substr(R+1),X=F!==G.data.substr(R+1)}return{tagName:F,tagExp:f,closeIndex:L,attrExpPresent:X,rawTagName:Z}},tQ=function($,U,w){const W=w;let G=1;for(;w<$.length;w++)if($[w]==="<")if($[w+1]==="/"){const f=T0($,">",w,`${U} is not closed`);if($.substring(w+2,f).trim()===U){if(G--,G===0)return{tagContent:$.substring(W,w),i:f}}w=f}else if($[w+1]==="?")w=T0($,"?>",w+1,"StopNode is not closed.");else if($.substr(w+1,3)==="!--")w=T0($,"-->",w+3,"StopNode is not closed.");else if($.substr(w+1,2)==="![")w=T0($,"]]>",w,"StopNode is not closed.")-2;else{const f=mU($,w,">");if(f){if((f&&f.tagName)===U&&f.tagExp[f.tagExp.length-1]!=="/")G++;w=f.closeIndex}}},iU=function($,U,w){if(U&&typeof $==="string"){const W=$.trim();if(W==="true")return!0;else if(W==="false")return!1;else return yQ($,w)}else if(hL.isExist($))return $;else return""},hL=R$(),G1=qL(),uQ=jL(),yQ=bL();class DL{constructor($){this.options=$,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:"\""}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(U,w)=>String.fromCharCode(Number.parseInt(w,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(U,w)=>String.fromCharCode(Number.parseInt(w,16))}},this.addExternalEntities=_Q,this.parseXml=sQ,this.parseTextData=dQ,this.resolveNameSpace=pQ,this.buildAttributesMap=lQ,this.isItStopNode=rQ,this.replaceEntitiesValue=mQ,this.readStopNodeData=tQ,this.saveTextToParentTag=iQ,this.addChild=nQ}}var gQ=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm"),sQ=function($){$=$.replace(/\r\n?/g,"\n");const U=new G1("!xml");let w=U,W="",G="";for(let f=0;f<$.length;f++)if($[f]==="<")if($[f+1]==="/"){const E=T0($,">",f,"Closing Tag is not closed.");let F=$.substring(f+2,E).trim();if(this.options.removeNSPrefix){const R=F.indexOf(":");if(R!==-1)F=F.substr(R+1)}if(this.options.transformTagName)F=this.options.transformTagName(F);if(w)W=this.saveTextToParentTag(W,w,G);const X=G.substring(G.lastIndexOf(".")+1);if(F&&this.options.unpairedTags.indexOf(F)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${F}>`);let Z=0;if(X&&this.options.unpairedTags.indexOf(X)!==-1)Z=G.lastIndexOf(".",G.lastIndexOf(".")-1),this.tagsNodeStack.pop();else Z=G.lastIndexOf(".");G=G.substring(0,Z),w=this.tagsNodeStack.pop(),W="",f=E}else if($[f+1]==="?"){let E=mU($,f,!1,"?>");if(!E)throw new Error("Pi Tag is not closed.");if(W=this.saveTextToParentTag(W,w,G),this.options.ignoreDeclaration&&E.tagName==="?xml"||this.options.ignorePiTags);else{const F=new G1(E.tagName);if(F.add(this.options.textNodeName,""),E.tagName!==E.tagExp&&E.attrExpPresent)F[":@"]=this.buildAttributesMap(E.tagExp,G,E.tagName);this.addChild(w,F,G)}f=E.closeIndex+1}else if($.substr(f+1,3)==="!--"){const E=T0($,"-->",f+4,"Comment is not closed.");if(this.options.commentPropName){const F=$.substring(f+4,E-2);W=this.saveTextToParentTag(W,w,G),w.add(this.options.commentPropName,[{[this.options.textNodeName]:F}])}f=E}else if($.substr(f+1,2)==="!D"){const E=uQ($,f);this.docTypeEntities=E.entities,f=E.i}else if($.substr(f+1,2)==="!["){const E=T0($,"]]>",f,"CDATA is not closed.")-2,F=$.substring(f+9,E);W=this.saveTextToParentTag(W,w,G);let X=this.parseTextData(F,w.tagname,G,!0,!1,!0,!0);if(X==null)X="";if(this.options.cdataPropName)w.add(this.options.cdataPropName,[{[this.options.textNodeName]:F}]);else w.add(this.options.textNodeName,X);f=E+2}else{let E=mU($,f,this.options.removeNSPrefix),F=E.tagName;const X=E.rawTagName;let{tagExp:Z,attrExpPresent:R,closeIndex:Y}=E;if(this.options.transformTagName)F=this.options.transformTagName(F);if(w&&W){if(w.tagname!=="!xml")W=this.saveTextToParentTag(W,w,G,!1)}const I=w;if(I&&this.options.unpairedTags.indexOf(I.tagname)!==-1)w=this.tagsNodeStack.pop(),G=G.substring(0,G.lastIndexOf("."));if(F!==U.tagname)G+=G?"."+F:F;if(this.isItStopNode(this.options.stopNodes,G,F)){let Q="";if(Z.length>0&&Z.lastIndexOf("/")===Z.length-1){if(F[F.length-1]==="/")F=F.substr(0,F.length-1),G=G.substr(0,G.length-1),Z=F;else Z=Z.substr(0,Z.length-1);f=E.closeIndex}else if(this.options.unpairedTags.indexOf(F)!==-1)f=E.closeIndex;else{const K=this.readStopNodeData($,X,Y+1);if(!K)throw new Error(`Unexpected end of ${X}`);f=K.i,Q=K.tagContent}const A=new G1(F);if(F!==Z&&R)A[":@"]=this.buildAttributesMap(Z,G,F);if(Q)Q=this.parseTextData(Q,F,G,!0,R,!0,!0);G=G.substr(0,G.lastIndexOf(".")),A.add(this.options.textNodeName,Q),this.addChild(w,A,G)}else{if(Z.length>0&&Z.lastIndexOf("/")===Z.length-1){if(F[F.length-1]==="/")F=F.substr(0,F.length-1),G=G.substr(0,G.length-1),Z=F;else Z=Z.substr(0,Z.length-1);if(this.options.transformTagName)F=this.options.transformTagName(F);const Q=new G1(F);if(F!==Z&&R)Q[":@"]=this.buildAttributesMap(Z,G,F);this.addChild(w,Q,G),G=G.substr(0,G.lastIndexOf("."))}else{const Q=new G1(F);if(this.tagsNodeStack.push(w),F!==Z&&R)Q[":@"]=this.buildAttributesMap(Z,G,F);this.addChild(w,Q,G),w=Q}W="",f=Y}}else W+=$[f];return U.child},mQ=function($){if(this.options.processEntities){for(let U in this.docTypeEntities){const w=this.docTypeEntities[U];$=$.replace(w.regx,w.val)}for(let U in this.lastEntities){const w=this.lastEntities[U];$=$.replace(w.regex,w.val)}if(this.options.htmlEntities)for(let U in this.htmlEntities){const w=this.htmlEntities[U];$=$.replace(w.regex,w.val)}$=$.replace(this.ampEntity.regex,this.ampEntity.val)}return $};kL.exports=DL});var xL=T((w7)=>{var aQ=function($,U){return vL($,U)},vL=function($,U,w){let W;const G={};for(let f=0;f<$.length;f++){const L=$[f],E=eQ(L);let F="";if(w===void 0)F=E;else F=w+"."+E;if(E===U.textNodeName)if(W===void 0)W=L[E];else W+=""+L[E];else if(E===void 0)continue;else if(L[E]){let X=vL(L[E],U,F);const Z=U7(X,U);if(L[":@"])$7(X,L[":@"],F,U);else if(Object.keys(X).length===1&&X[U.textNodeName]!==void 0&&!U.alwaysCreateTextNode)X=X[U.textNodeName];else if(Object.keys(X).length===0)if(U.alwaysCreateTextNode)X[U.textNodeName]="";else X="";if(G[E]!==void 0&&G.hasOwnProperty(E)){if(!Array.isArray(G[E]))G[E]=[G[E]];G[E].push(X)}else if(U.isArray(E,F,Z))G[E]=[X];else G[E]=X}}if(typeof W==="string"){if(W.length>0)G[U.textNodeName]=W}else if(W!==void 0)G[U.textNodeName]=W;return G},eQ=function($){const U=Object.keys($);for(let w=0;w<U.length;w++){const W=U[w];if(W!==":@")return W}},$7=function($,U,w,W){if(U){const G=Object.keys(U),f=G.length;for(let L=0;L<f;L++){const E=G[L];if(W.isArray(E,w+"."+E,!0,!0))$[E]=[U[E]];else $[E]=U[E]}}},U7=function($,U){const{textNodeName:w}=U,W=Object.keys($).length;if(W===0)return!0;if(W===1&&($[w]||typeof $[w]==="boolean"||$[w]===0))return!0;return!1};w7.prettify=aQ});var _L=T((_V,yL)=>{var{buildOptions:W7}=HL(),f7=cL(),{prettify:L7}=xL(),E7=nU();class uL{constructor($){this.externalEntities={},this.options=W7($)}parse($,U){if(typeof $==="string");else if($.toString)$=$.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(U){if(U===!0)U={};const G=E7.validate($,U);if(G!==!0)throw Error(`${G.err.msg}:${G.err.line}:${G.err.col}`)}const w=new f7(this.options);w.addExternalEntities(this.externalEntities);const W=w.parseXml($);if(this.options.preserveOrder||W===void 0)return W;else return L7(W,this.options)}addEntity($,U){if(U.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");else if($.indexOf("&")!==-1||$.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");else if(U==="&")throw new Error("An entity with value '&' is not permitted");else this.externalEntities[$]=U}}yL.exports=uL});var sL=T((dV,lL)=>{var F7=function($,U){let w="";if(U.format&&U.indentBy.length>0)w="\n";return pL($,U,"",w)},pL=function($,U,w,W){let G="",f=!1;for(let L=0;L<$.length;L++){const E=$[L],F=X7(E);if(F===void 0)continue;let X="";if(w.length===0)X=F;else X=`${w}.${F}`;if(F===U.textNodeName){let Q=E[F];if(!Z7(X,U))Q=U.tagValueProcessor(F,Q),Q=gL(Q,U);if(f)G+=W;G+=Q,f=!1;continue}else if(F===U.cdataPropName){if(f)G+=W;G+=`<![CDATA[${E[F][0][U.textNodeName]}]]>`,f=!1;continue}else if(F===U.commentPropName){G+=W+`<!--${E[F][0][U.textNodeName]}-->`,f=!0;continue}else if(F[0]==="?"){const Q=dL(E[":@"],U),A=F==="?xml"?"":W;let K=E[F][0][U.textNodeName];K=K.length!==0?" "+K:"",G+=A+`<${F}${K}${Q}?>`,f=!0;continue}let Z=W;if(Z!=="")Z+=U.indentBy;const R=dL(E[":@"],U),Y=W+`<${F}${R}`,I=pL(E[F],U,X,Z);if(U.unpairedTags.indexOf(F)!==-1)if(U.suppressUnpairedNode)G+=Y+">";else G+=Y+"/>";else if((!I||I.length===0)&&U.suppressEmptyNode)G+=Y+"/>";else if(I&&I.endsWith(">"))G+=Y+`>${I}${W}</${F}>`;else{if(G+=Y+">",I&&W!==""&&(I.includes("/>")||I.includes("</")))G+=W+U.indentBy+I+W;else G+=I;G+=`</${F}>`}f=!0}return G},X7=function($){const U=Object.keys($);for(let w=0;w<U.length;w++){const W=U[w];if(!$.hasOwnProperty(W))continue;if(W!==":@")return W}},dL=function($,U){let w="";if($&&!U.ignoreAttributes)for(let W in $){if(!$.hasOwnProperty(W))continue;let G=U.attributeValueProcessor(W,$[W]);if(G=gL(G,U),G===!0&&U.suppressBooleanAttributes)w+=` ${W.substr(U.attributeNamePrefix.length)}`;else w+=` ${W.substr(U.attributeNamePrefix.length)}="${G}"`}return w},Z7=function($,U){$=$.substr(0,$.length-U.textNodeName.length-1);let w=$.substr($.lastIndexOf(".")+1);for(let W in U.stopNodes)if(U.stopNodes[W]===$||U.stopNodes[W]==="*."+w)return!0;return!1},gL=function($,U){if($&&$.length>0&&U.processEntities)for(let w=0;w<U.entities.length;w++){const W=U.entities[w];$=$.replace(W.regex,W.val)}return $};lL.exports=F7});var mL=T((pV,nL)=>{var E0=function($){if(this.options=Object.assign({},I7,$),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=z7;if(this.processTextOrObjNode=Y7,this.options.format)this.indentate=Q7,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""},Y7=function($,U,w){const W=this.j2x($,w+1);if($[this.options.textNodeName]!==void 0&&Object.keys($).length===1)return this.buildTextValNode($[this.options.textNodeName],U,W.attrStr,w);else return this.buildObjectNode(W.val,U,W.attrStr,w)},Q7=function($){return this.options.indentBy.repeat($)},z7=function($){if($.startsWith(this.options.attributeNamePrefix)&&$!==this.options.textNodeName)return $.substr(this.attrPrefixLen);else return!1},R7=sL(),I7={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function($,U){return U},attributeValueProcessor:function($,U){return U},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("\'","g"),val:"'"},{regex:new RegExp("\"","g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};E0.prototype.build=function($){if(this.options.preserveOrder)return R7($,this.options);else{if(Array.isArray($)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)$={[this.options.arrayNodeName]:$};return this.j2x($,0).val}};E0.prototype.j2x=function($,U){let w="",W="";for(let G in $){if(!Object.prototype.hasOwnProperty.call($,G))continue;if(typeof $[G]==="undefined"){if(this.isAttribute(G))W+=""}else if($[G]===null)if(this.isAttribute(G))W+="";else if(G[0]==="?")W+=this.indentate(U)+"<"+G+"?"+this.tagEndChar;else W+=this.indentate(U)+"<"+G+"/"+this.tagEndChar;else if($[G]instanceof Date)W+=this.buildTextValNode($[G],G,"",U);else if(typeof $[G]!=="object"){const f=this.isAttribute(G);if(f)w+=this.buildAttrPairStr(f,""+$[G]);else if(G===this.options.textNodeName){let L=this.options.tagValueProcessor(G,""+$[G]);W+=this.replaceEntitiesValue(L)}else W+=this.buildTextValNode($[G],G,"",U)}else if(Array.isArray($[G])){const f=$[G].length;let L="",E="";for(let F=0;F<f;F++){const X=$[G][F];if(typeof X==="undefined");else if(X===null)if(G[0]==="?")W+=this.indentate(U)+"<"+G+"?"+this.tagEndChar;else W+=this.indentate(U)+"<"+G+"/"+this.tagEndChar;else if(typeof X==="object")if(this.options.oneListGroup){const Z=this.j2x(X,U+1);if(L+=Z.val,this.options.attributesGroupName&&X.hasOwnProperty(this.options.attributesGroupName))E+=Z.attrStr}else L+=this.processTextOrObjNode(X,G,U);else if(this.options.oneListGroup){let Z=this.options.tagValueProcessor(G,X);Z=this.replaceEntitiesValue(Z),L+=Z}else L+=this.buildTextValNode(X,G,"",U)}if(this.options.oneListGroup)L=this.buildObjectNode(L,G,E,U);W+=L}else if(this.options.attributesGroupName&&G===this.options.attributesGroupName){const f=Object.keys($[G]),L=f.length;for(let E=0;E<L;E++)w+=this.buildAttrPairStr(f[E],""+$[G][f[E]])}else W+=this.processTextOrObjNode($[G],G,U)}return{attrStr:w,val:W}};E0.prototype.buildAttrPairStr=function($,U){if(U=this.options.attributeValueProcessor($,""+U),U=this.replaceEntitiesValue(U),this.options.suppressBooleanAttributes&&U==="true")return" "+$;else return" "+$+'="'+U+'"'};E0.prototype.buildObjectNode=function($,U,w,W){if($==="")if(U[0]==="?")return this.indentate(W)+"<"+U+w+"?"+this.tagEndChar;else return this.indentate(W)+"<"+U+w+this.closeTag(U)+this.tagEndChar;else{let G="</"+U+this.tagEndChar,f="";if(U[0]==="?")f="?",G="";if((w||w==="")&&$.indexOf("<")===-1)return this.indentate(W)+"<"+U+w+f+">"+$+G;else if(this.options.commentPropName!==!1&&U===this.options.commentPropName&&f.length===0)return this.indentate(W)+`<!--${$}-->`+this.newLine;else return this.indentate(W)+"<"+U+w+f+this.tagEndChar+$+this.indentate(W)+G}};E0.prototype.closeTag=function($){let U="";if(this.options.unpairedTags.indexOf($)!==-1){if(!this.options.suppressUnpairedNode)U="/"}else if(this.options.suppressEmptyNode)U="/";else U=`></${$}`;return U};E0.prototype.buildTextValNode=function($,U,w,W){if(this.options.cdataPropName!==!1&&U===this.options.cdataPropName)return this.indentate(W)+`<![CDATA[${$}]]>`+this.newLine;else if(this.options.commentPropName!==!1&&U===this.options.commentPropName)return this.indentate(W)+`<!--${$}-->`+this.newLine;else if(U[0]==="?")return this.indentate(W)+"<"+U+w+"?"+this.tagEndChar;else{let G=this.options.tagValueProcessor(U,$);if(G=this.replaceEntitiesValue(G),G==="")return this.indentate(W)+"<"+U+w+this.closeTag(U)+this.tagEndChar;else return this.indentate(W)+"<"+U+w+">"+G+"</"+U+this.tagEndChar}};E0.prototype.replaceEntitiesValue=function($){if($&&$.length>0&&this.options.processEntities)for(let U=0;U<this.options.entities.length;U++){const w=this.options.entities[U];$=$.replace(w.regex,w.val)}return $};nL.exports=E0});var rL=T((gV,iL)=>{var J7=nU(),K7=_L(),T7=mL();iL.exports={XMLParser:K7,XMLValidator:J7,XMLBuilder:T7}});var UE=T((lV,$E)=>{var{defineProperty:I$,getOwnPropertyDescriptor:M7,getOwnPropertyNames:A7}=Object,V7=Object.prototype.hasOwnProperty,c=($,U)=>I$($,"name",{value:U,configurable:!0}),O7=($,U)=>{for(var w in U)I$($,w,{get:U[w],enumerable:!0})},B7=($,U,w,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of A7(U))if(!V7.call($,G)&&G!==w)I$($,G,{get:()=>U[G],enumerable:!(W=M7(U,G))||W.enumerable})}return $},H7=($)=>B7(I$({},"__esModule",{value:!0}),$),oL={};O7(oL,{_toBool:()=>N7,_toNum:()=>q7,_toStr:()=>C7,awsExpectUnion:()=>j7,loadRestJsonErrorCode:()=>h7,loadRestXmlErrorCode:()=>v7,parseJsonBody:()=>aL,parseJsonErrorBody:()=>b7,parseXmlBody:()=>eL,parseXmlErrorBody:()=>c7});$E.exports=H7(oL);var C7=c(($)=>{if($==null)return $;if(typeof $==="number"||typeof $==="bigint"){const U=new Error(`Received number ${$} where a string was expected.`);return U.name="Warning",console.warn(U),String($)}if(typeof $==="boolean"){const U=new Error(`Received boolean ${$} where a string was expected.`);return U.name="Warning",console.warn(U),String($)}return $},"_toStr"),N7=c(($)=>{if($==null)return $;if(typeof $==="string"){const U=$.toLowerCase();if($!==""&&U!=="false"&&U!=="true"){const w=new Error(`Received string "${$}" where a boolean was expected.`);w.name="Warning",console.warn(w)}return $!==""&&U!=="false"}return $},"_toBool"),q7=c(($)=>{if($==null)return $;if(typeof $==="string"){const U=Number($);if(U.toString()!==$){const w=new Error(`Received string "${$}" where a number was expected.`);return w.name="Warning",console.warn(w),$}return U}return $},"_toNum"),P7=C0(),j7=c(($)=>{if($==null)return;if(typeof $==="object"&&"__type"in $)delete $.__type;return P7.expectUnion($)},"awsExpectUnion"),S7=C0(),tL=c(($,U)=>S7.collectBody($,U).then((w)=>U.utf8Encoder(w)),"collectBodyString"),aL=c(($,U)=>tL($,U).then((w)=>{if(w.length)try{return JSON.parse(w)}catch(W){if((W==null?void 0:W.name)==="SyntaxError")Object.defineProperty(W,"$responseBodyText",{value:w});throw W}return{}}),"parseJsonBody"),b7=c(async($,U)=>{const w=await aL($,U);return w.message=w.message??w.Message,w},"parseJsonErrorBody"),h7=c(($,U)=>{const w=c((f,L)=>Object.keys(f).find((E)=>E.toLowerCase()===L.toLowerCase()),"findKey"),W=c((f)=>{let L=f;if(typeof L==="number")L=L.toString();if(L.indexOf(",")>=0)L=L.split(",")[0];if(L.indexOf(":")>=0)L=L.split(":")[0];if(L.indexOf("#")>=0)L=L.split("#")[1];return L},"sanitizeErrorCode"),G=w($.headers,"x-amzn-errortype");if(G!==void 0)return W($.headers[G]);if(U.code!==void 0)return W(U.code);if(U.__type!==void 0)return W(U.__type)},"loadRestJsonErrorCode"),D7=C0(),k7=rL(),eL=c(($,U)=>tL($,U).then((w)=>{if(w.length){const W=new k7.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(F,X)=>X.trim()===""&&X.includes("\n")?"":void 0});W.addEntity("#xD","\r"),W.addEntity("#10","\n");let G;try{G=W.parse(w,!0)}catch(F){if(F&&typeof F==="object")Object.defineProperty(F,"$responseBodyText",{value:w});throw F}const f="#text",L=Object.keys(G)[0],E=G[L];if(E[f])E[L]=E[f],delete E[f];return D7.getValueFromTextNode(E)}return{}}),"parseXmlBody"),c7=c(async($,U)=>{const w=await eL($,U);if(w.Error)w.Error.message=w.Error.message??w.Error.Message;return w},"parseXmlErrorBody"),v7=c(($,U)=>{var w;if(((w=U==null?void 0:U.Error)==null?void 0:w.Code)!==void 0)return U.Error.Code;if((U==null?void 0:U.Code)!==void 0)return U.Code;if($.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var x7=T((W1)=>{Object.defineProperty(W1,"__esModule",{value:!0});var rU=v6();rU.__exportStar(_6(),W1);rU.__exportStar(JL(),W1);rU.__exportStar(UE(),W1)});function e7($){return $}var QE=($)=>(U)=>async(w)=>{if(!x.isInstance(w.request))return U(w);const{request:W}=w,{handlerProtocol:G=""}=$.requestHandler.metadata||{};if(G.indexOf("h2")>=0&&!W.headers[":authority"])delete W.headers.host,W.headers[":authority"]=W.hostname+(W.port?":"+W.port:"");else if(!W.headers.host){let f=W.hostname;if(W.port!=null)f+=`:${W.port}`;W.headers.host=f}return U(w)},zE={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},$z=($)=>({applyToStack:(U)=>{U.add(QE($),zE)}});var JE=()=>($,U)=>async(w)=>{try{const W=await $(w),{clientName:G,commandName:f,logger:L,dynamoDbDocumentClientOptions:E={}}=U,{overrideInputFilterSensitiveLog:F,overrideOutputFilterSensitiveLog:X}=E,Z=F??U.inputFilterSensitiveLog,R=X??U.outputFilterSensitiveLog,{$metadata:Y,...I}=W.output;return L?.info?.({clientName:G,commandName:f,input:Z(w.input),output:R(I),metadata:Y}),W}catch(W){const{clientName:G,commandName:f,logger:L,dynamoDbDocumentClientOptions:E={}}=U,{overrideInputFilterSensitiveLog:F}=E,X=F??U.inputFilterSensitiveLog;throw L?.error?.({clientName:G,commandName:f,input:X(w.input),error:W,metadata:W.$metadata}),W}},KE={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},wz=($)=>({applyToStack:(U)=>{U.add(JE(),KE)}});var $w="X-Amzn-Trace-Id",TE="AWS_LAMBDA_FUNCTION_NAME",ME="_X_AMZN_TRACE_ID",AE=($)=>(U)=>async(w)=>{const{request:W}=w;if(!x.isInstance(W)||$.runtime!=="node"||W.headers.hasOwnProperty($w))return U(w);const G=process.env[TE],f=process.env[ME],L=(E)=>typeof E==="string"&&E.length>0;if(L(G)&&L(f))W.headers[$w]=f;return U({...w,request:W})},VE={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},Ez=($)=>({applyToStack:(U)=>{U.add(AE($),VE)}});function IJ($){return{...$,customUserAgent:typeof $.customUserAgent==="string"?[[$.customUserAgent]]:$.customUserAgent}}var T5=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}$"),r0=($)=>T5.test($)||$.startsWith("[")&&$.endsWith("]");var M5=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),o0=($,U=!1)=>{if(!U)return M5.test($);const w=$.split(".");for(let W of w)if(!o0(W))return!1;return!0};var t0={};var t="endpoints";function _($){if(typeof $!=="object"||$==null)return $;if("ref"in $)return`\$${_($.ref)}`;if("fn"in $)return`${$.fn}(${($.argv||[]).map(_).join(", ")})`;return JSON.stringify($,null,2)}class H extends Error{constructor($){super($);this.name="EndpointError"}}var Jf=($,U)=>$===U;var Kf=($)=>{const U=$.split("."),w=[];for(let W of U){const G=W.indexOf("[");if(G!==-1){if(W.indexOf("]")!==W.length-1)throw new H(`Path: '${$}' does not end with ']'`);const f=W.slice(G+1,-1);if(Number.isNaN(parseInt(f)))throw new H(`Invalid array index: '${f}' in path: '${$}'`);if(G!==0)w.push(W.slice(0,G));w.push(f)}else w.push(W)}return w};var _1=($,U)=>Kf(U).reduce((w,W)=>{if(typeof w!=="object")throw new H(`Index '${W}' in '${U}' not found in '${JSON.stringify($)}'`);else if(Array.isArray(w))return w[parseInt(W)];return w[W]},$);var Tf=($)=>$!=null;var Mf=($)=>!$;var d1=a0(X0(),1);var JU={[d1.EndpointURLScheme.HTTP]:80,[d1.EndpointURLScheme.HTTPS]:443},Af=($)=>{const U=(()=>{try{if($ instanceof URL)return $;if(typeof $==="object"&&"hostname"in $){const{hostname:Y,port:I,protocol:Q="",path:A="",query:K={}}=$,z=new URL(`${Q}//${Y}${I?`:${I}`:""}${A}`);return z.search=Object.entries(K).map(([M,V])=>`${M}=${V}`).join("&"),z}return new URL($)}catch(Y){return null}})();if(!U)return console.error(`Unable to parse ${JSON.stringify($)} as a whatwg URL.`),null;const w=U.href,{host:W,hostname:G,pathname:f,protocol:L,search:E}=U;if(E)return null;const F=L.slice(0,-1);if(!Object.values(d1.EndpointURLScheme).includes(F))return null;const X=r0(G),Z=w.includes(`${W}:${JU[F]}`)||typeof $==="string"&&$.includes(`${W}:${JU[F]}`),R=`${W}${Z?`:${JU[F]}`:""}`;return{scheme:F,authority:R,path:f,normalizedPath:f.endsWith("/")?f:`${f}/`,isIp:X}};var Vf=($,U)=>$===U;var Of=($,U,w,W)=>{if(U>=w||$.length<w)return null;if(!W)return $.substring(U,w);return $.substring($.length-w,$.length-U)};var Bf=($)=>encodeURIComponent($).replace(/[!*'()]/g,(U)=>`%${U.charCodeAt(0).toString(16).toUpperCase()}`);var Hf={booleanEquals:Jf,getAttr:_1,isSet:Tf,isValidHostLabel:o0,not:Mf,parseURL:Af,stringEquals:Vf,substring:Of,uriEncode:Bf};var p1=($,U)=>{const w=[],W={...U.endpointParams,...U.referenceRecord};let G=0;while(G<$.length){const f=$.indexOf("{",G);if(f===-1){w.push($.slice(G));break}w.push($.slice(G,f));const L=$.indexOf("}",f);if(L===-1){w.push($.slice(f));break}if($[f+1]==="{"&&$[L+1]==="}")w.push($.slice(f+1,L)),G=L+2;const E=$.substring(f+1,L);if(E.includes("#")){const[F,X]=E.split("#");w.push(_1(W[F],X))}else w.push(W[E]);G=L+1}return w.join("")};var Cf=({ref:$},U)=>{return{...U.endpointParams,...U.referenceRecord}[$]};var W0=($,U,w)=>{if(typeof $==="string")return p1($,w);else if($.fn)return g1($,w);else if($.ref)return Cf($,w);throw new H(`'${U}': ${String($)} is not a string, function or reference.`)};var g1=({fn:$,argv:U},w)=>{const W=U.map((f)=>["boolean","number"].includes(typeof f)?f:W0(f,"arg",w)),G=$.split(".");if(G[0]in t0&&G[1]!=null)return t0[G[0]][G[1]](...W);return Hf[$](...W)};var Nf=({assign:$,...U},w)=>{if($&&$ in w.referenceRecord)throw new H(`'${$}' is already defined in Reference Record.`);const W=g1(U,w);return w.logger?.debug?.(`${t} evaluateCondition: ${_(U)} = ${_(W)}`),{result:W===""?!0:!!W,...$!=null&&{toAssign:{name:$,value:W}}}};var q0=($=[],U)=>{const w={};for(let W of $){const{result:G,toAssign:f}=Nf(W,{...U,referenceRecord:{...U.referenceRecord,...w}});if(!G)return{result:G};if(f)w[f.name]=f.value,U.logger?.debug?.(`${t} assign: ${f.name} := ${_(f.value)}`)}return{result:!0,referenceRecord:w}};var qf=($,U)=>Object.entries($).reduce((w,[W,G])=>({...w,[W]:G.map((f)=>{const L=W0(f,"Header value entry",U);if(typeof L!=="string")throw new H(`Header '${W}' value '${L}' is not a string`);return L})}),{});var KU=($,U)=>{if(Array.isArray($))return $.map((w)=>KU(w,U));switch(typeof $){case"string":return p1($,U);case"object":if($===null)throw new H(`Unexpected endpoint property: ${$}`);return l1($,U);case"boolean":return $;default:throw new H(`Unexpected endpoint property type: ${typeof $}`)}};var l1=($,U)=>Object.entries($).reduce((w,[W,G])=>({...w,[W]:KU(G,U)}),{});var Pf=($,U)=>{const w=W0($,"Endpoint URL",U);if(typeof w==="string")try{return new URL(w)}catch(W){throw console.error(`Failed to construct URL with ${w}`,W),W}throw new H(`Endpoint URL must be a string, got ${typeof w}`)};var jf=($,U)=>{const{conditions:w,endpoint:W}=$,{result:G,referenceRecord:f}=q0(w,U);if(!G)return;const L={...U,referenceRecord:{...U.referenceRecord,...f}},{url:E,properties:F,headers:X}=W;return U.logger?.debug?.(`${t} Resolving endpoint from template: ${_(W)}`),{...X!=null&&{headers:qf(X,L)},...F!=null&&{properties:l1(F,L)},url:Pf(E,L)}};var Sf=($,U)=>{const{conditions:w,error:W}=$,{result:G,referenceRecord:f}=q0(w,U);if(!G)return;throw new H(W0(W,"Error",{...U,referenceRecord:{...U.referenceRecord,...f}}))};var bf=($,U)=>{const{conditions:w,rules:W}=$,{result:G,referenceRecord:f}=q0(w,U);if(!G)return;return s1(W,{...U,referenceRecord:{...U.referenceRecord,...f}})};var s1=($,U)=>{for(let w of $)if(w.type==="endpoint"){const W=jf(w,U);if(W)return W}else if(w.type==="error")Sf(w,U);else if(w.type==="tree"){const W=bf(w,U);if(W)return W}else throw new H(`Unknown endpoint rule: ${w}`);throw new H("Rules evaluation failed")};var A5=($,U)=>{const{endpointParams:w,logger:W}=U,{parameters:G,rules:f}=$;U.logger?.debug?.(`${t} Initial EndpointParams: ${_(w)}`);const L=Object.entries(G).filter(([,X])=>X.default!=null).map(([X,Z])=>[X,Z.default]);if(L.length>0)for(let[X,Z]of L)w[X]=w[X]??Z;const E=Object.entries(G).filter(([,X])=>X.required).map(([X])=>X);for(let X of E)if(w[X]==null)throw new H(`Missing required parameter: '${X}'`);const F=s1(f,{endpointParams:w,logger:W,referenceRecord:{}});if(U.endpointParams?.Endpoint)try{const X=new URL(U.endpointParams.Endpoint),{protocol:Z,port:R}=X;F.url.protocol=Z,F.url.port=R}catch(X){}return U.logger?.debug?.(`${t} Resolved endpoint: ${_(F)}`),F};var TU=($,U=!1)=>{if(U){for(let w of $.split("."))if(!TU(w))return!1;return!0}if(!o0($))return!1;if($.length<3||$.length>63)return!1;if($!==$.toLowerCase())return!1;if(r0($))return!1;return!0};var hf=($)=>{const U=$.split(":");if(U.length<6)return null;const[w,W,G,f,L,...E]=U;if(w!=="arn"||W===""||G===""||E[0]==="")return null;return{partition:W,service:G,region:f,accountId:L,resourceId:E[0].includes("/")?E[0].split("/"):E}};var Df={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"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)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],version:"1.1"};var O5=Df,B5="",kf=($)=>{const{partitions:U}=O5;for(let W of U){const{regions:G,outputs:f}=W;for(let[L,E]of Object.entries(G))if(L===$)return{...f,...E}}for(let W of U){const{regionRegex:G,outputs:f}=W;if(new RegExp(G).test($))return{...f}}const w=U.find((W)=>W.id==="aws");if(!w)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...w.outputs}};var cf=()=>B5;var H5={isVirtualHostableS3Bucket:TU,parseArn:hf,partition:kf};t0.aws=H5;var MU="user-agent",n1="x-amz-user-agent",AU=" ",m1="/",vf=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,xf=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,VU="-";var C5=($)=>(U,w)=>async(W)=>{const{request:G}=W;if(!x.isInstance(G))return U(W);const{headers:f}=G,L=w?.userAgent?.map(OU)||[],E=(await $.defaultUserAgentProvider()).map(OU),F=$?.customUserAgent?.map(OU)||[],X=cf(),Z=(X?[X]:[]).concat([...E,...L,...F]).join(AU),R=[...E.filter((Y)=>Y.startsWith("aws-sdk-")),...F].join(AU);if($.runtime!=="browser"){if(R)f[n1]=f[n1]?`${f[MU]} ${R}`:R;f[MU]=Z}else f[n1]=Z;return U({...W,request:G})},OU=($)=>{const U=$[0].split(m1).map((L)=>L.replace(vf,VU)).join(m1),w=$[1]?.replace(xf,VU),W=U.indexOf(m1),G=U.substring(0,W);let f=U.substring(W+1);if(G==="api")f=f.toLowerCase();return[G,f,w].filter((L)=>L&&L.length>0).reduce((L,E,F)=>{switch(F){case 0:return E;case 1:return`${L}/${E}`;default:return`${L}#${E}`}},"")},N5={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},s3=($)=>({applyToStack:(U)=>{U.add(C5($),N5)}});var i1=($)=>typeof $==="string"&&($.startsWith("fips-")||$.endsWith("-fips"));var BU=($)=>i1($)?["fips-aws-global","aws-fips"].includes($)?"us-east-1":$.replace(/fips-(dkr-|prod-)?|-fips/,""):$;var UT=($)=>{const{region:U,useFipsEndpoint:w}=$;if(!U)throw new Error("Region is missing");return{...$,region:async()=>{if(typeof U==="string")return BU(U);const W=await U();return BU(W)},useFipsEndpoint:async()=>{const W=typeof U==="string"?U:await U();if(i1(W))return!0;return typeof w!=="function"?Promise.resolve(!!w):w()}}};var P0=($,U,w)=>{if(!(U in $))return;if($[U]==="true")return!0;if($[U]==="false")return!1;throw new Error(`Cannot load ${w} "${U}". Expected "true" or "false", got ${$[U]}.`)};var f0;(function($){$.ENV="env",$.CONFIG="shared config entry"})(f0||(f0={}));var q5="AWS_USE_DUALSTACK_ENDPOINT",P5="use_dualstack_endpoint";var RT={environmentVariableSelector:($)=>P0($,q5,f0.ENV),configFileSelector:($)=>P0($,P5,f0.CONFIG),default:!1};var j5="AWS_USE_FIPS_ENDPOINT",S5="use_fips_endpoint";var QT={environmentVariableSelector:($)=>P0($,j5,f0.ENV),configFileSelector:($)=>P0($,S5,f0.CONFIG),default:!1};var HU=a0(X0(),1),uf=($)=>$[HU.SMITHY_CONTEXT_KEY]||($[HU.SMITHY_CONTEXT_KEY]={});var a=($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U};var yf={environmentVariableSelector:($)=>$["AWS_REGION"],configFileSelector:($)=>$["region"],default:()=>{throw new Error("Region is missing")}},DT={preferredFile:"credentials"};function b5($){return(U)=>async(w)=>{const W=w.request;if(x.isInstance(W)){const{body:G,headers:f}=W;if(G&&Object.keys(f).map((L)=>L.toLowerCase()).indexOf(_f)===-1)try{const L=$(G);W.headers={...W.headers,[_f]:String(L)}}catch(L){}}return U({...w,request:W})}}var _f="content-length",h5={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},LM=($)=>({applyToStack:(U)=>{U.add(b5($.bodyLengthChecker),h5)}});var of=a0(L1(),1);var df=async($)=>{const U=$?.Bucket||"";if(typeof $.Bucket==="string")$.Bucket=U.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(x5(U)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!v5(U)||U.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||U.toLowerCase()!==U||U.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},D5=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,k5=/(\d+\.){3}\d+/,c5=/\.\./;var v5=($)=>D5.test($)&&!k5.test($)&&!c5.test($),x5=($)=>{const[U,w,W,,,G]=$.split(":"),f=U==="arn"&&$.split(":").length>=6,L=Boolean(f&&w&&W&&G);if(f&&!L)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return L};var pf=($,U,w)=>{const W=async()=>{const G=w[$]??w[U];if(typeof G==="function")return G();return G};if($==="credentialScope"||U==="CredentialScope")return async()=>{const G=typeof w.credentials==="function"?await w.credentials():w.credentials;return G?.credentialScope??G?.CredentialScope};if($==="accountId"||U==="AccountId")return async()=>{const G=typeof w.credentials==="function"?await w.credentials():w.credentials;return G?.accountId??G?.AccountId};if($==="endpoint"||U==="endpoint")return async()=>{const G=await W();if(G&&typeof G==="object"){if("url"in G)return G.url.href;if("hostname"in G){const{protocol:f,hostname:L,port:E,path:F}=G;return`${f}//${L}${E?":"+E:""}${F}`}}return G};return W};var gf="AWS_ENDPOINT_URL",lf="endpoint_url",sf=($)=>({environmentVariableSelector:(U)=>{const w=$.split(" ").map((f)=>f.toUpperCase()),W=U[[gf,...w].join("_")];if(W)return W;const G=U[gf];if(G)return G;return},configFileSelector:(U,w)=>{if(w&&U.services){const G=w[["services",U.services].join(CU)];if(G){const f=$.split(" ").map((E)=>E.toLowerCase()),L=G[[f.join("_"),lf].join(CU)];if(L)return L}}const W=U[lf];if(W)return W;return},default:void 0});var nf=async($)=>Q0(sf($))();var r1=($)=>{if(typeof $==="object"){if("url"in $)return NU($.url);return $}return NU($)};var mf=async($,U,w,W)=>{if(!w.endpoint){const L=await nf(w.serviceId||"");if(L)w.endpoint=()=>Promise.resolve(r1(L))}const G=await u5($,U,w);if(typeof w.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return w.endpointProvider(G,W)},u5=async($,U,w)=>{const W={},G=U?.getEndpointParameterInstructions?.()||{};for(let[f,L]of Object.entries(G))switch(L.type){case"staticContextParams":W[f]=L.value;break;case"contextParams":W[f]=$[L.name];break;case"clientContextParams":case"builtInParams":W[f]=await pf(L.name,f,w)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(L))}if(Object.keys(G).length===0)Object.assign(W,w);if(String(w.serviceId).toLowerCase()==="s3")await df(W);return W};var rf=({config:$,instructions:U})=>{return(w,W)=>async(G)=>{const f=await mf(G.input,{getEndpointParameterInstructions(){return U}},{...$},W);W.endpointV2=f,W.authSchemes=f.properties?.authSchemes;const L=W.authSchemes?.[0];if(L){W.signing_region=L.signingRegion,W.signing_service=L.signingName;const F=uf(W)?.selectedHttpAuthScheme?.httpAuthOption;if(F)F.signingProperties=Object.assign(F.signingProperties||{},{signing_region:L.signingRegion,signingRegion:L.signingRegion,signing_service:L.signingName,signingName:L.signingName,signingRegionSet:L.signingRegionSet},L.properties)}return w({...G})}};var y5={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:of.serializerMiddlewareOption.name},PM=($,U)=>({applyToStack:(w)=>{w.addRelativeTo(rf({config:$,instructions:U}),y5)}});var hM=($)=>{const U=$.tls??!0,{endpoint:w}=$,W=w!=null?async()=>r1(await a(w)()):void 0;return{...$,endpoint:W,tls:U,isCustomEndpoint:!!w,useDualstackEndpoint:a($.useDualstackEndpoint??!1),useFipsEndpoint:a($.useFipsEndpoint??!1)}};var m=a0(b$(),1),gM=m.default.v1,lM=m.default.v3,tf=m.default.v4,sM=m.default.v5,nM=m.default.NIL,mM=m.default.version,iM=m.default.validate,rM=m.default.stringify,oM=m.default.parse;var s;(function($){$.STANDARD="standard",$.ADAPTIVE="adaptive"})(s||(s={}));var z0=3,af=s.STANDARD;var ef=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],$6=["TimeoutError","RequestTimeout","RequestTimeoutException"],U6=[500,502,503,504],w6=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];var _5=($)=>$.$metadata?.clockSkewCorrected,j0=($)=>$.$metadata?.httpStatusCode===429||ef.includes($.name)||$.$retryable?.throttling==!0,o1=($)=>_5($)||$6.includes($.name)||w6.includes($?.code||"")||U6.includes($.$metadata?.httpStatusCode||0),G6=($)=>{if($.$metadata?.httpStatusCode!==void 0){const U=$.$metadata.httpStatusCode;if(500<=U&&U<=599&&!o1($))return!0;return!1}return!1};class t1{constructor($){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=$?.beta??0.7,this.minCapacity=$?.minCapacity??1,this.minFillRate=$?.minFillRate??0.5,this.scaleConstant=$?.scaleConstant??0.4,this.smooth=$?.smooth??0.8;const U=this.getCurrentTimeInSeconds();this.lastThrottleTime=U,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket($){if(!this.enabled)return;if(this.refillTokenBucket(),$>this.currentCapacity){const U=($-this.currentCapacity)/this.fillRate*1000;await new Promise((w)=>setTimeout(w,U))}this.currentCapacity=this.currentCapacity-$}refillTokenBucket(){const $=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=$;return}const U=($-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+U),this.lastTimestamp=$}updateClientSendingRate($){let U;if(this.updateMeasuredRate(),j0($)){const W=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=W,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),U=this.cubicThrottle(W),this.enableTokenBucket()}else this.calculateTimeWindow(),U=this.cubicSuccess(this.getCurrentTimeInSeconds());const w=Math.min(U,2*this.measuredTxRate);this.updateTokenBucketRate(w)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle($){return this.getPrecise($*this.beta)}cubicSuccess($){return this.getPrecise(this.scaleConstant*Math.pow($-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate($){this.refillTokenBucket(),this.fillRate=Math.max($,this.minFillRate),this.maxCapacity=Math.max($,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const $=this.getCurrentTimeInSeconds(),U=Math.floor($*2)/2;if(this.requestCount++,U>this.lastTxRateBucket){const w=this.requestCount/(U-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(w*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=U}}getPrecise($){return parseFloat($.toFixed(8))}}var J0=100,e0=20000,qU=500,a1=500,PU=5,jU=10,SU=1,e1="amz-sdk-invocation-id",$$="amz-sdk-request";var W6=()=>{let $=J0;return{computeNextBackoffDelay:(W)=>{return Math.floor(Math.min(e0,Math.random()*2**W*$))},setDelayBase:(W)=>{$=W}}};var bU=({retryDelay:$,retryCount:U,retryCost:w})=>{return{getRetryCount:()=>U,getRetryDelay:()=>Math.min(e0,$),getRetryCost:()=>w}};class S0{constructor($){this.maxAttempts=$,this.mode=s.STANDARD,this.capacity=a1,this.retryBackoffStrategy=W6(),this.maxAttemptsProvider=typeof $==="function"?$:async()=>$}async acquireInitialRetryToken($){return bU({retryDelay:J0,retryCount:0})}async refreshRetryTokenForRetry($,U){const w=await this.getMaxAttempts();if(this.shouldRetry($,U,w)){const W=U.errorType;this.retryBackoffStrategy.setDelayBase(W==="THROTTLING"?qU:J0);const G=this.retryBackoffStrategy.computeNextBackoffDelay($.getRetryCount()),f=U.retryAfterHint?Math.max(U.retryAfterHint.getTime()-Date.now()||0,G):G,L=this.getCapacityCost(W);return this.capacity-=L,bU({retryDelay:f,retryCount:$.getRetryCount()+1,retryCost:L})}throw new Error("No retry token available")}recordSuccess($){this.capacity=Math.max(a1,this.capacity+($.getRetryCost()??SU))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch($){return console.warn(`Max attempts provider could not resolve. Using default of ${z0}`),z0}}shouldRetry($,U,w){return $.getRetryCount()+1<w&&this.capacity>=this.getCapacityCost(U.errorType)&&this.isRetryableError(U.errorType)}getCapacityCost($){return $==="TRANSIENT"?jU:PU}isRetryableError($){return $==="THROTTLING"||$==="TRANSIENT"}}class hU{constructor($,U){this.maxAttemptsProvider=$,this.mode=s.ADAPTIVE;const{rateLimiter:w}=U??{};this.rateLimiter=w??new t1,this.standardRetryStrategy=new S0($)}async acquireInitialRetryToken($){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken($)}async refreshRetryTokenForRetry($,U){return this.rateLimiter.updateClientSendingRate(U),this.standardRetryStrategy.refreshRetryTokenForRetry($,U)}recordSuccess($){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess($)}}var f6="AWS_MAX_ATTEMPTS",L6="max_attempts",hA={environmentVariableSelector:($)=>{const U=$[f6];if(!U)return;const w=parseInt(U);if(Number.isNaN(w))throw new Error(`Environment variable ${f6} mast be a number, got "${U}"`);return w},configFileSelector:($)=>{const U=$[L6];if(!U)return;const w=parseInt(U);if(Number.isNaN(w))throw new Error(`Shared config file entry ${L6} mast be a number, got "${U}"`);return w},default:z0},DA=($)=>{const{retryStrategy:U}=$,w=a($.maxAttempts??z0);return{...$,maxAttempts:w,retryStrategy:async()=>{if(U)return U;if(await a($.retryMode)()===s.ADAPTIVE)return new hU(w);return new S0(w)}}},d5="AWS_RETRY_MODE",p5="retry_mode",kA={environmentVariableSelector:($)=>$[d5],configFileSelector:($)=>$[p5],default:af};import{Readable as g5} from"stream";var E6=($)=>$?.body instanceof g5||typeof ReadableStream!=="undefined"&&$?.body instanceof ReadableStream;var DU=($)=>{if($ instanceof Error)return $;if($ instanceof Object)return Object.assign(new Error,$);if(typeof $==="string")return new Error($);return new Error(`AWS SDK error wrapper for ${$}`)};var l5=($)=>(U,w)=>async(W)=>{let G=await $.retryStrategy();const f=await $.maxAttempts();if(s5(G)){G=G;let L=await G.acquireInitialRetryToken(w.partition_id),E=new Error,F=0,X=0;const{request:Z}=W,R=x.isInstance(Z);if(R)Z.headers[e1]=tf();while(!0)try{if(R)Z.headers[$$]=`attempt=${F+1}; max=${f}`;const{response:Y,output:I}=await U(W);return G.recordSuccess(L),I.$metadata.attempts=F+1,I.$metadata.totalRetryDelay=X,{response:Y,output:I}}catch(Y){const I=n5(Y);if(E=DU(Y),R&&E6(Z))throw(w.logger instanceof F6?console:w.logger)?.warn("An error was encountered in a non-retryable streaming request."),E;try{L=await G.refreshRetryTokenForRetry(L,I)}catch(A){if(!E.$metadata)E.$metadata={};throw E.$metadata.attempts=F+1,E.$metadata.totalRetryDelay=X,E}F=L.getRetryCount();const Q=L.getRetryDelay();X+=Q,await new Promise((A)=>setTimeout(A,Q))}}else{if(G=G,G?.mode)w.userAgent=[...w.userAgent||[],["cfg/retry-mode",G.mode]];return G.retry(U,W)}},s5=($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined",n5=($)=>{const U={error:$,errorType:m5($)},w=r5($.$response);if(w)U.retryAfterHint=w;return U},m5=($)=>{if(j0($))return"THROTTLING";if(o1($))return"TRANSIENT";if(G6($))return"SERVER_ERROR";return"CLIENT_ERROR"},i5={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},nA=($)=>({applyToStack:(U)=>{U.add(l5($),i5)}}),r5=($)=>{if(!kU.isInstance($))return;const U=Object.keys($.headers).find((f)=>f.toLowerCase()==="retry-after");if(!U)return;const w=$.headers[U],W=Number(w);if(!Number.isNaN(W))return new Date(W*1000);return new Date(w)};import{platform as u7,release as y7} from"os";import{env as GE,versions as _7} from"process";var oU={isCrtAvailable:!1};var wE=()=>{if(oU.isCrtAvailable)return["md/crt-avail"];return null};var d7="AWS_SDK_UA_APP_ID",p7="sdk-ua-app-id",eV=({serviceId:$,clientVersion:U})=>{const w=[["aws-sdk-js",U],["ua","2.0"],[`os/${u7()}`,y7()],["lang/js"],["md/nodejs",`${_7.node}`]],W=wE();if(W)w.push(W);if($)w.push([`api/${$}`,U]);if(GE.AWS_EXECUTION_ENV)w.push([`exec-env/${GE.AWS_EXECUTION_ENV}`]);const G=Q0({environmentVariableSelector:(L)=>L[d7],configFileSelector:(L)=>L[p7],default:void 0})();let f=void 0;return async()=>{if(!f){const L=await G;f=L?[...w,[`app/${L}`]]:[...w]}return f}};import{Buffer as g7} from"buffer";import{createHash as l7,createHmac as s7} from"crypto";var WE=function($,U){if(g7.isBuffer($))return $;if(typeof $==="string")return fE($,U);if(ArrayBuffer.isView($))return tU($.buffer,$.byteOffset,$.byteLength);return tU($)};class n7{constructor($,U){this.algorithmIdentifier=$,this.secret=U,this.reset()}update($,U){this.hash.update(LE(WE($,U)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?s7(this.algorithmIdentifier,WE(this.secret)):l7(this.algorithmIdentifier)}}import{fstatSync as m7,lstatSync as i7} from"fs";var FO=($)=>{if(!$)return 0;if(typeof $==="string")return Buffer.byteLength($);else if(typeof $.byteLength==="number")return $.byteLength;else if(typeof $.size==="number")return $.size;else if(typeof $.start==="number"&&typeof $.end==="number")return $.end+1-$.start;else if(typeof $.path==="string"||Buffer.isBuffer($.path))return i7($.path).size;else if(typeof $.fd==="number")return m7($.fd).size;throw new Error(`Body Length computation failed for ${$}`)};var IE=a0(O$(),1);var EE="AWS_EXECUTION_ENV",aU="AWS_REGION",eU="AWS_DEFAULT_REGION",FE="AWS_EC2_METADATA_DISABLED",XE=["in-region","cross-region","mobile","standard","legacy"],ZE="/latest/meta-data/placement/region";var RE={environmentVariableSelector:($)=>{return $["AWS_DEFAULTS_MODE"]},configFileSelector:($)=>{return $["defaults_mode"]},default:"legacy"};var TO=({region:$=Q0(yf),defaultsMode:U=Q0(RE)}={})=>IE.memoize(async()=>{const w=typeof U==="function"?await U():U;switch(w?.toLowerCase()){case"auto":return r7($);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(w?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${XE.join(", ")}, got ${w}`)}}),r7=async($)=>{if($){const U=typeof $==="function"?await $():$,w=await o7();if(!w)return"standard";if(U===w)return"in-region";else return"cross-region"}return"standard"},o7=async()=>{if(process.env[EE]&&(process.env[aU]||process.env[eU]))return process.env[aU]??process.env[eU];if(!process.env[FE])try{const{getInstanceMetadataEndpoint:$,httpRequest:U}=await import("./chunk-e3e996b3821027e1.js"),w=await $();return(await U({...w,path:ZE})).toString()}catch($){}};var OO=($)=>{let U=async()=>{if($.region===void 0)throw new Error("Region is missing from runtimeConfig");const w=$.region;if(typeof w==="string")return w;return w()};return{setRegion(w){U=w},region(){return U}}},BO=($)=>{return{region:$.region()}};export{e7 as ya,$z as za,wz as Aa,Ez as Ba,LL as Ca,P0 as Da,f0 as Ea,L1 as Fa,zU as Ga,uf as Ha,a as Ia,IJ as Ja,t0 as Ka,A5 as La,H5 as Ma,s3 as Na,RT as Oa,QT as Pa,yf as Qa,DT as Ra,UT as Sa,LM as Ta,u5 as Ua,PM as Va,hM as Wa,af as Xa,tf as Ya,hA as Za,DA as _a,kA as $a,nA as ab,v6 as bb,x7 as cb,eV as db,n7 as eb,FO as fb,TO as gb,OO as hb,BO as ib};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import"./chunk-feaaa37d30cd1e9b.js";import{y as w} from"./chunk-7ce930fe69575c87.js";import{A as ue,B as er,E as be,F as cr,J as je,K as Fe,M as De,N as qe,Q as Je,R as Ve,Y as E,Z as t,_ as Kr,aa as _,ba as T,ca as b,da as j,ea as h,la as Sr,ma as a,na as jr,oa as We,pa as fe,qa as rr,ra as sr,ta as d,ua as o,wa as $} from"./chunk-08e9ab1091d7383e.js";import{$a as Xe,Aa as dr,Ba as yr,Fa as Y,Ga as H,Ha as ee,Ia as re,Ja as tr,Ka as Ie,La as Re,Ma as Pe,Na as ar,Oa as Ae,Pa as Ke,Qa as Me,Ra as Be,Sa as mr,Ta as wr,Va as S,Wa as kr,Xa as Le,Za as Qe,_a as vr,ab as Er,cb as D,db as Ye,eb as Ze,fb as He,gb as Ne,hb as ir,ib as lr,ya as nr,za as or} from"./chunk-590bd43a75f48606.js";import"./chunk-2665dffd37ead1d9.js";import{kb as I,lb as Ue} from"./chunk-4d80485e7efb826f.js";import"./chunk-65626c3d72d4e071.js";import{nb as Ce} from"./chunk-55f76d4f6116f296.js";import"./chunk-73fb3bb4d001bb2e.js";var R=w(H(),1);var se=w(D(),1);var Xr=function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(s,r)=>({signingProperties:{config:s,context:r}})}},Z=function(e){return{schemeId:"smithy.api#noAuth"}},ie=async(e,s,r)=>{return{operation:ee(s).operation,region:await re(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},le=(e)=>{const s=[];switch(e.operation){case"CreateToken":{s.push(Z(e));break}case"RegisterClient":{s.push(Z(e));break}case"StartDeviceAuthorization":{s.push(Z(e));break}default:s.push(Xr(e))}return s},he=(e)=>{return{...se.resolveAwsSdkSigV4Config(e)}};var ne=(e)=>{return{...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}},v={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var oe={name:"@aws-sdk/client-sso-oidc",description:"AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",version:"3.629.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso-oidc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso-oidc"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.629.0","@aws-sdk/credential-provider-node":"3.629.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.620.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.614.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.3.2","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.14","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.1.12","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.14","@smithy/util-defaults-mode-node":"^3.0.14","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",peerDependencies:{"@aws-sdk/client-sts":"^3.629.0"},browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso-oidc",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso-oidc"}};var _e=w(D(),1);var xe=w(D(),1),ze=w(H(),1);var de={["required"]:!1,type:"String"},ye={["required"]:!0,default:!1,type:"Boolean"},ce={["ref"]:"Endpoint"},ve={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},Ee={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},m={},te={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},Se={["ref"]:"PartitionResult"},ae={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[Se,"supportsDualStack"]}]},me=[ve],we=[Ee],ke=[{["ref"]:"Region"}],Zr={version:"1.0",parameters:{Region:de,UseDualStack:ye,UseFIPS:ye,Endpoint:de},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[ce]}],rules:[{conditions:me,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:we,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:ce,properties:m,headers:m},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:ke}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:ke,assign:"PartitionResult"}],rules:[{conditions:[ve,Ee],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,te]},ae],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:me,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[te,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[Se,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:m,headers:m},type:"endpoint"},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:we,rules:[{conditions:[ae],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},$e=Zr;var Te=(e,s={})=>{return Re($e,{endpointParams:e,logger:s.logger})};Ie.aws=Pe;var Ge=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??je,base64Encoder:e?.base64Encoder??qe,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Te,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??le,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new xe.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ze.NoAuthSigner}],logger:e?.logger??new be,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??Ue,utf8Decoder:e?.utf8Decoder??Fe,utf8Encoder:e?.utf8Encoder??De}};var pe=(e)=>{fe(process.version);const s=Ne(e),r=()=>s().then(We),i=Ge(e);return _e.emitWarningIfUnsupportedVersion(process.version),{...i,...e,runtime:"node",defaultsMode:s,bodyLengthChecker:e?.bodyLengthChecker??He,credentialDefaultProvider:e?.credentialDefaultProvider??Ce,defaultUserAgentProvider:e?.defaultUserAgentProvider??Ye({serviceId:i.serviceId,clientVersion:oe.version}),maxAttempts:e?.maxAttempts??I(Qe),region:e?.region??I(Me,Be),requestHandler:Je.create(e?.requestHandler??r),retryMode:e?.retryMode??I({...Xe,default:async()=>(await r()).retryMode||Le}),sha256:e?.sha256??Ze.bind(null,"sha256"),streamCollector:e?.streamCollector??Ve,useDualstackEndpoint:e?.useDualstackEndpoint??I(Ae),useFipsEndpoint:e?.useFipsEndpoint??I(Ke)}};var ge=(e)=>{const s=e.httpAuthSchemes;let{httpAuthSchemeProvider:r,credentials:i}=e;return{setHttpAuthScheme(l){const n=s.findIndex((P)=>P.schemeId===l.schemeId);if(n===-1)s.push(l);else s.splice(n,1,l)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(l){r=l},httpAuthSchemeProvider(){return r},setCredentials(l){i=l},credentials(){return i}}},Oe=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};var q=(e)=>e,hr=(e,s)=>{const r={...q(ir(e)),...q(rr(e)),...q(ue(e)),...q(ge(e))};return s.forEach((i)=>i.configure(r)),{...e,...lr(r),...sr(r),...er(r),...Oe(r)}};class N extends cr{constructor(...[e]){const s=pe(e||{}),r=ne(s),i=tr(r),l=vr(i),n=mr(l),P=nr(n),Br=kr(P),Lr=he(Br),u=hr(Lr,e?.extensions||[]);super(u);this.config=u,this.middlewareStack.use(ar(this.config)),this.middlewareStack.use(Er(this.config)),this.middlewareStack.use(wr(this.config)),this.middlewareStack.use(or(this.config)),this.middlewareStack.use(dr(this.config)),this.middlewareStack.use(yr(this.config)),this.middlewareStack.use(R.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:ie,identityProviderConfigProvider:async(Qr)=>new R.DefaultIdentityProviderConfig({"aws.auth#sigv4":Qr.credentials})})),this.middlewareStack.use(R.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}var Vr=w(Y(),1);class y extends Sr{constructor(e){super(e);Object.setPrototypeOf(this,y.prototype)}}class U extends y{constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,U.prototype),this.error=e.error,this.error_description=e.error_description}}class x extends y{constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,x.prototype),this.error=e.error,this.error_description=e.error_description}}class z extends y{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,z.prototype),this.error=e.error,this.error_description=e.error_description}}class G extends y{constructor(e){super({name:"InternalServerException",$fault:"server",...e});this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,G.prototype),this.error=e.error,this.error_description=e.error_description}}class J extends y{constructor(e){super({name:"InvalidClientException",$fault:"client",...e});this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,J.prototype),this.error=e.error,this.error_description=e.error_description}}class V extends y{constructor(e){super({name:"InvalidGrantException",$fault:"client",...e});this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,V.prototype),this.error=e.error,this.error_description=e.error_description}}class W extends y{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,W.prototype),this.error=e.error,this.error_description=e.error_description}}class f extends y{constructor(e){super({name:"InvalidScopeException",$fault:"client",...e});this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,f.prototype),this.error=e.error,this.error_description=e.error_description}}class A extends y{constructor(e){super({name:"SlowDownException",$fault:"client",...e});this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,A.prototype),this.error=e.error,this.error_description=e.error_description}}class K extends y{constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,K.prototype),this.error=e.error,this.error_description=e.error_description}}class M extends y{constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e});this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,M.prototype),this.error=e.error,this.error_description=e.error_description}}class B extends y{constructor(e){super({name:"InvalidRequestRegionException",$fault:"client",...e});this.name="InvalidRequestRegionException",this.$fault="client",Object.setPrototypeOf(this,B.prototype),this.error=e.error,this.error_description=e.error_description,this.endpoint=e.endpoint,this.region=e.region}}class L extends y{constructor(e){super({name:"InvalidClientMetadataException",$fault:"client",...e});this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,L.prototype),this.error=e.error,this.error_description=e.error_description}}class Q extends y{constructor(e){super({name:"InvalidRedirectUriException",$fault:"client",...e});this.name="InvalidRedirectUriException",this.$fault="client",Object.setPrototypeOf(this,Q.prototype),this.error=e.error,this.error_description=e.error_description}}var $r=(e)=>({...e,...e.clientSecret&&{clientSecret:t},...e.refreshToken&&{refreshToken:t},...e.codeVerifier&&{codeVerifier:t}}),Ir=(e)=>({...e,...e.accessToken&&{accessToken:t},...e.refreshToken&&{refreshToken:t},...e.idToken&&{idToken:t}}),Rr=(e)=>({...e,...e.refreshToken&&{refreshToken:t},...e.assertion&&{assertion:t},...e.subjectToken&&{subjectToken:t},...e.codeVerifier&&{codeVerifier:t}}),Pr=(e)=>({...e,...e.accessToken&&{accessToken:t},...e.refreshToken&&{refreshToken:t},...e.idToken&&{idToken:t}}),Tr=(e)=>({...e,...e.clientSecret&&{clientSecret:t}}),br=(e)=>({...e,...e.clientSecret&&{clientSecret:t}});var k=w(D(),1),F=w(H(),1);var Fr=async(e,s)=>{const r=F.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/token");let l;return l=JSON.stringify(o(e,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:(n)=>$(n)})),r.m("POST").h(i).b(l),r.build()},Dr=async(e,s)=>{const r=F.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/token");const l=d({[os]:[,"t"]});let n;return n=JSON.stringify(o(e,{assertion:[],clientId:[],code:[],codeVerifier:[],grantType:[],redirectUri:[],refreshToken:[],requestedTokenType:[],scope:(P)=>$(P),subjectToken:[],subjectTokenType:[]})),r.m("POST").h(i).q(l).b(n),r.build()},qr=async(e,s)=>{const r=F.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/client/register");let l;return l=JSON.stringify(o(e,{clientName:[],clientType:[],entitledApplicationArn:[],grantTypes:(n)=>$(n),issuerUrl:[],redirectUris:(n)=>$(n),scopes:(n)=>$(n)})),r.m("POST").h(i).b(l),r.build()},Ur=async(e,s)=>{const r=F.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/device_authorization");let l;return l=JSON.stringify(o(e,{clientId:[],clientSecret:[],startUrl:[]})),r.m("POST").h(i).b(l),r.build()},xr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return X(e,s);const r=d({$metadata:c(e)}),i=b(j(await k.parseJsonBody(e.body,s)),"body"),l=o(i,{accessToken:h,expiresIn:T,idToken:h,refreshToken:h,tokenType:h});return Object.assign(r,l),r},zr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return X(e,s);const r=d({$metadata:c(e)}),i=b(j(await k.parseJsonBody(e.body,s)),"body"),l=o(i,{accessToken:h,expiresIn:T,idToken:h,issuedTokenType:h,refreshToken:h,scope:$,tokenType:h});return Object.assign(r,l),r},Gr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return X(e,s);const r=d({$metadata:c(e)}),i=b(j(await k.parseJsonBody(e.body,s)),"body"),l=o(i,{authorizationEndpoint:h,clientId:h,clientIdIssuedAt:_,clientSecret:h,clientSecretExpiresAt:_,tokenEndpoint:h});return Object.assign(r,l),r},Jr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return X(e,s);const r=d({$metadata:c(e)}),i=b(j(await k.parseJsonBody(e.body,s)),"body"),l=o(i,{deviceCode:h,expiresIn:T,interval:T,userCode:h,verificationUri:h,verificationUriComplete:h});return Object.assign(r,l),r},X=async(e,s)=>{const r={...e,body:await k.parseJsonErrorBody(e.body,s)},i=k.loadRestJsonErrorCode(e,r.body);switch(i){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await Nr(r,s);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await _r(r,s);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await pr(r,s);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await Cr(r,s);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await gr(r,s);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await ur(r,s);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await rs(r,s);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await is(r,s);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await ls(r,s);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await hs(r,s);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await ns(r,s);case"InvalidRequestRegionException":case"com.amazonaws.ssooidc#InvalidRequestRegionException":throw await ss(r,s);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await Or(r,s);case"InvalidRedirectUriException":case"com.amazonaws.ssooidc#InvalidRedirectUriException":throw await es(r,s);default:const l=r.body;return Hr({output:e,parsedBody:l,errorCode:i})}},Hr=jr(y),Nr=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new U({$metadata:c(e),...r});return a(n,e.body)},_r=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new x({$metadata:c(e),...r});return a(n,e.body)},pr=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new z({$metadata:c(e),...r});return a(n,e.body)},Cr=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new G({$metadata:c(e),...r});return a(n,e.body)},gr=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new J({$metadata:c(e),...r});return a(n,e.body)},Or=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new L({$metadata:c(e),...r});return a(n,e.body)},ur=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new V({$metadata:c(e),...r});return a(n,e.body)},es=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new Q({$metadata:c(e),...r});return a(n,e.body)},rs=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new W({$metadata:c(e),...r});return a(n,e.body)},ss=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{endpoint:h,error:h,error_description:h,region:h});Object.assign(r,l);const n=new B({$metadata:c(e),...r});return a(n,e.body)},is=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new f({$metadata:c(e),...r});return a(n,e.body)},ls=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new A({$metadata:c(e),...r});return a(n,e.body)},hs=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new K({$metadata:c(e),...r});return a(n,e.body)},ns=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new M({$metadata:c(e),...r});return a(n,e.body)},c=(e)=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});var os="aws_iam";class p extends E.classBuilder().ep({...v}).m(function(e,s,r,i){return[Vr.getSerdePlugin(r,this.serialize,this.deserialize),S(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f($r,Ir).ser(Fr).de(xr).build(){}var Wr=w(Y(),1);class C extends E.classBuilder().ep({...v}).m(function(e,s,r,i){return[Wr.getSerdePlugin(r,this.serialize,this.deserialize),S(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateTokenWithIAM",{}).n("SSOOIDCClient","CreateTokenWithIAMCommand").f(Rr,Pr).ser(Dr).de(zr).build(){}var fr=w(Y(),1);class g extends E.classBuilder().ep({...v}).m(function(e,s,r,i){return[fr.getSerdePlugin(r,this.serialize,this.deserialize),S(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","RegisterClient",{}).n("SSOOIDCClient","RegisterClientCommand").f(void 0,Tr).ser(qr).de(Gr).build(){}var Ar=w(Y(),1);class O extends E.classBuilder().ep({...v}).m(function(e,s,r,i){return[Ar.getSerdePlugin(r,this.serialize,this.deserialize),S(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","StartDeviceAuthorization",{}).n("SSOOIDCClient","StartDeviceAuthorizationCommand").f(br,void 0).ser(Ur).de(Jr).build(){}var ds={CreateTokenCommand:p,CreateTokenWithIAMCommand:C,RegisterClientCommand:g,StartDeviceAuthorizationCommand:O};class Mr extends N{}Kr(ds,Mr);export{cr as __Client,M as UnsupportedGrantTypeException,K as UnauthorizedClientException,br as StartDeviceAuthorizationRequestFilterSensitiveLog,O as StartDeviceAuthorizationCommand,A as SlowDownException,y as SSOOIDCServiceException,N as SSOOIDCClient,Mr as SSOOIDC,Tr as RegisterClientResponseFilterSensitiveLog,g as RegisterClientCommand,f as InvalidScopeException,B as InvalidRequestRegionException,W as InvalidRequestException,Q as InvalidRedirectUriException,V as InvalidGrantException,L as InvalidClientMetadataException,J as InvalidClientException,G as InternalServerException,z as ExpiredTokenException,Pr as CreateTokenWithIAMResponseFilterSensitiveLog,Rr as CreateTokenWithIAMRequestFilterSensitiveLog,C as CreateTokenWithIAMCommand,Ir as CreateTokenResponseFilterSensitiveLog,$r as CreateTokenRequestFilterSensitiveLog,p as CreateTokenCommand,x as AuthorizationPendingException,U as AccessDeniedException,E as $Command};
|