@cleocode/cleo 2026.9.7 → 2026.9.10
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/cli/index.js +3873 -2234
- package/package.json +14 -13
- package/scripts/check-cleo-tarball-size.mjs +105 -0
- package/scripts/copy-studio-dist.mjs +33 -9
- package/studio-dist/client/_app/immutable/chunks/{wI_OOyoh.js → BB7zPpV2.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{D8NsLz6i.js → BOnrCZaR.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{eK8hf4s7.js → BSRBuVG3.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/C6jhAnil.js +1 -0
- package/studio-dist/client/_app/immutable/chunks/C87Q3uxm.js +1 -0
- package/studio-dist/client/_app/immutable/chunks/{DVHIxkgs.js → CLZBEpLY.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{CqF5Lomf.js → CTLGzgdN.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{o1PZ6Kzq.js → CY3heNub.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{RptFUp2P.js → Cge6qiwc.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{BRgWBQlV.js → CnwXLaZJ.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{Bxz2A0ZC.js → DEH43YwF.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/DGftG5oL.js +3 -0
- package/studio-dist/client/_app/immutable/chunks/DX_JOBSO.js +1 -0
- package/studio-dist/client/_app/immutable/chunks/{CEqOYim7.js → DZrdToAH.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/EZwHPWle.js +2 -0
- package/studio-dist/client/_app/immutable/chunks/cWVw9W0E.js +3 -0
- package/studio-dist/client/_app/immutable/chunks/{B9psmq5-.js → rB_71s8h.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{JPJd4fEI.js → rUtW7Hx6.js} +1 -1
- package/studio-dist/client/_app/immutable/entry/app.tvu3-wbp.js +2 -0
- package/studio-dist/client/_app/immutable/entry/start.BS-rpdjH.js +1 -0
- package/studio-dist/client/_app/immutable/nodes/{0.CZzEEyVh.js → 0.DMP7swbx.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{1.Bj3Opbua.js → 1.CYZMFpIp.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{10.xe_Mc2Ko.js → 10.3rxHNnSx.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{11.DuKPA7JD.js → 11.B6jWv3Kz.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{12.BoZ_QrUS.js → 12.BrDHeTEq.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{13.DFJiUiv8.js → 13.CE5bd4JV.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{14.eaAlFU4w.js → 14.DgXD2LRx.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{15.BfXgiwMC.js → 15.Cz1KI9Fv.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{16.mEwy9cqh.js → 16.K9wYQPhb.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{17.DP2QtQGn.js → 17.CtUmdfMg.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{18.Bu0054sX.js → 18.mtosd0sL.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{19.UWt6QbCm.js → 19.su55K8y_.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{2.y5jKpHiR.js → 2.mqgFVWFQ.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{20.B1AIHdkP.js → 20.NJuHLxuS.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{21.CpAN71H8.js → 21.BhwhdQCq.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{22.CrYKrN4c.js → 22.BmJEWwER.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{23.pGRaHQjq.js → 23.CAVIJEH-.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{24.BUoUu37z.js → 24.CMuXs5Sy.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/25.DhMBJYAo.js +39 -0
- package/studio-dist/client/_app/immutable/nodes/26.CJ4FA5FS.js +1 -0
- package/studio-dist/client/_app/immutable/nodes/{28.DcmYM7lb.js → 28.D64RBcfs.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{29.lbHbMqNO.js → 29.yfuBeH1x.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{3.Dyir4xXj.js → 3.y115j1d5.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{30.DXj0Wm2A.js → 30.1WUv5bh9.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/4.D6vXYBoQ.js +1 -0
- package/studio-dist/client/_app/immutable/nodes/{5.VWSdP7oc.js → 5.hjw2O-4e.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{6.Dl-XLwOj.js → 6.CAoDfDt6.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{7.CFuC5L-y.js → 7.CLgPSQ8Z.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{8.BCJ0DhOb.js → 8.zuaO1Hik.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{9.Bq4SUzL9.js → 9.Cdsd85m2.js} +1 -1
- package/studio-dist/client/_app/version.json +1 -1
- package/studio-dist/server/chunks/0-BQvtFOrC.js +41 -0
- package/studio-dist/server/chunks/1-Bx2_yoiK.js +9 -0
- package/studio-dist/server/chunks/{10-DvOD4ksa.js → 10-CYLc3d5x.js} +3 -3
- package/studio-dist/server/chunks/{11-DMnBZ02H.js → 11-DcIYR5vm.js} +3 -3
- package/studio-dist/server/chunks/{12-CCyRyRWX.js → 12-WE1u104t.js} +3 -3
- package/studio-dist/server/chunks/{13-Dx1c3a_X.js → 13-joBDoxhK.js} +3 -3
- package/studio-dist/server/chunks/{14-Bo-dTCaZ.js → 14-Doj5F4uJ.js} +3 -3
- package/studio-dist/server/chunks/{15-BvUNl3KL.js → 15-nQTeHGD1.js} +3 -3
- package/studio-dist/server/chunks/{16-De6EzPSa.js → 16-CcTN0e8k.js} +5 -4
- package/studio-dist/server/chunks/{17-CZNsiZhi.js → 17-DWiFnzES.js} +10 -93
- package/studio-dist/server/chunks/{18-CbxxjZox.js → 18-Dcc9GnPo.js} +5 -4
- package/studio-dist/server/chunks/{19-DqHyladS.js → 19-BAQHPrMB.js} +3 -3
- package/studio-dist/server/chunks/{2-COvmA-ZA.js → 2-DXSVVaej.js} +10 -93
- package/studio-dist/server/chunks/20-DfQlGHPW.js +57 -0
- package/studio-dist/server/chunks/{21-DXK9ptAC.js → 21-qhGjkW41.js} +4 -31
- package/studio-dist/server/chunks/{22-DD5CLWJC.js → 22-Byy16hFA.js} +3 -3
- package/studio-dist/server/chunks/23-CZpFrGp4.js +97 -0
- package/studio-dist/server/chunks/24-EEysaT9T.js +67 -0
- package/studio-dist/server/chunks/{25-CAg6Xcmn.js → 25-CgiYn70L.js} +15 -96
- package/studio-dist/server/chunks/{26-_nfVTvNi.js → 26-Cfd6BaUb.js} +12 -93
- package/studio-dist/server/chunks/{27-C9edghG4.js → 27-Cqzlh9gZ.js} +3 -2
- package/studio-dist/server/chunks/{28-VemTJGyc.js → 28-DeYe2rpm.js} +8 -62
- package/studio-dist/server/chunks/{29-CXP-m29t.js → 29-6pjLM0Z1.js} +10 -93
- package/studio-dist/server/chunks/{3-B8KhfvHp.js → 3-E_fWDAkq.js} +9 -25
- package/studio-dist/server/chunks/{30-QiM1S4cJ.js → 30-Dw317sSW.js} +10 -93
- package/studio-dist/server/chunks/{31-BwdY9NnB.js → 31-Q4kHbp8j.js} +3 -2
- package/studio-dist/server/chunks/{4-CSaG4HjO.js → 4-C9BMSh4K.js} +4 -3
- package/studio-dist/server/chunks/{5-i5ry4y3C.js → 5-C0CF4WKG.js} +3 -3
- package/studio-dist/server/chunks/{6-DR1GWBMT.js → 6-BWyOJust.js} +3 -3
- package/studio-dist/server/chunks/{7-DSNwn3aQ.js → 7-CK4MK5gy.js} +3 -3
- package/studio-dist/server/chunks/{8-Bj0bx07K.js → 8-CiX7Xk9k.js} +3 -3
- package/studio-dist/server/chunks/{9-B3Tz0mZq.js → 9-Be5118w4.js} +3 -3
- package/studio-dist/server/chunks/{HeroHeader-v4Q9vaGr.js → HeroHeader-BrGN5WPw.js} +2 -2
- package/studio-dist/server/chunks/{Sparkline-BJ-GuhRd.js → Sparkline-DU_NVxz9.js} +2 -2
- package/studio-dist/server/chunks/{StatBlock-DHJMmOCx.js → StatBlock-jNsxycS1.js} +2 -2
- package/studio-dist/server/chunks/{Tabs-DzG6Bn9a.js → Tabs-DQKDflnT.js} +2 -2
- package/studio-dist/server/chunks/_dispatch-DTWViLGL.js +145 -0
- package/studio-dist/server/chunks/{_layout.svelte-BEIGQcIv.js → _layout.svelte-CL6GfET2.js} +7 -9
- package/studio-dist/server/chunks/{_page.svelte-al08ovKm.js → _page.svelte-6iMiGR11.js} +5 -5
- package/studio-dist/server/chunks/{_page.svelte-Byz2djto.js → _page.svelte-B-YXGvAW.js} +5 -5
- package/studio-dist/server/chunks/{_page.svelte-tYN7_LXI.js → _page.svelte-B5E6RqVb.js} +9 -11
- package/studio-dist/server/chunks/{_page.svelte-UYiF7YBK.js → _page.svelte-BCRyjlk2.js} +5 -5
- package/studio-dist/server/chunks/{_page.svelte-CCoTp89s.js → _page.svelte-BoYafqft.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-nzffIbBP.js → _page.svelte-C7Wm6_HB.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-C_VSL8NW.js → _page.svelte-Cgqt7ucn.js} +13 -71
- package/studio-dist/server/chunks/{_page.svelte-CophUar3.js → _page.svelte-CqI6hqMm.js} +5 -5
- package/studio-dist/server/chunks/{_page.svelte-BgwL2Gyu.js → _page.svelte-CvQ2rZZ1.js} +11 -13
- package/studio-dist/server/chunks/{_page.svelte-l4Z_xjl9.js → _page.svelte-CvTyJEyS.js} +9 -11
- package/studio-dist/server/chunks/{_page.svelte-DOWw416I.js → _page.svelte-CvzAttO9.js} +11 -13
- package/studio-dist/server/chunks/{_page.svelte-DYNorA0S.js → _page.svelte-Cx9Ptecp.js} +10 -67
- package/studio-dist/server/chunks/{_page.svelte-Wfx7ww_h.js → _page.svelte-Cx9dPjsT.js} +11 -13
- package/studio-dist/server/chunks/{_page.svelte-2cgtvHwW.js → _page.svelte-DGN5j-At.js} +13 -71
- package/studio-dist/server/chunks/{_page.svelte-BVVTrzTL.js → _page.svelte-DaheDIRs.js} +5 -5
- package/studio-dist/server/chunks/{_page.svelte-M5D2QnMS.js → _page.svelte-Dm8y5a8S.js} +10 -67
- package/studio-dist/server/chunks/{_page.svelte-B_pq-Z98.js → _page.svelte-DqXxyNsF.js} +7 -7
- package/studio-dist/server/chunks/{_page.svelte-C3aIui4o.js → _page.svelte-DqsbnAhk.js} +4 -4
- package/studio-dist/server/chunks/{_page.svelte-ksTJUXce.js → _page.svelte-Dt0_c1T-.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-bGhsrIjS.js → _page.svelte-Dv6iwhu7.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-BXyoMME1.js → _page.svelte-GPiHej3P.js} +5 -5
- package/studio-dist/server/chunks/{_page.svelte-CYDjW1R0.js → _page.svelte-LuRm8XxE.js} +5 -5
- package/studio-dist/server/chunks/{_page.svelte-Clbkk1gm.js → _page.svelte-Z7nL9SC-.js} +8 -9
- package/studio-dist/server/chunks/{_page.svelte-DUWbZjC7.js → _page.svelte-_kntHS6v.js} +4 -4
- package/studio-dist/server/chunks/{_page.svelte-BIlhmugm.js → _page.svelte-eiomv6Pa.js} +11 -13
- package/studio-dist/server/chunks/{_page.svelte-9OQphlnm.js → _page.svelte-jXJbd8Mx.js} +14 -69
- package/studio-dist/server/chunks/{_page.svelte-CHzXuw2Q.js → _page.svelte-me5SUosG.js} +3 -3
- package/studio-dist/server/chunks/{_server.ts-DSzRdt1U.js → _server.ts--2m_U4SL.js} +11 -94
- package/studio-dist/server/chunks/{_server.ts-ujoDR2_g.js → _server.ts--sGLmBsz.js} +10 -92
- package/studio-dist/server/chunks/{_server.ts-k2fApwOp.js → _server.ts-0ukyuE0I.js} +5 -60
- package/studio-dist/server/chunks/_server.ts-1eW2mTeh.js +40 -0
- package/studio-dist/server/chunks/{_server.ts-Bfr4u3EP.js → _server.ts-3LzqLzt0.js} +10 -92
- package/studio-dist/server/chunks/_server.ts-40h9Y46Y.js +122 -0
- package/studio-dist/server/chunks/_server.ts-5euivmMj.js +38 -0
- package/studio-dist/server/chunks/{_server.ts-CShsBkeE.js → _server.ts-B0uoay97.js} +7 -23
- package/studio-dist/server/chunks/{_server.ts-hL92cV7Z.js → _server.ts-B5vYKkI6.js} +9 -63
- package/studio-dist/server/chunks/{_server.ts-_RJXtmfi.js → _server.ts-B8dTbPHd.js} +8 -23
- package/studio-dist/server/chunks/{_server.ts-C3Jo-ju8.js → _server.ts-BA8Xdegq.js} +10 -92
- package/studio-dist/server/chunks/_server.ts-BBClE0n9.js +54 -0
- package/studio-dist/server/chunks/{_server.ts-ZS1_yMwR.js → _server.ts-BDwMoyZ_.js} +6 -32
- package/studio-dist/server/chunks/{_server.ts-sv4pA808.js → _server.ts-BE-Uhx4N.js} +5 -46
- package/studio-dist/server/chunks/{_server.ts-DV6pzF-M.js → _server.ts-BSHADOUJ.js} +4 -3
- package/studio-dist/server/chunks/_server.ts-BcsqAqXt.js +67 -0
- package/studio-dist/server/chunks/_server.ts-Bl9tMqwZ.js +159 -0
- package/studio-dist/server/chunks/_server.ts-BlzDnRI0.js +51 -0
- package/studio-dist/server/chunks/{_server.ts-DnE0f-iC.js → _server.ts-BtuemCsf.js} +4 -3
- package/studio-dist/server/chunks/{_server.ts-BPcErnS0.js → _server.ts-C2nYqbd9.js} +10 -92
- package/studio-dist/server/chunks/{_server.ts-4p6cp9ke.js → _server.ts-C6IDM_3I.js} +10 -92
- package/studio-dist/server/chunks/_server.ts-C8Z32vuL.js +45 -0
- package/studio-dist/server/chunks/_server.ts-CBXyadsy.js +26 -0
- package/studio-dist/server/chunks/{_server.ts-Do9RIPRo.js → _server.ts-CE6h2ATE.js} +5 -32
- package/studio-dist/server/chunks/_server.ts-CH06JVqZ.js +65 -0
- package/studio-dist/server/chunks/_server.ts-CNqcws-M.js +29 -0
- package/studio-dist/server/chunks/{_server.ts-CJA1djzJ.js → _server.ts-CPf8necd.js} +8 -92
- package/studio-dist/server/chunks/{_server.ts-uUx7uT2Y.js → _server.ts-CYv5YuHd.js} +6 -43
- package/studio-dist/server/chunks/{_server.ts-B2E7fxo9.js → _server.ts-CZ5GZRWX.js} +6 -91
- package/studio-dist/server/chunks/{_server.ts-DSAv66wD.js → _server.ts-CbThsyhY.js} +4 -3
- package/studio-dist/server/chunks/{_server.ts-DgbY5EB3.js → _server.ts-CeQolQOK.js} +10 -92
- package/studio-dist/server/chunks/_server.ts-ChoGyX5C.js +61 -0
- package/studio-dist/server/chunks/_server.ts-CjJYkLJH.js +61 -0
- package/studio-dist/server/chunks/{_server.ts-lPlBUIJX.js → _server.ts-CtjArzxf.js} +5 -60
- package/studio-dist/server/chunks/{_server.ts-Cq60m8Pw.js → _server.ts-D3QWZwt_.js} +4 -3
- package/studio-dist/server/chunks/{_server.ts-CkoJ2HCW.js → _server.ts-D6wP5bCh.js} +10 -92
- package/studio-dist/server/chunks/{_server.ts-DwTRjS4y.js → _server.ts-D7JwQTun.js} +10 -93
- package/studio-dist/server/chunks/_server.ts-DKFJdXPK.js +97 -0
- package/studio-dist/server/chunks/_server.ts-DNAPGKEF.js +55 -0
- package/studio-dist/server/chunks/_server.ts-DQiTiY3E.js +78 -0
- package/studio-dist/server/chunks/{_server.ts-BT0Uq2yq.js → _server.ts-DUyeSXbV.js} +10 -92
- package/studio-dist/server/chunks/{_server.ts-DRVz9D-J.js → _server.ts-DY7BwZCv.js} +9 -24
- package/studio-dist/server/chunks/{_server.ts-Cz0zgaUV.js → _server.ts-D_E276ms.js} +3 -2
- package/studio-dist/server/chunks/{_server.ts-B5g3eScF.js → _server.ts-DgtmTAp5.js} +5 -60
- package/studio-dist/server/chunks/{_server.ts-CboRJY0Q.js → _server.ts-DhTKaw7h.js} +10 -63
- package/studio-dist/server/chunks/_server.ts-DqKBSCPT.js +31 -0
- package/studio-dist/server/chunks/{_server.ts-CpmMp5D8.js → _server.ts-DyXBNnRD.js} +4 -3
- package/studio-dist/server/chunks/_server.ts-DzjUpduu.js +25 -0
- package/studio-dist/server/chunks/{_server.ts-CGiAXy5i.js → _server.ts-Dznqw6Dg.js} +8 -23
- package/studio-dist/server/chunks/{_server.ts-tKMjUFUP.js → _server.ts-EVwS7UXb.js} +4 -3
- package/studio-dist/server/chunks/_server.ts-J17j25VG.js +62 -0
- package/studio-dist/server/chunks/{_server.ts-BdN4AJ6o.js → _server.ts-VQchZxXq.js} +10 -91
- package/studio-dist/server/chunks/{_server.ts-C4BcDGqS.js → _server.ts-XLV5SvjH.js} +7 -63
- package/studio-dist/server/chunks/_server.ts-jZgqFIJz.js +45 -0
- package/studio-dist/server/chunks/{_server.ts-Bw7A4zgb.js → _server.ts-lyiGGv7w.js} +5 -3
- package/studio-dist/server/chunks/{brain-CXR7ZT7S.js → brain-xt_NeshR.js} +2 -2
- package/studio-dist/server/chunks/cleo-home-_XIqkZaL.js +109 -0
- package/studio-dist/server/chunks/{cli-action-DQcaqcfn.js → cli-action-VJPEn1pY.js} +2 -2
- package/studio-dist/server/chunks/{client-CgX38JBu.js → client-D71MZ7Vi.js} +5 -6
- package/studio-dist/server/chunks/cluster-label-layer-CysRMvhi.js +6721 -0
- package/studio-dist/server/chunks/connections-CWLPjwBP.js +15 -0
- package/studio-dist/server/chunks/{connections2-mi7mZqJM.js → connections2-DHVs5ytW.js} +32 -19
- package/studio-dist/server/chunks/{dev-BNpEUZI3.js → dev-Br5zieNA.js} +2 -2
- package/studio-dist/server/chunks/dist-BzgWhfUR.js +18748 -0
- package/studio-dist/server/chunks/{error.svelte-CplNulnS.js → error.svelte-BIToUowC.js} +6 -8
- package/studio-dist/server/chunks/{explorer-loader-BN_mkt3_.js → explorer-loader-B_uCSs9_.js} +2 -2
- package/studio-dist/server/chunks/exports-Dg-gdPPq.js +124 -0
- package/studio-dist/server/chunks/{hooks.server-DBsyphiX.js → hooks.server-CWBRp8NI.js} +10 -93
- package/studio-dist/server/chunks/{http-CRTZe306.js → http-DPU3HHl2.js} +3 -4
- package/studio-dist/server/chunks/{index-server-DocJvixA.js → index-server-BgfA6C0S.js} +17 -4
- package/studio-dist/server/chunks/{internal-D6eWgsHJ.js → internal-DPnIJYMs.js} +56 -92
- package/studio-dist/server/chunks/{memory2-Cgc_4D5q.js → memory-BZHnDZzu.js} +4 -4
- package/studio-dist/server/chunks/{nexus-adapter-9EL_VlGI.js → nexus-adapter-D1ryYG1Z.js} +5 -5
- package/studio-dist/server/chunks/{no-face-up-DcejJLy-.js → no-face-up-B_3h6Hgs.js} +2 -2
- package/studio-dist/server/chunks/project-context-BAXQmgch.js +188 -0
- package/studio-dist/server/chunks/{src-BUqGet2c.js → src-D2rW9bIF.js} +422 -5
- package/studio-dist/server/chunks/{stores-5DmdjPCH.js → stores-BZdYTyl7.js} +3 -3
- package/studio-dist/server/chunks/{tasks2-Bf9VHrv-.js → tasks-sWuEmiGW.js} +2349 -9
- package/studio-dist/server/chunks/{ui-DR8zOSpC.js → ui-CkQ-pCs3.js} +2 -2
- package/studio-dist/server/chunks/utils-g564cUMV.js +151 -0
- package/studio-dist/server/index.js +5 -16
- package/studio-dist/server/manifest.js +88 -88
- package/dist/cli/index.js.map +0 -6
- package/studio-dist/client/_app/immutable/assets/parse-worker.CSEr67Qi.js +0 -1127
- package/studio-dist/client/_app/immutable/chunks/2mEksghu2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/3KebaI-z.js +0 -53
- package/studio-dist/client/_app/immutable/chunks/3y2yNYEk2.js +0 -3
- package/studio-dist/client/_app/immutable/chunks/7UXYlaI1.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/83VLmCvk.js +0 -4
- package/studio-dist/client/_app/immutable/chunks/84Rhmi6r.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/9CV9TXTg2.js +0 -92
- package/studio-dist/client/_app/immutable/chunks/9LFtcz24.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/9bLMgKwu2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/9kKqohVR2.js +0 -37
- package/studio-dist/client/_app/immutable/chunks/B-Ye28EY.js +0 -7
- package/studio-dist/client/_app/immutable/chunks/B-jnUl7o.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/B0ORuy8x2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/B0xCM1wN2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/B0zCN4sX.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/B1wt-iGW.js +0 -7
- package/studio-dist/client/_app/immutable/chunks/B2F3KUIU.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/B2_6RrlL2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/B2qKEYxA2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/B2u2rNyI2.js +0 -8
- package/studio-dist/client/_app/immutable/chunks/B3_X3Lhd2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/B3sNtbqf.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/B4NQP1Ax2.js +0 -6
- package/studio-dist/client/_app/immutable/chunks/BAtZg5v5.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BB6WKLm82.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BBX8UDtn.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BBs1U1iU.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BEli_4Jp2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BEt2wIUt.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BEyM8qSW2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BFZA3Dsk2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BGdPweG1.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BGiusSqE.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BGmpyfzD.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BH5rhSIR.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BHciFt922.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BHnFwTQY.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BIvye3XP2.js +0 -59
- package/studio-dist/client/_app/immutable/chunks/BJ8mcpQA2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BK17qSHw.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BLkgUtyb.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BMUko3r62.js +0 -5
- package/studio-dist/client/_app/immutable/chunks/BMwzdEaa.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BQZx6brg.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BUPJTTTd.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BVNGAeZe2.js +0 -146
- package/studio-dist/client/_app/immutable/chunks/BWfLryGm.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BXIfeogw.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BXTfFyUU.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BYJC6_MM.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BZV1ZJzH.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BZu9rehd.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Bbzm48C52.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BfGnlwjH.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Bfjb9LPp.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BieFfu-R.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Bmv63uXe2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BtBW1A0u.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BxISGQCl2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/ByNR_KvT.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BzjhD6Hr2.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BzpWnq0c2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/C-yJVcyI2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/C0cQ-8kS2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/C1vWmhYe.js +0 -48
- package/studio-dist/client/_app/immutable/chunks/C1w6bBje.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/C243sn7r.js +0 -4
- package/studio-dist/client/_app/immutable/chunks/C2oZaDvt.js +0 -67
- package/studio-dist/client/_app/immutable/chunks/C3OziSQx.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/C3hFPbMK.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/C4P9oFvU2.js +0 -6
- package/studio-dist/client/_app/immutable/chunks/C5Nlanei.js +0 -8
- package/studio-dist/client/_app/immutable/chunks/C6KBAXPl.js +0 -15
- package/studio-dist/client/_app/immutable/chunks/C8MZnWta.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CAoan3K12.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CBpcINYH.js +0 -29
- package/studio-dist/client/_app/immutable/chunks/CE7phgWq.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CFb4Co_K.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/CGWoRK3t2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CH3t4xo1.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CHJgk6g-.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CHgPjuDQ.js +0 -17
- package/studio-dist/client/_app/immutable/chunks/CHkCZrnr.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CI_91WUN.js +0 -4
- package/studio-dist/client/_app/immutable/chunks/CJ7-hP0H.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CKIrNnkY2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CKoQ7Ko5.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CM8O4zqs.js +0 -56
- package/studio-dist/client/_app/immutable/chunks/CMz3AVRO.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CNToUR3P.js +0 -13
- package/studio-dist/client/_app/immutable/chunks/CNuQG1yl2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CQLIZtxj.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/CQYVNgM0.js +0 -20
- package/studio-dist/client/_app/immutable/chunks/CQeVOmFO2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CSPHHq09.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CTJEdbIn.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CTTT3wYw.js +0 -35
- package/studio-dist/client/_app/immutable/chunks/CV4ck7fz.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/CXQrVnHf.js +0 -11
- package/studio-dist/client/_app/immutable/chunks/CXTCtOUQ.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/C_CsU7Qq.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/C_IZx3682.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/CbTnu2Po2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Cba8RZ1a2.js +0 -8
- package/studio-dist/client/_app/immutable/chunks/Cc8xxDr5.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CdPxoldu.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CdqDTozW.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CdsmcCfC.js +0 -25
- package/studio-dist/client/_app/immutable/chunks/CeYPAoY9.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Cf4kGS9y.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CfWEqXtJ2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Cg7Wj2b9.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/CgTpKZfi2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Chpy9ca7.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/CiLKuLrQ.js +0 -4
- package/studio-dist/client/_app/immutable/chunks/CjNDJjwu.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Cjde0ZKr2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Cjgnade02.js +0 -3
- package/studio-dist/client/_app/immutable/chunks/Ckp90om52.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/ClAPVhCD.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/ClT89UdO.js +0 -11
- package/studio-dist/client/_app/immutable/chunks/CnJf5tML.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CpF4Rrcc2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CqCka5yX2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CqtqZrOl.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CrJdywQt.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Cs0zC2l2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CsMn5fBs.js +0 -141
- package/studio-dist/client/_app/immutable/chunks/CsvKLHQQ2.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/Ctaresvj.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Ctetf8vc2.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/Cv7yW6MG.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CxRIz-Zd.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CxbvtjIH.js +0 -3
- package/studio-dist/client/_app/immutable/chunks/CxfeoXkZ.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/CySLscL2.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/D0PKQAbM.js +0 -87
- package/studio-dist/client/_app/immutable/chunks/D0WQsLTu.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/D1LBVx6r2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/D1NlFXu9.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/D1QfC4hu2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/D1yrHAn72.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/D2pa4reh.js +0 -7
- package/studio-dist/client/_app/immutable/chunks/D3QsWcIw2.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/D4OkQuPl2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/D6UDnATk2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/D7w7HllH.js +0 -38
- package/studio-dist/client/_app/immutable/chunks/D93KpglN.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/D99fQj2G2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DB5ifLM-.js +0 -3
- package/studio-dist/client/_app/immutable/chunks/DBhP8ifO2.js +0 -15
- package/studio-dist/client/_app/immutable/chunks/DF_4OWhj.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/DFpNK1vs2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DGRYMk-W.js +0 -142
- package/studio-dist/client/_app/immutable/chunks/DH3CcQwq.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DHQfJeLU.js +0 -4
- package/studio-dist/client/_app/immutable/chunks/DL89yEDy2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DLRku_0p2.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/DMZkjPYT2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DNP72foU.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DO2GztVm.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DOVNXmCK2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DOqzs8kl2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DQnR63hh2.js +0 -7
- package/studio-dist/client/_app/immutable/chunks/DTxtWPkw.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DVDgCC9A2.js +0 -20
- package/studio-dist/client/_app/immutable/chunks/DVVCJYjz.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DWRhYUMj2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DWavBJBI.js +0 -4
- package/studio-dist/client/_app/immutable/chunks/DXDSWRw-.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DXoHaH4a.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/DXpCX2Hi.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DYP3EJMY.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DYQphR_V.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DYUlIivP.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DYo2ye8X2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DYxFu8yV.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DZ66sRb6.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/D_XTiylm2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DaRv9jn22.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DaXb9i_E.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Dccf4VP2.js +0 -24
- package/studio-dist/client/_app/immutable/chunks/DdODs-Sb.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DdekYWer.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/DeHaovsF.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DeRRkRO52.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DeWI5qCn.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DfivR-Md.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DgmxpSo7.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DhPLWrun2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DhhrVdfi.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/Djr2dbcc2.js +0 -37
- package/studio-dist/client/_app/immutable/chunks/DjuRo5vv.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Djz4EDzO.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DkRfaw-K2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DksB5g4W2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Dmqenb5z2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DnbToVyf.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/DpGZwlmj.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Dq0lE5C32.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Dq54XqHT2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DqK84mbb.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DqjFtSJD.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/DrKWWDpL.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DsQIgu-4.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DsqdgJHS2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DtNkZUkq.js +0 -17
- package/studio-dist/client/_app/immutable/chunks/DutIls4V2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DvxYFW4C.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Dwp-76GQ.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/DxSZd548.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DxiUMhk0.js +0 -5
- package/studio-dist/client/_app/immutable/chunks/DxslLswf.js +0 -23
- package/studio-dist/client/_app/immutable/chunks/Dy7EjGgb2.js +0 -9
- package/studio-dist/client/_app/immutable/chunks/DyGQ_VXC.js +0 -3
- package/studio-dist/client/_app/immutable/chunks/DySe3kTV2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DyzE2Uxw.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DzhuJaxE2.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/FmMHyrh6.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Gxs0J274.js +0 -5
- package/studio-dist/client/_app/immutable/chunks/HwtzDYxN.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/ITRz_Q7H2.js +0 -15
- package/studio-dist/client/_app/immutable/chunks/KDNP98XY2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/LmVjFhpk2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/MiAejGV_.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Ml4JR6Jz2.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/NU5S3nNs2.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/Oh5zPjv3.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/QZkvJ9vi.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Rbn8UpBm.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/SPX3gYwn2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/TX-23QW3.js +0 -3
- package/studio-dist/client/_app/immutable/chunks/UyeQuL132.js +0 -12
- package/studio-dist/client/_app/immutable/chunks/VQszoXcV.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/VtZsEMxD.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/W2IeK61p2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Wadww7ZG.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/WgfA1zWk2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/WxIgAS1f.js +0 -21
- package/studio-dist/client/_app/immutable/chunks/XrsBoOj9.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/Y3PX4poR.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/YxfwqiF32.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Z7uO1YaO.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/_4ykQk_8.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/_kRcZFVn.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/aQNM7eVA2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/bHKz_Fb2.js +0 -45
- package/studio-dist/client/_app/immutable/chunks/bJRyRGSZ.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/dlzF6lnR.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/fjRbpfEr2.js +0 -26
- package/studio-dist/client/_app/immutable/chunks/imLk4if5.js +0 -3
- package/studio-dist/client/_app/immutable/chunks/lgRG0R-32.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/mFhCjxQJ2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/mgnH6qYg.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/n6M_5LoW.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/nLIOiDZp2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/nab7WB3u2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/orUmAKoW2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/p-fLQDfY2.js +0 -63
- package/studio-dist/client/_app/immutable/chunks/s0-WkOGk2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/sPuXfbUF.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/t4h0vrqR2.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/uE83FKL-.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/uzhXlm0g2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/vTrEsGlD2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/xJgCk3dx2.js +0 -28
- package/studio-dist/client/_app/immutable/chunks/z0Mt579s2.js +0 -13
- package/studio-dist/client/_app/immutable/entry/app.BoQ7cgT2.js +0 -2
- package/studio-dist/client/_app/immutable/entry/start.Cg1v8DU4.js +0 -1
- package/studio-dist/client/_app/immutable/nodes/25.ddZ1_EFk.js +0 -1
- package/studio-dist/client/_app/immutable/nodes/26.6OcmQbLV.js +0 -1
- package/studio-dist/client/_app/immutable/nodes/4.CCjOEwVU.js +0 -1
- package/studio-dist/server/chunks/0-CvsKDxQ6.js +0 -126
- package/studio-dist/server/chunks/1-ck_x2Hf0.js +0 -9
- package/studio-dist/server/chunks/20-DVU22np7.js +0 -142
- package/studio-dist/server/chunks/23-D_tUnnoc.js +0 -181
- package/studio-dist/server/chunks/24-CVlymvLF.js +0 -151
- package/studio-dist/server/chunks/AwsRestJsonProtocol-BZuoNBmL.js +0 -416
- package/studio-dist/server/chunks/UnionSerde-BflIkhKj.js +0 -2653
- package/studio-dist/server/chunks/_dispatch-ncuRztUQ.js +0 -5597
- package/studio-dist/server/chunks/_server.ts-4NyKAneX.js +0 -116
- package/studio-dist/server/chunks/_server.ts-7hGdxdEI.js +0 -136
- package/studio-dist/server/chunks/_server.ts-B6b3b-yA.js +0 -131
- package/studio-dist/server/chunks/_server.ts-BOgGqaZp.js +0 -144
- package/studio-dist/server/chunks/_server.ts-BV1HiKZ0.js +0 -120
- package/studio-dist/server/chunks/_server.ts-BWp3g6Cr.js +0 -110
- package/studio-dist/server/chunks/_server.ts-C5NF-UgC.js +0 -122
- package/studio-dist/server/chunks/_server.ts-CDMurH5m.js +0 -2301
- package/studio-dist/server/chunks/_server.ts-COJHCgbq.js +0 -127
- package/studio-dist/server/chunks/_server.ts-CUl-Utkt.js +0 -148
- package/studio-dist/server/chunks/_server.ts-D0GAFJRb.js +0 -156
- package/studio-dist/server/chunks/_server.ts-DA6p3pmi.js +0 -117
- package/studio-dist/server/chunks/_server.ts-DThYFaZj.js +0 -160
- package/studio-dist/server/chunks/_server.ts-D_3Pm0gr.js +0 -179
- package/studio-dist/server/chunks/_server.ts-DcHxdMsm.js +0 -144
- package/studio-dist/server/chunks/_server.ts-Dlfadh2I.js +0 -144
- package/studio-dist/server/chunks/_server.ts-JallJnps.js +0 -240
- package/studio-dist/server/chunks/_server.ts-NEFTbJpM.js +0 -142
- package/studio-dist/server/chunks/_server.ts-d-2NvRwX.js +0 -122
- package/studio-dist/server/chunks/_server.ts-rUWMLkIw.js +0 -146
- package/studio-dist/server/chunks/abort-events-CDRAJSqb.js +0 -30
- package/studio-dist/server/chunks/adapters-BkMgPNUM.js +0 -359
- package/studio-dist/server/chunks/adapters2-CQ3PzoaK.js +0 -28
- package/studio-dist/server/chunks/api-mode2-3W-I1-XO.js +0 -36
- package/studio-dist/server/chunks/api2-CmNQzb0b.js +0 -96
- package/studio-dist/server/chunks/attention-consolidate-CidG1jfH.js +0 -485
- package/studio-dist/server/chunks/audit3-DMO_fUGp.js +0 -52
- package/studio-dist/server/chunks/auto-extract-B84La1Vs.js +0 -34
- package/studio-dist/server/chunks/brain-consolidator-JGm6mzFf.js +0 -373
- package/studio-dist/server/chunks/brain-doctor-Dc2WqVbs.js +0 -311
- package/studio-dist/server/chunks/brain-embedding-Djw9ekXu.js +0 -42
- package/studio-dist/server/chunks/brain-lifecycle-BOOa876K.js +0 -969
- package/studio-dist/server/chunks/brain-maintenance-U6VvsvmK.js +0 -133
- package/studio-dist/server/chunks/brain-maintenance2-CwVSmfDT.js +0 -43
- package/studio-dist/server/chunks/brain-retrieval2-exR8mdgh.js +0 -751
- package/studio-dist/server/chunks/brain-search-CpSh-SNi.js +0 -48
- package/studio-dist/server/chunks/brain-search2-CwI2cXgg.js +0 -716
- package/studio-dist/server/chunks/brain-similarity-DI4yzm9e.js +0 -113
- package/studio-dist/server/chunks/brain-stdp2-BxSBIlSr.js +0 -960
- package/studio-dist/server/chunks/brain-writer-handlers-Dwu0QCAA.js +0 -188
- package/studio-dist/server/chunks/brain-writer-thread-6n7wI7Gy.js +0 -360
- package/studio-dist/server/chunks/branch-lock-Cq7zzmFK.js +0 -1118
- package/studio-dist/server/chunks/branch-lock2-CmDc4CZW.js +0 -45
- package/studio-dist/server/chunks/cancelled-child-waiver-audit-DkesrN83.js +0 -54
- package/studio-dist/server/chunks/catalog-model-resolver-Bas9qnoP.js +0 -9
- package/studio-dist/server/chunks/catalog-model-resolver2-Cexk2TN0.js +0 -237
- package/studio-dist/server/chunks/catalog-resolver-CLot3XJO.js +0 -260
- package/studio-dist/server/chunks/catalog-resolver2-JmKb91kY.js +0 -33
- package/studio-dist/server/chunks/chunk-DDP5xfzh.js +0 -39
- package/studio-dist/server/chunks/cleo-home-CCfe6kAQ.js +0 -64
- package/studio-dist/server/chunks/concrete-session2-bb_vxJ2N.js +0 -43
- package/studio-dist/server/chunks/config-DHj9CcFs.js +0 -386
- package/studio-dist/server/chunks/config2-F6PPIn7D.js +0 -35
- package/studio-dist/server/chunks/connections-BMGJVYcS.js +0 -98
- package/studio-dist/server/chunks/credential-pool-vF6NdtT9.js +0 -4600
- package/studio-dist/server/chunks/credentials-C7EJFf5O.js +0 -35
- package/studio-dist/server/chunks/credentials-store-CFygIuB2.js +0 -35
- package/studio-dist/server/chunks/cross-db-cleanup-1LWTUKPi.js +0 -147
- package/studio-dist/server/chunks/data-accessor-CWgVndbR.js +0 -72
- package/studio-dist/server/chunks/data-safety-central-DaFxK27G.js +0 -683
- package/studio-dist/server/chunks/decisions-CmVXV2-H.js +0 -574
- package/studio-dist/server/chunks/decisions2-XQsSYdxa.js +0 -48
- package/studio-dist/server/chunks/depends-waiver-audit-CUmlBYHx.js +0 -56
- package/studio-dist/server/chunks/dialectic-evaluator2-BOyyXhdI.js +0 -96
- package/studio-dist/server/chunks/dist-es2-DQy2Mjn_.js +0 -43
- package/studio-dist/server/chunks/dist-es3-CBygU4n5.js +0 -365
- package/studio-dist/server/chunks/dist-es4-CavbNu4B.js +0 -162
- package/studio-dist/server/chunks/dist-es5-Crpm8Wsl.js +0 -465
- package/studio-dist/server/chunks/dist-es6-CgePHzh4.js +0 -99
- package/studio-dist/server/chunks/dist-es7-k6c5GEd7.js +0 -311
- package/studio-dist/server/chunks/dist-es8-Bd9v0_pE.js +0 -91
- package/studio-dist/server/chunks/dist3-23bsJhRw.js +0 -27
- package/studio-dist/server/chunks/dist4-DmC1zSXi.js +0 -35618
- package/studio-dist/server/chunks/dual-scope-db-DKnWu1KM.js +0 -5672
- package/studio-dist/server/chunks/dual-scope-db2-Dht3luRw.js +0 -31
- package/studio-dist/server/chunks/duplicate-bypass-audit-BN5w1H2y.js +0 -36
- package/studio-dist/server/chunks/duplicate-detector-CaVFMKdE.js +0 -692
- package/studio-dist/server/chunks/edge-types-CgBvb0w1.js +0 -28
- package/studio-dist/server/chunks/embedding-local-xEnym8Ho.js +0 -92
- package/studio-dist/server/chunks/event-streams-Bi2p_fVo.js +0 -232
- package/studio-dist/server/chunks/execution-learning-BVCw7Plq.js +0 -278
- package/studio-dist/server/chunks/exodus-BBuuN6aA.js +0 -2594
- package/studio-dist/server/chunks/externalDataInterceptor-C3C4cObe.js +0 -21
- package/studio-dist/server/chunks/extraction-gate-DDNBq7gu.js +0 -48
- package/studio-dist/server/chunks/extraction-gate2-D77EZBQ6.js +0 -375
- package/studio-dist/server/chunks/getSSOTokenFromFile-yZAJxDci.js +0 -21
- package/studio-dist/server/chunks/governor2-CtfV3wfX.js +0 -923
- package/studio-dist/server/chunks/graph-auto-populate-Dmsr9ZJM.js +0 -42
- package/studio-dist/server/chunks/graph-auto-populate2-Cz0qeebM.js +0 -156
- package/studio-dist/server/chunks/graph-memory-bridge-CY8ft_d7.js +0 -43
- package/studio-dist/server/chunks/graph-memory-bridge2-Cd0XZwqc.js +0 -429
- package/studio-dist/server/chunks/handler-helpers-AANBGA_p.js +0 -49
- package/studio-dist/server/chunks/hash-Cm6yMET4.js +0 -14
- package/studio-dist/server/chunks/health-monitor-FepUZN1m.js +0 -106
- package/studio-dist/server/chunks/identity-DRpurt56.js +0 -30
- package/studio-dist/server/chunks/identity2-DeAB5RXE.js +0 -114
- package/studio-dist/server/chunks/index-61916rmV.js +0 -632
- package/studio-dist/server/chunks/index-DAgVDouG.js +0 -268
- package/studio-dist/server/chunks/index-Dtt_h58T.js +0 -2116
- package/studio-dist/server/chunks/indexes-DZ52grq6.js +0 -615
- package/studio-dist/server/chunks/json-Bfixam3g.js +0 -126
- package/studio-dist/server/chunks/learnings-D6Y3YGMU.js +0 -47
- package/studio-dist/server/chunks/learnings2-MwBdR9vb.js +0 -171
- package/studio-dist/server/chunks/lifecycle-ops2-V2CR5-7X.js +0 -121
- package/studio-dist/server/chunks/list-BhObczvn.js +0 -229
- package/studio-dist/server/chunks/living-brain2-j0B_Ir8j.js +0 -285
- package/studio-dist/server/chunks/llm-backend-resolver-D4ANvUPL.js +0 -295
- package/studio-dist/server/chunks/llm-extraction-DVCu4heR.js +0 -408
- package/studio-dist/server/chunks/loadSharedConfigFiles-umvW7kuz.js +0 -73
- package/studio-dist/server/chunks/loadSso-iidd5iKx.js +0 -599
- package/studio-dist/server/chunks/local-model-fit-B0TxifnX.js +0 -53
- package/studio-dist/server/chunks/local-model-fit2-BMqo6GJm.js +0 -2664
- package/studio-dist/server/chunks/lock-CA7d6lj7.js +0 -57
- package/studio-dist/server/chunks/logger-DQIoyZbq.js +0 -34
- package/studio-dist/server/chunks/memory-BUbicBbE.js +0 -618
- package/studio-dist/server/chunks/memory-accessor-i3P-RHSg.js +0 -42
- package/studio-dist/server/chunks/memory-accessor2-B981tHDR.js +0 -467
- package/studio-dist/server/chunks/memory-bridge-BOlEWg9w.js +0 -424
- package/studio-dist/server/chunks/memory-sqlite2-B7dq8doO.js +0 -42
- package/studio-dist/server/chunks/model-runner2-B71xjp4y.js +0 -43
- package/studio-dist/server/chunks/mvi-helpers-BNsJ8ZpQ.js +0 -59
- package/studio-dist/server/chunks/nexus-plasticity-BTfU8cW_.js +0 -269
- package/studio-dist/server/chunks/nexus-risk-audit-p379-TU5.js +0 -54
- package/studio-dist/server/chunks/nexus-schema-zeygY8OD.js +0 -11
- package/studio-dist/server/chunks/nexus-schema2-DP0Qd7CA.js +0 -444
- package/studio-dist/server/chunks/nexus-sqlite-BVNIpwc7.js +0 -36
- package/studio-dist/server/chunks/nexus-sqlite2-BBfY2xnY.js +0 -1103
- package/studio-dist/server/chunks/node-http-handler-CJI8kn7X.js +0 -386
- package/studio-dist/server/chunks/observe-Bo9veHGe.js +0 -47
- package/studio-dist/server/chunks/observe2-wzO0MaMY.js +0 -245
- package/studio-dist/server/chunks/observer-reflector-BwNOuq1d.js +0 -62
- package/studio-dist/server/chunks/observer-reflector2-ggtC1hmk.js +0 -478
- package/studio-dist/server/chunks/on-open-Wpcw7DV4.js +0 -740
- package/studio-dist/server/chunks/open-cleo-db--8sYNaYY.js +0 -70
- package/studio-dist/server/chunks/parseKnownFiles-Dg0pMFcT.js +0 -18
- package/studio-dist/server/chunks/parseUrl-qgGfl-Vh.js +0 -120
- package/studio-dist/server/chunks/paths-CV7S5-Zm.js +0 -30012
- package/studio-dist/server/chunks/patterns-lh5kn13I.js +0 -48
- package/studio-dist/server/chunks/patterns2-CzIcT-ai.js +0 -177
- package/studio-dist/server/chunks/pipeline-stage-IB_pOft-.js +0 -63
- package/studio-dist/server/chunks/prediction-D1lSGJ4c.js +0 -217
- package/studio-dist/server/chunks/premature-close-audit-VG09uAco.js +0 -53
- package/studio-dist/server/chunks/project-context-BjiqfEBi.js +0 -166
- package/studio-dist/server/chunks/provider-registry2-Cu7rAF0R.js +0 -35
- package/studio-dist/server/chunks/quality-feedback-CuCGEI6S.js +0 -371
- package/studio-dist/server/chunks/quality-scoring-CCPuRQmJ.js +0 -160
- package/studio-dist/server/chunks/query-ops-DCrjbZb9.js +0 -78
- package/studio-dist/server/chunks/query-promise-BkPmGPJy.js +0 -1257
- package/studio-dist/server/chunks/readFile-CxwXhymG.js +0 -31
- package/studio-dist/server/chunks/registry-CL2gN1zd.js +0 -27
- package/studio-dist/server/chunks/registry2-DoPYJnUW.js +0 -233
- package/studio-dist/server/chunks/registry3-BajEb-ll.js +0 -42
- package/studio-dist/server/chunks/registry4-DCqffZkT.js +0 -142
- package/studio-dist/server/chunks/retry-B3oEKYpp.js +0 -105
- package/studio-dist/server/chunks/role-executor-CC8BU54L.js +0 -25379
- package/studio-dist/server/chunks/role-resolver-D9QaDT0e.js +0 -6544
- package/studio-dist/server/chunks/role-resolver2-nkhzS1oy.js +0 -37
- package/studio-dist/server/chunks/rollup-CiefjN_Y.js +0 -194
- package/studio-dist/server/chunks/safety-data-accessor-CniDmGJO.js +0 -276
- package/studio-dist/server/chunks/service-connections-accessor-yBCdcgU-.js +0 -282
- package/studio-dist/server/chunks/session-factory-vbengc42.js +0 -96
- package/studio-dist/server/chunks/session-grade-BF4ZZtN_.js +0 -244
- package/studio-dist/server/chunks/session-journal-Bvey70Ur.js +0 -235
- package/studio-dist/server/chunks/session-narrative-BirZINSU.js +0 -304
- package/studio-dist/server/chunks/session-store--N_xHxUH.js +0 -557
- package/studio-dist/server/chunks/session-store2-DAM-eVTH.js +0 -43
- package/studio-dist/server/chunks/sessions-33DD4hkt.js +0 -2273
- package/studio-dist/server/chunks/sessions2-BHswKRDP.js +0 -50
- package/studio-dist/server/chunks/sigil-B-RznFXz.js +0 -33
- package/studio-dist/server/chunks/sigil2-jRMG5DuR.js +0 -47
- package/studio-dist/server/chunks/signin-BAsW3mM8.js +0 -644
- package/studio-dist/server/chunks/sleep-consolidation-BnSwXrvq.js +0 -823
- package/studio-dist/server/chunks/specialists-B_ZbpQlK.js +0 -441
- package/studio-dist/server/chunks/sqlite-Bm5LzbPs.js +0 -5977
- package/studio-dist/server/chunks/sqlite-backup-CFG1-b2e.js +0 -42
- package/studio-dist/server/chunks/sqlite-data-accessor-DD_RFX6r.js +0 -987
- package/studio-dist/server/chunks/sqlite-data-accessor2-CRmgNBnq.js +0 -44
- package/studio-dist/server/chunks/sqlite-native-BwlIqtbs.js +0 -42
- package/studio-dist/server/chunks/sqlite2-CUPut2fh.js +0 -42
- package/studio-dist/server/chunks/src2-DK8DKufK.js +0 -290
- package/studio-dist/server/chunks/src3-BJjf7XRG.js +0 -798
- package/studio-dist/server/chunks/src4-DNleK_t_.js +0 -28
- package/studio-dist/server/chunks/sso-oidc-eUvwseuL.js +0 -861
- package/studio-dist/server/chunks/storage-B9UA3BHR.js +0 -198
- package/studio-dist/server/chunks/sts-g7LDMLEd.js +0 -4655
- package/studio-dist/server/chunks/surprisal-CwTfWQi8.js +0 -224
- package/studio-dist/server/chunks/surprisal-tree-7dfHsuw1.js +0 -230
- package/studio-dist/server/chunks/system-resolver2-Bzhue_zQ.js +0 -53
- package/studio-dist/server/chunks/tasks-SHX7UPGY.js +0 -19694
- package/studio-dist/server/chunks/tasks-schema2-CTMoQKQy.js +0 -42
- package/studio-dist/server/chunks/temporal-supersession-DP4GPG_B.js +0 -298
- package/studio-dist/server/chunks/token-cAhAD9f9.js +0 -139
- package/studio-dist/server/chunks/token-util-D6drEz8_.js +0 -353
- package/studio-dist/server/chunks/token-util2-8UPSGvbb.js +0 -97
- package/studio-dist/server/chunks/transcript-scanner-kJWhWmlg.js +0 -53
- package/studio-dist/server/chunks/transformers.node-_xbxmK5p.js +0 -38475
- package/studio-dist/server/chunks/typed-query-l1D_QElt.js +0 -18
- package/studio-dist/server/chunks/unique-constraint-BZrrwgwc.js +0 -88
- package/studio-dist/server/chunks/update-B2YVBZG0.js +0 -1594
- package/studio-dist/server/chunks/user-profile-B61ZhVmC.js +0 -89
- package/studio-dist/server/chunks/utils-BPSZyajG.js +0 -1176
- package/studio-dist/server/chunks/validation-rules-CE27rtoF.js +0 -44
- package/studio-dist/server/chunks/zod-DsAeKNLm.js +0 -141
- /package/studio-dist/client/_app/immutable/chunks/{CQCxd1p9.js → B8WnZMYa.js} +0 -0
- /package/studio-dist/client/_app/immutable/chunks/{D13Quv9e2.js → B_0_YCYG.js} +0 -0
- /package/studio-dist/client/_app/immutable/chunks/{djL6V-tr.js → CqgtdAx_.js} +0 -0
- /package/studio-dist/client/_app/immutable/chunks/{_FU7h_8p2.js → KrUPZzXZ.js} +0 -0
|
@@ -1,2653 +0,0 @@
|
|
|
1
|
-
import { S as SMITHY_CONTEXT_KEY, v as normalizeProvider, w as getBearerTokenEnvKey, s as setCredentialFeature, n as normalizeProvider$1, d as HttpResponse, H as HttpRequest, x as InvokeStore, y as NormalizedSchema, A as AlgorithmId, z as setFeature$1, R as RETRY_MODES, T as TypeRegistry, E as EndpointURLScheme, B as SignatureV4, F as memoizeIdentityProvider, G as doesIdentityRequireRefresh, J as isIdentityExpired } from './role-executor-CC8BU54L.js';
|
|
2
|
-
import { m as memoize, l as loadConfig, p as parseUrl } from './parseUrl-qgGfl-Vh.js';
|
|
3
|
-
import { join, normalize, sep } from 'node:path';
|
|
4
|
-
import { platform, release } from 'node:os';
|
|
5
|
-
import { readFile } from 'node:fs/promises';
|
|
6
|
-
import { env, versions } from 'node:process';
|
|
7
|
-
import { Writable } from 'node:stream';
|
|
8
|
-
|
|
9
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/client/middleware-stack/MiddlewareStack.js
|
|
10
|
-
var getAllAliases = (name, aliases) => {
|
|
11
|
-
const _aliases = [];
|
|
12
|
-
if (name) _aliases.push(name);
|
|
13
|
-
if (aliases) for (const alias of aliases) _aliases.push(alias);
|
|
14
|
-
return _aliases;
|
|
15
|
-
};
|
|
16
|
-
var getMiddlewareNameWithAliases = (name, aliases) => {
|
|
17
|
-
return `${name || "anonymous"}${aliases && aliases.length > 0 ? ` (a.k.a. ${aliases.join(",")})` : ""}`;
|
|
18
|
-
};
|
|
19
|
-
var constructStack = () => {
|
|
20
|
-
let absoluteEntries = [];
|
|
21
|
-
let relativeEntries = [];
|
|
22
|
-
let identifyOnResolve = false;
|
|
23
|
-
const entriesNameSet = /* @__PURE__ */ new Set();
|
|
24
|
-
const sort = (entries) => entries.sort((a, b) => stepWeights[b.step] - stepWeights[a.step] || priorityWeights[b.priority || "normal"] - priorityWeights[a.priority || "normal"]);
|
|
25
|
-
const removeByName = (toRemove) => {
|
|
26
|
-
let isRemoved = false;
|
|
27
|
-
const filterCb = (entry) => {
|
|
28
|
-
const aliases = getAllAliases(entry.name, entry.aliases);
|
|
29
|
-
if (aliases.includes(toRemove)) {
|
|
30
|
-
isRemoved = true;
|
|
31
|
-
for (const alias of aliases) entriesNameSet.delete(alias);
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
return true;
|
|
35
|
-
};
|
|
36
|
-
absoluteEntries = absoluteEntries.filter(filterCb);
|
|
37
|
-
relativeEntries = relativeEntries.filter(filterCb);
|
|
38
|
-
return isRemoved;
|
|
39
|
-
};
|
|
40
|
-
const removeByReference = (toRemove) => {
|
|
41
|
-
let isRemoved = false;
|
|
42
|
-
const filterCb = (entry) => {
|
|
43
|
-
if (entry.middleware === toRemove) {
|
|
44
|
-
isRemoved = true;
|
|
45
|
-
for (const alias of getAllAliases(entry.name, entry.aliases)) entriesNameSet.delete(alias);
|
|
46
|
-
return false;
|
|
47
|
-
}
|
|
48
|
-
return true;
|
|
49
|
-
};
|
|
50
|
-
absoluteEntries = absoluteEntries.filter(filterCb);
|
|
51
|
-
relativeEntries = relativeEntries.filter(filterCb);
|
|
52
|
-
return isRemoved;
|
|
53
|
-
};
|
|
54
|
-
const cloneTo = (toStack) => {
|
|
55
|
-
absoluteEntries.forEach((entry) => {
|
|
56
|
-
toStack.add(entry.middleware, { ...entry });
|
|
57
|
-
});
|
|
58
|
-
relativeEntries.forEach((entry) => {
|
|
59
|
-
toStack.addRelativeTo(entry.middleware, { ...entry });
|
|
60
|
-
});
|
|
61
|
-
toStack.identifyOnResolve?.(stack.identifyOnResolve());
|
|
62
|
-
return toStack;
|
|
63
|
-
};
|
|
64
|
-
const expandRelativeMiddlewareList = (from) => {
|
|
65
|
-
const expandedMiddlewareList = [];
|
|
66
|
-
from.before.forEach((entry) => {
|
|
67
|
-
if (entry.before.length === 0 && entry.after.length === 0) expandedMiddlewareList.push(entry);
|
|
68
|
-
else expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry));
|
|
69
|
-
});
|
|
70
|
-
expandedMiddlewareList.push(from);
|
|
71
|
-
from.after.reverse().forEach((entry) => {
|
|
72
|
-
if (entry.before.length === 0 && entry.after.length === 0) expandedMiddlewareList.push(entry);
|
|
73
|
-
else expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry));
|
|
74
|
-
});
|
|
75
|
-
return expandedMiddlewareList;
|
|
76
|
-
};
|
|
77
|
-
const getMiddlewareList = (debug = false) => {
|
|
78
|
-
const normalizedAbsoluteEntries = [];
|
|
79
|
-
const normalizedRelativeEntries = [];
|
|
80
|
-
const normalizedEntriesNameMap = {};
|
|
81
|
-
absoluteEntries.forEach((entry) => {
|
|
82
|
-
const normalizedEntry = {
|
|
83
|
-
...entry,
|
|
84
|
-
before: [],
|
|
85
|
-
after: []
|
|
86
|
-
};
|
|
87
|
-
for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) normalizedEntriesNameMap[alias] = normalizedEntry;
|
|
88
|
-
normalizedAbsoluteEntries.push(normalizedEntry);
|
|
89
|
-
});
|
|
90
|
-
relativeEntries.forEach((entry) => {
|
|
91
|
-
const normalizedEntry = {
|
|
92
|
-
...entry,
|
|
93
|
-
before: [],
|
|
94
|
-
after: []
|
|
95
|
-
};
|
|
96
|
-
for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) normalizedEntriesNameMap[alias] = normalizedEntry;
|
|
97
|
-
normalizedRelativeEntries.push(normalizedEntry);
|
|
98
|
-
});
|
|
99
|
-
normalizedRelativeEntries.forEach((entry) => {
|
|
100
|
-
if (entry.toMiddleware) {
|
|
101
|
-
const toMiddleware = normalizedEntriesNameMap[entry.toMiddleware];
|
|
102
|
-
if (toMiddleware === void 0) {
|
|
103
|
-
if (debug) return;
|
|
104
|
-
throw new Error(`${entry.toMiddleware} is not found when adding ${getMiddlewareNameWithAliases(entry.name, entry.aliases)} middleware ${entry.relation} ${entry.toMiddleware}`);
|
|
105
|
-
}
|
|
106
|
-
if (entry.relation === "after") toMiddleware.after.push(entry);
|
|
107
|
-
if (entry.relation === "before") toMiddleware.before.push(entry);
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
return sort(normalizedAbsoluteEntries).map(expandRelativeMiddlewareList).reduce((wholeList, expandedMiddlewareList) => {
|
|
111
|
-
wholeList.push(...expandedMiddlewareList);
|
|
112
|
-
return wholeList;
|
|
113
|
-
}, []);
|
|
114
|
-
};
|
|
115
|
-
const stack = {
|
|
116
|
-
add: (middleware, options = {}) => {
|
|
117
|
-
const { name, override, aliases: _aliases } = options;
|
|
118
|
-
const entry = {
|
|
119
|
-
step: "initialize",
|
|
120
|
-
priority: "normal",
|
|
121
|
-
middleware,
|
|
122
|
-
...options
|
|
123
|
-
};
|
|
124
|
-
const aliases = getAllAliases(name, _aliases);
|
|
125
|
-
if (aliases.length > 0) {
|
|
126
|
-
if (aliases.some((alias) => entriesNameSet.has(alias))) {
|
|
127
|
-
if (!override) throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
|
|
128
|
-
for (const alias of aliases) {
|
|
129
|
-
const toOverrideIndex = absoluteEntries.findIndex((entry) => entry.name === alias || entry.aliases?.some((a) => a === alias));
|
|
130
|
-
if (toOverrideIndex === -1) continue;
|
|
131
|
-
const toOverride = absoluteEntries[toOverrideIndex];
|
|
132
|
-
if (toOverride.step !== entry.step || entry.priority !== toOverride.priority) 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.`);
|
|
133
|
-
absoluteEntries.splice(toOverrideIndex, 1);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
for (const alias of aliases) entriesNameSet.add(alias);
|
|
137
|
-
}
|
|
138
|
-
absoluteEntries.push(entry);
|
|
139
|
-
},
|
|
140
|
-
addRelativeTo: (middleware, options) => {
|
|
141
|
-
const { name, override, aliases: _aliases } = options;
|
|
142
|
-
const entry = {
|
|
143
|
-
middleware,
|
|
144
|
-
...options
|
|
145
|
-
};
|
|
146
|
-
const aliases = getAllAliases(name, _aliases);
|
|
147
|
-
if (aliases.length > 0) {
|
|
148
|
-
if (aliases.some((alias) => entriesNameSet.has(alias))) {
|
|
149
|
-
if (!override) throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
|
|
150
|
-
for (const alias of aliases) {
|
|
151
|
-
const toOverrideIndex = relativeEntries.findIndex((entry) => entry.name === alias || entry.aliases?.some((a) => a === alias));
|
|
152
|
-
if (toOverrideIndex === -1) continue;
|
|
153
|
-
const toOverride = relativeEntries[toOverrideIndex];
|
|
154
|
-
if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) 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.`);
|
|
155
|
-
relativeEntries.splice(toOverrideIndex, 1);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
for (const alias of aliases) entriesNameSet.add(alias);
|
|
159
|
-
}
|
|
160
|
-
relativeEntries.push(entry);
|
|
161
|
-
},
|
|
162
|
-
clone: () => cloneTo(constructStack()),
|
|
163
|
-
use: (plugin) => {
|
|
164
|
-
plugin.applyToStack(stack);
|
|
165
|
-
},
|
|
166
|
-
remove: (toRemove) => {
|
|
167
|
-
if (typeof toRemove === "string") return removeByName(toRemove);
|
|
168
|
-
else return removeByReference(toRemove);
|
|
169
|
-
},
|
|
170
|
-
removeByTag: (toRemove) => {
|
|
171
|
-
let isRemoved = false;
|
|
172
|
-
const filterCb = (entry) => {
|
|
173
|
-
const { tags, name, aliases: _aliases } = entry;
|
|
174
|
-
if (tags && tags.includes(toRemove)) {
|
|
175
|
-
const aliases = getAllAliases(name, _aliases);
|
|
176
|
-
for (const alias of aliases) entriesNameSet.delete(alias);
|
|
177
|
-
isRemoved = true;
|
|
178
|
-
return false;
|
|
179
|
-
}
|
|
180
|
-
return true;
|
|
181
|
-
};
|
|
182
|
-
absoluteEntries = absoluteEntries.filter(filterCb);
|
|
183
|
-
relativeEntries = relativeEntries.filter(filterCb);
|
|
184
|
-
return isRemoved;
|
|
185
|
-
},
|
|
186
|
-
concat: (from) => {
|
|
187
|
-
const cloned = cloneTo(constructStack());
|
|
188
|
-
cloned.use(from);
|
|
189
|
-
cloned.identifyOnResolve(identifyOnResolve || cloned.identifyOnResolve() || (from.identifyOnResolve?.() ?? false));
|
|
190
|
-
return cloned;
|
|
191
|
-
},
|
|
192
|
-
applyToStack: cloneTo,
|
|
193
|
-
identify: () => {
|
|
194
|
-
return getMiddlewareList(true).map((mw) => {
|
|
195
|
-
const step = mw.step ?? mw.relation + " " + mw.toMiddleware;
|
|
196
|
-
return getMiddlewareNameWithAliases(mw.name, mw.aliases) + " - " + step;
|
|
197
|
-
});
|
|
198
|
-
},
|
|
199
|
-
identifyOnResolve(toggle) {
|
|
200
|
-
if (typeof toggle === "boolean") identifyOnResolve = toggle;
|
|
201
|
-
return identifyOnResolve;
|
|
202
|
-
},
|
|
203
|
-
resolve: (handler, context) => {
|
|
204
|
-
for (const middleware of getMiddlewareList().map((entry) => entry.middleware).reverse()) handler = middleware(handler, context);
|
|
205
|
-
if (identifyOnResolve) console.log(stack.identify());
|
|
206
|
-
return handler;
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
|
-
return stack;
|
|
210
|
-
};
|
|
211
|
-
var stepWeights = {
|
|
212
|
-
initialize: 5,
|
|
213
|
-
serialize: 4,
|
|
214
|
-
build: 3,
|
|
215
|
-
finalizeRequest: 2,
|
|
216
|
-
deserialize: 1
|
|
217
|
-
};
|
|
218
|
-
var priorityWeights = {
|
|
219
|
-
high: 3,
|
|
220
|
-
normal: 2,
|
|
221
|
-
low: 1
|
|
222
|
-
};
|
|
223
|
-
//#endregion
|
|
224
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/client/util-middleware/getSmithyContext.js
|
|
225
|
-
var getSmithyContext = (context) => context["__smithy_context"] || (context["__smithy_context"] = {});
|
|
226
|
-
//#endregion
|
|
227
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/client.js
|
|
228
|
-
var Client = class {
|
|
229
|
-
config;
|
|
230
|
-
middlewareStack = constructStack();
|
|
231
|
-
initConfig;
|
|
232
|
-
handlers;
|
|
233
|
-
constructor(config) {
|
|
234
|
-
this.config = config;
|
|
235
|
-
const { protocol, protocolSettings } = config;
|
|
236
|
-
if (protocolSettings) {
|
|
237
|
-
if (typeof protocol === "function") config.protocol = new protocol(protocolSettings);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
send(command, optionsOrCb, cb) {
|
|
241
|
-
const options = typeof optionsOrCb !== "function" ? optionsOrCb : void 0;
|
|
242
|
-
const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb;
|
|
243
|
-
const useHandlerCache = options === void 0 && this.config.cacheMiddleware === true;
|
|
244
|
-
let handler;
|
|
245
|
-
if (useHandlerCache) {
|
|
246
|
-
if (!this.handlers) this.handlers = /* @__PURE__ */ new WeakMap();
|
|
247
|
-
const handlers = this.handlers;
|
|
248
|
-
if (handlers.has(command.constructor)) handler = handlers.get(command.constructor);
|
|
249
|
-
else {
|
|
250
|
-
handler = command.resolveMiddleware(this.middlewareStack, this.config, options);
|
|
251
|
-
handlers.set(command.constructor, handler);
|
|
252
|
-
}
|
|
253
|
-
} else {
|
|
254
|
-
delete this.handlers;
|
|
255
|
-
handler = command.resolveMiddleware(this.middlewareStack, this.config, options);
|
|
256
|
-
}
|
|
257
|
-
if (callback) handler(command).then((result) => callback(null, result.output), (err) => callback(err)).catch(() => {});
|
|
258
|
-
else return handler(command).then((result) => result.output);
|
|
259
|
-
}
|
|
260
|
-
destroy() {
|
|
261
|
-
this.config?.requestHandler?.destroy?.();
|
|
262
|
-
delete this.handlers;
|
|
263
|
-
}
|
|
264
|
-
};
|
|
265
|
-
//#endregion
|
|
266
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js
|
|
267
|
-
var booleanSelector = (obj, key, type) => {
|
|
268
|
-
if (!(key in obj)) return void 0;
|
|
269
|
-
if (obj[key] === "true") return true;
|
|
270
|
-
if (obj[key] === "false") return false;
|
|
271
|
-
throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`);
|
|
272
|
-
};
|
|
273
|
-
//#endregion
|
|
274
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/types.js
|
|
275
|
-
var SelectorType;
|
|
276
|
-
(function(SelectorType) {
|
|
277
|
-
SelectorType["ENV"] = "env";
|
|
278
|
-
SelectorType["CONFIG"] = "shared config entry";
|
|
279
|
-
})(SelectorType || (SelectorType = {}));
|
|
280
|
-
//#endregion
|
|
281
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
|
|
282
|
-
var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT";
|
|
283
|
-
var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint";
|
|
284
|
-
var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
|
|
285
|
-
environmentVariableSelector: (env) => booleanSelector(env, ENV_USE_DUALSTACK_ENDPOINT, SelectorType.ENV),
|
|
286
|
-
configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT, SelectorType.CONFIG),
|
|
287
|
-
default: false
|
|
288
|
-
};
|
|
289
|
-
//#endregion
|
|
290
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseFipsEndpointConfigOptions.js
|
|
291
|
-
var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT";
|
|
292
|
-
var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";
|
|
293
|
-
var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
|
|
294
|
-
environmentVariableSelector: (env) => booleanSelector(env, ENV_USE_FIPS_ENDPOINT, SelectorType.ENV),
|
|
295
|
-
configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, SelectorType.CONFIG),
|
|
296
|
-
default: false
|
|
297
|
-
};
|
|
298
|
-
//#endregion
|
|
299
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/config.js
|
|
300
|
-
var REGION_ENV_NAME = "AWS_REGION";
|
|
301
|
-
var REGION_INI_NAME = "region";
|
|
302
|
-
var NODE_REGION_CONFIG_OPTIONS = {
|
|
303
|
-
environmentVariableSelector: (env) => env[REGION_ENV_NAME],
|
|
304
|
-
configFileSelector: (profile) => profile[REGION_INI_NAME],
|
|
305
|
-
default: () => {
|
|
306
|
-
throw new Error("Region is missing");
|
|
307
|
-
}
|
|
308
|
-
};
|
|
309
|
-
var NODE_REGION_CONFIG_FILE_OPTIONS = { preferredFile: "credentials" };
|
|
310
|
-
//#endregion
|
|
311
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/checkRegion.js
|
|
312
|
-
var validRegions = /* @__PURE__ */ new Set();
|
|
313
|
-
var checkRegion = (region, check = isValidHostLabel) => {
|
|
314
|
-
if (!validRegions.has(region) && !check(region)) if (region === "*") 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.`);
|
|
315
|
-
else throw new Error(`Region not accepted: region="${region}" is not a valid hostname component.`);
|
|
316
|
-
else validRegions.add(region);
|
|
317
|
-
};
|
|
318
|
-
//#endregion
|
|
319
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/isFipsRegion.js
|
|
320
|
-
var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips"));
|
|
321
|
-
//#endregion
|
|
322
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getRealRegion.js
|
|
323
|
-
var getRealRegion = (region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region;
|
|
324
|
-
//#endregion
|
|
325
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/resolveRegionConfig.js
|
|
326
|
-
var resolveRegionConfig = (input) => {
|
|
327
|
-
const { region, useFipsEndpoint } = input;
|
|
328
|
-
if (!region) throw new Error("Region is missing");
|
|
329
|
-
return Object.assign(input, {
|
|
330
|
-
region: async () => {
|
|
331
|
-
const realRegion = getRealRegion(typeof region === "function" ? await region() : region);
|
|
332
|
-
checkRegion(realRegion);
|
|
333
|
-
return realRegion;
|
|
334
|
-
},
|
|
335
|
-
useFipsEndpoint: async () => {
|
|
336
|
-
if (isFipsRegion(typeof region === "string" ? region : await region())) return true;
|
|
337
|
-
return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint();
|
|
338
|
-
}
|
|
339
|
-
});
|
|
340
|
-
};
|
|
341
|
-
var DEFAULTS_MODE_OPTIONS = [
|
|
342
|
-
"in-region",
|
|
343
|
-
"cross-region",
|
|
344
|
-
"mobile",
|
|
345
|
-
"standard",
|
|
346
|
-
"legacy"
|
|
347
|
-
];
|
|
348
|
-
var IMDS_REGION_PATH = "/latest/meta-data/placement/region";
|
|
349
|
-
//#endregion
|
|
350
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/defaultsModeConfig.js
|
|
351
|
-
var AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE";
|
|
352
|
-
var AWS_DEFAULTS_MODE_CONFIG = "defaults_mode";
|
|
353
|
-
var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
|
|
354
|
-
environmentVariableSelector: (env) => {
|
|
355
|
-
return env[AWS_DEFAULTS_MODE_ENV];
|
|
356
|
-
},
|
|
357
|
-
configFileSelector: (profile) => {
|
|
358
|
-
return profile[AWS_DEFAULTS_MODE_CONFIG];
|
|
359
|
-
},
|
|
360
|
-
default: "legacy"
|
|
361
|
-
};
|
|
362
|
-
//#endregion
|
|
363
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.js
|
|
364
|
-
var resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => memoize(async () => {
|
|
365
|
-
const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
|
|
366
|
-
switch (mode?.toLowerCase()) {
|
|
367
|
-
case "auto": return resolveNodeDefaultsModeAuto(region);
|
|
368
|
-
case "in-region":
|
|
369
|
-
case "cross-region":
|
|
370
|
-
case "mobile":
|
|
371
|
-
case "standard":
|
|
372
|
-
case "legacy": return Promise.resolve(mode?.toLocaleLowerCase());
|
|
373
|
-
case void 0: return Promise.resolve("legacy");
|
|
374
|
-
default: throw new Error(`Invalid parameter for "defaultsMode", expect ${DEFAULTS_MODE_OPTIONS.join(", ")}, got ${mode}`);
|
|
375
|
-
}
|
|
376
|
-
});
|
|
377
|
-
var resolveNodeDefaultsModeAuto = async (clientRegion) => {
|
|
378
|
-
if (clientRegion) {
|
|
379
|
-
const resolvedRegion = typeof clientRegion === "function" ? await clientRegion() : clientRegion;
|
|
380
|
-
const inferredRegion = await inferPhysicalRegion();
|
|
381
|
-
if (!inferredRegion) return "standard";
|
|
382
|
-
if (resolvedRegion === inferredRegion) return "in-region";
|
|
383
|
-
else return "cross-region";
|
|
384
|
-
}
|
|
385
|
-
return "standard";
|
|
386
|
-
};
|
|
387
|
-
var inferPhysicalRegion = async () => {
|
|
388
|
-
if (process.env["AWS_EXECUTION_ENV"] && (process.env["AWS_REGION"] || process.env["AWS_DEFAULT_REGION"])) return process.env["AWS_REGION"] ?? process.env["AWS_DEFAULT_REGION"];
|
|
389
|
-
if (!process.env["AWS_EC2_METADATA_DISABLED"]) try {
|
|
390
|
-
return (await imdsHttpGet({
|
|
391
|
-
hostname: (await getImdsEndpoint()).hostname,
|
|
392
|
-
path: IMDS_REGION_PATH
|
|
393
|
-
})).toString();
|
|
394
|
-
} catch (e) {}
|
|
395
|
-
};
|
|
396
|
-
var getImdsEndpoint = async () => {
|
|
397
|
-
const envEndpoint = process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;
|
|
398
|
-
if (envEndpoint) {
|
|
399
|
-
const url = new URL(envEndpoint);
|
|
400
|
-
return {
|
|
401
|
-
hostname: url.hostname,
|
|
402
|
-
path: url.pathname
|
|
403
|
-
};
|
|
404
|
-
}
|
|
405
|
-
if (process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE === "IPv6") return {
|
|
406
|
-
hostname: "fd00:ec2::254",
|
|
407
|
-
path: "/"
|
|
408
|
-
};
|
|
409
|
-
return {
|
|
410
|
-
hostname: "169.254.169.254",
|
|
411
|
-
path: "/"
|
|
412
|
-
};
|
|
413
|
-
};
|
|
414
|
-
var imdsHttpGet = async ({ hostname, path }) => {
|
|
415
|
-
const { request } = await import('node:http');
|
|
416
|
-
return new Promise((resolve, reject) => {
|
|
417
|
-
const req = request({
|
|
418
|
-
method: "GET",
|
|
419
|
-
hostname: hostname.replace(/^\[(.+)]$/, "$1"),
|
|
420
|
-
path,
|
|
421
|
-
timeout: 1e3,
|
|
422
|
-
signal: AbortSignal.timeout(1e3)
|
|
423
|
-
});
|
|
424
|
-
req.on("error", (err) => {
|
|
425
|
-
reject(err);
|
|
426
|
-
req.destroy();
|
|
427
|
-
});
|
|
428
|
-
req.on("timeout", () => {
|
|
429
|
-
reject(/* @__PURE__ */ new Error("TimeoutError from instance metadata service"));
|
|
430
|
-
req.destroy();
|
|
431
|
-
});
|
|
432
|
-
req.on("response", (res) => {
|
|
433
|
-
const { statusCode = 400 } = res;
|
|
434
|
-
if (statusCode < 200 || 300 <= statusCode) {
|
|
435
|
-
reject(Object.assign(/* @__PURE__ */ new Error("Error response received from instance metadata service"), { statusCode }));
|
|
436
|
-
req.destroy();
|
|
437
|
-
return;
|
|
438
|
-
}
|
|
439
|
-
const chunks = [];
|
|
440
|
-
res.on("data", (chunk) => chunks.push(chunk));
|
|
441
|
-
res.on("end", () => {
|
|
442
|
-
resolve(Buffer.concat(chunks));
|
|
443
|
-
req.destroy();
|
|
444
|
-
});
|
|
445
|
-
});
|
|
446
|
-
req.end();
|
|
447
|
-
});
|
|
448
|
-
};
|
|
449
|
-
//#endregion
|
|
450
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js
|
|
451
|
-
var ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
|
|
452
|
-
var CONFIG_ENDPOINT_URL = "endpoint_url";
|
|
453
|
-
var getEndpointUrlConfig = (serviceId) => ({
|
|
454
|
-
environmentVariableSelector: (env) => {
|
|
455
|
-
const serviceEndpointUrl = env[[ENV_ENDPOINT_URL, ...serviceId.split(" ").map((w) => w.toUpperCase())].join("_")];
|
|
456
|
-
if (serviceEndpointUrl) return serviceEndpointUrl;
|
|
457
|
-
const endpointUrl = env[ENV_ENDPOINT_URL];
|
|
458
|
-
if (endpointUrl) return endpointUrl;
|
|
459
|
-
},
|
|
460
|
-
configFileSelector: (profile, config) => {
|
|
461
|
-
if (config && profile.services) {
|
|
462
|
-
const servicesSection = config[["services", profile.services].join(".")];
|
|
463
|
-
if (servicesSection) {
|
|
464
|
-
const endpointUrl = servicesSection[[serviceId.split(" ").map((w) => w.toLowerCase()).join("_"), CONFIG_ENDPOINT_URL].join(".")];
|
|
465
|
-
if (endpointUrl) return endpointUrl;
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
const endpointUrl = profile[CONFIG_ENDPOINT_URL];
|
|
469
|
-
if (endpointUrl) return endpointUrl;
|
|
470
|
-
},
|
|
471
|
-
default: void 0
|
|
472
|
-
});
|
|
473
|
-
//#endregion
|
|
474
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointFromConfig.js
|
|
475
|
-
var getEndpointFromConfig = async (serviceId) => loadConfig(getEndpointUrlConfig(serviceId ?? ""))();
|
|
476
|
-
//#endregion
|
|
477
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/service-customizations/s3.js
|
|
478
|
-
var resolveParamsForS3 = async (endpointParams) => {
|
|
479
|
-
const bucket = endpointParams?.Bucket || "";
|
|
480
|
-
if (typeof endpointParams.Bucket === "string") endpointParams.Bucket = bucket.replace(/#/g, encodeURIComponent("#")).replace(/\?/g, encodeURIComponent("?"));
|
|
481
|
-
if (isArnBucketName(bucket)) {
|
|
482
|
-
if (endpointParams.ForcePathStyle === true) throw new Error("Path-style addressing cannot be used with ARN buckets");
|
|
483
|
-
} else if (!isDnsCompatibleBucketName(bucket) || bucket.indexOf(".") !== -1 && !String(endpointParams.Endpoint).startsWith("http:") || bucket.toLowerCase() !== bucket || bucket.length < 3) endpointParams.ForcePathStyle = true;
|
|
484
|
-
if (endpointParams.DisableMultiRegionAccessPoints) {
|
|
485
|
-
endpointParams.disableMultiRegionAccessPoints = true;
|
|
486
|
-
endpointParams.DisableMRAP = true;
|
|
487
|
-
}
|
|
488
|
-
return endpointParams;
|
|
489
|
-
};
|
|
490
|
-
var DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/;
|
|
491
|
-
var IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/;
|
|
492
|
-
var DOTS_PATTERN = /\.\./;
|
|
493
|
-
var isDnsCompatibleBucketName = (bucketName) => DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName);
|
|
494
|
-
var isArnBucketName = (bucketName) => {
|
|
495
|
-
const [arn, partition, service, , , bucket] = bucketName.split(":");
|
|
496
|
-
const isArn = arn === "arn" && bucketName.split(":").length >= 6;
|
|
497
|
-
const isValidArn = Boolean(isArn && partition && service && bucket);
|
|
498
|
-
if (isArn && !isValidArn) throw new Error(`Invalid ARN: ${bucketName} was an invalid ARN.`);
|
|
499
|
-
return isValidArn;
|
|
500
|
-
};
|
|
501
|
-
//#endregion
|
|
502
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/createConfigValueProvider.js
|
|
503
|
-
var createConfigValueProvider = (configKey, canonicalEndpointParamKey, config, isClientContextParam = false) => {
|
|
504
|
-
const configProvider = async () => {
|
|
505
|
-
let configValue;
|
|
506
|
-
if (isClientContextParam) configValue = config.clientContextParams?.[configKey] ?? config[configKey] ?? config[canonicalEndpointParamKey];
|
|
507
|
-
else configValue = config[configKey] ?? config[canonicalEndpointParamKey];
|
|
508
|
-
if (typeof configValue === "function") return configValue();
|
|
509
|
-
return configValue;
|
|
510
|
-
};
|
|
511
|
-
if (configKey === "credentialScope" || canonicalEndpointParamKey === "CredentialScope") return async () => {
|
|
512
|
-
const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials;
|
|
513
|
-
return credentials?.credentialScope ?? credentials?.CredentialScope;
|
|
514
|
-
};
|
|
515
|
-
if (configKey === "accountId" || canonicalEndpointParamKey === "AccountId") return async () => {
|
|
516
|
-
const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials;
|
|
517
|
-
return credentials?.accountId ?? credentials?.AccountId;
|
|
518
|
-
};
|
|
519
|
-
if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") return async () => {
|
|
520
|
-
if (config.isCustomEndpoint === false) return;
|
|
521
|
-
const endpoint = await configProvider();
|
|
522
|
-
if (endpoint && typeof endpoint === "object") {
|
|
523
|
-
if ("url" in endpoint) return endpoint.url.href;
|
|
524
|
-
if ("hostname" in endpoint) {
|
|
525
|
-
const { protocol, hostname, port, path } = endpoint;
|
|
526
|
-
return `${protocol}//${hostname}${port ? ":" + port : ""}${path}`;
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
return endpoint;
|
|
530
|
-
};
|
|
531
|
-
return configProvider;
|
|
532
|
-
};
|
|
533
|
-
//#endregion
|
|
534
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js
|
|
535
|
-
var toEndpointV1 = (endpoint) => {
|
|
536
|
-
if (typeof endpoint === "object") {
|
|
537
|
-
if ("url" in endpoint) {
|
|
538
|
-
const v1Endpoint = parseUrl(endpoint.url);
|
|
539
|
-
if (endpoint.headers) {
|
|
540
|
-
v1Endpoint.headers = {};
|
|
541
|
-
for (const name in endpoint.headers) v1Endpoint.headers[name.toLowerCase()] = endpoint.headers[name].join(", ");
|
|
542
|
-
}
|
|
543
|
-
return v1Endpoint;
|
|
544
|
-
}
|
|
545
|
-
return endpoint;
|
|
546
|
-
}
|
|
547
|
-
return parseUrl(endpoint);
|
|
548
|
-
};
|
|
549
|
-
//#endregion
|
|
550
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointFromInstructions.js
|
|
551
|
-
function bindGetEndpointFromInstructions(getEndpointFromConfig) {
|
|
552
|
-
return async (commandInput, instructionsSupplier, clientConfig, context) => {
|
|
553
|
-
if (!clientConfig.isCustomEndpoint) {
|
|
554
|
-
let endpointFromConfig;
|
|
555
|
-
if (clientConfig.serviceConfiguredEndpoint) endpointFromConfig = await clientConfig.serviceConfiguredEndpoint();
|
|
556
|
-
else endpointFromConfig = await getEndpointFromConfig(clientConfig.serviceId);
|
|
557
|
-
if (endpointFromConfig) {
|
|
558
|
-
clientConfig.endpoint = () => Promise.resolve(toEndpointV1(endpointFromConfig));
|
|
559
|
-
clientConfig.isCustomEndpoint = true;
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
const endpointParams = await resolveParams(commandInput, instructionsSupplier, clientConfig);
|
|
563
|
-
if (typeof clientConfig.endpointProvider !== "function") throw new Error("config.endpointProvider is not set.");
|
|
564
|
-
const endpoint = clientConfig.endpointProvider(endpointParams, context);
|
|
565
|
-
if (clientConfig.isCustomEndpoint && clientConfig.endpoint) {
|
|
566
|
-
const customEndpoint = await clientConfig.endpoint();
|
|
567
|
-
if (customEndpoint?.headers) {
|
|
568
|
-
endpoint.headers ??= {};
|
|
569
|
-
for (const [name, value] of Object.entries(customEndpoint.headers)) endpoint.headers[name] = Array.isArray(value) ? value : [value];
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
return endpoint;
|
|
573
|
-
};
|
|
574
|
-
}
|
|
575
|
-
var resolveParams = async (commandInput, instructionsSupplier, clientConfig) => {
|
|
576
|
-
const endpointParams = {};
|
|
577
|
-
const instructions = instructionsSupplier?.getEndpointParameterInstructions?.() || {};
|
|
578
|
-
for (const [name, instruction] of Object.entries(instructions)) switch (instruction.type) {
|
|
579
|
-
case "staticContextParams":
|
|
580
|
-
endpointParams[name] = instruction.value;
|
|
581
|
-
break;
|
|
582
|
-
case "contextParams":
|
|
583
|
-
endpointParams[name] = commandInput[instruction.name];
|
|
584
|
-
break;
|
|
585
|
-
case "clientContextParams":
|
|
586
|
-
case "builtInParams":
|
|
587
|
-
endpointParams[name] = await createConfigValueProvider(instruction.name, name, clientConfig, instruction.type !== "builtInParams")();
|
|
588
|
-
break;
|
|
589
|
-
case "operationContextParams":
|
|
590
|
-
endpointParams[name] = instruction.get(commandInput);
|
|
591
|
-
break;
|
|
592
|
-
default: throw new Error("Unrecognized endpoint parameter instruction: " + JSON.stringify(instruction));
|
|
593
|
-
}
|
|
594
|
-
if (Object.keys(instructions).length === 0) Object.assign(endpointParams, clientConfig);
|
|
595
|
-
if (String(clientConfig.serviceId).toLowerCase() === "s3") await resolveParamsForS3(endpointParams);
|
|
596
|
-
return endpointParams;
|
|
597
|
-
};
|
|
598
|
-
//#endregion
|
|
599
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/endpointMiddleware.js
|
|
600
|
-
function setFeature(context, feature, value) {
|
|
601
|
-
if (!context.__smithy_context) context.__smithy_context = { features: {} };
|
|
602
|
-
else if (!context.__smithy_context.features) context.__smithy_context.features = {};
|
|
603
|
-
context.__smithy_context.features[feature] = value;
|
|
604
|
-
}
|
|
605
|
-
function bindEndpointMiddleware(getEndpointFromConfig) {
|
|
606
|
-
const getEndpointFromInstructions = bindGetEndpointFromInstructions(getEndpointFromConfig);
|
|
607
|
-
return ({ config, instructions }) => {
|
|
608
|
-
return (next, context) => async (args) => {
|
|
609
|
-
if (config.isCustomEndpoint) setFeature(context, "ENDPOINT_OVERRIDE", "N");
|
|
610
|
-
const endpoint = await getEndpointFromInstructions(args.input, { getEndpointParameterInstructions() {
|
|
611
|
-
return instructions;
|
|
612
|
-
} }, { ...config }, context);
|
|
613
|
-
context.endpointV2 = endpoint;
|
|
614
|
-
context.authSchemes = endpoint.properties?.authSchemes;
|
|
615
|
-
const authScheme = context.authSchemes?.[0];
|
|
616
|
-
if (authScheme) {
|
|
617
|
-
context["signing_region"] = authScheme.signingRegion;
|
|
618
|
-
context["signing_service"] = authScheme.signingName;
|
|
619
|
-
const httpAuthOption = getSmithyContext(context)?.selectedHttpAuthScheme?.httpAuthOption;
|
|
620
|
-
if (httpAuthOption) httpAuthOption.signingProperties = Object.assign(httpAuthOption.signingProperties || {}, {
|
|
621
|
-
signing_region: authScheme.signingRegion,
|
|
622
|
-
signingRegion: authScheme.signingRegion,
|
|
623
|
-
signing_service: authScheme.signingName,
|
|
624
|
-
signingName: authScheme.signingName,
|
|
625
|
-
signingRegionSet: authScheme.signingRegionSet
|
|
626
|
-
}, authScheme.properties);
|
|
627
|
-
}
|
|
628
|
-
return next({ ...args });
|
|
629
|
-
};
|
|
630
|
-
};
|
|
631
|
-
}
|
|
632
|
-
var endpointMiddlewareOptions = {
|
|
633
|
-
step: "serialize",
|
|
634
|
-
tags: [
|
|
635
|
-
"ENDPOINT_PARAMETERS",
|
|
636
|
-
"ENDPOINT_V2",
|
|
637
|
-
"ENDPOINT"
|
|
638
|
-
],
|
|
639
|
-
name: "endpointV2Middleware",
|
|
640
|
-
override: true,
|
|
641
|
-
relation: "before",
|
|
642
|
-
toMiddleware: {
|
|
643
|
-
name: "serializerMiddleware"}.name
|
|
644
|
-
};
|
|
645
|
-
function bindGetEndpointPlugin(getEndpointFromConfig) {
|
|
646
|
-
const endpointMiddleware = bindEndpointMiddleware(getEndpointFromConfig);
|
|
647
|
-
return (config, instructions) => ({ applyToStack: (clientStack) => {
|
|
648
|
-
clientStack.addRelativeTo(endpointMiddleware({
|
|
649
|
-
config,
|
|
650
|
-
instructions
|
|
651
|
-
}), endpointMiddlewareOptions);
|
|
652
|
-
} });
|
|
653
|
-
}
|
|
654
|
-
//#endregion
|
|
655
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.js
|
|
656
|
-
function bindResolveEndpointConfig(getEndpointFromConfig) {
|
|
657
|
-
return (input) => {
|
|
658
|
-
const tls = input.tls ?? true;
|
|
659
|
-
const { endpoint, useDualstackEndpoint, useFipsEndpoint } = input;
|
|
660
|
-
const resolvedConfig = Object.assign(input, {
|
|
661
|
-
endpoint: endpoint != null ? async () => toEndpointV1(await normalizeProvider$1(endpoint)()) : void 0,
|
|
662
|
-
tls,
|
|
663
|
-
isCustomEndpoint: !!endpoint,
|
|
664
|
-
useDualstackEndpoint: normalizeProvider$1(useDualstackEndpoint ?? false),
|
|
665
|
-
useFipsEndpoint: normalizeProvider$1(useFipsEndpoint ?? false)
|
|
666
|
-
});
|
|
667
|
-
let configuredEndpointPromise = void 0;
|
|
668
|
-
resolvedConfig.serviceConfiguredEndpoint = async () => {
|
|
669
|
-
if (input.serviceId && !configuredEndpointPromise) configuredEndpointPromise = getEndpointFromConfig(input.serviceId);
|
|
670
|
-
return configuredEndpointPromise;
|
|
671
|
-
};
|
|
672
|
-
return resolvedConfig;
|
|
673
|
-
};
|
|
674
|
-
}
|
|
675
|
-
//#endregion
|
|
676
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/bdd/BinaryDecisionDiagram.js
|
|
677
|
-
var BinaryDecisionDiagram = class BinaryDecisionDiagram {
|
|
678
|
-
nodes;
|
|
679
|
-
root;
|
|
680
|
-
conditions;
|
|
681
|
-
results;
|
|
682
|
-
constructor(bdd, root, conditions, results) {
|
|
683
|
-
this.nodes = bdd;
|
|
684
|
-
this.root = root;
|
|
685
|
-
this.conditions = conditions;
|
|
686
|
-
this.results = results;
|
|
687
|
-
}
|
|
688
|
-
static from(bdd, root, conditions, results) {
|
|
689
|
-
return new BinaryDecisionDiagram(bdd, root, conditions, results);
|
|
690
|
-
}
|
|
691
|
-
};
|
|
692
|
-
//#endregion
|
|
693
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/cache/EndpointCache.js
|
|
694
|
-
var EndpointCache = class {
|
|
695
|
-
capacity;
|
|
696
|
-
data = /* @__PURE__ */ new Map();
|
|
697
|
-
parameters = [];
|
|
698
|
-
constructor({ size, params }) {
|
|
699
|
-
this.capacity = size ?? 50;
|
|
700
|
-
if (params) this.parameters = params;
|
|
701
|
-
}
|
|
702
|
-
get(endpointParams, resolver) {
|
|
703
|
-
const key = this.hash(endpointParams);
|
|
704
|
-
if (key === false) return resolver();
|
|
705
|
-
if (!this.data.has(key)) {
|
|
706
|
-
if (this.data.size > this.capacity + 10) {
|
|
707
|
-
const keys = this.data.keys();
|
|
708
|
-
let i = 0;
|
|
709
|
-
while (true) {
|
|
710
|
-
const { value, done } = keys.next();
|
|
711
|
-
this.data.delete(value);
|
|
712
|
-
if (done || ++i > 10) break;
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
this.data.set(key, resolver());
|
|
716
|
-
}
|
|
717
|
-
return this.data.get(key);
|
|
718
|
-
}
|
|
719
|
-
size() {
|
|
720
|
-
return this.data.size;
|
|
721
|
-
}
|
|
722
|
-
hash(endpointParams) {
|
|
723
|
-
let buffer = "";
|
|
724
|
-
const { parameters } = this;
|
|
725
|
-
if (parameters.length === 0) return false;
|
|
726
|
-
for (const param of parameters) {
|
|
727
|
-
const val = String(endpointParams[param] ?? "");
|
|
728
|
-
if (val.includes("|;")) return false;
|
|
729
|
-
buffer += val + "|;";
|
|
730
|
-
}
|
|
731
|
-
return buffer;
|
|
732
|
-
}
|
|
733
|
-
};
|
|
734
|
-
//#endregion
|
|
735
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/types/EndpointError.js
|
|
736
|
-
var EndpointError = class extends Error {
|
|
737
|
-
constructor(message) {
|
|
738
|
-
super(message);
|
|
739
|
-
this.name = "EndpointError";
|
|
740
|
-
}
|
|
741
|
-
};
|
|
742
|
-
//#endregion
|
|
743
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/debug/debugId.js
|
|
744
|
-
var debugId = "endpoints";
|
|
745
|
-
//#endregion
|
|
746
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/debug/toDebugString.js
|
|
747
|
-
function toDebugString(input) {
|
|
748
|
-
if (typeof input !== "object" || input == null) return input;
|
|
749
|
-
if ("ref" in input) return `$${toDebugString(input.ref)}`;
|
|
750
|
-
if ("fn" in input) return `${input.fn}(${(input.argv || []).map(toDebugString).join(", ")})`;
|
|
751
|
-
return JSON.stringify(input, null, 2);
|
|
752
|
-
}
|
|
753
|
-
//#endregion
|
|
754
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/customEndpointFunctions.js
|
|
755
|
-
var customEndpointFunctions = {};
|
|
756
|
-
//#endregion
|
|
757
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/booleanEquals.js
|
|
758
|
-
var booleanEquals = (value1, value2) => value1 === value2;
|
|
759
|
-
//#endregion
|
|
760
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/coalesce.js
|
|
761
|
-
function coalesce(...args) {
|
|
762
|
-
for (const arg of args) if (arg != null) return arg;
|
|
763
|
-
}
|
|
764
|
-
//#endregion
|
|
765
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/getAttrPathList.js
|
|
766
|
-
var getAttrPathList = (path) => {
|
|
767
|
-
const parts = path.split(".");
|
|
768
|
-
const pathList = [];
|
|
769
|
-
for (const part of parts) {
|
|
770
|
-
const squareBracketIndex = part.indexOf("[");
|
|
771
|
-
if (squareBracketIndex !== -1) {
|
|
772
|
-
if (part.indexOf("]") !== part.length - 1) throw new EndpointError(`Path: '${path}' does not end with ']'`);
|
|
773
|
-
const arrayIndex = part.slice(squareBracketIndex + 1, -1);
|
|
774
|
-
if (Number.isNaN(parseInt(arrayIndex))) throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path}'`);
|
|
775
|
-
if (squareBracketIndex !== 0) pathList.push(part.slice(0, squareBracketIndex));
|
|
776
|
-
pathList.push(arrayIndex);
|
|
777
|
-
} else pathList.push(part);
|
|
778
|
-
}
|
|
779
|
-
return pathList;
|
|
780
|
-
};
|
|
781
|
-
//#endregion
|
|
782
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/getAttr.js
|
|
783
|
-
var getAttr = (value, path) => getAttrPathList(path).reduce((acc, index) => {
|
|
784
|
-
if (typeof acc !== "object") throw new EndpointError(`Index '${index}' in '${path}' not found in '${JSON.stringify(value)}'`);
|
|
785
|
-
else if (Array.isArray(acc)) {
|
|
786
|
-
const i = parseInt(index);
|
|
787
|
-
return acc[i < 0 ? acc.length + i : i];
|
|
788
|
-
}
|
|
789
|
-
return acc[index];
|
|
790
|
-
}, value);
|
|
791
|
-
//#endregion
|
|
792
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/isSet.js
|
|
793
|
-
var isSet = (value) => value != null;
|
|
794
|
-
//#endregion
|
|
795
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/isValidHostLabel.js
|
|
796
|
-
var VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
|
|
797
|
-
var isValidHostLabel = (value, allowSubDomains = false) => {
|
|
798
|
-
if (!allowSubDomains) return VALID_HOST_LABEL_REGEX.test(value);
|
|
799
|
-
const labels = value.split(".");
|
|
800
|
-
for (const label of labels) if (!isValidHostLabel(label)) return false;
|
|
801
|
-
return true;
|
|
802
|
-
};
|
|
803
|
-
//#endregion
|
|
804
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/ite.js
|
|
805
|
-
function ite(condition, trueValue, falseValue) {
|
|
806
|
-
return condition ? trueValue : falseValue;
|
|
807
|
-
}
|
|
808
|
-
//#endregion
|
|
809
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/not.js
|
|
810
|
-
var not = (value) => !value;
|
|
811
|
-
//#endregion
|
|
812
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/isIpAddress.js
|
|
813
|
-
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}$`);
|
|
814
|
-
var isIpAddress = (value) => IP_V4_REGEX.test(value) || value.startsWith("[") && value.endsWith("]");
|
|
815
|
-
//#endregion
|
|
816
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/parseURL.js
|
|
817
|
-
var DEFAULT_PORTS = {
|
|
818
|
-
[EndpointURLScheme.HTTP]: 80,
|
|
819
|
-
[EndpointURLScheme.HTTPS]: 443
|
|
820
|
-
};
|
|
821
|
-
var parseURL = (value) => {
|
|
822
|
-
const whatwgURL = (() => {
|
|
823
|
-
try {
|
|
824
|
-
if (value instanceof URL) return value;
|
|
825
|
-
if (typeof value === "object" && "hostname" in value) {
|
|
826
|
-
const { hostname, port, protocol = "", path = "", query = {} } = value;
|
|
827
|
-
const url = new URL(`${protocol}//${hostname}${port ? `:${port}` : ""}${path}`);
|
|
828
|
-
url.search = Object.entries(query).map(([k, v]) => `${k}=${v}`).join("&");
|
|
829
|
-
return url;
|
|
830
|
-
}
|
|
831
|
-
return new URL(value);
|
|
832
|
-
} catch (error) {
|
|
833
|
-
return null;
|
|
834
|
-
}
|
|
835
|
-
})();
|
|
836
|
-
if (!whatwgURL) {
|
|
837
|
-
console.error(`Unable to parse ${JSON.stringify(value)} as a whatwg URL.`);
|
|
838
|
-
return null;
|
|
839
|
-
}
|
|
840
|
-
const urlString = whatwgURL.href;
|
|
841
|
-
const { host, hostname, pathname, protocol, search } = whatwgURL;
|
|
842
|
-
if (search) return null;
|
|
843
|
-
const scheme = protocol.slice(0, -1);
|
|
844
|
-
if (!Object.values(EndpointURLScheme).includes(scheme)) return null;
|
|
845
|
-
const isIp = isIpAddress(hostname);
|
|
846
|
-
return {
|
|
847
|
-
scheme,
|
|
848
|
-
authority: `${host}${urlString.includes(`${host}:${DEFAULT_PORTS[scheme]}`) || typeof value === "string" && value.includes(`${host}:${DEFAULT_PORTS[scheme]}`) ? `:${DEFAULT_PORTS[scheme]}` : ``}`,
|
|
849
|
-
path: pathname,
|
|
850
|
-
normalizedPath: pathname.endsWith("/") ? pathname : `${pathname}/`,
|
|
851
|
-
isIp
|
|
852
|
-
};
|
|
853
|
-
};
|
|
854
|
-
//#endregion
|
|
855
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/split.js
|
|
856
|
-
function split(value, delimiter, limit) {
|
|
857
|
-
if (limit === 1) return [value];
|
|
858
|
-
if (value === "") return [""];
|
|
859
|
-
const parts = value.split(delimiter);
|
|
860
|
-
if (limit === 0) return parts;
|
|
861
|
-
return parts.slice(0, limit - 1).concat(parts.slice(1).join(delimiter));
|
|
862
|
-
}
|
|
863
|
-
//#endregion
|
|
864
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/stringEquals.js
|
|
865
|
-
var stringEquals = (value1, value2) => value1 === value2;
|
|
866
|
-
//#endregion
|
|
867
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/substring.js
|
|
868
|
-
var substring = (input, start, stop, reverse) => {
|
|
869
|
-
if (input == null || start >= stop || input.length < stop || /[^\u0000-\u007f]/.test(input)) return null;
|
|
870
|
-
if (!reverse) return input.substring(start, stop);
|
|
871
|
-
return input.substring(input.length - stop, input.length - start);
|
|
872
|
-
};
|
|
873
|
-
//#endregion
|
|
874
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/uriEncode.js
|
|
875
|
-
var uriEncode = (value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
876
|
-
//#endregion
|
|
877
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/endpointFunctions.js
|
|
878
|
-
var endpointFunctions = {
|
|
879
|
-
booleanEquals,
|
|
880
|
-
coalesce,
|
|
881
|
-
getAttr,
|
|
882
|
-
isSet,
|
|
883
|
-
isValidHostLabel,
|
|
884
|
-
ite,
|
|
885
|
-
not,
|
|
886
|
-
parseURL,
|
|
887
|
-
split,
|
|
888
|
-
stringEquals,
|
|
889
|
-
substring,
|
|
890
|
-
uriEncode
|
|
891
|
-
};
|
|
892
|
-
//#endregion
|
|
893
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/evaluateTemplate.js
|
|
894
|
-
var evaluateTemplate = (template, options) => {
|
|
895
|
-
const evaluatedTemplateArr = [];
|
|
896
|
-
const { referenceRecord, endpointParams } = options;
|
|
897
|
-
let currentIndex = 0;
|
|
898
|
-
while (currentIndex < template.length) {
|
|
899
|
-
const openingBraceIndex = template.indexOf("{", currentIndex);
|
|
900
|
-
if (openingBraceIndex === -1) {
|
|
901
|
-
evaluatedTemplateArr.push(template.slice(currentIndex));
|
|
902
|
-
break;
|
|
903
|
-
}
|
|
904
|
-
evaluatedTemplateArr.push(template.slice(currentIndex, openingBraceIndex));
|
|
905
|
-
const closingBraceIndex = template.indexOf("}", openingBraceIndex);
|
|
906
|
-
if (closingBraceIndex === -1) {
|
|
907
|
-
evaluatedTemplateArr.push(template.slice(openingBraceIndex));
|
|
908
|
-
break;
|
|
909
|
-
}
|
|
910
|
-
if (template[openingBraceIndex + 1] === "{" && template[closingBraceIndex + 1] === "}") {
|
|
911
|
-
evaluatedTemplateArr.push(template.slice(openingBraceIndex + 1, closingBraceIndex));
|
|
912
|
-
currentIndex = closingBraceIndex + 2;
|
|
913
|
-
}
|
|
914
|
-
const parameterName = template.substring(openingBraceIndex + 1, closingBraceIndex);
|
|
915
|
-
if (parameterName.includes("#")) {
|
|
916
|
-
const [refName, attrName] = parameterName.split("#");
|
|
917
|
-
evaluatedTemplateArr.push(getAttr(referenceRecord[refName] ?? endpointParams[refName], attrName));
|
|
918
|
-
} else evaluatedTemplateArr.push(referenceRecord[parameterName] ?? endpointParams[parameterName]);
|
|
919
|
-
currentIndex = closingBraceIndex + 1;
|
|
920
|
-
}
|
|
921
|
-
return evaluatedTemplateArr.join("");
|
|
922
|
-
};
|
|
923
|
-
//#endregion
|
|
924
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/getReferenceValue.js
|
|
925
|
-
var getReferenceValue = ({ ref }, options) => {
|
|
926
|
-
return options.referenceRecord[ref] ?? options.endpointParams[ref];
|
|
927
|
-
};
|
|
928
|
-
//#endregion
|
|
929
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/evaluateExpression.js
|
|
930
|
-
var evaluateExpression = (obj, keyName, options) => {
|
|
931
|
-
if (typeof obj === "string") return evaluateTemplate(obj, options);
|
|
932
|
-
else if (obj["fn"]) return group$1.callFunction(obj, options);
|
|
933
|
-
else if (obj["ref"]) return getReferenceValue(obj, options);
|
|
934
|
-
throw new EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`);
|
|
935
|
-
};
|
|
936
|
-
var callFunction = ({ fn, argv }, options) => {
|
|
937
|
-
const evaluatedArgs = Array(argv.length);
|
|
938
|
-
for (let i = 0; i < evaluatedArgs.length; ++i) {
|
|
939
|
-
const arg = argv[i];
|
|
940
|
-
if (typeof arg === "boolean" || typeof arg === "number") evaluatedArgs[i] = arg;
|
|
941
|
-
else evaluatedArgs[i] = group$1.evaluateExpression(arg, "arg", options);
|
|
942
|
-
}
|
|
943
|
-
const namespaceSeparatorIndex = fn.indexOf(".");
|
|
944
|
-
if (namespaceSeparatorIndex !== -1) {
|
|
945
|
-
const customFunction = customEndpointFunctions[fn.slice(0, namespaceSeparatorIndex)]?.[fn.slice(namespaceSeparatorIndex + 1)];
|
|
946
|
-
if (typeof customFunction === "function") return customFunction(...evaluatedArgs);
|
|
947
|
-
}
|
|
948
|
-
const callable = endpointFunctions[fn];
|
|
949
|
-
if (typeof callable === "function") return callable(...evaluatedArgs);
|
|
950
|
-
throw new Error(`function ${fn} not loaded in endpointFunctions.`);
|
|
951
|
-
};
|
|
952
|
-
var group$1 = {
|
|
953
|
-
evaluateExpression,
|
|
954
|
-
callFunction
|
|
955
|
-
};
|
|
956
|
-
//#endregion
|
|
957
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/evaluateCondition.js
|
|
958
|
-
var evaluateCondition = (condition, options) => {
|
|
959
|
-
const { assign } = condition;
|
|
960
|
-
if (assign && assign in options.referenceRecord) throw new EndpointError(`'${assign}' is already defined in Reference Record.`);
|
|
961
|
-
const value = callFunction(condition, options);
|
|
962
|
-
options.logger?.debug?.(`${debugId} evaluateCondition: ${toDebugString(condition)} = ${toDebugString(value)}`);
|
|
963
|
-
const result = value === "" ? true : !!value;
|
|
964
|
-
if (assign != null) return {
|
|
965
|
-
result,
|
|
966
|
-
toAssign: {
|
|
967
|
-
name: assign,
|
|
968
|
-
value
|
|
969
|
-
}
|
|
970
|
-
};
|
|
971
|
-
return { result };
|
|
972
|
-
};
|
|
973
|
-
//#endregion
|
|
974
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/getEndpointHeaders.js
|
|
975
|
-
var getEndpointHeaders = (headers, options) => Object.entries(headers ?? {}).reduce((acc, [headerKey, headerVal]) => {
|
|
976
|
-
acc[headerKey] = headerVal.map((headerValEntry) => {
|
|
977
|
-
const processedExpr = evaluateExpression(headerValEntry, "Header value entry", options);
|
|
978
|
-
if (typeof processedExpr !== "string") throw new EndpointError(`Header '${headerKey}' value '${processedExpr}' is not a string`);
|
|
979
|
-
return processedExpr;
|
|
980
|
-
});
|
|
981
|
-
return acc;
|
|
982
|
-
}, {});
|
|
983
|
-
//#endregion
|
|
984
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/getEndpointProperties.js
|
|
985
|
-
var getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => {
|
|
986
|
-
acc[propertyKey] = group.getEndpointProperty(propertyVal, options);
|
|
987
|
-
return acc;
|
|
988
|
-
}, {});
|
|
989
|
-
var getEndpointProperty = (property, options) => {
|
|
990
|
-
if (Array.isArray(property)) return property.map((propertyEntry) => getEndpointProperty(propertyEntry, options));
|
|
991
|
-
switch (typeof property) {
|
|
992
|
-
case "string": return evaluateTemplate(property, options);
|
|
993
|
-
case "object":
|
|
994
|
-
if (property === null) throw new EndpointError(`Unexpected endpoint property: ${property}`);
|
|
995
|
-
return group.getEndpointProperties(property, options);
|
|
996
|
-
case "boolean": return property;
|
|
997
|
-
default: throw new EndpointError(`Unexpected endpoint property type: ${typeof property}`);
|
|
998
|
-
}
|
|
999
|
-
};
|
|
1000
|
-
var group = {
|
|
1001
|
-
getEndpointProperty,
|
|
1002
|
-
getEndpointProperties
|
|
1003
|
-
};
|
|
1004
|
-
//#endregion
|
|
1005
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/getEndpointUrl.js
|
|
1006
|
-
var getEndpointUrl = (endpointUrl, options) => {
|
|
1007
|
-
const expression = evaluateExpression(endpointUrl, "Endpoint URL", options);
|
|
1008
|
-
if (typeof expression === "string") try {
|
|
1009
|
-
return new URL(expression);
|
|
1010
|
-
} catch (error) {
|
|
1011
|
-
console.error(`Failed to construct URL with ${expression}`, error);
|
|
1012
|
-
throw error;
|
|
1013
|
-
}
|
|
1014
|
-
throw new EndpointError(`Endpoint URL must be a string, got ${typeof expression}`);
|
|
1015
|
-
};
|
|
1016
|
-
//#endregion
|
|
1017
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/decideEndpoint.js
|
|
1018
|
-
var RESULT = 1e8;
|
|
1019
|
-
var decideEndpoint = (bdd, options) => {
|
|
1020
|
-
const { nodes, root, results, conditions } = bdd;
|
|
1021
|
-
let ref = root;
|
|
1022
|
-
const referenceRecord = {};
|
|
1023
|
-
const closure = {
|
|
1024
|
-
referenceRecord,
|
|
1025
|
-
endpointParams: options.endpointParams,
|
|
1026
|
-
logger: options.logger
|
|
1027
|
-
};
|
|
1028
|
-
while (ref !== 1 && ref !== -1 && ref < RESULT) {
|
|
1029
|
-
const node_i = 3 * (Math.abs(ref) - 1);
|
|
1030
|
-
const [condition_i, highRef, lowRef] = [
|
|
1031
|
-
nodes[node_i],
|
|
1032
|
-
nodes[node_i + 1],
|
|
1033
|
-
nodes[node_i + 2]
|
|
1034
|
-
];
|
|
1035
|
-
const [fn, argv, assign] = conditions[condition_i];
|
|
1036
|
-
const evaluation = evaluateCondition({
|
|
1037
|
-
fn,
|
|
1038
|
-
assign,
|
|
1039
|
-
argv
|
|
1040
|
-
}, closure);
|
|
1041
|
-
if (evaluation.toAssign) {
|
|
1042
|
-
const { name, value } = evaluation.toAssign;
|
|
1043
|
-
referenceRecord[name] = value;
|
|
1044
|
-
}
|
|
1045
|
-
ref = ref >= 0 === evaluation.result ? highRef : lowRef;
|
|
1046
|
-
}
|
|
1047
|
-
if (ref >= RESULT) {
|
|
1048
|
-
const result = results[ref - RESULT];
|
|
1049
|
-
if (result[0] === -1) {
|
|
1050
|
-
const [, errorExpression] = result;
|
|
1051
|
-
throw new EndpointError(evaluateExpression(errorExpression, "Error", closure));
|
|
1052
|
-
}
|
|
1053
|
-
const [url, properties, headers] = result;
|
|
1054
|
-
return {
|
|
1055
|
-
url: getEndpointUrl(url, closure),
|
|
1056
|
-
properties: getEndpointProperties(properties, closure),
|
|
1057
|
-
headers: getEndpointHeaders(headers ?? {}, closure)
|
|
1058
|
-
};
|
|
1059
|
-
}
|
|
1060
|
-
throw new EndpointError(`No matching endpoint.`);
|
|
1061
|
-
};
|
|
1062
|
-
var resolveEndpointConfig = bindResolveEndpointConfig(getEndpointFromConfig);
|
|
1063
|
-
var getEndpointPlugin = bindGetEndpointPlugin(getEndpointFromConfig);
|
|
1064
|
-
//#endregion
|
|
1065
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js
|
|
1066
|
-
var getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
|
|
1067
|
-
return {
|
|
1068
|
-
setHttpHandler(handler) {
|
|
1069
|
-
runtimeConfig.httpHandler = handler;
|
|
1070
|
-
},
|
|
1071
|
-
httpHandler() {
|
|
1072
|
-
return runtimeConfig.httpHandler;
|
|
1073
|
-
},
|
|
1074
|
-
updateHttpClientConfig(key, value) {
|
|
1075
|
-
runtimeConfig.httpHandler?.updateHttpClientConfig(key, value);
|
|
1076
|
-
},
|
|
1077
|
-
httpHandlerConfigs() {
|
|
1078
|
-
return runtimeConfig.httpHandler.httpHandlerConfigs();
|
|
1079
|
-
}
|
|
1080
|
-
};
|
|
1081
|
-
};
|
|
1082
|
-
var resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {
|
|
1083
|
-
return { httpHandler: httpHandlerExtensionConfiguration.httpHandler() };
|
|
1084
|
-
};
|
|
1085
|
-
//#endregion
|
|
1086
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js
|
|
1087
|
-
var CONTENT_LENGTH_HEADER = "content-length";
|
|
1088
|
-
function contentLengthMiddleware(bodyLengthChecker) {
|
|
1089
|
-
return (next) => async (args) => {
|
|
1090
|
-
const request = args.request;
|
|
1091
|
-
if (HttpRequest.isInstance(request)) {
|
|
1092
|
-
const { body, headers } = request;
|
|
1093
|
-
if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) try {
|
|
1094
|
-
const length = bodyLengthChecker(body);
|
|
1095
|
-
request.headers = {
|
|
1096
|
-
...request.headers,
|
|
1097
|
-
[CONTENT_LENGTH_HEADER]: String(length)
|
|
1098
|
-
};
|
|
1099
|
-
} catch (error) {}
|
|
1100
|
-
}
|
|
1101
|
-
return next({
|
|
1102
|
-
...args,
|
|
1103
|
-
request
|
|
1104
|
-
});
|
|
1105
|
-
};
|
|
1106
|
-
}
|
|
1107
|
-
var contentLengthMiddlewareOptions = {
|
|
1108
|
-
step: "build",
|
|
1109
|
-
tags: ["SET_CONTENT_LENGTH", "CONTENT_LENGTH"],
|
|
1110
|
-
name: "contentLengthMiddleware",
|
|
1111
|
-
override: true
|
|
1112
|
-
};
|
|
1113
|
-
var getContentLengthPlugin = (options) => ({ applyToStack: (clientStack) => {
|
|
1114
|
-
clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), contentLengthMiddlewareOptions);
|
|
1115
|
-
} });
|
|
1116
|
-
//#endregion
|
|
1117
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/schema/schemas/operation.js
|
|
1118
|
-
var operation = (namespace, name, traits, input, output) => ({
|
|
1119
|
-
name,
|
|
1120
|
-
namespace,
|
|
1121
|
-
traits,
|
|
1122
|
-
input,
|
|
1123
|
-
output
|
|
1124
|
-
});
|
|
1125
|
-
//#endregion
|
|
1126
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js
|
|
1127
|
-
var schemaDeserializationMiddleware = (config) => (next, context) => async (args) => {
|
|
1128
|
-
const { response } = await next(args);
|
|
1129
|
-
const { operationSchema } = getSmithyContext(context);
|
|
1130
|
-
const [, ns, n, t, i, o] = operationSchema ?? [];
|
|
1131
|
-
try {
|
|
1132
|
-
return {
|
|
1133
|
-
response,
|
|
1134
|
-
output: await config.protocol.deserializeResponse(operation(ns, n, t, i, o), {
|
|
1135
|
-
...config,
|
|
1136
|
-
...context
|
|
1137
|
-
}, response)
|
|
1138
|
-
};
|
|
1139
|
-
} catch (error) {
|
|
1140
|
-
Object.defineProperty(error, "$response", {
|
|
1141
|
-
value: response,
|
|
1142
|
-
enumerable: false,
|
|
1143
|
-
writable: false,
|
|
1144
|
-
configurable: false
|
|
1145
|
-
});
|
|
1146
|
-
if (!("$metadata" in error)) {
|
|
1147
|
-
const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
|
|
1148
|
-
try {
|
|
1149
|
-
error.message += "\n " + hint;
|
|
1150
|
-
} catch (e) {
|
|
1151
|
-
if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") console.warn(hint);
|
|
1152
|
-
else context.logger?.warn?.(hint);
|
|
1153
|
-
}
|
|
1154
|
-
if (typeof error.$responseBodyText !== "undefined") {
|
|
1155
|
-
if (error.$response) error.$response.body = error.$responseBodyText;
|
|
1156
|
-
}
|
|
1157
|
-
try {
|
|
1158
|
-
if (HttpResponse.isInstance(response)) {
|
|
1159
|
-
const { headers = {} } = response;
|
|
1160
|
-
const headerEntries = Object.entries(headers);
|
|
1161
|
-
error.$metadata = {
|
|
1162
|
-
httpStatusCode: response.statusCode,
|
|
1163
|
-
requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries),
|
|
1164
|
-
extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries),
|
|
1165
|
-
cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries)
|
|
1166
|
-
};
|
|
1167
|
-
}
|
|
1168
|
-
} catch (e) {}
|
|
1169
|
-
}
|
|
1170
|
-
throw error;
|
|
1171
|
-
}
|
|
1172
|
-
};
|
|
1173
|
-
var findHeader = (pattern, headers) => {
|
|
1174
|
-
return (headers.find(([k]) => {
|
|
1175
|
-
return k.match(pattern);
|
|
1176
|
-
}) || [void 0, void 0])[1];
|
|
1177
|
-
};
|
|
1178
|
-
//#endregion
|
|
1179
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js
|
|
1180
|
-
var schemaSerializationMiddleware = (config) => (next, context) => async (args) => {
|
|
1181
|
-
const { operationSchema } = getSmithyContext(context);
|
|
1182
|
-
const [, ns, n, t, i, o] = operationSchema ?? [];
|
|
1183
|
-
const endpoint = context.endpointV2 ? async () => toEndpointV1(context.endpointV2) : config.endpoint;
|
|
1184
|
-
const request = await config.protocol.serializeRequest(operation(ns, n, t, i, o), args.input, {
|
|
1185
|
-
...config,
|
|
1186
|
-
...context,
|
|
1187
|
-
endpoint
|
|
1188
|
-
});
|
|
1189
|
-
return next({
|
|
1190
|
-
...args,
|
|
1191
|
-
request
|
|
1192
|
-
});
|
|
1193
|
-
};
|
|
1194
|
-
//#endregion
|
|
1195
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/schema/middleware/getSchemaSerdePlugin.js
|
|
1196
|
-
var deserializerMiddlewareOption = {
|
|
1197
|
-
name: "deserializerMiddleware",
|
|
1198
|
-
step: "deserialize",
|
|
1199
|
-
tags: ["DESERIALIZER"],
|
|
1200
|
-
override: true
|
|
1201
|
-
};
|
|
1202
|
-
var serializerMiddlewareOption = {
|
|
1203
|
-
name: "serializerMiddleware",
|
|
1204
|
-
step: "serialize",
|
|
1205
|
-
tags: ["SERIALIZER"],
|
|
1206
|
-
override: true
|
|
1207
|
-
};
|
|
1208
|
-
function getSchemaSerdePlugin(config) {
|
|
1209
|
-
return { applyToStack: (commandStack) => {
|
|
1210
|
-
commandStack.add(schemaSerializationMiddleware(config), serializerMiddlewareOption);
|
|
1211
|
-
commandStack.add(schemaDeserializationMiddleware(config), deserializerMiddlewareOption);
|
|
1212
|
-
config.protocol.setSerdeContext(config);
|
|
1213
|
-
} };
|
|
1214
|
-
}
|
|
1215
|
-
//#endregion
|
|
1216
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/schemaLogFilter.js
|
|
1217
|
-
var SENSITIVE_STRING = "***SensitiveInformation***";
|
|
1218
|
-
function schemaLogFilter(schema, data) {
|
|
1219
|
-
if (data == null) return data;
|
|
1220
|
-
const ns = NormalizedSchema.of(schema);
|
|
1221
|
-
if (ns.getMergedTraits().sensitive) return SENSITIVE_STRING;
|
|
1222
|
-
if (ns.isListSchema()) {
|
|
1223
|
-
if (!!ns.getValueSchema().getMergedTraits().sensitive) return SENSITIVE_STRING;
|
|
1224
|
-
} else if (ns.isMapSchema()) {
|
|
1225
|
-
if (!!ns.getKeySchema().getMergedTraits().sensitive || !!ns.getValueSchema().getMergedTraits().sensitive) return SENSITIVE_STRING;
|
|
1226
|
-
} else if (ns.isStructSchema() && typeof data === "object") {
|
|
1227
|
-
const object = data;
|
|
1228
|
-
const newObject = {};
|
|
1229
|
-
for (const [member, memberNs] of ns.structIterator()) if (object[member] != null) newObject[member] = schemaLogFilter(memberNs, object[member]);
|
|
1230
|
-
return newObject;
|
|
1231
|
-
}
|
|
1232
|
-
return data;
|
|
1233
|
-
}
|
|
1234
|
-
//#endregion
|
|
1235
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/command.js
|
|
1236
|
-
var Command = class {
|
|
1237
|
-
middlewareStack = constructStack();
|
|
1238
|
-
schema;
|
|
1239
|
-
static classBuilder() {
|
|
1240
|
-
return new ClassBuilder();
|
|
1241
|
-
}
|
|
1242
|
-
resolveMiddlewareWithContext(clientStack, configuration, options, { middlewareFn, clientName, commandName, inputFilterSensitiveLog, outputFilterSensitiveLog, smithyContext, additionalContext, CommandCtor }) {
|
|
1243
|
-
for (const mw of middlewareFn.bind(this)(CommandCtor, clientStack, configuration, options)) this.middlewareStack.use(mw);
|
|
1244
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
1245
|
-
const { logger } = configuration;
|
|
1246
|
-
const handlerExecutionContext = {
|
|
1247
|
-
logger,
|
|
1248
|
-
clientName,
|
|
1249
|
-
commandName,
|
|
1250
|
-
inputFilterSensitiveLog,
|
|
1251
|
-
outputFilterSensitiveLog,
|
|
1252
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
1253
|
-
commandInstance: this,
|
|
1254
|
-
...smithyContext
|
|
1255
|
-
},
|
|
1256
|
-
...additionalContext
|
|
1257
|
-
};
|
|
1258
|
-
const { requestHandler } = configuration;
|
|
1259
|
-
let requestOptions = options ?? {};
|
|
1260
|
-
if (smithyContext.eventStream) requestOptions = {
|
|
1261
|
-
isEventStream: true,
|
|
1262
|
-
...requestOptions
|
|
1263
|
-
};
|
|
1264
|
-
return stack.resolve((request) => requestHandler.handle(request.request, requestOptions), handlerExecutionContext);
|
|
1265
|
-
}
|
|
1266
|
-
};
|
|
1267
|
-
var ClassBuilder = class {
|
|
1268
|
-
_init = () => {};
|
|
1269
|
-
_ep = {};
|
|
1270
|
-
_middlewareFn = () => [];
|
|
1271
|
-
_commandName = "";
|
|
1272
|
-
_clientName = "";
|
|
1273
|
-
_additionalContext = {};
|
|
1274
|
-
_smithyContext = {};
|
|
1275
|
-
_inputFilterSensitiveLog = void 0;
|
|
1276
|
-
_outputFilterSensitiveLog = void 0;
|
|
1277
|
-
_serializer = null;
|
|
1278
|
-
_deserializer = null;
|
|
1279
|
-
_operationSchema;
|
|
1280
|
-
init(cb) {
|
|
1281
|
-
this._init = cb;
|
|
1282
|
-
}
|
|
1283
|
-
ep(endpointParameterInstructions) {
|
|
1284
|
-
this._ep = endpointParameterInstructions;
|
|
1285
|
-
return this;
|
|
1286
|
-
}
|
|
1287
|
-
m(middlewareSupplier) {
|
|
1288
|
-
this._middlewareFn = middlewareSupplier;
|
|
1289
|
-
return this;
|
|
1290
|
-
}
|
|
1291
|
-
s(service, operation, smithyContext = {}) {
|
|
1292
|
-
this._smithyContext = {
|
|
1293
|
-
service,
|
|
1294
|
-
operation,
|
|
1295
|
-
...smithyContext
|
|
1296
|
-
};
|
|
1297
|
-
return this;
|
|
1298
|
-
}
|
|
1299
|
-
c(additionalContext = {}) {
|
|
1300
|
-
this._additionalContext = additionalContext;
|
|
1301
|
-
return this;
|
|
1302
|
-
}
|
|
1303
|
-
n(clientName, commandName) {
|
|
1304
|
-
this._clientName = clientName;
|
|
1305
|
-
this._commandName = commandName;
|
|
1306
|
-
return this;
|
|
1307
|
-
}
|
|
1308
|
-
f(inputFilter = (_) => _, outputFilter = (_) => _) {
|
|
1309
|
-
this._inputFilterSensitiveLog = inputFilter;
|
|
1310
|
-
this._outputFilterSensitiveLog = outputFilter;
|
|
1311
|
-
return this;
|
|
1312
|
-
}
|
|
1313
|
-
ser(serializer) {
|
|
1314
|
-
this._serializer = serializer;
|
|
1315
|
-
return this;
|
|
1316
|
-
}
|
|
1317
|
-
de(deserializer) {
|
|
1318
|
-
this._deserializer = deserializer;
|
|
1319
|
-
return this;
|
|
1320
|
-
}
|
|
1321
|
-
sc(operation) {
|
|
1322
|
-
this._operationSchema = operation;
|
|
1323
|
-
this._smithyContext.operationSchema = operation;
|
|
1324
|
-
return this;
|
|
1325
|
-
}
|
|
1326
|
-
build() {
|
|
1327
|
-
const closure = this;
|
|
1328
|
-
let CommandRef;
|
|
1329
|
-
return CommandRef = class extends Command {
|
|
1330
|
-
input;
|
|
1331
|
-
static getEndpointParameterInstructions() {
|
|
1332
|
-
return closure._ep;
|
|
1333
|
-
}
|
|
1334
|
-
constructor(...[input]) {
|
|
1335
|
-
super();
|
|
1336
|
-
this.input = input ?? {};
|
|
1337
|
-
closure._init(this);
|
|
1338
|
-
this.schema = closure._operationSchema;
|
|
1339
|
-
}
|
|
1340
|
-
resolveMiddleware(stack, configuration, options) {
|
|
1341
|
-
const op = closure._operationSchema;
|
|
1342
|
-
const input = op?.[4] ?? op?.input;
|
|
1343
|
-
const output = op?.[5] ?? op?.output;
|
|
1344
|
-
return this.resolveMiddlewareWithContext(stack, configuration, options, {
|
|
1345
|
-
CommandCtor: CommandRef,
|
|
1346
|
-
middlewareFn: closure._middlewareFn,
|
|
1347
|
-
clientName: closure._clientName,
|
|
1348
|
-
commandName: closure._commandName,
|
|
1349
|
-
inputFilterSensitiveLog: closure._inputFilterSensitiveLog ?? (op ? schemaLogFilter.bind(null, input) : (_) => _),
|
|
1350
|
-
outputFilterSensitiveLog: closure._outputFilterSensitiveLog ?? (op ? schemaLogFilter.bind(null, output) : (_) => _),
|
|
1351
|
-
smithyContext: closure._smithyContext,
|
|
1352
|
-
additionalContext: closure._additionalContext
|
|
1353
|
-
});
|
|
1354
|
-
}
|
|
1355
|
-
serialize = closure._serializer;
|
|
1356
|
-
deserialize = closure._deserializer;
|
|
1357
|
-
};
|
|
1358
|
-
}
|
|
1359
|
-
};
|
|
1360
|
-
//#endregion
|
|
1361
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js
|
|
1362
|
-
var ServiceException = class ServiceException extends Error {
|
|
1363
|
-
$fault;
|
|
1364
|
-
$response;
|
|
1365
|
-
$retryable;
|
|
1366
|
-
$metadata;
|
|
1367
|
-
constructor(options) {
|
|
1368
|
-
super(options.message);
|
|
1369
|
-
Object.setPrototypeOf(this, Object.getPrototypeOf(this).constructor.prototype);
|
|
1370
|
-
this.name = options.name;
|
|
1371
|
-
this.$fault = options.$fault;
|
|
1372
|
-
this.$metadata = options.$metadata;
|
|
1373
|
-
}
|
|
1374
|
-
static isInstance(value) {
|
|
1375
|
-
if (!value) return false;
|
|
1376
|
-
const candidate = value;
|
|
1377
|
-
return ServiceException.prototype.isPrototypeOf(candidate) || Boolean(candidate.$fault) && Boolean(candidate.$metadata) && (candidate.$fault === "client" || candidate.$fault === "server");
|
|
1378
|
-
}
|
|
1379
|
-
static [Symbol.hasInstance](instance) {
|
|
1380
|
-
if (!instance) return false;
|
|
1381
|
-
const candidate = instance;
|
|
1382
|
-
if (this === ServiceException) return ServiceException.isInstance(instance);
|
|
1383
|
-
if (ServiceException.isInstance(instance)) {
|
|
1384
|
-
if (candidate.name && this.name) return this.prototype.isPrototypeOf(instance) || candidate.name === this.name;
|
|
1385
|
-
return this.prototype.isPrototypeOf(instance);
|
|
1386
|
-
}
|
|
1387
|
-
return false;
|
|
1388
|
-
}
|
|
1389
|
-
};
|
|
1390
|
-
var decorateServiceException = (exception, additions = {}) => {
|
|
1391
|
-
Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => {
|
|
1392
|
-
if (exception[k] == void 0 || exception[k] === "") exception[k] = v;
|
|
1393
|
-
});
|
|
1394
|
-
exception.message = exception.message || exception.Message || "UnknownError";
|
|
1395
|
-
delete exception.Message;
|
|
1396
|
-
return exception;
|
|
1397
|
-
};
|
|
1398
|
-
//#endregion
|
|
1399
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/defaults-mode.js
|
|
1400
|
-
var loadConfigsForDefaultMode = (mode) => {
|
|
1401
|
-
switch (mode) {
|
|
1402
|
-
case "standard": return {
|
|
1403
|
-
retryMode: "standard",
|
|
1404
|
-
connectionTimeout: 3100
|
|
1405
|
-
};
|
|
1406
|
-
case "in-region": return {
|
|
1407
|
-
retryMode: "standard",
|
|
1408
|
-
connectionTimeout: 1100
|
|
1409
|
-
};
|
|
1410
|
-
case "cross-region": return {
|
|
1411
|
-
retryMode: "standard",
|
|
1412
|
-
connectionTimeout: 3100
|
|
1413
|
-
};
|
|
1414
|
-
case "mobile": return {
|
|
1415
|
-
retryMode: "standard",
|
|
1416
|
-
connectionTimeout: 3e4
|
|
1417
|
-
};
|
|
1418
|
-
default: return {};
|
|
1419
|
-
}
|
|
1420
|
-
};
|
|
1421
|
-
//#endregion
|
|
1422
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/emitWarningIfUnsupportedVersion.js
|
|
1423
|
-
var warningEmitted = false;
|
|
1424
|
-
var emitWarningIfUnsupportedVersion$1 = (version) => {
|
|
1425
|
-
if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 16) warningEmitted = true;
|
|
1426
|
-
};
|
|
1427
|
-
//#endregion
|
|
1428
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js
|
|
1429
|
-
var knownAlgorithms = Object.values(AlgorithmId);
|
|
1430
|
-
var getChecksumConfiguration = (runtimeConfig) => {
|
|
1431
|
-
const checksumAlgorithms = [];
|
|
1432
|
-
for (const id in AlgorithmId) {
|
|
1433
|
-
const algorithmId = AlgorithmId[id];
|
|
1434
|
-
if (runtimeConfig[algorithmId] === void 0) continue;
|
|
1435
|
-
checksumAlgorithms.push({
|
|
1436
|
-
algorithmId: () => algorithmId,
|
|
1437
|
-
checksumConstructor: () => runtimeConfig[algorithmId]
|
|
1438
|
-
});
|
|
1439
|
-
}
|
|
1440
|
-
for (const [id, ChecksumCtor] of Object.entries(runtimeConfig.checksumAlgorithms ?? {})) checksumAlgorithms.push({
|
|
1441
|
-
algorithmId: () => id,
|
|
1442
|
-
checksumConstructor: () => ChecksumCtor
|
|
1443
|
-
});
|
|
1444
|
-
return {
|
|
1445
|
-
addChecksumAlgorithm(algo) {
|
|
1446
|
-
runtimeConfig.checksumAlgorithms = runtimeConfig.checksumAlgorithms ?? {};
|
|
1447
|
-
const id = algo.algorithmId();
|
|
1448
|
-
const ctor = algo.checksumConstructor();
|
|
1449
|
-
if (knownAlgorithms.includes(id)) runtimeConfig.checksumAlgorithms[id.toUpperCase()] = ctor;
|
|
1450
|
-
else runtimeConfig.checksumAlgorithms[id] = ctor;
|
|
1451
|
-
checksumAlgorithms.push(algo);
|
|
1452
|
-
},
|
|
1453
|
-
checksumAlgorithms() {
|
|
1454
|
-
return checksumAlgorithms;
|
|
1455
|
-
}
|
|
1456
|
-
};
|
|
1457
|
-
};
|
|
1458
|
-
var resolveChecksumRuntimeConfig = (clientConfig) => {
|
|
1459
|
-
const runtimeConfig = {};
|
|
1460
|
-
clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
|
|
1461
|
-
const id = checksumAlgorithm.algorithmId();
|
|
1462
|
-
if (knownAlgorithms.includes(id)) runtimeConfig[id] = checksumAlgorithm.checksumConstructor();
|
|
1463
|
-
});
|
|
1464
|
-
return runtimeConfig;
|
|
1465
|
-
};
|
|
1466
|
-
//#endregion
|
|
1467
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/retry.js
|
|
1468
|
-
var getRetryConfiguration = (runtimeConfig) => {
|
|
1469
|
-
return {
|
|
1470
|
-
setRetryStrategy(retryStrategy) {
|
|
1471
|
-
runtimeConfig.retryStrategy = retryStrategy;
|
|
1472
|
-
},
|
|
1473
|
-
retryStrategy() {
|
|
1474
|
-
return runtimeConfig.retryStrategy;
|
|
1475
|
-
}
|
|
1476
|
-
};
|
|
1477
|
-
};
|
|
1478
|
-
var resolveRetryRuntimeConfig = (retryStrategyConfiguration) => {
|
|
1479
|
-
const runtimeConfig = {};
|
|
1480
|
-
runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy();
|
|
1481
|
-
return runtimeConfig;
|
|
1482
|
-
};
|
|
1483
|
-
//#endregion
|
|
1484
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.js
|
|
1485
|
-
var getDefaultExtensionConfiguration = (runtimeConfig) => {
|
|
1486
|
-
return Object.assign(getChecksumConfiguration(runtimeConfig), getRetryConfiguration(runtimeConfig));
|
|
1487
|
-
};
|
|
1488
|
-
var resolveDefaultRuntimeConfig = (config) => {
|
|
1489
|
-
return Object.assign(resolveChecksumRuntimeConfig(config), resolveRetryRuntimeConfig(config));
|
|
1490
|
-
};
|
|
1491
|
-
//#endregion
|
|
1492
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/resolveAuthOptions.js
|
|
1493
|
-
var resolveAuthOptions = (candidateAuthOptions, authSchemePreference) => {
|
|
1494
|
-
if (!authSchemePreference || authSchemePreference.length === 0) return candidateAuthOptions;
|
|
1495
|
-
const preferredAuthOptions = [];
|
|
1496
|
-
for (const preferredSchemeName of authSchemePreference) for (const candidateAuthOption of candidateAuthOptions) if (candidateAuthOption.schemeId.split("#")[1] === preferredSchemeName) preferredAuthOptions.push(candidateAuthOption);
|
|
1497
|
-
for (const candidateAuthOption of candidateAuthOptions) if (!preferredAuthOptions.find(({ schemeId }) => schemeId === candidateAuthOption.schemeId)) preferredAuthOptions.push(candidateAuthOption);
|
|
1498
|
-
return preferredAuthOptions;
|
|
1499
|
-
};
|
|
1500
|
-
//#endregion
|
|
1501
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js
|
|
1502
|
-
function convertHttpAuthSchemesToMap(httpAuthSchemes) {
|
|
1503
|
-
const map = /* @__PURE__ */ new Map();
|
|
1504
|
-
for (const scheme of httpAuthSchemes) map.set(scheme.schemeId, scheme);
|
|
1505
|
-
return map;
|
|
1506
|
-
}
|
|
1507
|
-
var httpAuthSchemeMiddleware = (config, mwOptions) => (next, context) => async (args) => {
|
|
1508
|
-
const resolvedOptions = resolveAuthOptions(config.httpAuthSchemeProvider(await mwOptions.httpAuthSchemeParametersProvider(config, context, args.input)), config.authSchemePreference ? await config.authSchemePreference() : []);
|
|
1509
|
-
const authSchemes = convertHttpAuthSchemesToMap(config.httpAuthSchemes);
|
|
1510
|
-
const smithyContext = getSmithyContext(context);
|
|
1511
|
-
const failureReasons = [];
|
|
1512
|
-
for (const option of resolvedOptions) {
|
|
1513
|
-
const scheme = authSchemes.get(option.schemeId);
|
|
1514
|
-
if (!scheme) {
|
|
1515
|
-
failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` was not enabled for this service.`);
|
|
1516
|
-
continue;
|
|
1517
|
-
}
|
|
1518
|
-
const identityProvider = scheme.identityProvider(await mwOptions.identityProviderConfigProvider(config));
|
|
1519
|
-
if (!identityProvider) {
|
|
1520
|
-
failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` did not have an IdentityProvider configured.`);
|
|
1521
|
-
continue;
|
|
1522
|
-
}
|
|
1523
|
-
const { identityProperties = {}, signingProperties = {} } = option.propertiesExtractor?.(config, context) || {};
|
|
1524
|
-
option.identityProperties = Object.assign(option.identityProperties || {}, identityProperties);
|
|
1525
|
-
option.signingProperties = Object.assign(option.signingProperties || {}, signingProperties);
|
|
1526
|
-
smithyContext.selectedHttpAuthScheme = {
|
|
1527
|
-
httpAuthOption: option,
|
|
1528
|
-
identity: await identityProvider(option.identityProperties),
|
|
1529
|
-
signer: scheme.signer
|
|
1530
|
-
};
|
|
1531
|
-
break;
|
|
1532
|
-
}
|
|
1533
|
-
if (!smithyContext.selectedHttpAuthScheme) throw new Error(failureReasons.join("\n"));
|
|
1534
|
-
return next(args);
|
|
1535
|
-
};
|
|
1536
|
-
//#endregion
|
|
1537
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js
|
|
1538
|
-
var httpAuthSchemeEndpointRuleSetMiddlewareOptions = {
|
|
1539
|
-
step: "serialize",
|
|
1540
|
-
tags: ["HTTP_AUTH_SCHEME"],
|
|
1541
|
-
name: "httpAuthSchemeMiddleware",
|
|
1542
|
-
override: true,
|
|
1543
|
-
relation: "before",
|
|
1544
|
-
toMiddleware: "endpointV2Middleware"
|
|
1545
|
-
};
|
|
1546
|
-
var getHttpAuthSchemeEndpointRuleSetPlugin = (config, { httpAuthSchemeParametersProvider, identityProviderConfigProvider }) => ({ applyToStack: (clientStack) => {
|
|
1547
|
-
clientStack.addRelativeTo(httpAuthSchemeMiddleware(config, {
|
|
1548
|
-
httpAuthSchemeParametersProvider,
|
|
1549
|
-
identityProviderConfigProvider
|
|
1550
|
-
}), httpAuthSchemeEndpointRuleSetMiddlewareOptions);
|
|
1551
|
-
} });
|
|
1552
|
-
//#endregion
|
|
1553
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/middleware-http-signing/httpSigningMiddleware.js
|
|
1554
|
-
var defaultErrorHandler = (signingProperties) => (error) => {
|
|
1555
|
-
throw error;
|
|
1556
|
-
};
|
|
1557
|
-
var defaultSuccessHandler = (httpResponse, signingProperties) => {};
|
|
1558
|
-
var httpSigningMiddleware = (config) => (next, context) => async (args) => {
|
|
1559
|
-
if (!HttpRequest.isInstance(args.request)) return next(args);
|
|
1560
|
-
const scheme = getSmithyContext(context).selectedHttpAuthScheme;
|
|
1561
|
-
if (!scheme) throw new Error(`No HttpAuthScheme was selected: unable to sign request`);
|
|
1562
|
-
const { httpAuthOption: { signingProperties = {} }, identity, signer } = scheme;
|
|
1563
|
-
const output = await next({
|
|
1564
|
-
...args,
|
|
1565
|
-
request: await signer.sign(args.request, identity, signingProperties)
|
|
1566
|
-
}).catch((signer.errorHandler || defaultErrorHandler)(signingProperties));
|
|
1567
|
-
(signer.successHandler || defaultSuccessHandler)(output.response, signingProperties);
|
|
1568
|
-
return output;
|
|
1569
|
-
};
|
|
1570
|
-
//#endregion
|
|
1571
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/middleware-http-signing/getHttpSigningMiddleware.js
|
|
1572
|
-
var httpSigningMiddlewareOptions = {
|
|
1573
|
-
step: "finalizeRequest",
|
|
1574
|
-
tags: ["HTTP_SIGNING"],
|
|
1575
|
-
name: "httpSigningMiddleware",
|
|
1576
|
-
aliases: [
|
|
1577
|
-
"apiKeyMiddleware",
|
|
1578
|
-
"tokenMiddleware",
|
|
1579
|
-
"awsAuthMiddleware"
|
|
1580
|
-
],
|
|
1581
|
-
override: true,
|
|
1582
|
-
relation: "after",
|
|
1583
|
-
toMiddleware: "retryMiddleware"
|
|
1584
|
-
};
|
|
1585
|
-
var getHttpSigningPlugin = (config) => ({ applyToStack: (clientStack) => {
|
|
1586
|
-
clientStack.addRelativeTo(httpSigningMiddleware(), httpSigningMiddlewareOptions);
|
|
1587
|
-
} });
|
|
1588
|
-
//#endregion
|
|
1589
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js
|
|
1590
|
-
var DefaultIdentityProviderConfig = class {
|
|
1591
|
-
authSchemes = /* @__PURE__ */ new Map();
|
|
1592
|
-
constructor(config) {
|
|
1593
|
-
for (const key in config) {
|
|
1594
|
-
const value = config[key];
|
|
1595
|
-
if (value !== void 0) this.authSchemes.set(key, value);
|
|
1596
|
-
}
|
|
1597
|
-
}
|
|
1598
|
-
getIdentityProvider(schemeId) {
|
|
1599
|
-
return this.authSchemes.get(schemeId);
|
|
1600
|
-
}
|
|
1601
|
-
};
|
|
1602
|
-
//#endregion
|
|
1603
|
-
//#region ../../node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/noAuth.js
|
|
1604
|
-
var NoAuthSigner = class {
|
|
1605
|
-
async sign(httpRequest, identity, signingProperties) {
|
|
1606
|
-
return httpRequest;
|
|
1607
|
-
}
|
|
1608
|
-
};
|
|
1609
|
-
//#endregion
|
|
1610
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js
|
|
1611
|
-
var state = { warningEmitted: false };
|
|
1612
|
-
var emitWarningIfUnsupportedVersion = (version) => {
|
|
1613
|
-
if (version && !state.warningEmitted) {
|
|
1614
|
-
if (process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED === "true") {
|
|
1615
|
-
state.warningEmitted = true;
|
|
1616
|
-
return;
|
|
1617
|
-
}
|
|
1618
|
-
const userMajorVersion = parseInt(version.substring(1, version.indexOf(".")));
|
|
1619
|
-
const vv = 22;
|
|
1620
|
-
if (userMajorVersion < vv) {
|
|
1621
|
-
state.warningEmitted = true;
|
|
1622
|
-
process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
|
|
1623
|
-
versions published after the first week of January 2027
|
|
1624
|
-
will require node >=${vv}. You are running node ${version}.
|
|
1625
|
-
|
|
1626
|
-
To continue receiving updates to AWS services, bug fixes,
|
|
1627
|
-
and security updates please upgrade to node >=${vv}.
|
|
1628
|
-
|
|
1629
|
-
More information can be found at: https://a.co/c895JFp`);
|
|
1630
|
-
}
|
|
1631
|
-
}
|
|
1632
|
-
};
|
|
1633
|
-
//#endregion
|
|
1634
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js
|
|
1635
|
-
function resolveHostHeaderConfig(input) {
|
|
1636
|
-
return input;
|
|
1637
|
-
}
|
|
1638
|
-
var hostHeaderMiddleware = (options) => (next) => async (args) => {
|
|
1639
|
-
if (!HttpRequest.isInstance(args.request)) return next(args);
|
|
1640
|
-
const { request } = args;
|
|
1641
|
-
const { handlerProtocol = "" } = options.requestHandler.metadata || {};
|
|
1642
|
-
if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) {
|
|
1643
|
-
delete request.headers["host"];
|
|
1644
|
-
request.headers[":authority"] = request.hostname + (request.port ? ":" + request.port : "");
|
|
1645
|
-
} else if (!request.headers["host"]) {
|
|
1646
|
-
let host = request.hostname;
|
|
1647
|
-
if (request.port != null) host += `:${request.port}`;
|
|
1648
|
-
request.headers["host"] = host;
|
|
1649
|
-
}
|
|
1650
|
-
return next(args);
|
|
1651
|
-
};
|
|
1652
|
-
var hostHeaderMiddlewareOptions = {
|
|
1653
|
-
name: "hostHeaderMiddleware",
|
|
1654
|
-
step: "build",
|
|
1655
|
-
priority: "low",
|
|
1656
|
-
tags: ["HOST"],
|
|
1657
|
-
override: true
|
|
1658
|
-
};
|
|
1659
|
-
var getHostHeaderPlugin = (options) => ({ applyToStack: (clientStack) => {
|
|
1660
|
-
clientStack.add(hostHeaderMiddleware(options), hostHeaderMiddlewareOptions);
|
|
1661
|
-
} });
|
|
1662
|
-
//#endregion
|
|
1663
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-logger/loggerMiddleware.js
|
|
1664
|
-
var loggerMiddleware = () => (next, context) => async (args) => {
|
|
1665
|
-
try {
|
|
1666
|
-
const response = await next(args);
|
|
1667
|
-
const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context;
|
|
1668
|
-
const { overrideInputFilterSensitiveLog, overrideOutputFilterSensitiveLog } = dynamoDbDocumentClientOptions;
|
|
1669
|
-
const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog;
|
|
1670
|
-
const outputFilterSensitiveLog = overrideOutputFilterSensitiveLog ?? context.outputFilterSensitiveLog;
|
|
1671
|
-
const { $metadata, ...outputWithoutMetadata } = response.output;
|
|
1672
|
-
logger?.info?.({
|
|
1673
|
-
clientName,
|
|
1674
|
-
commandName,
|
|
1675
|
-
input: inputFilterSensitiveLog(args.input),
|
|
1676
|
-
output: outputFilterSensitiveLog(outputWithoutMetadata),
|
|
1677
|
-
metadata: $metadata
|
|
1678
|
-
});
|
|
1679
|
-
return response;
|
|
1680
|
-
} catch (error) {
|
|
1681
|
-
const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context;
|
|
1682
|
-
const { overrideInputFilterSensitiveLog } = dynamoDbDocumentClientOptions;
|
|
1683
|
-
const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog;
|
|
1684
|
-
logger?.error?.({
|
|
1685
|
-
clientName,
|
|
1686
|
-
commandName,
|
|
1687
|
-
input: inputFilterSensitiveLog(args.input),
|
|
1688
|
-
error,
|
|
1689
|
-
metadata: error.$metadata
|
|
1690
|
-
});
|
|
1691
|
-
throw error;
|
|
1692
|
-
}
|
|
1693
|
-
};
|
|
1694
|
-
var loggerMiddlewareOptions = {
|
|
1695
|
-
name: "loggerMiddleware",
|
|
1696
|
-
tags: ["LOGGER"],
|
|
1697
|
-
step: "initialize",
|
|
1698
|
-
override: true
|
|
1699
|
-
};
|
|
1700
|
-
var getLoggerPlugin = (options) => ({ applyToStack: (clientStack) => {
|
|
1701
|
-
clientStack.add(loggerMiddleware(), loggerMiddlewareOptions);
|
|
1702
|
-
} });
|
|
1703
|
-
//#endregion
|
|
1704
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-recursion-detection/configuration.js
|
|
1705
|
-
var recursionDetectionMiddlewareOptions = {
|
|
1706
|
-
step: "build",
|
|
1707
|
-
tags: ["RECURSION_DETECTION"],
|
|
1708
|
-
name: "recursionDetectionMiddleware",
|
|
1709
|
-
override: true,
|
|
1710
|
-
priority: "low"
|
|
1711
|
-
};
|
|
1712
|
-
//#endregion
|
|
1713
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.js
|
|
1714
|
-
var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
|
|
1715
|
-
var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
|
|
1716
|
-
var ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
|
|
1717
|
-
var recursionDetectionMiddleware = () => (next) => async (args) => {
|
|
1718
|
-
const { request } = args;
|
|
1719
|
-
if (!HttpRequest.isInstance(request)) return next(args);
|
|
1720
|
-
const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === TRACE_ID_HEADER_NAME.toLowerCase()) ?? TRACE_ID_HEADER_NAME;
|
|
1721
|
-
if (request.headers.hasOwnProperty(traceIdHeader)) return next(args);
|
|
1722
|
-
const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME];
|
|
1723
|
-
const traceIdFromEnv = process.env[ENV_TRACE_ID];
|
|
1724
|
-
const traceId = (await InvokeStore.getInstanceAsync())?.getXRayTraceId() ?? traceIdFromEnv;
|
|
1725
|
-
const nonEmptyString = (str) => typeof str === "string" && str.length > 0;
|
|
1726
|
-
if (nonEmptyString(functionName) && nonEmptyString(traceId)) request.headers[TRACE_ID_HEADER_NAME] = traceId;
|
|
1727
|
-
return next({
|
|
1728
|
-
...args,
|
|
1729
|
-
request
|
|
1730
|
-
});
|
|
1731
|
-
};
|
|
1732
|
-
//#endregion
|
|
1733
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.js
|
|
1734
|
-
var getRecursionDetectionPlugin = (options) => ({ applyToStack: (clientStack) => {
|
|
1735
|
-
clientStack.add(recursionDetectionMiddleware(), recursionDetectionMiddlewareOptions);
|
|
1736
|
-
} });
|
|
1737
|
-
function isValidUserAgentAppId(appId) {
|
|
1738
|
-
if (appId === void 0) return true;
|
|
1739
|
-
return typeof appId === "string" && appId.length <= 50;
|
|
1740
|
-
}
|
|
1741
|
-
function resolveUserAgentConfig(input) {
|
|
1742
|
-
const normalizedAppIdProvider = normalizeProvider(input.userAgentAppId ?? void 0);
|
|
1743
|
-
const { customUserAgent } = input;
|
|
1744
|
-
return Object.assign(input, {
|
|
1745
|
-
customUserAgent: typeof customUserAgent === "string" ? [[customUserAgent]] : customUserAgent,
|
|
1746
|
-
userAgentAppId: async () => {
|
|
1747
|
-
const appId = await normalizedAppIdProvider();
|
|
1748
|
-
if (!isValidUserAgentAppId(appId)) {
|
|
1749
|
-
const logger = input.logger?.constructor?.name === "NoOpLogger" || !input.logger ? console : input.logger;
|
|
1750
|
-
if (typeof appId !== "string") logger?.warn("userAgentAppId must be a string or undefined.");
|
|
1751
|
-
else if (appId.length > 50) logger?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.");
|
|
1752
|
-
}
|
|
1753
|
-
return appId;
|
|
1754
|
-
}
|
|
1755
|
-
});
|
|
1756
|
-
}
|
|
1757
|
-
//#endregion
|
|
1758
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/partition.js
|
|
1759
|
-
var selectedPartitionsInfo = {
|
|
1760
|
-
"partitions": [
|
|
1761
|
-
{
|
|
1762
|
-
"id": "aws",
|
|
1763
|
-
"outputs": {
|
|
1764
|
-
"dnsSuffix": "amazonaws.com",
|
|
1765
|
-
"dualStackDnsSuffix": "api.aws",
|
|
1766
|
-
"implicitGlobalRegion": "us-east-1",
|
|
1767
|
-
"name": "aws",
|
|
1768
|
-
"supportsDualStack": true,
|
|
1769
|
-
"supportsFIPS": true
|
|
1770
|
-
},
|
|
1771
|
-
"regionRegex": "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
|
|
1772
|
-
"regions": {
|
|
1773
|
-
"af-south-1": { "description": "Africa (Cape Town)" },
|
|
1774
|
-
"ap-east-1": { "description": "Asia Pacific (Hong Kong)" },
|
|
1775
|
-
"ap-east-2": { "description": "Asia Pacific (Taipei)" },
|
|
1776
|
-
"ap-northeast-1": { "description": "Asia Pacific (Tokyo)" },
|
|
1777
|
-
"ap-northeast-2": { "description": "Asia Pacific (Seoul)" },
|
|
1778
|
-
"ap-northeast-3": { "description": "Asia Pacific (Osaka)" },
|
|
1779
|
-
"ap-south-1": { "description": "Asia Pacific (Mumbai)" },
|
|
1780
|
-
"ap-south-2": { "description": "Asia Pacific (Hyderabad)" },
|
|
1781
|
-
"ap-southeast-1": { "description": "Asia Pacific (Singapore)" },
|
|
1782
|
-
"ap-southeast-2": { "description": "Asia Pacific (Sydney)" },
|
|
1783
|
-
"ap-southeast-3": { "description": "Asia Pacific (Jakarta)" },
|
|
1784
|
-
"ap-southeast-4": { "description": "Asia Pacific (Melbourne)" },
|
|
1785
|
-
"ap-southeast-5": { "description": "Asia Pacific (Malaysia)" },
|
|
1786
|
-
"ap-southeast-6": { "description": "Asia Pacific (New Zealand)" },
|
|
1787
|
-
"ap-southeast-7": { "description": "Asia Pacific (Thailand)" },
|
|
1788
|
-
"aws-global": { "description": "aws global region" },
|
|
1789
|
-
"ca-central-1": { "description": "Canada (Central)" },
|
|
1790
|
-
"ca-west-1": { "description": "Canada West (Calgary)" },
|
|
1791
|
-
"eu-central-1": { "description": "Europe (Frankfurt)" },
|
|
1792
|
-
"eu-central-2": { "description": "Europe (Zurich)" },
|
|
1793
|
-
"eu-north-1": { "description": "Europe (Stockholm)" },
|
|
1794
|
-
"eu-south-1": { "description": "Europe (Milan)" },
|
|
1795
|
-
"eu-south-2": { "description": "Europe (Spain)" },
|
|
1796
|
-
"eu-west-1": { "description": "Europe (Ireland)" },
|
|
1797
|
-
"eu-west-2": { "description": "Europe (London)" },
|
|
1798
|
-
"eu-west-3": { "description": "Europe (Paris)" },
|
|
1799
|
-
"il-central-1": { "description": "Israel (Tel Aviv)" },
|
|
1800
|
-
"me-central-1": { "description": "Middle East (UAE)" },
|
|
1801
|
-
"me-south-1": { "description": "Middle East (Bahrain)" },
|
|
1802
|
-
"mx-central-1": { "description": "Mexico (Central)" },
|
|
1803
|
-
"sa-east-1": { "description": "South America (Sao Paulo)" },
|
|
1804
|
-
"us-east-1": { "description": "US East (N. Virginia)" },
|
|
1805
|
-
"us-east-2": { "description": "US East (Ohio)" },
|
|
1806
|
-
"us-west-1": { "description": "US West (N. California)" },
|
|
1807
|
-
"us-west-2": { "description": "US West (Oregon)" }
|
|
1808
|
-
}
|
|
1809
|
-
},
|
|
1810
|
-
{
|
|
1811
|
-
"id": "aws-cn",
|
|
1812
|
-
"outputs": {
|
|
1813
|
-
"dnsSuffix": "amazonaws.com.cn",
|
|
1814
|
-
"dualStackDnsSuffix": "api.amazonwebservices.com.cn",
|
|
1815
|
-
"implicitGlobalRegion": "cn-northwest-1",
|
|
1816
|
-
"name": "aws-cn",
|
|
1817
|
-
"supportsDualStack": true,
|
|
1818
|
-
"supportsFIPS": true
|
|
1819
|
-
},
|
|
1820
|
-
"regionRegex": "^cn\\-\\w+\\-\\d+$",
|
|
1821
|
-
"regions": {
|
|
1822
|
-
"aws-cn-global": { "description": "aws-cn global region" },
|
|
1823
|
-
"cn-north-1": { "description": "China (Beijing)" },
|
|
1824
|
-
"cn-northwest-1": { "description": "China (Ningxia)" }
|
|
1825
|
-
}
|
|
1826
|
-
},
|
|
1827
|
-
{
|
|
1828
|
-
"id": "aws-eusc",
|
|
1829
|
-
"outputs": {
|
|
1830
|
-
"dnsSuffix": "amazonaws.eu",
|
|
1831
|
-
"dualStackDnsSuffix": "api.amazonwebservices.eu",
|
|
1832
|
-
"implicitGlobalRegion": "eusc-de-east-1",
|
|
1833
|
-
"name": "aws-eusc",
|
|
1834
|
-
"supportsDualStack": true,
|
|
1835
|
-
"supportsFIPS": true
|
|
1836
|
-
},
|
|
1837
|
-
"regionRegex": "^eusc\\-(de)\\-\\w+\\-\\d+$",
|
|
1838
|
-
"regions": { "eusc-de-east-1": { "description": "AWS European Sovereign Cloud (Germany)" } }
|
|
1839
|
-
},
|
|
1840
|
-
{
|
|
1841
|
-
"id": "aws-iso",
|
|
1842
|
-
"outputs": {
|
|
1843
|
-
"dnsSuffix": "c2s.ic.gov",
|
|
1844
|
-
"dualStackDnsSuffix": "api.aws.ic.gov",
|
|
1845
|
-
"implicitGlobalRegion": "us-iso-east-1",
|
|
1846
|
-
"name": "aws-iso",
|
|
1847
|
-
"supportsDualStack": true,
|
|
1848
|
-
"supportsFIPS": true
|
|
1849
|
-
},
|
|
1850
|
-
"regionRegex": "^us\\-iso\\-\\w+\\-\\d+$",
|
|
1851
|
-
"regions": {
|
|
1852
|
-
"aws-iso-global": { "description": "aws-iso global region" },
|
|
1853
|
-
"us-iso-east-1": { "description": "US ISO East" },
|
|
1854
|
-
"us-iso-west-1": { "description": "US ISO WEST" }
|
|
1855
|
-
}
|
|
1856
|
-
},
|
|
1857
|
-
{
|
|
1858
|
-
"id": "aws-iso-b",
|
|
1859
|
-
"outputs": {
|
|
1860
|
-
"dnsSuffix": "sc2s.sgov.gov",
|
|
1861
|
-
"dualStackDnsSuffix": "api.aws.scloud",
|
|
1862
|
-
"implicitGlobalRegion": "us-isob-east-1",
|
|
1863
|
-
"name": "aws-iso-b",
|
|
1864
|
-
"supportsDualStack": true,
|
|
1865
|
-
"supportsFIPS": true
|
|
1866
|
-
},
|
|
1867
|
-
"regionRegex": "^us\\-isob\\-\\w+\\-\\d+$",
|
|
1868
|
-
"regions": {
|
|
1869
|
-
"aws-iso-b-global": { "description": "aws-iso-b global region" },
|
|
1870
|
-
"us-isob-east-1": { "description": "US ISOB East (Ohio)" },
|
|
1871
|
-
"us-isob-west-1": { "description": "US ISOB West" }
|
|
1872
|
-
}
|
|
1873
|
-
},
|
|
1874
|
-
{
|
|
1875
|
-
"id": "aws-iso-e",
|
|
1876
|
-
"outputs": {
|
|
1877
|
-
"dnsSuffix": "cloud.adc-e.uk",
|
|
1878
|
-
"dualStackDnsSuffix": "api.cloud-aws.adc-e.uk",
|
|
1879
|
-
"implicitGlobalRegion": "eu-isoe-west-1",
|
|
1880
|
-
"name": "aws-iso-e",
|
|
1881
|
-
"supportsDualStack": true,
|
|
1882
|
-
"supportsFIPS": true
|
|
1883
|
-
},
|
|
1884
|
-
"regionRegex": "^eu\\-isoe\\-\\w+\\-\\d+$",
|
|
1885
|
-
"regions": {
|
|
1886
|
-
"aws-iso-e-global": { "description": "aws-iso-e global region" },
|
|
1887
|
-
"eu-isoe-west-1": { "description": "EU ISOE West" }
|
|
1888
|
-
}
|
|
1889
|
-
},
|
|
1890
|
-
{
|
|
1891
|
-
"id": "aws-iso-f",
|
|
1892
|
-
"outputs": {
|
|
1893
|
-
"dnsSuffix": "csp.hci.ic.gov",
|
|
1894
|
-
"dualStackDnsSuffix": "api.aws.hci.ic.gov",
|
|
1895
|
-
"implicitGlobalRegion": "us-isof-south-1",
|
|
1896
|
-
"name": "aws-iso-f",
|
|
1897
|
-
"supportsDualStack": true,
|
|
1898
|
-
"supportsFIPS": true
|
|
1899
|
-
},
|
|
1900
|
-
"regionRegex": "^us\\-isof\\-\\w+\\-\\d+$",
|
|
1901
|
-
"regions": {
|
|
1902
|
-
"aws-iso-f-global": { "description": "aws-iso-f global region" },
|
|
1903
|
-
"us-isof-east-1": { "description": "US ISOF EAST" },
|
|
1904
|
-
"us-isof-south-1": { "description": "US ISOF SOUTH" }
|
|
1905
|
-
}
|
|
1906
|
-
},
|
|
1907
|
-
{
|
|
1908
|
-
"id": "aws-us-gov",
|
|
1909
|
-
"outputs": {
|
|
1910
|
-
"dnsSuffix": "amazonaws.com",
|
|
1911
|
-
"dualStackDnsSuffix": "api.aws",
|
|
1912
|
-
"implicitGlobalRegion": "us-gov-west-1",
|
|
1913
|
-
"name": "aws-us-gov",
|
|
1914
|
-
"supportsDualStack": true,
|
|
1915
|
-
"supportsFIPS": true
|
|
1916
|
-
},
|
|
1917
|
-
"regionRegex": "^us\\-gov\\-\\w+\\-\\d+$",
|
|
1918
|
-
"regions": {
|
|
1919
|
-
"aws-us-gov-global": { "description": "aws-us-gov global region" },
|
|
1920
|
-
"us-gov-east-1": { "description": "AWS GovCloud (US-East)" },
|
|
1921
|
-
"us-gov-west-1": { "description": "AWS GovCloud (US-West)" }
|
|
1922
|
-
}
|
|
1923
|
-
}
|
|
1924
|
-
]};
|
|
1925
|
-
var partition = (value) => {
|
|
1926
|
-
const { partitions } = selectedPartitionsInfo;
|
|
1927
|
-
for (const partition of partitions) {
|
|
1928
|
-
const { regions, outputs } = partition;
|
|
1929
|
-
for (const [region, regionData] of Object.entries(regions)) if (region === value) return {
|
|
1930
|
-
...outputs,
|
|
1931
|
-
...regionData
|
|
1932
|
-
};
|
|
1933
|
-
}
|
|
1934
|
-
for (const partition of partitions) {
|
|
1935
|
-
const { regionRegex, outputs } = partition;
|
|
1936
|
-
if (new RegExp(regionRegex).test(value)) return { ...outputs };
|
|
1937
|
-
}
|
|
1938
|
-
const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws");
|
|
1939
|
-
if (!DEFAULT_PARTITION) throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");
|
|
1940
|
-
return { ...DEFAULT_PARTITION.outputs };
|
|
1941
|
-
};
|
|
1942
|
-
//#endregion
|
|
1943
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/check-features.js
|
|
1944
|
-
var ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/;
|
|
1945
|
-
async function checkFeatures(context, config, args) {
|
|
1946
|
-
if (args.request?.headers?.["smithy-protocol"] === "rpc-v2-cbor") setFeature$1(context, "PROTOCOL_RPC_V2_CBOR", "M");
|
|
1947
|
-
if (typeof config.retryStrategy === "function") {
|
|
1948
|
-
const retryStrategy = await config.retryStrategy();
|
|
1949
|
-
if (typeof retryStrategy.mode === "string") switch (retryStrategy.mode) {
|
|
1950
|
-
case RETRY_MODES.ADAPTIVE:
|
|
1951
|
-
setFeature$1(context, "RETRY_MODE_ADAPTIVE", "F");
|
|
1952
|
-
break;
|
|
1953
|
-
case RETRY_MODES.STANDARD:
|
|
1954
|
-
setFeature$1(context, "RETRY_MODE_STANDARD", "E");
|
|
1955
|
-
break;
|
|
1956
|
-
}
|
|
1957
|
-
}
|
|
1958
|
-
if (typeof config.accountIdEndpointMode === "function") {
|
|
1959
|
-
const endpointV2 = context.endpointV2;
|
|
1960
|
-
if (String(endpointV2?.url?.hostname).match(ACCOUNT_ID_ENDPOINT_REGEX)) setFeature$1(context, "ACCOUNT_ID_ENDPOINT", "O");
|
|
1961
|
-
switch (await config.accountIdEndpointMode?.()) {
|
|
1962
|
-
case "disabled":
|
|
1963
|
-
setFeature$1(context, "ACCOUNT_ID_MODE_DISABLED", "Q");
|
|
1964
|
-
break;
|
|
1965
|
-
case "preferred":
|
|
1966
|
-
setFeature$1(context, "ACCOUNT_ID_MODE_PREFERRED", "P");
|
|
1967
|
-
break;
|
|
1968
|
-
case "required":
|
|
1969
|
-
setFeature$1(context, "ACCOUNT_ID_MODE_REQUIRED", "R");
|
|
1970
|
-
break;
|
|
1971
|
-
}
|
|
1972
|
-
}
|
|
1973
|
-
const identity = context.__smithy_context?.selectedHttpAuthScheme?.identity;
|
|
1974
|
-
if (identity?.$source) {
|
|
1975
|
-
const credentials = identity;
|
|
1976
|
-
if (credentials.accountId) setFeature$1(context, "RESOLVED_ACCOUNT_ID", "T");
|
|
1977
|
-
for (const [key, value] of Object.entries(credentials.$source ?? {})) setFeature$1(context, key, value);
|
|
1978
|
-
}
|
|
1979
|
-
}
|
|
1980
|
-
//#endregion
|
|
1981
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/constants.js
|
|
1982
|
-
var USER_AGENT = "user-agent";
|
|
1983
|
-
var X_AMZ_USER_AGENT = "x-amz-user-agent";
|
|
1984
|
-
var UA_NAME_ESCAPE_REGEX = /[^!$%&'*+\-.^_`|~\w]/g;
|
|
1985
|
-
var UA_VALUE_ESCAPE_REGEX = /[^!$%&'*+\-.^_`|~\w#]/g;
|
|
1986
|
-
//#endregion
|
|
1987
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/encode-features.js
|
|
1988
|
-
var BYTE_LIMIT = 1024;
|
|
1989
|
-
function encodeFeatures(features) {
|
|
1990
|
-
let buffer = "";
|
|
1991
|
-
for (const key in features) {
|
|
1992
|
-
const val = features[key];
|
|
1993
|
-
if (buffer.length + val.length + 1 <= BYTE_LIMIT) {
|
|
1994
|
-
if (buffer.length) buffer += "," + val;
|
|
1995
|
-
else buffer += val;
|
|
1996
|
-
continue;
|
|
1997
|
-
}
|
|
1998
|
-
break;
|
|
1999
|
-
}
|
|
2000
|
-
return buffer;
|
|
2001
|
-
}
|
|
2002
|
-
//#endregion
|
|
2003
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/user-agent-middleware.js
|
|
2004
|
-
var userAgentMiddleware = (options) => (next, context) => async (args) => {
|
|
2005
|
-
const { request } = args;
|
|
2006
|
-
if (!HttpRequest.isInstance(request)) return next(args);
|
|
2007
|
-
const { headers } = request;
|
|
2008
|
-
const userAgent = context?.userAgent?.map(escapeUserAgent) || [];
|
|
2009
|
-
const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent);
|
|
2010
|
-
await checkFeatures(context, options, args);
|
|
2011
|
-
const awsContext = context;
|
|
2012
|
-
defaultUserAgent.push(`m/${encodeFeatures(Object.assign({}, context.__smithy_context?.features, awsContext.__aws_sdk_context?.features))}`);
|
|
2013
|
-
const customUserAgent = options?.customUserAgent?.map(escapeUserAgent) || [];
|
|
2014
|
-
const appId = await options.userAgentAppId();
|
|
2015
|
-
if (appId) defaultUserAgent.push(escapeUserAgent([`app`, `${appId}`]));
|
|
2016
|
-
const sdkUserAgentValue = ([]).concat([
|
|
2017
|
-
...defaultUserAgent,
|
|
2018
|
-
...userAgent,
|
|
2019
|
-
...customUserAgent
|
|
2020
|
-
]).join(" ");
|
|
2021
|
-
const normalUAValue = [...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")), ...customUserAgent].join(" ");
|
|
2022
|
-
if (options.runtime !== "browser") {
|
|
2023
|
-
if (normalUAValue) headers[X_AMZ_USER_AGENT] = headers["x-amz-user-agent"] ? `${headers[USER_AGENT]} ${normalUAValue}` : normalUAValue;
|
|
2024
|
-
headers[USER_AGENT] = sdkUserAgentValue;
|
|
2025
|
-
} else headers[X_AMZ_USER_AGENT] = sdkUserAgentValue;
|
|
2026
|
-
return next({
|
|
2027
|
-
...args,
|
|
2028
|
-
request
|
|
2029
|
-
});
|
|
2030
|
-
};
|
|
2031
|
-
var escapeUserAgent = (userAgentPair) => {
|
|
2032
|
-
const name = userAgentPair[0].split("/").map((part) => part.replace(UA_NAME_ESCAPE_REGEX, "-")).join("/");
|
|
2033
|
-
const version = userAgentPair[1]?.replace(UA_VALUE_ESCAPE_REGEX, "-");
|
|
2034
|
-
const prefixSeparatorIndex = name.indexOf("/");
|
|
2035
|
-
const prefix = name.substring(0, prefixSeparatorIndex);
|
|
2036
|
-
let uaName = name.substring(prefixSeparatorIndex + 1);
|
|
2037
|
-
if (prefix === "api") uaName = uaName.toLowerCase();
|
|
2038
|
-
return [
|
|
2039
|
-
prefix,
|
|
2040
|
-
uaName,
|
|
2041
|
-
version
|
|
2042
|
-
].filter((item) => item && item.length > 0).reduce((acc, item, index) => {
|
|
2043
|
-
switch (index) {
|
|
2044
|
-
case 0: return item;
|
|
2045
|
-
case 1: return `${acc}/${item}`;
|
|
2046
|
-
default: return `${acc}#${item}`;
|
|
2047
|
-
}
|
|
2048
|
-
}, "");
|
|
2049
|
-
};
|
|
2050
|
-
var getUserAgentMiddlewareOptions = {
|
|
2051
|
-
name: "getUserAgentMiddleware",
|
|
2052
|
-
step: "build",
|
|
2053
|
-
priority: "low",
|
|
2054
|
-
tags: ["SET_USER_AGENT", "USER_AGENT"],
|
|
2055
|
-
override: true
|
|
2056
|
-
};
|
|
2057
|
-
var getUserAgentPlugin = (config) => ({ applyToStack: (clientStack) => {
|
|
2058
|
-
clientStack.add(userAgentMiddleware(config), getUserAgentMiddlewareOptions);
|
|
2059
|
-
} });
|
|
2060
|
-
//#endregion
|
|
2061
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.js
|
|
2062
|
-
var getRuntimeUserAgentPair = () => {
|
|
2063
|
-
for (const runtime of [
|
|
2064
|
-
"deno",
|
|
2065
|
-
"bun",
|
|
2066
|
-
"llrt"
|
|
2067
|
-
]) if (versions[runtime]) return [`md/${runtime}`, versions[runtime]];
|
|
2068
|
-
return ["md/nodejs", versions.node];
|
|
2069
|
-
};
|
|
2070
|
-
//#endregion
|
|
2071
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/getNodeModulesParentDirs.js
|
|
2072
|
-
var getNodeModulesParentDirs = (dirname) => {
|
|
2073
|
-
const cwd = process.cwd();
|
|
2074
|
-
if (!dirname) return [cwd];
|
|
2075
|
-
const normalizedPath = normalize(dirname);
|
|
2076
|
-
const parts = normalizedPath.split(sep);
|
|
2077
|
-
const nodeModulesIndex = parts.indexOf("node_modules");
|
|
2078
|
-
const parentDir = nodeModulesIndex !== -1 ? parts.slice(0, nodeModulesIndex).join(sep) : normalizedPath;
|
|
2079
|
-
if (cwd === parentDir) return [cwd];
|
|
2080
|
-
return [parentDir, cwd];
|
|
2081
|
-
};
|
|
2082
|
-
//#endregion
|
|
2083
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/getSanitizedTypeScriptVersion.js
|
|
2084
|
-
var SEMVER_REGEX = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/;
|
|
2085
|
-
var getSanitizedTypeScriptVersion = (version = "") => {
|
|
2086
|
-
const match = version.match(SEMVER_REGEX);
|
|
2087
|
-
if (!match) return;
|
|
2088
|
-
const [major, minor, patch, prerelease] = [
|
|
2089
|
-
match[1],
|
|
2090
|
-
match[2],
|
|
2091
|
-
match[3],
|
|
2092
|
-
match[4]
|
|
2093
|
-
];
|
|
2094
|
-
return prerelease ? `${major}.${minor}.${patch}-${prerelease}` : `${major}.${minor}.${patch}`;
|
|
2095
|
-
};
|
|
2096
|
-
//#endregion
|
|
2097
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/getSanitizedDevTypeScriptVersion.js
|
|
2098
|
-
var ALLOWED_PREFIXES = [
|
|
2099
|
-
"^",
|
|
2100
|
-
"~",
|
|
2101
|
-
">=",
|
|
2102
|
-
"<=",
|
|
2103
|
-
">",
|
|
2104
|
-
"<"
|
|
2105
|
-
];
|
|
2106
|
-
var ALLOWED_DIST_TAGS = [
|
|
2107
|
-
"latest",
|
|
2108
|
-
"beta",
|
|
2109
|
-
"dev",
|
|
2110
|
-
"rc",
|
|
2111
|
-
"insiders",
|
|
2112
|
-
"next"
|
|
2113
|
-
];
|
|
2114
|
-
var getSanitizedDevTypeScriptVersion = (version = "") => {
|
|
2115
|
-
if (ALLOWED_DIST_TAGS.includes(version)) return version;
|
|
2116
|
-
const prefix = ALLOWED_PREFIXES.find((p) => version.startsWith(p)) ?? "";
|
|
2117
|
-
const sanitizedTypeScriptVersion = getSanitizedTypeScriptVersion(version.slice(prefix.length));
|
|
2118
|
-
if (!sanitizedTypeScriptVersion) return;
|
|
2119
|
-
return `${prefix}${sanitizedTypeScriptVersion}`;
|
|
2120
|
-
};
|
|
2121
|
-
//#endregion
|
|
2122
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/getTypeScriptUserAgentPair.js
|
|
2123
|
-
var tscVersion;
|
|
2124
|
-
var TS_PACKAGE_JSON = join("node_modules", "typescript", "package.json");
|
|
2125
|
-
var getTypeScriptUserAgentPair = async () => {
|
|
2126
|
-
if (tscVersion === null) return;
|
|
2127
|
-
else if (typeof tscVersion === "string") return ["md/tsc", tscVersion];
|
|
2128
|
-
let isTypeScriptDetectionDisabled = false;
|
|
2129
|
-
try {
|
|
2130
|
-
isTypeScriptDetectionDisabled = booleanSelector(process.env, "AWS_SDK_JS_TYPESCRIPT_DETECTION_DISABLED", SelectorType.ENV) || false;
|
|
2131
|
-
} catch {}
|
|
2132
|
-
if (isTypeScriptDetectionDisabled) {
|
|
2133
|
-
tscVersion = null;
|
|
2134
|
-
return;
|
|
2135
|
-
}
|
|
2136
|
-
const nodeModulesParentDirs = getNodeModulesParentDirs(typeof __dirname !== "undefined" ? __dirname : void 0);
|
|
2137
|
-
let versionFromApp;
|
|
2138
|
-
for (const nodeModulesParentDir of nodeModulesParentDirs) try {
|
|
2139
|
-
const packageJson = await readFile(join(nodeModulesParentDir, "package.json"), "utf-8");
|
|
2140
|
-
const { dependencies, devDependencies } = JSON.parse(packageJson);
|
|
2141
|
-
const version = devDependencies?.typescript ?? dependencies?.typescript;
|
|
2142
|
-
if (typeof version !== "string") continue;
|
|
2143
|
-
versionFromApp = version;
|
|
2144
|
-
break;
|
|
2145
|
-
} catch {}
|
|
2146
|
-
if (!versionFromApp) {
|
|
2147
|
-
tscVersion = null;
|
|
2148
|
-
return;
|
|
2149
|
-
}
|
|
2150
|
-
let versionFromNodeModules;
|
|
2151
|
-
for (const nodeModulesParentDir of nodeModulesParentDirs) try {
|
|
2152
|
-
const packageJson = await readFile(join(nodeModulesParentDir, TS_PACKAGE_JSON), "utf-8");
|
|
2153
|
-
const { version } = JSON.parse(packageJson);
|
|
2154
|
-
const sanitizedVersion = getSanitizedTypeScriptVersion(version);
|
|
2155
|
-
if (typeof sanitizedVersion !== "string") continue;
|
|
2156
|
-
versionFromNodeModules = sanitizedVersion;
|
|
2157
|
-
break;
|
|
2158
|
-
} catch {}
|
|
2159
|
-
if (versionFromNodeModules) {
|
|
2160
|
-
tscVersion = versionFromNodeModules;
|
|
2161
|
-
return ["md/tsc", tscVersion];
|
|
2162
|
-
}
|
|
2163
|
-
const sanitizedVersion = getSanitizedDevTypeScriptVersion(versionFromApp);
|
|
2164
|
-
if (typeof sanitizedVersion !== "string") {
|
|
2165
|
-
tscVersion = null;
|
|
2166
|
-
return;
|
|
2167
|
-
}
|
|
2168
|
-
tscVersion = `dev_${sanitizedVersion}`;
|
|
2169
|
-
return ["md/tsc", tscVersion];
|
|
2170
|
-
};
|
|
2171
|
-
//#endregion
|
|
2172
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/is-crt-available.js
|
|
2173
|
-
var isCrtAvailable = () => {
|
|
2174
|
-
return null;
|
|
2175
|
-
};
|
|
2176
|
-
//#endregion
|
|
2177
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/defaultUserAgent.js
|
|
2178
|
-
var createDefaultUserAgentProvider = ({ serviceId, clientVersion }) => {
|
|
2179
|
-
const runtimeUserAgentPair = getRuntimeUserAgentPair();
|
|
2180
|
-
return async (config) => {
|
|
2181
|
-
const sections = [
|
|
2182
|
-
["aws-sdk-js", clientVersion],
|
|
2183
|
-
["ua", "2.1"],
|
|
2184
|
-
[`os/${platform()}`, release()],
|
|
2185
|
-
["lang/js"],
|
|
2186
|
-
runtimeUserAgentPair
|
|
2187
|
-
];
|
|
2188
|
-
const typescriptUserAgentPair = await getTypeScriptUserAgentPair();
|
|
2189
|
-
if (typescriptUserAgentPair) sections.push(typescriptUserAgentPair);
|
|
2190
|
-
const crtAvailable = isCrtAvailable();
|
|
2191
|
-
if (crtAvailable) sections.push(crtAvailable);
|
|
2192
|
-
if (serviceId) sections.push([`api/${serviceId}`, clientVersion]);
|
|
2193
|
-
if (env.AWS_EXECUTION_ENV) sections.push([`exec-env/${env.AWS_EXECUTION_ENV}`]);
|
|
2194
|
-
const appId = await config?.userAgentAppId?.();
|
|
2195
|
-
return appId ? [...sections, [`app/${appId}`]] : [...sections];
|
|
2196
|
-
};
|
|
2197
|
-
};
|
|
2198
|
-
//#endregion
|
|
2199
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.js
|
|
2200
|
-
var UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
|
2201
|
-
var UA_APP_ID_INI_NAME_DEPRECATED = "sdk-ua-app-id";
|
|
2202
|
-
var NODE_APP_ID_CONFIG_OPTIONS = {
|
|
2203
|
-
environmentVariableSelector: (env) => env[UA_APP_ID_ENV_NAME],
|
|
2204
|
-
configFileSelector: (profile) => profile["sdk_ua_app_id"] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED],
|
|
2205
|
-
default: void 0
|
|
2206
|
-
};
|
|
2207
|
-
//#endregion
|
|
2208
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.js
|
|
2209
|
-
var isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
|
2210
|
-
if (allowSubDomains) {
|
|
2211
|
-
for (const label of value.split(".")) if (!isVirtualHostableS3Bucket(label)) return false;
|
|
2212
|
-
return true;
|
|
2213
|
-
}
|
|
2214
|
-
if (!isValidHostLabel(value)) return false;
|
|
2215
|
-
if (value.length < 3 || value.length > 63) return false;
|
|
2216
|
-
if (value !== value.toLowerCase()) return false;
|
|
2217
|
-
if (isIpAddress(value)) return false;
|
|
2218
|
-
return true;
|
|
2219
|
-
};
|
|
2220
|
-
//#endregion
|
|
2221
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js
|
|
2222
|
-
var ARN_DELIMITER = ":";
|
|
2223
|
-
var RESOURCE_DELIMITER = "/";
|
|
2224
|
-
var parseArn = (value) => {
|
|
2225
|
-
const segments = value.split(ARN_DELIMITER);
|
|
2226
|
-
if (segments.length < 6) return null;
|
|
2227
|
-
const [arn, partition, service, region, accountId, ...resourcePath] = segments;
|
|
2228
|
-
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "") return null;
|
|
2229
|
-
return {
|
|
2230
|
-
partition,
|
|
2231
|
-
service,
|
|
2232
|
-
region,
|
|
2233
|
-
accountId,
|
|
2234
|
-
resourceId: resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat()
|
|
2235
|
-
};
|
|
2236
|
-
};
|
|
2237
|
-
//#endregion
|
|
2238
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/aws.js
|
|
2239
|
-
var awsEndpointFunctions = {
|
|
2240
|
-
isVirtualHostableS3Bucket,
|
|
2241
|
-
parseArn,
|
|
2242
|
-
partition
|
|
2243
|
-
};
|
|
2244
|
-
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
2245
|
-
//#endregion
|
|
2246
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/client/region-config-resolver/extensions.js
|
|
2247
|
-
var getAwsRegionExtensionConfiguration = (runtimeConfig) => {
|
|
2248
|
-
return {
|
|
2249
|
-
setRegion(region) {
|
|
2250
|
-
runtimeConfig.region = region;
|
|
2251
|
-
},
|
|
2252
|
-
region() {
|
|
2253
|
-
return runtimeConfig.region;
|
|
2254
|
-
}
|
|
2255
|
-
};
|
|
2256
|
-
};
|
|
2257
|
-
var resolveAwsRegionExtensionConfiguration = (awsRegionExtensionConfiguration) => {
|
|
2258
|
-
return { region: awsRegionExtensionConfiguration.region() };
|
|
2259
|
-
};
|
|
2260
|
-
//#endregion
|
|
2261
|
-
//#region ../../node_modules/.pnpm/@smithy+node-http-handler@4.7.3/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js
|
|
2262
|
-
var Collector = class extends Writable {
|
|
2263
|
-
bufferedBytes = [];
|
|
2264
|
-
_write(chunk, encoding, callback) {
|
|
2265
|
-
this.bufferedBytes.push(chunk);
|
|
2266
|
-
callback();
|
|
2267
|
-
}
|
|
2268
|
-
};
|
|
2269
|
-
//#endregion
|
|
2270
|
-
//#region ../../node_modules/.pnpm/@smithy+node-http-handler@4.7.3/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js
|
|
2271
|
-
var streamCollector = (stream) => {
|
|
2272
|
-
if (isReadableStreamInstance(stream)) return collectReadableStream(stream);
|
|
2273
|
-
return new Promise((resolve, reject) => {
|
|
2274
|
-
const collector = new Collector();
|
|
2275
|
-
stream.pipe(collector);
|
|
2276
|
-
stream.on("error", (err) => {
|
|
2277
|
-
collector.end();
|
|
2278
|
-
reject(err);
|
|
2279
|
-
});
|
|
2280
|
-
collector.on("error", reject);
|
|
2281
|
-
collector.on("finish", function() {
|
|
2282
|
-
resolve(new Uint8Array(Buffer.concat(this.bufferedBytes)));
|
|
2283
|
-
});
|
|
2284
|
-
});
|
|
2285
|
-
};
|
|
2286
|
-
var isReadableStreamInstance = (stream) => typeof ReadableStream === "function" && stream instanceof ReadableStream;
|
|
2287
|
-
async function collectReadableStream(stream) {
|
|
2288
|
-
const chunks = [];
|
|
2289
|
-
const reader = stream.getReader();
|
|
2290
|
-
let isDone = false;
|
|
2291
|
-
let length = 0;
|
|
2292
|
-
while (!isDone) {
|
|
2293
|
-
const { done, value } = await reader.read();
|
|
2294
|
-
if (value) {
|
|
2295
|
-
chunks.push(value);
|
|
2296
|
-
length += value.length;
|
|
2297
|
-
}
|
|
2298
|
-
isDone = done;
|
|
2299
|
-
}
|
|
2300
|
-
const collected = new Uint8Array(length);
|
|
2301
|
-
let offset = 0;
|
|
2302
|
-
for (const chunk of chunks) {
|
|
2303
|
-
collected.set(chunk, offset);
|
|
2304
|
-
offset += chunk.length;
|
|
2305
|
-
}
|
|
2306
|
-
return collected;
|
|
2307
|
-
}
|
|
2308
|
-
//#endregion
|
|
2309
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js
|
|
2310
|
-
var getDateHeader = (response) => HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : void 0;
|
|
2311
|
-
//#endregion
|
|
2312
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js
|
|
2313
|
-
var getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset);
|
|
2314
|
-
//#endregion
|
|
2315
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js
|
|
2316
|
-
var isClockSkewed = (clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 3e5;
|
|
2317
|
-
//#endregion
|
|
2318
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js
|
|
2319
|
-
var getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => {
|
|
2320
|
-
const clockTimeInMs = Date.parse(clockTime);
|
|
2321
|
-
if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) return clockTimeInMs - Date.now();
|
|
2322
|
-
return currentSystemClockOffset;
|
|
2323
|
-
};
|
|
2324
|
-
//#endregion
|
|
2325
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js
|
|
2326
|
-
var throwSigningPropertyError = (name, property) => {
|
|
2327
|
-
if (!property) throw new Error(`Property \`${name}\` is not resolved for AWS SDK SigV4Auth`);
|
|
2328
|
-
return property;
|
|
2329
|
-
};
|
|
2330
|
-
var validateSigningProperties = async (signingProperties) => {
|
|
2331
|
-
const context = throwSigningPropertyError("context", signingProperties.context);
|
|
2332
|
-
const config = throwSigningPropertyError("config", signingProperties.config);
|
|
2333
|
-
const authScheme = context.endpointV2?.properties?.authSchemes?.[0];
|
|
2334
|
-
return {
|
|
2335
|
-
config,
|
|
2336
|
-
signer: await throwSigningPropertyError("signer", config.signer)(authScheme),
|
|
2337
|
-
signingRegion: signingProperties?.signingRegion,
|
|
2338
|
-
signingRegionSet: signingProperties?.signingRegionSet,
|
|
2339
|
-
signingName: signingProperties?.signingName
|
|
2340
|
-
};
|
|
2341
|
-
};
|
|
2342
|
-
var AwsSdkSigV4Signer = class {
|
|
2343
|
-
async sign(httpRequest, identity, signingProperties) {
|
|
2344
|
-
if (!HttpRequest.isInstance(httpRequest)) throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
|
|
2345
|
-
const validatedProps = await validateSigningProperties(signingProperties);
|
|
2346
|
-
const { config, signer } = validatedProps;
|
|
2347
|
-
let { signingRegion, signingName } = validatedProps;
|
|
2348
|
-
const handlerExecutionContext = signingProperties.context;
|
|
2349
|
-
if (handlerExecutionContext?.authSchemes?.length ?? false) {
|
|
2350
|
-
const [first, second] = handlerExecutionContext.authSchemes;
|
|
2351
|
-
if (first?.name === "sigv4a" && second?.name === "sigv4") {
|
|
2352
|
-
signingRegion = second?.signingRegion ?? signingRegion;
|
|
2353
|
-
signingName = second?.signingName ?? signingName;
|
|
2354
|
-
}
|
|
2355
|
-
}
|
|
2356
|
-
return await signer.sign(httpRequest, {
|
|
2357
|
-
signingDate: getSkewCorrectedDate(config.systemClockOffset),
|
|
2358
|
-
signingRegion,
|
|
2359
|
-
signingService: signingName
|
|
2360
|
-
});
|
|
2361
|
-
}
|
|
2362
|
-
errorHandler(signingProperties) {
|
|
2363
|
-
return (error) => {
|
|
2364
|
-
const serverTime = error.ServerTime ?? getDateHeader(error.$response);
|
|
2365
|
-
if (serverTime) {
|
|
2366
|
-
const config = throwSigningPropertyError("config", signingProperties.config);
|
|
2367
|
-
const initialSystemClockOffset = config.systemClockOffset;
|
|
2368
|
-
config.systemClockOffset = getUpdatedSystemClockOffset(serverTime, config.systemClockOffset);
|
|
2369
|
-
if (config.systemClockOffset !== initialSystemClockOffset && error.$metadata) error.$metadata.clockSkewCorrected = true;
|
|
2370
|
-
}
|
|
2371
|
-
throw error;
|
|
2372
|
-
};
|
|
2373
|
-
}
|
|
2374
|
-
successHandler(httpResponse, signingProperties) {
|
|
2375
|
-
const dateHeader = getDateHeader(httpResponse);
|
|
2376
|
-
if (dateHeader) {
|
|
2377
|
-
const config = throwSigningPropertyError("config", signingProperties.config);
|
|
2378
|
-
config.systemClockOffset = getUpdatedSystemClockOffset(dateHeader, config.systemClockOffset);
|
|
2379
|
-
}
|
|
2380
|
-
}
|
|
2381
|
-
};
|
|
2382
|
-
//#endregion
|
|
2383
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.js
|
|
2384
|
-
var getArrayForCommaSeparatedString = (str) => typeof str === "string" && str.length > 0 ? str.split(",").map((item) => item.trim()) : [];
|
|
2385
|
-
//#endregion
|
|
2386
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js
|
|
2387
|
-
var NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY = "AWS_AUTH_SCHEME_PREFERENCE";
|
|
2388
|
-
var NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY = "auth_scheme_preference";
|
|
2389
|
-
var NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
|
|
2390
|
-
environmentVariableSelector: (env, options) => {
|
|
2391
|
-
if (options?.signingName) {
|
|
2392
|
-
if (getBearerTokenEnvKey(options.signingName) in env) return ["httpBearerAuth"];
|
|
2393
|
-
}
|
|
2394
|
-
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env)) return void 0;
|
|
2395
|
-
return getArrayForCommaSeparatedString(env[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY]);
|
|
2396
|
-
},
|
|
2397
|
-
configFileSelector: (profile) => {
|
|
2398
|
-
if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile)) return void 0;
|
|
2399
|
-
return getArrayForCommaSeparatedString(profile[NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY]);
|
|
2400
|
-
},
|
|
2401
|
-
default: []
|
|
2402
|
-
};
|
|
2403
|
-
//#endregion
|
|
2404
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js
|
|
2405
|
-
var resolveAwsSdkSigV4Config = (config) => {
|
|
2406
|
-
let inputCredentials = config.credentials;
|
|
2407
|
-
let isUserSupplied = !!config.credentials;
|
|
2408
|
-
let resolvedCredentials = void 0;
|
|
2409
|
-
Object.defineProperty(config, "credentials", {
|
|
2410
|
-
set(credentials) {
|
|
2411
|
-
if (credentials && credentials !== inputCredentials && credentials !== resolvedCredentials) isUserSupplied = true;
|
|
2412
|
-
inputCredentials = credentials;
|
|
2413
|
-
const boundProvider = bindCallerConfig(config, normalizeCredentialProvider(config, {
|
|
2414
|
-
credentials: inputCredentials,
|
|
2415
|
-
credentialDefaultProvider: config.credentialDefaultProvider
|
|
2416
|
-
}));
|
|
2417
|
-
if (isUserSupplied && !boundProvider.attributed) {
|
|
2418
|
-
const isCredentialObject = typeof inputCredentials === "object" && inputCredentials !== null;
|
|
2419
|
-
resolvedCredentials = async (options) => {
|
|
2420
|
-
const attributedCreds = await boundProvider(options);
|
|
2421
|
-
if (isCredentialObject && (!attributedCreds.$source || Object.keys(attributedCreds.$source).length === 0)) return setCredentialFeature(attributedCreds, "CREDENTIALS_CODE", "e");
|
|
2422
|
-
return attributedCreds;
|
|
2423
|
-
};
|
|
2424
|
-
resolvedCredentials.memoized = boundProvider.memoized;
|
|
2425
|
-
resolvedCredentials.configBound = boundProvider.configBound;
|
|
2426
|
-
resolvedCredentials.attributed = true;
|
|
2427
|
-
} else resolvedCredentials = boundProvider;
|
|
2428
|
-
},
|
|
2429
|
-
get() {
|
|
2430
|
-
return resolvedCredentials;
|
|
2431
|
-
},
|
|
2432
|
-
enumerable: true,
|
|
2433
|
-
configurable: true
|
|
2434
|
-
});
|
|
2435
|
-
config.credentials = inputCredentials;
|
|
2436
|
-
const { signingEscapePath = true, systemClockOffset = config.systemClockOffset || 0, sha256 } = config;
|
|
2437
|
-
let signer;
|
|
2438
|
-
if (config.signer) signer = normalizeProvider(config.signer);
|
|
2439
|
-
else if (config.regionInfoProvider) signer = () => normalizeProvider(config.region)().then(async (region) => [await config.regionInfoProvider(region, {
|
|
2440
|
-
useFipsEndpoint: await config.useFipsEndpoint(),
|
|
2441
|
-
useDualstackEndpoint: await config.useDualstackEndpoint()
|
|
2442
|
-
}) || {}, region]).then(([regionInfo, region]) => {
|
|
2443
|
-
const { signingRegion, signingService } = regionInfo;
|
|
2444
|
-
config.signingRegion = config.signingRegion || signingRegion || region;
|
|
2445
|
-
config.signingName = config.signingName || signingService || config.serviceId;
|
|
2446
|
-
const params = {
|
|
2447
|
-
...config,
|
|
2448
|
-
credentials: config.credentials,
|
|
2449
|
-
region: config.signingRegion,
|
|
2450
|
-
service: config.signingName,
|
|
2451
|
-
sha256,
|
|
2452
|
-
uriEscapePath: signingEscapePath
|
|
2453
|
-
};
|
|
2454
|
-
return new (config.signerConstructor || SignatureV4)(params);
|
|
2455
|
-
});
|
|
2456
|
-
else signer = async (authScheme) => {
|
|
2457
|
-
authScheme = Object.assign({}, {
|
|
2458
|
-
name: "sigv4",
|
|
2459
|
-
signingName: config.signingName || config.defaultSigningName,
|
|
2460
|
-
signingRegion: await normalizeProvider(config.region)(),
|
|
2461
|
-
properties: {}
|
|
2462
|
-
}, authScheme);
|
|
2463
|
-
const signingRegion = authScheme.signingRegion;
|
|
2464
|
-
const signingService = authScheme.signingName;
|
|
2465
|
-
config.signingRegion = config.signingRegion || signingRegion;
|
|
2466
|
-
config.signingName = config.signingName || signingService || config.serviceId;
|
|
2467
|
-
const params = {
|
|
2468
|
-
...config,
|
|
2469
|
-
credentials: config.credentials,
|
|
2470
|
-
region: config.signingRegion,
|
|
2471
|
-
service: config.signingName,
|
|
2472
|
-
sha256,
|
|
2473
|
-
uriEscapePath: signingEscapePath
|
|
2474
|
-
};
|
|
2475
|
-
return new (config.signerConstructor || SignatureV4)(params);
|
|
2476
|
-
};
|
|
2477
|
-
return Object.assign(config, {
|
|
2478
|
-
systemClockOffset,
|
|
2479
|
-
signingEscapePath,
|
|
2480
|
-
signer
|
|
2481
|
-
});
|
|
2482
|
-
};
|
|
2483
|
-
function normalizeCredentialProvider(config, { credentials, credentialDefaultProvider }) {
|
|
2484
|
-
let credentialsProvider;
|
|
2485
|
-
if (credentials) if (!credentials?.memoized) credentialsProvider = memoizeIdentityProvider(credentials, isIdentityExpired, doesIdentityRequireRefresh);
|
|
2486
|
-
else credentialsProvider = credentials;
|
|
2487
|
-
else if (credentialDefaultProvider) credentialsProvider = normalizeProvider(credentialDefaultProvider(Object.assign({}, config, { parentClientConfig: config })));
|
|
2488
|
-
else credentialsProvider = async () => {
|
|
2489
|
-
throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.");
|
|
2490
|
-
};
|
|
2491
|
-
credentialsProvider.memoized = true;
|
|
2492
|
-
return credentialsProvider;
|
|
2493
|
-
}
|
|
2494
|
-
function bindCallerConfig(config, credentialsProvider) {
|
|
2495
|
-
if (credentialsProvider.configBound) return credentialsProvider;
|
|
2496
|
-
const fn = async (options) => credentialsProvider({
|
|
2497
|
-
...options,
|
|
2498
|
-
callerClientConfig: config
|
|
2499
|
-
});
|
|
2500
|
-
fn.memoized = credentialsProvider.memoized;
|
|
2501
|
-
fn.configBound = true;
|
|
2502
|
-
return fn;
|
|
2503
|
-
}
|
|
2504
|
-
var package_default = {
|
|
2505
|
-
version: "3.997.9"};
|
|
2506
|
-
//#endregion
|
|
2507
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js
|
|
2508
|
-
var ProtocolLib = class {
|
|
2509
|
-
queryCompat;
|
|
2510
|
-
errorRegistry;
|
|
2511
|
-
constructor(queryCompat = false) {
|
|
2512
|
-
this.queryCompat = queryCompat;
|
|
2513
|
-
}
|
|
2514
|
-
resolveRestContentType(defaultContentType, inputSchema) {
|
|
2515
|
-
const members = inputSchema.getMemberSchemas();
|
|
2516
|
-
const httpPayloadMember = Object.values(members).find((m) => {
|
|
2517
|
-
return !!m.getMergedTraits().httpPayload;
|
|
2518
|
-
});
|
|
2519
|
-
if (httpPayloadMember) {
|
|
2520
|
-
const mediaType = httpPayloadMember.getMergedTraits().mediaType;
|
|
2521
|
-
if (mediaType) return mediaType;
|
|
2522
|
-
else if (httpPayloadMember.isStringSchema()) return "text/plain";
|
|
2523
|
-
else if (httpPayloadMember.isBlobSchema()) return "application/octet-stream";
|
|
2524
|
-
else return defaultContentType;
|
|
2525
|
-
} else if (!inputSchema.isUnitSchema()) {
|
|
2526
|
-
if (Object.values(members).find((m) => {
|
|
2527
|
-
const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits();
|
|
2528
|
-
return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && httpPrefixHeaders === void 0;
|
|
2529
|
-
})) return defaultContentType;
|
|
2530
|
-
}
|
|
2531
|
-
}
|
|
2532
|
-
async getErrorSchemaOrThrowBaseException(errorIdentifier, defaultNamespace, response, dataObject, metadata, getErrorSchema) {
|
|
2533
|
-
let errorName = errorIdentifier;
|
|
2534
|
-
if (errorIdentifier.includes("#")) [, errorName] = errorIdentifier.split("#");
|
|
2535
|
-
const errorMetadata = {
|
|
2536
|
-
$metadata: metadata,
|
|
2537
|
-
$fault: response.statusCode < 500 ? "client" : "server"
|
|
2538
|
-
};
|
|
2539
|
-
if (!this.errorRegistry) throw new Error("@aws-sdk/core/protocols - error handler not initialized.");
|
|
2540
|
-
try {
|
|
2541
|
-
return {
|
|
2542
|
-
errorSchema: getErrorSchema?.(this.errorRegistry, errorName) ?? this.errorRegistry.getSchema(errorIdentifier),
|
|
2543
|
-
errorMetadata
|
|
2544
|
-
};
|
|
2545
|
-
} catch (e) {
|
|
2546
|
-
dataObject.message = dataObject.message ?? dataObject.Message ?? "UnknownError";
|
|
2547
|
-
const synthetic = this.errorRegistry;
|
|
2548
|
-
const baseExceptionSchema = synthetic.getBaseException();
|
|
2549
|
-
if (baseExceptionSchema) {
|
|
2550
|
-
const ErrorCtor = synthetic.getErrorCtor(baseExceptionSchema) ?? Error;
|
|
2551
|
-
throw this.decorateServiceException(Object.assign(new ErrorCtor({ name: errorName }), errorMetadata), dataObject);
|
|
2552
|
-
}
|
|
2553
|
-
const d = dataObject;
|
|
2554
|
-
const message = d?.message ?? d?.Message ?? d?.Error?.Message ?? d?.Error?.message;
|
|
2555
|
-
throw this.decorateServiceException(Object.assign(new Error(message), { name: errorName }, errorMetadata), dataObject);
|
|
2556
|
-
}
|
|
2557
|
-
}
|
|
2558
|
-
compose(composite, errorIdentifier, defaultNamespace) {
|
|
2559
|
-
let namespace = defaultNamespace;
|
|
2560
|
-
if (errorIdentifier.includes("#")) [namespace] = errorIdentifier.split("#");
|
|
2561
|
-
const staticRegistry = TypeRegistry.for(namespace);
|
|
2562
|
-
const defaultSyntheticRegistry = TypeRegistry.for("smithy.ts.sdk.synthetic." + defaultNamespace);
|
|
2563
|
-
composite.copyFrom(staticRegistry);
|
|
2564
|
-
composite.copyFrom(defaultSyntheticRegistry);
|
|
2565
|
-
this.errorRegistry = composite;
|
|
2566
|
-
}
|
|
2567
|
-
decorateServiceException(exception, additions = {}) {
|
|
2568
|
-
if (this.queryCompat) {
|
|
2569
|
-
const msg = exception.Message ?? additions.Message;
|
|
2570
|
-
const error = decorateServiceException(exception, additions);
|
|
2571
|
-
if (msg) error.message = msg;
|
|
2572
|
-
const errorObj = error.Error ?? {};
|
|
2573
|
-
errorObj.Type = error.Error?.Type;
|
|
2574
|
-
errorObj.Code = error.Error?.Code;
|
|
2575
|
-
errorObj.Message = error.Error?.message ?? error.Error?.Message ?? msg;
|
|
2576
|
-
error.Error = errorObj;
|
|
2577
|
-
const reqId = error.$metadata.requestId;
|
|
2578
|
-
if (reqId) error.RequestId = reqId;
|
|
2579
|
-
return error;
|
|
2580
|
-
}
|
|
2581
|
-
return decorateServiceException(exception, additions);
|
|
2582
|
-
}
|
|
2583
|
-
setQueryCompatError(output, response) {
|
|
2584
|
-
const queryErrorHeader = response.headers?.["x-amzn-query-error"];
|
|
2585
|
-
if (output !== void 0 && queryErrorHeader != null) {
|
|
2586
|
-
const [Code, Type] = queryErrorHeader.split(";");
|
|
2587
|
-
const keys = Object.keys(output);
|
|
2588
|
-
const Error = {
|
|
2589
|
-
Code,
|
|
2590
|
-
Type
|
|
2591
|
-
};
|
|
2592
|
-
output.Code = Code;
|
|
2593
|
-
output.Type = Type;
|
|
2594
|
-
for (let i = 0; i < keys.length; i++) {
|
|
2595
|
-
const k = keys[i];
|
|
2596
|
-
Error[k === "message" ? "Message" : k] = output[k];
|
|
2597
|
-
}
|
|
2598
|
-
delete Error.__type;
|
|
2599
|
-
output.Error = Error;
|
|
2600
|
-
}
|
|
2601
|
-
}
|
|
2602
|
-
queryCompatOutput(queryCompatErrorData, errorData) {
|
|
2603
|
-
if (queryCompatErrorData.Error) errorData.Error = queryCompatErrorData.Error;
|
|
2604
|
-
if (queryCompatErrorData.Type) errorData.Type = queryCompatErrorData.Type;
|
|
2605
|
-
if (queryCompatErrorData.Code) errorData.Code = queryCompatErrorData.Code;
|
|
2606
|
-
}
|
|
2607
|
-
findQueryCompatibleError(registry, errorName) {
|
|
2608
|
-
try {
|
|
2609
|
-
return registry.getSchema(errorName);
|
|
2610
|
-
} catch (e) {
|
|
2611
|
-
return registry.find((schema) => NormalizedSchema.of(schema).getMergedTraits().awsQueryError?.[0] === errorName);
|
|
2612
|
-
}
|
|
2613
|
-
}
|
|
2614
|
-
};
|
|
2615
|
-
//#endregion
|
|
2616
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js
|
|
2617
|
-
var SerdeContextConfig = class {
|
|
2618
|
-
serdeContext;
|
|
2619
|
-
setSerdeContext(serdeContext) {
|
|
2620
|
-
this.serdeContext = serdeContext;
|
|
2621
|
-
}
|
|
2622
|
-
};
|
|
2623
|
-
//#endregion
|
|
2624
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/protocols/UnionSerde.js
|
|
2625
|
-
var UnionSerde = class {
|
|
2626
|
-
from;
|
|
2627
|
-
to;
|
|
2628
|
-
keys;
|
|
2629
|
-
constructor(from, to) {
|
|
2630
|
-
this.from = from;
|
|
2631
|
-
this.to = to;
|
|
2632
|
-
const keys = Object.keys(this.from);
|
|
2633
|
-
const set = new Set(keys);
|
|
2634
|
-
set.delete("__type");
|
|
2635
|
-
this.keys = set;
|
|
2636
|
-
}
|
|
2637
|
-
mark(key) {
|
|
2638
|
-
this.keys.delete(key);
|
|
2639
|
-
}
|
|
2640
|
-
hasUnknown() {
|
|
2641
|
-
return this.keys.size === 1 && Object.keys(this.to).length === 0;
|
|
2642
|
-
}
|
|
2643
|
-
writeUnknown() {
|
|
2644
|
-
if (this.hasUnknown()) {
|
|
2645
|
-
const k = this.keys.values().next().value;
|
|
2646
|
-
const v = this.from[k];
|
|
2647
|
-
this.to.$unknown = [k, v];
|
|
2648
|
-
}
|
|
2649
|
-
}
|
|
2650
|
-
};
|
|
2651
|
-
|
|
2652
|
-
export { getDefaultExtensionConfiguration as A, getHttpHandlerExtensionConfiguration as B, Command as C, DefaultIdentityProviderConfig as D, resolveAwsRegionExtensionConfiguration as E, resolveDefaultRuntimeConfig as F, resolveHttpHandlerRuntimeConfig as G, resolveAwsSdkSigV4Config as H, getSmithyContext as I, AwsSdkSigV4Signer as J, NoAuthSigner as K, loadConfigsForDefaultMode as L, EndpointCache as M, NODE_APP_ID_CONFIG_OPTIONS as N, decideEndpoint as O, BinaryDecisionDiagram as P, awsEndpointFunctions as Q, customEndpointFunctions as R, ServiceException as S, ProtocolLib as T, SerdeContextConfig as U, UnionSerde as V, validateSigningProperties as W, getSkewCorrectedDate as X, resolveParams as Y, Client as a, resolveHostHeaderConfig as b, resolveRegionConfig as c, resolveUserAgentConfig as d, getSchemaSerdePlugin as e, getUserAgentPlugin as f, getEndpointPlugin as g, getContentLengthPlugin as h, getHostHeaderPlugin as i, getLoggerPlugin as j, getRecursionDetectionPlugin as k, getHttpAuthSchemeEndpointRuleSetPlugin as l, getHttpSigningPlugin as m, emitWarningIfUnsupportedVersion$1 as n, resolveDefaultsModeConfig as o, emitWarningIfUnsupportedVersion as p, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS as q, resolveEndpointConfig as r, streamCollector as s, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS as t, NODE_REGION_CONFIG_FILE_OPTIONS as u, NODE_REGION_CONFIG_OPTIONS as v, createDefaultUserAgentProvider as w, package_default as x, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS as y, getAwsRegionExtensionConfiguration as z };
|
|
2653
|
-
//# sourceMappingURL=UnionSerde-BflIkhKj.js.map
|