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,18 +0,0 @@
1
- import{s as D1,t as M} from"./chunk-c675f193d459818e.js";import{D as x,E as Nw,F as lL,G as _F,J as gw,K as g8,N as s8,R as vE,U as JG} from"./chunk-c9707ae8f1d346ff.js";import{gb as G0} from"./chunk-72821f055108528e.js";import{hb as X0,ib as Tw} from"./chunk-50ea27a13eb62b5e.js";import{jb as z$} from"./chunk-c29701ffef4ca07a.js";import{pb as Jw} from"./chunk-ee604d0215ea07e6.js";var P0=M((xQ,tw)=>{var{defineProperty:e0,getOwnPropertyDescriptor:W4,getOwnPropertyNames:L4}=Object,R4=Object.prototype.hasOwnProperty,rw=($,w)=>e0($,"name",{value:w,configurable:!0}),X4=($,w)=>{for(var U in w)e0($,U,{get:w[U],enumerable:!0})},Z4=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of L4(w))if(!R4.call($,f)&&f!==U)e0($,f,{get:()=>w[f],enumerable:!(E=W4(w,f))||E.enumerable})}return $},F4=($)=>Z4(e0({},"__esModule",{value:!0}),$),ow={};X4(ow,{getSmithyContext:()=>I4,normalizeProvider:()=>Y4});tw.exports=F4(ow);var iw=G0(),I4=rw(($)=>$[iw.SMITHY_CONTEXT_KEY]||($[iw.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),Y4=rw(($)=>{if(typeof $==="function")return $;const w=Promise.resolve($);return()=>w},"normalizeProvider")});var z0=M((aw)=>{Object.defineProperty(aw,"__esModule",{value:!0});aw.getHomeDir=void 0;var z4=import.meta.require("os"),Q4=import.meta.require("path"),W$={},M4=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},J4=()=>{const{HOME:$,USERPROFILE:w,HOMEPATH:U,HOMEDRIVE:E=`C:${Q4.sep}`}=process.env;if($)return $;if(w)return w;if(U)return`${E}${U}`;const f=M4();if(!W$[f])W$[f]=z4.homedir();return W$[f]};aw.getHomeDir=J4});var L$=M(($U)=>{Object.defineProperty($U,"__esModule",{value:!0});$U.getSSOTokenFilepath=void 0;var T4=import.meta.require("crypto"),K4=import.meta.require("path"),O4=z0(),A4=($)=>{const U=T4.createHash("sha1").update($).digest("hex");return K4.join(O4.getHomeDir(),".aws","sso","cache",`${U}.json`)};$U.getSSOTokenFilepath=A4});var EU=M((UU)=>{Object.defineProperty(UU,"__esModule",{value:!0});UU.getSSOTokenFromFile=void 0;var B4=import.meta.require("fs"),V4=L$(),{readFile:H4}=B4.promises,C4=async($)=>{const w=V4.getSSOTokenFilepath($),U=await H4(w,"utf8");return JSON.parse(U)};UU.getSSOTokenFromFile=C4});var X$=M((GU)=>{Object.defineProperty(GU,"__esModule",{value:!0});GU.slurpFile=void 0;var N4=import.meta.require("fs"),{readFile:q4}=N4.promises,R$={},P4=($,w)=>{if(!R$[$]||(w===null||w===void 0?void 0:w.ignoreCache))R$[$]=q4($,"utf8");return R$[$]};GU.slurpFile=P4});var Y$=M((pQ,S0)=>{var{defineProperty:U1,getOwnPropertyDescriptor:j4,getOwnPropertyNames:S4}=Object,b4=Object.prototype.hasOwnProperty,y=($,w)=>U1($,"name",{value:w,configurable:!0}),h4=($,w)=>{for(var U in w)U1($,U,{get:w[U],enumerable:!0})},Z$=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of S4(w))if(!b4.call($,f)&&f!==U)U1($,f,{get:()=>w[f],enumerable:!(E=j4(w,f))||E.enumerable})}return $},I$=($,w,U)=>(Z$($,w,"default"),U&&Z$(U,w,"default")),D4=($)=>Z$(U1({},"__esModule",{value:!0}),$),j0={};h4(j0,{CONFIG_PREFIX_SEPARATOR:()=>W0,DEFAULT_PROFILE:()=>ZU,ENV_PROFILE:()=>XU,getProfileName:()=>k4,loadSharedConfigFiles:()=>IU,loadSsoSessionData:()=>m4,parseKnownFiles:()=>r4});S0.exports=D4(j0);I$(j0,z0(),S0.exports);var XU="AWS_PROFILE",ZU="default",k4=y(($)=>$.profile||process.env[XU]||ZU,"getProfileName");I$(j0,L$(),S0.exports);I$(j0,EU(),S0.exports);var $1=G0(),c4=y(($)=>Object.entries($).filter(([w])=>{const U=w.indexOf(W0);if(U===-1)return!1;return Object.values($1.IniSectionType).includes(w.substring(0,U))}).reduce((w,[U,E])=>{const f=U.indexOf(W0),G=U.substring(0,f)===$1.IniSectionType.PROFILE?U.substring(f+1):U;return w[G]=E,w},{...$.default&&{default:$.default}}),"getConfigData"),w1=import.meta.require("path"),v4=z0(),x4="AWS_CONFIG_FILE",FU=y(()=>process.env[x4]||w1.join(v4.getHomeDir(),".aws","config"),"getConfigFilepath"),y4=z0(),u4="AWS_SHARED_CREDENTIALS_FILE",_4=y(()=>process.env[u4]||w1.join(y4.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),d4=z0(),p4=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,g4=["__proto__","profile __proto__"],F$=y(($)=>{const w={};let U,E;for(let f of $.split(/\r?\n/)){const G=f.split(/(^|\s)[;#]/)[0].trim();if(G[0]==="["&&G[G.length-1]==="]"){U=void 0,E=void 0;const L=G.substring(1,G.length-1),R=p4.exec(L);if(R){const[,X,,Z]=R;if(Object.values($1.IniSectionType).includes(X))U=[X,Z].join(W0)}else U=L;if(g4.includes(L))throw new Error(`Found invalid profile name "${L}"`)}else if(U){const L=G.indexOf("=");if(![0,-1].includes(L)){const[R,X]=[G.substring(0,L).trim(),G.substring(L+1).trim()];if(X==="")E=R;else{if(E&&f.trimStart()===f)E=void 0;w[U]=w[U]||{};const Z=E?[E,R].join(W0):R;w[U][Z]=X}}}}return w},"parseIni"),LU=X$(),RU=y(()=>({}),"swallowError"),W0=".",IU=y(async($={})=>{const{filepath:w=_4(),configFilepath:U=FU()}=$,E=d4.getHomeDir();let G=w;if(w.startsWith("~/"))G=w1.join(E,w.slice(2));let W=U;if(U.startsWith("~/"))W=w1.join(E,U.slice(2));const L=await Promise.all([LU.slurpFile(W,{ignoreCache:$.ignoreCache}).then(F$).then(c4).catch(RU),LU.slurpFile(G,{ignoreCache:$.ignoreCache}).then(F$).catch(RU)]);return{configFile:L[0],credentialsFile:L[1]}},"loadSharedConfigFiles"),s4=y(($)=>Object.entries($).filter(([w])=>w.startsWith($1.IniSectionType.SSO_SESSION+W0)).reduce((w,[U,E])=>({...w,[U.substring(U.indexOf(W0)+1)]:E}),{}),"getSsoSessionData"),n4=X$(),l4=y(()=>({}),"swallowError"),m4=y(async($={})=>n4.slurpFile($.configFilepath??FU()).then(F$).then(s4).catch(l4),"loadSsoSessionData"),i4=y((...$)=>{const w={};for(let U of $)for(let[E,f]of Object.entries(U))if(w[E]!==void 0)Object.assign(w[E],f);else w[E]=f;return w},"mergeConfigFiles"),r4=y(async($)=>{const w=await IU($);return i4(w.configFile,w.credentialsFile)},"parseKnownFiles")});var MU=M((gQ,QU)=>{var Q$=function($){try{const w=new Set(Array.from($.match(/([A-Z_]){3,}/g)??[]));return w.delete("CONFIG"),w.delete("CONFIG_PREFIX_SEPARATOR"),w.delete("ENV"),[...w].join(", ")}catch(w){return $}},f1=Object.defineProperty,o4=Object.getOwnPropertyDescriptor,t4=Object.getOwnPropertyNames,a4=Object.prototype.hasOwnProperty,Q0=($,w)=>f1($,"name",{value:w,configurable:!0}),e4=($,w)=>{for(var U in w)f1($,U,{get:w[U],enumerable:!0})},$6=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of t4(w))if(!a4.call($,f)&&f!==U)f1($,f,{get:()=>w[f],enumerable:!(E=o4(w,f))||E.enumerable})}return $},w6=($)=>$6(f1({},"__esModule",{value:!0}),$),zU={};e4(zU,{loadConfig:()=>W6});QU.exports=w6(zU);var b0=z$();Q0(Q$,"getSelectorName");var U6=Q0(($,w)=>async()=>{try{const U=$(process.env);if(U===void 0)throw new Error;return U}catch(U){throw new b0.CredentialsProviderError(U.message||`Not found in ENV: ${Q$($.toString())}`,{logger:w})}},"fromEnv"),YU=Y$(),f6=Q0(($,{preferredFile:w="config",...U}={})=>async()=>{const E=YU.getProfileName(U),{configFile:f,credentialsFile:G}=await YU.loadSharedConfigFiles(U),W=G[E]||{},L=f[E]||{},R=w==="config"?{...W,...L}:{...L,...W};try{const Z=$(R,w==="config"?f:G);if(Z===void 0)throw new Error;return Z}catch(X){throw new b0.CredentialsProviderError(X.message||`Not found in config files w/ profile [${E}]: ${Q$($.toString())}`,{logger:U.logger})}},"fromSharedConfigFiles"),E6=Q0(($)=>typeof $==="function","isFunction"),G6=Q0(($)=>E6($)?async()=>await $():b0.fromStatic($),"fromStatic"),W6=Q0(({environmentVariableSelector:$,configFileSelector:w,default:U},E={})=>b0.memoize(b0.chain(U6($),f6(w,E),G6(U))),"loadConfig")});var BU=M((OU)=>{Object.defineProperty(OU,"__esModule",{value:!0});OU.getEndpointUrlConfig=void 0;var JU=Y$(),TU="AWS_ENDPOINT_URL",KU="endpoint_url",L6=($)=>({environmentVariableSelector:(w)=>{const U=$.split(" ").map((G)=>G.toUpperCase()),E=w[[TU,...U].join("_")];if(E)return E;const f=w[TU];if(f)return f;return},configFileSelector:(w,U)=>{if(U&&w.services){const f=U[["services",w.services].join(JU.CONFIG_PREFIX_SEPARATOR)];if(f){const G=$.split(" ").map((L)=>L.toLowerCase()),W=f[[G.join("_"),KU].join(JU.CONFIG_PREFIX_SEPARATOR)];if(W)return W}}const E=w[KU];if(E)return E;return},default:void 0});OU.getEndpointUrlConfig=L6});var CU=M((VU)=>{Object.defineProperty(VU,"__esModule",{value:!0});VU.getEndpointFromConfig=void 0;var R6=MU(),X6=BU(),Z6=async($)=>R6.loadConfig(X6.getEndpointUrlConfig($))();VU.getEndpointFromConfig=Z6});var jU=M((lQ,PU)=>{var qU=function($){const w={};if($=$.replace(/^\?/,""),$)for(let U of $.split("&")){let[E,f=null]=U.split("=");if(E=decodeURIComponent(E),f)f=decodeURIComponent(f);if(!(E in w))w[E]=f;else if(Array.isArray(w[E]))w[E].push(f);else w[E]=[w[E],f]}return w},E1=Object.defineProperty,F6=Object.getOwnPropertyDescriptor,I6=Object.getOwnPropertyNames,Y6=Object.prototype.hasOwnProperty,z6=($,w)=>E1($,"name",{value:w,configurable:!0}),Q6=($,w)=>{for(var U in w)E1($,U,{get:w[U],enumerable:!0})},M6=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of I6(w))if(!Y6.call($,f)&&f!==U)E1($,f,{get:()=>w[f],enumerable:!(E=F6(w,f))||E.enumerable})}return $},J6=($)=>M6(E1({},"__esModule",{value:!0}),$),NU={};Q6(NU,{parseQueryString:()=>qU});PU.exports=J6(NU);z6(qU,"parseQueryString")});var DU=M((mQ,hU)=>{var{defineProperty:G1,getOwnPropertyDescriptor:T6,getOwnPropertyNames:K6}=Object,O6=Object.prototype.hasOwnProperty,A6=($,w)=>G1($,"name",{value:w,configurable:!0}),B6=($,w)=>{for(var U in w)G1($,U,{get:w[U],enumerable:!0})},V6=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of K6(w))if(!O6.call($,f)&&f!==U)G1($,f,{get:()=>w[f],enumerable:!(E=T6(w,f))||E.enumerable})}return $},H6=($)=>V6(G1({},"__esModule",{value:!0}),$),SU={};B6(SU,{parseUrl:()=>bU});hU.exports=H6(SU);var C6=jU(),bU=A6(($)=>{if(typeof $==="string")return bU(new URL($));const{hostname:w,pathname:U,port:E,protocol:f,search:G}=$;let W;if(G)W=C6.parseQueryString(G);return{hostname:w,port:E?parseInt(E):void 0,protocol:f,path:U,query:W}},"parseUrl")});var J$=M((iQ,_U)=>{var uU=function($,w,U){return{applyToStack:(E)=>{E.add(cU($,U),xU),E.add(vU($,w),yU)}}},W1=Object.defineProperty,N6=Object.getOwnPropertyDescriptor,q6=Object.getOwnPropertyNames,P6=Object.prototype.hasOwnProperty,M$=($,w)=>W1($,"name",{value:w,configurable:!0}),j6=($,w)=>{for(var U in w)W1($,U,{get:w[U],enumerable:!0})},S6=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of q6(w))if(!P6.call($,f)&&f!==U)W1($,f,{get:()=>w[f],enumerable:!(E=N6(w,f))||E.enumerable})}return $},b6=($)=>S6(W1({},"__esModule",{value:!0}),$),kU={};j6(kU,{deserializerMiddleware:()=>cU,deserializerMiddlewareOption:()=>xU,getSerdePlugin:()=>uU,serializerMiddleware:()=>vU,serializerMiddlewareOption:()=>yU});_U.exports=b6(kU);var cU=M$(($,w)=>(U)=>async(E)=>{const{response:f}=await U(E);try{const G=await w(f,$);return{response:f,output:G}}catch(G){if(Object.defineProperty(G,"$response",{value:f}),!("$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"),vU=M$(($,w)=>(U,E)=>async(f)=>{var G;const W=((G=E.endpointV2)==null?void 0:G.url)&&$.urlParser?async()=>$.urlParser(E.endpointV2.url):$.endpoint;if(!W)throw new Error("No valid endpoint provider available.");const L=await w(f.input,{...$,endpoint:W});return U({...f,request:L})},"serializerMiddleware"),xU={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},yU={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};M$(uU,"getSerdePlugin")});var iU=M((rQ,mU)=>{var{defineProperty:R1,getOwnPropertyDescriptor:h6,getOwnPropertyNames:D6}=Object,k6=Object.prototype.hasOwnProperty,d=($,w)=>R1($,"name",{value:w,configurable:!0}),c6=($,w)=>{for(var U in w)R1($,U,{get:w[U],enumerable:!0})},v6=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of D6(w))if(!k6.call($,f)&&f!==U)R1($,f,{get:()=>w[f],enumerable:!(E=h6(w,f))||E.enumerable})}return $},x6=($)=>v6(R1({},"__esModule",{value:!0}),$),pU={};c6(pU,{endpointMiddleware:()=>nU,endpointMiddlewareOptions:()=>lU,getEndpointFromInstructions:()=>gU,getEndpointPlugin:()=>m6,resolveEndpointConfig:()=>i6,resolveParams:()=>sU,toEndpointV1:()=>T$});mU.exports=x6(pU);var y6=d(async($)=>{const w=($==null?void 0:$.Bucket)||"";if(typeof $.Bucket==="string")$.Bucket=w.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(g6(w)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!p6(w)||w.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||w.toLowerCase()!==w||w.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},"resolveParamsForS3"),u6=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,_6=/(\d+\.){3}\d+/,d6=/\.\./,p6=d(($)=>u6.test($)&&!_6.test($)&&!d6.test($),"isDnsCompatibleBucketName"),g6=d(($)=>{const[w,U,E,,,f]=$.split(":"),G=w==="arn"&&$.split(":").length>=6,W=Boolean(G&&U&&E&&f);if(G&&!W)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return W},"isArnBucketName"),s6=d(($,w,U)=>{const E=d(async()=>{const f=U[$]??U[w];if(typeof f==="function")return f();return f},"configProvider");if($==="credentialScope"||w==="CredentialScope")return async()=>{const f=typeof U.credentials==="function"?await U.credentials():U.credentials;return(f==null?void 0:f.credentialScope)??(f==null?void 0:f.CredentialScope)};if($==="accountId"||w==="AccountId")return async()=>{const f=typeof U.credentials==="function"?await U.credentials():U.credentials;return(f==null?void 0:f.accountId)??(f==null?void 0:f.AccountId)};if($==="endpoint"||w==="endpoint")return async()=>{const f=await E();if(f&&typeof f==="object"){if("url"in f)return f.url.href;if("hostname"in f){const{protocol:G,hostname:W,port:L,path:R}=f;return`${G}//${W}${L?":"+L:""}${R}`}}return f};return E},"createConfigValueProvider"),n6=CU(),dU=DU(),T$=d(($)=>{if(typeof $==="object"){if("url"in $)return dU.parseUrl($.url);return $}return dU.parseUrl($)},"toEndpointV1"),gU=d(async($,w,U,E)=>{if(!U.endpoint){const W=await n6.getEndpointFromConfig(U.serviceId||"");if(W)U.endpoint=()=>Promise.resolve(T$(W))}const f=await sU($,w,U);if(typeof U.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return U.endpointProvider(f,E)},"getEndpointFromInstructions"),sU=d(async($,w,U)=>{var E;const f={},G=((E=w==null?void 0:w.getEndpointParameterInstructions)==null?void 0:E.call(w))||{};for(let[W,L]of Object.entries(G))switch(L.type){case"staticContextParams":f[W]=L.value;break;case"contextParams":f[W]=$[L.name];break;case"clientContextParams":case"builtInParams":f[W]=await s6(L.name,W,U)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(L))}if(Object.keys(G).length===0)Object.assign(f,U);if(String(U.serviceId).toLowerCase()==="s3")await y6(f);return f},"resolveParams"),L1=P0(),nU=d(({config:$,instructions:w})=>{return(U,E)=>async(f)=>{var G,W,L;const R=await gU(f.input,{getEndpointParameterInstructions(){return w}},{...$},E);E.endpointV2=R,E.authSchemes=(G=R.properties)==null?void 0:G.authSchemes;const X=(W=E.authSchemes)==null?void 0:W[0];if(X){E.signing_region=X.signingRegion,E.signing_service=X.signingName;const Z=L1.getSmithyContext(E),F=(L=Z==null?void 0:Z.selectedHttpAuthScheme)==null?void 0:L.httpAuthOption;if(F)F.signingProperties=Object.assign(F.signingProperties||{},{signing_region:X.signingRegion,signingRegion:X.signingRegion,signing_service:X.signingName,signingName:X.signingName,signingRegionSet:X.signingRegionSet},X.properties)}return U({...f})}},"endpointMiddleware"),l6=J$(),lU={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:l6.serializerMiddlewareOption.name},m6=d(($,w)=>({applyToStack:(U)=>{U.addRelativeTo(nU({config:$,instructions:w}),lU)}}),"getEndpointPlugin"),i6=d(($)=>{const w=$.tls??!0,{endpoint:U}=$,E=U!=null?async()=>T$(await L1.normalizeProvider(U)()):void 0;return{...$,endpoint:E,tls:w,isCustomEndpoint:!!U,useDualstackEndpoint:L1.normalizeProvider($.useDualstackEndpoint??!1),useFipsEndpoint:L1.normalizeProvider($.useFipsEndpoint??!1)}},"resolveEndpointConfig")});var m=M((oQ,ff)=>{var $f=function($){return Object.keys($).reduce((w,U)=>{const E=$[U];return{...w,[U]:Array.isArray(E)?[...E]:E}},{})},Uf=function($){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test($)},X1=Object.defineProperty,r6=Object.getOwnPropertyDescriptor,o6=Object.getOwnPropertyNames,t6=Object.prototype.hasOwnProperty,a=($,w)=>X1($,"name",{value:w,configurable:!0}),a6=($,w)=>{for(var U in w)X1($,U,{get:w[U],enumerable:!0})},e6=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of o6(w))if(!t6.call($,f)&&f!==U)X1($,f,{get:()=>w[f],enumerable:!(E=r6(w,f))||E.enumerable})}return $},$X=($)=>e6(X1({},"__esModule",{value:!0}),$),rU={};a6(rU,{Field:()=>fX,Fields:()=>EX,HttpRequest:()=>GX,HttpResponse:()=>WX,IHttpRequest:()=>oU.HttpRequest,getHttpHandlerExtensionConfiguration:()=>wX,isValidHostname:()=>Uf,resolveHttpHandlerRuntimeConfig:()=>UX});ff.exports=$X(rU);var wX=a(($)=>{let w=$.httpHandler;return{setHttpHandler(U){w=U},httpHandler(){return w},updateHttpClientConfig(U,E){w.updateHttpClientConfig(U,E)},httpHandlerConfigs(){return w.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),UX=a(($)=>{return{httpHandler:$.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),oU=G0(),tU=class ${constructor({name:w,kind:U=oU.FieldPosition.HEADER,values:E=[]}){this.name=w,this.kind=U,this.values=E}add(w){this.values.push(w)}set(w){this.values=w}remove(w){this.values=this.values.filter((U)=>U!==w)}toString(){return this.values.map((w)=>w.includes(",")||w.includes(" ")?`"${w}"`:w).join(", ")}get(){return this.values}};a(tU,"Field");var fX=tU,aU=class ${constructor({fields:w=[],encoding:U="utf-8"}){this.entries={},w.forEach(this.setField.bind(this)),this.encoding=U}setField(w){this.entries[w.name.toLowerCase()]=w}getField(w){return this.entries[w.toLowerCase()]}removeField(w){delete this.entries[w.toLowerCase()]}getByType(w){return Object.values(this.entries).filter((U)=>U.kind===w)}};a(aU,"Fields");var EX=aU,eU=class ${constructor(w){this.method=w.method||"GET",this.hostname=w.hostname||"localhost",this.port=w.port,this.query=w.query||{},this.headers=w.headers||{},this.body=w.body,this.protocol=w.protocol?w.protocol.slice(-1)!==":"?`${w.protocol}:`:w.protocol:"https:",this.path=w.path?w.path.charAt(0)!=="/"?`/${w.path}`:w.path:"/",this.username=w.username,this.password=w.password,this.fragment=w.fragment}static clone(w){const U=new $({...w,headers:{...w.headers}});if(U.query)U.query=$f(U.query);return U}static isInstance(w){if(!w)return!1;const U=w;return"method"in U&&"protocol"in U&&"hostname"in U&&"path"in U&&typeof U.query==="object"&&typeof U.headers==="object"}clone(){return $.clone(this)}};a(eU,"HttpRequest");var GX=eU;a($f,"cloneQuery");var wf=class ${constructor(w){this.statusCode=w.statusCode,this.reason=w.reason,this.headers=w.headers||{},this.body=w.body}static isInstance(w){if(!w)return!1;const U=w;return typeof U.statusCode==="number"&&typeof U.headers==="object"}};a(wf,"HttpResponse");var WX=wf;a(Uf,"isValidHostname")});var K$=M((Ef)=>{var RX=function($){return $&&$.__esModule?$:{default:$}},XX=function(){if(Z1>F1.length-16)LX.default.randomFillSync(F1),Z1=0;return F1.slice(Z1,Z1+=16)};Object.defineProperty(Ef,"__esModule",{value:!0});Ef.default=XX;var LX=RX(import.meta.require("crypto")),F1=new Uint8Array(256),Z1=F1.length});var Lf=M((Gf)=>{Object.defineProperty(Gf,"__esModule",{value:!0});Gf.default=void 0;var FX=/^(?:[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;Gf.default=FX});var h0=M((Rf)=>{var YX=function($){return $&&$.__esModule?$:{default:$}},zX=function($){return typeof $==="string"&&IX.default.test($)};Object.defineProperty(Rf,"__esModule",{value:!0});Rf.default=void 0;var IX=YX(Lf()),QX=zX;Rf.default=QX});var D0=M((Ff)=>{var JX=function($){return $&&$.__esModule?$:{default:$}},Zf=function($,w=0){return h[$[w+0]]+h[$[w+1]]+h[$[w+2]]+h[$[w+3]]+"-"+h[$[w+4]]+h[$[w+5]]+"-"+h[$[w+6]]+h[$[w+7]]+"-"+h[$[w+8]]+h[$[w+9]]+"-"+h[$[w+10]]+h[$[w+11]]+h[$[w+12]]+h[$[w+13]]+h[$[w+14]]+h[$[w+15]]},TX=function($,w=0){const U=Zf($,w);if(!MX.default(U))throw TypeError("Stringified UUID is invalid");return U};Object.defineProperty(Ff,"__esModule",{value:!0});Ff.default=void 0;Ff.unsafeStringify=Zf;var MX=JX(h0()),h=[];for(let $=0;$<256;++$)h.push(($+256).toString(16).slice(1));var KX=TX;Ff.default=KX});var Mf=M((zf)=>{var VX=function($){return $&&$.__esModule?$:{default:$}},HX=function($,w,U){let E=w&&U||0;const f=w||new Array(16);$=$||{};let G=$.node||Yf,W=$.clockseq!==void 0?$.clockseq:O$;if(G==null||W==null){const Y=$.random||($.rng||AX.default)();if(G==null)G=Yf=[Y[0]|1,Y[1],Y[2],Y[3],Y[4],Y[5]];if(W==null)W=O$=(Y[6]<<8|Y[7])&16383}let L=$.msecs!==void 0?$.msecs:Date.now(),R=$.nsecs!==void 0?$.nsecs:B$+1;const X=L-A$+(R-B$)/1e4;if(X<0&&$.clockseq===void 0)W=W+1&16383;if((X<0||L>A$)&&$.nsecs===void 0)R=0;if(R>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");A$=L,B$=R,O$=W,L+=12219292800000;const Z=((L&268435455)*1e4+R)%4294967296;f[E++]=Z>>>24&255,f[E++]=Z>>>16&255,f[E++]=Z>>>8&255,f[E++]=Z&255;const F=L/4294967296*1e4&268435455;f[E++]=F>>>8&255,f[E++]=F&255,f[E++]=F>>>24&15|16,f[E++]=F>>>16&255,f[E++]=W>>>8|128,f[E++]=W&255;for(let Y=0;Y<6;++Y)f[E+Y]=G[Y];return w||BX.unsafeStringify(f)};Object.defineProperty(zf,"__esModule",{value:!0});zf.default=void 0;var AX=VX(K$()),BX=D0(),Yf,O$,A$=0,B$=0,CX=HX;zf.default=CX});var V$=M((Jf)=>{var qX=function($){return $&&$.__esModule?$:{default:$}},PX=function($){if(!NX.default($))throw TypeError("Invalid UUID");let w;const U=new Uint8Array(16);return U[0]=(w=parseInt($.slice(0,8),16))>>>24,U[1]=w>>>16&255,U[2]=w>>>8&255,U[3]=w&255,U[4]=(w=parseInt($.slice(9,13),16))>>>8,U[5]=w&255,U[6]=(w=parseInt($.slice(14,18),16))>>>8,U[7]=w&255,U[8]=(w=parseInt($.slice(19,23),16))>>>8,U[9]=w&255,U[10]=(w=parseInt($.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(Jf,"__esModule",{value:!0});Jf.default=void 0;var NX=qX(h0()),jX=PX;Jf.default=jX});var H$=M((Af)=>{var hX=function($){return $&&$.__esModule?$:{default:$}},DX=function($){$=unescape(encodeURIComponent($));const w=[];for(let U=0;U<$.length;++U)w.push($.charCodeAt(U));return w},kX=function($,w,U){function E(f,G,W,L){var R;if(typeof f==="string")f=DX(f);if(typeof G==="string")G=bX.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 X=new Uint8Array(16+f.length);if(X.set(G),X.set(f,G.length),X=U(X),X[6]=X[6]&15|w,X[8]=X[8]&63|128,W){L=L||0;for(let Z=0;Z<16;++Z)W[L+Z]=X[Z];return W}return SX.unsafeStringify(X)}try{E.name=$}catch(f){}return E.DNS=Kf,E.URL=Of,E};Object.defineProperty(Af,"__esModule",{value:!0});Af.URL=Af.DNS=void 0;Af.default=kX;var SX=D0(),bX=hX(V$()),Kf="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Af.DNS=Kf;var Of="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Af.URL=Of});var Cf=M((Vf)=>{var yX=function($){return $&&$.__esModule?$:{default:$}},uX=function($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return xX.default.createHash("md5").update($).digest()};Object.defineProperty(Vf,"__esModule",{value:!0});Vf.default=void 0;var xX=yX(import.meta.require("crypto")),_X=uX;Vf.default=_X});var jf=M((qf)=>{var Nf=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(qf,"__esModule",{value:!0});qf.default=void 0;var dX=Nf(H$()),pX=Nf(Cf()),gX=dX.default("v3",48,pX.default),sX=gX;qf.default=sX});var hf=M((Sf)=>{var lX=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(Sf,"__esModule",{value:!0});Sf.default=void 0;var nX=lX(import.meta.require("crypto")),mX={randomUUID:nX.default.randomUUID};Sf.default=mX});var xf=M((cf)=>{var kf=function($){return $&&$.__esModule?$:{default:$}},oX=function($,w,U){if(Df.default.randomUUID&&!w&&!$)return Df.default.randomUUID();$=$||{};const E=$.random||($.rng||iX.default)();if(E[6]=E[6]&15|64,E[8]=E[8]&63|128,w){U=U||0;for(let f=0;f<16;++f)w[U+f]=E[f];return w}return rX.unsafeStringify(E)};Object.defineProperty(cf,"__esModule",{value:!0});cf.default=void 0;var Df=kf(hf()),iX=kf(K$()),rX=D0(),tX=oX;cf.default=tX});var _f=M((yf)=>{var eX=function($){return $&&$.__esModule?$:{default:$}},$2=function($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return aX.default.createHash("sha1").update($).digest()};Object.defineProperty(yf,"__esModule",{value:!0});yf.default=void 0;var aX=eX(import.meta.require("crypto")),w2=$2;yf.default=w2});var sf=M((pf)=>{var df=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(pf,"__esModule",{value:!0});pf.default=void 0;var U2=df(H$()),f2=df(_f()),E2=U2.default("v5",80,f2.default),G2=E2;pf.default=G2});var mf=M((nf)=>{Object.defineProperty(nf,"__esModule",{value:!0});nf.default=void 0;var W2="00000000-0000-0000-0000-000000000000";nf.default=W2});var tf=M((rf)=>{var R2=function($){return $&&$.__esModule?$:{default:$}},X2=function($){if(!L2.default($))throw TypeError("Invalid UUID");return parseInt($.slice(14,15),16)};Object.defineProperty(rf,"__esModule",{value:!0});rf.default=void 0;var L2=R2(h0()),Z2=X2;rf.default=Z2});var C$=M((p)=>{var i=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(p,"__esModule",{value:!0});Object.defineProperty(p,"NIL",{enumerable:!0,get:function(){return Q2.default}});Object.defineProperty(p,"parse",{enumerable:!0,get:function(){return K2.default}});Object.defineProperty(p,"stringify",{enumerable:!0,get:function(){return T2.default}});Object.defineProperty(p,"v1",{enumerable:!0,get:function(){return F2.default}});Object.defineProperty(p,"v3",{enumerable:!0,get:function(){return I2.default}});Object.defineProperty(p,"v4",{enumerable:!0,get:function(){return Y2.default}});Object.defineProperty(p,"v5",{enumerable:!0,get:function(){return z2.default}});Object.defineProperty(p,"validate",{enumerable:!0,get:function(){return J2.default}});Object.defineProperty(p,"version",{enumerable:!0,get:function(){return M2.default}});var F2=i(Mf()),I2=i(jf()),Y2=i(xf()),z2=i(sf()),Q2=i(mf()),M2=i(tf()),J2=i(h0()),T2=i(D0()),K2=i(V$())});var N$=M((Y7,wE)=>{var{defineProperty:I1,getOwnPropertyDescriptor:O2,getOwnPropertyNames:A2}=Object,B2=Object.prototype.hasOwnProperty,M0=($,w)=>I1($,"name",{value:w,configurable:!0}),V2=($,w)=>{for(var U in w)I1($,U,{get:w[U],enumerable:!0})},H2=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of A2(w))if(!B2.call($,f)&&f!==U)I1($,f,{get:()=>w[f],enumerable:!(E=O2(w,f))||E.enumerable})}return $},C2=($)=>H2(I1({},"__esModule",{value:!0}),$),af={};V2(af,{isClockSkewCorrectedError:()=>ef,isClockSkewError:()=>h2,isRetryableByTrait:()=>b2,isServerError:()=>k2,isThrottlingError:()=>D2,isTransientError:()=>$E});wE.exports=C2(af);var N2=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],q2=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],P2=["TimeoutError","RequestTimeout","RequestTimeoutException"],j2=[500,502,503,504],S2=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],b2=M0(($)=>$.$retryable!==void 0,"isRetryableByTrait"),h2=M0(($)=>N2.includes($.name),"isClockSkewError"),ef=M0(($)=>{var w;return(w=$.$metadata)==null?void 0:w.clockSkewCorrected},"isClockSkewCorrectedError"),D2=M0(($)=>{var w,U;return((w=$.$metadata)==null?void 0:w.httpStatusCode)===429||q2.includes($.name)||((U=$.$retryable)==null?void 0:U.throttling)==!0},"isThrottlingError"),$E=M0(($)=>{var w;return ef($)||P2.includes($.name)||S2.includes(($==null?void 0:$.code)||"")||j2.includes(((w=$.$metadata)==null?void 0:w.httpStatusCode)||0)},"isTransientError"),k2=M0(($)=>{var w;if(((w=$.$metadata)==null?void 0:w.httpStatusCode)!==void 0){const U=$.$metadata.httpStatusCode;if(500<=U&&U<=599&&!$E($))return!0;return!1}return!1},"isServerError")});var QE=M((z7,zE)=>{var{defineProperty:Y1,getOwnPropertyDescriptor:c2,getOwnPropertyNames:v2}=Object,x2=Object.prototype.hasOwnProperty,g=($,w)=>Y1($,"name",{value:w,configurable:!0}),y2=($,w)=>{for(var U in w)Y1($,U,{get:w[U],enumerable:!0})},u2=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of v2(w))if(!x2.call($,f)&&f!==U)Y1($,f,{get:()=>w[f],enumerable:!(E=c2(w,f))||E.enumerable})}return $},_2=($)=>u2(Y1({},"__esModule",{value:!0}),$),fE={};y2(fE,{AdaptiveRetryStrategy:()=>l2,ConfiguredRetryStrategy:()=>m2,DEFAULT_MAX_ATTEMPTS:()=>q$,DEFAULT_RETRY_DELAY_BASE:()=>k0,DEFAULT_RETRY_MODE:()=>d2,DefaultRateLimiter:()=>WE,INITIAL_RETRY_TOKENS:()=>P$,INVOCATION_ID_HEADER:()=>g2,MAXIMUM_RETRY_DELAY:()=>j$,NO_RETRY_INCREMENT:()=>ZE,REQUEST_HEADER:()=>s2,RETRY_COST:()=>RE,RETRY_MODES:()=>EE,StandardRetryStrategy:()=>S$,THROTTLING_RETRY_DELAY_BASE:()=>LE,TIMEOUT_RETRY_COST:()=>XE});zE.exports=_2(fE);var EE=(($)=>{return $.STANDARD="standard",$.ADAPTIVE="adaptive",$})(EE||{}),q$=3,d2="standard",p2=N$(),GE=class ${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(),p2.isThrottlingError(w)){const f=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=f,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),U=this.cubicThrottle(f),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))}};g(GE,"DefaultRateLimiter");var WE=GE,k0=100,j$=20000,LE=500,P$=500,RE=5,XE=10,ZE=1,g2="amz-sdk-invocation-id",s2="amz-sdk-request",n2=g(()=>{let $=k0;return{computeNextBackoffDelay:g((E)=>{return Math.floor(Math.min(j$,Math.random()*2**E*$))},"computeNextBackoffDelay"),setDelayBase:g((E)=>{$=E},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),UE=g(({retryDelay:$,retryCount:w,retryCost:U})=>{return{getRetryCount:g(()=>w,"getRetryCount"),getRetryDelay:g(()=>Math.min(j$,$),"getRetryDelay"),getRetryCost:g(()=>U,"getRetryCost")}},"createDefaultRetryToken"),FE=class ${constructor(w){this.maxAttempts=w,this.mode="standard",this.capacity=P$,this.retryBackoffStrategy=n2(),this.maxAttemptsProvider=typeof w==="function"?w:async()=>w}async acquireInitialRetryToken(w){return UE({retryDelay:k0,retryCount:0})}async refreshRetryTokenForRetry(w,U){const E=await this.getMaxAttempts();if(this.shouldRetry(w,U,E)){const f=U.errorType;this.retryBackoffStrategy.setDelayBase(f==="THROTTLING"?LE:k0);const G=this.retryBackoffStrategy.computeNextBackoffDelay(w.getRetryCount()),W=U.retryAfterHint?Math.max(U.retryAfterHint.getTime()-Date.now()||0,G):G,L=this.getCapacityCost(f);return this.capacity-=L,UE({retryDelay:W,retryCount:w.getRetryCount()+1,retryCost:L})}throw new Error("No retry token available")}recordSuccess(w){this.capacity=Math.max(P$,this.capacity+(w.getRetryCost()??ZE))}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 ${q$}`),q$}}shouldRetry(w,U,E){return w.getRetryCount()+1<E&&this.capacity>=this.getCapacityCost(U.errorType)&&this.isRetryableError(U.errorType)}getCapacityCost(w){return w==="TRANSIENT"?XE:RE}isRetryableError(w){return w==="THROTTLING"||w==="TRANSIENT"}};g(FE,"StandardRetryStrategy");var S$=FE,IE=class ${constructor(w,U){this.maxAttemptsProvider=w,this.mode="adaptive";const{rateLimiter:E}=U??{};this.rateLimiter=E??new WE,this.standardRetryStrategy=new S$(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)}};g(IE,"AdaptiveRetryStrategy");var l2=IE,YE=class $ extends S${constructor(w,U=k0){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}};g(YE,"ConfiguredRetryStrategy");var m2=YE});var b$=M((Q7,JE)=>{var{defineProperty:z1,getOwnPropertyDescriptor:i2,getOwnPropertyNames:r2}=Object,o2=Object.prototype.hasOwnProperty,t2=($,w)=>z1($,"name",{value:w,configurable:!0}),a2=($,w)=>{for(var U in w)z1($,U,{get:w[U],enumerable:!0})},e2=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of r2(w))if(!o2.call($,f)&&f!==U)z1($,f,{get:()=>w[f],enumerable:!(E=i2(w,f))||E.enumerable})}return $},$Z=($)=>e2(z1({},"__esModule",{value:!0}),$),ME={};a2(ME,{isArrayBuffer:()=>wZ});JE.exports=$Z(ME);var wZ=t2(($)=>typeof ArrayBuffer==="function"&&$ instanceof ArrayBuffer||Object.prototype.toString.call($)==="[object ArrayBuffer]","isArrayBuffer")});var c0=M((M7,OE)=>{var{defineProperty:Q1,getOwnPropertyDescriptor:UZ,getOwnPropertyNames:fZ}=Object,EZ=Object.prototype.hasOwnProperty,TE=($,w)=>Q1($,"name",{value:w,configurable:!0}),GZ=($,w)=>{for(var U in w)Q1($,U,{get:w[U],enumerable:!0})},WZ=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of fZ(w))if(!EZ.call($,f)&&f!==U)Q1($,f,{get:()=>w[f],enumerable:!(E=UZ(w,f))||E.enumerable})}return $},LZ=($)=>WZ(Q1({},"__esModule",{value:!0}),$),KE={};GZ(KE,{fromArrayBuffer:()=>XZ,fromString:()=>ZZ});OE.exports=LZ(KE);var RZ=b$(),h$=import.meta.require("buffer"),XZ=TE(($,w=0,U=$.byteLength-w)=>{if(!RZ.isArrayBuffer($))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof $} (${$})`);return h$.Buffer.from($,w,U)},"fromArrayBuffer"),ZZ=TE(($,w)=>{if(typeof $!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof $} (${$})`);return w?h$.Buffer.from($,w):h$.Buffer.from($)},"fromString")});var VE=M((AE)=>{Object.defineProperty(AE,"__esModule",{value:!0});AE.fromBase64=void 0;var FZ=c0(),IZ=/^[A-Za-z0-9+/]*={0,2}$/,YZ=($)=>{if($.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!IZ.exec($))throw new TypeError("Invalid base64 string.");const w=FZ.fromString($,"base64");return new Uint8Array(w.buffer,w.byteOffset,w.byteLength)};AE.fromBase64=YZ});var e=M((T7,qE)=>{var{defineProperty:M1,getOwnPropertyDescriptor:zZ,getOwnPropertyNames:QZ}=Object,MZ=Object.prototype.hasOwnProperty,D$=($,w)=>M1($,"name",{value:w,configurable:!0}),JZ=($,w)=>{for(var U in w)M1($,U,{get:w[U],enumerable:!0})},TZ=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of QZ(w))if(!MZ.call($,f)&&f!==U)M1($,f,{get:()=>w[f],enumerable:!(E=zZ(w,f))||E.enumerable})}return $},KZ=($)=>TZ(M1({},"__esModule",{value:!0}),$),HE={};JZ(HE,{fromUtf8:()=>NE,toUint8Array:()=>OZ,toUtf8:()=>AZ});qE.exports=KZ(HE);var CE=c0(),NE=D$(($)=>{const w=CE.fromString($,"utf8");return new Uint8Array(w.buffer,w.byteOffset,w.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),OZ=D$(($)=>{if(typeof $==="string")return NE($);if(ArrayBuffer.isView($))return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array($)},"toUint8Array"),AZ=D$(($)=>{if(typeof $==="string")return $;if(typeof $!=="object"||typeof $.byteOffset!=="number"||typeof $.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return CE.fromArrayBuffer($.buffer,$.byteOffset,$.byteLength).toString("utf8")},"toUtf8")});var SE=M((PE)=>{Object.defineProperty(PE,"__esModule",{value:!0});PE.toBase64=void 0;var BZ=c0(),VZ=e(),HZ=($)=>{let w;if(typeof $==="string")w=VZ.fromUtf8($);else w=$;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 BZ.fromArrayBuffer(w.buffer,w.byteOffset,w.byteLength).toString("base64")};PE.toBase64=HZ});var T1=M((O7,J1)=>{var{defineProperty:bE,getOwnPropertyDescriptor:CZ,getOwnPropertyNames:NZ}=Object,qZ=Object.prototype.hasOwnProperty,k$=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of NZ(w))if(!qZ.call($,f)&&f!==U)bE($,f,{get:()=>w[f],enumerable:!(E=CZ(w,f))||E.enumerable})}return $},hE=($,w,U)=>(k$($,w,"default"),U&&k$(U,w,"default")),PZ=($)=>k$(bE({},"__esModule",{value:!0}),$),c$={};J1.exports=PZ(c$);hE(c$,VE(),J1.exports);hE(c$,SE(),J1.exports)});var cE=M((DE)=>{Object.defineProperty(DE,"__esModule",{value:!0});DE.getAwsChunkedEncodingStream=void 0;var jZ=import.meta.require("stream"),SZ=($,w)=>{const{base64Encoder:U,bodyLengthChecker:E,checksumAlgorithmFn:f,checksumLocationName:G,streamHasher:W}=w,L=U!==void 0&&f!==void 0&&G!==void 0&&W!==void 0,R=L?W(f,$):void 0,X=new jZ.Readable({read:()=>{}});return $.on("data",(Z)=>{const F=E(Z)||0;X.push(`${F.toString(16)}\r\n`),X.push(Z),X.push("\r\n")}),$.on("end",async()=>{if(X.push("0\r\n"),L){const Z=U(await R);X.push(`${G}:${Z}\r\n`),X.push("\r\n")}X.push(null)}),X};DE.getAwsChunkedEncodingStream=SZ});var x$=M((B7,uE)=>{var yE=function($){const w=[];for(let U of Object.keys($).sort()){const E=$[U];if(U=v$.escapeUri(U),Array.isArray(E))for(let f=0,G=E.length;f<G;f++)w.push(`${U}=${v$.escapeUri(E[f])}`);else{let f=U;if(E||typeof E==="string")f+=`=${v$.escapeUri(E)}`;w.push(f)}}return w.join("&")},K1=Object.defineProperty,bZ=Object.getOwnPropertyDescriptor,hZ=Object.getOwnPropertyNames,DZ=Object.prototype.hasOwnProperty,kZ=($,w)=>K1($,"name",{value:w,configurable:!0}),cZ=($,w)=>{for(var U in w)K1($,U,{get:w[U],enumerable:!0})},vZ=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of hZ(w))if(!DZ.call($,f)&&f!==U)K1($,f,{get:()=>w[f],enumerable:!(E=bZ(w,f))||E.enumerable})}return $},xZ=($)=>vZ(K1({},"__esModule",{value:!0}),$),xE={};cZ(xE,{buildQueryString:()=>yE});uE.exports=xZ(xE);var v$=vE();kZ(yE,"buildQueryString")});var UG=M((V7,wG)=>{async function _$($,w,U=_E){const E=w.headers??{},f=E.Expect||E.expect;let G=-1,W=!1;if(f==="100-continue")await Promise.race([new Promise((L)=>{G=Number(setTimeout(L,Math.max(_E,U)))}),new Promise((L)=>{$.on("continue",()=>{clearTimeout(G),L()}),$.on("error",()=>{W=!0,clearTimeout(G),L()})})]);if(!W)iE($,w.body)}var iE=function($,w){if(w instanceof mE.Readable){w.pipe($);return}if(w){if(Buffer.isBuffer(w)||typeof w==="string"){$.end(w);return}const U=w;if(typeof U==="object"&&U.buffer&&typeof U.byteOffset==="number"&&typeof U.byteLength==="number"){$.end(Buffer.from(U.buffer,U.byteOffset,U.byteLength));return}$.end(Buffer.from(w));return}$.end()};async function $G($){const w=[],U=$.getReader();let E=!1,f=0;while(!E){const{done:L,value:R}=await U.read();if(R)w.push(R),f+=R.length;E=L}const G=new Uint8Array(f);let W=0;for(let L of w)G.set(L,W),W+=L.length;return G}var{create:yZ,defineProperty:v0,getOwnPropertyDescriptor:uZ,getOwnPropertyNames:_Z,getPrototypeOf:dZ}=Object,pZ=Object.prototype.hasOwnProperty,q=($,w)=>v0($,"name",{value:w,configurable:!0}),gZ=($,w)=>{for(var U in w)v0($,U,{get:w[U],enumerable:!0})},pE=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of _Z(w))if(!pZ.call($,f)&&f!==U)v0($,f,{get:()=>w[f],enumerable:!(E=uZ(w,f))||E.enumerable})}return $},sZ=($,w,U)=>(U=$!=null?yZ(dZ($)):{},pE(w||!$||!$.__esModule?v0(U,"default",{value:$,enumerable:!0}):U,$)),nZ=($)=>pE(v0({},"__esModule",{value:!0}),$),gE={};gZ(gE,{DEFAULT_REQUEST_TIMEOUT:()=>oZ,NodeHttp2Handler:()=>wF,NodeHttpHandler:()=>tZ,streamCollector:()=>fF});wG.exports=nZ(gE);var sE=m(),nE=x$(),y$=import.meta.require("http"),u$=import.meta.require("https"),lZ=["ECONNRESET","EPIPE","ETIMEDOUT"],lE=q(($)=>{const w={};for(let U of Object.keys($)){const E=$[U];w[U]=Array.isArray(E)?E.join(","):E}return w},"getTransformedHeaders"),mZ=q(($,w,U=0)=>{if(!U)return;const E=setTimeout(()=>{$.destroy(),w(Object.assign(new Error(`Socket timed out without establishing a connection within ${U} ms`),{name:"TimeoutError"}))},U);$.on("socket",(f)=>{if(f.connecting)f.on("connect",()=>{clearTimeout(E)});else clearTimeout(E)})},"setConnectionTimeout"),iZ=q(($,{keepAlive:w,keepAliveMsecs:U})=>{if(w!==!0)return;$.on("socket",(E)=>{E.setKeepAlive(w,U||0)})},"setSocketKeepAlive"),rZ=q(($,w,U=0)=>{$.setTimeout(U,()=>{$.destroy(),w(Object.assign(new Error(`Connection timed out after ${U} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),mE=import.meta.require("stream"),_E=1000;q(_$,"writeRequestBody");q(iE,"writeBody");var oZ=0,rE=class ${constructor(w){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((U,E)=>{if(typeof w==="function")w().then((f)=>{U(this.resolveDefaultConfig(f))}).catch(E);else U(this.resolveDefaultConfig(w))})}static create(w){if(typeof(w==null?void 0:w.handle)==="function")return w;return new $(w)}static checkSocketUsage(w,U,E=console){var f,G,W;const{sockets:L,requests:R,maxSockets:X}=w;if(typeof X!=="number"||X===Infinity)return U;const Z=15000;if(Date.now()-Z<U)return U;if(L&&R)for(let F in L){const Y=((f=L[F])==null?void 0:f.length)??0,I=((G=R[F])==null?void 0:G.length)??0;if(Y>=X&&I>=2*X)return(W=E==null?void 0:E.warn)==null||W.call(E,`@smithy/node-http-handler:WARN - socket usage at capacity=${Y} and ${I} additional requests are enqueued.
2
- See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
3
- or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return U}resolveDefaultConfig(w){const{requestTimeout:U,connectionTimeout:E,socketTimeout:f,httpAgent:G,httpsAgent:W}=w||{};return{connectionTimeout:E,requestTimeout:U??f,httpAgent:(()=>{if(G instanceof y$.Agent||typeof(G==null?void 0:G.destroy)==="function")return G;return new y$.Agent({keepAlive:!0,maxSockets:50,...G})})(),httpsAgent:(()=>{if(W instanceof u$.Agent||typeof(W==null?void 0:W.destroy)==="function")return W;return new u$.Agent({keepAlive:!0,maxSockets:50,...W})})(),logger:console}}destroy(){var w,U,E,f;(U=(w=this.config)==null?void 0:w.httpAgent)==null||U.destroy(),(f=(E=this.config)==null?void 0:E.httpsAgent)==null||f.destroy()}async handle(w,{abortSignal:U}={}){if(!this.config)this.config=await this.configProvider;let E;return new Promise((f,G)=>{let W=void 0;const L=q(async(K)=>{await W,clearTimeout(E),f(K)},"resolve"),R=q(async(K)=>{await W,clearTimeout(E),G(K)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(U==null?void 0:U.aborted){const K=new Error("Request aborted");K.name="AbortError",R(K);return}const X=w.protocol==="https:",Z=X?this.config.httpsAgent:this.config.httpAgent;E=setTimeout(()=>{this.socketWarningTimestamp=$.checkSocketUsage(Z,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const F=nE.buildQueryString(w.query||{});let Y=void 0;if(w.username!=null||w.password!=null){const K=w.username??"",A=w.password??"";Y=`${K}:${A}`}let I=w.path;if(F)I+=`?${F}`;if(w.fragment)I+=`#${w.fragment}`;const z={headers:w.headers,host:w.hostname,method:w.method,path:I,port:w.port,agent:Z,auth:Y},O=(X?u$.request:y$.request)(z,(K)=>{const A=new sE.HttpResponse({statusCode:K.statusCode||-1,reason:K.statusMessage,headers:lE(K.headers),body:K});L({response:A})});if(O.on("error",(K)=>{if(lZ.includes(K.code))R(Object.assign(K,{name:"TimeoutError"}));else R(K)}),mZ(O,R,this.config.connectionTimeout),rZ(O,R,this.config.requestTimeout),U){const K=q(()=>{O.destroy();const A=new Error("Request aborted");A.name="AbortError",R(A)},"onAbort");if(typeof U.addEventListener==="function"){const A=U;A.addEventListener("abort",K,{once:!0}),O.once("close",()=>A.removeEventListener("abort",K))}else U.onabort=K}const T=z.agent;if(typeof T==="object"&&"keepAlive"in T)iZ(O,{keepAlive:T.keepAlive,keepAliveMsecs:T.keepAliveMsecs});W=_$(O,w,this.config.requestTimeout).catch((K)=>{return clearTimeout(E),G(K)})})}updateHttpClientConfig(w,U){this.config=void 0,this.configProvider=this.configProvider.then((E)=>{return{...E,[w]:U}})}httpHandlerConfigs(){return this.config??{}}};q(rE,"NodeHttpHandler");var tZ=rE,dE=import.meta.require("http2"),aZ=sZ(import.meta.require("http2")),oE=class ${constructor(w){this.sessions=[],this.sessions=w??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(w){this.sessions.push(w)}contains(w){return this.sessions.includes(w)}remove(w){this.sessions=this.sessions.filter((U)=>U!==w)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(w){for(let U of this.sessions)if(U===w){if(!U.destroyed)U.destroy()}}};q(oE,"NodeHttp2ConnectionPool");var eZ=oE,tE=class ${constructor(w){if(this.sessionCache=new Map,this.config=w,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(w,U){const E=this.getUrlString(w),f=this.sessionCache.get(E);if(f){const R=f.poll();if(R&&!this.config.disableConcurrency)return R}const G=aZ.default.connect(E);if(this.config.maxConcurrency)G.settings({maxConcurrentStreams:this.config.maxConcurrency},(R)=>{if(R)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+w.destination.toString())});G.unref();const W=q(()=>{G.destroy(),this.deleteSession(E,G)},"destroySessionCb");if(G.on("goaway",W),G.on("error",W),G.on("frameError",W),G.on("close",()=>this.deleteSession(E,G)),U.requestTimeout)G.setTimeout(U.requestTimeout,W);const L=this.sessionCache.get(E)||new eZ;return L.offerLast(G),this.sessionCache.set(E,L),G}deleteSession(w,U){const E=this.sessionCache.get(w);if(!E)return;if(!E.contains(U))return;E.remove(U),this.sessionCache.set(w,E)}release(w,U){var E;const f=this.getUrlString(w);(E=this.sessionCache.get(f))==null||E.offerLast(U)}destroy(){for(let[w,U]of this.sessionCache){for(let E of U){if(!E.destroyed)E.destroy();U.remove(E)}this.sessionCache.delete(w)}}setMaxConcurrentStreams(w){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=w}setDisableConcurrentStreams(w){this.config.disableConcurrency=w}getUrlString(w){return w.destination.toString()}};q(tE,"NodeHttp2ConnectionManager");var $F=tE,aE=class ${constructor(w){this.metadata={handlerProtocol:"h2"},this.connectionManager=new $F({}),this.configProvider=new Promise((U,E)=>{if(typeof w==="function")w().then((f)=>{U(f||{})}).catch(E);else U(w||{})})}static create(w){if(typeof(w==null?void 0:w.handle)==="function")return w;return new $(w)}destroy(){this.connectionManager.destroy()}async handle(w,{abortSignal:U}={}){if(!this.config){if(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams)this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}const{requestTimeout:E,disableConcurrentStreams:f}=this.config;return new Promise((G,W)=>{var L;let R=!1,X=void 0;const Z=q(async(N)=>{await X,G(N)},"resolve"),F=q(async(N)=>{await X,W(N)},"reject");if(U==null?void 0:U.aborted){R=!0;const N=new Error("Request aborted");N.name="AbortError",F(N);return}const{hostname:Y,method:I,port:z,protocol:J,query:O}=w;let T="";if(w.username!=null||w.password!=null){const N=w.username??"",_=w.password??"";T=`${N}:${_}@`}const K=`${J}//${T}${Y}${z?`:${z}`:""}`,A={destination:new URL(K)},V=this.connectionManager.lease(A,{requestTimeout:(L=this.config)==null?void 0:L.sessionTimeout,disableConcurrentStreams:f||!1}),S=q((N)=>{if(f)this.destroySession(V);R=!0,F(N)},"rejectWithDestroy"),lw=nE.buildQueryString(O||{});let G$=w.path;if(lw)G$+=`?${lw}`;if(w.fragment)G$+=`#${w.fragment}`;const v=V.request({...w.headers,[dE.constants.HTTP2_HEADER_PATH]:G$,[dE.constants.HTTP2_HEADER_METHOD]:I});if(V.ref(),v.on("response",(N)=>{const _=new sE.HttpResponse({statusCode:N[":status"]||-1,headers:lE(N),body:v});if(R=!0,Z({response:_}),f)V.close(),this.connectionManager.deleteSession(K,V)}),E)v.setTimeout(E,()=>{v.close();const N=new Error(`Stream timed out because of no activity for ${E} ms`);N.name="TimeoutError",S(N)});if(U){const N=q(()=>{v.close();const _=new Error("Request aborted");_.name="AbortError",S(_)},"onAbort");if(typeof U.addEventListener==="function"){const _=U;_.addEventListener("abort",N,{once:!0}),v.once("close",()=>_.removeEventListener("abort",N))}else U.onabort=N}v.on("frameError",(N,_,t8)=>{S(new Error(`Frame type id ${N} in stream id ${t8} has failed with code ${_}.`))}),v.on("error",S),v.on("aborted",()=>{S(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${v.rstCode}.`))}),v.on("close",()=>{if(V.unref(),f)V.destroy();if(!R)S(new Error("Unexpected error: http2 request did not get a response"))}),X=_$(v,w,E)})}updateHttpClientConfig(w,U){this.config=void 0,this.configProvider=this.configProvider.then((E)=>{return{...E,[w]:U}})}httpHandlerConfigs(){return this.config??{}}destroySession(w){if(!w.destroyed)w.destroy()}};q(aE,"NodeHttp2Handler");var wF=aE,eE=class $ extends mE.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(w,U,E){this.bufferedBytes.push(w),E()}};q(eE,"Collector");var UF=eE,fF=q(($)=>{if(EF($))return $G($);return new Promise((w,U)=>{const E=new UF;$.pipe(E),$.on("error",(f)=>{E.end(),U(f)}),E.on("error",U),E.on("finish",function(){const f=new Uint8Array(Buffer.concat(this.bufferedBytes));w(f)})})},"streamCollector"),EF=q(($)=>typeof ReadableStream==="function"&&$ instanceof ReadableStream,"isReadableStreamInstance");q($G,"collectReadableStream")});var FG=M((H7,ZG)=>{var GG=function($=0){return new Promise((w,U)=>{if($)setTimeout(()=>{const E=new Error(`Request did not complete within ${$} ms`);E.name="TimeoutError",U(E)},$)})};async function LG($){const w=await XG($),U=YF.fromBase64(w);return new Uint8Array(U)}async function RG($){const w=[],U=$.getReader();let E=!1,f=0;while(!E){const{done:L,value:R}=await U.read();if(R)w.push(R),f+=R.length;E=L}const G=new Uint8Array(f);let W=0;for(let L of w)G.set(L,W),W+=L.length;return G}var XG=function($){return new Promise((w,U)=>{const E=new FileReader;E.onloadend=()=>{if(E.readyState!==2)return U(new Error("Reader aborted too early"));const f=E.result??"",G=f.indexOf(","),W=G>-1?G+1:f.length;w(f.substring(W))},E.onabort=()=>U(new Error("Read aborted")),E.onerror=()=>U(E.error),E.readAsDataURL($)})},A1=Object.defineProperty,GF=Object.getOwnPropertyDescriptor,WF=Object.getOwnPropertyNames,LF=Object.prototype.hasOwnProperty,r=($,w)=>A1($,"name",{value:w,configurable:!0}),RF=($,w)=>{for(var U in w)A1($,U,{get:w[U],enumerable:!0})},XF=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of WF(w))if(!LF.call($,f)&&f!==U)A1($,f,{get:()=>w[f],enumerable:!(E=GF(w,f))||E.enumerable})}return $},ZF=($)=>XF(A1({},"__esModule",{value:!0}),$),EG={};RF(EG,{FetchHttpHandler:()=>IF,keepAliveSupport:()=>O1,streamCollector:()=>zF});ZG.exports=ZF(EG);var fG=m(),FF=x$();r(GG,"requestTimeout");var O1={supported:void 0},WG=class ${static create(w){if(typeof(w==null?void 0:w.handle)==="function")return w;return new $(w)}constructor(w){if(typeof w==="function")this.configProvider=w().then((U)=>U||{});else this.config=w??{},this.configProvider=Promise.resolve(this.config);if(O1.supported===void 0)O1.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in new Request("https://[::1]"))}destroy(){}async handle(w,{abortSignal:U}={}){if(!this.config)this.config=await this.configProvider;const E=this.config.requestTimeout,f=this.config.keepAlive===!0,G=this.config.credentials;if(U==null?void 0:U.aborted){const T=new Error("Request aborted");return T.name="AbortError",Promise.reject(T)}let W=w.path;const L=FF.buildQueryString(w.query||{});if(L)W+=`?${L}`;if(w.fragment)W+=`#${w.fragment}`;let R="";if(w.username!=null||w.password!=null){const T=w.username??"",K=w.password??"";R=`${T}:${K}@`}const{port:X,method:Z}=w,F=`${w.protocol}//${R}${w.hostname}${X?`:${X}`:""}${W}`,Y=Z==="GET"||Z==="HEAD"?void 0:w.body,I={body:Y,headers:new Headers(w.headers),method:Z,credentials:G};if(Y)I.duplex="half";if(typeof AbortController!=="undefined")I.signal=U;if(O1.supported)I.keepalive=f;let z=r(()=>{},"removeSignalEventListener");const J=new Request(F,I),O=[fetch(J).then((T)=>{const K=T.headers,A={};for(let S of K.entries())A[S[0]]=S[1];if(T.body==null)return T.blob().then((S)=>({response:new fG.HttpResponse({headers:A,reason:T.statusText,statusCode:T.status,body:S})}));return{response:new fG.HttpResponse({headers:A,reason:T.statusText,statusCode:T.status,body:T.body})}}),GG(E)];if(U)O.push(new Promise((T,K)=>{const A=r(()=>{const V=new Error("Request aborted");V.name="AbortError",K(V)},"onAbort");if(typeof U.addEventListener==="function"){const V=U;V.addEventListener("abort",A,{once:!0}),z=r(()=>V.removeEventListener("abort",A),"removeSignalEventListener")}else U.onabort=A}));return Promise.race(O).finally(z)}updateHttpClientConfig(w,U){this.config=void 0,this.configProvider=this.configProvider.then((E)=>{return E[w]=U,E})}httpHandlerConfigs(){return this.config??{}}};r(WG,"FetchHttpHandler");var IF=WG,YF=T1(),zF=r(($)=>{if(typeof Blob==="function"&&$ instanceof Blob)return LG($);return RG($)},"streamCollector");r(LG,"collectBlob");r(RG,"collectStream");r(XG,"readToBase64")});var x0=M((IG)=>{Object.defineProperty(IG,"__esModule",{value:!0});IG.isReadableStream=void 0;var QF=($)=>{var w;return typeof ReadableStream==="function"&&(((w=$===null||$===void 0?void 0:$.constructor)===null||w===void 0?void 0:w.name)===ReadableStream.name||$ instanceof ReadableStream)};IG.isReadableStream=QF});var OG=M((TG)=>{Object.defineProperty(TG,"__esModule",{value:!0});TG.sdkStreamMixin=void 0;var MF=FG(),JF=T1(),TF=JG(),KF=e(),zG=x0(),QG="The stream has already been transformed.",OF=($)=>{var w,U;if(!MG($)&&!zG.isReadableStream($)){const W=((U=(w=$===null||$===void 0?void 0:$.__proto__)===null||w===void 0?void 0:w.constructor)===null||U===void 0?void 0:U.name)||$;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${W}`)}let E=!1;const f=async()=>{if(E)throw new Error(QG);return E=!0,await MF.streamCollector($)},G=(W)=>{if(typeof W.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return W.stream()};return Object.assign($,{transformToByteArray:f,transformToString:async(W)=>{const L=await f();if(W==="base64")return JF.toBase64(L);else if(W==="hex")return TF.toHex(L);else if(W===void 0||W==="utf8"||W==="utf-8")return KF.toUtf8(L);else if(typeof TextDecoder==="function")return new TextDecoder(W).decode(L);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(E)throw new Error(QG);if(E=!0,MG($))return G($);else if(zG.isReadableStream($))return $;else throw new Error(`Cannot transform payload to web stream, got ${$}`)}})};TG.sdkStreamMixin=OF;var MG=($)=>typeof Blob==="function"&&$ instanceof Blob});var HG=M((BG)=>{Object.defineProperty(BG,"__esModule",{value:!0});BG.sdkStreamMixin=void 0;var AF=UG(),BF=c0(),d$=import.meta.require("stream"),VF=import.meta.require("util"),HF=OG(),AG="The stream has already been transformed.",CF=($)=>{var w,U;if(!($ instanceof d$.Readable))try{return HF.sdkStreamMixin($)}catch(G){const W=((U=(w=$===null||$===void 0?void 0:$.__proto__)===null||w===void 0?void 0:w.constructor)===null||U===void 0?void 0:U.name)||$;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${W}`)}let E=!1;const f=async()=>{if(E)throw new Error(AG);return E=!0,await AF.streamCollector($)};return Object.assign($,{transformToByteArray:f,transformToString:async(G)=>{const W=await f();if(G===void 0||Buffer.isEncoding(G))return BF.fromArrayBuffer(W.buffer,W.byteOffset,W.byteLength).toString(G);else return new VF.TextDecoder(G).decode(W)},transformToWebStream:()=>{if(E)throw new Error(AG);if($.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof d$.Readable.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return E=!0,d$.Readable.toWeb($)}})};BG.sdkStreamMixin=CF});var qG=M((CG)=>{async function NF($){if(typeof $.stream==="function")$=$.stream();return $.tee()}Object.defineProperty(CG,"__esModule",{value:!0});CG.splitStream=void 0;CG.splitStream=NF});var bG=M((jG)=>{async function jF($){if(PF.isReadableStream($))return qF.splitStream($);const w=new PG.PassThrough,U=new PG.PassThrough;return $.pipe(w),$.pipe(U),[w,U]}Object.defineProperty(jG,"__esModule",{value:!0});jG.splitStream=void 0;var PG=import.meta.require("stream"),qF=qG(),PF=x0();jG.splitStream=jF});var kG=M((hG)=>{async function SF($,w){var U;let E=0;const f=[],G=$.getReader();let W=!1;while(!W){const{done:X,value:Z}=await G.read();if(Z)f.push(Z),E+=(U=Z===null||Z===void 0?void 0:Z.byteLength)!==null&&U!==void 0?U:0;if(E>=w)break;W=X}G.releaseLock();const L=new Uint8Array(Math.min(w,E));let R=0;for(let X of f){if(X.byteLength>L.byteLength-R){L.set(X.subarray(0,L.byteLength-R),R);break}else L.set(X,R);R+=X.length}return L}Object.defineProperty(hG,"__esModule",{value:!0});hG.headStream=void 0;hG.headStream=SF});var yG=M((vG)=>{Object.defineProperty(vG,"__esModule",{value:!0});vG.headStream=void 0;var bF=import.meta.require("stream"),hF=kG(),DF=x0(),kF=($,w)=>{if(DF.isReadableStream($))return hF.headStream($,w);return new Promise((U,E)=>{const f=new cG;f.limit=w,$.pipe(f),$.on("error",(G)=>{f.end(),E(G)}),f.on("error",E),f.on("finish",function(){const G=new Uint8Array(Buffer.concat(this.buffers));U(G)})})};vG.headStream=kF;class cG extends bF.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=Infinity,this.bytesBuffered=0}_write($,w,U){var E;if(this.buffers.push($),this.bytesBuffered+=(E=$.byteLength)!==null&&E!==void 0?E:0,this.bytesBuffered>=this.limit){const f=this.bytesBuffered-this.limit,G=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=G.subarray(0,G.byteLength-f),this.emit("finish")}U()}}});var sG=M((h7,R0)=>{var dG=function($,w="utf-8"){if(w==="base64")return uG.toBase64($);return _G.toUtf8($)},pG=function($,w){if(w==="base64")return g$.mutate(uG.fromBase64($));return g$.mutate(_G.fromUtf8($))},B1=Object.defineProperty,cF=Object.getOwnPropertyDescriptor,vF=Object.getOwnPropertyNames,xF=Object.prototype.hasOwnProperty,s$=($,w)=>B1($,"name",{value:w,configurable:!0}),yF=($,w)=>{for(var U in w)B1($,U,{get:w[U],enumerable:!0})},p$=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of vF(w))if(!xF.call($,f)&&f!==U)B1($,f,{get:()=>w[f],enumerable:!(E=cF(w,f))||E.enumerable})}return $},y0=($,w,U)=>(p$($,w,"default"),U&&p$(U,w,"default")),uF=($)=>p$(B1({},"__esModule",{value:!0}),$),L0={};yF(L0,{Uint8ArrayBlobAdapter:()=>g$});R0.exports=uF(L0);var uG=T1(),_G=e();s$(dG,"transformToString");s$(pG,"transformFromString");var gG=class $ extends Uint8Array{static fromString(w,U="utf-8"){switch(typeof w){case"string":return pG(w,U);default:throw new Error(`Unsupported conversion from ${typeof w} to Uint8ArrayBlobAdapter.`)}}static mutate(w){return Object.setPrototypeOf(w,$.prototype),w}transformToString(w="utf-8"){return dG(this,w)}};s$(gG,"Uint8ArrayBlobAdapter");var g$=gG;y0(L0,cE(),R0.exports);y0(L0,HG(),R0.exports);y0(L0,bG(),R0.exports);y0(L0,yG(),R0.exports);y0(L0,x0(),R0.exports)});var O0=M((D7,YW)=>{var EW=function($){const w=$.getUTCFullYear(),U=$.getUTCMonth(),E=$.getUTCDay(),f=$.getUTCDate(),G=$.getUTCHours(),W=$.getUTCMinutes(),L=$.getUTCSeconds(),R=f<10?`0${f}`:`${f}`,X=G<10?`0${G}`:`${G}`,Z=W<10?`0${W}`:`${W}`,F=L<10?`0${L}`:`${L}`;return`${zI[E]}, ${R} ${ww[U]} ${w} ${X}:${Z}:${F} GMT`},C1=function($){return encodeURIComponent($).replace(/[!'()*]/g,function(w){return"%"+w.charCodeAt(0).toString(16).toUpperCase()})},Uw=function($,w,U){let E,f,G;if(typeof w==="undefined"&&typeof U==="undefined")E={},G=$;else if(E=$,typeof w==="function")return f=w,G=U,mI(E,f,G);else G=w;for(let W of Object.keys(G)){if(!Array.isArray(G[W])){E[W]=G[W];continue}FW(E,null,G,W)}return E},IW=function($,w,U){if(U<=0||!Number.isInteger(U))throw new Error("Invalid number of delimiters ("+U+") for splitEvery.");const E=$.split(w);if(U===1)return E;const f=[];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)f.push(G),G=""}if(G!=="")f.push(G);return f},N1=Object.defineProperty,dF=Object.getOwnPropertyDescriptor,pF=Object.getOwnPropertyNames,gF=Object.prototype.hasOwnProperty,Q=($,w)=>N1($,"name",{value:w,configurable:!0}),sF=($,w)=>{for(var U in w)N1($,U,{get:w[U],enumerable:!0})},nF=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of pF(w))if(!gF.call($,f)&&f!==U)N1($,f,{get:()=>w[f],enumerable:!(E=dF(w,f))||E.enumerable})}return $},lF=($)=>nF(N1({},"__esModule",{value:!0}),$),lG={};sF(lG,{Client:()=>iF,Command:()=>tG,LazyJsonString:()=>sI,NoOpLogger:()=>mF,SENSITIVE_STRING:()=>tF,ServiceException:()=>hI,StringWrapper:()=>g0,_json:()=>t$,collectBody:()=>rF,convertMap:()=>nI,createAggregatedClient:()=>aF,dateToUtcString:()=>EW,decorateServiceException:()=>WW,emitWarningIfUnsupportedVersion:()=>vI,expectBoolean:()=>$I,expectByte:()=>o$,expectFloat32:()=>V1,expectInt:()=>UI,expectInt32:()=>i$,expectLong:()=>d0,expectNonNull:()=>EI,expectNumber:()=>_0,expectObject:()=>eG,expectShort:()=>r$,expectString:()=>GI,expectUnion:()=>WI,extendedEncodeURIComponent:()=>C1,getArrayIfSingleItem:()=>gI,getDefaultClientConfiguration:()=>dI,getDefaultExtensionConfiguration:()=>RW,getValueFromTextNode:()=>XW,handleFloat:()=>XI,limitedParseDouble:()=>$w,limitedParseFloat:()=>ZI,limitedParseFloat32:()=>FI,loadConfigsForDefaultMode:()=>cI,logger:()=>p0,map:()=>Uw,parseBoolean:()=>eF,parseEpochTimestamp:()=>VI,parseRfc3339DateTime:()=>MI,parseRfc3339DateTimeWithOffset:()=>TI,parseRfc7231DateTime:()=>BI,resolveDefaultRuntimeConfig:()=>pI,resolvedPath:()=>oI,serializeDateTime:()=>aI,serializeFloat:()=>tI,splitEvery:()=>IW,strictParseByte:()=>fW,strictParseDouble:()=>e$,strictParseFloat:()=>LI,strictParseFloat32:()=>$W,strictParseInt:()=>II,strictParseInt32:()=>YI,strictParseLong:()=>UW,strictParseShort:()=>J0,take:()=>lI,throwDefaultError:()=>LW,withBaseException:()=>DI});YW.exports=lF(lG);var mG=class ${trace(){}debug(){}info(){}warn(){}error(){}};Q(mG,"NoOpLogger");var mF=mG,iG=_F(),rG=class ${constructor(w){this.middlewareStack=iG.constructStack(),this.config=w}send(w,U,E){const f=typeof U!=="function"?U:void 0,G=typeof U==="function"?U:E,W=w.resolveMiddleware(this.middlewareStack,this.config,f);if(G)W(w).then((L)=>G(null,L.output),(L)=>G(L)).catch(()=>{});else return W(w).then((L)=>L.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}};Q(rG,"Client");var iF=rG,n$=sG(),rF=Q(async($=new Uint8Array,w)=>{if($ instanceof Uint8Array)return n$.Uint8ArrayBlobAdapter.mutate($);if(!$)return n$.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const U=w.streamCollector($);return n$.Uint8ArrayBlobAdapter.mutate(await U)},"collectBody"),m$=G0(),oG=class ${constructor(){this.middlewareStack=iG.constructStack()}static classBuilder(){return new oF}resolveMiddlewareWithContext(w,U,E,{middlewareFn:f,clientName:G,commandName:W,inputFilterSensitiveLog:L,outputFilterSensitiveLog:R,smithyContext:X,additionalContext:Z,CommandCtor:F}){for(let O of f.bind(this)(F,w,U,E))this.middlewareStack.use(O);const Y=w.concat(this.middlewareStack),{logger:I}=U,z={logger:I,clientName:G,commandName:W,inputFilterSensitiveLog:L,outputFilterSensitiveLog:R,[m$.SMITHY_CONTEXT_KEY]:{commandInstance:this,...X},...Z},{requestHandler:J}=U;return Y.resolve((O)=>J.handle(O.request,E||{}),z)}};Q(oG,"Command");var tG=oG,aG=class ${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 tG{constructor(...[f]){super();this.serialize=U._serializer,this.deserialize=U._deserializer,this.input=f??{},U._init(this)}static getEndpointParameterInstructions(){return U._ep}resolveMiddleware(f,G,W){return this.resolveMiddlewareWithContext(f,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})}},Q(w,"CommandRef"),w)}};Q(aG,"ClassBuilder");var oF=aG,tF="***SensitiveInformation***",aF=Q(($,w)=>{for(let U of Object.keys($)){const E=$[U],f=Q(async function(W,L,R){const X=new E(W);if(typeof L==="function")this.send(X,L);else if(typeof R==="function"){if(typeof L!=="object")throw new Error(`Expected http options but got ${typeof L}`);this.send(X,L||{},R)}else return this.send(X,L)},"methodImpl"),G=(U[0].toLowerCase()+U.slice(1)).replace(/Command$/,"");w.prototype[G]=f}},"createAggregatedClient"),eF=Q(($)=>{switch($){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${$}"`)}},"parseBoolean"),$I=Q(($)=>{if($===null||$===void 0)return;if(typeof $==="number"){if($===0||$===1)p0.warn(H1(`Expected boolean, got ${typeof $}: ${$}`));if($===0)return!1;if($===1)return!0}if(typeof $==="string"){const w=$.toLowerCase();if(w==="false"||w==="true")p0.warn(H1(`Expected boolean, got ${typeof $}: ${$}`));if(w==="false")return!1;if(w==="true")return!0}if(typeof $==="boolean")return $;throw new TypeError(`Expected boolean, got ${typeof $}: ${$}`)},"expectBoolean"),_0=Q(($)=>{if($===null||$===void 0)return;if(typeof $==="string"){const w=parseFloat($);if(!Number.isNaN(w)){if(String(w)!==String($))p0.warn(H1(`Expected number but observed string: ${$}`));return w}}if(typeof $==="number")return $;throw new TypeError(`Expected number, got ${typeof $}: ${$}`)},"expectNumber"),wI=Math.ceil(340282346638528860000000000000000000000),V1=Q(($)=>{const w=_0($);if(w!==void 0&&!Number.isNaN(w)&&w!==Infinity&&w!==(-Infinity)){if(Math.abs(w)>wI)throw new TypeError(`Expected 32-bit float, got ${$}`)}return w},"expectFloat32"),d0=Q(($)=>{if($===null||$===void 0)return;if(Number.isInteger($)&&!Number.isNaN($))return $;throw new TypeError(`Expected integer, got ${typeof $}: ${$}`)},"expectLong"),UI=d0,i$=Q(($)=>a$($,32),"expectInt32"),r$=Q(($)=>a$($,16),"expectShort"),o$=Q(($)=>a$($,8),"expectByte"),a$=Q(($,w)=>{const U=d0($);if(U!==void 0&&fI(U,w)!==U)throw new TypeError(`Expected ${w}-bit integer, got ${$}`);return U},"expectSizedInt"),fI=Q(($,w)=>{switch(w){case 32:return Int32Array.of($)[0];case 16:return Int16Array.of($)[0];case 8:return Int8Array.of($)[0]}},"castInt"),EI=Q(($,w)=>{if($===null||$===void 0){if(w)throw new TypeError(`Expected a non-null value for ${w}`);throw new TypeError("Expected a non-null value")}return $},"expectNonNull"),eG=Q(($)=>{if($===null||$===void 0)return;if(typeof $==="object"&&!Array.isArray($))return $;const w=Array.isArray($)?"array":typeof $;throw new TypeError(`Expected object, got ${w}: ${$}`)},"expectObject"),GI=Q(($)=>{if($===null||$===void 0)return;if(typeof $==="string")return $;if(["boolean","number","bigint"].includes(typeof $))return p0.warn(H1(`Expected string, got ${typeof $}: ${$}`)),String($);throw new TypeError(`Expected string, got ${typeof $}: ${$}`)},"expectString"),WI=Q(($)=>{if($===null||$===void 0)return;const w=eG($),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"),e$=Q(($)=>{if(typeof $=="string")return _0(K0($));return _0($)},"strictParseDouble"),LI=e$,$W=Q(($)=>{if(typeof $=="string")return V1(K0($));return V1($)},"strictParseFloat32"),RI=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,K0=Q(($)=>{const w=$.match(RI);if(w===null||w[0].length!==$.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat($)},"parseNumber"),$w=Q(($)=>{if(typeof $=="string")return wW($);return _0($)},"limitedParseDouble"),XI=$w,ZI=$w,FI=Q(($)=>{if(typeof $=="string")return wW($);return V1($)},"limitedParseFloat32"),wW=Q(($)=>{switch($){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return (-Infinity);default:throw new Error(`Unable to parse float value: ${$}`)}},"parseFloatString"),UW=Q(($)=>{if(typeof $==="string")return d0(K0($));return d0($)},"strictParseLong"),II=UW,YI=Q(($)=>{if(typeof $==="string")return i$(K0($));return i$($)},"strictParseInt32"),J0=Q(($)=>{if(typeof $==="string")return r$(K0($));return r$($)},"strictParseShort"),fW=Q(($)=>{if(typeof $==="string")return o$(K0($));return o$($)},"strictParseByte"),H1=Q(($)=>{return String(new TypeError($).stack||$).split("\n").slice(0,5).filter((w)=>!w.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),p0={warn:console.warn},zI=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ww=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Q(EW,"dateToUtcString");var QI=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),MI=Q(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const w=QI.exec($);if(!w)throw new TypeError("Invalid RFC-3339 date-time value");const[U,E,f,G,W,L,R,X]=w,Z=J0(T0(E)),F=n(f,"month",1,12),Y=n(G,"day",1,31);return u0(Z,F,Y,{hours:W,minutes:L,seconds:R,fractionalMilliseconds:X})},"parseRfc3339DateTime"),JI=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),TI=Q(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const w=JI.exec($);if(!w)throw new TypeError("Invalid RFC-3339 date-time value");const[U,E,f,G,W,L,R,X,Z]=w,F=J0(T0(E)),Y=n(f,"month",1,12),I=n(G,"day",1,31),z=u0(F,Y,I,{hours:W,minutes:L,seconds:R,fractionalMilliseconds:X});if(Z.toUpperCase()!="Z")z.setTime(z.getTime()-bI(Z));return z},"parseRfc3339DateTimeWithOffset"),KI=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$/),OI=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$/),AI=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})$/),BI=Q(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let w=KI.exec($);if(w){const[U,E,f,G,W,L,R,X]=w;return u0(J0(T0(G)),l$(f),n(E,"day",1,31),{hours:W,minutes:L,seconds:R,fractionalMilliseconds:X})}if(w=OI.exec($),w){const[U,E,f,G,W,L,R,X]=w;return NI(u0(HI(G),l$(f),n(E,"day",1,31),{hours:W,minutes:L,seconds:R,fractionalMilliseconds:X}))}if(w=AI.exec($),w){const[U,E,f,G,W,L,R,X]=w;return u0(J0(T0(X)),l$(E),n(f.trimLeft(),"day",1,31),{hours:G,minutes:W,seconds:L,fractionalMilliseconds:R})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),VI=Q(($)=>{if($===null||$===void 0)return;let w;if(typeof $==="number")w=$;else if(typeof $==="string")w=e$($);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"),u0=Q(($,w,U,E)=>{const f=w-1;return PI($,f,U),new Date(Date.UTC($,f,U,n(E.hours,"hour",0,23),n(E.minutes,"minute",0,59),n(E.seconds,"seconds",0,60),SI(E.fractionalMilliseconds)))},"buildDate"),HI=Q(($)=>{const w=(new Date()).getUTCFullYear(),U=Math.floor(w/100)*100+J0(T0($));if(U<w)return U+100;return U},"parseTwoDigitYear"),CI=1576800000000,NI=Q(($)=>{if($.getTime()-(new Date()).getTime()>CI)return new Date(Date.UTC($.getUTCFullYear()-100,$.getUTCMonth(),$.getUTCDate(),$.getUTCHours(),$.getUTCMinutes(),$.getUTCSeconds(),$.getUTCMilliseconds()));return $},"adjustRfc850Year"),l$=Q(($)=>{const w=ww.indexOf($);if(w<0)throw new TypeError(`Invalid month: ${$}`);return w+1},"parseMonthByShortName"),qI=[31,28,31,30,31,30,31,31,30,31,30,31],PI=Q(($,w,U)=>{let E=qI[w];if(w===1&&jI($))E=29;if(U>E)throw new TypeError(`Invalid day for ${ww[w]} in ${$}: ${U}`)},"validateDayOfMonth"),jI=Q(($)=>{return $%4===0&&($%100!==0||$%400===0)},"isLeapYear"),n=Q(($,w,U,E)=>{const f=fW(T0($));if(f<U||f>E)throw new TypeError(`${w} must be between ${U} and ${E}, inclusive`);return f},"parseDateValue"),SI=Q(($)=>{if($===null||$===void 0)return 0;return $W("0."+$)*1000},"parseMilliseconds"),bI=Q(($)=>{const w=$[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($.substring(1,3)),f=Number($.substring(4,6));return U*(E*60+f)*60*1000},"parseOffsetToMilliseconds"),T0=Q(($)=>{let w=0;while(w<$.length-1&&$.charAt(w)==="0")w++;if(w===0)return $;return $.slice(w)},"stripLeadingZeroes"),GW=class $ extends Error{constructor(w){super(w.message);Object.setPrototypeOf(this,$.prototype),this.name=w.name,this.$fault=w.$fault,this.$metadata=w.$metadata}};Q(GW,"ServiceException");var hI=GW,WW=Q(($,w={})=>{Object.entries(w).filter(([,E])=>E!==void 0).forEach(([E,f])=>{if($[E]==null||$[E]==="")$[E]=f});const U=$.message||$.Message||"UnknownError";return $.message=U,delete $.Message,$},"decorateServiceException"),LW=Q(({output:$,parsedBody:w,exceptionCtor:U,errorCode:E})=>{const f=kI($),G=f.httpStatusCode?f.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:f});throw WW(W,w)},"throwDefaultError"),DI=Q(($)=>{return({output:w,parsedBody:U,errorCode:E})=>{LW({output:w,parsedBody:U,exceptionCtor:$,errorCode:E})}},"withBaseException"),kI=Q(($)=>({httpStatusCode:$.statusCode,requestId:$.headers["x-amzn-requestid"]??$.headers["x-amzn-request-id"]??$.headers["x-amz-request-id"],extendedRequestId:$.headers["x-amz-id-2"],cfId:$.headers["x-amz-cf-id"]}),"deserializeMetadata"),cI=Q(($)=>{switch($){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"),nG=!1,vI=Q(($)=>{if($&&!nG&&parseInt($.substring(1,$.indexOf(".")))<16)nG=!0},"emitWarningIfUnsupportedVersion"),xI=Q(($)=>{const w=[];for(let U in m$.AlgorithmId){const E=m$.AlgorithmId[U];if($[E]===void 0)continue;w.push({algorithmId:()=>E,checksumConstructor:()=>$[E]})}return{_checksumAlgorithms:w,addChecksumAlgorithm(U){this._checksumAlgorithms.push(U)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),yI=Q(($)=>{const w={};return $.checksumAlgorithms().forEach((U)=>{w[U.algorithmId()]=U.checksumConstructor()}),w},"resolveChecksumRuntimeConfig"),uI=Q(($)=>{let w=$.retryStrategy;return{setRetryStrategy(U){w=U},retryStrategy(){return w}}},"getRetryConfiguration"),_I=Q(($)=>{const w={};return w.retryStrategy=$.retryStrategy(),w},"resolveRetryRuntimeConfig"),RW=Q(($)=>{return{...xI($),...uI($)}},"getDefaultExtensionConfiguration"),dI=RW,pI=Q(($)=>{return{...yI($),..._I($)}},"resolveDefaultRuntimeConfig");Q(C1,"extendedEncodeURIComponent");var gI=Q(($)=>Array.isArray($)?$:[$],"getArrayIfSingleItem"),XW=Q(($)=>{for(let U in $)if($.hasOwnProperty(U)&&$[U]["#text"]!==void 0)$[U]=$[U]["#text"];else if(typeof $[U]==="object"&&$[U]!==null)$[U]=XW($[U]);return $},"getValueFromTextNode"),g0=Q(function(){const $=Object.getPrototypeOf(this).constructor,U=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(U,$.prototype),U},"StringWrapper");g0.prototype=Object.create(String.prototype,{constructor:{value:g0,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(g0,String);var ZW=class $ extends g0{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(w){if(w instanceof $)return w;else if(w instanceof String||typeof w==="string")return new $(w);return new $(JSON.stringify(w))}};Q(ZW,"LazyJsonString");var sI=ZW;Q(Uw,"map");var nI=Q(($)=>{const w={};for(let[U,E]of Object.entries($||{}))w[U]=[,E];return w},"convertMap"),lI=Q(($,w)=>{const U={};for(let E in w)FW(U,$,w,E);return U},"take"),mI=Q(($,w,U)=>{return Uw($,Object.entries(U).reduce((E,[f,G])=>{if(Array.isArray(G))E[f]=G;else if(typeof G==="function")E[f]=[w,G()];else E[f]=[w,G];return E},{}))},"mapWithFilter"),FW=Q(($,w,U,E)=>{if(w!==null){let W=U[E];if(typeof W==="function")W=[,W];const[L=iI,R=rI,X=E]=W;if(typeof L==="function"&&L(w[X])||typeof L!=="function"&&!!L)$[E]=R(w[X]);return}let[f,G]=U[E];if(typeof G==="function"){let W;const L=f===void 0&&(W=G())!=null,R=typeof f==="function"&&!!f(void 0)||typeof f!=="function"&&!!f;if(L)$[E]=W;else if(R)$[E]=G()}else{const W=f===void 0&&G!=null,L=typeof f==="function"&&!!f(G)||typeof f!=="function"&&!!f;if(W||L)$[E]=G}},"applyInstruction"),iI=Q(($)=>$!=null,"nonNullish"),rI=Q(($)=>$,"pass"),oI=Q(($,w,U,E,f,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+".");$=$.replace(f,G?W.split("/").map((L)=>C1(L)).join("/"):C1(W))}else throw new Error("No value provided for input HTTP label: "+U+".");return $},"resolvedPath"),tI=Q(($)=>{if($!==$)return"NaN";switch($){case Infinity:return"Infinity";case (-Infinity):return"-Infinity";default:return $}},"serializeFloat"),aI=Q(($)=>$.toISOString().replace(".000Z","Z"),"serializeDateTime"),t$=Q(($)=>{if($==null)return{};if(Array.isArray($))return $.filter((w)=>w!=null).map(t$);if(typeof $==="object"){const w={};for(let U of Object.keys($)){if($[U]==null)continue;w[U]=t$($[U])}return w}return $},"_json");Q(IW,"splitEvery")});var MW=M((zW)=>{Object.defineProperty(zW,"__esModule",{value:!0});zW.isStreamingPayload=void 0;var eI=import.meta.require("stream"),$Y=($)=>($===null||$===void 0?void 0:$.body)instanceof eI.Readable||typeof ReadableStream!=="undefined"&&($===null||$===void 0?void 0:$.body)instanceof ReadableStream;zW.isStreamingPayload=$Y});var kW=M((v7,DW)=>{var{defineProperty:q1,getOwnPropertyDescriptor:wY,getOwnPropertyNames:UY}=Object,fY=Object.prototype.hasOwnProperty,j=($,w)=>q1($,"name",{value:w,configurable:!0}),EY=($,w)=>{for(var U in w)q1($,U,{get:w[U],enumerable:!0})},GY=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of UY(w))if(!fY.call($,f)&&f!==U)q1($,f,{get:()=>w[f],enumerable:!(E=wY(w,f))||E.enumerable})}return $},WY=($)=>GY(q1({},"__esModule",{value:!0}),$),TW={};EY(TW,{AdaptiveRetryStrategy:()=>XY,CONFIG_MAX_ATTEMPTS:()=>Ew,CONFIG_RETRY_MODE:()=>qW,ENV_MAX_ATTEMPTS:()=>fw,ENV_RETRY_MODE:()=>NW,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>ZY,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>IY,StandardRetryStrategy:()=>HW,defaultDelayDecider:()=>OW,defaultRetryDecider:()=>AW,getOmitRetryHeadersPlugin:()=>YY,getRetryAfterHint:()=>hW,getRetryPlugin:()=>KY,omitRetryHeadersMiddleware:()=>PW,omitRetryHeadersMiddlewareOptions:()=>jW,resolveRetryConfig:()=>FY,retryMiddleware:()=>SW,retryMiddlewareOptions:()=>bW});DW.exports=WY(TW);var A0=m(),KW=C$(),C=QE(),LY=j(($,w)=>{const U=$,E=(w==null?void 0:w.noRetryIncrement)??C.NO_RETRY_INCREMENT,f=(w==null?void 0:w.retryCost)??C.RETRY_COST,G=(w==null?void 0:w.timeoutRetryCost)??C.TIMEOUT_RETRY_COST;let W=$;const L=j((F)=>F.name==="TimeoutError"?G:f,"getCapacityAmount"),R=j((F)=>L(F)<=W,"hasRetryTokens");return Object.freeze({hasRetryTokens:R,retrieveRetryTokens:j((F)=>{if(!R(F))throw new Error("No retry token available");const Y=L(F);return W-=Y,Y},"retrieveRetryTokens"),releaseRetryTokens:j((F)=>{W+=F??E,W=Math.min(W,U)},"releaseRetryTokens")})},"getDefaultRetryQuota"),OW=j(($,w)=>Math.floor(Math.min(C.MAXIMUM_RETRY_DELAY,Math.random()*2**w*$)),"defaultDelayDecider"),$0=N$(),AW=j(($)=>{if(!$)return!1;return $0.isRetryableByTrait($)||$0.isClockSkewError($)||$0.isThrottlingError($)||$0.isTransientError($)},"defaultRetryDecider"),BW=j(($)=>{if($ instanceof Error)return $;if($ instanceof Object)return Object.assign(new Error,$);if(typeof $==="string")return new Error($);return new Error(`AWS SDK error wrapper for ${$}`)},"asSdkError"),VW=class ${constructor(w,U){this.maxAttemptsProvider=w,this.mode=C.RETRY_MODES.STANDARD,this.retryDecider=(U==null?void 0:U.retryDecider)??AW,this.delayDecider=(U==null?void 0:U.delayDecider)??OW,this.retryQuota=(U==null?void 0:U.retryQuota)??LY(C.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=C.DEFAULT_MAX_ATTEMPTS}return w}async retry(w,U,E){let f,G=0,W=0;const L=await this.getMaxAttempts(),{request:R}=U;if(A0.HttpRequest.isInstance(R))R.headers[C.INVOCATION_ID_HEADER]=KW.v4();while(!0)try{if(A0.HttpRequest.isInstance(R))R.headers[C.REQUEST_HEADER]=`attempt=${G+1}; max=${L}`;if(E==null?void 0:E.beforeRequest)await E.beforeRequest();const{response:X,output:Z}=await w(U);if(E==null?void 0:E.afterRequest)E.afterRequest(X);return this.retryQuota.releaseRetryTokens(f),Z.$metadata.attempts=G+1,Z.$metadata.totalRetryDelay=W,{response:X,output:Z}}catch(X){const Z=BW(X);if(G++,this.shouldRetry(Z,G,L)){f=this.retryQuota.retrieveRetryTokens(Z);const F=this.delayDecider($0.isThrottlingError(Z)?C.THROTTLING_RETRY_DELAY_BASE:C.DEFAULT_RETRY_DELAY_BASE,G),Y=RY(Z.$response),I=Math.max(Y||0,F);W+=I,await new Promise((z)=>setTimeout(z,I));continue}if(!Z.$metadata)Z.$metadata={};throw Z.$metadata.attempts=G,Z.$metadata.totalRetryDelay=W,Z}}};j(VW,"StandardRetryStrategy");var HW=VW,RY=j(($)=>{if(!A0.HttpResponse.isInstance($))return;const w=Object.keys($.headers).find((G)=>G.toLowerCase()==="retry-after");if(!w)return;const U=$.headers[w],E=Number(U);if(!Number.isNaN(E))return E*1000;return new Date(U).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),CW=class $ extends HW{constructor(w,U){const{rateLimiter:E,...f}=U??{};super(w,f);this.rateLimiter=E??new C.DefaultRateLimiter,this.mode=C.RETRY_MODES.ADAPTIVE}async retry(w,U){return super.retry(w,U,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(E)=>{this.rateLimiter.updateClientSendingRate(E)}})}};j(CW,"AdaptiveRetryStrategy");var XY=CW,JW=P0(),fw="AWS_MAX_ATTEMPTS",Ew="max_attempts",ZY={environmentVariableSelector:($)=>{const w=$[fw];if(!w)return;const U=parseInt(w);if(Number.isNaN(U))throw new Error(`Environment variable ${fw} mast be a number, got "${w}"`);return U},configFileSelector:($)=>{const w=$[Ew];if(!w)return;const U=parseInt(w);if(Number.isNaN(U))throw new Error(`Shared config file entry ${Ew} mast be a number, got "${w}"`);return U},default:C.DEFAULT_MAX_ATTEMPTS},FY=j(($)=>{const{retryStrategy:w}=$,U=JW.normalizeProvider($.maxAttempts??C.DEFAULT_MAX_ATTEMPTS);return{...$,maxAttempts:U,retryStrategy:async()=>{if(w)return w;if(await JW.normalizeProvider($.retryMode)()===C.RETRY_MODES.ADAPTIVE)return new C.AdaptiveRetryStrategy(U);return new C.StandardRetryStrategy(U)}}},"resolveRetryConfig"),NW="AWS_RETRY_MODE",qW="retry_mode",IY={environmentVariableSelector:($)=>$[NW],configFileSelector:($)=>$[qW],default:C.DEFAULT_RETRY_MODE},PW=j(()=>($)=>async(w)=>{const{request:U}=w;if(A0.HttpRequest.isInstance(U))delete U.headers[C.INVOCATION_ID_HEADER],delete U.headers[C.REQUEST_HEADER];return $(w)},"omitRetryHeadersMiddleware"),jW={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},YY=j(($)=>({applyToStack:(w)=>{w.addRelativeTo(PW(),jW)}}),"getOmitRetryHeadersPlugin"),zY=O0(),QY=MW(),SW=j(($)=>(w,U)=>async(E)=>{var f;let G=await $.retryStrategy();const W=await $.maxAttempts();if(MY(G)){G=G;let L=await G.acquireInitialRetryToken(U.partition_id),R=new Error,X=0,Z=0;const{request:F}=E,Y=A0.HttpRequest.isInstance(F);if(Y)F.headers[C.INVOCATION_ID_HEADER]=KW.v4();while(!0)try{if(Y)F.headers[C.REQUEST_HEADER]=`attempt=${X+1}; max=${W}`;const{response:I,output:z}=await w(E);return G.recordSuccess(L),z.$metadata.attempts=X+1,z.$metadata.totalRetryDelay=Z,{response:I,output:z}}catch(I){const z=JY(I);if(R=BW(I),Y&&QY.isStreamingPayload(F))throw(f=U.logger instanceof zY.NoOpLogger?console:U.logger)==null||f.warn("An error was encountered in a non-retryable streaming request."),R;try{L=await G.refreshRetryTokenForRetry(L,z)}catch(O){if(!R.$metadata)R.$metadata={};throw R.$metadata.attempts=X+1,R.$metadata.totalRetryDelay=Z,R}X=L.getRetryCount();const J=L.getRetryDelay();Z+=J,await new Promise((O)=>setTimeout(O,J))}}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"),MY=j(($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined","isRetryStrategyV2"),JY=j(($)=>{const w={error:$,errorType:TY($)},U=hW($.$response);if(U)w.retryAfterHint=U;return w},"getRetryErrorInfo"),TY=j(($)=>{if($0.isThrottlingError($))return"THROTTLING";if($0.isTransientError($))return"TRANSIENT";if($0.isServerError($))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),bW={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},KY=j(($)=>({applyToStack:(w)=>{w.add(SW($),bW)}}),"getRetryPlugin"),hW=j(($)=>{if(!A0.HttpResponse.isInstance($))return;const w=Object.keys($.headers).find((G)=>G.toLowerCase()==="retry-after");if(!w)return;const U=$.headers[w],E=Number(U);if(!Number.isNaN(E))return new Date(E*1000);return new Date(U)},"getRetryAfterHint")});var Ww=M((x7,eW)=>{var xW=function($){const w=new Map;for(let U of $)w.set(U.schemeId,U);return w},rW=function($,w){return new tW($,w)},aW=function($,w,U,E,f){return H(async function*G(W,L,...R){let X=W.startingToken||void 0,Z=!0,F;while(Z){if(L[U]=X,f)L[f]=L[f]??W.pageSize;if(W.client instanceof $)F=await gY(w,W.client,L,...R);else throw new Error(`Invalid client, expected instance of ${$.name}`);yield F;const Y=X;X=sY(F,E),Z=!!(X&&(!W.stopOnSameToken||X!==Y))}return},"paginateOperation")},j1=Object.defineProperty,OY=Object.getOwnPropertyDescriptor,AY=Object.getOwnPropertyNames,BY=Object.prototype.hasOwnProperty,H=($,w)=>j1($,"name",{value:w,configurable:!0}),VY=($,w)=>{for(var U in w)j1($,U,{get:w[U],enumerable:!0})},HY=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of AY(w))if(!BY.call($,f)&&f!==U)j1($,f,{get:()=>w[f],enumerable:!(E=OY(w,f))||E.enumerable})}return $},CY=($)=>HY(j1({},"__esModule",{value:!0}),$),cW={};VY(cW,{DefaultIdentityProviderConfig:()=>kY,EXPIRATION_MS:()=>mW,HttpApiKeyAuthSigner:()=>cY,HttpBearerAuthSigner:()=>vY,NoAuthSigner:()=>xY,RequestBuilder:()=>tW,createIsIdentityExpiredFunction:()=>lW,createPaginator:()=>aW,doesIdentityRequireRefresh:()=>iW,getHttpAuthSchemeEndpointRuleSetPlugin:()=>qY,getHttpAuthSchemePlugin:()=>jY,getHttpSigningPlugin:()=>DY,getSmithyContext:()=>_Y,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>yW,httpAuthSchemeMiddleware:()=>Gw,httpAuthSchemeMiddlewareOptions:()=>uW,httpSigningMiddleware:()=>_W,httpSigningMiddlewareOptions:()=>dW,isIdentityExpired:()=>yY,memoizeIdentityProvider:()=>uY,normalizeProvider:()=>dY,requestBuilder:()=>rW});eW.exports=CY(cW);var vW=P0();H(xW,"convertHttpAuthSchemesToMap");var Gw=H(($,w)=>(U,E)=>async(f)=>{var G;const W=$.httpAuthSchemeProvider(await w.httpAuthSchemeParametersProvider($,E,f.input)),L=xW($.httpAuthSchemes),R=vW.getSmithyContext(E),X=[];for(let Z of W){const F=L.get(Z.schemeId);if(!F){X.push(`HttpAuthScheme \`${Z.schemeId}\` was not enabled for this service.`);continue}const Y=F.identityProvider(await w.identityProviderConfigProvider($));if(!Y){X.push(`HttpAuthScheme \`${Z.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:I={},signingProperties:z={}}=((G=Z.propertiesExtractor)==null?void 0:G.call(Z,$,E))||{};Z.identityProperties=Object.assign(Z.identityProperties||{},I),Z.signingProperties=Object.assign(Z.signingProperties||{},z),R.selectedHttpAuthScheme={httpAuthOption:Z,identity:await Y(Z.identityProperties),signer:F.signer};break}if(!R.selectedHttpAuthScheme)throw new Error(X.join("\n"));return U(f)},"httpAuthSchemeMiddleware"),NY=iU(),yW={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:NY.endpointMiddlewareOptions.name},qY=H(($,{httpAuthSchemeParametersProvider:w,identityProviderConfigProvider:U})=>({applyToStack:(E)=>{E.addRelativeTo(Gw($,{httpAuthSchemeParametersProvider:w,identityProviderConfigProvider:U}),yW)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),PY=J$(),uW={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:PY.serializerMiddlewareOption.name},jY=H(($,{httpAuthSchemeParametersProvider:w,identityProviderConfigProvider:U})=>({applyToStack:(E)=>{E.addRelativeTo(Gw($,{httpAuthSchemeParametersProvider:w,identityProviderConfigProvider:U}),uW)}}),"getHttpAuthSchemePlugin"),S1=m(),SY=H(($)=>(w)=>{throw w},"defaultErrorHandler"),bY=H(($,w)=>{},"defaultSuccessHandler"),_W=H(($)=>(w,U)=>async(E)=>{if(!S1.HttpRequest.isInstance(E.request))return w(E);const G=vW.getSmithyContext(U).selectedHttpAuthScheme;if(!G)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:W={}},identity:L,signer:R}=G,X=await w({...E,request:await R.sign(E.request,L,W)}).catch((R.errorHandler||SY)(W));return(R.successHandler||bY)(X.response,W),X},"httpSigningMiddleware"),hY=kW(),dW={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:hY.retryMiddlewareOptions.name},DY=H(($)=>({applyToStack:(w)=>{w.addRelativeTo(_W($),dW)}}),"getHttpSigningPlugin"),pW=class ${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)}};H(pW,"DefaultIdentityProviderConfig");var kY=pW,P1=G0(),gW=class ${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 f=S1.HttpRequest.clone(w);if(E.in===P1.HttpApiKeyAuthLocation.QUERY)f.query[E.name]=U.apiKey;else if(E.in===P1.HttpApiKeyAuthLocation.HEADER)f.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 f}};H(gW,"HttpApiKeyAuthSigner");var cY=gW,sW=class ${async sign(w,U,E){const f=S1.HttpRequest.clone(w);if(!U.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return f.headers.Authorization=`Bearer ${U.token}`,f}};H(sW,"HttpBearerAuthSigner");var vY=sW,nW=class ${async sign(w,U,E){return w}};H(nW,"NoAuthSigner");var xY=nW,lW=H(($)=>(w)=>iW(w)&&w.expiration.getTime()-Date.now()<$,"createIsIdentityExpiredFunction"),mW=300000,yY=lW(mW),iW=H(($)=>$.expiration!==void 0,"doesIdentityRequireRefresh"),uY=H(($,w,U)=>{if($===void 0)return;const E=typeof $!=="function"?async()=>Promise.resolve($):$;let f,G,W,L=!1;const R=H(async(X)=>{if(!G)G=E(X);try{f=await G,W=!0,L=!1}finally{G=void 0}return f},"coalesceProvider");if(w===void 0)return async(X)=>{if(!W||(X==null?void 0:X.forceRefresh))f=await R(X);return f};return async(X)=>{if(!W||(X==null?void 0:X.forceRefresh))f=await R(X);if(L)return f;if(!U(f))return L=!0,f;if(w(f))return await R(X),f;return f}},"memoizeIdentityProvider"),_Y=H(($)=>$[P1.SMITHY_CONTEXT_KEY]||($[P1.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),dY=H(($)=>{if(typeof $==="function")return $;const w=Promise.resolve($);return()=>w},"normalizeProvider"),pY=O0();H(rW,"requestBuilder");var oW=class ${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:f}=await this.context.endpoint();this.path=f;for(let G of this.resolvePathStack)G(this.path);return new S1.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,f){return this.resolvePathStack.push((G)=>{this.path=pY.resolvedPath(G,this.input,w,U,E,f)}),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}};H(oW,"RequestBuilder");var tW=oW,gY=H(async($,w,U,...E)=>{return await w.send(new $(U),...E)},"makePagedClientRequest");H(aW,"createPaginator");var sY=H(($,w)=>{let U=$;const E=w.split(".");for(let f of E){if(!U||typeof U!=="object")return;U=U[f]}return U},"get")});var OR=M((FA,r1)=>{var mL,iL,rL,oL,tL,aL,eL,$R,wR,UR,fR,ER,GR,m1,qw,WR,LR,RR,N0,XR,ZR,FR,IR,YR,zR,QR,MR,JR,i1,TR,KR;(function($){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){$(U(w,U(E)))});else if(typeof r1==="object"&&typeof FA==="object")$(U(w,U(FA)));else $(U(w));function U(E,f){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]=f?f(G,W):W}}})(function($){var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,G){f.__proto__=G}||function(f,G){for(var W in G)if(Object.prototype.hasOwnProperty.call(G,W))f[W]=G[W]};mL=function(f,G){if(typeof G!=="function"&&G!==null)throw new TypeError("Class extends value "+String(G)+" is not a constructor or null");w(f,G);function W(){this.constructor=f}f.prototype=G===null?Object.create(G):(W.prototype=G.prototype,new W)},iL=Object.assign||function(f){for(var G,W=1,L=arguments.length;W<L;W++){G=arguments[W];for(var R in G)if(Object.prototype.hasOwnProperty.call(G,R))f[R]=G[R]}return f},rL=function(f,G){var W={};for(var L in f)if(Object.prototype.hasOwnProperty.call(f,L)&&G.indexOf(L)<0)W[L]=f[L];if(f!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var R=0,L=Object.getOwnPropertySymbols(f);R<L.length;R++)if(G.indexOf(L[R])<0&&Object.prototype.propertyIsEnumerable.call(f,L[R]))W[L[R]]=f[L[R]]}return W},oL=function(f,G,W,L){var R=arguments.length,X=R<3?G:L===null?L=Object.getOwnPropertyDescriptor(G,W):L,Z;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")X=Reflect.decorate(f,G,W,L);else for(var F=f.length-1;F>=0;F--)if(Z=f[F])X=(R<3?Z(X):R>3?Z(G,W,X):Z(G,W))||X;return R>3&&X&&Object.defineProperty(G,W,X),X},tL=function(f,G){return function(W,L){G(W,L,f)}},aL=function(f,G,W,L,R,X){function Z(S){if(S!==void 0&&typeof S!=="function")throw new TypeError("Function expected");return S}var F=L.kind,Y=F==="getter"?"get":F==="setter"?"set":"value",I=!G&&f?L.static?f:f.prototype:null,z=G||(I?Object.getOwnPropertyDescriptor(I,L.name):{}),J,O=!1;for(var T=W.length-1;T>=0;T--){var K={};for(var A in L)K[A]=A==="access"?{}:L[A];for(var A in L.access)K.access[A]=L.access[A];K.addInitializer=function(S){if(O)throw new TypeError("Cannot add initializers after decoration has completed");X.push(Z(S||null))};var V=W[T](F==="accessor"?{get:z.get,set:z.set}:z[Y],K);if(F==="accessor"){if(V===void 0)continue;if(V===null||typeof V!=="object")throw new TypeError("Object expected");if(J=Z(V.get))z.get=J;if(J=Z(V.set))z.set=J;if(J=Z(V.init))R.unshift(J)}else if(J=Z(V))if(F==="field")R.unshift(J);else z[Y]=J}if(I)Object.defineProperty(I,L.name,z);O=!0},eL=function(f,G,W){var L=arguments.length>2;for(var R=0;R<G.length;R++)W=L?G[R].call(f,W):G[R].call(f);return L?W:void 0},$R=function(f){return typeof f==="symbol"?f:"".concat(f)},wR=function(f,G,W){if(typeof G==="symbol")G=G.description?"[".concat(G.description,"]"):"";return Object.defineProperty(f,"name",{configurable:!0,value:W?"".concat(W," ",G):G})},UR=function(f,G){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(f,G)},fR=function(f,G,W,L){function R(X){return X instanceof W?X:new W(function(Z){Z(X)})}return new(W||(W=Promise))(function(X,Z){function F(z){try{I(L.next(z))}catch(J){Z(J)}}function Y(z){try{I(L.throw(z))}catch(J){Z(J)}}function I(z){z.done?X(z.value):R(z.value).then(F,Y)}I((L=L.apply(f,G||[])).next())})},ER=function(f,G){var W={label:0,sent:function(){if(X[0]&1)throw X[1];return X[1]},trys:[],ops:[]},L,R,X,Z;return Z={next:F(0),throw:F(1),return:F(2)},typeof Symbol==="function"&&(Z[Symbol.iterator]=function(){return this}),Z;function F(I){return function(z){return Y([I,z])}}function Y(I){if(L)throw new TypeError("Generator is already executing.");while(Z&&(Z=0,I[0]&&(W=0)),W)try{if(L=1,R&&(X=I[0]&2?R.return:I[0]?R.throw||((X=R.return)&&X.call(R),0):R.next)&&!(X=X.call(R,I[1])).done)return X;if(R=0,X)I=[I[0]&2,X.value];switch(I[0]){case 0:case 1:X=I;break;case 4:return W.label++,{value:I[1],done:!1};case 5:W.label++,R=I[1],I=[0];continue;case 7:I=W.ops.pop(),W.trys.pop();continue;default:if((X=W.trys,!(X=X.length>0&&X[X.length-1]))&&(I[0]===6||I[0]===2)){W=0;continue}if(I[0]===3&&(!X||I[1]>X[0]&&I[1]<X[3])){W.label=I[1];break}if(I[0]===6&&W.label<X[1]){W.label=X[1],X=I;break}if(X&&W.label<X[2]){W.label=X[2],W.ops.push(I);break}if(X[2])W.ops.pop();W.trys.pop();continue}I=G.call(f,W)}catch(z){I=[6,z],R=0}finally{L=X=0}if(I[0]&5)throw I[1];return{value:I[0]?I[1]:void 0,done:!0}}},GR=function(f,G){for(var W in f)if(W!=="default"&&!Object.prototype.hasOwnProperty.call(G,W))i1(G,f,W)},i1=Object.create?function(f,G,W,L){if(L===void 0)L=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(f,L,R)}:function(f,G,W,L){if(L===void 0)L=W;f[L]=G[W]},m1=function(f){var G=typeof Symbol==="function"&&Symbol.iterator,W=G&&f[G],L=0;if(W)return W.call(f);if(f&&typeof f.length==="number")return{next:function(){if(f&&L>=f.length)f=void 0;return{value:f&&f[L++],done:!f}}};throw new TypeError(G?"Object is not iterable.":"Symbol.iterator is not defined.")},qw=function(f,G){var W=typeof Symbol==="function"&&f[Symbol.iterator];if(!W)return f;var L=W.call(f),R,X=[],Z;try{while((G===void 0||G-- >0)&&!(R=L.next()).done)X.push(R.value)}catch(F){Z={error:F}}finally{try{if(R&&!R.done&&(W=L.return))W.call(L)}finally{if(Z)throw Z.error}}return X},WR=function(){for(var f=[],G=0;G<arguments.length;G++)f=f.concat(qw(arguments[G]));return f},LR=function(){for(var f=0,G=0,W=arguments.length;G<W;G++)f+=arguments[G].length;for(var L=Array(f),R=0,G=0;G<W;G++)for(var X=arguments[G],Z=0,F=X.length;Z<F;Z++,R++)L[R]=X[Z];return L},RR=function(f,G,W){if(W||arguments.length===2){for(var L=0,R=G.length,X;L<R;L++)if(X||!(L in G)){if(!X)X=Array.prototype.slice.call(G,0,L);X[L]=G[L]}}return f.concat(X||Array.prototype.slice.call(G))},N0=function(f){return this instanceof N0?(this.v=f,this):new N0(f)},XR=function(f,G,W){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var L=W.apply(f,G||[]),R,X=[];return R={},F("next"),F("throw"),F("return",Z),R[Symbol.asyncIterator]=function(){return this},R;function Z(T){return function(K){return Promise.resolve(K).then(T,J)}}function F(T,K){if(L[T]){if(R[T]=function(A){return new Promise(function(V,S){X.push([T,A,V,S])>1||Y(T,A)})},K)R[T]=K(R[T])}}function Y(T,K){try{I(L[T](K))}catch(A){O(X[0][3],A)}}function I(T){T.value instanceof N0?Promise.resolve(T.value.v).then(z,J):O(X[0][2],T)}function z(T){Y("next",T)}function J(T){Y("throw",T)}function O(T,K){if(T(K),X.shift(),X.length)Y(X[0][0],X[0][1])}},ZR=function(f){var G,W;return G={},L("next"),L("throw",function(R){throw R}),L("return"),G[Symbol.iterator]=function(){return this},G;function L(R,X){G[R]=f[R]?function(Z){return(W=!W)?{value:N0(f[R](Z)),done:!1}:X?X(Z):Z}:X}},FR=function(f){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var G=f[Symbol.asyncIterator],W;return G?G.call(f):(f=typeof m1==="function"?m1(f):f[Symbol.iterator](),W={},L("next"),L("throw"),L("return"),W[Symbol.asyncIterator]=function(){return this},W);function L(X){W[X]=f[X]&&function(Z){return new Promise(function(F,Y){Z=f[X](Z),R(F,Y,Z.done,Z.value)})}}function R(X,Z,F,Y){Promise.resolve(Y).then(function(I){X({value:I,done:F})},Z)}},IR=function(f,G){if(Object.defineProperty)Object.defineProperty(f,"raw",{value:G});else f.raw=G;return f};var U=Object.create?function(f,G){Object.defineProperty(f,"default",{enumerable:!0,value:G})}:function(f,G){f.default=G};YR=function(f){if(f&&f.__esModule)return f;var G={};if(f!=null){for(var W in f)if(W!=="default"&&Object.prototype.hasOwnProperty.call(f,W))i1(G,f,W)}return U(G,f),G},zR=function(f){return f&&f.__esModule?f:{default:f}},QR=function(f,G,W,L){if(W==="a"&&!L)throw new TypeError("Private accessor was defined without a getter");if(typeof G==="function"?f!==G||!L:!G.has(f))throw new TypeError("Cannot read private member from an object whose class did not declare it");return W==="m"?L:W==="a"?L.call(f):L?L.value:G.get(f)},MR=function(f,G,W,L,R){if(L==="m")throw new TypeError("Private method is not writable");if(L==="a"&&!R)throw new TypeError("Private accessor was defined without a setter");if(typeof G==="function"?f!==G||!R:!G.has(f))throw new TypeError("Cannot write private member to an object whose class did not declare it");return L==="a"?R.call(f,W):R?R.value=W:G.set(f,W),W},JR=function(f,G){if(G===null||typeof G!=="object"&&typeof G!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof f==="function"?G===f:f.has(G)},TR=function(f,G,W){if(G!==null&&G!==void 0){if(typeof G!=="object"&&typeof G!=="function")throw new TypeError("Object expected.");var L,R;if(W){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");L=G[Symbol.asyncDispose]}if(L===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");if(L=G[Symbol.dispose],W)R=L}if(typeof L!=="function")throw new TypeError("Object not disposable.");if(R)L=function(){try{R.call(this)}catch(X){return Promise.reject(X)}};f.stack.push({value:G,dispose:L,async:W})}else if(W)f.stack.push({async:!0});return G};var E=typeof SuppressedError==="function"?SuppressedError:function(f,G,W){var L=new Error(W);return L.name="SuppressedError",L.error=f,L.suppressed=G,L};KR=function(f){function G(L){f.error=f.hasError?new E(L,f.error,"An error was suppressed during disposal."):L,f.hasError=!0}function W(){while(f.stack.length){var L=f.stack.pop();try{var R=L.dispose&&L.dispose.call(L.value);if(L.async)return Promise.resolve(R).then(W,function(X){return G(X),W()})}catch(X){G(X)}}if(f.hasError)throw f.error}return W()},$("__extends",mL),$("__assign",iL),$("__rest",rL),$("__decorate",oL),$("__param",tL),$("__esDecorate",aL),$("__runInitializers",eL),$("__propKey",$R),$("__setFunctionName",wR),$("__metadata",UR),$("__awaiter",fR),$("__generator",ER),$("__exportStar",GR),$("__createBinding",i1),$("__values",m1),$("__read",qw),$("__spread",WR),$("__spreadArrays",LR),$("__spreadArray",RR),$("__await",N0),$("__asyncGenerator",XR),$("__asyncDelegator",ZR),$("__asyncValues",FR),$("__makeTemplateObject",IR),$("__importStar",YR),$("__importDefault",zR),$("__classPrivateFieldGet",QR),$("__classPrivateFieldSet",MR),$("__classPrivateFieldIn",JR),$("__addDisposableResource",TR),$("__disposeResources",KR)})});var HR=M((IA,VR)=>{var{defineProperty:o1,getOwnPropertyDescriptor:H5,getOwnPropertyNames:C5}=Object,N5=Object.prototype.hasOwnProperty,q5=($,w)=>o1($,"name",{value:w,configurable:!0}),P5=($,w)=>{for(var U in w)o1($,U,{get:w[U],enumerable:!0})},j5=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of C5(w))if(!N5.call($,f)&&f!==U)o1($,f,{get:()=>w[f],enumerable:!(E=H5(w,f))||E.enumerable})}return $},S5=($)=>j5(o1({},"__esModule",{value:!0}),$),BR={};P5(BR,{emitWarningIfUnsupportedVersion:()=>b5});VR.exports=S5(BR);var AR=!1,b5=q5(($)=>{if($&&!AR&&parseInt($.substring(1,$.indexOf(".")))<18)AR=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
4
- no longer support Node.js 16.x on January 6, 2025.
5
-
6
- To continue receiving updates to AWS services, bug fixes, and security
7
- updates please upgrade to a supported Node.js LTS version.
8
-
9
- More information can be found at: https://a.co/74kJMmI`)},"emitWarningIfUnsupportedVersion")});var sR=M((YA,gR)=>{var hw=function($){for(let w=0;w<8;w++)$[w]^=255;for(let w=7;w>-1;w--)if($[w]++,$[w]!==0)break},w$=Object.defineProperty,h5=Object.getOwnPropertyDescriptor,D5=Object.getOwnPropertyNames,k5=Object.prototype.hasOwnProperty,b=($,w)=>w$($,"name",{value:w,configurable:!0}),c5=($,w)=>{for(var U in w)w$($,U,{get:w[U],enumerable:!0})},v5=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of D5(w))if(!k5.call($,f)&&f!==U)w$($,f,{get:()=>w[f],enumerable:!(E=h5(w,f))||E.enumerable})}return $},x5=($)=>v5(w$({},"__esModule",{value:!0}),$),jR={};c5(jR,{SignatureV4:()=>Xz,clearCredentialCache:()=>$z,createScope:()=>e1,getCanonicalHeaders:()=>bw,getCanonicalQuery:()=>xR,getPayloadHash:()=>$$,getSigningKey:()=>vR,moveHeadersToQuery:()=>dR,prepareRequest:()=>Dw});gR.exports=x5(jR);var CR=P0(),Pw=e(),y5="X-Amz-Algorithm",u5="X-Amz-Credential",SR="X-Amz-Date",_5="X-Amz-SignedHeaders",d5="X-Amz-Expires",bR="X-Amz-Signature",hR="X-Amz-Security-Token",DR="authorization",kR=SR.toLowerCase(),p5="date",g5=[DR,kR,p5],s5=bR.toLowerCase(),Sw="x-amz-content-sha256",n5=hR.toLowerCase(),l5={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},m5=/^proxy-/,i5=/^sec-/,jw="AWS4-HMAC-SHA256",r5="AWS4-HMAC-SHA256-PAYLOAD",o5="UNSIGNED-PAYLOAD",t5=50,cR="aws4_request",a5=604800,f0=JG(),e5=e(),q0={},a1=[],e1=b(($,w,U)=>`${$}/${w}/${U}/${cR}`,"createScope"),vR=b(async($,w,U,E,f)=>{const G=await NR($,w.secretAccessKey,w.accessKeyId),W=`${U}:${E}:${f}:${f0.toHex(G)}:${w.sessionToken}`;if(W in q0)return q0[W];a1.push(W);while(a1.length>t5)delete q0[a1.shift()];let L=`AWS4${w.secretAccessKey}`;for(let R of[U,E,f,cR])L=await NR($,L,R);return q0[W]=L},"getSigningKey"),$z=b(()=>{a1.length=0,Object.keys(q0).forEach(($)=>{delete q0[$]})},"clearCredentialCache"),NR=b(($,w,U)=>{const E=new $(w);return E.update(e5.toUint8Array(U)),E.digest()},"hmac"),bw=b(({headers:$},w,U)=>{const E={};for(let f of Object.keys($).sort()){if($[f]==null)continue;const G=f.toLowerCase();if(G in l5||(w==null?void 0:w.has(G))||m5.test(G)||i5.test(G)){if(!U||U&&!U.has(G))continue}E[G]=$[f].trim().replace(/\s+/g," ")}return E},"getCanonicalHeaders"),i0=vE(),xR=b(({query:$={}})=>{const w=[],U={};for(let E of Object.keys($).sort()){if(E.toLowerCase()===s5)continue;w.push(E);const f=$[E];if(typeof f==="string")U[E]=`${i0.escapeUri(E)}=${i0.escapeUri(f)}`;else if(Array.isArray(f))U[E]=f.slice(0).reduce((G,W)=>G.concat([`${i0.escapeUri(E)}=${i0.escapeUri(W)}`]),[]).sort().join("&")}return w.map((E)=>U[E]).filter((E)=>E).join("&")},"getCanonicalQuery"),wz=b$(),Uz=e(),$$=b(async({headers:$,body:w},U)=>{for(let E of Object.keys($))if(E.toLowerCase()===Sw)return $[E];if(w==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof w==="string"||ArrayBuffer.isView(w)||wz.isArrayBuffer(w)){const E=new U;return E.update(Uz.toUint8Array(w)),f0.toHex(await E.digest())}return o5},"getPayloadHash"),qR=e(),yR=class ${format(w){const U=[];for(let G of Object.keys(w)){const W=qR.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 f=0;for(let G of U)E.set(G,f),f+=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 f=new Uint8Array(9);return f[0]=5,f.set(w.value.bytes,1),f;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 L=qR.fromUtf8(w.value),R=new DataView(new ArrayBuffer(3+L.byteLength));R.setUint8(0,7),R.setUint16(1,L.byteLength,!1);const X=new Uint8Array(R.buffer);return X.set(L,3),X;case"timestamp":const Z=new Uint8Array(9);return Z[0]=8,Z.set(Gz.fromNumber(w.value.valueOf()).bytes,1),Z;case"uuid":if(!Ez.test(w.value))throw new Error(`Invalid UUID received: ${w.value}`);const F=new Uint8Array(17);return F[0]=9,F.set(f0.fromHex(w.value.replace(/\-/g,"")),1),F}}};b(yR,"HeaderFormatter");var fz=yR,Ez=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,uR=class ${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,f=Math.abs(Math.round(w));E>-1&&f>0;E--,f/=256)U[E]=f;if(w<0)hw(U);return new $(U)}valueOf(){const w=this.bytes.slice(0),U=w[0]&128;if(U)hw(w);return parseInt(f0.toHex(w),16)*(U?-1:1)}toString(){return String(this.valueOf())}};b(uR,"Int64");var Gz=uR;b(hw,"negate");var Wz=b(($,w)=>{$=$.toLowerCase();for(let U of Object.keys(w))if($===U.toLowerCase())return!0;return!1},"hasHeader"),_R=m(),dR=b(($,w={})=>{var U;const{headers:E,query:f={}}=_R.HttpRequest.clone($);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)))f[G]=E[G],delete E[G]}return{...$,headers:E,query:f}},"moveHeadersToQuery"),Dw=b(($)=>{$=_R.HttpRequest.clone($);for(let w of Object.keys($.headers))if(g5.indexOf(w.toLowerCase())>-1)delete $.headers[w];return $},"prepareRequest"),Lz=b(($)=>Rz($).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),Rz=b(($)=>{if(typeof $==="number")return new Date($*1000);if(typeof $==="string"){if(Number($))return new Date(Number($)*1000);return new Date($)}return $},"toDate"),pR=class ${constructor({applyChecksum:w,credentials:U,region:E,service:f,sha256:G,uriEscapePath:W=!0}){this.headerFormatter=new fz,this.service=f,this.sha256=G,this.uriEscapePath=W,this.applyChecksum=typeof w==="boolean"?w:!0,this.regionProvider=CR.normalizeProvider(E),this.credentialProvider=CR.normalizeProvider(U)}async presign(w,U={}){const{signingDate:E=new Date,expiresIn:f=3600,unsignableHeaders:G,unhoistableHeaders:W,signableHeaders:L,signingRegion:R,signingService:X}=U,Z=await this.credentialProvider();this.validateResolvedCredentials(Z);const F=R??await this.regionProvider(),{longDate:Y,shortDate:I}=t1(E);if(f>a5)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const z=e1(I,F,X??this.service),J=dR(Dw(w),{unhoistableHeaders:W});if(Z.sessionToken)J.query[hR]=Z.sessionToken;J.query[y5]=jw,J.query[u5]=`${Z.accessKeyId}/${z}`,J.query[SR]=Y,J.query[d5]=f.toString(10);const O=bw(J,G,L);return J.query[_5]=PR(O),J.query[bR]=await this.getSignature(Y,z,this.getSigningKey(Z,F,I,X),this.createCanonicalRequest(J,O,await $$(w,this.sha256))),J}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:f,signingRegion:G,signingService:W}){const L=G??await this.regionProvider(),{shortDate:R,longDate:X}=t1(E),Z=e1(R,L,W??this.service),F=await $$({headers:{},body:U},this.sha256),Y=new this.sha256;Y.update(w);const I=f0.toHex(await Y.digest()),z=[r5,X,Z,f,I,F].join("\n");return this.signString(z,{signingDate:E,signingRegion:L,signingService:W})}async signMessage(w,{signingDate:U=new Date,signingRegion:E,signingService:f}){return this.signEvent({headers:this.headerFormatter.format(w.message.headers),payload:w.message.body},{signingDate:U,signingRegion:E,signingService:f,priorSignature:w.priorSignature}).then((W)=>{return{message:w.message,signature:W}})}async signString(w,{signingDate:U=new Date,signingRegion:E,signingService:f}={}){const G=await this.credentialProvider();this.validateResolvedCredentials(G);const W=E??await this.regionProvider(),{shortDate:L}=t1(U),R=new this.sha256(await this.getSigningKey(G,W,L,f));return R.update(Pw.toUint8Array(w)),f0.toHex(await R.digest())}async signRequest(w,{signingDate:U=new Date,signableHeaders:E,unsignableHeaders:f,signingRegion:G,signingService:W}={}){const L=await this.credentialProvider();this.validateResolvedCredentials(L);const R=G??await this.regionProvider(),X=Dw(w),{longDate:Z,shortDate:F}=t1(U),Y=e1(F,R,W??this.service);if(X.headers[kR]=Z,L.sessionToken)X.headers[n5]=L.sessionToken;const I=await $$(X,this.sha256);if(!Wz(Sw,X.headers)&&this.applyChecksum)X.headers[Sw]=I;const z=bw(X,f,E),J=await this.getSignature(Z,Y,this.getSigningKey(L,R,F,W),this.createCanonicalRequest(X,z,I));return X.headers[DR]=`${jw} Credential=${L.accessKeyId}/${Y}, SignedHeaders=${PR(z)}, Signature=${J}`,X}createCanonicalRequest(w,U,E){const f=Object.keys(U).sort();return`${w.method}
10
- ${this.getCanonicalPath(w)}
11
- ${xR(w)}
12
- ${f.map((G)=>`${G}:${U[G]}`).join("\n")}
13
-
14
- ${f.join(";")}
15
- ${E}`}async createStringToSign(w,U,E){const f=new this.sha256;f.update(Pw.toUint8Array(E));const G=await f.digest();return`${jw}
16
- ${w}
17
- ${U}
18
- ${f0.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 i0.escapeUri(E).replace(/%2F/g,"/")}return w}async getSignature(w,U,E,f){const G=await this.createStringToSign(w,U,f),W=new this.sha256(await E);return W.update(Pw.toUint8Array(G)),f0.toHex(await W.digest())}getSigningKey(w,U,E,f){return vR(this.sha256,w,E,U,f||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")}};b(pR,"SignatureV4");var Xz=pR,t1=b(($)=>{const w=Lz($).replace(/[\-:]/g,"");return{longDate:w,shortDate:w.slice(0,8)}},"formatDate"),PR=b(($)=>Object.keys($).sort().join(";"),"getCanonicalHeaderList")});var $8=M((zA,eR)=>{var{defineProperty:U$,getOwnPropertyDescriptor:Zz,getOwnPropertyNames:Fz}=Object,Iz=Object.prototype.hasOwnProperty,k=($,w)=>U$($,"name",{value:w,configurable:!0}),Yz=($,w)=>{for(var U in w)U$($,U,{get:w[U],enumerable:!0})},zz=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of Fz(w))if(!Iz.call($,f)&&f!==U)U$($,f,{get:()=>w[f],enumerable:!(E=Zz(w,f))||E.enumerable})}return $},Qz=($)=>zz(U$({},"__esModule",{value:!0}),$),rR={};Yz(rR,{AWSSDKSigV4Signer:()=>Kz,AwsSdkSigV4ASigner:()=>Az,AwsSdkSigV4Signer:()=>vw,NODE_SIGV4A_CONFIG_OPTIONS:()=>Hz,resolveAWSSDKSigV4Config:()=>Cz,resolveAwsSdkSigV4AConfig:()=>Vz,resolveAwsSdkSigV4Config:()=>aR,validateSigningProperties:()=>cw});eR.exports=Qz(rR);var Mz=m(),Jz=m(),nR=k(($)=>{var w,U;return Jz.HttpResponse.isInstance($)?((w=$.headers)==null?void 0:w.date)??((U=$.headers)==null?void 0:U.Date):void 0},"getDateHeader"),kw=k(($)=>new Date(Date.now()+$),"getSkewCorrectedDate"),Tz=k(($,w)=>Math.abs(kw(w).getTime()-$)>=300000,"isClockSkewed"),lR=k(($,w)=>{const U=Date.parse($);if(Tz(U,w))return U-Date.now();return w},"getUpdatedSystemClockOffset"),r0=k(($,w)=>{if(!w)throw new Error(`Property \`${$}\` is not resolved for AWS SDK SigV4Auth`);return w},"throwSigningPropertyError"),cw=k(async($)=>{var w,U,E;const f=r0("context",$.context),G=r0("config",$.config),W=(E=(U=(w=f.endpointV2)==null?void 0:w.properties)==null?void 0:U.authSchemes)==null?void 0:E[0],R=await r0("signer",G.signer)(W),X=$==null?void 0:$.signingRegion,Z=$==null?void 0:$.signingRegionSet,F=$==null?void 0:$.signingName;return{config:G,signer:R,signingRegion:X,signingRegionSet:Z,signingName:F}},"validateSigningProperties"),oR=class ${async sign(w,U,E){var f;if(!Mz.HttpRequest.isInstance(w))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const G=await cw(E),{config:W,signer:L}=G;let{signingRegion:R,signingName:X}=G;const Z=E.context;if(((f=Z==null?void 0:Z.authSchemes)==null?void 0:f.length)??0>1){const[Y,I]=Z.authSchemes;if((Y==null?void 0:Y.name)==="sigv4a"&&(I==null?void 0:I.name)==="sigv4")R=(I==null?void 0:I.signingRegion)??R,X=(I==null?void 0:I.signingName)??X}return await L.sign(w,{signingDate:kw(W.systemClockOffset),signingRegion:R,signingService:X})}errorHandler(w){return(U)=>{const E=U.ServerTime??nR(U.$response);if(E){const f=r0("config",w.config),G=f.systemClockOffset;if(f.systemClockOffset=lR(E,f.systemClockOffset),f.systemClockOffset!==G&&U.$metadata)U.$metadata.clockSkewCorrected=!0}throw U}}successHandler(w,U){const E=nR(w);if(E){const f=r0("config",U.config);f.systemClockOffset=lR(E,f.systemClockOffset)}}};k(oR,"AwsSdkSigV4Signer");var vw=oR,Kz=vw,Oz=m(),tR=class $ extends vw{async sign(w,U,E){var f;if(!Oz.HttpRequest.isInstance(w))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:G,signer:W,signingRegion:L,signingRegionSet:R,signingName:X}=await cw(E),F=(await((f=G.sigv4aSigningRegionSet)==null?void 0:f.call(G))??R??[L]).join(",");return await W.sign(w,{signingDate:kw(G.systemClockOffset),signingRegion:F,signingService:X})}};k(tR,"AwsSdkSigV4ASigner");var Az=tR,Bz=Ww(),mR=z$(),Vz=k(($)=>{return $.sigv4aSigningRegionSet=Bz.normalizeProvider($.sigv4aSigningRegionSet),$},"resolveAwsSdkSigV4AConfig"),Hz={environmentVariableSelector($){if($.AWS_SIGV4A_SIGNING_REGION_SET)return $.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((w)=>w.trim());throw new mR.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector($){if($.sigv4a_signing_region_set)return($.sigv4a_signing_region_set??"").split(",").map((w)=>w.trim());throw new mR.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},I0=Ww(),iR=sR(),aR=k(($)=>{let w;if($.credentials)w=I0.memoizeIdentityProvider($.credentials,I0.isIdentityExpired,I0.doesIdentityRequireRefresh);if(!w)if($.credentialDefaultProvider)w=I0.normalizeProvider($.credentialDefaultProvider(Object.assign({},$,{parentClientConfig:$})));else w=k(async()=>{throw new Error("`credentials` is missing")},"normalizedCreds");const{signingEscapePath:U=!0,systemClockOffset:E=$.systemClockOffset||0,sha256:f}=$;let G;if($.signer)G=I0.normalizeProvider($.signer);else if($.regionInfoProvider)G=k(()=>I0.normalizeProvider($.region)().then(async(W)=>[await $.regionInfoProvider(W,{useFipsEndpoint:await $.useFipsEndpoint(),useDualstackEndpoint:await $.useDualstackEndpoint()})||{},W]).then(([W,L])=>{const{signingRegion:R,signingService:X}=W;$.signingRegion=$.signingRegion||R||L,$.signingName=$.signingName||X||$.serviceId;const Z={...$,credentials:w,region:$.signingRegion,service:$.signingName,sha256:f,uriEscapePath:U};return new($.signerConstructor||iR.SignatureV4)(Z)}),"signer");else G=k(async(W)=>{W=Object.assign({},{name:"sigv4",signingName:$.signingName||$.defaultSigningName,signingRegion:await I0.normalizeProvider($.region)(),properties:{}},W);const{signingRegion:L,signingName:R}=W;$.signingRegion=$.signingRegion||L,$.signingName=$.signingName||R||$.serviceId;const X={...$,credentials:w,region:$.signingRegion,service:$.signingName,sha256:f,uriEscapePath:U};return new($.signerConstructor||iR.SignatureV4)(X)},"signer");return{...$,systemClockOffset:E,signingEscapePath:U,credentials:w,signer:G}},"resolveAwsSdkSigV4Config"),Cz=aR});var f$=M((Sz)=>{var Nz=":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",w8="[: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]["+Nz+"]*",qz=new RegExp("^"+w8+"$"),Pz=function($,w){const U=[];let E=w.exec($);while(E){const f=[];f.startIndex=w.lastIndex-E[0].length;const G=E.length;for(let W=0;W<G;W++)f.push(E[W]);U.push(f),E=w.exec($)}return U},jz=function($){const w=qz.exec($);return!(w===null||typeof w==="undefined")};Sz.isExist=function($){return typeof $!=="undefined"};Sz.isEmptyObject=function($){return Object.keys($).length===0};Sz.merge=function($,w,U){if(w){const E=Object.keys(w),f=E.length;for(let G=0;G<f;G++)if(U==="strict")$[E[G]]=[w[E[G]]];else $[E[G]]=w[E[G]]}};Sz.getValue=function($){if(Sz.isExist($))return $;else return""};Sz.isName=jz;Sz.getAllMatches=Pz;Sz.nameRegexp=w8});var yw=M((lz)=>{var f8=function($){return $===" "||$==="\t"||$==="\n"||$==="\r"},E8=function($,w){const U=w;for(;w<$.length;w++)if($[w]=="?"||$[w]==" "){const E=$.substr(U,w-U);if(w>5&&E==="xml")return P("InvalidXml","XML declaration allowed only at the start of the document.",D($,w));else if($[w]=="?"&&$[w+1]==">"){w++;break}else continue}return w},G8=function($,w){if($.length>w+5&&$[w+1]==="-"&&$[w+2]==="-"){for(w+=3;w<$.length;w++)if($[w]==="-"&&$[w+1]==="-"&&$[w+2]===">"){w+=2;break}}else if($.length>w+8&&$[w+1]==="D"&&$[w+2]==="O"&&$[w+3]==="C"&&$[w+4]==="T"&&$[w+5]==="Y"&&$[w+6]==="P"&&$[w+7]==="E"){let U=1;for(w+=8;w<$.length;w++)if($[w]==="<")U++;else if($[w]===">"){if(U--,U===0)break}}else if($.length>w+9&&$[w+1]==="["&&$[w+2]==="C"&&$[w+3]==="D"&&$[w+4]==="A"&&$[w+5]==="T"&&$[w+6]==="A"&&$[w+7]==="["){for(w+=8;w<$.length;w++)if($[w]==="]"&&$[w+1]==="]"&&$[w+2]===">"){w+=2;break}}return w},_z=function($,w){let U="",E="",f=!1;for(;w<$.length;w++){if($[w]===yz||$[w]===uz)if(E==="")E=$[w];else if(E!==$[w]);else E="";else if($[w]===">"){if(E===""){f=!0;break}}U+=$[w]}if(E!=="")return!1;return{value:U,index:w,tagClosed:f}},W8=function($,w){const U=xw.getAllMatches($,dz),E={};for(let f=0;f<U.length;f++){if(U[f][1].length===0)return P("InvalidAttr","Attribute '"+U[f][2]+"' has no space in starting.",o0(U[f]));else if(U[f][3]!==void 0&&U[f][4]===void 0)return P("InvalidAttr","Attribute '"+U[f][2]+"' is without value.",o0(U[f]));else if(U[f][3]===void 0&&!w.allowBooleanAttributes)return P("InvalidAttr","boolean attribute '"+U[f][2]+"' is not allowed.",o0(U[f]));const G=U[f][2];if(!sz(G))return P("InvalidAttr","Attribute '"+G+"' is an invalid name.",o0(U[f]));if(!E.hasOwnProperty(G))E[G]=1;else return P("InvalidAttr","Attribute '"+G+"' is repeated.",o0(U[f]))}return!0},pz=function($,w){let U=/\d/;if($[w]==="x")w++,U=/[\da-fA-F]/;for(;w<$.length;w++){if($[w]===";")return w;if(!$[w].match(U))break}return-1},gz=function($,w){if(w++,$[w]===";")return-1;if($[w]==="#")return w++,pz($,w);let U=0;for(;w<$.length;w++,U++){if($[w].match(/\w/)&&U<20)continue;if($[w]===";")break;return-1}return w},P=function($,w,U){return{err:{code:$,msg:w,line:U.line||U,col:U.col}}},sz=function($){return xw.isName($)},nz=function($){return xw.isName($)},D=function($,w){const U=$.substring(0,w).split(/\r?\n/);return{line:U.length,col:U[U.length-1].length+1}},o0=function($){return $.startIndex+$[1].length},xw=f$(),xz={allowBooleanAttributes:!1,unpairedTags:[]};lz.validate=function($,w){w=Object.assign({},xz,w);const U=[];let E=!1,f=!1;if($[0]==="\uFEFF")$=$.substr(1);for(let G=0;G<$.length;G++)if($[G]==="<"&&$[G+1]==="?"){if(G+=2,G=E8($,G),G.err)return G}else if($[G]==="<"){let W=G;if(G++,$[G]==="!"){G=G8($,G);continue}else{let L=!1;if($[G]==="/")L=!0,G++;let R="";for(;G<$.length&&$[G]!==">"&&$[G]!==" "&&$[G]!=="\t"&&$[G]!=="\n"&&$[G]!=="\r";G++)R+=$[G];if(R=R.trim(),R[R.length-1]==="/")R=R.substring(0,R.length-1),G--;if(!nz(R)){let F;if(R.trim().length===0)F="Invalid space after '<'.";else F="Tag '"+R+"' is an invalid name.";return P("InvalidTag",F,D($,G))}const X=_z($,G);if(X===!1)return P("InvalidAttr","Attributes for '"+R+"' have open quote.",D($,G));let Z=X.value;if(G=X.index,Z[Z.length-1]==="/"){const F=G-Z.length;Z=Z.substring(0,Z.length-1);const Y=W8(Z,w);if(Y===!0)E=!0;else return P(Y.err.code,Y.err.msg,D($,F+Y.err.line))}else if(L)if(!X.tagClosed)return P("InvalidTag","Closing tag '"+R+"' doesn't have proper closing.",D($,G));else if(Z.trim().length>0)return P("InvalidTag","Closing tag '"+R+"' can't have attributes or invalid starting.",D($,W));else if(U.length===0)return P("InvalidTag","Closing tag '"+R+"' has not been opened.",D($,W));else{const F=U.pop();if(R!==F.tagName){let Y=D($,F.tagStartPos);return P("InvalidTag","Expected closing tag '"+F.tagName+"' (opened in line "+Y.line+", col "+Y.col+") instead of closing tag '"+R+"'.",D($,W))}if(U.length==0)f=!0}else{const F=W8(Z,w);if(F!==!0)return P(F.err.code,F.err.msg,D($,G-Z.length+F.err.line));if(f===!0)return P("InvalidXml","Multiple possible root nodes found.",D($,G));else if(w.unpairedTags.indexOf(R)!==-1);else U.push({tagName:R,tagStartPos:W});E=!0}for(G++;G<$.length;G++)if($[G]==="<")if($[G+1]==="!"){G++,G=G8($,G);continue}else if($[G+1]==="?"){if(G=E8($,++G),G.err)return G}else break;else if($[G]==="&"){const F=gz($,G);if(F==-1)return P("InvalidChar","char '&' is not expected.",D($,G));G=F}else if(f===!0&&!f8($[G]))return P("InvalidXml","Extra text at the end",D($,G));if($[G]==="<")G--}}else{if(f8($[G]))continue;return P("InvalidChar","char '"+$[G]+"' is not expected.",D($,G))}if(!E)return P("InvalidXml","Start tag expected.",1);else if(U.length==1)return P("InvalidTag","Unclosed tag '"+U[0].tagName+"'.",D($,U[0].tagStartPos));else if(U.length>0)return P("InvalidXml","Invalid '"+JSON.stringify(U.map((G)=>G.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};var yz='"',uz="'",dz=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g")});var R8=M((rz)=>{var L8={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($,w){return w},attributeValueProcessor:function($,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($,w,U){return $}},iz=function($){return Object.assign({},L8,$)};rz.buildOptions=iz;rz.defaultOptions=L8});var F8=M((TA,Z8)=>{class X8{constructor($){this.tagname=$,this.child=[],this[":@"]={}}add($,w){if($==="__proto__")$="#__proto__";this.child.push({[$]:w})}addChild($){if($.tagname==="__proto__")$.tagname="#__proto__";if($[":@"]&&Object.keys($[":@"]).length>0)this.child.push({[$.tagname]:$.child,[":@"]:$[":@"]});else this.child.push({[$.tagname]:$.child})}}Z8.exports=X8});var Y8=M((KA,I8)=>{var ez=function($,w){const U={};if($[w+3]==="O"&&$[w+4]==="C"&&$[w+5]==="T"&&$[w+6]==="Y"&&$[w+7]==="P"&&$[w+8]==="E"){w=w+9;let E=1,f=!1,G=!1,W="";for(;w<$.length;w++)if($[w]==="<"&&!G){if(f&&U9($,w)){if(w+=7,[entityName,val,w]=$9($,w+1),val.indexOf("&")===-1)U[W9(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(f&&f9($,w))w+=8;else if(f&&E9($,w))w+=8;else if(f&&G9($,w))w+=9;else if(w9)G=!0;else throw new Error("Invalid DOCTYPE");E++,W=""}else if($[w]===">"){if(G){if($[w-1]==="-"&&$[w-2]==="-")G=!1,E--}else E--;if(E===0)break}else if($[w]==="[")f=!0;else W+=$[w];if(E!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:U,i:w}},$9=function($,w){let U="";for(;w<$.length&&($[w]!=="'"&&$[w]!=='"');w++)U+=$[w];if(U=U.trim(),U.indexOf(" ")!==-1)throw new Error("External entites are not supported");const E=$[w++];let f="";for(;w<$.length&&$[w]!==E;w++)f+=$[w];return[U,f,w]},w9=function($,w){if($[w+1]==="!"&&$[w+2]==="-"&&$[w+3]==="-")return!0;return!1},U9=function($,w){if($[w+1]==="!"&&$[w+2]==="E"&&$[w+3]==="N"&&$[w+4]==="T"&&$[w+5]==="I"&&$[w+6]==="T"&&$[w+7]==="Y")return!0;return!1},f9=function($,w){if($[w+1]==="!"&&$[w+2]==="E"&&$[w+3]==="L"&&$[w+4]==="E"&&$[w+5]==="M"&&$[w+6]==="E"&&$[w+7]==="N"&&$[w+8]==="T")return!0;return!1},E9=function($,w){if($[w+1]==="!"&&$[w+2]==="A"&&$[w+3]==="T"&&$[w+4]==="T"&&$[w+5]==="L"&&$[w+6]==="I"&&$[w+7]==="S"&&$[w+8]==="T")return!0;return!1},G9=function($,w){if($[w+1]==="!"&&$[w+2]==="N"&&$[w+3]==="O"&&$[w+4]==="T"&&$[w+5]==="A"&&$[w+6]==="T"&&$[w+7]==="I"&&$[w+8]==="O"&&$[w+9]==="N")return!0;return!1},W9=function($){if(az.isName($))return $;else throw new Error(`Invalid entity name ${$}`)},az=f$();I8.exports=ez});var Q8=M((OA,z8)=>{var Z9=function($,w={}){if(w=Object.assign({},X9,w),!$||typeof $!=="string")return $;let U=$.trim();if(w.skipLike!==void 0&&w.skipLike.test(U))return $;else if(w.hex&&L9.test(U))return Number.parseInt(U,16);else{const E=R9.exec(U);if(E){const f=E[1],G=E[2];let W=F9(E[3]);const L=E[4]||E[6];if(!w.leadingZeros&&G.length>0&&f&&U[2]!==".")return $;else if(!w.leadingZeros&&G.length>0&&!f&&U[1]!==".")return $;else{const R=Number(U),X=""+R;if(X.search(/[eE]/)!==-1)if(w.eNotation)return R;else return $;else if(L)if(w.eNotation)return R;else return $;else if(U.indexOf(".")!==-1)if(X==="0"&&W==="")return R;else if(X===W)return R;else if(f&&X==="-"+W)return R;else return $;if(G)if(W===X)return R;else if(f+W===X)return R;else return $;if(U===X)return R;else if(U===f+X)return R;return $}}else return $}},F9=function($){if($&&$.indexOf(".")!==-1){if($=$.replace(/0+$/,""),$===".")$="0";else if($[0]===".")$="0"+$;else if($[$.length-1]===".")$=$.substr(0,$.length-1);return $}return $},L9=/^[-+]?0x[a-fA-F0-9]+$/,R9=/^([\-\+])?(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 X9={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};z8.exports=Z9});var K8=M((AA,T8)=>{var z9=function($){const w=Object.keys($);for(let U=0;U<w.length;U++){const E=w[U];this.lastEntities[E]={regex:new RegExp("&"+E+";","g"),val:$[E]}}},Q9=function($,w,U,E,f,G,W){if($!==void 0){if(this.options.trimValues&&!E)$=$.trim();if($.length>0){if(!W)$=this.replaceEntitiesValue($);const L=this.options.tagValueProcessor(w,$,U,f,G);if(L===null||L===void 0)return $;else if(typeof L!==typeof $||L!==$)return L;else if(this.options.trimValues)return _w($,this.options.parseTagValue,this.options.numberParseOptions);else if($.trim()===$)return _w($,this.options.parseTagValue,this.options.numberParseOptions);else return $}}},M9=function($){if(this.options.removeNSPrefix){const w=$.split(":"),U=$.charAt(0)==="/"?"/":"";if(w[0]==="xmlns")return"";if(w.length===2)$=U+w[1]}return $},T9=function($,w,U){if(!this.options.ignoreAttributes&&typeof $==="string"){const E=M8.getAllMatches($,J9),f=E.length,G={};for(let W=0;W<f;W++){const L=this.resolveNameSpace(E[W][1]);let R=E[W][4],X=this.options.attributeNamePrefix+L;if(L.length){if(this.options.transformAttributeName)X=this.options.transformAttributeName(X);if(X==="__proto__")X="#__proto__";if(R!==void 0){if(this.options.trimValues)R=R.trim();R=this.replaceEntitiesValue(R);const Z=this.options.attributeValueProcessor(L,R,w);if(Z===null||Z===void 0)G[X]=R;else if(typeof Z!==typeof R||Z!==R)G[X]=Z;else G[X]=_w(R,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)G[X]=!0}}if(!Object.keys(G).length)return;if(this.options.attributesGroupName){const W={};return W[this.options.attributesGroupName]=G,W}return G}},O9=function($,w,U){const E=this.options.updateTag(w.tagname,U,w[":@"]);if(E===!1);else if(typeof E==="string")w.tagname=E,$.addChild(w);else $.addChild(w)},B9=function($,w,U,E){if($){if(E===void 0)E=Object.keys(w.child).length===0;if($=this.parseTextData($,w.tagname,U,!1,w[":@"]?Object.keys(w[":@"]).length!==0:!1,E),$!==void 0&&$!=="")w.add(this.options.textNodeName,$);$=""}return $},V9=function($,w,U){const E="*."+U;for(let f in $){const G=$[f];if(E===G||w===G)return!0}return!1},H9=function($,w,U=">"){let E,f="";for(let G=w;G<$.length;G++){let W=$[G];if(E){if(W===E)E=""}else if(W==='"'||W==="'")E=W;else if(W===U[0])if(U[1]){if($[G+1]===U[1])return{data:f,index:G}}else return{data:f,index:G};else if(W==="\t")W=" ";f+=W}},Y0=function($,w,U,E){const f=$.indexOf(w,U);if(f===-1)throw new Error(E);else return f+w.length-1},uw=function($,w,U,E=">"){const f=H9($,w+1,E);if(!f)return;let G=f.data;const W=f.index,L=G.search(/\s/);let R=G,X=!0;if(L!==-1)R=G.substring(0,L),G=G.substring(L+1).trimStart();const Z=R;if(U){const F=R.indexOf(":");if(F!==-1)R=R.substr(F+1),X=R!==f.data.substr(F+1)}return{tagName:R,tagExp:G,closeIndex:W,attrExpPresent:X,rawTagName:Z}},C9=function($,w,U){const E=U;let f=1;for(;U<$.length;U++)if($[U]==="<")if($[U+1]==="/"){const G=Y0($,">",U,`${w} is not closed`);if($.substring(U+2,G).trim()===w){if(f--,f===0)return{tagContent:$.substring(E,U),i:G}}U=G}else if($[U+1]==="?")U=Y0($,"?>",U+1,"StopNode is not closed.");else if($.substr(U+1,3)==="!--")U=Y0($,"-->",U+3,"StopNode is not closed.");else if($.substr(U+1,2)==="![")U=Y0($,"]]>",U,"StopNode is not closed.")-2;else{const G=uw($,U,">");if(G){if((G&&G.tagName)===w&&G.tagExp[G.tagExp.length-1]!=="/")f++;U=G.closeIndex}}},_w=function($,w,U){if(w&&typeof $==="string"){const E=$.trim();if(E==="true")return!0;else if(E==="false")return!1;else return Y9($,U)}else if(M8.isExist($))return $;else return""},M8=f$(),t0=F8(),I9=Y8(),Y9=Q8();class J8{constructor($){this.options=$,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=z9,this.parseXml=K9,this.parseTextData=Q9,this.resolveNameSpace=M9,this.buildAttributesMap=T9,this.isItStopNode=V9,this.replaceEntitiesValue=A9,this.readStopNodeData=C9,this.saveTextToParentTag=B9,this.addChild=O9}}var J9=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm"),K9=function($){$=$.replace(/\r\n?/g,"\n");const w=new t0("!xml");let U=w,E="",f="";for(let G=0;G<$.length;G++)if($[G]==="<")if($[G+1]==="/"){const L=Y0($,">",G,"Closing Tag is not closed.");let R=$.substring(G+2,L).trim();if(this.options.removeNSPrefix){const F=R.indexOf(":");if(F!==-1)R=R.substr(F+1)}if(this.options.transformTagName)R=this.options.transformTagName(R);if(U)E=this.saveTextToParentTag(E,U,f);const X=f.substring(f.lastIndexOf(".")+1);if(R&&this.options.unpairedTags.indexOf(R)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${R}>`);let Z=0;if(X&&this.options.unpairedTags.indexOf(X)!==-1)Z=f.lastIndexOf(".",f.lastIndexOf(".")-1),this.tagsNodeStack.pop();else Z=f.lastIndexOf(".");f=f.substring(0,Z),U=this.tagsNodeStack.pop(),E="",G=L}else if($[G+1]==="?"){let L=uw($,G,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(E=this.saveTextToParentTag(E,U,f),this.options.ignoreDeclaration&&L.tagName==="?xml"||this.options.ignorePiTags);else{const R=new t0(L.tagName);if(R.add(this.options.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent)R[":@"]=this.buildAttributesMap(L.tagExp,f,L.tagName);this.addChild(U,R,f)}G=L.closeIndex+1}else if($.substr(G+1,3)==="!--"){const L=Y0($,"-->",G+4,"Comment is not closed.");if(this.options.commentPropName){const R=$.substring(G+4,L-2);E=this.saveTextToParentTag(E,U,f),U.add(this.options.commentPropName,[{[this.options.textNodeName]:R}])}G=L}else if($.substr(G+1,2)==="!D"){const L=I9($,G);this.docTypeEntities=L.entities,G=L.i}else if($.substr(G+1,2)==="!["){const L=Y0($,"]]>",G,"CDATA is not closed.")-2,R=$.substring(G+9,L);E=this.saveTextToParentTag(E,U,f);let X=this.parseTextData(R,U.tagname,f,!0,!1,!0,!0);if(X==null)X="";if(this.options.cdataPropName)U.add(this.options.cdataPropName,[{[this.options.textNodeName]:R}]);else U.add(this.options.textNodeName,X);G=L+2}else{let L=uw($,G,this.options.removeNSPrefix),R=L.tagName;const X=L.rawTagName;let{tagExp:Z,attrExpPresent:F,closeIndex:Y}=L;if(this.options.transformTagName)R=this.options.transformTagName(R);if(U&&E){if(U.tagname!=="!xml")E=this.saveTextToParentTag(E,U,f,!1)}const I=U;if(I&&this.options.unpairedTags.indexOf(I.tagname)!==-1)U=this.tagsNodeStack.pop(),f=f.substring(0,f.lastIndexOf("."));if(R!==w.tagname)f+=f?"."+R:R;if(this.isItStopNode(this.options.stopNodes,f,R)){let z="";if(Z.length>0&&Z.lastIndexOf("/")===Z.length-1){if(R[R.length-1]==="/")R=R.substr(0,R.length-1),f=f.substr(0,f.length-1),Z=R;else Z=Z.substr(0,Z.length-1);G=L.closeIndex}else if(this.options.unpairedTags.indexOf(R)!==-1)G=L.closeIndex;else{const O=this.readStopNodeData($,X,Y+1);if(!O)throw new Error(`Unexpected end of ${X}`);G=O.i,z=O.tagContent}const J=new t0(R);if(R!==Z&&F)J[":@"]=this.buildAttributesMap(Z,f,R);if(z)z=this.parseTextData(z,R,f,!0,F,!0,!0);f=f.substr(0,f.lastIndexOf(".")),J.add(this.options.textNodeName,z),this.addChild(U,J,f)}else{if(Z.length>0&&Z.lastIndexOf("/")===Z.length-1){if(R[R.length-1]==="/")R=R.substr(0,R.length-1),f=f.substr(0,f.length-1),Z=R;else Z=Z.substr(0,Z.length-1);if(this.options.transformTagName)R=this.options.transformTagName(R);const z=new t0(R);if(R!==Z&&F)z[":@"]=this.buildAttributesMap(Z,f,R);this.addChild(U,z,f),f=f.substr(0,f.lastIndexOf("."))}else{const z=new t0(R);if(this.tagsNodeStack.push(U),R!==Z&&F)z[":@"]=this.buildAttributesMap(Z,f,R);this.addChild(U,z,f),U=z}E="",G=Y}}else E+=$[G];return w.child},A9=function($){if(this.options.processEntities){for(let w in this.docTypeEntities){const U=this.docTypeEntities[w];$=$.replace(U.regx,U.val)}for(let w in this.lastEntities){const U=this.lastEntities[w];$=$.replace(U.regex,U.val)}if(this.options.htmlEntities)for(let w in this.htmlEntities){const U=this.htmlEntities[w];$=$.replace(U.regex,U.val)}$=$.replace(this.ampEntity.regex,this.ampEntity.val)}return $};T8.exports=J8});var A8=M((S9)=>{var N9=function($,w){return O8($,w)},O8=function($,w,U){let E;const f={};for(let G=0;G<$.length;G++){const W=$[G],L=q9(W);let R="";if(U===void 0)R=L;else R=U+"."+L;if(L===w.textNodeName)if(E===void 0)E=W[L];else E+=""+W[L];else if(L===void 0)continue;else if(W[L]){let X=O8(W[L],w,R);const Z=j9(X,w);if(W[":@"])P9(X,W[":@"],R,w);else if(Object.keys(X).length===1&&X[w.textNodeName]!==void 0&&!w.alwaysCreateTextNode)X=X[w.textNodeName];else if(Object.keys(X).length===0)if(w.alwaysCreateTextNode)X[w.textNodeName]="";else X="";if(f[L]!==void 0&&f.hasOwnProperty(L)){if(!Array.isArray(f[L]))f[L]=[f[L]];f[L].push(X)}else if(w.isArray(L,R,Z))f[L]=[X];else f[L]=X}}if(typeof E==="string"){if(E.length>0)f[w.textNodeName]=E}else if(E!==void 0)f[w.textNodeName]=E;return f},q9=function($){const w=Object.keys($);for(let U=0;U<w.length;U++){const E=w[U];if(E!==":@")return E}},P9=function($,w,U,E){if(w){const f=Object.keys(w),G=f.length;for(let W=0;W<G;W++){const L=f[W];if(E.isArray(L,U+"."+L,!0,!0))$[L]=[w[L]];else $[L]=w[L]}}},j9=function($,w){const{textNodeName:U}=w,E=Object.keys($).length;if(E===0)return!0;if(E===1&&($[U]||typeof $[U]==="boolean"||$[U]===0))return!0;return!1};S9.prettify=N9});var H8=M((VA,V8)=>{var{buildOptions:h9}=R8(),D9=K8(),{prettify:k9}=A8(),c9=yw();class B8{constructor($){this.externalEntities={},this.options=h9($)}parse($,w){if(typeof $==="string");else if($.toString)$=$.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(w){if(w===!0)w={};const f=c9.validate($,w);if(f!==!0)throw Error(`${f.err.msg}:${f.err.line}:${f.err.col}`)}const U=new D9(this.options);U.addExternalEntities(this.externalEntities);const E=U.parseXml($);if(this.options.preserveOrder||E===void 0)return E;else return k9(E,this.options)}addEntity($,w){if(w.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");else if($.indexOf("&")!==-1||$.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[$]=w}}V8.exports=B8});var j8=M((HA,P8)=>{var v9=function($,w){let U="";if(w.format&&w.indentBy.length>0)U="\n";return N8($,w,"",U)},N8=function($,w,U,E){let f="",G=!1;for(let W=0;W<$.length;W++){const L=$[W],R=x9(L);if(R===void 0)continue;let X="";if(U.length===0)X=R;else X=`${U}.${R}`;if(R===w.textNodeName){let z=L[R];if(!y9(X,w))z=w.tagValueProcessor(R,z),z=q8(z,w);if(G)f+=E;f+=z,G=!1;continue}else if(R===w.cdataPropName){if(G)f+=E;f+=`<![CDATA[${L[R][0][w.textNodeName]}]]>`,G=!1;continue}else if(R===w.commentPropName){f+=E+`<!--${L[R][0][w.textNodeName]}-->`,G=!0;continue}else if(R[0]==="?"){const z=C8(L[":@"],w),J=R==="?xml"?"":E;let O=L[R][0][w.textNodeName];O=O.length!==0?" "+O:"",f+=J+`<${R}${O}${z}?>`,G=!0;continue}let Z=E;if(Z!=="")Z+=w.indentBy;const F=C8(L[":@"],w),Y=E+`<${R}${F}`,I=N8(L[R],w,X,Z);if(w.unpairedTags.indexOf(R)!==-1)if(w.suppressUnpairedNode)f+=Y+">";else f+=Y+"/>";else if((!I||I.length===0)&&w.suppressEmptyNode)f+=Y+"/>";else if(I&&I.endsWith(">"))f+=Y+`>${I}${E}</${R}>`;else{if(f+=Y+">",I&&E!==""&&(I.includes("/>")||I.includes("</")))f+=E+w.indentBy+I+E;else f+=I;f+=`</${R}>`}G=!0}return f},x9=function($){const w=Object.keys($);for(let U=0;U<w.length;U++){const E=w[U];if(!$.hasOwnProperty(E))continue;if(E!==":@")return E}},C8=function($,w){let U="";if($&&!w.ignoreAttributes)for(let E in $){if(!$.hasOwnProperty(E))continue;let f=w.attributeValueProcessor(E,$[E]);if(f=q8(f,w),f===!0&&w.suppressBooleanAttributes)U+=` ${E.substr(w.attributeNamePrefix.length)}`;else U+=` ${E.substr(w.attributeNamePrefix.length)}="${f}"`}return U},y9=function($,w){$=$.substr(0,$.length-w.textNodeName.length-1);let U=$.substr($.lastIndexOf(".")+1);for(let E in w.stopNodes)if(w.stopNodes[E]===$||w.stopNodes[E]==="*."+U)return!0;return!1},q8=function($,w){if($&&$.length>0&&w.processEntities)for(let U=0;U<w.entities.length;U++){const E=w.entities[U];$=$.replace(E.regex,E.val)}return $};P8.exports=v9});var b8=M((CA,S8)=>{var E0=function($){if(this.options=Object.assign({},_9,$),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=g9;if(this.processTextOrObjNode=d9,this.options.format)this.indentate=p9,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""},d9=function($,w,U){const E=this.j2x($,U+1);if($[this.options.textNodeName]!==void 0&&Object.keys($).length===1)return this.buildTextValNode($[this.options.textNodeName],w,E.attrStr,U);else return this.buildObjectNode(E.val,w,E.attrStr,U)},p9=function($){return this.options.indentBy.repeat($)},g9=function($){if($.startsWith(this.options.attributeNamePrefix)&&$!==this.options.textNodeName)return $.substr(this.attrPrefixLen);else return!1},u9=j8(),_9={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function($,w){return w},attributeValueProcessor:function($,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};E0.prototype.build=function($){if(this.options.preserveOrder)return u9($,this.options);else{if(Array.isArray($)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)$={[this.options.arrayNodeName]:$};return this.j2x($,0).val}};E0.prototype.j2x=function($,w){let U="",E="";for(let f in $){if(!Object.prototype.hasOwnProperty.call($,f))continue;if(typeof $[f]==="undefined"){if(this.isAttribute(f))E+=""}else if($[f]===null)if(this.isAttribute(f))E+="";else if(f[0]==="?")E+=this.indentate(w)+"<"+f+"?"+this.tagEndChar;else E+=this.indentate(w)+"<"+f+"/"+this.tagEndChar;else if($[f]instanceof Date)E+=this.buildTextValNode($[f],f,"",w);else if(typeof $[f]!=="object"){const G=this.isAttribute(f);if(G)U+=this.buildAttrPairStr(G,""+$[f]);else if(f===this.options.textNodeName){let W=this.options.tagValueProcessor(f,""+$[f]);E+=this.replaceEntitiesValue(W)}else E+=this.buildTextValNode($[f],f,"",w)}else if(Array.isArray($[f])){const G=$[f].length;let W="",L="";for(let R=0;R<G;R++){const X=$[f][R];if(typeof X==="undefined");else if(X===null)if(f[0]==="?")E+=this.indentate(w)+"<"+f+"?"+this.tagEndChar;else E+=this.indentate(w)+"<"+f+"/"+this.tagEndChar;else if(typeof X==="object")if(this.options.oneListGroup){const Z=this.j2x(X,w+1);if(W+=Z.val,this.options.attributesGroupName&&X.hasOwnProperty(this.options.attributesGroupName))L+=Z.attrStr}else W+=this.processTextOrObjNode(X,f,w);else if(this.options.oneListGroup){let Z=this.options.tagValueProcessor(f,X);Z=this.replaceEntitiesValue(Z),W+=Z}else W+=this.buildTextValNode(X,f,"",w)}if(this.options.oneListGroup)W=this.buildObjectNode(W,f,L,w);E+=W}else if(this.options.attributesGroupName&&f===this.options.attributesGroupName){const G=Object.keys($[f]),W=G.length;for(let L=0;L<W;L++)U+=this.buildAttrPairStr(G[L],""+$[f][G[L]])}else E+=this.processTextOrObjNode($[f],f,w)}return{attrStr:U,val:E}};E0.prototype.buildAttrPairStr=function($,w){if(w=this.options.attributeValueProcessor($,""+w),w=this.replaceEntitiesValue(w),this.options.suppressBooleanAttributes&&w==="true")return" "+$;else return" "+$+'="'+w+'"'};E0.prototype.buildObjectNode=function($,w,U,E){if($==="")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 f="</"+w+this.tagEndChar,G="";if(w[0]==="?")G="?",f="";if((U||U==="")&&$.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)+`<!--${$}-->`+this.newLine;else return this.indentate(E)+"<"+w+U+G+this.tagEndChar+$+this.indentate(E)+f}};E0.prototype.closeTag=function($){let w="";if(this.options.unpairedTags.indexOf($)!==-1){if(!this.options.suppressUnpairedNode)w="/"}else if(this.options.suppressEmptyNode)w="/";else w=`></${$}`;return w};E0.prototype.buildTextValNode=function($,w,U,E){if(this.options.cdataPropName!==!1&&w===this.options.cdataPropName)return this.indentate(E)+`<![CDATA[${$}]]>`+this.newLine;else if(this.options.commentPropName!==!1&&w===this.options.commentPropName)return this.indentate(E)+`<!--${$}-->`+this.newLine;else if(w[0]==="?")return this.indentate(E)+"<"+w+U+"?"+this.tagEndChar;else{let f=this.options.tagValueProcessor(w,$);if(f=this.replaceEntitiesValue(f),f==="")return this.indentate(E)+"<"+w+U+this.closeTag(w)+this.tagEndChar;else return this.indentate(E)+"<"+w+U+">"+f+"</"+w+this.tagEndChar}};E0.prototype.replaceEntitiesValue=function($){if($&&$.length>0&&this.options.processEntities)for(let w=0;w<this.options.entities.length;w++){const U=this.options.entities[w];$=$.replace(U.regex,U.val)}return $};S8.exports=E0});var D8=M((NA,h8)=>{var s9=yw(),n9=H8(),l9=b8();h8.exports={XMLParser:n9,XMLValidator:s9,XMLBuilder:l9}});var u8=M((qA,y8)=>{var{defineProperty:E$,getOwnPropertyDescriptor:m9,getOwnPropertyNames:i9}=Object,r9=Object.prototype.hasOwnProperty,c=($,w)=>E$($,"name",{value:w,configurable:!0}),o9=($,w)=>{for(var U in w)E$($,U,{get:w[U],enumerable:!0})},t9=($,w,U,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let f of i9(w))if(!r9.call($,f)&&f!==U)E$($,f,{get:()=>w[f],enumerable:!(E=m9(w,f))||E.enumerable})}return $},a9=($)=>t9(E$({},"__esModule",{value:!0}),$),k8={};o9(k8,{_toBool:()=>$Q,_toNum:()=>wQ,_toStr:()=>e9,awsExpectUnion:()=>fQ,loadRestJsonErrorCode:()=>WQ,loadRestXmlErrorCode:()=>ZQ,parseJsonBody:()=>v8,parseJsonErrorBody:()=>GQ,parseXmlBody:()=>x8,parseXmlErrorBody:()=>XQ});y8.exports=a9(k8);var e9=c(($)=>{if($==null)return $;if(typeof $==="number"||typeof $==="bigint"){const w=new Error(`Received number ${$} where a string was expected.`);return w.name="Warning",console.warn(w),String($)}if(typeof $==="boolean"){const w=new Error(`Received boolean ${$} where a string was expected.`);return w.name="Warning",console.warn(w),String($)}return $},"_toStr"),$Q=c(($)=>{if($==null)return $;if(typeof $==="string"){const w=$.toLowerCase();if($!==""&&w!=="false"&&w!=="true"){const U=new Error(`Received string "${$}" where a boolean was expected.`);U.name="Warning",console.warn(U)}return $!==""&&w!=="false"}return $},"_toBool"),wQ=c(($)=>{if($==null)return $;if(typeof $==="string"){const w=Number($);if(w.toString()!==$){const U=new Error(`Received string "${$}" where a number was expected.`);return U.name="Warning",console.warn(U),$}return w}return $},"_toNum"),UQ=O0(),fQ=c(($)=>{if($==null)return;if(typeof $==="object"&&"__type"in $)delete $.__type;return UQ.expectUnion($)},"awsExpectUnion"),EQ=O0(),c8=c(($,w)=>EQ.collectBody($,w).then((U)=>w.utf8Encoder(U)),"collectBodyString"),v8=c(($,w)=>c8($,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"),GQ=c(async($,w)=>{const U=await v8($,w);return U.message=U.message??U.Message,U},"parseJsonErrorBody"),WQ=c(($,w)=>{const U=c((G,W)=>Object.keys(G).find((L)=>L.toLowerCase()===W.toLowerCase()),"findKey"),E=c((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"),f=U($.headers,"x-amzn-errortype");if(f!==void 0)return E($.headers[f]);if(w.code!==void 0)return E(w.code);if(w.__type!==void 0)return E(w.__type)},"loadRestJsonErrorCode"),LQ=O0(),RQ=D8(),x8=c(($,w)=>c8($,w).then((U)=>{if(U.length){const E=new RQ.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(R,X)=>X.trim()===""&&X.includes("\n")?"":void 0});E.addEntity("#xD","\r"),E.addEntity("#10","\n");let f;try{f=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(f)[0],L=f[W];if(L[G])L[W]=L[G],delete L[G];return LQ.getValueFromTextNode(L)}return{}}),"parseXmlBody"),XQ=c(async($,w)=>{const U=await x8($,w);if(U.Error)U.Error.message=U.Error.message??U.Error.Message;return U},"parseXmlErrorBody"),ZQ=c(($,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($.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var FQ=M((a0)=>{Object.defineProperty(a0,"__esModule",{value:!0});var dw=OR();dw.__exportStar(HR(),a0);dw.__exportStar($8(),a0);dw.__exportStar(u8(),a0)});function qQ($){return $}var a8=($)=>(w)=>async(U)=>{if(!x.isInstance(U.request))return w(U);const{request:E}=U,{handlerProtocol:f=""}=$.requestHandler.metadata||{};if(f.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)},e8={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},PQ=($)=>({applyToStack:(w)=>{w.add(a8($),e8)}});var $4=()=>($,w)=>async(U)=>{try{const E=await $(U),{clientName:f,commandName:G,logger:W,dynamoDbDocumentClientOptions:L={}}=w,{overrideInputFilterSensitiveLog:R,overrideOutputFilterSensitiveLog:X}=L,Z=R??w.inputFilterSensitiveLog,F=X??w.outputFilterSensitiveLog,{$metadata:Y,...I}=E.output;return W?.info?.({clientName:f,commandName:G,input:Z(U.input),output:F(I),metadata:Y}),E}catch(E){const{clientName:f,commandName:G,logger:W,dynamoDbDocumentClientOptions:L={}}=w,{overrideInputFilterSensitiveLog:R}=L,X=R??w.inputFilterSensitiveLog;throw W?.error?.({clientName:f,commandName:G,input:X(U.input),error:E,metadata:E.$metadata}),E}},w4={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},SQ=($)=>({applyToStack:(w)=>{w.add($4(),w4)}});var mw="X-Amzn-Trace-Id",U4="AWS_LAMBDA_FUNCTION_NAME",f4="_X_AMZN_TRACE_ID",E4=($)=>(w)=>async(U)=>{const{request:E}=U;if(!x.isInstance(E)||$.runtime!=="node"||E.headers.hasOwnProperty(mw))return w(U);const f=process.env[U4],G=process.env[f4],W=(L)=>typeof L==="string"&&L.length>0;if(W(f)&&W(G))E.headers[mw]=G;return w({...U,request:E})},G4={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},cQ=($)=>({applyToStack:(w)=>{w.add(E4($),G4)}});function y7($){return{...$,customUserAgent:typeof $.customUserAgent==="string"?[[$.customUserAgent]]:$.customUserAgent}}var nY=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}$"),s0=($)=>nY.test($)||$.startsWith("[")&&$.endsWith("]");var lY=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),n0=($,w=!1)=>{if(!w)return lY.test($);const U=$.split(".");for(let E of U)if(!n0(E))return!1;return!0};var l0={};var o="endpoints";function u($){if(typeof $!=="object"||$==null)return $;if("ref"in $)return`\$${u($.ref)}`;if("fn"in $)return`${$.fn}(${($.argv||[]).map(u).join(", ")})`;return JSON.stringify($,null,2)}class B extends Error{constructor($){super($);this.name="EndpointError"}}var $L=($,w)=>$===w;var wL=($)=>{const w=$.split("."),U=[];for(let E of w){const f=E.indexOf("[");if(f!==-1){if(E.indexOf("]")!==E.length-1)throw new B(`Path: '${$}' does not end with ']'`);const G=E.slice(f+1,-1);if(Number.isNaN(parseInt(G)))throw new B(`Invalid array index: '${G}' in path: '${$}'`);if(f!==0)U.push(E.slice(0,f));U.push(G)}else U.push(E)}return U};var b1=($,w)=>wL(w).reduce((U,E)=>{if(typeof U!=="object")throw new B(`Index '${E}' in '${w}' not found in '${JSON.stringify($)}'`);else if(Array.isArray(U))return U[parseInt(E)];return U[E]},$);var UL=($)=>$!=null;var fL=($)=>!$;var h1=D1(G0(),1);var Lw={[h1.EndpointURLScheme.HTTP]:80,[h1.EndpointURLScheme.HTTPS]:443},EL=($)=>{const w=(()=>{try{if($ instanceof URL)return $;if(typeof $==="object"&&"hostname"in $){const{hostname:Y,port:I,protocol:z="",path:J="",query:O={}}=$,T=new URL(`${z}//${Y}${I?`:${I}`:""}${J}`);return T.search=Object.entries(O).map(([K,A])=>`${K}=${A}`).join("&"),T}return new URL($)}catch(Y){return null}})();if(!w)return console.error(`Unable to parse ${JSON.stringify($)} as a whatwg URL.`),null;const U=w.href,{host:E,hostname:f,pathname:G,protocol:W,search:L}=w;if(L)return null;const R=W.slice(0,-1);if(!Object.values(h1.EndpointURLScheme).includes(R))return null;const X=s0(f),Z=U.includes(`${E}:${Lw[R]}`)||typeof $==="string"&&$.includes(`${E}:${Lw[R]}`),F=`${E}${Z?`:${Lw[R]}`:""}`;return{scheme:R,authority:F,path:G,normalizedPath:G.endsWith("/")?G:`${G}/`,isIp:X}};var GL=($,w)=>$===w;var WL=($,w,U,E)=>{if(w>=U||$.length<U)return null;if(!E)return $.substring(w,U);return $.substring($.length-U,$.length-w)};var LL=($)=>encodeURIComponent($).replace(/[!*'()]/g,(w)=>`%${w.charCodeAt(0).toString(16).toUpperCase()}`);var RL={booleanEquals:$L,getAttr:b1,isSet:UL,isValidHostLabel:n0,not:fL,parseURL:EL,stringEquals:GL,substring:WL,uriEncode:LL};var k1=($,w)=>{const U=[],E={...w.endpointParams,...w.referenceRecord};let f=0;while(f<$.length){const G=$.indexOf("{",f);if(G===-1){U.push($.slice(f));break}U.push($.slice(f,G));const W=$.indexOf("}",G);if(W===-1){U.push($.slice(G));break}if($[G+1]==="{"&&$[W+1]==="}")U.push($.slice(G+1,W)),f=W+2;const L=$.substring(G+1,W);if(L.includes("#")){const[R,X]=L.split("#");U.push(b1(E[R],X))}else U.push(E[L]);f=W+1}return U.join("")};var XL=({ref:$},w)=>{return{...w.endpointParams,...w.referenceRecord}[$]};var w0=($,w,U)=>{if(typeof $==="string")return k1($,U);else if($.fn)return c1($,U);else if($.ref)return XL($,U);throw new B(`'${w}': ${String($)} is not a string, function or reference.`)};var c1=({fn:$,argv:w},U)=>{const E=w.map((G)=>["boolean","number"].includes(typeof G)?G:w0(G,"arg",U)),f=$.split(".");if(f[0]in l0&&f[1]!=null)return l0[f[0]][f[1]](...E);return RL[$](...E)};var ZL=({assign:$,...w},U)=>{if($&&$ in U.referenceRecord)throw new B(`'${$}' is already defined in Reference Record.`);const E=c1(w,U);return U.logger?.debug?.(`${o} evaluateCondition: ${u(w)} = ${u(E)}`),{result:E===""?!0:!!E,...$!=null&&{toAssign:{name:$,value:E}}}};var B0=($=[],w)=>{const U={};for(let E of $){const{result:f,toAssign:G}=ZL(E,{...w,referenceRecord:{...w.referenceRecord,...U}});if(!f)return{result:f};if(G)U[G.name]=G.value,w.logger?.debug?.(`${o} assign: ${G.name} := ${u(G.value)}`)}return{result:!0,referenceRecord:U}};var FL=($,w)=>Object.entries($).reduce((U,[E,f])=>({...U,[E]:f.map((G)=>{const W=w0(G,"Header value entry",w);if(typeof W!=="string")throw new B(`Header '${E}' value '${W}' is not a string`);return W})}),{});var Rw=($,w)=>{if(Array.isArray($))return $.map((U)=>Rw(U,w));switch(typeof $){case"string":return k1($,w);case"object":if($===null)throw new B(`Unexpected endpoint property: ${$}`);return v1($,w);case"boolean":return $;default:throw new B(`Unexpected endpoint property type: ${typeof $}`)}};var v1=($,w)=>Object.entries($).reduce((U,[E,f])=>({...U,[E]:Rw(f,w)}),{});var IL=($,w)=>{const U=w0($,"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 B(`Endpoint URL must be a string, got ${typeof U}`)};var YL=($,w)=>{const{conditions:U,endpoint:E}=$,{result:f,referenceRecord:G}=B0(U,w);if(!f)return;const W={...w,referenceRecord:{...w.referenceRecord,...G}},{url:L,properties:R,headers:X}=E;return w.logger?.debug?.(`${o} Resolving endpoint from template: ${u(E)}`),{...X!=null&&{headers:FL(X,W)},...R!=null&&{properties:v1(R,W)},url:IL(L,W)}};var zL=($,w)=>{const{conditions:U,error:E}=$,{result:f,referenceRecord:G}=B0(U,w);if(!f)return;throw new B(w0(E,"Error",{...w,referenceRecord:{...w.referenceRecord,...G}}))};var QL=($,w)=>{const{conditions:U,rules:E}=$,{result:f,referenceRecord:G}=B0(U,w);if(!f)return;return x1(E,{...w,referenceRecord:{...w.referenceRecord,...G}})};var x1=($,w)=>{for(let U of $)if(U.type==="endpoint"){const E=YL(U,w);if(E)return E}else if(U.type==="error")zL(U,w);else if(U.type==="tree"){const E=QL(U,w);if(E)return E}else throw new B(`Unknown endpoint rule: ${U}`);throw new B("Rules evaluation failed")};var mY=($,w)=>{const{endpointParams:U,logger:E}=w,{parameters:f,rules:G}=$;w.logger?.debug?.(`${o} Initial EndpointParams: ${u(U)}`);const W=Object.entries(f).filter(([,X])=>X.default!=null).map(([X,Z])=>[X,Z.default]);if(W.length>0)for(let[X,Z]of W)U[X]=U[X]??Z;const L=Object.entries(f).filter(([,X])=>X.required).map(([X])=>X);for(let X of L)if(U[X]==null)throw new B(`Missing required parameter: '${X}'`);const R=x1(G,{endpointParams:U,logger:E,referenceRecord:{}});if(w.endpointParams?.Endpoint)try{const X=new URL(w.endpointParams.Endpoint),{protocol:Z,port:F}=X;R.url.protocol=Z,R.url.port=F}catch(X){}return w.logger?.debug?.(`${o} Resolved endpoint: ${u(R)}`),R};var Xw=($,w=!1)=>{if(w){for(let U of $.split("."))if(!Xw(U))return!1;return!0}if(!n0($))return!1;if($.length<3||$.length>63)return!1;if($!==$.toLowerCase())return!1;if(s0($))return!1;return!0};var ML=($)=>{const w=$.split(":");if(w.length<6)return null;const[U,E,f,G,W,...L]=w;if(U!=="arn"||E===""||f===""||L[0]==="")return null;return{partition:E,service:f,region:G,accountId:W,resourceId:L[0].includes("/")?L[0].split("/"):L}};var JL={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 rY=JL,oY="",TL=($)=>{const{partitions:w}=rY;for(let E of w){const{regions:f,outputs:G}=E;for(let[W,L]of Object.entries(f))if(W===$)return{...G,...L}}for(let E of w){const{regionRegex:f,outputs:G}=E;if(new RegExp(f).test($))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 KL=()=>oY;var tY={isVirtualHostableS3Bucket:Xw,parseArn:ML,partition:TL};l0.aws=tY;var Zw="user-agent",y1="x-amz-user-agent",Fw=" ",u1="/",OL=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,AL=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,Iw="-";var aY=($)=>(w,U)=>async(E)=>{const{request:f}=E;if(!x.isInstance(f))return w(E);const{headers:G}=f,W=U?.userAgent?.map(Yw)||[],L=(await $.defaultUserAgentProvider()).map(Yw),R=$?.customUserAgent?.map(Yw)||[],X=KL(),Z=(X?[X]:[]).concat([...L,...W,...R]).join(Fw),F=[...L.filter((Y)=>Y.startsWith("aws-sdk-")),...R].join(Fw);if($.runtime!=="browser"){if(F)G[y1]=G[y1]?`${G[Zw]} ${F}`:F;G[Zw]=Z}else G[y1]=Z;return w({...E,request:f})},Yw=($)=>{const w=$[0].split(u1).map((W)=>W.replace(OL,Iw)).join(u1),U=$[1]?.replace(AL,Iw),E=w.indexOf(u1),f=w.substring(0,E);let G=w.substring(E+1);if(f==="api")G=G.toLowerCase();return[f,G,U].filter((W)=>W&&W.length>0).reduce((W,L,R)=>{switch(R){case 0:return L;case 1:return`${W}/${L}`;default:return`${W}#${L}`}},"")},eY={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},JT=($)=>({applyToStack:(w)=>{w.add(aY($),eY)}});var _1=($)=>typeof $==="string"&&($.startsWith("fips-")||$.endsWith("-fips"));var zw=($)=>_1($)?["fips-aws-global","aws-fips"].includes($)?"us-east-1":$.replace(/fips-(dkr-|prod-)?|-fips/,""):$;var qT=($)=>{const{region:w,useFipsEndpoint:U}=$;if(!w)throw new Error("Region is missing");return{...$,region:async()=>{if(typeof w==="string")return zw(w);const E=await w();return zw(E)},useFipsEndpoint:async()=>{const E=typeof w==="string"?w:await w();if(_1(E))return!0;return typeof U!=="function"?Promise.resolve(!!U):U()}}};var V0=($,w,U)=>{if(!(w in $))return;if($[w]==="true")return!0;if($[w]==="false")return!1;throw new Error(`Cannot load ${U} "${w}". Expected "true" or "false", got ${$[w]}.`)};var U0;(function($){$.ENV="env",$.CONFIG="shared config entry"})(U0||(U0={}));var $5="AWS_USE_DUALSTACK_ENDPOINT",w5="use_dualstack_endpoint";var xT={environmentVariableSelector:($)=>V0($,$5,U0.ENV),configFileSelector:($)=>V0($,w5,U0.CONFIG),default:!1};var U5="AWS_USE_FIPS_ENDPOINT",f5="use_fips_endpoint";var _T={environmentVariableSelector:($)=>V0($,U5,U0.ENV),configFileSelector:($)=>V0($,f5,U0.CONFIG),default:!1};var Qw=D1(G0(),1),BL=($)=>$[Qw.SMITHY_CONTEXT_KEY]||($[Qw.SMITHY_CONTEXT_KEY]={});var t=($)=>{if(typeof $==="function")return $;const w=Promise.resolve($);return()=>w};var VL={environmentVariableSelector:($)=>$["AWS_REGION"],configFileSelector:($)=>$["region"],default:()=>{throw new Error("Region is missing")}},G3={preferredFile:"credentials"};function E5($){return(w)=>async(U)=>{const E=U.request;if(x.isInstance(E)){const{body:f,headers:G}=E;if(f&&Object.keys(G).map((W)=>W.toLowerCase()).indexOf(HL)===-1)try{const W=$(f);E.headers={...E.headers,[HL]:String(W)}}catch(W){}}return w({...U,request:E})}}var HL="content-length",G5={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},h3=($)=>({applyToStack:(w)=>{w.add(E5($.bodyLengthChecker),G5)}});var CL=($,w)=>(U)=>async(E)=>{const{response:f}=await U(E);try{const G=await w(f,$);return{response:f,output:G}}catch(G){if(Object.defineProperty(G,"$response",{value:f}),!("$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 NL=($,w)=>(U,E)=>async(f)=>{const G=E.endpointV2?.url&&$.urlParser?async()=>$.urlParser(E.endpointV2.url):$.endpoint;if(!G)throw new Error("No valid endpoint provider available.");const W=await w(f.input,{...$,endpoint:G});return U({...f,request:W})};function y3($,w,U){return{applyToStack:(E)=>{E.add(CL($,U),W5),E.add(NL($,w),Mw)}}}var W5={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Mw={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};var qL=async($)=>{const w=$?.Bucket||"";if(typeof $.Bucket==="string")$.Bucket=w.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(F5(w)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!Z5(w)||w.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||w.toLowerCase()!==w||w.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},L5=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,R5=/(\d+\.){3}\d+/,X5=/\.\./;var Z5=($)=>L5.test($)&&!R5.test($)&&!X5.test($),F5=($)=>{const[w,U,E,,,f]=$.split(":"),G=w==="arn"&&$.split(":").length>=6,W=Boolean(G&&U&&E&&f);if(G&&!W)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return W};var PL=($,w,U)=>{const E=async()=>{const f=U[$]??U[w];if(typeof f==="function")return f();return f};if($==="credentialScope"||w==="CredentialScope")return async()=>{const f=typeof U.credentials==="function"?await U.credentials():U.credentials;return f?.credentialScope??f?.CredentialScope};if($==="accountId"||w==="AccountId")return async()=>{const f=typeof U.credentials==="function"?await U.credentials():U.credentials;return f?.accountId??f?.AccountId};if($==="endpoint"||w==="endpoint")return async()=>{const f=await E();if(f&&typeof f==="object"){if("url"in f)return f.url.href;if("hostname"in f){const{protocol:G,hostname:W,port:L,path:R}=f;return`${G}//${W}${L?":"+L:""}${R}`}}return f};return E};var jL="AWS_ENDPOINT_URL",SL="endpoint_url",bL=($)=>({environmentVariableSelector:(w)=>{const U=$.split(" ").map((G)=>G.toUpperCase()),E=w[[jL,...U].join("_")];if(E)return E;const f=w[jL];if(f)return f;return},configFileSelector:(w,U)=>{if(U&&w.services){const f=U[["services",w.services].join(Jw)];if(f){const G=$.split(" ").map((L)=>L.toLowerCase()),W=f[[G.join("_"),SL].join(Jw)];if(W)return W}}const E=w[SL];if(E)return E;return},default:void 0});var hL=async($)=>X0(bL($))();var d1=($)=>{if(typeof $==="object"){if("url"in $)return Tw($.url);return $}return Tw($)};var DL=async($,w,U,E)=>{if(!U.endpoint){const W=await hL(U.serviceId||"");if(W)U.endpoint=()=>Promise.resolve(d1(W))}const f=await I5($,w,U);if(typeof U.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return U.endpointProvider(f,E)},I5=async($,w,U)=>{const E={},f=w?.getEndpointParameterInstructions?.()||{};for(let[G,W]of Object.entries(f))switch(W.type){case"staticContextParams":E[G]=W.value;break;case"contextParams":E[G]=$[W.name];break;case"clientContextParams":case"builtInParams":E[G]=await PL(W.name,G,U)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(W))}if(Object.keys(f).length===0)Object.assign(E,U);if(String(U.serviceId).toLowerCase()==="s3")await qL(E);return E};var kL=({config:$,instructions:w})=>{return(U,E)=>async(f)=>{const G=await DL(f.input,{getEndpointParameterInstructions(){return w}},{...$},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=BL(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({...f})}};var Y5={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Mw.name},FK=($,w)=>({applyToStack:(U)=>{U.addRelativeTo(kL({config:$,instructions:w}),Y5)}});var QK=($)=>{const w=$.tls??!0,{endpoint:U}=$,E=U!=null?async()=>d1(await t(U)()):void 0;return{...$,endpoint:E,tls:w,isCustomEndpoint:!!U,useDualstackEndpoint:t($.useDualstackEndpoint??!1),useFipsEndpoint:t($.useFipsEndpoint??!1)}};var s;(function($){$.STANDARD="standard",$.ADAPTIVE="adaptive"})(s||(s={}));var Z0=3,cL=s.STANDARD;var vL=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],xL=["TimeoutError","RequestTimeout","RequestTimeoutException"],yL=[500,502,503,504],uL=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];var z5=($)=>$.$metadata?.clockSkewCorrected,H0=($)=>$.$metadata?.httpStatusCode===429||vL.includes($.name)||$.$retryable?.throttling==!0,p1=($)=>z5($)||xL.includes($.name)||uL.includes($?.code||"")||yL.includes($.$metadata?.httpStatusCode||0),_L=($)=>{if($.$metadata?.httpStatusCode!==void 0){const w=$.$metadata.httpStatusCode;if(500<=w&&w<=599&&!p1($))return!0;return!1}return!1};class g1{constructor($){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=$?.beta??0.7,this.minCapacity=$?.minCapacity??1,this.minFillRate=$?.minFillRate??0.5,this.scaleConstant=$?.scaleConstant??0.4,this.smooth=$?.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($){if(!this.enabled)return;if(this.refillTokenBucket(),$>this.currentCapacity){const w=($-this.currentCapacity)/this.fillRate*1000;await new Promise((U)=>setTimeout(U,w))}this.currentCapacity=this.currentCapacity-$}refillTokenBucket(){const $=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=$;return}const w=($-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+w),this.lastTimestamp=$}updateClientSendingRate($){let w;if(this.updateMeasuredRate(),H0($)){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($){return this.getPrecise($*this.beta)}cubicSuccess($){return this.getPrecise(this.scaleConstant*Math.pow($-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate($){this.refillTokenBucket(),this.fillRate=Math.max($,this.minFillRate),this.maxCapacity=Math.max($,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const $=this.getCurrentTimeInSeconds(),w=Math.floor($*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($){return parseFloat($.toFixed(8))}}var F0=100,m0=20000,Kw=500,s1=500,Ow=5,Aw=10,Bw=1,n1="amz-sdk-invocation-id",l1="amz-sdk-request";var dL=()=>{let $=F0;return{computeNextBackoffDelay:(E)=>{return Math.floor(Math.min(m0,Math.random()*2**E*$))},setDelayBase:(E)=>{$=E}}};var Vw=({retryDelay:$,retryCount:w,retryCost:U})=>{return{getRetryCount:()=>w,getRetryDelay:()=>Math.min(m0,$),getRetryCost:()=>U}};class C0{constructor($){this.maxAttempts=$,this.mode=s.STANDARD,this.capacity=s1,this.retryBackoffStrategy=dL(),this.maxAttemptsProvider=typeof $==="function"?$:async()=>$}async acquireInitialRetryToken($){return Vw({retryDelay:F0,retryCount:0})}async refreshRetryTokenForRetry($,w){const U=await this.getMaxAttempts();if(this.shouldRetry($,w,U)){const E=w.errorType;this.retryBackoffStrategy.setDelayBase(E==="THROTTLING"?Kw:F0);const f=this.retryBackoffStrategy.computeNextBackoffDelay($.getRetryCount()),G=w.retryAfterHint?Math.max(w.retryAfterHint.getTime()-Date.now()||0,f):f,W=this.getCapacityCost(E);return this.capacity-=W,Vw({retryDelay:G,retryCount:$.getRetryCount()+1,retryCost:W})}throw new Error("No retry token available")}recordSuccess($){this.capacity=Math.max(s1,this.capacity+($.getRetryCost()??Bw))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch($){return console.warn(`Max attempts provider could not resolve. Using default of ${Z0}`),Z0}}shouldRetry($,w,U){return $.getRetryCount()+1<U&&this.capacity>=this.getCapacityCost(w.errorType)&&this.isRetryableError(w.errorType)}getCapacityCost($){return $==="TRANSIENT"?Aw:Ow}isRetryableError($){return $==="THROTTLING"||$==="TRANSIENT"}}class Hw{constructor($,w){this.maxAttemptsProvider=$,this.mode=s.ADAPTIVE;const{rateLimiter:U}=w??{};this.rateLimiter=U??new g1,this.standardRetryStrategy=new C0($)}async acquireInitialRetryToken($){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken($)}async refreshRetryTokenForRetry($,w){return this.rateLimiter.updateClientSendingRate(w),this.standardRetryStrategy.refreshRetryTokenForRetry($,w)}recordSuccess($){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess($)}}var pL="AWS_MAX_ATTEMPTS",gL="max_attempts",WO={environmentVariableSelector:($)=>{const w=$[pL];if(!w)return;const U=parseInt(w);if(Number.isNaN(U))throw new Error(`Environment variable ${pL} mast be a number, got "${w}"`);return U},configFileSelector:($)=>{const w=$[gL];if(!w)return;const U=parseInt(w);if(Number.isNaN(U))throw new Error(`Shared config file entry ${gL} mast be a number, got "${w}"`);return U},default:Z0},LO=($)=>{const{retryStrategy:w}=$,U=t($.maxAttempts??Z0);return{...$,maxAttempts:U,retryStrategy:async()=>{if(w)return w;if(await t($.retryMode)()===s.ADAPTIVE)return new Hw(U);return new C0(U)}}},Q5="AWS_RETRY_MODE",M5="retry_mode",RO={environmentVariableSelector:($)=>$[Q5],configFileSelector:($)=>$[M5],default:cL};var l=D1(C$(),1),ZO=l.default.v1,FO=l.default.v3,sL=l.default.v4,IO=l.default.v5,YO=l.default.NIL,zO=l.default.version,QO=l.default.validate,MO=l.default.stringify,JO=l.default.parse;import{Readable as J5} from"stream";var nL=($)=>$?.body instanceof J5||typeof ReadableStream!=="undefined"&&$?.body instanceof ReadableStream;var Cw=($)=>{if($ instanceof Error)return $;if($ instanceof Object)return Object.assign(new Error,$);if(typeof $==="string")return new Error($);return new Error(`AWS SDK error wrapper for ${$}`)};var T5=($)=>(w,U)=>async(E)=>{let f=await $.retryStrategy();const G=await $.maxAttempts();if(K5(f)){f=f;let W=await f.acquireInitialRetryToken(U.partition_id),L=new Error,R=0,X=0;const{request:Z}=E,F=x.isInstance(Z);if(F)Z.headers[n1]=sL();while(!0)try{if(F)Z.headers[l1]=`attempt=${R+1}; max=${G}`;const{response:Y,output:I}=await w(E);return f.recordSuccess(W),I.$metadata.attempts=R+1,I.$metadata.totalRetryDelay=X,{response:Y,output:I}}catch(Y){const I=O5(Y);if(L=Cw(Y),F&&nL(Z))throw(U.logger instanceof lL?console:U.logger)?.warn("An error was encountered in a non-retryable streaming request."),L;try{W=await f.refreshRetryTokenForRetry(W,I)}catch(J){if(!L.$metadata)L.$metadata={};throw L.$metadata.attempts=R+1,L.$metadata.totalRetryDelay=X,L}R=W.getRetryCount();const z=W.getRetryDelay();X+=z,await new Promise((J)=>setTimeout(J,z))}}else{if(f=f,f?.mode)U.userAgent=[...U.userAgent||[],["cfg/retry-mode",f.mode]];return f.retry(w,E)}},K5=($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined",O5=($)=>{const w={error:$,errorType:A5($)},U=V5($.$response);if(U)w.retryAfterHint=U;return w},A5=($)=>{if(H0($))return"THROTTLING";if(p1($))return"TRANSIENT";if(_L($))return"SERVER_ERROR";return"CLIENT_ERROR"},B5={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},jO=($)=>({applyToStack:(w)=>{w.add(T5($),B5)}}),V5=($)=>{if(!Nw.isInstance($))return;const w=Object.keys($.headers).find((G)=>G.toLowerCase()==="retry-after");if(!w)return;const U=$.headers[w],E=Number(U);if(!Number.isNaN(E))return new Date(E*1000);return new Date(U)};import{platform as IQ,release as YQ} from"os";import{env as d8,versions as zQ} from"process";var pw={isCrtAvailable:!1};var _8=()=>{if(pw.isCrtAvailable)return["md/crt-avail"];return null};var QQ="AWS_SDK_UA_APP_ID",MQ="sdk-ua-app-id",vA=({serviceId:$,clientVersion:w})=>{const U=[["aws-sdk-js",w],["ua","2.0"],[`os/${IQ()}`,YQ()],["lang/js"],["md/nodejs",`${zQ.node}`]],E=_8();if(E)U.push(E);if($)U.push([`api/${$}`,w]);if(d8.AWS_EXECUTION_ENV)U.push([`exec-env/${d8.AWS_EXECUTION_ENV}`]);const f=X0({environmentVariableSelector:(W)=>W[QQ],configFileSelector:(W)=>W[MQ],default:void 0})();let G=void 0;return async()=>{if(!G){const W=await f;G=W?[...U,[`app/${W}`]]:[...U]}return G}};import{Buffer as JQ} from"buffer";import{createHash as TQ,createHmac as KQ} from"crypto";var p8=function($,w){if(JQ.isBuffer($))return $;if(typeof $==="string")return g8($,w);if(ArrayBuffer.isView($))return gw($.buffer,$.byteOffset,$.byteLength);return gw($)};class OQ{constructor($,w){this.algorithmIdentifier=$,this.secret=w,this.reset()}update($,w){this.hash.update(s8(p8($,w)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?KQ(this.algorithmIdentifier,p8(this.secret)):TQ(this.algorithmIdentifier)}}import{fstatSync as AQ,lstatSync as BQ} from"fs";var nA=($)=>{if(!$)return 0;if(typeof $==="string")return Buffer.byteLength($);else if(typeof $.byteLength==="number")return $.byteLength;else if(typeof $.size==="number")return $.size;else if(typeof $.start==="number"&&typeof $.end==="number")return $.end+1-$.start;else if(typeof $.path==="string"||Buffer.isBuffer($.path))return BQ($.path).size;else if(typeof $.fd==="number")return AQ($.fd).size;throw new Error(`Body Length computation failed for ${$}`)};var o8=D1(z$(),1);var n8="AWS_EXECUTION_ENV",sw="AWS_REGION",nw="AWS_DEFAULT_REGION",l8="AWS_EC2_METADATA_DISABLED",m8=["in-region","cross-region","mobile","standard","legacy"],i8="/latest/meta-data/placement/region";var r8={environmentVariableSelector:($)=>{return $["AWS_DEFAULTS_MODE"]},configFileSelector:($)=>{return $["defaults_mode"]},default:"legacy"};var wB=({region:$=X0(VL),defaultsMode:w=X0(r8)}={})=>o8.memoize(async()=>{const U=typeof w==="function"?await w():w;switch(U?.toLowerCase()){case"auto":return VQ($);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 ${m8.join(", ")}, got ${U}`)}}),VQ=async($)=>{if($){const w=typeof $==="function"?await $():$,U=await HQ();if(!U)return"standard";if(w===U)return"in-region";else return"cross-region"}return"standard"},HQ=async()=>{if(process.env[n8]&&(process.env[sw]||process.env[nw]))return process.env[sw]??process.env[nw];if(!process.env[l8])try{const{getInstanceMetadataEndpoint:$,httpRequest:w}=await import("./chunk-0b46ec66d2c3d5f3.js"),U=await $();return(await w({...U,path:i8})).toString()}catch($){}};var GB=($)=>{let w=async()=>{if($.region===void 0)throw new Error("Region is missing from runtimeConfig");const U=$.region;if(typeof U==="string")return U;return U()};return{setRegion(U){w=U},region(){return w}}},WB=($)=>{return{region:$.region()}};export{qQ as wa,PQ as xa,SQ as ya,cQ as za,sR as Aa,V0 as Ba,U0 as Ca,Ww as Da,BL as Ea,t as Fa,y7 as Ga,l0 as Ha,mY as Ia,tY as Ja,JT as Ka,xT as La,_T as Ma,VL as Na,G3 as Oa,qT as Pa,h3 as Qa,I5 as Ra,y3 as Sa,FK as Ta,QK as Ua,cL as Va,WO as Wa,LO as Xa,RO as Ya,jO as Za,OR as _a,FQ as $a,vA as ab,OQ as bb,nA as cb,wB as db,GB as eb,WB as fb};
@@ -1,6 +0,0 @@
1
- // @bun
2
- import{y as h} from"./chunk-7ce930fe69575c87.js";import{C as g,Q as P,T as w,ha as I} from"./chunk-c6846df9c8456b20.js";import"./chunk-40c21fe243675250.js";import{jb as d} from"./chunk-226243dd851d2050.js";var i=h(d(),1);import A from"fs/promises";var C=h(d(),1);var E="169.254.170.2",R="169.254.170.23",p="[fd00:ec2::23]",S=(e,c)=>{if(e.protocol==="https:")return;if(e.hostname===E||e.hostname===R||e.hostname===p)return;if(e.hostname.includes("[")){if(e.hostname==="[::1]"||e.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(e.hostname==="localhost")return;const a=e.hostname.split("."),r=(t)=>{const s=parseInt(t,10);return 0<=s&&s<=255};if(a[0]==="127"&&r(a[1])&&r(a[2])&&r(a[3])&&a.length===4)return}throw new C.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
3
- - loopback CIDR 127.0.0.0/8 or [::1/128]
4
- - ECS container host 169.254.170.2
5
- - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:c})};var m=h(d(),1);function K(e){return new g({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((c,[a,r])=>{return c[a]=r,c},{}),fragment:e.hash})}async function T(e,c){const r=await w(e.body).transformToString();if(e.statusCode===200){const t=JSON.parse(r);if(typeof t.AccessKeyId!=="string"||typeof t.SecretAccessKey!=="string"||typeof t.Token!=="string"||typeof t.Expiration!=="string")throw new m.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:c});return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:I(t.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let t={};try{t=JSON.parse(r)}catch(s){}throw Object.assign(new m.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:c}),{Code:t.Code,Message:t.Message})}throw new m.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:c})}var x=(e,c,a)=>{return async()=>{for(let r=0;r<c;++r)try{return await e()}catch(t){await new Promise((s)=>setTimeout(s,a))}return await e()}};var O="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",b="http://169.254.170.2",_="AWS_CONTAINER_CREDENTIALS_FULL_URI",v="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",B="AWS_CONTAINER_AUTHORIZATION_TOKEN",D=(e={})=>{e.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let c;const a=e.awsContainerCredentialsRelativeUri??process.env[O],r=e.awsContainerCredentialsFullUri??process.env[_],t=e.awsContainerAuthorizationToken??process.env[B],s=e.awsContainerAuthorizationTokenFile??process.env[v],n=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console.warn:e.logger.warn;if(a&&r)n("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),n("awsContainerCredentialsFullUri will take precedence.");if(t&&s)n("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),n("awsContainerAuthorizationToken will take precedence.");if(r)c=r;else if(a)c=`${b}${a}`;else throw new i.CredentialsProviderError(`No HTTP credential provider host provided.
6
- Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:e.logger});const y=new URL(c);S(y,e.logger);const u=new P({requestTimeout:e.timeout??1000,connectionTimeout:e.timeout??1000});return x(async()=>{const o=K(y);if(t)o.headers.Authorization=t;else if(s)o.headers.Authorization=(await A.readFile(s)).toString();try{const f=await u.handle(o);return T(f.response)}catch(f){throw new i.CredentialsProviderError(String(f),{logger:e.logger})}},e.maxRetries??3,e.timeout??1000)};export{D as fromHttp};
@@ -1 +0,0 @@
1
- import{y as h,z as G} from"./chunk-7ce930fe69575c87.js";import{kb as I} from"./chunk-3cbc1c9cdc091b43.js";import{nb as H,rb as K} from"./chunk-934ebff128f86ef1.js";var t=G((r,j)=>{var T=function(c){const i={};if(c=c.replace(/^\?/,""),c)for(let n of c.split("&")){let[F,f=null]=n.split("=");if(F=decodeURIComponent(F),f)f=decodeURIComponent(f);if(!(F in i))i[F]=f;else if(Array.isArray(i[F]))i[F].push(f);else i[F]=[i[F],f]}return i},o=Object.defineProperty,M=Object.getOwnPropertyDescriptor,Q=Object.getOwnPropertyNames,U=Object.prototype.hasOwnProperty,O=(c,i)=>o(c,"name",{value:i,configurable:!0}),d=(c,i)=>{for(var n in i)o(c,n,{get:i[n],enumerable:!0})},v=(c,i,n,F)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let f of Q(i))if(!U.call(c,f)&&f!==n)o(c,f,{get:()=>i[f],enumerable:!(F=M(i,f))||F.enumerable})}return c},J=(c)=>v(o({},"__esModule",{value:!0}),c),S={};d(S,{parseQueryString:()=>T});j.exports=J(S);O(T,"parseQueryString")});var a=G((y,Z)=>{var{defineProperty:w,getOwnPropertyDescriptor:x,getOwnPropertyNames:P}=Object,s=Object.prototype.hasOwnProperty,l=(c,i)=>w(c,"name",{value:i,configurable:!0}),m=(c,i)=>{for(var n in i)w(c,n,{get:i[n],enumerable:!0})},k=(c,i,n,F)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let f of P(i))if(!s.call(c,f)&&f!==n)w(c,f,{get:()=>i[f],enumerable:!(F=x(i,f))||F.enumerable})}return c},q=(c)=>k(w({},"__esModule",{value:!0}),c),z={};m(z,{parseUrl:()=>X});Z.exports=q(z);var p=t(),X=l((c)=>{if(typeof c==="string")return X(new URL(c));const{hostname:i,pathname:n,port:F,protocol:f,search:E}=c;let N;if(E)N=p.parseQueryString(E);return{hostname:i,port:F?parseInt(F):void 0,protocol:f,path:n,query:N}},"parseUrl")});var R=h(I(),1);var b=h(I(),1);function C(c){try{const i=new Set(Array.from(c.match(/([A-Z_]){3,}/g)??[]));return i.delete("CONFIG"),i.delete("CONFIG_PREFIX_SEPARATOR"),i.delete("ENV"),[...i].join(", ")}catch(i){return c}}var B=(c,i)=>async()=>{try{const n=c(process.env);if(n===void 0)throw new Error;return n}catch(n){throw new b.CredentialsProviderError(n.message||`Not found in ENV: ${C(c.toString())}`,{logger:i})}};var L=h(I(),1);var V=(c,{preferredFile:i="config",...n}={})=>async()=>{const F=H(n),{configFile:f,credentialsFile:E}=await K(n),N=E[F]||{},$=f[F]||{},D=i==="config"?{...N,...$}:{...$,...N};try{const A=c(D,i==="config"?f:E);if(A===void 0)throw new Error;return A}catch(g){throw new L.CredentialsProviderError(g.message||`Not found in config files w/ profile [${F}]: ${C(c.toString())}`,{logger:n.logger})}};var W=h(I(),1),u=(c)=>typeof c==="function",Y=(c)=>u(c)?async()=>await c():W.fromStatic(c);var wi=({environmentVariableSelector:c,configFileSelector:i,default:n},F={})=>R.memoize(R.chain(B(c),V(i,F),Y(n)));export{a as ib,wi as jb};