dbgate-plugin-mongo 5.5.7-alpha.29 → 5.5.7-alpha.32

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dbgate-plugin-mongo",
3
3
  "main": "dist/backend.js",
4
- "version": "5.5.7-alpha.29",
4
+ "version": "5.5.7-alpha.32",
5
5
  "license": "GPL-3.0",
6
6
  "author": "Jan Prochazka",
7
7
  "homepage": "https://dbgate.org",
@@ -31,15 +31,17 @@
31
31
  "prepublishOnly": "yarn build"
32
32
  },
33
33
  "devDependencies": {
34
- "bson": "^6.8.0",
35
34
  "dbgate-plugin-tools": "^1.0.7",
35
+ "webpack": "^5.91.0",
36
+ "webpack-cli": "^5.1.4"
37
+ },
38
+ "dependencies": {
39
+ "bson": "^6.8.0",
36
40
  "dbgate-query-splitter": "^4.11.2",
37
- "dbgate-tools": "^5.5.7-alpha.29",
41
+ "dbgate-tools": "^5.5.7-alpha.32",
38
42
  "is-promise": "^4.0.0",
39
43
  "lodash": "^4.17.21",
40
44
  "mongodb": "^6.3.0",
41
- "mongodb-client-encryption": "^6.0.0",
42
- "webpack": "^5.91.0",
43
- "webpack-cli": "^5.1.4"
45
+ "mongodb-client-encryption": "^6.0.0"
44
46
  }
45
47
  }
@@ -1 +0,0 @@
1
- "use strict";exports.id=259,exports.ids=[259],exports.modules={2104:(e,t,n)=>{n.d(t,{CG:()=>s,Y2:()=>i,cJ:()=>r});var o=n(3485);const i=(e,t)=>(0,o.w)(e,t).then((e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw"SyntaxError"===t?.name&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}})),s=async(e,t)=>{const n=await i(e,t);return n.message=n.message??n.Message,n},r=(e,t)=>{const n=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},o=(i=e.headers,"x-amzn-errortype",Object.keys(i).find((e=>e.toLowerCase()==="x-amzn-errortype".toLowerCase())));var i;return void 0!==o?n(e.headers[o]):void 0!==t.code?n(t.code):void 0!==t.__type?n(t.__type):void 0}},1259:(e,t,n)=>{n.d(t,{CognitoIdentityClient:()=>ae,GetCredentialsForIdentityCommand:()=>Ze,GetIdCommand:()=>Ve});var o=n(1568),i=n(9716),s=n(1838),r=n(9232),a=n(4250),c=n(1248),d=n(4890),u=n(7388),p=n(3165),l=n(4285),h=n(7421),y=n(6089);const m=async(e,t,n)=>({operation:(0,y.u)(t).operation,region:await(0,y.t)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),g=e=>{const t=[];switch(e.operation){case"GetCredentialsForIdentity":case"GetId":case"GetOpenIdToken":case"UnlinkIdentity":t.push({schemeId:"smithy.api#noAuth"});break;default:t.push(function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}(e))}return t},f={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var x=n(1429),w=n(5968),S=n(9838),E=n(194),v=n(4012),I=n(80),P=n(9048),b=n(7100),C=n(7771),$=n(30),A=n(5409),O=n(8304),k=n(6445),R=n(8390);const z="required",D="fn",M="argv",F="ref",j=!0,q="isSet",U="booleanEquals",G="error",N="endpoint",T="tree",L="PartitionResult",K={[z]:!1,type:"String"},H={[z]:!0,default:!1,type:"Boolean"},B={[F]:"Endpoint"},J={[D]:U,[M]:[{[F]:"UseFIPS"},!0]},Z={[D]:U,[M]:[{[F]:"UseDualStack"},!0]},V={},W={[D]:"getAttr",[M]:[{[F]:L},"supportsFIPS"]},Y={[D]:U,[M]:[!0,{[D]:"getAttr",[M]:[{[F]:L},"supportsDualStack"]}]},_=[J],Q=[Z],X=[{[F]:"Region"}],ee={version:"1.0",parameters:{Region:K,UseDualStack:H,UseFIPS:H,Endpoint:K},rules:[{conditions:[{[D]:q,[M]:[B]}],rules:[{conditions:_,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:G},{conditions:Q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:G},{endpoint:{url:B,properties:V,headers:V},type:N}],type:T},{conditions:[{[D]:q,[M]:X}],rules:[{conditions:[{[D]:"aws.partition",[M]:X,assign:L}],rules:[{conditions:[J,Z],rules:[{conditions:[{[D]:U,[M]:[j,W]},Y],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:V,headers:V},type:N}],type:T},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:G}],type:T},{conditions:_,rules:[{conditions:[{[D]:U,[M]:[W,j]}],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:V,headers:V},type:N}],type:T},{error:"FIPS is enabled but this partition does not support FIPS",type:G}],type:T},{conditions:Q,rules:[{conditions:[Y],rules:[{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:V,headers:V},type:N}],type:T},{error:"DualStack is enabled but this partition does not support DualStack",type:G}],type:T},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:V,headers:V},type:N}],type:T}],type:T},{error:"Invalid Configuration: Missing Region",type:G}]},te=new R.kS({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),ne=(e,t={})=>te.get(e,(()=>(0,R.sO)(ee,{endpointParams:e,logger:t.logger})));R.mw.aws=k.UF;var oe=n(2780);var ie=n(7329),se=n(5282);const re=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,o=e.credentials;return{setHttpAuthScheme(e){const n=t.findIndex((t=>t.schemeId===e.schemeId));-1===n?t.push(e):t.splice(n,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider:()=>n,setCredentials(e){o=e},credentials:()=>o}};class ae extends l.Kj{constructor(...[e]){const t=(e=>{(0,l.I9)(process.version);const t=(0,oe.I)(e),n=()=>t().then(l.lT),o=(e=>({apiVersion:"2014-06-30",base64Decoder:e?.base64Decoder??A.E,base64Encoder:e?.base64Encoder??A.n,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??ne,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??g,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new C.f2},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new c.mR}],logger:e?.logger??new l.N4,serviceId:e?.serviceId??"Cognito Identity",urlParser:e?.urlParser??$.D,utf8Decoder:e?.utf8Decoder??O.ar,utf8Encoder:e?.utf8Encoder??O.Pq}))(e);return(0,x.I)(process.version),{...o,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??P.n,credentialDefaultProvider:e?.credentialDefaultProvider??w.v6,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,S.mJ)({serviceId:o.serviceId,clientVersion:"3.665.0"}),maxAttempts:e?.maxAttempts??(0,v.Z)(p.qs),region:e?.region??(0,v.Z)(a.GG,a.zH),requestHandler:I.$c.create(e?.requestHandler??n),retryMode:e?.retryMode??(0,v.Z)({...p.kN,default:async()=>(await n()).retryMode||b.L0}),sha256:e?.sha256??E.V.bind(null,"sha256"),streamCollector:e?.streamCollector??I.kv,useDualstackEndpoint:e?.useDualstackEndpoint??(0,v.Z)(a.e$),useFipsEndpoint:e?.useFipsEndpoint??(0,v.Z)(a.Ko),userAgentAppId:e?.userAgentAppId??(0,v.Z)(S.hV)}})(e||{}),n=(y=t,{...y,useDualstackEndpoint:y.useDualstackEndpoint??!1,useFipsEndpoint:y.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"});var y;const f=(0,r.Dc)(n),k=(0,p.$z)(f),R=(0,a.TD)(k),z=(0,o.OV)(R);var D;const M=((e,t)=>{const n={...(0,ie.Rq)(e),...(0,l.xA)(e),...(0,se.eS)(e),...re(e)};return t.forEach((e=>e.configure(n))),{...e,...(0,ie.$3)(n),...(0,l.uv)(n),...(0,se.jt)(n),...(o=n,{httpAuthSchemes:o.httpAuthSchemes(),httpAuthSchemeProvider:o.httpAuthSchemeProvider(),credentials:o.credentials()})};var o})((D=(0,u.Co)(z),{...(0,h.h)(D)}),e?.extensions||[]);super(M),this.config=M,this.middlewareStack.use((0,r.sM)(this.config)),this.middlewareStack.use((0,p.ey)(this.config)),this.middlewareStack.use((0,d.vK)(this.config)),this.middlewareStack.use((0,o.TC)(this.config)),this.middlewareStack.use((0,i.Y7)(this.config)),this.middlewareStack.use((0,s.n4)(this.config)),this.middlewareStack.use((0,c.wB)(this.config,{httpAuthSchemeParametersProvider:m,identityProviderConfigProvider:async e=>new c.h$({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use((0,c.lW)(this.config))}destroy(){super.destroy()}}var ce=n(7083);class de extends l.TJ{constructor(e){super(e),Object.setPrototypeOf(this,de.prototype)}}class ue extends de{constructor(e){super({name:"InternalErrorException",$fault:"server",...e}),this.name="InternalErrorException",this.$fault="server",Object.setPrototypeOf(this,ue.prototype)}}class pe extends de{constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),this.name="InvalidParameterException",this.$fault="client",Object.setPrototypeOf(this,pe.prototype)}}class le extends de{constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,le.prototype)}}class he extends de{constructor(e){super({name:"NotAuthorizedException",$fault:"client",...e}),this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,he.prototype)}}class ye extends de{constructor(e){super({name:"ResourceConflictException",$fault:"client",...e}),this.name="ResourceConflictException",this.$fault="client",Object.setPrototypeOf(this,ye.prototype)}}class me extends de{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,me.prototype)}}class ge extends de{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,ge.prototype)}}class fe extends de{constructor(e){super({name:"ExternalServiceException",$fault:"client",...e}),this.name="ExternalServiceException",this.$fault="client",Object.setPrototypeOf(this,fe.prototype)}}class xe extends de{constructor(e){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...e}),this.name="InvalidIdentityPoolConfigurationException",this.$fault="client",Object.setPrototypeOf(this,xe.prototype)}}class we extends de{constructor(e){super({name:"DeveloperUserAlreadyRegisteredException",$fault:"client",...e}),this.name="DeveloperUserAlreadyRegisteredException",this.$fault="client",Object.setPrototypeOf(this,we.prototype)}}class Se extends de{constructor(e){super({name:"ConcurrentModificationException",$fault:"client",...e}),this.name="ConcurrentModificationException",this.$fault="client",Object.setPrototypeOf(this,Se.prototype)}}const Ee=e=>({...e,...e.Logins&&{Logins:l.$H}}),ve=e=>({...e,...e.SecretKey&&{SecretKey:l.$H}}),Ie=e=>({...e,...e.Credentials&&{Credentials:ve(e.Credentials)}}),Pe=e=>({...e,...e.Logins&&{Logins:l.$H}});var be=n(2104);const Ce=async(e,t)=>{const n=Je("GetCredentialsForIdentity");let o;return o=JSON.stringify((0,l.Ss)(e)),Be(t,n,"/",void 0,o)},$e=async(e,t)=>{const n=Je("GetId");let o;return o=JSON.stringify((0,l.Ss)(e)),Be(t,n,"/",void 0,o)},Ae=async(e,t)=>{if(e.statusCode>=300)return ke(e,t);const n=await(0,be.Y2)(e.body,t);let o={};return o=Le(n,t),{$metadata:Ke(e),...o}},Oe=async(e,t)=>{if(e.statusCode>=300)return ke(e,t);const n=await(0,be.Y2)(e.body,t);let o={};return o=(0,l.Ss)(n),{$metadata:Ke(e),...o}},ke=async(e,t)=>{const n={...e,body:await(0,be.CG)(e.body,t)},o=(0,be.cJ)(e,n.body);switch(o){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":throw await Me(n,t);case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":throw await je(n,t);case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":throw await qe(n,t);case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":throw await Ue(n,t);case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":throw await Ge(n,t);case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":throw await Te(n,t);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":throw await Ne(n,t);case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":throw await De(n,t);case"InvalidIdentityPoolConfigurationException":case"com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":throw await Fe(n,t);case"DeveloperUserAlreadyRegisteredException":case"com.amazonaws.cognitoidentity#DeveloperUserAlreadyRegisteredException":throw await ze(n,t);case"ConcurrentModificationException":case"com.amazonaws.cognitoidentity#ConcurrentModificationException":throw await Re(n,t);default:const i=n.body;return He({output:e,parsedBody:i,errorCode:o})}},Re=async(e,t)=>{const n=e.body,o=(0,l.Ss)(n),i=new Se({$metadata:Ke(e),...o});return(0,l.Mw)(i,n)},ze=async(e,t)=>{const n=e.body,o=(0,l.Ss)(n),i=new we({$metadata:Ke(e),...o});return(0,l.Mw)(i,n)},De=async(e,t)=>{const n=e.body,o=(0,l.Ss)(n),i=new fe({$metadata:Ke(e),...o});return(0,l.Mw)(i,n)},Me=async(e,t)=>{const n=e.body,o=(0,l.Ss)(n),i=new ue({$metadata:Ke(e),...o});return(0,l.Mw)(i,n)},Fe=async(e,t)=>{const n=e.body,o=(0,l.Ss)(n),i=new xe({$metadata:Ke(e),...o});return(0,l.Mw)(i,n)},je=async(e,t)=>{const n=e.body,o=(0,l.Ss)(n),i=new pe({$metadata:Ke(e),...o});return(0,l.Mw)(i,n)},qe=async(e,t)=>{const n=e.body,o=(0,l.Ss)(n),i=new le({$metadata:Ke(e),...o});return(0,l.Mw)(i,n)},Ue=async(e,t)=>{const n=e.body,o=(0,l.Ss)(n),i=new he({$metadata:Ke(e),...o});return(0,l.Mw)(i,n)},Ge=async(e,t)=>{const n=e.body,o=(0,l.Ss)(n),i=new ye({$metadata:Ke(e),...o});return(0,l.Mw)(i,n)},Ne=async(e,t)=>{const n=e.body,o=(0,l.Ss)(n),i=new ge({$metadata:Ke(e),...o});return(0,l.Mw)(i,n)},Te=async(e,t)=>{const n=e.body,o=(0,l.Ss)(n),i=new me({$metadata:Ke(e),...o});return(0,l.Mw)(i,n)},Le=(e,t)=>(0,l.s)(e,{Credentials:e=>((e,t)=>(0,l.s)(e,{AccessKeyId:l.lK,Expiration:e=>(0,l.Y0)((0,l.l3)((0,l.r$)(e))),SecretKey:l.lK,SessionToken:l.lK}))(e),IdentityId:l.lK}),Ke=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"]}),He=(0,l.jr)(de),Be=async(e,t,n,o,i)=>{const{hostname:s,protocol:r="https",port:a,path:c}=await e.endpoint(),d={protocol:r,hostname:s,port:a,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+n:c+n,headers:t};return void 0!==o&&(d.hostname=o),void 0!==i&&(d.body=i),new se.Kd(d)};function Je(e){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityService.${e}`}}class Ze extends(l.uB.classBuilder().ep(f).m((function(e,t,n,o){return[(0,ce.TM)(n,this.serialize,this.deserialize),(0,u.rD)(n,e.getEndpointParameterInstructions())]})).s("AWSCognitoIdentityService","GetCredentialsForIdentity",{}).n("CognitoIdentityClient","GetCredentialsForIdentityCommand").f(Ee,Ie).ser(Ce).de(Ae).build()){}class Ve extends(l.uB.classBuilder().ep(f).m((function(e,t,n,o){return[(0,ce.TM)(n,this.serialize,this.deserialize),(0,u.rD)(n,e.getEndpointParameterInstructions())]})).s("AWSCognitoIdentityService","GetId",{}).n("CognitoIdentityClient","GetIdCommand").f(Pe,void 0).ser($e).de(Oe).build()){}}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=304,exports.ids=[304],exports.modules={2104:(e,t,s)=>{s.d(t,{CG:()=>r,Y2:()=>n,cJ:()=>i});var o=s(3485);const n=(e,t)=>(0,o.w)(e,t).then((e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw"SyntaxError"===t?.name&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}})),r=async(e,t)=>{const s=await n(e,t);return s.message=s.message??s.Message,s},i=(e,t)=>{const s=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},o=(n=e.headers,"x-amzn-errortype",Object.keys(n).find((e=>e.toLowerCase()==="x-amzn-errortype".toLowerCase())));var n;return void 0!==o?s(e.headers[o]):void 0!==t.code?s(t.code):void 0!==t.__type?s(t.__type):void 0}},1304:(e,t,s)=>{s.d(t,{GetRoleCredentialsCommand:()=>T,SSOClient:()=>qe});var o=s(7388),n=s(7083),r=s(4285);const i={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};class a extends r.TJ{constructor(e){super(e),Object.setPrototypeOf(this,a.prototype)}}class c extends a{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,c.prototype)}}class d extends a{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,d.prototype)}}class u extends a{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,u.prototype)}}class p extends a{constructor(e){super({name:"UnauthorizedException",$fault:"client",...e}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,p.prototype)}}const l=e=>({...e,...e.accessToken&&{accessToken:r.$H}}),h=e=>({...e,...e.secretAccessKey&&{secretAccessKey:r.$H},...e.sessionToken&&{sessionToken:r.$H}}),m=e=>({...e,...e.roleCredentials&&{roleCredentials:h(e.roleCredentials)}});var y=s(2104),g=s(1248);const f=async(e,t)=>{const s=(0,g.lI)(e,t),o=(0,r.Tj)({},r.eU,{[D]:e[R]});s.bp("/federation/credentials");const n=(0,r.Tj)({[O]:[,(0,r.Y0)(e[C],"roleName")],[A]:[,(0,r.Y0)(e[k],"accountId")]});return s.m("GET").h(o).q(n).b(void 0),s.build()},S=async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return v(e,t);const s=(0,r.Tj)({$metadata:E(e)}),o=(0,r.Y0)((0,r.Xk)(await(0,y.Y2)(e.body,t)),"body"),n=(0,r.s)(o,{roleCredentials:r.Ss});return Object.assign(s,n),s},v=async(e,t)=>{const s={...e,body:await(0,y.CG)(e.body,t)},o=(0,y.cJ)(e,s.body);switch(o){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await x(s,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await b(s,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await P(s,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await I(s,t);default:const n=s.body;return w({output:e,parsedBody:n,errorCode:o})}},w=(0,r.jr)(a),x=async(e,t)=>{const s=(0,r.Tj)({}),o=e.body,n=(0,r.s)(o,{message:r.lK});Object.assign(s,n);const i=new c({$metadata:E(e),...s});return(0,r.Mw)(i,e.body)},b=async(e,t)=>{const s=(0,r.Tj)({}),o=e.body,n=(0,r.s)(o,{message:r.lK});Object.assign(s,n);const i=new d({$metadata:E(e),...s});return(0,r.Mw)(i,e.body)},P=async(e,t)=>{const s=(0,r.Tj)({}),o=e.body,n=(0,r.s)(o,{message:r.lK});Object.assign(s,n);const i=new u({$metadata:E(e),...s});return(0,r.Mw)(i,e.body)},I=async(e,t)=>{const s=(0,r.Tj)({}),o=e.body,n=(0,r.s)(o,{message:r.lK});Object.assign(s,n);const i=new p({$metadata:E(e),...s});return(0,r.Mw)(i,e.body)},E=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"]}),k="accountId",R="accessToken",A="account_id",C="roleName",O="role_name",D="x-amz-sso_bearer_token";class T extends(r.uB.classBuilder().ep(i).m((function(e,t,s,r){return[(0,n.TM)(s,this.serialize,this.deserialize),(0,o.rD)(s,e.getEndpointParameterInstructions())]})).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").f(l,m).ser(f).de(S).build()){}var j=s(1568),q=s(9716),z=s(1838),$=s(9232),F=s(4250),M=s(4890),U=s(3165),H=s(7421),N=s(6089);const G=async(e,t,s)=>({operation:(0,N.u)(t).operation,region:await(0,N.t)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),K=e=>{const t=[];switch(e.operation){case"GetRoleCredentials":case"ListAccountRoles":case"ListAccounts":case"Logout":t.push({schemeId:"smithy.api#noAuth"});break;default:t.push(function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}(e))}return t};var L=s(1429),_=s(9838),B=s(194),Y=s(4012),Z=s(80),J=s(9048),V=s(7100),W=s(7771),X=s(30),Q=s(5409),ee=s(8304),te=s(6445),se=s(8390);const oe="required",ne="fn",re="argv",ie="ref",ae=!0,ce="isSet",de="booleanEquals",ue="error",pe="endpoint",le="tree",he="PartitionResult",me="getAttr",ye={[oe]:!1,type:"String"},ge={[oe]:!0,default:!1,type:"Boolean"},fe={[ie]:"Endpoint"},Se={[ne]:de,[re]:[{[ie]:"UseFIPS"},!0]},ve={[ne]:de,[re]:[{[ie]:"UseDualStack"},!0]},we={},xe={[ne]:me,[re]:[{[ie]:he},"supportsFIPS"]},be={[ie]:he},Pe={[ne]:de,[re]:[!0,{[ne]:me,[re]:[be,"supportsDualStack"]}]},Ie=[Se],Ee=[ve],ke=[{[ie]:"Region"}],Re={version:"1.0",parameters:{Region:ye,UseDualStack:ge,UseFIPS:ge,Endpoint:ye},rules:[{conditions:[{[ne]:ce,[re]:[fe]}],rules:[{conditions:Ie,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:ue},{conditions:Ee,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:ue},{endpoint:{url:fe,properties:we,headers:we},type:pe}],type:le},{conditions:[{[ne]:ce,[re]:ke}],rules:[{conditions:[{[ne]:"aws.partition",[re]:ke,assign:he}],rules:[{conditions:[Se,ve],rules:[{conditions:[{[ne]:de,[re]:[ae,xe]},Pe],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:we,headers:we},type:pe}],type:le},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:ue}],type:le},{conditions:Ie,rules:[{conditions:[{[ne]:de,[re]:[xe,ae]}],rules:[{conditions:[{[ne]:"stringEquals",[re]:[{[ne]:me,[re]:[be,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:we,headers:we},type:pe},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:we,headers:we},type:pe}],type:le},{error:"FIPS is enabled but this partition does not support FIPS",type:ue}],type:le},{conditions:Ee,rules:[{conditions:[Pe],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:we,headers:we},type:pe}],type:le},{error:"DualStack is enabled but this partition does not support DualStack",type:ue}],type:le},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:we,headers:we},type:pe}],type:le}],type:le},{error:"Invalid Configuration: Missing Region",type:ue}]},Ae=new se.kS({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Ce=(e,t={})=>Ae.get(e,(()=>(0,se.sO)(Re,{endpointParams:e,logger:t.logger})));se.mw.aws=te.UF;var Oe=s(2780);var De=s(7329),Te=s(5282);const je=e=>{const t=e.httpAuthSchemes;let s=e.httpAuthSchemeProvider,o=e.credentials;return{setHttpAuthScheme(e){const s=t.findIndex((t=>t.schemeId===e.schemeId));-1===s?t.push(e):t.splice(s,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){s=e},httpAuthSchemeProvider:()=>s,setCredentials(e){o=e},credentials:()=>o}};class qe extends r.Kj{constructor(...[e]){const t=(e=>{(0,r.I9)(process.version);const t=(0,Oe.I)(e),s=()=>t().then(r.lT),o=(e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Q.E,base64Encoder:e?.base64Encoder??Q.n,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Ce,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??K,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new W.f2},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new g.mR}],logger:e?.logger??new r.N4,serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??X.D,utf8Decoder:e?.utf8Decoder??ee.ar,utf8Encoder:e?.utf8Encoder??ee.Pq}))(e);return(0,L.I)(process.version),{...o,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??J.n,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,_.mJ)({serviceId:o.serviceId,clientVersion:"3.665.0"}),maxAttempts:e?.maxAttempts??(0,Y.Z)(U.qs),region:e?.region??(0,Y.Z)(F.GG,F.zH),requestHandler:Z.$c.create(e?.requestHandler??s),retryMode:e?.retryMode??(0,Y.Z)({...U.kN,default:async()=>(await s()).retryMode||V.L0}),sha256:e?.sha256??B.V.bind(null,"sha256"),streamCollector:e?.streamCollector??Z.kv,useDualstackEndpoint:e?.useDualstackEndpoint??(0,Y.Z)(F.e$),useFipsEndpoint:e?.useFipsEndpoint??(0,Y.Z)(F.Ko),userAgentAppId:e?.userAgentAppId??(0,Y.Z)(_.hV)}})(e||{}),s=(n=t,{...n,useDualstackEndpoint:n.useDualstackEndpoint??!1,useFipsEndpoint:n.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"});var n;const i=(0,$.Dc)(s),a=(0,U.$z)(i),c=(0,F.TD)(a),d=(0,j.OV)(c);var u;const p=((e,t)=>{const s={...(0,De.Rq)(e),...(0,r.xA)(e),...(0,Te.eS)(e),...je(e)};return t.forEach((e=>e.configure(s))),{...e,...(0,De.$3)(s),...(0,r.uv)(s),...(0,Te.jt)(s),...(o=s,{httpAuthSchemes:o.httpAuthSchemes(),httpAuthSchemeProvider:o.httpAuthSchemeProvider(),credentials:o.credentials()})};var o})((u=(0,o.Co)(d),{...(0,H.h)(u)}),e?.extensions||[]);super(p),this.config=p,this.middlewareStack.use((0,$.sM)(this.config)),this.middlewareStack.use((0,U.ey)(this.config)),this.middlewareStack.use((0,M.vK)(this.config)),this.middlewareStack.use((0,j.TC)(this.config)),this.middlewareStack.use((0,q.Y7)(this.config)),this.middlewareStack.use((0,z.n4)(this.config)),this.middlewareStack.use((0,g.wB)(this.config,{httpAuthSchemeParametersProvider:G,identityProviderConfigProvider:async e=>new g.h$({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use((0,g.lW)(this.config))}destroy(){super.destroy()}}}};
@@ -1 +0,0 @@
1
- exports.id=591,exports.ids=[591],exports.modules={6755:(t,e,n)=>{"use strict";n.d(e,{i:()=>Et});var s=n(1568),i=n(9716),o=n(1838),r=n(9232),a=n(4250),l=n(1248),u=n(4890),c=n(7388),d=n(3165),h=n(4285),p=n(7421),g=n(6089);const f=async(t,e,n)=>({operation:(0,g.u)(e).operation,region:await(0,g.t)(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),m=t=>{const e=[];switch(t.operation){case"AssumeRoleWithSAML":case"AssumeRoleWithWebIdentity":e.push({schemeId:"smithy.api#noAuth"});break;default:e.push(function(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(t,e)=>({signingProperties:{config:t,context:e}})}}(t))}return e};var x=n(8468);var b=n(1429),y=n(7771),E=n(5968),v=n(9838),N=n(194),P=n(4012),w=n(80),A=n(9048),T=n(7100),I=n(30),S=n(5409),O=n(8304),C=n(6445),k=n(8390);const $="required",D="type",j="fn",R="argv",V="ref",F=!1,M=!0,L="booleanEquals",_="stringEquals",K="sigv4",z="us-east-1",U="endpoint",G="https://sts.{Region}.{PartitionResult#dnsSuffix}",B="tree",W="error",q="getAttr",X={[$]:!1,[D]:"String"},Z={[$]:!0,default:!1,[D]:"Boolean"},H={[V]:"Endpoint"},Y={[j]:"isSet",[R]:[{[V]:"Region"}]},J={[V]:"Region"},Q={[j]:"aws.partition",[R]:[J],assign:"PartitionResult"},tt={[V]:"UseFIPS"},et={[V]:"UseDualStack"},nt={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:K,signingName:"sts",signingRegion:z}]},headers:{}},st={},it={conditions:[{[j]:_,[R]:[J,"aws-global"]}],[U]:nt,[D]:U},ot={[j]:L,[R]:[tt,!0]},rt={[j]:L,[R]:[et,!0]},at={[j]:q,[R]:[{[V]:"PartitionResult"},"supportsFIPS"]},lt={[V]:"PartitionResult"},ut={[j]:L,[R]:[!0,{[j]:q,[R]:[lt,"supportsDualStack"]}]},ct=[{[j]:"isSet",[R]:[H]}],dt=[ot],ht=[rt],pt={version:"1.0",parameters:{Region:X,UseDualStack:Z,UseFIPS:Z,Endpoint:X,UseGlobalEndpoint:Z},rules:[{conditions:[{[j]:L,[R]:[{[V]:"UseGlobalEndpoint"},M]},{[j]:"not",[R]:ct},Y,Q,{[j]:L,[R]:[tt,F]},{[j]:L,[R]:[et,F]}],rules:[{conditions:[{[j]:_,[R]:[J,"ap-northeast-1"]}],endpoint:nt,[D]:U},{conditions:[{[j]:_,[R]:[J,"ap-south-1"]}],endpoint:nt,[D]:U},{conditions:[{[j]:_,[R]:[J,"ap-southeast-1"]}],endpoint:nt,[D]:U},{conditions:[{[j]:_,[R]:[J,"ap-southeast-2"]}],endpoint:nt,[D]:U},it,{conditions:[{[j]:_,[R]:[J,"ca-central-1"]}],endpoint:nt,[D]:U},{conditions:[{[j]:_,[R]:[J,"eu-central-1"]}],endpoint:nt,[D]:U},{conditions:[{[j]:_,[R]:[J,"eu-north-1"]}],endpoint:nt,[D]:U},{conditions:[{[j]:_,[R]:[J,"eu-west-1"]}],endpoint:nt,[D]:U},{conditions:[{[j]:_,[R]:[J,"eu-west-2"]}],endpoint:nt,[D]:U},{conditions:[{[j]:_,[R]:[J,"eu-west-3"]}],endpoint:nt,[D]:U},{conditions:[{[j]:_,[R]:[J,"sa-east-1"]}],endpoint:nt,[D]:U},{conditions:[{[j]:_,[R]:[J,z]}],endpoint:nt,[D]:U},{conditions:[{[j]:_,[R]:[J,"us-east-2"]}],endpoint:nt,[D]:U},{conditions:[{[j]:_,[R]:[J,"us-west-1"]}],endpoint:nt,[D]:U},{conditions:[{[j]:_,[R]:[J,"us-west-2"]}],endpoint:nt,[D]:U},{endpoint:{url:G,properties:{authSchemes:[{name:K,signingName:"sts",signingRegion:"{Region}"}]},headers:st},[D]:U}],[D]:B},{conditions:ct,rules:[{conditions:dt,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[D]:W},{conditions:ht,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[D]:W},{endpoint:{url:H,properties:st,headers:st},[D]:U}],[D]:B},{conditions:[Y],rules:[{conditions:[Q],rules:[{conditions:[ot,rt],rules:[{conditions:[{[j]:L,[R]:[M,at]},ut],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:st,headers:st},[D]:U}],[D]:B},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[D]:W}],[D]:B},{conditions:dt,rules:[{conditions:[{[j]:L,[R]:[at,M]}],rules:[{conditions:[{[j]:_,[R]:[{[j]:q,[R]:[lt,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:st,headers:st},[D]:U},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:st,headers:st},[D]:U}],[D]:B},{error:"FIPS is enabled but this partition does not support FIPS",[D]:W}],[D]:B},{conditions:ht,rules:[{conditions:[ut],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:st,headers:st},[D]:U}],[D]:B},{error:"DualStack is enabled but this partition does not support DualStack",[D]:W}],[D]:B},it,{endpoint:{url:G,properties:st,headers:st},[D]:U}],[D]:B}],[D]:B},{error:"Invalid Configuration: Missing Region",[D]:W}]},gt=new k.kS({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),ft=(t,e={})=>gt.get(t,(()=>(0,k.sO)(pt,{endpointParams:t,logger:e.logger})));k.mw.aws=C.UF;var mt=n(2780);var xt=n(7329),bt=n(5282);const yt=t=>{const e=t.httpAuthSchemes;let n=t.httpAuthSchemeProvider,s=t.credentials;return{setHttpAuthScheme(t){const n=e.findIndex((e=>e.schemeId===t.schemeId));-1===n?e.push(t):e.splice(n,1,t)},httpAuthSchemes:()=>e,setHttpAuthSchemeProvider(t){n=t},httpAuthSchemeProvider:()=>n,setCredentials(t){s=t},credentials:()=>s}};class Et extends h.Kj{constructor(...[t]){const e=(t=>{(0,h.I9)(process.version);const e=(0,mt.I)(t),n=()=>e().then(h.lT),s=(t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??S.E,base64Encoder:t?.base64Encoder??S.n,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??ft,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??m,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new y.f2},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new l.mR}],logger:t?.logger??new h.N4,serviceId:t?.serviceId??"STS",urlParser:t?.urlParser??I.D,utf8Decoder:t?.utf8Decoder??O.ar,utf8Encoder:t?.utf8Encoder??O.Pq}))(t);return(0,b.I)(process.version),{...s,...t,runtime:"node",defaultsMode:e,bodyLengthChecker:t?.bodyLengthChecker??A.n,credentialDefaultProvider:t?.credentialDefaultProvider??E.v6,defaultUserAgentProvider:t?.defaultUserAgentProvider??(0,v.mJ)({serviceId:s.serviceId,clientVersion:"3.665.0"}),httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4")||(async t=>await(0,E.v6)(t?.__config||{})()),signer:new y.f2},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new l.mR}],maxAttempts:t?.maxAttempts??(0,P.Z)(d.qs),region:t?.region??(0,P.Z)(a.GG,a.zH),requestHandler:w.$c.create(t?.requestHandler??n),retryMode:t?.retryMode??(0,P.Z)({...d.kN,default:async()=>(await n()).retryMode||T.L0}),sha256:t?.sha256??N.V.bind(null,"sha256"),streamCollector:t?.streamCollector??w.kv,useDualstackEndpoint:t?.useDualstackEndpoint??(0,P.Z)(a.e$),useFipsEndpoint:t?.useFipsEndpoint??(0,P.Z)(a.Ko),userAgentAppId:t?.userAgentAppId??(0,P.Z)(v.hV)}})(t||{}),n=(0,x.v)(e),g=(0,r.Dc)(n),C=(0,d.$z)(g),k=(0,a.TD)(C),$=(0,s.OV)(k),D=((t,e)=>{const n={...(0,xt.Rq)(t),...(0,h.xA)(t),...(0,bt.eS)(t),...yt(t)};return e.forEach((t=>t.configure(n))),{...t,...(0,xt.$3)(n),...(0,h.uv)(n),...(0,bt.jt)(n),...(s=n,{httpAuthSchemes:s.httpAuthSchemes(),httpAuthSchemeProvider:s.httpAuthSchemeProvider(),credentials:s.credentials()})};var s})((t=>{const e=(n=t,{...n,stsClientCtor:Et});var n;return{...(0,p.h)(e)}})((0,c.Co)($)),t?.extensions||[]);super(D),this.config=D,this.middlewareStack.use((0,r.sM)(this.config)),this.middlewareStack.use((0,d.ey)(this.config)),this.middlewareStack.use((0,u.vK)(this.config)),this.middlewareStack.use((0,s.TC)(this.config)),this.middlewareStack.use((0,i.Y7)(this.config)),this.middlewareStack.use((0,o.n4)(this.config)),this.middlewareStack.use((0,l.wB)(this.config,{httpAuthSchemeParametersProvider:f,identityProviderConfigProvider:async t=>new l.h$({"aws.auth#sigv4":t.credentials})})),this.middlewareStack.use((0,l.lW)(this.config))}destroy(){super.destroy()}}},17:(t,e,n)=>{"use strict";n.d(e,{Q:()=>u});var s=n(7388),i=n(7083),o=n(4285),r=n(8468),a=n(3469),l=n(1593);class u extends(o.uB.classBuilder().ep(r.S).m((function(t,e,n,o){return[(0,i.TM)(n,this.serialize,this.deserialize),(0,s.rD)(n,t.getEndpointParameterInstructions())]})).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").f(void 0,a.kl).ser(l.JC).de(l.aP).build()){}},8468:(t,e,n)=>{"use strict";n.d(e,{S:()=>i,v:()=>s});const s=t=>({...t,useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,defaultSigningName:"sts"}),i={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}},4330:(t,e,n)=>{"use strict";n.d(e,{L:()=>i});var s=n(4285);class i extends s.TJ{constructor(t){super(t),Object.setPrototypeOf(this,i.prototype)}}},3469:(t,e,n)=>{"use strict";n.d(e,{AA:()=>m,KT:()=>f,Nd:()=>d,V1:()=>a,_A:()=>o,_Z:()=>r,fi:()=>u,kl:()=>g,po:()=>h,wU:()=>l,ye:()=>c});var s=n(4285),i=n(4330);class o extends i.L{constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,o.prototype)}}class r extends i.L{constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,r.prototype)}}class a extends i.L{constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t}),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,a.prototype)}}class l extends i.L{constructor(t){super({name:"RegionDisabledException",$fault:"client",...t}),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,l.prototype)}}class u extends i.L{constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t}),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,u.prototype)}}class c extends i.L{constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t}),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,c.prototype)}}class d extends i.L{constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t}),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,d.prototype)}}class h extends i.L{constructor(t){super({name:"InvalidAuthorizationMessageException",$fault:"client",...t}),this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,h.prototype)}}const p=t=>({...t,...t.SecretAccessKey&&{SecretAccessKey:s.$H}}),g=t=>({...t,...t.Credentials&&{Credentials:p(t.Credentials)}}),f=t=>({...t,...t.WebIdentityToken&&{WebIdentityToken:s.$H}}),m=t=>({...t,...t.Credentials&&{Credentials:p(t.Credentials)}})},1593:(t,e,n)=>{"use strict";n.d(e,{aP:()=>p,MV:()=>g,JC:()=>d,$3:()=>h});var s=n(4285),i=n(4237),o=n(3485);const r=(t,e)=>(0,o.w)(t,e).then((t=>{if(t.length){const e=new i.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(t,e)=>""===e.trim()&&e.includes("\n")?"":void 0});let n;e.addEntity("#xD","\r"),e.addEntity("#10","\n");try{n=e.parse(t,!0)}catch(e){throw e&&"object"==typeof e&&Object.defineProperty(e,"$responseBodyText",{value:t}),e}const o="#text",r=Object.keys(n)[0],a=n[r];return a[o]&&(a[r]=a[o],delete a[o]),(0,s.rm)(a)}return{}})),a=async(t,e)=>{const n=await r(t,e);return n.Error&&(n.Error.message=n.Error.message??n.Error.Message),n};var l=n(5282),u=n(3469),c=n(4330);const d=async(t,e)=>{const n=X;let s;return s=$t({...w(t,e),[H]:J,[It]:Z}),q(e,n,"/",void 0,s)},h=async(t,e)=>{const n=X;let s;return s=$t({...A(t,e),[H]:et,[It]:Z}),q(e,n,"/",void 0,s)},p=async(t,e)=>{if(t.statusCode>=300)return f(t,e);const n=await r(t.body,e);let s={};return s=j(n.AssumeRoleResult,e),{$metadata:B(t),...s}},g=async(t,e)=>{if(t.statusCode>=300)return f(t,e);const n=await r(t.body,e);let s={};return s=R(n.AssumeRoleWithWebIdentityResult,e),{$metadata:B(t),...s}},f=async(t,e)=>{const n={...t,body:await a(t.body,e)},s=Dt(t,n.body);switch(s){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await m(n,e);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await v(n,e);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await N(n,e);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await P(n,e);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await b(n,e);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await E(n,e);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await x(n,e);case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await y(n,e);default:const i=n.body;return W({output:t,parsedBody:i.Error,errorCode:s})}},m=async(t,e)=>{const n=t.body,i=F(n.Error,e),o=new u._A({$metadata:B(t),...i});return(0,s.Mw)(o,n)},x=async(t,e)=>{const n=t.body,i=M(n.Error,e),o=new u.Nd({$metadata:B(t),...i});return(0,s.Mw)(o,n)},b=async(t,e)=>{const n=t.body,i=L(n.Error,e),o=new u.fi({$metadata:B(t),...i});return(0,s.Mw)(o,n)},y=async(t,e)=>{const n=t.body,i=_(n.Error,e),o=new u.po({$metadata:B(t),...i});return(0,s.Mw)(o,n)},E=async(t,e)=>{const n=t.body,i=K(n.Error,e),o=new u.ye({$metadata:B(t),...i});return(0,s.Mw)(o,n)},v=async(t,e)=>{const n=t.body,i=z(n.Error,e),o=new u._Z({$metadata:B(t),...i});return(0,s.Mw)(o,n)},N=async(t,e)=>{const n=t.body,i=U(n.Error,e),o=new u.V1({$metadata:B(t),...i});return(0,s.Mw)(o,n)},P=async(t,e)=>{const n=t.body,i=G(n.Error,e),o=new u.wU({$metadata:B(t),...i});return(0,s.Mw)(o,n)},w=(t,e)=>{const n={};if(null!=t[xt]&&(n[xt]=t[xt]),null!=t[bt]&&(n[bt]=t[bt]),null!=t[dt]){const s=T(t[dt],e);0===t[dt]?.length&&(n.PolicyArns=[]),Object.entries(s).forEach((([t,e])=>{n[`PolicyArns.${t}`]=e}))}if(null!=t[ct]&&(n[ct]=t[ct]),null!=t[rt]&&(n[rt]=t[rt]),null!=t[wt]){const s=$(t[wt],e);0===t[wt]?.length&&(n.Tags=[]),Object.entries(s).forEach((([t,e])=>{n[`Tags.${t}`]=e}))}if(null!=t[Tt]){const s=k(t[Tt],e);0===t[Tt]?.length&&(n.TransitiveTagKeys=[]),Object.entries(s).forEach((([t,e])=>{n[`TransitiveTagKeys.${t}`]=e}))}if(null!=t[lt]&&(n[lt]=t[lt]),null!=t[Nt]&&(n[Nt]=t[Nt]),null!=t[At]&&(n[At]=t[At]),null!=t[vt]&&(n[vt]=t[vt]),null!=t[pt]){const s=O(t[pt],e);0===t[pt]?.length&&(n.ProvidedContexts=[]),Object.entries(s).forEach((([t,e])=>{n[`ProvidedContexts.${t}`]=e}))}return n},A=(t,e)=>{const n={};if(null!=t[xt]&&(n[xt]=t[xt]),null!=t[bt]&&(n[bt]=t[bt]),null!=t[Ot]&&(n[Ot]=t[Ot]),null!=t[gt]&&(n[gt]=t[gt]),null!=t[dt]){const s=T(t[dt],e);0===t[dt]?.length&&(n.PolicyArns=[]),Object.entries(s).forEach((([t,e])=>{n[`PolicyArns.${t}`]=e}))}return null!=t[ct]&&(n[ct]=t[ct]),null!=t[rt]&&(n[rt]=t[rt]),n},T=(t,e)=>{const n={};let s=1;for(const i of t){if(null===i)continue;const t=I(i,e);Object.entries(t).forEach((([t,e])=>{n[`member.${s}.${t}`]=e})),s++}return n},I=(t,e)=>{const n={};return null!=t[Ct]&&(n[Ct]=t[Ct]),n},S=(t,e)=>{const n={};return null!=t[ht]&&(n[ht]=t[ht]),null!=t[ot]&&(n[ot]=t[ot]),n},O=(t,e)=>{const n={};let s=1;for(const e of t){if(null===e)continue;const t=S(e);Object.entries(t).forEach((([t,e])=>{n[`member.${s}.${t}`]=e})),s++}return n},C=(t,e)=>{const n={};return null!=t[ut]&&(n[ut]=t[ut]),null!=t[St]&&(n[St]=t[St]),n},k=(t,e)=>{const n={};let s=1;for(const e of t)null!==e&&(n[`member.${s}`]=e,s++);return n},$=(t,e)=>{const n={};let s=1;for(const e of t){if(null===e)continue;const t=C(e);Object.entries(t).forEach((([t,e])=>{n[`member.${s}.${t}`]=e})),s++}return n},D=(t,e)=>{const n={};return null!=t[Q]&&(n[Q]=(0,s.lK)(t[Q])),null!=t[nt]&&(n[nt]=(0,s.lK)(t[nt])),n},j=(t,e)=>{const n={};return null!=t[it]&&(n[it]=V(t[it],e)),null!=t[tt]&&(n[tt]=D(t[tt])),null!=t[ft]&&(n[ft]=(0,s.xW)(t[ft])),null!=t[vt]&&(n[vt]=(0,s.lK)(t[vt])),n},R=(t,e)=>{const n={};return null!=t[it]&&(n[it]=V(t[it],e)),null!=t[Et]&&(n[Et]=(0,s.lK)(t[Et])),null!=t[tt]&&(n[tt]=D(t[tt])),null!=t[ft]&&(n[ft]=(0,s.xW)(t[ft])),null!=t[mt]&&(n[mt]=(0,s.lK)(t[mt])),null!=t[st]&&(n[st]=(0,s.lK)(t[st])),null!=t[vt]&&(n[vt]=(0,s.lK)(t[vt])),n},V=(t,e)=>{const n={};return null!=t[Y]&&(n[Y]=(0,s.lK)(t[Y])),null!=t[yt]&&(n[yt]=(0,s.lK)(t[yt])),null!=t[Pt]&&(n[Pt]=(0,s.lK)(t[Pt])),null!=t[at]&&(n[at]=(0,s.Y0)((0,s.t_)(t[at]))),n},F=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,s.lK)(t[kt])),n},M=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,s.lK)(t[kt])),n},L=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,s.lK)(t[kt])),n},_=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,s.lK)(t[kt])),n},K=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,s.lK)(t[kt])),n},z=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,s.lK)(t[kt])),n},U=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,s.lK)(t[kt])),n},G=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,s.lK)(t[kt])),n},B=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),W=(0,s.jr)(c.L),q=async(t,e,n,s,i)=>{const{hostname:o,protocol:r="https",port:a,path:u}=await t.endpoint(),c={protocol:r,hostname:o,port:a,method:"POST",path:u.endsWith("/")?u.slice(0,-1)+n:u+n,headers:e};return void 0!==s&&(c.hostname=s),void 0!==i&&(c.body=i),new l.Kd(c)},X={"content-type":"application/x-www-form-urlencoded"},Z="2011-06-15",H="Action",Y="AccessKeyId",J="AssumeRole",Q="AssumedRoleId",tt="AssumedRoleUser",et="AssumeRoleWithWebIdentity",nt="Arn",st="Audience",it="Credentials",ot="ContextAssertion",rt="DurationSeconds",at="Expiration",lt="ExternalId",ut="Key",ct="Policy",dt="PolicyArns",ht="ProviderArn",pt="ProvidedContexts",gt="ProviderId",ft="PackedPolicySize",mt="Provider",xt="RoleArn",bt="RoleSessionName",yt="SecretAccessKey",Et="SubjectFromWebIdentityToken",vt="SourceIdentity",Nt="SerialNumber",Pt="SessionToken",wt="Tags",At="TokenCode",Tt="TransitiveTagKeys",It="Version",St="Value",Ot="WebIdentityToken",Ct="arn",kt="message",$t=t=>Object.entries(t).map((([t,e])=>(0,s.$6)(t)+"="+(0,s.$6)(e))).join("&"),Dt=(t,e)=>void 0!==e.Error?.Code?e.Error.Code:404==t.statusCode?"NotFound":void 0},4237:(t,e,n)=>{"use strict";const s=n(8473),i=n(4964),o=n(2307);t.exports={XMLParser:i,XMLValidator:s,XMLBuilder:o}},5115:(t,e)=>{"use strict";const n=":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",s="["+n+"]["+n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",i=new RegExp("^"+s+"$");e.isExist=function(t){return void 0!==t},e.isEmptyObject=function(t){return 0===Object.keys(t).length},e.merge=function(t,e,n){if(e){const s=Object.keys(e),i=s.length;for(let o=0;o<i;o++)t[s[o]]="strict"===n?[e[s[o]]]:e[s[o]]}},e.getValue=function(t){return e.isExist(t)?t:""},e.isName=function(t){return!(null==i.exec(t))},e.getAllMatches=function(t,e){const n=[];let s=e.exec(t);for(;s;){const i=[];i.startIndex=e.lastIndex-s[0].length;const o=s.length;for(let t=0;t<o;t++)i.push(s[t]);n.push(i),s=e.exec(t)}return n},e.nameRegexp=s},8473:(t,e,n)=>{"use strict";const s=n(5115),i={allowBooleanAttributes:!1,unpairedTags:[]};function o(t){return" "===t||"\t"===t||"\n"===t||"\r"===t}function r(t,e){const n=e;for(;e<t.length;e++)if("?"!=t[e]&&" "!=t[e]);else{const s=t.substr(n,e-n);if(e>5&&"xml"===s)return g("InvalidXml","XML declaration allowed only at the start of the document.",m(t,e));if("?"==t[e]&&">"==t[e+1]){e++;break}}return e}function a(t,e){if(t.length>e+5&&"-"===t[e+1]&&"-"===t[e+2]){for(e+=3;e<t.length;e++)if("-"===t[e]&&"-"===t[e+1]&&">"===t[e+2]){e+=2;break}}else if(t.length>e+8&&"D"===t[e+1]&&"O"===t[e+2]&&"C"===t[e+3]&&"T"===t[e+4]&&"Y"===t[e+5]&&"P"===t[e+6]&&"E"===t[e+7]){let n=1;for(e+=8;e<t.length;e++)if("<"===t[e])n++;else if(">"===t[e]&&(n--,0===n))break}else if(t.length>e+9&&"["===t[e+1]&&"C"===t[e+2]&&"D"===t[e+3]&&"A"===t[e+4]&&"T"===t[e+5]&&"A"===t[e+6]&&"["===t[e+7])for(e+=8;e<t.length;e++)if("]"===t[e]&&"]"===t[e+1]&&">"===t[e+2]){e+=2;break}return e}e.validate=function(t,e){e=Object.assign({},i,e);const n=[];let l=!1,u=!1;"\ufeff"===t[0]&&(t=t.substr(1));for(let i=0;i<t.length;i++)if("<"===t[i]&&"?"===t[i+1]){if(i+=2,i=r(t,i),i.err)return i}else{if("<"!==t[i]){if(o(t[i]))continue;return g("InvalidChar","char '"+t[i]+"' is not expected.",m(t,i))}{let f=i;if(i++,"!"===t[i]){i=a(t,i);continue}{let x=!1;"/"===t[i]&&(x=!0,i++);let b="";for(;i<t.length&&">"!==t[i]&&" "!==t[i]&&"\t"!==t[i]&&"\n"!==t[i]&&"\r"!==t[i];i++)b+=t[i];if(b=b.trim(),"/"===b[b.length-1]&&(b=b.substring(0,b.length-1),i--),d=b,!s.isName(d)){let e;return e=0===b.trim().length?"Invalid space after '<'.":"Tag '"+b+"' is an invalid name.",g("InvalidTag",e,m(t,i))}const y=c(t,i);if(!1===y)return g("InvalidAttr","Attributes for '"+b+"' have open quote.",m(t,i));let E=y.value;if(i=y.index,"/"===E[E.length-1]){const n=i-E.length;E=E.substring(0,E.length-1);const s=h(E,e);if(!0!==s)return g(s.err.code,s.err.msg,m(t,n+s.err.line));l=!0}else if(x){if(!y.tagClosed)return g("InvalidTag","Closing tag '"+b+"' doesn't have proper closing.",m(t,i));if(E.trim().length>0)return g("InvalidTag","Closing tag '"+b+"' can't have attributes or invalid starting.",m(t,f));if(0===n.length)return g("InvalidTag","Closing tag '"+b+"' has not been opened.",m(t,f));{const e=n.pop();if(b!==e.tagName){let n=m(t,e.tagStartPos);return g("InvalidTag","Expected closing tag '"+e.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+b+"'.",m(t,f))}0==n.length&&(u=!0)}}else{const s=h(E,e);if(!0!==s)return g(s.err.code,s.err.msg,m(t,i-E.length+s.err.line));if(!0===u)return g("InvalidXml","Multiple possible root nodes found.",m(t,i));-1!==e.unpairedTags.indexOf(b)||n.push({tagName:b,tagStartPos:f}),l=!0}for(i++;i<t.length;i++)if("<"===t[i]){if("!"===t[i+1]){i++,i=a(t,i);continue}if("?"!==t[i+1])break;if(i=r(t,++i),i.err)return i}else if("&"===t[i]){const e=p(t,i);if(-1==e)return g("InvalidChar","char '&' is not expected.",m(t,i));i=e}else if(!0===u&&!o(t[i]))return g("InvalidXml","Extra text at the end",m(t,i));"<"===t[i]&&i--}}}var d;return l?1==n.length?g("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",m(t,n[0].tagStartPos)):!(n.length>0)||g("InvalidXml","Invalid '"+JSON.stringify(n.map((t=>t.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):g("InvalidXml","Start tag expected.",1)};const l='"',u="'";function c(t,e){let n="",s="",i=!1;for(;e<t.length;e++){if(t[e]===l||t[e]===u)""===s?s=t[e]:s!==t[e]||(s="");else if(">"===t[e]&&""===s){i=!0;break}n+=t[e]}return""===s&&{value:n,index:e,tagClosed:i}}const d=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function h(t,e){const n=s.getAllMatches(t,d),i={};for(let t=0;t<n.length;t++){if(0===n[t][1].length)return g("InvalidAttr","Attribute '"+n[t][2]+"' has no space in starting.",x(n[t]));if(void 0!==n[t][3]&&void 0===n[t][4])return g("InvalidAttr","Attribute '"+n[t][2]+"' is without value.",x(n[t]));if(void 0===n[t][3]&&!e.allowBooleanAttributes)return g("InvalidAttr","boolean attribute '"+n[t][2]+"' is not allowed.",x(n[t]));const s=n[t][2];if(!f(s))return g("InvalidAttr","Attribute '"+s+"' is an invalid name.",x(n[t]));if(i.hasOwnProperty(s))return g("InvalidAttr","Attribute '"+s+"' is repeated.",x(n[t]));i[s]=1}return!0}function p(t,e){if(";"===t[++e])return-1;if("#"===t[e])return function(t,e){let n=/\d/;for("x"===t[e]&&(e++,n=/[\da-fA-F]/);e<t.length;e++){if(";"===t[e])return e;if(!t[e].match(n))break}return-1}(t,++e);let n=0;for(;e<t.length;e++,n++)if(!(t[e].match(/\w/)&&n<20)){if(";"===t[e])break;return-1}return e}function g(t,e,n){return{err:{code:t,msg:e,line:n.line||n,col:n.col}}}function f(t){return s.isName(t)}function m(t,e){const n=t.substring(0,e).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function x(t){return t.startIndex+t[1].length}},2307:(t,e,n)=>{"use strict";const s=n(7821),i={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function o(t){this.options=Object.assign({},i,t),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=l),this.processTextOrObjNode=r,this.options.format?(this.indentate=a,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function r(t,e,n){const s=this.j2x(t,n+1);return void 0!==t[this.options.textNodeName]&&1===Object.keys(t).length?this.buildTextValNode(t[this.options.textNodeName],e,s.attrStr,n):this.buildObjectNode(s.val,e,s.attrStr,n)}function a(t){return this.options.indentBy.repeat(t)}function l(t){return!(!t.startsWith(this.options.attributeNamePrefix)||t===this.options.textNodeName)&&t.substr(this.attrPrefixLen)}o.prototype.build=function(t){return this.options.preserveOrder?s(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0).val)},o.prototype.j2x=function(t,e){let n="",s="";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i))if(void 0===t[i])this.isAttribute(i)&&(s+="");else if(null===t[i])this.isAttribute(i)?s+="":"?"===i[0]?s+=this.indentate(e)+"<"+i+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+i+"/"+this.tagEndChar;else if(t[i]instanceof Date)s+=this.buildTextValNode(t[i],i,"",e);else if("object"!=typeof t[i]){const o=this.isAttribute(i);if(o)n+=this.buildAttrPairStr(o,""+t[i]);else if(i===this.options.textNodeName){let e=this.options.tagValueProcessor(i,""+t[i]);s+=this.replaceEntitiesValue(e)}else s+=this.buildTextValNode(t[i],i,"",e)}else if(Array.isArray(t[i])){const n=t[i].length;let o="",r="";for(let a=0;a<n;a++){const n=t[i][a];if(void 0===n);else if(null===n)"?"===i[0]?s+=this.indentate(e)+"<"+i+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+i+"/"+this.tagEndChar;else if("object"==typeof n)if(this.options.oneListGroup){const t=this.j2x(n,e+1);o+=t.val,this.options.attributesGroupName&&n.hasOwnProperty(this.options.attributesGroupName)&&(r+=t.attrStr)}else o+=this.processTextOrObjNode(n,i,e);else if(this.options.oneListGroup){let t=this.options.tagValueProcessor(i,n);t=this.replaceEntitiesValue(t),o+=t}else o+=this.buildTextValNode(n,i,"",e)}this.options.oneListGroup&&(o=this.buildObjectNode(o,i,r,e)),s+=o}else if(this.options.attributesGroupName&&i===this.options.attributesGroupName){const e=Object.keys(t[i]),s=e.length;for(let o=0;o<s;o++)n+=this.buildAttrPairStr(e[o],""+t[i][e[o]])}else s+=this.processTextOrObjNode(t[i],i,e);return{attrStr:n,val:s}},o.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&"true"===e?" "+t:" "+t+'="'+e+'"'},o.prototype.buildObjectNode=function(t,e,n,s){if(""===t)return"?"===e[0]?this.indentate(s)+"<"+e+n+"?"+this.tagEndChar:this.indentate(s)+"<"+e+n+this.closeTag(e)+this.tagEndChar;{let i="</"+e+this.tagEndChar,o="";return"?"===e[0]&&(o="?",i=""),!n&&""!==n||-1!==t.indexOf("<")?!1!==this.options.commentPropName&&e===this.options.commentPropName&&0===o.length?this.indentate(s)+`\x3c!--${t}--\x3e`+this.newLine:this.indentate(s)+"<"+e+n+o+this.tagEndChar+t+this.indentate(s)+i:this.indentate(s)+"<"+e+n+o+">"+t+i}},o.prototype.closeTag=function(t){let e="";return-1!==this.options.unpairedTags.indexOf(t)?this.options.suppressUnpairedNode||(e="/"):e=this.options.suppressEmptyNode?"/":`></${t}`,e},o.prototype.buildTextValNode=function(t,e,n,s){if(!1!==this.options.cdataPropName&&e===this.options.cdataPropName)return this.indentate(s)+`<![CDATA[${t}]]>`+this.newLine;if(!1!==this.options.commentPropName&&e===this.options.commentPropName)return this.indentate(s)+`\x3c!--${t}--\x3e`+this.newLine;if("?"===e[0])return this.indentate(s)+"<"+e+n+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(e,t);return i=this.replaceEntitiesValue(i),""===i?this.indentate(s)+"<"+e+n+this.closeTag(e)+this.tagEndChar:this.indentate(s)+"<"+e+n+">"+i+"</"+e+this.tagEndChar}},o.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){const n=this.options.entities[e];t=t.replace(n.regex,n.val)}return t},t.exports=o},7821:t=>{function e(t,r,a,l){let u="",c=!1;for(let d=0;d<t.length;d++){const h=t[d],p=n(h);if(void 0===p)continue;let g="";if(g=0===a.length?p:`${a}.${p}`,p===r.textNodeName){let t=h[p];i(g,r)||(t=r.tagValueProcessor(p,t),t=o(t,r)),c&&(u+=l),u+=t,c=!1;continue}if(p===r.cdataPropName){c&&(u+=l),u+=`<![CDATA[${h[p][0][r.textNodeName]}]]>`,c=!1;continue}if(p===r.commentPropName){u+=l+`\x3c!--${h[p][0][r.textNodeName]}--\x3e`,c=!0;continue}if("?"===p[0]){const t=s(h[":@"],r),e="?xml"===p?"":l;let n=h[p][0][r.textNodeName];n=0!==n.length?" "+n:"",u+=e+`<${p}${n}${t}?>`,c=!0;continue}let f=l;""!==f&&(f+=r.indentBy);const m=l+`<${p}${s(h[":@"],r)}`,x=e(h[p],r,g,f);-1!==r.unpairedTags.indexOf(p)?r.suppressUnpairedNode?u+=m+">":u+=m+"/>":x&&0!==x.length||!r.suppressEmptyNode?x&&x.endsWith(">")?u+=m+`>${x}${l}</${p}>`:(u+=m+">",x&&""!==l&&(x.includes("/>")||x.includes("</"))?u+=l+r.indentBy+x+l:u+=x,u+=`</${p}>`):u+=m+"/>",c=!0}return u}function n(t){const e=Object.keys(t);for(let n=0;n<e.length;n++){const s=e[n];if(t.hasOwnProperty(s)&&":@"!==s)return s}}function s(t,e){let n="";if(t&&!e.ignoreAttributes)for(let s in t){if(!t.hasOwnProperty(s))continue;let i=e.attributeValueProcessor(s,t[s]);i=o(i,e),!0===i&&e.suppressBooleanAttributes?n+=` ${s.substr(e.attributeNamePrefix.length)}`:n+=` ${s.substr(e.attributeNamePrefix.length)}="${i}"`}return n}function i(t,e){let n=(t=t.substr(0,t.length-e.textNodeName.length-1)).substr(t.lastIndexOf(".")+1);for(let s in e.stopNodes)if(e.stopNodes[s]===t||e.stopNodes[s]==="*."+n)return!0;return!1}function o(t,e){if(t&&t.length>0&&e.processEntities)for(let n=0;n<e.entities.length;n++){const s=e.entities[n];t=t.replace(s.regex,s.val)}return t}t.exports=function(t,n){let s="";return n.format&&n.indentBy.length>0&&(s="\n"),e(t,n,"",s)}},8327:(t,e,n)=>{const s=n(5115);function i(t,e){let n="";for(;e<t.length&&"'"!==t[e]&&'"'!==t[e];e++)n+=t[e];if(n=n.trim(),-1!==n.indexOf(" "))throw new Error("External entites are not supported");const s=t[e++];let i="";for(;e<t.length&&t[e]!==s;e++)i+=t[e];return[n,i,e]}function o(t,e){return"!"===t[e+1]&&"-"===t[e+2]&&"-"===t[e+3]}function r(t,e){return"!"===t[e+1]&&"E"===t[e+2]&&"N"===t[e+3]&&"T"===t[e+4]&&"I"===t[e+5]&&"T"===t[e+6]&&"Y"===t[e+7]}function a(t,e){return"!"===t[e+1]&&"E"===t[e+2]&&"L"===t[e+3]&&"E"===t[e+4]&&"M"===t[e+5]&&"E"===t[e+6]&&"N"===t[e+7]&&"T"===t[e+8]}function l(t,e){return"!"===t[e+1]&&"A"===t[e+2]&&"T"===t[e+3]&&"T"===t[e+4]&&"L"===t[e+5]&&"I"===t[e+6]&&"S"===t[e+7]&&"T"===t[e+8]}function u(t,e){return"!"===t[e+1]&&"N"===t[e+2]&&"O"===t[e+3]&&"T"===t[e+4]&&"A"===t[e+5]&&"T"===t[e+6]&&"I"===t[e+7]&&"O"===t[e+8]&&"N"===t[e+9]}function c(t){if(s.isName(t))return t;throw new Error(`Invalid entity name ${t}`)}t.exports=function(t,e){const n={};if("O"!==t[e+3]||"C"!==t[e+4]||"T"!==t[e+5]||"Y"!==t[e+6]||"P"!==t[e+7]||"E"!==t[e+8])throw new Error("Invalid Tag instead of DOCTYPE");{e+=9;let s=1,d=!1,h=!1,p="";for(;e<t.length;e++)if("<"!==t[e]||h)if(">"===t[e]){if(h?"-"===t[e-1]&&"-"===t[e-2]&&(h=!1,s--):s--,0===s)break}else"["===t[e]?d=!0:p+=t[e];else{if(d&&r(t,e))e+=7,[entityName,val,e]=i(t,e+1),-1===val.indexOf("&")&&(n[c(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(d&&a(t,e))e+=8;else if(d&&l(t,e))e+=8;else if(d&&u(t,e))e+=9;else{if(!o)throw new Error("Invalid DOCTYPE");h=!0}s++,p=""}if(0!==s)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:e}}},2353:(t,e)=>{const n={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(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,n){return t}};e.buildOptions=function(t){return Object.assign({},n,t)},e.defaultOptions=n},5897:(t,e,n)=>{"use strict";const s=n(5115),i=n(3499),o=n(8327),r=n(2304);function a(t){const e=Object.keys(t);for(let n=0;n<e.length;n++){const s=e[n];this.lastEntities[s]={regex:new RegExp("&"+s+";","g"),val:t[s]}}}function l(t,e,n,s,i,o,r){if(void 0!==t&&(this.options.trimValues&&!s&&(t=t.trim()),t.length>0)){r||(t=this.replaceEntitiesValue(t));const s=this.options.tagValueProcessor(e,t,n,i,o);return null==s?t:typeof s!=typeof t||s!==t?s:this.options.trimValues||t.trim()===t?E(t,this.options.parseTagValue,this.options.numberParseOptions):t}}function u(t){if(this.options.removeNSPrefix){const e=t.split(":"),n="/"===t.charAt(0)?"/":"";if("xmlns"===e[0])return"";2===e.length&&(t=n+e[1])}return t}const c=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function d(t,e,n){if(!this.options.ignoreAttributes&&"string"==typeof t){const n=s.getAllMatches(t,c),i=n.length,o={};for(let t=0;t<i;t++){const s=this.resolveNameSpace(n[t][1]);let i=n[t][4],r=this.options.attributeNamePrefix+s;if(s.length)if(this.options.transformAttributeName&&(r=this.options.transformAttributeName(r)),"__proto__"===r&&(r="#__proto__"),void 0!==i){this.options.trimValues&&(i=i.trim()),i=this.replaceEntitiesValue(i);const t=this.options.attributeValueProcessor(s,i,e);o[r]=null==t?i:typeof t!=typeof i||t!==i?t:E(i,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(o[r]=!0)}if(!Object.keys(o).length)return;if(this.options.attributesGroupName){const t={};return t[this.options.attributesGroupName]=o,t}return o}}const h=function(t){t=t.replace(/\r\n?/g,"\n");const e=new i("!xml");let n=e,s="",r="";for(let a=0;a<t.length;a++)if("<"===t[a])if("/"===t[a+1]){const e=x(t,">",a,"Closing Tag is not closed.");let i=t.substring(a+2,e).trim();if(this.options.removeNSPrefix){const t=i.indexOf(":");-1!==t&&(i=i.substr(t+1))}this.options.transformTagName&&(i=this.options.transformTagName(i)),n&&(s=this.saveTextToParentTag(s,n,r));const o=r.substring(r.lastIndexOf(".")+1);if(i&&-1!==this.options.unpairedTags.indexOf(i))throw new Error(`Unpaired tag can not be used as closing tag: </${i}>`);let l=0;o&&-1!==this.options.unpairedTags.indexOf(o)?(l=r.lastIndexOf(".",r.lastIndexOf(".")-1),this.tagsNodeStack.pop()):l=r.lastIndexOf("."),r=r.substring(0,l),n=this.tagsNodeStack.pop(),s="",a=e}else if("?"===t[a+1]){let e=b(t,a,!1,"?>");if(!e)throw new Error("Pi Tag is not closed.");if(s=this.saveTextToParentTag(s,n,r),this.options.ignoreDeclaration&&"?xml"===e.tagName||this.options.ignorePiTags);else{const t=new i(e.tagName);t.add(this.options.textNodeName,""),e.tagName!==e.tagExp&&e.attrExpPresent&&(t[":@"]=this.buildAttributesMap(e.tagExp,r,e.tagName)),this.addChild(n,t,r)}a=e.closeIndex+1}else if("!--"===t.substr(a+1,3)){const e=x(t,"--\x3e",a+4,"Comment is not closed.");if(this.options.commentPropName){const i=t.substring(a+4,e-2);s=this.saveTextToParentTag(s,n,r),n.add(this.options.commentPropName,[{[this.options.textNodeName]:i}])}a=e}else if("!D"===t.substr(a+1,2)){const e=o(t,a);this.docTypeEntities=e.entities,a=e.i}else if("!["===t.substr(a+1,2)){const e=x(t,"]]>",a,"CDATA is not closed.")-2,i=t.substring(a+9,e);s=this.saveTextToParentTag(s,n,r);let o=this.parseTextData(i,n.tagname,r,!0,!1,!0,!0);null==o&&(o=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:i}]):n.add(this.options.textNodeName,o),a=e+2}else{let o=b(t,a,this.options.removeNSPrefix),l=o.tagName;const u=o.rawTagName;let c=o.tagExp,d=o.attrExpPresent,h=o.closeIndex;this.options.transformTagName&&(l=this.options.transformTagName(l)),n&&s&&"!xml"!==n.tagname&&(s=this.saveTextToParentTag(s,n,r,!1));const p=n;if(p&&-1!==this.options.unpairedTags.indexOf(p.tagname)&&(n=this.tagsNodeStack.pop(),r=r.substring(0,r.lastIndexOf("."))),l!==e.tagname&&(r+=r?"."+l:l),this.isItStopNode(this.options.stopNodes,r,l)){let e="";if(c.length>0&&c.lastIndexOf("/")===c.length-1)"/"===l[l.length-1]?(l=l.substr(0,l.length-1),r=r.substr(0,r.length-1),c=l):c=c.substr(0,c.length-1),a=o.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(l))a=o.closeIndex;else{const n=this.readStopNodeData(t,u,h+1);if(!n)throw new Error(`Unexpected end of ${u}`);a=n.i,e=n.tagContent}const s=new i(l);l!==c&&d&&(s[":@"]=this.buildAttributesMap(c,r,l)),e&&(e=this.parseTextData(e,l,r,!0,d,!0,!0)),r=r.substr(0,r.lastIndexOf(".")),s.add(this.options.textNodeName,e),this.addChild(n,s,r)}else{if(c.length>0&&c.lastIndexOf("/")===c.length-1){"/"===l[l.length-1]?(l=l.substr(0,l.length-1),r=r.substr(0,r.length-1),c=l):c=c.substr(0,c.length-1),this.options.transformTagName&&(l=this.options.transformTagName(l));const t=new i(l);l!==c&&d&&(t[":@"]=this.buildAttributesMap(c,r,l)),this.addChild(n,t,r),r=r.substr(0,r.lastIndexOf("."))}else{const t=new i(l);this.tagsNodeStack.push(n),l!==c&&d&&(t[":@"]=this.buildAttributesMap(c,r,l)),this.addChild(n,t,r),n=t}s="",a=h}}else s+=t[a];return e.child};function p(t,e,n){const s=this.options.updateTag(e.tagname,n,e[":@"]);!1===s||("string"==typeof s?(e.tagname=s,t.addChild(e)):t.addChild(e))}const g=function(t){if(this.options.processEntities){for(let e in this.docTypeEntities){const n=this.docTypeEntities[e];t=t.replace(n.regx,n.val)}for(let e in this.lastEntities){const n=this.lastEntities[e];t=t.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let e in this.htmlEntities){const n=this.htmlEntities[e];t=t.replace(n.regex,n.val)}t=t.replace(this.ampEntity.regex,this.ampEntity.val)}return t};function f(t,e,n,s){return t&&(void 0===s&&(s=0===Object.keys(e.child).length),void 0!==(t=this.parseTextData(t,e.tagname,n,!1,!!e[":@"]&&0!==Object.keys(e[":@"]).length,s))&&""!==t&&e.add(this.options.textNodeName,t),t=""),t}function m(t,e,n){const s="*."+n;for(const n in t){const i=t[n];if(s===i||e===i)return!0}return!1}function x(t,e,n,s){const i=t.indexOf(e,n);if(-1===i)throw new Error(s);return i+e.length-1}function b(t,e,n,s=">"){const i=function(t,e,n=">"){let s,i="";for(let o=e;o<t.length;o++){let e=t[o];if(s)e===s&&(s="");else if('"'===e||"'"===e)s=e;else if(e===n[0]){if(!n[1])return{data:i,index:o};if(t[o+1]===n[1])return{data:i,index:o}}else"\t"===e&&(e=" ");i+=e}}(t,e+1,s);if(!i)return;let o=i.data;const r=i.index,a=o.search(/\s/);let l=o,u=!0;-1!==a&&(l=o.substring(0,a),o=o.substring(a+1).trimStart());const c=l;if(n){const t=l.indexOf(":");-1!==t&&(l=l.substr(t+1),u=l!==i.data.substr(t+1))}return{tagName:l,tagExp:o,closeIndex:r,attrExpPresent:u,rawTagName:c}}function y(t,e,n){const s=n;let i=1;for(;n<t.length;n++)if("<"===t[n])if("/"===t[n+1]){const o=x(t,">",n,`${e} is not closed`);if(t.substring(n+2,o).trim()===e&&(i--,0===i))return{tagContent:t.substring(s,n),i:o};n=o}else if("?"===t[n+1])n=x(t,"?>",n+1,"StopNode is not closed.");else if("!--"===t.substr(n+1,3))n=x(t,"--\x3e",n+3,"StopNode is not closed.");else if("!["===t.substr(n+1,2))n=x(t,"]]>",n,"StopNode is not closed.")-2;else{const s=b(t,n,">");s&&((s&&s.tagName)===e&&"/"!==s.tagExp[s.tagExp.length-1]&&i++,n=s.closeIndex)}}function E(t,e,n){if(e&&"string"==typeof t){const e=t.trim();return"true"===e||"false"!==e&&r(t,n)}return s.isExist(t)?t:""}t.exports=class{constructor(t){this.options=t,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:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(t,e)=>String.fromCharCode(Number.parseInt(e,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(t,e)=>String.fromCharCode(Number.parseInt(e,16))}},this.addExternalEntities=a,this.parseXml=h,this.parseTextData=l,this.resolveNameSpace=u,this.buildAttributesMap=d,this.isItStopNode=m,this.replaceEntitiesValue=g,this.readStopNodeData=y,this.saveTextToParentTag=f,this.addChild=p}}},4964:(t,e,n)=>{const{buildOptions:s}=n(2353),i=n(5897),{prettify:o}=n(2506),r=n(8473);t.exports=class{constructor(t){this.externalEntities={},this.options=s(t)}parse(t,e){if("string"==typeof t);else{if(!t.toString)throw new Error("XML data is accepted in String or Bytes[] form.");t=t.toString()}if(e){!0===e&&(e={});const n=r.validate(t,e);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new i(this.options);n.addExternalEntities(this.externalEntities);const s=n.parseXml(t);return this.options.preserveOrder||void 0===s?s:o(s,this.options)}addEntity(t,e){if(-1!==e.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==t.indexOf("&")||-1!==t.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===e)throw new Error("An entity with value '&' is not permitted");this.externalEntities[t]=e}}},2506:(t,e)=>{"use strict";function n(t,e,r){let a;const l={};for(let u=0;u<t.length;u++){const c=t[u],d=s(c);let h="";if(h=void 0===r?d:r+"."+d,d===e.textNodeName)void 0===a?a=c[d]:a+=""+c[d];else{if(void 0===d)continue;if(c[d]){let t=n(c[d],e,h);const s=o(t,e);c[":@"]?i(t,c[":@"],h,e):1!==Object.keys(t).length||void 0===t[e.textNodeName]||e.alwaysCreateTextNode?0===Object.keys(t).length&&(e.alwaysCreateTextNode?t[e.textNodeName]="":t=""):t=t[e.textNodeName],void 0!==l[d]&&l.hasOwnProperty(d)?(Array.isArray(l[d])||(l[d]=[l[d]]),l[d].push(t)):e.isArray(d,h,s)?l[d]=[t]:l[d]=t}}}return"string"==typeof a?a.length>0&&(l[e.textNodeName]=a):void 0!==a&&(l[e.textNodeName]=a),l}function s(t){const e=Object.keys(t);for(let t=0;t<e.length;t++){const n=e[t];if(":@"!==n)return n}}function i(t,e,n,s){if(e){const i=Object.keys(e),o=i.length;for(let r=0;r<o;r++){const o=i[r];s.isArray(o,n+"."+o,!0,!0)?t[o]=[e[o]]:t[o]=e[o]}}}function o(t,e){const{textNodeName:n}=e,s=Object.keys(t).length;return 0===s||!(1!==s||!t[n]&&"boolean"!=typeof t[n]&&0!==t[n])}e.prettify=function(t,e){return n(t,e)}},3499:t=>{"use strict";t.exports=class{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,e){"__proto__"===t&&(t="#__proto__"),this.child.push({[t]:e})}addChild(t){"__proto__"===t.tagname&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child})}}},2304:t=>{const e=/^[-+]?0x[a-fA-F0-9]+$/,n=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const s={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};t.exports=function(t,i={}){if(i=Object.assign({},s,i),!t||"string"!=typeof t)return t;let o=t.trim();if(void 0!==i.skipLike&&i.skipLike.test(o))return t;if(i.hex&&e.test(o))return Number.parseInt(o,16);{const e=n.exec(o);if(e){const n=e[1],s=e[2];let a=(r=e[3])&&-1!==r.indexOf(".")?("."===(r=r.replace(/0+$/,""))?r="0":"."===r[0]?r="0"+r:"."===r[r.length-1]&&(r=r.substr(0,r.length-1)),r):r;const l=e[4]||e[6];if(!i.leadingZeros&&s.length>0&&n&&"."!==o[2])return t;if(!i.leadingZeros&&s.length>0&&!n&&"."!==o[1])return t;{const e=Number(o),r=""+e;return-1!==r.search(/[eE]/)||l?i.eNotation?e:t:-1!==o.indexOf(".")?"0"===r&&""===a||r===a||n&&r==="-"+a?e:t:s?a===r||n+a===r?e:t:o===r||o===n+r?e:t}}return t}var r}}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=649,exports.ids=[649],exports.modules={1429:(e,t,n)=>{n.d(t,{I:()=>s});let r=!1;const s=e=>{e&&!r&&parseInt(e.substring(1,e.indexOf(".")))<18&&(r=!0,process.emitWarning("NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will\nno longer support Node.js 16.x on January 6, 2025.\n\nTo continue receiving updates to AWS services, bug fixes, and security\nupdates please upgrade to a supported Node.js LTS version.\n\nMore information can be found at: https://a.co/74kJMmI"))}},7771:(e,t,n)=>{n.d(t,{f2:()=>c});var r=n(5282);const s=e=>new Date(Date.now()+e),i=e=>r.cS.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,a=(e,t)=>{const n=Date.parse(e);return((e,t)=>Math.abs(s(t).getTime()-e)>=3e5)(n,t)?n-Date.now():t},o=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t};class c{async sign(e,t,n){if(!r.Kd.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const i=await(async e=>{const t=o("context",e.context),n=o("config",e.config),r=t.endpointV2?.properties?.authSchemes?.[0],s=o("signer",n.signer),i=await s(r),a=e?.signingRegion,c=e?.signingRegionSet,u=e?.signingName;return{config:n,signer:i,signingRegion:a,signingRegionSet:c,signingName:u}})(n),{config:a,signer:c}=i;let{signingRegion:u,signingName:d}=i;const l=n.context;if(l?.authSchemes?.length){const[e,t]=l.authSchemes;"sigv4a"===e?.name&&"sigv4"===t?.name&&(u=t?.signingRegion??u,d=t?.signingName??d)}return await c.sign(e,{signingDate:s(a.systemClockOffset),signingRegion:u,signingService:d})}errorHandler(e){return t=>{const n=t.ServerTime??i(t.$response);if(n){const r=o("config",e.config),s=r.systemClockOffset;r.systemClockOffset=a(n,r.systemClockOffset),r.systemClockOffset!==s&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){const n=i(e);if(n){const e=o("config",t.config);e.systemClockOffset=a(n,e.systemClockOffset)}}}},7421:(e,t,n)=>{n.d(t,{h:()=>q});var r=n(1248),s=n(199),i=n(6089),a=n(3110),o=n(8304);const c="X-Amz-Date",u="X-Amz-Signature",d="X-Amz-Security-Token",l="authorization",g=c.toLowerCase(),h=[l,g,"date"],p=u.toLowerCase(),f="x-amz-content-sha256",m=d.toLowerCase(),y={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},w=/^proxy-/,S=/^sec-/,v="AWS4-HMAC-SHA256",b="AWS4-HMAC-SHA256-PAYLOAD",R="aws4_request",A={},E=[],T=(e,t,n)=>`${e}/${t}/${n}/${R}`,C=(e,t,n)=>{const r=new e(t);return r.update((0,o.Fo)(n)),r.digest()},$=({headers:e},t,n)=>{const r={};for(const s of Object.keys(e).sort()){if(null==e[s])continue;const i=s.toLowerCase();(i in y||t?.has(i)||w.test(i)||S.test(i))&&(!n||n&&!n.has(i))||(r[i]=e[s].trim().replace(/\s+/g," "))}return r};var I=n(7140);const k=async({headers:e,body:t},n)=>{for(const t of Object.keys(e))if(t.toLowerCase()===f)return e[t];if(null==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||(0,I.m)(t)){const e=new n;return e.update((0,o.Fo)(t)),(0,s.n)(await e.digest())}return"UNSIGNED-PAYLOAD"};class P{format(e){const t=[];for(const n of Object.keys(e)){const r=(0,o.ar)(n);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[n]))}const n=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let r=0;for(const e of t)n.set(e,r),r+=e.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":const r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case"binary":const i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);const a=new Uint8Array(i.buffer);return a.set(e.value,3),a;case"string":const c=(0,o.ar)(e.value),u=new DataView(new ArrayBuffer(3+c.byteLength));u.setUint8(0,7),u.setUint16(1,c.byteLength,!1);const d=new Uint8Array(u.buffer);return d.set(c,3),d;case"timestamp":const l=new Uint8Array(9);return l[0]=8,l.set(N.fromNumber(e.value.valueOf()).bytes,1),l;case"uuid":if(!D.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const g=new Uint8Array(17);return g[0]=9,g.set((0,s.a)(e.value.replace(/\-/g,"")),1),g}}}var x;!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(x||(x={}));const D=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class N{constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let n=7,r=Math.abs(Math.round(e));n>-1&&r>0;n--,r/=256)t[n]=r;return e<0&&O(t),new N(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&O(e),parseInt((0,s.n)(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function O(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}var U=n(5282);const M=e=>{e=U.Kd.clone(e);for(const t of Object.keys(e.headers))h.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};class L{constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:s,uriEscapePath:a=!0}){this.headerFormatter=new P,this.service=r,this.sha256=s,this.uriEscapePath=a,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=(0,i.t)(n),this.credentialProvider=(0,i.t)(t)}async presign(e,t={}){const{signingDate:n=new Date,expiresIn:r=3600,unsignableHeaders:s,unhoistableHeaders:i,signableHeaders:a,hoistableHeaders:o,signingRegion:l,signingService:g}=t,h=await this.credentialProvider();this.validateResolvedCredentials(h);const p=l??await this.regionProvider(),{longDate:f,shortDate:m}=_(n);if(r>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const y=T(m,p,g??this.service),w=((e,t={})=>{const{headers:n,query:r={}}=U.Kd.clone(e);for(const e of Object.keys(n)){const s=e.toLowerCase();("x-amz-"===s.slice(0,6)&&!t.unhoistableHeaders?.has(s)||t.hoistableHeaders?.has(s))&&(r[e]=n[e],delete n[e])}return{...e,headers:n,query:r}})(M(e),{unhoistableHeaders:i,hoistableHeaders:o});h.sessionToken&&(w.query[d]=h.sessionToken),w.query["X-Amz-Algorithm"]=v,w.query["X-Amz-Credential"]=`${h.accessKeyId}/${y}`,w.query[c]=f,w.query["X-Amz-Expires"]=r.toString(10);const S=$(w,s,a);return w.query["X-Amz-SignedHeaders"]=j(S),w.query[u]=await this.getSignature(f,y,this.getSigningKey(h,p,m,g),this.createCanonicalRequest(w,S,await k(e,this.sha256))),w}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:r,signingRegion:i,signingService:a}){const o=i??await this.regionProvider(),{shortDate:c,longDate:u}=_(n),d=T(c,o,a??this.service),l=await k({headers:{},body:t},this.sha256),g=new this.sha256;g.update(e);const h=(0,s.n)(await g.digest()),p=[b,u,d,r,h,l].join("\n");return this.signString(p,{signingDate:n,signingRegion:o,signingService:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:r,priorSignature:e.priorSignature}).then((t=>({message:e.message,signature:t})))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:r}={}){const i=await this.credentialProvider();this.validateResolvedCredentials(i);const a=n??await this.regionProvider(),{shortDate:c}=_(t),u=new this.sha256(await this.getSigningKey(i,a,c,r));return u.update((0,o.Fo)(e)),(0,s.n)(await u.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:r,signingRegion:s,signingService:i}={}){const a=await this.credentialProvider();this.validateResolvedCredentials(a);const o=s??await this.regionProvider(),c=M(e),{longDate:u,shortDate:d}=_(t),h=T(d,o,i??this.service);c.headers[g]=u,a.sessionToken&&(c.headers[m]=a.sessionToken);const p=await k(c,this.sha256);!((e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1})(f,c.headers)&&this.applyChecksum&&(c.headers[f]=p);const y=$(c,r,n),w=await this.getSignature(u,h,this.getSigningKey(a,o,d,i),this.createCanonicalRequest(c,y,p));return c.headers[l]=`${v} Credential=${a.accessKeyId}/${h}, SignedHeaders=${j(y)}, Signature=${w}`,c}createCanonicalRequest(e,t,n){const r=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(({query:e={}})=>{const t=[],n={};for(const r of Object.keys(e)){if(r.toLowerCase()===p)continue;const s=(0,a.o)(r);t.push(s);const i=e[r];"string"==typeof i?n[s]=`${s}=${(0,a.o)(i)}`:Array.isArray(i)&&(n[s]=i.slice(0).reduce(((e,t)=>e.concat([`${s}=${(0,a.o)(t)}`])),[]).sort().join("&"))}return t.sort().map((e=>n[e])).filter((e=>e)).join("&")})(e)}\n${r.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${r.join(";")}\n${n}`}async createStringToSign(e,t,n){const r=new this.sha256;r.update((0,o.Fo)(n));const i=await r.digest();return`${v}\n${e}\n${t}\n${(0,s.n)(i)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const n of e.split("/"))0!==n?.length&&"."!==n&&(".."===n?t.pop():t.push(n));const n=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return(0,a.o)(n).replace(/%2F/g,"/")}return e}async getSignature(e,t,n,r){const i=await this.createStringToSign(e,t,r),a=new this.sha256(await n);return a.update((0,o.Fo)(i)),(0,s.n)(await a.digest())}getSigningKey(e,t,n,r){return(async(e,t,n,r,i)=>{const a=await C(e,t.secretAccessKey,t.accessKeyId),o=`${n}:${r}:${i}:${(0,s.n)(a)}:${t.sessionToken}`;if(o in A)return A[o];for(E.push(o);E.length>50;)delete A[E.shift()];let c=`AWS4${t.secretAccessKey}`;for(const t of[n,r,i,R])c=await C(e,c,t);return A[o]=c})(this.sha256,e,n,t,r||this.service)}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw new Error("Resolved credential object is not valid")}}const _=e=>{const t=(n=e,(e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e)(n).toISOString().replace(/\.\d{3}Z$/,"Z")).replace(/[\-:]/g,"");var n;return{longDate:t,shortDate:t.slice(0,8)}},j=e=>Object.keys(e).sort().join(";"),q=e=>{let t;e.credentials&&(t=(0,r.K4)(e.credentials,r.OC,r.e)),t||(t=e.credentialDefaultProvider?(0,r.te)(e.credentialDefaultProvider(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw new Error("`credentials` is missing")});const{signingEscapePath:n=!0,systemClockOffset:s=e.systemClockOffset||0,sha256:i}=e;let a;return a=e.signer?(0,r.te)(e.signer):e.regionInfoProvider?()=>(0,r.te)(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([r,s])=>{const{signingRegion:a,signingService:o}=r;e.signingRegion=e.signingRegion||a||s,e.signingName=e.signingName||o||e.serviceId;const c={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:n};return new(e.signerConstructor||L)(c)})):async s=>{const a=(s=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await(0,r.te)(e.region)(),properties:{}},s)).signingRegion,o=s.signingName;e.signingRegion=e.signingRegion||a,e.signingName=e.signingName||o||e.serviceId;const c={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:n};return new(e.signerConstructor||L)(c)},{...e,systemClockOffset:s,signingEscapePath:n,credentials:t,signer:a}}},3485:(e,t,n)=>{n.d(t,{w:()=>s});var r=n(4285);const s=(e,t)=>(0,r.Px)(e,t).then((e=>t.utf8Encoder(e)))},1568:(e,t,n)=>{n.d(t,{OV:()=>s,TC:()=>a});var r=n(5282);function s(e){return e}const i={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},a=e=>({applyToStack:t=>{t.add((e=>t=>async n=>{if(!r.Kd.isInstance(n.request))return t(n);const{request:s}=n,{handlerProtocol:i=""}=e.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!s.headers[":authority"])delete s.headers.host,s.headers[":authority"]=s.hostname+(s.port?":"+s.port:"");else if(!s.headers.host){let e=s.hostname;null!=s.port&&(e+=`:${s.port}`),s.headers.host=e}return t(n)})(e),i)}})},9716:(e,t,n)=>{n.d(t,{Y7:()=>s});const r={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},s=e=>({applyToStack:e=>{e.add(((e,t)=>async n=>{try{const r=await e(n),{clientName:s,commandName:i,logger:a,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=o,d=c??t.inputFilterSensitiveLog,l=u??t.outputFilterSensitiveLog,{$metadata:g,...h}=r.output;return a?.info?.({clientName:s,commandName:i,input:d(n.input),output:l(h),metadata:g}),r}catch(e){const{clientName:r,commandName:s,logger:i,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:o}=a,c=o??t.inputFilterSensitiveLog;throw i?.error?.({clientName:r,commandName:s,input:c(n.input),error:e,metadata:e.$metadata}),e}}),r)}})},1838:(e,t,n)=>{n.d(t,{n4:()=>a});var r=n(5282);const s="X-Amzn-Trace-Id",i={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},a=e=>({applyToStack:t=>{t.add((e=>t=>async n=>{const{request:i}=n;if(!r.Kd.isInstance(i)||"node"!==e.runtime||i.headers.hasOwnProperty(s))return t(n);const a=process.env.AWS_LAMBDA_FUNCTION_NAME,o=process.env._X_AMZN_TRACE_ID,c=e=>"string"==typeof e&&e.length>0;return c(a)&&c(o)&&(i.headers[s]=o),t({...n,request:i})})(e),i)}})},9232:(e,t,n)=>{n.d(t,{bM:()=>s,sM:()=>p,Dc:()=>i});var r=n(1248);const s=void 0;function i(e){const t=(0,r.te)(e.userAgentAppId??s);return{...e,customUserAgent:"string"==typeof e.customUserAgent?[[e.customUserAgent]]:e.customUserAgent,userAgentAppId:async()=>{const n=await t();if(!function(e){return void 0===e||"string"==typeof e&&e.length<=50}(n)){const t="NoOpLogger"!==e.logger?.constructor?.name&&e.logger?e.logger:console;"string"!=typeof n?t?.warn("userAgentAppId must be a string or undefined."):n.length>50&&t?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return n}}}var a=n(6445),o=n(5282);const c="user-agent",u="x-amz-user-agent",d=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,l=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,g=e=>{const t=e[0].split("/").map((e=>e.replace(d,"-"))).join("/"),n=e[1]?.replace(l,"-"),r=t.indexOf("/"),s=t.substring(0,r);let i=t.substring(r+1);return"api"===s&&(i=i.toLowerCase()),[s,i,n].filter((e=>e&&e.length>0)).reduce(((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}}),"")},h={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},p=e=>({applyToStack:t=>{var n;t.add((n=e,(e,t)=>async r=>{const{request:s}=r;if(!o.Kd.isInstance(s))return e(r);const{headers:i}=s,d=t?.userAgent?.map(g)||[],l=(await n.defaultUserAgentProvider()).map(g),h=t;l.push(`m/${function(e){let t="";for(const n in e){const r=e[n];if(!(t.length+r.length+1<=1024))break;t.length?t+=","+r:t+=r}return t}(Object.assign({},t.__smithy_context?.features,h.__aws_sdk_context?.features))}`);const p=n?.customUserAgent?.map(g)||[],f=await n.userAgentAppId();f&&l.push(g([`app/${f}`]));const m=(0,a.vL)(),y=(m?[m]:[]).concat([...l,...d,...p]).join(" "),w=[...l.filter((e=>e.startsWith("aws-sdk-"))),...p].join(" ");return"browser"!==n.runtime?(w&&(i[u]=i[u]?`${i[c]} ${w}`:w),i[c]=y):i[u]=y,e({...r,request:s})}),h)}})},7329:(e,t,n)=>{n.d(t,{Rq:()=>r,$3:()=>s});const r=e=>{let t=async()=>{if(void 0===e.region)throw new Error("Region is missing from runtimeConfig");const t=e.region;return"string"==typeof t?t:t()};return{setRegion(e){t=e},region:()=>t}},s=e=>({region:e.region()})},6445:(e,t,n)=>{n.d(t,{UF:()=>o,vL:()=>a});var r=n(8390);const s=(e,t=!1)=>{if(t){for(const t of e.split("."))if(!s(t))return!1;return!0}return!(!(0,r.X8)(e)||e.length<3||e.length>63||e!==e.toLowerCase()||(0,r.oX)(e))};let i=JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-east-1","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af|il|mx)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"ap-southeast-4":{"description":"Asia Pacific (Melbourne)"},"ap-southeast-5":{"description":"Asia Pacific (Malaysia)"},"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":true,"supportsFIPS":true},"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":true,"supportsFIPS":true},"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":false,"supportsFIPS":true},"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":false,"supportsFIPS":true},"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":false,"supportsFIPS":true},"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":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isof\\\\-\\\\w+\\\\-\\\\d+$","regions":{}}],"version":"1.1"}');const a=()=>"",o={isVirtualHostableS3Bucket:s,parseArn:e=>{const t=e.split(":");if(t.length<6)return null;const[n,r,s,i,a,...o]=t;return"arn"!==n||""===r||""===s||""===o.join(":")?null:{partition:r,service:s,region:i,accountId:a,resourceId:o.map((e=>e.split("/"))).flat()}},partition:e=>{const{partitions:t}=i;for(const n of t){const{regions:t,outputs:r}=n;for(const[n,s]of Object.entries(t))if(n===e)return{...r,...s}}for(const n of t){const{regionRegex:t,outputs:r}=n;if(new RegExp(t).test(e))return{...r}}const n=t.find((e=>"aws"===e.id));if(!n)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...n.outputs}}};r.mw.aws=o},9838:(e,t,n)=>{n.d(t,{hV:()=>a,mJ:()=>i});var r=n(857),s=n(932);const i=({serviceId:e,clientVersion:t})=>async n=>{const i=[["aws-sdk-js",t],["ua","2.1"],[`os/${(0,r.platform)()}`,(0,r.release)()],["lang/js"],["md/nodejs",`${s.versions.node}`]];e&&i.push([`api/${e}`,t]),s.env.AWS_EXECUTION_ENV&&i.push([`exec-env/${s.env.AWS_EXECUTION_ENV}`]);const a=await(n?.userAgentAppId?.());return a?[...i,[`app/${a}`]]:[...i]};const a={environmentVariableSelector:e=>e.AWS_SDK_UA_APP_ID,configFileSelector:e=>e["sdk-ua-app-id"],default:n(9232).bM}},4250:(e,t,n)=>{n.d(t,{zH:()=>c,GG:()=>o,e$:()=>i,Ko:()=>a,TD:()=>l});const r=(e,t,n)=>{if(t in e){if("true"===e[t])return!0;if("false"===e[t])return!1;throw new Error(`Cannot load ${n} "${t}". Expected "true" or "false", got ${e[t]}.`)}};var s;!function(e){e.ENV="env",e.CONFIG="shared config entry"}(s||(s={}));const i={environmentVariableSelector:e=>r(e,"AWS_USE_DUALSTACK_ENDPOINT",s.ENV),configFileSelector:e=>r(e,"use_dualstack_endpoint",s.CONFIG),default:!1},a={environmentVariableSelector:e=>r(e,"AWS_USE_FIPS_ENDPOINT",s.ENV),configFileSelector:e=>r(e,"use_fips_endpoint",s.CONFIG),default:!1};n(6089);const o={environmentVariableSelector:e=>e.AWS_REGION,configFileSelector:e=>e.region,default:()=>{throw new Error("Region is missing")}},c={preferredFile:"credentials"},u=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips")),d=e=>u(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,l=e=>{const{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return{...e,region:async()=>{if("string"==typeof t)return d(t);const e=await t();return d(e)},useFipsEndpoint:async()=>{const e="string"==typeof t?t:await t();return!!u(e)||("function"!=typeof n?Promise.resolve(!!n):n())}}}},1248:(e,t,n)=>{n.d(t,{h$:()=>l,mR:()=>g,e:()=>p,wB:()=>i,lW:()=>d,OC:()=>h,K4:()=>f,te:()=>m,lI:()=>w}),n(9830);var r=n(6089);const s={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:n(7388).ko.name},i=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:i=>{i.addRelativeTo(((e,t)=>(n,s)=>async i=>{const a=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,s,i.input)),o=function(e){const t=new Map;for(const n of e)t.set(n.schemeId,n);return t}(e.httpAuthSchemes),c=(0,r.u)(s),u=[];for(const n of a){const r=o.get(n.schemeId);if(!r){u.push(`HttpAuthScheme \`${n.schemeId}\` was not enabled for this service.`);continue}const i=r.identityProvider(await t.identityProviderConfigProvider(e));if(!i){u.push(`HttpAuthScheme \`${n.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:a={},signingProperties:d={}}=n.propertiesExtractor?.(e,s)||{};n.identityProperties=Object.assign(n.identityProperties||{},a),n.signingProperties=Object.assign(n.signingProperties||{},d),c.selectedHttpAuthScheme={httpAuthOption:n,identity:await i(n.identityProperties),signer:r.signer};break}if(!c.selectedHttpAuthScheme)throw new Error(u.join("\n"));return n(i)})(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),s)}});n(7083).Ou.name;var a=n(5282);const o=e=>e=>{throw e},c=(e,t)=>{},u={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:n(3165).j7.name},d=e=>({applyToStack:e=>{e.addRelativeTo(((e,t)=>async n=>{if(!a.Kd.isInstance(n.request))return e(n);const s=(0,r.u)(t).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:i={}},identity:u,signer:d}=s,l=await e({...n,request:await d.sign(n.request,u,i)}).catch((d.errorHandler||o)(i));return(d.successHandler||c)(l.response,i),l}),u)}});class l{constructor(e){this.authSchemes=new Map;for(const[t,n]of Object.entries(e))void 0!==n&&this.authSchemes.set(t,n)}getIdentityProvider(e){return this.authSchemes.get(e)}}class g{async sign(e,t,n){return e}}const h=(3e5,e=>p(e)&&e.expiration.getTime()-Date.now()<3e5);const p=e=>void 0!==e.expiration,f=(e,t,n)=>{if(void 0===e)return;const r="function"!=typeof e?async()=>Promise.resolve(e):e;let s,i,a,o=!1;const c=async e=>{i||(i=r(e));try{s=await i,a=!0,o=!1}finally{i=void 0}return s};return void 0===t?async e=>(a&&!e?.forceRefresh||(s=await c(e)),s):async e=>(a&&!e?.forceRefresh||(s=await c(e)),o?s:n(s)?t(s)?(await c(e),s):s:(o=!0,s))},m=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t};var y=n(4285);function w(e,t){return new S(e,t)}class S{constructor(e,t){this.input=e,this.context=t,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:e,protocol:t="https",port:n,path:r}=await this.context.endpoint();this.path=r;for(const e of this.resolvePathStack)e(this.path);return new a.Kd({protocol:t,hostname:this.hostname||e,port:n,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){return this.hostname=e,this}bp(e){return this.resolvePathStack.push((t=>{this.path=`${t?.endsWith("/")?t.slice(0,-1):t||""}`+e})),this}p(e,t,n,r){return this.resolvePathStack.push((s=>{this.path=(0,y.un)(s,this.input,e,t,n,r)})),this}h(e){return this.headers=e,this}q(e){return this.query=e,this}b(e){return this.body=e,this}m(e){return this.method=e,this}}},194:(e,t,n)=>{n.d(t,{V:()=>o});var r=n(2219),s=n(8304),i=n(2562),a=n(6982);class o{constructor(e,t){this.algorithmIdentifier=e,this.secret=t,this.reset()}update(e,t){this.hash.update((0,s.Fo)(c(e,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,a.createHmac)(this.algorithmIdentifier,c(this.secret)):(0,a.createHash)(this.algorithmIdentifier)}}function c(e,t){return i.Buffer.isBuffer(e)?e:"string"==typeof e?(0,r.s)(e,t):ArrayBuffer.isView(e)?(0,r.Q)(e.buffer,e.byteOffset,e.byteLength):(0,r.Q)(e)}},4890:(e,t,n)=>{n.d(t,{vK:()=>a});var r=n(5282);const s="content-length",i={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},a=e=>({applyToStack:t=>{var n;t.add((n=e.bodyLengthChecker,e=>async t=>{const i=t.request;if(r.Kd.isInstance(i)){const{body:e,headers:t}=i;if(e&&-1===Object.keys(t).map((e=>e.toLowerCase())).indexOf(s))try{const t=n(e);i.headers={...i.headers,[s]:String(t)}}catch(e){}}return e({...t,request:i})}),i)}})},7388:(e,t,n)=>{n.d(t,{ko:()=>m,rD:()=>y,Co:()=>w});const r=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,s=/(\d+\.){3}\d+/,i=/\.\./,a=(e,t,n)=>{const r=async()=>{const r=n[e]??n[t];return"function"==typeof r?r():r};return"credentialScope"===e||"CredentialScope"===t?async()=>{const e="function"==typeof n.credentials?await n.credentials():n.credentials;return e?.credentialScope??e?.CredentialScope}:"accountId"===e||"AccountId"===t?async()=>{const e="function"==typeof n.credentials?await n.credentials():n.credentials;return e?.accountId??e?.AccountId}:"endpoint"===e||"endpoint"===t?async()=>{const e=await r();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:n,port:r,path:s}=e;return`${t}//${n}${r?":"+r:""}${s}`}}return e}:r};var o=n(4012),c=n(3041);const u="AWS_ENDPOINT_URL",d="endpoint_url",l=async e=>(0,o.Z)((e=>({environmentVariableSelector:t=>{const n=e.split(" ").map((e=>e.toUpperCase())),r=t[[u,...n].join("_")];return r||(t[u]||void 0)},configFileSelector:(t,n)=>{if(n&&t.services){const r=n[["services",t.services].join(c.QD)];if(r){const t=r[[e.split(" ").map((e=>e.toLowerCase())).join("_"),d].join(c.QD)];if(t)return t}}const r=t[d];if(r)return r},default:void 0}))(e??""))();var g=n(30);const h=e=>"object"==typeof e?"url"in e?(0,g.D)(e.url):e:(0,g.D)(e),p=async(e,t,n)=>{const o={},c=t?.getEndpointParameterInstructions?.()||{};for(const[t,r]of Object.entries(c))switch(r.type){case"staticContextParams":o[t]=r.value;break;case"contextParams":o[t]=e[r.name];break;case"clientContextParams":case"builtInParams":o[t]=await a(r.name,t,n)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(r))}return 0===Object.keys(c).length&&Object.assign(o,n),"s3"===String(n.serviceId).toLowerCase()&&await(async e=>{const t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),(e=>{const[t,n,r,,,s]=e.split(":"),i="arn"===t&&e.split(":").length>=6,a=Boolean(i&&n&&r&&s);if(i&&!a)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return a})(t)){if(!0===e.ForcePathStyle)throw new Error("Path-style addressing cannot be used with ARN buckets")}else n=t,(!r.test(n)||s.test(n)||i.test(n)||-1!==t.indexOf(".")&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);var n;return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e})(o),o};var f=n(6089);const m={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:n(7083).Ou.name},y=(e,t)=>({applyToStack:n=>{n.addRelativeTo((({config:e,instructions:t})=>(n,r)=>async s=>{const i=await(async(e,t,n,r)=>{if(!n.endpoint){let e;e=n.serviceConfiguredEndpoint?await n.serviceConfiguredEndpoint():await l(n.serviceId),e&&(n.endpoint=()=>Promise.resolve(h(e)))}const s=await p(e,t,n);if("function"!=typeof n.endpointProvider)throw new Error("config.endpointProvider is not set.");return n.endpointProvider(s,r)})(s.input,{getEndpointParameterInstructions:()=>t},{...e},r);r.endpointV2=i,r.authSchemes=i.properties?.authSchemes;const a=r.authSchemes?.[0];if(a){r.signing_region=a.signingRegion,r.signing_service=a.signingName;const e=(0,f.u)(r),t=e?.selectedHttpAuthScheme?.httpAuthOption;t&&(t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:a.signingRegion,signingRegion:a.signingRegion,signing_service:a.signingName,signingName:a.signingName,signingRegionSet:a.signingRegionSet},a.properties))}return n({...s})})({config:e,instructions:t}),m)}}),w=e=>{const t=e.tls??!0,{endpoint:n}=e,r=null!=n?async()=>h(await(0,f.t)(n)()):void 0,s=!!n,i={...e,endpoint:r,tls:t,isCustomEndpoint:s,useDualstackEndpoint:(0,f.t)(e.useDualstackEndpoint??!1),useFipsEndpoint:(0,f.t)(e.useFipsEndpoint??!1)};let a;return i.serviceConfiguredEndpoint=async()=>(e.serviceId&&!a&&(a=l(e.serviceId)),a),i}},3165:(e,t,n)=>{n.d(t,{qs:()=>y,kN:()=>S,ey:()=>C,$z:()=>w,j7:()=>T});var r=n(7100),s=n(5282),i=n(7753),a=n(6982),o=n.n(a);const c={randomUUID:o().randomUUID},u=new Uint8Array(256);let d=u.length;function l(){return d>u.length-16&&(o().randomFillSync(u),d=0),u.slice(d,d+=16)}const g=[];for(let e=0;e<256;++e)g.push((e+256).toString(16).slice(1));const h=function(e,t,n){if(c.randomUUID&&!t&&!e)return c.randomUUID();const r=(e=e||{}).random||(e.rng||l)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return g[e[t+0]]+g[e[t+1]]+g[e[t+2]]+g[e[t+3]]+"-"+g[e[t+4]]+g[e[t+5]]+"-"+g[e[t+6]]+g[e[t+7]]+"-"+g[e[t+8]]+g[e[t+9]]+"-"+g[e[t+10]]+g[e[t+11]]+g[e[t+12]]+g[e[t+13]]+g[e[t+14]]+g[e[t+15]]}(r)};var p=n(6089);const f="AWS_MAX_ATTEMPTS",m="max_attempts",y={environmentVariableSelector:e=>{const t=e[f];if(!t)return;const n=parseInt(t);if(Number.isNaN(n))throw new Error(`Environment variable ${f} mast be a number, got "${t}"`);return n},configFileSelector:e=>{const t=e[m];if(!t)return;const n=parseInt(t);if(Number.isNaN(n))throw new Error(`Shared config file entry ${m} mast be a number, got "${t}"`);return n},default:r.Gz},w=e=>{const{retryStrategy:t}=e,n=(0,p.t)(e.maxAttempts??r.Gz);return{...e,maxAttempts:n,retryStrategy:async()=>t||(await(0,p.t)(e.retryMode)()===r.cm.ADAPTIVE?new r.Y(n):new r.ru(n))}},S={environmentVariableSelector:e=>e.AWS_RETRY_MODE,configFileSelector:e=>e.retry_mode,default:r.L0};var v=n(4285),b=n(2203);const R=e=>e?.body instanceof b.Readable||"undefined"!=typeof ReadableStream&&e?.body instanceof ReadableStream,A=e=>{const t={error:e,errorType:E(e)},n=$(e.$response);return n&&(t.retryAfterHint=n),t},E=e=>(0,i.Qb)(e)?"THROTTLING":(0,i.bV)(e)?"TRANSIENT":(0,i.GQ)(e)?"SERVER_ERROR":"CLIENT_ERROR",T={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},C=e=>({applyToStack:t=>{t.add((e=>(t,n)=>async i=>{let a=await e.retryStrategy();const o=await e.maxAttempts();if(!(e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess)(a))return a?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",a.mode]]),a.retry(t,i);{let e=await a.acquireInitialRetryToken(n.partition_id),u=new Error,d=0,l=0;const{request:g}=i,p=s.Kd.isInstance(g);for(p&&(g.headers[r.l5]=h());;)try{p&&(g.headers[r.ok]=`attempt=${d+1}; max=${o}`);const{response:n,output:s}=await t(i);return a.recordSuccess(e),s.$metadata.attempts=d+1,s.$metadata.totalRetryDelay=l,{response:n,output:s}}catch(t){const r=A(t);if(u=(c=t)instanceof Error?c:c instanceof Object?Object.assign(new Error,c):"string"==typeof c?new Error(c):new Error(`AWS SDK error wrapper for ${c}`),p&&R(g))throw(n.logger instanceof v.N4?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),u;try{e=await a.refreshRetryTokenForRetry(e,r)}catch(e){throw u.$metadata||(u.$metadata={}),u.$metadata.attempts=d+1,u.$metadata.totalRetryDelay=l,u}d=e.getRetryCount();const s=e.getRetryDelay();l+=s,await new Promise((e=>setTimeout(e,s)))}}var c})(e),T)}}),$=e=>{if(!s.cS.isInstance(e))return;const t=Object.keys(e.headers).find((e=>"retry-after"===e.toLowerCase()));if(!t)return;const n=e.headers[t],r=Number(n);return Number.isNaN(r)?new Date(n):new Date(1e3*r)}},7083:(e,t,n)=>{n.d(t,{TM:()=>o,Ou:()=>a});const r=(e,t)=>n=>async r=>{const{response:s}=await n(r);try{return{response:s,output:await t(s,e)}}catch(e){if(Object.defineProperty(e,"$response",{value:s}),!("$metadata"in e)){const t="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";e.message+="\n "+t,void 0!==e.$responseBodyText&&e.$response&&(e.$response.body=e.$responseBodyText)}throw e}},s=(e,t)=>(n,r)=>async s=>{const i=r.endpointV2?.url&&e.urlParser?async()=>e.urlParser(r.endpointV2.url):e.endpoint;if(!i)throw new Error("No valid endpoint provider available.");const a=await t(s.input,{...e,endpoint:i});return n({...s,request:a})},i={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},a={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function o(e,t,n){return{applyToStack:o=>{o.add(r(e,n),i),o.add(s(e,t),a)}}}},7753:(e,t,n)=>{n.d(t,{h5:()=>u,S0:()=>c,GQ:()=>g,Qb:()=>d,bV:()=>l});const r=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],s=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],i=["TimeoutError","RequestTimeout","RequestTimeoutException"],a=[500,502,503,504],o=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],c=e=>void 0!==e.$retryable,u=e=>r.includes(e.name),d=e=>429===e.$metadata?.httpStatusCode||s.includes(e.name)||1==e.$retryable?.throttling,l=e=>(e=>e.$metadata?.clockSkewCorrected)(e)||i.includes(e.name)||o.includes(e?.code||"")||a.includes(e.$metadata?.httpStatusCode||0),g=e=>{if(void 0!==e.$metadata?.httpStatusCode){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!l(e)}return!1}},9048:(e,t,n)=>{n.d(t,{n:()=>s});var r=n(9896);const s=e=>{if(!e)return 0;if("string"==typeof e)return Buffer.byteLength(e);if("number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size;if("number"==typeof e.start&&"number"==typeof e.end)return e.end+1-e.start;if("string"==typeof e.path||Buffer.isBuffer(e.path))return(0,r.lstatSync)(e.path).size;if("number"==typeof e.fd)return(0,r.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)}},2780:(e,t,n)=>{n.d(t,{I:()=>d});var r=n(4250),s=n(4012),i=n(3929);const a="AWS_REGION",o="AWS_DEFAULT_REGION",c=["in-region","cross-region","mobile","standard","legacy"],u={environmentVariableSelector:e=>e.AWS_DEFAULTS_MODE,configFileSelector:e=>e.defaults_mode,default:"legacy"},d=({region:e=(0,s.Z)(r.GG),defaultsMode:t=(0,s.Z)(u)}={})=>(0,i.Bj)((async()=>{const n="function"==typeof t?await t():t;switch(n?.toLowerCase()){case"auto":return l(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(n?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${c.join(", ")}, got ${n}`)}})),l=async e=>{if(e){const t="function"==typeof e?await e():e,n=await g();return n?t===n?"in-region":"cross-region":"standard"}return"standard"},g=async()=>{if(process.env.AWS_EXECUTION_ENV&&(process.env[a]||process.env[o]))return process.env[a]??process.env[o];if(!process.env.AWS_EC2_METADATA_DISABLED)try{const{getInstanceMetadataEndpoint:e,httpRequest:t}=await Promise.resolve().then(n.bind(n,1442)),r=await e();return(await t({...r,path:"/latest/meta-data/placement/region"})).toString()}catch(e){}}},8390:(e,t,n)=>{n.d(t,{kS:()=>r,mw:()=>c,oX:()=>i,X8:()=>o,sO:()=>k});class r{constructor({size:e,params:t}){this.data=new Map,this.parameters=[],this.capacity=e??50,t&&(this.parameters=t)}get(e,t){const n=this.hash(e);if(!1===n)return t();if(!this.data.has(n)){if(this.data.size>this.capacity+10){const e=this.data.keys();let t=0;for(;;){const{value:n,done:r}=e.next();if(this.data.delete(n),r||++t>10)break}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t="";const{parameters:n}=this;if(0===n.length)return!1;for(const r of n){const n=String(e[r]??"");if(n.includes("|;"))return!1;t+=n+"|;"}return t}}const s=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),i=e=>s.test(e)||e.startsWith("[")&&e.endsWith("]"),a=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),o=(e,t=!1)=>{if(!t)return a.test(e);const n=e.split(".");for(const e of n)if(!o(e))return!1;return!0},c={},u="endpoints";function d(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${d(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(d).join(", ")})`:JSON.stringify(e,null,2)}class l extends Error{constructor(e){super(e),this.name="EndpointError"}}const g=(e,t)=>(e=>{const t=e.split("."),n=[];for(const r of t){const t=r.indexOf("[");if(-1!==t){if(r.indexOf("]")!==r.length-1)throw new l(`Path: '${e}' does not end with ']'`);const s=r.slice(t+1,-1);if(Number.isNaN(parseInt(s)))throw new l(`Invalid array index: '${s}' in path: '${e}'`);0!==t&&n.push(r.slice(0,t)),n.push(s)}else n.push(r)}return n})(t).reduce(((n,r)=>{if("object"!=typeof n)throw new l(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(n)?n[parseInt(r)]:n[r]}),e);var h=n(9830);const p={[h.Ue.HTTP]:80,[h.Ue.HTTPS]:443},f={booleanEquals:(e,t)=>e===t,getAttr:g,isSet:e=>null!=e,isValidHostLabel:o,not:e=>!e,parseURL:e=>{const t=(()=>{try{if(e instanceof URL)return e;if("object"==typeof e&&"hostname"in e){const{hostname:t,port:n,protocol:r="",path:s="",query:i={}}=e,a=new URL(`${r}//${t}${n?`:${n}`:""}${s}`);return a.search=Object.entries(i).map((([e,t])=>`${e}=${t}`)).join("&"),a}return new URL(e)}catch(e){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const n=t.href,{host:r,hostname:s,pathname:a,protocol:o,search:c}=t;if(c)return null;const u=o.slice(0,-1);if(!Object.values(h.Ue).includes(u))return null;const d=i(s);return{scheme:u,authority:`${r}${n.includes(`${r}:${p[u]}`)||"string"==typeof e&&e.includes(`${r}:${p[u]}`)?`:${p[u]}`:""}`,path:a,normalizedPath:a.endsWith("/")?a:`${a}/`,isIp:d}},stringEquals:(e,t)=>e===t,substring:(e,t,n,r)=>t>=n||e.length<n?null:r?e.substring(e.length-n,e.length-t):e.substring(t,n),uriEncode:e=>encodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},m=(e,t)=>{const n=[],r={...t.endpointParams,...t.referenceRecord};let s=0;for(;s<e.length;){const t=e.indexOf("{",s);if(-1===t){n.push(e.slice(s));break}n.push(e.slice(s,t));const i=e.indexOf("}",t);if(-1===i){n.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[i+1]&&(n.push(e.slice(t+1,i)),s=i+2);const a=e.substring(t+1,i);if(a.includes("#")){const[e,t]=a.split("#");n.push(g(r[e],t))}else n.push(r[a]);s=i+1}return n.join("")},y=(e,t,n)=>{if("string"==typeof e)return m(e,n);if(e.fn)return w(e,n);if(e.ref)return(({ref:e},t)=>({...t.endpointParams,...t.referenceRecord}[e]))(e,n);throw new l(`'${t}': ${String(e)} is not a string, function or reference.`)},w=({fn:e,argv:t},n)=>{const r=t.map((e=>["boolean","number"].includes(typeof e)?e:y(e,"arg",n))),s=e.split(".");return s[0]in c&&null!=s[1]?c[s[0]][s[1]](...r):f[e](...r)},S=({assign:e,...t},n)=>{if(e&&e in n.referenceRecord)throw new l(`'${e}' is already defined in Reference Record.`);const r=w(t,n);return n.logger?.debug?.(`${u} evaluateCondition: ${d(t)} = ${d(r)}`),{result:""===r||!!r,...null!=e&&{toAssign:{name:e,value:r}}}},v=(e=[],t)=>{const n={};for(const r of e){const{result:e,toAssign:s}=S(r,{...t,referenceRecord:{...t.referenceRecord,...n}});if(!e)return{result:e};s&&(n[s.name]=s.value,t.logger?.debug?.(`${u} assign: ${s.name} := ${d(s.value)}`))}return{result:!0,referenceRecord:n}},b=(e,t)=>Object.entries(e).reduce(((e,[n,r])=>({...e,[n]:r.map((e=>{const r=y(e,"Header value entry",t);if("string"!=typeof r)throw new l(`Header '${n}' value '${r}' is not a string`);return r}))})),{}),R=(e,t)=>{if(Array.isArray(e))return e.map((e=>R(e,t)));switch(typeof e){case"string":return m(e,t);case"object":if(null===e)throw new l(`Unexpected endpoint property: ${e}`);return A(e,t);case"boolean":return e;default:throw new l("Unexpected endpoint property type: "+typeof e)}},A=(e,t)=>Object.entries(e).reduce(((e,[n,r])=>({...e,[n]:R(r,t)})),{}),E=(e,t)=>{const n=y(e,"Endpoint URL",t);if("string"==typeof n)try{return new URL(n)}catch(e){throw console.error(`Failed to construct URL with ${n}`,e),e}throw new l("Endpoint URL must be a string, got "+typeof n)},T=(e,t)=>{const{conditions:n,endpoint:r}=e,{result:s,referenceRecord:i}=v(n,t);if(!s)return;const a={...t,referenceRecord:{...t.referenceRecord,...i}},{url:o,properties:c,headers:l}=r;return t.logger?.debug?.(`${u} Resolving endpoint from template: ${d(r)}`),{...null!=l&&{headers:b(l,a)},...null!=c&&{properties:A(c,a)},url:E(o,a)}},C=(e,t)=>{const{conditions:n,error:r}=e,{result:s,referenceRecord:i}=v(n,t);if(s)throw new l(y(r,"Error",{...t,referenceRecord:{...t.referenceRecord,...i}}))},$=(e,t)=>{const{conditions:n,rules:r}=e,{result:s,referenceRecord:i}=v(n,t);if(s)return I(r,{...t,referenceRecord:{...t.referenceRecord,...i}})},I=(e,t)=>{for(const n of e)if("endpoint"===n.type){const e=T(n,t);if(e)return e}else if("error"===n.type)C(n,t);else{if("tree"!==n.type)throw new l(`Unknown endpoint rule: ${n}`);{const e=$(n,t);if(e)return e}}throw new l("Rules evaluation failed")},k=(e,t)=>{const{endpointParams:n,logger:r}=t,{parameters:s,rules:i}=e;t.logger?.debug?.(`${u} Initial EndpointParams: ${d(n)}`);const a=Object.entries(s).filter((([,e])=>null!=e.default)).map((([e,t])=>[e,t.default]));if(a.length>0)for(const[e,t]of a)n[e]=n[e]??t;const o=Object.entries(s).filter((([,e])=>e.required)).map((([e])=>e));for(const e of o)if(null==n[e])throw new l(`Missing required parameter: '${e}'`);const c=I(i,{endpointParams:n,logger:r,referenceRecord:{}});return t.logger?.debug?.(`${u} Resolved endpoint: ${d(c)}`),c}},6089:(e,t,n)=>{n.d(t,{u:()=>s,t:()=>i});var r=n(9830);const s=e=>e[r.Vf]||(e[r.Vf]={}),i=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t}},7100:(e,t,n)=>{var r;n.d(t,{Y:()=>S,Gz:()=>s,bp:()=>c,L0:()=>i,QJ:()=>o,Df:()=>l,l5:()=>f,G8:()=>u,XP:()=>p,ok:()=>m,XS:()=>g,cm:()=>r,ru:()=>w,jh:()=>d,Rn:()=>h}),function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"}(r||(r={}));const s=3,i=r.STANDARD;var a=n(7753);class o{constructor(e){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8;const t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise((e=>setTimeout(e,t)))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp)return void(this.lastTimestamp=e);const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=e}updateClientSendingRate(e){let t;if(this.updateMeasuredRate(),(0,a.Qb)(e)){const e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());const n=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(n)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),t=Math.floor(2*e)/2;if(this.requestCount++,t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}const c=100,u=2e4,d=500,l=500,g=5,h=10,p=1,f="amz-sdk-invocation-id",m="amz-sdk-request",y=({retryDelay:e,retryCount:t,retryCost:n})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(u,e),getRetryCost:()=>n});class w{constructor(e){this.maxAttempts=e,this.mode=r.STANDARD,this.capacity=l,this.retryBackoffStrategy=(()=>{let e=c;return{computeNextBackoffDelay:t=>Math.floor(Math.min(u,Math.random()*2**t*e)),setDelayBase:t=>{e=t}}})(),this.maxAttemptsProvider="function"==typeof e?e:async()=>e}async acquireInitialRetryToken(e){return y({retryDelay:c,retryCount:0})}async refreshRetryTokenForRetry(e,t){const n=await this.getMaxAttempts();if(this.shouldRetry(e,t,n)){const n=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===n?d:c);const r=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),s=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,r):r,i=this.getCapacityCost(n);return this.capacity-=i,y({retryDelay:s,retryCount:e.getRetryCount()+1,retryCost:i})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(l,this.capacity+(e.getRetryCost()??p))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return console.warn(`Max attempts provider could not resolve. Using default of ${s}`),s}}shouldRetry(e,t,n){return e.getRetryCount()+1<n&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return"TRANSIENT"===e?h:g}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}class S{constructor(e,t){this.maxAttemptsProvider=e,this.mode=r.ADAPTIVE;const{rateLimiter:n}=t??{};this.rateLimiter=n??new o,this.standardRetryStrategy=new w(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=657,exports.ids=[657],exports.modules={5657:(e,t,r)=>{r.d(t,{CreateTokenCommand:()=>Le,SSOOIDCClient:()=>de});var o=r(1568),s=r(9716),n=r(1838),i=r(9232),a=r(4250),c=r(1248),d=r(4890),p=r(7388),l=r(3165),u=r(4285),h=r(7421),m=r(6089);const y=async(e,t,r)=>({operation:(0,m.u)(t).operation,region:await(0,m.t)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),w=e=>{const t=[];switch(e.operation){case"CreateToken":case"RegisterClient":case"StartDeviceAuthorization":t.push({schemeId:"smithy.api#noAuth"});break;default:t.push(function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}(e))}return t},f={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var x=r(1429),g=r(5968),b=r(9838),v=r(194),E=r(4012),S=r(80),I=r(9048),P=r(7100),O=r(7771),$=r(30),k=r(5409),j=r(8304),T=r(6445),C=r(8390);const _="required",D="fn",A="argv",K="ref",z=!0,R="isSet",M="booleanEquals",U="error",q="endpoint",F="tree",H="PartitionResult",G="getAttr",V={[_]:!1,type:"String"},B={[_]:!0,default:!1,type:"Boolean"},J={[K]:"Endpoint"},Z={[D]:M,[A]:[{[K]:"UseFIPS"},!0]},L={[D]:M,[A]:[{[K]:"UseDualStack"},!0]},N={},Y={[D]:G,[A]:[{[K]:H},"supportsFIPS"]},W={[K]:H},X={[D]:M,[A]:[!0,{[D]:G,[A]:[W,"supportsDualStack"]}]},Q=[Z],ee=[L],te=[{[K]:"Region"}],re={version:"1.0",parameters:{Region:V,UseDualStack:B,UseFIPS:B,Endpoint:V},rules:[{conditions:[{[D]:R,[A]:[J]}],rules:[{conditions:Q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:U},{conditions:ee,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:U},{endpoint:{url:J,properties:N,headers:N},type:q}],type:F},{conditions:[{[D]:R,[A]:te}],rules:[{conditions:[{[D]:"aws.partition",[A]:te,assign:H}],rules:[{conditions:[Z,L],rules:[{conditions:[{[D]:M,[A]:[z,Y]},X],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:N,headers:N},type:q}],type:F},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:U}],type:F},{conditions:Q,rules:[{conditions:[{[D]:M,[A]:[Y,z]}],rules:[{conditions:[{[D]:"stringEquals",[A]:[{[D]:G,[A]:[W,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:N,headers:N},type:q},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:N,headers:N},type:q}],type:F},{error:"FIPS is enabled but this partition does not support FIPS",type:U}],type:F},{conditions:ee,rules:[{conditions:[X],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:N,headers:N},type:q}],type:F},{error:"DualStack is enabled but this partition does not support DualStack",type:U}],type:F},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:N,headers:N},type:q}],type:F}],type:F},{error:"Invalid Configuration: Missing Region",type:U}]},oe=new C.kS({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),se=(e,t={})=>oe.get(e,(()=>(0,C.sO)(re,{endpointParams:e,logger:t.logger})));C.mw.aws=T.UF;var ne=r(2780);var ie=r(7329),ae=r(5282);const ce=e=>{const t=e.httpAuthSchemes;let r=e.httpAuthSchemeProvider,o=e.credentials;return{setHttpAuthScheme(e){const r=t.findIndex((t=>t.schemeId===e.schemeId));-1===r?t.push(e):t.splice(r,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){r=e},httpAuthSchemeProvider:()=>r,setCredentials(e){o=e},credentials:()=>o}};class de extends u.Kj{constructor(...[e]){const t=(e=>{(0,u.I9)(process.version);const t=(0,ne.I)(e),r=()=>t().then(u.lT),o=(e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??k.E,base64Encoder:e?.base64Encoder??k.n,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??se,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??w,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new O.f2},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new c.mR}],logger:e?.logger??new u.N4,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??$.D,utf8Decoder:e?.utf8Decoder??j.ar,utf8Encoder:e?.utf8Encoder??j.Pq}))(e);return(0,x.I)(process.version),{...o,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??I.n,credentialDefaultProvider:e?.credentialDefaultProvider??g.v6,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,b.mJ)({serviceId:o.serviceId,clientVersion:"3.665.0"}),maxAttempts:e?.maxAttempts??(0,E.Z)(l.qs),region:e?.region??(0,E.Z)(a.GG,a.zH),requestHandler:S.$c.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,E.Z)({...l.kN,default:async()=>(await r()).retryMode||P.L0}),sha256:e?.sha256??v.V.bind(null,"sha256"),streamCollector:e?.streamCollector??S.kv,useDualstackEndpoint:e?.useDualstackEndpoint??(0,E.Z)(a.e$),useFipsEndpoint:e?.useFipsEndpoint??(0,E.Z)(a.Ko),userAgentAppId:e?.userAgentAppId??(0,E.Z)(b.hV)}})(e||{}),r=(m=t,{...m,useDualstackEndpoint:m.useDualstackEndpoint??!1,useFipsEndpoint:m.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"});var m;const f=(0,i.Dc)(r),T=(0,l.$z)(f),C=(0,a.TD)(T),_=(0,o.OV)(C);var D;const A=((e,t)=>{const r={...(0,ie.Rq)(e),...(0,u.xA)(e),...(0,ae.eS)(e),...ce(e)};return t.forEach((e=>e.configure(r))),{...e,...(0,ie.$3)(r),...(0,u.uv)(r),...(0,ae.jt)(r),...(o=r,{httpAuthSchemes:o.httpAuthSchemes(),httpAuthSchemeProvider:o.httpAuthSchemeProvider(),credentials:o.credentials()})};var o})((D=(0,p.Co)(_),{...(0,h.h)(D)}),e?.extensions||[]);super(A),this.config=A,this.middlewareStack.use((0,i.sM)(this.config)),this.middlewareStack.use((0,l.ey)(this.config)),this.middlewareStack.use((0,d.vK)(this.config)),this.middlewareStack.use((0,o.TC)(this.config)),this.middlewareStack.use((0,s.Y7)(this.config)),this.middlewareStack.use((0,n.n4)(this.config)),this.middlewareStack.use((0,c.wB)(this.config,{httpAuthSchemeParametersProvider:y,identityProviderConfigProvider:async e=>new c.h$({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use((0,c.lW)(this.config))}destroy(){super.destroy()}}var pe=r(7083);class le extends u.TJ{constructor(e){super(e),Object.setPrototypeOf(this,le.prototype)}}class ue extends le{constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,ue.prototype),this.error=e.error,this.error_description=e.error_description}}class he extends le{constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e}),this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,he.prototype),this.error=e.error,this.error_description=e.error_description}}class me extends le{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,me.prototype),this.error=e.error,this.error_description=e.error_description}}class ye extends le{constructor(e){super({name:"InternalServerException",$fault:"server",...e}),this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,ye.prototype),this.error=e.error,this.error_description=e.error_description}}class we extends le{constructor(e){super({name:"InvalidClientException",$fault:"client",...e}),this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,we.prototype),this.error=e.error,this.error_description=e.error_description}}class fe extends le{constructor(e){super({name:"InvalidGrantException",$fault:"client",...e}),this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,fe.prototype),this.error=e.error,this.error_description=e.error_description}}class xe extends le{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,xe.prototype),this.error=e.error,this.error_description=e.error_description}}class ge extends le{constructor(e){super({name:"InvalidScopeException",$fault:"client",...e}),this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,ge.prototype),this.error=e.error,this.error_description=e.error_description}}class be extends le{constructor(e){super({name:"SlowDownException",$fault:"client",...e}),this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,be.prototype),this.error=e.error,this.error_description=e.error_description}}class ve extends le{constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e}),this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,ve.prototype),this.error=e.error,this.error_description=e.error_description}}class Ee extends le{constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e}),this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,Ee.prototype),this.error=e.error,this.error_description=e.error_description}}class Se extends le{constructor(e){super({name:"InvalidRequestRegionException",$fault:"client",...e}),this.name="InvalidRequestRegionException",this.$fault="client",Object.setPrototypeOf(this,Se.prototype),this.error=e.error,this.error_description=e.error_description,this.endpoint=e.endpoint,this.region=e.region}}class Ie extends le{constructor(e){super({name:"InvalidClientMetadataException",$fault:"client",...e}),this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,Ie.prototype),this.error=e.error,this.error_description=e.error_description}}class Pe extends le{constructor(e){super({name:"InvalidRedirectUriException",$fault:"client",...e}),this.name="InvalidRedirectUriException",this.$fault="client",Object.setPrototypeOf(this,Pe.prototype),this.error=e.error,this.error_description=e.error_description}}const Oe=e=>({...e,...e.clientSecret&&{clientSecret:u.$H},...e.refreshToken&&{refreshToken:u.$H},...e.codeVerifier&&{codeVerifier:u.$H}}),$e=e=>({...e,...e.accessToken&&{accessToken:u.$H},...e.refreshToken&&{refreshToken:u.$H},...e.idToken&&{idToken:u.$H}});var ke=r(2104);const je=async(e,t)=>{const r=(0,c.lI)(e,t);let o;return r.bp("/token"),o=JSON.stringify((0,u.s)(e,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:e=>(0,u.Ss)(e)})),r.m("POST").h({"content-type":"application/json"}).b(o),r.build()},Te=async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return Ce(e,t);const r=(0,u.Tj)({$metadata:Ze(e)}),o=(0,u.Y0)((0,u.Xk)(await(0,ke.Y2)(e.body,t)),"body"),s=(0,u.s)(o,{accessToken:u.lK,expiresIn:u.ET,idToken:u.lK,refreshToken:u.lK,tokenType:u.lK});return Object.assign(r,s),r},Ce=async(e,t)=>{const r={...e,body:await(0,ke.CG)(e.body,t)},o=(0,ke.cJ)(e,r.body);switch(o){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await De(r,t);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await Ae(r,t);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await Ke(r,t);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await ze(r,t);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await Re(r,t);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await Ue(r,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Fe(r,t);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await Ge(r,t);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await Ve(r,t);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await Be(r,t);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await Je(r,t);case"InvalidRequestRegionException":case"com.amazonaws.ssooidc#InvalidRequestRegionException":throw await He(r,t);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await Me(r,t);case"InvalidRedirectUriException":case"com.amazonaws.ssooidc#InvalidRedirectUriException":throw await qe(r,t);default:const s=r.body;return _e({output:e,parsedBody:s,errorCode:o})}},_e=(0,u.jr)(le),De=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,s=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,s);const n=new ue({$metadata:Ze(e),...r});return(0,u.Mw)(n,e.body)},Ae=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,s=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,s);const n=new he({$metadata:Ze(e),...r});return(0,u.Mw)(n,e.body)},Ke=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,s=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,s);const n=new me({$metadata:Ze(e),...r});return(0,u.Mw)(n,e.body)},ze=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,s=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,s);const n=new ye({$metadata:Ze(e),...r});return(0,u.Mw)(n,e.body)},Re=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,s=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,s);const n=new we({$metadata:Ze(e),...r});return(0,u.Mw)(n,e.body)},Me=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,s=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,s);const n=new Ie({$metadata:Ze(e),...r});return(0,u.Mw)(n,e.body)},Ue=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,s=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,s);const n=new fe({$metadata:Ze(e),...r});return(0,u.Mw)(n,e.body)},qe=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,s=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,s);const n=new Pe({$metadata:Ze(e),...r});return(0,u.Mw)(n,e.body)},Fe=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,s=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,s);const n=new xe({$metadata:Ze(e),...r});return(0,u.Mw)(n,e.body)},He=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,s=(0,u.s)(o,{endpoint:u.lK,error:u.lK,error_description:u.lK,region:u.lK});Object.assign(r,s);const n=new Se({$metadata:Ze(e),...r});return(0,u.Mw)(n,e.body)},Ge=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,s=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,s);const n=new ge({$metadata:Ze(e),...r});return(0,u.Mw)(n,e.body)},Ve=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,s=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,s);const n=new be({$metadata:Ze(e),...r});return(0,u.Mw)(n,e.body)},Be=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,s=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,s);const n=new ve({$metadata:Ze(e),...r});return(0,u.Mw)(n,e.body)},Je=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,s=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,s);const n=new Ee({$metadata:Ze(e),...r});return(0,u.Mw)(n,e.body)},Ze=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"]});class Le extends(u.uB.classBuilder().ep(f).m((function(e,t,r,o){return[(0,pe.TM)(r,this.serialize,this.deserialize),(0,p.rD)(r,e.getEndpointParameterInstructions())]})).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(Oe,$e).ser(je).de(Te).build()){}},2104:(e,t,r)=>{r.d(t,{CG:()=>n,Y2:()=>s,cJ:()=>i});var o=r(3485);const s=(e,t)=>(0,o.w)(e,t).then((e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw"SyntaxError"===t?.name&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}})),n=async(e,t)=>{const r=await s(e,t);return r.message=r.message??r.Message,r},i=(e,t)=>{const r=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},o=(s=e.headers,"x-amzn-errortype",Object.keys(s).find((e=>e.toLowerCase()==="x-amzn-errortype".toLowerCase())));var s;return void 0!==o?r(e.headers[o]):void 0!==t.code?r(t.code):void 0!==t.__type?r(t.__type):void 0}}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=79,exports.ids=[79],exports.modules={3079:(s,e,o)=>{o.d(e,{AssumeRoleCommand:()=>t.Q,STSClient:()=>d.i});var t=o(17),d=o(6755)}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=973,exports.ids=[973],exports.modules={4973:(e,t,r)=>{r.d(t,{getDefaultRoleAssumer:()=>A,getDefaultRoleAssumerWithWebIdentity:()=>C});var n=r(17),s=r(7388),i=r(7083),o=r(4285),c=r(8468),a=r(3469),l=r(1593);class d extends(o.uB.classBuilder().ep(c.S).m((function(e,t,r,n){return[(0,i.TM)(r,this.serialize,this.deserialize),(0,s.rD)(r,e.getEndpointParameterInstructions())]})).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").f(a.KT,a.AA).ser(l.$3).de(l.MV).build()){}const u="us-east-1",g=e=>{if("string"==typeof e?.Arn){const t=e.Arn.split(":");if(t.length>4&&""!==t[4])return t[4]}},p=async(e,t,r)=>{const n="function"==typeof e?await e():e,s="function"==typeof t?await t():t;return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${n} (provider)`,`${s} (parent client)`,`${u} (STS default)`),n??s??u},f=e=>"h2"===e?.metadata?.handlerProtocol;var S=r(6755);const y=(e,t)=>t?class extends e{constructor(e){super(e);for(const e of t)this.middlewareStack.use(e)}}:e,A=(e={},t)=>((e,t)=>{let r,s;return async(i,o)=>{if(s=i,!r){const{logger:n=e?.parentClientConfig?.logger,region:i,requestHandler:o=e?.parentClientConfig?.requestHandler,credentialProviderLogger:c}=e,a=await p(i,e?.parentClientConfig?.region,c),l=!f(o);r=new t({credentialDefaultProvider:()=>async()=>s,region:a,requestHandler:l?o:void 0,logger:n})}const{Credentials:c,AssumedRoleUser:a}=await r.send(new n.Q(o));if(!c||!c.AccessKeyId||!c.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);const l=g(a);return{accessKeyId:c.AccessKeyId,secretAccessKey:c.SecretAccessKey,sessionToken:c.SessionToken,expiration:c.Expiration,...c.CredentialScope&&{credentialScope:c.CredentialScope},...l&&{accountId:l}}}})(e,y(S.i,t)),C=(e={},t)=>((e,t)=>{let r;return async n=>{if(!r){const{logger:n=e?.parentClientConfig?.logger,region:s,requestHandler:i=e?.parentClientConfig?.requestHandler,credentialProviderLogger:o}=e,c=await p(s,e?.parentClientConfig?.region,o),a=!f(i);r=new t({region:c,requestHandler:a?i:void 0,logger:n})}const{Credentials:s,AssumedRoleUser:i}=await r.send(new d(n));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);const o=g(i);return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,...s.CredentialScope&&{credentialScope:s.CredentialScope},...o&&{accountId:o}}}})(e,y(S.i,t))}};
@@ -1,8 +0,0 @@
1
- /**
2
- * @license
3
- * Lodash <https://lodash.com/>
4
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
5
- * Released under MIT license <https://lodash.com/license>
6
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
7
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
8
- */