@inkeep/open-knowledge 0.8.0-beta.9 → 0.8.0

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 (436) hide show
  1. package/dist/alias-JE7RI5QX-DvXqsNuT.mjs +1 -0
  2. package/dist/assets/skills/discovery/SKILL.md +1 -1
  3. package/dist/assets/skills/project/SKILL.md +5 -3
  4. package/dist/awk2-POPGKRAI-DjdS5H9u.mjs +1 -0
  5. package/dist/{banner-BEKwr_uU.mjs → banner-D39r_H1d.mjs} +2 -2
  6. package/dist/base64-4YMZCVJ5-KM4zCU91.mjs +1 -0
  7. package/dist/basename-AA2KJYZQ-623KrTZh.mjs +1 -0
  8. package/dist/bash-IJWYRKFO-Czh-Vt61.mjs +1 -0
  9. package/dist/{build-fAc55Z_L.mjs → build-CHU3LuiR.mjs} +1 -1
  10. package/dist/build-DxnNKCqf.mjs +1 -0
  11. package/dist/cat-RDUMLXKC-BcPFfXNy.mjs +1 -0
  12. package/dist/chmod-SYMGL4JA-DNQ-_FB-.mjs +1 -0
  13. package/dist/{chunk-24IMIIXA-_PX4ITYZ.mjs → chunk-24IMIIXA-B6yIPkk2.mjs} +2 -2
  14. package/dist/{chunk-3THT3N7L-DrzOuTpA.mjs → chunk-3THT3N7L-DztAF386.mjs} +1 -1
  15. package/dist/{chunk-44UOCSGV-BbZqjKvt.mjs → chunk-44UOCSGV-CaFxJDHm.mjs} +1 -1
  16. package/dist/{chunk-5QMZ5MUS-SLhNX8t9.mjs → chunk-5QMZ5MUS-CAp625aG.mjs} +2 -2
  17. package/dist/{chunk-62RKD26F-Xy18vjr1.mjs → chunk-62RKD26F-CBIDfuTL.mjs} +2 -2
  18. package/dist/{chunk-A4JSPFCI-D3-Pg2lq.mjs → chunk-A4JSPFCI-v5lUtffG.mjs} +2 -2
  19. package/dist/{chunk-A5O5YHGN-DQP-O5US.mjs → chunk-A5O5YHGN-DvJz5Cpw.mjs} +2 -2
  20. package/dist/{chunk-BBXLRYSX-Cxoye6wj.mjs → chunk-BBXLRYSX-DHx5dxhT.mjs} +2 -2
  21. package/dist/{chunk-BRGMQKJV-Dr9Z7G7y.mjs → chunk-BRGMQKJV-CUNiOrRZ.mjs} +2 -2
  22. package/dist/{chunk-CR5AFCPT-BBd9E4Jo.mjs → chunk-CR5AFCPT-BWXo8X-o.mjs} +2 -2
  23. package/dist/{chunk-CWQS3NFK-BQ5SUtd7.mjs → chunk-CWQS3NFK-Co4ALolT.mjs} +1 -1
  24. package/dist/{chunk-D6CWQ5DW-BudNEuOo.mjs → chunk-D6CWQ5DW-Cik2LGX1.mjs} +2 -2
  25. package/dist/{chunk-DXB73IDG-DfmyzFzL.mjs → chunk-DXB73IDG-DIKSLkPq.mjs} +1 -1
  26. package/dist/{chunk-F55TLFGB-CezmwFJN.mjs → chunk-F55TLFGB-oTuag-aK.mjs} +2 -2
  27. package/dist/{chunk-FEIOJCZD-Vm1q1kLH.mjs → chunk-FEIOJCZD-C25Und0M.mjs} +2 -2
  28. package/dist/{chunk-GFQRA5P5-CkMj9l7f.mjs → chunk-GFQRA5P5-DnjwTqP3.mjs} +1 -1
  29. package/dist/{chunk-GOV5EKKI-DNFJiYJI.mjs → chunk-GOV5EKKI-i-yw_7Ty.mjs} +2 -2
  30. package/dist/{chunk-HWBSOZZR-CFFhOzgy.mjs → chunk-HWBSOZZR-LxiTl7Bc.mjs} +3 -3
  31. package/dist/{chunk-I57KEIP3-C9JW7Nfp.mjs → chunk-I57KEIP3-DwNGEmJW.mjs} +2 -2
  32. package/dist/{chunk-IPJHKYVM-orb6vjJ1.mjs → chunk-IPJHKYVM-C3IodQq7.mjs} +1 -1
  33. package/dist/{chunk-J642UCRS-D2hPh3Cf.mjs → chunk-J642UCRS-DuJ82Ao2.mjs} +2 -2
  34. package/dist/{chunk-LPQPILI2-8E8WwnE3.mjs → chunk-LPQPILI2-CfDX1Tyv.mjs} +2 -2
  35. package/dist/{chunk-MDDMCKUK-DD6paciv.mjs → chunk-MDDMCKUK-BrBgeH_z.mjs} +2 -2
  36. package/dist/{chunk-MIZPJHVH-BPfxJ3C2.mjs → chunk-MIZPJHVH-D3ET6RI_.mjs} +2 -2
  37. package/dist/{chunk-MLXIYONF-CQ5Q9uTP.mjs → chunk-MLXIYONF-dOe6Iqcc.mjs} +2 -2
  38. package/dist/{chunk-NAERJDUW-B3fduMx2.mjs → chunk-NAERJDUW-CYdostkt.mjs} +2 -2
  39. package/dist/{chunk-NUYSJFDK-BVw8oahq.mjs → chunk-NUYSJFDK-CU1FKadr.mjs} +2 -2
  40. package/dist/{chunk-NYQYO467-nPa6J2DD.mjs → chunk-NYQYO467-DUxnOnNG.mjs} +2 -2
  41. package/dist/{chunk-OARHFVLG-DGpNgI6K.mjs → chunk-OARHFVLG-CpUL83N9.mjs} +2 -2
  42. package/dist/{chunk-OCLXQMOG-Bktk24jL.mjs → chunk-OCLXQMOG-LAs82g00.mjs} +2 -2
  43. package/dist/{chunk-OCS6LSEM-WwUGJ0am.mjs → chunk-OCS6LSEM-y5pQiBQp.mjs} +2 -2
  44. package/dist/{chunk-OJDRYQWQ-D4lSWh0K.mjs → chunk-OJDRYQWQ-ikvLWpfV.mjs} +1 -1
  45. package/dist/{chunk-OL3S66CO-DtsweltN.mjs → chunk-OL3S66CO-DjFShiWt.mjs} +2 -2
  46. package/dist/{chunk-PBXLG62G-Ci7A7XGA.mjs → chunk-PBXLG62G-CU755yEQ.mjs} +2 -2
  47. package/dist/{chunk-R6VWJ2ZL-DSqbA7Rj.mjs → chunk-R6VWJ2ZL-FwG_Za20.mjs} +1 -1
  48. package/dist/{chunk-SYMJJMQ4-0QtKvQIP.mjs → chunk-SYMJJMQ4-tl6Dz6VW.mjs} +2 -2
  49. package/dist/{chunk-T56QNPHK-DjHqXy9T.mjs → chunk-T56QNPHK-Dzjonwlk.mjs} +2 -2
  50. package/dist/{chunk-TLSUDHID-6EWOySH2.mjs → chunk-TLSUDHID-DYvzalvd.mjs} +2 -2
  51. package/dist/{chunk-TOMNU26N-BjLxRX8P.mjs → chunk-TOMNU26N-DYqwg_75.mjs} +2 -2
  52. package/dist/{chunk-UNYNJIFU-BbdoO4yb.mjs → chunk-UNYNJIFU-B6KF1Gqq.mjs} +3 -3
  53. package/dist/{chunk-VLGZJRPG-B678hnuU.mjs → chunk-VLGZJRPG-ChVasMna.mjs} +2 -2
  54. package/dist/{chunk-XHM67O4N-Cd7Fiqsb.mjs → chunk-XHM67O4N-akBjDPaR.mjs} +1 -1
  55. package/dist/{chunk-XORM457F-BAW3OKIy.mjs → chunk-XORM457F-BlSrSdGX.mjs} +2 -2
  56. package/dist/{chunk-YCFVLTST-PFJX6AMj.mjs → chunk-YCFVLTST-uJkMN44i.mjs} +2 -2
  57. package/dist/{chunk-YFG2CMIF-CVDz5Fsh.mjs → chunk-YFG2CMIF-DYVCRkoM.mjs} +2 -2
  58. package/dist/{chunk-YNYSPYQ5-Dq-BWW-f.mjs → chunk-YNYSPYQ5-DesxOVHh.mjs} +1 -1
  59. package/dist/{chunk-YS3AZT3J-DRSVwRFh.mjs → chunk-YS3AZT3J-DqU1hDNV.mjs} +2 -2
  60. package/dist/{chunk-YTNYSM6T-KUvMCIKS.mjs → chunk-YTNYSM6T-ChSQxUVG.mjs} +2 -2
  61. package/dist/{chunk-Z6LRHWXI-CF_r-CgG.mjs → chunk-Z6LRHWXI-CEAGkbzj.mjs} +2 -2
  62. package/dist/clear-5CZ5X4YR-DQDNPZFX.mjs +1 -0
  63. package/dist/cli.d.mts +5 -1
  64. package/dist/cli.mjs +45 -42
  65. package/dist/{colors-D0wh7lK1.mjs → colors-BtKMHmBX.mjs} +1 -1
  66. package/dist/colors-t2HkW8lF.mjs +1 -0
  67. package/dist/column-WLPMMSTS-D7ZdQMYX.mjs +1 -0
  68. package/dist/comm-5SLSESQG-D314YMTX.mjs +1 -0
  69. package/dist/config-schema.json +21 -1
  70. package/dist/config.project-local.schema.json +5 -1
  71. package/dist/config.user.schema.json +21 -1
  72. package/dist/constants-76Uvqjmy.mjs +2 -0
  73. package/dist/cp-XOYR4ABJ-BoeqT96E.mjs +1 -0
  74. package/dist/{curl-47BFPSFW-Dq2QRfS5.mjs → curl-47BFPSFW-CseKVLFy.mjs} +2 -2
  75. package/dist/cut-OPC3VAGB-BduNLBmG.mjs +1 -0
  76. package/dist/date-DD7FVA2V-CXtS-UgC.mjs +1 -0
  77. package/dist/diff-HJF2MPDN-BIBcfzYf.mjs +1 -0
  78. package/dist/dirname-LEMTZZFS-y-nYlas9.mjs +1 -0
  79. package/dist/dist-CL9tjej4.mjs +1 -0
  80. package/dist/{dist-Cn5JHf5F.mjs → dist-DUA-uDSk.mjs} +230 -92
  81. package/dist/du-WO2ENHXQ-DxBFDhE9.mjs +1 -0
  82. package/dist/echo-O45JWWI2-D2qFOnG-.mjs +1 -0
  83. package/dist/env-5EPCWSXR-3enSMuUq.mjs +1 -0
  84. package/dist/expand-DTNXU4LQ-ByrWF7LC.mjs +1 -0
  85. package/dist/expansion-ENLSRCXJ-ZEK-CtLJ.mjs +1 -0
  86. package/dist/expr-5T3UU5KE-DslbMHGH.mjs +1 -0
  87. package/dist/file-ZIGAJ4YS-5ydJB32I.mjs +1 -0
  88. package/dist/find-TPUOAIUQ-B-6hQsZ1.mjs +1 -0
  89. package/dist/{flag-coverage-QT4N2Z44-CQ2g5NLf.mjs → flag-coverage-QT4N2Z44-BWjM15GF.mjs} +2 -2
  90. package/dist/fold-LDSORVYE-BcrX-J9k.mjs +1 -0
  91. package/dist/{gh-detect-8zY2NNuZ.mjs → gh-detect-DIxiI-Um.mjs} +2 -2
  92. package/dist/git-handle-BJwB5EBp-D5YTDzvd.mjs +1 -0
  93. package/dist/git-handle-uz8TUFSi-BRV63-ar.mjs +10 -0
  94. package/dist/grep-3AIAIJVR-Gk5ggptS.mjs +1 -0
  95. package/dist/gzip-AQXSGOVS-DVhom50G.mjs +1 -0
  96. package/dist/head-HT2B6D2J-ahSJqSiq.mjs +1 -0
  97. package/dist/help-VVWX7SA5-DWuklTmV.mjs +1 -0
  98. package/dist/history-J4QRNGRO-DF-FzAzf.mjs +1 -0
  99. package/dist/hostname-BK6HG2DE-BduSSI6z.mjs +1 -0
  100. package/dist/html-to-markdown-TFCECAGV-Dyh1D0fg.mjs +1 -0
  101. package/dist/index.d.mts +28 -17
  102. package/dist/index.mjs +1 -1
  103. package/dist/init-BXz-SZwQ.mjs +1 -0
  104. package/dist/init-C-YMpYNY.mjs +281 -0
  105. package/dist/{is-object-BXWpSxBI.mjs → is-object-C-4FJ0rP.mjs} +1 -1
  106. package/dist/join-GG2LDHE5-DbbozPoG.mjs +1 -0
  107. package/dist/jq-ODXZBPLY-DDNFO29H.mjs +1 -0
  108. package/dist/{js-exec-M6UR76J5-BssUQ3SC.mjs → js-exec-M6UR76J5-Cw-W_H_2.mjs} +4 -4
  109. package/dist/{libesm-YL3Bqolr.mjs → libesm-B_qVEpZ1.mjs} +1 -1
  110. package/dist/ln-4TRFBYAT-D-c9GUlv.mjs +1 -0
  111. package/dist/{loader-CGnAxV-z.mjs → loader-BS97KMJd.mjs} +3 -3
  112. package/dist/loader-DuFZD8NM.mjs +1 -0
  113. package/dist/ls-KSXFZCWH-Cpvwn_RB.mjs +1 -0
  114. package/dist/mcp-migrate-event-BF8ILHwp.mjs +2 -0
  115. package/dist/md5sum-INMIK4DX-ysJE_fRH.mjs +1 -0
  116. package/dist/mkdir-TDEMSB6C-Doj-uc1V.mjs +1 -0
  117. package/dist/mv-Z6MORUFL-CB3JJwR7.mjs +1 -0
  118. package/dist/nl-U5YJDM32-DNpHPr0D.mjs +1 -0
  119. package/dist/od-VJEF2UR5-CU4HUmLC.mjs +1 -0
  120. package/dist/paste-7N6AFSDS-CRLhW5JD.mjs +1 -0
  121. package/dist/preview-C6QYNQW4.mjs +1 -0
  122. package/dist/{preview-C6NAItZb.mjs → preview-v_FnHM1p.mjs} +2 -2
  123. package/dist/printf-CX64KX2P-BRDA91sv.mjs +1 -0
  124. package/dist/public/assets/{ActivityModeContent-vlSGPi7K.js → ActivityModeContent-74fud2PX.js} +2 -2
  125. package/dist/public/assets/{ConsentDialogBody-CueZnjSB.js → ConsentDialogBody-CGOr8j6S.js} +1 -1
  126. package/dist/public/assets/DocumentContext-D0hMZvqt.js +58 -0
  127. package/dist/public/assets/{GraphPanel-B-LlGAGO.js → GraphPanel-CAKYBrh_.js} +2 -2
  128. package/dist/public/assets/{McpConsentDialogBody-BK75h2_n.js → McpConsentDialogBody-zLI2c1sC.js} +1 -1
  129. package/dist/public/assets/SettingsDialogBody-CA5IZw_a.js +7 -0
  130. package/dist/public/assets/SourceEditor-Y1rYp83q.js +2 -0
  131. package/dist/public/assets/{_baseFor-CVV1DSgL.js → _baseFor-B3FCzyNW.js} +1 -1
  132. package/dist/public/assets/agent-presence-DxGcS3q2.js +1 -0
  133. package/dist/public/assets/{arc-DoxD41WW.js → arc-GOD6SLHR.js} +1 -1
  134. package/dist/public/assets/architecture-YZFGNWBL-B2pJrg2X.js +1 -0
  135. package/dist/public/assets/{architectureDiagram-Q4EWVU46-Umhu0V8h.js → architectureDiagram-Q4EWVU46-CIVh0TLx.js} +1 -1
  136. package/dist/public/assets/{blockDiagram-DXYQGD6D-C1_NJWhg.js → blockDiagram-DXYQGD6D-Cg-UHasz.js} +1 -1
  137. package/dist/public/assets/{c4Diagram-AHTNJAMY-Bi89hr0b.js → c4Diagram-AHTNJAMY-KFeHAAOO.js} +1 -1
  138. package/dist/public/assets/channel-BqqURnVG.js +1 -0
  139. package/dist/public/assets/{chunk-2KRD3SAO-uai9wz3V.js → chunk-2KRD3SAO-ChBquZUZ.js} +1 -1
  140. package/dist/public/assets/{chunk-336JU56O-Dw21nEIl.js → chunk-336JU56O-DHqaXNrn.js} +2 -2
  141. package/dist/public/assets/chunk-426QAEUC-CuPmuy8t.js +1 -0
  142. package/dist/public/assets/{chunk-4BX2VUAB-BTctgoF3.js → chunk-4BX2VUAB-Dagml-_v.js} +1 -1
  143. package/dist/public/assets/{chunk-4TB4RGXK-Dzo903ee.js → chunk-4TB4RGXK-QLafKs7A.js} +1 -1
  144. package/dist/public/assets/chunk-55IACEB6-BRPDx2aU.js +1 -0
  145. package/dist/public/assets/{chunk-5FUZZQ4R-BIiTrWwI.js → chunk-5FUZZQ4R-DoG5zk7O.js} +1 -1
  146. package/dist/public/assets/{chunk-5PVQY5BW-CPq9PJ04.js → chunk-5PVQY5BW--zDnbXdQ.js} +1 -1
  147. package/dist/public/assets/{chunk-67CJDMHE-DiSIolj4.js → chunk-67CJDMHE-BDDJCVvR.js} +1 -1
  148. package/dist/public/assets/{chunk-7N4EOEYR-Yp7Nf16N.js → chunk-7N4EOEYR-DcM-tXJf.js} +1 -1
  149. package/dist/public/assets/{chunk-AA7GKIK3--s2NNuet.js → chunk-AA7GKIK3-CIk9DOam.js} +1 -1
  150. package/dist/public/assets/{chunk-BSJP7CBP-BrRqu__W.js → chunk-BSJP7CBP-CC13npHT.js} +1 -1
  151. package/dist/public/assets/{chunk-CIAEETIT-BUzaopy6.js → chunk-CIAEETIT-B7rpgB3I.js} +1 -1
  152. package/dist/public/assets/{chunk-EDXVE4YY-CHezIzxM.js → chunk-EDXVE4YY-BfT15Ufb.js} +1 -1
  153. package/dist/public/assets/{chunk-ENJZ2VHE-BEqGi6Ge.js → chunk-ENJZ2VHE-DEtEhITq.js} +1 -1
  154. package/dist/public/assets/{chunk-FMBD7UC4-DEzvlUl3.js → chunk-FMBD7UC4-DXl_nUYs.js} +1 -1
  155. package/dist/public/assets/{chunk-FOC6F5B3-BtjWNx10.js → chunk-FOC6F5B3-wEKzMqND.js} +1 -1
  156. package/dist/public/assets/{chunk-ICPOFSXX-qb0R443H.js → chunk-ICPOFSXX-C8AElYY_.js} +2 -2
  157. package/dist/public/assets/{chunk-K5T4RW27-CfU2wPmV.js → chunk-K5T4RW27-DcJgbIMU.js} +1 -1
  158. package/dist/public/assets/{chunk-KGLVRYIC-BV1pDifD.js → chunk-KGLVRYIC-kNC4I9ls.js} +1 -1
  159. package/dist/public/assets/{chunk-LIHQZDEY-C40dIbib.js → chunk-LIHQZDEY-B0zYcYPV.js} +1 -1
  160. package/dist/public/assets/{chunk-ORNJ4GCN-8cFqvOFf.js → chunk-ORNJ4GCN-S_3Y_0FS.js} +1 -1
  161. package/dist/public/assets/{chunk-OYMX7WX6-Dtqc9bJK.js → chunk-OYMX7WX6-CX3nrwxJ.js} +1 -1
  162. package/dist/public/assets/chunk-QZHKN3VN-CTZ4su3-.js +1 -0
  163. package/dist/public/assets/{chunk-U2HBQHQK-CQLzJTzg.js → chunk-U2HBQHQK-CfAyyLJz.js} +1 -1
  164. package/dist/public/assets/{chunk-X2U36JSP-Ckk8Si9X.js → chunk-X2U36JSP-CmACymAN.js} +1 -1
  165. package/dist/public/assets/{chunk-XPW4576I-CLO5Bb_q.js → chunk-XPW4576I-D1s3NdKZ.js} +1 -1
  166. package/dist/public/assets/{chunk-YZCP3GAM-D01ONOQf.js → chunk-YZCP3GAM-CiWxV9XS.js} +1 -1
  167. package/dist/public/assets/{chunk-ZZ45TVLE-iYlFrL8a.js → chunk-ZZ45TVLE-B7t5_MqN.js} +1 -1
  168. package/dist/public/assets/classDiagram-6PBFFD2Q-DrN_pUa5.js +1 -0
  169. package/dist/public/assets/classDiagram-v2-HSJHXN6E-C1MJ1Ukt.js +1 -0
  170. package/dist/public/assets/clone-CecJCxEU.js +1 -0
  171. package/dist/public/assets/config-validation-events-CpTwSaaY.js +12 -0
  172. package/dist/public/assets/{cose-bilkent-S5V4N54A-6FB6GAoi.js → cose-bilkent-S5V4N54A-BjJ-OKPr.js} +1 -1
  173. package/dist/public/assets/{dagre-BawjCOce.js → dagre-BuFRtOcC.js} +1 -1
  174. package/dist/public/assets/{dagre-KV5264BT-DiqfdMLu.js → dagre-KV5264BT-BpBW6R71.js} +1 -1
  175. package/dist/public/assets/{diagram-5BDNPKRD-C2HFWivb.js → diagram-5BDNPKRD-B5phtkJp.js} +1 -1
  176. package/dist/public/assets/{diagram-G4DWMVQ6-fU1Grx9M.js → diagram-G4DWMVQ6-tjReW6yx.js} +1 -1
  177. package/dist/public/assets/{diagram-MMDJMWI5-Dew67RHi.js → diagram-MMDJMWI5-b4CgKryF.js} +1 -1
  178. package/dist/public/assets/{diagram-TYMM5635-Bs72rW03.js → diagram-TYMM5635-D5B0g2lj.js} +1 -1
  179. package/dist/public/assets/{dist-4Gx7SLsd.js → dist-CadHdAvi.js} +1 -1
  180. package/dist/public/assets/{dist-CVgnIZoV.js → dist-CdAufVHw.js} +1 -1
  181. package/dist/public/assets/{dist-C7UlNfyl.js → dist-Cwt7KtW7.js} +1 -1
  182. package/dist/public/assets/{dist-DNUHV99F.js → dist-DRBAXDc3.js} +1 -1
  183. package/dist/public/assets/{dist-BxWfPtC6.js → dist-DkR43q3h.js} +1 -1
  184. package/dist/public/assets/{dist-DDdDbjlC.js → dist-sw9fzKjM.js} +1 -1
  185. package/dist/public/assets/{dist-CpBY4tsd.js → dist-y5PvfJVO.js} +1 -1
  186. package/dist/public/assets/{erDiagram-SMLLAGMA-VRRm4B7K.js → erDiagram-SMLLAGMA-CRJz10Jv.js} +1 -1
  187. package/dist/public/assets/{flatten-DFiFicpD.js → flatten-BWAerz3O.js} +1 -1
  188. package/dist/public/assets/{flowDiagram-DWJPFMVM-Q_gtUOx-.js → flowDiagram-DWJPFMVM-BDCJTgJ7.js} +1 -1
  189. package/dist/public/assets/{ganttDiagram-T4ZO3ILL-zrPBnw3N.js → ganttDiagram-T4ZO3ILL-cPQKlGYc.js} +1 -1
  190. package/dist/public/assets/gitGraph-7Q5UKJZL-BMann5g7.js +1 -0
  191. package/dist/public/assets/{gitGraphDiagram-UUTBAWPF-EX3kOeOG.js → gitGraphDiagram-UUTBAWPF-BMyjc352.js} +1 -1
  192. package/dist/public/assets/{graphlib-CZnU8zlt.js → graphlib-BU8FnRz1.js} +1 -1
  193. package/dist/public/assets/index-CUIPiS16.css +1 -0
  194. package/dist/public/assets/index-DsiNPb9w.js +1914 -0
  195. package/dist/public/assets/info-OMHHGYJF-CKMkwFH6.js +1 -0
  196. package/dist/public/assets/{infoDiagram-42DDH7IO-eyKsqOVi.js → infoDiagram-42DDH7IO-BZ6v5y-j.js} +1 -1
  197. package/dist/public/assets/{isEmpty-gGVpRSDa.js → isEmpty-Cairwk5V.js} +1 -1
  198. package/dist/public/assets/isSymbol-BKUBGC2u.js +1 -0
  199. package/dist/public/assets/{ishikawaDiagram-UXIWVN3A-k-QHjesL.js → ishikawaDiagram-UXIWVN3A-DA7_P2Up.js} +1 -1
  200. package/dist/public/assets/{journeyDiagram-VCZTEJTY-Cvl0YdFw.js → journeyDiagram-VCZTEJTY-CzZoB161.js} +1 -1
  201. package/dist/public/assets/{kanban-definition-6JOO6SKY-Dcm2fJo0.js → kanban-definition-6JOO6SKY-DKg7pXv1.js} +1 -1
  202. package/dist/public/assets/{line-CcNx577i.js → line-DGc-MCyQ.js} +1 -1
  203. package/dist/public/assets/{linear-faBQNtcz.js → linear-D6wzOaQP.js} +1 -1
  204. package/dist/public/assets/{mermaid-parser.core-CFsvu03i.js → mermaid-parser.core-Bm2u0Ges.js} +2 -2
  205. package/dist/public/assets/{mermaid.core-B_sYDyB7.js → mermaid.core-DRx0wZe0.js} +3 -3
  206. package/dist/public/assets/{mindmap-definition-QFDTVHPH-DN1InlYG.js → mindmap-definition-QFDTVHPH-C9GRZxO6.js} +1 -1
  207. package/dist/public/assets/{now-D_m-3Vjm.js → now-BN_Nj6nz.js} +1 -1
  208. package/dist/public/assets/{ordinal-BLFwWMHf.js → ordinal-Dk6d5Y-0.js} +1 -1
  209. package/dist/public/assets/packet-4T2RLAQJ-DXn_0fd3.js +1 -0
  210. package/dist/public/assets/pie-ZZUOXDRM-BdZBZPW9.js +1 -0
  211. package/dist/public/assets/{pieDiagram-DEJITSTG-CfGSJlNk.js → pieDiagram-DEJITSTG-L6I3ft9Z.js} +1 -1
  212. package/dist/public/assets/prop-types-vr6qWjMf.js +500 -0
  213. package/dist/public/assets/{propagation-api-CobBjsTC.js → propagation-api-3kmMXRwS.js} +1 -1
  214. package/dist/public/assets/{quadrantDiagram-34T5L4WZ-C81SZKqU.js → quadrantDiagram-34T5L4WZ-Dp2IeEPC.js} +1 -1
  215. package/dist/public/assets/radar-PYXPWWZC-yUE2OrUV.js +1 -0
  216. package/dist/public/assets/{reduce-DmI60TfL.js → reduce-CSWSFqzz.js} +1 -1
  217. package/dist/public/assets/{requirementDiagram-MS252O5E-B3GaR6ry.js → requirementDiagram-MS252O5E-BxNWyIZg.js} +1 -1
  218. package/dist/public/assets/{sankeyDiagram-XADWPNL6-Cnw0G0jm.js → sankeyDiagram-XADWPNL6-CRn0_xkw.js} +1 -1
  219. package/dist/public/assets/{sequenceDiagram-FGHM5R23-CmtiFMPf.js → sequenceDiagram-FGHM5R23-Drkjb1j4.js} +1 -1
  220. package/dist/public/assets/{src-DOAilbaA.js → src-DZeiyxTL.js} +1 -1
  221. package/dist/public/assets/{stateDiagram-FHFEXIEX-YrnzMnvb.js → stateDiagram-FHFEXIEX-BBUFKS0u.js} +1 -1
  222. package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-BtYsWsIg.js +1 -0
  223. package/dist/public/assets/{target-navigation-intent-DQPHklQL.js → target-navigation-intent-BTTe7RwN.js} +1 -1
  224. package/dist/public/assets/{telemetry-impl-BiwhAvRS.js → telemetry-impl-DPRMO_b_.js} +2 -2
  225. package/dist/public/assets/{timeline-definition-GMOUNBTQ-BNvHUVoa.js → timeline-definition-GMOUNBTQ-CLoe9y-z.js} +1 -1
  226. package/dist/public/assets/toggle-group-BKjtvTFY.js +1 -0
  227. package/dist/public/assets/treeView-SZITEDCU-BjJ_gnFc.js +1 -0
  228. package/dist/public/assets/treemap-W4RFUUIX-DiV984fD.js +1 -0
  229. package/dist/public/assets/typing-burst-detector-RJxLgd3M.js +2 -0
  230. package/dist/public/assets/{vennDiagram-DHZGUBPP--cd7swWt.js → vennDiagram-DHZGUBPP-q2zdiy4F.js} +1 -1
  231. package/dist/public/assets/wardley-RL74JXVD-DbPCtCHV.js +1 -0
  232. package/dist/public/assets/{wardleyDiagram-NUSXRM2D-CMZwcIpy.js → wardleyDiagram-NUSXRM2D-Njg6YHso.js} +1 -1
  233. package/dist/public/assets/{xychartDiagram-5P7HB3ND-DI9blb-P.js → xychartDiagram-5P7HB3ND-Ct8Wgp45.js} +1 -1
  234. package/dist/public/index.html +23 -26
  235. package/dist/pwd-D4OZ7N27-DOBMwDAQ.mjs +1 -0
  236. package/dist/{python3-AUFTPCU6-BSuL_Nsg.mjs → python3-AUFTPCU6-C02r6EXI.mjs} +3 -3
  237. package/dist/readlink-MI4GCHJF-C7jxdmka.mjs +1 -0
  238. package/dist/{repair-launch-json-D1Xg8LAy.mjs → repair-launch-json-CgdePX8D.mjs} +2 -2
  239. package/dist/repair-mcp-configs-BMbDnGra.mjs +2 -0
  240. package/dist/{repair-skills-DL08j-QR.mjs → repair-skills-B0MyM-S8.mjs} +2 -2
  241. package/dist/repair-skills-B75azgiA.mjs +1 -0
  242. package/dist/rev-XOSYPP45-BrzxRIO9.mjs +1 -0
  243. package/dist/rg-FOQSCCX3-D0ctWk6O.mjs +1 -0
  244. package/dist/rm-RTZG23RL-DZt78fCD.mjs +1 -0
  245. package/dist/rmdir-XTQXT7RK-CJJKrOdm.mjs +1 -0
  246. package/dist/schemas/v0/config.project-local.schema.json +5 -1
  247. package/dist/schemas/v0/config.user.schema.json +21 -1
  248. package/dist/sed-VFTTATXJ-Cv8KiT35.mjs +1 -0
  249. package/dist/seq-RN5ZUASB-BD6p5vId.mjs +1 -0
  250. package/dist/server-lock-BIY3RMaC-CfCHCMTe.mjs +2 -0
  251. package/dist/server-lock-v2ktHD7l-C-3wEnoU.mjs +1 -0
  252. package/dist/sha1sum-VJPNLNU6-DukJfnER.mjs +1 -0
  253. package/dist/sha256sum-PI32XWXY-QlLE_NGo.mjs +1 -0
  254. package/dist/sleep-VZFPZFWA-gwZmptDS.mjs +1 -0
  255. package/dist/sort-DCNRDA7U-Bnmzizlk.mjs +1 -0
  256. package/dist/split-SITCSYCZ-NsOC8k0n.mjs +1 -0
  257. package/dist/sqlite3-56UMWEY3-D2ymLPIL.mjs +1 -0
  258. package/dist/src-BomuiQtB.mjs +2 -0
  259. package/dist/start-BOBY1H-7.mjs +1 -0
  260. package/dist/{start-0fqf2-7A.mjs → start-D2Uxztu5.mjs} +2 -2
  261. package/dist/stat-BT5A227F-Di81wqB8.mjs +1 -0
  262. package/dist/strings-7PLOGTPD-DKTG3t3M.mjs +1 -0
  263. package/dist/tac-SJGXQ4T2-CMuGqDl5.mjs +1 -0
  264. package/dist/tail-S5ULNTJU-CxhswWhX.mjs +1 -0
  265. package/dist/tar-ANUBEFJY-BajYpRKO.mjs +1 -0
  266. package/dist/tee-O7VXZDCO-DwJ0hUpW.mjs +1 -0
  267. package/dist/time-DEUO3QV2-W5vzutuD.mjs +1 -0
  268. package/dist/timeout-VRKMCG72-wW3XOtt7.mjs +1 -0
  269. package/dist/touch-DX2IJOQ4-C7eGjNGd.mjs +1 -0
  270. package/dist/tr-2HXZRDSW-DlafN6SW.mjs +1 -0
  271. package/dist/tree-LYXBS7DC-Ou8JkGQ1.mjs +1 -0
  272. package/dist/true-WHJNXCHG-B4B4ZHqp.mjs +1 -0
  273. package/dist/unexpand-RGTMIGZM-D6xZmTWp.mjs +1 -0
  274. package/dist/uniq-SUNANL47-Ce9L4IzE.mjs +1 -0
  275. package/dist/wc-TQB3VNOX-dwG38U4n.mjs +1 -0
  276. package/dist/which-XZHEH76L-Cw9SQliE.mjs +1 -0
  277. package/dist/whoami-DGKU3D2X-hzRI9gvz.mjs +1 -0
  278. package/dist/{write-project-skill-BKowG4Lg.mjs → write-project-skill-grQBEqMb.mjs} +2 -2
  279. package/dist/xan-BXDXYEIB-loWv9Mk3.mjs +1 -0
  280. package/dist/xan-view-ECQUO7AJ-8Lt55NoE.mjs +1 -0
  281. package/dist/xargs-I6EZUCYF-CG6axhMW.mjs +1 -0
  282. package/dist/yazl-CJayzk0b.mjs +1 -0
  283. package/dist/yazl-DjRp4wSy.mjs +2 -0
  284. package/dist/yq-MJMAR36V-CsEAtdgj.mjs +1 -0
  285. package/package.json +4 -1
  286. package/dist/alias-JE7RI5QX-CjsckksZ.mjs +0 -1
  287. package/dist/awk2-POPGKRAI-DeuggFRh.mjs +0 -1
  288. package/dist/base64-4YMZCVJ5-Cj7j5Pz8.mjs +0 -1
  289. package/dist/basename-AA2KJYZQ-DSRxx5mc.mjs +0 -1
  290. package/dist/bash-IJWYRKFO-DFBZjU3V.mjs +0 -1
  291. package/dist/build-GAD37AZK.mjs +0 -1
  292. package/dist/cat-RDUMLXKC-CI2IrKwx.mjs +0 -1
  293. package/dist/chmod-SYMGL4JA-D31pO-B4.mjs +0 -1
  294. package/dist/clear-5CZ5X4YR-CwAD0ujG.mjs +0 -1
  295. package/dist/colors-Dl3c2q5r.mjs +0 -1
  296. package/dist/column-WLPMMSTS-OtgXQJPP.mjs +0 -1
  297. package/dist/comm-5SLSESQG-Dbe_0JM-.mjs +0 -1
  298. package/dist/constants-ChqGJV83.mjs +0 -2
  299. package/dist/cp-XOYR4ABJ-Fs-BUNPK.mjs +0 -1
  300. package/dist/cut-OPC3VAGB-QytesYLS.mjs +0 -1
  301. package/dist/date-DD7FVA2V-Cg5stPCO.mjs +0 -1
  302. package/dist/diff-HJF2MPDN-DRmjT8LD.mjs +0 -1
  303. package/dist/dirname-LEMTZZFS-BU2v6Jk9.mjs +0 -1
  304. package/dist/dist-9wjL9Ivy.mjs +0 -1
  305. package/dist/du-WO2ENHXQ-BcC6aUKa.mjs +0 -1
  306. package/dist/echo-O45JWWI2-D_LDH8mS.mjs +0 -1
  307. package/dist/env-5EPCWSXR-C4ozdy42.mjs +0 -1
  308. package/dist/expand-DTNXU4LQ-CHt1YsOk.mjs +0 -1
  309. package/dist/expansion-ENLSRCXJ-CcahEplO.mjs +0 -1
  310. package/dist/expr-5T3UU5KE-BL4xVSIz.mjs +0 -1
  311. package/dist/file-ZIGAJ4YS-CT98h277.mjs +0 -1
  312. package/dist/find-TPUOAIUQ-BE_RhPSK.mjs +0 -1
  313. package/dist/fold-LDSORVYE-CnErgTj9.mjs +0 -1
  314. package/dist/git-handle-CjyGVy33-B_7lAMm9.mjs +0 -10
  315. package/dist/git-handle-CjyGVy33-lwHYMDQ0.mjs +0 -1
  316. package/dist/grep-3AIAIJVR-02E3dSfi.mjs +0 -1
  317. package/dist/gzip-AQXSGOVS-UkVql__3.mjs +0 -1
  318. package/dist/head-HT2B6D2J-C2sNM7Dv.mjs +0 -1
  319. package/dist/help-VVWX7SA5-CZumUR0P.mjs +0 -1
  320. package/dist/history-J4QRNGRO-rwbd7U40.mjs +0 -1
  321. package/dist/hostname-BK6HG2DE-BQG1bQvh.mjs +0 -1
  322. package/dist/html-to-markdown-TFCECAGV-Db230ZWS.mjs +0 -1
  323. package/dist/init-B-7x7gxL.mjs +0 -409
  324. package/dist/init-BspSFYbX.mjs +0 -1
  325. package/dist/join-GG2LDHE5-Bc_GxS8t.mjs +0 -1
  326. package/dist/jq-ODXZBPLY-B5VN-dXM.mjs +0 -1
  327. package/dist/ln-4TRFBYAT-oG2zzF3W.mjs +0 -1
  328. package/dist/loader-XusDpPul.mjs +0 -1
  329. package/dist/ls-KSXFZCWH-BWWIeWvm.mjs +0 -1
  330. package/dist/md5sum-INMIK4DX-lBp2yvEW.mjs +0 -1
  331. package/dist/mkdir-TDEMSB6C-DbpQ_xq6.mjs +0 -1
  332. package/dist/mv-Z6MORUFL-CH8FstC-.mjs +0 -1
  333. package/dist/nl-U5YJDM32-VxSz_iJ4.mjs +0 -1
  334. package/dist/od-VJEF2UR5-BniMheOA.mjs +0 -1
  335. package/dist/paste-7N6AFSDS-C1AAbgf8.mjs +0 -1
  336. package/dist/preview-DGMTzIrG.mjs +0 -1
  337. package/dist/printf-CX64KX2P-DjH-DHsP.mjs +0 -1
  338. package/dist/public/assets/DocumentContext-BRfvUgZV.js +0 -58
  339. package/dist/public/assets/SettingsDialogBody-1i4q2xz7.js +0 -7
  340. package/dist/public/assets/SourceEditor-MMeo5vmo.js +0 -2
  341. package/dist/public/assets/agent-presence-4UV17fwS.js +0 -1
  342. package/dist/public/assets/architecture-YZFGNWBL-C7rs88Cj.js +0 -1
  343. package/dist/public/assets/channel-CQ2zxNG5.js +0 -1
  344. package/dist/public/assets/chunk-426QAEUC-CJ_7mg4w.js +0 -1
  345. package/dist/public/assets/chunk-55IACEB6-dtXOOCuI.js +0 -1
  346. package/dist/public/assets/chunk-QZHKN3VN-Bz4XrtbS.js +0 -1
  347. package/dist/public/assets/classDiagram-6PBFFD2Q-BsQynKQW.js +0 -1
  348. package/dist/public/assets/classDiagram-v2-HSJHXN6E-Cnv0Fq8M.js +0 -1
  349. package/dist/public/assets/clone-CsuuW-bg.js +0 -1
  350. package/dist/public/assets/config-validation-events-BWyyZh-d.js +0 -12
  351. package/dist/public/assets/cursor-f-dht0b0.js +0 -1
  352. package/dist/public/assets/dist-CtVt9wZe.js +0 -1
  353. package/dist/public/assets/dropdown-menu-CGgRqddr.js +0 -1
  354. package/dist/public/assets/gitGraph-7Q5UKJZL-Bmgp5n-M.js +0 -1
  355. package/dist/public/assets/index-Bco5OsBq.css +0 -1
  356. package/dist/public/assets/index-C96Loq20.js +0 -1914
  357. package/dist/public/assets/info-OMHHGYJF-DCMX4pS_.js +0 -1
  358. package/dist/public/assets/isSymbol-D0ur5y-p.js +0 -1
  359. package/dist/public/assets/packet-4T2RLAQJ-DveBhlQF.js +0 -1
  360. package/dist/public/assets/pie-ZZUOXDRM-yiLyabeZ.js +0 -1
  361. package/dist/public/assets/prop-types-CGu0ru1E.js +0 -500
  362. package/dist/public/assets/radar-PYXPWWZC-D8GV_2fZ.js +0 -1
  363. package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-CboeXSIo.js +0 -1
  364. package/dist/public/assets/toggle-group-Dy2sV5Bv.js +0 -1
  365. package/dist/public/assets/treeView-SZITEDCU-A2Cj-I1J.js +0 -1
  366. package/dist/public/assets/treemap-W4RFUUIX-uOn6xcZK.js +0 -1
  367. package/dist/public/assets/typing-burst-detector-Ty1Gy_nX.js +0 -2
  368. package/dist/public/assets/wardley-RL74JXVD-DrTPuxUO.js +0 -1
  369. package/dist/pwd-D4OZ7N27-VQ3RwUo8.mjs +0 -1
  370. package/dist/readlink-MI4GCHJF-L50-Upms.mjs +0 -1
  371. package/dist/repair-mcp-configs-CMNHRhif.mjs +0 -2
  372. package/dist/repair-skills-7rlg54ML.mjs +0 -1
  373. package/dist/rev-XOSYPP45-CwKU0j6Z.mjs +0 -1
  374. package/dist/rg-FOQSCCX3-BrvjgaMQ.mjs +0 -1
  375. package/dist/rm-RTZG23RL-_UcxChNg.mjs +0 -1
  376. package/dist/rmdir-XTQXT7RK-BRaqkv9Z.mjs +0 -1
  377. package/dist/rolldown-runtime-twds-ZHy-DU73unG7.mjs +0 -2
  378. package/dist/sed-VFTTATXJ-CZsNmySp.mjs +0 -1
  379. package/dist/seq-RN5ZUASB-Cg0b6SeB.mjs +0 -1
  380. package/dist/server-lock-BniQ3qki-C_0QTo_r.mjs +0 -2
  381. package/dist/server-lock-BniQ3qki-D-qFWWUB.mjs +0 -1
  382. package/dist/sha1sum-VJPNLNU6-CAg7QQIj.mjs +0 -1
  383. package/dist/sha256sum-PI32XWXY-CFFtkep9.mjs +0 -1
  384. package/dist/sleep-VZFPZFWA-D3Ph1Gn6.mjs +0 -1
  385. package/dist/sort-DCNRDA7U-BePJiuxU.mjs +0 -1
  386. package/dist/split-SITCSYCZ-COiAX9LF.mjs +0 -1
  387. package/dist/sqlite3-56UMWEY3-B0OUvEvJ.mjs +0 -1
  388. package/dist/src-Cc0yKmd-.mjs +0 -2
  389. package/dist/start-CMujpqWk.mjs +0 -1
  390. package/dist/stat-BT5A227F-NmZL1hMB.mjs +0 -1
  391. package/dist/strings-7PLOGTPD-CUJSASTo.mjs +0 -1
  392. package/dist/tac-SJGXQ4T2-B-fSXHB1.mjs +0 -1
  393. package/dist/tail-S5ULNTJU-CG1c0Pxf.mjs +0 -1
  394. package/dist/tar-ANUBEFJY-DH18Zmoc.mjs +0 -1
  395. package/dist/tee-O7VXZDCO-D_NgfJcm.mjs +0 -1
  396. package/dist/time-DEUO3QV2-DdyaxseS.mjs +0 -1
  397. package/dist/timeout-VRKMCG72-LxpBVg0M.mjs +0 -1
  398. package/dist/touch-DX2IJOQ4-BdSZnvQi.mjs +0 -1
  399. package/dist/tr-2HXZRDSW-QjngBhOg.mjs +0 -1
  400. package/dist/tree-LYXBS7DC-CsfD1mRM.mjs +0 -1
  401. package/dist/true-WHJNXCHG-DJUeGOw7.mjs +0 -1
  402. package/dist/unexpand-RGTMIGZM-gIXCkWyw.mjs +0 -1
  403. package/dist/uniq-SUNANL47-CiH7i9-p.mjs +0 -1
  404. package/dist/wc-TQB3VNOX-D1U1S7L6.mjs +0 -1
  405. package/dist/which-XZHEH76L-CRVfCXCP.mjs +0 -1
  406. package/dist/whoami-DGKU3D2X-COB3yQf8.mjs +0 -1
  407. package/dist/xan-BXDXYEIB-iFQjU_f2.mjs +0 -1
  408. package/dist/xan-view-ECQUO7AJ-BGX-rpom.mjs +0 -1
  409. package/dist/xargs-I6EZUCYF-CqFBjjSK.mjs +0 -1
  410. package/dist/yq-MJMAR36V-B5nTz8YA.mjs +0 -1
  411. /package/dist/public/assets/{ActivityPanelDiffView-DgtknSgX.js → ActivityPanelDiffView-LNHry3BJ.js} +0 -0
  412. /package/dist/public/assets/{__vite-browser-external-sCjVW6Bj.js → __vite-browser-external-Bet_nOzq.js} +0 -0
  413. /package/dist/public/assets/{array-COEOjKUv.js → array-DfeqBzds.js} +0 -0
  414. /package/dist/public/assets/{checkbox-DoU3OXGx.js → checkbox-CBMLW0iM.js} +0 -0
  415. /package/dist/public/assets/{colors-D6LRuSY-.js → colors-CuFmRbNJ.js} +0 -0
  416. /package/dist/public/assets/{cytoscape.esm-4jw_vW_Q.js → cytoscape.esm-C3hcpWGW.js} +0 -0
  417. /package/dist/public/assets/{defaultLocale-CoF2cqkH.js → defaultLocale-CmG7Nywc.js} +0 -0
  418. /package/dist/public/assets/{dist-Bog19bCH.js → dist-GFox5lpz.js} +0 -0
  419. /package/dist/public/assets/{go-wMvjCq97.js → go-BjDSeE19.js} +0 -0
  420. /package/dist/public/assets/{init-8GNx5phc.js → init-D-V7N9g_.js} +0 -0
  421. /package/dist/public/assets/{isObjectLike-DFnkciUU.js → isObjectLike-HLvQwJYx.js} +0 -0
  422. /package/dist/public/assets/{katex-qwlL5fSd.js → katex-DX-tM4Fr.js} +0 -0
  423. /package/dist/public/assets/{label-XH11jREQ.js → label-DCMZaJ38.js} +0 -0
  424. /package/dist/public/assets/{mcp-consent-store-CijO54Jd.js → mcp-consent-store-19Boxoxe.js} +0 -0
  425. /package/dist/public/assets/{min-BiwsSkbB.js → min-CHzARyU6.js} +0 -0
  426. /package/dist/public/assets/{path-C-grg3CZ.js → path-Bf8MP5yP.js} +0 -0
  427. /package/dist/public/assets/{pdf-CtJiipL_.js → pdf-wFLJduM2.js} +0 -0
  428. /package/dist/public/assets/{pdf.worker-BZq-wJdz.js → pdf.worker-CP44mBOj.js} +0 -0
  429. /package/dist/public/assets/{project-paths-CsGHlmFh.js → project-paths-eyh51nmQ.js} +0 -0
  430. /package/dist/public/assets/{rough.esm-DDK-gphn.js → rough.esm-Di0388iR.js} +0 -0
  431. /package/dist/public/assets/{shell-DdhS5_h8.js → shell-184Lov7C.js} +0 -0
  432. /package/dist/public/assets/{src-L3wpjxBL.js → src-Dz70a8sm.js} +0 -0
  433. /package/dist/public/assets/{stex-J8UMaf7u.js → stex-DxnLy7rA.js} +0 -0
  434. /package/dist/public/assets/{textarea-Bt3y5Hxz.js → textarea-C_bHQrXh.js} +0 -0
  435. /package/dist/public/assets/{trace-api-3dczfLSc.js → trace-api-CiCjX4Sz.js} +0 -0
  436. /package/dist/public/assets/{w3c-keyname-BSTW6KzM.js → w3c-keyname-B5t0fahT.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{t as e}from"./chunk-YNYSPYQ5-Dq-BWW-f.mjs";import{a as t,i as n,n as r,o as i}from"./chunk-DXB73IDG-DfmyzFzL.mjs";import{r as a,t as o}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{n as s}from"./chunk-7L36YK2X-RiPZFKaV.mjs";import{t as c}from"./chunk-SYMJJMQ4-0QtKvQIP.mjs";import{n as l,s as u}from"./chunk-7TSDKFEO-a-GUGBTu.mjs";import{n as d}from"./chunk-BBXLRYSX-Cxoye6wj.mjs";import{a as f,c as p,i as m,n as h,o as g,r as _,s as v,t as y}from"./chunk-F55TLFGB-CezmwFJN.mjs";var b,x=r(()=>{b=class{input;pos=0;tokens=[];constructor(e){this.input=e}tokenize(){for(;this.pos<this.input.length&&(this.skipWhitespace(),!(this.pos>=this.input.length));){let e=this.nextToken();e&&this.tokens.push(e)}return this.tokens.push({type:`eof`,value:``,pos:this.pos}),this.tokens}skipWhitespace(){for(;this.pos<this.input.length;){let e=this.input[this.pos];if(e===` `||e===` `||e===`
1
+ import{t as e}from"./chunk-YNYSPYQ5-DesxOVHh.mjs";import{a as t,i as n,n as r,o as i}from"./chunk-DXB73IDG-DIKSLkPq.mjs";import{r as a,t as o}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{n as s}from"./chunk-7L36YK2X-RiPZFKaV.mjs";import{t as c}from"./chunk-SYMJJMQ4-tl6Dz6VW.mjs";import{n as l,s as u}from"./chunk-7TSDKFEO-a-GUGBTu.mjs";import{n as d}from"./chunk-BBXLRYSX-DHx5dxhT.mjs";import{a as f,c as p,i as m,n as h,o as g,r as _,s as v,t as y}from"./chunk-F55TLFGB-oTuag-aK.mjs";var b,x=r(()=>{b=class{input;pos=0;tokens=[];constructor(e){this.input=e}tokenize(){for(;this.pos<this.input.length&&(this.skipWhitespace(),!(this.pos>=this.input.length));){let e=this.nextToken();e&&this.tokens.push(e)}return this.tokens.push({type:`eof`,value:``,pos:this.pos}),this.tokens}skipWhitespace(){for(;this.pos<this.input.length;){let e=this.input[this.pos];if(e===` `||e===` `||e===`
2
2
  `||e===`\r`)this.pos++;else if(e===`#`)for(;this.pos<this.input.length&&this.input[this.pos]!==`
3
3
  `;)this.pos++;else break}}nextToken(){let e=this.pos,t=this.input[this.pos];if(t>=`0`&&t<=`9`)return this.readNumber();if(t===`"`||t===`'`||t==="`")return this.readString(t);if(t===`b`&&this.pos+1<this.input.length){let e=this.input[this.pos+1];if(e===`"`||e===`'`||e==="`")return this.pos++,this.readString(e)}if(t===`/`){let t=this.tokens[this.tokens.length-1];return t&&(t.type===`int`||t.type===`float`||t.type===`string`||t.type===`ident`||t.type===`)`||t.type===`]`)?this.input[this.pos+1]===`/`?(this.pos+=2,{type:`//`,value:`//`,pos:e}):(this.pos++,{type:`/`,value:`/`,pos:e}):this.readRegex()}if(this.match(`not in`))return{type:`not in`,value:`not in`,pos:e};if(this.match(`=>`))return{type:`=>`,value:`=>`,pos:e};if(this.match(`**`))return{type:`**`,value:`**`,pos:e};if(this.match(`++`))return{type:`++`,value:`++`,pos:e};if(this.match(`//`))return{type:`//`,value:`//`,pos:e};if(this.match(`==`))return{type:`==`,value:`==`,pos:e};if(this.match(`!=`))return{type:`!=`,value:`!=`,pos:e};if(this.match(`<=`))return{type:`<=`,value:`<=`,pos:e};if(this.match(`>=`))return{type:`>=`,value:`>=`,pos:e};if(this.match(`&&`))return{type:`&&`,value:`&&`,pos:e};if(this.match(`||`))return{type:`||`,value:`||`,pos:e};let n=new Map([[`(`,`(`],[`)`,`)`],[`[`,`[`],[`]`,`]`],[`{`,`{`],[`}`,`}`],[`,`,`,`],[`:`,`:`],[`;`,`;`],[`+`,`+`],[`-`,`-`],[`*`,`*`],[`%`,`%`],[`<`,`<`],[`>`,`>`],[`!`,`!`],[`.`,`.`],[`|`,`|`],[`=`,`=`]]).get(t);if(n!==void 0)return this.pos++,{type:n,value:t,pos:e};if(this.isIdentStart(t))return this.readIdentifier();throw Error(`Unexpected character '${t}' at position ${this.pos}`)}match(e){if(this.input.slice(this.pos,this.pos+e.length)===e){if(/^[a-zA-Z]/.test(e)){let t=this.input[this.pos+e.length];if(t&&this.isIdentChar(t))return!1}return this.pos+=e.length,!0}return!1}isIdentStart(e){return e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e===`_`}isIdentChar(e){return this.isIdentStart(e)||e>=`0`&&e<=`9`}readNumber(){let e=this.pos,t=!1,n=!1;for(;this.pos<this.input.length;){let e=this.input[this.pos];if(e>=`0`&&e<=`9`)this.pos++;else if(e===`_`)this.pos++;else if(e===`.`&&!t&&!n)t=!0,this.pos++;else if((e===`e`||e===`E`)&&!n)n=!0,t=!0,this.pos++,this.pos<this.input.length&&(this.input[this.pos]===`+`||this.input[this.pos]===`-`)&&this.pos++;else break}let r=this.input.slice(e,this.pos).replace(/_/g,``);return{type:t?`float`:`int`,value:r,pos:e}}readString(e){let t=this.pos;this.pos++;let n=``;for(;this.pos<this.input.length;){let r=this.input[this.pos];if(r===e)return this.pos++,{type:`string`,value:n,pos:t};if(r===`\\`){if(this.pos++,this.pos<this.input.length){let e=this.input[this.pos];switch(e){case`n`:n+=`
4
4
  `;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;case`\\`:n+=`\\`;break;case`"`:n+=`"`;break;case`'`:n+=`'`;break;case"`":n+="`";break;case`0`:n+=`\0`;break;default:n+=e}this.pos++}}else n+=r,this.pos++}throw Error(`Unterminated string starting at position ${t}`)}readRegex(){let e=this.pos;this.pos++;let t=``,n=``;for(;this.pos<this.input.length;){let r=this.input[this.pos];if(r===`/`){for(this.pos++;this.pos<this.input.length&&this.input[this.pos]===`i`;)n+=this.input[this.pos],this.pos++;return{type:`regex`,value:t+(n?`/${n}`:``),pos:e}}r===`\\`?(t+=r,this.pos++,this.pos<this.input.length&&(t+=this.input[this.pos],this.pos++)):(t+=r,this.pos++)}throw Error(`Unterminated regex starting at position ${e}`)}readIdentifier(){let e=this.pos;for(;this.pos<this.input.length&&this.isIdentChar(this.input[this.pos]);)this.pos++;let t=!1;this.pos<this.input.length&&this.input[this.pos]===`?`&&(t=!0,this.pos++);let n=this.input.slice(e,t?this.pos-1:this.pos);t&&(n+=`?`);let r=new Map([[`true`,`true`],[`false`,`false`],[`null`,`null`],[`and`,`and`],[`or`,`or`],[`eq`,`eq`],[`ne`,`ne`],[`lt`,`lt`],[`le`,`le`],[`gt`,`gt`],[`ge`,`ge`],[`in`,`in`],[`as`,`as`],[`_`,`_`]]),i=n.replace(/\?$/,``),a=r.get(i);return a!==void 0&&!t?{type:a,value:i,pos:e}:{type:`ident`,value:n,pos:e}}}}),S={};n(S,{parseMoonblade:()=>w,parseNamedExpressions:()=>C});function C(e){let t=[],n=new b(e).tokenize(),r=0,i=()=>n[r]||{type:`eof`,value:``,pos:0},a=()=>n[r++];for(;i().type!==`eof`;){if(i().type===`,`&&t.length>0){a();continue}let o=[],s=0,c=r;for(;i().type!==`eof`;){let e=i();if((e.type===`,`||e.type===`as`)&&s===0)break;(e.type===`(`||e.type===`[`||e.type===`{`)&&s++,(e.type===`)`||e.type===`]`||e.type===`}`)&&s--,o.push(a())}o.push({type:`eof`,value:``,pos:0});let l=new E(o).parse(),u;if(i().type===`as`)if(a(),i().type===`(`){a();let e=[];for(;i().type!==`)`&&i().type!==`eof`;)(i().type===`ident`||i().type===`string`)&&(e.push(i().value),a()),i().type===`,`&&a();i().type===`)`&&a(),u=e}else if(i().type===`ident`||i().type===`string`)u=i().value,a();else throw Error(`Expected name after 'as', got ${i().type}`);else u=e.slice(n[c].pos,n[r-1]?.pos||e.length).trim(),l.type===`identifier`&&(u=l.name);t.push({expr:l,name:u})}return t}function w(e){let t=new b(e).tokenize();return new E(t).parse()}var T,E,D=r(()=>{x(),T={PIPE:1,OR:2,AND:3,EQUALITY:4,COMPARISON:5,ADDITIVE:6,MULTIPLICATIVE:7,POWER:8,UNARY:9,POSTFIX:10},E=class{pos=0;tokens;constructor(e){this.tokens=e}parse(){let e=this.parseExpr(0);if(this.peek().type!==`eof`)throw Error(`Unexpected token: ${this.peek().value}`);return e}parseExpr(e){let t=this.parsePrefix();for(;;){let n=this.peek(),r=this.getInfixPrec(n.type);if(r<e)break;t=this.parseInfix(t,r)}return t}parsePrefix(){let e=this.peek();switch(e.type){case`int`:return this.advance(),{type:`int`,value:Number.parseInt(e.value,10)};case`float`:return this.advance(),{type:`float`,value:Number.parseFloat(e.value)};case`string`:return this.advance(),{type:`string`,value:e.value};case`regex`:{this.advance();let t=e.value.split(`/`),n=t.length>1?t[t.length-1]:``;return{type:`regex`,pattern:t.slice(0,-1).join(`/`)||e.value,caseInsensitive:n.includes(`i`)}}case`true`:return this.advance(),{type:`bool`,value:!0};case`false`:return this.advance(),{type:`bool`,value:!1};case`null`:return this.advance(),{type:`null`};case`_`:return this.advance(),{type:`underscore`};case`ident`:{let t=e.value,n=t.endsWith(`?`),r=n?t.slice(0,-1):t;if(this.advance(),this.peek().type===`(`)return this.parseFunctionCall(r);if(this.peek().type===`=>`){this.advance();let e=this.parseExpr(0);return this.bindLambdaArgs({type:`lambda`,params:[r],body:e},[r])}return{type:`identifier`,name:r,unsure:n}}case`(`:{this.advance();let e=[];if(this.peek().type===`)`){if(this.advance(),this.peek().type===`=>`)return this.advance(),{type:`lambda`,params:[],body:this.parseExpr(0)};throw Error(`Empty parentheses not allowed`)}if(this.peek().type===`ident`){let t=this.peek().value;if(this.advance(),this.peek().type===`,`||this.peek().type===`)`){for(e.push(t);this.peek().type===`,`&&(this.advance(),this.peek().type===`ident`);)e.push(this.peek().value),this.advance();if(this.peek().type===`)`&&(this.advance(),this.peek().type===`=>`)){this.advance();let t=this.parseExpr(0);return this.bindLambdaArgs({type:`lambda`,params:e,body:t},e)}this.pos-=e.length*2,e.length>1&&(this.pos=this.pos)}this.pos--}let t=this.parseExpr(0);return this.expect(`)`),this.peek().type,t}case`[`:return this.parseList();case`{`:return this.parseMap();case`-`:{this.advance();let e=this.parseExpr(T.UNARY);return e.type===`int`?{type:`int`,value:-e.value}:e.type===`float`?{type:`float`,value:-e.value}:{type:`func`,name:`neg`,args:[{expr:e}]}}case`!`:return this.advance(),{type:`func`,name:`not`,args:[{expr:this.parseExpr(T.UNARY)}]};default:throw Error(`Unexpected token: ${e.type} (${e.value})`)}}parseFunctionCall(e){this.expect(`(`);let t=[];if(this.peek().type!==`)`)do{t.length>0&&this.peek().type===`,`&&this.advance();let e;if(this.peek().type===`ident`){let t=this.peek().value,n=this.pos+1;n<this.tokens.length&&this.tokens[n].type===`=`&&(e=t,this.advance(),this.advance())}let n=this.parseExpr(0);t.push({name:e,expr:n})}while(this.peek().type===`,`);return this.expect(`)`),{type:`func`,name:e.toLowerCase(),args:t}}parseList(){this.expect(`[`);let e=[];if(this.peek().type!==`]`)do e.length>0&&this.peek().type===`,`&&this.advance(),e.push(this.parseExpr(0));while(this.peek().type===`,`);return this.expect(`]`),{type:`list`,elements:e}}parseMap(){this.expect(`{`);let e=[];if(this.peek().type!==`}`)do{e.length>0&&this.peek().type===`,`&&this.advance();let t;if(this.peek().type===`ident`)t=this.peek().value,this.advance();else if(this.peek().type===`string`)t=this.peek().value,this.advance();else throw Error(`Expected map key, got ${this.peek().type}`);this.expect(`:`);let n=this.parseExpr(0);e.push({key:t,value:n})}while(this.peek().type===`,`);return this.expect(`}`),{type:`map`,entries:e}}parseInfix(e,t){let n=this.peek(),r=new Map([[`+`,`add`],[`-`,`sub`],[`*`,`mul`],[`/`,`div`],[`//`,`idiv`],[`%`,`mod`],[`**`,`pow`],[`++`,`concat`],[`==`,`==`],[`!=`,`!=`],[`<`,`<`],[`<=`,`<=`],[`>`,`>`],[`>=`,`>=`],[`eq`,`eq`],[`ne`,`ne`],[`lt`,`lt`],[`le`,`le`],[`gt`,`gt`],[`ge`,`ge`],[`&&`,`and`],[`and`,`and`],[`||`,`or`],[`or`,`or`]]).get(n.type);if(r!==void 0){this.advance();let i=this.parseExpr(t+(this.isRightAssoc(n.type)?0:1));return{type:`func`,name:r,args:[{expr:e},{expr:i}]}}if(n.type===`|`){this.advance();let n=this.parseExpr(t);return this.handlePipe(e,n)}if(n.type===`.`)return this.advance(),this.handleDot(e);if(n.type===`[`)return this.advance(),this.handleIndexing(e);if(n.type===`in`)return this.advance(),{type:`func`,name:`contains`,args:[{expr:this.parseExpr(t+1)},{expr:e}]};if(n.type===`not in`)return this.advance(),{type:`func`,name:`not`,args:[{expr:{type:`func`,name:`contains`,args:[{expr:this.parseExpr(t+1)},{expr:e}]}}]};throw Error(`Unexpected infix token: ${n.type}`)}handlePipe(e,t){if(t.type===`identifier`)return{type:`func`,name:t.name,args:[{expr:e}]};if(t.type===`func`){let n=this.countUnderscores(t);return n===0?t:n===1?this.fillUnderscore(t,e):{type:`pipeline`,exprs:[e,t]}}return this.countUnderscores(t)===1?this.fillUnderscore(t,e):t}handleDot(e){let t=this.peek();if(t.type===`ident`){let n=t.value;if(this.advance(),this.peek().type===`(`){let t=this.parseFunctionCall(n);return t.type===`func`&&t.args.unshift({expr:e}),t}return{type:`func`,name:`get`,args:[{expr:e},{expr:{type:`string`,value:n}}]}}if(t.type===`int`){let n=Number.parseInt(t.value,10);return this.advance(),{type:`func`,name:`get`,args:[{expr:e},{expr:{type:`int`,value:n}}]}}if(t.type===`string`){let n=t.value;return this.advance(),{type:`func`,name:`get`,args:[{expr:e},{expr:{type:`string`,value:n}}]}}throw Error(`Expected identifier, number, or string after dot, got ${t.type}`)}handleIndexing(e){if(this.peek().type===`:`){if(this.advance(),this.peek().type===`]`)return this.advance(),{type:`func`,name:`slice`,args:[{expr:e}]};let t=this.parseExpr(0);return this.expect(`]`),{type:`func`,name:`slice`,args:[{expr:e},{expr:{type:`int`,value:0}},{expr:t}]}}let t=this.parseExpr(0);if(this.peek().type===`:`){if(this.advance(),this.peek().type===`]`)return this.advance(),{type:`func`,name:`slice`,args:[{expr:e},{expr:t}]};let n=this.parseExpr(0);return this.expect(`]`),{type:`func`,name:`slice`,args:[{expr:e},{expr:t},{expr:n}]}}return this.expect(`]`),{type:`func`,name:`get`,args:[{expr:e},{expr:t}]}}countUnderscores(e){return e.type===`underscore`?1:e.type===`func`?e.args.reduce((e,t)=>e+this.countUnderscores(t.expr),0):e.type===`list`?e.elements.reduce((e,t)=>e+this.countUnderscores(t),0):e.type===`map`?e.entries.reduce((e,t)=>e+this.countUnderscores(t.value),0):0}fillUnderscore(e,t){return e.type===`underscore`?t:e.type===`func`?{...e,args:e.args.map(e=>({...e,expr:this.fillUnderscore(e.expr,t)}))}:e.type===`list`?{...e,elements:e.elements.map(e=>this.fillUnderscore(e,t))}:e.type===`map`?{...e,entries:e.entries.map(e=>({...e,value:this.fillUnderscore(e.value,t)}))}:e}bindLambdaArgs(e,t){return{...e,body:this.bindLambdaArgsInExpr(e.body,t)}}bindLambdaArgsInExpr(e,t){return e.type===`identifier`&&t.includes(e.name)?{type:`lambdaBinding`,name:e.name}:e.type===`func`?{...e,args:e.args.map(e=>({...e,expr:this.bindLambdaArgsInExpr(e.expr,t)}))}:e.type===`list`?{...e,elements:e.elements.map(e=>this.bindLambdaArgsInExpr(e,t))}:e.type===`map`?{...e,entries:e.entries.map(e=>({...e,value:this.bindLambdaArgsInExpr(e.value,t)}))}:e}getInfixPrec(e){switch(e){case`|`:return T.PIPE;case`||`:case`or`:return T.OR;case`&&`:case`and`:return T.AND;case`==`:case`!=`:case`eq`:case`ne`:return T.EQUALITY;case`<`:case`<=`:case`>`:case`>=`:case`lt`:case`le`:case`gt`:case`ge`:case`in`:case`not in`:return T.COMPARISON;case`+`:case`-`:case`++`:return T.ADDITIVE;case`*`:case`/`:case`//`:case`%`:return T.MULTIPLICATIVE;case`**`:return T.POWER;case`.`:case`[`:return T.POSTFIX;default:return-1}}isRightAssoc(e){return e===`**`}peek(){return this.tokens[this.pos]||{type:`eof`,value:``,pos:0}}advance(){return this.tokens[this.pos++]}expect(e){let t=this.peek();if(t.type!==e)throw Error(`Expected ${e}, got ${t.type}`);return this.advance()}}});D();function O(e,t){return t.length===0?j(e,[]):t.length===1?{type:`Pipe`,left:t[0],right:j(e,[])}:{type:`Pipe`,left:t[0],right:j(e,t.slice(1))}}var k={add:e=>A(`+`,e[0],e[1]),sub:e=>A(`-`,e[0],e[1]),mul:e=>A(`*`,e[0],e[1]),div:e=>A(`/`,e[0],e[1]),mod:e=>A(`%`,e[0],e[1]),idiv:e=>j(`floor`,[A(`/`,e[0],e[1])]),pow:e=>O(`pow`,e),neg:e=>({type:`UnaryOp`,op:`-`,operand:e[0]}),"==":e=>A(`==`,e[0],e[1]),"!=":e=>A(`!=`,e[0],e[1]),"<":e=>A(`<`,e[0],e[1]),"<=":e=>A(`<=`,e[0],e[1]),">":e=>A(`>`,e[0],e[1]),">=":e=>A(`>=`,e[0],e[1]),eq:e=>A(`==`,P(e[0]),P(e[1])),ne:e=>A(`!=`,P(e[0]),P(e[1])),lt:e=>A(`<`,P(e[0]),P(e[1])),le:e=>A(`<=`,P(e[0]),P(e[1])),gt:e=>A(`>`,P(e[0]),P(e[1])),ge:e=>A(`>=`,P(e[0]),P(e[1])),and:e=>A(`and`,e[0],e[1]),or:e=>A(`or`,e[0],e[1]),not:e=>({type:`UnaryOp`,op:`not`,operand:e[0]}),len:e=>O(`length`,e),length:e=>O(`length`,e),upper:e=>O(`ascii_upcase`,e),lower:e=>O(`ascii_downcase`,e),trim:e=>O(`trim`,e),ltrim:e=>e.length===0?j(`ltrimstr`,[{type:`Literal`,value:` `}]):{type:`Pipe`,left:e[0],right:j(`ltrimstr`,[{type:`Literal`,value:` `}])},rtrim:e=>e.length===0?j(`rtrimstr`,[{type:`Literal`,value:` `}]):{type:`Pipe`,left:e[0],right:j(`rtrimstr`,[{type:`Literal`,value:` `}])},split:e=>O(`split`,e),join:e=>e.length===1?j(`join`,[{type:`Literal`,value:``}]):O(`join`,e),concat:e=>A(`+`,e[0],e[1]),startswith:e=>O(`startswith`,e),endswith:e=>O(`endswith`,e),contains:e=>O(`contains`,e),replace:e=>O(`gsub`,e),substr:e=>e.length===2?{type:`Slice`,base:e[0],start:e[1]}:{type:`Slice`,base:e[0],start:e[1],end:A(`+`,e[1],e[2])},abs:e=>O(`fabs`,e),floor:e=>O(`floor`,e),ceil:e=>O(`ceil`,e),round:e=>O(`round`,e),sqrt:e=>O(`sqrt`,e),log:e=>O(`log`,e),log10:e=>O(`log10`,e),log2:e=>O(`log2`,e),exp:e=>O(`exp`,e),sin:e=>O(`sin`,e),cos:e=>O(`cos`,e),tan:e=>O(`tan`,e),asin:e=>O(`asin`,e),acos:e=>O(`acos`,e),atan:e=>O(`atan`,e),min:e=>O(`min`,e),max:e=>O(`max`,e),first:e=>e.length===0?{type:`Index`,index:{type:`Literal`,value:0}}:{type:`Index`,index:{type:`Literal`,value:0},base:e[0]},last:e=>e.length===0?{type:`Index`,index:{type:`Literal`,value:-1}}:{type:`Index`,index:{type:`Literal`,value:-1},base:e[0]},get:e=>e.length===1?{type:`Index`,index:e[0]}:{type:`Index`,index:e[1],base:e[0]},slice:e=>e.length===1?{type:`Slice`,base:e[0]}:e.length===2?{type:`Slice`,base:e[0],start:e[1]}:{type:`Slice`,base:e[0],start:e[1],end:e[2]},keys:`keys`,values:`values`,entries:e=>j(`to_entries`,e),from_entries:`from_entries`,reverse:`reverse`,sort:`sort`,sort_by:`sort_by`,group_by:`group_by`,unique:`unique`,unique_by:`unique_by`,flatten:`flatten`,map:e=>({type:`Pipe`,left:e[0],right:{type:`Array`,elements:e[1]}}),select:e=>j(`select`,e),empty:()=>j(`empty`,[]),count:()=>j(`length`,[]),sum:e=>e.length===0?j(`add`,[]):{type:`Pipe`,left:{type:`Array`,elements:e[0]},right:j(`add`,[])},mean:e=>e.length===0?{type:`Pipe`,left:{type:`Identity`},right:A(`/`,j(`add`,[]),j(`length`,[]))}:{type:`Pipe`,left:{type:`Array`,elements:e[0]},right:A(`/`,j(`add`,[]),j(`length`,[]))},avg:e=>e.length===0?{type:`Pipe`,left:{type:`Identity`},right:A(`/`,j(`add`,[]),j(`length`,[]))}:{type:`Pipe`,left:{type:`Array`,elements:e[0]},right:A(`/`,j(`add`,[]),j(`length`,[]))},type:`type`,isnull:e=>e.length===0?A(`==`,{type:`Identity`},{type:`Literal`,value:null}):A(`==`,e[0],{type:`Literal`,value:null}),isempty:e=>e.length===0?A(`==`,{type:`Identity`},{type:`Literal`,value:``}):A(`==`,e[0],{type:`Literal`,value:``}),tonumber:e=>e.length===0?j(`tonumber`,[]):j(`tonumber`,e),tostring:e=>e.length===0?j(`tostring`,[]):j(`tostring`,e),if:e=>N(e[0],e[1],e[2]),coalesce:e=>{if(e.length===0)return{type:`Literal`,value:null};if(e.length===1)return e[0];let[t,...n]=e;return N(A(`and`,A(`!=`,t,{type:`Literal`,value:null}),A(`!=`,t,{type:`Literal`,value:``})),t,n.length===1?n[0]:k.coalesce(n))},index:()=>({type:`Field`,name:`_row_index`}),now:()=>j(`now`,[]),fmt:e=>j(`tostring`,e),format:e=>j(`tostring`,e)};Object.setPrototypeOf(k,null);function A(e,t,n){return{type:`BinaryOp`,op:e,left:t,right:n}}function j(e,t){return{type:`Call`,name:e,args:t}}var M=`then`;function N(e,t,n){let r=u({type:`Cond`,cond:e,elifs:[],else:n||{type:`Literal`,value:null}});return r[M]=t,r}function P(e){return{type:`Pipe`,left:e,right:{type:`Call`,name:`tostring`,args:[]}}}function F(e,t=!0){switch(e.type){case`int`:case`float`:return{type:`Literal`,value:e.value};case`string`:return{type:`Literal`,value:e.value};case`bool`:return{type:`Literal`,value:e.value};case`null`:return{type:`Literal`,value:null};case`underscore`:return{type:`Index`,base:{type:`Identity`},index:{type:`Literal`,value:`_`}};case`identifier`:return t?{type:`Field`,name:e.name}:{type:`VarRef`,name:e.name};case`lambdaBinding`:return{type:`VarRef`,name:e.name};case`func`:{let n=e.args.map(e=>F(e.expr,t)),r=Object.hasOwn(k,e.name)?k[e.name]:void 0;return typeof r==`function`?r(n):j(typeof r==`string`?r:e.name,n)}case`list`:return e.elements.length===0?{type:`Array`}:{type:`Array`,elements:e.elements.reduce((e,n,r)=>{let i=F(n,t);return r===0?i:{type:`Comma`,left:e,right:i}},null)};case`map`:return{type:`Object`,entries:e.entries.map(e=>({key:e.key,value:F(e.value,t)}))};case`regex`:return{type:`Literal`,value:e.pattern};case`slice`:return{type:`Slice`,start:e.start?F(e.start,t):void 0,end:e.end?F(e.end,t):void 0};case`lambda`:return F(e.body,t);case`pipeline`:return{type:`Identity`};default:throw Error(`Unknown moonblade expression type: ${e.type}`)}}function I(e){let t=[],n=0;for(;n<e.length;){for(;n<e.length&&(e[n]===` `||e[n]===`,`);)n++;if(n>=e.length)break;let r=n;for(;n<e.length&&/\w/.test(e[n]);)n++;let i=e.slice(r,n);for(;n<e.length&&e[n]===` `;)n++;if(e[n]!==`(`)break;n++;let a=1,o=n;for(;n<e.length&&a>0;)e[n]===`(`?a++:e[n]===`)`&&a--,a>0&&n++;let s=e.slice(o,n).trim();for(n++;n<e.length&&e[n]===` `;)n++;let c=``;if(e.slice(n,n+3).toLowerCase()===`as `){for(n+=3;n<e.length&&e[n]===` `;)n++;let t=n;for(;n<e.length&&/\w/.test(e[n]);)n++;c=e.slice(t,n)}c||=s?`${i}(${s})`:`${i}()`,t.push({func:i,expr:s,alias:c})}return t}function L(e){return/^\w+$/.test(e)}function R(e,t,n){let r=d(e,F(w(t)),n);return r.length>0?r[0]:null}function z(e,t,n={}){let{func:r,expr:i}=t;if(r===`count`&&!i)return e.length;let a;switch(a=L(i)?e.map(e=>e[i]).filter(e=>e!=null):e.map(e=>R(e,i,n)).filter(e=>e!=null),r){case`count`:return L(i)?a.length:a.filter(e=>!!e).length;case`sum`:return a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e))).reduce((e,t)=>e+t,0);case`mean`:case`avg`:{let e=a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e)));return e.length>0?e.reduce((e,t)=>e+t,0)/e.length:0}case`min`:{let e=a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e)));return e.length>0?Math.min(...e):null}case`max`:{let e=a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e)));return e.length>0?Math.max(...e):null}case`first`:return a.length>0?a[0]:null;case`last`:return a.length>0?a[a.length-1]:null;case`median`:{let e=a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e))).filter(e=>!Number.isNaN(e)).sort((e,t)=>e-t);if(e.length===0)return null;let t=Math.floor(e.length/2);return e.length%2==0?(e[t-1]+e[t])/2:e[t]}case`mode`:{let e=new Map;for(let t of a){let n=String(t);e.set(n,(e.get(n)||0)+1)}let t=0,n=null;for(let[r,i]of e)i>t&&(t=i,n=r);return n}case`cardinality`:return new Set(a.map(e=>String(e))).size;case`values`:return a.map(e=>String(e)).join(`|`);case`distinct_values`:return[...new Set(a.map(e=>String(e)))].sort().join(`|`);case`all`:if(e.length===0)return!0;for(let t of e)if(!R(t,i,n))return!1;return!0;case`any`:for(let t of e)if(R(t,i,n))return!0;return!1;default:return null}}function ee(e,t,n={}){let r=v();for(let i of t)_(r,i.alias,z(e,i,n));return r}async function te(e,t){let n=``,r=[];for(let t of e)t.startsWith(`-`)||(n?r.push(t):n=t);if(!n)return{stdout:``,stderr:`xan agg: no aggregation expression
@@ -58,7 +58,7 @@ import{t as e}from"./chunk-YNYSPYQ5-Dq-BWW-f.mjs";import{a as t,i as n,n as r,o
58
58
  `,exitCode:1};o=a[0].headers}let c=[];for(let{headers:e,data:t}of a)for(let n of t){let t=v();for(let r of o)_(t,r,e.includes(r)?n[r]:``);c.push(t)}return{stdout:h(o,c),stderr:``,exitCode:0}}async function Me(t,n){let r=``,i=[],a=!1,o=!1,s=[];for(let e=0;e<t.length;e++){let n=t[e];(n===`-s`||n===`--select`)&&e+1<t.length?i=t[++e].split(`,`):n===`-v`||n===`--invert`?a=!0:n===`-i`||n===`--ignore-case`?o=!0:n===`-r`||n===`--regex`||n.startsWith(`-`)||(r?s.push(n):r=n)}if(!r)return{stdout:``,stderr:`xan search: no pattern specified
59
59
  `,exitCode:1};let{headers:c,data:l,error:u}=await g(s,n);if(u)return u;let d=i.length>0?i:c,f;try{f=e(r,o?`i`:``)}catch{return{stdout:``,stderr:`xan search: invalid regex pattern '${r}'
60
60
  `,exitCode:1}}return{stdout:h(c,l.filter(e=>{let t=d.some(t=>{let n=e[t];return n!=null&&f.test(String(n))});return a?!t:t})),stderr:``,exitCode:0}}async function Ne(e,t){let n=``,r=[];for(let t of e)t.startsWith(`-`)||(n?r.push(t):n=t);if(!n)return{stdout:``,stderr:`xan flatmap: no expression specified
61
- `,exitCode:1};let{headers:i,data:a,error:o}=await g(r,t);if(o)return o;let s=C(n).map(({expr:e,name:t})=>({alias:typeof t==`string`?t:t[0],ast:F(e)})),c={limits:t.limits?{maxIterations:t.limits.maxJqIterations}:void 0},l=[...i,...s.map(e=>e.alias)],u=[];for(let e of a){let t=[],n=1;for(let r of s){let i=d(e,r.ast,c),a=i.length>0&&Array.isArray(i[0])?i[0]:i;t.push(a),n=Math.max(n,a.length)}for(let r=0;r<n;r++){let n=y(e);for(let e=0;e<s.length;e++){let i=t[e][r]??null;_(n,s[e].alias,i)}u.push(n)}}return{stdout:h(l,u),stderr:``,exitCode:0}}async function Pe(e,t){let{cmdView:n}=await import(`./xan-view-ECQUO7AJ-BGX-rpom.mjs`);return n(e,t)}var Q=new Set([`fuzzy-join`,`glob`,`hist`,`input`,`parallel`,`plot`,`progress`,`range`,`scrape`,`tokenize`,`union-find`]),Fe=new Set([`agg`,`behead`,`cat`,`count`,`dedup`,`drop`,`enum`,`explode`,`f`,`filter`,`fixlengths`,`flatmap`,`flatten`,`fmt`,`frequency`,`freq`,`from`,`groupby`,`head`,`headers`,`implode`,`join`,`map`,`merge`,`partition`,`pivot`,`rename`,`reverse`,`sample`,`search`,`select`,`shuffle`,`slice`,`sort`,`split`,`stats`,`tail`,`to`,`top`,`transform`,`transpose`,`view`,...Q]),$={name:`xan`,summary:`CSV toolkit for data manipulation`,usage:`xan <COMMAND> [OPTIONS] [FILE]`,description:`xan is a collection of commands for working with CSV data.
61
+ `,exitCode:1};let{headers:i,data:a,error:o}=await g(r,t);if(o)return o;let s=C(n).map(({expr:e,name:t})=>({alias:typeof t==`string`?t:t[0],ast:F(e)})),c={limits:t.limits?{maxIterations:t.limits.maxJqIterations}:void 0},l=[...i,...s.map(e=>e.alias)],u=[];for(let e of a){let t=[],n=1;for(let r of s){let i=d(e,r.ast,c),a=i.length>0&&Array.isArray(i[0])?i[0]:i;t.push(a),n=Math.max(n,a.length)}for(let r=0;r<n;r++){let n=y(e);for(let e=0;e<s.length;e++){let i=t[e][r]??null;_(n,s[e].alias,i)}u.push(n)}}return{stdout:h(l,u),stderr:``,exitCode:0}}async function Pe(e,t){let{cmdView:n}=await import(`./xan-view-ECQUO7AJ-8Lt55NoE.mjs`);return n(e,t)}var Q=new Set([`fuzzy-join`,`glob`,`hist`,`input`,`parallel`,`plot`,`progress`,`range`,`scrape`,`tokenize`,`union-find`]),Fe=new Set([`agg`,`behead`,`cat`,`count`,`dedup`,`drop`,`enum`,`explode`,`f`,`filter`,`fixlengths`,`flatmap`,`flatten`,`fmt`,`frequency`,`freq`,`from`,`groupby`,`head`,`headers`,`implode`,`join`,`map`,`merge`,`partition`,`pivot`,`rename`,`reverse`,`sample`,`search`,`select`,`shuffle`,`slice`,`sort`,`split`,`stats`,`tail`,`to`,`top`,`transform`,`transpose`,`view`,...Q]),$={name:`xan`,summary:`CSV toolkit for data manipulation`,usage:`xan <COMMAND> [OPTIONS] [FILE]`,description:`xan is a collection of commands for working with CSV data.
62
62
  It provides a simple, ergonomic interface for common data operations.
63
63
 
64
64
  COMMANDS:
@@ -137,4 +137,4 @@ EXAMPLES:
137
137
  `,exitCode:1}:{stdout:``,stderr:`xan: unknown command '${n}'
138
138
  Run 'xan --help' for usage.
139
139
  `,exitCode:1}}}},Re={name:`xan`,flags:[],stdinType:`text`,needsArgs:!0};export{Le as n,Re as t};
140
- //# sourceMappingURL=chunk-UNYNJIFU-BbdoO4yb.mjs.map
140
+ //# sourceMappingURL=chunk-UNYNJIFU-B6KF1Gqq.mjs.map
@@ -1,4 +1,4 @@
1
- import{t as e}from"./chunk-YNYSPYQ5-Dq-BWW-f.mjs";function t(e,t){return e.replace(/\$(&|\d+|<([^>]+)>)/g,(e,n,r)=>n===`&`?t[0]:r===void 0?t[parseInt(n,10)]??``:t.groups?.[r]??``)}function n(e,n,i={}){let{invertMatch:a=!1,showLineNumbers:o=!1,countOnly:s=!1,countMatches:c=!1,filename:l=``,onlyMatching:u=!1,beforeContext:d=0,afterContext:f=0,maxCount:p=0,contextSeparator:m=`--`,showColumn:h=!1,vimgrep:g=!1,showByteOffset:_=!1,replace:v=null,passthru:y=!1,multiline:b=!1,kResetGroup:x}=i;if(b)return r(e,n,{invertMatch:a,showLineNumbers:o,countOnly:s,countMatches:c,filename:l,onlyMatching:u,beforeContext:d,afterContext:f,maxCount:p,contextSeparator:m,showColumn:h,showByteOffset:_,replace:v,kResetGroup:x});let S=e.split(`
1
+ import{t as e}from"./chunk-YNYSPYQ5-DesxOVHh.mjs";function t(e,t){return e.replace(/\$(&|\d+|<([^>]+)>)/g,(e,n,r)=>n===`&`?t[0]:r===void 0?t[parseInt(n,10)]??``:t.groups?.[r]??``)}function n(e,n,i={}){let{invertMatch:a=!1,showLineNumbers:o=!1,countOnly:s=!1,countMatches:c=!1,filename:l=``,onlyMatching:u=!1,beforeContext:d=0,afterContext:f=0,maxCount:p=0,contextSeparator:m=`--`,showColumn:h=!1,vimgrep:g=!1,showByteOffset:_=!1,replace:v=null,passthru:y=!1,multiline:b=!1,kResetGroup:x}=i;if(b)return r(e,n,{invertMatch:a,showLineNumbers:o,countOnly:s,countMatches:c,filename:l,onlyMatching:u,beforeContext:d,afterContext:f,maxCount:p,contextSeparator:m,showColumn:h,showByteOffset:_,replace:v,kResetGroup:x});let S=e.split(`
2
2
  `),C=S.length,w=C>0&&S[C-1]===``?C-1:C;if(s||c){let e=0,t=(c||u)&&!a;for(let r=0;r<w;r++)if(n.lastIndex=0,t)for(let t=n.exec(S[r]);t!==null;t=n.exec(S[r]))e++,t[0].length===0&&n.lastIndex++;else n.test(S[r])!==a&&e++;return{output:`${l?`${l}:${e}`:String(e)}
3
3
  `,matched:e>0,matchCount:e}}if(d===0&&f===0&&!y){let e=[],r=!1,i=0,s=0;for(let c=0;c<w&&!(p>0&&i>=p);c++){let d=S[c];if(n.lastIndex=0,n.test(d)!==a)if(r=!0,i++,u){n.lastIndex=0;for(let r=n.exec(d);r!==null;r=n.exec(d)){let i=x===void 0?r[0]:r[x]??``,a=v===null?i:t(v,r),u=l?`${l}:`:``;_&&(u+=`${s+r.index}:`),o&&(u+=`${c+1}:`),h&&(u+=`${r.index+1}:`),e.push(u+a),r[0].length===0&&n.lastIndex++}}else if(g){n.lastIndex=0;for(let t=n.exec(d);t!==null;t=n.exec(d)){let r=l?`${l}:`:``;_&&(r+=`${s+t.index}:`),o&&(r+=`${c+1}:`),h&&(r+=`${t.index+1}:`),e.push(r+d),t[0].length===0&&n.lastIndex++}}else{n.lastIndex=0;let r=n.exec(d),i=r?r.index+1:1,a=d;v!==null&&(n.lastIndex=0,a=n.replace(d,(...e)=>{if(e[0].length===0)return``;let n=e,r=e[e.length-1];return typeof r==`object`&&r?(n.groups=r,n.input=e[e.length-2],n.index=e[e.length-3]):(n.input=e[e.length-1],n.index=e[e.length-2]),t(v,n)}));let u=l?`${l}:`:``;_&&(u+=`${s+(r?r.index:0)}:`),o&&(u+=`${c+1}:`),h&&(u+=`${i}:`),e.push(u+a)}s+=d.length+1}return{output:e.length>0?`${e.join(`
4
4
  `)}
@@ -14,4 +14,4 @@ import{t as e}from"./chunk-YNYSPYQ5-Dq-BWW-f.mjs";function t(e,t){return e.repla
14
14
  `:``,matched:t.length>0,matchCount:t.length}}if(C.length===0)return{output:``,matched:!1,matchCount:0};let w=new Set,T=-1,E=[];for(let e of C){let n=Math.max(0,e.startLine-l),r=Math.min(y-1,e.endLine+u);T>=0&&n>T+1&&E.push(f);for(let t=n;t<e.startLine;t++)if(!w.has(t)){w.add(t),T=t;let e=_[t];i&&(e=`${t+1}-${e}`),s&&(e=`${s}-${e}`),E.push(e)}if(c){let t=h===null?e.matchText:h,n=s?`${s}:`:``;m&&(n+=`${e.byteOffset}:`),i&&(n+=`${e.startLine+1}:`),p&&(n+=`${e.column}:`),E.push(n+t);for(let t=e.startLine;t<=e.endLine;t++)w.add(t),T=t}else for(let n=e.startLine;n<=e.endLine&&n<y;n++)if(!w.has(n)){w.add(n),T=n;let r=_[n];h!==null&&n===e.startLine&&(t.lastIndex=0,r=t.replace(r,h));let a=s?`${s}:`:``;m&&n===e.startLine&&(a+=`${e.byteOffset}:`),i&&(a+=`${n+1}:`),p&&n===e.startLine&&(a+=`${e.column}:`),E.push(a+r)}for(let t=e.endLine+1;t<=r;t++)if(!w.has(t)){w.add(t),T=t;let e=_[t];i&&(e=`${t+1}-${e}`),s&&(e=`${s}-${e}`),E.push(e)}}return{output:E.length>0?`${E.join(`
15
15
  `)}
16
16
  `:``,matched:!0,matchCount:C.length}}var i=new Map([[`alpha`,`a-zA-Z`],[`digit`,`0-9`],[`alnum`,`a-zA-Z0-9`],[`lower`,`a-z`],[`upper`,`A-Z`],[`xdigit`,`0-9A-Fa-f`],[`space`,` \\t\\n\\r\\f\\v`],[`blank`,` \\t`],[`punct`,"!-/:-@\\[-`{-~"],[`graph`,`!-~`],[`print`,` -~`],[`cntrl`,`\\x00-\\x1F\\x7F`],[`ascii`,`\\x00-\\x7F`],[`word`,`a-zA-Z0-9_`]]);function a(e){let t=``,n=0;for(;n<e.length;){if(e.slice(n,n+7)===`[[:<:]]`){t+=`\\b`,n+=7;continue}if(e.slice(n,n+7)===`[[:>:]]`){t+=`\\b`,n+=7;continue}if(e[n]===`[`){let r=`[`;for(n++,n<e.length&&(e[n]===`^`||e[n]===`!`)&&(r+=`^`,n++),n<e.length&&e[n]===`]`&&(r+=`\\]`,n++);n<e.length&&e[n]!==`]`;){if(e[n]===`[`&&n+1<e.length&&e[n+1]===`:`){let t=e.indexOf(`:]`,n+2);if(t!==-1){let a=e.slice(n+2,t),o=i.get(a);if(o){r+=o,n=t+2;continue}}}if(e[n]===`\\`&&n+1<e.length){r+=e[n]+e[n+1],n+=2;continue}r+=e[n],n++}n<e.length&&e[n]===`]`&&(r+=`]`,n++),t+=r;continue}if(e[n]===`\\`&&n+1<e.length){t+=e[n]+e[n+1],n+=2;continue}t+=e[n],n++}return t}function o(t,n){let r,i;switch(n.mode){case`fixed`:r=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);break;case`extended`:case`perl`:if(r=a(t),r=r.replace(/\(\?P<([^>]+)>/g,`(?<$1>`),n.mode===`perl`){r=s(r),r=c(r),r=l(r);let e=p(r);r=e.pattern,i=e.kResetGroup}break;default:r=a(t),r=_(r);break}n.wholeWord&&(r=`\\b(?:${r})\\b`),n.lineRegexp&&(r=`^${r}$`);let o=/\\u\{[0-9A-Fa-f]+\}/.test(r),u=`g`+(n.ignoreCase?`i`:``)+(n.multiline?`m`:``)+(n.multilineDotall?`s`:``)+(o?`u`:``);return{regex:e(r,u),kResetGroup:i}}function s(e){let t=``,n=0;for(;n<e.length;)if(e[n]===`\\`&&n+1<e.length&&e[n+1]===`Q`){n+=2;let r=``;for(;n<e.length;){if(e[n]===`\\`&&n+1<e.length&&e[n+1]===`E`){n+=2;break}r+=e[n],n++}t+=r.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}else t+=e[n],n++;return t}function c(e){return e.replace(/\\x\{([0-9A-Fa-f]+)\}/g,`\\u{$1}`)}function l(e){let t=``,n=0;for(;n<e.length;){if(e[n]===`(`&&n+1<e.length&&e[n+1]===`?`){let r=e.slice(n).match(/^\(\?([imsx]*)(-[imsx]*)?(:|$|\))/);if(r){let i=r[1]||``,a=r[2]||``,o=r[3];if(o===`:`){let o=n+r[0].length-1,s=u(e,n);if(s!==-1){let r=d(e.slice(o+1,s),i,a);t+=`(?:${r})`,n=s+1;continue}}else if(o===`)`||o===``){n+=r[0].length;continue}}}t+=e[n],n++}return t}function u(e,t){let n=0,r=t;for(;r<e.length;){if(e[r]===`\\`){r+=2;continue}if(e[r]===`[`){for(r++;r<e.length&&e[r]!==`]`;)e[r]===`\\`&&r++,r++;r++;continue}if(e[r]===`(`)n++;else if(e[r]===`)`&&(n--,n===0))return r;r++}return-1}function d(e,t,n){let r=e;return t.includes(`i`)&&(r=f(r)),r}function f(e){let t=``,n=0;for(;n<e.length;){let r=e[n];if(r===`\\`){n+1<e.length?(t+=r+e[n+1],n+=2):(t+=r,n++);continue}if(r===`[`){t+=r,n++,n<e.length&&e[n]===`^`&&(t+=e[n],n++);let i=[];for(;n<e.length&&e[n]!==`]`;)if(e[n]===`\\`)i.push(e[n]),n++,n<e.length&&(i.push(e[n]),n++);else if(e[n]===`-`&&i.length>0&&n+1<e.length&&e[n+1]!==`]`){let t=i[i.length-1],r=e[n+1];i.push(`-`),i.push(r),/[a-z]/.test(t)&&/[a-z]/.test(r)?(i.push(t.toUpperCase()),i.push(`-`),i.push(r.toUpperCase())):/[A-Z]/.test(t)&&/[A-Z]/.test(r)&&(i.push(t.toLowerCase()),i.push(`-`),i.push(r.toLowerCase())),n+=2}else{let t=e[n];if(i.push(t),/[a-zA-Z]/.test(t)){let e=t===t.toLowerCase()?t.toUpperCase():t.toLowerCase();i.includes(e)||i.push(e)}n++}t+=i.join(``),n<e.length&&(t+=e[n],n++);continue}if(/[a-zA-Z]/.test(r)){let e=r.toLowerCase(),n=r.toUpperCase();t+=`[${n}${e}]`}else t+=r;n++}return t}function p(e){let t=m(e);if(t===-1)return{pattern:e};let n=e.slice(0,t),r=e.slice(t+2),i=h(n);return{pattern:`(?:${n})(${r})`,kResetGroup:i+1}}function m(e){let t=0;for(;t<e.length-1;)if(e[t]===`\\`){if(e[t+1]===`K`){let n=0,r=t-1;for(;r>=0&&e[r]===`\\`;)n++,r--;if(n%2==0)return t}t+=2}else t++;return-1}function h(e){let t=0,n=0;for(;n<e.length;){if(e[n]===`\\`){n+=2;continue}if(e[n]===`[`){for(n++;n<e.length&&e[n]!==`]`;)e[n]===`\\`&&n++,n++;n++;continue}if(e[n]===`(`)if(n+1<e.length&&e[n+1]===`?`){if(n+2<e.length){let r=e[n+2];if(r===`:`||r===`=`||r===`!`){n++;continue}if(r===`<`&&n+3<e.length){let r=e[n+3];if(r===`=`||r===`!`){n++;continue}t++,n++;continue}}}else t++;n++}return t}function g(e){let t=e.replace(/\$\{0\}|\$0(?![0-9])/g,`$$&`);return t=t.replace(/\$\{([^0-9}][^}]*)\}/g,`$$<$1>`),t=t.replace(/\$([a-zA-Z_][a-zA-Z0-9_]*)(?![>0-9])/g,`$$<$1>`),t}function _(e){let t=``,n=0,r=!0,i=0;for(;n<e.length;){let a=e[n];if(a===`[`){for(t+=a,n++,n<e.length&&(e[n]===`^`||e[n]===`!`)&&(t+=e[n],n++),n<e.length&&e[n]===`]`&&(t+=e[n],n++);n<e.length&&e[n]!==`]`;)e[n]===`\\`&&n+1<e.length?(t+=e[n]+e[n+1],n+=2):(t+=e[n],n++);n<e.length&&e[n]===`]`&&(t+=e[n],n++),r=!1;continue}if(a===`\\`&&n+1<e.length){let o=e[n+1];if(o===`|`){t+=`|`,n+=2,r=!0;continue}if(o===`(`){t+=`(`,n+=2,i++,r=!0;continue}if(o===`)`){t+=`)`,n+=2,i=Math.max(0,i-1),r=!1;continue}if(o===`{`){let i=e.slice(n).match(/^\\{(\d+)(,(\d*)?)?\\}/);if(i){let e=i[1],a=i[2]!==void 0,o=i[3]||``;a?t+=`{${e},${o}}`:t+=`{${e}}`,n+=i[0].length,r=!1;continue}t+=`\\{`,n+=2,r=!1;continue}if(o===`}`){t+=`\\}`,n+=2,r=!1;continue}t+=a+o,n+=2,r=!1;continue}if(a===`*`&&r){t+=`\\*`,n++;continue}if(a===`^`){if(r){t+=`^`,n++;continue}t+=`\\^`,n++;continue}if(a===`$`){let i=n===e.length-1,a=n+2<e.length&&e[n+1]===`\\`&&e[n+2]===`)`;i||a?t+=`$`:t+=`\\$`,n++,r=!1;continue}a===`+`||a===`?`||a===`|`||a===`(`||a===`)`||a===`{`||a===`}`?t+=`\\${a}`:t+=a,n++,r=!1}return t}export{o as n,g as r,n as t};
17
- //# sourceMappingURL=chunk-VLGZJRPG-B678hnuU.mjs.map
17
+ //# sourceMappingURL=chunk-VLGZJRPG-ChVasMna.mjs.map
@@ -1,2 +1,2 @@
1
1
  import*as e from"node:path";import*as t from"node:fs";function n(e){if(!e||e===`/`)return`/`;let t=e.endsWith(`/`)&&e!==`/`?e.slice(0,-1):e;t.startsWith(`/`)||(t=`/${t}`);let n=t.split(`/`).filter(e=>e&&e!==`.`),r=[];for(let e of n)e===`..`?r.pop():r.push(e);return`/${r.join(`/`)}`||`/`}function r(e,t){if(e.includes(`\0`))throw Error(`ENOENT: path contains null byte, ${t} '${e}'`)}function i(e){let t=n(e);if(t===`/`)return`/`;let r=t.lastIndexOf(`/`);return r===0?`/`:t.slice(0,r)}function a(e,t){return t.startsWith(`/`)?n(t):n(e===`/`?`/${t}`:`${e}/${t}`)}function o(e,t){return e===`/`?`/${t}`:`${e}/${t}`}function s(e,t){return t.startsWith(`/`)?n(t):n(o(i(e),t))}function c(e,t){return e===t||e.startsWith(`${t}/`)}function l(n,r){try{let e=t.realpathSync(n);return c(e,r)?e:null}catch(i){if(i.code===`ENOENT`){let i=e.dirname(n);if(i===n)return null;let a=l(i,r);if(a===null)return null;try{if(t.lstatSync(n).isSymbolicLink()){let i=t.readlinkSync(n);if(l(e.isAbsolute(i)?i:e.resolve(e.dirname(n),i),r)===null)return null}}catch{}return e.join(a,e.basename(n))}return null}}function u(n,r,i){let a=l(n,i);if(a===null)return null;let o=e.resolve(n);if(o.slice(r.length)!==a.slice(i.length))return null;try{if(t.lstatSync(o).isSymbolicLink())return null}catch{}return a}function d(e,n){if(!t.existsSync(e))throw Error(`${n} root does not exist`);if(!t.statSync(e).isDirectory())throw Error(`${n} root is not a directory`)}function f(e,t,n,r){let i=e;if(i.path===void 0){for(let t of r)if(i.message?.includes(t))throw e}let a=i.code||`EIO`;throw Error(`${a}: ${n} '${t}'`)}export{c as a,i as c,a as d,n as i,o as l,f as n,l as o,u as r,r as s,d as t,s as u};
2
- //# sourceMappingURL=chunk-XHM67O4N-Cd7Fiqsb.mjs.map
2
+ //# sourceMappingURL=chunk-XHM67O4N-akBjDPaR.mjs.map
@@ -1,4 +1,4 @@
1
- import{i as e}from"./chunk-GFQRA5P5-CkMj9l7f.mjs";import{a as t,r as n,t as r}from"./chunk-DXB73IDG-DfmyzFzL.mjs";import{n as i}from"./chunk-5QMZ5MUS-SLhNX8t9.mjs";import{r as a,t as o}from"./chunk-24IMIIXA-_PX4ITYZ.mjs";import{n as s}from"./chunk-3THT3N7L-DrzOuTpA.mjs";import{n as c,r as l,t as u}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as d}from"./chunk-SYMJJMQ4-0QtKvQIP.mjs";import{t as f}from"./chunk-7TSDKFEO-a-GUGBTu.mjs";import{n as p,t as m}from"./chunk-BBXLRYSX-Cxoye6wj.mjs";var h=n((e,t)=>{var{hasOwnProperty:n}=Object.prototype,r=(e,t={})=>{typeof t==`string`&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<`u`&&process.platform,t.bracketedArray=t.bracketedArray!==!1;let n=t.platform===`win32`?`\r
1
+ import{i as e}from"./chunk-GFQRA5P5-DnjwTqP3.mjs";import{a as t,r as n,t as r}from"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as i}from"./chunk-5QMZ5MUS-CAp625aG.mjs";import{r as a,t as o}from"./chunk-24IMIIXA-B6yIPkk2.mjs";import{n as s}from"./chunk-3THT3N7L-DztAF386.mjs";import{n as c,r as l,t as u}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as d}from"./chunk-SYMJJMQ4-tl6Dz6VW.mjs";import{t as f}from"./chunk-7TSDKFEO-a-GUGBTu.mjs";import{n as p,t as m}from"./chunk-BBXLRYSX-DHx5dxhT.mjs";var h=n((e,t)=>{var{hasOwnProperty:n}=Object.prototype,r=(e,t={})=>{typeof t==`string`&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<`u`&&process.platform,t.bracketedArray=t.bracketedArray!==!1;let n=t.platform===`win32`?`\r
2
2
  `:`
3
3
  `,a=t.whitespace?` = `:`=`,o=[],c=t.sort?Object.keys(e).sort():Object.keys(e),l=0;t.align&&(l=s(c.filter(t=>e[t]===null||Array.isArray(e[t])||typeof e[t]!=`object`).map(t=>Array.isArray(e[t])?`${t}[]`:t).concat([``]).reduce((e,t)=>s(e).length>=s(t).length?e:t)).length);let u=``,d=t.bracketedArray?`[]`:``;for(let t of c){let r=e[t];if(r&&Array.isArray(r))for(let e of r)u+=s(`${t}${d}`).padEnd(l,` `)+a+s(e)+n;else r&&typeof r==`object`?o.push(t):u+=s(t).padEnd(l,` `)+a+s(r)+n}t.section&&u.length&&(u=`[`+s(t.section)+`]`+(t.newline?n+n:n)+u);for(let a of o){let o=i(a,`.`).join(`\\.`),s=(t.section?t.section+`.`:``)+o,c=r(e[a],{...t,section:s});u.length&&c.length&&(u+=n),u+=c}return u};function i(e,t){var n=0,r=0,i=0,a=[];do if(i=e.indexOf(t,n),i!==-1){if(n=i+t.length,i>0&&e[i-1]===`\\`)continue;a.push(e.slice(r,i)),r=i+t.length}while(i!==-1);return a.push(e.slice(r)),a}var a=(e,t={})=>{t.bracketedArray=t.bracketedArray!==!1;let r=Object.create(null),a=r,o=null,s=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,l=e.split(/[\r\n]+/g),u={};for(let e of l){if(!e||e.match(/^\s*[;#]/)||e.match(/^\s*$/))continue;let i=e.match(s);if(!i)continue;if(i[1]!==void 0){if(o=c(i[1]),o===`__proto__`){a=Object.create(null);continue}a=r[o]=r[o]||Object.create(null);continue}let l=c(i[2]),d;t.bracketedArray?d=l.length>2&&l.slice(-2)===`[]`:(u[l]=(u?.[l]||0)+1,d=u[l]>1);let f=d&&l.endsWith(`[]`)?l.slice(0,-2):l;if(f===`__proto__`)continue;let p=i[3]?c(i[4]):!0,m=p===`true`||p===`false`||p===`null`?JSON.parse(p):p;d&&(n.call(a,f)?Array.isArray(a[f])||(a[f]=[a[f]]):a[f]=[]),Array.isArray(a[f])?a[f].push(m):a[f]=m}let d=[];for(let e of Object.keys(r)){if(!n.call(r,e)||typeof r[e]!=`object`||Array.isArray(r[e]))continue;let t=i(e,`.`);a=r;let o=t.pop(),s=o.replace(/\\\./g,`.`);for(let e of t)e!==`__proto__`&&((!n.call(a,e)||typeof a[e]!=`object`)&&(a[e]=Object.create(null)),a=a[e]);a===r&&s===o||(a[s]=r[e],d.push(e))}for(let e of d)delete r[e];return r},o=e=>e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`),s=e=>typeof e!=`string`||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&o(e)||e!==e.trim()?JSON.stringify(e):e.split(`;`).join(`\\;`).split(`#`).join(`\\#`),c=e=>{if(e=(e||``).trim(),o(e)){e.charAt(0)===`'`&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let t=!1,n=``;for(let r=0,i=e.length;r<i;r++){let i=e.charAt(r);if(t)`\\;#`.indexOf(i)===-1?n+=`\\`+i:n+=i,t=!1;else{if(`;#`.indexOf(i)!==-1)break;i===`\\`?t=!0:n+=i}}return t&&(n+=`\\`),n.trim()}return e};t.exports={parse:a,decode:a,stringify:r,encode:r,safe:s,unsafe:c}}),g=n(e=>{var t=Symbol.for(`yaml.alias`),n=Symbol.for(`yaml.document`),r=Symbol.for(`yaml.map`),i=Symbol.for(`yaml.pair`),a=Symbol.for(`yaml.scalar`),o=Symbol.for(`yaml.seq`),s=Symbol.for(`yaml.node.type`),c=e=>!!e&&typeof e==`object`&&e[s]===t,l=e=>!!e&&typeof e==`object`&&e[s]===n,u=e=>!!e&&typeof e==`object`&&e[s]===r,d=e=>!!e&&typeof e==`object`&&e[s]===i,f=e=>!!e&&typeof e==`object`&&e[s]===a,p=e=>!!e&&typeof e==`object`&&e[s]===o;function m(e){if(e&&typeof e==`object`)switch(e[s]){case r:case o:return!0}return!1}function h(e){if(e&&typeof e==`object`)switch(e[s]){case t:case r:case a:case o:return!0}return!1}e.ALIAS=t,e.DOC=n,e.MAP=r,e.NODE_TYPE=s,e.PAIR=i,e.SCALAR=a,e.SEQ=o,e.hasAnchor=e=>(f(e)||m(e))&&!!e.anchor,e.isAlias=c,e.isCollection=m,e.isDocument=l,e.isMap=u,e.isNode=h,e.isPair=d,e.isScalar=f,e.isSeq=p}),_=n(e=>{var t=g(),n=Symbol(`break visit`),r=Symbol(`skip children`),i=Symbol(`remove node`);function a(e,n){let r=l(n);t.isDocument(e)?o(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):o(null,e,r,Object.freeze([]))}a.BREAK=n,a.SKIP=r,a.REMOVE=i;function o(e,r,a,s){let c=u(e,r,a,s);if(t.isNode(c)||t.isPair(c))return d(e,s,c),o(e,c,a,s);if(typeof c!=`symbol`){if(t.isCollection(r)){s=Object.freeze(s.concat(r));for(let e=0;e<r.items.length;++e){let t=o(e,r.items[e],a,s);if(typeof t==`number`)e=t-1;else{if(t===n)return n;t===i&&(r.items.splice(e,1),--e)}}}else if(t.isPair(r)){s=Object.freeze(s.concat(r));let e=o(`key`,r.key,a,s);if(e===n)return n;e===i&&(r.key=null);let t=o(`value`,r.value,a,s);if(t===n)return n;t===i&&(r.value=null)}}return c}async function s(e,n){let r=l(n);t.isDocument(e)?await c(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):await c(null,e,r,Object.freeze([]))}s.BREAK=n,s.SKIP=r,s.REMOVE=i;async function c(e,r,a,o){let s=await u(e,r,a,o);if(t.isNode(s)||t.isPair(s))return d(e,o,s),c(e,s,a,o);if(typeof s!=`symbol`){if(t.isCollection(r)){o=Object.freeze(o.concat(r));for(let e=0;e<r.items.length;++e){let t=await c(e,r.items[e],a,o);if(typeof t==`number`)e=t-1;else{if(t===n)return n;t===i&&(r.items.splice(e,1),--e)}}}else if(t.isPair(r)){o=Object.freeze(o.concat(r));let e=await c(`key`,r.key,a,o);if(e===n)return n;e===i&&(r.key=null);let t=await c(`value`,r.value,a,o);if(t===n)return n;t===i&&(r.value=null)}}return s}function l(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function u(e,n,r,i){if(typeof r==`function`)return r(e,n,i);if(t.isMap(n))return r.Map?.(e,n,i);if(t.isSeq(n))return r.Seq?.(e,n,i);if(t.isPair(n))return r.Pair?.(e,n,i);if(t.isScalar(n))return r.Scalar?.(e,n,i);if(t.isAlias(n))return r.Alias?.(e,n,i)}function d(e,n,r){let i=n[n.length-1];if(t.isCollection(i))i.items[e]=r;else if(t.isPair(i))e===`key`?i.key=r:i.value=r;else if(t.isDocument(i))i.contents=r;else{let e=t.isAlias(i)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}e.visit=a,e.visitAsync=s}),v=n(e=>{var t=g(),n=_(),r={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},i=e=>e.replace(/[!,[\]{}]/g,e=>r[e]),a=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+i(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],i=Object.entries(this.tags),a;if(e&&i.length>0&&t.isNode(e.contents)){let r={};n.visit(e.contents,(e,n)=>{t.isNode(n)&&n.tag&&(r[n.tag]=!0)}),a=Object.keys(r)}else a=[];for(let[t,n]of i)t===`!!`&&n===`tag:yaml.org,2002:`||(!e||a.some(e=>e.startsWith(n)))&&r.push(`%TAG ${t} ${n}`);return r.join(`
4
4
  `)}};a.defaultYaml={explicit:!1,version:`1.2`},a.defaultTags={"!!":`tag:yaml.org,2002:`},e.Directives=a}),y=n(e=>{var t=g(),n=_();function r(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function i(e){let t=new Set;return n.visit(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function a(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function o(e,n){let r=[],o=new Map,s=null;return{onAnchor:t=>{r.push(t),s??=i(e);let o=a(n,s);return s.add(o),o},setAnchors:()=>{for(let e of r){let n=o.get(e);if(typeof n==`object`&&n.anchor&&(t.isScalar(n.node)||t.isCollection(n.node)))n.node.anchor=n.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:o}}e.anchorIsValid=r,e.anchorNames=i,e.createNodeAnchors=o,e.findNewAnchor=a}),b=n(e=>{function t(e,n,r,i){if(i&&typeof i==`object`)if(Array.isArray(i))for(let n=0,r=i.length;n<r;++n){let r=i[n],a=t(e,i,String(n),r);a===void 0?delete i[n]:a!==r&&(i[n]=a)}else if(i instanceof Map)for(let n of Array.from(i.keys())){let r=i.get(n),a=t(e,i,n,r);a===void 0?i.delete(n):a!==r&&i.set(n,a)}else if(i instanceof Set)for(let n of Array.from(i)){let r=t(e,i,n,n);r===void 0?i.delete(n):r!==n&&(i.delete(n),i.add(r))}else for(let[n,r]of Object.entries(i)){let a=t(e,i,n,r);a===void 0?delete i[n]:a!==r&&(i[n]=a)}return e.call(n,r,i)}e.applyReviver=t}),x=n(e=>{var t=g();function n(e,r,i){if(Array.isArray(e))return e.map((e,t)=>n(e,String(t),i));if(e&&typeof e.toJSON==`function`){if(!i||!t.hasAnchor(e))return e.toJSON(r,i);let n={aliasCount:0,count:1,res:void 0};i.anchors.set(e,n),i.onCreate=e=>{n.res=e,delete i.onCreate};let a=e.toJSON(r,i);return i.onCreate&&i.onCreate(a),a}return typeof e==`bigint`&&!i?.keep?Number(e):e}e.toJS=n}),S=n(e=>{var t=b(),n=g(),r=x();e.NodeBase=class{constructor(e){Object.defineProperty(this,n.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:i,maxAliasCount:a,onAnchor:o,reviver:s}={}){if(!n.isDocument(e))throw TypeError(`A document argument is required`);let c={anchors:new Map,doc:e,keep:!0,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof a==`number`?a:100},l=r.toJS(this,``,c);if(typeof o==`function`)for(let{count:e,res:t}of c.anchors.values())o(t,e);return typeof s==`function`?t.applyReviver(s,{"":l},``,l):l}}}),C=n(e=>{var t=y(),n=_(),r=g(),i=S(),a=x(),o=class extends i.NodeBase{constructor(e){super(r.ALIAS),this.source=e,Object.defineProperty(this,`tag`,{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){let i;t?.aliasResolveCache?i=t.aliasResolveCache:(i=[],n.visit(e,{Node:(e,t)=>{(r.isAlias(t)||r.hasAnchor(t))&&i.push(t)}}),t&&(t.aliasResolveCache=i));let a;for(let e of i){if(e===this)break;e.anchor===this.source&&(a=e)}return a}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,o=this.resolve(r,t);if(!o){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let c=n.get(o);if(c||=(a.toJS(o,null,t),n.get(o)),c?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=s(r,o,n)),c.count*c.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return c.res}toString(e,n,r){let i=`*${this.source}`;if(e){if(t.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${i} `}return i}};function s(e,t,n){if(r.isAlias(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(r.isCollection(t)){let r=0;for(let i of t.items){let t=s(e,i,n);t>r&&(r=t)}return r}else if(r.isPair(t)){let r=s(e,t.key,n),i=s(e,t.value,n);return Math.max(r,i)}return 1}e.Alias=o}),w=n(e=>{var t=g(),n=S(),r=x(),i=e=>!e||typeof e!=`function`&&typeof e!=`object`,a=class extends n.NodeBase{constructor(e){super(t.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:r.toJS(this.value,e,t)}toString(){return String(this.value)}};a.BLOCK_FOLDED=`BLOCK_FOLDED`,a.BLOCK_LITERAL=`BLOCK_LITERAL`,a.PLAIN=`PLAIN`,a.QUOTE_DOUBLE=`QUOTE_DOUBLE`,a.QUOTE_SINGLE=`QUOTE_SINGLE`,e.Scalar=a,e.isScalarValue=i}),T=n(e=>{var t=C(),n=g(),r=w(),i=`tag:yaml.org,2002:`;function a(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function o(e,o,s){if(n.isDocument(e)&&(e=e.contents),n.isNode(e))return e;if(n.isPair(e)){let t=s.schema[n.MAP].createNode?.(s.schema,null,s);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:c,onAnchor:l,onTagObj:u,schema:d,sourceObjects:f}=s,p;if(c&&e&&typeof e==`object`){if(p=f.get(e),p)return p.anchor??=l(e),new t.Alias(p.anchor);p={anchor:null,node:null},f.set(e,p)}o?.startsWith(`!!`)&&(o=i+o.slice(2));let m=a(e,o,d.tags);if(!m){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new r.Scalar(e);return p&&(p.node=t),t}m=e instanceof Map?d[n.MAP]:Symbol.iterator in Object(e)?d[n.SEQ]:d[n.MAP]}u&&(u(m),delete s.onTagObj);let h=m?.createNode?m.createNode(s.schema,e,s):typeof m?.nodeClass?.from==`function`?m.nodeClass.from(s.schema,e,s):new r.Scalar(e);return o?h.tag=o:m.default||(h.tag=m.tag),p&&(p.node=h),h}e.createNode=o}),E=n(e=>{var t=T(),n=g(),r=S();function i(e,n,r){let i=r;for(let e=n.length-1;e>=0;--e){let t=n[e];if(typeof t==`number`&&Number.isInteger(t)&&t>=0){let e=[];e[t]=i,i=e}else i=new Map([[t,i]])}return t.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var a=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done;e.Collection=class extends r.NodeBase{constructor(e,t){super(e),Object.defineProperty(this,`schema`,{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>n.isNode(t)||n.isPair(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(a(e))this.add(t);else{let[r,...a]=e,o=this.get(r,!0);if(n.isCollection(o))o.addIn(a,t);else if(o===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}deleteIn(e){let[t,...r]=e;if(r.length===0)return this.delete(t);let i=this.get(t,!0);if(n.isCollection(i))return i.deleteIn(r);throw Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){let[r,...i]=e,a=this.get(r,!0);return i.length===0?!t&&n.isScalar(a)?a.value:a:n.isCollection(a)?a.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!n.isPair(t))return!1;let r=t.value;return r==null||e&&n.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){let[t,...r]=e;if(r.length===0)return this.has(t);let i=this.get(t,!0);return n.isCollection(i)?i.hasIn(r):!1}setIn(e,t){let[r,...a]=e;if(a.length===0)this.set(r,t);else{let e=this.get(r,!0);if(n.isCollection(e))e.setIn(a,t);else if(e===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}},e.collectionFromPath=i,e.isEmptyPath=a}),D=n(e=>{var t=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function n(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}e.indentComment=n,e.lineComment=(e,t,r)=>e.endsWith(`
@@ -285,4 +285,4 @@ smol-toml/dist/index.js:
285
285
  *)
286
286
  */
287
287
  export{rr as n,nr as t};
288
- //# sourceMappingURL=chunk-XORM457F-BAW3OKIy.mjs.map
288
+ //# sourceMappingURL=chunk-XORM457F-BlSrSdGX.mjs.map
@@ -1,4 +1,4 @@
1
- import{i as e}from"./chunk-GFQRA5P5-CkMj9l7f.mjs";import{n as t}from"./chunk-5QMZ5MUS-SLhNX8t9.mjs";import{r as n,t as r}from"./chunk-24IMIIXA-_PX4ITYZ.mjs";import{n as i}from"./chunk-3THT3N7L-DrzOuTpA.mjs";import{n as a,r as o,t as s}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{n as c}from"./chunk-7L36YK2X-RiPZFKaV.mjs";import{t as l}from"./chunk-7TSDKFEO-a-GUGBTu.mjs";import{n as u,t as d}from"./chunk-BBXLRYSX-Cxoye6wj.mjs";function f(e){let t=[],n=0,r=e.length;for(;n<r;){for(;n<r&&/\s/.test(e[n]);)n++;if(n>=r)break;let i=n,a=e[n];if(a===`{`||a===`[`){let o=a,s=a===`{`?`}`:`]`,c=1,u=!1,d=!1;for(n++;n<r&&c>0;){let t=e[n];d?d=!1:t===`\\`?d=!0:t===`"`?u=!u:u||(t===o?c++:t===s&&c--),n++}if(c!==0)throw Error(`Unexpected end of JSON input at position ${n} (unclosed ${o})`);t.push(l(JSON.parse(e.slice(i,n))))}else if(a===`"`){let a=!1;for(n++;n<r;){let t=e[n];if(a)a=!1;else if(t===`\\`)a=!0;else if(t===`"`){n++;break}n++}t.push(l(JSON.parse(e.slice(i,n))))}else if(a===`-`||a>=`0`&&a<=`9`){for(;n<r&&/[\d.eE+-]/.test(e[n]);)n++;t.push(l(JSON.parse(e.slice(i,n))))}else if(e.slice(n,n+4)===`true`)t.push(!0),n+=4;else if(e.slice(n,n+5)===`false`)t.push(!1),n+=5;else if(e.slice(n,n+4)===`null`)t.push(null),n+=4;else{let t=e.slice(n,n+10);throw Error(`Invalid JSON at position ${i}: unexpected '${t.split(/\s/)[0]}'`)}}return t}var p={name:`jq`,summary:`command-line JSON processor`,usage:`jq [OPTIONS] FILTER [FILE]`,options:[`-r, --raw-output output strings without quotes`,`-c, --compact compact output (no pretty printing)`,`-e, --exit-status set exit status based on output`,`-s, --slurp read entire input into array`,`-n, --null-input don't read any input`,`-j, --join-output don't print newlines after each output`,`-a, --ascii force ASCII output`,`-S, --sort-keys sort object keys`,`-C, --color colorize output (ignored)`,`-M, --monochrome monochrome output (ignored)`,` --tab use tabs for indentation`,` --help display this help and exit`]};function m(e,t,n,r,i,a=0){if(e==null)return`null`;if(typeof e==`boolean`)return String(e);if(typeof e==`number`)return Number.isFinite(e)?String(e):`null`;if(typeof e==`string`)return n?e:JSON.stringify(e);let o=i?` `:` `;if(Array.isArray(e))return e.length===0?`[]`:t?`[${e.map(e=>m(e,!0,!1,r,i)).join(`,`)}]`:`[
1
+ import{i as e}from"./chunk-GFQRA5P5-DnjwTqP3.mjs";import{n as t}from"./chunk-5QMZ5MUS-CAp625aG.mjs";import{r as n,t as r}from"./chunk-24IMIIXA-B6yIPkk2.mjs";import{n as i}from"./chunk-3THT3N7L-DztAF386.mjs";import{n as a,r as o,t as s}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{n as c}from"./chunk-7L36YK2X-RiPZFKaV.mjs";import{t as l}from"./chunk-7TSDKFEO-a-GUGBTu.mjs";import{n as u,t as d}from"./chunk-BBXLRYSX-DHx5dxhT.mjs";function f(e){let t=[],n=0,r=e.length;for(;n<r;){for(;n<r&&/\s/.test(e[n]);)n++;if(n>=r)break;let i=n,a=e[n];if(a===`{`||a===`[`){let o=a,s=a===`{`?`}`:`]`,c=1,u=!1,d=!1;for(n++;n<r&&c>0;){let t=e[n];d?d=!1:t===`\\`?d=!0:t===`"`?u=!u:u||(t===o?c++:t===s&&c--),n++}if(c!==0)throw Error(`Unexpected end of JSON input at position ${n} (unclosed ${o})`);t.push(l(JSON.parse(e.slice(i,n))))}else if(a===`"`){let a=!1;for(n++;n<r;){let t=e[n];if(a)a=!1;else if(t===`\\`)a=!0;else if(t===`"`){n++;break}n++}t.push(l(JSON.parse(e.slice(i,n))))}else if(a===`-`||a>=`0`&&a<=`9`){for(;n<r&&/[\d.eE+-]/.test(e[n]);)n++;t.push(l(JSON.parse(e.slice(i,n))))}else if(e.slice(n,n+4)===`true`)t.push(!0),n+=4;else if(e.slice(n,n+5)===`false`)t.push(!1),n+=5;else if(e.slice(n,n+4)===`null`)t.push(null),n+=4;else{let t=e.slice(n,n+10);throw Error(`Invalid JSON at position ${i}: unexpected '${t.split(/\s/)[0]}'`)}}return t}var p={name:`jq`,summary:`command-line JSON processor`,usage:`jq [OPTIONS] FILTER [FILE]`,options:[`-r, --raw-output output strings without quotes`,`-c, --compact compact output (no pretty printing)`,`-e, --exit-status set exit status based on output`,`-s, --slurp read entire input into array`,`-n, --null-input don't read any input`,`-j, --join-output don't print newlines after each output`,`-a, --ascii force ASCII output`,`-S, --sort-keys sort object keys`,`-C, --color colorize output (ignored)`,`-M, --monochrome monochrome output (ignored)`,` --tab use tabs for indentation`,` --help display this help and exit`]};function m(e,t,n,r,i,a=0){if(e==null)return`null`;if(typeof e==`boolean`)return String(e);if(typeof e==`number`)return Number.isFinite(e)?String(e):`null`;if(typeof e==`string`)return n?e:JSON.stringify(e);let o=i?` `:` `;if(Array.isArray(e))return e.length===0?`[]`:t?`[${e.map(e=>m(e,!0,!1,r,i)).join(`,`)}]`:`[
2
2
  ${e.map(e=>o.repeat(a+1)+m(e,!1,!1,r,i,a+1)).join(`,
3
3
  `)}
4
4
  ${o.repeat(a)}]`;if(typeof e==`object`){let n=Object.keys(e);return r&&(n=n.sort()),n.length===0?`{}`:t?`{${n.map(t=>`${JSON.stringify(t)}:${m(e[t],!0,!1,r,i)}`).join(`,`)}}`:`{
@@ -10,4 +10,4 @@ ${o.repeat(a)}}`}return String(e)}var h={name:`jq`,async execute(l,h){r(h.requir
10
10
  `,exitCode:e.EXIT_CODE};let r=i(n.message);return r.includes(`Unknown function`)?{stdout:``,stderr:`jq: error: ${r}
11
11
  `,exitCode:3}:{stdout:``,stderr:`jq: parse error: ${r}
12
12
  `,exitCode:5}}}},g={name:`jq`,flags:[{flag:`-r`,type:`boolean`},{flag:`-c`,type:`boolean`},{flag:`-e`,type:`boolean`},{flag:`-s`,type:`boolean`},{flag:`-n`,type:`boolean`},{flag:`-j`,type:`boolean`},{flag:`-S`,type:`boolean`},{flag:`--tab`,type:`boolean`}],stdinType:`json`,needsArgs:!0};export{g as n,h as t};
13
- //# sourceMappingURL=chunk-YCFVLTST-PFJX6AMj.mjs.map
13
+ //# sourceMappingURL=chunk-YCFVLTST-uJkMN44i.mjs.map
@@ -1,5 +1,5 @@
1
- import{t as e}from"./chunk-YNYSPYQ5-Dq-BWW-f.mjs";import{n as t}from"./chunk-3THT3N7L-DrzOuTpA.mjs";var n={name:`expr`,async execute(e,n){if(e.length===0)return{stdout:``,stderr:`expr: missing operand
1
+ import{t as e}from"./chunk-YNYSPYQ5-DesxOVHh.mjs";import{n as t}from"./chunk-3THT3N7L-DztAF386.mjs";var n={name:`expr`,async execute(e,n){if(e.length===0)return{stdout:``,stderr:`expr: missing operand
2
2
  `,exitCode:2};try{let t=r(e),n=t===`0`||t===``?1:0;return{stdout:`${t}
3
3
  `,stderr:``,exitCode:n}}catch(e){return{stdout:``,stderr:`expr: ${t(e.message)}
4
4
  `,exitCode:2}}}};function r(t){if(t.length===1)return t[0];let n=0;function r(){let e=i();for(;n<t.length&&t[n]===`|`;){n++;let t=i();if(e!==`0`&&e!==``)return e;e=t}return e}function i(){let e=a();for(;n<t.length&&t[n]===`&`;){n++;let t=a();(e===`0`||e===``||t===`0`||t===``)&&(e=`0`)}return e}function a(){let e=o();for(;n<t.length;){let r=t[n];if([`=`,`!=`,`<`,`>`,`<=`,`>=`].includes(r)){n++;let t=o(),i=parseInt(e,10),a=parseInt(t,10),s=!Number.isNaN(i)&&!Number.isNaN(a),c;c=r===`=`?s?i===a:e===t:r===`!=`?s?i!==a:e!==t:r===`<`?s?i<a:e<t:r===`>`?s?i>a:e>t:r===`<=`?s?i<=a:e<=t:s?i>=a:e>=t,e=c?`1`:`0`}else break}return e}function o(){let e=s();for(;n<t.length;){let r=t[n];if(r===`+`||r===`-`){n++;let t=s(),i=parseInt(e,10),a=parseInt(t,10);if(Number.isNaN(i)||Number.isNaN(a))throw Error(`non-integer argument`);e=String(r===`+`?i+a:i-a)}else break}return e}function s(){let e=c();for(;n<t.length;){let r=t[n];if(r===`*`||r===`/`||r===`%`){n++;let t=c(),i=parseInt(e,10),a=parseInt(t,10);if(Number.isNaN(i)||Number.isNaN(a))throw Error(`non-integer argument`);if((r===`/`||r===`%`)&&a===0)throw Error(`division by zero`);e=String(r===`*`?i*a:r===`/`?Math.trunc(i/a):i%a)}else break}return e}function c(){let r=l();for(;n<t.length&&t[n]===`:`;){n++;let t=e(`^${l()}`).match(r);r=t?t[1]===void 0?String(t[0].length):t[1]:`0`}return r}function l(){if(n>=t.length)throw Error(`syntax error`);let i=t[n];if(i===`match`){n++;let t=l(),r=e(l()).match(t);return r?r[1]===void 0?String(r[0].length):r[1]:`0`}if(i===`substr`){n++;let e=l(),t=parseInt(l(),10),r=parseInt(l(),10);if(Number.isNaN(t)||Number.isNaN(r))throw Error(`non-integer argument`);return e.substring(t-1,t-1+r)}if(i===`index`){n++;let e=l(),t=l();for(let n=0;n<e.length;n++)if(t.includes(e[n]))return String(n+1);return`0`}if(i===`length`){n++;let e=l();return String(e.length)}if(i===`(`){n++;let e=r();if(n>=t.length||t[n]!==`)`)throw Error(`syntax error`);return n++,e}return n++,i}return r()}var i={name:`expr`,flags:[],needsArgs:!0};export{n,i as t};
5
- //# sourceMappingURL=chunk-YFG2CMIF-CVDz5Fsh.mjs.map
5
+ //# sourceMappingURL=chunk-YFG2CMIF-DYVCRkoM.mjs.map
@@ -31,4 +31,4 @@ re2js/build/index.esm.js:
31
31
  *)
32
32
  */
33
33
  export{ce as n,se as t};
34
- //# sourceMappingURL=chunk-YNYSPYQ5-Dq-BWW-f.mjs.map
34
+ //# sourceMappingURL=chunk-YNYSPYQ5-DesxOVHh.mjs.map
@@ -1,4 +1,4 @@
1
- import{n as e,r as t,t as n}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as r}from"./chunk-J642UCRS-D2hPh3Cf.mjs";import{n as i,t as a}from"./chunk-VLGZJRPG-B678hnuU.mjs";var o={name:`grep`,summary:`print lines that match patterns`,usage:`grep [OPTION]... PATTERN [FILE]...`,options:[`-E, --extended-regexp PATTERN is an extended regular expression`,`-P, --perl-regexp PATTERN is a Perl regular expression`,`-F, --fixed-strings PATTERN is a set of newline-separated strings`,`-i, --ignore-case ignore case distinctions`,`-v, --invert-match select non-matching lines`,`-w, --word-regexp match only whole words`,`-x, --line-regexp match only whole lines`,`-c, --count print only a count of matching lines`,`-l, --files-with-matches print only names of files with matches`,`-L, --files-without-match print names of files with no matches`,`-m NUM, --max-count=NUM stop after NUM matches`,`-n, --line-number print line number with output lines`,`-h, --no-filename suppress the file name prefix on output`,`-o, --only-matching show only nonempty parts of lines that match`,`-q, --quiet, --silent suppress all normal output`,`-r, -R, --recursive search directories recursively`,`-A NUM print NUM lines of trailing context`,`-B NUM print NUM lines of leading context`,`-C NUM print NUM lines of context`,`-e PATTERN use PATTERN for matching`,` --include=GLOB search only files matching GLOB`,` --exclude=GLOB skip files matching GLOB`,` --exclude-dir=DIR skip directories matching DIR`,` --help display this help and exit`]},s={name:`grep`,async execute(s,c){if(n(s))return t(o);let l=!1,f=!1,p=!1,m=!1,h=!1,g=!1,_=!1,v=!1,y=!1,b=!1,x=!1,S=!1,C=!1,w=!1,T=!1,E=0,D=0,O=0,k=[],A=[],j=[],M=null,N=[];for(let t=0;t<s.length;t++){let n=s[t];if(n.startsWith(`-`)&&n!==`-`){if(n===`-e`&&t+1<s.length){M=s[++t];continue}if(n.startsWith(`--include=`)){k.push(n.slice(10));continue}if(n.startsWith(`--exclude=`)){A.push(n.slice(10));continue}if(n.startsWith(`--exclude-dir=`)){j.push(n.slice(14));continue}if(n.startsWith(`--max-count=`)){E=parseInt(n.slice(12),10);continue}let r=n.match(/^-m(\d+)$/);if(r){E=parseInt(r[1],10);continue}if(n===`-m`&&t+1<s.length){E=parseInt(s[++t],10);continue}let i=n.match(/^-([ABC])(\d+)$/);if(i){let e=parseInt(i[2],10);i[1]===`A`?O=e:i[1]===`B`?D=e:i[1]===`C`&&(D=e,O=e);continue}if((n===`-A`||n===`-B`||n===`-C`)&&t+1<s.length){let e=parseInt(s[++t],10);n===`-A`?O=e:n===`-B`?D=e:(D=e,O=e);continue}let a=n.startsWith(`--`)?[n]:n.slice(1).split(``);for(let t of a)if(t===`i`||t===`--ignore-case`)l=!0;else if(t===`n`||t===`--line-number`)f=!0;else if(t===`v`||t===`--invert-match`)p=!0;else if(t===`c`||t===`--count`)m=!0;else if(t===`l`||t===`--files-with-matches`)h=!0;else if(t===`L`||t===`--files-without-match`)g=!0;else if(t===`r`||t===`R`||t===`--recursive`)_=!0;else if(t===`w`||t===`--word-regexp`)v=!0;else if(t===`x`||t===`--line-regexp`)y=!0;else if(t===`E`||t===`--extended-regexp`)b=!0;else if(t===`P`||t===`--perl-regexp`)x=!0;else if(t===`F`||t===`--fixed-strings`)S=!0;else if(t===`o`||t===`--only-matching`)C=!0;else if(t===`h`||t===`--no-filename`)w=!0;else if(t===`q`||t===`--quiet`||t===`--silent`)T=!0;else{if(t.startsWith(`--`))return e(`grep`,t);if(t.length===1)return e(`grep`,`-${t}`)}}else M===null?M=n:N.push(n)}if(M===null)return{stdout:``,stderr:`grep: missing pattern
1
+ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as r}from"./chunk-J642UCRS-DuJ82Ao2.mjs";import{n as i,t as a}from"./chunk-VLGZJRPG-ChVasMna.mjs";var o={name:`grep`,summary:`print lines that match patterns`,usage:`grep [OPTION]... PATTERN [FILE]...`,options:[`-E, --extended-regexp PATTERN is an extended regular expression`,`-P, --perl-regexp PATTERN is a Perl regular expression`,`-F, --fixed-strings PATTERN is a set of newline-separated strings`,`-i, --ignore-case ignore case distinctions`,`-v, --invert-match select non-matching lines`,`-w, --word-regexp match only whole words`,`-x, --line-regexp match only whole lines`,`-c, --count print only a count of matching lines`,`-l, --files-with-matches print only names of files with matches`,`-L, --files-without-match print names of files with no matches`,`-m NUM, --max-count=NUM stop after NUM matches`,`-n, --line-number print line number with output lines`,`-h, --no-filename suppress the file name prefix on output`,`-o, --only-matching show only nonempty parts of lines that match`,`-q, --quiet, --silent suppress all normal output`,`-r, -R, --recursive search directories recursively`,`-A NUM print NUM lines of trailing context`,`-B NUM print NUM lines of leading context`,`-C NUM print NUM lines of context`,`-e PATTERN use PATTERN for matching`,` --include=GLOB search only files matching GLOB`,` --exclude=GLOB skip files matching GLOB`,` --exclude-dir=DIR skip directories matching DIR`,` --help display this help and exit`]},s={name:`grep`,async execute(s,c){if(n(s))return t(o);let l=!1,f=!1,p=!1,m=!1,h=!1,g=!1,_=!1,v=!1,y=!1,b=!1,x=!1,S=!1,C=!1,w=!1,T=!1,E=0,D=0,O=0,k=[],A=[],j=[],M=null,N=[];for(let t=0;t<s.length;t++){let n=s[t];if(n.startsWith(`-`)&&n!==`-`){if(n===`-e`&&t+1<s.length){M=s[++t];continue}if(n.startsWith(`--include=`)){k.push(n.slice(10));continue}if(n.startsWith(`--exclude=`)){A.push(n.slice(10));continue}if(n.startsWith(`--exclude-dir=`)){j.push(n.slice(14));continue}if(n.startsWith(`--max-count=`)){E=parseInt(n.slice(12),10);continue}let r=n.match(/^-m(\d+)$/);if(r){E=parseInt(r[1],10);continue}if(n===`-m`&&t+1<s.length){E=parseInt(s[++t],10);continue}let i=n.match(/^-([ABC])(\d+)$/);if(i){let e=parseInt(i[2],10);i[1]===`A`?O=e:i[1]===`B`?D=e:i[1]===`C`&&(D=e,O=e);continue}if((n===`-A`||n===`-B`||n===`-C`)&&t+1<s.length){let e=parseInt(s[++t],10);n===`-A`?O=e:n===`-B`?D=e:(D=e,O=e);continue}let a=n.startsWith(`--`)?[n]:n.slice(1).split(``);for(let t of a)if(t===`i`||t===`--ignore-case`)l=!0;else if(t===`n`||t===`--line-number`)f=!0;else if(t===`v`||t===`--invert-match`)p=!0;else if(t===`c`||t===`--count`)m=!0;else if(t===`l`||t===`--files-with-matches`)h=!0;else if(t===`L`||t===`--files-without-match`)g=!0;else if(t===`r`||t===`R`||t===`--recursive`)_=!0;else if(t===`w`||t===`--word-regexp`)v=!0;else if(t===`x`||t===`--line-regexp`)y=!0;else if(t===`E`||t===`--extended-regexp`)b=!0;else if(t===`P`||t===`--perl-regexp`)x=!0;else if(t===`F`||t===`--fixed-strings`)S=!0;else if(t===`o`||t===`--only-matching`)C=!0;else if(t===`h`||t===`--no-filename`)w=!0;else if(t===`q`||t===`--quiet`||t===`--silent`)T=!0;else{if(t.startsWith(`--`))return e(`grep`,t);if(t.length===1)return e(`grep`,`-${t}`)}}else M===null?M=n:N.push(n)}if(M===null)return{stdout:``,stderr:`grep: missing pattern
2
2
  `,exitCode:2};let P=S?`fixed`:b?`extended`:x?`perl`:`basic`,F,I;try{let e=i(M,{mode:P,ignoreCase:l,wholeWord:v,lineRegexp:y});F=e.regex,I=e.kResetGroup}catch{return{stdout:``,stderr:`grep: invalid regular expression: ${M}
3
3
  `,exitCode:2}}if(N.length===0&&c.stdin!==void 0){let e=a(c.stdin,F,{invertMatch:p,showLineNumbers:f,countOnly:m,filename:``,onlyMatching:C,beforeContext:D,afterContext:O,maxCount:E,kResetGroup:I});return T?{stdout:``,stderr:``,exitCode:e.matched?0:1}:{stdout:e.output,stderr:``,exitCode:e.matched?0:1}}if(N.length===0)return{stdout:``,stderr:`grep: no input files
4
4
  `,exitCode:2};let L=``,R=``,z=!1,B=!1,V=[];for(let e of N)if(e.includes(`*`)||e.includes(`?`)||e.includes(`[`)){let t=await u(e,c);if(_)for(let e of t){let t=await d(e.path,c,k,A,j,e.isFile);V.push(...t)}else V.push(...t)}else if(_){let t=await d(e,c,k,A,j);V.push(...t)}else V.push({path:e});let H=(V.length>1||_)&&!w;for(let e=0;e<V.length;e+=50){let t=V.slice(e,e+50),n=await Promise.all(t.map(async e=>{let t=e.path,n=t.split(`/`).pop()||t;if(A.length>0&&!_&&A.some(e=>r(n,e,{stripQuotes:!0}))||k.length>0&&!_&&!k.some(e=>r(n,e,{stripQuotes:!0})))return null;try{let n=c.fs.resolvePath(c.cwd,t),r=!1;return r=e.isFile===void 0?(await c.fs.stat(n)).isDirectory:!e.isFile,r?_?null:{error:`grep: ${t}: Is a directory
@@ -6,4 +6,4 @@ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as r}fr
6
6
  `}}}));for(let e of n){if(e===null)continue;if(`error`in e&&e.error){R+=e.error,e.error.includes(`Is a directory`)||(B=!0);continue}if(!(`file`in e)||!e.result)continue;let{file:t,result:n}=e;if(n.matched){if(z=!0,T)return{stdout:``,stderr:``,exitCode:0};h?L+=`${t}
7
7
  `:g||(L+=n.output)}else g?L+=`${t}
8
8
  `:m&&!h&&(L+=n.output)}}let U;return U=B?2:g?L.length>0?0:1:z?0:1,T?{stdout:``,stderr:``,exitCode:U}:{stdout:L,stderr:R,exitCode:U}}},c=256;async function l(e,t,n,i,a=0){if(a>=c)return;let o=n.fs.resolvePath(n.cwd,e);try{if(!(await n.fs.stat(o)).isDirectory){let n=e.split(`/`).pop()||``;t&&r(n,t.replace(/^\//,``),{stripQuotes:!0})&&i.push(e);return}let s=await n.fs.readdir(o);for(let o of s){let s=e===`.`?o:`${e}/${o}`,c=n.fs.resolvePath(n.cwd,s);(await n.fs.stat(c)).isDirectory?await l(s,t,n,i,a+1):t&&r(o,t.replace(/^\//,``),{stripQuotes:!0})&&i.push(s)}}catch{}}async function u(e,t){let n=[],i=e.lastIndexOf(`/`),a,o;if(i===-1?(a=t.cwd,o=e):(a=e.slice(0,i)||`/`,o=e.slice(i+1)),e.includes(`**`)){let n=[],r=e.split(`**`);return await l(r[0].replace(/\/$/,``)||`.`,r[1]||``,t,n),n.map(e=>({path:e}))}let s=t.fs.resolvePath(t.cwd,a);try{if(t.fs.readdirWithFileTypes){let e=await t.fs.readdirWithFileTypes(s);for(let t of e)if(r(t.name,o,{stripQuotes:!0})){let e=i===-1?t.name:`${a}/${t.name}`;n.push({path:e,isFile:t.isFile})}}else{let e=await t.fs.readdir(s);for(let t of e)if(r(t,o,{stripQuotes:!0})){let e=i===-1?t:`${a}/${t}`;n.push({path:e})}}}catch{}return n.sort((e,t)=>e.path.localeCompare(t.path))}async function d(e,t,n=[],i=[],a=[],o,s=0){if(s>=c)return[];let l=t.fs.resolvePath(t.cwd,e),u=[];try{let c,f;if(o!==void 0)c=o,f=!o;else{let e=await t.fs.stat(l);c=e.isFile,f=e.isDirectory}if(c){let t=e.split(`/`).pop()||e;return i.length>0&&i.some(e=>r(t,e,{stripQuotes:!0}))||n.length>0&&!n.some(e=>r(t,e,{stripQuotes:!0}))?[]:[{path:e,isFile:!0}]}if(!f)return[];let p=e.split(`/`).pop()||e;if(a.length>0&&a.some(e=>r(p,e,{stripQuotes:!0})))return[];if(t.fs.readdirWithFileTypes){let r=await t.fs.readdirWithFileTypes(l);for(let o of r){if(o.name.startsWith(`.`))continue;let r=await d(e===`.`?o.name:`${e}/${o.name}`,t,n,i,a,o.isFile,s+1);u.push(...r)}}else{let r=await t.fs.readdir(l);for(let o of r){if(o.startsWith(`.`))continue;let r=await d(e===`.`?o:`${e}/${o}`,t,n,i,a,void 0,s+1);u.push(...r)}}}catch{}return u}var f={name:`fgrep`,async execute(e,t){return s.execute([`-F`,...e],t)}},p={name:`egrep`,async execute(e,t){return s.execute([`-E`,...e],t)}},m={name:`grep`,flags:[{flag:`-E`,type:`boolean`},{flag:`-F`,type:`boolean`},{flag:`-P`,type:`boolean`},{flag:`-i`,type:`boolean`},{flag:`-v`,type:`boolean`},{flag:`-w`,type:`boolean`},{flag:`-x`,type:`boolean`},{flag:`-c`,type:`boolean`},{flag:`-l`,type:`boolean`},{flag:`-L`,type:`boolean`},{flag:`-n`,type:`boolean`},{flag:`-h`,type:`boolean`},{flag:`-o`,type:`boolean`},{flag:`-q`,type:`boolean`},{flag:`-r`,type:`boolean`},{flag:`-m`,type:`value`,valueHint:`number`},{flag:`-A`,type:`value`,valueHint:`number`},{flag:`-B`,type:`value`,valueHint:`number`},{flag:`-C`,type:`value`,valueHint:`number`},{flag:`-e`,type:`value`,valueHint:`pattern`}],stdinType:`text`,needsArgs:!0},h={name:`fgrep`,flags:[],stdinType:`text`,needsArgs:!0},g={name:`egrep`,flags:[],stdinType:`text`,needsArgs:!0};export{g as a,s as i,h as n,m as o,p as r,f as t};
9
- //# sourceMappingURL=chunk-YS3AZT3J-DRSVwRFh.mjs.map
9
+ //# sourceMappingURL=chunk-YS3AZT3J-DqU1hDNV.mjs.map
@@ -1,4 +1,4 @@
1
- import{n as e,t}from"./chunk-A5O5YHGN-DQP-O5US.mjs";import{t as n}from"./chunk-IPJHKYVM-orb6vjJ1.mjs";import{n as r,r as i,t as a}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as o}from"./chunk-3ZUFRYJ4-C93H8j0V.mjs";var s={name:`timeout`,summary:`run a command with a time limit`,usage:`timeout [OPTION] DURATION COMMAND [ARG]...`,description:`Start COMMAND, and kill it if still running after DURATION.
1
+ import{n as e,t}from"./chunk-A5O5YHGN-DvJz5Cpw.mjs";import{t as n}from"./chunk-IPJHKYVM-C3IodQq7.mjs";import{n as r,r as i,t as a}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as o}from"./chunk-3ZUFRYJ4-C93H8j0V.mjs";var s={name:`timeout`,summary:`run a command with a time limit`,usage:`timeout [OPTION] DURATION COMMAND [ARG]...`,description:`Start COMMAND, and kill it if still running after DURATION.
2
2
 
3
3
  DURATION is a number with optional suffix:
4
4
  s - seconds (default)
@@ -9,4 +9,4 @@ DURATION is a number with optional suffix:
9
9
  `,exitCode:1};let m=d.slice(1);if(m.length===0)return{stdout:``,stderr:`timeout: missing operand
10
10
  `,exitCode:1};if(!l.exec)return{stdout:``,stderr:`timeout: exec not available
11
11
  `,exitCode:1};let h=new AbortController,g;try{let e=new Promise(e=>{g=t(()=>{h.abort(),e({timedOut:!0})},p)}),r=l.exec(n([m[0]]),{cwd:l.cwd,signal:h.signal,stdin:l.stdin,args:m.slice(1)}).then(e=>({timedOut:!1,result:e})),i=await Promise.race([e,r]);return i.timedOut?{stdout:``,stderr:``,exitCode:124}:i.result}finally{g!==void 0&&e(g)}}},l={name:`timeout`,flags:[{flag:`-k`,type:`value`,valueHint:`string`},{flag:`-s`,type:`value`,valueHint:`string`},{flag:`--preserve-status`,type:`boolean`},{flag:`--foreground`,type:`boolean`}],needsArgs:!0,minArgs:2};export{c as n,l as t};
12
- //# sourceMappingURL=chunk-YTNYSM6T-KUvMCIKS.mjs.map
12
+ //# sourceMappingURL=chunk-YTNYSM6T-ChSQxUVG.mjs.map
@@ -1,4 +1,4 @@
1
- import{r as e}from"./chunk-CWQS3NFK-BQ5SUtd7.mjs";import{t}from"./chunk-IPJHKYVM-orb6vjJ1.mjs";import{r as n}from"./chunk-OJDRYQWQ-D4lSWh0K.mjs";import{n as r}from"./chunk-3THT3N7L-DrzOuTpA.mjs";var i={name:`time`,async execute(i,o){let s=`%e %M`,c=null,l=!1,u=!1,d=0;for(;d<i.length;){let e=i[d];if(e===`-f`||e===`--format`){if(d++,d>=i.length)return{stdout:``,stderr:`time: missing argument to '-f'
1
+ import{r as e}from"./chunk-CWQS3NFK-Co4ALolT.mjs";import{t}from"./chunk-IPJHKYVM-C3IodQq7.mjs";import{r as n}from"./chunk-OJDRYQWQ-ikvLWpfV.mjs";import{n as r}from"./chunk-3THT3N7L-DztAF386.mjs";var i={name:`time`,async execute(i,o){let s=`%e %M`,c=null,l=!1,u=!1,d=0;for(;d<i.length;){let e=i[d];if(e===`-f`||e===`--format`){if(d++,d>=i.length)return{stdout:``,stderr:`time: missing argument to '-f'
2
2
  `,exitCode:1};s=i[d],d++}else if(e===`-o`||e===`--output`){if(d++,d>=i.length)return{stdout:``,stderr:`time: missing argument to '-o'
3
3
  `,exitCode:1};c=i[d],d++}else if(e===`-a`||e===`--append`)l=!0,d++;else if(e===`-v`||e===`--verbose`)s=`Command being timed: %C
4
4
  Elapsed (wall clock) time: %e seconds
@@ -11,4 +11,4 @@ sys 0.00
11
11
  `)||(_+=`
12
12
  `)),c)try{let e=o.fs.resolvePath(o.cwd,c);if(l&&await o.fs.exists(e)){let t=await o.fs.readFile(e);await o.fs.writeFile(e,t+_)}else await o.fs.writeFile(e,_)}catch(e){let t=r(e.message);return{stdout:h.stdout,stderr:h.stderr+`time: cannot write to '${c}': ${t}
13
13
  `,exitCode:h.exitCode}}else h={...h,stderr:h.stderr+_};return h}};function a(e){let t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=e%60;return t>0?`${t}:${n.toString().padStart(2,`0`)}:${r.toFixed(2).padStart(5,`0`)}`:`${n}:${r.toFixed(2).padStart(5,`0`)}`}var o={name:`time`,flags:[{flag:`-p`,type:`boolean`}],needsArgs:!0};export{i as n,o as t};
14
- //# sourceMappingURL=chunk-Z6LRHWXI-CF_r-CgG.mjs.map
14
+ //# sourceMappingURL=chunk-Z6LRHWXI-CEAGkbzj.mjs.map
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-LL3S3NLB-DxXgE3kY.mjs";export{e as clearCommand};
package/dist/cli.d.mts CHANGED
@@ -1 +1,5 @@
1
- export { };
1
+ //#region src/cli.d.ts
2
+ declare function getCliLogger(): PinoLoggerInstance | undefined;
3
+ //#endregion
4
+ export { getCliLogger };
5
+ //# sourceMappingURL=cli.d.mts.map