@kyro-cms/core 0.13.3 → 0.13.6

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 (563) hide show
  1. package/dist/{WebhookService-BOJMgjBm.d.cts → WebhookService-BJTCP3cU.d.cts} +1 -1
  2. package/dist/{WebhookService-BLi5Rz2m.d.ts → WebhookService-Bqr_66lK.d.ts} +1 -1
  3. package/dist/api-handler-graphql.cjs +1 -1
  4. package/dist/api-handler-graphql.js +2 -2
  5. package/dist/api-handler-trpc.cjs +1 -1
  6. package/dist/api-handler-trpc.js +2 -2
  7. package/dist/api-handler.cjs +1 -1
  8. package/dist/api-handler.js +1 -1
  9. package/dist/auth-session-4WJUKESW.js +1 -0
  10. package/dist/auth-session-VHUHDBCL.cjs +1 -0
  11. package/dist/{base-A9AJPCG5.d.ts → base-C2DOe8wD.d.ts} +2 -2
  12. package/dist/{base-C6wyX2nC.d.cts → base-DIpT2Vuz.d.cts} +2 -2
  13. package/dist/bootstrap-JYAUQ52D.cjs +1 -0
  14. package/dist/bootstrap-TTMLNQM3.js +1 -0
  15. package/dist/chunk-23RSKVJP.cjs +1 -0
  16. package/dist/chunk-24W5I6SJ.cjs +2 -0
  17. package/dist/{chunk-CH4TZZI5.js → chunk-2I2AXTKY.cjs} +38 -39
  18. package/dist/chunk-34LCWI5X.cjs +1 -0
  19. package/dist/chunk-3A5UO6OQ.cjs +114 -0
  20. package/dist/chunk-3N34WXBS.js +2 -0
  21. package/dist/chunk-5BUAWCU6.js +91 -0
  22. package/dist/{chunk-7NKNSRCB.cjs → chunk-5I3BM5TV.js} +33 -32
  23. package/dist/chunk-5RBGM5N5.js +3 -0
  24. package/dist/chunk-7EY3GXRA.js +2 -0
  25. package/dist/chunk-7KTPBTH5.cjs +1 -0
  26. package/dist/chunk-A4XM33WO.js +109 -0
  27. package/dist/chunk-A7763NCF.cjs +19 -0
  28. package/dist/chunk-AQWTJGML.cjs +1 -0
  29. package/dist/chunk-CIWLQXB2.js +2 -0
  30. package/dist/chunk-DCFOVCJX.cjs +1 -0
  31. package/dist/chunk-DCKJT247.cjs +1 -0
  32. package/dist/chunk-EG4SRTYS.cjs +2 -0
  33. package/dist/chunk-FAG2645P.js +2 -0
  34. package/dist/chunk-FIVTKI25.cjs +3 -0
  35. package/dist/chunk-FU76HURF.cjs +1 -0
  36. package/dist/chunk-GDLMPZKD.cjs +2 -0
  37. package/dist/chunk-GS4CMYKS.cjs +1 -0
  38. package/dist/chunk-GTAKGVUY.js +2 -0
  39. package/dist/chunk-GWUHIIPO.cjs +132 -0
  40. package/dist/chunk-H2IJDTA2.cjs +1 -0
  41. package/dist/chunk-HACW42ZZ.cjs +108 -0
  42. package/dist/chunk-HCM2G674.cjs +20 -0
  43. package/dist/chunk-I22MSXGL.js +2 -0
  44. package/dist/chunk-IIPSXKNV.js +115 -0
  45. package/dist/{chunk-WNU76M2C.js → chunk-IIVBEZC2.js} +6 -6
  46. package/dist/chunk-JHFD3IAU.cjs +1 -0
  47. package/dist/chunk-JJY2F6NL.cjs +3 -0
  48. package/dist/chunk-JQ4V2MGJ.cjs +2 -0
  49. package/dist/chunk-JXJTFBHG.js +3 -0
  50. package/dist/chunk-KOSR7235.cjs +1 -0
  51. package/dist/chunk-KUY4QDAL.js +2 -0
  52. package/dist/chunk-LGUHXOEW.js +3 -0
  53. package/dist/chunk-LXTVMP5F.cjs +6 -0
  54. package/dist/chunk-N25DOGLQ.js +5 -0
  55. package/dist/chunk-N2BMGZIX.cjs +90 -0
  56. package/dist/chunk-N7CDHWQH.cjs +2 -0
  57. package/dist/chunk-NBBAMC2X.cjs +1 -0
  58. package/dist/chunk-NGNXOXI5.js +2 -0
  59. package/dist/chunk-O4PPZOVI.cjs +1 -0
  60. package/dist/chunk-O4RKZQYQ.js +2 -0
  61. package/dist/chunk-OJBL4CXK.cjs +2 -0
  62. package/dist/chunk-OPKZYQV7.js +3 -0
  63. package/dist/chunk-OXEJCIOA.cjs +1 -0
  64. package/dist/chunk-OXH6CANN.js +2 -0
  65. package/dist/{chunk-EQN3HDES.cjs → chunk-PW6Y5MQL.cjs} +5 -5
  66. package/dist/chunk-RLW6AQF2.js +2 -0
  67. package/dist/chunk-SBFVITY2.js +7 -0
  68. package/dist/chunk-SEJ7LMYY.js +4 -0
  69. package/dist/chunk-SZY25KAE.js +21 -0
  70. package/dist/chunk-TG5YQ4PB.cjs +4 -0
  71. package/dist/chunk-TJ6N5ZPZ.js +133 -0
  72. package/dist/chunk-V2RMDMWN.js +2 -0
  73. package/dist/chunk-V4SR7DU5.js +3 -0
  74. package/dist/chunk-VLFM66BZ.js +4 -0
  75. package/dist/chunk-VPBGZW4P.cjs +1 -0
  76. package/dist/chunk-VQWOCGJ2.cjs +1 -0
  77. package/dist/chunk-VWXHW74B.js +3 -0
  78. package/dist/chunk-W5GDZG64.js +2 -0
  79. package/dist/chunk-WLSVS3NC.js +2 -0
  80. package/dist/chunk-YLP3EKTQ.js +2 -0
  81. package/dist/chunk-YNSKDTFG.js +2 -0
  82. package/dist/chunk-YOJOVQIH.cjs +1 -0
  83. package/dist/chunk-ZE2X3FBU.js +20 -0
  84. package/dist/chunk-ZMH35QYG.js +2 -0
  85. package/dist/cli/index.cjs +53 -182
  86. package/dist/cli/index.js +54 -183
  87. package/dist/drizzle/index.cjs +1 -1
  88. package/dist/drizzle/index.d.cts +3 -3
  89. package/dist/drizzle/index.d.ts +3 -3
  90. package/dist/drizzle/index.js +1 -1
  91. package/dist/fields/index.cjs +1 -1
  92. package/dist/fields/index.d.cts +2 -2
  93. package/dist/fields/index.d.ts +2 -2
  94. package/dist/fields/index.js +1 -1
  95. package/dist/graphql/index.cjs +1 -1
  96. package/dist/graphql/index.d.cts +3 -3
  97. package/dist/graphql/index.d.ts +3 -3
  98. package/dist/graphql/index.js +1 -1
  99. package/dist/{index-BttsFZDa.d.ts → index-C9uBoJtm.d.ts} +2 -2
  100. package/dist/{index-BMcYFpTv.d.cts → index-Ci7aUrmN.d.cts} +2 -2
  101. package/dist/index.cjs +30 -30
  102. package/dist/index.d.cts +10 -10
  103. package/dist/index.d.ts +10 -10
  104. package/dist/index.js +31 -31
  105. package/dist/integration.cjs +1 -1
  106. package/dist/integration.js +1 -1
  107. package/dist/local-DKP43BWQ.cjs +1 -0
  108. package/dist/local-TF5ZMHWW.js +1 -0
  109. package/dist/media-M3EIZ4QS.cjs +1 -0
  110. package/dist/media-WYEILC6K.js +1 -0
  111. package/dist/mongo-auth-adapter-33M5ENM7.cjs +1 -0
  112. package/dist/mongo-auth-adapter-4ITULS2P.js +1 -0
  113. package/dist/mongodb/index.cjs +1 -1
  114. package/dist/mongodb/index.d.cts +3 -3
  115. package/dist/mongodb/index.d.ts +3 -3
  116. package/dist/mongodb/index.js +1 -1
  117. package/dist/nodemailer-transport-7F3VLLBW.js +1 -0
  118. package/dist/nodemailer-transport-WAPZD3SJ.cjs +1 -0
  119. package/dist/postgres-auth-adapter-7BCPXNBO.js +1 -0
  120. package/dist/postgres-auth-adapter-HMXFUM5W.cjs +1 -0
  121. package/dist/redis-adapter-2E5AWMMA.cjs +1 -0
  122. package/dist/redis-adapter-GFH74CF4.js +1 -0
  123. package/dist/rest/index.cjs +1 -1
  124. package/dist/rest/index.d.cts +4 -4
  125. package/dist/rest/index.d.ts +4 -4
  126. package/dist/rest/index.js +1 -1
  127. package/dist/schema-FNIDQKIJ.cjs +1 -0
  128. package/dist/schema-KD736QFN.js +1 -0
  129. package/dist/sqlite-adapter-HL53RLSN.cjs +1 -0
  130. package/dist/sqlite-adapter-TT6ZASDG.js +1 -0
  131. package/dist/templates/index.cjs +1 -1
  132. package/dist/templates/index.d.cts +2 -2
  133. package/dist/templates/index.d.ts +2 -2
  134. package/dist/templates/index.js +1 -1
  135. package/dist/trpc/index.cjs +1 -1
  136. package/dist/trpc/index.d.cts +3 -3
  137. package/dist/trpc/index.d.ts +3 -3
  138. package/dist/trpc/index.js +1 -1
  139. package/dist/{types-DxaK39ix.d.cts → types-C3QFX0l6.d.cts} +4 -0
  140. package/dist/{types-DxaK39ix.d.ts → types-C3QFX0l6.d.ts} +4 -0
  141. package/dist/{types-6ShQp2EM.d.cts → types-CKWnrUAh.d.ts} +23 -2
  142. package/dist/{types-BCOhfwHC.d.ts → types-CdwfDpyW.d.cts} +23 -2
  143. package/dist/ws/index.cjs +1 -1
  144. package/dist/ws/index.js +1 -1
  145. package/package.json +3 -11
  146. package/dist/WebhookService-BcuD8tnn.d.cts +0 -143
  147. package/dist/WebhookService-CFe6Zd0_.d.cts +0 -143
  148. package/dist/WebhookService-CGxHtw7E.d.cts +0 -143
  149. package/dist/WebhookService-CNC1lYz7.d.ts +0 -143
  150. package/dist/WebhookService-CVXmjbtQ.d.cts +0 -143
  151. package/dist/WebhookService-D5PSI5t6.d.cts +0 -143
  152. package/dist/WebhookService-DPCCn_12.d.ts +0 -143
  153. package/dist/WebhookService-Dk1lzSrG.d.cts +0 -143
  154. package/dist/WebhookService-Dncnbgm9.d.cts +0 -143
  155. package/dist/WebhookService-I6hdue2Y.d.ts +0 -143
  156. package/dist/WebhookService-KnQ2UDlW.d.ts +0 -143
  157. package/dist/WebhookService-UY5p89Bj.d.ts +0 -143
  158. package/dist/WebhookService-YZXBCRXA.d.ts +0 -143
  159. package/dist/WebhookService-fk0FGRlk.d.ts +0 -143
  160. package/dist/WebhookService-vsFnWrOh.d.ts +0 -143
  161. package/dist/WebhookService-zrDmAx7L.d.cts +0 -143
  162. package/dist/auth-session-DHVGXHOH.cjs +0 -1
  163. package/dist/auth-session-O7IIH7EP.js +0 -1
  164. package/dist/base-B--L0lCn.d.cts +0 -218
  165. package/dist/base-B-i-tjm1.d.ts +0 -218
  166. package/dist/base-B-siit_y.d.cts +0 -218
  167. package/dist/base-B8SyZI4D.d.ts +0 -218
  168. package/dist/base-BCgFt3Yx.d.ts +0 -218
  169. package/dist/base-BHRGJ40F.d.cts +0 -218
  170. package/dist/base-BVoDPNjJ.d.cts +0 -218
  171. package/dist/base-BaOJ5uWd.d.cts +0 -218
  172. package/dist/base-BfPaVEAE.d.cts +0 -218
  173. package/dist/base-BxrX5EPU.d.cts +0 -218
  174. package/dist/base-CAb9EYQs.d.ts +0 -218
  175. package/dist/base-CcZIEll-.d.ts +0 -218
  176. package/dist/base-CyG7aF1e.d.cts +0 -218
  177. package/dist/base-DOImeJ-F.d.ts +0 -218
  178. package/dist/base-DbnwE42-.d.cts +0 -218
  179. package/dist/base-NyiSsD-n.d.ts +0 -218
  180. package/dist/base-OYfoYPYP.d.ts +0 -218
  181. package/dist/base-xflndGDO.d.ts +0 -218
  182. package/dist/bcryptjs-WIQSWJGK.cjs +0 -1
  183. package/dist/bcryptjs-ZEEHSMAG.js +0 -2
  184. package/dist/better-sqlite3-5IISPX34.cjs +0 -1
  185. package/dist/better-sqlite3-B34RIU4C.js +0 -2
  186. package/dist/bootstrap-E24SGUJP.cjs +0 -1
  187. package/dist/bootstrap-PG2LGDLB.js +0 -1
  188. package/dist/bootstrap-QQ6D3OYG.js +0 -1
  189. package/dist/bootstrap-QVKSKXJF.cjs +0 -1
  190. package/dist/bootstrap-RILR44UM.cjs +0 -1
  191. package/dist/bootstrap-YD3GLTWX.cjs +0 -1
  192. package/dist/bootstrap-YFVE7MRG.js +0 -1
  193. package/dist/bootstrap-ZRRUPRUR.js +0 -1
  194. package/dist/bowser-SB3ZUPO4.js +0 -11
  195. package/dist/bowser-VX6B6ZSE.cjs +0 -10
  196. package/dist/chokidar-5RVQZVHP.cjs +0 -5
  197. package/dist/chokidar-BOYGRT4Q.js +0 -6
  198. package/dist/chunk-22RXJ442.js +0 -57
  199. package/dist/chunk-262YP5XA.cjs +0 -1
  200. package/dist/chunk-2FSOHXOU.cjs +0 -56
  201. package/dist/chunk-2HA6EKXX.js +0 -24
  202. package/dist/chunk-2OS5Y4LE.cjs +0 -1
  203. package/dist/chunk-2PXXQKN3.cjs +0 -3
  204. package/dist/chunk-2SPWRQ5O.js +0 -122
  205. package/dist/chunk-32QY56XF.js +0 -122
  206. package/dist/chunk-355R4LS5.cjs +0 -56
  207. package/dist/chunk-35IVNLMA.js +0 -122
  208. package/dist/chunk-35PGCW3S.cjs +0 -1
  209. package/dist/chunk-3GXLOYM3.js +0 -2
  210. package/dist/chunk-3KZXF4US.js +0 -2
  211. package/dist/chunk-3LAWUINR.cjs +0 -1
  212. package/dist/chunk-3NSZZCOJ.js +0 -2
  213. package/dist/chunk-3O3AVMWM.cjs +0 -1
  214. package/dist/chunk-3TAUNYEM.js +0 -8
  215. package/dist/chunk-3U6MKWET.cjs +0 -120
  216. package/dist/chunk-3VXEK5ZW.cjs +0 -1
  217. package/dist/chunk-47CXBWMA.js +0 -2
  218. package/dist/chunk-4BMWWGJN.js +0 -384
  219. package/dist/chunk-4NTIK6DF.cjs +0 -2
  220. package/dist/chunk-4YCI3HBD.js +0 -3
  221. package/dist/chunk-4ZWLNGLS.js +0 -2
  222. package/dist/chunk-5A7E7N4B.cjs +0 -431
  223. package/dist/chunk-5ZEYOFAK.js +0 -2
  224. package/dist/chunk-6DD4J7LI.js +0 -2
  225. package/dist/chunk-6E44MQQ5.js +0 -115
  226. package/dist/chunk-6GGPY7U2.js +0 -4
  227. package/dist/chunk-6LWF5MPL.js +0 -20
  228. package/dist/chunk-6MNLRAKM.cjs +0 -121
  229. package/dist/chunk-6NBZDW53.js +0 -133
  230. package/dist/chunk-6TPICJ2L.js +0 -7
  231. package/dist/chunk-73D2PNHD.cjs +0 -7
  232. package/dist/chunk-73Y63IPP.js +0 -57
  233. package/dist/chunk-7ACHOBWY.cjs +0 -13
  234. package/dist/chunk-7DUKWHRN.cjs +0 -1
  235. package/dist/chunk-7GGZA5YU.cjs +0 -2
  236. package/dist/chunk-7JWQ2PZP.cjs +0 -1
  237. package/dist/chunk-7K6ZUNJM.js +0 -4
  238. package/dist/chunk-7KLEANTO.cjs +0 -1
  239. package/dist/chunk-7LLCXY5O.cjs +0 -19
  240. package/dist/chunk-7MNDQU6K.js +0 -8
  241. package/dist/chunk-7NH7H3WA.js +0 -10
  242. package/dist/chunk-7WMMKGEO.cjs +0 -1
  243. package/dist/chunk-A35ZP72D.cjs +0 -132
  244. package/dist/chunk-A3IOQOV6.js +0 -2
  245. package/dist/chunk-A3XVL6ED.cjs +0 -3
  246. package/dist/chunk-A7LZ6T42.cjs +0 -1
  247. package/dist/chunk-APDQ6ZTG.cjs +0 -120
  248. package/dist/chunk-ATI2UZ7U.js +0 -2
  249. package/dist/chunk-AWQGDMOE.js +0 -3
  250. package/dist/chunk-B3BSVEFC.cjs +0 -3
  251. package/dist/chunk-B4AC23SG.js +0 -122
  252. package/dist/chunk-BAVN7VDR.cjs +0 -1
  253. package/dist/chunk-BCEE4NBZ.cjs +0 -2
  254. package/dist/chunk-BD6XHMMM.cjs +0 -2
  255. package/dist/chunk-BUNLC3II.cjs +0 -1
  256. package/dist/chunk-C7QCZX7X.js +0 -2
  257. package/dist/chunk-CHYVUWZ3.js +0 -2
  258. package/dist/chunk-CIVA6SKW.js +0 -2
  259. package/dist/chunk-CNHUCCQJ.js +0 -121
  260. package/dist/chunk-CRP6PSCE.js +0 -2
  261. package/dist/chunk-D6SDGHY6.js +0 -2
  262. package/dist/chunk-DI6TCZSE.js +0 -122
  263. package/dist/chunk-DORUYZQV.cjs +0 -1
  264. package/dist/chunk-DSHKQL3R.cjs +0 -121
  265. package/dist/chunk-DVWYO3KK.cjs +0 -1
  266. package/dist/chunk-E4H3ZZ7U.js +0 -4
  267. package/dist/chunk-EFKEVWAD.js +0 -4
  268. package/dist/chunk-EHWUALGH.cjs +0 -1
  269. package/dist/chunk-EI7FRSNY.js +0 -57
  270. package/dist/chunk-ELFQKQLL.js +0 -2
  271. package/dist/chunk-EML5FDUU.js +0 -2
  272. package/dist/chunk-EN65ZEK2.cjs +0 -2
  273. package/dist/chunk-EON4XLKQ.cjs +0 -1
  274. package/dist/chunk-EUQAOYEO.cjs +0 -121
  275. package/dist/chunk-EVAUBT7H.js +0 -57
  276. package/dist/chunk-EW424IBO.cjs +0 -1
  277. package/dist/chunk-EYHD7HZE.cjs +0 -1
  278. package/dist/chunk-EYYIPA5N.js +0 -432
  279. package/dist/chunk-EZIDQBXI.cjs +0 -1
  280. package/dist/chunk-F2O4QO5N.cjs +0 -383
  281. package/dist/chunk-F4ITQ6XQ.cjs +0 -3
  282. package/dist/chunk-FBWLSWZ4.js +0 -122
  283. package/dist/chunk-FDKU7HJX.js +0 -2
  284. package/dist/chunk-FG3IFGJP.cjs +0 -1
  285. package/dist/chunk-FGN6IMPY.cjs +0 -3
  286. package/dist/chunk-FK2BG4HU.js +0 -3
  287. package/dist/chunk-FLMUMPDE.js +0 -2
  288. package/dist/chunk-FLS2FJM6.cjs +0 -431
  289. package/dist/chunk-FP5UK272.cjs +0 -1
  290. package/dist/chunk-FSL3NLRT.cjs +0 -2
  291. package/dist/chunk-FUFS65Q5.js +0 -133
  292. package/dist/chunk-GIS6X43A.cjs +0 -3
  293. package/dist/chunk-GNEVCEJU.cjs +0 -3
  294. package/dist/chunk-GNOSG3PK.cjs +0 -1
  295. package/dist/chunk-GQGFNTDZ.js +0 -2
  296. package/dist/chunk-GTR7JAKP.cjs +0 -3
  297. package/dist/chunk-GV2IB4WQ.cjs +0 -56
  298. package/dist/chunk-GWIZT2P5.js +0 -57
  299. package/dist/chunk-H3FJ54KB.cjs +0 -121
  300. package/dist/chunk-HPIJI7TM.js +0 -3
  301. package/dist/chunk-HPYH7GTS.cjs +0 -1
  302. package/dist/chunk-HRAY65XH.js +0 -3
  303. package/dist/chunk-HTYVI2HK.cjs +0 -9
  304. package/dist/chunk-HY3EAWB2.js +0 -4
  305. package/dist/chunk-I6UJVO2P.js +0 -57
  306. package/dist/chunk-IKGVPXMK.js +0 -3
  307. package/dist/chunk-IQSF6XRV.js +0 -57
  308. package/dist/chunk-IXGDTAES.js +0 -4
  309. package/dist/chunk-J6V573PE.cjs +0 -1
  310. package/dist/chunk-JA44K75G.js +0 -2
  311. package/dist/chunk-JB4WG2YJ.cjs +0 -121
  312. package/dist/chunk-JCEJ4VTN.js +0 -20
  313. package/dist/chunk-JRUQ5ABB.js +0 -4
  314. package/dist/chunk-JV4HJBXW.js +0 -14
  315. package/dist/chunk-JZ7Z6WC2.cjs +0 -3
  316. package/dist/chunk-K5XGP57D.cjs +0 -19
  317. package/dist/chunk-K73HOMQY.cjs +0 -56
  318. package/dist/chunk-KEITOXIP.js +0 -2
  319. package/dist/chunk-KMFLHGD5.cjs +0 -1
  320. package/dist/chunk-KZHXYXSH.cjs +0 -10
  321. package/dist/chunk-L3Q64RUX.js +0 -3
  322. package/dist/chunk-LBLFU6KI.js +0 -57
  323. package/dist/chunk-LEBM6ZSZ.cjs +0 -10
  324. package/dist/chunk-LP3HRZGK.js +0 -57
  325. package/dist/chunk-LPFRMQFQ.js +0 -121
  326. package/dist/chunk-LQ3YZTPU.cjs +0 -15
  327. package/dist/chunk-LVBHOZZF.js +0 -4
  328. package/dist/chunk-LWM4WABU.js +0 -3
  329. package/dist/chunk-LY7N3UHH.cjs +0 -23
  330. package/dist/chunk-LYU44UNN.cjs +0 -56
  331. package/dist/chunk-M75VGFCI.js +0 -3
  332. package/dist/chunk-MCIZG4A3.cjs +0 -1
  333. package/dist/chunk-MDLJTZLV.cjs +0 -1
  334. package/dist/chunk-MFNN5DYG.cjs +0 -1
  335. package/dist/chunk-MJAODEFC.cjs +0 -121
  336. package/dist/chunk-MLCBSEBU.js +0 -2
  337. package/dist/chunk-MSC4G2HF.cjs +0 -2
  338. package/dist/chunk-MYHNTJLR.cjs +0 -56
  339. package/dist/chunk-N2YHO2WI.cjs +0 -3
  340. package/dist/chunk-N4FXLQE3.cjs +0 -132
  341. package/dist/chunk-N5POANYV.js +0 -2
  342. package/dist/chunk-N6MNQIQU.js +0 -123
  343. package/dist/chunk-NGNJSUGL.cjs +0 -1
  344. package/dist/chunk-NPBXLPOP.js +0 -3
  345. package/dist/chunk-NRE6VKL6.cjs +0 -121
  346. package/dist/chunk-O4YE57OS.cjs +0 -6
  347. package/dist/chunk-O7CBGP4N.cjs +0 -1
  348. package/dist/chunk-OBYAIJVU.js +0 -11
  349. package/dist/chunk-OJ3H4AQ2.cjs +0 -56
  350. package/dist/chunk-OLRCZ6E3.js +0 -2
  351. package/dist/chunk-ON5XJEPO.cjs +0 -3
  352. package/dist/chunk-OOVNTOZC.cjs +0 -56
  353. package/dist/chunk-OPTVCCQQ.cjs +0 -122
  354. package/dist/chunk-OT2Z4XBD.cjs +0 -1
  355. package/dist/chunk-P6JITOFF.js +0 -4
  356. package/dist/chunk-PFKVHUOT.js +0 -432
  357. package/dist/chunk-PFTBTWSC.cjs +0 -1
  358. package/dist/chunk-PITMDQYN.cjs +0 -18
  359. package/dist/chunk-PTPVFLET.js +0 -20
  360. package/dist/chunk-PYUWSKKP.js +0 -57
  361. package/dist/chunk-PZDLPRJF.js +0 -4
  362. package/dist/chunk-Q5TFO66G.cjs +0 -1
  363. package/dist/chunk-QC4YXUBT.cjs +0 -383
  364. package/dist/chunk-QO5ZWQA3.cjs +0 -74
  365. package/dist/chunk-QUTYCUST.js +0 -4
  366. package/dist/chunk-QYN6C3FZ.cjs +0 -114
  367. package/dist/chunk-REKKBAQX.cjs +0 -56
  368. package/dist/chunk-REQ622YC.js +0 -3
  369. package/dist/chunk-RPRGGGIW.js +0 -11
  370. package/dist/chunk-RTNQP6BV.js +0 -2
  371. package/dist/chunk-RUJW47ZJ.js +0 -2
  372. package/dist/chunk-RVBSJ4UQ.cjs +0 -7
  373. package/dist/chunk-RXYCFZJC.cjs +0 -121
  374. package/dist/chunk-RYHOWZLK.js +0 -2
  375. package/dist/chunk-RYXLEFS5.js +0 -2
  376. package/dist/chunk-S2MZNEBQ.cjs +0 -1
  377. package/dist/chunk-S5HTTLN7.cjs +0 -2
  378. package/dist/chunk-S73YERS2.js +0 -57
  379. package/dist/chunk-SBNMXQNO.cjs +0 -2
  380. package/dist/chunk-SLMIYECU.js +0 -2
  381. package/dist/chunk-SMQ6736Y.js +0 -57
  382. package/dist/chunk-SRIXRJHL.js +0 -4
  383. package/dist/chunk-T3DJ3UTP.cjs +0 -121
  384. package/dist/chunk-TBHNE4VV.js +0 -2
  385. package/dist/chunk-TCFL3UWT.cjs +0 -2
  386. package/dist/chunk-TEY5LZ26.cjs +0 -56
  387. package/dist/chunk-TJZO7ZSX.cjs +0 -3
  388. package/dist/chunk-TKUNRCRH.js +0 -4
  389. package/dist/chunk-TQLCOMKC.js +0 -4
  390. package/dist/chunk-TRXYDWGE.cjs +0 -1
  391. package/dist/chunk-TS55CUNJ.js +0 -57
  392. package/dist/chunk-TYQYKKWJ.js +0 -16
  393. package/dist/chunk-U6KFONKM.js +0 -2
  394. package/dist/chunk-UFBJ3WOZ.js +0 -2
  395. package/dist/chunk-UNYXWPLZ.cjs +0 -2
  396. package/dist/chunk-UQRVQUVR.js +0 -2
  397. package/dist/chunk-UW5W35NP.js +0 -122
  398. package/dist/chunk-UWHWSWDE.js +0 -2
  399. package/dist/chunk-UWVBFRCW.js +0 -2
  400. package/dist/chunk-UZWYFEUN.js +0 -122
  401. package/dist/chunk-V4FAL7AG.js +0 -2
  402. package/dist/chunk-VI7WCO2J.cjs +0 -3
  403. package/dist/chunk-VOYPKTID.cjs +0 -1
  404. package/dist/chunk-VQ53TFYA.cjs +0 -1
  405. package/dist/chunk-VRZC4TTF.cjs +0 -1
  406. package/dist/chunk-VTOL3URF.js +0 -4
  407. package/dist/chunk-VVVCCB6R.js +0 -2
  408. package/dist/chunk-W2GPP6RB.js +0 -122
  409. package/dist/chunk-W45TLOOT.js +0 -2
  410. package/dist/chunk-WAVGRSE6.js +0 -2
  411. package/dist/chunk-WHOA7YJU.cjs +0 -1
  412. package/dist/chunk-WNRUPL26.js +0 -2
  413. package/dist/chunk-WPM6LFCY.js +0 -2
  414. package/dist/chunk-WXT2XW7T.js +0 -13
  415. package/dist/chunk-X473JI7Z.js +0 -75
  416. package/dist/chunk-X6HUA6EF.cjs +0 -20
  417. package/dist/chunk-XBQ6HV3T.cjs +0 -114
  418. package/dist/chunk-XDPLVJRO.js +0 -21
  419. package/dist/chunk-XDQVYCIR.cjs +0 -1
  420. package/dist/chunk-XFYSADHV.cjs +0 -2
  421. package/dist/chunk-XIAJQLGS.js +0 -2
  422. package/dist/chunk-XK6UB77Q.js +0 -4
  423. package/dist/chunk-XOR64WUQ.cjs +0 -19
  424. package/dist/chunk-XP7BXFXT.cjs +0 -121
  425. package/dist/chunk-Y2VHO66Q.cjs +0 -3
  426. package/dist/chunk-Y2YAKDEQ.js +0 -2
  427. package/dist/chunk-Y5O2OD7J.cjs +0 -3
  428. package/dist/chunk-YARB43JG.cjs +0 -56
  429. package/dist/chunk-YENNL5HG.js +0 -2
  430. package/dist/chunk-YGI5W4RS.js +0 -2
  431. package/dist/chunk-YLCEMVYY.cjs +0 -56
  432. package/dist/chunk-YSOM57GK.cjs +0 -3
  433. package/dist/chunk-YUUXFD73.js +0 -19
  434. package/dist/chunk-Z2SN2MYP.js +0 -122
  435. package/dist/chunk-Z3UVDGYS.cjs +0 -56
  436. package/dist/chunk-ZAKYTBEN.js +0 -3
  437. package/dist/chunk-ZHA446FA.cjs +0 -1
  438. package/dist/chunk-ZO3YB5DK.cjs +0 -1
  439. package/dist/chunk-ZOVH6QT5.cjs +0 -1
  440. package/dist/chunk-ZRIBWDYJ.js +0 -384
  441. package/dist/chunk-ZTLGK6R4.cjs +0 -12
  442. package/dist/chunk-ZUBJ6RLQ.cjs +0 -1
  443. package/dist/chunk-ZWDBPEXL.js +0 -115
  444. package/dist/client.d.cts +0 -1266
  445. package/dist/client.d.ts +0 -1266
  446. package/dist/d1-5ZQJOFDX.cjs +0 -1
  447. package/dist/d1-HPB6B253.js +0 -2
  448. package/dist/dist-es-3SSNUZST.cjs +0 -1
  449. package/dist/dist-es-64F22JL2.js +0 -2
  450. package/dist/dist-es-A5OF2STN.cjs +0 -2
  451. package/dist/dist-es-BOW5V247.cjs +0 -6
  452. package/dist/dist-es-CRIMATLL.cjs +0 -2
  453. package/dist/dist-es-DL3VLVP6.cjs +0 -1
  454. package/dist/dist-es-F2ZR55UK.js +0 -4
  455. package/dist/dist-es-IPSSZNFP.js +0 -1
  456. package/dist/dist-es-M2F7M27Y.js +0 -2
  457. package/dist/dist-es-M66JKZF5.js +0 -7
  458. package/dist/dist-es-OKLLRYI3.js +0 -2
  459. package/dist/dist-es-P25IKLBI.cjs +0 -1
  460. package/dist/dist-es-SRPWSAF4.cjs +0 -1
  461. package/dist/dist-es-SVHZDVUF.js +0 -3
  462. package/dist/dist-es-T2H2W5BX.cjs +0 -3
  463. package/dist/dist-es-WFI55HKT.js +0 -3
  464. package/dist/drizzle-orm-47ELDEM6.cjs +0 -1
  465. package/dist/drizzle-orm-XRTSOQJS.js +0 -1
  466. package/dist/event-streams-7NAWZW2I.js +0 -1
  467. package/dist/event-streams-JBMWCI2O.cjs +0 -1
  468. package/dist/fs-KWBRQ6T6.js +0 -1
  469. package/dist/fs-ZQYOJOIO.cjs +0 -1
  470. package/dist/index-8Ino7vKq.d.ts +0 -105
  471. package/dist/index-B9BFNOHd.d.cts +0 -105
  472. package/dist/index-ByOM1Y5x.d.ts +0 -105
  473. package/dist/index-C6xmtRio.d.cts +0 -105
  474. package/dist/index-CTI3K_uq.d.cts +0 -105
  475. package/dist/index-CTL4zv_u.d.ts +0 -105
  476. package/dist/index-CaDbioSg.d.ts +0 -105
  477. package/dist/index-CxA9uOv0.d.ts +0 -105
  478. package/dist/index-D6AXbuPI.d.ts +0 -105
  479. package/dist/index-DF0KDBaM.d.cts +0 -105
  480. package/dist/index-DG4Xu7gA.d.cts +0 -105
  481. package/dist/index-DS3DpJli.d.cts +0 -105
  482. package/dist/index-NGnJpSgf.d.ts +0 -105
  483. package/dist/index-Zrg3sZ6R.d.cts +0 -105
  484. package/dist/index-eHex8Iwj.d.ts +0 -105
  485. package/dist/index-rm7uyOK1.d.cts +0 -105
  486. package/dist/jsonwebtoken-DFB6ZBZA.cjs +0 -8
  487. package/dist/jsonwebtoken-OD67R5JS.js +0 -9
  488. package/dist/lib-5QYYN6ML.cjs +0 -12
  489. package/dist/lib-A2D63VXD.cjs +0 -1
  490. package/dist/lib-JQD2JAOO.js +0 -2
  491. package/dist/lib-XXYYUPMW.js +0 -13
  492. package/dist/loadSso-JY4WDQPS.cjs +0 -2
  493. package/dist/loadSso-UQR6545M.js +0 -3
  494. package/dist/local-6UUGBZ4M.js +0 -1
  495. package/dist/local-DPLKZQA3.js +0 -1
  496. package/dist/local-KR3AIGVA.cjs +0 -1
  497. package/dist/local-S5VA7IXE.cjs +0 -1
  498. package/dist/local-T7GISZBL.js +0 -1
  499. package/dist/local-ZYHV3J2K.cjs +0 -1
  500. package/dist/media-3Z6YW5J4.cjs +0 -1
  501. package/dist/media-E762GEHL.js +0 -1
  502. package/dist/mongo-auth-adapter-2H2AXDRH.cjs +0 -1
  503. package/dist/mongo-auth-adapter-EUHAYWJ6.cjs +0 -1
  504. package/dist/mongo-auth-adapter-FW7ATYQ6.js +0 -1
  505. package/dist/mongo-auth-adapter-GR2CFFEA.js +0 -1
  506. package/dist/mongo-auth-adapter-UOO2LZUJ.cjs +0 -1
  507. package/dist/mongo-auth-adapter-YWMEOC42.js +0 -1
  508. package/dist/nodemailer-IDML4L6W.cjs +0 -53
  509. package/dist/nodemailer-NITB45SS.js +0 -54
  510. package/dist/nodemailer-transport-3VWVUBM5.cjs +0 -1
  511. package/dist/nodemailer-transport-7RHATUKL.js +0 -1
  512. package/dist/nodemailer-transport-CHO2WKIY.js +0 -1
  513. package/dist/nodemailer-transport-ED2IXNGW.cjs +0 -1
  514. package/dist/postgres-auth-adapter-QKBNXVPT.js +0 -1
  515. package/dist/postgres-auth-adapter-SK3N3OSS.js +0 -1
  516. package/dist/postgres-auth-adapter-WMLM4UUC.cjs +0 -1
  517. package/dist/postgres-auth-adapter-ZO6HK5AK.cjs +0 -1
  518. package/dist/postgres-js-7YBZKGXG.cjs +0 -1
  519. package/dist/postgres-js-JLFIWOBH.js +0 -1
  520. package/dist/redis-adapter-EGMUN65D.cjs +0 -1
  521. package/dist/redis-adapter-EVK2SMKH.cjs +0 -1
  522. package/dist/redis-adapter-LY2NBSAG.js +0 -1
  523. package/dist/redis-adapter-QPCTMF55.js +0 -1
  524. package/dist/schema-RT6WSUYC.cjs +0 -1
  525. package/dist/schema-YFMSJK2P.js +0 -2
  526. package/dist/signin-N3T2KF5Q.js +0 -3
  527. package/dist/signin-VFBLX7EL.cjs +0 -2
  528. package/dist/sqlite-adapter-52PL52VU.js +0 -1
  529. package/dist/sqlite-adapter-KPSISY6E.cjs +0 -1
  530. package/dist/sqlite-adapter-MNNZZXGX.cjs +0 -1
  531. package/dist/sqlite-adapter-PI6SIY7O.js +0 -1
  532. package/dist/src-6LAUXXDM.cjs +0 -1
  533. package/dist/src-QBADSZV4.js +0 -1
  534. package/dist/sso-oidc-54BIRYR6.cjs +0 -2
  535. package/dist/sso-oidc-UB7G4END.js +0 -3
  536. package/dist/sts-WAA6I22C.js +0 -3
  537. package/dist/sts-YLXXIB3X.cjs +0 -2
  538. package/dist/types-B5Qz1svz.d.cts +0 -822
  539. package/dist/types-B9oXBEKI.d.cts +0 -330
  540. package/dist/types-B9oXBEKI.d.ts +0 -330
  541. package/dist/types-BRDBNacn.d.ts +0 -839
  542. package/dist/types-Bii0bhUV.d.cts +0 -329
  543. package/dist/types-Bii0bhUV.d.ts +0 -329
  544. package/dist/types-Bt2_ycUO.d.ts +0 -811
  545. package/dist/types-C4wXHImf.d.ts +0 -822
  546. package/dist/types-C8yIAV6K.d.cts +0 -839
  547. package/dist/types-CORUQhY-.d.ts +0 -839
  548. package/dist/types-Cdssrcbz.d.cts +0 -839
  549. package/dist/types-CjGqxBd3.d.cts +0 -330
  550. package/dist/types-CjGqxBd3.d.ts +0 -330
  551. package/dist/types-DBGR-eQl.d.cts +0 -839
  552. package/dist/types-DCWgPFmi.d.cts +0 -822
  553. package/dist/types-DROqAsr0.d.cts +0 -330
  554. package/dist/types-DROqAsr0.d.ts +0 -330
  555. package/dist/types-DlGSbh7I.d.cts +0 -297
  556. package/dist/types-DlGSbh7I.d.ts +0 -297
  557. package/dist/types-DsF64Wrc.d.cts +0 -811
  558. package/dist/types-IeKFn7Ky.d.ts +0 -839
  559. package/dist/types-QglJ7PwT.d.cts +0 -839
  560. package/dist/types-ZrjEVWfi.d.ts +0 -811
  561. package/dist/types-dEy5JxvN.d.ts +0 -822
  562. package/dist/types-tVJc9YbX.d.cts +0 -811
  563. package/dist/types-zt5qIvje.d.ts +0 -839
@@ -1,6 +0,0 @@
1
- 'use strict';var chunkBUNLC3II_cjs=require('./chunk-BUNLC3II.cjs'),Q=require('crypto');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Q__default=/*#__PURE__*/_interopDefault(Q);chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var N=null,I=null;function xe(e){N=e;}async function Ee(){if(N)try{let e=await N.findOne({collection:"_globals_system",where:{}});if(e){I={appSecret:e.appSecret||null,encryptionKey:e.encryptionKey||null,sessionConfig:e.sessionMaxAge||e.maxSessionsPerUser?{maxAge:(e.sessionMaxAge||7)*24*60*60*1e3,maxSessionsPerUser:e.maxSessionsPerUser||3}:null};return}}catch{}I={appSecret:process.env.APP_SECRET||"development-secret-key",encryptionKey:null,sessionConfig:null};}function Z(){return I?.appSecret?I.appSecret:process.env.APP_SECRET||"development-secret-key"}function Pe(){if(I?.encryptionKey)return I.encryptionKey;let e=Z();return Q__default.default.createHash("sha256").update(e).digest("hex")}function z(){return I?.sessionConfig?I.sessionConfig:{maxAge:10080*60*1e3,maxSessionsPerUser:3}}chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var ee=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,te=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,re=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function se(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){ne(e);return}return t}function ne(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);}function R(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case "true":return true;case "false":return false;case "undefined":return;case "null":return null;case "nan":return Number.NaN;case "infinity":return Number.POSITIVE_INFINITY;case "-infinity":return Number.NEGATIVE_INFINITY}if(!re.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(ee.test(e)||te.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,se)}return JSON.parse(e)}catch(o){if(t.strict)throw o;return e}}chunkBUNLC3II_cjs.h();function ie(e){return !e||typeof e.then!="function"?Promise.resolve(e):e}function p(e,...t){try{return ie(e(...t))}catch(n){return Promise.reject(n)}}function oe(e){let t=typeof e;return e===null||t!=="object"&&t!=="function"}function ae(e){let t=Object.getPrototypeOf(e);return !t||t.isPrototypeOf(Object)}function M(e){if(oe(e))return String(e);if(ae(e)||Array.isArray(e))return JSON.stringify(e);if(typeof e.toJSON=="function")return M(e.toJSON());throw new Error("[unstorage] Cannot stringify value!")}var k="base64:";function F(e){return typeof e=="string"?e:k+ce(e)}function L(e){return typeof e!="string"||!e.startsWith(k)?e:ue(e.slice(k.length))}function ue(e){return globalThis.Buffer?Buffer.from(e,"base64"):Uint8Array.from(globalThis.atob(e),t=>t.codePointAt(0))}function ce(e){return globalThis.Buffer?Buffer.from(e).toString("base64"):globalThis.btoa(String.fromCodePoint(...e))}function v(e){return e&&e.split("?")[0]?.replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,"")||""}function U(...e){return v(e.join(":"))}function _(e){return e=v(e),e?e+":":""}function j(e,t){if(t===void 0)return true;let n=0,o=e.indexOf(":");for(;o>-1;)n++,o=e.indexOf(":",o+1);return n<=t}function W(e,t){return t?e.startsWith(t)&&e[e.length-1]!=="$":e[e.length-1]!=="$"}var le="memory",fe=()=>{let e=new Map;return {name:le,getInstance:()=>e,hasItem(t){return e.has(t)},getItem(t){return e.get(t)??null},getItemRaw(t){return e.get(t)??null},setItem(t,n){e.set(t,n);},setItemRaw(t,n){e.set(t,n);},removeItem(t){e.delete(t);},getKeys(){return [...e.keys()]},clear(){e.clear();},dispose(){e.clear();}}};function D(e={}){let t={mounts:{"":e.driver||fe()},mountpoints:[""],watching:false,watchListeners:[],unwatch:{}},n=r=>{for(let s of t.mountpoints)if(r.startsWith(s))return {base:s,relativeKey:r.slice(s.length),driver:t.mounts[s]};return {base:"",relativeKey:r,driver:t.mounts[""]}},o=(r,s)=>t.mountpoints.filter(i=>i.startsWith(r)||s&&r.startsWith(i)).map(i=>({relativeBase:r.length>i.length?r.slice(i.length):void 0,mountpoint:i,driver:t.mounts[i]})),c=(r,s)=>{if(t.watching){s=v(s);for(let i of t.watchListeners)i(r,s);}},u=async()=>{if(!t.watching){t.watching=true;for(let r in t.mounts)t.unwatch[r]=await H(t.mounts[r],c,r);}},d=async()=>{if(t.watching){for(let r in t.unwatch)await t.unwatch[r]();t.unwatch={},t.watching=false;}},g=(r,s,i)=>{let a=new Map,l=f=>{let y=a.get(f.base);return y||(y={driver:f.driver,base:f.base,items:[]},a.set(f.base,y)),y};for(let f of r){let y=typeof f=="string",w=v(y?f:f.key),T=y?void 0:f.value,A=y||!f.options?s:{...s,...f.options},b=n(w);l(b).items.push({key:w,value:T,relativeKey:b.relativeKey,options:A});}return Promise.all([...a.values()].map(f=>i(f))).then(f=>f.flat())},m={hasItem(r,s={}){r=v(r);let{relativeKey:i,driver:a}=n(r);return p(a.hasItem,i,s)},getItem(r,s={}){r=v(r);let{relativeKey:i,driver:a}=n(r);return p(a.getItem,i,s).then(l=>R(l))},getItems(r,s={}){return g(r,s,i=>i.driver.getItems?p(i.driver.getItems,i.items.map(a=>({key:a.relativeKey,options:a.options})),s).then(a=>a.map(l=>({key:U(i.base,l.key),value:R(l.value)}))):Promise.all(i.items.map(a=>p(i.driver.getItem,a.relativeKey,a.options).then(l=>({key:a.key,value:R(l)})))))},getItemRaw(r,s={}){r=v(r);let{relativeKey:i,driver:a}=n(r);return a.getItemRaw?p(a.getItemRaw,i,s):p(a.getItem,i,s).then(l=>L(l))},async setItem(r,s,i={}){if(s===void 0)return m.removeItem(r);r=v(r);let{relativeKey:a,driver:l}=n(r);l.setItem&&(await p(l.setItem,a,M(s),i),l.watch||c("update",r));},async setItems(r,s){await g(r,s,async i=>{if(i.driver.setItems)return p(i.driver.setItems,i.items.map(a=>({key:a.relativeKey,value:M(a.value),options:a.options})),s);i.driver.setItem&&await Promise.all(i.items.map(a=>p(i.driver.setItem,a.relativeKey,M(a.value),a.options)));});},async setItemRaw(r,s,i={}){if(s===void 0)return m.removeItem(r,i);r=v(r);let{relativeKey:a,driver:l}=n(r);if(l.setItemRaw)await p(l.setItemRaw,a,s,i);else if(l.setItem)await p(l.setItem,a,F(s),i);else return;l.watch||c("update",r);},async removeItem(r,s={}){typeof s=="boolean"&&(s={removeMeta:s}),r=v(r);let{relativeKey:i,driver:a}=n(r);a.removeItem&&(await p(a.removeItem,i,s),(s.removeMeta||s.removeMata)&&await p(a.removeItem,i+"$",s),a.watch||c("remove",r));},async getMeta(r,s={}){typeof s=="boolean"&&(s={nativeOnly:s}),r=v(r);let{relativeKey:i,driver:a}=n(r),l=Object.create(null);if(a.getMeta&&Object.assign(l,await p(a.getMeta,i,s)),!s.nativeOnly){let f=await p(a.getItem,i+"$",s).then(y=>R(y));f&&typeof f=="object"&&(typeof f.atime=="string"&&(f.atime=new Date(f.atime)),typeof f.mtime=="string"&&(f.mtime=new Date(f.mtime)),Object.assign(l,f));}return l},setMeta(r,s,i={}){return this.setItem(r+"$",s,i)},removeMeta(r,s={}){return this.removeItem(r+"$",s)},async getKeys(r,s={}){r=_(r);let i=o(r,true),a=[],l=[],f=true;for(let w of i){w.driver.flags?.maxDepth||(f=false);let T=await p(w.driver.getKeys,w.relativeBase,s);for(let A of T){let b=w.mountpoint+v(A);a.some(q=>b.startsWith(q))||l.push(b);}a=[w.mountpoint,...a.filter(A=>!A.startsWith(w.mountpoint))];}let y=s.maxDepth!==void 0&&!f;return l.filter(w=>(!y||j(w,s.maxDepth))&&W(w,r))},async clear(r,s={}){r=_(r),await Promise.all(o(r,false).map(async i=>{if(i.driver.clear)return p(i.driver.clear,i.relativeBase,s);if(i.driver.removeItem){let a=await i.driver.getKeys(i.relativeBase||"",s);return Promise.all(a.map(l=>i.driver.removeItem(l,s)))}}));},async dispose(){await Promise.all(Object.values(t.mounts).map(r=>V(r)));},async watch(r){return await u(),t.watchListeners.push(r),async()=>{t.watchListeners=t.watchListeners.filter(s=>s!==r),t.watchListeners.length===0&&await d();}},async unwatch(){t.watchListeners=[],await d();},mount(r,s){if(r=_(r),r&&t.mounts[r])throw new Error(`already mounted at ${r}`);return r&&(t.mountpoints.push(r),t.mountpoints.sort((i,a)=>a.length-i.length)),t.mounts[r]=s,t.watching&&Promise.resolve(H(s,c,r)).then(i=>{t.unwatch[r]=i;}).catch(console.error),m},async unmount(r,s=true){r=_(r),!(!r||!t.mounts[r])&&(t.watching&&r in t.unwatch&&(t.unwatch[r]?.(),delete t.unwatch[r]),s&&await V(t.mounts[r]),t.mountpoints=t.mountpoints.filter(i=>i!==r),delete t.mounts[r]);},getMount(r=""){r=v(r)+":";let s=n(r);return {driver:s.driver,base:s.base}},getMounts(r="",s={}){return r=v(r),o(r,s.parents).map(a=>({driver:a.driver,base:a.mountpoint}))},keys:(r,s={})=>m.getKeys(r,s),get:(r,s={})=>m.getItem(r,s),set:(r,s,i={})=>m.setItem(r,s,i),has:(r,s={})=>m.hasItem(r,s),del:(r,s={})=>m.removeItem(r,s),remove:(r,s={})=>m.removeItem(r,s)};return m}function H(e,t,n){return e.watch?e.watch((o,c)=>t(o,n+c)):()=>{}}async function V(e){typeof e.dispose=="function"&&await p(e.dispose);}chunkBUNLC3II_cjs.h();var de="memory",J=()=>{let e=new Map;return {name:de,getInstance:()=>e,hasItem(t){return e.has(t)},getItem(t){return e.get(t)??null},getItemRaw(t){return e.get(t)??null},setItem(t,n){e.set(t,n);},setItemRaw(t,n){e.set(t,n);},removeItem(t){e.delete(t);},getKeys(){return [...e.keys()]},clear(){e.clear();},dispose(){e.clear();}}};var G=z(),x={absoluteMaxAge:G.maxAge,maxSessionsPerUser:G.maxSessionsPerUser,refreshThreshold:300*1e3,activityDebounce:30*1e3,pollInterval:30*1e3},B="kyro-session",S=null;function O(){return globalThis.DB}function me(){let e=null,t=()=>(e||(e=(async()=>{let u=O();u?.prepare&&await u.prepare(`CREATE TABLE IF NOT EXISTS kyro_session_store (
2
- key TEXT PRIMARY KEY,
3
- value TEXT,
4
- expires_at INTEGER
5
- )`).run();})()),e),n=()=>Date.now(),o=async(u,d=[])=>{let g=O();if(!g?.prepare)return null;let m=g.prepare(u);return d.length>0?m.bind(...d):m},c=async(u,d=[])=>{await t();let g=await o(u,d);g&&await g.run();};return {name:"kyro-d1",options:{},getInstance:()=>null,async hasItem(u){await t();let d=await o("SELECT expires_at FROM kyro_session_store WHERE key = ?",[u]);if(!d)return false;let g=await d.first();return g?!(g.expires_at&&g.expires_at<n()):false},async getItem(u){await t();let d=await o("SELECT value, expires_at FROM kyro_session_store WHERE key = ?",[u]);if(!d)return null;let g=await d.first();return g?g.expires_at&&g.expires_at<n()?(await o("DELETE FROM kyro_session_store WHERE key = ?",[u]),null):g.value:null},async setItem(u,d,g={}){let m=g?.ttl?Number(g.ttl):null,r=m?n()+m*1e3:null,s=typeof d=="string"?d:JSON.stringify(d);await c(`INSERT INTO kyro_session_store (key, value, expires_at) VALUES (?, ?, ?)
6
- ON CONFLICT(key) DO UPDATE SET value = excluded.value, expires_at = excluded.expires_at`,[u,s,r]);},async removeItem(u){await c("DELETE FROM kyro_session_store WHERE key = ?",[u]);},async getKeys(u=""){await t();let d=await o("SELECT key FROM kyro_session_store WHERE key LIKE ?",[u+"%"]);return d?((await d.all()).results||[]).map(m=>m.key):[]},async clear(){await c("DELETE FROM kyro_session_store");},async dispose(){},async getMeta(){return {}},async setMeta(){},async removeMeta(){}}}async function E(){if(S)return S;if(!(typeof window>"u"&&(typeof process<"u"&&(process.env?.CLOUDFLARE||process.env?.CF_PAGES)||O())))try{let{default:t}=await import('./fs-ZQYOJOIO.cjs');return S=D({driver:t({base:".astro/sessions"})}),S}catch{}return O()?.prepare?(S=D({driver:me()}),S):(S=D({driver:J()}),S)}function pe(){return Q__default.default.randomUUID()}function X(e){let t="Unknown",n="Unknown",o="Unknown";return e.includes("Firefox")?t="Firefox":e.includes("Edg/")?t="Edge":e.includes("Chrome")?t="Chrome":e.includes("Safari")&&!e.includes("Chrome")&&(t="Safari"),e.includes("iPhone")?(n="iPhone",o="iOS"):e.includes("iPad")?(n="iPad",o="iOS"):e.includes("Mac")?(n="MacBook",o="macOS"):e.includes("Windows")?(n="Windows PC",o="Windows"):e.includes("Linux")?(n="Linux PC",o="Linux"):e.includes("Android")&&(n="Android Phone",o="Android"),{browser:t,device:n,platform:o}}function ve(e){if(!e?.userAgent)return "Session";let{browser:t,device:n}=X(e.userAgent);return `${n} - ${t}`}function ye(e){let t=e.headers.get("Cookie");return t&&Object.fromEntries(t.split("; ").map(o=>o.split("=")))[B]||null}function Y(e){let t=e.headers.get("x-forwarded-for");return t?t.split(",")[0].trim():e.headers.get("x-real-ip")||"unknown"}function Le(e,t){let o=process.env.NODE_ENV==="production"?"Secure; ":"",c=new Headers(e.headers);return c.append("Set-Cookie",`${B}=${t}; HttpOnly; Path=/; Max-Age=${x.absoluteMaxAge/1e3}; SameSite=Strict; ${o}`),new Response(e.body,{status:e.status,statusText:e.statusText,headers:c})}function Ue(e){let n=process.env.NODE_ENV==="production"?"Secure; ":"",o=new Headers(e.headers);return o.append("Set-Cookie",`${B}=; HttpOnly; Path=/; Max-Age=0; Expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=Strict; ${n}`),new Response(e.body,{status:e.status,statusText:e.statusText,headers:o})}async function C(e){return await(await E()).getItem(`user:${e}`)||[]}async function $(e,t){let n=await E();t.length>0?await n.setItem(`user:${e}`,t):await n.removeItem(`user:${e}`);}async function je(e,t){let n=await E(),o=await C(e.id);for(;o.length>=x.maxSessionsPerUser;){let s=o.shift();s&&await n.removeItem(`session:${s}`);}let c=pe(),u=Date.now(),d=t?.headers.get("user-agent"),g=t?Y(t):"unknown",m=d?{userAgent:d,ip:g,...X(d)}:{ip:g},r={id:c,userId:e.id,email:e.email,role:e.role,tenantId:e.tenantId,permissions:e.permissions,createdAt:u,expiresAt:u+x.absoluteMaxAge,lastActivityAt:u,deviceInfo:m,sessionName:ve(m)};return await n.setItem(`session:${c}`,r,{ttl:Math.floor(x.absoluteMaxAge/1e3)}),o.push(c),await $(e.id,o),c}async function P(e){return await(await E()).getItem(`session:${e}`)||null}async function we(e){let t=await P(e);return t?t.expiresAt<Date.now()?(await Ie(e),{valid:false,reason:"Session expired"}):{valid:true}:{valid:false,reason:"Session not found"}}async function he(e,t){let n=await E(),o=await P(e);if(!o)return null;let c=Date.now(),u=o.expiresAt-c,d=o.deviceInfo;if(t){let r=Y(t);r!==o.deviceInfo?.ip&&(d={...o.deviceInfo,ip:r});}let g={...o,lastActivityAt:c,expiresAt:u<x.refreshThreshold?c+x.absoluteMaxAge:o.expiresAt,deviceInfo:d},m=u<x.refreshThreshold?x.absoluteMaxAge:void 0;return await n.setItem(`session:${e}`,g,m?{ttl:Math.floor(m/1e3)}:void 0),g}async function Ie(e){let t=await E(),n=await P(e);if(n){let c=(await C(n.userId)).filter(u=>u!==e);await $(n.userId,c);}await t.removeItem(`session:${e}`),await t.removeItem(`activity:${e}`);}async function We(e){let t=await C(e),n=await E();for(let o of t)await n.removeItem(`session:${o}`),await n.removeItem(`activity:${o}`);await $(e,[]);}async function He(e,t){let n=await C(e),o=[];for(let c of n){let u=await P(c);u&&o.push({id:u.id,sessionName:u.sessionName||"Session",deviceInfo:u.deviceInfo,createdAt:u.createdAt,lastActivityAt:u.lastActivityAt,currentSession:u.id===t});}return o.sort((c,u)=>u.lastActivityAt-c.lastActivityAt),o}async function Ve(e,t){let n=await P(e);return n?(await(await E()).setItem(`session:${e}`,{...n,sessionName:t}),true):false}async function Je(e){let t=ye(e);if(!t||!(await we(t)).valid)return null;let o=await P(t);return o?(await he(t,e),o):null}exports.a=xe;exports.b=Ee;exports.c=Z;exports.d=Pe;exports.e=z;exports.f=D;exports.g=x;exports.h=ye;exports.i=Y;exports.j=Le;exports.k=Ue;exports.l=je;exports.m=P;exports.n=we;exports.o=he;exports.p=Ie;exports.q=We;exports.r=He;exports.s=Ve;exports.t=Je;
@@ -1 +0,0 @@
1
- 'use strict';var chunkOJ3H4AQ2_cjs=require('./chunk-OJ3H4AQ2.cjs'),chunk3O3AVMWM_cjs=require('./chunk-3O3AVMWM.cjs'),chunkDSHKQL3R_cjs=require('./chunk-DSHKQL3R.cjs'),chunkOPTVCCQQ_cjs=require('./chunk-OPTVCCQQ.cjs'),chunkN4FXLQE3_cjs=require('./chunk-N4FXLQE3.cjs'),chunkQYN6C3FZ_cjs=require('./chunk-QYN6C3FZ.cjs'),chunkEYHD7HZE_cjs=require('./chunk-EYHD7HZE.cjs'),chunkBUNLC3II_cjs=require('./chunk-BUNLC3II.cjs'),w=require('kyro:config');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var w__default=/*#__PURE__*/_interopDefault(w);chunkBUNLC3II_cjs.h();exports.a=null;var l=null;async function b(){if(!exports.a){if(globalThis.__KYRO_INSTANCE__)try{await globalThis.__KYRO_INSTANCE__.shutdown();}catch{}try{let e=w__default.default.default||w__default.default,t=e.adapter,o=t&&!t.dialect&&typeof t.connect=="function";if(globalThis.DB&&(!t||o)){let s=globalThis.DB;e.adapter=new chunkN4FXLQE3_cjs.c({type:"sqlite",client:s}),chunkOJ3H4AQ2_cjs.K.info("Hot-swapped to D1 DrizzleAdapter");}exports.a=chunkOJ3H4AQ2_cjs.H(e),await exports.a.init();let a=e.adapter,p=a&&a.dialect&&(a.dialect==="postgres"||a.dialect==="sqlite"),c=a&&a.dialect==="mongodb",n;if(p)a.dialect==="postgres"?n=new chunkQYN6C3FZ_cjs.a({db:a.client}):a.dialect==="sqlite"&&(n=new chunkDSHKQL3R_cjs.hb({db:a.rawClient||a.client}));else if(o&&!globalThis.DB){let s=process.env.KYRO_AUTH_DB_PATH||"./data/auth.db";n=new chunkOPTVCCQQ_cjs.a({path:s});}else c&&(n=new chunkEYHD7HZE_cjs.a({adapter:a}));if(n?.connect)try{await n.connect();}catch(s){chunkOJ3H4AQ2_cjs.K.warn("Auth connect warning:",s);}try{await exports.a.loadSettings();}catch(s){chunkOJ3H4AQ2_cjs.K.warn("loadSettings warning:",s);}try{await chunk3O3AVMWM_cjs.e(n);}catch(s){chunkOJ3H4AQ2_cjs.K.warn("autoBootstrap warning:",s);}globalThis.__KYRO_INSTANCE__=exports.a;}catch(e){throw exports.a=null,l=null,chunkOJ3H4AQ2_cjs.K.error("Init failed, will retry:",e),e}}}async function E(e){let t=globalThis.DB?globalThis:null;try{let{env:o}=await import('cloudflare:workers');o&&(t=o);}catch{}if(e)try{t=e.locals?.cfContext?.env||e?.env||t;}catch{}if(!t)try{t=process.env;}catch{}t?.DB&&(globalThis.DB=t.DB),t?.STORAGE_BUCKET&&(globalThis.STORAGE_BUCKET=t.STORAGE_BUCKET),l||(l=b()),await l;}var _={graphqlEnabled:false,trpcEnabled:false,wsEnabled:false,requireAuth:false};function T(e){return exports.a?exports.a.settings?.access?.apiAccess?.[e]??_[e]??true:_[e]??true}var R=async e=>{if(!exports.a)try{await Promise.race([E(e),new Promise((t,o)=>setTimeout(()=>o(new Error("Initialization timeout")),3e4))]);}catch(t){return console.error("[Kyro API] Warm error:",t?.stack||t?.message||t),new Response(JSON.stringify({error:"Service Unavailable",message:"Kyro CMS is still starting up. Please try again in a moment."}),{status:503,headers:{"Content-Type":"application/json","Retry-After":"5"}})}try{let o=new URL(e.request.url).pathname,a=__KYRO_API_PATH__;if(o===`${a}/graphql`&&typeof exports.a.getGraphQL=="function"){if(!T("graphqlEnabled"))return new Response(JSON.stringify({error:"GraphQL is disabled"}),{status:503,headers:{"Content-Type":"application/json"}});let n=await exports.a.getGraphQL().fetch(e.request,e.locals);return new Response(n.body,n)}if(o.startsWith(`${a}/trpc/`)&&typeof exports.a.getTRPC=="function"){if(!T("trpcEnabled"))return new Response(JSON.stringify({error:"tRPC is disabled"}),{status:503,headers:{"Content-Type":"application/json"}});let n=await exports.a.getTRPC().fetch(e.request,e.locals);return new Response(n.body,n)}return await(await exports.a.getREST()).fetch(e.request,e.locals)}catch(t){return console.error("[Kyro API Execution Error]:",t?.stack||t?.message||t),new Response(JSON.stringify({error:"Internal Server Error",message:t?.message||String(t),stack:t?.stack}),{status:500,headers:{"Content-Type":"application/json"}})}},L=R;exports.b=E;exports.c=R;exports.d=L;
@@ -1,11 +0,0 @@
1
- import {b as b$1,a,c,h,g as g$1,C,F,G as G$1,m,e,d,j as j$1,f,s,t}from'./chunk-JRUQ5ABB.js';import {C as C$1,i}from'./chunk-TYQYKKWJ.js';import {g}from'./chunk-Y2YAKDEQ.js';import {Readable}from'stream';import {platform,release}from'os';import {env,versions}from'process';if (typeof window === "undefined") { const { createRequire } = await import(/* @vite-ignore */ 'module'); createRequire(import.meta.url); }
2
- g();g();var M=(e,t)=>{let r=[];if(e&&r.push(e),t)for(let o of t)r.push(o);return r},v=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,L=()=>{let e=[],t=[],r=false,o=new Set,s=p=>p.sort((m,h)=>gt[h.step]-gt[m.step]||Et[h.priority||"normal"]-Et[m.priority||"normal"]),i=p=>{let m=false,h=R=>{let A=M(R.name,R.aliases);if(A.includes(p)){m=true;for(let E of A)o.delete(E);return false}return true};return e=e.filter(h),t=t.filter(h),m},a=p=>{let m=false,h=R=>{if(R.middleware===p){m=true;for(let A of M(R.name,R.aliases))o.delete(A);return false}return true};return e=e.filter(h),t=t.filter(h),m},u=p=>(e.forEach(m=>{p.add(m.middleware,{...m});}),t.forEach(m=>{p.addRelativeTo(m.middleware,{...m});}),p.identifyOnResolve?.(g.identifyOnResolve()),p),l=p=>{let m=[];return p.before.forEach(h=>{h.before.length===0&&h.after.length===0?m.push(h):m.push(...l(h));}),m.push(p),p.after.reverse().forEach(h=>{h.before.length===0&&h.after.length===0?m.push(h):m.push(...l(h));}),m},f=(p=false)=>{let m=[],h=[],R={};return e.forEach(E=>{let S={...E,before:[],after:[]};for(let T of M(S.name,S.aliases))R[T]=S;m.push(S);}),t.forEach(E=>{let S={...E,before:[],after:[]};for(let T of M(S.name,S.aliases))R[T]=S;h.push(S);}),h.forEach(E=>{if(E.toMiddleware){let S=R[E.toMiddleware];if(S===void 0){if(p)return;throw new Error(`${E.toMiddleware} is not found when adding ${v(E.name,E.aliases)} middleware ${E.relation} ${E.toMiddleware}`)}E.relation==="after"&&S.after.push(E),E.relation==="before"&&S.before.push(E);}}),s(m).map(l).reduce((E,S)=>(E.push(...S),E),[])},g={add:(p,m={})=>{let{name:h,override:R,aliases:A}=m,E={step:"initialize",priority:"normal",middleware:p,...m},S=M(h,A);if(S.length>0){if(S.some(T=>o.has(T))){if(!R)throw new Error(`Duplicate middleware name '${v(h,A)}'`);for(let T of S){let I=e.findIndex(B=>B.name===T||B.aliases?.some(Ee=>Ee===T));if(I===-1)continue;let _=e[I];if(_.step!==E.step||E.priority!==_.priority)throw new Error(`"${v(_.name,_.aliases)}" middleware with ${_.priority} priority in ${_.step} step cannot be overridden by "${v(h,A)}" middleware with ${E.priority} priority in ${E.step} step.`);e.splice(I,1);}}for(let T of S)o.add(T);}e.push(E);},addRelativeTo:(p,m)=>{let{name:h,override:R,aliases:A}=m,E={middleware:p,...m},S=M(h,A);if(S.length>0){if(S.some(T=>o.has(T))){if(!R)throw new Error(`Duplicate middleware name '${v(h,A)}'`);for(let T of S){let I=t.findIndex(B=>B.name===T||B.aliases?.some(Ee=>Ee===T));if(I===-1)continue;let _=t[I];if(_.toMiddleware!==E.toMiddleware||_.relation!==E.relation)throw new Error(`"${v(_.name,_.aliases)}" middleware ${_.relation} "${_.toMiddleware}" middleware cannot be overridden by "${v(h,A)}" middleware ${E.relation} "${E.toMiddleware}" middleware.`);t.splice(I,1);}}for(let T of S)o.add(T);}t.push(E);},clone:()=>u(L()),use:p=>{p.applyToStack(g);},remove:p=>typeof p=="string"?i(p):a(p),removeByTag:p=>{let m=false,h=R=>{let{tags:A,name:E,aliases:S}=R;if(A&&A.includes(p)){let T=M(E,S);for(let I of T)o.delete(I);return m=true,false}return true};return e=e.filter(h),t=t.filter(h),m},concat:p=>{let m=u(L());return m.use(p),m.identifyOnResolve(r||m.identifyOnResolve()||(p.identifyOnResolve?.()??false)),m},applyToStack:u,identify:()=>f(true).map(p=>{let m=p.step??p.relation+" "+p.toMiddleware;return v(p.name,p.aliases)+" - "+m}),identifyOnResolve(p){return typeof p=="boolean"&&(r=p),r},resolve:(p,m)=>{for(let h of f().map(R=>R.middleware).reverse())p=h(p,m);return r&&console.log(g.identify()),p}};return g},gt={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Et={high:3,normal:2,low:1};var Ae=class{config;middlewareStack=L();initConfig;handlers;constructor(t){this.config=t;let{protocol:r,protocolSettings:o}=t;o&&typeof r=="function"&&(t.protocol=new r(o));}send(t,r,o){let s=typeof r!="function"?r:void 0,i=typeof r=="function"?r:o,a=s===void 0&&this.config.cacheMiddleware===true,u;if(a){this.handlers||(this.handlers=new WeakMap);let l=this.handlers;l.has(t.constructor)?u=l.get(t.constructor):(u=t.resolveMiddleware(this.middlewareStack,this.config,s),l.set(t.constructor,u));}else delete this.handlers,u=t.resolveMiddleware(this.middlewareStack,this.config,s);if(i)u(t).then(l=>i(null,l.output),l=>i(l)).catch(()=>{});else return u(t).then(l=>l.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers;}};g();g();var Te="***SensitiveInformation***";function ee(e,t){if(t==null)return t;let r=m.of(e);if(r.getMergedTraits().sensitive)return Te;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return Te}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return Te}else if(r.isStructSchema()&&typeof t=="object"){let o=t,s={};for(let[i,a]of r.structIterator())o[i]!=null&&(s[i]=ee(a,o[i]));return s}return t}var $=class{middlewareStack=L();schema;static classBuilder(){return new xe}resolveMiddlewareWithContext(t,r,o,{middlewareFn:s,clientName:i,commandName:a,inputFilterSensitiveLog:u,outputFilterSensitiveLog:l,smithyContext:f,additionalContext:g,CommandCtor:p}){for(let S of s.bind(this)(p,t,r,o))this.middlewareStack.use(S);let m=t.concat(this.middlewareStack),{logger:h}=r,R={logger:h,clientName:i,commandName:a,inputFilterSensitiveLog:u,outputFilterSensitiveLog:l,[c]:{commandInstance:this,...f},...g},{requestHandler:A}=r,E=o??{};return f.eventStream&&(E={isEventStream:true,...E}),m.resolve(S=>A.handle(S.request,E),R)}},xe=class{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(t){this._init=t;}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,r,o={}){return this._smithyContext={service:t,operation:r,...o},this}c(t={}){return this._additionalContext=t,this}n(t,r){return this._clientName=t,this._commandName=r,this}f(t=o=>o,r=o=>o){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=r,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}sc(t){return this._operationSchema=t,this._smithyContext.operationSchema=t,this}build(){let t=this,r;return r=class extends ${input;static getEndpointParameterInstructions(){return t._ep}constructor(...[o]){super(),this.input=o??{},t._init(this),this.schema=t._operationSchema;}resolveMiddleware(o,s,i){let a=t._operationSchema,u=a?.[4]??a?.input,l=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(o,s,i,{CommandCtor:r,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog??(a?ee.bind(null,u):f=>f),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(a?ee.bind(null,l):f=>f),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}serialize=t._serializer;deserialize=t._deserializer}}};g();g();var kr=(e,t,r)=>{for(let[i,a]of Object.entries(e)){let u=async function(f,g,p){let m=new a(f);if(typeof g=="function")this.send(m,g);else if(typeof p=="function"){if(typeof g!="object")throw new Error(`Expected http options but got ${typeof g}`);this.send(m,g||{},p);}else return this.send(m,g)},l=(i[0].toLowerCase()+i.slice(1)).replace(/Command$/,"");t.prototype[l]=u;}let{paginators:o={},waiters:s={}}=r??{};for(let[i,a]of Object.entries(o))t.prototype[i]===void 0&&(t.prototype[i]=function(u={},l,...f){return a({...l,client:this},u,...f)});for(let[i,a]of Object.entries(s))t.prototype[i]===void 0&&(t.prototype[i]=async function(u={},l,...f){let g=l;return typeof l=="number"&&(g={maxWaitTime:l}),a({...g,client:this},u,...f)});};g();var ye=class e extends Error{$fault;$response;$retryable;$metadata;constructor(t){super(t.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata;}static isInstance(t){if(!t)return false;let r=t;return e.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](t){if(!t)return false;let r=t;return this===e?e.isInstance(t):e.isInstance(t)?r.name&&this.name?this.prototype.isPrototypeOf(t)||r.name===this.name:this.prototype.isPrototypeOf(t):false}},Ur=(e,t={})=>{Object.entries(t).filter(([,o])=>o!==void 0).forEach(([o,s])=>{(e[o]==null||e[o]==="")&&(e[o]=s);});let r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e};g();var Fr=e=>{switch(e){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:3e4};default:return {}}};g();var Rt=false,Lr=e=>{e&&!Rt&&parseInt(e.substring(1,e.indexOf(".")))<16&&(Rt=true);};g();g();var St=Object.values(b$1),At=e=>{let t=[];for(let r in b$1){let o=b$1[r];e[o]!==void 0&&t.push({algorithmId:()=>o,checksumConstructor:()=>e[o]});}for(let[r,o]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>r,checksumConstructor:()=>o});return {addChecksumAlgorithm(r){e.checksumAlgorithms=e.checksumAlgorithms??{};let o=r.algorithmId(),s=r.checksumConstructor();St.includes(o)?e.checksumAlgorithms[o.toUpperCase()]=s:e.checksumAlgorithms[o]=s,t.push(r);},checksumAlgorithms(){return t}}},Tt=e=>{let t={};return e.checksumAlgorithms().forEach(r=>{let o=r.algorithmId();St.includes(o)&&(t[o]=r.checksumConstructor());}),t};g();var xt=e=>({setRetryStrategy(t){e.retryStrategy=t;},retryStrategy(){return e.retryStrategy}}),yt=e=>{let t={};return t.retryStrategy=e.retryStrategy(),t};var $r=e=>Object.assign(At(e),xt(e));var Hr=e=>Object.assign(Tt(e),yt(e));g();var _t=e=>{let t="#text";for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&e[r][t]!==void 0?e[r]=e[r][t]:typeof e[r]=="object"&&e[r]!==null&&(e[r]=_t(e[r]));return e};g();var q=class{trace(){}debug(){}info(){}warn(){}error(){}};g();function Gr(e,t,r,o){return function(i,a,u,l,f={}){let g=Object.assign({},e,i);return $.classBuilder().ep(g).m(function(p,m,h,R){let A=a.call(this,p,m,h,R);return A.unshift(o(h,p.getEndpointParameterInstructions())),A}).s(t,u,f).n(r,u.charAt(0).toUpperCase()+u.slice(1)+"Command").sc(l).build()}}g();function Br(e,t,r){return e.$source||(e.$source={}),e.$source[t]=r,e}g();g();g();var wt="AWS_ENDPOINT_URL",It="endpoint_url",Nt=e=>({environmentVariableSelector:t=>{let r=e.split(" ").map(i=>i.toUpperCase()),o=t[[wt,...r].join("_")];if(o)return o;let s=t[wt];if(s)return s},configFileSelector:(t,r)=>{if(t.services){let s=["services",t.services].join(".");if(!r||!r[s])throw new Error(`The services section "${t.services}" specified in the profile is not present in the shared configuration file.`);let i=r[s],a=e.split(" ").map(l=>l.toLowerCase()),u=i[[a.join("_"),It].join(".")];if(u)return u}let o=t[It];if(o)return o},default:void 0});g();var Wr="AWS_IGNORE_CONFIGURED_ENDPOINT_URLS",qr="ignore_configured_endpoint_urls",Ct={environmentVariableSelector:e=>s(e,Wr,t.ENV),configFileSelector:e=>s(e,qr,t.CONFIG),default:false};var z=async e=>{if(!await C(Ct)())return C(Nt(e??""))()};g();g();g();var _e=async e=>{let t=e?.Bucket||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),vt(t)){if(e.ForcePathStyle===true)throw new Error("Path-style addressing cannot be used with ARN buckets")}else (!Ot(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=true);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=true,e.DisableMRAP=true),e},zr=/^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/,Yr=/(\d+\.){3}\d+/,jr=/\.\./;var Ot=e=>zr.test(e)&&!Yr.test(e)&&!jr.test(e),vt=e=>{let[t,r,o,,,s]=e.split(":"),i=t==="arn"&&e.split(":").length>=6,a=!!(i&&r&&o&&s);if(i&&!a)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return a};g();var Pt=(e,t,r,o=false)=>{let s=async()=>{let i;return o?i=r.clientContextParams?.[e]??r[e]??r[t]:i=r[e]??r[t],typeof i=="function"?i():i};return e==="credentialScope"||t==="CredentialScope"?async()=>{let i=typeof r.credentials=="function"?await r.credentials():r.credentials;return i?.credentialScope??i?.CredentialScope}:e==="accountId"||t==="AccountId"?async()=>{let i=typeof r.credentials=="function"?await r.credentials():r.credentials;return i?.accountId??i?.AccountId}:e==="endpoint"||t==="endpoint"?async()=>{if(r.isCustomEndpoint===false)return;let i=await s();if(i&&typeof i=="object"){if("url"in i)return i.url.href;if("hostname"in i){let{protocol:a,hostname:u,port:l,path:f}=i;return `${a}//${u}${l?":"+l:""}${f}`}}return i}:s};g();function te(e){return async(t,r,o,s)=>{if(!o.isCustomEndpoint&&!o.ignoreConfiguredEndpointUrls){let u;o.serviceConfiguredEndpoint?u=await o.serviceConfiguredEndpoint():u=await e(o.serviceId),u&&(o.endpoint=()=>Promise.resolve(j$1(u)),o.isCustomEndpoint=true,s?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${u}`));}let i=await bt(t,r,o);if(typeof o.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");let a=o.endpointProvider(i,s);if(o.isCustomEndpoint&&o.endpoint){let u=await o.endpoint();if(u?.headers){a.headers??={};for(let[l,f]of Object.entries(u.headers))a.headers[l]=Array.isArray(f)?f:[f];}}return a}}var bt=async(e,t,r)=>{let o={},s=t?.getEndpointParameterInstructions?.()||{};for(let[i,a]of Object.entries(s))switch(a.type){case "staticContextParams":o[i]=a.value;break;case "contextParams":o[i]=e[a.name];break;case "clientContextParams":case "builtInParams":o[i]=await Pt(a.name,i,r,a.type!=="builtInParams")();break;case "operationContextParams":o[i]=a.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return Object.keys(s).length===0&&Object.assign(o,r),String(r.serviceId).toLowerCase()==="s3"&&await _e(o),o};g();function Xr(e,t,r){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=r;}function re(e){let t=te(e);return ({config:r,instructions:o})=>(s,i)=>async a=>{r.isCustomEndpoint&&Xr(i,"ENDPOINT_OVERRIDE","N");let u=await t(a.input,{getEndpointParameterInstructions(){return o}},{...r},i);i.endpointV2=u,i.authSchemes=u.properties?.authSchemes;let l=i.authSchemes?.[0];if(l){i.signing_region=l.signingRegion,i.signing_service=l.signingName;let g=d(i)?.selectedHttpAuthScheme?.httpAuthOption;g&&(g.signingProperties=Object.assign(g.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties));}return s({...a})}}g();var Kr={name:"serializerMiddleware"},Jr={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:true,relation:"before",toMiddleware:Kr.name};function Dt(e){let t=re(e);return (r,o)=>({applyToStack:s=>{s.addRelativeTo(t({config:r,instructions:o}),Jr);}})}g();function Mt(e){return t=>{let r=t.tls??true,{endpoint:o,useDualstackEndpoint:s,useFipsEndpoint:i}=t,a=o!=null?async()=>j$1(await h(o)()):void 0,l=Object.assign(t,{endpoint:a,tls:r,isCustomEndpoint:!!o,useDualstackEndpoint:h(s??false),useFipsEndpoint:h(i??false),ignoreConfiguredEndpointUrls:!!t.ignoreConfiguredEndpointUrls}),f;return l.serviceConfiguredEndpoint=async()=>(t.serviceId&&!f&&(f=e(t.serviceId)),f),l}}g();var we=class e{nodes;root;conditions;results;constructor(t,r,o,s){this.nodes=t,this.root=r,this.conditions=o,this.results=s;}static from(t,r,o,s){return new e(t,r,o,s)}};g();var Ie=class{capacity;data=new Map;parameters=[];constructor({size:t,params:r}){this.capacity=t??50,r&&(this.parameters=r);}get(t,r){let o=this.hash(t);if(o===false)return r();if(!this.data.has(o)){if(this.data.size>this.capacity+10){let s=this.data.keys(),i=0;for(;;){let{value:a,done:u}=s.next();if(this.data.delete(a),u||++i>10)break}}this.data.set(o,r());}return this.data.get(o)}size(){return this.data.size}hash(t){let r="",{parameters:o}=this;if(o.length===0)return false;for(let s of o){let i=String(t[s]??"");if(i.includes("|;"))return false;r+=i+"|;";}return r}};g();g();g();var x=class extends Error{constructor(t){super(t),this.name="EndpointError";}};g();g();g();var Ne="endpoints";g();function H(e){return typeof e!="object"||e==null?e:"ref"in e?`$${H(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(H).join(", ")})`:JSON.stringify(e,null,2)}g();g();g();var Y={};g();g();g();var Ce=(e,t)=>e===t;g();function Oe(...e){for(let t of e)if(t!=null)return t}g();g();var kt=e=>{let t=e.split("."),r=[];for(let o of t){let s=o.indexOf("[");if(s!==-1){if(o.indexOf("]")!==o.length-1)throw new x(`Path: '${e}' does not end with ']'`);let i=o.slice(s+1,-1);if(Number.isNaN(parseInt(i)))throw new x(`Invalid array index: '${i}' in path: '${e}'`);s!==0&&r.push(o.slice(0,s)),r.push(i);}else r.push(o);}return r};var j=(e,t)=>kt(t).reduce((r,o)=>{if(typeof r!="object")throw new x(`Index '${o}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(r)){let s=parseInt(o);return r[s<0?r.length+s:s]}return r[o]},e);g();var ve=e=>e!=null;g();function Pe(e,t,r){return e?t:r}g();var be=e=>!e;g();g();var Qr=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}$"),G=e=>Qr.test(e)||e.startsWith("[")&&e.endsWith("]");var De={[a.HTTP]:80,[a.HTTPS]:443},Me=e=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){let{hostname:m,port:h,protocol:R="",path:A="",query:E={}}=e,S=new URL(`${R}//${m}${h?`:${h}`:""}${A}`);return S.search=Object.entries(E).map(([T,I])=>`${T}=${I}`).join("&"),S}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let r=t.href,{host:o,hostname:s,pathname:i,protocol:a$1,search:u}=t;if(u)return null;let l=a$1.slice(0,-1);if(!Object.values(a).includes(l))return null;let f=G(s),g=r.includes(`${o}:${De[l]}`)||typeof e=="string"&&e.includes(`${o}:${De[l]}`),p=`${o}${g?`:${De[l]}`:""}`;return {scheme:l,authority:p,path:i,normalizedPath:i.endsWith("/")?i:`${i}/`,isIp:f}};g();function ke(e,t,r){if(r===1)return [e];if(e==="")return [""];let o=e.split(t);return r===0?o:o.slice(0,r-1).concat(o.slice(1).join(t))}g();var Ue=(e,t)=>e===t;g();var Fe=(e,t,r,o)=>e==null||t>=r||e.length<r||/[^\u0000-\u007f]/.test(e)?null:o?e.substring(e.length-r,e.length-t):e.substring(t,r);g();var Le=e=>encodeURIComponent(e).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`);var Ut={booleanEquals:Ce,coalesce:Oe,getAttr:j,isSet:ve,isValidHostLabel:g$1,ite:Pe,not:be,parseURL:Me,split:ke,stringEquals:Ue,substring:Fe,uriEncode:Le};g();var oe=(e,t)=>{let r=[],{referenceRecord:o,endpointParams:s}=t,i=0;for(;i<e.length;){let a=e.indexOf("{",i);if(a===-1){r.push(e.slice(i));break}r.push(e.slice(i,a));let u=e.indexOf("}",a);if(u===-1){r.push(e.slice(a));break}e[a+1]==="{"&&e[u+1]==="}"&&(r.push(e.slice(a+1,u)),i=u+2);let l=e.substring(a+1,u);if(l.includes("#")){let[f,g]=l.split("#");r.push(j(o[f]??s[f],g));}else r.push(o[l]??s[l]);i=u+1;}return r.join("")};g();var Ft=({ref:e},t)=>t.referenceRecord[e]??t.endpointParams[e];var k=(e,t,r)=>{if(typeof e=="string")return oe(e,r);if(e.fn)return Lt.callFunction(e,r);if(e.ref)return Ft(e,r);throw new x(`'${t}': ${String(e)} is not a string, function or reference.`)},ne=({fn:e,argv:t},r)=>{let o=Array(t.length);for(let a=0;a<o.length;++a){let u=t[a];typeof u=="boolean"||typeof u=="number"?o[a]=u:o[a]=Lt.evaluateExpression(u,"arg",r);}let s=e.indexOf(".");if(s!==-1){let u=Y[e.slice(0,s)]?.[e.slice(s+1)];if(typeof u=="function")return u(...o)}let i=Ut[e];if(typeof i=="function")return i(...o);throw new Error(`function ${e} not loaded in endpointFunctions.`)},Lt={evaluateExpression:k,callFunction:ne};var $t=(e,t)=>{let{assign:r}=e;if(r&&r in t.referenceRecord)throw new x(`'${r}' is already defined in Reference Record.`);let o=ne(e,t);t.logger?.debug?.(`${Ne} evaluateCondition: ${H(e)} = ${H(o)}`);let s=o===""?true:!!o;return r!=null?{result:s,toAssign:{name:r,value:o}}:{result:s}};g();var Ht=(e,t)=>Object.entries(e??{}).reduce((r,[o,s])=>(r[o]=s.map(i=>{let a=k(i,"Header value entry",t);if(typeof a!="string")throw new x(`Header '${o}' value '${a}' is not a string`);return a}),r),{});g();var $e=(e,t)=>Object.entries(e).reduce((r,[o,s])=>(r[o]=Bt.getEndpointProperty(s,t),r),{}),Gt=(e,t)=>{if(Array.isArray(e))return e.map(r=>Gt(r,t));switch(typeof e){case "string":return oe(e,t);case "object":if(e===null)throw new x(`Unexpected endpoint property: ${e}`);return Bt.getEndpointProperties(e,t);case "boolean":return e;default:throw new x(`Unexpected endpoint property type: ${typeof e}`)}},Bt={getEndpointProperty:Gt,getEndpointProperties:$e};g();var Vt=(e,t)=>{let r=k(e,"Endpoint URL",t);if(typeof r=="string")try{return new URL(r)}catch(o){throw console.error(`Failed to construct URL with ${r}`,o),o}throw new x(`Endpoint URL must be a string, got ${typeof r}`)};var He=1e8,Zr=(e,t)=>{let{nodes:r,root:o,results:s,conditions:i}=e,a=o,u={},l={referenceRecord:u,endpointParams:t.endpointParams,logger:t.logger};for(;a!==1&&a!==-1&&a<He;){let f=3*(Math.abs(a)-1),[g,p,m]=[r[f],r[f+1],r[f+2]],[h,R,A]=i[g],E=$t({fn:h,assign:A,argv:R},l);if(E.toAssign){let{name:S,value:T}=E.toAssign;u[S]=T;}a=a>=0===E.result?p:m;}if(a>=He){let f=s[a-He];if(f[0]===-1){let[,h]=f;throw new x(k(h,"Error",l))}let[g,p,m]=f;return {url:Vt(g,l),properties:$e(p,l),headers:Ht(m??{},l)}}throw new x("No matching endpoint.")};var Ma=Mt(z),Ua=Dt(z);g();g();g();g();g();var Wt=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],qt=["TimeoutError","RequestTimeout","RequestTimeoutException"],zt=[500,502,503,504],Yt=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],jt=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"];var eo=e=>e?.$retryable!==void 0;var to=e=>e.$metadata?.clockSkewCorrected,ro=e=>{let t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return e&&e instanceof TypeError?t.has(e.message):false},ie=e=>e.$metadata?.httpStatusCode===429||Wt.includes(e.name)||e.$retryable?.throttling==true,se=(e,t=0)=>eo(e)||to(e)||e.name==="InvalidSignatureException"&&e.message?.includes("Signature expired")||qt.includes(e.name)||Yt.includes(e?.code||"")||jt.includes(e?.code||"")||zt.includes(e.$metadata?.httpStatusCode||0)||ro(e)||oo(e)||e.cause!==void 0&&t<=10&&se(e.cause,t+1),Xt=e=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!se(e)}return false};function oo(e){return e.code==="ERR_HTTP2_STREAM_ERROR"&&e.message.includes("NGHTTP2_REFUSED_STREAM")}var ae=class e{static setTimeoutFn=(t,r)=>setTimeout(t,r);beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=false;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(t){this.beta=t?.beta??.7,this.minCapacity=t?.minCapacity??1,this.minFillRate=t?.minFillRate??.5,this.scaleConstant=t?.scaleConstant??.4,this.smooth=t?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity;}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(t){let r;this.updateMeasuredRate();let o=t;if(o?.errorType==="THROTTLING"||ie(o?.error??t)){let a=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=a,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(a),this.enableTokenBucket();}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());let i=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(i);}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(t){if(this.enabled){for(this.refillTokenBucket();t>this.availableTokens;){let r=(t-this.availableTokens)/this.fillRate*1e3;await new Promise(o=>e.setTimeoutFn(o,r)),this.refillTokenBucket();}this.availableTokens=this.availableTokens-t;}}refillTokenBucket(){let t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}let r=(t-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+r),this.lastTimestamp=t;}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3));}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=true;}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity);}updateMeasuredRate(){let t=this.getCurrentTimeInSeconds(),r=Math.floor(t*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){let o=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(o*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r;}}getPrecise(t){return parseFloat(t.toFixed(8))}};g();g();g();var Kt="amz-sdk-invocation-id",Jt="amz-sdk-request";g();var y=class e{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return e.v2026?50:100}static throttlingDelay(){return e.v2026?1e3:500}static cost(){return e.v2026?14:5}static throttlingCost(){return e.v2026?5:10}static modifiedCostType(){return e.v2026?"THROTTLING":"TRANSIENT"}};var ce=class{x=y.delay();computeNextBackoffDelay(t){let s=Math.random()*Math.min(this.x*2**t,2e4);return Math.floor(s)}setDelayBase(t){this.x=t;}};g();var X=class{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(t,r,o,s){this.delay=t,this.count=r,this.cost=o,this.longPoll=s;}getRetryCount(){return this.count}getRetryDelay(){return Math.min(2e4,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}};g();var w;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive";})(w||(w={}));var P=3,Ge=w.STANDARD;var de={incompatible:1,attempts:2,capacity:3},U=class{mode=w.STANDARD;retryBackoffStrategy;capacity=500;maxAttemptsProvider;baseDelay;constructor(t){typeof t=="number"?this.maxAttemptsProvider=async()=>t:typeof t=="function"?this.maxAttemptsProvider=t:t&&typeof t=="object"&&(this.maxAttemptsProvider=async()=>t.maxAttempts,this.baseDelay=t.baseDelay,this.retryBackoffStrategy=t.backoff),this.maxAttemptsProvider??=async()=>P,this.baseDelay??=y.delay(),this.retryBackoffStrategy??=new ce;}async acquireInitialRetryToken(t){return new X(y.delay(),0,void 0,y.v2026&&t.includes(":longpoll"))}async refreshRetryTokenForRetry(t,r){let o=await this.getMaxAttempts(),s=this.retryCode(t,r,o),i=s===0,a=t.isLongPoll?.();if(i||a){let u=r.errorType;this.retryBackoffStrategy.setDelayBase(u==="THROTTLING"?y.throttlingDelay():this.baseDelay);let l=this.retryBackoffStrategy.computeNextBackoffDelay(t.getRetryCount()),f=l;if(r.retryAfterHint instanceof Date&&(f=Math.max(l,Math.min(r.retryAfterHint.getTime()-Date.now(),l+5e3))),i){let g=this.getCapacityCost(u);this.capacity-=g;let p=new X(0,t.getRetryCount()+1,g,t.isLongPoll?.()??false);return await new Promise(m=>setTimeout(m,f)),p.$retryLog.acquisitionDelay=f,p}else {let g=y.v2026&&s===de.capacity&&a?f:0;g>0&&await new Promise(p=>setTimeout(p,g));}}throw new Error("No retry token available")}recordSuccess(t){this.capacity=Math.min(500,this.capacity+(t.getRetryCost()??1));}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${P}`),P}}retryCode(t,r,o){let s=t.getRetryCount()+1,i=this.isRetryableError(r.errorType)?0:de.incompatible,a=s<o?0:de.attempts,u=this.capacity>=this.getCapacityCost(r.errorType)?0:de.capacity;return i||a||u}getCapacityCost(t){return t===y.modifiedCostType()?y.throttlingCost():y.cost()}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}};var ue=class{mode=w.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(t,r){let{rateLimiter:o}=r??{};this.rateLimiter=o??new ae,this.standardRetryStrategy=r?new U({maxAttempts:typeof t=="number"?t:3,...r}):new U(t);}async acquireInitialRetryToken(t){let r=await this.standardRetryStrategy.acquireInitialRetryToken(t);return await this.rateLimiter.getSendToken(),r}async refreshRetryTokenForRetry(t,r){this.rateLimiter.updateClientSendingRate(r);let o=await this.standardRetryStrategy.refreshRetryTokenForRetry(t,r);return await this.rateLimiter.getSendToken(),o}recordSuccess(t){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(t);}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};var Be="AWS_MAX_ATTEMPTS",Ve="max_attempts",so={environmentVariableSelector:e=>{let t=e[Be];if(!t)return;let r=parseInt(t);if(Number.isNaN(r))throw new Error(`Environment variable ${Be} mast be a number, got "${t}"`);return r},configFileSelector:e=>{let t=e[Ve];if(!t)return;let r=parseInt(t);if(Number.isNaN(r))throw new Error(`Shared config file entry ${Ve} mast be a number, got "${t}"`);return r},default:P},ao=(e,t)=>{let{retryStrategy:r,retryMode:o}=e,{defaultMaxAttempts:s=P,defaultBaseDelay:i=y.delay()}=t??{},a=h(e.maxAttempts??s),u=r?Promise.resolve(r):void 0,l=async()=>{let f=await a();return await h(o)()===w.ADAPTIVE?new ue(a,{maxAttempts:f,baseDelay:i}):new U({maxAttempts:f,baseDelay:i})};return Object.assign(e,{maxAttempts:a,retryStrategy:()=>u??=l()})},Qt="AWS_RETRY_MODE",Zt="retry_mode",co={environmentVariableSelector:e=>e[Qt],configFileSelector:e=>e[Zt],default:Ge};g();g();var We=e=>e?.body instanceof Readable||typeof ReadableStream<"u"&&e?.body instanceof ReadableStream;g();g();function er(e,t){if(f.isInstance(e))for(let r of Object.keys(e.headers)){let o=r.toLowerCase();if(o==="retry-after"){let s=e.headers[r],i$1=NaN;if(s.endsWith("GMT"))try{i$1=(i(s).getTime()-Date.now())/1e3;}catch(a){t?.trace?.("Failed to parse retry-after header"),t?.trace?.(a);}else s.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?i$1=Number(s.match(/ GMT, ([\d.]+)$/)?.[1]):s.match(/^((\d+)|(\d+\.\d+))$/)?i$1=Number(s):Date.parse(s)>=Date.now()&&(i$1=(Date.parse(s)-Date.now())/1e3);return isNaN(i$1)?void 0:new Date(Date.now()+i$1*1e3)}else if(o==="x-amz-retry-after"){let s=e.headers[r],i=Number(s);if(isNaN(i)){t?.trace?.(`Failed to parse x-amz-retry-after=${s}`);return}return new Date(Date.now()+i)}}}g();var tr=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`);function qe(e$1){return t=>(r,o)=>async s=>{let i=await t.retryStrategy(),a=await t.maxAttempts();if(po(i)){i=i;let u=await i.acquireInitialRetryToken((o.partition_id??"")+(o.__retryLongPoll?":longpoll":"")),l=new Error,f=0,g=0,{request:p}=s,m=e.isInstance(p);for(m&&(p.headers[Kt]=C$1());;)try{m&&(p.headers[Jt]=`attempt=${f+1}; max=${a}`);let{response:h,output:R}=await r(s);return i.recordSuccess(u),R.$metadata.attempts=f+1,R.$metadata.totalRetryDelay=g,{response:h,output:R}}catch(h){let R=fo(h,t.logger);if(l=tr(h),m&&e$1(p))throw (o.logger instanceof q?console:o.logger)?.warn("An error was encountered in a non-retryable streaming request."),l;try{u=await i.refreshRetryTokenForRetry(u,R);}catch{throw l.$metadata||(l.$metadata={}),l.$metadata.attempts=f+1,l.$metadata.totalRetryDelay=g,l}f=u.getRetryCount();let A=u.getRetryDelay();g+=(u?.$retryLog?.acquisitionDelay??0)+A,A>0&&await lo(A);}}else return i=i,i?.mode&&(o.userAgent=[...o.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(r,s)}}var lo=e=>new Promise(t=>setTimeout(t,e)),po=e=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u",fo=(e,t)=>{let r={error:e,errorType:mo(e)},o=er(e.$response,t);return o&&(r.retryAfterHint=o),r},mo=e=>ie(e)?"THROTTLING":se(e)?"TRANSIENT":Xt(e)?"SERVER_ERROR":"CLIENT_ERROR",ho={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:true};function rr(e){let t=qe(e);return r=>({applyToStack:o=>{o.add(t(r),ho);}})}var Qc=rr(We);g();var or=e$1=>t=>async r=>{if(!e.isInstance(r.request))return t(r);let{request:o}=r,{handlerProtocol:s=""}=e$1.requestHandler.metadata||{};if(s.indexOf("h2")>=0&&!o.headers[":authority"])delete o.headers.host,o.headers[":authority"]=o.hostname+(o.port?":"+o.port:"");else if(!o.headers.host){let i=o.hostname;o.port!=null&&(i+=`:${o.port}`),o.headers.host=i;}return t(r)},nr={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:true},go=e=>({applyToStack:t=>{t.add(or(e),nr);}});g();var ir=()=>(e,t)=>async r=>{try{let o=await e(r),{clientName:s,commandName:i,logger:a,dynamoDbDocumentClientOptions:u={}}=t,{overrideInputFilterSensitiveLog:l,overrideOutputFilterSensitiveLog:f}=u,g=l??t.inputFilterSensitiveLog,p=f??t.outputFilterSensitiveLog,{$metadata:m,...h}=o.output;return a?.info?.({clientName:s,commandName:i,input:g(r.input),output:p(h),metadata:m}),o}catch(o){let{clientName:s,commandName:i,logger:a,dynamoDbDocumentClientOptions:u={}}=t,{overrideInputFilterSensitiveLog:l}=u,f=l??t.inputFilterSensitiveLog;throw a?.error?.({clientName:s,commandName:i,input:f(r.input),error:o,metadata:o.$metadata}),o}},sr={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:true},Eo=e=>({applyToStack:t=>{t.add(ir(),sr);}});g();g();var ar={step:"build",tags:["RECURSION_DETECTION","TRACE_CONTEXT_PROPAGATION"],name:"recursionDetectionMiddleware",override:true,priority:"low"};g();g();var b={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID"),TRACEPARENT:Symbol.for("_AWS_LAMBDA_TRACEPARENT"),TRACESTATE:Symbol.for("_AWS_LAMBDA_TRACESTATE"),BAGGAGE:Symbol.for("_AWS_LAMBDA_BAGGAGE")},ze=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");ze||(globalThis.awslambda=globalThis.awslambda||{});var le=class{static PROTECTED_KEYS=b;isProtectedKey(t){return Object.values(b).includes(t)}getRequestId(){return this.get(b.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(b.X_RAY_TRACE_ID)}getTenantId(){return this.get(b.TENANT_ID)}getTraceparent(){return this.get(b.TRACEPARENT)}getTracestate(){return this.get(b.TRACESTATE)}getBaggage(){return this.get(b.BAGGAGE)}},Ye=class extends le{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(t){return this.currentContext?.[t]}set(t,r){if(this.isProtectedKey(t))throw new Error(`Cannot modify protected Lambda context field: ${String(t)}`);this.currentContext=this.currentContext||{},this.currentContext[t]=r;}run(t,r){return this.currentContext=t,r()}},je=class e extends le{als;static async create(){let t=new e,r=await import('async_hooks');return t.als=new r.AsyncLocalStorage,t}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(t){return this.als.getStore()?.[t]}set(t,r){if(this.isProtectedKey(t))throw new Error(`Cannot modify protected Lambda context field: ${String(t)}`);let o=this.als.getStore();if(!o)throw new Error("No context available");o[t]=r;}run(t,r){return this.als.run(t,r)}},K;(function(e){let t=null;async function r(o){return t||(t=(async()=>{let i=o===true||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await je.create():new Ye;return !ze&&globalThis.awslambda?.InvokeStore?globalThis.awslambda.InvokeStore:(!ze&&globalThis.awslambda&&(globalThis.awslambda.InvokeStore=i),i)})()),t}e.getInstanceAsync=r,e._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{t=null,globalThis.awslambda?.InvokeStore&&delete globalThis.awslambda.InvokeStore,globalThis.awslambda={InvokeStore:void 0};}}:void 0;})(K||(K={}));var Ro="AWS_LAMBDA_FUNCTION_NAME",So="_X_AMZN_TRACE_ID",Xe="X-Amzn-Trace-Id",Ke="traceparent",cr="tracestate",dr="baggage",ur=()=>e$1=>async t=>{let{request:r}=t;if(!e.isInstance(r))return e$1(t);let o;{let s=Object.keys(r.headers??{}).find(i=>i.toLowerCase()===Xe.toLowerCase())??Xe;if(!r.headers.hasOwnProperty(s)){let i=process.env[Ro],a=process.env[So];o??=await K.getInstanceAsync();let l=o?.getXRayTraceId()??a,f=g=>typeof g=="string"&&g.length>0;f(i)&&f(l)&&(r.headers[Xe]=l);}}if(Ao(r.headers),!r.headers[Ke]){let i=(o??=await K.getInstanceAsync())?.getTraceparent?.();if(i){r.headers[Ke]=i;let a=o?.getTracestate?.();a&&(r.headers[cr]=a);let u=o?.getBaggage?.();u&&(r.headers[dr]=u);}}return e$1(t)};function Ao(e){for(let t of Object.keys(e)){let r=t.toLowerCase();t!==r&&(r===Ke||r===cr||r===dr)&&(e[r]=e[t],delete e[t]);}}var To=e=>({applyToStack:t=>{t.add(ur(),ar);}});g();g();g();var lr=(e,t)=>{if(!t||t.length===0)return e;let r=[];for(let o of t)for(let s of e)s.schemeId.split("#")[1]===o&&r.push(s);for(let o of e)r.find(({schemeId:s})=>s===o.schemeId)||r.push(o);return r};function xo(e){let t=new Map;for(let r of e)t.set(r.schemeId,r);return t}var Je=(e,t)=>(r,o)=>async s=>{let i=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,o,s.input)),a=e.authSchemePreference?await e.authSchemePreference():[],u=lr(i,a),l=xo(e.httpAuthSchemes),f=d(o),g=[];for(let p of u){let m=l.get(p.schemeId);if(!m){g.push(`HttpAuthScheme \`${p.schemeId}\` was not enabled for this service.`);continue}let h=m.identityProvider(await t.identityProviderConfigProvider(e));if(!h){g.push(`HttpAuthScheme \`${p.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:R={},signingProperties:A={}}=p.propertiesExtractor?.(e,o)||{};p.identityProperties=Object.assign(p.identityProperties||{},R),p.signingProperties=Object.assign(p.signingProperties||{},A),f.selectedHttpAuthScheme={httpAuthOption:p,identity:await h(p.identityProperties),signer:m.signer};break}if(!f.selectedHttpAuthScheme)throw new Error(g.join(`
3
- `));return r(s)};var Qe={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:"endpointV2Middleware"},pr=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r})=>({applyToStack:o=>{o.addRelativeTo(Je(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r}),Qe);}});g();g();g();var yo=e=>t=>{throw t},_o=(e,t)=>{},Ze=e$1=>(t,r)=>async o=>{if(!e.isInstance(o.request))return t(o);let i=d(r).selectedHttpAuthScheme;if(!i)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:u,signer:l}=i,f=await t({...o,request:await l.sign(o.request,u,a)}).catch((l.errorHandler||yo)(a));return (l.successHandler||_o)(f.response,a),f};var et={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:true,relation:"after",toMiddleware:"retryMiddleware"},fr=e=>({applyToStack:t=>{t.addRelativeTo(Ze(),et);}});g();g();var pe=class{authSchemes=new Map;constructor(t){for(let r in t){let o=t[r];o!==void 0&&this.authSchemes.set(r,o);}}getIdentityProvider(t){return this.authSchemes.get(t)}};g();g();g();var J=class{async sign(t,r,o){return t}};g();var tt=e=>function(r){return rt(r)&&r.expiration.getTime()-Date.now()<e};var mr=tt(3e5),rt=e=>e.expiration!==void 0,hr=(e,t,r)=>{if(e===void 0)return;let o=typeof e!="function"?async()=>Promise.resolve(e):e,s,i,a,u=false,l=async f=>{i||(i=o(f));try{s=await i,a=!0,u=!1;}finally{i=void 0;}return s};return t===void 0?async f=>((!a||f?.forceRefresh)&&(s=await l(f)),s):async f=>((!a||f?.forceRefresh)&&(s=await l(f)),u?s:r(s)?(t(s)&&await l(f),s):(u=true,s))};g();g();var ot=e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return ()=>t};g();var fe=void 0;function Co(e){return e===void 0?true:typeof e=="string"&&e.length<=50}function Oo(e){let t=ot(e.userAgentAppId??fe),{customUserAgent:r}=e;return Object.assign(e,{customUserAgent:typeof r=="string"?[[r]]:r,userAgentAppId:async()=>{let o=await t();if(!Co(o)){let s=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;typeof o!="string"?s?.warn("userAgentAppId must be a string or undefined."):o.length>50&&s?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.");}return o}})}g();g();g();var gr={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:true,supportsFIPS:true},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"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)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws 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)"},"mx-central-1":{description:"Mexico (Central)"},"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:true,supportsFIPS:true},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:true,supportsFIPS:true},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso 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:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:true,supportsFIPS:true},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}]};var vo=gr,Er=e=>{let{partitions:t}=vo;for(let o of t){let{regions:s,outputs:i}=o;for(let[a,u]of Object.entries(s))if(a===e)return {...i,...u}}for(let o of t){let{regionRegex:s,outputs:i}=o;if(new RegExp(s).test(e))return {...i}}let r=t.find(o=>o.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return {...r.outputs}};g();g();y.v2026||=typeof process=="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";function N(e,t,r){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=r;}var bo=/\d{12}\.ddb/;async function Sr(e,t,r){if(r.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&N(e,"PROTOCOL_RPC_V2_CBOR","M"),typeof t.retryStrategy=="function"){let i=await t.retryStrategy();if(typeof i.mode=="string")switch(i.mode){case w.ADAPTIVE:N(e,"RETRY_MODE_ADAPTIVE","F");break;case w.STANDARD:N(e,"RETRY_MODE_STANDARD","E");break}}if(typeof t.accountIdEndpointMode=="function"){let i=e.endpointV2;switch(String(i?.url?.hostname).match(bo)&&N(e,"ACCOUNT_ID_ENDPOINT","O"),await t.accountIdEndpointMode?.()){case "disabled":N(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case "preferred":N(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case "required":N(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let s=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(s?.$source){let i=s;i.accountId&&N(e,"RESOLVED_ACCOUNT_ID","T");for(let[a,u]of Object.entries(i.$source??{}))N(e,a,u);}}g();var nt="user-agent",me="x-amz-user-agent";var Ar=/[^!$%&'*+\-.^_`|~\w]/g,Tr=/[^!$%&'*+\-.^_`|~\w#]/g;g();function xr(e){let t="";for(let r in e){let o=e[r];if(t.length+o.length+1<=1024){t.length?t+=","+o:t+=o;continue}break}return t}var wr=e$1=>(t,r)=>async o=>{let{request:s}=o;if(!e.isInstance(s))return t(o);let{headers:i}=s,a=r?.userAgent?.map(he)||[],u=(await e$1.defaultUserAgentProvider()).map(he);await Sr(r,e$1,o);let l=r;u.push(`m/${xr(Object.assign({},r.__smithy_context?.features,l.__aws_sdk_context?.features))}`);let f=e$1?.customUserAgent?.map(he)||[],g=await e$1.userAgentAppId();g&&u.push(he(["app",`${g}`]));let m=([]).concat([...u,...a,...f]).join(" "),h=[...u.filter(R=>R.startsWith("aws-sdk-")),...f].join(" ");return e$1.runtime!=="browser"?(h&&(i[me]=i[me]?`${i[nt]} ${h}`:h),i[nt]=m):i[me]=m,t({...o,request:s})},he=e=>{let t=e[0].split("/").map(a=>a.replace(Ar,"-")).join("/"),r=e[1]?.replace(Tr,"-"),o=t.indexOf("/"),s=t.substring(0,o),i=t.substring(o+1);return s==="api"&&(i=i.toLowerCase()),[s,i,r].filter(a=>a&&a.length>0).reduce((a,u,l)=>{switch(l){case 0:return u;case 1:return `${a}/${u}`;default:return `${a}#${u}`}},"")},Ir={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:true},Do=e=>({applyToStack:t=>{t.add(wr(e),Ir);}});g();g();var ge={warningEmitted:false},Mo=e=>{if(e&&!ge.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){ge.warningEmitted=true;return}let t=parseInt(e.substring(1,e.indexOf("."))),r=22;t<r&&(ge.warningEmitted=true,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
4
- versions published after the first week of January 2027
5
- will require node >=${r}. You are running node ${e}.
6
-
7
- To continue receiving updates to AWS services, bug fixes,
8
- and security updates please upgrade to node >=${r}.
9
-
10
- More information can be found at: https://a.co/c895JFp`));}};g();g();var Nr=()=>{let e=["deno","bun","llrt"];for(let t of e)if(versions[t])return [`md/${t}`,versions[t]];return ["md/nodejs",versions.node]};g();g();var Fo=({serviceId:e,clientVersion:t})=>{let r=Nr();return async o=>{let s=[["aws-sdk-js",t],["ua","2.1"],[`os/${platform()}`,release()],["lang/js"],r];e&&s.push([`api/${e}`,t]),env.AWS_EXECUTION_ENV&&s.push([`exec-env/${env.AWS_EXECUTION_ENV}`]);let a=await o?.userAgentAppId?.();return a?[...s,[`app/${a}`]]:[...s]}};g();var vr="AWS_SDK_UA_APP_ID",Pr="sdk_ua_app_id",Lo="sdk-ua-app-id",$o={environmentVariableSelector:e=>e[vr],configFileSelector:e=>e[Pr]??e[Lo],default:fe};g();g();g();var ct=(e,t=false)=>{if(t){for(let r of e.split("."))if(!ct(r))return false;return true}return !(!g$1(e)||e.length<3||e.length>63||e!==e.toLowerCase()||G(e))};g();var br=e=>{let t=e.split(":");if(t.length<6)return null;let[r,o,s,i,a,...u]=t;if(r!=="arn"||o===""||s===""||u.join(":")==="")return null;let l=u.map(f=>f.split("/")).flat();return {partition:o,service:s,region:i,accountId:a,resourceId:l}};var Dr={isVirtualHostableS3Bucket:ct,parseArn:br,partition:Er};Y.aws=Dr;g();function Ho(e={}){return C({...F,async default(){return console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly."),"us-east-1"}},{...G$1,...e})}g();var Go=e=>({setRegion(t){e.region=t;},region(){return e.region}}),Bo=e=>({region:e.region()});
11
- export{N as A,go as B,Eo as C,To as D,pr as E,et as F,fr as G,ot as H,pe as I,J,mr as K,rt as L,hr as M,Oo as N,Do as O,Fo as P,$o as Q,Dr as R,Ho as S,Go as T,Bo as U,Mo as a,Br as b,Ae as c,$ as d,kr as e,ye as f,Ur as g,Fr as h,Lr as i,$r as j,Hr as k,_t as l,q as m,Gr as n,bt as o,we as p,Ie as q,Y as r,Zr as s,Ma as t,Ua as u,Ge as v,so as w,ao as x,co as y,Qc as z};