@inkeep/open-knowledge 0.3.0 → 0.4.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (571) hide show
  1. package/dist/THIRD_PARTY_NOTICES.md +658 -0
  2. package/dist/alias-JE7RI5QX-Bia4gLMF.mjs +1 -0
  3. package/dist/assets/skills/open-knowledge/SKILL.md +145 -52
  4. package/dist/awk2-POPGKRAI-DDrFV-7v.mjs +1 -0
  5. package/dist/{banner-BxI1wnW9.mjs → banner-DdbR6AZr.mjs} +2 -2
  6. package/dist/base64-4YMZCVJ5-DDKKOjMm.mjs +1 -0
  7. package/dist/basename-AA2KJYZQ-BK5zVs3W.mjs +1 -0
  8. package/dist/bash-IJWYRKFO-B9r1a0X9.mjs +1 -0
  9. package/dist/build-B6buVrsB.mjs +2 -0
  10. package/dist/cat-RDUMLXKC-CeNrSElK.mjs +1 -0
  11. package/dist/chmod-SYMGL4JA-DFJ4ylQU.mjs +1 -0
  12. package/dist/{chokidar-CblsKfnx.mjs → chokidar-CxU7f6JW.mjs} +1 -1
  13. package/dist/{chunk-24IMIIXA-Bz7rlZT3.mjs → chunk-24IMIIXA-B6yIPkk2.mjs} +2 -2
  14. package/dist/{chunk-3THT3N7L-klp8GP84.mjs → chunk-3THT3N7L-DztAF386.mjs} +1 -1
  15. package/dist/{chunk-3ZUFRYJ4-C93H8j0V.mjs → chunk-3ZUFRYJ4-qsYuZX7b.mjs} +1 -1
  16. package/dist/{chunk-44UOCSGV-BUBpWxXm.mjs → chunk-44UOCSGV-CaFxJDHm.mjs} +1 -1
  17. package/dist/{chunk-4GTNDTRF-_OVmXcJ-.mjs → chunk-4GTNDTRF-PuLVuVJW.mjs} +2 -2
  18. package/dist/{chunk-4HHKTUW3-Dm69hDaZ.mjs → chunk-4HHKTUW3-CQ53AiA_.mjs} +1 -1
  19. package/dist/{chunk-4Q4SM6WR-DDQRsilN.mjs → chunk-4Q4SM6WR-BlQvqCag.mjs} +2 -2
  20. package/dist/{chunk-55VFSPNA-DVZfQAzN.mjs → chunk-55VFSPNA-DLwfww5b.mjs} +2 -2
  21. package/dist/{chunk-5QMZ5MUS-DWTkM0vM.mjs → chunk-5QMZ5MUS-CAp625aG.mjs} +2 -2
  22. package/dist/{chunk-5QVNJEHU-BvsipSFW.mjs → chunk-5QVNJEHU-dbrKfPGl.mjs} +2 -2
  23. package/dist/{chunk-5V6VZH6T-BCr5_GDF.mjs → chunk-5V6VZH6T-DMPvCPbn.mjs} +2 -2
  24. package/dist/{chunk-62RKD26F-D-luOa0m.mjs → chunk-62RKD26F-B9la0pfD.mjs} +2 -2
  25. package/dist/{chunk-64BAICW3-CTJNEx4Q.mjs → chunk-64BAICW3-D92CLSK-.mjs} +2 -2
  26. package/dist/{chunk-74CEPOFO-D1bzz49u.mjs → chunk-74CEPOFO-BcZUJMO1.mjs} +1 -1
  27. package/dist/{chunk-7L36YK2X-RiPZFKaV.mjs → chunk-7L36YK2X-D7Z_Qw_C.mjs} +1 -1
  28. package/dist/{chunk-7TSDKFEO-a-GUGBTu.mjs → chunk-7TSDKFEO-DUQhJkDy.mjs} +1 -1
  29. package/dist/{chunk-A4HU7SVR-hefV_YmW.mjs → chunk-A4HU7SVR-DKLaJeys.mjs} +1 -1
  30. package/dist/{chunk-A4JSPFCI-U-xWmMMC.mjs → chunk-A4JSPFCI-CEm2r8SB.mjs} +2 -2
  31. package/dist/{chunk-A5O5YHGN-C7BVq0eF.mjs → chunk-A5O5YHGN-DvJz5Cpw.mjs} +2 -2
  32. package/dist/{chunk-A65PWWJC-D7J5l9eq.mjs → chunk-A65PWWJC-DV6RO_es.mjs} +2 -2
  33. package/dist/{chunk-A7A2DBEE-PLfkXLI4.mjs → chunk-A7A2DBEE-dTNL-45u.mjs} +1 -1
  34. package/dist/{chunk-A7ICOL4V-Drb3XsEL.mjs → chunk-A7ICOL4V-BvXPAaHu.mjs} +2 -2
  35. package/dist/{chunk-ALLTKNUZ-BMiTDN50.mjs → chunk-ALLTKNUZ-Cu6JFoC4.mjs} +2 -2
  36. package/dist/{chunk-APT7OOP2-CXHnSuct.mjs → chunk-APT7OOP2-DmUrFuRy.mjs} +2 -2
  37. package/dist/{chunk-BBXLRYSX-DURjrblE.mjs → chunk-BBXLRYSX-K758HlCs.mjs} +2 -2
  38. package/dist/{chunk-BRGMQKJV-CdrkqzRA.mjs → chunk-BRGMQKJV-BXc-9Cgj.mjs} +3 -3
  39. package/dist/{chunk-CR5AFCPT-ROmyDFrB.mjs → chunk-CR5AFCPT-DxNsgM0M.mjs} +2 -2
  40. package/dist/{chunk-CWQS3NFK-DFdwmFxJ.mjs → chunk-CWQS3NFK-Co4ALolT.mjs} +1 -1
  41. package/dist/{chunk-D4J545R4-C8nMOauR.mjs → chunk-D4J545R4-DkHLjHX6.mjs} +2 -2
  42. package/dist/{chunk-D6CWQ5DW-B-J4LN9N.mjs → chunk-D6CWQ5DW-7lvT8dGP.mjs} +2 -2
  43. package/dist/{chunk-D7MEQ3VN-Csvth_Ss.mjs → chunk-D7MEQ3VN-D8jJZr4A.mjs} +2 -2
  44. package/dist/{chunk-DCAAORBQ-BdrR5ttw.mjs → chunk-DCAAORBQ-C3s1D8OY.mjs} +2 -2
  45. package/dist/{chunk-DXB73IDG-C774okS0.mjs → chunk-DXB73IDG-DIKSLkPq.mjs} +1 -1
  46. package/dist/{chunk-EEXR5ZDP-C5AJH114.mjs → chunk-EEXR5ZDP-CETL3_Uw.mjs} +1 -1
  47. package/dist/{chunk-EIZGF4BS-8bsVXqW0.mjs → chunk-EIZGF4BS-DOoQW9jQ.mjs} +2 -2
  48. package/dist/{chunk-F23WWYKW-DST0dB7V.mjs → chunk-F23WWYKW-BK2tpXPf.mjs} +2 -2
  49. package/dist/{chunk-F55TLFGB-DqkrAMO5.mjs → chunk-F55TLFGB-Vy5RU2P3.mjs} +2 -2
  50. package/dist/{chunk-FEIOJCZD-C4x0A4rb.mjs → chunk-FEIOJCZD-C25Und0M.mjs} +2 -2
  51. package/dist/{chunk-GCTKCWKD-Deqi1D_N.mjs → chunk-GCTKCWKD-Di-RB9Qt.mjs} +1 -1
  52. package/dist/{chunk-GFQRA5P5-1fzItQ8F.mjs → chunk-GFQRA5P5-DnjwTqP3.mjs} +1 -1
  53. package/dist/{chunk-GOV5EKKI-PN17n-Z0.mjs → chunk-GOV5EKKI-CKV9jOGv.mjs} +2 -2
  54. package/dist/{chunk-GXVXFKBA-993FoPmq.mjs → chunk-GXVXFKBA-CUKDClxt.mjs} +2 -2
  55. package/dist/{chunk-HDQ56CKY-pGV4pOJA.mjs → chunk-HDQ56CKY-MTQ75a8z.mjs} +2 -2
  56. package/dist/{chunk-HJQJAYMS-Ci3vsKQW.mjs → chunk-HJQJAYMS-D-8Vc6Zb.mjs} +1 -1
  57. package/dist/{chunk-HJWBQKYG-UZig4wUt.mjs → chunk-HJWBQKYG-XrOcsn2f.mjs} +2 -2
  58. package/dist/{chunk-HWBSOZZR-Dikp87Ww.mjs → chunk-HWBSOZZR-BZF8XsyZ.mjs} +2 -2
  59. package/dist/{chunk-HWKDQ44K-CPSjqtR_.mjs → chunk-HWKDQ44K-wgmyck2O.mjs} +2 -2
  60. package/dist/{chunk-I57KEIP3-B1DoH8rp.mjs → chunk-I57KEIP3-DipCOPKf.mjs} +2 -2
  61. package/dist/{chunk-IPJHKYVM-BbWncVr2.mjs → chunk-IPJHKYVM-C3IodQq7.mjs} +1 -1
  62. package/dist/{chunk-J642UCRS-DB77Y2Wt.mjs → chunk-J642UCRS-YiNealfn.mjs} +2 -2
  63. package/dist/{chunk-JVPRLUMK-DnQCNjpq.mjs → chunk-JVPRLUMK-VMFWXimu.mjs} +2 -2
  64. package/dist/{chunk-KMEYNNUA-DfdK88O_.mjs → chunk-KMEYNNUA-pRogdye4.mjs} +2 -2
  65. package/dist/{chunk-LL3S3NLB-DxXgE3kY.mjs → chunk-LL3S3NLB-ByBS5IDP.mjs} +2 -2
  66. package/dist/{chunk-LPQPILI2-BXfU9TgM.mjs → chunk-LPQPILI2-FRQB9gt5.mjs} +2 -2
  67. package/dist/{chunk-LTZRCH7N-GAjTFNwG.mjs → chunk-LTZRCH7N-46S7WKw8.mjs} +2 -2
  68. package/dist/{chunk-LWEGUNWT-BALY4RLC.mjs → chunk-LWEGUNWT-DdGmM3wr.mjs} +2 -2
  69. package/dist/{chunk-MDDMCKUK-D6GWoJsI.mjs → chunk-MDDMCKUK-CuRdI1Uv.mjs} +2 -2
  70. package/dist/{chunk-MDLLFABN-oBQf6bGE.mjs → chunk-MDLLFABN-Wd1iVjXi.mjs} +2 -2
  71. package/dist/{chunk-MHTUABJP-dKmK6Hw7.mjs → chunk-MHTUABJP-BWrqic3t.mjs} +1 -1
  72. package/dist/{chunk-MIZPJHVH-z-geAni9.mjs → chunk-MIZPJHVH-DWdPvcYR.mjs} +2 -2
  73. package/dist/{chunk-MLXIYONF-DB-C8Hx8.mjs → chunk-MLXIYONF-CiCzoeGt.mjs} +2 -2
  74. package/dist/{chunk-MYE6AGBJ-B4pRo9ma.mjs → chunk-MYE6AGBJ-DJo74dVC.mjs} +2 -2
  75. package/dist/{chunk-NAERJDUW-CX0lf-xx.mjs → chunk-NAERJDUW-CIHrNgJB.mjs} +2 -2
  76. package/dist/{chunk-NCNPKYJZ-BFGan4lR.mjs → chunk-NCNPKYJZ-BVljycUZ.mjs} +2 -2
  77. package/dist/{chunk-NUYSJFDK-D2NXm2ND.mjs → chunk-NUYSJFDK-BTseBdxv.mjs} +2 -2
  78. package/dist/{chunk-NYQYO467-Degkom4D.mjs → chunk-NYQYO467-BgXuDHUQ.mjs} +2 -2
  79. package/dist/{chunk-OARHFVLG-CY8D2Qov.mjs → chunk-OARHFVLG-Cr0x3Si_.mjs} +2 -2
  80. package/dist/{chunk-OCLXQMOG-BMsyLQhm.mjs → chunk-OCLXQMOG-BW6rwyzS.mjs} +2 -2
  81. package/dist/{chunk-OCS6LSEM-BHslttnj.mjs → chunk-OCS6LSEM-D7VAOziZ.mjs} +2 -2
  82. package/dist/{chunk-OJDRYQWQ-BV5MVRVg.mjs → chunk-OJDRYQWQ-ikvLWpfV.mjs} +1 -1
  83. package/dist/{chunk-OL3S66CO-Bmgu4tW4.mjs → chunk-OL3S66CO-CQnF8cPH.mjs} +2 -2
  84. package/dist/{chunk-PBXLG62G-lGjqkk78.mjs → chunk-PBXLG62G-CgbPJTiw.mjs} +2 -2
  85. package/dist/{chunk-PP6PSHAB-DMC_XCfO.mjs → chunk-PP6PSHAB-CO4MYU__.mjs} +1 -1
  86. package/dist/{chunk-PYSFUGCK-CY7pclEB.mjs → chunk-PYSFUGCK-DsRn64Ef.mjs} +2 -2
  87. package/dist/{chunk-QCDB2VPH-D1RuXtOm.mjs → chunk-QCDB2VPH-BUMOhlW7.mjs} +2 -2
  88. package/dist/{chunk-QJ7O6ZN3-BH67tCjg.mjs → chunk-QJ7O6ZN3-F0_rcDPM.mjs} +2 -2
  89. package/dist/{chunk-R6QSAL5T-CtbJTvt9.mjs → chunk-R6QSAL5T-CeW6f7-x.mjs} +1 -1
  90. package/dist/{chunk-R6VWJ2ZL-B0CcMPyK.mjs → chunk-R6VWJ2ZL-FwG_Za20.mjs} +1 -1
  91. package/dist/{chunk-RPNGRAAP-BughPjdR.mjs → chunk-RPNGRAAP-BmkapBPD.mjs} +2 -2
  92. package/dist/{chunk-SDNKECQQ-C3GEf3VZ.mjs → chunk-SDNKECQQ-DkebEzkd.mjs} +2 -2
  93. package/dist/{chunk-SYMJJMQ4-CWTh95-4.mjs → chunk-SYMJJMQ4-DOZMaECk.mjs} +2 -2
  94. package/dist/{chunk-T56QNPHK-DlKQeuXU.mjs → chunk-T56QNPHK-DPXaSSfC.mjs} +2 -2
  95. package/dist/{chunk-TLSUDHID-B8UnqY4U.mjs → chunk-TLSUDHID-BovZg0r1.mjs} +2 -2
  96. package/dist/{chunk-TOMNU26N-BcdbBQ2p.mjs → chunk-TOMNU26N-AAglMy4J.mjs} +2 -2
  97. package/dist/{chunk-TXBZCHCQ-l48TczF5.mjs → chunk-TXBZCHCQ-WeVWfqYv.mjs} +2 -2
  98. package/dist/{chunk-UNYNJIFU-DwPQMz0F.mjs → chunk-UNYNJIFU-CqGlXAg7.mjs} +3 -3
  99. package/dist/{chunk-V7TAPXDL-CnKUp2df.mjs → chunk-V7TAPXDL-DQgGPvBY.mjs} +2 -2
  100. package/dist/{chunk-VJFXDYWH-IiUXkKX0.mjs → chunk-VJFXDYWH-DIo0Ia0_.mjs} +2 -2
  101. package/dist/{chunk-VLGZJRPG-D4NVKJYL.mjs → chunk-VLGZJRPG-DymOu90-.mjs} +2 -2
  102. package/dist/{chunk-VOBGTVA6-BT7gUxqf.mjs → chunk-VOBGTVA6-Bfa1NTzt.mjs} +2 -2
  103. package/dist/{chunk-VYOJP4TV-BvibOnKG.mjs → chunk-VYOJP4TV-PBsHe2md.mjs} +2 -2
  104. package/dist/{chunk-WKFATFPP-DCZdrA8x.mjs → chunk-WKFATFPP-KO2zkfs2.mjs} +2 -2
  105. package/dist/{chunk-X2AJGDEF-BaH6i1Rq.mjs → chunk-X2AJGDEF-D5w6wtaX.mjs} +1 -1
  106. package/dist/{chunk-XHM67O4N-Cg35xc6b.mjs → chunk-XHM67O4N-akBjDPaR.mjs} +1 -1
  107. package/dist/{chunk-XKQRETAK-cVWA9gEB.mjs → chunk-XKQRETAK-RHzVmuiF.mjs} +2 -2
  108. package/dist/{chunk-XORM457F-CRToN1RQ.mjs → chunk-XORM457F-wr_DBBnV.mjs} +2 -2
  109. package/dist/{chunk-XVDPCNWR-CtK-Xs2O.mjs → chunk-XVDPCNWR-DxaG1FfA.mjs} +2 -2
  110. package/dist/{chunk-YCFVLTST-Ox9Z0Nk6.mjs → chunk-YCFVLTST-Dzwevuc3.mjs} +2 -2
  111. package/dist/{chunk-YFG2CMIF-Csgr05KV.mjs → chunk-YFG2CMIF-BoZQym0L.mjs} +2 -2
  112. package/dist/{chunk-YNYSPYQ5-BpP11HXS.mjs → chunk-YNYSPYQ5-DesxOVHh.mjs} +1 -1
  113. package/dist/{chunk-YS3AZT3J-BEZxz_aQ.mjs → chunk-YS3AZT3J-CBc9LHIy.mjs} +2 -2
  114. package/dist/{chunk-YTNYSM6T-DuBR2-TM.mjs → chunk-YTNYSM6T-WMIf3AF8.mjs} +2 -2
  115. package/dist/{chunk-Z6LRHWXI-DbRghyzT.mjs → chunk-Z6LRHWXI-DGTVoTuf.mjs} +2 -2
  116. package/dist/{chunk-Z7JVV2SM-BzR-yvwK.mjs → chunk-Z7JVV2SM-Cb4YKOCM.mjs} +2 -2
  117. package/dist/clear-5CZ5X4YR-CadVxKrq.mjs +1 -0
  118. package/dist/cli.mjs +58 -1400
  119. package/dist/colors-BNufdynn.mjs +2 -0
  120. package/dist/colors-T3xmlXQT.mjs +1 -0
  121. package/dist/column-WLPMMSTS-6o4DDsDk.mjs +1 -0
  122. package/dist/comm-5SLSESQG-C2GatHU6.mjs +1 -0
  123. package/dist/config-schema.json +87 -0
  124. package/dist/config.project-local.schema.json +30 -0
  125. package/dist/config.project.schema.json +59 -0
  126. package/dist/config.user.schema.json +58 -0
  127. package/dist/constants-Dc6GZ6j9.mjs +2 -0
  128. package/dist/cp-XOYR4ABJ-DmS6dER-.mjs +1 -0
  129. package/dist/{curl-47BFPSFW-Kn_Na_aU.mjs → curl-47BFPSFW-C2kRcGkX.mjs} +2 -2
  130. package/dist/cut-OPC3VAGB-s4tQWhL5.mjs +1 -0
  131. package/dist/date-DD7FVA2V-Dubgjr6a.mjs +1 -0
  132. package/dist/diff-HJF2MPDN-DjGBLQph.mjs +1 -0
  133. package/dist/dirname-LEMTZZFS-B477CImE.mjs +1 -0
  134. package/dist/dist-B6pNPboH.mjs +1609 -0
  135. package/dist/dist-DVM7wH81.mjs +359 -0
  136. package/dist/dist-DXLSMgBY.mjs +1 -0
  137. package/dist/du-WO2ENHXQ-C4c5wweW.mjs +1 -0
  138. package/dist/echo-O45JWWI2-TudodhHR.mjs +1 -0
  139. package/dist/env-5EPCWSXR-CTcNEMpy.mjs +1 -0
  140. package/dist/{esm-BFkWzFey.mjs → esm-BbkJd7ro.mjs} +1 -1
  141. package/dist/{esm-wByiX8MO.mjs → esm-CEs3LWY3.mjs} +2 -2
  142. package/dist/{execAsync-0jii24p9.mjs → execAsync-CulVJBMN.mjs} +1 -1
  143. package/dist/{execAsync-Czqc-yAz.mjs → execAsync-CzW9fUYQ.mjs} +1 -1
  144. package/dist/{execAsync-DgmLXmTx.mjs → execAsync-DuQoqWaW.mjs} +1 -1
  145. package/dist/expand-DTNXU4LQ-BT6M2Tdc.mjs +1 -0
  146. package/dist/expansion-ENLSRCXJ-Cy7j--Iy.mjs +1 -0
  147. package/dist/expr-5T3UU5KE-D2Kr5nuJ.mjs +1 -0
  148. package/dist/file-ZIGAJ4YS-BH3jYcuM.mjs +1 -0
  149. package/dist/find-TPUOAIUQ-RFxkUcGN.mjs +1 -0
  150. package/dist/flag-coverage-QT4N2Z44--nNG-HLV.mjs +2 -0
  151. package/dist/fold-LDSORVYE-CfKQmrJ1.mjs +1 -0
  152. package/dist/{getMachineId-bsd-C1M346yz.mjs → getMachineId-bsd-DAmB-Ym0.mjs} +2 -2
  153. package/dist/{getMachineId-bsd-CPESl3L6.mjs → getMachineId-bsd-FYDP9w5Q.mjs} +2 -2
  154. package/dist/{getMachineId-bsd-DEUypOXJ.mjs → getMachineId-bsd-mPrX3ckm.mjs} +2 -2
  155. package/dist/{getMachineId-darwin-0hBTy7c8.mjs → getMachineId-darwin-B0Qw-MTj.mjs} +2 -2
  156. package/dist/{getMachineId-darwin-CJK3eX9q.mjs → getMachineId-darwin-C79HtyON.mjs} +2 -2
  157. package/dist/{getMachineId-darwin-Vupnt-kR.mjs → getMachineId-darwin-Co8Jnu5v.mjs} +2 -2
  158. package/dist/{getMachineId-linux-BGQn48cN.mjs → getMachineId-linux-BBORs2cS.mjs} +2 -2
  159. package/dist/{getMachineId-linux-CIp07XEX.mjs → getMachineId-linux-BizmCjYq.mjs} +2 -2
  160. package/dist/{getMachineId-linux-B2nkqMir.mjs → getMachineId-linux-BvLCCmKQ.mjs} +2 -2
  161. package/dist/{getMachineId-unsupported-CH1Q20xN.mjs → getMachineId-unsupported-Bgp-Es9j.mjs} +2 -2
  162. package/dist/{getMachineId-unsupported-DfSmC7Gy.mjs → getMachineId-unsupported-CbR45h2D.mjs} +2 -2
  163. package/dist/{getMachineId-unsupported-BnsanXR2.mjs → getMachineId-unsupported-DbGFOAw1.mjs} +2 -2
  164. package/dist/{getMachineId-win-BmmB_8yL.mjs → getMachineId-win-CT_Y5i_4.mjs} +2 -2
  165. package/dist/{getMachineId-win-DlPRChXs.mjs → getMachineId-win-Cy0XHq4X.mjs} +2 -2
  166. package/dist/{getMachineId-win-JnMJbIaW.mjs → getMachineId-win-D5gDnBHa.mjs} +2 -2
  167. package/dist/{git-handle-BhGnmvTB-BMB_49Sb.mjs → git-handle-DwfYp_z--CfyPz4Dz.mjs} +2 -2
  168. package/dist/git-handle-DwfYp_z--DreW3fNC.mjs +1 -0
  169. package/dist/grep-3AIAIJVR-DgQJLmW0.mjs +1 -0
  170. package/dist/gzip-AQXSGOVS-yXjpnIVd.mjs +1 -0
  171. package/dist/head-HT2B6D2J-BR4RHRTk.mjs +1 -0
  172. package/dist/help-VVWX7SA5-M6C6klSC.mjs +1 -0
  173. package/dist/history-J4QRNGRO-C1r7-kvT.mjs +1 -0
  174. package/dist/hostname-BK6HG2DE-BBBcRrtV.mjs +1 -0
  175. package/dist/html-to-markdown-TFCECAGV-B9oYuMVf.mjs +1 -0
  176. package/dist/index.d.mts +9 -2278
  177. package/dist/index.mjs +1 -1
  178. package/dist/init-B7qJnXKB.mjs +397 -0
  179. package/dist/init-DiH9oQ6_.mjs +1 -0
  180. package/dist/{is-object-BNVklKxg.mjs → is-object-DF0ZeuvD.mjs} +1 -1
  181. package/dist/join-GG2LDHE5-xeTE0Mi4.mjs +1 -0
  182. package/dist/jq-ODXZBPLY-C5v6qNu_.mjs +1 -0
  183. package/dist/{js-exec-M6UR76J5-DSk5_wnx.mjs → js-exec-M6UR76J5-IyD-lpzv.mjs} +3 -3
  184. package/dist/{lib-Dl2j2VNl.mjs → lib-BOCdCkg7.mjs} +1 -1
  185. package/dist/{libesm-DC4M2SkF.mjs → libesm-YL3Bqolr.mjs} +1 -1
  186. package/dist/ln-4TRFBYAT-4XMTO1OQ.mjs +1 -0
  187. package/dist/loader-BQf8AJXb.mjs +4 -0
  188. package/dist/loader-C8lkPKn8.mjs +1 -0
  189. package/dist/ls-KSXFZCWH-Bw_Cf-VY.mjs +1 -0
  190. package/dist/{lzma-0LJzVZpl.mjs → lzma-vr8hBkhz.mjs} +2 -2
  191. package/dist/md5sum-INMIK4DX-CAIH4ZVI.mjs +1 -0
  192. package/dist/mkdir-TDEMSB6C-D1oUG8Jf.mjs +1 -0
  193. package/dist/mrmime-C2W7cgq2.mjs +2 -0
  194. package/dist/mv-Z6MORUFL-CN471qcL.mjs +1 -0
  195. package/dist/nl-U5YJDM32-CFzXKze3.mjs +1 -0
  196. package/dist/od-VJEF2UR5-C2R4Accu.mjs +1 -0
  197. package/dist/{open-browser-BzMQ6cLf.mjs → open-browser-BZZK_gJj.mjs} +1 -1
  198. package/dist/paste-7N6AFSDS-bUl2Dwz3.mjs +1 -0
  199. package/dist/preview-CN1rHXBb.mjs +1 -0
  200. package/dist/preview-DUTos2Es.mjs +3 -0
  201. package/dist/printf-CX64KX2P-Ce--gWAq.mjs +1 -0
  202. package/dist/public/assets/ActivityModeContent-1ymqlcHI.js +2 -0
  203. package/dist/public/assets/{ActivityPanelDiffView-D-EUyEh6.js → ActivityPanelDiffView-DoHWP1ak.js} +1 -1
  204. package/dist/public/assets/DocumentContext-bvfr7pL2.js +37 -0
  205. package/dist/public/assets/GraphPanel-DdVygxYk.js +46 -0
  206. package/dist/public/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  207. package/dist/public/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  208. package/dist/public/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  209. package/dist/public/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  210. package/dist/public/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  211. package/dist/public/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  212. package/dist/public/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  213. package/dist/public/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  214. package/dist/public/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  215. package/dist/public/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  216. package/dist/public/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  217. package/dist/public/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  218. package/dist/public/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  219. package/dist/public/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  220. package/dist/public/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  221. package/dist/public/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  222. package/dist/public/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  223. package/dist/public/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  224. package/dist/public/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  225. package/dist/public/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  226. package/dist/public/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  227. package/dist/public/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  228. package/dist/public/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  229. package/dist/public/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  230. package/dist/public/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  231. package/dist/public/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  232. package/dist/public/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  233. package/dist/public/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  234. package/dist/public/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  235. package/dist/public/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  236. package/dist/public/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  237. package/dist/public/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  238. package/dist/public/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  239. package/dist/public/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  240. package/dist/public/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  241. package/dist/public/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  242. package/dist/public/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  243. package/dist/public/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  244. package/dist/public/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  245. package/dist/public/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  246. package/dist/public/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  247. package/dist/public/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  248. package/dist/public/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  249. package/dist/public/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  250. package/dist/public/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  251. package/dist/public/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  252. package/dist/public/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  253. package/dist/public/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  254. package/dist/public/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  255. package/dist/public/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  256. package/dist/public/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  257. package/dist/public/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  258. package/dist/public/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  259. package/dist/public/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  260. package/dist/public/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  261. package/dist/public/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  262. package/dist/public/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  263. package/dist/public/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  264. package/dist/public/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  265. package/dist/public/assets/McpConsentDialogBody-CJwPf_uv.js +1 -0
  266. package/dist/public/assets/OutlinePanel-dumodx-h.js +2 -0
  267. package/dist/public/assets/SettingsPane-CtgbQZxP.js +6 -0
  268. package/dist/public/assets/SourceEditor-CR_7DOAH.js +2 -0
  269. package/dist/public/assets/__vite-browser-external-FEGw1XPd.js +1 -0
  270. package/dist/public/assets/_baseFor-CX8dsZbW.js +1 -0
  271. package/dist/public/assets/{agent-presence-BXsx4eTl.js → agent-presence-Ds2n3U5P.js} +1 -1
  272. package/dist/public/assets/arc-BL_OKZmE.js +1 -0
  273. package/dist/public/assets/architecture-YZFGNWBL-DVxNz-zn.js +1 -0
  274. package/dist/public/assets/architectureDiagram-Q4EWVU46-BKKtWWhU.js +36 -0
  275. package/dist/public/assets/array-X0JlPOfd.js +1 -0
  276. package/dist/public/assets/blockDiagram-DXYQGD6D-fzO4vZye.js +132 -0
  277. package/dist/public/assets/{button-BPXuMr5W.js → button-BsFpqlpT.js} +1 -1
  278. package/dist/public/assets/c4Diagram-AHTNJAMY-BkXqEjiP.js +10 -0
  279. package/dist/public/assets/channel-CR-xJel6.js +1 -0
  280. package/dist/public/assets/chunk-2KRD3SAO-DQj0pw3H.js +1 -0
  281. package/dist/public/assets/chunk-336JU56O-CBajDulv.js +2 -0
  282. package/dist/public/assets/chunk-426QAEUC-BoBKbVmN.js +1 -0
  283. package/dist/public/assets/chunk-4BX2VUAB-D8pbSOlJ.js +1 -0
  284. package/dist/public/assets/chunk-4TB4RGXK-mA6CujZO.js +206 -0
  285. package/dist/public/assets/chunk-55IACEB6-CqVyNzhX.js +1 -0
  286. package/dist/public/assets/chunk-5FUZZQ4R-BVDLgFg2.js +62 -0
  287. package/dist/public/assets/chunk-5PVQY5BW-Cxi5d3lT.js +2 -0
  288. package/dist/public/assets/chunk-67CJDMHE-CdrAY8qZ.js +1 -0
  289. package/dist/public/assets/chunk-7N4EOEYR-CJ3HBg3c.js +1 -0
  290. package/dist/public/assets/chunk-AA7GKIK3-D0ckJAXt.js +1 -0
  291. package/dist/public/assets/chunk-BSJP7CBP-D4bNhKd7.js +1 -0
  292. package/dist/public/assets/chunk-CFjPhJqf.js +1 -0
  293. package/dist/public/assets/chunk-CIAEETIT-D1Fpp2md.js +1 -0
  294. package/dist/public/assets/chunk-EDXVE4YY-ChhT3Iyo.js +1 -0
  295. package/dist/public/assets/chunk-ENJZ2VHE-Bby39so4.js +10 -0
  296. package/dist/public/assets/chunk-FMBD7UC4-pRkDIOZn.js +15 -0
  297. package/dist/public/assets/chunk-FOC6F5B3-BsB4oTj4.js +1 -0
  298. package/dist/public/assets/chunk-ICPOFSXX-CrnuSfeJ.js +122 -0
  299. package/dist/public/assets/chunk-K5T4RW27-CtREah_n.js +94 -0
  300. package/dist/public/assets/chunk-KGLVRYIC-DtDxSfKu.js +1 -0
  301. package/dist/public/assets/chunk-LIHQZDEY-D63TRk6j.js +1 -0
  302. package/dist/public/assets/chunk-ORNJ4GCN-Dv2PvYVu.js +1 -0
  303. package/dist/public/assets/chunk-OYMX7WX6-BhfqKepC.js +231 -0
  304. package/dist/public/assets/chunk-QZHKN3VN-DBRWHtgj.js +1 -0
  305. package/dist/public/assets/chunk-U2HBQHQK-6BAKH95D.js +70 -0
  306. package/dist/public/assets/chunk-X2U36JSP-Cqpkx90-.js +1 -0
  307. package/dist/public/assets/chunk-XPW4576I-DSytTnq4.js +32 -0
  308. package/dist/public/assets/chunk-YZCP3GAM-Dt9awjVh.js +1 -0
  309. package/dist/public/assets/chunk-ZZ45TVLE-JGFITgiO.js +1 -0
  310. package/dist/public/assets/classDiagram-6PBFFD2Q-oopM_Z0m.js +1 -0
  311. package/dist/public/assets/classDiagram-v2-HSJHXN6E-ZAL74u9S.js +1 -0
  312. package/dist/public/assets/clone-C5y6xhRJ.js +1 -0
  313. package/dist/public/assets/colors-XIJoz9Bd.js +1 -0
  314. package/dist/public/assets/{compiler-runtime-Y11fyRVL.js → compiler-runtime-CVnuRdak.js} +1 -1
  315. package/dist/public/assets/config-validation-events-BvuBj41U.js +1 -0
  316. package/dist/public/assets/cose-bilkent-S5V4N54A-B9nG-SHi.js +1 -0
  317. package/dist/public/assets/cytoscape.esm-BkjNfcSF.js +321 -0
  318. package/dist/public/assets/dagre-BEdPLXba.js +1 -0
  319. package/dist/public/assets/dagre-KV5264BT-DKn5nGCC.js +4 -0
  320. package/dist/public/assets/defaultLocale-ZxyFnXCb.js +1 -0
  321. package/dist/public/assets/diagram-5BDNPKRD-BQuwYEd0.js +10 -0
  322. package/dist/public/assets/diagram-G4DWMVQ6-BmzIMyV5.js +24 -0
  323. package/dist/public/assets/diagram-MMDJMWI5-CI5eJfgr.js +43 -0
  324. package/dist/public/assets/diagram-TYMM5635-Cc8TJ7v3.js +24 -0
  325. package/dist/public/assets/dialog-Cv1qneWl.js +45 -0
  326. package/dist/public/assets/{dist-DR1MrLJC.js → dist-B4kUko7n.js} +1 -1
  327. package/dist/public/assets/{dist-BqO6NfD-.js → dist-BH1b1nWB.js} +1 -1
  328. package/dist/public/assets/{dist-DlS42TIP.js → dist-BOapDt7N.js} +1 -1
  329. package/dist/public/assets/dist-CIRuNcH5.js +1 -0
  330. package/dist/public/assets/{dist-GlH2KPqY.js → dist-D08h1pJc.js} +1 -1
  331. package/dist/public/assets/{dist-D2wwoXzm.js → dist-S8LJmtzL.js} +1 -1
  332. package/dist/public/assets/{dist-DeDgmJv2.js → dist-VyzSEzD4.js} +1 -1
  333. package/dist/public/assets/{dist-CgLbXgrr.js → dist-nPpvoMNC.js} +1 -1
  334. package/dist/public/assets/doc-hash-Q6dTjwu5.js +421 -0
  335. package/dist/public/assets/erDiagram-SMLLAGMA-BkrhGWMT.js +85 -0
  336. package/dist/public/assets/flatten-UmyAv3V9.js +1 -0
  337. package/dist/public/assets/flowDiagram-DWJPFMVM-qh62fanI.js +162 -0
  338. package/dist/public/assets/ganttDiagram-T4ZO3ILL-DXuCeCk6.js +292 -0
  339. package/dist/public/assets/gitGraph-7Q5UKJZL-CYhZlmk3.js +1 -0
  340. package/dist/public/assets/gitGraphDiagram-UUTBAWPF-BbcuenPj.js +106 -0
  341. package/dist/public/assets/graphlib-CasrTmMJ.js +1 -0
  342. package/dist/public/assets/image-preview-BJSGEOo4.png +0 -0
  343. package/dist/public/assets/index-B1y9QLHF.js +1858 -0
  344. package/dist/public/assets/index-DoXig4bf.css +1 -0
  345. package/dist/public/assets/info-OMHHGYJF-BslcKZhH.js +1 -0
  346. package/dist/public/assets/infoDiagram-42DDH7IO-WFAMbO2S.js +2 -0
  347. package/dist/public/assets/init-CBj3ecIW.js +1 -0
  348. package/dist/public/assets/isEmpty-DWJlzxR1.js +1 -0
  349. package/dist/public/assets/isObjectLike-AdQZ65l0.js +1 -0
  350. package/dist/public/assets/isSymbol-BP7IOIqG.js +1 -0
  351. package/dist/public/assets/ishikawaDiagram-UXIWVN3A-BJBiReWg.js +70 -0
  352. package/dist/public/assets/journeyDiagram-VCZTEJTY-Boq77pl6.js +139 -0
  353. package/dist/public/assets/kanban-definition-6JOO6SKY-DYMSr18F.js +89 -0
  354. package/dist/public/assets/katex-qwlL5fSd.js +257 -0
  355. package/dist/public/assets/line-_p5Px7MV.js +1 -0
  356. package/dist/public/assets/linear-DwuDS4qT.js +1 -0
  357. package/dist/public/assets/mcp-consent-store-BBTXqzE6.js +1 -0
  358. package/dist/public/assets/mermaid-parser.core-BcBb_Ows.js +4 -0
  359. package/dist/public/assets/mermaid.core-ZLTnLqVQ.js +11 -0
  360. package/dist/public/assets/min-HKuGSUqa.js +1 -0
  361. package/dist/public/assets/mindmap-definition-QFDTVHPH-BSxM4djR.js +96 -0
  362. package/dist/public/assets/now-BBH4UqDm.js +1 -0
  363. package/dist/public/assets/ordinal-CeOFUmRv.js +1 -0
  364. package/dist/public/assets/packet-4T2RLAQJ-QVnYA304.js +1 -0
  365. package/dist/public/assets/{panel-BCRdtBla.js → panel-BgMqDESF.js} +1 -1
  366. package/dist/public/assets/path-rUlDLHdA.js +1 -0
  367. package/dist/public/assets/pdf-a35ddrIO.js +54 -0
  368. package/dist/public/assets/pdf.worker-B1D2UnXD.mjs +63133 -0
  369. package/dist/public/assets/pdf.worker-CM-zAFN-.js +1 -0
  370. package/dist/public/assets/pie-ZZUOXDRM-C61c5byc.js +1 -0
  371. package/dist/public/assets/pieDiagram-DEJITSTG-CHRE_Jie.js +30 -0
  372. package/dist/public/assets/preload-helper-2ej06EnG.js +1 -0
  373. package/dist/public/assets/propagation-api-qAYD7s-v.js +1 -0
  374. package/dist/public/assets/quadrantDiagram-34T5L4WZ-CQkE5TwH.js +7 -0
  375. package/dist/public/assets/radar-PYXPWWZC-CMxjRtd8.js +1 -0
  376. package/dist/public/assets/reduce-DotyoGA7.js +1 -0
  377. package/dist/public/assets/requirementDiagram-MS252O5E-DHK98tKS.js +84 -0
  378. package/dist/public/assets/rough.esm-BFJ-MgcB.js +1 -0
  379. package/dist/public/assets/sankeyDiagram-XADWPNL6-BIXaStZh.js +10 -0
  380. package/dist/public/assets/sequenceDiagram-FGHM5R23-BCNH3kJo.js +157 -0
  381. package/dist/public/assets/src-C9jsS3p4.js +1 -0
  382. package/dist/public/assets/src-zyMpT2LE.js +1 -0
  383. package/dist/public/assets/stateDiagram-FHFEXIEX-BC5mjB6x.js +1 -0
  384. package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-B8L3BBt1.js +1 -0
  385. package/dist/public/assets/stex-BKMR5xQj.js +1 -0
  386. package/dist/public/assets/target-navigation-intent-BfGOumP6.js +1 -0
  387. package/dist/public/assets/telemetry-impl-CMeDUVKn.js +2 -0
  388. package/dist/public/assets/timeline-definition-GMOUNBTQ-VNxUGgXp.js +120 -0
  389. package/dist/public/assets/tooltip-CBGDOTMI.js +1 -0
  390. package/dist/public/assets/trace-api-DPMyR1_m.js +1 -0
  391. package/dist/public/assets/treeView-SZITEDCU-DfSa_Oiv.js +1 -0
  392. package/dist/public/assets/treemap-W4RFUUIX-Cp0s5wEq.js +1 -0
  393. package/dist/public/assets/vennDiagram-DHZGUBPP-DV2Y2j0r.js +34 -0
  394. package/dist/public/assets/video-preview-vLovc_Vy.png +0 -0
  395. package/dist/public/assets/wardley-RL74JXVD-CXcBKCuj.js +1 -0
  396. package/dist/public/assets/wardleyDiagram-NUSXRM2D-C1mMZ3kx.js +20 -0
  397. package/dist/public/assets/xychartDiagram-5P7HB3ND-CxFcwN2X.js +7 -0
  398. package/dist/public/index.html +43 -18
  399. package/dist/pwd-D4OZ7N27-C18XewhV.mjs +1 -0
  400. package/dist/{python3-AUFTPCU6-MeZyx8_A.mjs → python3-AUFTPCU6-BaJugIdp.mjs} +2 -2
  401. package/dist/readlink-MI4GCHJF-CHvs7DDT.mjs +1 -0
  402. package/dist/rev-XOSYPP45-2mnFFZWW.mjs +1 -0
  403. package/dist/rg-FOQSCCX3-BJahNfSe.mjs +1 -0
  404. package/dist/rm-RTZG23RL-D9-0WGRY.mjs +1 -0
  405. package/dist/rmdir-XTQXT7RK-Br7eH9kL.mjs +1 -0
  406. package/dist/{rolldown-runtime-wcPFST8Q-BB0WpHs3.mjs → rolldown-runtime-twds-ZHy-Dxr-RWJs.mjs} +1 -1
  407. package/dist/schemas/v0/config.project-local.schema.json +30 -0
  408. package/dist/schemas/v0/config.project.schema.json +59 -0
  409. package/dist/schemas/v0/config.user.schema.json +58 -0
  410. package/dist/sed-VFTTATXJ-mYhAmixc.mjs +1 -0
  411. package/dist/seq-RN5ZUASB-CKf5MNNO.mjs +1 -0
  412. package/dist/server-lock-D7DXNVql-B5nINglj.mjs +1 -0
  413. package/dist/server-lock-D7DXNVql-BRVVzA6T.mjs +2 -0
  414. package/dist/sha1sum-VJPNLNU6-DuOHap1X.mjs +1 -0
  415. package/dist/sha256sum-PI32XWXY-D9fEipQ7.mjs +1 -0
  416. package/dist/sleep-VZFPZFWA-B1fSoYuO.mjs +1 -0
  417. package/dist/sort-DCNRDA7U-DDCY4JZu.mjs +1 -0
  418. package/dist/split-SITCSYCZ-b9hfEJw7.mjs +1 -0
  419. package/dist/sqlite3-56UMWEY3-BQEx5i3P.mjs +1 -0
  420. package/dist/src-Cak39c0B.mjs +1 -0
  421. package/dist/start-BXk7J0Kh.mjs +1 -0
  422. package/dist/start-D6Ip3u6P.mjs +3 -0
  423. package/dist/stat-BT5A227F-Dzp4sgau.mjs +1 -0
  424. package/dist/strings-7PLOGTPD-DT41jX9d.mjs +1 -0
  425. package/dist/tac-SJGXQ4T2-BpdVoP8b.mjs +1 -0
  426. package/dist/tail-S5ULNTJU-0-sYrYik.mjs +1 -0
  427. package/dist/tar-ANUBEFJY-Wh3na_NU.mjs +1 -0
  428. package/dist/tee-O7VXZDCO-CwnGG0go.mjs +1 -0
  429. package/dist/time-DEUO3QV2-DzkqaQ1k.mjs +1 -0
  430. package/dist/timeout-VRKMCG72-BtPBpIRq.mjs +1 -0
  431. package/dist/touch-DX2IJOQ4-KW0Ui-lB.mjs +1 -0
  432. package/dist/tr-2HXZRDSW-C6Kf0M8T.mjs +1 -0
  433. package/dist/tree-LYXBS7DC-BN1FBqvM.mjs +1 -0
  434. package/dist/true-WHJNXCHG-DxCMVdqj.mjs +1 -0
  435. package/dist/unexpand-RGTMIGZM-DZ4Kf6Xq.mjs +1 -0
  436. package/dist/uniq-SUNANL47-Ceg51JdA.mjs +1 -0
  437. package/dist/wc-TQB3VNOX-BzWNq0MY.mjs +1 -0
  438. package/dist/which-XZHEH76L-DH_U2-Cj.mjs +1 -0
  439. package/dist/whoami-DGKU3D2X-BholYNPM.mjs +1 -0
  440. package/dist/xan-BXDXYEIB-b1eAtgch.mjs +1 -0
  441. package/dist/xan-view-ECQUO7AJ-DWDC57b_.mjs +1 -0
  442. package/dist/xargs-I6EZUCYF-Cov-i7kW.mjs +1 -0
  443. package/dist/yq-MJMAR36V-1r29nH4p.mjs +1 -0
  444. package/package.json +12 -15
  445. package/scripts/build-config-schema.mjs +69 -0
  446. package/scripts/postinstall.mjs +0 -20
  447. package/scripts/probe-exec.ts +7 -10
  448. package/scripts/probe-read-document.ts +1 -13
  449. package/dist/alias-JE7RI5QX-TirEebNy.mjs +0 -1
  450. package/dist/awk2-POPGKRAI-DigGXYmO.mjs +0 -1
  451. package/dist/base64-4YMZCVJ5-B4GnvJtR.mjs +0 -1
  452. package/dist/basename-AA2KJYZQ-DlZHEU5f.mjs +0 -1
  453. package/dist/bash-IJWYRKFO-BA1gxmDh.mjs +0 -1
  454. package/dist/build-D4l8tfO0.mjs +0 -2
  455. package/dist/cat-RDUMLXKC-CAQOzqfy.mjs +0 -1
  456. package/dist/chmod-SYMGL4JA-BC2VVHCa.mjs +0 -1
  457. package/dist/clear-5CZ5X4YR-B5oRhK00.mjs +0 -1
  458. package/dist/colors-BnZ-i-vb.mjs +0 -1
  459. package/dist/colors-DoPZvo1q.mjs +0 -2
  460. package/dist/column-WLPMMSTS-fFssyAvW.mjs +0 -1
  461. package/dist/comm-5SLSESQG-DRcwK9Gt.mjs +0 -1
  462. package/dist/constants-ekUaxW9F.mjs +0 -2
  463. package/dist/cp-XOYR4ABJ-BUZu7KNi.mjs +0 -1
  464. package/dist/cut-OPC3VAGB-BIRZEN2Y.mjs +0 -1
  465. package/dist/date-DD7FVA2V-DRxppxbV.mjs +0 -1
  466. package/dist/diff-HJF2MPDN-Yo3lE_58.mjs +0 -1
  467. package/dist/dirname-LEMTZZFS-2cTXnmQf.mjs +0 -1
  468. package/dist/dist-0qFIeeXA.mjs +0 -142
  469. package/dist/dist-BCyi1oM7.mjs +0 -116
  470. package/dist/dist-CXdg7KnM.mjs +0 -199
  471. package/dist/dist-Ct-gJ7iD.mjs +0 -1
  472. package/dist/du-WO2ENHXQ-B5uda2-L.mjs +0 -1
  473. package/dist/echo-O45JWWI2-B9QCpaZR.mjs +0 -1
  474. package/dist/env-5EPCWSXR--4eujSrM.mjs +0 -1
  475. package/dist/expand-DTNXU4LQ-BWwDphsm.mjs +0 -1
  476. package/dist/expansion-ENLSRCXJ-BBTiIHJS.mjs +0 -1
  477. package/dist/expr-5T3UU5KE-D5OdgUlD.mjs +0 -1
  478. package/dist/file-ZIGAJ4YS-zZfB3nws.mjs +0 -1
  479. package/dist/find-TPUOAIUQ-DaW1-9Vm.mjs +0 -1
  480. package/dist/flag-coverage-QT4N2Z44-B8zntJyb.mjs +0 -2
  481. package/dist/fold-LDSORVYE-CAfX9d8n.mjs +0 -1
  482. package/dist/git-handle-BhGnmvTB-Di8EsrYa.mjs +0 -1
  483. package/dist/grep-3AIAIJVR-C9A_aSMK.mjs +0 -1
  484. package/dist/gzip-AQXSGOVS-CL228lzk.mjs +0 -1
  485. package/dist/head-HT2B6D2J-DyNkF3aY.mjs +0 -1
  486. package/dist/help-VVWX7SA5-D5WzpTIY.mjs +0 -1
  487. package/dist/history-J4QRNGRO-DUTsR2Sf.mjs +0 -1
  488. package/dist/hostname-BK6HG2DE-zmNkhqtV.mjs +0 -1
  489. package/dist/html-to-markdown-TFCECAGV-Ux5cbjMV.mjs +0 -1
  490. package/dist/init-Ccjx3YjD.mjs +0 -1
  491. package/dist/init-DOTyF3_B.mjs +0 -1
  492. package/dist/init-Dc2dCgGt.mjs +0 -255
  493. package/dist/init-DeV-MdCs.mjs +0 -120
  494. package/dist/join-GG2LDHE5-B6C3-ghI.mjs +0 -1
  495. package/dist/jq-ODXZBPLY-Uj_VahOC.mjs +0 -1
  496. package/dist/keepalive-CZzB5k1h.mjs +0 -2
  497. package/dist/ln-4TRFBYAT-DiYK6FgR.mjs +0 -1
  498. package/dist/loader-Bveym9GJ.mjs +0 -1
  499. package/dist/loader-C3jzK-Dy.mjs +0 -3
  500. package/dist/ls-KSXFZCWH-B0la1Q-P.mjs +0 -1
  501. package/dist/md5sum-INMIK4DX-DAG8dmoX.mjs +0 -1
  502. package/dist/mkdir-TDEMSB6C-CRMB4_AE.mjs +0 -1
  503. package/dist/mv-Z6MORUFL-1iTO8NY5.mjs +0 -1
  504. package/dist/nl-U5YJDM32-IRiMqQcZ.mjs +0 -1
  505. package/dist/od-VJEF2UR5-PasvdXXR.mjs +0 -1
  506. package/dist/paste-7N6AFSDS-C3M5_YM6.mjs +0 -1
  507. package/dist/paths-BA1xev5m.mjs +0 -1
  508. package/dist/paths-DtQI2_ER.mjs +0 -2
  509. package/dist/preview-BTFflPaA.mjs +0 -1
  510. package/dist/preview-BuXqi6nl.mjs +0 -3
  511. package/dist/printf-CX64KX2P-uTOF6Zpa.mjs +0 -1
  512. package/dist/public/assets/ActivityModeContent-Ccu_n0bV.js +0 -2
  513. package/dist/public/assets/DocumentContext-C1msvcHp.js +0 -5
  514. package/dist/public/assets/GraphPanel-CJ_U3W3L.js +0 -46
  515. package/dist/public/assets/McpConsentDialogBody-Csjet19t.js +0 -1
  516. package/dist/public/assets/PageListContext-B5SWnlyE.js +0 -278
  517. package/dist/public/assets/SourceEditor-OFesfBB2.js +0 -3
  518. package/dist/public/assets/__vite-browser-external-Dz2JgTKm.js +0 -1
  519. package/dist/public/assets/chunk-DECur_0Z.js +0 -1
  520. package/dist/public/assets/clipboard-DAcKCHl1.js +0 -32
  521. package/dist/public/assets/dialog-CtSN0d2b.js +0 -45
  522. package/dist/public/assets/index-CwFTGDhe.js +0 -1843
  523. package/dist/public/assets/index-DjR45Lon.css +0 -1
  524. package/dist/public/assets/propagation-api-Bugyj7xy.js +0 -1
  525. package/dist/public/assets/telemetry-impl-D8K_lJGH.js +0 -2
  526. package/dist/public/assets/toggle-group-LDOO6zaV.js +0 -1
  527. package/dist/public/assets/tooltip-D0MnQ7ZX.js +0 -1
  528. package/dist/pwd-D4OZ7N27-DNkGMjtD.mjs +0 -1
  529. package/dist/readlink-MI4GCHJF-DRVZBAvY.mjs +0 -1
  530. package/dist/rev-XOSYPP45-q2MQLs41.mjs +0 -1
  531. package/dist/rg-FOQSCCX3-Cssz8GNh.mjs +0 -1
  532. package/dist/rm-RTZG23RL-fjvVauiI.mjs +0 -1
  533. package/dist/rmdir-XTQXT7RK-C13HY1h7.mjs +0 -1
  534. package/dist/sed-VFTTATXJ-DO49xc40.mjs +0 -1
  535. package/dist/seq-RN5ZUASB-D9r6kc_Z.mjs +0 -1
  536. package/dist/server-lock-n3Y5JWNv-3o7br8XE.mjs +0 -2
  537. package/dist/server-lock-n3Y5JWNv-DXpg9_eU.mjs +0 -1
  538. package/dist/sha1sum-VJPNLNU6-4uBt63v6.mjs +0 -1
  539. package/dist/sha256sum-PI32XWXY-_uaXSgBK.mjs +0 -1
  540. package/dist/sleep-VZFPZFWA-CS7jDpXp.mjs +0 -1
  541. package/dist/sort-DCNRDA7U-Dmp_2ZoH.mjs +0 -1
  542. package/dist/split-SITCSYCZ-Cu9ifXuc.mjs +0 -1
  543. package/dist/sqlite3-56UMWEY3-D1Xq8d4g.mjs +0 -1
  544. package/dist/src-CCtbSzLe.mjs +0 -1
  545. package/dist/start-D7mCFrVn.mjs +0 -1
  546. package/dist/start-RnYkhoRl.mjs +0 -2
  547. package/dist/stat-BT5A227F-Dqepjl-k.mjs +0 -1
  548. package/dist/strings-7PLOGTPD-g6FhPS64.mjs +0 -1
  549. package/dist/tac-SJGXQ4T2-DczI7HKk.mjs +0 -1
  550. package/dist/tail-S5ULNTJU-Bk22kVUG.mjs +0 -1
  551. package/dist/tar-ANUBEFJY-1lwT6ndQ.mjs +0 -1
  552. package/dist/tee-O7VXZDCO-Ftqr8Jad.mjs +0 -1
  553. package/dist/time-DEUO3QV2-BtzQ0nVf.mjs +0 -1
  554. package/dist/timeout-VRKMCG72-Cpzi9cz-.mjs +0 -1
  555. package/dist/touch-DX2IJOQ4-ewCHfbB3.mjs +0 -1
  556. package/dist/tr-2HXZRDSW-DrrobhxR.mjs +0 -1
  557. package/dist/tree-LYXBS7DC-DZnTMKSh.mjs +0 -1
  558. package/dist/true-WHJNXCHG-BaLssNp9.mjs +0 -1
  559. package/dist/unexpand-RGTMIGZM-BOmSL08U.mjs +0 -1
  560. package/dist/uniq-SUNANL47-Cn_JDmUJ.mjs +0 -1
  561. package/dist/wc-TQB3VNOX-DkOBrQlr.mjs +0 -1
  562. package/dist/which-XZHEH76L-DxZJ58G5.mjs +0 -1
  563. package/dist/whoami-DGKU3D2X-Bn1LP0m_.mjs +0 -1
  564. package/dist/wrapper-BTT6637Z.mjs +0 -7
  565. package/dist/xan-BXDXYEIB-_Vtao535.mjs +0 -1
  566. package/dist/xan-view-ECQUO7AJ-6vlhfSF-.mjs +0 -1
  567. package/dist/xargs-I6EZUCYF-dHdg4qaj.mjs +0 -1
  568. package/dist/yq-MJMAR36V-pRBq87Ya.mjs +0 -1
  569. /package/dist/public/assets/{go-DatQmDtN.js → go-a33xvodr.js} +0 -0
  570. /package/dist/public/assets/{shell-7yok6dsz.js → shell-40VLet8r.js} +0 -0
  571. /package/dist/public/assets/{w3c-keyname-CSlwavrd.js → w3c-keyname-Dfj2imOv.js} +0 -0
@@ -0,0 +1,20 @@
1
+ import{n as e,r as t}from"./src-C9jsS3p4.js";import{B as n,C as r,L as i,V as a,W as o,_ as s,a as c,b as l,c as u,v as d}from"./chunk-ICPOFSXX-CrnuSfeJ.js";import{t as f}from"./chunk-426QAEUC-BoBKbVmN.js";import{t as p}from"./chunk-4BX2VUAB-D8pbSOlJ.js";import{t as m}from"./mermaid-parser.core-BcBb_Ows.js";var h=e((e,t)=>{let n=e<=1?e*100:e;if(n<0||n>100)throw Error(`${t} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return n},`toPercent`),g=e((e,t,n)=>({x:h(t,`${n} evolution`),y:h(e,`${n} visibility`)}),`toCoordinates`),_=e(e=>{if(e){if(e===`+<>`)return`bidirectional`;if(e===`+<`)return`backward`;if(e===`+>`)return`forward`}},`getFlowFromPort`),v=e(e=>{if(!e?.startsWith(`+`))return{};let t=/^\+'([^']*)'/.exec(e)?.[1];return e.includes(`<>`)?{flow:`bidirectional`,label:t}:e.includes(`<`)?{flow:`backward`,label:t}:e.includes(`>`)?{flow:`forward`,label:t}:{label:t}},`extractFlowFromArrow`),y=e((e,t)=>{if(p(e,t),e.size&&t.setSize(e.size.width,e.size.height),e.evolution){let n=e.evolution.stages.map(e=>e.secondName?`${e.name.trim()} / ${e.secondName.trim()}`:e.name.trim()),r=e.evolution.stages.filter(e=>e.boundary!==void 0).map(e=>e.boundary);t.updateAxes({stages:n,stageBoundaries:r})}if(e.anchors.forEach(e=>{let n=g(e.visibility,e.evolution,`Anchor "${e.name}"`);t.addNode(e.name,e.name,n.x,n.y,`anchor`)}),e.components.forEach(e=>{let n=g(e.visibility,e.evolution,`Component "${e.name}"`),r=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,i=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,a=e.decorator?.strategy;t.addNode(e.name,e.name,n.x,n.y,`component`,r,i,e.inertia,a)}),e.notes.forEach(e=>{let n=g(e.visibility,e.evolution,`Note "${e.text}"`);t.addNote(e.text,n.x,n.y)}),e.pipelines.forEach(e=>{let n=t.getNode(e.parent);if(!n||typeof n.y!=`number`)throw Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);let r=n.y;t.startPipeline(e.parent),e.components.forEach(n=>{let i=`${e.parent}_${n.name}`,a=n.label?(n.label.negX?-1:1)*n.label.offsetX:void 0,o=n.label?(n.label.negY?-1:1)*n.label.offsetY:void 0,s=h(n.evolution,`Pipeline component "${n.name}" evolution`);t.addNode(i,n.name,s,r,`pipeline-component`,a,o),t.addPipelineComponent(e.parent,i)})}),e.links.forEach(e=>{let n=!!e.arrow&&(e.arrow.includes(`-.->`)||e.arrow.includes(`.-.`)),r=_(e.fromPort)??_(e.toPort),{flow:i,label:a}=v(e.arrow);!r&&i&&(r=i);let o=e.linkLabel,s=a??o;t.addLink(e.from,e.to,n,s,r)}),e.evolves.forEach(e=>{let n=t.getNode(e.component);if(n?.y!==void 0){let r=h(e.target,`Evolve target for "${e.component}"`);t.addTrend(e.component,r,n.y)}}),e.annotations.length>0){let n=e.annotations[0],r=g(n.x,n.y,`Annotations box`);t.setAnnotationsBox(r.x,r.y)}e.annotation.forEach(e=>{let n=g(e.x,e.y,`Annotation ${e.number}`);t.addAnnotation(e.number,[{x:n.x,y:n.y}],e.text)}),e.accelerators.forEach(e=>{let n=g(e.x,e.y,`Accelerator "${e.name}"`);t.addAccelerator(e.name,n.x,n.y)}),e.deaccelerators.forEach(e=>{let n=g(e.x,e.y,`Deaccelerator "${e.name}"`);t.addDeaccelerator(e.name,n.x,n.y)})},`populateDb`),b={parser:{yy:void 0},parse:e(async e=>{let n=await m(`wardley`,e);t.debug(n);let r=b.parser?.yy;if(!r||typeof r.addNode!=`function`)throw Error(`parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);y(n,r)},`parse`)},x=new class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{e(this,`WardleyBuilder`)}addNode(e){let t=this.nodes.get(e.id)??{id:e.id,label:e.label},n={...t,...e,className:e.className??t.className,labelOffsetX:e.labelOffsetX??t.labelOffsetX,labelOffsetY:e.labelOffsetY??t.labelOffsetY};this.nodes.set(e.id,n)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});let t=this.nodes.get(e);t&&(t.isPipelineParent=!0)}addPipelineComponent(e,t){let n=this.pipelines.get(e);n&&n.componentIds.push(t);let r=this.nodes.get(t);r&&(r.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,t){this.annotationsBox={x:e,y:t}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,t){this.size={width:e,height:t}}getNode(e){return this.nodes.get(e)}build(){let e=[];for(let t of this.nodes.values()){if(typeof t.x!=`number`||typeof t.y!=`number`)throw Error(`Node "${t.label}" is missing coordinates`);e.push(t)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}};function S(e){let t=l();return i(e.trim(),t)}e(S,`textSanitizer`);function C(){return l()[`wardley-beta`]}e(C,`getConfig`);function w(e,t,n,r,i,a,o,s,c){x.addNode({id:e,label:S(t),x:n,y:r,className:i,labelOffsetX:a,labelOffsetY:o,inertia:s,sourceStrategy:c})}e(w,`addNode`);function T(e,t,n=!1,r,i){x.addLink({source:e,target:t,dashed:n,label:r,flow:i})}e(T,`addLink`);function E(e,t,n){x.addTrend({nodeId:e,targetX:t,targetY:n})}e(E,`addTrend`);function D(e,t,n){x.addAnnotation({number:e,coordinates:t,text:n?S(n):void 0})}e(D,`addAnnotation`);function O(e,t,n){x.addNote({text:S(e),x:t,y:n})}e(O,`addNote`);function k(e,t,n){x.addAccelerator({name:S(e),x:t,y:n})}e(k,`addAccelerator`);function A(e,t,n){x.addDeaccelerator({name:S(e),x:t,y:n})}e(A,`addDeaccelerator`);function j(e,t){x.setAnnotationsBox(e,t)}e(j,`setAnnotationsBox`);function M(e,t){x.setSize(e,t)}e(M,`setSize`);function N(e){x.startPipeline(e)}e(N,`startPipeline`);function P(e,t){x.addPipelineComponent(e,t)}e(P,`addPipelineComponent`);function F(e){let t={};e.xLabel&&(t.xLabel=S(e.xLabel)),e.yLabel&&(t.yLabel=S(e.yLabel)),e.stages&&(t.stages=e.stages.map(e=>S(e))),e.stageBoundaries&&(t.stageBoundaries=e.stageBoundaries),x.setAxes(t)}e(F,`updateAxes`);function I(e){return x.getNode(e)}e(I,`getNode`);function L(){return x.build()}e(L,`getWardleyData`);function R(){x.clear(),c()}e(R,`clear`);var z={getConfig:C,addNode:w,addLink:T,addTrend:E,addAnnotation:D,addNote:O,addAccelerator:k,addDeaccelerator:A,setAnnotationsBox:j,setSize:M,startPipeline:N,addPipelineComponent:P,updateAxes:F,getNode:I,getWardleyData:L,clear:R,setAccTitle:a,getAccTitle:d,setDiagramTitle:o,getDiagramTitle:r,getAccDescription:s,setAccDescription:n},B=[`Genesis`,`Custom Built`,`Product`,`Commodity`],V=e(()=>{let{themeVariables:e}=l();return{backgroundColor:e.wardley?.backgroundColor??e.background??`#fff`,axisColor:e.wardley?.axisColor??`#000`,axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??`#222`,gridColor:e.wardley?.gridColor??`rgba(100, 100, 100, 0.2)`,componentFill:e.wardley?.componentFill??`#fff`,componentStroke:e.wardley?.componentStroke??`#000`,componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??`#222`,linkStroke:e.wardley?.linkStroke??`#000`,evolutionStroke:e.wardley?.evolutionStroke??`#dc3545`,annotationStroke:e.wardley?.annotationStroke??`#000`,annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??`#222`,annotationFill:e.wardley?.annotationFill??e.background??`#fff`}},`getTheme`),H=e(()=>{let e=l()[`wardley-beta`];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},`getConfigValues`),U={parser:b,db:z,renderer:{draw:e((n,r,i,a)=>{t.debug(`Rendering Wardley map
2
+ `+n);let o=H(),s=V(),c=o.nodeRadius*1.6,l=a.db,d=l.getWardleyData(),p=l.getDiagramTitle(),m=d.size?.width??o.width,h=d.size?.height??o.height,g=f(r);g.selectAll(`*`).remove(),u(g,h,m,o.useMaxWidth),g.attr(`viewBox`,`0 0 ${m} ${h}`);let _=g.append(`g`).attr(`class`,`wardley-map`),v=g.append(`defs`);v.append(`marker`).attr(`id`,`arrow-${r}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,9).attr(`refY`,5).attr(`markerWidth`,6).attr(`markerHeight`,6).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`fill`,s.evolutionStroke).attr(`stroke`,`none`),v.append(`marker`).attr(`id`,`link-arrow-end-${r}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,9).attr(`refY`,5).attr(`markerWidth`,5).attr(`markerHeight`,5).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`fill`,s.linkStroke).attr(`stroke`,`none`),v.append(`marker`).attr(`id`,`link-arrow-start-${r}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,1).attr(`refY`,5).attr(`markerWidth`,5).attr(`markerHeight`,5).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 10 0 L 0 5 L 10 10 z`).attr(`fill`,s.linkStroke).attr(`stroke`,`none`),_.append(`rect`).attr(`class`,`wardley-background`).attr(`width`,m).attr(`height`,h).attr(`fill`,s.backgroundColor);let y=m-o.padding*2,b=h-o.padding*2;p&&_.append(`text`).attr(`class`,`wardley-title`).attr(`x`,m/2).attr(`y`,o.padding/2).attr(`fill`,s.axisTextColor).attr(`font-size`,o.axisFontSize*1.05).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(p);let x=e(e=>o.padding+e/100*y,`projectX`),S=e(e=>h-o.padding-e/100*b,`projectY`),C=_.append(`g`).attr(`class`,`wardley-axes`);C.append(`line`).attr(`x1`,o.padding).attr(`x2`,m-o.padding).attr(`y1`,h-o.padding).attr(`y2`,h-o.padding).attr(`stroke`,s.axisColor).attr(`stroke-width`,1),C.append(`line`).attr(`x1`,o.padding).attr(`x2`,o.padding).attr(`y1`,o.padding).attr(`y2`,h-o.padding).attr(`stroke`,s.axisColor).attr(`stroke-width`,1);let w=d.axes.xLabel??`Evolution`,T=d.axes.yLabel??`Visibility`;C.append(`text`).attr(`class`,`wardley-axis-label wardley-axis-label-x`).attr(`x`,o.padding+y/2).attr(`y`,h-o.padding/4).attr(`fill`,s.axisTextColor).attr(`font-size`,o.axisFontSize).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).text(w),C.append(`text`).attr(`class`,`wardley-axis-label wardley-axis-label-y`).attr(`x`,o.padding/3).attr(`y`,o.padding+b/2).attr(`fill`,s.axisTextColor).attr(`font-size`,o.axisFontSize).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).attr(`transform`,`rotate(-90 ${o.padding/3} ${o.padding+b/2})`).text(T);let E=d.axes.stages&&d.axes.stages.length>0?d.axes.stages:B;if(E.length>0){let e=_.append(`g`).attr(`class`,`wardley-stages`),t=d.axes.stageBoundaries,n=[];if(t&&t.length===E.length){let e=0;t.forEach(t=>{n.push({start:e,end:t}),e=t})}else{let e=1/E.length;E.forEach((t,r)=>{n.push({start:r*e,end:(r+1)*e})})}E.forEach((t,r)=>{let i=n[r],a=o.padding+i.start*y,c=(a+(o.padding+i.end*y))/2;r>0&&e.append(`line`).attr(`x1`,a).attr(`x2`,a).attr(`y1`,o.padding).attr(`y2`,h-o.padding).attr(`stroke`,`#000`).attr(`stroke-width`,1).attr(`stroke-dasharray`,`5 5`).attr(`opacity`,.8),e.append(`text`).attr(`class`,`wardley-stage-label`).attr(`x`,c).attr(`y`,h-o.padding/1.5).attr(`fill`,s.axisTextColor).attr(`font-size`,o.axisFontSize-2).attr(`text-anchor`,`middle`).text(t)})}if(o.showGrid){let e=_.append(`g`).attr(`class`,`wardley-grid`);for(let t=1;t<4;t++){let n=t/4,r=o.padding+y*n;e.append(`line`).attr(`x1`,r).attr(`x2`,r).attr(`y1`,o.padding).attr(`y2`,h-o.padding).attr(`stroke`,s.gridColor).attr(`stroke-dasharray`,`2 6`),e.append(`line`).attr(`x1`,o.padding).attr(`x2`,m-o.padding).attr(`y1`,h-o.padding-b*n).attr(`y2`,h-o.padding-b*n).attr(`stroke`,s.gridColor).attr(`stroke-dasharray`,`2 6`)}}let D=new Map;if(d.nodes.forEach(e=>{D.set(e.id,{x:x(e.x),y:S(e.y),node:e})}),d.pipelines.length>0){let e=_.append(`g`).attr(`class`,`wardley-pipelines`),t=_.append(`g`).attr(`class`,`wardley-pipeline-links`);d.pipelines.forEach(n=>{if(n.componentIds.length===0)return;let r=n.componentIds.map(e=>({id:e,pos:D.get(e),node:d.nodes.find(t=>t.id===e)})).filter(e=>e.pos&&e.node).sort((e,t)=>e.node.x-t.node.x);for(let e=0;e<r.length-1;e++){let n=r[e],i=r[e+1];t.append(`line`).attr(`class`,`wardley-pipeline-evolution-link`).attr(`x1`,n.pos.x).attr(`y1`,n.pos.y).attr(`x2`,i.pos.x).attr(`y2`,i.pos.y).attr(`stroke`,s.linkStroke).attr(`stroke-width`,1).attr(`stroke-dasharray`,`4 4`)}let i=1/0,a=-1/0,l=0;if(n.componentIds.forEach(e=>{let t=D.get(e);t&&(i=Math.min(i,t.x),a=Math.max(a,t.x),l=t.y)}),i!==1/0&&a!==-1/0){let t=o.nodeRadius*4,r=l-t/2,u=D.get(n.nodeId);u&&(u.x=(i+a)/2,u.y=r-c/6),e.append(`rect`).attr(`class`,`wardley-pipeline-box`).attr(`x`,i-15).attr(`y`,r).attr(`width`,a-i+30).attr(`height`,t).attr(`fill`,`none`).attr(`stroke`,s.axisColor).attr(`stroke-width`,1.5).attr(`rx`,4).attr(`ry`,4)}})}let O=_.append(`g`).attr(`class`,`wardley-links`),k=new Map;d.pipelines.forEach(e=>{k.set(e.nodeId,new Set(e.componentIds))});let A=d.links.filter(e=>!(!D.has(e.source)||!D.has(e.target)||k.get(e.target)?.has(e.source)));O.selectAll(`line`).data(A).enter().append(`line`).attr(`class`,e=>`wardley-link${e.dashed?` wardley-link--dashed`:``}`).attr(`x1`,e=>{let t=D.get(e.source),n=D.get(e.target),r=d.nodes.find(t=>t.id===e.source).isPipelineParent?c/Math.sqrt(2):o.nodeRadius,i=n.x-t.x,a=n.y-t.y,s=Math.sqrt(i*i+a*a);return t.x+i/s*r}).attr(`y1`,e=>{let t=D.get(e.source),n=D.get(e.target),r=d.nodes.find(t=>t.id===e.source).isPipelineParent?c/Math.sqrt(2):o.nodeRadius,i=n.x-t.x,a=n.y-t.y,s=Math.sqrt(i*i+a*a);return t.y+a/s*r}).attr(`x2`,e=>{let t=D.get(e.source),n=D.get(e.target),r=d.nodes.find(t=>t.id===e.target).isPipelineParent?c/Math.sqrt(2):o.nodeRadius,i=t.x-n.x,a=t.y-n.y,s=Math.sqrt(i*i+a*a);return n.x+i/s*r}).attr(`y2`,e=>{let t=D.get(e.source),n=D.get(e.target),r=d.nodes.find(t=>t.id===e.target).isPipelineParent?c/Math.sqrt(2):o.nodeRadius,i=t.x-n.x,a=t.y-n.y,s=Math.sqrt(i*i+a*a);return n.y+a/s*r}).attr(`stroke`,s.linkStroke).attr(`stroke-width`,1).attr(`stroke-dasharray`,e=>e.dashed?`6 6`:null).attr(`marker-end`,e=>e.flow===`forward`||e.flow===`bidirectional`?`url(#link-arrow-end-${r})`:null).attr(`marker-start`,e=>e.flow===`backward`||e.flow===`bidirectional`?`url(#link-arrow-start-${r})`:null),O.selectAll(`text`).data(A.filter(e=>e.label)).enter().append(`text`).attr(`class`,`wardley-link-label`).attr(`x`,e=>{let t=D.get(e.source),n=D.get(e.target),r=(t.x+n.x)/2,i=n.y-t.y,a=n.x-t.x;return r+i/Math.sqrt(a*a+i*i)*8}).attr(`y`,e=>{let t=D.get(e.source),n=D.get(e.target),r=(t.y+n.y)/2,i=n.x-t.x,a=n.y-t.y,o=Math.sqrt(i*i+a*a);return r+-i/o*8}).attr(`fill`,s.axisTextColor).attr(`font-size`,o.labelFontSize).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).attr(`transform`,e=>{let t=D.get(e.source),n=D.get(e.target),r=(t.x+n.x)/2,i=(t.y+n.y)/2,a=n.x-t.x,o=n.y-t.y,s=Math.sqrt(a*a+o*o),c=o/s,l=-a/s,u=r+c*8,d=i+l*8,f=Math.atan2(o,a)*180/Math.PI;return(f>90||f<-90)&&(f+=180),`rotate(${f} ${u} ${d})`}).text(e=>e.label);let j=_.append(`g`).attr(`class`,`wardley-trends`),M=d.trends.map(e=>{let t=D.get(e.nodeId);if(!t)return null;let n=x(e.targetX),r=S(e.targetY),i=n-t.x,a=r-t.y,s=Math.sqrt(i*i+a*a),c=o.nodeRadius+2;return{origin:t,targetX:n,targetY:r,adjustedX2:s>c?n-i/s*c:n,adjustedY2:s>c?r-a/s*c:r}}).filter(e=>e!==null);j.selectAll(`line`).data(M).enter().append(`line`).attr(`class`,`wardley-trend`).attr(`x1`,e=>e.origin.x).attr(`y1`,e=>e.origin.y).attr(`x2`,e=>e.adjustedX2).attr(`y2`,e=>e.adjustedY2).attr(`stroke`,s.evolutionStroke).attr(`stroke-width`,1).attr(`stroke-dasharray`,`4 4`).attr(`marker-end`,`url(#arrow-${r})`);let N=_.append(`g`).attr(`class`,`wardley-nodes`).selectAll(`g`).data(d.nodes).enter().append(`g`).attr(`class`,e=>[`wardley-node`,e.className?`wardley-node--${e.className}`:``].filter(Boolean).join(` `));N.filter(e=>e.sourceStrategy===`outsource`).append(`circle`).attr(`class`,`wardley-outsource-overlay`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius*2).attr(`fill`,`#666`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),N.filter(e=>e.sourceStrategy===`buy`).append(`circle`).attr(`class`,`wardley-buy-overlay`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius*2).attr(`fill`,`#ccc`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),N.filter(e=>e.sourceStrategy===`build`).append(`circle`).attr(`class`,`wardley-build-overlay`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius*2).attr(`fill`,`#eee`).attr(`stroke`,`#000`).attr(`stroke-width`,1);let P=N.filter(e=>e.sourceStrategy===`market`);P.append(`circle`).attr(`class`,`wardley-market-overlay`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius*2).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),N.filter(e=>!e.isPipelineParent&&e.sourceStrategy!==`market`&&e.className!==`anchor`).append(`circle`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius).attr(`fill`,s.componentFill).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1);let F=o.nodeRadius*.7,I=o.nodeRadius*1.2;if(P.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>D.get(e.id).x).attr(`y1`,e=>D.get(e.id).y-I).attr(`x2`,e=>D.get(e.id).x-I*Math.cos(Math.PI/6)).attr(`y2`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),P.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>D.get(e.id).x-I*Math.cos(Math.PI/6)).attr(`y1`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`x2`,e=>D.get(e.id).x+I*Math.cos(Math.PI/6)).attr(`y2`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),P.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>D.get(e.id).x+I*Math.cos(Math.PI/6)).attr(`y1`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`x2`,e=>D.get(e.id).x).attr(`y2`,e=>D.get(e.id).y-I).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),P.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y-I).attr(`r`,F).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,2),P.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>D.get(e.id).x-I*Math.cos(Math.PI/6)).attr(`cy`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`r`,F).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,2),P.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>D.get(e.id).x+I*Math.cos(Math.PI/6)).attr(`cy`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`r`,F).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,2),N.filter(e=>e.isPipelineParent===!0).append(`rect`).attr(`x`,e=>D.get(e.id).x-c/2).attr(`y`,e=>D.get(e.id).y-c/2).attr(`width`,c).attr(`height`,c).attr(`fill`,s.componentFill).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),N.filter(e=>e.inertia===!0).append(`line`).attr(`class`,`wardley-inertia`).attr(`x1`,e=>{let t=D.get(e.id),n=e.isPipelineParent?c/2+15:o.nodeRadius+15;return e.sourceStrategy&&(n+=o.nodeRadius+10),t.x+n}).attr(`y1`,e=>{let t=D.get(e.id),n=e.isPipelineParent?c:o.nodeRadius*2;return t.y-n/2}).attr(`x2`,e=>{let t=D.get(e.id),n=e.isPipelineParent?c/2+15:o.nodeRadius+15;return e.sourceStrategy&&(n+=o.nodeRadius+10),t.x+n}).attr(`y2`,e=>{let t=D.get(e.id),n=e.isPipelineParent?c:o.nodeRadius*2;return t.y+n/2}).attr(`stroke`,s.componentStroke).attr(`stroke-width`,6),N.append(`text`).attr(`x`,e=>{let t=D.get(e.id);if(e.className===`anchor`)return e.labelOffsetX===void 0?t.x:t.x+e.labelOffsetX;let n=o.nodeLabelOffset;e.sourceStrategy&&e.labelOffsetX===void 0&&(n+=10);let r=e.labelOffsetX??n;return t.x+r}).attr(`y`,e=>{let t=D.get(e.id);if(e.className===`anchor`)return e.labelOffsetY===void 0?t.y-3:t.y+e.labelOffsetY;let n=-o.nodeLabelOffset;e.sourceStrategy&&e.labelOffsetY===void 0&&(n-=10);let r=e.labelOffsetY??n;return t.y+r}).attr(`class`,`wardley-node-label`).attr(`fill`,e=>e.className===`evolved`?s.evolutionStroke:e.className===`anchor`?`#000`:s.componentLabelColor).attr(`font-size`,o.labelFontSize).attr(`font-weight`,e=>e.className===`anchor`?`bold`:`normal`).attr(`text-anchor`,e=>e.className===`anchor`?`middle`:`start`).attr(`dominant-baseline`,e=>e.className===`anchor`?`middle`:`auto`).text(e=>e.label),d.annotations.length>0){let e=_.append(`g`).attr(`class`,`wardley-annotations`);if(d.annotations.forEach(t=>{let n=t.coordinates.map(e=>({x:x(e.x),y:S(e.y)}));if(n.length>1)for(let t=0;t<n.length-1;t++)e.append(`line`).attr(`class`,`wardley-annotation-line`).attr(`x1`,n[t].x).attr(`y1`,n[t].y).attr(`x2`,n[t+1].x).attr(`y2`,n[t+1].y).attr(`stroke`,s.axisColor).attr(`stroke-width`,1.5).attr(`stroke-dasharray`,`4 4`);n.forEach(n=>{let r=e.append(`g`).attr(`class`,`wardley-annotation`);r.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,10).attr(`fill`,`white`).attr(`stroke`,s.axisColor).attr(`stroke-width`,1.5),r.append(`text`).attr(`x`,n.x).attr(`y`,n.y).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`central`).attr(`font-size`,10).attr(`fill`,s.axisTextColor).attr(`font-weight`,`bold`).text(t.number)})}),d.annotationsBox){let t=x(d.annotationsBox.x),n=S(d.annotationsBox.y),r=e.append(`g`).attr(`class`,`wardley-annotations-box`),i=[...d.annotations].filter(e=>e.text).sort((e,t)=>e.number-t.number),a=[];if(i.forEach((e,i)=>{let o=r.append(`text`).attr(`x`,t+10).attr(`y`,n+10+(i+1)*16).attr(`font-size`,11).attr(`fill`,s.axisTextColor).attr(`text-anchor`,`start`).attr(`dominant-baseline`,`middle`).text(`${e.number}. ${e.text}`);a.push(o)}),a.length>0){let e=0,c=0;a.forEach(t=>{let n=t.node(),r=n.getComputedTextLength();e=Math.max(e,r);let i=n.getBBox();c=Math.max(c,i.height)});let l=e+20+105,u=i.length*16+20+c/2,d=o.padding,f=m-o.padding-l,p=o.padding,g=h-o.padding-u;t=Math.max(d,Math.min(t,f)),n=Math.max(p,Math.min(n,g)),a.forEach((e,r)=>{e.attr(`x`,t+10).attr(`y`,n+10+(r+1)*16)}),r.insert(`rect`,`text`).attr(`x`,t).attr(`y`,n).attr(`width`,l).attr(`height`,u).attr(`fill`,`white`).attr(`stroke`,s.axisColor).attr(`stroke-width`,1.5).attr(`rx`,4).attr(`ry`,4)}}}if(d.notes.length>0){let e=_.append(`g`).attr(`class`,`wardley-notes`);d.notes.forEach(t=>{let n=x(t.x),r=S(t.y);e.append(`text`).attr(`x`,n).attr(`y`,r).attr(`text-anchor`,`start`).attr(`font-size`,11).attr(`fill`,s.axisTextColor).attr(`font-weight`,`bold`).text(t.text)})}if(d.accelerators.length>0){let e=_.append(`g`).attr(`class`,`wardley-accelerators`);d.accelerators.forEach(t=>{let n=x(t.x),r=S(t.y),i=`
3
+ M ${n} ${r-30/2}
4
+ L ${n+60-20} ${r-30/2}
5
+ L ${n+60-20} ${r-30/2-8}
6
+ L ${n+60} ${r}
7
+ L ${n+60-20} ${r+30/2+8}
8
+ L ${n+60-20} ${r+30/2}
9
+ L ${n} ${r+30/2}
10
+ Z
11
+ `;e.append(`path`).attr(`d`,i).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),e.append(`text`).attr(`x`,n+60/2).attr(`y`,r+30/2+15).attr(`text-anchor`,`middle`).attr(`font-size`,10).attr(`fill`,s.axisTextColor).attr(`font-weight`,`bold`).text(t.name)})}if(d.deaccelerators.length>0){let e=_.append(`g`).attr(`class`,`wardley-deaccelerators`);d.deaccelerators.forEach(t=>{let n=x(t.x),r=S(t.y),i=`
12
+ M ${n+60} ${r-30/2}
13
+ L ${n+20} ${r-30/2}
14
+ L ${n+20} ${r-30/2-8}
15
+ L ${n} ${r}
16
+ L ${n+20} ${r+30/2+8}
17
+ L ${n+20} ${r+30/2}
18
+ L ${n+60} ${r+30/2}
19
+ Z
20
+ `;e.append(`path`).attr(`d`,i).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),e.append(`text`).attr(`x`,n+60/2).attr(`y`,r+30/2+15).attr(`text-anchor`,`middle`).attr(`font-size`,10).attr(`fill`,s.axisTextColor).attr(`font-weight`,`bold`).text(t.name)})}},`draw`)},styles:e(()=>``,`styles`)};export{U as diagram};
@@ -0,0 +1,7 @@
1
+ import{n as e,r as t}from"./src-C9jsS3p4.js";import{B as n,C as r,E as i,L as a,V as o,W as s,_ as c,a as l,c as u,d,v as f,y as p}from"./chunk-ICPOFSXX-CrnuSfeJ.js";import{t as m}from"./linear-DwuDS4qT.js";import{t as h}from"./ordinal-CeOFUmRv.js";import{t as g}from"./init-CBj3ecIW.js";import{r as _}from"./chunk-5PVQY5BW-Cxi5d3lT.js";import{t as v}from"./line-_p5Px7MV.js";import{t as y}from"./chunk-426QAEUC-BoBKbVmN.js";import{t as b}from"./chunk-U2HBQHQK-6BAKH95D.js";function x(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}function S(){var e=h().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=x(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return S(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},g.apply(d(),arguments)}var C=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,10,12,14,16,18,19,21,23],r=[2,6],i=[1,3],a=[1,5],o=[1,6],s=[1,7],c=[1,5,10,12,14,16,18,19,21,23,34,35,36],l=[1,25],u=[1,26],d=[1,28],f=[1,29],p=[1,30],m=[1,31],h=[1,32],g=[1,33],_=[1,34],v=[1,35],y=[1,36],b=[1,37],x=[1,43],S=[1,42],C=[1,47],w=[1,50],T=[1,10,12,14,16,18,19,21,23,34,35,36],E=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],D=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],O=[1,64],k={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:`error`,5:`XYCHART`,8:`CHART_ORIENTATION`,10:`title`,12:`X_AXIS`,14:`Y_AXIS`,16:`LINE`,18:`BAR`,19:`acc_title`,20:`acc_title_value`,21:`acc_descr`,22:`acc_descr_value`,23:`acc_descr_multiline_value`,24:`SQUARE_BRACES_START`,26:`SQUARE_BRACES_END`,27:`NUMBER_WITH_DECIMAL`,28:`COMMA`,31:`ARROW_DELIMITER`,34:`NEWLINE`,35:`SEMI`,36:`EOF`,38:`STR`,39:`MD_STR`,41:`AMP`,42:`NUM`,43:`ALPHA`,44:`PLUS`,45:`EQUALS`,46:`MULT`,47:`DOT`,48:`BRKT`,49:`MINUS`,50:`UNDERSCORE`},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 5:r.setOrientation(a[s]);break;case 9:r.setDiagramTitle(a[s].text.trim());break;case 12:r.setLineData({text:``,type:`text`},a[s]);break;case 13:r.setLineData(a[s-1],a[s]);break;case 14:r.setBarData({text:``,type:`text`},a[s]);break;case 15:r.setBarData(a[s-1],a[s]);break;case 16:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 19:this.$=a[s-1];break;case 20:this.$=[Number(a[s-2]),...a[s]];break;case 21:this.$=[Number(a[s])];break;case 22:r.setXAxisTitle(a[s]);break;case 23:r.setXAxisTitle(a[s-1]);break;case 24:r.setXAxisTitle({type:`text`,text:``});break;case 25:r.setXAxisBand(a[s]);break;case 26:r.setXAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 27:this.$=a[s-1];break;case 28:this.$=[a[s-2],...a[s]];break;case 29:this.$=[a[s]];break;case 30:r.setYAxisTitle(a[s]);break;case 31:r.setYAxisTitle(a[s-1]);break;case 32:r.setYAxisTitle({type:`text`,text:``});break;case 33:r.setYAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 37:this.$={text:a[s],type:`text`};break;case 38:this.$={text:a[s],type:`text`};break;case 39:this.$={text:a[s],type:`markdown`};break;case 40:this.$=a[s];break;case 41:this.$=a[s-1]+``+a[s];break}},`anonymous`),table:[t(n,r,{3:1,4:2,7:4,5:i,34:a,35:o,36:s}),{1:[3]},t(n,r,{4:2,7:4,3:8,5:i,34:a,35:o,36:s}),t(n,r,{4:2,7:4,6:9,3:10,5:i,8:[1,11],34:a,35:o,36:s}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),{1:[2,1]},t(n,r,{4:2,7:4,3:21,5:i,34:a,35:o,36:s}),{1:[2,3]},t(c,[2,5]),t(n,[2,7],{4:22,34:a,35:o,36:s}),{11:23,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},{11:39,13:38,24:x,27:S,29:40,30:41,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},{11:45,15:44,27:C,33:46,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},{11:49,17:48,24:w,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},{11:52,17:51,24:w,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},{20:[1,53]},{22:[1,54]},t(T,[2,18]),{1:[2,2]},t(T,[2,8]),t(T,[2,9]),t(E,[2,37],{40:55,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b}),t(E,[2,38]),t(E,[2,39]),t(D,[2,40]),t(D,[2,42]),t(D,[2,43]),t(D,[2,44]),t(D,[2,45]),t(D,[2,46]),t(D,[2,47]),t(D,[2,48]),t(D,[2,49]),t(D,[2,50]),t(D,[2,51]),t(T,[2,10]),t(T,[2,22],{30:41,29:56,24:x,27:S}),t(T,[2,24]),t(T,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},t(T,[2,11]),t(T,[2,30],{33:60,27:C}),t(T,[2,32]),{31:[1,61]},t(T,[2,12]),{17:62,24:w},{25:63,27:O},t(T,[2,14]),{17:65,24:w},t(T,[2,16]),t(T,[2,17]),t(D,[2,41]),t(T,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(T,[2,31]),{27:[1,69]},t(T,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(T,[2,15]),t(T,[2,26]),t(T,[2,27]),{11:59,32:72,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},t(T,[2,33]),t(T,[2,19]),{25:73,27:O},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};k.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState(`acc_title`),19;case 8:return this.popState(),`acc_title_value`;case 9:return this.pushState(`acc_descr`),21;case 10:return this.popState(),`acc_descr_value`;case 11:this.pushState(`acc_descr_multiline`);break;case 12:this.popState();break;case 13:return`acc_descr_multiline_value`;case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState(`axis_data`),`X_AXIS`;case 18:return this.pushState(`axis_data`),`Y_AXIS`;case 19:return this.pushState(`axis_band_data`),24;case 20:return 31;case 21:return this.pushState(`data`),16;case 22:return this.pushState(`data`),18;case 23:return this.pushState(`data_inner`),24;case 24:return 27;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState(`string`);break;case 28:this.popState();break;case 29:return`STR`;case 30:return 24;case 31:return 26;case 32:return 43;case 33:return`COLON`;case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 44:break;case 45:return 35;case 46:return 36}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}}})();function A(){this.yy={}}return e(A,`Parser`),A.prototype=k,k.Parser=A,new A})();C.parser=C;var w=C;function T(e){return e.type===`bar`}e(T,`isBarPlot`);function E(e){return e.type===`band`}e(E,`isBandAxisData`);function D(e){return e.type===`linear`}e(D,`isLinearAxisData`);var O=class{constructor(e){this.parentGroup=e}static{e(this,`TextDimensionCalculatorWithFont`)}getMaxDimension(e,t){if(!this.parentGroup)return{width:e.reduce((e,t)=>Math.max(t.length,e),0)*t,height:t};let n={width:0,height:0},r=this.parentGroup.append(`g`).attr(`visibility`,`hidden`).attr(`font-size`,t);for(let i of e){let e=b(r,1,i),a=e?e.width:i.length*t,o=e?e.height:t;n.width=Math.max(n.width,a),n.height=Math.max(n.height,o)}return r.remove(),n}},k=.7,A=.2,j=class{constructor(e,t,n,r){this.axisConfig=e,this.title=t,this.textDimensionCalculator=n,this.axisThemeConfig=r,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition=`left`,this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition=`left`}static{e(this,`BaseAxis`)}setRange(e){this.range=e,this.axisPosition===`left`||this.axisPosition===`right`?this.boundingRect.height=e[1]-e[0]:this.boundingRect.width=e[1]-e[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(e){this.axisPosition=e,this.setRange(this.range)}getTickDistance(){let e=this.getRange();return Math.abs(e[0]-e[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(e=>e.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){k*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(k*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(e){let t=e.height;if(this.axisConfig.showAxisLine&&t>this.axisConfig.axisLineWidth&&(t-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let n=this.getLabelDimension(),r=A*e.width;this.outerPadding=Math.min(n.width/2,r);let i=n.height+this.axisConfig.labelPadding*2;this.labelTextHeight=n.height,i<=t&&(t-=i,this.showLabel=!0)}if(this.axisConfig.showTick&&t>=this.axisConfig.tickLength&&(this.showTick=!0,t-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let e=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=e.height+this.axisConfig.titlePadding*2;this.titleTextHeight=e.height,n<=t&&(t-=n,this.showTitle=!0)}this.boundingRect.width=e.width,this.boundingRect.height=e.height-t}calculateSpaceIfDrawnVertical(e){let t=e.width;if(this.axisConfig.showAxisLine&&t>this.axisConfig.axisLineWidth&&(t-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let n=this.getLabelDimension(),r=A*e.height;this.outerPadding=Math.min(n.height/2,r);let i=n.width+this.axisConfig.labelPadding*2;i<=t&&(t-=i,this.showLabel=!0)}if(this.axisConfig.showTick&&t>=this.axisConfig.tickLength&&(this.showTick=!0,t-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let e=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=e.height+this.axisConfig.titlePadding*2;this.titleTextHeight=e.height,n<=t&&(t-=n,this.showTitle=!0)}this.boundingRect.width=e.width-t,this.boundingRect.height=e.height}calculateSpace(e){return this.axisPosition===`left`||this.axisPosition===`right`?this.calculateSpaceIfDrawnVertical(e):this.calculateSpaceIfDrawnHorizontally(e),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}getDrawableElementsForLeftAxis(){let e=[];if(this.showAxisLine){let t=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;e.push({type:`path`,groupTexts:[`left-axis`,`axisl-line`],data:[{path:`M ${t},${this.boundingRect.y} L ${t},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:`text`,groupTexts:[`left-axis`,`label`],data:this.getTickValues().map(e=>({text:e.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(e),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:`middle`,horizontalPos:`right`}))}),this.showTick){let t=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:`path`,groupTexts:[`left-axis`,`ticks`],data:this.getTickValues().map(e=>({path:`M ${t},${this.getScaleValue(e)} L ${t-this.axisConfig.tickLength},${this.getScaleValue(e)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:`text`,groupTexts:[`left-axis`,`title`],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:`top`,horizontalPos:`center`}]}),e}getDrawableElementsForBottomAxis(){let e=[];if(this.showAxisLine){let t=this.boundingRect.y+this.axisConfig.axisLineWidth/2;e.push({type:`path`,groupTexts:[`bottom-axis`,`axis-line`],data:[{path:`M ${this.boundingRect.x},${t} L ${this.boundingRect.x+this.boundingRect.width},${t}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:`text`,groupTexts:[`bottom-axis`,`label`],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:`top`,horizontalPos:`center`}))}),this.showTick){let t=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:`path`,groupTexts:[`bottom-axis`,`ticks`],data:this.getTickValues().map(e=>({path:`M ${this.getScaleValue(e)},${t} L ${this.getScaleValue(e)},${t+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:`text`,groupTexts:[`bottom-axis`,`title`],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:`top`,horizontalPos:`center`}]}),e}getDrawableElementsForTopAxis(){let e=[];if(this.showAxisLine){let t=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;e.push({type:`path`,groupTexts:[`top-axis`,`axis-line`],data:[{path:`M ${this.boundingRect.x},${t} L ${this.boundingRect.x+this.boundingRect.width},${t}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:`text`,groupTexts:[`top-axis`,`label`],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:`top`,horizontalPos:`center`}))}),this.showTick){let t=this.boundingRect.y;e.push({type:`path`,groupTexts:[`top-axis`,`ticks`],data:this.getTickValues().map(e=>({path:`M ${this.getScaleValue(e)},${t+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(e)},${t+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:`text`,groupTexts:[`top-axis`,`title`],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:`top`,horizontalPos:`center`}]}),e}getDrawableElements(){if(this.axisPosition===`left`)return this.getDrawableElementsForLeftAxis();if(this.axisPosition===`right`)throw Error(`Drawing of right axis is not implemented`);return this.axisPosition===`bottom`?this.getDrawableElementsForBottomAxis():this.axisPosition===`top`?this.getDrawableElementsForTopAxis():[]}},M=class extends j{static{e(this,`BandAxis`)}constructor(e,t,n,r,i){super(e,r,i,t),this.categories=n,this.scale=S().domain(this.categories).range(this.getRange())}setRange(e){super.setRange(e)}recalculateScale(){this.scale=S().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),t.trace(`BandAxis axis final categories, range: `,this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(e){return this.scale(e)??this.getRange()[0]}},ee=class extends j{static{e(this,`LinearAxis`)}constructor(e,t,n,r,i){super(e,r,i,t),this.domain=n,this.scale=m().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let e=[...this.domain];this.axisPosition===`left`&&e.reverse(),this.scale=m().domain(e).range(this.getRange())}getScaleValue(e){return this.scale(e)}};function N(e,t,n,r){let i=new O(r);return E(e)?new M(t,n,e.categories,e.title,i):new ee(t,n,[e.min,e.max],e.title,i)}e(N,`getAxis`);var te=class{constructor(e,t,n,r){this.textDimensionCalculator=e,this.chartConfig=t,this.chartData=n,this.chartThemeConfig=r,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{e(this,`ChartTitle`)}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){let t=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),n=Math.max(t.width,e.width),r=t.height+2*this.chartConfig.titlePadding;return t.width<=n&&t.height<=r&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=n,this.boundingRect.height=r,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){let e=[];return this.showChartTitle&&e.push({groupTexts:[`chart-title`],type:`text`,data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:`middle`,horizontalPos:`center`,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),e}};function ne(e,t,n,r){return new te(new O(r),e,t,n)}e(ne,`getChartTitleComponent`);var re=class{constructor(e,t,n,r,i){this.plotData=e,this.xAxis=t,this.yAxis=n,this.orientation=r,this.plotIndex=i}static{e(this,`LinePlot`)}getDrawableElement(){let e=this.plotData.data.map(e=>[this.xAxis.getScaleValue(e[0]),this.yAxis.getScaleValue(e[1])]),t;return t=this.orientation===`horizontal`?v().y(e=>e[0]).x(e=>e[1])(e):v().x(e=>e[0]).y(e=>e[1])(e),t?[{groupTexts:[`plot`,`line-plot-${this.plotIndex}`],type:`path`,data:[{path:t,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},ie=class{constructor(e,t,n,r,i,a){this.barData=e,this.boundingRect=t,this.xAxis=n,this.yAxis=r,this.orientation=i,this.plotIndex=a}static{e(this,`BarPlot`)}getDrawableElement(){let e=this.barData.data.map(e=>[this.xAxis.getScaleValue(e[0]),this.yAxis.getScaleValue(e[1])]),t=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*.95,n=t/2;return this.orientation===`horizontal`?[{groupTexts:[`plot`,`bar-plot-${this.plotIndex}`],type:`rect`,data:e.map(e=>({x:this.boundingRect.x,y:e[0]-n,height:t,width:e[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:[`plot`,`bar-plot-${this.plotIndex}`],type:`rect`,data:e.map(e=>({x:e[0]-n,y:e[1],width:t,height:this.boundingRect.y+this.boundingRect.height-e[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},ae=class{constructor(e,t,n){this.chartConfig=e,this.chartData=t,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0}}static{e(this,`BasePlot`)}setAxes(e,t){this.xAxis=e,this.yAxis=t}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){return this.boundingRect.width=e.width,this.boundingRect.height=e.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error(`Axes must be passed to render Plots`);let e=[];for(let[t,n]of this.chartData.plots.entries())switch(n.type){case`line`:{let r=new re(n,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,t);e.push(...r.getDrawableElement())}break;case`bar`:{let r=new ie(n,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,t);e.push(...r.getDrawableElement())}break}return e}};function P(e,t,n){return new ae(e,t,n)}e(P,`getPlotComponent`);var oe=class{constructor(e,t,n,r){this.chartConfig=e,this.chartData=t,this.componentStore={title:ne(e,t,n,r),plot:P(e,t,n),xAxis:N(t.xAxis,e.xAxis,{titleColor:n.xAxisTitleColor,labelColor:n.xAxisLabelColor,tickColor:n.xAxisTickColor,axisLineColor:n.xAxisLineColor},r),yAxis:N(t.yAxis,e.yAxis,{titleColor:n.yAxisTitleColor,labelColor:n.yAxisLabelColor,tickColor:n.yAxisTickColor,axisLineColor:n.yAxisLineColor},r)}}static{e(this,`Orchestrator`)}calculateVerticalSpace(){let e=this.chartConfig.width,t=this.chartConfig.height,n=0,r=0,i=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),a=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),o=this.componentStore.plot.calculateSpace({width:i,height:a});e-=o.width,t-=o.height,o=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:t}),r=o.height,t-=o.height,this.componentStore.xAxis.setAxisPosition(`bottom`),o=this.componentStore.xAxis.calculateSpace({width:e,height:t}),t-=o.height,this.componentStore.yAxis.setAxisPosition(`left`),o=this.componentStore.yAxis.calculateSpace({width:e,height:t}),n=o.width,e-=o.width,e>0&&(i+=e,e=0),t>0&&(a+=t,t=0),this.componentStore.plot.calculateSpace({width:i,height:a}),this.componentStore.plot.setBoundingBoxXY({x:n,y:r}),this.componentStore.xAxis.setRange([n,n+i]),this.componentStore.xAxis.setBoundingBoxXY({x:n,y:r+a}),this.componentStore.yAxis.setRange([r,r+a]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:r}),this.chartData.plots.some(e=>T(e))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let e=this.chartConfig.width,t=this.chartConfig.height,n=0,r=0,i=0,a=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),o=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),s=this.componentStore.plot.calculateSpace({width:a,height:o});e-=s.width,t-=s.height,s=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:t}),n=s.height,t-=s.height,this.componentStore.xAxis.setAxisPosition(`left`),s=this.componentStore.xAxis.calculateSpace({width:e,height:t}),e-=s.width,r=s.width,this.componentStore.yAxis.setAxisPosition(`top`),s=this.componentStore.yAxis.calculateSpace({width:e,height:t}),t-=s.height,i=n+s.height,e>0&&(a+=e,e=0),t>0&&(o+=t,t=0),this.componentStore.plot.calculateSpace({width:a,height:o}),this.componentStore.plot.setBoundingBoxXY({x:r,y:i}),this.componentStore.yAxis.setRange([r,r+a]),this.componentStore.yAxis.setBoundingBoxXY({x:r,y:n}),this.componentStore.xAxis.setRange([i,i+o]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:i}),this.chartData.plots.some(e=>T(e))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation===`horizontal`?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let e=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(let t of Object.values(this.componentStore))e.push(...t.getDrawableElements());return e}},se=class{static{e(this,`XYChartBuilder`)}static build(e,t,n,r){return new oe(e,t,n,r).getDrawableElement()}},F=0,I,L=W(),R=U(),z=G(),B=R.plotColorPalette.split(`,`).map(e=>e.trim()),V=!1,H=!1;function U(){let e=i(),t=p();return _(e.xyChart,t.themeVariables.xyChart)}e(U,`getChartDefaultThemeConfig`);function W(){let e=p();return _(d.xyChart,e.xyChart)}e(W,`getChartDefaultConfig`);function G(){return{yAxis:{type:`linear`,title:``,min:1/0,max:-1/0},xAxis:{type:`band`,title:``,categories:[]},title:``,plots:[]}}e(G,`getChartDefaultData`);function K(e){let t=p();return a(e.trim(),t)}e(K,`textSanitizer`);function q(e){I=e}e(q,`setTmpSVGG`);function J(e){e===`horizontal`?L.chartOrientation=`horizontal`:L.chartOrientation=`vertical`}e(J,`setOrientation`);function Y(e){z.xAxis.title=K(e.text)}e(Y,`setXAxisTitle`);function X(e,t){z.xAxis={type:`linear`,title:z.xAxis.title,min:e,max:t},V=!0}e(X,`setXAxisRangeData`);function ce(e){z.xAxis={type:`band`,title:z.xAxis.title,categories:e.map(e=>K(e.text))},V=!0}e(ce,`setXAxisBand`);function le(e){z.yAxis.title=K(e.text)}e(le,`setYAxisTitle`);function ue(e,t){z.yAxis={type:`linear`,title:z.yAxis.title,min:e,max:t},H=!0}e(ue,`setYAxisRangeData`);function de(e){let t=Math.min(...e),n=Math.max(...e),r=D(z.yAxis)?z.yAxis.min:1/0,i=D(z.yAxis)?z.yAxis.max:-1/0;z.yAxis={type:`linear`,title:z.yAxis.title,min:Math.min(r,t),max:Math.max(i,n)}}e(de,`setYAxisRangeFromPlotData`);function Z(e){let t=[];if(e.length===0)return t;if(!V){let t=D(z.xAxis)?z.xAxis.min:1/0,n=D(z.xAxis)?z.xAxis.max:-1/0;X(Math.min(t,1),Math.max(n,e.length))}if(H||de(e),E(z.xAxis)&&(t=z.xAxis.categories.map((t,n)=>[t,e[n]])),D(z.xAxis)){let n=z.xAxis.min,r=z.xAxis.max,i=(r-n)/(e.length-1),a=[];for(let e=n;e<=r;e+=i)a.push(`${e}`);t=a.map((t,n)=>[t,e[n]])}return t}e(Z,`transformDataWithoutCategory`);function Q(e){return B[e===0?0:e%B.length]}e(Q,`getPlotColorFromPalette`);function fe(e,t){let n=Z(t);z.plots.push({type:`line`,strokeFill:Q(F),strokeWidth:2,data:n}),F++}e(fe,`setLineData`);function pe(e,t){let n=Z(t);z.plots.push({type:`bar`,fill:Q(F),data:n}),F++}e(pe,`setBarData`);function me(){if(z.plots.length===0)throw Error(`No Plot to render, please provide a plot with some data`);return z.title=r(),se.build(L,z,R,I)}e(me,`getDrawableElem`);function he(){return R}e(he,`getChartThemeConfig`);function ge(){return L}e(ge,`getChartConfig`);function $(){return z}e($,`getXYChartData`);var _e={parser:w,db:{getDrawableElem:me,clear:e(function(){l(),F=0,L=W(),z=G(),R=U(),B=R.plotColorPalette.split(`,`).map(e=>e.trim()),V=!1,H=!1},`clear`),setAccTitle:o,getAccTitle:f,setDiagramTitle:s,getDiagramTitle:r,getAccDescription:c,setAccDescription:n,setOrientation:J,setXAxisTitle:Y,setXAxisRangeData:X,setXAxisBand:ce,setYAxisTitle:le,setYAxisRangeData:ue,setLineData:fe,setBarData:pe,setTmpSVGG:q,getChartThemeConfig:he,getChartConfig:ge,getXYChartData:$},renderer:{draw:e((n,r,i,a)=>{let o=a.db,s=o.getChartThemeConfig(),c=o.getChartConfig(),l=o.getXYChartData().plots[0].data.map(e=>e[1]);function d(e){return e===`top`?`text-before-edge`:`middle`}e(d,`getDominantBaseLine`);function f(e){return e===`left`?`start`:e===`right`?`end`:`middle`}e(f,`getTextAnchor`);function p(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}e(p,`getTextTransformation`),t.debug(`Rendering xychart chart
7
+ `+n);let m=y(r),h=m.append(`g`).attr(`class`,`main`),g=h.append(`rect`).attr(`width`,c.width).attr(`height`,c.height).attr(`class`,`background`);u(m,c.height,c.width,!0),m.attr(`viewBox`,`0 0 ${c.width} ${c.height}`),g.attr(`fill`,s.backgroundColor),o.setTmpSVGG(m.append(`g`).attr(`class`,`mermaid-tmp-group`));let _=o.getDrawableElem(),v={};function b(e){let t=h,n=``;for(let[r]of e.entries()){let i=h;r>0&&v[n]&&(i=v[n]),n+=e[r],t=v[n],t||=v[n]=i.append(`g`).attr(`class`,e[r])}return t}e(b,`getGroup`);for(let t of _){if(t.data.length===0)continue;let n=b(t.groupTexts);switch(t.type){case`rect`:if(n.selectAll(`rect`).data(t.data).enter().append(`rect`).attr(`x`,e=>e.x).attr(`y`,e=>e.y).attr(`width`,e=>e.width).attr(`height`,e=>e.height).attr(`fill`,e=>e.fill).attr(`stroke`,e=>e.strokeFill).attr(`stroke-width`,e=>e.strokeWidth),c.showDataLabel){let r=c.showDataLabelOutsideBar;if(c.chartOrientation===`horizontal`){let i=function(e,t){let{data:n,label:r}=e;return t*r.length*a<=n.width-o};e(i,`fitsHorizontally`);let a=.7,o=10,c=t.data.map((e,t)=>({data:e,label:l[t].toString()})).filter(e=>e.data.width>0&&e.data.height>0),u=c.map(e=>{let{data:t}=e,n=t.height*.7;for(;!i(e,n)&&n>0;)--n;return n}),d=Math.floor(Math.min(...u)),f=e(e=>r?e.data.x+e.data.width+10:e.data.x+e.data.width-10,`determineLabelXPosition`);n.selectAll(`text`).data(c).enter().append(`text`).attr(`x`,f).attr(`y`,e=>e.data.y+e.data.height/2).attr(`text-anchor`,r?`start`:`end`).attr(`dominant-baseline`,`middle`).attr(`fill`,s.dataLabelColor).attr(`font-size`,`${d}px`).text(e=>e.label)}else{let i=function(e,t,n){let{data:r,label:i}=e,a=t*i.length*.7,o=r.x+r.width/2,s=o-a/2,c=o+a/2,l=s>=r.x&&c<=r.x+r.width,u=r.y+n+t<=r.y+r.height;return l&&u};e(i,`fitsInBar`);let a=t.data.map((e,t)=>({data:e,label:l[t].toString()})).filter(e=>e.data.width>0&&e.data.height>0),o=a.map(e=>{let{data:t,label:n}=e,r=t.width/(n.length*.7);for(;!i(e,r,10)&&r>0;)--r;return r}),c=Math.floor(Math.min(...o)),u=e(e=>r?e.data.y-10:e.data.y+10,`determineLabelYPosition`);n.selectAll(`text`).data(a).enter().append(`text`).attr(`x`,e=>e.data.x+e.data.width/2).attr(`y`,u).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,r?`auto`:`hanging`).attr(`fill`,s.dataLabelColor).attr(`font-size`,`${c}px`).text(e=>e.label)}}break;case`text`:n.selectAll(`text`).data(t.data).enter().append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,e=>e.fill).attr(`font-size`,e=>e.fontSize).attr(`dominant-baseline`,e=>d(e.verticalPos)).attr(`text-anchor`,e=>f(e.horizontalPos)).attr(`transform`,e=>p(e)).text(e=>e.text);break;case`path`:n.selectAll(`path`).data(t.data).enter().append(`path`).attr(`d`,e=>e.path).attr(`fill`,e=>e.fill?e.fill:`none`).attr(`stroke`,e=>e.strokeFill).attr(`stroke-width`,e=>e.strokeWidth);break}}},`draw`)}};export{_e as diagram};
@@ -20,24 +20,49 @@
20
20
  nothing for the formatter to reindent.
21
21
  -->
22
22
  <script>(() => { let mode = 'wysiwyg'; try { const raw = localStorage.getItem('ok-editor-mode-v1'); if (raw === 'wysiwyg' || raw === 'source') mode = raw; } catch {} window.__OK_EDITOR_MODE__ = mode; })();</script>
23
- <script type="module" crossorigin src="./assets/index-CwFTGDhe.js"></script>
24
- <link rel="modulepreload" crossorigin href="./assets/chunk-DECur_0Z.js">
25
- <link rel="modulepreload" crossorigin href="./assets/propagation-api-Bugyj7xy.js">
26
- <link rel="modulepreload" crossorigin href="./assets/w3c-keyname-CSlwavrd.js">
27
- <link rel="modulepreload" crossorigin href="./assets/dist-CgLbXgrr.js">
28
- <link rel="modulepreload" crossorigin href="./assets/dist-D2wwoXzm.js">
29
- <link rel="modulepreload" crossorigin href="./assets/compiler-runtime-Y11fyRVL.js">
30
- <link rel="modulepreload" crossorigin href="./assets/PageListContext-B5SWnlyE.js">
31
- <link rel="modulepreload" crossorigin href="./assets/button-BPXuMr5W.js">
32
- <link rel="modulepreload" crossorigin href="./assets/dialog-CtSN0d2b.js">
33
- <link rel="modulepreload" crossorigin href="./assets/DocumentContext-C1msvcHp.js">
34
- <link rel="modulepreload" crossorigin href="./assets/dist-GlH2KPqY.js">
35
- <link rel="modulepreload" crossorigin href="./assets/panel-BCRdtBla.js">
36
- <link rel="modulepreload" crossorigin href="./assets/clipboard-DAcKCHl1.js">
37
- <link rel="modulepreload" crossorigin href="./assets/tooltip-D0MnQ7ZX.js">
38
- <link rel="modulepreload" crossorigin href="./assets/toggle-group-LDOO6zaV.js">
39
- <link rel="modulepreload" crossorigin href="./assets/agent-presence-BXsx4eTl.js">
40
- <link rel="stylesheet" crossorigin href="./assets/index-DjR45Lon.css">
23
+ <!--
24
+ Theme FOUC prevention. Reads the persisted theme synchronously before
25
+ React mounts so the first painted frame is in the user's chosen theme
26
+ (avoids the native-pref → user-pref flip when the OS preference
27
+ disagrees with the user's choice). Paired consumer: next-themes
28
+ <ThemeProvider storageKey='ok-theme-v1'> in `src/main.tsx` — keep keys
29
+ in sync. next-themes stores the value as a plain string, not JSON.
30
+
31
+ The inline <style> below paints the html background to match the
32
+ body's resolved background (body uses `bg-sidebar` per globals.css —
33
+ `oklch(0.985 0 0) ≈ #fafafa` light, `oklch(0.205 0 0) ≈ #171717`
34
+ dark). The `html.dark` literal must match the BrowserWindow
35
+ `backgroundColor` constructor in packages/desktop/src/main/index.ts —
36
+ drift produces a sub-frame composite mismatch when the OS-level
37
+ window first shows.
38
+
39
+ Single-line script body — same biome HTML-formatter constraint as
40
+ the editor-mode FOUC above.
41
+ -->
42
+ <script>(() => { let t = 'system'; try { const r = localStorage.getItem('ok-theme-v1'); if (r === 'light' || r === 'dark' || r === 'system') t = r; } catch {} let dark = t === 'dark'; if (t === 'system') { try { dark = window.matchMedia('(prefers-color-scheme: dark)').matches; } catch {} } if (dark) document.documentElement.classList.add('dark'); })();</script>
43
+ <style>html { background-color: #fafafa } html.dark { background-color: #171717 }</style>
44
+ <script type="module" crossorigin src="./assets/index-B1y9QLHF.js"></script>
45
+ <link rel="modulepreload" crossorigin href="./assets/chunk-CFjPhJqf.js">
46
+ <link rel="modulepreload" crossorigin href="./assets/preload-helper-2ej06EnG.js">
47
+ <link rel="modulepreload" crossorigin href="./assets/w3c-keyname-Dfj2imOv.js">
48
+ <link rel="modulepreload" crossorigin href="./assets/dist-nPpvoMNC.js">
49
+ <link rel="modulepreload" crossorigin href="./assets/dist-S8LJmtzL.js">
50
+ <link rel="modulepreload" crossorigin href="./assets/trace-api-DPMyR1_m.js">
51
+ <link rel="modulepreload" crossorigin href="./assets/compiler-runtime-CVnuRdak.js">
52
+ <link rel="modulepreload" crossorigin href="./assets/button-BsFpqlpT.js">
53
+ <link rel="modulepreload" crossorigin href="./assets/doc-hash-Q6dTjwu5.js">
54
+ <link rel="modulepreload" crossorigin href="./assets/dist-D08h1pJc.js">
55
+ <link rel="modulepreload" crossorigin href="./assets/propagation-api-qAYD7s-v.js">
56
+ <link rel="modulepreload" crossorigin href="./assets/dialog-Cv1qneWl.js">
57
+ <link rel="modulepreload" crossorigin href="./assets/DocumentContext-bvfr7pL2.js">
58
+ <link rel="modulepreload" crossorigin href="./assets/panel-BgMqDESF.js">
59
+ <link rel="modulepreload" crossorigin href="./assets/OutlinePanel-dumodx-h.js">
60
+ <link rel="modulepreload" crossorigin href="./assets/config-validation-events-BvuBj41U.js">
61
+ <link rel="modulepreload" crossorigin href="./assets/tooltip-CBGDOTMI.js">
62
+ <link rel="modulepreload" crossorigin href="./assets/agent-presence-Ds2n3U5P.js">
63
+ <link rel="modulepreload" crossorigin href="./assets/target-navigation-intent-BfGOumP6.js">
64
+ <link rel="modulepreload" crossorigin href="./assets/mcp-consent-store-BBTXqzE6.js">
65
+ <link rel="stylesheet" crossorigin href="./assets/index-DoXig4bf.css">
41
66
  </head>
42
67
 
43
68
  <body class="antialiased">
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-A4HU7SVR-DKLaJeys.mjs";export{e as pwdCommand};
@@ -1,4 +1,4 @@
1
- import"./chunk-R6VWJ2ZL-B0CcMPyK.mjs";import"./chunk-CWQS3NFK-DFdwmFxJ.mjs";import"./chunk-DXB73IDG-C774okS0.mjs";import{t as e}from"./chunk-5QMZ5MUS-DWTkM0vM.mjs";import{n as t,t as n}from"./chunk-A5O5YHGN-C7BVq0eF.mjs";import{r}from"./chunk-OJDRYQWQ-BV5MVRVg.mjs";import{n as i}from"./chunk-24IMIIXA-Bz7rlZT3.mjs";import{n as a,t as o}from"./chunk-3THT3N7L-klp8GP84.mjs";import{t as s}from"./chunk-44UOCSGV-BUBpWxXm.mjs";import{r as c,t as l}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{n as u,t as d}from"./chunk-I57KEIP3-B1DoH8rp.mjs";import{fileURLToPath as f}from"node:url";import{Worker as p}from"node:worker_threads";import{randomBytes as m}from"node:crypto";var h=1e4,g=6e4,_={name:`python3`,summary:`Execute Python code via CPython Emscripten`,usage:`python3 [OPTIONS] [-c CODE | -m MODULE | FILE] [ARGS...]`,description:[`Execute Python code using CPython compiled to WebAssembly via Emscripten.`,``,`This command runs Python in an isolated environment with access to`,`the virtual filesystem. Standard library modules are available.`],options:[`-c CODE Execute CODE as Python script`,`-m MODULE Run library module as a script`,`--version Show Python version`,`--help Show this help`],examples:[`python3 -c "print(1 + 2)"`,`python3 -c "import sys; print(sys.version)"`,`python3 script.py`,`python3 script.py arg1 arg2`,`echo 'print("hello")' | python3`],notes:[`CPython runs in WebAssembly, so execution may be slower than native Python.`,`Standard library modules are available (no pip install).`,`Maximum execution time is 30 seconds by default.`]};function v(e){let t={code:null,module:null,scriptFile:null,showVersion:!1,scriptArgs:[]};if(e.length===0)return t;let n=e.findIndex(e=>!e.startsWith(`-`)||e===`-`||e===`--`);for(let r=0;r<(n===-1?e.length:n);r++){let n=e[r];if(n===`-c`)return r+1>=e.length?{stdout:``,stderr:`python3: option requires an argument -- 'c'
1
+ import"./chunk-R6VWJ2ZL-FwG_Za20.mjs";import"./chunk-CWQS3NFK-Co4ALolT.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-5QMZ5MUS-CAp625aG.mjs";import{n as t,t as n}from"./chunk-A5O5YHGN-DvJz5Cpw.mjs";import{r}from"./chunk-OJDRYQWQ-ikvLWpfV.mjs";import{n as i}from"./chunk-24IMIIXA-B6yIPkk2.mjs";import{n as a,t as o}from"./chunk-3THT3N7L-DztAF386.mjs";import{t as s}from"./chunk-44UOCSGV-CaFxJDHm.mjs";import{r as c,t as l}from"./chunk-74CEPOFO-BcZUJMO1.mjs";import{n as u,t as d}from"./chunk-I57KEIP3-DipCOPKf.mjs";import{fileURLToPath as f}from"node:url";import{Worker as p}from"node:worker_threads";import{randomBytes as m}from"node:crypto";var h=1e4,g=6e4,_={name:`python3`,summary:`Execute Python code via CPython Emscripten`,usage:`python3 [OPTIONS] [-c CODE | -m MODULE | FILE] [ARGS...]`,description:[`Execute Python code using CPython compiled to WebAssembly via Emscripten.`,``,`This command runs Python in an isolated environment with access to`,`the virtual filesystem. Standard library modules are available.`],options:[`-c CODE Execute CODE as Python script`,`-m MODULE Run library module as a script`,`--version Show Python version`,`--help Show this help`],examples:[`python3 -c "print(1 + 2)"`,`python3 -c "import sys; print(sys.version)"`,`python3 script.py`,`python3 script.py arg1 arg2`,`echo 'print("hello")' | python3`],notes:[`CPython runs in WebAssembly, so execution may be slower than native Python.`,`Standard library modules are available (no pip install).`,`Maximum execution time is 30 seconds by default.`]};function v(e){let t={code:null,module:null,scriptFile:null,showVersion:!1,scriptArgs:[]};if(e.length===0)return t;let n=e.findIndex(e=>!e.startsWith(`-`)||e===`-`||e===`--`);for(let r=0;r<(n===-1?e.length:n);r++){let n=e[r];if(n===`-c`)return r+1>=e.length?{stdout:``,stderr:`python3: option requires an argument -- 'c'
2
2
  `,exitCode:2}:(t.code=e[r+1],t.scriptArgs=e.slice(r+2),t);if(n===`-m`)return r+1>=e.length?{stdout:``,stderr:`python3: option requires an argument -- 'm'
3
3
  `,exitCode:2}:(t.module=e[r+1],t.scriptArgs=e.slice(r+2),t);if(n===`--version`||n===`-V`)return t.showVersion=!0,t;if(n.startsWith(`-`)&&n!==`-`)return{stdout:``,stderr:`python3: unrecognized option '${n}'
4
4
  `,exitCode:2}}if(n!==-1){let r=e[n];r===`--`?n+1<e.length&&(t.scriptFile=e[n+1],t.scriptArgs=e.slice(n+2)):(t.scriptFile=r,t.scriptArgs=e.slice(n+1))}return t}var y=new WeakMap;function b(e){let t=y.get(e);return t||(t={executionQueue:[],isExecuting:!1},y.set(e,t)),t}var x=f(new URL(`./worker.js`,import.meta.url));function S(){return m(16).toString(`hex`)}function C(e,t){if(!e||typeof e!=`object`)return{success:!1,error:`Malformed worker response`};let n=e;return typeof n.protocolToken!=`string`||n.protocolToken!==t?{success:!1,error:`Malformed worker response: invalid protocol token`}:n.type===`security-violation`?{success:!1,error:`Security violation: ${typeof n.violation?.type==`string`?n.violation.type:`unknown`}`}:typeof n.success==`boolean`?n.success?{success:!0}:{success:!1,error:typeof n.error==`string`&&n.error.length>0?n.error:`Worker execution failed`}:{success:!1,error:`Malformed worker response: missing success flag`}}function w(t){if(t.isExecuting||t.executionQueue.length===0)return;for(;t.executionQueue.length>0&&t.executionQueue[0].canceled;)t.executionQueue.shift();if(t.executionQueue.length===0)return;let n=t.executionQueue.shift();if(!n)return;t.isExecuting=!0;let r;try{r=e.runTrusted(()=>new p(x,{workerData:n.input}))}catch(e){let r=e instanceof Error?e.message:String(e);n.resolve({success:!1,error:o(r)}),t.isExecuting=!1,w(t);return}n.workerRef&&(n.workerRef.current=r);let a=i(n.requireDefenseContext,`python3`,`worker message callback`,e=>{n.resolve(C(e,n.input.protocolToken)),t.isExecuting=!1,r.terminate(),w(t)}),c=i(n.requireDefenseContext,`python3`,`worker error callback`,e=>{let r=o(s(e));n.resolve({success:!1,error:r}),t.isExecuting=!1,w(t)}),l=i(n.requireDefenseContext,`python3`,`worker exit callback`,()=>{t.isExecuting&&(n.resolve({success:!1,error:`Worker exited unexpectedly`}),t.isExecuting=!1,w(t))});r.on(`message`,e=>{try{a(e)}catch(e){let i=e instanceof Error?e.message:String(e);n.resolve({success:!1,error:o(i)}),t.isExecuting=!1,r.terminate(),w(t)}}),r.on(`error`,e=>{try{c(e)}catch(e){let r=e instanceof Error?e.message:String(e);n.resolve({success:!1,error:o(r)}),t.isExecuting=!1,w(t)}}),r.on(`exit`,()=>{try{l()}catch(e){let r=e instanceof Error?e.message:String(e);n.resolve({success:!1,error:o(r)}),t.isExecuting=!1,w(t)}})}async function T(e,a,c,l=[]){let f=u(),p=new d(f,a.fs,a.cwd,`python3`,a.fetch,a.limits?.maxOutputSize??0),m=a.limits?.maxPythonTimeoutMs??h,_=a.fetch?Math.max(m,g):m,v=b(a.fs),y={protocolToken:S(),sharedBuffer:f,pythonCode:e,cwd:a.cwd,env:r(a.env),args:l,scriptPath:c,timeoutMs:_},x={current:null},C=new Promise(e=>{let r={input:y,resolve:()=>{},workerRef:x,requireDefenseContext:a.requireDefenseContext},s=i(a.requireDefenseContext,`python3`,`worker timeout callback`,()=>{x.current?x.current.terminate():r.canceled=!0,e({success:!1,error:`Execution timeout: exceeded ${_}ms limit`})}),c=n(()=>{try{s()}catch(t){e({success:!1,error:o(t instanceof Error?t.message:String(t))})}},_);r.resolve=n=>{t(c),e(n)},v.executionQueue.push(r),w(v)}),[T,E]=await Promise.all([p.run(_).catch(e=>({stdout:``,stderr:`python3: bridge error: ${o(s(e))}
@@ -9,4 +9,4 @@ import"./chunk-R6VWJ2ZL-B0CcMPyK.mjs";import"./chunk-CWQS3NFK-DFdwmFxJ.mjs";impo
9
9
  `,exitCode:2};try{r=await t.fs.readFile(e),i=n.scriptFile}catch(e){let t=a(e.message);return{stdout:``,stderr:`python3: can't open file '${n.scriptFile}': ${t}
10
10
  `,exitCode:2}}}else if(t.stdin.trim())r=t.stdin,i=`<stdin>`;else return{stdout:``,stderr:`python3: no input provided (use -c CODE, -m MODULE, or provide a script file)
11
11
  `,exitCode:2};return T(r,t,i,n.scriptArgs)}},D={name:`python`,async execute(e,t){return E.execute(e,t)}};export{E as python3Command,D as pythonCommand};
12
- //# sourceMappingURL=python3-AUFTPCU6-MeZyx8_A.mjs.map
12
+ //# sourceMappingURL=python3-AUFTPCU6-BaJugIdp.mjs.map
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-HJWBQKYG-XrOcsn2f.mjs";export{e as readlinkCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-QCDB2VPH-BUMOhlW7.mjs";export{e as rev};
@@ -0,0 +1 @@
1
+ import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-7TSDKFEO-DUQhJkDy.mjs";import"./chunk-VLGZJRPG-DymOu90-.mjs";import{t as e}from"./chunk-NYQYO467-BgXuDHUQ.mjs";export{e as rgCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-MIZPJHVH-DWdPvcYR.mjs";export{e as rmCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-OCS6LSEM-D7VAOziZ.mjs";export{e as rmdirCommand};
@@ -1,2 +1,2 @@
1
1
  var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};export{t};
2
- //# sourceMappingURL=rolldown-runtime-wcPFST8Q-BB0WpHs3.mjs.map
2
+ //# sourceMappingURL=rolldown-runtime-twds-ZHy-Dxr-RWJs.mjs.map
@@ -0,0 +1,30 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "autoSync": {
6
+ "default": {
7
+ "enabled": null
8
+ },
9
+ "type": "object",
10
+ "properties": {
11
+ "enabled": {
12
+ "default": null,
13
+ "anyOf": [
14
+ {
15
+ "type": "boolean",
16
+ "scope": "project-local",
17
+ "agentSettable": false,
18
+ "defaultScope": "project-local"
19
+ },
20
+ {
21
+ "type": "null"
22
+ }
23
+ ]
24
+ }
25
+ },
26
+ "additionalProperties": {}
27
+ }
28
+ },
29
+ "additionalProperties": {}
30
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "content": {
6
+ "default": {
7
+ "dir": "."
8
+ },
9
+ "type": "object",
10
+ "properties": {
11
+ "dir": {
12
+ "default": ".",
13
+ "type": "string",
14
+ "scope": "project",
15
+ "agentSettable": false,
16
+ "defaultScope": "project"
17
+ }
18
+ },
19
+ "additionalProperties": {}
20
+ },
21
+ "preview": {
22
+ "default": {},
23
+ "type": "object",
24
+ "properties": {
25
+ "baseUrl": {
26
+ "type": "string",
27
+ "format": "uri",
28
+ "scope": "project",
29
+ "agentSettable": false
30
+ }
31
+ },
32
+ "additionalProperties": {}
33
+ },
34
+ "autoSync": {
35
+ "default": {
36
+ "enabled": null
37
+ },
38
+ "type": "object",
39
+ "properties": {
40
+ "enabled": {
41
+ "default": null,
42
+ "anyOf": [
43
+ {
44
+ "type": "boolean",
45
+ "scope": "project-local",
46
+ "agentSettable": false,
47
+ "defaultScope": "project-local"
48
+ },
49
+ {
50
+ "type": "null"
51
+ }
52
+ ]
53
+ }
54
+ },
55
+ "additionalProperties": {}
56
+ }
57
+ },
58
+ "additionalProperties": {}
59
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "appearance": {
6
+ "default": {},
7
+ "type": "object",
8
+ "properties": {
9
+ "theme": {
10
+ "type": "string",
11
+ "enum": [
12
+ "light",
13
+ "dark",
14
+ "system"
15
+ ],
16
+ "scope": "user",
17
+ "agentSettable": false,
18
+ "defaultScope": "user"
19
+ },
20
+ "editorModeDefault": {
21
+ "type": "string",
22
+ "enum": [
23
+ "wysiwyg",
24
+ "source"
25
+ ],
26
+ "scope": "user",
27
+ "agentSettable": false,
28
+ "defaultScope": "user"
29
+ }
30
+ },
31
+ "additionalProperties": {}
32
+ },
33
+ "autoSync": {
34
+ "default": {
35
+ "enabled": null
36
+ },
37
+ "type": "object",
38
+ "properties": {
39
+ "enabled": {
40
+ "default": null,
41
+ "anyOf": [
42
+ {
43
+ "type": "boolean",
44
+ "scope": "project-local",
45
+ "agentSettable": false,
46
+ "defaultScope": "project-local"
47
+ },
48
+ {
49
+ "type": "null"
50
+ }
51
+ ]
52
+ }
53
+ },
54
+ "additionalProperties": {}
55
+ }
56
+ },
57
+ "additionalProperties": {}
58
+ }
@@ -0,0 +1 @@
1
+ import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-5QMZ5MUS-CAp625aG.mjs";import"./chunk-24IMIIXA-B6yIPkk2.mjs";import{t as e}from"./chunk-OL3S66CO-CQnF8cPH.mjs";export{e as sedCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-A7A2DBEE-dTNL-45u.mjs";export{e as seqCommand};
@@ -0,0 +1 @@
1
+ import{h as e}from"./server-lock-D7DXNVql-BRVVzA6T.mjs";export{e as a};
@@ -0,0 +1,2 @@
1
+ import{t as e}from"./rolldown-runtime-twds-ZHy-Dxr-RWJs.mjs";import{dirname as t,resolve as n}from"node:path";import{closeSync as r,existsSync as i,mkdirSync as a,openSync as o,readFileSync as s,unlinkSync as c,writeFileSync as l,writeSync as u}from"node:fs";import{hostname as d}from"node:os";import{fileURLToPath as f}from"node:url";function p(e){try{return process.kill(e,0),!0}catch(e){return!!(e&&typeof e==`object`&&`code`in e&&e.code===`EPERM`)}}function m(e){return!(typeof e!=`number`||!Number.isInteger(e)||e<2||e>2147483647)}function h(){try{let e=n(t(f(import.meta.url)),`..`,`package.json`),r=JSON.parse(s(e,`utf-8`));if(typeof r.version==`string`&&r.version.length>0)return r.version}catch{}return`0.0.0-unknown`}const g=h(),_=1;var v=class extends Error{existing;lockPath;lockName;constructor(e,t,n){super(`Open Knowledge ${n} already running on port ${e.port} (pid ${e.pid}, started ${e.startedAt}). Stop it first or use a different directory. Lock: ${t}`),this.name=`ProcessLockCollisionError`,this.existing=e,this.lockPath=t,this.lockName=n}};function y(e,t){return n(e,`${t}.lock`)}const b=new Map;function x(e){b.set(e,(b.get(e)??0)+1)}function S(e){let t=b.get(e);return t===void 0||t<=1?(b.delete(e),!0):(b.set(e,t-1),!1)}function C(e,t){try{let n=JSON.parse(s(e,`utf-8`));return n&&typeof n==`object`&&m(n.pid)?n:(console.warn(`${t} Corrupt lock file at ${e} — replacing`),null)}catch{return console.warn(`${t} Corrupt lock file at ${e} — replacing`),null}}function w(e){let{lockName:t,lockDir:n,metadata:s}=e,f=`[${t}-lock]`;a(n,{recursive:!0});let m=y(n,t),h={pid:process.pid,hostname:d(),port:s.port,startedAt:new Date().toISOString(),worktreeRoot:s.worktreeRoot,...s.kind!==void 0&&{kind:s.kind},...s.parentPid!==void 0&&{parentPid:s.parentPid},...s.capabilities!==void 0&&{capabilities:s.capabilities},protocolVersion:s.protocolVersion??1,runtimeVersion:s.runtimeVersion??g},_=JSON.stringify(h,null,2);for(let e=0;e<3;e++){if(!i(m))try{let e=o(m,`wx`,384);try{u(e,_)}finally{r(e)}return x(m),T({lockName:t,lockDir:n,lockPath:m})}catch(e){if(e.code!==`EEXIST`)throw e}let e=C(m,f);if(e){let r=e.hostname===d();if(r&&e.pid===process.pid)return l(m,_,{encoding:`utf-8`,mode:384}),x(m),T({lockName:t,lockDir:n,lockPath:m});if(r&&p(e.pid))throw new v(e,m,t);console.warn(`${f} Stale lock detected (pid=${e.pid}, host=${e.hostname}) — replacing`)}try{c(m)}catch{}}throw Error(`${f} Failed to acquire ${m} after 3 attempts (concurrent acquire contention).`)}function T(e){let{lockName:t,lockDir:n,lockPath:r}=e;return{lockPath:r,release:()=>k({lockName:t,lockDir:n}),updatePort:e=>E({lockName:t,lockDir:n,port:e})}}function E(e){let{lockName:t,lockDir:n,port:r}=e,a=`[${t}-lock]`,o=y(n,t);if(!i(o)){console.warn(`${a} Lock file missing at ${o} during port update — skipping`);return}let c;try{let e=JSON.parse(s(o,`utf-8`));if(!e||typeof e!=`object`||!m(e.pid)){console.warn(`${a} Corrupt lock at ${o} during port update — skipping`);return}c=e}catch{console.warn(`${a} Unreadable lock at ${o} during port update — skipping`);return}if(c.pid===process.pid&&!(typeof c.hostname==`string`&&c.hostname!==d())){c.port=r;try{l(o,JSON.stringify(c,null,2),{encoding:`utf-8`,mode:384})}catch(e){console.warn(`${a} Failed to update port in ${o}: ${e instanceof Error?e.message:String(e)}`)}}}function D(e){let{lockName:t,lockDir:n}=e,r=y(n,t);if(!i(r))return null;let a;try{let e=JSON.parse(s(r,`utf-8`));if(!e||typeof e!=`object`||!m(e.pid))return null;a=e}catch{return null}if(a.hostname!==d())return null;if(!p(a.pid)){try{c(r)}catch{}return null}return a}function O(e){let{lockName:t,lockDir:n}=e,r=y(n,t);if(!i(r))return{status:`absent`};let a;try{a=JSON.parse(s(r,`utf-8`))}catch{return{status:`incompatible`,reason:`corrupt`,raw:void 0}}if(!a||typeof a!=`object`)return{status:`incompatible`,reason:`corrupt`,raw:a};let o=a;if(!m(o.pid)||typeof o.hostname!=`string`||typeof o.port!=`number`||typeof o.startedAt!=`string`||typeof o.worktreeRoot!=`string`)return{status:`incompatible`,reason:`corrupt`,raw:a};let l={pid:o.pid,hostname:o.hostname,port:o.port,startedAt:o.startedAt,worktreeRoot:o.worktreeRoot,protocolVersion:typeof o.protocolVersion==`number`?o.protocolVersion:void 0,runtimeVersion:typeof o.runtimeVersion==`string`?o.runtimeVersion:void 0};if(l.hostname!==d())return{status:`stale`,lock:l};if(!p(l.pid)){try{c(r)}catch{}return{status:`stale`,lock:l}}return l.protocolVersion===void 0||l.runtimeVersion===void 0?{status:`incompatible`,reason:`missing-fields`,raw:a}:{status:`live`,lock:l}}function k(e){let{lockName:t,lockDir:n}=e,r=`[${t}-lock]`,a=y(n,t);if(S(a)&&i(a))try{let e=JSON.parse(s(a,`utf-8`));if(!e||typeof e!=`object`||typeof e.pid!=`number`||e.pid!==process.pid||typeof e.hostname==`string`&&e.hostname!==d())return;c(a)}catch(e){console.warn(`${r} Failed to release ${a}: ${e instanceof Error?e.message:String(e)}`)}}var A=e({ServerLockCollisionError:()=>j,acquireServerLock:()=>M,readServerLock:()=>P,releaseServerLock:()=>F,updateServerLockPort:()=>N}),j=class extends v{constructor(e,t){super(e,t,`server`),this.name=`ServerLockCollisionError`}};function M(e,t){try{return w({lockName:`server`,lockDir:e,metadata:t}).lockPath}catch(e){throw e instanceof v&&e.lockName===`server`?new j(e.existing,e.lockPath):e}}function N(e,t){E({lockName:`server`,lockDir:e,port:t})}function P(e){return D({lockName:`server`,lockDir:e})}function F(e){k({lockName:`server`,lockDir:e})}export{N as _,w as a,m as c,O as d,P as f,E as g,A as h,j as i,y as l,F as m,g as n,M as o,k as p,_ as r,p as s,v as t,D as u};
2
+ //# sourceMappingURL=server-lock-D7DXNVql-BRVVzA6T.mjs.map
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-XKQRETAK-RHzVmuiF.mjs";export{e as sha1sumCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-5V6VZH6T-DMPvCPbn.mjs";export{e as sha256sumCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-5QMZ5MUS-CAp625aG.mjs";import"./chunk-A5O5YHGN-DvJz5Cpw.mjs";import{n as e}from"./chunk-GOV5EKKI-CKV9jOGv.mjs";export{e as sleepCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-KMEYNNUA-pRogdye4.mjs";export{e as sortCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-MYE6AGBJ-DJo74dVC.mjs";export{e as split};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-5QMZ5MUS-CAp625aG.mjs";import"./chunk-A5O5YHGN-DvJz5Cpw.mjs";import"./chunk-24IMIIXA-B6yIPkk2.mjs";import{t as e}from"./chunk-HWBSOZZR-BZF8XsyZ.mjs";export{e as sqlite3Command};
@@ -0,0 +1 @@
1
+ import"./init-B7qJnXKB.mjs";import"./loader-BQf8AJXb.mjs";export{};
@@ -0,0 +1 @@
1
+ import{l as e}from"./start-D6Ip3u6P.mjs";export{e as startCommand};
@@ -0,0 +1,3 @@
1
+ import{n as e,t}from"./esm-CEs3LWY3.mjs";import"./dist-DVM7wH81.mjs";import{n}from"./constants-Dc6GZ6j9.mjs";import{spawn as r}from"node:child_process";import{join as i}from"node:path";import{closeSync as a,existsSync as o,mkdirSync as s,openSync as c,statSync as l}from"node:fs";import{homedir as u}from"node:os";import{setTimeout as d}from"node:timers/promises";const f=`Open Knowledge.app`,p=`/Applications/${f}`;function m(){return{platform:process.platform,env:process.env,execPath:process.execPath,isTTY:process.stdout.isTTY,statSync:e=>{try{return l(e,{throwIfNoEntry:!1})??null}catch{return null}}}}function h(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`){let t=/(.+?\.app)\/Contents\/MacOS\//.exec(e.execPath);if(t?.[1])return t[1]}if(g(e,p))return p;let t=i(e.homeDir??u(),`Applications`,f);return g(e,t)?t:null}function g(e,t){try{let n=i(t,`Contents`,`MacOS`,`Open Knowledge`),r=e.statSync(n);return r&&typeof r.isFile==`function`?r.isFile():!1}catch{return!1}}function _(e){if(e.env.OK_FORCE_BROWSER===`1`)return{available:!1,reason:`force-browser`};if(e.platform!==`darwin`)return{available:!1,reason:`darwin-only`};let t;try{t=h(e)}catch{return{available:!1,reason:`stat-error`}}return t?e.env.OK_FORCE_DESKTOP===`1`?{available:!0,reason:`available`,bundlePath:t}:e.isTTY!==!0||e.env.SSH_CONNECTION||e.env.SSH_TTY?{available:!1,reason:`headless`,bundlePath:t}:{available:!0,reason:`available`,bundlePath:t}:{available:!1,reason:`no-bundle`}}function v(e){(e.log??(e=>console.error(e)))("Launching Open Knowledge desktop… (use `ok start` for the browser server, or `OK_FORCE_BROWSER=1` to always skip)"),e.spawn(`open`,[`-b`,`com.inkeep.open-knowledge`],{detached:!0,stdio:`ignore`}).unref()}function y(e=`no-bundle`){switch(e){case`no-bundle`:return`Desktop app not found at ${p}. Install via DMG, or omit --mode for browser mode.`;case`darwin-only`:return`Desktop app is macOS-only on this release. Use --mode=browser, or omit --mode for the server fallback.`;case`headless`:return`Desktop launch is gated in headless contexts (CI, SSH, non-TTY stdout). Set OK_FORCE_DESKTOP=1 to override, or use --mode=browser.`;case`force-browser`:return`OK_FORCE_BROWSER=1 is set — desktop dispatch is disabled. Unset it to use --mode=app.`;case`stat-error`:return`Failed to inspect desktop bundle at ${p} (filesystem error). Check permissions or use --mode=browser.`;case`available`:return`Desktop app appears available at ${p} but launch dispatch did not fire (caller bug).`}}function b(){let e=process.execPath,t=process.argv[1];return t?{command:e,prefixArgs:[t]}:(console.warn(`[self-spawn] process.argv[1] is empty — falling back to \`npx @inkeep/open-knowledge\`. This re-introduces the version-drift surface that re-exec was fixing. Observed argv: ${JSON.stringify(process.argv)}`),{command:`npx`,prefixArgs:[`@inkeep/open-knowledge`]})}function x(e,t){return e.host??t.HOST??`localhost`}var S=class extends Error{cwd;constructor(e){super("This directory isn't set up yet. Run `ok init` first, then `ok start` again."),this.name=`OkDirMissingError`,this.cwd=e}};function C(e){return e.uiLock?e.isAlive(e.uiLock.pid)?{action:`skip`,reason:`alive`,pid:e.uiLock.pid,port:e.uiLock.port}:{action:`spawn`,reason:`stale`,stalePid:e.uiLock.pid}:{action:`spawn`,reason:`absent`}}function w(e){o(e.lockDir)||s(e.lockDir,{recursive:!0});let t=c(i(e.lockDir,`last-spawn-error.log`),`w`),n=e.spawn??r,{PORT:l,...u}=process.env,d=b();try{let r=n(d.command,[...d.prefixArgs,...e.args??[`ui`]],{detached:!0,stdio:[`ignore`,`ignore`,t],cwd:e.cwd,env:u});return r.unref(),r}finally{try{a(t)}catch{}}}async function T(e){let t=e.now()+e.timeoutMs;for(;e.now()<t;){let t=e.readUiLock();if(t&&t.port>0)return t.port;await e.sleep(e.pollIntervalMs)}let n=e.readUiLock();return n&&n.port>0?n.port:null}function E(e){let t=e.sigtermGraceMs??1e4,n=e.sigtermPollIntervalMs??200,r=e.sleep??(e=>d(e));return async()=>{try{let i=e.readUiLock();if(i&&e.isAlive(i.pid))try{e.killPid(i.pid,`SIGTERM`),e.log?.info({pid:i.pid,port:i.port},`idle-shutdown: SIGTERM UI sibling`);let a=Date.now()+t;for(;Date.now()<a&&e.isAlive(i.pid);)await r(n);if(e.isAlive(i.pid))try{e.killPid(i.pid,`SIGKILL`),e.log?.warn({pid:i.pid,graceMs:t},`idle-shutdown: SIGTERM grace expired — escalated to SIGKILL`)}catch(t){e.log?.error({pid:i.pid,err:t instanceof Error?t.message:String(t)},`idle-shutdown: SIGKILL failed`)}}catch(t){e.log?.warn({pid:i.pid,err:t instanceof Error?t.message:String(t)},`idle-shutdown: failed to SIGTERM UI sibling`)}}catch(t){e.log?.warn({err:t instanceof Error?t.message:String(t)},`idle-shutdown: UI lookup failed; proceeding with destroy`)}await e.destroy()}}async function D(e){let{config:t,cwd:n,host:r}=e,i=e.skipAutoInit??!1,a=e.skipUiAutoSpawn??!1,o=e.idleThresholdMs??18e5,{existsSync:s,mkdirSync:c}=await import(`node:fs`),{resolve:l}=await import(`node:path`),{bootServer:u,getLogger:f,isProcessAlive:p,readUiLock:m,resolveContentDir:h}=await import(`./dist-DXLSMgBY.mjs`),g=e.log??f(`start`),_=l(n,`.ok`);if(!i&&!s(_))throw new S(n);let v=h(t,n);s(v)||(c(v,{recursive:!0}),g.info({contentDir:v},`Created content directory`));let y=null,b=await u({config:t,contentDir:v,projectDir:n,contentRoot:t.content.dir,port:e.port,host:r,quiet:!1,localOpCliArgs:[process.execPath,process.argv[1]],attachUiSibling:!0,idleShutdownMs:o,skipAutoInit:!0,spawnUiSiblingFn:async({lockDir:t})=>{if(y=C({uiLock:m(t),isAlive:p}),y.action===`spawn`&&!a)try{w({lockDir:t,cwd:n,spawn:e.spawn}),g.info({reason:y.reason},`[start] auto-spawned ok ui sibling`)}catch(e){console.warn(`[start] failed to auto-spawn ok ui: ${e instanceof Error?e.message:String(e)}`)}else y.action===`skip`&&g.info({port:y.port,pid:y.pid},`UI already running at port ${y.port}`)},idleShutdownHandler:e=>E({readUiLock:()=>m(b.lockDir),isAlive:p,killPid:(e,t)=>{process.kill(e,t)},destroy:e,log:g}),log:g});y||={action:`skip`,reason:`alive`,pid:0,port:0};let x=y,D=null;if(x.action===`skip`)D=x.port>0?x.port:null;else if(!a){let t=e.uiBindTimeoutMs??3e3;D=await T({readUiLock:()=>m(b.lockDir),now:Date.now,sleep:e=>d(e),timeoutMs:t,pollIntervalMs:50}),D===null&&g.warn({timeoutMs:t},`[start] ok ui did not bind within timeout — banner falls back to API URL`)}return{httpServer:b.httpServer,destroy:b.destroy,lockDir:b.lockDir,contentDir:v,port:b.port,ready:b.ready,degraded:b.degraded,uiSpawnDecision:y,resolvedUiPort:D}}function O(t){if(t===`browser`||t===`app`)return t;throw new e(`--mode must be 'browser' or 'app'`)}async function k(e,t){let{renderBanner:r}=await import(`./banner-DdbR6AZr.mjs`),{dim:i,error:a,warning:o}=await import(`./colors-T3xmlXQT.mjs`),s=process.cwd(),c=x(t,process.env),l=t.port===void 0?void 0:Number(t.port),u=process.env.PORT?Number(process.env.PORT):void 0,d=l??u,f;try{f=await D({config:e,cwd:s,host:c,port:d})}catch(e){e instanceof S&&(console.error(a(e.message)),process.exit(1));let t=A(e,s,await import(`./dist-DXLSMgBY.mjs`));t!==null&&(console.error(a(t)),process.exit(1)),console.error(`${a(`Failed to start:`)} ${e instanceof Error?e.stack??e.message:String(e)}`),process.exit(1)}let p=!1,m=async e=>{if(!p){p=!0,console.log(i(`\nShutting down (${e})...`));try{await f.destroy()}catch(e){console.error(`${a(`destroy() failed:`)} ${e instanceof Error?e.stack??e.message:String(e)}`),process.exitCode=1}process.exit(process.exitCode??0)}};process.once(`SIGINT`,()=>{m(`SIGINT`)}),process.once(`SIGTERM`,()=>{m(`SIGTERM`)});let h=`http://${c}:${f.port}`,g=c===`0.0.0.0`||c===`::`?`http://0.0.0.0:${f.port}`:void 0,_=f.resolvedUiPort,v=_!==null&&_>0?`http://${c}:${_}`:h;console.log(r({name:`open-knowledge`,version:n,localUrl:v,apiUrl:v===h?void 0:h,networkUrl:g}));let y={"shadow-repo":`Version history and branch-switch safety unavailable`,"file-watcher":`External file changes will not sync to the editor`,"head-watcher":`Git branch switches may cause document inconsistency`};f.ready.then(async()=>{if(f.degraded.length>0){console.log();for(let e of f.degraded){let t=y[e]??`${e} (check server logs for details)`;console.warn(` ${o(`⚠`)} ${o(e)}: ${i(t)}`)}console.log()}if(t.open){let{openBrowser:e}=await import(`./open-browser-BZZK_gJj.mjs`);e(v)}}).catch(e=>{console.error(` ${a(`Server initialization failed:`)} ${e instanceof Error?e.message:String(e)}`)})}function A(e,t,n){let r=n.ServerLockCollisionError;if(r===void 0||!(e instanceof r))return null;try{let e=i(t,`.ok`),r=n.readServerLock(e);return r?r.kind===`interactive`?`Open Knowledge desktop is currently running on this project. Quit it or use --cwd to point elsewhere.`:r.kind===`mcp-spawned`?"An MCP-spawned server holds this lock; it should release on idle-shutdown (~30 min). Or run `ok stop`.":"Open Knowledge server is already running on this project — check `ok status` or `ok stop`.":"Open Knowledge server is already running on this project — check `ok status` or `ok stop`."}catch{return null}}function j(e){return new t(`start`).description(`Start the knowledge base collab server`).option(`-p, --port <port>`,`Server port`,void 0).option(`-H, --host <host>`,`Server host`,void 0).option(`--open`,`Open browser after start`).option(`--mode <mode>`,`Force dispatch mode: 'browser' or 'app'`,O).action(async t=>{let n=e();if(t.mode===`app`){t.open&&(process.stderr.write(`error: option '--mode=app' cannot be combined with '--open' (--open opens a browser tab against the local server, which app mode does not boot)
2
+ `),process.exit(2));let e=[];if(t.port!==void 0&&e.push(`--port`),t.host!==void 0&&e.push(`--host`),e.length>0){let t=process.env.OK_LOG_LEVEL??`info`;(t===`debug`||t===`trace`)&&console.error(`--mode=app: ignoring ${e.join(`, `)}`)}let n=_(m());if(n.available){v({spawn:r});return}console.error(y(n.reason)),process.exit(1)}await k(n,t)})}export{C as a,w as c,b as d,m as f,E as i,j as l,v as m,T as n,x as o,_ as p,D as r,k as s,S as t,A as u};
3
+ //# sourceMappingURL=start-D6Ip3u6P.mjs.map
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-5QVNJEHU-dbrKfPGl.mjs";export{e as statCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-VYOJP4TV-PBsHe2md.mjs";export{e as strings};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-MHTUABJP-BWrqic3t.mjs";export{e as tac};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-DCAAORBQ-C3s1D8OY.mjs";export{e as tailCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-5QMZ5MUS-CAp625aG.mjs";import{n as e}from"./chunk-BRGMQKJV-BXc-9Cgj.mjs";export{e as tarCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-55VFSPNA-DLwfww5b.mjs";export{e as teeCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-CWQS3NFK-Co4ALolT.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-Z6LRHWXI-DGTVoTuf.mjs";export{e as timeCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-5QMZ5MUS-CAp625aG.mjs";import"./chunk-A5O5YHGN-DvJz5Cpw.mjs";import{n as e}from"./chunk-YTNYSM6T-WMIf3AF8.mjs";export{e as timeoutCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-OCLXQMOG-BW6rwyzS.mjs";export{e as touchCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-62RKD26F-B9la0pfD.mjs";export{e as trCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-XVDPCNWR-DxaG1FfA.mjs";export{e as treeCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{i as e,t}from"./chunk-R6QSAL5T-CeW6f7-x.mjs";export{e as falseCommand,t as trueCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-PYSFUGCK-DsRn64Ef.mjs";export{e as unexpand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-WKFATFPP-KO2zkfs2.mjs";export{e as uniqCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-GXVXFKBA-CUKDClxt.mjs";export{e as wcCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-A65PWWJC-DV6RO_es.mjs";export{e as whichCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-HJQJAYMS-D-8Vc6Zb.mjs";export{e as whoami};
@@ -0,0 +1 @@
1
+ import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-5QMZ5MUS-CAp625aG.mjs";import"./chunk-24IMIIXA-B6yIPkk2.mjs";import"./chunk-SYMJJMQ4-DOZMaECk.mjs";import"./chunk-7TSDKFEO-DUQhJkDy.mjs";import"./chunk-BBXLRYSX-K758HlCs.mjs";import"./chunk-F55TLFGB-Vy5RU2P3.mjs";import{n as e}from"./chunk-UNYNJIFU-CqGlXAg7.mjs";export{e as xanCommand};