@mastra/server 1.51.0-alpha.11 → 1.51.0-alpha.13

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 (339) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/{api-schema-manifest-G2SC5CFQ.cjs → api-schema-manifest-4TI7FSNK.cjs} +6 -6
  3. package/dist/{api-schema-manifest-G2SC5CFQ.cjs.map → api-schema-manifest-4TI7FSNK.cjs.map} +1 -1
  4. package/dist/{api-schema-manifest-UXI5JTRL.js → api-schema-manifest-AJIZCNSL.js} +4 -4
  5. package/dist/{api-schema-manifest-UXI5JTRL.js.map → api-schema-manifest-AJIZCNSL.js.map} +1 -1
  6. package/dist/{chunk-MCWL6335.cjs → chunk-27F2AJU2.cjs} +6 -6
  7. package/dist/{chunk-MCWL6335.cjs.map → chunk-27F2AJU2.cjs.map} +1 -1
  8. package/dist/{chunk-BWTM7QBG.js → chunk-2H2SGSP4.js} +3 -3
  9. package/dist/{chunk-BWTM7QBG.js.map → chunk-2H2SGSP4.js.map} +1 -1
  10. package/dist/{chunk-O7HH6SBJ.cjs → chunk-2S4SNS5D.cjs} +10 -10
  11. package/dist/{chunk-O7HH6SBJ.cjs.map → chunk-2S4SNS5D.cjs.map} +1 -1
  12. package/dist/{chunk-CDVWZOPU.js → chunk-3F5MV2ED.js} +3 -3
  13. package/dist/{chunk-CDVWZOPU.js.map → chunk-3F5MV2ED.js.map} +1 -1
  14. package/dist/{chunk-VL23G2YJ.js → chunk-44G63V6E.js} +5 -5
  15. package/dist/{chunk-VL23G2YJ.js.map → chunk-44G63V6E.js.map} +1 -1
  16. package/dist/{chunk-FEUXFWF5.cjs → chunk-4VDJYNCU.cjs} +4 -4
  17. package/dist/{chunk-FEUXFWF5.cjs.map → chunk-4VDJYNCU.cjs.map} +1 -1
  18. package/dist/{chunk-HNOAHMN4.cjs → chunk-52LEKN7E.cjs} +6 -6
  19. package/dist/{chunk-HNOAHMN4.cjs.map → chunk-52LEKN7E.cjs.map} +1 -1
  20. package/dist/{chunk-XYWMMHEC.js → chunk-5535L5CG.js} +3 -3
  21. package/dist/{chunk-XYWMMHEC.js.map → chunk-5535L5CG.js.map} +1 -1
  22. package/dist/{chunk-PJPR5YFS.js → chunk-5VEVLTZC.js} +5 -5
  23. package/dist/{chunk-PJPR5YFS.js.map → chunk-5VEVLTZC.js.map} +1 -1
  24. package/dist/{chunk-MSTNHQU2.cjs → chunk-6LFFIOT4.cjs} +9 -9
  25. package/dist/{chunk-MSTNHQU2.cjs.map → chunk-6LFFIOT4.cjs.map} +1 -1
  26. package/dist/{chunk-PVPXK52S.cjs → chunk-6NNCDLZC.cjs} +29 -29
  27. package/dist/{chunk-PVPXK52S.cjs.map → chunk-6NNCDLZC.cjs.map} +1 -1
  28. package/dist/{chunk-BT4DGQFS.js → chunk-6QIJVEVN.js} +3 -3
  29. package/dist/{chunk-BT4DGQFS.js.map → chunk-6QIJVEVN.js.map} +1 -1
  30. package/dist/{chunk-3R4HNV6B.js → chunk-7NBIALK4.js} +3 -3
  31. package/dist/{chunk-3R4HNV6B.js.map → chunk-7NBIALK4.js.map} +1 -1
  32. package/dist/{chunk-DMFYLU2A.js → chunk-7PXSB34V.js} +39 -7
  33. package/dist/chunk-7PXSB34V.js.map +1 -0
  34. package/dist/{chunk-LQSQWD2F.cjs → chunk-A2NBGGMX.cjs} +8 -8
  35. package/dist/{chunk-LQSQWD2F.cjs.map → chunk-A2NBGGMX.cjs.map} +1 -1
  36. package/dist/{chunk-W2ATM2RI.cjs → chunk-APMXFPSU.cjs} +13 -13
  37. package/dist/{chunk-W2ATM2RI.cjs.map → chunk-APMXFPSU.cjs.map} +1 -1
  38. package/dist/{chunk-3RQNJCTP.cjs → chunk-AX3JNQ27.cjs} +19 -19
  39. package/dist/{chunk-3RQNJCTP.cjs.map → chunk-AX3JNQ27.cjs.map} +1 -1
  40. package/dist/{chunk-TDSDLPLC.js → chunk-BH354CYO.js} +3 -3
  41. package/dist/{chunk-TDSDLPLC.js.map → chunk-BH354CYO.js.map} +1 -1
  42. package/dist/{chunk-536ERKFJ.js → chunk-BMGJWPCE.js} +3 -3
  43. package/dist/{chunk-536ERKFJ.js.map → chunk-BMGJWPCE.js.map} +1 -1
  44. package/dist/{chunk-Q6D6YN36.js → chunk-CH5VUESZ.js} +4 -4
  45. package/dist/{chunk-Q6D6YN36.js.map → chunk-CH5VUESZ.js.map} +1 -1
  46. package/dist/{chunk-BHOFB3CF.cjs → chunk-CTYOUJ2J.cjs} +11 -11
  47. package/dist/{chunk-BHOFB3CF.cjs.map → chunk-CTYOUJ2J.cjs.map} +1 -1
  48. package/dist/{chunk-NE5VRVVK.cjs → chunk-DJGKM4TB.cjs} +4 -4
  49. package/dist/{chunk-NE5VRVVK.cjs.map → chunk-DJGKM4TB.cjs.map} +1 -1
  50. package/dist/{chunk-RRQZAJDZ.js → chunk-E43WB5QM.js} +5 -2
  51. package/dist/chunk-E43WB5QM.js.map +1 -0
  52. package/dist/{chunk-VXZGDPW2.cjs → chunk-EJFYAD2W.cjs} +8 -8
  53. package/dist/{chunk-VXZGDPW2.cjs.map → chunk-EJFYAD2W.cjs.map} +1 -1
  54. package/dist/{chunk-26WG2OUY.cjs → chunk-ELVO5SFM.cjs} +8 -8
  55. package/dist/{chunk-26WG2OUY.cjs.map → chunk-ELVO5SFM.cjs.map} +1 -1
  56. package/dist/{chunk-OI3USMND.cjs → chunk-G7RPSZUK.cjs} +71 -71
  57. package/dist/{chunk-OI3USMND.cjs.map → chunk-G7RPSZUK.cjs.map} +1 -1
  58. package/dist/{chunk-CAHPP34Z.cjs → chunk-GGPRZBVJ.cjs} +11 -11
  59. package/dist/{chunk-CAHPP34Z.cjs.map → chunk-GGPRZBVJ.cjs.map} +1 -1
  60. package/dist/{chunk-JNFYIWNB.cjs → chunk-GO6Y47XC.cjs} +101 -101
  61. package/dist/{chunk-JNFYIWNB.cjs.map → chunk-GO6Y47XC.cjs.map} +1 -1
  62. package/dist/{chunk-CP5LPQIZ.cjs → chunk-GULBOJRY.cjs} +6 -6
  63. package/dist/{chunk-CP5LPQIZ.cjs.map → chunk-GULBOJRY.cjs.map} +1 -1
  64. package/dist/{chunk-UY5FTPBZ.cjs → chunk-H32FN255.cjs} +5 -2
  65. package/dist/chunk-H32FN255.cjs.map +1 -0
  66. package/dist/{chunk-7Z7JQRMK.js → chunk-HI4E75YH.js} +3 -3
  67. package/dist/{chunk-7Z7JQRMK.js.map → chunk-HI4E75YH.js.map} +1 -1
  68. package/dist/{chunk-BJESJLXW.cjs → chunk-I5K3Z37P.cjs} +293 -287
  69. package/dist/chunk-I5K3Z37P.cjs.map +1 -0
  70. package/dist/{chunk-UUMG5HMP.cjs → chunk-IEEP4JWJ.cjs} +12 -12
  71. package/dist/{chunk-UUMG5HMP.cjs.map → chunk-IEEP4JWJ.cjs.map} +1 -1
  72. package/dist/{chunk-Y5DUPEQF.cjs → chunk-IKIMKEA3.cjs} +8 -8
  73. package/dist/{chunk-Y5DUPEQF.cjs.map → chunk-IKIMKEA3.cjs.map} +1 -1
  74. package/dist/{chunk-ZSMQDHMV.cjs → chunk-IRIBLEBI.cjs} +10 -10
  75. package/dist/{chunk-ZSMQDHMV.cjs.map → chunk-IRIBLEBI.cjs.map} +1 -1
  76. package/dist/{chunk-PWW7XZFS.js → chunk-IWIWEX2Y.js} +5 -5
  77. package/dist/{chunk-PWW7XZFS.js.map → chunk-IWIWEX2Y.js.map} +1 -1
  78. package/dist/{chunk-7RAQVA42.cjs → chunk-J6TRVKBB.cjs} +11 -11
  79. package/dist/{chunk-7RAQVA42.cjs.map → chunk-J6TRVKBB.cjs.map} +1 -1
  80. package/dist/{chunk-WRAFGZ43.js → chunk-JGEOOOSP.js} +3 -3
  81. package/dist/{chunk-WRAFGZ43.js.map → chunk-JGEOOOSP.js.map} +1 -1
  82. package/dist/{chunk-KGZYP6YS.js → chunk-JQWULXKN.js} +5 -5
  83. package/dist/{chunk-KGZYP6YS.js.map → chunk-JQWULXKN.js.map} +1 -1
  84. package/dist/{chunk-KLD4KYXH.cjs → chunk-K6WZK5RX.cjs} +21 -21
  85. package/dist/{chunk-KLD4KYXH.cjs.map → chunk-K6WZK5RX.cjs.map} +1 -1
  86. package/dist/{chunk-MRD47GBP.cjs → chunk-K7KLUGGM.cjs} +74 -74
  87. package/dist/{chunk-MRD47GBP.cjs.map → chunk-K7KLUGGM.cjs.map} +1 -1
  88. package/dist/{chunk-6ZXLYXPA.js → chunk-KN6HJVZK.js} +4 -4
  89. package/dist/{chunk-6ZXLYXPA.js.map → chunk-KN6HJVZK.js.map} +1 -1
  90. package/dist/{chunk-OGYVHIJQ.cjs → chunk-KOMWGC24.cjs} +7 -7
  91. package/dist/{chunk-OGYVHIJQ.cjs.map → chunk-KOMWGC24.cjs.map} +1 -1
  92. package/dist/{chunk-RK2FLBQ5.js → chunk-LTKBD2RQ.js} +3 -3
  93. package/dist/{chunk-RK2FLBQ5.js.map → chunk-LTKBD2RQ.js.map} +1 -1
  94. package/dist/{chunk-5QB32PNO.cjs → chunk-LXP7DQAP.cjs} +37 -37
  95. package/dist/{chunk-5QB32PNO.cjs.map → chunk-LXP7DQAP.cjs.map} +1 -1
  96. package/dist/{chunk-GCGJKH4A.cjs → chunk-LYOM6EQP.cjs} +8 -8
  97. package/dist/{chunk-GCGJKH4A.cjs.map → chunk-LYOM6EQP.cjs.map} +1 -1
  98. package/dist/{chunk-F7KRU6ZU.js → chunk-M7OJEIOD.js} +3 -3
  99. package/dist/{chunk-F7KRU6ZU.js.map → chunk-M7OJEIOD.js.map} +1 -1
  100. package/dist/{chunk-MASP4GYH.js → chunk-MCRQRKRI.js} +3 -3
  101. package/dist/{chunk-MASP4GYH.js.map → chunk-MCRQRKRI.js.map} +1 -1
  102. package/dist/{chunk-SS7P2THJ.js → chunk-MG2QPYJD.js} +41 -41
  103. package/dist/{chunk-SS7P2THJ.js.map → chunk-MG2QPYJD.js.map} +1 -1
  104. package/dist/{chunk-FPFSXIHI.js → chunk-NMIBDLQD.js} +4 -4
  105. package/dist/{chunk-FPFSXIHI.js.map → chunk-NMIBDLQD.js.map} +1 -1
  106. package/dist/{chunk-2E3UBZ6Z.js → chunk-OMNQYWK3.js} +2 -2
  107. package/dist/chunk-OMNQYWK3.js.map +1 -0
  108. package/dist/{chunk-TPM6PMWU.js → chunk-ONEOOPSN.js} +3 -3
  109. package/dist/{chunk-TPM6PMWU.js.map → chunk-ONEOOPSN.js.map} +1 -1
  110. package/dist/{chunk-BXMGLJWL.js → chunk-OSTYHNSM.js} +3 -3
  111. package/dist/{chunk-BXMGLJWL.js.map → chunk-OSTYHNSM.js.map} +1 -1
  112. package/dist/{chunk-XEHXAE6M.cjs → chunk-OU7J7PA7.cjs} +4 -4
  113. package/dist/{chunk-XEHXAE6M.cjs.map → chunk-OU7J7PA7.cjs.map} +1 -1
  114. package/dist/{chunk-H3CPBOE4.js → chunk-P6EQTV2Y.js} +3 -3
  115. package/dist/{chunk-H3CPBOE4.js.map → chunk-P6EQTV2Y.js.map} +1 -1
  116. package/dist/{chunk-2NGKAQQE.cjs → chunk-QAKI6K3C.cjs} +5 -5
  117. package/dist/{chunk-2NGKAQQE.cjs.map → chunk-QAKI6K3C.cjs.map} +1 -1
  118. package/dist/{chunk-YN4RDOPA.js → chunk-QDVO3DAW.js} +3 -3
  119. package/dist/{chunk-YN4RDOPA.js.map → chunk-QDVO3DAW.js.map} +1 -1
  120. package/dist/{chunk-ORQHCHAU.js → chunk-QJEXUABN.js} +4 -4
  121. package/dist/{chunk-ORQHCHAU.js.map → chunk-QJEXUABN.js.map} +1 -1
  122. package/dist/{chunk-K3XMNUQT.js → chunk-QJHZIGQG.js} +3 -3
  123. package/dist/{chunk-K3XMNUQT.js.map → chunk-QJHZIGQG.js.map} +1 -1
  124. package/dist/{chunk-ZMMHUTQG.cjs → chunk-QOGEYWQA.cjs} +24 -24
  125. package/dist/{chunk-ZMMHUTQG.cjs.map → chunk-QOGEYWQA.cjs.map} +1 -1
  126. package/dist/{chunk-GG7J3ITE.cjs → chunk-RKGCJXZO.cjs} +6 -6
  127. package/dist/{chunk-GG7J3ITE.cjs.map → chunk-RKGCJXZO.cjs.map} +1 -1
  128. package/dist/{chunk-U3AC2DM6.js → chunk-RKUFUE6P.js} +3 -3
  129. package/dist/{chunk-U3AC2DM6.js.map → chunk-RKUFUE6P.js.map} +1 -1
  130. package/dist/{chunk-FTXUZBZI.cjs → chunk-RSCLEVN3.cjs} +28 -28
  131. package/dist/{chunk-FTXUZBZI.cjs.map → chunk-RSCLEVN3.cjs.map} +1 -1
  132. package/dist/{chunk-CCVV75AI.js → chunk-SB4CG73V.js} +3 -3
  133. package/dist/{chunk-CCVV75AI.js.map → chunk-SB4CG73V.js.map} +1 -1
  134. package/dist/{chunk-2ONW75MN.cjs → chunk-SCCERKQS.cjs} +5 -5
  135. package/dist/{chunk-2ONW75MN.cjs.map → chunk-SCCERKQS.cjs.map} +1 -1
  136. package/dist/{chunk-SMQOFEYY.js → chunk-SEV4GJWB.js} +4 -4
  137. package/dist/{chunk-SMQOFEYY.js.map → chunk-SEV4GJWB.js.map} +1 -1
  138. package/dist/{chunk-NQLS4Z3W.js → chunk-SH7XKBWN.js} +5 -5
  139. package/dist/{chunk-NQLS4Z3W.js.map → chunk-SH7XKBWN.js.map} +1 -1
  140. package/dist/{chunk-3YBCWOF6.js → chunk-SIBCVLYV.js} +3 -3
  141. package/dist/{chunk-3YBCWOF6.js.map → chunk-SIBCVLYV.js.map} +1 -1
  142. package/dist/{chunk-C364W23O.js → chunk-SLHJWJR3.js} +4 -4
  143. package/dist/{chunk-C364W23O.js.map → chunk-SLHJWJR3.js.map} +1 -1
  144. package/dist/{chunk-2TKEZ5UE.js → chunk-SLWYNPH6.js} +3 -3
  145. package/dist/{chunk-2TKEZ5UE.js.map → chunk-SLWYNPH6.js.map} +1 -1
  146. package/dist/{chunk-ZMETLXPM.js → chunk-SU4ZAHUZ.js} +3 -3
  147. package/dist/{chunk-ZMETLXPM.js.map → chunk-SU4ZAHUZ.js.map} +1 -1
  148. package/dist/{chunk-TR2X57M3.cjs → chunk-SX2AJUSP.cjs} +2 -2
  149. package/dist/chunk-SX2AJUSP.cjs.map +1 -0
  150. package/dist/{chunk-AYHL7EEE.cjs → chunk-SXOMGGNC.cjs} +8 -8
  151. package/dist/{chunk-AYHL7EEE.cjs.map → chunk-SXOMGGNC.cjs.map} +1 -1
  152. package/dist/{chunk-OUHXNZBK.cjs → chunk-T7JR2CZV.cjs} +16 -16
  153. package/dist/{chunk-OUHXNZBK.cjs.map → chunk-T7JR2CZV.cjs.map} +1 -1
  154. package/dist/{chunk-GME4WQE6.js → chunk-TEIKCIX2.js} +5 -5
  155. package/dist/{chunk-GME4WQE6.js.map → chunk-TEIKCIX2.js.map} +1 -1
  156. package/dist/{chunk-7BZUW6TQ.cjs → chunk-TLBW3NWJ.cjs} +8 -8
  157. package/dist/{chunk-7BZUW6TQ.cjs.map → chunk-TLBW3NWJ.cjs.map} +1 -1
  158. package/dist/{chunk-MELQ2AU3.cjs → chunk-TPB44HAO.cjs} +10 -10
  159. package/dist/{chunk-MELQ2AU3.cjs.map → chunk-TPB44HAO.cjs.map} +1 -1
  160. package/dist/{chunk-PRDZRNPQ.cjs → chunk-TS2WBQFI.cjs} +13 -13
  161. package/dist/{chunk-PRDZRNPQ.cjs.map → chunk-TS2WBQFI.cjs.map} +1 -1
  162. package/dist/{chunk-6RHPKT2B.js → chunk-U5AYX5QW.js} +4 -4
  163. package/dist/{chunk-6RHPKT2B.js.map → chunk-U5AYX5QW.js.map} +1 -1
  164. package/dist/{chunk-HIGUQ2H3.js → chunk-UO4HGWYR.js} +3 -3
  165. package/dist/{chunk-HIGUQ2H3.js.map → chunk-UO4HGWYR.js.map} +1 -1
  166. package/dist/{chunk-H4LV3HUC.js → chunk-UWJ25WPB.js} +293 -287
  167. package/dist/chunk-UWJ25WPB.js.map +1 -0
  168. package/dist/{chunk-RNDEJYFW.cjs → chunk-W4XN6DDQ.cjs} +10 -10
  169. package/dist/{chunk-RNDEJYFW.cjs.map → chunk-W4XN6DDQ.cjs.map} +1 -1
  170. package/dist/{chunk-2WRJFEJK.js → chunk-WBPOFUFH.js} +3 -3
  171. package/dist/{chunk-2WRJFEJK.js.map → chunk-WBPOFUFH.js.map} +1 -1
  172. package/dist/chunk-WDLTCIDV.cjs +744 -0
  173. package/dist/{chunk-ZIFVFLJK.cjs.map → chunk-WDLTCIDV.cjs.map} +1 -1
  174. package/dist/{chunk-AKJHICI7.js → chunk-WJAV35G4.js} +4 -4
  175. package/dist/{chunk-AKJHICI7.js.map → chunk-WJAV35G4.js.map} +1 -1
  176. package/dist/{chunk-VHW5GZRA.js → chunk-WW37XHKJ.js} +4 -4
  177. package/dist/{chunk-VHW5GZRA.js.map → chunk-WW37XHKJ.js.map} +1 -1
  178. package/dist/{chunk-VMJ6UWBH.js → chunk-XFHXVKUV.js} +3 -3
  179. package/dist/{chunk-VMJ6UWBH.js.map → chunk-XFHXVKUV.js.map} +1 -1
  180. package/dist/{chunk-44HRN3OK.cjs → chunk-XNL6KN4F.cjs} +10 -10
  181. package/dist/{chunk-44HRN3OK.cjs.map → chunk-XNL6KN4F.cjs.map} +1 -1
  182. package/dist/{chunk-YS3A5BZH.cjs → chunk-XUKT5XLE.cjs} +37 -37
  183. package/dist/{chunk-YS3A5BZH.cjs.map → chunk-XUKT5XLE.cjs.map} +1 -1
  184. package/dist/{chunk-RQDW42XU.cjs → chunk-Y6BBB5S7.cjs} +8 -8
  185. package/dist/{chunk-RQDW42XU.cjs.map → chunk-Y6BBB5S7.cjs.map} +1 -1
  186. package/dist/{chunk-AD4P2UCI.cjs → chunk-YH4H2AJO.cjs} +8 -8
  187. package/dist/{chunk-AD4P2UCI.cjs.map → chunk-YH4H2AJO.cjs.map} +1 -1
  188. package/dist/{chunk-UVGAYAEV.js → chunk-Z2QGIB47.js} +4 -4
  189. package/dist/{chunk-UVGAYAEV.js.map → chunk-Z2QGIB47.js.map} +1 -1
  190. package/dist/{chunk-FYQHPT2E.js → chunk-Z5OBB3DJ.js} +3 -3
  191. package/dist/{chunk-FYQHPT2E.js.map → chunk-Z5OBB3DJ.js.map} +1 -1
  192. package/dist/{chunk-JCJIGPVP.cjs → chunk-ZG6ZAG5V.cjs} +41 -41
  193. package/dist/{chunk-JCJIGPVP.cjs.map → chunk-ZG6ZAG5V.cjs.map} +1 -1
  194. package/dist/{chunk-X6ZXQ3MZ.cjs → chunk-ZIBI62YT.cjs} +127 -95
  195. package/dist/chunk-ZIBI62YT.cjs.map +1 -0
  196. package/dist/{chunk-ZQLMTK5J.js → chunk-ZNGJHQKB.js} +3 -3
  197. package/dist/{chunk-ZQLMTK5J.js.map → chunk-ZNGJHQKB.js.map} +1 -1
  198. package/dist/{dist-2YFKAQMY.js → dist-3IOY4UDH.js} +3 -3
  199. package/dist/{dist-2YFKAQMY.js.map → dist-3IOY4UDH.js.map} +1 -1
  200. package/dist/{dist-JWLVQJFQ.js → dist-5PUBSY65.js} +3 -3
  201. package/dist/{dist-JWLVQJFQ.js.map → dist-5PUBSY65.js.map} +1 -1
  202. package/dist/{dist-MR5IMYFM.js → dist-5RUREC34.js} +9 -9
  203. package/dist/{dist-MR5IMYFM.js.map → dist-5RUREC34.js.map} +1 -1
  204. package/dist/{dist-WBYMZPKB.cjs → dist-7ROGUSJI.cjs} +26 -26
  205. package/dist/{dist-WBYMZPKB.cjs.map → dist-7ROGUSJI.cjs.map} +1 -1
  206. package/dist/dist-BJSMOQXN.cjs +16 -0
  207. package/dist/{dist-NYM3IQLY.cjs.map → dist-BJSMOQXN.cjs.map} +1 -1
  208. package/dist/{dist-6VCC76Q3.cjs → dist-I2O6YPDX.cjs} +30 -30
  209. package/dist/{dist-6VCC76Q3.cjs.map → dist-I2O6YPDX.cjs.map} +1 -1
  210. package/dist/{dist-M3P3YMJP.cjs → dist-I5TS34XK.cjs} +28 -28
  211. package/dist/{dist-M3P3YMJP.cjs.map → dist-I5TS34XK.cjs.map} +1 -1
  212. package/dist/{dist-J4UWKVDM.js → dist-IB5HRZQW.js} +3 -3
  213. package/dist/{dist-J4UWKVDM.js.map → dist-IB5HRZQW.js.map} +1 -1
  214. package/dist/{dist-QOH7MNRH.cjs → dist-RW46FX3B.cjs} +13 -13
  215. package/dist/{dist-QOH7MNRH.cjs.map → dist-RW46FX3B.cjs.map} +1 -1
  216. package/dist/dist-SOVT5P5X.js +3 -0
  217. package/dist/{dist-CB67HEFG.js.map → dist-SOVT5P5X.js.map} +1 -1
  218. package/dist/{dist-CIZY7VDE.cjs → dist-YPPUCXOD.cjs} +20 -20
  219. package/dist/{dist-CIZY7VDE.cjs.map → dist-YPPUCXOD.cjs.map} +1 -1
  220. package/dist/{dist-IPZQFQMB.js → dist-Z62354D3.js} +3 -3
  221. package/dist/{dist-IPZQFQMB.js.map → dist-Z62354D3.js.map} +1 -1
  222. package/dist/docs/SKILL.md +1 -1
  223. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  224. package/dist/{observational-memory-SF36C4XR-VIMLDSHT.cjs → observational-memory-OJN26RQ4-DTEVO3PP.cjs} +29 -29
  225. package/dist/{observational-memory-SF36C4XR-VIMLDSHT.cjs.map → observational-memory-OJN26RQ4-DTEVO3PP.cjs.map} +1 -1
  226. package/dist/{observational-memory-SF36C4XR-2DQQF4XZ.js → observational-memory-OJN26RQ4-QC5U3UMA.js} +3 -3
  227. package/dist/{observational-memory-SF36C4XR-2DQQF4XZ.js.map → observational-memory-OJN26RQ4-QC5U3UMA.js.map} +1 -1
  228. package/dist/server/handlers/a2a.cjs +14 -14
  229. package/dist/server/handlers/a2a.js +1 -1
  230. package/dist/server/handlers/agent-builder.cjs +17 -17
  231. package/dist/server/handlers/agent-builder.js +1 -1
  232. package/dist/server/handlers/agent-controller.cjs +35 -35
  233. package/dist/server/handlers/agent-controller.js +1 -1
  234. package/dist/server/handlers/agent-versions.cjs +8 -8
  235. package/dist/server/handlers/agent-versions.js +1 -1
  236. package/dist/server/handlers/agents.cjs +48 -48
  237. package/dist/server/handlers/agents.js +1 -1
  238. package/dist/server/handlers/auth.cjs +13 -13
  239. package/dist/server/handlers/auth.js +1 -1
  240. package/dist/server/handlers/background-tasks.cjs +4 -4
  241. package/dist/server/handlers/background-tasks.js +1 -1
  242. package/dist/server/handlers/builder-registry.cjs +6 -6
  243. package/dist/server/handlers/builder-registry.js +1 -1
  244. package/dist/server/handlers/channels.cjs +5 -5
  245. package/dist/server/handlers/channels.js +1 -1
  246. package/dist/server/handlers/conversations.cjs +5 -5
  247. package/dist/server/handlers/conversations.js +1 -1
  248. package/dist/server/handlers/datasets.cjs +26 -26
  249. package/dist/server/handlers/datasets.d.ts +16 -0
  250. package/dist/server/handlers/datasets.d.ts.map +1 -1
  251. package/dist/server/handlers/datasets.js +1 -1
  252. package/dist/server/handlers/editor-builder.cjs +6 -6
  253. package/dist/server/handlers/editor-builder.js +1 -1
  254. package/dist/server/handlers/favorites-enrichment.cjs +4 -4
  255. package/dist/server/handlers/favorites-enrichment.js +1 -1
  256. package/dist/server/handlers/logs.cjs +4 -4
  257. package/dist/server/handlers/logs.js +1 -1
  258. package/dist/server/handlers/mcp-client-versions.cjs +8 -8
  259. package/dist/server/handlers/mcp-client-versions.js +1 -1
  260. package/dist/server/handlers/mcp.cjs +11 -11
  261. package/dist/server/handlers/mcp.js +1 -1
  262. package/dist/server/handlers/memory.cjs +27 -27
  263. package/dist/server/handlers/memory.js +1 -1
  264. package/dist/server/handlers/observability-new-endpoints.cjs +29 -29
  265. package/dist/server/handlers/observability-new-endpoints.js +1 -1
  266. package/dist/server/handlers/observability-shared.cjs +9 -9
  267. package/dist/server/handlers/observability-shared.js +1 -1
  268. package/dist/server/handlers/observability.cjs +40 -40
  269. package/dist/server/handlers/observability.js +2 -2
  270. package/dist/server/handlers/processor-providers.cjs +3 -3
  271. package/dist/server/handlers/processor-providers.js +1 -1
  272. package/dist/server/handlers/processors.cjs +4 -4
  273. package/dist/server/handlers/processors.js +1 -1
  274. package/dist/server/handlers/prompt-block-versions.cjs +8 -8
  275. package/dist/server/handlers/prompt-block-versions.js +1 -1
  276. package/dist/server/handlers/responses.cjs +4 -4
  277. package/dist/server/handlers/responses.js +1 -1
  278. package/dist/server/handlers/schedules.cjs +10 -10
  279. package/dist/server/handlers/schedules.js +1 -1
  280. package/dist/server/handlers/scorer-versions.cjs +8 -8
  281. package/dist/server/handlers/scorer-versions.js +1 -1
  282. package/dist/server/handlers/scores.cjs +7 -7
  283. package/dist/server/handlers/scores.js +1 -1
  284. package/dist/server/handlers/stored-agent-favorites.cjs +3 -3
  285. package/dist/server/handlers/stored-agent-favorites.js +1 -1
  286. package/dist/server/handlers/stored-agents.cjs +10 -10
  287. package/dist/server/handlers/stored-agents.js +1 -1
  288. package/dist/server/handlers/stored-mcp-clients.cjs +6 -6
  289. package/dist/server/handlers/stored-mcp-clients.js +1 -1
  290. package/dist/server/handlers/stored-prompt-blocks.cjs +6 -6
  291. package/dist/server/handlers/stored-prompt-blocks.js +1 -1
  292. package/dist/server/handlers/stored-scorers.cjs +6 -6
  293. package/dist/server/handlers/stored-scorers.js +1 -1
  294. package/dist/server/handlers/stored-skill-favorites.cjs +3 -3
  295. package/dist/server/handlers/stored-skill-favorites.js +1 -1
  296. package/dist/server/handlers/stored-skills.cjs +7 -7
  297. package/dist/server/handlers/stored-skills.js +1 -1
  298. package/dist/server/handlers/stored-workspaces.cjs +6 -6
  299. package/dist/server/handlers/stored-workspaces.js +1 -1
  300. package/dist/server/handlers/system.cjs +3 -3
  301. package/dist/server/handlers/system.js +1 -1
  302. package/dist/server/handlers/tool-providers.cjs +14 -14
  303. package/dist/server/handlers/tool-providers.js +1 -1
  304. package/dist/server/handlers/tools.cjs +6 -6
  305. package/dist/server/handlers/tools.js +1 -1
  306. package/dist/server/handlers/vector.cjs +16 -16
  307. package/dist/server/handlers/vector.js +1 -1
  308. package/dist/server/handlers/workflows.cjs +27 -27
  309. package/dist/server/handlers/workflows.js +1 -1
  310. package/dist/server/handlers/workspace.cjs +26 -26
  311. package/dist/server/handlers/workspace.js +1 -1
  312. package/dist/server/handlers.cjs +28 -28
  313. package/dist/server/handlers.js +14 -14
  314. package/dist/server/schemas/datasets.d.ts +5 -0
  315. package/dist/server/schemas/datasets.d.ts.map +1 -1
  316. package/dist/server/schemas/index.cjs +43 -43
  317. package/dist/server/schemas/index.js +1 -1
  318. package/dist/server/server-adapter/index.cjs +21 -21
  319. package/dist/server/server-adapter/index.js +4 -4
  320. package/dist/server/server-adapter/routes/datasets.d.ts +16 -0
  321. package/dist/server/server-adapter/routes/datasets.d.ts.map +1 -1
  322. package/dist/working-memory-state-OMSMSYAW-6OXJFZFI.js +3 -0
  323. package/dist/{working-memory-state-OMSMSYAW-NEULPFZX.js.map → working-memory-state-OMSMSYAW-6OXJFZFI.js.map} +1 -1
  324. package/dist/working-memory-state-OMSMSYAW-GCNI4HPX.cjs +24 -0
  325. package/dist/{working-memory-state-OMSMSYAW-4THWAGFK.cjs.map → working-memory-state-OMSMSYAW-GCNI4HPX.cjs.map} +1 -1
  326. package/package.json +6 -6
  327. package/dist/chunk-2E3UBZ6Z.js.map +0 -1
  328. package/dist/chunk-BJESJLXW.cjs.map +0 -1
  329. package/dist/chunk-DMFYLU2A.js.map +0 -1
  330. package/dist/chunk-H4LV3HUC.js.map +0 -1
  331. package/dist/chunk-RRQZAJDZ.js.map +0 -1
  332. package/dist/chunk-TR2X57M3.cjs.map +0 -1
  333. package/dist/chunk-UY5FTPBZ.cjs.map +0 -1
  334. package/dist/chunk-X6ZXQ3MZ.cjs.map +0 -1
  335. package/dist/chunk-ZIFVFLJK.cjs +0 -744
  336. package/dist/dist-CB67HEFG.js +0 -3
  337. package/dist/dist-NYM3IQLY.cjs +0 -16
  338. package/dist/working-memory-state-OMSMSYAW-4THWAGFK.cjs +0 -24
  339. package/dist/working-memory-state-OMSMSYAW-NEULPFZX.js +0 -3
@@ -1476,7 +1476,7 @@ var require_dist = chunkO7I5CWRX_cjs.__commonJS({
1476
1476
  var t = new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 48, 8, 96, 3, 127, 127, 127, 1, 127, 96, 3, 127, 127, 127, 0, 96, 2, 127, 127, 0, 96, 1, 127, 1, 127, 96, 3, 127, 127, 126, 1, 126, 96, 3, 126, 127, 127, 1, 126, 96, 2, 127, 126, 0, 96, 1, 127, 1, 126, 3, 11, 10, 0, 0, 2, 1, 3, 4, 5, 6, 1, 7, 5, 3, 1, 0, 1, 7, 85, 9, 3, 109, 101, 109, 2, 0, 5, 120, 120, 104, 51, 50, 0, 0, 6, 105, 110, 105, 116, 51, 50, 0, 2, 8, 117, 112, 100, 97, 116, 101, 51, 50, 0, 3, 8, 100, 105, 103, 101, 115, 116, 51, 50, 0, 4, 5, 120, 120, 104, 54, 52, 0, 5, 6, 105, 110, 105, 116, 54, 52, 0, 7, 8, 117, 112, 100, 97, 116, 101, 54, 52, 0, 8, 8, 100, 105, 103, 101, 115, 116, 54, 52, 0, 9, 10, 251, 22, 10, 242, 1, 1, 4, 127, 32, 0, 32, 1, 106, 33, 3, 32, 1, 65, 16, 79, 4, 127, 32, 3, 65, 16, 107, 33, 6, 32, 2, 65, 168, 136, 141, 161, 2, 106, 33, 3, 32, 2, 65, 137, 235, 208, 208, 7, 107, 33, 4, 32, 2, 65, 207, 140, 162, 142, 6, 106, 33, 5, 3, 64, 32, 3, 32, 0, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 3, 32, 4, 32, 0, 65, 4, 106, 34, 0, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 4, 32, 2, 32, 0, 65, 4, 106, 34, 0, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 2, 32, 5, 32, 0, 65, 4, 106, 34, 0, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 5, 32, 6, 32, 0, 65, 4, 106, 34, 0, 79, 13, 0, 11, 32, 2, 65, 12, 119, 32, 5, 65, 18, 119, 106, 32, 4, 65, 7, 119, 106, 32, 3, 65, 1, 119, 106, 5, 32, 2, 65, 177, 207, 217, 178, 1, 106, 11, 32, 1, 106, 32, 0, 32, 1, 65, 15, 113, 16, 1, 11, 146, 1, 0, 32, 1, 32, 2, 106, 33, 2, 3, 64, 32, 1, 65, 4, 106, 32, 2, 75, 69, 4, 64, 32, 0, 32, 1, 40, 2, 0, 65, 189, 220, 202, 149, 124, 108, 106, 65, 17, 119, 65, 175, 214, 211, 190, 2, 108, 33, 0, 32, 1, 65, 4, 106, 33, 1, 12, 1, 11, 11, 3, 64, 32, 1, 32, 2, 79, 69, 4, 64, 32, 0, 32, 1, 45, 0, 0, 65, 177, 207, 217, 178, 1, 108, 106, 65, 11, 119, 65, 177, 243, 221, 241, 121, 108, 33, 0, 32, 1, 65, 1, 106, 33, 1, 12, 1, 11, 11, 32, 0, 32, 0, 65, 15, 118, 115, 65, 247, 148, 175, 175, 120, 108, 34, 0, 65, 13, 118, 32, 0, 115, 65, 189, 220, 202, 149, 124, 108, 34, 0, 65, 16, 118, 32, 0, 115, 11, 63, 0, 32, 0, 65, 8, 106, 32, 1, 65, 168, 136, 141, 161, 2, 106, 54, 2, 0, 32, 0, 65, 12, 106, 32, 1, 65, 137, 235, 208, 208, 7, 107, 54, 2, 0, 32, 0, 65, 16, 106, 32, 1, 54, 2, 0, 32, 0, 65, 20, 106, 32, 1, 65, 207, 140, 162, 142, 6, 106, 54, 2, 0, 11, 195, 4, 1, 6, 127, 32, 1, 32, 2, 106, 33, 6, 32, 0, 65, 24, 106, 33, 4, 32, 0, 65, 40, 106, 40, 2, 0, 33, 3, 32, 0, 32, 0, 40, 2, 0, 32, 2, 106, 54, 2, 0, 32, 0, 65, 4, 106, 34, 5, 32, 5, 40, 2, 0, 32, 2, 65, 16, 79, 32, 0, 40, 2, 0, 65, 16, 79, 114, 114, 54, 2, 0, 32, 2, 32, 3, 106, 65, 16, 73, 4, 64, 32, 3, 32, 4, 106, 32, 1, 32, 2, 252, 10, 0, 0, 32, 0, 65, 40, 106, 32, 2, 32, 3, 106, 54, 2, 0, 15, 11, 32, 3, 4, 64, 32, 3, 32, 4, 106, 32, 1, 65, 16, 32, 3, 107, 34, 2, 252, 10, 0, 0, 32, 0, 65, 8, 106, 34, 3, 32, 3, 40, 2, 0, 32, 4, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 54, 2, 0, 32, 0, 65, 12, 106, 34, 3, 32, 3, 40, 2, 0, 32, 4, 65, 4, 106, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 54, 2, 0, 32, 0, 65, 16, 106, 34, 3, 32, 3, 40, 2, 0, 32, 4, 65, 8, 106, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 54, 2, 0, 32, 0, 65, 20, 106, 34, 3, 32, 3, 40, 2, 0, 32, 4, 65, 12, 106, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 54, 2, 0, 32, 0, 65, 40, 106, 65, 0, 54, 2, 0, 32, 1, 32, 2, 106, 33, 1, 11, 32, 1, 32, 6, 65, 16, 107, 77, 4, 64, 32, 6, 65, 16, 107, 33, 8, 32, 0, 65, 8, 106, 40, 2, 0, 33, 2, 32, 0, 65, 12, 106, 40, 2, 0, 33, 3, 32, 0, 65, 16, 106, 40, 2, 0, 33, 5, 32, 0, 65, 20, 106, 40, 2, 0, 33, 7, 3, 64, 32, 2, 32, 1, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 2, 32, 3, 32, 1, 65, 4, 106, 34, 1, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 3, 32, 5, 32, 1, 65, 4, 106, 34, 1, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 5, 32, 7, 32, 1, 65, 4, 106, 34, 1, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 7, 32, 8, 32, 1, 65, 4, 106, 34, 1, 79, 13, 0, 11, 32, 0, 65, 8, 106, 32, 2, 54, 2, 0, 32, 0, 65, 12, 106, 32, 3, 54, 2, 0, 32, 0, 65, 16, 106, 32, 5, 54, 2, 0, 32, 0, 65, 20, 106, 32, 7, 54, 2, 0, 11, 32, 1, 32, 6, 73, 4, 64, 32, 4, 32, 1, 32, 6, 32, 1, 107, 34, 1, 252, 10, 0, 0, 32, 0, 65, 40, 106, 32, 1, 54, 2, 0, 11, 11, 97, 1, 1, 127, 32, 0, 65, 16, 106, 40, 2, 0, 33, 1, 32, 0, 65, 4, 106, 40, 2, 0, 4, 127, 32, 1, 65, 12, 119, 32, 0, 65, 20, 106, 40, 2, 0, 65, 18, 119, 106, 32, 0, 65, 12, 106, 40, 2, 0, 65, 7, 119, 106, 32, 0, 65, 8, 106, 40, 2, 0, 65, 1, 119, 106, 5, 32, 1, 65, 177, 207, 217, 178, 1, 106, 11, 32, 0, 40, 2, 0, 106, 32, 0, 65, 24, 106, 32, 0, 65, 40, 106, 40, 2, 0, 16, 1, 11, 255, 3, 2, 3, 126, 1, 127, 32, 0, 32, 1, 106, 33, 6, 32, 1, 65, 32, 79, 4, 126, 32, 6, 65, 32, 107, 33, 6, 32, 2, 66, 214, 235, 130, 238, 234, 253, 137, 245, 224, 0, 124, 33, 3, 32, 2, 66, 177, 169, 172, 193, 173, 184, 212, 166, 61, 125, 33, 4, 32, 2, 66, 249, 234, 208, 208, 231, 201, 161, 228, 225, 0, 124, 33, 5, 3, 64, 32, 3, 32, 0, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 3, 32, 4, 32, 0, 65, 8, 106, 34, 0, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 4, 32, 2, 32, 0, 65, 8, 106, 34, 0, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 2, 32, 5, 32, 0, 65, 8, 106, 34, 0, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 5, 32, 6, 32, 0, 65, 8, 106, 34, 0, 79, 13, 0, 11, 32, 2, 66, 12, 137, 32, 5, 66, 18, 137, 124, 32, 4, 66, 7, 137, 124, 32, 3, 66, 1, 137, 124, 32, 3, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 32, 4, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 32, 2, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 32, 5, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 5, 32, 2, 66, 197, 207, 217, 178, 241, 229, 186, 234, 39, 124, 11, 32, 1, 173, 124, 32, 0, 32, 1, 65, 31, 113, 16, 6, 11, 134, 2, 0, 32, 1, 32, 2, 106, 33, 2, 3, 64, 32, 2, 32, 1, 65, 8, 106, 79, 4, 64, 32, 1, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 32, 0, 133, 66, 27, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 33, 0, 32, 1, 65, 8, 106, 33, 1, 12, 1, 11, 11, 32, 1, 65, 4, 106, 32, 2, 77, 4, 64, 32, 0, 32, 1, 53, 2, 0, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 23, 137, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 249, 243, 221, 241, 153, 246, 153, 171, 22, 124, 33, 0, 32, 1, 65, 4, 106, 33, 1, 11, 3, 64, 32, 1, 32, 2, 73, 4, 64, 32, 0, 32, 1, 49, 0, 0, 66, 197, 207, 217, 178, 241, 229, 186, 234, 39, 126, 133, 66, 11, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 0, 32, 1, 65, 1, 106, 33, 1, 12, 1, 11, 11, 32, 0, 32, 0, 66, 33, 136, 133, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 34, 0, 32, 0, 66, 29, 136, 133, 66, 249, 243, 221, 241, 153, 246, 153, 171, 22, 126, 34, 0, 32, 0, 66, 32, 136, 133, 11, 77, 0, 32, 0, 65, 8, 106, 32, 1, 66, 214, 235, 130, 238, 234, 253, 137, 245, 224, 0, 124, 55, 3, 0, 32, 0, 65, 16, 106, 32, 1, 66, 177, 169, 172, 193, 173, 184, 212, 166, 61, 125, 55, 3, 0, 32, 0, 65, 24, 106, 32, 1, 55, 3, 0, 32, 0, 65, 32, 106, 32, 1, 66, 249, 234, 208, 208, 231, 201, 161, 228, 225, 0, 124, 55, 3, 0, 11, 244, 4, 2, 3, 127, 4, 126, 32, 1, 32, 2, 106, 33, 5, 32, 0, 65, 40, 106, 33, 4, 32, 0, 65, 200, 0, 106, 40, 2, 0, 33, 3, 32, 0, 32, 0, 41, 3, 0, 32, 2, 173, 124, 55, 3, 0, 32, 2, 32, 3, 106, 65, 32, 73, 4, 64, 32, 3, 32, 4, 106, 32, 1, 32, 2, 252, 10, 0, 0, 32, 0, 65, 200, 0, 106, 32, 2, 32, 3, 106, 54, 2, 0, 15, 11, 32, 3, 4, 64, 32, 3, 32, 4, 106, 32, 1, 65, 32, 32, 3, 107, 34, 2, 252, 10, 0, 0, 32, 0, 65, 8, 106, 34, 3, 32, 3, 41, 3, 0, 32, 4, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 55, 3, 0, 32, 0, 65, 16, 106, 34, 3, 32, 3, 41, 3, 0, 32, 4, 65, 8, 106, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 55, 3, 0, 32, 0, 65, 24, 106, 34, 3, 32, 3, 41, 3, 0, 32, 4, 65, 16, 106, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 55, 3, 0, 32, 0, 65, 32, 106, 34, 3, 32, 3, 41, 3, 0, 32, 4, 65, 24, 106, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 55, 3, 0, 32, 0, 65, 200, 0, 106, 65, 0, 54, 2, 0, 32, 1, 32, 2, 106, 33, 1, 11, 32, 1, 65, 32, 106, 32, 5, 77, 4, 64, 32, 5, 65, 32, 107, 33, 2, 32, 0, 65, 8, 106, 41, 3, 0, 33, 6, 32, 0, 65, 16, 106, 41, 3, 0, 33, 7, 32, 0, 65, 24, 106, 41, 3, 0, 33, 8, 32, 0, 65, 32, 106, 41, 3, 0, 33, 9, 3, 64, 32, 6, 32, 1, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 6, 32, 7, 32, 1, 65, 8, 106, 34, 1, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 7, 32, 8, 32, 1, 65, 8, 106, 34, 1, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 8, 32, 9, 32, 1, 65, 8, 106, 34, 1, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 9, 32, 2, 32, 1, 65, 8, 106, 34, 1, 79, 13, 0, 11, 32, 0, 65, 8, 106, 32, 6, 55, 3, 0, 32, 0, 65, 16, 106, 32, 7, 55, 3, 0, 32, 0, 65, 24, 106, 32, 8, 55, 3, 0, 32, 0, 65, 32, 106, 32, 9, 55, 3, 0, 11, 32, 1, 32, 5, 73, 4, 64, 32, 4, 32, 1, 32, 5, 32, 1, 107, 34, 1, 252, 10, 0, 0, 32, 0, 65, 200, 0, 106, 32, 1, 54, 2, 0, 11, 11, 188, 2, 1, 5, 126, 32, 0, 65, 24, 106, 41, 3, 0, 33, 1, 32, 0, 41, 3, 0, 34, 2, 66, 32, 90, 4, 126, 32, 0, 65, 8, 106, 41, 3, 0, 34, 3, 66, 1, 137, 32, 0, 65, 16, 106, 41, 3, 0, 34, 4, 66, 7, 137, 124, 32, 1, 66, 12, 137, 32, 0, 65, 32, 106, 41, 3, 0, 34, 5, 66, 18, 137, 124, 124, 32, 3, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 32, 4, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 32, 1, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 32, 5, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 5, 32, 1, 66, 197, 207, 217, 178, 241, 229, 186, 234, 39, 124, 11, 32, 2, 124, 32, 0, 65, 40, 106, 32, 2, 66, 31, 131, 167, 16, 6, 11]);
1477
1477
  async function e() {
1478
1478
  return (function(t2) {
1479
- const { exports: { mem: e2, xxh32: n, xxh64: r, init32: i, update32: a, digest32: o, init64: s, update64: u3, digest64: c } } = t2;
1479
+ const { exports: { mem: e2, xxh32: n, xxh64: r, init32: i, update32: a, digest32: o, init64: s, update64: u, digest64: c } } = t2;
1480
1480
  let h = new Uint8Array(e2.buffer);
1481
1481
  function g(t3, n2) {
1482
1482
  if (e2.buffer.byteLength < t3 + n2) {
@@ -1496,17 +1496,17 @@ async function e() {
1496
1496
  return t3 >>> 0;
1497
1497
  }
1498
1498
  const b = 2n ** 64n - 1n;
1499
- function d(t3) {
1499
+ function d3(t3) {
1500
1500
  return t3 & b;
1501
1501
  }
1502
1502
  const w = new TextEncoder(), l = 0, p = 0n;
1503
- function x(t3, e3 = l) {
1503
+ function x2(t3, e3 = l) {
1504
1504
  return g(3 * t3.length, 0), y(n(0, w.encodeInto(t3, h).written, e3));
1505
1505
  }
1506
1506
  function L2(t3, e3 = p) {
1507
- return g(3 * t3.length, 0), d(r(0, w.encodeInto(t3, h).written, e3));
1507
+ return g(3 * t3.length, 0), d3(r(0, w.encodeInto(t3, h).written, e3));
1508
1508
  }
1509
- return { h32: x, h32ToString: (t3, e3 = l) => x(t3, e3).toString(16).padStart(8, "0"), h32Raw: (t3, e3 = l) => (g(t3.byteLength, 0), h.set(t3), y(n(0, t3.byteLength, e3))), create32: (t3 = l) => f(48, t3, i, a, o, y), h64: L2, h64ToString: (t3, e3 = p) => L2(t3, e3).toString(16).padStart(16, "0"), h64Raw: (t3, e3 = p) => (g(t3.byteLength, 0), h.set(t3), d(r(0, t3.byteLength, e3))), create64: (t3 = p) => f(88, t3, s, u3, c, d) };
1509
+ return { h32: x2, h32ToString: (t3, e3 = l) => x2(t3, e3).toString(16).padStart(8, "0"), h32Raw: (t3, e3 = l) => (g(t3.byteLength, 0), h.set(t3), y(n(0, t3.byteLength, e3))), create32: (t3 = l) => f(48, t3, i, a, o, y), h64: L2, h64ToString: (t3, e3 = p) => L2(t3, e3).toString(16).padStart(16, "0"), h64Raw: (t3, e3 = p) => (g(t3.byteLength, 0), h.set(t3), d3(r(0, t3.byteLength, e3))), create64: (t3 = p) => f(88, t3, s, u, c, d3) };
1510
1510
  })((await WebAssembly.instantiate(t)).instance);
1511
1511
  }
1512
1512
 
@@ -1766,34 +1766,34 @@ var Mutex = class {
1766
1766
  };
1767
1767
  var S = diagnostics_channel.channel("lru-cache:metrics");
1768
1768
  var W = diagnostics_channel.tracingChannel("lru-cache");
1769
- var C = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
1770
- var D = () => S.hasSubscribers || W.hasSubscribers;
1769
+ var L = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
1770
+ var R = () => S.hasSubscribers || W.hasSubscribers;
1771
1771
  var U = /* @__PURE__ */ new Set();
1772
- var L = typeof process == "object" && process ? process : {};
1773
- var P = (u3, e2, t2, i) => {
1774
- typeof L.emitWarning == "function" ? L.emitWarning(u3, e2, t2, i) : console.error(`[${t2}] ${e2}: ${u3}`);
1772
+ var M = typeof process == "object" && process ? process : {};
1773
+ var k = (d3, e2, t2, i) => {
1774
+ typeof M.emitWarning == "function" ? M.emitWarning(d3, e2, t2, i) : console.error(`[${t2}] ${e2}: ${d3}`);
1775
1775
  };
1776
- var H = (u3) => !U.has(u3);
1777
- var F = (u3) => !!u3 && u3 === Math.floor(u3) && u3 > 0 && isFinite(u3);
1778
- var j = (u3) => F(u3) ? u3 <= Math.pow(2, 8) ? Uint8Array : u3 <= Math.pow(2, 16) ? Uint16Array : u3 <= Math.pow(2, 32) ? Uint32Array : u3 <= Number.MAX_SAFE_INTEGER ? O : null : null;
1776
+ var H = (d3) => !U.has(d3);
1777
+ var T = (d3) => !!d3 && d3 === Math.floor(d3) && d3 > 0 && isFinite(d3);
1778
+ var j = (d3) => T(d3) ? d3 <= Math.pow(2, 8) ? Uint8Array : d3 <= Math.pow(2, 16) ? Uint16Array : d3 <= Math.pow(2, 32) ? Uint32Array : d3 <= Number.MAX_SAFE_INTEGER ? O : null : null;
1779
1779
  var O = class extends Array {
1780
1780
  constructor(e2) {
1781
1781
  super(e2), this.fill(0);
1782
1782
  }
1783
1783
  };
1784
- var R = class u {
1784
+ var x = class d {
1785
1785
  heap;
1786
1786
  length;
1787
1787
  static #o = false;
1788
1788
  static create(e2) {
1789
1789
  let t2 = j(e2);
1790
1790
  if (!t2) return [];
1791
- u.#o = true;
1792
- let i = new u(e2, t2);
1793
- return u.#o = false, i;
1791
+ d.#o = true;
1792
+ let i = new d(e2, t2);
1793
+ return d.#o = false, i;
1794
1794
  }
1795
1795
  constructor(e2, t2) {
1796
- if (!u.#o) throw new TypeError("instantiate Stack using Stack.create(n)");
1796
+ if (!d.#o) throw new TypeError("instantiate Stack using Stack.create(n)");
1797
1797
  this.heap = new t2(e2), this.length = 0;
1798
1798
  }
1799
1799
  push(e2) {
@@ -1803,14 +1803,14 @@ var R = class u {
1803
1803
  return this.heap[--this.length];
1804
1804
  }
1805
1805
  };
1806
- var M = class u2 {
1806
+ var I = class d2 {
1807
1807
  #o;
1808
- #u;
1809
- #w;
1810
- #x;
1808
+ #c;
1811
1809
  #S;
1810
+ #O;
1811
+ #w;
1812
1812
  #M;
1813
- #U;
1813
+ #I;
1814
1814
  #m;
1815
1815
  get perf() {
1816
1816
  return this.#m;
@@ -1830,14 +1830,15 @@ var M = class u2 {
1830
1830
  allowStaleOnFetchAbort;
1831
1831
  allowStaleOnFetchRejection;
1832
1832
  ignoreFetchAbort;
1833
+ backgroundFetchSize;
1833
1834
  #n;
1834
1835
  #b;
1835
1836
  #s;
1836
1837
  #i;
1837
1838
  #t;
1838
- #a;
1839
- #c;
1840
1839
  #l;
1840
+ #u;
1841
+ #a;
1841
1842
  #h;
1842
1843
  #y;
1843
1844
  #r;
@@ -1846,12 +1847,12 @@ var M = class u2 {
1846
1847
  #d;
1847
1848
  #g;
1848
1849
  #T;
1849
- #W;
1850
+ #U;
1850
1851
  #f;
1851
- #j;
1852
+ #D;
1852
1853
  static unsafeExposeInternals(e2) {
1853
- return { starts: e2.#F, ttls: e2.#d, autopurgeTimers: e2.#g, sizes: e2.#_, keyMap: e2.#s, keyList: e2.#i, valList: e2.#t, next: e2.#a, prev: e2.#c, get head() {
1854
- return e2.#l;
1854
+ return { starts: e2.#F, ttls: e2.#d, autopurgeTimers: e2.#g, sizes: e2.#_, keyMap: e2.#s, keyList: e2.#i, valList: e2.#t, next: e2.#l, prev: e2.#u, get head() {
1855
+ return e2.#a;
1855
1856
  }, get tail() {
1856
1857
  return e2.#h;
1857
1858
  }, free: e2.#y, isBackgroundFetch: (t2) => e2.#e(t2), backgroundFetch: (t2, i, s, n) => e2.#P(t2, i, s, n), moveToTail: (t2) => e2.#L(t2), indexes: (t2) => e2.#A(t2), rindexes: (t2) => e2.#z(t2), isStale: (t2) => e2.#p(t2) };
@@ -1860,7 +1861,7 @@ var M = class u2 {
1860
1861
  return this.#o;
1861
1862
  }
1862
1863
  get maxSize() {
1863
- return this.#u;
1864
+ return this.#c;
1864
1865
  }
1865
1866
  get calculatedSize() {
1866
1867
  return this.#b;
@@ -1872,134 +1873,139 @@ var M = class u2 {
1872
1873
  return this.#M;
1873
1874
  }
1874
1875
  get memoMethod() {
1875
- return this.#U;
1876
+ return this.#I;
1876
1877
  }
1877
1878
  get dispose() {
1878
- return this.#w;
1879
+ return this.#S;
1879
1880
  }
1880
1881
  get onInsert() {
1881
- return this.#x;
1882
+ return this.#O;
1882
1883
  }
1883
1884
  get disposeAfter() {
1884
- return this.#S;
1885
+ return this.#w;
1885
1886
  }
1886
1887
  constructor(e2) {
1887
- let { max: t2 = 0, ttl: i, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet: o, updateAgeOnHas: r, allowStale: h, dispose: l, onInsert: c, disposeAfter: f, noDisposeOnSet: g, noUpdateTTL: p, maxSize: T = 0, maxEntrySize: w = 0, sizeCalculation: y, fetchMethod: a, memoMethod: m, noDeleteOnFetchRejection: _, noDeleteOnStaleGet: b, allowStaleOnFetchRejection: d, allowStaleOnFetchAbort: A, ignoreFetchAbort: z2, perf: x } = e2;
1888
- if (x !== void 0 && typeof x?.now != "function") throw new TypeError("perf option must have a now() method if specified");
1889
- if (this.#m = x ?? C, t2 !== 0 && !F(t2)) throw new TypeError("max option must be a nonnegative integer");
1888
+ let { max: t2 = 0, ttl: i, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet: o, updateAgeOnHas: l, allowStale: h, dispose: r, onInsert: c, disposeAfter: m, noDisposeOnSet: _, noUpdateTTL: u, maxSize: g = 0, maxEntrySize: f = 0, sizeCalculation: y, fetchMethod: a, memoMethod: w, noDeleteOnFetchRejection: F, noDeleteOnStaleGet: b, allowStaleOnFetchRejection: p, allowStaleOnFetchAbort: A, ignoreFetchAbort: z2, backgroundFetchSize: C = 1, perf: E } = e2;
1889
+ if (this.backgroundFetchSize = C, E !== void 0 && typeof E?.now != "function") throw new TypeError("perf option must have a now() method if specified");
1890
+ if (this.#m = E ?? L, t2 !== 0 && !T(t2)) throw new TypeError("max option must be a nonnegative integer");
1890
1891
  let v = t2 ? j(t2) : Array;
1891
1892
  if (!v) throw new Error("invalid max value: " + t2);
1892
- if (this.#o = t2, this.#u = T, this.maxEntrySize = w || this.#u, this.sizeCalculation = y, this.sizeCalculation) {
1893
- if (!this.#u && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
1893
+ if (this.#o = t2, this.#c = g, this.maxEntrySize = f || this.#c, this.sizeCalculation = y, this.sizeCalculation) {
1894
+ if (!this.#c && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
1894
1895
  if (typeof this.sizeCalculation != "function") throw new TypeError("sizeCalculation set to non-function");
1895
1896
  }
1896
- if (m !== void 0 && typeof m != "function") throw new TypeError("memoMethod must be a function if defined");
1897
- if (this.#U = m, a !== void 0 && typeof a != "function") throw new TypeError("fetchMethod must be a function if specified");
1898
- if (this.#M = a, this.#W = !!a, this.#s = /* @__PURE__ */ new Map(), this.#i = Array.from({ length: t2 }).fill(void 0), this.#t = Array.from({ length: t2 }).fill(void 0), this.#a = new v(t2), this.#c = new v(t2), this.#l = 0, this.#h = 0, this.#y = R.create(t2), this.#n = 0, this.#b = 0, typeof l == "function" && (this.#w = l), typeof c == "function" && (this.#x = c), typeof f == "function" ? (this.#S = f, this.#r = []) : (this.#S = void 0, this.#r = void 0), this.#T = !!this.#w, this.#j = !!this.#x, this.#f = !!this.#S, this.noDisposeOnSet = !!g, this.noUpdateTTL = !!p, this.noDeleteOnFetchRejection = !!_, this.allowStaleOnFetchRejection = !!d, this.allowStaleOnFetchAbort = !!A, this.ignoreFetchAbort = !!z2, this.maxEntrySize !== 0) {
1899
- if (this.#u !== 0 && !F(this.#u)) throw new TypeError("maxSize must be a positive integer if specified");
1900
- if (!F(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
1897
+ if (w !== void 0 && typeof w != "function") throw new TypeError("memoMethod must be a function if defined");
1898
+ if (this.#I = w, a !== void 0 && typeof a != "function") throw new TypeError("fetchMethod must be a function if specified");
1899
+ if (this.#M = a, this.#U = !!a, this.#s = /* @__PURE__ */ new Map(), this.#i = Array.from({ length: t2 }).fill(void 0), this.#t = Array.from({ length: t2 }).fill(void 0), this.#l = new v(t2), this.#u = new v(t2), this.#a = 0, this.#h = 0, this.#y = x.create(t2), this.#n = 0, this.#b = 0, typeof r == "function" && (this.#S = r), typeof c == "function" && (this.#O = c), typeof m == "function" ? (this.#w = m, this.#r = []) : (this.#w = void 0, this.#r = void 0), this.#T = !!this.#S, this.#D = !!this.#O, this.#f = !!this.#w, this.noDisposeOnSet = !!_, this.noUpdateTTL = !!u, this.noDeleteOnFetchRejection = !!F, this.allowStaleOnFetchRejection = !!p, this.allowStaleOnFetchAbort = !!A, this.ignoreFetchAbort = !!z2, this.maxEntrySize !== 0) {
1900
+ if (this.#c !== 0 && !T(this.#c)) throw new TypeError("maxSize must be a positive integer if specified");
1901
+ if (!T(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
1901
1902
  this.#X();
1902
1903
  }
1903
- if (this.allowStale = !!h, this.noDeleteOnStaleGet = !!b, this.updateAgeOnGet = !!o, this.updateAgeOnHas = !!r, this.ttlResolution = F(s) || s === 0 ? s : 1, this.ttlAutopurge = !!n, this.ttl = i || 0, this.ttl) {
1904
- if (!F(this.ttl)) throw new TypeError("ttl must be a positive integer if specified");
1905
- this.#H();
1904
+ if (this.allowStale = !!h, this.noDeleteOnStaleGet = !!b, this.updateAgeOnGet = !!o, this.updateAgeOnHas = !!l, this.ttlResolution = T(s) || s === 0 ? s : 1, this.ttlAutopurge = !!n, this.ttl = i || 0, this.ttl) {
1905
+ if (!T(this.ttl)) throw new TypeError("ttl must be a positive integer if specified");
1906
+ this.#k();
1906
1907
  }
1907
- if (this.#o === 0 && this.ttl === 0 && this.#u === 0) throw new TypeError("At least one of max, maxSize, or ttl is required");
1908
- if (!this.ttlAutopurge && !this.#o && !this.#u) {
1909
- let E = "LRU_CACHE_UNBOUNDED";
1910
- H(E) && (U.add(E), P("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", E, u2));
1908
+ if (this.#o === 0 && this.ttl === 0 && this.#c === 0) throw new TypeError("At least one of max, maxSize, or ttl is required");
1909
+ if (!this.ttlAutopurge && !this.#o && !this.#c) {
1910
+ let D = "LRU_CACHE_UNBOUNDED";
1911
+ H(D) && (U.add(D), k("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", D, d2));
1911
1912
  }
1912
1913
  }
1913
1914
  getRemainingTTL(e2) {
1914
1915
  return this.#s.has(e2) ? 1 / 0 : 0;
1915
1916
  }
1916
- #H() {
1917
+ #k() {
1917
1918
  let e2 = new O(this.#o), t2 = new O(this.#o);
1918
1919
  this.#d = e2, this.#F = t2;
1919
1920
  let i = this.ttlAutopurge ? Array.from({ length: this.#o }) : void 0;
1920
- this.#g = i, this.#N = (r, h, l = this.#m.now()) => {
1921
- t2[r] = h !== 0 ? l : 0, e2[r] = h, s(r, h);
1922
- }, this.#D = (r) => {
1923
- t2[r] = e2[r] !== 0 ? this.#m.now() : 0, s(r, e2[r]);
1924
- };
1925
- let s = this.ttlAutopurge ? (r, h) => {
1926
- if (i?.[r] && (clearTimeout(i[r]), i[r] = void 0), h && h !== 0 && i) {
1927
- let l = setTimeout(() => {
1928
- this.#p(r) && this.#v(this.#i[r], "expire");
1929
- }, h + 1);
1930
- l.unref && l.unref(), i[r] = l;
1921
+ this.#g = i, this.#H = (h, r, c = this.#m.now()) => {
1922
+ t2[h] = r !== 0 ? c : 0, e2[h] = r, s(h, r);
1923
+ }, this.#R = (h) => {
1924
+ t2[h] = e2[h] !== 0 ? this.#m.now() : 0, s(h, e2[h]);
1925
+ };
1926
+ let s = this.ttlAutopurge ? (h, r) => {
1927
+ if (i?.[h] && (clearTimeout(i[h]), i[h] = void 0), r && r !== 0 && i) {
1928
+ let c = setTimeout(() => {
1929
+ this.#p(h) ? (this.#E(this.#i[h], "expire"), i[h] = void 0) : s(h, l(h));
1930
+ }, r + 1);
1931
+ c.unref && c.unref(), i[h] = c;
1931
1932
  }
1932
1933
  } : () => {
1933
1934
  };
1934
- this.#E = (r, h) => {
1935
- if (e2[h]) {
1936
- let l = e2[h], c = t2[h];
1937
- if (!l || !c) return;
1938
- r.ttl = l, r.start = c, r.now = n || o();
1939
- let f = r.now - c;
1940
- r.remainingTTL = l - f;
1935
+ this.#v = (h, r) => {
1936
+ if (e2[r]) {
1937
+ let c = e2[r], m = t2[r];
1938
+ if (!c || !m) return;
1939
+ h.ttl = c, h.start = m, h.now = n || o();
1940
+ let _ = h.now - m;
1941
+ h.remainingTTL = c - _;
1941
1942
  }
1942
1943
  };
1943
1944
  let n = 0, o = () => {
1944
- let r = this.#m.now();
1945
+ let h = this.#m.now();
1945
1946
  if (this.ttlResolution > 0) {
1946
- n = r;
1947
- let h = setTimeout(() => n = 0, this.ttlResolution);
1948
- h.unref && h.unref();
1947
+ n = h;
1948
+ let r = setTimeout(() => n = 0, this.ttlResolution);
1949
+ r.unref && r.unref();
1949
1950
  }
1950
- return r;
1951
+ return h;
1952
+ };
1953
+ this.getRemainingTTL = (h) => {
1954
+ let r = this.#s.get(h);
1955
+ return r === void 0 ? 0 : l(r);
1951
1956
  };
1952
- this.getRemainingTTL = (r) => {
1953
- let h = this.#s.get(r);
1954
- if (h === void 0) return 0;
1955
- let l = e2[h], c = t2[h];
1956
- if (!l || !c) return 1 / 0;
1957
- let f = (n || o()) - c;
1958
- return l - f;
1959
- }, this.#p = (r) => {
1960
- let h = t2[r], l = e2[r];
1961
- return !!l && !!h && (n || o()) - h > l;
1957
+ let l = (h) => {
1958
+ let r = e2[h], c = t2[h];
1959
+ if (!r || !c) return 1 / 0;
1960
+ let m = (n || o()) - c;
1961
+ return r - m;
1962
+ };
1963
+ this.#p = (h) => {
1964
+ let r = t2[h], c = e2[h];
1965
+ return !!c && !!r && (n || o()) - r > c;
1962
1966
  };
1963
1967
  }
1964
- #D = () => {
1968
+ #R = () => {
1965
1969
  };
1966
- #E = () => {
1970
+ #v = () => {
1967
1971
  };
1968
- #N = () => {
1972
+ #H = () => {
1969
1973
  };
1970
1974
  #p = () => false;
1971
1975
  #X() {
1972
1976
  let e2 = new O(this.#o);
1973
- this.#b = 0, this.#_ = e2, this.#R = (t2) => {
1977
+ this.#b = 0, this.#_ = e2, this.#x = (t2) => {
1974
1978
  this.#b -= e2[t2], e2[t2] = 0;
1975
- }, this.#k = (t2, i, s, n) => {
1976
- if (this.#e(i)) return 0;
1977
- if (!F(s)) if (n) {
1978
- if (typeof n != "function") throw new TypeError("sizeCalculation must be a function");
1979
- if (s = n(i, t2), !F(s)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
1980
- } else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
1979
+ }, this.#N = (t2, i, s, n) => {
1980
+ if (!T(s)) {
1981
+ if (this.#e(i)) return this.backgroundFetchSize;
1982
+ if (n) {
1983
+ if (typeof n != "function") throw new TypeError("sizeCalculation must be a function");
1984
+ if (s = n(i, t2), !T(s)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
1985
+ } else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
1986
+ }
1981
1987
  return s;
1982
- }, this.#I = (t2, i, s) => {
1983
- if (e2[t2] = i, this.#u) {
1984
- let n = this.#u - e2[t2];
1988
+ }, this.#j = (t2, i, s) => {
1989
+ if (e2[t2] = i, this.#c) {
1990
+ let n = this.#c - e2[t2];
1985
1991
  for (; this.#b > n; ) this.#G(true);
1986
1992
  }
1987
1993
  this.#b += e2[t2], s && (s.entrySize = i, s.totalCalculatedSize = this.#b);
1988
1994
  };
1989
1995
  }
1990
- #R = (e2) => {
1996
+ #x = (e2) => {
1991
1997
  };
1992
- #I = (e2, t2, i) => {
1998
+ #j = (e2, t2, i) => {
1993
1999
  };
1994
- #k = (e2, t2, i, s) => {
2000
+ #N = (e2, t2, i, s) => {
1995
2001
  if (i || s) throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
1996
2002
  return 0;
1997
2003
  };
1998
2004
  *#A({ allowStale: e2 = this.allowStale } = {}) {
1999
- if (this.#n) for (let t2 = this.#h; this.#V(t2) && ((e2 || !this.#p(t2)) && (yield t2), t2 !== this.#l); ) t2 = this.#c[t2];
2005
+ if (this.#n) for (let t2 = this.#h; this.#V(t2) && ((e2 || !this.#p(t2)) && (yield t2), t2 !== this.#a); ) t2 = this.#u[t2];
2000
2006
  }
2001
2007
  *#z({ allowStale: e2 = this.allowStale } = {}) {
2002
- if (this.#n) for (let t2 = this.#l; this.#V(t2) && ((e2 || !this.#p(t2)) && (yield t2), t2 !== this.#h); ) t2 = this.#a[t2];
2008
+ if (this.#n) for (let t2 = this.#a; this.#V(t2) && ((e2 || !this.#p(t2)) && (yield t2), t2 !== this.#h); ) t2 = this.#l[t2];
2003
2009
  }
2004
2010
  #V(e2) {
2005
2011
  return e2 !== void 0 && this.#s.get(this.#i[e2]) === e2;
@@ -2052,7 +2058,7 @@ var M = class u2 {
2052
2058
  }
2053
2059
  purgeStale() {
2054
2060
  let e2 = false;
2055
- for (let t2 of this.#z({ allowStale: true })) this.#p(t2) && (this.#v(this.#i[t2], "expire"), e2 = true);
2061
+ for (let t2 of this.#z({ allowStale: true })) this.#p(t2) && (this.#E(this.#i[t2], "expire"), e2 = true);
2056
2062
  return e2;
2057
2063
  }
2058
2064
  info(e2) {
@@ -2062,9 +2068,9 @@ var M = class u2 {
2062
2068
  if (s === void 0) return;
2063
2069
  let n = { value: s };
2064
2070
  if (this.#d && this.#F) {
2065
- let o = this.#d[t2], r = this.#F[t2];
2066
- if (o && r) {
2067
- let h = o - (this.#m.now() - r);
2071
+ let o = this.#d[t2], l = this.#F[t2];
2072
+ if (o && l) {
2073
+ let h = o - (this.#m.now() - l);
2068
2074
  n.ttl = h, n.start = Date.now();
2069
2075
  }
2070
2076
  }
@@ -2078,8 +2084,8 @@ var M = class u2 {
2078
2084
  let o = { value: n };
2079
2085
  if (this.#d && this.#F) {
2080
2086
  o.ttl = this.#d[t2];
2081
- let r = this.#m.now() - this.#F[t2];
2082
- o.start = Math.floor(Date.now() - r);
2087
+ let l = this.#m.now() - this.#F[t2];
2088
+ o.start = Math.floor(Date.now() - l);
2083
2089
  }
2084
2090
  this.#_ && (o.size = this.#_[t2]), e2.unshift([i, o]);
2085
2091
  }
@@ -2092,51 +2098,49 @@ var M = class u2 {
2092
2098
  let s = Date.now() - i.start;
2093
2099
  i.start = this.#m.now() - s;
2094
2100
  }
2095
- this.#O(t2, i.value, i);
2101
+ this.#W(t2, i.value, i);
2096
2102
  }
2097
2103
  }
2098
2104
  set(e2, t2, i = {}) {
2099
2105
  let { status: s = S.hasSubscribers ? {} : void 0 } = i;
2100
- i.status = s, s && (s.op = "set", s.key = e2, t2 !== void 0 && (s.value = t2));
2101
- let n = this.#O(e2, t2, i);
2106
+ i.status = s, s && (s.op = "set", s.key = e2, t2 !== void 0 && (s.value = t2), s.cache = this);
2107
+ let n = this.#W(e2, t2, i);
2102
2108
  return s && S.hasSubscribers && S.publish(s), n;
2103
2109
  }
2104
- #O(e2, t2, i = {}) {
2105
- let { ttl: s = this.ttl, start: n, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: r = this.sizeCalculation, status: h } = i;
2106
- if (t2 === void 0) return h && (h.set = "deleted"), this.delete(e2), this;
2107
- let { noUpdateTTL: l = this.noUpdateTTL } = i;
2108
- h && !this.#e(t2) && (h.value = t2);
2109
- let c = this.#k(e2, t2, i.size || 0, r, h);
2110
- if (this.maxEntrySize && c > this.maxEntrySize) return this.#v(e2, "set"), h && (h.set = "miss", h.maxEntrySizeExceeded = true), this;
2111
- let f = this.#n === 0 ? void 0 : this.#s.get(e2);
2112
- if (f === void 0) f = this.#n === 0 ? this.#h : this.#y.length !== 0 ? this.#y.pop() : this.#n === this.#o ? this.#G(false) : this.#n, this.#i[f] = e2, this.#t[f] = t2, this.#s.set(e2, f), this.#a[this.#h] = f, this.#c[f] = this.#h, this.#h = f, this.#n++, this.#I(f, c, h), h && (h.set = "add"), l = false, this.#j && this.#x?.(t2, e2, "add");
2110
+ #W(e2, t2, i, s) {
2111
+ let { ttl: n = this.ttl, start: o, noDisposeOnSet: l = this.noDisposeOnSet, sizeCalculation: h = this.sizeCalculation, status: r } = i, c = this.#e(t2);
2112
+ if (t2 === void 0) return r && (r.set = "deleted"), this.delete(e2), this;
2113
+ let { noUpdateTTL: m = this.noUpdateTTL } = i;
2114
+ r && !c && (r.value = t2);
2115
+ let _ = this.#N(e2, t2, i.size || 0, h, r);
2116
+ if (this.maxEntrySize && _ > this.maxEntrySize) return this.#E(e2, "set"), r && (r.set = "miss", r.maxEntrySizeExceeded = true), this;
2117
+ let u = this.#n === 0 ? void 0 : this.#s.get(e2);
2118
+ if (u === void 0) u = this.#n === 0 ? this.#h : this.#y.length !== 0 ? this.#y.pop() : this.#n === this.#o ? this.#G(false) : this.#n, this.#i[u] = e2, this.#t[u] = t2, this.#s.set(e2, u), this.#l[this.#h] = u, this.#u[u] = this.#h, this.#h = u, this.#n++, this.#j(u, _, r), r && (r.set = "add"), m = false, this.#D && !c && this.#O?.(t2, e2, "add");
2113
2119
  else {
2114
- this.#L(f);
2115
- let g = this.#t[f];
2120
+ this.#L(u);
2121
+ let g = this.#t[u];
2116
2122
  if (t2 !== g) {
2117
- if (this.#W && this.#e(g)) {
2118
- g.__abortController.abort(new Error("replaced"));
2119
- let { __staleWhileFetching: p } = g;
2120
- p !== void 0 && !o && (this.#T && this.#w?.(p, e2, "set"), this.#f && this.#r?.push([p, e2, "set"]));
2121
- } else o || (this.#T && this.#w?.(g, e2, "set"), this.#f && this.#r?.push([g, e2, "set"]));
2122
- if (this.#R(f), this.#I(f, c, h), this.#t[f] = t2, h) {
2123
- h.set = "replace";
2124
- let p = g && this.#e(g) ? g.__staleWhileFetching : g;
2125
- p !== void 0 && (h.oldValue = p);
2126
- }
2127
- } else h && (h.set = "update");
2128
- this.#j && this.onInsert?.(t2, e2, t2 === g ? "update" : "replace");
2129
- }
2130
- if (s !== 0 && !this.#d && this.#H(), this.#d && (l || this.#N(f, s, n), h && this.#E(h, f)), !o && this.#f && this.#r) {
2131
- let g = this.#r, p;
2132
- for (; p = g?.shift(); ) this.#S?.(...p);
2123
+ if (!l) if (this.#e(g)) {
2124
+ g !== s && g.__abortController.abort(new Error("replaced"));
2125
+ let { __staleWhileFetching: f } = g;
2126
+ f !== void 0 && f !== t2 && (this.#T && this.#S?.(f, e2, "set"), this.#f && this.#r?.push([f, e2, "set"]));
2127
+ } else this.#T && this.#S?.(g, e2, "set"), this.#f && this.#r?.push([g, e2, "set"]);
2128
+ if (this.#x(u), this.#j(u, _, r), this.#t[u] = t2, !c) {
2129
+ let f = g && this.#e(g) ? g.__staleWhileFetching : g, y = f === void 0 ? "add" : t2 !== f ? "replace" : "update";
2130
+ r && (r.set = y, f !== void 0 && (r.oldValue = f)), this.#D && this.onInsert?.(t2, e2, y);
2131
+ }
2132
+ } else c || (r && (r.set = "update"), this.#D && this.onInsert?.(t2, e2, "update"));
2133
+ }
2134
+ if (n !== 0 && !this.#d && this.#k(), this.#d && (m || this.#H(u, n, o), r && this.#v(r, u)), !l && this.#f && this.#r) {
2135
+ let g = this.#r, f;
2136
+ for (; f = g?.shift(); ) this.#w?.(...f);
2133
2137
  }
2134
2138
  return this;
2135
2139
  }
2136
2140
  pop() {
2137
2141
  try {
2138
2142
  for (; this.#n; ) {
2139
- let e2 = this.#t[this.#l];
2143
+ let e2 = this.#t[this.#a];
2140
2144
  if (this.#G(true), this.#e(e2)) {
2141
2145
  if (e2.__staleWhileFetching) return e2.__staleWhileFetching;
2142
2146
  } else if (e2 !== void 0) return e2;
@@ -2144,17 +2148,19 @@ var M = class u2 {
2144
2148
  } finally {
2145
2149
  if (this.#f && this.#r) {
2146
2150
  let e2 = this.#r, t2;
2147
- for (; t2 = e2?.shift(); ) this.#S?.(...t2);
2151
+ for (; t2 = e2?.shift(); ) this.#w?.(...t2);
2148
2152
  }
2149
2153
  }
2150
2154
  }
2151
2155
  #G(e2) {
2152
- let t2 = this.#l, i = this.#i[t2], s = this.#t[t2];
2153
- return this.#W && this.#e(s) ? s.__abortController.abort(new Error("evicted")) : (this.#T || this.#f) && (this.#T && this.#w?.(s, i, "evict"), this.#f && this.#r?.push([s, i, "evict"])), this.#R(t2), this.#g?.[t2] && (clearTimeout(this.#g[t2]), this.#g[t2] = void 0), e2 && (this.#i[t2] = void 0, this.#t[t2] = void 0, this.#y.push(t2)), this.#n === 1 ? (this.#l = this.#h = 0, this.#y.length = 0) : this.#l = this.#a[t2], this.#s.delete(i), this.#n--, t2;
2156
+ let t2 = this.#a, i = this.#i[t2], s = this.#t[t2], n = this.#e(s);
2157
+ n && s.__abortController.abort(new Error("evicted"));
2158
+ let o = n ? s.__staleWhileFetching : s;
2159
+ return (this.#T || this.#f) && o !== void 0 && (this.#T && this.#S?.(o, i, "evict"), this.#f && this.#r?.push([o, i, "evict"])), this.#x(t2), this.#g?.[t2] && (clearTimeout(this.#g[t2]), this.#g[t2] = void 0), e2 && (this.#i[t2] = void 0, this.#t[t2] = void 0, this.#y.push(t2)), this.#n === 1 ? (this.#a = this.#h = 0, this.#y.length = 0) : this.#a = this.#l[t2], this.#s.delete(i), this.#n--, t2;
2154
2160
  }
2155
2161
  has(e2, t2 = {}) {
2156
2162
  let { status: i = S.hasSubscribers ? {} : void 0 } = t2;
2157
- t2.status = i, i && (i.op = "has", i.key = e2);
2163
+ t2.status = i, i && (i.op = "has", i.key = e2, i.cache = this);
2158
2164
  let s = this.#Y(e2, t2);
2159
2165
  return S.hasSubscribers && S.publish(i), s;
2160
2166
  }
@@ -2163,14 +2169,14 @@ var M = class u2 {
2163
2169
  if (n !== void 0) {
2164
2170
  let o = this.#t[n];
2165
2171
  if (this.#e(o) && o.__staleWhileFetching === void 0) return false;
2166
- if (this.#p(n)) s && (s.has = "stale", this.#E(s, n));
2167
- else return i && this.#D(n), s && (s.has = "hit", this.#E(s, n)), true;
2172
+ if (this.#p(n)) s && (s.has = "stale", this.#v(s, n));
2173
+ else return i && this.#R(n), s && (s.has = "hit", this.#v(s, n)), true;
2168
2174
  } else s && (s.has = "miss");
2169
2175
  return false;
2170
2176
  }
2171
2177
  peek(e2, t2 = {}) {
2172
- let { status: i = D() ? {} : void 0 } = t2;
2173
- i && (i.op = "peek", i.key = e2), t2.status = i;
2178
+ let { status: i = R() ? {} : void 0 } = t2;
2179
+ i && (i.op = "peek", i.key = e2, i.cache = this), t2.status = i;
2174
2180
  let s = this.#J(e2, t2);
2175
2181
  return S.hasSubscribers && S.publish(i), s;
2176
2182
  }
@@ -2180,67 +2186,67 @@ var M = class u2 {
2180
2186
  i && (i.peek = n === void 0 ? "miss" : "stale");
2181
2187
  return;
2182
2188
  }
2183
- let o = this.#t[n], r = this.#e(o) ? o.__staleWhileFetching : o;
2184
- return i && (r !== void 0 ? (i.peek = "hit", i.value = r) : i.peek = "miss"), r;
2189
+ let o = this.#t[n], l = this.#e(o) ? o.__staleWhileFetching : o;
2190
+ return i && (l !== void 0 ? (i.peek = "hit", i.value = l) : i.peek = "miss"), l;
2185
2191
  }
2186
2192
  #P(e2, t2, i, s) {
2187
2193
  let n = t2 === void 0 ? void 0 : this.#t[t2];
2188
2194
  if (this.#e(n)) return n;
2189
- let o = new AbortController(), { signal: r } = i;
2190
- r?.addEventListener("abort", () => o.abort(r.reason), { signal: o.signal });
2191
- let h = { signal: o.signal, options: i, context: s }, l = (w, y = false) => {
2192
- let { aborted: a } = o.signal, m = i.ignoreFetchAbort && w !== void 0, _ = i.ignoreFetchAbort || !!(i.allowStaleOnFetchAbort && w !== void 0);
2193
- if (i.status && (a && !y ? (i.status.fetchAborted = true, i.status.fetchError = o.signal.reason, m && (i.status.fetchAbortIgnored = true)) : i.status.fetchResolved = true), a && !m && !y) return f(o.signal.reason, _);
2194
- let b = p, d = this.#t[t2];
2195
- return (d === p || d === void 0 && m && y) && (w === void 0 ? b.__staleWhileFetching !== void 0 ? this.#t[t2] = b.__staleWhileFetching : this.#v(e2, "fetch") : (i.status && (i.status.fetchUpdated = true), this.#O(e2, w, h.options))), w;
2196
- }, c = (w) => (i.status && (i.status.fetchRejected = true, i.status.fetchError = w), f(w, false)), f = (w, y) => {
2197
- let { aborted: a } = o.signal, m = a && i.allowStaleOnFetchAbort, _ = m || i.allowStaleOnFetchRejection, b = _ || i.noDeleteOnFetchRejection, d = p;
2198
- if (this.#t[t2] === p && (!b || !y && d.__staleWhileFetching === void 0 ? this.#v(e2, "fetch") : m || (this.#t[t2] = d.__staleWhileFetching)), _) return i.status && d.__staleWhileFetching !== void 0 && (i.status.returnedStale = true), d.__staleWhileFetching;
2199
- if (d.__returned === d) throw w;
2200
- }, g = (w, y) => {
2195
+ let o = new AbortController(), { signal: l } = i;
2196
+ l?.addEventListener("abort", () => o.abort(l.reason), { signal: o.signal });
2197
+ let h = { signal: o.signal, options: i, context: s }, r = (f, y = false) => {
2198
+ let { aborted: a } = o.signal, w = i.ignoreFetchAbort && f !== void 0, F = i.ignoreFetchAbort || !!(i.allowStaleOnFetchAbort && f !== void 0);
2199
+ if (i.status && (a && !y ? (i.status.fetchAborted = true, i.status.fetchError = o.signal.reason, w && (i.status.fetchAbortIgnored = true)) : i.status.fetchResolved = true), a && !w && !y) return m(o.signal.reason, F);
2200
+ let b = u, p = this.#t[t2];
2201
+ return (p === u || p === void 0 && w && y) && (f === void 0 ? b.__staleWhileFetching !== void 0 ? this.#t[t2] = b.__staleWhileFetching : this.#E(e2, "fetch") : (i.status && (i.status.fetchUpdated = true), this.#W(e2, f, h.options, b))), f;
2202
+ }, c = (f) => (i.status && (i.status.fetchRejected = true, i.status.fetchError = f), m(f, false)), m = (f, y) => {
2203
+ let { aborted: a } = o.signal, w = a && i.allowStaleOnFetchAbort, F = w || i.allowStaleOnFetchRejection, b = F || i.noDeleteOnFetchRejection, p = u;
2204
+ if (this.#t[t2] === u && (!b || !y && p.__staleWhileFetching === void 0 ? this.#E(e2, "fetch") : w || (this.#t[t2] = p.__staleWhileFetching)), F) return i.status && p.__staleWhileFetching !== void 0 && (i.status.returnedStale = true), p.__staleWhileFetching;
2205
+ if (p.__returned === p) throw f;
2206
+ }, _ = (f, y) => {
2201
2207
  let a = this.#M?.(e2, n, h);
2202
- a && a instanceof Promise && a.then((m) => w(m === void 0 ? void 0 : m), y), o.signal.addEventListener("abort", () => {
2203
- (!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (w(void 0), i.allowStaleOnFetchAbort && (w = (m) => l(m, true)));
2204
- });
2208
+ o.signal.addEventListener("abort", () => {
2209
+ (!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (f(void 0), i.allowStaleOnFetchAbort && (f = (w) => r(w, true)));
2210
+ }), a && a instanceof Promise ? a.then((w) => f(w === void 0 ? void 0 : w), y) : a !== void 0 && f(a);
2205
2211
  };
2206
2212
  i.status && (i.status.fetchDispatched = true);
2207
- let p = new Promise(g).then(l, c), T = Object.assign(p, { __abortController: o, __staleWhileFetching: n, __returned: void 0 });
2208
- return t2 === void 0 ? (this.#O(e2, T, { ...h.options, status: void 0 }), t2 = this.#s.get(e2)) : this.#t[t2] = T, T;
2213
+ let u = new Promise(_).then(r, c), g = Object.assign(u, { __abortController: o, __staleWhileFetching: n, __returned: void 0 });
2214
+ return t2 === void 0 ? (this.#W(e2, g, { ...h.options, status: void 0 }), t2 = this.#s.get(e2)) : this.#t[t2] = g, g;
2209
2215
  }
2210
2216
  #e(e2) {
2211
- if (!this.#W) return false;
2217
+ if (!this.#U) return false;
2212
2218
  let t2 = e2;
2213
2219
  return !!t2 && t2 instanceof Promise && t2.hasOwnProperty("__staleWhileFetching") && t2.__abortController instanceof AbortController;
2214
2220
  }
2215
2221
  fetch(e2, t2 = {}) {
2216
- let i = W.hasSubscribers, { status: s = D() ? {} : void 0 } = t2;
2222
+ let i = W.hasSubscribers, { status: s = R() ? {} : void 0 } = t2;
2217
2223
  t2.status = s, s && t2.context && (s.context = t2.context);
2218
2224
  let n = this.#B(e2, t2);
2219
2225
  return s && i && (s.trace = true, W.tracePromise(() => n, s).catch(() => {
2220
2226
  })), n;
2221
2227
  }
2222
2228
  async #B(e2, t2 = {}) {
2223
- let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: r = this.noDisposeOnSet, size: h = 0, sizeCalculation: l = this.sizeCalculation, noUpdateTTL: c = this.noUpdateTTL, noDeleteOnFetchRejection: f = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: g = this.allowStaleOnFetchRejection, ignoreFetchAbort: p = this.ignoreFetchAbort, allowStaleOnFetchAbort: T = this.allowStaleOnFetchAbort, context: w, forceRefresh: y = false, status: a, signal: m } = t2;
2224
- if (a && (a.op = "fetch", a.key = e2, y && (a.forceRefresh = true)), !this.#W) return a && (a.fetch = "get"), this.#C(e2, { allowStale: i, updateAgeOnGet: s, noDeleteOnStaleGet: n, status: a });
2225
- let _ = { allowStale: i, updateAgeOnGet: s, noDeleteOnStaleGet: n, ttl: o, noDisposeOnSet: r, size: h, sizeCalculation: l, noUpdateTTL: c, noDeleteOnFetchRejection: f, allowStaleOnFetchRejection: g, allowStaleOnFetchAbort: T, ignoreFetchAbort: p, status: a, signal: m }, b = this.#s.get(e2);
2229
+ let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: l = this.noDisposeOnSet, size: h = 0, sizeCalculation: r = this.sizeCalculation, noUpdateTTL: c = this.noUpdateTTL, noDeleteOnFetchRejection: m = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: _ = this.allowStaleOnFetchRejection, ignoreFetchAbort: u = this.ignoreFetchAbort, allowStaleOnFetchAbort: g = this.allowStaleOnFetchAbort, context: f, forceRefresh: y = false, status: a, signal: w } = t2;
2230
+ if (a && (a.op = "fetch", a.key = e2, y && (a.forceRefresh = true), a.cache = this), !this.#U) return a && (a.fetch = "get"), this.#C(e2, { allowStale: i, updateAgeOnGet: s, noDeleteOnStaleGet: n, status: a });
2231
+ let F = { allowStale: i, updateAgeOnGet: s, noDeleteOnStaleGet: n, ttl: o, noDisposeOnSet: l, size: h, sizeCalculation: r, noUpdateTTL: c, noDeleteOnFetchRejection: m, allowStaleOnFetchRejection: _, allowStaleOnFetchAbort: g, ignoreFetchAbort: u, status: a, signal: w }, b = this.#s.get(e2);
2226
2232
  if (b === void 0) {
2227
2233
  a && (a.fetch = "miss");
2228
- let d = this.#P(e2, b, _, w);
2229
- return d.__returned = d;
2234
+ let p = this.#P(e2, b, F, f);
2235
+ return p.__returned = p;
2230
2236
  } else {
2231
- let d = this.#t[b];
2232
- if (this.#e(d)) {
2233
- let E = i && d.__staleWhileFetching !== void 0;
2234
- return a && (a.fetch = "inflight", E && (a.returnedStale = true)), E ? d.__staleWhileFetching : d.__returned = d;
2237
+ let p = this.#t[b];
2238
+ if (this.#e(p)) {
2239
+ let v = i && p.__staleWhileFetching !== void 0;
2240
+ return a && (a.fetch = "inflight", v && (a.returnedStale = true)), v ? p.__staleWhileFetching : p.__returned = p;
2235
2241
  }
2236
2242
  let A = this.#p(b);
2237
- if (!y && !A) return a && (a.fetch = "hit"), this.#L(b), s && this.#D(b), a && this.#E(a, b), d;
2238
- let z2 = this.#P(e2, b, _, w), v = z2.__staleWhileFetching !== void 0 && i;
2239
- return a && (a.fetch = A ? "stale" : "refresh", v && A && (a.returnedStale = true)), v ? z2.__staleWhileFetching : z2.__returned = z2;
2243
+ if (!y && !A) return a && (a.fetch = "hit"), this.#L(b), s && this.#R(b), a && this.#v(a, b), p;
2244
+ let z2 = this.#P(e2, b, F, f), E = z2.__staleWhileFetching !== void 0 && i;
2245
+ return a && (a.fetch = A ? "stale" : "refresh", E && A && (a.returnedStale = true)), E ? z2.__staleWhileFetching : z2.__returned = z2;
2240
2246
  }
2241
2247
  }
2242
2248
  forceFetch(e2, t2 = {}) {
2243
- let i = W.hasSubscribers, { status: s = D() ? {} : void 0 } = t2;
2249
+ let i = W.hasSubscribers, { status: s = R() ? {} : void 0 } = t2;
2244
2250
  t2.status = s, s && t2.context && (s.context = t2.context);
2245
2251
  let n = this.#K(e2, t2);
2246
2252
  return s && i && (s.trace = true, W.tracePromise(() => n, s).catch(() => {
@@ -2253,67 +2259,67 @@ var M = class u2 {
2253
2259
  }
2254
2260
  memo(e2, t2 = {}) {
2255
2261
  let { status: i = S.hasSubscribers ? {} : void 0 } = t2;
2256
- t2.status = i, i && (i.op = "memo", i.key = e2, t2.context && (i.context = t2.context));
2262
+ t2.status = i, i && (i.op = "memo", i.key = e2, t2.context && (i.context = t2.context), i.cache = this);
2257
2263
  let s = this.#Q(e2, t2);
2258
2264
  return i && (i.value = s), S.hasSubscribers && S.publish(i), s;
2259
2265
  }
2260
2266
  #Q(e2, t2 = {}) {
2261
- let i = this.#U;
2267
+ let i = this.#I;
2262
2268
  if (!i) throw new Error("no memoMethod provided to constructor");
2263
- let { context: s, status: n, forceRefresh: o, ...r } = t2;
2269
+ let { context: s, status: n, forceRefresh: o, ...l } = t2;
2264
2270
  n && o && (n.forceRefresh = true);
2265
- let h = this.#C(e2, r), l = o || h === void 0;
2266
- if (n && (n.memo = l ? "miss" : "hit", l || (n.value = h)), !l) return h;
2267
- let c = i(e2, h, { options: r, context: s });
2268
- return n && (n.value = c), this.#O(e2, c, r), c;
2271
+ let h = this.#C(e2, l), r = o || h === void 0;
2272
+ if (n && (n.memo = r ? "miss" : "hit", r || (n.value = h)), !r) return h;
2273
+ let c = i(e2, h, { options: l, context: s });
2274
+ return n && (n.value = c), this.#W(e2, c, l), c;
2269
2275
  }
2270
2276
  get(e2, t2 = {}) {
2271
2277
  let { status: i = S.hasSubscribers ? {} : void 0 } = t2;
2272
- t2.status = i, i && (i.op = "get", i.key = e2);
2278
+ t2.status = i, i && (i.op = "get", i.key = e2, i.cache = this);
2273
2279
  let s = this.#C(e2, t2);
2274
2280
  return i && (s !== void 0 && (i.value = s), S.hasSubscribers && S.publish(i)), s;
2275
2281
  }
2276
2282
  #C(e2, t2 = {}) {
2277
- let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, status: o } = t2, r = this.#s.get(e2);
2278
- if (r === void 0) {
2283
+ let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, status: o } = t2, l = this.#s.get(e2);
2284
+ if (l === void 0) {
2279
2285
  o && (o.get = "miss");
2280
2286
  return;
2281
2287
  }
2282
- let h = this.#t[r], l = this.#e(h);
2283
- return o && this.#E(o, r), this.#p(r) ? l ? (o && (o.get = "stale-fetching"), i && h.__staleWhileFetching !== void 0 ? (o && (o.returnedStale = true), h.__staleWhileFetching) : void 0) : (n || this.#v(e2, "expire"), o && (o.get = "stale"), i ? (o && (o.returnedStale = true), h) : void 0) : (o && (o.get = l ? "fetching" : "hit"), this.#L(r), s && this.#D(r), l ? h.__staleWhileFetching : h);
2288
+ let h = this.#t[l], r = this.#e(h);
2289
+ return o && this.#v(o, l), this.#p(l) ? r ? (o && (o.get = "stale-fetching"), i && h.__staleWhileFetching !== void 0 ? (o && (o.returnedStale = true), h.__staleWhileFetching) : void 0) : (n || this.#E(e2, "expire"), o && (o.get = "stale"), i ? (o && (o.returnedStale = true), h) : void 0) : (o && (o.get = r ? "fetching" : "hit"), this.#L(l), s && this.#R(l), r ? h.__staleWhileFetching : h);
2284
2290
  }
2285
2291
  #$(e2, t2) {
2286
- this.#c[t2] = e2, this.#a[e2] = t2;
2292
+ this.#u[t2] = e2, this.#l[e2] = t2;
2287
2293
  }
2288
2294
  #L(e2) {
2289
- e2 !== this.#h && (e2 === this.#l ? this.#l = this.#a[e2] : this.#$(this.#c[e2], this.#a[e2]), this.#$(this.#h, e2), this.#h = e2);
2295
+ e2 !== this.#h && (e2 === this.#a ? this.#a = this.#l[e2] : this.#$(this.#u[e2], this.#l[e2]), this.#$(this.#h, e2), this.#h = e2);
2290
2296
  }
2291
2297
  delete(e2) {
2292
- return this.#v(e2, "delete");
2298
+ return this.#E(e2, "delete");
2293
2299
  }
2294
- #v(e2, t2) {
2295
- S.hasSubscribers && S.publish({ op: "delete", delete: t2, key: e2 });
2300
+ #E(e2, t2) {
2301
+ S.hasSubscribers && S.publish({ op: "delete", delete: t2, key: e2, cache: this });
2296
2302
  let i = false;
2297
2303
  if (this.#n !== 0) {
2298
2304
  let s = this.#s.get(e2);
2299
- if (s !== void 0) if (this.#g?.[s] && (clearTimeout(this.#g?.[s]), this.#g[s] = void 0), i = true, this.#n === 1) this.#q(t2);
2305
+ if (s !== void 0) if (this.#g?.[s] && (clearTimeout(this.#g[s]), this.#g[s] = void 0), i = true, this.#n === 1) this.#q(t2);
2300
2306
  else {
2301
- this.#R(s);
2307
+ this.#x(s);
2302
2308
  let n = this.#t[s];
2303
- if (this.#e(n) ? n.__abortController.abort(new Error("deleted")) : (this.#T || this.#f) && (this.#T && this.#w?.(n, e2, t2), this.#f && this.#r?.push([n, e2, t2])), this.#s.delete(e2), this.#i[s] = void 0, this.#t[s] = void 0, s === this.#h) this.#h = this.#c[s];
2304
- else if (s === this.#l) this.#l = this.#a[s];
2309
+ if (this.#e(n) ? n.__abortController.abort(new Error("deleted")) : (this.#T || this.#f) && (this.#T && this.#S?.(n, e2, t2), this.#f && this.#r?.push([n, e2, t2])), this.#s.delete(e2), this.#i[s] = void 0, this.#t[s] = void 0, s === this.#h) this.#h = this.#u[s];
2310
+ else if (s === this.#a) this.#a = this.#l[s];
2305
2311
  else {
2306
- let o = this.#c[s];
2307
- this.#a[o] = this.#a[s];
2308
- let r = this.#a[s];
2309
- this.#c[r] = this.#c[s];
2312
+ let o = this.#u[s];
2313
+ this.#l[o] = this.#l[s];
2314
+ let l = this.#l[s];
2315
+ this.#u[l] = this.#u[s];
2310
2316
  }
2311
2317
  this.#n--, this.#y.push(s);
2312
2318
  }
2313
2319
  }
2314
2320
  if (this.#f && this.#r?.length) {
2315
2321
  let s = this.#r, n;
2316
- for (; n = s?.shift(); ) this.#S?.(...n);
2322
+ for (; n = s?.shift(); ) this.#w?.(...n);
2317
2323
  }
2318
2324
  return i;
2319
2325
  }
@@ -2326,7 +2332,7 @@ var M = class u2 {
2326
2332
  if (this.#e(i)) i.__abortController.abort(new Error("deleted"));
2327
2333
  else {
2328
2334
  let s = this.#i[t2];
2329
- this.#T && this.#w?.(i, s, e2), this.#f && this.#r?.push([i, s, e2]);
2335
+ this.#T && this.#S?.(i, s, e2), this.#f && this.#r?.push([i, s, e2]);
2330
2336
  }
2331
2337
  }
2332
2338
  if (this.#s.clear(), this.#t.fill(void 0), this.#i.fill(void 0), this.#d && this.#F) {
@@ -2334,14 +2340,14 @@ var M = class u2 {
2334
2340
  for (let t2 of this.#g ?? []) t2 !== void 0 && clearTimeout(t2);
2335
2341
  this.#g?.fill(void 0);
2336
2342
  }
2337
- if (this.#_ && this.#_.fill(0), this.#l = 0, this.#h = 0, this.#y.length = 0, this.#b = 0, this.#n = 0, this.#f && this.#r) {
2343
+ if (this.#_ && this.#_.fill(0), this.#a = 0, this.#h = 0, this.#y.length = 0, this.#b = 0, this.#n = 0, this.#f && this.#r) {
2338
2344
  let t2 = this.#r, i;
2339
- for (; i = t2?.shift(); ) this.#S?.(...i);
2345
+ for (; i = t2?.shift(); ) this.#w?.(...i);
2340
2346
  }
2341
2347
  }
2342
2348
  };
2343
2349
 
2344
- // ../memory/dist/chunk-KJT62NHY.js
2350
+ // ../memory/dist/chunk-6ACCFKAN.js
2345
2351
  var import_image_size = chunkO7I5CWRX_cjs.__toESM(require_dist(), 1);
2346
2352
  var MINUTE = 6e4;
2347
2353
  var HOUR = 60 * MINUTE;
@@ -7808,7 +7814,7 @@ function parseIntersectionDef(def, refs) {
7808
7814
  ...refs,
7809
7815
  currentPath: [...refs.currentPath, "allOf", "1"]
7810
7816
  })
7811
- ].filter((x) => !!x);
7817
+ ].filter((x2) => !!x2);
7812
7818
  let unevaluatedProperties = refs.target === "jsonSchema2019-09" ? { unevaluatedProperties: false } : void 0;
7813
7819
  const mergedAllOf = [];
7814
7820
  allOf.forEach((schema) => {
@@ -8037,7 +8043,7 @@ function escapeNonAlphaNumeric(source) {
8037
8043
  return result;
8038
8044
  }
8039
8045
  function addFormat(schema, value, message, refs) {
8040
- if (schema.format || schema.anyOf?.some((x) => x.format)) {
8046
+ if (schema.format || schema.anyOf?.some((x2) => x2.format)) {
8041
8047
  if (!schema.anyOf) {
8042
8048
  schema.anyOf = [];
8043
8049
  }
@@ -8065,7 +8071,7 @@ function addFormat(schema, value, message, refs) {
8065
8071
  }
8066
8072
  }
8067
8073
  function addPattern(schema, regex, message, refs) {
8068
- if (schema.pattern || schema.allOf?.some((x) => x.pattern)) {
8074
+ if (schema.pattern || schema.allOf?.some((x2) => x2.pattern)) {
8069
8075
  if (!schema.allOf) {
8070
8076
  schema.allOf = [];
8071
8077
  }
@@ -8273,17 +8279,17 @@ function parseUnionDef(def, refs) {
8273
8279
  if (refs.target === "openApi3")
8274
8280
  return asAnyOf(def, refs);
8275
8281
  const options = def.options instanceof Map ? Array.from(def.options.values()) : def.options;
8276
- if (options.every((x) => x._def.typeName in primitiveMappings && (!x._def.checks || !x._def.checks.length))) {
8277
- const types = options.reduce((types2, x) => {
8278
- const type = primitiveMappings[x._def.typeName];
8282
+ if (options.every((x2) => x2._def.typeName in primitiveMappings && (!x2._def.checks || !x2._def.checks.length))) {
8283
+ const types = options.reduce((types2, x2) => {
8284
+ const type = primitiveMappings[x2._def.typeName];
8279
8285
  return type && !types2.includes(type) ? [...types2, type] : types2;
8280
8286
  }, []);
8281
8287
  return {
8282
8288
  type: types.length > 1 ? types : types[0]
8283
8289
  };
8284
- } else if (options.every((x) => x._def.typeName === "ZodLiteral" && !x.description)) {
8285
- const types = options.reduce((acc, x) => {
8286
- const type = typeof x._def.value;
8290
+ } else if (options.every((x2) => x2._def.typeName === "ZodLiteral" && !x2.description)) {
8291
+ const types = options.reduce((acc, x2) => {
8292
+ const type = typeof x2._def.value;
8287
8293
  switch (type) {
8288
8294
  case "string":
8289
8295
  case "number":
@@ -8292,7 +8298,7 @@ function parseUnionDef(def, refs) {
8292
8298
  case "bigint":
8293
8299
  return [...acc, "integer"];
8294
8300
  case "object":
8295
- if (x._def.value === null)
8301
+ if (x2._def.value === null)
8296
8302
  return [...acc, "null"];
8297
8303
  case "symbol":
8298
8304
  case "undefined":
@@ -8302,30 +8308,30 @@ function parseUnionDef(def, refs) {
8302
8308
  }
8303
8309
  }, []);
8304
8310
  if (types.length === options.length) {
8305
- const uniqueTypes = types.filter((x, i, a) => a.indexOf(x) === i);
8311
+ const uniqueTypes = types.filter((x2, i, a) => a.indexOf(x2) === i);
8306
8312
  return {
8307
8313
  type: uniqueTypes.length > 1 ? uniqueTypes : uniqueTypes[0],
8308
- enum: options.reduce((acc, x) => {
8309
- return acc.includes(x._def.value) ? acc : [...acc, x._def.value];
8314
+ enum: options.reduce((acc, x2) => {
8315
+ return acc.includes(x2._def.value) ? acc : [...acc, x2._def.value];
8310
8316
  }, [])
8311
8317
  };
8312
8318
  }
8313
- } else if (options.every((x) => x._def.typeName === "ZodEnum")) {
8319
+ } else if (options.every((x2) => x2._def.typeName === "ZodEnum")) {
8314
8320
  return {
8315
8321
  type: "string",
8316
- enum: options.reduce((acc, x) => [
8322
+ enum: options.reduce((acc, x2) => [
8317
8323
  ...acc,
8318
- ...x._def.values.filter((x2) => !acc.includes(x2))
8324
+ ...x2._def.values.filter((x22) => !acc.includes(x22))
8319
8325
  ], [])
8320
8326
  };
8321
8327
  }
8322
8328
  return asAnyOf(def, refs);
8323
8329
  }
8324
8330
  var asAnyOf = (def, refs) => {
8325
- const anyOf = (def.options instanceof Map ? Array.from(def.options.values()) : def.options).map((x, i) => parseDef(x._def, {
8331
+ const anyOf = (def.options instanceof Map ? Array.from(def.options.values()) : def.options).map((x2, i) => parseDef(x2._def, {
8326
8332
  ...refs,
8327
8333
  currentPath: [...refs.currentPath, "anyOf", `${i}`]
8328
- })).filter((x) => !!x && (!refs.strictUnions || typeof x === "object" && Object.keys(x).length > 0));
8334
+ })).filter((x2) => !!x2 && (!refs.strictUnions || typeof x2 === "object" && Object.keys(x2).length > 0));
8329
8335
  return anyOf.length ? { anyOf } : void 0;
8330
8336
  };
8331
8337
  function parseNullableDef(def, refs) {
@@ -8505,7 +8511,7 @@ var parsePipelineDef = (def, refs) => {
8505
8511
  currentPath: [...refs.currentPath, "allOf", a ? "1" : "0"]
8506
8512
  });
8507
8513
  return {
8508
- allOf: [a, b].filter((x) => x !== void 0)
8514
+ allOf: [a, b].filter((x2) => x2 !== void 0)
8509
8515
  };
8510
8516
  };
8511
8517
  function parsePromiseDef(def, refs) {
@@ -8534,10 +8540,10 @@ function parseTupleDef(def, refs) {
8534
8540
  return {
8535
8541
  type: "array",
8536
8542
  minItems: def.items.length,
8537
- items: def.items.map((x, i) => parseDef(x._def, {
8543
+ items: def.items.map((x2, i) => parseDef(x2._def, {
8538
8544
  ...refs,
8539
8545
  currentPath: [...refs.currentPath, "items", `${i}`]
8540
- })).reduce((acc, x) => x === void 0 ? acc : [...acc, x], []),
8546
+ })).reduce((acc, x2) => x2 === void 0 ? acc : [...acc, x2], []),
8541
8547
  additionalItems: parseDef(def.rest._def, {
8542
8548
  ...refs,
8543
8549
  currentPath: [...refs.currentPath, "additionalItems"]
@@ -8548,10 +8554,10 @@ function parseTupleDef(def, refs) {
8548
8554
  type: "array",
8549
8555
  minItems: def.items.length,
8550
8556
  maxItems: def.items.length,
8551
- items: def.items.map((x, i) => parseDef(x._def, {
8557
+ items: def.items.map((x2, i) => parseDef(x2._def, {
8552
8558
  ...refs,
8553
8559
  currentPath: [...refs.currentPath, "items", `${i}`]
8554
- })).reduce((acc, x) => x === void 0 ? acc : [...acc, x], [])
8560
+ })).reduce((acc, x2) => x2 === void 0 ? acc : [...acc, x2], [])
8555
8561
  };
8556
8562
  }
8557
8563
  }
@@ -12524,7 +12530,7 @@ function parseIntersectionDef2(def, refs) {
12524
12530
  ...refs,
12525
12531
  currentPath: [...refs.currentPath, "allOf", "1"]
12526
12532
  })
12527
- ].filter((x) => !!x);
12533
+ ].filter((x2) => !!x2);
12528
12534
  const mergedAllOf = [];
12529
12535
  allOf.forEach((schema) => {
12530
12536
  if (isJsonSchema7AllOfType2(schema)) {
@@ -12759,7 +12765,7 @@ function escapeNonAlphaNumeric2(source) {
12759
12765
  }
12760
12766
  function addFormat2(schema, value, message, refs) {
12761
12767
  var _a223;
12762
- if (schema.format || ((_a223 = schema.anyOf) == null ? void 0 : _a223.some((x) => x.format))) {
12768
+ if (schema.format || ((_a223 = schema.anyOf) == null ? void 0 : _a223.some((x2) => x2.format))) {
12763
12769
  if (!schema.anyOf) {
12764
12770
  schema.anyOf = [];
12765
12771
  }
@@ -12779,7 +12785,7 @@ function addFormat2(schema, value, message, refs) {
12779
12785
  }
12780
12786
  function addPattern2(schema, regex, message, refs) {
12781
12787
  var _a223;
12782
- if (schema.pattern || ((_a223 = schema.allOf) == null ? void 0 : _a223.some((x) => x.pattern))) {
12788
+ if (schema.pattern || ((_a223 = schema.allOf) == null ? void 0 : _a223.some((x2) => x2.pattern))) {
12783
12789
  if (!schema.allOf) {
12784
12790
  schema.allOf = [];
12785
12791
  }
@@ -12958,19 +12964,19 @@ var primitiveMappings2 = {
12958
12964
  function parseUnionDef2(def, refs) {
12959
12965
  const options = def.options instanceof Map ? Array.from(def.options.values()) : def.options;
12960
12966
  if (options.every(
12961
- (x) => x._def.typeName in primitiveMappings2 && (!x._def.checks || !x._def.checks.length)
12967
+ (x2) => x2._def.typeName in primitiveMappings2 && (!x2._def.checks || !x2._def.checks.length)
12962
12968
  )) {
12963
- const types = options.reduce((types2, x) => {
12964
- const type = primitiveMappings2[x._def.typeName];
12969
+ const types = options.reduce((types2, x2) => {
12970
+ const type = primitiveMappings2[x2._def.typeName];
12965
12971
  return type && !types2.includes(type) ? [...types2, type] : types2;
12966
12972
  }, []);
12967
12973
  return {
12968
12974
  type: types.length > 1 ? types : types[0]
12969
12975
  };
12970
- } else if (options.every((x) => x._def.typeName === "ZodLiteral" && !x.description)) {
12976
+ } else if (options.every((x2) => x2._def.typeName === "ZodLiteral" && !x2.description)) {
12971
12977
  const types = options.reduce(
12972
- (acc, x) => {
12973
- const type = typeof x._def.value;
12978
+ (acc, x2) => {
12979
+ const type = typeof x2._def.value;
12974
12980
  switch (type) {
12975
12981
  case "string":
12976
12982
  case "number":
@@ -12979,7 +12985,7 @@ function parseUnionDef2(def, refs) {
12979
12985
  case "bigint":
12980
12986
  return [...acc, "integer"];
12981
12987
  case "object":
12982
- if (x._def.value === null) return [...acc, "null"];
12988
+ if (x2._def.value === null) return [...acc, "null"];
12983
12989
  case "symbol":
12984
12990
  case "undefined":
12985
12991
  case "function":
@@ -12990,24 +12996,24 @@ function parseUnionDef2(def, refs) {
12990
12996
  []
12991
12997
  );
12992
12998
  if (types.length === options.length) {
12993
- const uniqueTypes = types.filter((x, i, a) => a.indexOf(x) === i);
12999
+ const uniqueTypes = types.filter((x2, i, a) => a.indexOf(x2) === i);
12994
13000
  return {
12995
13001
  type: uniqueTypes.length > 1 ? uniqueTypes : uniqueTypes[0],
12996
13002
  enum: options.reduce(
12997
- (acc, x) => {
12998
- return acc.includes(x._def.value) ? acc : [...acc, x._def.value];
13003
+ (acc, x2) => {
13004
+ return acc.includes(x2._def.value) ? acc : [...acc, x2._def.value];
12999
13005
  },
13000
13006
  []
13001
13007
  )
13002
13008
  };
13003
13009
  }
13004
- } else if (options.every((x) => x._def.typeName === "ZodEnum")) {
13010
+ } else if (options.every((x2) => x2._def.typeName === "ZodEnum")) {
13005
13011
  return {
13006
13012
  type: "string",
13007
13013
  enum: options.reduce(
13008
- (acc, x) => [
13014
+ (acc, x2) => [
13009
13015
  ...acc,
13010
- ...x._def.values.filter((x2) => !acc.includes(x2))
13016
+ ...x2._def.values.filter((x22) => !acc.includes(x22))
13011
13017
  ],
13012
13018
  []
13013
13019
  )
@@ -13017,12 +13023,12 @@ function parseUnionDef2(def, refs) {
13017
13023
  }
13018
13024
  var asAnyOf2 = (def, refs) => {
13019
13025
  const anyOf = (def.options instanceof Map ? Array.from(def.options.values()) : def.options).map(
13020
- (x, i) => parseDef2(x._def, {
13026
+ (x2, i) => parseDef2(x2._def, {
13021
13027
  ...refs,
13022
13028
  currentPath: [...refs.currentPath, "anyOf", `${i}`]
13023
13029
  })
13024
13030
  ).filter(
13025
- (x) => !!x && (!refs.strictUnions || typeof x === "object" && Object.keys(x).length > 0)
13031
+ (x2) => !!x2 && (!refs.strictUnions || typeof x2 === "object" && Object.keys(x2).length > 0)
13026
13032
  );
13027
13033
  return anyOf.length ? { anyOf } : void 0;
13028
13034
  };
@@ -13158,7 +13164,7 @@ var parsePipelineDef2 = (def, refs) => {
13158
13164
  currentPath: [...refs.currentPath, "allOf", a ? "1" : "0"]
13159
13165
  });
13160
13166
  return {
13161
- allOf: [a, b].filter((x) => x !== void 0)
13167
+ allOf: [a, b].filter((x2) => x2 !== void 0)
13162
13168
  };
13163
13169
  };
13164
13170
  function parsePromiseDef2(def, refs) {
@@ -13188,12 +13194,12 @@ function parseTupleDef2(def, refs) {
13188
13194
  type: "array",
13189
13195
  minItems: def.items.length,
13190
13196
  items: def.items.map(
13191
- (x, i) => parseDef2(x._def, {
13197
+ (x2, i) => parseDef2(x2._def, {
13192
13198
  ...refs,
13193
13199
  currentPath: [...refs.currentPath, "items", `${i}`]
13194
13200
  })
13195
13201
  ).reduce(
13196
- (acc, x) => x === void 0 ? acc : [...acc, x],
13202
+ (acc, x2) => x2 === void 0 ? acc : [...acc, x2],
13197
13203
  []
13198
13204
  ),
13199
13205
  additionalItems: parseDef2(def.rest._def, {
@@ -13207,12 +13213,12 @@ function parseTupleDef2(def, refs) {
13207
13213
  minItems: def.items.length,
13208
13214
  maxItems: def.items.length,
13209
13215
  items: def.items.map(
13210
- (x, i) => parseDef2(x._def, {
13216
+ (x2, i) => parseDef2(x2._def, {
13211
13217
  ...refs,
13212
13218
  currentPath: [...refs.currentPath, "items", `${i}`]
13213
13219
  })
13214
13220
  ).reduce(
13215
- (acc, x) => x === void 0 ? acc : [...acc, x],
13221
+ (acc, x2) => x2 === void 0 ? acc : [...acc, x2],
13216
13222
  []
13217
13223
  )
13218
13224
  };
@@ -17757,7 +17763,7 @@ function parseIntersectionDef3(def, refs) {
17757
17763
  ...refs,
17758
17764
  currentPath: [...refs.currentPath, "allOf", "1"]
17759
17765
  })
17760
- ].filter((x) => !!x);
17766
+ ].filter((x2) => !!x2);
17761
17767
  const mergedAllOf = [];
17762
17768
  allOf.forEach((schema) => {
17763
17769
  if (isJsonSchema7AllOfType3(schema)) {
@@ -17992,7 +17998,7 @@ function escapeNonAlphaNumeric3(source) {
17992
17998
  }
17993
17999
  function addFormat3(schema, value, message, refs) {
17994
18000
  var _a223;
17995
- if (schema.format || ((_a223 = schema.anyOf) == null ? void 0 : _a223.some((x) => x.format))) {
18001
+ if (schema.format || ((_a223 = schema.anyOf) == null ? void 0 : _a223.some((x2) => x2.format))) {
17996
18002
  if (!schema.anyOf) {
17997
18003
  schema.anyOf = [];
17998
18004
  }
@@ -18012,7 +18018,7 @@ function addFormat3(schema, value, message, refs) {
18012
18018
  }
18013
18019
  function addPattern3(schema, regex, message, refs) {
18014
18020
  var _a223;
18015
- if (schema.pattern || ((_a223 = schema.allOf) == null ? void 0 : _a223.some((x) => x.pattern))) {
18021
+ if (schema.pattern || ((_a223 = schema.allOf) == null ? void 0 : _a223.some((x2) => x2.pattern))) {
18016
18022
  if (!schema.allOf) {
18017
18023
  schema.allOf = [];
18018
18024
  }
@@ -18191,19 +18197,19 @@ var primitiveMappings3 = {
18191
18197
  function parseUnionDef3(def, refs) {
18192
18198
  const options = def.options instanceof Map ? Array.from(def.options.values()) : def.options;
18193
18199
  if (options.every(
18194
- (x) => x._def.typeName in primitiveMappings3 && (!x._def.checks || !x._def.checks.length)
18200
+ (x2) => x2._def.typeName in primitiveMappings3 && (!x2._def.checks || !x2._def.checks.length)
18195
18201
  )) {
18196
- const types = options.reduce((types2, x) => {
18197
- const type = primitiveMappings3[x._def.typeName];
18202
+ const types = options.reduce((types2, x2) => {
18203
+ const type = primitiveMappings3[x2._def.typeName];
18198
18204
  return type && !types2.includes(type) ? [...types2, type] : types2;
18199
18205
  }, []);
18200
18206
  return {
18201
18207
  type: types.length > 1 ? types : types[0]
18202
18208
  };
18203
- } else if (options.every((x) => x._def.typeName === "ZodLiteral" && !x.description)) {
18209
+ } else if (options.every((x2) => x2._def.typeName === "ZodLiteral" && !x2.description)) {
18204
18210
  const types = options.reduce(
18205
- (acc, x) => {
18206
- const type = typeof x._def.value;
18211
+ (acc, x2) => {
18212
+ const type = typeof x2._def.value;
18207
18213
  switch (type) {
18208
18214
  case "string":
18209
18215
  case "number":
@@ -18212,7 +18218,7 @@ function parseUnionDef3(def, refs) {
18212
18218
  case "bigint":
18213
18219
  return [...acc, "integer"];
18214
18220
  case "object":
18215
- if (x._def.value === null) return [...acc, "null"];
18221
+ if (x2._def.value === null) return [...acc, "null"];
18216
18222
  case "symbol":
18217
18223
  case "undefined":
18218
18224
  case "function":
@@ -18223,24 +18229,24 @@ function parseUnionDef3(def, refs) {
18223
18229
  []
18224
18230
  );
18225
18231
  if (types.length === options.length) {
18226
- const uniqueTypes = types.filter((x, i, a) => a.indexOf(x) === i);
18232
+ const uniqueTypes = types.filter((x2, i, a) => a.indexOf(x2) === i);
18227
18233
  return {
18228
18234
  type: uniqueTypes.length > 1 ? uniqueTypes : uniqueTypes[0],
18229
18235
  enum: options.reduce(
18230
- (acc, x) => {
18231
- return acc.includes(x._def.value) ? acc : [...acc, x._def.value];
18236
+ (acc, x2) => {
18237
+ return acc.includes(x2._def.value) ? acc : [...acc, x2._def.value];
18232
18238
  },
18233
18239
  []
18234
18240
  )
18235
18241
  };
18236
18242
  }
18237
- } else if (options.every((x) => x._def.typeName === "ZodEnum")) {
18243
+ } else if (options.every((x2) => x2._def.typeName === "ZodEnum")) {
18238
18244
  return {
18239
18245
  type: "string",
18240
18246
  enum: options.reduce(
18241
- (acc, x) => [
18247
+ (acc, x2) => [
18242
18248
  ...acc,
18243
- ...x._def.values.filter((x2) => !acc.includes(x2))
18249
+ ...x2._def.values.filter((x22) => !acc.includes(x22))
18244
18250
  ],
18245
18251
  []
18246
18252
  )
@@ -18250,12 +18256,12 @@ function parseUnionDef3(def, refs) {
18250
18256
  }
18251
18257
  var asAnyOf3 = (def, refs) => {
18252
18258
  const anyOf = (def.options instanceof Map ? Array.from(def.options.values()) : def.options).map(
18253
- (x, i) => parseDef3(x._def, {
18259
+ (x2, i) => parseDef3(x2._def, {
18254
18260
  ...refs,
18255
18261
  currentPath: [...refs.currentPath, "anyOf", `${i}`]
18256
18262
  })
18257
18263
  ).filter(
18258
- (x) => !!x && (!refs.strictUnions || typeof x === "object" && Object.keys(x).length > 0)
18264
+ (x2) => !!x2 && (!refs.strictUnions || typeof x2 === "object" && Object.keys(x2).length > 0)
18259
18265
  );
18260
18266
  return anyOf.length ? { anyOf } : void 0;
18261
18267
  };
@@ -18391,7 +18397,7 @@ var parsePipelineDef3 = (def, refs) => {
18391
18397
  currentPath: [...refs.currentPath, "allOf", a ? "1" : "0"]
18392
18398
  });
18393
18399
  return {
18394
- allOf: [a, b].filter((x) => x !== void 0)
18400
+ allOf: [a, b].filter((x2) => x2 !== void 0)
18395
18401
  };
18396
18402
  };
18397
18403
  function parsePromiseDef3(def, refs) {
@@ -18421,12 +18427,12 @@ function parseTupleDef3(def, refs) {
18421
18427
  type: "array",
18422
18428
  minItems: def.items.length,
18423
18429
  items: def.items.map(
18424
- (x, i) => parseDef3(x._def, {
18430
+ (x2, i) => parseDef3(x2._def, {
18425
18431
  ...refs,
18426
18432
  currentPath: [...refs.currentPath, "items", `${i}`]
18427
18433
  })
18428
18434
  ).reduce(
18429
- (acc, x) => x === void 0 ? acc : [...acc, x],
18435
+ (acc, x2) => x2 === void 0 ? acc : [...acc, x2],
18430
18436
  []
18431
18437
  ),
18432
18438
  additionalItems: parseDef3(def.rest._def, {
@@ -18440,12 +18446,12 @@ function parseTupleDef3(def, refs) {
18440
18446
  minItems: def.items.length,
18441
18447
  maxItems: def.items.length,
18442
18448
  items: def.items.map(
18443
- (x, i) => parseDef3(x._def, {
18449
+ (x2, i) => parseDef3(x2._def, {
18444
18450
  ...refs,
18445
18451
  currentPath: [...refs.currentPath, "items", `${i}`]
18446
18452
  })
18447
18453
  ).reduce(
18448
- (acc, x) => x === void 0 ? acc : [...acc, x],
18454
+ (acc, x2) => x2 === void 0 ? acc : [...acc, x2],
18449
18455
  []
18450
18456
  )
18451
18457
  };
@@ -27219,7 +27225,7 @@ ${workingMemory}`;
27219
27225
  // Embedding is computationally expensive, so cache content -> embeddings/chunks.
27220
27226
  // Bounded by an LRU so a long-running instance can't retain every embedded
27221
27227
  // message/query (and its vectors + chunk text) for the life of the process.
27222
- embeddingCache = new M({ max: DEFAULT_EMBEDDING_CACHE_MAX_SIZE });
27228
+ embeddingCache = new I({ max: DEFAULT_EMBEDDING_CACHE_MAX_SIZE });
27223
27229
  firstEmbed;
27224
27230
  async embedMessageContent(content) {
27225
27231
  const key = (await this.hasher).h64(content);
@@ -27656,7 +27662,7 @@ ${workingMemory}`;
27656
27662
  "Observational memory requires @mastra/core support for request-response-id-rotation. Please bump @mastra/core to a newer version."
27657
27663
  );
27658
27664
  }
27659
- const { ObservationalMemory: OMClass } = await import('./observational-memory-SF36C4XR-VIMLDSHT.cjs');
27665
+ const { ObservationalMemory: OMClass } = await import('./observational-memory-OJN26RQ4-DTEVO3PP.cjs');
27660
27666
  const onIndexObservations = this.hasRetrievalSearch(omConfig.retrieval) ? async (observation) => {
27661
27667
  await this.indexObservation(observation);
27662
27668
  } : void 0;
@@ -28704,7 +28710,7 @@ Notes:
28704
28710
  if (!effectiveConfig) return null;
28705
28711
  const engine = await this.omEngine;
28706
28712
  if (!engine) return null;
28707
- const { ObservationalMemoryProcessor: ObservationalMemoryProcessor2 } = await import('./observational-memory-SF36C4XR-VIMLDSHT.cjs');
28713
+ const { ObservationalMemoryProcessor: ObservationalMemoryProcessor2 } = await import('./observational-memory-OJN26RQ4-DTEVO3PP.cjs');
28708
28714
  return new ObservationalMemoryProcessor2(engine, this, {
28709
28715
  temporalMarkers: effectiveConfig.temporalMarkers
28710
28716
  });
@@ -28720,7 +28726,7 @@ Notes:
28720
28726
  this.assertWorkingMemoryStateSignalsCompatibility(mergedConfig);
28721
28727
  if (!mergedConfig.workingMemory?.enabled) return null;
28722
28728
  if (!mergedConfig.workingMemory?.useStateSignals) return null;
28723
- const { WORKING_MEMORY_STATE_PROCESSOR_ID: WORKING_MEMORY_STATE_PROCESSOR_ID2, WorkingMemoryStateProcessor: WorkingMemoryStateProcessor2 } = await import('./working-memory-state-OMSMSYAW-4THWAGFK.cjs');
28729
+ const { WORKING_MEMORY_STATE_PROCESSOR_ID: WORKING_MEMORY_STATE_PROCESSOR_ID2, WorkingMemoryStateProcessor: WorkingMemoryStateProcessor2 } = await import('./working-memory-state-OMSMSYAW-GCNI4HPX.cjs');
28724
28730
  const alreadyConfigured = configuredProcessors.some(
28725
28731
  (p) => !("workflow" in p) && p.id === WORKING_MEMORY_STATE_PROCESSOR_ID2
28726
28732
  );
@@ -33667,5 +33673,5 @@ exports.stripEphemeralAnchorIds = stripEphemeralAnchorIds;
33667
33673
  exports.stripObservationGroups = stripObservationGroups;
33668
33674
  exports.summarizeConversation = summarizeConversation;
33669
33675
  exports.wrapInObservationGroup = wrapInObservationGroup;
33670
- //# sourceMappingURL=chunk-BJESJLXW.cjs.map
33671
- //# sourceMappingURL=chunk-BJESJLXW.cjs.map
33676
+ //# sourceMappingURL=chunk-I5K3Z37P.cjs.map
33677
+ //# sourceMappingURL=chunk-I5K3Z37P.cjs.map