@iowarp/clio-coder 0.4.6 → 0.4.8

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 (1142) hide show
  1. package/.claude-plugin/marketplace.json +283 -0
  2. package/CHANGELOG.md +79 -0
  3. package/CONTRIBUTING.md +178 -96
  4. package/NOTICE +8 -0
  5. package/README.md +100 -47
  6. package/dist/acp-JWPQZM2D.js +130 -0
  7. package/dist/agents-4GCDIRVX.js +149 -0
  8. package/dist/assets/codewiki.json +1 -1
  9. package/dist/assets/tui-notices/get-east-asian-width-LICENSE +9 -0
  10. package/dist/assets/tui-notices/marked-LICENSE +44 -0
  11. package/dist/assets/tui-notices/pi-tui-LICENSE +21 -0
  12. package/dist/assets/web-notices/@hono__node-server-LICENSE +21 -0
  13. package/dist/assets/web-notices/hono-LICENSE +21 -0
  14. package/dist/auth-SYAKTDQE.js +551 -0
  15. package/dist/background-OW67WMYR.js +37 -0
  16. package/dist/builtins-TKS63VNV.js +22 -0
  17. package/dist/chunk-2JSCCEKO.js +85 -0
  18. package/dist/chunk-2SXGG2IV.js +391 -0
  19. package/dist/chunk-2U2U5POA.js +59 -0
  20. package/dist/chunk-2ZWLMA3T.js +658 -0
  21. package/dist/chunk-36XSBPXL.js +579 -0
  22. package/dist/chunk-3IQOZRQ6.js +396 -0
  23. package/dist/chunk-3XE4NRLF.js +324 -0
  24. package/dist/chunk-44U2OUSM.js +243 -0
  25. package/dist/chunk-4P6M2TTE.js +119 -0
  26. package/dist/chunk-526ABLHD.js +1219 -0
  27. package/dist/chunk-5C2OQHLR.js +674 -0
  28. package/dist/chunk-5D2FNBMG.js +185 -0
  29. package/dist/chunk-5EQO5NWP.js +243 -0
  30. package/dist/chunk-5HULHKT2.js +32 -0
  31. package/dist/chunk-5UG6EZI3.js +66 -0
  32. package/dist/chunk-5W4FRA5Q.js +22283 -0
  33. package/dist/chunk-6R5MBXBJ.js +386 -0
  34. package/dist/chunk-6TKOFFGE.js +1058 -0
  35. package/dist/chunk-6UJ7RDI7.js +1143 -0
  36. package/dist/chunk-6X7VOCDY.js +44 -0
  37. package/dist/chunk-7QQRPB2E.js +915 -0
  38. package/dist/chunk-ARRUMZ7X.js +1377 -0
  39. package/dist/chunk-ATB3Q7YO.js +663 -0
  40. package/dist/chunk-AUHVBIDW.js +19 -0
  41. package/dist/chunk-BE4I3UJ2.js +668 -0
  42. package/dist/chunk-BFPHMSK7.js +169 -0
  43. package/dist/chunk-BHJMMCXS.js +466 -0
  44. package/dist/chunk-BIY22UUK.js +1322 -0
  45. package/dist/chunk-D55WO5J7.js +110 -0
  46. package/dist/chunk-DVJL77SO.js +162 -0
  47. package/dist/chunk-E2NSPYLC.js +814 -0
  48. package/dist/chunk-EFXMQYI6.js +4484 -0
  49. package/dist/chunk-EPYATQMG.js +2718 -0
  50. package/dist/chunk-EXKUF426.js +1801 -0
  51. package/dist/chunk-F7Y6QTPL.js +689 -0
  52. package/dist/chunk-FB3KTE2J.js +1710 -0
  53. package/dist/chunk-FNVPQQYT.js +117 -0
  54. package/dist/chunk-GEVQNST4.js +101 -0
  55. package/dist/chunk-GEYX2NZ5.js +697 -0
  56. package/dist/chunk-GJBJHJNY.js +2120 -0
  57. package/dist/chunk-GM4TY6VN.js +1233 -0
  58. package/dist/chunk-GVU4CXPJ.js +5191 -0
  59. package/dist/chunk-H5DPSUBB.js +637 -0
  60. package/dist/chunk-H77XBUBM.js +688 -0
  61. package/dist/chunk-HMGAKB7E.js +380 -0
  62. package/dist/chunk-HP7KJ5O2.js +797 -0
  63. package/dist/chunk-HVCAY2FH.js +67 -0
  64. package/dist/chunk-ICYIUNO4.js +35 -0
  65. package/dist/chunk-IILXVWJY.js +223 -0
  66. package/dist/chunk-JCVIL6TY.js +595 -0
  67. package/dist/chunk-JIMWEYWO.js +63 -0
  68. package/dist/chunk-JLBVCROW.js +562 -0
  69. package/dist/chunk-JOBN2YQQ.js +176 -0
  70. package/dist/chunk-JOL2QRLE.js +152 -0
  71. package/dist/chunk-JRA6OBHY.js +974 -0
  72. package/dist/chunk-JV25I7ID.js +1865 -0
  73. package/dist/chunk-JYKUMHCQ.js +705 -0
  74. package/dist/chunk-K3W6BF5C.js +283 -0
  75. package/dist/chunk-K45LHSCI.js +194 -0
  76. package/dist/chunk-K53E2PTW.js +1289 -0
  77. package/dist/chunk-K5UJD6MM.js +39 -0
  78. package/dist/chunk-KGP3UQGJ.js +200 -0
  79. package/dist/chunk-KKRXONXG.js +43 -0
  80. package/dist/chunk-KWJXCL2X.js +103 -0
  81. package/dist/chunk-L75H5B3B.js +446 -0
  82. package/dist/chunk-LLCGGVSW.js +108 -0
  83. package/dist/chunk-LZCCBLRC.js +57 -0
  84. package/dist/chunk-LZDLYSUN.js +197 -0
  85. package/dist/chunk-MATCRH3M.js +667 -0
  86. package/dist/chunk-MEHBW2SP.js +132 -0
  87. package/dist/chunk-MUXNDNMZ.js +659 -0
  88. package/dist/chunk-MWMW53WW.js +7346 -0
  89. package/dist/chunk-MZDPF35R.js +45 -0
  90. package/dist/chunk-MZKYVIWW.js +188 -0
  91. package/dist/chunk-O2QJDRWP.js +362 -0
  92. package/dist/chunk-O3HSB2YL.js +693 -0
  93. package/dist/chunk-OEMFEL26.js +891 -0
  94. package/dist/chunk-OH3YYA3B.js +15 -0
  95. package/dist/chunk-OPC4DQD6.js +634 -0
  96. package/dist/chunk-ORRNGQDV.js +207 -0
  97. package/dist/chunk-P4JS3MH5.js +165 -0
  98. package/dist/chunk-P7GTE4FX.js +308 -0
  99. package/dist/chunk-PAQVETLA.js +962 -0
  100. package/dist/chunk-PFZJMXIY.js +146 -0
  101. package/dist/chunk-PGEFOTJB.js +1974 -0
  102. package/dist/chunk-PJ5H5B7A.js +3151 -0
  103. package/dist/chunk-PMUUAABD.js +604 -0
  104. package/dist/chunk-Q32C6AWI.js +236 -0
  105. package/dist/chunk-QGIC5SX5.js +139 -0
  106. package/dist/chunk-QLAGXTTV.js +482 -0
  107. package/dist/chunk-QLKCCC2J.js +573 -0
  108. package/dist/chunk-QWUSS2QP.js +3630 -0
  109. package/dist/chunk-QYSAZMSH.js +47 -0
  110. package/dist/chunk-R5NRX5N4.js +123 -0
  111. package/dist/chunk-RAUOKUZV.js +1572 -0
  112. package/dist/chunk-RBES4TCZ.js +302 -0
  113. package/dist/chunk-RFCKPS2V.js +26 -0
  114. package/dist/chunk-RFULVPBX.js +318 -0
  115. package/dist/chunk-RKFNU5UA.js +404 -0
  116. package/dist/chunk-RM3XJX7P.js +1148 -0
  117. package/dist/chunk-RNLAPBJL.js +386 -0
  118. package/dist/chunk-RPMNIFRY.js +65 -0
  119. package/dist/chunk-RRZFRIJP.js +42 -0
  120. package/dist/chunk-RXI7K4J5.js +4493 -0
  121. package/dist/chunk-SER7RRAE.js +4271 -0
  122. package/dist/chunk-STC6CWUZ.js +402 -0
  123. package/dist/chunk-TEHVMHOK.js +97 -0
  124. package/dist/chunk-TOPICHGR.js +33 -0
  125. package/dist/chunk-U3TPUXOQ.js +2653 -0
  126. package/dist/chunk-UB33F3YW.js +709 -0
  127. package/dist/chunk-UDAK6GR2.js +175 -0
  128. package/dist/chunk-USBBEKHW.js +177 -0
  129. package/dist/chunk-V4ZKOKRB.js +13433 -0
  130. package/dist/chunk-W5RM7YAH.js +78 -0
  131. package/dist/chunk-W7KNI3F5.js +215 -0
  132. package/dist/chunk-WFTSK7N3.js +637 -0
  133. package/dist/chunk-WJWNZXRM.js +395 -0
  134. package/dist/chunk-WLHX3MM5.js +63 -0
  135. package/dist/chunk-WS4FOGLY.js +686 -0
  136. package/dist/chunk-WTZVSMQZ.js +52 -0
  137. package/dist/chunk-WWRV5RJI.js +165 -0
  138. package/dist/chunk-X6FLVUM5.js +141 -0
  139. package/dist/chunk-XC5POIL4.js +68 -0
  140. package/dist/chunk-XTLJDC2X.js +1013 -0
  141. package/dist/chunk-XW2UZICE.js +372 -0
  142. package/dist/chunk-Y3JU5RPK.js +8 -0
  143. package/dist/chunk-YGIV24MF.js +1018 -0
  144. package/dist/chunk-YJCCMYYT.js +125 -0
  145. package/dist/chunk-YKIIWURD.js +36 -0
  146. package/dist/chunk-YQ3GFEUY.js +341 -0
  147. package/dist/chunk-YXANQGCX.js +179 -0
  148. package/dist/chunk-YXFKLMX2.js +222 -0
  149. package/dist/chunk-ZST3FRCV.js +132 -0
  150. package/dist/cli/index.js +40 -40
  151. package/dist/clio-BPBAPZGA.js +26 -0
  152. package/dist/code-nav-KBQ3RIFK.js +686 -0
  153. package/dist/components-6DKAXWFN.js +674 -0
  154. package/dist/config-FWL5JK2H.js +270 -0
  155. package/dist/config-graph-ACDB26L2.js +156 -0
  156. package/dist/configure-ZIZ4YV62.js +85 -0
  157. package/dist/context-EZZPT2ZV.js +1074 -0
  158. package/dist/context-VIL5MFRH.js +282 -0
  159. package/dist/context-Z3GOBHDK.js +344 -0
  160. package/dist/context-clear-ZPB3L7MN.js +188 -0
  161. package/dist/context-index-W6A4V7OC.js +120 -0
  162. package/dist/context-map-DKL3QT6D.js +555 -0
  163. package/dist/context-working-set-2GLBVF7L.js +1559 -0
  164. package/dist/detail-VSBWYSGZ.js +119 -0
  165. package/dist/dispatch-runner-EEEHGKX4.js +2442 -0
  166. package/dist/docs-VMMWFVHL.js +101 -0
  167. package/dist/doctor-V5L4IQGP.js +812 -0
  168. package/dist/eval-VJYJ2BV3.js +5050 -0
  169. package/dist/eval-inventory-CX24K2JT.js +260 -0
  170. package/dist/evals-J2H5V6DD.js +104 -0
  171. package/dist/evidence-POWAEBEW.js +229 -0
  172. package/dist/evidence-XCCCLS36.js +242 -0
  173. package/dist/evidence-Y35YSXH6.js +388 -0
  174. package/dist/evolve-GPG72VB6.js +613 -0
  175. package/dist/extensions-YIZ7W3DA.js +308 -0
  176. package/dist/fleet-2MDCQ2VK.js +264 -0
  177. package/dist/fleet-W2AF3TOJ.js +919 -0
  178. package/dist/fleet-commands-WS56G26H.js +75 -0
  179. package/dist/fleet-decisions-MYGZ3JW7.js +52 -0
  180. package/dist/fleet-graph-ELTBXBAV.js +136 -0
  181. package/dist/fleet-inspect-45IK73L4.js +308 -0
  182. package/dist/fleet-preflight-T5NCZKHE.js +22 -0
  183. package/dist/fleet-validate-VG4JBLA4.js +91 -0
  184. package/dist/fleet-verify-VTSABAYO.js +206 -0
  185. package/dist/fleet-view-XC7WMKSS.js +123 -0
  186. package/dist/init-VTJNNTIP.js +329 -0
  187. package/dist/install-6PIF6F6W.js +19 -0
  188. package/dist/interop-IU6BNA7C.js +246 -0
  189. package/dist/inventory-QPQUTUUZ.js +123 -0
  190. package/dist/library-HUTAS57T.js +492 -0
  191. package/dist/library-LF7DLU6S.js +306 -0
  192. package/dist/library-Q3NWL5CM.js +75 -0
  193. package/dist/library-import-PPW4YUC5.js +183 -0
  194. package/dist/library-inventory-DIRVFRZU.js +56 -0
  195. package/dist/library-validation-XHUZ3INE.js +42 -0
  196. package/dist/memory-Z2LSKNV6.js +516 -0
  197. package/dist/models-3FTREYPY.js +302 -0
  198. package/dist/monitor-HF2MQRB3.js +781 -0
  199. package/dist/orchestrator-UYPA6W4S.js +41502 -0
  200. package/dist/panes-736XB73K.js +74 -0
  201. package/dist/panes-C4P3PIWT.js +103 -0
  202. package/dist/paths-JQ4QYIYB.js +67 -0
  203. package/dist/preload-XSLRYH3Y.js +120 -0
  204. package/dist/reset-V7QSPZYE.js +345 -0
  205. package/dist/resources-OJGDFHYT.js +181 -0
  206. package/dist/run-T354SMDW.js +892 -0
  207. package/dist/settings-MWZXO6RV.js +72 -0
  208. package/dist/share-Y5ZKJPND.js +293 -0
  209. package/dist/skills-4GLZC4LN.js +100 -0
  210. package/dist/skills-eval-L5T7GODM.js +1074 -0
  211. package/dist/skills-inventory-LASKXEZI.js +138 -0
  212. package/dist/slash-commands-OIMRU36D.js +95 -0
  213. package/dist/steer-KMAM2Y2C.js +77 -0
  214. package/dist/support-AWC3XKPX.js +38 -0
  215. package/dist/system-CD75NYBU.js +116 -0
  216. package/dist/targets-VSZX2J2S.js +1116 -0
  217. package/dist/tasks-AN567LYH.js +36 -0
  218. package/dist/terminal-lease-6KTWNHVY.js +418 -0
  219. package/dist/tools-AGRK3V5J.js +28 -0
  220. package/dist/trace-P4MQZD33.js +524 -0
  221. package/dist/tui-primitives-A6MUW32V.js +18 -0
  222. package/dist/uninstall-BRUTEPIC.js +432 -0
  223. package/dist/upgrade-SBCGHQGJ.js +307 -0
  224. package/dist/usage-BIDVTO6V.js +1061 -0
  225. package/dist/verifiers-LTGCAMXS.js +630 -0
  226. package/dist/verify-OZU4LLNP.js +30 -0
  227. package/dist/web/client/THIRD_PARTY_LICENSES.md +1809 -0
  228. package/dist/web/client/assets/abnfDiagram-VCTEODGH-C5wfoHm3.js +1 -0
  229. package/dist/web/client/assets/arc-oH91sfLl.js +1 -0
  230. package/dist/web/client/assets/architecture-7GRP2DOG-EGozsYEO.js +1 -0
  231. package/dist/web/client/assets/architectureDiagram-5GKGNRK7-z9FokbJl.js +36 -0
  232. package/dist/web/client/assets/array-BifhSqXX.js +1 -0
  233. package/dist/web/client/assets/atkinson-hyperlegible-next-latin-ext-wght-normal-C6vrW8VD.woff2 +0 -0
  234. package/dist/web/client/assets/atkinson-hyperlegible-next-latin-wght-normal-BcXVPD7q.woff2 +0 -0
  235. package/dist/web/client/assets/blockDiagram-I7D4REHJ-wi0_CYHL.js +129 -0
  236. package/dist/web/client/assets/c4Diagram-7LVT6UL2-DV7NYc2W.js +38 -0
  237. package/dist/web/client/assets/channel-CiUWbHN9.js +1 -0
  238. package/dist/web/client/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
  239. package/dist/web/client/assets/chunk-4HAMMTFA-Bhsegh3F.js +62 -0
  240. package/dist/web/client/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
  241. package/dist/web/client/assets/chunk-75Z2AOVW-RQCckcQG.js +2 -0
  242. package/dist/web/client/assets/chunk-DU6HZSFF-C5USiOAy.js +125 -0
  243. package/dist/web/client/assets/chunk-F27PBJKO-BcNqv2x1.js +1 -0
  244. package/dist/web/client/assets/chunk-FOHPRMQF-CoA4358r.js +161 -0
  245. package/dist/web/client/assets/chunk-GMAD6QVW-Bq8JWiZT.js +72 -0
  246. package/dist/web/client/assets/chunk-GVQU2GXP-DbchrAeJ.js +1 -0
  247. package/dist/web/client/assets/chunk-IMKFNOWR-DrpvjocK.js +231 -0
  248. package/dist/web/client/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
  249. package/dist/web/client/assets/chunk-L3NEJ4N5-DHLmTnCe.js +1 -0
  250. package/dist/web/client/assets/chunk-OSK3NFVY-CsRbtN9n.js +10 -0
  251. package/dist/web/client/assets/chunk-P2QGCYS3-aqPbxoMh.js +1 -0
  252. package/dist/web/client/assets/chunk-POPQ4Y6H-Dl5vw0h0.js +1 -0
  253. package/dist/web/client/assets/chunk-PWAF6VOD-D7OBRSdO.js +1 -0
  254. package/dist/web/client/assets/chunk-SHT3W25Y-CdKCIwuB.js +168 -0
  255. package/dist/web/client/assets/chunk-SVP7TREG-B94Nu_1-.js +88 -0
  256. package/dist/web/client/assets/chunk-TICWLB2K-jjRQI_hk.js +206 -0
  257. package/dist/web/client/assets/chunk-XXDRQBXY-azkbKE37.js +1 -0
  258. package/dist/web/client/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
  259. package/dist/web/client/assets/classDiagram-ZZMXUADV-CMODalmo.js +1 -0
  260. package/dist/web/client/assets/classDiagram-v2-VYDZK3BY-CMODalmo.js +1 -0
  261. package/dist/web/client/assets/commit-mono-latin-400-normal-s0S3qwFW.woff +0 -0
  262. package/dist/web/client/assets/commit-mono-latin-400-normal-wzhe4RuD.woff2 +0 -0
  263. package/dist/web/client/assets/cose-bilkent-JH36ORCC-RbQL23qS.js +1 -0
  264. package/dist/web/client/assets/cynefin-OW5HDTMX--i9RDU5f.js +1 -0
  265. package/dist/web/client/assets/cynefinDiagram-5FMLGOSQ-cRcvyBdp.js +62 -0
  266. package/dist/web/client/assets/cytoscape.esm-c2aL46s-.js +321 -0
  267. package/dist/web/client/assets/dagre-C-rnJpZF.js +1 -0
  268. package/dist/web/client/assets/dagre-GXQ25YYZ-C9mZmAPe.js +4 -0
  269. package/dist/web/client/assets/defaultLocale-BFoDCU3G.js +1 -0
  270. package/dist/web/client/assets/diagram-S7CK7UJ4-Oj_zlLDY.js +30 -0
  271. package/dist/web/client/assets/diagram-UQ7AKVKN-BWKbbfcR.js +41 -0
  272. package/dist/web/client/assets/diagram-VSXAHHWV-C3N3f7DO.js +3 -0
  273. package/dist/web/client/assets/diagram-VX7I27RA-CtDKDAWe.js +24 -0
  274. package/dist/web/client/assets/diagram-Z3DM3KII-B8bkBRCz.js +24 -0
  275. package/dist/web/client/assets/dist-D0_q-A2b.js +1 -0
  276. package/dist/web/client/assets/ebnfDiagram-PWID7BFC-CskW-Whx.js +1 -0
  277. package/dist/web/client/assets/erDiagram-RLTQ6QDP-C-83cgCW.js +99 -0
  278. package/dist/web/client/assets/eventmodeling-NTZA5JFV-DjVq8wKU.js +1 -0
  279. package/dist/web/client/assets/flowDiagram-HODETNUW-BUiCBGXt.js +1 -0
  280. package/dist/web/client/assets/ganttDiagram-EL5Y4UJY-B2lb8lvF.js +292 -0
  281. package/dist/web/client/assets/gitGraph-4MIJSDKK-B40cQtBE.js +1 -0
  282. package/dist/web/client/assets/gitGraphDiagram-WWUBYQGX-CH-7P7Di.js +106 -0
  283. package/dist/web/client/assets/graphlib-DS17s2tU.js +1 -0
  284. package/dist/web/client/assets/index-Dsi52apB.css +1 -0
  285. package/dist/web/client/assets/index-FSIC94pi.js +83 -0
  286. package/dist/web/client/assets/info-A6RAGUB7-eCCE9D_Q.js +1 -0
  287. package/dist/web/client/assets/infoDiagram-27XIBGKW-DRnvqMjM.js +2 -0
  288. package/dist/web/client/assets/init-C-OQMol4.js +1 -0
  289. package/dist/web/client/assets/ishikawaDiagram-5VMMS53U-DBA_55wp.js +70 -0
  290. package/dist/web/client/assets/journeyDiagram-3NMN7TZE-C-ewpNl7.js +139 -0
  291. package/dist/web/client/assets/kanban-definition-UXKFOSKX-B1taGsu0.js +89 -0
  292. package/dist/web/client/assets/katex-ZlcWpGUi.js +257 -0
  293. package/dist/web/client/assets/line-lZ0kyxDI.js +1 -0
  294. package/dist/web/client/assets/linear-DIc8FgZj.js +1 -0
  295. package/dist/web/client/assets/mermaid-parser.core-SXolxpXw.js +7 -0
  296. package/dist/web/client/assets/mermaid.core-DXgQtkNg.js +44 -0
  297. package/dist/web/client/assets/mindmap-definition-YA3MSWOX-DXJas9K7.js +96 -0
  298. package/dist/web/client/assets/newsreader-latin-ext-wght-normal-C-3rgBeH.woff2 +0 -0
  299. package/dist/web/client/assets/newsreader-latin-wght-normal-CCVVNp6i.woff2 +0 -0
  300. package/dist/web/client/assets/newsreader-vietnamese-wght-normal-Czsa-EzN.woff2 +0 -0
  301. package/dist/web/client/assets/ordinal-BDEzSJ7C.js +1 -0
  302. package/dist/web/client/assets/packet-AYTQ26CC-OqVl_07o.js +1 -0
  303. package/dist/web/client/assets/path-fybaL0A-.js +1 -0
  304. package/dist/web/client/assets/pegDiagram-XKGWAZYB-CPE_zdfN.js +1 -0
  305. package/dist/web/client/assets/pie-WAS4IAKB-DAxnMBLe.js +1 -0
  306. package/dist/web/client/assets/pieDiagram-E7YTZNPT-Uwjpufxv.js +39 -0
  307. package/dist/web/client/assets/prism-bash-D6zCJ74D.js +1 -0
  308. package/dist/web/client/assets/prism-c-04YixN25.js +1 -0
  309. package/dist/web/client/assets/prism-clike-DapgWyxx.js +1 -0
  310. package/dist/web/client/assets/prism-core-BngLtbUd.js +1 -0
  311. package/dist/web/client/assets/prism-cpp-C-lJbC-6.js +1 -0
  312. package/dist/web/client/assets/prism-css-CPgOzxXp.js +1 -0
  313. package/dist/web/client/assets/prism-diff-BF8m0_mq.js +3 -0
  314. package/dist/web/client/assets/prism-docker-DkT6yOFj.js +1 -0
  315. package/dist/web/client/assets/prism-fortran-Be5x3y1V.js +1 -0
  316. package/dist/web/client/assets/prism-go-C_8qAH5n.js +1 -0
  317. package/dist/web/client/assets/prism-ini-BESK3y0r.js +1 -0
  318. package/dist/web/client/assets/prism-javascript-BnO-swvr.js +1 -0
  319. package/dist/web/client/assets/prism-json-Dp_-W-Hv.js +1 -0
  320. package/dist/web/client/assets/prism-jsx-D-D0NWtC.js +1 -0
  321. package/dist/web/client/assets/prism-julia-DIjOgiAV.js +1 -0
  322. package/dist/web/client/assets/prism-latex-DNMbqcH_.js +1 -0
  323. package/dist/web/client/assets/prism-makefile-CRKWLQ8l.js +1 -0
  324. package/dist/web/client/assets/prism-markdown-C0FPJ1Iz.js +1 -0
  325. package/dist/web/client/assets/prism-markup-Cp04rIa1.js +1 -0
  326. package/dist/web/client/assets/prism-matlab-D-nk08al.js +1 -0
  327. package/dist/web/client/assets/prism-python-CfiSVtM6.js +1 -0
  328. package/dist/web/client/assets/prism-r-QmNGR8LX.js +1 -0
  329. package/dist/web/client/assets/prism-rust-Bu9N8X3N.js +1 -0
  330. package/dist/web/client/assets/prism-shell-session-Be4UuYoM.js +1 -0
  331. package/dist/web/client/assets/prism-sql-CYhVDMEE.js +1 -0
  332. package/dist/web/client/assets/prism-toml-DKb54GAT.js +1 -0
  333. package/dist/web/client/assets/prism-tsx-p6J2Kc_4.js +1 -0
  334. package/dist/web/client/assets/prism-typescript-BMqONzxf.js +1 -0
  335. package/dist/web/client/assets/prism-yaml-C0JHu8gr.js +1 -0
  336. package/dist/web/client/assets/purify.es-ChwZkWde.js +3 -0
  337. package/dist/web/client/assets/quadrantDiagram-AXDQQJYC-Bjs4yjgs.js +7 -0
  338. package/dist/web/client/assets/radar-RG4KPBEZ-CuCKjHM3.js +1 -0
  339. package/dist/web/client/assets/railroad-74A4TZTK-CnQK-Cc1.js +1 -0
  340. package/dist/web/client/assets/railroad-abnf-HS5TGJTU-BcW01NZG.js +1 -0
  341. package/dist/web/client/assets/railroad-ebnf-LZEXJU2U-B7YCEDDd.js +1 -0
  342. package/dist/web/client/assets/railroad-peg-WCYAUIDC-DjNZbSTZ.js +1 -0
  343. package/dist/web/client/assets/railroadDiagram-O6MQD6OU-BDDIPNLL.js +1 -0
  344. package/dist/web/client/assets/requirementDiagram-BXWQKSXE-B5Ydyxc1.js +84 -0
  345. package/dist/web/client/assets/rough.esm-Dy-Kn_BL.js +1 -0
  346. package/dist/web/client/assets/sankeyDiagram-P5KCCOFB-Bw2Qym75.js +40 -0
  347. package/dist/web/client/assets/sequenceDiagram-WJ2MYXX4-BZf36nO0.js +162 -0
  348. package/dist/web/client/assets/sizeCapture-INFHLROL-B0uUizjq.js +1 -0
  349. package/dist/web/client/assets/src-yeptRXpt.js +1 -0
  350. package/dist/web/client/assets/stateDiagram-D77RDMKH-DnH6JRkp.js +1 -0
  351. package/dist/web/client/assets/stateDiagram-v2-MP3YSRHH-C7QtHeK4.js +1 -0
  352. package/dist/web/client/assets/swimlanes-42K2YHIH-D9PZmtZg.js +1 -0
  353. package/dist/web/client/assets/swimlanesDiagram-VR7AAH4N-CBZlPFky.js +8 -0
  354. package/dist/web/client/assets/timeline-definition-24CTP7MA-CrkZZBo7.js +120 -0
  355. package/dist/web/client/assets/treeView-Q6P3EWNA-C9zDShoC.js +1 -0
  356. package/dist/web/client/assets/treemap-WGGIJYW6-B-plj9yK.js +1 -0
  357. package/dist/web/client/assets/vennDiagram-4TSXK5OY-VeOdaphN.js +34 -0
  358. package/dist/web/client/assets/wardley-WFR3VGLG-Wl1P_m6L.js +1 -0
  359. package/dist/web/client/assets/wardleyDiagram-VM6X3IG4-B85-R9t2.js +78 -0
  360. package/dist/web/client/assets/xychartDiagram-S5SC5T6Z-BrD8OW8m.js +7 -0
  361. package/dist/web/client/clio-coder-logo.webp +0 -0
  362. package/dist/web/client/icon-192.png +0 -0
  363. package/dist/web/client/icon-512.png +0 -0
  364. package/dist/web/client/index.html +4 -0
  365. package/dist/web/client/manifest.webmanifest +15 -0
  366. package/dist/web/client/offline.css +55 -0
  367. package/dist/web/client/offline.html +5 -0
  368. package/dist/web/client/offline.js +27 -0
  369. package/dist/web/client/sw.js +34 -0
  370. package/dist/web/ops-worker.js +37 -0
  371. package/dist/web/reads-worker.js +1726 -0
  372. package/dist/web/server.js +8499 -0
  373. package/dist/web-EU6ATJWA.js +13 -0
  374. package/dist/web-fetch-U22Q7HV4.js +788 -0
  375. package/dist/wiki-generate-LZRLFG6I.js +623 -0
  376. package/dist/with-panes-X5CZOGML.js +628 -0
  377. package/dist/worker/entry.js +300 -93
  378. package/docs/README.md +58 -14
  379. package/docs/architecture/acp.md +5 -9
  380. package/docs/architecture/alcf-provider.md +0 -3
  381. package/docs/architecture/architecture.md +8 -10
  382. package/docs/architecture/artifact-placement.md +0 -3
  383. package/docs/architecture/artifact-versions.md +3 -6
  384. package/docs/architecture/capacity-and-scheduling.md +0 -3
  385. package/docs/architecture/context-engine.md +35 -4
  386. package/docs/architecture/context-working-set.md +0 -3
  387. package/docs/architecture/dispatch-architecture-rationale.md +0 -3
  388. package/docs/architecture/dispatch-typed-intent.md +0 -3
  389. package/docs/architecture/evidence-and-memory.md +0 -3
  390. package/docs/architecture/library.md +30 -0
  391. package/docs/architecture/middleware-and-components.md +1 -4
  392. package/docs/architecture/model-catalog.md +21 -4
  393. package/docs/architecture/observability.md +0 -3
  394. package/docs/architecture/pi-boundary.md +23 -8
  395. package/docs/architecture/prompt-envelope-and-tools.md +6 -9
  396. package/docs/architecture/provider-adapter-cookbook.md +1 -4
  397. package/docs/architecture/safety-model.md +21 -5
  398. package/docs/architecture/session-lifecycle.md +12 -4
  399. package/docs/architecture/time-conventions.md +0 -3
  400. package/docs/architecture/trace-store.md +28 -20
  401. package/docs/architecture/tui-design.md +108 -12
  402. package/docs/architecture/worker-context.md +104 -0
  403. package/docs/architecture/worker-dispatch-mechanics.md +1 -4
  404. package/docs/guide/authoring-plugins.md +158 -0
  405. package/docs/guide/built-in-agents.md +5 -8
  406. package/docs/guide/commands-and-modes.md +162 -61
  407. package/docs/guide/configuration-and-targets.md +198 -5
  408. package/docs/guide/configuration-reference.md +36 -38
  409. package/docs/guide/environment-variables.md +2 -5
  410. package/docs/guide/exit-codes-and-output.md +1 -4
  411. package/docs/guide/extensions-and-sharing.md +92 -55
  412. package/docs/guide/fleet-dispatch.md +31 -7
  413. package/docs/guide/glossary.md +1 -4
  414. package/docs/guide/harness-extensions.md +289 -0
  415. package/docs/guide/installation-and-lifecycle.md +10 -13
  416. package/docs/guide/interop.md +241 -0
  417. package/docs/guide/panes-and-files.md +3 -6
  418. package/docs/guide/plugins.md +77 -0
  419. package/docs/guide/proactive-memory.md +0 -3
  420. package/docs/guide/resource-library.md +109 -45
  421. package/docs/guide/skills-marketplace.md +34 -73
  422. package/docs/guide/tool-usage.md +19 -10
  423. package/docs/guide/troubleshooting.md +1 -4
  424. package/docs/history/config-knobs-audit.md +0 -3
  425. package/docs/history/release-cut-checklist.md +0 -3
  426. package/docs/process/development-pipeline.md +14 -17
  427. package/docs/process/documentation-coverage.md +31 -4
  428. package/docs/process/documentation-guide.md +28 -27
  429. package/docs/process/eval-runner.md +8 -6
  430. package/docs/process/evals-internal.md +0 -3
  431. package/docs/process/evolution.md +0 -3
  432. package/docs/process/fleet-demo-runbook.md +0 -3
  433. package/docs/process/git-commit-provenance.md +0 -3
  434. package/docs/process/performance-methodology.md +2 -5
  435. package/docs/process/release-cut-checklist.md +114 -217
  436. package/docs/process/scientific-validation.md +23 -3
  437. package/evals/scalar-decision-machinery.ts +1 -1
  438. package/examples/extensions/README.md +67 -0
  439. package/examples/extensions/lab-status/clio-coder-extension.json +14 -0
  440. package/examples/extensions/lab-status/extension.mjs +68 -0
  441. package/examples/extensions/lab-status/jobs.synthetic.json +9 -0
  442. package/examples/extensions/measurements/clio-coder-extension.json +28 -0
  443. package/examples/extensions/measurements/summarize.cjs +23 -0
  444. package/library/README.md +109 -0
  445. package/library/_authoring/templates/agent/README.md +28 -0
  446. package/library/_authoring/templates/agent/agents/benchmark-scout.md +30 -0
  447. package/library/_authoring/templates/agent/plugin.json +23 -0
  448. package/library/_authoring/templates/fleet/README.md +29 -0
  449. package/library/_authoring/templates/fleet/fleets/pipeline-review.md +31 -0
  450. package/library/_authoring/templates/fleet/plugin.json +23 -0
  451. package/library/_authoring/templates/plugin/README.md +37 -0
  452. package/library/_authoring/templates/plugin/agents/data-curator.md +31 -0
  453. package/library/_authoring/templates/plugin/assets/curation-guide.md +22 -0
  454. package/library/_authoring/templates/plugin/plugin.json +42 -0
  455. package/library/_authoring/templates/plugin/prompts/inspect-dataset.md +15 -0
  456. package/library/_authoring/templates/plugin/skills/dataset-curation/SKILL.md +36 -0
  457. package/library/_authoring/templates/plugin/skills/dataset-curation/evals.md +17 -0
  458. package/library/_authoring/templates/prompt/README.md +28 -0
  459. package/library/_authoring/templates/prompt/plugin.json +23 -0
  460. package/library/_authoring/templates/prompt/prompts/paper-summary.md +26 -0
  461. package/library/_authoring/templates/skill/README.md +24 -0
  462. package/library/_authoring/templates/skill/SKILL.md +39 -0
  463. package/library/_authoring/templates/skill/evals.md +30 -0
  464. package/library/_authoring/templates/skill/plugin.json +23 -0
  465. package/library/agents/README.md +7 -0
  466. package/library/fleets/README.md +7 -0
  467. package/library/plugins/materio/README.md +137 -0
  468. package/library/plugins/materio/ai.iowarp.clio/agents/materio-lab-definer.md +208 -0
  469. package/library/plugins/materio/ai.iowarp.clio/agents/materio-literature-reviewer.md +308 -0
  470. package/library/plugins/materio/ai.iowarp.clio/agents/materio-research-explorer.md +249 -0
  471. package/library/plugins/materio/ai.iowarp.clio/agents/materio-task-executor.md +416 -0
  472. package/library/plugins/materio/ai.iowarp.clio/agents/materio-task-verifier.md +60 -0
  473. package/library/plugins/materio/ai.iowarp.clio/agents/materio-workflow-planner.md +238 -0
  474. package/library/plugins/materio/ai.iowarp.clio/fleets/materio-execute-task.md +50 -0
  475. package/library/plugins/materio/ai.iowarp.clio/prompts/materio/add-task.md +66 -0
  476. package/library/plugins/materio/ai.iowarp.clio/prompts/materio/archive-task.md +65 -0
  477. package/library/plugins/materio/ai.iowarp.clio/prompts/materio/checkpoint.md +26 -0
  478. package/library/plugins/materio/ai.iowarp.clio/prompts/materio/define-research-tasks.md +230 -0
  479. package/library/plugins/materio/ai.iowarp.clio/prompts/materio/define-virtual-lab.md +181 -0
  480. package/library/plugins/materio/ai.iowarp.clio/prompts/materio/execute-task.md +292 -0
  481. package/library/plugins/materio/ai.iowarp.clio/prompts/materio/help.md +129 -0
  482. package/library/plugins/materio/ai.iowarp.clio/prompts/materio/identify-research.md +206 -0
  483. package/library/plugins/materio/ai.iowarp.clio/prompts/materio/literature-review.md +201 -0
  484. package/library/plugins/materio/ai.iowarp.clio/prompts/materio/pause-research.md +12 -0
  485. package/library/plugins/materio/ai.iowarp.clio/prompts/materio/progress.md +105 -0
  486. package/library/plugins/materio/ai.iowarp.clio/prompts/materio/remove-task.md +63 -0
  487. package/library/plugins/materio/ai.iowarp.clio/prompts/materio/resume-research.md +64 -0
  488. package/library/plugins/materio/ai.iowarp.clio/prompts/materio/settings.md +16 -0
  489. package/library/plugins/materio/ai.iowarp.clio/prompts/materio/status.md +92 -0
  490. package/library/plugins/materio/ai.iowarp.clio/prompts/materio/upload-data.md +104 -0
  491. package/library/plugins/materio/ai.iowarp.clio/prompts/materio/wtfp.md +145 -0
  492. package/library/plugins/materio/ai.iowarp.clio/references/execution.md +56 -0
  493. package/library/plugins/materio/ai.iowarp.portability/provenance.json +9 -0
  494. package/library/plugins/materio/assets/actions/add-task.md +86 -0
  495. package/library/plugins/materio/assets/actions/archive-task.md +84 -0
  496. package/library/plugins/materio/assets/actions/checkpoint.md +47 -0
  497. package/library/plugins/materio/assets/actions/define-research-tasks.md +228 -0
  498. package/library/plugins/materio/assets/actions/define-virtual-lab.md +179 -0
  499. package/library/plugins/materio/assets/actions/execute-task.md +290 -0
  500. package/library/plugins/materio/assets/actions/help.md +140 -0
  501. package/library/plugins/materio/assets/actions/identify-research.md +204 -0
  502. package/library/plugins/materio/assets/actions/literature-review.md +199 -0
  503. package/library/plugins/materio/assets/actions/pause-research.md +34 -0
  504. package/library/plugins/materio/assets/actions/progress.md +125 -0
  505. package/library/plugins/materio/assets/actions/remove-task.md +82 -0
  506. package/library/plugins/materio/assets/actions/resume-research.md +84 -0
  507. package/library/plugins/materio/assets/actions/settings.md +38 -0
  508. package/library/plugins/materio/assets/actions/status.md +112 -0
  509. package/library/plugins/materio/assets/actions/upload-data.md +123 -0
  510. package/library/plugins/materio/assets/actions/wtfp.md +179 -0
  511. package/library/plugins/materio/assets/references/research-domains.md +134 -0
  512. package/library/plugins/materio/assets/references/research-policy.md +77 -0
  513. package/library/plugins/materio/assets/references/traditional-workflows.md +146 -0
  514. package/library/plugins/materio/assets/scripts/check_physics.py +271 -0
  515. package/library/plugins/materio/assets/scripts/check_scripts.py +248 -0
  516. package/library/plugins/materio/assets/scripts/project_plugin.py +165 -0
  517. package/library/plugins/materio/assets/scripts/research_state.py +400 -0
  518. package/library/plugins/materio/assets/scripts/verify_citations.py +616 -0
  519. package/library/plugins/materio/assets/templates/RESEARCH.md +39 -0
  520. package/library/plugins/materio/assets/templates/VIRTUAL-LAB.md +120 -0
  521. package/library/plugins/materio/assets/templates/WORKFLOW.md +42 -0
  522. package/library/plugins/materio/assets/templates/config.json +5 -0
  523. package/library/plugins/materio/evals/scripts.yaml +29 -0
  524. package/library/plugins/materio/plugin.json +530 -0
  525. package/library/plugins/materio/skills/materio-lab-definer/SKILL.md +74 -0
  526. package/library/plugins/materio/skills/materio-literature-reviewer/SKILL.md +64 -0
  527. package/library/plugins/materio/skills/materio-research-explorer/SKILL.md +74 -0
  528. package/library/plugins/materio/skills/materio-task-executor/SKILL.md +214 -0
  529. package/library/plugins/materio/skills/materio-task-verifier/SKILL.md +46 -0
  530. package/library/plugins/materio/skills/materio-workflow-planner/SKILL.md +79 -0
  531. package/library/plugins/materio/tests/test_check_physics.py +139 -0
  532. package/library/plugins/materio/tests/test_check_scripts.py +140 -0
  533. package/library/plugins/materio/tests/test_research_state.py +291 -0
  534. package/library/plugins/materio/tests/test_verify_citations.py +337 -0
  535. package/library/prompts/README.md +7 -0
  536. package/library/registry.yaml +921 -0
  537. package/library/skills/README.md +120 -0
  538. package/library/skills/coding/ast-grep/SKILL.md +213 -0
  539. package/library/skills/coding/ast-grep/evals.md +82 -0
  540. package/library/skills/coding/ast-grep/plugin.json +23 -0
  541. package/library/skills/coding/coding-standards/SKILL.md +164 -0
  542. package/library/skills/coding/coding-standards/evals.md +57 -0
  543. package/library/skills/coding/coding-standards/plugin.json +23 -0
  544. package/library/skills/coding/prototype/SKILL.md +151 -0
  545. package/library/skills/coding/prototype/evals.md +61 -0
  546. package/library/skills/coding/prototype/plugin.json +23 -0
  547. package/library/skills/coding/tdd/SKILL.md +134 -0
  548. package/library/skills/coding/tdd/evals.md +61 -0
  549. package/library/skills/coding/tdd/plugin.json +23 -0
  550. package/library/skills/context/context-handoff/SKILL.md +176 -0
  551. package/library/skills/context/context-handoff/evals.md +101 -0
  552. package/library/skills/context/context-handoff/plugin.json +23 -0
  553. package/library/skills/context/context-prime/SKILL.md +131 -0
  554. package/library/skills/context/context-prime/evals.md +99 -0
  555. package/library/skills/context/context-prime/plugin.json +23 -0
  556. package/library/skills/git/branch-closeout/SKILL.md +132 -0
  557. package/library/skills/git/branch-closeout/plugin.json +23 -0
  558. package/library/skills/git/file-ticket/SKILL.md +126 -0
  559. package/library/skills/git/file-ticket/plugin.json +23 -0
  560. package/library/skills/git/fix-issue/SKILL.md +136 -0
  561. package/library/skills/git/fix-issue/plugin.json +23 -0
  562. package/library/skills/git/resolve-merge-conflicts/SKILL.md +151 -0
  563. package/library/skills/git/resolve-merge-conflicts/evals.md +85 -0
  564. package/library/skills/git/resolve-merge-conflicts/plugin.json +23 -0
  565. package/library/skills/git/ship/SKILL.md +134 -0
  566. package/library/skills/git/ship/plugin.json +23 -0
  567. package/library/skills/git/worktree-create/SKILL.md +127 -0
  568. package/library/skills/git/worktree-create/plugin.json +23 -0
  569. package/library/skills/git/worktree-merge/SKILL.md +147 -0
  570. package/library/skills/git/worktree-merge/plugin.json +23 -0
  571. package/library/skills/meta/clio-coder-dev/SKILL.md +101 -0
  572. package/library/skills/meta/clio-coder-dev/evals.md +46 -0
  573. package/library/skills/meta/clio-coder-dev/plugin.json +23 -0
  574. package/library/skills/meta/clio-coder-test/SKILL.md +156 -0
  575. package/library/skills/meta/clio-coder-test/evals.md +62 -0
  576. package/library/skills/meta/clio-coder-test/plugin.json +23 -0
  577. package/library/skills/meta/clio-coder-test/references/test-map.md +97 -0
  578. package/library/skills/meta/credentials/SKILL.md +132 -0
  579. package/library/skills/meta/credentials/evals.md +104 -0
  580. package/library/skills/meta/credentials/plugin.json +23 -0
  581. package/library/skills/meta/find-skills/SKILL.md +85 -0
  582. package/library/skills/meta/find-skills/evals.md +65 -0
  583. package/library/skills/meta/find-skills/plugin.json +23 -0
  584. package/library/skills/meta/herdr/SKILL.md +133 -0
  585. package/library/skills/meta/herdr/evals.md +38 -0
  586. package/library/skills/meta/herdr/plugin.json +23 -0
  587. package/library/skills/meta/skill-craft/SKILL.md +139 -0
  588. package/library/skills/meta/skill-craft/evals.md +49 -0
  589. package/library/skills/meta/skill-craft/plugin.json +23 -0
  590. package/library/skills/planning/archify/SKILL.md +196 -0
  591. package/library/skills/planning/archify/plugin.json +23 -0
  592. package/library/skills/planning/architecture/SKILL.md +184 -0
  593. package/library/skills/planning/architecture/evals.md +101 -0
  594. package/library/skills/planning/architecture/plugin.json +23 -0
  595. package/library/skills/planning/backlog/SKILL.md +212 -0
  596. package/library/skills/planning/backlog/evals.md +185 -0
  597. package/library/skills/planning/backlog/plugin.json +23 -0
  598. package/library/skills/planning/prd/SKILL.md +129 -0
  599. package/library/skills/planning/prd/evals.md +103 -0
  600. package/library/skills/planning/prd/plugin.json +23 -0
  601. package/library/skills/planning/product-intent/SKILL.md +173 -0
  602. package/library/skills/planning/product-intent/evals.md +106 -0
  603. package/library/skills/planning/product-intent/plugin.json +23 -0
  604. package/library/skills/planning/tech-spec/SKILL.md +172 -0
  605. package/library/skills/planning/tech-spec/evals.md +120 -0
  606. package/library/skills/planning/tech-spec/plugin.json +23 -0
  607. package/library/skills/registry.yaml +144 -0
  608. package/library/skills/remote.yaml +13 -0
  609. package/library/skills/research/arxiv-literature/SKILL.md +168 -0
  610. package/library/skills/research/arxiv-literature/evals.md +108 -0
  611. package/library/skills/research/arxiv-literature/plugin.json +23 -0
  612. package/library/skills/research/experiment-protocol/SKILL.md +148 -0
  613. package/library/skills/research/experiment-protocol/evals.md +114 -0
  614. package/library/skills/research/experiment-protocol/plugin.json +23 -0
  615. package/library/skills/research/scientific-debugging/SKILL.md +149 -0
  616. package/library/skills/research/scientific-debugging/evals.md +156 -0
  617. package/library/skills/research/scientific-debugging/plugin.json +23 -0
  618. package/library/skills/research/scientific-modernization/SKILL.md +170 -0
  619. package/library/skills/research/scientific-modernization/evals.md +111 -0
  620. package/library/skills/research/scientific-modernization/plugin.json +23 -0
  621. package/library/skills/skill-marketplace.json +507 -0
  622. package/library/skills/workflow/cut-it/SKILL.md +153 -0
  623. package/library/skills/workflow/cut-it/evals.md +143 -0
  624. package/library/skills/workflow/cut-it/plugin.json +23 -0
  625. package/library/skills/workflow/design-council/SKILL.md +233 -0
  626. package/library/skills/workflow/design-council/evals.md +258 -0
  627. package/library/skills/workflow/design-council/plugin.json +23 -0
  628. package/library/skills/workflow/grill-me/SKILL.md +267 -0
  629. package/library/skills/workflow/grill-me/evals.md +231 -0
  630. package/library/skills/workflow/grill-me/plugin.json +23 -0
  631. package/library/skills/workflow/workflow-distiller/SKILL.md +204 -0
  632. package/library/skills/workflow/workflow-distiller/evals.md +233 -0
  633. package/library/skills/workflow/workflow-distiller/plugin.json +23 -0
  634. package/package.json +23 -14
  635. package/src/cli/agents.ts +1 -1
  636. package/src/cli/config-inspect.ts +1 -1
  637. package/src/cli/configure.ts +2 -2
  638. package/src/cli/docs.ts +65 -328
  639. package/src/cli/eval.ts +40 -6
  640. package/src/cli/extensions.ts +74 -8
  641. package/src/cli/fleet-preflight.ts +2 -0
  642. package/src/cli/fleet.ts +2 -0
  643. package/src/cli/index.ts +4 -4
  644. package/src/cli/interop-inspect.ts +61 -33
  645. package/src/cli/interop.ts +79 -9
  646. package/src/cli/library-import.ts +139 -0
  647. package/src/cli/library.ts +418 -120
  648. package/src/cli/run.ts +26 -9
  649. package/src/cli/skills-eval.ts +43 -6
  650. package/src/cli/skills-inventory.ts +6 -2
  651. package/src/cli/skills.ts +44 -491
  652. package/src/cli/trace.ts +4 -65
  653. package/src/cli/uninstall.ts +26 -0
  654. package/src/cli/usage.ts +3 -0
  655. package/src/cli/web.ts +79 -0
  656. package/src/core/bus-events.ts +8 -4
  657. package/src/core/config.ts +71 -0
  658. package/src/core/defaults.ts +1 -1
  659. package/src/core/domain-loader.ts +37 -28
  660. package/src/core/recent-models.ts +2 -2
  661. package/src/core/session-routing.ts +3 -3
  662. package/src/core/state-file-lock.ts +1 -1
  663. package/src/core/termination.ts +13 -9
  664. package/src/core/tool-names.ts +5 -0
  665. package/src/domains/agents/contract.ts +1 -1
  666. package/src/domains/agents/extension.ts +53 -9
  667. package/src/domains/agents/fleet-commands.ts +92 -1
  668. package/src/domains/agents/fleet-contract.ts +87 -19
  669. package/src/domains/agents/recipe.ts +5 -4
  670. package/src/domains/agents/registry.ts +80 -24
  671. package/src/domains/config/extension.ts +5 -4
  672. package/src/domains/config/keybindings.ts +155 -95
  673. package/src/domains/context/worker/contract.ts +91 -0
  674. package/src/domains/context/worker/pressure.ts +120 -0
  675. package/src/domains/context/worker/recall.ts +62 -0
  676. package/src/domains/context/worker/select.ts +164 -0
  677. package/src/domains/context/worker/snapshot.ts +35 -0
  678. package/src/domains/context/worker/store.ts +16 -0
  679. package/src/domains/context/working-set/replay/synthetic.ts +2 -1
  680. package/src/domains/dispatch/active-route-planner.ts +2 -0
  681. package/src/domains/dispatch/backoff.ts +1 -0
  682. package/src/domains/dispatch/code-step.ts +12 -2
  683. package/src/domains/dispatch/contract.ts +3 -0
  684. package/src/domains/dispatch/execution-plan.ts +2 -0
  685. package/src/domains/dispatch/extension.ts +184 -39
  686. package/src/domains/dispatch/fleet-plan.ts +10 -0
  687. package/src/domains/dispatch/fleet-run.ts +1 -0
  688. package/src/domains/dispatch/index.ts +1 -0
  689. package/src/domains/dispatch/orphan-recovery.ts +2 -0
  690. package/src/domains/dispatch/receipt-integrity.ts +7 -0
  691. package/src/domains/dispatch/state.ts +2 -2
  692. package/src/domains/dispatch/types.ts +7 -0
  693. package/src/domains/dispatch/validation.ts +12 -0
  694. package/src/domains/dispatch/workspace-checkpoint.ts +1 -1
  695. package/src/domains/eval/metrics/tracked.ts +22 -2
  696. package/src/domains/evidence/failure-attribution.ts +1 -0
  697. package/src/domains/evidence/trust-status.ts +22 -3
  698. package/src/domains/extensions/command-schema.ts +145 -0
  699. package/src/domains/extensions/command-tools.ts +15 -0
  700. package/src/domains/extensions/compatibility.ts +7 -0
  701. package/src/domains/extensions/contract.ts +0 -4
  702. package/src/domains/extensions/discovery.ts +69 -205
  703. package/src/domains/extensions/extension.ts +0 -4
  704. package/src/domains/extensions/index.ts +1 -5
  705. package/src/domains/extensions/manager.ts +1 -6
  706. package/src/domains/extensions/operator-commands.ts +29 -0
  707. package/src/domains/extensions/operator-runtime.ts +485 -0
  708. package/src/domains/extensions/public-api.ts +53 -0
  709. package/src/domains/extensions/runtime-child.mjs +114 -0
  710. package/src/domains/extensions/runtime-process.ts +306 -0
  711. package/src/domains/extensions/runtime-schema.ts +146 -0
  712. package/src/domains/extensions/snapshot-access.ts +21 -0
  713. package/src/domains/extensions/snapshot.ts +4 -32
  714. package/src/domains/extensions/state.ts +5 -83
  715. package/src/domains/extensions/types.ts +33 -34
  716. package/src/domains/interop/adopt.ts +546 -0
  717. package/src/domains/interop/detect.ts +50 -12
  718. package/src/domains/interop/foreign.ts +554 -0
  719. package/src/domains/interop/import.ts +277 -0
  720. package/src/domains/interop/index.ts +24 -0
  721. package/src/domains/interop/install.ts +6 -0
  722. package/src/domains/interop/inventory.ts +351 -0
  723. package/src/domains/interop/projection.ts +360 -0
  724. package/src/domains/interop/registry.ts +106 -3
  725. package/src/domains/interop/types.ts +51 -0
  726. package/src/domains/lifecycle/migrations/index.ts +0 -2
  727. package/src/domains/lifecycle/naming-resources.ts +1 -1
  728. package/src/domains/middleware/hooks.ts +2 -2
  729. package/src/domains/middleware/marketplace-offer.ts +1 -1
  730. package/src/domains/mux/contract.ts +1 -1
  731. package/src/domains/observability/background-memory-usage.ts +3 -0
  732. package/src/domains/observability/compaction-usage.ts +2 -0
  733. package/src/domains/observability/cost.ts +5 -0
  734. package/src/domains/observability/extension.ts +1 -0
  735. package/src/domains/observability/out-of-turn-usage.ts +2 -0
  736. package/src/domains/observability/trace-store.ts +65 -5
  737. package/src/domains/plugins/catalog.ts +204 -0
  738. package/src/domains/plugins/contract.ts +24 -0
  739. package/src/domains/plugins/discovery.ts +316 -0
  740. package/src/domains/plugins/extension.ts +40 -0
  741. package/src/domains/plugins/index.ts +77 -0
  742. package/src/domains/plugins/integrity.ts +6 -0
  743. package/src/domains/plugins/manifest.ts +3 -0
  744. package/src/domains/plugins/resources.ts +102 -0
  745. package/src/domains/plugins/state.ts +753 -0
  746. package/src/domains/plugins/types.ts +217 -0
  747. package/src/domains/prompts/extension.ts +4 -10
  748. package/src/domains/prompts/fragments/operating/skills.md +10 -10
  749. package/src/domains/providers/cache-deployment.ts +147 -0
  750. package/src/domains/providers/catalog.ts +12 -7
  751. package/src/domains/providers/extension.ts +27 -5
  752. package/src/domains/providers/index.ts +1 -0
  753. package/src/domains/providers/plugins.ts +3 -13
  754. package/src/domains/providers/runtimes/common/local-synth.ts +4 -0
  755. package/src/domains/providers/types/target-descriptor.ts +17 -0
  756. package/src/domains/resources/common-loader.ts +9 -6
  757. package/src/domains/resources/index.ts +67 -0
  758. package/src/domains/resources/library-actions.ts +836 -0
  759. package/src/domains/resources/library-evals.ts +38 -0
  760. package/src/domains/resources/library-inventory.ts +1048 -0
  761. package/src/domains/resources/library-types.ts +50 -0
  762. package/src/domains/resources/library-validation.ts +634 -0
  763. package/src/domains/resources/library.ts +437 -156
  764. package/src/domains/resources/package-references.ts +66 -0
  765. package/src/domains/resources/prompts/loader.ts +75 -41
  766. package/src/domains/resources/skills/install.ts +2 -2
  767. package/src/domains/resources/skills/loader.ts +77 -22
  768. package/src/domains/resources/skills/marketplace.ts +48 -57
  769. package/src/domains/resources/skills/promotion.ts +2 -2
  770. package/src/domains/resources/skills/provenance-pin.ts +17 -4
  771. package/src/domains/safety/action-classifier.ts +2 -2
  772. package/src/domains/safety/default-path-policy.ts +3 -1
  773. package/src/domains/safety/policy-engine.ts +1 -1
  774. package/src/domains/safety/protected-artifacts.ts +21 -5
  775. package/src/domains/safety/skill-authority.ts +5 -2
  776. package/src/domains/session/compaction/compact.ts +4 -1
  777. package/src/domains/session/entries.ts +1 -0
  778. package/src/domains/session/usage.ts +6 -7
  779. package/src/domains/share/archive.ts +1 -1
  780. package/src/engine/acp/server.ts +11 -0
  781. package/src/engine/ai.ts +2 -0
  782. package/src/engine/apis/openai-completions.ts +61 -6
  783. package/src/engine/notices/pi-tui-LICENSE +21 -0
  784. package/src/engine/prewarm.ts +232 -0
  785. package/src/engine/provider-diagnostics.ts +6 -1
  786. package/src/engine/tui.ts +3 -0
  787. package/src/engine/worker-runtime.ts +58 -14
  788. package/src/engine/worker-tools.ts +5 -0
  789. package/src/entry/orchestrator.ts +46 -21
  790. package/src/entry/plugin-reload.ts +18 -0
  791. package/src/interactive/application-controller.ts +67 -21
  792. package/src/interactive/chat-loop-messages.ts +3 -0
  793. package/src/interactive/chat-loop.ts +32 -11
  794. package/src/interactive/chat-panel.ts +5 -1
  795. package/src/interactive/clio-editor.ts +53 -21
  796. package/src/interactive/command-output.ts +56 -1
  797. package/src/interactive/editor-submit.ts +65 -28
  798. package/src/interactive/fleet-run-preview.ts +2 -0
  799. package/src/interactive/follow-up-queue-panel.ts +3 -3
  800. package/src/interactive/footer/dashboard.ts +4 -1
  801. package/src/interactive/footer/notifications.ts +2 -2
  802. package/src/interactive/footer/widgets.ts +2 -2
  803. package/src/interactive/interactive-application.ts +209 -21
  804. package/src/interactive/interactive-input-runtime.ts +254 -7
  805. package/src/interactive/interactive-presentation.ts +41 -12
  806. package/src/interactive/interactive-slash-runtime.ts +37 -8
  807. package/src/interactive/keybinding-manager.ts +156 -79
  808. package/src/interactive/keyboard-owner.ts +37 -0
  809. package/src/interactive/leader-key.ts +49 -102
  810. package/src/interactive/leader-menu.ts +45 -0
  811. package/src/interactive/overlay-ask-user-lifecycle.ts +9 -1
  812. package/src/interactive/overlay-frame.ts +15 -0
  813. package/src/interactive/overlay-key-routing.ts +46 -47
  814. package/src/interactive/overlay-lifecycle.ts +30 -15
  815. package/src/interactive/overlay-resource-openers.ts +56 -46
  816. package/src/interactive/overlays/ask-user.ts +630 -556
  817. package/src/interactive/overlays/extension-panel.ts +70 -0
  818. package/src/interactive/overlays/extensions.ts +28 -5
  819. package/src/interactive/overlays/fleet-run-approval.ts +7 -3
  820. package/src/interactive/overlays/help-reference.ts +89 -40
  821. package/src/interactive/overlays/interop.ts +122 -3
  822. package/src/interactive/overlays/keybinding-detail.ts +2 -2
  823. package/src/interactive/overlays/library-lifecycle.ts +90 -0
  824. package/src/interactive/overlays/library-model.ts +574 -0
  825. package/src/interactive/overlays/library-review.ts +557 -0
  826. package/src/interactive/overlays/library-tabs.ts +3 -15
  827. package/src/interactive/overlays/library.ts +602 -0
  828. package/src/interactive/overlays/list-overlay.ts +218 -39
  829. package/src/interactive/overlays/model-selector.ts +28 -25
  830. package/src/interactive/overlays/session-selector.ts +9 -3
  831. package/src/interactive/overlays/settings.ts +25 -18
  832. package/src/interactive/overlays/tree-selector.ts +16 -11
  833. package/src/interactive/permission-hint.ts +13 -0
  834. package/src/interactive/permission-overlay.ts +77 -28
  835. package/src/interactive/prewarm.ts +11 -197
  836. package/src/interactive/prompt-source-label.ts +21 -0
  837. package/src/interactive/renderers/reference-card.ts +35 -0
  838. package/src/interactive/renderers/worker-entry.ts +35 -3
  839. package/src/interactive/session-usage-reseed.ts +2 -0
  840. package/src/interactive/side-question.ts +2 -0
  841. package/src/interactive/slash-autocomplete.ts +99 -1
  842. package/src/interactive/slash-commands.ts +390 -67
  843. package/src/interactive/slash-spec.ts +0 -1
  844. package/src/interactive/terminal-lease.ts +44 -12
  845. package/src/interactive/turn-context.ts +1 -0
  846. package/src/interactive/turn-persistence.ts +3 -0
  847. package/src/interactive/turn-prewarm.ts +126 -19
  848. package/src/interactive/turn-queues.ts +8 -7
  849. package/src/interactive/turn-runtime.ts +15 -1
  850. package/src/interactive/view/view-overlay.ts +19 -14
  851. package/src/interactive/welcome-dashboard.ts +525 -408
  852. package/src/tools/bootstrap.ts +8 -0
  853. package/src/tools/builtin-tool-catalog.ts +15 -6
  854. package/src/tools/context/index.ts +58 -5
  855. package/src/tools/context/library.ts +465 -0
  856. package/src/tools/context/surface.ts +20 -6
  857. package/src/tools/core-bootstrap.ts +3 -0
  858. package/src/tools/dispatch-admission.ts +24 -1
  859. package/src/tools/dispatch-arguments.ts +8 -0
  860. package/src/tools/dispatch-plan.ts +32 -0
  861. package/src/tools/dispatch-schema.ts +31 -1
  862. package/src/tools/dispatch-types.ts +3 -0
  863. package/src/tools/dispatch.ts +1 -1
  864. package/src/tools/harness-extensions.ts +169 -0
  865. package/src/tools/observation.ts +4 -0
  866. package/src/tools/policy.ts +7 -1
  867. package/src/tools/registry.ts +31 -3
  868. package/src/tools/worker-evidence.ts +5 -0
  869. package/src/worker/context-seed.ts +192 -0
  870. package/src/worker/entry.ts +1 -0
  871. package/src/worker/spec-contract.ts +35 -1
  872. package/dist/acp-UVEVWSDL.js +0 -130
  873. package/dist/agents-VWY37DTK.js +0 -148
  874. package/dist/auth-PCV2XQDV.js +0 -551
  875. package/dist/builtins-PD652MTK.js +0 -22
  876. package/dist/chunk-22PQ4TX4.js +0 -360
  877. package/dist/chunk-24T2YZ7A.js +0 -22648
  878. package/dist/chunk-2AKYFREM.js +0 -1008
  879. package/dist/chunk-2QPI3TR3.js +0 -162
  880. package/dist/chunk-3BJGMT2D.js +0 -324
  881. package/dist/chunk-3HQVBIKD.js +0 -308
  882. package/dist/chunk-3JLFK5MW.js +0 -193
  883. package/dist/chunk-3O2ZAUGQ.js +0 -283
  884. package/dist/chunk-3QKXHCGS.js +0 -59
  885. package/dist/chunk-3T4DXWP6.js +0 -668
  886. package/dist/chunk-3UW3KU4A.js +0 -21
  887. package/dist/chunk-3WBALRQH.js +0 -5076
  888. package/dist/chunk-4DU2TVI4.js +0 -108
  889. package/dist/chunk-4U4TKZFR.js +0 -5052
  890. package/dist/chunk-4VMV6OS6.js +0 -101
  891. package/dist/chunk-536HXRFE.js +0 -1257
  892. package/dist/chunk-5CMARGPF.js +0 -477
  893. package/dist/chunk-5CY4Q6QI.js +0 -141
  894. package/dist/chunk-5QRX7SLS.js +0 -1018
  895. package/dist/chunk-5VTJP36Q.js +0 -36
  896. package/dist/chunk-5ZSZEYJK.js +0 -119
  897. package/dist/chunk-6HAO6X5B.js +0 -197
  898. package/dist/chunk-6OII3LOK.js +0 -404
  899. package/dist/chunk-6RYDAVQT.js +0 -4338
  900. package/dist/chunk-6VRRJT7L.js +0 -146
  901. package/dist/chunk-6YA46L5A.js +0 -386
  902. package/dist/chunk-77CZRFTE.js +0 -634
  903. package/dist/chunk-7JSSKXG2.js +0 -1215
  904. package/dist/chunk-7WUZEB2M.js +0 -165
  905. package/dist/chunk-7YJWEF2L.js +0 -974
  906. package/dist/chunk-ACCKVSHU.js +0 -44
  907. package/dist/chunk-B3MOMLJ4.js +0 -433
  908. package/dist/chunk-BBV5TKE6.js +0 -35
  909. package/dist/chunk-BLTEAUCB.js +0 -668
  910. package/dist/chunk-BS4GAMUB.js +0 -233
  911. package/dist/chunk-BT7HGDOX.js +0 -3151
  912. package/dist/chunk-CBSKDFWL.js +0 -101
  913. package/dist/chunk-CXQ37WJH.js +0 -45
  914. package/dist/chunk-DXLUVUD4.js +0 -1490
  915. package/dist/chunk-DZK63TZJ.js +0 -1334
  916. package/dist/chunk-E7RF4KBO.js +0 -266
  917. package/dist/chunk-ECOMVOHP.js +0 -139
  918. package/dist/chunk-EHOSNVVM.js +0 -59
  919. package/dist/chunk-F5Z7EWMN.js +0 -4484
  920. package/dist/chunk-FQOOGXBH.js +0 -579
  921. package/dist/chunk-GLYBJ4RQ.js +0 -396
  922. package/dist/chunk-HHVJNVUJ.js +0 -179
  923. package/dist/chunk-HL26ADLH.js +0 -77
  924. package/dist/chunk-HPTJF6DG.js +0 -2465
  925. package/dist/chunk-HXHFDHB6.js +0 -962
  926. package/dist/chunk-HZ2T2YED.js +0 -1687
  927. package/dist/chunk-HZFBVU5X.js +0 -666
  928. package/dist/chunk-I2K2NCZQ.js +0 -659
  929. package/dist/chunk-IGLVVNEG.js +0 -402
  930. package/dist/chunk-IKRWLEDA.js +0 -1567
  931. package/dist/chunk-J2FYEQ5L.js +0 -33
  932. package/dist/chunk-JMPL7NUB.js +0 -108
  933. package/dist/chunk-K2HL3GBL.js +0 -998
  934. package/dist/chunk-KAFMW7WM.js +0 -386
  935. package/dist/chunk-KTFSFCVN.js +0 -46
  936. package/dist/chunk-LIN2K3EL.js +0 -66
  937. package/dist/chunk-LUL5Z66S.js +0 -221
  938. package/dist/chunk-LVFANMOH.js +0 -466
  939. package/dist/chunk-LY4N4TTL.js +0 -117
  940. package/dist/chunk-LZBMXNLP.js +0 -1196
  941. package/dist/chunk-M6TAYK66.js +0 -807
  942. package/dist/chunk-N2OKBREN.js +0 -243
  943. package/dist/chunk-NC4KV7EL.js +0 -39
  944. package/dist/chunk-NF3BK5WR.js +0 -42
  945. package/dist/chunk-NNWJYUNO.js +0 -573
  946. package/dist/chunk-NTK3WTHM.js +0 -141
  947. package/dist/chunk-ODUTYZIU.js +0 -688
  948. package/dist/chunk-OQM5IVJY.js +0 -1377
  949. package/dist/chunk-P5JMBPDJ.js +0 -7192
  950. package/dist/chunk-P5SC4DLJ.js +0 -47
  951. package/dist/chunk-P6M7RKMI.js +0 -97
  952. package/dist/chunk-PWWSIB2A.js +0 -52
  953. package/dist/chunk-PZN2LQY6.js +0 -674
  954. package/dist/chunk-Q7NNUHQV.js +0 -705
  955. package/dist/chunk-QCOV5DFY.js +0 -911
  956. package/dist/chunk-QNWRHOMF.js +0 -692
  957. package/dist/chunk-QRFXEO6Y.js +0 -17
  958. package/dist/chunk-QXFBABFJ.js +0 -380
  959. package/dist/chunk-RGZNQ5CT.js +0 -657
  960. package/dist/chunk-SRZOW5L2.js +0 -1865
  961. package/dist/chunk-SXQKNKRA.js +0 -223
  962. package/dist/chunk-T334FW2H.js +0 -362
  963. package/dist/chunk-T52TPHYC.js +0 -318
  964. package/dist/chunk-TJFDL26W.js +0 -658
  965. package/dist/chunk-TN5FW4XY.js +0 -172
  966. package/dist/chunk-U7H5WRG5.js +0 -123
  967. package/dist/chunk-UFYNOQK4.js +0 -302
  968. package/dist/chunk-URBGEOH3.js +0 -32
  969. package/dist/chunk-USZA7GWL.js +0 -341
  970. package/dist/chunk-UUQ5G6EZ.js +0 -697
  971. package/dist/chunk-VAHLPXPY.js +0 -399
  972. package/dist/chunk-VANN3GDP.js +0 -2488
  973. package/dist/chunk-VHMX7SXF.js +0 -1289
  974. package/dist/chunk-WJIMKGD6.js +0 -132
  975. package/dist/chunk-WKUYQBCG.js +0 -795
  976. package/dist/chunk-WNGF5AJX.js +0 -1911
  977. package/dist/chunk-WV6TDAPN.js +0 -3627
  978. package/dist/chunk-X3BI7HTV.js +0 -562
  979. package/dist/chunk-XWMSPJYN.js +0 -149
  980. package/dist/chunk-YPRSNUTC.js +0 -395
  981. package/dist/chunk-ZS43Y2FT.js +0 -438
  982. package/dist/clio-QQCMTUZE.js +0 -26
  983. package/dist/code-nav-GUPM6766.js +0 -686
  984. package/dist/components-TNIKXCBH.js +0 -674
  985. package/dist/config-IIM7YOD3.js +0 -621
  986. package/dist/configure-4ZM5HWJX.js +0 -73
  987. package/dist/context-44BZLJ3J.js +0 -344
  988. package/dist/context-AIDVQKMW.js +0 -278
  989. package/dist/context-OL5P3HEP.js +0 -1031
  990. package/dist/context-clear-OQV76MYP.js +0 -184
  991. package/dist/context-index-HP2JFUWA.js +0 -120
  992. package/dist/context-map-INTXD54D.js +0 -555
  993. package/dist/context-working-set-ZUW3EGLS.js +0 -1556
  994. package/dist/detail-UXPWRANG.js +0 -115
  995. package/dist/dispatch-runner-P3ZW6G77.js +0 -2438
  996. package/dist/docs-BL7ROUFN.js +0 -292
  997. package/dist/doctor-JJVGPZWT.js +0 -797
  998. package/dist/eval-V2RTN3UH.js +0 -4972
  999. package/dist/eval-inventory-QOYZERXJ.js +0 -315
  1000. package/dist/evidence-35PYWGSO.js +0 -225
  1001. package/dist/evidence-CIGGKI6J.js +0 -383
  1002. package/dist/evolve-33SM3NJP.js +0 -609
  1003. package/dist/extensions-YVRHX6ZI.js +0 -229
  1004. package/dist/fleet-LFO7SIPC.js +0 -908
  1005. package/dist/fleet-commands-RLK72GU3.js +0 -75
  1006. package/dist/fleet-decisions-3SBSCTCW.js +0 -159
  1007. package/dist/fleet-graph-JZIBCGMW.js +0 -134
  1008. package/dist/fleet-inspect-2L5YGGZJ.js +0 -469
  1009. package/dist/fleet-preflight-QRSHIIDE.js +0 -22
  1010. package/dist/fleet-validate-LIAVKDUU.js +0 -92
  1011. package/dist/fleet-verify-JIK3OQZR.js +0 -202
  1012. package/dist/fleet-view-IWHYGQKK.js +0 -118
  1013. package/dist/init-NJEDOTQW.js +0 -321
  1014. package/dist/interop-RVCAYECG.js +0 -115
  1015. package/dist/inventory-74UL7UHU.js +0 -118
  1016. package/dist/library-CTKZA7K3.js +0 -226
  1017. package/dist/memory-I76I5VUH.js +0 -512
  1018. package/dist/models-D4YDIQZQ.js +0 -289
  1019. package/dist/monitor-NKVD55HX.js +0 -775
  1020. package/dist/orchestrator-I6OATVPK.js +0 -39518
  1021. package/dist/panes-7BTYH3XQ.js +0 -103
  1022. package/dist/panes-WPOMEMRH.js +0 -74
  1023. package/dist/paths-J3KN7UAO.js +0 -67
  1024. package/dist/preload-EJAWJEIO.js +0 -116
  1025. package/dist/reset-4XMQKDNZ.js +0 -345
  1026. package/dist/resources-TVYVXK3Q.js +0 -125
  1027. package/dist/run-OWQNNSJU.js +0 -872
  1028. package/dist/share-NPZZMUXG.js +0 -290
  1029. package/dist/skills-OXFEAWMT.js +0 -510
  1030. package/dist/skills-eval-J5TCKSJA.js +0 -1034
  1031. package/dist/skills-inventory-7II4DM57.js +0 -133
  1032. package/dist/slash-commands-MDSDSWYF.js +0 -92
  1033. package/dist/steer-S7D7IKPU.js +0 -77
  1034. package/dist/support-5VAEC32W.js +0 -38
  1035. package/dist/targets-KILZEOCE.js +0 -1109
  1036. package/dist/tasks-R6P6OV22.js +0 -36
  1037. package/dist/terminal-lease-LZCG2KN3.js +0 -405
  1038. package/dist/tools-6OCQ6SVB.js +0 -28
  1039. package/dist/trace-JHLXWUMN.js +0 -572
  1040. package/dist/tui-primitives-RCY2HN7G.js +0 -17
  1041. package/dist/uninstall-FXYMFFRT.js +0 -407
  1042. package/dist/upgrade-D2OZH6IQ.js +0 -307
  1043. package/dist/usage-PIASNUS4.js +0 -1052
  1044. package/dist/verifiers-LTHUY2PX.js +0 -630
  1045. package/dist/verify-HYF7KBVE.js +0 -30
  1046. package/dist/web-fetch-MQN4FH3X.js +0 -788
  1047. package/dist/wiki-generate-RK7JQ5NP.js +0 -615
  1048. package/dist/with-panes-OFTNAR4Y.js +0 -628
  1049. package/skills/README.md +0 -418
  1050. package/skills/coding/ast-grep/SKILL.md +0 -213
  1051. package/skills/coding/ast-grep/evals.md +0 -82
  1052. package/skills/coding/coding-standards/SKILL.md +0 -164
  1053. package/skills/coding/coding-standards/evals.md +0 -57
  1054. package/skills/coding/prototype/SKILL.md +0 -151
  1055. package/skills/coding/prototype/evals.md +0 -61
  1056. package/skills/coding/tdd/SKILL.md +0 -134
  1057. package/skills/coding/tdd/evals.md +0 -61
  1058. package/skills/context/context-handoff/SKILL.md +0 -176
  1059. package/skills/context/context-handoff/evals.md +0 -101
  1060. package/skills/context/context-prime/SKILL.md +0 -131
  1061. package/skills/context/context-prime/evals.md +0 -99
  1062. package/skills/git/branch-closeout/SKILL.md +0 -132
  1063. package/skills/git/file-ticket/SKILL.md +0 -126
  1064. package/skills/git/fix-issue/SKILL.md +0 -136
  1065. package/skills/git/resolve-merge-conflicts/SKILL.md +0 -151
  1066. package/skills/git/resolve-merge-conflicts/evals.md +0 -85
  1067. package/skills/git/ship/SKILL.md +0 -134
  1068. package/skills/git/worktree-create/SKILL.md +0 -127
  1069. package/skills/git/worktree-merge/SKILL.md +0 -147
  1070. package/skills/meta/clio-coder-dev/SKILL.md +0 -101
  1071. package/skills/meta/clio-coder-dev/evals.md +0 -46
  1072. package/skills/meta/clio-coder-test/SKILL.md +0 -146
  1073. package/skills/meta/clio-coder-test/evals.md +0 -48
  1074. package/skills/meta/clio-coder-test/references/test-map.md +0 -96
  1075. package/skills/meta/credentials/SKILL.md +0 -132
  1076. package/skills/meta/credentials/evals.md +0 -104
  1077. package/skills/meta/find-skills/SKILL.md +0 -78
  1078. package/skills/meta/find-skills/evals.md +0 -47
  1079. package/skills/meta/herdr/SKILL.md +0 -133
  1080. package/skills/meta/herdr/evals.md +0 -38
  1081. package/skills/meta/skill-craft/SKILL.md +0 -125
  1082. package/skills/meta/skill-craft/evals.md +0 -41
  1083. package/skills/planning/archify/SKILL.md +0 -196
  1084. package/skills/planning/architecture/SKILL.md +0 -184
  1085. package/skills/planning/architecture/evals.md +0 -101
  1086. package/skills/planning/backlog/SKILL.md +0 -212
  1087. package/skills/planning/backlog/evals.md +0 -185
  1088. package/skills/planning/prd/SKILL.md +0 -129
  1089. package/skills/planning/prd/evals.md +0 -103
  1090. package/skills/planning/product-intent/SKILL.md +0 -173
  1091. package/skills/planning/product-intent/evals.md +0 -106
  1092. package/skills/planning/tech-spec/SKILL.md +0 -172
  1093. package/skills/planning/tech-spec/evals.md +0 -120
  1094. package/skills/registry.yaml +0 -144
  1095. package/skills/remote.yaml +0 -13
  1096. package/skills/research/arxiv-literature/SKILL.md +0 -168
  1097. package/skills/research/arxiv-literature/evals.md +0 -108
  1098. package/skills/research/experiment-protocol/SKILL.md +0 -148
  1099. package/skills/research/experiment-protocol/evals.md +0 -114
  1100. package/skills/research/scientific-debugging/SKILL.md +0 -149
  1101. package/skills/research/scientific-debugging/evals.md +0 -156
  1102. package/skills/research/scientific-modernization/SKILL.md +0 -170
  1103. package/skills/research/scientific-modernization/evals.md +0 -111
  1104. package/skills/skill-marketplace.json +0 -507
  1105. package/skills/workflow/cut-it/SKILL.md +0 -153
  1106. package/skills/workflow/cut-it/evals.md +0 -143
  1107. package/skills/workflow/design-council/SKILL.md +0 -233
  1108. package/skills/workflow/design-council/evals.md +0 -258
  1109. package/skills/workflow/grill-me/SKILL.md +0 -267
  1110. package/skills/workflow/grill-me/evals.md +0 -231
  1111. package/skills/workflow/workflow-distiller/SKILL.md +0 -201
  1112. package/skills/workflow/workflow-distiller/evals.md +0 -225
  1113. package/src/domains/extensions/resource-path.ts +0 -27
  1114. package/src/domains/extensions/resources.ts +0 -37
  1115. package/src/domains/lifecycle/migrations/2026-09-01-extension-install-digests.ts +0 -27
  1116. package/src/interactive/overlays/agents.ts +0 -70
  1117. package/src/interactive/overlays/library-install-confirm.ts +0 -152
  1118. package/src/interactive/overlays/prompts.ts +0 -89
  1119. package/src/interactive/overlays/skills-hub.ts +0 -615
  1120. /package/{skills → library/skills}/coding/ast-grep/references/rule_reference.md +0 -0
  1121. /package/{skills → library/skills}/coding/prototype/references/LOGIC.md +0 -0
  1122. /package/{skills → library/skills}/coding/prototype/references/UI.md +0 -0
  1123. /package/{skills → library/skills}/coding/tdd/references/mocking.md +0 -0
  1124. /package/{skills → library/skills}/coding/tdd/references/tests.md +0 -0
  1125. /package/{skills → library/skills}/context/context-handoff/scripts/new-handoff.sh +0 -0
  1126. /package/{skills → library/skills}/git/branch-closeout/evals.md +0 -0
  1127. /package/{skills → library/skills}/git/branch-closeout/references/closeout-checklist.md +0 -0
  1128. /package/{skills → library/skills}/git/file-ticket/assets/issue-template.md +0 -0
  1129. /package/{skills → library/skills}/git/file-ticket/evals.md +0 -0
  1130. /package/{skills → library/skills}/git/file-ticket/references/issue-discovery.md +0 -0
  1131. /package/{skills → library/skills}/git/fix-issue/evals.md +0 -0
  1132. /package/{skills → library/skills}/git/fix-issue/references/diagnosis-and-rca.md +0 -0
  1133. /package/{skills → library/skills}/git/resolve-merge-conflicts/references/conflict-matrix.md +0 -0
  1134. /package/{skills → library/skills}/git/ship/assets/pr-template.md +0 -0
  1135. /package/{skills → library/skills}/git/ship/evals.md +0 -0
  1136. /package/{skills → library/skills}/git/ship/references/remote-and-branch-policy.md +0 -0
  1137. /package/{skills → library/skills}/git/worktree-create/evals.md +0 -0
  1138. /package/{skills → library/skills}/git/worktree-create/references/worktree-setup.md +0 -0
  1139. /package/{skills → library/skills}/git/worktree-merge/evals.md +0 -0
  1140. /package/{skills → library/skills}/git/worktree-merge/references/merge-strategies.md +0 -0
  1141. /package/{skills → library/skills}/meta/clio-coder-test/references/harness.md +0 -0
  1142. /package/{skills → library/skills}/planning/archify/evals.md +0 -0
@@ -0,0 +1,4271 @@
1
+ import { createRequire as __clioCreateRequire } from "node:module"; const require = __clioCreateRequire(import.meta.url);
2
+ import {
3
+ ArrayOptions,
4
+ Clone,
5
+ Evaluate,
6
+ Flatten,
7
+ Get,
8
+ Instantiate,
9
+ Intersect,
10
+ IsArray,
11
+ IsBigInt,
12
+ IsBoolean,
13
+ IsCodec,
14
+ IsConstructor,
15
+ IsCyclic,
16
+ IsEnum,
17
+ IsFunction,
18
+ IsInteger,
19
+ IsIntersect,
20
+ IsLiteral,
21
+ IsLiteralBigInt,
22
+ IsLiteralBoolean,
23
+ IsLiteralNumber,
24
+ IsLiteralString,
25
+ IsNever,
26
+ IsNull,
27
+ IsNumber,
28
+ IsObject,
29
+ IsOptional,
30
+ IsRecord,
31
+ IsRef,
32
+ IsRefine,
33
+ IsSchema,
34
+ IsString,
35
+ IsSymbol,
36
+ IsTemplateLiteral,
37
+ IsTuple,
38
+ IsUndefined,
39
+ IsUnion,
40
+ IsVoid,
41
+ Literal,
42
+ Priority,
43
+ Record,
44
+ RecordKey,
45
+ RecordPattern,
46
+ RecordValue,
47
+ Ref,
48
+ String as String2,
49
+ TemplateLiteralDecode,
50
+ Tuple,
51
+ Union,
52
+ Unknown,
53
+ Unreachable,
54
+ With,
55
+ _Array_,
56
+ _Object_,
57
+ arguments_exports,
58
+ globals_exports,
59
+ guard_default,
60
+ guard_exports,
61
+ hash_exports,
62
+ settings_exports
63
+ } from "./chunk-GH5ZR6JP.js";
64
+ import {
65
+ __export,
66
+ init_esm_shims
67
+ } from "./chunk-ECBHH7LU.js";
68
+
69
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/value.mjs
70
+ var value_exports = {};
71
+ __export(value_exports, {
72
+ Assert: () => Assert,
73
+ Check: () => Check2,
74
+ Clean: () => Clean,
75
+ Clone: () => Clone2,
76
+ Convert: () => Convert,
77
+ Create: () => Create,
78
+ Decode: () => Decode9,
79
+ Default: () => Default,
80
+ Diff: () => Diff,
81
+ Encode: () => Encode8,
82
+ Equal: () => Equal,
83
+ Errors: () => Errors2,
84
+ HasCodec: () => HasCodec,
85
+ Hash: () => Hash,
86
+ Parse: () => Parse,
87
+ Patch: () => Patch,
88
+ Pointer: () => pointer_exports,
89
+ Repair: () => Repair
90
+ });
91
+ init_esm_shims();
92
+
93
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/assert/index.mjs
94
+ init_esm_shims();
95
+
96
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/assert/assert.mjs
97
+ init_esm_shims();
98
+
99
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/check/index.mjs
100
+ init_esm_shims();
101
+
102
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/check/check.mjs
103
+ init_esm_shims();
104
+
105
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/index.mjs
106
+ init_esm_shims();
107
+
108
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/schema.mjs
109
+ init_esm_shims();
110
+
111
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/index.mjs
112
+ init_esm_shims();
113
+
114
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_context.mjs
115
+ init_esm_shims();
116
+
117
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/index.mjs
118
+ init_esm_shims();
119
+
120
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/_refine.mjs
121
+ init_esm_shims();
122
+ function IsRefine2(value) {
123
+ return guard_exports.HasPropertyKey(value, "~refine") && guard_exports.IsArray(value["~refine"]) && guard_exports.Every(value["~refine"], 0, (value2) => guard_exports.IsObject(value2) && guard_exports.HasPropertyKey(value2, "check") && guard_exports.HasPropertyKey(value2, "error") && guard_exports.IsFunction(value2.check) && guard_exports.IsFunction(value2.error));
124
+ }
125
+
126
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/additionalItems.mjs
127
+ init_esm_shims();
128
+
129
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/schema.mjs
130
+ init_esm_shims();
131
+ function IsSchemaObject(value) {
132
+ return guard_exports.IsObject(value) && !guard_exports.IsArray(value);
133
+ }
134
+ function IsBooleanSchema(value) {
135
+ return guard_exports.IsBoolean(value);
136
+ }
137
+ function IsSchema2(value) {
138
+ return IsSchemaObject(value) || IsBooleanSchema(value);
139
+ }
140
+
141
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/additionalItems.mjs
142
+ function IsAdditionalItems(schema) {
143
+ return guard_exports.HasPropertyKey(schema, "additionalItems") && IsSchema2(schema.additionalItems);
144
+ }
145
+
146
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/additionalProperties.mjs
147
+ init_esm_shims();
148
+ function IsAdditionalProperties(schema) {
149
+ return guard_exports.HasPropertyKey(schema, "additionalProperties") && IsSchema2(schema.additionalProperties);
150
+ }
151
+
152
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/allOf.mjs
153
+ init_esm_shims();
154
+ function IsAllOf(schema) {
155
+ return guard_exports.HasPropertyKey(schema, "allOf") && guard_exports.IsArray(schema.allOf) && schema.allOf.every((value) => IsSchema2(value));
156
+ }
157
+
158
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/anchor.mjs
159
+ init_esm_shims();
160
+ function IsAnchor(schema) {
161
+ return guard_exports.HasPropertyKey(schema, "$anchor") && guard_exports.IsString(schema.$anchor);
162
+ }
163
+
164
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/anyOf.mjs
165
+ init_esm_shims();
166
+ function IsAnyOf(schema) {
167
+ return guard_exports.HasPropertyKey(schema, "anyOf") && guard_exports.IsArray(schema.anyOf) && schema.anyOf.every((value) => IsSchema2(value));
168
+ }
169
+
170
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/const.mjs
171
+ init_esm_shims();
172
+ function IsConst(value) {
173
+ return guard_exports.HasPropertyKey(value, "const");
174
+ }
175
+
176
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/contains.mjs
177
+ init_esm_shims();
178
+ function IsContains(schema) {
179
+ return guard_exports.HasPropertyKey(schema, "contains") && IsSchema2(schema.contains);
180
+ }
181
+
182
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/contentEncoding.mjs
183
+ init_esm_shims();
184
+
185
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/contentMediaType.mjs
186
+ init_esm_shims();
187
+
188
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/default.mjs
189
+ init_esm_shims();
190
+ function IsDefault(schema) {
191
+ return guard_exports.HasPropertyKey(schema, "default");
192
+ }
193
+
194
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/defs.mjs
195
+ init_esm_shims();
196
+
197
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependencies.mjs
198
+ init_esm_shims();
199
+ function IsDependencies(schema) {
200
+ return guard_exports.HasPropertyKey(schema, "dependencies") && guard_exports.IsObject(schema.dependencies) && Object.values(schema.dependencies).every((value) => IsSchema2(value) || guard_exports.IsArray(value) && value.every((value2) => guard_exports.IsString(value2)));
201
+ }
202
+
203
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependentRequired.mjs
204
+ init_esm_shims();
205
+ function IsDependentRequired(schema) {
206
+ return guard_exports.HasPropertyKey(schema, "dependentRequired") && guard_exports.IsObject(schema.dependentRequired) && Object.values(schema.dependentRequired).every((value) => guard_exports.IsArray(value) && value.every((value2) => guard_exports.IsString(value2)));
207
+ }
208
+
209
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dependentSchemas.mjs
210
+ init_esm_shims();
211
+ function IsDependentSchemas(schema) {
212
+ return guard_exports.HasPropertyKey(schema, "dependentSchemas") && guard_exports.IsObject(schema.dependentSchemas) && Object.values(schema.dependentSchemas).every((value) => IsSchema2(value));
213
+ }
214
+
215
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dynamicAnchor.mjs
216
+ init_esm_shims();
217
+ function IsDynamicAnchor(schema) {
218
+ return guard_exports.HasPropertyKey(schema, "$dynamicAnchor") && guard_exports.IsString(schema.$dynamicAnchor);
219
+ }
220
+
221
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/dynamicRef.mjs
222
+ init_esm_shims();
223
+ function IsDynamicRef(schema) {
224
+ return guard_exports.HasPropertyKey(schema, "$dynamicRef") && guard_exports.IsString(schema.$dynamicRef);
225
+ }
226
+
227
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/else.mjs
228
+ init_esm_shims();
229
+ function IsElse(schema) {
230
+ return guard_exports.HasPropertyKey(schema, "else") && IsSchema2(schema.else);
231
+ }
232
+
233
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/enum.mjs
234
+ init_esm_shims();
235
+ function IsEnum2(schema) {
236
+ return guard_exports.HasPropertyKey(schema, "enum") && guard_exports.IsArray(schema.enum);
237
+ }
238
+
239
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs
240
+ init_esm_shims();
241
+ function IsExclusiveMaximum(schema) {
242
+ return guard_exports.HasPropertyKey(schema, "exclusiveMaximum") && (guard_exports.IsNumber(schema.exclusiveMaximum) || guard_exports.IsBigInt(schema.exclusiveMaximum));
243
+ }
244
+
245
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs
246
+ init_esm_shims();
247
+ function IsExclusiveMinimum(schema) {
248
+ return guard_exports.HasPropertyKey(schema, "exclusiveMinimum") && (guard_exports.IsNumber(schema.exclusiveMinimum) || guard_exports.IsBigInt(schema.exclusiveMinimum));
249
+ }
250
+
251
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/format.mjs
252
+ init_esm_shims();
253
+ function IsFormat(schema) {
254
+ return guard_exports.HasPropertyKey(schema, "format") && guard_exports.IsString(schema.format);
255
+ }
256
+
257
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/id.mjs
258
+ init_esm_shims();
259
+ function IsId(schema) {
260
+ return guard_exports.HasPropertyKey(schema, "$id") && guard_exports.IsString(schema.$id);
261
+ }
262
+
263
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/if.mjs
264
+ init_esm_shims();
265
+ function IsIf(schema) {
266
+ return guard_exports.HasPropertyKey(schema, "if") && IsSchema2(schema.if);
267
+ }
268
+
269
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/items.mjs
270
+ init_esm_shims();
271
+ function IsItems(schema) {
272
+ return guard_exports.HasPropertyKey(schema, "items") && (IsSchema2(schema.items) || guard_exports.IsArray(schema.items) && schema.items.every((value) => {
273
+ return IsSchema2(value);
274
+ }));
275
+ }
276
+ function IsItemsSized(schema) {
277
+ return IsItems(schema) && guard_exports.IsArray(schema.items);
278
+ }
279
+
280
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maximum.mjs
281
+ init_esm_shims();
282
+ function IsMaximum(schema) {
283
+ return guard_exports.HasPropertyKey(schema, "maximum") && (guard_exports.IsNumber(schema.maximum) || guard_exports.IsBigInt(schema.maximum));
284
+ }
285
+
286
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxContains.mjs
287
+ init_esm_shims();
288
+ function IsMaxContains(schema) {
289
+ return guard_exports.HasPropertyKey(schema, "maxContains") && guard_exports.IsNumber(schema.maxContains);
290
+ }
291
+
292
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxItems.mjs
293
+ init_esm_shims();
294
+ function IsMaxItems(schema) {
295
+ return guard_exports.HasPropertyKey(schema, "maxItems") && guard_exports.IsNumber(schema.maxItems);
296
+ }
297
+
298
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxLength.mjs
299
+ init_esm_shims();
300
+ function IsMaxLength(schema) {
301
+ return guard_exports.HasPropertyKey(schema, "maxLength") && guard_exports.IsNumber(schema.maxLength);
302
+ }
303
+
304
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/maxProperties.mjs
305
+ init_esm_shims();
306
+ function IsMaxProperties(schema) {
307
+ return guard_exports.HasPropertyKey(schema, "maxProperties") && guard_exports.IsNumber(schema.maxProperties);
308
+ }
309
+
310
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minimum.mjs
311
+ init_esm_shims();
312
+ function IsMinimum(schema) {
313
+ return guard_exports.HasPropertyKey(schema, "minimum") && (guard_exports.IsNumber(schema.minimum) || guard_exports.IsBigInt(schema.minimum));
314
+ }
315
+
316
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minContains.mjs
317
+ init_esm_shims();
318
+ function IsMinContains(schema) {
319
+ return guard_exports.HasPropertyKey(schema, "minContains") && guard_exports.IsNumber(schema.minContains);
320
+ }
321
+
322
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minItems.mjs
323
+ init_esm_shims();
324
+ function IsMinItems(schema) {
325
+ return guard_exports.HasPropertyKey(schema, "minItems") && guard_exports.IsNumber(schema.minItems);
326
+ }
327
+
328
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minLength.mjs
329
+ init_esm_shims();
330
+ function IsMinLength(schema) {
331
+ return guard_exports.HasPropertyKey(schema, "minLength") && guard_exports.IsNumber(schema.minLength);
332
+ }
333
+
334
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/minProperties.mjs
335
+ init_esm_shims();
336
+ function IsMinProperties(schema) {
337
+ return guard_exports.HasPropertyKey(schema, "minProperties") && guard_exports.IsNumber(schema.minProperties);
338
+ }
339
+
340
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/multipleOf.mjs
341
+ init_esm_shims();
342
+ function IsMultipleOf(schema) {
343
+ return guard_exports.HasPropertyKey(schema, "multipleOf") && (guard_exports.IsNumber(schema.multipleOf) || guard_exports.IsBigInt(schema.multipleOf));
344
+ }
345
+
346
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/not.mjs
347
+ init_esm_shims();
348
+ function IsNot(schema) {
349
+ return guard_exports.HasPropertyKey(schema, "not") && IsSchema2(schema.not);
350
+ }
351
+
352
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/oneOf.mjs
353
+ init_esm_shims();
354
+ function IsOneOf(schema) {
355
+ return guard_exports.HasPropertyKey(schema, "oneOf") && guard_exports.IsArray(schema.oneOf) && schema.oneOf.every((value) => IsSchema2(value));
356
+ }
357
+
358
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/pattern.mjs
359
+ init_esm_shims();
360
+ function IsPattern(schema) {
361
+ return guard_exports.HasPropertyKey(schema, "pattern") && (guard_exports.IsString(schema.pattern) || schema.pattern instanceof RegExp);
362
+ }
363
+
364
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/patternProperties.mjs
365
+ init_esm_shims();
366
+ function IsPatternProperties(schema) {
367
+ return guard_exports.HasPropertyKey(schema, "patternProperties") && guard_exports.IsObject(schema.patternProperties) && Object.values(schema.patternProperties).every((value) => IsSchema2(value));
368
+ }
369
+
370
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/prefixItems.mjs
371
+ init_esm_shims();
372
+ function IsPrefixItems(schema) {
373
+ return guard_exports.HasPropertyKey(schema, "prefixItems") && guard_exports.IsArray(schema.prefixItems) && schema.prefixItems.every((schema2) => IsSchema2(schema2));
374
+ }
375
+
376
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/properties.mjs
377
+ init_esm_shims();
378
+ function IsProperties(schema) {
379
+ return guard_exports.HasPropertyKey(schema, "properties") && guard_exports.IsObject(schema.properties) && Object.values(schema.properties).every((value) => IsSchema2(value));
380
+ }
381
+
382
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/propertyNames.mjs
383
+ init_esm_shims();
384
+ function IsPropertyNames(schema) {
385
+ return guard_exports.HasPropertyKey(schema, "propertyNames") && (guard_exports.IsObject(schema.propertyNames) || IsSchema2(schema.propertyNames));
386
+ }
387
+
388
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/recursiveAnchor.mjs
389
+ init_esm_shims();
390
+ function IsRecursiveAnchor(schema) {
391
+ return guard_exports.HasPropertyKey(schema, "$recursiveAnchor") && guard_exports.IsBoolean(schema.$recursiveAnchor);
392
+ }
393
+ function IsRecursiveAnchorTrue(schema) {
394
+ return IsRecursiveAnchor(schema) && guard_exports.IsEqual(schema.$recursiveAnchor, true);
395
+ }
396
+
397
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/recursiveRef.mjs
398
+ init_esm_shims();
399
+ function IsRecursiveRef(schema) {
400
+ return guard_exports.HasPropertyKey(schema, "$recursiveRef") && guard_exports.IsString(schema.$recursiveRef);
401
+ }
402
+
403
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/ref.mjs
404
+ init_esm_shims();
405
+ function IsRef2(schema) {
406
+ return guard_exports.HasPropertyKey(schema, "$ref") && guard_exports.IsString(schema.$ref);
407
+ }
408
+
409
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/required.mjs
410
+ init_esm_shims();
411
+ function IsRequired(schema) {
412
+ return guard_exports.HasPropertyKey(schema, "required") && guard_exports.IsArray(schema.required) && schema.required.every((value) => guard_exports.IsString(value));
413
+ }
414
+
415
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/then.mjs
416
+ init_esm_shims();
417
+ function IsThen(schema) {
418
+ return guard_exports.HasPropertyKey(schema, "then") && IsSchema2(schema.then);
419
+ }
420
+
421
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/type.mjs
422
+ init_esm_shims();
423
+ function IsType(schema) {
424
+ return guard_exports.HasPropertyKey(schema, "type") && (guard_exports.IsString(schema.type) || guard_exports.IsArray(schema.type) && schema.type.every((value) => guard_exports.IsString(value)));
425
+ }
426
+
427
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/uniqueItems.mjs
428
+ init_esm_shims();
429
+ function IsUniqueItems(schema) {
430
+ return guard_exports.HasPropertyKey(schema, "uniqueItems") && guard_exports.IsBoolean(schema.uniqueItems);
431
+ }
432
+
433
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/unevaluatedItems.mjs
434
+ init_esm_shims();
435
+ function IsUnevaluatedItems(schema) {
436
+ return guard_exports.HasPropertyKey(schema, "unevaluatedItems") && IsSchema2(schema.unevaluatedItems);
437
+ }
438
+
439
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs
440
+ init_esm_shims();
441
+ function IsUnevaluatedProperties(schema) {
442
+ return guard_exports.HasPropertyKey(schema, "unevaluatedProperties") && IsSchema2(schema.unevaluatedProperties);
443
+ }
444
+
445
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_context.mjs
446
+ var CheckContext = class {
447
+ constructor() {
448
+ const indices = /* @__PURE__ */ new Set();
449
+ const keys = /* @__PURE__ */ new Set();
450
+ this.stack = [{ indices, keys }];
451
+ }
452
+ // ----------------------------------------------------------------
453
+ // Stack
454
+ // ----------------------------------------------------------------
455
+ Push() {
456
+ const indices = /* @__PURE__ */ new Set();
457
+ const keys = /* @__PURE__ */ new Set();
458
+ this.stack.push({ indices, keys });
459
+ return true;
460
+ }
461
+ Pop() {
462
+ this.stack.pop();
463
+ return true;
464
+ }
465
+ // ----------------------------------------------------------------
466
+ // Top
467
+ // ----------------------------------------------------------------
468
+ AddIndex(index) {
469
+ this.GetIndices().add(index);
470
+ return true;
471
+ }
472
+ AddKey(key) {
473
+ this.GetKeys().add(key);
474
+ return true;
475
+ }
476
+ GetIndices() {
477
+ const top = this.stack[this.stack.length - 1];
478
+ return top.indices;
479
+ }
480
+ GetKeys() {
481
+ const top = this.stack[this.stack.length - 1];
482
+ return top.keys;
483
+ }
484
+ Merge(results) {
485
+ for (const context of results) {
486
+ context.GetIndices().forEach((value) => this.GetIndices().add(value));
487
+ context.GetKeys().forEach((value) => this.GetKeys().add(value));
488
+ }
489
+ return true;
490
+ }
491
+ };
492
+ var ErrorContext = class extends CheckContext {
493
+ constructor(callback) {
494
+ super();
495
+ this.callback = callback;
496
+ }
497
+ AddError(error) {
498
+ this.callback(error);
499
+ return false;
500
+ }
501
+ };
502
+ var AccumulatedErrorContext = class extends ErrorContext {
503
+ constructor() {
504
+ super((error) => this.errors.push(error));
505
+ this.errors = [];
506
+ }
507
+ AddError(error) {
508
+ this.errors.push(error);
509
+ return false;
510
+ }
511
+ GetErrors() {
512
+ return this.errors;
513
+ }
514
+ };
515
+
516
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_externals.mjs
517
+ init_esm_shims();
518
+
519
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_functions.mjs
520
+ init_esm_shims();
521
+
522
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/schema.mjs
523
+ init_esm_shims();
524
+
525
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_refine.mjs
526
+ init_esm_shims();
527
+ function CheckRefine(_stack, _context, schema, value) {
528
+ return guard_exports.Every(schema["~refine"], 0, (refinement, _) => refinement.check(value));
529
+ }
530
+ function ErrorRefine(_stack, context, schemaPath, instancePath, schema, value) {
531
+ return guard_exports.EveryAll(schema["~refine"], 0, (refinement, index) => {
532
+ return refinement.check(value) || context.AddError({
533
+ keyword: "~refine",
534
+ schemaPath,
535
+ instancePath,
536
+ params: { index, message: refinement.error(value) }
537
+ });
538
+ });
539
+ }
540
+
541
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/additionalItems.mjs
542
+ init_esm_shims();
543
+
544
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_unique.mjs
545
+ init_esm_shims();
546
+
547
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/additionalItems.mjs
548
+ function IsValid(schema) {
549
+ return IsItems(schema) && guard_exports.IsArray(schema.items);
550
+ }
551
+ function CheckAdditionalItems(stack, context, schema, value) {
552
+ if (!IsValid(schema))
553
+ return true;
554
+ const isAdditionalItems = value.every((item, index) => {
555
+ return guard_exports.IsLessThan(index, schema.items.length) || CheckSchemaPushStack(stack, context, schema.additionalItems, item) && context.AddIndex(index);
556
+ });
557
+ return isAdditionalItems;
558
+ }
559
+ function ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, value) {
560
+ if (!IsValid(schema))
561
+ return true;
562
+ const isAdditionalItems = value.every((item, index) => {
563
+ const nextSchemaPath = `${schemaPath}/additionalItems`;
564
+ const nextInstancePath = `${instancePath}/${index}`;
565
+ return guard_exports.IsLessThan(index, schema.items.length) || ErrorSchemaPushStack(stack, context, nextSchemaPath, nextInstancePath, schema.additionalItems, item) && context.AddIndex(index);
566
+ });
567
+ return isAdditionalItems;
568
+ }
569
+
570
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/additionalProperties.mjs
571
+ init_esm_shims();
572
+ function GetPropertyKeyAsPattern(key) {
573
+ const escaped = key.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
574
+ return `^${escaped}$`;
575
+ }
576
+ function GetPropertiesPattern(schema) {
577
+ const patterns = [];
578
+ if (IsPatternProperties(schema))
579
+ patterns.push(...guard_exports.Keys(schema.patternProperties));
580
+ if (IsProperties(schema))
581
+ patterns.push(...guard_exports.Keys(schema.properties).map(GetPropertyKeyAsPattern));
582
+ return guard_exports.IsEqual(patterns.length, 0) ? "(?!)" : `(${patterns.join("|")})`;
583
+ }
584
+ function CheckAdditionalProperties(stack, context, schema, value) {
585
+ const regexp = new RegExp(GetPropertiesPattern(schema));
586
+ const isAdditionalProperties = guard_exports.Every(guard_exports.Keys(value), 0, (key, _index) => {
587
+ return regexp.test(key) || CheckSchemaPushStack(stack, context, schema.additionalProperties, value[key]) && context.AddKey(key);
588
+ });
589
+ return isAdditionalProperties;
590
+ }
591
+ function ErrorAdditionalProperties(stack, context, schemaPath, instancePath, schema, value) {
592
+ const regexp = new RegExp(GetPropertiesPattern(schema));
593
+ const additionalProperties = [];
594
+ const isAdditionalProperties = guard_exports.EveryAll(guard_exports.Keys(value), 0, (key, _index) => {
595
+ const nextSchemaPath = `${schemaPath}/additionalProperties`;
596
+ const nextInstancePath = `${instancePath}/${key}`;
597
+ const nextContext = new AccumulatedErrorContext();
598
+ const isAdditionalProperty = regexp.test(key) || ErrorSchemaPushStack(stack, nextContext, nextSchemaPath, nextInstancePath, schema.additionalProperties, value[key]) && context.AddKey(key);
599
+ if (!isAdditionalProperty)
600
+ additionalProperties.push(key);
601
+ return isAdditionalProperty;
602
+ });
603
+ return isAdditionalProperties || context.AddError({
604
+ keyword: "additionalProperties",
605
+ schemaPath,
606
+ instancePath,
607
+ params: { additionalProperties }
608
+ });
609
+ }
610
+
611
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/allOf.mjs
612
+ init_esm_shims();
613
+
614
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_reducer.mjs
615
+ init_esm_shims();
616
+
617
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/allOf.mjs
618
+ function CheckAllOf(stack, context, schema, value) {
619
+ const results = schema.allOf.reduce((result, schema2) => {
620
+ const nextContext = new CheckContext();
621
+ return CheckSchema(stack, nextContext, schema2, value) ? [...result, nextContext] : result;
622
+ }, []);
623
+ return guard_exports.IsEqual(results.length, schema.allOf.length) && context.Merge(results);
624
+ }
625
+ function ErrorAllOf(stack, context, schemaPath, instancePath, schema, value) {
626
+ const failedContexts = [];
627
+ const results = schema.allOf.reduce((result, schema2, index) => {
628
+ const nextSchemaPath = `${schemaPath}/allOf/${index}`;
629
+ const nextContext = new AccumulatedErrorContext();
630
+ const isSchema = ErrorSchema(stack, nextContext, nextSchemaPath, instancePath, schema2, value);
631
+ if (!isSchema)
632
+ failedContexts.push(nextContext);
633
+ return isSchema ? [...result, nextContext] : result;
634
+ }, []);
635
+ const isAllOf = guard_exports.IsEqual(results.length, schema.allOf.length) && context.Merge(results);
636
+ if (!isAllOf)
637
+ failedContexts.forEach((failed) => failed.GetErrors().forEach((error) => context.AddError(error)));
638
+ return isAllOf;
639
+ }
640
+
641
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/anyOf.mjs
642
+ init_esm_shims();
643
+ function CheckAnyOf(stack, context, schema, value) {
644
+ const results = schema.anyOf.reduce((result, schema2) => {
645
+ const nextContext = new CheckContext();
646
+ return CheckSchema(stack, nextContext, schema2, value) ? [...result, nextContext] : result;
647
+ }, []);
648
+ return guard_exports.IsGreaterThan(results.length, 0) && context.Merge(results);
649
+ }
650
+ function ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value) {
651
+ const failedContexts = [];
652
+ const results = schema.anyOf.reduce((result, schema2, index) => {
653
+ const nextContext = new AccumulatedErrorContext();
654
+ const nextSchemaPath = `${schemaPath}/anyOf/${index}`;
655
+ const isSchema = ErrorSchema(stack, nextContext, nextSchemaPath, instancePath, schema2, value);
656
+ if (!isSchema)
657
+ failedContexts.push(nextContext);
658
+ return isSchema ? [...result, nextContext] : result;
659
+ }, []);
660
+ const isAnyOf = guard_exports.IsGreaterThan(results.length, 0) && context.Merge(results);
661
+ if (!isAnyOf)
662
+ failedContexts.forEach((failed) => failed.GetErrors().forEach((error) => context.AddError(error)));
663
+ return isAnyOf || context.AddError({
664
+ keyword: "anyOf",
665
+ schemaPath,
666
+ instancePath,
667
+ params: {}
668
+ });
669
+ }
670
+
671
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/boolean.mjs
672
+ init_esm_shims();
673
+ function CheckBooleanSchema(_stack, _context, schema, _value) {
674
+ return schema;
675
+ }
676
+ function ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, value) {
677
+ return CheckBooleanSchema(stack, context, schema, value) || context.AddError({
678
+ keyword: "boolean",
679
+ schemaPath,
680
+ instancePath,
681
+ params: {}
682
+ });
683
+ }
684
+
685
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/const.mjs
686
+ init_esm_shims();
687
+ function CheckConst(_stack, _context, schema, value) {
688
+ return guard_exports.IsValueLike(schema.const) ? guard_exports.IsEqual(value, schema.const) : guard_exports.IsDeepEqual(value, schema.const);
689
+ }
690
+ function ErrorConst(stack, context, schemaPath, instancePath, schema, value) {
691
+ return CheckConst(stack, context, schema, value) || context.AddError({
692
+ keyword: "const",
693
+ schemaPath,
694
+ instancePath,
695
+ params: { allowedValue: schema.const }
696
+ });
697
+ }
698
+
699
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/contains.mjs
700
+ init_esm_shims();
701
+ function IsValid2(schema) {
702
+ return !(IsMinContains(schema) && guard_exports.IsEqual(schema.minContains, 0));
703
+ }
704
+ function CheckContains(stack, context, schema, value) {
705
+ if (!IsValid2(schema))
706
+ return true;
707
+ return !guard_exports.IsEqual(value.length, 0) && value.some((item) => CheckSchema(stack, context, schema.contains, item));
708
+ }
709
+ function ErrorContains(stack, context, schemaPath, instancePath, schema, value) {
710
+ return CheckContains(stack, context, schema, value) || context.AddError({
711
+ keyword: "contains",
712
+ schemaPath,
713
+ instancePath,
714
+ params: { minContains: 1 }
715
+ });
716
+ }
717
+
718
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependencies.mjs
719
+ init_esm_shims();
720
+ function CheckDependencies(stack, context, schema, value) {
721
+ const isLength = guard_exports.IsEqual(guard_exports.Keys(value).length, 0);
722
+ const isEvery = guard_exports.Every(guard_exports.Entries(schema.dependencies), 0, ([key, schema2]) => {
723
+ return !guard_exports.HasPropertyKey(value, key) || (guard_exports.IsArray(schema2) ? schema2.every((key2) => guard_exports.HasPropertyKey(value, key2)) : CheckSchema(stack, context, schema2, value));
724
+ });
725
+ return isLength || isEvery;
726
+ }
727
+ function ErrorDependencies(stack, context, schemaPath, instancePath, schema, value) {
728
+ const isLength = guard_exports.IsEqual(guard_exports.Keys(value).length, 0);
729
+ const isEvery = guard_exports.EveryAll(guard_exports.Entries(schema.dependencies), 0, ([key, schema2]) => {
730
+ const nextSchemaPath = `${schemaPath}/dependencies/${key}`;
731
+ return !guard_exports.HasPropertyKey(value, key) || (guard_exports.IsArray(schema2) ? schema2.every((dependency) => guard_exports.HasPropertyKey(value, dependency) || context.AddError({
732
+ keyword: "dependencies",
733
+ schemaPath,
734
+ instancePath,
735
+ params: { property: key, dependencies: schema2 }
736
+ })) : ErrorSchema(stack, context, nextSchemaPath, instancePath, schema2, value));
737
+ });
738
+ return isLength || isEvery;
739
+ }
740
+
741
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependentRequired.mjs
742
+ init_esm_shims();
743
+ function CheckDependentRequired(_stack, _context, schema, value) {
744
+ const isLength = guard_exports.IsEqual(guard_exports.Keys(value).length, 0);
745
+ const isEvery = guard_exports.Every(guard_exports.Entries(schema.dependentRequired), 0, ([key, keys]) => {
746
+ return !guard_exports.HasPropertyKey(value, key) || keys.every((key2) => guard_exports.HasPropertyKey(value, key2));
747
+ });
748
+ return isLength || isEvery;
749
+ }
750
+ function ErrorDependentRequired(_stack, context, schemaPath, instancePath, schema, value) {
751
+ const isLength = guard_exports.IsEqual(guard_exports.Keys(value).length, 0);
752
+ const isEveryEntry = guard_exports.EveryAll(guard_exports.Entries(schema.dependentRequired), 0, ([key, keys]) => {
753
+ return !guard_exports.HasPropertyKey(value, key) || guard_exports.EveryAll(keys, 0, (dependency) => guard_exports.HasPropertyKey(value, dependency) || context.AddError({
754
+ keyword: "dependentRequired",
755
+ schemaPath,
756
+ instancePath,
757
+ params: { property: key, dependencies: keys }
758
+ }));
759
+ });
760
+ return isLength || isEveryEntry;
761
+ }
762
+
763
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dependentSchemas.mjs
764
+ init_esm_shims();
765
+ function CheckDependentSchemas(stack, context, schema, value) {
766
+ const isLength = guard_exports.IsEqual(guard_exports.Keys(value).length, 0);
767
+ const isEvery = guard_exports.Every(guard_exports.Entries(schema.dependentSchemas), 0, ([key, schema2]) => {
768
+ return !guard_exports.HasPropertyKey(value, key) || CheckSchema(stack, context, schema2, value);
769
+ });
770
+ return isLength || isEvery;
771
+ }
772
+ function ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, value) {
773
+ const isLength = guard_exports.IsEqual(guard_exports.Keys(value).length, 0);
774
+ const isEvery = guard_exports.EveryAll(guard_exports.Entries(schema.dependentSchemas), 0, ([key, schema2]) => {
775
+ const nextSchemaPath = `${schemaPath}/dependentSchemas/${key}`;
776
+ return !guard_exports.HasPropertyKey(value, key) || ErrorSchema(stack, context, nextSchemaPath, instancePath, schema2, value);
777
+ });
778
+ return isLength || isEvery;
779
+ }
780
+
781
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/dynamicRef.mjs
782
+ init_esm_shims();
783
+ function CheckDynamicRef(stack, context, schema, value) {
784
+ const target = stack.DynamicRef(schema) ?? false;
785
+ return IsSchema2(target) && CheckSchema(stack, context, target, value);
786
+ }
787
+ function ErrorDynamicRef(stack, context, _schemaPath, instancePath, schema, value) {
788
+ const target = stack.DynamicRef(schema) ?? false;
789
+ return IsSchema2(target) && ErrorSchema(stack, context, "#", instancePath, target, value);
790
+ }
791
+
792
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/enum.mjs
793
+ init_esm_shims();
794
+ function CheckEnum(_stack, _context, schema, value) {
795
+ return schema.enum.some((option) => guard_exports.IsValueLike(option) ? guard_exports.IsEqual(value, option) : guard_exports.IsDeepEqual(value, option));
796
+ }
797
+ function ErrorEnum(stack, context, schemaPath, instancePath, schema, value) {
798
+ return CheckEnum(stack, context, schema, value) || context.AddError({
799
+ keyword: "enum",
800
+ schemaPath,
801
+ instancePath,
802
+ params: { allowedValues: schema.enum }
803
+ });
804
+ }
805
+
806
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs
807
+ init_esm_shims();
808
+ function CheckExclusiveMaximum(_stack, _context, schema, value) {
809
+ return guard_exports.IsLessThan(value, schema.exclusiveMaximum);
810
+ }
811
+ function ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, value) {
812
+ return CheckExclusiveMaximum(stack, context, schema, value) || context.AddError({
813
+ keyword: "exclusiveMaximum",
814
+ schemaPath,
815
+ instancePath,
816
+ params: { comparison: "<", limit: schema.exclusiveMaximum }
817
+ });
818
+ }
819
+
820
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs
821
+ init_esm_shims();
822
+ function CheckExclusiveMinimum(_stack, _context, schema, value) {
823
+ return guard_exports.IsGreaterThan(value, schema.exclusiveMinimum);
824
+ }
825
+ function ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, value) {
826
+ return CheckExclusiveMinimum(stack, context, schema, value) || context.AddError({
827
+ keyword: "exclusiveMinimum",
828
+ schemaPath,
829
+ instancePath,
830
+ params: { comparison: ">", limit: schema.exclusiveMinimum }
831
+ });
832
+ }
833
+
834
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/format.mjs
835
+ init_esm_shims();
836
+
837
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/index.mjs
838
+ init_esm_shims();
839
+
840
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/format.mjs
841
+ var format_exports = {};
842
+ __export(format_exports, {
843
+ Clear: () => Clear,
844
+ Entries: () => Entries,
845
+ Get: () => Get2,
846
+ Has: () => Has,
847
+ IsDate: () => IsDate,
848
+ IsDateTime: () => IsDateTime,
849
+ IsDuration: () => IsDuration,
850
+ IsEmail: () => IsEmail,
851
+ IsHostname: () => IsHostname,
852
+ IsIPv4: () => IsIPv4,
853
+ IsIPv6: () => IsIPv6,
854
+ IsIdnEmail: () => IsIdnEmail,
855
+ IsIdnHostname: () => IsIdnHostname,
856
+ IsIri: () => IsIri,
857
+ IsIriReference: () => IsIriReference,
858
+ IsJsonPointer: () => IsJsonPointer,
859
+ IsJsonPointerUriFragment: () => IsJsonPointerUriFragment,
860
+ IsRegex: () => IsRegex,
861
+ IsRelativeJsonPointer: () => IsRelativeJsonPointer,
862
+ IsTime: () => IsTime,
863
+ IsUri: () => IsUri,
864
+ IsUriReference: () => IsUriReference,
865
+ IsUriTemplate: () => IsUriTemplate,
866
+ IsUrl: () => IsUrl,
867
+ IsUuid: () => IsUuid,
868
+ Reset: () => Reset,
869
+ Set: () => Set2,
870
+ Test: () => Test
871
+ });
872
+ init_esm_shims();
873
+
874
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_registry.mjs
875
+ init_esm_shims();
876
+
877
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/date_time.mjs
878
+ init_esm_shims();
879
+
880
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/date.mjs
881
+ init_esm_shims();
882
+ var DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
883
+ var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
884
+ function IsLeapYear(year) {
885
+ return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
886
+ }
887
+ function IsDate(value) {
888
+ const matches = DATE.exec(value);
889
+ if (!matches)
890
+ return false;
891
+ const year = +matches[1];
892
+ const month = +matches[2];
893
+ const day = +matches[3];
894
+ return month >= 1 && month <= 12 && day >= 1 && day <= (month === 2 && IsLeapYear(year) ? 29 : DAYS[month]);
895
+ }
896
+
897
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/time.mjs
898
+ init_esm_shims();
899
+ var TIME = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i;
900
+ function IsTime(value, strictTimeZone = true) {
901
+ const matches = TIME.exec(value);
902
+ if (!matches)
903
+ return false;
904
+ const hr = +matches[1];
905
+ const min = +matches[2];
906
+ const sec = +matches[3];
907
+ const tzSign = matches[4] === "-" ? -1 : 1;
908
+ const tzH = +(matches[5] || 0);
909
+ const tzM = +(matches[6] || 0);
910
+ if (tzH > 23 || tzM > 59)
911
+ return false;
912
+ if (strictTimeZone && !matches[4] && value.toLowerCase().indexOf("z") === -1) {
913
+ return false;
914
+ }
915
+ if (hr <= 23 && min <= 59 && sec < 60)
916
+ return true;
917
+ const utcMin = min - tzM * tzSign;
918
+ const utcHr = hr - tzH * tzSign - (utcMin < 0 ? 1 : 0);
919
+ return (utcHr === 23 || utcHr === -1) && (utcMin === 59 || utcMin === -1) && sec < 61;
920
+ }
921
+
922
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/date_time.mjs
923
+ function IsDateTime(value, strictTimeZone = true) {
924
+ const dateTime = value.split(/T/i);
925
+ return dateTime.length === 2 && IsDate(dateTime[0]) && IsTime(dateTime[1], strictTimeZone);
926
+ }
927
+
928
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/duration.mjs
929
+ init_esm_shims();
930
+ var Duration = /^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/;
931
+ function IsDuration(value) {
932
+ return Duration.test(value);
933
+ }
934
+
935
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/email.mjs
936
+ init_esm_shims();
937
+ var Email = /^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;
938
+ function IsEmail(value) {
939
+ return Email.test(value);
940
+ }
941
+
942
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/hostname.mjs
943
+ init_esm_shims();
944
+
945
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_idna.mjs
946
+ init_esm_shims();
947
+
948
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_puny.mjs
949
+ init_esm_shims();
950
+ var PUNYCODE_BASE = 36;
951
+ var PUNYCODE_TMIN = 1;
952
+ var PUNYCODE_TMAX = 26;
953
+ var PUNYCODE_SKEW = 38;
954
+ var PUNYCODE_DAMP = 700;
955
+ var PUNYCODE_INITIAL_BIAS = 72;
956
+ var PUNYCODE_INITIAL_N = 128;
957
+ function Adapt(delta, numPoints, firstTime) {
958
+ delta = firstTime ? Math.floor(delta / PUNYCODE_DAMP) : delta >> 1;
959
+ delta += Math.floor(delta / numPoints);
960
+ let k = 0;
961
+ while (delta > (PUNYCODE_BASE - PUNYCODE_TMIN) * PUNYCODE_TMAX >> 1) {
962
+ delta = Math.floor(delta / (PUNYCODE_BASE - PUNYCODE_TMIN));
963
+ k += PUNYCODE_BASE;
964
+ }
965
+ return k + Math.floor((PUNYCODE_BASE - PUNYCODE_TMIN + 1) * delta / (delta + PUNYCODE_SKEW));
966
+ }
967
+ function Decode(value) {
968
+ const output = [];
969
+ let n = PUNYCODE_INITIAL_N;
970
+ let i = 0;
971
+ let bias = PUNYCODE_INITIAL_BIAS;
972
+ const delimIdx = value.lastIndexOf("-");
973
+ if (delimIdx > 0) {
974
+ for (let j = 0; j < delimIdx; j++) {
975
+ const cp = value.charCodeAt(j);
976
+ if (cp >= 128)
977
+ throw new Error("Invalid punycode: non-basic before delimiter");
978
+ output.push(cp);
979
+ }
980
+ }
981
+ let inIdx = delimIdx < 0 ? 0 : delimIdx + 1;
982
+ while (inIdx < value.length) {
983
+ const oldi = i;
984
+ let w = 1;
985
+ let k = PUNYCODE_BASE;
986
+ while (true) {
987
+ if (inIdx >= value.length)
988
+ throw new Error("Invalid punycode: unexpected end of input");
989
+ const ch = value.charCodeAt(inIdx++);
990
+ let digit;
991
+ if (ch >= 97 && ch <= 122)
992
+ digit = ch - 97;
993
+ else if (ch >= 48 && ch <= 57)
994
+ digit = ch - 48 + 26;
995
+ else if (ch >= 65 && ch <= 90)
996
+ digit = ch - 65;
997
+ else
998
+ throw new Error("Invalid punycode: bad digit character");
999
+ i += digit * w;
1000
+ const t = k <= bias ? PUNYCODE_TMIN : k >= bias + PUNYCODE_TMAX ? PUNYCODE_TMAX : k - bias;
1001
+ if (digit < t)
1002
+ break;
1003
+ w *= PUNYCODE_BASE - t;
1004
+ k += PUNYCODE_BASE;
1005
+ }
1006
+ const outLen = output.length + 1;
1007
+ bias = Adapt(i - oldi, outLen, oldi === 0);
1008
+ n += Math.floor(i / outLen);
1009
+ i %= outLen;
1010
+ output.splice(i, 0, n);
1011
+ i++;
1012
+ }
1013
+ return globalThis.String.fromCodePoint(...output);
1014
+ }
1015
+
1016
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_idna.mjs
1017
+ function IsNonspacingMark(cp) {
1018
+ return new RegExp("\\p{Mn}", "u").test(String.fromCodePoint(cp));
1019
+ }
1020
+ function IsSpacingCombiningMark(cp) {
1021
+ return new RegExp("\\p{Mc}", "u").test(String.fromCodePoint(cp));
1022
+ }
1023
+ function IsEnclosingMark(cp) {
1024
+ return new RegExp("\\p{Me}", "u").test(String.fromCodePoint(cp));
1025
+ }
1026
+ function IsCombiningMark(cp) {
1027
+ return IsNonspacingMark(cp) || IsSpacingCombiningMark(cp) || IsEnclosingMark(cp);
1028
+ }
1029
+ var RFC5892_DISALLOWED = /* @__PURE__ */ new Set([
1030
+ 1600,
1031
+ // ARABIC TATWEEL
1032
+ 2042,
1033
+ // NKO LAJANYALAN
1034
+ 12334,
1035
+ // HANGUL SINGLE DOT TONE MARK
1036
+ 12335,
1037
+ // HANGUL DOUBLE DOT TONE MARK
1038
+ 12337,
1039
+ // VERTICAL KANA REPEAT MARK
1040
+ 12338,
1041
+ // VERTICAL KANA REPEAT WITH VOICED ITERATION MARK
1042
+ 12339,
1043
+ // VERTICAL KANA REPEAT MARK UPPER HALF
1044
+ 12340,
1045
+ // VERTICAL KANA REPEAT WITH VOICED ITERATION MARK UPPER HALF
1046
+ 12341,
1047
+ // VERTICAL KANA REPEAT MARK LOWER HALF
1048
+ 12347
1049
+ // VERTICAL IDEOGRAPHIC ITERATION MARK
1050
+ ]);
1051
+ var VIRAMA_CPS = /* @__PURE__ */ new Set([
1052
+ 2381,
1053
+ 2509,
1054
+ 2637,
1055
+ 2765,
1056
+ 2893,
1057
+ 3021,
1058
+ 3149,
1059
+ 3277,
1060
+ 3387,
1061
+ 3388,
1062
+ 3405,
1063
+ 3530,
1064
+ 6980,
1065
+ 7082,
1066
+ 7083,
1067
+ 43456,
1068
+ 69702,
1069
+ 69759,
1070
+ 69817,
1071
+ 69939,
1072
+ 69940,
1073
+ 70080,
1074
+ 70197,
1075
+ 70477,
1076
+ 70722,
1077
+ 70850,
1078
+ 71103,
1079
+ 71231,
1080
+ 71350,
1081
+ 72767,
1082
+ 73028,
1083
+ 73029
1084
+ ]);
1085
+ function IsGreek(cp) {
1086
+ return new RegExp("\\p{Script=Greek}", "u").test(String.fromCodePoint(cp));
1087
+ }
1088
+ function IsHebrew(cp) {
1089
+ return new RegExp("\\p{Script=Hebrew}", "u").test(String.fromCodePoint(cp));
1090
+ }
1091
+ function IsHiragana(cp) {
1092
+ return new RegExp("\\p{Script=Hiragana}", "u").test(String.fromCodePoint(cp));
1093
+ }
1094
+ function IsKatakana(cp) {
1095
+ return new RegExp("\\p{Script=Katakana}", "u").test(String.fromCodePoint(cp));
1096
+ }
1097
+ function IsHan(cp) {
1098
+ return new RegExp("\\p{Script=Han}", "u").test(String.fromCodePoint(cp));
1099
+ }
1100
+ function IsArabicIndicDigit(cp) {
1101
+ return cp >= 1632 && cp <= 1641;
1102
+ }
1103
+ function IsExtendedArabicIndicDigit(cp) {
1104
+ return cp >= 1776 && cp <= 1785;
1105
+ }
1106
+ function IsVirama(cp) {
1107
+ return VIRAMA_CPS.has(cp);
1108
+ }
1109
+ function IsUnicodeLabel(value) {
1110
+ if (value.length === 0)
1111
+ return false;
1112
+ const cps = [...value].map((c) => c.codePointAt(0));
1113
+ const len = cps.length;
1114
+ if (cps[0] === 45 || cps[len - 1] === 45)
1115
+ return false;
1116
+ if (len >= 4 && cps[2] === 45 && cps[3] === 45)
1117
+ return false;
1118
+ if (IsCombiningMark(cps[0]))
1119
+ return false;
1120
+ let hasJapanese = false;
1121
+ let hasArabicIndic = false;
1122
+ let hasExtendedArabicIndic = false;
1123
+ for (let i = 0; i < len; i++) {
1124
+ const cp = cps[i];
1125
+ if (RFC5892_DISALLOWED.has(cp))
1126
+ return false;
1127
+ if (IsHiragana(cp) || IsKatakana(cp) || IsHan(cp))
1128
+ hasJapanese = true;
1129
+ if (IsArabicIndicDigit(cp))
1130
+ hasArabicIndic = true;
1131
+ if (IsExtendedArabicIndicDigit(cp))
1132
+ hasExtendedArabicIndic = true;
1133
+ const prev = cps[i - 1], next = cps[i + 1];
1134
+ switch (cp) {
1135
+ case 183:
1136
+ if (prev !== 108 || next !== 108)
1137
+ return false;
1138
+ break;
1139
+ // MIDDLE DOT (Catalan)
1140
+ case 885:
1141
+ if (next === void 0 || !IsGreek(next))
1142
+ return false;
1143
+ break;
1144
+ // Greek KERAIA
1145
+ case 1523:
1146
+ case 1524:
1147
+ if (prev === void 0 || !IsHebrew(prev))
1148
+ return false;
1149
+ break;
1150
+ // Hebrew GERESH
1151
+ case 8205:
1152
+ if (prev === void 0 || !IsVirama(prev))
1153
+ return false;
1154
+ break;
1155
+ // ZWJ
1156
+ case 12539:
1157
+ break;
1158
+ }
1159
+ }
1160
+ if (value.includes("\u30FB") && !hasJapanese)
1161
+ return false;
1162
+ if (hasArabicIndic && hasExtendedArabicIndic)
1163
+ return false;
1164
+ return true;
1165
+ }
1166
+ function IsAsciiLabel(value) {
1167
+ if (value.charCodeAt(0) === 45 || value.charCodeAt(value.length - 1) === 45)
1168
+ return false;
1169
+ if (value.length >= 4 && value.charCodeAt(2) === 45 && value.charCodeAt(3) === 45)
1170
+ return false;
1171
+ for (let i = 0; i < value.length; i++) {
1172
+ const ch = value.charCodeAt(i);
1173
+ if (!(ch >= 97 && ch <= 122 || // a-z
1174
+ ch >= 65 && ch <= 90 || // A-Z
1175
+ ch >= 48 && ch <= 57 || // 0-9
1176
+ ch === 45))
1177
+ return false;
1178
+ }
1179
+ return true;
1180
+ }
1181
+ function IsPuny(value) {
1182
+ return value.toLowerCase().startsWith("xn--");
1183
+ }
1184
+ function IsPunyLabel(value) {
1185
+ try {
1186
+ const payload = value.slice(4).toLowerCase();
1187
+ const lastHyphen = payload.lastIndexOf("-");
1188
+ if (lastHyphen === 0) {
1189
+ return false;
1190
+ }
1191
+ const decoded = Decode(payload);
1192
+ if (!decoded)
1193
+ return false;
1194
+ return IsUnicodeLabel(decoded);
1195
+ } catch {
1196
+ return false;
1197
+ }
1198
+ }
1199
+ function IsIdnLabel(value) {
1200
+ if (value.length === 0 || value.length > 63)
1201
+ return false;
1202
+ return IsPuny(value) ? IsPunyLabel(value) : IsUnicodeLabel(value);
1203
+ }
1204
+ function IsLabel(value) {
1205
+ if (value.length === 0 || value.length > 63)
1206
+ return false;
1207
+ return IsPuny(value) ? IsPunyLabel(value) : IsAsciiLabel(value);
1208
+ }
1209
+
1210
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/hostname.mjs
1211
+ function IsHostname(value) {
1212
+ if (value.length === 0 || value.length > 253)
1213
+ return false;
1214
+ if (value.charCodeAt(value.length - 1) === 46)
1215
+ return false;
1216
+ for (const label of value.split(".")) {
1217
+ if (!IsLabel(label))
1218
+ return false;
1219
+ }
1220
+ return true;
1221
+ }
1222
+
1223
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/idn_email.mjs
1224
+ init_esm_shims();
1225
+ var IdnEmail = /^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu;
1226
+ function IsIdnEmail(value) {
1227
+ return IdnEmail.test(value);
1228
+ }
1229
+
1230
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/idn_hostname.mjs
1231
+ init_esm_shims();
1232
+ function IsIdnHostname(value) {
1233
+ if (value.length === 0 || value.includes(" "))
1234
+ return false;
1235
+ const canonical = value.normalize("NFC").replace(/[\u002E\u3002\uFF0E\uFF61]/g, ".");
1236
+ if (canonical.length > 253)
1237
+ return false;
1238
+ for (const label of canonical.split(".")) {
1239
+ if (!IsIdnLabel(label))
1240
+ return false;
1241
+ }
1242
+ return true;
1243
+ }
1244
+
1245
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/ipv4.mjs
1246
+ init_esm_shims();
1247
+ function IsIPv4Internal(value, start, end) {
1248
+ let dots = 0;
1249
+ let num = 0;
1250
+ let digits = 0;
1251
+ let leading = 0;
1252
+ for (let i = start; i < end; i++) {
1253
+ const ch = value.charCodeAt(i);
1254
+ if (ch === 46) {
1255
+ if (digits === 0 || num > 255 || leading === 48 && digits > 1)
1256
+ return false;
1257
+ dots++;
1258
+ num = 0;
1259
+ digits = 0;
1260
+ leading = 0;
1261
+ } else if (ch >= 48 && ch <= 57) {
1262
+ if (digits === 0)
1263
+ leading = ch;
1264
+ num = num * 10 + (ch - 48);
1265
+ digits++;
1266
+ } else {
1267
+ return false;
1268
+ }
1269
+ }
1270
+ return dots === 3 && digits > 0 && num <= 255 && !(leading === 48 && digits > 1);
1271
+ }
1272
+ function IsIPv4(value) {
1273
+ return IsIPv4Internal(value, 0, value.length);
1274
+ }
1275
+
1276
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/ipv6.mjs
1277
+ init_esm_shims();
1278
+ function InRange(ch) {
1279
+ return ch >= 48 && ch <= 57 || // 0-9
1280
+ ch >= 65 && ch <= 70 || // A-F
1281
+ ch >= 97 && ch <= 102;
1282
+ }
1283
+ function IsIPv6(value) {
1284
+ const length = value.length;
1285
+ if (length === 0)
1286
+ return false;
1287
+ let groups = 0;
1288
+ let compressed = false;
1289
+ let i = 0;
1290
+ if (value.charCodeAt(0) === 58 && value.charCodeAt(1) === 58) {
1291
+ if (length === 2)
1292
+ return true;
1293
+ compressed = true;
1294
+ i = 2;
1295
+ }
1296
+ while (i < length) {
1297
+ let digits = 0;
1298
+ const start = i;
1299
+ while (i < length && InRange(value.charCodeAt(i))) {
1300
+ i++;
1301
+ digits++;
1302
+ }
1303
+ if (digits === 0)
1304
+ return false;
1305
+ const next = value.charCodeAt(i);
1306
+ if (next === 46) {
1307
+ if (!IsIPv4Internal(value, start, length))
1308
+ return false;
1309
+ groups += 2;
1310
+ i = length;
1311
+ break;
1312
+ }
1313
+ if (digits > 4)
1314
+ return false;
1315
+ groups++;
1316
+ if (i === length)
1317
+ break;
1318
+ if (next !== 58)
1319
+ return false;
1320
+ i++;
1321
+ if (value.charCodeAt(i) === 58) {
1322
+ if (compressed)
1323
+ return false;
1324
+ if (value.charCodeAt(i + 1) === 58)
1325
+ return false;
1326
+ compressed = true;
1327
+ i++;
1328
+ if (i === length)
1329
+ break;
1330
+ }
1331
+ }
1332
+ return compressed ? groups <= 7 : groups === 8;
1333
+ }
1334
+
1335
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/iri_reference.mjs
1336
+ init_esm_shims();
1337
+ function TryUrl(value) {
1338
+ try {
1339
+ new URL(value, "http://example.com");
1340
+ return true;
1341
+ } catch {
1342
+ return false;
1343
+ }
1344
+ }
1345
+ function IsIriReference(value) {
1346
+ if (value.includes(" ")) {
1347
+ return false;
1348
+ }
1349
+ if (value.includes("\\")) {
1350
+ return false;
1351
+ }
1352
+ if (/[\x00-\x1F\x7F]/.test(value)) {
1353
+ return false;
1354
+ }
1355
+ if (/%(?![0-9a-fA-F]{2})/.test(value)) {
1356
+ return false;
1357
+ }
1358
+ if (value === "") {
1359
+ return true;
1360
+ }
1361
+ const colonIndex = value.indexOf(":");
1362
+ const hasValidSchemePrefix = colonIndex > 0 && // Colon must not be at the very beginning (e.g., ":foo")
1363
+ /^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(value.substring(0, colonIndex));
1364
+ if (hasValidSchemePrefix) {
1365
+ return TryUrl(value);
1366
+ } else {
1367
+ const looksLikeMalformedSchemeAndAuthority = value.match(/^([a-zA-Z][a-zA-Z0-9+\-.]*)(\/\/)/);
1368
+ if (looksLikeMalformedSchemeAndAuthority && colonIndex === -1) {
1369
+ return false;
1370
+ }
1371
+ return TryUrl(value);
1372
+ }
1373
+ }
1374
+
1375
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/iri.mjs
1376
+ init_esm_shims();
1377
+ function IsIri(value) {
1378
+ try {
1379
+ new URL(value);
1380
+ return true;
1381
+ } catch {
1382
+ return false;
1383
+ }
1384
+ }
1385
+
1386
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs
1387
+ init_esm_shims();
1388
+ var JsonPointerUriFragment = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;
1389
+ function IsJsonPointerUriFragment(value) {
1390
+ return JsonPointerUriFragment.test(value);
1391
+ }
1392
+
1393
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/json_pointer.mjs
1394
+ init_esm_shims();
1395
+ var JsonPointer = /^(?:\/(?:[^~/]|~0|~1)*)*$/;
1396
+ function IsJsonPointer(value) {
1397
+ return JsonPointer.test(value);
1398
+ }
1399
+
1400
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/regex.mjs
1401
+ init_esm_shims();
1402
+ function IsRegex(value) {
1403
+ if (value.length === 0) {
1404
+ return false;
1405
+ }
1406
+ try {
1407
+ new RegExp(value);
1408
+ return true;
1409
+ } catch {
1410
+ return false;
1411
+ }
1412
+ }
1413
+
1414
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/relative_json_pointer.mjs
1415
+ init_esm_shims();
1416
+ var RelativeJsonPointer = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;
1417
+ function IsRelativeJsonPointer(value) {
1418
+ return RelativeJsonPointer.test(value);
1419
+ }
1420
+
1421
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri_reference.mjs
1422
+ init_esm_shims();
1423
+ var UriReference = /^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i;
1424
+ function IsUriReference(value) {
1425
+ return UriReference.test(value);
1426
+ }
1427
+
1428
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri_template.mjs
1429
+ init_esm_shims();
1430
+ var UriTemplate = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;
1431
+ function IsUriTemplate(value) {
1432
+ return UriTemplate.test(value);
1433
+ }
1434
+
1435
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uri.mjs
1436
+ init_esm_shims();
1437
+ function IsAlpha(ch) {
1438
+ return ch >= 97 && ch <= 122 || ch >= 65 && ch <= 90;
1439
+ }
1440
+ function IsAlphaNumeric(ch) {
1441
+ return IsAlpha(ch) || ch >= 48 && ch <= 57;
1442
+ }
1443
+ function IsHex(ch) {
1444
+ return ch >= 48 && ch <= 57 || // 0-9
1445
+ ch >= 65 && ch <= 70 || // A-F
1446
+ ch >= 97 && ch <= 102;
1447
+ }
1448
+ function IsSchemeChar(ch) {
1449
+ return IsAlphaNumeric(ch) || ch === 43 || ch === 45 || ch === 46;
1450
+ }
1451
+ function IsUnreserved(ch) {
1452
+ return IsAlphaNumeric(ch) || ch === 45 || ch === 46 || // '-', '.'
1453
+ ch === 95 || ch === 126;
1454
+ }
1455
+ function IsSubDelim(ch) {
1456
+ return ch === 33 || ch === 36 || ch === 38 || ch === 39 || ch === 40 || ch === 41 || ch === 42 || ch === 43 || ch === 44 || ch === 59 || ch === 61;
1457
+ }
1458
+ function IsPchar(ch) {
1459
+ return IsUnreserved(ch) || IsSubDelim(ch) || ch === 58 || ch === 64;
1460
+ }
1461
+ function IsUri(value) {
1462
+ const length = value.length;
1463
+ if (length === 0)
1464
+ return false;
1465
+ if (!IsAlpha(value.charCodeAt(0)))
1466
+ return false;
1467
+ let i = 1;
1468
+ while (i < length) {
1469
+ const ch = value.charCodeAt(i);
1470
+ if (ch === 58)
1471
+ break;
1472
+ if (!IsSchemeChar(ch))
1473
+ return false;
1474
+ i++;
1475
+ }
1476
+ if (value.charCodeAt(i) !== 58)
1477
+ return false;
1478
+ i++;
1479
+ if (value.charCodeAt(i) === 47 && value.charCodeAt(i + 1) === 47) {
1480
+ i += 2;
1481
+ const authorityStart = i;
1482
+ let atPos = -1;
1483
+ for (let j = i; j < length; j++) {
1484
+ const ch = value.charCodeAt(j);
1485
+ if (ch === 64) {
1486
+ atPos = j;
1487
+ break;
1488
+ }
1489
+ if (ch === 47 || ch === 63 || ch === 35)
1490
+ break;
1491
+ }
1492
+ if (atPos !== -1) {
1493
+ for (let j = authorityStart; j < atPos; j++) {
1494
+ const ch = value.charCodeAt(j);
1495
+ if (ch === 91 || ch === 93)
1496
+ return false;
1497
+ if (ch === 37) {
1498
+ if (j + 2 >= atPos || !IsHex(value.charCodeAt(j + 1)) || !IsHex(value.charCodeAt(j + 2)))
1499
+ return false;
1500
+ j += 2;
1501
+ } else if (!IsUnreserved(ch) && !IsSubDelim(ch) && ch !== 58)
1502
+ return false;
1503
+ }
1504
+ i = atPos + 1;
1505
+ }
1506
+ if (value.charCodeAt(i) === 91) {
1507
+ i++;
1508
+ while (i < length && value.charCodeAt(i) !== 93)
1509
+ i++;
1510
+ if (value.charCodeAt(i) !== 93)
1511
+ return false;
1512
+ i++;
1513
+ } else {
1514
+ while (i < length) {
1515
+ const ch = value.charCodeAt(i);
1516
+ if (ch === 47 || ch === 63 || ch === 35 || ch === 58)
1517
+ break;
1518
+ if (ch < 128 && !IsUnreserved(ch) && !IsSubDelim(ch))
1519
+ return false;
1520
+ i++;
1521
+ }
1522
+ }
1523
+ if (value.charCodeAt(i) === 58) {
1524
+ i++;
1525
+ while (i < length) {
1526
+ const ch = value.charCodeAt(i);
1527
+ if (ch === 47 || ch === 63 || ch === 35)
1528
+ break;
1529
+ if (ch < 48 || ch > 57)
1530
+ return false;
1531
+ i++;
1532
+ }
1533
+ }
1534
+ }
1535
+ while (i < length) {
1536
+ const ch = value.charCodeAt(i);
1537
+ if (ch === 37) {
1538
+ if (i + 2 >= length || !IsHex(value.charCodeAt(i + 1)) || !IsHex(value.charCodeAt(i + 2)))
1539
+ return false;
1540
+ i += 2;
1541
+ } else if (ch > 127) {
1542
+ return false;
1543
+ } else if (!(IsPchar(ch) || ch === 47 || ch === 63 || ch === 35)) {
1544
+ return false;
1545
+ }
1546
+ i++;
1547
+ }
1548
+ return true;
1549
+ }
1550
+
1551
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/url.mjs
1552
+ init_esm_shims();
1553
+ var Url = /^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;
1554
+ function IsUrl(value) {
1555
+ return Url.test(value);
1556
+ }
1557
+
1558
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/uuid.mjs
1559
+ init_esm_shims();
1560
+ var Uuid = /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;
1561
+ function IsUuid(value) {
1562
+ return Uuid.test(value);
1563
+ }
1564
+
1565
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/format/_registry.mjs
1566
+ var formats = /* @__PURE__ */ new Map();
1567
+ function Clear() {
1568
+ formats.clear();
1569
+ }
1570
+ function Entries() {
1571
+ return [...formats.entries()];
1572
+ }
1573
+ function Set2(format, check) {
1574
+ formats.set(format, check);
1575
+ }
1576
+ function Has(format) {
1577
+ return formats.has(format);
1578
+ }
1579
+ function Get2(format) {
1580
+ return formats.get(format);
1581
+ }
1582
+ function Test(format, value) {
1583
+ return formats.get(format)?.(value) ?? true;
1584
+ }
1585
+ function Reset() {
1586
+ Clear();
1587
+ formats.set("date-time", IsDateTime);
1588
+ formats.set("date", IsDate);
1589
+ formats.set("duration", IsDuration);
1590
+ formats.set("email", IsEmail);
1591
+ formats.set("hostname", IsHostname);
1592
+ formats.set("idn-email", IsIdnEmail);
1593
+ formats.set("idn-hostname", IsIdnHostname);
1594
+ formats.set("ipv4", IsIPv4);
1595
+ formats.set("ipv6", IsIPv6);
1596
+ formats.set("iri-reference", IsIriReference);
1597
+ formats.set("iri", IsIri);
1598
+ formats.set("json-pointer-uri-fragment", IsJsonPointerUriFragment);
1599
+ formats.set("json-pointer", IsJsonPointer);
1600
+ formats.set("regex", IsRegex);
1601
+ formats.set("relative-json-pointer", IsRelativeJsonPointer);
1602
+ formats.set("time", IsTime);
1603
+ formats.set("uri-reference", IsUriReference);
1604
+ formats.set("uri-template", IsUriTemplate);
1605
+ formats.set("uri", IsUri);
1606
+ formats.set("url", IsUrl);
1607
+ formats.set("uuid", IsUuid);
1608
+ }
1609
+ Reset();
1610
+
1611
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/format.mjs
1612
+ function CheckFormat(_stack, _context, schema, value) {
1613
+ return format_exports.Test(schema.format, value);
1614
+ }
1615
+ function ErrorFormat(stack, context, schemaPath, instancePath, schema, value) {
1616
+ return CheckFormat(stack, context, schema, value) || context.AddError({
1617
+ keyword: "format",
1618
+ schemaPath,
1619
+ instancePath,
1620
+ params: { format: schema.format }
1621
+ });
1622
+ }
1623
+
1624
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/if.mjs
1625
+ init_esm_shims();
1626
+ function CheckIf(stack, context, schema, value) {
1627
+ const thenSchema = IsThen(schema) ? schema.then : true;
1628
+ const elseSchema = IsElse(schema) ? schema.else : true;
1629
+ return CheckSchema(stack, context, schema.if, value) ? CheckSchema(stack, context, thenSchema, value) : CheckSchema(stack, context, elseSchema, value);
1630
+ }
1631
+ function ErrorIf(stack, context, schemaPath, instancePath, schema, value) {
1632
+ const thenSchema = IsThen(schema) ? schema.then : true;
1633
+ const elseSchema = IsElse(schema) ? schema.else : true;
1634
+ const trueContext = new AccumulatedErrorContext();
1635
+ const isIf = ErrorSchema(stack, trueContext, `${schemaPath}/if`, instancePath, schema.if, value) ? ErrorSchema(stack, trueContext, `${schemaPath}/then`, instancePath, thenSchema, value) || context.AddError({
1636
+ keyword: "if",
1637
+ schemaPath,
1638
+ instancePath,
1639
+ params: { failingKeyword: "then" }
1640
+ }) : ErrorSchema(stack, context, `${schemaPath}/else`, instancePath, elseSchema, value) || context.AddError({
1641
+ keyword: "if",
1642
+ schemaPath,
1643
+ instancePath,
1644
+ params: { failingKeyword: "else" }
1645
+ });
1646
+ if (isIf)
1647
+ context.Merge([trueContext]);
1648
+ return isIf;
1649
+ }
1650
+
1651
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/items.mjs
1652
+ init_esm_shims();
1653
+ function CheckItemsSized(stack, context, schema, value) {
1654
+ return guard_exports.Every(schema.items, 0, (schema2, index) => {
1655
+ return guard_exports.IsLessEqualThan(value.length, index) || CheckSchemaPushStack(stack, context, schema2, value[index]) && context.AddIndex(index);
1656
+ });
1657
+ }
1658
+ function ErrorItemsSized(stack, context, schemaPath, instancePath, schema, value) {
1659
+ return guard_exports.EveryAll(schema.items, 0, (schema2, index) => {
1660
+ const nextSchemaPath = `${schemaPath}/items/${index}`;
1661
+ const nextInstancePath = `${instancePath}/${index}`;
1662
+ return guard_exports.IsLessEqualThan(value.length, index) || ErrorSchemaPushStack(stack, context, nextSchemaPath, nextInstancePath, schema2, value[index]) && context.AddIndex(index);
1663
+ });
1664
+ }
1665
+ function CheckItemsUnsized(stack, context, schema, value) {
1666
+ const offset = IsPrefixItems(schema) ? schema.prefixItems.length : 0;
1667
+ return guard_exports.Every(value, offset, (element, index) => {
1668
+ return CheckSchemaPushStack(stack, context, schema.items, element) && context.AddIndex(index);
1669
+ });
1670
+ }
1671
+ function ErrorItemsUnsized(stack, context, schemaPath, instancePath, schema, value) {
1672
+ const offset = IsPrefixItems(schema) ? schema.prefixItems.length : 0;
1673
+ return guard_exports.EveryAll(value, offset, (element, index) => {
1674
+ const nextSchemaPath = `${schemaPath}/items`;
1675
+ const nextInstancePath = `${instancePath}/${index}`;
1676
+ return ErrorSchemaPushStack(stack, context, nextSchemaPath, nextInstancePath, schema.items, element) && context.AddIndex(index);
1677
+ });
1678
+ }
1679
+ function CheckItems(stack, context, schema, value) {
1680
+ return IsItemsSized(schema) ? CheckItemsSized(stack, context, schema, value) : CheckItemsUnsized(stack, context, schema, value);
1681
+ }
1682
+ function ErrorItems(stack, context, schemaPath, instancePath, schema, value) {
1683
+ return IsItemsSized(schema) ? ErrorItemsSized(stack, context, schemaPath, instancePath, schema, value) : ErrorItemsUnsized(stack, context, schemaPath, instancePath, schema, value);
1684
+ }
1685
+
1686
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxContains.mjs
1687
+ init_esm_shims();
1688
+ function IsValid3(schema) {
1689
+ return IsContains(schema);
1690
+ }
1691
+ function CheckMaxContains(stack, context, schema, value) {
1692
+ if (!IsValid3(schema))
1693
+ return true;
1694
+ const count = value.reduce((result, item) => CheckSchema(stack, context, schema.contains, item) ? ++result : result, 0);
1695
+ return guard_exports.IsLessEqualThan(count, schema.maxContains);
1696
+ }
1697
+ function ErrorMaxContains(stack, context, schemaPath, instancePath, schema, value) {
1698
+ const minContains = IsMinContains(schema) ? schema.minContains : 1;
1699
+ return CheckMaxContains(stack, context, schema, value) || context.AddError({
1700
+ keyword: "contains",
1701
+ schemaPath,
1702
+ instancePath,
1703
+ params: { minContains, maxContains: schema.maxContains }
1704
+ });
1705
+ }
1706
+
1707
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maximum.mjs
1708
+ init_esm_shims();
1709
+ function CheckMaximum(_stack, _context, schema, value) {
1710
+ return guard_exports.IsLessEqualThan(value, schema.maximum);
1711
+ }
1712
+ function ErrorMaximum(stack, context, schemaPath, instancePath, schema, value) {
1713
+ return CheckMaximum(stack, context, schema, value) || context.AddError({
1714
+ keyword: "maximum",
1715
+ schemaPath,
1716
+ instancePath,
1717
+ params: { comparison: "<=", limit: schema.maximum }
1718
+ });
1719
+ }
1720
+
1721
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxItems.mjs
1722
+ init_esm_shims();
1723
+ function CheckMaxItems(_stack, _context, schema, value) {
1724
+ return guard_exports.IsLessEqualThan(value.length, schema.maxItems);
1725
+ }
1726
+ function ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value) {
1727
+ return CheckMaxItems(stack, context, schema, value) || context.AddError({
1728
+ keyword: "maxItems",
1729
+ schemaPath,
1730
+ instancePath,
1731
+ params: { limit: schema.maxItems }
1732
+ });
1733
+ }
1734
+
1735
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxLength.mjs
1736
+ init_esm_shims();
1737
+ function CheckMaxLength(_stack, _context, schema, value) {
1738
+ return guard_exports.IsMaxLength(value, schema.maxLength);
1739
+ }
1740
+ function ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value) {
1741
+ return CheckMaxLength(stack, context, schema, value) || context.AddError({
1742
+ keyword: "maxLength",
1743
+ schemaPath,
1744
+ instancePath,
1745
+ params: { limit: schema.maxLength }
1746
+ });
1747
+ }
1748
+
1749
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/maxProperties.mjs
1750
+ init_esm_shims();
1751
+ function CheckMaxProperties(_stack, _context, schema, value) {
1752
+ return guard_exports.IsLessEqualThan(guard_exports.Keys(value).length, schema.maxProperties);
1753
+ }
1754
+ function ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, value) {
1755
+ return CheckMaxProperties(stack, context, schema, value) || context.AddError({
1756
+ keyword: "maxProperties",
1757
+ schemaPath,
1758
+ instancePath,
1759
+ params: { limit: schema.maxProperties }
1760
+ });
1761
+ }
1762
+
1763
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minContains.mjs
1764
+ init_esm_shims();
1765
+ function IsValid4(schema) {
1766
+ return IsContains(schema);
1767
+ }
1768
+ function CheckMinContains(stack, context, schema, value) {
1769
+ if (!IsValid4(schema))
1770
+ return true;
1771
+ const count = value.reduce((result, item) => CheckSchema(stack, context, schema.contains, item) ? ++result : result, 0);
1772
+ return guard_exports.IsGreaterEqualThan(count, schema.minContains);
1773
+ }
1774
+ function ErrorMinContains(stack, context, schemaPath, instancePath, schema, value) {
1775
+ return CheckMinContains(stack, context, schema, value) || context.AddError({
1776
+ keyword: "contains",
1777
+ schemaPath,
1778
+ instancePath,
1779
+ params: { minContains: schema.minContains }
1780
+ });
1781
+ }
1782
+
1783
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minimum.mjs
1784
+ init_esm_shims();
1785
+ function CheckMinimum(_stack, _context, schema, value) {
1786
+ return guard_exports.IsGreaterEqualThan(value, schema.minimum);
1787
+ }
1788
+ function ErrorMinimum(stack, context, schemaPath, instancePath, schema, value) {
1789
+ return CheckMinimum(stack, context, schema, value) || context.AddError({
1790
+ keyword: "minimum",
1791
+ schemaPath,
1792
+ instancePath,
1793
+ params: { comparison: ">=", limit: schema.minimum }
1794
+ });
1795
+ }
1796
+
1797
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minItems.mjs
1798
+ init_esm_shims();
1799
+ function CheckMinItems(_stack, _context, schema, value) {
1800
+ return guard_exports.IsGreaterEqualThan(value.length, schema.minItems);
1801
+ }
1802
+ function ErrorMinItems(stack, context, schemaPath, instancePath, schema, value) {
1803
+ return CheckMinItems(stack, context, schema, value) || context.AddError({
1804
+ keyword: "minItems",
1805
+ schemaPath,
1806
+ instancePath,
1807
+ params: { limit: schema.minItems }
1808
+ });
1809
+ }
1810
+
1811
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minLength.mjs
1812
+ init_esm_shims();
1813
+ function CheckMinLength(_stack, _context, schema, value) {
1814
+ return guard_exports.IsMinLength(value, schema.minLength);
1815
+ }
1816
+ function ErrorMinLength(stack, context, schemaPath, instancePath, schema, value) {
1817
+ return CheckMinLength(stack, context, schema, value) || context.AddError({
1818
+ keyword: "minLength",
1819
+ schemaPath,
1820
+ instancePath,
1821
+ params: { limit: schema.minLength }
1822
+ });
1823
+ }
1824
+
1825
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/minProperties.mjs
1826
+ init_esm_shims();
1827
+ function CheckMinProperties(_stack, _context, schema, value) {
1828
+ return guard_exports.IsGreaterEqualThan(guard_exports.Keys(value).length, schema.minProperties);
1829
+ }
1830
+ function ErrorMinProperties(stack, context, schemaPath, instancePath, schema, value) {
1831
+ return CheckMinProperties(stack, context, schema, value) || context.AddError({
1832
+ keyword: "minProperties",
1833
+ schemaPath,
1834
+ instancePath,
1835
+ params: { limit: schema.minProperties }
1836
+ });
1837
+ }
1838
+
1839
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/multipleOf.mjs
1840
+ init_esm_shims();
1841
+ function CheckMultipleOf(_stack, _context, schema, value) {
1842
+ return guard_exports.IsMultipleOf(value, schema.multipleOf);
1843
+ }
1844
+ function ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value) {
1845
+ return CheckMultipleOf(stack, context, schema, value) || context.AddError({
1846
+ keyword: "multipleOf",
1847
+ schemaPath,
1848
+ instancePath,
1849
+ params: { multipleOf: schema.multipleOf }
1850
+ });
1851
+ }
1852
+
1853
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/not.mjs
1854
+ init_esm_shims();
1855
+ function CheckNot(stack, context, schema, value) {
1856
+ const nextContext = new CheckContext();
1857
+ const isSchema = !CheckSchema(stack, nextContext, schema.not, value);
1858
+ const isNot = isSchema && context.Merge([nextContext]);
1859
+ return isNot;
1860
+ }
1861
+ function ErrorNot(stack, context, schemaPath, instancePath, schema, value) {
1862
+ return CheckNot(stack, context, schema, value) || context.AddError({
1863
+ keyword: "not",
1864
+ schemaPath,
1865
+ instancePath,
1866
+ params: {}
1867
+ });
1868
+ }
1869
+
1870
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/oneOf.mjs
1871
+ init_esm_shims();
1872
+ function CheckOneOf(stack, context, schema, value) {
1873
+ const passedContexts = schema.oneOf.reduce((result, schema2) => {
1874
+ const nextContext = new CheckContext();
1875
+ return CheckSchema(stack, nextContext, schema2, value) ? [...result, nextContext] : result;
1876
+ }, []);
1877
+ return guard_exports.IsEqual(passedContexts.length, 1) && context.Merge(passedContexts);
1878
+ }
1879
+ function ErrorOneOf(stack, context, schemaPath, instancePath, schema, value) {
1880
+ const failedContexts = [];
1881
+ const passingSchemas = [];
1882
+ const passedContexts = schema.oneOf.reduce((result, schema2, index) => {
1883
+ const nextContext = new AccumulatedErrorContext();
1884
+ const nextSchemaPath = `${schemaPath}/oneOf/${index}`;
1885
+ const isSchema = ErrorSchema(stack, nextContext, nextSchemaPath, instancePath, schema2, value);
1886
+ if (isSchema)
1887
+ passingSchemas.push(index);
1888
+ if (!isSchema)
1889
+ failedContexts.push(nextContext);
1890
+ return isSchema ? [...result, nextContext] : result;
1891
+ }, []);
1892
+ const isOneOf = guard_exports.IsEqual(passedContexts.length, 1) && context.Merge(passedContexts);
1893
+ if (!isOneOf && guard_exports.IsEqual(passingSchemas.length, 0))
1894
+ failedContexts.forEach((failed) => failed.GetErrors().forEach((error) => context.AddError(error)));
1895
+ return isOneOf || context.AddError({
1896
+ keyword: "oneOf",
1897
+ schemaPath,
1898
+ instancePath,
1899
+ params: { passingSchemas }
1900
+ });
1901
+ }
1902
+
1903
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/pattern.mjs
1904
+ init_esm_shims();
1905
+ function CheckPattern(_stack, _context, schema, value) {
1906
+ const regexp = guard_exports.IsString(schema.pattern) ? new RegExp(schema.pattern, "u") : schema.pattern;
1907
+ return regexp.test(value);
1908
+ }
1909
+ function ErrorPattern(stack, context, schemaPath, instancePath, schema, value) {
1910
+ return CheckPattern(stack, context, schema, value) || context.AddError({
1911
+ keyword: "pattern",
1912
+ schemaPath,
1913
+ instancePath,
1914
+ params: { pattern: schema.pattern }
1915
+ });
1916
+ }
1917
+
1918
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/patternProperties.mjs
1919
+ init_esm_shims();
1920
+ function CheckPatternProperties(stack, context, schema, value) {
1921
+ return guard_exports.Every(guard_exports.Entries(schema.patternProperties), 0, ([pattern, schema2]) => {
1922
+ const regexp = new RegExp(pattern, "u");
1923
+ return guard_exports.Every(guard_exports.Entries(value), 0, ([key, prop]) => {
1924
+ return !regexp.test(key) || CheckSchemaPushStack(stack, context, schema2, prop) && context.AddKey(key);
1925
+ });
1926
+ });
1927
+ }
1928
+ function ErrorPatternProperties(stack, context, schemaPath, instancePath, schema, value) {
1929
+ return guard_exports.EveryAll(guard_exports.Entries(schema.patternProperties), 0, ([pattern, schema2]) => {
1930
+ const nextSchemaPath = `${schemaPath}/patternProperties/${pattern}`;
1931
+ const regexp = new RegExp(pattern, "u");
1932
+ return guard_exports.EveryAll(guard_exports.Entries(value), 0, ([key, value2]) => {
1933
+ const nextInstancePath = `${instancePath}/${key}`;
1934
+ const notKey = !regexp.test(key);
1935
+ return notKey || ErrorSchemaPushStack(stack, context, nextSchemaPath, nextInstancePath, schema2, value2) && context.AddKey(key);
1936
+ });
1937
+ });
1938
+ }
1939
+
1940
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/prefixItems.mjs
1941
+ init_esm_shims();
1942
+ function CheckPrefixItems(stack, context, schema, value) {
1943
+ return guard_exports.IsEqual(value.length, 0) || guard_exports.Every(schema.prefixItems, 0, (schema2, index) => {
1944
+ return guard_exports.IsLessEqualThan(value.length, index) || CheckSchemaPushStack(stack, context, schema2, value[index]) && context.AddIndex(index);
1945
+ });
1946
+ }
1947
+ function ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, value) {
1948
+ return guard_exports.IsEqual(value.length, 0) || guard_exports.EveryAll(schema.prefixItems, 0, (schema2, index) => {
1949
+ const nextSchemaPath = `${schemaPath}/prefixItems/${index}`;
1950
+ const nextInstancePath = `${instancePath}/${index}`;
1951
+ return guard_exports.IsLessEqualThan(value.length, index) || ErrorSchemaPushStack(stack, context, nextSchemaPath, nextInstancePath, schema2, value[index]) && context.AddIndex(index);
1952
+ });
1953
+ }
1954
+
1955
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/properties.mjs
1956
+ init_esm_shims();
1957
+
1958
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_exact_optional.mjs
1959
+ init_esm_shims();
1960
+ function IsExactOptional(required, key) {
1961
+ return required.includes(key) || settings_exports.Get().exactOptionalPropertyTypes;
1962
+ }
1963
+ function InexactOptionalCheck(value, key) {
1964
+ return guard_exports.IsUndefined(value[key]);
1965
+ }
1966
+
1967
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/properties.mjs
1968
+ function CheckProperties(stack, context, schema, value) {
1969
+ const required = IsRequired(schema) ? schema.required : [];
1970
+ const isProperties = guard_exports.Every(guard_exports.Entries(schema.properties), 0, ([key, schema2]) => {
1971
+ const isProperty = !guard_exports.HasPropertyKey(value, key) || CheckSchemaPushStack(stack, context, schema2, value[key]) && context.AddKey(key);
1972
+ return IsExactOptional(required, key) ? isProperty : InexactOptionalCheck(value, key) || isProperty;
1973
+ });
1974
+ return isProperties;
1975
+ }
1976
+ function ErrorProperties(stack, context, schemaPath, instancePath, schema, value) {
1977
+ const required = IsRequired(schema) ? schema.required : [];
1978
+ const isProperties = guard_exports.EveryAll(guard_exports.Entries(schema.properties), 0, ([key, schema2]) => {
1979
+ const nextSchemaPath = `${schemaPath}/properties/${key}`;
1980
+ const nextInstancePath = `${instancePath}/${key}`;
1981
+ const isProperty = () => !guard_exports.HasPropertyKey(value, key) || ErrorSchemaPushStack(stack, context, nextSchemaPath, nextInstancePath, schema2, value[key]) && context.AddKey(key);
1982
+ return IsExactOptional(required, key) ? isProperty() : InexactOptionalCheck(value, key) || isProperty();
1983
+ });
1984
+ return isProperties;
1985
+ }
1986
+
1987
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/propertyNames.mjs
1988
+ init_esm_shims();
1989
+ function CheckPropertyNames(stack, context, schema, value) {
1990
+ return guard_exports.Every(guard_exports.Keys(value), 0, (key, _index) => CheckSchema(stack, context, schema.propertyNames, key));
1991
+ }
1992
+ function ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, value) {
1993
+ const propertyNames = [];
1994
+ const isPropertyNames = guard_exports.EveryAll(guard_exports.Keys(value), 0, (key, _index) => {
1995
+ const nextInstancePath = `${instancePath}/${key}`;
1996
+ const nextSchemaPath = `${schemaPath}/propertyNames`;
1997
+ const nextContext = new AccumulatedErrorContext();
1998
+ const isPropertyName = ErrorSchema(stack, nextContext, nextSchemaPath, nextInstancePath, schema.propertyNames, key);
1999
+ if (!isPropertyName)
2000
+ propertyNames.push(key);
2001
+ return isPropertyName;
2002
+ });
2003
+ return isPropertyNames || context.AddError({
2004
+ keyword: "propertyNames",
2005
+ schemaPath,
2006
+ instancePath,
2007
+ params: { propertyNames }
2008
+ });
2009
+ }
2010
+
2011
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/recursiveRef.mjs
2012
+ init_esm_shims();
2013
+ function CheckRecursiveRef(stack, context, schema, value) {
2014
+ const target = stack.RecursiveRef(schema) ?? false;
2015
+ return IsSchema2(target) && CheckSchema(stack, context, target, value);
2016
+ }
2017
+ function ErrorRecursiveRef(stack, context, _schemaPath, instancePath, schema, value) {
2018
+ const target = stack.RecursiveRef(schema) ?? false;
2019
+ return IsSchema2(target) && ErrorSchema(stack, context, "#", instancePath, target, value);
2020
+ }
2021
+
2022
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/ref.mjs
2023
+ init_esm_shims();
2024
+ function CheckRef(stack, context, schema, value) {
2025
+ const target = stack.Ref(schema) ?? false;
2026
+ const nextContext = new CheckContext();
2027
+ const result = IsSchema2(target) && CheckSchema(stack, nextContext, target, value);
2028
+ if (result)
2029
+ context.Merge([nextContext]);
2030
+ return result;
2031
+ }
2032
+ function ErrorRef(stack, context, _schemaPath, instancePath, schema, value) {
2033
+ const target = stack.Ref(schema) ?? false;
2034
+ const nextContext = new AccumulatedErrorContext();
2035
+ const result = IsSchema2(target) && ErrorSchema(stack, nextContext, "#", instancePath, target, value);
2036
+ if (result)
2037
+ context.Merge([nextContext]);
2038
+ if (!result)
2039
+ nextContext.GetErrors().forEach((error) => context.AddError(error));
2040
+ return result;
2041
+ }
2042
+
2043
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/required.mjs
2044
+ init_esm_shims();
2045
+ function CheckRequired(_stack, _context, schema, value) {
2046
+ return guard_exports.Every(schema.required, 0, (key) => guard_exports.HasPropertyKey(value, key));
2047
+ }
2048
+ function ErrorRequired(_stack, context, schemaPath, instancePath, schema, value) {
2049
+ const requiredProperties = [];
2050
+ const isRequired = guard_exports.EveryAll(schema.required, 0, (key) => {
2051
+ const hasKey = guard_exports.HasPropertyKey(value, key);
2052
+ if (!hasKey)
2053
+ requiredProperties.push(key);
2054
+ return hasKey;
2055
+ });
2056
+ return isRequired || context.AddError({
2057
+ keyword: "required",
2058
+ schemaPath,
2059
+ instancePath,
2060
+ params: { requiredProperties }
2061
+ });
2062
+ }
2063
+
2064
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/type.mjs
2065
+ init_esm_shims();
2066
+ function CheckTypeName(_stack, _context, type, _schema, value) {
2067
+ return (
2068
+ // jsonschema
2069
+ guard_exports.IsEqual(type, "object") ? guard_exports.IsObjectNotArray(value) : guard_exports.IsEqual(type, "array") ? guard_exports.IsArray(value) : guard_exports.IsEqual(type, "boolean") ? guard_exports.IsBoolean(value) : guard_exports.IsEqual(type, "integer") ? guard_exports.IsInteger(value) : guard_exports.IsEqual(type, "number") ? guard_exports.IsNumber(value) : guard_exports.IsEqual(type, "null") ? guard_exports.IsNull(value) : guard_exports.IsEqual(type, "string") ? guard_exports.IsString(value) : (
2070
+ // xschema
2071
+ guard_exports.IsEqual(type, "bigint") ? guard_exports.IsBigInt(value) : guard_exports.IsEqual(type, "constructor") ? guard_exports.IsConstructor(value) : guard_exports.IsEqual(type, "function") ? guard_exports.IsFunction(value) : guard_exports.IsEqual(type, "symbol") ? guard_exports.IsSymbol(value) : guard_exports.IsEqual(type, "undefined") ? guard_exports.IsUndefined(value) : guard_exports.IsEqual(type, "void") ? guard_exports.IsUndefined(value) : true
2072
+ )
2073
+ );
2074
+ }
2075
+ function CheckTypeNames(stack, context, types, schema, value) {
2076
+ return types.some((type) => CheckTypeName(stack, context, type, schema, value));
2077
+ }
2078
+ function CheckType(stack, context, schema, value) {
2079
+ return guard_exports.IsArray(schema.type) ? CheckTypeNames(stack, context, schema.type, schema, value) : CheckTypeName(stack, context, schema.type, schema, value);
2080
+ }
2081
+ function ErrorType(stack, context, schemaPath, instancePath, schema, value) {
2082
+ const isType = guard_exports.IsArray(schema.type) ? CheckTypeNames(stack, context, schema.type, schema, value) : CheckTypeName(stack, context, schema.type, schema, value);
2083
+ return isType || context.AddError({
2084
+ keyword: "type",
2085
+ schemaPath,
2086
+ instancePath,
2087
+ params: { type: schema.type }
2088
+ });
2089
+ }
2090
+
2091
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs
2092
+ init_esm_shims();
2093
+ function CheckUnevaluatedItems(stack, context, schema, value) {
2094
+ const indices = context.GetIndices();
2095
+ return guard_exports.Every(value, 0, (item, index) => {
2096
+ return (indices.has(index) || CheckSchema(stack, context, schema.unevaluatedItems, item)) && context.AddIndex(index);
2097
+ });
2098
+ }
2099
+ function ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, value) {
2100
+ const indices = context.GetIndices();
2101
+ const unevaluatedItems = [];
2102
+ const isUnevaluatedItems = guard_exports.EveryAll(value, 0, (item, index) => {
2103
+ const nextContext = new AccumulatedErrorContext();
2104
+ const isEvaluatedItem = (indices.has(index) || ErrorSchema(stack, nextContext, schemaPath, instancePath, schema.unevaluatedItems, item)) && context.AddIndex(index);
2105
+ if (!isEvaluatedItem)
2106
+ unevaluatedItems.push(index);
2107
+ return isEvaluatedItem;
2108
+ });
2109
+ return isUnevaluatedItems || context.AddError({
2110
+ keyword: "unevaluatedItems",
2111
+ schemaPath,
2112
+ instancePath,
2113
+ params: { unevaluatedItems }
2114
+ });
2115
+ }
2116
+
2117
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs
2118
+ init_esm_shims();
2119
+ function CheckUnevaluatedProperties(stack, context, schema, value) {
2120
+ const keys = context.GetKeys();
2121
+ return guard_exports.Every(guard_exports.Entries(value), 0, ([key, prop]) => {
2122
+ return keys.has(key) || CheckSchema(stack, context, schema.unevaluatedProperties, prop) && context.AddKey(key);
2123
+ });
2124
+ }
2125
+ function ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, schema, value) {
2126
+ const keys = context.GetKeys();
2127
+ const unevaluatedProperties = [];
2128
+ const isUnevaluatedProperties = guard_exports.EveryAll(guard_exports.Entries(value), 0, ([key, prop]) => {
2129
+ const nextContext = new AccumulatedErrorContext();
2130
+ const isEvaluatedProperty = keys.has(key) || ErrorSchema(stack, nextContext, schemaPath, instancePath, schema.unevaluatedProperties, prop) && context.AddKey(key);
2131
+ if (!isEvaluatedProperty)
2132
+ unevaluatedProperties.push(key);
2133
+ return isEvaluatedProperty;
2134
+ });
2135
+ return isUnevaluatedProperties || context.AddError({
2136
+ keyword: "unevaluatedProperties",
2137
+ schemaPath,
2138
+ instancePath,
2139
+ params: { unevaluatedProperties }
2140
+ });
2141
+ }
2142
+
2143
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/uniqueItems.mjs
2144
+ init_esm_shims();
2145
+ function IsValid5(schema) {
2146
+ return !guard_exports.IsEqual(schema.uniqueItems, false);
2147
+ }
2148
+ function CheckUniqueItems(_stack, _context, schema, value) {
2149
+ if (!IsValid5(schema))
2150
+ return true;
2151
+ const set = new Set(value.map(hash_exports.Hash)).size;
2152
+ const isLength = value.length;
2153
+ return guard_exports.IsEqual(set, isLength);
2154
+ }
2155
+ function ErrorUniqueItems(_stack, context, schemaPath, instancePath, schema, value) {
2156
+ if (!IsValid5(schema))
2157
+ return true;
2158
+ const set = /* @__PURE__ */ new Set();
2159
+ const duplicateItems = value.reduce((result, value2, index) => {
2160
+ const hash = hash_exports.Hash(value2);
2161
+ if (set.has(hash))
2162
+ return [...result, index];
2163
+ set.add(hash);
2164
+ return result;
2165
+ }, []);
2166
+ const isUniqueItems = guard_exports.IsEqual(duplicateItems.length, 0);
2167
+ return isUniqueItems || context.AddError({
2168
+ keyword: "uniqueItems",
2169
+ schemaPath,
2170
+ instancePath,
2171
+ params: { duplicateItems }
2172
+ });
2173
+ }
2174
+
2175
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/schema.mjs
2176
+ function CheckSchemaPushStack(stack, context, schema, value) {
2177
+ return context.Push() && CheckSchema(stack, context, schema, value) && context.Pop();
2178
+ }
2179
+ function CheckSchema(stack, context, schema, value) {
2180
+ stack.Push(schema);
2181
+ const result = IsBooleanSchema(schema) ? CheckBooleanSchema(stack, context, schema, value) : (!IsType(schema) || CheckType(stack, context, schema, value)) && (!(guard_exports.IsObject(value) && !guard_exports.IsArray(value)) || (!IsRequired(schema) || CheckRequired(stack, context, schema, value)) && (!IsAdditionalProperties(schema) || CheckAdditionalProperties(stack, context, schema, value)) && (!IsDependencies(schema) || CheckDependencies(stack, context, schema, value)) && (!IsDependentRequired(schema) || CheckDependentRequired(stack, context, schema, value)) && (!IsDependentSchemas(schema) || CheckDependentSchemas(stack, context, schema, value)) && (!IsPatternProperties(schema) || CheckPatternProperties(stack, context, schema, value)) && (!IsProperties(schema) || CheckProperties(stack, context, schema, value)) && (!IsPropertyNames(schema) || CheckPropertyNames(stack, context, schema, value)) && (!IsMinProperties(schema) || CheckMinProperties(stack, context, schema, value)) && (!IsMaxProperties(schema) || CheckMaxProperties(stack, context, schema, value))) && (!guard_exports.IsArray(value) || (!IsAdditionalItems(schema) || CheckAdditionalItems(stack, context, schema, value)) && (!IsContains(schema) || CheckContains(stack, context, schema, value)) && (!IsItems(schema) || CheckItems(stack, context, schema, value)) && (!IsMaxContains(schema) || CheckMaxContains(stack, context, schema, value)) && (!IsMaxItems(schema) || CheckMaxItems(stack, context, schema, value)) && (!IsMinContains(schema) || CheckMinContains(stack, context, schema, value)) && (!IsMinItems(schema) || CheckMinItems(stack, context, schema, value)) && (!IsPrefixItems(schema) || CheckPrefixItems(stack, context, schema, value)) && (!IsUniqueItems(schema) || CheckUniqueItems(stack, context, schema, value))) && (!guard_exports.IsString(value) || (!IsMaxLength(schema) || CheckMaxLength(stack, context, schema, value)) && (!IsMinLength(schema) || CheckMinLength(stack, context, schema, value)) && (!IsFormat(schema) || CheckFormat(stack, context, schema, value)) && (!IsPattern(schema) || CheckPattern(stack, context, schema, value))) && (!(guard_exports.IsNumber(value) || guard_exports.IsBigInt(value)) || (!IsExclusiveMaximum(schema) || CheckExclusiveMaximum(stack, context, schema, value)) && (!IsExclusiveMinimum(schema) || CheckExclusiveMinimum(stack, context, schema, value)) && (!IsMaximum(schema) || CheckMaximum(stack, context, schema, value)) && (!IsMinimum(schema) || CheckMinimum(stack, context, schema, value)) && (!IsMultipleOf(schema) || CheckMultipleOf(stack, context, schema, value))) && (!IsRef2(schema) || CheckRef(stack, context, schema, value)) && (!IsRecursiveRef(schema) || CheckRecursiveRef(stack, context, schema, value)) && (!IsDynamicRef(schema) || CheckDynamicRef(stack, context, schema, value)) && (!IsConst(schema) || CheckConst(stack, context, schema, value)) && (!IsEnum2(schema) || CheckEnum(stack, context, schema, value)) && (!IsIf(schema) || CheckIf(stack, context, schema, value)) && (!IsNot(schema) || CheckNot(stack, context, schema, value)) && (!IsAllOf(schema) || CheckAllOf(stack, context, schema, value)) && (!IsAnyOf(schema) || CheckAnyOf(stack, context, schema, value)) && (!IsOneOf(schema) || CheckOneOf(stack, context, schema, value)) && (!IsUnevaluatedItems(schema) || (!guard_exports.IsArray(value) || CheckUnevaluatedItems(stack, context, schema, value))) && (!IsUnevaluatedProperties(schema) || (!guard_exports.IsObject(value) || CheckUnevaluatedProperties(stack, context, schema, value))) && (!IsRefine2(schema) || CheckRefine(stack, context, schema, value));
2182
+ stack.Pop(schema);
2183
+ return result;
2184
+ }
2185
+ function ErrorSchemaPushStack(stack, context, schemaPath, instancePath, schema, value) {
2186
+ return context.Push() && ErrorSchema(stack, context, schemaPath, instancePath, schema, value) && context.Pop();
2187
+ }
2188
+ function ErrorSchema(stack, context, schemaPath, instancePath, schema, value) {
2189
+ stack.Push(schema);
2190
+ const result = IsBooleanSchema(schema) ? ErrorBooleanSchema(stack, context, schemaPath, instancePath, schema, value) : !!(+(!IsType(schema) || ErrorType(stack, context, schemaPath, instancePath, schema, value)) & +(!(guard_exports.IsObject(value) && !guard_exports.IsArray(value)) || !!(+(!IsRequired(schema) || ErrorRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAdditionalProperties(schema) || ErrorAdditionalProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependencies(schema) || ErrorDependencies(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentRequired(schema) || ErrorDependentRequired(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDependentSchemas(schema) || ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPatternProperties(schema) || ErrorPatternProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsProperties(schema) || ErrorProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPropertyNames(schema) || ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinProperties(schema) || ErrorMinProperties(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxProperties(schema) || ErrorMaxProperties(stack, context, schemaPath, instancePath, schema, value)))) & +(!guard_exports.IsArray(value) || !!(+(!IsAdditionalItems(schema) || ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsContains(schema) || ErrorContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsItems(schema) || ErrorItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxContains(schema) || ErrorMaxContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaxItems(schema) || ErrorMaxItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinContains(schema) || ErrorMinContains(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinItems(schema) || ErrorMinItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPrefixItems(schema) || ErrorPrefixItems(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUniqueItems(schema) || ErrorUniqueItems(stack, context, schemaPath, instancePath, schema, value)))) & +(!guard_exports.IsString(value) || !!(+(!IsMaxLength(schema) || ErrorMaxLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinLength(schema) || ErrorMinLength(stack, context, schemaPath, instancePath, schema, value)) & +(!IsFormat(schema) || ErrorFormat(stack, context, schemaPath, instancePath, schema, value)) & +(!IsPattern(schema) || ErrorPattern(stack, context, schemaPath, instancePath, schema, value)))) & +(!(guard_exports.IsNumber(value) || guard_exports.IsBigInt(value)) || !!(+(!IsExclusiveMaximum(schema) || ErrorExclusiveMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsExclusiveMinimum(schema) || ErrorExclusiveMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMaximum(schema) || ErrorMaximum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMinimum(schema) || ErrorMinimum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsMultipleOf(schema) || ErrorMultipleOf(stack, context, schemaPath, instancePath, schema, value)))) & +(!IsRef2(schema) || ErrorRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsRecursiveRef(schema) || ErrorRecursiveRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsDynamicRef(schema) || ErrorDynamicRef(stack, context, schemaPath, instancePath, schema, value)) & +(!IsConst(schema) || ErrorConst(stack, context, schemaPath, instancePath, schema, value)) & +(!IsEnum2(schema) || ErrorEnum(stack, context, schemaPath, instancePath, schema, value)) & +(!IsIf(schema) || ErrorIf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsNot(schema) || ErrorNot(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAllOf(schema) || ErrorAllOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsAnyOf(schema) || ErrorAnyOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsOneOf(schema) || ErrorOneOf(stack, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedItems(schema) || (!guard_exports.IsArray(value) || ErrorUnevaluatedItems(stack, context, schemaPath, instancePath, schema, value))) & +(!IsUnevaluatedProperties(schema) || (!guard_exports.IsObject(value) || ErrorUnevaluatedProperties(stack, context, schemaPath, instancePath, schema, value)))) && (!IsRefine2(schema) || ErrorRefine(stack, context, schemaPath, instancePath, schema, value));
2191
+ stack.Pop(schema);
2192
+ return result;
2193
+ }
2194
+
2195
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_stack.mjs
2196
+ init_esm_shims();
2197
+
2198
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/resolve/index.mjs
2199
+ init_esm_shims();
2200
+
2201
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/resolve/resolve.mjs
2202
+ var resolve_exports = {};
2203
+ __export(resolve_exports, {
2204
+ DynamicRef: () => DynamicRef,
2205
+ Ref: () => Ref2
2206
+ });
2207
+ init_esm_shims();
2208
+
2209
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/resolve/ref.mjs
2210
+ init_esm_shims();
2211
+
2212
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/pointer/index.mjs
2213
+ init_esm_shims();
2214
+
2215
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/pointer/pointer_get.mjs
2216
+ init_esm_shims();
2217
+
2218
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/pointer/pointer.mjs
2219
+ var pointer_exports = {};
2220
+ __export(pointer_exports, {
2221
+ Delete: () => Delete,
2222
+ Get: () => Get3,
2223
+ Has: () => Has2,
2224
+ Indices: () => Indices,
2225
+ Set: () => Set3
2226
+ });
2227
+ init_esm_shims();
2228
+ function AssertNotRoot(indices) {
2229
+ if (indices.length === 0)
2230
+ throw Error("Cannot set root");
2231
+ }
2232
+ function AssertCanSet(value) {
2233
+ if (!guard_exports.IsObject(value))
2234
+ throw Error("Cannot set value");
2235
+ }
2236
+ function AssertIndex(index) {
2237
+ if (guard_exports.IsUnsafePropertyKey(index))
2238
+ throw Error("Pointer contains unsafe property key");
2239
+ }
2240
+ function AssertIndices(indices) {
2241
+ for (const index of indices)
2242
+ AssertIndex(index);
2243
+ }
2244
+ function IsNumericIndex(index) {
2245
+ return /^(0|[1-9]\d*)$/.test(index);
2246
+ }
2247
+ function TakeIndexRight(indices) {
2248
+ return [
2249
+ indices.slice(0, indices.length - 1),
2250
+ indices.slice(indices.length - 1)[0]
2251
+ ];
2252
+ }
2253
+ function HasIndex(index, value) {
2254
+ return guard_exports.IsObject(value) && guard_exports.HasPropertyKey(value, index);
2255
+ }
2256
+ function GetIndex(index, value) {
2257
+ return guard_exports.IsObject(value) && !guard_exports.IsUnsafePropertyKey(index) ? value[index] : void 0;
2258
+ }
2259
+ function GetIndices(indices, value) {
2260
+ return indices.reduce((value2, index) => GetIndex(index, value2), value);
2261
+ }
2262
+ function Indices(pointer) {
2263
+ if (guard_exports.IsEqual(pointer.length, 0))
2264
+ return [];
2265
+ const indices = pointer.split("/").map((index) => index.replace(/~1/g, "/").replace(/~0/g, "~"));
2266
+ return indices.length > 0 && indices[0] === "" ? indices.slice(1) : indices;
2267
+ }
2268
+ function Has2(value, pointer) {
2269
+ let current = value;
2270
+ return Indices(pointer).every((index) => {
2271
+ if (!HasIndex(index, current))
2272
+ return false;
2273
+ current = current[index];
2274
+ return true;
2275
+ });
2276
+ }
2277
+ function Get3(value, pointer) {
2278
+ const indices = Indices(pointer);
2279
+ return GetIndices(indices, value);
2280
+ }
2281
+ function Set3(value, pointer, next) {
2282
+ const indices = Indices(pointer);
2283
+ AssertNotRoot(indices);
2284
+ AssertIndices(indices);
2285
+ const [head, index] = TakeIndexRight(indices);
2286
+ const parent = GetIndices(head, value);
2287
+ AssertCanSet(parent);
2288
+ parent[index] = next;
2289
+ return value;
2290
+ }
2291
+ function Delete(value, pointer) {
2292
+ const indices = Indices(pointer);
2293
+ AssertNotRoot(indices);
2294
+ AssertIndices(indices);
2295
+ const [head, index] = TakeIndexRight(indices);
2296
+ const parent = GetIndices(head, value);
2297
+ AssertCanSet(parent);
2298
+ if (guard_exports.IsArray(parent) && IsNumericIndex(index)) {
2299
+ parent.splice(+index, 1);
2300
+ } else {
2301
+ delete parent[index];
2302
+ }
2303
+ return value;
2304
+ }
2305
+
2306
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/resolve/ref.mjs
2307
+ function MatchId(schema, base, ref) {
2308
+ if (schema.$id === ref.hash)
2309
+ return schema;
2310
+ const absoluteId = new URL(schema.$id, base.href);
2311
+ const absoluteRef = new URL(ref.href, base.href);
2312
+ if (guard_exports.IsEqual(absoluteId.pathname, absoluteRef.pathname)) {
2313
+ return ref.hash.startsWith("#") ? MatchHash(schema, base, ref) : schema;
2314
+ }
2315
+ return void 0;
2316
+ }
2317
+ function MatchAnchor(schema, base, ref) {
2318
+ const absoluteAnchor = new URL(`#${schema.$anchor}`, base.href);
2319
+ const absoluteRef = new URL(ref.href, base.href);
2320
+ return guard_exports.IsEqual(absoluteAnchor.href, absoluteRef.href) ? schema : void 0;
2321
+ }
2322
+ function MatchDynamicAnchor(schema, base, ref) {
2323
+ const absoluteAnchor = new URL(`#${schema.$dynamicAnchor}`, base.href);
2324
+ const absoluteRef = new URL(ref.href, base.href);
2325
+ return guard_exports.IsEqual(absoluteAnchor.href, absoluteRef.href) ? schema : void 0;
2326
+ }
2327
+ function MatchHash(schema, _base, ref) {
2328
+ if (ref.href.endsWith("#"))
2329
+ return schema;
2330
+ if (!ref.hash.startsWith("#"))
2331
+ return void 0;
2332
+ const fragment = decodeURIComponent(ref.hash.slice(1));
2333
+ if (!fragment.startsWith("/"))
2334
+ return void 0;
2335
+ return pointer_exports.Get(schema, fragment);
2336
+ }
2337
+ function Match(schema, base, ref) {
2338
+ if (IsId(schema)) {
2339
+ const result = MatchId(schema, base, ref);
2340
+ if (!guard_exports.IsUndefined(result))
2341
+ return result;
2342
+ }
2343
+ if (IsAnchor(schema)) {
2344
+ const result = MatchAnchor(schema, base, ref);
2345
+ if (!guard_exports.IsUndefined(result))
2346
+ return result;
2347
+ }
2348
+ if (IsDynamicAnchor(schema)) {
2349
+ const result = MatchDynamicAnchor(schema, base, ref);
2350
+ if (!guard_exports.IsUndefined(result))
2351
+ return result;
2352
+ }
2353
+ return MatchHash(schema, base, ref);
2354
+ }
2355
+ function FromArray(schema, base, ref) {
2356
+ return schema.reduce((result, item) => {
2357
+ const match = FromValue(item, base, ref);
2358
+ return !guard_exports.IsUndefined(match) ? match : result;
2359
+ }, void 0);
2360
+ }
2361
+ function FromObject(schema, base, ref) {
2362
+ return guard_exports.Keys(schema).reduce((result, key) => {
2363
+ const match = FromValue(schema[key], base, ref);
2364
+ return !guard_exports.IsUndefined(match) ? match : result;
2365
+ }, void 0);
2366
+ }
2367
+ function FromValue(schema, base, ref) {
2368
+ const nextBase = IsSchemaObject(schema) && IsId(schema) ? new URL(schema.$id, base.href) : base;
2369
+ if (IsSchemaObject(schema)) {
2370
+ const result = Match(schema, nextBase, ref);
2371
+ if (!guard_exports.IsUndefined(result))
2372
+ return result;
2373
+ }
2374
+ if (guard_exports.IsArray(schema))
2375
+ return FromArray(schema, nextBase, ref);
2376
+ if (guard_exports.IsObject(schema))
2377
+ return FromObject(schema, nextBase, ref);
2378
+ return void 0;
2379
+ }
2380
+ function Ref2(schema, ref) {
2381
+ const defaultBase = new URL("http://unknown/");
2382
+ const initialBase = IsId(schema) ? new URL(schema.$id, defaultBase.href) : defaultBase;
2383
+ const initialRef = new URL(ref, initialBase.href);
2384
+ return FromValue(schema, initialBase, initialRef);
2385
+ }
2386
+ function DynamicRef(root, base, dynamicRef, dynamicAnchors) {
2387
+ const fragmentTarget = dynamicRef.$dynamicRef.startsWith("#") ? Ref2(base, dynamicRef.$dynamicRef) : Ref2(root, dynamicRef.$dynamicRef);
2388
+ if (guard_exports.IsUndefined(fragmentTarget))
2389
+ return void 0;
2390
+ if (!IsSchemaObject(fragmentTarget) || !IsDynamicAnchor(fragmentTarget))
2391
+ return fragmentTarget;
2392
+ const fragment = new URL(dynamicRef.$dynamicRef, "http://unknown/").hash;
2393
+ if (fragment.startsWith("#/"))
2394
+ return fragmentTarget;
2395
+ const anchorTarget = dynamicAnchors.find((anchor) => anchor.$dynamicAnchor === fragmentTarget.$dynamicAnchor);
2396
+ return anchorTarget ?? fragmentTarget;
2397
+ }
2398
+
2399
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/engine/_stack.mjs
2400
+ var __classPrivateFieldGet = function(receiver, state, kind, f) {
2401
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
2402
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
2403
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
2404
+ };
2405
+ var _Stack_instances;
2406
+ var _Stack_PushResourceAnchors;
2407
+ var _Stack_PopResourceAnchors;
2408
+ var _Stack_FromContext;
2409
+ var _Stack_FromRef;
2410
+ var Stack = class {
2411
+ constructor(context, schema) {
2412
+ _Stack_instances.add(this);
2413
+ this.context = context;
2414
+ this.schema = schema;
2415
+ this.ids = [];
2416
+ this.anchors = [];
2417
+ this.recursiveAnchors = [];
2418
+ this.dynamicAnchors = [];
2419
+ }
2420
+ // ----------------------------------------------------------------
2421
+ // Base
2422
+ // ----------------------------------------------------------------
2423
+ BaseURL() {
2424
+ return this.ids.reduce((result, schema) => new URL(schema.$id, result), new URL("http://unknown"));
2425
+ }
2426
+ Base() {
2427
+ return this.ids[this.ids.length - 1] ?? this.schema;
2428
+ }
2429
+ // ----------------------------------------------------------------
2430
+ // Stack
2431
+ // ----------------------------------------------------------------
2432
+ Push(schema) {
2433
+ if (!IsSchemaObject(schema))
2434
+ return;
2435
+ if (IsId(schema)) {
2436
+ this.ids.push(schema);
2437
+ __classPrivateFieldGet(this, _Stack_instances, "m", _Stack_PushResourceAnchors).call(this, schema);
2438
+ }
2439
+ if (IsAnchor(schema))
2440
+ this.anchors.push(schema);
2441
+ if (IsRecursiveAnchorTrue(schema))
2442
+ this.recursiveAnchors.push(schema);
2443
+ if (IsDynamicAnchor(schema))
2444
+ this.dynamicAnchors.push(schema);
2445
+ }
2446
+ Pop(schema) {
2447
+ if (!IsSchemaObject(schema))
2448
+ return;
2449
+ if (IsId(schema)) {
2450
+ this.ids.pop();
2451
+ __classPrivateFieldGet(this, _Stack_instances, "m", _Stack_PopResourceAnchors).call(this, schema);
2452
+ }
2453
+ if (IsAnchor(schema))
2454
+ this.anchors.pop();
2455
+ if (IsRecursiveAnchorTrue(schema))
2456
+ this.recursiveAnchors.pop();
2457
+ if (IsDynamicAnchor(schema))
2458
+ this.dynamicAnchors.pop();
2459
+ }
2460
+ Ref(ref) {
2461
+ return __classPrivateFieldGet(this, _Stack_instances, "m", _Stack_FromContext).call(this, ref) ?? __classPrivateFieldGet(this, _Stack_instances, "m", _Stack_FromRef).call(this, ref);
2462
+ }
2463
+ // ----------------------------------------------------------------
2464
+ // RecursiveRef
2465
+ // ----------------------------------------------------------------
2466
+ RecursiveRef(recursiveRef) {
2467
+ return IsRecursiveAnchorTrue(this.Base()) ? resolve_exports.Ref(this.recursiveAnchors[0], recursiveRef.$recursiveRef) : resolve_exports.Ref(this.Base(), recursiveRef.$recursiveRef);
2468
+ }
2469
+ // ----------------------------------------------------------------
2470
+ // DynamicRef
2471
+ // ----------------------------------------------------------------
2472
+ DynamicRef(dynamicRef) {
2473
+ const root = this.schema;
2474
+ return resolve_exports.DynamicRef(root, this.Base(), dynamicRef, this.dynamicAnchors);
2475
+ }
2476
+ };
2477
+ _Stack_instances = /* @__PURE__ */ new WeakSet(), _Stack_PushResourceAnchors = function _Stack_PushResourceAnchors2(schema, isRoot = true) {
2478
+ if (!IsSchemaObject(schema))
2479
+ return;
2480
+ const current = schema;
2481
+ if (!isRoot && IsId(current))
2482
+ return;
2483
+ if (!isRoot && IsDynamicAnchor(current))
2484
+ this.dynamicAnchors.push(current);
2485
+ for (const key of guard_exports.Keys(current))
2486
+ __classPrivateFieldGet(this, _Stack_instances, "m", _Stack_PushResourceAnchors2).call(this, current[key], false);
2487
+ }, _Stack_PopResourceAnchors = function _Stack_PopResourceAnchors2(schema, isRoot = true) {
2488
+ if (!IsSchemaObject(schema))
2489
+ return;
2490
+ const current = schema;
2491
+ if (!isRoot && IsId(current))
2492
+ return;
2493
+ if (!isRoot && IsDynamicAnchor(current))
2494
+ this.dynamicAnchors.pop();
2495
+ for (const key of guard_exports.Keys(current))
2496
+ __classPrivateFieldGet(this, _Stack_instances, "m", _Stack_PopResourceAnchors2).call(this, current[key], false);
2497
+ }, _Stack_FromContext = function _Stack_FromContext2(ref) {
2498
+ return guard_exports.HasPropertyKey(this.context, ref.$ref) ? this.context[ref.$ref] : void 0;
2499
+ }, _Stack_FromRef = function _Stack_FromRef2(ref) {
2500
+ const root = this.schema;
2501
+ return !ref.$ref.startsWith("#") ? resolve_exports.Ref(root, ref.$ref) : resolve_exports.Ref(this.Base(), ref.$ref);
2502
+ };
2503
+
2504
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/static/index.mjs
2505
+ init_esm_shims();
2506
+
2507
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/build.mjs
2508
+ init_esm_shims();
2509
+
2510
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/compile.mjs
2511
+ init_esm_shims();
2512
+
2513
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/errors.mjs
2514
+ init_esm_shims();
2515
+ function Errors(...args) {
2516
+ const [context, schema, value] = arguments_exports.Match(args, {
2517
+ 3: (context2, schema2, value2) => [context2, schema2, value2],
2518
+ 2: (schema2, value2) => [{}, schema2, value2]
2519
+ });
2520
+ const settings = settings_exports.Get();
2521
+ const locale = Get();
2522
+ const errors = [];
2523
+ const stack = new Stack(context, schema);
2524
+ const errorContext = new ErrorContext((error) => {
2525
+ if (guard_exports.IsGreaterEqualThan(errors.length, settings.maxErrors))
2526
+ return;
2527
+ return errors.push({ ...error, message: locale(error) });
2528
+ });
2529
+ const result = ErrorSchema(stack, errorContext, "#", "", schema, value);
2530
+ return [result, errors];
2531
+ }
2532
+
2533
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/parse.mjs
2534
+ init_esm_shims();
2535
+
2536
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/schema/check.mjs
2537
+ init_esm_shims();
2538
+ function Check(...args) {
2539
+ const [context, schema, value] = arguments_exports.Match(args, {
2540
+ 3: (context2, schema2, value2) => [context2, schema2, value2],
2541
+ 2: (schema2, value2) => [{}, schema2, value2]
2542
+ });
2543
+ const stack = new Stack(context, schema);
2544
+ const checkContext = new CheckContext();
2545
+ return CheckSchema(stack, checkContext, schema, value);
2546
+ }
2547
+
2548
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/check/check.mjs
2549
+ function Check2(...args) {
2550
+ const [context, type, value] = arguments_exports.Match(args, {
2551
+ 3: (context2, type2, value2) => [context2, type2, value2],
2552
+ 2: (type2, value2) => [{}, type2, value2]
2553
+ });
2554
+ return Check(context, type, value);
2555
+ }
2556
+
2557
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/errors/index.mjs
2558
+ init_esm_shims();
2559
+
2560
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/errors/errors.mjs
2561
+ init_esm_shims();
2562
+ function Errors2(...args) {
2563
+ const [context, type, value] = arguments_exports.Match(args, {
2564
+ 3: (context2, type2, value2) => [context2, type2, value2],
2565
+ 2: (type2, value2) => [{}, type2, value2]
2566
+ });
2567
+ const [_, errors] = Errors(context, type, value);
2568
+ return errors;
2569
+ }
2570
+
2571
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/assert/assert.mjs
2572
+ var AssertError = class extends Error {
2573
+ constructor(source, value, errors) {
2574
+ super(source);
2575
+ Object.defineProperty(this, "cause", {
2576
+ value: { source, errors, value },
2577
+ writable: false,
2578
+ configurable: false,
2579
+ enumerable: false
2580
+ });
2581
+ }
2582
+ };
2583
+ function Assert(...args) {
2584
+ const [context, type, value] = arguments_exports.Match(args, {
2585
+ 3: (context2, type2, value2) => [context2, type2, value2],
2586
+ 2: (type2, value2) => [{}, type2, value2]
2587
+ });
2588
+ const check = Check2(context, type, value);
2589
+ if (!check)
2590
+ throw new AssertError("Assert", value, Errors2(context, type, value));
2591
+ }
2592
+
2593
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/index.mjs
2594
+ init_esm_shims();
2595
+
2596
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/clean.mjs
2597
+ init_esm_shims();
2598
+
2599
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_type.mjs
2600
+ init_esm_shims();
2601
+
2602
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/type/index.mjs
2603
+ init_esm_shims();
2604
+
2605
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_array.mjs
2606
+ init_esm_shims();
2607
+ function FromArray2(context, type, value) {
2608
+ if (!guard_exports.IsArray(value))
2609
+ return value;
2610
+ return value.map((value2) => FromType(context, type.items, value2));
2611
+ }
2612
+
2613
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_cyclic.mjs
2614
+ init_esm_shims();
2615
+ function FromCyclic(context, type, value) {
2616
+ return FromType({ ...context, ...type.$defs }, Ref(type.$ref), value);
2617
+ }
2618
+
2619
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_intersect.mjs
2620
+ init_esm_shims();
2621
+ function EvaluateIntersection(context, type) {
2622
+ const additionalProperties = guard_exports.HasPropertyKey(type, "unevaluatedProperties") ? { additionalProperties: type.unevaluatedProperties } : {};
2623
+ const instantiated = Instantiate(context, type);
2624
+ const evaluated = Evaluate(instantiated);
2625
+ return IsObject(evaluated) ? With(evaluated, additionalProperties) : evaluated;
2626
+ }
2627
+ function FromIntersect(context, type, value) {
2628
+ const evaluated = EvaluateIntersection(context, type);
2629
+ return FromType(context, evaluated, value);
2630
+ }
2631
+
2632
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_object.mjs
2633
+ init_esm_shims();
2634
+
2635
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/additional.mjs
2636
+ init_esm_shims();
2637
+ function GetAdditionalProperties(type) {
2638
+ const additionalProperties = guard_exports.HasPropertyKey(type, "additionalProperties") ? type.additionalProperties : void 0;
2639
+ return additionalProperties;
2640
+ }
2641
+
2642
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_object.mjs
2643
+ function FromObject2(context, type, value) {
2644
+ if (!guard_exports.IsObject(value) || guard_exports.IsArray(value))
2645
+ return value;
2646
+ const additionalProperties = GetAdditionalProperties(type);
2647
+ for (const key of guard_exports.Keys(value)) {
2648
+ if (guard_exports.HasPropertyKey(type.properties, key)) {
2649
+ value[key] = FromType(context, type.properties[key], value[key]);
2650
+ continue;
2651
+ }
2652
+ const unknownCheck = (
2653
+ // 1. additionalProperties: true
2654
+ guard_exports.IsBoolean(additionalProperties) && guard_exports.IsEqual(additionalProperties, true) || IsSchema(additionalProperties) && Check2(context, additionalProperties, value[key])
2655
+ );
2656
+ if (unknownCheck) {
2657
+ value[key] = FromType(context, additionalProperties, value[key]);
2658
+ continue;
2659
+ }
2660
+ delete value[key];
2661
+ }
2662
+ return value;
2663
+ }
2664
+
2665
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_record.mjs
2666
+ init_esm_shims();
2667
+ function FromRecord(context, type, value) {
2668
+ if (!guard_exports.IsObject(value))
2669
+ return value;
2670
+ const additionalProperties = GetAdditionalProperties(type);
2671
+ const [recordPattern, recordValue] = [new RegExp(RecordPattern(type)), RecordValue(type)];
2672
+ for (const key of guard_exports.Keys(value)) {
2673
+ if (recordPattern.test(key)) {
2674
+ value[key] = FromType(context, recordValue, value[key]);
2675
+ continue;
2676
+ }
2677
+ const unknownCheck = (
2678
+ // 1. additionalProperties: true
2679
+ guard_exports.IsBoolean(additionalProperties) && guard_exports.IsEqual(additionalProperties, true) || IsSchema(additionalProperties) && Check2(context, additionalProperties, value[key])
2680
+ );
2681
+ if (unknownCheck) {
2682
+ value[key] = FromType(context, additionalProperties, value[key]);
2683
+ continue;
2684
+ }
2685
+ delete value[key];
2686
+ }
2687
+ return value;
2688
+ }
2689
+
2690
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_ref.mjs
2691
+ init_esm_shims();
2692
+ function FromRef(context, type, value) {
2693
+ return guard_exports.HasPropertyKey(context, type.$ref) ? FromType(context, context[type.$ref], value) : value;
2694
+ }
2695
+
2696
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_tuple.mjs
2697
+ init_esm_shims();
2698
+ function FromTuple(context, schema, value) {
2699
+ if (!guard_exports.IsArray(value))
2700
+ return value;
2701
+ const length = Math.min(value.length, schema.items.length);
2702
+ for (let index = 0; index < length; index++) {
2703
+ value[index] = FromType(context, schema.items[index], value[index]);
2704
+ }
2705
+ return guard_exports.IsGreaterThan(value.length, length) ? value.slice(0, length) : value;
2706
+ }
2707
+
2708
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_union.mjs
2709
+ init_esm_shims();
2710
+
2711
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clone/index.mjs
2712
+ init_esm_shims();
2713
+
2714
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clone/clone.mjs
2715
+ init_esm_shims();
2716
+ function Clone2(value) {
2717
+ return Clone(value);
2718
+ }
2719
+
2720
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_union.mjs
2721
+ function FromUnion(context, type, value) {
2722
+ for (const schema of type.anyOf) {
2723
+ const clean = FromType(context, schema, Clone2(value));
2724
+ if (Check2(context, schema, clean))
2725
+ return clean;
2726
+ }
2727
+ return value;
2728
+ }
2729
+
2730
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/from_type.mjs
2731
+ function FromType(context, type, value) {
2732
+ return IsArray(type) ? FromArray2(context, type, value) : IsCyclic(type) ? FromCyclic(context, type, value) : IsIntersect(type) ? FromIntersect(context, type, value) : IsObject(type) ? FromObject2(context, type, value) : IsRecord(type) ? FromRecord(context, type, value) : IsRef(type) ? FromRef(context, type, value) : IsTuple(type) ? FromTuple(context, type, value) : IsUnion(type) ? FromUnion(context, type, value) : value;
2733
+ }
2734
+
2735
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/shared/union_priority_sort.mjs
2736
+ init_esm_shims();
2737
+ function Modifiers(type, next) {
2738
+ for (const key of guard_default.Keys(type)) {
2739
+ if (guard_default.HasPropertyKey(next, key))
2740
+ continue;
2741
+ next[key] = type[key];
2742
+ }
2743
+ return next;
2744
+ }
2745
+ function FromProperties(properties) {
2746
+ const result = {};
2747
+ for (const key of guard_default.Keys(properties))
2748
+ result[key] = FromType2(properties[key]);
2749
+ return result;
2750
+ }
2751
+ function FromPriorityTypes(types) {
2752
+ return FromTypes(Priority(types));
2753
+ }
2754
+ function FromTypes(types) {
2755
+ return types.map((type) => FromType2(type));
2756
+ }
2757
+ function FromType2(type) {
2758
+ const next = IsArray(type) ? _Array_(FromType2(type.items), ArrayOptions(type)) : IsIntersect(type) ? Intersect(FromTypes(type.allOf)) : IsUnion(type) ? Union(FromPriorityTypes(type.anyOf)) : IsObject(type) ? _Object_(FromProperties(type.properties)) : IsRecord(type) ? Record(RecordKey(type), FromType2(RecordValue(type))) : IsTuple(type) ? Tuple(FromTypes(type.items)) : type;
2759
+ return Modifiers(type, next);
2760
+ }
2761
+ function UnionPrioritySort(type) {
2762
+ const result = FromType2(type);
2763
+ return result;
2764
+ }
2765
+
2766
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/clean/clean.mjs
2767
+ function Clean(...args) {
2768
+ const [context, type, value] = arguments_exports.Match(args, {
2769
+ 3: (context2, type2, value2) => [context2, type2, value2],
2770
+ 2: (type2, value2) => [{}, type2, value2]
2771
+ });
2772
+ const sorted = settings_exports.Get().unionPrioritySort ? UnionPrioritySort(type) : type;
2773
+ return FromType(context, sorted, value);
2774
+ }
2775
+
2776
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/index.mjs
2777
+ init_esm_shims();
2778
+
2779
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/decode.mjs
2780
+ init_esm_shims();
2781
+
2782
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/index.mjs
2783
+ init_esm_shims();
2784
+
2785
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/convert.mjs
2786
+ init_esm_shims();
2787
+
2788
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_type.mjs
2789
+ init_esm_shims();
2790
+
2791
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_array.mjs
2792
+ init_esm_shims();
2793
+
2794
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/index.mjs
2795
+ init_esm_shims();
2796
+
2797
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try.mjs
2798
+ var try_exports = {};
2799
+ __export(try_exports, {
2800
+ Fail: () => Fail,
2801
+ IsOk: () => IsOk,
2802
+ Ok: () => Ok,
2803
+ TryArray: () => TryArray,
2804
+ TryBigInt: () => TryBigInt,
2805
+ TryBoolean: () => TryBoolean,
2806
+ TryNull: () => TryNull,
2807
+ TryNumber: () => TryNumber,
2808
+ TryString: () => TryString,
2809
+ TryUndefined: () => TryUndefined
2810
+ });
2811
+ init_esm_shims();
2812
+
2813
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_array.mjs
2814
+ init_esm_shims();
2815
+
2816
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_result.mjs
2817
+ init_esm_shims();
2818
+ function IsOk(value) {
2819
+ return guard_exports.IsObject(value) && guard_exports.HasPropertyKey(value, "value");
2820
+ }
2821
+ function Ok(value) {
2822
+ return { value };
2823
+ }
2824
+ function Fail() {
2825
+ return void 0;
2826
+ }
2827
+
2828
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_array.mjs
2829
+ function TryArray(value) {
2830
+ return guard_exports.IsArray(value) ? Ok(value) : Ok([value]);
2831
+ }
2832
+
2833
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_bigint.mjs
2834
+ init_esm_shims();
2835
+ function FromBoolean(value) {
2836
+ return guard_exports.IsEqual(value, true) ? Ok(BigInt(1)) : Ok(BigInt(0));
2837
+ }
2838
+ var bigintPattern = /^-?(0|[1-9]\d*)n$/;
2839
+ var decimalPattern = /^-?(0|[1-9]\d*)\.\d+$/;
2840
+ var integerPattern = /^-?(0|[1-9]\d*)$/;
2841
+ function IsStringBigIntLike(value) {
2842
+ return bigintPattern.test(value);
2843
+ }
2844
+ function IsStringDecimalLike(value) {
2845
+ return decimalPattern.test(value);
2846
+ }
2847
+ function IsStringIntegerLike(value) {
2848
+ return integerPattern.test(value);
2849
+ }
2850
+ function FromString(value) {
2851
+ const lowercase = value.toLowerCase();
2852
+ return IsStringBigIntLike(value) ? Ok(BigInt(value.slice(0, value.length - 1))) : IsStringDecimalLike(value) ? Ok(BigInt(value.split(".")[0])) : IsStringIntegerLike(value) ? Ok(BigInt(value)) : guard_exports.IsEqual(lowercase, "false") ? Ok(BigInt(0)) : guard_exports.IsEqual(lowercase, "true") ? Ok(BigInt(1)) : Fail();
2853
+ }
2854
+ function TryBigInt(value) {
2855
+ return guard_exports.IsBigInt(value) ? Ok(value) : guard_exports.IsBoolean(value) ? FromBoolean(value) : guard_exports.IsNumber(value) ? Ok(BigInt(Math.trunc(value))) : guard_exports.IsNull(value) ? Ok(BigInt(0)) : guard_exports.IsString(value) ? FromString(value) : guard_exports.IsUndefined(value) ? Ok(BigInt(0)) : Fail();
2856
+ }
2857
+
2858
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_boolean.mjs
2859
+ init_esm_shims();
2860
+ function FromBigInt(value) {
2861
+ return guard_exports.IsEqual(value, BigInt(0)) ? Ok(false) : guard_exports.IsEqual(value, BigInt(1)) ? Ok(true) : Fail();
2862
+ }
2863
+ function FromNumber(value) {
2864
+ return guard_exports.IsEqual(value, 0) ? Ok(false) : guard_exports.IsEqual(value, 1) ? Ok(true) : Fail();
2865
+ }
2866
+ function FromString2(value) {
2867
+ return guard_exports.IsEqual(value.toLowerCase(), "false") ? Ok(false) : guard_exports.IsEqual(value.toLowerCase(), "true") ? Ok(true) : guard_exports.IsEqual(value, "0") ? Ok(false) : guard_exports.IsEqual(value, "1") ? Ok(true) : Fail();
2868
+ }
2869
+ function TryBoolean(value) {
2870
+ return guard_exports.IsBigInt(value) ? FromBigInt(value) : guard_exports.IsBoolean(value) ? Ok(value) : guard_exports.IsNumber(value) ? FromNumber(value) : guard_exports.IsNull(value) ? Ok(false) : guard_exports.IsString(value) ? FromString2(value) : guard_exports.IsUndefined(value) ? Ok(false) : Fail();
2871
+ }
2872
+
2873
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_null.mjs
2874
+ init_esm_shims();
2875
+ function FromBigInt2(value) {
2876
+ return guard_exports.IsEqual(value, BigInt(0)) ? Ok(null) : Fail();
2877
+ }
2878
+ function FromBoolean2(value) {
2879
+ return guard_exports.IsEqual(value, false) ? Ok(null) : Fail();
2880
+ }
2881
+ function FromNumber2(value) {
2882
+ return guard_exports.IsEqual(value, 0) ? Ok(null) : Fail();
2883
+ }
2884
+ function FromString3(value) {
2885
+ const lowercase = value.toLowerCase();
2886
+ const predicate = guard_exports.IsEqual(lowercase, "undefined") || guard_exports.IsEqual(lowercase, "null") || guard_exports.IsEqual(value, "") || guard_exports.IsEqual(value, "0");
2887
+ return predicate ? Ok(null) : Fail();
2888
+ }
2889
+ function TryNull(value) {
2890
+ return guard_exports.IsBigInt(value) ? FromBigInt2(value) : guard_exports.IsBoolean(value) ? FromBoolean2(value) : guard_exports.IsNumber(value) ? FromNumber2(value) : guard_exports.IsNull(value) ? Ok(null) : guard_exports.IsString(value) ? FromString3(value) : guard_exports.IsUndefined(value) ? Ok(null) : Fail();
2891
+ }
2892
+
2893
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_number.mjs
2894
+ init_esm_shims();
2895
+ var maxBigInt = BigInt(Number.MAX_SAFE_INTEGER);
2896
+ var minBigInt = BigInt(Number.MIN_SAFE_INTEGER);
2897
+ function FromBigInt3(value) {
2898
+ return value <= maxBigInt && value >= minBigInt ? Ok(Number(value)) : Fail();
2899
+ }
2900
+ function FromBoolean3(value) {
2901
+ return Ok(value ? 1 : 0);
2902
+ }
2903
+ function FromString4(value) {
2904
+ const coerced = +value;
2905
+ if (guard_exports.IsNumber(coerced))
2906
+ return Ok(coerced);
2907
+ const lowercase = value.toLowerCase();
2908
+ if (guard_exports.IsEqual(lowercase, "false"))
2909
+ return Ok(0);
2910
+ if (guard_exports.IsEqual(lowercase, "true"))
2911
+ return Ok(1);
2912
+ const result = TryBigInt(value);
2913
+ if (IsOk(result))
2914
+ return result.value <= maxBigInt && result.value >= minBigInt ? Ok(Number(result.value)) : Fail();
2915
+ return Fail();
2916
+ }
2917
+ function TryNumber(value) {
2918
+ return guard_exports.IsBigInt(value) ? FromBigInt3(value) : guard_exports.IsBoolean(value) ? FromBoolean3(value) : guard_exports.IsNumber(value) ? Ok(value) : guard_exports.IsNull(value) ? Ok(0) : guard_exports.IsString(value) ? FromString4(value) : guard_exports.IsUndefined(value) ? Ok(0) : Fail();
2919
+ }
2920
+
2921
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_string.mjs
2922
+ init_esm_shims();
2923
+ function TryString(value) {
2924
+ return guard_exports.IsBigInt(value) ? Ok(value.toString()) : guard_exports.IsBoolean(value) ? Ok(value.toString()) : guard_exports.IsNumber(value) ? Ok(value.toString()) : guard_exports.IsNull(value) ? Ok("null") : guard_exports.IsString(value) ? Ok(value) : guard_exports.IsUndefined(value) ? Ok("") : Fail();
2925
+ }
2926
+
2927
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/try/try_undefined.mjs
2928
+ init_esm_shims();
2929
+ function FromBigInt4(value) {
2930
+ return guard_exports.IsEqual(value, BigInt(0)) ? Ok(void 0) : Fail();
2931
+ }
2932
+ function FromBoolean4(value) {
2933
+ return guard_exports.IsEqual(value, false) ? Ok(void 0) : Fail();
2934
+ }
2935
+ function FromNumber3(value) {
2936
+ return guard_exports.IsEqual(value, 0) ? Ok(void 0) : Fail();
2937
+ }
2938
+ function FromString5(value) {
2939
+ const lowercase = value.toLowerCase();
2940
+ const predicate = guard_exports.IsEqual(lowercase, "undefined") || guard_exports.IsEqual(lowercase, "null") || guard_exports.IsEqual(value, "") || guard_exports.IsEqual(value, "0");
2941
+ return predicate ? Ok(void 0) : Fail();
2942
+ }
2943
+ function TryUndefined(value) {
2944
+ return guard_exports.IsBigInt(value) ? FromBigInt4(value) : guard_exports.IsBoolean(value) ? FromBoolean4(value) : guard_exports.IsNumber(value) ? FromNumber3(value) : guard_exports.IsNull(value) ? Ok(void 0) : guard_exports.IsString(value) ? FromString5(value) : guard_exports.IsUndefined(value) ? Ok(value) : Fail();
2945
+ }
2946
+
2947
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_array.mjs
2948
+ function FromArray3(context, type, value) {
2949
+ const result = try_exports.TryArray(value);
2950
+ return result.value.map((value2) => FromType3(context, type.items, value2));
2951
+ }
2952
+
2953
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_bigint.mjs
2954
+ init_esm_shims();
2955
+ function FromBigInt5(_context, _type, value) {
2956
+ const result = try_exports.TryBigInt(value);
2957
+ return try_exports.IsOk(result) ? result.value : value;
2958
+ }
2959
+
2960
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_boolean.mjs
2961
+ init_esm_shims();
2962
+ function FromBoolean5(_context, _type, value) {
2963
+ const result = try_exports.TryBoolean(value);
2964
+ return try_exports.IsOk(result) ? result.value : value;
2965
+ }
2966
+
2967
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_cyclic.mjs
2968
+ init_esm_shims();
2969
+ function FromCyclic2(context, type, value) {
2970
+ return FromType3({ ...context, ...type.$defs }, Ref(type.$ref), value);
2971
+ }
2972
+
2973
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_enum.mjs
2974
+ init_esm_shims();
2975
+ function FromEnum(context, type, value) {
2976
+ return FromType3(context, Evaluate(type), value);
2977
+ }
2978
+
2979
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_integer.mjs
2980
+ init_esm_shims();
2981
+ function FromInteger(_context, _type, value) {
2982
+ const result = try_exports.TryNumber(value);
2983
+ return try_exports.IsOk(result) ? Math.trunc(result.value) : value;
2984
+ }
2985
+
2986
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_intersect.mjs
2987
+ init_esm_shims();
2988
+ function FromIntersect2(context, type, value) {
2989
+ const instantiated = Instantiate(context, type);
2990
+ const evaluated = Evaluate(instantiated);
2991
+ return FromType3(context, evaluated, value);
2992
+ }
2993
+
2994
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_literal.mjs
2995
+ init_esm_shims();
2996
+ function FromLiteralBigInt(_context, type, value) {
2997
+ const result = try_exports.TryBigInt(value);
2998
+ return try_exports.IsOk(result) && guard_exports.IsEqual(type.const, result.value) ? result.value : value;
2999
+ }
3000
+ function FromLiteralBoolean(_context, type, value) {
3001
+ const result = try_exports.TryBoolean(value);
3002
+ return try_exports.IsOk(result) && guard_exports.IsEqual(type.const, result.value) ? result.value : value;
3003
+ }
3004
+ function FromLiteralNumber(_context, type, value) {
3005
+ const result = try_exports.TryNumber(value);
3006
+ return try_exports.IsOk(result) && guard_exports.IsEqual(type.const, result.value) ? result.value : value;
3007
+ }
3008
+ function FromLiteralString(_context, type, value) {
3009
+ const result = try_exports.TryString(value);
3010
+ return try_exports.IsOk(result) && guard_exports.IsEqual(type.const, result.value) ? result.value : value;
3011
+ }
3012
+ function FromLiteral(context, type, value) {
3013
+ if (guard_exports.IsEqual(type.const, value))
3014
+ return value;
3015
+ return IsLiteralBigInt(type) ? FromLiteralBigInt(context, type, value) : IsLiteralBoolean(type) ? FromLiteralBoolean(context, type, value) : IsLiteralNumber(type) ? FromLiteralNumber(context, type, value) : IsLiteralString(type) ? FromLiteralString(context, type, value) : Unreachable();
3016
+ }
3017
+
3018
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_null.mjs
3019
+ init_esm_shims();
3020
+ function FromNull(_context, _type, value) {
3021
+ const result = try_exports.TryNull(value);
3022
+ return try_exports.IsOk(result) ? result.value : value;
3023
+ }
3024
+
3025
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_number.mjs
3026
+ init_esm_shims();
3027
+ function FromNumber4(_context, _type, value) {
3028
+ const result = try_exports.TryNumber(value);
3029
+ return try_exports.IsOk(result) ? result.value : value;
3030
+ }
3031
+
3032
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_object.mjs
3033
+ init_esm_shims();
3034
+
3035
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_additional.mjs
3036
+ init_esm_shims();
3037
+ function FromAdditionalProperties(context, entries, additionalProperties, value) {
3038
+ const keys = guard_exports.Keys(value);
3039
+ for (const [regexp, _] of entries) {
3040
+ for (const key of keys) {
3041
+ if (!regexp.test(key)) {
3042
+ value[key] = FromType3(context, additionalProperties, value[key]);
3043
+ }
3044
+ }
3045
+ }
3046
+ return value;
3047
+ }
3048
+
3049
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/shared/optional_undefined.mjs
3050
+ init_esm_shims();
3051
+ function IsOptionalUndefined(property, key, value) {
3052
+ return IsOptional(property) && guard_exports.IsUndefined(value[key]);
3053
+ }
3054
+
3055
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_object.mjs
3056
+ function FromProperties2(context, type, value) {
3057
+ const entries = guard_exports.EntriesRegExp(type.properties);
3058
+ const keys = guard_exports.Keys(value);
3059
+ for (const [regexp, property] of entries) {
3060
+ for (const key of keys) {
3061
+ if (!regexp.test(key) || IsOptionalUndefined(property, key, value))
3062
+ continue;
3063
+ value[key] = FromType3(context, property, value[key]);
3064
+ }
3065
+ }
3066
+ return guard_exports.HasPropertyKey(type, "additionalProperties") && guard_exports.IsObject(type.additionalProperties) ? FromAdditionalProperties(context, entries, type.additionalProperties, value) : value;
3067
+ }
3068
+ function FromObject3(context, type, value) {
3069
+ return guard_exports.IsObjectNotArray(value) ? FromProperties2(context, type, value) : value;
3070
+ }
3071
+
3072
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_record.mjs
3073
+ init_esm_shims();
3074
+ function FromPatternProperties(context, type, value) {
3075
+ const entries = guard_exports.EntriesRegExp(type.patternProperties);
3076
+ const keys = guard_exports.Keys(value);
3077
+ for (const [regexp, schema] of entries) {
3078
+ for (const key of keys) {
3079
+ if (regexp.test(key)) {
3080
+ value[key] = FromType3(context, schema, value[key]);
3081
+ }
3082
+ }
3083
+ }
3084
+ return guard_exports.HasPropertyKey(type, "additionalProperties") && guard_exports.IsObject(type.additionalProperties) ? FromAdditionalProperties(context, entries, type.additionalProperties, value) : value;
3085
+ }
3086
+ function FromRecord2(context, type, value) {
3087
+ return guard_exports.IsObjectNotArray(value) ? FromPatternProperties(context, type, value) : value;
3088
+ }
3089
+
3090
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_ref.mjs
3091
+ init_esm_shims();
3092
+ function FromRef2(context, type, value) {
3093
+ return guard_exports.HasPropertyKey(context, type.$ref) ? FromType3(context, context[type.$ref], value) : value;
3094
+ }
3095
+
3096
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_string.mjs
3097
+ init_esm_shims();
3098
+ function FromString6(_context, _type, value) {
3099
+ const result = try_exports.TryString(value);
3100
+ return try_exports.IsOk(result) ? result.value : value;
3101
+ }
3102
+
3103
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_template_literal.mjs
3104
+ init_esm_shims();
3105
+ function FromTemplateLiteral(context, type, value) {
3106
+ return FromType3(context, Evaluate(type), value);
3107
+ }
3108
+
3109
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_tuple.mjs
3110
+ init_esm_shims();
3111
+ function FromTuple2(context, type, value) {
3112
+ if (!guard_exports.IsArray(value))
3113
+ return value;
3114
+ for (let index = 0; index < Math.min(type.items.length, value.length); index++) {
3115
+ value[index] = FromType3(context, type.items[index], value[index]);
3116
+ }
3117
+ return value;
3118
+ }
3119
+
3120
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_undefined.mjs
3121
+ init_esm_shims();
3122
+ function FromUndefined(_context, _type, value) {
3123
+ const result = try_exports.TryUndefined(value);
3124
+ return try_exports.IsOk(result) ? result.value : value;
3125
+ }
3126
+
3127
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_union.mjs
3128
+ init_esm_shims();
3129
+ function FromUnion2(context, type, value) {
3130
+ const matched = type.anyOf.some((type2) => Check2(context, type2, value));
3131
+ if (matched)
3132
+ return value;
3133
+ const candidates = type.anyOf.map((type2) => FromType3(context, type2, Clone2(value)));
3134
+ const selected = candidates.find((value2) => Check2(context, type, value2));
3135
+ return guard_exports.IsUndefined(selected) ? value : selected;
3136
+ }
3137
+
3138
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_void.mjs
3139
+ init_esm_shims();
3140
+ function FromVoid(_context, _type, value) {
3141
+ const result = try_exports.TryUndefined(value);
3142
+ return try_exports.IsOk(result) ? void 0 : value;
3143
+ }
3144
+
3145
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/from_type.mjs
3146
+ function FromType3(context, type, value) {
3147
+ return IsArray(type) ? FromArray3(context, type, value) : IsBigInt(type) ? FromBigInt5(context, type, value) : IsBoolean(type) ? FromBoolean5(context, type, value) : IsCyclic(type) ? FromCyclic2(context, type, value) : IsEnum(type) ? FromEnum(context, type, value) : IsInteger(type) ? FromInteger(context, type, value) : IsIntersect(type) ? FromIntersect2(context, type, value) : IsLiteral(type) ? FromLiteral(context, type, value) : IsNull(type) ? FromNull(context, type, value) : IsNumber(type) ? FromNumber4(context, type, value) : IsObject(type) ? FromObject3(context, type, value) : IsRecord(type) ? FromRecord2(context, type, value) : IsRef(type) ? FromRef2(context, type, value) : IsString(type) ? FromString6(context, type, value) : IsTemplateLiteral(type) ? FromTemplateLiteral(context, type, value) : IsTuple(type) ? FromTuple2(context, type, value) : IsUndefined(type) ? FromUndefined(context, type, value) : IsUnion(type) ? FromUnion2(context, type, value) : IsVoid(type) ? FromVoid(context, type, value) : value;
3148
+ }
3149
+
3150
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/convert/convert.mjs
3151
+ function Convert(...args) {
3152
+ const [context, type, value] = arguments_exports.Match(args, {
3153
+ 3: (context2, type2, value2) => [context2, type2, value2],
3154
+ 2: (type2, value2) => [{}, type2, value2]
3155
+ });
3156
+ return FromType3(context, type, value);
3157
+ }
3158
+
3159
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/index.mjs
3160
+ init_esm_shims();
3161
+
3162
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/default.mjs
3163
+ init_esm_shims();
3164
+
3165
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_type.mjs
3166
+ init_esm_shims();
3167
+
3168
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_array.mjs
3169
+ init_esm_shims();
3170
+ function FromArray4(context, type, value) {
3171
+ if (!guard_exports.IsArray(value))
3172
+ return value;
3173
+ for (let i = 0; i < value.length; i++) {
3174
+ value[i] = FromType4(context, type.items, value[i]);
3175
+ }
3176
+ return value;
3177
+ }
3178
+
3179
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_cyclic.mjs
3180
+ init_esm_shims();
3181
+ function FromCyclic3(context, type, value) {
3182
+ return FromType4({ ...context, ...type.$defs }, Ref(type.$ref), value);
3183
+ }
3184
+
3185
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_default.mjs
3186
+ init_esm_shims();
3187
+ function FromDefault(type, value) {
3188
+ if (!guard_exports.IsUndefined(value))
3189
+ return value;
3190
+ return guard_exports.IsFunction(type.default) ? type.default() : Clone2(type.default);
3191
+ }
3192
+
3193
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_intersect.mjs
3194
+ init_esm_shims();
3195
+ function FromIntersect3(context, type, value) {
3196
+ const instantiated = Instantiate(context, type);
3197
+ const evaluated = Evaluate(instantiated);
3198
+ return FromType4(context, evaluated, value);
3199
+ }
3200
+
3201
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_object.mjs
3202
+ init_esm_shims();
3203
+ function FromObject4(context, type, value) {
3204
+ if (!guard_exports.IsObject(value))
3205
+ return value;
3206
+ const knownPropertyKeys = guard_exports.Keys(type.properties);
3207
+ for (const key of knownPropertyKeys) {
3208
+ const propertyValue = FromType4(context, type.properties[key], value[key]);
3209
+ const isUnassignableUndefined = guard_exports.IsUndefined(propertyValue) && (IsOptional(type.properties[key]) || !guard_exports.HasPropertyKey(type.properties[key], "default"));
3210
+ if (isUnassignableUndefined)
3211
+ continue;
3212
+ value[key] = propertyValue;
3213
+ }
3214
+ if (!IsAdditionalProperties(type) || guard_exports.IsBoolean(type.additionalProperties))
3215
+ return value;
3216
+ for (const key of guard_exports.Keys(value)) {
3217
+ if (knownPropertyKeys.includes(key))
3218
+ continue;
3219
+ value[key] = FromType4(context, type.additionalProperties, value[key]);
3220
+ }
3221
+ return value;
3222
+ }
3223
+
3224
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_record.mjs
3225
+ init_esm_shims();
3226
+ function FromRecord3(context, type, value) {
3227
+ if (!guard_exports.IsObject(value))
3228
+ return value;
3229
+ const [recordKey, recordValue] = [new RegExp(RecordPattern(type)), RecordValue(type)];
3230
+ for (const key of guard_exports.Keys(value)) {
3231
+ if (!(recordKey.test(key) && IsDefault(recordValue)))
3232
+ continue;
3233
+ value[key] = FromType4(context, recordValue, value[key]);
3234
+ }
3235
+ if (!IsAdditionalProperties(type))
3236
+ return value;
3237
+ for (const key of guard_exports.Keys(value)) {
3238
+ if (recordKey.test(key))
3239
+ continue;
3240
+ value[key] = FromType4(context, type.additionalProperties, value[key]);
3241
+ }
3242
+ return value;
3243
+ }
3244
+
3245
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_ref.mjs
3246
+ init_esm_shims();
3247
+ function FromRef3(context, type, value) {
3248
+ return guard_exports.HasPropertyKey(context, type.$ref) ? FromType4(context, context[type.$ref], value) : value;
3249
+ }
3250
+
3251
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_tuple.mjs
3252
+ init_esm_shims();
3253
+ function FromTuple3(context, schema, value) {
3254
+ if (!guard_exports.IsArray(value))
3255
+ return value;
3256
+ const [items, max] = [schema.items, Math.max(schema.items.length, value.length)];
3257
+ for (let i = 0; i < max; i++) {
3258
+ if (i < items.length)
3259
+ value[i] = FromType4(context, items[i], value[i]);
3260
+ }
3261
+ return value;
3262
+ }
3263
+
3264
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_union.mjs
3265
+ init_esm_shims();
3266
+ function FromUnion3(context, schema, value) {
3267
+ for (const inner of schema.anyOf) {
3268
+ const result = FromType4(context, inner, Clone2(value));
3269
+ if (Check2(context, inner, result)) {
3270
+ return result;
3271
+ }
3272
+ }
3273
+ return value;
3274
+ }
3275
+
3276
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/from_type.mjs
3277
+ function FromType4(context, type, value) {
3278
+ const defaulted = IsDefault(type) ? FromDefault(type, value) : value;
3279
+ return IsArray(type) ? FromArray4(context, type, defaulted) : IsCyclic(type) ? FromCyclic3(context, type, defaulted) : IsIntersect(type) ? FromIntersect3(context, type, defaulted) : IsObject(type) ? FromObject4(context, type, defaulted) : IsRecord(type) ? FromRecord3(context, type, defaulted) : IsRef(type) ? FromRef3(context, type, defaulted) : IsTuple(type) ? FromTuple3(context, type, defaulted) : IsUnion(type) ? FromUnion3(context, type, defaulted) : defaulted;
3280
+ }
3281
+
3282
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/default/default.mjs
3283
+ function Default(...args) {
3284
+ const [context, type, value] = arguments_exports.Match(args, {
3285
+ 3: (context2, type2, value2) => [context2, type2, value2],
3286
+ 2: (type2, value2) => [{}, type2, value2]
3287
+ });
3288
+ return FromType4(context, type, value);
3289
+ }
3290
+
3291
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/pipeline/index.mjs
3292
+ init_esm_shims();
3293
+
3294
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/pipeline/pipeline.mjs
3295
+ init_esm_shims();
3296
+ function Pipeline(pipeline) {
3297
+ return (...args) => {
3298
+ const [context, type, value] = arguments_exports.Match(args, {
3299
+ 3: (context2, type2, value2) => [context2, type2, value2],
3300
+ 2: (type2, value2) => [{}, type2, value2]
3301
+ });
3302
+ return pipeline.reduce((result, func) => func(context, type, result), value);
3303
+ };
3304
+ }
3305
+
3306
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_type.mjs
3307
+ init_esm_shims();
3308
+
3309
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_array.mjs
3310
+ init_esm_shims();
3311
+
3312
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/callback.mjs
3313
+ init_esm_shims();
3314
+ function Decode2(_context, type, value) {
3315
+ return type["~codec"].decode(value);
3316
+ }
3317
+ function Encode(_context, type, value) {
3318
+ return type["~codec"].encode(value);
3319
+ }
3320
+ function Callback(direction, context, type, value) {
3321
+ if (!IsCodec(type))
3322
+ return value;
3323
+ return guard_exports.IsEqual(direction, "Decode") ? Decode2(context, type, value) : Encode(context, type, value);
3324
+ }
3325
+
3326
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_array.mjs
3327
+ function Decode3(direction, context, type, value) {
3328
+ if (!guard_exports.IsArray(value))
3329
+ return value;
3330
+ for (let i = 0; i < value.length; i++) {
3331
+ value[i] = FromType5(direction, context, type.items, value[i]);
3332
+ }
3333
+ return Callback(direction, context, type, value);
3334
+ }
3335
+ function Encode2(direction, context, type, value) {
3336
+ const exterior = Callback(direction, context, type, value);
3337
+ if (!guard_exports.IsArray(exterior))
3338
+ return exterior;
3339
+ for (let i = 0; i < exterior.length; i++) {
3340
+ exterior[i] = FromType5(direction, context, type.items, exterior[i]);
3341
+ }
3342
+ return exterior;
3343
+ }
3344
+ function FromArray5(direction, context, type, value) {
3345
+ return guard_exports.IsEqual(direction, "Decode") ? Decode3(direction, context, type, value) : Encode2(direction, context, type, value);
3346
+ }
3347
+
3348
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_cyclic.mjs
3349
+ init_esm_shims();
3350
+ function FromCyclic4(direction, context, type, value) {
3351
+ value = FromType5(direction, { ...context, ...type.$defs }, Ref(type.$ref), value);
3352
+ return Callback(direction, context, type, value);
3353
+ }
3354
+
3355
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_intersect.mjs
3356
+ init_esm_shims();
3357
+ function MergeInteriors(interiors) {
3358
+ return interiors.reduce((results, interior) => ({ ...results, ...interior }), {});
3359
+ }
3360
+ function NonMatchingInterior(value, interiors) {
3361
+ for (const interior of interiors)
3362
+ if (!guard_exports.IsDeepEqual(value, interior))
3363
+ return interior;
3364
+ return value;
3365
+ }
3366
+ function Decode4(direction, context, type, value) {
3367
+ if (guard_exports.IsEqual(type.allOf.length, 0))
3368
+ return Callback(direction, context, type, value);
3369
+ const interiors = type.allOf.map((schema) => FromType5(direction, context, schema, Clean(schema, Clone2(value))));
3370
+ const structural = interiors.every((result) => guard_exports.IsObject(result));
3371
+ const exterior = structural ? MergeInteriors(interiors) : NonMatchingInterior(value, interiors);
3372
+ return Callback(direction, context, type, exterior);
3373
+ }
3374
+ function Encode3(direction, context, type, value) {
3375
+ if (guard_exports.IsEqual(type.allOf.length, 0))
3376
+ return Callback(direction, context, type, value);
3377
+ const exterior = Callback(direction, context, type, value);
3378
+ const interiors = type.allOf.map((schema) => FromType5(direction, context, schema, Clean(schema, Clone2(exterior))));
3379
+ const structural = interiors.every((result) => guard_exports.IsObject(result));
3380
+ if (structural)
3381
+ return MergeInteriors(interiors);
3382
+ return NonMatchingInterior(exterior, interiors);
3383
+ }
3384
+ function FromIntersect4(direction, context, type, value) {
3385
+ return guard_exports.IsEqual(direction, "Decode") ? Decode4(direction, context, type, value) : Encode3(direction, context, type, value);
3386
+ }
3387
+
3388
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_object.mjs
3389
+ init_esm_shims();
3390
+ function Decode5(direction, context, type, value) {
3391
+ if (!guard_exports.IsObjectNotArray(value))
3392
+ return value;
3393
+ for (const key of guard_exports.Keys(type.properties)) {
3394
+ if (!guard_exports.HasPropertyKey(value, key) || IsOptionalUndefined(type.properties[key], key, value))
3395
+ continue;
3396
+ value[key] = FromType5(direction, context, type.properties[key], value[key]);
3397
+ }
3398
+ return Callback(direction, context, type, value);
3399
+ }
3400
+ function Encode4(direction, context, type, value) {
3401
+ const exterior = Callback(direction, context, type, value);
3402
+ if (!guard_exports.IsObjectNotArray(exterior))
3403
+ return exterior;
3404
+ for (const key of guard_exports.Keys(type.properties)) {
3405
+ if (!guard_exports.HasPropertyKey(exterior, key) || IsOptionalUndefined(type.properties[key], key, exterior))
3406
+ continue;
3407
+ exterior[key] = FromType5(direction, context, type.properties[key], exterior[key]);
3408
+ }
3409
+ return exterior;
3410
+ }
3411
+ function FromObject5(direction, context, type, value) {
3412
+ return guard_exports.IsEqual(direction, "Decode") ? Decode5(direction, context, type, value) : Encode4(direction, context, type, value);
3413
+ }
3414
+
3415
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_record.mjs
3416
+ init_esm_shims();
3417
+ function Decode6(direction, context, type, value) {
3418
+ if (!guard_exports.IsObjectNotArray(value))
3419
+ return value;
3420
+ const regexp = new RegExp(RecordPattern(type));
3421
+ for (const key of guard_exports.Keys(value)) {
3422
+ if (!regexp.test(key))
3423
+ continue;
3424
+ value[key] = FromType5(direction, context, RecordValue(type), value[key]);
3425
+ }
3426
+ return Callback(direction, context, type, value);
3427
+ }
3428
+ function Encode5(direction, context, type, value) {
3429
+ const exterior = Callback(direction, context, type, value);
3430
+ if (!guard_exports.IsObjectNotArray(exterior))
3431
+ return exterior;
3432
+ const regexp = new RegExp(RecordPattern(type));
3433
+ for (const key of guard_exports.Keys(exterior)) {
3434
+ if (!regexp.test(key))
3435
+ continue;
3436
+ exterior[key] = FromType5(direction, context, RecordValue(type), exterior[key]);
3437
+ }
3438
+ return exterior;
3439
+ }
3440
+ function FromRecord4(direction, context, type, value) {
3441
+ return guard_exports.IsEqual(direction, "Decode") ? Decode6(direction, context, type, value) : Encode5(direction, context, type, value);
3442
+ }
3443
+
3444
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_ref.mjs
3445
+ init_esm_shims();
3446
+ function ResolveRef(direction, context, type, value) {
3447
+ return guard_exports.HasPropertyKey(context, type.$ref) ? FromType5(direction, context, context[type.$ref], value) : value;
3448
+ }
3449
+ function FromRef4(direction, context, type, value) {
3450
+ return guard_exports.IsEqual(direction, "Decode") ? Callback(direction, context, type, ResolveRef(direction, context, type, value)) : ResolveRef(direction, context, type, Callback(direction, context, type, value));
3451
+ }
3452
+
3453
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_tuple.mjs
3454
+ init_esm_shims();
3455
+ function Decode7(direction, context, type, value) {
3456
+ if (!guard_exports.IsArray(value))
3457
+ return value;
3458
+ for (let i = 0; i < Math.min(type.items.length, value.length); i++) {
3459
+ value[i] = FromType5(direction, context, type.items[i], value[i]);
3460
+ }
3461
+ return Callback(direction, context, type, value);
3462
+ }
3463
+ function Encode6(direction, context, type, value) {
3464
+ const exterior = Callback(direction, context, type, value);
3465
+ if (!guard_exports.IsArray(exterior))
3466
+ return value;
3467
+ for (let i = 0; i < Math.min(type.items.length, exterior.length); i++) {
3468
+ exterior[i] = FromType5(direction, context, type.items[i], exterior[i]);
3469
+ }
3470
+ return exterior;
3471
+ }
3472
+ function FromTuple4(direction, context, type, value) {
3473
+ return guard_exports.IsEqual(direction, "Decode") ? Decode7(direction, context, type, value) : Encode6(direction, context, type, value);
3474
+ }
3475
+
3476
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_union.mjs
3477
+ init_esm_shims();
3478
+ function Decode8(direction, context, type, value) {
3479
+ for (const schema of type.anyOf) {
3480
+ if (!Check2(context, schema, value))
3481
+ continue;
3482
+ const variant = FromType5(direction, context, schema, value);
3483
+ return Callback(direction, context, type, variant);
3484
+ }
3485
+ return value;
3486
+ }
3487
+ function Encode7(direction, context, type, value) {
3488
+ const exterior = Callback(direction, context, type, value);
3489
+ for (const schema of type.anyOf) {
3490
+ const variant = FromType5(direction, context, schema, Clone2(exterior));
3491
+ if (!Check2(context, schema, variant))
3492
+ continue;
3493
+ return variant;
3494
+ }
3495
+ return exterior;
3496
+ }
3497
+ function FromUnion4(direction, context, type, value) {
3498
+ return guard_exports.IsEqual(direction, "Decode") ? Decode8(direction, context, type, value) : Encode7(direction, context, type, value);
3499
+ }
3500
+
3501
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/from_type.mjs
3502
+ function FromType5(direction, context, type, value) {
3503
+ return IsArray(type) ? FromArray5(direction, context, type, value) : IsCyclic(type) ? FromCyclic4(direction, context, type, value) : IsIntersect(type) ? FromIntersect4(direction, context, type, value) : IsObject(type) ? FromObject5(direction, context, type, value) : IsRecord(type) ? FromRecord4(direction, context, type, value) : IsRef(type) ? FromRef4(direction, context, type, value) : IsTuple(type) ? FromTuple4(direction, context, type, value) : IsUnion(type) ? FromUnion4(direction, context, type, value) : Callback(direction, context, type, value);
3504
+ }
3505
+
3506
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/decode.mjs
3507
+ var DecodeError = class extends AssertError {
3508
+ constructor(value, errors) {
3509
+ super("Decode", value, errors);
3510
+ }
3511
+ };
3512
+ function Assert2(context, type, value) {
3513
+ if (!Check2(context, type, value))
3514
+ throw new DecodeError(value, Errors2(context, type, value));
3515
+ return value;
3516
+ }
3517
+ function DecodeUnsafe(context, type, value) {
3518
+ const sorted = settings_exports.Get().unionPrioritySort ? UnionPrioritySort(type) : type;
3519
+ return FromType5("Decode", context, sorted, value);
3520
+ }
3521
+ var Decoder = Pipeline([
3522
+ (_context, _type, value) => Clone2(value),
3523
+ (context, type, value) => Default(context, type, value),
3524
+ (context, type, value) => Convert(context, type, value),
3525
+ (context, type, value) => Clean(context, type, value),
3526
+ (context, type, value) => Assert2(context, type, value),
3527
+ (context, type, value) => DecodeUnsafe(context, type, value)
3528
+ ]);
3529
+ function Decode9(...args) {
3530
+ const [context, type, value] = arguments_exports.Match(args, {
3531
+ 3: (context2, type2, value2) => [context2, type2, value2],
3532
+ 2: (type2, value2) => [{}, type2, value2]
3533
+ });
3534
+ return Decoder(context, type, value);
3535
+ }
3536
+
3537
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/encode.mjs
3538
+ init_esm_shims();
3539
+ var EncodeError = class extends AssertError {
3540
+ constructor(value, errors) {
3541
+ super("Encode", value, errors);
3542
+ }
3543
+ };
3544
+ function Assert3(context, type, value) {
3545
+ if (!Check2(context, type, value))
3546
+ throw new EncodeError(value, Errors2(context, type, value));
3547
+ return value;
3548
+ }
3549
+ function EncodeUnsafe(context, type, value) {
3550
+ const sorted = settings_exports.Get().unionPrioritySort ? UnionPrioritySort(type) : type;
3551
+ return FromType5("Encode", context, sorted, value);
3552
+ }
3553
+ var Encoder = Pipeline([
3554
+ (_context, _type, value) => Clone2(value),
3555
+ (context, type, value) => EncodeUnsafe(context, type, value),
3556
+ (context, type, value) => Default(context, type, value),
3557
+ (context, type, value) => Convert(context, type, value),
3558
+ (context, type, value) => Clean(context, type, value),
3559
+ (context, type, value) => Assert3(context, type, value)
3560
+ ]);
3561
+ function Encode8(...args) {
3562
+ const [context, type, value] = arguments_exports.Match(args, {
3563
+ 3: (context2, type2, value2) => [context2, type2, value2],
3564
+ 2: (type2, value2) => [{}, type2, value2]
3565
+ });
3566
+ return Encoder(context, type, value);
3567
+ }
3568
+
3569
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/codec/has.mjs
3570
+ init_esm_shims();
3571
+ function FromArray6(context, type) {
3572
+ return IsCodec(type) || FromType6(context, type.items);
3573
+ }
3574
+ function FromCyclic5(context, type) {
3575
+ return IsCodec(type) || FromRef5({ ...context, ...type.$defs }, Ref(type.$ref));
3576
+ }
3577
+ function FromIntersect5(context, type) {
3578
+ return IsCodec(type) || type.allOf.some((type2) => FromType6(context, type2));
3579
+ }
3580
+ function FromObject6(context, type) {
3581
+ return IsCodec(type) || guard_exports.Keys(type.properties).some((key) => {
3582
+ return FromType6(context, type.properties[key]);
3583
+ });
3584
+ }
3585
+ function FromRecord5(context, type) {
3586
+ return IsCodec(type) || FromType6(context, RecordValue(type));
3587
+ }
3588
+ function FromRef5(context, type) {
3589
+ if (visited.has(type.$ref))
3590
+ return false;
3591
+ visited.add(type.$ref);
3592
+ return IsCodec(type) || guard_exports.HasPropertyKey(context, type.$ref) && FromType6(context, context[type.$ref]);
3593
+ }
3594
+ function FromTuple5(context, type) {
3595
+ return IsCodec(type) || type.items.some((type2) => FromType6(context, type2));
3596
+ }
3597
+ function FromUnion5(context, type) {
3598
+ return IsCodec(type) || type.anyOf.some((type2) => FromType6(context, type2));
3599
+ }
3600
+ function FromType6(context, type) {
3601
+ return IsArray(type) ? FromArray6(context, type) : IsCyclic(type) ? FromCyclic5(context, type) : IsIntersect(type) ? FromIntersect5(context, type) : IsObject(type) ? FromObject6(context, type) : IsRecord(type) ? FromRecord5(context, type) : IsRef(type) ? FromRef5(context, type) : IsTuple(type) ? FromTuple5(context, type) : IsUnion(type) ? FromUnion5(context, type) : IsCodec(type);
3602
+ }
3603
+ var visited = /* @__PURE__ */ new Set();
3604
+ function HasCodec(...args) {
3605
+ const [context, type] = arguments_exports.Match(args, {
3606
+ 2: (context2, type2) => [context2, type2],
3607
+ 1: (type2) => [{}, type2]
3608
+ });
3609
+ visited.clear();
3610
+ return FromType6(context, type);
3611
+ }
3612
+
3613
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/index.mjs
3614
+ init_esm_shims();
3615
+
3616
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/error.mjs
3617
+ init_esm_shims();
3618
+ var CreateError = class extends Error {
3619
+ constructor(type, message) {
3620
+ super(message);
3621
+ this.type = type;
3622
+ }
3623
+ };
3624
+
3625
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/create.mjs
3626
+ init_esm_shims();
3627
+
3628
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_type.mjs
3629
+ init_esm_shims();
3630
+
3631
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_default.mjs
3632
+ init_esm_shims();
3633
+ function FromDefault2(_context, schema) {
3634
+ return guard_exports.IsFunction(schema.default) ? schema.default(schema) : guard_exports.IsObject(schema.default) ? Clone2(schema.default) : schema.default;
3635
+ }
3636
+
3637
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_array.mjs
3638
+ init_esm_shims();
3639
+ function FromArray7(context, type) {
3640
+ if (IsUniqueItems(type) && !IsDefault(type))
3641
+ throw new CreateError(type, "Arrays with uniqueItems constraints must specify a default annotation");
3642
+ const length = IsMinItems(type) ? type.minItems : 0;
3643
+ return Array.from({ length }, () => FromType7(context, type.items));
3644
+ }
3645
+
3646
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_bigint.mjs
3647
+ init_esm_shims();
3648
+ function FromBigInt6(_context, type) {
3649
+ return IsExclusiveMinimum(type) ? BigInt(type.exclusiveMinimum) + BigInt(1) : IsMinimum(type) ? BigInt(type.minimum) : BigInt(0);
3650
+ }
3651
+
3652
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_boolean.mjs
3653
+ init_esm_shims();
3654
+ function FromBoolean6(_context, _type) {
3655
+ return false;
3656
+ }
3657
+
3658
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_constructor.mjs
3659
+ init_esm_shims();
3660
+ function FromConstructor(context, type) {
3661
+ const instanceType = FromType7(context, type.instanceType);
3662
+ return class {
3663
+ constructor() {
3664
+ Object.assign(this, instanceType);
3665
+ }
3666
+ };
3667
+ }
3668
+
3669
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_cyclic.mjs
3670
+ init_esm_shims();
3671
+ function FromCyclic6(context, type) {
3672
+ return FromType7({ ...context, ...type.$defs }, Ref(type.$ref));
3673
+ }
3674
+
3675
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_enum.mjs
3676
+ init_esm_shims();
3677
+ function FromEnum2(context, type) {
3678
+ return FromType7(context, Evaluate(type));
3679
+ }
3680
+
3681
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_function.mjs
3682
+ init_esm_shims();
3683
+ function FromFunction(context, type) {
3684
+ const returnType = FromType7(context, type.returnType);
3685
+ return () => returnType;
3686
+ }
3687
+
3688
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_integer.mjs
3689
+ init_esm_shims();
3690
+ function FromInteger2(_context, type) {
3691
+ return IsExclusiveMinimum(type) && guard_exports.IsNumber(type.exclusiveMinimum) ? type.exclusiveMinimum + 1 : IsMinimum(type) ? type.minimum : 0;
3692
+ }
3693
+
3694
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_intersect.mjs
3695
+ init_esm_shims();
3696
+ function FromIntersect6(context, type) {
3697
+ const instantiated = Instantiate(context, type);
3698
+ const evaluated = Evaluate(instantiated);
3699
+ return FromType7(context, evaluated);
3700
+ }
3701
+
3702
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_literal.mjs
3703
+ init_esm_shims();
3704
+ function FromLiteral2(_context, type) {
3705
+ return type.const;
3706
+ }
3707
+
3708
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_never.mjs
3709
+ init_esm_shims();
3710
+ function FromNever(_context, type) {
3711
+ throw new CreateError(type, "Cannot create TNever types");
3712
+ }
3713
+
3714
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_null.mjs
3715
+ init_esm_shims();
3716
+ function FromNull2(_context, _type) {
3717
+ return null;
3718
+ }
3719
+
3720
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_number.mjs
3721
+ init_esm_shims();
3722
+ function FromNumber5(_context, type) {
3723
+ return IsExclusiveMinimum(type) && guard_exports.IsNumber(type.exclusiveMinimum) ? type.exclusiveMinimum + 1 : IsMinimum(type) ? type.minimum : 0;
3724
+ }
3725
+
3726
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_object.mjs
3727
+ init_esm_shims();
3728
+ function FromObject7(context, type) {
3729
+ const required = guard_exports.IsUndefined(type.required) ? [] : type.required;
3730
+ return required.reduce((result, key) => {
3731
+ return { ...result, [key]: FromType7(context, type.properties[key]) };
3732
+ }, {});
3733
+ }
3734
+
3735
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_record.mjs
3736
+ init_esm_shims();
3737
+ function FromRecord6(_context, type) {
3738
+ if (IsMinProperties(type) && !IsDefault(type))
3739
+ throw new CreateError(type, "Record with the minProperties constraint must have a default annotation");
3740
+ return {};
3741
+ }
3742
+
3743
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_ref.mjs
3744
+ init_esm_shims();
3745
+ function FromRef6(context, type) {
3746
+ return guard_exports.HasPropertyKey(context, type.$ref) ? FromType7(context, context[type.$ref]) : (() => {
3747
+ throw new CreateError(type, "Unable to deref Ref");
3748
+ })();
3749
+ }
3750
+
3751
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_string.mjs
3752
+ init_esm_shims();
3753
+ function FromString7(_context, type) {
3754
+ const needsDefault = (IsPattern(type) || IsFormat(type)) && !IsDefault(type);
3755
+ if (needsDefault)
3756
+ throw Error("Strings with format or pattern constraints must specify default");
3757
+ const minLength = IsMinLength(type) ? type.minLength : 0;
3758
+ return "".padEnd(minLength);
3759
+ }
3760
+
3761
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_symbol.mjs
3762
+ init_esm_shims();
3763
+ function FromSymbol(_context, _type) {
3764
+ return /* @__PURE__ */ Symbol();
3765
+ }
3766
+
3767
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_template_literal.mjs
3768
+ init_esm_shims();
3769
+ function FromTemplateLiteral2(context, type) {
3770
+ const decoded = TemplateLiteralDecode(type.pattern);
3771
+ if (IsString(decoded))
3772
+ throw new CreateError(type, "Unable to create TemplateLiteral due to infinite type expansion");
3773
+ return FromType7(context, decoded);
3774
+ }
3775
+
3776
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_tuple.mjs
3777
+ init_esm_shims();
3778
+ function FromTuple6(context, type) {
3779
+ return Array.from({ length: type.minItems }, (_, i) => FromType7(context, type.items[i]));
3780
+ }
3781
+
3782
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_undefined.mjs
3783
+ init_esm_shims();
3784
+ function FromUndefined2(_context, _type) {
3785
+ return void 0;
3786
+ }
3787
+
3788
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_union.mjs
3789
+ init_esm_shims();
3790
+ function FromUnion6(context, type) {
3791
+ if (guard_exports.IsEqual(type.anyOf.length, 0)) {
3792
+ throw Error("Unable to create Union with no variants");
3793
+ }
3794
+ return FromType7(context, type.anyOf[0]);
3795
+ }
3796
+
3797
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_void.mjs
3798
+ init_esm_shims();
3799
+ function FromVoid2(_context, _type) {
3800
+ return void 0;
3801
+ }
3802
+
3803
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/from_type.mjs
3804
+ function FromType7(context, type) {
3805
+ return (
3806
+ // -----------------------------------------------------
3807
+ // Default
3808
+ // -----------------------------------------------------
3809
+ IsDefault(type) ? FromDefault2(context, type) : (
3810
+ // -----------------------------------------------------
3811
+ // Types
3812
+ // -----------------------------------------------------
3813
+ IsArray(type) ? FromArray7(context, type) : IsBigInt(type) ? FromBigInt6(context, type) : IsBoolean(type) ? FromBoolean6(context, type) : IsConstructor(type) ? FromConstructor(context, type) : IsCyclic(type) ? FromCyclic6(context, type) : IsEnum(type) ? FromEnum2(context, type) : IsFunction(type) ? FromFunction(context, type) : IsInteger(type) ? FromInteger2(context, type) : IsIntersect(type) ? FromIntersect6(context, type) : IsLiteral(type) ? FromLiteral2(context, type) : IsNever(type) ? FromNever(context, type) : IsNull(type) ? FromNull2(context, type) : IsNumber(type) ? FromNumber5(context, type) : IsObject(type) ? FromObject7(context, type) : IsRecord(type) ? FromRecord6(context, type) : IsRef(type) ? FromRef6(context, type) : IsString(type) ? FromString7(context, type) : IsSymbol(type) ? FromSymbol(context, type) : IsTemplateLiteral(type) ? FromTemplateLiteral2(context, type) : IsTuple(type) ? FromTuple6(context, type) : IsUndefined(type) ? FromUndefined2(context, type) : IsUnion(type) ? FromUnion6(context, type) : IsVoid(type) ? FromVoid2(context, type) : void 0
3814
+ )
3815
+ );
3816
+ }
3817
+
3818
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/create/create.mjs
3819
+ function Create(...args) {
3820
+ const [context, type] = arguments_exports.Match(args, {
3821
+ 2: (context2, type2) => [context2, type2],
3822
+ 1: (type2) => [{}, type2]
3823
+ });
3824
+ return FromType7(context, type);
3825
+ }
3826
+
3827
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/equal/index.mjs
3828
+ init_esm_shims();
3829
+
3830
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/equal/equal.mjs
3831
+ init_esm_shims();
3832
+ function Equal(left, right) {
3833
+ return guard_exports.IsDeepEqual(left, right);
3834
+ }
3835
+
3836
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/hash/index.mjs
3837
+ init_esm_shims();
3838
+
3839
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/hash/hash.mjs
3840
+ init_esm_shims();
3841
+ function Hash(value) {
3842
+ return hash_exports.Hash(value);
3843
+ }
3844
+
3845
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/parse/index.mjs
3846
+ init_esm_shims();
3847
+
3848
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/parse/parse.mjs
3849
+ init_esm_shims();
3850
+ var ParseError2 = class extends AssertError {
3851
+ constructor(value, errors) {
3852
+ super("Parse", value, errors);
3853
+ }
3854
+ };
3855
+ function Assert4(context, type, value) {
3856
+ if (!Check2(context, type, value))
3857
+ throw new ParseError2(value, Errors2(context, type, value));
3858
+ return value;
3859
+ }
3860
+ var Parser = Pipeline([
3861
+ (_context, _type, value) => Clone2(value),
3862
+ (context, type, value) => Default(context, type, value),
3863
+ (context, type, value) => Convert(context, type, value),
3864
+ (context, type, value) => Clean(context, type, value),
3865
+ (context, type, value) => Assert4(context, type, value)
3866
+ ]);
3867
+ function Parse(...args) {
3868
+ const [context, type, value] = arguments_exports.Match(args, {
3869
+ 3: (context2, type2, value2) => [context2, type2, value2],
3870
+ 2: (type2, value2) => [{}, type2, value2]
3871
+ });
3872
+ const checked = Check2(context, type, value);
3873
+ if (checked)
3874
+ return value;
3875
+ if (settings_exports.Get().correctiveParse)
3876
+ return Parser(context, type, value);
3877
+ throw new ParseError2(value, Errors2(context, type, value));
3878
+ }
3879
+
3880
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/delta/index.mjs
3881
+ init_esm_shims();
3882
+
3883
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/delta/diff.mjs
3884
+ init_esm_shims();
3885
+ function CreateUpdate(path, value) {
3886
+ return { type: "update", path, value };
3887
+ }
3888
+ function CreateInsert(path, value) {
3889
+ return { type: "insert", path, value };
3890
+ }
3891
+ function CreateDelete(path) {
3892
+ return { type: "delete", path };
3893
+ }
3894
+ function AssertCanDiffObject(value) {
3895
+ if (guard_exports.IsObject(value) && guard_exports.IsEqual(guard_exports.Symbols(value).length, 0))
3896
+ return;
3897
+ throw new Error("Cannot create diffs for objects with symbols keys");
3898
+ }
3899
+ function* FromObject8(path, left, right) {
3900
+ if (!guard_exports.IsObject(right) || guard_exports.IsArray(right))
3901
+ return yield CreateUpdate(path, right);
3902
+ AssertCanDiffObject(left);
3903
+ AssertCanDiffObject(right);
3904
+ const leftKeys = guard_exports.Keys(left);
3905
+ const rightKeys = guard_exports.Keys(right);
3906
+ for (const key of rightKeys) {
3907
+ if (guard_exports.HasPropertyKey(left, key))
3908
+ continue;
3909
+ if (guard_exports.IsUnsafePropertyKey(key))
3910
+ continue;
3911
+ yield CreateInsert(`${path}/${key}`, right[key]);
3912
+ }
3913
+ for (const key of leftKeys) {
3914
+ if (!guard_exports.HasPropertyKey(right, key))
3915
+ continue;
3916
+ if (guard_exports.IsUnsafePropertyKey(key))
3917
+ continue;
3918
+ if (Equal(left, right))
3919
+ continue;
3920
+ yield* FromValue2(`${path}/${key}`, left[key], right[key]);
3921
+ }
3922
+ for (const key of leftKeys) {
3923
+ if (guard_exports.HasPropertyKey(right, key))
3924
+ continue;
3925
+ if (guard_exports.IsUnsafePropertyKey(key))
3926
+ continue;
3927
+ yield CreateDelete(`${path}/${key}`);
3928
+ }
3929
+ }
3930
+ function* FromArray8(path, left, right) {
3931
+ if (!guard_exports.IsArray(right))
3932
+ return yield CreateUpdate(path, right);
3933
+ for (let i = 0; i < Math.min(left.length, right.length); i++) {
3934
+ yield* FromValue2(`${path}/${i}`, left[i], right[i]);
3935
+ }
3936
+ for (let i = 0; i < right.length; i++) {
3937
+ if (i < left.length)
3938
+ continue;
3939
+ yield CreateInsert(`${path}/${i}`, right[i]);
3940
+ }
3941
+ for (let i = left.length - 1; i >= 0; i--) {
3942
+ if (i < right.length)
3943
+ continue;
3944
+ yield CreateDelete(`${path}/${i}`);
3945
+ }
3946
+ }
3947
+ function* FromTypedArray(path, left, right) {
3948
+ const typeLeft = globalThis.Object.getPrototypeOf(left).constructor.name;
3949
+ const typeRight = globalThis.Object.getPrototypeOf(right).constructor.name;
3950
+ const predicate = globals_exports.IsTypeArray(right) && guard_exports.IsEqual(left.length, right.length) && guard_exports.IsEqual(typeLeft, typeRight);
3951
+ if (predicate) {
3952
+ for (let index = 0; index < Math.min(left.length, right.length); index++) {
3953
+ yield* FromValue2(`${path}/${index}`, left[index], right[index]);
3954
+ }
3955
+ } else {
3956
+ return yield CreateUpdate(path, right);
3957
+ }
3958
+ }
3959
+ function* FromUnknown(path, left, right) {
3960
+ if (left === right)
3961
+ return;
3962
+ yield CreateUpdate(path, right);
3963
+ }
3964
+ function* FromValue2(path, left, right) {
3965
+ return globals_exports.IsTypeArray(left) ? yield* FromTypedArray(path, left, right) : guard_exports.IsArray(left) ? yield* FromArray8(path, left, right) : guard_exports.IsObject(left) ? yield* FromObject8(path, left, right) : yield* FromUnknown(path, left, right);
3966
+ }
3967
+ function Diff(current, next) {
3968
+ return [...FromValue2("", current, next)];
3969
+ }
3970
+
3971
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/delta/edit.mjs
3972
+ init_esm_shims();
3973
+ var Insert = _Object_({
3974
+ type: Literal("insert"),
3975
+ path: String2(),
3976
+ value: Unknown()
3977
+ });
3978
+ var Update = Object({
3979
+ type: Literal("update"),
3980
+ path: String2(),
3981
+ value: Unknown()
3982
+ });
3983
+ var Delete2 = _Object_({
3984
+ type: Literal("delete"),
3985
+ path: String2()
3986
+ });
3987
+ var Edit = Union([Insert, Update, Delete2]);
3988
+
3989
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/delta/patch.mjs
3990
+ init_esm_shims();
3991
+
3992
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/pointer/index.mjs
3993
+ init_esm_shims();
3994
+
3995
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/delta/patch.mjs
3996
+ function IsRoot(edits) {
3997
+ return edits.length > 0 && edits[0].path === "" && edits[0].type === "update";
3998
+ }
3999
+ function IsEmpty(edits) {
4000
+ return edits.length === 0;
4001
+ }
4002
+ function Patch(current, edits) {
4003
+ if (IsRoot(edits))
4004
+ return Clone2(edits[0].value);
4005
+ if (IsEmpty(edits))
4006
+ return Clone2(current);
4007
+ const clone = Clone2(current);
4008
+ for (const edit of edits) {
4009
+ switch (edit.type) {
4010
+ case "insert": {
4011
+ pointer_exports.Set(clone, edit.path, edit.value);
4012
+ break;
4013
+ }
4014
+ case "update": {
4015
+ pointer_exports.Set(clone, edit.path, edit.value);
4016
+ break;
4017
+ }
4018
+ case "delete": {
4019
+ pointer_exports.Delete(clone, edit.path);
4020
+ break;
4021
+ }
4022
+ }
4023
+ }
4024
+ return clone;
4025
+ }
4026
+
4027
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/repair/index.mjs
4028
+ init_esm_shims();
4029
+
4030
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/repair/repair.mjs
4031
+ init_esm_shims();
4032
+
4033
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/repair/from_type.mjs
4034
+ init_esm_shims();
4035
+
4036
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/repair/from_array.mjs
4037
+ init_esm_shims();
4038
+
4039
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/repair/error.mjs
4040
+ init_esm_shims();
4041
+ var RepairError = class extends Error {
4042
+ constructor(context, type, value, message) {
4043
+ super(message);
4044
+ this.context = context;
4045
+ this.type = type;
4046
+ this.value = value;
4047
+ }
4048
+ };
4049
+
4050
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/repair/from_array.mjs
4051
+ function MakeUnique(values) {
4052
+ const [hashes, result] = [/* @__PURE__ */ new Set(), []];
4053
+ for (const value of values) {
4054
+ const hash = Hash(value);
4055
+ if (hashes.has(hash))
4056
+ continue;
4057
+ hashes.add(hash);
4058
+ result.push(value);
4059
+ }
4060
+ return result;
4061
+ }
4062
+ function FromArray9(context, type, value) {
4063
+ if (Check2(context, type, value))
4064
+ return value;
4065
+ const created = guard_exports.IsArray(value) ? value : Create(context, type);
4066
+ const minimum = IsMinItems(type) && created.length < type.minItems ? [...created, ...Array.from({ length: type.minItems - created.length }, () => Create(context, type))] : created;
4067
+ const maximum = IsMaxItems(type) && minimum.length > type.maxItems ? minimum.slice(0, type.maxItems) : minimum;
4068
+ const repaired = maximum.map((value2) => FromType8(context, type.items, value2));
4069
+ if (!IsUniqueItems(type) || IsUniqueItems(type) && !guard_exports.IsEqual(type.uniqueItems, true))
4070
+ return repaired;
4071
+ const unique = MakeUnique(repaired);
4072
+ if (!Check2(context, type, unique))
4073
+ throw new RepairError(context, type, value, "Failed to repair Array due to uniqueItems constraint");
4074
+ return unique;
4075
+ }
4076
+
4077
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/repair/from_enum.mjs
4078
+ init_esm_shims();
4079
+ function FromEnum3(context, type, value) {
4080
+ return FromType8(context, Evaluate(type), value);
4081
+ }
4082
+
4083
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/repair/from_intersect.mjs
4084
+ init_esm_shims();
4085
+ function FromIntersect7(context, type, value) {
4086
+ const instantiated = Instantiate(context, type);
4087
+ const evaluated = Evaluate(instantiated);
4088
+ return FromType8(context, evaluated, value);
4089
+ }
4090
+
4091
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/repair/from_object.mjs
4092
+ init_esm_shims();
4093
+ function FromObject9(context, type, value) {
4094
+ if (Check2(context, type, value))
4095
+ return value;
4096
+ if (!guard_exports.IsObjectNotArray(value))
4097
+ return Create(context, type);
4098
+ const required = new Set(guard_exports.IsUndefined(type.required) ? [] : type.required);
4099
+ const result = {};
4100
+ for (const [key, schema] of guard_exports.Entries(type.properties)) {
4101
+ if (!required.has(key) && guard_exports.IsUndefined(value[key]))
4102
+ continue;
4103
+ result[key] = key in value ? FromType8(context, schema, value[key]) : Create(context, schema);
4104
+ }
4105
+ const evaluatedKeys = guard_exports.Keys(type.properties);
4106
+ if (IsAdditionalProperties(type) && guard_exports.IsObject(type.additionalProperties)) {
4107
+ for (const key of guard_exports.Keys(value)) {
4108
+ if (evaluatedKeys.includes(key))
4109
+ continue;
4110
+ result[key] = FromType8(context, type.additionalProperties, value[key]);
4111
+ }
4112
+ }
4113
+ return result;
4114
+ }
4115
+
4116
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/repair/from_record.mjs
4117
+ init_esm_shims();
4118
+ function FromRecord7(context, type, value) {
4119
+ if (Check2(context, type, value))
4120
+ return value;
4121
+ if (guard_exports.IsNull(value) || !guard_exports.IsObject(value) || guard_exports.IsArray(value))
4122
+ return Create(context, type);
4123
+ const recordKey = new RegExp(RecordPattern(type));
4124
+ const recordValue = RecordValue(type);
4125
+ const evaluatedKeys = /* @__PURE__ */ new Set();
4126
+ const result = {};
4127
+ for (const [key, value_] of guard_exports.Entries(value)) {
4128
+ if (!recordKey.test(key))
4129
+ continue;
4130
+ result[key] = FromType8(context, recordValue, value_);
4131
+ evaluatedKeys.add(key);
4132
+ }
4133
+ if (IsAdditionalProperties(type)) {
4134
+ for (const key of guard_exports.Keys(value)) {
4135
+ if (evaluatedKeys.has(key))
4136
+ continue;
4137
+ result[key] = FromType8(context, type.additionalProperties, value[key]);
4138
+ }
4139
+ }
4140
+ return result;
4141
+ }
4142
+
4143
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/repair/from_ref.mjs
4144
+ init_esm_shims();
4145
+ function FromRef7(context, type, value) {
4146
+ return guard_exports.HasPropertyKey(context, type.$ref) ? FromType8(context, context[type.$ref], value) : (() => {
4147
+ throw new RepairError(context, type, value, "Unable to de-reference target type");
4148
+ })();
4149
+ }
4150
+
4151
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/repair/from_template_literal.mjs
4152
+ init_esm_shims();
4153
+ function FromTemplateLiteral3(context, type, value) {
4154
+ const decoded = TemplateLiteralDecode(type.pattern);
4155
+ return FromType8(context, decoded, value);
4156
+ }
4157
+
4158
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/repair/from_tuple.mjs
4159
+ init_esm_shims();
4160
+ function FromTuple7(context, schema, value) {
4161
+ if (Check2(context, schema, value))
4162
+ return value;
4163
+ if (!guard_exports.IsArray(value))
4164
+ return Create(context, schema);
4165
+ return schema.items.map((schema2, index) => FromType8(context, schema2, value[index]));
4166
+ }
4167
+
4168
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/repair/from_union.mjs
4169
+ init_esm_shims();
4170
+
4171
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/shared/union_score_select.mjs
4172
+ init_esm_shims();
4173
+ function Deref(context, type, value) {
4174
+ return IsRef(type) ? guard_exports.HasPropertyKey(context, type.$ref) ? Deref(context, context[type.$ref], value) : (() => {
4175
+ throw new Error("Unable to Deref target");
4176
+ })() : type;
4177
+ }
4178
+ function ScoreVariant(context, type, value) {
4179
+ if (!(IsObject(type) && guard_exports.IsObject(value)))
4180
+ return 0;
4181
+ const keys = guard_exports.Keys(value);
4182
+ const entries = guard_exports.Entries(type.properties);
4183
+ return entries.reduce((result, [key, schema]) => {
4184
+ const literal = IsLiteral(schema) && guard_exports.IsEqual(schema.const, value[key]) ? 100 : 0;
4185
+ const checks = Check2(context, schema, value[key]) ? 10 : 0;
4186
+ const exists = keys.includes(key) ? 1 : 0;
4187
+ return result + (literal + checks + exists);
4188
+ }, 0);
4189
+ }
4190
+ function UnionScoreSelect(context, type, value) {
4191
+ const schemas = type.anyOf.map((schema) => Deref(context, schema, value));
4192
+ let [select, best] = [schemas[0], 0];
4193
+ for (const schema of schemas) {
4194
+ const score = ScoreVariant(context, schema, value);
4195
+ if (score > best) {
4196
+ select = schema;
4197
+ best = score;
4198
+ }
4199
+ }
4200
+ return select;
4201
+ }
4202
+
4203
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/repair/from_union.mjs
4204
+ function RepairUnion(context, type, value) {
4205
+ const union = Union(Flatten(type.anyOf));
4206
+ const schema = UnionScoreSelect(context, union, value);
4207
+ return FromType8(context, schema, value);
4208
+ }
4209
+ function FromUnion7(context, type, value) {
4210
+ if (Check2(context, type, value))
4211
+ return Clone2(value);
4212
+ if (IsDefault(type))
4213
+ return Create(context, type);
4214
+ return RepairUnion(context, type, value);
4215
+ }
4216
+
4217
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/repair/from_unknown.mjs
4218
+ init_esm_shims();
4219
+ function FromUnknown2(context, type, value) {
4220
+ if (Check2(context, type, value))
4221
+ return value;
4222
+ const converted = Convert(context, type, value);
4223
+ if (Check2(context, type, converted))
4224
+ return converted;
4225
+ return Create(context, type);
4226
+ }
4227
+
4228
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/repair/from_type.mjs
4229
+ function AssertRepairableValue(context, type, value) {
4230
+ const unsupported = globals_exports.IsDate(value) || globals_exports.IsMap(value) || globals_exports.IsSet(value) || globals_exports.IsTypeArray(value) || guard_exports.IsConstructor(value) || guard_exports.IsFunction(value);
4231
+ if (unsupported) {
4232
+ throw new RepairError(context, type, value, "Value is not repairable");
4233
+ }
4234
+ }
4235
+ function AssertRepairableType(context, type, value) {
4236
+ const unsupported = IsConstructor(type) || IsFunction(type) || IsNever(type);
4237
+ if (unsupported) {
4238
+ throw new RepairError(context, type, value, "Type is not repairable");
4239
+ }
4240
+ }
4241
+ function FinalizeRepair(context, type, repaired) {
4242
+ return IsRefine(type) ? Check2(context, type, repaired) ? repaired : Create(context, type) : repaired;
4243
+ }
4244
+ function FromType8(context, type, value) {
4245
+ AssertRepairableValue(context, type, value);
4246
+ AssertRepairableType(context, type, value);
4247
+ const repaired = IsArray(type) ? FromArray9(context, type, value) : IsEnum(type) ? FromEnum3(context, type, value) : IsIntersect(type) ? FromIntersect7(context, type, value) : IsObject(type) ? FromObject9(context, type, value) : IsRecord(type) ? FromRecord7(context, type, value) : IsRef(type) ? FromRef7(context, type, value) : IsTemplateLiteral(type) ? FromTemplateLiteral3(context, type, value) : IsTuple(type) ? FromTuple7(context, type, value) : IsUnion(type) ? FromUnion7(context, type, value) : FromUnknown2(context, type, value);
4248
+ return FinalizeRepair(context, type, repaired);
4249
+ }
4250
+
4251
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/repair/repair.mjs
4252
+ function Repair(...args) {
4253
+ const [context, type, value] = arguments_exports.Match(args, {
4254
+ 3: (context2, type2, value2) => [context2, type2, value2],
4255
+ 2: (type2, value2) => [{}, type2, value2]
4256
+ });
4257
+ const repaired = FromType8(context, type, value);
4258
+ Assert(context, type, repaired);
4259
+ return repaired;
4260
+ }
4261
+
4262
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/index.mjs
4263
+ init_esm_shims();
4264
+
4265
+ // node_modules/.pnpm/typebox@1.3.0/node_modules/typebox/build/value/shared/index.mjs
4266
+ init_esm_shims();
4267
+
4268
+ export {
4269
+ value_exports
4270
+ };
4271
+ //# sourceMappingURL=chunk-SER7RRAE.js.map