gemi 0.4.69 → 0.4.71

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.
Files changed (763) hide show
  1. package/dist/{chunk-f5a531a49e7591bd.js → chunk-2895a97b65e7107b.js} +1 -1
  2. package/dist/{chunk-8884e59809021f5f.js → chunk-2dd61d279d9f0b13.js} +1 -1
  3. package/dist/{chunk-100b76ab0ca3e14d.js → chunk-448c9eceacddef90.js} +1 -1
  4. package/dist/{chunk-a4b231bf6d911e01.js → chunk-466213c5585251ad.js} +1 -1
  5. package/dist/{chunk-edfc3362e0d21dab.js → chunk-4b8da0fabb3539db.js} +5 -5
  6. package/dist/{chunk-1bd88dc9c4475e1d.js → chunk-4bc3b71775040cb9.js} +1 -1
  7. package/dist/{chunk-00935722c776a294.js → chunk-af7d1951242b1c6e.js} +1 -1
  8. package/dist/{chunk-1d2c062034e3ed2d.js → chunk-b6a64bf9af2e91be.js} +2 -2
  9. package/dist/{chunk-a35eb04f0c7c9944.js → chunk-b8176bf532f59485.js} +1 -1
  10. package/dist/{chunk-545989119755857f.js → chunk-cca33e85bf87b3b3.js} +1 -1
  11. package/dist/{chunk-a1efc60864e65ef2.js → chunk-de75d134f236f4bb.js} +1 -1
  12. package/dist/{chunk-107dbe753ed86605.js → chunk-e344c95f8ae7a124.js} +2 -2
  13. package/dist/{chunk-f5200f44395bf49d.js → chunk-e565da7343a33b65.js} +2 -2
  14. package/dist/{chunk-3330ff12936f5a2e.js → chunk-e912bf7c7a0e988a.js} +1 -1
  15. package/dist/{chunk-210fc3731e7d2299.js → chunk-f22ac1ec6c3f782b.js} +1 -1
  16. package/dist/{chunk-1b3b7c2c9ae041ca.js → chunk-fe65548818651cb5.js} +1 -1
  17. package/dist/client/ClientRouterContext.d.ts.map +1 -1
  18. package/dist/client/HttpReload.d.ts.map +1 -1
  19. package/dist/client/index.js +19 -5
  20. package/dist/server/index.js +1 -1
  21. package/dist/storage/index.js +1 -1
  22. package/dist/vite/{index-D9QWnghl.mjs → index-BbySvAwL.mjs} +3 -3
  23. package/dist/vite/index.mjs +1 -1
  24. package/dist/vite/{typescript-DADBvwYC.mjs → typescript-CeZcXBr-.mjs} +1 -1
  25. package/package.json +1 -1
  26. package/dist/app/App.test.d.ts +0 -20
  27. package/dist/app/App.test.d.ts.map +0 -1
  28. package/dist/app/createComponentTree.test.d.ts +0 -2
  29. package/dist/app/createComponentTree.test.d.ts.map +0 -1
  30. package/dist/app/createFlatApiRoutes.test.d.ts +0 -2
  31. package/dist/app/createFlatApiRoutes.test.d.ts.map +0 -1
  32. package/dist/app/createFlatViewRoutes.test.d.ts +0 -2
  33. package/dist/app/createFlatViewRoutes.test.d.ts.map +0 -1
  34. package/dist/app/createRouteManifest.test.d.ts +0 -2
  35. package/dist/app/createRouteManifest.test.d.ts.map +0 -1
  36. package/dist/chunk-00234eac874c2722.js +0 -2
  37. package/dist/chunk-00cb9f80352454dd.js +0 -1
  38. package/dist/chunk-00e9dad0734d9761.js +0 -2
  39. package/dist/chunk-00ecc27f03e2e84a.js +0 -2
  40. package/dist/chunk-00f16704831dd8b0.js +0 -2
  41. package/dist/chunk-01052ff9d1c07ef8.js +0 -2
  42. package/dist/chunk-0113570164c56f57.js +0 -2
  43. package/dist/chunk-0130e95410edb036.js +0 -18
  44. package/dist/chunk-01e07763e3e32710.js +0 -2
  45. package/dist/chunk-01e1579811beb424.js +0 -2
  46. package/dist/chunk-01ffccc19e8ef862.js +0 -3
  47. package/dist/chunk-02118fc60206588d.js +0 -2
  48. package/dist/chunk-0306d8fccec5104e.js +0 -2
  49. package/dist/chunk-030b4fb955329860.js +0 -16
  50. package/dist/chunk-03227f4a68e038f4.js +0 -2
  51. package/dist/chunk-03a72299591d45a7.js +0 -18
  52. package/dist/chunk-03c8e645c994d40a.js +0 -2
  53. package/dist/chunk-04aa62521338e3ab.js +0 -18
  54. package/dist/chunk-04d6b88ed6d3f076.js +0 -6
  55. package/dist/chunk-0557700bf68e85d4.js +0 -18
  56. package/dist/chunk-05fa767ab29abb0f.js +0 -2
  57. package/dist/chunk-061d95b15c00e38b.js +0 -9
  58. package/dist/chunk-069fcad61c8841dc.js +0 -1
  59. package/dist/chunk-06b83143607ebdc8.js +0 -6
  60. package/dist/chunk-06eebef7eb056baa.js +0 -2
  61. package/dist/chunk-073f5b81e98d91fe.js +0 -3
  62. package/dist/chunk-08539d08fa7362f7.js +0 -2
  63. package/dist/chunk-088b47e135832170.js +0 -1
  64. package/dist/chunk-088ed28ebed2b009.js +0 -5
  65. package/dist/chunk-08e9ab1091d7383e.js +0 -3
  66. package/dist/chunk-0909c7f6b64b8806.js +0 -2
  67. package/dist/chunk-095848ccb81718bf.js +0 -2
  68. package/dist/chunk-09dd89e1046786a5.js +0 -2
  69. package/dist/chunk-0a6614fbd65524af.js +0 -2
  70. package/dist/chunk-0a9ae42aae6f406e.js +0 -2
  71. package/dist/chunk-0b1b4e4e251ffe01.js +0 -2
  72. package/dist/chunk-0b46ec66d2c3d5f3.js +0 -2
  73. package/dist/chunk-0b5fb4e0c7de8316.js +0 -2
  74. package/dist/chunk-0b7a7410fce0b12e.js +0 -9
  75. package/dist/chunk-0b8dc3d1ff94a0fa.js +0 -6
  76. package/dist/chunk-0b99ba34351bde91.js +0 -3
  77. package/dist/chunk-0d0f764773c0f6b8.js +0 -2
  78. package/dist/chunk-0d8ab901365b9696.js +0 -2
  79. package/dist/chunk-0db33ac43bd1d504.js +0 -2
  80. package/dist/chunk-0de36a7e51fbd11b.js +0 -9
  81. package/dist/chunk-0e125593337a68aa.js +0 -18
  82. package/dist/chunk-0e3473f7e43f4876.js +0 -2
  83. package/dist/chunk-0e99fe5c976c8ea2.js +0 -6
  84. package/dist/chunk-0f8e80862546cbc5.js +0 -18
  85. package/dist/chunk-0ffc38ed09847e35.js +0 -2
  86. package/dist/chunk-1062b3156a49fabc.js +0 -2
  87. package/dist/chunk-1084614a350762fb.js +0 -2
  88. package/dist/chunk-10a623a23a65bb20.js +0 -18
  89. package/dist/chunk-1109657ed53fbdc9.js +0 -2
  90. package/dist/chunk-11323d7a5d9219ce.js +0 -2
  91. package/dist/chunk-1171d9afbbfe827b.js +0 -2
  92. package/dist/chunk-119ffcaf1c463b8d.js +0 -6
  93. package/dist/chunk-11a75566ff74db17.js +0 -6
  94. package/dist/chunk-11d1336f6de61f45.js +0 -16
  95. package/dist/chunk-11fb7f7f30378785.js +0 -2
  96. package/dist/chunk-12b4f44a2beae19b.js +0 -2
  97. package/dist/chunk-12ca7224eb6ccf72.js +0 -9
  98. package/dist/chunk-132c71db605759c9.js +0 -2
  99. package/dist/chunk-1334ee957ff9058c.js +0 -2
  100. package/dist/chunk-136896e8038083a1.js +0 -2
  101. package/dist/chunk-13801a8f811f0461.js +0 -2
  102. package/dist/chunk-13e45ce3460f6375.js +0 -2
  103. package/dist/chunk-14d5491e97673c7d.js +0 -2
  104. package/dist/chunk-14e60554a2e78f4a.js +0 -2
  105. package/dist/chunk-159f5b922269aef1.js +0 -2
  106. package/dist/chunk-15e9771e524c5726.js +0 -2
  107. package/dist/chunk-16a63b2fee0ce9e2.js +0 -2
  108. package/dist/chunk-16dbe3a15379140b.js +0 -2
  109. package/dist/chunk-176e5ded5ed33d4d.js +0 -2
  110. package/dist/chunk-1838696dc4e7a115.js +0 -2
  111. package/dist/chunk-1874b66d572fb0db.js +0 -6
  112. package/dist/chunk-1875b98b6a064557.js +0 -2
  113. package/dist/chunk-187a09f46e2b36e5.js +0 -2
  114. package/dist/chunk-18c32b54097c580e.js +0 -2
  115. package/dist/chunk-18d87123ae525263.js +0 -2
  116. package/dist/chunk-1900e90c372bb1d6.js +0 -2
  117. package/dist/chunk-1976eef63d2e56d5.js +0 -18
  118. package/dist/chunk-197fca66ec324ed9.js +0 -2
  119. package/dist/chunk-1ad1795e55abfdb5.js +0 -2
  120. package/dist/chunk-1b0afbf1baeeaa37.js +0 -2
  121. package/dist/chunk-1b71d04a15bfa432.js +0 -2
  122. package/dist/chunk-1b8acf308a3dc9ec.js +0 -1
  123. package/dist/chunk-1c439804a4c5f8e7.js +0 -18
  124. package/dist/chunk-1cc0d1072ee4a92b.js +0 -2
  125. package/dist/chunk-1d6e287ca9c14fef.js +0 -9
  126. package/dist/chunk-1efe790f8b4ad86d.js +0 -2
  127. package/dist/chunk-1fab30ab853c48cc.js +0 -2
  128. package/dist/chunk-2081b862587086df.js +0 -2
  129. package/dist/chunk-216cc6dcf17534ba.js +0 -2
  130. package/dist/chunk-21b1f7ac5f75cd26.js +0 -2
  131. package/dist/chunk-21e105fb2b3d36d7.js +0 -799
  132. package/dist/chunk-21fe96d1a3bb5a27.js +0 -2
  133. package/dist/chunk-223b0aac9e62386a.js +0 -2
  134. package/dist/chunk-226243dd851d2050.js +0 -2
  135. package/dist/chunk-22773aec8cc230c6.js +0 -6
  136. package/dist/chunk-2279c382943fca51.js +0 -2
  137. package/dist/chunk-22ec1973752a5488.js +0 -2
  138. package/dist/chunk-2335866508ec8b1b.js +0 -2
  139. package/dist/chunk-23c287376e277e1d.js +0 -6
  140. package/dist/chunk-241584e48397dda8.js +0 -2
  141. package/dist/chunk-24e01cba9fc81ed1.js +0 -2
  142. package/dist/chunk-25dd80c6d9144f89.js +0 -2
  143. package/dist/chunk-2665dffd37ead1d9.js +0 -2
  144. package/dist/chunk-2672477bf396bad8.js +0 -2
  145. package/dist/chunk-269dd2cd89aa1c32.js +0 -2
  146. package/dist/chunk-26a5c9db5d17f5e7.js +0 -3
  147. package/dist/chunk-26d58ddc3a89234f.js +0 -2
  148. package/dist/chunk-27484e5ca3244aea.js +0 -6
  149. package/dist/chunk-281226b6c79ebf8b.js +0 -2
  150. package/dist/chunk-285299d784985340.js +0 -3
  151. package/dist/chunk-28bb1e70f39736ee.js +0 -2
  152. package/dist/chunk-28e02c9b9c46a167.js +0 -2
  153. package/dist/chunk-293d8be91a9ad4f9.js +0 -2
  154. package/dist/chunk-29a0dbe3c8eb87d4.js +0 -6
  155. package/dist/chunk-29bc27c5e126c304.js +0 -18
  156. package/dist/chunk-29c46abebbc0f09b.js +0 -2
  157. package/dist/chunk-2a0d1475ac05027d.js +0 -2
  158. package/dist/chunk-2a0e8565f874d787.js +0 -18
  159. package/dist/chunk-2a101fb25d52469b.js +0 -2
  160. package/dist/chunk-2a328e3beda74e4f.js +0 -2
  161. package/dist/chunk-2a48e0098ccd4249.js +0 -2
  162. package/dist/chunk-2a5b4dfab2e26e21.js +0 -1
  163. package/dist/chunk-2b2764983015552e.js +0 -2
  164. package/dist/chunk-2b3eabd01b2ae3f8.js +0 -2
  165. package/dist/chunk-2bfbc777c6995d9a.js +0 -18
  166. package/dist/chunk-2cf271e24c26b0ee.js +0 -2
  167. package/dist/chunk-2db6c9bb69bb27aa.js +0 -1
  168. package/dist/chunk-2e34b856e195c353.js +0 -2
  169. package/dist/chunk-2e447b50094b2862.js +0 -2
  170. package/dist/chunk-2ec287222364c6b6.js +0 -2
  171. package/dist/chunk-2ecc077efab285b4.js +0 -2
  172. package/dist/chunk-2f6867d08b95f2d2.js +0 -2
  173. package/dist/chunk-2f7091b9e4f728c7.js +0 -2
  174. package/dist/chunk-2f7aac67f16768a5.js +0 -1
  175. package/dist/chunk-3042abeb18cf180e.js +0 -2
  176. package/dist/chunk-30622b4547786346.js +0 -2
  177. package/dist/chunk-30f854fb2ba73268.js +0 -2
  178. package/dist/chunk-322e991c2b56a79d.js +0 -2
  179. package/dist/chunk-3258ba57992f25bb.js +0 -6
  180. package/dist/chunk-328c98321c6ba3d6.js +0 -2
  181. package/dist/chunk-32af3a3a1c95157f.js +0 -2
  182. package/dist/chunk-32f06f9ad00aaabd.js +0 -2
  183. package/dist/chunk-32f3d5e11b4bc87d.js +0 -2
  184. package/dist/chunk-339dd63e93f196b7.js +0 -16
  185. package/dist/chunk-345f66382cf35683.js +0 -2
  186. package/dist/chunk-34786cd9bc9be20b.js +0 -18
  187. package/dist/chunk-3567e8e424a60c99.js +0 -18
  188. package/dist/chunk-35ab4be8ca6c67ee.js +0 -2
  189. package/dist/chunk-361f806684fe532e.js +0 -6
  190. package/dist/chunk-36ab979dae2a2094.js +0 -2
  191. package/dist/chunk-36b8e37ca93fcc67.js +0 -2
  192. package/dist/chunk-370389a68668658a.js +0 -2
  193. package/dist/chunk-3728fa21e6931333.js +0 -2
  194. package/dist/chunk-378a050132886d17.js +0 -2
  195. package/dist/chunk-38237d1b01b0db25.js +0 -3
  196. package/dist/chunk-382a513747a9aa52.js +0 -6
  197. package/dist/chunk-38fc9d258dbe62fd.js +0 -18
  198. package/dist/chunk-3a3092db69408490.js +0 -2
  199. package/dist/chunk-3a9fcddbd219223b.js +0 -3
  200. package/dist/chunk-3ab807ceccde81f3.js +0 -3
  201. package/dist/chunk-3abb49bba3da7231.js +0 -1
  202. package/dist/chunk-3aecba8553e036bf.js +0 -6
  203. package/dist/chunk-3afa6cad1106f55a.js +0 -2
  204. package/dist/chunk-3b235fc8816ff5e6.js +0 -2
  205. package/dist/chunk-3b6df70b3d01d442.js +0 -3
  206. package/dist/chunk-3bd48fb5397a155b.js +0 -5
  207. package/dist/chunk-3bedef94ef8dba4a.js +0 -2
  208. package/dist/chunk-3bf6f8c8e8589e3d.js +0 -2
  209. package/dist/chunk-3c83d6762f7e56b3.js +0 -2
  210. package/dist/chunk-3cbc1c9cdc091b43.js +0 -2
  211. package/dist/chunk-3d7556bb2f665f61.js +0 -2
  212. package/dist/chunk-3dbf073642b377eb.js +0 -1
  213. package/dist/chunk-3e3078cae755e834.js +0 -2
  214. package/dist/chunk-3f1eaa4b49aa9a15.js +0 -3
  215. package/dist/chunk-40111275eef9f7b3.js +0 -6
  216. package/dist/chunk-408fb31b8b0f97ee.js +0 -2
  217. package/dist/chunk-40942fb138dcd780.js +0 -9
  218. package/dist/chunk-40c21fe243675250.js +0 -2
  219. package/dist/chunk-40f4bfe67d75f2ec.js +0 -6
  220. package/dist/chunk-412ad792487747bc.js +0 -2
  221. package/dist/chunk-415d564ff61a8fe6.js +0 -2
  222. package/dist/chunk-42097f79deccd5b7.js +0 -2
  223. package/dist/chunk-4272071146eb5eb2.js +0 -1
  224. package/dist/chunk-42aa6e3d42149620.js +0 -2
  225. package/dist/chunk-432bbd1d38ff3b52.js +0 -2
  226. package/dist/chunk-437335670ad9059d.js +0 -2
  227. package/dist/chunk-442a5b1ec74c72f8.js +0 -2
  228. package/dist/chunk-4432f8d8567e682b.js +0 -9
  229. package/dist/chunk-4548da0edd8c39ed.js +0 -2
  230. package/dist/chunk-45badde289996d82.js +0 -9
  231. package/dist/chunk-464cce477d8a56e0.js +0 -2
  232. package/dist/chunk-46528bdbb2218772.js +0 -2
  233. package/dist/chunk-477a4d3115b9703e.js +0 -2
  234. package/dist/chunk-47c4cec992af0689.js +0 -2
  235. package/dist/chunk-487b7c0cb388d533.js +0 -6
  236. package/dist/chunk-488b4db0c522d44a.js +0 -1
  237. package/dist/chunk-489125d86cd75e69.js +0 -9
  238. package/dist/chunk-4960e27e19bbe42a.js +0 -2
  239. package/dist/chunk-4b201cccdf6d290f.js +0 -2
  240. package/dist/chunk-4b4ea80149bba4e6.js +0 -2
  241. package/dist/chunk-4bbeb47cc6137c49.js +0 -2
  242. package/dist/chunk-4cb19a9e82653084.js +0 -2
  243. package/dist/chunk-4cb5f3feff1a81c5.js +0 -2
  244. package/dist/chunk-4cc2463d985f6882.js +0 -9
  245. package/dist/chunk-4d19e16340534ed0.js +0 -2
  246. package/dist/chunk-4d46e390f99b97e0.js +0 -2
  247. package/dist/chunk-4d80485e7efb826f.js +0 -2
  248. package/dist/chunk-4e023976eb557258.js +0 -2
  249. package/dist/chunk-4e5485d3cfe9dc4e.js +0 -2
  250. package/dist/chunk-4e9167391dd0d15f.js +0 -2
  251. package/dist/chunk-4e9d5acfa5541d1b.js +0 -2
  252. package/dist/chunk-4eeee2f82b1fa8bb.js +0 -2
  253. package/dist/chunk-4f01c5a98726e704.js +0 -2
  254. package/dist/chunk-4f1b43f5232b3e65.js +0 -6
  255. package/dist/chunk-4f5b07a6a6fd5cc6.js +0 -2
  256. package/dist/chunk-4ffecff075e73d43.js +0 -2
  257. package/dist/chunk-50b440397d41ab5a.js +0 -2
  258. package/dist/chunk-50ea27a13eb62b5e.js +0 -2
  259. package/dist/chunk-5128de1a65ba6ce1.js +0 -2
  260. package/dist/chunk-514f8554fb446139.js +0 -9
  261. package/dist/chunk-515c26d532207095.js +0 -2
  262. package/dist/chunk-516c6b67d6e3d041.js +0 -18
  263. package/dist/chunk-5190b38f06507ee1.js +0 -18
  264. package/dist/chunk-51bad63147c3be4e.js +0 -6
  265. package/dist/chunk-51c21d2a3c45fbe1.js +0 -2
  266. package/dist/chunk-51e930ef29de215b.js +0 -1
  267. package/dist/chunk-51ee928673a12486.js +0 -2
  268. package/dist/chunk-521750cca5e03c65.js +0 -2
  269. package/dist/chunk-5290ecaf429d5a61.js +0 -2
  270. package/dist/chunk-52e76204b898931e.js +0 -18
  271. package/dist/chunk-53b7d6267c9172bc.js +0 -2
  272. package/dist/chunk-53c39aca36ece018.js +0 -2
  273. package/dist/chunk-543013123141745c.js +0 -2
  274. package/dist/chunk-54c03438ff1f41e5.js +0 -2
  275. package/dist/chunk-552bdaee8c03e091.js +0 -9
  276. package/dist/chunk-55f76d4f6116f296.js +0 -9
  277. package/dist/chunk-5656abf3151c8fa2.js +0 -2
  278. package/dist/chunk-56f6f8c2162dcf1c.js +0 -2
  279. package/dist/chunk-57a61e580c4adf80.js +0 -2
  280. package/dist/chunk-581e0d46235dbf7c.js +0 -2
  281. package/dist/chunk-584e33c96b1a78e4.js +0 -2
  282. package/dist/chunk-5852c4da08af607f.js +0 -2
  283. package/dist/chunk-589f4b330dd6d32e.js +0 -2
  284. package/dist/chunk-590bd43a75f48606.js +0 -18
  285. package/dist/chunk-590cd512f9e72880.js +0 -18
  286. package/dist/chunk-596024c880387c2f.js +0 -2
  287. package/dist/chunk-597d5c6772b14a85.js +0 -9
  288. package/dist/chunk-59980167a4c574b3.js +0 -2
  289. package/dist/chunk-59da8b8ab8add738.js +0 -16
  290. package/dist/chunk-59e951812cb019e6.js +0 -2
  291. package/dist/chunk-59fe590e19085858.js +0 -18
  292. package/dist/chunk-5a2d89fce13094a9.js +0 -2
  293. package/dist/chunk-5a66922d5981afc8.js +0 -18
  294. package/dist/chunk-5a75eae6c32c2ba3.js +0 -2
  295. package/dist/chunk-5a9fa677066f72ac.js +0 -2
  296. package/dist/chunk-5b54843712abde58.js +0 -2
  297. package/dist/chunk-5b836c769c5dad2a.js +0 -2
  298. package/dist/chunk-5c2a5156f6bef0f5.js +0 -2
  299. package/dist/chunk-5c3681fb029d7588.js +0 -1
  300. package/dist/chunk-5cd0a98345a5d57a.js +0 -2
  301. package/dist/chunk-5d3431e9686096af.js +0 -18
  302. package/dist/chunk-5d51afe60efaf99e.js +0 -2
  303. package/dist/chunk-5d86d49d66db1c22.js +0 -2
  304. package/dist/chunk-5defd55c3c97bdb2.js +0 -2
  305. package/dist/chunk-5e13846c554dc272.js +0 -2
  306. package/dist/chunk-5fb9d31b7b4629e9.js +0 -1
  307. package/dist/chunk-5fbde192153a2a50.js +0 -2
  308. package/dist/chunk-5fd67245740e3908.js +0 -9
  309. package/dist/chunk-6003411eae26f246.js +0 -3
  310. package/dist/chunk-60d70dcbf4e79276.js +0 -2
  311. package/dist/chunk-60f3b8242209ac3e.js +0 -18
  312. package/dist/chunk-61973614facb50a8.js +0 -2
  313. package/dist/chunk-61abf77c3eee8698.js +0 -2
  314. package/dist/chunk-61fc22887a7be6f9.js +0 -3
  315. package/dist/chunk-62144f9c5008bd47.js +0 -1
  316. package/dist/chunk-625025af819f55f5.js +0 -2
  317. package/dist/chunk-6259cd13f53334df.js +0 -2
  318. package/dist/chunk-62b2777c629d5157.js +0 -2
  319. package/dist/chunk-62c0f9a87ad8a46b.js +0 -2
  320. package/dist/chunk-634c80cac76d9080.js +0 -18
  321. package/dist/chunk-63ad0436d3d896b5.js +0 -3
  322. package/dist/chunk-63c5605bcce508ea.js +0 -1
  323. package/dist/chunk-640e4bdae1671873.js +0 -1
  324. package/dist/chunk-648dff766091372e.js +0 -2
  325. package/dist/chunk-64a5b833cef67725.js +0 -2
  326. package/dist/chunk-64c89cee4d4bd9a9.js +0 -2
  327. package/dist/chunk-65626c3d72d4e071.js +0 -2
  328. package/dist/chunk-65c413665a7cf876.js +0 -2
  329. package/dist/chunk-6605e290c4de1f0e.js +0 -6
  330. package/dist/chunk-66ab377654806d08.js +0 -2
  331. package/dist/chunk-670d2c924e80cb33.js +0 -3
  332. package/dist/chunk-67351e678a7ccc10.js +0 -2
  333. package/dist/chunk-6766e66417809e1a.js +0 -2
  334. package/dist/chunk-6821bb0ff6ed2452.js +0 -18
  335. package/dist/chunk-682b01231754a121.js +0 -2
  336. package/dist/chunk-68af0a6f6be163ce.js +0 -2
  337. package/dist/chunk-6921ba2fa2e1adea.js +0 -2
  338. package/dist/chunk-6943b50bd0a3ac84.js +0 -1
  339. package/dist/chunk-699957e6eb705a81.js +0 -2
  340. package/dist/chunk-69ff5047661fe699.js +0 -2
  341. package/dist/chunk-6a28d299b5726bba.js +0 -2
  342. package/dist/chunk-6ac91c66919b5ddd.js +0 -2
  343. package/dist/chunk-6afe097e13ebdf55.js +0 -2
  344. package/dist/chunk-6c345dba15e1c3f2.js +0 -2
  345. package/dist/chunk-6c461d293fa213f1.js +0 -2
  346. package/dist/chunk-6caabea5fcbc9cf7.js +0 -2
  347. package/dist/chunk-6d04c1ccb3ca8c74.js +0 -1
  348. package/dist/chunk-6e06660ab4e9d4da.js +0 -6
  349. package/dist/chunk-6e415d0e12fc9539.js +0 -1
  350. package/dist/chunk-6f78f2a54491595d.js +0 -2
  351. package/dist/chunk-700835a3a709b370.js +0 -2
  352. package/dist/chunk-70bb003c03f21dad.js +0 -2
  353. package/dist/chunk-711f86b9d50d45fe.js +0 -18
  354. package/dist/chunk-71820a3186a38543.js +0 -6
  355. package/dist/chunk-7195a8718fcd8215.js +0 -1
  356. package/dist/chunk-722f2aeae58daaa3.js +0 -18
  357. package/dist/chunk-72821f055108528e.js +0 -2
  358. package/dist/chunk-72add10919c9d7ae.js +0 -2
  359. package/dist/chunk-731f30522682483a.js +0 -2
  360. package/dist/chunk-733513f9c9e8b50f.js +0 -2
  361. package/dist/chunk-733688c7851fffd1.js +0 -2
  362. package/dist/chunk-7336bd3f3b799e3e.js +0 -1
  363. package/dist/chunk-7399f06d840a1449.js +0 -2
  364. package/dist/chunk-73c97da8ac4f1d30.js +0 -1
  365. package/dist/chunk-73c9d39f58a30fe2.js +0 -6
  366. package/dist/chunk-73eed146ee78f681.js +0 -1
  367. package/dist/chunk-73fb3bb4d001bb2e.js +0 -1
  368. package/dist/chunk-7431d60af8814bc8.js +0 -2
  369. package/dist/chunk-74802f454b9972eb.js +0 -2
  370. package/dist/chunk-74ab9c225bfe0eaa.js +0 -2
  371. package/dist/chunk-74db07ba7b97d1c1.js +0 -2
  372. package/dist/chunk-76a525af0575486d.js +0 -5
  373. package/dist/chunk-76db0552d2492ee7.js +0 -3
  374. package/dist/chunk-774337ca540a856d.js +0 -2
  375. package/dist/chunk-77c89e3c8a03f91e.js +0 -2
  376. package/dist/chunk-77d1b26236f5feec.js +0 -2
  377. package/dist/chunk-77d5bbc7a9117c21.js +0 -2
  378. package/dist/chunk-782dde0748025b5a.js +0 -2
  379. package/dist/chunk-78534576cf359780.js +0 -2
  380. package/dist/chunk-7898dd7609f163e8.js +0 -2
  381. package/dist/chunk-78ab7bcbe6104c5f.js +0 -2
  382. package/dist/chunk-78d6df0054754d5d.js +0 -2
  383. package/dist/chunk-795a1bd1d89efce1.js +0 -2
  384. package/dist/chunk-797430f55303e6b5.js +0 -2
  385. package/dist/chunk-7975e27df461cbfb.js +0 -6
  386. package/dist/chunk-798f550643937b6d.js +0 -2
  387. package/dist/chunk-79b438007611560a.js +0 -2
  388. package/dist/chunk-79f7d7d90c4fb51a.js +0 -2
  389. package/dist/chunk-7a318e738fec6c2b.js +0 -3
  390. package/dist/chunk-7aa7f7e219919c4d.js +0 -2
  391. package/dist/chunk-7abc696047809312.js +0 -6
  392. package/dist/chunk-7afdc0ba5afe109a.js +0 -21
  393. package/dist/chunk-7b3bbc8a88aee78c.js +0 -1
  394. package/dist/chunk-7b8e777f7353b492.js +0 -2
  395. package/dist/chunk-7c0fd956d14fc327.js +0 -2
  396. package/dist/chunk-7c62e9d6edc4b418.js +0 -2
  397. package/dist/chunk-7c670baec90faacb.js +0 -2
  398. package/dist/chunk-7d7b2c1f2a8dd018.js +0 -6
  399. package/dist/chunk-7de7f34d46c76019.js +0 -18
  400. package/dist/chunk-7dfb17814922ade0.js +0 -2
  401. package/dist/chunk-7e9d5eea3aa359ad.js +0 -2
  402. package/dist/chunk-7ea1baca4032004f.js +0 -2
  403. package/dist/chunk-7eb54149dff25532.js +0 -2
  404. package/dist/chunk-7ec30fbbbdf89272.js +0 -2
  405. package/dist/chunk-7fadaab2fa180ca9.js +0 -6
  406. package/dist/chunk-7fef11f59982b1f6.js +0 -2
  407. package/dist/chunk-7ffe2ce59a054e35.js +0 -2
  408. package/dist/chunk-80b17f9853d76e98.js +0 -2
  409. package/dist/chunk-8133ed564834cff3.js +0 -2
  410. package/dist/chunk-8163d4f4c2c91caf.js +0 -2
  411. package/dist/chunk-817aad76d1e8eecc.js +0 -6
  412. package/dist/chunk-81938d68b172446d.js +0 -2
  413. package/dist/chunk-81a00ae1b3ea4824.js +0 -2
  414. package/dist/chunk-81ce9b491b290639.js +0 -1
  415. package/dist/chunk-81f5123a24c19089.js +0 -2
  416. package/dist/chunk-827d2c67c03d1a52.js +0 -2
  417. package/dist/chunk-8295e42bcfc910ff.js +0 -16
  418. package/dist/chunk-82f72dfc6e27be04.js +0 -1
  419. package/dist/chunk-8401f0f53dc26633.js +0 -1
  420. package/dist/chunk-8450a38607a86896.js +0 -2
  421. package/dist/chunk-847629c9a7550cc3.js +0 -2
  422. package/dist/chunk-84b129a5185ac24d.js +0 -2
  423. package/dist/chunk-84c7f86a97d17f53.js +0 -2
  424. package/dist/chunk-84f1b068dc7fc8b7.js +0 -2
  425. package/dist/chunk-8581aa9e876d46fb.js +0 -2
  426. package/dist/chunk-85a1f8fb96fd9473.js +0 -2
  427. package/dist/chunk-85d5e5d7ff832255.js +0 -2
  428. package/dist/chunk-860f5fcef7074193.js +0 -9
  429. package/dist/chunk-869d80d2e475b938.js +0 -3
  430. package/dist/chunk-880273a32da461fd.js +0 -9
  431. package/dist/chunk-88103b9d011960db.js +0 -5
  432. package/dist/chunk-89187bbdf6945131.js +0 -2
  433. package/dist/chunk-89291b5eb2bbd0b4.js +0 -2
  434. package/dist/chunk-895d9b1ef7a65211.js +0 -2
  435. package/dist/chunk-897773d66a89947a.js +0 -2
  436. package/dist/chunk-89c6080d4a693ddf.js +0 -2
  437. package/dist/chunk-8a993922ea970923.js +0 -2
  438. package/dist/chunk-8aa3e0e20e411d11.js +0 -2
  439. package/dist/chunk-8af626a703659719.js +0 -18
  440. package/dist/chunk-8b3d411f441a43ce.js +0 -2
  441. package/dist/chunk-8b40d6a498f8bf81.js +0 -2
  442. package/dist/chunk-8b944ecefa1b832c.js +0 -18
  443. package/dist/chunk-8bb91c504b9ca45e.js +0 -2
  444. package/dist/chunk-8bf925705fdcef0c.js +0 -2
  445. package/dist/chunk-8c2b349a7198788f.js +0 -6
  446. package/dist/chunk-8c3e0f5d4a0d6e53.js +0 -2
  447. package/dist/chunk-8c8c8fd3646b76a1.js +0 -2
  448. package/dist/chunk-8caa0abe673f5d41.js +0 -2
  449. package/dist/chunk-8d8666b73758171e.js +0 -2
  450. package/dist/chunk-8e72aa06d4e47eca.js +0 -2
  451. package/dist/chunk-8ef8222b34d8f63f.js +0 -2
  452. package/dist/chunk-8f24cd33e07d02f3.js +0 -2
  453. package/dist/chunk-8f547b919361fdf4.js +0 -2
  454. package/dist/chunk-8f986f307ff91bd3.js +0 -2
  455. package/dist/chunk-901e700a2c2d43f3.js +0 -18
  456. package/dist/chunk-90c5196ff1f827a8.js +0 -2
  457. package/dist/chunk-9113f22a5215c639.js +0 -3
  458. package/dist/chunk-915c050c94553981.js +0 -2
  459. package/dist/chunk-9238196d4889d660.js +0 -1
  460. package/dist/chunk-92a55add20b5d7ac.js +0 -9
  461. package/dist/chunk-92f6095a3be7f459.js +0 -1
  462. package/dist/chunk-9326224d1e4c1a64.js +0 -2
  463. package/dist/chunk-933845e73519b4c5.js +0 -2
  464. package/dist/chunk-934ebff128f86ef1.js +0 -1
  465. package/dist/chunk-9350baa090b5a424.js +0 -2
  466. package/dist/chunk-938fed005335132e.js +0 -9
  467. package/dist/chunk-93b6f53456c1251b.js +0 -2
  468. package/dist/chunk-94578320d28e33ad.js +0 -2
  469. package/dist/chunk-9501e589e3e86a96.js +0 -2
  470. package/dist/chunk-955e2bfcdb7a7e71.js +0 -2
  471. package/dist/chunk-96b635a3bdba7415.js +0 -2
  472. package/dist/chunk-970e033f764e29fc.js +0 -19
  473. package/dist/chunk-98126e4b5bd19831.js +0 -2
  474. package/dist/chunk-9938e9a4fe25dda5.js +0 -2
  475. package/dist/chunk-99ba9dfd7c11383b.js +0 -18
  476. package/dist/chunk-9a622a10e7764b23.js +0 -2
  477. package/dist/chunk-9b5649697d59dfb4.js +0 -2
  478. package/dist/chunk-9bd00e182ac2f8a6.js +0 -6
  479. package/dist/chunk-9bd90ecd4ddde546.js +0 -18
  480. package/dist/chunk-9c3b4dd1591053c5.js +0 -18
  481. package/dist/chunk-9c4a4b4bd266869d.js +0 -2
  482. package/dist/chunk-9d069ba29a122630.js +0 -1
  483. package/dist/chunk-9d1337fc9976354d.js +0 -2
  484. package/dist/chunk-9d2777df26b445e4.js +0 -2
  485. package/dist/chunk-9d2af1a704b857ee.js +0 -2
  486. package/dist/chunk-9d6cc631cdabbe35.js +0 -9
  487. package/dist/chunk-9d714f87e4e3e250.js +0 -18
  488. package/dist/chunk-9ee2118bd4eb34ae.js +0 -9
  489. package/dist/chunk-9f6199bc705fc395.js +0 -18
  490. package/dist/chunk-a0003b7feea6fae6.js +0 -2
  491. package/dist/chunk-a004fce37a0f5a65.js +0 -2
  492. package/dist/chunk-a02b2d564bdb603d.js +0 -6
  493. package/dist/chunk-a095821ffc039b99.js +0 -18
  494. package/dist/chunk-a10ae1a06a28aaab.js +0 -2
  495. package/dist/chunk-a13ab30c392c3563.js +0 -9
  496. package/dist/chunk-a14516ac5e6f78aa.js +0 -1
  497. package/dist/chunk-a14b8af8b2a8d0b0.js +0 -2
  498. package/dist/chunk-a210ec2b987fa5f7.js +0 -2
  499. package/dist/chunk-a2fcc46e344ae7ae.js +0 -2
  500. package/dist/chunk-a3526e321ac9d173.js +0 -1
  501. package/dist/chunk-a3f85d0d3261ae44.js +0 -9
  502. package/dist/chunk-a4862acc0c3fed7d.js +0 -6
  503. package/dist/chunk-a50b9cd348c3e882.js +0 -9
  504. package/dist/chunk-a57ecc74c0fb9045.js +0 -2
  505. package/dist/chunk-a5c18c07abe8fd9c.js +0 -2
  506. package/dist/chunk-a63e13c410e92923.js +0 -2
  507. package/dist/chunk-a693f8ec2e8af8ca.js +0 -2
  508. package/dist/chunk-a719a1f305964521.js +0 -2
  509. package/dist/chunk-a7a144f5e4772c35.js +0 -2
  510. package/dist/chunk-a7f3e9d5b7cf7c42.js +0 -2
  511. package/dist/chunk-a816613f5321b9db.js +0 -1
  512. package/dist/chunk-a8310ad9bad32329.js +0 -2
  513. package/dist/chunk-a885dc5561caa8e0.js +0 -3
  514. package/dist/chunk-a88c3919c74b7877.js +0 -18
  515. package/dist/chunk-a9625dd807cb668e.js +0 -2
  516. package/dist/chunk-a991fdce275f1256.js +0 -2
  517. package/dist/chunk-aa1b1fb08828cb24.js +0 -2
  518. package/dist/chunk-aad7af5112f0f4f2.js +0 -2
  519. package/dist/chunk-aaf5855c5199efe9.js +0 -2
  520. package/dist/chunk-aaf70ff16705d558.js +0 -2
  521. package/dist/chunk-aafdd9bfb5bde8bf.js +0 -2
  522. package/dist/chunk-ab0c3f72f95cb4f4.js +0 -3
  523. package/dist/chunk-ab79a2f0d89fbeae.js +0 -1
  524. package/dist/chunk-ab7b6ceb26aca9b1.js +0 -3
  525. package/dist/chunk-abb2f588bd34adff.js +0 -2
  526. package/dist/chunk-abd0b68c299eebfc.js +0 -2
  527. package/dist/chunk-ac32b3d9dda47756.js +0 -9
  528. package/dist/chunk-acd4530b2ff92aff.js +0 -18
  529. package/dist/chunk-ad656a60ce7912bb.js +0 -2
  530. package/dist/chunk-ad8e7de66d8bf8c5.js +0 -2
  531. package/dist/chunk-adb4e1e222eb1d20.js +0 -2
  532. package/dist/chunk-ae373c8ae2d526ae.js +0 -18
  533. package/dist/chunk-ae50ef54d7de9179.js +0 -2
  534. package/dist/chunk-ae7b1bdf00266d88.js +0 -2
  535. package/dist/chunk-aef3f1c1429e6058.js +0 -2
  536. package/dist/chunk-af6b79a6ce7388ee.js +0 -18
  537. package/dist/chunk-afbf69daa7589a52.js +0 -2
  538. package/dist/chunk-b009482e01114059.js +0 -3
  539. package/dist/chunk-b031077f0a783b82.js +0 -2
  540. package/dist/chunk-b05cb7ef4546980d.js +0 -2
  541. package/dist/chunk-b05e4833f4bb2f8f.js +0 -9
  542. package/dist/chunk-b06168e5d3080486.js +0 -1
  543. package/dist/chunk-b07249c949a284d2.js +0 -16
  544. package/dist/chunk-b0cc82fa84d5362d.js +0 -2
  545. package/dist/chunk-b0f453845cad4e6e.js +0 -2
  546. package/dist/chunk-b13cfa16a8a18324.js +0 -3
  547. package/dist/chunk-b1918e88103a8501.js +0 -2
  548. package/dist/chunk-b2bc43f60314d1a9.js +0 -2
  549. package/dist/chunk-b2d07c19a78dc397.js +0 -2
  550. package/dist/chunk-b3bfe533d66f6a17.js +0 -2
  551. package/dist/chunk-b3e27ec4b56a20ac.js +0 -2
  552. package/dist/chunk-b558c43783464f1b.js +0 -2
  553. package/dist/chunk-b5d6eb761760b2a7.js +0 -6
  554. package/dist/chunk-b66a9e50afbac035.js +0 -9
  555. package/dist/chunk-b7b365f7e6038104.js +0 -2
  556. package/dist/chunk-b7c4dc1136fcaeb7.js +0 -2
  557. package/dist/chunk-b7da6c96acf0478f.js +0 -18
  558. package/dist/chunk-b7f9e29074a9f36a.js +0 -2
  559. package/dist/chunk-b80a86610158cbfd.js +0 -1
  560. package/dist/chunk-b855e71b162ce5a2.js +0 -2
  561. package/dist/chunk-b8d3d76e1dd9affe.js +0 -2
  562. package/dist/chunk-b97189ea9588db36.js +0 -9
  563. package/dist/chunk-b9cba2a8bd5bcd3e.js +0 -2
  564. package/dist/chunk-b9e4546aaa58319c.js +0 -2
  565. package/dist/chunk-b9f4c1fce7152fc8.js +0 -9
  566. package/dist/chunk-ba051a98cd651063.js +0 -1
  567. package/dist/chunk-bb72c8820407f3a6.js +0 -2
  568. package/dist/chunk-bbd36ce62b950ee5.js +0 -2
  569. package/dist/chunk-bbdd098f2a2cd820.js +0 -18
  570. package/dist/chunk-bcd70a6fc2fd359c.js +0 -1
  571. package/dist/chunk-bd2888a454e50cfd.js +0 -1
  572. package/dist/chunk-bd52b3f25b928eb1.js +0 -2
  573. package/dist/chunk-bdc34785363e3f34.js +0 -2
  574. package/dist/chunk-bdf4f2b1862899bb.js +0 -2
  575. package/dist/chunk-be095501304df604.js +0 -9
  576. package/dist/chunk-beca91bf7cc216cd.js +0 -2
  577. package/dist/chunk-bee6075c5738d87a.js +0 -2
  578. package/dist/chunk-bf14cc3e71fcd2d8.js +0 -2
  579. package/dist/chunk-bf4fa1d9864332a8.js +0 -2
  580. package/dist/chunk-bf92f3127474b56a.js +0 -3
  581. package/dist/chunk-bfccfb070c1630e9.js +0 -2
  582. package/dist/chunk-bffb8d677e1424a9.js +0 -6
  583. package/dist/chunk-c041f058dc3d571b.js +0 -1
  584. package/dist/chunk-c0bd8e19395d722b.js +0 -2
  585. package/dist/chunk-c124bf801cec12d9.js +0 -2
  586. package/dist/chunk-c153b192112b0d44.js +0 -2
  587. package/dist/chunk-c1813278ccdc04b8.js +0 -2
  588. package/dist/chunk-c210f6ae6276ebe8.js +0 -1
  589. package/dist/chunk-c29701ffef4ca07a.js +0 -2
  590. package/dist/chunk-c2d1f66cf8468e71.js +0 -1
  591. package/dist/chunk-c2fe378a1764eb92.js +0 -2
  592. package/dist/chunk-c3e4a396dc7a5fe7.js +0 -2
  593. package/dist/chunk-c3eaa877d3aab9db.js +0 -18
  594. package/dist/chunk-c45e1427f48008f0.js +0 -2
  595. package/dist/chunk-c4f342e09d9b2f23.js +0 -2
  596. package/dist/chunk-c50ff3cf3c78af79.js +0 -2
  597. package/dist/chunk-c609d06153ed09ce.js +0 -2
  598. package/dist/chunk-c62b5c4cec67029c.js +0 -1
  599. package/dist/chunk-c675395110f371b1.js +0 -6
  600. package/dist/chunk-c675f193d459818e.js +0 -2
  601. package/dist/chunk-c6846df9c8456b20.js +0 -3
  602. package/dist/chunk-c6d988f5928a4df1.js +0 -2
  603. package/dist/chunk-c72bfaa252a03f6f.js +0 -2
  604. package/dist/chunk-c7b024c7bd4cffc9.js +0 -3
  605. package/dist/chunk-c7e2acfd5087fb30.js +0 -2
  606. package/dist/chunk-c83b39b7178003da.js +0 -2
  607. package/dist/chunk-c85fc7168a708cb6.js +0 -3
  608. package/dist/chunk-c8631aa6bbb62e13.js +0 -2
  609. package/dist/chunk-c864ab57913d658f.js +0 -1
  610. package/dist/chunk-c882d0c175c22c17.js +0 -2
  611. package/dist/chunk-c8b00b645df96ed5.js +0 -2
  612. package/dist/chunk-c8f1115d77efc1c0.js +0 -2
  613. package/dist/chunk-c9707ae8f1d346ff.js +0 -3
  614. package/dist/chunk-c99b8c3d6bda27b0.js +0 -2
  615. package/dist/chunk-cb65fe402653c65e.js +0 -2
  616. package/dist/chunk-cb69e9621a60d310.js +0 -1
  617. package/dist/chunk-cca1f3ae7ec0dee1.js +0 -2
  618. package/dist/chunk-ccb551ce4fd177fe.js +0 -2
  619. package/dist/chunk-cce7de7e81895807.js +0 -2
  620. package/dist/chunk-ccfd101ce72e80bf.js +0 -1
  621. package/dist/chunk-cd1636884486d7b3.js +0 -1
  622. package/dist/chunk-cdfa2adeddc1a8e1.js +0 -2
  623. package/dist/chunk-ceb94e70091088e5.js +0 -2
  624. package/dist/chunk-cf3d1744ea801f48.js +0 -6
  625. package/dist/chunk-cf7dde2ab1be3a3c.js +0 -1
  626. package/dist/chunk-cf8b1c7a4e9fc32d.js +0 -18
  627. package/dist/chunk-cfa9a65fae5ddaf4.js +0 -2
  628. package/dist/chunk-d0757747d9cc2e47.js +0 -2
  629. package/dist/chunk-d0806df6defd9dce.js +0 -2
  630. package/dist/chunk-d12b578765686adb.js +0 -6
  631. package/dist/chunk-d16ef78d852a6856.js +0 -1
  632. package/dist/chunk-d22136d39cf8465f.js +0 -2
  633. package/dist/chunk-d26ffb7722e6df54.js +0 -1
  634. package/dist/chunk-d27588325ae2c0f3.js +0 -2
  635. package/dist/chunk-d2e057b6f3f9d500.js +0 -2
  636. package/dist/chunk-d3033805e98482dc.js +0 -6
  637. package/dist/chunk-d33a0e61ccf1bab5.js +0 -2
  638. package/dist/chunk-d3765f96a689a0c1.js +0 -2
  639. package/dist/chunk-d37757ffee07b05f.js +0 -6
  640. package/dist/chunk-d3b4a3c778c23705.js +0 -2
  641. package/dist/chunk-d3e039d010842a3f.js +0 -2
  642. package/dist/chunk-d43b3f444e738dd1.js +0 -1
  643. package/dist/chunk-d445af84de70bf7e.js +0 -2
  644. package/dist/chunk-d535b1e3078465f8.js +0 -2
  645. package/dist/chunk-d54843c1d8516c75.js +0 -2
  646. package/dist/chunk-d5709251a0493152.js +0 -6
  647. package/dist/chunk-d5ddfacbfc84a47d.js +0 -6
  648. package/dist/chunk-d665d3ee2a62d48b.js +0 -2
  649. package/dist/chunk-d7457cb6aae3b29b.js +0 -2
  650. package/dist/chunk-d850d83873a89e2b.js +0 -18
  651. package/dist/chunk-d93a6531661d56b5.js +0 -9
  652. package/dist/chunk-d93cbffc712a052f.js +0 -2
  653. package/dist/chunk-d950bbcb684a11ef.js +0 -2
  654. package/dist/chunk-d9577d79d4b718a6.js +0 -2
  655. package/dist/chunk-d9762bab5df03532.js +0 -2
  656. package/dist/chunk-d9968563c6c84405.js +0 -3
  657. package/dist/chunk-d9a84b9122601b72.js +0 -2
  658. package/dist/chunk-da1c673d9685624e.js +0 -2
  659. package/dist/chunk-dab2dde8cc9da99b.js +0 -9
  660. package/dist/chunk-dac0e2ef13060d02.js +0 -1
  661. package/dist/chunk-dac9276e506d125d.js +0 -2
  662. package/dist/chunk-dad55fcc32d05b69.js +0 -2
  663. package/dist/chunk-db2270bbca7854fe.js +0 -2
  664. package/dist/chunk-db65c75cda396f98.js +0 -2
  665. package/dist/chunk-dba84b47adec2108.js +0 -2
  666. package/dist/chunk-dc23bfb4fd92e2f0.js +0 -2
  667. package/dist/chunk-dc7b0cf226ba3afa.js +0 -2
  668. package/dist/chunk-dcc432bd72fb7e46.js +0 -3
  669. package/dist/chunk-dd211856e049a67f.js +0 -9
  670. package/dist/chunk-dd21f367f8029793.js +0 -2
  671. package/dist/chunk-dd8b042837b4d5f1.js +0 -2
  672. package/dist/chunk-ddef8961cbf08a05.js +0 -6
  673. package/dist/chunk-de0784c3310db458.js +0 -5
  674. package/dist/chunk-de39fc86bbd37240.js +0 -1
  675. package/dist/chunk-de3ec02f9d17c2c9.js +0 -2
  676. package/dist/chunk-def30dbcb4c6aceb.js +0 -2
  677. package/dist/chunk-df55f07f8adf212f.js +0 -2
  678. package/dist/chunk-df926b342440f55f.js +0 -5
  679. package/dist/chunk-dfadfa4e09b4db22.js +0 -2
  680. package/dist/chunk-dfc390f0bbdf5a81.js +0 -1
  681. package/dist/chunk-e05db2eae976681b.js +0 -3
  682. package/dist/chunk-e06fbc8e70a88f07.js +0 -2
  683. package/dist/chunk-e0a028ef931a3eb1.js +0 -18
  684. package/dist/chunk-e0e0f2ee626a6fb3.js +0 -18
  685. package/dist/chunk-e0ffb920c65ebf44.js +0 -2
  686. package/dist/chunk-e11c7f3abcf2269f.js +0 -2
  687. package/dist/chunk-e16b252158474b8c.js +0 -1
  688. package/dist/chunk-e19064e9f1d5faed.js +0 -2
  689. package/dist/chunk-e1a08bb52ee7ea09.js +0 -2
  690. package/dist/chunk-e1e84c38542d78ec.js +0 -2
  691. package/dist/chunk-e33c33445a92adf1.js +0 -1
  692. package/dist/chunk-e3acd3561fe1342c.js +0 -18
  693. package/dist/chunk-e3e996b3821027e1.js +0 -2
  694. package/dist/chunk-e3ef81776c8f2d28.js +0 -2
  695. package/dist/chunk-e4869466459233fa.js +0 -16
  696. package/dist/chunk-e4f28182cf5f6e1d.js +0 -2
  697. package/dist/chunk-e53fdd0a1888c5e8.js +0 -2
  698. package/dist/chunk-e5a95230e0858544.js +0 -3
  699. package/dist/chunk-e64d5a7b7e0fa2c5.js +0 -6
  700. package/dist/chunk-e755f2c1c7ad3912.js +0 -2
  701. package/dist/chunk-e8159722d49ad044.js +0 -2
  702. package/dist/chunk-e86269d01f94404c.js +0 -2
  703. package/dist/chunk-e9275fb341d2cdd9.js +0 -2
  704. package/dist/chunk-e9c96f9b825f8de7.js +0 -2
  705. package/dist/chunk-ea9b86cf2edd807b.js +0 -18
  706. package/dist/chunk-ec24a0767aa58f1f.js +0 -18
  707. package/dist/chunk-ed21fb7d8c4b675e.js +0 -3
  708. package/dist/chunk-ed589d4e4c575de7.js +0 -2
  709. package/dist/chunk-edba144b170cd87e.js +0 -6
  710. package/dist/chunk-edeefd833c30a5ed.js +0 -2
  711. package/dist/chunk-ee35048642cfe9d8.js +0 -2
  712. package/dist/chunk-ee4ff285d7f4ccdf.js +0 -2
  713. package/dist/chunk-ee604d0215ea07e6.js +0 -1
  714. package/dist/chunk-ee92e80230ce02ec.js +0 -2
  715. package/dist/chunk-eea1d6f60a6875d5.js +0 -2
  716. package/dist/chunk-eeb3b193701aec43.js +0 -1
  717. package/dist/chunk-ef1ebd10affe5726.js +0 -2
  718. package/dist/chunk-ef30aafcfd40dc07.js +0 -2
  719. package/dist/chunk-f077321ef55ea627.js +0 -1
  720. package/dist/chunk-f08ca4bd263b132b.js +0 -2
  721. package/dist/chunk-f0d3ed16a520ecf1.js +0 -18
  722. package/dist/chunk-f117757df00aa18d.js +0 -2
  723. package/dist/chunk-f13fd46441a58606.js +0 -2
  724. package/dist/chunk-f1ac22ad55dbab7a.js +0 -9
  725. package/dist/chunk-f1dfc76a05462dde.js +0 -2
  726. package/dist/chunk-f1e28c4c1a227c27.js +0 -2
  727. package/dist/chunk-f2428c56f532e719.js +0 -3
  728. package/dist/chunk-f256432c3e5819d0.js +0 -2
  729. package/dist/chunk-f2dca6305fcba70b.js +0 -2
  730. package/dist/chunk-f316793e4ec0f386.js +0 -2
  731. package/dist/chunk-f32726d374c6bee5.js +0 -1
  732. package/dist/chunk-f34a78d9e3a62c43.js +0 -3
  733. package/dist/chunk-f404a785b581d029.js +0 -2
  734. package/dist/chunk-f5910f2c8a3f6974.js +0 -2
  735. package/dist/chunk-f5a4295176f9b1c1.js +0 -2
  736. package/dist/chunk-f5b888aa9ac4e20f.js +0 -2
  737. package/dist/chunk-f5e313cc7d724fbe.js +0 -2
  738. package/dist/chunk-f67aa3e46d73674e.js +0 -2
  739. package/dist/chunk-f69bcbd7998553cb.js +0 -2
  740. package/dist/chunk-f74928c3f9ae5359.js +0 -2
  741. package/dist/chunk-f7796c3724a35057.js +0 -2
  742. package/dist/chunk-f84049d82d29bd9e.js +0 -2
  743. package/dist/chunk-f868cdf653dbe87e.js +0 -2
  744. package/dist/chunk-f8823a1ede83155e.js +0 -2
  745. package/dist/chunk-f8ad65b3a07ce3c4.js +0 -6
  746. package/dist/chunk-f900b5868b14827e.js +0 -2
  747. package/dist/chunk-f9084650419a23c4.js +0 -2
  748. package/dist/chunk-f95f5e3439539ca5.js +0 -2
  749. package/dist/chunk-f99bdfc336b2ac57.js +0 -9
  750. package/dist/chunk-f9a17b871b527bff.js +0 -2
  751. package/dist/chunk-f9e6a0a946ebb032.js +0 -2
  752. package/dist/chunk-fa40971555060604.js +0 -81
  753. package/dist/chunk-fa6bdfb32d2f97fb.js +0 -2
  754. package/dist/chunk-faa8c62bfa11f9d5.js +0 -2
  755. package/dist/chunk-fb25896f1638ca8e.js +0 -3
  756. package/dist/chunk-fc165cee61f6efe8.js +0 -6
  757. package/dist/chunk-fd5ffee329d6f29b.js +0 -2
  758. package/dist/chunk-feaaa37d30cd1e9b.js +0 -2
  759. package/dist/chunk-fec9f0b0b0319f3b.js +0 -2
  760. package/dist/chunk-ff086fe014985526.js +0 -1
  761. package/dist/chunk-ff1bbce70d726bc6.js +0 -9
  762. package/dist/chunk-ff9a2d6d503e6db6.js +0 -18
  763. package/dist/chunk-ffe161a589b4c44b.js +0 -1
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{y as K} from"./chunk-7ce930fe69575c87.js";import"./chunk-2665dffd37ead1d9.js";import{kb as v,lb as P} from"./chunk-4d80485e7efb826f.js";import{mb as _} from"./chunk-65626c3d72d4e071.js";import"./chunk-73fb3bb4d001bb2e.js";var m=K(_(),1);import{parse as o} from"url";var z=K(_(),1);import{Buffer as a} from"buffer";import{request as n} from"http";function f(c){return new Promise((I,x)=>{const T=n({method:"GET",...c,hostname:c.hostname?.replace(/^\[(.+)\]$/,"$1")});T.on("error",(N)=>{x(Object.assign(new z.ProviderError("Unable to connect to instance metadata service"),N)),T.destroy()}),T.on("timeout",()=>{x(new z.ProviderError("TimeoutError from instance metadata service")),T.destroy()}),T.on("response",(N)=>{const{statusCode:O=400}=N;if(O<200||300<=O)x(Object.assign(new z.ProviderError("Error response received from instance metadata service"),{statusCode:O})),T.destroy();const u=[];N.on("data",(y)=>{u.push(y)}),N.on("end",()=>{I(a.concat(u)),T.destroy()})}),T.end()})}var D=(c)=>Boolean(c)&&typeof c==="object"&&typeof c.AccessKeyId==="string"&&typeof c.SecretAccessKey==="string"&&typeof c.Token==="string"&&typeof c.Expiration==="string",G=(c)=>({accessKeyId:c.AccessKeyId,secretAccessKey:c.SecretAccessKey,sessionToken:c.Token,expiration:new Date(c.Expiration),...c.AccountId&&{accountId:c.AccountId}});var fc=1000,uc=0,Q=({maxRetries:c=0,timeout:I=1000})=>({maxRetries:c,timeout:I});var J=(c,I)=>{let x=c();for(let T=0;T<I;T++)x=x.catch(c);return x};var Z="AWS_CONTAINER_CREDENTIALS_FULL_URI",L="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",B="AWS_CONTAINER_AUTHORIZATION_TOKEN",zc=(c={})=>{const{timeout:I,maxRetries:x}=Q(c);return()=>J(async()=>{const T=await d({logger:c.logger}),N=JSON.parse(await s(I,T));if(!D(N))throw new m.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:c.logger});return G(N)},x)},s=async(c,I)=>{if(process.env[B])I.headers={...I.headers,Authorization:process.env[B]};return(await f({...I,timeout:c})).toString()},g="169.254.170.2",l={localhost:!0,"127.0.0.1":!0},r={"http:":!0,"https:":!0},d=async({logger:c})=>{if(process.env[L])return{hostname:g,path:process.env[L]};if(process.env[Z]){const I=o(process.env[Z]);if(!I.hostname||!(I.hostname in l))throw new m.CredentialsProviderError(`${I.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:c});if(!I.protocol||!(I.protocol in r))throw new m.CredentialsProviderError(`${I.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:c});return{...I,port:I.port?parseInt(I.port,10):void 0}}throw new m.CredentialsProviderError("The container metadata credential provider cannot be used unless"+` the ${L} or ${Z} environment`+" variable is set",{tryNextLink:!1,logger:c})};var q=K(_(),1);var U=K(_(),1);class X extends U.CredentialsProviderError{constructor(c,I=!0){super(c,I);this.tryNextLink=I,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,X.prototype)}}var j;(function(c){c.IPv4="http://169.254.169.254",c.IPv6="http://[fd00:ec2::254]"})(j||(j={}));var t={environmentVariableSelector:(c)=>c["AWS_EC2_METADATA_SERVICE_ENDPOINT"],configFileSelector:(c)=>c["ec2_metadata_service_endpoint"],default:void 0};var S;(function(c){c.IPv4="IPv4",c.IPv6="IPv6"})(S||(S={}));var e="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",i="ec2_metadata_service_endpoint_mode",F={environmentVariableSelector:(c)=>c[e],configFileSelector:(c)=>c[i],default:S.IPv4};var W=async()=>P(await cc()||await Ic()),cc=async()=>v(t)(),Ic=async()=>{const c=await v(F)();switch(c){case S.IPv4:return j.IPv4;case S.IPv6:return j.IPv6;default:throw new Error(`Unsupported endpoint mode: ${c}.`+` Select from ${Object.values(S)}`)}};var b=(c,I)=>{const x=300+Math.floor(Math.random()*300),T=new Date(Date.now()+x*1000);I.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these "+`credentials will be attempted after ${new Date(T)}.\nFor more information, please visit: `+"https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html");const N=c.originalExpiration??c.expiration;return{...c,...N?{originalExpiration:N}:{},expiration:T}};var V=(c,I={})=>{const x=I?.logger||console;let T;return async()=>{let N;try{if(N=await c(),N.expiration&&N.expiration.getTime()<Date.now())N=b(N,x)}catch(O){if(T)x.warn("Credential renew failed: ",O),N=b(T,x);else throw O}return T=N,N}};var k="/latest/meta-data/iam/security-credentials/",Tc="/latest/api/token",H="AWS_EC2_METADATA_V1_DISABLED",R="ec2_metadata_v1_disabled",M="x-aws-ec2-metadata-token",oc=(c={})=>V(Nc(c),{logger:c.logger}),Nc=(c={})=>{let I=!1;const{logger:x,profile:T}=c,{timeout:N,maxRetries:O}=Q(c),u=async(y,E)=>{if(I||E.headers?.[M]==null){let w=!1,h=!1;const C=await v({environmentVariableSelector:(Y)=>{const $=Y[H];if(h=!!$&&$!=="false",$===void 0)throw new q.CredentialsProviderError(`${H} not set in env, checking config file next.`,{logger:c.logger});return h},configFileSelector:(Y)=>{const $=Y[R];return w=!!$&&$!=="false",w},default:!1},{profile:T})();if(c.ec2MetadataV1Disabled||C){const Y=[];if(c.ec2MetadataV1Disabled)Y.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(w)Y.push(`config file profile (${R})`);if(h)Y.push(`process environment variable (${H})`);throw new X(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${Y.join(", ")}].`)}}const p=(await J(async()=>{let w;try{w=await Oc(E)}catch(h){if(h.statusCode===401)I=!1;throw h}return w},y)).trim();return J(async()=>{let w;try{w=await yc(p,E,c)}catch(h){if(h.statusCode===401)I=!1;throw h}return w},y)};return async()=>{const y=await W();if(I)return x?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),u(O,{...y,timeout:N});else{let E;try{E=(await xc({...y,timeout:N})).toString()}catch(A){if(A?.statusCode===400)throw Object.assign(A,{message:"EC2 Metadata token request returned error"});else if(A.message==="TimeoutError"||[403,404,405].includes(A.statusCode))I=!0;return x?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),u(O,{...y,timeout:N})}return u(O,{...y,headers:{[M]:E},timeout:N})}}},xc=async(c)=>f({...c,path:Tc,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),Oc=async(c)=>(await f({...c,path:k})).toString(),yc=async(c,I,x)=>{const T=JSON.parse((await f({...I,path:k+c})).toString());if(!D(T))throw new q.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:x.logger});return G(T)};export{Q as providerConfigFromInit,f as httpRequest,W as getInstanceMetadataEndpoint,oc as fromInstanceMetadata,zc as fromContainerMetadata,j as Endpoint,L as ENV_CMDS_RELATIVE_URI,Z as ENV_CMDS_FULL_URI,B as ENV_CMDS_AUTH_TOKEN,fc as DEFAULT_TIMEOUT,uc as DEFAULT_MAX_RETRIES};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{x as r} from"./chunk-a5c18c07abe8fd9c.js";import"./chunk-bbd36ce62b950ee5.js";import{gb as d,hb as v} from"./chunk-5c3681fb029d7588.js";import"./chunk-6943b50bd0a3ac84.js";import{rb as z,sb as y} from"./chunk-100b76ab0ca3e14d.js";import{parse as p} from"url";import{Buffer as M} from"buffer";import{request as k} from"http";function u(c){return new Promise((I,x)=>{const T=k({method:"GET",...c,hostname:c.hostname?.replace(/^\[(.+)\]$/,"$1")});T.on("error",(N)=>{x(Object.assign(new z("Unable to connect to instance metadata service"),N)),T.destroy()}),T.on("timeout",()=>{x(new z("TimeoutError from instance metadata service")),T.destroy()}),T.on("response",(N)=>{const{statusCode:O=400}=N;if(O<200||300<=O)x(Object.assign(new z("Error response received from instance metadata service"),{statusCode:O})),T.destroy();const E=[];N.on("data",(w)=>{E.push(w)}),N.on("end",()=>{I(M.concat(E)),T.destroy()})}),T.end()})}var K=(c)=>Boolean(c)&&typeof c==="object"&&typeof c.AccessKeyId==="string"&&typeof c.SecretAccessKey==="string"&&typeof c.Token==="string"&&typeof c.Expiration==="string",_=(c)=>({accessKeyId:c.AccessKeyId,secretAccessKey:c.SecretAccessKey,sessionToken:c.Token,expiration:new Date(c.Expiration),...c.AccountId&&{accountId:c.AccountId}});var Sc=1000,fc=0,D=({maxRetries:c=0,timeout:I=1000})=>({maxRetries:c,timeout:I});var m=(c,I)=>{let x=c();for(let T=0;T<I;T++)x=x.catch(c);return x};var Q="AWS_CONTAINER_CREDENTIALS_FULL_URI",X="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",b="AWS_CONTAINER_AUTHORIZATION_TOKEN",zc=(c={})=>{const{timeout:I,maxRetries:x}=D(c);return()=>m(async()=>{const T=await s({logger:c.logger}),N=JSON.parse(await C(I,T));if(!K(N))throw new y("Invalid response received from instance metadata service.",{logger:c.logger});return _(N)},x)},C=async(c,I)=>{if(process.env[b])I.headers={...I.headers,Authorization:process.env[b]};return(await u({...I,timeout:c})).toString()},a="169.254.170.2",n={localhost:!0,"127.0.0.1":!0},o={"http:":!0,"https:":!0},s=async({logger:c})=>{if(process.env[X])return{hostname:a,path:process.env[X]};if(process.env[Q]){const I=p(process.env[Q]);if(!I.hostname||!(I.hostname in n))throw new y(`${I.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:c});if(!I.protocol||!(I.protocol in o))throw new y(`${I.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:c});return{...I,port:I.port?parseInt(I.port,10):void 0}}throw new y("The container metadata credential provider cannot be used unless"+` the ${X} or ${Q} environment`+" variable is set",{tryNextLink:!1,logger:c})};class G extends y{constructor(c,I=!0){super(c,I);this.tryNextLink=I,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,G.prototype)}}var B=r(d(),1);var A;(function(c){c.IPv4="http://169.254.169.254",c.IPv6="http://[fd00:ec2::254]"})(A||(A={}));var H={environmentVariableSelector:(c)=>c["AWS_EC2_METADATA_SERVICE_ENDPOINT"],configFileSelector:(c)=>c["ec2_metadata_service_endpoint"],default:void 0};var f;(function(c){c.IPv4="IPv4",c.IPv6="IPv6"})(f||(f={}));var g="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",l="ec2_metadata_service_endpoint_mode",q={environmentVariableSelector:(c)=>c[g],configFileSelector:(c)=>c[l],default:f.IPv4};var Z=async()=>B.parseUrl(await e()||await i()),e=async()=>v(H)(),i=async()=>{const c=await v(q)();switch(c){case f.IPv4:return A.IPv4;case f.IPv6:return A.IPv6;default:throw new Error(`Unsupported endpoint mode: ${c}.`+` Select from ${Object.values(f)}`)}};var L=(c,I)=>{const x=300+Math.floor(Math.random()*300),T=new Date(Date.now()+x*1000);I.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these "+`credentials will be attempted after ${new Date(T)}.\nFor more information, please visit: `+"https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html");const N=c.originalExpiration??c.expiration;return{...c,...N?{originalExpiration:N}:{},expiration:T}};var U=(c,I={})=>{const x=I?.logger||console;let T;return async()=>{let N;try{if(N=await c(),N.expiration&&N.expiration.getTime()<Date.now())N=L(N,x)}catch(O){if(T)x.warn("Credential renew failed: ",O),N=L(T,x);else throw O}return T=N,N}};var P="/latest/meta-data/iam/security-credentials/",cc="/latest/api/token",W="AWS_EC2_METADATA_V1_DISABLED",t="ec2_metadata_v1_disabled",F="x-aws-ec2-metadata-token",sc=(c={})=>U(Ic(c),{logger:c.logger}),Ic=(c={})=>{let I=!1;const{logger:x,profile:T}=c,{timeout:N,maxRetries:O}=D(c),E=async(w,$)=>{if(I||$.headers?.[F]==null){let h=!1,Y=!1;const R=await v({environmentVariableSelector:(S)=>{const j=S[W];if(Y=!!j&&j!=="false",j===void 0)throw new y(`${W} not set in env, checking config file next.`,{logger:c.logger});return Y},configFileSelector:(S)=>{const j=S[t];return h=!!j&&j!=="false",h},default:!1},{profile:T})();if(c.ec2MetadataV1Disabled||R){const S=[];if(c.ec2MetadataV1Disabled)S.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(h)S.push(`config file profile (${t})`);if(Y)S.push(`process environment variable (${W})`);throw new G(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${S.join(", ")}].`)}}const V=(await m(async()=>{let h;try{h=await Nc($)}catch(Y){if(Y.statusCode===401)I=!1;throw Y}return h},w)).trim();return m(async()=>{let h;try{h=await xc(V,$,c)}catch(Y){if(Y.statusCode===401)I=!1;throw Y}return h},w)};return async()=>{const w=await Z();if(I)return x?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),E(O,{...w,timeout:N});else{let $;try{$=(await Tc({...w,timeout:N})).toString()}catch(J){if(J?.statusCode===400)throw Object.assign(J,{message:"EC2 Metadata token request returned error"});else if(J.message==="TimeoutError"||[403,404,405].includes(J.statusCode))I=!0;return x?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),E(O,{...w,timeout:N})}return E(O,{...w,headers:{[F]:$},timeout:N})}}},Tc=async(c)=>u({...c,path:cc,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),Nc=async(c)=>(await u({...c,path:P})).toString(),xc=async(c,I,x)=>{const T=JSON.parse((await u({...I,path:P+c})).toString());if(!K(T))throw new y("Invalid response received from instance metadata service.",{logger:x.logger});return _(T)};export{D as providerConfigFromInit,u as httpRequest,Z as getInstanceMetadataEndpoint,sc as fromInstanceMetadata,zc as fromContainerMetadata,A as Endpoint,X as ENV_CMDS_RELATIVE_URI,Q as ENV_CMDS_FULL_URI,b as ENV_CMDS_AUTH_TOKEN,Sc as DEFAULT_TIMEOUT,fc as DEFAULT_MAX_RETRIES};
@@ -1,16 +0,0 @@
1
- import{y as u,z as Y} from"./chunk-7ce930fe69575c87.js";import{C as c,D as m1,E as KG,F as I2,H as U4,I as _0,J as Zf,K as $4,L as E4,M as R2} from"./chunk-76a525af0575486d.js";import{gb as Hf} from"./chunk-40c21fe243675250.js";import{hb as WU,ib as wf} from"./chunk-81ce9b491b290639.js";import{ob as y1} from"./chunk-6e415d0e12fc9539.js";import{xb as C8} from"./chunk-dfc390f0bbdf5a81.js";var x=Y((AX,Qw)=>{var{defineProperty:sf,getOwnPropertyDescriptor:u8,getOwnPropertyNames:D8}=Object,_8=Object.prototype.hasOwnProperty,Yw=(f,w)=>sf(f,"name",{value:w,configurable:!0}),y8=(f,w)=>{for(var U in w)sf(f,U,{get:w[U],enumerable:!0})},v8=(f,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let $ of D8(w))if(!_8.call(f,$)&&$!==U)sf(f,$,{get:()=>w[$],enumerable:!(E=u8(w,$))||E.enumerable})}return f},x8=(f)=>v8(sf({},"__esModule",{value:!0}),f),zw={};y8(zw,{getSmithyContext:()=>p8,normalizeProvider:()=>d8});Qw.exports=x8(zw);var Zw=Hf(),p8=Yw((f)=>f[Zw.SMITHY_CONTEXT_KEY]||(f[Zw.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),d8=Yw((f)=>{if(typeof f==="function")return f;const w=Promise.resolve(f);return()=>w},"normalizeProvider")});var g0=Y((FX,Hw)=>{var{defineProperty:nf,getOwnPropertyDescriptor:g8,getOwnPropertyNames:s8}=Object,n8=Object.prototype.hasOwnProperty,e=(f,w)=>nf(f,"name",{value:w,configurable:!0}),r8=(f,w)=>{for(var U in w)nf(f,U,{get:w[U],enumerable:!0})},l8=(f,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let $ of s8(w))if(!n8.call(f,$)&&$!==U)nf(f,$,{get:()=>w[$],enumerable:!(E=g8(w,$))||E.enumerable})}return f},m8=(f)=>l8(nf({},"__esModule",{value:!0}),f),Jw={};r8(Jw,{CredentialsProviderError:()=>o8,ProviderError:()=>rf,TokenProviderError:()=>i8,chain:()=>t8,fromStatic:()=>e8,memoize:()=>a8});Hw.exports=m8(Jw);var Tw=class f extends Error{constructor(w,U=!0){var E;let $,G=!0;if(typeof U==="boolean")$=void 0,G=U;else if(U!=null&&typeof U==="object")$=U.logger,G=U.tryNextLink??!0;super(w);this.name="ProviderError",this.tryNextLink=G,Object.setPrototypeOf(this,f.prototype),(E=$==null?void 0:$.debug)==null||E.call($,`@smithy/property-provider ${G?"->":"(!)"} ${w}`)}static from(w,U=!0){return Object.assign(new this(w.message,U),w)}};e(Tw,"ProviderError");var rf=Tw,Bw=class f extends rf{constructor(w,U=!0){super(w,U);this.name="CredentialsProviderError",Object.setPrototypeOf(this,f.prototype)}};e(Bw,"CredentialsProviderError");var o8=Bw,Kw=class f extends rf{constructor(w,U=!0){super(w,U);this.name="TokenProviderError",Object.setPrototypeOf(this,f.prototype)}};e(Kw,"TokenProviderError");var i8=Kw,t8=e((...f)=>async()=>{if(f.length===0)throw new rf("No providers in chain");let w;for(let U of f)try{return await U()}catch(E){if(w=E,E==null?void 0:E.tryNextLink)continue;throw E}throw w},"chain"),e8=e((f)=>()=>Promise.resolve(f),"fromStatic"),a8=e((f,w,U)=>{let E,$,G,W=!1;const I=e(async()=>{if(!$)$=f();try{E=await $,G=!0,W=!1}finally{$=void 0}return E},"coalesceProvider");if(w===void 0)return async(R)=>{if(!G||(R==null?void 0:R.forceRefresh))E=await I();return E};return async(R)=>{if(!G||(R==null?void 0:R.forceRefresh))E=await I();if(W)return E;if(U&&!U(E))return W=!0,E;if(w(E))return await I(),E;return E}},"memoize")});var If=Y((qw)=>{Object.defineProperty(qw,"__esModule",{value:!0});qw.getHomeDir=void 0;var fI=import.meta.require("os"),wI=import.meta.require("path"),s0={},UI=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},$I=()=>{const{HOME:f,USERPROFILE:w,HOMEPATH:U,HOMEDRIVE:E=`C:${wI.sep}`}=process.env;if(f)return f;if(w)return w;if(U)return`${E}${U}`;const $=UI();if(!s0[$])s0[$]=fI.homedir();return s0[$]};qw.getHomeDir=$I});var n0=Y((Cw)=>{Object.defineProperty(Cw,"__esModule",{value:!0});Cw.getSSOTokenFilepath=void 0;var EI=import.meta.require("crypto"),GI=import.meta.require("path"),WI=If(),II=(f)=>{const U=EI.createHash("sha1").update(f).digest("hex");return GI.join(WI.getHomeDir(),".aws","sso","cache",`${U}.json`)};Cw.getSSOTokenFilepath=II});var bw=Y((Pw)=>{Object.defineProperty(Pw,"__esModule",{value:!0});Pw.getSSOTokenFromFile=void 0;var RI=import.meta.require("fs"),LI=n0(),{readFile:MI}=RI.promises,AI=async(f)=>{const w=LI.getSSOTokenFilepath(f),U=await MI(w,"utf8");return JSON.parse(U)};Pw.getSSOTokenFromFile=AI});var l0=Y((jw)=>{Object.defineProperty(jw,"__esModule",{value:!0});jw.slurpFile=void 0;var FI=import.meta.require("fs"),{readFile:XI}=FI.promises,r0={},OI=(f,w)=>{if(!r0[f]||(w===null||w===void 0?void 0:w.ignoreCache))r0[f]=XI(f,"utf8");return r0[f]};jw.slurpFile=OI});var t0=Y((zX,Vf)=>{var{defineProperty:of,getOwnPropertyDescriptor:ZI,getOwnPropertyNames:YI}=Object,zI=Object.prototype.hasOwnProperty,h=(f,w)=>of(f,"name",{value:w,configurable:!0}),QI=(f,w)=>{for(var U in w)of(f,U,{get:w[U],enumerable:!0})},m0=(f,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let $ of YI(w))if(!zI.call(f,$)&&$!==U)of(f,$,{get:()=>w[$],enumerable:!(E=ZI(w,$))||E.enumerable})}return f},i0=(f,w,U)=>(m0(f,w,"default"),U&&m0(U,w,"default")),JI=(f)=>m0(of({},"__esModule",{value:!0}),f),qf={};QI(qf,{CONFIG_PREFIX_SEPARATOR:()=>a,DEFAULT_PROFILE:()=>Dw,ENV_PROFILE:()=>uw,getProfileName:()=>TI,loadSharedConfigFiles:()=>yw,loadSsoSessionData:()=>hI,parseKnownFiles:()=>uI});Vf.exports=JI(qf);i0(qf,If(),Vf.exports);var uw="AWS_PROFILE",Dw="default",TI=h((f)=>f.profile||process.env[uw]||Dw,"getProfileName");i0(qf,n0(),Vf.exports);i0(qf,bw(),Vf.exports);var lf=Hf(),BI=h((f)=>Object.entries(f).filter(([w])=>{const U=w.indexOf(a);if(U===-1)return!1;return Object.values(lf.IniSectionType).includes(w.substring(0,U))}).reduce((w,[U,E])=>{const $=U.indexOf(a),G=U.substring(0,$)===lf.IniSectionType.PROFILE?U.substring($+1):U;return w[G]=E,w},{...f.default&&{default:f.default}}),"getConfigData"),mf=import.meta.require("path"),KI=If(),HI="AWS_CONFIG_FILE",_w=h(()=>process.env[HI]||mf.join(KI.getHomeDir(),".aws","config"),"getConfigFilepath"),qI=If(),VI="AWS_SHARED_CREDENTIALS_FILE",CI=h(()=>process.env[VI]||mf.join(qI.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),NI=If(),PI=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,SI=["__proto__","profile __proto__"],o0=h((f)=>{const w={};let U,E;for(let $ of f.split(/\r?\n/)){const G=$.split(/(^|\s)[;#]/)[0].trim();if(G[0]==="["&&G[G.length-1]==="]"){U=void 0,E=void 0;const I=G.substring(1,G.length-1),R=PI.exec(I);if(R){const[,L,,M]=R;if(Object.values(lf.IniSectionType).includes(L))U=[L,M].join(a)}else U=I;if(SI.includes(I))throw new Error(`Found invalid profile name "${I}"`)}else if(U){const I=G.indexOf("=");if(![0,-1].includes(I)){const[R,L]=[G.substring(0,I).trim(),G.substring(I+1).trim()];if(L==="")E=R;else{if(E&&$.trimStart()===$)E=void 0;w[U]=w[U]||{};const M=E?[E,R].join(a):R;w[U][M]=L}}}}return w},"parseIni"),hw=l0(),kw=h(()=>({}),"swallowError"),a=".",yw=h(async(f={})=>{const{filepath:w=CI(),configFilepath:U=_w()}=f,E=NI.getHomeDir();let G=w;if(w.startsWith("~/"))G=mf.join(E,w.slice(2));let W=U;if(U.startsWith("~/"))W=mf.join(E,U.slice(2));const I=await Promise.all([hw.slurpFile(W,{ignoreCache:f.ignoreCache}).then(o0).then(BI).catch(kw),hw.slurpFile(G,{ignoreCache:f.ignoreCache}).then(o0).catch(kw)]);return{configFile:I[0],credentialsFile:I[1]}},"loadSharedConfigFiles"),bI=h((f)=>Object.entries(f).filter(([w])=>w.startsWith(lf.IniSectionType.SSO_SESSION+a)).reduce((w,[U,E])=>({...w,[U.substring(U.indexOf(a)+1)]:E}),{}),"getSsoSessionData"),jI=l0(),cI=h(()=>({}),"swallowError"),hI=h(async(f={})=>jI.slurpFile(f.configFilepath??_w()).then(o0).then(bI).catch(cI),"loadSsoSessionData"),kI=h((...f)=>{const w={};for(let U of f)for(let[E,$]of Object.entries(U))if(w[E]!==void 0)Object.assign(w[E],$);else w[E]=$;return w},"mergeConfigFiles"),uI=h(async(f)=>{const w=await yw(f);return kI(w.configFile,w.credentialsFile)},"parseKnownFiles")});var dw=Y((QX,pw)=>{var e0=function(f){try{const w=new Set(Array.from(f.match(/([A-Z_]){3,}/g)??[]));return w.delete("CONFIG"),w.delete("CONFIG_PREFIX_SEPARATOR"),w.delete("ENV"),[...w].join(", ")}catch(w){return f}},tf=Object.defineProperty,DI=Object.getOwnPropertyDescriptor,_I=Object.getOwnPropertyNames,yI=Object.prototype.hasOwnProperty,Rf=(f,w)=>tf(f,"name",{value:w,configurable:!0}),vI=(f,w)=>{for(var U in w)tf(f,U,{get:w[U],enumerable:!0})},xI=(f,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let $ of _I(w))if(!yI.call(f,$)&&$!==U)tf(f,$,{get:()=>w[$],enumerable:!(E=DI(w,$))||E.enumerable})}return f},pI=(f)=>xI(tf({},"__esModule",{value:!0}),f),xw={};vI(xw,{loadConfig:()=>rI});pw.exports=pI(xw);var Cf=g0();Rf(e0,"getSelectorName");var dI=Rf((f,w)=>async()=>{try{const U=f(process.env);if(U===void 0)throw new Error;return U}catch(U){throw new Cf.CredentialsProviderError(U.message||`Not found in ENV: ${e0(f.toString())}`,{logger:w})}},"fromEnv"),vw=t0(),gI=Rf((f,{preferredFile:w="config",...U}={})=>async()=>{const E=vw.getProfileName(U),{configFile:$,credentialsFile:G}=await vw.loadSharedConfigFiles(U),W=G[E]||{},I=$[E]||{},R=w==="config"?{...W,...I}:{...I,...W};try{const M=f(R,w==="config"?$:G);if(M===void 0)throw new Error;return M}catch(L){throw new Cf.CredentialsProviderError(L.message||`Not found in config files w/ profile [${E}]: ${e0(f.toString())}`,{logger:U.logger})}},"fromSharedConfigFiles"),sI=Rf((f)=>typeof f==="function","isFunction"),nI=Rf((f)=>sI(f)?async()=>await f():Cf.fromStatic(f),"fromStatic"),rI=Rf(({environmentVariableSelector:f,configFileSelector:w,default:U},E={})=>Cf.memoize(Cf.chain(dI(f),gI(w,E),nI(U))),"loadConfig")});var mw=Y((rw)=>{Object.defineProperty(rw,"__esModule",{value:!0});rw.getEndpointUrlConfig=void 0;var gw=t0(),sw="AWS_ENDPOINT_URL",nw="endpoint_url",lI=(f)=>({environmentVariableSelector:(w)=>{const U=f.split(" ").map((G)=>G.toUpperCase()),E=w[[sw,...U].join("_")];if(E)return E;const $=w[sw];if($)return $;return},configFileSelector:(w,U)=>{if(U&&w.services){const $=U[["services",w.services].join(gw.CONFIG_PREFIX_SEPARATOR)];if($){const G=f.split(" ").map((I)=>I.toLowerCase()),W=$[[G.join("_"),nw].join(gw.CONFIG_PREFIX_SEPARATOR)];if(W)return W}}const E=w[nw];if(E)return E;return},default:void 0});rw.getEndpointUrlConfig=lI});var tw=Y((ow)=>{Object.defineProperty(ow,"__esModule",{value:!0});ow.getEndpointFromConfig=void 0;var mI=dw(),oI=mw(),iI=async(f)=>mI.loadConfig(oI.getEndpointUrlConfig(f))();ow.getEndpointFromConfig=iI});var f1=Y((BX,EU)=>{var $U=function(f,w,U){return{applyToStack:(E)=>{E.add(aw(f,U),wU),E.add(fU(f,w),UU)}}},ef=Object.defineProperty,tI=Object.getOwnPropertyDescriptor,eI=Object.getOwnPropertyNames,aI=Object.prototype.hasOwnProperty,a0=(f,w)=>ef(f,"name",{value:w,configurable:!0}),fR=(f,w)=>{for(var U in w)ef(f,U,{get:w[U],enumerable:!0})},wR=(f,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let $ of eI(w))if(!aI.call(f,$)&&$!==U)ef(f,$,{get:()=>w[$],enumerable:!(E=tI(w,$))||E.enumerable})}return f},UR=(f)=>wR(ef({},"__esModule",{value:!0}),f),ew={};fR(ew,{deserializerMiddleware:()=>aw,deserializerMiddlewareOption:()=>wU,getSerdePlugin:()=>$U,serializerMiddleware:()=>fU,serializerMiddlewareOption:()=>UU});EU.exports=UR(ew);var aw=a0((f,w)=>(U)=>async(E)=>{const{response:$}=await U(E);try{const G=await w($,f);return{response:$,output:G}}catch(G){if(Object.defineProperty(G,"$response",{value:$}),!("$metadata"in G)){if(G.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof G.$responseBodyText!=="undefined"){if(G.$response)G.$response.body=G.$responseBodyText}}throw G}},"deserializerMiddleware"),fU=a0((f,w)=>(U,E)=>async($)=>{var G;const W=((G=E.endpointV2)==null?void 0:G.url)&&f.urlParser?async()=>f.urlParser(E.endpointV2.url):f.endpoint;if(!W)throw new Error("No valid endpoint provider available.");const I=await w($.input,{...f,endpoint:W});return U({...$,request:I})},"serializerMiddleware"),wU={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},UU={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};a0($U,"getSerdePlugin")});var XU=Y((KX,FU)=>{var{defineProperty:f0,getOwnPropertyDescriptor:$R,getOwnPropertyNames:ER}=Object,GR=Object.prototype.hasOwnProperty,D=(f,w)=>f0(f,"name",{value:w,configurable:!0}),WR=(f,w)=>{for(var U in w)f0(f,U,{get:w[U],enumerable:!0})},IR=(f,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let $ of ER(w))if(!GR.call(f,$)&&$!==U)f0(f,$,{get:()=>w[$],enumerable:!(E=$R(w,$))||E.enumerable})}return f},RR=(f)=>IR(f0({},"__esModule",{value:!0}),f),IU={};WR(IU,{endpointMiddleware:()=>MU,endpointMiddlewareOptions:()=>AU,getEndpointFromInstructions:()=>RU,getEndpointPlugin:()=>QR,resolveEndpointConfig:()=>JR,resolveParams:()=>LU,toEndpointV1:()=>w1});FU.exports=RR(IU);var LR=D(async(f)=>{const w=(f==null?void 0:f.Bucket)||"";if(typeof f.Bucket==="string")f.Bucket=w.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(OR(w)){if(f.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!XR(w)||w.indexOf(".")!==-1&&!String(f.Endpoint).startsWith("http:")||w.toLowerCase()!==w||w.length<3)f.ForcePathStyle=!0;if(f.DisableMultiRegionAccessPoints)f.disableMultiRegionAccessPoints=!0,f.DisableMRAP=!0;return f},"resolveParamsForS3"),MR=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,AR=/(\d+\.){3}\d+/,FR=/\.\./,XR=D((f)=>MR.test(f)&&!AR.test(f)&&!FR.test(f),"isDnsCompatibleBucketName"),OR=D((f)=>{const[w,U,E,,,$]=f.split(":"),G=w==="arn"&&f.split(":").length>=6,W=Boolean(G&&U&&E&&$);if(G&&!W)throw new Error(`Invalid ARN: ${f} was an invalid ARN.`);return W},"isArnBucketName"),ZR=D((f,w,U)=>{const E=D(async()=>{const $=U[f]??U[w];if(typeof $==="function")return $();return $},"configProvider");if(f==="credentialScope"||w==="CredentialScope")return async()=>{const $=typeof U.credentials==="function"?await U.credentials():U.credentials;return($==null?void 0:$.credentialScope)??($==null?void 0:$.CredentialScope)};if(f==="accountId"||w==="AccountId")return async()=>{const $=typeof U.credentials==="function"?await U.credentials():U.credentials;return($==null?void 0:$.accountId)??($==null?void 0:$.AccountId)};if(f==="endpoint"||w==="endpoint")return async()=>{const $=await E();if($&&typeof $==="object"){if("url"in $)return $.url.href;if("hostname"in $){const{protocol:G,hostname:W,port:I,path:R}=$;return`${G}//${W}${I?":"+I:""}${R}`}}return $};return E},"createConfigValueProvider"),YR=tw(),GU=WU(),w1=D((f)=>{if(typeof f==="object"){if("url"in f)return GU.parseUrl(f.url);return f}return GU.parseUrl(f)},"toEndpointV1"),RU=D(async(f,w,U,E)=>{if(!U.endpoint){const W=await YR.getEndpointFromConfig(U.serviceId||"");if(W)U.endpoint=()=>Promise.resolve(w1(W))}const $=await LU(f,w,U);if(typeof U.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return U.endpointProvider($,E)},"getEndpointFromInstructions"),LU=D(async(f,w,U)=>{var E;const $={},G=((E=w==null?void 0:w.getEndpointParameterInstructions)==null?void 0:E.call(w))||{};for(let[W,I]of Object.entries(G))switch(I.type){case"staticContextParams":$[W]=I.value;break;case"contextParams":$[W]=f[I.name];break;case"clientContextParams":case"builtInParams":$[W]=await ZR(I.name,W,U)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(I))}if(Object.keys(G).length===0)Object.assign($,U);if(String(U.serviceId).toLowerCase()==="s3")await LR($);return $},"resolveParams"),af=x(),MU=D(({config:f,instructions:w})=>{return(U,E)=>async($)=>{var G,W,I;const R=await RU($.input,{getEndpointParameterInstructions(){return w}},{...f},E);E.endpointV2=R,E.authSchemes=(G=R.properties)==null?void 0:G.authSchemes;const L=(W=E.authSchemes)==null?void 0:W[0];if(L){E.signing_region=L.signingRegion,E.signing_service=L.signingName;const M=af.getSmithyContext(E),A=(I=M==null?void 0:M.selectedHttpAuthScheme)==null?void 0:I.httpAuthOption;if(A)A.signingProperties=Object.assign(A.signingProperties||{},{signing_region:L.signingRegion,signingRegion:L.signingRegion,signing_service:L.signingName,signingName:L.signingName,signingRegionSet:L.signingRegionSet},L.properties)}return U({...$})}},"endpointMiddleware"),zR=f1(),AU={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:zR.serializerMiddlewareOption.name},QR=D((f,w)=>({applyToStack:(U)=>{U.addRelativeTo(MU({config:f,instructions:w}),AU)}}),"getEndpointPlugin"),JR=D((f)=>{const w=f.tls??!0,{endpoint:U}=f,E=U!=null?async()=>w1(await af.normalizeProvider(U)()):void 0;return{...f,endpoint:E,tls:w,isCustomEndpoint:!!U,useDualstackEndpoint:af.normalizeProvider(f.useDualstackEndpoint??!1),useFipsEndpoint:af.normalizeProvider(f.useFipsEndpoint??!1)}},"resolveEndpointConfig")});var U1=Y((OU)=>{var BR=function(f){return f&&f.__esModule?f:{default:f}},KR=function(){if(w0>U0.length-16)TR.default.randomFillSync(U0),w0=0;return U0.slice(w0,w0+=16)};Object.defineProperty(OU,"__esModule",{value:!0});OU.default=KR;var TR=BR(import.meta.require("crypto")),U0=new Uint8Array(256),w0=U0.length});var zU=Y((ZU)=>{Object.defineProperty(ZU,"__esModule",{value:!0});ZU.default=void 0;var qR=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;ZU.default=qR});var Nf=Y((QU)=>{var CR=function(f){return f&&f.__esModule?f:{default:f}},NR=function(f){return typeof f==="string"&&VR.default.test(f)};Object.defineProperty(QU,"__esModule",{value:!0});QU.default=void 0;var VR=CR(zU()),PR=NR;QU.default=PR});var Pf=Y((BU)=>{var bR=function(f){return f&&f.__esModule?f:{default:f}},TU=function(f,w=0){return C[f[w+0]]+C[f[w+1]]+C[f[w+2]]+C[f[w+3]]+"-"+C[f[w+4]]+C[f[w+5]]+"-"+C[f[w+6]]+C[f[w+7]]+"-"+C[f[w+8]]+C[f[w+9]]+"-"+C[f[w+10]]+C[f[w+11]]+C[f[w+12]]+C[f[w+13]]+C[f[w+14]]+C[f[w+15]]},jR=function(f,w=0){const U=TU(f,w);if(!SR.default(U))throw TypeError("Stringified UUID is invalid");return U};Object.defineProperty(BU,"__esModule",{value:!0});BU.default=void 0;BU.unsafeStringify=TU;var SR=bR(Nf()),C=[];for(let f=0;f<256;++f)C.push((f+256).toString(16).slice(1));var cR=jR;BU.default=cR});var CU=Y((qU)=>{var DR=function(f){return f&&f.__esModule?f:{default:f}},_R=function(f,w,U){let E=w&&U||0;const $=w||new Array(16);f=f||{};let G=f.node||HU,W=f.clockseq!==void 0?f.clockseq:$1;if(G==null||W==null){const X=f.random||(f.rng||kR.default)();if(G==null)G=HU=[X[0]|1,X[1],X[2],X[3],X[4],X[5]];if(W==null)W=$1=(X[6]<<8|X[7])&16383}let I=f.msecs!==void 0?f.msecs:Date.now(),R=f.nsecs!==void 0?f.nsecs:G1+1;const L=I-E1+(R-G1)/1e4;if(L<0&&f.clockseq===void 0)W=W+1&16383;if((L<0||I>E1)&&f.nsecs===void 0)R=0;if(R>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");E1=I,G1=R,$1=W,I+=12219292800000;const M=((I&268435455)*1e4+R)%4294967296;$[E++]=M>>>24&255,$[E++]=M>>>16&255,$[E++]=M>>>8&255,$[E++]=M&255;const A=I/4294967296*1e4&268435455;$[E++]=A>>>8&255,$[E++]=A&255,$[E++]=A>>>24&15|16,$[E++]=A>>>16&255,$[E++]=W>>>8|128,$[E++]=W&255;for(let X=0;X<6;++X)$[E+X]=G[X];return w||uR.unsafeStringify($)};Object.defineProperty(qU,"__esModule",{value:!0});qU.default=void 0;var kR=DR(U1()),uR=Pf(),HU,$1,E1=0,G1=0,yR=_R;qU.default=yR});var W1=Y((NU)=>{var xR=function(f){return f&&f.__esModule?f:{default:f}},pR=function(f){if(!vR.default(f))throw TypeError("Invalid UUID");let w;const U=new Uint8Array(16);return U[0]=(w=parseInt(f.slice(0,8),16))>>>24,U[1]=w>>>16&255,U[2]=w>>>8&255,U[3]=w&255,U[4]=(w=parseInt(f.slice(9,13),16))>>>8,U[5]=w&255,U[6]=(w=parseInt(f.slice(14,18),16))>>>8,U[7]=w&255,U[8]=(w=parseInt(f.slice(19,23),16))>>>8,U[9]=w&255,U[10]=(w=parseInt(f.slice(24,36),16))/1099511627776&255,U[11]=w/4294967296&255,U[12]=w>>>24&255,U[13]=w>>>16&255,U[14]=w>>>8&255,U[15]=w&255,U};Object.defineProperty(NU,"__esModule",{value:!0});NU.default=void 0;var vR=xR(Nf()),dR=pR;NU.default=dR});var I1=Y((jU)=>{var nR=function(f){return f&&f.__esModule?f:{default:f}},rR=function(f){f=unescape(encodeURIComponent(f));const w=[];for(let U=0;U<f.length;++U)w.push(f.charCodeAt(U));return w},lR=function(f,w,U){function E($,G,W,I){var R;if(typeof $==="string")$=rR($);if(typeof G==="string")G=sR.default(G);if(((R=G)===null||R===void 0?void 0:R.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let L=new Uint8Array(16+$.length);if(L.set(G),L.set($,G.length),L=U(L),L[6]=L[6]&15|w,L[8]=L[8]&63|128,W){I=I||0;for(let M=0;M<16;++M)W[I+M]=L[M];return W}return gR.unsafeStringify(L)}try{E.name=f}catch($){}return E.DNS=SU,E.URL=bU,E};Object.defineProperty(jU,"__esModule",{value:!0});jU.URL=jU.DNS=void 0;jU.default=lR;var gR=Pf(),sR=nR(W1()),SU="6ba7b810-9dad-11d1-80b4-00c04fd430c8";jU.DNS=SU;var bU="6ba7b811-9dad-11d1-80b4-00c04fd430c8";jU.URL=bU});var uU=Y((hU)=>{var tR=function(f){return f&&f.__esModule?f:{default:f}},eR=function(f){if(Array.isArray(f))f=Buffer.from(f);else if(typeof f==="string")f=Buffer.from(f,"utf8");return iR.default.createHash("md5").update(f).digest()};Object.defineProperty(hU,"__esModule",{value:!0});hU.default=void 0;var iR=tR(import.meta.require("crypto")),aR=eR;hU.default=aR});var vU=Y((_U)=>{var DU=function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(_U,"__esModule",{value:!0});_U.default=void 0;var fL=DU(I1()),wL=DU(uU()),UL=fL.default("v3",48,wL.default),$L=UL;_U.default=$L});var dU=Y((xU)=>{var GL=function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(xU,"__esModule",{value:!0});xU.default=void 0;var EL=GL(import.meta.require("crypto")),WL={randomUUID:EL.default.randomUUID};xU.default=WL});var lU=Y((nU)=>{var sU=function(f){return f&&f.__esModule?f:{default:f}},LL=function(f,w,U){if(gU.default.randomUUID&&!w&&!f)return gU.default.randomUUID();f=f||{};const E=f.random||(f.rng||IL.default)();if(E[6]=E[6]&15|64,E[8]=E[8]&63|128,w){U=U||0;for(let $=0;$<16;++$)w[U+$]=E[$];return w}return RL.unsafeStringify(E)};Object.defineProperty(nU,"__esModule",{value:!0});nU.default=void 0;var gU=sU(dU()),IL=sU(U1()),RL=Pf(),ML=LL;nU.default=ML});var iU=Y((mU)=>{var FL=function(f){return f&&f.__esModule?f:{default:f}},XL=function(f){if(Array.isArray(f))f=Buffer.from(f);else if(typeof f==="string")f=Buffer.from(f,"utf8");return AL.default.createHash("sha1").update(f).digest()};Object.defineProperty(mU,"__esModule",{value:!0});mU.default=void 0;var AL=FL(import.meta.require("crypto")),OL=XL;mU.default=OL});var f$=Y((eU)=>{var tU=function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(eU,"__esModule",{value:!0});eU.default=void 0;var ZL=tU(I1()),YL=tU(iU()),zL=ZL.default("v5",80,YL.default),QL=zL;eU.default=QL});var $$=Y((w$)=>{Object.defineProperty(w$,"__esModule",{value:!0});w$.default=void 0;var JL="00000000-0000-0000-0000-000000000000";w$.default=JL});var W$=Y((E$)=>{var BL=function(f){return f&&f.__esModule?f:{default:f}},KL=function(f){if(!TL.default(f))throw TypeError("Invalid UUID");return parseInt(f.slice(14,15),16)};Object.defineProperty(E$,"__esModule",{value:!0});E$.default=void 0;var TL=BL(Nf()),HL=KL;E$.default=HL});var R1=Y((_)=>{var s=function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(_,"__esModule",{value:!0});Object.defineProperty(_,"NIL",{enumerable:!0,get:function(){return PL.default}});Object.defineProperty(_,"parse",{enumerable:!0,get:function(){return cL.default}});Object.defineProperty(_,"stringify",{enumerable:!0,get:function(){return jL.default}});Object.defineProperty(_,"v1",{enumerable:!0,get:function(){return qL.default}});Object.defineProperty(_,"v3",{enumerable:!0,get:function(){return VL.default}});Object.defineProperty(_,"v4",{enumerable:!0,get:function(){return CL.default}});Object.defineProperty(_,"v5",{enumerable:!0,get:function(){return NL.default}});Object.defineProperty(_,"validate",{enumerable:!0,get:function(){return bL.default}});Object.defineProperty(_,"version",{enumerable:!0,get:function(){return SL.default}});var qL=s(CU()),VL=s(vU()),CL=s(lU()),NL=s(f$()),PL=s($$()),SL=s(W$()),bL=s(Nf()),jL=s(Pf()),cL=s(W1())});var ff=Y((vX,M$)=>{var{defineProperty:$0,getOwnPropertyDescriptor:hL,getOwnPropertyNames:kL}=Object,uL=Object.prototype.hasOwnProperty,Lf=(f,w)=>$0(f,"name",{value:w,configurable:!0}),DL=(f,w)=>{for(var U in w)$0(f,U,{get:w[U],enumerable:!0})},_L=(f,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let $ of kL(w))if(!uL.call(f,$)&&$!==U)$0(f,$,{get:()=>w[$],enumerable:!(E=hL(w,$))||E.enumerable})}return f},yL=(f)=>_L($0({},"__esModule",{value:!0}),f),I$={};DL(I$,{isClockSkewCorrectedError:()=>R$,isClockSkewError:()=>nL,isRetryableByTrait:()=>sL,isServerError:()=>lL,isThrottlingError:()=>rL,isTransientError:()=>L$});M$.exports=yL(I$);var vL=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],xL=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],pL=["TimeoutError","RequestTimeout","RequestTimeoutException"],dL=[500,502,503,504],gL=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],sL=Lf((f)=>f.$retryable!==void 0,"isRetryableByTrait"),nL=Lf((f)=>vL.includes(f.name),"isClockSkewError"),R$=Lf((f)=>{var w;return(w=f.$metadata)==null?void 0:w.clockSkewCorrected},"isClockSkewCorrectedError"),rL=Lf((f)=>{var w,U;return((w=f.$metadata)==null?void 0:w.httpStatusCode)===429||xL.includes(f.name)||((U=f.$retryable)==null?void 0:U.throttling)==!0},"isThrottlingError"),L$=Lf((f)=>{var w;return R$(f)||pL.includes(f.name)||gL.includes((f==null?void 0:f.code)||"")||dL.includes(((w=f.$metadata)==null?void 0:w.httpStatusCode)||0)},"isTransientError"),lL=Lf((f)=>{var w;if(((w=f.$metadata)==null?void 0:w.httpStatusCode)!==void 0){const U=f.$metadata.httpStatusCode;if(500<=U&&U<=599&&!L$(f))return!0;return!1}return!1},"isServerError")});var q$=Y((xX,H$)=>{var{defineProperty:E0,getOwnPropertyDescriptor:mL,getOwnPropertyNames:oL}=Object,iL=Object.prototype.hasOwnProperty,y=(f,w)=>E0(f,"name",{value:w,configurable:!0}),tL=(f,w)=>{for(var U in w)E0(f,U,{get:w[U],enumerable:!0})},eL=(f,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let $ of oL(w))if(!iL.call(f,$)&&$!==U)E0(f,$,{get:()=>w[$],enumerable:!(E=mL(w,$))||E.enumerable})}return f},aL=(f)=>eL(E0({},"__esModule",{value:!0}),f),F$={};tL(F$,{AdaptiveRetryStrategy:()=>G2,ConfiguredRetryStrategy:()=>W2,DEFAULT_MAX_ATTEMPTS:()=>L1,DEFAULT_RETRY_DELAY_BASE:()=>Sf,DEFAULT_RETRY_MODE:()=>f2,DefaultRateLimiter:()=>Z$,INITIAL_RETRY_TOKENS:()=>M1,INVOCATION_ID_HEADER:()=>U2,MAXIMUM_RETRY_DELAY:()=>A1,NO_RETRY_INCREMENT:()=>J$,REQUEST_HEADER:()=>$2,RETRY_COST:()=>z$,RETRY_MODES:()=>X$,StandardRetryStrategy:()=>F1,THROTTLING_RETRY_DELAY_BASE:()=>Y$,TIMEOUT_RETRY_COST:()=>Q$});H$.exports=aL(F$);var X$=((f)=>{return f.STANDARD="standard",f.ADAPTIVE="adaptive",f})(X$||{}),L1=3,f2="standard",w2=ff(),O$=class f{constructor(w){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(w==null?void 0:w.beta)??0.7,this.minCapacity=(w==null?void 0:w.minCapacity)??1,this.minFillRate=(w==null?void 0:w.minFillRate)??0.5,this.scaleConstant=(w==null?void 0:w.scaleConstant)??0.4,this.smooth=(w==null?void 0:w.smooth)??0.8;const U=this.getCurrentTimeInSeconds();this.lastThrottleTime=U,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(w){if(!this.enabled)return;if(this.refillTokenBucket(),w>this.currentCapacity){const U=(w-this.currentCapacity)/this.fillRate*1000;await new Promise((E)=>setTimeout(E,U))}this.currentCapacity=this.currentCapacity-w}refillTokenBucket(){const w=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=w;return}const U=(w-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+U),this.lastTimestamp=w}updateClientSendingRate(w){let U;if(this.updateMeasuredRate(),w2.isThrottlingError(w)){const $=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=$,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),U=this.cubicThrottle($),this.enableTokenBucket()}else this.calculateTimeWindow(),U=this.cubicSuccess(this.getCurrentTimeInSeconds());const E=Math.min(U,2*this.measuredTxRate);this.updateTokenBucketRate(E)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(w){return this.getPrecise(w*this.beta)}cubicSuccess(w){return this.getPrecise(this.scaleConstant*Math.pow(w-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(w){this.refillTokenBucket(),this.fillRate=Math.max(w,this.minFillRate),this.maxCapacity=Math.max(w,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const w=this.getCurrentTimeInSeconds(),U=Math.floor(w*2)/2;if(this.requestCount++,U>this.lastTxRateBucket){const E=this.requestCount/(U-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(E*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=U}}getPrecise(w){return parseFloat(w.toFixed(8))}};y(O$,"DefaultRateLimiter");var Z$=O$,Sf=100,A1=20000,Y$=500,M1=500,z$=5,Q$=10,J$=1,U2="amz-sdk-invocation-id",$2="amz-sdk-request",E2=y(()=>{let f=Sf;return{computeNextBackoffDelay:y((E)=>{return Math.floor(Math.min(A1,Math.random()*2**E*f))},"computeNextBackoffDelay"),setDelayBase:y((E)=>{f=E},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),A$=y(({retryDelay:f,retryCount:w,retryCost:U})=>{return{getRetryCount:y(()=>w,"getRetryCount"),getRetryDelay:y(()=>Math.min(A1,f),"getRetryDelay"),getRetryCost:y(()=>U,"getRetryCost")}},"createDefaultRetryToken"),T$=class f{constructor(w){this.maxAttempts=w,this.mode="standard",this.capacity=M1,this.retryBackoffStrategy=E2(),this.maxAttemptsProvider=typeof w==="function"?w:async()=>w}async acquireInitialRetryToken(w){return A$({retryDelay:Sf,retryCount:0})}async refreshRetryTokenForRetry(w,U){const E=await this.getMaxAttempts();if(this.shouldRetry(w,U,E)){const $=U.errorType;this.retryBackoffStrategy.setDelayBase($==="THROTTLING"?Y$:Sf);const G=this.retryBackoffStrategy.computeNextBackoffDelay(w.getRetryCount()),W=U.retryAfterHint?Math.max(U.retryAfterHint.getTime()-Date.now()||0,G):G,I=this.getCapacityCost($);return this.capacity-=I,A$({retryDelay:W,retryCount:w.getRetryCount()+1,retryCost:I})}throw new Error("No retry token available")}recordSuccess(w){this.capacity=Math.max(M1,this.capacity+(w.getRetryCost()??J$))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(w){return console.warn(`Max attempts provider could not resolve. Using default of ${L1}`),L1}}shouldRetry(w,U,E){return w.getRetryCount()+1<E&&this.capacity>=this.getCapacityCost(U.errorType)&&this.isRetryableError(U.errorType)}getCapacityCost(w){return w==="TRANSIENT"?Q$:z$}isRetryableError(w){return w==="THROTTLING"||w==="TRANSIENT"}};y(T$,"StandardRetryStrategy");var F1=T$,B$=class f{constructor(w,U){this.maxAttemptsProvider=w,this.mode="adaptive";const{rateLimiter:E}=U??{};this.rateLimiter=E??new Z$,this.standardRetryStrategy=new F1(w)}async acquireInitialRetryToken(w){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(w)}async refreshRetryTokenForRetry(w,U){return this.rateLimiter.updateClientSendingRate(U),this.standardRetryStrategy.refreshRetryTokenForRetry(w,U)}recordSuccess(w){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(w)}};y(B$,"AdaptiveRetryStrategy");var G2=B$,K$=class f extends F1{constructor(w,U=Sf){super(typeof w==="function"?w:async()=>w);if(typeof U==="number")this.computeNextBackoffDelay=()=>U;else this.computeNextBackoffDelay=U}async refreshRetryTokenForRetry(w,U){const E=await super.refreshRetryTokenForRetry(w,U);return E.getRetryDelay=()=>this.computeNextBackoffDelay(E.getRetryCount()),E}};y(K$,"ConfiguredRetryStrategy");var W2=K$});var Xf=Y((pX,l$)=>{var y$=function(f){const w=f.getUTCFullYear(),U=f.getUTCMonth(),E=f.getUTCDay(),$=f.getUTCDate(),G=f.getUTCHours(),W=f.getUTCMinutes(),I=f.getUTCSeconds(),R=$<10?`0${$}`:`${$}`,L=G<10?`0${G}`:`${G}`,M=W<10?`0${W}`:`${W}`,A=I<10?`0${I}`:`${I}`;return`${D2[E]}, ${R} ${H1[U]} ${w} ${L}:${M}:${A} GMT`},I0=function(f){return encodeURIComponent(f).replace(/[!'()*]/g,function(w){return"%"+w.charCodeAt(0).toString(16).toUpperCase()})},q1=function(f,w,U){let E,$,G;if(typeof w==="undefined"&&typeof U==="undefined")E={},G=f;else if(E=f,typeof w==="function")return $=w,G=U,ZM(E,$,G);else G=w;for(let W of Object.keys(G)){if(!Array.isArray(G[W])){E[W]=G[W];continue}n$(E,null,G,W)}return E},r$=function(f,w,U){if(U<=0||!Number.isInteger(U))throw new Error("Invalid number of delimiters ("+U+") for splitEvery.");const E=f.split(w);if(U===1)return E;const $=[];let G="";for(let W=0;W<E.length;W++){if(G==="")G=E[W];else G+=w+E[W];if((W+1)%U===0)$.push(G),G=""}if(G!=="")$.push(G);return $},R0=Object.defineProperty,L2=Object.getOwnPropertyDescriptor,M2=Object.getOwnPropertyNames,A2=Object.prototype.hasOwnProperty,O=(f,w)=>R0(f,"name",{value:w,configurable:!0}),F2=(f,w)=>{for(var U in w)R0(f,U,{get:w[U],enumerable:!0})},X2=(f,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let $ of M2(w))if(!A2.call(f,$)&&$!==U)R0(f,$,{get:()=>w[$],enumerable:!(E=L2(w,$))||E.enumerable})}return f},O2=(f)=>X2(R0({},"__esModule",{value:!0}),f),C$={};F2(C$,{Client:()=>Y2,Command:()=>j$,LazyJsonString:()=>FM,NoOpLogger:()=>Z2,SENSITIVE_STRING:()=>J2,ServiceException:()=>fM,StringWrapper:()=>kf,_json:()=>J1,collectBody:()=>z2,convertMap:()=>XM,createAggregatedClient:()=>T2,dateToUtcString:()=>y$,decorateServiceException:()=>x$,emitWarningIfUnsupportedVersion:()=>EM,expectBoolean:()=>K2,expectByte:()=>Q1,expectFloat32:()=>G0,expectInt:()=>q2,expectInt32:()=>Y1,expectLong:()=>cf,expectNonNull:()=>C2,expectNumber:()=>jf,expectObject:()=>h$,expectShort:()=>z1,expectString:()=>N2,expectUnion:()=>P2,extendedEncodeURIComponent:()=>I0,getArrayIfSingleItem:()=>AM,getDefaultClientConfiguration:()=>LM,getDefaultExtensionConfiguration:()=>d$,getValueFromTextNode:()=>g$,handleFloat:()=>j2,limitedParseDouble:()=>K1,limitedParseFloat:()=>c2,limitedParseFloat32:()=>h2,loadConfigsForDefaultMode:()=>$M,logger:()=>hf,map:()=>q1,parseBoolean:()=>B2,parseEpochTimestamp:()=>n2,parseRfc3339DateTime:()=>y2,parseRfc3339DateTimeWithOffset:()=>x2,parseRfc7231DateTime:()=>s2,resolveDefaultRuntimeConfig:()=>MM,resolvedPath:()=>QM,serializeDateTime:()=>TM,serializeFloat:()=>JM,splitEvery:()=>r$,strictParseByte:()=>_$,strictParseDouble:()=>B1,strictParseFloat:()=>S2,strictParseFloat32:()=>k$,strictParseInt:()=>k2,strictParseInt32:()=>u2,strictParseLong:()=>D$,strictParseShort:()=>Mf,take:()=>OM,throwDefaultError:()=>p$,withBaseException:()=>wM});l$.exports=O2(C$);var N$=class f{trace(){}debug(){}info(){}warn(){}error(){}};O(N$,"NoOpLogger");var Z2=N$,P$=I2(),S$=class f{constructor(w){this.middlewareStack=P$.constructStack(),this.config=w}send(w,U,E){const $=typeof U!=="function"?U:void 0,G=typeof U==="function"?U:E,W=w.resolveMiddleware(this.middlewareStack,this.config,$);if(G)W(w).then((I)=>G(null,I.output),(I)=>G(I)).catch(()=>{});else return W(w).then((I)=>I.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}};O(S$,"Client");var Y2=S$,X1=R2(),z2=O(async(f=new Uint8Array,w)=>{if(f instanceof Uint8Array)return X1.Uint8ArrayBlobAdapter.mutate(f);if(!f)return X1.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const U=w.streamCollector(f);return X1.Uint8ArrayBlobAdapter.mutate(await U)},"collectBody"),Z1=Hf(),b$=class f{constructor(){this.middlewareStack=P$.constructStack()}static classBuilder(){return new Q2}resolveMiddlewareWithContext(w,U,E,{middlewareFn:$,clientName:G,commandName:W,inputFilterSensitiveLog:I,outputFilterSensitiveLog:R,smithyContext:L,additionalContext:M,CommandCtor:A}){for(let J of $.bind(this)(A,w,U,E))this.middlewareStack.use(J);const X=w.concat(this.middlewareStack),{logger:F}=U,Z={logger:F,clientName:G,commandName:W,inputFilterSensitiveLog:I,outputFilterSensitiveLog:R,[Z1.SMITHY_CONTEXT_KEY]:{commandInstance:this,...L},...M},{requestHandler:z}=U;return X.resolve((J)=>z.handle(J.request,E||{}),Z)}};O(b$,"Command");var j$=b$,c$=class f{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(w)=>w,this._outputFilterSensitiveLog=(w)=>w,this._serializer=null,this._deserializer=null}init(w){this._init=w}ep(w){return this._ep=w,this}m(w){return this._middlewareFn=w,this}s(w,U,E={}){return this._smithyContext={service:w,operation:U,...E},this}c(w={}){return this._additionalContext=w,this}n(w,U){return this._clientName=w,this._commandName=U,this}f(w=(E)=>E,U=(E)=>E){return this._inputFilterSensitiveLog=w,this._outputFilterSensitiveLog=U,this}ser(w){return this._serializer=w,this}de(w){return this._deserializer=w,this}build(){var w;const U=this;let E;return E=(w=class extends j${constructor(...[$]){super();this.serialize=U._serializer,this.deserialize=U._deserializer,this.input=$??{},U._init(this)}static getEndpointParameterInstructions(){return U._ep}resolveMiddleware($,G,W){return this.resolveMiddlewareWithContext($,G,W,{CommandCtor:E,middlewareFn:U._middlewareFn,clientName:U._clientName,commandName:U._commandName,inputFilterSensitiveLog:U._inputFilterSensitiveLog,outputFilterSensitiveLog:U._outputFilterSensitiveLog,smithyContext:U._smithyContext,additionalContext:U._additionalContext})}},O(w,"CommandRef"),w)}};O(c$,"ClassBuilder");var Q2=c$,J2="***SensitiveInformation***",T2=O((f,w)=>{for(let U of Object.keys(f)){const E=f[U],$=O(async function(W,I,R){const L=new E(W);if(typeof I==="function")this.send(L,I);else if(typeof R==="function"){if(typeof I!=="object")throw new Error(`Expected http options but got ${typeof I}`);this.send(L,I||{},R)}else return this.send(L,I)},"methodImpl"),G=(U[0].toLowerCase()+U.slice(1)).replace(/Command$/,"");w.prototype[G]=$}},"createAggregatedClient"),B2=O((f)=>{switch(f){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${f}"`)}},"parseBoolean"),K2=O((f)=>{if(f===null||f===void 0)return;if(typeof f==="number"){if(f===0||f===1)hf.warn(W0(`Expected boolean, got ${typeof f}: ${f}`));if(f===0)return!1;if(f===1)return!0}if(typeof f==="string"){const w=f.toLowerCase();if(w==="false"||w==="true")hf.warn(W0(`Expected boolean, got ${typeof f}: ${f}`));if(w==="false")return!1;if(w==="true")return!0}if(typeof f==="boolean")return f;throw new TypeError(`Expected boolean, got ${typeof f}: ${f}`)},"expectBoolean"),jf=O((f)=>{if(f===null||f===void 0)return;if(typeof f==="string"){const w=parseFloat(f);if(!Number.isNaN(w)){if(String(w)!==String(f))hf.warn(W0(`Expected number but observed string: ${f}`));return w}}if(typeof f==="number")return f;throw new TypeError(`Expected number, got ${typeof f}: ${f}`)},"expectNumber"),H2=Math.ceil(340282346638528860000000000000000000000),G0=O((f)=>{const w=jf(f);if(w!==void 0&&!Number.isNaN(w)&&w!==Infinity&&w!==(-Infinity)){if(Math.abs(w)>H2)throw new TypeError(`Expected 32-bit float, got ${f}`)}return w},"expectFloat32"),cf=O((f)=>{if(f===null||f===void 0)return;if(Number.isInteger(f)&&!Number.isNaN(f))return f;throw new TypeError(`Expected integer, got ${typeof f}: ${f}`)},"expectLong"),q2=cf,Y1=O((f)=>T1(f,32),"expectInt32"),z1=O((f)=>T1(f,16),"expectShort"),Q1=O((f)=>T1(f,8),"expectByte"),T1=O((f,w)=>{const U=cf(f);if(U!==void 0&&V2(U,w)!==U)throw new TypeError(`Expected ${w}-bit integer, got ${f}`);return U},"expectSizedInt"),V2=O((f,w)=>{switch(w){case 32:return Int32Array.of(f)[0];case 16:return Int16Array.of(f)[0];case 8:return Int8Array.of(f)[0]}},"castInt"),C2=O((f,w)=>{if(f===null||f===void 0){if(w)throw new TypeError(`Expected a non-null value for ${w}`);throw new TypeError("Expected a non-null value")}return f},"expectNonNull"),h$=O((f)=>{if(f===null||f===void 0)return;if(typeof f==="object"&&!Array.isArray(f))return f;const w=Array.isArray(f)?"array":typeof f;throw new TypeError(`Expected object, got ${w}: ${f}`)},"expectObject"),N2=O((f)=>{if(f===null||f===void 0)return;if(typeof f==="string")return f;if(["boolean","number","bigint"].includes(typeof f))return hf.warn(W0(`Expected string, got ${typeof f}: ${f}`)),String(f);throw new TypeError(`Expected string, got ${typeof f}: ${f}`)},"expectString"),P2=O((f)=>{if(f===null||f===void 0)return;const w=h$(f),U=Object.entries(w).filter(([,E])=>E!=null).map(([E])=>E);if(U.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(U.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${U} were not null.`);return w},"expectUnion"),B1=O((f)=>{if(typeof f=="string")return jf(Ff(f));return jf(f)},"strictParseDouble"),S2=B1,k$=O((f)=>{if(typeof f=="string")return G0(Ff(f));return G0(f)},"strictParseFloat32"),b2=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Ff=O((f)=>{const w=f.match(b2);if(w===null||w[0].length!==f.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(f)},"parseNumber"),K1=O((f)=>{if(typeof f=="string")return u$(f);return jf(f)},"limitedParseDouble"),j2=K1,c2=K1,h2=O((f)=>{if(typeof f=="string")return u$(f);return G0(f)},"limitedParseFloat32"),u$=O((f)=>{switch(f){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return (-Infinity);default:throw new Error(`Unable to parse float value: ${f}`)}},"parseFloatString"),D$=O((f)=>{if(typeof f==="string")return cf(Ff(f));return cf(f)},"strictParseLong"),k2=D$,u2=O((f)=>{if(typeof f==="string")return Y1(Ff(f));return Y1(f)},"strictParseInt32"),Mf=O((f)=>{if(typeof f==="string")return z1(Ff(f));return z1(f)},"strictParseShort"),_$=O((f)=>{if(typeof f==="string")return Q1(Ff(f));return Q1(f)},"strictParseByte"),W0=O((f)=>{return String(new TypeError(f).stack||f).split("\n").slice(0,5).filter((w)=>!w.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),hf={warn:console.warn},D2=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],H1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];O(y$,"dateToUtcString");var _2=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),y2=O((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const w=_2.exec(f);if(!w)throw new TypeError("Invalid RFC-3339 date-time value");const[U,E,$,G,W,I,R,L]=w,M=Mf(Af(E)),A=p($,"month",1,12),X=p(G,"day",1,31);return bf(M,A,X,{hours:W,minutes:I,seconds:R,fractionalMilliseconds:L})},"parseRfc3339DateTime"),v2=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),x2=O((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const w=v2.exec(f);if(!w)throw new TypeError("Invalid RFC-3339 date-time value");const[U,E,$,G,W,I,R,L,M]=w,A=Mf(Af(E)),X=p($,"month",1,12),F=p(G,"day",1,31),Z=bf(A,X,F,{hours:W,minutes:I,seconds:R,fractionalMilliseconds:L});if(M.toUpperCase()!="Z")Z.setTime(Z.getTime()-a2(M));return Z},"parseRfc3339DateTimeWithOffset"),p2=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),d2=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),g2=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),s2=O((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let w=p2.exec(f);if(w){const[U,E,$,G,W,I,R,L]=w;return bf(Mf(Af(G)),O1($),p(E,"day",1,31),{hours:W,minutes:I,seconds:R,fractionalMilliseconds:L})}if(w=d2.exec(f),w){const[U,E,$,G,W,I,R,L]=w;return m2(bf(r2(G),O1($),p(E,"day",1,31),{hours:W,minutes:I,seconds:R,fractionalMilliseconds:L}))}if(w=g2.exec(f),w){const[U,E,$,G,W,I,R,L]=w;return bf(Mf(Af(L)),O1(E),p($.trimLeft(),"day",1,31),{hours:G,minutes:W,seconds:I,fractionalMilliseconds:R})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),n2=O((f)=>{if(f===null||f===void 0)return;let w;if(typeof f==="number")w=f;else if(typeof f==="string")w=B1(f);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(w)||w===Infinity||w===(-Infinity))throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(w*1000))},"parseEpochTimestamp"),bf=O((f,w,U,E)=>{const $=w-1;return i2(f,$,U),new Date(Date.UTC(f,$,U,p(E.hours,"hour",0,23),p(E.minutes,"minute",0,59),p(E.seconds,"seconds",0,60),e2(E.fractionalMilliseconds)))},"buildDate"),r2=O((f)=>{const w=(new Date()).getUTCFullYear(),U=Math.floor(w/100)*100+Mf(Af(f));if(U<w)return U+100;return U},"parseTwoDigitYear"),l2=1576800000000,m2=O((f)=>{if(f.getTime()-(new Date()).getTime()>l2)return new Date(Date.UTC(f.getUTCFullYear()-100,f.getUTCMonth(),f.getUTCDate(),f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()));return f},"adjustRfc850Year"),O1=O((f)=>{const w=H1.indexOf(f);if(w<0)throw new TypeError(`Invalid month: ${f}`);return w+1},"parseMonthByShortName"),o2=[31,28,31,30,31,30,31,31,30,31,30,31],i2=O((f,w,U)=>{let E=o2[w];if(w===1&&t2(f))E=29;if(U>E)throw new TypeError(`Invalid day for ${H1[w]} in ${f}: ${U}`)},"validateDayOfMonth"),t2=O((f)=>{return f%4===0&&(f%100!==0||f%400===0)},"isLeapYear"),p=O((f,w,U,E)=>{const $=_$(Af(f));if($<U||$>E)throw new TypeError(`${w} must be between ${U} and ${E}, inclusive`);return $},"parseDateValue"),e2=O((f)=>{if(f===null||f===void 0)return 0;return k$("0."+f)*1000},"parseMilliseconds"),a2=O((f)=>{const w=f[0];let U=1;if(w=="+")U=1;else if(w=="-")U=-1;else throw new TypeError(`Offset direction, ${w}, must be "+" or "-"`);const E=Number(f.substring(1,3)),$=Number(f.substring(4,6));return U*(E*60+$)*60*1000},"parseOffsetToMilliseconds"),Af=O((f)=>{let w=0;while(w<f.length-1&&f.charAt(w)==="0")w++;if(w===0)return f;return f.slice(w)},"stripLeadingZeroes"),v$=class f extends Error{constructor(w){super(w.message);Object.setPrototypeOf(this,f.prototype),this.name=w.name,this.$fault=w.$fault,this.$metadata=w.$metadata}};O(v$,"ServiceException");var fM=v$,x$=O((f,w={})=>{Object.entries(w).filter(([,E])=>E!==void 0).forEach(([E,$])=>{if(f[E]==null||f[E]==="")f[E]=$});const U=f.message||f.Message||"UnknownError";return f.message=U,delete f.Message,f},"decorateServiceException"),p$=O(({output:f,parsedBody:w,exceptionCtor:U,errorCode:E})=>{const $=UM(f),G=$.httpStatusCode?$.httpStatusCode+"":void 0,W=new U({name:(w==null?void 0:w.code)||(w==null?void 0:w.Code)||E||G||"UnknownError",$fault:"client",$metadata:$});throw x$(W,w)},"throwDefaultError"),wM=O((f)=>{return({output:w,parsedBody:U,errorCode:E})=>{p$({output:w,parsedBody:U,exceptionCtor:f,errorCode:E})}},"withBaseException"),UM=O((f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]}),"deserializeMetadata"),$M=O((f)=>{switch(f){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},"loadConfigsForDefaultMode"),V$=!1,EM=O((f)=>{if(f&&!V$&&parseInt(f.substring(1,f.indexOf(".")))<16)V$=!0},"emitWarningIfUnsupportedVersion"),GM=O((f)=>{const w=[];for(let U in Z1.AlgorithmId){const E=Z1.AlgorithmId[U];if(f[E]===void 0)continue;w.push({algorithmId:()=>E,checksumConstructor:()=>f[E]})}return{_checksumAlgorithms:w,addChecksumAlgorithm(U){this._checksumAlgorithms.push(U)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),WM=O((f)=>{const w={};return f.checksumAlgorithms().forEach((U)=>{w[U.algorithmId()]=U.checksumConstructor()}),w},"resolveChecksumRuntimeConfig"),IM=O((f)=>{let w=f.retryStrategy;return{setRetryStrategy(U){w=U},retryStrategy(){return w}}},"getRetryConfiguration"),RM=O((f)=>{const w={};return w.retryStrategy=f.retryStrategy(),w},"resolveRetryRuntimeConfig"),d$=O((f)=>{return{...GM(f),...IM(f)}},"getDefaultExtensionConfiguration"),LM=d$,MM=O((f)=>{return{...WM(f),...RM(f)}},"resolveDefaultRuntimeConfig");O(I0,"extendedEncodeURIComponent");var AM=O((f)=>Array.isArray(f)?f:[f],"getArrayIfSingleItem"),g$=O((f)=>{for(let U in f)if(f.hasOwnProperty(U)&&f[U]["#text"]!==void 0)f[U]=f[U]["#text"];else if(typeof f[U]==="object"&&f[U]!==null)f[U]=g$(f[U]);return f},"getValueFromTextNode"),kf=O(function(){const f=Object.getPrototypeOf(this).constructor,U=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(U,f.prototype),U},"StringWrapper");kf.prototype=Object.create(String.prototype,{constructor:{value:kf,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(kf,String);var s$=class f extends kf{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(w){if(w instanceof f)return w;else if(w instanceof String||typeof w==="string")return new f(w);return new f(JSON.stringify(w))}};O(s$,"LazyJsonString");var FM=s$;O(q1,"map");var XM=O((f)=>{const w={};for(let[U,E]of Object.entries(f||{}))w[U]=[,E];return w},"convertMap"),OM=O((f,w)=>{const U={};for(let E in w)n$(U,f,w,E);return U},"take"),ZM=O((f,w,U)=>{return q1(f,Object.entries(U).reduce((E,[$,G])=>{if(Array.isArray(G))E[$]=G;else if(typeof G==="function")E[$]=[w,G()];else E[$]=[w,G];return E},{}))},"mapWithFilter"),n$=O((f,w,U,E)=>{if(w!==null){let W=U[E];if(typeof W==="function")W=[,W];const[I=YM,R=zM,L=E]=W;if(typeof I==="function"&&I(w[L])||typeof I!=="function"&&!!I)f[E]=R(w[L]);return}let[$,G]=U[E];if(typeof G==="function"){let W;const I=$===void 0&&(W=G())!=null,R=typeof $==="function"&&!!$(void 0)||typeof $!=="function"&&!!$;if(I)f[E]=W;else if(R)f[E]=G()}else{const W=$===void 0&&G!=null,I=typeof $==="function"&&!!$(G)||typeof $!=="function"&&!!$;if(W||I)f[E]=G}},"applyInstruction"),YM=O((f)=>f!=null,"nonNullish"),zM=O((f)=>f,"pass"),QM=O((f,w,U,E,$,G)=>{if(w!=null&&w[U]!==void 0){const W=E();if(W.length<=0)throw new Error("Empty value provided for input HTTP label: "+U+".");f=f.replace($,G?W.split("/").map((I)=>I0(I)).join("/"):I0(W))}else throw new Error("No value provided for input HTTP label: "+U+".");return f},"resolvedPath"),JM=O((f)=>{if(f!==f)return"NaN";switch(f){case Infinity:return"Infinity";case (-Infinity):return"-Infinity";default:return f}},"serializeFloat"),TM=O((f)=>f.toISOString().replace(".000Z","Z"),"serializeDateTime"),J1=O((f)=>{if(f==null)return{};if(Array.isArray(f))return f.filter((w)=>w!=null).map(J1);if(typeof f==="object"){const w={};for(let U of Object.keys(f)){if(f[U]==null)continue;w[U]=J1(f[U])}return w}return f},"_json");O(r$,"splitEvery")});var i$=Y((m$)=>{Object.defineProperty(m$,"__esModule",{value:!0});m$.isStreamingPayload=void 0;var BM=import.meta.require("stream"),KM=(f)=>(f===null||f===void 0?void 0:f.body)instanceof BM.Readable||typeof ReadableStream!=="undefined"&&(f===null||f===void 0?void 0:f.body)instanceof ReadableStream;m$.isStreamingPayload=KM});var OE=Y((sX,XE)=>{var{defineProperty:L0,getOwnPropertyDescriptor:HM,getOwnPropertyNames:qM}=Object,VM=Object.prototype.hasOwnProperty,q=(f,w)=>L0(f,"name",{value:w,configurable:!0}),CM=(f,w)=>{for(var U in w)L0(f,U,{get:w[U],enumerable:!0})},NM=(f,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let $ of qM(w))if(!VM.call(f,$)&&$!==U)L0(f,$,{get:()=>w[$],enumerable:!(E=HM(w,$))||E.enumerable})}return f},PM=(f)=>NM(L0({},"__esModule",{value:!0}),f),e$={};CM(e$,{AdaptiveRetryStrategy:()=>jM,CONFIG_MAX_ATTEMPTS:()=>C1,CONFIG_RETRY_MODE:()=>IE,ENV_MAX_ATTEMPTS:()=>V1,ENV_RETRY_MODE:()=>WE,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>cM,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>kM,StandardRetryStrategy:()=>EE,defaultDelayDecider:()=>fE,defaultRetryDecider:()=>wE,getOmitRetryHeadersPlugin:()=>uM,getRetryAfterHint:()=>FE,getRetryPlugin:()=>pM,omitRetryHeadersMiddleware:()=>RE,omitRetryHeadersMiddlewareOptions:()=>LE,resolveRetryConfig:()=>hM,retryMiddleware:()=>ME,retryMiddlewareOptions:()=>AE});XE.exports=PM(e$);var Of=Zf(),a$=R1(),K=q$(),SM=q((f,w)=>{const U=f,E=(w==null?void 0:w.noRetryIncrement)??K.NO_RETRY_INCREMENT,$=(w==null?void 0:w.retryCost)??K.RETRY_COST,G=(w==null?void 0:w.timeoutRetryCost)??K.TIMEOUT_RETRY_COST;let W=f;const I=q((A)=>A.name==="TimeoutError"?G:$,"getCapacityAmount"),R=q((A)=>I(A)<=W,"hasRetryTokens");return Object.freeze({hasRetryTokens:R,retrieveRetryTokens:q((A)=>{if(!R(A))throw new Error("No retry token available");const X=I(A);return W-=X,X},"retrieveRetryTokens"),releaseRetryTokens:q((A)=>{W+=A??E,W=Math.min(W,U)},"releaseRetryTokens")})},"getDefaultRetryQuota"),fE=q((f,w)=>Math.floor(Math.min(K.MAXIMUM_RETRY_DELAY,Math.random()*2**w*f)),"defaultDelayDecider"),r=ff(),wE=q((f)=>{if(!f)return!1;return r.isRetryableByTrait(f)||r.isClockSkewError(f)||r.isThrottlingError(f)||r.isTransientError(f)},"defaultRetryDecider"),UE=q((f)=>{if(f instanceof Error)return f;if(f instanceof Object)return Object.assign(new Error,f);if(typeof f==="string")return new Error(f);return new Error(`AWS SDK error wrapper for ${f}`)},"asSdkError"),$E=class f{constructor(w,U){this.maxAttemptsProvider=w,this.mode=K.RETRY_MODES.STANDARD,this.retryDecider=(U==null?void 0:U.retryDecider)??wE,this.delayDecider=(U==null?void 0:U.delayDecider)??fE,this.retryQuota=(U==null?void 0:U.retryQuota)??SM(K.INITIAL_RETRY_TOKENS)}shouldRetry(w,U,E){return U<E&&this.retryDecider(w)&&this.retryQuota.hasRetryTokens(w)}async getMaxAttempts(){let w;try{w=await this.maxAttemptsProvider()}catch(U){w=K.DEFAULT_MAX_ATTEMPTS}return w}async retry(w,U,E){let $,G=0,W=0;const I=await this.getMaxAttempts(),{request:R}=U;if(Of.HttpRequest.isInstance(R))R.headers[K.INVOCATION_ID_HEADER]=a$.v4();while(!0)try{if(Of.HttpRequest.isInstance(R))R.headers[K.REQUEST_HEADER]=`attempt=${G+1}; max=${I}`;if(E==null?void 0:E.beforeRequest)await E.beforeRequest();const{response:L,output:M}=await w(U);if(E==null?void 0:E.afterRequest)E.afterRequest(L);return this.retryQuota.releaseRetryTokens($),M.$metadata.attempts=G+1,M.$metadata.totalRetryDelay=W,{response:L,output:M}}catch(L){const M=UE(L);if(G++,this.shouldRetry(M,G,I)){$=this.retryQuota.retrieveRetryTokens(M);const A=this.delayDecider(r.isThrottlingError(M)?K.THROTTLING_RETRY_DELAY_BASE:K.DEFAULT_RETRY_DELAY_BASE,G),X=bM(M.$response),F=Math.max(X||0,A);W+=F,await new Promise((Z)=>setTimeout(Z,F));continue}if(!M.$metadata)M.$metadata={};throw M.$metadata.attempts=G,M.$metadata.totalRetryDelay=W,M}}};q($E,"StandardRetryStrategy");var EE=$E,bM=q((f)=>{if(!Of.HttpResponse.isInstance(f))return;const w=Object.keys(f.headers).find((G)=>G.toLowerCase()==="retry-after");if(!w)return;const U=f.headers[w],E=Number(U);if(!Number.isNaN(E))return E*1000;return new Date(U).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),GE=class f extends EE{constructor(w,U){const{rateLimiter:E,...$}=U??{};super(w,$);this.rateLimiter=E??new K.DefaultRateLimiter,this.mode=K.RETRY_MODES.ADAPTIVE}async retry(w,U){return super.retry(w,U,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(E)=>{this.rateLimiter.updateClientSendingRate(E)}})}};q(GE,"AdaptiveRetryStrategy");var jM=GE,t$=x(),V1="AWS_MAX_ATTEMPTS",C1="max_attempts",cM={environmentVariableSelector:(f)=>{const w=f[V1];if(!w)return;const U=parseInt(w);if(Number.isNaN(U))throw new Error(`Environment variable ${V1} mast be a number, got "${w}"`);return U},configFileSelector:(f)=>{const w=f[C1];if(!w)return;const U=parseInt(w);if(Number.isNaN(U))throw new Error(`Shared config file entry ${C1} mast be a number, got "${w}"`);return U},default:K.DEFAULT_MAX_ATTEMPTS},hM=q((f)=>{const{retryStrategy:w}=f,U=t$.normalizeProvider(f.maxAttempts??K.DEFAULT_MAX_ATTEMPTS);return{...f,maxAttempts:U,retryStrategy:async()=>{if(w)return w;if(await t$.normalizeProvider(f.retryMode)()===K.RETRY_MODES.ADAPTIVE)return new K.AdaptiveRetryStrategy(U);return new K.StandardRetryStrategy(U)}}},"resolveRetryConfig"),WE="AWS_RETRY_MODE",IE="retry_mode",kM={environmentVariableSelector:(f)=>f[WE],configFileSelector:(f)=>f[IE],default:K.DEFAULT_RETRY_MODE},RE=q(()=>(f)=>async(w)=>{const{request:U}=w;if(Of.HttpRequest.isInstance(U))delete U.headers[K.INVOCATION_ID_HEADER],delete U.headers[K.REQUEST_HEADER];return f(w)},"omitRetryHeadersMiddleware"),LE={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},uM=q((f)=>({applyToStack:(w)=>{w.addRelativeTo(RE(),LE)}}),"getOmitRetryHeadersPlugin"),DM=Xf(),_M=i$(),ME=q((f)=>(w,U)=>async(E)=>{var $;let G=await f.retryStrategy();const W=await f.maxAttempts();if(yM(G)){G=G;let I=await G.acquireInitialRetryToken(U.partition_id),R=new Error,L=0,M=0;const{request:A}=E,X=Of.HttpRequest.isInstance(A);if(X)A.headers[K.INVOCATION_ID_HEADER]=a$.v4();while(!0)try{if(X)A.headers[K.REQUEST_HEADER]=`attempt=${L+1}; max=${W}`;const{response:F,output:Z}=await w(E);return G.recordSuccess(I),Z.$metadata.attempts=L+1,Z.$metadata.totalRetryDelay=M,{response:F,output:Z}}catch(F){const Z=vM(F);if(R=UE(F),X&&_M.isStreamingPayload(A))throw($=U.logger instanceof DM.NoOpLogger?console:U.logger)==null||$.warn("An error was encountered in a non-retryable streaming request."),R;try{I=await G.refreshRetryTokenForRetry(I,Z)}catch(J){if(!R.$metadata)R.$metadata={};throw R.$metadata.attempts=L+1,R.$metadata.totalRetryDelay=M,R}L=I.getRetryCount();const z=I.getRetryDelay();M+=z,await new Promise((J)=>setTimeout(J,z))}}else{if(G=G,G==null?void 0:G.mode)U.userAgent=[...U.userAgent||[],["cfg/retry-mode",G.mode]];return G.retry(w,E)}},"retryMiddleware"),yM=q((f)=>typeof f.acquireInitialRetryToken!=="undefined"&&typeof f.refreshRetryTokenForRetry!=="undefined"&&typeof f.recordSuccess!=="undefined","isRetryStrategyV2"),vM=q((f)=>{const w={error:f,errorType:xM(f)},U=FE(f.$response);if(U)w.retryAfterHint=U;return w},"getRetryErrorInfo"),xM=q((f)=>{if(r.isThrottlingError(f))return"THROTTLING";if(r.isTransientError(f))return"TRANSIENT";if(r.isServerError(f))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),AE={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},pM=q((f)=>({applyToStack:(w)=>{w.add(ME(f),AE)}}),"getRetryPlugin"),FE=q((f)=>{if(!Of.HttpResponse.isInstance(f))return;const w=Object.keys(f.headers).find((G)=>G.toLowerCase()==="retry-after");if(!w)return;const U=f.headers[w],E=Number(U);if(!Number.isNaN(E))return new Date(E*1000);return new Date(U)},"getRetryAfterHint")});var P1=Y((nX,hE)=>{var zE=function(f){const w=new Map;for(let U of f)w.set(U.schemeId,U);return w},SE=function(f,w){return new jE(f,w)},cE=function(f,w,U,E,$){return B(async function*G(W,I,...R){let L=W.startingToken||void 0,M=!0,A;while(M){if(I[U]=L,$)I[$]=I[$]??W.pageSize;if(W.client instanceof f)A=await AA(w,W.client,I,...R);else throw new Error(`Invalid client, expected instance of ${f.name}`);yield A;const X=L;L=FA(A,E),M=!!(L&&(!W.stopOnSameToken||L!==X))}return},"paginateOperation")},A0=Object.defineProperty,dM=Object.getOwnPropertyDescriptor,gM=Object.getOwnPropertyNames,sM=Object.prototype.hasOwnProperty,B=(f,w)=>A0(f,"name",{value:w,configurable:!0}),nM=(f,w)=>{for(var U in w)A0(f,U,{get:w[U],enumerable:!0})},rM=(f,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let $ of gM(w))if(!sM.call(f,$)&&$!==U)A0(f,$,{get:()=>w[$],enumerable:!(E=dM(w,$))||E.enumerable})}return f},lM=(f)=>rM(A0({},"__esModule",{value:!0}),f),ZE={};nM(ZE,{DefaultIdentityProviderConfig:()=>UA,EXPIRATION_MS:()=>NE,HttpApiKeyAuthSigner:()=>$A,HttpBearerAuthSigner:()=>EA,NoAuthSigner:()=>GA,RequestBuilder:()=>jE,createIsIdentityExpiredFunction:()=>CE,createPaginator:()=>cE,doesIdentityRequireRefresh:()=>PE,getHttpAuthSchemeEndpointRuleSetPlugin:()=>oM,getHttpAuthSchemePlugin:()=>tM,getHttpSigningPlugin:()=>wA,getSmithyContext:()=>RA,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>QE,httpAuthSchemeMiddleware:()=>N1,httpAuthSchemeMiddlewareOptions:()=>JE,httpSigningMiddleware:()=>TE,httpSigningMiddlewareOptions:()=>BE,isIdentityExpired:()=>WA,memoizeIdentityProvider:()=>IA,normalizeProvider:()=>LA,requestBuilder:()=>SE});hE.exports=lM(ZE);var YE=x();B(zE,"convertHttpAuthSchemesToMap");var N1=B((f,w)=>(U,E)=>async($)=>{var G;const W=f.httpAuthSchemeProvider(await w.httpAuthSchemeParametersProvider(f,E,$.input)),I=zE(f.httpAuthSchemes),R=YE.getSmithyContext(E),L=[];for(let M of W){const A=I.get(M.schemeId);if(!A){L.push(`HttpAuthScheme \`${M.schemeId}\` was not enabled for this service.`);continue}const X=A.identityProvider(await w.identityProviderConfigProvider(f));if(!X){L.push(`HttpAuthScheme \`${M.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:F={},signingProperties:Z={}}=((G=M.propertiesExtractor)==null?void 0:G.call(M,f,E))||{};M.identityProperties=Object.assign(M.identityProperties||{},F),M.signingProperties=Object.assign(M.signingProperties||{},Z),R.selectedHttpAuthScheme={httpAuthOption:M,identity:await X(M.identityProperties),signer:A.signer};break}if(!R.selectedHttpAuthScheme)throw new Error(L.join("\n"));return U($)},"httpAuthSchemeMiddleware"),mM=XU(),QE={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:mM.endpointMiddlewareOptions.name},oM=B((f,{httpAuthSchemeParametersProvider:w,identityProviderConfigProvider:U})=>({applyToStack:(E)=>{E.addRelativeTo(N1(f,{httpAuthSchemeParametersProvider:w,identityProviderConfigProvider:U}),QE)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),iM=f1(),JE={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:iM.serializerMiddlewareOption.name},tM=B((f,{httpAuthSchemeParametersProvider:w,identityProviderConfigProvider:U})=>({applyToStack:(E)=>{E.addRelativeTo(N1(f,{httpAuthSchemeParametersProvider:w,identityProviderConfigProvider:U}),JE)}}),"getHttpAuthSchemePlugin"),F0=Zf(),eM=B((f)=>(w)=>{throw w},"defaultErrorHandler"),aM=B((f,w)=>{},"defaultSuccessHandler"),TE=B((f)=>(w,U)=>async(E)=>{if(!F0.HttpRequest.isInstance(E.request))return w(E);const G=YE.getSmithyContext(U).selectedHttpAuthScheme;if(!G)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:W={}},identity:I,signer:R}=G,L=await w({...E,request:await R.sign(E.request,I,W)}).catch((R.errorHandler||eM)(W));return(R.successHandler||aM)(L.response,W),L},"httpSigningMiddleware"),fA=OE(),BE={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:fA.retryMiddlewareOptions.name},wA=B((f)=>({applyToStack:(w)=>{w.addRelativeTo(TE(f),BE)}}),"getHttpSigningPlugin"),KE=class f{constructor(w){this.authSchemes=new Map;for(let[U,E]of Object.entries(w))if(E!==void 0)this.authSchemes.set(U,E)}getIdentityProvider(w){return this.authSchemes.get(w)}};B(KE,"DefaultIdentityProviderConfig");var UA=KE,M0=Hf(),HE=class f{async sign(w,U,E){if(!E)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!E.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!E.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!U.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");const $=F0.HttpRequest.clone(w);if(E.in===M0.HttpApiKeyAuthLocation.QUERY)$.query[E.name]=U.apiKey;else if(E.in===M0.HttpApiKeyAuthLocation.HEADER)$.headers[E.name]=E.scheme?`${E.scheme} ${U.apiKey}`:U.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+E.in+"`");return $}};B(HE,"HttpApiKeyAuthSigner");var $A=HE,qE=class f{async sign(w,U,E){const $=F0.HttpRequest.clone(w);if(!U.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return $.headers.Authorization=`Bearer ${U.token}`,$}};B(qE,"HttpBearerAuthSigner");var EA=qE,VE=class f{async sign(w,U,E){return w}};B(VE,"NoAuthSigner");var GA=VE,CE=B((f)=>(w)=>PE(w)&&w.expiration.getTime()-Date.now()<f,"createIsIdentityExpiredFunction"),NE=300000,WA=CE(NE),PE=B((f)=>f.expiration!==void 0,"doesIdentityRequireRefresh"),IA=B((f,w,U)=>{if(f===void 0)return;const E=typeof f!=="function"?async()=>Promise.resolve(f):f;let $,G,W,I=!1;const R=B(async(L)=>{if(!G)G=E(L);try{$=await G,W=!0,I=!1}finally{G=void 0}return $},"coalesceProvider");if(w===void 0)return async(L)=>{if(!W||(L==null?void 0:L.forceRefresh))$=await R(L);return $};return async(L)=>{if(!W||(L==null?void 0:L.forceRefresh))$=await R(L);if(I)return $;if(!U($))return I=!0,$;if(w($))return await R(L),$;return $}},"memoizeIdentityProvider"),RA=B((f)=>f[M0.SMITHY_CONTEXT_KEY]||(f[M0.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),LA=B((f)=>{if(typeof f==="function")return f;const w=Promise.resolve(f);return()=>w},"normalizeProvider"),MA=Xf();B(SE,"requestBuilder");var bE=class f{constructor(w,U){this.input=w,this.context=U,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:w,protocol:U="https",port:E,path:$}=await this.context.endpoint();this.path=$;for(let G of this.resolvePathStack)G(this.path);return new F0.HttpRequest({protocol:U,hostname:this.hostname||w,port:E,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(w){return this.hostname=w,this}bp(w){return this.resolvePathStack.push((U)=>{this.path=`${(U==null?void 0:U.endsWith("/"))?U.slice(0,-1):U||""}`+w}),this}p(w,U,E,$){return this.resolvePathStack.push((G)=>{this.path=MA.resolvedPath(G,this.input,w,U,E,$)}),this}h(w){return this.headers=w,this}q(w){return this.query=w,this}b(w){return this.body=w,this}m(w){return this.method=w,this}};B(bE,"RequestBuilder");var jE=bE,AA=B(async(f,w,U,...E)=>{return await w.send(new f(U),...E)},"makePagedClientRequest");B(cE,"createPaginator");var FA=B((f,w)=>{let U=f;const E=w.split(".");for(let $ of E){if(!U||typeof U!=="object")return;U=U[$]}return U},"get")});var iG=Y((e7,j0)=>{var HG,qG,VG,CG,NG,PG,SG,bG,jG,cG,hG,kG,uG,S0,o1,DG,_G,yG,Tf,vG,xG,pG,dG,gG,sG,nG,rG,lG,b0,mG,oG;(function(f){var w=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(E){f(U(w,U(E)))});else if(typeof j0==="object"&&typeof e7==="object")f(U(w,U(e7)));else f(U(w));function U(E,$){if(E!==w)if(typeof Object.create==="function")Object.defineProperty(E,"__esModule",{value:!0});else E.__esModule=!0;return function(G,W){return E[G]=$?$(G,W):W}}})(function(f){var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,G){$.__proto__=G}||function($,G){for(var W in G)if(Object.prototype.hasOwnProperty.call(G,W))$[W]=G[W]};HG=function($,G){if(typeof G!=="function"&&G!==null)throw new TypeError("Class extends value "+String(G)+" is not a constructor or null");w($,G);function W(){this.constructor=$}$.prototype=G===null?Object.create(G):(W.prototype=G.prototype,new W)},qG=Object.assign||function($){for(var G,W=1,I=arguments.length;W<I;W++){G=arguments[W];for(var R in G)if(Object.prototype.hasOwnProperty.call(G,R))$[R]=G[R]}return $},VG=function($,G){var W={};for(var I in $)if(Object.prototype.hasOwnProperty.call($,I)&&G.indexOf(I)<0)W[I]=$[I];if($!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var R=0,I=Object.getOwnPropertySymbols($);R<I.length;R++)if(G.indexOf(I[R])<0&&Object.prototype.propertyIsEnumerable.call($,I[R]))W[I[R]]=$[I[R]]}return W},CG=function($,G,W,I){var R=arguments.length,L=R<3?G:I===null?I=Object.getOwnPropertyDescriptor(G,W):I,M;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")L=Reflect.decorate($,G,W,I);else for(var A=$.length-1;A>=0;A--)if(M=$[A])L=(R<3?M(L):R>3?M(G,W,L):M(G,W))||L;return R>3&&L&&Object.defineProperty(G,W,L),L},NG=function($,G){return function(W,I){G(W,I,$)}},PG=function($,G,W,I,R,L){function M(t){if(t!==void 0&&typeof t!=="function")throw new TypeError("Function expected");return t}var A=I.kind,X=A==="getter"?"get":A==="setter"?"set":"value",F=!G&&$?I.static?$:$.prototype:null,Z=G||(F?Object.getOwnPropertyDescriptor(F,I.name):{}),z,J=!1;for(var Q=W.length-1;Q>=0;Q--){var N={};for(var S in I)N[S]=S==="access"?{}:I[S];for(var S in I.access)N.access[S]=I.access[S];N.addInitializer=function(t){if(J)throw new TypeError("Cannot add initializers after decoration has completed");L.push(M(t||null))};var g=W[Q](A==="accessor"?{get:Z.get,set:Z.set}:Z[X],N);if(A==="accessor"){if(g===void 0)continue;if(g===null||typeof g!=="object")throw new TypeError("Object expected");if(z=M(g.get))Z.get=z;if(z=M(g.set))Z.set=z;if(z=M(g.init))R.unshift(z)}else if(z=M(g))if(A==="field")R.unshift(z);else Z[X]=z}if(F)Object.defineProperty(F,I.name,Z);J=!0},SG=function($,G,W){var I=arguments.length>2;for(var R=0;R<G.length;R++)W=I?G[R].call($,W):G[R].call($);return I?W:void 0},bG=function($){return typeof $==="symbol"?$:"".concat($)},jG=function($,G,W){if(typeof G==="symbol")G=G.description?"[".concat(G.description,"]"):"";return Object.defineProperty($,"name",{configurable:!0,value:W?"".concat(W," ",G):G})},cG=function($,G){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata($,G)},hG=function($,G,W,I){function R(L){return L instanceof W?L:new W(function(M){M(L)})}return new(W||(W=Promise))(function(L,M){function A(Z){try{F(I.next(Z))}catch(z){M(z)}}function X(Z){try{F(I.throw(Z))}catch(z){M(z)}}function F(Z){Z.done?L(Z.value):R(Z.value).then(A,X)}F((I=I.apply($,G||[])).next())})},kG=function($,G){var W={label:0,sent:function(){if(L[0]&1)throw L[1];return L[1]},trys:[],ops:[]},I,R,L,M;return M={next:A(0),throw:A(1),return:A(2)},typeof Symbol==="function"&&(M[Symbol.iterator]=function(){return this}),M;function A(F){return function(Z){return X([F,Z])}}function X(F){if(I)throw new TypeError("Generator is already executing.");while(M&&(M=0,F[0]&&(W=0)),W)try{if(I=1,R&&(L=F[0]&2?R.return:F[0]?R.throw||((L=R.return)&&L.call(R),0):R.next)&&!(L=L.call(R,F[1])).done)return L;if(R=0,L)F=[F[0]&2,L.value];switch(F[0]){case 0:case 1:L=F;break;case 4:return W.label++,{value:F[1],done:!1};case 5:W.label++,R=F[1],F=[0];continue;case 7:F=W.ops.pop(),W.trys.pop();continue;default:if((L=W.trys,!(L=L.length>0&&L[L.length-1]))&&(F[0]===6||F[0]===2)){W=0;continue}if(F[0]===3&&(!L||F[1]>L[0]&&F[1]<L[3])){W.label=F[1];break}if(F[0]===6&&W.label<L[1]){W.label=L[1],L=F;break}if(L&&W.label<L[2]){W.label=L[2],W.ops.push(F);break}if(L[2])W.ops.pop();W.trys.pop();continue}F=G.call($,W)}catch(Z){F=[6,Z],R=0}finally{I=L=0}if(F[0]&5)throw F[1];return{value:F[0]?F[1]:void 0,done:!0}}},uG=function($,G){for(var W in $)if(W!=="default"&&!Object.prototype.hasOwnProperty.call(G,W))b0(G,$,W)},b0=Object.create?function($,G,W,I){if(I===void 0)I=W;var R=Object.getOwnPropertyDescriptor(G,W);if(!R||("get"in R?!G.__esModule:R.writable||R.configurable))R={enumerable:!0,get:function(){return G[W]}};Object.defineProperty($,I,R)}:function($,G,W,I){if(I===void 0)I=W;$[I]=G[W]},S0=function($){var G=typeof Symbol==="function"&&Symbol.iterator,W=G&&$[G],I=0;if(W)return W.call($);if($&&typeof $.length==="number")return{next:function(){if($&&I>=$.length)$=void 0;return{value:$&&$[I++],done:!$}}};throw new TypeError(G?"Object is not iterable.":"Symbol.iterator is not defined.")},o1=function($,G){var W=typeof Symbol==="function"&&$[Symbol.iterator];if(!W)return $;var I=W.call($),R,L=[],M;try{while((G===void 0||G-- >0)&&!(R=I.next()).done)L.push(R.value)}catch(A){M={error:A}}finally{try{if(R&&!R.done&&(W=I.return))W.call(I)}finally{if(M)throw M.error}}return L},DG=function(){for(var $=[],G=0;G<arguments.length;G++)$=$.concat(o1(arguments[G]));return $},_G=function(){for(var $=0,G=0,W=arguments.length;G<W;G++)$+=arguments[G].length;for(var I=Array($),R=0,G=0;G<W;G++)for(var L=arguments[G],M=0,A=L.length;M<A;M++,R++)I[R]=L[M];return I},yG=function($,G,W){if(W||arguments.length===2){for(var I=0,R=G.length,L;I<R;I++)if(L||!(I in G)){if(!L)L=Array.prototype.slice.call(G,0,I);L[I]=G[I]}}return $.concat(L||Array.prototype.slice.call(G))},Tf=function($){return this instanceof Tf?(this.v=$,this):new Tf($)},vG=function($,G,W){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var I=W.apply($,G||[]),R,L=[];return R={},A("next"),A("throw"),A("return",M),R[Symbol.asyncIterator]=function(){return this},R;function M(Q){return function(N){return Promise.resolve(N).then(Q,z)}}function A(Q,N){if(I[Q]){if(R[Q]=function(S){return new Promise(function(g,t){L.push([Q,S,g,t])>1||X(Q,S)})},N)R[Q]=N(R[Q])}}function X(Q,N){try{F(I[Q](N))}catch(S){J(L[0][3],S)}}function F(Q){Q.value instanceof Tf?Promise.resolve(Q.value.v).then(Z,z):J(L[0][2],Q)}function Z(Q){X("next",Q)}function z(Q){X("throw",Q)}function J(Q,N){if(Q(N),L.shift(),L.length)X(L[0][0],L[0][1])}},xG=function($){var G,W;return G={},I("next"),I("throw",function(R){throw R}),I("return"),G[Symbol.iterator]=function(){return this},G;function I(R,L){G[R]=$[R]?function(M){return(W=!W)?{value:Tf($[R](M)),done:!1}:L?L(M):M}:L}},pG=function($){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var G=$[Symbol.asyncIterator],W;return G?G.call($):($=typeof S0==="function"?S0($):$[Symbol.iterator](),W={},I("next"),I("throw"),I("return"),W[Symbol.asyncIterator]=function(){return this},W);function I(L){W[L]=$[L]&&function(M){return new Promise(function(A,X){M=$[L](M),R(A,X,M.done,M.value)})}}function R(L,M,A,X){Promise.resolve(X).then(function(F){L({value:F,done:A})},M)}},dG=function($,G){if(Object.defineProperty)Object.defineProperty($,"raw",{value:G});else $.raw=G;return $};var U=Object.create?function($,G){Object.defineProperty($,"default",{enumerable:!0,value:G})}:function($,G){$.default=G};gG=function($){if($&&$.__esModule)return $;var G={};if($!=null){for(var W in $)if(W!=="default"&&Object.prototype.hasOwnProperty.call($,W))b0(G,$,W)}return U(G,$),G},sG=function($){return $&&$.__esModule?$:{default:$}},nG=function($,G,W,I){if(W==="a"&&!I)throw new TypeError("Private accessor was defined without a getter");if(typeof G==="function"?$!==G||!I:!G.has($))throw new TypeError("Cannot read private member from an object whose class did not declare it");return W==="m"?I:W==="a"?I.call($):I?I.value:G.get($)},rG=function($,G,W,I,R){if(I==="m")throw new TypeError("Private method is not writable");if(I==="a"&&!R)throw new TypeError("Private accessor was defined without a setter");if(typeof G==="function"?$!==G||!R:!G.has($))throw new TypeError("Cannot write private member to an object whose class did not declare it");return I==="a"?R.call($,W):R?R.value=W:G.set($,W),W},lG=function($,G){if(G===null||typeof G!=="object"&&typeof G!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof $==="function"?G===$:$.has(G)},mG=function($,G,W){if(G!==null&&G!==void 0){if(typeof G!=="object"&&typeof G!=="function")throw new TypeError("Object expected.");var I,R;if(W){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");I=G[Symbol.asyncDispose]}if(I===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");if(I=G[Symbol.dispose],W)R=I}if(typeof I!=="function")throw new TypeError("Object not disposable.");if(R)I=function(){try{R.call(this)}catch(L){return Promise.reject(L)}};$.stack.push({value:G,dispose:I,async:W})}else if(W)$.stack.push({async:!0});return G};var E=typeof SuppressedError==="function"?SuppressedError:function($,G,W){var I=new Error(W);return I.name="SuppressedError",I.error=$,I.suppressed=G,I};oG=function($){function G(I){$.error=$.hasError?new E(I,$.error,"An error was suppressed during disposal."):I,$.hasError=!0}function W(){while($.stack.length){var I=$.stack.pop();try{var R=I.dispose&&I.dispose.call(I.value);if(I.async)return Promise.resolve(R).then(W,function(L){return G(L),W()})}catch(L){G(L)}}if($.hasError)throw $.error}return W()},f("__extends",HG),f("__assign",qG),f("__rest",VG),f("__decorate",CG),f("__param",NG),f("__esDecorate",PG),f("__runInitializers",SG),f("__propKey",bG),f("__setFunctionName",jG),f("__metadata",cG),f("__awaiter",hG),f("__generator",kG),f("__exportStar",uG),f("__createBinding",b0),f("__values",S0),f("__read",o1),f("__spread",DG),f("__spreadArrays",_G),f("__spreadArray",yG),f("__await",Tf),f("__asyncGenerator",vG),f("__asyncDelegator",xG),f("__asyncValues",pG),f("__makeTemplateObject",dG),f("__importStar",gG),f("__importDefault",sG),f("__classPrivateFieldGet",nG),f("__classPrivateFieldSet",rG),f("__classPrivateFieldIn",lG),f("__addDisposableResource",mG),f("__disposeResources",oG)})});var fW=Y((a7,aG)=>{var{defineProperty:c0,getOwnPropertyDescriptor:mA,getOwnPropertyNames:oA}=Object,iA=Object.prototype.hasOwnProperty,tA=(f,w)=>c0(f,"name",{value:w,configurable:!0}),eA=(f,w)=>{for(var U in w)c0(f,U,{get:w[U],enumerable:!0})},aA=(f,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let $ of oA(w))if(!iA.call(f,$)&&$!==U)c0(f,$,{get:()=>w[$],enumerable:!(E=mA(w,$))||E.enumerable})}return f},f4=(f)=>aA(c0({},"__esModule",{value:!0}),f),eG={};eA(eG,{emitWarningIfUnsupportedVersion:()=>w4});aG.exports=f4(eG);var tG=!1,w4=tA((f)=>{if(f&&!tG&&parseInt(f.substring(1,f.indexOf(".")))<18)tG=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
2
- no longer support Node.js 16.x on January 6, 2025.
3
-
4
- To continue receiving updates to AWS services, bug fixes, and security
5
- updates please upgrade to a supported Node.js LTS version.
6
-
7
- More information can be found at: https://a.co/74kJMmI`)},"emitWarningIfUnsupportedVersion")});var TW=Y((fz,JW)=>{var fw=function(f){for(let w=0;w<8;w++)f[w]^=255;for(let w=7;w>-1;w--)if(f[w]++,f[w]!==0)break},y0=Object.defineProperty,G4=Object.getOwnPropertyDescriptor,W4=Object.getOwnPropertyNames,I4=Object.prototype.hasOwnProperty,V=(f,w)=>y0(f,"name",{value:w,configurable:!0}),R4=(f,w)=>{for(var U in w)y0(f,U,{get:w[U],enumerable:!0})},L4=(f,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let $ of W4(w))if(!I4.call(f,$)&&$!==U)y0(f,$,{get:()=>w[$],enumerable:!(E=G4(w,$))||E.enumerable})}return f},M4=(f)=>L4(y0({},"__esModule",{value:!0}),f),GW={};R4(GW,{SignatureV4:()=>D4,clearCredentialCache:()=>N4,createScope:()=>u0,getCanonicalHeaders:()=>a1,getCanonicalQuery:()=>XW,getPayloadHash:()=>D0,getSigningKey:()=>FW,moveHeadersToQuery:()=>zW,prepareRequest:()=>ww});JW.exports=M4(GW);var wW=x(),i1=_0(),A4="X-Amz-Algorithm",F4="X-Amz-Credential",WW="X-Amz-Date",X4="X-Amz-SignedHeaders",O4="X-Amz-Expires",IW="X-Amz-Signature",RW="X-Amz-Security-Token",LW="authorization",MW=WW.toLowerCase(),Z4="date",Y4=[LW,MW,Z4],z4=IW.toLowerCase(),e1="x-amz-content-sha256",Q4=RW.toLowerCase(),J4={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},T4=/^proxy-/,B4=/^sec-/,t1="AWS4-HMAC-SHA256",K4="AWS4-HMAC-SHA256-PAYLOAD",H4="UNSIGNED-PAYLOAD",q4=50,AW="aws4_request",V4=604800,o=E4(),C4=_0(),Bf={},k0=[],u0=V((f,w,U)=>`${f}/${w}/${U}/${AW}`,"createScope"),FW=V(async(f,w,U,E,$)=>{const G=await UW(f,w.secretAccessKey,w.accessKeyId),W=`${U}:${E}:${$}:${o.toHex(G)}:${w.sessionToken}`;if(W in Bf)return Bf[W];k0.push(W);while(k0.length>q4)delete Bf[k0.shift()];let I=`AWS4${w.secretAccessKey}`;for(let R of[U,E,$,AW])I=await UW(f,I,R);return Bf[W]=I},"getSigningKey"),N4=V(()=>{k0.length=0,Object.keys(Bf).forEach((f)=>{delete Bf[f]})},"clearCredentialCache"),UW=V((f,w,U)=>{const E=new f(w);return E.update(C4.toUint8Array(U)),E.digest()},"hmac"),a1=V(({headers:f},w,U)=>{const E={};for(let $ of Object.keys(f).sort()){if(f[$]==null)continue;const G=$.toLowerCase();if(G in J4||(w==null?void 0:w.has(G))||T4.test(G)||B4.test(G)){if(!U||U&&!U.has(G))continue}E[G]=f[$].trim().replace(/\s+/g," ")}return E},"getCanonicalHeaders"),vf=$4(),XW=V(({query:f={}})=>{const w=[],U={};for(let E of Object.keys(f).sort()){if(E.toLowerCase()===z4)continue;w.push(E);const $=f[E];if(typeof $==="string")U[E]=`${vf.escapeUri(E)}=${vf.escapeUri($)}`;else if(Array.isArray($))U[E]=$.slice(0).reduce((G,W)=>G.concat([`${vf.escapeUri(E)}=${vf.escapeUri(W)}`]),[]).sort().join("&")}return w.map((E)=>U[E]).filter((E)=>E).join("&")},"getCanonicalQuery"),P4=U4(),S4=_0(),D0=V(async({headers:f,body:w},U)=>{for(let E of Object.keys(f))if(E.toLowerCase()===e1)return f[E];if(w==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof w==="string"||ArrayBuffer.isView(w)||P4.isArrayBuffer(w)){const E=new U;return E.update(S4.toUint8Array(w)),o.toHex(await E.digest())}return H4},"getPayloadHash"),$W=_0(),OW=class f{format(w){const U=[];for(let G of Object.keys(w)){const W=$W.fromUtf8(G);U.push(Uint8Array.from([W.byteLength]),W,this.formatHeaderValue(w[G]))}const E=new Uint8Array(U.reduce((G,W)=>G+W.byteLength,0));let $=0;for(let G of U)E.set(G,$),$+=G.byteLength;return E}formatHeaderValue(w){switch(w.type){case"boolean":return Uint8Array.from([w.value?0:1]);case"byte":return Uint8Array.from([2,w.value]);case"short":const U=new DataView(new ArrayBuffer(3));return U.setUint8(0,3),U.setInt16(1,w.value,!1),new Uint8Array(U.buffer);case"integer":const E=new DataView(new ArrayBuffer(5));return E.setUint8(0,4),E.setInt32(1,w.value,!1),new Uint8Array(E.buffer);case"long":const $=new Uint8Array(9);return $[0]=5,$.set(w.value.bytes,1),$;case"binary":const G=new DataView(new ArrayBuffer(3+w.value.byteLength));G.setUint8(0,6),G.setUint16(1,w.value.byteLength,!1);const W=new Uint8Array(G.buffer);return W.set(w.value,3),W;case"string":const I=$W.fromUtf8(w.value),R=new DataView(new ArrayBuffer(3+I.byteLength));R.setUint8(0,7),R.setUint16(1,I.byteLength,!1);const L=new Uint8Array(R.buffer);return L.set(I,3),L;case"timestamp":const M=new Uint8Array(9);return M[0]=8,M.set(c4.fromNumber(w.value.valueOf()).bytes,1),M;case"uuid":if(!j4.test(w.value))throw new Error(`Invalid UUID received: ${w.value}`);const A=new Uint8Array(17);return A[0]=9,A.set(o.fromHex(w.value.replace(/\-/g,"")),1),A}}};V(OW,"HeaderFormatter");var b4=OW,j4=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,ZW=class f{constructor(w){if(this.bytes=w,w.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(w){if(w>9223372036854776000||w<-9223372036854776000)throw new Error(`${w} is too large (or, if negative, too small) to represent as an Int64`);const U=new Uint8Array(8);for(let E=7,$=Math.abs(Math.round(w));E>-1&&$>0;E--,$/=256)U[E]=$;if(w<0)fw(U);return new f(U)}valueOf(){const w=this.bytes.slice(0),U=w[0]&128;if(U)fw(w);return parseInt(o.toHex(w),16)*(U?-1:1)}toString(){return String(this.valueOf())}};V(ZW,"Int64");var c4=ZW;V(fw,"negate");var h4=V((f,w)=>{f=f.toLowerCase();for(let U of Object.keys(w))if(f===U.toLowerCase())return!0;return!1},"hasHeader"),YW=Zf(),zW=V((f,w={})=>{var U;const{headers:E,query:$={}}=YW.HttpRequest.clone(f);for(let G of Object.keys(E)){const W=G.toLowerCase();if(W.slice(0,6)==="x-amz-"&&!((U=w.unhoistableHeaders)==null?void 0:U.has(W)))$[G]=E[G],delete E[G]}return{...f,headers:E,query:$}},"moveHeadersToQuery"),ww=V((f)=>{f=YW.HttpRequest.clone(f);for(let w of Object.keys(f.headers))if(Y4.indexOf(w.toLowerCase())>-1)delete f.headers[w];return f},"prepareRequest"),k4=V((f)=>u4(f).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),u4=V((f)=>{if(typeof f==="number")return new Date(f*1000);if(typeof f==="string"){if(Number(f))return new Date(Number(f)*1000);return new Date(f)}return f},"toDate"),QW=class f{constructor({applyChecksum:w,credentials:U,region:E,service:$,sha256:G,uriEscapePath:W=!0}){this.headerFormatter=new b4,this.service=$,this.sha256=G,this.uriEscapePath=W,this.applyChecksum=typeof w==="boolean"?w:!0,this.regionProvider=wW.normalizeProvider(E),this.credentialProvider=wW.normalizeProvider(U)}async presign(w,U={}){const{signingDate:E=new Date,expiresIn:$=3600,unsignableHeaders:G,unhoistableHeaders:W,signableHeaders:I,signingRegion:R,signingService:L}=U,M=await this.credentialProvider();this.validateResolvedCredentials(M);const A=R??await this.regionProvider(),{longDate:X,shortDate:F}=h0(E);if($>V4)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const Z=u0(F,A,L??this.service),z=zW(ww(w),{unhoistableHeaders:W});if(M.sessionToken)z.query[RW]=M.sessionToken;z.query[A4]=t1,z.query[F4]=`${M.accessKeyId}/${Z}`,z.query[WW]=X,z.query[O4]=$.toString(10);const J=a1(z,G,I);return z.query[X4]=EW(J),z.query[IW]=await this.getSignature(X,Z,this.getSigningKey(M,A,F,L),this.createCanonicalRequest(z,J,await D0(w,this.sha256))),z}async sign(w,U){if(typeof w==="string")return this.signString(w,U);else if(w.headers&&w.payload)return this.signEvent(w,U);else if(w.message)return this.signMessage(w,U);else return this.signRequest(w,U)}async signEvent({headers:w,payload:U},{signingDate:E=new Date,priorSignature:$,signingRegion:G,signingService:W}){const I=G??await this.regionProvider(),{shortDate:R,longDate:L}=h0(E),M=u0(R,I,W??this.service),A=await D0({headers:{},body:U},this.sha256),X=new this.sha256;X.update(w);const F=o.toHex(await X.digest()),Z=[K4,L,M,$,F,A].join("\n");return this.signString(Z,{signingDate:E,signingRegion:I,signingService:W})}async signMessage(w,{signingDate:U=new Date,signingRegion:E,signingService:$}){return this.signEvent({headers:this.headerFormatter.format(w.message.headers),payload:w.message.body},{signingDate:U,signingRegion:E,signingService:$,priorSignature:w.priorSignature}).then((W)=>{return{message:w.message,signature:W}})}async signString(w,{signingDate:U=new Date,signingRegion:E,signingService:$}={}){const G=await this.credentialProvider();this.validateResolvedCredentials(G);const W=E??await this.regionProvider(),{shortDate:I}=h0(U),R=new this.sha256(await this.getSigningKey(G,W,I,$));return R.update(i1.toUint8Array(w)),o.toHex(await R.digest())}async signRequest(w,{signingDate:U=new Date,signableHeaders:E,unsignableHeaders:$,signingRegion:G,signingService:W}={}){const I=await this.credentialProvider();this.validateResolvedCredentials(I);const R=G??await this.regionProvider(),L=ww(w),{longDate:M,shortDate:A}=h0(U),X=u0(A,R,W??this.service);if(L.headers[MW]=M,I.sessionToken)L.headers[Q4]=I.sessionToken;const F=await D0(L,this.sha256);if(!h4(e1,L.headers)&&this.applyChecksum)L.headers[e1]=F;const Z=a1(L,$,E),z=await this.getSignature(M,X,this.getSigningKey(I,R,A,W),this.createCanonicalRequest(L,Z,F));return L.headers[LW]=`${t1} Credential=${I.accessKeyId}/${X}, SignedHeaders=${EW(Z)}, Signature=${z}`,L}createCanonicalRequest(w,U,E){const $=Object.keys(U).sort();return`${w.method}
8
- ${this.getCanonicalPath(w)}
9
- ${XW(w)}
10
- ${$.map((G)=>`${G}:${U[G]}`).join("\n")}
11
-
12
- ${$.join(";")}
13
- ${E}`}async createStringToSign(w,U,E){const $=new this.sha256;$.update(i1.toUint8Array(E));const G=await $.digest();return`${t1}
14
- ${w}
15
- ${U}
16
- ${o.toHex(G)}`}getCanonicalPath({path:w}){if(this.uriEscapePath){const U=[];for(let G of w.split("/")){if((G==null?void 0:G.length)===0)continue;if(G===".")continue;if(G==="..")U.pop();else U.push(G)}const E=`${(w==null?void 0:w.startsWith("/"))?"/":""}${U.join("/")}${U.length>0&&(w==null?void 0:w.endsWith("/"))?"/":""}`;return vf.escapeUri(E).replace(/%2F/g,"/")}return w}async getSignature(w,U,E,$){const G=await this.createStringToSign(w,U,$),W=new this.sha256(await E);return W.update(i1.toUint8Array(G)),o.toHex(await W.digest())}getSigningKey(w,U,E,$){return FW(this.sha256,w,E,U,$||this.service)}validateResolvedCredentials(w){if(typeof w!=="object"||typeof w.accessKeyId!=="string"||typeof w.secretAccessKey!=="string")throw new Error("Resolved credential object is not valid")}};V(QW,"SignatureV4");var D4=QW,h0=V((f)=>{const w=k4(f).replace(/[\-:]/g,"");return{longDate:w,shortDate:w.slice(0,8)}},"formatDate"),EW=V((f)=>Object.keys(f).sort().join(";"),"getCanonicalHeaderList")});var bW=Y((wz,SW)=>{var{defineProperty:v0,getOwnPropertyDescriptor:_4,getOwnPropertyNames:y4}=Object,v4=Object.prototype.hasOwnProperty,b=(f,w)=>v0(f,"name",{value:w,configurable:!0}),x4=(f,w)=>{for(var U in w)v0(f,U,{get:w[U],enumerable:!0})},p4=(f,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let $ of y4(w))if(!v4.call(f,$)&&$!==U)v0(f,$,{get:()=>w[$],enumerable:!(E=_4(w,$))||E.enumerable})}return f},d4=(f)=>p4(v0({},"__esModule",{value:!0}),f),VW={};x4(VW,{AWSSDKSigV4Signer:()=>r4,AwsSdkSigV4ASigner:()=>m4,AwsSdkSigV4Signer:()=>Ew,NODE_SIGV4A_CONFIG_OPTIONS:()=>t4,resolveAWSSDKSigV4Config:()=>e4,resolveAwsSdkSigV4AConfig:()=>i4,resolveAwsSdkSigV4Config:()=>PW,validateSigningProperties:()=>$w});SW.exports=d4(VW);var g4=Zf(),s4=Zf(),BW=b((f)=>{var w,U;return s4.HttpResponse.isInstance(f)?((w=f.headers)==null?void 0:w.date)??((U=f.headers)==null?void 0:U.Date):void 0},"getDateHeader"),Uw=b((f)=>new Date(Date.now()+f),"getSkewCorrectedDate"),n4=b((f,w)=>Math.abs(Uw(w).getTime()-f)>=300000,"isClockSkewed"),KW=b((f,w)=>{const U=Date.parse(f);if(n4(U,w))return U-Date.now();return w},"getUpdatedSystemClockOffset"),xf=b((f,w)=>{if(!w)throw new Error(`Property \`${f}\` is not resolved for AWS SDK SigV4Auth`);return w},"throwSigningPropertyError"),$w=b(async(f)=>{var w,U,E;const $=xf("context",f.context),G=xf("config",f.config),W=(E=(U=(w=$.endpointV2)==null?void 0:w.properties)==null?void 0:U.authSchemes)==null?void 0:E[0],R=await xf("signer",G.signer)(W),L=f==null?void 0:f.signingRegion,M=f==null?void 0:f.signingRegionSet,A=f==null?void 0:f.signingName;return{config:G,signer:R,signingRegion:L,signingRegionSet:M,signingName:A}},"validateSigningProperties"),CW=class f{async sign(w,U,E){var $;if(!g4.HttpRequest.isInstance(w))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const G=await $w(E),{config:W,signer:I}=G;let{signingRegion:R,signingName:L}=G;const M=E.context;if((($=M==null?void 0:M.authSchemes)==null?void 0:$.length)??0>1){const[X,F]=M.authSchemes;if((X==null?void 0:X.name)==="sigv4a"&&(F==null?void 0:F.name)==="sigv4")R=(F==null?void 0:F.signingRegion)??R,L=(F==null?void 0:F.signingName)??L}return await I.sign(w,{signingDate:Uw(W.systemClockOffset),signingRegion:R,signingService:L})}errorHandler(w){return(U)=>{const E=U.ServerTime??BW(U.$response);if(E){const $=xf("config",w.config),G=$.systemClockOffset;if($.systemClockOffset=KW(E,$.systemClockOffset),$.systemClockOffset!==G&&U.$metadata)U.$metadata.clockSkewCorrected=!0}throw U}}successHandler(w,U){const E=BW(w);if(E){const $=xf("config",U.config);$.systemClockOffset=KW(E,$.systemClockOffset)}}};b(CW,"AwsSdkSigV4Signer");var Ew=CW,r4=Ew,l4=Zf(),NW=class f extends Ew{async sign(w,U,E){var $;if(!l4.HttpRequest.isInstance(w))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:G,signer:W,signingRegion:I,signingRegionSet:R,signingName:L}=await $w(E),A=(await(($=G.sigv4aSigningRegionSet)==null?void 0:$.call(G))??R??[I]).join(",");return await W.sign(w,{signingDate:Uw(G.systemClockOffset),signingRegion:A,signingService:L})}};b(NW,"AwsSdkSigV4ASigner");var m4=NW,o4=P1(),HW=g0(),i4=b((f)=>{return f.sigv4aSigningRegionSet=o4.normalizeProvider(f.sigv4aSigningRegionSet),f},"resolveAwsSdkSigV4AConfig"),t4={environmentVariableSelector(f){if(f.AWS_SIGV4A_SIGNING_REGION_SET)return f.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((w)=>w.trim());throw new HW.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(f){if(f.sigv4a_signing_region_set)return(f.sigv4a_signing_region_set??"").split(",").map((w)=>w.trim());throw new HW.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},Ef=P1(),qW=TW(),PW=b((f)=>{let w;if(f.credentials)w=Ef.memoizeIdentityProvider(f.credentials,Ef.isIdentityExpired,Ef.doesIdentityRequireRefresh);if(!w)if(f.credentialDefaultProvider)w=Ef.normalizeProvider(f.credentialDefaultProvider(Object.assign({},f,{parentClientConfig:f})));else w=b(async()=>{throw new Error("`credentials` is missing")},"normalizedCreds");const{signingEscapePath:U=!0,systemClockOffset:E=f.systemClockOffset||0,sha256:$}=f;let G;if(f.signer)G=Ef.normalizeProvider(f.signer);else if(f.regionInfoProvider)G=b(()=>Ef.normalizeProvider(f.region)().then(async(W)=>[await f.regionInfoProvider(W,{useFipsEndpoint:await f.useFipsEndpoint(),useDualstackEndpoint:await f.useDualstackEndpoint()})||{},W]).then(([W,I])=>{const{signingRegion:R,signingService:L}=W;f.signingRegion=f.signingRegion||R||I,f.signingName=f.signingName||L||f.serviceId;const M={...f,credentials:w,region:f.signingRegion,service:f.signingName,sha256:$,uriEscapePath:U};return new(f.signerConstructor||qW.SignatureV4)(M)}),"signer");else G=b(async(W)=>{W=Object.assign({},{name:"sigv4",signingName:f.signingName||f.defaultSigningName,signingRegion:await Ef.normalizeProvider(f.region)(),properties:{}},W);const{signingRegion:I,signingName:R}=W;f.signingRegion=f.signingRegion||I,f.signingName=f.signingName||R||f.serviceId;const L={...f,credentials:w,region:f.signingRegion,service:f.signingName,sha256:$,uriEscapePath:U};return new(f.signerConstructor||qW.SignatureV4)(L)},"signer");return{...f,systemClockOffset:E,signingEscapePath:U,credentials:w,signer:G}},"resolveAwsSdkSigV4Config"),e4=PW});var x0=Y(($6)=>{var a4=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",jW="[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]["+a4+"]*",f6=new RegExp("^"+jW+"$"),w6=function(f,w){const U=[];let E=w.exec(f);while(E){const $=[];$.startIndex=w.lastIndex-E[0].length;const G=E.length;for(let W=0;W<G;W++)$.push(E[W]);U.push($),E=w.exec(f)}return U},U6=function(f){const w=f6.exec(f);return!(w===null||typeof w==="undefined")};$6.isExist=function(f){return typeof f!=="undefined"};$6.isEmptyObject=function(f){return Object.keys(f).length===0};$6.merge=function(f,w,U){if(w){const E=Object.keys(w),$=E.length;for(let G=0;G<$;G++)if(U==="strict")f[E[G]]=[w[E[G]]];else f[E[G]]=w[E[G]]}};$6.getValue=function(f){if($6.isExist(f))return f;else return""};$6.isName=U6;$6.getAllMatches=w6;$6.nameRegexp=jW});var Ww=Y((J6)=>{var hW=function(f){return f===" "||f==="\t"||f==="\n"||f==="\r"},kW=function(f,w){const U=w;for(;w<f.length;w++)if(f[w]=="?"||f[w]==" "){const E=f.substr(U,w-U);if(w>5&&E==="xml")return H("InvalidXml","XML declaration allowed only at the start of the document.",P(f,w));else if(f[w]=="?"&&f[w+1]==">"){w++;break}else continue}return w},uW=function(f,w){if(f.length>w+5&&f[w+1]==="-"&&f[w+2]==="-"){for(w+=3;w<f.length;w++)if(f[w]==="-"&&f[w+1]==="-"&&f[w+2]===">"){w+=2;break}}else if(f.length>w+8&&f[w+1]==="D"&&f[w+2]==="O"&&f[w+3]==="C"&&f[w+4]==="T"&&f[w+5]==="Y"&&f[w+6]==="P"&&f[w+7]==="E"){let U=1;for(w+=8;w<f.length;w++)if(f[w]==="<")U++;else if(f[w]===">"){if(U--,U===0)break}}else if(f.length>w+9&&f[w+1]==="["&&f[w+2]==="C"&&f[w+3]==="D"&&f[w+4]==="A"&&f[w+5]==="T"&&f[w+6]==="A"&&f[w+7]==="["){for(w+=8;w<f.length;w++)if(f[w]==="]"&&f[w+1]==="]"&&f[w+2]===">"){w+=2;break}}return w},X6=function(f,w){let U="",E="",$=!1;for(;w<f.length;w++){if(f[w]===A6||f[w]===F6)if(E==="")E=f[w];else if(E!==f[w]);else E="";else if(f[w]===">"){if(E===""){$=!0;break}}U+=f[w]}if(E!=="")return!1;return{value:U,index:w,tagClosed:$}},DW=function(f,w){const U=Gw.getAllMatches(f,O6),E={};for(let $=0;$<U.length;$++){if(U[$][1].length===0)return H("InvalidAttr","Attribute '"+U[$][2]+"' has no space in starting.",pf(U[$]));else if(U[$][3]!==void 0&&U[$][4]===void 0)return H("InvalidAttr","Attribute '"+U[$][2]+"' is without value.",pf(U[$]));else if(U[$][3]===void 0&&!w.allowBooleanAttributes)return H("InvalidAttr","boolean attribute '"+U[$][2]+"' is not allowed.",pf(U[$]));const G=U[$][2];if(!z6(G))return H("InvalidAttr","Attribute '"+G+"' is an invalid name.",pf(U[$]));if(!E.hasOwnProperty(G))E[G]=1;else return H("InvalidAttr","Attribute '"+G+"' is repeated.",pf(U[$]))}return!0},Z6=function(f,w){let U=/\d/;if(f[w]==="x")w++,U=/[\da-fA-F]/;for(;w<f.length;w++){if(f[w]===";")return w;if(!f[w].match(U))break}return-1},Y6=function(f,w){if(w++,f[w]===";")return-1;if(f[w]==="#")return w++,Z6(f,w);let U=0;for(;w<f.length;w++,U++){if(f[w].match(/\w/)&&U<20)continue;if(f[w]===";")break;return-1}return w},H=function(f,w,U){return{err:{code:f,msg:w,line:U.line||U,col:U.col}}},z6=function(f){return Gw.isName(f)},Q6=function(f){return Gw.isName(f)},P=function(f,w){const U=f.substring(0,w).split(/\r?\n/);return{line:U.length,col:U[U.length-1].length+1}},pf=function(f){return f.startIndex+f[1].length},Gw=x0(),M6={allowBooleanAttributes:!1,unpairedTags:[]};J6.validate=function(f,w){w=Object.assign({},M6,w);const U=[];let E=!1,$=!1;if(f[0]==="\uFEFF")f=f.substr(1);for(let G=0;G<f.length;G++)if(f[G]==="<"&&f[G+1]==="?"){if(G+=2,G=kW(f,G),G.err)return G}else if(f[G]==="<"){let W=G;if(G++,f[G]==="!"){G=uW(f,G);continue}else{let I=!1;if(f[G]==="/")I=!0,G++;let R="";for(;G<f.length&&f[G]!==">"&&f[G]!==" "&&f[G]!=="\t"&&f[G]!=="\n"&&f[G]!=="\r";G++)R+=f[G];if(R=R.trim(),R[R.length-1]==="/")R=R.substring(0,R.length-1),G--;if(!Q6(R)){let A;if(R.trim().length===0)A="Invalid space after '<'.";else A="Tag '"+R+"' is an invalid name.";return H("InvalidTag",A,P(f,G))}const L=X6(f,G);if(L===!1)return H("InvalidAttr","Attributes for '"+R+"' have open quote.",P(f,G));let M=L.value;if(G=L.index,M[M.length-1]==="/"){const A=G-M.length;M=M.substring(0,M.length-1);const X=DW(M,w);if(X===!0)E=!0;else return H(X.err.code,X.err.msg,P(f,A+X.err.line))}else if(I)if(!L.tagClosed)return H("InvalidTag","Closing tag '"+R+"' doesn't have proper closing.",P(f,G));else if(M.trim().length>0)return H("InvalidTag","Closing tag '"+R+"' can't have attributes or invalid starting.",P(f,W));else if(U.length===0)return H("InvalidTag","Closing tag '"+R+"' has not been opened.",P(f,W));else{const A=U.pop();if(R!==A.tagName){let X=P(f,A.tagStartPos);return H("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+X.line+", col "+X.col+") instead of closing tag '"+R+"'.",P(f,W))}if(U.length==0)$=!0}else{const A=DW(M,w);if(A!==!0)return H(A.err.code,A.err.msg,P(f,G-M.length+A.err.line));if($===!0)return H("InvalidXml","Multiple possible root nodes found.",P(f,G));else if(w.unpairedTags.indexOf(R)!==-1);else U.push({tagName:R,tagStartPos:W});E=!0}for(G++;G<f.length;G++)if(f[G]==="<")if(f[G+1]==="!"){G++,G=uW(f,G);continue}else if(f[G+1]==="?"){if(G=kW(f,++G),G.err)return G}else break;else if(f[G]==="&"){const A=Y6(f,G);if(A==-1)return H("InvalidChar","char '&' is not expected.",P(f,G));G=A}else if($===!0&&!hW(f[G]))return H("InvalidXml","Extra text at the end",P(f,G));if(f[G]==="<")G--}}else{if(hW(f[G]))continue;return H("InvalidChar","char '"+f[G]+"' is not expected.",P(f,G))}if(!E)return H("InvalidXml","Start tag expected.",1);else if(U.length==1)return H("InvalidTag","Unclosed tag '"+U[0].tagName+"'.",P(f,U[0].tagStartPos));else if(U.length>0)return H("InvalidXml","Invalid '"+JSON.stringify(U.map((G)=>G.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};var A6='"',F6="'",O6=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g")});var yW=Y((K6)=>{var _W={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(f,w){return w},attributeValueProcessor:function(f,w){return w},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(f,w,U){return f}},B6=function(f){return Object.assign({},_W,f)};K6.buildOptions=B6;K6.defaultOptions=_W});var pW=Y((Gz,xW)=>{class vW{constructor(f){this.tagname=f,this.child=[],this[":@"]={}}add(f,w){if(f==="__proto__")f="#__proto__";this.child.push({[f]:w})}addChild(f){if(f.tagname==="__proto__")f.tagname="#__proto__";if(f[":@"]&&Object.keys(f[":@"]).length>0)this.child.push({[f.tagname]:f.child,[":@"]:f[":@"]});else this.child.push({[f.tagname]:f.child})}}xW.exports=vW});var gW=Y((Wz,dW)=>{var C6=function(f,w){const U={};if(f[w+3]==="O"&&f[w+4]==="C"&&f[w+5]==="T"&&f[w+6]==="Y"&&f[w+7]==="P"&&f[w+8]==="E"){w=w+9;let E=1,$=!1,G=!1,W="";for(;w<f.length;w++)if(f[w]==="<"&&!G){if($&&S6(f,w)){if(w+=7,[entityName,val,w]=N6(f,w+1),val.indexOf("&")===-1)U[h6(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if($&&b6(f,w))w+=8;else if($&&j6(f,w))w+=8;else if($&&c6(f,w))w+=9;else if(P6)G=!0;else throw new Error("Invalid DOCTYPE");E++,W=""}else if(f[w]===">"){if(G){if(f[w-1]==="-"&&f[w-2]==="-")G=!1,E--}else E--;if(E===0)break}else if(f[w]==="[")$=!0;else W+=f[w];if(E!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:U,i:w}},N6=function(f,w){let U="";for(;w<f.length&&(f[w]!=="'"&&f[w]!=='"');w++)U+=f[w];if(U=U.trim(),U.indexOf(" ")!==-1)throw new Error("External entites are not supported");const E=f[w++];let $="";for(;w<f.length&&f[w]!==E;w++)$+=f[w];return[U,$,w]},P6=function(f,w){if(f[w+1]==="!"&&f[w+2]==="-"&&f[w+3]==="-")return!0;return!1},S6=function(f,w){if(f[w+1]==="!"&&f[w+2]==="E"&&f[w+3]==="N"&&f[w+4]==="T"&&f[w+5]==="I"&&f[w+6]==="T"&&f[w+7]==="Y")return!0;return!1},b6=function(f,w){if(f[w+1]==="!"&&f[w+2]==="E"&&f[w+3]==="L"&&f[w+4]==="E"&&f[w+5]==="M"&&f[w+6]==="E"&&f[w+7]==="N"&&f[w+8]==="T")return!0;return!1},j6=function(f,w){if(f[w+1]==="!"&&f[w+2]==="A"&&f[w+3]==="T"&&f[w+4]==="T"&&f[w+5]==="L"&&f[w+6]==="I"&&f[w+7]==="S"&&f[w+8]==="T")return!0;return!1},c6=function(f,w){if(f[w+1]==="!"&&f[w+2]==="N"&&f[w+3]==="O"&&f[w+4]==="T"&&f[w+5]==="A"&&f[w+6]==="T"&&f[w+7]==="I"&&f[w+8]==="O"&&f[w+9]==="N")return!0;return!1},h6=function(f){if(V6.isName(f))return f;else throw new Error(`Invalid entity name ${f}`)},V6=x0();dW.exports=C6});var nW=Y((Iz,sW)=>{var _6=function(f,w={}){if(w=Object.assign({},D6,w),!f||typeof f!=="string")return f;let U=f.trim();if(w.skipLike!==void 0&&w.skipLike.test(U))return f;else if(w.hex&&k6.test(U))return Number.parseInt(U,16);else{const E=u6.exec(U);if(E){const $=E[1],G=E[2];let W=y6(E[3]);const I=E[4]||E[6];if(!w.leadingZeros&&G.length>0&&$&&U[2]!==".")return f;else if(!w.leadingZeros&&G.length>0&&!$&&U[1]!==".")return f;else{const R=Number(U),L=""+R;if(L.search(/[eE]/)!==-1)if(w.eNotation)return R;else return f;else if(I)if(w.eNotation)return R;else return f;else if(U.indexOf(".")!==-1)if(L==="0"&&W==="")return R;else if(L===W)return R;else if($&&L==="-"+W)return R;else return f;if(G)if(W===L)return R;else if($+W===L)return R;else return f;if(U===L)return R;else if(U===$+L)return R;return f}}else return f}},y6=function(f){if(f&&f.indexOf(".")!==-1){if(f=f.replace(/0+$/,""),f===".")f="0";else if(f[0]===".")f="0"+f;else if(f[f.length-1]===".")f=f.substr(0,f.length-1);return f}return f},k6=/^[-+]?0x[a-fA-F0-9]+$/,u6=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;if(!Number.parseInt&&window.parseInt)Number.parseInt=window.parseInt;if(!Number.parseFloat&&window.parseFloat)Number.parseFloat=window.parseFloat;var D6={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};sW.exports=_6});var oW=Y((Rz,mW)=>{var p6=function(f){const w=Object.keys(f);for(let U=0;U<w.length;U++){const E=w[U];this.lastEntities[E]={regex:new RegExp("&"+E+";","g"),val:f[E]}}},d6=function(f,w,U,E,$,G,W){if(f!==void 0){if(this.options.trimValues&&!E)f=f.trim();if(f.length>0){if(!W)f=this.replaceEntitiesValue(f);const I=this.options.tagValueProcessor(w,f,U,$,G);if(I===null||I===void 0)return f;else if(typeof I!==typeof f||I!==f)return I;else if(this.options.trimValues)return Rw(f,this.options.parseTagValue,this.options.numberParseOptions);else if(f.trim()===f)return Rw(f,this.options.parseTagValue,this.options.numberParseOptions);else return f}}},g6=function(f){if(this.options.removeNSPrefix){const w=f.split(":"),U=f.charAt(0)==="/"?"/":"";if(w[0]==="xmlns")return"";if(w.length===2)f=U+w[1]}return f},n6=function(f,w,U){if(!this.options.ignoreAttributes&&typeof f==="string"){const E=rW.getAllMatches(f,s6),$=E.length,G={};for(let W=0;W<$;W++){const I=this.resolveNameSpace(E[W][1]);let R=E[W][4],L=this.options.attributeNamePrefix+I;if(I.length){if(this.options.transformAttributeName)L=this.options.transformAttributeName(L);if(L==="__proto__")L="#__proto__";if(R!==void 0){if(this.options.trimValues)R=R.trim();R=this.replaceEntitiesValue(R);const M=this.options.attributeValueProcessor(I,R,w);if(M===null||M===void 0)G[L]=R;else if(typeof M!==typeof R||M!==R)G[L]=M;else G[L]=Rw(R,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)G[L]=!0}}if(!Object.keys(G).length)return;if(this.options.attributesGroupName){const W={};return W[this.options.attributesGroupName]=G,W}return G}},l6=function(f,w,U){const E=this.options.updateTag(w.tagname,U,w[":@"]);if(E===!1);else if(typeof E==="string")w.tagname=E,f.addChild(w);else f.addChild(w)},o6=function(f,w,U,E){if(f){if(E===void 0)E=Object.keys(w.child).length===0;if(f=this.parseTextData(f,w.tagname,U,!1,w[":@"]?Object.keys(w[":@"]).length!==0:!1,E),f!==void 0&&f!=="")w.add(this.options.textNodeName,f);f=""}return f},i6=function(f,w,U){const E="*."+U;for(let $ in f){const G=f[$];if(E===G||w===G)return!0}return!1},t6=function(f,w,U=">"){let E,$="";for(let G=w;G<f.length;G++){let W=f[G];if(E){if(W===E)E=""}else if(W==='"'||W==="'")E=W;else if(W===U[0])if(U[1]){if(f[G+1]===U[1])return{data:$,index:G}}else return{data:$,index:G};else if(W==="\t")W=" ";$+=W}},Gf=function(f,w,U,E){const $=f.indexOf(w,U);if($===-1)throw new Error(E);else return $+w.length-1},Iw=function(f,w,U,E=">"){const $=t6(f,w+1,E);if(!$)return;let G=$.data;const W=$.index,I=G.search(/\s/);let R=G,L=!0;if(I!==-1)R=G.substring(0,I),G=G.substring(I+1).trimStart();const M=R;if(U){const A=R.indexOf(":");if(A!==-1)R=R.substr(A+1),L=R!==$.data.substr(A+1)}return{tagName:R,tagExp:G,closeIndex:W,attrExpPresent:L,rawTagName:M}},e6=function(f,w,U){const E=U;let $=1;for(;U<f.length;U++)if(f[U]==="<")if(f[U+1]==="/"){const G=Gf(f,">",U,`${w} is not closed`);if(f.substring(U+2,G).trim()===w){if($--,$===0)return{tagContent:f.substring(E,U),i:G}}U=G}else if(f[U+1]==="?")U=Gf(f,"?>",U+1,"StopNode is not closed.");else if(f.substr(U+1,3)==="!--")U=Gf(f,"-->",U+3,"StopNode is not closed.");else if(f.substr(U+1,2)==="![")U=Gf(f,"]]>",U,"StopNode is not closed.")-2;else{const G=Iw(f,U,">");if(G){if((G&&G.tagName)===w&&G.tagExp[G.tagExp.length-1]!=="/")$++;U=G.closeIndex}}},Rw=function(f,w,U){if(w&&typeof f==="string"){const E=f.trim();if(E==="true")return!0;else if(E==="false")return!1;else return x6(f,U)}else if(rW.isExist(f))return f;else return""},rW=x0(),df=pW(),v6=gW(),x6=nW();class lW{constructor(f){this.options=f,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:"\""}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(w,U)=>String.fromCharCode(Number.parseInt(U,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(w,U)=>String.fromCharCode(Number.parseInt(U,16))}},this.addExternalEntities=p6,this.parseXml=r6,this.parseTextData=d6,this.resolveNameSpace=g6,this.buildAttributesMap=n6,this.isItStopNode=i6,this.replaceEntitiesValue=m6,this.readStopNodeData=e6,this.saveTextToParentTag=o6,this.addChild=l6}}var s6=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm"),r6=function(f){f=f.replace(/\r\n?/g,"\n");const w=new df("!xml");let U=w,E="",$="";for(let G=0;G<f.length;G++)if(f[G]==="<")if(f[G+1]==="/"){const I=Gf(f,">",G,"Closing Tag is not closed.");let R=f.substring(G+2,I).trim();if(this.options.removeNSPrefix){const A=R.indexOf(":");if(A!==-1)R=R.substr(A+1)}if(this.options.transformTagName)R=this.options.transformTagName(R);if(U)E=this.saveTextToParentTag(E,U,$);const L=$.substring($.lastIndexOf(".")+1);if(R&&this.options.unpairedTags.indexOf(R)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${R}>`);let M=0;if(L&&this.options.unpairedTags.indexOf(L)!==-1)M=$.lastIndexOf(".",$.lastIndexOf(".")-1),this.tagsNodeStack.pop();else M=$.lastIndexOf(".");$=$.substring(0,M),U=this.tagsNodeStack.pop(),E="",G=I}else if(f[G+1]==="?"){let I=Iw(f,G,!1,"?>");if(!I)throw new Error("Pi Tag is not closed.");if(E=this.saveTextToParentTag(E,U,$),this.options.ignoreDeclaration&&I.tagName==="?xml"||this.options.ignorePiTags);else{const R=new df(I.tagName);if(R.add(this.options.textNodeName,""),I.tagName!==I.tagExp&&I.attrExpPresent)R[":@"]=this.buildAttributesMap(I.tagExp,$,I.tagName);this.addChild(U,R,$)}G=I.closeIndex+1}else if(f.substr(G+1,3)==="!--"){const I=Gf(f,"-->",G+4,"Comment is not closed.");if(this.options.commentPropName){const R=f.substring(G+4,I-2);E=this.saveTextToParentTag(E,U,$),U.add(this.options.commentPropName,[{[this.options.textNodeName]:R}])}G=I}else if(f.substr(G+1,2)==="!D"){const I=v6(f,G);this.docTypeEntities=I.entities,G=I.i}else if(f.substr(G+1,2)==="!["){const I=Gf(f,"]]>",G,"CDATA is not closed.")-2,R=f.substring(G+9,I);E=this.saveTextToParentTag(E,U,$);let L=this.parseTextData(R,U.tagname,$,!0,!1,!0,!0);if(L==null)L="";if(this.options.cdataPropName)U.add(this.options.cdataPropName,[{[this.options.textNodeName]:R}]);else U.add(this.options.textNodeName,L);G=I+2}else{let I=Iw(f,G,this.options.removeNSPrefix),R=I.tagName;const L=I.rawTagName;let{tagExp:M,attrExpPresent:A,closeIndex:X}=I;if(this.options.transformTagName)R=this.options.transformTagName(R);if(U&&E){if(U.tagname!=="!xml")E=this.saveTextToParentTag(E,U,$,!1)}const F=U;if(F&&this.options.unpairedTags.indexOf(F.tagname)!==-1)U=this.tagsNodeStack.pop(),$=$.substring(0,$.lastIndexOf("."));if(R!==w.tagname)$+=$?"."+R:R;if(this.isItStopNode(this.options.stopNodes,$,R)){let Z="";if(M.length>0&&M.lastIndexOf("/")===M.length-1){if(R[R.length-1]==="/")R=R.substr(0,R.length-1),$=$.substr(0,$.length-1),M=R;else M=M.substr(0,M.length-1);G=I.closeIndex}else if(this.options.unpairedTags.indexOf(R)!==-1)G=I.closeIndex;else{const J=this.readStopNodeData(f,L,X+1);if(!J)throw new Error(`Unexpected end of ${L}`);G=J.i,Z=J.tagContent}const z=new df(R);if(R!==M&&A)z[":@"]=this.buildAttributesMap(M,$,R);if(Z)Z=this.parseTextData(Z,R,$,!0,A,!0,!0);$=$.substr(0,$.lastIndexOf(".")),z.add(this.options.textNodeName,Z),this.addChild(U,z,$)}else{if(M.length>0&&M.lastIndexOf("/")===M.length-1){if(R[R.length-1]==="/")R=R.substr(0,R.length-1),$=$.substr(0,$.length-1),M=R;else M=M.substr(0,M.length-1);if(this.options.transformTagName)R=this.options.transformTagName(R);const Z=new df(R);if(R!==M&&A)Z[":@"]=this.buildAttributesMap(M,$,R);this.addChild(U,Z,$),$=$.substr(0,$.lastIndexOf("."))}else{const Z=new df(R);if(this.tagsNodeStack.push(U),R!==M&&A)Z[":@"]=this.buildAttributesMap(M,$,R);this.addChild(U,Z,$),U=Z}E="",G=X}}else E+=f[G];return w.child},m6=function(f){if(this.options.processEntities){for(let w in this.docTypeEntities){const U=this.docTypeEntities[w];f=f.replace(U.regx,U.val)}for(let w in this.lastEntities){const U=this.lastEntities[w];f=f.replace(U.regex,U.val)}if(this.options.htmlEntities)for(let w in this.htmlEntities){const U=this.htmlEntities[w];f=f.replace(U.regex,U.val)}f=f.replace(this.ampEntity.regex,this.ampEntity.val)}return f};mW.exports=lW});var tW=Y(($F)=>{var a6=function(f,w){return iW(f,w)},iW=function(f,w,U){let E;const $={};for(let G=0;G<f.length;G++){const W=f[G],I=fF(W);let R="";if(U===void 0)R=I;else R=U+"."+I;if(I===w.textNodeName)if(E===void 0)E=W[I];else E+=""+W[I];else if(I===void 0)continue;else if(W[I]){let L=iW(W[I],w,R);const M=UF(L,w);if(W[":@"])wF(L,W[":@"],R,w);else if(Object.keys(L).length===1&&L[w.textNodeName]!==void 0&&!w.alwaysCreateTextNode)L=L[w.textNodeName];else if(Object.keys(L).length===0)if(w.alwaysCreateTextNode)L[w.textNodeName]="";else L="";if($[I]!==void 0&&$.hasOwnProperty(I)){if(!Array.isArray($[I]))$[I]=[$[I]];$[I].push(L)}else if(w.isArray(I,R,M))$[I]=[L];else $[I]=L}}if(typeof E==="string"){if(E.length>0)$[w.textNodeName]=E}else if(E!==void 0)$[w.textNodeName]=E;return $},fF=function(f){const w=Object.keys(f);for(let U=0;U<w.length;U++){const E=w[U];if(E!==":@")return E}},wF=function(f,w,U,E){if(w){const $=Object.keys(w),G=$.length;for(let W=0;W<G;W++){const I=$[W];if(E.isArray(I,U+"."+I,!0,!0))f[I]=[w[I]];else f[I]=w[I]}}},UF=function(f,w){const{textNodeName:U}=w,E=Object.keys(f).length;if(E===0)return!0;if(E===1&&(f[U]||typeof f[U]==="boolean"||f[U]===0))return!0;return!1};$F.prettify=a6});var f8=Y((Mz,aW)=>{var{buildOptions:GF}=yW(),WF=oW(),{prettify:IF}=tW(),RF=Ww();class eW{constructor(f){this.externalEntities={},this.options=GF(f)}parse(f,w){if(typeof f==="string");else if(f.toString)f=f.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(w){if(w===!0)w={};const $=RF.validate(f,w);if($!==!0)throw Error(`${$.err.msg}:${$.err.line}:${$.err.col}`)}const U=new WF(this.options);U.addExternalEntities(this.externalEntities);const E=U.parseXml(f);if(this.options.preserveOrder||E===void 0)return E;else return IF(E,this.options)}addEntity(f,w){if(w.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");else if(f.indexOf("&")!==-1||f.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");else if(w==="&")throw new Error("An entity with value '&' is not permitted");else this.externalEntities[f]=w}}aW.exports=eW});var G8=Y((Az,E8)=>{var LF=function(f,w){let U="";if(w.format&&w.indentBy.length>0)U="\n";return U8(f,w,"",U)},U8=function(f,w,U,E){let $="",G=!1;for(let W=0;W<f.length;W++){const I=f[W],R=MF(I);if(R===void 0)continue;let L="";if(U.length===0)L=R;else L=`${U}.${R}`;if(R===w.textNodeName){let Z=I[R];if(!AF(L,w))Z=w.tagValueProcessor(R,Z),Z=$8(Z,w);if(G)$+=E;$+=Z,G=!1;continue}else if(R===w.cdataPropName){if(G)$+=E;$+=`<![CDATA[${I[R][0][w.textNodeName]}]]>`,G=!1;continue}else if(R===w.commentPropName){$+=E+`<!--${I[R][0][w.textNodeName]}-->`,G=!0;continue}else if(R[0]==="?"){const Z=w8(I[":@"],w),z=R==="?xml"?"":E;let J=I[R][0][w.textNodeName];J=J.length!==0?" "+J:"",$+=z+`<${R}${J}${Z}?>`,G=!0;continue}let M=E;if(M!=="")M+=w.indentBy;const A=w8(I[":@"],w),X=E+`<${R}${A}`,F=U8(I[R],w,L,M);if(w.unpairedTags.indexOf(R)!==-1)if(w.suppressUnpairedNode)$+=X+">";else $+=X+"/>";else if((!F||F.length===0)&&w.suppressEmptyNode)$+=X+"/>";else if(F&&F.endsWith(">"))$+=X+`>${F}${E}</${R}>`;else{if($+=X+">",F&&E!==""&&(F.includes("/>")||F.includes("</")))$+=E+w.indentBy+F+E;else $+=F;$+=`</${R}>`}G=!0}return $},MF=function(f){const w=Object.keys(f);for(let U=0;U<w.length;U++){const E=w[U];if(!f.hasOwnProperty(E))continue;if(E!==":@")return E}},w8=function(f,w){let U="";if(f&&!w.ignoreAttributes)for(let E in f){if(!f.hasOwnProperty(E))continue;let $=w.attributeValueProcessor(E,f[E]);if($=$8($,w),$===!0&&w.suppressBooleanAttributes)U+=` ${E.substr(w.attributeNamePrefix.length)}`;else U+=` ${E.substr(w.attributeNamePrefix.length)}="${$}"`}return U},AF=function(f,w){f=f.substr(0,f.length-w.textNodeName.length-1);let U=f.substr(f.lastIndexOf(".")+1);for(let E in w.stopNodes)if(w.stopNodes[E]===f||w.stopNodes[E]==="*."+U)return!0;return!1},$8=function(f,w){if(f&&f.length>0&&w.processEntities)for(let U=0;U<w.entities.length;U++){const E=w.entities[U];f=f.replace(E.regex,E.val)}return f};E8.exports=LF});var I8=Y((Fz,W8)=>{var i=function(f){if(this.options=Object.assign({},XF,f),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=YF;if(this.processTextOrObjNode=OF,this.options.format)this.indentate=ZF,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""},OF=function(f,w,U){const E=this.j2x(f,U+1);if(f[this.options.textNodeName]!==void 0&&Object.keys(f).length===1)return this.buildTextValNode(f[this.options.textNodeName],w,E.attrStr,U);else return this.buildObjectNode(E.val,w,E.attrStr,U)},ZF=function(f){return this.options.indentBy.repeat(f)},YF=function(f){if(f.startsWith(this.options.attributeNamePrefix)&&f!==this.options.textNodeName)return f.substr(this.attrPrefixLen);else return!1},FF=G8(),XF={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(f,w){return w},attributeValueProcessor:function(f,w){return w},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("\'","g"),val:"&apos;"},{regex:new RegExp("\"","g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};i.prototype.build=function(f){if(this.options.preserveOrder)return FF(f,this.options);else{if(Array.isArray(f)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)f={[this.options.arrayNodeName]:f};return this.j2x(f,0).val}};i.prototype.j2x=function(f,w){let U="",E="";for(let $ in f){if(!Object.prototype.hasOwnProperty.call(f,$))continue;if(typeof f[$]==="undefined"){if(this.isAttribute($))E+=""}else if(f[$]===null)if(this.isAttribute($))E+="";else if($[0]==="?")E+=this.indentate(w)+"<"+$+"?"+this.tagEndChar;else E+=this.indentate(w)+"<"+$+"/"+this.tagEndChar;else if(f[$]instanceof Date)E+=this.buildTextValNode(f[$],$,"",w);else if(typeof f[$]!=="object"){const G=this.isAttribute($);if(G)U+=this.buildAttrPairStr(G,""+f[$]);else if($===this.options.textNodeName){let W=this.options.tagValueProcessor($,""+f[$]);E+=this.replaceEntitiesValue(W)}else E+=this.buildTextValNode(f[$],$,"",w)}else if(Array.isArray(f[$])){const G=f[$].length;let W="",I="";for(let R=0;R<G;R++){const L=f[$][R];if(typeof L==="undefined");else if(L===null)if($[0]==="?")E+=this.indentate(w)+"<"+$+"?"+this.tagEndChar;else E+=this.indentate(w)+"<"+$+"/"+this.tagEndChar;else if(typeof L==="object")if(this.options.oneListGroup){const M=this.j2x(L,w+1);if(W+=M.val,this.options.attributesGroupName&&L.hasOwnProperty(this.options.attributesGroupName))I+=M.attrStr}else W+=this.processTextOrObjNode(L,$,w);else if(this.options.oneListGroup){let M=this.options.tagValueProcessor($,L);M=this.replaceEntitiesValue(M),W+=M}else W+=this.buildTextValNode(L,$,"",w)}if(this.options.oneListGroup)W=this.buildObjectNode(W,$,I,w);E+=W}else if(this.options.attributesGroupName&&$===this.options.attributesGroupName){const G=Object.keys(f[$]),W=G.length;for(let I=0;I<W;I++)U+=this.buildAttrPairStr(G[I],""+f[$][G[I]])}else E+=this.processTextOrObjNode(f[$],$,w)}return{attrStr:U,val:E}};i.prototype.buildAttrPairStr=function(f,w){if(w=this.options.attributeValueProcessor(f,""+w),w=this.replaceEntitiesValue(w),this.options.suppressBooleanAttributes&&w==="true")return" "+f;else return" "+f+'="'+w+'"'};i.prototype.buildObjectNode=function(f,w,U,E){if(f==="")if(w[0]==="?")return this.indentate(E)+"<"+w+U+"?"+this.tagEndChar;else return this.indentate(E)+"<"+w+U+this.closeTag(w)+this.tagEndChar;else{let $="</"+w+this.tagEndChar,G="";if(w[0]==="?")G="?",$="";if((U||U==="")&&f.indexOf("<")===-1)return this.indentate(E)+"<"+w+U+G+">"+f+$;else if(this.options.commentPropName!==!1&&w===this.options.commentPropName&&G.length===0)return this.indentate(E)+`<!--${f}-->`+this.newLine;else return this.indentate(E)+"<"+w+U+G+this.tagEndChar+f+this.indentate(E)+$}};i.prototype.closeTag=function(f){let w="";if(this.options.unpairedTags.indexOf(f)!==-1){if(!this.options.suppressUnpairedNode)w="/"}else if(this.options.suppressEmptyNode)w="/";else w=`></${f}`;return w};i.prototype.buildTextValNode=function(f,w,U,E){if(this.options.cdataPropName!==!1&&w===this.options.cdataPropName)return this.indentate(E)+`<![CDATA[${f}]]>`+this.newLine;else if(this.options.commentPropName!==!1&&w===this.options.commentPropName)return this.indentate(E)+`<!--${f}-->`+this.newLine;else if(w[0]==="?")return this.indentate(E)+"<"+w+U+"?"+this.tagEndChar;else{let $=this.options.tagValueProcessor(w,f);if($=this.replaceEntitiesValue($),$==="")return this.indentate(E)+"<"+w+U+this.closeTag(w)+this.tagEndChar;else return this.indentate(E)+"<"+w+U+">"+$+"</"+w+this.tagEndChar}};i.prototype.replaceEntitiesValue=function(f){if(f&&f.length>0&&this.options.processEntities)for(let w=0;w<this.options.entities.length;w++){const U=this.options.entities[w];f=f.replace(U.regex,U.val)}return f};W8.exports=i});var L8=Y((Xz,R8)=>{var zF=Ww(),QF=f8(),JF=I8();R8.exports={XMLParser:QF,XMLValidator:zF,XMLBuilder:JF}});var Z8=Y((Oz,O8)=>{var{defineProperty:p0,getOwnPropertyDescriptor:TF,getOwnPropertyNames:BF}=Object,KF=Object.prototype.hasOwnProperty,j=(f,w)=>p0(f,"name",{value:w,configurable:!0}),HF=(f,w)=>{for(var U in w)p0(f,U,{get:w[U],enumerable:!0})},qF=(f,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let $ of BF(w))if(!KF.call(f,$)&&$!==U)p0(f,$,{get:()=>w[$],enumerable:!(E=TF(w,$))||E.enumerable})}return f},VF=(f)=>qF(p0({},"__esModule",{value:!0}),f),M8={};HF(M8,{_toBool:()=>NF,_toNum:()=>PF,_toStr:()=>CF,awsExpectUnion:()=>bF,loadRestJsonErrorCode:()=>hF,loadRestXmlErrorCode:()=>_F,parseJsonBody:()=>F8,parseJsonErrorBody:()=>cF,parseXmlBody:()=>X8,parseXmlErrorBody:()=>DF});O8.exports=VF(M8);var CF=j((f)=>{if(f==null)return f;if(typeof f==="number"||typeof f==="bigint"){const w=new Error(`Received number ${f} where a string was expected.`);return w.name="Warning",console.warn(w),String(f)}if(typeof f==="boolean"){const w=new Error(`Received boolean ${f} where a string was expected.`);return w.name="Warning",console.warn(w),String(f)}return f},"_toStr"),NF=j((f)=>{if(f==null)return f;if(typeof f==="string"){const w=f.toLowerCase();if(f!==""&&w!=="false"&&w!=="true"){const U=new Error(`Received string "${f}" where a boolean was expected.`);U.name="Warning",console.warn(U)}return f!==""&&w!=="false"}return f},"_toBool"),PF=j((f)=>{if(f==null)return f;if(typeof f==="string"){const w=Number(f);if(w.toString()!==f){const U=new Error(`Received string "${f}" where a number was expected.`);return U.name="Warning",console.warn(U),f}return w}return f},"_toNum"),SF=Xf(),bF=j((f)=>{if(f==null)return;if(typeof f==="object"&&"__type"in f)delete f.__type;return SF.expectUnion(f)},"awsExpectUnion"),jF=Xf(),A8=j((f,w)=>jF.collectBody(f,w).then((U)=>w.utf8Encoder(U)),"collectBodyString"),F8=j((f,w)=>A8(f,w).then((U)=>{if(U.length)try{return JSON.parse(U)}catch(E){if((E==null?void 0:E.name)==="SyntaxError")Object.defineProperty(E,"$responseBodyText",{value:U});throw E}return{}}),"parseJsonBody"),cF=j(async(f,w)=>{const U=await F8(f,w);return U.message=U.message??U.Message,U},"parseJsonErrorBody"),hF=j((f,w)=>{const U=j((G,W)=>Object.keys(G).find((I)=>I.toLowerCase()===W.toLowerCase()),"findKey"),E=j((G)=>{let W=G;if(typeof W==="number")W=W.toString();if(W.indexOf(",")>=0)W=W.split(",")[0];if(W.indexOf(":")>=0)W=W.split(":")[0];if(W.indexOf("#")>=0)W=W.split("#")[1];return W},"sanitizeErrorCode"),$=U(f.headers,"x-amzn-errortype");if($!==void 0)return E(f.headers[$]);if(w.code!==void 0)return E(w.code);if(w.__type!==void 0)return E(w.__type)},"loadRestJsonErrorCode"),kF=Xf(),uF=L8(),X8=j((f,w)=>A8(f,w).then((U)=>{if(U.length){const E=new uF.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(R,L)=>L.trim()===""&&L.includes("\n")?"":void 0});E.addEntity("#xD","\r"),E.addEntity("#10","\n");let $;try{$=E.parse(U,!0)}catch(R){if(R&&typeof R==="object")Object.defineProperty(R,"$responseBodyText",{value:U});throw R}const G="#text",W=Object.keys($)[0],I=$[W];if(I[G])I[W]=I[G],delete I[G];return kF.getValueFromTextNode(I)}return{}}),"parseXmlBody"),DF=j(async(f,w)=>{const U=await X8(f,w);if(U.Error)U.Error.message=U.Error.message??U.Error.Message;return U},"parseXmlErrorBody"),_F=j((f,w)=>{var U;if(((U=w==null?void 0:w.Error)==null?void 0:U.Code)!==void 0)return w.Error.Code;if((w==null?void 0:w.Code)!==void 0)return w.Code;if(f.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var yF=Y((gf)=>{Object.defineProperty(gf,"__esModule",{value:!0});var Lw=iG();Lw.__exportStar(fW(),gf);Lw.__exportStar(bW(),gf);Lw.__exportStar(Z8(),gf)});function wX(f){return f}var N8=(f)=>(w)=>async(U)=>{if(!c.isInstance(U.request))return w(U);const{request:E}=U,{handlerProtocol:$=""}=f.requestHandler.metadata||{};if($.indexOf("h2")>=0&&!E.headers[":authority"])delete E.headers.host,E.headers[":authority"]=E.hostname+(E.port?":"+E.port:"");else if(!E.headers.host){let G=E.hostname;if(E.port!=null)G+=`:${E.port}`;E.headers.host=G}return w(U)},P8={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},UX=(f)=>({applyToStack:(w)=>{w.add(N8(f),P8)}});var S8=()=>(f,w)=>async(U)=>{try{const E=await f(U),{clientName:$,commandName:G,logger:W,dynamoDbDocumentClientOptions:I={}}=w,{overrideInputFilterSensitiveLog:R,overrideOutputFilterSensitiveLog:L}=I,M=R??w.inputFilterSensitiveLog,A=L??w.outputFilterSensitiveLog,{$metadata:X,...F}=E.output;return W?.info?.({clientName:$,commandName:G,input:M(U.input),output:A(F),metadata:X}),E}catch(E){const{clientName:$,commandName:G,logger:W,dynamoDbDocumentClientOptions:I={}}=w,{overrideInputFilterSensitiveLog:R}=I,L=R??w.inputFilterSensitiveLog;throw W?.error?.({clientName:$,commandName:G,input:L(U.input),error:E,metadata:E.$metadata}),E}},b8={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},EX=(f)=>({applyToStack:(w)=>{w.add(S8(),b8)}});var Ow="X-Amzn-Trace-Id",j8="AWS_LAMBDA_FUNCTION_NAME",c8="_X_AMZN_TRACE_ID",h8=(f)=>(w)=>async(U)=>{const{request:E}=U;if(!c.isInstance(E)||f.runtime!=="node"||E.headers.hasOwnProperty(Ow))return w(U);const $=process.env[j8],G=process.env[c8],W=(I)=>typeof I==="string"&&I.length>0;if(W($)&&W(G))E.headers[Ow]=G;return w({...U,request:E})},k8={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},LX=(f)=>({applyToStack:(w)=>{w.add(h8(f),k8)}});function rX(f){return{...f,customUserAgent:typeof f.customUserAgent==="string"?[[f.customUserAgent]]:f.customUserAgent}}var XA=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}$"),uf=(f)=>XA.test(f)||f.startsWith("[")&&f.endsWith("]");var OA=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Df=(f,w=!1)=>{if(!w)return OA.test(f);const U=f.split(".");for(let E of U)if(!Df(E))return!1;return!0};var _f={};var n="endpoints";function k(f){if(typeof f!=="object"||f==null)return f;if("ref"in f)return`\$${k(f.ref)}`;if("fn"in f)return`${f.fn}(${(f.argv||[]).map(k).join(", ")})`;return JSON.stringify(f,null,2)}class T extends Error{constructor(f){super(f);this.name="EndpointError"}}var kE=(f,w)=>f===w;var uE=(f)=>{const w=f.split("."),U=[];for(let E of w){const $=E.indexOf("[");if($!==-1){if(E.indexOf("]")!==E.length-1)throw new T(`Path: '${f}' does not end with ']'`);const G=E.slice($+1,-1);if(Number.isNaN(parseInt(G)))throw new T(`Invalid array index: '${G}' in path: '${f}'`);if($!==0)U.push(E.slice(0,$));U.push(G)}else U.push(E)}return U};var X0=(f,w)=>uE(w).reduce((U,E)=>{if(typeof U!=="object")throw new T(`Index '${E}' in '${w}' not found in '${JSON.stringify(f)}'`);else if(Array.isArray(U))return U[parseInt(E)];return U[E]},f);var DE=(f)=>f!=null;var _E=(f)=>!f;var O0=u(Hf(),1);var S1={[O0.EndpointURLScheme.HTTP]:80,[O0.EndpointURLScheme.HTTPS]:443},yE=(f)=>{const w=(()=>{try{if(f instanceof URL)return f;if(typeof f==="object"&&"hostname"in f){const{hostname:X,port:F,protocol:Z="",path:z="",query:J={}}=f,Q=new URL(`${Z}//${X}${F?`:${F}`:""}${z}`);return Q.search=Object.entries(J).map(([N,S])=>`${N}=${S}`).join("&"),Q}return new URL(f)}catch(X){return null}})();if(!w)return console.error(`Unable to parse ${JSON.stringify(f)} as a whatwg URL.`),null;const U=w.href,{host:E,hostname:$,pathname:G,protocol:W,search:I}=w;if(I)return null;const R=W.slice(0,-1);if(!Object.values(O0.EndpointURLScheme).includes(R))return null;const L=uf($),M=U.includes(`${E}:${S1[R]}`)||typeof f==="string"&&f.includes(`${E}:${S1[R]}`),A=`${E}${M?`:${S1[R]}`:""}`;return{scheme:R,authority:A,path:G,normalizedPath:G.endsWith("/")?G:`${G}/`,isIp:L}};var vE=(f,w)=>f===w;var xE=(f,w,U,E)=>{if(w>=U||f.length<U)return null;if(!E)return f.substring(w,U);return f.substring(f.length-U,f.length-w)};var pE=(f)=>encodeURIComponent(f).replace(/[!*'()]/g,(w)=>`%${w.charCodeAt(0).toString(16).toUpperCase()}`);var dE={booleanEquals:kE,getAttr:X0,isSet:DE,isValidHostLabel:Df,not:_E,parseURL:yE,stringEquals:vE,substring:xE,uriEncode:pE};var Z0=(f,w)=>{const U=[],E={...w.endpointParams,...w.referenceRecord};let $=0;while($<f.length){const G=f.indexOf("{",$);if(G===-1){U.push(f.slice($));break}U.push(f.slice($,G));const W=f.indexOf("}",G);if(W===-1){U.push(f.slice(G));break}if(f[G+1]==="{"&&f[W+1]==="}")U.push(f.slice(G+1,W)),$=W+2;const I=f.substring(G+1,W);if(I.includes("#")){const[R,L]=I.split("#");U.push(X0(E[R],L))}else U.push(E[I]);$=W+1}return U.join("")};var gE=({ref:f},w)=>{return{...w.endpointParams,...w.referenceRecord}[f]};var l=(f,w,U)=>{if(typeof f==="string")return Z0(f,U);else if(f.fn)return Y0(f,U);else if(f.ref)return gE(f,U);throw new T(`'${w}': ${String(f)} is not a string, function or reference.`)};var Y0=({fn:f,argv:w},U)=>{const E=w.map((G)=>["boolean","number"].includes(typeof G)?G:l(G,"arg",U)),$=f.split(".");if($[0]in _f&&$[1]!=null)return _f[$[0]][$[1]](...E);return dE[f](...E)};var sE=({assign:f,...w},U)=>{if(f&&f in U.referenceRecord)throw new T(`'${f}' is already defined in Reference Record.`);const E=Y0(w,U);return U.logger?.debug?.(`${n} evaluateCondition: ${k(w)} = ${k(E)}`),{result:E===""?!0:!!E,...f!=null&&{toAssign:{name:f,value:E}}}};var Yf=(f=[],w)=>{const U={};for(let E of f){const{result:$,toAssign:G}=sE(E,{...w,referenceRecord:{...w.referenceRecord,...U}});if(!$)return{result:$};if(G)U[G.name]=G.value,w.logger?.debug?.(`${n} assign: ${G.name} := ${k(G.value)}`)}return{result:!0,referenceRecord:U}};var nE=(f,w)=>Object.entries(f).reduce((U,[E,$])=>({...U,[E]:$.map((G)=>{const W=l(G,"Header value entry",w);if(typeof W!=="string")throw new T(`Header '${E}' value '${W}' is not a string`);return W})}),{});var b1=(f,w)=>{if(Array.isArray(f))return f.map((U)=>b1(U,w));switch(typeof f){case"string":return Z0(f,w);case"object":if(f===null)throw new T(`Unexpected endpoint property: ${f}`);return z0(f,w);case"boolean":return f;default:throw new T(`Unexpected endpoint property type: ${typeof f}`)}};var z0=(f,w)=>Object.entries(f).reduce((U,[E,$])=>({...U,[E]:b1($,w)}),{});var rE=(f,w)=>{const U=l(f,"Endpoint URL",w);if(typeof U==="string")try{return new URL(U)}catch(E){throw console.error(`Failed to construct URL with ${U}`,E),E}throw new T(`Endpoint URL must be a string, got ${typeof U}`)};var lE=(f,w)=>{const{conditions:U,endpoint:E}=f,{result:$,referenceRecord:G}=Yf(U,w);if(!$)return;const W={...w,referenceRecord:{...w.referenceRecord,...G}},{url:I,properties:R,headers:L}=E;return w.logger?.debug?.(`${n} Resolving endpoint from template: ${k(E)}`),{...L!=null&&{headers:nE(L,W)},...R!=null&&{properties:z0(R,W)},url:rE(I,W)}};var mE=(f,w)=>{const{conditions:U,error:E}=f,{result:$,referenceRecord:G}=Yf(U,w);if(!$)return;throw new T(l(E,"Error",{...w,referenceRecord:{...w.referenceRecord,...G}}))};var oE=(f,w)=>{const{conditions:U,rules:E}=f,{result:$,referenceRecord:G}=Yf(U,w);if(!$)return;return Q0(E,{...w,referenceRecord:{...w.referenceRecord,...G}})};var Q0=(f,w)=>{for(let U of f)if(U.type==="endpoint"){const E=lE(U,w);if(E)return E}else if(U.type==="error")mE(U,w);else if(U.type==="tree"){const E=oE(U,w);if(E)return E}else throw new T(`Unknown endpoint rule: ${U}`);throw new T("Rules evaluation failed")};var ZA=(f,w)=>{const{endpointParams:U,logger:E}=w,{parameters:$,rules:G}=f;w.logger?.debug?.(`${n} Initial EndpointParams: ${k(U)}`);const W=Object.entries($).filter(([,L])=>L.default!=null).map(([L,M])=>[L,M.default]);if(W.length>0)for(let[L,M]of W)U[L]=U[L]??M;const I=Object.entries($).filter(([,L])=>L.required).map(([L])=>L);for(let L of I)if(U[L]==null)throw new T(`Missing required parameter: '${L}'`);const R=Q0(G,{endpointParams:U,logger:E,referenceRecord:{}});if(w.endpointParams?.Endpoint)try{const L=new URL(w.endpointParams.Endpoint),{protocol:M,port:A}=L;R.url.protocol=M,R.url.port=A}catch(L){}return w.logger?.debug?.(`${n} Resolved endpoint: ${k(R)}`),R};var j1=(f,w=!1)=>{if(w){for(let U of f.split("."))if(!j1(U))return!1;return!0}if(!Df(f))return!1;if(f.length<3||f.length>63)return!1;if(f!==f.toLowerCase())return!1;if(uf(f))return!1;return!0};var iE=(f)=>{const w=f.split(":");if(w.length<6)return null;const[U,E,$,G,W,...I]=w;if(U!=="arn"||E===""||$===""||I[0]==="")return null;return{partition:E,service:$,region:G,accountId:W,resourceId:I[0].includes("/")?I[0].split("/"):I}};var tE={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],version:"1.1"};var zA=tE,QA="",eE=(f)=>{const{partitions:w}=zA;for(let E of w){const{regions:$,outputs:G}=E;for(let[W,I]of Object.entries($))if(W===f)return{...G,...I}}for(let E of w){const{regionRegex:$,outputs:G}=E;if(new RegExp($).test(f))return{...G}}const U=w.find((E)=>E.id==="aws");if(!U)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...U.outputs}};var aE=()=>QA;var JA={isVirtualHostableS3Bucket:j1,parseArn:iE,partition:eE};_f.aws=JA;var c1="user-agent",J0="x-amz-user-agent",h1=" ",T0="/",fG=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,wG=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,k1="-";var TA=(f)=>(w,U)=>async(E)=>{const{request:$}=E;if(!c.isInstance($))return w(E);const{headers:G}=$,W=U?.userAgent?.map(u1)||[],I=(await f.defaultUserAgentProvider()).map(u1),R=f?.customUserAgent?.map(u1)||[],L=aE(),M=(L?[L]:[]).concat([...I,...W,...R]).join(h1),A=[...I.filter((X)=>X.startsWith("aws-sdk-")),...R].join(h1);if(f.runtime!=="browser"){if(A)G[J0]=G[J0]?`${G[c1]} ${A}`:A;G[c1]=M}else G[J0]=M;return w({...E,request:$})},u1=(f)=>{const w=f[0].split(T0).map((W)=>W.replace(fG,k1)).join(T0),U=f[1]?.replace(wG,k1),E=w.indexOf(T0),$=w.substring(0,E);let G=w.substring(E+1);if($==="api")G=G.toLowerCase();return[$,G,U].filter((W)=>W&&W.length>0).reduce((W,I,R)=>{switch(R){case 0:return I;case 1:return`${W}/${I}`;default:return`${W}#${I}`}},"")},BA={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},V9=(f)=>({applyToStack:(w)=>{w.add(TA(f),BA)}});var B0=(f)=>typeof f==="string"&&(f.startsWith("fips-")||f.endsWith("-fips"));var D1=(f)=>B0(f)?["fips-aws-global","aws-fips"].includes(f)?"us-east-1":f.replace(/fips-(dkr-|prod-)?|-fips/,""):f;var u9=(f)=>{const{region:w,useFipsEndpoint:U}=f;if(!w)throw new Error("Region is missing");return{...f,region:async()=>{if(typeof w==="string")return D1(w);const E=await w();return D1(E)},useFipsEndpoint:async()=>{const E=typeof w==="string"?w:await w();if(B0(E))return!0;return typeof U!=="function"?Promise.resolve(!!U):U()}}};var zf=(f,w,U)=>{if(!(w in f))return;if(f[w]==="true")return!0;if(f[w]==="false")return!1;throw new Error(`Cannot load ${U} "${w}". Expected "true" or "false", got ${f[w]}.`)};var m;(function(f){f.ENV="env",f.CONFIG="shared config entry"})(m||(m={}));var KA="AWS_USE_DUALSTACK_ENDPOINT",HA="use_dualstack_endpoint";var n9={environmentVariableSelector:(f)=>zf(f,KA,m.ENV),configFileSelector:(f)=>zf(f,HA,m.CONFIG),default:!1};var qA="AWS_USE_FIPS_ENDPOINT",VA="use_fips_endpoint";var m9={environmentVariableSelector:(f)=>zf(f,qA,m.ENV),configFileSelector:(f)=>zf(f,VA,m.CONFIG),default:!1};var CA=u(x(),1);var NA=u(x(),1);var UG={environmentVariableSelector:(f)=>f["AWS_REGION"],configFileSelector:(f)=>f["region"],default:()=>{throw new Error("Region is missing")}},W5={preferredFile:"credentials"};function PA(f){return(w)=>async(U)=>{const E=U.request;if(c.isInstance(E)){const{body:$,headers:G}=E;if($&&Object.keys(G).map((W)=>W.toLowerCase()).indexOf($G)===-1)try{const W=f($);E.headers={...E.headers,[$G]:String(W)}}catch(W){}}return w({...U,request:E})}}var $G="content-length",SA={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},h5=(f)=>({applyToStack:(w)=>{w.add(PA(f.bodyLengthChecker),SA)}});var EG=(f,w)=>(U)=>async(E)=>{const{response:$}=await U(E);try{const G=await w($,f);return{response:$,output:G}}catch(G){if(Object.defineProperty(G,"$response",{value:$}),!("$metadata"in G)){if(G.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof G.$responseBodyText!=="undefined"){if(G.$response)G.$response.body=G.$responseBodyText}}throw G}};var GG=(f,w)=>(U,E)=>async($)=>{const G=E.endpointV2?.url&&f.urlParser?async()=>f.urlParser(E.endpointV2.url):f.endpoint;if(!G)throw new Error("No valid endpoint provider available.");const W=await w($.input,{...f,endpoint:G});return U({...$,request:W})};function v5(f,w,U){return{applyToStack:(E)=>{E.add(EG(f,U),bA),E.add(GG(f,w),_1)}}}var bA={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},_1={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};var XG=u(x(),1);var WG=async(f)=>{const w=f?.Bucket||"";if(typeof f.Bucket==="string")f.Bucket=w.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(uA(w)){if(f.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!kA(w)||w.indexOf(".")!==-1&&!String(f.Endpoint).startsWith("http:")||w.toLowerCase()!==w||w.length<3)f.ForcePathStyle=!0;if(f.DisableMultiRegionAccessPoints)f.disableMultiRegionAccessPoints=!0,f.DisableMRAP=!0;return f},jA=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,cA=/(\d+\.){3}\d+/,hA=/\.\./;var kA=(f)=>jA.test(f)&&!cA.test(f)&&!hA.test(f),uA=(f)=>{const[w,U,E,,,$]=f.split(":"),G=w==="arn"&&f.split(":").length>=6,W=Boolean(G&&U&&E&&$);if(G&&!W)throw new Error(`Invalid ARN: ${f} was an invalid ARN.`);return W};var IG=(f,w,U)=>{const E=async()=>{const $=U[f]??U[w];if(typeof $==="function")return $();return $};if(f==="credentialScope"||w==="CredentialScope")return async()=>{const $=typeof U.credentials==="function"?await U.credentials():U.credentials;return $?.credentialScope??$?.CredentialScope};if(f==="accountId"||w==="AccountId")return async()=>{const $=typeof U.credentials==="function"?await U.credentials():U.credentials;return $?.accountId??$?.AccountId};if(f==="endpoint"||w==="endpoint")return async()=>{const $=await E();if($&&typeof $==="object"){if("url"in $)return $.url.href;if("hostname"in $){const{protocol:G,hostname:W,port:I,path:R}=$;return`${G}//${W}${I?":"+I:""}${R}`}}return $};return E};var RG="AWS_ENDPOINT_URL",LG="endpoint_url",MG=(f)=>({environmentVariableSelector:(w)=>{const U=f.split(" ").map((G)=>G.toUpperCase()),E=w[[RG,...U].join("_")];if(E)return E;const $=w[RG];if($)return $;return},configFileSelector:(w,U)=>{if(U&&w.services){const $=U[["services",w.services].join(y1)];if($){const G=f.split(" ").map((I)=>I.toLowerCase()),W=$[[G.join("_"),LG].join(y1)];if(W)return W}}const E=w[LG];if(E)return E;return},default:void 0});var AG=async(f)=>wf(MG(f))();var v1=u(WU(),1),K0=(f)=>{if(typeof f==="object"){if("url"in f)return v1.parseUrl(f.url);return f}return v1.parseUrl(f)};var FG=async(f,w,U,E)=>{if(!U.endpoint){const W=await AG(U.serviceId||"");if(W)U.endpoint=()=>Promise.resolve(K0(W))}const $=await DA(f,w,U);if(typeof U.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return U.endpointProvider($,E)},DA=async(f,w,U)=>{const E={},$=w?.getEndpointParameterInstructions?.()||{};for(let[G,W]of Object.entries($))switch(W.type){case"staticContextParams":E[G]=W.value;break;case"contextParams":E[G]=f[W.name];break;case"clientContextParams":case"builtInParams":E[G]=await IG(W.name,G,U)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(W))}if(Object.keys($).length===0)Object.assign(E,U);if(String(U.serviceId).toLowerCase()==="s3")await WG(E);return E};var OG=({config:f,instructions:w})=>{return(U,E)=>async($)=>{const G=await FG($.input,{getEndpointParameterInstructions(){return w}},{...f},E);E.endpointV2=G,E.authSchemes=G.properties?.authSchemes;const W=E.authSchemes?.[0];if(W){E.signing_region=W.signingRegion,E.signing_service=W.signingName;const R=XG.getSmithyContext(E)?.selectedHttpAuthScheme?.httpAuthOption;if(R)R.signingProperties=Object.assign(R.signingProperties||{},{signing_region:W.signingRegion,signingRegion:W.signingRegion,signing_service:W.signingName,signingName:W.signingName,signingRegionSet:W.signingRegionSet},W.properties)}return U({...$})}};var _A={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:_1.name},MY=(f,w)=>({applyToStack:(U)=>{U.addRelativeTo(OG({config:f,instructions:w}),_A)}});var H0=u(x(),1);var XY=(f)=>{const w=f.tls??!0,{endpoint:U}=f,E=U!=null?async()=>K0(await H0.normalizeProvider(U)()):void 0;return{...f,endpoint:E,tls:w,isCustomEndpoint:!!U,useDualstackEndpoint:H0.normalizeProvider(f.useDualstackEndpoint??!1),useFipsEndpoint:H0.normalizeProvider(f.useFipsEndpoint??!1)}};var d=u(R1(),1),qY=d.default.v1,VY=d.default.v3,ZG=d.default.v4,CY=d.default.v5,NY=d.default.NIL,PY=d.default.version,SY=d.default.validate,bY=d.default.stringify,jY=d.default.parse;var r1=u(x(),1);var v;(function(f){f.STANDARD="standard",f.ADAPTIVE="adaptive"})(v||(v={}));var Uf=3,YG=v.STANDARD;var zG=u(ff(),1);class q0{constructor(f){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=f?.beta??0.7,this.minCapacity=f?.minCapacity??1,this.minFillRate=f?.minFillRate??0.5,this.scaleConstant=f?.scaleConstant??0.4,this.smooth=f?.smooth??0.8;const w=this.getCurrentTimeInSeconds();this.lastThrottleTime=w,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(f){if(!this.enabled)return;if(this.refillTokenBucket(),f>this.currentCapacity){const w=(f-this.currentCapacity)/this.fillRate*1000;await new Promise((U)=>setTimeout(U,w))}this.currentCapacity=this.currentCapacity-f}refillTokenBucket(){const f=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=f;return}const w=(f-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+w),this.lastTimestamp=f}updateClientSendingRate(f){let w;if(this.updateMeasuredRate(),zG.isThrottlingError(f)){const E=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=E,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),w=this.cubicThrottle(E),this.enableTokenBucket()}else this.calculateTimeWindow(),w=this.cubicSuccess(this.getCurrentTimeInSeconds());const U=Math.min(w,2*this.measuredTxRate);this.updateTokenBucketRate(U)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(f){return this.getPrecise(f*this.beta)}cubicSuccess(f){return this.getPrecise(this.scaleConstant*Math.pow(f-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(f){this.refillTokenBucket(),this.fillRate=Math.max(f,this.minFillRate),this.maxCapacity=Math.max(f,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const f=this.getCurrentTimeInSeconds(),w=Math.floor(f*2)/2;if(this.requestCount++,w>this.lastTxRateBucket){const U=this.requestCount/(w-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(U*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=w}}getPrecise(f){return parseFloat(f.toFixed(8))}}var $f=100,yf=20000,x1=500,V0=500,p1=5,d1=10,g1=1,C0="amz-sdk-invocation-id",N0="amz-sdk-request";var QG=()=>{let f=$f;return{computeNextBackoffDelay:(E)=>{return Math.floor(Math.min(yf,Math.random()*2**E*f))},setDelayBase:(E)=>{f=E}}};var s1=({retryDelay:f,retryCount:w,retryCost:U})=>{return{getRetryCount:()=>w,getRetryDelay:()=>Math.min(yf,f),getRetryCost:()=>U}};class Qf{constructor(f){this.maxAttempts=f,this.mode=v.STANDARD,this.capacity=V0,this.retryBackoffStrategy=QG(),this.maxAttemptsProvider=typeof f==="function"?f:async()=>f}async acquireInitialRetryToken(f){return s1({retryDelay:$f,retryCount:0})}async refreshRetryTokenForRetry(f,w){const U=await this.getMaxAttempts();if(this.shouldRetry(f,w,U)){const E=w.errorType;this.retryBackoffStrategy.setDelayBase(E==="THROTTLING"?x1:$f);const $=this.retryBackoffStrategy.computeNextBackoffDelay(f.getRetryCount()),G=w.retryAfterHint?Math.max(w.retryAfterHint.getTime()-Date.now()||0,$):$,W=this.getCapacityCost(E);return this.capacity-=W,s1({retryDelay:G,retryCount:f.getRetryCount()+1,retryCost:W})}throw new Error("No retry token available")}recordSuccess(f){this.capacity=Math.max(V0,this.capacity+(f.getRetryCost()??g1))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(f){return console.warn(`Max attempts provider could not resolve. Using default of ${Uf}`),Uf}}shouldRetry(f,w,U){return f.getRetryCount()+1<U&&this.capacity>=this.getCapacityCost(w.errorType)&&this.isRetryableError(w.errorType)}getCapacityCost(f){return f==="TRANSIENT"?d1:p1}isRetryableError(f){return f==="THROTTLING"||f==="TRANSIENT"}}class n1{constructor(f,w){this.maxAttemptsProvider=f,this.mode=v.ADAPTIVE;const{rateLimiter:U}=w??{};this.rateLimiter=U??new q0,this.standardRetryStrategy=new Qf(f)}async acquireInitialRetryToken(f){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(f)}async refreshRetryTokenForRetry(f,w){return this.rateLimiter.updateClientSendingRate(w),this.standardRetryStrategy.refreshRetryTokenForRetry(f,w)}recordSuccess(f){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(f)}}var JG="AWS_MAX_ATTEMPTS",TG="max_attempts",I7={environmentVariableSelector:(f)=>{const w=f[JG];if(!w)return;const U=parseInt(w);if(Number.isNaN(U))throw new Error(`Environment variable ${JG} mast be a number, got "${w}"`);return U},configFileSelector:(f)=>{const w=f[TG];if(!w)return;const U=parseInt(w);if(Number.isNaN(U))throw new Error(`Shared config file entry ${TG} mast be a number, got "${w}"`);return U},default:Uf},R7=(f)=>{const{retryStrategy:w}=f,U=r1.normalizeProvider(f.maxAttempts??Uf);return{...f,maxAttempts:U,retryStrategy:async()=>{if(w)return w;if(await r1.normalizeProvider(f.retryMode)()===v.ADAPTIVE)return new n1(U);return new Qf(U)}}},yA="AWS_RETRY_MODE",vA="retry_mode",L7={environmentVariableSelector:(f)=>f[yA],configFileSelector:(f)=>f[vA],default:YG};var Jf=u(ff(),1);import{Readable as xA} from"stream";var BG=(f)=>f?.body instanceof xA||typeof ReadableStream!=="undefined"&&f?.body instanceof ReadableStream;var l1=(f)=>{if(f instanceof Error)return f;if(f instanceof Object)return Object.assign(new Error,f);if(typeof f==="string")return new Error(f);return new Error(`AWS SDK error wrapper for ${f}`)};var pA=(f)=>(w,U)=>async(E)=>{let $=await f.retryStrategy();const G=await f.maxAttempts();if(dA($)){$=$;let W=await $.acquireInitialRetryToken(U.partition_id),I=new Error,R=0,L=0;const{request:M}=E,A=c.isInstance(M);if(A)M.headers[C0]=ZG();while(!0)try{if(A)M.headers[N0]=`attempt=${R+1}; max=${G}`;const{response:X,output:F}=await w(E);return $.recordSuccess(W),F.$metadata.attempts=R+1,F.$metadata.totalRetryDelay=L,{response:X,output:F}}catch(X){const F=gA(X);if(I=l1(X),A&&BG(M))throw(U.logger instanceof KG?console:U.logger)?.warn("An error was encountered in a non-retryable streaming request."),I;try{W=await $.refreshRetryTokenForRetry(W,F)}catch(z){if(!I.$metadata)I.$metadata={};throw I.$metadata.attempts=R+1,I.$metadata.totalRetryDelay=L,I}R=W.getRetryCount();const Z=W.getRetryDelay();L+=Z,await new Promise((z)=>setTimeout(z,Z))}}else{if($=$,$?.mode)U.userAgent=[...U.userAgent||[],["cfg/retry-mode",$.mode]];return $.retry(w,E)}},dA=(f)=>typeof f.acquireInitialRetryToken!=="undefined"&&typeof f.refreshRetryTokenForRetry!=="undefined"&&typeof f.recordSuccess!=="undefined",gA=(f)=>{const w={error:f,errorType:sA(f)},U=rA(f.$response);if(U)w.retryAfterHint=U;return w},sA=(f)=>{if(Jf.isThrottlingError(f))return"THROTTLING";if(Jf.isTransientError(f))return"TRANSIENT";if(Jf.isServerError(f))return"SERVER_ERROR";return"CLIENT_ERROR"},nA={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},T7=(f)=>({applyToStack:(w)=>{w.add(pA(f),nA)}}),rA=(f)=>{if(!m1.isInstance(f))return;const w=Object.keys(f.headers).find((G)=>G.toLowerCase()==="retry-after");if(!w)return;const U=f.headers[w],E=Number(U);if(!Number.isNaN(E))return new Date(E*1000);return new Date(U)};var lA=u(ff(),1);var P0=u(ff(),1);import{platform as vF,release as xF} from"os";import{env as z8,versions as pF} from"process";var Mw={isCrtAvailable:!1};var Y8=()=>{if(Mw.isCrtAvailable)return["md/crt-avail"];return null};var dF="AWS_SDK_UA_APP_ID",gF="sdk-ua-app-id",Hz=({serviceId:f,clientVersion:w})=>{const U=[["aws-sdk-js",w],["ua","2.0"],[`os/${vF()}`,xF()],["lang/js"],["md/nodejs",`${pF.node}`]],E=Y8();if(E)U.push(E);if(f)U.push([`api/${f}`,w]);if(z8.AWS_EXECUTION_ENV)U.push([`exec-env/${z8.AWS_EXECUTION_ENV}`]);const $=wf({environmentVariableSelector:(W)=>W[dF],configFileSelector:(W)=>W[gF],default:void 0})();let G=void 0;return async()=>{if(!G){const W=await $;G=W?[...U,[`app/${W}`]]:[...U]}return G}};var Q8=(f)=>typeof ArrayBuffer==="function"&&f instanceof ArrayBuffer||Object.prototype.toString.call(f)==="[object ArrayBuffer]";import{Buffer as Aw} from"buffer";var Wf=(f,w=0,U=f.byteLength-w)=>{if(!Q8(f))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof f} (${f})`);return Aw.from(f,w,U)},Kf=(f,w)=>{if(typeof f!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof f} (${f})`);return w?Aw.from(f,w):Aw.from(f)};var d0=(f)=>{const w=Kf(f,"utf8");return new Uint8Array(w.buffer,w.byteOffset,w.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var J8=(f)=>{if(typeof f==="string")return d0(f);if(ArrayBuffer.isView(f))return new Uint8Array(f.buffer,f.byteOffset,f.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(f)};var uz=(f)=>{if(typeof f==="string")return f;if(typeof f!=="object"||typeof f.byteOffset!=="number"||typeof f.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return Wf(f.buffer,f.byteOffset,f.byteLength).toString("utf8")};import{Buffer as sF} from"buffer";import{createHash as nF,createHmac as rF} from"crypto";var T8=function(f,w){if(sF.isBuffer(f))return f;if(typeof f==="string")return Kf(f,w);if(ArrayBuffer.isView(f))return Wf(f.buffer,f.byteOffset,f.byteLength);return Wf(f)};class lF{constructor(f,w){this.algorithmIdentifier=f,this.secret=w,this.reset()}update(f,w){this.hash.update(J8(T8(f,w)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?rF(this.algorithmIdentifier,T8(this.secret)):nF(this.algorithmIdentifier)}}import{fstatSync as mF,lstatSync as oF} from"fs";var lz=(f)=>{if(!f)return 0;if(typeof f==="string")return Buffer.byteLength(f);else if(typeof f.byteLength==="number")return f.byteLength;else if(typeof f.size==="number")return f.size;else if(typeof f.start==="number"&&typeof f.end==="number")return f.end+1-f.start;else if(typeof f.path==="string"||Buffer.isBuffer(f.path))return oF(f.path).size;else if(typeof f.fd==="number")return mF(f.fd).size;throw new Error(`Body Length computation failed for ${f}`)};var B8="AWS_EXECUTION_ENV",Fw="AWS_REGION",Xw="AWS_DEFAULT_REGION",K8="AWS_EC2_METADATA_DISABLED",H8=["in-region","cross-region","mobile","standard","legacy"],q8="/latest/meta-data/placement/region";var V8={environmentVariableSelector:(f)=>{return f["AWS_DEFAULTS_MODE"]},configFileSelector:(f)=>{return f["defaults_mode"]},default:"legacy"};var EQ=({region:f=wf(UG),defaultsMode:w=wf(V8)}={})=>C8(async()=>{const U=typeof w==="function"?await w():w;switch(U?.toLowerCase()){case"auto":return iF(f);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(U?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${H8.join(", ")}, got ${U}`)}}),iF=async(f)=>{if(f){const w=typeof f==="function"?await f():f,U=await tF();if(!U)return"standard";if(w===U)return"in-region";else return"cross-region"}return"standard"},tF=async()=>{if(process.env[B8]&&(process.env[Fw]||process.env[Xw]))return process.env[Fw]??process.env[Xw];if(!process.env[K8])try{const{getInstanceMetadataEndpoint:f,httpRequest:w}=await import("./chunk-a2fcc46e344ae7ae.js"),U=await f();return(await w({...U,path:q8})).toString()}catch(f){}};var RQ=(f)=>{let w=async()=>{if(f.region===void 0)throw new Error("Region is missing from runtimeConfig");const U=f.region;if(typeof U==="string")return U;return U()};return{setRegion(U){w=U},region(){return w}}},LQ=(f)=>{return{region:f.region()}};var aF=/^[A-Za-z0-9+/]*={0,2}$/,CQ=(f)=>{if(f.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!aF.exec(f))throw new TypeError("Invalid base64 string.");const w=Kf(f,"base64");return new Uint8Array(w.buffer,w.byteOffset,w.byteLength)};var bQ=(f)=>{let w;if(typeof f==="string")w=d0(f);else w=f;if(typeof w!=="object"||typeof w.byteOffset!=="number"||typeof w.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return Wf(w.buffer,w.byteOffset,w.byteLength).toString("base64")};export{wX as ra,UX as sa,EX as ta,LX as ua,x as va,Q8 as wa,d0 as xa,J8 as ya,uz as za,zf as Aa,m as Ba,P1 as Ca,rX as Da,_f as Ea,ZA as Fa,JA as Ga,V9 as Ha,n9 as Ia,m9 as Ja,UG as Ka,W5 as La,u9 as Ma,h5 as Na,DA as Oa,v5 as Pa,MY as Qa,XY as Ra,YG as Sa,ZG as Ta,I7 as Ua,R7 as Va,L7 as Wa,T7 as Xa,iG as Ya,yF as Za,Hz as _a,lF as $a,lz as ab,CQ as bb,bQ as cb,EQ as db,RQ as eb,LQ as fb};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-94578320d28e33ad.js";import{x as z} from"./chunk-a5c18c07abe8fd9c.js";import{A as G0,B as W0,D as Nl,F as F0,J as Wl,K as Tl,M as Al,N as Rl,Q as sl,R as _l,X as K,Y as Hh,Z as o0,ba as T0,da as S,fa as u,ia as A0,ka as $0,la as A,ma as R0,na as bl,oa as fl,pa as I0,qa as H0,ra as eh,z as w0} from"./chunk-3ab807ceccde81f3.js";import{$a as pl,Aa as Sd,Da as Qh,Ea as B0,Fa as Pl,Ga as vl,Ha as Ml,Ia as q0,Ja as Cl,Ka as Ol,La as gl,Ma as xl,Na as y0,Oa as Q0,Qa as F,Ra as B,Sa as X0,Ta as il,Va as cl,Wa as Y0,Xa as el,Ya as Z0,_a as dh,ab as nl,bb as ol,cb as ul,db as S0,eb as m0,wa as D0,xa as E0,ya as k0,za as K0} from"./chunk-29bc27c5e126c304.js";import"./chunk-bbd36ce62b950ee5.js";import{gb as kd,hb as f} from"./chunk-9d069ba29a122630.js";import"./chunk-0ffc38ed09847e35.js";import{jb as Xh} from"./chunk-860f5fcef7074193.js";import"./chunk-a816613f5321b9db.js";var C=z(Qh(),1);var wl=z(dh(),1),wh=z(Sd(),1);var md=function(h){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:h.region},propertiesExtractor:(d,l)=>({signingProperties:{config:d,context:l}})}},dl=function(h){return{schemeId:"smithy.api#noAuth"}},Gl=async(h,d,l)=>{return{operation:wh.getSmithyContext(d).operation,region:await wh.normalizeProvider(h.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},Il=(h)=>{const d=[];switch(h.operation){case"AssumeRoleWithSAML":{d.push(dl(h));break}case"AssumeRoleWithWebIdentity":{d.push(dl(h));break}default:d.push(md(h))}return d},Jd=(h)=>({...h,stsClientCtor:R}),Hl=(h)=>{const d=Jd(h);return{...wl.resolveAwsSdkSigV4Config(d)}};var Sl=(h)=>{return{...h,useDualstackEndpoint:h.useDualstackEndpoint??!1,useFipsEndpoint:h.useFipsEndpoint??!1,useGlobalEndpoint:h.useGlobalEndpoint??!1,defaultSigningName:"sts"}},D={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var ml={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.629.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sts","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"rimraf ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts",test:"yarn test:unit","test:unit":"jest"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.629.0","@aws-sdk/core":"3.629.0","@aws-sdk/credential-provider-node":"3.629.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.620.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.614.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.3.2","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.14","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.1.12","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.14","@smithy/util-defaults-mode-node":"^3.0.14","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sts"}};var Gh=z(dh(),1);var tl=z(Qh(),1);var Ll=z(dh(),1),jl=z(Qh(),1);var al=z(kd(),1);var Jl={["required"]:!1,["type"]:"String"},yh={["required"]:!0,default:!1,["type"]:"Boolean"},Ql={["ref"]:"Endpoint"},Dl={["fn"]:"isSet",["argv"]:[{["ref"]:"Region"}]},J={["ref"]:"Region"},El={["fn"]:"aws.partition",["argv"]:[J],assign:"PartitionResult"},Xl={["ref"]:"UseFIPS"},Yl={["ref"]:"UseDualStack"},E={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},X={},kl={conditions:[{["fn"]:"stringEquals",["argv"]:[J,"aws-global"]}],["endpoint"]:E,["type"]:"endpoint"},Zl={["fn"]:"booleanEquals",["argv"]:[Xl,!0]},$l={["fn"]:"booleanEquals",["argv"]:[Yl,!0]},Kl={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},Ul={["ref"]:"PartitionResult"},Fl={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[Ul,"supportsDualStack"]}]},Bl=[{["fn"]:"isSet",["argv"]:[Ql]}],ql=[Zl],yl=[$l],Ed={version:"1.0",parameters:{Region:Jl,UseDualStack:yh,UseFIPS:yh,Endpoint:Jl,UseGlobalEndpoint:yh},rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseGlobalEndpoint"},!0]},{["fn"]:"not",["argv"]:Bl},Dl,El,{["fn"]:"booleanEquals",["argv"]:[Xl,!1]},{["fn"]:"booleanEquals",["argv"]:[Yl,!1]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"ap-northeast-1"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"ap-south-1"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"ap-southeast-1"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"ap-southeast-2"]}],endpoint:E,["type"]:"endpoint"},kl,{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"ca-central-1"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"eu-central-1"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"eu-north-1"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"eu-west-1"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"eu-west-2"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"eu-west-3"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"sa-east-1"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"us-east-1"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"us-east-2"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"us-west-1"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"us-west-2"]}],endpoint:E,["type"]:"endpoint"},{endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"{Region}"}]},headers:X},["type"]:"endpoint"}],["type"]:"tree"},{conditions:Bl,rules:[{conditions:ql,error:"Invalid Configuration: FIPS and custom endpoint are not supported",["type"]:"error"},{conditions:yl,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",["type"]:"error"},{endpoint:{url:Ql,properties:X,headers:X},["type"]:"endpoint"}],["type"]:"tree"},{conditions:[Dl],rules:[{conditions:[El],rules:[{conditions:[Zl,$l],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,Kl]},Fl],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:X,headers:X},["type"]:"endpoint"}],["type"]:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",["type"]:"error"}],["type"]:"tree"},{conditions:ql,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[Kl,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[Ul,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:X,headers:X},["type"]:"endpoint"},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:X,headers:X},["type"]:"endpoint"}],["type"]:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",["type"]:"error"}],["type"]:"tree"},{conditions:yl,rules:[{conditions:[Fl],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:X,headers:X},["type"]:"endpoint"}],["type"]:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",["type"]:"error"}],["type"]:"tree"},kl,{endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:X,headers:X},["type"]:"endpoint"}],["type"]:"tree"}],["type"]:"tree"},{error:"Invalid Configuration: Missing Region",["type"]:"error"}]},Vl=Ed;var zl=(h,d={})=>{return vl(Vl,{endpointParams:h,logger:d.logger})};Pl.aws=Ml;var rl=(h)=>{return{apiVersion:"2011-06-15",base64Decoder:h?.base64Decoder??Wl,base64Encoder:h?.base64Encoder??Rl,disableHostPrefix:h?.disableHostPrefix??!1,endpointProvider:h?.endpointProvider??zl,extensions:h?.extensions??[],httpAuthSchemeProvider:h?.httpAuthSchemeProvider??Il,httpAuthSchemes:h?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(d)=>d.getIdentityProvider("aws.auth#sigv4"),signer:new Ll.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(d)=>d.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new jl.NoAuthSigner}],logger:h?.logger??new Nl,serviceId:h?.serviceId??"STS",urlParser:h?.urlParser??al.parseUrl,utf8Decoder:h?.utf8Decoder??Tl,utf8Encoder:h?.utf8Encoder??Al}};var h0=(h)=>{fl(process.version);const d=ul(h),l=()=>d().then(bl),w=rl(h);return Gh.emitWarningIfUnsupportedVersion(process.version),{...w,...h,runtime:"node",defaultsMode:d,bodyLengthChecker:h?.bodyLengthChecker??ol,credentialDefaultProvider:h?.credentialDefaultProvider??Xh,defaultUserAgentProvider:h?.defaultUserAgentProvider??pl({serviceId:w.serviceId,clientVersion:ml.version}),httpAuthSchemes:h?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(G)=>G.getIdentityProvider("aws.auth#sigv4")||(async(H)=>await Xh(H?.__config||{})()),signer:new Gh.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(G)=>G.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new tl.NoAuthSigner}],maxAttempts:h?.maxAttempts??f(cl),region:h?.region??f(gl,xl),requestHandler:sl.create(h?.requestHandler??l),retryMode:h?.retryMode??f({...el,default:async()=>(await l()).retryMode||il}),sha256:h?.sha256??nl.bind(null,"sha256"),streamCollector:h?.streamCollector??_l,useDualstackEndpoint:h?.useDualstackEndpoint??f(Cl),useFipsEndpoint:h?.useFipsEndpoint??f(Ol)}};var l0=(h)=>{const d=h.httpAuthSchemes;let{httpAuthSchemeProvider:l,credentials:w}=h;return{setHttpAuthScheme(G){const H=d.findIndex((I)=>I.schemeId===G.schemeId);if(H===-1)d.push(G);else d.splice(H,1,G)},httpAuthSchemes(){return d},setHttpAuthSchemeProvider(G){l=G},httpAuthSchemeProvider(){return l},setCredentials(G){w=G},credentials(){return w}}},d0=(h)=>{return{httpAuthSchemes:h.httpAuthSchemes(),httpAuthSchemeProvider:h.httpAuthSchemeProvider(),credentials:h.credentials()}};var Ih=(h)=>h,J0=(h,d)=>{const l={...Ih(S0(h)),...Ih(I0(h)),...Ih(w0(h)),...Ih(l0(h))};return d.forEach((w)=>w.configure(l)),{...h,...m0(l),...H0(l),...G0(l),...d0(l)}};class R extends F0{constructor(...[h]){const d=h0(h||{}),l=Sl(d),w=B0(l),G=Y0(w),H=y0(G),I=D0(H),Q=X0(I),v=Hl(Q),M=J0(v,h?.extensions||[]);super(M);this.config=M,this.middlewareStack.use(q0(this.config)),this.middlewareStack.use(Z0(this.config)),this.middlewareStack.use(Q0(this.config)),this.middlewareStack.use(E0(this.config)),this.middlewareStack.use(k0(this.config)),this.middlewareStack.use(K0(this.config)),this.middlewareStack.use(C.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Gl,identityProviderConfigProvider:async(n)=>new C.DefaultIdentityProviderConfig({"aws.auth#sigv4":n.credentials})})),this.middlewareStack.use(C.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class Y extends $0{constructor(h){super(h);Object.setPrototypeOf(this,Y.prototype)}}class Sh extends Y{constructor(h){super({name:"ExpiredTokenException",$fault:"client",...h});this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,Sh.prototype)}}class mh extends Y{constructor(h){super({name:"MalformedPolicyDocumentException",$fault:"client",...h});this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,mh.prototype)}}class Jh extends Y{constructor(h){super({name:"PackedPolicyTooLargeException",$fault:"client",...h});this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,Jh.prototype)}}class Dh extends Y{constructor(h){super({name:"RegionDisabledException",$fault:"client",...h});this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,Dh.prototype)}}class Eh extends Y{constructor(h){super({name:"IDPRejectedClaimException",$fault:"client",...h});this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,Eh.prototype)}}class kh extends Y{constructor(h){super({name:"InvalidIdentityTokenException",$fault:"client",...h});this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,kh.prototype)}}class Kh extends Y{constructor(h){super({name:"IDPCommunicationErrorException",$fault:"client",...h});this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,Kh.prototype)}}class Fh extends Y{constructor(h){super({name:"InvalidAuthorizationMessageException",$fault:"client",...h});this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,Fh.prototype)}}var o=(h)=>({...h,...h.SecretAccessKey&&{SecretAccessKey:Hh}}),U0=(h)=>({...h,...h.Credentials&&{Credentials:o(h.Credentials)}}),V0=(h)=>({...h,...h.SAMLAssertion&&{SAMLAssertion:Hh}}),P0=(h)=>({...h,...h.Credentials&&{Credentials:o(h.Credentials)}}),v0=(h)=>({...h,...h.WebIdentityToken&&{WebIdentityToken:Hh}}),M0=(h)=>({...h,...h.Credentials&&{Credentials:o(h.Credentials)}}),z0=(h)=>({...h,...h.Credentials&&{Credentials:o(h.Credentials)}}),N0=(h)=>({...h,...h.Credentials&&{Credentials:o(h.Credentials)}});var P=z(dh(),1);var L0=async(h,d)=>{const l=a;let w;return w=b({...Zd(h,d),[s]:ud,[_]:r}),j(d,l,"/",void 0,w)},j0=async(h,d)=>{const l=a;let w;return w=b({...$d(h,d),[s]:td,[_]:r}),j(d,l,"/",void 0,w)},a0=async(h,d)=>{const l=a;let w;return w=b({...Ud(h,d),[s]:hw,[_]:r}),j(d,l,"/",void 0,w)},r0=async(h,d)=>{const l=a;let w;return w=b({...Vd(h,d),[s]:lw,[_]:r}),j(d,l,"/",void 0,w)},s0=async(h,d)=>{const l=a;let w;return w=b({...Pd(h,d),[s]:dw,[_]:r}),j(d,l,"/",void 0,w)},_0=async(h,d)=>{const l=a;let w;return w=b({...vd(h,d),[s]:ww,[_]:r}),j(d,l,"/",void 0,w)},b0=async(h,d)=>{const l=a;let w;return w=b({...Md(h,d),[s]:Gw,[_]:r}),j(d,l,"/",void 0,w)},f0=async(h,d)=>{const l=a;let w;return w=b({...zd(h,d),[s]:Iw,[_]:r}),j(d,l,"/",void 0,w)},C0=async(h,d)=>{if(h.statusCode>=300)return L(h,d);const l=await P.parseXmlBody(h.body,d);let w={};return w=Ld(l.AssumeRoleResult,d),{$metadata:k(h),...w}},O0=async(h,d)=>{if(h.statusCode>=300)return L(h,d);const l=await P.parseXmlBody(h.body,d);let w={};return w=jd(l.AssumeRoleWithSAMLResult,d),{$metadata:k(h),...w}},g0=async(h,d)=>{if(h.statusCode>=300)return L(h,d);const l=await P.parseXmlBody(h.body,d);let w={};return w=ad(l.AssumeRoleWithWebIdentityResult,d),{$metadata:k(h),...w}},x0=async(h,d)=>{if(h.statusCode>=300)return L(h,d);const l=await P.parseXmlBody(h.body,d);let w={};return w=rd(l.DecodeAuthorizationMessageResult,d),{$metadata:k(h),...w}},i0=async(h,d)=>{if(h.statusCode>=300)return L(h,d);const l=await P.parseXmlBody(h.body,d);let w={};return w=bd(l.GetAccessKeyInfoResult,d),{$metadata:k(h),...w}},c0=async(h,d)=>{if(h.statusCode>=300)return L(h,d);const l=await P.parseXmlBody(h.body,d);let w={};return w=fd(l.GetCallerIdentityResult,d),{$metadata:k(h),...w}},e0=async(h,d)=>{if(h.statusCode>=300)return L(h,d);const l=await P.parseXmlBody(h.body,d);let w={};return w=Cd(l.GetFederationTokenResult,d),{$metadata:k(h),...w}},p0=async(h,d)=>{if(h.statusCode>=300)return L(h,d);const l=await P.parseXmlBody(h.body,d);let w={};return w=Od(l.GetSessionTokenResult,d),{$metadata:k(h),...w}},L=async(h,d)=>{const l={...h,body:await P.parseXmlErrorBody(h.body,d)},w=Hw(h,l.body);switch(w){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Kd(l,d);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Qd(l,d);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Xd(l,d);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Yd(l,d);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await Bd(l,d);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await yd(l,d);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await Fd(l,d);case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await qd(l,d);default:const G=l.body;return od({output:h,parsedBody:G.Error,errorCode:w})}},Kd=async(h,d)=>{const l=h.body,w=sd(l.Error,d),G=new Sh({$metadata:k(h),...w});return A(G,l)},Fd=async(h,d)=>{const l=h.body,w=gd(l.Error,d),G=new Kh({$metadata:k(h),...w});return A(G,l)},Bd=async(h,d)=>{const l=h.body,w=xd(l.Error,d),G=new Eh({$metadata:k(h),...w});return A(G,l)},qd=async(h,d)=>{const l=h.body,w=id(l.Error,d),G=new Fh({$metadata:k(h),...w});return A(G,l)},yd=async(h,d)=>{const l=h.body,w=cd(l.Error,d),G=new kh({$metadata:k(h),...w});return A(G,l)},Qd=async(h,d)=>{const l=h.body,w=ed(l.Error,d),G=new mh({$metadata:k(h),...w});return A(G,l)},Xd=async(h,d)=>{const l=h.body,w=pd(l.Error,d),G=new Jh({$metadata:k(h),...w});return A(G,l)},Yd=async(h,d)=>{const l=h.body,w=nd(l.Error,d),G=new Dh({$metadata:k(h),...w});return A(G,l)},Zd=(h,d)=>{const l={};if(h[T]!=null)l[T]=h[T];if(h[i]!=null)l[i]=h[i];if(h[$]!=null){const w=Bh(h[$],d);if(h[$]?.length===0)l.PolicyArns=[];Object.entries(w).forEach(([G,H])=>{const I=`PolicyArns.${G}`;l[I]=H})}if(h[Z]!=null)l[Z]=h[Z];if(h[y]!=null)l[y]=h[y];if(h[e]!=null){const w=n0(h[e],d);if(h[e]?.length===0)l.Tags=[];Object.entries(w).forEach(([G,H])=>{const I=`Tags.${G}`;l[I]=H})}if(h[Oh]!=null){const w=Rd(h[Oh],d);if(h[Oh]?.length===0)l.TransitiveTagKeys=[];Object.entries(w).forEach(([G,H])=>{const I=`TransitiveTagKeys.${G}`;l[I]=H})}if(h[Vh]!=null)l[Vh]=h[Vh];if(h[c]!=null)l[c]=h[c];if(h[p]!=null)l[p]=h[p];if(h[V]!=null)l[V]=h[V];if(h[Lh]!=null){const w=Td(h[Lh],d);if(h[Lh]?.length===0)l.ProvidedContexts=[];Object.entries(w).forEach(([G,H])=>{const I=`ProvidedContexts.${G}`;l[I]=H})}return l},$d=(h,d)=>{const l={};if(h[T]!=null)l[T]=h[T];if(h[Ah]!=null)l[Ah]=h[Ah];if(h[_h]!=null)l[_h]=h[_h];if(h[$]!=null){const w=Bh(h[$],d);if(h[$]?.length===0)l.PolicyArns=[];Object.entries(w).forEach(([G,H])=>{const I=`PolicyArns.${G}`;l[I]=H})}if(h[Z]!=null)l[Z]=h[Z];if(h[y]!=null)l[y]=h[y];return l},Ud=(h,d)=>{const l={};if(h[T]!=null)l[T]=h[T];if(h[i]!=null)l[i]=h[i];if(h[ih]!=null)l[ih]=h[ih];if(h[jh]!=null)l[jh]=h[jh];if(h[$]!=null){const w=Bh(h[$],d);if(h[$]?.length===0)l.PolicyArns=[];Object.entries(w).forEach(([G,H])=>{const I=`PolicyArns.${G}`;l[I]=H})}if(h[Z]!=null)l[Z]=h[Z];if(h[y]!=null)l[y]=h[y];return l},Vd=(h,d)=>{const l={};if(h[Ph]!=null)l[Ph]=h[Ph];return l},Pd=(h,d)=>{const l={};if(h[O]!=null)l[O]=h[O];return l},vd=(h,d)=>{return{}},Md=(h,d)=>{const l={};if(h[Wh]!=null)l[Wh]=h[Wh];if(h[Z]!=null)l[Z]=h[Z];if(h[$]!=null){const w=Bh(h[$],d);if(h[$]?.length===0)l.PolicyArns=[];Object.entries(w).forEach(([G,H])=>{const I=`PolicyArns.${G}`;l[I]=H})}if(h[y]!=null)l[y]=h[y];if(h[e]!=null){const w=n0(h[e],d);if(h[e]?.length===0)l.Tags=[];Object.entries(w).forEach(([G,H])=>{const I=`Tags.${G}`;l[I]=H})}return l},zd=(h,d)=>{const l={};if(h[y]!=null)l[y]=h[y];if(h[c]!=null)l[c]=h[c];if(h[p]!=null)l[p]=h[p];return l},Bh=(h,d)=>{const l={};let w=1;for(let G of h){if(G===null)continue;const H=Nd(G,d);Object.entries(H).forEach(([I,Q])=>{l[`member.${w}.${I}`]=Q}),w++}return l},Nd=(h,d)=>{const l={};if(h[ch]!=null)l[ch]=h[ch];return l},Wd=(h,d)=>{const l={};if(h[Rh]!=null)l[Rh]=h[Rh];if(h[Zh]!=null)l[Zh]=h[Zh];return l},Td=(h,d)=>{const l={};let w=1;for(let G of h){if(G===null)continue;const H=Wd(G,d);Object.entries(H).forEach(([I,Q])=>{l[`member.${w}.${I}`]=Q}),w++}return l},Ad=(h,d)=>{const l={};if(h[Nh]!=null)l[Nh]=h[Nh];if(h[xh]!=null)l[xh]=h[xh];return l},Rd=(h,d)=>{const l={};let w=1;for(let G of h){if(G===null)continue;l[`member.${w}`]=G,w++}return l},n0=(h,d)=>{const l={};let w=1;for(let G of h){if(G===null)continue;const H=Ad(G,d);Object.entries(H).forEach(([I,Q])=>{l[`member.${w}.${I}`]=Q}),w++}return l},ph=(h,d)=>{const l={};if(h[Yh]!=null)l[Yh]=S(h[Yh]);if(h[W]!=null)l[W]=S(h[W]);return l},Ld=(h,d)=>{const l={};if(h[q]!=null)l[q]=t(h[q],d);if(h[N]!=null)l[N]=ph(h[N],d);if(h[U]!=null)l[U]=u(h[U]);if(h[V]!=null)l[V]=S(h[V]);return l},jd=(h,d)=>{const l={};if(h[q]!=null)l[q]=t(h[q],d);if(h[N]!=null)l[N]=ph(h[N],d);if(h[U]!=null)l[U]=u(h[U]);if(h[rh]!=null)l[rh]=S(h[rh]);if(h[fh]!=null)l[fh]=S(h[fh]);if(h[zh]!=null)l[zh]=S(h[zh]);if(h[x]!=null)l[x]=S(h[x]);if(h[Th]!=null)l[Th]=S(h[Th]);if(h[V]!=null)l[V]=S(h[V]);return l},ad=(h,d)=>{const l={};if(h[q]!=null)l[q]=t(h[q],d);if(h[bh]!=null)l[bh]=S(h[bh]);if(h[N]!=null)l[N]=ph(h[N],d);if(h[U]!=null)l[U]=u(h[U]);if(h[ah]!=null)l[ah]=S(h[ah]);if(h[x]!=null)l[x]=S(h[x]);if(h[V]!=null)l[V]=S(h[V]);return l},t=(h,d)=>{const l={};if(h[O]!=null)l[O]=S(h[O]);if(h[sh]!=null)l[sh]=S(h[sh]);if(h[Ch]!=null)l[Ch]=S(h[Ch]);if(h[Uh]!=null)l[Uh]=T0(A0(h[Uh]));return l},rd=(h,d)=>{const l={};if(h[$h]!=null)l[$h]=S(h[$h]);return l},sd=(h,d)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},_d=(h,d)=>{const l={};if(h[Mh]!=null)l[Mh]=S(h[Mh]);if(h[W]!=null)l[W]=S(h[W]);return l},bd=(h,d)=>{const l={};if(h[g]!=null)l[g]=S(h[g]);return l},fd=(h,d)=>{const l={};if(h[gh]!=null)l[gh]=S(h[gh]);if(h[g]!=null)l[g]=S(h[g]);if(h[W]!=null)l[W]=S(h[W]);return l},Cd=(h,d)=>{const l={};if(h[q]!=null)l[q]=t(h[q],d);if(h[vh]!=null)l[vh]=_d(h[vh],d);if(h[U]!=null)l[U]=u(h[U]);return l},Od=(h,d)=>{const l={};if(h[q]!=null)l[q]=t(h[q],d);return l},gd=(h,d)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},xd=(h,d)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},id=(h,d)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},cd=(h,d)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},ed=(h,d)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},pd=(h,d)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},nd=(h,d)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},k=(h)=>({httpStatusCode:h.statusCode,requestId:h.headers["x-amzn-requestid"]??h.headers["x-amzn-request-id"]??h.headers["x-amz-request-id"],extendedRequestId:h.headers["x-amz-id-2"],cfId:h.headers["x-amz-cf-id"]});var od=R0(Y),j=async(h,d,l,w,G)=>{const{hostname:H,protocol:I="https",port:Q,path:v}=await h.endpoint(),M={protocol:I,hostname:H,port:Q,method:"POST",path:v.endsWith("/")?v.slice(0,-1)+l:v+l,headers:d};if(w!==void 0)M.hostname=w;if(G!==void 0)M.body=G;return new W0(M)},a={"content-type":"application/x-www-form-urlencoded"},r="2011-06-15",s="Action",O="AccessKeyId",ud="AssumeRole",Yh="AssumedRoleId",N="AssumedRoleUser",td="AssumeRoleWithSAML",hw="AssumeRoleWithWebIdentity",g="Account",W="Arn",x="Audience",q="Credentials",Zh="ContextAssertion",lw="DecodeAuthorizationMessage",$h="DecodedMessage",y="DurationSeconds",Uh="Expiration",Vh="ExternalId",Ph="EncodedMessage",vh="FederatedUser",Mh="FederatedUserId",dw="GetAccessKeyInfo",ww="GetCallerIdentity",Gw="GetFederationToken",Iw="GetSessionToken",zh="Issuer",Nh="Key",Wh="Name",Th="NameQualifier",Z="Policy",$="PolicyArns",Ah="PrincipalArn",Rh="ProviderArn",Lh="ProvidedContexts",jh="ProviderId",U="PackedPolicySize",ah="Provider",T="RoleArn",i="RoleSessionName",rh="Subject",sh="SecretAccessKey",_h="SAMLAssertion",bh="SubjectFromWebIdentityToken",V="SourceIdentity",c="SerialNumber",fh="SubjectType",Ch="SessionToken",e="Tags",p="TokenCode",Oh="TransitiveTagKeys",gh="UserId",_="Version",xh="Value",ih="WebIdentityToken",ch="arn",m="message",b=(h)=>Object.entries(h).map(([d,l])=>eh(d)+"="+eh(l)).join("&"),Hw=(h,d)=>{if(d.Error?.Code!==void 0)return d.Error.Code;if(h.statusCode==404)return"NotFound"};class hh extends K.classBuilder().ep({...D}).m(function(h,d,l,w){return[F(l,this.serialize,this.deserialize),B(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").f(void 0,U0).ser(L0).de(C0).build(){}class nh extends K.classBuilder().ep({...D}).m(function(h,d,l,w){return[F(l,this.serialize,this.deserialize),B(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithSAML",{}).n("STSClient","AssumeRoleWithSAMLCommand").f(V0,P0).ser(j0).de(O0).build(){}class lh extends K.classBuilder().ep({...D}).m(function(h,d,l,w){return[F(l,this.serialize,this.deserialize),B(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").f(v0,M0).ser(a0).de(g0).build(){}class oh extends K.classBuilder().ep({...D}).m(function(h,d,l,w){return[F(l,this.serialize,this.deserialize),B(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","DecodeAuthorizationMessage",{}).n("STSClient","DecodeAuthorizationMessageCommand").f(void 0,void 0).ser(r0).de(x0).build(){}class uh extends K.classBuilder().ep({...D}).m(function(h,d,l,w){return[F(l,this.serialize,this.deserialize),B(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetAccessKeyInfo",{}).n("STSClient","GetAccessKeyInfoCommand").f(void 0,void 0).ser(s0).de(i0).build(){}class th extends K.classBuilder().ep({...D}).m(function(h,d,l,w){return[F(l,this.serialize,this.deserialize),B(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetCallerIdentity",{}).n("STSClient","GetCallerIdentityCommand").f(void 0,void 0).ser(_0).de(c0).build(){}class hl extends K.classBuilder().ep({...D}).m(function(h,d,l,w){return[F(l,this.serialize,this.deserialize),B(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetFederationToken",{}).n("STSClient","GetFederationTokenCommand").f(void 0,z0).ser(b0).de(e0).build(){}class ll extends K.classBuilder().ep({...D}).m(function(h,d,l,w){return[F(l,this.serialize,this.deserialize),B(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetSessionToken",{}).n("STSClient","GetSessionTokenCommand").f(void 0,N0).ser(f0).de(p0).build(){}var Sw={AssumeRoleCommand:hh,AssumeRoleWithSAMLCommand:nh,AssumeRoleWithWebIdentityCommand:lh,DecodeAuthorizationMessageCommand:oh,GetAccessKeyInfoCommand:uh,GetCallerIdentityCommand:th,GetFederationTokenCommand:hl,GetSessionTokenCommand:ll};class u0 extends R{}o0(Sw,u0);var t0="us-east-1",hd=(h)=>{if(typeof h?.Arn==="string"){const d=h.Arn.split(":");if(d.length>4&&d[4]!=="")return d[4]}return},ld=async(h,d,l)=>{const w=typeof h==="function"?await h():h,G=typeof d==="function"?await d():d;return l?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${w} (provider)`,`${G} (parent client)`,`${t0} (STS default)`),w??G??t0},dd=(h,d)=>{let l,w;return async(G,H)=>{if(w=G,!l){const{logger:M=h?.parentClientConfig?.logger,region:n,requestHandler:qh=h?.parentClientConfig?.requestHandler,credentialProviderLogger:Id}=h,Hd=await ld(n,h?.parentClientConfig?.region,Id);l=new d({credentialDefaultProvider:()=>async()=>w,region:Hd,requestHandler:qh,logger:M})}const{Credentials:I,AssumedRoleUser:Q}=await l.send(new hh(H));if(!I||!I.AccessKeyId||!I.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${H.RoleArn}`);const v=hd(Q);return{accessKeyId:I.AccessKeyId,secretAccessKey:I.SecretAccessKey,sessionToken:I.SessionToken,expiration:I.Expiration,...I.CredentialScope&&{credentialScope:I.CredentialScope},...v&&{accountId:v}}}},wd=(h,d)=>{let l;return async(w)=>{if(!l){const{logger:Q=h?.parentClientConfig?.logger,region:v,requestHandler:M=h?.parentClientConfig?.requestHandler,credentialProviderLogger:n}=h,qh=await ld(v,h?.parentClientConfig?.region,n);l=new d({region:qh,requestHandler:M,logger:Q})}const{Credentials:G,AssumedRoleUser:H}=await l.send(new lh(w));if(!G||!G.AccessKeyId||!G.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${w.RoleArn}`);const I=hd(H);return{accessKeyId:G.AccessKeyId,secretAccessKey:G.SecretAccessKey,sessionToken:G.SessionToken,expiration:G.Expiration,...G.CredentialScope&&{credentialScope:G.CredentialScope},...I&&{accountId:I}}}};var Gd=(h,d)=>{if(!d)return h;else return class l extends h{constructor(w){super(w);for(let G of d)this.middlewareStack.use(G)}}},mw=(h={},d)=>dd(h,Gd(R,d)),Jw=(h={},d)=>wd(h,Gd(R,d)),AG=(h)=>(d)=>h({roleAssumer:mw(d),roleAssumerWithWebIdentity:Jw(d),...d});export{Jw as getDefaultRoleAssumerWithWebIdentity,mw as getDefaultRoleAssumer,AG as decorateDefaultCredentialProvider,F0 as __Client,Y as STSServiceException,R as STSClient,u0 as STS,Dh as RegionDisabledException,Jh as PackedPolicyTooLargeException,mh as MalformedPolicyDocumentException,kh as InvalidIdentityTokenException,Fh as InvalidAuthorizationMessageException,Eh as IDPRejectedClaimException,Kh as IDPCommunicationErrorException,N0 as GetSessionTokenResponseFilterSensitiveLog,ll as GetSessionTokenCommand,z0 as GetFederationTokenResponseFilterSensitiveLog,hl as GetFederationTokenCommand,th as GetCallerIdentityCommand,uh as GetAccessKeyInfoCommand,Sh as ExpiredTokenException,oh as DecodeAuthorizationMessageCommand,o as CredentialsFilterSensitiveLog,M0 as AssumeRoleWithWebIdentityResponseFilterSensitiveLog,v0 as AssumeRoleWithWebIdentityRequestFilterSensitiveLog,lh as AssumeRoleWithWebIdentityCommand,P0 as AssumeRoleWithSAMLResponseFilterSensitiveLog,V0 as AssumeRoleWithSAMLRequestFilterSensitiveLog,nh as AssumeRoleWithSAMLCommand,U0 as AssumeRoleResponseFilterSensitiveLog,hh as AssumeRoleCommand,K as $Command};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{y as l} from"./chunk-7ce930fe69575c87.js";import{lb as m} from"./chunk-c72bfaa252a03f6f.js";var E=l(m(),1);import{readFileSync as S} from"fs";var t=(e)=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:o,roleSessionName:r,webIdentityToken:n,providerId:c,policyArns:i,policy:_,durationSeconds:N}=e;let{roleAssumerWithWebIdentity:s}=e;if(!s){const{getDefaultRoleAssumerWithWebIdentity:d}=await import("./chunk-8f986f307ff91bd3.js");s=d({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:e.parentClientConfig},e.clientPlugins)}return s({RoleArn:o,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:c,PolicyArns:i,Policy:_,DurationSeconds:N})};var p="AWS_WEB_IDENTITY_TOKEN_FILE",f="AWS_ROLE_ARN",T="AWS_ROLE_SESSION_NAME",I=(e={})=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");const o=e?.webIdentityTokenFile??process.env[p],r=e?.roleArn??process.env[f],n=e?.roleSessionName??process.env[T];if(!o||!r)throw new E.CredentialsProviderError("Web identity configuration not specified",{logger:e.logger});return t({...e,webIdentityToken:S(o,{encoding:"ascii"}),roleArn:r,roleSessionName:n})()};export{t as fromWebToken,I as fromTokenFile};