@inkeep/open-knowledge 0.49.0 → 0.49.1

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 (539) hide show
  1. package/dist/{abnfDiagram-VRR7QNED-DQjgDcgA.mjs → abnfDiagram-VRR7QNED-DWDzSKGM.mjs} +2 -2
  2. package/dist/{acp-harness-probe-DOXp9Wx4.mjs → acp-harness-probe-C8FhVWZi.mjs} +3 -3
  3. package/dist/alias-JE7RI5QX-BLuOrjl2.mjs +7 -0
  4. package/dist/alias-JE7RI5QX-VxEqWoTW.mjs +1 -0
  5. package/dist/{arc-CO8jsQkL.mjs → arc-DXUbbcxK.mjs} +2 -2
  6. package/dist/architecture-TIHT7OUA-Bl3hpxt3.mjs +1 -0
  7. package/dist/{architectureDiagram-ZJ3FMSHR-CkUIG8wd.mjs → architectureDiagram-ZJ3FMSHR-HYEpY7T3.mjs} +2 -2
  8. package/dist/{array-Cerc_8W3.mjs → array-BbgQa93P.mjs} +1 -1
  9. package/dist/awk2-BBAGSFUB-ClUuupKf.mjs +21 -0
  10. package/dist/{awk2-BBAGSFUB-BH8WxyhW.mjs → awk2-BBAGSFUB-Dq-YdAGA.mjs} +1 -1
  11. package/dist/{banner-CIK2GwPx.mjs → banner-Be20aAVc.mjs} +1 -1
  12. package/dist/base64-4YMZCVJ5-CtkujsXK.mjs +6 -0
  13. package/dist/{base64-4YMZCVJ5-CDuRvFBG.mjs → base64-4YMZCVJ5-dXz6vbV-.mjs} +1 -1
  14. package/dist/{basename-AA2KJYZQ-sv8gJZXS.mjs → basename-AA2KJYZQ-BhoOTAHi.mjs} +1 -1
  15. package/dist/basename-AA2KJYZQ-CEdH80GO.mjs +6 -0
  16. package/dist/bash-IJWYRKFO-BDtU-lTC.mjs +6 -0
  17. package/dist/bash-IJWYRKFO-jaJEvAZe.mjs +1 -0
  18. package/dist/{blockDiagram-677ZJIJ3-sLhYyPCr.mjs → blockDiagram-677ZJIJ3-yJugV29e.mjs} +2 -2
  19. package/dist/{c4Diagram-LMCZKHZV-Cg6dfUXU.mjs → c4Diagram-LMCZKHZV-BFQQLctA.mjs} +2 -2
  20. package/dist/cat-RDUMLXKC-D1H4LA3Z.mjs +6 -0
  21. package/dist/{cat-RDUMLXKC-BtNo16C3.mjs → cat-RDUMLXKC-DFuXWxVq.mjs} +1 -1
  22. package/dist/channel-Cjp51EO_.mjs +2 -0
  23. package/dist/{chmod-SYMGL4JA-B15Xlp42.mjs → chmod-SYMGL4JA-ByMUk130.mjs} +1 -1
  24. package/dist/chmod-SYMGL4JA-lEGJICyB.mjs +8 -0
  25. package/dist/{chokidar-CVNrjmRM.mjs → chokidar-dh8zokRd.mjs} +1 -1
  26. package/dist/chunk-24IMIIXA-RjlBWJtr.mjs +2 -0
  27. package/dist/{chunk-2Q5K7J3B-2Es1K_NO.mjs → chunk-2Q5K7J3B-Ck8oGqYt.mjs} +2 -2
  28. package/dist/{chunk-2TRDZQLB-G1LvPXqq.mjs → chunk-2TRDZQLB-AH-I_6yN.mjs} +1 -1
  29. package/dist/chunk-2TRDZQLB-ZoW1EBbl.mjs +18 -0
  30. package/dist/{chunk-32BRIVSS-ok2xg0Je.mjs → chunk-32BRIVSS-Dwq69mnI.mjs} +2 -2
  31. package/dist/{chunk-3BS5SKQH-CFcrGLDG.mjs → chunk-3BS5SKQH-DpdUzS0R.mjs} +3 -3
  32. package/dist/{chunk-3H6UQG3A-Dx5ykWR0.mjs → chunk-3H6UQG3A-BWCaN15a.mjs} +2 -2
  33. package/dist/chunk-3THT3N7L-DYkTD3HD.mjs +2 -0
  34. package/dist/{chunk-3ZUFRYJ4-DzbWfyzV.mjs → chunk-3ZUFRYJ4-H1A1hWy1.mjs} +1 -1
  35. package/dist/chunk-3ZUFRYJ4-ekaYB_vG.mjs +2 -0
  36. package/dist/chunk-44UOCSGV-D1FZHMOP.mjs +2 -0
  37. package/dist/{chunk-4GTNDTRF-COTPYeV6.mjs → chunk-4GTNDTRF-Cx89i2Y1.mjs} +2 -2
  38. package/dist/{chunk-4HHKTUW3-BkuKGebe.mjs → chunk-4HHKTUW3-Dk2l1S8J.mjs} +1 -1
  39. package/dist/{chunk-4Q4SM6WR-i8tiQRv3.mjs → chunk-4Q4SM6WR-CGuvvBWe.mjs} +2 -2
  40. package/dist/{chunk-52WLFC77-BaT5_S-q.mjs → chunk-52WLFC77-Cn-qt8h-.mjs} +2 -2
  41. package/dist/{chunk-55VFSPNA-Ct9maI6O.mjs → chunk-55VFSPNA-D2U7n2ka.mjs} +2 -2
  42. package/dist/{chunk-5FCAYU7R-of7BBDNL.mjs → chunk-5FCAYU7R-DszODYLe.mjs} +2 -2
  43. package/dist/{chunk-5HE753X5-9kILZ5Nr.mjs → chunk-5HE753X5-DDnyF29o.mjs} +2 -2
  44. package/dist/{chunk-5JV3BV7I-BKVVlFxh.mjs → chunk-5JV3BV7I-BkeVAZnj.mjs} +2 -2
  45. package/dist/chunk-5QMZ5MUS-C5NTf5Rj.mjs +5 -0
  46. package/dist/{chunk-5QVNJEHU-CvZ-NmqQ.mjs → chunk-5QVNJEHU-DS9zA_YV.mjs} +2 -2
  47. package/dist/{chunk-5TONJI2A-CGHpmUrS.mjs → chunk-5TONJI2A-CzUNHQPX.mjs} +2 -2
  48. package/dist/{chunk-5V6VZH6T-DdeqP2TW.mjs → chunk-5V6VZH6T-DBFenjXz.mjs} +2 -2
  49. package/dist/{chunk-5VM5RSS4-COK1ErrI.mjs → chunk-5VM5RSS4-C8vNNqW0.mjs} +2 -2
  50. package/dist/{chunk-62RKD26F-RtrcFE7S.mjs → chunk-62RKD26F-C4qK_fA-.mjs} +2 -2
  51. package/dist/{chunk-64BAICW3-0h-yIc1e.mjs → chunk-64BAICW3-BupSxcu5.mjs} +2 -2
  52. package/dist/{chunk-6Z5SFZXK-C5owNg1o.mjs → chunk-6Z5SFZXK-Cz0C4bhB.mjs} +2 -2
  53. package/dist/{chunk-74CEPOFO--xsxhUFC.mjs → chunk-74CEPOFO-BUVWiXkJ.mjs} +1 -1
  54. package/dist/chunk-74CEPOFO-BYrCYxKO.mjs +23 -0
  55. package/dist/{chunk-7BUUIJ7U-_1oXd84C.mjs → chunk-7BUUIJ7U-D7hE25H9.mjs} +2 -2
  56. package/dist/{chunk-7L36YK2X-VlH7dlrD.mjs → chunk-7L36YK2X-CGwYuotX.mjs} +1 -1
  57. package/dist/chunk-7L36YK2X-DAp-upAs.mjs +3 -0
  58. package/dist/{chunk-7TSDKFEO-BjOrsK6M.mjs → chunk-7TSDKFEO-CE_P23TY.mjs} +1 -1
  59. package/dist/chunk-7TSDKFEO-DBB10vPw.mjs +2 -0
  60. package/dist/{chunk-A4HU7SVR-oMNSpej4.mjs → chunk-A4HU7SVR-BZJ8xDMo.mjs} +1 -1
  61. package/dist/{chunk-A4JSPFCI-DtnWqT5O.mjs → chunk-A4JSPFCI-Dej71yGP.mjs} +2 -2
  62. package/dist/chunk-A5O5YHGN-CczwCZ4d.mjs +2 -0
  63. package/dist/{chunk-A65PWWJC-LctFeUxK.mjs → chunk-A65PWWJC-C-0S-s_f.mjs} +2 -2
  64. package/dist/{chunk-A7A2DBEE-DuuhuGG1.mjs → chunk-A7A2DBEE-DCXJ1xmx.mjs} +1 -1
  65. package/dist/{chunk-A7ICOL4V-CzYDHdxM.mjs → chunk-A7ICOL4V-BQZ9JZ1A.mjs} +2 -2
  66. package/dist/{chunk-ALLTKNUZ-BnLIZXEI.mjs → chunk-ALLTKNUZ-D2ZOfcEz.mjs} +2 -2
  67. package/dist/{chunk-APT7OOP2-DESh647P.mjs → chunk-APT7OOP2-D-DaFB7K.mjs} +2 -2
  68. package/dist/chunk-B74TABJS-BJwhrR8a.mjs +34 -0
  69. package/dist/{chunk-BIQX33UG-BVtPexox.mjs → chunk-BIQX33UG-Bmho6v3L.mjs} +2 -2
  70. package/dist/{chunk-C7G6YPKG-DpNJWc2e.mjs → chunk-C7G6YPKG-BAX_SClW.mjs} +2 -2
  71. package/dist/{chunk-CQNSW5MT-B6mAd0WS.mjs → chunk-CQNSW5MT-FekKjn0i.mjs} +2 -2
  72. package/dist/chunk-CWQS3NFK-CcBWgb8o.mjs +2 -0
  73. package/dist/{chunk-CYSBUYHQ-CTWbbsmm.mjs → chunk-CYSBUYHQ-BftsYwRW.mjs} +2 -2
  74. package/dist/{chunk-D4J545R4-Dy3lcp_X.mjs → chunk-D4J545R4-Br_5qOnE.mjs} +2 -2
  75. package/dist/{chunk-D6CWQ5DW-Dl4tJcwX.mjs → chunk-D6CWQ5DW-3AWPydfx.mjs} +2 -2
  76. package/dist/{chunk-D7MEQ3VN-B-Qyxyo5.mjs → chunk-D7MEQ3VN-Df6An2jd.mjs} +2 -2
  77. package/dist/chunk-DBKNVD4L-B3hX287s.mjs +10 -0
  78. package/dist/{chunk-DBKNVD4L-Y2Mnp5lC.mjs → chunk-DBKNVD4L-DNQP2COw.mjs} +2 -2
  79. package/dist/{chunk-DCAAORBQ-BxtVrSMT.mjs → chunk-DCAAORBQ-BDLVpBG2.mjs} +2 -2
  80. package/dist/chunk-DHbaKqs-.mjs +1 -0
  81. package/dist/chunk-DXB73IDG-BBwE27jK.mjs +2 -0
  82. package/dist/{chunk-EEXR5ZDP-BcjEP2wd.mjs → chunk-EEXR5ZDP-CE452hsE.mjs} +1 -1
  83. package/dist/chunk-EEXR5ZDP-Df-EPnbj.mjs +3 -0
  84. package/dist/{chunk-EIZGF4BS-DYiqM1Ss.mjs → chunk-EIZGF4BS-86nrMkyt.mjs} +2 -2
  85. package/dist/chunk-EIZGF4BS-CSFp0aUh.mjs +9 -0
  86. package/dist/{chunk-EMLP6XTP-AFimKO17.mjs → chunk-EMLP6XTP-C2yfLzVC.mjs} +2 -2
  87. package/dist/{chunk-EX3LRPZG-BYcqQlY8.mjs → chunk-EX3LRPZG-Chp9b-Lc.mjs} +2 -2
  88. package/dist/{chunk-F23WWYKW-BuCITNd6.mjs → chunk-F23WWYKW-qKke1WqP.mjs} +2 -2
  89. package/dist/{chunk-FWX5IMBZ-BFNo8SGu.mjs → chunk-FWX5IMBZ-Cn1xNcn5.mjs} +2 -2
  90. package/dist/{chunk-GCTKCWKD-jz3yOk3f.mjs → chunk-GCTKCWKD-D0obXRun.mjs} +1 -1
  91. package/dist/chunk-GFQRA5P5-XqPO4cim.mjs +3 -0
  92. package/dist/{chunk-GOV5EKKI-IRzA9ik3.mjs → chunk-GOV5EKKI-CDovwI7Z.mjs} +2 -2
  93. package/dist/{chunk-GXVXFKBA-CGc4vqMu.mjs → chunk-GXVXFKBA-D-BGCybM.mjs} +2 -2
  94. package/dist/{chunk-HDQ56CKY-Svz-iz8m.mjs → chunk-HDQ56CKY-CI8IkhlS.mjs} +2 -2
  95. package/dist/chunk-HDQ56CKY-Pa-7c4rC.mjs +16 -0
  96. package/dist/{chunk-HJQJAYMS-SgZmT_QE.mjs → chunk-HJQJAYMS-BHzb4Ncl.mjs} +1 -1
  97. package/dist/{chunk-HJWBQKYG-BqFDM0xp.mjs → chunk-HJWBQKYG-B-KESSoV.mjs} +2 -2
  98. package/dist/{chunk-HKLCLINH-DKx243zB.mjs → chunk-HKLCLINH-Bgw53oZd.mjs} +3 -3
  99. package/dist/{chunk-HL6NGDO2-B9GCn41X.mjs → chunk-HL6NGDO2-CftrHAlX.mjs} +2 -2
  100. package/dist/{chunk-HOUHSVGY-Cg_2_CUd.mjs → chunk-HOUHSVGY-C3h3PdhC.mjs} +2 -2
  101. package/dist/{chunk-HWKDQ44K-CVxg-h0V.mjs → chunk-HWKDQ44K-CGcvROg-.mjs} +2 -2
  102. package/dist/chunk-HWKDQ44K-D3ZbaPl8.mjs +4 -0
  103. package/dist/chunk-I57KEIP3-_HYA-njf.mjs +11 -0
  104. package/dist/{chunk-I57KEIP3-FVl4IVXz.mjs → chunk-I57KEIP3-iiTO2OC-.mjs} +1 -1
  105. package/dist/{chunk-ICXQ74PX-CewdqzeE.mjs → chunk-ICXQ74PX-DbJy3VdO.mjs} +2 -2
  106. package/dist/chunk-IPJHKYVM-3ANqAo3C.mjs +2 -0
  107. package/dist/{chunk-JG7HCLWE-BgiWVzAI.mjs → chunk-JG7HCLWE-lUInQ_44.mjs} +2 -2
  108. package/dist/{chunk-JVPRLUMK-CH7w4zyh.mjs → chunk-JVPRLUMK-FzUEFQw9.mjs} +2 -2
  109. package/dist/{chunk-JWPE2WC7-cMhWwV9I.mjs → chunk-JWPE2WC7-iDbhfJR-.mjs} +2 -2
  110. package/dist/{chunk-K6LIBGJA-DI9ZkJey.mjs → chunk-K6LIBGJA-BXxOXTjI.mjs} +2 -2
  111. package/dist/{chunk-KEIR6QF5-BhaMJNB5.mjs → chunk-KEIR6QF5-BLwvtFl6.mjs} +1 -1
  112. package/dist/{chunk-KMEYNNUA-CabTsa7P.mjs → chunk-KMEYNNUA-1KiUKBQV.mjs} +2 -2
  113. package/dist/chunk-KRBPSX3W-DeaaVEij.mjs +6 -0
  114. package/dist/{chunk-KRBPSX3W-ciCGjpAL.mjs → chunk-KRBPSX3W-YDdgrCmf.mjs} +2 -2
  115. package/dist/{chunk-LL3S3NLB-r8mDpVuz.mjs → chunk-LL3S3NLB-D0lLKwVi.mjs} +2 -2
  116. package/dist/{chunk-LTZRCH7N-Cj1hz7m7.mjs → chunk-LTZRCH7N-DpPs5vSq.mjs} +2 -2
  117. package/dist/{chunk-LWEGUNWT-C3ON4AHi.mjs → chunk-LWEGUNWT-DOK-XWMd.mjs} +2 -2
  118. package/dist/{chunk-MDDMCKUK-D3MZs3FF.mjs → chunk-MDDMCKUK-CTA6qEdN.mjs} +2 -2
  119. package/dist/{chunk-MDLLFABN-DgTeOfIY.mjs → chunk-MDLLFABN-B2tA3LLA.mjs} +2 -2
  120. package/dist/{chunk-MHTUABJP-BbSobv_U.mjs → chunk-MHTUABJP-CrR3MfDw.mjs} +1 -1
  121. package/dist/{chunk-MIZPJHVH-CzqfuBdK.mjs → chunk-MIZPJHVH-d3bhRfh4.mjs} +2 -2
  122. package/dist/{chunk-MLXIYONF-BcM04nM_.mjs → chunk-MLXIYONF-C0S_CKb1.mjs} +1 -1
  123. package/dist/{chunk-MOJQB5TN-CidbQQ7m.mjs → chunk-MOJQB5TN-CUt4IiNv.mjs} +2 -2
  124. package/dist/{chunk-MOZMSUNE-DTiZcqZ1.mjs → chunk-MOZMSUNE-DCxwDKn7.mjs} +2 -2
  125. package/dist/{chunk-MYE6AGBJ-B3ukegXT.mjs → chunk-MYE6AGBJ-CMoRJzYM.mjs} +2 -2
  126. package/dist/{chunk-NAERJDUW-CoAYVGR3.mjs → chunk-NAERJDUW-Ck-SZ2Ps.mjs} +2 -2
  127. package/dist/{chunk-NCNPKYJZ-C1KcgrGe.mjs → chunk-NCNPKYJZ-BxqfYu6d.mjs} +2 -2
  128. package/dist/{chunk-NUYSJFDK-sPbPxu4W.mjs → chunk-NUYSJFDK-DfaBzW-k.mjs} +2 -2
  129. package/dist/{chunk-OCLXQMOG-BdLZfp3D.mjs → chunk-OCLXQMOG-DC3689MV.mjs} +2 -2
  130. package/dist/{chunk-OCS6LSEM-7beNWT9m.mjs → chunk-OCS6LSEM-BY3_3dNt.mjs} +2 -2
  131. package/dist/{chunk-OGEWGWER-B-Vr80Fa.mjs → chunk-OGEWGWER-DgPAesMA.mjs} +2 -2
  132. package/dist/chunk-OJDRYQWQ-B9KRyRFZ.mjs +2 -0
  133. package/dist/{chunk-OSBZ3O6U-DwDyo3Ly.mjs → chunk-OSBZ3O6U-BVpvamr7.mjs} +2 -2
  134. package/dist/{chunk-PBXLG62G-ww-bn-Tp.mjs → chunk-PBXLG62G-C12xrBbG.mjs} +2 -2
  135. package/dist/{chunk-PP6PSHAB-xKRHmmOd.mjs → chunk-PP6PSHAB-tlM6YKyg.mjs} +1 -1
  136. package/dist/{chunk-PUDLZKDR-CI0pacGF.mjs → chunk-PUDLZKDR-CIWYIjrF.mjs} +2 -2
  137. package/dist/{chunk-PXTK5WE2-Dfi2FrE5.mjs → chunk-PXTK5WE2-DNbfUrIy.mjs} +1 -1
  138. package/dist/chunk-PXTK5WE2-e9kxtsgu.mjs +22 -0
  139. package/dist/{chunk-PYSFUGCK-BHwvxY2Q.mjs → chunk-PYSFUGCK-DqdcBhD4.mjs} +2 -2
  140. package/dist/{chunk-Q4XR5HBZ-4H-m7p0G.mjs → chunk-Q4XR5HBZ-jWirJQsj.mjs} +2 -2
  141. package/dist/{chunk-QBLGF6JB-B_tvtCRO.mjs → chunk-QBLGF6JB-hMrl9lGc.mjs} +2 -2
  142. package/dist/{chunk-QCDB2VPH-DHsQu4h6.mjs → chunk-QCDB2VPH-Cv7mIZWG.mjs} +2 -2
  143. package/dist/{chunk-QJ7O6ZN3-CTKdWbns.mjs → chunk-QJ7O6ZN3-BRN048sn.mjs} +2 -2
  144. package/dist/{chunk-R6QSAL5T-DA60heK6.mjs → chunk-R6QSAL5T-CxzbKF59.mjs} +1 -1
  145. package/dist/chunk-R6VWJ2ZL-DmUcUF0z.mjs +2 -0
  146. package/dist/{chunk-R7FJI6CG-BVR1ae7y.mjs → chunk-R7FJI6CG-bmCS8vOS.mjs} +2 -2
  147. package/dist/{chunk-RPNGRAAP-df7FdhI4.mjs → chunk-RPNGRAAP-BTpXCNpb.mjs} +2 -2
  148. package/dist/{chunk-RYQCIY6F-C8F82Uai.mjs → chunk-RYQCIY6F-Dt7I2-Oy.mjs} +2 -2
  149. package/dist/{chunk-SDNKECQQ-BuTL-ot2.mjs → chunk-SDNKECQQ-BNRfy-15.mjs} +2 -2
  150. package/dist/chunk-SNN4IESC-CZPQ88bY.mjs +2 -0
  151. package/dist/{chunk-SNN4IESC-DVqEOGsL.mjs → chunk-SNN4IESC-oXVGT9qo.mjs} +1 -1
  152. package/dist/{chunk-T56QNPHK-COZC2A_r.mjs → chunk-T56QNPHK-lY6QjpkL.mjs} +2 -2
  153. package/dist/{chunk-TLSUDHID-DAREQN9J.mjs → chunk-TLSUDHID-BP7dARSe.mjs} +2 -2
  154. package/dist/{chunk-TOMNU26N-C3JZDC96.mjs → chunk-TOMNU26N-BFsBBT9j.mjs} +2 -2
  155. package/dist/{chunk-TP4BZANS-C2Z-CHHA.mjs → chunk-TP4BZANS-C6KGxaUf.mjs} +2 -2
  156. package/dist/{chunk-TXBZCHCQ-DOaoE5TV.mjs → chunk-TXBZCHCQ-DxPX5PCF.mjs} +2 -2
  157. package/dist/{chunk-U6XO7XAA-BpjdcG5R.mjs → chunk-U6XO7XAA-BHty90wb.mjs} +2 -2
  158. package/dist/{chunk-V5MWI2OL-D8SKWVO_.mjs → chunk-V5MWI2OL-DApVl_z4.mjs} +1 -1
  159. package/dist/{chunk-V7JOEXUC-CdEIYYNc.mjs → chunk-V7JOEXUC-DNM56rwe.mjs} +2 -2
  160. package/dist/{chunk-V7TAPXDL-CQbB1mLa.mjs → chunk-V7TAPXDL-CrGsULIH.mjs} +2 -2
  161. package/dist/chunk-VAUOI2AC-BdotBBDE.mjs +2 -0
  162. package/dist/{chunk-VJFXDYWH-C7Lg-Yts.mjs → chunk-VJFXDYWH-DXnppZsu.mjs} +2 -2
  163. package/dist/{chunk-VOBGTVA6-CKl2LR-K.mjs → chunk-VOBGTVA6-_4QbVbSJ.mjs} +2 -2
  164. package/dist/{chunk-VR4S4FIN-mH-q10Uq.mjs → chunk-VR4S4FIN-RUJ5PgRH.mjs} +2 -2
  165. package/dist/{chunk-VYOJP4TV-DFxaC5Uc.mjs → chunk-VYOJP4TV-DG_cm0JM.mjs} +2 -2
  166. package/dist/{chunk-WKFATFPP-R7B51gCW.mjs → chunk-WKFATFPP-DygaP6No.mjs} +2 -2
  167. package/dist/{chunk-WYO6CB5R-Cg1RXhAT.mjs → chunk-WYO6CB5R-DN1R0VLx.mjs} +2 -2
  168. package/dist/{chunk-X2AJGDEF-D97qevlv.mjs → chunk-X2AJGDEF-BXjUENXL.mjs} +1 -1
  169. package/dist/chunk-X2AJGDEF-ivzQBp_p.mjs +2 -0
  170. package/dist/{chunk-XKQRETAK-BTmmMuta.mjs → chunk-XKQRETAK-CYJSOFLN.mjs} +2 -2
  171. package/dist/{chunk-XKWWSDBF-BGzAOrO3.mjs → chunk-XKWWSDBF-BTj39eCO.mjs} +2 -2
  172. package/dist/{chunk-XVDPCNWR-3ajbQWzU.mjs → chunk-XVDPCNWR-BSVT7Ttz.mjs} +2 -2
  173. package/dist/chunk-XXDRQBXY-D1gFTzjI.mjs +2 -0
  174. package/dist/{chunk-Y2CYZVJY-C7FmC3Cl.mjs → chunk-Y2CYZVJY-acXC9Sbb.mjs} +1 -1
  175. package/dist/{chunk-YMMW5UAP-DbBgrudQ.mjs → chunk-YMMW5UAP-CE-EQ2Is.mjs} +2 -2
  176. package/dist/{chunk-YOTPTUD7-BSOqhRr-.mjs → chunk-YOTPTUD7-63S9b4Z2.mjs} +2 -2
  177. package/dist/{chunk-YTNYSM6T-CoxqCaLl.mjs → chunk-YTNYSM6T-DFPh_641.mjs} +2 -2
  178. package/dist/{chunk-YULBWSET-CuKhTv4j.mjs → chunk-YULBWSET-B6FKJjk9.mjs} +2 -2
  179. package/dist/{chunk-Z6LRHWXI-CujGXDs8.mjs → chunk-Z6LRHWXI-BCgawaNX.mjs} +1 -1
  180. package/dist/{chunk-Z7JVV2SM-CiJwkxuY.mjs → chunk-Z7JVV2SM-CTUpikzI.mjs} +2 -2
  181. package/dist/{chunk-ZGVPDNZ5-BE_qYP6z.mjs → chunk-ZGVPDNZ5-CyyHBEs2.mjs} +2 -2
  182. package/dist/{chunk-ZIRB5QZD-mhYZnDzb.mjs → chunk-ZIRB5QZD-K23GvNu-.mjs} +2 -2
  183. package/dist/{chunk-ZZO3UDB3-DCkJjNN2.mjs → chunk-ZZO3UDB3-MiEiJy8J.mjs} +2 -2
  184. package/dist/classDiagram-OUVF2IWQ-0ApI9cDS.mjs +2 -0
  185. package/dist/classDiagram-v2-EOCWNBFH-DfQYJWNe.mjs +2 -0
  186. package/dist/clear-5CZ5X4YR-9EZyt4MH.mjs +2 -0
  187. package/dist/{clear-5CZ5X4YR-BNXs_KRD.mjs → clear-5CZ5X4YR-BICGLF_r.mjs} +1 -1
  188. package/dist/cli.mjs +22 -22
  189. package/dist/{column-WLPMMSTS-BrY1gQI1.mjs → column-WLPMMSTS-D0I9TpQ2.mjs} +1 -1
  190. package/dist/column-WLPMMSTS-Do8HgL6q.mjs +8 -0
  191. package/dist/comm-5SLSESQG-0igXzBnl.mjs +12 -0
  192. package/dist/{comm-5SLSESQG-aGB098lH.mjs → comm-5SLSESQG-D2Rs9Jmo.mjs} +1 -1
  193. package/dist/constants-BkYBCRUx.mjs +2 -0
  194. package/dist/{cose-bilkent-JH36ORCC-CMfIp4st.mjs → cose-bilkent-JH36ORCC-B1gjUwU3.mjs} +2 -2
  195. package/dist/cp-XOYR4ABJ-CpnwcT2f.mjs +8 -0
  196. package/dist/{du-WO2ENHXQ-Cg71FvLi.mjs → cp-XOYR4ABJ-OfwEEWhR.mjs} +1 -1
  197. package/dist/{curl-47BFPSFW-d1TMPUJw.mjs → curl-47BFPSFW-Ko1BcK_R.mjs} +2 -2
  198. package/dist/{cut-OPC3VAGB-FXZX1WQM.mjs → cut-OPC3VAGB-BAhJz0Qh.mjs} +1 -1
  199. package/dist/cut-OPC3VAGB-nJAw1cEp.mjs +6 -0
  200. package/dist/cynefin-VYW2F7L2-C-aICrN-.mjs +1 -0
  201. package/dist/{cynefinDiagram-TSTJHNR4-CFbt5v4d.mjs → cynefinDiagram-TSTJHNR4-CoESbhp4.mjs} +2 -2
  202. package/dist/{cytoscape.esm-Dq6ZD9GH.mjs → cytoscape.esm-D6l9Lhue.mjs} +1 -1
  203. package/dist/{dagre-CbI1Ylqw.mjs → dagre-BkPA5x_w.mjs} +2 -2
  204. package/dist/{dagre-VKFMJZFB-BWP36rMX.mjs → dagre-VKFMJZFB-BhCtWAkc.mjs} +2 -2
  205. package/dist/{head-HT2B6D2J-DSBJixLD.mjs → date-DD7FVA2V-BGJ9-l0O.mjs} +1 -1
  206. package/dist/date-DD7FVA2V-W_sbdO4n.mjs +5 -0
  207. package/dist/{defaultLocale-9SlCuWEL.mjs → defaultLocale-DN4qDyCE.mjs} +1 -1
  208. package/dist/{diagram-FQU43EPY-D2pf7IBH.mjs → diagram-FQU43EPY-BdshpOzp.mjs} +2 -2
  209. package/dist/{diagram-G47NLZAW-BlOXaBe6.mjs → diagram-G47NLZAW-Lw1fB9_w.mjs} +2 -2
  210. package/dist/{diagram-NH7WQ7WH-DOwRNWDI.mjs → diagram-NH7WQ7WH-DnzwFaQq.mjs} +2 -2
  211. package/dist/{diagram-OA4YK3LP-uyGYHUoX.mjs → diagram-OA4YK3LP-BXU-URV1.mjs} +2 -2
  212. package/dist/{diagram-WEI45ONY-CmW1X9Kx.mjs → diagram-WEI45ONY-CD_Zpcvk.mjs} +2 -2
  213. package/dist/diff-HJF2MPDN-CQAaA8lM.mjs +1 -0
  214. package/dist/diff-HJF2MPDN-EjmLU95d.mjs +7 -0
  215. package/dist/{dirname-LEMTZZFS-RRQ5Ar_Z.mjs → dirname-LEMTZZFS-BG01-R4_.mjs} +1 -1
  216. package/dist/dirname-LEMTZZFS-Dg3ijqjM.mjs +5 -0
  217. package/dist/{dist-BmYngy7b.mjs → dist-CMZz8-Ge.mjs} +1 -1
  218. package/dist/du-WO2ENHXQ-jqWYqk_n.mjs +8 -0
  219. package/dist/{cp-XOYR4ABJ-D0LUaMQT.mjs → du-WO2ENHXQ-oQRVbsEF.mjs} +1 -1
  220. package/dist/{ebnfDiagram-CCIWWBDH-BpBYlrRH.mjs → ebnfDiagram-CCIWWBDH-D-647A1u.mjs} +2 -2
  221. package/dist/echo-O45JWWI2-BPosfKdD.mjs +1 -0
  222. package/dist/echo-O45JWWI2-gk6mEMAU.mjs +4 -0
  223. package/dist/env-5EPCWSXR-BU5zTNDV.mjs +9 -0
  224. package/dist/env-5EPCWSXR-DygzVPiG.mjs +1 -0
  225. package/dist/{erDiagram-Q63AITRT-ChoKKmxG.mjs → erDiagram-Q63AITRT-DviwoNdm.mjs} +2 -2
  226. package/dist/eventmodeling-45OFAUF4-CJqJ2hnR.mjs +1 -0
  227. package/dist/{execAsync-BKp2jujj.mjs → execAsync-BLKHjfg7.mjs} +1 -1
  228. package/dist/{execAsync-BuUKdKlz.mjs → execAsync-C5ympCkf.mjs} +1 -1
  229. package/dist/expand-DTNXU4LQ-D2bEx87V.mjs +11 -0
  230. package/dist/{expand-DTNXU4LQ-BD32VJaK.mjs → expand-DTNXU4LQ-XU44HrWp.mjs} +1 -1
  231. package/dist/expr-YYCVMXE3-DI2glLwn.mjs +1 -0
  232. package/dist/expr-YYCVMXE3-wI0boF3e.mjs +5 -0
  233. package/dist/file-IGDTDPLG-DkYMcmTl.mjs +24 -0
  234. package/dist/{date-DD7FVA2V-7hk1aW9g.mjs → file-IGDTDPLG-sPfWVy9T.mjs} +1 -1
  235. package/dist/find-DH2ALKQS-B6bMjuwo.mjs +12 -0
  236. package/dist/find-DH2ALKQS-CEKaRkgJ.mjs +1 -0
  237. package/dist/flag-coverage-6JEX67RU-QmoBigPs.mjs +2 -0
  238. package/dist/flowDiagram-23GEKE2U-Dhi3SNHm.mjs +1 -0
  239. package/dist/fold-LDSORVYE-Dhx0k6vg.mjs +12 -0
  240. package/dist/{fold-LDSORVYE-CDU-6eOS.mjs → fold-LDSORVYE-DumfsCQO.mjs} +1 -1
  241. package/dist/{fs-traced-By5aY-RE.mjs → fs-traced-DVpoNaQJ.mjs} +3 -3
  242. package/dist/fs-traced-_QGcVmcb.mjs +1 -0
  243. package/dist/{ganttDiagram-NO4QXBWP-Cv7sGb-R.mjs → ganttDiagram-NO4QXBWP-DnN5cTGV.mjs} +2 -2
  244. package/dist/{getMachineId-bsd-DtFrm1Uy.mjs → getMachineId-bsd-B_NuwbXS.mjs} +2 -2
  245. package/dist/{getMachineId-bsd-GFl1-Bje.mjs → getMachineId-bsd-neTWr-l3.mjs} +2 -2
  246. package/dist/{getMachineId-darwin--IR8MP8d.mjs → getMachineId-darwin-BP4aVKkL.mjs} +2 -2
  247. package/dist/{getMachineId-darwin-28jQHa_N.mjs → getMachineId-darwin-DKDl-xYO.mjs} +2 -2
  248. package/dist/{getMachineId-linux-BZgyplQ5.mjs → getMachineId-linux-Bexb2iRT.mjs} +1 -1
  249. package/dist/{getMachineId-linux-Bzx3S652.mjs → getMachineId-linux-YTb5epZX.mjs} +1 -1
  250. package/dist/{getMachineId-unsupported-CyTjujlI.mjs → getMachineId-unsupported-Ddv20ynQ.mjs} +1 -1
  251. package/dist/{getMachineId-unsupported-DuB0leRF.mjs → getMachineId-unsupported-DdwXS_Q3.mjs} +1 -1
  252. package/dist/{getMachineId-win-BmvAZEMa.mjs → getMachineId-win-BNx0EbPq.mjs} +2 -2
  253. package/dist/{getMachineId-win-CuOFQQ73.mjs → getMachineId-win-D8cNuBNk.mjs} +2 -2
  254. package/dist/git-handle-DBSzQutT.mjs +1 -0
  255. package/dist/{git-handle-BHe1p04S.mjs → git-handle-r3d7s3VF.mjs} +2 -2
  256. package/dist/gitGraph-TEB2WS4Q-_V7TMkJv.mjs +1 -0
  257. package/dist/{gitGraphDiagram-IHSO6WYX-DxsFHicP.mjs → gitGraphDiagram-IHSO6WYX-Bs2N855t.mjs} +2 -2
  258. package/dist/{graphlib-DKEQBDTz.mjs → graphlib-DXQPHTiH.mjs} +1 -1
  259. package/dist/grep-2HUTXO5U-9G7xEEms.mjs +9 -0
  260. package/dist/grep-2HUTXO5U-DG5Ulinc.mjs +1 -0
  261. package/dist/gzip-AQXSGOVS-BcGYw5wM.mjs +32 -0
  262. package/dist/gzip-AQXSGOVS-D6UYmM0C.mjs +1 -0
  263. package/dist/head-HT2B6D2J-B5ybc-my.mjs +2 -0
  264. package/dist/{file-IGDTDPLG-BAlm5q29.mjs → head-HT2B6D2J-CHIR76LI.mjs} +1 -1
  265. package/dist/help-VVWX7SA5-Bb8T3djf.mjs +16 -0
  266. package/dist/help-VVWX7SA5-BbK0QLPX.mjs +1 -0
  267. package/dist/history-J4QRNGRO-5XgHJL_Q.mjs +1 -0
  268. package/dist/history-J4QRNGRO-DesXbqi2.mjs +3 -0
  269. package/dist/{hostname-BK6HG2DE-CaZb-T_R.mjs → hostname-BK6HG2DE-Clwz043m.mjs} +1 -1
  270. package/dist/hostname-BK6HG2DE-DTiGP5th.mjs +3 -0
  271. package/dist/html-to-markdown-TFCECAGV-BsVwcc4T.mjs +1 -0
  272. package/dist/html-to-markdown-TFCECAGV-DLUGt6pW.mjs +73 -0
  273. package/dist/index.d.mts +6867 -242
  274. package/dist/index.mjs +1521 -1
  275. package/dist/info-DKCQHKI2-DIsEz1l_.mjs +1 -0
  276. package/dist/{infoDiagram-FWYZ7A6U-CbPpTq2x.mjs → infoDiagram-FWYZ7A6U-CD5T72Pd.mjs} +2 -2
  277. package/dist/init-BlCMJ0yB.mjs +1 -0
  278. package/dist/{init-Buw5jj4Q.mjs → init-D8OKme52.mjs} +1 -1
  279. package/dist/{init-ZOWQ1Th4.mjs → init-VslWN3Iz.mjs} +54 -59
  280. package/dist/{ishikawaDiagram-FXEZZL3T-Dd5BEpOv.mjs → ishikawaDiagram-FXEZZL3T-CzHEtbdq.mjs} +2 -2
  281. package/dist/join-GG2LDHE5-7k4Syl20.mjs +14 -0
  282. package/dist/{join-GG2LDHE5-kABASDPB.mjs → join-GG2LDHE5-BIH_-8vD.mjs} +1 -1
  283. package/dist/{journeyDiagram-5HDEW3XC-W6Nbr96_.mjs → journeyDiagram-5HDEW3XC-BywkQV2b.mjs} +2 -2
  284. package/dist/jq-LYZFFBZB-BZ4XP29I.mjs +14 -0
  285. package/dist/jq-LYZFFBZB-Dlyx6Y7w.mjs +1 -0
  286. package/dist/{js-exec-VXN6TZ7U-1yyCDQqM.mjs → js-exec-VXN6TZ7U-BrugyKqi.mjs} +2 -2
  287. package/dist/js-exec-VXN6TZ7U-Ds5SsewK.mjs +97 -0
  288. package/dist/{kanban-definition-HUTT4EX6-xcwe5vNg.mjs → kanban-definition-HUTT4EX6-DIgH0tMg.mjs} +2 -2
  289. package/dist/{launch-json-removal-CcFuFFS1.mjs → launch-json-removal-9-8M5r9e.mjs} +2 -2
  290. package/dist/lib-B2tLN_O_.mjs +2 -0
  291. package/dist/{lib-TLTWf9qr.mjs → lib-DuDqLKFD.mjs} +1 -1
  292. package/dist/{lib-BCIeHFfP.mjs → lib-ozx_WsjS.mjs} +1 -1
  293. package/dist/libesm-qUf-Au5c.mjs +14 -0
  294. package/dist/{line-Cq-NoiNn.mjs → line-eTDW_zUy.mjs} +2 -2
  295. package/dist/{linear-DPbvcrPk.mjs → linear-Cn1royVQ.mjs} +2 -2
  296. package/dist/{ln-4TRFBYAT-Dhr3hBr6.mjs → ln-4TRFBYAT-B0hi-FAf.mjs} +1 -1
  297. package/dist/ln-4TRFBYAT-DGrhTL40.mjs +9 -0
  298. package/dist/loader-Birwg2h1.mjs +1 -0
  299. package/dist/{loader-ji3pPcXi.mjs → loader-f3tIWlWk.mjs} +2 -2
  300. package/dist/{logger-BZPV1wv8.mjs → logger-DFxEUjvj.mjs} +2 -2
  301. package/dist/ls-KSXFZCWH-C_kbnNdU.mjs +1 -0
  302. package/dist/ls-KSXFZCWH-GOWXktO9.mjs +28 -0
  303. package/dist/{lzma-Dh_aFpqW.mjs → lzma-CD6C2vYw.mjs} +1 -1
  304. package/dist/lzma-CG6o9sq-.mjs +2 -0
  305. package/dist/{map-CFzSl60r.mjs → map-bDB3k8vA.mjs} +2 -2
  306. package/dist/md-manager-BbSzMHHE.mjs +2 -0
  307. package/dist/md5sum-INMIK4DX-BlgGpdCD.mjs +2 -0
  308. package/dist/md5sum-INMIK4DX-DGvi_A-E.mjs +1 -0
  309. package/dist/{mermaid-parser.core-DejmtVwC.mjs → mermaid-parser.core-uwQfwzUX.mjs} +2 -2
  310. package/dist/{mermaid.core-CB8v9A8r.mjs → mermaid.core-BgpKViY0.mjs} +3 -3
  311. package/dist/{mindmap-definition-LN4V7U3C-BiYp6fzL.mjs → mindmap-definition-LN4V7U3C-H3p7uT-G.mjs} +2 -2
  312. package/dist/mkdir-TDEMSB6C-BVcgITXm.mjs +7 -0
  313. package/dist/mkdir-TDEMSB6C-CMOt1jIT.mjs +1 -0
  314. package/dist/mv-Z6MORUFL-CqyCV_Ze.mjs +1 -0
  315. package/dist/mv-Z6MORUFL-El0zMsEA.mjs +7 -0
  316. package/dist/{nl-U5YJDM32-CrNZhLtI.mjs → nl-U5YJDM32-BO1kUpkn.mjs} +1 -1
  317. package/dist/nl-U5YJDM32-Y_hGSMac.mjs +17 -0
  318. package/dist/od-VJEF2UR5-CueTpZ68.mjs +5 -0
  319. package/dist/{od-VJEF2UR5-5RFpmlxK.mjs → od-VJEF2UR5-DxUGtlve.mjs} +1 -1
  320. package/dist/{open-browser-CxnOIVsL.mjs → open-browser-BgReR_t5.mjs} +2 -2
  321. package/dist/{ordinal-D5S_JXYv.mjs → ordinal-BFK2XMXf.mjs} +2 -2
  322. package/dist/packet-7NZHBO7P-B64OS2eJ.mjs +1 -0
  323. package/dist/parse-worker.d.mts +6626 -1
  324. package/dist/parse-worker.mjs +1 -1
  325. package/dist/paste-7N6AFSDS-BJHZcYXH.mjs +1 -0
  326. package/dist/paste-7N6AFSDS-BnqApCW_.mjs +8 -0
  327. package/dist/{path-D4ahAhVD.mjs → path-CIoCsClp.mjs} +1 -1
  328. package/dist/{pegDiagram-2B236MQR-DMP1ng8V.mjs → pegDiagram-2B236MQR-PBU61CXk.mjs} +2 -2
  329. package/dist/pie-RZYD4A2V-B313HDTA.mjs +1 -0
  330. package/dist/{pieDiagram-ENE6RG2P-CSKXRjGQ.mjs → pieDiagram-ENE6RG2P-ClZWrO6e.mjs} +2 -2
  331. package/dist/{preview-2rQXoRuM.mjs → preview-CdESX2Ja.mjs} +2 -2
  332. package/dist/preview-gKyXf1a0.mjs +1 -0
  333. package/dist/printf-CX64KX2P-841sNxew.mjs +1 -0
  334. package/dist/printf-CX64KX2P-B_vWcqAL.mjs +15 -0
  335. package/dist/public/assets/FeedbackForm-C_A-lpjC.js +1 -0
  336. package/dist/public/assets/{SessionsHost-BobZkNwc.js → SessionsHost-BRUQMi7f.js} +2 -2
  337. package/dist/public/assets/{TerminalWindowApp-CgWp2eC-.js → TerminalWindowApp-CFxcrkfe.js} +1 -1
  338. package/dist/public/assets/ThreadView-CAGruMiN.js +10 -0
  339. package/dist/public/assets/{follow-file-CWSsUd-S.js → follow-file-BymUhAtT.js} +1 -1
  340. package/dist/public/assets/{index-Dmlpu4P1.js → index-B-snLDY1.js} +7 -7
  341. package/dist/public/index.html +2 -2
  342. package/dist/pwd-D4OZ7N27-C41v1g3B.mjs +1 -0
  343. package/dist/pwd-D4OZ7N27-NYST_A3S.mjs +3 -0
  344. package/dist/python3-DNGS4G3E-DaBJervu.mjs +12 -0
  345. package/dist/{python3-DNGS4G3E-BZ5fPY5e.mjs → python3-DNGS4G3E-OzxoFG34.mjs} +2 -2
  346. package/dist/{quadrantDiagram-ABIIQ3AL-Do93EPf_.mjs → quadrantDiagram-ABIIQ3AL-Z4PbVL1N.mjs} +2 -2
  347. package/dist/radar-I7S5WNFK-BdiwGd2_.mjs +1 -0
  348. package/dist/railroad-3IZDKUUU-O4nBw7jb.mjs +1 -0
  349. package/dist/railroad-abnf-AHOZXSZD-CDaO5Dcu.mjs +1 -0
  350. package/dist/railroad-ebnf-EBAXGLYW-CS4l_gpR.mjs +1 -0
  351. package/dist/railroad-peg-LSFZ7HO6-bbLhALeS.mjs +1 -0
  352. package/dist/{railroadDiagram-RFXS5EU6-BBHONGQu.mjs → railroadDiagram-RFXS5EU6-ZSRYpY_p.mjs} +2 -2
  353. package/dist/readlink-MI4GCHJF-CQlQ03aa.mjs +1 -0
  354. package/dist/readlink-MI4GCHJF-Dl1Uxmrf.mjs +6 -0
  355. package/dist/{repair-launch-json-Cq9ghST3.mjs → repair-launch-json-DwJ_yLw4.mjs} +2 -2
  356. package/dist/{repair-mcp-configs-DY0FS2-y.mjs → repair-mcp-configs-Q1hO02co.mjs} +2 -2
  357. package/dist/{repair-skills-CkZZbtNk.mjs → repair-skills-DADI6iaT.mjs} +2 -2
  358. package/dist/repair-skills-DKwDAoHc.mjs +1 -0
  359. package/dist/{requirementDiagram-TGXJPOKE-CAGy_wFo.mjs → requirementDiagram-TGXJPOKE-H6OWjjJE.mjs} +2 -2
  360. package/dist/{rev-XOSYPP45-G2PvMYC2.mjs → rev-XOSYPP45-BYe7prl1.mjs} +1 -1
  361. package/dist/rev-XOSYPP45-D6eJxPKd.mjs +7 -0
  362. package/dist/rg-XNF3R3II-CmxxmmUf.mjs +1 -0
  363. package/dist/rg-XNF3R3II-vKB7djPZ.mjs +33 -0
  364. package/dist/rm-RTZG23RL-Bl5s9ltJ.mjs +1 -0
  365. package/dist/rm-RTZG23RL-sCMTtbxP.mjs +8 -0
  366. package/dist/rmdir-XTQXT7RK-C1ccje2_.mjs +1 -0
  367. package/dist/rmdir-XTQXT7RK-DZfv6Zfz.mjs +14 -0
  368. package/dist/{rough.cjs-LxmwwhvT.mjs → rough.cjs-BGkc0Naf.mjs} +1 -1
  369. package/dist/{sankeyDiagram-HTMAVEWB-B59ayZ_U.mjs → sankeyDiagram-HTMAVEWB-CtBVJJox.mjs} +2 -2
  370. package/dist/sed-JAPPVBEU-C7wh6RxT.mjs +100 -0
  371. package/dist/{sed-JAPPVBEU-BUaK4riL.mjs → sed-JAPPVBEU-D9bYEx2I.mjs} +1 -1
  372. package/dist/seq-RN5ZUASB-CFySG-xk.mjs +1 -0
  373. package/dist/seq-RN5ZUASB-R5HjEVux.mjs +7 -0
  374. package/dist/{sequenceDiagram-DBY2YBRQ-BqY5gm2k.mjs → sequenceDiagram-DBY2YBRQ-DDLm4Ak_.mjs} +2 -2
  375. package/dist/server-lock-U8YDpJpq.mjs +1 -0
  376. package/dist/{server-lock-BleUv9m0.mjs → server-lock-aXnDVUI8.mjs} +2 -2
  377. package/dist/sha1sum-VJPNLNU6-DfzpfxJ-.mjs +2 -0
  378. package/dist/sha1sum-VJPNLNU6-DgLJCjAg.mjs +1 -0
  379. package/dist/sha256sum-PI32XWXY-DZ42pgY3.mjs +1 -0
  380. package/dist/sha256sum-PI32XWXY-DrKtnAPK.mjs +2 -0
  381. package/dist/{sizeCapture-X5ZJPWSS-D7Nqbe-W.mjs → sizeCapture-X5ZJPWSS-Izaz24Pi.mjs} +2 -2
  382. package/dist/{skill-teardown-CZnemDLF.mjs → skill-teardown-onVYT1VF.mjs} +2 -2
  383. package/dist/{sleep-VZFPZFWA-DcISab6N.mjs → sleep-VZFPZFWA-5fZFI3Vy.mjs} +1 -1
  384. package/dist/sleep-VZFPZFWA-CBARUnrz.mjs +10 -0
  385. package/dist/sort-DCNRDA7U-RFl0HYBr.mjs +1 -0
  386. package/dist/sort-DCNRDA7U-vT57Mw8o.mjs +16 -0
  387. package/dist/{split-SITCSYCZ-D4U2N_sH.mjs → split-SITCSYCZ-BdATfTxU.mjs} +1 -1
  388. package/dist/split-SITCSYCZ-Ci_IfVPT.mjs +17 -0
  389. package/dist/{sqlite3-TE5AIOTF-DcjYN7WW.mjs → sqlite3-TE5AIOTF-BIRMe0xz.mjs} +1 -1
  390. package/dist/sqlite3-TE5AIOTF-BhXSdz7U.mjs +37 -0
  391. package/dist/{src-BuBt_xnY.mjs → src-BPVU4Y0o.mjs} +2 -2
  392. package/dist/src-BgeIHNkQ.mjs +1 -0
  393. package/dist/src-DNPRz0-U.mjs +20 -0
  394. package/dist/{src-9I3GiOoK.mjs → src-Dt5dAyFQ.mjs} +378 -378
  395. package/dist/{src-9BFQh559.mjs → src-TKCctdpc.mjs} +123 -123
  396. package/dist/{src-h5dDPK2z.mjs → src-cRpQSbXB.mjs} +1 -1
  397. package/dist/start-CWIlNpAT.mjs +1 -0
  398. package/dist/{start-C4KuZHu5.mjs → start-DRG6a2sz.mjs} +3 -3
  399. package/dist/stat-BT5A227F-CEZPXJ9_.mjs +9 -0
  400. package/dist/stat-BT5A227F-Dd-OyLQQ.mjs +1 -0
  401. package/dist/{stateDiagram-2N3HPSRC-BD1FBZi9.mjs → stateDiagram-2N3HPSRC-pAn2bDnn.mjs} +2 -2
  402. package/dist/stateDiagram-v2-6OUMAXLB-DCmVVpGm.mjs +2 -0
  403. package/dist/strings-7PLOGTPD-CiVw0Uh4.mjs +14 -0
  404. package/dist/strings-7PLOGTPD-v3qEuUEm.mjs +1 -0
  405. package/dist/{swimlanes-5IMT3BWC-D2eO0gTx.mjs → swimlanes-5IMT3BWC-nSsjdSnj.mjs} +2 -2
  406. package/dist/swimlanesDiagram-G3AALYLV-CdQlHesp.mjs +9 -0
  407. package/dist/tac-SJGXQ4T2-BL4Xd7y6.mjs +9 -0
  408. package/dist/{tac-SJGXQ4T2-D-bfDFKg.mjs → tac-SJGXQ4T2-DphHfCAY.mjs} +1 -1
  409. package/dist/tail-S5ULNTJU-Cfa1pDQZ.mjs +2 -0
  410. package/dist/tail-S5ULNTJU-D6qRQZwV.mjs +1 -0
  411. package/dist/tar-MZQD7NO4-HJsWmzu9.mjs +63 -0
  412. package/dist/{tar-MZQD7NO4-Cx5bpVMY.mjs → tar-MZQD7NO4-oAQoyk28.mjs} +1 -1
  413. package/dist/tee-O7VXZDCO-D95l5L5Z.mjs +3 -0
  414. package/dist/tee-O7VXZDCO-odVO6Wjw.mjs +1 -0
  415. package/dist/time-DEUO3QV2-CviQF55F.mjs +1 -0
  416. package/dist/time-DEUO3QV2-DwnT4FOS.mjs +14 -0
  417. package/dist/{timeline-definition-FHXFAJF6-DZHpuaV_.mjs → timeline-definition-FHXFAJF6-CnTXJoEq.mjs} +2 -2
  418. package/dist/timeout-VRKMCG72-DFU5EkCe.mjs +12 -0
  419. package/dist/{timeout-VRKMCG72-DaJVXXR3.mjs → timeout-VRKMCG72-jeMAkAMc.mjs} +1 -1
  420. package/dist/touch-DX2IJOQ4-CRX6GYeb.mjs +7 -0
  421. package/dist/touch-DX2IJOQ4-CyiMRd7b.mjs +1 -0
  422. package/dist/tr-2HXZRDSW-ByYmbFae.mjs +21 -0
  423. package/dist/tr-2HXZRDSW-CCce6lU_.mjs +1 -0
  424. package/dist/tree-LYXBS7DC-Dq6aWetx.mjs +12 -0
  425. package/dist/tree-LYXBS7DC-pAC77Hbt.mjs +1 -0
  426. package/dist/treeView-QDETBFTQ-BCAjffnq.mjs +1 -0
  427. package/dist/treemap-6X3UGDF4-Dv-54pyt.mjs +1 -0
  428. package/dist/true-WHJNXCHG-Dzdq7R5f.mjs +1 -0
  429. package/dist/true-WHJNXCHG-XC4ZnbBw.mjs +2 -0
  430. package/dist/unexpand-RGTMIGZM-B06mOUPB.mjs +1 -0
  431. package/dist/unexpand-RGTMIGZM-BL5sZ5_Z.mjs +11 -0
  432. package/dist/uniq-SUNANL47-BIgIOFSf.mjs +1 -0
  433. package/dist/uniq-SUNANL47-DBRSkw7j.mjs +5 -0
  434. package/dist/{vennDiagram-L72KCM5P-CGoW4QcS.mjs → vennDiagram-L72KCM5P-CqTzYRfa.mjs} +2 -2
  435. package/dist/wardley-OPB4EBWU-DSvo57UC.mjs +1 -0
  436. package/dist/{wardleyDiagram-EHGQE667-DHS8jBWZ.mjs → wardleyDiagram-EHGQE667-WhxG-nRT.mjs} +2 -2
  437. package/dist/wc-TQB3VNOX-9RyJlZXB.mjs +1 -0
  438. package/dist/wc-TQB3VNOX-DqHFY4jy.mjs +6 -0
  439. package/dist/which-XZHEH76L-CbmRVw8E.mjs +3 -0
  440. package/dist/which-XZHEH76L-SMFjHhz2.mjs +1 -0
  441. package/dist/whoami-DGKU3D2X-BDJh39KM.mjs +3 -0
  442. package/dist/whoami-DGKU3D2X-BIUooLXE.mjs +1 -0
  443. package/dist/{write-project-skill-WXZSbQlg.mjs → write-project-skill-DOogyZge.mjs} +4 -4
  444. package/dist/xan-UD7JYIL2-DAuAMQ0H.mjs +1 -0
  445. package/dist/xan-UD7JYIL2-DQo9f-1a.mjs +140 -0
  446. package/dist/xan-view-OW2TB7Z3-BhVOL6hm.mjs +1 -0
  447. package/dist/xan-view-OW2TB7Z3-CwG0zS53.mjs +1 -0
  448. package/dist/xargs-I6EZUCYF-C_ZtmUCd.mjs +5 -0
  449. package/dist/xargs-I6EZUCYF-INAdKqnR.mjs +1 -0
  450. package/dist/{xychartDiagram-FW5EYKEG-CG0DSvm_.mjs → xychartDiagram-FW5EYKEG-DDE7TRrw.mjs} +2 -2
  451. package/dist/yazl-BlMyAOcT.mjs +2 -0
  452. package/dist/yq-OAKYHSXH-C1fFFHD4.mjs +1 -0
  453. package/dist/yq-OAKYHSXH-COzSqY4J.mjs +288 -0
  454. package/package.json +7 -6
  455. package/dist/alias-JE7RI5QX-BfILuEvo.mjs +0 -1
  456. package/dist/architecture-TIHT7OUA-CScIhnar.mjs +0 -1
  457. package/dist/bash-IJWYRKFO-DKUaUgF9.mjs +0 -1
  458. package/dist/channel-DRk0OEK0.mjs +0 -2
  459. package/dist/chunk-VAUOI2AC-Ds6ZNp2p.mjs +0 -2
  460. package/dist/chunk-XXDRQBXY-BvbdToKZ.mjs +0 -2
  461. package/dist/classDiagram-OUVF2IWQ-rKP7gcsT.mjs +0 -2
  462. package/dist/classDiagram-v2-EOCWNBFH-BoWf4tYI.mjs +0 -2
  463. package/dist/constants-J4-mibQ1.mjs +0 -2
  464. package/dist/cynefin-VYW2F7L2-DtazLHUs.mjs +0 -1
  465. package/dist/diff-HJF2MPDN-bcOaHvDo.mjs +0 -1
  466. package/dist/echo-O45JWWI2-BacOdfFs.mjs +0 -1
  467. package/dist/env-5EPCWSXR-T8XCKOX_.mjs +0 -1
  468. package/dist/eventmodeling-45OFAUF4-BIXp-P6z.mjs +0 -1
  469. package/dist/expr-YYCVMXE3-CgQib9F9.mjs +0 -1
  470. package/dist/find-DH2ALKQS-z-G7VPmU.mjs +0 -1
  471. package/dist/flag-coverage-6JEX67RU-Cj_NycUm.mjs +0 -2
  472. package/dist/flowDiagram-23GEKE2U-B4VrCGdr.mjs +0 -1
  473. package/dist/fs-traced-CkLhqsEn.mjs +0 -1
  474. package/dist/git-handle-BDmbIWwd.mjs +0 -1
  475. package/dist/gitGraph-TEB2WS4Q-BaTdqV7-.mjs +0 -1
  476. package/dist/grep-2HUTXO5U-CsEE08ya.mjs +0 -1
  477. package/dist/gzip-AQXSGOVS-CmMf6H0r.mjs +0 -1
  478. package/dist/help-VVWX7SA5-BncYWg0B.mjs +0 -1
  479. package/dist/history-J4QRNGRO-CULSDkzp.mjs +0 -1
  480. package/dist/html-to-markdown-TFCECAGV-CF0t8_d3.mjs +0 -1
  481. package/dist/index-1MIt1xrM.d.mts +0 -6628
  482. package/dist/info-DKCQHKI2-BxlpeeVn.mjs +0 -1
  483. package/dist/init-DDwncQha.mjs +0 -1
  484. package/dist/jq-LYZFFBZB-CIwp4u6h.mjs +0 -1
  485. package/dist/loader-BcwbnY_K.mjs +0 -1
  486. package/dist/ls-KSXFZCWH-BEv3e7-2.mjs +0 -1
  487. package/dist/md-manager-B4-M0hXs.mjs +0 -2
  488. package/dist/md5sum-INMIK4DX-CJ1G9gTe.mjs +0 -1
  489. package/dist/mkdir-TDEMSB6C-BY7IIkok.mjs +0 -1
  490. package/dist/mv-Z6MORUFL-C4m2WG8E.mjs +0 -1
  491. package/dist/packet-7NZHBO7P-DJoR1MQJ.mjs +0 -1
  492. package/dist/paste-7N6AFSDS-DQNANxpk.mjs +0 -1
  493. package/dist/pie-RZYD4A2V-Ba8iL0H-.mjs +0 -1
  494. package/dist/preview-MV-qHfzy.mjs +0 -1
  495. package/dist/printf-CX64KX2P-CKuJk-Cs.mjs +0 -1
  496. package/dist/public/assets/FeedbackForm-CmdTz11F.js +0 -1
  497. package/dist/public/assets/ThreadView-VqdgemBS.js +0 -10
  498. package/dist/pwd-D4OZ7N27-CSTLotxZ.mjs +0 -1
  499. package/dist/radar-I7S5WNFK-HP72Fmhl.mjs +0 -1
  500. package/dist/railroad-3IZDKUUU-DC3PWo_6.mjs +0 -1
  501. package/dist/railroad-abnf-AHOZXSZD-Vgpa9_KI.mjs +0 -1
  502. package/dist/railroad-ebnf-EBAXGLYW-B4SmMMsT.mjs +0 -1
  503. package/dist/railroad-peg-LSFZ7HO6-DLlDiUuB.mjs +0 -1
  504. package/dist/readlink-MI4GCHJF-V9fwXBrg.mjs +0 -1
  505. package/dist/repair-skills-l9Id0gzv.mjs +0 -1
  506. package/dist/rg-XNF3R3II-CuFYIwNn.mjs +0 -1
  507. package/dist/rm-RTZG23RL-BOvMrhon.mjs +0 -1
  508. package/dist/rmdir-XTQXT7RK-Dk19R-p8.mjs +0 -1
  509. package/dist/seq-RN5ZUASB-D5aLn_so.mjs +0 -1
  510. package/dist/server-lock-uucDARDL.mjs +0 -1
  511. package/dist/sha1sum-VJPNLNU6-DnTKth9v.mjs +0 -1
  512. package/dist/sha256sum-PI32XWXY-Z-xtGDHc.mjs +0 -1
  513. package/dist/sort-DCNRDA7U-C1gRzOOY.mjs +0 -1
  514. package/dist/src-Dl8P6sfz.mjs +0 -20
  515. package/dist/start-BYY0acPS.mjs +0 -1
  516. package/dist/stat-BT5A227F-B4qwqNn_.mjs +0 -1
  517. package/dist/stateDiagram-v2-6OUMAXLB-CqmBRdZY.mjs +0 -2
  518. package/dist/strings-7PLOGTPD-BJ6vWsQi.mjs +0 -1
  519. package/dist/swimlanesDiagram-G3AALYLV-BiRCZWbo.mjs +0 -9
  520. package/dist/tail-S5ULNTJU-CWnyTuXg.mjs +0 -1
  521. package/dist/tee-O7VXZDCO-B_duU1hV.mjs +0 -1
  522. package/dist/time-DEUO3QV2-CekCKA2I.mjs +0 -1
  523. package/dist/touch-DX2IJOQ4-CZteiICw.mjs +0 -1
  524. package/dist/tr-2HXZRDSW-D4XuTGWg.mjs +0 -1
  525. package/dist/tree-LYXBS7DC-CUIzQKTG.mjs +0 -1
  526. package/dist/treeView-QDETBFTQ-C9yOsbGY.mjs +0 -1
  527. package/dist/treemap-6X3UGDF4-iowse2nY.mjs +0 -1
  528. package/dist/true-WHJNXCHG-BzxCUQFd.mjs +0 -1
  529. package/dist/unexpand-RGTMIGZM-x3XCmR3I.mjs +0 -1
  530. package/dist/uniq-SUNANL47-DpupkNiO.mjs +0 -1
  531. package/dist/wardley-OPB4EBWU-BL1Dan_S.mjs +0 -1
  532. package/dist/wc-TQB3VNOX-D8llmcL9.mjs +0 -1
  533. package/dist/which-XZHEH76L-imZgNd5x.mjs +0 -1
  534. package/dist/whoami-DGKU3D2X-CzLNG51j.mjs +0 -1
  535. package/dist/xan-UD7JYIL2-_38Iv1cI.mjs +0 -1
  536. package/dist/xan-view-OW2TB7Z3-RT-IKMgr.mjs +0 -1
  537. package/dist/xargs-I6EZUCYF-Bu8VhXV_.mjs +0 -1
  538. package/dist/yq-OAKYHSXH-BcCBaLJN.mjs +0 -1
  539. /package/dist/{expansion-VBDYWVZR-CeY6vkty.mjs → expansion-VBDYWVZR-CpX0YZMb.mjs} +0 -0
@@ -0,0 +1,18 @@
1
+ import{t as e}from"./chunk-B74TABJS-BJwhrR8a.mjs";function t(e,t){let n=e.ignoreCase?t.toLowerCase():t,r=e.needles;for(let e=0;e<r.length;e++)if(n.indexOf(r[e])!==-1)return!0;return!1}function n(e,t){return e.replace(/\$(&|\d+|<([^>]+)>)/g,(e,n,r)=>n===`&`?t[0]:r===void 0?t[parseInt(n,10)]??``:t.groups?.[r]??``)}function r(e,r,a={}){let{invertMatch:o=!1,showLineNumbers:s=!1,countOnly:c=!1,countMatches:l=!1,filename:u=``,onlyMatching:d=!1,beforeContext:f=0,afterContext:p=0,maxCount:m=0,contextSeparator:h=`--`,showColumn:g=!1,vimgrep:_=!1,showByteOffset:v=!1,replace:y=null,passthru:b=!1,multiline:x=!1,kResetGroup:S,preFilter:C}=a;if(x)return i(e,r,{invertMatch:o,showLineNumbers:s,countOnly:c,countMatches:l,filename:u,onlyMatching:d,beforeContext:f,afterContext:p,maxCount:m,contextSeparator:h,showColumn:g,showByteOffset:v,replace:y,kResetGroup:S});let w=e.split(`
2
+ `),T=w.length,E=T>0&&w[T-1]===``?T-1:T;if(c||l){let e=0,n=(l||d)&&!o;for(let i=0;i<E;i++){let a=w[i];if(!(C&&!o&&!t(C,a)))if(r.lastIndex=0,n)for(let t=r.exec(a);t!==null;t=r.exec(a))e++,t[0].length===0&&r.lastIndex++;else r.test(a)!==o&&e++}return{output:`${u?`${u}:${e}`:String(e)}
3
+ `,matched:e>0,matchCount:e}}if(f===0&&p===0&&!b){let e=[],i=!1,a=0,c=0;for(let l=0;l<E&&!(m>0&&a>=m);l++){let f=w[l],p=null;if(C&&!t(C,f)||(r.lastIndex=0,p=r.exec(f)),p!==null!==o)if(i=!0,a++,d)for(let t=p;t!==null;t=r.exec(f)){let i=S===void 0?t[0]:t[S]??``,a=y===null?i:n(y,t),o=u?`${u}:`:``;v&&(o+=`${c+t.index}:`),s&&(o+=`${l+1}:`),g&&(o+=`${t.index+1}:`),e.push(o+a),t[0].length===0&&r.lastIndex++}else if(_)for(let t=p;t!==null;t=r.exec(f)){let n=u?`${u}:`:``;v&&(n+=`${c+t.index}:`),s&&(n+=`${l+1}:`),g&&(n+=`${t.index+1}:`),e.push(n+f),t[0].length===0&&r.lastIndex++}else{let t=p?p.index+1:1,i=f;y!==null&&(r.lastIndex=0,i=r.replace(f,(...e)=>{if(e[0].length===0)return``;let t=e,r=e[e.length-1];return typeof r==`object`&&r?(t.groups=r,t.input=e[e.length-2],t.index=e[e.length-3]):(t.input=e[e.length-1],t.index=e[e.length-2]),n(y,t)}));let a=u?`${u}:`:``;v&&(a+=`${c+(p?p.index:0)}:`),s&&(a+=`${l+1}:`),g&&(a+=`${t}:`),e.push(a+i)}c+=f.length+1}return{output:e.length>0?`${e.join(`
4
+ `)}
5
+ `:``,matched:i,matchCount:a}}if(b){let e=[],n=!1,i=0;for(let a=0;a<E;a++){let c=w[a],l;C&&!t(C,c)?l=!1:(r.lastIndex=0,l=r.test(c));let d=l!==o;d&&(n=!0,i++);let f=d?`:`:`-`,p=u?`${u}${f}`:``;s&&(p+=`${a+1}${f}`),e.push(p+c)}return{output:e.length>0?`${e.join(`
6
+ `)}
7
+ `:``,matched:n,matchCount:i}}let D=[],O=0,k=new Set,A=-1,j=[];for(let e=0;e<E&&!(m>0&&O>=m);e++){let n=w[e],i;C&&!t(C,n)?i=!1:(r.lastIndex=0,i=r.test(n)),i!==o&&(j.push(e),O++)}for(let e of j){let t=Math.max(0,e-f);A>=0&&t>A+1&&D.push(h);for(let n=t;n<e;n++)if(!k.has(n)){k.add(n),A=n;let e=w[n];s&&(e=`${n+1}-${e}`),u&&(e=`${u}-${e}`),D.push(e)}if(!k.has(e)){k.add(e),A=e;let t=w[e];if(d){r.lastIndex=0;for(let n=r.exec(t);n!==null;n=r.exec(t)){let t=S===void 0?n[0]:n[S]??``,i=y===null?t:y,a=u?`${u}:`:``;s&&(a+=`${e+1}:`),g&&(a+=`${n.index+1}:`),D.push(a+i),n[0].length===0&&r.lastIndex++}}else{let n=t;s&&(n=`${e+1}:${n}`),u&&(n=`${u}:${n}`),D.push(n)}}let n=Math.min(E-1,e+p);for(let t=e+1;t<=n;t++)if(!k.has(t)){k.add(t),A=t;let e=w[t];s&&(e=`${t+1}-${e}`),u&&(e=`${u}-${e}`),D.push(e)}}return{output:D.length>0?`${D.join(`
8
+ `)}
9
+ `:``,matched:O>0,matchCount:O}}function i(e,t,n){let{invertMatch:r,showLineNumbers:i,countOnly:a,countMatches:o,filename:s,onlyMatching:c,beforeContext:l,afterContext:u,maxCount:d,contextSeparator:f,showColumn:p,showByteOffset:m,replace:h,kResetGroup:g}=n,_=e.split(`
10
+ `),v=_.length,y=v>0&&_[v-1]===``?v-1:v,b=[0];for(let t=0;t<e.length;t++)e[t]===`
11
+ `&&b.push(t+1);let x=e=>{let t=0;for(let n=0;n<b.length&&!(b[n]>e);n++)t=n;return t},S=e=>e-b[x(e)]+1,C=[];t.lastIndex=0;for(let n=t.exec(e);n!==null&&!(d>0&&C.length>=d);n=t.exec(e)){let e=x(n.index),r=x(n.index+Math.max(0,n[0].length-1)),i=g===void 0?n[0]:n[g]??``;C.push({startLine:e,endLine:r,byteOffset:n.index,column:S(n.index),matchText:i}),n[0].length===0&&t.lastIndex++}if(a||o){let e;if(o)e=r?0:C.length;else{let t=new Set;for(let e of C)for(let n=e.startLine;n<=e.endLine;n++)t.add(n);e=r?y-t.size:t.size}return{output:`${s?`${s}:${e}`:String(e)}
12
+ `,matched:e>0,matchCount:e}}if(r){let e=new Set;for(let t of C)for(let n=t.startLine;n<=t.endLine;n++)e.add(n);let t=[];for(let n=0;n<y;n++)if(!e.has(n)){let e=_[n];i&&(e=`${n+1}:${e}`),s&&(e=`${s}:${e}`),t.push(e)}return{output:t.length>0?`${t.join(`
13
+ `)}
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
+ `)}
16
+ `:``,matched:!0,matchCount:C.length}}var a=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 o(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 i=e.slice(n+2,t),o=a.get(i);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 s(t,n){let r,i;switch(n.mode){case`fixed`:r=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);break;case`extended`:case`perl`:if(r=o(t),r=r.replace(/\(\?P<([^>]+)>/g,`(?<$1>`),n.mode===`perl`){r=d(r),r=f(r),r=p(r);let e=_(r);r=e.pattern,i=e.kResetGroup}break;default:r=o(t),r=x(r);break}n.wholeWord&&(r=`\\b(?:${r})\\b`),n.lineRegexp&&(r=`^${r}$`);let a=/\\u\{[0-9A-Fa-f]+\}/.test(r),s=`g`+(n.ignoreCase?`i`:``)+(n.multiline?`m`:``)+(n.multilineDotall?`s`:``)+(a?`u`:``),l=c(r,n.ignoreCase??!1);return{regex:e(r,s),kResetGroup:i,preFilter:l??void 0}}function c(e,t){let n=e;if(n.startsWith(`\\b(?:`)&&n.endsWith(`)\\b`)?n=n.slice(5,n.length-3):n.startsWith(`\\b`)&&n.endsWith(`\\b`)&&n.length>=4&&(n=n.slice(2,n.length-2)),n.length===0)return null;let r=l(n);if(r===null)return null;let i=[];for(let e of r){let t=u(e);if(t===null||t.length===0)return null;i.push(t)}return i.length===0?null:{needles:t?i.map(e=>e.toLowerCase()):i,ignoreCase:t}}function l(e){let t=[],n=0,r=!1,i=0;for(let a=0;a<e.length;a++){let o=e[a];if(o===`\\`){a++;continue}if(r){o===`]`&&(r=!1);continue}if(o===`[`)r=!0;else if(o===`(`)n++;else if(o===`)`){if(n--,n<0)return null}else o===`|`&&n===0&&(t.push(e.slice(i,a)),i=a+1)}return n!==0||r?null:(t.push(e.slice(i)),t)}function u(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(r===`\\`){let r=e[n+1];if(r===void 0||/[dDwWsSbBAZzGQE0-9ckpPNXRxuU]/.test(r))return null;r===`n`?t+=`
17
+ `:r===`t`?t+=` `:r===`r`?t+=`\r`:r===`f`?t+=`\f`:r===`v`?t+=`\v`:t+=r,n++;continue}if(/[.*+?^${}()|[\]]/.test(r))return null;t+=r}return t}function d(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 f(e){return e.replace(/\\x\{([0-9A-Fa-f]+)\}/g,`\\u{$1}`)}function p(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=m(e,n);if(s!==-1){let r=h(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 m(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 h(e,t,n){let r=e;return t.includes(`i`)&&(r=g(r)),r}function g(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 _(e){let t=v(e);if(t===-1)return{pattern:e};let n=e.slice(0,t),r=e.slice(t+2),i=y(n);return{pattern:`(?:${n})(${r})`,kResetGroup:i+1}}function v(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 y(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 b(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 x(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{r as n,b as r,s as t};
18
+ //# sourceMappingURL=chunk-2TRDZQLB-ZoW1EBbl.mjs.map
@@ -1,2 +1,2 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-C7FmC3Cl.mjs";import{p as t}from"./src-BuBt_xnY.mjs";import{j as n}from"./chunk-WYO6CB5R-Cg1RXhAT.mjs";import{t as r}from"./dist-BmYngy7b.mjs";var i=r(),a=e((e,t)=>{let n=e.append(`rect`);if(n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),t.name&&n.attr(`name`,t.name),t.rx&&n.attr(`rx`,t.rx),t.ry&&n.attr(`ry`,t.ry),t.attrs!==void 0)for(let e in t.attrs)n.attr(e,t.attrs[e]);return t.class&&n.attr(`class`,t.class),n},`drawRect`),o=e((e,t)=>{a(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:`rect`}).lower()},`drawBackgroundRect`),s=e((e,t)=>{let r=t.text.replace(n,` `),i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,t.y),i.attr(`class`,`legend`),i.style(`text-anchor`,t.anchor),t.class&&i.attr(`class`,t.class);let a=i.append(`tspan`);return a.attr(`x`,t.x+t.textMargin*2),a.text(r),i},`drawText`),c=e((e,t,n,r)=>{let a=e.append(`image`);a.attr(`x`,t),a.attr(`y`,n);let o=(0,i.sanitizeUrl)(r);a.attr(`xlink:href`,o)},`drawImage`),l=e((e,t,n,r)=>{let a=e.append(`use`);a.attr(`x`,t),a.attr(`y`,n);let o=(0,i.sanitizeUrl)(r);a.attr(`xlink:href`,`#${o}`)},`drawEmbeddedImage`),u=e(()=>({x:0,y:0,width:100,height:100,fill:`#EDF2AE`,stroke:`#666`,anchor:`start`,rx:0,ry:0}),`getNoteRect`),d=e(()=>({x:0,y:0,width:100,height:100,"text-anchor":`start`,style:`#666`,textMargin:0,rx:0,ry:0,tspan:!0}),`getTextObj`),f=e(()=>{let e=t(`.mermaidTooltip`);return e.empty()&&(e=t(`body`).append(`div`).attr(`class`,`mermaidTooltip`).style(`opacity`,0).style(`position`,`absolute`).style(`text-align`,`center`).style(`max-width`,`200px`).style(`padding`,`2px`).style(`font-size`,`12px`).style(`background`,`#ffffde`).style(`border`,`1px solid #333`).style(`border-radius`,`2px`).style(`pointer-events`,`none`).style(`z-index`,`100`)),e},`createTooltip`);export{a,d as c,c as i,o as n,s as o,l as r,u as s,f as t};
2
- //# sourceMappingURL=chunk-32BRIVSS-ok2xg0Je.mjs.map
1
+ import{n as e}from"./chunk-Y2CYZVJY-acXC9Sbb.mjs";import{p as t}from"./src-BPVU4Y0o.mjs";import{j as n}from"./chunk-WYO6CB5R-DN1R0VLx.mjs";import{t as r}from"./dist-CMZz8-Ge.mjs";var i=r(),a=e((e,t)=>{let n=e.append(`rect`);if(n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),t.name&&n.attr(`name`,t.name),t.rx&&n.attr(`rx`,t.rx),t.ry&&n.attr(`ry`,t.ry),t.attrs!==void 0)for(let e in t.attrs)n.attr(e,t.attrs[e]);return t.class&&n.attr(`class`,t.class),n},`drawRect`),o=e((e,t)=>{a(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:`rect`}).lower()},`drawBackgroundRect`),s=e((e,t)=>{let r=t.text.replace(n,` `),i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,t.y),i.attr(`class`,`legend`),i.style(`text-anchor`,t.anchor),t.class&&i.attr(`class`,t.class);let a=i.append(`tspan`);return a.attr(`x`,t.x+t.textMargin*2),a.text(r),i},`drawText`),c=e((e,t,n,r)=>{let a=e.append(`image`);a.attr(`x`,t),a.attr(`y`,n);let o=(0,i.sanitizeUrl)(r);a.attr(`xlink:href`,o)},`drawImage`),l=e((e,t,n,r)=>{let a=e.append(`use`);a.attr(`x`,t),a.attr(`y`,n);let o=(0,i.sanitizeUrl)(r);a.attr(`xlink:href`,`#${o}`)},`drawEmbeddedImage`),u=e(()=>({x:0,y:0,width:100,height:100,fill:`#EDF2AE`,stroke:`#666`,anchor:`start`,rx:0,ry:0}),`getNoteRect`),d=e(()=>({x:0,y:0,width:100,height:100,"text-anchor":`start`,style:`#666`,textMargin:0,rx:0,ry:0,tspan:!0}),`getTextObj`),f=e(()=>{let e=t(`.mermaidTooltip`);return e.empty()&&(e=t(`body`).append(`div`).attr(`class`,`mermaidTooltip`).style(`opacity`,0).style(`position`,`absolute`).style(`text-align`,`center`).style(`max-width`,`200px`).style(`padding`,`2px`).style(`font-size`,`12px`).style(`background`,`#ffffde`).style(`border`,`1px solid #333`).style(`border-radius`,`2px`).style(`pointer-events`,`none`).style(`z-index`,`100`)),e},`createTooltip`);export{a,d as c,c as i,o as n,s as o,l as r,u as s,f as t};
2
+ //# sourceMappingURL=chunk-32BRIVSS-Dwq69mnI.mjs.map
@@ -1,4 +1,4 @@
1
- import{t as e}from"./chunk-B74TABJS-BSazPoW8.mjs";import{a as t,i as n,n as r,o as i}from"./chunk-DXB73IDG-q-dGnwlc.mjs";import{r as a,t as o}from"./chunk-74CEPOFO--xsxhUFC.mjs";import{n as s}from"./chunk-7L36YK2X-VlH7dlrD.mjs";import{t as c}from"./chunk-PXTK5WE2-Dfi2FrE5.mjs";import{n as l,s as u}from"./chunk-7TSDKFEO-BjOrsK6M.mjs";import{n as d}from"./chunk-KRBPSX3W-ciCGjpAL.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-DBKNVD4L-Y2Mnp5lC.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-B74TABJS-BSazPoW8.mjs";import{a as t,i as n,n as r,o as i}from"./chunk-DXB73IDG-q-dGnwlc.mjs";import{r as a,t as o}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";import{n as s}from"./chunk-7L36YK2X-CGwYuotX.mjs";import{t as c}from"./chunk-PXTK5WE2-DNbfUrIy.mjs";import{n as l,s as u}from"./chunk-7TSDKFEO-DBB10vPw.mjs";import{n as d}from"./chunk-KRBPSX3W-YDdgrCmf.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-DBKNVD4L-DNQP2COw.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=this.pos;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];this.advance();let n=!0;for(;this.peek().type===`,`;)if(this.advance(),this.peek().type===`ident`)t.push(this.peek().value),this.advance();else{n=!1;break}if(n&&this.peek().type===`)`&&this.peekAt(1).type===`=>`){this.advance(),this.advance();let e=this.parseExpr(0);return this.bindLambdaArgs({type:`lambda`,params:t,body:e},t)}this.pos=e}let t=this.parseExpr(0);return this.expect(`)`),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));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}}peekAt(e){return this.tokens[this.pos+e]||{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-B74TABJS-BSazPoW8.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 Pe(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 Fe(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 Ie(e,t){let{cmdView:n}=await import(`./xan-view-OW2TB7Z3-RT-IKMgr.mjs`);return n(e,t)}var Q=new Set([`fuzzy-join`,`glob`,`hist`,`input`,`parallel`,`plot`,`progress`,`range`,`scrape`,`tokenize`,`union-find`]),Le=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 Ie(e,t){let{cmdView:n}=await import(`./xan-view-OW2TB7Z3-CwG0zS53.mjs`);return n(e,t)}var Q=new Set([`fuzzy-join`,`glob`,`hist`,`input`,`parallel`,`plot`,`progress`,`range`,`scrape`,`tokenize`,`union-find`]),Le=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}}}},Be={name:`xan`,flags:[],stdinType:`text`,needsArgs:!0};export{Be as n,ze as t};
140
- //# sourceMappingURL=chunk-3BS5SKQH-CFcrGLDG.mjs.map
140
+ //# sourceMappingURL=chunk-3BS5SKQH-DpdUzS0R.mjs.map
@@ -1,4 +1,4 @@
1
- import{n as e,r as t,t as n}from"./chunk-74CEPOFO--xsxhUFC.mjs";import{t as r}from"./chunk-SNN4IESC-DVqEOGsL.mjs";import{n as i,t as a}from"./chunk-2TRDZQLB-G1LvPXqq.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-BUVWiXkJ.mjs";import{t as r}from"./chunk-SNN4IESC-oXVGT9qo.mjs";import{n as i,t as a}from"./chunk-2TRDZQLB-AH-I_6yN.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,L;try{let e=a(M,{mode:P,ignoreCase:l,wholeWord:v,lineRegexp:y});F=e.regex,I=e.kResetGroup,L=e.preFilter}catch{return{stdout:``,stderr:`grep: invalid regular expression: ${M}
3
3
  `,exitCode:2}}if(N.length===0&&c.stdin!==void 0){let e=i(c.stdin,F,{invertMatch:p,showLineNumbers:f,countOnly:m,filename:``,onlyMatching:C,beforeContext:D,afterContext:O,maxCount:E,kResetGroup:I,preFilter:L});return T?{stdout:``,stderr:``,exitCode:+!e.matched}:{stdout:e.output,stderr:``,exitCode:+!e.matched}}if(N.length===0)return{stdout:``,stderr:`grep: no input files
4
4
  `,exitCode:2};let R=``,z=``,B=!1,V=!1,H=[];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);H.push(...t)}else H.push(...t)}else if(_){let t=await d(e,c,k,A,j);H.push(...t)}else H.push({path:e});let U=(H.length>1||_)&&!w;for(let e=0;e<H.length;e+=50){let t=H.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--xsxhUFC.mjs";import{t as r}fr
6
6
  `}}}));for(let e of n){if(e===null)continue;if(`error`in e&&e.error){z+=e.error,e.error.includes(`Is a directory`)||(V=!0);continue}if(!(`file`in e)||!e.result)continue;let{file:t,result:n}=e;if(n.matched){if(B=!0,T)return{stdout:``,stderr:``,exitCode:0};h?R+=`${t}
7
7
  `:g||(R+=n.output)}else g?R+=`${t}
8
8
  `:m&&!h&&(R+=n.output)}}let W;return W=V?2:g?R.length>0?0:1:+!B,T?{stdout:``,stderr:``,exitCode:W}:{stdout:R,stderr:z,exitCode:W}}},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{h as a,g as i,m as n,p as o,f as r,s as t};
9
- //# sourceMappingURL=chunk-3H6UQG3A-Dx5ykWR0.mjs.map
9
+ //# sourceMappingURL=chunk-3H6UQG3A-BWCaN15a.mjs.map
@@ -0,0 +1,2 @@
1
+ function e(e,t,n){if(!e)return e;let r=e.replace(/\n\s+at\s.*/g,``);return n&&(r=r.replace(/\bfile:\/\/\/?[^\s'",)}\]:]+/g,`<path>`)),r=r.replace(t?/(?:\/(?:Users|home|private|var|opt|Library|System|usr|etc|tmp|nix|snap|workspace|root|srv|mnt|app))\b[^\s'",)}\]:]*/g:/(?:\/(?:Users|home|private|var|opt|Library|System|usr|etc|tmp|nix|snap))\b[^\s'",)}\]:]*/g,`<path>`),r=r.replace(/node:internal\/[^\s'",)}\]:]+/g,`<internal>`),r=r.replace(/[A-Z]:\\[^\s'",)}\]:]+/g,`<path>`),n&&(r=r.replace(/\\\\[^\s\\]+\\[^\s'",)}\]:]+/g,`<path>`)),r}function t(t){return e(t,!1,!1)}function n(t){return e(t,!0,!0)}export{t as n,n as t};
2
+ //# sourceMappingURL=chunk-3THT3N7L-DYkTD3HD.mjs.map
@@ -1,2 +1,2 @@
1
1
  function e(e){let t=e.match(/^(\d+\.?\d*)(s|m|h|d)?$/);if(!t)return null;let n=parseFloat(t[1]);switch(t[2]||`s`){case`s`:return n*1e3;case`m`:return n*60*1e3;case`h`:return n*60*60*1e3;case`d`:return n*24*60*60*1e3;default:return null}}export{e as t};
2
- //# sourceMappingURL=chunk-3ZUFRYJ4-DzbWfyzV.mjs.map
2
+ //# sourceMappingURL=chunk-3ZUFRYJ4-H1A1hWy1.mjs.map
@@ -0,0 +1,2 @@
1
+ function e(e){let t=e.match(/^(\d+\.?\d*)(s|m|h|d)?$/);if(!t)return null;let n=parseFloat(t[1]);switch(t[2]||`s`){case`s`:return n*1e3;case`m`:return n*60*1e3;case`h`:return n*60*60*1e3;case`d`:return n*24*60*60*1e3;default:return null}}export{e as t};
2
+ //# sourceMappingURL=chunk-3ZUFRYJ4-ekaYB_vG.mjs.map
@@ -0,0 +1,2 @@
1
+ function e(e){return e instanceof Error?e.message:String(e)}export{e as t};
2
+ //# sourceMappingURL=chunk-44UOCSGV-D1FZHMOP.mjs.map
@@ -1,8 +1,8 @@
1
- import{n as e,r as t,t as n}from"./chunk-74CEPOFO--xsxhUFC.mjs";var r={name:`chmod`,summary:`change file mode bits`,usage:`chmod [OPTIONS] MODE FILE...`,options:[`-R change files recursively`,`-v output a diagnostic for every file processed`,` --help display this help and exit`]},i={name:`chmod`,async execute(i,s){if(n(i))return t(r);if(i.length<2)return{stdout:``,stderr:`chmod: missing operand
1
+ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";var r={name:`chmod`,summary:`change file mode bits`,usage:`chmod [OPTIONS] MODE FILE...`,options:[`-R change files recursively`,`-v output a diagnostic for every file processed`,` --help display this help and exit`]},i={name:`chmod`,async execute(i,s){if(n(i))return t(r);if(i.length<2)return{stdout:``,stderr:`chmod: missing operand
2
2
  `,exitCode:1};let c=!1,l=!1,u=0;for(;u<i.length&&i[u].startsWith(`-`);){let t=i[u];if(t===`-R`||t===`--recursive`)c=!0,u++;else if(t===`-v`||t===`--verbose`)l=!0,u++;else if(t===`--`){u++;break}else{if(/^[+-]?[rwxugo]+/.test(t)||/^\d+$/.test(t))break;if(/^-[Rv]+$/.test(t)){t.includes(`R`)&&(c=!0),t.includes(`v`)&&(l=!0),u++;continue}return e(`chmod`,t)}}if(i.length-u<2)return{stdout:``,stderr:`chmod: missing operand
3
3
  `,exitCode:1};let d=i[u],f=i.slice(u+1),p=/^[0-7]+$/.test(d),m;if(p)m=parseInt(d,8);else try{o(d,420)}catch{return{stdout:``,stderr:`chmod: invalid mode: '${d}'
4
4
  `,exitCode:1}}let h=``,g=``,_=!1;for(let e of f){let t=s.fs.resolvePath(s.cwd,e);try{let n;if(n=p&&m!==void 0?m:o(d,(await s.fs.stat(t)).mode),await s.fs.chmod(t,n),l&&(h+=`mode of '${e}' changed to ${n.toString(8).padStart(4,`0`)}
5
5
  `),c&&(await s.fs.stat(t)).isDirectory){let e=await a(s,t,p?m:void 0,p?void 0:d,l);h+=e}}catch{g+=`chmod: cannot access '${e}': No such file or directory
6
6
  `,_=!0}}return{stdout:h,stderr:g,exitCode:+!!_}}};async function a(e,t,n,r,i){let s=``,c=await e.fs.readdir(t);for(let l of c){let c=t===`/`?`/${l}`:`${t}/${l}`,u;u=n===void 0?r===void 0?420:o(r,(await e.fs.stat(c)).mode):n,await e.fs.chmod(c,u),i&&(s+=`mode of '${c}' changed to ${u.toString(8).padStart(4,`0`)}
7
7
  `),(await e.fs.stat(c)).isDirectory&&(s+=await a(e,c,n,r,i))}return s}function o(e,t=420){if(/^[0-7]+$/.test(e))return parseInt(e,8);let n=t&4095,r=e.split(`,`);for(let t of r){let r=t.match(/^([ugoa]*)([+\-=])([rwxXst]*)$/);if(!r)throw Error(`Invalid mode: ${e}`);let i=r[1]||`a`,a=r[2],o=r[3];(i===`a`||i===``)&&(i=`ugo`);let s=0;o.includes(`r`)&&(s|=4),o.includes(`w`)&&(s|=2),(o.includes(`x`)||o.includes(`X`))&&(s|=1);let c=0;o.includes(`s`)&&(i.includes(`u`)&&(c|=2048),i.includes(`g`)&&(c|=1024)),o.includes(`t`)&&(c|=512);for(let e of i){let t=0;e===`u`?t=6:e===`g`?t=3:e===`o`&&(t=0);let r=s<<t;a===`+`?n|=r:a===`-`?n&=~r:a===`=`&&(n&=~(7<<t),n|=r)}a===`+`?n|=c:a===`-`?n&=~c:a===`=`&&(o.includes(`s`)&&(i.includes(`u`)&&(n&=-2049,n|=c&2048),i.includes(`g`)&&(n&=-1025,n|=c&1024)),o.includes(`t`)&&(n&=-513,n|=c&512))}return n}var s={name:`chmod`,flags:[{flag:`-R`,type:`boolean`},{flag:`-v`,type:`boolean`}],needsArgs:!0,minArgs:2};export{s as n,i as t};
8
- //# sourceMappingURL=chunk-4GTNDTRF-COTPYeV6.mjs.map
8
+ //# sourceMappingURL=chunk-4GTNDTRF-Cx89i2Y1.mjs.map
@@ -1,3 +1,3 @@
1
1
  async function e(e,t){return{stdout:`localhost
2
2
  `,stderr:``,exitCode:0}}var t={name:`hostname`,execute:e},n={name:`hostname`,flags:[]};export{n,t};
3
- //# sourceMappingURL=chunk-4HHKTUW3-BkuKGebe.mjs.map
3
+ //# sourceMappingURL=chunk-4HHKTUW3-Dk2l1S8J.mjs.map
@@ -1,5 +1,5 @@
1
- import{r as e,t}from"./chunk-74CEPOFO--xsxhUFC.mjs";var n={name:`dirname`,summary:`strip last component from file name`,usage:`dirname [OPTION] NAME...`,options:[` --help display this help and exit`]},r={name:`dirname`,async execute(r,i){if(t(r))return e(n);let a=r.filter(e=>!e.startsWith(`-`));if(a.length===0)return{stdout:``,stderr:`dirname: missing operand
1
+ import{r as e,t}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";var n={name:`dirname`,summary:`strip last component from file name`,usage:`dirname [OPTION] NAME...`,options:[` --help display this help and exit`]},r={name:`dirname`,async execute(r,i){if(t(r))return e(n);let a=r.filter(e=>!e.startsWith(`-`));if(a.length===0)return{stdout:``,stderr:`dirname: missing operand
2
2
  `,exitCode:1};let o=[];for(let e of a){let t=e.replace(/\/+$/,``),n=t.lastIndexOf(`/`);n===-1?o.push(`.`):n===0?o.push(`/`):o.push(t.slice(0,n))}return{stdout:`${o.join(`
3
3
  `)}
4
4
  `,stderr:``,exitCode:0}}},i={name:`dirname`,flags:[],needsArgs:!0};export{r as n,i as t};
5
- //# sourceMappingURL=chunk-4Q4SM6WR-i8tiQRv3.mjs.map
5
+ //# sourceMappingURL=chunk-4Q4SM6WR-CGuvvBWe.mjs.map
@@ -1,4 +1,4 @@
1
- import{o as e}from"./chunk-DTipWd-i.mjs";import{n as t}from"./chunk-Y2CYZVJY-C7FmC3Cl.mjs";import{m as n,p as r}from"./src-BuBt_xnY.mjs";import{T as i,b as a,x as o}from"./chunk-WYO6CB5R-Cg1RXhAT.mjs";import{$ as s,J as c,K as l,Q as u,X as d,Y as f,Z as p,et as m,g as h,nt as g,q as _,rt as v,tt as y,u as b}from"./chunk-ICXQ74PX-CewdqzeE.mjs";import{t as x}from"./line-Cq-NoiNn.mjs";import{n as S}from"./chunk-Q4XR5HBZ-4H-m7p0G.mjs";import{i as C,n as ee,r as w,t as T}from"./chunk-7BUUIJ7U-_1oXd84C.mjs";import{n as E}from"./chunk-OGEWGWER-B-Vr80Fa.mjs";import{i as D,n as te}from"./chunk-C7G6YPKG-DpNJWc2e.mjs";import{t as O}from"./rough.cjs-LxmwwhvT.mjs";import{r as k}from"./chunk-ZGVPDNZ5-BE_qYP6z.mjs";var ne=e(O(),1),A=t((e,t,n,r,i,a=!1,o)=>{t.arrowTypeStart&&N(e,`start`,t.arrowTypeStart,n,r,i,a,o),t.arrowTypeEnd&&N(e,`end`,t.arrowTypeEnd,n,r,i,a,o)},`addEdgeMarkers`),j={arrow_cross:{type:`cross`,fill:!1},arrow_point:{type:`point`,fill:!0},arrow_barb:{type:`barb`,fill:!0},arrow_barb_neo:{type:`barb`,fill:!0},arrow_circle:{type:`circle`,fill:!1},aggregation:{type:`aggregation`,fill:!1},extension:{type:`extension`,fill:!1},composition:{type:`composition`,fill:!0},dependency:{type:`dependency`,fill:!0},lollipop:{type:`lollipop`,fill:!1},only_one:{type:`onlyOne`,fill:!1},zero_or_one:{type:`zeroOrOne`,fill:!1},one_or_more:{type:`oneOrMore`,fill:!1},zero_or_more:{type:`zeroOrMore`,fill:!1},requirement_arrow:{type:`requirement_arrow`,fill:!1},requirement_contains:{type:`requirement_contains`,fill:!1}},M=[`cross`,`point`,`circle`,`lollipop`,`aggregation`,`extension`,`composition`,`dependency`,`barb`],N=t((e,t,r,i,a,o,s=!1,c)=>{let l=j[r],u=l&&M.includes(l.type);if(!l){n.warn(`Unknown arrow type: ${r}`);return}let d=`${a}_${o}-${l.type}${t===`start`?`Start`:`End`}${s&&u?`-margin`:``}`;if(c&&c.trim()!==``){let n=`${d}_${c.replace(/[^\dA-Za-z]/g,`_`)}`;if(!document.getElementById(n)){let e=document.getElementById(d);if(e){let t=e.cloneNode(!0);t.id=n,t.querySelectorAll(`path, circle, line`).forEach(e=>{e.setAttribute(`stroke`,c),l.fill&&e.setAttribute(`fill`,c)}),e.parentNode?.appendChild(t)}}e.attr(`marker-${t}`,`url(${i}#${n})`)}else e.attr(`marker-${t}`,`url(${i}#${d})`)},`addEdgeMarker`),re=t(e=>typeof e==`string`?e:o()?.flowchart?.curve,`resolveEdgeCurveType`),P=new Map,F=new Map,I=t(()=>{P.clear(),F.clear()},`clear`),L=t(e=>e?typeof e==`string`?e:e.reduce((e,t)=>e+`;`+t,``):``,`getLabelStyles`),R=t(async(e,t)=>{let a=o(),s=i(a),{labelStyles:c}=D(t);t.labelStyle=c;let l=e.insert(`g`).attr(`class`,`edgeLabel`),u=l.insert(`g`).attr(`class`,`label`).attr(`data-id`,t.id),d=t.labelType===`markdown`,f=await S(e,t.label,{style:L(t.labelStyle),useHtmlLabels:s,addSvgBackground:!0,isNode:!1,markdown:d,width:void 0},a);u.node().appendChild(f),n.info(`abc82`,t,t.labelType);let p=f.getBBox(),m=p;if(s){let e=f.children[0],t=r(f);p=e.getBoundingClientRect(),m=p,t.attr(`width`,p.width),t.attr(`height`,p.height)}else{let e=r(f).select(`text`).node();e&&typeof e.getBBox==`function`&&(m=e.getBBox())}u.attr(`transform`,T(m,s)),P.set(t.id,l),t.width=p.width,t.height=p.height;let h;if(t.startLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await k(i,t.startLabelLeft,L(t.labelStyle)||``,!1,!1);h=a;let o=a.getBBox();if(s){let e=a.children[0],t=r(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,T(o,s)),F.get(t.id)||F.set(t.id,{}),F.get(t.id).startLeft=n,z(h,t.startLabelLeft)}if(t.startLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await k(i,t.startLabelRight,L(t.labelStyle)||``,!1,!1);h=a;let o=a.getBBox();if(s){let e=a.children[0],t=r(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,T(o,s)),F.get(t.id)||F.set(t.id,{}),F.get(t.id).startRight=n,z(h,t.startLabelRight)}if(t.endLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await k(n,t.endLabelLeft,L(t.labelStyle)||``,!1,!1);h=a;let o=a.getBBox();if(s){let e=a.children[0],t=r(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,T(o,s)),F.get(t.id)||F.set(t.id,{}),F.get(t.id).endLeft=n,z(h,t.endLabelLeft)}if(t.endLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await k(n,t.endLabelRight,L(t.labelStyle)||``,!1,!1);h=a;let o=a.getBBox();if(s){let e=a.children[0],t=r(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,T(o,s)),F.get(t.id)||F.set(t.id,{}),F.get(t.id).endRight=n,z(h,t.endLabelRight)}return f},`insertEdgeLabel`);function z(e,t){i(o())&&e&&(e.style.width=t.length*9+`px`,e.style.height=`12px`)}t(z,`setTerminalWidth`);var B=t((e,t)=>{n.debug(`Moving label abc88 `,e.id,e.label,P.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath,{subGraphTitleTotalMargin:i}=E(o());if(e.label){let a=P.get(e.id),o=e.x,s=e.y;if(r){let i=h.calcLabelPosition(r);n.debug(`Moving label `+e.label+` from (`,o,`,`,s,`) to (`,i.x,`,`,i.y,`) abc88`),t.updatedPath&&(o=i.x,s=i.y)}a.attr(`transform`,`translate(${o}, ${s+i/2})`)}if(e.startLabelLeft){let t=F.get(e.id).startLeft,n=e.x,i=e.y;if(r){let t=h.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.startLabelRight){let t=F.get(e.id).startRight,n=e.x,i=e.y;if(r){let t=h.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.endLabelLeft){let t=F.get(e.id).endLeft,n=e.x,i=e.y;if(r){let t=h.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.endLabelRight){let t=F.get(e.id).endRight,n=e.x,i=e.y;if(r){let t=h.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}},`positionEdgeLabel`),ie=t((e,t)=>{if(!e?.isLabelEdge||!e?.id?.endsWith(`-to-label`)||!Array.isArray(t)||t.length!==2)return t;let[n,r]=t,i=Math.abs(r.x-n.x),a=Math.abs(r.y-n.y);return i<.001||a<.001?t:a>=i?[n,{x:n.x,y:r.y},r]:[n,{x:r.x,y:n.y},r]},`orthogonalizeToLabelClippedPoints`),V=t((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),H=t((e,t,r)=>{n.debug(`intersection calc abc89:
1
+ import{o as e}from"./chunk-DTipWd-i.mjs";import{n as t}from"./chunk-Y2CYZVJY-acXC9Sbb.mjs";import{m as n,p as r}from"./src-BPVU4Y0o.mjs";import{T as i,b as a,x as o}from"./chunk-WYO6CB5R-DN1R0VLx.mjs";import{$ as s,J as c,K as l,Q as u,X as d,Y as f,Z as p,et as m,g as h,nt as g,q as _,rt as v,tt as y,u as b}from"./chunk-ICXQ74PX-DbJy3VdO.mjs";import{t as x}from"./line-eTDW_zUy.mjs";import{n as S}from"./chunk-Q4XR5HBZ-jWirJQsj.mjs";import{i as C,n as ee,r as w,t as T}from"./chunk-7BUUIJ7U-D7hE25H9.mjs";import{n as E}from"./chunk-OGEWGWER-DgPAesMA.mjs";import{i as D,n as te}from"./chunk-C7G6YPKG-BAX_SClW.mjs";import{t as O}from"./rough.cjs-BGkc0Naf.mjs";import{r as k}from"./chunk-ZGVPDNZ5-CyyHBEs2.mjs";var ne=e(O(),1),A=t((e,t,n,r,i,a=!1,o)=>{t.arrowTypeStart&&N(e,`start`,t.arrowTypeStart,n,r,i,a,o),t.arrowTypeEnd&&N(e,`end`,t.arrowTypeEnd,n,r,i,a,o)},`addEdgeMarkers`),j={arrow_cross:{type:`cross`,fill:!1},arrow_point:{type:`point`,fill:!0},arrow_barb:{type:`barb`,fill:!0},arrow_barb_neo:{type:`barb`,fill:!0},arrow_circle:{type:`circle`,fill:!1},aggregation:{type:`aggregation`,fill:!1},extension:{type:`extension`,fill:!1},composition:{type:`composition`,fill:!0},dependency:{type:`dependency`,fill:!0},lollipop:{type:`lollipop`,fill:!1},only_one:{type:`onlyOne`,fill:!1},zero_or_one:{type:`zeroOrOne`,fill:!1},one_or_more:{type:`oneOrMore`,fill:!1},zero_or_more:{type:`zeroOrMore`,fill:!1},requirement_arrow:{type:`requirement_arrow`,fill:!1},requirement_contains:{type:`requirement_contains`,fill:!1}},M=[`cross`,`point`,`circle`,`lollipop`,`aggregation`,`extension`,`composition`,`dependency`,`barb`],N=t((e,t,r,i,a,o,s=!1,c)=>{let l=j[r],u=l&&M.includes(l.type);if(!l){n.warn(`Unknown arrow type: ${r}`);return}let d=`${a}_${o}-${l.type}${t===`start`?`Start`:`End`}${s&&u?`-margin`:``}`;if(c&&c.trim()!==``){let n=`${d}_${c.replace(/[^\dA-Za-z]/g,`_`)}`;if(!document.getElementById(n)){let e=document.getElementById(d);if(e){let t=e.cloneNode(!0);t.id=n,t.querySelectorAll(`path, circle, line`).forEach(e=>{e.setAttribute(`stroke`,c),l.fill&&e.setAttribute(`fill`,c)}),e.parentNode?.appendChild(t)}}e.attr(`marker-${t}`,`url(${i}#${n})`)}else e.attr(`marker-${t}`,`url(${i}#${d})`)},`addEdgeMarker`),re=t(e=>typeof e==`string`?e:o()?.flowchart?.curve,`resolveEdgeCurveType`),P=new Map,F=new Map,I=t(()=>{P.clear(),F.clear()},`clear`),L=t(e=>e?typeof e==`string`?e:e.reduce((e,t)=>e+`;`+t,``):``,`getLabelStyles`),R=t(async(e,t)=>{let a=o(),s=i(a),{labelStyles:c}=D(t);t.labelStyle=c;let l=e.insert(`g`).attr(`class`,`edgeLabel`),u=l.insert(`g`).attr(`class`,`label`).attr(`data-id`,t.id),d=t.labelType===`markdown`,f=await S(e,t.label,{style:L(t.labelStyle),useHtmlLabels:s,addSvgBackground:!0,isNode:!1,markdown:d,width:void 0},a);u.node().appendChild(f),n.info(`abc82`,t,t.labelType);let p=f.getBBox(),m=p;if(s){let e=f.children[0],t=r(f);p=e.getBoundingClientRect(),m=p,t.attr(`width`,p.width),t.attr(`height`,p.height)}else{let e=r(f).select(`text`).node();e&&typeof e.getBBox==`function`&&(m=e.getBBox())}u.attr(`transform`,T(m,s)),P.set(t.id,l),t.width=p.width,t.height=p.height;let h;if(t.startLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await k(i,t.startLabelLeft,L(t.labelStyle)||``,!1,!1);h=a;let o=a.getBBox();if(s){let e=a.children[0],t=r(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,T(o,s)),F.get(t.id)||F.set(t.id,{}),F.get(t.id).startLeft=n,z(h,t.startLabelLeft)}if(t.startLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await k(i,t.startLabelRight,L(t.labelStyle)||``,!1,!1);h=a;let o=a.getBBox();if(s){let e=a.children[0],t=r(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,T(o,s)),F.get(t.id)||F.set(t.id,{}),F.get(t.id).startRight=n,z(h,t.startLabelRight)}if(t.endLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await k(n,t.endLabelLeft,L(t.labelStyle)||``,!1,!1);h=a;let o=a.getBBox();if(s){let e=a.children[0],t=r(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,T(o,s)),F.get(t.id)||F.set(t.id,{}),F.get(t.id).endLeft=n,z(h,t.endLabelLeft)}if(t.endLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await k(n,t.endLabelRight,L(t.labelStyle)||``,!1,!1);h=a;let o=a.getBBox();if(s){let e=a.children[0],t=r(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,T(o,s)),F.get(t.id)||F.set(t.id,{}),F.get(t.id).endRight=n,z(h,t.endLabelRight)}return f},`insertEdgeLabel`);function z(e,t){i(o())&&e&&(e.style.width=t.length*9+`px`,e.style.height=`12px`)}t(z,`setTerminalWidth`);var B=t((e,t)=>{n.debug(`Moving label abc88 `,e.id,e.label,P.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath,{subGraphTitleTotalMargin:i}=E(o());if(e.label){let a=P.get(e.id),o=e.x,s=e.y;if(r){let i=h.calcLabelPosition(r);n.debug(`Moving label `+e.label+` from (`,o,`,`,s,`) to (`,i.x,`,`,i.y,`) abc88`),t.updatedPath&&(o=i.x,s=i.y)}a.attr(`transform`,`translate(${o}, ${s+i/2})`)}if(e.startLabelLeft){let t=F.get(e.id).startLeft,n=e.x,i=e.y;if(r){let t=h.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.startLabelRight){let t=F.get(e.id).startRight,n=e.x,i=e.y;if(r){let t=h.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.endLabelLeft){let t=F.get(e.id).endLeft,n=e.x,i=e.y;if(r){let t=h.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.endLabelRight){let t=F.get(e.id).endRight,n=e.x,i=e.y;if(r){let t=h.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}},`positionEdgeLabel`),ie=t((e,t)=>{if(!e?.isLabelEdge||!e?.id?.endsWith(`-to-label`)||!Array.isArray(t)||t.length!==2)return t;let[n,r]=t,i=Math.abs(r.x-n.x),a=Math.abs(r.y-n.y);return i<.001||a<.001?t:a>=i?[n,{x:n.x,y:r.y},r]:[n,{x:r.x,y:n.y},r]},`orthogonalizeToLabelClippedPoints`),V=t((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),H=t((e,t,r)=>{n.debug(`intersection calc abc89:
2
2
  outsidePoint: ${JSON.stringify(t)}
3
3
  insidePoint : ${JSON.stringify(r)}
4
4
  node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let i=e.x,a=e.y,o=Math.abs(i-r.x),s=e.width/2,c=r.x<t.x?s-o:s+o,l=e.height/2,u=Math.abs(t.y-r.y),d=Math.abs(t.x-r.x);if(Math.abs(a-t.y)*s>Math.abs(i-t.x)*l){let e=r.y<t.y?t.y-l-a:a-l-t.y;c=d*e/u;let i={x:r.x<t.x?r.x+c:r.x-d+c,y:r.y<t.y?r.y+u-e:r.y-u+e};return c===0&&(i.x=t.x,i.y=t.y),d===0&&(i.x=t.x),u===0&&(i.y=t.y),n.debug(`abc89 top/bottom calc, Q ${u}, q ${e}, R ${d}, r ${c}`,i),i}else{c=r.x<t.x?t.x-s-i:i-s-t.x;let e=u*c/d,a=r.x<t.x?r.x+d-c:r.x-d+c,o=r.y<t.y?r.y+e:r.y-e;return n.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${c}`,{_x:a,_y:o}),c===0&&(a=t.x,o=t.y),d===0&&(a=t.x),u===0&&(o=t.y),{x:a,y:o}}},`intersection`),U=t((e,t)=>{n.warn(`abc88 cutPathAtIntersect`,e,t);let r=[],i=e[0],a=!1;return e.forEach(e=>{if(n.info(`abc88 checking point`,e,t),!V(t,e)&&!a){let o=H(t,i,e);n.debug(`abc88 inside`,e,i,o),n.debug(`abc88 intersection`,o,t);let s=!1;r.forEach(e=>{s||=e.x===o.x&&e.y===o.y}),r.some(e=>e.x===o.x&&e.y===o.y)?n.warn(`abc88 no intersect`,o,r):r.push(o),a=!0}else n.warn(`abc88 outside`,e,i),i=e,a||r.push(e)}),n.debug(`returning points`,r),r},`cutPathAtIntersect`);function W(e){let t=[],n=[];for(let r=1;r<e.length-1;r++){let i=e[r-1],a=e[r],o=e[r+1];(i.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),n.push(r))}return{cornerPoints:t,cornerPointPositions:n}}t(W,`extractCornerPoints`);var G=t(function(e,t,n){let r=t.x-e.x,i=t.y-e.y,a=n/Math.sqrt(r*r+i*i);return{x:t.x-a*r,y:t.y-a*i}},`findAdjacentPoint`),ae=t(function(e){let{cornerPointPositions:t}=W(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){let t=e[i-1],a=e[i+1],o=e[i],s=G(t,o,5),c=G(a,o,5),l=c.x-s.x,u=c.y-s.y;r.push(s);let d=Math.sqrt(2)*2,f={x:o.x,y:o.y};Math.abs(a.x-t.x)>10&&Math.abs(a.y-t.y)>=10?(n.debug(`Corner point fixing`,Math.abs(a.x-t.x),Math.abs(a.y-t.y)),f=o.x===s.x?{x:l<0?s.x-5+d:s.x+5-d,y:u<0?s.y-d:s.y+d}:{x:l<0?s.x-d:s.x+d,y:u<0?s.y-5+d:s.y+5-d}):n.debug(`Corner point skipping fixing`,Math.abs(a.x-t.x),Math.abs(a.y-t.y)),r.push(f,c)}else r.push(e[i]);return r},`fixCorners`),oe=t((e,t,n)=>{let r=e-t-n,i=Math.floor(r/4);return`0 ${t} ${Array(i).fill(`2 2`).join(` `)} ${n}`},`generateDashArray`),K=t(function(e,t,i,a,S,w,T,E=!1){if(!T)throw Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:D,layout:O}=o(),k=t.points,j=!1,M=S;var N=w;let P=[];for(let e in t.cssCompiledStyles)te(e)||P.push(t.cssCompiledStyles[e]);if(O===`swimlane`){if(N.intersect&&M.intersect&&Array.isArray(k)&&k.length>=2)if(k.length===2)k=[M.intersect(k[0]),N.intersect(k[1])];else{let e=k.slice(1,-1),t=e[0],n=e[e.length-1],r=.5,i=Math.abs(k[k.length-1].x-n.x)<r&&Math.abs(k[k.length-1].y-n.y)<r,a=M.intersect(t),o=i?n:N.intersect(n),s=Math.abs(o.x-n.x)<r&&Math.abs(o.y-n.y)<r,c=Math.abs(a.x-t.x)<r&&Math.abs(a.y-t.y)<r?[]:[a],l=s?[]:[o];k=[...c,...e,...l]}k=ie(t,k)}else N.intersect&&M.intersect&&!E&&(k=k.slice(1,t.points.length-1),k.unshift(M.intersect(k[0])),k.push(N.intersect(k[k.length-1])));let F=btoa(JSON.stringify(k));t.toCluster&&(n.info(`to cluster abc88`,i.get(t.toCluster)),k=U(t.points,i.get(t.toCluster).node),j=!0),t.fromCluster&&(n.debug(`from cluster abc88`,i.get(t.fromCluster),JSON.stringify(k,null,2)),k=U(k.reverse(),i.get(t.fromCluster).node).reverse(),j=!0);let I=k.filter(e=>!Number.isNaN(e.y)),L=re(t.curve);L!==`rounded`&&(I=ae(I));let R=v;switch(L){case`linear`:R=v;break;case`basis`:R=m;break;case`cardinal`:R=s;break;case`bumpX`:R=y;break;case`bumpY`:R=g;break;case`catmullRom`:R=u;break;case`monotoneX`:R=d;break;case`monotoneY`:R=p;break;case`natural`:R=f;break;case`step`:R=c;break;case`stepAfter`:R=l;break;case`stepBefore`:R=_;break;case`rounded`:R=v;break;default:R=m}let{x:z,y:B}=ee(t),V=x().x(z).y(B).curve(R),H;switch(t.thickness){case`normal`:H=`edge-thickness-normal`;break;case`thick`:H=`edge-thickness-thick`;break;case`invisible`:H=`edge-thickness-invisible`;break;default:H=`edge-thickness-normal`}switch(t.pattern){case`solid`:H+=` edge-pattern-solid`;break;case`dotted`:H+=` edge-pattern-dotted`;break;case`dashed`:H+=` edge-pattern-dashed`;break;default:H+=` edge-pattern-solid`}let W,G=L===`rounded`?q(Y(I,t),5):V(I),K=Array.isArray(t.style)?t.style:[t.style],J=K.find(e=>e?.startsWith(`stroke:`)),X=``;t.animate&&(X=`edge-animation-fast`),t.animation&&(X=`edge-animation-`+t.animation);let Z=!1;if(t.look===`handDrawn`){let n=ne.default.svg(e);Object.assign([],I);let i=n.path(G,{roughness:.3,seed:D});H+=` transition`,W=r(i).select(`path`).attr(`id`,`${T}-${t.id}`).attr(`class`,` `+H+(t.classes?` `+t.classes:``)+(X?` `+X:``)).attr(`style`,K?K.reduce((e,t)=>e+`;`+t,``):``);let a=W.attr(`d`);W.attr(`d`,a),e.node().appendChild(W.node())}else{let n=P.join(`;`),r=K?K.reduce((e,t)=>e+t+`;`,``):``,i=(n?n+`;`+r+`;`:r)+`;`+(K?K.reduce((e,t)=>e+`;`+t,``):``);W=e.append(`path`).attr(`d`,G).attr(`id`,`${T}-${t.id}`).attr(`class`,` `+H+(t.classes?` `+t.classes:``)+(X?` `+X:``)).attr(`style`,i),J=i.match(/stroke:([^;]+)/)?.[1],Z=t.animate===!0||!!t.animation||n.includes(`animation`);let a=W.node(),o=typeof a.getTotalLength==`function`?a.getTotalLength():0,s=C[t.arrowTypeStart]||0,c=C[t.arrowTypeEnd]||0;if(t.look===`neo`&&!Z){let e=`stroke-dasharray: ${t.pattern===`dotted`||t.pattern===`dashed`?oe(o,s,c):`0 ${s} ${o-s-c} ${c}`}; stroke-dashoffset: 0;`;W.attr(`style`,e+W.attr(`style`))}}W.attr(`data-edge`,!0),W.attr(`data-et`,`edge`),W.attr(`data-id`,t.id),W.attr(`data-points`,F),W.attr(`data-look`,b(t.look)),t.showPoints&&I.forEach(t=>{e.append(`circle`).style(`stroke`,`red`).style(`fill`,`red`).attr(`r`,1).attr(`cx`,t.x).attr(`cy`,t.y)});let Q=``;(o().flowchart.arrowMarkerAbsolute||o().state.arrowMarkerAbsolute)&&(Q=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,Q=Q.replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)),n.info(`arrowTypeStart`,t.arrowTypeStart),n.info(`arrowTypeEnd`,t.arrowTypeEnd);let se=!Z&&t?.look===`neo`;A(W,t,Q,T,a,se,J);let ce=Math.floor(k.length/2),le=k[ce];h.isLabelCoordinateInPath(le,W.attr(`d`))||(j=!0);let $={};return j&&($.updatedPath=k),$.originalPath=t.points,$},`insertEdge`);function q(e,t){if(e.length<2)return``;let n=``,r=e.length,i=1e-5;for(let a=0;a<r;a++){let o=e[a],s=e[a-1],c=e[a+1];if(a===0)n+=`M${o.x},${o.y}`;else if(a===r-1)n+=`L${o.x},${o.y}`;else{let e=o.x-s.x,r=o.y-s.y,a=c.x-o.x,l=c.y-o.y,u=Math.hypot(e,r),d=Math.hypot(a,l);if(u<i||d<i){n+=`L${o.x},${o.y}`;continue}let f=e/u,p=r/u,m=a/d,h=l/d,g=f*m+p*h,_=Math.acos(Math.max(-1,Math.min(1,g)));if(_<i||Math.abs(Math.PI-_)<i){n+=`L${o.x},${o.y}`;continue}let v=Math.min(t/Math.sin(_/2),u/2,d/2),y=o.x-f*v,b=o.y-p*v,x=o.x+m*v,S=o.y+h*v;n+=`L${y},${b}`,n+=`Q${o.x},${o.y} ${x},${S}`}}return n}t(q,`generateRoundedPath`);function J(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};let n=t.x-e.x,r=t.y-e.y;return{angle:Math.atan2(r,n),deltaX:n,deltaY:r}}t(J,`calculateDeltaAndAngle`);function Y(e,t){let n=e.map(e=>({...e}));if(e.length>=2&&w[t.arrowTypeStart]){let r=w[t.arrowTypeStart],i=e[0],a=e[1],{angle:o}=J(i,a),s=r*Math.cos(o),c=r*Math.sin(o);n[0].x=i.x+s,n[0].y=i.y+c}let r=e.length;if(r>=2&&w[t.arrowTypeEnd]){let i=w[t.arrowTypeEnd],a=e[r-1],o=e[r-2],{angle:s}=J(o,a),c=i*Math.cos(s),l=i*Math.sin(s);n[r-1].x=a.x-c,n[r-1].y=a.y-l}return n}t(Y,`applyMarkerOffsetsToPoints`);var X=t((e,t,n,r)=>{t.forEach(t=>{Z[t](e,n,r)})},`insertMarkers`),Z={extension:t((e,t,r)=>{n.trace(`Making markers for `,r),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+t+`-extensionStart`).attr(`class`,`marker extension `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 1,7 L18,13 V 1 Z`),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+t+`-extensionEnd`).attr(`class`,`marker extension `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 V 13 L18,7 Z`),e.append(`marker`).attr(`id`,r+`_`+t+`-extensionStart-margin`).attr(`class`,`marker extension `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,7 18,13 18,1`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+t+`-extensionEnd-margin`).attr(`class`,`marker extension `+t).attr(`refX`,9).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,1 10,13 18,7`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`)},`extension`),composition:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart`).attr(`class`,`marker composition `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd`).attr(`class`,`marker composition `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart-margin`).attr(`class`,`marker composition `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`viewBox`,`0 0 15 15`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd-margin`).attr(`class`,`marker composition `+t).attr(`refX`,3.5).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`composition`),aggregation:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart`).attr(`class`,`marker aggregation `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`aggregation`),dependency:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart`).attr(`class`,`marker dependency `+t).attr(`refX`,6).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd`).attr(`class`,`marker dependency `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,4).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,16).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`dependency`),lollipop:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2)},`lollipop`),point:t((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,4.5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 5 L 10 10 L 10 0 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,11.5).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,10.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 11.5 7 L 0 14 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,1).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`polygon`).attr(`points`,`0,7 11.5,14 11.5,0`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`point`),circle:t((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,11).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-1).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refY`,5).attr(`refX`,12.25).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-2).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`circle`),cross:t((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,12).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,-1).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,17.7).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,-3.5).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5).style(`stroke-dasharray`,`1,0`)},`cross`),barb:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`barb`),barbNeo:t((e,t,n)=>{let{themeVariables:r}=a(),{transitionColor:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`strokeWidth`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd-margin`).attr(`refX`,17).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`).attr(`fill`,`${i}`)},`barbNeo`),only_one:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`)},`only_one`),zero_or_one:t((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,21).attr(`cy`,9).attr(`r`,6),r.append(`path`).attr(`d`,`M9,0 L9,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,9).attr(`r`,6),i.append(`path`).attr(`d`,`M21,0 L21,18`)},`zero_or_one`),one_or_more:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`)},`one_or_more`),zero_or_more:t((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,48).attr(`cy`,18).attr(`r`,6),r.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,18).attr(`r`,6),i.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`)},`zero_or_more`),only_one_neo:t((e,t,n)=>{let{themeVariables:r}=a(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`).attr(`stroke-width`,`${i}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`).attr(`stroke-width`,`${i}`)},`only_one_neo`),zero_or_one_neo:t((e,t,n)=>{let{themeVariables:r}=a(),{strokeWidth:i,mainBkg:o}=r,s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);s.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,21).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),s.append(`path`).attr(`d`,`M9,0 L9,18`).attr(`stroke-width`,`${i}`);let c=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);c.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,9).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),c.append(`path`).attr(`d`,`M21,0 L21,18`).attr(`stroke-width`,`${i}`)},`zero_or_one_neo`),one_or_more_neo:t((e,t,n)=>{let{themeVariables:r}=a(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`).attr(`stroke-width`,`${i}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`).attr(`stroke-width`,`${i}`)},`one_or_more_neo`),zero_or_more_neo:t((e,t,n)=>{let{themeVariables:r}=a(),{strokeWidth:i,mainBkg:o}=r,s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);s.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,45.5).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),s.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`).attr(`stroke-width`,`${i}`);let c=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);c.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,11).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),c.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`).attr(`stroke-width`,`${i}`)},`zero_or_more_neo`),requirement_arrow:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_arrowEnd`).attr(`refX`,20).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,0
@@ -8,4 +8,4 @@ import{o as e}from"./chunk-DTipWd-i.mjs";import{n as t}from"./chunk-Y2CYZVJY-C7F
8
8
  L20,10
9
9
  M20,10
10
10
  L0,20`).attr(`stroke-linejoin`,`miter`)},`requirement_arrow_neo`),requirement_contains_neo:t((e,t,n)=>{let{themeVariables:r}=a(),{strokeWidth:i}=r,o=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`g`);o.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),o.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),o.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10),o.selectAll(`*`).attr(`stroke-width`,`${i}`)},`requirement_contains_neo`)},Q=X;export{Q as a,R as i,P as n,B as o,K as r,F as s,I as t};
11
- //# sourceMappingURL=chunk-52WLFC77-BaT5_S-q.mjs.map
11
+ //# sourceMappingURL=chunk-52WLFC77-Cn-qt8h-.mjs.map
@@ -1,3 +1,3 @@
1
- import{r as e,t}from"./chunk-74CEPOFO--xsxhUFC.mjs";import{t as n}from"./chunk-HWKDQ44K-CVxg-h0V.mjs";var r={name:`tee`,summary:`read from stdin and write to stdout and files`,usage:`tee [OPTION]... [FILE]...`,options:[`-a, --append append to the given FILEs, do not overwrite`,` --help display this help and exit`]},i={append:{short:`a`,long:`append`,type:`boolean`}},a={name:`tee`,async execute(a,o){if(t(a))return e(r);let s=n(`tee`,a,i);if(!s.ok)return s.error;let{append:c}=s.result.flags,l=s.result.positional,u=o.stdin,d=``,f=0;for(let e of l)try{let t=o.fs.resolvePath(o.cwd,e);c?await o.fs.appendFile(t,u):await o.fs.writeFile(t,u)}catch{d+=`tee: ${e}: No such file or directory
1
+ import{r as e,t}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";import{t as n}from"./chunk-HWKDQ44K-CGcvROg-.mjs";var r={name:`tee`,summary:`read from stdin and write to stdout and files`,usage:`tee [OPTION]... [FILE]...`,options:[`-a, --append append to the given FILEs, do not overwrite`,` --help display this help and exit`]},i={append:{short:`a`,long:`append`,type:`boolean`}},a={name:`tee`,async execute(a,o){if(t(a))return e(r);let s=n(`tee`,a,i);if(!s.ok)return s.error;let{append:c}=s.result.flags,l=s.result.positional,u=o.stdin,d=``,f=0;for(let e of l)try{let t=o.fs.resolvePath(o.cwd,e);c?await o.fs.appendFile(t,u):await o.fs.writeFile(t,u)}catch{d+=`tee: ${e}: No such file or directory
2
2
  `,f=1}return{stdout:u,stderr:d,exitCode:f}}},o={name:`tee`,flags:[{flag:`-a`,type:`boolean`}],stdinType:`text`,needsArgs:!0};export{a as n,o as t};
3
- //# sourceMappingURL=chunk-55VFSPNA-Ct9maI6O.mjs.map
3
+ //# sourceMappingURL=chunk-55VFSPNA-D2U7n2ka.mjs.map
@@ -1,2 +1,2 @@
1
- import{C as e,S as t,b as n,n as r,o as i,u as a,w as o,x as s}from"./chunk-KEIR6QF5-BhaMJNB5.mjs";var c=class extends r{static{s(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},l={parser:{ValueConverter:s(()=>new c,`ValueConverter`)}};function u(r=i){let s=o(e(r),a),c=o(t({shared:s}),n,l);return s.ServiceRegistry.register(c),{shared:s,Wardley:c}}s(u,`createWardleyServices`);export{u as n,l as t};
2
- //# sourceMappingURL=chunk-5FCAYU7R-of7BBDNL.mjs.map
1
+ import{C as e,S as t,b as n,n as r,o as i,u as a,w as o,x as s}from"./chunk-KEIR6QF5-BLwvtFl6.mjs";var c=class extends r{static{s(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},l={parser:{ValueConverter:s(()=>new c,`ValueConverter`)}};function u(r=i){let s=o(e(r),a),c=o(t({shared:s}),n,l);return s.ServiceRegistry.register(c),{shared:s,Wardley:c}}s(u,`createWardleyServices`);export{u as n,l as t};
2
+ //# sourceMappingURL=chunk-5FCAYU7R-DszODYLe.mjs.map
@@ -1,2 +1,2 @@
1
- import{C as e,S as t,m as n,n as r,o as i,t as a,u as o,w as s,x as c}from"./chunk-KEIR6QF5-BhaMJNB5.mjs";var l=class extends a{static{c(this,`RailroadAbnfTokenBuilder`)}constructor(){super([`railroad-abnf-beta`])}},u=class extends r{static{c(this,`RailroadAbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return e.slice(1,-1)}return r}runCustomConverter(e,t,n){if(e.name===`ABNF_STRING`)return t.slice(1,-1)}},d={parser:{TokenBuilder:c(()=>new l,`TokenBuilder`),ValueConverter:c(()=>new u,`ValueConverter`)}};function f(r=i){let a=s(e(r),o),c=s(t({shared:a}),n,d);return a.ServiceRegistry.register(c),{shared:a,RailroadAbnf:c}}c(f,`createRailroadAbnfServices`);export{f as n,d as t};
2
- //# sourceMappingURL=chunk-5HE753X5-9kILZ5Nr.mjs.map
1
+ import{C as e,S as t,m as n,n as r,o as i,t as a,u as o,w as s,x as c}from"./chunk-KEIR6QF5-BLwvtFl6.mjs";var l=class extends a{static{c(this,`RailroadAbnfTokenBuilder`)}constructor(){super([`railroad-abnf-beta`])}},u=class extends r{static{c(this,`RailroadAbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return e.slice(1,-1)}return r}runCustomConverter(e,t,n){if(e.name===`ABNF_STRING`)return t.slice(1,-1)}},d={parser:{TokenBuilder:c(()=>new l,`TokenBuilder`),ValueConverter:c(()=>new u,`ValueConverter`)}};function f(r=i){let a=s(e(r),o),c=s(t({shared:a}),n,d);return a.ServiceRegistry.register(c),{shared:a,RailroadAbnf:c}}c(f,`createRailroadAbnfServices`);export{f as n,d as t};
2
+ //# sourceMappingURL=chunk-5HE753X5-DDnyF29o.mjs.map
@@ -1,2 +1,2 @@
1
- import{C as e,S as t,i as n,o as r,s as i,t as a,u as o,w as s,x as c}from"./chunk-KEIR6QF5-BhaMJNB5.mjs";var l=class extends a{static{c(this,`EventModelingTokenBuilder`)}constructor(){super([`eventmodeling`])}},u=new Set([`cmd`,`command`]),d=new Set([`evt`,`event`]),f=new Set([`rmo`,`readmodel`]),p=new Set([`pcr`,`processor`]),m=new Set([`ui`]);function h(e){let t=e.validation.EventModelingValidator,n=e.validation.ValidationRegistry;if(n){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};n.register(e,t)}}c(h,`registerValidationChecks`);var g=class{static{c(this,`EventModelingValidator`)}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(u.has(e.modelEntityType)?this.validateSources(e,new Set([...m,...p]),`command`,`ui or processor`,t):d.has(e.modelEntityType)?this.validateSources(e,u,`event`,`command`,t):f.has(e.modelEntityType)?this.validateSources(e,d,`read model`,`event`,t):p.has(e.modelEntityType)?this.validateSources(e,f,`processor`,`read model`,t):m.has(e.modelEntityType)&&this.validateSources(e,f,`ui`,`read model`,t))}validateSources(e,t,n,r,i){for(let a of e.sourceFrames){let o=a.ref;o!==void 0&&!t.has(o.modelEntityType)&&i(`error`,`A ${n} can only receive input from a ${r}, not from '${o.modelEntityType}'.`,{node:e,property:`sourceFrames`})}}},_={parser:{TokenBuilder:c(()=>new l,`TokenBuilder`),ValueConverter:c(()=>new n,`ValueConverter`)},validation:{EventModelingValidator:c(()=>new g,`EventModelingValidator`)}};function v(n=r){let a=s(e(n),o),c=s(t({shared:a}),i,_);return a.ServiceRegistry.register(c),h(c),{shared:a,EventModel:c}}c(v,`createEventModelingServices`);export{v as n,_ as t};
2
- //# sourceMappingURL=chunk-5JV3BV7I-BKVVlFxh.mjs.map
1
+ import{C as e,S as t,i as n,o as r,s as i,t as a,u as o,w as s,x as c}from"./chunk-KEIR6QF5-BLwvtFl6.mjs";var l=class extends a{static{c(this,`EventModelingTokenBuilder`)}constructor(){super([`eventmodeling`])}},u=new Set([`cmd`,`command`]),d=new Set([`evt`,`event`]),f=new Set([`rmo`,`readmodel`]),p=new Set([`pcr`,`processor`]),m=new Set([`ui`]);function h(e){let t=e.validation.EventModelingValidator,n=e.validation.ValidationRegistry;if(n){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};n.register(e,t)}}c(h,`registerValidationChecks`);var g=class{static{c(this,`EventModelingValidator`)}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(u.has(e.modelEntityType)?this.validateSources(e,new Set([...m,...p]),`command`,`ui or processor`,t):d.has(e.modelEntityType)?this.validateSources(e,u,`event`,`command`,t):f.has(e.modelEntityType)?this.validateSources(e,d,`read model`,`event`,t):p.has(e.modelEntityType)?this.validateSources(e,f,`processor`,`read model`,t):m.has(e.modelEntityType)&&this.validateSources(e,f,`ui`,`read model`,t))}validateSources(e,t,n,r,i){for(let a of e.sourceFrames){let o=a.ref;o!==void 0&&!t.has(o.modelEntityType)&&i(`error`,`A ${n} can only receive input from a ${r}, not from '${o.modelEntityType}'.`,{node:e,property:`sourceFrames`})}}},_={parser:{TokenBuilder:c(()=>new l,`TokenBuilder`),ValueConverter:c(()=>new n,`ValueConverter`)},validation:{EventModelingValidator:c(()=>new g,`EventModelingValidator`)}};function v(n=r){let a=s(e(n),o),c=s(t({shared:a}),i,_);return a.ServiceRegistry.register(c),h(c),{shared:a,EventModel:c}}c(v,`createEventModelingServices`);export{v as n,_ as t};
2
+ //# sourceMappingURL=chunk-5JV3BV7I-BkeVAZnj.mjs.map
@@ -0,0 +1,5 @@
1
+ import{t as e}from"./chunk-DXB73IDG-BBwE27jK.mjs";function t(){let e=[{prop:`Function`,target:globalThis,violationType:`function_constructor`,strategy:`throw`,reason:`Function constructor allows arbitrary code execution`},{prop:`eval`,target:globalThis,violationType:`eval`,strategy:`throw`,reason:`eval() allows arbitrary code execution`},{prop:`setTimeout`,target:globalThis,violationType:`setTimeout`,strategy:`throw`,reason:`setTimeout with string argument allows code execution`},{prop:`setInterval`,target:globalThis,violationType:`setInterval`,strategy:`throw`,reason:`setInterval with string argument allows code execution`},{prop:`setImmediate`,target:globalThis,violationType:`setImmediate`,strategy:`throw`,reason:`setImmediate could be used to escape sandbox context`},{prop:`env`,target:process,violationType:`process_env`,strategy:`throw`,reason:`process.env could leak sensitive environment variables`,allowedKeys:new Set([`NODE_V8_COVERAGE`,`NODE_DEBUG`,`NODE_DEBUG_NATIVE`,`NODE_COMPILE_CACHE`,`WATCH_REPORT_DEPENDENCIES`,`FORCE_COLOR`,`DEBUG`,`UNDICI_NO_FG`,`JEST_WORKER_ID`,`__MINIMATCH_TESTING_PLATFORM__`,`LOG_TOKENS`,`LOG_STREAM`])},{prop:`binding`,target:process,violationType:`process_binding`,strategy:`throw`,reason:`process.binding provides access to native Node.js modules`},{prop:`_linkedBinding`,target:process,violationType:`process_binding`,strategy:`throw`,reason:`process._linkedBinding provides access to native Node.js modules`},{prop:`dlopen`,target:process,violationType:`process_dlopen`,strategy:`throw`,reason:`process.dlopen allows loading native addons`},{prop:`getBuiltinModule`,target:process,violationType:`process_get_builtin_module`,strategy:`throw`,reason:`process.getBuiltinModule allows loading native Node.js modules (fs, child_process, vm)`},{prop:`exit`,target:process,violationType:`process_exit`,strategy:`throw`,reason:`process.exit could terminate the interpreter`},{prop:`abort`,target:process,violationType:`process_exit`,strategy:`throw`,reason:`process.abort could crash the interpreter`},{prop:`kill`,target:process,violationType:`process_kill`,strategy:`throw`,reason:`process.kill could signal other processes`},{prop:`setuid`,target:process,violationType:`process_setuid`,strategy:`throw`,reason:`process.setuid could escalate privileges`},{prop:`setgid`,target:process,violationType:`process_setuid`,strategy:`throw`,reason:`process.setgid could escalate privileges`},{prop:`seteuid`,target:process,violationType:`process_setuid`,strategy:`throw`,reason:`process.seteuid could escalate effective user privileges`},{prop:`setegid`,target:process,violationType:`process_setuid`,strategy:`throw`,reason:`process.setegid could escalate effective group privileges`},{prop:`initgroups`,target:process,violationType:`process_setuid`,strategy:`throw`,reason:`process.initgroups could modify supplementary group IDs`},{prop:`setgroups`,target:process,violationType:`process_setuid`,strategy:`throw`,reason:`process.setgroups could modify supplementary group IDs`},{prop:`umask`,target:process,violationType:`process_umask`,strategy:`throw`,reason:`process.umask could modify file creation permissions`},{prop:`argv`,target:process,violationType:`process_argv`,strategy:`throw`,reason:`process.argv may contain secrets in CLI arguments`},{prop:`cwd`,target:process,violationType:`process_chdir`,strategy:`throw`,reason:`process.cwd could disclose real host working directory path`},{prop:`chdir`,target:process,violationType:`process_chdir`,strategy:`throw`,reason:`process.chdir could confuse the interpreter's CWD tracking`},{prop:`report`,target:process,violationType:`process_report`,strategy:`throw`,reason:`process.report could disclose full environment, host paths, and system info`},{prop:`loadEnvFile`,target:process,violationType:`process_env`,strategy:`throw`,reason:`process.loadEnvFile could load env files bypassing env proxy`},{prop:`setUncaughtExceptionCaptureCallback`,target:process,violationType:`process_exception_handler`,strategy:`throw`,reason:`setUncaughtExceptionCaptureCallback could intercept security errors`},{prop:`send`,target:process,violationType:`process_send`,strategy:`throw`,reason:`process.send could communicate with parent process in IPC contexts`},{prop:`channel`,target:process,violationType:`process_channel`,strategy:`throw`,reason:`process.channel could access IPC channel to parent process`},{prop:`cpuUsage`,target:process,violationType:`process_timing`,strategy:`throw`,reason:`process.cpuUsage could enable timing side-channel attacks`},{prop:`memoryUsage`,target:process,violationType:`process_timing`,strategy:`throw`,reason:`process.memoryUsage could enable timing side-channel attacks`},{prop:`hrtime`,target:process,violationType:`process_timing`,strategy:`throw`,reason:`process.hrtime could enable timing side-channel attacks`},{prop:`WeakRef`,target:globalThis,violationType:`weak_ref`,strategy:`throw`,reason:`WeakRef could be used to leak references outside sandbox`},{prop:`FinalizationRegistry`,target:globalThis,violationType:`finalization_registry`,strategy:`throw`,reason:`FinalizationRegistry could be used to leak references outside sandbox`},{prop:`Reflect`,target:globalThis,violationType:`reflect`,strategy:`freeze`,reason:`Reflect provides introspection capabilities`},{prop:`Proxy`,target:globalThis,violationType:`proxy`,strategy:`throw`,reason:`Proxy allows intercepting and modifying object behavior`},{prop:`WebAssembly`,target:globalThis,violationType:`webassembly`,strategy:`throw`,reason:`WebAssembly allows executing arbitrary compiled code`},{prop:`SharedArrayBuffer`,target:globalThis,violationType:`shared_array_buffer`,strategy:`throw`,reason:`SharedArrayBuffer could enable side-channel communication or timing attacks`},{prop:`Atomics`,target:globalThis,violationType:`atomics`,strategy:`throw`,reason:`Atomics could enable side-channel communication or timing attacks`},{prop:`performance`,target:globalThis,violationType:`performance_timing`,strategy:`throw`,reason:`performance.now() provides sub-millisecond timing for side-channel attacks`},{prop:`stdout`,target:process,violationType:`process_stdout`,strategy:`throw`,reason:`process.stdout could bypass interpreter output to write to host stdout`},{prop:`stderr`,target:process,violationType:`process_stderr`,strategy:`throw`,reason:`process.stderr could bypass interpreter output to write to host stderr`},{prop:`__defineGetter__`,target:Object.prototype,violationType:`prototype_mutation`,strategy:`throw`,reason:`__defineGetter__ allows prototype pollution via getter injection`},{prop:`__defineSetter__`,target:Object.prototype,violationType:`prototype_mutation`,strategy:`throw`,reason:`__defineSetter__ allows prototype pollution via setter injection`},{prop:`__lookupGetter__`,target:Object.prototype,violationType:`prototype_mutation`,strategy:`throw`,reason:`__lookupGetter__ enables introspection for prototype pollution attacks`},{prop:`__lookupSetter__`,target:Object.prototype,violationType:`prototype_mutation`,strategy:`throw`,reason:`__lookupSetter__ enables introspection for prototype pollution attacks`},{prop:`JSON`,target:globalThis,violationType:`json_mutation`,strategy:`freeze`,reason:`Freeze JSON to prevent mutation of parsing/serialization`},{prop:`Math`,target:globalThis,violationType:`math_mutation`,strategy:`freeze`,reason:`Freeze Math to prevent mutation of math utilities`}];try{let t=Object.getPrototypeOf(async()=>{}).constructor;t&&t!==Function&&e.push({prop:`constructor`,target:Object.getPrototypeOf(async()=>{}),violationType:`async_function_constructor`,strategy:`throw`,reason:`AsyncFunction constructor allows arbitrary async code execution`})}catch{}try{let t=Object.getPrototypeOf(function*(){}).constructor;t&&t!==Function&&e.push({prop:`constructor`,target:Object.getPrototypeOf(function*(){}),violationType:`generator_function_constructor`,strategy:`throw`,reason:`GeneratorFunction constructor allows arbitrary generator code execution`})}catch{}try{let t=Object.getPrototypeOf(async function*(){}).constructor;t&&t!==Function&&t!==Object.getPrototypeOf(async()=>{}).constructor&&e.push({prop:`constructor`,target:Object.getPrototypeOf(async function*(){}),violationType:`async_generator_function_constructor`,strategy:`throw`,reason:`AsyncGeneratorFunction constructor allows arbitrary async generator code execution`})}catch{}return e.filter(e=>{try{return e.target[e.prop]!==void 0}catch{return!1}})}var n=typeof __BROWSER__<`u`&&__BROWSER__;function r(){return typeof crypto<`u`&&crypto.randomUUID?crypto.randomUUID():`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e===`x`?t:t&3|8).toString(16)})}var i=null;if(!n)try{let{AsyncLocalStorage:t}=e(`node:async_hooks`);i=t}catch{}var a=`
2
+
3
+ This is a defense-in-depth measure and indicates a bug in just-bash. Please report this at security@vercel.com`,o=class extends Error{violation;constructor(e,t){super(e+a),this.violation=t,this.name=`SecurityViolationError`}},s=!n&&i?new i:null,c=1e3;function l(e,t,...n){return s.run(e,()=>t(...n))}var u={enabled:!0,auditMode:!1};function d(e){return e===void 0?{...u,enabled:!1}:typeof e==`boolean`?{...u,enabled:e}:{...u,...e}}var f=class i{static instance=null;static importHooksRegistered=!1;static trustedExecutionDepth=new Map;config;refCount=0;patchFailures=[];activeExecutionIds=new Set;contextCache=new Map;originalDescriptors=[];violations=[];activationTime=0;totalActiveTimeMs=0;constructor(e){this.config=e}static getInstance(e){let t=d(e);if(!i.instance)i.instance=new i(t);else{let e=i.instance.config;if(t.enabled!==e.enabled||t.auditMode!==e.auditMode)throw Error(`DefenseInDepthBox config conflict: requested {enabled: ${t.enabled}, auditMode: ${t.auditMode}} but singleton already has {enabled: ${e.enabled}, auditMode: ${e.auditMode}}. All Bash instances must use the same defense-in-depth security settings, or call DefenseInDepthBox.resetInstance() between incompatible configurations.`)}return i.instance}static resetInstance(){i.instance&&=(i.instance.forceDeactivate(),null),i.trustedExecutionDepth.clear()}static isInSandboxedContext(){return s?s?.getStore()?.sandboxActive===!0:!1}static getCurrentExecutionId(){if(s)return s?.getStore()?.executionId}static enterTrustedScope(e){let t=i.trustedExecutionDepth.get(e)??0;i.trustedExecutionDepth.set(e,t+1)}static leaveTrustedScope(e){let t=i.trustedExecutionDepth.get(e);if(t){if(t===1){i.trustedExecutionDepth.delete(e);return}i.trustedExecutionDepth.set(e,t-1)}}static isTrustedScopeActive(e){return e?(i.trustedExecutionDepth.get(e)??0)>0:!1}isExecutionIdActive(e){return this.activeExecutionIds.has(e)}getCachedContext(e){let t=this.contextCache.get(e);return t||(t={sandboxActive:!0,executionId:e},this.contextCache.set(e,t)),t}getPreferredActiveExecutionId(){if(this.activeExecutionIds.size!==0)for(let e of this.activeExecutionIds)return e}static bindCurrentContext(e){if(!s)return e;let t=i.instance,n=s.getStore(),r=n?.sandboxActive===!0?n.executionId:t?.getPreferredActiveExecutionId();if(!r)return e;let a=t?.getCachedContext(r)??{sandboxActive:!0,executionId:r};return((...t)=>{let n=i.instance;if(!(n&&!n.isExecutionIdActive(r)&&(n.recordViolation(`bound_callback_after_deactivate`,`bound callback`,`Bound callback blocked after originating execution was deactivated`),!n.config.auditMode)))return l(a,e,...t)})}isEnabled(){return this.config.enabled===!0&&s!==null&&!n}updateConfig(e){this.config={...this.config,...e}}activate(){if(n||!this.config.enabled||!s){let e=r(),t=!1;return{run:e=>t?Promise.reject(Error(`DefenseInDepthBox handle is deactivated and cannot run new work`)):e(),deactivate:()=>{t=!0},executionId:e}}this.refCount++,this.refCount===1&&(this.applyPatches(),this.activationTime=Date.now());let e=r(),t=!1;return{run:n=>t?Promise.reject(Error(`DefenseInDepthBox handle is deactivated and cannot run new work`)):(this.activeExecutionIds.add(e),s.run({sandboxActive:!0,executionId:e},n)),deactivate:()=>{t||(t=!0,this.activeExecutionIds.delete(e),this.contextCache.delete(e),this.refCount--,this.refCount===0&&(this.restorePatches(),this.totalActiveTimeMs+=Date.now()-this.activationTime),this.refCount<0&&(this.refCount=0))},executionId:e}}forceDeactivate(){this.refCount>0&&(this.restorePatches(),this.totalActiveTimeMs+=Date.now()-this.activationTime),this.activeExecutionIds.clear(),this.contextCache.clear(),this.refCount=0}isActive(){return this.refCount>0}getStats(){return{violationsBlocked:this.violations.length,violations:[...this.violations],activeTimeMs:this.totalActiveTimeMs+(this.refCount>0?Date.now()-this.activationTime:0),refCount:this.refCount}}getPatchFailures(){return[...this.patchFailures]}clearViolations(){this.violations=[]}getPathForTarget(e,t){return e===globalThis?`globalThis.${t}`:e===process?`process.${t}`:e===Error?`Error.${t}`:e===Function.prototype?`Function.prototype.${t}`:e===Object.prototype?`Object.prototype.${t}`:`<object>.${t}`}static runTrusted(e){if(!s)return e();let t=s.getStore();if(!t)return e();let{executionId:n}=t;return s.run({...t,trusted:!0},()=>{i.enterTrustedScope(n);try{let t=e();return typeof t==`object`&&t&&`finally`in t&&typeof t.finally==`function`?t.finally(()=>{i.leaveTrustedScope(n)}):(i.leaveTrustedScope(n),t)}catch(e){throw i.leaveTrustedScope(n),e}})}static async runTrustedAsync(e){if(!s)return e();let t=s.getStore();if(!t)return e();let{executionId:n}=t;return s.run({...t,trusted:!0},async()=>{i.enterTrustedScope(n);try{return await e()}finally{i.leaveTrustedScope(n)}})}shouldBlock(){if(n||this.config.auditMode||!s)return!1;let e=s?.getStore();return!(e?.sandboxActive!==!0||e.trusted||i.isTrustedScopeActive(e.executionId))}recordViolation(e,t,n){let r={timestamp:Date.now(),type:e,message:n,path:t,stack:Error().stack,executionId:s?.getStore()?.executionId};if(this.violations.length<c&&this.violations.push(r),this.config.onViolation)try{this.config.onViolation(r)}catch(e){console.debug(`[DefenseInDepthBox] onViolation callback threw:`,e instanceof Error?e.message:e)}return r}createBlockingProxy(e,t,n){let r=this;return new Proxy(e,{apply(e,i,a){if(r.shouldBlock()){let e=`${t} is blocked during script execution`;throw new o(e,r.recordViolation(n,t,e))}return r.config.auditMode&&s?.getStore()?.sandboxActive===!0&&r.recordViolation(n,t,`${t} called (audit mode)`),Reflect.apply(e,i,a)},construct(e,i,a){if(r.shouldBlock()){let e=`${t} constructor is blocked during script execution`;throw new o(e,r.recordViolation(n,t,e))}return r.config.auditMode&&s?.getStore()?.sandboxActive===!0&&r.recordViolation(n,t,`${t} constructor called (audit mode)`),Reflect.construct(e,i,a)}})}createBlockingObjectProxy(e,t,n,r){let i=this;return new Proxy(e,{get(e,a,c){if(i.shouldBlock()){if(r&&typeof a==`string`&&r.has(a))return Reflect.get(e,a,c);let s=`${t}.${String(a)}`,l=`${s} is blocked during script execution`;throw new o(l,i.recordViolation(n,s,l))}if(i.config.auditMode&&s?.getStore()?.sandboxActive===!0){let e=`${t}.${String(a)}`;i.recordViolation(n,e,`${e} accessed (audit mode)`)}return Reflect.get(e,a,c)},set(e,r,a,s){if(i.shouldBlock()){let e=`${t}.${String(r)}`,a=`${e} modification is blocked during script execution`;throw new o(a,i.recordViolation(n,e,a))}return Reflect.set(e,r,a,s)},ownKeys(e){if(i.shouldBlock()){let e=`${t} enumeration is blocked during script execution`;throw new o(e,i.recordViolation(n,t,e))}return Reflect.ownKeys(e)},getOwnPropertyDescriptor(e,r){if(i.shouldBlock()){let e=`${t}.${String(r)}`,a=`${e} descriptor access is blocked during script execution`;throw new o(a,i.recordViolation(n,e,a))}return Reflect.getOwnPropertyDescriptor(e,r)},has(e,r){if(i.shouldBlock()){let e=`${t}.${String(r)}`,a=`${e} existence check is blocked during script execution`;throw new o(a,i.recordViolation(n,e,a))}return Reflect.has(e,r)},deleteProperty(e,r){if(i.shouldBlock()){let e=`${t}.${String(r)}`,a=`${e} deletion is blocked during script execution`;throw new o(a,i.recordViolation(n,e,a))}return Reflect.deleteProperty(e,r)},setPrototypeOf(e,r){if(i.shouldBlock()){let e=`${t} setPrototypeOf is blocked during script execution`;throw new o(e,i.recordViolation(n,t,e))}return Reflect.setPrototypeOf(e,r)},defineProperty(e,r,a){if(i.shouldBlock()){let e=`${t}.${String(r)}`,a=`${e} defineProperty is blocked during script execution`;throw new o(a,i.recordViolation(n,e,a))}return Reflect.defineProperty(e,r,a)}})}applyPatches(){this.patchFailures=[];let e=t(),n=new Set([`process_send`,`process_channel`,`process_stdout`,`process_stderr`]);for(let t of e)n.has(t.violationType)||this.applyPatch(t);this.protectConstructorChain(),this.protectErrorPrepareStackTrace(),this.protectPromiseThen(),this.protectDynamicImport(),this.protectModuleLoad(),this.protectModuleResolveFilename(),this.protectProcessMainModule(),this.protectProcessExecPath(),this.lockWellKnownSymbols(),this.protectProxyRevocable();let r=[`Function.prototype.constructor`,`Module._load`],i=this.patchFailures.filter(e=>r.includes(e));if(i.length>0)throw this.restorePatches(),Error(`DefenseInDepthBox: critical patches failed: ${i.join(`, `)}`)}protectConstructorChain(){this.patchPrototypeConstructor(Function.prototype,`Function.prototype.constructor`,`function_constructor`);try{let e=Object.getPrototypeOf(async()=>{}).constructor;e&&e!==Function&&this.patchPrototypeConstructor(e.prototype,`AsyncFunction.prototype.constructor`,`async_function_constructor`)}catch(e){this.patchFailures.push(`AsyncFunction.prototype.constructor`),console.debug(`[DefenseInDepthBox] Could not patch AsyncFunction.prototype.constructor:`,e instanceof Error?e.message:e)}try{let e=Object.getPrototypeOf(function*(){}).constructor;e&&e!==Function&&this.patchPrototypeConstructor(e.prototype,`GeneratorFunction.prototype.constructor`,`generator_function_constructor`)}catch(e){this.patchFailures.push(`GeneratorFunction.prototype.constructor`),console.debug(`[DefenseInDepthBox] Could not patch GeneratorFunction.prototype.constructor:`,e instanceof Error?e.message:e)}try{let e=Object.getPrototypeOf(async function*(){}).constructor,t=Object.getPrototypeOf(async()=>{}).constructor;e&&e!==Function&&e!==t&&this.patchPrototypeConstructor(e.prototype,`AsyncGeneratorFunction.prototype.constructor`,`async_generator_function_constructor`)}catch(e){this.patchFailures.push(`AsyncGeneratorFunction.prototype.constructor`),console.debug(`[DefenseInDepthBox] Could not patch AsyncGeneratorFunction.prototype.constructor:`,e instanceof Error?e.message:e)}}protectErrorPrepareStackTrace(){let e=this;try{let t=Object.getOwnPropertyDescriptor(Error,`prepareStackTrace`);this.originalDescriptors.push({target:Error,prop:`prepareStackTrace`,descriptor:t});let n=t?.value;Object.defineProperty(Error,`prepareStackTrace`,{get(){return n},set(t){if(e.shouldBlock()){let t=`Error.prepareStackTrace modification is blocked during script execution`;throw new o(t,e.recordViolation(`error_prepare_stack_trace`,`Error.prepareStackTrace`,t))}e.config.auditMode&&s?.getStore()?.sandboxActive===!0&&e.recordViolation(`error_prepare_stack_trace`,`Error.prepareStackTrace`,`Error.prepareStackTrace set (audit mode)`),n=t},configurable:!0})}catch(e){this.patchFailures.push(`Error.prepareStackTrace`),console.debug(`[DefenseInDepthBox] Could not protect Error.prepareStackTrace:`,e instanceof Error?e.message:e)}}protectPromiseThen(){let e=this;try{let t=function(...e){return s.run(this.captured,()=>{if(!this.box.isExecutionIdActive(this.executionId)){if(this.box.recordViolation(`promise_then_after_deactivate`,`Promise.then`,`Promise.then callback is blocked after defense deactivation`),this.box.config.auditMode)return Reflect.apply(this.cb,void 0,e);if(this.kind===`fulfilled`)return e[0];throw e[0]}return Reflect.apply(this.cb,void 0,e)})},n=Object.getOwnPropertyDescriptor(Promise.prototype,`then`);this.originalDescriptors.push({target:Promise.prototype,prop:`then`,descriptor:n});let r=n?.value;if(typeof r!=`function`)return;Object.defineProperty(Promise.prototype,`then`,{value:function(n,i){if(!s)return Reflect.apply(r,this,[n,i]);let a=s.getStore(),o=a?.sandboxActive===!0&&a.trusted!==!0?a.executionId:void 0;if(!o)return Reflect.apply(r,this,[n,i]);let c=e.getCachedContext(o),l=(n,r)=>typeof n==`function`?t.bind({box:e,executionId:o,captured:c,cb:n,kind:r}):n;return Reflect.apply(r,this,[l(n,`fulfilled`),l(i,`rejected`)])},writable:!0,configurable:!0})}catch(e){this.patchFailures.push(`Promise.prototype.then`),console.debug(`[DefenseInDepthBox] Could not protect Promise.prototype.then:`,e instanceof Error?e.message:e)}}patchPrototypeConstructor(e,t,n){let r=this;try{let i=Object.getOwnPropertyDescriptor(e,`constructor`);this.originalDescriptors.push({target:e,prop:`constructor`,descriptor:i});let a=i?.value;Object.defineProperty(e,`constructor`,{get(){if(r.shouldBlock()){let e=`${t} access is blocked during script execution`;throw new o(e,r.recordViolation(n,t,e))}return r.config.auditMode&&s?.getStore()?.sandboxActive===!0&&r.recordViolation(n,t,`${t} accessed (audit mode)`),a},set(e){if(r.shouldBlock()){let e=`${t} modification is blocked during script execution`;throw new o(e,r.recordViolation(n,t,e))}Object.defineProperty(this,`constructor`,{value:e,writable:!0,configurable:!0})},configurable:!0})}catch(e){this.patchFailures.push(t),console.debug(`[DefenseInDepthBox] Could not patch ${t}:`,e instanceof Error?e.message:e)}}protectProcessMainModule(){if(typeof process>`u`)return;let e=this;try{let t=Object.getOwnPropertyDescriptor(process,`mainModule`);this.originalDescriptors.push({target:process,prop:`mainModule`,descriptor:t});let n=t?.value;n!==void 0&&Object.defineProperty(process,`mainModule`,{get(){if(e.shouldBlock()){let t=`process.mainModule access is blocked during script execution`;throw new o(t,e.recordViolation(`process_main_module`,`process.mainModule`,t))}return e.config.auditMode&&s?.getStore()?.sandboxActive===!0&&e.recordViolation(`process_main_module`,`process.mainModule`,`process.mainModule accessed (audit mode)`),n},set(t){if(e.shouldBlock()){let t=`process.mainModule modification is blocked during script execution`;throw new o(t,e.recordViolation(`process_main_module`,`process.mainModule`,t))}Object.defineProperty(process,`mainModule`,{value:t,writable:!0,configurable:!0})},configurable:!0})}catch(e){this.patchFailures.push(`process.mainModule`),console.debug(`[DefenseInDepthBox] Could not protect process.mainModule:`,e instanceof Error?e.message:e)}}protectProcessExecPath(){if(typeof process>`u`)return;let e=this;try{let t=Object.getOwnPropertyDescriptor(process,`execPath`);this.originalDescriptors.push({target:process,prop:`execPath`,descriptor:t});let n=t?.value??process.execPath;Object.defineProperty(process,`execPath`,{get(){if(e.shouldBlock()){let t=`process.execPath access is blocked during script execution`;throw new o(t,e.recordViolation(`process_exec_path`,`process.execPath`,t))}return e.config.auditMode&&s?.getStore()?.sandboxActive===!0&&e.recordViolation(`process_exec_path`,`process.execPath`,`process.execPath accessed (audit mode)`),n},set(t){if(e.shouldBlock()){let t=`process.execPath modification is blocked during script execution`;throw new o(t,e.recordViolation(`process_exec_path`,`process.execPath`,t))}Object.defineProperty(process,`execPath`,{value:t,writable:!0,configurable:!0})},configurable:!0})}catch(e){this.patchFailures.push(`process.execPath`),console.debug(`[DefenseInDepthBox] Could not protect process.execPath:`,e instanceof Error?e.message:e)}}lockWellKnownSymbols(){let e=(e,t)=>{try{let n=Object.getOwnPropertyDescriptor(e,t);if(n?.configurable){if(`value`in n){Object.defineProperty(e,t,{...n,configurable:!1,writable:!1});return}Object.defineProperty(e,t,{...n,configurable:!1})}}catch{}};for(let t of[Array,Map,Set,RegExp,Promise])e(t,Symbol.species);for(let t of[Array.prototype,String.prototype,Map.prototype,Set.prototype])e(t,Symbol.iterator);e(Symbol.prototype,Symbol.toPrimitive),e(Date.prototype,Symbol.toPrimitive);for(let t of[Symbol.match,Symbol.matchAll,Symbol.replace,Symbol.search,Symbol.split])e(RegExp.prototype,t);e(Function.prototype,Symbol.hasInstance),e(Array.prototype,Symbol.unscopables);for(let t of[Map.prototype,Set.prototype,Promise.prototype,ArrayBuffer.prototype])e(t,Symbol.toStringTag);try{let e=Object.getOwnPropertyDescriptor(Error,`stackTraceLimit`);this.originalDescriptors.push({target:Error,prop:`stackTraceLimit`,descriptor:e}),Object.defineProperty(Error,`stackTraceLimit`,{value:Error.stackTraceLimit,writable:!1,configurable:!0})}catch{}}protectProxyRevocable(){let e=this;try{let t=Proxy.revocable;if(typeof t!=`function`)return;let n=Object.getOwnPropertyDescriptor(Proxy,`revocable`);this.originalDescriptors.push({target:Proxy,prop:`revocable`,descriptor:n}),Object.defineProperty(Proxy,`revocable`,{value:function(n,r){if(e.shouldBlock()){let t=`Proxy.revocable is blocked during script execution`;throw new o(t,e.recordViolation(`proxy`,`Proxy.revocable`,t))}return e.config.auditMode&&s?.getStore()?.sandboxActive===!0&&e.recordViolation(`proxy`,`Proxy.revocable`,`Proxy.revocable called (audit mode)`),t(n,r)},writable:!1,configurable:!0})}catch(e){this.patchFailures.push(`Proxy.revocable`),console.debug(`[DefenseInDepthBox] Could not protect Proxy.revocable:`,e instanceof Error?e.message:e)}}protectDynamicImport(){if(!(n||i.importHooksRegistered))try{let t=this,n=e(`node:module`),r=new Set;for(let e of n.builtinModules??[]){let t=e.startsWith(`node:`)?e.slice(5):e;r.add(t);let n=t.indexOf(`/`);n>0&&r.add(t.slice(0,n))}let a=e=>{if(e.startsWith(`./`)||e.startsWith(`../`)||e.startsWith(`/`)||e.startsWith(`file:`)||e.startsWith(`data:`)||e.startsWith(`blob:`)||e.startsWith(`http:`)||e.startsWith(`https:`))return!1;let t=e.startsWith(`node:`)?e.slice(5):e;if(!t)return!1;if(typeof n.isBuiltin==`function`&&n.isBuiltin(t)||r.has(t))return!0;let i=t.indexOf(`/`);return i>0&&r.has(t.slice(0,i))},c=()=>{let e=s?.getStore();return t.config.auditMode===!0&&e?.sandboxActive===!0&&e.trusted!==!0&&!i.isTrustedScopeActive(e.executionId)};if(typeof n.registerHooks==`function`){n.registerHooks({resolve(e,n,r){if(e.startsWith(`data:`)||e.startsWith(`blob:`))throw Error(`dynamic import of ${e.startsWith(`data:`)?`data:`:`blob:`} URLs is blocked by defense-in-depth`);if(a(e)){let n=`import(${e})`,r=`dynamic import of Node.js builtin '${e}' is blocked during script execution`;if(t.shouldBlock())throw new o(r,t.recordViolation(`dynamic_import_builtin`,n,r));c()&&t.recordViolation(`dynamic_import_builtin`,n,`dynamic import of Node.js builtin '${e}' called (audit mode)`)}return r(e,n)}}),i.importHooksRegistered=!0;return}if(typeof n.register==`function`){let e=[`export async function resolve(specifier, context, nextResolve) {`,` if (specifier.startsWith("data:") || specifier.startsWith("blob:")) {`,` throw new Error("dynamic import of " + (specifier.startsWith("data:") ? "data:" : "blob:") + " URLs is blocked by defense-in-depth");`,` }`,` return nextResolve(specifier, context);`,`}`].join(`
4
+ `);n.register(`data:text/javascript,${encodeURIComponent(e)}`),i.importHooksRegistered=!0}}catch(e){console.debug(`[DefenseInDepthBox] Could not register import() hooks:`,e instanceof Error?e.message:e)}}protectModuleLoad(){if(!n)try{let t=null;if(typeof process<`u`){let e=process.mainModule;e&&typeof e==`object`&&(t=e.constructor)}if(!t&&typeof e<`u`&&typeof e.main<`u`&&(t=e.main.constructor),!t||typeof t._load!=`function`)return;let n=t._load,r=Object.getOwnPropertyDescriptor(t,`_load`);this.originalDescriptors.push({target:t,prop:`_load`,descriptor:r});let i=this.createBlockingProxy(n,`Module._load`,`module_load`);Object.defineProperty(t,`_load`,{value:i,writable:!0,configurable:!0})}catch(e){this.patchFailures.push(`Module._load`),console.debug(`[DefenseInDepthBox] Could not protect Module._load:`,e instanceof Error?e.message:e)}}protectModuleResolveFilename(){if(!n)try{let t=null;if(typeof process<`u`){let e=process.mainModule;e&&typeof e==`object`&&(t=e.constructor)}if(!t&&typeof e<`u`&&typeof e.main<`u`&&(t=e.main.constructor),!t||typeof t._resolveFilename!=`function`)return;let n=t._resolveFilename,r=Object.getOwnPropertyDescriptor(t,`_resolveFilename`);this.originalDescriptors.push({target:t,prop:`_resolveFilename`,descriptor:r});let i=this.createBlockingProxy(n,`Module._resolveFilename`,`module_resolve_filename`);Object.defineProperty(t,`_resolveFilename`,{value:i,writable:!0,configurable:!0})}catch(e){this.patchFailures.push(`Module._resolveFilename`),console.debug(`[DefenseInDepthBox] Could not protect Module._resolveFilename:`,e instanceof Error?e.message:e)}}applyPatch(e){let{target:t,prop:n,violationType:r,strategy:i}=e;try{let a=t[n];if(a===void 0)return;let o=Object.getOwnPropertyDescriptor(t,n);if(this.originalDescriptors.push({target:t,prop:n,descriptor:o}),i===`freeze`)typeof a==`object`&&a&&Object.freeze(a);else{let i=this.getPathForTarget(t,n),o=typeof a==`function`?this.createBlockingProxy(a,i,r):this.createBlockingObjectProxy(a,i,r,e.allowedKeys);Object.defineProperty(t,n,{value:o,writable:!0,configurable:!0})}}catch(e){let r=this.getPathForTarget(t,n);this.patchFailures.push(r),console.debug(`[DefenseInDepthBox] Could not patch ${r}:`,e instanceof Error?e.message:e)}}restorePatches(){for(let e=this.originalDescriptors.length-1;e>=0;e--){let{target:t,prop:n,descriptor:r}=this.originalDescriptors[e];try{r?Object.defineProperty(t,n,r):delete t[n]}catch(e){let r=this.getPathForTarget(t,n);console.debug(`[DefenseInDepthBox] Could not restore ${r}:`,e instanceof Error?e.message:e)}}this.originalDescriptors=[]}};export{o as n,f as t};
5
+ //# sourceMappingURL=chunk-5QMZ5MUS-C5NTf5Rj.mjs.map
@@ -1,4 +1,4 @@
1
- import{r as e,t}from"./chunk-74CEPOFO--xsxhUFC.mjs";import{t as n}from"./chunk-HWKDQ44K-CVxg-h0V.mjs";import{t as r}from"./chunk-X2AJGDEF-D97qevlv.mjs";var i={name:`stat`,summary:`display file or file system status`,usage:`stat [OPTION]... FILE...`,options:[`-c FORMAT use the specified FORMAT instead of the default`,` --help display this help and exit`]},a={format:{short:`c`,type:`string`}},o={name:`stat`,async execute(o,s){if(t(o))return e(i);let c=n(`stat`,o,a);if(!c.ok)return c.error;let l=c.result.flags.format??null,u=c.result.positional;if(u.length===0)return{stdout:``,stderr:`stat: missing operand
1
+ import{r as e,t}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";import{t as n}from"./chunk-HWKDQ44K-CGcvROg-.mjs";import{t as r}from"./chunk-X2AJGDEF-BXjUENXL.mjs";var i={name:`stat`,summary:`display file or file system status`,usage:`stat [OPTION]... FILE...`,options:[`-c FORMAT use the specified FORMAT instead of the default`,` --help display this help and exit`]},a={format:{short:`c`,type:`string`}},o={name:`stat`,async execute(o,s){if(t(o))return e(i);let c=n(`stat`,o,a);if(!c.ok)return c.error;let l=c.result.flags.format??null,u=c.result.positional;if(u.length===0)return{stdout:``,stderr:`stat: missing operand
2
2
  `,exitCode:1};let d=``,f=``,p=!1;for(let e of u){let t=s.fs.resolvePath(s.cwd,e);try{let n=await s.fs.stat(t);if(l){let t=l,i=n.mode.toString(8),a=r(n.mode,n.isDirectory);t=t.replace(/%n/g,e),t=t.replace(/%N/g,`'${e}'`),t=t.replace(/%s/g,String(n.size)),t=t.replace(/%F/g,n.isDirectory?`directory`:`regular file`),t=t.replace(/%a/g,i),t=t.replace(/%A/g,a),t=t.replace(/%u/g,`1000`),t=t.replace(/%U/g,`user`),t=t.replace(/%g/g,`1000`),t=t.replace(/%G/g,`group`),d+=`${t}
3
3
  `}else{let t=n.mode.toString(8).padStart(4,`0`),i=r(n.mode,n.isDirectory);d+=` File: ${e}
4
4
  `,d+=` Size: ${n.size} Blocks: ${Math.ceil(n.size/512)}
@@ -6,4 +6,4 @@ import{r as e,t}from"./chunk-74CEPOFO--xsxhUFC.mjs";import{t as n}from"./chunk-H
6
6
  `,d+=`Modify: ${n.mtime.toISOString()}
7
7
  `}}catch{f+=`stat: cannot stat '${e}': No such file or directory
8
8
  `,p=!0}}return{stdout:d,stderr:f,exitCode:+!!p}}},s={name:`stat`,flags:[{flag:`-c`,type:`value`,valueHint:`format`},{flag:`-L`,type:`boolean`}],needsArgs:!0};export{s as n,o as t};
9
- //# sourceMappingURL=chunk-5QVNJEHU-CvZ-NmqQ.mjs.map
9
+ //# sourceMappingURL=chunk-5QVNJEHU-DS9zA_YV.mjs.map
@@ -1,3 +1,3 @@
1
- import{C as e,S as t,g as n,n as r,o as i,t as a,u as o,w as s,x as c}from"./chunk-KEIR6QF5-BhaMJNB5.mjs";var l=class extends a{static{c(this,`RailroadTokenBuilder`)}constructor(){super([`railroad-beta`])}},u=c(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
1
+ import{C as e,S as t,g as n,n as r,o as i,t as a,u as o,w as s,x as c}from"./chunk-KEIR6QF5-BLwvtFl6.mjs";var l=class extends a{static{c(this,`RailroadTokenBuilder`)}constructor(){super([`railroad-beta`])}},u=c(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
2
2
  `;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),d=class extends r{static{c(this,`RailroadValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return u(e)}return r}runCustomConverter(e,t,n){if(e.name===`RR_STRING`)return u(t)}},f={parser:{TokenBuilder:c(()=>new l,`TokenBuilder`),ValueConverter:c(()=>new d,`ValueConverter`)}};function p(r=i){let a=s(e(r),o),c=s(t({shared:a}),n,f);return a.ServiceRegistry.register(c),{shared:a,Railroad:c}}c(p,`createRailroadServices`);export{p as n,f as t};
3
- //# sourceMappingURL=chunk-5TONJI2A-CGHpmUrS.mjs.map
3
+ //# sourceMappingURL=chunk-5TONJI2A-CzUNHQPX.mjs.map
@@ -1,2 +1,2 @@
1
- import{t as e}from"./chunk-EIZGF4BS-DYiqM1Ss.mjs";var t=e(`sha256sum`,`sha256`,`compute SHA256 message digest`),n={name:`sha256sum`,flags:[{flag:`-c`,type:`boolean`}],needsFiles:!0};export{n,t};
2
- //# sourceMappingURL=chunk-5V6VZH6T-DdeqP2TW.mjs.map
1
+ import{t as e}from"./chunk-EIZGF4BS-CSFp0aUh.mjs";var t=e(`sha256sum`,`sha256`,`compute SHA256 message digest`),n={name:`sha256sum`,flags:[{flag:`-c`,type:`boolean`}],needsFiles:!0};export{n,t};
2
+ //# sourceMappingURL=chunk-5V6VZH6T-DBFenjXz.mjs.map
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-C7FmC3Cl.mjs";var t=e(()=>`
1
+ import{n as e}from"./chunk-Y2CYZVJY-acXC9Sbb.mjs";var t=e(()=>`
2
2
  /* Font Awesome icon styling - consolidated */
3
3
  .label-icon {
4
4
  display: inline-block;
@@ -13,4 +13,4 @@ import{n as e}from"./chunk-Y2CYZVJY-C7FmC3Cl.mjs";var t=e(()=>`
13
13
  stroke-width: revert;
14
14
  }
15
15
  `,`getIconStyles`);export{t};
16
- //# sourceMappingURL=chunk-5VM5RSS4-COK1ErrI.mjs.map
16
+ //# sourceMappingURL=chunk-5VM5RSS4-C8vNNqW0.mjs.map
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-3THT3N7L-DcPtGCSm.mjs";import{r as t,t as n}from"./chunk-74CEPOFO--xsxhUFC.mjs";import{t as r}from"./chunk-HWKDQ44K-CVxg-h0V.mjs";var i={name:`tr`,summary:`translate or delete characters`,usage:`tr [OPTION]... SET1 [SET2]`,options:[`-c, -C, --complement use the complement of SET1`,`-d, --delete delete characters in SET1`,`-s, --squeeze-repeats squeeze repeated characters`,` --help display this help and exit`],description:`SET syntax:
1
+ import{n as e}from"./chunk-3THT3N7L-DcPtGCSm.mjs";import{r as t,t as n}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";import{t as r}from"./chunk-HWKDQ44K-CGcvROg-.mjs";var i={name:`tr`,summary:`translate or delete characters`,usage:`tr [OPTION]... SET1 [SET2]`,options:[`-c, -C, --complement use the complement of SET1`,`-d, --delete delete characters in SET1`,`-s, --squeeze-repeats squeeze repeated characters`,` --help display this help and exit`],description:`SET syntax:
2
2
  a-z character range
3
3
  [:alnum:] all letters and digits
4
4
  [:alpha:] all letters
@@ -18,4 +18,4 @@ import{n as e}from"./chunk-3THT3N7L-DcPtGCSm.mjs";import{r as t,t as n}from"./ch
18
18
  `,exitCode:1};if(!d&&!f&&p.length<2)return{stdout:``,stderr:`tr: missing operand after SET1
19
19
  `,exitCode:1};let m,h;try{m=o(p[0]),h=p.length>1?o(p[1]):``}catch(t){return{stdout:``,stderr:`${e(t.message)}
20
20
  `,exitCode:1}}let g=c.stdin,_=e=>{let t=m.includes(e);return u?!t:t},v=``;if(d)for(let e of g)_(e)||(v+=e);else if(f&&p.length===1){let e=``;for(let t of g)_(t)&&t===e||(v+=t,e=t)}else{if(u){let e=h.length>0?h[h.length-1]:``;for(let t of g)m.includes(t)?v+=t:v+=e}else{let e=new Map;for(let t=0;t<m.length;t++){let n=t<h.length?h[t]:h[h.length-1];e.set(m[t],n)}for(let t of g)v+=e.get(t)??t}if(f){let e=``,t=``;for(let n of v)h.includes(n)&&n===t||(e+=n,t=n);v=e}}return{stdout:v,stderr:``,exitCode:0}}},l={name:`tr`,flags:[{flag:`-c`,type:`boolean`},{flag:`-C`,type:`boolean`},{flag:`-d`,type:`boolean`},{flag:`-s`,type:`boolean`}],stdinType:`text`,needsArgs:!0};export{c as n,l as t};
21
- //# sourceMappingURL=chunk-62RKD26F-RtrcFE7S.mjs.map
21
+ //# sourceMappingURL=chunk-62RKD26F-C4qK_fA-.mjs.map
@@ -1,2 +1,2 @@
1
- import{r as e,t}from"./chunk-74CEPOFO--xsxhUFC.mjs";import{n,r,t as i}from"./chunk-HDQ56CKY-Svz-iz8m.mjs";var a={name:`head`,summary:`output the first part of files`,usage:`head [OPTION]... [FILE]...`,options:[`-c, --bytes=NUM print the first NUM bytes`,`-n, --lines=NUM print the first NUM lines (default 10)`,`-q, --quiet never print headers giving file names`,`-v, --verbose always print headers giving file names`,` --help display this help and exit`]},o={name:`head`,async execute(o,s){if(t(o))return e(a);let c=n(o,`head`);if(!c.ok)return c.error;let{lines:l,bytes:u}=c.options;return r(s,c.options,`head`,e=>i(e,l,u))}},s={name:`head`,flags:[{flag:`-n`,type:`value`,valueHint:`number`},{flag:`-c`,type:`value`,valueHint:`number`},{flag:`-q`,type:`boolean`},{flag:`-v`,type:`boolean`}],stdinType:`text`,needsFiles:!0};export{o as n,s as t};
2
- //# sourceMappingURL=chunk-64BAICW3-0h-yIc1e.mjs.map
1
+ import{r as e,t}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";import{n,r,t as i}from"./chunk-HDQ56CKY-CI8IkhlS.mjs";var a={name:`head`,summary:`output the first part of files`,usage:`head [OPTION]... [FILE]...`,options:[`-c, --bytes=NUM print the first NUM bytes`,`-n, --lines=NUM print the first NUM lines (default 10)`,`-q, --quiet never print headers giving file names`,`-v, --verbose always print headers giving file names`,` --help display this help and exit`]},o={name:`head`,async execute(o,s){if(t(o))return e(a);let c=n(o,`head`);if(!c.ok)return c.error;let{lines:l,bytes:u}=c.options;return r(s,c.options,`head`,e=>i(e,l,u))}},s={name:`head`,flags:[{flag:`-n`,type:`value`,valueHint:`number`},{flag:`-c`,type:`value`,valueHint:`number`},{flag:`-q`,type:`boolean`},{flag:`-v`,type:`boolean`}],stdinType:`text`,needsFiles:!0};export{o as n,s as t};
2
+ //# sourceMappingURL=chunk-64BAICW3-BupSxcu5.mjs.map
@@ -1,4 +1,4 @@
1
- import{i as e}from"./chunk-GFQRA5P5-JJS41DJS.mjs";import{a as t,r as n,t as r}from"./chunk-DXB73IDG-q-dGnwlc.mjs";import{n as i}from"./chunk-5QMZ5MUS-D8tv8KWc.mjs";import{r as a,t as o}from"./chunk-24IMIIXA-BQtWA2ag.mjs";import{n as s}from"./chunk-3THT3N7L-DcPtGCSm.mjs";import{n as c,r as l,t as u}from"./chunk-74CEPOFO--xsxhUFC.mjs";import{t as d}from"./chunk-PXTK5WE2-Dfi2FrE5.mjs";import{t as f}from"./chunk-7TSDKFEO-BjOrsK6M.mjs";import{n as p,t as m}from"./chunk-KRBPSX3W-ciCGjpAL.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-JJS41DJS.mjs";import{a as t,r as n,t as r}from"./chunk-DXB73IDG-q-dGnwlc.mjs";import{n as i}from"./chunk-5QMZ5MUS-D8tv8KWc.mjs";import{r as a,t as o}from"./chunk-24IMIIXA-BQtWA2ag.mjs";import{n as s}from"./chunk-3THT3N7L-DcPtGCSm.mjs";import{n as c,r as l,t as u}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";import{t as d}from"./chunk-PXTK5WE2-DNbfUrIy.mjs";import{t as f}from"./chunk-7TSDKFEO-DBB10vPw.mjs";import{n as p,t as m}from"./chunk-KRBPSX3W-YDdgrCmf.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}),ee=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{$r as n,Qr as t};
288
- //# sourceMappingURL=chunk-6Z5SFZXK-C5owNg1o.mjs.map
288
+ //# sourceMappingURL=chunk-6Z5SFZXK-Cz0C4bhB.mjs.map