@agentlang/lstudio 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{AwsJson1_1Protocol-D8lQS-Rk.js → AwsJson1_1Protocol-DFLJwuH1.js} +1 -1
- package/assets/index-B3fofhvc.css +1 -0
- package/assets/{index-C29ElNmj.js → index-BXKJtrGC.js} +1 -1
- package/assets/{index-D1kSoY9M.js → index-BZpMQdNP.js} +1084 -1082
- package/assets/{index-tiMnGCkm.js → index-BrNbsbhL.js} +1 -1
- package/assets/{index-D8iBh7cU.js → index-Bu-JL0OX.js} +1 -1
- package/assets/{index-D4z_hbl0-BUXHDjnp.js → index-D4z_hbl0-CBrin--i.js} +1 -1
- package/assets/{index-C_xZWFYS.js → index-DtYoOSPF.js} +1 -1
- package/assets/{index.browser-BFl5jDO5.js → index.browser-B58gZ56_.js} +3 -3
- package/assets/{loadCognitoIdentity-iRTOLCFD.js → loadCognitoIdentity-D4_xA0Mt.js} +1 -1
- package/assets/{loadSts-B4rFqvVX.js → loadSts-DLeP6HXw.js} +1 -1
- package/assets/{replService-db2RHQxf.js → replService-CQY9qPFM.js} +1 -1
- package/assets/{util-C6VsYPkJ.js → util-CJmpLmdc.js} +1 -1
- package/assets/{winston-1qzyIKCb-_MjolKi7.js → winston-1qzyIKCb-a1o3NXNR.js} +1 -1
- package/assets/{winston-CymGn6QT.js → winston-BPspOptF.js} +1 -1
- package/assets/{winston-utZxLNzu.js → winston-CkUzk05a.js} +1 -1
- package/assets/{winston-CtxF18qc-DJ5_vcVM.js → winston-CtxF18qc-CSPSJo9L.js} +1 -1
- package/index.html +2 -2
- package/package.json +1 -1
- package/assets/index-CUrde35K.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as S,A,S as I}from"./loadSts-
|
|
1
|
+
import{c as S,A,S as I}from"./loadSts-DLeP6HXw.js";import{b as Y,E as Z,e as O,I as ee,d as te,M as ne,P as oe,R as ie,a as re}from"./loadSts-DLeP6HXw.js";import{C as y,g as E,s as l}from"./index-DtYoOSPF.js";import{a as ae}from"./index-DtYoOSPF.js";import"./normalizeProvider-EC8cbfMc.js";import"./preload-helper-BlTxHScW.js";import"./index-BZpMQdNP.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-ChvoNxcO.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index.browser-BHPvGrwi-6Mh8eUw-.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./_commonjs-dynamic-modules-B7n8ZNar.js";function R(){return async()=>"us-east-1"}class x extends y.classBuilder().ep(S).m(function(t,o,i,n){return[E(i,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(A).build(){}const W=e=>{if(typeof e?.Arn=="string"){const t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}},T=async(e,t,o,i={})=>{const n=typeof e=="function"?await e():e,s=typeof t=="function"?await t():t,r=await R()();return o?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${n} (credential provider clientConfig)`,`${s} (contextual client)`,`${r} (STS default: AWS_REGION, profile region, or us-east-1)`),n??s??r},b=(e,t)=>{let o;return async i=>{if(!o){const{logger:d=e?.parentClientConfig?.logger,profile:m=e?.parentClientConfig?.profile,region:u,requestHandler:c=e?.parentClientConfig?.requestHandler,credentialProviderLogger:p,userAgentAppId:f=e?.parentClientConfig?.userAgentAppId}=e,g=await T(u,e?.parentClientConfig?.region,p,{}),C=!h(c);o=new t({...e,userAgentAppId:f,profile:m,region:g,requestHandler:C?c:void 0,logger:d})}const{Credentials:n,AssumedRoleUser:s}=await o.send(new x(i));if(!n||!n.AccessKeyId||!n.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${i.RoleArn}`);const r=W(s),a={accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,sessionToken:n.SessionToken,expiration:n.Expiration,...n.CredentialScope&&{credentialScope:n.CredentialScope},...r&&{accountId:r}};return r&&l(a,"RESOLVED_ACCOUNT_ID","T"),l(a,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),a}},h=e=>e?.metadata?.handlerProtocol==="h2",w=(e,t)=>t?class extends e{constructor(i){super(i);for(const n of t)this.middlewareStack.use(n)}}:e,J=(e={},t)=>b(e,w(I,t));export{y as $Command,Y as AssumeRoleCommand,x as AssumeRoleWithWebIdentityCommand,Z as ExpiredTokenException,O as IDPCommunicationErrorException,ee as IDPRejectedClaimException,te as InvalidIdentityTokenException,ne as MalformedPolicyDocumentException,oe as PackedPolicyTooLargeException,ie as RegionDisabledException,I as STSClient,re as STSServiceException,ae as __Client,J as getDefaultRoleAssumerWithWebIdentity};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as On,g as Tn}from"./_commonjsHelpers-D6-XlEtG.js";import{a as En,b as Nn,c as In,r as An}from"./winston-
|
|
1
|
+
import{a as On,g as Tn}from"./_commonjsHelpers-D6-XlEtG.js";import{a as En,b as Nn,c as In,r as An}from"./winston-BPspOptF.js";import{c as it,r as Pe}from"./_commonjs-dynamic-modules-B7n8ZNar.js";import{r as Fr}from"./util-CJmpLmdc.js";function Fn(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in e)){const u=Object.getOwnPropertyDescriptor(n,s);u&&Object.defineProperty(e,s,u.get?u:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Ut={exports:{}},Dr;function Rn(){return Dr||(Dr=1,(function(e,t){(function(r){e.exports=r()})(function(){return(function r(n,s,u){function g(L,j){if(!s[L]){if(!n[L]){var ee=typeof it=="function"&⁢if(!j&&ee)return ee(L,!0);if(T)return T(L,!0);throw new Error("Cannot find module '"+L+"'")}j=s[L]={exports:{}},n[L][0].call(j.exports,function(k){var Q=n[L][1][k];return g(Q||k)},j,j.exports,r,n,s,u)}return s[L].exports}for(var T=typeof it=="function"&&it,F=0;F<u.length;F++)g(u[F]);return g})({1:[function(r,n,s){(function(u,g,T,F,L,j,ee,k,Q){var M=r("crypto");function _(c,w){w=v(c,w);var o;return(o=w.algorithm!=="passthrough"?M.createHash(w.algorithm):new D).write===void 0&&(o.write=o.update,o.end=o.update),b(w,o).dispatch(c),o.update||o.end(""),o.digest?o.digest(w.encoding==="buffer"?void 0:w.encoding):(c=o.read(),w.encoding!=="buffer"?c.toString(w.encoding):c)}(s=n.exports=_).sha1=function(c){return _(c)},s.keys=function(c){return _(c,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},s.MD5=function(c){return _(c,{algorithm:"md5",encoding:"hex"})},s.keysMD5=function(c){return _(c,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var d=M.getHashes?M.getHashes().slice():["sha1","md5"],m=(d.push("passthrough"),["buffer","hex","binary","base64"]);function v(c,w){var o={};if(o.algorithm=(w=w||{}).algorithm||"sha1",o.encoding=w.encoding||"hex",o.excludeValues=!!w.excludeValues,o.algorithm=o.algorithm.toLowerCase(),o.encoding=o.encoding.toLowerCase(),o.ignoreUnknown=w.ignoreUnknown===!0,o.respectType=w.respectType!==!1,o.respectFunctionNames=w.respectFunctionNames!==!1,o.respectFunctionProperties=w.respectFunctionProperties!==!1,o.unorderedArrays=w.unorderedArrays===!0,o.unorderedSets=w.unorderedSets!==!1,o.unorderedObjects=w.unorderedObjects!==!1,o.replacer=w.replacer||void 0,o.excludeKeys=w.excludeKeys||void 0,c===void 0)throw new Error("Object argument required.");for(var f=0;f<d.length;++f)d[f].toLowerCase()===o.algorithm.toLowerCase()&&(o.algorithm=d[f]);if(d.indexOf(o.algorithm)===-1)throw new Error('Algorithm "'+o.algorithm+'" not supported. supported values: '+d.join(", "));if(m.indexOf(o.encoding)===-1&&o.algorithm!=="passthrough")throw new Error('Encoding "'+o.encoding+'" not supported. supported values: '+m.join(", "));return o}function S(c){if(typeof c=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(c))!=null}function b(c,w,o){o=o||[];function f(a){return w.update?w.update(a,"utf8"):w.write(a,"utf8")}return{dispatch:function(a){return this["_"+((a=c.replacer?c.replacer(a):a)===null?"null":typeof a)](a)},_object:function(a){var y,p=Object.prototype.toString.call(a),P=/\[object (.*)\]/i.exec(p);if(P=(P=P?P[1]:"unknown:["+p+"]").toLowerCase(),0<=(p=o.indexOf(a)))return this.dispatch("[CIRCULAR:"+p+"]");if(o.push(a),T!==void 0&&T.isBuffer&&T.isBuffer(a))return f("buffer:"),f(a);if(P==="object"||P==="function"||P==="asyncfunction")return p=Object.keys(a),c.unorderedObjects&&(p=p.sort()),c.respectType===!1||S(a)||p.splice(0,0,"prototype","__proto__","constructor"),c.excludeKeys&&(p=p.filter(function(U){return!c.excludeKeys(U)})),f("object:"+p.length+":"),y=this,p.forEach(function(U){y.dispatch(U),f(":"),c.excludeValues||y.dispatch(a[U]),f(",")});if(!this["_"+P]){if(c.ignoreUnknown)return f("["+P+"]");throw new Error('Unknown object type "'+P+'"')}this["_"+P](a)},_array:function(a,U){U=U!==void 0?U:c.unorderedArrays!==!1;var p=this;if(f("array:"+a.length+":"),!U||a.length<=1)return a.forEach(function(C){return p.dispatch(C)});var P=[],U=a.map(function(C){var R=new D,B=o.slice();return b(c,R,B).dispatch(C),P=P.concat(B.slice(o.length)),R.read().toString()});return o=o.concat(P),U.sort(),this._array(U,!1)},_date:function(a){return f("date:"+a.toJSON())},_symbol:function(a){return f("symbol:"+a.toString())},_error:function(a){return f("error:"+a.toString())},_boolean:function(a){return f("bool:"+a.toString())},_string:function(a){f("string:"+a.length+":"),f(a.toString())},_function:function(a){f("fn:"),S(a)?this.dispatch("[native]"):this.dispatch(a.toString()),c.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(a.name)),c.respectFunctionProperties&&this._object(a)},_number:function(a){return f("number:"+a.toString())},_xml:function(a){return f("xml:"+a.toString())},_null:function(){return f("Null")},_undefined:function(){return f("Undefined")},_regexp:function(a){return f("regex:"+a.toString())},_uint8array:function(a){return f("uint8array:"),this.dispatch(Array.prototype.slice.call(a))},_uint8clampedarray:function(a){return f("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(a))},_int8array:function(a){return f("int8array:"),this.dispatch(Array.prototype.slice.call(a))},_uint16array:function(a){return f("uint16array:"),this.dispatch(Array.prototype.slice.call(a))},_int16array:function(a){return f("int16array:"),this.dispatch(Array.prototype.slice.call(a))},_uint32array:function(a){return f("uint32array:"),this.dispatch(Array.prototype.slice.call(a))},_int32array:function(a){return f("int32array:"),this.dispatch(Array.prototype.slice.call(a))},_float32array:function(a){return f("float32array:"),this.dispatch(Array.prototype.slice.call(a))},_float64array:function(a){return f("float64array:"),this.dispatch(Array.prototype.slice.call(a))},_arraybuffer:function(a){return f("arraybuffer:"),this.dispatch(new Uint8Array(a))},_url:function(a){return f("url:"+a.toString())},_map:function(a){return f("map:"),a=Array.from(a),this._array(a,c.unorderedSets!==!1)},_set:function(a){return f("set:"),a=Array.from(a),this._array(a,c.unorderedSets!==!1)},_file:function(a){return f("file:"),this.dispatch([a.name,a.size,a.type,a.lastModfied])},_blob:function(){if(c.ignoreUnknown)return f("[blob]");throw Error(`Hashing Blob objects is currently not supported
|
|
2
2
|
(see https://github.com/puleos/object-hash/issues/26)
|
|
3
3
|
Use "options.replacer" or "options.ignoreUnknown"
|
|
4
4
|
`)},_domwindow:function(){return f("domwindow")},_bigint:function(a){return f("bigint:"+a.toString())},_process:function(){return f("process")},_timer:function(){return f("timer")},_pipe:function(){return f("pipe")},_tcp:function(){return f("tcp")},_udp:function(){return f("udp")},_tty:function(){return f("tty")},_statwatcher:function(){return f("statwatcher")},_securecontext:function(){return f("securecontext")},_connection:function(){return f("connection")},_zlib:function(){return f("zlib")},_context:function(){return f("context")},_nodescript:function(){return f("nodescript")},_httpparser:function(){return f("httpparser")},_dataview:function(){return f("dataview")},_signal:function(){return f("signal")},_fsevent:function(){return f("fsevent")},_tlswrap:function(){return f("tlswrap")}}}function D(){return{buf:"",write:function(c){this.buf+=c},end:function(c){this.buf+=c},read:function(){return this.buf}}}s.writeToStream=function(c,w,o){return o===void 0&&(o=w,w={}),b(w=v(c,w),o).dispatch(c)}}).call(this,r("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},r("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(r,n,s){(function(u,g,T,F,L,j,ee,k,Q){(function(M){var _=typeof Uint8Array<"u"?Uint8Array:Array,d=43,m=47,v=48,S=97,b=65,D=45,c=95;function w(o){return o=o.charCodeAt(0),o===d||o===D?62:o===m||o===c?63:o<v?-1:o<v+10?o-v+26+26:o<b+26?o-b:o<S+26?o-S+26:void 0}M.toByteArray=function(o){var f,a;if(0<o.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var y=o.length,y=o.charAt(y-2)==="="?2:o.charAt(y-1)==="="?1:0,p=new _(3*o.length/4-y),P=0<y?o.length-4:o.length,U=0;function C(R){p[U++]=R}for(f=0;f<P;f+=4,0)C((16711680&(a=w(o.charAt(f))<<18|w(o.charAt(f+1))<<12|w(o.charAt(f+2))<<6|w(o.charAt(f+3))))>>16),C((65280&a)>>8),C(255&a);return y==2?C(255&(a=w(o.charAt(f))<<2|w(o.charAt(f+1))>>4)):y==1&&(C((a=w(o.charAt(f))<<10|w(o.charAt(f+1))<<4|w(o.charAt(f+2))>>2)>>8&255),C(255&a)),p},M.fromByteArray=function(o){var f,a,y,p,P=o.length%3,U="";function C(R){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(R)}for(f=0,y=o.length-P;f<y;f+=3)a=(o[f]<<16)+(o[f+1]<<8)+o[f+2],U+=C((p=a)>>18&63)+C(p>>12&63)+C(p>>6&63)+C(63&p);switch(P){case 1:U=(U+=C((a=o[o.length-1])>>2))+C(a<<4&63)+"==";break;case 2:U=(U=(U+=C((a=(o[o.length-2]<<8)+o[o.length-1])>>10))+C(a>>4&63))+C(a<<2&63)+"="}return U}})(s===void 0?this.base64js={}:s)}).call(this,r("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},r("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(r,n,s){(function(u,g,d,F,L,j,ee,k,Q){var M=r("base64-js"),_=r("ieee754");function d(i,l,h){if(!(this instanceof d))return new d(i,l,h);var O,x,I,$,se=typeof i;if(l==="base64"&&se=="string")for(i=($=i).trim?$.trim():$.replace(/^\s+|\s+$/g,"");i.length%4!=0;)i+="=";if(se=="number")O=V(i);else if(se=="string")O=d.byteLength(i,l);else{if(se!="object")throw new Error("First argument needs to be a number, array or string.");O=V(i.length)}if(d._useTypedArrays?x=d._augment(new Uint8Array(O)):((x=this).length=O,x._isBuffer=!0),d._useTypedArrays&&typeof i.byteLength=="number")x._set(i);else if(K($=i)||d.isBuffer($)||$&&typeof $=="object"&&typeof $.length=="number")for(I=0;I<O;I++)d.isBuffer(i)?x[I]=i.readUInt8(I):x[I]=i[I];else if(se=="string")x.write(i,0,l);else if(se=="number"&&!d._useTypedArrays&&!h)for(I=0;I<O;I++)x[I]=0;return x}function m(i,l,h,O){return d._charsWritten=ye((function(x){for(var I=[],$=0;$<x.length;$++)I.push(255&x.charCodeAt($));return I})(l),i,h,O)}function v(i,l,h,O){return d._charsWritten=ye((function(x){for(var I,$,se=[],ue=0;ue<x.length;ue++)$=x.charCodeAt(ue),I=$>>8,$=$%256,se.push($),se.push(I);return se})(l),i,h,O)}function S(i,l,h){var O="";h=Math.min(i.length,h);for(var x=l;x<h;x++)O+=String.fromCharCode(i[x]);return O}function b(i,l,h,I){I||(E(typeof h=="boolean","missing or invalid endian"),E(l!=null,"missing offset"),E(l+1<i.length,"Trying to read beyond buffer length"));var x,I=i.length;if(!(I<=l))return h?(x=i[l],l+1<I&&(x|=i[l+1]<<8)):(x=i[l]<<8,l+1<I&&(x|=i[l+1])),x}function D(i,l,h,I){I||(E(typeof h=="boolean","missing or invalid endian"),E(l!=null,"missing offset"),E(l+3<i.length,"Trying to read beyond buffer length"));var x,I=i.length;if(!(I<=l))return h?(l+2<I&&(x=i[l+2]<<16),l+1<I&&(x|=i[l+1]<<8),x|=i[l],l+3<I&&(x+=i[l+3]<<24>>>0)):(l+1<I&&(x=i[l+1]<<16),l+2<I&&(x|=i[l+2]<<8),l+3<I&&(x|=i[l+3]),x+=i[l]<<24>>>0),x}function c(i,l,h,O){if(O||(E(typeof h=="boolean","missing or invalid endian"),E(l!=null,"missing offset"),E(l+1<i.length,"Trying to read beyond buffer length")),!(i.length<=l))return O=b(i,l,h,!0),32768&O?-1*(65535-O+1):O}function w(i,l,h,O){if(O||(E(typeof h=="boolean","missing or invalid endian"),E(l!=null,"missing offset"),E(l+3<i.length,"Trying to read beyond buffer length")),!(i.length<=l))return O=D(i,l,h,!0),2147483648&O?-1*(4294967295-O+1):O}function o(i,l,h,O){return O||(E(typeof h=="boolean","missing or invalid endian"),E(l+3<i.length,"Trying to read beyond buffer length")),_.read(i,l,h,23,4)}function f(i,l,h,O){return O||(E(typeof h=="boolean","missing or invalid endian"),E(l+7<i.length,"Trying to read beyond buffer length")),_.read(i,l,h,52,8)}function a(i,l,h,O,x){if(x||(E(l!=null,"missing value"),E(typeof O=="boolean","missing or invalid endian"),E(h!=null,"missing offset"),E(h+1<i.length,"trying to write beyond buffer length"),Lt(l,65535)),x=i.length,!(x<=h))for(var I=0,$=Math.min(x-h,2);I<$;I++)i[h+I]=(l&255<<8*(O?I:1-I))>>>8*(O?I:1-I)}function y(i,l,h,O,x){if(x||(E(l!=null,"missing value"),E(typeof O=="boolean","missing or invalid endian"),E(h!=null,"missing offset"),E(h+3<i.length,"trying to write beyond buffer length"),Lt(l,4294967295)),x=i.length,!(x<=h))for(var I=0,$=Math.min(x-h,4);I<$;I++)i[h+I]=l>>>8*(O?I:3-I)&255}function p(i,l,h,O,x){x||(E(l!=null,"missing value"),E(typeof O=="boolean","missing or invalid endian"),E(h!=null,"missing offset"),E(h+1<i.length,"Trying to write beyond buffer length"),Wt(l,32767,-32768)),i.length<=h||a(i,0<=l?l:65535+l+1,h,O,x)}function P(i,l,h,O,x){x||(E(l!=null,"missing value"),E(typeof O=="boolean","missing or invalid endian"),E(h!=null,"missing offset"),E(h+3<i.length,"Trying to write beyond buffer length"),Wt(l,2147483647,-2147483648)),i.length<=h||y(i,0<=l?l:4294967295+l+1,h,O,x)}function U(i,l,h,O,x){x||(E(l!=null,"missing value"),E(typeof O=="boolean","missing or invalid endian"),E(h!=null,"missing offset"),E(h+3<i.length,"Trying to write beyond buffer length"),Sr(l,34028234663852886e22,-34028234663852886e22)),i.length<=h||_.write(i,l,h,O,23,4)}function C(i,l,h,O,x){x||(E(l!=null,"missing value"),E(typeof O=="boolean","missing or invalid endian"),E(h!=null,"missing offset"),E(h+7<i.length,"Trying to write beyond buffer length"),Sr(l,17976931348623157e292,-17976931348623157e292)),i.length<=h||_.write(i,l,h,O,52,8)}s.Buffer=d,s.SlowBuffer=d,s.INSPECT_MAX_BYTES=50,d.poolSize=8192,d._useTypedArrays=(function(){try{var i=new ArrayBuffer(0),l=new Uint8Array(i);return l.foo=function(){return 42},l.foo()===42&&typeof l.subarray=="function"}catch{return!1}})(),d.isEncoding=function(i){switch(String(i).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.isBuffer=function(i){return!(i==null||!i._isBuffer)},d.byteLength=function(i,l){var h;switch(i+="",l||"utf8"){case"hex":h=i.length/2;break;case"utf8":case"utf-8":h=de(i).length;break;case"ascii":case"binary":case"raw":h=i.length;break;case"base64":h=Te(i).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":h=2*i.length;break;default:throw new Error("Unknown encoding")}return h},d.concat=function(i,l){if(E(K(i),`Usage: Buffer.concat(list, [totalLength])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as Er,l as Nr}from"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import{y as Or,t as Lr,N as Ar,L as Cn,v as Fr}from"./winston-1qzyIKCb-
|
|
1
|
+
import{f as Er,l as Nr}from"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import{y as Or,t as Lr,N as Ar,L as Cn,v as Fr}from"./winston-1qzyIKCb-a1o3NXNR.js";import{c as We}from"./__vite-browser-external-DLjrMatA.js";import{r as it}from"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import{E as Rt}from"./inherits_browser-nmOknR35-Bp0mvRSL.js";import{Y as Ir}from"./index-6mKfgpcs-DsgiI2lM.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./util-CJmpLmdc.js";import"./index-BZpMQdNP.js";import"./index-ChvoNxcO.js";import"./preload-helper-BlTxHScW.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index.browser-BHPvGrwi-6Mh8eUw-.js";import"./_commonjs-dynamic-modules-B7n8ZNar.js";function Cr(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const u=Object.getOwnPropertyDescriptor(r,s);u&&Object.defineProperty(e,s,u.get?u:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var kn={exports:{}},Yn;function Ur(){return Yn||(Yn=1,(function(e,t){(function(n){e.exports=n()})(function(){return(function n(r,s,u){function y(C,P){if(!s[C]){if(!r[C]){var ee=typeof it=="function"&⁢if(!P&&ee)return ee(C,!0);if(E)return E(C,!0);throw new Error("Cannot find module '"+C+"'")}P=s[C]={exports:{}},r[C][0].call(P.exports,function(M){var Q=r[C][1][M];return y(Q||M)},P,P.exports,n,r,s,u)}return s[C].exports}for(var E=typeof it=="function"&&it,F=0;F<u.length;F++)y(u[F]);return y})({1:[function(n,r,s){(function(u,y,E,F,C,P,ee,M,Q){var k=n("crypto");function g(d,_){_=v(d,_);var o;return(o=_.algorithm!=="passthrough"?k.createHash(_.algorithm):new D).write===void 0&&(o.write=o.update,o.end=o.update),b(_,o).dispatch(d),o.update||o.end(""),o.digest?o.digest(_.encoding==="buffer"?void 0:_.encoding):(d=o.read(),_.encoding!=="buffer"?d.toString(_.encoding):d)}(s=r.exports=g).sha1=function(d){return g(d)},s.keys=function(d){return g(d,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},s.MD5=function(d){return g(d,{algorithm:"md5",encoding:"hex"})},s.keysMD5=function(d){return g(d,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var c=k.getHashes?k.getHashes().slice():["sha1","md5"],p=(c.push("passthrough"),["buffer","hex","binary","base64"]);function v(d,_){var o={};if(o.algorithm=(_=_||{}).algorithm||"sha1",o.encoding=_.encoding||"hex",o.excludeValues=!!_.excludeValues,o.algorithm=o.algorithm.toLowerCase(),o.encoding=o.encoding.toLowerCase(),o.ignoreUnknown=_.ignoreUnknown===!0,o.respectType=_.respectType!==!1,o.respectFunctionNames=_.respectFunctionNames!==!1,o.respectFunctionProperties=_.respectFunctionProperties!==!1,o.unorderedArrays=_.unorderedArrays===!0,o.unorderedSets=_.unorderedSets!==!1,o.unorderedObjects=_.unorderedObjects!==!1,o.replacer=_.replacer||void 0,o.excludeKeys=_.excludeKeys||void 0,d===void 0)throw new Error("Object argument required.");for(var f=0;f<c.length;++f)c[f].toLowerCase()===o.algorithm.toLowerCase()&&(o.algorithm=c[f]);if(c.indexOf(o.algorithm)===-1)throw new Error('Algorithm "'+o.algorithm+'" not supported. supported values: '+c.join(", "));if(p.indexOf(o.encoding)===-1&&o.algorithm!=="passthrough")throw new Error('Encoding "'+o.encoding+'" not supported. supported values: '+p.join(", "));return o}function S(d){if(typeof d=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(d))!=null}function b(d,_,o){o=o||[];function f(a){return _.update?_.update(a,"utf8"):_.write(a,"utf8")}return{dispatch:function(a){return this["_"+((a=d.replacer?d.replacer(a):a)===null?"null":typeof a)](a)},_object:function(a){var m,w=Object.prototype.toString.call(a),W=/\[object (.*)\]/i.exec(w);if(W=(W=W?W[1]:"unknown:["+w+"]").toLowerCase(),0<=(w=o.indexOf(a)))return this.dispatch("[CIRCULAR:"+w+"]");if(o.push(a),E!==void 0&&E.isBuffer&&E.isBuffer(a))return f("buffer:"),f(a);if(W==="object"||W==="function"||W==="asyncfunction")return w=Object.keys(a),d.unorderedObjects&&(w=w.sort()),d.respectType===!1||S(a)||w.splice(0,0,"prototype","__proto__","constructor"),d.excludeKeys&&(w=w.filter(function(R){return!d.excludeKeys(R)})),f("object:"+w.length+":"),m=this,w.forEach(function(R){m.dispatch(R),f(":"),d.excludeValues||m.dispatch(a[R]),f(",")});if(!this["_"+W]){if(d.ignoreUnknown)return f("["+W+"]");throw new Error('Unknown object type "'+W+'"')}this["_"+W](a)},_array:function(a,R){R=R!==void 0?R:d.unorderedArrays!==!1;var w=this;if(f("array:"+a.length+":"),!R||a.length<=1)return a.forEach(function(j){return w.dispatch(j)});var W=[],R=a.map(function(j){var I=new D,B=o.slice();return b(d,I,B).dispatch(j),W=W.concat(B.slice(o.length)),I.read().toString()});return o=o.concat(W),R.sort(),this._array(R,!1)},_date:function(a){return f("date:"+a.toJSON())},_symbol:function(a){return f("symbol:"+a.toString())},_error:function(a){return f("error:"+a.toString())},_boolean:function(a){return f("bool:"+a.toString())},_string:function(a){f("string:"+a.length+":"),f(a.toString())},_function:function(a){f("fn:"),S(a)?this.dispatch("[native]"):this.dispatch(a.toString()),d.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(a.name)),d.respectFunctionProperties&&this._object(a)},_number:function(a){return f("number:"+a.toString())},_xml:function(a){return f("xml:"+a.toString())},_null:function(){return f("Null")},_undefined:function(){return f("Undefined")},_regexp:function(a){return f("regex:"+a.toString())},_uint8array:function(a){return f("uint8array:"),this.dispatch(Array.prototype.slice.call(a))},_uint8clampedarray:function(a){return f("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(a))},_int8array:function(a){return f("int8array:"),this.dispatch(Array.prototype.slice.call(a))},_uint16array:function(a){return f("uint16array:"),this.dispatch(Array.prototype.slice.call(a))},_int16array:function(a){return f("int16array:"),this.dispatch(Array.prototype.slice.call(a))},_uint32array:function(a){return f("uint32array:"),this.dispatch(Array.prototype.slice.call(a))},_int32array:function(a){return f("int32array:"),this.dispatch(Array.prototype.slice.call(a))},_float32array:function(a){return f("float32array:"),this.dispatch(Array.prototype.slice.call(a))},_float64array:function(a){return f("float64array:"),this.dispatch(Array.prototype.slice.call(a))},_arraybuffer:function(a){return f("arraybuffer:"),this.dispatch(new Uint8Array(a))},_url:function(a){return f("url:"+a.toString())},_map:function(a){return f("map:"),a=Array.from(a),this._array(a,d.unorderedSets!==!1)},_set:function(a){return f("set:"),a=Array.from(a),this._array(a,d.unorderedSets!==!1)},_file:function(a){return f("file:"),this.dispatch([a.name,a.size,a.type,a.lastModfied])},_blob:function(){if(d.ignoreUnknown)return f("[blob]");throw Error(`Hashing Blob objects is currently not supported
|
|
2
2
|
(see https://github.com/puleos/object-hash/issues/26)
|
|
3
3
|
Use "options.replacer" or "options.ignoreUnknown"
|
|
4
4
|
`)},_domwindow:function(){return f("domwindow")},_bigint:function(a){return f("bigint:"+a.toString())},_process:function(){return f("process")},_timer:function(){return f("timer")},_pipe:function(){return f("pipe")},_tcp:function(){return f("tcp")},_udp:function(){return f("udp")},_tty:function(){return f("tty")},_statwatcher:function(){return f("statwatcher")},_securecontext:function(){return f("securecontext")},_connection:function(){return f("connection")},_zlib:function(){return f("zlib")},_context:function(){return f("context")},_nodescript:function(){return f("nodescript")},_httpparser:function(){return f("httpparser")},_dataview:function(){return f("dataview")},_signal:function(){return f("signal")},_fsevent:function(){return f("fsevent")},_tlswrap:function(){return f("tlswrap")}}}function D(){return{buf:"",write:function(d){this.buf+=d},end:function(d){this.buf+=d},read:function(){return this.buf}}}s.writeToStream=function(d,_,o){return o===void 0&&(o=_,_={}),b(_=v(d,_),o).dispatch(d)}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(n,r,s){(function(u,y,E,F,C,P,ee,M,Q){(function(k){var g=typeof Uint8Array<"u"?Uint8Array:Array,c=43,p=47,v=48,S=97,b=65,D=45,d=95;function _(o){return o=o.charCodeAt(0),o===c||o===D?62:o===p||o===d?63:o<v?-1:o<v+10?o-v+26+26:o<b+26?o-b:o<S+26?o-S+26:void 0}k.toByteArray=function(o){var f,a;if(0<o.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var m=o.length,m=o.charAt(m-2)==="="?2:o.charAt(m-1)==="="?1:0,w=new g(3*o.length/4-m),W=0<m?o.length-4:o.length,R=0;function j(I){w[R++]=I}for(f=0;f<W;f+=4,0)j((16711680&(a=_(o.charAt(f))<<18|_(o.charAt(f+1))<<12|_(o.charAt(f+2))<<6|_(o.charAt(f+3))))>>16),j((65280&a)>>8),j(255&a);return m==2?j(255&(a=_(o.charAt(f))<<2|_(o.charAt(f+1))>>4)):m==1&&(j((a=_(o.charAt(f))<<10|_(o.charAt(f+1))<<4|_(o.charAt(f+2))>>2)>>8&255),j(255&a)),w},k.fromByteArray=function(o){var f,a,m,w,W=o.length%3,R="";function j(I){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(I)}for(f=0,m=o.length-W;f<m;f+=3)a=(o[f]<<16)+(o[f+1]<<8)+o[f+2],R+=j((w=a)>>18&63)+j(w>>12&63)+j(w>>6&63)+j(63&w);switch(W){case 1:R=(R+=j((a=o[o.length-1])>>2))+j(a<<4&63)+"==";break;case 2:R=(R=(R+=j((a=(o[o.length-2]<<8)+o[o.length-1])>>10))+j(a>>4&63))+j(a<<2&63)+"="}return R}})(s===void 0?this.base64js={}:s)}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(n,r,s){(function(u,y,c,F,C,P,ee,M,Q){var k=n("base64-js"),g=n("ieee754");function c(i,l,h){if(!(this instanceof c))return new c(i,l,h);var T,Y,L,$,se=typeof i;if(l==="base64"&&se=="string")for(i=($=i).trim?$.trim():$.replace(/^\s+|\s+$/g,"");i.length%4!=0;)i+="=";if(se=="number")T=z(i);else if(se=="string")T=c.byteLength(i,l);else{if(se!="object")throw new Error("First argument needs to be a number, array or string.");T=z(i.length)}if(c._useTypedArrays?Y=c._augment(new Uint8Array(T)):((Y=this).length=T,Y._isBuffer=!0),c._useTypedArrays&&typeof i.byteLength=="number")Y._set(i);else if(X($=i)||c.isBuffer($)||$&&typeof $=="object"&&typeof $.length=="number")for(L=0;L<T;L++)c.isBuffer(i)?Y[L]=i.readUInt8(L):Y[L]=i[L];else if(se=="string")Y.write(i,0,l);else if(se=="number"&&!c._useTypedArrays&&!h)for(L=0;L<T;L++)Y[L]=0;return Y}function p(i,l,h,T){return c._charsWritten=ge((function(Y){for(var L=[],$=0;$<Y.length;$++)L.push(255&Y.charCodeAt($));return L})(l),i,h,T)}function v(i,l,h,T){return c._charsWritten=ge((function(Y){for(var L,$,se=[],ue=0;ue<Y.length;ue++)$=Y.charCodeAt(ue),L=$>>8,$=$%256,se.push($),se.push(L);return se})(l),i,h,T)}function S(i,l,h){var T="";h=Math.min(i.length,h);for(var Y=l;Y<h;Y++)T+=String.fromCharCode(i[Y]);return T}function b(i,l,h,L){L||(N(typeof h=="boolean","missing or invalid endian"),N(l!=null,"missing offset"),N(l+1<i.length,"Trying to read beyond buffer length"));var Y,L=i.length;if(!(L<=l))return h?(Y=i[l],l+1<L&&(Y|=i[l+1]<<8)):(Y=i[l]<<8,l+1<L&&(Y|=i[l+1])),Y}function D(i,l,h,L){L||(N(typeof h=="boolean","missing or invalid endian"),N(l!=null,"missing offset"),N(l+3<i.length,"Trying to read beyond buffer length"));var Y,L=i.length;if(!(L<=l))return h?(l+2<L&&(Y=i[l+2]<<16),l+1<L&&(Y|=i[l+1]<<8),Y|=i[l],l+3<L&&(Y+=i[l+3]<<24>>>0)):(l+1<L&&(Y=i[l+1]<<16),l+2<L&&(Y|=i[l+2]<<8),l+3<L&&(Y|=i[l+3]),Y+=i[l]<<24>>>0),Y}function d(i,l,h,T){if(T||(N(typeof h=="boolean","missing or invalid endian"),N(l!=null,"missing offset"),N(l+1<i.length,"Trying to read beyond buffer length")),!(i.length<=l))return T=b(i,l,h,!0),32768&T?-1*(65535-T+1):T}function _(i,l,h,T){if(T||(N(typeof h=="boolean","missing or invalid endian"),N(l!=null,"missing offset"),N(l+3<i.length,"Trying to read beyond buffer length")),!(i.length<=l))return T=D(i,l,h,!0),2147483648&T?-1*(4294967295-T+1):T}function o(i,l,h,T){return T||(N(typeof h=="boolean","missing or invalid endian"),N(l+3<i.length,"Trying to read beyond buffer length")),g.read(i,l,h,23,4)}function f(i,l,h,T){return T||(N(typeof h=="boolean","missing or invalid endian"),N(l+7<i.length,"Trying to read beyond buffer length")),g.read(i,l,h,52,8)}function a(i,l,h,T,Y){if(Y||(N(l!=null,"missing value"),N(typeof T=="boolean","missing or invalid endian"),N(h!=null,"missing offset"),N(h+1<i.length,"trying to write beyond buffer length"),Ct(l,65535)),Y=i.length,!(Y<=h))for(var L=0,$=Math.min(Y-h,2);L<$;L++)i[h+L]=(l&255<<8*(T?L:1-L))>>>8*(T?L:1-L)}function m(i,l,h,T,Y){if(Y||(N(l!=null,"missing value"),N(typeof T=="boolean","missing or invalid endian"),N(h!=null,"missing offset"),N(h+3<i.length,"trying to write beyond buffer length"),Ct(l,4294967295)),Y=i.length,!(Y<=h))for(var L=0,$=Math.min(Y-h,4);L<$;L++)i[h+L]=l>>>8*(T?L:3-L)&255}function w(i,l,h,T,Y){Y||(N(l!=null,"missing value"),N(typeof T=="boolean","missing or invalid endian"),N(h!=null,"missing offset"),N(h+1<i.length,"Trying to write beyond buffer length"),Ut(l,32767,-32768)),i.length<=h||a(i,0<=l?l:65535+l+1,h,T,Y)}function W(i,l,h,T,Y){Y||(N(l!=null,"missing value"),N(typeof T=="boolean","missing or invalid endian"),N(h!=null,"missing offset"),N(h+3<i.length,"Trying to write beyond buffer length"),Ut(l,2147483647,-2147483648)),i.length<=h||m(i,0<=l?l:4294967295+l+1,h,T,Y)}function R(i,l,h,T,Y){Y||(N(l!=null,"missing value"),N(typeof T=="boolean","missing or invalid endian"),N(h!=null,"missing offset"),N(h+3<i.length,"Trying to write beyond buffer length"),Mn(l,34028234663852886e22,-34028234663852886e22)),i.length<=h||g.write(i,l,h,T,23,4)}function j(i,l,h,T,Y){Y||(N(l!=null,"missing value"),N(typeof T=="boolean","missing or invalid endian"),N(h!=null,"missing offset"),N(h+7<i.length,"Trying to write beyond buffer length"),Mn(l,17976931348623157e292,-17976931348623157e292)),i.length<=h||g.write(i,l,h,T,52,8)}s.Buffer=c,s.SlowBuffer=c,s.INSPECT_MAX_BYTES=50,c.poolSize=8192,c._useTypedArrays=(function(){try{var i=new ArrayBuffer(0),l=new Uint8Array(i);return l.foo=function(){return 42},l.foo()===42&&typeof l.subarray=="function"}catch{return!1}})(),c.isEncoding=function(i){switch(String(i).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.isBuffer=function(i){return!(i==null||!i._isBuffer)},c.byteLength=function(i,l){var h;switch(i+="",l||"utf8"){case"hex":h=i.length/2;break;case"utf8":case"utf-8":h=ce(i).length;break;case"ascii":case"binary":case"raw":h=i.length;break;case"base64":h=Ee(i).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":h=2*i.length;break;default:throw new Error("Unknown encoding")}return h},c.concat=function(i,l){if(N(X(i),`Usage: Buffer.concat(list, [totalLength])
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DjgOAzh3.js","assets/normalizeProvider-EC8cbfMc.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{f as J,a as xt,d as It,t as _t,i as te,H as x,n as z,g as M,j as Ot,k as X}from"./normalizeProvider-EC8cbfMc.js";import{_ as Mt}from"./preload-helper-BlTxHScW.js";import{_ as Pt,j as kt}from"./index-
|
|
2
|
+
import{f as J,a as xt,d as It,t as _t,i as te,H as x,n as z,g as M,j as Ot,k as X}from"./normalizeProvider-EC8cbfMc.js";import{_ as Mt}from"./preload-helper-BlTxHScW.js";import{_ as Pt,j as kt}from"./index-BZpMQdNP.js";const $t=(t,e,r)=>{let s,n,i,a=!1;const c=async()=>{n||(n=t());try{s=await n,i=!0,a=!1}finally{n=void 0}return s};return async o=>((!i||o?.forceRefresh)&&(s=await c()),s)},Nn=t=>({setHttpHandler(e){t.httpHandler=e},httpHandler(){return t.httpHandler},updateHttpClientConfig(e,r){t.httpHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.httpHandler.httpHandlerConfigs()}}),Dn=t=>({httpHandler:t.httpHandler()});var F;(function(t){t.HTTP="http",t.HTTPS="https"})(F||(F={}));var Z;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(Z||(Z={}));const ge="__smithy_context",j=t=>typeof t=="string"?J(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),O=(t,e)=>{const r=[];if(t&&r.push(t),e)for(const s of e)r.push(s);return r},I=(t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,ee=()=>{let t=[],e=[],r=!1;const s=new Set,n=u=>u.sort((l,f)=>Ie[f.step]-Ie[l.step]||_e[f.priority||"normal"]-_e[l.priority||"normal"]),i=u=>{let l=!1;const f=m=>{const g=O(m.name,m.aliases);if(g.includes(u)){l=!0;for(const p of g)s.delete(p);return!1}return!0};return t=t.filter(f),e=e.filter(f),l},a=u=>{let l=!1;const f=m=>{if(m.middleware===u){l=!0;for(const g of O(m.name,m.aliases))s.delete(g);return!1}return!0};return t=t.filter(f),e=e.filter(f),l},c=u=>(t.forEach(l=>{u.add(l.middleware,{...l})}),e.forEach(l=>{u.addRelativeTo(l.middleware,{...l})}),u.identifyOnResolve?.(h.identifyOnResolve()),u),o=u=>{const l=[];return u.before.forEach(f=>{f.before.length===0&&f.after.length===0?l.push(f):l.push(...o(f))}),l.push(u),u.after.reverse().forEach(f=>{f.before.length===0&&f.after.length===0?l.push(f):l.push(...o(f))}),l},d=(u=!1)=>{const l=[],f=[],m={};return t.forEach(p=>{const y={...p,before:[],after:[]};for(const w of O(y.name,y.aliases))m[w]=y;l.push(y)}),e.forEach(p=>{const y={...p,before:[],after:[]};for(const w of O(y.name,y.aliases))m[w]=y;f.push(y)}),f.forEach(p=>{if(p.toMiddleware){const y=m[p.toMiddleware];if(y===void 0){if(u)return;throw new Error(`${p.toMiddleware} is not found when adding ${I(p.name,p.aliases)} middleware ${p.relation} ${p.toMiddleware}`)}p.relation==="after"&&y.after.push(p),p.relation==="before"&&y.before.push(p)}}),n(l).map(o).reduce((p,y)=>(p.push(...y),p),[])},h={add:(u,l={})=>{const{name:f,override:m,aliases:g}=l,p={step:"initialize",priority:"normal",middleware:u,...l},y=O(f,g);if(y.length>0){if(y.some(w=>s.has(w))){if(!m)throw new Error(`Duplicate middleware name '${I(f,g)}'`);for(const w of y){const T=t.findIndex(D=>D.name===w||D.aliases?.some(ne=>ne===w));if(T===-1)continue;const E=t[T];if(E.step!==p.step||p.priority!==E.priority)throw new Error(`"${I(E.name,E.aliases)}" middleware with ${E.priority} priority in ${E.step} step cannot be overridden by "${I(f,g)}" middleware with ${p.priority} priority in ${p.step} step.`);t.splice(T,1)}}for(const w of y)s.add(w)}t.push(p)},addRelativeTo:(u,l)=>{const{name:f,override:m,aliases:g}=l,p={middleware:u,...l},y=O(f,g);if(y.length>0){if(y.some(w=>s.has(w))){if(!m)throw new Error(`Duplicate middleware name '${I(f,g)}'`);for(const w of y){const T=e.findIndex(D=>D.name===w||D.aliases?.some(ne=>ne===w));if(T===-1)continue;const E=e[T];if(E.toMiddleware!==p.toMiddleware||E.relation!==p.relation)throw new Error(`"${I(E.name,E.aliases)}" middleware ${E.relation} "${E.toMiddleware}" middleware cannot be overridden by "${I(f,g)}" middleware ${p.relation} "${p.toMiddleware}" middleware.`);e.splice(T,1)}}for(const w of y)s.add(w)}e.push(p)},clone:()=>c(ee()),use:u=>{u.applyToStack(h)},remove:u=>typeof u=="string"?i(u):a(u),removeByTag:u=>{let l=!1;const f=m=>{const{tags:g,name:p,aliases:y}=m;if(g&&g.includes(u)){const w=O(p,y);for(const T of w)s.delete(T);return l=!0,!1}return!0};return t=t.filter(f),e=e.filter(f),l},concat:u=>{const l=c(ee());return l.use(u),l.identifyOnResolve(r||l.identifyOnResolve()||(u.identifyOnResolve?.()??!1)),l},applyToStack:c,identify:()=>d(!0).map(u=>{const l=u.step??u.relation+" "+u.toMiddleware;return I(u.name,u.aliases)+" - "+l}),identifyOnResolve(u){return typeof u=="boolean"&&(r=u),r},resolve:(u,l)=>{for(const f of d().map(m=>m.middleware).reverse())u=f(u,l);return r&&console.log(h.identify()),u}};return h},Ie={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},_e={high:3,normal:2,low:1};class Un{config;middlewareStack=ee();initConfig;handlers;constructor(e){this.config=e}send(e,r,s){const n=typeof r!="function"?r:void 0,i=typeof r=="function"?r:s,a=n===void 0&&this.config.cacheMiddleware===!0;let c;if(a){this.handlers||(this.handlers=new WeakMap);const o=this.handlers;o.has(e.constructor)?c=o.get(e.constructor):(c=e.resolveMiddleware(this.middlewareStack,this.config,n),o.set(e.constructor,c))}else delete this.handlers,c=e.resolveMiddleware(this.middlewareStack,this.config,n);if(i)c(e).then(o=>i(null,o.output),o=>i(o)).catch(()=>{});else return c(e).then(o=>o.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}class P extends Uint8Array{static fromString(e,r="utf-8"){if(typeof e=="string")return r==="base64"?P.mutate(xt(e)):P.mutate(J(e));throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,P.prototype),e}transformToString(e="utf-8"){return e==="base64"?It(this):_t(this)}}const Oe=async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return P.mutate(t);if(!t)return P.mutate(new Uint8Array);const r=e.streamCollector(t);return P.mutate(await r)},ie=t=>typeof t=="function"?t():t,V=t=>t[ge]||(t[ge]={}),k=t=>{if(typeof t=="function")return t;const e=Promise.resolve(t);return()=>e},Ze=(t,e,r,s,n)=>({name:e,namespace:t,traits:r,input:s,output:n}),Nt=t=>(e,r)=>async s=>{const{response:n}=await e(s),{operationSchema:i}=V(r),[,a,c,o,d,h]=i??[];try{const u=await t.protocol.deserializeResponse(Ze(a,c,o,d,h),{...t,...r},n);return{response:n,output:u}}catch(u){if(Object.defineProperty(u,"$response",{value:n,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in u)){const l="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{u.message+=`
|
|
3
3
|
`+l}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(l):r.logger?.warn?.(l)}typeof u.$responseBodyText<"u"&&u.$response&&(u.$response.body=u.$responseBodyText);try{if(te.isInstance(n)){const{headers:f={}}=n,m=Object.entries(f);u.$metadata={httpStatusCode:n.statusCode,requestId:ae(/^x-[\w-]+-request-?id$/,m),extendedRequestId:ae(/^x-[\w-]+-id-2$/,m),cfId:ae(/^x-[\w-]+-cf-id$/,m)}}}catch{}}throw u}},ae=(t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],Dt=t=>(e,r)=>async s=>{const{operationSchema:n}=V(r),[,i,a,c,o,d]=n??[],h=r.endpointV2?.url&&t.urlParser?async()=>t.urlParser(r.endpointV2.url):t.endpoint,u=await t.protocol.serializeRequest(Ze(i,a,c,o,d),s.input,{...t,...r,endpoint:h});return e({...s,request:u})},Ut={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Lt={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function Ln(t){return{applyToStack:e=>{e.add(Dt(t),Lt),e.add(Nt(t),Ut),t.protocol.setSerdeContext(t)}}}function L(t){if(typeof t=="object")return t;t=t|0;const e={};let r=0;for(const s of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[s]=1);return e}class b{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=b.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,r){this.ref=e,this.memberName=r;const s=[];let n=e,i=e;for(this._isMemberSchema=!1;oe(n);)s.push(n[1]),n=n[0],i=ie(n),this._isMemberSchema=!0;if(s.length>0){this.memberTraits={};for(let a=s.length-1;a>=0;--a){const c=s[a];Object.assign(this.memberTraits,L(c))}}else this.memberTraits=0;if(i instanceof b){const a=this.memberTraits;Object.assign(this,i),this.memberTraits=Object.assign({},a,i.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??i.memberName;return}if(this.schema=ie(i),Ht(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(i),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){const r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}static of(e){const r=ie(e);if(r instanceof b)return r;if(oe(r)){const[s,n]=r;if(s instanceof b)return Object.assign(s.getMergedTraits(),L(n)),s;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}return new b(r)}getSchema(){const e=this.schema;return e[0]===0?e[4]:e}getName(e=!1){const{name:r}=this;return!e&&r&&r.includes("#")?r.split("#")[1]:r||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const e=this.getSchema();return typeof e=="number"?e>=64&&e<128:e[0]===1}isMapSchema(){const e=this.getSchema();return typeof e=="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){const e=this.getSchema();return e[0]===3||e[0]===-3}isBlobSchema(){const e=this.getSchema();return e===21||e===42}isTimestampSchema(){const e=this.getSchema();return typeof e=="number"&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){const{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){const e=i=>(i&4)===4||!!i?.idempotencyToken,{normalizedTraits:r,traits:s,memberTraits:n}=this;return e(r)||e(s)||e(n)}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return L(this.memberTraits)}getOwnTraits(){return L(this.traits)}getKeySchema(){const[e,r]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!r)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);const s=this.getSchema(),n=e?15:s[4]??0;return U([n,0],"key")}getValueSchema(){const e=this.getSchema(),[r,s,n]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i=typeof e=="number"?63&e:e&&typeof e=="object"&&(s||n)?e[3+e[0]]:r?15:void 0;if(i!=null)return U([i,0],s?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){const r=this.getSchema();if(this.isStructSchema()&&r[4].includes(e)){const s=r[4].indexOf(e),n=r[5][s];return U(oe(n)?n:[n,0],e)}if(this.isDocumentSchema())return U([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no no member=${e}.`)}getMemberSchemas(){const e={};try{for(const[r,s]of this.structIterator())e[r]=s}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(const[e,r]of this.structIterator())if(r.isStreaming()&&r.isStructSchema())return e}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");const e=this.getSchema();for(let r=0;r<e[4].length;++r)yield[e[4][r],U([e[5][r],0],e[4][r])]}}function U(t,e){if(t instanceof b)return Object.assign(t,{memberName:e,_isMemberSchema:!0});const r=b;return new r(t,e)}const oe=t=>Array.isArray(t)&&t.length===2,Ht=t=>Array.isArray(t)&&t.length>=5;class C{namespace;schemas;exceptions;static registries=new Map;constructor(e,r=new Map,s=new Map){this.namespace=e,this.schemas=r,this.exceptions=s}static for(e){return C.registries.has(e)||C.registries.set(e,new C(e)),C.registries.get(e)}register(e,r){const s=this.normalizeShapeId(e);C.for(s.split("#")[0]).schemas.set(s,r)}getSchema(e){const r=this.normalizeShapeId(e);if(!this.schemas.has(r))throw new Error(`@smithy/core/schema - schema not found for ${r}`);return this.schemas.get(r)}registerError(e,r){const s=e,n=C.for(s[1]);n.schemas.set(s[1]+"#"+s[2],s),n.exceptions.set(s,r)}getErrorCtor(e){const r=e;return C.for(r[1]).exceptions.get(r)}getBaseException(){for(const e of this.exceptions.keys())if(Array.isArray(e)){const[,r,s]=e,n=r+"#"+s;if(n.startsWith("smithy.ts.sdk.synthetic.")&&n.endsWith("ServiceException"))return e}}find(e){return[...this.schemas.values()].find(e)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}const Me=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),S=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0")),zt=()=>{if(Me)return Me();const t=new Uint8Array(16);return crypto.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128,S[t[0]]+S[t[1]]+S[t[2]]+S[t[3]]+"-"+S[t[4]]+S[t[5]]+"-"+S[t[6]]+S[t[7]]+"-"+S[t[8]]+S[t[9]]+"-"+S[t[10]]+S[t[11]]+S[t[12]]+S[t[13]]+S[t[14]]+S[t[15]]},$=function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})};$.from=t=>t&&typeof t=="object"&&(t instanceof $||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?$(String(t)):$(JSON.stringify(t));$.fromObject=$.from;const Pe=/^-?\d*(\.\d+)?$/;class et{string;type;constructor(e,r){if(this.string=e,this.type=r,!Pe.test(e))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||typeof e!="object")return!1;const r=e;return et.prototype.isPrototypeOf(e)||r.type==="bigDecimal"&&Pe.test(r.string)}}class Bt{serdeContext;setSerdeContext(e){this.serdeContext=e}}class Ft extends Bt{options;constructor(e){super(),this.options=e}getRequestType(){return x}getResponseType(){return te}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,r){if("url"in r){e.protocol=r.url.protocol,e.hostname=r.url.hostname,e.port=r.url.port?Number(r.url.port):void 0,e.path=r.url.pathname,e.fragment=r.url.hash||void 0,e.username=r.url.username||void 0,e.password=r.url.password||void 0,e.query||(e.query={});for(const[s,n]of r.url.searchParams.entries())e.query[s]=n;return e}else return e.protocol=r.protocol,e.hostname=r.hostname,e.port=r.port?Number(r.port):void 0,e.path=r.path,e.query={...r.query},e}setHostPrefix(e,r,s){const n=b.of(r.input),i=L(r.traits??{});if(i.endpoint){let a=i.endpoint?.[0];if(typeof a=="string"){const c=[...n.structIterator()].filter(([,o])=>o.getMergedTraits().hostLabel);for(const[o]of c){const d=s[o];if(typeof d!="string")throw new Error(`@smithy/core/schema - ${o} in input must be a string as hostLabel.`);a=a.replace(`{${o}}`,d)}e.hostname=a+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:s}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:r,initialRequest:s})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:s}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:s})}async loadEventStreamCapability(){const{EventStreamSerde:e}=await Mt(async()=>{const{EventStreamSerde:r}=await import("./index-DjgOAzh3.js");return{EventStreamSerde:r}},__vite__mapDeps([0,1]));return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,r,s,n,i){return[]}getEventStreamMarshaller(){const e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}}class Hn extends Ft{async serializeRequest(e,r,s){const n=this.serializer,i={},a={},c=await s.endpoint(),o=b.of(e?.input),d=o.getSchema();let h;const u=new x({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:i,headers:a,body:void 0});c&&(this.updateServiceEndpoint(u,c),this.setHostPrefix(u,e,r));const l={...r};if(r){const f=o.getEventStreamMember();if(f){if(l[f]){const m={};for(const[g,p]of o.structIterator())g!==f&&l[g]&&(n.write(p,l[g]),m[g]=n.flush());h=await this.serializeEventStream({eventStream:l[f],requestSchema:o,initialRequest:m})}}else n.write(d,l),h=n.flush()}return u.headers=a,u.query=i,u.body=h,u.method="POST",u}async deserializeResponse(e,r,s){const n=this.deserializer,i=b.of(e.output),a={};if(s.statusCode>=300){const o=await Oe(s.body,r);throw o.byteLength>0&&Object.assign(a,await n.read(15,o)),await this.handleError(e,r,s,a,this.deserializeMetadata(s)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const o in s.headers){const d=s.headers[o];delete s.headers[o],s.headers[o.toLowerCase()]=d}const c=i.getEventStreamMember();if(c)a[c]=await this.deserializeEventStream({response:s,responseSchema:i,initialResponseContainer:a});else{const o=await Oe(s.body,r);o.byteLength>0&&Object.assign(a,await n.read(i,o))}return a.$metadata=this.deserializeMetadata(s),a}}function zn(t,e){if(e.timestampFormat.useTrait&&t.isTimestampSchema()&&(t.getSchema()===5||t.getSchema()===6||t.getSchema()===7))return t.getSchema();const{httpLabel:r,httpPrefixHeaders:s,httpHeader:n,httpQuery:i}=t.getMergedTraits();return(e.httpBindings?typeof s=="string"||n?6:i||r?5:void 0:void 0)??e.timestampFormat.default}const ce="***SensitiveInformation***";function ye(t,e){if(e==null)return e;const r=b.of(t);if(r.getMergedTraits().sensitive)return ce;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return ce}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return ce}else if(r.isStructSchema()&&typeof e=="object"){const s=e,n={};for(const[i,a]of r.structIterator())s[i]!=null&&(n[i]=ye(a,s[i]));return n}return e}class jt{middlewareStack=ee();schema;static classBuilder(){return new qt}resolveMiddlewareWithContext(e,r,s,{middlewareFn:n,clientName:i,commandName:a,inputFilterSensitiveLog:c,outputFilterSensitiveLog:o,smithyContext:d,additionalContext:h,CommandCtor:u}){for(const p of n.bind(this)(u,e,r,s))this.middlewareStack.use(p);const l=e.concat(this.middlewareStack),{logger:f}=r,m={logger:f,clientName:i,commandName:a,inputFilterSensitiveLog:c,outputFilterSensitiveLog:o,[ge]:{commandInstance:this,...d},...h},{requestHandler:g}=r;return l.resolve(p=>g.handle(p.request,s||{}),m)}}class qt{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,r,s={}){return this._smithyContext={service:e,operation:r,...s},this}c(e={}){return this._additionalContext=e,this}n(e,r){return this._clientName=e,this._commandName=r,this}f(e=s=>s,r=s=>s){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=r,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){const e=this;let r;return r=class extends jt{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[s]){super(),this.input=s??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(s,n,i){const a=e._operationSchema,c=a?.[4]??a?.input,o=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(s,n,i,{CommandCtor:r,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?ye.bind(null,c):d=>d),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?ye.bind(null,o):d=>d),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}class H extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){if(!e)return!1;const r=e;return H.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return!1;const r=e;return this===H?H.isInstance(e):H.isInstance(e)?r.name&&this.name?this.prototype.isPrototypeOf(e)||r.name===this.name:this.prototype.isPrototypeOf(e):!1}}const ke=(t,e={})=>{Object.entries(e).filter(([,s])=>s!==void 0).forEach(([s,n])=>{(t[s]==null||t[s]==="")&&(t[s]=n)});const r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t},Bn=t=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},Gt=t=>{const e=[];for(const r in Z){const s=Z[r];t[s]!==void 0&&e.push({algorithmId:()=>s,checksumConstructor:()=>t[s]})}return{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},Vt=t=>{const e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},Wt=t=>({setRetryStrategy(e){t.retryStrategy=e},retryStrategy(){return t.retryStrategy}}),Kt=t=>{const e={};return e.retryStrategy=t.retryStrategy(),e},Fn=t=>Object.assign(Gt(t),Wt(t)),jn=t=>Object.assign(Vt(t),Kt(t));class Xt{trace(){}debug(){}info(){}warn(){}error(){}}const Qt=(t,e)=>{if(!e||e.length===0)return t;const r=[];for(const s of e)for(const n of t)n.schemeId.split("#")[1]===s&&r.push(n);for(const s of t)r.find(({schemeId:n})=>n===s.schemeId)||r.push(s);return r};function Yt(t){const e=new Map;for(const r of t)e.set(r.schemeId,r);return e}const Jt=(t,e)=>(r,s)=>async n=>{const i=t.httpAuthSchemeProvider(await e.httpAuthSchemeParametersProvider(t,s,n.input)),a=t.authSchemePreference?await t.authSchemePreference():[],c=Qt(i,a),o=Yt(t.httpAuthSchemes),d=V(s),h=[];for(const u of c){const l=o.get(u.schemeId);if(!l){h.push(`HttpAuthScheme \`${u.schemeId}\` was not enabled for this service.`);continue}const f=l.identityProvider(await e.identityProviderConfigProvider(t));if(!f){h.push(`HttpAuthScheme \`${u.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:m={},signingProperties:g={}}=u.propertiesExtractor?.(t,s)||{};u.identityProperties=Object.assign(u.identityProperties||{},m),u.signingProperties=Object.assign(u.signingProperties||{},g),d.selectedHttpAuthScheme={httpAuthOption:u,identity:await f(u.identityProperties),signer:l.signer};break}if(!d.selectedHttpAuthScheme)throw new Error(h.join(`
|
|
4
4
|
`));return r(n)},Zt={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},qn=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:s=>{s.addRelativeTo(Jt(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),Zt)}}),er={name:"serializerMiddleware"},tr=t=>e=>{throw e},rr=(t,e)=>{},sr=t=>(e,r)=>async s=>{if(!x.isInstance(s.request))return e(s);const i=V(r).selectedHttpAuthScheme;if(!i)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:a={}},identity:c,signer:o}=i,d=await e({...s,request:await o.sign(s.request,c,a)}).catch((o.errorHandler||tr)(a));return(o.successHandler||rr)(d.response,a),d},nr={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Gn=t=>({applyToStack:e=>{e.addRelativeTo(sr(),nr)}});function ir(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}class Vn{authSchemes=new Map;constructor(e){for(const[r,s]of Object.entries(e))s!==void 0&&this.authSchemes.set(r,s)}getIdentityProvider(e){return this.authSchemes.get(e)}}class Wn{async sign(e,r,s){return e}}const ar=t=>function(r){return tt(r)&&r.expiration.getTime()-Date.now()<t},or=3e5,cr=ar(or),tt=t=>t.expiration!==void 0,ur=(t,e,r)=>{if(t===void 0)return;const s=typeof t!="function"?async()=>Promise.resolve(t):t;let n,i,a,c=!1;const o=async d=>{i||(i=s(d));try{n=await i,a=!0,c=!1}finally{i=void 0}return n};return e===void 0?async d=>((!a||d?.forceRefresh)&&(n=await o(d)),n):async d=>((!a||d?.forceRefresh)&&(n=await o(d)),c?n:r(n)?(e(n)&&await o(d),n):(c=!0,n))};function Kn(t){return t}const dr=t=>e=>async r=>{if(!x.isInstance(r.request))return e(r);const{request:s}=r,{handlerProtocol:n=""}=t.requestHandler.metadata||{};if(n.indexOf("h2")>=0&&!s.headers[":authority"])delete s.headers.host,s.headers[":authority"]=s.hostname+(s.port?":"+s.port:"");else if(!s.headers.host){let i=s.hostname;s.port!=null&&(i+=`:${s.port}`),s.headers.host=i}return e(r)},lr={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Xn=t=>({applyToStack:e=>{e.add(dr(t),lr)}}),fr=()=>(t,e)=>async r=>{try{const s=await t(r),{clientName:n,commandName:i,logger:a,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:o,overrideOutputFilterSensitiveLog:d}=c,h=o??e.inputFilterSensitiveLog,u=d??e.outputFilterSensitiveLog,{$metadata:l,...f}=s.output;return a?.info?.({clientName:n,commandName:i,input:h(r.input),output:u(f),metadata:l}),s}catch(s){const{clientName:n,commandName:i,logger:a,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:o}=c,d=o??e.inputFilterSensitiveLog;throw a?.error?.({clientName:n,commandName:i,input:d(r.input),error:s,metadata:s.$metadata}),s}},hr={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Qn=t=>({applyToStack:e=>{e.add(fr(),hr)}}),pr={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},mr=()=>t=>async e=>t(e),Yn=t=>({applyToStack:e=>{e.add(mr(),pr)}}),gr=void 0;function yr(t){return t===void 0?!0:typeof t=="string"&&t.length<=50}function Jn(t){const e=z(t.userAgentAppId??gr),{customUserAgent:r}=t;return Object.assign(t,{customUserAgent:typeof r=="string"?[[r]]:r,userAgentAppId:async()=>{const s=await e();if(!yr(s)){const n=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?console:t.logger;typeof s!="string"?n?.warn("userAgentAppId must be a string or undefined."):s.length>50&&n?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return s}})}class Zn{capacity;data=new Map;parameters=[];constructor({size:e,params:r}){this.capacity=e??50,r&&(this.parameters=r)}get(e,r){const s=this.hash(e);if(s===!1)return r();if(!this.data.has(s)){if(this.data.size>this.capacity+10){const n=this.data.keys();let i=0;for(;;){const{value:a,done:c}=n.next();if(this.data.delete(a),c||++i>10)break}}this.data.set(s,r())}return this.data.get(s)}size(){return this.data.size}hash(e){let r="";const{parameters:s}=this;if(s.length===0)return!1;for(const n of s){const i=String(e[n]??"");if(i.includes("|;"))return!1;r+=i+"|;"}return r}}const wr=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}$"),rt=t=>wr.test(t)||t.startsWith("[")&&t.endsWith("]"),Sr=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),re=(t,e=!1)=>{if(!e)return Sr.test(t);const r=t.split(".");for(const s of r)if(!re(s))return!1;return!0},we={},q="endpoints";function _(t){return typeof t!="object"||t==null?t:"ref"in t?`$${_(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(_).join(", ")})`:JSON.stringify(t,null,2)}class R extends Error{constructor(e){super(e),this.name="EndpointError"}}const br=(t,e)=>t===e,Er=t=>{const e=t.split("."),r=[];for(const s of e){const n=s.indexOf("[");if(n!==-1){if(s.indexOf("]")!==s.length-1)throw new R(`Path: '${t}' does not end with ']'`);const i=s.slice(n+1,-1);if(Number.isNaN(parseInt(i)))throw new R(`Invalid array index: '${i}' in path: '${t}'`);n!==0&&r.push(s.slice(0,n)),r.push(i)}else r.push(s)}return r},st=(t,e)=>Er(e).reduce((r,s)=>{if(typeof r!="object")throw new R(`Index '${s}' in '${e}' not found in '${JSON.stringify(t)}'`);return Array.isArray(r)?r[parseInt(s)]:r[s]},t),Rr=t=>t!=null,vr=t=>!t,ue={[F.HTTP]:80,[F.HTTPS]:443},Tr=t=>{const e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){const{hostname:l,port:f,protocol:m="",path:g="",query:p={}}=t,y=new URL(`${m}//${l}${f?`:${f}`:""}${g}`);return y.search=Object.entries(p).map(([w,T])=>`${w}=${T}`).join("&"),y}return new URL(t)}catch{return null}})();if(!e)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;const r=e.href,{host:s,hostname:n,pathname:i,protocol:a,search:c}=e;if(c)return null;const o=a.slice(0,-1);if(!Object.values(F).includes(o))return null;const d=rt(n),h=r.includes(`${s}:${ue[o]}`)||typeof t=="string"&&t.includes(`${s}:${ue[o]}`),u=`${s}${h?`:${ue[o]}`:""}`;return{scheme:o,authority:u,path:i,normalizedPath:i.endsWith("/")?i:`${i}/`,isIp:d}},Ar=(t,e)=>t===e,Cr=(t,e,r,s)=>e>=r||t.length<r?null:s?t.substring(t.length-r,t.length-e):t.substring(e,r),xr=t=>encodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),Ir={booleanEquals:br,getAttr:st,isSet:Rr,isValidHostLabel:re,not:vr,parseURL:Tr,stringEquals:Ar,substring:Cr,uriEncode:xr},nt=(t,e)=>{const r=[],s={...e.endpointParams,...e.referenceRecord};let n=0;for(;n<t.length;){const i=t.indexOf("{",n);if(i===-1){r.push(t.slice(n));break}r.push(t.slice(n,i));const a=t.indexOf("}",i);if(a===-1){r.push(t.slice(i));break}t[i+1]==="{"&&t[a+1]==="}"&&(r.push(t.slice(i+1,a)),n=a+2);const c=t.substring(i+1,a);if(c.includes("#")){const[o,d]=c.split("#");r.push(st(s[o],d))}else r.push(s[c]);n=a+1}return r.join("")},_r=({ref:t},e)=>({...e.endpointParams,...e.referenceRecord})[t],se=(t,e,r)=>{if(typeof t=="string")return nt(t,r);if(t.fn)return at.callFunction(t,r);if(t.ref)return _r(t,r);throw new R(`'${e}': ${String(t)} is not a string, function or reference.`)},it=({fn:t,argv:e},r)=>{const s=e.map(i=>["boolean","number"].includes(typeof i)?i:at.evaluateExpression(i,"arg",r)),n=t.split(".");return n[0]in we&&n[1]!=null?we[n[0]][n[1]](...s):Ir[t](...s)},at={evaluateExpression:se,callFunction:it},Or=({assign:t,...e},r)=>{if(t&&t in r.referenceRecord)throw new R(`'${t}' is already defined in Reference Record.`);const s=it(e,r);return r.logger?.debug?.(`${q} evaluateCondition: ${_(e)} = ${_(s)}`),{result:s===""?!0:!!s,...t!=null&&{toAssign:{name:t,value:s}}}},Te=(t=[],e)=>{const r={};for(const s of t){const{result:n,toAssign:i}=Or(s,{...e,referenceRecord:{...e.referenceRecord,...r}});if(!n)return{result:n};i&&(r[i.name]=i.value,e.logger?.debug?.(`${q} assign: ${i.name} := ${_(i.value)}`))}return{result:!0,referenceRecord:r}},Mr=(t,e)=>Object.entries(t).reduce((r,[s,n])=>({...r,[s]:n.map(i=>{const a=se(i,"Header value entry",e);if(typeof a!="string")throw new R(`Header '${s}' value '${a}' is not a string`);return a})}),{}),ot=(t,e)=>Object.entries(t).reduce((r,[s,n])=>({...r,[s]:ut.getEndpointProperty(n,e)}),{}),ct=(t,e)=>{if(Array.isArray(t))return t.map(r=>ct(r,e));switch(typeof t){case"string":return nt(t,e);case"object":if(t===null)throw new R(`Unexpected endpoint property: ${t}`);return ut.getEndpointProperties(t,e);case"boolean":return t;default:throw new R(`Unexpected endpoint property type: ${typeof t}`)}},ut={getEndpointProperty:ct,getEndpointProperties:ot},Pr=(t,e)=>{const r=se(t,"Endpoint URL",e);if(typeof r=="string")try{return new URL(r)}catch(s){throw console.error(`Failed to construct URL with ${r}`,s),s}throw new R(`Endpoint URL must be a string, got ${typeof r}`)},kr=(t,e)=>{const{conditions:r,endpoint:s}=t,{result:n,referenceRecord:i}=Te(r,e);if(!n)return;const a={...e,referenceRecord:{...e.referenceRecord,...i}},{url:c,properties:o,headers:d}=s;return e.logger?.debug?.(`${q} Resolving endpoint from template: ${_(s)}`),{...d!=null&&{headers:Mr(d,a)},...o!=null&&{properties:ot(o,a)},url:Pr(c,a)}},$r=(t,e)=>{const{conditions:r,error:s}=t,{result:n,referenceRecord:i}=Te(r,e);if(n)throw new R(se(s,"Error",{...e,referenceRecord:{...e.referenceRecord,...i}}))},dt=(t,e)=>{for(const r of t)if(r.type==="endpoint"){const s=kr(r,e);if(s)return s}else if(r.type==="error")$r(r,e);else if(r.type==="tree"){const s=lt.evaluateTreeRule(r,e);if(s)return s}else throw new R(`Unknown endpoint rule: ${r}`);throw new R("Rules evaluation failed")},Nr=(t,e)=>{const{conditions:r,rules:s}=t,{result:n,referenceRecord:i}=Te(r,e);if(n)return lt.evaluateRules(s,{...e,referenceRecord:{...e.referenceRecord,...i}})},lt={evaluateRules:dt,evaluateTreeRule:Nr},ei=(t,e)=>{const{endpointParams:r,logger:s}=e,{parameters:n,rules:i}=t;e.logger?.debug?.(`${q} Initial EndpointParams: ${_(r)}`);const a=Object.entries(n).filter(([,d])=>d.default!=null).map(([d,h])=>[d,h.default]);if(a.length>0)for(const[d,h]of a)r[d]=r[d]??h;const c=Object.entries(n).filter(([,d])=>d.required).map(([d])=>d);for(const d of c)if(r[d]==null)throw new R(`Missing required parameter: '${d}'`);const o=dt(i,{endpointParams:r,logger:s,referenceRecord:{}});return e.logger?.debug?.(`${q} Resolved endpoint: ${_(o)}`),o},ft=(t,e=!1)=>{if(e){for(const r of t.split("."))if(!ft(r))return!1;return!0}return!(!re(t)||t.length<3||t.length>63||t!==t.toLowerCase()||rt(t))},$e=":",Dr="/",Ur=t=>{const e=t.split($e);if(e.length<6)return null;const[r,s,n,i,a,...c]=e;if(r!=="arn"||s===""||n===""||c.join($e)==="")return null;const o=c.map(d=>d.split(Dr)).flat();return{partition:s,service:n,region:i,accountId:a,resourceId:o}},Lr=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"EU (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],Hr={partitions:Lr};let zr=Hr;const Br=t=>{const{partitions:e}=zr;for(const s of e){const{regions:n,outputs:i}=s;for(const[a,c]of Object.entries(n))if(a===t)return{...i,...c}}for(const s of e){const{regionRegex:n,outputs:i}=s;if(new RegExp(n).test(t))return{...i}}const r=e.find(s=>s.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},Fr={isVirtualHostableS3Bucket:ft,parseArn:Ur,partition:Br};we.aws=Fr;function jr(t){const e={};if(t=t.replace(/^\?/,""),t)for(const r of t.split("&")){let[s,n=null]=r.split("=");s=decodeURIComponent(s),n&&(n=decodeURIComponent(n)),s in e?Array.isArray(e[s])?e[s].push(n):e[s]=[e[s],n]:e[s]=n}return e}const Se=t=>{if(typeof t=="string")return Se(new URL(t));const{hostname:e,pathname:r,port:s,protocol:n,search:i}=t;let a;return i&&(a=jr(i)),{hostname:e,port:s?parseInt(s):void 0,protocol:n,path:r,query:a}};function qr(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}function A(t,e,r){t.__aws_sdk_context?t.__aws_sdk_context.features||(t.__aws_sdk_context.features={}):t.__aws_sdk_context={features:{}},t.__aws_sdk_context.features[e]=r}const Ne=t=>te.isInstance(t)?t.headers?.date??t.headers?.Date:void 0,ht=t=>new Date(Date.now()+t),Gr=(t,e)=>Math.abs(ht(e).getTime()-t)>=3e5,De=(t,e)=>{const r=Date.parse(t);return Gr(r,e)?r-Date.now():e},B=(t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},Vr=async t=>{const e=B("context",t.context),r=B("config",t.config),s=e.endpointV2?.properties?.authSchemes?.[0],i=await B("signer",r.signer)(s),a=t?.signingRegion,c=t?.signingRegionSet,o=t?.signingName;return{config:r,signer:i,signingRegion:a,signingRegionSet:c,signingName:o}};class ti{async sign(e,r,s){if(!x.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const n=await Vr(s),{config:i,signer:a}=n;let{signingRegion:c,signingName:o}=n;const d=s.context;if(d?.authSchemes?.length??!1){const[u,l]=d.authSchemes;u?.name==="sigv4a"&&l?.name==="sigv4"&&(c=l?.signingRegion??c,o=l?.signingName??o)}return await a.sign(e,{signingDate:ht(i.systemClockOffset),signingRegion:c,signingService:o})}errorHandler(e){return r=>{const s=r.ServerTime??Ne(r.$response);if(s){const n=B("config",e.config),i=n.systemClockOffset;n.systemClockOffset=De(s,n.systemClockOffset),n.systemClockOffset!==i&&r.$metadata&&(r.$metadata.clockSkewCorrected=!0)}throw r}}successHandler(e,r){const s=Ne(e);if(s){const n=B("config",r.config);n.systemClockOffset=De(s,n.systemClockOffset)}}}const Wr="X-Amz-Algorithm",Kr="X-Amz-Credential",pt="X-Amz-Date",Xr="X-Amz-SignedHeaders",Qr="X-Amz-Expires",mt="X-Amz-Signature",gt="X-Amz-Security-Token",yt="authorization",wt=pt.toLowerCase(),Yr="date",Jr=[yt,wt,Yr],Zr=mt.toLowerCase(),be="x-amz-content-sha256",es=gt.toLowerCase(),ts={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},rs=/^proxy-/,ss=/^sec-/,de="AWS4-HMAC-SHA256",ns="AWS4-HMAC-SHA256-PAYLOAD",is="UNSIGNED-PAYLOAD",as=50,St="aws4_request",os=3600*24*7,W={},le=[],fe=(t,e,r)=>`${t}/${e}/${r}/${St}`,cs=async(t,e,r,s,n)=>{const i=await Ue(t,e.secretAccessKey,e.accessKeyId),a=`${r}:${s}:${n}:${M(i)}:${e.sessionToken}`;if(a in W)return W[a];for(le.push(a);le.length>as;)delete W[le.shift()];let c=`AWS4${e.secretAccessKey}`;for(const o of[r,s,n,St])c=await Ue(t,c,o);return W[a]=c},Ue=(t,e,r)=>{const s=new t(e);return s.update(j(r)),s.digest()},Le=({headers:t},e,r)=>{const s={};for(const n of Object.keys(t).sort()){if(t[n]==null)continue;const i=n.toLowerCase();(i in ts||e?.has(i)||rs.test(i)||ss.test(i))&&(!r||r&&!r.has(i))||(s[i]=t[n].trim().replace(/\s+/g," "))}return s},us=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]",he=async({headers:t,body:e},r)=>{for(const s of Object.keys(t))if(s.toLowerCase()===be)return t[s];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||us(e)){const s=new r;return s.update(j(e)),M(await s.digest())}return is};class ds{format(e){const r=[];for(const i of Object.keys(e)){const a=J(i);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[i]))}const s=new Uint8Array(r.reduce((i,a)=>i+a.byteLength,0));let n=0;for(const i of r)s.set(i,n),n+=i.byteLength;return s}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 r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":const s=new DataView(new ArrayBuffer(5));return s.setUint8(0,4),s.setInt32(1,e.value,!1),new Uint8Array(s.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 a=new Uint8Array(i.buffer);return a.set(e.value,3),a;case"string":const c=J(e.value),o=new DataView(new ArrayBuffer(3+c.byteLength));o.setUint8(0,7),o.setUint16(1,c.byteLength,!1);const d=new Uint8Array(o.buffer);return d.set(c,3),d;case"timestamp":const h=new Uint8Array(9);return h[0]=8,h.set(Ae.fromNumber(e.value.valueOf()).bytes,1),h;case"uuid":if(!ls.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const u=new Uint8Array(17);return u[0]=9,u.set(Ot(e.value.replace(/\-/g,"")),1),u}}}var He;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(He||(He={}));const ls=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Ae{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const r=new Uint8Array(8);for(let s=7,n=Math.abs(Math.round(e));s>-1&&n>0;s--,n/=256)r[s]=n;return e<0&&ze(r),new Ae(r)}valueOf(){const e=this.bytes.slice(0),r=e[0]&128;return r&&ze(e),parseInt(M(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}}function ze(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}const fs=(t,e)=>{t=t.toLowerCase();for(const r of Object.keys(e))if(t===r.toLowerCase())return!0;return!1},hs=(t,e={})=>{const{headers:r,query:s={}}=x.clone(t);for(const n of Object.keys(r)){const i=n.toLowerCase();(i.slice(0,6)==="x-amz-"&&!e.unhoistableHeaders?.has(i)||e.hoistableHeaders?.has(i))&&(s[n]=r[n],delete r[n])}return{...t,headers:r,query:s}},Be=t=>{t=x.clone(t);for(const e of Object.keys(t.headers))Jr.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},ps=({query:t={}})=>{const e=[],r={};for(const s of Object.keys(t)){if(s.toLowerCase()===Zr)continue;const n=X(s);e.push(n);const i=t[s];typeof i=="string"?r[n]=`${n}=${X(i)}`:Array.isArray(i)&&(r[n]=i.slice(0).reduce((a,c)=>a.concat([`${n}=${X(c)}`]),[]).sort().join("&"))}return e.sort().map(s=>r[s]).filter(s=>s).join("&")},ms=t=>gs(t).toISOString().replace(/\.\d{3}Z$/,"Z"),gs=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t;class ys{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:r,region:s,service:n,sha256:i,uriEscapePath:a=!0}){this.service=n,this.sha256=i,this.uriEscapePath=a,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=k(s),this.credentialProvider=k(r)}createCanonicalRequest(e,r,s){const n=Object.keys(r).sort();return`${e.method}
|
|
5
5
|
${this.getCanonicalPath(e)}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/loadCognitoIdentity-
|
|
2
|
-
import{_ as I}from"./preload-helper-BlTxHScW.js";import{d as O,g as N,t as x,s as D,H as K,h as H,F as j,n as q}from"./normalizeProvider-EC8cbfMc.js";class A extends Error{name="ProviderError";tryNextLink;constructor(t,o=!0){let r,n=!0;typeof o=="boolean"?(r=void 0,n=o):o!=null&&typeof o=="object"&&(r=o.logger,n=o.tryNextLink??!0),super(t),this.tryNextLink=n,Object.setPrototypeOf(this,A.prototype),r?.debug?.(`@smithy/property-provider ${n?"->":"(!)"} ${t}`)}static from(t,o=!0){return Object.assign(new this(t.message,o),t)}}class l extends A{name="CredentialsProviderError";constructor(t,o=!0){super(t,o),Object.setPrototypeOf(this,l.prototype)}}function _(e){return Promise.all(Object.keys(e).reduce((t,o)=>{const r=e[o];return typeof r=="string"?t.push([o,r]):t.push(r().then(n=>[o,n])),t},[])).then(t=>t.reduce((o,[r,n])=>(o[r]=n,o),{}))}function k(e){return async t=>{e.logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const{GetCredentialsForIdentityCommand:o,CognitoIdentityClient:r}=await I(async()=>{const{GetCredentialsForIdentityCommand:c,CognitoIdentityClient:f}=await import("./loadCognitoIdentity-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/loadCognitoIdentity-D4_xA0Mt.js","assets/index-DtYoOSPF.js","assets/normalizeProvider-EC8cbfMc.js","assets/preload-helper-BlTxHScW.js","assets/index-BZpMQdNP.js","assets/_commonjsHelpers-D6-XlEtG.js","assets/index-ChvoNxcO.js","assets/__vite-browser-external-DLjrMatA.js","assets/inherits_browser-nmOknR35-Bp0mvRSL.js","assets/_commonjsHelpers-B4e78b8K-W3E8ocG7.js","assets/index-6mKfgpcs-DsgiI2lM.js","assets/index-DsIu-45t-Bejjlpz4.js","assets/index-DSosZ5sh-Ceejs_jv.js","assets/index-69shuAsh-DF18H7zf.js","assets/index-BJBOx-Z---hbiLl7B.js","assets/index.browser-BHPvGrwi-6Mh8eUw-.js","assets/_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js","assets/_commonjs-dynamic-modules-B7n8ZNar.js","assets/index-B3fofhvc.css","assets/AwsJson1_1Protocol-DFLJwuH1.js","assets/loadSts-DLeP6HXw.js","assets/index-BrNbsbhL.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as I}from"./preload-helper-BlTxHScW.js";import{d as O,g as N,t as x,s as D,H as K,h as H,F as j,n as q}from"./normalizeProvider-EC8cbfMc.js";class A extends Error{name="ProviderError";tryNextLink;constructor(t,o=!0){let r,n=!0;typeof o=="boolean"?(r=void 0,n=o):o!=null&&typeof o=="object"&&(r=o.logger,n=o.tryNextLink??!0),super(t),this.tryNextLink=n,Object.setPrototypeOf(this,A.prototype),r?.debug?.(`@smithy/property-provider ${n?"->":"(!)"} ${t}`)}static from(t,o=!0){return Object.assign(new this(t.message,o),t)}}class l extends A{name="CredentialsProviderError";constructor(t,o=!0){super(t,o),Object.setPrototypeOf(this,l.prototype)}}function _(e){return Promise.all(Object.keys(e).reduce((t,o)=>{const r=e[o];return typeof r=="string"?t.push([o,r]):t.push(r().then(n=>[o,n])),t},[])).then(t=>t.reduce((o,[r,n])=>(o[r]=n,o),{}))}function k(e){return async t=>{e.logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const{GetCredentialsForIdentityCommand:o,CognitoIdentityClient:r}=await I(async()=>{const{GetCredentialsForIdentityCommand:c,CognitoIdentityClient:f}=await import("./loadCognitoIdentity-D4_xA0Mt.js");return{GetCredentialsForIdentityCommand:c,CognitoIdentityClient:f}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])),n=c=>e.clientConfig?.[c]??e.parentClientConfig?.[c]??t?.callerClientConfig?.[c],{Credentials:{AccessKeyId:s=L(e.logger),Expiration:i,SecretKey:d=M(e.logger),SessionToken:u}=$(e.logger)}=await(e.client??new r(Object.assign({},e.clientConfig??{},{region:n("region"),profile:n("profile"),userAgentAppId:n("userAgentAppId")}))).send(new o({CustomRoleArn:e.customRoleArn,IdentityId:e.identityId,Logins:e.logins?await _(e.logins):void 0}));return{identityId:e.identityId,accessKeyId:s,secretAccessKey:d,sessionToken:u,expiration:i}}}function L(e){throw new l("Response from Amazon Cognito contained no access key ID",{logger:e})}function $(e){throw new l("Response from Amazon Cognito contained no credentials",{logger:e})}function M(e){throw new l("Response from Amazon Cognito contained no secret key",{logger:e})}const b="IdentityIds";class B{dbName;constructor(t="aws:cognito-identity-ids"){this.dbName=t}getItem(t){return this.withObjectStore("readonly",o=>{const r=o.get(t);return new Promise(n=>{r.onerror=()=>n(null),r.onsuccess=()=>n(r.result?r.result.value:null)})}).catch(()=>null)}removeItem(t){return this.withObjectStore("readwrite",o=>{const r=o.delete(t);return new Promise((n,s)=>{r.onerror=()=>s(r.error),r.onsuccess=()=>n()})})}setItem(t,o){return this.withObjectStore("readwrite",r=>{const n=r.put({id:t,value:o});return new Promise((s,i)=>{n.onerror=()=>i(n.error),n.onsuccess=()=>s()})})}getDb(){const t=self.indexedDB.open(this.dbName,1);return new Promise((o,r)=>{t.onsuccess=()=>{o(t.result)},t.onerror=()=>{r(t.error)},t.onblocked=()=>{r(new Error("Unable to access DB"))},t.onupgradeneeded=()=>{const n=t.result;n.onerror=()=>{r(new Error("Failed to create object store"))},n.createObjectStore(b,{keyPath:"id"})}})}withObjectStore(t,o){return this.getDb().then(r=>{const n=r.transaction(b,t);return n.oncomplete=()=>r.close(),new Promise((s,i)=>{n.onerror=()=>i(n.error),s(o(n.objectStore(b)))}).catch(s=>{throw r.close(),s})})}}class W{store;constructor(t={}){this.store=t}getItem(t){return t in this.store?this.store[t]:null}removeItem(t){delete this.store[t]}setItem(t,o){this.store[t]=o}}const U=new W;function F(){return typeof self=="object"&&self.indexedDB?new B:typeof window=="object"&&window.localStorage?window.localStorage:U}function z({accountId:e,cache:t=F(),client:o,clientConfig:r,customRoleArn:n,identityPoolId:s,logins:i,userIdentifier:d=!i||Object.keys(i).length===0?"ANONYMOUS":void 0,logger:u,parentClientConfig:c}){u?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const f=d?`aws:cognito-identity-credentials:${s}:${d}`:void 0;let a=async w=>{const{GetIdCommand:m,CognitoIdentityClient:y}=await I(async()=>{const{GetIdCommand:g,CognitoIdentityClient:P}=await import("./loadCognitoIdentity-D4_xA0Mt.js");return{GetIdCommand:g,CognitoIdentityClient:P}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])),h=g=>r?.[g]??c?.[g]??w?.callerClientConfig?.[g],C=o??new y(Object.assign({},r??{},{region:h("region"),profile:h("profile"),userAgentAppId:h("userAgentAppId")}));let p=f&&await t.getItem(f);if(!p){const{IdentityId:g=G(u)}=await C.send(new m({AccountId:e,IdentityPoolId:s,Logins:i?await _(i):void 0}));p=g,f&&Promise.resolve(t.setItem(f,p)).catch(()=>{})}return a=k({client:C,customRoleArn:n,logins:i,identityId:p}),a(w)};return w=>a(w).catch(async m=>{throw f&&Promise.resolve(t.removeItem(f)).catch(()=>{}),m})}function G(e){throw new l("Response from Amazon Cognito contained no identity ID",{logger:e})}const ie=e=>k({...e}),ae=e=>z({...e}),V="169.254.170.2",J="169.254.170.23",Y="[fd00:ec2::23]",Q=(e,t)=>{if(e.protocol!=="https:"&&!(e.hostname===V||e.hostname===J||e.hostname===Y)){if(e.hostname.includes("[")){if(e.hostname==="[::1]"||e.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(e.hostname==="localhost")return;const o=e.hostname.split("."),r=n=>{const s=parseInt(n,10);return 0<=s&&s<=255};if(o[0]==="127"&&r(o[1])&&r(o[2])&&r(o[3])&&o.length===4)return}throw new l(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
3
3
|
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
4
4
|
- ECS container host 169.254.170.2
|
|
5
5
|
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:t})}},T=e=>typeof ReadableStream=="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),R="The stream has already been transformed.",X=e=>{if(!E(e)&&!T(e)){const n=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${n}`)}let t=!1;const o=async()=>{if(t)throw new Error(R);return t=!0,await D(e)},r=n=>{if(typeof n.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
|
|
6
|
-
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return n.stream()};return Object.assign(e,{transformToByteArray:o,transformToString:async n=>{const s=await o();if(n==="base64")return O(s);if(n==="hex")return N(s);if(n===void 0||n==="utf8"||n==="utf-8")return x(s);if(typeof TextDecoder=="function")return new TextDecoder(n).decode(s);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error(R);if(t=!0,E(e))return r(e);if(T(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},E=e=>typeof Blob=="function"&&e instanceof Blob;function Z(e){return new K({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((t,[o,r])=>(t[o]=r,t),{}),fragment:e.hash})}async function ee(e,t){const r=await X(e.body).transformToString();if(e.statusCode===200){const n=JSON.parse(r);if(typeof n.AccessKeyId!="string"||typeof n.SecretAccessKey!="string"||typeof n.Token!="string"||typeof n.Expiration!="string")throw new l("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:t});return{accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,sessionToken:n.Token,expiration:H(n.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let n={};try{n=JSON.parse(r)}catch{}throw Object.assign(new l(`Server responded with status: ${e.statusCode}`,{logger:t}),{Code:n.Code,Message:n.Message})}throw new l(`Server responded with status: ${e.statusCode}`,{logger:t})}const te=(e,t,o)=>async()=>{for(let r=0;r<t;++r)try{return await e()}catch{await new Promise(s=>setTimeout(s,o))}return await e()},ce=(e={})=>{e.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let t;const o=e.credentialsFullUri;if(o)t=o;else throw new l("No HTTP credential provider host provided.",{logger:e.logger});const r=new URL(t);Q(r,e.logger);const n=new j;return te(async()=>{const s=Z(r);e.authorizationToken&&(s.headers.Authorization=e.authorizationToken);const i=await n.handle(s);return ee(i.response)},e.maxRetries??3,e.timeout??1e3)},ne="us-east-1",le=(e,t,o)=>{let r;return async(n={})=>{const{callerClientConfig:s}=n,i=e.clientConfig?.profile??s?.profile,d=e.logger??s?.logger;d?.debug("@aws-sdk/credential-providers - fromTemporaryCredentials (STS)");const u={...e.params,RoleSessionName:e.params.RoleSessionName??"aws-sdk-js-"+Date.now()};if(u?.SerialNumber){if(!e.mfaCodeProvider)throw new l("Temporary credential requires multi-factor authentication, but no MFA code callback was provided.",{tryNextLink:!1,logger:d});u.TokenCode=await e.mfaCodeProvider(u?.SerialNumber)}const{AssumeRoleCommand:c,STSClient:f}=await I(async()=>{const{AssumeRoleCommand:w,STSClient:m}=await import("./loadSts-
|
|
6
|
+
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return n.stream()};return Object.assign(e,{transformToByteArray:o,transformToString:async n=>{const s=await o();if(n==="base64")return O(s);if(n==="hex")return N(s);if(n===void 0||n==="utf8"||n==="utf-8")return x(s);if(typeof TextDecoder=="function")return new TextDecoder(n).decode(s);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error(R);if(t=!0,E(e))return r(e);if(T(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},E=e=>typeof Blob=="function"&&e instanceof Blob;function Z(e){return new K({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((t,[o,r])=>(t[o]=r,t),{}),fragment:e.hash})}async function ee(e,t){const r=await X(e.body).transformToString();if(e.statusCode===200){const n=JSON.parse(r);if(typeof n.AccessKeyId!="string"||typeof n.SecretAccessKey!="string"||typeof n.Token!="string"||typeof n.Expiration!="string")throw new l("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:t});return{accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,sessionToken:n.Token,expiration:H(n.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let n={};try{n=JSON.parse(r)}catch{}throw Object.assign(new l(`Server responded with status: ${e.statusCode}`,{logger:t}),{Code:n.Code,Message:n.Message})}throw new l(`Server responded with status: ${e.statusCode}`,{logger:t})}const te=(e,t,o)=>async()=>{for(let r=0;r<t;++r)try{return await e()}catch{await new Promise(s=>setTimeout(s,o))}return await e()},ce=(e={})=>{e.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let t;const o=e.credentialsFullUri;if(o)t=o;else throw new l("No HTTP credential provider host provided.",{logger:e.logger});const r=new URL(t);Q(r,e.logger);const n=new j;return te(async()=>{const s=Z(r);e.authorizationToken&&(s.headers.Authorization=e.authorizationToken);const i=await n.handle(s);return ee(i.response)},e.maxRetries??3,e.timeout??1e3)},ne="us-east-1",le=(e,t,o)=>{let r;return async(n={})=>{const{callerClientConfig:s}=n,i=e.clientConfig?.profile??s?.profile,d=e.logger??s?.logger;d?.debug("@aws-sdk/credential-providers - fromTemporaryCredentials (STS)");const u={...e.params,RoleSessionName:e.params.RoleSessionName??"aws-sdk-js-"+Date.now()};if(u?.SerialNumber){if(!e.mfaCodeProvider)throw new l("Temporary credential requires multi-factor authentication, but no MFA code callback was provided.",{tryNextLink:!1,logger:d});u.TokenCode=await e.mfaCodeProvider(u?.SerialNumber)}const{AssumeRoleCommand:c,STSClient:f}=await I(async()=>{const{AssumeRoleCommand:w,STSClient:m}=await import("./loadSts-DLeP6HXw.js").then(y=>y.l);return{AssumeRoleCommand:w,STSClient:m}},__vite__mapDeps([20,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));if(!r){const w=typeof t=="function"?t():void 0,m=[e.masterCredentials,e.clientConfig?.credentials,void s?.credentials,s?.credentialDefaultProvider?.(),w];let y="STS client default credentials";if(m[0])y="options.masterCredentials";else if(m[1])y="options.clientConfig.credentials";else{if(m[2])throw y="caller client's credentials",new Error("fromTemporaryCredentials recursion in callerClientConfig.credentials");m[3]?y="caller client's credentialDefaultProvider":m[4]&&(y="AWS SDK default credentials")}const h=[e.clientConfig?.region,s?.region,await o?.({profile:i}),ne];let C="default partition's default region";h[0]?C="options.clientConfig.region":h[1]?C="caller client's region":h[2]&&(C="file or env region");const p=[v(e.clientConfig?.requestHandler),v(s?.requestHandler)];let g="STS default requestHandler";p[0]?g="options.clientConfig.requestHandler":p[1]&&(g="caller client's requestHandler"),d?.debug?.(`@aws-sdk/credential-providers - fromTemporaryCredentials STS client init with ${C}=${await q(S(h))()}, ${y}, ${g}.`),r=new f({userAgentAppId:s?.userAgentAppId,...e.clientConfig,credentials:S(m),logger:d,profile:i,region:S(h),requestHandler:S(p)})}if(e.clientPlugins)for(const w of e.clientPlugins)r.middlewareStack.use(w);const{Credentials:a}=await r.send(new c(u));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new l(`Invalid response from STS.assumeRole call with role ${u.RoleArn}`,{logger:d});return{accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,credentialScope:a.CredentialScope}}},v=e=>e?.metadata?.handlerProtocol==="h2"?void 0:e,S=e=>{for(const t of e)if(t!==void 0)return t},re=e=>async t=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:o,roleSessionName:r,webIdentityToken:n,providerId:s,policyArns:i,policy:d,durationSeconds:u}=e;let{roleAssumerWithWebIdentity:c}=e;if(!c){const{getDefaultRoleAssumerWithWebIdentity:f}=await I(async()=>{const{getDefaultRoleAssumerWithWebIdentity:a}=await import("./index-BrNbsbhL.js");return{getDefaultRoleAssumerWithWebIdentity:a}},__vite__mapDeps([21,20,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));c=f({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...t?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return c({RoleArn:o,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:s,PolicyArns:i,Policy:d,DurationSeconds:u})},de=e=>re({...e});export{ie as fromCognitoIdentity,ae as fromCognitoIdentityPool,ce as fromHttp,le as fromTemporaryCredentials,de as fromWebToken};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as ge,n as T,i as me,E as Ee,j as he,k as ye,l as fe,p as Ie,m as xe,A as ve,o as Pe,q as Se,t as Ce,D as Ae,u as Re,w as _e,x as we,y as be,z as De,B as Fe,F as ke,G as Oe,H as $e,I as Ue,J as Ge,K as Me,M as Te,a as He,O as Le,Q as Ne,U as je,V as ze,W as qe,X as Ke,Y as Be,Z as Ve,_ as We,$ as Je,a0 as Qe,a1 as Xe,a2 as Ye,a3 as Ze,a4 as et,a5 as tt,T as d,C as H,g as L}from"./index-C_xZWFYS.js";import{t as ot,f as nt,d as rt,a as it,s as st,F as at}from"./normalizeProvider-EC8cbfMc.js";import{A as ct}from"./AwsJson1_1Protocol-D8lQS-Rk.js";import"./preload-helper-BlTxHScW.js";import"./index-D1kSoY9M.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-ChvoNxcO.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index.browser-BHPvGrwi-6Mh8eUw-.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./_commonjs-dynamic-modules-B7n8ZNar.js";const dt=async(e,t,n)=>({operation:me(t).operation,region:await T(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function pt(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function S(e){return{schemeId:"smithy.api#noAuth"}}const ut=e=>{const t=[];switch(e.operation){case"GetCredentialsForIdentity":{t.push(S());break}case"GetId":{t.push(S());break}case"GetOpenIdToken":{t.push(S());break}case"UnlinkIdentity":{t.push(S());break}default:t.push(pt(e))}return t},lt=e=>{const t=ge(e);return Object.assign(t,{authSchemePreference:T(e.authSchemePreference??[])})},gt=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"}),N={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},mt="3.948.0",Et={version:mt},j="required",i="fn",s="argv",f="ref",w=!0,b="isSet",v="booleanEquals",y="error",g="endpoint",h="tree",A="PartitionResult",R="getAttr",I="stringEquals",D={[j]:!1,type:"string"},F={[j]:!0,default:!1,type:"boolean"},k={[f]:"Endpoint"},z={[i]:v,[s]:[{[f]:"UseFIPS"},!0]},q={[i]:v,[s]:[{[f]:"UseDualStack"},!0]},r={},x={[f]:"Region"},O={[i]:R,[s]:[{[f]:A},"supportsFIPS"]},K={[f]:A},$={[i]:v,[s]:[!0,{[i]:R,[s]:[K,"supportsDualStack"]}]},U=[z],G=[q],M=[x],ht={parameters:{Region:D,UseDualStack:F,UseFIPS:F,Endpoint:D},rules:[{conditions:[{[i]:b,[s]:[k]}],rules:[{conditions:U,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:y},{conditions:G,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:y},{endpoint:{url:k,properties:r,headers:r},type:g}],type:h},{conditions:[{[i]:b,[s]:M}],rules:[{conditions:[{[i]:"aws.partition",[s]:M,assign:A}],rules:[{conditions:[z,q],rules:[{conditions:[{[i]:v,[s]:[w,O]},$],rules:[{conditions:[{[i]:I,[s]:[x,"us-east-1"]}],endpoint:{url:"https://cognito-identity-fips.us-east-1.amazonaws.com",properties:r,headers:r},type:g},{conditions:[{[i]:I,[s]:[x,"us-east-2"]}],endpoint:{url:"https://cognito-identity-fips.us-east-2.amazonaws.com",properties:r,headers:r},type:g},{conditions:[{[i]:I,[s]:[x,"us-west-1"]}],endpoint:{url:"https://cognito-identity-fips.us-west-1.amazonaws.com",properties:r,headers:r},type:g},{conditions:[{[i]:I,[s]:[x,"us-west-2"]}],endpoint:{url:"https://cognito-identity-fips.us-west-2.amazonaws.com",properties:r,headers:r},type:g},{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:r,headers:r},type:g}],type:h},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:y}],type:h},{conditions:U,rules:[{conditions:[{[i]:v,[s]:[O,w]}],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:r,headers:r},type:g}],type:h},{error:"FIPS is enabled but this partition does not support FIPS",type:y}],type:h},{conditions:G,rules:[{conditions:[$],rules:[{conditions:[{[i]:I,[s]:["aws",{[i]:R,[s]:[K,"name"]}]}],endpoint:{url:"https://cognito-identity.{Region}.amazonaws.com",properties:r,headers:r},type:g},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:r,headers:r},type:g}],type:h},{error:"DualStack is enabled but this partition does not support DualStack",type:y}],type:h},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:r,headers:r},type:g}],type:h}],type:h},{error:"Invalid Configuration: Missing Region",type:y}]},yt=ht,ft=new Ee({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),It=(e,t={})=>ft.get(e,()=>he(yt,{endpointParams:e,logger:t.logger}));fe.aws=ye;const xt=e=>({apiVersion:"2014-06-30",base64Decoder:e?.base64Decoder??it,base64Encoder:e?.base64Encoder??rt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??It,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ut,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new ve},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Pe}],logger:e?.logger??new xe,protocol:e?.protocol??new ct({defaultNamespace:"com.amazonaws.cognitoidentity",serviceTarget:"AWSCognitoIdentityService",awsQueryCompatible:!1}),serviceId:e?.serviceId??"Cognito Identity",urlParser:e?.urlParser??Ie,utf8Decoder:e?.utf8Decoder??nt,utf8Encoder:e?.utf8Encoder??ot}),vt=e=>{const t=Se(e),n=()=>t().then(ke),a=xt(e);return{...a,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??be,credentialDefaultProvider:e?.credentialDefaultProvider??(c=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??we({serviceId:a.serviceId,clientVersion:Et.version}),maxAttempts:e?.maxAttempts??_e,region:e?.region??Re("Region is missing"),requestHandler:at.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ae),sha256:e?.sha256??Ce,streamCollector:e?.streamCollector??st,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(Fe)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(De))}},Pt=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,a=e.credentials;return{setHttpAuthScheme(c){const P=t.findIndex(C=>C.schemeId===c.schemeId);P===-1?t.push(c):t.splice(P,1,c)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(c){n=c},httpAuthSchemeProvider(){return n},setCredentials(c){a=c},credentials(){return a}}},St=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Ct=(e,t)=>{const n=Object.assign(Oe(e),$e(e),Ue(e),Pt(e));return t.forEach(a=>a.configure(n)),Object.assign(e,Ge(n),Me(n),Te(n),St(n))};class Qo extends He{config;constructor(...[t]){const n=vt(t||{});super(n),this.initConfig=n;const a=gt(n),c=Le(a),P=Ne(c),C=je(P),ce=Ze(C),de=ze(ce),pe=lt(de),ue=Ct(pe,t?.extensions||[]);this.config=ue,this.middlewareStack.use(qe(this.config)),this.middlewareStack.use(Ke(this.config)),this.middlewareStack.use(Be(this.config)),this.middlewareStack.use(Ve(this.config)),this.middlewareStack.use(We(this.config)),this.middlewareStack.use(Je(this.config)),this.middlewareStack.use(Qe(this.config)),this.middlewareStack.use(Xe(this.config,{httpAuthSchemeParametersProvider:dt,identityProviderConfigProvider:async le=>new et({"aws.auth#sigv4":le.credentials})})),this.middlewareStack.use(Ye(this.config))}destroy(){super.destroy()}}let p=class B extends tt{constructor(t){super(t),Object.setPrototypeOf(this,B.prototype)}},At=class V extends p{name="InternalErrorException";$fault="server";constructor(t){super({name:"InternalErrorException",$fault:"server",...t}),Object.setPrototypeOf(this,V.prototype)}},Rt=class W extends p{name="InvalidParameterException";$fault="client";constructor(t){super({name:"InvalidParameterException",$fault:"client",...t}),Object.setPrototypeOf(this,W.prototype)}},_t=class J extends p{name="LimitExceededException";$fault="client";constructor(t){super({name:"LimitExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,J.prototype)}},wt=class Q extends p{name="NotAuthorizedException";$fault="client";constructor(t){super({name:"NotAuthorizedException",$fault:"client",...t}),Object.setPrototypeOf(this,Q.prototype)}},bt=class X extends p{name="ResourceConflictException";$fault="client";constructor(t){super({name:"ResourceConflictException",$fault:"client",...t}),Object.setPrototypeOf(this,X.prototype)}},Dt=class Y extends p{name="TooManyRequestsException";$fault="client";constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),Object.setPrototypeOf(this,Y.prototype)}},Ft=class Z extends p{name="ResourceNotFoundException";$fault="client";constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,Z.prototype)}},kt=class ee extends p{name="ExternalServiceException";$fault="client";constructor(t){super({name:"ExternalServiceException",$fault:"client",...t}),Object.setPrototypeOf(this,ee.prototype)}},Ot=class te extends p{name="InvalidIdentityPoolConfigurationException";$fault="client";constructor(t){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...t}),Object.setPrototypeOf(this,te.prototype)}},$t=class oe extends p{name="DeveloperUserAlreadyRegisteredException";$fault="client";constructor(t){super({name:"DeveloperUserAlreadyRegisteredException",$fault:"client",...t}),Object.setPrototypeOf(this,oe.prototype)}},Ut=class ne extends p{name="ConcurrentModificationException";$fault="client";constructor(t){super({name:"ConcurrentModificationException",$fault:"client",...t}),Object.setPrototypeOf(this,ne.prototype)}};const Gt="AccountId",Mt="AccessKeyId",re="Credentials",Tt="ConcurrentModificationException",Ht="CustomRoleArn",Lt="DeveloperUserAlreadyRegisteredException",Nt="Expiration",jt="ExternalServiceException",zt="GetCredentialsForIdentity",qt="GetCredentialsForIdentityInput",Kt="GetCredentialsForIdentityResponse",Bt="GetId",Vt="GetIdInput",Wt="GetIdResponse",Jt="InternalErrorException",_="IdentityId",Qt="InvalidIdentityPoolConfigurationException",Xt="InvalidParameterException",Yt="IdentityPoolId",Zt="IdentityProviderToken",ie="Logins",eo="LimitExceededException",to="LoginsMap",oo="NotAuthorizedException",no="ResourceConflictException",ro="ResourceNotFoundException",io="SecretKey",so="SecretKeyString",ao="SessionToken",co="TooManyRequestsException",m="client",u="error",E="httpError",l="message",po="server",se="smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity",o="com.amazonaws.cognitoidentity";var uo=[0,o,Zt,8,0],lo=[0,o,so,8,0],go=[-3,o,Tt,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(go,Ut);var mo=[3,o,re,0,[Mt,io,ao,Nt],[0,[()=>lo,0],0,4]],Eo=[-3,o,Lt,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(Eo,$t);var ho=[-3,o,jt,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(ho,kt);var yo=[3,o,qt,0,[_,ie,Ht],[0,[()=>ae,0],0]],fo=[3,o,Kt,0,[_,re],[0,[()=>mo,0]]],Io=[3,o,Vt,0,[Gt,Yt,ie],[0,0,[()=>ae,0]]],xo=[3,o,Wt,0,[_],[0]],vo=[-3,o,Jt,{[u]:po},[l],[0]];d.for(o).registerError(vo,At);var Po=[-3,o,Qt,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(Po,Ot);var So=[-3,o,Xt,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(So,Rt);var Co=[-3,o,eo,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(Co,_t);var Ao=[-3,o,oo,{[u]:m,[E]:403},[l],[0]];d.for(o).registerError(Ao,wt);var Ro=[-3,o,no,{[u]:m,[E]:409},[l],[0]];d.for(o).registerError(Ro,bt);var _o=[-3,o,ro,{[u]:m,[E]:404},[l],[0]];d.for(o).registerError(_o,Ft);var wo=[-3,o,co,{[u]:m,[E]:429},[l],[0]];d.for(o).registerError(wo,Dt);var bo=[-3,se,"CognitoIdentityServiceException",0,[],[]];d.for(se).registerError(bo,p);var ae=[2,o,to,0,[0,0],[()=>uo,0]],Do=[9,o,zt,0,()=>yo,()=>fo],Fo=[9,o,Bt,0,()=>Io,()=>xo];class Xo extends H.classBuilder().ep(N).m(function(t,n,a,c){return[L(a,t.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetCredentialsForIdentity",{}).n("CognitoIdentityClient","GetCredentialsForIdentityCommand").sc(Do).build(){}class Yo extends H.classBuilder().ep(N).m(function(t,n,a,c){return[L(a,t.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetId",{}).n("CognitoIdentityClient","GetIdCommand").sc(Fo).build(){}export{Qo as CognitoIdentityClient,Xo as GetCredentialsForIdentityCommand,Yo as GetIdCommand};
|
|
1
|
+
import{r as ge,n as T,i as me,E as Ee,j as he,k as ye,l as fe,p as Ie,m as xe,A as ve,o as Pe,q as Se,t as Ce,D as Ae,u as Re,w as _e,x as we,y as be,z as De,B as Fe,F as ke,G as Oe,H as $e,I as Ue,J as Ge,K as Me,M as Te,a as He,O as Le,Q as Ne,U as je,V as ze,W as qe,X as Ke,Y as Be,Z as Ve,_ as We,$ as Je,a0 as Qe,a1 as Xe,a2 as Ye,a3 as Ze,a4 as et,a5 as tt,T as d,C as H,g as L}from"./index-DtYoOSPF.js";import{t as ot,f as nt,d as rt,a as it,s as st,F as at}from"./normalizeProvider-EC8cbfMc.js";import{A as ct}from"./AwsJson1_1Protocol-DFLJwuH1.js";import"./preload-helper-BlTxHScW.js";import"./index-BZpMQdNP.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-ChvoNxcO.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index.browser-BHPvGrwi-6Mh8eUw-.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./_commonjs-dynamic-modules-B7n8ZNar.js";const dt=async(e,t,n)=>({operation:me(t).operation,region:await T(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function pt(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function S(e){return{schemeId:"smithy.api#noAuth"}}const ut=e=>{const t=[];switch(e.operation){case"GetCredentialsForIdentity":{t.push(S());break}case"GetId":{t.push(S());break}case"GetOpenIdToken":{t.push(S());break}case"UnlinkIdentity":{t.push(S());break}default:t.push(pt(e))}return t},lt=e=>{const t=ge(e);return Object.assign(t,{authSchemePreference:T(e.authSchemePreference??[])})},gt=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"}),N={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},mt="3.948.0",Et={version:mt},j="required",i="fn",s="argv",f="ref",w=!0,b="isSet",v="booleanEquals",y="error",g="endpoint",h="tree",A="PartitionResult",R="getAttr",I="stringEquals",D={[j]:!1,type:"string"},F={[j]:!0,default:!1,type:"boolean"},k={[f]:"Endpoint"},z={[i]:v,[s]:[{[f]:"UseFIPS"},!0]},q={[i]:v,[s]:[{[f]:"UseDualStack"},!0]},r={},x={[f]:"Region"},O={[i]:R,[s]:[{[f]:A},"supportsFIPS"]},K={[f]:A},$={[i]:v,[s]:[!0,{[i]:R,[s]:[K,"supportsDualStack"]}]},U=[z],G=[q],M=[x],ht={parameters:{Region:D,UseDualStack:F,UseFIPS:F,Endpoint:D},rules:[{conditions:[{[i]:b,[s]:[k]}],rules:[{conditions:U,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:y},{conditions:G,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:y},{endpoint:{url:k,properties:r,headers:r},type:g}],type:h},{conditions:[{[i]:b,[s]:M}],rules:[{conditions:[{[i]:"aws.partition",[s]:M,assign:A}],rules:[{conditions:[z,q],rules:[{conditions:[{[i]:v,[s]:[w,O]},$],rules:[{conditions:[{[i]:I,[s]:[x,"us-east-1"]}],endpoint:{url:"https://cognito-identity-fips.us-east-1.amazonaws.com",properties:r,headers:r},type:g},{conditions:[{[i]:I,[s]:[x,"us-east-2"]}],endpoint:{url:"https://cognito-identity-fips.us-east-2.amazonaws.com",properties:r,headers:r},type:g},{conditions:[{[i]:I,[s]:[x,"us-west-1"]}],endpoint:{url:"https://cognito-identity-fips.us-west-1.amazonaws.com",properties:r,headers:r},type:g},{conditions:[{[i]:I,[s]:[x,"us-west-2"]}],endpoint:{url:"https://cognito-identity-fips.us-west-2.amazonaws.com",properties:r,headers:r},type:g},{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:r,headers:r},type:g}],type:h},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:y}],type:h},{conditions:U,rules:[{conditions:[{[i]:v,[s]:[O,w]}],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:r,headers:r},type:g}],type:h},{error:"FIPS is enabled but this partition does not support FIPS",type:y}],type:h},{conditions:G,rules:[{conditions:[$],rules:[{conditions:[{[i]:I,[s]:["aws",{[i]:R,[s]:[K,"name"]}]}],endpoint:{url:"https://cognito-identity.{Region}.amazonaws.com",properties:r,headers:r},type:g},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:r,headers:r},type:g}],type:h},{error:"DualStack is enabled but this partition does not support DualStack",type:y}],type:h},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:r,headers:r},type:g}],type:h}],type:h},{error:"Invalid Configuration: Missing Region",type:y}]},yt=ht,ft=new Ee({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),It=(e,t={})=>ft.get(e,()=>he(yt,{endpointParams:e,logger:t.logger}));fe.aws=ye;const xt=e=>({apiVersion:"2014-06-30",base64Decoder:e?.base64Decoder??it,base64Encoder:e?.base64Encoder??rt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??It,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ut,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new ve},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Pe}],logger:e?.logger??new xe,protocol:e?.protocol??new ct({defaultNamespace:"com.amazonaws.cognitoidentity",serviceTarget:"AWSCognitoIdentityService",awsQueryCompatible:!1}),serviceId:e?.serviceId??"Cognito Identity",urlParser:e?.urlParser??Ie,utf8Decoder:e?.utf8Decoder??nt,utf8Encoder:e?.utf8Encoder??ot}),vt=e=>{const t=Se(e),n=()=>t().then(ke),a=xt(e);return{...a,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??be,credentialDefaultProvider:e?.credentialDefaultProvider??(c=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??we({serviceId:a.serviceId,clientVersion:Et.version}),maxAttempts:e?.maxAttempts??_e,region:e?.region??Re("Region is missing"),requestHandler:at.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ae),sha256:e?.sha256??Ce,streamCollector:e?.streamCollector??st,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(Fe)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(De))}},Pt=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,a=e.credentials;return{setHttpAuthScheme(c){const P=t.findIndex(C=>C.schemeId===c.schemeId);P===-1?t.push(c):t.splice(P,1,c)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(c){n=c},httpAuthSchemeProvider(){return n},setCredentials(c){a=c},credentials(){return a}}},St=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Ct=(e,t)=>{const n=Object.assign(Oe(e),$e(e),Ue(e),Pt(e));return t.forEach(a=>a.configure(n)),Object.assign(e,Ge(n),Me(n),Te(n),St(n))};class Qo extends He{config;constructor(...[t]){const n=vt(t||{});super(n),this.initConfig=n;const a=gt(n),c=Le(a),P=Ne(c),C=je(P),ce=Ze(C),de=ze(ce),pe=lt(de),ue=Ct(pe,t?.extensions||[]);this.config=ue,this.middlewareStack.use(qe(this.config)),this.middlewareStack.use(Ke(this.config)),this.middlewareStack.use(Be(this.config)),this.middlewareStack.use(Ve(this.config)),this.middlewareStack.use(We(this.config)),this.middlewareStack.use(Je(this.config)),this.middlewareStack.use(Qe(this.config)),this.middlewareStack.use(Xe(this.config,{httpAuthSchemeParametersProvider:dt,identityProviderConfigProvider:async le=>new et({"aws.auth#sigv4":le.credentials})})),this.middlewareStack.use(Ye(this.config))}destroy(){super.destroy()}}let p=class B extends tt{constructor(t){super(t),Object.setPrototypeOf(this,B.prototype)}},At=class V extends p{name="InternalErrorException";$fault="server";constructor(t){super({name:"InternalErrorException",$fault:"server",...t}),Object.setPrototypeOf(this,V.prototype)}},Rt=class W extends p{name="InvalidParameterException";$fault="client";constructor(t){super({name:"InvalidParameterException",$fault:"client",...t}),Object.setPrototypeOf(this,W.prototype)}},_t=class J extends p{name="LimitExceededException";$fault="client";constructor(t){super({name:"LimitExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,J.prototype)}},wt=class Q extends p{name="NotAuthorizedException";$fault="client";constructor(t){super({name:"NotAuthorizedException",$fault:"client",...t}),Object.setPrototypeOf(this,Q.prototype)}},bt=class X extends p{name="ResourceConflictException";$fault="client";constructor(t){super({name:"ResourceConflictException",$fault:"client",...t}),Object.setPrototypeOf(this,X.prototype)}},Dt=class Y extends p{name="TooManyRequestsException";$fault="client";constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),Object.setPrototypeOf(this,Y.prototype)}},Ft=class Z extends p{name="ResourceNotFoundException";$fault="client";constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,Z.prototype)}},kt=class ee extends p{name="ExternalServiceException";$fault="client";constructor(t){super({name:"ExternalServiceException",$fault:"client",...t}),Object.setPrototypeOf(this,ee.prototype)}},Ot=class te extends p{name="InvalidIdentityPoolConfigurationException";$fault="client";constructor(t){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...t}),Object.setPrototypeOf(this,te.prototype)}},$t=class oe extends p{name="DeveloperUserAlreadyRegisteredException";$fault="client";constructor(t){super({name:"DeveloperUserAlreadyRegisteredException",$fault:"client",...t}),Object.setPrototypeOf(this,oe.prototype)}},Ut=class ne extends p{name="ConcurrentModificationException";$fault="client";constructor(t){super({name:"ConcurrentModificationException",$fault:"client",...t}),Object.setPrototypeOf(this,ne.prototype)}};const Gt="AccountId",Mt="AccessKeyId",re="Credentials",Tt="ConcurrentModificationException",Ht="CustomRoleArn",Lt="DeveloperUserAlreadyRegisteredException",Nt="Expiration",jt="ExternalServiceException",zt="GetCredentialsForIdentity",qt="GetCredentialsForIdentityInput",Kt="GetCredentialsForIdentityResponse",Bt="GetId",Vt="GetIdInput",Wt="GetIdResponse",Jt="InternalErrorException",_="IdentityId",Qt="InvalidIdentityPoolConfigurationException",Xt="InvalidParameterException",Yt="IdentityPoolId",Zt="IdentityProviderToken",ie="Logins",eo="LimitExceededException",to="LoginsMap",oo="NotAuthorizedException",no="ResourceConflictException",ro="ResourceNotFoundException",io="SecretKey",so="SecretKeyString",ao="SessionToken",co="TooManyRequestsException",m="client",u="error",E="httpError",l="message",po="server",se="smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity",o="com.amazonaws.cognitoidentity";var uo=[0,o,Zt,8,0],lo=[0,o,so,8,0],go=[-3,o,Tt,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(go,Ut);var mo=[3,o,re,0,[Mt,io,ao,Nt],[0,[()=>lo,0],0,4]],Eo=[-3,o,Lt,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(Eo,$t);var ho=[-3,o,jt,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(ho,kt);var yo=[3,o,qt,0,[_,ie,Ht],[0,[()=>ae,0],0]],fo=[3,o,Kt,0,[_,re],[0,[()=>mo,0]]],Io=[3,o,Vt,0,[Gt,Yt,ie],[0,0,[()=>ae,0]]],xo=[3,o,Wt,0,[_],[0]],vo=[-3,o,Jt,{[u]:po},[l],[0]];d.for(o).registerError(vo,At);var Po=[-3,o,Qt,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(Po,Ot);var So=[-3,o,Xt,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(So,Rt);var Co=[-3,o,eo,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(Co,_t);var Ao=[-3,o,oo,{[u]:m,[E]:403},[l],[0]];d.for(o).registerError(Ao,wt);var Ro=[-3,o,no,{[u]:m,[E]:409},[l],[0]];d.for(o).registerError(Ro,bt);var _o=[-3,o,ro,{[u]:m,[E]:404},[l],[0]];d.for(o).registerError(_o,Ft);var wo=[-3,o,co,{[u]:m,[E]:429},[l],[0]];d.for(o).registerError(wo,Dt);var bo=[-3,se,"CognitoIdentityServiceException",0,[],[]];d.for(se).registerError(bo,p);var ae=[2,o,to,0,[0,0],[()=>uo,0]],Do=[9,o,zt,0,()=>yo,()=>fo],Fo=[9,o,Bt,0,()=>Io,()=>xo];class Xo extends H.classBuilder().ep(N).m(function(t,n,a,c){return[L(a,t.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetCredentialsForIdentity",{}).n("CognitoIdentityClient","GetCredentialsForIdentityCommand").sc(Do).build(){}class Yo extends H.classBuilder().ep(N).m(function(t,n,a,c){return[L(a,t.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetId",{}).n("CognitoIdentityClient","GetIdCommand").sc(Fo).build(){}export{Qo as CognitoIdentityClient,Xo as GetCredentialsForIdentityCommand,Yo as GetIdCommand};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a6 as Ge,b as F,e as ue,L as Je,N as me,S as pe,v as Xe,f as Ze,R as Ye,P as et,h as tt,c as Z,T as A,r as st,n as he,i as rt,E as nt,j as ot,k as it,l as at,p as ct,m as dt,A as lt,o as ut,q as mt,t as pt,D as ht,u as ft,w as gt,x as yt,y as St,z as Et,B as Pt,F as bt,G as Tt,H as wt,I as xt,J as At,K as Ct,M as Rt,a as It,O as Dt,Q as _t,U as Nt,V as kt,W as vt,X as $t,Y as Mt,Z as Ft,_ as Ot,$ as Ut,a0 as zt,a1 as Lt,a2 as jt,a3 as Wt,a4 as Kt,a5 as Ht,C as Vt,g as Bt}from"./index-C_xZWFYS.js";import{a as j,t as W,d as fe,e as Qt,f as qt,s as Gt,F as Jt}from"./normalizeProvider-EC8cbfMc.js";function Y(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}const K="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",H="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",V="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",ge="(\\d?\\d)",ye="(\\d{4})",Xt=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),Zt=new RegExp(`^${K}, ${ge} ${H} ${ye} ${V} GMT$`),Yt=new RegExp(`^${K}, ${ge}-${H}-(\\d\\d) ${V} GMT$`),es=new RegExp(`^${K} ${H} ( [1-9]|\\d\\d) ${V} ${ye}$`),ts=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ss=r=>{if(r==null)return;let e=NaN;if(typeof r=="number")e=r;else if(typeof r=="string"){if(!/^-?\d*\.?\d+$/.test(r))throw new TypeError("parseEpochTimestamp - numeric string invalid.");e=Number.parseFloat(r)}else typeof r=="object"&&r.tag===1&&(e=r.value);if(isNaN(e)||Math.abs(e)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(e*1e3))},rs=r=>{if(r==null)return;if(typeof r!="string")throw new TypeError("RFC3339 timestamps must be strings");const e=Xt.exec(r);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${r}`);const[,t,s,n,o,i,a,,c,l]=e;x(s,1,12),x(n,1,31),x(o,0,23),x(i,0,59),x(a,0,60);const u=new Date(Date.UTC(Number(t),Number(s)-1,Number(n),Number(o),Number(i),Number(a),Number(c)?Math.round(parseFloat(`0.${c}`)*1e3):0));if(u.setUTCFullYear(Number(t)),l.toUpperCase()!="Z"){const[,f,T,b]=/([+-])(\d\d):(\d\d)/.exec(l)||[void 0,"+",0,0],C=f==="-"?1:-1;u.setTime(u.getTime()+C*(Number(T)*60*60*1e3+Number(b)*60*1e3))}return u},ns=r=>{if(r==null)return;if(typeof r!="string")throw new TypeError("RFC7231 timestamps must be strings.");let e,t,s,n,o,i,a,c;if((c=Zt.exec(r))?[,e,t,s,n,o,i,a]=c:(c=Yt.exec(r))?([,e,t,s,n,o,i,a]=c,s=(Number(s)+1900).toString()):(c=es.exec(r))&&([,t,e,n,o,i,a,s]=c),s&&i){const l=Date.UTC(Number(s),ts.indexOf(t),Number(e),Number(n),Number(o),Number(i),a?Math.round(parseFloat(`0.${a}`)*1e3):0);x(e,1,31),x(n,0,23),x(o,0,59),x(i,0,60);const u=new Date(l);return u.setUTCFullYear(Number(s)),u}throw new TypeError(`Invalid RFC7231 date-time value ${r}.`)};function x(r,e,t){const s=Number(r);if(s<e||s>t)throw new Error(`Value ${s} out of range [${e}, ${t}]`)}const os=r=>{const e=r.length,t=[];let s=!1,n,o=0;for(let i=0;i<e;++i){const a=r[i];switch(a){case'"':n!=="\\"&&(s=!s);break;case",":s||(t.push(r.slice(o,i)),o=i+1);break}n=a}return t.push(r.slice(o)),t.map(i=>{i=i.trim();const a=i.length;return a<2?i:(i[0]==='"'&&i[a-1]==='"'&&(i=i.slice(1,a-1)),i.replace(/\\"/g,'"'))})};class is extends Ge{settings;constructor(e){super(),this.settings=e}read(e,t){const s=F.of(e);if(s.isListSchema())return os(t).map(n=>this.read(s.getValueSchema(),n));if(s.isBlobSchema())return(this.serdeContext?.base64Decoder??j)(t);if(s.isTimestampSchema())switch(ue(s,this.settings)){case 5:return rs(t);case 6:return ns(t);case 7:return ss(t);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",t),new Date(t)}if(s.isStringSchema()){const n=s.getMergedTraits().mediaType;let o=t;if(n)return s.getMergedTraits().httpHeader&&(o=this.base64ToUtf8(o)),(n==="application/json"||n.endsWith("+json"))&&(o=Je.from(o)),o}return s.isNumericSchema()?Number(t):s.isBigIntegerSchema()?BigInt(t):s.isBigDecimalSchema()?new me(t,"bigDecimal"):s.isBooleanSchema()?String(t).toLowerCase()==="true":t}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??W)((this.serdeContext?.base64Decoder??j)(e))}}const Se=r=>{const e="#text";for(const t in r)r.hasOwnProperty(t)&&r[t][e]!==void 0?r[t]=r[t][e]:typeof r[t]=="object"&&r[t]!==null&&(r[t]=Se(r[t]));return r};let U;function as(r){U||(U=new DOMParser);const e=U.parseFromString(r,"application/xml");if(e.getElementsByTagName("parsererror").length>0)throw new Error("DOMParser XML parsing error.");const t=s=>{if(s.nodeType===Node.TEXT_NODE&&s.textContent?.trim())return s.textContent;if(s.nodeType===Node.ELEMENT_NODE){const n=s;if(n.attributes.length===0&&n.childNodes.length===0)return"";const o={},i=Array.from(n.attributes);for(const c of i)o[`${c.name}`]=c.value;const a=Array.from(n.childNodes);for(const c of a){const l=t(c);if(l!=null){const u=c.nodeName;if(a.length===1&&i.length===0&&u==="#text")return l;o[u]?Array.isArray(o[u])?o[u].push(l):o[u]=[o[u],l]:o[u]=l}else if(a.length===1&&i.length===0)return n.textContent}return o}return null};return{[e.documentElement.nodeName]:t(e.documentElement)}}class cs extends pe{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new is(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,t,s){const n=F.of(e),o=n.getMemberSchemas();if(n.isStructSchema()&&n.isMemberSchema()&&!!Object.values(o).find(l=>!!l.getMemberTraits().eventPayload)){const l={},u=Object.keys(o)[0];return o[u].isBlobSchema()?l[u]=t:l[u]=this.read(o[u],t),l}const a=(this.serdeContext?.utf8Encoder??W)(t),c=this.parseXml(a);return this.readSchema(e,s?c[s]:c)}readSchema(e,t){const s=F.of(e);if(s.isUnitSchema())return;const n=s.getMergedTraits();if(s.isListSchema()&&!Array.isArray(t))return this.readSchema(s,[t]);if(t==null)return t;if(typeof t=="object"){const o=!!n.sparse,i=!!n.xmlFlattened;if(s.isListSchema()){const c=s.getValueSchema(),l=[],u=c.getMergedTraits().xmlName??"member",f=i?t:(t[0]??t)[u],T=Array.isArray(f)?f:[f];for(const b of T)(b!=null||o)&&l.push(this.readSchema(c,b));return l}const a={};if(s.isMapSchema()){const c=s.getKeySchema(),l=s.getValueSchema();let u;i?u=Array.isArray(t)?t:[t]:u=Array.isArray(t.entry)?t.entry:[t.entry];const f=c.getMergedTraits().xmlName??"key",T=l.getMergedTraits().xmlName??"value";for(const b of u){const C=b[f],O=b[T];(O!=null||o)&&(a[C]=this.readSchema(l,O))}return a}if(s.isStructSchema()){for(const[c,l]of s.structIterator()){const u=l.getMergedTraits(),f=u.httpPayload?u.xmlName??l.getName():l.getMemberTraits().xmlName??c;t[f]!=null&&(a[c]=this.readSchema(l,t[f]))}return a}if(s.isDocumentSchema())return t;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${s.getName(!0)}`)}return s.isListSchema()?[]:s.isMapSchema()||s.isStructSchema()?{}:this.stringDeserializer.read(s,t)}parseXml(e){if(e.length){let t;try{t=as(e)}catch(i){throw i&&typeof i=="object"&&Object.defineProperty(i,"$responseBodyText",{value:e}),i}const s="#text",n=Object.keys(t)[0],o=t[n];return o[s]&&(o[n]=o[s],delete o[s]),Se(o)}return{}}}class ds extends pe{settings;buffer;constructor(e){super(),this.settings=e}write(e,t,s=""){this.buffer===void 0&&(this.buffer="");const n=F.of(e);if(s&&!s.endsWith(".")&&(s+="."),n.isBlobSchema())(typeof t=="string"||t instanceof Uint8Array)&&(this.writeKey(s),this.writeValue((this.serdeContext?.base64Encoder??fe)(t)));else if(n.isBooleanSchema()||n.isNumericSchema()||n.isStringSchema())t!=null?(this.writeKey(s),this.writeValue(String(t))):n.isIdempotencyToken()&&(this.writeKey(s),this.writeValue(Xe()));else if(n.isBigIntegerSchema())t!=null&&(this.writeKey(s),this.writeValue(String(t)));else if(n.isBigDecimalSchema())t!=null&&(this.writeKey(s),this.writeValue(t instanceof me?t.string:String(t)));else if(n.isTimestampSchema()){if(t instanceof Date)switch(this.writeKey(s),ue(n,this.settings)){case 5:this.writeValue(t.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(Qt(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}else{if(n.isDocumentSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unsupported document type ${n.getName(!0)}`);if(n.isListSchema()){if(Array.isArray(t))if(t.length===0)this.settings.serializeEmptyLists&&(this.writeKey(s),this.writeValue(""));else{const o=n.getValueSchema(),i=this.settings.flattenLists||n.getMergedTraits().xmlFlattened;let a=1;for(const c of t){if(c==null)continue;const l=this.getKey("member",o.getMergedTraits().xmlName),u=i?`${s}${a}`:`${s}${l}.${a}`;this.write(o,c,u),++a}}}else if(n.isMapSchema()){if(t&&typeof t=="object"){const o=n.getKeySchema(),i=n.getValueSchema(),a=n.getMergedTraits().xmlFlattened;let c=1;for(const[l,u]of Object.entries(t)){if(u==null)continue;const f=this.getKey("key",o.getMergedTraits().xmlName),T=a?`${s}${c}.${f}`:`${s}entry.${c}.${f}`,b=this.getKey("value",i.getMergedTraits().xmlName),C=a?`${s}${c}.${b}`:`${s}entry.${c}.${b}`;this.write(o,l,T),this.write(i,u,C),++c}}}else if(n.isStructSchema()){if(t&&typeof t=="object")for(const[o,i]of Ze(n,t)){if(t[o]==null&&!i.isIdempotencyToken())continue;const a=this.getKey(o,i.getMergedTraits().xmlName),c=`${s}${a}`;this.write(i,t[o],c)}}else if(!n.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${n.getName(!0)}`)}}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");const e=this.buffer;return delete this.buffer,e}getKey(e,t){const s=t??e;return this.settings.capitalizeKeys?s[0].toUpperCase()+s.slice(1):s}writeKey(e){e.endsWith(".")&&(e=e.slice(0,e.length-1)),this.buffer+=`&${Y(e)}=`}writeValue(e){this.buffer+=Y(e)}}class ls extends Ye{options;serializer;deserializer;mixin=new et;constructor(e){super({defaultNamespace:e.defaultNamespace}),this.options=e;const t={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new ds(t),this.deserializer=new cs(t)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,t,s){const n=await super.serializeRequest(e,t,s);n.path.endsWith("/")||(n.path+="/"),Object.assign(n.headers,{"content-type":"application/x-www-form-urlencoded"}),(tt(e.input)==="unit"||!n.body)&&(n.body="");const o=e.name.split("#")[1]??e.name;return n.body=`Action=${o}&Version=${this.options.version}`+n.body,n.body.endsWith("&")&&(n.body=n.body.slice(-1)),n}async deserializeResponse(e,t,s){const n=this.deserializer,o=F.of(e.output),i={};if(s.statusCode>=300){const f=await Z(s.body,t);f.byteLength>0&&Object.assign(i,await n.read(15,f)),await this.handleError(e,t,s,i,this.deserializeMetadata(s))}for(const f in s.headers){const T=s.headers[f];delete s.headers[f],s.headers[f.toLowerCase()]=T}const a=e.name.split("#")[1]??e.name,c=o.isStructSchema()&&this.useNestedResult()?a+"Result":void 0,l=await Z(s.body,t);return l.byteLength>0&&Object.assign(i,await n.read(o,l,c)),{$metadata:this.deserializeMetadata(s),...i}}useNestedResult(){return!0}async handleError(e,t,s,n,o){const i=this.loadQueryErrorCode(s,n)??"Unknown",a=this.loadQueryError(n),c=this.loadQueryErrorMessage(n);a.message=c,a.Error={Type:a.Type,Code:a.Code,Message:c};const{errorSchema:l,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,s,a,o,this.mixin.findQueryCompatibleError),f=F.of(l),T=A.for(l[1]).getErrorCtor(l)??Error,b=new T(c),C={Type:a.Error.Type,Code:a.Error.Code,Error:a.Error};for(const[O,J]of f.structIterator()){const X=J.getMergedTraits().xmlName??O,qe=a[X]??n[X];C[O]=this.deserializer.readSchema(J,qe)}throw this.mixin.decorateServiceException(Object.assign(b,u,{$fault:f.getMergedTraits().error,message:c},C),n)}loadQueryErrorCode(e,t){const s=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(s!==void 0)return s;if(e.statusCode==404)return"NotFound"}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){const t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}const us=async(r,e,t)=>({operation:rt(e).operation,region:await he(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function ms(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:r.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function ps(r){return{schemeId:"smithy.api#noAuth"}}const hs=r=>{const e=[];switch(r.operation){case"AssumeRoleWithWebIdentity":{e.push(ps());break}default:e.push(ms(r))}return e},fs=r=>Object.assign(r,{stsClientCtor:De}),gs=r=>{const e=fs(r),t=st(e);return Object.assign(t,{authSchemePreference:he(r.authSchemePreference??[])})},ys=r=>Object.assign(r,{useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,useGlobalEndpoint:r.useGlobalEndpoint??!1,defaultSigningName:"sts"}),Ss={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"}},Es="3.948.0",Ps={version:Es},Ee="required",d="type",m="fn",p="argv",I="ref",ee=!1,z=!0,R="booleanEquals",y="stringEquals",Pe="sigv4",be="sts",Te="us-east-1",g="endpoint",te="https://sts.{Region}.{PartitionResult#dnsSuffix}",w="tree",M="error",B="getAttr",se={[Ee]:!1,[d]:"string"},L={[Ee]:!0,default:!1,[d]:"boolean"},we={[I]:"Endpoint"},re={[m]:"isSet",[p]:[{[I]:"Region"}]},S={[I]:"Region"},ne={[m]:"aws.partition",[p]:[S],assign:"PartitionResult"},xe={[I]:"UseFIPS"},Ae={[I]:"UseDualStack"},E={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:Pe,signingName:be,signingRegion:Te}]},headers:{}},P={},oe={conditions:[{[m]:y,[p]:[S,"aws-global"]}],[g]:E,[d]:g},Ce={[m]:R,[p]:[xe,!0]},Re={[m]:R,[p]:[Ae,!0]},ie={[m]:B,[p]:[{[I]:"PartitionResult"},"supportsFIPS"]},Ie={[I]:"PartitionResult"},ae={[m]:R,[p]:[!0,{[m]:B,[p]:[Ie,"supportsDualStack"]}]},ce=[{[m]:"isSet",[p]:[we]}],de=[Ce],le=[Re],bs={parameters:{Region:se,UseDualStack:L,UseFIPS:L,Endpoint:se,UseGlobalEndpoint:L},rules:[{conditions:[{[m]:R,[p]:[{[I]:"UseGlobalEndpoint"},z]},{[m]:"not",[p]:ce},re,ne,{[m]:R,[p]:[xe,ee]},{[m]:R,[p]:[Ae,ee]}],rules:[{conditions:[{[m]:y,[p]:[S,"ap-northeast-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"ap-south-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"ap-southeast-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"ap-southeast-2"]}],endpoint:E,[d]:g},oe,{conditions:[{[m]:y,[p]:[S,"ca-central-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"eu-central-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"eu-north-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"eu-west-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"eu-west-2"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"eu-west-3"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"sa-east-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,Te]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"us-east-2"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"us-west-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"us-west-2"]}],endpoint:E,[d]:g},{endpoint:{url:te,properties:{authSchemes:[{name:Pe,signingName:be,signingRegion:"{Region}"}]},headers:P},[d]:g}],[d]:w},{conditions:ce,rules:[{conditions:de,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[d]:M},{conditions:le,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[d]:M},{endpoint:{url:we,properties:P,headers:P},[d]:g}],[d]:w},{conditions:[re],rules:[{conditions:[ne],rules:[{conditions:[Ce,Re],rules:[{conditions:[{[m]:R,[p]:[z,ie]},ae],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},[d]:g}],[d]:w},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[d]:M}],[d]:w},{conditions:de,rules:[{conditions:[{[m]:R,[p]:[ie,z]}],rules:[{conditions:[{[m]:y,[p]:[{[m]:B,[p]:[Ie,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:P,headers:P},[d]:g},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:P,headers:P},[d]:g}],[d]:w},{error:"FIPS is enabled but this partition does not support FIPS",[d]:M}],[d]:w},{conditions:le,rules:[{conditions:[ae],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},[d]:g}],[d]:w},{error:"DualStack is enabled but this partition does not support DualStack",[d]:M}],[d]:w},oe,{endpoint:{url:te,properties:P,headers:P},[d]:g}],[d]:w}],[d]:w},{error:"Invalid Configuration: Missing Region",[d]:M}]},Ts=bs,ws=new nt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),xs=(r,e={})=>ws.get(r,()=>ot(Ts,{endpointParams:r,logger:e.logger}));at.aws=it;const As=r=>({apiVersion:"2011-06-15",base64Decoder:r?.base64Decoder??j,base64Encoder:r?.base64Encoder??fe,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??xs,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??hs,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new lt},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ut}],logger:r?.logger??new dt,protocol:r?.protocol??new ls({defaultNamespace:"com.amazonaws.sts",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15"}),serviceId:r?.serviceId??"STS",urlParser:r?.urlParser??ct,utf8Decoder:r?.utf8Decoder??qt,utf8Encoder:r?.utf8Encoder??W}),Cs=r=>{const e=mt(r),t=()=>e().then(bt),s=As(r);return{...s,...r,runtime:"browser",defaultsMode:e,bodyLengthChecker:r?.bodyLengthChecker??St,credentialDefaultProvider:r?.credentialDefaultProvider??(n=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:r?.defaultUserAgentProvider??yt({serviceId:s.serviceId,clientVersion:Ps.version}),maxAttempts:r?.maxAttempts??gt,region:r?.region??ft("Region is missing"),requestHandler:Jt.create(r?.requestHandler??t),retryMode:r?.retryMode??(async()=>(await t()).retryMode||ht),sha256:r?.sha256??pt,streamCollector:r?.streamCollector??Gt,useDualstackEndpoint:r?.useDualstackEndpoint??(()=>Promise.resolve(Pt)),useFipsEndpoint:r?.useFipsEndpoint??(()=>Promise.resolve(Et))}},Rs=r=>{const e=r.httpAuthSchemes;let t=r.httpAuthSchemeProvider,s=r.credentials;return{setHttpAuthScheme(n){const o=e.findIndex(i=>i.schemeId===n.schemeId);o===-1?e.push(n):e.splice(o,1,n)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(n){t=n},httpAuthSchemeProvider(){return t},setCredentials(n){s=n},credentials(){return s}}},Is=r=>({httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}),Ds=(r,e)=>{const t=Object.assign(Tt(r),wt(r),xt(r),Rs(r));return e.forEach(s=>s.configure(t)),Object.assign(r,At(t),Ct(t),Rt(t),Is(t))};class De extends It{config;constructor(...[e]){const t=Cs(e||{});super(t),this.initConfig=t;const s=ys(t),n=Dt(s),o=_t(n),i=Nt(o),a=Wt(i),c=kt(a),l=gs(c),u=Ds(l,e?.extensions||[]);this.config=u,this.middlewareStack.use(vt(this.config)),this.middlewareStack.use($t(this.config)),this.middlewareStack.use(Mt(this.config)),this.middlewareStack.use(Ft(this.config)),this.middlewareStack.use(Ot(this.config)),this.middlewareStack.use(Ut(this.config)),this.middlewareStack.use(zt(this.config)),this.middlewareStack.use(Lt(this.config,{httpAuthSchemeParametersProvider:us,identityProviderConfigProvider:async f=>new Kt({"aws.auth#sigv4":f.credentials})})),this.middlewareStack.use(jt(this.config))}destroy(){super.destroy()}}let D=class _e extends Ht{constructor(e){super(e),Object.setPrototypeOf(this,_e.prototype)}},_s=class Ne extends D{name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,Ne.prototype)}},Ns=class ke extends D{name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e}),Object.setPrototypeOf(this,ke.prototype)}},ks=class ve extends D{name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e}),Object.setPrototypeOf(this,ve.prototype)}},vs=class $e extends D{name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e}),Object.setPrototypeOf(this,$e.prototype)}},$s=class Me extends D{name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e}),Object.setPrototypeOf(this,Me.prototype)}},Ms=class Fe extends D{name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,Fe.prototype)}},Fs=class Oe extends D{name="IDPCommunicationErrorException";$fault="client";constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e}),Object.setPrototypeOf(this,Oe.prototype)}};const Os="Arn",Us="AccessKeyId",zs="AssumeRole",Ls="AssumedRoleId",js="AssumeRoleRequest",Ws="AssumeRoleResponse",Q="AssumedRoleUser",Ks="AssumeRoleWithWebIdentity",Hs="AssumeRoleWithWebIdentityRequest",Vs="AssumeRoleWithWebIdentityResponse",Bs="Audience",q="Credentials",Qs="ContextAssertion",Ue="DurationSeconds",qs="Expiration",Gs="ExternalId",Js="ExpiredTokenException",Xs="IDPCommunicationErrorException",Zs="IDPRejectedClaimException",Ys="InvalidIdentityTokenException",er="Key",tr="MalformedPolicyDocumentException",ze="Policy",Le="PolicyArns",sr="ProviderArn",rr="ProvidedContexts",nr="ProvidedContextsListType",or="ProvidedContext",ir="PolicyDescriptorType",ar="ProviderId",je="PackedPolicySize",cr="PackedPolicyTooLargeException",dr="Provider",We="RoleArn",lr="RegionDisabledException",Ke="RoleSessionName",ur="SecretAccessKey",mr="SubjectFromWebIdentityToken",G="SourceIdentity",pr="SerialNumber",hr="SessionToken",fr="Tags",gr="TokenCode",yr="TransitiveTagKeys",Sr="Tag",Er="Value",Pr="WebIdentityToken",br="arn",Tr="accessKeySecretType",_="awsQueryError",N="client",wr="clientTokenType",k="error",v="httpError",$="message",xr="policyDescriptorListType",He="smithy.ts.sdk.synthetic.com.amazonaws.sts",Ar="tagListType",h="com.amazonaws.sts";var Cr=[0,h,Tr,8,0],Rr=[0,h,wr,8,0],Ve=[3,h,Q,0,[Ls,Os],[0,0]],Ir=[3,h,js,0,[We,Ke,Le,ze,Ue,fr,yr,Gs,pr,gr,G,rr],[0,0,()=>Qe,0,1,()=>Hr,64,0,0,0,0,()=>Kr]],Dr=[3,h,Ws,0,[q,Q,je,G],[[()=>Be,0],()=>Ve,1,0]],_r=[3,h,Hs,0,[We,Ke,Pr,ar,Le,ze,Ue],[0,0,[()=>Rr,0],0,()=>Qe,0,1]],Nr=[3,h,Vs,0,[q,mr,Q,je,dr,Bs,G],[[()=>Be,0],0,()=>Ve,1,0,0,0]],Be=[3,h,q,0,[Us,ur,hr,qs],[0,[()=>Cr,0],0,4]],kr=[-3,h,Js,{[k]:N,[v]:400,[_]:["ExpiredTokenException",400]},[$],[0]];A.for(h).registerError(kr,_s);var vr=[-3,h,Xs,{[k]:N,[v]:400,[_]:["IDPCommunicationError",400]},[$],[0]];A.for(h).registerError(vr,Fs);var $r=[-3,h,Zs,{[k]:N,[v]:403,[_]:["IDPRejectedClaim",403]},[$],[0]];A.for(h).registerError($r,$s);var Mr=[-3,h,Ys,{[k]:N,[v]:400,[_]:["InvalidIdentityToken",400]},[$],[0]];A.for(h).registerError(Mr,Ms);var Fr=[-3,h,tr,{[k]:N,[v]:400,[_]:["MalformedPolicyDocument",400]},[$],[0]];A.for(h).registerError(Fr,Ns);var Or=[-3,h,cr,{[k]:N,[v]:400,[_]:["PackedPolicyTooLarge",400]},[$],[0]];A.for(h).registerError(Or,ks);var Ur=[3,h,ir,0,[br],[0]],zr=[3,h,or,0,[sr,Qs],[0,0]],Lr=[-3,h,lr,{[k]:N,[v]:403,[_]:["RegionDisabledException",403]},[$],[0]];A.for(h).registerError(Lr,vs);var jr=[3,h,Sr,0,[er,Er],[0,0]],Wr=[-3,He,"STSServiceException",0,[],[]];A.for(He).registerError(Wr,D);var Qe=[1,h,xr,0,()=>Ur],Kr=[1,h,nr,0,()=>zr],Hr=[1,h,Ar,0,()=>jr],Vr=[9,h,zs,0,()=>Ir,()=>Dr],Gr=[9,h,Ks,0,()=>_r,()=>Nr];class Br extends Vt.classBuilder().ep(Ss).m(function(e,t,s,n){return[Bt(s,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(Vr).build(){}const Jr=Object.freeze(Object.defineProperty({__proto__:null,AssumeRoleCommand:Br,STSClient:De},Symbol.toStringTag,{value:"Module"}));export{Gr as A,_s as E,$s as I,Ns as M,ks as P,vs as R,De as S,D as a,Br as b,Ss as c,Ms as d,Fs as e,Jr as l};
|
|
1
|
+
import{a6 as Ge,b as F,e as ue,L as Je,N as me,S as pe,v as Xe,f as Ze,R as Ye,P as et,h as tt,c as Z,T as A,r as st,n as he,i as rt,E as nt,j as ot,k as it,l as at,p as ct,m as dt,A as lt,o as ut,q as mt,t as pt,D as ht,u as ft,w as gt,x as yt,y as St,z as Et,B as Pt,F as bt,G as Tt,H as wt,I as xt,J as At,K as Ct,M as Rt,a as It,O as Dt,Q as _t,U as Nt,V as kt,W as vt,X as $t,Y as Mt,Z as Ft,_ as Ot,$ as Ut,a0 as zt,a1 as Lt,a2 as jt,a3 as Wt,a4 as Kt,a5 as Ht,C as Vt,g as Bt}from"./index-DtYoOSPF.js";import{a as j,t as W,d as fe,e as Qt,f as qt,s as Gt,F as Jt}from"./normalizeProvider-EC8cbfMc.js";function Y(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}const K="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",H="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",V="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",ge="(\\d?\\d)",ye="(\\d{4})",Xt=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),Zt=new RegExp(`^${K}, ${ge} ${H} ${ye} ${V} GMT$`),Yt=new RegExp(`^${K}, ${ge}-${H}-(\\d\\d) ${V} GMT$`),es=new RegExp(`^${K} ${H} ( [1-9]|\\d\\d) ${V} ${ye}$`),ts=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ss=r=>{if(r==null)return;let e=NaN;if(typeof r=="number")e=r;else if(typeof r=="string"){if(!/^-?\d*\.?\d+$/.test(r))throw new TypeError("parseEpochTimestamp - numeric string invalid.");e=Number.parseFloat(r)}else typeof r=="object"&&r.tag===1&&(e=r.value);if(isNaN(e)||Math.abs(e)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(e*1e3))},rs=r=>{if(r==null)return;if(typeof r!="string")throw new TypeError("RFC3339 timestamps must be strings");const e=Xt.exec(r);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${r}`);const[,t,s,n,o,i,a,,c,l]=e;x(s,1,12),x(n,1,31),x(o,0,23),x(i,0,59),x(a,0,60);const u=new Date(Date.UTC(Number(t),Number(s)-1,Number(n),Number(o),Number(i),Number(a),Number(c)?Math.round(parseFloat(`0.${c}`)*1e3):0));if(u.setUTCFullYear(Number(t)),l.toUpperCase()!="Z"){const[,f,T,b]=/([+-])(\d\d):(\d\d)/.exec(l)||[void 0,"+",0,0],C=f==="-"?1:-1;u.setTime(u.getTime()+C*(Number(T)*60*60*1e3+Number(b)*60*1e3))}return u},ns=r=>{if(r==null)return;if(typeof r!="string")throw new TypeError("RFC7231 timestamps must be strings.");let e,t,s,n,o,i,a,c;if((c=Zt.exec(r))?[,e,t,s,n,o,i,a]=c:(c=Yt.exec(r))?([,e,t,s,n,o,i,a]=c,s=(Number(s)+1900).toString()):(c=es.exec(r))&&([,t,e,n,o,i,a,s]=c),s&&i){const l=Date.UTC(Number(s),ts.indexOf(t),Number(e),Number(n),Number(o),Number(i),a?Math.round(parseFloat(`0.${a}`)*1e3):0);x(e,1,31),x(n,0,23),x(o,0,59),x(i,0,60);const u=new Date(l);return u.setUTCFullYear(Number(s)),u}throw new TypeError(`Invalid RFC7231 date-time value ${r}.`)};function x(r,e,t){const s=Number(r);if(s<e||s>t)throw new Error(`Value ${s} out of range [${e}, ${t}]`)}const os=r=>{const e=r.length,t=[];let s=!1,n,o=0;for(let i=0;i<e;++i){const a=r[i];switch(a){case'"':n!=="\\"&&(s=!s);break;case",":s||(t.push(r.slice(o,i)),o=i+1);break}n=a}return t.push(r.slice(o)),t.map(i=>{i=i.trim();const a=i.length;return a<2?i:(i[0]==='"'&&i[a-1]==='"'&&(i=i.slice(1,a-1)),i.replace(/\\"/g,'"'))})};class is extends Ge{settings;constructor(e){super(),this.settings=e}read(e,t){const s=F.of(e);if(s.isListSchema())return os(t).map(n=>this.read(s.getValueSchema(),n));if(s.isBlobSchema())return(this.serdeContext?.base64Decoder??j)(t);if(s.isTimestampSchema())switch(ue(s,this.settings)){case 5:return rs(t);case 6:return ns(t);case 7:return ss(t);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",t),new Date(t)}if(s.isStringSchema()){const n=s.getMergedTraits().mediaType;let o=t;if(n)return s.getMergedTraits().httpHeader&&(o=this.base64ToUtf8(o)),(n==="application/json"||n.endsWith("+json"))&&(o=Je.from(o)),o}return s.isNumericSchema()?Number(t):s.isBigIntegerSchema()?BigInt(t):s.isBigDecimalSchema()?new me(t,"bigDecimal"):s.isBooleanSchema()?String(t).toLowerCase()==="true":t}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??W)((this.serdeContext?.base64Decoder??j)(e))}}const Se=r=>{const e="#text";for(const t in r)r.hasOwnProperty(t)&&r[t][e]!==void 0?r[t]=r[t][e]:typeof r[t]=="object"&&r[t]!==null&&(r[t]=Se(r[t]));return r};let U;function as(r){U||(U=new DOMParser);const e=U.parseFromString(r,"application/xml");if(e.getElementsByTagName("parsererror").length>0)throw new Error("DOMParser XML parsing error.");const t=s=>{if(s.nodeType===Node.TEXT_NODE&&s.textContent?.trim())return s.textContent;if(s.nodeType===Node.ELEMENT_NODE){const n=s;if(n.attributes.length===0&&n.childNodes.length===0)return"";const o={},i=Array.from(n.attributes);for(const c of i)o[`${c.name}`]=c.value;const a=Array.from(n.childNodes);for(const c of a){const l=t(c);if(l!=null){const u=c.nodeName;if(a.length===1&&i.length===0&&u==="#text")return l;o[u]?Array.isArray(o[u])?o[u].push(l):o[u]=[o[u],l]:o[u]=l}else if(a.length===1&&i.length===0)return n.textContent}return o}return null};return{[e.documentElement.nodeName]:t(e.documentElement)}}class cs extends pe{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new is(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,t,s){const n=F.of(e),o=n.getMemberSchemas();if(n.isStructSchema()&&n.isMemberSchema()&&!!Object.values(o).find(l=>!!l.getMemberTraits().eventPayload)){const l={},u=Object.keys(o)[0];return o[u].isBlobSchema()?l[u]=t:l[u]=this.read(o[u],t),l}const a=(this.serdeContext?.utf8Encoder??W)(t),c=this.parseXml(a);return this.readSchema(e,s?c[s]:c)}readSchema(e,t){const s=F.of(e);if(s.isUnitSchema())return;const n=s.getMergedTraits();if(s.isListSchema()&&!Array.isArray(t))return this.readSchema(s,[t]);if(t==null)return t;if(typeof t=="object"){const o=!!n.sparse,i=!!n.xmlFlattened;if(s.isListSchema()){const c=s.getValueSchema(),l=[],u=c.getMergedTraits().xmlName??"member",f=i?t:(t[0]??t)[u],T=Array.isArray(f)?f:[f];for(const b of T)(b!=null||o)&&l.push(this.readSchema(c,b));return l}const a={};if(s.isMapSchema()){const c=s.getKeySchema(),l=s.getValueSchema();let u;i?u=Array.isArray(t)?t:[t]:u=Array.isArray(t.entry)?t.entry:[t.entry];const f=c.getMergedTraits().xmlName??"key",T=l.getMergedTraits().xmlName??"value";for(const b of u){const C=b[f],O=b[T];(O!=null||o)&&(a[C]=this.readSchema(l,O))}return a}if(s.isStructSchema()){for(const[c,l]of s.structIterator()){const u=l.getMergedTraits(),f=u.httpPayload?u.xmlName??l.getName():l.getMemberTraits().xmlName??c;t[f]!=null&&(a[c]=this.readSchema(l,t[f]))}return a}if(s.isDocumentSchema())return t;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${s.getName(!0)}`)}return s.isListSchema()?[]:s.isMapSchema()||s.isStructSchema()?{}:this.stringDeserializer.read(s,t)}parseXml(e){if(e.length){let t;try{t=as(e)}catch(i){throw i&&typeof i=="object"&&Object.defineProperty(i,"$responseBodyText",{value:e}),i}const s="#text",n=Object.keys(t)[0],o=t[n];return o[s]&&(o[n]=o[s],delete o[s]),Se(o)}return{}}}class ds extends pe{settings;buffer;constructor(e){super(),this.settings=e}write(e,t,s=""){this.buffer===void 0&&(this.buffer="");const n=F.of(e);if(s&&!s.endsWith(".")&&(s+="."),n.isBlobSchema())(typeof t=="string"||t instanceof Uint8Array)&&(this.writeKey(s),this.writeValue((this.serdeContext?.base64Encoder??fe)(t)));else if(n.isBooleanSchema()||n.isNumericSchema()||n.isStringSchema())t!=null?(this.writeKey(s),this.writeValue(String(t))):n.isIdempotencyToken()&&(this.writeKey(s),this.writeValue(Xe()));else if(n.isBigIntegerSchema())t!=null&&(this.writeKey(s),this.writeValue(String(t)));else if(n.isBigDecimalSchema())t!=null&&(this.writeKey(s),this.writeValue(t instanceof me?t.string:String(t)));else if(n.isTimestampSchema()){if(t instanceof Date)switch(this.writeKey(s),ue(n,this.settings)){case 5:this.writeValue(t.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(Qt(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}else{if(n.isDocumentSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unsupported document type ${n.getName(!0)}`);if(n.isListSchema()){if(Array.isArray(t))if(t.length===0)this.settings.serializeEmptyLists&&(this.writeKey(s),this.writeValue(""));else{const o=n.getValueSchema(),i=this.settings.flattenLists||n.getMergedTraits().xmlFlattened;let a=1;for(const c of t){if(c==null)continue;const l=this.getKey("member",o.getMergedTraits().xmlName),u=i?`${s}${a}`:`${s}${l}.${a}`;this.write(o,c,u),++a}}}else if(n.isMapSchema()){if(t&&typeof t=="object"){const o=n.getKeySchema(),i=n.getValueSchema(),a=n.getMergedTraits().xmlFlattened;let c=1;for(const[l,u]of Object.entries(t)){if(u==null)continue;const f=this.getKey("key",o.getMergedTraits().xmlName),T=a?`${s}${c}.${f}`:`${s}entry.${c}.${f}`,b=this.getKey("value",i.getMergedTraits().xmlName),C=a?`${s}${c}.${b}`:`${s}entry.${c}.${b}`;this.write(o,l,T),this.write(i,u,C),++c}}}else if(n.isStructSchema()){if(t&&typeof t=="object")for(const[o,i]of Ze(n,t)){if(t[o]==null&&!i.isIdempotencyToken())continue;const a=this.getKey(o,i.getMergedTraits().xmlName),c=`${s}${a}`;this.write(i,t[o],c)}}else if(!n.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${n.getName(!0)}`)}}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");const e=this.buffer;return delete this.buffer,e}getKey(e,t){const s=t??e;return this.settings.capitalizeKeys?s[0].toUpperCase()+s.slice(1):s}writeKey(e){e.endsWith(".")&&(e=e.slice(0,e.length-1)),this.buffer+=`&${Y(e)}=`}writeValue(e){this.buffer+=Y(e)}}class ls extends Ye{options;serializer;deserializer;mixin=new et;constructor(e){super({defaultNamespace:e.defaultNamespace}),this.options=e;const t={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new ds(t),this.deserializer=new cs(t)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,t,s){const n=await super.serializeRequest(e,t,s);n.path.endsWith("/")||(n.path+="/"),Object.assign(n.headers,{"content-type":"application/x-www-form-urlencoded"}),(tt(e.input)==="unit"||!n.body)&&(n.body="");const o=e.name.split("#")[1]??e.name;return n.body=`Action=${o}&Version=${this.options.version}`+n.body,n.body.endsWith("&")&&(n.body=n.body.slice(-1)),n}async deserializeResponse(e,t,s){const n=this.deserializer,o=F.of(e.output),i={};if(s.statusCode>=300){const f=await Z(s.body,t);f.byteLength>0&&Object.assign(i,await n.read(15,f)),await this.handleError(e,t,s,i,this.deserializeMetadata(s))}for(const f in s.headers){const T=s.headers[f];delete s.headers[f],s.headers[f.toLowerCase()]=T}const a=e.name.split("#")[1]??e.name,c=o.isStructSchema()&&this.useNestedResult()?a+"Result":void 0,l=await Z(s.body,t);return l.byteLength>0&&Object.assign(i,await n.read(o,l,c)),{$metadata:this.deserializeMetadata(s),...i}}useNestedResult(){return!0}async handleError(e,t,s,n,o){const i=this.loadQueryErrorCode(s,n)??"Unknown",a=this.loadQueryError(n),c=this.loadQueryErrorMessage(n);a.message=c,a.Error={Type:a.Type,Code:a.Code,Message:c};const{errorSchema:l,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,s,a,o,this.mixin.findQueryCompatibleError),f=F.of(l),T=A.for(l[1]).getErrorCtor(l)??Error,b=new T(c),C={Type:a.Error.Type,Code:a.Error.Code,Error:a.Error};for(const[O,J]of f.structIterator()){const X=J.getMergedTraits().xmlName??O,qe=a[X]??n[X];C[O]=this.deserializer.readSchema(J,qe)}throw this.mixin.decorateServiceException(Object.assign(b,u,{$fault:f.getMergedTraits().error,message:c},C),n)}loadQueryErrorCode(e,t){const s=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(s!==void 0)return s;if(e.statusCode==404)return"NotFound"}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){const t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}const us=async(r,e,t)=>({operation:rt(e).operation,region:await he(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function ms(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:r.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function ps(r){return{schemeId:"smithy.api#noAuth"}}const hs=r=>{const e=[];switch(r.operation){case"AssumeRoleWithWebIdentity":{e.push(ps());break}default:e.push(ms(r))}return e},fs=r=>Object.assign(r,{stsClientCtor:De}),gs=r=>{const e=fs(r),t=st(e);return Object.assign(t,{authSchemePreference:he(r.authSchemePreference??[])})},ys=r=>Object.assign(r,{useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,useGlobalEndpoint:r.useGlobalEndpoint??!1,defaultSigningName:"sts"}),Ss={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"}},Es="3.948.0",Ps={version:Es},Ee="required",d="type",m="fn",p="argv",I="ref",ee=!1,z=!0,R="booleanEquals",y="stringEquals",Pe="sigv4",be="sts",Te="us-east-1",g="endpoint",te="https://sts.{Region}.{PartitionResult#dnsSuffix}",w="tree",M="error",B="getAttr",se={[Ee]:!1,[d]:"string"},L={[Ee]:!0,default:!1,[d]:"boolean"},we={[I]:"Endpoint"},re={[m]:"isSet",[p]:[{[I]:"Region"}]},S={[I]:"Region"},ne={[m]:"aws.partition",[p]:[S],assign:"PartitionResult"},xe={[I]:"UseFIPS"},Ae={[I]:"UseDualStack"},E={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:Pe,signingName:be,signingRegion:Te}]},headers:{}},P={},oe={conditions:[{[m]:y,[p]:[S,"aws-global"]}],[g]:E,[d]:g},Ce={[m]:R,[p]:[xe,!0]},Re={[m]:R,[p]:[Ae,!0]},ie={[m]:B,[p]:[{[I]:"PartitionResult"},"supportsFIPS"]},Ie={[I]:"PartitionResult"},ae={[m]:R,[p]:[!0,{[m]:B,[p]:[Ie,"supportsDualStack"]}]},ce=[{[m]:"isSet",[p]:[we]}],de=[Ce],le=[Re],bs={parameters:{Region:se,UseDualStack:L,UseFIPS:L,Endpoint:se,UseGlobalEndpoint:L},rules:[{conditions:[{[m]:R,[p]:[{[I]:"UseGlobalEndpoint"},z]},{[m]:"not",[p]:ce},re,ne,{[m]:R,[p]:[xe,ee]},{[m]:R,[p]:[Ae,ee]}],rules:[{conditions:[{[m]:y,[p]:[S,"ap-northeast-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"ap-south-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"ap-southeast-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"ap-southeast-2"]}],endpoint:E,[d]:g},oe,{conditions:[{[m]:y,[p]:[S,"ca-central-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"eu-central-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"eu-north-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"eu-west-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"eu-west-2"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"eu-west-3"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"sa-east-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,Te]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"us-east-2"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"us-west-1"]}],endpoint:E,[d]:g},{conditions:[{[m]:y,[p]:[S,"us-west-2"]}],endpoint:E,[d]:g},{endpoint:{url:te,properties:{authSchemes:[{name:Pe,signingName:be,signingRegion:"{Region}"}]},headers:P},[d]:g}],[d]:w},{conditions:ce,rules:[{conditions:de,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[d]:M},{conditions:le,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[d]:M},{endpoint:{url:we,properties:P,headers:P},[d]:g}],[d]:w},{conditions:[re],rules:[{conditions:[ne],rules:[{conditions:[Ce,Re],rules:[{conditions:[{[m]:R,[p]:[z,ie]},ae],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},[d]:g}],[d]:w},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[d]:M}],[d]:w},{conditions:de,rules:[{conditions:[{[m]:R,[p]:[ie,z]}],rules:[{conditions:[{[m]:y,[p]:[{[m]:B,[p]:[Ie,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:P,headers:P},[d]:g},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:P,headers:P},[d]:g}],[d]:w},{error:"FIPS is enabled but this partition does not support FIPS",[d]:M}],[d]:w},{conditions:le,rules:[{conditions:[ae],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},[d]:g}],[d]:w},{error:"DualStack is enabled but this partition does not support DualStack",[d]:M}],[d]:w},oe,{endpoint:{url:te,properties:P,headers:P},[d]:g}],[d]:w}],[d]:w},{error:"Invalid Configuration: Missing Region",[d]:M}]},Ts=bs,ws=new nt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),xs=(r,e={})=>ws.get(r,()=>ot(Ts,{endpointParams:r,logger:e.logger}));at.aws=it;const As=r=>({apiVersion:"2011-06-15",base64Decoder:r?.base64Decoder??j,base64Encoder:r?.base64Encoder??fe,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??xs,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??hs,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new lt},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ut}],logger:r?.logger??new dt,protocol:r?.protocol??new ls({defaultNamespace:"com.amazonaws.sts",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15"}),serviceId:r?.serviceId??"STS",urlParser:r?.urlParser??ct,utf8Decoder:r?.utf8Decoder??qt,utf8Encoder:r?.utf8Encoder??W}),Cs=r=>{const e=mt(r),t=()=>e().then(bt),s=As(r);return{...s,...r,runtime:"browser",defaultsMode:e,bodyLengthChecker:r?.bodyLengthChecker??St,credentialDefaultProvider:r?.credentialDefaultProvider??(n=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:r?.defaultUserAgentProvider??yt({serviceId:s.serviceId,clientVersion:Ps.version}),maxAttempts:r?.maxAttempts??gt,region:r?.region??ft("Region is missing"),requestHandler:Jt.create(r?.requestHandler??t),retryMode:r?.retryMode??(async()=>(await t()).retryMode||ht),sha256:r?.sha256??pt,streamCollector:r?.streamCollector??Gt,useDualstackEndpoint:r?.useDualstackEndpoint??(()=>Promise.resolve(Pt)),useFipsEndpoint:r?.useFipsEndpoint??(()=>Promise.resolve(Et))}},Rs=r=>{const e=r.httpAuthSchemes;let t=r.httpAuthSchemeProvider,s=r.credentials;return{setHttpAuthScheme(n){const o=e.findIndex(i=>i.schemeId===n.schemeId);o===-1?e.push(n):e.splice(o,1,n)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(n){t=n},httpAuthSchemeProvider(){return t},setCredentials(n){s=n},credentials(){return s}}},Is=r=>({httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}),Ds=(r,e)=>{const t=Object.assign(Tt(r),wt(r),xt(r),Rs(r));return e.forEach(s=>s.configure(t)),Object.assign(r,At(t),Ct(t),Rt(t),Is(t))};class De extends It{config;constructor(...[e]){const t=Cs(e||{});super(t),this.initConfig=t;const s=ys(t),n=Dt(s),o=_t(n),i=Nt(o),a=Wt(i),c=kt(a),l=gs(c),u=Ds(l,e?.extensions||[]);this.config=u,this.middlewareStack.use(vt(this.config)),this.middlewareStack.use($t(this.config)),this.middlewareStack.use(Mt(this.config)),this.middlewareStack.use(Ft(this.config)),this.middlewareStack.use(Ot(this.config)),this.middlewareStack.use(Ut(this.config)),this.middlewareStack.use(zt(this.config)),this.middlewareStack.use(Lt(this.config,{httpAuthSchemeParametersProvider:us,identityProviderConfigProvider:async f=>new Kt({"aws.auth#sigv4":f.credentials})})),this.middlewareStack.use(jt(this.config))}destroy(){super.destroy()}}let D=class _e extends Ht{constructor(e){super(e),Object.setPrototypeOf(this,_e.prototype)}},_s=class Ne extends D{name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,Ne.prototype)}},Ns=class ke extends D{name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e}),Object.setPrototypeOf(this,ke.prototype)}},ks=class ve extends D{name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e}),Object.setPrototypeOf(this,ve.prototype)}},vs=class $e extends D{name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e}),Object.setPrototypeOf(this,$e.prototype)}},$s=class Me extends D{name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e}),Object.setPrototypeOf(this,Me.prototype)}},Ms=class Fe extends D{name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,Fe.prototype)}},Fs=class Oe extends D{name="IDPCommunicationErrorException";$fault="client";constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e}),Object.setPrototypeOf(this,Oe.prototype)}};const Os="Arn",Us="AccessKeyId",zs="AssumeRole",Ls="AssumedRoleId",js="AssumeRoleRequest",Ws="AssumeRoleResponse",Q="AssumedRoleUser",Ks="AssumeRoleWithWebIdentity",Hs="AssumeRoleWithWebIdentityRequest",Vs="AssumeRoleWithWebIdentityResponse",Bs="Audience",q="Credentials",Qs="ContextAssertion",Ue="DurationSeconds",qs="Expiration",Gs="ExternalId",Js="ExpiredTokenException",Xs="IDPCommunicationErrorException",Zs="IDPRejectedClaimException",Ys="InvalidIdentityTokenException",er="Key",tr="MalformedPolicyDocumentException",ze="Policy",Le="PolicyArns",sr="ProviderArn",rr="ProvidedContexts",nr="ProvidedContextsListType",or="ProvidedContext",ir="PolicyDescriptorType",ar="ProviderId",je="PackedPolicySize",cr="PackedPolicyTooLargeException",dr="Provider",We="RoleArn",lr="RegionDisabledException",Ke="RoleSessionName",ur="SecretAccessKey",mr="SubjectFromWebIdentityToken",G="SourceIdentity",pr="SerialNumber",hr="SessionToken",fr="Tags",gr="TokenCode",yr="TransitiveTagKeys",Sr="Tag",Er="Value",Pr="WebIdentityToken",br="arn",Tr="accessKeySecretType",_="awsQueryError",N="client",wr="clientTokenType",k="error",v="httpError",$="message",xr="policyDescriptorListType",He="smithy.ts.sdk.synthetic.com.amazonaws.sts",Ar="tagListType",h="com.amazonaws.sts";var Cr=[0,h,Tr,8,0],Rr=[0,h,wr,8,0],Ve=[3,h,Q,0,[Ls,Os],[0,0]],Ir=[3,h,js,0,[We,Ke,Le,ze,Ue,fr,yr,Gs,pr,gr,G,rr],[0,0,()=>Qe,0,1,()=>Hr,64,0,0,0,0,()=>Kr]],Dr=[3,h,Ws,0,[q,Q,je,G],[[()=>Be,0],()=>Ve,1,0]],_r=[3,h,Hs,0,[We,Ke,Pr,ar,Le,ze,Ue],[0,0,[()=>Rr,0],0,()=>Qe,0,1]],Nr=[3,h,Vs,0,[q,mr,Q,je,dr,Bs,G],[[()=>Be,0],0,()=>Ve,1,0,0,0]],Be=[3,h,q,0,[Us,ur,hr,qs],[0,[()=>Cr,0],0,4]],kr=[-3,h,Js,{[k]:N,[v]:400,[_]:["ExpiredTokenException",400]},[$],[0]];A.for(h).registerError(kr,_s);var vr=[-3,h,Xs,{[k]:N,[v]:400,[_]:["IDPCommunicationError",400]},[$],[0]];A.for(h).registerError(vr,Fs);var $r=[-3,h,Zs,{[k]:N,[v]:403,[_]:["IDPRejectedClaim",403]},[$],[0]];A.for(h).registerError($r,$s);var Mr=[-3,h,Ys,{[k]:N,[v]:400,[_]:["InvalidIdentityToken",400]},[$],[0]];A.for(h).registerError(Mr,Ms);var Fr=[-3,h,tr,{[k]:N,[v]:400,[_]:["MalformedPolicyDocument",400]},[$],[0]];A.for(h).registerError(Fr,Ns);var Or=[-3,h,cr,{[k]:N,[v]:400,[_]:["PackedPolicyTooLarge",400]},[$],[0]];A.for(h).registerError(Or,ks);var Ur=[3,h,ir,0,[br],[0]],zr=[3,h,or,0,[sr,Qs],[0,0]],Lr=[-3,h,lr,{[k]:N,[v]:403,[_]:["RegionDisabledException",403]},[$],[0]];A.for(h).registerError(Lr,vs);var jr=[3,h,Sr,0,[er,Er],[0,0]],Wr=[-3,He,"STSServiceException",0,[],[]];A.for(He).registerError(Wr,D);var Qe=[1,h,xr,0,()=>Ur],Kr=[1,h,nr,0,()=>zr],Hr=[1,h,Ar,0,()=>jr],Vr=[9,h,zs,0,()=>Ir,()=>Dr],Gr=[9,h,Ks,0,()=>_r,()=>Nr];class Br extends Vt.classBuilder().ep(Ss).m(function(e,t,s,n){return[Bt(s,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(Vr).build(){}const Jr=Object.freeze(Object.defineProperty({__proto__:null,AssumeRoleCommand:Br,STSClient:De},Symbol.toStringTag,{value:"Module"}));export{Gr as A,_s as E,$s as I,Ns as M,ks as P,vs as R,De as S,D as a,Br as b,Ss as c,Ms as d,Fs as e,Jr as l};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o}from"./index-
|
|
1
|
+
import{r as o}from"./index-BZpMQdNP.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-ChvoNxcO.js";import"./preload-helper-BlTxHScW.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index.browser-BHPvGrwi-6Mh8eUw-.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./_commonjs-dynamic-modules-B7n8ZNar.js";export{o as default};
|