@mongosh/node-runtime-worker-thread 2.2.12 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -247,6 +247,10 @@
247
247
  * MIT Licensed
248
248
  */
249
249
 
250
+ /*! fetch-blob. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
251
+
252
+ /*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
253
+
250
254
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
251
255
 
252
256
  /**
@@ -257,3 +261,11 @@
257
261
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
258
262
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
259
263
  */
264
+
265
+ /**
266
+ * @license
267
+ * web-streams-polyfill v3.3.3
268
+ * Copyright 2024 Mattias Buelens, Diwank Singh Tomer and other contributors.
269
+ * This code is released under the MIT license.
270
+ * SPDX-License-Identifier: MIT
271
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mongosh/node-runtime-worker-thread",
3
- "version": "2.2.12",
3
+ "version": "2.3.0",
4
4
  "description": "MongoDB shell runtime that lives in a worker thread",
5
5
  "homepage": "https://github.com/mongodb-js/mongosh",
6
6
  "license": "Apache-2.0",
@@ -34,14 +34,14 @@
34
34
  "reformat": "npm run prettier -- --write . && npm run eslint --fix"
35
35
  },
36
36
  "devDependencies": {
37
- "@mongodb-js/eslint-config-mongosh": "2.2.12",
37
+ "@mongodb-js/eslint-config-mongosh": "2.3.0",
38
38
  "@mongodb-js/prettier-config-devtools": "^1.0.1",
39
- "@mongodb-js/tsconfig-mongosh": "2.2.12",
40
- "@mongosh/browser-runtime-core": "2.2.12",
41
- "@mongosh/browser-runtime-electron": "2.2.12",
42
- "@mongosh/service-provider-core": "2.2.12",
43
- "@mongosh/service-provider-server": "2.2.12",
44
- "@mongosh/types": "2.2.12",
39
+ "@mongodb-js/tsconfig-mongosh": "2.3.0",
40
+ "@mongosh/browser-runtime-core": "2.3.0",
41
+ "@mongosh/browser-runtime-electron": "2.3.0",
42
+ "@mongosh/service-provider-core": "2.3.0",
43
+ "@mongosh/service-provider-server": "2.3.0",
44
+ "@mongosh/types": "2.3.0",
45
45
  "bson": "^6.7.0",
46
46
  "depcheck": "^1.4.3",
47
47
  "eslint": "^7.25.0",
@@ -52,7 +52,7 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "interruptor": "^1.0.1",
55
- "system-ca": "^2.0.0"
55
+ "system-ca": "^2.0.1"
56
56
  },
57
- "gitHead": "aaec23a39883d89cfae79e379b565593eca908f8"
57
+ "gitHead": "2013159f06f902b4e9a2060df411c6b5646d49d4"
58
58
  }
package/dist/109.js DELETED
@@ -1 +0,0 @@
1
- exports.id=109,exports.ids=[109],exports.modules={66792:(t,e,n)=>{"use strict";n.d(e,{X:()=>STSClient});var i=n(37493),s=n(70183),o=n(23703),r=n(48435),a=n(22144),l=n(68424),c=n(89362),u=n(75795),d=n(94726),p=n(51630),h=n(16301),f=n(95773);const g=async(t,e,n)=>({operation:(0,f.J)(e).operation,region:await(0,f.$)(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});const 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},x=t=>{const e=(n=t,{...n,stsClientCtor:STSClient});var n;return{...(0,h.K)(e)}};var b=n(69337);const E="3.529.1",y=t=>()=>Promise.resolve().then(n.bind(n,66495)).then((({defaultProvider:e})=>e(t)()));var v=n(84629),P=n(95071),N=n(95640),A=n(87954),w=n(46807),T=n(11728),I=n(91743),S=n(88383),O=n(53918),C=n(76954),k=n(7242),D=n(92718);const $="required",j="type",R="fn",V="argv",F="ref",M=!0,L="booleanEquals",_="stringEquals",z="sigv4",B="us-east-1",Y="endpoint",G="https://sts.{Region}.{PartitionResult#dnsSuffix}",W="tree",U="error",X="getAttr",q={[$]:!1,[j]:"String"},H={[$]:!0,default:!1,[j]:"Boolean"},K={[F]:"Endpoint"},Z={[R]:"isSet",[V]:[{[F]:"Region"}]},J={[F]:"Region"},Q={[R]:"aws.partition",[V]:[J],assign:"PartitionResult"},tt={[F]:"UseFIPS"},et={[F]:"UseDualStack"},nt={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:z,signingName:"sts",signingRegion:B}]},headers:{}},it={},st={conditions:[{[R]:_,[V]:[J,"aws-global"]}],[Y]:nt,[j]:Y},ot={[R]:L,[V]:[tt,!0]},rt={[R]:L,[V]:[et,!0]},at={[R]:X,[V]:[{[F]:"PartitionResult"},"supportsFIPS"]},lt={[F]:"PartitionResult"},ct={[R]:L,[V]:[!0,{[R]:X,[V]:[lt,"supportsDualStack"]}]},ut=[{[R]:"isSet",[V]:[K]}],dt=[ot],pt=[rt],ht={version:"1.0",parameters:{Region:q,UseDualStack:H,UseFIPS:H,Endpoint:q,UseGlobalEndpoint:H},rules:[{conditions:[{[R]:L,[V]:[{[F]:"UseGlobalEndpoint"},M]},{[R]:"not",[V]:ut},Z,Q,{[R]:L,[V]:[tt,false]},{[R]:L,[V]:[et,false]}],rules:[{conditions:[{[R]:_,[V]:[J,"ap-northeast-1"]}],endpoint:nt,[j]:Y},{conditions:[{[R]:_,[V]:[J,"ap-south-1"]}],endpoint:nt,[j]:Y},{conditions:[{[R]:_,[V]:[J,"ap-southeast-1"]}],endpoint:nt,[j]:Y},{conditions:[{[R]:_,[V]:[J,"ap-southeast-2"]}],endpoint:nt,[j]:Y},st,{conditions:[{[R]:_,[V]:[J,"ca-central-1"]}],endpoint:nt,[j]:Y},{conditions:[{[R]:_,[V]:[J,"eu-central-1"]}],endpoint:nt,[j]:Y},{conditions:[{[R]:_,[V]:[J,"eu-north-1"]}],endpoint:nt,[j]:Y},{conditions:[{[R]:_,[V]:[J,"eu-west-1"]}],endpoint:nt,[j]:Y},{conditions:[{[R]:_,[V]:[J,"eu-west-2"]}],endpoint:nt,[j]:Y},{conditions:[{[R]:_,[V]:[J,"eu-west-3"]}],endpoint:nt,[j]:Y},{conditions:[{[R]:_,[V]:[J,"sa-east-1"]}],endpoint:nt,[j]:Y},{conditions:[{[R]:_,[V]:[J,B]}],endpoint:nt,[j]:Y},{conditions:[{[R]:_,[V]:[J,"us-east-2"]}],endpoint:nt,[j]:Y},{conditions:[{[R]:_,[V]:[J,"us-west-1"]}],endpoint:nt,[j]:Y},{conditions:[{[R]:_,[V]:[J,"us-west-2"]}],endpoint:nt,[j]:Y},{endpoint:{url:G,properties:{authSchemes:[{name:z,signingName:"sts",signingRegion:"{Region}"}]},headers:it},[j]:Y}],[j]:W},{conditions:ut,rules:[{conditions:dt,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[j]:U},{conditions:pt,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[j]:U},{endpoint:{url:K,properties:it,headers:it},[j]:Y}],[j]:W},{conditions:[Z],rules:[{conditions:[Q],rules:[{conditions:[ot,rt],rules:[{conditions:[{[R]:L,[V]:[M,at]},ct],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:it,headers:it},[j]:Y}],[j]:W},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[j]:U}],[j]:W},{conditions:dt,rules:[{conditions:[{[R]:L,[V]:[at,M]}],rules:[{conditions:[{[R]:_,[V]:[{[R]:X,[V]:[lt,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:it,headers:it},[j]:Y},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:it,headers:it},[j]:Y}],[j]:W},{error:"FIPS is enabled but this partition does not support FIPS",[j]:U}],[j]:W},{conditions:pt,rules:[{conditions:[ct],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:it,headers:it},[j]:Y}],[j]:W},{error:"DualStack is enabled but this partition does not support DualStack",[j]:U}],[j]:W},st,{endpoint:{url:G,properties:it,headers:it},[j]:Y}],[j]:W}],[j]:W},{error:"Invalid Configuration: Missing Region",[j]:U}]},ft=(t,e={})=>(0,D.B1)(ht,{endpointParams:t,logger:e.logger});var gt=n(66918);const mt=t=>{(0,p.H_)(process.version);const e=(0,gt.j)(t),n=()=>e().then(p.jv),i=(t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??C.G,base64Encoder:t?.base64Encoder??C.s,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 P.V},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new l.oH}],logger:t?.logger??new p.vk,serviceId:t?.serviceId??"STS",urlParser:t?.urlParser??O.e,utf8Decoder:t?.utf8Decoder??k.$x,utf8Encoder:t?.utf8Encoder??k.GZ}))(t);return(0,v.H)(process.version),{...i,...t,runtime:"node",defaultsMode:e,bodyLengthChecker:t?.bodyLengthChecker??I.W,credentialDefaultProvider:t?.credentialDefaultProvider??y,defaultUserAgentProvider:t?.defaultUserAgentProvider??(0,N.fV)({serviceId:i.serviceId,clientVersion:E}),httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4")||(async t=>await y(t?.__config||{})()),signer:new P.V},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new l.oH}],maxAttempts:t?.maxAttempts??(0,w.M)(d.Hs),region:t?.region??(0,w.M)(a._c,a.zb),requestHandler:T.NA.create(t?.requestHandler??n),retryMode:t?.retryMode??(0,w.M)({...d.aK,default:async()=>(await n()).retryMode||S.CA}),sha256:t?.sha256??A.k.bind(null,"sha256"),streamCollector:t?.streamCollector??T.CF,useDualstackEndpoint:t?.useDualstackEndpoint??(0,w.M)(a.G7),useFipsEndpoint:t?.useFipsEndpoint??(0,w.M)(a.NL)}};var xt=n(31716),bt=n(25640);const Et=t=>{const e=t.httpAuthSchemes;let n=t.httpAuthSchemeProvider,i=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){i=t},credentials:()=>i}};class STSClient extends p.KU{constructor(...[t]){const e=mt(t||{}),n=(0,b.z)(e),h=(0,a.Xb)(n),f=(0,u.uW)(h),g=(0,d.BC)(f),m=(0,i.S8)(g),E=(0,r.er)(m),y=((t,e)=>{const n={...(0,xt.GW)(t),...(0,p.kE)(t),...(0,bt.cA)(t),...Et(t)};return e.forEach((t=>t.configure(n))),{...t,...(0,xt.A1)(n),...(0,p.SQ)(n),...(0,bt.AO)(n),...(i=n,{httpAuthSchemes:i.httpAuthSchemes(),httpAuthSchemeProvider:i.httpAuthSchemeProvider(),credentials:i.credentials()})};var i})(x(E),t?.extensions||[]);super(y),this.config=y,this.middlewareStack.use((0,d.NQ)(this.config)),this.middlewareStack.use((0,c.VG)(this.config)),this.middlewareStack.use((0,i.G2)(this.config)),this.middlewareStack.use((0,s.cV)(this.config)),this.middlewareStack.use((0,o.eV)(this.config)),this.middlewareStack.use((0,r.XJ)(this.config)),this.middlewareStack.use((0,l.tZ)(this.config,{httpAuthSchemeParametersProvider:this.getDefaultHttpAuthSchemeParametersProvider(),identityProviderConfigProvider:this.getIdentityProviderConfigProvider()})),this.middlewareStack.use((0,l.aZ)(this.config))}destroy(){super.destroy()}getDefaultHttpAuthSchemeParametersProvider(){return g}getIdentityProviderConfigProvider(){return async t=>new l.K5({"aws.auth#sigv4":t.credentials})}}},31388:(t,e,n)=>{"use strict";n.d(e,{x:()=>AssumeRoleCommand});var i=n(75795),s=n(43080),o=n(51630),r=n(69337),a=n(20782),l=n(70930);class AssumeRoleCommand extends(o.mY.classBuilder().ep({...r.q}).m((function(t,e,n,o){return[(0,s.p2)(n,this.serialize,this.deserialize),(0,i.a3)(n,t.getEndpointParameterInstructions())]})).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").f(void 0,a.TE).ser(l.db).de(l.oB).build()){}},69337:(t,e,n)=>{"use strict";n.d(e,{q:()=>s,z:()=>i});const i=t=>({...t,useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,defaultSigningName:"sts"}),s={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"}}},41968:(t,e,n)=>{"use strict";n.d(e,{A:()=>STSServiceException});var i=n(51630);class STSServiceException extends i.sI{constructor(t){super(t),Object.setPrototypeOf(this,STSServiceException.prototype)}}},20782:(t,e,n)=>{"use strict";n.d(e,{AK:()=>RegionDisabledException,Br:()=>ExpiredTokenException,Cz:()=>a,Dk:()=>IDPCommunicationErrorException,Lg:()=>InvalidAuthorizationMessageException,TE:()=>r,VS:()=>MalformedPolicyDocumentException,WE:()=>PackedPolicyTooLargeException,b4:()=>l,bu:()=>IDPRejectedClaimException,fl:()=>InvalidIdentityTokenException});var i=n(51630),s=n(41968);class ExpiredTokenException extends s.A{constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,ExpiredTokenException.prototype)}}class MalformedPolicyDocumentException extends s.A{constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,MalformedPolicyDocumentException.prototype)}}class PackedPolicyTooLargeException extends s.A{constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t}),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,PackedPolicyTooLargeException.prototype)}}class RegionDisabledException extends s.A{constructor(t){super({name:"RegionDisabledException",$fault:"client",...t}),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,RegionDisabledException.prototype)}}class IDPRejectedClaimException extends s.A{constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t}),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,IDPRejectedClaimException.prototype)}}class InvalidIdentityTokenException extends s.A{constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t}),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,InvalidIdentityTokenException.prototype)}}class IDPCommunicationErrorException extends s.A{constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t}),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,IDPCommunicationErrorException.prototype)}}class InvalidAuthorizationMessageException extends s.A{constructor(t){super({name:"InvalidAuthorizationMessageException",$fault:"client",...t}),this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,InvalidAuthorizationMessageException.prototype)}}const o=t=>({...t,...t.SecretAccessKey&&{SecretAccessKey:i.oc}}),r=t=>({...t,...t.Credentials&&{Credentials:o(t.Credentials)}}),a=t=>({...t,...t.WebIdentityToken&&{WebIdentityToken:i.oc}}),l=t=>({...t,...t.Credentials&&{Credentials:o(t.Credentials)}})},70930:(t,e,n)=>{"use strict";n.d(e,{oB:()=>h,l$:()=>f,db:()=>d,pO:()=>p});var i=n(51630),s=n(22215),o=n(1742);const r=(t,e)=>(0,o.J)(t,e).then((t=>{if(t.length){const e=new s.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)}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,i.sT)(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(25640),c=n(20782),u=n(41968);const d=async(t,e)=>{const n=q;let i;return i=Dt({...A(t,e),[K]:J,[It]:H}),X(e,n,"/",void 0,i)},p=async(t,e)=>{const n=q;let i;return i=Dt({...w(t,e),[K]:et,[It]:H}),X(e,n,"/",void 0,i)},h=async(t,e)=>{if(t.statusCode>=300)return g(t,e);const n=await r(t.body,e);let i={};i=j(n.AssumeRoleResult,e);return{$metadata:W(t),...i}},f=async(t,e)=>{if(t.statusCode>=300)return g(t,e);const n=await r(t.body,e);let i={};i=R(n.AssumeRoleWithWebIdentityResult,e);return{$metadata:W(t),...i}},g=async(t,e)=>{const n={...t,body:await a(t.body,e)},i=$t(t,n.body);switch(i){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 P(n,e);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await N(n,e);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await b(n,e);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await y(n,e);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await x(n,e);case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await E(n,e);default:const s=n.body;return U({output:t,parsedBody:s.Error,errorCode:i})}},m=async(t,e)=>{const n=t.body,s=F(n.Error,e),o=new c.Br({$metadata:W(t),...s});return(0,i.to)(o,n)},x=async(t,e)=>{const n=t.body,s=M(n.Error,e),o=new c.Dk({$metadata:W(t),...s});return(0,i.to)(o,n)},b=async(t,e)=>{const n=t.body,s=L(n.Error,e),o=new c.bu({$metadata:W(t),...s});return(0,i.to)(o,n)},E=async(t,e)=>{const n=t.body,s=_(n.Error,e),o=new c.Lg({$metadata:W(t),...s});return(0,i.to)(o,n)},y=async(t,e)=>{const n=t.body,s=z(n.Error,e),o=new c.fl({$metadata:W(t),...s});return(0,i.to)(o,n)},v=async(t,e)=>{const n=t.body,s=B(n.Error,e),o=new c.VS({$metadata:W(t),...s});return(0,i.to)(o,n)},P=async(t,e)=>{const n=t.body,s=Y(n.Error,e),o=new c.WE({$metadata:W(t),...s});return(0,i.to)(o,n)},N=async(t,e)=>{const n=t.body,s=G(n.Error,e),o=new c.AK({$metadata:W(t),...s});return(0,i.to)(o,n)},A=(t,e)=>{const n={};if(null!=t[xt]&&(n[xt]=t[xt]),null!=t[bt]&&(n[bt]=t[bt]),null!=t[dt]){const i=T(t[dt],e);0===t[dt]?.length&&(n.PolicyArns=[]),Object.entries(i).forEach((([t,e])=>{n[`PolicyArns.${t}`]=e}))}if(null!=t[ut]&&(n[ut]=t[ut]),null!=t[rt]&&(n[rt]=t[rt]),null!=t[At]){const i=D(t[At],e);0===t[At]?.length&&(n.Tags=[]),Object.entries(i).forEach((([t,e])=>{n[`Tags.${t}`]=e}))}if(null!=t[Tt]){const i=k(t[Tt],e);0===t[Tt]?.length&&(n.TransitiveTagKeys=[]),Object.entries(i).forEach((([t,e])=>{n[`TransitiveTagKeys.${t}`]=e}))}if(null!=t[lt]&&(n[lt]=t[lt]),null!=t[Pt]&&(n[Pt]=t[Pt]),null!=t[wt]&&(n[wt]=t[wt]),null!=t[vt]&&(n[vt]=t[vt]),null!=t[ht]){const i=O(t[ht],e);0===t[ht]?.length&&(n.ProvidedContexts=[]),Object.entries(i).forEach((([t,e])=>{n[`ProvidedContexts.${t}`]=e}))}return n},w=(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[ft]&&(n[ft]=t[ft]),null!=t[dt]){const i=T(t[dt],e);0===t[dt]?.length&&(n.PolicyArns=[]),Object.entries(i).forEach((([t,e])=>{n[`PolicyArns.${t}`]=e}))}return null!=t[ut]&&(n[ut]=t[ut]),null!=t[rt]&&(n[rt]=t[rt]),n},T=(t,e)=>{const n={};let i=1;for(const s of t){if(null===s)continue;const t=I(s,e);Object.entries(t).forEach((([t,e])=>{n[`member.${i}.${t}`]=e})),i++}return n},I=(t,e)=>{const n={};return null!=t[Ct]&&(n[Ct]=t[Ct]),n},S=(t,e)=>{const n={};return null!=t[pt]&&(n[pt]=t[pt]),null!=t[ot]&&(n[ot]=t[ot]),n},O=(t,e)=>{const n={};let i=1;for(const e of t){if(null===e)continue;const t=S(e);Object.entries(t).forEach((([t,e])=>{n[`member.${i}.${t}`]=e})),i++}return n},C=(t,e)=>{const n={};return null!=t[ct]&&(n[ct]=t[ct]),null!=t[St]&&(n[St]=t[St]),n},k=(t,e)=>{const n={};let i=1;for(const e of t)null!==e&&(n[`member.${i}`]=e,i++);return n},D=(t,e)=>{const n={};let i=1;for(const e of t){if(null===e)continue;const t=C(e);Object.entries(t).forEach((([t,e])=>{n[`member.${i}.${t}`]=e})),i++}return n},$=(t,e)=>{const n={};return null!=t[Q]&&(n[Q]=(0,i.pY)(t[Q])),null!=t[nt]&&(n[nt]=(0,i.pY)(t[nt])),n},j=(t,e)=>{const n={};return null!=t[st]&&(n[st]=V(t[st],e)),null!=t[tt]&&(n[tt]=$(t[tt])),null!=t[gt]&&(n[gt]=(0,i.AF)(t[gt])),null!=t[vt]&&(n[vt]=(0,i.pY)(t[vt])),n},R=(t,e)=>{const n={};return null!=t[st]&&(n[st]=V(t[st],e)),null!=t[yt]&&(n[yt]=(0,i.pY)(t[yt])),null!=t[tt]&&(n[tt]=$(t[tt])),null!=t[gt]&&(n[gt]=(0,i.AF)(t[gt])),null!=t[mt]&&(n[mt]=(0,i.pY)(t[mt])),null!=t[it]&&(n[it]=(0,i.pY)(t[it])),null!=t[vt]&&(n[vt]=(0,i.pY)(t[vt])),n},V=(t,e)=>{const n={};return null!=t[Z]&&(n[Z]=(0,i.pY)(t[Z])),null!=t[Et]&&(n[Et]=(0,i.pY)(t[Et])),null!=t[Nt]&&(n[Nt]=(0,i.pY)(t[Nt])),null!=t[at]&&(n[at]=(0,i.CE)((0,i.aH)(t[at]))),n},F=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,i.pY)(t[kt])),n},M=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,i.pY)(t[kt])),n},L=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,i.pY)(t[kt])),n},_=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,i.pY)(t[kt])),n},z=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,i.pY)(t[kt])),n},B=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,i.pY)(t[kt])),n},Y=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,i.pY)(t[kt])),n},G=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,i.pY)(t[kt])),n},W=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"]}),U=(0,i.PC)(u.A),X=async(t,e,n,i,s)=>{const{hostname:o,protocol:r="https",port:a,path:c}=await t.endpoint(),u={protocol:r,hostname:o,port:a,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+n:c+n,headers:e};return void 0!==i&&(u.hostname=i),void 0!==s&&(u.body=s),new l.aW(u)},q={"content-type":"application/x-www-form-urlencoded"},H="2011-06-15",K="Action",Z="AccessKeyId",J="AssumeRole",Q="AssumedRoleId",tt="AssumedRoleUser",et="AssumeRoleWithWebIdentity",nt="Arn",it="Audience",st="Credentials",ot="ContextAssertion",rt="DurationSeconds",at="Expiration",lt="ExternalId",ct="Key",ut="Policy",dt="PolicyArns",pt="ProviderArn",ht="ProvidedContexts",ft="ProviderId",gt="PackedPolicySize",mt="Provider",xt="RoleArn",bt="RoleSessionName",Et="SecretAccessKey",yt="SubjectFromWebIdentityToken",vt="SourceIdentity",Pt="SerialNumber",Nt="SessionToken",At="Tags",wt="TokenCode",Tt="TransitiveTagKeys",It="Version",St="Value",Ot="WebIdentityToken",Ct="arn",kt="message",Dt=t=>Object.entries(t).map((([t,e])=>(0,i.jc)(t)+"="+(0,i.jc)(e))).join("&"),$t=(t,e)=>void 0!==e.Error?.Code?e.Error.Code:404==t.statusCode?"NotFound":void 0},22215:(t,e,n)=>{"use strict";const i=n(33325),s=n(43281),o=n(87932);t.exports={XMLParser:s,XMLValidator:i,XMLBuilder:o}},44056:(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",i="["+n+"]["+(n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040")+"]*",s=new RegExp("^"+i+"$");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 i=Object.keys(e),s=i.length;for(let o=0;o<s;o++)t[i[o]]="strict"===n?[e[i[o]]]:e[i[o]]}},e.getValue=function(t){return e.isExist(t)?t:""},e.isName=function(t){const e=s.exec(t);return!(null==e)},e.getAllMatches=function(t,e){const n=[];let i=e.exec(t);for(;i;){const s=[];s.startIndex=e.lastIndex-i[0].length;const o=i.length;for(let t=0;t<o;t++)s.push(i[t]);n.push(s),i=e.exec(t)}return n},e.nameRegexp=i},33325:(t,e,n)=>{"use strict";const i=n(44056),s={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 i=t.substr(n,e-n);if(e>5&&"xml"===i)return f("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({},s,e);const n=[];let l=!1,c=!1;"\ufeff"===t[0]&&(t=t.substr(1));for(let s=0;s<t.length;s++)if("<"===t[s]&&"?"===t[s+1]){if(s+=2,s=r(t,s),s.err)return s}else{if("<"!==t[s]){if(o(t[s]))continue;return f("InvalidChar","char '"+t[s]+"' is not expected.",m(t,s))}{let g=s;if(s++,"!"===t[s]){s=a(t,s);continue}{let x=!1;"/"===t[s]&&(x=!0,s++);let b="";for(;s<t.length&&">"!==t[s]&&" "!==t[s]&&"\t"!==t[s]&&"\n"!==t[s]&&"\r"!==t[s];s++)b+=t[s];if(b=b.trim(),"/"===b[b.length-1]&&(b=b.substring(0,b.length-1),s--),d=b,!i.isName(d)){let e;return e=0===b.trim().length?"Invalid space after '<'.":"Tag '"+b+"' is an invalid name.",f("InvalidTag",e,m(t,s))}const E=u(t,s);if(!1===E)return f("InvalidAttr","Attributes for '"+b+"' have open quote.",m(t,s));let y=E.value;if(s=E.index,"/"===y[y.length-1]){const n=s-y.length;y=y.substring(0,y.length-1);const i=p(y,e);if(!0!==i)return f(i.err.code,i.err.msg,m(t,n+i.err.line));l=!0}else if(x){if(!E.tagClosed)return f("InvalidTag","Closing tag '"+b+"' doesn't have proper closing.",m(t,s));if(y.trim().length>0)return f("InvalidTag","Closing tag '"+b+"' can't have attributes or invalid starting.",m(t,g));{const e=n.pop();if(b!==e.tagName){let n=m(t,e.tagStartPos);return f("InvalidTag","Expected closing tag '"+e.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+b+"'.",m(t,g))}0==n.length&&(c=!0)}}else{const i=p(y,e);if(!0!==i)return f(i.err.code,i.err.msg,m(t,s-y.length+i.err.line));if(!0===c)return f("InvalidXml","Multiple possible root nodes found.",m(t,s));-1!==e.unpairedTags.indexOf(b)||n.push({tagName:b,tagStartPos:g}),l=!0}for(s++;s<t.length;s++)if("<"===t[s]){if("!"===t[s+1]){s++,s=a(t,s);continue}if("?"!==t[s+1])break;if(s=r(t,++s),s.err)return s}else if("&"===t[s]){const e=h(t,s);if(-1==e)return f("InvalidChar","char '&' is not expected.",m(t,s));s=e}else if(!0===c&&!o(t[s]))return f("InvalidXml","Extra text at the end",m(t,s));"<"===t[s]&&s--}}}var d;return l?1==n.length?f("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",m(t,n[0].tagStartPos)):!(n.length>0)||f("InvalidXml","Invalid '"+JSON.stringify(n.map((t=>t.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):f("InvalidXml","Start tag expected.",1)};const l='"',c="'";function u(t,e){let n="",i="",s=!1;for(;e<t.length;e++){if(t[e]===l||t[e]===c)""===i?i=t[e]:i!==t[e]||(i="");else if(">"===t[e]&&""===i){s=!0;break}n+=t[e]}return""===i&&{value:n,index:e,tagClosed:s}}const d=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function p(t,e){const n=i.getAllMatches(t,d),s={};for(let t=0;t<n.length;t++){if(0===n[t][1].length)return f("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 f("InvalidAttr","Attribute '"+n[t][2]+"' is without value.",x(n[t]));if(void 0===n[t][3]&&!e.allowBooleanAttributes)return f("InvalidAttr","boolean attribute '"+n[t][2]+"' is not allowed.",x(n[t]));const i=n[t][2];if(!g(i))return f("InvalidAttr","Attribute '"+i+"' is an invalid name.",x(n[t]));if(s.hasOwnProperty(i))return f("InvalidAttr","Attribute '"+i+"' is repeated.",x(n[t]));s[i]=1}return!0}function h(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 f(t,e,n){return{err:{code:t,msg:e,line:n.line||n,col:n.col}}}function g(t){return i.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}},87932:(t,e,n)=>{"use strict";const i=n(26704),s={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({},s,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 i=this.j2x(t,n+1);return void 0!==t[this.options.textNodeName]&&1===Object.keys(t).length?this.buildTextValNode(t[this.options.textNodeName],e,i.attrStr,n):this.buildObjectNode(i.val,e,i.attrStr,n)}function a(t){return this.options.indentBy.repeat(t)}function l(t){return!!t.startsWith(this.options.attributeNamePrefix)&&t.substr(this.attrPrefixLen)}o.prototype.build=function(t){return this.options.preserveOrder?i(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="",i="";for(let s in t)if(void 0===t[s]);else if(null===t[s])"?"===s[0]?i+=this.indentate(e)+"<"+s+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+s+"/"+this.tagEndChar;else if(t[s]instanceof Date)i+=this.buildTextValNode(t[s],s,"",e);else if("object"!=typeof t[s]){const o=this.isAttribute(s);if(o)n+=this.buildAttrPairStr(o,""+t[s]);else if(s===this.options.textNodeName){let e=this.options.tagValueProcessor(s,""+t[s]);i+=this.replaceEntitiesValue(e)}else i+=this.buildTextValNode(t[s],s,"",e)}else if(Array.isArray(t[s])){const n=t[s].length;let o="";for(let r=0;r<n;r++){const n=t[s][r];void 0===n||(null===n?"?"===s[0]?i+=this.indentate(e)+"<"+s+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+s+"/"+this.tagEndChar:"object"==typeof n?this.options.oneListGroup?o+=this.j2x(n,e+1).val:o+=this.processTextOrObjNode(n,s,e):o+=this.buildTextValNode(n,s,"",e))}this.options.oneListGroup&&(o=this.buildObjectNode(o,s,"",e)),i+=o}else if(this.options.attributesGroupName&&s===this.options.attributesGroupName){const e=Object.keys(t[s]),i=e.length;for(let o=0;o<i;o++)n+=this.buildAttrPairStr(e[o],""+t[s][e[o]])}else i+=this.processTextOrObjNode(t[s],s,e);return{attrStr:n,val:i}},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,i){if(""===t)return"?"===e[0]?this.indentate(i)+"<"+e+n+"?"+this.tagEndChar:this.indentate(i)+"<"+e+n+this.closeTag(e)+this.tagEndChar;{let s="</"+e+this.tagEndChar,o="";return"?"===e[0]&&(o="?",s=""),n&&-1===t.indexOf("<")?this.indentate(i)+"<"+e+n+o+">"+t+s:!1!==this.options.commentPropName&&e===this.options.commentPropName&&0===o.length?this.indentate(i)+`\x3c!--${t}--\x3e`+this.newLine:this.indentate(i)+"<"+e+n+o+this.tagEndChar+t+this.indentate(i)+s}},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,i){if(!1!==this.options.cdataPropName&&e===this.options.cdataPropName)return this.indentate(i)+`<![CDATA[${t}]]>`+this.newLine;if(!1!==this.options.commentPropName&&e===this.options.commentPropName)return this.indentate(i)+`\x3c!--${t}--\x3e`+this.newLine;if("?"===e[0])return this.indentate(i)+"<"+e+n+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(e,t);return s=this.replaceEntitiesValue(s),""===s?this.indentate(i)+"<"+e+n+this.closeTag(e)+this.tagEndChar:this.indentate(i)+"<"+e+n+">"+s+"</"+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},26704:t=>{function e(t,r,a,l){let c="",u=!1;for(let d=0;d<t.length;d++){const p=t[d],h=n(p);let f="";if(f=0===a.length?h:`${a}.${h}`,h===r.textNodeName){let t=p[h];s(f,r)||(t=r.tagValueProcessor(h,t),t=o(t,r)),u&&(c+=l),c+=t,u=!1;continue}if(h===r.cdataPropName){u&&(c+=l),c+=`<![CDATA[${p[h][0][r.textNodeName]}]]>`,u=!1;continue}if(h===r.commentPropName){c+=l+`\x3c!--${p[h][0][r.textNodeName]}--\x3e`,u=!0;continue}if("?"===h[0]){const t=i(p[":@"],r),e="?xml"===h?"":l;let n=p[h][0][r.textNodeName];n=0!==n.length?" "+n:"",c+=e+`<${h}${n}${t}?>`,u=!0;continue}let g=l;""!==g&&(g+=r.indentBy);const m=l+`<${h}${i(p[":@"],r)}`,x=e(p[h],r,f,g);-1!==r.unpairedTags.indexOf(h)?r.suppressUnpairedNode?c+=m+">":c+=m+"/>":x&&0!==x.length||!r.suppressEmptyNode?x&&x.endsWith(">")?c+=m+`>${x}${l}</${h}>`:(c+=m+">",x&&""!==l&&(x.includes("/>")||x.includes("</"))?c+=l+r.indentBy+x+l:c+=x,c+=`</${h}>`):c+=m+"/>",u=!0}return c}function n(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){let n="";if(t&&!e.ignoreAttributes)for(let i in t){let s=e.attributeValueProcessor(i,t[i]);s=o(s,e),!0===s&&e.suppressBooleanAttributes?n+=` ${i.substr(e.attributeNamePrefix.length)}`:n+=` ${i.substr(e.attributeNamePrefix.length)}="${s}"`}return n}function s(t,e){let n=(t=t.substr(0,t.length-e.textNodeName.length-1)).substr(t.lastIndexOf(".")+1);for(let i in e.stopNodes)if(e.stopNodes[i]===t||e.stopNodes[i]==="*."+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 i=e.entities[n];t=t.replace(i.regex,i.val)}return t}t.exports=function(t,n){let i="";return n.format&&n.indentBy.length>0&&(i="\n"),e(t,n,"",i)}},13770:(t,e,n)=>{const i=n(44056);function s(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 i=t[e++];let s="";for(;e<t.length&&t[e]!==i;e++)s+=t[e];return[n,s,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 c(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 u(t){if(i.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 i=1,d=!1,p=!1,h="";for(;e<t.length;e++)if("<"!==t[e]||p)if(">"===t[e]){if(p?"-"===t[e-1]&&"-"===t[e-2]&&(p=!1,i--):i--,0===i)break}else"["===t[e]?d=!0:h+=t[e];else{if(d&&r(t,e))e+=7,[entityName,val,e]=s(t,e+1),-1===val.indexOf("&")&&(n[u(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&&c(t,e))e+=9;else{if(!o)throw new Error("Invalid DOCTYPE");p=!0}i++,h=""}if(0!==i)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:e}}},14238:(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},22848:(t,e,n)=>{"use strict";const i=n(44056),s=n(14499),o=n(13770),r=n(85580);"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,i.nameRegexp);function a(t){const e=Object.keys(t);for(let n=0;n<e.length;n++){const i=e[n];this.lastEntities[i]={regex:new RegExp("&"+i+";","g"),val:t[i]}}}function l(t,e,n,i,s,o,r){if(void 0!==t&&(this.options.trimValues&&!i&&(t=t.trim()),t.length>0)){r||(t=this.replaceEntitiesValue(t));const i=this.options.tagValueProcessor(e,t,n,s,o);if(null==i)return t;if(typeof i!=typeof t||i!==t)return i;if(this.options.trimValues)return y(t,this.options.parseTagValue,this.options.numberParseOptions);return t.trim()===t?y(t,this.options.parseTagValue,this.options.numberParseOptions):t}}function c(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 u=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function d(t,e,n){if(!this.options.ignoreAttributes&&"string"==typeof t){const n=i.getAllMatches(t,u),s=n.length,o={};for(let t=0;t<s;t++){const i=this.resolveNameSpace(n[t][1]);let s=n[t][4],r=this.options.attributeNamePrefix+i;if(i.length)if(this.options.transformAttributeName&&(r=this.options.transformAttributeName(r)),"__proto__"===r&&(r="#__proto__"),void 0!==s){this.options.trimValues&&(s=s.trim()),s=this.replaceEntitiesValue(s);const t=this.options.attributeValueProcessor(i,s,e);o[r]=null==t?s:typeof t!=typeof s||t!==s?t:y(s,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 p=function(t){t=t.replace(/\r\n?/g,"\n");const e=new s("!xml");let n=e,i="",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 s=t.substring(a+2,e).trim();if(this.options.removeNSPrefix){const t=s.indexOf(":");-1!==t&&(s=s.substr(t+1))}this.options.transformTagName&&(s=this.options.transformTagName(s)),n&&(i=this.saveTextToParentTag(i,n,r));const o=r.substring(r.lastIndexOf(".")+1);if(s&&-1!==this.options.unpairedTags.indexOf(s))throw new Error(`Unpaired tag can not be used as closing tag: </${s}>`);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(),i="",a=e}else if("?"===t[a+1]){let e=b(t,a,!1,"?>");if(!e)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,n,r),this.options.ignoreDeclaration&&"?xml"===e.tagName||this.options.ignorePiTags);else{const t=new s(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 s=t.substring(a+4,e-2);i=this.saveTextToParentTag(i,n,r),n.add(this.options.commentPropName,[{[this.options.textNodeName]:s}])}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,s=t.substring(a+9,e);if(i=this.saveTextToParentTag(i,n,r),this.options.cdataPropName)n.add(this.options.cdataPropName,[{[this.options.textNodeName]:s}]);else{let t=this.parseTextData(s,n.tagname,r,!0,!1,!0);null==t&&(t=""),n.add(this.options.textNodeName,t)}a=e+2}else{let o=b(t,a,this.options.removeNSPrefix),l=o.tagName,c=o.tagExp,u=o.attrExpPresent,d=o.closeIndex;this.options.transformTagName&&(l=this.options.transformTagName(l)),n&&i&&"!xml"!==n.tagname&&(i=this.saveTextToParentTag(i,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)a=o.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(l))a=o.closeIndex;else{const n=this.readStopNodeData(t,l,d+1);if(!n)throw new Error(`Unexpected end of ${l}`);a=n.i,e=n.tagContent}const i=new s(l);l!==c&&u&&(i[":@"]=this.buildAttributesMap(c,r,l)),e&&(e=this.parseTextData(e,l,r,!0,u,!0,!0)),r=r.substr(0,r.lastIndexOf(".")),i.add(this.options.textNodeName,e),this.addChild(n,i,r)}else{if(c.length>0&&c.lastIndexOf("/")===c.length-1){"/"===l[l.length-1]?(l=l.substr(0,l.length-1),c=l):c=c.substr(0,c.length-1),this.options.transformTagName&&(l=this.options.transformTagName(l));const t=new s(l);l!==c&&u&&(t[":@"]=this.buildAttributesMap(c,r,l)),this.addChild(n,t,r),r=r.substr(0,r.lastIndexOf("."))}else{const t=new s(l);this.tagsNodeStack.push(n),l!==c&&u&&(t[":@"]=this.buildAttributesMap(c,r,l)),this.addChild(n,t,r),n=t}i="",a=d}}else i+=t[a]}return e.child};function h(t,e,n){const i=this.options.updateTag(e.tagname,n,e[":@"]);!1===i||("string"==typeof i?(e.tagname=i,t.addChild(e)):t.addChild(e))}const f=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 g(t,e,n,i){return t&&(void 0===i&&(i=0===Object.keys(e.child).length),void 0!==(t=this.parseTextData(t,e.tagname,n,!1,!!e[":@"]&&0!==Object.keys(e[":@"]).length,i))&&""!==t&&e.add(this.options.textNodeName,t),t=""),t}function m(t,e,n){const i="*."+n;for(const n in t){const s=t[n];if(i===s||e===s)return!0}return!1}function x(t,e,n,i){const s=t.indexOf(e,n);if(-1===s)throw new Error(i);return s+e.length-1}function b(t,e,n,i=">"){const s=function(t,e,n=">"){let i,s="";for(let o=e;o<t.length;o++){let e=t[o];if(i)e===i&&(i="");else if('"'===e||"'"===e)i=e;else if(e===n[0]){if(!n[1])return{data:s,index:o};if(t[o+1]===n[1])return{data:s,index:o}}else"\t"===e&&(e=" ");s+=e}}(t,e+1,i);if(!s)return;let o=s.data;const r=s.index,a=o.search(/\s/);let l=o,c=!0;if(-1!==a&&(l=o.substr(0,a).replace(/\s\s*$/,""),o=o.substr(a+1)),n){const t=l.indexOf(":");-1!==t&&(l=l.substr(t+1),c=l!==s.data.substr(t+1))}return{tagName:l,tagExp:o,closeIndex:r,attrExpPresent:c}}function E(t,e,n){const i=n;let s=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&&(s--,0===s))return{tagContent:t.substring(i,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 i=b(t,n,">");if(i){(i&&i.tagName)===e&&"/"!==i.tagExp[i.tagExp.length-1]&&s++,n=i.closeIndex}}}function y(t,e,n){if(e&&"string"==typeof t){const e=t.trim();return"true"===e||"false"!==e&&r(t,n)}return i.isExist(t)?t:""}t.exports=class OrderedObjParser{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:"\xa2"},pound:{regex:/&(pound|#163);/g,val:"\xa3"},yen:{regex:/&(yen|#165);/g,val:"\xa5"},euro:{regex:/&(euro|#8364);/g,val:"\u20ac"},copyright:{regex:/&(copy|#169);/g,val:"\xa9"},reg:{regex:/&(reg|#174);/g,val:"\xae"},inr:{regex:/&(inr|#8377);/g,val:"\u20b9"}},this.addExternalEntities=a,this.parseXml=p,this.parseTextData=l,this.resolveNameSpace=c,this.buildAttributesMap=d,this.isItStopNode=m,this.replaceEntitiesValue=f,this.readStopNodeData=E,this.saveTextToParentTag=g,this.addChild=h}}},43281:(t,e,n)=>{const{buildOptions:i}=n(14238),s=n(22848),{prettify:o}=n(64416),r=n(33325);t.exports=class XMLParser{constructor(t){this.externalEntities={},this.options=i(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 s(this.options);n.addExternalEntities(this.externalEntities);const i=n.parseXml(t);return this.options.preserveOrder||void 0===i?i:o(i,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}}},64416:(t,e)=>{"use strict";function n(t,e,r){let a;const l={};for(let c=0;c<t.length;c++){const u=t[c],d=i(u);let p="";if(p=void 0===r?d:r+"."+d,d===e.textNodeName)void 0===a?a=u[d]:a+=""+u[d];else{if(void 0===d)continue;if(u[d]){let t=n(u[d],e,p);const i=o(t,e);u[":@"]?s(t,u[":@"],p,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,p,i)?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 i(t){const e=Object.keys(t);for(let t=0;t<e.length;t++){const n=e[t];if(":@"!==n)return n}}function s(t,e,n,i){if(e){const s=Object.keys(e),o=s.length;for(let r=0;r<o;r++){const o=s[r];i.isArray(o,n+"."+o,!0,!0)?t[o]=[e[o]]:t[o]=e[o]}}}function o(t,e){const{textNodeName:n}=e,i=Object.keys(t).length;return 0===i||!(1!==i||!t[n]&&"boolean"!=typeof t[n]&&0!==t[n])}e.prettify=function(t,e){return n(t,e)}},14499:t=>{"use strict";t.exports=class XmlNode{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})}}},85580: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 i={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};t.exports=function(t,s={}){if(s=Object.assign({},i,s),!t||"string"!=typeof t)return t;let o=t.trim();if(void 0!==s.skipLike&&s.skipLike.test(o))return t;if(s.hex&&e.test(o))return Number.parseInt(o,16);{const e=n.exec(o);if(e){const n=e[1],i=e[2];let r=function(t){if(t&&-1!==t.indexOf("."))return"."===(t=t.replace(/0+$/,""))?t="0":"."===t[0]?t="0"+t:"."===t[t.length-1]&&(t=t.substr(0,t.length-1)),t;return t}(e[3]);const a=e[4]||e[6];if(!s.leadingZeros&&i.length>0&&n&&"."!==o[2])return t;if(!s.leadingZeros&&i.length>0&&!n&&"."!==o[1])return t;{const e=Number(o),l=""+e;return-1!==l.search(/[eE]/)||a?s.eNotation?e:t:-1!==o.indexOf(".")?"0"===l&&""===r||l===r||n&&l==="-"+r?e:t:i?r===l||n+r===l?e:t:o===l||o===n+l?e:t}}return t}}}};
package/dist/198.js DELETED
@@ -1 +0,0 @@
1
- "use strict";exports.id=198,exports.ids=[198],exports.modules={55423:(e,t,n)=>{n.d(t,{U$:()=>C,Cw:()=>S});var r=n(31388),s=n(75795),i=n(43080),o=n(51630),a=n(69337),c=n(20782),l=n(70930);class AssumeRoleWithWebIdentityCommand extends(o.mY.classBuilder().ep({...a.q}).m((function(e,t,n,r){return[(0,i.p2)(n,this.serialize,this.deserialize),(0,s.a3)(n,e.getEndpointParameterInstructions())]})).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").f(c.Cz,c.b4).ser(l.pO).de(l.l$).build()){}const d="us-east-1",u=async(e,t,n)=>{const r="function"==typeof e?await e():e,s="function"==typeof t?await t():t;return n?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${r} (provider)`,`${s} (parent client)`,`${d} (STS default)`),r??s??d},g=(e,t)=>{let n,s;return async(i,o)=>{if(s=i,!n){const{logger:r=e?.parentClientConfig?.logger,region:i,requestHandler:o=e?.parentClientConfig?.requestHandler,credentialProviderLogger:a}=e,c=await u(i,e?.parentClientConfig?.region,a);n=new t({credentialDefaultProvider:()=>async()=>s,region:c,requestHandler:o,logger:r})}const{Credentials:a}=await n.send(new r.x(o));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);return{accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,credentialScope:a.CredentialScope}}},p=(e,t)=>{let n;return async r=>{if(!n){const{logger:r=e?.parentClientConfig?.logger,region:s,requestHandler:i=e?.parentClientConfig?.requestHandler,credentialProviderLogger:o}=e,a=await u(s,e?.parentClientConfig?.region,o);n=new t({region:a,requestHandler:i,logger:r})}const{Credentials:s}=await n.send(new AssumeRoleWithWebIdentityCommand(r));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`);return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,credentialScope:s.CredentialScope}}};var f=n(66792);const y=(e,t)=>t?class CustomizableSTSClient extends e{constructor(e){super(e);for(const e of t)this.middlewareStack.use(e)}}:e,C=(e={},t)=>g(e,y(f.X,t)),S=(e={},t)=>p(e,y(f.X,t))},34198:(e,t,n)=>{n.d(t,{getDefaultRoleAssumerWithWebIdentity:()=>r.Cw});var r=n(55423)}};
package/dist/426.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 426.js.LICENSE.txt */
2
- "use strict";exports.id=426,exports.ids=[426],exports.modules={57452:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=void 0;var n=r(5163),i=r(4959),s=r(82492),o=function(){function e(){this.crc32=new s.Crc32}return e.prototype.update=function(e){(0,i.isEmptyData)(e)||this.crc32.update((0,i.convertToBuffer)(e))},e.prototype.digest=function(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(e){return[2,(0,i.numToUint8)(this.crc32.digest())]}))}))},e.prototype.reset=function(){this.crc32=new s.Crc32},e}();t.AwsCrc32=o},82492:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=t.Crc32=t.crc32=void 0;var n=r(5163),i=r(4959);t.crc32=function(e){return(new s).update(e).digest()};var s=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var i=n.__values(e),s=i.next();!s.done;s=i.next()){var a=s.value;this.checksum=this.checksum>>>8^o[255&(this.checksum^a)]}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}();t.Crc32=s;var o=(0,i.uint32ArrayFrom)([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),a=r(57452);Object.defineProperty(t,"AwsCrc32",{enumerable:!0,get:function(){return a.AwsCrc32}})},73376:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var n=r(16778),i="undefined"!=typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:n.fromUtf8;t.convertToBuffer=function(e){return e instanceof Uint8Array?e:"string"==typeof e?i(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}},4959:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var n=r(73376);Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var i=r(71205);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return i.isEmptyData}});var s=r(91443);Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return s.numToUint8}});var o=r(51650);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return o.uint32ArrayFrom}})},71205:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0,t.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}},91443:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void 0,t.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}},51650:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void 0,t.uint32ArrayFrom=function(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}},84629:(e,t,r)=>{r.d(t,{H:()=>i});let n=!1;const i=e=>{e&&!n&&parseInt(e.substring(1,e.indexOf(".")))<16&&(n=!0,process.emitWarning("NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will\nno longer support Node.js 14.x on May 1, 2024.\n\nTo continue receiving updates to AWS services, bug fixes, and security\nupdates please upgrade to an active Node.js LTS version.\n\nMore information can be found at: https://a.co/dzr2AJd"))}},95071:(e,t,r)=>{r.d(t,{V:()=>AwsSdkSigV4Signer});var n=r(25640);const i=e=>new Date(Date.now()+e),s=e=>n.Zn.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,o=(e,t)=>{const r=Date.parse(e);return((e,t)=>Math.abs(i(t).getTime()-e)>=3e5)(r,t)?r-Date.now():t},a=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t};class AwsSdkSigV4Signer{async sign(e,t,r){if(!n.aW.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:s,signer:o,signingRegion:c,signingName:u}=await(async e=>{const t=a("context",e.context),r=a("config",e.config),n=t.endpointV2?.properties?.authSchemes?.[0],i=a("signer",r.signer),s=await i(n),o=e?.signingRegion,c=e?.signingName;return{config:r,signer:s,signingRegion:o,signingName:c}})(r);return await o.sign(e,{signingDate:i(s.systemClockOffset),signingRegion:c,signingService:u})}errorHandler(e){return t=>{const r=t.ServerTime??s(t.$response);if(r){const n=a("config",e.config),i=n.systemClockOffset;n.systemClockOffset=o(r,n.systemClockOffset);n.systemClockOffset!==i&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){const r=s(e);if(r){const e=a("config",t.config);e.systemClockOffset=o(r,e.systemClockOffset)}}}},16301:(e,t,r)=>{r.d(t,{K:()=>X});var n=r(68424);r(82492);const i={},s={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),i[e]=t,s[t]=e}function o(e){let t="";for(let r=0;r<e.byteLength;r++)t+=i[e[r]];return t}class Int64{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 r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&a(t),new Int64(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&a(e),parseInt(o(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function a(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}class HeaderMarshaller_HeaderMarshaller{constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){const t=[];for(const r of Object.keys(e)){const n=this.fromUtf8(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}const r=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let n=0;for(const e of t)r.set(e,n),n+=e.byteLength;return r}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 r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);const o=new Uint8Array(i.buffer);return o.set(e.value,3),o;case"string":const a=this.fromUtf8(e.value),c=new DataView(new ArrayBuffer(3+a.byteLength));c.setUint8(0,7),c.setUint16(1,a.byteLength,!1);const u=new Uint8Array(c.buffer);return u.set(a,3),u;case"timestamp":const d=new Uint8Array(9);return d[0]=8,d.set(Int64.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!w.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const l=new Uint8Array(17);return l[0]=9,l.set(function(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){const n=e.slice(r,r+2).toLowerCase();if(!(n in s))throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`);t[r/2]=s[n]}return t}(e.value.replace(/\-/g,"")),1),l}}parse(e){const t={};let r=0;for(;r<e.byteLength;){const n=e.getUint8(r++),i=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,n));switch(r+=n,e.getUint8(r++)){case 0:t[i]={type:u,value:!0};break;case 1:t[i]={type:u,value:!1};break;case 2:t[i]={type:d,value:e.getInt8(r++)};break;case 3:t[i]={type:l,value:e.getInt16(r,!1)},r+=2;break;case 4:t[i]={type:f,value:e.getInt32(r,!1)},r+=4;break;case 5:t[i]={type:p,value:new Int64(new Uint8Array(e.buffer,e.byteOffset+r,8))},r+=8;break;case 6:const n=e.getUint16(r,!1);r+=2,t[i]={type:h,value:new Uint8Array(e.buffer,e.byteOffset+r,n)},r+=n;break;case 7:const s=e.getUint16(r,!1);r+=2,t[i]={type:g,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,s))},r+=s;break;case 8:t[i]={type:y,value:new Date(new Int64(new Uint8Array(e.buffer,e.byteOffset+r,8)).valueOf())},r+=8;break;case 9:const a=new Uint8Array(e.buffer,e.byteOffset+r,16);r+=16,t[i]={type:m,value:`${o(a.subarray(0,4))}-${o(a.subarray(4,6))}-${o(a.subarray(6,8))}-${o(a.subarray(8,10))}-${o(a.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return t}}var c;!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"}(c||(c={}));const u="boolean",d="byte",l="short",f="integer",p="long",h="binary",g="string",y="timestamp",m="uuid",w=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class MessageDecoderStream{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.decoder.decode(e);yield t}}}class MessageEncoderStream{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=this.options.encoder.encode(e);yield t}this.options.includeEndFrame&&(yield new Uint8Array(0))}}class SmithyMessageDecoderStream{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=await this.options.deserializer(e);void 0!==t&&(yield t)}}}class SmithyMessageEncoderStream{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.serializer(e);yield t}}}var v=r(95773),S=r(7242);const b="X-Amz-Date",E="X-Amz-Signature",R="X-Amz-Security-Token",A="authorization",T=b.toLowerCase(),C=[A,T,"date"],P=E.toLowerCase(),$="x-amz-content-sha256",k=R.toLowerCase(),I={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},_=/^proxy-/,O=/^sec-/,x="AWS4-HMAC-SHA256",D="AWS4-HMAC-SHA256-PAYLOAD",N="aws4_request",U={},M=[],j=(e,t,r)=>`${e}/${t}/${r}/${N}`,L=(e,t,r)=>{const n=new e(t);return n.update((0,S._f)(r)),n.digest()},q=({headers:e},t,r)=>{const n={};for(const i of Object.keys(e).sort()){if(null==e[i])continue;const s=i.toLowerCase();(s in I||t?.has(s)||_.test(s)||O.test(s))&&(!r||r&&!r.has(s))||(n[s]=e[i].trim().replace(/\s+/g," "))}return n};var H=r(16969);var B=r(15730);const F=async({headers:e,body:t},r)=>{for(const t of Object.keys(e))if(t.toLowerCase()===$)return e[t];if(null==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||(0,B.e)(t)){const e=new r;return e.update((0,S._f)(t)),o(await e.digest())}return"UNSIGNED-PAYLOAD"},W=({headers:e,query:t,...r})=>({...r,headers:{...e},query:t?z(t):void 0}),z=e=>Object.keys(e).reduce(((t,r)=>{const n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}}),{}),V=e=>{e="function"==typeof e.clone?e.clone():W(e);for(const t of Object.keys(e.headers))C.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},G=e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e;class SignatureV4{constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:i,uriEscapePath:s=!0}){this.headerMarshaller=new HeaderMarshaller_HeaderMarshaller(S.GZ,S.$x),this.service=n,this.sha256=i,this.uriEscapePath=s,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=(0,v.$)(r),this.credentialProvider=(0,v.$)(t)}async presign(e,t={}){const{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:i,unhoistableHeaders:s,signableHeaders:o,signingRegion:a,signingService:c}=t,u=await this.credentialProvider();this.validateResolvedCredentials(u);const d=a??await this.regionProvider(),{longDate:l,shortDate:f}=K(r);if(n>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const p=j(f,d,c??this.service),h=((e,t={})=>{const{headers:r,query:n={}}="function"==typeof e.clone?e.clone():W(e);for(const e of Object.keys(r)){const i=e.toLowerCase();"x-amz-"!==i.slice(0,6)||t.unhoistableHeaders?.has(i)||(n[e]=r[e],delete r[e])}return{...e,headers:r,query:n}})(V(e),{unhoistableHeaders:s});u.sessionToken&&(h.query[R]=u.sessionToken),h.query["X-Amz-Algorithm"]=x,h.query["X-Amz-Credential"]=`${u.accessKeyId}/${p}`,h.query[b]=l,h.query["X-Amz-Expires"]=n.toString(10);const g=q(h,i,o);return h.query["X-Amz-SignedHeaders"]=J(g),h.query[E]=await this.getSignature(l,p,this.getSigningKey(u,d,f,c),this.createCanonicalRequest(h,g,await F(e,this.sha256))),h}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:r=new Date,priorSignature:n,signingRegion:i,signingService:s}){const a=i??await this.regionProvider(),{shortDate:c,longDate:u}=K(r),d=j(c,a,s??this.service),l=await F({headers:{},body:t},this.sha256),f=new this.sha256;f.update(e);const p=o(await f.digest()),h=[D,u,d,n,p,l].join("\n");return this.signString(h,{signingDate:r,signingRegion:a,signingService:s})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n}){return this.signEvent({headers:this.headerMarshaller.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature}).then((t=>({message:e.message,signature:t})))}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n}={}){const i=await this.credentialProvider();this.validateResolvedCredentials(i);const s=r??await this.regionProvider(),{shortDate:a}=K(t),c=new this.sha256(await this.getSigningKey(i,s,a,n));return c.update((0,S._f)(e)),o(await c.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:i,signingService:s}={}){const o=await this.credentialProvider();this.validateResolvedCredentials(o);const a=i??await this.regionProvider(),c=V(e),{longDate:u,shortDate:d}=K(t),l=j(d,a,s??this.service);c.headers[T]=u,o.sessionToken&&(c.headers[k]=o.sessionToken);const f=await F(c,this.sha256);!((e,t)=>{e=e.toLowerCase();for(const r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1})($,c.headers)&&this.applyChecksum&&(c.headers[$]=f);const p=q(c,n,r),h=await this.getSignature(u,l,this.getSigningKey(o,a,d,s),this.createCanonicalRequest(c,p,f));return c.headers[A]=`${x} Credential=${o.accessKeyId}/${l}, SignedHeaders=${J(p)}, Signature=${h}`,c}createCanonicalRequest(e,t,r){const n=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(({query:e={}})=>{const t=[],r={};for(const n of Object.keys(e).sort()){if(n.toLowerCase()===P)continue;t.push(n);const i=e[n];"string"==typeof i?r[n]=`${(0,H.i)(n)}=${(0,H.i)(i)}`:Array.isArray(i)&&(r[n]=i.slice(0).reduce(((e,t)=>e.concat([`${(0,H.i)(n)}=${(0,H.i)(t)}`])),[]).sort().join("&"))}return t.map((e=>r[e])).filter((e=>e)).join("&")})(e)}\n${n.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${n.join(";")}\n${r}`}async createStringToSign(e,t,r){const n=new this.sha256;n.update((0,S._f)(r));const i=await n.digest();return`${x}\n${e}\n${t}\n${o(i)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const r of e.split("/"))0!==r?.length&&"."!==r&&(".."===r?t.pop():t.push(r));const r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return encodeURIComponent(r).replace(/%2F/g,"/")}return e}async getSignature(e,t,r,n){const i=await this.createStringToSign(e,t,n),s=new this.sha256(await r);return s.update((0,S._f)(i)),o(await s.digest())}getSigningKey(e,t,r,n){return(async(e,t,r,n,i)=>{const s=`${r}:${n}:${i}:${o(await L(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(s in U)return U[s];for(M.push(s);M.length>50;)delete U[M.shift()];let a=`AWS4${t.secretAccessKey}`;for(const t of[r,n,i,N])a=await L(e,a,t);return U[s]=a})(this.sha256,e,r,t,n||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 K=e=>{const t=(r=e,G(r).toISOString().replace(/\.\d{3}Z$/,"Z")).replace(/[\-:]/g,"");var r;return{longDate:t,shortDate:t.slice(0,8)}},J=e=>Object.keys(e).sort().join(";"),X=e=>{let t;e.credentials&&(t=(0,n.CU)(e.credentials,n.BP,n.zV)),t||(t=e.credentialDefaultProvider?(0,n.$E)(e.credentialDefaultProvider(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw new Error("`credentials` is missing")});const{signingEscapePath:r=!0,systemClockOffset:i=e.systemClockOffset||0,sha256:s}=e;let o;return o=e.signer?(0,n.$E)(e.signer):e.regionInfoProvider?()=>(0,n.$E)(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([n,i])=>{const{signingRegion:o,signingService:a}=n;e.signingRegion=e.signingRegion||o||i,e.signingName=e.signingName||a||e.serviceId;const c={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:s,uriEscapePath:r};return new(e.signerConstructor||SignatureV4)(c)})):async i=>{const o=(i=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await(0,n.$E)(e.region)(),properties:{}},i)).signingRegion,a=i.signingName;e.signingRegion=e.signingRegion||o,e.signingName=e.signingName||a||e.serviceId;const c={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:s,uriEscapePath:r};return new(e.signerConstructor||SignatureV4)(c)},{...e,systemClockOffset:i,signingEscapePath:r,credentials:t,signer:o}}},1742:(e,t,r)=>{r.d(t,{J:()=>i});var n=r(51630);const i=(e,t)=>(0,n.Wg)(e,t).then((e=>t.utf8Encoder(e)))},37493:(e,t,r)=>{r.d(t,{G2:()=>o,S8:()=>i});var n=r(25640);function i(e){return e}const s={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},o=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{if(!n.aW.isInstance(r.request))return t(r);const{request:i}=r,{handlerProtocol:s=""}=e.requestHandler.metadata||{};if(s.indexOf("h2")>=0&&!i.headers[":authority"])delete i.headers.host,i.headers[":authority"]=i.hostname+(i.port?":"+i.port:"");else if(!i.headers.host){let e=i.hostname;null!=i.port&&(e+=`:${i.port}`),i.headers.host=e}return t(r)})(e),s)}})},70183:(e,t,r)=>{r.d(t,{cV:()=>i});const n={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},i=e=>({applyToStack:e=>{e.add(((e,t)=>async r=>{try{const n=await e(r),{clientName:i,commandName:s,logger:o,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=a,d=c??t.inputFilterSensitiveLog,l=u??t.outputFilterSensitiveLog,{$metadata:f,...p}=n.output;return o?.info?.({clientName:i,commandName:s,input:d(r.input),output:l(p),metadata:f}),n}catch(e){const{clientName:n,commandName:i,logger:s,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:a}=o,c=a??t.inputFilterSensitiveLog;throw s?.error?.({clientName:n,commandName:i,input:c(r.input),error:e,metadata:e.$metadata}),e}}),n)}})},23703:(e,t,r)=>{r.d(t,{eV:()=>o});var n=r(25640);const i="X-Amzn-Trace-Id",s={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},o=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{const{request:s}=r;if(!n.aW.isInstance(s)||"node"!==e.runtime||s.headers.hasOwnProperty(i))return t(r);const o=process.env.AWS_LAMBDA_FUNCTION_NAME,a=process.env._X_AMZN_TRACE_ID,c=e=>"string"==typeof e&&e.length>0;return c(o)&&c(a)&&(s.headers[i]=a),t({...r,request:s})})(e),s)}})},48435:(e,t,r)=>{function n(e){return{...e,customUserAgent:"string"==typeof e.customUserAgent?[[e.customUserAgent]]:e.customUserAgent}}r.d(t,{XJ:()=>m,er:()=>n});var i=r(92718);const s=(e,t=!1)=>{if(t){for(const t of e.split("."))if(!s(t))return!1;return!0}return!!(0,i.IA)(e)&&(!(e.length<3||e.length>63)&&(e===e.toLowerCase()&&!(0,i.dY)(e)))};let o=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)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"ap-southeast-4":{"description":"Asia Pacific (Melbourne)"},"aws-global":{"description":"AWS Standard global region"},"ca-central-1":{"description":"Canada (Central)"},"ca-west-1":{"description":"Canada West (Calgary)"},"eu-central-1":{"description":"Europe (Frankfurt)"},"eu-central-2":{"description":"Europe (Zurich)"},"eu-north-1":{"description":"Europe (Stockholm)"},"eu-south-1":{"description":"Europe (Milan)"},"eu-south-2":{"description":"Europe (Spain)"},"eu-west-1":{"description":"Europe (Ireland)"},"eu-west-2":{"description":"Europe (London)"},"eu-west-3":{"description":"Europe (Paris)"},"il-central-1":{"description":"Israel (Tel Aviv)"},"me-central-1":{"description":"Middle East (UAE)"},"me-south-1":{"description":"Middle East (Bahrain)"},"sa-east-1":{"description":"South America (Sao Paulo)"},"us-east-1":{"description":"US East (N. Virginia)"},"us-east-2":{"description":"US East (Ohio)"},"us-west-1":{"description":"US West (N. California)"},"us-west-2":{"description":"US West (Oregon)"}}},{"id":"aws-cn","outputs":{"dnsSuffix":"amazonaws.com.cn","dualStackDnsSuffix":"api.amazonwebservices.com.cn","implicitGlobalRegion":"cn-northwest-1","name":"aws-cn","supportsDualStack":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":{}},{"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"}'),a="";const c={isVirtualHostableS3Bucket:s,parseArn:e=>{const t=e.split(":");if(t.length<6)return null;const[r,n,i,s,o,...a]=t;return"arn"!==r||""===n||""===i||""===a[0]?null:{partition:n,service:i,region:s,accountId:o,resourceId:a[0].includes("/")?a[0].split("/"):a}},partition:e=>{const{partitions:t}=o;for(const r of t){const{regions:t,outputs:n}=r;for(const[r,i]of Object.entries(t))if(r===e)return{...n,...i}}for(const r of t){const{regionRegex:t,outputs:n}=r;if(new RegExp(t).test(e))return{...n}}const r=t.find((e=>"aws"===e.id));if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}}};i.DY.aws=c;var u=r(25640);const d="user-agent",l="x-amz-user-agent",f=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,p=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,h=e=>(t,r)=>async n=>{const{request:i}=n;if(!u.aW.isInstance(i))return t(n);const{headers:s}=i,o=r?.userAgent?.map(g)||[],c=(await e.defaultUserAgentProvider()).map(g),f=e?.customUserAgent?.map(g)||[],p=(a?[a]:[]).concat([...c,...o,...f]).join(" "),h=[...c.filter((e=>e.startsWith("aws-sdk-"))),...f].join(" ");return"browser"!==e.runtime?(h&&(s[l]=s[l]?`${s[d]} ${h}`:h),s[d]=p):s[l]=p,t({...n,request:i})},g=e=>{const t=e[0].split("/").map((e=>e.replace(f,"-"))).join("/"),r=e[1]?.replace(p,"-"),n=t.indexOf("/"),i=t.substring(0,n);let s=t.substring(n+1);return"api"===i&&(s=s.toLowerCase()),[i,s,r].filter((e=>e&&e.length>0)).reduce(((e,t,r)=>{switch(r){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}}),"")},y={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},m=e=>({applyToStack:t=>{t.add(h(e),y)}})},31716:(e,t,r)=>{r.d(t,{GW:()=>n,A1:()=>i});const n=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}},i=e=>({region:e.region()})},95640:(e,t,r)=>{r.d(t,{fV:()=>a});var n=r(46807),i=r(22037),s=r(77282);const o=!1,a=({serviceId:e,clientVersion:t})=>{const r=[["aws-sdk-js",t],["ua","2.0"],[`os/${(0,i.platform)()}`,(0,i.release)()],["lang/js"],["md/nodejs",`${s.versions.node}`]],a=o?["md/crt-avail"]:null;a&&r.push(a),e&&r.push([`api/${e}`,t]),s.env.AWS_EXECUTION_ENV&&r.push([`exec-env/${s.env.AWS_EXECUTION_ENV}`]);const c=(0,n.M)({environmentVariableSelector:e=>e.AWS_SDK_UA_APP_ID,configFileSelector:e=>e["sdk-ua-app-id"],default:void 0})();let u;return async()=>{if(!u){const e=await c;u=e?[...r,[`app/${e}`]]:[...r]}return u}}},16778:(e,t,r)=>{r.r(t),r.d(t,{fromUtf8:()=>n,toUtf8:()=>i});const n=e=>"function"==typeof TextEncoder?function(e){return(new TextEncoder).encode(e)}(e):(e=>{const t=[];for(let r=0,n=e.length;r<n;r++){const n=e.charCodeAt(r);if(n<128)t.push(n);else if(n<2048)t.push(n>>6|192,63&n|128);else if(r+1<e.length&&55296==(64512&n)&&56320==(64512&e.charCodeAt(r+1))){const i=65536+((1023&n)<<10)+(1023&e.charCodeAt(++r));t.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else t.push(n>>12|224,n>>6&63|128,63&n|128)}return Uint8Array.from(t)})(e),i=e=>"function"==typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):(e=>{let t="";for(let r=0,n=e.length;r<n;r++){const n=e[r];if(n<128)t+=String.fromCharCode(n);else if(192<=n&&n<224){const i=e[++r];t+=String.fromCharCode((31&n)<<6|63&i)}else if(240<=n&&n<365){const i="%"+[n,e[++r],e[++r],e[++r]].map((e=>e.toString(16))).join("%");t+=decodeURIComponent(i)}else t+=String.fromCharCode((15&n)<<12|(63&e[++r])<<6|63&e[++r])}return t})(e)},22144:(e,t,r)=>{r.d(t,{zb:()=>c,_c:()=>a,G7:()=>s,NL:()=>o,Xb:()=>l});const n=(e,t,r)=>{if(t in e){if("true"===e[t])return!0;if("false"===e[t])return!1;throw new Error(`Cannot load ${r} "${t}". Expected "true" or "false", got ${e[t]}.`)}};var i;!function(e){e.ENV="env",e.CONFIG="shared config entry"}(i||(i={}));const s={environmentVariableSelector:e=>n(e,"AWS_USE_DUALSTACK_ENDPOINT",i.ENV),configFileSelector:e=>n(e,"use_dualstack_endpoint",i.CONFIG),default:!1},o={environmentVariableSelector:e=>n(e,"AWS_USE_FIPS_ENDPOINT",i.ENV),configFileSelector:e=>n(e,"use_fips_endpoint",i.CONFIG),default:!1};r(95773);const a={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:r}=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 r?Promise.resolve(!!r):r())}}}},68424:(e,t,r)=>{r.d(t,{K5:()=>DefaultIdentityProviderConfig,oH:()=>NoAuthSigner,zV:()=>h,tZ:()=>o,aZ:()=>l,BP:()=>f,CU:()=>g,$E:()=>y,cu:()=>w});r(66627);var n=r(95773);const i=(e,t)=>(r,i)=>async s=>{const o=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,i,s.input)),a=function(e){const t=new Map;for(const r of e)t.set(r.schemeId,r);return t}(e.httpAuthSchemes),c=(0,n.J)(i),u=[];for(const r of o){const n=a.get(r.schemeId);if(!n){u.push(`HttpAuthScheme \`${r.schemeId}\` was not enabled for this service.`);continue}const s=n.identityProvider(await t.identityProviderConfigProvider(e));if(!s){u.push(`HttpAuthScheme \`${r.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:o={},signingProperties:d={}}=r.propertiesExtractor?.(e,i)||{};r.identityProperties=Object.assign(r.identityProperties||{},o),r.signingProperties=Object.assign(r.signingProperties||{},d),c.selectedHttpAuthScheme={httpAuthOption:r,identity:await s(r.identityProperties),signer:n.signer};break}if(!c.selectedHttpAuthScheme)throw new Error(u.join("\n"));return r(s)};const s={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:r(75795).Q$.name},o=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(i(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r}),s)}});r(43080).JK.name;var a=r(25640);const c=e=>e=>{throw e},u=(e,t)=>{};const d={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:r(94726).yg.name},l=e=>({applyToStack:e=>{e.addRelativeTo(((e,t)=>async r=>{if(!a.aW.isInstance(r.request))return e(r);const i=(0,n.J)(t).selectedHttpAuthScheme;if(!i)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:s={}},identity:o,signer:d}=i,l=await e({...r,request:await d.sign(r.request,o,s)}).catch((d.errorHandler||c)(s));return(d.successHandler||u)(l.response,s),l}),d)}});class DefaultIdentityProviderConfig{constructor(e){this.authSchemes=new Map;for(const[t,r]of Object.entries(e))void 0!==r&&this.authSchemes.set(t,r)}getIdentityProvider(e){return this.authSchemes.get(e)}}class NoAuthSigner{async sign(e,t,r){return e}}const f=(p=3e5,e=>h(e)&&e.expiration.getTime()-Date.now()<p);var p;const h=e=>void 0!==e.expiration,g=(e,t,r)=>{if(void 0===e)return;const n="function"!=typeof e?async()=>Promise.resolve(e):e;let i,s,o,a=!1;const c=async e=>{s||(s=n(e));try{i=await s,o=!0,a=!1}finally{s=void 0}return i};return void 0===t?async e=>(o&&!e?.forceRefresh||(i=await c(e)),i):async e=>(o&&!e?.forceRefresh||(i=await c(e)),a?i:r(i)?t(i)?(await c(e),i):i:(a=!0,i))},y=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t};var m=r(51630);function w(e,t){return new RequestBuilder(e,t)}class RequestBuilder{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:r,path:n}=await this.context.endpoint();this.path=n;for(const e of this.resolvePathStack)e(this.path);return new a.aW({protocol:t,hostname:this.hostname||e,port:r,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,r,n){return this.resolvePathStack.push((i=>{this.path=(0,m.Is)(i,this.input,e,t,r,n)})),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}}},87954:(e,t,r)=>{r.d(t,{k:()=>Hash});var n=r(52912),i=r(7242),s=r(14300),o=r(6113);class Hash{constructor(e,t){this.algorithmIdentifier=e,this.secret=t,this.reset()}update(e,t){this.hash.update((0,i._f)(a(e,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,o.createHmac)(this.algorithmIdentifier,a(this.secret)):(0,o.createHash)(this.algorithmIdentifier)}}function a(e,t){return s.Buffer.isBuffer(e)?e:"string"==typeof e?(0,n.m)(e,t):ArrayBuffer.isView(e)?(0,n.g)(e.buffer,e.byteOffset,e.byteLength):(0,n.g)(e)}},89362:(e,t,r)=>{r.d(t,{VG:()=>o});var n=r(25640);const i="content-length";const s={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},o=e=>({applyToStack:t=>{var r;t.add((r=e.bodyLengthChecker,e=>async t=>{const s=t.request;if(n.aW.isInstance(s)){const{body:e,headers:t}=s;if(e&&-1===Object.keys(t).map((e=>e.toLowerCase())).indexOf(i))try{const t=r(e);s.headers={...s.headers,[i]:String(t)}}catch(e){}}return e({...t,request:s})}),s)}})},75795:(e,t,r)=>{r.d(t,{Q$:()=>v,a3:()=>S,uW:()=>b});const n=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,i=/(\d+\.){3}\d+/,s=/\.\./,o=e=>n.test(e)&&!i.test(e)&&!s.test(e),a=e=>{const[t,r,n,i,s,o]=e.split(":"),a="arn"===t&&e.split(":").length>=6,c=5===[t,r,n,s,o].filter(Boolean).length;if(a&&!c)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return!!("arn"===t&&r&&n&&s&&o)},c=(e,t,r)=>{const n=async()=>{const n=r[e]??r[t];return"function"==typeof n?n():n};return"credentialScope"===e||"CredentialScope"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.credentialScope??e?.CredentialScope}:"endpoint"===e||"endpoint"===t?async()=>{const e=await n();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:r,port:n,path:i}=e;return`${t}//${r}${n?":"+n:""}${i}`}}return e}:n};var u=r(46807),d=r(43598);const l="AWS_ENDPOINT_URL",f="endpoint_url",p=async e=>(0,u.M)((e=>({environmentVariableSelector:t=>{const r=e.split(" ").map((e=>e.toUpperCase())),n=t[[l,...r].join("_")];if(n)return n;return t[l]||void 0},configFileSelector:(t,r)=>{if(r&&t.services){const n=r[["services",t.services].join(d.Ck)];if(n){const t=n[[e.split(" ").map((e=>e.toLowerCase())).join("_"),f].join(d.Ck)];if(t)return t}}const n=t[f];if(n)return n},default:void 0}))(e))();var h=r(53918);const g=e=>"object"==typeof e?"url"in e?(0,h.e)(e.url):e:(0,h.e)(e),y=async(e,t,r)=>{const n={},i=t?.getEndpointParameterInstructions?.()||{};for(const[t,s]of Object.entries(i))switch(s.type){case"staticContextParams":n[t]=s.value;break;case"contextParams":n[t]=e[s.name];break;case"clientContextParams":case"builtInParams":n[t]=await c(s.name,t,r)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(s))}return 0===Object.keys(i).length&&Object.assign(n,r),"s3"===String(r.serviceId).toLowerCase()&&await(async e=>{const t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),a(t)){if(!0===e.ForcePathStyle)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!o(t)||-1!==t.indexOf(".")&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e})(n),n};var m=r(95773);const w=({config:e,instructions:t})=>(r,n)=>async i=>{const s=await(async(e,t,r,n)=>{if(!r.endpoint){const e=await p(r.serviceId||"");e&&(r.endpoint=()=>Promise.resolve(g(e)))}const i=await y(e,t,r);if("function"!=typeof r.endpointProvider)throw new Error("config.endpointProvider is not set.");return r.endpointProvider(i,n)})(i.input,{getEndpointParameterInstructions:()=>t},{...e},n);n.endpointV2=s,n.authSchemes=s.properties?.authSchemes;const o=n.authSchemes?.[0];if(o){n.signing_region=o.signingRegion,n.signing_service=o.signingName;const e=(0,m.J)(n),t=e?.selectedHttpAuthScheme?.httpAuthOption;t&&(t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:o.signingRegion,signingRegion:o.signingRegion,signing_service:o.signingName,signingName:o.signingName,signingRegionSet:o.signingRegionSet},o.properties))}return r({...i})};const v={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:r(43080).JK.name},S=(e,t)=>({applyToStack:r=>{r.addRelativeTo(w({config:e,instructions:t}),v)}}),b=e=>{const t=e.tls??!0,{endpoint:r}=e,n=null!=r?async()=>g(await(0,m.$)(r)()):void 0,i=!!r;return{...e,endpoint:n,tls:t,isCustomEndpoint:i,useDualstackEndpoint:(0,m.$)(e.useDualstackEndpoint??!1),useFipsEndpoint:(0,m.$)(e.useFipsEndpoint??!1)}}},94726:(e,t,r)=>{r.d(t,{Hs:()=>c,aK:()=>d,NQ:()=>k,BC:()=>u,yg:()=>$});var n=r(88383),i=r(25640);var s=r(95773);const o="AWS_MAX_ATTEMPTS",a="max_attempts",c={environmentVariableSelector:e=>{const t=e[o];if(!t)return;const r=parseInt(t);if(Number.isNaN(r))throw new Error(`Environment variable ${o} mast be a number, got "${t}"`);return r},configFileSelector:e=>{const t=e[a];if(!t)return;const r=parseInt(t);if(Number.isNaN(r))throw new Error(`Shared config file entry ${a} mast be a number, got "${t}"`);return r},default:n.J},u=e=>{const{retryStrategy:t}=e,r=(0,s.$)(e.maxAttempts??n.J);return{...e,maxAttempts:r,retryStrategy:async()=>{if(t)return t;return await(0,s.$)(e.retryMode)()===n.Ul.ADAPTIVE?new n.AY(r):new n.Uz(r)}}},d={environmentVariableSelector:e=>e.AWS_RETRY_MODE,configFileSelector:e=>e.retry_mode,default:n.CA};var l=r(68086),f=r(51630),p=r(6113),h=r.n(p);const g=new Uint8Array(256);let y=g.length;function m(){return y>g.length-16&&(h().randomFillSync(g),y=0),g.slice(y,y+=16)}const w=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const v=function(e){return"string"==typeof e&&w.test(e)},S=[];for(let e=0;e<256;++e)S.push((e+256).toString(16).substr(1));const b=function(e,t=0){const r=(S[e[t+0]]+S[e[t+1]]+S[e[t+2]]+S[e[t+3]]+"-"+S[e[t+4]]+S[e[t+5]]+"-"+S[e[t+6]]+S[e[t+7]]+"-"+S[e[t+8]]+S[e[t+9]]+"-"+S[e[t+10]]+S[e[t+11]]+S[e[t+12]]+S[e[t+13]]+S[e[t+14]]+S[e[t+15]]).toLowerCase();if(!v(r))throw TypeError("Stringified UUID is invalid");return r};const E=function(e,t,r){const n=(e=e||{}).random||(e.rng||m)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return b(n)};var R=r(12781);const A=e=>e?.body instanceof R.Readable||"undefined"!=typeof ReadableStream&&e?.body instanceof ReadableStream,T=e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess,C=e=>{const t={error:e,errorType:P(e)},r=I(e.$response);return r&&(t.retryAfterHint=r),t},P=e=>(0,l.pK)(e)?"THROTTLING":(0,l.iH)(e)?"TRANSIENT":(0,l.o7)(e)?"SERVER_ERROR":"CLIENT_ERROR",$={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},k=e=>({applyToStack:t=>{t.add((e=>(t,r)=>async s=>{let o=await e.retryStrategy();const a=await e.maxAttempts();if(!T(o))return o?.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",o.mode]]),o.retry(t,s);{let e=await o.acquireInitialRetryToken(r.partition_id),u=new Error,d=0,l=0;const{request:p}=s,h=i.aW.isInstance(p);for(h&&(p.headers[n.lk]=E());;)try{h&&(p.headers[n.r5]=`attempt=${d+1}; max=${a}`);const{response:r,output:i}=await t(s);return o.recordSuccess(e),i.$metadata.attempts=d+1,i.$metadata.totalRetryDelay=l,{response:r,output:i}}catch(t){const n=C(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}`),h&&A(p))throw(r.logger instanceof f.vk?console:r.logger)?.warn("An error was encountered in a non-retryable streaming request."),u;try{e=await o.refreshRetryTokenForRetry(e,n)}catch(e){throw u.$metadata||(u.$metadata={}),u.$metadata.attempts=d+1,u.$metadata.totalRetryDelay=l,u}d=e.getRetryCount();const i=e.getRetryDelay();l+=i,await new Promise((e=>setTimeout(e,i)))}}var c})(e),$)}}),I=e=>{if(!i.Zn.isInstance(e))return;const t=Object.keys(e.headers).find((e=>"retry-after"===e.toLowerCase()));if(!t)return;const r=e.headers[t],n=Number(r);if(!Number.isNaN(n))return new Date(1e3*n);return new Date(r)}},43080:(e,t,r)=>{r.d(t,{p2:()=>a,JK:()=>o});const n=(e,t)=>(r,n)=>async n=>{const{response:i}=await r(n);try{return{response:i,output:await t(i,e)}}catch(e){if(Object.defineProperty(e,"$response",{value:i}),!("$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}},i=(e,t)=>(r,n)=>async i=>{const s=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint;if(!s)throw new Error("No valid endpoint provider available.");const o=await t(i.input,{...e,endpoint:s});return r({...i,request:o})},s={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},o={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function a(e,t,r){return{applyToStack:a=>{a.add(n(e,r),s),a.add(i(e,t),o)}}}},68086:(e,t,r)=>{r.d(t,{o7:()=>u,pK:()=>a,iH:()=>c});const n=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],i=["TimeoutError","RequestTimeout","RequestTimeoutException"],s=[500,502,503,504],o=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],a=e=>429===e.$metadata?.httpStatusCode||n.includes(e.name)||1==e.$retryable?.throttling,c=e=>(e=>e.$metadata?.clockSkewCorrected)(e)||i.includes(e.name)||o.includes(e?.code||"")||s.includes(e.$metadata?.httpStatusCode||0),u=e=>{if(void 0!==e.$metadata?.httpStatusCode){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!c(e)}return!1}},91743:(e,t,r)=>{r.d(t,{W:()=>i});var n=r(57147);const i=e=>{if(!e)return 0;if("string"==typeof e)return Buffer.from(e).length;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,n.lstatSync)(e.path).size;if("number"==typeof e.fd)return(0,n.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)}},66918:(e,t,r)=>{r.d(t,{j:()=>d});var n=r(22144),i=r(46807),s=r(68924);const o="AWS_REGION",a="AWS_DEFAULT_REGION",c=["in-region","cross-region","mobile","standard","legacy"],u={environmentVariableSelector:e=>e.AWS_DEFAULTS_MODE,configFileSelector:e=>e.defaults_mode,default:"legacy"},d=({region:e=(0,i.M)(n._c),defaultsMode:t=(0,i.M)(u)}={})=>(0,s.HP)((async()=>{const r="function"==typeof t?await t():t;switch(r?.toLowerCase()){case"auto":return l(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(r?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${c.join(", ")}, got ${r}`)}})),l=async e=>{if(e){const t="function"==typeof e?await e():e,r=await f();return r?t===r?"in-region":"cross-region":"standard"}return"standard"},f=async()=>{if(process.env.AWS_EXECUTION_ENV&&(process.env[o]||process.env[a]))return process.env[o]??process.env[a];if(!process.env.AWS_EC2_METADATA_DISABLED)try{const{getInstanceMetadataEndpoint:e,httpRequest:t}=await Promise.resolve().then(r.bind(r,94176)),n=await e();return(await t({...n,path:"/latest/meta-data/placement/region"})).toString()}catch(e){}}},92718:(e,t,r)=>{r.d(t,{DY:()=>a,dY:()=>i,IA:()=>o,B1:()=>P});const n=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=>n.test(e)||e.startsWith("[")&&e.endsWith("]"),s=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),o=(e,t=!1)=>{if(!t)return s.test(e);const r=e.split(".");for(const e of r)if(!o(e))return!1;return!0},a={},c="endpoints";function u(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${u(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(u).join(", ")})`:JSON.stringify(e,null,2)}class EndpointError extends Error{constructor(e){super(e),this.name="EndpointError"}}const d=(e,t)=>(e=>{const t=e.split("."),r=[];for(const n of t){const t=n.indexOf("[");if(-1!==t){if(n.indexOf("]")!==n.length-1)throw new EndpointError(`Path: '${e}' does not end with ']'`);const i=n.slice(t+1,-1);if(Number.isNaN(parseInt(i)))throw new EndpointError(`Invalid array index: '${i}' in path: '${e}'`);0!==t&&r.push(n.slice(0,t)),r.push(i)}else r.push(n)}return r})(t).reduce(((r,n)=>{if("object"!=typeof r)throw new EndpointError(`Index '${n}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]}),e);var l=r(66627);const f={[l.cj.HTTP]:80,[l.cj.HTTPS]:443},p={booleanEquals:(e,t)=>e===t,getAttr:d,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:r,protocol:n="",path:i="",query:s={}}=e,o=new URL(`${n}//${t}${r?`:${r}`:""}${i}`);return o.search=Object.entries(s).map((([e,t])=>`${e}=${t}`)).join("&"),o}return new URL(e)}catch(e){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const r=t.href,{host:n,hostname:s,pathname:o,protocol:a,search:c}=t;if(c)return null;const u=a.slice(0,-1);if(!Object.values(l.cj).includes(u))return null;const d=i(s);return{scheme:u,authority:`${n}${r.includes(`${n}:${f[u]}`)||"string"==typeof e&&e.includes(`${n}:${f[u]}`)?`:${f[u]}`:""}`,path:o,normalizedPath:o.endsWith("/")?o:`${o}/`,isIp:d}},stringEquals:(e,t)=>e===t,substring:(e,t,r,n)=>t>=r||e.length<r?null:n?e.substring(e.length-r,e.length-t):e.substring(t,r),uriEncode:e=>encodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},h=(e,t)=>{const r=[],n={...t.endpointParams,...t.referenceRecord};let i=0;for(;i<e.length;){const t=e.indexOf("{",i);if(-1===t){r.push(e.slice(i));break}r.push(e.slice(i,t));const s=e.indexOf("}",t);if(-1===s){r.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[s+1]&&(r.push(e.slice(t+1,s)),i=s+2);const o=e.substring(t+1,s);if(o.includes("#")){const[e,t]=o.split("#");r.push(d(n[e],t))}else r.push(n[o]);i=s+1}return r.join("")},g=(e,t,r)=>{if("string"==typeof e)return h(e,r);if(e.fn)return y(e,r);if(e.ref)return(({ref:e},t)=>({...t.endpointParams,...t.referenceRecord}[e]))(e,r);throw new EndpointError(`'${t}': ${String(e)} is not a string, function or reference.`)},y=({fn:e,argv:t},r)=>{const n=t.map((e=>["boolean","number"].includes(typeof e)?e:g(e,"arg",r))),i=e.split(".");return i[0]in a&&null!=i[1]?a[i[0]][i[1]](...n):p[e](...n)},m=({assign:e,...t},r)=>{if(e&&e in r.referenceRecord)throw new EndpointError(`'${e}' is already defined in Reference Record.`);const n=y(t,r);return r.logger?.debug?.(c,`evaluateCondition: ${u(t)} = ${u(n)}`),{result:""===n||!!n,...null!=e&&{toAssign:{name:e,value:n}}}},w=(e=[],t)=>{const r={};for(const n of e){const{result:e,toAssign:i}=m(n,{...t,referenceRecord:{...t.referenceRecord,...r}});if(!e)return{result:e};i&&(r[i.name]=i.value,t.logger?.debug?.(c,`assign: ${i.name} := ${u(i.value)}`))}return{result:!0,referenceRecord:r}},v=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>({...e,[r]:n.map((e=>{const n=g(e,"Header value entry",t);if("string"!=typeof n)throw new EndpointError(`Header '${r}' value '${n}' is not a string`);return n}))})),{}),S=(e,t)=>{if(Array.isArray(e))return e.map((e=>S(e,t)));switch(typeof e){case"string":return h(e,t);case"object":if(null===e)throw new EndpointError(`Unexpected endpoint property: ${e}`);return b(e,t);case"boolean":return e;default:throw new EndpointError("Unexpected endpoint property type: "+typeof e)}},b=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>({...e,[r]:S(n,t)})),{}),E=(e,t)=>{const r=g(e,"Endpoint URL",t);if("string"==typeof r)try{return new URL(r)}catch(e){throw console.error(`Failed to construct URL with ${r}`,e),e}throw new EndpointError("Endpoint URL must be a string, got "+typeof r)},R=(e,t)=>{const{conditions:r,endpoint:n}=e,{result:i,referenceRecord:s}=w(r,t);if(!i)return;const o={...t,referenceRecord:{...t.referenceRecord,...s}},{url:a,properties:d,headers:l}=n;return t.logger?.debug?.(c,`Resolving endpoint from template: ${u(n)}`),{...null!=l&&{headers:v(l,o)},...null!=d&&{properties:b(d,o)},url:E(a,o)}},A=(e,t)=>{const{conditions:r,error:n}=e,{result:i,referenceRecord:s}=w(r,t);if(i)throw new EndpointError(g(n,"Error",{...t,referenceRecord:{...t.referenceRecord,...s}}))},T=(e,t)=>{const{conditions:r,rules:n}=e,{result:i,referenceRecord:s}=w(r,t);if(i)return C(n,{...t,referenceRecord:{...t.referenceRecord,...s}})},C=(e,t)=>{for(const r of e)if("endpoint"===r.type){const e=R(r,t);if(e)return e}else if("error"===r.type)A(r,t);else{if("tree"!==r.type)throw new EndpointError(`Unknown endpoint rule: ${r}`);{const e=T(r,t);if(e)return e}}throw new EndpointError("Rules evaluation failed")},P=(e,t)=>{const{endpointParams:r,logger:n}=t,{parameters:i,rules:s}=e;t.logger?.debug?.(`${c} Initial EndpointParams: ${u(r)}`);const o=Object.entries(i).filter((([,e])=>null!=e.default)).map((([e,t])=>[e,t.default]));if(o.length>0)for(const[e,t]of o)r[e]=r[e]??t;const a=Object.entries(i).filter((([,e])=>e.required)).map((([e])=>e));for(const e of a)if(null==r[e])throw new EndpointError(`Missing required parameter: '${e}'`);const d=C(s,{endpointParams:r,logger:n,referenceRecord:{}});if(t.endpointParams?.Endpoint)try{const e=new URL(t.endpointParams.Endpoint),{protocol:r,port:n}=e;d.url.protocol=r,d.url.port=n}catch(e){}return t.logger?.debug?.(`${c} Resolved endpoint: ${u(d)}`),d}},95773:(e,t,r)=>{r.d(t,{J:()=>i,$:()=>s});var n=r(66627);const i=e=>e[n.zK]||(e[n.zK]={}),s=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t}},88383:(e,t,r)=>{var n;r.d(t,{AY:()=>AdaptiveRetryStrategy,J:()=>i,CA:()=>s,lk:()=>a,r5:()=>c,Ul:()=>n,Uz:()=>StandardRetryStrategy_StandardRetryStrategy}),function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"}(n||(n={}));const i=3,s=n.STANDARD;var o=r(68086);class DefaultRateLimiter{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,o.pK)(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 r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}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 a="amz-sdk-invocation-id",c="amz-sdk-request",u=({retryDelay:e,retryCount:t,retryCost:r})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(2e4,e),getRetryCost:()=>r});class StandardRetryStrategy_StandardRetryStrategy{constructor(e){this.maxAttempts=e,this.mode=n.STANDARD,this.capacity=500,this.retryBackoffStrategy=(()=>{let e=100;return{computeNextBackoffDelay:t=>Math.floor(Math.min(2e4,Math.random()*2**t*e)),setDelayBase:t=>{e=t}}})(),this.maxAttemptsProvider="function"==typeof e?e:async()=>e}async acquireInitialRetryToken(e){return u({retryDelay:100,retryCount:0})}async refreshRetryTokenForRetry(e,t){const r=await this.getMaxAttempts();if(this.shouldRetry(e,t,r)){const r=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===r?500:100);const n=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),i=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,n):n,s=this.getCapacityCost(r);return this.capacity-=s,u({retryDelay:i,retryCount:e.getRetryCount()+1,retryCost:s})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(500,this.capacity+(e.getRetryCost()??1))}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 ${i}`),i}}shouldRetry(e,t,r){return e.getRetryCount()+1<r&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return"TRANSIENT"===e?10:5}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}class AdaptiveRetryStrategy{constructor(e,t){this.maxAttemptsProvider=e,this.mode=n.ADAPTIVE;const{rateLimiter:r}=t??{};this.rateLimiter=r??new DefaultRateLimiter,this.standardRetryStrategy=new StandardRetryStrategy_StandardRetryStrategy(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)}}},5163:(e,t,r)=>{r.r(t),r.d(t,{__assign:()=>s,__asyncDelegator:()=>S,__asyncGenerator:()=>v,__asyncValues:()=>b,__await:()=>w,__awaiter:()=>d,__classPrivateFieldGet:()=>T,__classPrivateFieldSet:()=>C,__createBinding:()=>f,__decorate:()=>a,__exportStar:()=>p,__extends:()=>i,__generator:()=>l,__importDefault:()=>A,__importStar:()=>R,__makeTemplateObject:()=>E,__metadata:()=>u,__param:()=>c,__read:()=>g,__rest:()=>o,__spread:()=>y,__spreadArrays:()=>m,__values:()=>h});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var s=function(){return s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)};function o(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function a(e,t,r,n){var i,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,r,o):i(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,r,n){return new(r||(r=Promise))((function(i,s){function o(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))}function l(e,t){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}function f(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function p(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function m(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,i++)n[i]=s[o];return n}function w(e){return this instanceof w?(this.v=e,this):new w(e)}function v(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),s=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){s.push([e,t,r,n])>1||a(e,t)}))})}function a(e,t){try{(r=i[e](t)).value instanceof w?Promise.resolve(r.value.v).then(c,u):d(s[0][2],r)}catch(e){d(s[0][3],e)}var r}function c(e){a("next",e)}function u(e){a("throw",e)}function d(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function S(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:w(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function R(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function A(e){return e&&e.__esModule?e:{default:e}}function T(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function C(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}}};
@@ -1,14 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */
package/dist/744.js DELETED
@@ -1 +0,0 @@
1
- "use strict";exports.id=744,exports.ids=[744],exports.modules={55423:(e,t,n)=>{n.d(t,{U$:()=>C,Cw:()=>S});var r=n(31388),s=n(75795),i=n(43080),o=n(51630),a=n(69337),c=n(20782),l=n(70930);class AssumeRoleWithWebIdentityCommand extends(o.mY.classBuilder().ep({...a.q}).m((function(e,t,n,r){return[(0,i.p2)(n,this.serialize,this.deserialize),(0,s.a3)(n,e.getEndpointParameterInstructions())]})).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").f(c.Cz,c.b4).ser(l.pO).de(l.l$).build()){}const d="us-east-1",u=async(e,t,n)=>{const r="function"==typeof e?await e():e,s="function"==typeof t?await t():t;return n?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${r} (provider)`,`${s} (parent client)`,`${d} (STS default)`),r??s??d},g=(e,t)=>{let n,s;return async(i,o)=>{if(s=i,!n){const{logger:r=e?.parentClientConfig?.logger,region:i,requestHandler:o=e?.parentClientConfig?.requestHandler,credentialProviderLogger:a}=e,c=await u(i,e?.parentClientConfig?.region,a);n=new t({credentialDefaultProvider:()=>async()=>s,region:c,requestHandler:o,logger:r})}const{Credentials:a}=await n.send(new r.x(o));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);return{accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,credentialScope:a.CredentialScope}}},p=(e,t)=>{let n;return async r=>{if(!n){const{logger:r=e?.parentClientConfig?.logger,region:s,requestHandler:i=e?.parentClientConfig?.requestHandler,credentialProviderLogger:o}=e,a=await u(s,e?.parentClientConfig?.region,o);n=new t({region:a,requestHandler:i,logger:r})}const{Credentials:s}=await n.send(new AssumeRoleWithWebIdentityCommand(r));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`);return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,credentialScope:s.CredentialScope}}};var f=n(66792);const y=(e,t)=>t?class CustomizableSTSClient extends e{constructor(e){super(e);for(const e of t)this.middlewareStack.use(e)}}:e,C=(e={},t)=>g(e,y(f.X,t)),S=(e={},t)=>p(e,y(f.X,t))},7744:(e,t,n)=>{n.d(t,{getDefaultRoleAssumer:()=>r.U$});var r=n(55423)}};
package/dist/821.js DELETED
@@ -1 +0,0 @@
1
- "use strict";exports.id=821,exports.ids=[821],exports.modules={79779:(e,t,r)=>{r.d(t,{e1:()=>n,fk:()=>i,mJ:()=>s});var o=r(1742);const n=(e,t)=>(0,o.J)(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{}})),i=async(e,t)=>{const r=await n(e,t);return r.message=r.message??r.Message,r},s=(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=(n=e.headers,i="x-amzn-errortype",Object.keys(n).find((e=>e.toLowerCase()===i.toLowerCase())));var n,i;return void 0!==o?r(e.headers[o]):void 0!==t.code?r(t.code):void 0!==t.__type?r(t.__type):void 0}},49821:(e,t,r)=>{r.d(t,{CreateTokenCommand:()=>CreateTokenCommand,SSOOIDCClient:()=>SSOOIDCClient});var o=r(75795),n=r(43080),i=r(51630);const s={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};class SSOOIDCServiceException extends i.sI{constructor(e){super(e),Object.setPrototypeOf(this,SSOOIDCServiceException.prototype)}}class AccessDeniedException extends SSOOIDCServiceException{constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,AccessDeniedException.prototype),this.error=e.error,this.error_description=e.error_description}}class AuthorizationPendingException extends SSOOIDCServiceException{constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e}),this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,AuthorizationPendingException.prototype),this.error=e.error,this.error_description=e.error_description}}class ExpiredTokenException extends SSOOIDCServiceException{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,ExpiredTokenException.prototype),this.error=e.error,this.error_description=e.error_description}}class InternalServerException extends SSOOIDCServiceException{constructor(e){super({name:"InternalServerException",$fault:"server",...e}),this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,InternalServerException.prototype),this.error=e.error,this.error_description=e.error_description}}class InvalidClientException extends SSOOIDCServiceException{constructor(e){super({name:"InvalidClientException",$fault:"client",...e}),this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,InvalidClientException.prototype),this.error=e.error,this.error_description=e.error_description}}class InvalidGrantException extends SSOOIDCServiceException{constructor(e){super({name:"InvalidGrantException",$fault:"client",...e}),this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,InvalidGrantException.prototype),this.error=e.error,this.error_description=e.error_description}}class InvalidRequestException extends SSOOIDCServiceException{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,InvalidRequestException.prototype),this.error=e.error,this.error_description=e.error_description}}class InvalidScopeException extends SSOOIDCServiceException{constructor(e){super({name:"InvalidScopeException",$fault:"client",...e}),this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,InvalidScopeException.prototype),this.error=e.error,this.error_description=e.error_description}}class SlowDownException extends SSOOIDCServiceException{constructor(e){super({name:"SlowDownException",$fault:"client",...e}),this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,SlowDownException.prototype),this.error=e.error,this.error_description=e.error_description}}class UnauthorizedClientException extends SSOOIDCServiceException{constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e}),this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,UnauthorizedClientException.prototype),this.error=e.error,this.error_description=e.error_description}}class UnsupportedGrantTypeException extends SSOOIDCServiceException{constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e}),this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,UnsupportedGrantTypeException.prototype),this.error=e.error,this.error_description=e.error_description}}class InvalidRequestRegionException extends SSOOIDCServiceException{constructor(e){super({name:"InvalidRequestRegionException",$fault:"client",...e}),this.name="InvalidRequestRegionException",this.$fault="client",Object.setPrototypeOf(this,InvalidRequestRegionException.prototype),this.error=e.error,this.error_description=e.error_description,this.endpoint=e.endpoint,this.region=e.region}}class InvalidClientMetadataException extends SSOOIDCServiceException{constructor(e){super({name:"InvalidClientMetadataException",$fault:"client",...e}),this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,InvalidClientMetadataException.prototype),this.error=e.error,this.error_description=e.error_description}}const a=e=>({...e,...e.clientSecret&&{clientSecret:i.oc},...e.refreshToken&&{refreshToken:i.oc}}),c=e=>({...e,...e.accessToken&&{accessToken:i.oc},...e.refreshToken&&{refreshToken:i.oc},...e.idToken&&{idToken:i.oc}});var p=r(79779),d=r(68424);const u=async(e,t)=>{const r=(0,d.cu)(e,t);let o;return r.bp("/token"),o=JSON.stringify((0,i.qn)(e,{clientId:[],clientSecret:[],code:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:e=>(0,i.F3)(e)})),r.m("POST").h({"content-type":"application/json"}).b(o),r.build()},l=async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return h(e,t);const r=(0,i.UI)({$metadata:D(e)}),o=(0,i.CE)((0,i.Wh)(await(0,p.e1)(e.body,t)),"body"),n=(0,i.qn)(o,{accessToken:i.pY,expiresIn:i.u$,idToken:i.pY,refreshToken:i.pY,tokenType:i.pY});return Object.assign(r,n),r},h=async(e,t)=>{const r={...e,body:await(0,p.fk)(e.body,t)},o=(0,p.mJ)(e,r.body);switch(o){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await m(r,t);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await y(r,t);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await S(r,t);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await E(r,t);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await v(r,t);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await f(r,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await g(r,t);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await O(r,t);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await b(r,t);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await C(r,t);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await P(r,t);case"InvalidRequestRegionException":case"com.amazonaws.ssooidc#InvalidRequestRegionException":throw await w(r,t);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await I(r,t);default:const n=r.body;return x({output:e,parsedBody:n,errorCode:o})}},x=(0,i.PC)(SSOOIDCServiceException),m=async(e,t)=>{const r=(0,i.UI)({}),o=e.body,n=(0,i.qn)(o,{error:i.pY,error_description:i.pY});Object.assign(r,n);const s=new AccessDeniedException({$metadata:D(e),...r});return(0,i.to)(s,e.body)},y=async(e,t)=>{const r=(0,i.UI)({}),o=e.body,n=(0,i.qn)(o,{error:i.pY,error_description:i.pY});Object.assign(r,n);const s=new AuthorizationPendingException({$metadata:D(e),...r});return(0,i.to)(s,e.body)},S=async(e,t)=>{const r=(0,i.UI)({}),o=e.body,n=(0,i.qn)(o,{error:i.pY,error_description:i.pY});Object.assign(r,n);const s=new ExpiredTokenException({$metadata:D(e),...r});return(0,i.to)(s,e.body)},E=async(e,t)=>{const r=(0,i.UI)({}),o=e.body,n=(0,i.qn)(o,{error:i.pY,error_description:i.pY});Object.assign(r,n);const s=new InternalServerException({$metadata:D(e),...r});return(0,i.to)(s,e.body)},v=async(e,t)=>{const r=(0,i.UI)({}),o=e.body,n=(0,i.qn)(o,{error:i.pY,error_description:i.pY});Object.assign(r,n);const s=new InvalidClientException({$metadata:D(e),...r});return(0,i.to)(s,e.body)},I=async(e,t)=>{const r=(0,i.UI)({}),o=e.body,n=(0,i.qn)(o,{error:i.pY,error_description:i.pY});Object.assign(r,n);const s=new InvalidClientMetadataException({$metadata:D(e),...r});return(0,i.to)(s,e.body)},f=async(e,t)=>{const r=(0,i.UI)({}),o=e.body,n=(0,i.qn)(o,{error:i.pY,error_description:i.pY});Object.assign(r,n);const s=new InvalidGrantException({$metadata:D(e),...r});return(0,i.to)(s,e.body)},g=async(e,t)=>{const r=(0,i.UI)({}),o=e.body,n=(0,i.qn)(o,{error:i.pY,error_description:i.pY});Object.assign(r,n);const s=new InvalidRequestException({$metadata:D(e),...r});return(0,i.to)(s,e.body)},w=async(e,t)=>{const r=(0,i.UI)({}),o=e.body,n=(0,i.qn)(o,{endpoint:i.pY,error:i.pY,error_description:i.pY,region:i.pY});Object.assign(r,n);const s=new InvalidRequestRegionException({$metadata:D(e),...r});return(0,i.to)(s,e.body)},O=async(e,t)=>{const r=(0,i.UI)({}),o=e.body,n=(0,i.qn)(o,{error:i.pY,error_description:i.pY});Object.assign(r,n);const s=new InvalidScopeException({$metadata:D(e),...r});return(0,i.to)(s,e.body)},b=async(e,t)=>{const r=(0,i.UI)({}),o=e.body,n=(0,i.qn)(o,{error:i.pY,error_description:i.pY});Object.assign(r,n);const s=new SlowDownException({$metadata:D(e),...r});return(0,i.to)(s,e.body)},C=async(e,t)=>{const r=(0,i.UI)({}),o=e.body,n=(0,i.qn)(o,{error:i.pY,error_description:i.pY});Object.assign(r,n);const s=new UnauthorizedClientException({$metadata:D(e),...r});return(0,i.to)(s,e.body)},P=async(e,t)=>{const r=(0,i.UI)({}),o=e.body,n=(0,i.qn)(o,{error:i.pY,error_description:i.pY});Object.assign(r,n);const s=new UnsupportedGrantTypeException({$metadata:D(e),...r});return(0,i.to)(s,e.body)},D=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 CreateTokenCommand extends(i.mY.classBuilder().ep({...s}).m((function(e,t,r,i){return[(0,n.p2)(r,this.serialize,this.deserialize),(0,o.a3)(r,e.getEndpointParameterInstructions())]})).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(a,c).ser(u).de(l).build()){}var k=r(37493),A=r(70183),_=r(23703),$=r(48435),q=r(22144),z=r(89362),U=r(94726),R=r(16301),T=r(95773);const j=async(e,t,r)=>({operation:(0,T.J)(t).operation,region:await(0,T.$)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});const Y=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},G="3.529.1",M=e=>()=>Promise.resolve().then(r.bind(r,66495)).then((({defaultProvider:t})=>t(e)()));var F=r(84629),H=r(95640),J=r(87954),V=r(46807),B=r(11728),N=r(91743),L=r(88383),W=r(95071),K=r(53918),Z=r(76954),Q=r(7242),X=r(92718);const ee="required",te="fn",re="argv",oe="ref",ne="isSet",ie="booleanEquals",se="error",ae="endpoint",ce="tree",pe="PartitionResult",de="getAttr",ue={[ee]:!1,type:"String"},le={[ee]:!0,default:!1,type:"Boolean"},he={[oe]:"Endpoint"},xe={[te]:ie,[re]:[{[oe]:"UseFIPS"},!0]},me={[te]:ie,[re]:[{[oe]:"UseDualStack"},!0]},ye={},Se={[te]:de,[re]:[{[oe]:pe},"supportsFIPS"]},Ee={[oe]:pe},ve={[te]:ie,[re]:[!0,{[te]:de,[re]:[Ee,"supportsDualStack"]}]},Ie=[xe],fe=[me],ge=[{[oe]:"Region"}],we={version:"1.0",parameters:{Region:ue,UseDualStack:le,UseFIPS:le,Endpoint:ue},rules:[{conditions:[{[te]:ne,[re]:[he]}],rules:[{conditions:Ie,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:se},{conditions:fe,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:se},{endpoint:{url:he,properties:ye,headers:ye},type:ae}],type:ce},{conditions:[{[te]:ne,[re]:ge}],rules:[{conditions:[{[te]:"aws.partition",[re]:ge,assign:pe}],rules:[{conditions:[xe,me],rules:[{conditions:[{[te]:ie,[re]:[true,Se]},ve],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ye,headers:ye},type:ae}],type:ce},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:se}],type:ce},{conditions:Ie,rules:[{conditions:[{[te]:ie,[re]:[Se,true]}],rules:[{conditions:[{[te]:"stringEquals",[re]:[{[te]:de,[re]:[Ee,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:ye,headers:ye},type:ae},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ye,headers:ye},type:ae}],type:ce},{error:"FIPS is enabled but this partition does not support FIPS",type:se}],type:ce},{conditions:fe,rules:[{conditions:[ve],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ye,headers:ye},type:ae}],type:ce},{error:"DualStack is enabled but this partition does not support DualStack",type:se}],type:ce},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:ye,headers:ye},type:ae}],type:ce}],type:ce},{error:"Invalid Configuration: Missing Region",type:se}]},Oe=(e,t={})=>(0,X.B1)(we,{endpointParams:e,logger:t.logger});var be=r(66918);const Ce=e=>{(0,i.H_)(process.version);const t=(0,be.j)(e),r=()=>t().then(i.jv),o=(e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Z.G,base64Encoder:e?.base64Encoder??Z.s,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Oe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Y,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new W.V},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new d.oH}],logger:e?.logger??new i.vk,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??K.e,utf8Decoder:e?.utf8Decoder??Q.$x,utf8Encoder:e?.utf8Encoder??Q.GZ}))(e);return(0,F.H)(process.version),{...o,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??N.W,credentialDefaultProvider:e?.credentialDefaultProvider??M,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,H.fV)({serviceId:o.serviceId,clientVersion:G}),maxAttempts:e?.maxAttempts??(0,V.M)(U.Hs),region:e?.region??(0,V.M)(q._c,q.zb),requestHandler:B.NA.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,V.M)({...U.aK,default:async()=>(await r()).retryMode||L.CA}),sha256:e?.sha256??J.k.bind(null,"sha256"),streamCollector:e?.streamCollector??B.CF,useDualstackEndpoint:e?.useDualstackEndpoint??(0,V.M)(q.G7),useFipsEndpoint:e?.useFipsEndpoint??(0,V.M)(q.NL)}};var Pe=r(31716),De=r(25640);const ke=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 SSOOIDCClient extends i.KU{constructor(...[e]){const t=Ce(e||{}),r=(n=t,{...n,useDualstackEndpoint:n.useDualstackEndpoint??!1,useFipsEndpoint:n.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"});var n;const s=(0,q.Xb)(r),a=(0,o.uW)(s),c=(0,U.BC)(a),p=(0,k.S8)(c),u=(0,$.er)(p);var l;const h=((e,t)=>{const r={...(0,Pe.GW)(e),...(0,i.kE)(e),...(0,De.cA)(e),...ke(e)};return t.forEach((e=>e.configure(r))),{...e,...(0,Pe.A1)(r),...(0,i.SQ)(r),...(0,De.AO)(r),...(o=r,{httpAuthSchemes:o.httpAuthSchemes(),httpAuthSchemeProvider:o.httpAuthSchemeProvider(),credentials:o.credentials()})};var o})((l=u,{...(0,R.K)(l)}),e?.extensions||[]);super(h),this.config=h,this.middlewareStack.use((0,U.NQ)(this.config)),this.middlewareStack.use((0,z.VG)(this.config)),this.middlewareStack.use((0,k.G2)(this.config)),this.middlewareStack.use((0,A.cV)(this.config)),this.middlewareStack.use((0,_.eV)(this.config)),this.middlewareStack.use((0,$.XJ)(this.config)),this.middlewareStack.use((0,d.tZ)(this.config,{httpAuthSchemeParametersProvider:this.getDefaultHttpAuthSchemeParametersProvider(),identityProviderConfigProvider:this.getIdentityProviderConfigProvider()})),this.middlewareStack.use((0,d.aZ)(this.config))}destroy(){super.destroy()}getDefaultHttpAuthSchemeParametersProvider(){return j}getIdentityProviderConfigProvider(){return async e=>new d.K5({"aws.auth#sigv4":e.credentials})}}}};