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