@inkeep/open-knowledge 0.49.0 → 0.49.2
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.
- package/dist/abnfDiagram-VRR7QNED-DWDzSKGM.mjs +2 -0
- package/dist/acp-harness-probe-O9BEMpdb.mjs +3 -0
- package/dist/alias-JE7RI5QX-BLuOrjl2.mjs +7 -0
- package/dist/alias-JE7RI5QX-VxEqWoTW.mjs +1 -0
- package/dist/arc-DXUbbcxK.mjs +2 -0
- package/dist/architecture-TIHT7OUA-Bl3hpxt3.mjs +1 -0
- package/dist/architectureDiagram-ZJ3FMSHR-HYEpY7T3.mjs +37 -0
- package/dist/array-BbgQa93P.mjs +2 -0
- package/dist/awk2-BBAGSFUB-ClUuupKf.mjs +21 -0
- package/dist/awk2-BBAGSFUB-Dq-YdAGA.mjs +1 -0
- package/dist/banner-Be20aAVc.mjs +3 -0
- package/dist/base64-4YMZCVJ5-CtkujsXK.mjs +6 -0
- package/dist/base64-4YMZCVJ5-dXz6vbV-.mjs +1 -0
- package/dist/basename-AA2KJYZQ-BhoOTAHi.mjs +1 -0
- package/dist/basename-AA2KJYZQ-CEdH80GO.mjs +6 -0
- package/dist/bash-IJWYRKFO-BDtU-lTC.mjs +6 -0
- package/dist/bash-IJWYRKFO-jaJEvAZe.mjs +1 -0
- package/dist/blockDiagram-677ZJIJ3-yJugV29e.mjs +133 -0
- package/dist/c4Diagram-LMCZKHZV-BFQQLctA.mjs +11 -0
- package/dist/cat-RDUMLXKC-D1H4LA3Z.mjs +6 -0
- package/dist/cat-RDUMLXKC-DFuXWxVq.mjs +1 -0
- package/dist/channel-Cjp51EO_.mjs +2 -0
- package/dist/chmod-SYMGL4JA-ByMUk130.mjs +1 -0
- package/dist/chmod-SYMGL4JA-lEGJICyB.mjs +8 -0
- package/dist/chokidar-dh8zokRd.mjs +4 -0
- package/dist/chunk-24IMIIXA-RjlBWJtr.mjs +2 -0
- package/dist/chunk-2Q5K7J3B-Ck8oGqYt.mjs +2 -0
- package/dist/chunk-2TRDZQLB-AH-I_6yN.mjs +18 -0
- package/dist/chunk-2TRDZQLB-ZoW1EBbl.mjs +18 -0
- package/dist/chunk-32BRIVSS-Dwq69mnI.mjs +2 -0
- package/dist/chunk-3BS5SKQH-DpdUzS0R.mjs +140 -0
- package/dist/chunk-3H6UQG3A-BWCaN15a.mjs +9 -0
- package/dist/chunk-3THT3N7L-DYkTD3HD.mjs +2 -0
- package/dist/chunk-3ZUFRYJ4-H1A1hWy1.mjs +2 -0
- package/dist/chunk-3ZUFRYJ4-ekaYB_vG.mjs +2 -0
- package/dist/chunk-44UOCSGV-D1FZHMOP.mjs +2 -0
- package/dist/chunk-4GTNDTRF-Cx89i2Y1.mjs +8 -0
- package/dist/chunk-4HHKTUW3-Dk2l1S8J.mjs +3 -0
- package/dist/chunk-4Q4SM6WR-CGuvvBWe.mjs +5 -0
- package/dist/chunk-52WLFC77-Cn-qt8h-.mjs +11 -0
- package/dist/chunk-55VFSPNA-D2U7n2ka.mjs +3 -0
- package/dist/chunk-5FCAYU7R-DszODYLe.mjs +2 -0
- package/dist/chunk-5HE753X5-DDnyF29o.mjs +2 -0
- package/dist/chunk-5JV3BV7I-BkeVAZnj.mjs +2 -0
- package/dist/chunk-5QMZ5MUS-C5NTf5Rj.mjs +5 -0
- package/dist/chunk-5QVNJEHU-DS9zA_YV.mjs +9 -0
- package/dist/chunk-5TONJI2A-CzUNHQPX.mjs +3 -0
- package/dist/chunk-5V6VZH6T-DBFenjXz.mjs +2 -0
- package/dist/chunk-5VM5RSS4-C8vNNqW0.mjs +16 -0
- package/dist/chunk-62RKD26F-C4qK_fA-.mjs +21 -0
- package/dist/chunk-64BAICW3-BupSxcu5.mjs +2 -0
- package/dist/chunk-6Z5SFZXK-Cz0C4bhB.mjs +288 -0
- package/dist/chunk-74CEPOFO-BUVWiXkJ.mjs +23 -0
- package/dist/chunk-74CEPOFO-BYrCYxKO.mjs +23 -0
- package/dist/chunk-7BUUIJ7U-D7hE25H9.mjs +2 -0
- package/dist/chunk-7L36YK2X-CGwYuotX.mjs +3 -0
- package/dist/chunk-7L36YK2X-DAp-upAs.mjs +3 -0
- package/dist/chunk-7TSDKFEO-CE_P23TY.mjs +2 -0
- package/dist/chunk-7TSDKFEO-DBB10vPw.mjs +2 -0
- package/dist/chunk-A4HU7SVR-BZJ8xDMo.mjs +3 -0
- package/dist/chunk-A4JSPFCI-Dej71yGP.mjs +7 -0
- package/dist/chunk-A5O5YHGN-CczwCZ4d.mjs +2 -0
- package/dist/chunk-A65PWWJC-C-0S-s_f.mjs +3 -0
- package/dist/chunk-A7A2DBEE-DCXJ1xmx.mjs +7 -0
- package/dist/chunk-A7ICOL4V-BQZ9JZ1A.mjs +14 -0
- package/dist/chunk-ALLTKNUZ-D2ZOfcEz.mjs +6 -0
- package/dist/chunk-APT7OOP2-D-DaFB7K.mjs +2 -0
- package/dist/chunk-B74TABJS-BJwhrR8a.mjs +34 -0
- package/dist/chunk-BIQX33UG-Bmho6v3L.mjs +2 -0
- package/dist/chunk-C7G6YPKG-BAX_SClW.mjs +2 -0
- package/dist/chunk-CQNSW5MT-FekKjn0i.mjs +2 -0
- package/dist/chunk-CWQS3NFK-CcBWgb8o.mjs +2 -0
- package/dist/chunk-CYSBUYHQ-BftsYwRW.mjs +2 -0
- package/dist/chunk-D4J545R4-Br_5qOnE.mjs +12 -0
- package/dist/chunk-D6CWQ5DW-3AWPydfx.mjs +6 -0
- package/dist/chunk-D7MEQ3VN-Df6An2jd.mjs +5 -0
- package/dist/chunk-DBKNVD4L-B3hX287s.mjs +10 -0
- package/dist/chunk-DBKNVD4L-DNQP2COw.mjs +10 -0
- package/dist/chunk-DCAAORBQ-BDLVpBG2.mjs +2 -0
- package/dist/chunk-DHbaKqs-.mjs +1 -0
- package/dist/chunk-DXB73IDG-BBwE27jK.mjs +2 -0
- package/dist/chunk-EEXR5ZDP-CE452hsE.mjs +3 -0
- package/dist/chunk-EEXR5ZDP-Df-EPnbj.mjs +3 -0
- package/dist/chunk-EIZGF4BS-86nrMkyt.mjs +9 -0
- package/dist/chunk-EIZGF4BS-CSFp0aUh.mjs +9 -0
- package/dist/chunk-EMLP6XTP-C2yfLzVC.mjs +2 -0
- package/dist/chunk-EX3LRPZG-Chp9b-Lc.mjs +232 -0
- package/dist/chunk-F23WWYKW-qKke1WqP.mjs +17 -0
- package/dist/chunk-FWX5IMBZ-Cn1xNcn5.mjs +2 -0
- package/dist/chunk-GCTKCWKD-D0obXRun.mjs +4 -0
- package/dist/chunk-GFQRA5P5-XqPO4cim.mjs +3 -0
- package/dist/chunk-GOV5EKKI-CDovwI7Z.mjs +10 -0
- package/dist/chunk-GXVXFKBA-D-BGCybM.mjs +6 -0
- package/dist/chunk-HDQ56CKY-CI8IkhlS.mjs +16 -0
- package/dist/chunk-HDQ56CKY-Pa-7c4rC.mjs +16 -0
- package/dist/chunk-HJQJAYMS-BHzb4Ncl.mjs +3 -0
- package/dist/chunk-HJWBQKYG-B-KESSoV.mjs +6 -0
- package/dist/chunk-HKLCLINH-Bgw53oZd.mjs +63 -0
- package/dist/chunk-HL6NGDO2-CftrHAlX.mjs +24 -0
- package/dist/chunk-HOUHSVGY-C3h3PdhC.mjs +2 -0
- package/dist/chunk-HWKDQ44K-CGcvROg-.mjs +4 -0
- package/dist/chunk-HWKDQ44K-D3ZbaPl8.mjs +4 -0
- package/dist/chunk-I57KEIP3-_HYA-njf.mjs +11 -0
- package/dist/chunk-I57KEIP3-iiTO2OC-.mjs +11 -0
- package/dist/chunk-ICXQ74PX-DbJy3VdO.mjs +3 -0
- package/dist/chunk-IPJHKYVM-3ANqAo3C.mjs +2 -0
- package/dist/chunk-JG7HCLWE-lUInQ_44.mjs +3 -0
- package/dist/chunk-JVPRLUMK-FzUEFQw9.mjs +8 -0
- package/dist/chunk-JWPE2WC7-iDbhfJR-.mjs +2 -0
- package/dist/chunk-K6LIBGJA-BXxOXTjI.mjs +12 -0
- package/dist/chunk-KEIR6QF5-BLwvtFl6.mjs +176 -0
- package/dist/chunk-KMEYNNUA-1KiUKBQV.mjs +16 -0
- package/dist/chunk-KRBPSX3W-DeaaVEij.mjs +6 -0
- package/dist/chunk-KRBPSX3W-YDdgrCmf.mjs +6 -0
- package/dist/chunk-LL3S3NLB-D0lLKwVi.mjs +2 -0
- package/dist/chunk-LTZRCH7N-DpPs5vSq.mjs +32 -0
- package/dist/chunk-LWEGUNWT-DOK-XWMd.mjs +8 -0
- package/dist/chunk-MDDMCKUK-CTA6qEdN.mjs +7 -0
- package/dist/chunk-MDLLFABN-B2tA3LLA.mjs +73 -0
- package/dist/chunk-MHTUABJP-CrR3MfDw.mjs +9 -0
- package/dist/chunk-MIZPJHVH-d3bhRfh4.mjs +8 -0
- package/dist/chunk-MLXIYONF-C0S_CKb1.mjs +16 -0
- package/dist/chunk-MOJQB5TN-CUt4IiNv.mjs +89 -0
- package/dist/chunk-MOZMSUNE-DCxwDKn7.mjs +2 -0
- package/dist/chunk-MYE6AGBJ-CMoRJzYM.mjs +17 -0
- package/dist/chunk-NAERJDUW-Ck-SZ2Ps.mjs +9 -0
- package/dist/chunk-NCNPKYJZ-BxqfYu6d.mjs +3 -0
- package/dist/chunk-NUYSJFDK-DfaBzW-k.mjs +8 -0
- package/dist/chunk-OCLXQMOG-DC3689MV.mjs +7 -0
- package/dist/chunk-OCS6LSEM-BY3_3dNt.mjs +14 -0
- package/dist/chunk-OGEWGWER-DgPAesMA.mjs +2 -0
- package/dist/chunk-OJDRYQWQ-B9KRyRFZ.mjs +2 -0
- package/dist/chunk-OSBZ3O6U-BVpvamr7.mjs +2 -0
- package/dist/chunk-PBXLG62G-C12xrBbG.mjs +9 -0
- package/dist/chunk-PP6PSHAB-tlM6YKyg.mjs +5 -0
- package/dist/chunk-PUDLZKDR-CIWYIjrF.mjs +157 -0
- package/dist/chunk-PXTK5WE2-DNbfUrIy.mjs +22 -0
- package/dist/chunk-PXTK5WE2-e9kxtsgu.mjs +22 -0
- package/dist/chunk-PYSFUGCK-DqdcBhD4.mjs +11 -0
- package/dist/chunk-Q4XR5HBZ-jWirJQsj.mjs +71 -0
- package/dist/chunk-QBLGF6JB-hMrl9lGc.mjs +2 -0
- package/dist/chunk-QCDB2VPH-Cv7mIZWG.mjs +7 -0
- package/dist/chunk-QJ7O6ZN3-BRN048sn.mjs +6 -0
- package/dist/chunk-R6QSAL5T-CxzbKF59.mjs +2 -0
- package/dist/chunk-R6VWJ2ZL-DmUcUF0z.mjs +2 -0
- package/dist/chunk-R7FJI6CG-bmCS8vOS.mjs +2 -0
- package/dist/chunk-RPNGRAAP-BTpXCNpb.mjs +8 -0
- package/dist/chunk-RYQCIY6F-Dt7I2-Oy.mjs +2 -0
- package/dist/chunk-SDNKECQQ-BNRfy-15.mjs +6 -0
- package/dist/chunk-SNN4IESC-CZPQ88bY.mjs +2 -0
- package/dist/chunk-SNN4IESC-oXVGT9qo.mjs +2 -0
- package/dist/chunk-T56QNPHK-lY6QjpkL.mjs +15 -0
- package/dist/chunk-TLSUDHID-BP7dARSe.mjs +7 -0
- package/dist/chunk-TOMNU26N-BFsBBT9j.mjs +5 -0
- package/dist/chunk-TP4BZANS-C6KGxaUf.mjs +21 -0
- package/dist/chunk-TXBZCHCQ-DxPX5PCF.mjs +6 -0
- package/dist/chunk-U6XO7XAA-BHty90wb.mjs +3 -0
- package/dist/chunk-V5MWI2OL-DApVl_z4.mjs +5 -0
- package/dist/chunk-V7JOEXUC-DNM56rwe.mjs +207 -0
- package/dist/chunk-V7TAPXDL-CrGsULIH.mjs +28 -0
- package/dist/chunk-VAUOI2AC-BdotBBDE.mjs +2 -0
- package/dist/chunk-VJFXDYWH-DXnppZsu.mjs +11 -0
- package/dist/chunk-VOBGTVA6-_4QbVbSJ.mjs +7 -0
- package/dist/chunk-VR4S4FIN-RUJ5PgRH.mjs +2 -0
- package/dist/chunk-VYOJP4TV-DG_cm0JM.mjs +14 -0
- package/dist/chunk-WKFATFPP-DygaP6No.mjs +5 -0
- package/dist/chunk-WYO6CB5R-DN1R0VLx.mjs +130 -0
- package/dist/chunk-X2AJGDEF-BXjUENXL.mjs +2 -0
- package/dist/chunk-X2AJGDEF-ivzQBp_p.mjs +2 -0
- package/dist/chunk-XKQRETAK-CYJSOFLN.mjs +2 -0
- package/dist/chunk-XKWWSDBF-BTj39eCO.mjs +37 -0
- package/dist/chunk-XVDPCNWR-BSVT7Ttz.mjs +12 -0
- package/dist/chunk-XXDRQBXY-D1gFTzjI.mjs +2 -0
- package/dist/chunk-Y2CYZVJY-acXC9Sbb.mjs +2 -0
- package/dist/chunk-YMMW5UAP-CE-EQ2Is.mjs +33 -0
- package/dist/chunk-YOTPTUD7-63S9b4Z2.mjs +2 -0
- package/dist/chunk-YTNYSM6T-DFPh_641.mjs +12 -0
- package/dist/chunk-YULBWSET-B6FKJjk9.mjs +14 -0
- package/dist/chunk-Z6LRHWXI-BCgawaNX.mjs +14 -0
- package/dist/chunk-Z7JVV2SM-CTUpikzI.mjs +12 -0
- package/dist/chunk-ZGVPDNZ5-CyyHBEs2.mjs +63 -0
- package/dist/chunk-ZIRB5QZD-K23GvNu-.mjs +39 -0
- package/dist/chunk-ZZO3UDB3-MiEiJy8J.mjs +100 -0
- package/dist/classDiagram-OUVF2IWQ-0ApI9cDS.mjs +2 -0
- package/dist/classDiagram-v2-EOCWNBFH-DfQYJWNe.mjs +2 -0
- package/dist/clear-5CZ5X4YR-9EZyt4MH.mjs +2 -0
- package/dist/clear-5CZ5X4YR-BICGLF_r.mjs +1 -0
- package/dist/cli.mjs +22 -22
- package/dist/column-WLPMMSTS-D0I9TpQ2.mjs +1 -0
- package/dist/column-WLPMMSTS-Do8HgL6q.mjs +8 -0
- package/dist/comm-5SLSESQG-0igXzBnl.mjs +12 -0
- package/dist/comm-5SLSESQG-D2Rs9Jmo.mjs +1 -0
- package/dist/constants-C3InsrBS.mjs +2 -0
- package/dist/cose-bilkent-JH36ORCC-B1gjUwU3.mjs +2 -0
- package/dist/cp-XOYR4ABJ-CpnwcT2f.mjs +8 -0
- package/dist/cp-XOYR4ABJ-OfwEEWhR.mjs +1 -0
- package/dist/curl-47BFPSFW-Ko1BcK_R.mjs +26 -0
- package/dist/cut-OPC3VAGB-BAhJz0Qh.mjs +1 -0
- package/dist/cut-OPC3VAGB-nJAw1cEp.mjs +6 -0
- package/dist/cynefin-VYW2F7L2-C-aICrN-.mjs +1 -0
- package/dist/cynefinDiagram-TSTJHNR4-CoESbhp4.mjs +63 -0
- package/dist/cytoscape.esm-D6l9Lhue.mjs +332 -0
- package/dist/dagre-BkPA5x_w.mjs +2 -0
- package/dist/dagre-VKFMJZFB-BhCtWAkc.mjs +5 -0
- package/dist/date-DD7FVA2V-BGJ9-l0O.mjs +1 -0
- package/dist/date-DD7FVA2V-W_sbdO4n.mjs +5 -0
- package/dist/defaultLocale-DN4qDyCE.mjs +2 -0
- package/dist/diagram-FQU43EPY-BdshpOzp.mjs +4 -0
- package/dist/diagram-G47NLZAW-Lw1fB9_w.mjs +25 -0
- package/dist/diagram-NH7WQ7WH-DnzwFaQq.mjs +25 -0
- package/dist/diagram-OA4YK3LP-BXU-URV1.mjs +31 -0
- package/dist/diagram-WEI45ONY-CD_Zpcvk.mjs +42 -0
- package/dist/diff-HJF2MPDN-CQAaA8lM.mjs +1 -0
- package/dist/diff-HJF2MPDN-EjmLU95d.mjs +7 -0
- package/dist/dirname-LEMTZZFS-BG01-R4_.mjs +1 -0
- package/dist/dirname-LEMTZZFS-Dg3ijqjM.mjs +5 -0
- package/dist/dist-CMZz8-Ge.mjs +2 -0
- package/dist/du-WO2ENHXQ-jqWYqk_n.mjs +8 -0
- package/dist/du-WO2ENHXQ-oQRVbsEF.mjs +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-D-647A1u.mjs +2 -0
- package/dist/echo-O45JWWI2-BPosfKdD.mjs +1 -0
- package/dist/echo-O45JWWI2-gk6mEMAU.mjs +4 -0
- package/dist/env-5EPCWSXR-BU5zTNDV.mjs +9 -0
- package/dist/env-5EPCWSXR-DygzVPiG.mjs +1 -0
- package/dist/erDiagram-Q63AITRT-DviwoNdm.mjs +86 -0
- package/dist/eventmodeling-45OFAUF4-CJqJ2hnR.mjs +1 -0
- package/dist/execAsync-BLKHjfg7.mjs +2 -0
- package/dist/execAsync-C5ympCkf.mjs +2 -0
- package/dist/expand-DTNXU4LQ-D2bEx87V.mjs +11 -0
- package/dist/expand-DTNXU4LQ-XU44HrWp.mjs +1 -0
- package/dist/expr-YYCVMXE3-DI2glLwn.mjs +1 -0
- package/dist/expr-YYCVMXE3-wI0boF3e.mjs +5 -0
- package/dist/file-IGDTDPLG-DkYMcmTl.mjs +24 -0
- package/dist/file-IGDTDPLG-sPfWVy9T.mjs +1 -0
- package/dist/find-DH2ALKQS-B6bMjuwo.mjs +12 -0
- package/dist/find-DH2ALKQS-CEKaRkgJ.mjs +1 -0
- package/dist/flag-coverage-6JEX67RU-QmoBigPs.mjs +2 -0
- package/dist/flowDiagram-23GEKE2U-Dhi3SNHm.mjs +1 -0
- package/dist/fold-LDSORVYE-Dhx0k6vg.mjs +12 -0
- package/dist/fold-LDSORVYE-DumfsCQO.mjs +1 -0
- package/dist/fs-traced-DVpoNaQJ.mjs +12 -0
- package/dist/fs-traced-_QGcVmcb.mjs +1 -0
- package/dist/ganttDiagram-NO4QXBWP-DnN5cTGV.mjs +293 -0
- package/dist/getMachineId-bsd-B_NuwbXS.mjs +2 -0
- package/dist/getMachineId-bsd-neTWr-l3.mjs +2 -0
- package/dist/getMachineId-darwin-BP4aVKkL.mjs +3 -0
- package/dist/getMachineId-darwin-DKDl-xYO.mjs +3 -0
- package/dist/getMachineId-linux-Bexb2iRT.mjs +2 -0
- package/dist/getMachineId-linux-YTb5epZX.mjs +2 -0
- package/dist/getMachineId-unsupported-Ddv20ynQ.mjs +2 -0
- package/dist/getMachineId-unsupported-DdwXS_Q3.mjs +2 -0
- package/dist/getMachineId-win-BNx0EbPq.mjs +2 -0
- package/dist/getMachineId-win-D8cNuBNk.mjs +2 -0
- package/dist/git-handle-DBSzQutT.mjs +1 -0
- package/dist/git-handle-r3d7s3VF.mjs +10 -0
- package/dist/gitGraph-TEB2WS4Q-_V7TMkJv.mjs +1 -0
- package/dist/gitGraphDiagram-IHSO6WYX-Bs2N855t.mjs +107 -0
- package/dist/graphlib-DXQPHTiH.mjs +2 -0
- package/dist/grep-2HUTXO5U-9G7xEEms.mjs +9 -0
- package/dist/grep-2HUTXO5U-DG5Ulinc.mjs +1 -0
- package/dist/gzip-AQXSGOVS-BcGYw5wM.mjs +32 -0
- package/dist/gzip-AQXSGOVS-D6UYmM0C.mjs +1 -0
- package/dist/head-HT2B6D2J-B5ybc-my.mjs +2 -0
- package/dist/head-HT2B6D2J-CHIR76LI.mjs +1 -0
- package/dist/help-VVWX7SA5-Bb8T3djf.mjs +16 -0
- package/dist/help-VVWX7SA5-BbK0QLPX.mjs +1 -0
- package/dist/history-J4QRNGRO-5XgHJL_Q.mjs +1 -0
- package/dist/history-J4QRNGRO-DesXbqi2.mjs +3 -0
- package/dist/hostname-BK6HG2DE-Clwz043m.mjs +1 -0
- package/dist/hostname-BK6HG2DE-DTiGP5th.mjs +3 -0
- package/dist/html-to-markdown-TFCECAGV-BsVwcc4T.mjs +1 -0
- package/dist/html-to-markdown-TFCECAGV-DLUGt6pW.mjs +73 -0
- package/dist/index.d.mts +6867 -242
- package/dist/index.mjs +1521 -1
- package/dist/info-DKCQHKI2-DIsEz1l_.mjs +1 -0
- package/dist/infoDiagram-FWYZ7A6U-CD5T72Pd.mjs +3 -0
- package/dist/init-Cg1MczGq.mjs +638 -0
- package/dist/init-D8OKme52.mjs +2 -0
- package/dist/init-DnqdKHDS.mjs +1 -0
- package/dist/ishikawaDiagram-FXEZZL3T-CzHEtbdq.mjs +71 -0
- package/dist/join-GG2LDHE5-7k4Syl20.mjs +14 -0
- package/dist/join-GG2LDHE5-BIH_-8vD.mjs +1 -0
- package/dist/journeyDiagram-5HDEW3XC-BywkQV2b.mjs +140 -0
- package/dist/jq-LYZFFBZB-BZ4XP29I.mjs +14 -0
- package/dist/jq-LYZFFBZB-Dlyx6Y7w.mjs +1 -0
- package/dist/js-exec-VXN6TZ7U-BrugyKqi.mjs +97 -0
- package/dist/js-exec-VXN6TZ7U-Ds5SsewK.mjs +97 -0
- package/dist/kanban-definition-HUTT4EX6-DIgH0tMg.mjs +90 -0
- package/dist/launch-json-removal-DFF5AXyX.mjs +2 -0
- package/dist/lib-B2tLN_O_.mjs +2 -0
- package/dist/lib-DuDqLKFD.mjs +195 -0
- package/dist/lib-ozx_WsjS.mjs +2 -0
- package/dist/libesm-qUf-Au5c.mjs +14 -0
- package/dist/line-eTDW_zUy.mjs +2 -0
- package/dist/linear-Cn1royVQ.mjs +2 -0
- package/dist/ln-4TRFBYAT-B0hi-FAf.mjs +1 -0
- package/dist/ln-4TRFBYAT-DGrhTL40.mjs +9 -0
- package/dist/loader-4hXM3EID.mjs +1 -0
- package/dist/loader-CJynt8EV.mjs +2 -0
- package/dist/logger-DFxEUjvj.mjs +39 -0
- package/dist/ls-KSXFZCWH-C_kbnNdU.mjs +1 -0
- package/dist/ls-KSXFZCWH-GOWXktO9.mjs +28 -0
- package/dist/lzma-CD6C2vYw.mjs +2 -0
- package/dist/lzma-CG6o9sq-.mjs +2 -0
- package/dist/map-bDB3k8vA.mjs +2 -0
- package/dist/md-manager-BbSzMHHE.mjs +2 -0
- package/dist/md5sum-INMIK4DX-BlgGpdCD.mjs +2 -0
- package/dist/md5sum-INMIK4DX-DGvi_A-E.mjs +1 -0
- package/dist/mermaid-parser.core-uwQfwzUX.mjs +4 -0
- package/dist/mermaid.core-BgpKViY0.mjs +16 -0
- package/dist/mindmap-definition-LN4V7U3C-H3p7uT-G.mjs +97 -0
- package/dist/mkdir-TDEMSB6C-BVcgITXm.mjs +7 -0
- package/dist/mkdir-TDEMSB6C-CMOt1jIT.mjs +1 -0
- package/dist/mv-Z6MORUFL-CqyCV_Ze.mjs +1 -0
- package/dist/mv-Z6MORUFL-El0zMsEA.mjs +7 -0
- package/dist/nl-U5YJDM32-BO1kUpkn.mjs +1 -0
- package/dist/nl-U5YJDM32-Y_hGSMac.mjs +17 -0
- package/dist/od-VJEF2UR5-CueTpZ68.mjs +5 -0
- package/dist/od-VJEF2UR5-DxUGtlve.mjs +1 -0
- package/dist/open-browser-BgReR_t5.mjs +2 -0
- package/dist/ordinal-BFK2XMXf.mjs +2 -0
- package/dist/packet-7NZHBO7P-B64OS2eJ.mjs +1 -0
- package/dist/parse-worker.d.mts +6626 -1
- package/dist/parse-worker.mjs +1 -1
- package/dist/paste-7N6AFSDS-BJHZcYXH.mjs +1 -0
- package/dist/paste-7N6AFSDS-BnqApCW_.mjs +8 -0
- package/dist/path-CIoCsClp.mjs +2 -0
- package/dist/pegDiagram-2B236MQR-PBU61CXk.mjs +2 -0
- package/dist/pie-RZYD4A2V-B313HDTA.mjs +1 -0
- package/dist/pieDiagram-ENE6RG2P-ClZWrO6e.mjs +40 -0
- package/dist/preview-BnqROnAm.mjs +1 -0
- package/dist/preview-Dnob-x-p.mjs +3 -0
- package/dist/printf-CX64KX2P-841sNxew.mjs +1 -0
- package/dist/printf-CX64KX2P-B_vWcqAL.mjs +15 -0
- package/dist/public/assets/ActivityModeContent-H-D1VX7m.js +1 -0
- package/dist/public/assets/AgentDiffPane-B-gK5PsE.js +2 -0
- package/dist/public/assets/ChangedOutsideBadge-D741mWRP.js +1 -0
- package/dist/public/assets/DocumentContext-CIVf31K9.js +38 -0
- package/dist/public/assets/FeedbackForm-YmqhKCxZ.js +1 -0
- package/dist/public/assets/ImportSkillDialog-DQBS4ypC.js +1 -0
- package/dist/public/assets/ManagedArtifactProperties-CE_UbtEZ.js +1 -0
- package/dist/public/assets/ManagedArtifactProperties-CawqG1nH.js +2 -0
- package/dist/public/assets/SessionsHost-Bp7gQA1o.js +2 -0
- package/dist/public/assets/SettingsDialogBody-BLpulm10.js +12 -0
- package/dist/public/assets/SkillToolbarControls-oKXEehFt.js +1 -0
- package/dist/public/assets/SourceEditor-C6NdTjpn.js +1 -0
- package/dist/public/assets/TerminalWindowApp-DDnvJYMu.js +1 -0
- package/dist/public/assets/ThreadView-CGjBIs53.js +10 -0
- package/dist/public/assets/TimelineDiffPane-BWfU5B2x.js +2 -0
- package/dist/public/assets/agent-diff-store-CwO6mhOq.js +1 -0
- package/dist/public/assets/auth-state-cache-BBgW3LTD.js +11 -0
- package/dist/public/assets/comment-chips-h8GZFVHH.js +5 -0
- package/dist/public/assets/follow-file-CJHokzM7.js +1 -0
- package/dist/public/assets/index-B6VepqFk.js +2097 -0
- package/dist/public/assets/selection-context-iNNNmmJS.js +4 -0
- package/dist/public/assets/skill-actions-8q8e7e5S.js +2 -0
- package/dist/public/assets/typing-burst-detector-D_ygX_hf.js +8 -0
- package/dist/public/assets/use-activity-panel-pkBl8bMj.js +1 -0
- package/dist/public/assets/use-open-skill-Mk41LRxd.js +1 -0
- package/dist/public/assets/use-skill-directory-Dzvfx2id.js +1 -0
- package/dist/public/assets/use-timeline-entry-diff-Dk10Z55V.js +6 -0
- package/dist/public/index.html +13 -13
- package/dist/pwd-D4OZ7N27-C41v1g3B.mjs +1 -0
- package/dist/pwd-D4OZ7N27-NYST_A3S.mjs +3 -0
- package/dist/python3-DNGS4G3E-DaBJervu.mjs +12 -0
- package/dist/python3-DNGS4G3E-OzxoFG34.mjs +12 -0
- package/dist/quadrantDiagram-ABIIQ3AL-Z4PbVL1N.mjs +8 -0
- package/dist/radar-I7S5WNFK-BdiwGd2_.mjs +1 -0
- package/dist/railroad-3IZDKUUU-O4nBw7jb.mjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-CDaO5Dcu.mjs +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-CS4l_gpR.mjs +1 -0
- package/dist/railroad-peg-LSFZ7HO6-bbLhALeS.mjs +1 -0
- package/dist/railroadDiagram-RFXS5EU6-ZSRYpY_p.mjs +2 -0
- package/dist/readlink-MI4GCHJF-CQlQ03aa.mjs +1 -0
- package/dist/readlink-MI4GCHJF-Dl1Uxmrf.mjs +6 -0
- package/dist/repair-launch-json-DF-pHfel.mjs +2 -0
- package/dist/repair-mcp-configs-Cr9jCNwk.mjs +2 -0
- package/dist/repair-skills-DADI6iaT.mjs +4 -0
- package/dist/repair-skills-DKwDAoHc.mjs +1 -0
- package/dist/requirementDiagram-TGXJPOKE-H6OWjjJE.mjs +85 -0
- package/dist/rev-XOSYPP45-BYe7prl1.mjs +1 -0
- package/dist/rev-XOSYPP45-D6eJxPKd.mjs +7 -0
- package/dist/rg-XNF3R3II-CmxxmmUf.mjs +1 -0
- package/dist/rg-XNF3R3II-vKB7djPZ.mjs +33 -0
- package/dist/rm-RTZG23RL-Bl5s9ltJ.mjs +1 -0
- package/dist/rm-RTZG23RL-sCMTtbxP.mjs +8 -0
- package/dist/rmdir-XTQXT7RK-C1ccje2_.mjs +1 -0
- package/dist/rmdir-XTQXT7RK-DZfv6Zfz.mjs +14 -0
- package/dist/rough.cjs-BGkc0Naf.mjs +2 -0
- package/dist/sankeyDiagram-HTMAVEWB-CtBVJJox.mjs +41 -0
- package/dist/sed-JAPPVBEU-C7wh6RxT.mjs +100 -0
- package/dist/sed-JAPPVBEU-D9bYEx2I.mjs +1 -0
- package/dist/seq-RN5ZUASB-CFySG-xk.mjs +1 -0
- package/dist/seq-RN5ZUASB-R5HjEVux.mjs +7 -0
- package/dist/sequenceDiagram-DBY2YBRQ-DDLm4Ak_.mjs +163 -0
- package/dist/server-lock-U8YDpJpq.mjs +1 -0
- package/dist/server-lock-aXnDVUI8.mjs +2 -0
- package/dist/sha1sum-VJPNLNU6-DfzpfxJ-.mjs +2 -0
- package/dist/sha1sum-VJPNLNU6-DgLJCjAg.mjs +1 -0
- package/dist/sha256sum-PI32XWXY-DZ42pgY3.mjs +1 -0
- package/dist/sha256sum-PI32XWXY-DrKtnAPK.mjs +2 -0
- package/dist/sizeCapture-X5ZJPWSS-Izaz24Pi.mjs +2 -0
- package/dist/skill-teardown-onVYT1VF.mjs +2 -0
- package/dist/sleep-VZFPZFWA-5fZFI3Vy.mjs +1 -0
- package/dist/sleep-VZFPZFWA-CBARUnrz.mjs +10 -0
- package/dist/sort-DCNRDA7U-RFl0HYBr.mjs +1 -0
- package/dist/sort-DCNRDA7U-vT57Mw8o.mjs +16 -0
- package/dist/split-SITCSYCZ-BdATfTxU.mjs +1 -0
- package/dist/split-SITCSYCZ-Ci_IfVPT.mjs +17 -0
- package/dist/sqlite3-TE5AIOTF-BIRMe0xz.mjs +1 -0
- package/dist/sqlite3-TE5AIOTF-BhXSdz7U.mjs +37 -0
- package/dist/src-BPVU4Y0o.mjs +2 -0
- package/dist/src-BmS3oGY4.mjs +1 -0
- package/dist/src-Dt5dAyFQ.mjs +2032 -0
- package/dist/src-TKCctdpc.mjs +348 -0
- package/dist/src-cRpQSbXB.mjs +1 -0
- package/dist/src-pUQbXiSN.mjs +20 -0
- package/dist/start-DQdc8wXO.mjs +4 -0
- package/dist/start-XIVqnuqY.mjs +1 -0
- package/dist/stat-BT5A227F-CEZPXJ9_.mjs +9 -0
- package/dist/stat-BT5A227F-Dd-OyLQQ.mjs +1 -0
- package/dist/stateDiagram-2N3HPSRC-pAn2bDnn.mjs +2 -0
- package/dist/stateDiagram-v2-6OUMAXLB-DCmVVpGm.mjs +2 -0
- package/dist/strings-7PLOGTPD-CiVw0Uh4.mjs +14 -0
- package/dist/strings-7PLOGTPD-v3qEuUEm.mjs +1 -0
- package/dist/swimlanes-5IMT3BWC-nSsjdSnj.mjs +2 -0
- package/dist/swimlanesDiagram-G3AALYLV-CdQlHesp.mjs +9 -0
- package/dist/tac-SJGXQ4T2-BL4Xd7y6.mjs +9 -0
- package/dist/tac-SJGXQ4T2-DphHfCAY.mjs +1 -0
- package/dist/tail-S5ULNTJU-Cfa1pDQZ.mjs +2 -0
- package/dist/tail-S5ULNTJU-D6qRQZwV.mjs +1 -0
- package/dist/tar-MZQD7NO4-HJsWmzu9.mjs +63 -0
- package/dist/tar-MZQD7NO4-oAQoyk28.mjs +1 -0
- package/dist/tee-O7VXZDCO-D95l5L5Z.mjs +3 -0
- package/dist/tee-O7VXZDCO-odVO6Wjw.mjs +1 -0
- package/dist/time-DEUO3QV2-CviQF55F.mjs +1 -0
- package/dist/time-DEUO3QV2-DwnT4FOS.mjs +14 -0
- package/dist/timeline-definition-FHXFAJF6-CnTXJoEq.mjs +121 -0
- package/dist/timeout-VRKMCG72-DFU5EkCe.mjs +12 -0
- package/dist/timeout-VRKMCG72-jeMAkAMc.mjs +1 -0
- package/dist/touch-DX2IJOQ4-CRX6GYeb.mjs +7 -0
- package/dist/touch-DX2IJOQ4-CyiMRd7b.mjs +1 -0
- package/dist/tr-2HXZRDSW-ByYmbFae.mjs +21 -0
- package/dist/tr-2HXZRDSW-CCce6lU_.mjs +1 -0
- package/dist/tree-LYXBS7DC-Dq6aWetx.mjs +12 -0
- package/dist/tree-LYXBS7DC-pAC77Hbt.mjs +1 -0
- package/dist/treeView-QDETBFTQ-BCAjffnq.mjs +1 -0
- package/dist/treemap-6X3UGDF4-Dv-54pyt.mjs +1 -0
- package/dist/true-WHJNXCHG-Dzdq7R5f.mjs +1 -0
- package/dist/true-WHJNXCHG-XC4ZnbBw.mjs +2 -0
- package/dist/unexpand-RGTMIGZM-B06mOUPB.mjs +1 -0
- package/dist/unexpand-RGTMIGZM-BL5sZ5_Z.mjs +11 -0
- package/dist/uniq-SUNANL47-BIgIOFSf.mjs +1 -0
- package/dist/uniq-SUNANL47-DBRSkw7j.mjs +5 -0
- package/dist/vennDiagram-L72KCM5P-CqTzYRfa.mjs +35 -0
- package/dist/wardley-OPB4EBWU-DSvo57UC.mjs +1 -0
- package/dist/wardleyDiagram-EHGQE667-WhxG-nRT.mjs +79 -0
- package/dist/wc-TQB3VNOX-9RyJlZXB.mjs +1 -0
- package/dist/wc-TQB3VNOX-DqHFY4jy.mjs +6 -0
- package/dist/which-XZHEH76L-CbmRVw8E.mjs +3 -0
- package/dist/which-XZHEH76L-SMFjHhz2.mjs +1 -0
- package/dist/whoami-DGKU3D2X-BDJh39KM.mjs +3 -0
- package/dist/whoami-DGKU3D2X-BIUooLXE.mjs +1 -0
- package/dist/write-project-skill-DOogyZge.mjs +56 -0
- package/dist/xan-UD7JYIL2-DAuAMQ0H.mjs +1 -0
- package/dist/xan-UD7JYIL2-DQo9f-1a.mjs +140 -0
- package/dist/xan-view-OW2TB7Z3-BhVOL6hm.mjs +1 -0
- package/dist/xan-view-OW2TB7Z3-CwG0zS53.mjs +1 -0
- package/dist/xargs-I6EZUCYF-C_ZtmUCd.mjs +5 -0
- package/dist/xargs-I6EZUCYF-INAdKqnR.mjs +1 -0
- package/dist/xychartDiagram-FW5EYKEG-DDE7TRrw.mjs +8 -0
- package/dist/yazl-BlMyAOcT.mjs +2 -0
- package/dist/yq-OAKYHSXH-C1fFFHD4.mjs +1 -0
- package/dist/yq-OAKYHSXH-COzSqY4J.mjs +288 -0
- package/package.json +7 -6
- package/dist/abnfDiagram-VRR7QNED-DQjgDcgA.mjs +0 -2
- package/dist/acp-harness-probe-DOXp9Wx4.mjs +0 -3
- package/dist/alias-JE7RI5QX-BfILuEvo.mjs +0 -1
- package/dist/arc-CO8jsQkL.mjs +0 -2
- package/dist/architecture-TIHT7OUA-CScIhnar.mjs +0 -1
- package/dist/architectureDiagram-ZJ3FMSHR-CkUIG8wd.mjs +0 -37
- package/dist/array-Cerc_8W3.mjs +0 -2
- package/dist/awk2-BBAGSFUB-BH8WxyhW.mjs +0 -1
- package/dist/banner-CIK2GwPx.mjs +0 -3
- package/dist/base64-4YMZCVJ5-CDuRvFBG.mjs +0 -1
- package/dist/basename-AA2KJYZQ-sv8gJZXS.mjs +0 -1
- package/dist/bash-IJWYRKFO-DKUaUgF9.mjs +0 -1
- package/dist/blockDiagram-677ZJIJ3-sLhYyPCr.mjs +0 -133
- package/dist/c4Diagram-LMCZKHZV-Cg6dfUXU.mjs +0 -11
- package/dist/cat-RDUMLXKC-BtNo16C3.mjs +0 -1
- package/dist/channel-DRk0OEK0.mjs +0 -2
- package/dist/chmod-SYMGL4JA-B15Xlp42.mjs +0 -1
- package/dist/chokidar-CVNrjmRM.mjs +0 -4
- package/dist/chunk-2Q5K7J3B-2Es1K_NO.mjs +0 -2
- package/dist/chunk-2TRDZQLB-G1LvPXqq.mjs +0 -18
- package/dist/chunk-32BRIVSS-ok2xg0Je.mjs +0 -2
- package/dist/chunk-3BS5SKQH-CFcrGLDG.mjs +0 -140
- package/dist/chunk-3H6UQG3A-Dx5ykWR0.mjs +0 -9
- package/dist/chunk-3ZUFRYJ4-DzbWfyzV.mjs +0 -2
- package/dist/chunk-4GTNDTRF-COTPYeV6.mjs +0 -8
- package/dist/chunk-4HHKTUW3-BkuKGebe.mjs +0 -3
- package/dist/chunk-4Q4SM6WR-i8tiQRv3.mjs +0 -5
- package/dist/chunk-52WLFC77-BaT5_S-q.mjs +0 -11
- package/dist/chunk-55VFSPNA-Ct9maI6O.mjs +0 -3
- package/dist/chunk-5FCAYU7R-of7BBDNL.mjs +0 -2
- package/dist/chunk-5HE753X5-9kILZ5Nr.mjs +0 -2
- package/dist/chunk-5JV3BV7I-BKVVlFxh.mjs +0 -2
- package/dist/chunk-5QVNJEHU-CvZ-NmqQ.mjs +0 -9
- package/dist/chunk-5TONJI2A-CGHpmUrS.mjs +0 -3
- package/dist/chunk-5V6VZH6T-DdeqP2TW.mjs +0 -2
- package/dist/chunk-5VM5RSS4-COK1ErrI.mjs +0 -16
- package/dist/chunk-62RKD26F-RtrcFE7S.mjs +0 -21
- package/dist/chunk-64BAICW3-0h-yIc1e.mjs +0 -2
- package/dist/chunk-6Z5SFZXK-C5owNg1o.mjs +0 -288
- package/dist/chunk-74CEPOFO--xsxhUFC.mjs +0 -23
- package/dist/chunk-7BUUIJ7U-_1oXd84C.mjs +0 -2
- package/dist/chunk-7L36YK2X-VlH7dlrD.mjs +0 -3
- package/dist/chunk-7TSDKFEO-BjOrsK6M.mjs +0 -2
- package/dist/chunk-A4HU7SVR-oMNSpej4.mjs +0 -3
- package/dist/chunk-A4JSPFCI-DtnWqT5O.mjs +0 -7
- package/dist/chunk-A65PWWJC-LctFeUxK.mjs +0 -3
- package/dist/chunk-A7A2DBEE-DuuhuGG1.mjs +0 -7
- package/dist/chunk-A7ICOL4V-CzYDHdxM.mjs +0 -14
- package/dist/chunk-ALLTKNUZ-BnLIZXEI.mjs +0 -6
- package/dist/chunk-APT7OOP2-DESh647P.mjs +0 -2
- package/dist/chunk-BIQX33UG-BVtPexox.mjs +0 -2
- package/dist/chunk-C7G6YPKG-DpNJWc2e.mjs +0 -2
- package/dist/chunk-CQNSW5MT-B6mAd0WS.mjs +0 -2
- package/dist/chunk-CYSBUYHQ-CTWbbsmm.mjs +0 -2
- package/dist/chunk-D4J545R4-Dy3lcp_X.mjs +0 -12
- package/dist/chunk-D6CWQ5DW-Dl4tJcwX.mjs +0 -6
- package/dist/chunk-D7MEQ3VN-B-Qyxyo5.mjs +0 -5
- package/dist/chunk-DBKNVD4L-Y2Mnp5lC.mjs +0 -10
- package/dist/chunk-DCAAORBQ-BxtVrSMT.mjs +0 -2
- package/dist/chunk-EEXR5ZDP-BcjEP2wd.mjs +0 -3
- package/dist/chunk-EIZGF4BS-DYiqM1Ss.mjs +0 -9
- package/dist/chunk-EMLP6XTP-AFimKO17.mjs +0 -2
- package/dist/chunk-EX3LRPZG-BYcqQlY8.mjs +0 -232
- package/dist/chunk-F23WWYKW-BuCITNd6.mjs +0 -17
- package/dist/chunk-FWX5IMBZ-BFNo8SGu.mjs +0 -2
- package/dist/chunk-GCTKCWKD-jz3yOk3f.mjs +0 -4
- package/dist/chunk-GOV5EKKI-IRzA9ik3.mjs +0 -10
- package/dist/chunk-GXVXFKBA-CGc4vqMu.mjs +0 -6
- package/dist/chunk-HDQ56CKY-Svz-iz8m.mjs +0 -16
- package/dist/chunk-HJQJAYMS-SgZmT_QE.mjs +0 -3
- package/dist/chunk-HJWBQKYG-BqFDM0xp.mjs +0 -6
- package/dist/chunk-HKLCLINH-DKx243zB.mjs +0 -63
- package/dist/chunk-HL6NGDO2-B9GCn41X.mjs +0 -24
- package/dist/chunk-HOUHSVGY-Cg_2_CUd.mjs +0 -2
- package/dist/chunk-HWKDQ44K-CVxg-h0V.mjs +0 -4
- package/dist/chunk-I57KEIP3-FVl4IVXz.mjs +0 -11
- package/dist/chunk-ICXQ74PX-CewdqzeE.mjs +0 -3
- package/dist/chunk-JG7HCLWE-BgiWVzAI.mjs +0 -3
- package/dist/chunk-JVPRLUMK-CH7w4zyh.mjs +0 -8
- package/dist/chunk-JWPE2WC7-cMhWwV9I.mjs +0 -2
- package/dist/chunk-K6LIBGJA-DI9ZkJey.mjs +0 -12
- package/dist/chunk-KEIR6QF5-BhaMJNB5.mjs +0 -176
- package/dist/chunk-KMEYNNUA-CabTsa7P.mjs +0 -16
- package/dist/chunk-KRBPSX3W-ciCGjpAL.mjs +0 -6
- package/dist/chunk-LL3S3NLB-r8mDpVuz.mjs +0 -2
- package/dist/chunk-LTZRCH7N-Cj1hz7m7.mjs +0 -32
- package/dist/chunk-LWEGUNWT-C3ON4AHi.mjs +0 -8
- package/dist/chunk-MDDMCKUK-D3MZs3FF.mjs +0 -7
- package/dist/chunk-MDLLFABN-DgTeOfIY.mjs +0 -73
- package/dist/chunk-MHTUABJP-BbSobv_U.mjs +0 -9
- package/dist/chunk-MIZPJHVH-CzqfuBdK.mjs +0 -8
- package/dist/chunk-MLXIYONF-BcM04nM_.mjs +0 -16
- package/dist/chunk-MOJQB5TN-CidbQQ7m.mjs +0 -89
- package/dist/chunk-MOZMSUNE-DTiZcqZ1.mjs +0 -2
- package/dist/chunk-MYE6AGBJ-B3ukegXT.mjs +0 -17
- package/dist/chunk-NAERJDUW-CoAYVGR3.mjs +0 -9
- package/dist/chunk-NCNPKYJZ-C1KcgrGe.mjs +0 -3
- package/dist/chunk-NUYSJFDK-sPbPxu4W.mjs +0 -8
- package/dist/chunk-OCLXQMOG-BdLZfp3D.mjs +0 -7
- package/dist/chunk-OCS6LSEM-7beNWT9m.mjs +0 -14
- package/dist/chunk-OGEWGWER-B-Vr80Fa.mjs +0 -2
- package/dist/chunk-OSBZ3O6U-DwDyo3Ly.mjs +0 -2
- package/dist/chunk-PBXLG62G-ww-bn-Tp.mjs +0 -9
- package/dist/chunk-PP6PSHAB-xKRHmmOd.mjs +0 -5
- package/dist/chunk-PUDLZKDR-CI0pacGF.mjs +0 -157
- package/dist/chunk-PXTK5WE2-Dfi2FrE5.mjs +0 -22
- package/dist/chunk-PYSFUGCK-BHwvxY2Q.mjs +0 -11
- package/dist/chunk-Q4XR5HBZ-4H-m7p0G.mjs +0 -71
- package/dist/chunk-QBLGF6JB-B_tvtCRO.mjs +0 -2
- package/dist/chunk-QCDB2VPH-DHsQu4h6.mjs +0 -7
- package/dist/chunk-QJ7O6ZN3-CTKdWbns.mjs +0 -6
- package/dist/chunk-R6QSAL5T-DA60heK6.mjs +0 -2
- package/dist/chunk-R7FJI6CG-BVR1ae7y.mjs +0 -2
- package/dist/chunk-RPNGRAAP-df7FdhI4.mjs +0 -8
- package/dist/chunk-RYQCIY6F-C8F82Uai.mjs +0 -2
- package/dist/chunk-SDNKECQQ-BuTL-ot2.mjs +0 -6
- package/dist/chunk-SNN4IESC-DVqEOGsL.mjs +0 -2
- package/dist/chunk-T56QNPHK-COZC2A_r.mjs +0 -15
- package/dist/chunk-TLSUDHID-DAREQN9J.mjs +0 -7
- package/dist/chunk-TOMNU26N-C3JZDC96.mjs +0 -5
- package/dist/chunk-TP4BZANS-C2Z-CHHA.mjs +0 -21
- package/dist/chunk-TXBZCHCQ-DOaoE5TV.mjs +0 -6
- package/dist/chunk-U6XO7XAA-BpjdcG5R.mjs +0 -3
- package/dist/chunk-V5MWI2OL-D8SKWVO_.mjs +0 -5
- package/dist/chunk-V7JOEXUC-CdEIYYNc.mjs +0 -207
- package/dist/chunk-V7TAPXDL-CQbB1mLa.mjs +0 -28
- package/dist/chunk-VAUOI2AC-Ds6ZNp2p.mjs +0 -2
- package/dist/chunk-VJFXDYWH-C7Lg-Yts.mjs +0 -11
- package/dist/chunk-VOBGTVA6-CKl2LR-K.mjs +0 -7
- package/dist/chunk-VR4S4FIN-mH-q10Uq.mjs +0 -2
- package/dist/chunk-VYOJP4TV-DFxaC5Uc.mjs +0 -14
- package/dist/chunk-WKFATFPP-R7B51gCW.mjs +0 -5
- package/dist/chunk-WYO6CB5R-Cg1RXhAT.mjs +0 -130
- package/dist/chunk-X2AJGDEF-D97qevlv.mjs +0 -2
- package/dist/chunk-XKQRETAK-BTmmMuta.mjs +0 -2
- package/dist/chunk-XKWWSDBF-BGzAOrO3.mjs +0 -37
- package/dist/chunk-XVDPCNWR-3ajbQWzU.mjs +0 -12
- package/dist/chunk-XXDRQBXY-BvbdToKZ.mjs +0 -2
- package/dist/chunk-Y2CYZVJY-C7FmC3Cl.mjs +0 -2
- package/dist/chunk-YMMW5UAP-DbBgrudQ.mjs +0 -33
- package/dist/chunk-YOTPTUD7-BSOqhRr-.mjs +0 -2
- package/dist/chunk-YTNYSM6T-CoxqCaLl.mjs +0 -12
- package/dist/chunk-YULBWSET-CuKhTv4j.mjs +0 -14
- package/dist/chunk-Z6LRHWXI-CujGXDs8.mjs +0 -14
- package/dist/chunk-Z7JVV2SM-CiJwkxuY.mjs +0 -12
- package/dist/chunk-ZGVPDNZ5-BE_qYP6z.mjs +0 -63
- package/dist/chunk-ZIRB5QZD-mhYZnDzb.mjs +0 -39
- package/dist/chunk-ZZO3UDB3-DCkJjNN2.mjs +0 -100
- package/dist/classDiagram-OUVF2IWQ-rKP7gcsT.mjs +0 -2
- package/dist/classDiagram-v2-EOCWNBFH-BoWf4tYI.mjs +0 -2
- package/dist/clear-5CZ5X4YR-BNXs_KRD.mjs +0 -1
- package/dist/column-WLPMMSTS-BrY1gQI1.mjs +0 -1
- package/dist/comm-5SLSESQG-aGB098lH.mjs +0 -1
- package/dist/constants-J4-mibQ1.mjs +0 -2
- package/dist/cose-bilkent-JH36ORCC-CMfIp4st.mjs +0 -2
- package/dist/cp-XOYR4ABJ-D0LUaMQT.mjs +0 -1
- package/dist/curl-47BFPSFW-d1TMPUJw.mjs +0 -26
- package/dist/cut-OPC3VAGB-FXZX1WQM.mjs +0 -1
- package/dist/cynefin-VYW2F7L2-DtazLHUs.mjs +0 -1
- package/dist/cynefinDiagram-TSTJHNR4-CFbt5v4d.mjs +0 -63
- package/dist/cytoscape.esm-Dq6ZD9GH.mjs +0 -332
- package/dist/dagre-CbI1Ylqw.mjs +0 -2
- package/dist/dagre-VKFMJZFB-BWP36rMX.mjs +0 -5
- package/dist/date-DD7FVA2V-7hk1aW9g.mjs +0 -1
- package/dist/defaultLocale-9SlCuWEL.mjs +0 -2
- package/dist/diagram-FQU43EPY-D2pf7IBH.mjs +0 -4
- package/dist/diagram-G47NLZAW-BlOXaBe6.mjs +0 -25
- package/dist/diagram-NH7WQ7WH-DOwRNWDI.mjs +0 -25
- package/dist/diagram-OA4YK3LP-uyGYHUoX.mjs +0 -31
- package/dist/diagram-WEI45ONY-CmW1X9Kx.mjs +0 -42
- package/dist/diff-HJF2MPDN-bcOaHvDo.mjs +0 -1
- package/dist/dirname-LEMTZZFS-RRQ5Ar_Z.mjs +0 -1
- package/dist/dist-BmYngy7b.mjs +0 -2
- package/dist/du-WO2ENHXQ-Cg71FvLi.mjs +0 -1
- package/dist/ebnfDiagram-CCIWWBDH-BpBYlrRH.mjs +0 -2
- package/dist/echo-O45JWWI2-BacOdfFs.mjs +0 -1
- package/dist/env-5EPCWSXR-T8XCKOX_.mjs +0 -1
- package/dist/erDiagram-Q63AITRT-ChoKKmxG.mjs +0 -86
- package/dist/eventmodeling-45OFAUF4-BIXp-P6z.mjs +0 -1
- package/dist/execAsync-BKp2jujj.mjs +0 -2
- package/dist/execAsync-BuUKdKlz.mjs +0 -2
- package/dist/expand-DTNXU4LQ-BD32VJaK.mjs +0 -1
- package/dist/expr-YYCVMXE3-CgQib9F9.mjs +0 -1
- package/dist/file-IGDTDPLG-BAlm5q29.mjs +0 -1
- package/dist/find-DH2ALKQS-z-G7VPmU.mjs +0 -1
- package/dist/flag-coverage-6JEX67RU-Cj_NycUm.mjs +0 -2
- package/dist/flowDiagram-23GEKE2U-B4VrCGdr.mjs +0 -1
- package/dist/fold-LDSORVYE-CDU-6eOS.mjs +0 -1
- package/dist/fs-traced-By5aY-RE.mjs +0 -12
- package/dist/fs-traced-CkLhqsEn.mjs +0 -1
- package/dist/ganttDiagram-NO4QXBWP-Cv7sGb-R.mjs +0 -293
- package/dist/getMachineId-bsd-DtFrm1Uy.mjs +0 -2
- package/dist/getMachineId-bsd-GFl1-Bje.mjs +0 -2
- package/dist/getMachineId-darwin--IR8MP8d.mjs +0 -3
- package/dist/getMachineId-darwin-28jQHa_N.mjs +0 -3
- package/dist/getMachineId-linux-BZgyplQ5.mjs +0 -2
- package/dist/getMachineId-linux-Bzx3S652.mjs +0 -2
- package/dist/getMachineId-unsupported-CyTjujlI.mjs +0 -2
- package/dist/getMachineId-unsupported-DuB0leRF.mjs +0 -2
- package/dist/getMachineId-win-BmvAZEMa.mjs +0 -2
- package/dist/getMachineId-win-CuOFQQ73.mjs +0 -2
- package/dist/git-handle-BDmbIWwd.mjs +0 -1
- package/dist/git-handle-BHe1p04S.mjs +0 -10
- package/dist/gitGraph-TEB2WS4Q-BaTdqV7-.mjs +0 -1
- package/dist/gitGraphDiagram-IHSO6WYX-DxsFHicP.mjs +0 -107
- package/dist/graphlib-DKEQBDTz.mjs +0 -2
- package/dist/grep-2HUTXO5U-CsEE08ya.mjs +0 -1
- package/dist/gzip-AQXSGOVS-CmMf6H0r.mjs +0 -1
- package/dist/head-HT2B6D2J-DSBJixLD.mjs +0 -1
- package/dist/help-VVWX7SA5-BncYWg0B.mjs +0 -1
- package/dist/history-J4QRNGRO-CULSDkzp.mjs +0 -1
- package/dist/hostname-BK6HG2DE-CaZb-T_R.mjs +0 -1
- package/dist/html-to-markdown-TFCECAGV-CF0t8_d3.mjs +0 -1
- package/dist/index-1MIt1xrM.d.mts +0 -6628
- package/dist/info-DKCQHKI2-BxlpeeVn.mjs +0 -1
- package/dist/infoDiagram-FWYZ7A6U-CbPpTq2x.mjs +0 -3
- package/dist/init-Buw5jj4Q.mjs +0 -2
- package/dist/init-DDwncQha.mjs +0 -1
- package/dist/init-ZOWQ1Th4.mjs +0 -643
- package/dist/ishikawaDiagram-FXEZZL3T-Dd5BEpOv.mjs +0 -71
- package/dist/join-GG2LDHE5-kABASDPB.mjs +0 -1
- package/dist/journeyDiagram-5HDEW3XC-W6Nbr96_.mjs +0 -140
- package/dist/jq-LYZFFBZB-CIwp4u6h.mjs +0 -1
- package/dist/js-exec-VXN6TZ7U-1yyCDQqM.mjs +0 -97
- package/dist/kanban-definition-HUTT4EX6-xcwe5vNg.mjs +0 -90
- package/dist/launch-json-removal-CcFuFFS1.mjs +0 -2
- package/dist/lib-BCIeHFfP.mjs +0 -2
- package/dist/lib-TLTWf9qr.mjs +0 -195
- package/dist/line-Cq-NoiNn.mjs +0 -2
- package/dist/linear-DPbvcrPk.mjs +0 -2
- package/dist/ln-4TRFBYAT-Dhr3hBr6.mjs +0 -1
- package/dist/loader-BcwbnY_K.mjs +0 -1
- package/dist/loader-ji3pPcXi.mjs +0 -2
- package/dist/logger-BZPV1wv8.mjs +0 -39
- package/dist/ls-KSXFZCWH-BEv3e7-2.mjs +0 -1
- package/dist/lzma-Dh_aFpqW.mjs +0 -2
- package/dist/map-CFzSl60r.mjs +0 -2
- package/dist/md-manager-B4-M0hXs.mjs +0 -2
- package/dist/md5sum-INMIK4DX-CJ1G9gTe.mjs +0 -1
- package/dist/mermaid-parser.core-DejmtVwC.mjs +0 -4
- package/dist/mermaid.core-CB8v9A8r.mjs +0 -16
- package/dist/mindmap-definition-LN4V7U3C-BiYp6fzL.mjs +0 -97
- package/dist/mkdir-TDEMSB6C-BY7IIkok.mjs +0 -1
- package/dist/mv-Z6MORUFL-C4m2WG8E.mjs +0 -1
- package/dist/nl-U5YJDM32-CrNZhLtI.mjs +0 -1
- package/dist/od-VJEF2UR5-5RFpmlxK.mjs +0 -1
- package/dist/open-browser-CxnOIVsL.mjs +0 -2
- package/dist/ordinal-D5S_JXYv.mjs +0 -2
- package/dist/packet-7NZHBO7P-DJoR1MQJ.mjs +0 -1
- package/dist/paste-7N6AFSDS-DQNANxpk.mjs +0 -1
- package/dist/path-D4ahAhVD.mjs +0 -2
- package/dist/pegDiagram-2B236MQR-DMP1ng8V.mjs +0 -2
- package/dist/pie-RZYD4A2V-Ba8iL0H-.mjs +0 -1
- package/dist/pieDiagram-ENE6RG2P-CSKXRjGQ.mjs +0 -40
- package/dist/preview-2rQXoRuM.mjs +0 -3
- package/dist/preview-MV-qHfzy.mjs +0 -1
- package/dist/printf-CX64KX2P-CKuJk-Cs.mjs +0 -1
- package/dist/public/assets/ActivityModeContent-C08FYohG.js +0 -1
- package/dist/public/assets/AgentDiffPane-T499-ugv.js +0 -2
- package/dist/public/assets/ChangedOutsideBadge-GeQfL_b-.js +0 -1
- package/dist/public/assets/DocumentContext-C-Lo65-_.js +0 -38
- package/dist/public/assets/FeedbackForm-CmdTz11F.js +0 -1
- package/dist/public/assets/ImportSkillDialog-ChsGV6eb.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-B1ZA0ofn.js +0 -2
- package/dist/public/assets/ManagedArtifactProperties-B_ecuboX.js +0 -1
- package/dist/public/assets/SessionsHost-BobZkNwc.js +0 -2
- package/dist/public/assets/SettingsDialogBody-COTbFRqi.js +0 -12
- package/dist/public/assets/SkillToolbarControls-PvRY_LHn.js +0 -1
- package/dist/public/assets/SourceEditor-Duqpede9.js +0 -1
- package/dist/public/assets/TerminalWindowApp-CgWp2eC-.js +0 -1
- package/dist/public/assets/ThreadView-VqdgemBS.js +0 -10
- package/dist/public/assets/TimelineDiffPane-DnaRcvCk.js +0 -2
- package/dist/public/assets/agent-diff-store-B7oQn7l7.js +0 -1
- package/dist/public/assets/auth-state-cache-BUYyIMUZ.js +0 -11
- package/dist/public/assets/comment-chips-BhvfCPCk.js +0 -5
- package/dist/public/assets/follow-file-CWSsUd-S.js +0 -1
- package/dist/public/assets/index-Dmlpu4P1.js +0 -2097
- package/dist/public/assets/selection-context-CSP8zK1H.js +0 -4
- package/dist/public/assets/skill-actions-98H3SnCL.js +0 -2
- package/dist/public/assets/typing-burst-detector-BOmjXV-P.js +0 -8
- package/dist/public/assets/use-activity-panel-BwANCYjg.js +0 -1
- package/dist/public/assets/use-open-skill-DCSEJ3jJ.js +0 -1
- package/dist/public/assets/use-skill-directory-D9S5f8By.js +0 -1
- package/dist/public/assets/use-timeline-entry-diff-CB_cI1yy.js +0 -6
- package/dist/pwd-D4OZ7N27-CSTLotxZ.mjs +0 -1
- package/dist/python3-DNGS4G3E-BZ5fPY5e.mjs +0 -12
- package/dist/quadrantDiagram-ABIIQ3AL-Do93EPf_.mjs +0 -8
- package/dist/radar-I7S5WNFK-HP72Fmhl.mjs +0 -1
- package/dist/railroad-3IZDKUUU-DC3PWo_6.mjs +0 -1
- package/dist/railroad-abnf-AHOZXSZD-Vgpa9_KI.mjs +0 -1
- package/dist/railroad-ebnf-EBAXGLYW-B4SmMMsT.mjs +0 -1
- package/dist/railroad-peg-LSFZ7HO6-DLlDiUuB.mjs +0 -1
- package/dist/railroadDiagram-RFXS5EU6-BBHONGQu.mjs +0 -2
- package/dist/readlink-MI4GCHJF-V9fwXBrg.mjs +0 -1
- package/dist/repair-launch-json-Cq9ghST3.mjs +0 -2
- package/dist/repair-mcp-configs-DY0FS2-y.mjs +0 -2
- package/dist/repair-skills-CkZZbtNk.mjs +0 -4
- package/dist/repair-skills-l9Id0gzv.mjs +0 -1
- package/dist/requirementDiagram-TGXJPOKE-CAGy_wFo.mjs +0 -85
- package/dist/rev-XOSYPP45-G2PvMYC2.mjs +0 -1
- package/dist/rg-XNF3R3II-CuFYIwNn.mjs +0 -1
- package/dist/rm-RTZG23RL-BOvMrhon.mjs +0 -1
- package/dist/rmdir-XTQXT7RK-Dk19R-p8.mjs +0 -1
- package/dist/rough.cjs-LxmwwhvT.mjs +0 -2
- package/dist/sankeyDiagram-HTMAVEWB-B59ayZ_U.mjs +0 -41
- package/dist/sed-JAPPVBEU-BUaK4riL.mjs +0 -1
- package/dist/seq-RN5ZUASB-D5aLn_so.mjs +0 -1
- package/dist/sequenceDiagram-DBY2YBRQ-BqY5gm2k.mjs +0 -163
- package/dist/server-lock-BleUv9m0.mjs +0 -2
- package/dist/server-lock-uucDARDL.mjs +0 -1
- package/dist/sha1sum-VJPNLNU6-DnTKth9v.mjs +0 -1
- package/dist/sha256sum-PI32XWXY-Z-xtGDHc.mjs +0 -1
- package/dist/sizeCapture-X5ZJPWSS-D7Nqbe-W.mjs +0 -2
- package/dist/skill-teardown-CZnemDLF.mjs +0 -2
- package/dist/sleep-VZFPZFWA-DcISab6N.mjs +0 -1
- package/dist/sort-DCNRDA7U-C1gRzOOY.mjs +0 -1
- package/dist/split-SITCSYCZ-D4U2N_sH.mjs +0 -1
- package/dist/sqlite3-TE5AIOTF-DcjYN7WW.mjs +0 -1
- package/dist/src-9BFQh559.mjs +0 -348
- package/dist/src-9I3GiOoK.mjs +0 -2032
- package/dist/src-BuBt_xnY.mjs +0 -2
- package/dist/src-Dl8P6sfz.mjs +0 -20
- package/dist/src-h5dDPK2z.mjs +0 -1
- package/dist/start-BYY0acPS.mjs +0 -1
- package/dist/start-C4KuZHu5.mjs +0 -4
- package/dist/stat-BT5A227F-B4qwqNn_.mjs +0 -1
- package/dist/stateDiagram-2N3HPSRC-BD1FBZi9.mjs +0 -2
- package/dist/stateDiagram-v2-6OUMAXLB-CqmBRdZY.mjs +0 -2
- package/dist/strings-7PLOGTPD-BJ6vWsQi.mjs +0 -1
- package/dist/swimlanes-5IMT3BWC-D2eO0gTx.mjs +0 -2
- package/dist/swimlanesDiagram-G3AALYLV-BiRCZWbo.mjs +0 -9
- package/dist/tac-SJGXQ4T2-D-bfDFKg.mjs +0 -1
- package/dist/tail-S5ULNTJU-CWnyTuXg.mjs +0 -1
- package/dist/tar-MZQD7NO4-Cx5bpVMY.mjs +0 -1
- package/dist/tee-O7VXZDCO-B_duU1hV.mjs +0 -1
- package/dist/time-DEUO3QV2-CekCKA2I.mjs +0 -1
- package/dist/timeline-definition-FHXFAJF6-DZHpuaV_.mjs +0 -121
- package/dist/timeout-VRKMCG72-DaJVXXR3.mjs +0 -1
- package/dist/touch-DX2IJOQ4-CZteiICw.mjs +0 -1
- package/dist/tr-2HXZRDSW-D4XuTGWg.mjs +0 -1
- package/dist/tree-LYXBS7DC-CUIzQKTG.mjs +0 -1
- package/dist/treeView-QDETBFTQ-C9yOsbGY.mjs +0 -1
- package/dist/treemap-6X3UGDF4-iowse2nY.mjs +0 -1
- package/dist/true-WHJNXCHG-BzxCUQFd.mjs +0 -1
- package/dist/unexpand-RGTMIGZM-x3XCmR3I.mjs +0 -1
- package/dist/uniq-SUNANL47-DpupkNiO.mjs +0 -1
- package/dist/vennDiagram-L72KCM5P-CGoW4QcS.mjs +0 -35
- package/dist/wardley-OPB4EBWU-BL1Dan_S.mjs +0 -1
- package/dist/wardleyDiagram-EHGQE667-DHS8jBWZ.mjs +0 -79
- package/dist/wc-TQB3VNOX-D8llmcL9.mjs +0 -1
- package/dist/which-XZHEH76L-imZgNd5x.mjs +0 -1
- package/dist/whoami-DGKU3D2X-CzLNG51j.mjs +0 -1
- package/dist/write-project-skill-WXZSbQlg.mjs +0 -56
- package/dist/xan-UD7JYIL2-_38Iv1cI.mjs +0 -1
- package/dist/xan-view-OW2TB7Z3-RT-IKMgr.mjs +0 -1
- package/dist/xargs-I6EZUCYF-Bu8VhXV_.mjs +0 -1
- package/dist/xychartDiagram-FW5EYKEG-CG0DSvm_.mjs +0 -8
- package/dist/yq-OAKYHSXH-BcCBaLJN.mjs +0 -1
- /package/dist/{expansion-VBDYWVZR-CeY6vkty.mjs → expansion-VBDYWVZR-CpX0YZMb.mjs} +0 -0
package/dist/src-BuBt_xnY.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{o as e,t}from"./chunk-DTipWd-i.mjs";import{n}from"./chunk-Y2CYZVJY-C7FmC3Cl.mjs";var r=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),ee=E.prototype;return w.prototype=ee,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){ee[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),i=e(r(),1),a={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},o={trace:n((...e)=>{},`trace`),debug:n((...e)=>{},`debug`),info:n((...e)=>{},`info`),warn:n((...e)=>{},`warn`),error:n((...e)=>{},`error`),fatal:n((...e)=>{},`fatal`)},s=n(function(e=`fatal`){let t=a.fatal;typeof e==`string`?e.toLowerCase()in a&&(t=a[e]):typeof e==`number`&&(t=e),o.trace=()=>{},o.debug=()=>{},o.info=()=>{},o.warn=()=>{},o.error=()=>{},o.fatal=()=>{},t<=a.fatal&&(o.fatal=console.error?console.error.bind(console,c(`FATAL`),`color: orange`):console.log.bind(console,`\x1B[35m`,c(`FATAL`))),t<=a.error&&(o.error=console.error?console.error.bind(console,c(`ERROR`),`color: orange`):console.log.bind(console,`\x1B[31m`,c(`ERROR`))),t<=a.warn&&(o.warn=console.warn?console.warn.bind(console,c(`WARN`),`color: orange`):console.log.bind(console,`\x1B[33m`,c(`WARN`))),t<=a.info&&(o.info=console.info?console.info.bind(console,c(`INFO`),`color: lightblue`):console.log.bind(console,`\x1B[34m`,c(`INFO`))),t<=a.debug&&(o.debug=console.debug?console.debug.bind(console,c(`DEBUG`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,c(`DEBUG`))),t<=a.trace&&(o.trace=console.debug?console.debug.bind(console,c(`TRACE`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,c(`TRACE`)))},`setLogLevel`),c=n(e=>`%c${(0,i.default)().format(`ss.SSS`)} : ${e} : `,`format`),l={value:()=>{}};function u(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new d(n)}function d(e){this._=e}function f(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}d.prototype=u.prototype={constructor:d,on:function(e,t){var n=this._,r=f(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=p(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=m(n[i],e.name,t);else if(t==null)for(i in n)n[i]=m(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new d(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function p(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function m(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=l,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var h={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function g(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),h.hasOwnProperty(t)?{space:h[t],local:e}:e}function _(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function v(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function y(e){var t=g(e);return(t.local?v:_)(t)}function b(){}function x(e){return e==null?b:function(){return this.querySelector(e)}}function S(e){typeof e!=`function`&&(e=x(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new k(r,this._parents)}function C(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function w(){return[]}function T(e){return e==null?w:function(){return this.querySelectorAll(e)}}function E(e){return function(){return C(e.apply(this,arguments))}}function ee(e){e=typeof e==`function`?E(e):T(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new k(r,i)}function te(e){return function(){return this.matches(e)}}function ne(e){return function(t){return t.matches(e)}}var re=Array.prototype.find;function ie(e){return function(){return re.call(this.children,e)}}function ae(){return this.firstElementChild}function oe(e){return this.select(e==null?ae:ie(typeof e==`function`?e:ne(e)))}var se=Array.prototype.filter;function ce(){return Array.from(this.children)}function le(e){return function(){return se.call(this.children,e)}}function ue(e){return this.selectAll(e==null?ce:le(typeof e==`function`?e:ne(e)))}function de(e){typeof e!=`function`&&(e=te(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new k(r,this._parents)}function fe(e){return Array(e.length)}function pe(){return new k(this._enter||this._groups.map(fe),this._parents)}function D(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}D.prototype={constructor:D,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function me(e){return function(){return e}}function he(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new D(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function ge(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new D(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function _e(e){return e.__data__}function ve(e,t){if(!arguments.length)return Array.from(this,_e);var n=t?ge:he,r=this._parents,i=this._groups;typeof e!=`function`&&(e=me(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=ye(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new k(o,r),o._enter=s,o._exit=c,o}function ye(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function be(){return new k(this._exit||this._groups.map(fe),this._parents)}function xe(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Se(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new k(s,this._parents)}function Ce(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function we(e){e||=Te;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new k(i,this._parents).order()}function Te(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ee(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function De(){return Array.from(this)}function Oe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function ke(){let e=0;for(let t of this)++e;return e}function Ae(){return!this.node()}function je(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Me(e){return function(){this.removeAttribute(e)}}function Ne(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Pe(e,t){return function(){this.setAttribute(e,t)}}function Fe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Ie(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Le(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Re(e,t){var n=g(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Ne:Me:typeof t==`function`?n.local?Le:Ie:n.local?Fe:Pe)(n,t))}function ze(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Be(e){return function(){this.style.removeProperty(e)}}function Ve(e,t,n){return function(){this.style.setProperty(e,t,n)}}function He(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Ue(e,t,n){return arguments.length>1?this.each((t==null?Be:typeof t==`function`?He:Ve)(e,t,n??``)):O(this.node(),e)}function O(e,t){return e.style.getPropertyValue(t)||ze(e).getComputedStyle(e,null).getPropertyValue(t)}function We(e){return function(){delete this[e]}}function Ge(e,t){return function(){this[e]=t}}function Ke(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function qe(e,t){return arguments.length>1?this.each((t==null?We:typeof t==`function`?Ke:Ge)(e,t)):this.node()[e]}function Je(e){return e.trim().split(/^|\s+/)}function Ye(e){return e.classList||new Xe(e)}function Xe(e){this._node=e,this._names=Je(e.getAttribute(`class`)||``)}Xe.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function Ze(e,t){for(var n=Ye(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Qe(e,t){for(var n=Ye(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function $e(e){return function(){Ze(this,e)}}function et(e){return function(){Qe(this,e)}}function tt(e,t){return function(){(t.apply(this,arguments)?Ze:Qe)(this,e)}}function nt(e,t){var n=Je(e+``);if(arguments.length<2){for(var r=Ye(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?tt:t?$e:et)(n,t))}function rt(){this.textContent=``}function it(e){return function(){this.textContent=e}}function at(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function ot(e){return arguments.length?this.each(e==null?rt:(typeof e==`function`?at:it)(e)):this.node().textContent}function st(){this.innerHTML=``}function ct(e){return function(){this.innerHTML=e}}function lt(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function ut(e){return arguments.length?this.each(e==null?st:(typeof e==`function`?lt:ct)(e)):this.node().innerHTML}function dt(){this.nextSibling&&this.parentNode.appendChild(this)}function ft(){return this.each(dt)}function pt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function mt(){return this.each(pt)}function ht(e){var t=typeof e==`function`?e:y(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function gt(){return null}function _t(e,t){var n=typeof e==`function`?e:y(e),r=t==null?gt:typeof t==`function`?t:x(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function vt(){var e=this.parentNode;e&&e.removeChild(this)}function yt(){return this.each(vt)}function bt(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function xt(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function St(e){return this.select(e?xt:bt)}function Ct(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function wt(e){return function(t){e.call(this,t,this.__data__)}}function Tt(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Et(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Dt(e,t,n){return function(){var r=this.__on,i,a=wt(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Ot(e,t,n){var r=Tt(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?Dt:Et,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function kt(e,t,n){var r=ze(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function At(e,t){return function(){return kt(this,e,t)}}function jt(e,t){return function(){return kt(this,e,t.apply(this,arguments))}}function Mt(e,t){return this.each((typeof t==`function`?jt:At)(e,t))}function*Nt(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var Pt=[null];function k(e,t){this._groups=e,this._parents=t}function A(){return new k([[document.documentElement]],Pt)}function Ft(){return this}k.prototype=A.prototype={constructor:k,select:S,selectAll:ee,selectChild:oe,selectChildren:ue,filter:de,data:ve,enter:pe,exit:be,join:xe,merge:Se,selection:Ft,order:Ce,sort:we,call:Ee,nodes:De,node:Oe,size:ke,empty:Ae,each:je,attr:Re,style:Ue,property:qe,classed:nt,text:ot,html:ut,raise:ft,lower:mt,append:ht,insert:_t,remove:yt,clone:St,datum:Ct,on:Ot,dispatch:Mt,[Symbol.iterator]:Nt};function It(e){return typeof e==`string`?new k([[document.querySelector(e)]],[document.documentElement]):new k([[e]],Pt)}function Lt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Rt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function j(){}var M=.7,zt=1/M,N=`\\s*([+-]?\\d+)\\s*`,P=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,F=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Bt=/^#([0-9a-f]{3,8})$/,Vt=RegExp(`^rgb\\(${N},${N},${N}\\)$`),Ht=RegExp(`^rgb\\(${F},${F},${F}\\)$`),Ut=RegExp(`^rgba\\(${N},${N},${N},${P}\\)$`),Wt=RegExp(`^rgba\\(${F},${F},${F},${P}\\)$`),Gt=RegExp(`^hsl\\(${P},${F},${F}\\)$`),Kt=RegExp(`^hsla\\(${P},${F},${F},${P}\\)$`),qt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Lt(j,I,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Jt,formatHex:Jt,formatHex8:Yt,formatHsl:Xt,formatRgb:Zt,toString:Zt});function Jt(){return this.rgb().formatHex()}function Yt(){return this.rgb().formatHex8()}function Xt(){return on(this).formatHsl()}function Zt(){return this.rgb().formatRgb()}function I(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Bt.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Qt(t):n===3?new R(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?L(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?L(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Vt.exec(e))?new R(t[1],t[2],t[3],1):(t=Ht.exec(e))?new R(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ut.exec(e))?L(t[1],t[2],t[3],t[4]):(t=Wt.exec(e))?L(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Gt.exec(e))?an(t[1],t[2]/100,t[3]/100,1):(t=Kt.exec(e))?an(t[1],t[2]/100,t[3]/100,t[4]):qt.hasOwnProperty(e)?Qt(qt[e]):e===`transparent`?new R(NaN,NaN,NaN,0):null}function Qt(e){return new R(e>>16&255,e>>8&255,e&255,1)}function L(e,t,n,r){return r<=0&&(e=t=n=NaN),new R(e,t,n,r)}function $t(e){return e instanceof j||(e=I(e)),e?(e=e.rgb(),new R(e.r,e.g,e.b,e.opacity)):new R}function en(e,t,n,r){return arguments.length===1?$t(e):new R(e,t,n,r??1)}function R(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Lt(R,en,Rt(j,{brighter(e){return e=e==null?zt:zt**+e,new R(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?M:M**+e,new R(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new R(B(this.r),B(this.g),B(this.b),z(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tn,formatHex:tn,formatHex8:nn,formatRgb:rn,toString:rn}));function tn(){return`#${V(this.r)}${V(this.g)}${V(this.b)}`}function nn(){return`#${V(this.r)}${V(this.g)}${V(this.b)}${V((isNaN(this.opacity)?1:this.opacity)*255)}`}function rn(){let e=z(this.opacity);return`${e===1?`rgb(`:`rgba(`}${B(this.r)}, ${B(this.g)}, ${B(this.b)}${e===1?`)`:`, ${e})`}`}function z(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function B(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function V(e){return e=B(e),(e<16?`0`:``)+e.toString(16)}function an(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new H(e,t,n,r)}function on(e){if(e instanceof H)return new H(e.h,e.s,e.l,e.opacity);if(e instanceof j||(e=I(e)),!e)return new H;if(e instanceof H)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new H(o,s,c,e.opacity)}function sn(e,t,n,r){return arguments.length===1?on(e):new H(e,t,n,r??1)}function H(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Lt(H,sn,Rt(j,{brighter(e){return e=e==null?zt:zt**+e,new H(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?M:M**+e,new H(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new R(ln(e>=240?e-240:e+120,i,r),ln(e,i,r),ln(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new H(cn(this.h),U(this.s),U(this.l),z(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=z(this.opacity);return`${e===1?`hsl(`:`hsla(`}${cn(this.h)}, ${U(this.s)*100}%, ${U(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function cn(e){return e=(e||0)%360,e<0?e+360:e}function U(e){return Math.max(0,Math.min(1,e||0))}function ln(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var un=e=>()=>e;function dn(e,t){return function(n){return e+n*t}}function fn(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function pn(e,t){var n=t-e;return n?dn(e,n>180||n<-180?n-360*Math.round(n/360):n):un(isNaN(e)?t:e)}function mn(e){return(e=+e)==1?hn:function(t,n){return n-t?fn(t,n,e):un(isNaN(t)?n:t)}}function hn(e,t){var n=t-e;return n?dn(e,n):un(isNaN(e)?t:e)}var gn=(function e(t){var n=mn(t);function r(e,t){var r=n((e=en(e)).r,(t=en(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=hn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function W(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var _n=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vn=new RegExp(_n.source,`g`);function yn(e){return function(){return e}}function bn(e){return function(t){return e(t)+``}}function xn(e,t){var n=_n.lastIndex=vn.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=_n.exec(e))&&(i=vn.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:W(r,i)})),n=vn.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?bn(c[0].x):yn(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var Sn=180/Math.PI,Cn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function wn(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Sn,skewX:Math.atan(c)*Sn,scaleX:o,scaleY:s}}var Tn;function En(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Cn:wn(t.a,t.b,t.c,t.d,t.e,t.f)}function Dn(e){return e==null||(Tn||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Tn.setAttribute(`transform`,e),!(e=Tn.transform.baseVal.consolidate()))?Cn:(e=e.matrix,wn(e.a,e.b,e.c,e.d,e.e,e.f))}function On(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:W(e,i)},{i:c-2,x:W(r,a)})}else (i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:W(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:W(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:W(e,n)},{i:s-2,x:W(t,r)})}else (n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var kn=On(En,`px, `,`px)`,`deg)`),An=On(Dn,`, `,`)`,`)`),G=0,jn=0,Mn=0,Nn=1e3,Pn,K,Fn=0,q=0,In=0,J=typeof performance==`object`&&performance.now?performance:Date,Ln=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Rn(){return q||=(Ln(zn),J.now()+In)}function zn(){q=0}function Bn(){this._call=this._time=this._next=null}Bn.prototype=Vn.prototype={constructor:Bn,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?Rn():+n)+(t==null?0:+t),!this._next&&K!==this&&(K?K._next=this:Pn=this,K=this),this._call=e,this._time=n,Kn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Kn())}};function Vn(e,t,n){var r=new Bn;return r.restart(e,t,n),r}function Hn(){Rn(),++G;for(var e=Pn,t;e;)(t=q-e._time)>=0&&e._call.call(void 0,t),e=e._next;--G}function Un(){q=(Fn=J.now())+In,G=jn=0;try{Hn()}finally{G=0,Gn(),q=0}}function Wn(){var e=J.now(),t=e-Fn;t>Nn&&(In-=t,Fn=e)}function Gn(){for(var e,t=Pn,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Pn=n);K=e,Kn(r)}function Kn(e){G||(jn&&=clearTimeout(jn),e-q>24?(e<1/0&&(jn=setTimeout(Un,e-J.now()-In)),Mn&&=clearInterval(Mn)):(Mn||=(Fn=J.now(),setInterval(Wn,Nn)),G=1,Ln(Un)))}function qn(e,t,n){var r=new Bn;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var Jn=u(`start`,`end`,`cancel`,`interrupt`),Yn=[];function Xn(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Qn(e,n,{name:t,index:r,group:i,on:Jn,tween:Yn,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Zn(e,t){var n=X(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function Y(e,t){var n=X(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function X(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function Qn(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Vn(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return qn(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(qn(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function $n(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function er(e){return this.each(function(){$n(this,e)})}function tr(e,t){var n,r;return function(){var i=Y(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function nr(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=Y(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function rr(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=X(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?tr:nr)(n,e,t))}function ir(e,t,n){var r=e._id;return e.each(function(){var e=Y(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return X(e,r).value[t]}}function ar(e,t){var n;return(typeof t==`number`?W:t instanceof I?gn:(n=I(t))?(t=n,gn):xn)(e,t)}function or(e){return function(){this.removeAttribute(e)}}function sr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function cr(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function lr(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function ur(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function dr(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function fr(e,t){var n=g(e),r=n===`transform`?An:ar;return this.attrTween(e,typeof t==`function`?(n.local?dr:ur)(n,r,ir(this,`attr.`+e,t)):t==null?(n.local?sr:or)(n):(n.local?lr:cr)(n,r,t))}function pr(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function mr(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function hr(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&mr(e,i)),n}return i._value=t,i}function gr(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&pr(e,i)),n}return i._value=t,i}function _r(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=g(e);return this.tween(n,(r.local?hr:gr)(r,t))}function vr(e,t){return function(){Zn(this,e).delay=+t.apply(this,arguments)}}function yr(e,t){return t=+t,function(){Zn(this,e).delay=t}}function br(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?vr:yr)(t,e)):X(this.node(),t).delay}function xr(e,t){return function(){Y(this,e).duration=+t.apply(this,arguments)}}function Sr(e,t){return t=+t,function(){Y(this,e).duration=t}}function Cr(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?xr:Sr)(t,e)):X(this.node(),t).duration}function wr(e,t){if(typeof t!=`function`)throw Error();return function(){Y(this,e).ease=t}}function Tr(e){var t=this._id;return arguments.length?this.each(wr(t,e)):X(this.node(),t).ease}function Er(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Y(this,e).ease=n}}function Dr(e){if(typeof e!=`function`)throw Error();return this.each(Er(this._id,e))}function Or(e){typeof e!=`function`&&(e=te(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new Z(r,this._parents,this._name,this._id)}function kr(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new Z(o,this._parents,this._name,this._id)}function Ar(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function jr(e,t,n){var r,i,a=Ar(t)?Zn:Y;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function Mr(e,t){var n=this._id;return arguments.length<2?X(this.node(),n).on.on(e):this.each(jr(n,e,t))}function Nr(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Pr(){return this.on(`end.remove`,Nr(this._id))}function Fr(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=x(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,Xn(l[f],t,n,f,l,X(u,n)));return new Z(a,this._parents,t,n)}function Ir(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=T(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=X(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&Xn(p,t,n,h,f,m);a.push(f),o.push(u)}return new Z(a,o,t,n)}var Lr=A.prototype.constructor;function Rr(){return new Lr(this._groups,this._parents)}function zr(e,t){var n,r,i;return function(){var a=O(this,e),o=(this.style.removeProperty(e),O(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function Br(e){return function(){this.style.removeProperty(e)}}function Vr(e,t,n){var r,i=n+``,a;return function(){var o=O(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function Hr(e,t,n){var r,i,a;return function(){var o=O(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),O(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function Ur(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=Y(this,e),l=c.on,u=c.value[a]==null?s||=Br(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function Wr(e,t,n){var r=(e+=``)==`transform`?kn:ar;return t==null?this.styleTween(e,zr(e,r)).on(`end.style.`+e,Br(e)):typeof t==`function`?this.styleTween(e,Hr(e,r,ir(this,`style.`+e,t))).each(Ur(this._id,e)):this.styleTween(e,Vr(e,r,t),n).on(`end.style.`+e,null)}function Gr(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Kr(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Gr(e,a,n)),r}return a._value=t,a}function qr(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,Kr(e,t,n??``))}function Jr(e){return function(){this.textContent=e}}function Yr(e){return function(){var t=e(this);this.textContent=t??``}}function Xr(e){return this.tween(`text`,typeof e==`function`?Yr(ir(this,`text`,e)):Jr(e==null?``:e+``))}function Zr(e){return function(t){this.textContent=e.call(this,t)}}function Qr(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Zr(r)),t}return r._value=e,r}function $r(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,Qr(e))}function ei(){for(var e=this._name,t=this._id,n=ii(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=X(c,t);Xn(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Z(r,this._parents,e,n)}function ti(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=Y(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var ni=0;function Z(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function ri(e){return A().transition(e)}function ii(){return++ni}var Q=A.prototype;Z.prototype=ri.prototype={constructor:Z,select:Fr,selectAll:Ir,selectChild:Q.selectChild,selectChildren:Q.selectChildren,filter:Or,merge:kr,selection:Rr,transition:ei,call:Q.call,nodes:Q.nodes,node:Q.node,size:Q.size,empty:Q.empty,each:Q.each,on:Mr,attr:fr,attrTween:_r,style:Wr,styleTween:qr,text:Xr,textTween:$r,remove:Pr,tween:rr,delay:br,duration:Cr,ease:Tr,easeVarying:Dr,end:ti,[Symbol.iterator]:Q[Symbol.iterator]};function ai(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var oi={time:null,delay:0,duration:250,ease:ai};function si(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function ci(e){var t,n;e instanceof Z?(t=e._id,e=e._name):(t=ii(),(n=oi).time=Rn(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&Xn(c,e,t,l,o,n||si(c,t));return new Z(r,this._parents,e,t)}A.prototype.interrupt=er,A.prototype.transition=ci;const{abs:li,max:ui,min:di}=Math;[`w`,`e`].map(fi),[`n`,`s`].map(fi),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(fi);function fi(e){return{type:e}}function $(e,t,n){this.k=e,this.x=t,this.y=n}$.prototype={constructor:$,scale:function(e){return e===1?this:new $(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new $(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var pi=new $(1,0,0);mi.prototype=$.prototype;function mi(e){for(;!e.__zoom;)if(!(e=e.parentNode))return pi;return e.__zoom}export{hn as a,R as c,Lt as d,Rt as f,r as g,s as h,pn as i,I as l,o as m,W as n,un as o,It as p,gn as r,j as s,xn as t,$t as u};
|
|
2
|
-
//# sourceMappingURL=src-BuBt_xnY.mjs.map
|
package/dist/src-Dl8P6sfz.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-DTipWd-i.mjs";import{Y as t}from"./sleep-DVOInM4H.mjs";import{Ds as n,Es as r,Vo as i,X as a,Z as o}from"./src-9BFQh559.mjs";import{Jr as s,Tn as c,at as l,gi as u,it as d,ot as f,rt as p,wa as m}from"./src-9I3GiOoK.mjs";import{O as h,P as g}from"./fs-traced-By5aY-RE.mjs";import{S as _,u as v,v as y,x as b}from"./server-lock-BleUv9m0.mjs";import{t as x}from"./yazl-DZr4PyKA.mjs";import{_ as S,g as C,i as w,s as ee,x as te}from"./write-project-skill-WXZSbQlg.mjs";import{c as ne}from"./colors-BsmVIwfM.mjs";import"./acp-harness-probe-DOXp9Wx4.mjs";import{D as T,E,S as re,T as D,_ as O,b as ie,o as ae,v as k}from"./init-ZOWQ1Th4.mjs";import{n as A}from"./constants-J4-mibQ1.mjs";import{t as j}from"./is-object-ByG7RnjH.mjs";import"./loader-ji3pPcXi.mjs";import"./skill-teardown-CZnemDLF.mjs";import"./preview-2rQXoRuM.mjs";import{execSync as oe,spawnSync as M}from"node:child_process";import{basename as N,dirname as P,isAbsolute as se,join as F,relative as ce,resolve as I,sep as le}from"node:path";import{cpSync as ue,createWriteStream as de,existsSync as L,lstatSync as fe,mkdirSync as R,mkdtempSync as pe,readFileSync as z,readdirSync as me,readlinkSync as he,rmSync as ge,statSync as _e,writeFileSync as B}from"node:fs";import{arch as ve,freemem as ye,homedir as V,hostname as be,platform as xe,release as Se,tmpdir as Ce,totalmem as we,type as Te,uptime as Ee}from"node:os";import{realpath as H}from"node:fs/promises";import{createHash as De}from"node:crypto";var U=t();const Oe=new Set([`start`,`stop`,`status`,`clean`,`ui`,`mcp`,`preview`,`lint`,`deinit`,`auth`]);function ke(e,t,n=c){if(e!==void 0&&!Oe.has(e))return null;let r=n(t);return r===null||r.distance===0?null:r.rootPath}let Ae=null;function je(e){Ae=e}function Me(){return Ae??process.cwd()}function Ne(){return F(V(),`.ok`,`bug-reports`)}function Pe(e=new Date){let t=e.toISOString().replace(/[:.]/g,`-`),n=Ne(),r=`${t}-bugreport`,i=F(n,`${r}.zip`);for(let e=2;L(i);e+=1)i=F(n,`${r}-${e}.zip`);return i}function Fe(e,t){let n=F(e,`.ok`,`config.yml`);if(L(n))try{let e=z(n,`utf8`).match(/^\s*name:\s*['"]?(.+?)['"]?\s*$/m);if(e?.[1])return e[1]}catch(e){t?.warn({configPath:n,err:e},`bug-report: failed to read .ok/config.yml for project slug; using path-hash fallback`)}return L(F(e,`.ok`))?De(`sha256`).update(I(e)).digest(`hex`).slice(0,12):null}function Ie(){let e={timestamp:new Date().toISOString(),platform:xe(),osType:Te(),osRelease:Se(),hostname:`[redacted]`,uptime:Ee(),freeMem:ye(),totalMem:we(),nodeVersion:process.version,bunVersion:process.versions.bun??null,v8Version:process.versions.v8??null,pid:process.pid};try{e.macosVersion=oe(`sw_vers -productVersion 2>/dev/null`,s({encoding:`utf8`})).trim()}catch{}try{let t=F(__dirname,`..`,`..`,`package.json`);L(t)&&(e.okVersion=JSON.parse(z(t,`utf8`)).version)}catch{}return e}function Le(e,t){return Re(e,t).files}function Re(e,t){if(!L(t))return{files:[]};let n=me(t).filter(e=>e.endsWith(`.log`)||/\.log\.\d+$/.test(e)).map(e=>F(t,e));if(e&&n.length>0){let t=n.filter(t=>{try{return z(t,`utf8`).includes(`"project":"${e}"`)}catch{return!0}});t.length>0&&(n=t)}return{files:n}}function ze(e){let t=F(e,`.ok`,`local`);return L(t)?{files:[`server.lock`,`last-spawn-error.log`,a].map(e=>F(t,e)).filter(e=>L(e))}:{files:[]}}function Be(e){let t=F(e,`.ok`,`local`,`logs`);return L(t)?{files:[`server-current.jsonl`,`server-prev.jsonl`].map(e=>F(t,e)).filter(e=>L(e))}:{files:[]}}function Ve(e){if(e.redact){let{redacted:t,patterns:r,lineCount:i}=n(e.content);e.zipfile.addBuffer(Buffer.from(t,`utf8`),e.name),e.bundleFiles.push(e.name),r.length>0&&e.redactions.push({file:e.name,lineCount:i,patterns:r})}else e.zipfile.addBuffer(Buffer.from(e.content,`utf8`),e.name),e.bundleFiles.push(e.name)}function W(e){for(let t of e.files)try{Ve({zipfile:e.zipfile,name:`${e.prefix}/${N(t)}`,content:z(t,`utf8`),redact:e.redact,bundleFiles:e.bundleFiles,redactions:e.redactions})}catch(n){e.logger?.warn({file:t,prefix:e.prefix,err:n},`bug-report: skipped unreadable file`)}}async function He(t){let{redact:n,outputPath:i,logger:a}=t,o=t.userLogsDir??F(V(),`.ok`,`logs`),s=t.projectDir?Fe(t.projectDir,a):null;R(P(i),{recursive:!0}),a?.info({projectSlug:s},`gathering diagnostic data`);let c=Ie();c.desktop=t.desktop??null;let{files:l}=Re(s,o),{files:u}=t.projectDir?ze(t.projectDir):{files:[]},{files:d}=t.projectDir?Be(t.projectDir):{files:[]};a?.info({logFileCount:l.length,lockFileCount:u.length,localSinkFileCount:d.length},`files collected`);let f=[],p=[],{ZipFile:m}=await import(`./yazl-jVENrf5i.mjs`).then(t=>e(t.default,1)),h=new m;W({zipfile:h,files:l,prefix:`logs`,redact:n,bundleFiles:p,redactions:f,logger:a}),W({zipfile:h,files:u,prefix:`lockdir`,redact:n,bundleFiles:p,redactions:f,logger:a}),W({zipfile:h,files:d,prefix:`local-logs`,redact:n,bundleFiles:p,redactions:f,logger:a});for(let e of t.extraFiles??[])try{let t=z(e.sourcePath),n=`extra/${e.zipName??N(e.sourcePath)}`;h.addBuffer(t,n),p.push(n)}catch(t){a?.warn({sourcePath:e.sourcePath,err:t},`extra file unreadable; omitted from bundle`)}t.note&&Ve({zipfile:h,name:`note.txt`,content:t.note,redact:n,bundleFiles:p,redactions:f});let g=JSON.stringify(c,null,2);h.addBuffer(Buffer.from(g,`utf8`),`sysinfo.json`),p.push(`sysinfo.json`);let _={generatedAt:new Date().toISOString(),disciplineVersion:`1.0.0`,projectSlug:s,files:p,redactions:f,sysinfo:c};h.addBuffer(Buffer.from(JSON.stringify(_,null,2),`utf8`),`MANIFEST.json`);let v=f.reduce((e,t)=>e+t.lineCount,0),y=[`# Bug Report Bundle`,``,`Generated: ${_.generatedAt}`,`Project: ${s??`(unscoped)`}`,`Discipline version: ${_.disciplineVersion}`,``,`## Contents`,``,...p.map(e=>`- ${e}`),``,`## Privacy`,``,...n?[`This bundle was auto-redacted before packaging.`,`Patterns checked: ${r.join(`, `)}`,v>0?`${v} line(s) were scrubbed across ${f.length} file(s).`:`No redactions were needed.`,`See MANIFEST.json for the full redaction audit report.`,``,`This bundle is safe to attach to a GitHub issue.`]:[`Redaction was disabled for this bundle; file contents are unmodified.`]].join(`
|
|
2
|
-
`);h.addBuffer(Buffer.from(y,`utf8`),`README.md`),h.end();let b=de(i);return h.outputStream.pipe(b),await new Promise((e,t)=>{b.on(`close`,e),b.on(`error`,t)}),a?.info({bundlePath:i,fileCount:p.length,redactionCount:v},`bundle written`),{zipPath:i,summary:{projectSlug:s,files:p,redactions:f,redactedLineCount:v,generatedAt:_.generatedAt}}}var Ue=e(x(),1),G=e(ne(),1);function K(e,t){return t.length===0||!e.includes(t)?e:e.split(t).join(`<CONTENT_DIR>`)}function We(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function q(e,t){if(typeof e==`string`)return K(e,t.contentDir);if(Array.isArray(e))return e.map(e=>q(e,t));if(!We(e))return e;let n={};for(let[r,i]of Object.entries(e))n[r]=q(i,t);return n}function Ge(e,t){let n=z(e,`utf-8`);if(n.length===0)return;let r=n.endsWith(`
|
|
3
|
-
`),i=n.split(`
|
|
4
|
-
`),a=[];for(let e=0;e<i.length;e++){let n=i[e]??``;if(!(e===i.length-1&&n===``)){if(n.length===0){a.push(``);continue}try{let e=q(JSON.parse(n),t);a.push(JSON.stringify(e))}catch{a.push(n)}}}B(e,r?`${a.join(`
|
|
5
|
-
`)}\n`:a.join(`
|
|
6
|
-
`))}function Ke(e,t){let n=z(e,`utf-8`);if(n.trim().length!==0)try{let r=q(JSON.parse(n),t),i=n.endsWith(`
|
|
7
|
-
`)?`
|
|
8
|
-
`:``;B(e,`${JSON.stringify(r,null,2)}${i}`)}catch{let r=K(n,t.contentDir);r!==n&&B(e,r)}}function qe(e,t){let n=z(e,`utf-8`),r=K(n,t.contentDir);r!==n&&B(e,r)}function Je(e){try{return me(e,{withFileTypes:!0}).filter(e=>e.isFile()).map(t=>F(e,t.name))}catch{return[]}}const Ye=new Set([`agent-presence.json`,`agent-effects.json`,`runtime.json`]);function Xe(e){return/\.log\.\d+$/.test(e)}function Ze(e){return e.endsWith(`.jsonl`)||e.endsWith(`.log`)||Xe(e)}function Qe(e){let t={contentDir:e.contentDir};for(let n of[`telemetry`,`logs`,`process`])for(let r of Je(F(e.stagingDir,n)))Ze(r)?Ge(r,t):r.endsWith(`.json`)?Ke(r,t):qe(r,t);for(let n of Je(F(e.stagingDir,`state`))){let e=N(n);n.endsWith(`.jsonl`)?Ge(n,t):Ye.has(e)?Ke(n,t):qe(n,t)}}const $e=[`.ok`,`local`,`telemetry`],et=[`.ok`,`local`,`logs`],tt=[`.ok`,`local`,`loss-capture`],nt=`spans-current.jsonl`,rt=`spans-prev.jsonl`,it=`server-current.jsonl`,at=`server-prev.jsonl`,ot=`loss-current.jsonl`,st=`loss-prev.jsonl`;function ct(e){return F(e,...$e,nt)}function lt(e){return F(e,...$e,rt)}function ut(e){return F(e,...et,it)}function dt(e){return F(e,...et,at)}function ft(e){return F(e,...tt,ot)}function pt(e){return F(e,...tt,st)}const mt=1e3;async function ht(e){try{let t=await fetch(`http://127.0.0.1:${e}/api/metrics/agent-presence`,{signal:AbortSignal.timeout(mt)});return t.ok?await t.text():null}catch{return null}}async function gt(e){try{let t=await fetch(`http://127.0.0.1:${e}/api/metrics/agent-effects`,{signal:AbortSignal.timeout(mt)});return t.ok?await t.text():null}catch{return null}}async function _t(e){try{let t=await fetch(`http://127.0.0.1:${e}/api/metrics/watcher-recent`,{signal:AbortSignal.timeout(mt)});return t.ok?await t.text():null}catch{return null}}function vt(e){try{let t=JSON.parse(e);if(typeof t!=`object`||!t)return null;let n=t.decisions;return Array.isArray(n)?n.length===0?``:`${n.map(e=>JSON.stringify(e)).join(`
|
|
9
|
-
`)}\n`:null}catch{return null}}function yt(e){let t=F(e,`.git`,`ok`);if(!L(t))return null;let n=M(`git`,[`-C`,t,`log`,`--oneline`,`-50`],s({encoding:`utf-8`,timeout:2e3}));return n.error||n.status!==0?null:n.stdout??``}function bt(e){let t=F(e,`.git`,`ok`);if(!L(t))return null;let n=M(`git`,[`-C`,t,`for-each-ref`,`--sort=-creatordate`,`--count=50`,`--format=%(refname)%09%(creatordate:iso-strict)%09%(contents:subject)`,`refs/checkpoints/`],s({encoding:`utf-8`,timeout:2e3}));return n.error||n.status!==0?null:n.stdout??``}function xt(){let e=process.env.OK_DESKTOP_VERSION,t=process.env.OK_DESKTOP_PACKAGED,n=process.env.OK_DESKTOP_CHANNEL;return e===void 0||t===void 0||n===void 0?null:{electronVersion:e,packaged:t===`1`||t.toLowerCase()===`true`,channel:n}}function St(){return{nodeVersion:process.version,platform:xe(),arch:ve()}}function Ct(){return process.env.OTEL_SDK_DISABLED===`false`}function J(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function wt(e){if(!L(e))return{};let t;try{t=(0,U.parse)(z(e,`utf-8`))}catch(t){return console.warn(`[ok diagnose bundle] failed to parse ${e} for manifest config; manifest will report schema defaults. Reason: ${t instanceof Error?t.message:String(t)}`),{}}if(!J(t))return{};let n=t.telemetry;if(!J(n))return{};let r=n.localSink;return J(r)?r:{}}function Tt(e){return typeof e==`boolean`?e:void 0}function Et(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?e:void 0}function Y(e){if(J(e))return Et(e.maxBytes)}function Dt(e){let t=wt(h(`project`,e)),n=wt(h(`project-local`,e));return{enabled:Tt(n.enabled)??Tt(t.enabled)??!0,spansMaxBytes:Y(n.spans)??Y(t.spans)??52428800,logsMaxBytes:Y(n.logs)??Y(t.logs)??26214400}}function Ot(e){return De(`sha256`).update(e).digest(`hex`)}function kt(e){let t=z(e),n=0;for(let e=0;e<t.length;e++)t[e]===10&&n++;return n}function At(e){let t=z(e,`utf-8`),n=`"doc.name"`,r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+10);return r}function X(e,t){if(!L(e))return!1;try{return R(P(t),{recursive:!0}),ue(e,t),!0}catch{return!1}}function jt(e){let t=[],n=e=>{let r=me(e,{withFileTypes:!0});for(let i of r){let r=F(e,i.name);i.isDirectory()?n(r):i.isFile()&&t.push(r)}};return n(e),t.sort()}const Mt=new Set([`.jsonl`]);function Nt(e){let t=e.lastIndexOf(`.`);return t===-1?!1:Mt.has(e.slice(t))}const Pt=new Set([`.jsonl`,`.json`,`.txt`,`.log`,`.lock`]);function Ft(e){if(Xe(e))return!0;let t=e.lastIndexOf(`.`);return t===-1?!1:Pt.has(e.slice(t))}function It(e){let t=[];for(let r of jt(e)){let i=Lt(e,r);if(!Ft(i))continue;let{redacted:a,patterns:o,lineCount:s}=n(z(r,`utf-8`));o.length!==0&&(B(r,a),t.push({file:i,lineCount:s,patterns:o}))}return{redactions:t,redactedLineCount:t.reduce((e,t)=>e+t.lineCount,0)}}function Lt(e,t){return ce(e,t).split(le).join(`/`)}async function Rt(e){let t=I(e.contentDir),n=I(e.projectDir??e.contentDir),r=e.deps??{},i=r.fetchAgentPresence??ht,s=r.fetchAgentEffects??gt,c=r.fetchWatcherRecent??_t,l=r.readShadowHead??yt,u=r.readCheckpointRefs??bt,d=r.now??(()=>new Date),f=r.okVersion??(()=>A),p=r.readDesktopEnv??xt,m=r.readRuntime??St,h=r.isOtlpPushEnabled??Ct,g=pe(F(Ce(),`ok-bundle-`));try{R(F(g,`telemetry`),{recursive:!0}),R(F(g,`logs`),{recursive:!0}),R(F(g,`state`),{recursive:!0}),X(ct(n),F(g,`telemetry`,nt)),X(lt(n),F(g,`telemetry`,rt)),X(ut(n),F(g,`logs`,it)),X(dt(n),F(g,`logs`,at));for(let t of e.userLogFiles??[])X(t,F(g,`logs`,N(t)));let _=F(n,`.ok`,`local`),v=F(_,`server.lock`),y=`not-running`,b=`no server.lock`,x=null;if(L(v)){X(v,F(g,`state`,`server.lock`));try{let e=z(v,`utf-8`),t=JSON.parse(e);typeof t.port==`number`?x=t.port:b=`lock present but no port`}catch{b=`lock present but unparseable`}}if(x!==null){let e=await i(x);e===null?b=`agent-presence endpoint at :${x} unreachable`:(B(F(g,`state`,`agent-presence.json`),e),y=`running`,b=``);let t=await s(x);t!==null&&B(F(g,`state`,`agent-effects.json`),t);let n=await c(x);if(n!==null){let e=vt(n);e!==null&&B(F(g,`state`,`watcher-recent.jsonl`),e)}}let S=l(t);S!==null&&B(F(g,`state`,`shadow-head.txt`),S);let C=u(t);C!==null&&B(F(g,`state`,`checkpoint-refs.txt`),C),X(ft(n),F(g,`state`,ot)),X(pt(n),F(g,`state`,st)),X(F(_,`last-spawn-error.log`),F(g,`state`,`last-spawn-error.log`)),X(F(_,o),F(g,`state`,o)),X(F(_,a),F(g,`state`,a));let w=m(),ee=p(),te={ok:{version:f(),nodeVersion:w.nodeVersion,platform:w.platform,arch:w.arch},host:{desktop:ee}};B(F(g,`state`,`runtime.json`),`${JSON.stringify(te,null,2)}\n`);let ne=y===`running`?`running
|
|
10
|
-
`:`not-running (${b})\n`;if(B(F(g,`state`,`server-status.txt`),ne),e.processDir&&L(e.processDir)){let t=F(g,`process`);R(t,{recursive:!0}),ue(e.processDir,t,{recursive:!0})}let T=e.redact===!0;T&&Qe({stagingDir:g,contentDir:t}),e.note&&B(F(g,`note.txt`),e.note);let E=null;e.scrubSecrets===!0&&(E=It(g));for(let t of e.extraFiles??[])X(t.sourcePath,F(g,`extra`,t.zipName??N(t.sourcePath)))||r.logger?.warn({sourcePath:t.sourcePath},`extra file missing; omitted from bundle`);let re=Dt(n),D=jt(g),O=[],ie=0,ae=0;for(let e of D){let t=Lt(g,e),n=_e(e).size,r=Nt(t)?kt(e):0;O.push({path:t,bytes:n,lines:r}),ie+=n,t.startsWith(`telemetry/`)&&Nt(t)&&(ae+=At(e))}let k={applied:T};E!==null&&(k.secretScrub=E);let A={schemaVersion:2,createdAt:d().toISOString(),ok:{version:f(),nodeVersion:w.nodeVersion,platform:w.platform,arch:w.arch},host:{desktop:ee},contentDir:{pathSha256:Ot(t),absolutePath:T?`<CONTENT_DIR>`:t},telemetry:{localSink:re,otlpPushEnabled:h()},redaction:k,serverStatus:y,files:O};B(F(g,`manifest.json`),`${JSON.stringify(A,null,2)}\n`);let j=D.some(e=>{try{return z(e,`utf-8`).includes(t)}catch{return!1}}),oe={totalBytes:ie,fileCount:O.length,docNameCount:ae,contentDirVisible:j,redacted:T},M=!1;return{stagingDir:g,manifest:A,summary:oe,cleanup:()=>{M||(M=!0,ge(g,{recursive:!0,force:!0}))}}}catch(e){throw ge(g,{recursive:!0,force:!0}),e}}async function zt(e){let{collected:t,outputPath:n}=e,r=P(n);if(!L(r))throw Error(`ok diagnose bundle: parent directory does not exist: ${r}. Create it or pass --out with an existing parent.`);let i=new Ue.ZipFile,a=jt(t.stagingDir);for(let e of a){let n=Lt(t.stagingDir,e);i.addFile(e,n)}i.end();let o=de(n);return i.outputStream.pipe(o),await new Promise((e,t)=>{o.on(`close`,e),o.on(`error`,t),i.outputStream.on(`error`,t)}),n}function Bt(e,t){let n=F(e,`.ok`,`config.yml`);if(L(n))try{let t=(0,U.parse)(z(n,`utf-8`)),r=j(t)?t.content:void 0,i=j(r)?r.dir:void 0;if(typeof i==`string`&&i.length>0)return I(e,i)}catch(e){t?.warn({configPath:n,err:e},`bug-report: failed to read .ok/config.yml; falling back to project root as content dir`)}return I(e)}async function Vt(e,t,n){let r=Fe(t,e.logger),i=await Rt({contentDir:Bt(t,e.logger),projectDir:t,redact:e.redact,scrubSecrets:e.redact,note:e.note,extraFiles:e.extraFiles,userLogFiles:Le(r,e.userLogsDir??F(V(),`.ok`,`logs`)),deps:{readDesktopEnv:n,logger:e.logger}});try{R(P(e.outputPath),{recursive:!0}),await zt({collected:i,outputPath:e.outputPath});let t=i.manifest.redaction.secretScrub;return{zipPath:e.outputPath,summary:{level:`full`,systemWide:!1,projectSlug:r,files:i.manifest.files.map(e=>e.path),redactions:t?.redactions??[],redactedLineCount:t?.redactedLineCount??0,generatedAt:i.manifest.createdAt}}}finally{i.cleanup()}}async function Ht(e){let{projectDir:t}=e,n=e.readDesktopEnv??xt;if(e.level===`full`&&t!==void 0)return Vt(e,t,n);let{zipPath:r,summary:i}=await He({projectDir:t,redact:e.redact,outputPath:e.outputPath,userLogsDir:e.userLogsDir,logger:e.logger,note:e.note,extraFiles:e.extraFiles,desktop:n()});return{zipPath:r,summary:{level:e.level,systemWide:t===void 0,projectSlug:i.projectSlug,files:i.files,redactions:i.redactions,redactedLineCount:i.redactedLineCount,generatedAt:i.generatedAt}}}function Z(e,t,n={}){let r=v(e,t);if(!L(r))return{status:`missing`,lockPath:r};let i;try{i=JSON.parse(z(r,`utf-8`))}catch{return{status:`corrupt`,lockPath:r}}if(!i||typeof i!=`object`||!_(i.pid))return{status:`corrupt`,lockPath:r};let a=i;if(!(n.isAlive??b)(a.pid))return{status:`dead-pid`,lockPath:r,lock:a};if(typeof a.machineId==`string`)return a.machineId===(n.machineId??y())?{status:`alive`,lockPath:r,lock:a}:{status:`foreign-host`,lockPath:r,lock:a};let o=n.host??be();return a.hostname===o?{status:`alive`,lockPath:r,lock:a}:{status:`foreign-host`,lockPath:r,lock:a}}function Ut(e){return e.replace(/:\d+$/,``)}function Wt(e){let t=e.trim();if(!t)return null;{let e=/^https?:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`https`,hostname:Ut(e[1]),owner:e[2],name:e[3]}}{let e=/^ssh:\/\/(?:[\w.-]+@)?([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`ssh`,hostname:Ut(e[1]),owner:e[2],name:e[3]}}{let e=/^git:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`git`,hostname:Ut(e[1]),owner:e[2],name:e[3]}}{let e=/^(?:[\w.-]+@)?([\w.-]+):([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?$/.exec(t);if(e?.[1].includes(`.`)||e&&t.startsWith(`git@`))return{protocol:`ssh`,hostname:e[1],owner:e[2],name:e[3]}}{let e=/^git:([\w.-]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`git`,hostname:e[1],owner:e[2],name:e[3]}}if(!t.includes(`://`)&&!t.includes(`@`)&&!t.startsWith(`/`)){let e=/^([\w.-]+)\/([\w.\-~%]+?)(?:\.git)?$/.exec(t);if(e)return{protocol:`https`,hostname:`github.com`,owner:e[1],name:e[2]}}return null}function Gt(e){let t;try{t=new URL(e)}catch{return null}if(t.protocol!==`https:`)return null;let n=i(t.hostname);if(n===null)return null;let r=t.pathname.split(`/`).filter(e=>e.length>0);if(r.length<5||r[2]!==`blob`)return null;let a,o,s,c;try{a=decodeURIComponent(r[0]),o=decodeURIComponent(r[1]),s=decodeURIComponent(r[3]),c=r.slice(4).map(e=>decodeURIComponent(e))}catch{return null}return!a||!o||!s||c.length===0||c.some(e=>e.length===0)?null:{host:n,owner:a,repo:o,branch:s,path:c.join(`/`)}}function Kt(e){let t;try{t=new URL(e)}catch{return null}if(t.protocol!==`https:`)return null;let n=i(t.hostname);if(n===null)return null;let r=t.pathname.split(`/`);if(r.length<5||r[0]!==``||r[3]!==`tree`)return null;let a=r.slice(5);a.length===1&&a[0]===``&&a.pop();let o,s,c,l;try{o=decodeURIComponent(r[1]),s=decodeURIComponent(r[2]),c=decodeURIComponent(r[4]),l=a.map(e=>decodeURIComponent(e))}catch{return null}return!o||!s||!c||l.some(e=>e.length===0)?null:{host:n,owner:o,repo:s,branch:c,path:l.join(`/`)}}function qt(e){let t=Gt(e);if(t)return{kind:`doc`,...t};let n=Kt(e);return n?{kind:`folder`,...n}:null}const Jt=`# >>> open-knowledge cli >>>`,Yt=`# <<< open-knowledge cli <<<`,Xt=/^# >>> open-knowledge cli >>>\n[\s\S]*?^# <<< open-knowledge cli <<<\n?/m;function Zt(e){return F(e,`Library`,`Application Support`,`OpenKnowledge`,`path-install.json`)}const Qt={existsSync:e=>L(e),readFileSync:(e,t)=>z(e,t),lstatSync:e=>fe(e),readlinkSync:e=>he(e)};function $t(e,t=Qt){let n=Zt(e);if(!t.existsSync(n))return null;try{let e=JSON.parse(t.readFileSync(n,`utf8`));return e?.version===1?e:null}catch{return null}}function en(e){let t=e.replace(Xt,``);return{text:t,changed:t!==e,emptyAfter:t.trim()===``}}function tn(e,t,n=Qt){try{return n.lstatSync(e).isSymbolicLink()?n.readlinkSync(e)===t:!1}catch{return!1}}function nn(e){return C(e)||S(e)||re(e)}const rn=10*1024*1024;function an(e,t,n,r){let i=ae(e,t,n,r);if(i.kind===`absent`||i.kind===`no-entry`)return{kind:`not-present`};if(i.kind===`decline`)return{kind:`declined`,reason:i.reason};if(!nn(i.entry))return{kind:`left-foreign`};let a;try{a=r??e.configPath(t,n)}catch{return{kind:`not-present`}}let o=e.serverName(t);return e.format===`file`?(ge(a,{force:!0}),{kind:`removed`}):e.format===`toml`?cn(a,o):e.format===`yaml`?sn(a,e.topLevelKey,o):on(a,e.topLevelKey,e.serverMapSubKey,o)}function on(e,t,n,r){let i;try{i=z(e,`utf-8`)}catch{return{kind:`declined`,reason:`unparseable`}}if(Buffer.byteLength(i,`utf-8`)>rn)return{kind:`declined`,reason:`oversize`};let{text:a,changed:o}=T(i,O(t,n,r));return o?(g(e,a,{mode:D(e)}),{kind:`removed`}):{kind:`not-present`}}function sn(e,t,n){let r;try{r=z(e,`utf-8`)}catch{return{kind:`declined`,reason:`unparseable`}}if(Buffer.byteLength(r,`utf-8`)>rn)return{kind:`declined`,reason:`oversize`};let i=r.charCodeAt(0)===65279,a=i?r.slice(1):r,o=(0,U.parseDocument)(a);if(o.errors.length>0)return{kind:`declined`,reason:`unparseable`};let s=[t,n];if(!o.hasIn(s))return{kind:`not-present`};o.deleteIn(s);let c=o.toString(),l=E(a);a.trim()===``||a.endsWith(`
|
|
11
|
-
`)?c.endsWith(`
|
|
12
|
-
`)||(c=`${c}\n`):c=c.replace(/\n+$/,``),l&&(c=c.replace(/\r\n/g,`
|
|
13
|
-
`).replace(/\n/g,`\r
|
|
14
|
-
`));let u=`${i?``:``}${c}`;return u!==r&&g(e,u,{mode:D(e)}),{kind:`removed`}}function cn(e,t){let n=ie();if(n.backend===`fallback`)return{kind:`declined`,reason:`no-native-writer`};let r;try{r=z(e,`utf-8`)}catch{return{kind:`declined`,reason:`unparseable`}}let i=r.charCodeAt(0)===65279,a=i?r.slice(1):r,o=E(a),s=a.trim()===``||a.endsWith(`
|
|
15
|
-
`),c;try{c=n.removeEntry(a,t)}catch{return{kind:`declined`,reason:`unparseable`}}if(!c.existed)return{kind:`not-present`};let l=c.text;s?l.endsWith(`
|
|
16
|
-
`)||(l=`${l}\n`):l=l.replace(/\n+$/,``),o&&(l=l.replace(/\r\n/g,`
|
|
17
|
-
`).replace(/\n/g,`\r
|
|
18
|
-
`));let u=`${i?``:``}${l}`;return u!==r&&g(e,u,{mode:D(e)}),{kind:`removed`}}function ln(e){return e==null?!1:e.includes(`--type=utility`)&&e.includes(`--utility-sub-type=node.mojom.NodeService`)}function un(e,t=Date.now()){let n=new Date(e).getTime();if(Number.isNaN(n))return`—`;let r=t-n,i=Math.floor(r/1e3);if(i<60)return`${i}s`;let a=Math.floor(i/60);if(a<60)return`${a}m ago`;let o=Math.floor(a/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function dn(e,t,n,r,i,a){if(t.status===`missing`||t.status===`corrupt`)return null;let o=t.lock,s=null;if(n.status!==`missing`&&n.status!==`corrupt`){let e=n.lock;s={port:e.port,status:n.status,pid:e.pid,startedAt:e.startedAt,usage:a}}return{directory:o.worktreeRoot,server:{port:o.port,status:t.status,pid:o.pid,startedAt:o.startedAt,usage:i},ui:s,hostname:o.hostname,lockPath:t.lockPath,binary:r==null?null:d(r),command:r,isDesktop:ln(r)}}function fn(e){return e.ui==null?!1:e.ui.status===`alive`||e.ui.status===`foreign-host`}function Q(e){let t=e.server.status;return t===`alive`||t===`foreign-host`?e.isDesktop?`desktop`:t===`alive`?`running`:`foreign`:t===`dead-pid`&&fn(e)?`ui-orphan`:`stale`}const pn=new Set([`running`,`desktop`,`foreign`,`ui-orphan`]);function mn(e){switch(e){case`running`:return G.default.green(e);case`desktop`:return G.default.blue(e);case`foreign`:return G.default.cyan(e);case`ui-orphan`:return G.default.magenta(e);case`stale`:return G.default.yellow(e)}}function hn(e){return e==null?`—`:`${e.cpuPercent.toFixed(1)}% / ${e.memPercent.toFixed(1)}%`}function gn(e){return`${hn(e.server.usage)} | ${hn(e.ui?.usage??null)}`}function _n(e){return`${e.server.port===0?`(starting)`:String(e.server.port)} / ${e.ui==null||e.ui.status===`dead-pid`?`—`:String(e.ui.port)}`}function vn(e){if(e.length===0)return`No open-knowledge servers found.`;let t=[`DIRECTORY`,`PORTS (API/UI)`,`CPU/MEM (API | UI)`,`STATUS`,`PID`,`STARTED`,`BINARY`],n=e.map(e=>{let t=Q(e),n=t===`ui-orphan`&&e.ui!=null?e.ui.pid:e.server.pid;return[e.directory,_n(e),gn(e),t,String(n),un(e.server.startedAt),e.binary??`—`]}),r=t.length,i=t.map(e=>e.length);for(let e of n)for(let t=0;t<r;t++)i[t]=Math.max(i[t]??0,(e[t]??``).length);let a=t.map((e,t)=>e.padEnd(i[t]??0)).join(` `).trimEnd(),o=e.map((e,t)=>{let a=n[t]??[],o=[];for(let t=0;t<r;t++){let n=(a[t]??``).padEnd(i[t]??0);if(t===3){let r=a[t]??``;n=mn(Q(e))+` `.repeat(Math.max(0,(i[t]??0)-r.length))}o.push(n)}return o.join(` `).trimEnd()}),s=G.default.dim(`To stop a server: ok stop <port|pid|directory|all>`);return[a,...o,``,s].join(`
|
|
19
|
-
`)}async function yn(e={}){let t=e.discover??p,n=e.inspect??Z,r=e.log??(e=>console.log(e)),i=e.resolveCommand??l,a=e.resolveUsage??f,o=await t(),s=[];for(let e of o){let t=n(e,`server`),r=n(e,`ui`),o=dn(e,t,r,t.status===`missing`||t.status===`corrupt`?null:i(t.lock.pid),t.status===`missing`||t.status===`corrupt`?null:a(t.lock.pid),r.status===`missing`||r.status===`corrupt`?null:a(r.lock.pid));o!=null&&s.push(o)}if(e.json){let e=s.map(e=>({...e,displayStatus:Q(e)}));r(JSON.stringify(e,null,2));return}r(vn(e.all?s:s.filter(e=>pn.has(Q(e)))))}function bn(){return new te(`ps`).description(`List all running open-knowledge servers`).argument(`[modifier]`,`"all" to include stale (dead-pid) entries`).option(`--all`,`Include stale (dead-pid) entries (foreign-host shows by default)`).option(`--json`,`Emit structured JSON (always includes all statuses)`).action(async(e,t)=>{await yn({all:t.all===!0||e===`all`,json:t.json===!0})})}function xn(e,t,n={}){let r=n.isAlive??b,i=[];for(let[n,a]of[[`server`,e],[`ui`,t]])(a.status===`alive`||a.status===`foreign-host`&&r(a.lock.pid))&&i.push({name:n,pid:a.lock.pid,port:a.lock.port});return{targets:i}}function Sn(e){let t=e.inspect??(t=>Z(e.lockDir,t)),n=e.kill??((e,t)=>process.kill(e,t)),r=e.log??(e=>console.log(e)),i=e.error??(e=>console.error(e)),a=xn(t(`server`),t(`ui`),{isAlive:e.isAlive});if(a.targets.length===0)return r(`No running open-knowledge processes.`),{stopped:[],failed:[],hadTargets:!1};let o=[],s=[];for(let e of a.targets)try{n(e.pid,`SIGTERM`),o.push(e)}catch(t){s.push({target:e,error:t instanceof Error?t.message:String(t)})}return o.length>0&&r(`Stopped: ${o.map(e=>`${e.name} (pid=${e.pid}, port=${e.port})`).join(`, `)}`),s.length>0&&i(`Failed to stop: ${s.map(({target:e,error:t})=>`${e.name} (pid=${e.pid}): ${t}`).join(`; `)}`),{stopped:o,failed:s,hadTargets:!0}}function $(e,t){return e.status===`alive`?!0:e.status===`foreign-host`?t(e.lock.pid):!1}async function Cn(e,t=b){let n=await p(),r=null;for(let i of n){let n=Z(i,`server`),a=Z(i,`ui`);if($(n,t)&&n.lock.port===e||$(a,t)&&a.lock.port===e)return i;r===null&&($(n,t)&&n.lock.pid===e||$(a,t)&&a.lock.pid===e)&&(r=i)}return r}function wn(e){let t=Sn({lockDir:e});return t.failed.length>0&&(process.exitCode=1),t}function Tn(e){return new te(`stop`).description(`Stop open-knowledge server(s). With no argument: stops the server for the current directory. Pass a port number, a directory path, or "all" to target globally.`).argument(`[target...]`,`port number, directory path (spaces OK), or "all"`).action(async t=>{let n=t.length===0?void 0:t.join(` `);if(n===void 0){e();let t=Sn({lockDir:u(process.cwd()),log:()=>{}});if(t.hadTargets){if(t.stopped.length>0){let e=t.stopped.map(e=>`${e.name} (pid=${e.pid}, port=${e.port})`).join(`, `);console.log(`Stopped: ${e}`)}t.failed.length>0&&(process.exitCode=1)}else await yn({});return}if(n===`all`){let e=await p();if(e.length===0){console.log(`No running open-knowledge servers found.`);return}let t=0;for(let n of e){let e=Z(n,`server`),r=Z(n,`ui`);!$(e,b)&&!$(r,b)||(wn(n),t++)}t===0&&console.log(`No running open-knowledge servers found.`);return}if(/^\d+$/.test(n)){let e=Number.parseInt(n,10),t=await Cn(e);if(t===null){console.log(`No running open-knowledge server found with port or PID ${e}.`);return}wn(t);return}wn(u(I(Me(),n)))})}function En(e){return{event:`mcp-config-decline`,scope:e.scope,surface:e.surface,editorId:e.editorId,reason:e.reason}}async function Dn(e,t){let n,r;try{n=await H(I(e)),r=await H(I(P(e)))}catch{return{kind:`not-git`}}if(!On(n,r))return{kind:`symlink-escape`};let a=F(n,`.git`),o;try{o=_e(a)}catch{return{kind:`not-git`}}if(o.isDirectory()){let e;try{e=await H(a)}catch{return{kind:`not-git`}}if(!On(e,n))return{kind:`symlink-escape`}}else if(!o.isFile())return{kind:`not-git`};let s=m(n);if(s.kind!==`repository`)return{kind:`not-git`};let c=s.repository.readRemoteUrl(`origin`);if(c.kind===`unreadable`)return{kind:`not-git`};if(c.kind===`absent`)return c.reason===`config-missing`?{kind:`not-git`}:{kind:`no-origin`};let l=c.url,u=Wt(l);if(u===null)return{kind:`non-github`};let d=i(u.hostname);if(d===null)return{kind:`non-github`};let f=d===t.host.toLowerCase(),p=u.owner.toLowerCase()===t.owner.toLowerCase(),h=u.name.toLowerCase()===t.repo.toLowerCase();return!f&&p&&h?{kind:`wrong-host`,actualHost:d}:!f||!p||!h?{kind:`wrong-repo`,actualOwner:u.owner,actualRepo:u.name}:{kind:`ok`,gitRemoteUrl:`https://${d}/${u.owner}/${u.name}.git`}}function On(e,t){if(e===t)return!0;let n=ce(t,e);return n.length>0&&!n.startsWith(`..`)&&!se(n)}const kn=[{id:`mcp-config`,write(e,t,n){let r=e.projectConfigPath?.(t);if(!r)return{integration:`mcp-config`,editorId:e.id,action:`skipped-unsupported`};try{let i=k(e,t,n,void 0,r);return i.action===`written`||i.action===`overwritten`?{integration:`mcp-config`,editorId:e.id,action:i.action,path:i.configPath}:i.action===`failed`?{integration:`mcp-config`,editorId:e.id,action:`failed`,path:i.configPath,error:i.error??`unknown failure`}:i.action===`declined`?{integration:`mcp-config`,editorId:e.id,action:`declined`,path:i.configPath,...i.declineReason===void 0?{}:{reason:i.declineReason}}:{integration:`mcp-config`,editorId:e.id,action:`failed`,path:i.configPath,error:`unexpected project-scope action: ${i.action}`}}catch(t){return{integration:`mcp-config`,editorId:e.id,action:`failed`,path:r,error:t instanceof Error?t.message:String(t)}}}},{id:`project-skill`,write(e,t,n){try{let r=w(e,t,{home:n.home});return{integration:`project-skill`,editorId:e.id,action:r.action,...r.path?{path:r.path}:{},...r.error?{error:r.error}:{}}}catch(t){return{integration:`project-skill`,editorId:e.id,action:`failed`,error:t instanceof Error?t.message:String(t)}}}}];function An(e,t,n={},r=kn){let i=[];for(let a of t){let t=ee[a];for(let a of r)i.push(a.write(t,e,n))}return i}function jn(e,t,n={}){return{integrations:An(e,t,n)}}export{Pe as C,ke as D,je as E,zt as S,Me as T,Kt as _,Tn as a,Ht as b,Jt as c,tn as d,Zt as f,qt as g,Gt as h,Sn as i,Xt as l,en as m,Dn as n,bn as o,$t as p,En as r,an as s,jn as t,Yt as u,Wt as v,Ne as w,Rt as x,Z as y};
|
|
20
|
-
//# sourceMappingURL=src-Dl8P6sfz.mjs.map
|
package/dist/src-h5dDPK2z.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$o as e,As as t,Lo as n,P as r,Po as i,R as a,Ro as o,d as s,ds as c,l,ts as u}from"./src-9BFQh559.mjs";import{$ as d,$i as f,$n as p,$r as m,$t as h,A as g,Ai as _,An as v,Ar as y,At as b,B as x,Bi as S,Bn as C,Br as w,Bt as T,C as E,Ci as D,Cn as O,Cr as k,Ct as A,D as j,Di as M,Dn as N,Dr as P,Dt as F,E as I,Ei as L,En as R,Er as z,Et as B,F as V,Fi as H,Fn as U,Ft as W,G,Gi as K,Gn as q,Gr as J,Gt as Y,H as X,Hi as Z,Hn as Q,Hr as $,Ht as ee,I as te,Ii as ne,In as re,It as ie,J as ae,Ji as oe,Jn as se,Jr as ce,Jt as le,K as ue,Ki as de,Kn as fe,Kr as pe,Kt as me,L as he,Li as ge,Ln as _e,Lt as ve,M as ye,Mi as be,Mn as xe,Mr as Se,Mt as Ce,N as we,Ni as Te,Nn as Ee,Nt as De,O as Oe,Oi as ke,On as Ae,Or as je,Ot as Me,P as Ne,Pi as Pe,Pn as Fe,Pt as Ie,Q as Le,Qi as Re,Qn as ze,Qr as Be,Qt as Ve,R as He,Ri as Ue,Rn as We,Rr as Ge,Rt as Ke,S as qe,Si as Je,Sn as Ye,Sr as Xe,St as Ze,T as Qe,Ti as $e,Tn as et,Tr as tt,Tt as nt,U as rt,Ui as it,Un as at,Ur as ot,Ut as st,V as ct,Vi as lt,Vn as ut,Vr as dt,Vt as ft,W as pt,Wi as mt,Wn as ht,Wr as gt,Wt as _t,X as vt,Xi as yt,Xn as bt,Xr as xt,Xt as St,Y as Ct,Yi as wt,Yn as Tt,Yr as Et,Yt as Dt,Z as Ot,Zi as kt,Zn as At,Zr as jt,Zt as Mt,_ as Nt,_a as Pt,_i as Ft,_n as It,_r as Lt,_t as Rt,a as zt,aa as Bt,ai as Vt,an as Ht,ar as Ut,at as Wt,b as Gt,ba as Kt,bi as qt,bn as Jt,br as Yt,bt as Xt,c as Zt,ca as Qt,ci as $t,cn as en,cr as tn,d as nn,da as rn,di as an,dn as on,dr as sn,ea as cn,ei as ln,en as un,er as dn,et as fn,f as pn,fa as mn,fi as hn,fn as gn,fr as _n,g as vn,ga as yn,gi as bn,gn as xn,gr as Sn,gt as Cn,h as wn,ha as Tn,hi as En,hn as Dn,hr as On,ht as kn,i as An,ia as jn,ii as Mn,in as Nn,ir as Pn,it as Fn,j as In,ji as Ln,jn as Rn,jr as zn,jt as Bn,k as Vn,ki as Hn,kn as Un,kr as Wn,kt as Gn,l as Kn,la as qn,li as Jn,ln as Yn,lr as Xn,m as Zn,ma as Qn,mi as $n,mn as er,mr as tr,mt as nr,n as rr,na as ir,ni as ar,nn as or,nr as sr,nt as cr,o as lr,oa as ur,oi as dr,on as fr,or as pr,ot as mr,p as hr,pa as gr,pi as _r,pn as vr,pr as yr,q as br,qi as xr,qn as Sr,qr as Cr,qt as wr,r as Tr,ra as Er,ri as Dr,rn as Or,rr as kr,rt as Ar,s as jr,sa as Mr,si as Nr,sn as Pr,sr as Fr,st as Ir,t as Lr,ta as Rr,ti as zr,tn as Br,tr as Vr,tt as Hr,u as Ur,ua as Wr,ui as Gr,un as Kr,ur as qr,v as Jr,va as Yr,vn as Xr,vr as Zr,vt as Qr,w as $r,wi as ei,wn as ti,wr as ni,wt as ri,x as ii,xi as ai,xn as oi,xr as si,xt as ci,y as li,ya as ui,yi as di,yn as fi,yr as pi,yt as mi,z as hi,zi as gi,zn as _i,zr as vi,zt as yi}from"./src-9I3GiOoK.mjs";import{C as bi,E as xi,T as Si,_ as Ci,b as wi,c as Ti,d as Ei,g as Di,i as Oi,l as ki,m as Ai,n as ji,p as Mi,s as Ni,t as Pi,u as Fi,v as Ii,w as Li,x as Ri,y as zi}from"./fs-traced-By5aY-RE.mjs";import{a as Bi,d as Vi,f as Hi,i as Ui,l as Wi,n as Gi,r as Ki,t as qi,u as Ji}from"./logger-BZPV1wv8.mjs";import{S as Yi,_ as Xi,a as Zi,c as Qi,f as $i,g as ea,h as ta,i as na,l as ra,m as ia,n as aa,o as oa,p as sa,r as ca,s as la,t as ua,u as da,v as fa,x as pa}from"./server-lock-BleUv9m0.mjs";export{rn as AGENT_ID_MAX_LEN,mn as AGENT_ID_RE,M as AGENT_WRITE_ORIGIN,Yr as AcpPermissionStore,Tn as AcpRegistry,Je as AcpThreadManager,qt as AgentFocusBroadcaster,di as AgentPresenceBroadcaster,ke as AgentSessionCapacityError,Hn as AgentSessionManager,kn as AutoStartDisabledError,Zr as BUNDLE_IDS,pi as BUNDLE_SCOPE,Yt as BUNDLE_SKILL_NAME,Sr as BacklinkIndex,gi as CC1Broadcaster,u as CC1_CONTRACT_VERSION,Kr as CONFIG_FILENAME,ut as CONFLICT_MARKER_RE,w as CURSOR_BUNDLE_PATHS_BY_PLATFORM,Nt as ConfigSchema,K as DEFAULT_CHECKPOINT_RETENTION,Mn as DEFAULT_EMBEDDINGS_DIMENSIONS,W as DEFAULT_PACK_ID,ct as DocumentDurabilityState,Vt as EMBEDDINGS_API_KEY_ENV,yn as FEATURED_AGENT_IDS,de as FILE_SYSTEM_WRITER,q as FILE_WATCHER_ORIGIN,Be as FileEmbeddingsBackend,Mt as GIT_PREFLIGHT_FAIL_SPAN_NAME,xr as GIT_UPSTREAM_WRITER,ui as GitDirAccessError,h as GitNotAvailableError,un as GitTooOldError,Cn as HOCUSPOCUS_AUTH_REJECTION_REASONS,Rt as HocuspocusAuthRejection,Qr as HocuspocusAuthTokenSchema,pe as INSTALLED_AGENTS_SCHEMES,e as LINEAGE_EPOCH_KEY,He as LIVE_DERIVED_INDEX_DEBOUNCE_MS,ie as LOG_MD_TEMPLATE,nt as MANAGED_RENAME_ORIGIN,D as MAX_ACP_THREADS,_ as MAX_AGENT_SESSIONS,$e as MCP_CONNECTION_ID_HEADER,i as MCP_SERVER_NAME,Ln as MIN_EVICTABLE_IDLE_MS,Br as MIN_GIT_VERSION,X as MISSING_OK_CONFIG_MESSAGE,Kt as MalformedGitPointerError,fn as McpLogger,rt as MissingOkConfigError,Te as OBSERVER_SYNC_ORIGIN,on as OK_OKIGNORE_TEMPLATE,n as ORPHAN_MODES,t as PROTOCOL_VERSION,qi as PinoLogger,Qi as ProcessLockCollisionError,Kn as ProjectGitInitError,B as ROLLBACK_ORIGIN,gn as ROOT_GITIGNORE_TEMPLATE,ea as RUNTIME_VERSION,fi as RemoteConfigError,oe as SERVICE_WRITER,yr as SKILL_INSTALL_EVENTS_FILE_REL,r as SKILL_STATE_TARGETS,ve as STARTER_FOLDERS,Ke as STARTER_FOLDER_FRONTMATTER_FILENAME,yi as STARTER_PACKS,T as STARTER_PACK_IDS,ft as STARTER_TEMPLATES,Qe as STATE_MANIFEST_FILENAME,Xi as STATE_SCHEMA_VERSION,c as SYSTEM_DOC_NAME,wr as SeedPrerequisiteError,le as SeedRootDirError,ua as ServerLockCollisionError,Lr as SingleFileNotAFileError,rr as SingleFileNotFoundError,Tr as SingleFileNotMarkdownError,I as StateManifestError,fe as TagIndex,si as USER_GLOBAL_BUNDLE_IDS,Tt as UiLockCollisionError,F as __getShowAllWalkStatsForTesting,Me as __resetShowAllWalkStatsForTesting,ra as acquireProcessLock,aa as acquireServerLock,bt as acquireUiLock,be as applyAgentMarkdownWrite,_i as applyExternalChange,Ie as applySeed,j as assertCompatibleStateManifest,or as assertGitAvailable,N as assertNeverDiskEvent,ai as attachAcpThreadSocket,nr as attachIdleShutdown,Jr as bootServer,dn as buildAndOpenSkill,vr as buildConfigYmlContent,Ct as buildExecResult,ei as buildOkMcpStdioCommand,On as buildSkillZip,ee as buildStarterFolderFrontmatterYaml,wt as buildWipTree,Xe as bundleSkillMdPath,m as canonicalProjectKey,Ae as classifyEvents,Pi as classifyFsPath,ln as clearAllEmbeddingsKeys,Nr as clearContributors,st as coercePackId,l as colorFromSeed,yt as commitUpstreamImport,kt as commitWip,Re as commitWipFromTree,Or as compareSemver,tt as composeEffectiveLinterConfig,z as composeFrontmatterSchemasConfig,Q as containsConflictMarkers,Un as contentHash,$t as contributorCount,Ne as countShadowObjects,V as countStaleAgentWipRefs,te as countWipRefs,Gn as createApiExtension,ri as createAssetServeMiddleware,G as createCollaborationHost,Ge as createContentFilter,vi as createContentFilterAsync,zr as createEmbeddingsSecretStore,An as createEphemeralProjectDir,C as createExternalChangeHandler,pn as createFileLogger,hi as createLiveDerivedIndexExtension,br as createMcpHttpHandler,Cr as createOsProbe,we as createPersistenceExtension,E as createServer,In as createServerObserverExtension,ne as createStreamingErrorWriter,Gi as createTestLogger,ar as describeStoredEmbeddingsKey,vn as detectClaudeDesktopPresence,Nn as detectGit,Oe as detectProjectShape,Vr as detectUserSkillHosts,Ar as discoverLockDirs,Wn as discoverMarkdownlintConfig,Ve as emitPreflightFailureSpan,vt as encodeDocName,Ot as encodeFolderRoute,Le as encodeSkillRoute,Ur as ensureProjectGit,er as ensureProjectSkillGitignore,ge as errorResponse,v as evictStaleTrackerEntries,b as extractHeadings,Fn as extractOkBinaryPath,se as extractWikiLinksFromMarkdown,Ht as fallbackPaths,nn as findEnclosingGitRoot,et as findEnclosingProjectRoot,y as findNativeMarkdownlintFile,hr as flushFileLogger,mi as formatAuthRejectionWire,Jn as formatContributors,Gr as formatContributorsFrom,Ce as formatPackRationale,f as gcCheckpointRefs,Hr as getCurrentMcpLogger,$n as getLocalDir,Zn as getLogFilePath,Ki as getLogger,wn as getLogsDir,fa as getMachineId,zi as getMeter,ur as getMetrics,wi as getTracer,Mr as handleCollabSocketError,dt as handleSpawnCursor,Jt as hasForwardingHeaders,he as hasGcLogLatch,s as iconFromClientName,Qt as incrementCollabSocketFilteredError,qn as incrementServerObserverFire,Dn as initContent,cn as initShadowRepo,Ri as initTelemetry,Gt as initToleranceTelemetryWriter,Ir as installPrettyZodErrors,Ui as installTestLoggers,sr as installUserSkill,Xr as isAllowedApiOrigin,O as isAllowedWorkspaceHostHeader,S as isConfigDoc,Xt as isHocuspocusAuthRejectionReason,_t as isKnownPackId,lt as isLinkIndexExcludedDoc,ti as isLoopbackAddress,Z as isManagedArtifactDoc,o as isOrphanMode,Pe as isPairedWriteOrigin,$ as isPathWithinDir,pa as isProcessAlive,R as isProjectRoot,oi as isRemoteAdmitted,it as isReservedForUserTree,Rn as isSelfWrite,mt as isSystemDoc,ii as isToleranceTelemetryEnabled,Yi as isValidLockPid,xe as lastKnownHash,Rr as listRescueCheckpoints,Y as listStarterPacks,Pt as loadCustomAgents,ye as loadPrincipal,da as lockFilePath,Bi as loggerFactory,Wi as logsCurrentPath,Ji as logsPreviousPath,Dr as makeLazyEmbeddingsKeyStore,ca as markServerLockDraining,pt as mountMcpAndApi,ji as normalizeFsPath,k as originGitHubHost,xn as packageVersionMajorMinor,ci as parseAuthRejectionWire,fr as parseGitVersion,Ze as parseHocuspocusAuthToken,ue as parseKeepaliveConnectionId,Ee as pathToDocName,De as planSeed,zt as prepareSingleFileOpen,Wt as processCommand,mr as processUsage,Pn as readAllTargets,Ut as readBundleDecision,zn as readOwnNativeRules,$i as readProcessLock,sa as readProcessLockDetailed,x as readProjectHeadState,jt as readProjectLocalSemanticConfig,na as readServerLock,pr as readServerPackageVersion,Fr as readSkillInstallStateSnapshot,Vn as readStateManifest,tn as readTargetRecordedAt,Xn as readTargetVersion,At as readUiLock,at as reconcile,an as recordContributor,tr as recordSkillInstallEvent,ae as registerAllTools,Fe as registerWrite,ia as releaseProcessLock,Zi as releaseServerLock,ze as releaseUiLock,U as removeLastKnownHash,kr as reportSkillInstall,Wr as resetMetrics,a as resolveBundleEnabled,Sn as resolveBundledSkillDir,En as resolveContentDir,ot as resolveCursorBinaryDefault,gt as resolveCursorSpawnInvocation,P as resolveEffectiveLinterConfig,dr as resolveEmbeddingsCredential,bn as resolveLockDir,je as resolveNativeConfigForDoc,Se as resolveNativeMarkdownlintConfig,me as resolvePack,jr as resolvePackageVersion,Ye as resolveRemoteAccess,_n as resolveSkillInstallReportSettings,d as resolveUiInfo,hn as restoreContributors,li as restoreLifecycleFromConflictsJson,Et as rewriteMarkdownLinksForDocumentRename,xt as rewriteWikiLinksForDocumentRename,Pr as runAuthReposSubprocess,en as runAuthStatusSubprocess,Dt as runCloneSubprocess,Yn as runDeviceFlowSubprocess,cr as runWithMcpLogger,Ft as safeContentPath,Bn as safeSubdir,ir as safetyCheckpoint,L as sanitizeClientName,Er as saveInMemoryCheckpoint,jn as saveVersion,A as seedBasenameIndex,lr as serializeError,bi as setActiveSpanAttributes,H as setupServerObservers,Bt as shadowGit,Li as shutdownTelemetry,Vi as spansCurrentPath,Hi as spansPreviousPath,J as spawnDetached,ht as splitMarkdownBlocks,re as startWatcher,Ue as streamingProblemEvent,_r as swapContributors,qe as teardownToleranceTelemetryWriter,gr as toBroadcasterKey,Oi as tracedAppendFileSync,Ni as tracedLinkSync,Ti as tracedMkdir,ki as tracedMkdirSync,Fi as tracedRename,Ei as tracedRenameSync,Mi as tracedRmSync,Ai as tracedRmdirSync,Di as tracedUnlinkSync,Ci as tracedWriteFile,Ii as tracedWriteFileSync,$r as trustSystemCertificates,Zt as untrackTrackedProjectSkillProjection,_e as updateLastKnownHash,ta as updateProcessLockPort,oa as updateServerLockPort,p as updateUiLockPort,Qn as validateAgentId,St as validateCloneInputs,Lt as validateSkillZip,la as waitForServerLockDrain,ce as withHiddenWindowsConsole,Si as withSpan,xi as withSpanSync,qr as writeBundleDecision,ni as writeMarkdownlintRule,It as writeRootGitignoreForNewRepo,g as writeStateManifest,sn as writeTargetVersion,We as writeTracker};
|
package/dist/start-BYY0acPS.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as e,r as t,v as n}from"./start-C4KuZHu5.mjs";export{t as bootStartServer,e as resolveHost,n as startCommand};
|
package/dist/start-C4KuZHu5.mjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Q as e,Y as t}from"./src-9BFQh559.mjs";import{En as n,Jr as r,a as i,ri as a}from"./src-9I3GiOoK.mjs";import{S as o,x as s}from"./write-project-skill-WXZSbQlg.mjs";import{a as c,n as l,t as u}from"./acp-harness-probe-DOXp9Wx4.mjs";import{n as d}from"./constants-J4-mibQ1.mjs";import{spawn as f}from"node:child_process";import{basename as p,join as m,posix as h,resolve as g,win32 as _}from"node:path";import{closeSync as v,existsSync as y,mkdirSync as b,openSync as x,statSync as S}from"node:fs";import{homedir as C}from"node:os";import{rm as w}from"node:fs/promises";import{setTimeout as T}from"node:timers/promises";function E(e){let t={...e};return delete t.ELECTRON_RUN_AS_NODE,t}function D(e,t,n={}){let i=(n.spawn??f)(e,[...t],r({detached:!0,stdio:`ignore`,env:E(n.env??process.env)}));return i.unref(),i}const O=`OpenKnowledge.app`,k=`/Applications/${O}`;function A(){return{platform:process.platform,env:process.env,execPath:process.execPath,isTTY:process.stdout.isTTY,statSync:e=>{try{return S(e,{throwIfNoEntry:!1})??null}catch{return null}}}}function j(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`){let t=/(.+?\.app)\/Contents\/MacOS\//.exec(e.execPath);if(t?.[1])return t[1]}if(M(e,k))return k;let t=m(e.homeDir??C(),`Applications`,O);return M(e,t)?t:null}function M(e,t){return N(e,m(t,`Contents`,`MacOS`,`OpenKnowledge`))}function N(e,t){try{let n=e.statSync(t);return n&&typeof n.isFile==`function`?n.isFile():!1}catch{return!1}}const ee=[`@inkeepopen-knowledge-desktop`,`OpenKnowledge`];function P(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`&&/\\OpenKnowledge\.exe$/i.test(e.execPath))return e.execPath;let t=e.env.LOCALAPPDATA;if(t)for(let n of ee){let r=_.join(t,`Programs`,n,`OpenKnowledge.exe`);if(N(e,r))return r}return null}function F(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`&&e.execPath.endsWith(`/openknowledge`))return e.execPath;let t=`/opt/OpenKnowledge/openknowledge`;return N(e,t)?t:null}function I(e){if(e.env.OK_FORCE_BROWSER===`1`)return{available:!1,reason:`force-browser`};if(e.platform!==`darwin`&&e.platform!==`win32`&&e.platform!==`linux`)return{available:!1,reason:`unsupported-platform`};let t;try{t=e.platform===`darwin`?j(e):e.platform===`win32`?P(e):F(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.platform===`win32`&&e.isTTY===void 0&&!e.env.CI)||e.env.SSH_CONNECTION||e.env.SSH_TTY||e.platform===`linux`&&!e.env.DISPLAY&&!e.env.WAYLAND_DISPLAY?{available:!1,reason:`headless`,bundlePath:t}:{available:!0,reason:`available`,bundlePath:t}:{available:!1,reason:`no-bundle`}}function L(e,t){let n=e.log??(e=>console.error(e)),r=e.platform??process.platform;if(n("Launching OpenKnowledge desktop (use `ok start` for the browser server, or `OK_FORCE_BROWSER=1` to always skip)"),r===`darwin`){D(`open`,[`-b`,`com.inkeep.open-knowledge`],{spawn:e.spawn});return}let i=t?.bundlePath;if(!i){n(`Desktop launch skipped: no resolved desktop executable (caller bug).`);return}D(i,[],{spawn:e.spawn})}function R(e=`no-bundle`){switch(e){case`no-bundle`:return`Desktop app not found (checked the standard install locations for this OS). Install it, or omit --mode for browser mode.`;case`darwin-only`:case`unsupported-platform`:return`Desktop app is not available on this platform. 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 the desktop install (filesystem error). Check permissions or use --mode=browser.`;case`available`:return`Desktop app appears available but launch dispatch did not fire (caller bug).`}}function z(e){return h.join(h.dirname(e),`..`,`Frameworks`,`OpenKnowledge Server.app`,`Contents`,`MacOS`,`OpenKnowledge Helper`)}const te=/\/[^/]+\.app\/Contents\/MacOS\/[^/]+$/;function ne(e){if(e.platform!==`darwin`||!te.test(e.execPath))return null;let t=z(e.execPath);return e.exists(t)?t:null}function B(e={}){let t=e.execPath??process.execPath,n=e.platform??process.platform,r=e.argv??process.argv,i=e.exists??y,a=r[1];return a?{command:ne({execPath:t,platform:n,exists:i})??t,prefixArgs:[a]}:(console.warn(`[self-spawn] process.argv[1] is empty — falling back to \`npx -y @inkeep/open-knowledge@latest\`. This re-introduces the registry-fetch surface that re-exec was fixing. Observed argv: ${JSON.stringify(r)}`),{command:`npx`,prefixArgs:[`-y`,`@inkeep/open-knowledge@latest`]})}function V(e,t){return e.host??t.HOST??`127.0.0.1`}function H(e,t){return t&&(e===`::`||e===`::1`||e===`[::1]`||e===`localhost`||e===`0.0.0.0`)?{host:`127.0.0.1`,coerced:!0}:{host:e,coerced:!1}}function U(e){let t=p(e).replace(/[^\x20-\x7E]/g,``).trim().slice(0,64);return`open-knowledge-server ${t.length>0?t:`unknown`}`}var W=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 G(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 K(t){y(t.lockDir)||b(t.lockDir,{recursive:!0});let n=x(m(t.lockDir,e),`w`),r=t.spawn??f,{PORT:i,...a}=process.env,o=B();try{let e=r(o.command,[...o.prefixArgs,...t.args??[`ui`]],{detached:!0,stdio:[`ignore`,`ignore`,n],windowsHide:!0,cwd:t.cwd,env:{...a,ELECTRON_RUN_AS_NODE:`1`}});return e.unref(),e}finally{try{v(n)}catch{}}}function q(e,t,n,r=!1){return e??(n!==void 0||r?void 0:t)}function J(e,t){return e!==void 0&&t!==null&&t.port>0&&t.draining!==!0}function Y(e,t,n){return e??+(t!=null&&!n)}async function X(e){let t=e.spawn??f,n=B(),{PORT:r,...i}=process.env,a=t(n.command,[...n.prefixArgs,`ui`,`--port`,String(e.uiPort)],{cwd:e.cwd,stdio:`inherit`,windowsHide:!0,env:{...i,ELECTRON_RUN_AS_NODE:`1`}}),o=!1,s=e=>{o=!0;try{a.kill(e)}catch{}},c=()=>s(`SIGINT`),l=()=>s(`SIGTERM`);process.once(`SIGINT`,c),process.once(`SIGTERM`,l),await new Promise(e=>{a.on(`exit`,(t,n)=>{process.exitCode=Y(t,n,o),e()}),a.on(`error`,t=>{console.error(`[start] connect fallback: failed to spawn ok ui — ${t instanceof Error?t.message:String(t)}`),process.exitCode=1,e()})}),process.removeListener(`SIGINT`,c),process.removeListener(`SIGTERM`,l)}async function Z(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}const re=t;function ie(e,t,n=e=>w(e,{recursive:!0,force:!0})){return async()=>{try{await e()}finally{try{await n(t)}catch(e){process.stderr.write(`[start] ephemeral temp dir reap failed for ${t}: ${e instanceof Error?e.message:String(e)}\n`)}}}}function ae(e,t={}){let n=t.exit??(e=>process.exit(e)),r=t.getActiveHandles??(()=>{let e=process._getActiveHandles;return e?e.call(process):null});return async()=>{let i=!1;try{await e()}catch(e){i=!0,t.log?.error({err:e},`idle-shutdown: destroy failed — exiting anyway`)}finally{let e=null;try{let t=r();if(t!==null){e={};for(let n of t){let t=n?.constructor?.name??`unknown`;e[t]=(e[t]??0)+1}}}catch{e=null}t.log?.info({event:`idle-shutdown-exit`,exitCode:+!!i,openHandles:e??{},handlesAvailable:e!==null},`idle-shutdown: teardown finished — exiting process`),n(+!!i)}}}async function Q(e){let t=e.sigtermGraceMs??re,n=e.sigtermPollIntervalMs??200,r=e.sleep??(e=>T(e)),i=e.reason??`teardown`;try{let a=e.readUiLock(),o=e.spawnedUiPid();if(a&&e.isAlive(a.pid)&&a.pid!==o)e.log?.info({pid:a.pid,port:a.port,spawnedUiPid:o},`${i}: ui.lock holder is not our spawned sibling — leaving it alone`);else if(a&&e.isAlive(a.pid))try{e.killPid(a.pid,`SIGTERM`),e.log?.info({pid:a.pid,port:a.port},`${i}: SIGTERM UI sibling`);let o=Date.now()+t;for(;Date.now()<o&&e.isAlive(a.pid);)await r(n);if(e.isAlive(a.pid))try{e.killPid(a.pid,`SIGKILL`),e.log?.warn({pid:a.pid,graceMs:t},`${i}: SIGTERM grace expired — escalated to SIGKILL`)}catch(t){e.log?.error({pid:a.pid,err:t},`${i}: SIGKILL failed`)}}catch(t){e.log?.warn({pid:a.pid,err:t},`${i}: failed to SIGTERM UI sibling`)}}catch(t){e.log?.warn({err:t},`${i}: UI lookup failed; proceeding`)}}function oe(e){let{destroy:t,...n}=e;return async()=>{await Q({...n,reason:`idle-shutdown`}),await t()}}async function se(e){let{config:t,cwd:r,host:o}=e,s=e.skipAutoInit??!1,d=e.skipUiAutoSpawn??!1,f=e.idleThresholdMs??18e5,{existsSync:p,mkdirSync:m}=await import(`node:fs`),{basename:h,dirname:g}=await import(`node:path`),{bootServer:_,getLogger:v,isProcessAlive:y,readUiLock:b,resolveContentDir:x,resolveLockDir:S,waitForServerLockDrain:C}=await import(`./src-h5dDPK2z.mjs`),w=e.log??v(`start`),E=e.singleFile!==void 0,D=e.projectDir??r,O=E?i(e.singleFile).canonicalFilePath:void 0,k=O?g(O):void 0,A=O?h(O):void 0;if(!E){if(!s&&!n(r))throw new W(r);let t=process.env.OK_RECLAIM_DISABLE??null,i=e=>{let t=typeof e.event==`string`?e.event:``;(t.endsWith(`-failed`)||t.endsWith(`-error`)||t.endsWith(`-missing`))&&w.warn({event:e},`[start] reclaim sweep reported a problem`)};try{(e.repairMcpConfigsFn??(await import(`./repair-mcp-configs-DY0FS2-y.mjs`)).repairMcpConfigs)({projectDir:r,reclaimDisableEnv:t,logger:i})}catch(e){w.warn({err:e},`[start] mcp-config repair sweep failed; continuing`)}try{(e.repairLaunchJsonFn??(await import(`./repair-launch-json-Cq9ghST3.mjs`)).repairLaunchJson)({projectDir:r,reclaimDisableEnv:t,logger:i})}catch(e){w.warn({err:e},`[start] launch.json repair sweep failed; continuing`)}try{await(e.repairSkillsFn??(await import(`./repair-skills-l9Id0gzv.mjs`)).repairSkills)({projectDir:r,reclaimDisableEnv:t,logger:i})}catch(e){w.warn({err:e},`[start] skill repair sweep failed; continuing`)}}let j=k??x(t,r);!E&&!p(j)&&(m(j,{recursive:!0}),w.info({contentDir:j},`Created content directory`));let M=null,N=null,ee=async({lockDir:t})=>{if(M=G({uiLock:b(t),isAlive:y}),M.action===`spawn`&&!d)try{let n=e.uiPort===void 0?void 0:[`ui`,`--port`,String(e.uiPort)];N=K({lockDir:t,cwd:r,spawn:e.spawn,args:n}).pid??null,w.info({reason:M.reason,uiPort:e.uiPort},`[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 M.action===`skip`&&w.info({port:M.port,pid:M.pid},`UI already running at port ${M.port}`)},P=e.reactShellDistDir===void 0,F=c(),I=a();{let e=S(E?D:r),t=Date.now(),n=await C(e);n!==`no-drain`&&w.info({event:`start-waited-for-draining-predecessor`,outcome:n,waitedMs:Date.now()-t,drainLockDir:e},n===`released`?`[start] predecessor server finished draining — proceeding`:`[start] predecessor server still draining after wait — proceeding to collide`)}let L=await _({config:t,contentDir:j,projectDir:E?D:r,contentRoot:E?void 0:t.content.dir,port:e.port,host:o,...e.enableRemote===!0?{enableRemote:!0}:{},quiet:!1,detectGh:l,tokenStore:F,embeddingsKeyStore:I,...E?{ephemeral:!0,singleDocRelPath:A,gitEnabled:!1,gitPreflight:()=>({ok:!0,version:`0.0.0`,resolvedPath:`git`,source:`PATH`})}:{},localOpCliArgs:[process.execPath,process.argv[1]],probeHarnessManagedMcpEntry:(e,t)=>u(e,t),attachUiSibling:P,idleShutdownMs:f,skipAutoInit:!0,...P?{spawnUiSiblingFn:ee}:{},idleShutdownHandler:t=>{let n=oe({readUiLock:()=>b(L.lockDir),spawnedUiPid:()=>N,isAlive:y,killPid:(e,t)=>{process.kill(e,t)},destroy:t,log:w});return ae(E?ie(n,D):n,{log:w,exit:e.idleExit})},log:w,...e.serveContentAssets===void 0?{}:{serveContentAssets:e.serveContentAssets},...e.reactShellDistDir?{reactShellDistDir:e.reactShellDistDir}:{}});M||={action:`skip`,reason:`alive`,pid:0,port:0};let R=M,z=null;if(R.action===`skip`)z=R.port>0?R.port:null;else if(!d){let t=e.uiBindTimeoutMs??3e3;z=await Z({readUiLock:()=>b(L.lockDir),now:Date.now,sleep:e=>T(e),timeoutMs:t,pollIntervalMs:50}),z===null&&w.warn({timeoutMs:t},`[start] ok ui did not bind within timeout — banner falls back to API URL`)}return{httpServer:L.httpServer,destroy:L.destroy,lockDir:L.lockDir,contentDir:j,port:L.port,ready:L.ready,degraded:L.degraded,uiSpawnDecision:M,spawnedUiPid:N,resolvedUiPort:z}}function ce(e){if(e===`browser`||e===`app`)return e;throw new o(`--mode must be 'browser' or 'app'`)}function le(e){let t=Number.parseInt(e,10);if(Number.isNaN(t)||t<1||t>65535)throw new o(`--ui-port must be a port number between 1 and 65535`);return t}function ue(e){return e.OK_CONSOLE_LEVEL!==void 0||e.LOG_LEVEL!==void 0?null:`warn`}function $(e){let t=[`Stopping OpenKnowledge…`,`Saving pending changes and releasing the server lock — this can take a few seconds.`];return e===`SIGINT`&&t.push(`Press Ctrl+C again to force quit.`),t}async function de(e,t){let n=ue(process.env);n!==null&&(process.env.OK_CONSOLE_LEVEL=n);let{renderBanner:r}=await import(`./banner-CIK2GwPx.mjs`),{accent:i,dim:a,error:o,warning:s}=await import(`./colors-MGDi6UGf.mjs`),c=process.cwd(),l=t.remote!==void 0&&t.remote!==!1,u=typeof t.remote==`string`?t.remote:void 0,f=u===void 0?e:{...e,remote:{...e.remote,url:u}};process.title=U(c),l&&(typeof f.remote?.url!=`string`||f.remote.url===``)&&(console.error(o("--remote requires a public tunnel URL — pass it (`ok start --remote https://<your-tunnel-host>`) or set remote.url in .ok/config.yml.")),process.exit(78)),l&&console.warn(s([``,`⚠ REMOTE ACCESS ENABLED — no server-side authentication.`,` Anyone who can reach ${f.remote?.url} has FULL control of this`,` knowledge base, including sync, publishing, credentials, and local operations.`,` Restrict who can reach it at the tunnel: ngrok OAuth, Cloudflare Access,`,` Tailscale ACLs, or equivalent edge auth.`,``].join(`
|
|
2
|
-
`)));let p=V(t,process.env),m=H(p,l);m.coerced&&console.warn(`remote access is enabled and ${p} is not an IPv4 loopback bind — tunnels proxy to 127.0.0.1, so binding ${p} would leave the tunnel dialing a dead port. Using 127.0.0.1.`);let h=m.host,_=t.port===void 0?void 0:Number(t.port),v=process.env.PORT?Number(process.env.PORT):void 0,b=t.uiPort===void 0?void 0:Number(t.uiPort);l&&_===void 0&&v!==void 0&&console.warn(`remote access is enabled — ignoring env PORT=${process.env.PORT}; the tunnel's port mapping targets the stable remote port (${f.remote?.port}). Pass --port to override deliberately.`);let x=q(_,v,b,l)??(l?f.remote?.port:void 0);if(b!==void 0){let{readServerLock:e,resolveLockDir:t}=await import(`./src-h5dDPK2z.mjs`);if(J(b,e(t(c)))){await X({cwd:c,uiPort:b});return}}let S=t.reactShellDistDir;if(l&&S===void 0){let e=import.meta.dirname??new URL(`.`,import.meta.url).pathname;S=[g(e,`public`),g(e,`../../app/dist`),g(e,`../../../app/dist`)].find(e=>y(e)),S===void 0&&console.warn(`remote access: bundled web UI not found — serving /mcp and /api only over the tunnel.`)}let C;try{C=await se({config:f,cwd:c,host:h,port:x,...b===void 0?{}:{uiPort:b},...t.serveContentAssets===void 0?{}:{serveContentAssets:t.serveContentAssets},...S?{reactShellDistDir:S}:{},...t.singleFile?{singleFile:t.singleFile}:{},...t.projectDir?{projectDir:t.projectDir}:{},...l?{enableRemote:!0}:{}})}catch(e){e instanceof W&&(console.error(o(e.message)),process.exit(1));let t=await import(`./src-h5dDPK2z.mjs`);if((e instanceof t.GitNotAvailableError||e instanceof t.GitTooOldError)&&process.exit(78),e instanceof t.RemoteConfigError&&(console.error(o(e.message)),process.exit(78)),(e instanceof t.SingleFileNotFoundError||e instanceof t.SingleFileNotAFileError||e instanceof t.SingleFileNotMarkdownError)&&(console.error(o(e.message)),process.exit(1)),b!==void 0&&fe(e,t)){await X({cwd:c,uiPort:b});return}let n=pe(e,c,t);n!==null&&(console.error(o(n)),process.exit(1)),console.error(`${o(`Failed to start:`)} ${e instanceof Error?e.stack??e.message:String(e)}`),process.exit(1)}let w=!1,T=async e=>{if(w)return;w=!0;let[t,...n]=$(e);console.log(i(`\n${t}`));for(let e of n)console.log(a(` ${e}`));if(C.spawnedUiPid!==null)try{let{getLogger:e,isProcessAlive:t,readUiLock:n}=await import(`./src-h5dDPK2z.mjs`);await Q({readUiLock:()=>n(C.lockDir),spawnedUiPid:()=>C.spawnedUiPid,isAlive:t,killPid:(e,t)=>process.kill(e,t),log:e(`start`),reason:`shutdown`})}catch(e){console.error(`${o(`ui sibling teardown failed:`)} ${e instanceof Error?e.stack??e.message:String(e)}`)}try{await C.destroy()}catch(e){console.error(`${o(`destroy() failed:`)} ${e instanceof Error?e.stack??e.message:String(e)}`),process.exitCode=1}process.exit(process.exitCode??0)};process.once(`SIGINT`,()=>{T(`SIGINT`)}),process.once(`SIGTERM`,()=>{T(`SIGTERM`)});let E=`http://${h}:${C.port}`,D=h===`0.0.0.0`||h===`::`?`http://0.0.0.0:${C.port}`:void 0,O=C.resolvedUiPort,k=O!==null&&O>0?`http://${h}:${O}`:E;console.log(r({name:`open-knowledge`,version:d,localUrl:k,apiUrl:k===E?void 0:E,networkUrl:D,nextSteps:[`Open the Editor URL in your browser to start editing.`]}));let A={"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`};C.ready.then(async()=>{if(C.degraded.length>0){console.log();for(let e of C.degraded){let t=A[e]??`${e} (check server logs for details)`;console.warn(` ${s(`⚠`)} ${s(e)}: ${a(t)}`)}console.log()}if(t.open){let{openBrowser:e}=await import(`./open-browser-CxnOIVsL.mjs`);e(k)}}).catch(e=>{console.error(` ${o(`Server initialization failed:`)} ${e instanceof Error?e.message:String(e)}`)})}function fe(e,t){let n=t.ServerLockCollisionError;return n!==void 0&&e instanceof n}function pe(e,t,n){let r=n.ServerLockCollisionError;if(r===void 0||!(e instanceof r))return null;try{let e=m(t,`.ok`),r=n.readServerLock(e);return r?r.kind===`interactive`?`OpenKnowledge 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`.":"OpenKnowledge server is already running on this project — check `ok status` or `ok stop`.":"OpenKnowledge server is already running on this project — check `ok status` or `ok stop`."}catch{return null}}function me(e){return new s(`start`).description(`Start the knowledge base collab server`).option(`-p, --port <port>`,`Server port`,void 0).option(`--ui-port <port>`,`Pin the ok ui sibling to <port> and connect (not exit) if a server already runs here — the worktree-preview recipe path`,le).option(`-H, --host <host>`,`Server host`,void 0).option(`--open`,`Open browser after start`).option(`--mode <mode>`,`Force dispatch mode: 'browser' or 'app'`,ce).option(`--serve-content-assets`,`Serve content assets from this server (now the default; kept for compatibility)`).option(`--react-shell-dist-dir <path>`,`Serve React shell from <path> (suppresses ok ui sibling)`).option(`--single-file <path>`,`No-project ephemeral single-file mode: scope the server to one markdown file (git + MCP off)`).option(`--project-dir <dir>`,`Throwaway project root for --single-file (where ephemeral .ok/ state lives)`).option(`--remote [url]`,`Serve through a tunnel: admit requests carrying the tunnel Host with NO server-side auth (anyone who can reach the URL has full control — restrict access at the tunnel with edge auth). Bare --remote uses remote.url from .ok/config.yml; --remote <url> supplies it for this run.`).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)
|
|
3
|
-
`),process.exit(2));let e=[];if(t.port!==void 0&&e.push(`--port`),t.uiPort!==void 0&&e.push(`--ui-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=I(A());if(n.available){L({spawn:f},n);return}console.error(R(n.reason)),process.exit(1)}await de(n,t)})}export{B as C,D,L as E,ae as S,I as T,K as _,H as a,pe as b,G as c,fe as d,q as f,J as g,de as h,oe as i,U as l,ue as m,Z as n,Y as o,V as p,se as r,X as s,W as t,$ as u,me as v,A as w,ie as x,Q as y};
|
|
4
|
-
//# sourceMappingURL=start-C4KuZHu5.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-q-dGnwlc.mjs";import{t as e}from"./chunk-5QVNJEHU-CvZ-NmqQ.mjs";export{e as statCommand};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-C7FmC3Cl.mjs";import{m as t,p as n}from"./src-BuBt_xnY.mjs";import{O as r,c as i,s as a,x as o}from"./chunk-WYO6CB5R-Cg1RXhAT.mjs";import{et as s,g as c}from"./chunk-ICXQ74PX-CewdqzeE.mjs";import{t as l}from"./line-Cq-NoiNn.mjs";import"./chunk-HOUHSVGY-Cg_2_CUd.mjs";import"./chunk-Q4XR5HBZ-4H-m7p0G.mjs";import"./chunk-7BUUIJ7U-_1oXd84C.mjs";import"./chunk-OGEWGWER-B-Vr80Fa.mjs";import{t as u}from"./graphlib-DKEQBDTz.mjs";import{t as d}from"./dagre-CbI1Ylqw.mjs";import"./chunk-32BRIVSS-ok2xg0Je.mjs";import"./chunk-XXDRQBXY-BvbdToKZ.mjs";import"./chunk-VR4S4FIN-mH-q10Uq.mjs";import"./chunk-C7G6YPKG-DpNJWc2e.mjs";import"./chunk-ZGVPDNZ5-BE_qYP6z.mjs";import"./chunk-52WLFC77-BaT5_S-q.mjs";import"./chunk-FWX5IMBZ-BFNo8SGu.mjs";import{i as f,n as p,t as m}from"./chunk-EX3LRPZG-BYcqQlY8.mjs";var h=e(e=>e.append(`circle`).attr(`class`,`start-state`).attr(`r`,o().state.sizeUnit).attr(`cx`,o().state.padding+o().state.sizeUnit).attr(`cy`,o().state.padding+o().state.sizeUnit),`drawStartState`),g=e(e=>e.append(`line`).style(`stroke`,`grey`).style(`stroke-dasharray`,`3`).attr(`x1`,o().state.textHeight).attr(`class`,`divider`).attr(`x2`,o().state.textHeight*2).attr(`y1`,0).attr(`y2`,0),`drawDivider`),_=e((e,t)=>{let n=e.append(`text`).attr(`x`,2*o().state.padding).attr(`y`,o().state.textHeight+2*o().state.padding).attr(`font-size`,o().state.fontSize).attr(`class`,`state-title`).text(t.id),r=n.node().getBBox();return e.insert(`rect`,`:first-child`).attr(`x`,o().state.padding).attr(`y`,o().state.padding).attr(`width`,r.width+2*o().state.padding).attr(`height`,r.height+2*o().state.padding).attr(`rx`,o().state.radius),n},`drawSimpleState`),v=e((t,n)=>{let r=e(function(e,t,n){let r=e.append(`tspan`).attr(`x`,2*o().state.padding).text(t);n||r.attr(`dy`,o().state.textHeight)},`addTspan`),i=t.append(`text`).attr(`x`,2*o().state.padding).attr(`y`,o().state.textHeight+1.3*o().state.padding).attr(`font-size`,o().state.fontSize).attr(`class`,`state-title`).text(n.descriptions[0]).node().getBBox(),a=i.height,s=t.append(`text`).attr(`x`,o().state.padding).attr(`y`,a+o().state.padding*.4+o().state.dividerMargin+o().state.textHeight).attr(`class`,`state-description`),c=!0,l=!0;n.descriptions.forEach(function(e){c||(r(s,e,l),l=!1),c=!1});let u=t.append(`line`).attr(`x1`,o().state.padding).attr(`y1`,o().state.padding+a+o().state.dividerMargin/2).attr(`y2`,o().state.padding+a+o().state.dividerMargin/2).attr(`class`,`descr-divider`),d=s.node().getBBox(),f=Math.max(d.width,i.width);return u.attr(`x2`,f+3*o().state.padding),t.insert(`rect`,`:first-child`).attr(`x`,o().state.padding).attr(`y`,o().state.padding).attr(`width`,f+2*o().state.padding).attr(`height`,d.height+a+2*o().state.padding).attr(`rx`,o().state.radius),t},`drawDescrState`),y=e((e,t,n)=>{let r=o().state.padding,i=2*o().state.padding,a=e.node().getBBox(),s=a.width,c=a.x,l=e.append(`text`).attr(`x`,0).attr(`y`,o().state.titleShift).attr(`font-size`,o().state.fontSize).attr(`class`,`state-title`).text(t.id),u=l.node().getBBox().width+i,d=Math.max(u,s);d===s&&(d+=i);let f,p=e.node().getBBox();t.doc,f=c-r,u>s&&(f=(s-d)/2+r),Math.abs(c-p.x)<r&&u>s&&(f=c-(u-s)/2);let m=1-o().state.textHeight;return e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,m).attr(`class`,n?`alt-composit`:`composit`).attr(`width`,d).attr(`height`,p.height+o().state.textHeight+o().state.titleShift+1).attr(`rx`,`0`),l.attr(`x`,f+r),u<=s&&l.attr(`x`,c+(d-i)/2-u/2+r),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,o().state.titleShift-o().state.textHeight-o().state.padding).attr(`width`,d).attr(`height`,o().state.textHeight*3).attr(`rx`,o().state.radius),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,o().state.titleShift-o().state.textHeight-o().state.padding).attr(`width`,d).attr(`height`,p.height+3+2*o().state.textHeight).attr(`rx`,o().state.radius),e},`addTitleAndBox`),b=e(e=>(e.append(`circle`).attr(`class`,`end-state-outer`).attr(`r`,o().state.sizeUnit+o().state.miniPadding).attr(`cx`,o().state.padding+o().state.sizeUnit+o().state.miniPadding).attr(`cy`,o().state.padding+o().state.sizeUnit+o().state.miniPadding),e.append(`circle`).attr(`class`,`end-state-inner`).attr(`r`,o().state.sizeUnit).attr(`cx`,o().state.padding+o().state.sizeUnit+2).attr(`cy`,o().state.padding+o().state.sizeUnit+2)),`drawEndState`),x=e((e,t)=>{let n=o().state.forkWidth,r=o().state.forkHeight;if(t.parentId){let e=n;n=r,r=e}return e.append(`rect`).style(`stroke`,`black`).style(`fill`,`black`).attr(`width`,n).attr(`height`,r).attr(`x`,o().state.padding).attr(`y`,o().state.padding)},`drawForkJoinState`),S=e((e,t,n,r)=>{let i=0,s=r.append(`text`);s.style(`text-anchor`,`start`),s.attr(`class`,`noteText`);let c=e.replace(/\r\n/g,`<br/>`);c=c.replace(/\n/g,`<br/>`);let l=c.split(a.lineBreakRegex),u=1.25*o().state.noteMargin;for(let e of l){let r=e.trim();if(r.length>0){let e=s.append(`tspan`);if(e.text(r),u===0){let t=e.node().getBBox();u+=t.height}i+=u,e.attr(`x`,t+o().state.noteMargin),e.attr(`y`,n+i+1.25*o().state.noteMargin)}}return{textWidth:s.node().getBBox().width,textHeight:i}},`_drawLongText`),C=e((e,t)=>{t.attr(`class`,`state-note`);let n=t.append(`rect`).attr(`x`,0).attr(`y`,o().state.padding),{textWidth:r,textHeight:i}=S(e,0,0,t.append(`g`));return n.attr(`height`,i+2*o().state.noteMargin),n.attr(`width`,r+o().state.noteMargin*2),n},`drawNote`),w=e(function(e,t){let n=t.id,r={id:n,label:t.id,width:0,height:0},i=e.append(`g`).attr(`id`,n).attr(`class`,`stateGroup`);t.type===`start`&&h(i),t.type===`end`&&b(i),(t.type===`fork`||t.type===`join`)&&x(i,t),t.type===`note`&&C(t.note.text,i),t.type===`divider`&&g(i),t.type===`default`&&t.descriptions.length===0&&_(i,t),t.type===`default`&&t.descriptions.length>0&&v(i,t);let a=i.node().getBBox();return r.width=a.width+2*o().state.padding,r.height=a.height+2*o().state.padding,r},`drawState`),T=0,E=e(function(n,i,u){let d=e(function(e){switch(e){case m.relationType.AGGREGATION:return`aggregation`;case m.relationType.EXTENSION:return`extension`;case m.relationType.COMPOSITION:return`composition`;case m.relationType.DEPENDENCY:return`dependency`}},`getRelationType`);i.points=i.points.filter(e=>!Number.isNaN(e.y));let f=i.points,p=l().x(function(e){return e.x}).y(function(e){return e.y}).curve(s),h=n.append(`path`).attr(`d`,p(f)).attr(`id`,`edge`+T).attr(`class`,`transition`),g=``;if(o().state.arrowMarkerAbsolute&&(g=r(!0)),h.attr(`marker-end`,`url(`+g+`#`+d(m.relationType.DEPENDENCY)+`End)`),u.title!==void 0){let e=n.append(`g`).attr(`class`,`stateLabel`),{x:r,y:s}=c.calcLabelPosition(i.points),l=a.getRows(u.title),d=0,f=[],p=0,m=0;for(let n=0;n<=l.length;n++){let i=e.append(`text`).attr(`text-anchor`,`middle`).text(l[n]).attr(`x`,r).attr(`y`,s+d),a=i.node().getBBox();p=Math.max(p,a.width),m=Math.min(m,a.x),t.info(a.x,r,s+d),d===0&&(d=i.node().getBBox().height,t.info(`Title height`,d,s)),f.push(i)}let h=d*l.length;if(l.length>1){let e=(l.length-1)*d*.5;f.forEach((t,n)=>t.attr(`y`,s+n*d-e)),h=d*l.length}let g=e.node().getBBox();e.insert(`rect`,`:first-child`).attr(`class`,`box`).attr(`x`,r-p/2-o().state.padding/2).attr(`y`,s-h/2-o().state.padding/2-3.5).attr(`width`,p+o().state.padding).attr(`height`,h+o().state.padding),t.info(g)}T++},`drawEdge`),D,O={},k=e(function(){},`setConf`),A=e(function(e){e.append(`defs`).append(`marker`).attr(`id`,`dependencyEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`insertMarkers`),j=e(function(e,r,a,s){D=o().state;let c=o().securityLevel,l;c===`sandbox`&&(l=n(`#i`+r));let u=n(c===`sandbox`?l.nodes()[0].contentDocument.body:`body`),d=c===`sandbox`?l.nodes()[0].contentDocument:document;t.debug(`Rendering diagram `+e);let f=u.select(`[id='${r}']`);A(f),N(s.db.getRootDoc(),f.append(`g`).attr(`id`,r+`-root`),void 0,!1,u,d,s);let p=D.padding,m=f.node().getBBox(),h=m.width+p*2,g=m.height+p*2;i(f,g,h*1.75,D.useMaxWidth),f.attr(`viewBox`,`${m.x-D.padding} ${m.y-D.padding} `+h+` `+g)},`draw`),M=e(e=>e?e.length*D.fontSizeFactor:1,`getLabelWidth`),N=e((e,n,r,i,o,s,c)=>{let l=new u({compound:!0,multigraph:!0}),f,p=!0;for(f=0;f<e.length;f++)if(e[f].stmt===`relation`){p=!1;break}r?l.setGraph({rankdir:`LR`,multigraph:!0,compound:!0,ranker:`tight-tree`,ranksep:p?1:D.edgeLengthFactor,nodeSep:p?1:50,isMultiGraph:!0}):l.setGraph({rankdir:`TB`,multigraph:!0,compound:!0,ranksep:p?1:D.edgeLengthFactor,nodeSep:p?1:50,ranker:`tight-tree`,isMultiGraph:!0}),l.setDefaultEdgeLabel(function(){return{}});let m=c.db.getStates(),h=c.db.getRelations(),g=Object.keys(m);for(let e of g){let t=m[e];r&&(t.parentId=r);let a;if(t.doc){let e=n.append(`g`).attr(`id`,t.id).attr(`class`,`stateGroup`);a=N(t.doc,e,t.id,!i,o,s,c);{e=y(e,t,i);let n=e.node().getBBox();a.width=n.width,a.height=n.height+D.padding/2,O[t.id]={y:D.compositTitleSize}}}else a=w(n,t,l);if(t.note){let e=w(n,{descriptions:[],id:t.id+`-note`,note:t.note,type:`note`},l);t.note.position===`left of`?(l.setNode(a.id+`-note`,e),l.setNode(a.id,a)):(l.setNode(a.id,a),l.setNode(a.id+`-note`,e)),l.setParent(a.id,a.id+`-group`),l.setParent(a.id+`-note`,a.id+`-group`)}else l.setNode(a.id,a)}t.debug(`Count=`,l.nodeCount(),l);let _=0;h.forEach(function(e){_++,t.debug(`Setting edge`,e),l.setEdge(e.id1,e.id2,{relation:e,width:M(e.title),height:D.labelHeight*a.getRows(e.title).length,labelpos:`c`},`id`+_)}),d(l),t.debug(`Graph after layout`,l.nodes());let v=n.node();l.nodes().forEach(function(e){e!==void 0&&l.node(e)!==void 0?(t.warn(`Node `+e+`: `+JSON.stringify(l.node(e))),o.select(`#`+v.id+` #`+e).attr(`transform`,`translate(`+(l.node(e).x-l.node(e).width/2)+`,`+(l.node(e).y+(O[e]?O[e].y:0)-l.node(e).height/2)+` )`),o.select(`#`+v.id+` #`+e).attr(`data-x-shift`,l.node(e).x-l.node(e).width/2),s.querySelectorAll(`#`+v.id+` #`+e+` .divider`).forEach(e=>{let t=e.parentElement,n=0,r=0;t&&(t.parentElement&&(n=t.parentElement.getBBox().width),r=parseInt(t.getAttribute(`data-x-shift`),10),Number.isNaN(r)&&(r=0)),e.setAttribute(`x1`,0-r+8),e.setAttribute(`x2`,n-r-8)})):t.debug(`No Node `+e+`: `+JSON.stringify(l.node(e)))});let b=v.getBBox();l.edges().forEach(function(e){e!==void 0&&l.edge(e)!==void 0&&(t.debug(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(l.edge(e))),E(n,l.edge(e),l.edge(e).relation))}),b=v.getBBox();let x={id:r||`root`,label:r||`root`,width:0,height:0};return x.width=b.width+2*D.padding,x.height=b.height+2*D.padding,t.debug(`Doc rendered`,x,l),x},`renderDoc`),P={parser:p,get db(){return new m(1)},renderer:{setConf:k,draw:j},styles:f,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{P as diagram};
|
|
2
|
-
//# sourceMappingURL=stateDiagram-2N3HPSRC-BD1FBZi9.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-C7FmC3Cl.mjs";import"./src-BuBt_xnY.mjs";import"./chunk-WYO6CB5R-Cg1RXhAT.mjs";import"./chunk-ICXQ74PX-CewdqzeE.mjs";import"./chunk-HOUHSVGY-Cg_2_CUd.mjs";import"./chunk-Q4XR5HBZ-4H-m7p0G.mjs";import"./chunk-7BUUIJ7U-_1oXd84C.mjs";import"./chunk-OGEWGWER-B-Vr80Fa.mjs";import"./chunk-32BRIVSS-ok2xg0Je.mjs";import"./chunk-XXDRQBXY-BvbdToKZ.mjs";import"./chunk-VR4S4FIN-mH-q10Uq.mjs";import"./chunk-C7G6YPKG-DpNJWc2e.mjs";import"./chunk-ZGVPDNZ5-BE_qYP6z.mjs";import"./chunk-52WLFC77-BaT5_S-q.mjs";import"./chunk-FWX5IMBZ-BFNo8SGu.mjs";import{i as t,n,r,t as i}from"./chunk-EX3LRPZG-BYcqQlY8.mjs";var a={parser:n,get db(){return new i(2)},renderer:r,styles:t,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
2
|
-
//# sourceMappingURL=stateDiagram-v2-6OUMAXLB-CqmBRdZY.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-q-dGnwlc.mjs";import{n as e}from"./chunk-VYOJP4TV-DFxaC5Uc.mjs";export{e as strings};
|