@bkm016/basalt 0.1.12 → 0.1.14
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/README.md +3 -2
- package/chunk-03wzwnn6.js +2 -0
- package/{chunk-7jezts2n.js → chunk-06s9pr82.js} +2 -2
- package/{chunk-eyrtbbdd.js → chunk-0crbhhna.js} +1 -1
- package/{chunk-kpe7pnhy.js → chunk-0rasqm8y.js} +4 -4
- package/chunk-1w4nh5t6.js +5 -0
- package/{chunk-02d3x4mj.js → chunk-2eaehpp6.js} +3 -3
- package/{chunk-jj4hqbrx.js → chunk-30dxcr91.js} +3 -3
- package/{chunk-nw1xpt3s.js → chunk-343jsm46.js} +2 -2
- package/{chunk-bk4rpnm8.js → chunk-37ndxehw.js} +2 -2
- package/chunk-38g4jd6v.js +5 -0
- package/{chunk-0fc9apfn.js → chunk-39mh7h58.js} +23 -23
- package/{chunk-6mges89p.js → chunk-44a7f5ta.js} +5 -5
- package/chunk-44b9yx79.js +2 -0
- package/{chunk-jn5pqy5v.js → chunk-46vy2m29.js} +1 -1
- package/{chunk-2kxnw7vs.js → chunk-4f6p4n7k.js} +2 -2
- package/chunk-4w8j6n7z.js +2 -0
- package/{chunk-qs8zzg50.js → chunk-4yxd2kg1.js} +2 -2
- package/{chunk-ksk49hv0.js → chunk-59hg9a84.js} +1 -1
- package/chunk-62ebm0bn.js +2 -0
- package/chunk-6ef085c1.js +20 -0
- package/chunk-6hx9y86d.js +3 -0
- package/chunk-73t051r6.js +2 -0
- package/{chunk-1h34mzh7.js → chunk-7mgkpn94.js} +7 -7
- package/{chunk-w0rr66z7.js → chunk-81x8r8w4.js} +1 -1
- package/chunk-86yr2c0r.js +3 -0
- package/{chunk-ypqjfv3a.js → chunk-8np9b2y8.js} +2 -2
- package/{chunk-hbnmymaq.js → chunk-9ew8cap5.js} +2 -2
- package/chunk-9v3b7jjv.js +2 -0
- package/{chunk-01nve4qy.js → chunk-9vam83py.js} +1 -1
- package/chunk-9xjecw6c.js +2 -0
- package/{chunk-6sz5q3df.js → chunk-b2wpj81x.js} +2 -2
- package/chunk-b516bp7n.js +3 -0
- package/chunk-bjvv3403.js +2 -0
- package/{chunk-hc300148.js → chunk-c8g9jjqs.js} +2 -2
- package/chunk-cs91rmbf.js +18 -0
- package/chunk-drett6hb.js +2 -0
- package/{chunk-fy82qxa1.js → chunk-edcf97ka.js} +1 -1
- package/chunk-en7z6ne5.js +3 -0
- package/{chunk-p2pmdbt2.js → chunk-evnqkyt7.js} +12 -12
- package/{chunk-8mezk0cb.js → chunk-g2etemv5.js} +2 -2
- package/{chunk-n0ybj4h9.js → chunk-g5p9mj1r.js} +2 -2
- package/{chunk-eq4wqxzt.js → chunk-ge38dhv9.js} +2 -2
- package/chunk-hggam3je.js +2 -0
- package/chunk-k38jaz6c.js +7 -0
- package/{chunk-qfcr5g35.js → chunk-kcn05erf.js} +3 -3
- package/{chunk-rwks9zaw.js → chunk-m5km74eq.js} +2 -2
- package/{chunk-jpnf71q7.js → chunk-mfb3dgs8.js} +2 -2
- package/{chunk-vjne04dp.js → chunk-mh4bjtfs.js} +4 -4
- package/chunk-nysatg77.js +4161 -0
- package/chunk-p886jr17.js +25 -0
- package/{chunk-82v8jh1h.js → chunk-pdt65s31.js} +2 -2
- package/chunk-pjgt1bdx.js +3 -0
- package/{chunk-tvm4zmgj.js → chunk-pyj6avd5.js} +2 -2
- package/chunk-qd2enpr2.js +3 -0
- package/{chunk-cbgpymt4.js → chunk-qe76naq9.js} +1 -1
- package/{chunk-ntks40jd.js → chunk-qjnx4fsn.js} +5 -5
- package/{chunk-fhxy6y34.js → chunk-qs161f2q.js} +2 -2
- package/{chunk-v7wcchy2.js → chunk-rghqprav.js} +1 -1
- package/chunk-t33bm5aa.js +2 -0
- package/{chunk-nrsd810j.js → chunk-tfhp09nj.js} +2 -2
- package/chunk-vd5332ps.js +2 -0
- package/{chunk-3pf1d62g.js → chunk-vqm94hz2.js} +2 -2
- package/{chunk-85v69h91.js → chunk-w55cnj0f.js} +2 -2
- package/{chunk-1zj3zvw5.js → chunk-wnd3y4c0.js} +4 -4
- package/{chunk-stj493dn.js → chunk-xafx1p7z.js} +2 -2
- package/{chunk-9as0p561.js → chunk-xf7zw32f.js} +14 -14
- package/chunk-xk3t5ves.js +482 -0
- package/{chunk-5wnmbc1b.js → chunk-xq74x4gc.js} +2 -2
- package/chunk-y0274xr2.js +7 -0
- package/{chunk-ejjem0tc.js → chunk-z9p6s986.js} +6 -6
- package/chunk-zcwz44db.js +2 -0
- package/{chunk-w6f2r052.js → chunk-zhyzhekt.js} +1 -1
- package/compiled.js +85 -12
- package/package.json +1 -1
- package/ui-test-worker.js +65 -65
- package/web/chunk-15g9pnzy.js +1 -0
- package/web/{chunk-4f6a8dsk.js → chunk-17wwzrp4.js} +1 -1
- package/web/chunk-19tkjg9w.js +1 -0
- package/web/chunk-1y387f45.js +1 -0
- package/web/{chunk-30aeb767.js → chunk-25sn840r.js} +2 -2
- package/web/chunk-26sp6jre.js +1 -0
- package/web/{chunk-81s15c2e.js → chunk-2c7kxr4v.js} +2 -2
- package/web/{chunk-wvrs986a.js → chunk-2gsf89vs.js} +3 -3
- package/web/{chunk-3qxxrwsp.js → chunk-2gvz70wr.js} +10 -10
- package/web/chunk-2s3my1jn.js +1 -0
- package/web/{chunk-ar6jnhm5.js → chunk-32dh0hft.js} +1 -1
- package/web/{chunk-3rkkp6ed.js → chunk-3haw3wcw.js} +5 -5
- package/web/{chunk-hn8m1vsg.js → chunk-3rxhs9qm.js} +7 -7
- package/web/chunk-410qdvmv.js +1 -0
- package/web/chunk-4qehf2xx.js +2 -0
- package/web/{chunk-qdd3bx8q.js → chunk-51b8n5e1.js} +1 -1
- package/web/chunk-54mgncq3.js +1 -0
- package/web/{chunk-r6kk4vp1.js → chunk-59g6rrew.js} +4 -4
- package/web/{chunk-7tkgbbf9.js → chunk-5d9veaef.js} +2 -2
- package/web/chunk-6481wt3t.js +1 -0
- package/web/chunk-6ehecat3.js +1 -0
- package/web/chunk-6m8hq6ph.js +1 -0
- package/web/chunk-73941p08.js +1 -0
- package/web/{chunk-aeymdtm1.js → chunk-783s8jds.js} +3 -3
- package/web/{chunk-g4zm0crw.js → chunk-78m018ya.js} +1 -1
- package/web/chunk-797bh7z6.js +39 -0
- package/web/{chunk-hva7xyne.js → chunk-7hpqrfgg.js} +2 -2
- package/web/{chunk-enwfd8d5.js → chunk-7kywe73f.js} +2 -2
- package/web/chunk-7qq1ypvj.js +1 -0
- package/web/{chunk-xbyrgyy0.js → chunk-7wzszsf5.js} +2 -2
- package/web/{chunk-aa46mrgh.js → chunk-7zfqppsx.js} +2 -2
- package/web/{chunk-d73zkc4q.js → chunk-8sr9w61v.js} +3 -3
- package/web/{chunk-v34mr9ky.js → chunk-8ttp8fh3.js} +6 -6
- package/web/chunk-8zg89764.js +1 -0
- package/web/{chunk-2cyzaqjy.js → chunk-988e9wx6.js} +3 -3
- package/web/{chunk-k4dnjf8n.js → chunk-9h0f3gar.js} +3 -3
- package/web/chunk-9vr6hpmk.js +34 -0
- package/web/chunk-9vrp249f.js +2 -0
- package/web/{chunk-td83xf12.js → chunk-a205cj09.js} +2 -2
- package/web/{chunk-gkmaryr4.js → chunk-ahn2frbt.js} +1 -1
- package/web/{chunk-5g8md2wg.js → chunk-aknsydan.js} +5 -5
- package/web/chunk-at0xtfhy.js +1 -0
- package/web/chunk-bahccwb9.js +1 -0
- package/web/{chunk-rdr6wt22.js → chunk-c7fqrs8j.js} +4 -4
- package/web/chunk-d3hyf9yd.js +1 -0
- package/web/chunk-dcegr80c.js +1 -0
- package/web/{chunk-act3rr85.js → chunk-dwtatme7.js} +1 -1
- package/web/{chunk-5np514v5.js → chunk-ex8rmqn1.js} +12 -12
- package/web/{chunk-g488hxx0.js → chunk-faskbfjf.js} +3 -3
- package/web/chunk-feanedhx.js +1 -0
- package/web/{chunk-e94pd9rr.js → chunk-ffywf5w5.js} +10 -10
- package/web/chunk-fx3d48e6.js +1 -0
- package/web/{chunk-ncfzmf2g.js → chunk-g3szt4c4.js} +1 -1
- package/web/chunk-g7bcntpm.js +1 -0
- package/web/chunk-gr1tjqbd.js +1 -0
- package/web/{chunk-bygwbpvq.js → chunk-hbwxtbq3.js} +2 -2
- package/web/{chunk-gten0rpx.js → chunk-hdtvrh0f.js} +2 -2
- package/web/chunk-j031r08w.js +1 -0
- package/web/{chunk-d57fm7k0.js → chunk-j6wcszxq.js} +2 -2
- package/web/{chunk-885kpj14.js → chunk-jdx7qp2w.js} +2 -2
- package/web/chunk-jge7nn3s.js +1 -0
- package/web/chunk-jy8zat04.js +1 -0
- package/web/{chunk-7vgh17es.js → chunk-jzge034r.js} +1 -1
- package/web/{chunk-fj753yzt.js → chunk-k4qrqmdk.js} +2 -2
- package/web/chunk-k8s7kye3.js +1 -0
- package/web/{chunk-2jfesv7m.js → chunk-k9fyqrhp.js} +2 -2
- package/web/chunk-k9zn1n6d.js +1 -0
- package/web/chunk-kg3tksv7.js +1 -0
- package/web/chunk-kk5rw81s.js +2 -0
- package/web/{chunk-xpecre7w.js → chunk-kpmd893m.js} +4 -4
- package/web/chunk-md9j949p.js +1 -0
- package/web/{chunk-jeafmjsm.js → chunk-mn2wv9ye.js} +6 -6
- package/web/{chunk-dndd757x.js → chunk-mv7jgmnb.js} +3 -3
- package/web/{chunk-c3fty2c2.js → chunk-mvm68qtt.js} +7 -7
- package/web/chunk-nbcpbqq4.js +1 -0
- package/web/{chunk-b99k8q22.js → chunk-nfpff7yf.js} +8 -8
- package/web/chunk-nk7jkpam.js +1 -0
- package/web/chunk-nmvt1rn3.js +1 -0
- package/web/chunk-npw1s1h2.js +1 -0
- package/web/chunk-npyrdsf8.css +1 -0
- package/web/chunk-nzzxv84v.js +8 -0
- package/web/{chunk-n9v14vyd.js → chunk-p4pqtybm.js} +22 -22
- package/web/{chunk-jyf7a7yp.js → chunk-p79c7aak.js} +1 -1
- package/web/{chunk-6jb2zyp6.js → chunk-pafw34vg.js} +2 -2
- package/web/{chunk-y2rzeb4v.js → chunk-pf65cank.js} +2 -2
- package/web/{chunk-d1btrqmw.js → chunk-ppa21760.js} +1 -1
- package/web/{chunk-60mym60n.js → chunk-ptpkv0te.js} +1 -1
- package/web/{chunk-yjs6jmdb.js → chunk-qcdej581.js} +3 -3
- package/web/{chunk-q1zxvjhs.js → chunk-qftcdcps.js} +2 -2
- package/web/{chunk-4wwd3pfz.js → chunk-qv1w36ja.js} +2 -2
- package/web/chunk-r8p741qj.js +2 -0
- package/web/chunk-rcexbkjj.js +1 -0
- package/web/{chunk-kerfb21g.js → chunk-rjakb64x.js} +1 -1
- package/web/{chunk-k0cg4n2k.js → chunk-s0xy00v5.js} +2 -2
- package/web/{chunk-ym7kv2hs.js → chunk-s2ps0ct5.js} +1 -1
- package/web/{chunk-h24ybwp6.js → chunk-s45g7fp6.js} +1 -1
- package/web/{chunk-pjpre6de.js → chunk-s70aj1v5.js} +6 -6
- package/web/chunk-say8bvkc.js +1 -0
- package/web/{chunk-qh62nkem.js → chunk-sd3cdqcm.js} +2 -2
- package/web/{chunk-6f2sz84q.js → chunk-sgkevxdf.js} +2 -2
- package/web/chunk-sjffrcq9.js +1 -0
- package/web/{chunk-19zd0tye.js → chunk-snaepr87.js} +8 -8
- package/web/{chunk-3n9ypydh.js → chunk-tdzh6nsz.js} +2 -2
- package/web/{chunk-wqzbxzk3.js → chunk-tjd8qp87.js} +1 -1
- package/web/chunk-tncc9e57.js +1 -0
- package/web/chunk-ty2rmwda.js +1142 -0
- package/web/chunk-v22hp18w.js +1 -0
- package/web/chunk-ve9dz857.js +2 -0
- package/web/{chunk-80z8s8zb.js → chunk-vg346gxc.js} +2 -2
- package/web/{chunk-hqxc9m07.js → chunk-vpegzgzb.js} +10 -10
- package/web/{chunk-pzg25qqe.js → chunk-vvvd3grf.js} +2 -2
- package/web/{chunk-qp3tjhaq.js → chunk-vwv6pqy7.js} +1 -1
- package/web/{chunk-3psgr0q8.js → chunk-vxm7n7w6.js} +20 -20
- package/web/{chunk-h754ntg7.js → chunk-w5q7978e.js} +1 -1
- package/web/{chunk-xvfeq8v2.js → chunk-we4mhfmq.js} +12 -12
- package/web/{chunk-8539865x.js → chunk-wfgrdabk.js} +1 -1
- package/web/{chunk-sdr5wa4z.js → chunk-wkhj4hsw.js} +4 -4
- package/web/{chunk-7ksg3ccg.js → chunk-wspk8qbg.js} +2 -2
- package/web/{chunk-hxbfkdjd.js → chunk-xf1hnpme.js} +1 -1
- package/web/{chunk-v1hfbjz9.js → chunk-xhqvzmfj.js} +5 -5
- package/web/chunk-xq70hgre.js +1 -0
- package/web/chunk-xtss82z2.js +1 -0
- package/web/{chunk-yf8ykk4v.js → chunk-y3tb6410.js} +3 -3
- package/web/{chunk-7v85yvb2.js → chunk-y6mcxfm0.js} +1 -1
- package/web/{chunk-7adsmqv6.js → chunk-ya696bfe.js} +2 -2
- package/web/{chunk-w9gnqkez.js → chunk-ysw5fs45.js} +3 -3
- package/web/chunk-zkq1xknc.js +1 -0
- package/web/chunk-zkv025s5.js +1 -0
- package/web/{chunk-8cnjd0f2.js → chunk-zpzvz973.js} +28 -28
- package/web/{chunk-b5zf1hs3.js → chunk-zsat72qd.js} +120 -120
- package/web/chunk-zx3h7v72.js +1 -0
- package/web/index.html +1 -1
- package/worker.js +1 -1
- package/chunk-1xfv4bd7.js +0 -2
- package/chunk-2fyjph3f.js +0 -2
- package/chunk-37zystxb.js +0 -25
- package/chunk-3k627vf2.js +0 -3
- package/chunk-4gtgqcct.js +0 -5
- package/chunk-7er5pz7s.js +0 -479
- package/chunk-7g5smgjj.js +0 -2
- package/chunk-7m3jagqn.js +0 -2
- package/chunk-9c4gdg1q.js +0 -3
- package/chunk-b2bxqeb4.js +0 -2
- package/chunk-bpw6q7g0.js +0 -3
- package/chunk-bwawt15q.js +0 -3
- package/chunk-cdw03j4t.js +0 -20
- package/chunk-ch1r3ted.js +0 -2
- package/chunk-cmwdjes8.js +0 -18
- package/chunk-db7ws33a.js +0 -7
- package/chunk-e1x629v0.js +0 -5
- package/chunk-j64dc767.js +0 -3
- package/chunk-m4bg1apa.js +0 -7
- package/chunk-nhm9z3d8.js +0 -2
- package/chunk-pnspvnyd.js +0 -2
- package/chunk-qnkrrwmg.js +0 -2
- package/chunk-r4gm8ngh.js +0 -2
- package/chunk-rks90mh1.js +0 -2
- package/chunk-t7te60m7.js +0 -2
- package/chunk-tv52xajf.js +0 -2
- package/chunk-wqqjzsjt.js +0 -3983
- package/chunk-xef4642x.js +0 -3
- package/web/chunk-04drx71p.js +0 -1
- package/web/chunk-0mdf1qja.js +0 -1
- package/web/chunk-0rdgt4jb.css +0 -1
- package/web/chunk-1m0kp0g3.js +0 -8
- package/web/chunk-3j2tcphs.js +0 -1
- package/web/chunk-3k9h7a73.js +0 -1142
- package/web/chunk-3m1bb2fw.js +0 -1
- package/web/chunk-55nvm2mj.js +0 -1
- package/web/chunk-5dkqfnh7.js +0 -2
- package/web/chunk-7ky5nrrr.js +0 -1
- package/web/chunk-8sdjgv3k.js +0 -1
- package/web/chunk-9bxtzwtc.js +0 -1
- package/web/chunk-9jy8nc4r.js +0 -1
- package/web/chunk-aebrw6cv.js +0 -39
- package/web/chunk-bcjgzwef.js +0 -1
- package/web/chunk-bra33pt0.js +0 -2
- package/web/chunk-cxpnj495.js +0 -2
- package/web/chunk-d94t9z70.js +0 -1
- package/web/chunk-de29pe57.js +0 -1
- package/web/chunk-e68jw0bg.js +0 -1
- package/web/chunk-fr4fft89.js +0 -1
- package/web/chunk-gckmcef6.js +0 -1
- package/web/chunk-gnb09wmx.js +0 -1
- package/web/chunk-gx340asc.js +0 -1
- package/web/chunk-hrgqc1vr.js +0 -1
- package/web/chunk-j9c8fa82.js +0 -1
- package/web/chunk-jz5mmp64.js +0 -1
- package/web/chunk-kxeaj44h.js +0 -1
- package/web/chunk-m0136xav.js +0 -1
- package/web/chunk-m1rdyvb5.js +0 -1
- package/web/chunk-m6vyvgm5.js +0 -1
- package/web/chunk-mxkbmgcv.js +0 -2
- package/web/chunk-my0ec787.js +0 -1
- package/web/chunk-mzzaet63.js +0 -1
- package/web/chunk-nkpdd9hw.js +0 -1
- package/web/chunk-ny436sqg.js +0 -1
- package/web/chunk-pbp1p5ex.js +0 -1
- package/web/chunk-ph75hddv.js +0 -1
- package/web/chunk-phdfyqaa.js +0 -1
- package/web/chunk-phxa5krt.js +0 -1
- package/web/chunk-r4zbw4zj.js +0 -2
- package/web/chunk-ry4ycah9.js +0 -1
- package/web/chunk-sqm16fat.js +0 -1
- package/web/chunk-tj1fn8v2.js +0 -1
- package/web/chunk-v0wtk059.js +0 -34
- package/web/chunk-v1qt3gq4.js +0 -1
- package/web/chunk-v854w9yn.js +0 -1
- package/web/chunk-ve56gxq0.js +0 -1
- package/web/chunk-w573ym17.js +0 -1
- package/web/chunk-x0mjydtp.js +0 -1
- package/web/chunk-zhybh04p.js +0 -1
package/chunk-nhm9z3d8.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{zo,Fe,ot}from"./chunk-cdw03j4t.js";import{We}from"./chunk-e1x629v0.js";import{qe,Ae,O}from"./chunk-vjne04dp.js";import{we,X,b,xe,J,Qe,H}from"./chunk-cmwdjes8.js";import{r}from"./chunk-bwawt15q.js";var Se=r(function(Dt){var{SignatureV4:kt,signatureV4aContainer:de}=zo(),N={CrtSignerV4:null},ge="X-Amz-S3session-Token".toLowerCase();class Z extends kt{async signWithCredentials(e,t,s){let o=pe(t);e.headers[ge]=t.sessionToken;let n=this;return he(n,o),n.signRequest(e,s??{})}async presignWithCredentials(e,t,s){let o=pe(t);return delete e.headers[ge],e.headers["X-Amz-S3session-Token"]=t.sessionToken,e.query=e.query??{},e.query["X-Amz-S3session-Token"]=t.sessionToken,he(this,o),this.presign(e,s)}}function pe(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function he(e,t){let s=e.credentialProvider;e.credentialProvider=()=>(e.credentialProvider=s,Promise.resolve(t))}class me{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof N.CrtSignerV4==="function")return"crt";else if(typeof de.SignatureV4a==="function")return"js";return"none"}constructor(e){this.sigv4Signer=new Z(e),this.signerOptions=e}async sign(e,t={}){if(t.signingRegion==="*")return this.getSigv4aSigner().sign(e,t);return this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,s={}){if(s.signingRegion==="*"){let o=this.getSigv4aSigner(),n=N.CrtSignerV4;if(n&&o instanceof n)return o.signWithCredentials(e,t,s);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,s)}async presign(e,t={}){if(t.signingRegion==="*"){let s=this.getSigv4aSigner(),o=N.CrtSignerV4;if(o&&s instanceof o)return s.presign(e,t);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,s={}){if(s.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,t,s)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=N.CrtSignerV4,t=de.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!t)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e==="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==="function")this.sigv4aSigner=new t({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!t||typeof t!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}}Dt.SignatureV4MultiRegion=me;Dt.SignatureV4SignWithCredentials=Z;Dt.signatureV4CrtContainer=N});var{awsEndpointFunctions:Nt,emitWarningIfUnsupportedVersion:Wt,createDefaultUserAgentProvider:Ht,NODE_APP_ID_CONFIG_OPTIONS:Ut,getAwsRegionExtensionConfiguration:qt,resolveAwsRegionExtensionConfiguration:Ft,resolveUserAgentConfig:Vt,resolveHostHeaderConfig:Lt,getUserAgentPlugin:Kt,getHostHeaderPlugin:Mt,getLoggerPlugin:jt,getRecursionDetectionPlugin:zt,setCredentialFeature:se,stsRegionDefaultResolver:Gt}=O(),{NoAuthSigner:_e,getHttpAuthSchemeEndpointRuleSetPlugin:Yt,DefaultIdentityProviderConfig:Qt,getHttpSigningPlugin:Bt}=Ae(),{normalizeProvider:Te,getSmithyContext:ke,ServiceException:Jt,NoOpLogger:Xt,emitWarningIfUnsupportedVersion:Zt,loadConfigsForDefaultMode:es,getDefaultExtensionConfiguration:ts,resolveDefaultRuntimeConfig:ss,Client:De,makeBuilder:ns,createAggregatedClient:os}=X(),{Command:rs}=X();var io=rs,ao=De;var{resolveDefaultsModeConfig:is,loadConfig:y,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:as,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:cs,NODE_REGION_CONFIG_OPTIONS:us,NODE_REGION_CONFIG_FILE_OPTIONS:ls,resolveRegionConfig:ds}=b(),{BinaryDecisionDiagram:gs,EndpointCache:ps,decideEndpoint:hs,customEndpointFunctions:ms,resolveParams:Ss,resolveEndpointConfig:vs,getEndpointPlugin:fs}=xe(),{parseUrl:Ps,getHttpHandlerExtensionConfiguration:ys,resolveHttpHandlerRuntimeConfig:Es,getContentLengthPlugin:As}=H(),{DEFAULT_RETRY_MODE:Is,NODE_RETRY_MODE_CONFIG_OPTIONS:ws,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:Rs,resolveRetryConfig:Cs,getRetryPlugin:_s}=qe(),{TypeRegistry:be,getSchemaSerdePlugin:xs}=we(),{resolveAwsSdkSigV4Config:Ts,resolveAwsSdkSigV4AConfig:ks,AwsSdkSigV4Signer:Oe,AwsSdkSigV4ASigner:$e,NODE_SIGV4A_CONFIG_OPTIONS:Ds,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:bs}=Fe(),{SignatureV4MultiRegion:Ne}=Se(),{toUtf8:Os,fromUtf8:$s,toBase64:Ns,fromBase64:Ws,calculateBodyLength:Hs}=J(),{streamCollector:Us,NodeHttpHandler:qs}=We(),{AwsQueryProtocol:Fs}=ot(),{Sha256:Vs}=Qe(),D="ref",I=-1,W=!0,ve="isSet",He="PartitionResult",U="booleanEquals",l="stringEquals",ee="getAttr",fe="us-east-1",Pe="sigv4",ye="sts",Ee="https://sts.{Region}.{PartitionResult#dnsSuffix}",Ie={[D]:"Endpoint"},d={[D]:"Region"},te={[D]:He},k={},Re=[d],Ce={conditions:[[ve,[Ie]],[ve,Re],["aws.partition",Re,He],[U,[{[D]:"UseFIPS"},W]],[U,[{[D]:"UseDualStack"},W]],[l,[d,"aws-global"]],[U,[{[D]:"UseGlobalEndpoint"},W]],[l,[d,"eu-central-1"]],[U,[{fn:ee,argv:[te,"supportsDualStack"]},W]],[U,[{fn:ee,argv:[te,"supportsFIPS"]},W]],[l,[d,"ap-south-1"]],[l,[d,"eu-north-1"]],[l,[d,"eu-west-1"]],[l,[d,"eu-west-2"]],[l,[d,"eu-west-3"]],[l,[d,"sa-east-1"]],[l,[d,fe]],[l,[d,"us-east-2"]],[l,[d,"us-west-2"]],[l,[d,"us-west-1"]],[l,[d,"ca-central-1"]],[l,[d,"ap-southeast-1"]],[l,[d,"ap-northeast-1"]],[l,[d,"ap-southeast-2"]],[l,[{fn:ee,argv:[te,"name"]},"aws-us-gov"]]],results:[[I],["https://sts.amazonaws.com",{authSchemes:[{name:Pe,signingName:ye,signingRegion:fe}]}],[Ee,{authSchemes:[{name:Pe,signingName:ye,signingRegion:"{Region}"}]}],[I,"Invalid Configuration: FIPS and custom endpoint are not supported"],[I,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Ie,k],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",k],[I,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",k],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",k],[I,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",k],[I,"DualStack is enabled but this partition does not support DualStack"],[Ee,k],[I,"Invalid Configuration: Missing Region"]]},Ls=2,i=1e8,Ks=new Int32Array([-1,1,-1,0,30,3,1,4,i+14,2,5,i+14,3,25,6,4,24,7,5,i+1,8,6,9,i+13,7,i+1,10,10,i+1,11,11,i+1,12,12,i+1,13,13,i+1,14,14,i+1,15,15,i+1,16,16,i+1,17,17,i+1,18,18,i+1,19,19,i+1,20,20,i+1,21,21,i+1,22,22,i+1,23,23,i+1,i+2,8,i+11,i+12,4,28,26,9,27,i+10,24,i+8,i+9,8,29,i+7,9,i+6,i+7,3,i+3,31,4,i+4,i+5]),Ms=gs.from(Ks,Ls,Ce.conditions,Ce.results),js=new ps({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),Ue=(e,t={})=>js.get(e,()=>hs(Ms,{endpointParams:e,logger:t.logger}));ms.aws=Nt;var zs=(e)=>async(t,s,o)=>{if(!o)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let n=await e(t,s,o),u=ke(s)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!u)throw Error(`getEndpointParameterInstructions() is not defined on '${s.commandName}'`);let a=await Ss(o,{getEndpointParameterInstructions:u},t);return Object.assign(n,a)},Gs=async(e,t,s)=>({operation:ke(t).operation,region:await Te(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),Ys=zs(Gs);function Ve(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,s)=>({signingProperties:{config:t,context:s}})}}function ne(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,s)=>({signingProperties:{config:t,context:s}})}}function Le(e){return{schemeId:"smithy.api#noAuth"}}var Qs=(e,t,s)=>(n)=>{let a=e(n).properties?.authSchemes;if(!a)return t(n);let g=[];for(let S of a){let{name:p,properties:v={},...A}=S,f=p.toLowerCase();if(p!==f)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${p}' to '${f}'`);let m;if(f==="sigv4a"){m="aws.auth#sigv4a";let Q=a.find((B)=>{let le=B.name.toLowerCase();return le!=="sigv4a"&&le.startsWith("sigv4")});if(Ne.sigv4aDependency()==="none"&&Q)continue}else if(f.startsWith("sigv4"))m="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${f}'`);let T=s[m];if(!T)throw Error(`Could not find HttpAuthOption create function for '${m}'`);let P=T(n);P.schemeId=m,P.signingProperties={...P.signingProperties||{},...A,...v},g.push(P)}return g},Bs=(e)=>{let t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(Le()),t.push(ne(e));break}default:t.push(Ve(e)),t.push(ne(e))}return t},Js=Qs(Ue,Bs,{"aws.auth#sigv4":Ve,"aws.auth#sigv4a":ne,"smithy.api#noAuth":Le}),Xs=(e)=>{let t=Ts(e),s=ks(t);return Object.assign(s,{authSchemePreference:Te(e.authSchemePreference??[])})},Zs=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"}),en={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"}},tn="3.997.47",sn={version:tn};class h extends Jt{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sts#STSServiceException";constructor(e){super(e);Object.setPrototypeOf(this,h.prototype)}}class F extends h{static shapeId="com.amazonaws.sts#ExpiredTokenException";name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,F.prototype)}}class V extends h{static shapeId="com.amazonaws.sts#MalformedPolicyDocumentException";name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});Object.setPrototypeOf(this,V.prototype)}}class L extends h{static shapeId="com.amazonaws.sts#PackedPolicyTooLargeException";name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});Object.setPrototypeOf(this,L.prototype)}}class K extends h{static shapeId="com.amazonaws.sts#RegionDisabledException";name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});Object.setPrototypeOf(this,K.prototype)}}class M extends h{static shapeId="com.amazonaws.sts#IDPRejectedClaimException";name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});Object.setPrototypeOf(this,M.prototype)}}class j extends h{static shapeId="com.amazonaws.sts#InvalidIdentityTokenException";name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});Object.setPrototypeOf(this,j.prototype)}}class z extends h{static shapeId="com.amazonaws.sts#IDPCommunicationErrorException";name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});Object.setPrototypeOf(this,z.prototype)}}var nn="Arn",on="AccessKeyId",rn="AssumeRole",an="AssumedRoleId",cn="AssumeRoleRequest",un="AssumeRoleResponse",oe="AssumedRoleUser",ln="AssumeRoleWithWebIdentity",dn="AssumeRoleWithWebIdentityRequest",gn="AssumeRoleWithWebIdentityResponse",pn="Audience",re="Credentials",hn="ContextAssertion",Ke="DurationSeconds",mn="Expiration",Sn="ExternalId",vn="ExpiredTokenException",fn="IDPCommunicationErrorException",Pn="IDPRejectedClaimException",yn="InvalidIdentityTokenException",En="Key",An="MalformedPolicyDocumentException",Me="MinimumSessionTokenSize",je="Policy",ze="PolicyArns",In="ProviderArn",wn="ProvidedContexts",Rn="ProvidedContextsListType",Cn="ProvidedContext",_n="PolicyDescriptorType",xn="ProviderId",Ge="PackedPolicySize",Tn="PackedPolicyTooLargeException",kn="Provider",Ye="RoleArn",Dn="RegionDisabledException",Be="RoleSessionName",bn="SecretAccessKey",On="SubjectFromWebIdentityToken",ie="SourceIdentity",$n="SerialNumber",Nn="SessionToken",Je="SessionTokenSize",Xe="SessionTokenUtilization",Wn="Tags",Hn="TokenCode",Un="TransitiveTagKeys",qn="Tag",Fn="Value",Vn="WebIdentityToken",Ln="arn",Kn="accessKeySecretType",w="awsQueryError",R="client",Mn="clientTokenType",C="error",_="httpError",x="message",jn="policyDescriptorListType",Ze="smithy.ts.sdk.synthetic.com.amazonaws.sts",zn="tagListType",c="com.amazonaws.sts",et=new be(Ze),tt=[-3,Ze,"STSServiceException",0,[],[]];et.registerError(tt,h);var E=new be(c),st=[-3,c,vn,{[w]:["ExpiredTokenException",400],[C]:R,[_]:400},[x],[0]];E.registerError(st,F);var nt=[-3,c,fn,{[w]:["IDPCommunicationError",400],[C]:R,[_]:400},[x],[0]];E.registerError(nt,z);var rt=[-3,c,Pn,{[w]:["IDPRejectedClaim",403],[C]:R,[_]:403},[x],[0]];E.registerError(rt,M);var it=[-3,c,yn,{[w]:["InvalidIdentityToken",400],[C]:R,[_]:400},[x],[0]];E.registerError(it,j);var at=[-3,c,An,{[w]:["MalformedPolicyDocument",400],[C]:R,[_]:400},[x],[0]];E.registerError(at,V);var ct=[-3,c,Tn,{[w]:["PackedPolicyTooLarge",400],[C]:R,[_]:400},[x],[0]];E.registerError(ct,L);var ut=[-3,c,Dn,{[w]:["RegionDisabledException",403],[C]:R,[_]:403},[x],[0]];E.registerError(ut,K);var lt=[et,E],Gn=[0,c,Kn,8,0],Yn=[0,c,Mn,8,0],ae=[3,c,oe,0,[an,nn],[0,0],2],dt=[3,c,cn,0,[Ye,Be,ze,je,Ke,Wn,Un,Sn,$n,Hn,ie,wn,Me],[0,0,()=>ft,0,1,()=>Bn,64,0,0,0,0,()=>Qn,1],2],gt=[3,c,un,0,[re,oe,Ge,ie,Xe,Je],[[()=>ce,0],()=>ae,1,0,1,1]],pt=[3,c,dn,0,[Ye,Be,Vn,xn,ze,je,Ke,Me],[0,0,[()=>Yn,0],0,()=>ft,0,1,1],3],ht=[3,c,gn,0,[re,On,oe,Ge,kn,pn,ie,Xe,Je],[[()=>ce,0],0,()=>ae,1,0,0,0,1,1]],ce=[3,c,re,0,[on,bn,Nn,mn],[0,[()=>Gn,0],0,4],4],mt=[3,c,_n,0,[Ln],[0]],St=[3,c,Cn,0,[In,hn],[0,0]],vt=[3,c,qn,0,[En,Fn],[0,0],2],ft=[1,c,jn,0,()=>mt],Qn=[1,c,Rn,0,()=>St],Bn=[1,c,zn,0,()=>vt],Pt=[9,c,rn,0,()=>dt,()=>gt],yt=[9,c,ln,0,()=>pt,()=>ht],Jn=(e)=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??Ws,base64Encoder:e?.base64Encoder??Ns,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Ue,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Js,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new Oe},{schemeId:"aws.auth#sigv4a",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new $e},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new _e}],logger:e?.logger??new Xt,protocol:e?.protocol??Fs,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:lt,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",sha256:e?.sha256??Vs,signerConstructor:e?.signerConstructor??Ne,urlParser:e?.urlParser??Ps,utf8Decoder:e?.utf8Decoder??$s,utf8Encoder:e?.utf8Encoder??Os}),Xn=(e)=>{Zt(process.version);let t=is(e),s=()=>t().then(es),o=Jn(e);Wt(process.version);let n={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??y(bs,n),bodyLengthChecker:e?.bodyLengthChecker??Hs,defaultUserAgentProvider:e?.defaultUserAgentProvider??Ht({serviceId:o.serviceId,clientVersion:sn.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(u)=>u.getIdentityProvider("aws.auth#sigv4")||(async(a)=>await e.credentialDefaultProvider(a?.__config||{})()),signer:new Oe},{schemeId:"aws.auth#sigv4a",identityProvider:(u)=>u.getIdentityProvider("aws.auth#sigv4a"),signer:new $e},{schemeId:"smithy.api#noAuth",identityProvider:(u)=>u.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new _e}],maxAttempts:e?.maxAttempts??y(Rs,e),region:e?.region??y(us,{...ls,...n}),requestHandler:qs.create(e?.requestHandler??s),retryMode:e?.retryMode??y({...ws,default:async()=>(await s()).retryMode||Is},e),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??y(Ds,n),streamCollector:e?.streamCollector??Us,useDualstackEndpoint:e?.useDualstackEndpoint??y(cs,n),useFipsEndpoint:e?.useFipsEndpoint??y(as,n),userAgentAppId:e?.userAgentAppId??y(Ut,n)}},Zn=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:s,credentials:o}=e;return{setHttpAuthScheme(n){let u=t.findIndex((a)=>a.schemeId===n.schemeId);if(u===-1)t.push(n);else t.splice(u,1,n)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(n){s=n},httpAuthSchemeProvider(){return s},setCredentials(n){o=n},credentials(){return o}}},eo=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),to=(e,t)=>{let s=Object.assign(qt(e),ts(e),ys(e),Zn(e));return t.forEach((o)=>o.configure(s)),Object.assign(e,Ft(s),ss(s),Es(s),eo(s))};class q extends De{config;constructor(...[e]){let t=Xn(e||{});super(t);this.initConfig=t;let s=Zs(t),o=Vt(s),n=Cs(o),u=ds(n),a=Lt(u),g=vs(a),S=Xs(g),p=to(S,e?.extensions||[]);this.config=p,this.middlewareStack.use(xs(this.config)),this.middlewareStack.use(Kt(this.config)),this.middlewareStack.use(_s(this.config)),this.middlewareStack.use(As(this.config)),this.middlewareStack.use(Mt(this.config)),this.middlewareStack.use(jt(this.config)),this.middlewareStack.use(zt(this.config)),this.middlewareStack.use(Yt(this.config,{httpAuthSchemeParametersProvider:Ys,identityProviderConfigProvider:async(v)=>new Qt({"aws.auth#sigv4":v.credentials,"aws.auth#sigv4a":v.credentials})})),this.middlewareStack.use(Bt(this.config))}destroy(){super.destroy()}}var Et=ns(en,"AWSSecurityTokenServiceV20110615","STSClient",fs),At={},It=(e,t,s,o)=>[];class G extends Et(At,It,"AssumeRole",Pt){}class Y extends Et(At,It,"AssumeRoleWithWebIdentity",yt){}var so={AssumeRoleCommand:G,AssumeRoleWithWebIdentityCommand:Y};class ue extends q{}os(so,ue);var wt=(e)=>{if(typeof e?.Arn==="string"){let t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}return},Rt=async(e,t,s,o={})=>{let n=typeof e==="function"?await e():e,u=typeof t==="function"?await t():t,a="",g=n??u??(a=await Gt(o)());return s?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${n} (credential provider clientConfig)`,`${u} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),g},no=(e,t)=>{let s,o;return async(n,u)=>{if(o=n,!s){let{logger:v=e?.parentClientConfig?.logger,profile:A=e?.parentClientConfig?.profile,region:f,requestHandler:m=e?.parentClientConfig?.requestHandler,credentialProviderLogger:T,userAgentAppId:P=e?.parentClientConfig?.userAgentAppId}=e,Q=await Rt(f,e?.parentClientConfig?.region,T,{logger:v,profile:A}),B=!Ct(m);s=new t({...e,userAgentAppId:P,profile:A,credentialDefaultProvider:()=>async()=>o,region:Q,requestHandler:B?m:void 0,logger:v})}let{Credentials:a,AssumedRoleUser:g}=await s.send(new G(u));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${u.RoleArn}`);let S=wt(g),p={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...S&&{accountId:S}};return se(p,"CREDENTIALS_STS_ASSUME_ROLE","i"),p}},oo=(e,t)=>{let s;return async(o)=>{if(!s){let{logger:S=e?.parentClientConfig?.logger,profile:p=e?.parentClientConfig?.profile,region:v,requestHandler:A=e?.parentClientConfig?.requestHandler,credentialProviderLogger:f,userAgentAppId:m=e?.parentClientConfig?.userAgentAppId}=e,T=await Rt(v,e?.parentClientConfig?.region,f,{logger:S,profile:p}),P=!Ct(A);s=new t({...e,userAgentAppId:m,profile:p,region:T,requestHandler:P?A:void 0,logger:S})}let{Credentials:n,AssumedRoleUser:u}=await s.send(new Y(o));if(!n||!n.AccessKeyId||!n.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${o.RoleArn}`);let a=wt(u),g={accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,sessionToken:n.SessionToken,expiration:n.Expiration,...n.CredentialScope&&{credentialScope:n.CredentialScope},...a&&{accountId:a}};if(a)se(g,"RESOLVED_ACCOUNT_ID","T");return se(g,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),g}},Ct=(e)=>e?.metadata?.handlerProtocol==="h2",_t=(e,t)=>{if(!t)return e;else return class extends e{constructor(o){super(o);for(let n of t)this.middlewareStack.use(n)}}},xt=(e={},t)=>no(e,_t(q,t)),Tt=(e={},t)=>oo(e,_t(q,t)),ro=(e)=>(t)=>e({roleAssumer:xt(t),roleAssumerWithWebIdentity:Tt(t),...t});var co=Pt,uo=G,lo=dt,go=gt,po=yt,ho=Y,mo=pt,So=ht,vo=ae,fo=ce,Po=F,yo=st,Eo=z,Ao=nt,Io=M,wo=rt,Ro=j,Co=it,_o=V,xo=at,To=L,ko=ct,Do=mt,bo=St,Oo=K,$o=ut,No=ue,Wo=q,Ho=h,Uo=tt,qo=vt,Fo=ro,Vo=lt,Lo=xt,Ko=Tt;export{io as $Command,ao as __Client,co as AssumeRole$,uo as AssumeRoleCommand,lo as AssumeRoleRequest$,go as AssumeRoleResponse$,po as AssumeRoleWithWebIdentity$,ho as AssumeRoleWithWebIdentityCommand,mo as AssumeRoleWithWebIdentityRequest$,So as AssumeRoleWithWebIdentityResponse$,vo as AssumedRoleUser$,fo as Credentials$,Po as ExpiredTokenException,yo as ExpiredTokenException$,Eo as IDPCommunicationErrorException,Ao as IDPCommunicationErrorException$,Io as IDPRejectedClaimException,wo as IDPRejectedClaimException$,Ro as InvalidIdentityTokenException,Co as InvalidIdentityTokenException$,_o as MalformedPolicyDocumentException,xo as MalformedPolicyDocumentException$,To as PackedPolicyTooLargeException,ko as PackedPolicyTooLargeException$,Do as PolicyDescriptorType$,bo as ProvidedContext$,Oo as RegionDisabledException,$o as RegionDisabledException$,No as STS,Wo as STSClient,Ho as STSServiceException,Uo as STSServiceException$,qo as Tag$,Fo as decorateDefaultCredentialProvider,Vo as errorTypeRegistries,Lo as getDefaultRoleAssumer,Ko as getDefaultRoleAssumerWithWebIdentity};
|
package/chunk-pnspvnyd.js
DELETED
package/chunk-qnkrrwmg.js
DELETED
package/chunk-r4gm8ngh.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Fe,ot}from"./chunk-cdw03j4t.js";import{We}from"./chunk-e1x629v0.js";import{qe,Ae,O}from"./chunk-vjne04dp.js";import{we,X,b,xe,J,Qe,H}from"./chunk-cmwdjes8.js";var{awsEndpointFunctions:Pe,emitWarningIfUnsupportedVersion:Ce,createDefaultUserAgentProvider:ye,NODE_APP_ID_CONFIG_OPTIONS:Te,getAwsRegionExtensionConfiguration:Oe,resolveAwsRegionExtensionConfiguration:De,resolveUserAgentConfig:Re,resolveHostHeaderConfig:ke,getUserAgentPlugin:$e,getHostHeaderPlugin:Ne,getLoggerPlugin:be,getRecursionDetectionPlugin:Ue}=O(),{NoAuthSigner:ze,getHttpAuthSchemeEndpointRuleSetPlugin:He,DefaultIdentityProviderConfig:Ge,getHttpSigningPlugin:Me}=Ae(),{normalizeProvider:V,getSmithyContext:je,ServiceException:Ke,NoOpLogger:Ve,emitWarningIfUnsupportedVersion:Le,loadConfigsForDefaultMode:Be,getDefaultExtensionConfiguration:Ye,resolveDefaultRuntimeConfig:Je,Client:L,makeBuilder:Xe,createAggregatedClient:Ze}=X(),{Command:et}=X();var Kr=et,Vr=L;var{resolveDefaultsModeConfig:tt,loadConfig:h,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:rt,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:nt,NODE_REGION_CONFIG_OPTIONS:st,NODE_REGION_CONFIG_FILE_OPTIONS:it,resolveRegionConfig:ct}=b(),{BinaryDecisionDiagram:at,EndpointCache:dt,decideEndpoint:pt,customEndpointFunctions:ut,resolveEndpointConfig:lt,getEndpointPlugin:ht}=xe(),{parseUrl:Et,getHttpHandlerExtensionConfiguration:gt,resolveHttpHandlerRuntimeConfig:_t,getContentLengthPlugin:mt}=H(),{DEFAULT_RETRY_MODE:xt,NODE_RETRY_MODE_CONFIG_OPTIONS:St,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:ft,resolveRetryConfig:It,getRetryPlugin:vt}=qe(),{TypeRegistry:B,getSchemaSerdePlugin:Pt}=we(),{resolveAwsSdkSigV4Config:Ct,AwsSdkSigV4Signer:At,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:yt}=Fe(),{toUtf8:Tt,fromUtf8:Ot,toBase64:wt,fromBase64:Dt,calculateBodyLength:Rt}=J(),{streamCollector:kt,NodeHttpHandler:$t}=We(),{AwsRestJsonProtocol:Nt}=ot(),{Sha256:bt}=Qe(),Ut=async(e,t,n)=>({operation:je(t).operation,region:await V(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Ft(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function qt(e){return{schemeId:"smithy.api#noAuth"}}var zt=(e)=>{let t=[];switch(e.operation){case"CreateToken":{t.push(qt());break}default:t.push(Ft(e))}return t},Ht=(e)=>{let t=Ct(e);return Object.assign(t,{authSchemePreference:V(e.authSchemePreference??[])})},Gt=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),Mt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},jt="3.997.47",Kt={version:jt},_="ref",E=-1,x=!0,G="isSet",W="PartitionResult",S="booleanEquals",N="getAttr",M={[_]:"Endpoint"},U={[_]:W},g={},j=[{[_]:"Region"}],K={conditions:[[G,[M]],[G,j],["aws.partition",j,W],[S,[{[_]:"UseFIPS"},x]],[S,[{[_]:"UseDualStack"},x]],[S,[{fn:N,argv:[U,"supportsDualStack"]},x]],[S,[{fn:N,argv:[U,"supportsFIPS"]},x]],["stringEquals",[{fn:N,argv:[U,"name"]},"aws-us-gov"]]],results:[[E],[E,"Invalid Configuration: FIPS and custom endpoint are not supported"],[E,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[M,g],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[E,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",g],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",g],[E,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[E,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",g],[E,"Invalid Configuration: Missing Region"]]},Vt=2,c=1e8,Lt=new Int32Array([-1,1,-1,0,13,3,1,4,c+12,2,5,c+12,3,8,6,4,7,c+11,5,c+9,c+10,4,11,9,6,10,c+8,7,c+6,c+7,5,12,c+5,6,c+4,c+5,3,c+1,14,4,c+2,c+3]),Bt=at.from(Lt,Vt,K.conditions,K.results),Wt=new dt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Yt=(e,t={})=>Wt.get(e,()=>pt(Bt,{endpointParams:e,logger:t.logger}));ut.aws=Pe;class i extends Ke{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException";constructor(e){super(e);Object.setPrototypeOf(this,i.prototype)}}class f extends i{static shapeId="com.amazonaws.ssooidc#AccessDeniedException";name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,f.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}class I extends i{static shapeId="com.amazonaws.ssooidc#AuthorizationPendingException";name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});Object.setPrototypeOf(this,I.prototype),this.error=e.error,this.error_description=e.error_description}}class v extends i{static shapeId="com.amazonaws.ssooidc#ExpiredTokenException";name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,v.prototype),this.error=e.error,this.error_description=e.error_description}}class P extends i{static shapeId="com.amazonaws.ssooidc#InternalServerException";name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e});Object.setPrototypeOf(this,P.prototype),this.error=e.error,this.error_description=e.error_description}}class C extends i{static shapeId="com.amazonaws.ssooidc#InvalidClientException";name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e});Object.setPrototypeOf(this,C.prototype),this.error=e.error,this.error_description=e.error_description}}class A extends i{static shapeId="com.amazonaws.ssooidc#InvalidGrantException";name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e});Object.setPrototypeOf(this,A.prototype),this.error=e.error,this.error_description=e.error_description}}class y extends i{static shapeId="com.amazonaws.ssooidc#InvalidRequestException";name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,y.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}class T extends i{static shapeId="com.amazonaws.ssooidc#InvalidScopeException";name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e});Object.setPrototypeOf(this,T.prototype),this.error=e.error,this.error_description=e.error_description}}class w extends i{static shapeId="com.amazonaws.ssooidc#SlowDownException";name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e});Object.setPrototypeOf(this,w.prototype),this.error=e.error,this.error_description=e.error_description}}class D extends i{static shapeId="com.amazonaws.ssooidc#UnauthorizedClientException";name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});Object.setPrototypeOf(this,D.prototype),this.error=e.error,this.error_description=e.error_description}}class R extends i{static shapeId="com.amazonaws.ssooidc#UnsupportedGrantTypeException";name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e});Object.setPrototypeOf(this,R.prototype),this.error=e.error,this.error_description=e.error_description}}var Jt="AccessDeniedException",Xt="AuthorizationPendingException",Qt="AccessToken",Zt="ClientSecret",er="CreateToken",tr="CreateTokenRequest",rr="CreateTokenResponse",or="CodeVerifier",nr="ExpiredTokenException",sr="InvalidClientException",ir="InvalidGrantException",cr="InvalidRequestException",ar="InternalServerException",dr="InvalidScopeException",pr="IdToken",ur="RefreshToken",lr="SlowDownException",hr="UnauthorizedClientException",Er="UnsupportedGrantTypeException",gr="accessToken",l="client",_r="clientId",mr="clientSecret",xr="codeVerifier",Sr="code",fr="deviceCode",r="error",Ir="expiresIn",p="error_description",vr="grantType",Pr="http",u="httpError",Cr="idToken",Y="reason",Q="refreshToken",Ar="redirectUri",Z="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",yr="scope",Tr="server",Or="tokenType",o="com.amazonaws.ssooidc",ee=new B(Z),te=[-3,Z,"SSOOIDCServiceException",0,[],[]];ee.registerError(te,i);var a=new B(o),re=[-3,o,Jt,{[r]:l,[u]:400},[r,Y,p],[0,0,0]];a.registerError(re,f);var oe=[-3,o,Xt,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(oe,I);var ne=[-3,o,nr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(ne,v);var se=[-3,o,ar,{[r]:Tr,[u]:500},[r,p],[0,0]];a.registerError(se,P);var ie=[-3,o,sr,{[r]:l,[u]:401},[r,p],[0,0]];a.registerError(ie,C);var ce=[-3,o,ir,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(ce,A);var ae=[-3,o,cr,{[r]:l,[u]:400},[r,Y,p],[0,0,0]];a.registerError(ae,y);var de=[-3,o,dr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(de,T);var pe=[-3,o,lr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(pe,w);var ue=[-3,o,hr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(ue,D);var le=[-3,o,Er,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(le,R);var he=[ee,a],wr=[0,o,Qt,8,0],Dr=[0,o,Zt,8,0],Rr=[0,o,or,8,0],kr=[0,o,pr,8,0],Ee=[0,o,ur,8,0],ge=[3,o,tr,0,[_r,mr,vr,fr,Sr,Q,yr,Ar,xr],[0,[()=>Dr,0],0,0,0,[()=>Ee,0],64,0,[()=>Rr,0]],3],_e=[3,o,rr,0,[gr,Or,Ir,Q,Cr],[[()=>wr,0],0,1,[()=>Ee,0],[()=>kr,0]]],me=[9,o,er,{[Pr]:["POST","/token",200]},()=>ge,()=>_e],$r=(e)=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Dt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Yt,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??zt,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new At},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ze}],logger:e?.logger??new Ve,protocol:e?.protocol??Nt,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:he,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:e?.serviceId??"SSO OIDC",sha256:e?.sha256??bt,urlParser:e?.urlParser??Et,utf8Decoder:e?.utf8Decoder??Ot,utf8Encoder:e?.utf8Encoder??Tt}),Nr=(e)=>{Le(process.version);let t=tt(e),n=()=>t().then(Be),d=$r(e);Ce(process.version);let s={profile:e?.profile,logger:d.logger};return{...d,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??h(yt,s),bodyLengthChecker:e?.bodyLengthChecker??Rt,defaultUserAgentProvider:e?.defaultUserAgentProvider??ye({serviceId:d.serviceId,clientVersion:Kt.version}),maxAttempts:e?.maxAttempts??h(ft,e),region:e?.region??h(st,{...it,...s}),requestHandler:$t.create(e?.requestHandler??n),retryMode:e?.retryMode??h({...St,default:async()=>(await n()).retryMode||xt},e),streamCollector:e?.streamCollector??kt,useDualstackEndpoint:e?.useDualstackEndpoint??h(nt,s),useFipsEndpoint:e?.useFipsEndpoint??h(rt,s),userAgentAppId:e?.userAgentAppId??h(Te,s)}},br=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:n,credentials:d}=e;return{setHttpAuthScheme(s){let m=t.findIndex((k)=>k.schemeId===s.schemeId);if(m===-1)t.push(s);else t.splice(m,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){n=s},httpAuthSchemeProvider(){return n},setCredentials(s){d=s},credentials(){return d}}},Ur=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Fr=(e,t)=>{let n=Object.assign(Oe(e),Ye(e),gt(e),br(e));return t.forEach((d)=>d.configure(n)),Object.assign(e,De(n),Je(n),_t(n),Ur(n))};class F extends L{config;constructor(...[e]){let t=Nr(e||{});super(t);this.initConfig=t;let n=Gt(t),d=Re(n),s=It(d),m=ct(s),k=ke(m),Se=lt(k),fe=Ht(Se),Ie=Fr(fe,e?.extensions||[]);this.config=Ie,this.middlewareStack.use(Pt(this.config)),this.middlewareStack.use($e(this.config)),this.middlewareStack.use(vt(this.config)),this.middlewareStack.use(mt(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(be(this.config)),this.middlewareStack.use(Ue(this.config)),this.middlewareStack.use(He(this.config,{httpAuthSchemeParametersProvider:Ut,identityProviderConfigProvider:async(ve)=>new Ge({"aws.auth#sigv4":ve.credentials})})),this.middlewareStack.use(Me(this.config))}destroy(){super.destroy()}}var qr=Xe(Mt,"AWSSSOOIDCService","SSOOIDCClient",ht),zr={},Hr=(e,t,n,d)=>[];class q extends qr(zr,Hr,"CreateToken",me){}var Gr={CreateTokenCommand:q};class z extends F{}Ze(Gr,z);var Mr={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},jr={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};var Lr=f,Br=re,Wr=Mr,Yr=I,Jr=oe,Xr=me,Qr=q,Zr=ge,eo=_e,to=v,ro=ne,oo=P,no=se,so=C,io=ie,co=A,ao=ce,po=y,uo=ae,lo=jr,ho=T,Eo=de,go=z,_o=F,mo=i,xo=te,So=w,fo=pe,Io=D,vo=ue,Po=R,Co=le,Ao=he;export{Kr as $Command,Vr as __Client,Lr as AccessDeniedException,Br as AccessDeniedException$,Wr as AccessDeniedExceptionReason,Yr as AuthorizationPendingException,Jr as AuthorizationPendingException$,Xr as CreateToken$,Qr as CreateTokenCommand,Zr as CreateTokenRequest$,eo as CreateTokenResponse$,to as ExpiredTokenException,ro as ExpiredTokenException$,oo as InternalServerException,no as InternalServerException$,so as InvalidClientException,io as InvalidClientException$,co as InvalidGrantException,ao as InvalidGrantException$,po as InvalidRequestException,uo as InvalidRequestException$,lo as InvalidRequestExceptionReason,ho as InvalidScopeException,Eo as InvalidScopeException$,go as SSOOIDC,_o as SSOOIDCClient,mo as SSOOIDCServiceException,xo as SSOOIDCServiceException$,So as SlowDownException,fo as SlowDownException$,Io as UnauthorizedClientException,vo as UnauthorizedClientException$,Po as UnsupportedGrantTypeException,Co as UnsupportedGrantTypeException$,Ao as errorTypeRegistries};
|
package/chunk-rks90mh1.js
DELETED
package/chunk-t7te60m7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{O}from"./chunk-vjne04dp.js";import{b}from"./chunk-cmwdjes8.js";import{i}from"./chunk-bwawt15q.js";var _=i(O()),N=i(b()),Ur="AWS_ACCESS_KEY_ID",Br="AWS_SECRET_ACCESS_KEY",S="AWS_SESSION_TOKEN",C="AWS_CREDENTIAL_EXPIRATION",A="AWS_CREDENTIAL_SCOPE",p="AWS_ACCOUNT_ID",Mn=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let o=process.env[Ur],E=process.env[Br],r=process.env[S],n=process.env[C],s=process.env[A],t=process.env[p];if(o&&E){let c={accessKeyId:o,secretAccessKey:E,...r&&{sessionToken:r},...n&&{expiration:new Date(n)},...s&&{credentialScope:s},...t&&{accountId:t}};return _.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new N.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};export{Ur,Br,Mn};
|
package/chunk-tv52xajf.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Fe,ot}from"./chunk-cdw03j4t.js";import{We}from"./chunk-e1x629v0.js";import{qe,Ae,O}from"./chunk-vjne04dp.js";import{we,X,b,xe,J,Qe,H}from"./chunk-cmwdjes8.js";var{awsEndpointFunctions:Y,emitWarningIfUnsupportedVersion:Z,createDefaultUserAgentProvider:ee,NODE_APP_ID_CONFIG_OPTIONS:te,getAwsRegionExtensionConfiguration:se,resolveAwsRegionExtensionConfiguration:oe,resolveUserAgentConfig:ne,resolveHostHeaderConfig:re,getUserAgentPlugin:ie,getHostHeaderPlugin:ae,getLoggerPlugin:ce,getRecursionDetectionPlugin:ue}=O(),{NoAuthSigner:de,getHttpAuthSchemeEndpointRuleSetPlugin:pe,DefaultIdentityProviderConfig:le,getHttpSigningPlugin:he}=Ae(),{normalizeProvider:q,getSmithyContext:ge,ServiceException:me,NoOpLogger:Se,emitWarningIfUnsupportedVersion:_e,loadConfigsForDefaultMode:Ee,getDefaultExtensionConfiguration:fe,resolveDefaultRuntimeConfig:Pe,Client:ve,makeBuilder:Re,createAggregatedClient:Ce}=X(),{Command:Es}=X();var{resolveDefaultsModeConfig:Ie,loadConfig:a,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:ye,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:Oe,NODE_REGION_CONFIG_OPTIONS:Te,NODE_REGION_CONFIG_FILE_OPTIONS:Ne,resolveRegionConfig:De}=b(),{BinaryDecisionDiagram:ke,EndpointCache:be,decideEndpoint:$e,customEndpointFunctions:He,resolveEndpointConfig:Ue,getEndpointPlugin:Ge}=xe(),{parseUrl:Me,getHttpHandlerExtensionConfiguration:ze,resolveHttpHandlerRuntimeConfig:je,getContentLengthPlugin:Le}=H(),{DEFAULT_RETRY_MODE:Ke,NODE_RETRY_MODE_CONFIG_OPTIONS:Ve,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:Be,resolveRetryConfig:Ye,getRetryPlugin:Je}=qe(),{TypeRegistry:U,getSchemaSerdePlugin:Xe}=we(),{resolveAwsSdkSigV4Config:Ze,AwsSdkSigV4Signer:et,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:tt}=Fe(),{toUtf8:st,fromUtf8:nt,toBase64:rt,fromBase64:it,calculateBodyLength:at}=J(),{streamCollector:ct,NodeHttpHandler:ut}=We(),{AwsRestJsonProtocol:dt}=ot(),{Sha256:pt}=Qe(),lt=async(e,t,s)=>({operation:ge(t).operation,region:await q(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function ht(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(t,s)=>({signingProperties:{config:t,context:s}})}}function gt(e){return{schemeId:"smithy.api#noAuth"}}var mt=(e)=>{let t=[];switch(e.operation){case"GetRoleCredentials":{t.push(gt());break}default:t.push(ht(e))}return t},St=(e)=>{let t=Ze(e);return Object.assign(t,{authSchemePreference:q(e.authSchemePreference??[])})},_t=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}),Et={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},ft="3.997.47",Pt={version:ft},p="ref",c=-1,g=!0,T="isSet",G="PartitionResult",m="booleanEquals",v="getAttr",N={[p]:"Endpoint"},R={[p]:G},d={},D=[{[p]:"Region"}],k={conditions:[[T,[N]],[T,D],["aws.partition",D,G],[m,[{[p]:"UseFIPS"},g]],[m,[{[p]:"UseDualStack"},g]],[m,[{fn:v,argv:[R,"supportsDualStack"]},g]],[m,[{fn:v,argv:[R,"supportsFIPS"]},g]],["stringEquals",[{fn:v,argv:[R,"name"]},"aws-us-gov"]]],results:[[c],[c,"Invalid Configuration: FIPS and custom endpoint are not supported"],[c,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[N,d],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",d],[c,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",d],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",d],[c,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",d],[c,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",d],[c,"Invalid Configuration: Missing Region"]]},vt=2,n=1e8,Rt=new Int32Array([-1,1,-1,0,13,3,1,4,n+12,2,5,n+12,3,8,6,4,7,n+11,5,n+9,n+10,4,11,9,6,10,n+8,7,n+6,n+7,5,12,n+5,6,n+4,n+5,3,n+1,14,4,n+2,n+3]),xt=ke.from(Rt,vt,k.conditions,k.results),Ct=new be({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),It=(e,t={})=>Ct.get(e,()=>$e(xt,{endpointParams:e,logger:t.logger}));He.aws=Y;class u extends me{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sso#SSOServiceException";constructor(e){super(e);Object.setPrototypeOf(this,u.prototype)}}class x extends u{static shapeId="com.amazonaws.sso#InvalidRequestException";name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,x.prototype)}}class C extends u{static shapeId="com.amazonaws.sso#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,C.prototype)}}class I extends u{static shapeId="com.amazonaws.sso#TooManyRequestsException";name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});Object.setPrototypeOf(this,I.prototype)}}class y extends u{static shapeId="com.amazonaws.sso#UnauthorizedException";name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});Object.setPrototypeOf(this,y.prototype)}}var yt="AccessTokenType",At="GetRoleCredentials",Ot="GetRoleCredentialsRequest",wt="GetRoleCredentialsResponse",Tt="InvalidRequestException",Nt="RoleCredentials",Dt="ResourceNotFoundException",kt="SecretAccessKeyType",bt="SessionTokenType",Ft="TooManyRequestsException",qt="UnauthorizedException",$t="accountId",Ht="accessKeyId",Ut="accessToken",Gt="account_id",S="client",_="error",Mt="expiration",zt="http",E="httpError",jt="httpHeader",F="httpQuery",f="message",Lt="roleCredentials",Kt="roleName",Vt="role_name",M="smithy.ts.sdk.synthetic.com.amazonaws.sso",Bt="secretAccessKey",Wt="sessionToken",Qt="x-amz-sso_bearer_token",r="com.amazonaws.sso",z=new U(M),Yt=[-3,M,"SSOServiceException",0,[],[]];z.registerError(Yt,u);var l=new U(r),Jt=[-3,r,Tt,{[_]:S,[E]:400},[f],[0]];l.registerError(Jt,x);var Xt=[-3,r,Dt,{[_]:S,[E]:404},[f],[0]];l.registerError(Xt,C);var Zt=[-3,r,Ft,{[_]:S,[E]:429},[f],[0]];l.registerError(Zt,I);var es=[-3,r,qt,{[_]:S,[E]:401},[f],[0]];l.registerError(es,y);var ts=[z,l],ss=[0,r,yt,8,0],os=[0,r,kt,8,0],ns=[0,r,bt,8,0],rs=[3,r,Ot,0,[Kt,$t,Ut],[[0,{[F]:Vt}],[0,{[F]:Gt}],[()=>ss,{[jt]:Qt}]],3],is=[3,r,wt,0,[Lt],[[()=>as,0]]],as=[3,r,Nt,0,[Ht,Bt,Wt,Mt],[0,[()=>os,0],[()=>ns,0],1]],cs=[9,r,At,{[zt]:["GET","/federation/credentials",200]},()=>rs,()=>is],us=(e)=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??it,base64Encoder:e?.base64Encoder??rt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??It,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??mt,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new et},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new de}],logger:e?.logger??new Se,protocol:e?.protocol??dt,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:ts,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:e?.serviceId??"SSO",sha256:e?.sha256??pt,urlParser:e?.urlParser??Me,utf8Decoder:e?.utf8Decoder??nt,utf8Encoder:e?.utf8Encoder??st}),ds=(e)=>{_e(process.version);let t=Ie(e),s=()=>t().then(Ee),i=us(e);Z(process.version);let o={profile:e?.profile,logger:i.logger};return{...i,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??a(tt,o),bodyLengthChecker:e?.bodyLengthChecker??at,defaultUserAgentProvider:e?.defaultUserAgentProvider??ee({serviceId:i.serviceId,clientVersion:Pt.version}),maxAttempts:e?.maxAttempts??a(Be,e),region:e?.region??a(Te,{...Ne,...o}),requestHandler:ut.create(e?.requestHandler??s),retryMode:e?.retryMode??a({...Ve,default:async()=>(await s()).retryMode||Ke},e),streamCollector:e?.streamCollector??ct,useDualstackEndpoint:e?.useDualstackEndpoint??a(Oe,o),useFipsEndpoint:e?.useFipsEndpoint??a(ye,o),userAgentAppId:e?.userAgentAppId??a(te,o)}},ps=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:s,credentials:i}=e;return{setHttpAuthScheme(o){let h=t.findIndex((P)=>P.schemeId===o.schemeId);if(h===-1)t.push(o);else t.splice(h,1,o)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(o){s=o},httpAuthSchemeProvider(){return s},setCredentials(o){i=o},credentials(){return i}}},ls=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),hs=(e,t)=>{let s=Object.assign(se(e),fe(e),ze(e),ps(e));return t.forEach((i)=>i.configure(s)),Object.assign(e,oe(s),Pe(s),je(s),ls(s))};class A extends ve{config;constructor(...[e]){let t=ds(e||{});super(t);this.initConfig=t;let s=_t(t),i=ne(s),o=Ye(i),h=De(o),P=re(h),V=Ue(P),B=St(V),W=hs(B,e?.extensions||[]);this.config=W,this.middlewareStack.use(Xe(this.config)),this.middlewareStack.use(ie(this.config)),this.middlewareStack.use(Je(this.config)),this.middlewareStack.use(Le(this.config)),this.middlewareStack.use(ae(this.config)),this.middlewareStack.use(ce(this.config)),this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(pe(this.config,{httpAuthSchemeParametersProvider:lt,identityProviderConfigProvider:async(Q)=>new le({"aws.auth#sigv4":Q.credentials})})),this.middlewareStack.use(he(this.config))}destroy(){super.destroy()}}var gs=Re(Et,"SWBPortalService","SSOClient",Ge),ms={},Ss=(e,t,s,i)=>[];class w extends gs(ms,Ss,"GetRoleCredentials",cs){}var _s={GetRoleCredentialsCommand:w};class j extends A{}Ce(_s,j);var L=w;var K=A;export{L as GetRoleCredentialsCommand,K as SSOClient};
|