@layerzerolabs/vm-tooling 0.2.6 → 0.2.8
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/dist/22DCFDRO.js +6 -0
- package/dist/{6QZPR4XG.js.map → 22DCFDRO.js.map} +1 -1
- package/dist/24NWZBNF.cjs +8 -0
- package/dist/{Z253B63X.cjs.map → 24NWZBNF.cjs.map} +1 -1
- package/dist/{U7VZULNU.cjs → 24WEKBY3.cjs} +5 -12
- package/dist/24WEKBY3.cjs.map +1 -0
- package/dist/{35BIBLTE.js → 2DA6OMT5.js} +34 -16
- package/dist/2DA6OMT5.js.map +1 -0
- package/dist/{7WVEMAKW.cjs → 3NXVR3DC.cjs} +5 -5
- package/dist/{7WVEMAKW.cjs.map → 3NXVR3DC.cjs.map} +1 -1
- package/dist/{HMP4FGDB.cjs → 3TIEGVTO.cjs} +81 -83
- package/dist/3TIEGVTO.cjs.map +1 -0
- package/dist/{VLSIEZLM.js → 3V7HWCTZ.js} +68 -19
- package/dist/3V7HWCTZ.js.map +1 -0
- package/dist/{YIS2J6NC.js → 3YN24Z7J.js} +54 -11
- package/dist/3YN24Z7J.js.map +1 -0
- package/dist/{MQTCD42Y.cjs → 45KBPE2A.cjs} +74 -62
- package/dist/45KBPE2A.cjs.map +1 -0
- package/dist/4BVLTYVP.cjs +22 -0
- package/dist/4BVLTYVP.cjs.map +1 -0
- package/dist/{OANFSFAO.js → 4CXXALGT.js} +15 -15
- package/dist/{OANFSFAO.js.map → 4CXXALGT.js.map} +1 -1
- package/dist/4DNHANRV.cjs +39 -0
- package/dist/4DNHANRV.cjs.map +1 -0
- package/dist/5AS6ABVZ.js +68 -0
- package/dist/5AS6ABVZ.js.map +1 -0
- package/dist/{4RNWLMHM.js → 6AHA7PAZ.js} +8 -13
- package/dist/6AHA7PAZ.js.map +1 -0
- package/dist/6NTWQZTS.js +6 -0
- package/dist/6NTWQZTS.js.map +1 -0
- package/dist/6TJOZVPD.cjs +19 -0
- package/dist/6TJOZVPD.cjs.map +1 -0
- package/dist/7AUJV34E.cjs +144 -0
- package/dist/7AUJV34E.cjs.map +1 -0
- package/dist/7GBZAO4Q.js +42 -0
- package/dist/7GBZAO4Q.js.map +1 -0
- package/dist/{LH4V3GFX.cjs → 7HA6JSWY.cjs} +19 -20
- package/dist/7HA6JSWY.cjs.map +1 -0
- package/dist/7IXQN6OO.js +348 -0
- package/dist/7IXQN6OO.js.map +1 -0
- package/dist/7JWBGU62.js +141 -0
- package/dist/7JWBGU62.js.map +1 -0
- package/dist/{IWNVWC3I.js → 7XVJ6B7B.js} +3 -3
- package/dist/{IWNVWC3I.js.map → 7XVJ6B7B.js.map} +1 -1
- package/dist/{LNCARCBD.cjs → ALYR25XX.cjs} +4 -4
- package/dist/{LNCARCBD.cjs.map → ALYR25XX.cjs.map} +1 -1
- package/dist/{4CTWHZA4.cjs → AZEY5BMF.cjs} +13 -13
- package/dist/{4CTWHZA4.cjs.map → AZEY5BMF.cjs.map} +1 -1
- package/dist/{W44XSMQX.js → BAPGOHFS.js} +8 -8
- package/dist/{W44XSMQX.js.map → BAPGOHFS.js.map} +1 -1
- package/dist/{ORWR6LWW.js → BLS3LKLJ.js} +3 -3
- package/dist/{ORWR6LWW.js.map → BLS3LKLJ.js.map} +1 -1
- package/dist/C7WLBLDI.cjs +57 -0
- package/dist/C7WLBLDI.cjs.map +1 -0
- package/dist/CCKCKIBV.cjs +182 -0
- package/dist/CCKCKIBV.cjs.map +1 -0
- package/dist/{scripts/generate-github-matrix.js → D2W5CUS2.js} +59 -67
- package/dist/D2W5CUS2.js.map +1 -0
- package/dist/{BVXMXRYL.cjs → D5NZ2LLF.cjs} +56 -56
- package/dist/{BVXMXRYL.cjs.map → D5NZ2LLF.cjs.map} +1 -1
- package/dist/DDKMZ6EE.js +6 -0
- package/dist/DDKMZ6EE.js.map +1 -0
- package/dist/{NDUVZQ7S.js → ERGNNQ6N.js} +3 -3
- package/dist/{NDUVZQ7S.js.map → ERGNNQ6N.js.map} +1 -1
- package/dist/{AMF2EES3.cjs → EUBM3LSR.cjs} +42 -27
- package/dist/EUBM3LSR.cjs.map +1 -0
- package/dist/{VZOUGVXS.cjs → FBKCEQT5.cjs} +58 -15
- package/dist/FBKCEQT5.cjs.map +1 -0
- package/dist/FDH37YWR.cjs +52 -0
- package/dist/FDH37YWR.cjs.map +1 -0
- package/dist/{73CRCY4G.js → FQHJEYC5.js} +12 -12
- package/dist/FQHJEYC5.js.map +1 -0
- package/dist/{HN3U775J.cjs → FQPOYRQJ.cjs} +10 -10
- package/dist/{HN3U775J.cjs.map → FQPOYRQJ.cjs.map} +1 -1
- package/dist/GB4RG4YH.cjs +207 -0
- package/dist/GB4RG4YH.cjs.map +1 -0
- package/dist/GFH6WSFW.cjs +8 -0
- package/dist/{IDMMHZJ3.cjs.map → GFH6WSFW.cjs.map} +1 -1
- package/dist/{XM743A75.js → GGKJNPTT.js} +22 -7
- package/dist/GGKJNPTT.js.map +1 -0
- package/dist/{ELFNCT57.js → GHQS37WK.js} +57 -41
- package/dist/GHQS37WK.js.map +1 -0
- package/dist/GVS7FGYI.cjs +49 -0
- package/dist/GVS7FGYI.cjs.map +1 -0
- package/dist/H6ZWRX4I.cjs +71 -0
- package/dist/H6ZWRX4I.cjs.map +1 -0
- package/dist/HH7R2XAD.cjs +44 -0
- package/dist/HH7R2XAD.cjs.map +1 -0
- package/dist/I24EDDRD.cjs +30 -0
- package/dist/I24EDDRD.cjs.map +1 -0
- package/dist/IGVQSSKE.cjs +12 -0
- package/dist/IGVQSSKE.cjs.map +1 -0
- package/dist/IKBAJOTL.js +121 -0
- package/dist/IKBAJOTL.js.map +1 -0
- package/dist/IYIFH7LC.js +29 -0
- package/dist/IYIFH7LC.js.map +1 -0
- package/dist/{AOG2M3LV.cjs → J2A64VZU.js} +25 -4
- package/dist/J2A64VZU.js.map +1 -0
- package/dist/JFX35GR2.js +175 -0
- package/dist/JFX35GR2.js.map +1 -0
- package/dist/{6MCEHW2U.cjs → JUMGXR5I.cjs} +304 -286
- package/dist/JUMGXR5I.cjs.map +1 -0
- package/dist/{GLJJOBCM.js → LQNTMID2.js} +22 -16
- package/dist/LQNTMID2.js.map +1 -0
- package/dist/LS4PZK5Q.cjs +8 -0
- package/dist/LS4PZK5Q.cjs.map +1 -0
- package/dist/{LUG7USNZ.js → MDE37STN.cjs} +29 -3
- package/dist/MDE37STN.cjs.map +1 -0
- package/dist/{6OU7NCZK.js → MQNCJPBY.js} +18 -18
- package/dist/{6OU7NCZK.js.map → MQNCJPBY.js.map} +1 -1
- package/dist/{scripts/generate-github-matrix.cjs → NHZ56QQ6.cjs} +326 -334
- package/dist/NHZ56QQ6.cjs.map +1 -0
- package/dist/NIOWT3K2.cjs +118 -0
- package/dist/NIOWT3K2.cjs.map +1 -0
- package/dist/OBHJ2FSI.cjs +103 -0
- package/dist/OBHJ2FSI.cjs.map +1 -0
- package/dist/ODGKXOOP.js +12 -0
- package/dist/ODGKXOOP.js.map +1 -0
- package/dist/{ASYXJJD4.cjs → P2D6TBR2.cjs} +213 -213
- package/dist/{ASYXJJD4.cjs.map → P2D6TBR2.cjs.map} +1 -1
- package/dist/{SHJCZ6NL.cjs → PAU3G3SR.cjs} +153 -147
- package/dist/PAU3G3SR.cjs.map +1 -0
- package/dist/{5CI7X2D4.js → PQ4H7UWU.js} +5 -5
- package/dist/{5CI7X2D4.js.map → PQ4H7UWU.js.map} +1 -1
- package/dist/Q5L3QIKZ.cjs +825 -0
- package/dist/Q5L3QIKZ.cjs.map +1 -0
- package/dist/QE6MLWSK.cjs +129 -0
- package/dist/QE6MLWSK.cjs.map +1 -0
- package/dist/{P5BPMTGP.cjs → QEUMSA6O.cjs} +90 -74
- package/dist/QEUMSA6O.cjs.map +1 -0
- package/dist/QHFDWPE3.js +28 -0
- package/dist/QHFDWPE3.js.map +1 -0
- package/dist/{TXDLSUBD.js → QSGRIGIB.js} +1409 -393
- package/dist/QSGRIGIB.js.map +1 -0
- package/dist/QTKMYYBJ.js +20 -0
- package/dist/QTKMYYBJ.js.map +1 -0
- package/dist/{S37YVMJL.js → R5CQAJPE.js} +22 -10
- package/dist/R5CQAJPE.js.map +1 -0
- package/dist/ROMZWOXP.js +21 -0
- package/dist/ROMZWOXP.js.map +1 -0
- package/dist/RT6XP6RO.js +10 -0
- package/dist/RT6XP6RO.js.map +1 -0
- package/dist/T3GK7LED.cjs +11 -0
- package/dist/{YNMZEV5X.cjs.map → T3GK7LED.cjs.map} +1 -1
- package/dist/TC4EVJWZ.js +96 -0
- package/dist/TC4EVJWZ.js.map +1 -0
- package/dist/{KOKBYHOJ.js → TKT5HVBW.js} +85 -43
- package/dist/TKT5HVBW.js.map +1 -0
- package/dist/{LMCIXUBF.js → TQHAG73D.js} +9 -43
- package/dist/TQHAG73D.js.map +1 -0
- package/dist/TXQ7DL7M.cjs +48 -0
- package/dist/TXQ7DL7M.cjs.map +1 -0
- package/dist/UFZOOGMQ.js +46 -0
- package/dist/UFZOOGMQ.js.map +1 -0
- package/dist/UOMNLT53.cjs +33 -0
- package/dist/UOMNLT53.cjs.map +1 -0
- package/dist/UPZFEE7V.cjs +354 -0
- package/dist/UPZFEE7V.cjs.map +1 -0
- package/dist/UTB7ZC7B.js +37 -0
- package/dist/UTB7ZC7B.js.map +1 -0
- package/dist/UUMDUUBJ.cjs +194 -0
- package/dist/UUMDUUBJ.cjs.map +1 -0
- package/dist/V3H2GSUQ.js +6 -0
- package/dist/V3H2GSUQ.js.map +1 -0
- package/dist/{LF6BYBZY.js → V7WCPKFN.js} +6 -6
- package/dist/{LF6BYBZY.js.map → V7WCPKFN.js.map} +1 -1
- package/dist/{TNPXNMQM.js → VM366GYK.js} +33 -13
- package/dist/VM366GYK.js.map +1 -0
- package/dist/{RH2W4KPM.js → WSES6SE2.js} +28 -30
- package/dist/WSES6SE2.js.map +1 -0
- package/dist/WZTIMOLE.cjs +17 -0
- package/dist/WZTIMOLE.cjs.map +1 -0
- package/dist/{EDWLY6YP.js → XCUEIITH.js} +6 -7
- package/dist/XCUEIITH.js.map +1 -0
- package/dist/{CXM3VA7N.cjs → XFDJEDQJ.cjs} +8 -8
- package/dist/{CXM3VA7N.cjs.map → XFDJEDQJ.cjs.map} +1 -1
- package/dist/XROMTYOP.js +6 -0
- package/dist/{7BFNUKIW.js.map → XROMTYOP.js.map} +1 -1
- package/dist/XVWZAEKK.js +807 -0
- package/dist/XVWZAEKK.js.map +1 -0
- package/dist/Y76LNXBO.cjs +8 -0
- package/dist/{CYUSPBTH.cjs.map → Y76LNXBO.cjs.map} +1 -1
- package/dist/YEY7RJOA.cjs +59 -0
- package/dist/YEY7RJOA.cjs.map +1 -0
- package/dist/YG4DCXY2.js +17 -0
- package/dist/YG4DCXY2.js.map +1 -0
- package/dist/{7ZH64OYR.cjs → ZI7GOR2D.cjs} +1781 -749
- package/dist/ZI7GOR2D.cjs.map +1 -0
- package/dist/cli.cjs +29 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.ts +7 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +20 -0
- package/dist/cli.js.map +1 -0
- package/dist/config.cjs +25 -0
- package/dist/config.cjs.map +1 -0
- package/dist/config.d.ts +17 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +4 -0
- package/dist/config.js.map +1 -0
- package/dist/context.cjs +8 -0
- package/dist/context.cjs.map +1 -0
- package/dist/context.d.ts +8 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +6 -0
- package/dist/context.js.map +1 -0
- package/dist/core/index.cjs +13 -12
- package/dist/core/index.js +11 -10
- package/dist/core/lock.cjs +5 -5
- package/dist/core/lock.js +2 -2
- package/dist/core/lock.test.cjs +18371 -13
- package/dist/core/lock.test.cjs.map +1 -1
- package/dist/core/lock.test.js +18363 -5
- package/dist/core/lock.test.js.map +1 -1
- package/dist/core/tool-executor.cjs +11 -10
- package/dist/core/tool-executor.d.ts +2 -1
- package/dist/core/tool-executor.d.ts.map +1 -1
- package/dist/core/tool-executor.js +10 -9
- package/dist/core/version-resolver.cjs +5 -6
- package/dist/core/version-resolver.d.ts +2 -4
- package/dist/core/version-resolver.d.ts.map +1 -1
- package/dist/core/version-resolver.js +4 -5
- package/dist/display/formatters.cjs +5 -6
- package/dist/display/formatters.d.ts +2 -1
- package/dist/display/formatters.d.ts.map +1 -1
- package/dist/display/formatters.js +4 -5
- package/dist/display/index.cjs +9 -10
- package/dist/display/index.js +6 -7
- package/dist/display/version-display.cjs +7 -8
- package/dist/display/version-display.d.ts +3 -2
- package/dist/display/version-display.d.ts.map +1 -1
- package/dist/display/version-display.js +5 -6
- package/dist/github/index.cjs +28 -0
- package/dist/github/index.d.ts +3 -0
- package/dist/github/index.d.ts.map +1 -0
- package/dist/github/index.js +19 -0
- package/dist/github/matrix.cjs +27 -0
- package/dist/github/matrix.cjs.map +1 -0
- package/dist/github/matrix.d.ts +11 -0
- package/dist/github/matrix.d.ts.map +1 -0
- package/dist/github/matrix.js +18 -0
- package/dist/github/matrix.js.map +1 -0
- package/dist/index.cjs +53 -149
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +32 -143
- package/dist/index.js.map +1 -1
- package/dist/test.cjs +16 -0
- package/dist/test.cjs.map +1 -0
- package/dist/test.d.ts +5 -0
- package/dist/test.d.ts.map +1 -0
- package/dist/test.js +7 -0
- package/dist/test.js.map +1 -0
- package/dist/types/docker.cjs +3 -3
- package/dist/types/docker.js +2 -2
- package/dist/types/index.cjs +5 -5
- package/dist/types/index.js +4 -4
- package/dist/types/tool.cjs +2 -2
- package/dist/types/tool.d.ts +2 -3
- package/dist/types/tool.d.ts.map +1 -1
- package/dist/types/tool.js +2 -2
- package/dist/utils/docker.cjs +8 -9
- package/dist/utils/docker.d.ts +2 -1
- package/dist/utils/docker.d.ts.map +1 -1
- package/dist/utils/docker.js +4 -5
- package/dist/utils/error.cjs +3 -3
- package/dist/utils/error.js +2 -2
- package/dist/utils/finder.cjs +7 -21
- package/dist/utils/finder.d.ts +5 -11
- package/dist/utils/finder.d.ts.map +1 -1
- package/dist/utils/finder.js +2 -4
- package/dist/utils/version.cjs +4 -14
- package/dist/utils/version.d.ts +0 -8
- package/dist/utils/version.d.ts.map +1 -1
- package/dist/utils/version.js +2 -4
- package/dist/utils.cjs +4 -9
- package/dist/utils.d.ts +2 -6
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +3 -4
- package/package.json +5 -15
- package/bin/lz-tool.js +0 -3
- package/dist/2AQAGKCU.cjs +0 -39
- package/dist/2AQAGKCU.cjs.map +0 -1
- package/dist/2Z6XZCGO.js +0 -84
- package/dist/2Z6XZCGO.js.map +0 -1
- package/dist/35BIBLTE.js.map +0 -1
- package/dist/3ATC7U63.js +0 -126
- package/dist/3ATC7U63.js.map +0 -1
- package/dist/3GTIKWKS.js +0 -50
- package/dist/3GTIKWKS.js.map +0 -1
- package/dist/4Q36MQI5.js +0 -2665
- package/dist/4Q36MQI5.js.map +0 -1
- package/dist/4RNWLMHM.js.map +0 -1
- package/dist/4SZ6P77Q.cjs +0 -183
- package/dist/4SZ6P77Q.cjs.map +0 -1
- package/dist/6GRSDUV3.cjs +0 -164
- package/dist/6GRSDUV3.cjs.map +0 -1
- package/dist/6MCEHW2U.cjs.map +0 -1
- package/dist/6QJ3ATEV.cjs +0 -348
- package/dist/6QJ3ATEV.cjs.map +0 -1
- package/dist/6QZPR4XG.js +0 -6
- package/dist/6YTOLRHQ.js +0 -6
- package/dist/6YTOLRHQ.js.map +0 -1
- package/dist/73CRCY4G.js.map +0 -1
- package/dist/7BFNUKIW.js +0 -6
- package/dist/7C3FV2XA.cjs +0 -128
- package/dist/7C3FV2XA.cjs.map +0 -1
- package/dist/7R7EZF6Z.js +0 -177
- package/dist/7R7EZF6Z.js.map +0 -1
- package/dist/7ZH64OYR.cjs.map +0 -1
- package/dist/AHQNBZE4.cjs +0 -18
- package/dist/AHQNBZE4.cjs.map +0 -1
- package/dist/AMF2EES3.cjs.map +0 -1
- package/dist/AOG2M3LV.cjs.map +0 -1
- package/dist/AUA3QPCB.js +0 -303
- package/dist/AUA3QPCB.js.map +0 -1
- package/dist/BQMGLKBO.js +0 -19
- package/dist/BQMGLKBO.js.map +0 -1
- package/dist/BTXB2LKA.js +0 -57
- package/dist/BTXB2LKA.js.map +0 -1
- package/dist/C4FRNVDY.cjs +0 -77
- package/dist/C4FRNVDY.cjs.map +0 -1
- package/dist/CSLN223N.js +0 -15
- package/dist/CSLN223N.js.map +0 -1
- package/dist/CYUSPBTH.cjs +0 -8
- package/dist/DB5GRF5K.cjs +0 -59
- package/dist/DB5GRF5K.cjs.map +0 -1
- package/dist/DBRVUBWJ.cjs +0 -72
- package/dist/DBRVUBWJ.cjs.map +0 -1
- package/dist/EDE37TVE.js +0 -26
- package/dist/EDE37TVE.js.map +0 -1
- package/dist/EDWLY6YP.js.map +0 -1
- package/dist/ELFNCT57.js.map +0 -1
- package/dist/F7OAIAEX.cjs +0 -144
- package/dist/F7OAIAEX.cjs.map +0 -1
- package/dist/GIS4KMDM.js +0 -6
- package/dist/GIS4KMDM.js.map +0 -1
- package/dist/GLJJOBCM.js.map +0 -1
- package/dist/GWPT4OMB.js +0 -162
- package/dist/GWPT4OMB.js.map +0 -1
- package/dist/GZ7KTF4Q.js +0 -16
- package/dist/GZ7KTF4Q.js.map +0 -1
- package/dist/H626YBWD.cjs +0 -17
- package/dist/H626YBWD.cjs.map +0 -1
- package/dist/HMP4FGDB.cjs.map +0 -1
- package/dist/I4WZRP7G.cjs +0 -86
- package/dist/I4WZRP7G.cjs.map +0 -1
- package/dist/IDMMHZJ3.cjs +0 -8
- package/dist/JGLHYXTW.cjs +0 -141
- package/dist/JGLHYXTW.cjs.map +0 -1
- package/dist/JSLAKJHB.cjs +0 -164
- package/dist/JSLAKJHB.cjs.map +0 -1
- package/dist/KOKBYHOJ.js.map +0 -1
- package/dist/L3JULKNZ.js +0 -6
- package/dist/L3JULKNZ.js.map +0 -1
- package/dist/LH4V3GFX.cjs.map +0 -1
- package/dist/LMCIXUBF.js.map +0 -1
- package/dist/LUG7USNZ.js.map +0 -1
- package/dist/MQTCD42Y.cjs.map +0 -1
- package/dist/OH4A2VLX.js +0 -232
- package/dist/OH4A2VLX.js.map +0 -1
- package/dist/OT5L7ME6.cjs +0 -2710
- package/dist/OT5L7ME6.cjs.map +0 -1
- package/dist/OWTMHDOF.cjs +0 -88
- package/dist/OWTMHDOF.cjs.map +0 -1
- package/dist/P5BPMTGP.cjs.map +0 -1
- package/dist/RH2W4KPM.js.map +0 -1
- package/dist/RP32HMV5.js +0 -74
- package/dist/RP32HMV5.js.map +0 -1
- package/dist/S37YVMJL.js.map +0 -1
- package/dist/S3PHE6F2.cjs +0 -8
- package/dist/S3PHE6F2.cjs.map +0 -1
- package/dist/SHJCZ6NL.cjs.map +0 -1
- package/dist/TNPXNMQM.js.map +0 -1
- package/dist/TPWAEA6V.js +0 -29
- package/dist/TPWAEA6V.js.map +0 -1
- package/dist/TTKDG2NN.js +0 -134
- package/dist/TTKDG2NN.js.map +0 -1
- package/dist/TXDLSUBD.js.map +0 -1
- package/dist/U4QZYPBU.cjs +0 -31
- package/dist/U4QZYPBU.cjs.map +0 -1
- package/dist/U7VZULNU.cjs.map +0 -1
- package/dist/VI6POZO4.cjs +0 -57
- package/dist/VI6POZO4.cjs.map +0 -1
- package/dist/VLSIEZLM.js.map +0 -1
- package/dist/VPKYL66J.cjs +0 -18270
- package/dist/VPKYL66J.cjs.map +0 -1
- package/dist/VZOUGVXS.cjs.map +0 -1
- package/dist/WDAYI6EQ.js +0 -61
- package/dist/WDAYI6EQ.js.map +0 -1
- package/dist/WDSPHVPJ.cjs +0 -234
- package/dist/WDSPHVPJ.cjs.map +0 -1
- package/dist/WH45T4LS.cjs +0 -83
- package/dist/WH45T4LS.cjs.map +0 -1
- package/dist/XCMLC6HI.js +0 -18267
- package/dist/XCMLC6HI.js.map +0 -1
- package/dist/XM743A75.js.map +0 -1
- package/dist/YIS2J6NC.js.map +0 -1
- package/dist/YNMZEV5X.cjs +0 -11
- package/dist/Z253B63X.cjs +0 -8
- package/dist/Z6M5WEHB.cjs +0 -21
- package/dist/Z6M5WEHB.cjs.map +0 -1
- package/dist/ZOJHQPHA.cjs +0 -48
- package/dist/ZOJHQPHA.cjs.map +0 -1
- package/dist/ZQFCLTYU.cjs +0 -65
- package/dist/ZQFCLTYU.cjs.map +0 -1
- package/dist/commands/aptos.cjs +0 -22
- package/dist/commands/aptos.cjs.map +0 -1
- package/dist/commands/aptos.d.ts +0 -3
- package/dist/commands/aptos.d.ts.map +0 -1
- package/dist/commands/aptos.js +0 -13
- package/dist/commands/aptos.js.map +0 -1
- package/dist/commands/iota.cjs +0 -23
- package/dist/commands/iota.cjs.map +0 -1
- package/dist/commands/iota.d.ts +0 -3
- package/dist/commands/iota.d.ts.map +0 -1
- package/dist/commands/iota.js +0 -14
- package/dist/commands/iota.js.map +0 -1
- package/dist/commands/starknet.cjs +0 -13
- package/dist/commands/starknet.cjs.map +0 -1
- package/dist/commands/starknet.d.ts +0 -2
- package/dist/commands/starknet.d.ts.map +0 -1
- package/dist/commands/starknet.js +0 -4
- package/dist/commands/starknet.js.map +0 -1
- package/dist/commands/sui.cjs +0 -23
- package/dist/commands/sui.cjs.map +0 -1
- package/dist/commands/sui.d.ts +0 -3
- package/dist/commands/sui.d.ts.map +0 -1
- package/dist/commands/sui.js +0 -14
- package/dist/commands/sui.js.map +0 -1
- package/dist/commands/utility/sui-like.cjs +0 -22
- package/dist/commands/utility/sui-like.cjs.map +0 -1
- package/dist/commands/utility/sui-like.d.ts +0 -16
- package/dist/commands/utility/sui-like.d.ts.map +0 -1
- package/dist/commands/utility/sui-like.js +0 -13
- package/dist/commands/utility/sui-like.js.map +0 -1
- package/dist/config/docker-images.cjs +0 -13
- package/dist/config/docker-images.cjs.map +0 -1
- package/dist/config/docker-images.d.ts +0 -156
- package/dist/config/docker-images.d.ts.map +0 -1
- package/dist/config/docker-images.js +0 -4
- package/dist/config/docker-images.js.map +0 -1
- package/dist/config/docker-images.test.cjs +0 -21
- package/dist/config/docker-images.test.cjs.map +0 -1
- package/dist/config/docker-images.test.js +0 -19
- package/dist/config/docker-images.test.js.map +0 -1
- package/dist/config/index.cjs +0 -47
- package/dist/config/index.d.ts +0 -8
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js +0 -6
- package/dist/config/tools.cjs +0 -23
- package/dist/config/tools.cjs.map +0 -1
- package/dist/config/tools.d.ts +0 -8
- package/dist/config/tools.d.ts.map +0 -1
- package/dist/config/tools.js +0 -6
- package/dist/config/tools.js.map +0 -1
- package/dist/config/version-matrices.cjs +0 -13
- package/dist/config/version-matrices.cjs.map +0 -1
- package/dist/config/version-matrices.d.ts +0 -15
- package/dist/config/version-matrices.d.ts.map +0 -1
- package/dist/config/version-matrices.js +0 -4
- package/dist/config/version-matrices.js.map +0 -1
- package/dist/scripts/generate-github-matrix.cjs.map +0 -1
- package/dist/scripts/generate-github-matrix.d.ts +0 -2
- package/dist/scripts/generate-github-matrix.d.ts.map +0 -1
- package/dist/scripts/generate-github-matrix.js.map +0 -1
- /package/dist/{config → github}/index.cjs.map +0 -0
- /package/dist/{config → github}/index.js.map +0 -0
|
@@ -1,28 +1,878 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var U7VZULNU_cjs = require('./U7VZULNU.cjs');
|
|
3
|
+
var UUMDUUBJ_cjs = require('./UUMDUUBJ.cjs');
|
|
4
|
+
var Q5L3QIKZ_cjs = require('./Q5L3QIKZ.cjs');
|
|
5
|
+
var QEUMSA6O_cjs = require('./QEUMSA6O.cjs');
|
|
6
|
+
var _3NXVR3DC_cjs = require('./3NXVR3DC.cjs');
|
|
7
|
+
var FDH37YWR_cjs = require('./FDH37YWR.cjs');
|
|
8
|
+
var _24WEKBY3_cjs = require('./24WEKBY3.cjs');
|
|
9
|
+
var crypto2 = require('crypto');
|
|
11
10
|
var stream = require('stream');
|
|
12
11
|
var os = require('os');
|
|
13
12
|
var process$1 = require('process');
|
|
14
13
|
var buffer = require('buffer');
|
|
15
|
-
var crypto = require('crypto');
|
|
16
14
|
var fs = require('fs');
|
|
17
15
|
|
|
16
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
+
|
|
18
|
+
var crypto2__default = /*#__PURE__*/_interopDefault(crypto2);
|
|
19
|
+
|
|
20
|
+
// ../../node_modules/.pnpm/@smithy+smithy-client@4.9.8/node_modules/@smithy/smithy-client/dist-es/client.js
|
|
21
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
22
|
+
|
|
23
|
+
// ../../node_modules/.pnpm/@smithy+middleware-stack@4.2.5/node_modules/@smithy/middleware-stack/dist-es/MiddlewareStack.js
|
|
24
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
25
|
+
var getAllAliases = /* @__PURE__ */ _24WEKBY3_cjs.__name((name, aliases) => {
|
|
26
|
+
const _aliases = [];
|
|
27
|
+
if (name) {
|
|
28
|
+
_aliases.push(name);
|
|
29
|
+
}
|
|
30
|
+
if (aliases) {
|
|
31
|
+
for (const alias of aliases) {
|
|
32
|
+
_aliases.push(alias);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return _aliases;
|
|
36
|
+
}, "getAllAliases");
|
|
37
|
+
var getMiddlewareNameWithAliases = /* @__PURE__ */ _24WEKBY3_cjs.__name((name, aliases) => {
|
|
38
|
+
return `${name || "anonymous"}${aliases && aliases.length > 0 ? ` (a.k.a. ${aliases.join(",")})` : ""}`;
|
|
39
|
+
}, "getMiddlewareNameWithAliases");
|
|
40
|
+
var constructStack = /* @__PURE__ */ _24WEKBY3_cjs.__name(() => {
|
|
41
|
+
let absoluteEntries = [];
|
|
42
|
+
let relativeEntries = [];
|
|
43
|
+
let identifyOnResolve = false;
|
|
44
|
+
const entriesNameSet = /* @__PURE__ */ new Set();
|
|
45
|
+
const sort = /* @__PURE__ */ _24WEKBY3_cjs.__name((entries) => entries.sort((a, b) => stepWeights[b.step] - stepWeights[a.step] || priorityWeights[b.priority || "normal"] - priorityWeights[a.priority || "normal"]), "sort");
|
|
46
|
+
const removeByName = /* @__PURE__ */ _24WEKBY3_cjs.__name((toRemove) => {
|
|
47
|
+
let isRemoved = false;
|
|
48
|
+
const filterCb = /* @__PURE__ */ _24WEKBY3_cjs.__name((entry) => {
|
|
49
|
+
const aliases = getAllAliases(entry.name, entry.aliases);
|
|
50
|
+
if (aliases.includes(toRemove)) {
|
|
51
|
+
isRemoved = true;
|
|
52
|
+
for (const alias of aliases) {
|
|
53
|
+
entriesNameSet.delete(alias);
|
|
54
|
+
}
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
return true;
|
|
58
|
+
}, "filterCb");
|
|
59
|
+
absoluteEntries = absoluteEntries.filter(filterCb);
|
|
60
|
+
relativeEntries = relativeEntries.filter(filterCb);
|
|
61
|
+
return isRemoved;
|
|
62
|
+
}, "removeByName");
|
|
63
|
+
const removeByReference = /* @__PURE__ */ _24WEKBY3_cjs.__name((toRemove) => {
|
|
64
|
+
let isRemoved = false;
|
|
65
|
+
const filterCb = /* @__PURE__ */ _24WEKBY3_cjs.__name((entry) => {
|
|
66
|
+
if (entry.middleware === toRemove) {
|
|
67
|
+
isRemoved = true;
|
|
68
|
+
for (const alias of getAllAliases(entry.name, entry.aliases)) {
|
|
69
|
+
entriesNameSet.delete(alias);
|
|
70
|
+
}
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
return true;
|
|
74
|
+
}, "filterCb");
|
|
75
|
+
absoluteEntries = absoluteEntries.filter(filterCb);
|
|
76
|
+
relativeEntries = relativeEntries.filter(filterCb);
|
|
77
|
+
return isRemoved;
|
|
78
|
+
}, "removeByReference");
|
|
79
|
+
const cloneTo = /* @__PURE__ */ _24WEKBY3_cjs.__name((toStack) => {
|
|
80
|
+
absoluteEntries.forEach((entry) => {
|
|
81
|
+
toStack.add(entry.middleware, {
|
|
82
|
+
...entry
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
relativeEntries.forEach((entry) => {
|
|
86
|
+
toStack.addRelativeTo(entry.middleware, {
|
|
87
|
+
...entry
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
toStack.identifyOnResolve?.(stack.identifyOnResolve());
|
|
91
|
+
return toStack;
|
|
92
|
+
}, "cloneTo");
|
|
93
|
+
const expandRelativeMiddlewareList = /* @__PURE__ */ _24WEKBY3_cjs.__name((from) => {
|
|
94
|
+
const expandedMiddlewareList = [];
|
|
95
|
+
from.before.forEach((entry) => {
|
|
96
|
+
if (entry.before.length === 0 && entry.after.length === 0) {
|
|
97
|
+
expandedMiddlewareList.push(entry);
|
|
98
|
+
} else {
|
|
99
|
+
expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry));
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
expandedMiddlewareList.push(from);
|
|
103
|
+
from.after.reverse().forEach((entry) => {
|
|
104
|
+
if (entry.before.length === 0 && entry.after.length === 0) {
|
|
105
|
+
expandedMiddlewareList.push(entry);
|
|
106
|
+
} else {
|
|
107
|
+
expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry));
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
return expandedMiddlewareList;
|
|
111
|
+
}, "expandRelativeMiddlewareList");
|
|
112
|
+
const getMiddlewareList = /* @__PURE__ */ _24WEKBY3_cjs.__name((debug = false) => {
|
|
113
|
+
const normalizedAbsoluteEntries = [];
|
|
114
|
+
const normalizedRelativeEntries = [];
|
|
115
|
+
const normalizedEntriesNameMap = {};
|
|
116
|
+
absoluteEntries.forEach((entry) => {
|
|
117
|
+
const normalizedEntry = {
|
|
118
|
+
...entry,
|
|
119
|
+
before: [],
|
|
120
|
+
after: []
|
|
121
|
+
};
|
|
122
|
+
for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {
|
|
123
|
+
normalizedEntriesNameMap[alias] = normalizedEntry;
|
|
124
|
+
}
|
|
125
|
+
normalizedAbsoluteEntries.push(normalizedEntry);
|
|
126
|
+
});
|
|
127
|
+
relativeEntries.forEach((entry) => {
|
|
128
|
+
const normalizedEntry = {
|
|
129
|
+
...entry,
|
|
130
|
+
before: [],
|
|
131
|
+
after: []
|
|
132
|
+
};
|
|
133
|
+
for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {
|
|
134
|
+
normalizedEntriesNameMap[alias] = normalizedEntry;
|
|
135
|
+
}
|
|
136
|
+
normalizedRelativeEntries.push(normalizedEntry);
|
|
137
|
+
});
|
|
138
|
+
normalizedRelativeEntries.forEach((entry) => {
|
|
139
|
+
if (entry.toMiddleware) {
|
|
140
|
+
const toMiddleware = normalizedEntriesNameMap[entry.toMiddleware];
|
|
141
|
+
if (toMiddleware === void 0) {
|
|
142
|
+
if (debug) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
throw new Error(`${entry.toMiddleware} is not found when adding ${getMiddlewareNameWithAliases(entry.name, entry.aliases)} middleware ${entry.relation} ${entry.toMiddleware}`);
|
|
146
|
+
}
|
|
147
|
+
if (entry.relation === "after") {
|
|
148
|
+
toMiddleware.after.push(entry);
|
|
149
|
+
}
|
|
150
|
+
if (entry.relation === "before") {
|
|
151
|
+
toMiddleware.before.push(entry);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
const mainChain = sort(normalizedAbsoluteEntries).map(expandRelativeMiddlewareList).reduce((wholeList, expandedMiddlewareList) => {
|
|
156
|
+
wholeList.push(...expandedMiddlewareList);
|
|
157
|
+
return wholeList;
|
|
158
|
+
}, []);
|
|
159
|
+
return mainChain;
|
|
160
|
+
}, "getMiddlewareList");
|
|
161
|
+
const stack = {
|
|
162
|
+
add: /* @__PURE__ */ _24WEKBY3_cjs.__name((middleware, options = {}) => {
|
|
163
|
+
const { name, override, aliases: _aliases } = options;
|
|
164
|
+
const entry = {
|
|
165
|
+
step: "initialize",
|
|
166
|
+
priority: "normal",
|
|
167
|
+
middleware,
|
|
168
|
+
...options
|
|
169
|
+
};
|
|
170
|
+
const aliases = getAllAliases(name, _aliases);
|
|
171
|
+
if (aliases.length > 0) {
|
|
172
|
+
if (aliases.some((alias) => entriesNameSet.has(alias))) {
|
|
173
|
+
if (!override) throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
|
|
174
|
+
for (const alias of aliases) {
|
|
175
|
+
const toOverrideIndex = absoluteEntries.findIndex((entry2) => entry2.name === alias || entry2.aliases?.some((a) => a === alias));
|
|
176
|
+
if (toOverrideIndex === -1) {
|
|
177
|
+
continue;
|
|
178
|
+
}
|
|
179
|
+
const toOverride = absoluteEntries[toOverrideIndex];
|
|
180
|
+
if (toOverride.step !== entry.step || entry.priority !== toOverride.priority) {
|
|
181
|
+
throw new Error(`"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware with ${toOverride.priority} priority in ${toOverride.step} step cannot be overridden by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware with ${entry.priority} priority in ${entry.step} step.`);
|
|
182
|
+
}
|
|
183
|
+
absoluteEntries.splice(toOverrideIndex, 1);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
for (const alias of aliases) {
|
|
187
|
+
entriesNameSet.add(alias);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
absoluteEntries.push(entry);
|
|
191
|
+
}, "add"),
|
|
192
|
+
addRelativeTo: /* @__PURE__ */ _24WEKBY3_cjs.__name((middleware, options) => {
|
|
193
|
+
const { name, override, aliases: _aliases } = options;
|
|
194
|
+
const entry = {
|
|
195
|
+
middleware,
|
|
196
|
+
...options
|
|
197
|
+
};
|
|
198
|
+
const aliases = getAllAliases(name, _aliases);
|
|
199
|
+
if (aliases.length > 0) {
|
|
200
|
+
if (aliases.some((alias) => entriesNameSet.has(alias))) {
|
|
201
|
+
if (!override) throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
|
|
202
|
+
for (const alias of aliases) {
|
|
203
|
+
const toOverrideIndex = relativeEntries.findIndex((entry2) => entry2.name === alias || entry2.aliases?.some((a) => a === alias));
|
|
204
|
+
if (toOverrideIndex === -1) {
|
|
205
|
+
continue;
|
|
206
|
+
}
|
|
207
|
+
const toOverride = relativeEntries[toOverrideIndex];
|
|
208
|
+
if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) {
|
|
209
|
+
throw new Error(`"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware ${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware ${entry.relation} "${entry.toMiddleware}" middleware.`);
|
|
210
|
+
}
|
|
211
|
+
relativeEntries.splice(toOverrideIndex, 1);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
for (const alias of aliases) {
|
|
215
|
+
entriesNameSet.add(alias);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
relativeEntries.push(entry);
|
|
219
|
+
}, "addRelativeTo"),
|
|
220
|
+
clone: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => cloneTo(constructStack()), "clone"),
|
|
221
|
+
use: /* @__PURE__ */ _24WEKBY3_cjs.__name((plugin) => {
|
|
222
|
+
plugin.applyToStack(stack);
|
|
223
|
+
}, "use"),
|
|
224
|
+
remove: /* @__PURE__ */ _24WEKBY3_cjs.__name((toRemove) => {
|
|
225
|
+
if (typeof toRemove === "string") return removeByName(toRemove);
|
|
226
|
+
else return removeByReference(toRemove);
|
|
227
|
+
}, "remove"),
|
|
228
|
+
removeByTag: /* @__PURE__ */ _24WEKBY3_cjs.__name((toRemove) => {
|
|
229
|
+
let isRemoved = false;
|
|
230
|
+
const filterCb = /* @__PURE__ */ _24WEKBY3_cjs.__name((entry) => {
|
|
231
|
+
const { tags, name, aliases: _aliases } = entry;
|
|
232
|
+
if (tags && tags.includes(toRemove)) {
|
|
233
|
+
const aliases = getAllAliases(name, _aliases);
|
|
234
|
+
for (const alias of aliases) {
|
|
235
|
+
entriesNameSet.delete(alias);
|
|
236
|
+
}
|
|
237
|
+
isRemoved = true;
|
|
238
|
+
return false;
|
|
239
|
+
}
|
|
240
|
+
return true;
|
|
241
|
+
}, "filterCb");
|
|
242
|
+
absoluteEntries = absoluteEntries.filter(filterCb);
|
|
243
|
+
relativeEntries = relativeEntries.filter(filterCb);
|
|
244
|
+
return isRemoved;
|
|
245
|
+
}, "removeByTag"),
|
|
246
|
+
concat: /* @__PURE__ */ _24WEKBY3_cjs.__name((from) => {
|
|
247
|
+
const cloned = cloneTo(constructStack());
|
|
248
|
+
cloned.use(from);
|
|
249
|
+
cloned.identifyOnResolve(identifyOnResolve || cloned.identifyOnResolve() || (from.identifyOnResolve?.() ?? false));
|
|
250
|
+
return cloned;
|
|
251
|
+
}, "concat"),
|
|
252
|
+
applyToStack: cloneTo,
|
|
253
|
+
identify: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => {
|
|
254
|
+
return getMiddlewareList(true).map((mw) => {
|
|
255
|
+
const step = mw.step ?? mw.relation + " " + mw.toMiddleware;
|
|
256
|
+
return getMiddlewareNameWithAliases(mw.name, mw.aliases) + " - " + step;
|
|
257
|
+
});
|
|
258
|
+
}, "identify"),
|
|
259
|
+
identifyOnResolve(toggle) {
|
|
260
|
+
if (typeof toggle === "boolean") identifyOnResolve = toggle;
|
|
261
|
+
return identifyOnResolve;
|
|
262
|
+
},
|
|
263
|
+
resolve: /* @__PURE__ */ _24WEKBY3_cjs.__name((handler, context) => {
|
|
264
|
+
for (const middleware of getMiddlewareList().map((entry) => entry.middleware).reverse()) {
|
|
265
|
+
handler = middleware(handler, context);
|
|
266
|
+
}
|
|
267
|
+
if (identifyOnResolve) {
|
|
268
|
+
console.log(stack.identify());
|
|
269
|
+
}
|
|
270
|
+
return handler;
|
|
271
|
+
}, "resolve")
|
|
272
|
+
};
|
|
273
|
+
return stack;
|
|
274
|
+
}, "constructStack");
|
|
275
|
+
var stepWeights = {
|
|
276
|
+
initialize: 5,
|
|
277
|
+
serialize: 4,
|
|
278
|
+
build: 3,
|
|
279
|
+
finalizeRequest: 2,
|
|
280
|
+
deserialize: 1
|
|
281
|
+
};
|
|
282
|
+
var priorityWeights = {
|
|
283
|
+
high: 3,
|
|
284
|
+
normal: 2,
|
|
285
|
+
low: 1
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
// ../../node_modules/.pnpm/@smithy+smithy-client@4.9.8/node_modules/@smithy/smithy-client/dist-es/client.js
|
|
289
|
+
var Client = class {
|
|
290
|
+
static {
|
|
291
|
+
_24WEKBY3_cjs.__name(this, "Client");
|
|
292
|
+
}
|
|
293
|
+
config;
|
|
294
|
+
middlewareStack = constructStack();
|
|
295
|
+
initConfig;
|
|
296
|
+
handlers;
|
|
297
|
+
constructor(config) {
|
|
298
|
+
this.config = config;
|
|
299
|
+
}
|
|
300
|
+
send(command, optionsOrCb, cb) {
|
|
301
|
+
const options = typeof optionsOrCb !== "function" ? optionsOrCb : void 0;
|
|
302
|
+
const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb;
|
|
303
|
+
const useHandlerCache = options === void 0 && this.config.cacheMiddleware === true;
|
|
304
|
+
let handler;
|
|
305
|
+
if (useHandlerCache) {
|
|
306
|
+
if (!this.handlers) {
|
|
307
|
+
this.handlers = /* @__PURE__ */ new WeakMap();
|
|
308
|
+
}
|
|
309
|
+
const handlers = this.handlers;
|
|
310
|
+
if (handlers.has(command.constructor)) {
|
|
311
|
+
handler = handlers.get(command.constructor);
|
|
312
|
+
} else {
|
|
313
|
+
handler = command.resolveMiddleware(this.middlewareStack, this.config, options);
|
|
314
|
+
handlers.set(command.constructor, handler);
|
|
315
|
+
}
|
|
316
|
+
} else {
|
|
317
|
+
delete this.handlers;
|
|
318
|
+
handler = command.resolveMiddleware(this.middlewareStack, this.config, options);
|
|
319
|
+
}
|
|
320
|
+
if (callback) {
|
|
321
|
+
handler(command).then((result) => callback(null, result.output), (err) => callback(err)).catch(() => {
|
|
322
|
+
});
|
|
323
|
+
} else {
|
|
324
|
+
return handler(command).then((result) => result.output);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
destroy() {
|
|
328
|
+
this.config?.requestHandler?.destroy?.();
|
|
329
|
+
delete this.handlers;
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
// ../../node_modules/.pnpm/@smithy+smithy-client@4.9.8/node_modules/@smithy/smithy-client/dist-es/command.js
|
|
334
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
335
|
+
|
|
336
|
+
// ../../node_modules/.pnpm/@smithy+types@4.9.0/node_modules/@smithy/types/dist-es/endpoint.js
|
|
337
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
338
|
+
var EndpointURLScheme;
|
|
339
|
+
(function(EndpointURLScheme2) {
|
|
340
|
+
EndpointURLScheme2["HTTP"] = "http";
|
|
341
|
+
EndpointURLScheme2["HTTPS"] = "https";
|
|
342
|
+
})(EndpointURLScheme || (EndpointURLScheme = {}));
|
|
343
|
+
|
|
344
|
+
// ../../node_modules/.pnpm/@smithy+types@4.9.0/node_modules/@smithy/types/dist-es/extensions/index.js
|
|
345
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
346
|
+
|
|
347
|
+
// ../../node_modules/.pnpm/@smithy+types@4.9.0/node_modules/@smithy/types/dist-es/extensions/checksum.js
|
|
348
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
349
|
+
var AlgorithmId;
|
|
350
|
+
(function(AlgorithmId2) {
|
|
351
|
+
AlgorithmId2["MD5"] = "md5";
|
|
352
|
+
AlgorithmId2["CRC32"] = "crc32";
|
|
353
|
+
AlgorithmId2["CRC32C"] = "crc32c";
|
|
354
|
+
AlgorithmId2["SHA1"] = "sha1";
|
|
355
|
+
AlgorithmId2["SHA256"] = "sha256";
|
|
356
|
+
})(AlgorithmId || (AlgorithmId = {}));
|
|
357
|
+
|
|
358
|
+
// ../../node_modules/.pnpm/@smithy+types@4.9.0/node_modules/@smithy/types/dist-es/middleware.js
|
|
359
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
360
|
+
var SMITHY_CONTEXT_KEY = "__smithy_context";
|
|
361
|
+
|
|
362
|
+
// ../../node_modules/.pnpm/@smithy+smithy-client@4.9.8/node_modules/@smithy/smithy-client/dist-es/schemaLogFilter.js
|
|
363
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
364
|
+
|
|
365
|
+
// ../../node_modules/.pnpm/@smithy+core@3.18.5/node_modules/@smithy/core/dist-es/submodules/schema/deref.js
|
|
366
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
367
|
+
var deref = /* @__PURE__ */ _24WEKBY3_cjs.__name((schemaRef) => {
|
|
368
|
+
if (typeof schemaRef === "function") {
|
|
369
|
+
return schemaRef();
|
|
370
|
+
}
|
|
371
|
+
return schemaRef;
|
|
372
|
+
}, "deref");
|
|
373
|
+
|
|
374
|
+
// ../../node_modules/.pnpm/@smithy+protocol-http@5.3.5/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js
|
|
375
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
376
|
+
var getHttpHandlerExtensionConfiguration = /* @__PURE__ */ _24WEKBY3_cjs.__name((runtimeConfig) => {
|
|
377
|
+
return {
|
|
378
|
+
setHttpHandler(handler) {
|
|
379
|
+
runtimeConfig.httpHandler = handler;
|
|
380
|
+
},
|
|
381
|
+
httpHandler() {
|
|
382
|
+
return runtimeConfig.httpHandler;
|
|
383
|
+
},
|
|
384
|
+
updateHttpClientConfig(key, value) {
|
|
385
|
+
runtimeConfig.httpHandler?.updateHttpClientConfig(key, value);
|
|
386
|
+
},
|
|
387
|
+
httpHandlerConfigs() {
|
|
388
|
+
return runtimeConfig.httpHandler.httpHandlerConfigs();
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
}, "getHttpHandlerExtensionConfiguration");
|
|
392
|
+
var resolveHttpHandlerRuntimeConfig = /* @__PURE__ */ _24WEKBY3_cjs.__name((httpHandlerExtensionConfiguration) => {
|
|
393
|
+
return {
|
|
394
|
+
httpHandler: httpHandlerExtensionConfiguration.httpHandler()
|
|
395
|
+
};
|
|
396
|
+
}, "resolveHttpHandlerRuntimeConfig");
|
|
397
|
+
|
|
398
|
+
// ../../node_modules/.pnpm/@smithy+util-middleware@4.2.5/node_modules/@smithy/util-middleware/dist-es/getSmithyContext.js
|
|
399
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
400
|
+
var getSmithyContext = /* @__PURE__ */ _24WEKBY3_cjs.__name((context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {}), "getSmithyContext");
|
|
401
|
+
|
|
402
|
+
// ../../node_modules/.pnpm/@smithy+util-middleware@4.2.5/node_modules/@smithy/util-middleware/dist-es/normalizeProvider.js
|
|
403
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
404
|
+
var normalizeProvider = /* @__PURE__ */ _24WEKBY3_cjs.__name((input) => {
|
|
405
|
+
if (typeof input === "function") return input;
|
|
406
|
+
const promisified = Promise.resolve(input);
|
|
407
|
+
return () => promisified;
|
|
408
|
+
}, "normalizeProvider");
|
|
409
|
+
|
|
410
|
+
// ../../node_modules/.pnpm/@smithy+core@3.18.5/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js
|
|
411
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
412
|
+
|
|
413
|
+
// ../../node_modules/.pnpm/@smithy+core@3.18.5/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js
|
|
414
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
415
|
+
function translateTraits(indicator) {
|
|
416
|
+
if (typeof indicator === "object") {
|
|
417
|
+
return indicator;
|
|
418
|
+
}
|
|
419
|
+
indicator = indicator | 0;
|
|
420
|
+
const traits = {};
|
|
421
|
+
let i = 0;
|
|
422
|
+
for (const trait of [
|
|
423
|
+
"httpLabel",
|
|
424
|
+
"idempotent",
|
|
425
|
+
"idempotencyToken",
|
|
426
|
+
"sensitive",
|
|
427
|
+
"httpPayload",
|
|
428
|
+
"httpResponseCode",
|
|
429
|
+
"httpQueryParams"
|
|
430
|
+
]) {
|
|
431
|
+
if ((indicator >> i++ & 1) === 1) {
|
|
432
|
+
traits[trait] = 1;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
return traits;
|
|
436
|
+
}
|
|
437
|
+
_24WEKBY3_cjs.__name(translateTraits, "translateTraits");
|
|
438
|
+
|
|
439
|
+
// ../../node_modules/.pnpm/@smithy+core@3.18.5/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js
|
|
440
|
+
var NormalizedSchema = class _NormalizedSchema {
|
|
441
|
+
static {
|
|
442
|
+
_24WEKBY3_cjs.__name(this, "NormalizedSchema");
|
|
443
|
+
}
|
|
444
|
+
ref;
|
|
445
|
+
memberName;
|
|
446
|
+
static symbol = Symbol.for("@smithy/nor");
|
|
447
|
+
symbol = _NormalizedSchema.symbol;
|
|
448
|
+
name;
|
|
449
|
+
schema;
|
|
450
|
+
_isMemberSchema;
|
|
451
|
+
traits;
|
|
452
|
+
memberTraits;
|
|
453
|
+
normalizedTraits;
|
|
454
|
+
constructor(ref, memberName) {
|
|
455
|
+
this.ref = ref;
|
|
456
|
+
this.memberName = memberName;
|
|
457
|
+
const traitStack = [];
|
|
458
|
+
let _ref = ref;
|
|
459
|
+
let schema = ref;
|
|
460
|
+
this._isMemberSchema = false;
|
|
461
|
+
while (isMemberSchema(_ref)) {
|
|
462
|
+
traitStack.push(_ref[1]);
|
|
463
|
+
_ref = _ref[0];
|
|
464
|
+
schema = deref(_ref);
|
|
465
|
+
this._isMemberSchema = true;
|
|
466
|
+
}
|
|
467
|
+
if (traitStack.length > 0) {
|
|
468
|
+
this.memberTraits = {};
|
|
469
|
+
for (let i = traitStack.length - 1; i >= 0; --i) {
|
|
470
|
+
const traitSet = traitStack[i];
|
|
471
|
+
Object.assign(this.memberTraits, translateTraits(traitSet));
|
|
472
|
+
}
|
|
473
|
+
} else {
|
|
474
|
+
this.memberTraits = 0;
|
|
475
|
+
}
|
|
476
|
+
if (schema instanceof _NormalizedSchema) {
|
|
477
|
+
const computedMemberTraits = this.memberTraits;
|
|
478
|
+
Object.assign(this, schema);
|
|
479
|
+
this.memberTraits = Object.assign({}, computedMemberTraits, schema.getMemberTraits(), this.getMemberTraits());
|
|
480
|
+
this.normalizedTraits = void 0;
|
|
481
|
+
this.memberName = memberName ?? schema.memberName;
|
|
482
|
+
return;
|
|
483
|
+
}
|
|
484
|
+
this.schema = deref(schema);
|
|
485
|
+
if (isStaticSchema(this.schema)) {
|
|
486
|
+
this.name = `${this.schema[1]}#${this.schema[2]}`;
|
|
487
|
+
this.traits = this.schema[3];
|
|
488
|
+
} else {
|
|
489
|
+
this.name = this.memberName ?? String(schema);
|
|
490
|
+
this.traits = 0;
|
|
491
|
+
}
|
|
492
|
+
if (this._isMemberSchema && !memberName) {
|
|
493
|
+
throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`);
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
static [Symbol.hasInstance](lhs) {
|
|
497
|
+
const isPrototype = this.prototype.isPrototypeOf(lhs);
|
|
498
|
+
if (!isPrototype && typeof lhs === "object" && lhs !== null) {
|
|
499
|
+
const ns = lhs;
|
|
500
|
+
return ns.symbol === this.symbol;
|
|
501
|
+
}
|
|
502
|
+
return isPrototype;
|
|
503
|
+
}
|
|
504
|
+
static of(ref) {
|
|
505
|
+
const sc = deref(ref);
|
|
506
|
+
if (sc instanceof _NormalizedSchema) {
|
|
507
|
+
return sc;
|
|
508
|
+
}
|
|
509
|
+
if (isMemberSchema(sc)) {
|
|
510
|
+
const [ns, traits] = sc;
|
|
511
|
+
if (ns instanceof _NormalizedSchema) {
|
|
512
|
+
Object.assign(ns.getMergedTraits(), translateTraits(traits));
|
|
513
|
+
return ns;
|
|
514
|
+
}
|
|
515
|
+
throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(ref, null, 2)}.`);
|
|
516
|
+
}
|
|
517
|
+
return new _NormalizedSchema(sc);
|
|
518
|
+
}
|
|
519
|
+
getSchema() {
|
|
520
|
+
const sc = this.schema;
|
|
521
|
+
if (sc[0] === 0) {
|
|
522
|
+
return sc[4];
|
|
523
|
+
}
|
|
524
|
+
return sc;
|
|
525
|
+
}
|
|
526
|
+
getName(withNamespace = false) {
|
|
527
|
+
const { name } = this;
|
|
528
|
+
const short = !withNamespace && name && name.includes("#");
|
|
529
|
+
return short ? name.split("#")[1] : name || void 0;
|
|
530
|
+
}
|
|
531
|
+
getMemberName() {
|
|
532
|
+
return this.memberName;
|
|
533
|
+
}
|
|
534
|
+
isMemberSchema() {
|
|
535
|
+
return this._isMemberSchema;
|
|
536
|
+
}
|
|
537
|
+
isListSchema() {
|
|
538
|
+
const sc = this.getSchema();
|
|
539
|
+
return typeof sc === "number" ? sc >= 64 && sc < 128 : sc[0] === 1;
|
|
540
|
+
}
|
|
541
|
+
isMapSchema() {
|
|
542
|
+
const sc = this.getSchema();
|
|
543
|
+
return typeof sc === "number" ? sc >= 128 && sc <= 255 : sc[0] === 2;
|
|
544
|
+
}
|
|
545
|
+
isStructSchema() {
|
|
546
|
+
const sc = this.getSchema();
|
|
547
|
+
return sc[0] === 3 || sc[0] === -3;
|
|
548
|
+
}
|
|
549
|
+
isBlobSchema() {
|
|
550
|
+
const sc = this.getSchema();
|
|
551
|
+
return sc === 21 || sc === 42;
|
|
552
|
+
}
|
|
553
|
+
isTimestampSchema() {
|
|
554
|
+
const sc = this.getSchema();
|
|
555
|
+
return typeof sc === "number" && sc >= 4 && sc <= 7;
|
|
556
|
+
}
|
|
557
|
+
isUnitSchema() {
|
|
558
|
+
return this.getSchema() === "unit";
|
|
559
|
+
}
|
|
560
|
+
isDocumentSchema() {
|
|
561
|
+
return this.getSchema() === 15;
|
|
562
|
+
}
|
|
563
|
+
isStringSchema() {
|
|
564
|
+
return this.getSchema() === 0;
|
|
565
|
+
}
|
|
566
|
+
isBooleanSchema() {
|
|
567
|
+
return this.getSchema() === 2;
|
|
568
|
+
}
|
|
569
|
+
isNumericSchema() {
|
|
570
|
+
return this.getSchema() === 1;
|
|
571
|
+
}
|
|
572
|
+
isBigIntegerSchema() {
|
|
573
|
+
return this.getSchema() === 17;
|
|
574
|
+
}
|
|
575
|
+
isBigDecimalSchema() {
|
|
576
|
+
return this.getSchema() === 19;
|
|
577
|
+
}
|
|
578
|
+
isStreaming() {
|
|
579
|
+
const { streaming } = this.getMergedTraits();
|
|
580
|
+
return !!streaming || this.getSchema() === 42;
|
|
581
|
+
}
|
|
582
|
+
isIdempotencyToken() {
|
|
583
|
+
const match = /* @__PURE__ */ _24WEKBY3_cjs.__name((traits2) => (traits2 & 4) === 4 || !!traits2?.idempotencyToken, "match");
|
|
584
|
+
const { normalizedTraits, traits, memberTraits } = this;
|
|
585
|
+
return match(normalizedTraits) || match(traits) || match(memberTraits);
|
|
586
|
+
}
|
|
587
|
+
getMergedTraits() {
|
|
588
|
+
return this.normalizedTraits ?? (this.normalizedTraits = {
|
|
589
|
+
...this.getOwnTraits(),
|
|
590
|
+
...this.getMemberTraits()
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
getMemberTraits() {
|
|
594
|
+
return translateTraits(this.memberTraits);
|
|
595
|
+
}
|
|
596
|
+
getOwnTraits() {
|
|
597
|
+
return translateTraits(this.traits);
|
|
598
|
+
}
|
|
599
|
+
getKeySchema() {
|
|
600
|
+
const [isDoc, isMap] = [
|
|
601
|
+
this.isDocumentSchema(),
|
|
602
|
+
this.isMapSchema()
|
|
603
|
+
];
|
|
604
|
+
if (!isDoc && !isMap) {
|
|
605
|
+
throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`);
|
|
606
|
+
}
|
|
607
|
+
const schema = this.getSchema();
|
|
608
|
+
const memberSchema = isDoc ? 15 : schema[4] ?? 0;
|
|
609
|
+
return member([
|
|
610
|
+
memberSchema,
|
|
611
|
+
0
|
|
612
|
+
], "key");
|
|
613
|
+
}
|
|
614
|
+
getValueSchema() {
|
|
615
|
+
const sc = this.getSchema();
|
|
616
|
+
const [isDoc, isMap, isList] = [
|
|
617
|
+
this.isDocumentSchema(),
|
|
618
|
+
this.isMapSchema(),
|
|
619
|
+
this.isListSchema()
|
|
620
|
+
];
|
|
621
|
+
const memberSchema = typeof sc === "number" ? 63 & sc : sc && typeof sc === "object" && (isMap || isList) ? sc[3 + sc[0]] : isDoc ? 15 : void 0;
|
|
622
|
+
if (memberSchema != null) {
|
|
623
|
+
return member([
|
|
624
|
+
memberSchema,
|
|
625
|
+
0
|
|
626
|
+
], isMap ? "value" : "member");
|
|
627
|
+
}
|
|
628
|
+
throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`);
|
|
629
|
+
}
|
|
630
|
+
getMemberSchema(memberName) {
|
|
631
|
+
const struct = this.getSchema();
|
|
632
|
+
if (this.isStructSchema() && struct[4].includes(memberName)) {
|
|
633
|
+
const i = struct[4].indexOf(memberName);
|
|
634
|
+
const memberSchema = struct[5][i];
|
|
635
|
+
return member(isMemberSchema(memberSchema) ? memberSchema : [
|
|
636
|
+
memberSchema,
|
|
637
|
+
0
|
|
638
|
+
], memberName);
|
|
639
|
+
}
|
|
640
|
+
if (this.isDocumentSchema()) {
|
|
641
|
+
return member([
|
|
642
|
+
15,
|
|
643
|
+
0
|
|
644
|
+
], memberName);
|
|
645
|
+
}
|
|
646
|
+
throw new Error(`@smithy/core/schema - ${this.getName(true)} has no no member=${memberName}.`);
|
|
647
|
+
}
|
|
648
|
+
getMemberSchemas() {
|
|
649
|
+
const buffer = {};
|
|
650
|
+
try {
|
|
651
|
+
for (const [k, v] of this.structIterator()) {
|
|
652
|
+
buffer[k] = v;
|
|
653
|
+
}
|
|
654
|
+
} catch (ignored) {
|
|
655
|
+
}
|
|
656
|
+
return buffer;
|
|
657
|
+
}
|
|
658
|
+
getEventStreamMember() {
|
|
659
|
+
if (this.isStructSchema()) {
|
|
660
|
+
for (const [memberName, memberSchema] of this.structIterator()) {
|
|
661
|
+
if (memberSchema.isStreaming() && memberSchema.isStructSchema()) {
|
|
662
|
+
return memberName;
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
return "";
|
|
667
|
+
}
|
|
668
|
+
*structIterator() {
|
|
669
|
+
if (this.isUnitSchema()) {
|
|
670
|
+
return;
|
|
671
|
+
}
|
|
672
|
+
if (!this.isStructSchema()) {
|
|
673
|
+
throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");
|
|
674
|
+
}
|
|
675
|
+
const struct = this.getSchema();
|
|
676
|
+
for (let i = 0; i < struct[4].length; ++i) {
|
|
677
|
+
yield [
|
|
678
|
+
struct[4][i],
|
|
679
|
+
member([
|
|
680
|
+
struct[5][i],
|
|
681
|
+
0
|
|
682
|
+
], struct[4][i])
|
|
683
|
+
];
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
};
|
|
687
|
+
function member(memberSchema, memberName) {
|
|
688
|
+
if (memberSchema instanceof NormalizedSchema) {
|
|
689
|
+
return Object.assign(memberSchema, {
|
|
690
|
+
memberName,
|
|
691
|
+
_isMemberSchema: true
|
|
692
|
+
});
|
|
693
|
+
}
|
|
694
|
+
const internalCtorAccess = NormalizedSchema;
|
|
695
|
+
return new internalCtorAccess(memberSchema, memberName);
|
|
696
|
+
}
|
|
697
|
+
_24WEKBY3_cjs.__name(member, "member");
|
|
698
|
+
var isMemberSchema = /* @__PURE__ */ _24WEKBY3_cjs.__name((sc) => Array.isArray(sc) && sc.length === 2, "isMemberSchema");
|
|
699
|
+
var isStaticSchema = /* @__PURE__ */ _24WEKBY3_cjs.__name((sc) => Array.isArray(sc) && sc.length >= 5, "isStaticSchema");
|
|
700
|
+
|
|
701
|
+
// ../../node_modules/.pnpm/@smithy+smithy-client@4.9.8/node_modules/@smithy/smithy-client/dist-es/schemaLogFilter.js
|
|
702
|
+
var SENSITIVE_STRING = "***SensitiveInformation***";
|
|
703
|
+
function schemaLogFilter(schema, data) {
|
|
704
|
+
if (data == null) {
|
|
705
|
+
return data;
|
|
706
|
+
}
|
|
707
|
+
const ns = NormalizedSchema.of(schema);
|
|
708
|
+
if (ns.getMergedTraits().sensitive) {
|
|
709
|
+
return SENSITIVE_STRING;
|
|
710
|
+
}
|
|
711
|
+
if (ns.isListSchema()) {
|
|
712
|
+
const isSensitive = !!ns.getValueSchema().getMergedTraits().sensitive;
|
|
713
|
+
if (isSensitive) {
|
|
714
|
+
return SENSITIVE_STRING;
|
|
715
|
+
}
|
|
716
|
+
} else if (ns.isMapSchema()) {
|
|
717
|
+
const isSensitive = !!ns.getKeySchema().getMergedTraits().sensitive || !!ns.getValueSchema().getMergedTraits().sensitive;
|
|
718
|
+
if (isSensitive) {
|
|
719
|
+
return SENSITIVE_STRING;
|
|
720
|
+
}
|
|
721
|
+
} else if (ns.isStructSchema() && typeof data === "object") {
|
|
722
|
+
const object = data;
|
|
723
|
+
const newObject = {};
|
|
724
|
+
for (const [member2, memberNs] of ns.structIterator()) {
|
|
725
|
+
if (object[member2] != null) {
|
|
726
|
+
newObject[member2] = schemaLogFilter(memberNs, object[member2]);
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
return newObject;
|
|
730
|
+
}
|
|
731
|
+
return data;
|
|
732
|
+
}
|
|
733
|
+
_24WEKBY3_cjs.__name(schemaLogFilter, "schemaLogFilter");
|
|
734
|
+
|
|
735
|
+
// ../../node_modules/.pnpm/@smithy+smithy-client@4.9.8/node_modules/@smithy/smithy-client/dist-es/command.js
|
|
736
|
+
var Command = class {
|
|
737
|
+
static {
|
|
738
|
+
_24WEKBY3_cjs.__name(this, "Command");
|
|
739
|
+
}
|
|
740
|
+
middlewareStack = constructStack();
|
|
741
|
+
schema;
|
|
742
|
+
static classBuilder() {
|
|
743
|
+
return new ClassBuilder();
|
|
744
|
+
}
|
|
745
|
+
resolveMiddlewareWithContext(clientStack, configuration, options, { middlewareFn, clientName, commandName, inputFilterSensitiveLog, outputFilterSensitiveLog, smithyContext, additionalContext, CommandCtor }) {
|
|
746
|
+
for (const mw of middlewareFn.bind(this)(CommandCtor, clientStack, configuration, options)) {
|
|
747
|
+
this.middlewareStack.use(mw);
|
|
748
|
+
}
|
|
749
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
750
|
+
const { logger } = configuration;
|
|
751
|
+
const handlerExecutionContext = {
|
|
752
|
+
logger,
|
|
753
|
+
clientName,
|
|
754
|
+
commandName,
|
|
755
|
+
inputFilterSensitiveLog,
|
|
756
|
+
outputFilterSensitiveLog,
|
|
757
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
758
|
+
commandInstance: this,
|
|
759
|
+
...smithyContext
|
|
760
|
+
},
|
|
761
|
+
...additionalContext
|
|
762
|
+
};
|
|
763
|
+
const { requestHandler } = configuration;
|
|
764
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
765
|
+
}
|
|
766
|
+
};
|
|
767
|
+
var ClassBuilder = class ClassBuilder2 {
|
|
768
|
+
static {
|
|
769
|
+
_24WEKBY3_cjs.__name(this, "ClassBuilder");
|
|
770
|
+
}
|
|
771
|
+
_init = /* @__PURE__ */ _24WEKBY3_cjs.__name(() => {
|
|
772
|
+
}, "_init");
|
|
773
|
+
_ep = {};
|
|
774
|
+
_middlewareFn = /* @__PURE__ */ _24WEKBY3_cjs.__name(() => [], "_middlewareFn");
|
|
775
|
+
_commandName = "";
|
|
776
|
+
_clientName = "";
|
|
777
|
+
_additionalContext = {};
|
|
778
|
+
_smithyContext = {};
|
|
779
|
+
_inputFilterSensitiveLog = void 0;
|
|
780
|
+
_outputFilterSensitiveLog = void 0;
|
|
781
|
+
_serializer = null;
|
|
782
|
+
_deserializer = null;
|
|
783
|
+
_operationSchema;
|
|
784
|
+
init(cb) {
|
|
785
|
+
this._init = cb;
|
|
786
|
+
}
|
|
787
|
+
ep(endpointParameterInstructions) {
|
|
788
|
+
this._ep = endpointParameterInstructions;
|
|
789
|
+
return this;
|
|
790
|
+
}
|
|
791
|
+
m(middlewareSupplier) {
|
|
792
|
+
this._middlewareFn = middlewareSupplier;
|
|
793
|
+
return this;
|
|
794
|
+
}
|
|
795
|
+
s(service, operation, smithyContext = {}) {
|
|
796
|
+
this._smithyContext = {
|
|
797
|
+
service,
|
|
798
|
+
operation,
|
|
799
|
+
...smithyContext
|
|
800
|
+
};
|
|
801
|
+
return this;
|
|
802
|
+
}
|
|
803
|
+
c(additionalContext = {}) {
|
|
804
|
+
this._additionalContext = additionalContext;
|
|
805
|
+
return this;
|
|
806
|
+
}
|
|
807
|
+
n(clientName, commandName) {
|
|
808
|
+
this._clientName = clientName;
|
|
809
|
+
this._commandName = commandName;
|
|
810
|
+
return this;
|
|
811
|
+
}
|
|
812
|
+
f(inputFilter = (_) => _, outputFilter = (_) => _) {
|
|
813
|
+
this._inputFilterSensitiveLog = inputFilter;
|
|
814
|
+
this._outputFilterSensitiveLog = outputFilter;
|
|
815
|
+
return this;
|
|
816
|
+
}
|
|
817
|
+
ser(serializer) {
|
|
818
|
+
this._serializer = serializer;
|
|
819
|
+
return this;
|
|
820
|
+
}
|
|
821
|
+
de(deserializer) {
|
|
822
|
+
this._deserializer = deserializer;
|
|
823
|
+
return this;
|
|
824
|
+
}
|
|
825
|
+
sc(operation) {
|
|
826
|
+
this._operationSchema = operation;
|
|
827
|
+
this._smithyContext.operationSchema = operation;
|
|
828
|
+
return this;
|
|
829
|
+
}
|
|
830
|
+
build() {
|
|
831
|
+
const closure = this;
|
|
832
|
+
let CommandRef;
|
|
833
|
+
return CommandRef = class extends Command {
|
|
834
|
+
static {
|
|
835
|
+
_24WEKBY3_cjs.__name(this, "CommandRef");
|
|
836
|
+
}
|
|
837
|
+
input;
|
|
838
|
+
static getEndpointParameterInstructions() {
|
|
839
|
+
return closure._ep;
|
|
840
|
+
}
|
|
841
|
+
constructor(...[input]) {
|
|
842
|
+
super();
|
|
843
|
+
this.input = input ?? {};
|
|
844
|
+
closure._init(this);
|
|
845
|
+
this.schema = closure._operationSchema;
|
|
846
|
+
}
|
|
847
|
+
resolveMiddleware(stack, configuration, options) {
|
|
848
|
+
const op = closure._operationSchema;
|
|
849
|
+
const input = op?.[4] ?? op?.input;
|
|
850
|
+
const output = op?.[5] ?? op?.output;
|
|
851
|
+
return this.resolveMiddlewareWithContext(stack, configuration, options, {
|
|
852
|
+
CommandCtor: CommandRef,
|
|
853
|
+
middlewareFn: closure._middlewareFn,
|
|
854
|
+
clientName: closure._clientName,
|
|
855
|
+
commandName: closure._commandName,
|
|
856
|
+
inputFilterSensitiveLog: closure._inputFilterSensitiveLog ?? (op ? schemaLogFilter.bind(null, input) : (_) => _),
|
|
857
|
+
outputFilterSensitiveLog: closure._outputFilterSensitiveLog ?? (op ? schemaLogFilter.bind(null, output) : (_) => _),
|
|
858
|
+
smithyContext: closure._smithyContext,
|
|
859
|
+
additionalContext: closure._additionalContext
|
|
860
|
+
});
|
|
861
|
+
}
|
|
862
|
+
serialize = closure._serializer;
|
|
863
|
+
deserialize = closure._deserializer;
|
|
864
|
+
};
|
|
865
|
+
}
|
|
866
|
+
};
|
|
867
|
+
|
|
18
868
|
// ../../node_modules/.pnpm/@aws-sdk+middleware-host-header@3.873.0/node_modules/@aws-sdk/middleware-host-header/dist-es/index.js
|
|
19
|
-
|
|
869
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
20
870
|
function resolveHostHeaderConfig(input) {
|
|
21
871
|
return input;
|
|
22
872
|
}
|
|
23
|
-
|
|
24
|
-
var hostHeaderMiddleware = /* @__PURE__ */
|
|
25
|
-
if (!
|
|
873
|
+
_24WEKBY3_cjs.__name(resolveHostHeaderConfig, "resolveHostHeaderConfig");
|
|
874
|
+
var hostHeaderMiddleware = /* @__PURE__ */ _24WEKBY3_cjs.__name((options) => (next) => async (args) => {
|
|
875
|
+
if (!Q5L3QIKZ_cjs.HttpRequest.isInstance(args.request)) return next(args);
|
|
26
876
|
const { request } = args;
|
|
27
877
|
const { handlerProtocol = "" } = options.requestHandler.metadata || {};
|
|
28
878
|
if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) {
|
|
@@ -44,15 +894,15 @@ var hostHeaderMiddlewareOptions = {
|
|
|
44
894
|
],
|
|
45
895
|
override: true
|
|
46
896
|
};
|
|
47
|
-
var getHostHeaderPlugin = /* @__PURE__ */
|
|
48
|
-
applyToStack: /* @__PURE__ */
|
|
897
|
+
var getHostHeaderPlugin = /* @__PURE__ */ _24WEKBY3_cjs.__name((options) => ({
|
|
898
|
+
applyToStack: /* @__PURE__ */ _24WEKBY3_cjs.__name((clientStack) => {
|
|
49
899
|
clientStack.add(hostHeaderMiddleware(options), hostHeaderMiddlewareOptions);
|
|
50
900
|
}, "applyToStack")
|
|
51
901
|
}), "getHostHeaderPlugin");
|
|
52
902
|
|
|
53
903
|
// ../../node_modules/.pnpm/@aws-sdk+middleware-logger@3.876.0/node_modules/@aws-sdk/middleware-logger/dist-es/loggerMiddleware.js
|
|
54
|
-
|
|
55
|
-
var loggerMiddleware = /* @__PURE__ */
|
|
904
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
905
|
+
var loggerMiddleware = /* @__PURE__ */ _24WEKBY3_cjs.__name(() => (next, context) => async (args) => {
|
|
56
906
|
try {
|
|
57
907
|
const response = await next(args);
|
|
58
908
|
const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context;
|
|
@@ -90,23 +940,23 @@ var loggerMiddlewareOptions = {
|
|
|
90
940
|
step: "initialize",
|
|
91
941
|
override: true
|
|
92
942
|
};
|
|
93
|
-
var getLoggerPlugin = /* @__PURE__ */
|
|
94
|
-
applyToStack: /* @__PURE__ */
|
|
943
|
+
var getLoggerPlugin = /* @__PURE__ */ _24WEKBY3_cjs.__name((options) => ({
|
|
944
|
+
applyToStack: /* @__PURE__ */ _24WEKBY3_cjs.__name((clientStack) => {
|
|
95
945
|
clientStack.add(loggerMiddleware(), loggerMiddlewareOptions);
|
|
96
946
|
}, "applyToStack")
|
|
97
947
|
}), "getLoggerPlugin");
|
|
98
948
|
|
|
99
949
|
// ../../node_modules/.pnpm/@aws-sdk+middleware-logger@3.876.0/node_modules/@aws-sdk/middleware-logger/dist-es/index.js
|
|
100
|
-
|
|
950
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
101
951
|
|
|
102
952
|
// ../../node_modules/.pnpm/@aws-sdk+middleware-recursion-detection@3.873.0/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js
|
|
103
|
-
|
|
953
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
104
954
|
var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
|
|
105
955
|
var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
|
|
106
956
|
var ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
|
|
107
|
-
var recursionDetectionMiddleware = /* @__PURE__ */
|
|
957
|
+
var recursionDetectionMiddleware = /* @__PURE__ */ _24WEKBY3_cjs.__name((options) => (next) => async (args) => {
|
|
108
958
|
const { request } = args;
|
|
109
|
-
if (!
|
|
959
|
+
if (!Q5L3QIKZ_cjs.HttpRequest.isInstance(request) || options.runtime !== "node") {
|
|
110
960
|
return next(args);
|
|
111
961
|
}
|
|
112
962
|
const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === TRACE_ID_HEADER_NAME.toLowerCase()) ?? TRACE_ID_HEADER_NAME;
|
|
@@ -115,7 +965,7 @@ var recursionDetectionMiddleware = /* @__PURE__ */ U7VZULNU_cjs.__name((options)
|
|
|
115
965
|
}
|
|
116
966
|
const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME];
|
|
117
967
|
const traceId = process.env[ENV_TRACE_ID];
|
|
118
|
-
const nonEmptyString = /* @__PURE__ */
|
|
968
|
+
const nonEmptyString = /* @__PURE__ */ _24WEKBY3_cjs.__name((str) => typeof str === "string" && str.length > 0, "nonEmptyString");
|
|
119
969
|
if (nonEmptyString(functionName) && nonEmptyString(traceId)) {
|
|
120
970
|
request.headers[TRACE_ID_HEADER_NAME] = traceId;
|
|
121
971
|
}
|
|
@@ -133,36 +983,21 @@ var addRecursionDetectionMiddlewareOptions = {
|
|
|
133
983
|
override: true,
|
|
134
984
|
priority: "low"
|
|
135
985
|
};
|
|
136
|
-
var getRecursionDetectionPlugin = /* @__PURE__ */
|
|
137
|
-
applyToStack: /* @__PURE__ */
|
|
986
|
+
var getRecursionDetectionPlugin = /* @__PURE__ */ _24WEKBY3_cjs.__name((options) => ({
|
|
987
|
+
applyToStack: /* @__PURE__ */ _24WEKBY3_cjs.__name((clientStack) => {
|
|
138
988
|
clientStack.add(recursionDetectionMiddleware(options), addRecursionDetectionMiddlewareOptions);
|
|
139
989
|
}, "applyToStack")
|
|
140
990
|
}), "getRecursionDetectionPlugin");
|
|
141
991
|
|
|
142
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
// ../../node_modules/.pnpm/@smithy+core@3.9.1/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js
|
|
146
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
992
|
+
// ../../node_modules/.pnpm/@smithy+core@3.18.5/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js
|
|
993
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
147
994
|
|
|
148
|
-
// ../../node_modules/.pnpm/@smithy+
|
|
149
|
-
|
|
995
|
+
// ../../node_modules/.pnpm/@smithy+core@3.18.5/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js
|
|
996
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
150
997
|
|
|
151
|
-
// ../../node_modules/.pnpm/@smithy+
|
|
152
|
-
|
|
153
|
-
var
|
|
154
|
-
|
|
155
|
-
// ../../node_modules/.pnpm/@smithy+util-middleware@4.0.5/node_modules/@smithy/util-middleware/dist-es/normalizeProvider.js
|
|
156
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
157
|
-
var normalizeProvider = /* @__PURE__ */ U7VZULNU_cjs.__name((input) => {
|
|
158
|
-
if (typeof input === "function") return input;
|
|
159
|
-
const promisified = Promise.resolve(input);
|
|
160
|
-
return () => promisified;
|
|
161
|
-
}, "normalizeProvider");
|
|
162
|
-
|
|
163
|
-
// ../../node_modules/.pnpm/@smithy+core@3.9.1/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/resolveAuthOptions.js
|
|
164
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
165
|
-
var resolveAuthOptions = /* @__PURE__ */ U7VZULNU_cjs.__name((candidateAuthOptions, authSchemePreference) => {
|
|
998
|
+
// ../../node_modules/.pnpm/@smithy+core@3.18.5/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/resolveAuthOptions.js
|
|
999
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1000
|
+
var resolveAuthOptions = /* @__PURE__ */ _24WEKBY3_cjs.__name((candidateAuthOptions, authSchemePreference) => {
|
|
166
1001
|
if (!authSchemePreference || authSchemePreference.length === 0) {
|
|
167
1002
|
return candidateAuthOptions;
|
|
168
1003
|
}
|
|
@@ -183,7 +1018,7 @@ var resolveAuthOptions = /* @__PURE__ */ U7VZULNU_cjs.__name((candidateAuthOptio
|
|
|
183
1018
|
return preferredAuthOptions;
|
|
184
1019
|
}, "resolveAuthOptions");
|
|
185
1020
|
|
|
186
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
1021
|
+
// ../../node_modules/.pnpm/@smithy+core@3.18.5/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js
|
|
187
1022
|
function convertHttpAuthSchemesToMap(httpAuthSchemes) {
|
|
188
1023
|
const map = /* @__PURE__ */ new Map();
|
|
189
1024
|
for (const scheme of httpAuthSchemes) {
|
|
@@ -191,8 +1026,8 @@ function convertHttpAuthSchemesToMap(httpAuthSchemes) {
|
|
|
191
1026
|
}
|
|
192
1027
|
return map;
|
|
193
1028
|
}
|
|
194
|
-
|
|
195
|
-
var httpAuthSchemeMiddleware = /* @__PURE__ */
|
|
1029
|
+
_24WEKBY3_cjs.__name(convertHttpAuthSchemesToMap, "convertHttpAuthSchemesToMap");
|
|
1030
|
+
var httpAuthSchemeMiddleware = /* @__PURE__ */ _24WEKBY3_cjs.__name((config, mwOptions) => (next, context) => async (args) => {
|
|
196
1031
|
const options = config.httpAuthSchemeProvider(await mwOptions.httpAuthSchemeParametersProvider(config, context, args.input));
|
|
197
1032
|
const authSchemePreference = config.authSchemePreference ? await config.authSchemePreference() : [];
|
|
198
1033
|
const resolvedOptions = resolveAuthOptions(options, authSchemePreference);
|
|
@@ -226,7 +1061,7 @@ var httpAuthSchemeMiddleware = /* @__PURE__ */ U7VZULNU_cjs.__name((config, mwOp
|
|
|
226
1061
|
return next(args);
|
|
227
1062
|
}, "httpAuthSchemeMiddleware");
|
|
228
1063
|
|
|
229
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
1064
|
+
// ../../node_modules/.pnpm/@smithy+core@3.18.5/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js
|
|
230
1065
|
var httpAuthSchemeEndpointRuleSetMiddlewareOptions = {
|
|
231
1066
|
step: "serialize",
|
|
232
1067
|
tags: [
|
|
@@ -237,8 +1072,8 @@ var httpAuthSchemeEndpointRuleSetMiddlewareOptions = {
|
|
|
237
1072
|
relation: "before",
|
|
238
1073
|
toMiddleware: "endpointV2Middleware"
|
|
239
1074
|
};
|
|
240
|
-
var getHttpAuthSchemeEndpointRuleSetPlugin = /* @__PURE__ */
|
|
241
|
-
applyToStack: /* @__PURE__ */
|
|
1075
|
+
var getHttpAuthSchemeEndpointRuleSetPlugin = /* @__PURE__ */ _24WEKBY3_cjs.__name((config, { httpAuthSchemeParametersProvider, identityProviderConfigProvider }) => ({
|
|
1076
|
+
applyToStack: /* @__PURE__ */ _24WEKBY3_cjs.__name((clientStack) => {
|
|
242
1077
|
clientStack.addRelativeTo(httpAuthSchemeMiddleware(config, {
|
|
243
1078
|
httpAuthSchemeParametersProvider,
|
|
244
1079
|
identityProviderConfigProvider
|
|
@@ -246,12 +1081,12 @@ var getHttpAuthSchemeEndpointRuleSetPlugin = /* @__PURE__ */ U7VZULNU_cjs.__name
|
|
|
246
1081
|
}, "applyToStack")
|
|
247
1082
|
}), "getHttpAuthSchemeEndpointRuleSetPlugin");
|
|
248
1083
|
|
|
249
|
-
// ../../node_modules/.pnpm/@smithy+middleware-serde@4.
|
|
250
|
-
|
|
1084
|
+
// ../../node_modules/.pnpm/@smithy+middleware-serde@4.2.6/node_modules/@smithy/middleware-serde/dist-es/serdePlugin.js
|
|
1085
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
251
1086
|
|
|
252
|
-
// ../../node_modules/.pnpm/@smithy+middleware-serde@4.
|
|
253
|
-
|
|
254
|
-
var deserializerMiddleware = /* @__PURE__ */
|
|
1087
|
+
// ../../node_modules/.pnpm/@smithy+middleware-serde@4.2.6/node_modules/@smithy/middleware-serde/dist-es/deserializerMiddleware.js
|
|
1088
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1089
|
+
var deserializerMiddleware = /* @__PURE__ */ _24WEKBY3_cjs.__name((options, deserializer) => (next, context) => async (args) => {
|
|
255
1090
|
const { response } = await next(args);
|
|
256
1091
|
try {
|
|
257
1092
|
const parsed = await deserializer(response, options);
|
|
@@ -261,7 +1096,10 @@ var deserializerMiddleware = /* @__PURE__ */ U7VZULNU_cjs.__name((options, deser
|
|
|
261
1096
|
};
|
|
262
1097
|
} catch (error) {
|
|
263
1098
|
Object.defineProperty(error, "$response", {
|
|
264
|
-
value: response
|
|
1099
|
+
value: response,
|
|
1100
|
+
enumerable: false,
|
|
1101
|
+
writable: false,
|
|
1102
|
+
configurable: false
|
|
265
1103
|
});
|
|
266
1104
|
if (!("$metadata" in error)) {
|
|
267
1105
|
const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
|
|
@@ -280,7 +1118,7 @@ var deserializerMiddleware = /* @__PURE__ */ U7VZULNU_cjs.__name((options, deser
|
|
|
280
1118
|
}
|
|
281
1119
|
}
|
|
282
1120
|
try {
|
|
283
|
-
if (
|
|
1121
|
+
if (Q5L3QIKZ_cjs.HttpResponse.isInstance(response)) {
|
|
284
1122
|
const { headers = {} } = response;
|
|
285
1123
|
const headerEntries = Object.entries(headers);
|
|
286
1124
|
error.$metadata = {
|
|
@@ -296,7 +1134,7 @@ var deserializerMiddleware = /* @__PURE__ */ U7VZULNU_cjs.__name((options, deser
|
|
|
296
1134
|
throw error;
|
|
297
1135
|
}
|
|
298
1136
|
}, "deserializerMiddleware");
|
|
299
|
-
var findHeader = /* @__PURE__ */
|
|
1137
|
+
var findHeader = /* @__PURE__ */ _24WEKBY3_cjs.__name((pattern, headers) => {
|
|
300
1138
|
return (headers.find(([k]) => {
|
|
301
1139
|
return k.match(pattern);
|
|
302
1140
|
}) || [
|
|
@@ -305,9 +1143,9 @@ var findHeader = /* @__PURE__ */ U7VZULNU_cjs.__name((pattern, headers) => {
|
|
|
305
1143
|
])[1];
|
|
306
1144
|
}, "findHeader");
|
|
307
1145
|
|
|
308
|
-
// ../../node_modules/.pnpm/@smithy+middleware-serde@4.
|
|
309
|
-
|
|
310
|
-
var serializerMiddleware = /* @__PURE__ */
|
|
1146
|
+
// ../../node_modules/.pnpm/@smithy+middleware-serde@4.2.6/node_modules/@smithy/middleware-serde/dist-es/serializerMiddleware.js
|
|
1147
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1148
|
+
var serializerMiddleware = /* @__PURE__ */ _24WEKBY3_cjs.__name((options, serializer) => (next, context) => async (args) => {
|
|
311
1149
|
const endpointConfig = options;
|
|
312
1150
|
const endpoint = context.endpointV2?.url && endpointConfig.urlParser ? async () => endpointConfig.urlParser(context.endpointV2.url) : endpointConfig.endpoint;
|
|
313
1151
|
if (!endpoint) {
|
|
@@ -323,7 +1161,7 @@ var serializerMiddleware = /* @__PURE__ */ U7VZULNU_cjs.__name((options, seriali
|
|
|
323
1161
|
});
|
|
324
1162
|
}, "serializerMiddleware");
|
|
325
1163
|
|
|
326
|
-
// ../../node_modules/.pnpm/@smithy+middleware-serde@4.
|
|
1164
|
+
// ../../node_modules/.pnpm/@smithy+middleware-serde@4.2.6/node_modules/@smithy/middleware-serde/dist-es/serdePlugin.js
|
|
327
1165
|
var deserializerMiddlewareOption = {
|
|
328
1166
|
name: "deserializerMiddleware",
|
|
329
1167
|
step: "deserialize",
|
|
@@ -342,29 +1180,26 @@ var serializerMiddlewareOption = {
|
|
|
342
1180
|
};
|
|
343
1181
|
function getSerdePlugin(config, serializer, deserializer) {
|
|
344
1182
|
return {
|
|
345
|
-
applyToStack: /* @__PURE__ */
|
|
1183
|
+
applyToStack: /* @__PURE__ */ _24WEKBY3_cjs.__name((commandStack) => {
|
|
346
1184
|
commandStack.add(deserializerMiddleware(config, deserializer), deserializerMiddlewareOption);
|
|
347
1185
|
commandStack.add(serializerMiddleware(config, serializer), serializerMiddlewareOption);
|
|
348
1186
|
}, "applyToStack")
|
|
349
1187
|
};
|
|
350
1188
|
}
|
|
351
|
-
|
|
1189
|
+
_24WEKBY3_cjs.__name(getSerdePlugin, "getSerdePlugin");
|
|
352
1190
|
|
|
353
|
-
// ../../node_modules/.pnpm/@smithy+
|
|
354
|
-
|
|
1191
|
+
// ../../node_modules/.pnpm/@smithy+core@3.18.5/node_modules/@smithy/core/dist-es/middleware-http-signing/getHttpSigningMiddleware.js
|
|
1192
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
355
1193
|
|
|
356
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
// ../../node_modules/.pnpm/@smithy+core@3.9.1/node_modules/@smithy/core/dist-es/middleware-http-signing/httpSigningMiddleware.js
|
|
360
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
361
|
-
var defaultErrorHandler = /* @__PURE__ */ U7VZULNU_cjs.__name((signingProperties) => (error) => {
|
|
1194
|
+
// ../../node_modules/.pnpm/@smithy+core@3.18.5/node_modules/@smithy/core/dist-es/middleware-http-signing/httpSigningMiddleware.js
|
|
1195
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1196
|
+
var defaultErrorHandler = /* @__PURE__ */ _24WEKBY3_cjs.__name((signingProperties) => (error) => {
|
|
362
1197
|
throw error;
|
|
363
1198
|
}, "defaultErrorHandler");
|
|
364
|
-
var defaultSuccessHandler = /* @__PURE__ */
|
|
1199
|
+
var defaultSuccessHandler = /* @__PURE__ */ _24WEKBY3_cjs.__name((httpResponse, signingProperties) => {
|
|
365
1200
|
}, "defaultSuccessHandler");
|
|
366
|
-
var httpSigningMiddleware = /* @__PURE__ */
|
|
367
|
-
if (!
|
|
1201
|
+
var httpSigningMiddleware = /* @__PURE__ */ _24WEKBY3_cjs.__name((config) => (next, context) => async (args) => {
|
|
1202
|
+
if (!Q5L3QIKZ_cjs.HttpRequest.isInstance(args.request)) {
|
|
368
1203
|
return next(args);
|
|
369
1204
|
}
|
|
370
1205
|
const smithyContext = getSmithyContext(context);
|
|
@@ -381,7 +1216,7 @@ var httpSigningMiddleware = /* @__PURE__ */ U7VZULNU_cjs.__name((config) => (nex
|
|
|
381
1216
|
return output;
|
|
382
1217
|
}, "httpSigningMiddleware");
|
|
383
1218
|
|
|
384
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
1219
|
+
// ../../node_modules/.pnpm/@smithy+core@3.18.5/node_modules/@smithy/core/dist-es/middleware-http-signing/getHttpSigningMiddleware.js
|
|
385
1220
|
var httpSigningMiddlewareOptions = {
|
|
386
1221
|
step: "finalizeRequest",
|
|
387
1222
|
tags: [
|
|
@@ -397,20 +1232,20 @@ var httpSigningMiddlewareOptions = {
|
|
|
397
1232
|
relation: "after",
|
|
398
1233
|
toMiddleware: "retryMiddleware"
|
|
399
1234
|
};
|
|
400
|
-
var getHttpSigningPlugin = /* @__PURE__ */
|
|
401
|
-
applyToStack: /* @__PURE__ */
|
|
1235
|
+
var getHttpSigningPlugin = /* @__PURE__ */ _24WEKBY3_cjs.__name((config) => ({
|
|
1236
|
+
applyToStack: /* @__PURE__ */ _24WEKBY3_cjs.__name((clientStack) => {
|
|
402
1237
|
clientStack.addRelativeTo(httpSigningMiddleware(config), httpSigningMiddlewareOptions);
|
|
403
1238
|
}, "applyToStack")
|
|
404
1239
|
}), "getHttpSigningPlugin");
|
|
405
1240
|
|
|
406
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
407
|
-
|
|
1241
|
+
// ../../node_modules/.pnpm/@smithy+core@3.18.5/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js
|
|
1242
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
408
1243
|
var DefaultIdentityProviderConfig = class {
|
|
409
1244
|
static {
|
|
410
|
-
|
|
1245
|
+
_24WEKBY3_cjs.__name(this, "DefaultIdentityProviderConfig");
|
|
411
1246
|
}
|
|
1247
|
+
authSchemes = /* @__PURE__ */ new Map();
|
|
412
1248
|
constructor(config) {
|
|
413
|
-
this.authSchemes = /* @__PURE__ */ new Map();
|
|
414
1249
|
for (const [key, value] of Object.entries(config)) {
|
|
415
1250
|
if (value !== void 0) {
|
|
416
1251
|
this.authSchemes.set(key, value);
|
|
@@ -423,18 +1258,96 @@ var DefaultIdentityProviderConfig = class {
|
|
|
423
1258
|
};
|
|
424
1259
|
|
|
425
1260
|
// ../../node_modules/.pnpm/@aws-sdk+middleware-user-agent@3.879.0/node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js
|
|
426
|
-
|
|
1261
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
427
1262
|
|
|
428
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
429
|
-
|
|
430
|
-
var normalizeProvider2 = /* @__PURE__ */
|
|
1263
|
+
// ../../node_modules/.pnpm/@smithy+core@3.18.5/node_modules/@smithy/core/dist-es/normalizeProvider.js
|
|
1264
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1265
|
+
var normalizeProvider2 = /* @__PURE__ */ _24WEKBY3_cjs.__name((input) => {
|
|
431
1266
|
if (typeof input === "function") return input;
|
|
432
1267
|
const promisified = Promise.resolve(input);
|
|
433
1268
|
return () => promisified;
|
|
434
1269
|
}, "normalizeProvider");
|
|
435
1270
|
|
|
436
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
437
|
-
|
|
1271
|
+
// ../../node_modules/.pnpm/@smithy+core@3.18.5/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js
|
|
1272
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1273
|
+
|
|
1274
|
+
// ../../node_modules/.pnpm/@smithy+util-stream@4.5.6/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js
|
|
1275
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1276
|
+
|
|
1277
|
+
// ../../node_modules/.pnpm/@smithy+util-utf8@4.2.0/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js
|
|
1278
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1279
|
+
var toUint8Array = /* @__PURE__ */ _24WEKBY3_cjs.__name((data) => {
|
|
1280
|
+
if (typeof data === "string") {
|
|
1281
|
+
return FDH37YWR_cjs.fromUtf8(data);
|
|
1282
|
+
}
|
|
1283
|
+
if (ArrayBuffer.isView(data)) {
|
|
1284
|
+
return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
|
|
1285
|
+
}
|
|
1286
|
+
return new Uint8Array(data);
|
|
1287
|
+
}, "toUint8Array");
|
|
1288
|
+
|
|
1289
|
+
// ../../node_modules/.pnpm/@smithy+util-stream@4.5.6/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js
|
|
1290
|
+
var Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter extends Uint8Array {
|
|
1291
|
+
static {
|
|
1292
|
+
_24WEKBY3_cjs.__name(this, "Uint8ArrayBlobAdapter");
|
|
1293
|
+
}
|
|
1294
|
+
static fromString(source, encoding = "utf-8") {
|
|
1295
|
+
if (typeof source === "string") {
|
|
1296
|
+
if (encoding === "base64") {
|
|
1297
|
+
return _Uint8ArrayBlobAdapter.mutate(Q5L3QIKZ_cjs.fromBase64(source));
|
|
1298
|
+
}
|
|
1299
|
+
return _Uint8ArrayBlobAdapter.mutate(FDH37YWR_cjs.fromUtf8(source));
|
|
1300
|
+
}
|
|
1301
|
+
throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`);
|
|
1302
|
+
}
|
|
1303
|
+
static mutate(source) {
|
|
1304
|
+
Object.setPrototypeOf(source, _Uint8ArrayBlobAdapter.prototype);
|
|
1305
|
+
return source;
|
|
1306
|
+
}
|
|
1307
|
+
transformToString(encoding = "utf-8") {
|
|
1308
|
+
if (encoding === "base64") {
|
|
1309
|
+
return Q5L3QIKZ_cjs.toBase64(this);
|
|
1310
|
+
}
|
|
1311
|
+
return FDH37YWR_cjs.toUtf8(this);
|
|
1312
|
+
}
|
|
1313
|
+
};
|
|
1314
|
+
|
|
1315
|
+
// ../../node_modules/.pnpm/@smithy+core@3.18.5/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js
|
|
1316
|
+
var collectBody = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (streamBody = new Uint8Array(), context) => {
|
|
1317
|
+
if (streamBody instanceof Uint8Array) {
|
|
1318
|
+
return Uint8ArrayBlobAdapter.mutate(streamBody);
|
|
1319
|
+
}
|
|
1320
|
+
if (!streamBody) {
|
|
1321
|
+
return Uint8ArrayBlobAdapter.mutate(new Uint8Array());
|
|
1322
|
+
}
|
|
1323
|
+
const fromContext = context.streamCollector(streamBody);
|
|
1324
|
+
return Uint8ArrayBlobAdapter.mutate(await fromContext);
|
|
1325
|
+
}, "collectBody");
|
|
1326
|
+
|
|
1327
|
+
// ../../node_modules/.pnpm/@smithy+uuid@1.1.0/node_modules/@smithy/uuid/dist-es/v4.js
|
|
1328
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1329
|
+
|
|
1330
|
+
// ../../node_modules/.pnpm/@smithy+uuid@1.1.0/node_modules/@smithy/uuid/dist-es/randomUUID.js
|
|
1331
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1332
|
+
var randomUUID = crypto2__default.default.randomUUID.bind(crypto2__default.default);
|
|
1333
|
+
|
|
1334
|
+
// ../../node_modules/.pnpm/@smithy+uuid@1.1.0/node_modules/@smithy/uuid/dist-es/v4.js
|
|
1335
|
+
var decimalToHex = Array.from({
|
|
1336
|
+
length: 256
|
|
1337
|
+
}, (_, i) => i.toString(16).padStart(2, "0"));
|
|
1338
|
+
var v4 = /* @__PURE__ */ _24WEKBY3_cjs.__name(() => {
|
|
1339
|
+
if (randomUUID) {
|
|
1340
|
+
return randomUUID();
|
|
1341
|
+
}
|
|
1342
|
+
const rnds = new Uint8Array(16);
|
|
1343
|
+
crypto.getRandomValues(rnds);
|
|
1344
|
+
rnds[6] = rnds[6] & 15 | 64;
|
|
1345
|
+
rnds[8] = rnds[8] & 63 | 128;
|
|
1346
|
+
return decimalToHex[rnds[0]] + decimalToHex[rnds[1]] + decimalToHex[rnds[2]] + decimalToHex[rnds[3]] + "-" + decimalToHex[rnds[4]] + decimalToHex[rnds[5]] + "-" + decimalToHex[rnds[6]] + decimalToHex[rnds[7]] + "-" + decimalToHex[rnds[8]] + decimalToHex[rnds[9]] + "-" + decimalToHex[rnds[10]] + decimalToHex[rnds[11]] + decimalToHex[rnds[12]] + decimalToHex[rnds[13]] + decimalToHex[rnds[14]] + decimalToHex[rnds[15]];
|
|
1347
|
+
}, "v4");
|
|
1348
|
+
|
|
1349
|
+
// ../../node_modules/.pnpm/@smithy+core@3.18.5/node_modules/@smithy/core/dist-es/setFeature.js
|
|
1350
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
438
1351
|
function setFeature(context, feature, value) {
|
|
439
1352
|
if (!context.__smithy_context) {
|
|
440
1353
|
context.__smithy_context = {
|
|
@@ -445,15 +1358,17 @@ function setFeature(context, feature, value) {
|
|
|
445
1358
|
}
|
|
446
1359
|
context.__smithy_context.features[feature] = value;
|
|
447
1360
|
}
|
|
448
|
-
|
|
1361
|
+
_24WEKBY3_cjs.__name(setFeature, "setFeature");
|
|
449
1362
|
|
|
450
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
451
|
-
|
|
452
|
-
var createIsIdentityExpiredFunction = /* @__PURE__ */
|
|
1363
|
+
// ../../node_modules/.pnpm/@smithy+core@3.18.5/node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js
|
|
1364
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1365
|
+
var createIsIdentityExpiredFunction = /* @__PURE__ */ _24WEKBY3_cjs.__name((expirationMs) => /* @__PURE__ */ _24WEKBY3_cjs.__name(function isIdentityExpired2(identity) {
|
|
1366
|
+
return doesIdentityRequireRefresh(identity) && identity.expiration.getTime() - Date.now() < expirationMs;
|
|
1367
|
+
}, "isIdentityExpired"), "createIsIdentityExpiredFunction");
|
|
453
1368
|
var EXPIRATION_MS = 3e5;
|
|
454
1369
|
var isIdentityExpired = createIsIdentityExpiredFunction(EXPIRATION_MS);
|
|
455
|
-
var doesIdentityRequireRefresh = /* @__PURE__ */
|
|
456
|
-
var memoizeIdentityProvider = /* @__PURE__ */
|
|
1370
|
+
var doesIdentityRequireRefresh = /* @__PURE__ */ _24WEKBY3_cjs.__name((identity) => identity.expiration !== void 0, "doesIdentityRequireRefresh");
|
|
1371
|
+
var memoizeIdentityProvider = /* @__PURE__ */ _24WEKBY3_cjs.__name((provider, isExpired, requiresRefresh) => {
|
|
457
1372
|
if (provider === void 0) {
|
|
458
1373
|
return void 0;
|
|
459
1374
|
}
|
|
@@ -462,7 +1377,7 @@ var memoizeIdentityProvider = /* @__PURE__ */ U7VZULNU_cjs.__name((provider, isE
|
|
|
462
1377
|
let pending;
|
|
463
1378
|
let hasResult;
|
|
464
1379
|
let isConstant = false;
|
|
465
|
-
const coalesceProvider = /* @__PURE__ */
|
|
1380
|
+
const coalesceProvider = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (options) => {
|
|
466
1381
|
if (!pending) {
|
|
467
1382
|
pending = normalizedProvider(options);
|
|
468
1383
|
}
|
|
@@ -510,7 +1425,7 @@ function isValidUserAgentAppId(appId) {
|
|
|
510
1425
|
}
|
|
511
1426
|
return typeof appId === "string" && appId.length <= 50;
|
|
512
1427
|
}
|
|
513
|
-
|
|
1428
|
+
_24WEKBY3_cjs.__name(isValidUserAgentAppId, "isValidUserAgentAppId");
|
|
514
1429
|
function resolveUserAgentConfig(input) {
|
|
515
1430
|
const normalizedAppIdProvider = normalizeProvider2(input.userAgentAppId ?? DEFAULT_UA_APP_ID);
|
|
516
1431
|
const { customUserAgent } = input;
|
|
@@ -520,7 +1435,7 @@ function resolveUserAgentConfig(input) {
|
|
|
520
1435
|
customUserAgent
|
|
521
1436
|
]
|
|
522
1437
|
] : customUserAgent,
|
|
523
|
-
userAgentAppId: /* @__PURE__ */
|
|
1438
|
+
userAgentAppId: /* @__PURE__ */ _24WEKBY3_cjs.__name(async () => {
|
|
524
1439
|
const appId = await normalizedAppIdProvider();
|
|
525
1440
|
if (!isValidUserAgentAppId(appId)) {
|
|
526
1441
|
const logger = input.logger?.constructor?.name === "NoOpLogger" || !input.logger ? console : input.logger;
|
|
@@ -534,29 +1449,76 @@ function resolveUserAgentConfig(input) {
|
|
|
534
1449
|
}, "userAgentAppId")
|
|
535
1450
|
});
|
|
536
1451
|
}
|
|
537
|
-
|
|
1452
|
+
_24WEKBY3_cjs.__name(resolveUserAgentConfig, "resolveUserAgentConfig");
|
|
1453
|
+
|
|
1454
|
+
// ../../node_modules/.pnpm/@smithy+smithy-client@4.9.8/node_modules/@smithy/smithy-client/dist-es/exceptions.js
|
|
1455
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1456
|
+
var ServiceException = class _ServiceException extends Error {
|
|
1457
|
+
static {
|
|
1458
|
+
_24WEKBY3_cjs.__name(this, "ServiceException");
|
|
1459
|
+
}
|
|
1460
|
+
$fault;
|
|
1461
|
+
$response;
|
|
1462
|
+
$retryable;
|
|
1463
|
+
$metadata;
|
|
1464
|
+
constructor(options) {
|
|
1465
|
+
super(options.message);
|
|
1466
|
+
Object.setPrototypeOf(this, Object.getPrototypeOf(this).constructor.prototype);
|
|
1467
|
+
this.name = options.name;
|
|
1468
|
+
this.$fault = options.$fault;
|
|
1469
|
+
this.$metadata = options.$metadata;
|
|
1470
|
+
}
|
|
1471
|
+
static isInstance(value) {
|
|
1472
|
+
if (!value) return false;
|
|
1473
|
+
const candidate = value;
|
|
1474
|
+
return _ServiceException.prototype.isPrototypeOf(candidate) || Boolean(candidate.$fault) && Boolean(candidate.$metadata) && (candidate.$fault === "client" || candidate.$fault === "server");
|
|
1475
|
+
}
|
|
1476
|
+
static [Symbol.hasInstance](instance) {
|
|
1477
|
+
if (!instance) return false;
|
|
1478
|
+
const candidate = instance;
|
|
1479
|
+
if (this === _ServiceException) {
|
|
1480
|
+
return _ServiceException.isInstance(instance);
|
|
1481
|
+
}
|
|
1482
|
+
if (_ServiceException.isInstance(instance)) {
|
|
1483
|
+
if (candidate.name && this.name) {
|
|
1484
|
+
return this.prototype.isPrototypeOf(instance) || candidate.name === this.name;
|
|
1485
|
+
}
|
|
1486
|
+
return this.prototype.isPrototypeOf(instance);
|
|
1487
|
+
}
|
|
1488
|
+
return false;
|
|
1489
|
+
}
|
|
1490
|
+
};
|
|
1491
|
+
var decorateServiceException = /* @__PURE__ */ _24WEKBY3_cjs.__name((exception, additions = {}) => {
|
|
1492
|
+
Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => {
|
|
1493
|
+
if (exception[k] == void 0 || exception[k] === "") {
|
|
1494
|
+
exception[k] = v;
|
|
1495
|
+
}
|
|
1496
|
+
});
|
|
1497
|
+
const message = exception.message || exception.Message || "UnknownError";
|
|
1498
|
+
exception.message = message;
|
|
1499
|
+
delete exception.Message;
|
|
1500
|
+
return exception;
|
|
1501
|
+
}, "decorateServiceException");
|
|
538
1502
|
|
|
539
1503
|
// ../../node_modules/.pnpm/@aws-sdk+middleware-user-agent@3.879.0/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js
|
|
540
|
-
|
|
1504
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
541
1505
|
|
|
542
1506
|
// ../../node_modules/.pnpm/@aws-sdk+util-endpoints@3.879.0/node_modules/@aws-sdk/util-endpoints/dist-es/index.js
|
|
543
|
-
|
|
1507
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
544
1508
|
|
|
545
1509
|
// ../../node_modules/.pnpm/@aws-sdk+util-endpoints@3.879.0/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.0.7/node_modules/@smithy/util-endpoints/dist-es/index.js
|
|
549
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
1510
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
550
1511
|
|
|
551
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
552
|
-
|
|
1512
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/cache/EndpointCache.js
|
|
1513
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
553
1514
|
var EndpointCache = class {
|
|
554
1515
|
static {
|
|
555
|
-
|
|
1516
|
+
_24WEKBY3_cjs.__name(this, "EndpointCache");
|
|
556
1517
|
}
|
|
1518
|
+
capacity;
|
|
1519
|
+
data = /* @__PURE__ */ new Map();
|
|
1520
|
+
parameters = [];
|
|
557
1521
|
constructor({ size, params }) {
|
|
558
|
-
this.data = /* @__PURE__ */ new Map();
|
|
559
|
-
this.parameters = [];
|
|
560
1522
|
this.capacity = size ?? 50;
|
|
561
1523
|
if (params) {
|
|
562
1524
|
this.parameters = params;
|
|
@@ -603,15 +1565,15 @@ var EndpointCache = class {
|
|
|
603
1565
|
}
|
|
604
1566
|
};
|
|
605
1567
|
|
|
606
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
607
|
-
|
|
1568
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/lib/isIpAddress.js
|
|
1569
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
608
1570
|
var IP_V4_REGEX = 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}$`);
|
|
609
|
-
var isIpAddress = /* @__PURE__ */
|
|
1571
|
+
var isIpAddress = /* @__PURE__ */ _24WEKBY3_cjs.__name((value) => IP_V4_REGEX.test(value) || value.startsWith("[") && value.endsWith("]"), "isIpAddress");
|
|
610
1572
|
|
|
611
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
612
|
-
|
|
1573
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/lib/isValidHostLabel.js
|
|
1574
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
613
1575
|
var VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
|
|
614
|
-
var isValidHostLabel = /* @__PURE__ */
|
|
1576
|
+
var isValidHostLabel = /* @__PURE__ */ _24WEKBY3_cjs.__name((value, allowSubDomains = false) => {
|
|
615
1577
|
if (!allowSubDomains) {
|
|
616
1578
|
return VALID_HOST_LABEL_REGEX.test(value);
|
|
617
1579
|
}
|
|
@@ -624,22 +1586,19 @@ var isValidHostLabel = /* @__PURE__ */ U7VZULNU_cjs.__name((value, allowSubDomai
|
|
|
624
1586
|
return true;
|
|
625
1587
|
}, "isValidHostLabel");
|
|
626
1588
|
|
|
627
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
628
|
-
|
|
1589
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/utils/customEndpointFunctions.js
|
|
1590
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
629
1591
|
var customEndpointFunctions = {};
|
|
630
1592
|
|
|
631
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
632
|
-
|
|
1593
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/resolveEndpoint.js
|
|
1594
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
633
1595
|
|
|
634
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.0.7/node_modules/@smithy/util-endpoints/dist-es/debug/debugId.js
|
|
638
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
1596
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/debug/debugId.js
|
|
1597
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
639
1598
|
var debugId = "endpoints";
|
|
640
1599
|
|
|
641
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
642
|
-
|
|
1600
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/debug/toDebugString.js
|
|
1601
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
643
1602
|
function toDebugString(input) {
|
|
644
1603
|
if (typeof input !== "object" || input == null) {
|
|
645
1604
|
return input;
|
|
@@ -652,16 +1611,13 @@ function toDebugString(input) {
|
|
|
652
1611
|
}
|
|
653
1612
|
return JSON.stringify(input, null, 2);
|
|
654
1613
|
}
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.0.7/node_modules/@smithy/util-endpoints/dist-es/types/index.js
|
|
658
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
1614
|
+
_24WEKBY3_cjs.__name(toDebugString, "toDebugString");
|
|
659
1615
|
|
|
660
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
661
|
-
|
|
1616
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/types/EndpointError.js
|
|
1617
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
662
1618
|
var EndpointError = class extends Error {
|
|
663
1619
|
static {
|
|
664
|
-
|
|
1620
|
+
_24WEKBY3_cjs.__name(this, "EndpointError");
|
|
665
1621
|
}
|
|
666
1622
|
constructor(message) {
|
|
667
1623
|
super(message);
|
|
@@ -669,58 +1625,34 @@ var EndpointError = class extends Error {
|
|
|
669
1625
|
}
|
|
670
1626
|
};
|
|
671
1627
|
|
|
672
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.0.7/node_modules/@smithy/util-endpoints/dist-es/types/EndpointRuleObject.js
|
|
676
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
677
|
-
|
|
678
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.0.7/node_modules/@smithy/util-endpoints/dist-es/types/ErrorRuleObject.js
|
|
679
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
680
|
-
|
|
681
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.0.7/node_modules/@smithy/util-endpoints/dist-es/types/RuleSetObject.js
|
|
682
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
683
|
-
|
|
684
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.0.7/node_modules/@smithy/util-endpoints/dist-es/types/TreeRuleObject.js
|
|
685
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
686
|
-
|
|
687
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.0.7/node_modules/@smithy/util-endpoints/dist-es/types/shared.js
|
|
688
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
1628
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js
|
|
1629
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
689
1630
|
|
|
690
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
691
|
-
|
|
1631
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateConditions.js
|
|
1632
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
692
1633
|
|
|
693
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
694
|
-
|
|
1634
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js
|
|
1635
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
695
1636
|
|
|
696
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
697
|
-
|
|
1637
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/utils/callFunction.js
|
|
1638
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
698
1639
|
|
|
699
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
700
|
-
|
|
1640
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js
|
|
1641
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
701
1642
|
|
|
702
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
703
|
-
|
|
1643
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js
|
|
1644
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
704
1645
|
|
|
705
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
706
|
-
|
|
1646
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/lib/booleanEquals.js
|
|
1647
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1648
|
+
var booleanEquals = /* @__PURE__ */ _24WEKBY3_cjs.__name((value1, value2) => value1 === value2, "booleanEquals");
|
|
707
1649
|
|
|
708
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
709
|
-
|
|
1650
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/lib/getAttr.js
|
|
1651
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
710
1652
|
|
|
711
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.0.7/node_modules/@smithy/util-endpoints/dist-es/lib/booleanEquals.js
|
|
715
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
716
|
-
var booleanEquals = /* @__PURE__ */ U7VZULNU_cjs.__name((value1, value2) => value1 === value2, "booleanEquals");
|
|
717
|
-
|
|
718
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.0.7/node_modules/@smithy/util-endpoints/dist-es/lib/getAttr.js
|
|
719
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
720
|
-
|
|
721
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.0.7/node_modules/@smithy/util-endpoints/dist-es/lib/getAttrPathList.js
|
|
722
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
723
|
-
var getAttrPathList = /* @__PURE__ */ U7VZULNU_cjs.__name((path) => {
|
|
1653
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/lib/getAttrPathList.js
|
|
1654
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1655
|
+
var getAttrPathList = /* @__PURE__ */ _24WEKBY3_cjs.__name((path) => {
|
|
724
1656
|
const parts = path.split(".");
|
|
725
1657
|
const pathList = [];
|
|
726
1658
|
for (const part of parts) {
|
|
@@ -744,8 +1676,8 @@ var getAttrPathList = /* @__PURE__ */ U7VZULNU_cjs.__name((path) => {
|
|
|
744
1676
|
return pathList;
|
|
745
1677
|
}, "getAttrPathList");
|
|
746
1678
|
|
|
747
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
748
|
-
var getAttr = /* @__PURE__ */
|
|
1679
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/lib/getAttr.js
|
|
1680
|
+
var getAttr = /* @__PURE__ */ _24WEKBY3_cjs.__name((value, path) => getAttrPathList(path).reduce((acc, index) => {
|
|
749
1681
|
if (typeof acc !== "object") {
|
|
750
1682
|
throw new EndpointError(`Index '${index}' in '${path}' not found in '${JSON.stringify(value)}'`);
|
|
751
1683
|
} else if (Array.isArray(acc)) {
|
|
@@ -754,21 +1686,21 @@ var getAttr = /* @__PURE__ */ U7VZULNU_cjs.__name((value, path) => getAttrPathLi
|
|
|
754
1686
|
return acc[index];
|
|
755
1687
|
}, value), "getAttr");
|
|
756
1688
|
|
|
757
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
758
|
-
|
|
759
|
-
var isSet = /* @__PURE__ */
|
|
1689
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/lib/isSet.js
|
|
1690
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1691
|
+
var isSet = /* @__PURE__ */ _24WEKBY3_cjs.__name((value) => value != null, "isSet");
|
|
760
1692
|
|
|
761
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
762
|
-
|
|
763
|
-
var not = /* @__PURE__ */
|
|
1693
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/lib/not.js
|
|
1694
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1695
|
+
var not = /* @__PURE__ */ _24WEKBY3_cjs.__name((value) => !value, "not");
|
|
764
1696
|
|
|
765
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
766
|
-
|
|
1697
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/lib/parseURL.js
|
|
1698
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
767
1699
|
var DEFAULT_PORTS = {
|
|
768
|
-
[
|
|
769
|
-
[
|
|
1700
|
+
[EndpointURLScheme.HTTP]: 80,
|
|
1701
|
+
[EndpointURLScheme.HTTPS]: 443
|
|
770
1702
|
};
|
|
771
|
-
var parseURL = /* @__PURE__ */
|
|
1703
|
+
var parseURL = /* @__PURE__ */ _24WEKBY3_cjs.__name((value) => {
|
|
772
1704
|
const whatwgURL = (() => {
|
|
773
1705
|
try {
|
|
774
1706
|
if (value instanceof URL) {
|
|
@@ -795,7 +1727,7 @@ var parseURL = /* @__PURE__ */ U7VZULNU_cjs.__name((value) => {
|
|
|
795
1727
|
return null;
|
|
796
1728
|
}
|
|
797
1729
|
const scheme = protocol.slice(0, -1);
|
|
798
|
-
if (!Object.values(
|
|
1730
|
+
if (!Object.values(EndpointURLScheme).includes(scheme)) {
|
|
799
1731
|
return null;
|
|
800
1732
|
}
|
|
801
1733
|
const isIp = isIpAddress(hostname);
|
|
@@ -810,13 +1742,13 @@ var parseURL = /* @__PURE__ */ U7VZULNU_cjs.__name((value) => {
|
|
|
810
1742
|
};
|
|
811
1743
|
}, "parseURL");
|
|
812
1744
|
|
|
813
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
814
|
-
|
|
815
|
-
var stringEquals = /* @__PURE__ */
|
|
1745
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/lib/stringEquals.js
|
|
1746
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1747
|
+
var stringEquals = /* @__PURE__ */ _24WEKBY3_cjs.__name((value1, value2) => value1 === value2, "stringEquals");
|
|
816
1748
|
|
|
817
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
818
|
-
|
|
819
|
-
var substring = /* @__PURE__ */
|
|
1749
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js
|
|
1750
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1751
|
+
var substring = /* @__PURE__ */ _24WEKBY3_cjs.__name((input, start, stop, reverse) => {
|
|
820
1752
|
if (start >= stop || input.length < stop) {
|
|
821
1753
|
return null;
|
|
822
1754
|
}
|
|
@@ -826,11 +1758,11 @@ var substring = /* @__PURE__ */ U7VZULNU_cjs.__name((input, start, stop, reverse
|
|
|
826
1758
|
return input.substring(input.length - stop, input.length - start);
|
|
827
1759
|
}, "substring");
|
|
828
1760
|
|
|
829
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
830
|
-
|
|
831
|
-
var uriEncode = /* @__PURE__ */
|
|
1761
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/lib/uriEncode.js
|
|
1762
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1763
|
+
var uriEncode = /* @__PURE__ */ _24WEKBY3_cjs.__name((value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`), "uriEncode");
|
|
832
1764
|
|
|
833
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
1765
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js
|
|
834
1766
|
var endpointFunctions = {
|
|
835
1767
|
booleanEquals,
|
|
836
1768
|
getAttr,
|
|
@@ -843,12 +1775,9 @@ var endpointFunctions = {
|
|
|
843
1775
|
uriEncode
|
|
844
1776
|
};
|
|
845
1777
|
|
|
846
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.0.7/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTemplate.js
|
|
850
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
851
|
-
var evaluateTemplate = /* @__PURE__ */ U7VZULNU_cjs.__name((template, options) => {
|
|
1778
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTemplate.js
|
|
1779
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1780
|
+
var evaluateTemplate = /* @__PURE__ */ _24WEKBY3_cjs.__name((template, options) => {
|
|
852
1781
|
const evaluatedTemplateArr = [];
|
|
853
1782
|
const templateContext = {
|
|
854
1783
|
...options.endpointParams,
|
|
@@ -883,9 +1812,9 @@ var evaluateTemplate = /* @__PURE__ */ U7VZULNU_cjs.__name((template, options) =
|
|
|
883
1812
|
return evaluatedTemplateArr.join("");
|
|
884
1813
|
}, "evaluateTemplate");
|
|
885
1814
|
|
|
886
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
887
|
-
|
|
888
|
-
var getReferenceValue = /* @__PURE__ */
|
|
1815
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/utils/getReferenceValue.js
|
|
1816
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1817
|
+
var getReferenceValue = /* @__PURE__ */ _24WEKBY3_cjs.__name(({ ref }, options) => {
|
|
889
1818
|
const referenceRecord = {
|
|
890
1819
|
...options.endpointParams,
|
|
891
1820
|
...options.referenceRecord
|
|
@@ -893,33 +1822,35 @@ var getReferenceValue = /* @__PURE__ */ U7VZULNU_cjs.__name(({ ref }, options) =
|
|
|
893
1822
|
return referenceRecord[ref];
|
|
894
1823
|
}, "getReferenceValue");
|
|
895
1824
|
|
|
896
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
897
|
-
var evaluateExpression = /* @__PURE__ */
|
|
1825
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js
|
|
1826
|
+
var evaluateExpression = /* @__PURE__ */ _24WEKBY3_cjs.__name((obj, keyName, options) => {
|
|
898
1827
|
if (typeof obj === "string") {
|
|
899
1828
|
return evaluateTemplate(obj, options);
|
|
900
1829
|
} else if (obj["fn"]) {
|
|
901
|
-
return callFunction(obj, options);
|
|
1830
|
+
return group.callFunction(obj, options);
|
|
902
1831
|
} else if (obj["ref"]) {
|
|
903
1832
|
return getReferenceValue(obj, options);
|
|
904
1833
|
}
|
|
905
1834
|
throw new EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`);
|
|
906
1835
|
}, "evaluateExpression");
|
|
907
|
-
|
|
908
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.0.7/node_modules/@smithy/util-endpoints/dist-es/utils/callFunction.js
|
|
909
|
-
var callFunction = /* @__PURE__ */ U7VZULNU_cjs.__name(({ fn, argv }, options) => {
|
|
1836
|
+
var callFunction = /* @__PURE__ */ _24WEKBY3_cjs.__name(({ fn, argv }, options) => {
|
|
910
1837
|
const evaluatedArgs = argv.map((arg) => [
|
|
911
1838
|
"boolean",
|
|
912
1839
|
"number"
|
|
913
|
-
].includes(typeof arg) ? arg : evaluateExpression(arg, "arg", options));
|
|
1840
|
+
].includes(typeof arg) ? arg : group.evaluateExpression(arg, "arg", options));
|
|
914
1841
|
const fnSegments = fn.split(".");
|
|
915
1842
|
if (fnSegments[0] in customEndpointFunctions && fnSegments[1] != null) {
|
|
916
1843
|
return customEndpointFunctions[fnSegments[0]][fnSegments[1]](...evaluatedArgs);
|
|
917
1844
|
}
|
|
918
1845
|
return endpointFunctions[fn](...evaluatedArgs);
|
|
919
1846
|
}, "callFunction");
|
|
1847
|
+
var group = {
|
|
1848
|
+
evaluateExpression,
|
|
1849
|
+
callFunction
|
|
1850
|
+
};
|
|
920
1851
|
|
|
921
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
922
|
-
var evaluateCondition = /* @__PURE__ */
|
|
1852
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js
|
|
1853
|
+
var evaluateCondition = /* @__PURE__ */ _24WEKBY3_cjs.__name(({ assign, ...fnArgs }, options) => {
|
|
923
1854
|
if (assign && assign in options.referenceRecord) {
|
|
924
1855
|
throw new EndpointError(`'${assign}' is already defined in Reference Record.`);
|
|
925
1856
|
}
|
|
@@ -936,8 +1867,8 @@ var evaluateCondition = /* @__PURE__ */ U7VZULNU_cjs.__name(({ assign, ...fnArgs
|
|
|
936
1867
|
};
|
|
937
1868
|
}, "evaluateCondition");
|
|
938
1869
|
|
|
939
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
940
|
-
var evaluateConditions = /* @__PURE__ */
|
|
1870
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateConditions.js
|
|
1871
|
+
var evaluateConditions = /* @__PURE__ */ _24WEKBY3_cjs.__name((conditions = [], options) => {
|
|
941
1872
|
const conditionsReferenceRecord = {};
|
|
942
1873
|
for (const condition of conditions) {
|
|
943
1874
|
const { result, toAssign } = evaluateCondition(condition, {
|
|
@@ -963,9 +1894,12 @@ var evaluateConditions = /* @__PURE__ */ U7VZULNU_cjs.__name((conditions = [], o
|
|
|
963
1894
|
};
|
|
964
1895
|
}, "evaluateConditions");
|
|
965
1896
|
|
|
966
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
967
|
-
|
|
968
|
-
|
|
1897
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateEndpointRule.js
|
|
1898
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1899
|
+
|
|
1900
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointHeaders.js
|
|
1901
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1902
|
+
var getEndpointHeaders = /* @__PURE__ */ _24WEKBY3_cjs.__name((headers, options) => Object.entries(headers).reduce((acc, [headerKey, headerVal]) => ({
|
|
969
1903
|
...acc,
|
|
970
1904
|
[headerKey]: headerVal.map((headerValEntry) => {
|
|
971
1905
|
const processedExpr = evaluateExpression(headerValEntry, "Header value entry", options);
|
|
@@ -976,12 +1910,13 @@ var getEndpointHeaders = /* @__PURE__ */ U7VZULNU_cjs.__name((headers, options)
|
|
|
976
1910
|
})
|
|
977
1911
|
}), {}), "getEndpointHeaders");
|
|
978
1912
|
|
|
979
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
1913
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js
|
|
1914
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1915
|
+
var getEndpointProperties = /* @__PURE__ */ _24WEKBY3_cjs.__name((properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => ({
|
|
1916
|
+
...acc,
|
|
1917
|
+
[propertyKey]: group2.getEndpointProperty(propertyVal, options)
|
|
1918
|
+
}), {}), "getEndpointProperties");
|
|
1919
|
+
var getEndpointProperty = /* @__PURE__ */ _24WEKBY3_cjs.__name((property, options) => {
|
|
985
1920
|
if (Array.isArray(property)) {
|
|
986
1921
|
return property.map((propertyEntry) => getEndpointProperty(propertyEntry, options));
|
|
987
1922
|
}
|
|
@@ -992,23 +1927,21 @@ var getEndpointProperty = /* @__PURE__ */ U7VZULNU_cjs.__name((property, options
|
|
|
992
1927
|
if (property === null) {
|
|
993
1928
|
throw new EndpointError(`Unexpected endpoint property: ${property}`);
|
|
994
1929
|
}
|
|
995
|
-
return getEndpointProperties(property, options);
|
|
1930
|
+
return group2.getEndpointProperties(property, options);
|
|
996
1931
|
case "boolean":
|
|
997
1932
|
return property;
|
|
998
1933
|
default:
|
|
999
1934
|
throw new EndpointError(`Unexpected endpoint property type: ${typeof property}`);
|
|
1000
1935
|
}
|
|
1001
1936
|
}, "getEndpointProperty");
|
|
1937
|
+
var group2 = {
|
|
1938
|
+
getEndpointProperty,
|
|
1939
|
+
getEndpointProperties
|
|
1940
|
+
};
|
|
1002
1941
|
|
|
1003
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
[propertyKey]: getEndpointProperty(propertyVal, options)
|
|
1007
|
-
}), {}), "getEndpointProperties");
|
|
1008
|
-
|
|
1009
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.0.7/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointUrl.js
|
|
1010
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
1011
|
-
var getEndpointUrl = /* @__PURE__ */ U7VZULNU_cjs.__name((endpointUrl, options) => {
|
|
1942
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointUrl.js
|
|
1943
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1944
|
+
var getEndpointUrl = /* @__PURE__ */ _24WEKBY3_cjs.__name((endpointUrl, options) => {
|
|
1012
1945
|
const expression = evaluateExpression(endpointUrl, "Endpoint URL", options);
|
|
1013
1946
|
if (typeof expression === "string") {
|
|
1014
1947
|
try {
|
|
@@ -1021,8 +1954,8 @@ var getEndpointUrl = /* @__PURE__ */ U7VZULNU_cjs.__name((endpointUrl, options)
|
|
|
1021
1954
|
throw new EndpointError(`Endpoint URL must be a string, got ${typeof expression}`);
|
|
1022
1955
|
}, "getEndpointUrl");
|
|
1023
1956
|
|
|
1024
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
1025
|
-
var evaluateEndpointRule = /* @__PURE__ */
|
|
1957
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateEndpointRule.js
|
|
1958
|
+
var evaluateEndpointRule = /* @__PURE__ */ _24WEKBY3_cjs.__name((endpointRule, options) => {
|
|
1026
1959
|
const { conditions, endpoint } = endpointRule;
|
|
1027
1960
|
const { result, referenceRecord } = evaluateConditions(conditions, options);
|
|
1028
1961
|
if (!result) {
|
|
@@ -1048,9 +1981,9 @@ var evaluateEndpointRule = /* @__PURE__ */ U7VZULNU_cjs.__name((endpointRule, op
|
|
|
1048
1981
|
};
|
|
1049
1982
|
}, "evaluateEndpointRule");
|
|
1050
1983
|
|
|
1051
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
1052
|
-
|
|
1053
|
-
var evaluateErrorRule = /* @__PURE__ */
|
|
1984
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateErrorRule.js
|
|
1985
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1986
|
+
var evaluateErrorRule = /* @__PURE__ */ _24WEKBY3_cjs.__name((errorRule, options) => {
|
|
1054
1987
|
const { conditions, error } = errorRule;
|
|
1055
1988
|
const { result, referenceRecord } = evaluateConditions(conditions, options);
|
|
1056
1989
|
if (!result) {
|
|
@@ -1065,25 +1998,8 @@ var evaluateErrorRule = /* @__PURE__ */ U7VZULNU_cjs.__name((errorRule, options)
|
|
|
1065
1998
|
}));
|
|
1066
1999
|
}, "evaluateErrorRule");
|
|
1067
2000
|
|
|
1068
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
1069
|
-
|
|
1070
|
-
var evaluateTreeRule = /* @__PURE__ */ U7VZULNU_cjs.__name((treeRule, options) => {
|
|
1071
|
-
const { conditions, rules } = treeRule;
|
|
1072
|
-
const { result, referenceRecord } = evaluateConditions(conditions, options);
|
|
1073
|
-
if (!result) {
|
|
1074
|
-
return;
|
|
1075
|
-
}
|
|
1076
|
-
return evaluateRules(rules, {
|
|
1077
|
-
...options,
|
|
1078
|
-
referenceRecord: {
|
|
1079
|
-
...options.referenceRecord,
|
|
1080
|
-
...referenceRecord
|
|
1081
|
-
}
|
|
1082
|
-
});
|
|
1083
|
-
}, "evaluateTreeRule");
|
|
1084
|
-
|
|
1085
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.0.7/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js
|
|
1086
|
-
var evaluateRules = /* @__PURE__ */ U7VZULNU_cjs.__name((rules, options) => {
|
|
2001
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js
|
|
2002
|
+
var evaluateRules = /* @__PURE__ */ _24WEKBY3_cjs.__name((rules, options) => {
|
|
1087
2003
|
for (const rule of rules) {
|
|
1088
2004
|
if (rule.type === "endpoint") {
|
|
1089
2005
|
const endpointOrUndefined = evaluateEndpointRule(rule, options);
|
|
@@ -1093,7 +2009,7 @@ var evaluateRules = /* @__PURE__ */ U7VZULNU_cjs.__name((rules, options) => {
|
|
|
1093
2009
|
} else if (rule.type === "error") {
|
|
1094
2010
|
evaluateErrorRule(rule, options);
|
|
1095
2011
|
} else if (rule.type === "tree") {
|
|
1096
|
-
const endpointOrUndefined = evaluateTreeRule(rule, options);
|
|
2012
|
+
const endpointOrUndefined = group3.evaluateTreeRule(rule, options);
|
|
1097
2013
|
if (endpointOrUndefined) {
|
|
1098
2014
|
return endpointOrUndefined;
|
|
1099
2015
|
}
|
|
@@ -1103,9 +2019,27 @@ var evaluateRules = /* @__PURE__ */ U7VZULNU_cjs.__name((rules, options) => {
|
|
|
1103
2019
|
}
|
|
1104
2020
|
throw new EndpointError(`Rules evaluation failed`);
|
|
1105
2021
|
}, "evaluateRules");
|
|
2022
|
+
var evaluateTreeRule = /* @__PURE__ */ _24WEKBY3_cjs.__name((treeRule, options) => {
|
|
2023
|
+
const { conditions, rules } = treeRule;
|
|
2024
|
+
const { result, referenceRecord } = evaluateConditions(conditions, options);
|
|
2025
|
+
if (!result) {
|
|
2026
|
+
return;
|
|
2027
|
+
}
|
|
2028
|
+
return group3.evaluateRules(rules, {
|
|
2029
|
+
...options,
|
|
2030
|
+
referenceRecord: {
|
|
2031
|
+
...options.referenceRecord,
|
|
2032
|
+
...referenceRecord
|
|
2033
|
+
}
|
|
2034
|
+
});
|
|
2035
|
+
}, "evaluateTreeRule");
|
|
2036
|
+
var group3 = {
|
|
2037
|
+
evaluateRules,
|
|
2038
|
+
evaluateTreeRule
|
|
2039
|
+
};
|
|
1106
2040
|
|
|
1107
|
-
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.
|
|
1108
|
-
var resolveEndpoint = /* @__PURE__ */
|
|
2041
|
+
// ../../node_modules/.pnpm/@smithy+util-endpoints@3.2.5/node_modules/@smithy/util-endpoints/dist-es/resolveEndpoint.js
|
|
2042
|
+
var resolveEndpoint = /* @__PURE__ */ _24WEKBY3_cjs.__name((ruleSetObject, options) => {
|
|
1109
2043
|
const { endpointParams, logger } = options;
|
|
1110
2044
|
const { parameters, rules } = ruleSetObject;
|
|
1111
2045
|
options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
|
|
@@ -1134,13 +2068,13 @@ var resolveEndpoint = /* @__PURE__ */ U7VZULNU_cjs.__name((ruleSetObject, option
|
|
|
1134
2068
|
}, "resolveEndpoint");
|
|
1135
2069
|
|
|
1136
2070
|
// ../../node_modules/.pnpm/@aws-sdk+util-endpoints@3.879.0/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js
|
|
1137
|
-
|
|
2071
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1138
2072
|
|
|
1139
2073
|
// ../../node_modules/.pnpm/@aws-sdk+util-endpoints@3.879.0/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js
|
|
1140
|
-
|
|
2074
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1141
2075
|
|
|
1142
2076
|
// ../../node_modules/.pnpm/@aws-sdk+util-endpoints@3.879.0/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js
|
|
1143
|
-
var isVirtualHostableS3Bucket = /* @__PURE__ */
|
|
2077
|
+
var isVirtualHostableS3Bucket = /* @__PURE__ */ _24WEKBY3_cjs.__name((value, allowSubDomains = false) => {
|
|
1144
2078
|
if (allowSubDomains) {
|
|
1145
2079
|
for (const label of value.split(".")) {
|
|
1146
2080
|
if (!isVirtualHostableS3Bucket(label)) {
|
|
@@ -1165,10 +2099,10 @@ var isVirtualHostableS3Bucket = /* @__PURE__ */ U7VZULNU_cjs.__name((value, allo
|
|
|
1165
2099
|
}, "isVirtualHostableS3Bucket");
|
|
1166
2100
|
|
|
1167
2101
|
// ../../node_modules/.pnpm/@aws-sdk+util-endpoints@3.879.0/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js
|
|
1168
|
-
|
|
2102
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1169
2103
|
var ARN_DELIMITER = ":";
|
|
1170
2104
|
var RESOURCE_DELIMITER = "/";
|
|
1171
|
-
var parseArn = /* @__PURE__ */
|
|
2105
|
+
var parseArn = /* @__PURE__ */ _24WEKBY3_cjs.__name((value) => {
|
|
1172
2106
|
const segments = value.split(ARN_DELIMITER);
|
|
1173
2107
|
if (segments.length < 6) return null;
|
|
1174
2108
|
const [arn, partition2, service, region, accountId, ...resourcePath] = segments;
|
|
@@ -1184,7 +2118,7 @@ var parseArn = /* @__PURE__ */ U7VZULNU_cjs.__name((value) => {
|
|
|
1184
2118
|
}, "parseArn");
|
|
1185
2119
|
|
|
1186
2120
|
// ../../node_modules/.pnpm/@aws-sdk+util-endpoints@3.879.0/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js
|
|
1187
|
-
|
|
2121
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1188
2122
|
|
|
1189
2123
|
// ../../node_modules/.pnpm/@aws-sdk+util-endpoints@3.879.0/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json
|
|
1190
2124
|
var partitions_default = {
|
|
@@ -1453,7 +2387,7 @@ var partitions_default = {
|
|
|
1453
2387
|
// ../../node_modules/.pnpm/@aws-sdk+util-endpoints@3.879.0/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js
|
|
1454
2388
|
var selectedPartitionsInfo = partitions_default;
|
|
1455
2389
|
var selectedUserAgentPrefix = "";
|
|
1456
|
-
var partition = /* @__PURE__ */
|
|
2390
|
+
var partition = /* @__PURE__ */ _24WEKBY3_cjs.__name((value) => {
|
|
1457
2391
|
const { partitions } = selectedPartitionsInfo;
|
|
1458
2392
|
for (const partition2 of partitions) {
|
|
1459
2393
|
const { regions, outputs } = partition2;
|
|
@@ -1482,7 +2416,7 @@ var partition = /* @__PURE__ */ U7VZULNU_cjs.__name((value) => {
|
|
|
1482
2416
|
...DEFAULT_PARTITION.outputs
|
|
1483
2417
|
};
|
|
1484
2418
|
}, "partition");
|
|
1485
|
-
var getUserAgentPrefix = /* @__PURE__ */
|
|
2419
|
+
var getUserAgentPrefix = /* @__PURE__ */ _24WEKBY3_cjs.__name(() => selectedUserAgentPrefix, "getUserAgentPrefix");
|
|
1486
2420
|
|
|
1487
2421
|
// ../../node_modules/.pnpm/@aws-sdk+util-endpoints@3.879.0/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js
|
|
1488
2422
|
var awsEndpointFunctions = {
|
|
@@ -1493,41 +2427,41 @@ var awsEndpointFunctions = {
|
|
|
1493
2427
|
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
1494
2428
|
|
|
1495
2429
|
// ../../node_modules/.pnpm/@aws-sdk+util-endpoints@3.879.0/node_modules/@aws-sdk/util-endpoints/dist-es/resolveDefaultAwsRegionalEndpointsConfig.js
|
|
1496
|
-
|
|
2430
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1497
2431
|
|
|
1498
2432
|
// ../../node_modules/.pnpm/@aws-sdk+util-endpoints@3.879.0/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js
|
|
1499
|
-
|
|
2433
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1500
2434
|
|
|
1501
2435
|
// ../../node_modules/.pnpm/@aws-sdk+util-endpoints@3.879.0/node_modules/@aws-sdk/util-endpoints/dist-es/types/index.js
|
|
1502
|
-
|
|
2436
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1503
2437
|
|
|
1504
2438
|
// ../../node_modules/.pnpm/@aws-sdk+util-endpoints@3.879.0/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js
|
|
1505
|
-
|
|
2439
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1506
2440
|
|
|
1507
2441
|
// ../../node_modules/.pnpm/@aws-sdk+util-endpoints@3.879.0/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointRuleObject.js
|
|
1508
|
-
|
|
2442
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1509
2443
|
|
|
1510
2444
|
// ../../node_modules/.pnpm/@aws-sdk+util-endpoints@3.879.0/node_modules/@aws-sdk/util-endpoints/dist-es/types/ErrorRuleObject.js
|
|
1511
|
-
|
|
2445
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1512
2446
|
|
|
1513
2447
|
// ../../node_modules/.pnpm/@aws-sdk+util-endpoints@3.879.0/node_modules/@aws-sdk/util-endpoints/dist-es/types/RuleSetObject.js
|
|
1514
|
-
|
|
2448
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1515
2449
|
|
|
1516
2450
|
// ../../node_modules/.pnpm/@aws-sdk+util-endpoints@3.879.0/node_modules/@aws-sdk/util-endpoints/dist-es/types/TreeRuleObject.js
|
|
1517
|
-
|
|
2451
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1518
2452
|
|
|
1519
2453
|
// ../../node_modules/.pnpm/@aws-sdk+util-endpoints@3.879.0/node_modules/@aws-sdk/util-endpoints/dist-es/types/shared.js
|
|
1520
|
-
|
|
2454
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1521
2455
|
|
|
1522
2456
|
// ../../node_modules/.pnpm/@aws-sdk+middleware-user-agent@3.879.0/node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js
|
|
1523
|
-
|
|
2457
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1524
2458
|
|
|
1525
2459
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.879.0/node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js
|
|
1526
|
-
|
|
2460
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1527
2461
|
var state = {
|
|
1528
2462
|
warningEmitted: false
|
|
1529
2463
|
};
|
|
1530
|
-
var emitWarningIfUnsupportedVersion = /* @__PURE__ */
|
|
2464
|
+
var emitWarningIfUnsupportedVersion = /* @__PURE__ */ _24WEKBY3_cjs.__name((version) => {
|
|
1531
2465
|
if (version && !state.warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 18) {
|
|
1532
2466
|
state.warningEmitted = true;
|
|
1533
2467
|
process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
|
|
@@ -1541,7 +2475,7 @@ More information can be found at: https://a.co/74kJMmI`);
|
|
|
1541
2475
|
}, "emitWarningIfUnsupportedVersion");
|
|
1542
2476
|
|
|
1543
2477
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.879.0/node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js
|
|
1544
|
-
|
|
2478
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1545
2479
|
function setFeature2(context, feature, value) {
|
|
1546
2480
|
if (!context.__aws_sdk_context) {
|
|
1547
2481
|
context.__aws_sdk_context = {
|
|
@@ -1552,31 +2486,31 @@ function setFeature2(context, feature, value) {
|
|
|
1552
2486
|
}
|
|
1553
2487
|
context.__aws_sdk_context.features[feature] = value;
|
|
1554
2488
|
}
|
|
1555
|
-
|
|
2489
|
+
_24WEKBY3_cjs.__name(setFeature2, "setFeature");
|
|
1556
2490
|
|
|
1557
2491
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.879.0/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js
|
|
1558
|
-
|
|
2492
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1559
2493
|
|
|
1560
2494
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.879.0/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js
|
|
1561
|
-
|
|
2495
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1562
2496
|
|
|
1563
2497
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.879.0/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js
|
|
1564
|
-
|
|
1565
|
-
var getDateHeader = /* @__PURE__ */
|
|
2498
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2499
|
+
var getDateHeader = /* @__PURE__ */ _24WEKBY3_cjs.__name((response) => Q5L3QIKZ_cjs.HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : void 0, "getDateHeader");
|
|
1566
2500
|
|
|
1567
2501
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.879.0/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js
|
|
1568
|
-
|
|
1569
|
-
var getSkewCorrectedDate = /* @__PURE__ */
|
|
2502
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2503
|
+
var getSkewCorrectedDate = /* @__PURE__ */ _24WEKBY3_cjs.__name((systemClockOffset) => new Date(Date.now() + systemClockOffset), "getSkewCorrectedDate");
|
|
1570
2504
|
|
|
1571
2505
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.879.0/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js
|
|
1572
|
-
|
|
2506
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1573
2507
|
|
|
1574
2508
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.879.0/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js
|
|
1575
|
-
|
|
1576
|
-
var isClockSkewed = /* @__PURE__ */
|
|
2509
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2510
|
+
var isClockSkewed = /* @__PURE__ */ _24WEKBY3_cjs.__name((clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 3e5, "isClockSkewed");
|
|
1577
2511
|
|
|
1578
2512
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.879.0/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js
|
|
1579
|
-
var getUpdatedSystemClockOffset = /* @__PURE__ */
|
|
2513
|
+
var getUpdatedSystemClockOffset = /* @__PURE__ */ _24WEKBY3_cjs.__name((clockTime, currentSystemClockOffset) => {
|
|
1580
2514
|
const clockTimeInMs = Date.parse(clockTime);
|
|
1581
2515
|
if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) {
|
|
1582
2516
|
return clockTimeInMs - Date.now();
|
|
@@ -1585,13 +2519,13 @@ var getUpdatedSystemClockOffset = /* @__PURE__ */ U7VZULNU_cjs.__name((clockTime
|
|
|
1585
2519
|
}, "getUpdatedSystemClockOffset");
|
|
1586
2520
|
|
|
1587
2521
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.879.0/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js
|
|
1588
|
-
var throwSigningPropertyError = /* @__PURE__ */
|
|
2522
|
+
var throwSigningPropertyError = /* @__PURE__ */ _24WEKBY3_cjs.__name((name, property) => {
|
|
1589
2523
|
if (!property) {
|
|
1590
2524
|
throw new Error(`Property \`${name}\` is not resolved for AWS SDK SigV4Auth`);
|
|
1591
2525
|
}
|
|
1592
2526
|
return property;
|
|
1593
2527
|
}, "throwSigningPropertyError");
|
|
1594
|
-
var validateSigningProperties = /* @__PURE__ */
|
|
2528
|
+
var validateSigningProperties = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (signingProperties) => {
|
|
1595
2529
|
const context = throwSigningPropertyError("context", signingProperties.context);
|
|
1596
2530
|
const config = throwSigningPropertyError("config", signingProperties.config);
|
|
1597
2531
|
const authScheme = context.endpointV2?.properties?.authSchemes?.[0];
|
|
@@ -1610,10 +2544,10 @@ var validateSigningProperties = /* @__PURE__ */ U7VZULNU_cjs.__name(async (signi
|
|
|
1610
2544
|
}, "validateSigningProperties");
|
|
1611
2545
|
var AwsSdkSigV4Signer = class {
|
|
1612
2546
|
static {
|
|
1613
|
-
|
|
2547
|
+
_24WEKBY3_cjs.__name(this, "AwsSdkSigV4Signer");
|
|
1614
2548
|
}
|
|
1615
2549
|
async sign(httpRequest, identity, signingProperties) {
|
|
1616
|
-
if (!
|
|
2550
|
+
if (!Q5L3QIKZ_cjs.HttpRequest.isInstance(httpRequest)) {
|
|
1617
2551
|
throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
|
|
1618
2552
|
}
|
|
1619
2553
|
const validatedProps = await validateSigningProperties(signingProperties);
|
|
@@ -1659,21 +2593,21 @@ var AwsSdkSigV4Signer = class {
|
|
|
1659
2593
|
};
|
|
1660
2594
|
|
|
1661
2595
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.879.0/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js
|
|
1662
|
-
|
|
2596
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1663
2597
|
|
|
1664
2598
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.879.0/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.js
|
|
1665
|
-
|
|
1666
|
-
var getArrayForCommaSeparatedString = /* @__PURE__ */
|
|
2599
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2600
|
+
var getArrayForCommaSeparatedString = /* @__PURE__ */ _24WEKBY3_cjs.__name((str) => typeof str === "string" && str.length > 0 ? str.split(",").map((item) => item.trim()) : [], "getArrayForCommaSeparatedString");
|
|
1667
2601
|
|
|
1668
2602
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.879.0/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.js
|
|
1669
|
-
|
|
1670
|
-
var getBearerTokenEnvKey = /* @__PURE__ */
|
|
2603
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2604
|
+
var getBearerTokenEnvKey = /* @__PURE__ */ _24WEKBY3_cjs.__name((signingName) => `AWS_BEARER_TOKEN_${signingName.replace(/[\s-]/g, "_").toUpperCase()}`, "getBearerTokenEnvKey");
|
|
1671
2605
|
|
|
1672
2606
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.879.0/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js
|
|
1673
2607
|
var NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY = "AWS_AUTH_SCHEME_PREFERENCE";
|
|
1674
2608
|
var NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY = "auth_scheme_preference";
|
|
1675
2609
|
var NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
|
|
1676
|
-
environmentVariableSelector: /* @__PURE__ */
|
|
2610
|
+
environmentVariableSelector: /* @__PURE__ */ _24WEKBY3_cjs.__name((env2, options) => {
|
|
1677
2611
|
if (options?.signingName) {
|
|
1678
2612
|
const bearerTokenKey = getBearerTokenEnvKey(options.signingName);
|
|
1679
2613
|
if (bearerTokenKey in env2) return [
|
|
@@ -1683,7 +2617,7 @@ var NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
|
|
|
1683
2617
|
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env2)) return void 0;
|
|
1684
2618
|
return getArrayForCommaSeparatedString(env2[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY]);
|
|
1685
2619
|
}, "environmentVariableSelector"),
|
|
1686
|
-
configFileSelector: /* @__PURE__ */
|
|
2620
|
+
configFileSelector: /* @__PURE__ */ _24WEKBY3_cjs.__name((profile) => {
|
|
1687
2621
|
if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile)) return void 0;
|
|
1688
2622
|
return getArrayForCommaSeparatedString(profile[NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY]);
|
|
1689
2623
|
}, "configFileSelector"),
|
|
@@ -1691,16 +2625,13 @@ var NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
|
|
|
1691
2625
|
};
|
|
1692
2626
|
|
|
1693
2627
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.879.0/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.1.3/node_modules/@smithy/signature-v4/dist-es/index.js
|
|
1697
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2628
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1698
2629
|
|
|
1699
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.
|
|
1700
|
-
|
|
2630
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.3.5/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js
|
|
2631
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1701
2632
|
|
|
1702
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.
|
|
1703
|
-
|
|
2633
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.3.5/node_modules/@smithy/signature-v4/dist-es/constants.js
|
|
2634
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1704
2635
|
var ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm";
|
|
1705
2636
|
var CREDENTIAL_QUERY_PARAM = "X-Amz-Credential";
|
|
1706
2637
|
var AMZ_DATE_QUERY_PARAM = "X-Amz-Date";
|
|
@@ -1745,14 +2676,14 @@ var MAX_CACHE_SIZE = 50;
|
|
|
1745
2676
|
var KEY_TYPE_IDENTIFIER = "aws4_request";
|
|
1746
2677
|
var MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7;
|
|
1747
2678
|
|
|
1748
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.
|
|
1749
|
-
|
|
2679
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.3.5/node_modules/@smithy/signature-v4/dist-es/credentialDerivation.js
|
|
2680
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1750
2681
|
var signingKeyCache = {};
|
|
1751
2682
|
var cacheQueue = [];
|
|
1752
|
-
var createScope = /* @__PURE__ */
|
|
1753
|
-
var getSigningKey = /* @__PURE__ */
|
|
2683
|
+
var createScope = /* @__PURE__ */ _24WEKBY3_cjs.__name((shortDate, region, service) => `${shortDate}/${region}/${service}/${KEY_TYPE_IDENTIFIER}`, "createScope");
|
|
2684
|
+
var getSigningKey = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (sha256Constructor, credentials, shortDate, region, service) => {
|
|
1754
2685
|
const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId);
|
|
1755
|
-
const cacheKey = `${shortDate}:${region}:${service}:${
|
|
2686
|
+
const cacheKey = `${shortDate}:${region}:${service}:${Q5L3QIKZ_cjs.toHex(credsHash)}:${credentials.sessionToken}`;
|
|
1756
2687
|
if (cacheKey in signingKeyCache) {
|
|
1757
2688
|
return signingKeyCache[cacheKey];
|
|
1758
2689
|
}
|
|
@@ -1771,15 +2702,15 @@ var getSigningKey = /* @__PURE__ */ U7VZULNU_cjs.__name(async (sha256Constructor
|
|
|
1771
2702
|
}
|
|
1772
2703
|
return signingKeyCache[cacheKey] = key;
|
|
1773
2704
|
}, "getSigningKey");
|
|
1774
|
-
var hmac = /* @__PURE__ */
|
|
2705
|
+
var hmac = /* @__PURE__ */ _24WEKBY3_cjs.__name((ctor, secret, data) => {
|
|
1775
2706
|
const hash = new ctor(secret);
|
|
1776
|
-
hash.update(
|
|
2707
|
+
hash.update(toUint8Array(data));
|
|
1777
2708
|
return hash.digest();
|
|
1778
2709
|
}, "hmac");
|
|
1779
2710
|
|
|
1780
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.
|
|
1781
|
-
|
|
1782
|
-
var getCanonicalHeaders = /* @__PURE__ */
|
|
2711
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.3.5/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js
|
|
2712
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2713
|
+
var getCanonicalHeaders = /* @__PURE__ */ _24WEKBY3_cjs.__name(({ headers }, unsignableHeaders, signableHeaders) => {
|
|
1783
2714
|
const canonical = {};
|
|
1784
2715
|
for (const headerName of Object.keys(headers).sort()) {
|
|
1785
2716
|
if (headers[headerName] == void 0) {
|
|
@@ -1796,9 +2727,9 @@ var getCanonicalHeaders = /* @__PURE__ */ U7VZULNU_cjs.__name(({ headers }, unsi
|
|
|
1796
2727
|
return canonical;
|
|
1797
2728
|
}, "getCanonicalHeaders");
|
|
1798
2729
|
|
|
1799
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.
|
|
1800
|
-
|
|
1801
|
-
var getPayloadHash = /* @__PURE__ */
|
|
2730
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.3.5/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js
|
|
2731
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2732
|
+
var getPayloadHash = /* @__PURE__ */ _24WEKBY3_cjs.__name(async ({ headers, body }, hashConstructor) => {
|
|
1802
2733
|
for (const headerName of Object.keys(headers)) {
|
|
1803
2734
|
if (headerName.toLowerCase() === SHA256_HEADER) {
|
|
1804
2735
|
return headers[headerName];
|
|
@@ -1806,24 +2737,24 @@ var getPayloadHash = /* @__PURE__ */ U7VZULNU_cjs.__name(async ({ headers, body
|
|
|
1806
2737
|
}
|
|
1807
2738
|
if (body == void 0) {
|
|
1808
2739
|
return "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";
|
|
1809
|
-
} else if (typeof body === "string" || ArrayBuffer.isView(body) ||
|
|
2740
|
+
} else if (typeof body === "string" || ArrayBuffer.isView(body) || FDH37YWR_cjs.isArrayBuffer(body)) {
|
|
1810
2741
|
const hashCtor = new hashConstructor();
|
|
1811
|
-
hashCtor.update(
|
|
1812
|
-
return
|
|
2742
|
+
hashCtor.update(toUint8Array(body));
|
|
2743
|
+
return Q5L3QIKZ_cjs.toHex(await hashCtor.digest());
|
|
1813
2744
|
}
|
|
1814
2745
|
return UNSIGNED_PAYLOAD;
|
|
1815
2746
|
}, "getPayloadHash");
|
|
1816
2747
|
|
|
1817
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.
|
|
1818
|
-
|
|
2748
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.3.5/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js
|
|
2749
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1819
2750
|
var HeaderFormatter = class {
|
|
1820
2751
|
static {
|
|
1821
|
-
|
|
2752
|
+
_24WEKBY3_cjs.__name(this, "HeaderFormatter");
|
|
1822
2753
|
}
|
|
1823
2754
|
format(headers) {
|
|
1824
2755
|
const chunks = [];
|
|
1825
2756
|
for (const headerName of Object.keys(headers)) {
|
|
1826
|
-
const bytes =
|
|
2757
|
+
const bytes = FDH37YWR_cjs.fromUtf8(headerName);
|
|
1827
2758
|
chunks.push(Uint8Array.from([
|
|
1828
2759
|
bytes.byteLength
|
|
1829
2760
|
]), bytes, this.formatHeaderValue(headers[headerName]));
|
|
@@ -1870,7 +2801,7 @@ var HeaderFormatter = class {
|
|
|
1870
2801
|
binBytes.set(header.value, 3);
|
|
1871
2802
|
return binBytes;
|
|
1872
2803
|
case "string":
|
|
1873
|
-
const utf8Bytes =
|
|
2804
|
+
const utf8Bytes = FDH37YWR_cjs.fromUtf8(header.value);
|
|
1874
2805
|
const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
|
|
1875
2806
|
strView.setUint8(0, 7);
|
|
1876
2807
|
strView.setUint16(1, utf8Bytes.byteLength, false);
|
|
@@ -1888,7 +2819,7 @@ var HeaderFormatter = class {
|
|
|
1888
2819
|
}
|
|
1889
2820
|
const uuidBytes = new Uint8Array(17);
|
|
1890
2821
|
uuidBytes[0] = 9;
|
|
1891
|
-
uuidBytes.set(
|
|
2822
|
+
uuidBytes.set(Q5L3QIKZ_cjs.fromHex(header.value.replace(/\-/g, "")), 1);
|
|
1892
2823
|
return uuidBytes;
|
|
1893
2824
|
}
|
|
1894
2825
|
}
|
|
@@ -1909,8 +2840,9 @@ var HEADER_VALUE_TYPE;
|
|
|
1909
2840
|
var UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
|
|
1910
2841
|
var Int64 = class _Int64 {
|
|
1911
2842
|
static {
|
|
1912
|
-
|
|
2843
|
+
_24WEKBY3_cjs.__name(this, "Int64");
|
|
1913
2844
|
}
|
|
2845
|
+
bytes;
|
|
1914
2846
|
constructor(bytes) {
|
|
1915
2847
|
this.bytes = bytes;
|
|
1916
2848
|
if (bytes.byteLength !== 8) {
|
|
@@ -1936,7 +2868,7 @@ var Int64 = class _Int64 {
|
|
|
1936
2868
|
if (negative) {
|
|
1937
2869
|
negate(bytes);
|
|
1938
2870
|
}
|
|
1939
|
-
return parseInt(
|
|
2871
|
+
return parseInt(Q5L3QIKZ_cjs.toHex(bytes), 16) * (negative ? -1 : 1);
|
|
1940
2872
|
}
|
|
1941
2873
|
toString() {
|
|
1942
2874
|
return String(this.valueOf());
|
|
@@ -1951,11 +2883,11 @@ function negate(bytes) {
|
|
|
1951
2883
|
if (bytes[i] !== 0) break;
|
|
1952
2884
|
}
|
|
1953
2885
|
}
|
|
1954
|
-
|
|
2886
|
+
_24WEKBY3_cjs.__name(negate, "negate");
|
|
1955
2887
|
|
|
1956
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.
|
|
1957
|
-
|
|
1958
|
-
var hasHeader = /* @__PURE__ */
|
|
2888
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.3.5/node_modules/@smithy/signature-v4/dist-es/headerUtil.js
|
|
2889
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2890
|
+
var hasHeader = /* @__PURE__ */ _24WEKBY3_cjs.__name((soughtHeader, headers) => {
|
|
1959
2891
|
soughtHeader = soughtHeader.toLowerCase();
|
|
1960
2892
|
for (const headerName of Object.keys(headers)) {
|
|
1961
2893
|
if (soughtHeader === headerName.toLowerCase()) {
|
|
@@ -1965,10 +2897,10 @@ var hasHeader = /* @__PURE__ */ U7VZULNU_cjs.__name((soughtHeader, headers) => {
|
|
|
1965
2897
|
return false;
|
|
1966
2898
|
}, "hasHeader");
|
|
1967
2899
|
|
|
1968
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.
|
|
1969
|
-
|
|
1970
|
-
var moveHeadersToQuery = /* @__PURE__ */
|
|
1971
|
-
const { headers, query = {} } =
|
|
2900
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.3.5/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js
|
|
2901
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2902
|
+
var moveHeadersToQuery = /* @__PURE__ */ _24WEKBY3_cjs.__name((request, options = {}) => {
|
|
2903
|
+
const { headers, query = {} } = Q5L3QIKZ_cjs.HttpRequest.clone(request);
|
|
1972
2904
|
for (const name of Object.keys(headers)) {
|
|
1973
2905
|
const lname = name.toLowerCase();
|
|
1974
2906
|
if (lname.slice(0, 6) === "x-amz-" && !options.unhoistableHeaders?.has(lname) || options.hoistableHeaders?.has(lname)) {
|
|
@@ -1983,10 +2915,10 @@ var moveHeadersToQuery = /* @__PURE__ */ U7VZULNU_cjs.__name((request, options =
|
|
|
1983
2915
|
};
|
|
1984
2916
|
}, "moveHeadersToQuery");
|
|
1985
2917
|
|
|
1986
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.
|
|
1987
|
-
|
|
1988
|
-
var prepareRequest = /* @__PURE__ */
|
|
1989
|
-
request =
|
|
2918
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.3.5/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js
|
|
2919
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2920
|
+
var prepareRequest = /* @__PURE__ */ _24WEKBY3_cjs.__name((request) => {
|
|
2921
|
+
request = Q5L3QIKZ_cjs.HttpRequest.clone(request);
|
|
1990
2922
|
for (const headerName of Object.keys(request.headers)) {
|
|
1991
2923
|
if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) {
|
|
1992
2924
|
delete request.headers[headerName];
|
|
@@ -1995,36 +2927,36 @@ var prepareRequest = /* @__PURE__ */ U7VZULNU_cjs.__name((request) => {
|
|
|
1995
2927
|
return request;
|
|
1996
2928
|
}, "prepareRequest");
|
|
1997
2929
|
|
|
1998
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.
|
|
1999
|
-
|
|
2930
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.3.5/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js
|
|
2931
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2000
2932
|
|
|
2001
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.
|
|
2002
|
-
|
|
2003
|
-
var getCanonicalQuery = /* @__PURE__ */
|
|
2933
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.3.5/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js
|
|
2934
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2935
|
+
var getCanonicalQuery = /* @__PURE__ */ _24WEKBY3_cjs.__name(({ query = {} }) => {
|
|
2004
2936
|
const keys = [];
|
|
2005
2937
|
const serialized = {};
|
|
2006
2938
|
for (const key of Object.keys(query)) {
|
|
2007
2939
|
if (key.toLowerCase() === SIGNATURE_HEADER) {
|
|
2008
2940
|
continue;
|
|
2009
2941
|
}
|
|
2010
|
-
const encodedKey =
|
|
2942
|
+
const encodedKey = Q5L3QIKZ_cjs.escapeUri(key);
|
|
2011
2943
|
keys.push(encodedKey);
|
|
2012
2944
|
const value = query[key];
|
|
2013
2945
|
if (typeof value === "string") {
|
|
2014
|
-
serialized[encodedKey] = `${encodedKey}=${
|
|
2946
|
+
serialized[encodedKey] = `${encodedKey}=${Q5L3QIKZ_cjs.escapeUri(value)}`;
|
|
2015
2947
|
} else if (Array.isArray(value)) {
|
|
2016
2948
|
serialized[encodedKey] = value.slice(0).reduce((encoded, value2) => encoded.concat([
|
|
2017
|
-
`${encodedKey}=${
|
|
2949
|
+
`${encodedKey}=${Q5L3QIKZ_cjs.escapeUri(value2)}`
|
|
2018
2950
|
]), []).sort().join("&");
|
|
2019
2951
|
}
|
|
2020
2952
|
}
|
|
2021
2953
|
return keys.sort().map((key) => serialized[key]).filter((serialized2) => serialized2).join("&");
|
|
2022
2954
|
}, "getCanonicalQuery");
|
|
2023
2955
|
|
|
2024
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.
|
|
2025
|
-
|
|
2026
|
-
var iso8601 = /* @__PURE__ */
|
|
2027
|
-
var toDate = /* @__PURE__ */
|
|
2956
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.3.5/node_modules/@smithy/signature-v4/dist-es/utilDate.js
|
|
2957
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2958
|
+
var iso8601 = /* @__PURE__ */ _24WEKBY3_cjs.__name((time) => toDate(time).toISOString().replace(/\.\d{3}Z$/, "Z"), "iso8601");
|
|
2959
|
+
var toDate = /* @__PURE__ */ _24WEKBY3_cjs.__name((time) => {
|
|
2028
2960
|
if (typeof time === "number") {
|
|
2029
2961
|
return new Date(time * 1e3);
|
|
2030
2962
|
}
|
|
@@ -2037,11 +2969,17 @@ var toDate = /* @__PURE__ */ U7VZULNU_cjs.__name((time) => {
|
|
|
2037
2969
|
return time;
|
|
2038
2970
|
}, "toDate");
|
|
2039
2971
|
|
|
2040
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.
|
|
2972
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.3.5/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js
|
|
2041
2973
|
var SignatureV4Base = class {
|
|
2042
2974
|
static {
|
|
2043
|
-
|
|
2044
|
-
}
|
|
2975
|
+
_24WEKBY3_cjs.__name(this, "SignatureV4Base");
|
|
2976
|
+
}
|
|
2977
|
+
service;
|
|
2978
|
+
regionProvider;
|
|
2979
|
+
credentialProvider;
|
|
2980
|
+
sha256;
|
|
2981
|
+
uriEscapePath;
|
|
2982
|
+
applyChecksum;
|
|
2045
2983
|
constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true }) {
|
|
2046
2984
|
this.service = service;
|
|
2047
2985
|
this.sha256 = sha256;
|
|
@@ -2062,12 +3000,12 @@ ${payloadHash}`;
|
|
|
2062
3000
|
}
|
|
2063
3001
|
async createStringToSign(longDate, credentialScope, canonicalRequest, algorithmIdentifier) {
|
|
2064
3002
|
const hash = new this.sha256();
|
|
2065
|
-
hash.update(
|
|
3003
|
+
hash.update(toUint8Array(canonicalRequest));
|
|
2066
3004
|
const hashedRequest = await hash.digest();
|
|
2067
3005
|
return `${algorithmIdentifier}
|
|
2068
3006
|
${longDate}
|
|
2069
3007
|
${credentialScope}
|
|
2070
|
-
${
|
|
3008
|
+
${Q5L3QIKZ_cjs.toHex(hashedRequest)}`;
|
|
2071
3009
|
}
|
|
2072
3010
|
getCanonicalPath({ path }) {
|
|
2073
3011
|
if (this.uriEscapePath) {
|
|
@@ -2082,7 +3020,7 @@ ${OT5L7ME6_cjs.toHex(hashedRequest)}`;
|
|
|
2082
3020
|
}
|
|
2083
3021
|
}
|
|
2084
3022
|
const normalizedPath = `${path?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path?.endsWith("/") ? "/" : ""}`;
|
|
2085
|
-
const doubleEncoded =
|
|
3023
|
+
const doubleEncoded = Q5L3QIKZ_cjs.escapeUri(normalizedPath);
|
|
2086
3024
|
return doubleEncoded.replace(/%2F/g, "/");
|
|
2087
3025
|
}
|
|
2088
3026
|
return path;
|
|
@@ -2104,11 +3042,12 @@ ${OT5L7ME6_cjs.toHex(hashedRequest)}`;
|
|
|
2104
3042
|
}
|
|
2105
3043
|
};
|
|
2106
3044
|
|
|
2107
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.
|
|
3045
|
+
// ../../node_modules/.pnpm/@smithy+signature-v4@5.3.5/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js
|
|
2108
3046
|
var SignatureV4 = class extends SignatureV4Base {
|
|
2109
3047
|
static {
|
|
2110
|
-
|
|
3048
|
+
_24WEKBY3_cjs.__name(this, "SignatureV4");
|
|
2111
3049
|
}
|
|
3050
|
+
headerFormatter = new HeaderFormatter();
|
|
2112
3051
|
constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true }) {
|
|
2113
3052
|
super({
|
|
2114
3053
|
applyChecksum,
|
|
@@ -2118,7 +3057,6 @@ var SignatureV4 = class extends SignatureV4Base {
|
|
|
2118
3057
|
sha256,
|
|
2119
3058
|
uriEscapePath
|
|
2120
3059
|
});
|
|
2121
|
-
this.headerFormatter = new HeaderFormatter();
|
|
2122
3060
|
}
|
|
2123
3061
|
async presign(originalRequest, options = {}) {
|
|
2124
3062
|
const { signingDate = /* @__PURE__ */ new Date(), expiresIn = 3600, unsignableHeaders, unhoistableHeaders, signableHeaders, hoistableHeaders, signingRegion, signingService } = options;
|
|
@@ -2167,7 +3105,7 @@ var SignatureV4 = class extends SignatureV4Base {
|
|
|
2167
3105
|
}, this.sha256);
|
|
2168
3106
|
const hash = new this.sha256();
|
|
2169
3107
|
hash.update(headers);
|
|
2170
|
-
const hashedHeaders =
|
|
3108
|
+
const hashedHeaders = Q5L3QIKZ_cjs.toHex(await hash.digest());
|
|
2171
3109
|
const stringToSign = [
|
|
2172
3110
|
EVENT_ALGORITHM_IDENTIFIER,
|
|
2173
3111
|
longDate,
|
|
@@ -2205,8 +3143,8 @@ var SignatureV4 = class extends SignatureV4Base {
|
|
|
2205
3143
|
const region = signingRegion ?? await this.regionProvider();
|
|
2206
3144
|
const { shortDate } = this.formatDate(signingDate);
|
|
2207
3145
|
const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService));
|
|
2208
|
-
hash.update(
|
|
2209
|
-
return
|
|
3146
|
+
hash.update(toUint8Array(stringToSign));
|
|
3147
|
+
return Q5L3QIKZ_cjs.toHex(await hash.digest());
|
|
2210
3148
|
}
|
|
2211
3149
|
async signRequest(requestToSign, { signingDate = /* @__PURE__ */ new Date(), signableHeaders, unsignableHeaders, signingRegion, signingService } = {}) {
|
|
2212
3150
|
const credentials = await this.credentialProvider();
|
|
@@ -2231,19 +3169,16 @@ var SignatureV4 = class extends SignatureV4Base {
|
|
|
2231
3169
|
async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) {
|
|
2232
3170
|
const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest, ALGORITHM_IDENTIFIER);
|
|
2233
3171
|
const hash = new this.sha256(await keyPromise);
|
|
2234
|
-
hash.update(
|
|
2235
|
-
return
|
|
3172
|
+
hash.update(toUint8Array(stringToSign));
|
|
3173
|
+
return Q5L3QIKZ_cjs.toHex(await hash.digest());
|
|
2236
3174
|
}
|
|
2237
3175
|
getSigningKey(credentials, region, shortDate, service) {
|
|
2238
3176
|
return getSigningKey(this.sha256, credentials, shortDate, region, service || this.service);
|
|
2239
3177
|
}
|
|
2240
3178
|
};
|
|
2241
3179
|
|
|
2242
|
-
// ../../node_modules/.pnpm/@smithy+signature-v4@5.1.3/node_modules/@smithy/signature-v4/dist-es/signature-v4a-container.js
|
|
2243
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2244
|
-
|
|
2245
3180
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.879.0/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js
|
|
2246
|
-
var resolveAwsSdkSigV4Config = /* @__PURE__ */
|
|
3181
|
+
var resolveAwsSdkSigV4Config = /* @__PURE__ */ _24WEKBY3_cjs.__name((config) => {
|
|
2247
3182
|
let inputCredentials = config.credentials;
|
|
2248
3183
|
let isUserSupplied = !!config.credentials;
|
|
2249
3184
|
let resolvedCredentials = void 0;
|
|
@@ -2259,7 +3194,7 @@ var resolveAwsSdkSigV4Config = /* @__PURE__ */ U7VZULNU_cjs.__name((config) => {
|
|
|
2259
3194
|
});
|
|
2260
3195
|
const boundProvider = bindCallerConfig(config, memoizedProvider);
|
|
2261
3196
|
if (isUserSupplied && !boundProvider.attributed) {
|
|
2262
|
-
resolvedCredentials = /* @__PURE__ */
|
|
3197
|
+
resolvedCredentials = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (options) => boundProvider(options).then((creds) => _3NXVR3DC_cjs.setCredentialFeature(creds, "CREDENTIALS_CODE", "e")), "resolvedCredentials");
|
|
2263
3198
|
resolvedCredentials.memoized = boundProvider.memoized;
|
|
2264
3199
|
resolvedCredentials.configBound = boundProvider.configBound;
|
|
2265
3200
|
resolvedCredentials.attributed = true;
|
|
@@ -2279,7 +3214,7 @@ var resolveAwsSdkSigV4Config = /* @__PURE__ */ U7VZULNU_cjs.__name((config) => {
|
|
|
2279
3214
|
if (config.signer) {
|
|
2280
3215
|
signer = normalizeProvider2(config.signer);
|
|
2281
3216
|
} else if (config.regionInfoProvider) {
|
|
2282
|
-
signer = /* @__PURE__ */
|
|
3217
|
+
signer = /* @__PURE__ */ _24WEKBY3_cjs.__name(() => normalizeProvider2(config.region)().then(async (region) => [
|
|
2283
3218
|
await config.regionInfoProvider(region, {
|
|
2284
3219
|
useFipsEndpoint: await config.useFipsEndpoint(),
|
|
2285
3220
|
useDualstackEndpoint: await config.useDualstackEndpoint()
|
|
@@ -2301,7 +3236,7 @@ var resolveAwsSdkSigV4Config = /* @__PURE__ */ U7VZULNU_cjs.__name((config) => {
|
|
|
2301
3236
|
return new SignerCtor(params);
|
|
2302
3237
|
}), "signer");
|
|
2303
3238
|
} else {
|
|
2304
|
-
signer = /* @__PURE__ */
|
|
3239
|
+
signer = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (authScheme) => {
|
|
2305
3240
|
authScheme = Object.assign({}, {
|
|
2306
3241
|
name: "sigv4",
|
|
2307
3242
|
signingName: config.signingName || config.defaultSigningName,
|
|
@@ -2345,7 +3280,7 @@ function normalizeCredentialProvider(config, { credentials, credentialDefaultPro
|
|
|
2345
3280
|
parentClientConfig: config
|
|
2346
3281
|
})));
|
|
2347
3282
|
} else {
|
|
2348
|
-
credentialsProvider = /* @__PURE__ */
|
|
3283
|
+
credentialsProvider = /* @__PURE__ */ _24WEKBY3_cjs.__name(async () => {
|
|
2349
3284
|
throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.");
|
|
2350
3285
|
}, "credentialsProvider");
|
|
2351
3286
|
}
|
|
@@ -2353,12 +3288,12 @@ function normalizeCredentialProvider(config, { credentials, credentialDefaultPro
|
|
|
2353
3288
|
credentialsProvider.memoized = true;
|
|
2354
3289
|
return credentialsProvider;
|
|
2355
3290
|
}
|
|
2356
|
-
|
|
3291
|
+
_24WEKBY3_cjs.__name(normalizeCredentialProvider, "normalizeCredentialProvider");
|
|
2357
3292
|
function bindCallerConfig(config, credentialsProvider) {
|
|
2358
3293
|
if (credentialsProvider.configBound) {
|
|
2359
3294
|
return credentialsProvider;
|
|
2360
3295
|
}
|
|
2361
|
-
const fn = /* @__PURE__ */
|
|
3296
|
+
const fn = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (options) => credentialsProvider({
|
|
2362
3297
|
...options,
|
|
2363
3298
|
callerClientConfig: config
|
|
2364
3299
|
}), "fn");
|
|
@@ -2366,11 +3301,161 @@ function bindCallerConfig(config, credentialsProvider) {
|
|
|
2366
3301
|
fn.configBound = true;
|
|
2367
3302
|
return fn;
|
|
2368
3303
|
}
|
|
2369
|
-
|
|
3304
|
+
_24WEKBY3_cjs.__name(bindCallerConfig, "bindCallerConfig");
|
|
3305
|
+
|
|
3306
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.879.0/node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js
|
|
3307
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3308
|
+
|
|
3309
|
+
// ../../node_modules/.pnpm/@smithy+smithy-client@4.9.8/node_modules/@smithy/smithy-client/dist-es/collect-stream-body.js
|
|
3310
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3311
|
+
|
|
3312
|
+
// ../../node_modules/.pnpm/@smithy+smithy-client@4.9.8/node_modules/@smithy/smithy-client/dist-es/default-error-handler.js
|
|
3313
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3314
|
+
var throwDefaultError = /* @__PURE__ */ _24WEKBY3_cjs.__name(({ output, parsedBody, exceptionCtor, errorCode }) => {
|
|
3315
|
+
const $metadata = deserializeMetadata(output);
|
|
3316
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : void 0;
|
|
3317
|
+
const response = new exceptionCtor({
|
|
3318
|
+
name: parsedBody?.code || parsedBody?.Code || errorCode || statusCode || "UnknownError",
|
|
3319
|
+
$fault: "client",
|
|
3320
|
+
$metadata
|
|
3321
|
+
});
|
|
3322
|
+
throw decorateServiceException(response, parsedBody);
|
|
3323
|
+
}, "throwDefaultError");
|
|
3324
|
+
var withBaseException = /* @__PURE__ */ _24WEKBY3_cjs.__name((ExceptionCtor) => {
|
|
3325
|
+
return ({ output, parsedBody, errorCode }) => {
|
|
3326
|
+
throwDefaultError({
|
|
3327
|
+
output,
|
|
3328
|
+
parsedBody,
|
|
3329
|
+
exceptionCtor: ExceptionCtor,
|
|
3330
|
+
errorCode
|
|
3331
|
+
});
|
|
3332
|
+
};
|
|
3333
|
+
}, "withBaseException");
|
|
3334
|
+
var deserializeMetadata = /* @__PURE__ */ _24WEKBY3_cjs.__name((output) => ({
|
|
3335
|
+
httpStatusCode: output.statusCode,
|
|
3336
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3337
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3338
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
3339
|
+
}), "deserializeMetadata");
|
|
3340
|
+
|
|
3341
|
+
// ../../node_modules/.pnpm/@smithy+smithy-client@4.9.8/node_modules/@smithy/smithy-client/dist-es/defaults-mode.js
|
|
3342
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3343
|
+
var loadConfigsForDefaultMode = /* @__PURE__ */ _24WEKBY3_cjs.__name((mode) => {
|
|
3344
|
+
switch (mode) {
|
|
3345
|
+
case "standard":
|
|
3346
|
+
return {
|
|
3347
|
+
retryMode: "standard",
|
|
3348
|
+
connectionTimeout: 3100
|
|
3349
|
+
};
|
|
3350
|
+
case "in-region":
|
|
3351
|
+
return {
|
|
3352
|
+
retryMode: "standard",
|
|
3353
|
+
connectionTimeout: 1100
|
|
3354
|
+
};
|
|
3355
|
+
case "cross-region":
|
|
3356
|
+
return {
|
|
3357
|
+
retryMode: "standard",
|
|
3358
|
+
connectionTimeout: 3100
|
|
3359
|
+
};
|
|
3360
|
+
case "mobile":
|
|
3361
|
+
return {
|
|
3362
|
+
retryMode: "standard",
|
|
3363
|
+
connectionTimeout: 3e4
|
|
3364
|
+
};
|
|
3365
|
+
default:
|
|
3366
|
+
return {};
|
|
3367
|
+
}
|
|
3368
|
+
}, "loadConfigsForDefaultMode");
|
|
3369
|
+
|
|
3370
|
+
// ../../node_modules/.pnpm/@smithy+smithy-client@4.9.8/node_modules/@smithy/smithy-client/dist-es/emitWarningIfUnsupportedVersion.js
|
|
3371
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3372
|
+
var warningEmitted = false;
|
|
3373
|
+
var emitWarningIfUnsupportedVersion2 = /* @__PURE__ */ _24WEKBY3_cjs.__name((version) => {
|
|
3374
|
+
if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 16) {
|
|
3375
|
+
warningEmitted = true;
|
|
3376
|
+
}
|
|
3377
|
+
}, "emitWarningIfUnsupportedVersion");
|
|
3378
|
+
|
|
3379
|
+
// ../../node_modules/.pnpm/@smithy+smithy-client@4.9.8/node_modules/@smithy/smithy-client/dist-es/extensions/defaultExtensionConfiguration.js
|
|
3380
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3381
|
+
|
|
3382
|
+
// ../../node_modules/.pnpm/@smithy+smithy-client@4.9.8/node_modules/@smithy/smithy-client/dist-es/extensions/checksum.js
|
|
3383
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3384
|
+
var getChecksumConfiguration = /* @__PURE__ */ _24WEKBY3_cjs.__name((runtimeConfig) => {
|
|
3385
|
+
const checksumAlgorithms = [];
|
|
3386
|
+
for (const id in AlgorithmId) {
|
|
3387
|
+
const algorithmId = AlgorithmId[id];
|
|
3388
|
+
if (runtimeConfig[algorithmId] === void 0) {
|
|
3389
|
+
continue;
|
|
3390
|
+
}
|
|
3391
|
+
checksumAlgorithms.push({
|
|
3392
|
+
algorithmId: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => algorithmId, "algorithmId"),
|
|
3393
|
+
checksumConstructor: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => runtimeConfig[algorithmId], "checksumConstructor")
|
|
3394
|
+
});
|
|
3395
|
+
}
|
|
3396
|
+
return {
|
|
3397
|
+
addChecksumAlgorithm(algo) {
|
|
3398
|
+
checksumAlgorithms.push(algo);
|
|
3399
|
+
},
|
|
3400
|
+
checksumAlgorithms() {
|
|
3401
|
+
return checksumAlgorithms;
|
|
3402
|
+
}
|
|
3403
|
+
};
|
|
3404
|
+
}, "getChecksumConfiguration");
|
|
3405
|
+
var resolveChecksumRuntimeConfig = /* @__PURE__ */ _24WEKBY3_cjs.__name((clientConfig) => {
|
|
3406
|
+
const runtimeConfig = {};
|
|
3407
|
+
clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
|
|
3408
|
+
runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();
|
|
3409
|
+
});
|
|
3410
|
+
return runtimeConfig;
|
|
3411
|
+
}, "resolveChecksumRuntimeConfig");
|
|
3412
|
+
|
|
3413
|
+
// ../../node_modules/.pnpm/@smithy+smithy-client@4.9.8/node_modules/@smithy/smithy-client/dist-es/extensions/retry.js
|
|
3414
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3415
|
+
var getRetryConfiguration = /* @__PURE__ */ _24WEKBY3_cjs.__name((runtimeConfig) => {
|
|
3416
|
+
return {
|
|
3417
|
+
setRetryStrategy(retryStrategy) {
|
|
3418
|
+
runtimeConfig.retryStrategy = retryStrategy;
|
|
3419
|
+
},
|
|
3420
|
+
retryStrategy() {
|
|
3421
|
+
return runtimeConfig.retryStrategy;
|
|
3422
|
+
}
|
|
3423
|
+
};
|
|
3424
|
+
}, "getRetryConfiguration");
|
|
3425
|
+
var resolveRetryRuntimeConfig = /* @__PURE__ */ _24WEKBY3_cjs.__name((retryStrategyConfiguration) => {
|
|
3426
|
+
const runtimeConfig = {};
|
|
3427
|
+
runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy();
|
|
3428
|
+
return runtimeConfig;
|
|
3429
|
+
}, "resolveRetryRuntimeConfig");
|
|
3430
|
+
|
|
3431
|
+
// ../../node_modules/.pnpm/@smithy+smithy-client@4.9.8/node_modules/@smithy/smithy-client/dist-es/extensions/defaultExtensionConfiguration.js
|
|
3432
|
+
var getDefaultExtensionConfiguration = /* @__PURE__ */ _24WEKBY3_cjs.__name((runtimeConfig) => {
|
|
3433
|
+
return Object.assign(getChecksumConfiguration(runtimeConfig), getRetryConfiguration(runtimeConfig));
|
|
3434
|
+
}, "getDefaultExtensionConfiguration");
|
|
3435
|
+
var resolveDefaultRuntimeConfig = /* @__PURE__ */ _24WEKBY3_cjs.__name((config) => {
|
|
3436
|
+
return Object.assign(resolveChecksumRuntimeConfig(config), resolveRetryRuntimeConfig(config));
|
|
3437
|
+
}, "resolveDefaultRuntimeConfig");
|
|
3438
|
+
|
|
3439
|
+
// ../../node_modules/.pnpm/@smithy+smithy-client@4.9.8/node_modules/@smithy/smithy-client/dist-es/NoOpLogger.js
|
|
3440
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3441
|
+
var NoOpLogger = class {
|
|
3442
|
+
static {
|
|
3443
|
+
_24WEKBY3_cjs.__name(this, "NoOpLogger");
|
|
3444
|
+
}
|
|
3445
|
+
trace() {
|
|
3446
|
+
}
|
|
3447
|
+
debug() {
|
|
3448
|
+
}
|
|
3449
|
+
info() {
|
|
3450
|
+
}
|
|
3451
|
+
warn() {
|
|
3452
|
+
}
|
|
3453
|
+
error() {
|
|
3454
|
+
}
|
|
3455
|
+
};
|
|
2370
3456
|
|
|
2371
3457
|
// ../../node_modules/.pnpm/@aws-sdk+core@3.879.0/node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js
|
|
2372
|
-
|
|
2373
|
-
var collectBodyString = /* @__PURE__ */ U7VZULNU_cjs.__name((streamBody, context) => OT5L7ME6_cjs.collectBody(streamBody, context).then((body) => (context?.utf8Encoder ?? OWTMHDOF_cjs.toUtf8)(body)), "collectBodyString");
|
|
3458
|
+
var collectBodyString = /* @__PURE__ */ _24WEKBY3_cjs.__name((streamBody, context) => collectBody(streamBody, context).then((body) => (context?.utf8Encoder ?? FDH37YWR_cjs.toUtf8)(body)), "collectBodyString");
|
|
2374
3459
|
|
|
2375
3460
|
// ../../node_modules/.pnpm/@aws-sdk+middleware-user-agent@3.879.0/node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js
|
|
2376
3461
|
var ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/;
|
|
@@ -2419,10 +3504,10 @@ async function checkFeatures(context, config, args) {
|
|
|
2419
3504
|
}
|
|
2420
3505
|
}
|
|
2421
3506
|
}
|
|
2422
|
-
|
|
3507
|
+
_24WEKBY3_cjs.__name(checkFeatures, "checkFeatures");
|
|
2423
3508
|
|
|
2424
3509
|
// ../../node_modules/.pnpm/@aws-sdk+middleware-user-agent@3.879.0/node_modules/@aws-sdk/middleware-user-agent/dist-es/constants.js
|
|
2425
|
-
|
|
3510
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2426
3511
|
var USER_AGENT = "user-agent";
|
|
2427
3512
|
var X_AMZ_USER_AGENT = "x-amz-user-agent";
|
|
2428
3513
|
var SPACE = " ";
|
|
@@ -2432,7 +3517,7 @@ var UA_VALUE_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g;
|
|
|
2432
3517
|
var UA_ESCAPE_CHAR = "-";
|
|
2433
3518
|
|
|
2434
3519
|
// ../../node_modules/.pnpm/@aws-sdk+middleware-user-agent@3.879.0/node_modules/@aws-sdk/middleware-user-agent/dist-es/encode-features.js
|
|
2435
|
-
|
|
3520
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2436
3521
|
var BYTE_LIMIT = 1024;
|
|
2437
3522
|
function encodeFeatures(features) {
|
|
2438
3523
|
let buffer = "";
|
|
@@ -2450,12 +3535,12 @@ function encodeFeatures(features) {
|
|
|
2450
3535
|
}
|
|
2451
3536
|
return buffer;
|
|
2452
3537
|
}
|
|
2453
|
-
|
|
3538
|
+
_24WEKBY3_cjs.__name(encodeFeatures, "encodeFeatures");
|
|
2454
3539
|
|
|
2455
3540
|
// ../../node_modules/.pnpm/@aws-sdk+middleware-user-agent@3.879.0/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js
|
|
2456
|
-
var userAgentMiddleware = /* @__PURE__ */
|
|
3541
|
+
var userAgentMiddleware = /* @__PURE__ */ _24WEKBY3_cjs.__name((options) => (next, context) => async (args) => {
|
|
2457
3542
|
const { request } = args;
|
|
2458
|
-
if (!
|
|
3543
|
+
if (!Q5L3QIKZ_cjs.HttpRequest.isInstance(request)) {
|
|
2459
3544
|
return next(args);
|
|
2460
3545
|
}
|
|
2461
3546
|
const { headers } = request;
|
|
@@ -2496,7 +3581,7 @@ var userAgentMiddleware = /* @__PURE__ */ U7VZULNU_cjs.__name((options) => (next
|
|
|
2496
3581
|
request
|
|
2497
3582
|
});
|
|
2498
3583
|
}, "userAgentMiddleware");
|
|
2499
|
-
var escapeUserAgent = /* @__PURE__ */
|
|
3584
|
+
var escapeUserAgent = /* @__PURE__ */ _24WEKBY3_cjs.__name((userAgentPair) => {
|
|
2500
3585
|
const name = userAgentPair[0].split(UA_NAME_SEPARATOR).map((part) => part.replace(UA_NAME_ESCAPE_REGEX, UA_ESCAPE_CHAR)).join(UA_NAME_SEPARATOR);
|
|
2501
3586
|
const version = userAgentPair[1]?.replace(UA_VALUE_ESCAPE_REGEX, UA_ESCAPE_CHAR);
|
|
2502
3587
|
const prefixSeparatorIndex = name.indexOf(UA_NAME_SEPARATOR);
|
|
@@ -2530,46 +3615,60 @@ var getUserAgentMiddlewareOptions = {
|
|
|
2530
3615
|
],
|
|
2531
3616
|
override: true
|
|
2532
3617
|
};
|
|
2533
|
-
var getUserAgentPlugin = /* @__PURE__ */
|
|
2534
|
-
applyToStack: /* @__PURE__ */
|
|
3618
|
+
var getUserAgentPlugin = /* @__PURE__ */ _24WEKBY3_cjs.__name((config) => ({
|
|
3619
|
+
applyToStack: /* @__PURE__ */ _24WEKBY3_cjs.__name((clientStack) => {
|
|
2535
3620
|
clientStack.add(userAgentMiddleware(config), getUserAgentMiddlewareOptions);
|
|
2536
3621
|
}, "applyToStack")
|
|
2537
3622
|
}), "getUserAgentPlugin");
|
|
2538
3623
|
|
|
2539
3624
|
// ../../node_modules/.pnpm/@aws-sdk+middleware-user-agent@3.879.0/node_modules/@aws-sdk/middleware-user-agent/dist-es/index.js
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
// ../../node_modules/.pnpm/@smithy+config-resolver@4.
|
|
2543
|
-
|
|
3625
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3626
|
+
|
|
3627
|
+
// ../../node_modules/.pnpm/@smithy+config-resolver@4.4.3/node_modules/@smithy/config-resolver/dist-es/regionConfig/resolveRegionConfig.js
|
|
3628
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3629
|
+
|
|
3630
|
+
// ../../node_modules/.pnpm/@smithy+config-resolver@4.4.3/node_modules/@smithy/config-resolver/dist-es/regionConfig/checkRegion.js
|
|
3631
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3632
|
+
var validRegions = /* @__PURE__ */ new Set();
|
|
3633
|
+
var checkRegion = /* @__PURE__ */ _24WEKBY3_cjs.__name((region, check = isValidHostLabel) => {
|
|
3634
|
+
if (!validRegions.has(region) && !check(region)) {
|
|
3635
|
+
if (region === "*") {
|
|
3636
|
+
console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);
|
|
3637
|
+
} else {
|
|
3638
|
+
throw new Error(`Region not accepted: region="${region}" is not a valid hostname component.`);
|
|
3639
|
+
}
|
|
3640
|
+
} else {
|
|
3641
|
+
validRegions.add(region);
|
|
3642
|
+
}
|
|
3643
|
+
}, "checkRegion");
|
|
2544
3644
|
|
|
2545
|
-
// ../../node_modules/.pnpm/@smithy+config-resolver@4.
|
|
2546
|
-
|
|
3645
|
+
// ../../node_modules/.pnpm/@smithy+config-resolver@4.4.3/node_modules/@smithy/config-resolver/dist-es/regionConfig/getRealRegion.js
|
|
3646
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2547
3647
|
|
|
2548
|
-
// ../../node_modules/.pnpm/@smithy+config-resolver@4.
|
|
2549
|
-
|
|
2550
|
-
var isFipsRegion = /* @__PURE__ */
|
|
3648
|
+
// ../../node_modules/.pnpm/@smithy+config-resolver@4.4.3/node_modules/@smithy/config-resolver/dist-es/regionConfig/isFipsRegion.js
|
|
3649
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3650
|
+
var isFipsRegion = /* @__PURE__ */ _24WEKBY3_cjs.__name((region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")), "isFipsRegion");
|
|
2551
3651
|
|
|
2552
|
-
// ../../node_modules/.pnpm/@smithy+config-resolver@4.
|
|
2553
|
-
var getRealRegion = /* @__PURE__ */
|
|
3652
|
+
// ../../node_modules/.pnpm/@smithy+config-resolver@4.4.3/node_modules/@smithy/config-resolver/dist-es/regionConfig/getRealRegion.js
|
|
3653
|
+
var getRealRegion = /* @__PURE__ */ _24WEKBY3_cjs.__name((region) => isFipsRegion(region) ? [
|
|
2554
3654
|
"fips-aws-global",
|
|
2555
3655
|
"aws-fips"
|
|
2556
3656
|
].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region, "getRealRegion");
|
|
2557
3657
|
|
|
2558
|
-
// ../../node_modules/.pnpm/@smithy+config-resolver@4.
|
|
2559
|
-
var resolveRegionConfig = /* @__PURE__ */
|
|
3658
|
+
// ../../node_modules/.pnpm/@smithy+config-resolver@4.4.3/node_modules/@smithy/config-resolver/dist-es/regionConfig/resolveRegionConfig.js
|
|
3659
|
+
var resolveRegionConfig = /* @__PURE__ */ _24WEKBY3_cjs.__name((input) => {
|
|
2560
3660
|
const { region, useFipsEndpoint } = input;
|
|
2561
3661
|
if (!region) {
|
|
2562
3662
|
throw new Error("Region is missing");
|
|
2563
3663
|
}
|
|
2564
3664
|
return Object.assign(input, {
|
|
2565
|
-
region: /* @__PURE__ */
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
return getRealRegion(providedRegion);
|
|
3665
|
+
region: /* @__PURE__ */ _24WEKBY3_cjs.__name(async () => {
|
|
3666
|
+
const providedRegion = typeof region === "function" ? await region() : region;
|
|
3667
|
+
const realRegion = getRealRegion(providedRegion);
|
|
3668
|
+
checkRegion(realRegion);
|
|
3669
|
+
return realRegion;
|
|
2571
3670
|
}, "region"),
|
|
2572
|
-
useFipsEndpoint: /* @__PURE__ */
|
|
3671
|
+
useFipsEndpoint: /* @__PURE__ */ _24WEKBY3_cjs.__name(async () => {
|
|
2573
3672
|
const providedRegion = typeof region === "string" ? region : await region();
|
|
2574
3673
|
if (isFipsRegion(providedRegion)) {
|
|
2575
3674
|
return true;
|
|
@@ -2579,115 +3678,13 @@ var resolveRegionConfig = /* @__PURE__ */ U7VZULNU_cjs.__name((input) => {
|
|
|
2579
3678
|
});
|
|
2580
3679
|
}, "resolveRegionConfig");
|
|
2581
3680
|
|
|
2582
|
-
// ../../node_modules/.pnpm/@smithy+
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
// ../../node_modules/.pnpm/@smithy+config-resolver@4.1.5/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/index.js
|
|
2586
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2587
|
-
|
|
2588
|
-
// ../../node_modules/.pnpm/@smithy+config-resolver@4.1.5/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
|
|
2589
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2590
|
-
|
|
2591
|
-
// ../../node_modules/.pnpm/@smithy+util-config-provider@4.0.0/node_modules/@smithy/util-config-provider/dist-es/index.js
|
|
2592
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2593
|
-
|
|
2594
|
-
// ../../node_modules/.pnpm/@smithy+util-config-provider@4.0.0/node_modules/@smithy/util-config-provider/dist-es/booleanSelector.js
|
|
2595
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2596
|
-
var booleanSelector = /* @__PURE__ */ U7VZULNU_cjs.__name((obj, key, type) => {
|
|
2597
|
-
if (!(key in obj)) return void 0;
|
|
2598
|
-
if (obj[key] === "true") return true;
|
|
2599
|
-
if (obj[key] === "false") return false;
|
|
2600
|
-
throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`);
|
|
2601
|
-
}, "booleanSelector");
|
|
2602
|
-
|
|
2603
|
-
// ../../node_modules/.pnpm/@smithy+util-config-provider@4.0.0/node_modules/@smithy/util-config-provider/dist-es/numberSelector.js
|
|
2604
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2605
|
-
|
|
2606
|
-
// ../../node_modules/.pnpm/@smithy+util-config-provider@4.0.0/node_modules/@smithy/util-config-provider/dist-es/types.js
|
|
2607
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2608
|
-
var SelectorType;
|
|
2609
|
-
(function(SelectorType2) {
|
|
2610
|
-
SelectorType2["ENV"] = "env";
|
|
2611
|
-
SelectorType2["CONFIG"] = "shared config entry";
|
|
2612
|
-
})(SelectorType || (SelectorType = {}));
|
|
2613
|
-
|
|
2614
|
-
// ../../node_modules/.pnpm/@smithy+config-resolver@4.1.5/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
|
|
2615
|
-
var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT";
|
|
2616
|
-
var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint";
|
|
2617
|
-
var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
|
|
2618
|
-
environmentVariableSelector: /* @__PURE__ */ U7VZULNU_cjs.__name((env2) => booleanSelector(env2, ENV_USE_DUALSTACK_ENDPOINT, SelectorType.ENV), "environmentVariableSelector"),
|
|
2619
|
-
configFileSelector: /* @__PURE__ */ U7VZULNU_cjs.__name((profile) => booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT, SelectorType.CONFIG), "configFileSelector"),
|
|
2620
|
-
default: false
|
|
2621
|
-
};
|
|
2622
|
-
|
|
2623
|
-
// ../../node_modules/.pnpm/@smithy+config-resolver@4.1.5/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseFipsEndpointConfigOptions.js
|
|
2624
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2625
|
-
var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT";
|
|
2626
|
-
var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";
|
|
2627
|
-
var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
|
|
2628
|
-
environmentVariableSelector: /* @__PURE__ */ U7VZULNU_cjs.__name((env2) => booleanSelector(env2, ENV_USE_FIPS_ENDPOINT, SelectorType.ENV), "environmentVariableSelector"),
|
|
2629
|
-
configFileSelector: /* @__PURE__ */ U7VZULNU_cjs.__name((profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, SelectorType.CONFIG), "configFileSelector"),
|
|
2630
|
-
default: false
|
|
2631
|
-
};
|
|
2632
|
-
|
|
2633
|
-
// ../../node_modules/.pnpm/@smithy+config-resolver@4.1.5/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/resolveCustomEndpointsConfig.js
|
|
2634
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2635
|
-
|
|
2636
|
-
// ../../node_modules/.pnpm/@smithy+config-resolver@4.1.5/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/resolveEndpointsConfig.js
|
|
2637
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2638
|
-
|
|
2639
|
-
// ../../node_modules/.pnpm/@smithy+config-resolver@4.1.5/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/utils/getEndpointFromRegion.js
|
|
2640
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2641
|
-
|
|
2642
|
-
// ../../node_modules/.pnpm/@smithy+config-resolver@4.1.5/node_modules/@smithy/config-resolver/dist-es/regionConfig/index.js
|
|
2643
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2644
|
-
|
|
2645
|
-
// ../../node_modules/.pnpm/@smithy+config-resolver@4.1.5/node_modules/@smithy/config-resolver/dist-es/regionConfig/config.js
|
|
2646
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2647
|
-
var REGION_ENV_NAME = "AWS_REGION";
|
|
2648
|
-
var REGION_INI_NAME = "region";
|
|
2649
|
-
var NODE_REGION_CONFIG_OPTIONS = {
|
|
2650
|
-
environmentVariableSelector: /* @__PURE__ */ U7VZULNU_cjs.__name((env2) => env2[REGION_ENV_NAME], "environmentVariableSelector"),
|
|
2651
|
-
configFileSelector: /* @__PURE__ */ U7VZULNU_cjs.__name((profile) => profile[REGION_INI_NAME], "configFileSelector"),
|
|
2652
|
-
default: /* @__PURE__ */ U7VZULNU_cjs.__name(() => {
|
|
2653
|
-
throw new Error("Region is missing");
|
|
2654
|
-
}, "default")
|
|
2655
|
-
};
|
|
2656
|
-
var NODE_REGION_CONFIG_FILE_OPTIONS = {
|
|
2657
|
-
preferredFile: "credentials"
|
|
2658
|
-
};
|
|
2659
|
-
|
|
2660
|
-
// ../../node_modules/.pnpm/@smithy+config-resolver@4.1.5/node_modules/@smithy/config-resolver/dist-es/regionInfo/index.js
|
|
2661
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2662
|
-
|
|
2663
|
-
// ../../node_modules/.pnpm/@smithy+config-resolver@4.1.5/node_modules/@smithy/config-resolver/dist-es/regionInfo/PartitionHash.js
|
|
2664
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2665
|
-
|
|
2666
|
-
// ../../node_modules/.pnpm/@smithy+config-resolver@4.1.5/node_modules/@smithy/config-resolver/dist-es/regionInfo/RegionHash.js
|
|
2667
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2668
|
-
|
|
2669
|
-
// ../../node_modules/.pnpm/@smithy+config-resolver@4.1.5/node_modules/@smithy/config-resolver/dist-es/regionInfo/getRegionInfo.js
|
|
2670
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2671
|
-
|
|
2672
|
-
// ../../node_modules/.pnpm/@smithy+config-resolver@4.1.5/node_modules/@smithy/config-resolver/dist-es/regionInfo/getHostnameFromVariants.js
|
|
2673
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2674
|
-
|
|
2675
|
-
// ../../node_modules/.pnpm/@smithy+config-resolver@4.1.5/node_modules/@smithy/config-resolver/dist-es/regionInfo/getResolvedHostname.js
|
|
2676
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2677
|
-
|
|
2678
|
-
// ../../node_modules/.pnpm/@smithy+config-resolver@4.1.5/node_modules/@smithy/config-resolver/dist-es/regionInfo/getResolvedPartition.js
|
|
2679
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2680
|
-
|
|
2681
|
-
// ../../node_modules/.pnpm/@smithy+config-resolver@4.1.5/node_modules/@smithy/config-resolver/dist-es/regionInfo/getResolvedSigningRegion.js
|
|
2682
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2683
|
-
|
|
2684
|
-
// ../../node_modules/.pnpm/@smithy+middleware-content-length@4.0.5/node_modules/@smithy/middleware-content-length/dist-es/index.js
|
|
2685
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
3681
|
+
// ../../node_modules/.pnpm/@smithy+middleware-content-length@4.2.5/node_modules/@smithy/middleware-content-length/dist-es/index.js
|
|
3682
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2686
3683
|
var CONTENT_LENGTH_HEADER = "content-length";
|
|
2687
3684
|
function contentLengthMiddleware(bodyLengthChecker) {
|
|
2688
3685
|
return (next) => async (args) => {
|
|
2689
3686
|
const request = args.request;
|
|
2690
|
-
if (
|
|
3687
|
+
if (Q5L3QIKZ_cjs.HttpRequest.isInstance(request)) {
|
|
2691
3688
|
const { body, headers } = request;
|
|
2692
3689
|
if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) {
|
|
2693
3690
|
try {
|
|
@@ -2706,7 +3703,7 @@ function contentLengthMiddleware(bodyLengthChecker) {
|
|
|
2706
3703
|
});
|
|
2707
3704
|
};
|
|
2708
3705
|
}
|
|
2709
|
-
|
|
3706
|
+
_24WEKBY3_cjs.__name(contentLengthMiddleware, "contentLengthMiddleware");
|
|
2710
3707
|
var contentLengthMiddlewareOptions = {
|
|
2711
3708
|
step: "build",
|
|
2712
3709
|
tags: [
|
|
@@ -2716,27 +3713,24 @@ var contentLengthMiddlewareOptions = {
|
|
|
2716
3713
|
name: "contentLengthMiddleware",
|
|
2717
3714
|
override: true
|
|
2718
3715
|
};
|
|
2719
|
-
var getContentLengthPlugin = /* @__PURE__ */
|
|
2720
|
-
applyToStack: /* @__PURE__ */
|
|
3716
|
+
var getContentLengthPlugin = /* @__PURE__ */ _24WEKBY3_cjs.__name((options) => ({
|
|
3717
|
+
applyToStack: /* @__PURE__ */ _24WEKBY3_cjs.__name((clientStack) => {
|
|
2721
3718
|
clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), contentLengthMiddlewareOptions);
|
|
2722
3719
|
}, "applyToStack")
|
|
2723
3720
|
}), "getContentLengthPlugin");
|
|
2724
3721
|
|
|
2725
|
-
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.
|
|
2726
|
-
|
|
3722
|
+
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.3.12/node_modules/@smithy/middleware-endpoint/dist-es/getEndpointPlugin.js
|
|
3723
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2727
3724
|
|
|
2728
|
-
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.
|
|
2729
|
-
|
|
3725
|
+
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.3.12/node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js
|
|
3726
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2730
3727
|
|
|
2731
|
-
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.
|
|
2732
|
-
|
|
3728
|
+
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.3.12/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js
|
|
3729
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2733
3730
|
|
|
2734
|
-
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.1.20/node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js
|
|
2738
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
2739
|
-
var resolveParamsForS3 = /* @__PURE__ */ U7VZULNU_cjs.__name(async (endpointParams) => {
|
|
3731
|
+
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.3.12/node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js
|
|
3732
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3733
|
+
var resolveParamsForS3 = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (endpointParams) => {
|
|
2740
3734
|
const bucket = endpointParams?.Bucket || "";
|
|
2741
3735
|
if (typeof endpointParams.Bucket === "string") {
|
|
2742
3736
|
endpointParams.Bucket = bucket.replace(/#/g, encodeURIComponent("#")).replace(/\?/g, encodeURIComponent("?"));
|
|
@@ -2757,8 +3751,8 @@ var resolveParamsForS3 = /* @__PURE__ */ U7VZULNU_cjs.__name(async (endpointPara
|
|
|
2757
3751
|
var DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/;
|
|
2758
3752
|
var IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/;
|
|
2759
3753
|
var DOTS_PATTERN = /\.\./;
|
|
2760
|
-
var isDnsCompatibleBucketName = /* @__PURE__ */
|
|
2761
|
-
var isArnBucketName = /* @__PURE__ */
|
|
3754
|
+
var isDnsCompatibleBucketName = /* @__PURE__ */ _24WEKBY3_cjs.__name((bucketName) => DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName), "isDnsCompatibleBucketName");
|
|
3755
|
+
var isArnBucketName = /* @__PURE__ */ _24WEKBY3_cjs.__name((bucketName) => {
|
|
2762
3756
|
const [arn, partition2, service, , , bucket] = bucketName.split(":");
|
|
2763
3757
|
const isArn = arn === "arn" && bucketName.split(":").length >= 6;
|
|
2764
3758
|
const isValidArn = Boolean(isArn && partition2 && service && bucket);
|
|
@@ -2768,10 +3762,10 @@ var isArnBucketName = /* @__PURE__ */ U7VZULNU_cjs.__name((bucketName) => {
|
|
|
2768
3762
|
return isValidArn;
|
|
2769
3763
|
}, "isArnBucketName");
|
|
2770
3764
|
|
|
2771
|
-
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.
|
|
2772
|
-
|
|
2773
|
-
var createConfigValueProvider = /* @__PURE__ */
|
|
2774
|
-
const configProvider = /* @__PURE__ */
|
|
3765
|
+
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.3.12/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/createConfigValueProvider.js
|
|
3766
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3767
|
+
var createConfigValueProvider = /* @__PURE__ */ _24WEKBY3_cjs.__name((configKey, canonicalEndpointParamKey, config) => {
|
|
3768
|
+
const configProvider = /* @__PURE__ */ _24WEKBY3_cjs.__name(async () => {
|
|
2775
3769
|
const configValue = config[configKey] ?? config[canonicalEndpointParamKey];
|
|
2776
3770
|
if (typeof configValue === "function") {
|
|
2777
3771
|
return configValue();
|
|
@@ -2813,15 +3807,15 @@ var createConfigValueProvider = /* @__PURE__ */ U7VZULNU_cjs.__name((configKey,
|
|
|
2813
3807
|
return configProvider;
|
|
2814
3808
|
}, "createConfigValueProvider");
|
|
2815
3809
|
|
|
2816
|
-
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.
|
|
2817
|
-
|
|
3810
|
+
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.3.12/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.js
|
|
3811
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2818
3812
|
|
|
2819
|
-
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.
|
|
2820
|
-
|
|
3813
|
+
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.3.12/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointUrlConfig.js
|
|
3814
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2821
3815
|
var ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
|
|
2822
3816
|
var CONFIG_ENDPOINT_URL = "endpoint_url";
|
|
2823
|
-
var getEndpointUrlConfig = /* @__PURE__ */
|
|
2824
|
-
environmentVariableSelector: /* @__PURE__ */
|
|
3817
|
+
var getEndpointUrlConfig = /* @__PURE__ */ _24WEKBY3_cjs.__name((serviceId) => ({
|
|
3818
|
+
environmentVariableSelector: /* @__PURE__ */ _24WEKBY3_cjs.__name((env2) => {
|
|
2825
3819
|
const serviceSuffixParts = serviceId.split(" ").map((w) => w.toUpperCase());
|
|
2826
3820
|
const serviceEndpointUrl = env2[[
|
|
2827
3821
|
ENV_ENDPOINT_URL,
|
|
@@ -2832,18 +3826,18 @@ var getEndpointUrlConfig = /* @__PURE__ */ U7VZULNU_cjs.__name((serviceId) => ({
|
|
|
2832
3826
|
if (endpointUrl) return endpointUrl;
|
|
2833
3827
|
return void 0;
|
|
2834
3828
|
}, "environmentVariableSelector"),
|
|
2835
|
-
configFileSelector: /* @__PURE__ */
|
|
3829
|
+
configFileSelector: /* @__PURE__ */ _24WEKBY3_cjs.__name((profile, config) => {
|
|
2836
3830
|
if (config && profile.services) {
|
|
2837
3831
|
const servicesSection = config[[
|
|
2838
3832
|
"services",
|
|
2839
3833
|
profile.services
|
|
2840
|
-
].join(
|
|
3834
|
+
].join(QEUMSA6O_cjs.CONFIG_PREFIX_SEPARATOR)];
|
|
2841
3835
|
if (servicesSection) {
|
|
2842
3836
|
const servicePrefixParts = serviceId.split(" ").map((w) => w.toLowerCase());
|
|
2843
3837
|
const endpointUrl2 = servicesSection[[
|
|
2844
3838
|
servicePrefixParts.join("_"),
|
|
2845
3839
|
CONFIG_ENDPOINT_URL
|
|
2846
|
-
].join(
|
|
3840
|
+
].join(QEUMSA6O_cjs.CONFIG_PREFIX_SEPARATOR)];
|
|
2847
3841
|
if (endpointUrl2) return endpointUrl2;
|
|
2848
3842
|
}
|
|
2849
3843
|
}
|
|
@@ -2854,23 +3848,23 @@ var getEndpointUrlConfig = /* @__PURE__ */ U7VZULNU_cjs.__name((serviceId) => ({
|
|
|
2854
3848
|
default: void 0
|
|
2855
3849
|
}), "getEndpointUrlConfig");
|
|
2856
3850
|
|
|
2857
|
-
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.
|
|
2858
|
-
var getEndpointFromConfig = /* @__PURE__ */
|
|
3851
|
+
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.3.12/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.js
|
|
3852
|
+
var getEndpointFromConfig = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (serviceId) => UUMDUUBJ_cjs.loadConfig(getEndpointUrlConfig(serviceId ?? ""))(), "getEndpointFromConfig");
|
|
2859
3853
|
|
|
2860
|
-
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.
|
|
2861
|
-
|
|
2862
|
-
var toEndpointV1 = /* @__PURE__ */
|
|
3854
|
+
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.3.12/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js
|
|
3855
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3856
|
+
var toEndpointV1 = /* @__PURE__ */ _24WEKBY3_cjs.__name((endpoint) => {
|
|
2863
3857
|
if (typeof endpoint === "object") {
|
|
2864
3858
|
if ("url" in endpoint) {
|
|
2865
|
-
return
|
|
3859
|
+
return UUMDUUBJ_cjs.parseUrl(endpoint.url);
|
|
2866
3860
|
}
|
|
2867
3861
|
return endpoint;
|
|
2868
3862
|
}
|
|
2869
|
-
return
|
|
3863
|
+
return UUMDUUBJ_cjs.parseUrl(endpoint);
|
|
2870
3864
|
}, "toEndpointV1");
|
|
2871
3865
|
|
|
2872
|
-
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.
|
|
2873
|
-
var getEndpointFromInstructions = /* @__PURE__ */
|
|
3866
|
+
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.3.12/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js
|
|
3867
|
+
var getEndpointFromInstructions = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (commandInput, instructionsSupplier, clientConfig, context) => {
|
|
2874
3868
|
if (!clientConfig.isCustomEndpoint) {
|
|
2875
3869
|
let endpointFromConfig;
|
|
2876
3870
|
if (clientConfig.serviceConfiguredEndpoint) {
|
|
@@ -2890,7 +3884,7 @@ var getEndpointFromInstructions = /* @__PURE__ */ U7VZULNU_cjs.__name(async (com
|
|
|
2890
3884
|
const endpoint = clientConfig.endpointProvider(endpointParams, context);
|
|
2891
3885
|
return endpoint;
|
|
2892
3886
|
}, "getEndpointFromInstructions");
|
|
2893
|
-
var resolveParams = /* @__PURE__ */
|
|
3887
|
+
var resolveParams = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (commandInput, instructionsSupplier, clientConfig) => {
|
|
2894
3888
|
const endpointParams = {};
|
|
2895
3889
|
const instructions = instructionsSupplier?.getEndpointParameterInstructions?.() || {};
|
|
2896
3890
|
for (const [name, instruction] of Object.entries(instructions)) {
|
|
@@ -2921,8 +3915,8 @@ var resolveParams = /* @__PURE__ */ U7VZULNU_cjs.__name(async (commandInput, ins
|
|
|
2921
3915
|
return endpointParams;
|
|
2922
3916
|
}, "resolveParams");
|
|
2923
3917
|
|
|
2924
|
-
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.
|
|
2925
|
-
var endpointMiddleware = /* @__PURE__ */
|
|
3918
|
+
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.3.12/node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js
|
|
3919
|
+
var endpointMiddleware = /* @__PURE__ */ _24WEKBY3_cjs.__name(({ config, instructions }) => {
|
|
2926
3920
|
return (next, context) => async (args) => {
|
|
2927
3921
|
if (config.isCustomEndpoint) {
|
|
2928
3922
|
setFeature(context, "ENDPOINT_OVERRIDE", "N");
|
|
@@ -2958,7 +3952,7 @@ var endpointMiddleware = /* @__PURE__ */ U7VZULNU_cjs.__name(({ config, instruct
|
|
|
2958
3952
|
};
|
|
2959
3953
|
}, "endpointMiddleware");
|
|
2960
3954
|
|
|
2961
|
-
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.
|
|
3955
|
+
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.3.12/node_modules/@smithy/middleware-endpoint/dist-es/getEndpointPlugin.js
|
|
2962
3956
|
var endpointMiddlewareOptions = {
|
|
2963
3957
|
step: "serialize",
|
|
2964
3958
|
tags: [
|
|
@@ -2971,8 +3965,8 @@ var endpointMiddlewareOptions = {
|
|
|
2971
3965
|
relation: "before",
|
|
2972
3966
|
toMiddleware: serializerMiddlewareOption.name
|
|
2973
3967
|
};
|
|
2974
|
-
var getEndpointPlugin = /* @__PURE__ */
|
|
2975
|
-
applyToStack: /* @__PURE__ */
|
|
3968
|
+
var getEndpointPlugin = /* @__PURE__ */ _24WEKBY3_cjs.__name((config, instructions) => ({
|
|
3969
|
+
applyToStack: /* @__PURE__ */ _24WEKBY3_cjs.__name((clientStack) => {
|
|
2976
3970
|
clientStack.addRelativeTo(endpointMiddleware({
|
|
2977
3971
|
config,
|
|
2978
3972
|
instructions
|
|
@@ -2980,9 +3974,9 @@ var getEndpointPlugin = /* @__PURE__ */ U7VZULNU_cjs.__name((config, instruction
|
|
|
2980
3974
|
}, "applyToStack")
|
|
2981
3975
|
}), "getEndpointPlugin");
|
|
2982
3976
|
|
|
2983
|
-
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.
|
|
2984
|
-
|
|
2985
|
-
var resolveEndpointConfig = /* @__PURE__ */
|
|
3977
|
+
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.3.12/node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointConfig.js
|
|
3978
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3979
|
+
var resolveEndpointConfig = /* @__PURE__ */ _24WEKBY3_cjs.__name((input) => {
|
|
2986
3980
|
const tls = input.tls ?? true;
|
|
2987
3981
|
const { endpoint, useDualstackEndpoint, useFipsEndpoint } = input;
|
|
2988
3982
|
const customEndpointProvider = endpoint != null ? async () => toEndpointV1(await normalizeProvider(endpoint)()) : void 0;
|
|
@@ -3004,29 +3998,14 @@ var resolveEndpointConfig = /* @__PURE__ */ U7VZULNU_cjs.__name((input) => {
|
|
|
3004
3998
|
return resolvedConfig;
|
|
3005
3999
|
}, "resolveEndpointConfig");
|
|
3006
4000
|
|
|
3007
|
-
// ../../node_modules/.pnpm/@smithy+middleware-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.1.20/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/index.js
|
|
3011
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
3012
|
-
|
|
3013
|
-
// ../../node_modules/.pnpm/@smithy+middleware-endpoint@4.1.20/node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointRequiredConfig.js
|
|
3014
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
4001
|
+
// ../../node_modules/.pnpm/@smithy+middleware-retry@4.4.12/node_modules/@smithy/middleware-retry/dist-es/configurations.js
|
|
4002
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3015
4003
|
|
|
3016
|
-
// ../../node_modules/.pnpm/@smithy+
|
|
3017
|
-
|
|
4004
|
+
// ../../node_modules/.pnpm/@smithy+util-retry@4.2.5/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js
|
|
4005
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3018
4006
|
|
|
3019
|
-
// ../../node_modules/.pnpm/@smithy+
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
// ../../node_modules/.pnpm/@smithy+util-retry@4.0.7/node_modules/@smithy/util-retry/dist-es/index.js
|
|
3023
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
3024
|
-
|
|
3025
|
-
// ../../node_modules/.pnpm/@smithy+util-retry@4.0.7/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js
|
|
3026
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
3027
|
-
|
|
3028
|
-
// ../../node_modules/.pnpm/@smithy+util-retry@4.0.7/node_modules/@smithy/util-retry/dist-es/config.js
|
|
3029
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
4007
|
+
// ../../node_modules/.pnpm/@smithy+util-retry@4.2.5/node_modules/@smithy/util-retry/dist-es/config.js
|
|
4008
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3030
4009
|
var RETRY_MODES;
|
|
3031
4010
|
(function(RETRY_MODES2) {
|
|
3032
4011
|
RETRY_MODES2["STANDARD"] = "standard";
|
|
@@ -3035,14 +4014,14 @@ var RETRY_MODES;
|
|
|
3035
4014
|
var DEFAULT_MAX_ATTEMPTS = 3;
|
|
3036
4015
|
var DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD;
|
|
3037
4016
|
|
|
3038
|
-
// ../../node_modules/.pnpm/@smithy+util-retry@4.
|
|
3039
|
-
|
|
4017
|
+
// ../../node_modules/.pnpm/@smithy+util-retry@4.2.5/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js
|
|
4018
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3040
4019
|
|
|
3041
|
-
// ../../node_modules/.pnpm/@smithy+service-error-classification@4.
|
|
3042
|
-
|
|
4020
|
+
// ../../node_modules/.pnpm/@smithy+service-error-classification@4.2.5/node_modules/@smithy/service-error-classification/dist-es/index.js
|
|
4021
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3043
4022
|
|
|
3044
|
-
// ../../node_modules/.pnpm/@smithy+service-error-classification@4.
|
|
3045
|
-
|
|
4023
|
+
// ../../node_modules/.pnpm/@smithy+service-error-classification@4.2.5/node_modules/@smithy/service-error-classification/dist-es/constants.js
|
|
4024
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3046
4025
|
var THROTTLING_ERROR_CODES = [
|
|
3047
4026
|
"BandwidthLimitExceeded",
|
|
3048
4027
|
"EC2ThrottledException",
|
|
@@ -3082,9 +4061,10 @@ var NODEJS_NETWORK_ERROR_CODES = [
|
|
|
3082
4061
|
"ENOTFOUND"
|
|
3083
4062
|
];
|
|
3084
4063
|
|
|
3085
|
-
// ../../node_modules/.pnpm/@smithy+service-error-classification@4.
|
|
3086
|
-
var
|
|
3087
|
-
var
|
|
4064
|
+
// ../../node_modules/.pnpm/@smithy+service-error-classification@4.2.5/node_modules/@smithy/service-error-classification/dist-es/index.js
|
|
4065
|
+
var isRetryableByTrait = /* @__PURE__ */ _24WEKBY3_cjs.__name((error) => error?.$retryable !== void 0, "isRetryableByTrait");
|
|
4066
|
+
var isClockSkewCorrectedError = /* @__PURE__ */ _24WEKBY3_cjs.__name((error) => error.$metadata?.clockSkewCorrected, "isClockSkewCorrectedError");
|
|
4067
|
+
var isBrowserNetworkError = /* @__PURE__ */ _24WEKBY3_cjs.__name((error) => {
|
|
3088
4068
|
const errorMessages = /* @__PURE__ */ new Set([
|
|
3089
4069
|
"Failed to fetch",
|
|
3090
4070
|
"NetworkError when attempting to fetch resource",
|
|
@@ -3098,9 +4078,9 @@ var isBrowserNetworkError = /* @__PURE__ */ U7VZULNU_cjs.__name((error) => {
|
|
|
3098
4078
|
}
|
|
3099
4079
|
return errorMessages.has(error.message);
|
|
3100
4080
|
}, "isBrowserNetworkError");
|
|
3101
|
-
var isThrottlingError = /* @__PURE__ */
|
|
3102
|
-
var isTransientError = /* @__PURE__ */
|
|
3103
|
-
var isServerError = /* @__PURE__ */
|
|
4081
|
+
var isThrottlingError = /* @__PURE__ */ _24WEKBY3_cjs.__name((error) => error.$metadata?.httpStatusCode === 429 || THROTTLING_ERROR_CODES.includes(error.name) || error.$retryable?.throttling == true, "isThrottlingError");
|
|
4082
|
+
var isTransientError = /* @__PURE__ */ _24WEKBY3_cjs.__name((error, depth = 0) => isRetryableByTrait(error) || isClockSkewCorrectedError(error) || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") || NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) || isBrowserNetworkError(error) || error.cause !== void 0 && depth <= 10 && isTransientError(error.cause, depth + 1), "isTransientError");
|
|
4083
|
+
var isServerError = /* @__PURE__ */ _24WEKBY3_cjs.__name((error) => {
|
|
3104
4084
|
if (error.$metadata?.httpStatusCode !== void 0) {
|
|
3105
4085
|
const statusCode = error.$metadata.httpStatusCode;
|
|
3106
4086
|
if (500 <= statusCode && statusCode <= 599 && !isTransientError(error)) {
|
|
@@ -3111,19 +4091,29 @@ var isServerError = /* @__PURE__ */ U7VZULNU_cjs.__name((error) => {
|
|
|
3111
4091
|
return false;
|
|
3112
4092
|
}, "isServerError");
|
|
3113
4093
|
|
|
3114
|
-
// ../../node_modules/.pnpm/@smithy+util-retry@4.
|
|
4094
|
+
// ../../node_modules/.pnpm/@smithy+util-retry@4.2.5/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js
|
|
3115
4095
|
var DefaultRateLimiter = class _DefaultRateLimiter {
|
|
3116
4096
|
static {
|
|
3117
|
-
|
|
3118
|
-
}
|
|
4097
|
+
_24WEKBY3_cjs.__name(this, "DefaultRateLimiter");
|
|
4098
|
+
}
|
|
4099
|
+
static setTimeoutFn = setTimeout;
|
|
4100
|
+
beta;
|
|
4101
|
+
minCapacity;
|
|
4102
|
+
minFillRate;
|
|
4103
|
+
scaleConstant;
|
|
4104
|
+
smooth;
|
|
4105
|
+
currentCapacity = 0;
|
|
4106
|
+
enabled = false;
|
|
4107
|
+
lastMaxRate = 0;
|
|
4108
|
+
measuredTxRate = 0;
|
|
4109
|
+
requestCount = 0;
|
|
4110
|
+
fillRate;
|
|
4111
|
+
lastThrottleTime;
|
|
4112
|
+
lastTimestamp = 0;
|
|
4113
|
+
lastTxRateBucket;
|
|
4114
|
+
maxCapacity;
|
|
4115
|
+
timeWindow = 0;
|
|
3119
4116
|
constructor(options) {
|
|
3120
|
-
this.currentCapacity = 0;
|
|
3121
|
-
this.enabled = false;
|
|
3122
|
-
this.lastMaxRate = 0;
|
|
3123
|
-
this.measuredTxRate = 0;
|
|
3124
|
-
this.requestCount = 0;
|
|
3125
|
-
this.lastTimestamp = 0;
|
|
3126
|
-
this.timeWindow = 0;
|
|
3127
4117
|
this.beta = options?.beta ?? 0.7;
|
|
3128
4118
|
this.minCapacity = options?.minCapacity ?? 1;
|
|
3129
4119
|
this.minFillRate = options?.minFillRate ?? 0.5;
|
|
@@ -3212,13 +4202,12 @@ var DefaultRateLimiter = class _DefaultRateLimiter {
|
|
|
3212
4202
|
return parseFloat(num.toFixed(8));
|
|
3213
4203
|
}
|
|
3214
4204
|
};
|
|
3215
|
-
DefaultRateLimiter.setTimeoutFn = setTimeout;
|
|
3216
4205
|
|
|
3217
|
-
// ../../node_modules/.pnpm/@smithy+util-retry@4.
|
|
3218
|
-
|
|
4206
|
+
// ../../node_modules/.pnpm/@smithy+util-retry@4.2.5/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js
|
|
4207
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3219
4208
|
|
|
3220
|
-
// ../../node_modules/.pnpm/@smithy+util-retry@4.
|
|
3221
|
-
|
|
4209
|
+
// ../../node_modules/.pnpm/@smithy+util-retry@4.2.5/node_modules/@smithy/util-retry/dist-es/constants.js
|
|
4210
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3222
4211
|
var DEFAULT_RETRY_DELAY_BASE = 100;
|
|
3223
4212
|
var MAXIMUM_RETRY_DELAY = 20 * 1e3;
|
|
3224
4213
|
var THROTTLING_RETRY_DELAY_BASE = 500;
|
|
@@ -3229,14 +4218,14 @@ var NO_RETRY_INCREMENT = 1;
|
|
|
3229
4218
|
var INVOCATION_ID_HEADER = "amz-sdk-invocation-id";
|
|
3230
4219
|
var REQUEST_HEADER = "amz-sdk-request";
|
|
3231
4220
|
|
|
3232
|
-
// ../../node_modules/.pnpm/@smithy+util-retry@4.
|
|
3233
|
-
|
|
3234
|
-
var getDefaultRetryBackoffStrategy = /* @__PURE__ */
|
|
4221
|
+
// ../../node_modules/.pnpm/@smithy+util-retry@4.2.5/node_modules/@smithy/util-retry/dist-es/defaultRetryBackoffStrategy.js
|
|
4222
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
4223
|
+
var getDefaultRetryBackoffStrategy = /* @__PURE__ */ _24WEKBY3_cjs.__name(() => {
|
|
3235
4224
|
let delayBase = DEFAULT_RETRY_DELAY_BASE;
|
|
3236
|
-
const computeNextBackoffDelay = /* @__PURE__ */
|
|
4225
|
+
const computeNextBackoffDelay = /* @__PURE__ */ _24WEKBY3_cjs.__name((attempts) => {
|
|
3237
4226
|
return Math.floor(Math.min(MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase));
|
|
3238
4227
|
}, "computeNextBackoffDelay");
|
|
3239
|
-
const setDelayBase = /* @__PURE__ */
|
|
4228
|
+
const setDelayBase = /* @__PURE__ */ _24WEKBY3_cjs.__name((delay) => {
|
|
3240
4229
|
delayBase = delay;
|
|
3241
4230
|
}, "setDelayBase");
|
|
3242
4231
|
return {
|
|
@@ -3245,12 +4234,12 @@ var getDefaultRetryBackoffStrategy = /* @__PURE__ */ U7VZULNU_cjs.__name(() => {
|
|
|
3245
4234
|
};
|
|
3246
4235
|
}, "getDefaultRetryBackoffStrategy");
|
|
3247
4236
|
|
|
3248
|
-
// ../../node_modules/.pnpm/@smithy+util-retry@4.
|
|
3249
|
-
|
|
3250
|
-
var createDefaultRetryToken = /* @__PURE__ */
|
|
3251
|
-
const getRetryCount = /* @__PURE__ */
|
|
3252
|
-
const getRetryDelay = /* @__PURE__ */
|
|
3253
|
-
const getRetryCost = /* @__PURE__ */
|
|
4237
|
+
// ../../node_modules/.pnpm/@smithy+util-retry@4.2.5/node_modules/@smithy/util-retry/dist-es/defaultRetryToken.js
|
|
4238
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
4239
|
+
var createDefaultRetryToken = /* @__PURE__ */ _24WEKBY3_cjs.__name(({ retryDelay, retryCount, retryCost }) => {
|
|
4240
|
+
const getRetryCount = /* @__PURE__ */ _24WEKBY3_cjs.__name(() => retryCount, "getRetryCount");
|
|
4241
|
+
const getRetryDelay = /* @__PURE__ */ _24WEKBY3_cjs.__name(() => Math.min(MAXIMUM_RETRY_DELAY, retryDelay), "getRetryDelay");
|
|
4242
|
+
const getRetryCost = /* @__PURE__ */ _24WEKBY3_cjs.__name(() => retryCost, "getRetryCost");
|
|
3254
4243
|
return {
|
|
3255
4244
|
getRetryCount,
|
|
3256
4245
|
getRetryDelay,
|
|
@@ -3258,16 +4247,18 @@ var createDefaultRetryToken = /* @__PURE__ */ U7VZULNU_cjs.__name(({ retryDelay,
|
|
|
3258
4247
|
};
|
|
3259
4248
|
}, "createDefaultRetryToken");
|
|
3260
4249
|
|
|
3261
|
-
// ../../node_modules/.pnpm/@smithy+util-retry@4.
|
|
4250
|
+
// ../../node_modules/.pnpm/@smithy+util-retry@4.2.5/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js
|
|
3262
4251
|
var StandardRetryStrategy = class {
|
|
3263
4252
|
static {
|
|
3264
|
-
|
|
4253
|
+
_24WEKBY3_cjs.__name(this, "StandardRetryStrategy");
|
|
3265
4254
|
}
|
|
4255
|
+
maxAttempts;
|
|
4256
|
+
mode = RETRY_MODES.STANDARD;
|
|
4257
|
+
capacity = INITIAL_RETRY_TOKENS;
|
|
4258
|
+
retryBackoffStrategy = getDefaultRetryBackoffStrategy();
|
|
4259
|
+
maxAttemptsProvider;
|
|
3266
4260
|
constructor(maxAttempts) {
|
|
3267
4261
|
this.maxAttempts = maxAttempts;
|
|
3268
|
-
this.mode = RETRY_MODES.STANDARD;
|
|
3269
|
-
this.capacity = INITIAL_RETRY_TOKENS;
|
|
3270
|
-
this.retryBackoffStrategy = getDefaultRetryBackoffStrategy();
|
|
3271
4262
|
this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts;
|
|
3272
4263
|
}
|
|
3273
4264
|
async acquireInitialRetryToken(retryTokenScope) {
|
|
@@ -3319,14 +4310,17 @@ var StandardRetryStrategy = class {
|
|
|
3319
4310
|
}
|
|
3320
4311
|
};
|
|
3321
4312
|
|
|
3322
|
-
// ../../node_modules/.pnpm/@smithy+util-retry@4.
|
|
4313
|
+
// ../../node_modules/.pnpm/@smithy+util-retry@4.2.5/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js
|
|
3323
4314
|
var AdaptiveRetryStrategy = class {
|
|
3324
4315
|
static {
|
|
3325
|
-
|
|
4316
|
+
_24WEKBY3_cjs.__name(this, "AdaptiveRetryStrategy");
|
|
3326
4317
|
}
|
|
4318
|
+
maxAttemptsProvider;
|
|
4319
|
+
rateLimiter;
|
|
4320
|
+
standardRetryStrategy;
|
|
4321
|
+
mode = RETRY_MODES.ADAPTIVE;
|
|
3327
4322
|
constructor(maxAttemptsProvider, options) {
|
|
3328
4323
|
this.maxAttemptsProvider = maxAttemptsProvider;
|
|
3329
|
-
this.mode = RETRY_MODES.ADAPTIVE;
|
|
3330
4324
|
const { rateLimiter } = options ?? {};
|
|
3331
4325
|
this.rateLimiter = rateLimiter ?? new DefaultRateLimiter();
|
|
3332
4326
|
this.standardRetryStrategy = new StandardRetryStrategy(maxAttemptsProvider);
|
|
@@ -3345,17 +4339,11 @@ var AdaptiveRetryStrategy = class {
|
|
|
3345
4339
|
}
|
|
3346
4340
|
};
|
|
3347
4341
|
|
|
3348
|
-
// ../../node_modules/.pnpm/@smithy+
|
|
3349
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
3350
|
-
|
|
3351
|
-
// ../../node_modules/.pnpm/@smithy+util-retry@4.0.7/node_modules/@smithy/util-retry/dist-es/types.js
|
|
3352
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
3353
|
-
|
|
3354
|
-
// ../../node_modules/.pnpm/@smithy+middleware-retry@4.1.21/node_modules/@smithy/middleware-retry/dist-es/configurations.js
|
|
4342
|
+
// ../../node_modules/.pnpm/@smithy+middleware-retry@4.4.12/node_modules/@smithy/middleware-retry/dist-es/configurations.js
|
|
3355
4343
|
var ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS";
|
|
3356
4344
|
var CONFIG_MAX_ATTEMPTS = "max_attempts";
|
|
3357
4345
|
var NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
|
|
3358
|
-
environmentVariableSelector: /* @__PURE__ */
|
|
4346
|
+
environmentVariableSelector: /* @__PURE__ */ _24WEKBY3_cjs.__name((env2) => {
|
|
3359
4347
|
const value = env2[ENV_MAX_ATTEMPTS];
|
|
3360
4348
|
if (!value) return void 0;
|
|
3361
4349
|
const maxAttempt = parseInt(value);
|
|
@@ -3364,7 +4352,7 @@ var NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
|
|
|
3364
4352
|
}
|
|
3365
4353
|
return maxAttempt;
|
|
3366
4354
|
}, "environmentVariableSelector"),
|
|
3367
|
-
configFileSelector: /* @__PURE__ */
|
|
4355
|
+
configFileSelector: /* @__PURE__ */ _24WEKBY3_cjs.__name((profile) => {
|
|
3368
4356
|
const value = profile[CONFIG_MAX_ATTEMPTS];
|
|
3369
4357
|
if (!value) return void 0;
|
|
3370
4358
|
const maxAttempt = parseInt(value);
|
|
@@ -3375,12 +4363,12 @@ var NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
|
|
|
3375
4363
|
}, "configFileSelector"),
|
|
3376
4364
|
default: DEFAULT_MAX_ATTEMPTS
|
|
3377
4365
|
};
|
|
3378
|
-
var resolveRetryConfig = /* @__PURE__ */
|
|
4366
|
+
var resolveRetryConfig = /* @__PURE__ */ _24WEKBY3_cjs.__name((input) => {
|
|
3379
4367
|
const { retryStrategy, retryMode: _retryMode, maxAttempts: _maxAttempts } = input;
|
|
3380
4368
|
const maxAttempts = normalizeProvider(_maxAttempts ?? DEFAULT_MAX_ATTEMPTS);
|
|
3381
4369
|
return Object.assign(input, {
|
|
3382
4370
|
maxAttempts,
|
|
3383
|
-
retryStrategy: /* @__PURE__ */
|
|
4371
|
+
retryStrategy: /* @__PURE__ */ _24WEKBY3_cjs.__name(async () => {
|
|
3384
4372
|
if (retryStrategy) {
|
|
3385
4373
|
return retryStrategy;
|
|
3386
4374
|
}
|
|
@@ -3395,29 +4383,29 @@ var resolveRetryConfig = /* @__PURE__ */ U7VZULNU_cjs.__name((input) => {
|
|
|
3395
4383
|
var ENV_RETRY_MODE = "AWS_RETRY_MODE";
|
|
3396
4384
|
var CONFIG_RETRY_MODE = "retry_mode";
|
|
3397
4385
|
var NODE_RETRY_MODE_CONFIG_OPTIONS = {
|
|
3398
|
-
environmentVariableSelector: /* @__PURE__ */
|
|
3399
|
-
configFileSelector: /* @__PURE__ */
|
|
4386
|
+
environmentVariableSelector: /* @__PURE__ */ _24WEKBY3_cjs.__name((env2) => env2[ENV_RETRY_MODE], "environmentVariableSelector"),
|
|
4387
|
+
configFileSelector: /* @__PURE__ */ _24WEKBY3_cjs.__name((profile) => profile[CONFIG_RETRY_MODE], "configFileSelector"),
|
|
3400
4388
|
default: DEFAULT_RETRY_MODE
|
|
3401
4389
|
};
|
|
3402
4390
|
|
|
3403
|
-
// ../../node_modules/.pnpm/@smithy+middleware-retry@4.
|
|
3404
|
-
|
|
4391
|
+
// ../../node_modules/.pnpm/@smithy+middleware-retry@4.4.12/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js
|
|
4392
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3405
4393
|
|
|
3406
|
-
// ../../node_modules/.pnpm/@smithy+middleware-retry@4.
|
|
3407
|
-
|
|
3408
|
-
var isStreamingPayload = /* @__PURE__ */
|
|
4394
|
+
// ../../node_modules/.pnpm/@smithy+middleware-retry@4.4.12/node_modules/@smithy/middleware-retry/dist-es/isStreamingPayload/isStreamingPayload.js
|
|
4395
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
4396
|
+
var isStreamingPayload = /* @__PURE__ */ _24WEKBY3_cjs.__name((request) => request?.body instanceof stream.Readable || typeof ReadableStream !== "undefined" && request?.body instanceof ReadableStream, "isStreamingPayload");
|
|
3409
4397
|
|
|
3410
|
-
// ../../node_modules/.pnpm/@smithy+middleware-retry@4.
|
|
3411
|
-
|
|
3412
|
-
var asSdkError = /* @__PURE__ */
|
|
4398
|
+
// ../../node_modules/.pnpm/@smithy+middleware-retry@4.4.12/node_modules/@smithy/middleware-retry/dist-es/util.js
|
|
4399
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
4400
|
+
var asSdkError = /* @__PURE__ */ _24WEKBY3_cjs.__name((error) => {
|
|
3413
4401
|
if (error instanceof Error) return error;
|
|
3414
4402
|
if (error instanceof Object) return Object.assign(new Error(), error);
|
|
3415
4403
|
if (typeof error === "string") return new Error(error);
|
|
3416
4404
|
return new Error(`AWS SDK error wrapper for ${error}`);
|
|
3417
4405
|
}, "asSdkError");
|
|
3418
4406
|
|
|
3419
|
-
// ../../node_modules/.pnpm/@smithy+middleware-retry@4.
|
|
3420
|
-
var retryMiddleware = /* @__PURE__ */
|
|
4407
|
+
// ../../node_modules/.pnpm/@smithy+middleware-retry@4.4.12/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js
|
|
4408
|
+
var retryMiddleware = /* @__PURE__ */ _24WEKBY3_cjs.__name((options) => (next, context) => async (args) => {
|
|
3421
4409
|
let retryStrategy = await options.retryStrategy();
|
|
3422
4410
|
const maxAttempts = await options.maxAttempts();
|
|
3423
4411
|
if (isRetryStrategyV2(retryStrategy)) {
|
|
@@ -3427,9 +4415,9 @@ var retryMiddleware = /* @__PURE__ */ U7VZULNU_cjs.__name((options) => (next, co
|
|
|
3427
4415
|
let attempts = 0;
|
|
3428
4416
|
let totalRetryDelay = 0;
|
|
3429
4417
|
const { request } = args;
|
|
3430
|
-
const isRequest =
|
|
4418
|
+
const isRequest = Q5L3QIKZ_cjs.HttpRequest.isInstance(request);
|
|
3431
4419
|
if (isRequest) {
|
|
3432
|
-
request.headers[INVOCATION_ID_HEADER] =
|
|
4420
|
+
request.headers[INVOCATION_ID_HEADER] = v4();
|
|
3433
4421
|
}
|
|
3434
4422
|
while (true) {
|
|
3435
4423
|
try {
|
|
@@ -3448,7 +4436,7 @@ var retryMiddleware = /* @__PURE__ */ U7VZULNU_cjs.__name((options) => (next, co
|
|
|
3448
4436
|
const retryErrorInfo = getRetryErrorInfo(e);
|
|
3449
4437
|
lastError = asSdkError(e);
|
|
3450
4438
|
if (isRequest && isStreamingPayload(request)) {
|
|
3451
|
-
(context.logger instanceof
|
|
4439
|
+
(context.logger instanceof NoOpLogger ? console : context.logger)?.warn("An error was encountered in a non-retryable streaming request.");
|
|
3452
4440
|
throw lastError;
|
|
3453
4441
|
}
|
|
3454
4442
|
try {
|
|
@@ -3479,8 +4467,8 @@ var retryMiddleware = /* @__PURE__ */ U7VZULNU_cjs.__name((options) => (next, co
|
|
|
3479
4467
|
return retryStrategy.retry(next, args);
|
|
3480
4468
|
}
|
|
3481
4469
|
}, "retryMiddleware");
|
|
3482
|
-
var isRetryStrategyV2 = /* @__PURE__ */
|
|
3483
|
-
var getRetryErrorInfo = /* @__PURE__ */
|
|
4470
|
+
var isRetryStrategyV2 = /* @__PURE__ */ _24WEKBY3_cjs.__name((retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined", "isRetryStrategyV2");
|
|
4471
|
+
var getRetryErrorInfo = /* @__PURE__ */ _24WEKBY3_cjs.__name((error) => {
|
|
3484
4472
|
const errorInfo = {
|
|
3485
4473
|
error,
|
|
3486
4474
|
errorType: getRetryErrorType(error)
|
|
@@ -3491,7 +4479,7 @@ var getRetryErrorInfo = /* @__PURE__ */ U7VZULNU_cjs.__name((error) => {
|
|
|
3491
4479
|
}
|
|
3492
4480
|
return errorInfo;
|
|
3493
4481
|
}, "getRetryErrorInfo");
|
|
3494
|
-
var getRetryErrorType = /* @__PURE__ */
|
|
4482
|
+
var getRetryErrorType = /* @__PURE__ */ _24WEKBY3_cjs.__name((error) => {
|
|
3495
4483
|
if (isThrottlingError(error)) return "THROTTLING";
|
|
3496
4484
|
if (isTransientError(error)) return "TRANSIENT";
|
|
3497
4485
|
if (isServerError(error)) return "SERVER_ERROR";
|
|
@@ -3506,13 +4494,13 @@ var retryMiddlewareOptions = {
|
|
|
3506
4494
|
priority: "high",
|
|
3507
4495
|
override: true
|
|
3508
4496
|
};
|
|
3509
|
-
var getRetryPlugin = /* @__PURE__ */
|
|
3510
|
-
applyToStack: /* @__PURE__ */
|
|
4497
|
+
var getRetryPlugin = /* @__PURE__ */ _24WEKBY3_cjs.__name((options) => ({
|
|
4498
|
+
applyToStack: /* @__PURE__ */ _24WEKBY3_cjs.__name((clientStack) => {
|
|
3511
4499
|
clientStack.add(retryMiddleware(options), retryMiddlewareOptions);
|
|
3512
4500
|
}, "applyToStack")
|
|
3513
4501
|
}), "getRetryPlugin");
|
|
3514
|
-
var getRetryAfterHint = /* @__PURE__ */
|
|
3515
|
-
if (!
|
|
4502
|
+
var getRetryAfterHint = /* @__PURE__ */ _24WEKBY3_cjs.__name((response) => {
|
|
4503
|
+
if (!Q5L3QIKZ_cjs.HttpResponse.isInstance(response)) return;
|
|
3516
4504
|
const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after");
|
|
3517
4505
|
if (!retryAfterHeaderName) return;
|
|
3518
4506
|
const retryAfter = response.headers[retryAfterHeaderName];
|
|
@@ -3522,43 +4510,76 @@ var getRetryAfterHint = /* @__PURE__ */ U7VZULNU_cjs.__name((response) => {
|
|
|
3522
4510
|
return retryAfterDate;
|
|
3523
4511
|
}, "getRetryAfterHint");
|
|
3524
4512
|
|
|
3525
|
-
// ../../node_modules/.pnpm/@smithy+
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
// ../../node_modules/.pnpm/@smithy+middleware-retry@4.1.21/node_modules/@smithy/middleware-retry/dist-es/AdaptiveRetryStrategy.js
|
|
3529
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
4513
|
+
// ../../node_modules/.pnpm/@smithy+config-resolver@4.4.3/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
|
|
4514
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3530
4515
|
|
|
3531
|
-
// ../../node_modules/.pnpm/@smithy+
|
|
3532
|
-
|
|
4516
|
+
// ../../node_modules/.pnpm/@smithy+util-config-provider@4.2.0/node_modules/@smithy/util-config-provider/dist-es/booleanSelector.js
|
|
4517
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
4518
|
+
var booleanSelector = /* @__PURE__ */ _24WEKBY3_cjs.__name((obj, key, type) => {
|
|
4519
|
+
if (!(key in obj)) return void 0;
|
|
4520
|
+
if (obj[key] === "true") return true;
|
|
4521
|
+
if (obj[key] === "false") return false;
|
|
4522
|
+
throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`);
|
|
4523
|
+
}, "booleanSelector");
|
|
3533
4524
|
|
|
3534
|
-
// ../../node_modules/.pnpm/@smithy+
|
|
3535
|
-
|
|
4525
|
+
// ../../node_modules/.pnpm/@smithy+util-config-provider@4.2.0/node_modules/@smithy/util-config-provider/dist-es/types.js
|
|
4526
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
4527
|
+
var SelectorType;
|
|
4528
|
+
(function(SelectorType2) {
|
|
4529
|
+
SelectorType2["ENV"] = "env";
|
|
4530
|
+
SelectorType2["CONFIG"] = "shared config entry";
|
|
4531
|
+
})(SelectorType || (SelectorType = {}));
|
|
3536
4532
|
|
|
3537
|
-
// ../../node_modules/.pnpm/@smithy+
|
|
3538
|
-
|
|
4533
|
+
// ../../node_modules/.pnpm/@smithy+config-resolver@4.4.3/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
|
|
4534
|
+
var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT";
|
|
4535
|
+
var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint";
|
|
4536
|
+
var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
|
|
4537
|
+
environmentVariableSelector: /* @__PURE__ */ _24WEKBY3_cjs.__name((env2) => booleanSelector(env2, ENV_USE_DUALSTACK_ENDPOINT, SelectorType.ENV), "environmentVariableSelector"),
|
|
4538
|
+
configFileSelector: /* @__PURE__ */ _24WEKBY3_cjs.__name((profile) => booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT, SelectorType.CONFIG), "configFileSelector"),
|
|
4539
|
+
default: false
|
|
4540
|
+
};
|
|
3539
4541
|
|
|
3540
|
-
// ../../node_modules/.pnpm/@smithy+
|
|
3541
|
-
|
|
4542
|
+
// ../../node_modules/.pnpm/@smithy+config-resolver@4.4.3/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseFipsEndpointConfigOptions.js
|
|
4543
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
4544
|
+
var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT";
|
|
4545
|
+
var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";
|
|
4546
|
+
var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
|
|
4547
|
+
environmentVariableSelector: /* @__PURE__ */ _24WEKBY3_cjs.__name((env2) => booleanSelector(env2, ENV_USE_FIPS_ENDPOINT, SelectorType.ENV), "environmentVariableSelector"),
|
|
4548
|
+
configFileSelector: /* @__PURE__ */ _24WEKBY3_cjs.__name((profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, SelectorType.CONFIG), "configFileSelector"),
|
|
4549
|
+
default: false
|
|
4550
|
+
};
|
|
3542
4551
|
|
|
3543
|
-
// ../../node_modules/.pnpm/@smithy+
|
|
3544
|
-
|
|
4552
|
+
// ../../node_modules/.pnpm/@smithy+config-resolver@4.4.3/node_modules/@smithy/config-resolver/dist-es/regionConfig/config.js
|
|
4553
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
4554
|
+
var REGION_ENV_NAME = "AWS_REGION";
|
|
4555
|
+
var REGION_INI_NAME = "region";
|
|
4556
|
+
var NODE_REGION_CONFIG_OPTIONS = {
|
|
4557
|
+
environmentVariableSelector: /* @__PURE__ */ _24WEKBY3_cjs.__name((env2) => env2[REGION_ENV_NAME], "environmentVariableSelector"),
|
|
4558
|
+
configFileSelector: /* @__PURE__ */ _24WEKBY3_cjs.__name((profile) => profile[REGION_INI_NAME], "configFileSelector"),
|
|
4559
|
+
default: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => {
|
|
4560
|
+
throw new Error("Region is missing");
|
|
4561
|
+
}, "default")
|
|
4562
|
+
};
|
|
4563
|
+
var NODE_REGION_CONFIG_FILE_OPTIONS = {
|
|
4564
|
+
preferredFile: "credentials"
|
|
4565
|
+
};
|
|
3545
4566
|
|
|
3546
4567
|
// ../../node_modules/.pnpm/@aws-sdk+util-user-agent-node@3.879.0/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
|
|
3547
|
-
|
|
4568
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3548
4569
|
|
|
3549
4570
|
// ../../node_modules/.pnpm/@aws-sdk+util-user-agent-node@3.879.0/node_modules/@aws-sdk/util-user-agent-node/dist-es/is-crt-available.js
|
|
3550
|
-
|
|
4571
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3551
4572
|
|
|
3552
4573
|
// ../../node_modules/.pnpm/@aws-sdk+util-user-agent-node@3.879.0/node_modules/@aws-sdk/util-user-agent-node/dist-es/crt-availability.js
|
|
3553
|
-
|
|
4574
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3554
4575
|
|
|
3555
4576
|
// ../../node_modules/.pnpm/@aws-sdk+util-user-agent-node@3.879.0/node_modules/@aws-sdk/util-user-agent-node/dist-es/is-crt-available.js
|
|
3556
|
-
var isCrtAvailable = /* @__PURE__ */
|
|
4577
|
+
var isCrtAvailable = /* @__PURE__ */ _24WEKBY3_cjs.__name(() => {
|
|
3557
4578
|
return null;
|
|
3558
4579
|
}, "isCrtAvailable");
|
|
3559
4580
|
|
|
3560
4581
|
// ../../node_modules/.pnpm/@aws-sdk+util-user-agent-node@3.879.0/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
|
|
3561
|
-
var createDefaultUserAgentProvider = /* @__PURE__ */
|
|
4582
|
+
var createDefaultUserAgentProvider = /* @__PURE__ */ _24WEKBY3_cjs.__name(({ serviceId, clientVersion }) => {
|
|
3562
4583
|
return async (config) => {
|
|
3563
4584
|
const sections = [
|
|
3564
4585
|
[
|
|
@@ -3610,38 +4631,41 @@ var createDefaultUserAgentProvider = /* @__PURE__ */ U7VZULNU_cjs.__name(({ serv
|
|
|
3610
4631
|
}, "createDefaultUserAgentProvider");
|
|
3611
4632
|
|
|
3612
4633
|
// ../../node_modules/.pnpm/@aws-sdk+util-user-agent-node@3.879.0/node_modules/@aws-sdk/util-user-agent-node/dist-es/nodeAppIdConfigOptions.js
|
|
3613
|
-
|
|
4634
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3614
4635
|
var UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
|
3615
4636
|
var UA_APP_ID_INI_NAME = "sdk_ua_app_id";
|
|
3616
4637
|
var UA_APP_ID_INI_NAME_DEPRECATED = "sdk-ua-app-id";
|
|
3617
4638
|
var NODE_APP_ID_CONFIG_OPTIONS = {
|
|
3618
|
-
environmentVariableSelector: /* @__PURE__ */
|
|
3619
|
-
configFileSelector: /* @__PURE__ */
|
|
4639
|
+
environmentVariableSelector: /* @__PURE__ */ _24WEKBY3_cjs.__name((env2) => env2[UA_APP_ID_ENV_NAME], "environmentVariableSelector"),
|
|
4640
|
+
configFileSelector: /* @__PURE__ */ _24WEKBY3_cjs.__name((profile) => profile[UA_APP_ID_INI_NAME] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED], "configFileSelector"),
|
|
3620
4641
|
default: DEFAULT_UA_APP_ID
|
|
3621
4642
|
};
|
|
3622
4643
|
|
|
3623
4644
|
// ../../node_modules/.pnpm/@aws-sdk+util-user-agent-node@3.879.0/node_modules/@aws-sdk/util-user-agent-node/dist-es/index.js
|
|
3624
|
-
|
|
4645
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3625
4646
|
|
|
3626
|
-
// ../../node_modules/.pnpm/@smithy+hash-node@4.
|
|
3627
|
-
|
|
4647
|
+
// ../../node_modules/.pnpm/@smithy+hash-node@4.2.5/node_modules/@smithy/hash-node/dist-es/index.js
|
|
4648
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3628
4649
|
var Hash = class {
|
|
3629
4650
|
static {
|
|
3630
|
-
|
|
4651
|
+
_24WEKBY3_cjs.__name(this, "Hash");
|
|
3631
4652
|
}
|
|
4653
|
+
algorithmIdentifier;
|
|
4654
|
+
secret;
|
|
4655
|
+
hash;
|
|
3632
4656
|
constructor(algorithmIdentifier, secret) {
|
|
3633
4657
|
this.algorithmIdentifier = algorithmIdentifier;
|
|
3634
4658
|
this.secret = secret;
|
|
3635
4659
|
this.reset();
|
|
3636
4660
|
}
|
|
3637
4661
|
update(toHash, encoding) {
|
|
3638
|
-
this.hash.update(
|
|
4662
|
+
this.hash.update(toUint8Array(castSourceData(toHash, encoding)));
|
|
3639
4663
|
}
|
|
3640
4664
|
digest() {
|
|
3641
4665
|
return Promise.resolve(this.hash.digest());
|
|
3642
4666
|
}
|
|
3643
4667
|
reset() {
|
|
3644
|
-
this.hash = this.secret ?
|
|
4668
|
+
this.hash = this.secret ? crypto2.createHmac(this.algorithmIdentifier, castSourceData(this.secret)) : crypto2.createHash(this.algorithmIdentifier);
|
|
3645
4669
|
}
|
|
3646
4670
|
};
|
|
3647
4671
|
function castSourceData(toCast, encoding) {
|
|
@@ -3649,18 +4673,18 @@ function castSourceData(toCast, encoding) {
|
|
|
3649
4673
|
return toCast;
|
|
3650
4674
|
}
|
|
3651
4675
|
if (typeof toCast === "string") {
|
|
3652
|
-
return
|
|
4676
|
+
return FDH37YWR_cjs.fromString(toCast, encoding);
|
|
3653
4677
|
}
|
|
3654
4678
|
if (ArrayBuffer.isView(toCast)) {
|
|
3655
|
-
return
|
|
4679
|
+
return FDH37YWR_cjs.fromArrayBuffer(toCast.buffer, toCast.byteOffset, toCast.byteLength);
|
|
3656
4680
|
}
|
|
3657
|
-
return
|
|
4681
|
+
return FDH37YWR_cjs.fromArrayBuffer(toCast);
|
|
3658
4682
|
}
|
|
3659
|
-
|
|
4683
|
+
_24WEKBY3_cjs.__name(castSourceData, "castSourceData");
|
|
3660
4684
|
|
|
3661
|
-
// ../../node_modules/.pnpm/@smithy+util-body-length-node@4.
|
|
3662
|
-
|
|
3663
|
-
var calculateBodyLength = /* @__PURE__ */
|
|
4685
|
+
// ../../node_modules/.pnpm/@smithy+util-body-length-node@4.2.1/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js
|
|
4686
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
4687
|
+
var calculateBodyLength = /* @__PURE__ */ _24WEKBY3_cjs.__name((body) => {
|
|
3664
4688
|
if (!body) {
|
|
3665
4689
|
return 0;
|
|
3666
4690
|
}
|
|
@@ -3672,22 +4696,21 @@ var calculateBodyLength = /* @__PURE__ */ U7VZULNU_cjs.__name((body) => {
|
|
|
3672
4696
|
return body.size;
|
|
3673
4697
|
} else if (typeof body.start === "number" && typeof body.end === "number") {
|
|
3674
4698
|
return body.end + 1 - body.start;
|
|
3675
|
-
} else if (
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
4699
|
+
} else if (body instanceof fs.ReadStream) {
|
|
4700
|
+
if (body.path != null) {
|
|
4701
|
+
return fs.lstatSync(body.path).size;
|
|
4702
|
+
} else if (typeof body.fd === "number") {
|
|
4703
|
+
return fs.fstatSync(body.fd).size;
|
|
4704
|
+
}
|
|
3679
4705
|
}
|
|
3680
4706
|
throw new Error(`Body Length computation failed for ${body}`);
|
|
3681
4707
|
}, "calculateBodyLength");
|
|
3682
4708
|
|
|
3683
|
-
// ../../node_modules/.pnpm/@smithy+util-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
// ../../node_modules/.pnpm/@smithy+util-defaults-mode-node@4.0.28/node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js
|
|
3687
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
4709
|
+
// ../../node_modules/.pnpm/@smithy+util-defaults-mode-node@4.2.14/node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js
|
|
4710
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3688
4711
|
|
|
3689
|
-
// ../../node_modules/.pnpm/@smithy+util-defaults-mode-node@4.
|
|
3690
|
-
|
|
4712
|
+
// ../../node_modules/.pnpm/@smithy+util-defaults-mode-node@4.2.14/node_modules/@smithy/util-defaults-mode-node/dist-es/constants.js
|
|
4713
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3691
4714
|
var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV";
|
|
3692
4715
|
var AWS_REGION_ENV = "AWS_REGION";
|
|
3693
4716
|
var AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION";
|
|
@@ -3701,22 +4724,22 @@ var DEFAULTS_MODE_OPTIONS = [
|
|
|
3701
4724
|
];
|
|
3702
4725
|
var IMDS_REGION_PATH = "/latest/meta-data/placement/region";
|
|
3703
4726
|
|
|
3704
|
-
// ../../node_modules/.pnpm/@smithy+util-defaults-mode-node@4.
|
|
3705
|
-
|
|
4727
|
+
// ../../node_modules/.pnpm/@smithy+util-defaults-mode-node@4.2.14/node_modules/@smithy/util-defaults-mode-node/dist-es/defaultsModeConfig.js
|
|
4728
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3706
4729
|
var AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE";
|
|
3707
4730
|
var AWS_DEFAULTS_MODE_CONFIG = "defaults_mode";
|
|
3708
4731
|
var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
|
|
3709
|
-
environmentVariableSelector: /* @__PURE__ */
|
|
4732
|
+
environmentVariableSelector: /* @__PURE__ */ _24WEKBY3_cjs.__name((env2) => {
|
|
3710
4733
|
return env2[AWS_DEFAULTS_MODE_ENV];
|
|
3711
4734
|
}, "environmentVariableSelector"),
|
|
3712
|
-
configFileSelector: /* @__PURE__ */
|
|
4735
|
+
configFileSelector: /* @__PURE__ */ _24WEKBY3_cjs.__name((profile) => {
|
|
3713
4736
|
return profile[AWS_DEFAULTS_MODE_CONFIG];
|
|
3714
4737
|
}, "configFileSelector"),
|
|
3715
4738
|
default: "legacy"
|
|
3716
4739
|
};
|
|
3717
4740
|
|
|
3718
|
-
// ../../node_modules/.pnpm/@smithy+util-defaults-mode-node@4.
|
|
3719
|
-
var resolveDefaultsModeConfig = /* @__PURE__ */
|
|
4741
|
+
// ../../node_modules/.pnpm/@smithy+util-defaults-mode-node@4.2.14/node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js
|
|
4742
|
+
var resolveDefaultsModeConfig = /* @__PURE__ */ _24WEKBY3_cjs.__name(({ region = UUMDUUBJ_cjs.loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = UUMDUUBJ_cjs.loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => UUMDUUBJ_cjs.memoize(async () => {
|
|
3720
4743
|
const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
|
|
3721
4744
|
switch (mode?.toLowerCase()) {
|
|
3722
4745
|
case "auto":
|
|
@@ -3733,7 +4756,7 @@ var resolveDefaultsModeConfig = /* @__PURE__ */ U7VZULNU_cjs.__name(({ region =
|
|
|
3733
4756
|
throw new Error(`Invalid parameter for "defaultsMode", expect ${DEFAULTS_MODE_OPTIONS.join(", ")}, got ${mode}`);
|
|
3734
4757
|
}
|
|
3735
4758
|
}), "resolveDefaultsModeConfig");
|
|
3736
|
-
var resolveNodeDefaultsModeAuto = /* @__PURE__ */
|
|
4759
|
+
var resolveNodeDefaultsModeAuto = /* @__PURE__ */ _24WEKBY3_cjs.__name(async (clientRegion) => {
|
|
3737
4760
|
if (clientRegion) {
|
|
3738
4761
|
const resolvedRegion = typeof clientRegion === "function" ? await clientRegion() : clientRegion;
|
|
3739
4762
|
const inferredRegion = await inferPhysicalRegion();
|
|
@@ -3748,13 +4771,13 @@ var resolveNodeDefaultsModeAuto = /* @__PURE__ */ U7VZULNU_cjs.__name(async (cli
|
|
|
3748
4771
|
}
|
|
3749
4772
|
return "standard";
|
|
3750
4773
|
}, "resolveNodeDefaultsModeAuto");
|
|
3751
|
-
var inferPhysicalRegion = /* @__PURE__ */
|
|
4774
|
+
var inferPhysicalRegion = /* @__PURE__ */ _24WEKBY3_cjs.__name(async () => {
|
|
3752
4775
|
if (process.env[AWS_EXECUTION_ENV] && (process.env[AWS_REGION_ENV] || process.env[AWS_DEFAULT_REGION_ENV])) {
|
|
3753
4776
|
return process.env[AWS_REGION_ENV] ?? process.env[AWS_DEFAULT_REGION_ENV];
|
|
3754
4777
|
}
|
|
3755
4778
|
if (!process.env[ENV_IMDS_DISABLED]) {
|
|
3756
4779
|
try {
|
|
3757
|
-
const { getInstanceMetadataEndpoint, httpRequest } = await import('./
|
|
4780
|
+
const { getInstanceMetadataEndpoint, httpRequest } = await import('./3TIEGVTO.cjs');
|
|
3758
4781
|
const endpoint = await getInstanceMetadataEndpoint();
|
|
3759
4782
|
return (await httpRequest({
|
|
3760
4783
|
...endpoint,
|
|
@@ -3765,12 +4788,9 @@ var inferPhysicalRegion = /* @__PURE__ */ U7VZULNU_cjs.__name(async () => {
|
|
|
3765
4788
|
}
|
|
3766
4789
|
}, "inferPhysicalRegion");
|
|
3767
4790
|
|
|
3768
|
-
// ../../node_modules/.pnpm/@smithy+util-defaults-mode-node@4.0.28/node_modules/@smithy/util-defaults-mode-node/dist-es/index.js
|
|
3769
|
-
U7VZULNU_cjs.init_cjs_shims();
|
|
3770
|
-
|
|
3771
4791
|
// ../../node_modules/.pnpm/@aws-sdk+region-config-resolver@3.873.0/node_modules/@aws-sdk/region-config-resolver/dist-es/extensions/index.js
|
|
3772
|
-
|
|
3773
|
-
var getAwsRegionExtensionConfiguration = /* @__PURE__ */
|
|
4792
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
4793
|
+
var getAwsRegionExtensionConfiguration = /* @__PURE__ */ _24WEKBY3_cjs.__name((runtimeConfig) => {
|
|
3774
4794
|
return {
|
|
3775
4795
|
setRegion(region) {
|
|
3776
4796
|
runtimeConfig.region = region;
|
|
@@ -3780,31 +4800,33 @@ var getAwsRegionExtensionConfiguration = /* @__PURE__ */ U7VZULNU_cjs.__name((ru
|
|
|
3780
4800
|
}
|
|
3781
4801
|
};
|
|
3782
4802
|
}, "getAwsRegionExtensionConfiguration");
|
|
3783
|
-
var resolveAwsRegionExtensionConfiguration = /* @__PURE__ */
|
|
4803
|
+
var resolveAwsRegionExtensionConfiguration = /* @__PURE__ */ _24WEKBY3_cjs.__name((awsRegionExtensionConfiguration) => {
|
|
3784
4804
|
return {
|
|
3785
4805
|
region: awsRegionExtensionConfiguration.region()
|
|
3786
4806
|
};
|
|
3787
4807
|
}, "resolveAwsRegionExtensionConfiguration");
|
|
3788
4808
|
|
|
3789
4809
|
// ../../node_modules/.pnpm/@aws-sdk+region-config-resolver@3.873.0/node_modules/@aws-sdk/region-config-resolver/dist-es/index.js
|
|
3790
|
-
|
|
4810
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3791
4811
|
|
|
3792
4812
|
// ../../node_modules/.pnpm/@aws-sdk+region-config-resolver@3.873.0/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/index.js
|
|
3793
|
-
|
|
4813
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3794
4814
|
|
|
3795
4815
|
// ../../node_modules/.pnpm/@aws-sdk+region-config-resolver@3.873.0/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/config.js
|
|
3796
|
-
|
|
4816
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3797
4817
|
|
|
3798
4818
|
// ../../node_modules/.pnpm/@aws-sdk+region-config-resolver@3.873.0/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/resolveRegionConfig.js
|
|
3799
|
-
|
|
4819
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3800
4820
|
|
|
3801
4821
|
// ../../node_modules/.pnpm/@aws-sdk+region-config-resolver@3.873.0/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/getRealRegion.js
|
|
3802
|
-
|
|
4822
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3803
4823
|
|
|
3804
4824
|
// ../../node_modules/.pnpm/@aws-sdk+region-config-resolver@3.873.0/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/isFipsRegion.js
|
|
3805
|
-
|
|
4825
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3806
4826
|
|
|
3807
4827
|
exports.AwsSdkSigV4Signer = AwsSdkSigV4Signer;
|
|
4828
|
+
exports.Client = Client;
|
|
4829
|
+
exports.Command = Command;
|
|
3808
4830
|
exports.DEFAULT_RETRY_MODE = DEFAULT_RETRY_MODE;
|
|
3809
4831
|
exports.DefaultIdentityProviderConfig = DefaultIdentityProviderConfig;
|
|
3810
4832
|
exports.EndpointCache = EndpointCache;
|
|
@@ -3817,17 +4839,23 @@ exports.NODE_REGION_CONFIG_OPTIONS = NODE_REGION_CONFIG_OPTIONS;
|
|
|
3817
4839
|
exports.NODE_RETRY_MODE_CONFIG_OPTIONS = NODE_RETRY_MODE_CONFIG_OPTIONS;
|
|
3818
4840
|
exports.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS;
|
|
3819
4841
|
exports.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS;
|
|
4842
|
+
exports.NoOpLogger = NoOpLogger;
|
|
4843
|
+
exports.ServiceException = ServiceException;
|
|
3820
4844
|
exports.awsEndpointFunctions = awsEndpointFunctions;
|
|
3821
4845
|
exports.calculateBodyLength = calculateBodyLength;
|
|
3822
4846
|
exports.collectBodyString = collectBodyString;
|
|
3823
4847
|
exports.createDefaultUserAgentProvider = createDefaultUserAgentProvider;
|
|
3824
4848
|
exports.customEndpointFunctions = customEndpointFunctions;
|
|
4849
|
+
exports.decorateServiceException = decorateServiceException;
|
|
3825
4850
|
exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion;
|
|
4851
|
+
exports.emitWarningIfUnsupportedVersion2 = emitWarningIfUnsupportedVersion2;
|
|
3826
4852
|
exports.getAwsRegionExtensionConfiguration = getAwsRegionExtensionConfiguration;
|
|
3827
4853
|
exports.getContentLengthPlugin = getContentLengthPlugin;
|
|
4854
|
+
exports.getDefaultExtensionConfiguration = getDefaultExtensionConfiguration;
|
|
3828
4855
|
exports.getEndpointPlugin = getEndpointPlugin;
|
|
3829
4856
|
exports.getHostHeaderPlugin = getHostHeaderPlugin;
|
|
3830
4857
|
exports.getHttpAuthSchemeEndpointRuleSetPlugin = getHttpAuthSchemeEndpointRuleSetPlugin;
|
|
4858
|
+
exports.getHttpHandlerExtensionConfiguration = getHttpHandlerExtensionConfiguration;
|
|
3831
4859
|
exports.getHttpSigningPlugin = getHttpSigningPlugin;
|
|
3832
4860
|
exports.getLoggerPlugin = getLoggerPlugin;
|
|
3833
4861
|
exports.getRecursionDetectionPlugin = getRecursionDetectionPlugin;
|
|
@@ -3835,15 +4863,19 @@ exports.getRetryPlugin = getRetryPlugin;
|
|
|
3835
4863
|
exports.getSerdePlugin = getSerdePlugin;
|
|
3836
4864
|
exports.getSmithyContext = getSmithyContext;
|
|
3837
4865
|
exports.getUserAgentPlugin = getUserAgentPlugin;
|
|
4866
|
+
exports.loadConfigsForDefaultMode = loadConfigsForDefaultMode;
|
|
3838
4867
|
exports.normalizeProvider = normalizeProvider;
|
|
3839
4868
|
exports.resolveAwsRegionExtensionConfiguration = resolveAwsRegionExtensionConfiguration;
|
|
3840
4869
|
exports.resolveAwsSdkSigV4Config = resolveAwsSdkSigV4Config;
|
|
4870
|
+
exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig;
|
|
3841
4871
|
exports.resolveDefaultsModeConfig = resolveDefaultsModeConfig;
|
|
3842
4872
|
exports.resolveEndpoint = resolveEndpoint;
|
|
3843
4873
|
exports.resolveEndpointConfig = resolveEndpointConfig;
|
|
3844
4874
|
exports.resolveHostHeaderConfig = resolveHostHeaderConfig;
|
|
4875
|
+
exports.resolveHttpHandlerRuntimeConfig = resolveHttpHandlerRuntimeConfig;
|
|
3845
4876
|
exports.resolveRegionConfig = resolveRegionConfig;
|
|
3846
4877
|
exports.resolveRetryConfig = resolveRetryConfig;
|
|
3847
4878
|
exports.resolveUserAgentConfig = resolveUserAgentConfig;
|
|
3848
|
-
|
|
3849
|
-
//# sourceMappingURL=
|
|
4879
|
+
exports.withBaseException = withBaseException;
|
|
4880
|
+
//# sourceMappingURL=ZI7GOR2D.cjs.map
|
|
4881
|
+
//# sourceMappingURL=ZI7GOR2D.cjs.map
|