"use strict";exports.id=198,exports.ids=[198],exports.modules={55423:(e,t,n)=>{n.d(t,{U$:()=>C,Cw:()=>S});var r=n(31388),s=n(75795),i=n(43080),o=n(51630),a=n(69337),c=n(20782),l=n(70930);class AssumeRoleWithWebIdentityCommand extends(o.mY.classBuilder().ep({...a.q}).m((function(e,t,n,r){return[(0,i.p2)(n,this.serialize,this.deserialize),(0,s.a3)(n,e.getEndpointParameterInstructions())]})).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").f(c.Cz,c.b4).ser(l.pO).de(l.l$).build()){}const d="us-east-1",u=async(e,t,n)=>{const r="function"==typeof e?await e():e,s="function"==typeof t?await t():t;return n?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${r} (provider)`,`${s} (parent client)`,`${d} (STS default)`),r??s??d},g=(e,t)=>{let n,s;return async(i,o)=>{if(s=i,!n){const{logger:r=e?.parentClientConfig?.logger,region:i,requestHandler:o=e?.parentClientConfig?.requestHandler,credentialProviderLogger:a}=e,c=await u(i,e?.parentClientConfig?.region,a);n=new t({credentialDefaultProvider:()=>async()=>s,region:c,requestHandler:o,logger:r})}const{Credentials:a}=await n.send(new r.x(o));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);return{accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,credentialScope:a.CredentialScope}}},p=(e,t)=>{let n;return async r=>{if(!n){const{logger:r=e?.parentClientConfig?.logger,region:s,requestHandler:i=e?.parentClientConfig?.requestHandler,credentialProviderLogger:o}=e,a=await u(s,e?.parentClientConfig?.region,o);n=new t({region:a,requestHandler:i,logger:r})}const{Credentials:s}=await n.send(new AssumeRoleWithWebIdentityCommand(r));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`);return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,credentialScope:s.CredentialScope}}};var f=n(66792);const y=(e,t)=>t?class CustomizableSTSClient extends e{constructor(e){super(e);for(const e of t)this.middlewareStack.use(e)}}:e,C=(e={},t)=>g(e,y(f.X,t)),S=(e={},t)=>p(e,y(f.X,t))},34198:(e,t,n)=>{n.d(t,{getDefaultRoleAssumerWithWebIdentity:()=>r.Cw});var r=n(55423)}};