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