@inkeep/open-knowledge 0.33.0-beta.6 → 0.33.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (457) hide show
  1. package/dist/{_baseFor-DgUmPvii.mjs → _baseFor-CMmZqlg4.mjs} +1 -1
  2. package/dist/alias-JE7RI5QX-DUBvIpa7.mjs +1 -0
  3. package/dist/{arc-DeCRbT14.mjs → arc-CQLjZPEs.mjs} +2 -2
  4. package/dist/architecture-YZFGNWBL-BGsYftSC.mjs +1 -0
  5. package/dist/{architectureDiagram-Q4EWVU46-Ddeiwqm4.mjs → architectureDiagram-Q4EWVU46-DGG0IyfP.mjs} +2 -2
  6. package/dist/{array-CB05KhfS.mjs → array-BNmwzyCf.mjs} +1 -1
  7. package/dist/assets/skills/discovery/SKILL.md +1 -1
  8. package/dist/assets/skills/project/SKILL.md +1 -1
  9. package/dist/awk2-BBAGSFUB-BSXvsYKE.mjs +1 -0
  10. package/dist/{banner-BeBA-IMp.mjs → banner-DsGpC-o3.mjs} +2 -2
  11. package/dist/base64-4YMZCVJ5-r5zsLj5P.mjs +1 -0
  12. package/dist/basename-AA2KJYZQ-DlSFPnLd.mjs +1 -0
  13. package/dist/bash-IJWYRKFO-CMwhRejZ.mjs +1 -0
  14. package/dist/{blockDiagram-DXYQGD6D-Cym5AJGx.mjs → blockDiagram-DXYQGD6D-DO_ZPiei.mjs} +2 -2
  15. package/dist/{build-CN003PPg.mjs → build-BGRQ9c88.mjs} +1 -1
  16. package/dist/build-C__Nqi6T.mjs +1 -0
  17. package/dist/{c4Diagram-AHTNJAMY-B7HMnVPk.mjs → c4Diagram-AHTNJAMY-CYnXxcYe.mjs} +2 -2
  18. package/dist/cat-RDUMLXKC-CBoLzbAA.mjs +1 -0
  19. package/dist/channel-Dz_kn09_.mjs +2 -0
  20. package/dist/chmod-SYMGL4JA-L3CtA8Q4.mjs +1 -0
  21. package/dist/{chokidar-C-Jds_Bg.mjs → chokidar-CrFRJt-7.mjs} +1 -1
  22. package/dist/{chunk-24IMIIXA-DaS5XS55.mjs → chunk-24IMIIXA-ByE3n7F5.mjs} +2 -2
  23. package/dist/{chunk-2KRD3SAO-Ci0JL9ng.mjs → chunk-2KRD3SAO-CC8_tMR3.mjs} +2 -2
  24. package/dist/{chunk-2TRDZQLB-Kqh0farN.mjs → chunk-2TRDZQLB-DJYfX1DB.mjs} +2 -2
  25. package/dist/{chunk-336JU56O-MOsDPDtl.mjs → chunk-336JU56O-D5mJPHrS.mjs} +2 -2
  26. package/dist/{chunk-3BS5SKQH-Chc9fv52.mjs → chunk-3BS5SKQH-C7siUFvi.mjs} +3 -3
  27. package/dist/{chunk-3H6UQG3A-B7zoJt1R.mjs → chunk-3H6UQG3A-jehz9Mov.mjs} +2 -2
  28. package/dist/{chunk-3THT3N7L-B1WzJUh4.mjs → chunk-3THT3N7L-DNeAafDi.mjs} +1 -1
  29. package/dist/{chunk-3ZUFRYJ4-DQB4hWDy.mjs → chunk-3ZUFRYJ4-5tUBEJiQ.mjs} +1 -1
  30. package/dist/chunk-426QAEUC-C79-xu4k.mjs +2 -0
  31. package/dist/{chunk-44UOCSGV-BZ6LfyW2.mjs → chunk-44UOCSGV-C07LY83n.mjs} +1 -1
  32. package/dist/{chunk-4BX2VUAB-BXGPfnwm.mjs → chunk-4BX2VUAB-CeLVr99T.mjs} +2 -2
  33. package/dist/{chunk-4GTNDTRF-CexF8C0H.mjs → chunk-4GTNDTRF-C79jHZPW.mjs} +2 -2
  34. package/dist/{chunk-4HHKTUW3-CewYv3NE.mjs → chunk-4HHKTUW3-C9w0lckj.mjs} +1 -1
  35. package/dist/{chunk-4Q4SM6WR-D6TVzfh2.mjs → chunk-4Q4SM6WR-BBf5_ewP.mjs} +2 -2
  36. package/dist/{chunk-4TB4RGXK-B0uHEnHn.mjs → chunk-4TB4RGXK-n_iVg8hq.mjs} +2 -2
  37. package/dist/{chunk-55IACEB6-CWM_Woee.mjs → chunk-55IACEB6-DnxgLkXS.mjs} +2 -2
  38. package/dist/{chunk-55VFSPNA-BoFmUszu.mjs → chunk-55VFSPNA-BI1ZlfMG.mjs} +2 -2
  39. package/dist/{chunk-5FUZZQ4R-BSIWed9s.mjs → chunk-5FUZZQ4R-D0CI_lA3.mjs} +2 -2
  40. package/dist/{chunk-5PVQY5BW-_JlgOiAb.mjs → chunk-5PVQY5BW-CM3DDgan.mjs} +2 -2
  41. package/dist/{chunk-5QMZ5MUS-BwpNU33k.mjs → chunk-5QMZ5MUS-DvwGjmAW.mjs} +2 -2
  42. package/dist/{chunk-5QVNJEHU-DJjin--s.mjs → chunk-5QVNJEHU-BwcO0gX-.mjs} +2 -2
  43. package/dist/{chunk-5V6VZH6T-BEpcJpsv.mjs → chunk-5V6VZH6T-CsG6wUhk.mjs} +2 -2
  44. package/dist/{chunk-62RKD26F-uqVDf3rA.mjs → chunk-62RKD26F-CgKazjAi.mjs} +2 -2
  45. package/dist/{chunk-64BAICW3-BlKhhT3-.mjs → chunk-64BAICW3-DZxI2NVA.mjs} +2 -2
  46. package/dist/{chunk-67CJDMHE-CADkctrU.mjs → chunk-67CJDMHE-CrUJnyQp.mjs} +2 -2
  47. package/dist/{chunk-6Z5SFZXK-DuXsHt84.mjs → chunk-6Z5SFZXK-CqxoPFbR.mjs} +2 -2
  48. package/dist/{chunk-74CEPOFO-CciWp7CZ.mjs → chunk-74CEPOFO-smMq6g2B.mjs} +1 -1
  49. package/dist/{chunk-7L36YK2X-Cok_Mfzv.mjs → chunk-7L36YK2X-BEYeMppm.mjs} +1 -1
  50. package/dist/{chunk-7N4EOEYR-D0VnhW8C.mjs → chunk-7N4EOEYR-qv4-7fqt.mjs} +2 -2
  51. package/dist/{chunk-7TSDKFEO-9ACIOuIO.mjs → chunk-7TSDKFEO-B7rhvhjt.mjs} +1 -1
  52. package/dist/{chunk-A4HU7SVR-DPxgapmK.mjs → chunk-A4HU7SVR-BReRiEUm.mjs} +1 -1
  53. package/dist/{chunk-A4JSPFCI-B_-pySix.mjs → chunk-A4JSPFCI-CzC3HvcT.mjs} +2 -2
  54. package/dist/{chunk-A5O5YHGN-DApqA6Ow.mjs → chunk-A5O5YHGN-0FmmnDn4.mjs} +2 -2
  55. package/dist/{chunk-A65PWWJC-DRkFYIUZ.mjs → chunk-A65PWWJC-DDcfQP9l.mjs} +2 -2
  56. package/dist/{chunk-A7A2DBEE-DGJklf-9.mjs → chunk-A7A2DBEE-DxoLZwYW.mjs} +1 -1
  57. package/dist/{chunk-A7ICOL4V-BSbI3udS.mjs → chunk-A7ICOL4V-DLpBcLKS.mjs} +2 -2
  58. package/dist/{chunk-AA7GKIK3-DiBKA6eA.mjs → chunk-AA7GKIK3-hv3Reau6.mjs} +2 -2
  59. package/dist/{chunk-ALLTKNUZ-B1s5GUUO.mjs → chunk-ALLTKNUZ-8gj-zLqF.mjs} +2 -2
  60. package/dist/{chunk-APT7OOP2-CgGkczFr.mjs → chunk-APT7OOP2-Ba0TjHQy.mjs} +2 -2
  61. package/dist/{chunk-B74TABJS-CM6MrFZT.mjs → chunk-B74TABJS-D6QwMpPz.mjs} +1 -1
  62. package/dist/{chunk-BGSUD5R5-B-rczZvK.mjs → chunk-BGSUD5R5-BfmoQDUK.mjs} +2 -2
  63. package/dist/{chunk-BSJP7CBP-BWUAQGWN.mjs → chunk-BSJP7CBP-C-rdyWiE.mjs} +2 -2
  64. package/dist/{chunk-CIAEETIT-4Fu0r4oG.mjs → chunk-CIAEETIT-B4zNm8L4.mjs} +2 -2
  65. package/dist/{chunk-CWQS3NFK-BkE4vqrf.mjs → chunk-CWQS3NFK-BvSpDizp.mjs} +1 -1
  66. package/dist/{chunk-D4J545R4-DfBhjppa.mjs → chunk-D4J545R4-B2EJq2_m.mjs} +2 -2
  67. package/dist/{chunk-D6CWQ5DW-BEkstiuo.mjs → chunk-D6CWQ5DW-DTkNWXQB.mjs} +2 -2
  68. package/dist/{chunk-D7MEQ3VN-CAw29uK1.mjs → chunk-D7MEQ3VN-Cgm5u94B.mjs} +2 -2
  69. package/dist/{chunk-DBKNVD4L-DMfzef_7.mjs → chunk-DBKNVD4L-UVpSZ5HO.mjs} +2 -2
  70. package/dist/{chunk-DCAAORBQ-3VCdH2yi.mjs → chunk-DCAAORBQ-Dy6elY3j.mjs} +2 -2
  71. package/dist/{chunk-DXB73IDG-F_tmy-Lz.mjs → chunk-DXB73IDG-ByieFnhr.mjs} +1 -1
  72. package/dist/{chunk-EDXVE4YY-COyPi8-X.mjs → chunk-EDXVE4YY-B7-wXBzK.mjs} +2 -2
  73. package/dist/{chunk-EEXR5ZDP-VxEPFle_.mjs → chunk-EEXR5ZDP-Bot_s1lf.mjs} +1 -1
  74. package/dist/{chunk-EIZGF4BS-Dz3f1URh.mjs → chunk-EIZGF4BS-Cce76mbX.mjs} +2 -2
  75. package/dist/{chunk-ENJZ2VHE-DgpEksO3.mjs → chunk-ENJZ2VHE-DswEO8kN.mjs} +2 -2
  76. package/dist/{chunk-F23WWYKW-tJnOwArx.mjs → chunk-F23WWYKW-YV2Ziyrt.mjs} +2 -2
  77. package/dist/{chunk-FMBD7UC4-CFP8EClM.mjs → chunk-FMBD7UC4-DyW29ls9.mjs} +2 -2
  78. package/dist/{chunk-FOC6F5B3-BfuMxJA0.mjs → chunk-FOC6F5B3-Bc3GvhQ3.mjs} +2 -2
  79. package/dist/{chunk-GCTKCWKD-C5P_ff9C.mjs → chunk-GCTKCWKD-DBnk7jcA.mjs} +1 -1
  80. package/dist/{chunk-GFQRA5P5-DbAN9IDm.mjs → chunk-GFQRA5P5-DuNfOQls.mjs} +1 -1
  81. package/dist/{chunk-GOV5EKKI-CnqfYKLU.mjs → chunk-GOV5EKKI-BFLTyBpR.mjs} +2 -2
  82. package/dist/{chunk-GXVXFKBA-BZ5qwuS5.mjs → chunk-GXVXFKBA-C3l1H1PT.mjs} +2 -2
  83. package/dist/{chunk-HDQ56CKY-C2858kAN.mjs → chunk-HDQ56CKY-Cy6yVra7.mjs} +2 -2
  84. package/dist/{chunk-HJQJAYMS-BhX1qT1n.mjs → chunk-HJQJAYMS-yqfBcYOx.mjs} +1 -1
  85. package/dist/{chunk-HJWBQKYG-D9DjORFc.mjs → chunk-HJWBQKYG-C1cifXhx.mjs} +2 -2
  86. package/dist/{chunk-HKLCLINH-DiTtKPWB.mjs → chunk-HKLCLINH-Ch0mauLy.mjs} +3 -3
  87. package/dist/{chunk-HL6NGDO2-FvmjxcsK.mjs → chunk-HL6NGDO2-D41r2_6L.mjs} +2 -2
  88. package/dist/{chunk-HWKDQ44K-Cd9c0ujm.mjs → chunk-HWKDQ44K-CRAflooW.mjs} +2 -2
  89. package/dist/{chunk-I57KEIP3-BsA-zv3k.mjs → chunk-I57KEIP3-BW7G5kxf.mjs} +2 -2
  90. package/dist/{chunk-ICPOFSXX-C2hDlKD_.mjs → chunk-ICPOFSXX-BF2fcu67.mjs} +2 -2
  91. package/dist/{chunk-IPJHKYVM-CUKythEA.mjs → chunk-IPJHKYVM-DDc9WF57.mjs} +1 -1
  92. package/dist/{chunk-JVPRLUMK-D72YT6bi.mjs → chunk-JVPRLUMK-C9zEHB9M.mjs} +2 -2
  93. package/dist/{chunk-K5T4RW27-ChGdeubA.mjs → chunk-K5T4RW27-DLjwaibC.mjs} +2 -2
  94. package/dist/{chunk-K6LIBGJA-CtwqXONG.mjs → chunk-K6LIBGJA-CSZVB574.mjs} +2 -2
  95. package/dist/{chunk-KGLVRYIC-BYA7AJ2g.mjs → chunk-KGLVRYIC-BNQzuSOt.mjs} +2 -2
  96. package/dist/{chunk-KMEYNNUA-C311YB2Q.mjs → chunk-KMEYNNUA-maIN40sk.mjs} +2 -2
  97. package/dist/{chunk-KRBPSX3W-DsaeH-hY.mjs → chunk-KRBPSX3W-CzvY8ZXk.mjs} +2 -2
  98. package/dist/{chunk-KX3P26DQ-D2yWAYlk.mjs → chunk-KX3P26DQ-76goBn6H.mjs} +1 -1
  99. package/dist/{chunk-LIHQZDEY-Du6TmMJL.mjs → chunk-LIHQZDEY-C1QAwaiM.mjs} +2 -2
  100. package/dist/{chunk-LL3S3NLB-xjImIR4A.mjs → chunk-LL3S3NLB-DbugMv6o.mjs} +2 -2
  101. package/dist/{chunk-LTZRCH7N-DQ58So-F.mjs → chunk-LTZRCH7N-BKI5S2SB.mjs} +2 -2
  102. package/dist/{chunk-LWEGUNWT-B1OcC6RH.mjs → chunk-LWEGUNWT-GnqRCIV_.mjs} +2 -2
  103. package/dist/{chunk-MDDMCKUK-CP6l42wf.mjs → chunk-MDDMCKUK-b-Mvbq7g.mjs} +2 -2
  104. package/dist/{chunk-MDLLFABN-DDKgmYs5.mjs → chunk-MDLLFABN-CySM5qrq.mjs} +2 -2
  105. package/dist/{chunk-MHTUABJP-D8l1TTsc.mjs → chunk-MHTUABJP-t1OLW57X.mjs} +1 -1
  106. package/dist/{chunk-MIZPJHVH-BLEhGmNy.mjs → chunk-MIZPJHVH-D-ZDkLZF.mjs} +2 -2
  107. package/dist/{chunk-MLXIYONF-MXi1NN3K.mjs → chunk-MLXIYONF-2Q4Ybi7x.mjs} +2 -2
  108. package/dist/{chunk-MYE6AGBJ-BkwmDIR4.mjs → chunk-MYE6AGBJ-BejewWl1.mjs} +2 -2
  109. package/dist/{chunk-NAERJDUW-Bv2VeaZc.mjs → chunk-NAERJDUW-BeJI_Ack.mjs} +2 -2
  110. package/dist/{chunk-NCNPKYJZ-14dRI8Qm.mjs → chunk-NCNPKYJZ-BjePegaZ.mjs} +2 -2
  111. package/dist/{chunk-NUYSJFDK-BiYXRcxZ.mjs → chunk-NUYSJFDK-DDVtplw1.mjs} +2 -2
  112. package/dist/{chunk-OCLXQMOG-B_jLzNZV.mjs → chunk-OCLXQMOG-DZx1830_.mjs} +2 -2
  113. package/dist/{chunk-OCS6LSEM-D4VLThbM.mjs → chunk-OCS6LSEM-DGnWZEcL.mjs} +2 -2
  114. package/dist/{chunk-OJDRYQWQ-CmrD0Dg2.mjs → chunk-OJDRYQWQ-69O4zmKR.mjs} +1 -1
  115. package/dist/{chunk-ORNJ4GCN-CO4Fc0LT.mjs → chunk-ORNJ4GCN-R61lu8Cm.mjs} +2 -2
  116. package/dist/{chunk-OYMX7WX6-CjnWmW_n.mjs → chunk-OYMX7WX6-BShEu1pf.mjs} +2 -2
  117. package/dist/{chunk-PBXLG62G-aMLWXguv.mjs → chunk-PBXLG62G-DdXtiydY.mjs} +2 -2
  118. package/dist/{chunk-PP6PSHAB-B3XXGg2T.mjs → chunk-PP6PSHAB-B7OGLVba.mjs} +1 -1
  119. package/dist/{chunk-PXTK5WE2-CguJFePc.mjs → chunk-PXTK5WE2-BeCOtT1d.mjs} +2 -2
  120. package/dist/{chunk-PYSFUGCK-BszfAqRG.mjs → chunk-PYSFUGCK-CoGoOEDp.mjs} +2 -2
  121. package/dist/{chunk-QCDB2VPH-D3ULCm4b.mjs → chunk-QCDB2VPH-z4xw9VKe.mjs} +2 -2
  122. package/dist/{chunk-QJ7O6ZN3-Dzcm83Kv.mjs → chunk-QJ7O6ZN3-Dsx1L-CX.mjs} +2 -2
  123. package/dist/{chunk-QZHKN3VN-CczpYV_w.mjs → chunk-QZHKN3VN-4LgLml-S.mjs} +2 -2
  124. package/dist/{chunk-R6QSAL5T-nrEeDNrG.mjs → chunk-R6QSAL5T-CXXlslcl.mjs} +1 -1
  125. package/dist/{chunk-R6VWJ2ZL-BVeTwIsz.mjs → chunk-R6VWJ2ZL-FXX1AKea.mjs} +1 -1
  126. package/dist/{chunk-RPNGRAAP-CajOz2i0.mjs → chunk-RPNGRAAP-D-txoG-N.mjs} +2 -2
  127. package/dist/{chunk-SDNKECQQ-CA2LWAo7.mjs → chunk-SDNKECQQ-sntIQEvc.mjs} +2 -2
  128. package/dist/{chunk-SNN4IESC-D8LPcAwE.mjs → chunk-SNN4IESC-2iQ8MDN3.mjs} +2 -2
  129. package/dist/{chunk-T56QNPHK-CKzBdBMk.mjs → chunk-T56QNPHK-0UWUTTk9.mjs} +2 -2
  130. package/dist/{chunk-TLSUDHID-rdis5pZn.mjs → chunk-TLSUDHID-CbxrNaLS.mjs} +2 -2
  131. package/dist/{chunk-TOMNU26N-BxDnjGjc.mjs → chunk-TOMNU26N-aWRPfXR1.mjs} +2 -2
  132. package/dist/{chunk-TP4BZANS-ClzIzpWm.mjs → chunk-TP4BZANS-DFORxqE5.mjs} +2 -2
  133. package/dist/{chunk-TXBZCHCQ-DnSXwySk.mjs → chunk-TXBZCHCQ-COSdckz7.mjs} +2 -2
  134. package/dist/{chunk-U2HBQHQK-DMRf50i8.mjs → chunk-U2HBQHQK-B6QvDsYx.mjs} +2 -2
  135. package/dist/{chunk-V5MWI2OL-Cjq6zFOH.mjs → chunk-V5MWI2OL-CDs_rm9r.mjs} +2 -2
  136. package/dist/{chunk-V7TAPXDL-BaVJN6c-.mjs → chunk-V7TAPXDL-DbTOoM_I.mjs} +2 -2
  137. package/dist/{chunk-VJFXDYWH-BJjeOIUB.mjs → chunk-VJFXDYWH-oT0f9NSa.mjs} +2 -2
  138. package/dist/{chunk-VOBGTVA6-CLvo1DrK.mjs → chunk-VOBGTVA6-D6oyYm45.mjs} +2 -2
  139. package/dist/{chunk-VYOJP4TV-ySo4pvxO.mjs → chunk-VYOJP4TV-Dh2zBxKQ.mjs} +2 -2
  140. package/dist/{chunk-WKFATFPP-jr5eyHAR.mjs → chunk-WKFATFPP-CoNouDAR.mjs} +2 -2
  141. package/dist/{chunk-X2AJGDEF-Bpyh-CYM.mjs → chunk-X2AJGDEF-13z4tBy7.mjs} +1 -1
  142. package/dist/{chunk-X2U36JSP-B09HbTgU.mjs → chunk-X2U36JSP-BlsQfR26.mjs} +2 -2
  143. package/dist/{chunk-XKQRETAK-CG272cRl.mjs → chunk-XKQRETAK-EkIIjUUl.mjs} +2 -2
  144. package/dist/{chunk-XKWWSDBF-EI7W96Bb.mjs → chunk-XKWWSDBF-B1eAKd2w.mjs} +2 -2
  145. package/dist/{chunk-XPW4576I-B-qTm_Z3.mjs → chunk-XPW4576I-bLLZgym8.mjs} +2 -2
  146. package/dist/{chunk-XVDPCNWR-DDtsDoBd.mjs → chunk-XVDPCNWR-BAt7NxwA.mjs} +2 -2
  147. package/dist/{chunk-YMMW5UAP-jiH3wEeU.mjs → chunk-YMMW5UAP-Bm5rv4x6.mjs} +2 -2
  148. package/dist/{chunk-YTNYSM6T-D6z7D3pz.mjs → chunk-YTNYSM6T-igBSh3M-.mjs} +2 -2
  149. package/dist/{chunk-YULBWSET-sJ_UPhUx.mjs → chunk-YULBWSET-x9ev2Mf1.mjs} +2 -2
  150. package/dist/{chunk-YZCP3GAM-C2dMi590.mjs → chunk-YZCP3GAM-dFAdRCa8.mjs} +2 -2
  151. package/dist/{chunk-Z6LRHWXI-CFEq3s_2.mjs → chunk-Z6LRHWXI-CQxrFjqd.mjs} +2 -2
  152. package/dist/{chunk-Z7JVV2SM-XK1154v3.mjs → chunk-Z7JVV2SM-C7YBwi4Z.mjs} +2 -2
  153. package/dist/{chunk-ZZ45TVLE-DmKznbd-.mjs → chunk-ZZ45TVLE-2q1aFSGq.mjs} +2 -2
  154. package/dist/{chunk-ZZO3UDB3-Jw0Ocy-R.mjs → chunk-ZZO3UDB3-rEua5jnw.mjs} +2 -2
  155. package/dist/classDiagram-6PBFFD2Q-CcylKUUy.mjs +2 -0
  156. package/dist/classDiagram-v2-HSJHXN6E-BuitxA8E.mjs +2 -0
  157. package/dist/clear-5CZ5X4YR-B1WFGbrj.mjs +1 -0
  158. package/dist/cli.mjs +58 -58
  159. package/dist/clone-FnWO_tLO.mjs +2 -0
  160. package/dist/colors-Ct4sdRvQ.mjs +1 -0
  161. package/dist/{colors-DugpbXz6.mjs → colors-DWZN3WbY.mjs} +1 -1
  162. package/dist/column-WLPMMSTS-DkwMR9G7.mjs +1 -0
  163. package/dist/comm-5SLSESQG-CXlq0ETw.mjs +1 -0
  164. package/dist/constants-DYHcCRbP.mjs +2 -0
  165. package/dist/{cose-bilkent-S5V4N54A-BNALZCF0.mjs → cose-bilkent-S5V4N54A-x0sjol1e.mjs} +2 -2
  166. package/dist/cp-XOYR4ABJ-DSmenFoy.mjs +1 -0
  167. package/dist/{curl-47BFPSFW-DU0Jc2rS.mjs → curl-47BFPSFW-CLzIjKiW.mjs} +2 -2
  168. package/dist/cut-OPC3VAGB-Bem4Z9r_.mjs +1 -0
  169. package/dist/{cytoscape.esm-5XrS6n0F.mjs → cytoscape.esm-D1nqsWCf.mjs} +1 -1
  170. package/dist/{dagre-C04vaGU3.mjs → dagre-BTsqj5N3.mjs} +2 -2
  171. package/dist/{dagre-KV5264BT-Cbu_HfO4.mjs → dagre-KV5264BT-qU8auIl8.mjs} +2 -2
  172. package/dist/date-DD7FVA2V-BIqG8vnM.mjs +1 -0
  173. package/dist/{defaultLocale-0qNBj5q-.mjs → defaultLocale-DMqLGTir.mjs} +1 -1
  174. package/dist/{diagram-5BDNPKRD--yFFNenY.mjs → diagram-5BDNPKRD-BfaCThqw.mjs} +2 -2
  175. package/dist/{diagram-G4DWMVQ6-DEe2UaOJ.mjs → diagram-G4DWMVQ6-GD__kOTo.mjs} +2 -2
  176. package/dist/{diagram-MMDJMWI5-BEgEPDUN.mjs → diagram-MMDJMWI5-eK_WgeFb.mjs} +2 -2
  177. package/dist/{diagram-TYMM5635-WdKiO0-q.mjs → diagram-TYMM5635-Cw9FE8Ou.mjs} +2 -2
  178. package/dist/diff-HJF2MPDN-QbElik15.mjs +1 -0
  179. package/dist/dirname-LEMTZZFS-DjJGD8wW.mjs +1 -0
  180. package/dist/{dist-Co98vmuK.mjs → dist-B9rR197c.mjs} +1 -1
  181. package/dist/dist-DNDjbkqL.mjs +1 -0
  182. package/dist/{dist-bundle-tsI-uq-K.mjs → dist-bundle-CfcllBeA.mjs} +1 -1
  183. package/dist/dist-bundle-Dnt-gLG8.mjs +1 -0
  184. package/dist/{server-lock-iLcBw_q0-DK2Tcu84.mjs → dist-gqZDYmIG.mjs} +135 -135
  185. package/dist/{dist-DFesG7DS.mjs → dist-petOQDm6.mjs} +14 -14
  186. package/dist/du-WO2ENHXQ-gLn1L6An.mjs +1 -0
  187. package/dist/echo-O45JWWI2-CHeEVRD-.mjs +1 -0
  188. package/dist/env-5EPCWSXR-nB7iGA4U.mjs +1 -0
  189. package/dist/{erDiagram-SMLLAGMA-BD_bZ9y8.mjs → erDiagram-SMLLAGMA-BQ28NjyR.mjs} +2 -2
  190. package/dist/{esm-BNIW0EH8.mjs → esm-PWRRAk-U.mjs} +1 -1
  191. package/dist/{execAsync-BAuTynbH.mjs → execAsync-Clg2-3AB.mjs} +1 -1
  192. package/dist/{execAsync-CBkkI2Ek.mjs → execAsync-DCzaEYgw.mjs} +1 -1
  193. package/dist/{execAsync-DVDfm08O.mjs → execAsync-Dyv9tAFE.mjs} +1 -1
  194. package/dist/expand-DTNXU4LQ--1KdtI8I.mjs +1 -0
  195. package/dist/expansion-VBDYWVZR-Br5lbiFS.mjs +1 -0
  196. package/dist/expr-YYCVMXE3-D_Mgl3lg.mjs +1 -0
  197. package/dist/file-IGDTDPLG-DJz2lDmW.mjs +1 -0
  198. package/dist/find-DH2ALKQS-BCfNRHeq.mjs +1 -0
  199. package/dist/flag-coverage-6JEX67RU-dAJxSkKl.mjs +2 -0
  200. package/dist/{flatten-DsfHsK9p.mjs → flatten-CMuDMFOE.mjs} +2 -2
  201. package/dist/{flowDiagram-DWJPFMVM-DZgEsdRZ.mjs → flowDiagram-DWJPFMVM-BRXMLmIm.mjs} +2 -2
  202. package/dist/fold-LDSORVYE-X07YByBI.mjs +1 -0
  203. package/dist/{ganttDiagram-T4ZO3ILL-Csm0cHYU.mjs → ganttDiagram-T4ZO3ILL-BkishNK-.mjs} +2 -2
  204. package/dist/{getMachineId-bsd-Bd_aCdAJ.mjs → getMachineId-bsd-BfKl40ww.mjs} +2 -2
  205. package/dist/{getMachineId-bsd-CmfyCGp_.mjs → getMachineId-bsd-CfcvKJtS.mjs} +2 -2
  206. package/dist/{getMachineId-bsd-D_lpr65O.mjs → getMachineId-bsd-DHr_3v7C.mjs} +2 -2
  207. package/dist/{getMachineId-darwin-CFeqXDM9.mjs → getMachineId-darwin-BGSat_hq.mjs} +2 -2
  208. package/dist/{getMachineId-darwin-Ch6Y3434.mjs → getMachineId-darwin-ClWJDgsl.mjs} +2 -2
  209. package/dist/{getMachineId-darwin-DRbP6ZXo.mjs → getMachineId-darwin-kUGmbM-E.mjs} +2 -2
  210. package/dist/{getMachineId-linux-CsnocidZ.mjs → getMachineId-linux-Cb6TG9LG.mjs} +1 -1
  211. package/dist/{getMachineId-linux-n9GZPwcR.mjs → getMachineId-linux-D_xXWtEw.mjs} +1 -1
  212. package/dist/{getMachineId-linux-CbD1lCp_.mjs → getMachineId-linux-vXwObLy3.mjs} +1 -1
  213. package/dist/{getMachineId-unsupported-Bsi0aVMm.mjs → getMachineId-unsupported-B4ElBmKF.mjs} +1 -1
  214. package/dist/{getMachineId-unsupported-D6zswC3_.mjs → getMachineId-unsupported-BALaAmcO.mjs} +1 -1
  215. package/dist/{getMachineId-unsupported-BQuHcTqF.mjs → getMachineId-unsupported-CechcDdc.mjs} +1 -1
  216. package/dist/{getMachineId-win-BsR1lQcH.mjs → getMachineId-win-CwyWxlQ-.mjs} +2 -2
  217. package/dist/{getMachineId-win-Bvo8aUso.mjs → getMachineId-win-D-OyleV_.mjs} +2 -2
  218. package/dist/{getMachineId-win-BpALY-6t.mjs → getMachineId-win-Div5qJyL.mjs} +2 -2
  219. package/dist/gh-detect-DT6DqKGM.mjs +3 -0
  220. package/dist/git-handle-CetHWc5A-BcCPg15N.mjs +1 -0
  221. package/dist/git-handle-dKyep_oZ-B7s7m6CJ.mjs +10 -0
  222. package/dist/gitGraph-7Q5UKJZL-Cb6AI0gQ.mjs +1 -0
  223. package/dist/{gitGraphDiagram-UUTBAWPF-dC1IPshv.mjs → gitGraphDiagram-UUTBAWPF-LYEX-Up5.mjs} +2 -2
  224. package/dist/{graphlib-ZUByR7Z1.mjs → graphlib-C8GlDNIO.mjs} +2 -2
  225. package/dist/grep-2HUTXO5U-DF5bN210.mjs +1 -0
  226. package/dist/gzip-AQXSGOVS-Ld4whXAz.mjs +1 -0
  227. package/dist/head-HT2B6D2J-Y8QWoury.mjs +1 -0
  228. package/dist/help-VVWX7SA5-DNTZaSb5.mjs +1 -0
  229. package/dist/history-J4QRNGRO-D8QHmWq3.mjs +1 -0
  230. package/dist/hostname-BK6HG2DE-C229q8IA.mjs +1 -0
  231. package/dist/html-to-markdown-TFCECAGV-EEqkh5Fp.mjs +1 -0
  232. package/dist/index.mjs +1 -1
  233. package/dist/info-OMHHGYJF-DY6XVLHA.mjs +1 -0
  234. package/dist/{infoDiagram-42DDH7IO-HjNjWo06.mjs → infoDiagram-42DDH7IO-BVXbYOHQ.mjs} +2 -2
  235. package/dist/{init-B4vJEG6p.mjs → init-Cd8PBJVt.mjs} +5 -5
  236. package/dist/{init-BQKkPl4l.mjs → init-D9nHWIP2.mjs} +1 -1
  237. package/dist/init-EQZFWmhG.mjs +1 -0
  238. package/dist/{is-object-DAC-mmwo.mjs → is-object-DhiFit5j.mjs} +1 -1
  239. package/dist/{isEmpty-jdQphHPa.mjs → isEmpty-B_hy4b7A.mjs} +2 -2
  240. package/dist/{ishikawaDiagram-UXIWVN3A-BlrokJRv.mjs → ishikawaDiagram-UXIWVN3A-Diodefny.mjs} +2 -2
  241. package/dist/join-GG2LDHE5-DJ1L_Ka6.mjs +1 -0
  242. package/dist/{journeyDiagram-VCZTEJTY-Bt5CmS_f.mjs → journeyDiagram-VCZTEJTY-CMQp-Rx9.mjs} +2 -2
  243. package/dist/jq-LYZFFBZB-BItVI6BJ.mjs +1 -0
  244. package/dist/{js-exec-VXN6TZ7U-B_mKz_np.mjs → js-exec-VXN6TZ7U-Bnv5xh7r.mjs} +2 -2
  245. package/dist/{kanban-definition-6JOO6SKY-BH015AU8.mjs → kanban-definition-6JOO6SKY-DhbBoKko.mjs} +2 -2
  246. package/dist/{launch-json-removal-oDM6gkL1.mjs → launch-json-removal-IVHDIhZ7.mjs} +2 -2
  247. package/dist/{lib-BWyT_i83.mjs → lib-BFgxfC0m.mjs} +2 -2
  248. package/dist/{lib-BKCY8vrL.mjs → lib-DOas6HiH.mjs} +1 -1
  249. package/dist/{libesm-Ob3yvbRV.mjs → libesm-bRpdkHYn.mjs} +1 -1
  250. package/dist/{line-DiVg83mo.mjs → line-CNrllbcq.mjs} +2 -2
  251. package/dist/{linear-C06cViLu.mjs → linear-CUrVtEYu.mjs} +2 -2
  252. package/dist/ln-4TRFBYAT-1vbMtGss.mjs +1 -0
  253. package/dist/loader-BEGv7CMu.mjs +1 -0
  254. package/dist/loader-BQIdrq0w.mjs +4 -0
  255. package/dist/ls-KSXFZCWH-D7XChuCb.mjs +1 -0
  256. package/dist/{lzma-NI_6IIcm.mjs → lzma-kz900pzb.mjs} +1 -1
  257. package/dist/{mcp-migrate-event-BNoOQpLB.mjs → mcp-migrate-event-H4uBxZps.mjs} +1 -1
  258. package/dist/md5sum-INMIK4DX-DebFzK7Y.mjs +1 -0
  259. package/dist/{mermaid-parser.core-DqKkkvo5.mjs → mermaid-parser.core-C4HPipkF.mjs} +2 -2
  260. package/dist/{mermaid.core-BzIdCd91.mjs → mermaid.core-BjaX3aDk.mjs} +3 -3
  261. package/dist/{mindmap-definition-QFDTVHPH-BOkRtwWA.mjs → mindmap-definition-QFDTVHPH-aTvmjjWw.mjs} +2 -2
  262. package/dist/mkdir-TDEMSB6C-yKujfJwH.mjs +1 -0
  263. package/dist/mv-Z6MORUFL-DefDwgs3.mjs +1 -0
  264. package/dist/nl-U5YJDM32-C4WnOB_Q.mjs +1 -0
  265. package/dist/od-VJEF2UR5-w1NlCkUs.mjs +1 -0
  266. package/dist/{open-browser-3gSG96ZS.mjs → open-browser-BMVg3r9e.mjs} +2 -2
  267. package/dist/{ordinal-BuFKVuSx.mjs → ordinal-CwNJ0kWp.mjs} +2 -2
  268. package/dist/packet-4T2RLAQJ-Bf6ng-Cf.mjs +1 -0
  269. package/dist/paste-7N6AFSDS-C1xZzPgC.mjs +1 -0
  270. package/dist/{path-Dmj-XcQ6.mjs → path-v4_sOSY9.mjs} +1 -1
  271. package/dist/pie-ZZUOXDRM-B2TN5yZH.mjs +1 -0
  272. package/dist/{pieDiagram-DEJITSTG-Bho_Qp6H.mjs → pieDiagram-DEJITSTG-Bwxzwykf.mjs} +2 -2
  273. package/dist/{preview-C-zPM3qo.mjs → preview-BMzX6OEA.mjs} +2 -2
  274. package/dist/preview-DPIJSR9a.mjs +1 -0
  275. package/dist/printf-CX64KX2P-mlOOn_9v.mjs +1 -0
  276. package/dist/public/assets/ShareBranchSwitchDialog-DGcSbhKt.js +1 -0
  277. package/dist/public/assets/{index-CzUR_TnM.js → index-CxZGz7om.js} +3 -3
  278. package/dist/public/index.html +1 -1
  279. package/dist/pwd-D4OZ7N27-CT87C-5L.mjs +1 -0
  280. package/dist/{python3-DNGS4G3E-mSuL-4Sg.mjs → python3-DNGS4G3E-CvPRspn0.mjs} +2 -2
  281. package/dist/{quadrantDiagram-34T5L4WZ-Bd7jb1rn.mjs → quadrantDiagram-34T5L4WZ-DNT3MD_9.mjs} +2 -2
  282. package/dist/radar-PYXPWWZC-COiIo4-V.mjs +1 -0
  283. package/dist/readlink-MI4GCHJF-yD7ZCo6I.mjs +1 -0
  284. package/dist/{reduce-CKdE5ppn.mjs → reduce-KkqmWdsg.mjs} +2 -2
  285. package/dist/{repair-launch-json-CrBdZKKa.mjs → repair-launch-json-7_q6bQTJ.mjs} +2 -2
  286. package/dist/{repair-mcp-configs-DCX1eS6S.mjs → repair-mcp-configs-DBYbPrkl.mjs} +2 -2
  287. package/dist/repair-skills-BSRgI3Qd.mjs +3 -0
  288. package/dist/repair-skills-DMIeifIr.mjs +1 -0
  289. package/dist/{requirementDiagram-MS252O5E-B74qjBRN.mjs → requirementDiagram-MS252O5E-25Z7WGN_.mjs} +2 -2
  290. package/dist/rev-XOSYPP45-DXeN2c_L.mjs +1 -0
  291. package/dist/rg-XNF3R3II-CSW8tOjh.mjs +1 -0
  292. package/dist/rm-RTZG23RL-CdPHUz_A.mjs +1 -0
  293. package/dist/rmdir-XTQXT7RK-B-Hcy2_M.mjs +1 -0
  294. package/dist/{rough.cjs-D5rEDIRO.mjs → rough.cjs-CjMW0p0V.mjs} +1 -1
  295. package/dist/{sankeyDiagram-XADWPNL6-CsDd_Lum.mjs → sankeyDiagram-XADWPNL6-CaXOTYx7.mjs} +2 -2
  296. package/dist/sed-JAPPVBEU-CcOukRYN.mjs +1 -0
  297. package/dist/seq-RN5ZUASB-s6ShRZlK.mjs +1 -0
  298. package/dist/{sequenceDiagram-FGHM5R23-C88m3ajK.mjs → sequenceDiagram-FGHM5R23-BgVYdPUE.mjs} +2 -2
  299. package/dist/server-lock-GuuouVft-mEG_NG6z.mjs +1 -0
  300. package/dist/server-lock-iLcBw_q0-CSsXlPB8.mjs +2 -0
  301. package/dist/sha1sum-VJPNLNU6-DypLzN_7.mjs +1 -0
  302. package/dist/sha256sum-PI32XWXY-DGVRMju7.mjs +1 -0
  303. package/dist/sleep-VZFPZFWA-B9Y3_tNd.mjs +1 -0
  304. package/dist/sort-DCNRDA7U-hsloabcm.mjs +1 -0
  305. package/dist/split-SITCSYCZ-BDulNHyK.mjs +1 -0
  306. package/dist/sqlite3-TE5AIOTF-DjHl_aWc.mjs +1 -0
  307. package/dist/{src-DC_BCes_.mjs → src-BGL-MlNN.mjs} +1 -1
  308. package/dist/{src-BYGc6Nen.mjs → src-DXDSmJ9V.mjs} +6 -6
  309. package/dist/start-BE4eU7Mm.mjs +3 -0
  310. package/dist/start-DrtigDx4.mjs +1 -0
  311. package/dist/stat-BT5A227F-Bo3rQCLg.mjs +1 -0
  312. package/dist/{stateDiagram-FHFEXIEX-va6AVA_z.mjs → stateDiagram-FHFEXIEX-DQ2iT5iQ.mjs} +2 -2
  313. package/dist/stateDiagram-v2-QKLJ7IA2-BN2cDF-I.mjs +2 -0
  314. package/dist/strings-7PLOGTPD-DzlKcmS-.mjs +1 -0
  315. package/dist/tac-SJGXQ4T2-ByklUqCu.mjs +1 -0
  316. package/dist/tail-S5ULNTJU-4htchzH3.mjs +1 -0
  317. package/dist/tar-MZQD7NO4-BbDCO35a.mjs +1 -0
  318. package/dist/tee-O7VXZDCO-C4h94T7n.mjs +1 -0
  319. package/dist/time-DEUO3QV2-DgbA26hb.mjs +1 -0
  320. package/dist/{timeline-definition-GMOUNBTQ-TPAmdwnH.mjs → timeline-definition-GMOUNBTQ-CN-kJjLP.mjs} +2 -2
  321. package/dist/timeout-VRKMCG72-QNsmkGY4.mjs +1 -0
  322. package/dist/touch-DX2IJOQ4-DCSWORMR.mjs +1 -0
  323. package/dist/tr-2HXZRDSW-ClAtG6KK.mjs +1 -0
  324. package/dist/tree-LYXBS7DC-DY3rkdQ5.mjs +1 -0
  325. package/dist/treeView-SZITEDCU-IxD8BwiZ.mjs +1 -0
  326. package/dist/treemap-W4RFUUIX-Bi83ji26.mjs +1 -0
  327. package/dist/true-WHJNXCHG-D1oYWVZ5.mjs +1 -0
  328. package/dist/unexpand-RGTMIGZM-MOepJcp7.mjs +1 -0
  329. package/dist/uniq-SUNANL47-BTfKD4-0.mjs +1 -0
  330. package/dist/{vennDiagram-DHZGUBPP-CVntpCfR.mjs → vennDiagram-DHZGUBPP-BJ8_Sz54.mjs} +2 -2
  331. package/dist/wardley-RL74JXVD-DxHrvQhH.mjs +1 -0
  332. package/dist/{wardleyDiagram-NUSXRM2D-DlYkmDFQ.mjs → wardleyDiagram-NUSXRM2D-j56ncYAi.mjs} +2 -2
  333. package/dist/wc-TQB3VNOX-CMqYcRvH.mjs +1 -0
  334. package/dist/which-XZHEH76L-CAv7Efsx.mjs +1 -0
  335. package/dist/whoami-DGKU3D2X-CpvaE3LM.mjs +1 -0
  336. package/dist/{wrapper-BZO_sIci.mjs → wrapper-C8gJQl5z.mjs} +1 -1
  337. package/dist/{write-project-skill-NLecUmFg.mjs → write-project-skill-CQSo7jpP.mjs} +3 -3
  338. package/dist/xan-UD7JYIL2-DLOcZDYa.mjs +1 -0
  339. package/dist/xan-view-OW2TB7Z3-dHhPo_bJ.mjs +1 -0
  340. package/dist/xargs-I6EZUCYF-HR9_4d9i.mjs +1 -0
  341. package/dist/{xychartDiagram-5P7HB3ND-CFd6z4Gb.mjs → xychartDiagram-5P7HB3ND-CcUb_B_R.mjs} +2 -2
  342. package/dist/yazl-B1RwDQQs.mjs +1 -0
  343. package/dist/{yazl-Docqgl6q.mjs → yazl-DFMxUgKn.mjs} +1 -1
  344. package/dist/yq-OAKYHSXH-CJLBfTXv.mjs +1 -0
  345. package/package.json +1 -1
  346. package/dist/alias-JE7RI5QX-BODj4Gfj.mjs +0 -1
  347. package/dist/architecture-YZFGNWBL-BJvTzYI9.mjs +0 -1
  348. package/dist/awk2-BBAGSFUB-lHnSCbc-.mjs +0 -1
  349. package/dist/base64-4YMZCVJ5-BTMj5dqF.mjs +0 -1
  350. package/dist/basename-AA2KJYZQ-B1wvwZXV.mjs +0 -1
  351. package/dist/bash-IJWYRKFO-CCnjwjWe.mjs +0 -1
  352. package/dist/build-Ca40rJCO.mjs +0 -1
  353. package/dist/cat-RDUMLXKC-JY2w4DEE.mjs +0 -1
  354. package/dist/channel-BQl_ktPZ.mjs +0 -2
  355. package/dist/chmod-SYMGL4JA-3Hk_1ELN.mjs +0 -1
  356. package/dist/chunk-426QAEUC-B_MzMc_U.mjs +0 -2
  357. package/dist/classDiagram-6PBFFD2Q-L301VcDG.mjs +0 -2
  358. package/dist/classDiagram-v2-HSJHXN6E-CeSqnnqg.mjs +0 -2
  359. package/dist/clear-5CZ5X4YR-BDbutb2U.mjs +0 -1
  360. package/dist/clone-DETmm2Pe.mjs +0 -2
  361. package/dist/colors-C2Tw16G0.mjs +0 -1
  362. package/dist/column-WLPMMSTS-CV6fCKBB.mjs +0 -1
  363. package/dist/comm-5SLSESQG-c_QNAuoh.mjs +0 -1
  364. package/dist/constants-DxrhiJEv.mjs +0 -2
  365. package/dist/cp-XOYR4ABJ-Dy7On9-M.mjs +0 -1
  366. package/dist/cut-OPC3VAGB-BuR9R75Y.mjs +0 -1
  367. package/dist/date-DD7FVA2V-ClXjwml9.mjs +0 -1
  368. package/dist/diff-HJF2MPDN-C0H4yjXW.mjs +0 -1
  369. package/dist/dirname-LEMTZZFS-4AT-pFX0.mjs +0 -1
  370. package/dist/dist-LzL927dF.mjs +0 -1
  371. package/dist/dist-bundle-BA0EtAC7.mjs +0 -1
  372. package/dist/du-WO2ENHXQ-Do-4VQ3V.mjs +0 -1
  373. package/dist/echo-O45JWWI2-DdI80aCx.mjs +0 -1
  374. package/dist/env-5EPCWSXR-CDfcyvrs.mjs +0 -1
  375. package/dist/expand-DTNXU4LQ-D-zXh5CC.mjs +0 -1
  376. package/dist/expansion-VBDYWVZR-DTjZRtii.mjs +0 -1
  377. package/dist/expr-YYCVMXE3-C9dGgUU3.mjs +0 -1
  378. package/dist/file-IGDTDPLG-BEwb4MXq.mjs +0 -1
  379. package/dist/find-DH2ALKQS-Dni7700t.mjs +0 -1
  380. package/dist/flag-coverage-6JEX67RU-CMw4W0rs.mjs +0 -2
  381. package/dist/fold-LDSORVYE-g18Hkyqy.mjs +0 -1
  382. package/dist/gh-detect-DDO0PYTq.mjs +0 -3
  383. package/dist/git-handle-BMLM1Bxa-Bic5A31t.mjs +0 -1
  384. package/dist/git-handle-XXj9bu6B-DY30-mw9.mjs +0 -10
  385. package/dist/gitGraph-7Q5UKJZL-D8oR6R4c.mjs +0 -1
  386. package/dist/grep-2HUTXO5U-Dq78Al2p.mjs +0 -1
  387. package/dist/gzip-AQXSGOVS-C9_JolVc.mjs +0 -1
  388. package/dist/head-HT2B6D2J-CdrKE_Tc.mjs +0 -1
  389. package/dist/help-VVWX7SA5-DdmujeOs.mjs +0 -1
  390. package/dist/history-J4QRNGRO-Bm3N_FkO.mjs +0 -1
  391. package/dist/hostname-BK6HG2DE-DdT-PlzJ.mjs +0 -1
  392. package/dist/html-to-markdown-TFCECAGV-D2mzPMGY.mjs +0 -1
  393. package/dist/info-OMHHGYJF-pWbeXW42.mjs +0 -1
  394. package/dist/init-BnjjO_nA.mjs +0 -1
  395. package/dist/join-GG2LDHE5-DV7ilddy.mjs +0 -1
  396. package/dist/jq-LYZFFBZB-DhEnecL2.mjs +0 -1
  397. package/dist/ln-4TRFBYAT-Cg_-SGIL.mjs +0 -1
  398. package/dist/loader-D8gAl6hU.mjs +0 -1
  399. package/dist/loader-DKb55SxB.mjs +0 -4
  400. package/dist/ls-KSXFZCWH-RlHCZlxm.mjs +0 -1
  401. package/dist/md5sum-INMIK4DX-BXlXL3Ru.mjs +0 -1
  402. package/dist/mkdir-TDEMSB6C-Cu2DJyfB.mjs +0 -1
  403. package/dist/mv-Z6MORUFL-BsEWL09Z.mjs +0 -1
  404. package/dist/nl-U5YJDM32-BybO7Epu.mjs +0 -1
  405. package/dist/od-VJEF2UR5-OIZrgjg0.mjs +0 -1
  406. package/dist/packet-4T2RLAQJ-BizdrxBC.mjs +0 -1
  407. package/dist/paste-7N6AFSDS-Ch72F0D2.mjs +0 -1
  408. package/dist/pie-ZZUOXDRM-BSULk3pW.mjs +0 -1
  409. package/dist/preview-B2bOO2_6.mjs +0 -1
  410. package/dist/printf-CX64KX2P-DS9NCBYX.mjs +0 -1
  411. package/dist/public/assets/ShareBranchSwitchDialog-uskl1Wv4.js +0 -1
  412. package/dist/pwd-D4OZ7N27-PztYFitl.mjs +0 -1
  413. package/dist/radar-PYXPWWZC-BPIU1oIT.mjs +0 -1
  414. package/dist/readlink-MI4GCHJF-B72qVA05.mjs +0 -1
  415. package/dist/repair-skills-DADzcSUt.mjs +0 -1
  416. package/dist/repair-skills-wxyzsDDA.mjs +0 -3
  417. package/dist/rev-XOSYPP45-ByX-mrLe.mjs +0 -1
  418. package/dist/rg-XNF3R3II-CnMv6YV-.mjs +0 -1
  419. package/dist/rm-RTZG23RL-CEw97Zb0.mjs +0 -1
  420. package/dist/rmdir-XTQXT7RK-BFdmBJEt.mjs +0 -1
  421. package/dist/sed-JAPPVBEU-2bqT53N-.mjs +0 -1
  422. package/dist/seq-RN5ZUASB-DxG4OIr9.mjs +0 -1
  423. package/dist/server-lock-GuuouVft-JSvkXrbf.mjs +0 -1
  424. package/dist/sha1sum-VJPNLNU6-4-wvJ2xb.mjs +0 -1
  425. package/dist/sha256sum-PI32XWXY-BaaxN7Tl.mjs +0 -1
  426. package/dist/sleep-VZFPZFWA-BllHeqyP.mjs +0 -1
  427. package/dist/sort-DCNRDA7U-CuZyvLiY.mjs +0 -1
  428. package/dist/split-SITCSYCZ-_ZnwVuas.mjs +0 -1
  429. package/dist/sqlite3-TE5AIOTF-CNPF-saV.mjs +0 -1
  430. package/dist/start-BjKuLBjR.mjs +0 -3
  431. package/dist/start-CvWSkAFO.mjs +0 -1
  432. package/dist/stat-BT5A227F-D9HiKzDi.mjs +0 -1
  433. package/dist/stateDiagram-v2-QKLJ7IA2-Cu9wyPTl.mjs +0 -2
  434. package/dist/strings-7PLOGTPD-kZJh53lS.mjs +0 -1
  435. package/dist/tac-SJGXQ4T2-Eo9pASuo.mjs +0 -1
  436. package/dist/tail-S5ULNTJU-PpwHAjse.mjs +0 -1
  437. package/dist/tar-MZQD7NO4-9e7UblLx.mjs +0 -1
  438. package/dist/tee-O7VXZDCO-CBU43Hsm.mjs +0 -1
  439. package/dist/time-DEUO3QV2-BpiPEFvF.mjs +0 -1
  440. package/dist/timeout-VRKMCG72-COJoI5YN.mjs +0 -1
  441. package/dist/touch-DX2IJOQ4-C4-z30TF.mjs +0 -1
  442. package/dist/tr-2HXZRDSW-C9BbHiUE.mjs +0 -1
  443. package/dist/tree-LYXBS7DC-BSj-bS3l.mjs +0 -1
  444. package/dist/treeView-SZITEDCU-CxDAshOW.mjs +0 -1
  445. package/dist/treemap-W4RFUUIX-Akln3RQv.mjs +0 -1
  446. package/dist/true-WHJNXCHG-BkJIzmUI.mjs +0 -1
  447. package/dist/unexpand-RGTMIGZM-C-to2fwU.mjs +0 -1
  448. package/dist/uniq-SUNANL47-o1tLcwbX.mjs +0 -1
  449. package/dist/wardley-RL74JXVD-Djy_JGGm.mjs +0 -1
  450. package/dist/wc-TQB3VNOX-B-lPuWMt.mjs +0 -1
  451. package/dist/which-XZHEH76L-a4M_VoGw.mjs +0 -1
  452. package/dist/whoami-DGKU3D2X-DJ9OZDEX.mjs +0 -1
  453. package/dist/xan-UD7JYIL2-DqVUhpbk.mjs +0 -1
  454. package/dist/xan-view-OW2TB7Z3-BmNMcZHM.mjs +0 -1
  455. package/dist/xargs-I6EZUCYF-DphRNePs.mjs +0 -1
  456. package/dist/yazl-CQSNnbvt.mjs +0 -1
  457. package/dist/yq-OAKYHSXH-BBrPVcxh.mjs +0 -1
@@ -1,4 +1,4 @@
1
- import{s as e}from"./chunk-C94x7I9S.mjs";import{T as t,p as n,w as r}from"./src-DC_BCes_.mjs";import{b as i,w as a,y as o}from"./chunk-ICPOFSXX-C2hDlKD_.mjs";import{B as s,F as c,G as l,H as u,I as d,L as f,P as p,R as m,U as h,V as g,W as _,h as v,l as y,z as b}from"./chunk-5PVQY5BW-_JlgOiAb.mjs";import{t as x}from"./line-DiVg83mo.mjs";import{n as S}from"./chunk-U2HBQHQK-DMRf50i8.mjs";import{i as C,n as w,r as T,t as E}from"./chunk-BSJP7CBP-BWUAQGWN.mjs";import{n as D}from"./chunk-ZZ45TVLE-DmKznbd-.mjs";import{i as O,n as ee}from"./chunk-X2U36JSP-B09HbTgU.mjs";import{t as k}from"./rough.cjs-D5rEDIRO.mjs";import{r as A}from"./chunk-5FUZZQ4R-BSIWed9s.mjs";var te=e(k(),1),ne=r((e,t,n,r,i,a=!1,o)=>{t.arrowTypeStart&&N(e,`start`,t.arrowTypeStart,n,r,i,a,o),t.arrowTypeEnd&&N(e,`end`,t.arrowTypeEnd,n,r,i,a,o)},`addEdgeMarkers`),j={arrow_cross:{type:`cross`,fill:!1},arrow_point:{type:`point`,fill:!0},arrow_barb:{type:`barb`,fill:!0},arrow_barb_neo:{type:`barb`,fill:!0},arrow_circle:{type:`circle`,fill:!1},aggregation:{type:`aggregation`,fill:!1},extension:{type:`extension`,fill:!1},composition:{type:`composition`,fill:!0},dependency:{type:`dependency`,fill:!0},lollipop:{type:`lollipop`,fill:!1},only_one:{type:`onlyOne`,fill:!1},zero_or_one:{type:`zeroOrOne`,fill:!1},one_or_more:{type:`oneOrMore`,fill:!1},zero_or_more:{type:`zeroOrMore`,fill:!1},requirement_arrow:{type:`requirement_arrow`,fill:!1},requirement_contains:{type:`requirement_contains`,fill:!1}},M=[`cross`,`point`,`circle`,`lollipop`,`aggregation`,`extension`,`composition`,`dependency`,`barb`],N=r((e,n,r,i,a,o,s=!1,c)=>{let l=j[r],u=l&&M.includes(l.type);if(!l){t.warn(`Unknown arrow type: ${r}`);return}let d=`${a}_${o}-${l.type}${n===`start`?`Start`:`End`}${s&&u?`-margin`:``}`;if(c&&c.trim()!==``){let t=`${d}_${c.replace(/[^\dA-Za-z]/g,`_`)}`;if(!document.getElementById(t)){let e=document.getElementById(d);if(e){let n=e.cloneNode(!0);n.id=t,n.querySelectorAll(`path, circle, line`).forEach(e=>{e.setAttribute(`stroke`,c),l.fill&&e.setAttribute(`fill`,c)}),e.parentNode?.appendChild(n)}}e.attr(`marker-${n}`,`url(${i}#${t})`)}else e.attr(`marker-${n}`,`url(${i}#${d})`)},`addEdgeMarker`),re=r(e=>typeof e==`string`?e:i()?.flowchart?.curve,`resolveEdgeCurveType`),P=new Map,F=new Map,I=r(()=>{P.clear(),F.clear()},`clear`),L=r(e=>e?typeof e==`string`?e:e.reduce((e,t)=>e+`;`+t,``):``,`getLabelStyles`),R=r(async(e,r)=>{let o=i(),s=a(o),{labelStyles:c}=O(r);r.labelStyle=c;let l=e.insert(`g`).attr(`class`,`edgeLabel`),u=l.insert(`g`).attr(`class`,`label`).attr(`data-id`,r.id),d=r.labelType===`markdown`,f=await S(e,r.label,{style:L(r.labelStyle),useHtmlLabels:s,addSvgBackground:!0,isNode:!1,markdown:d,width:void 0},o);u.node().appendChild(f),t.info(`abc82`,r,r.labelType);let p=f.getBBox(),m=p;if(s){let e=f.children[0],t=n(f);p=e.getBoundingClientRect(),m=p,t.attr(`width`,p.width),t.attr(`height`,p.height)}else{let e=n(f).select(`text`).node();e&&typeof e.getBBox==`function`&&(m=e.getBBox())}u.attr(`transform`,E(m,s)),P.set(r.id,l),r.width=p.width,r.height=p.height;let h;if(r.startLabelLeft){let t=e.insert(`g`).attr(`class`,`edgeTerminals`),i=t.insert(`g`).attr(`class`,`inner`),a=await A(i,r.startLabelLeft,L(r.labelStyle)||``,!1,!1);h=a;let o=a.getBBox();if(s){let e=a.children[0],t=n(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,E(o,s)),F.get(r.id)||F.set(r.id,{}),F.get(r.id).startLeft=t,z(h,r.startLabelLeft)}if(r.startLabelRight){let t=e.insert(`g`).attr(`class`,`edgeTerminals`),i=t.insert(`g`).attr(`class`,`inner`),a=await A(i,r.startLabelRight,L(r.labelStyle)||``,!1,!1);h=a,i.node().appendChild(a);let o=a.getBBox();if(s){let e=a.children[0],t=n(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,E(o,s)),F.get(r.id)||F.set(r.id,{}),F.get(r.id).startRight=t,z(h,r.startLabelRight)}if(r.endLabelLeft){let t=e.insert(`g`).attr(`class`,`edgeTerminals`),i=t.insert(`g`).attr(`class`,`inner`),a=await A(i,r.endLabelLeft,L(r.labelStyle)||``,!1,!1);h=a;let o=a.getBBox();if(s){let e=a.children[0],t=n(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,E(o,s)),t.node().appendChild(a),F.get(r.id)||F.set(r.id,{}),F.get(r.id).endLeft=t,z(h,r.endLabelLeft)}if(r.endLabelRight){let t=e.insert(`g`).attr(`class`,`edgeTerminals`),i=t.insert(`g`).attr(`class`,`inner`),a=await A(i,r.endLabelRight,L(r.labelStyle)||``,!1,!1);h=a;let o=a.getBBox();if(s){let e=a.children[0],t=n(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,E(o,s)),t.node().appendChild(a),F.get(r.id)||F.set(r.id,{}),F.get(r.id).endRight=t,z(h,r.endLabelRight)}return f},`insertEdgeLabel`);function z(e,t){a(i())&&e&&(e.style.width=t.length*9+`px`,e.style.height=`12px`)}r(z,`setTerminalWidth`);var B=r((e,n)=>{t.debug(`Moving label abc88 `,e.id,e.label,P.get(e.id),n);let r=n.updatedPath?n.updatedPath:n.originalPath,{subGraphTitleTotalMargin:a}=D(i());if(e.label){let i=P.get(e.id),o=e.x,s=e.y;if(r){let i=v.calcLabelPosition(r);t.debug(`Moving label `+e.label+` from (`,o,`,`,s,`) to (`,i.x,`,`,i.y,`) abc88`),n.updatedPath&&(o=i.x,s=i.y)}i.attr(`transform`,`translate(${o}, ${s+a/2})`)}if(e.startLabelLeft){let t=F.get(e.id).startLeft,n=e.x,i=e.y;if(r){let t=v.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.startLabelRight){let t=F.get(e.id).startRight,n=e.x,i=e.y;if(r){let t=v.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.endLabelLeft){let t=F.get(e.id).endLeft,n=e.x,i=e.y;if(r){let t=v.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.endLabelRight){let t=F.get(e.id).endRight,n=e.x,i=e.y;if(r){let t=v.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}},`positionEdgeLabel`),V=r((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),H=r((e,n,r)=>{t.debug(`intersection calc abc89:
1
+ import{s as e}from"./chunk-C94x7I9S.mjs";import{T as t,p as n,w as r}from"./src-BGL-MlNN.mjs";import{b as i,w as a,y as o}from"./chunk-ICPOFSXX-BF2fcu67.mjs";import{B as s,F as c,G as l,H as u,I as d,L as f,P as p,R as m,U as h,V as g,W as _,h as v,l as y,z as b}from"./chunk-5PVQY5BW-CM3DDgan.mjs";import{t as x}from"./line-CNrllbcq.mjs";import{n as S}from"./chunk-U2HBQHQK-B6QvDsYx.mjs";import{i as C,n as w,r as T,t as E}from"./chunk-BSJP7CBP-C-rdyWiE.mjs";import{n as D}from"./chunk-ZZ45TVLE-2q1aFSGq.mjs";import{i as O,n as ee}from"./chunk-X2U36JSP-BlsQfR26.mjs";import{t as k}from"./rough.cjs-CjMW0p0V.mjs";import{r as A}from"./chunk-5FUZZQ4R-D0CI_lA3.mjs";var te=e(k(),1),ne=r((e,t,n,r,i,a=!1,o)=>{t.arrowTypeStart&&N(e,`start`,t.arrowTypeStart,n,r,i,a,o),t.arrowTypeEnd&&N(e,`end`,t.arrowTypeEnd,n,r,i,a,o)},`addEdgeMarkers`),j={arrow_cross:{type:`cross`,fill:!1},arrow_point:{type:`point`,fill:!0},arrow_barb:{type:`barb`,fill:!0},arrow_barb_neo:{type:`barb`,fill:!0},arrow_circle:{type:`circle`,fill:!1},aggregation:{type:`aggregation`,fill:!1},extension:{type:`extension`,fill:!1},composition:{type:`composition`,fill:!0},dependency:{type:`dependency`,fill:!0},lollipop:{type:`lollipop`,fill:!1},only_one:{type:`onlyOne`,fill:!1},zero_or_one:{type:`zeroOrOne`,fill:!1},one_or_more:{type:`oneOrMore`,fill:!1},zero_or_more:{type:`zeroOrMore`,fill:!1},requirement_arrow:{type:`requirement_arrow`,fill:!1},requirement_contains:{type:`requirement_contains`,fill:!1}},M=[`cross`,`point`,`circle`,`lollipop`,`aggregation`,`extension`,`composition`,`dependency`,`barb`],N=r((e,n,r,i,a,o,s=!1,c)=>{let l=j[r],u=l&&M.includes(l.type);if(!l){t.warn(`Unknown arrow type: ${r}`);return}let d=`${a}_${o}-${l.type}${n===`start`?`Start`:`End`}${s&&u?`-margin`:``}`;if(c&&c.trim()!==``){let t=`${d}_${c.replace(/[^\dA-Za-z]/g,`_`)}`;if(!document.getElementById(t)){let e=document.getElementById(d);if(e){let n=e.cloneNode(!0);n.id=t,n.querySelectorAll(`path, circle, line`).forEach(e=>{e.setAttribute(`stroke`,c),l.fill&&e.setAttribute(`fill`,c)}),e.parentNode?.appendChild(n)}}e.attr(`marker-${n}`,`url(${i}#${t})`)}else e.attr(`marker-${n}`,`url(${i}#${d})`)},`addEdgeMarker`),re=r(e=>typeof e==`string`?e:i()?.flowchart?.curve,`resolveEdgeCurveType`),P=new Map,F=new Map,I=r(()=>{P.clear(),F.clear()},`clear`),L=r(e=>e?typeof e==`string`?e:e.reduce((e,t)=>e+`;`+t,``):``,`getLabelStyles`),R=r(async(e,r)=>{let o=i(),s=a(o),{labelStyles:c}=O(r);r.labelStyle=c;let l=e.insert(`g`).attr(`class`,`edgeLabel`),u=l.insert(`g`).attr(`class`,`label`).attr(`data-id`,r.id),d=r.labelType===`markdown`,f=await S(e,r.label,{style:L(r.labelStyle),useHtmlLabels:s,addSvgBackground:!0,isNode:!1,markdown:d,width:void 0},o);u.node().appendChild(f),t.info(`abc82`,r,r.labelType);let p=f.getBBox(),m=p;if(s){let e=f.children[0],t=n(f);p=e.getBoundingClientRect(),m=p,t.attr(`width`,p.width),t.attr(`height`,p.height)}else{let e=n(f).select(`text`).node();e&&typeof e.getBBox==`function`&&(m=e.getBBox())}u.attr(`transform`,E(m,s)),P.set(r.id,l),r.width=p.width,r.height=p.height;let h;if(r.startLabelLeft){let t=e.insert(`g`).attr(`class`,`edgeTerminals`),i=t.insert(`g`).attr(`class`,`inner`),a=await A(i,r.startLabelLeft,L(r.labelStyle)||``,!1,!1);h=a;let o=a.getBBox();if(s){let e=a.children[0],t=n(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,E(o,s)),F.get(r.id)||F.set(r.id,{}),F.get(r.id).startLeft=t,z(h,r.startLabelLeft)}if(r.startLabelRight){let t=e.insert(`g`).attr(`class`,`edgeTerminals`),i=t.insert(`g`).attr(`class`,`inner`),a=await A(i,r.startLabelRight,L(r.labelStyle)||``,!1,!1);h=a,i.node().appendChild(a);let o=a.getBBox();if(s){let e=a.children[0],t=n(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,E(o,s)),F.get(r.id)||F.set(r.id,{}),F.get(r.id).startRight=t,z(h,r.startLabelRight)}if(r.endLabelLeft){let t=e.insert(`g`).attr(`class`,`edgeTerminals`),i=t.insert(`g`).attr(`class`,`inner`),a=await A(i,r.endLabelLeft,L(r.labelStyle)||``,!1,!1);h=a;let o=a.getBBox();if(s){let e=a.children[0],t=n(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,E(o,s)),t.node().appendChild(a),F.get(r.id)||F.set(r.id,{}),F.get(r.id).endLeft=t,z(h,r.endLabelLeft)}if(r.endLabelRight){let t=e.insert(`g`).attr(`class`,`edgeTerminals`),i=t.insert(`g`).attr(`class`,`inner`),a=await A(i,r.endLabelRight,L(r.labelStyle)||``,!1,!1);h=a;let o=a.getBBox();if(s){let e=a.children[0],t=n(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,E(o,s)),t.node().appendChild(a),F.get(r.id)||F.set(r.id,{}),F.get(r.id).endRight=t,z(h,r.endLabelRight)}return f},`insertEdgeLabel`);function z(e,t){a(i())&&e&&(e.style.width=t.length*9+`px`,e.style.height=`12px`)}r(z,`setTerminalWidth`);var B=r((e,n)=>{t.debug(`Moving label abc88 `,e.id,e.label,P.get(e.id),n);let r=n.updatedPath?n.updatedPath:n.originalPath,{subGraphTitleTotalMargin:a}=D(i());if(e.label){let i=P.get(e.id),o=e.x,s=e.y;if(r){let i=v.calcLabelPosition(r);t.debug(`Moving label `+e.label+` from (`,o,`,`,s,`) to (`,i.x,`,`,i.y,`) abc88`),n.updatedPath&&(o=i.x,s=i.y)}i.attr(`transform`,`translate(${o}, ${s+a/2})`)}if(e.startLabelLeft){let t=F.get(e.id).startLeft,n=e.x,i=e.y;if(r){let t=v.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.startLabelRight){let t=F.get(e.id).startRight,n=e.x,i=e.y;if(r){let t=v.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.endLabelLeft){let t=F.get(e.id).endLeft,n=e.x,i=e.y;if(r){let t=v.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.endLabelRight){let t=F.get(e.id).endRight,n=e.x,i=e.y;if(r){let t=v.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}},`positionEdgeLabel`),V=r((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),H=r((e,n,r)=>{t.debug(`intersection calc abc89:
2
2
  outsidePoint: ${JSON.stringify(n)}
3
3
  insidePoint : ${JSON.stringify(r)}
4
4
  node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let i=e.x,a=e.y,o=Math.abs(i-r.x),s=e.width/2,c=r.x<n.x?s-o:s+o,l=e.height/2,u=Math.abs(n.y-r.y),d=Math.abs(n.x-r.x);if(Math.abs(a-n.y)*s>Math.abs(i-n.x)*l){let e=r.y<n.y?n.y-l-a:a-l-n.y;c=d*e/u;let i={x:r.x<n.x?r.x+c:r.x-d+c,y:r.y<n.y?r.y+u-e:r.y-u+e};return c===0&&(i.x=n.x,i.y=n.y),d===0&&(i.x=n.x),u===0&&(i.y=n.y),t.debug(`abc89 top/bottom calc, Q ${u}, q ${e}, R ${d}, r ${c}`,i),i}else{c=r.x<n.x?n.x-s-i:i-s-n.x;let e=u*c/d,a=r.x<n.x?r.x+d-c:r.x-d+c,o=r.y<n.y?r.y+e:r.y-e;return t.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${c}`,{_x:a,_y:o}),c===0&&(a=n.x,o=n.y),d===0&&(a=n.x),u===0&&(o=n.y),{x:a,y:o}}},`intersection`),U=r((e,n)=>{t.warn(`abc88 cutPathAtIntersect`,e,n);let r=[],i=e[0],a=!1;return e.forEach(e=>{if(t.info(`abc88 checking point`,e,n),!V(n,e)&&!a){let o=H(n,i,e);t.debug(`abc88 inside`,e,i,o),t.debug(`abc88 intersection`,o,n);let s=!1;r.forEach(e=>{s||=e.x===o.x&&e.y===o.y}),r.some(e=>e.x===o.x&&e.y===o.y)?t.warn(`abc88 no intersect`,o,r):r.push(o),a=!0}else t.warn(`abc88 outside`,e,i),i=e,a||r.push(e)}),t.debug(`returning points`,r),r},`cutPathAtIntersect`);function W(e){let t=[],n=[];for(let r=1;r<e.length-1;r++){let i=e[r-1],a=e[r],o=e[r+1];(i.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),n.push(r))}return{cornerPoints:t,cornerPointPositions:n}}r(W,`extractCornerPoints`);var G=r(function(e,t,n){let r=t.x-e.x,i=t.y-e.y,a=n/Math.sqrt(r*r+i*i);return{x:t.x-a*r,y:t.y-a*i}},`findAdjacentPoint`),ie=r(function(e){let{cornerPointPositions:n}=W(e),r=[];for(let i=0;i<e.length;i++)if(n.includes(i)){let n=e[i-1],a=e[i+1],o=e[i],s=G(n,o,5),c=G(a,o,5),l=c.x-s.x,u=c.y-s.y;r.push(s);let d=Math.sqrt(2)*2,f={x:o.x,y:o.y};Math.abs(a.x-n.x)>10&&Math.abs(a.y-n.y)>=10?(t.debug(`Corner point fixing`,Math.abs(a.x-n.x),Math.abs(a.y-n.y)),f=o.x===s.x?{x:l<0?s.x-5+d:s.x+5-d,y:u<0?s.y-d:s.y+d}:{x:l<0?s.x-d:s.x+d,y:u<0?s.y-5+d:s.y+5-d}):t.debug(`Corner point skipping fixing`,Math.abs(a.x-n.x),Math.abs(a.y-n.y)),r.push(f,c)}else r.push(e[i]);return r},`fixCorners`),ae=r((e,t,n)=>{let r=e-t-n,i=Math.floor(r/4);return`0 ${t} ${Array(i).fill(`2 2`).join(` `)} ${n}`},`generateDashArray`),K=r(function(e,r,a,o,S,T,E,D=!1){if(!E)throw Error(`insertEdge: missing diagramId for edge "${r.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:O}=i(),k=r.points,A=!1,j=S;var M=T;let N=[];for(let e in r.cssCompiledStyles)ee(e)||N.push(r.cssCompiledStyles[e]);t.debug(`UIO intersect check`,r.points,M.x,j.x),M.intersect&&j.intersect&&!D&&(k=k.slice(1,r.points.length-1),k.unshift(j.intersect(k[0])),t.debug(`Last point UIO`,r.start,`-->`,r.end,k[k.length-1],M,M.intersect(k[k.length-1])),k.push(M.intersect(k[k.length-1])));let P=btoa(JSON.stringify(k));r.toCluster&&(t.info(`to cluster abc88`,a.get(r.toCluster)),k=U(r.points,a.get(r.toCluster).node),A=!0),r.fromCluster&&(t.debug(`from cluster abc88`,a.get(r.fromCluster),JSON.stringify(k,null,2)),k=U(k.reverse(),a.get(r.fromCluster).node).reverse(),A=!0);let F=k.filter(e=>!Number.isNaN(e.y)),I=re(r.curve);I!==`rounded`&&(F=ie(F));let L=l;switch(I){case`linear`:L=l;break;case`basis`:L=u;break;case`cardinal`:L=g;break;case`bumpX`:L=h;break;case`bumpY`:L=_;break;case`catmullRom`:L=s;break;case`monotoneX`:L=m;break;case`monotoneY`:L=b;break;case`natural`:L=f;break;case`step`:L=d;break;case`stepAfter`:L=p;break;case`stepBefore`:L=c;break;case`rounded`:L=l;break;default:L=u}let{x:R,y:z}=w(r),B=x().x(R).y(z).curve(L),V;switch(r.thickness){case`normal`:V=`edge-thickness-normal`;break;case`thick`:V=`edge-thickness-thick`;break;case`invisible`:V=`edge-thickness-invisible`;break;default:V=`edge-thickness-normal`}switch(r.pattern){case`solid`:V+=` edge-pattern-solid`;break;case`dotted`:V+=` edge-pattern-dotted`;break;case`dashed`:V+=` edge-pattern-dashed`;break;default:V+=` edge-pattern-solid`}let H,W=I===`rounded`?q(Y(F,r),5):B(F),G=Array.isArray(r.style)?r.style:[r.style],K=G.find(e=>e?.startsWith(`stroke:`)),J=``;r.animate&&(J=`edge-animation-fast`),r.animation&&(J=`edge-animation-`+r.animation);let X=!1;if(r.look===`handDrawn`){let t=te.default.svg(e);Object.assign([],F);let i=t.path(W,{roughness:.3,seed:O});V+=` transition`,H=n(i).select(`path`).attr(`id`,`${E}-${r.id}`).attr(`class`,` `+V+(r.classes?` `+r.classes:``)+(J?` `+J:``)).attr(`style`,G?G.reduce((e,t)=>e+`;`+t,``):``);let a=H.attr(`d`);H.attr(`d`,a),e.node().appendChild(H.node())}else{let t=N.join(`;`),n=G?G.reduce((e,t)=>e+t+`;`,``):``,i=(t?t+`;`+n+`;`:n)+`;`+(G?G.reduce((e,t)=>e+`;`+t,``):``);H=e.append(`path`).attr(`d`,W).attr(`id`,`${E}-${r.id}`).attr(`class`,` `+V+(r.classes?` `+r.classes:``)+(J?` `+J:``)).attr(`style`,i),K=i.match(/stroke:([^;]+)/)?.[1],X=r.animate===!0||!!r.animation||t.includes(`animation`);let a=H.node(),o=typeof a.getTotalLength==`function`?a.getTotalLength():0,s=C[r.arrowTypeStart]||0,c=C[r.arrowTypeEnd]||0;if(r.look===`neo`&&!X){let e=`stroke-dasharray: ${r.pattern===`dotted`||r.pattern===`dashed`?ae(o,s,c):`0 ${s} ${o-s-c} ${c}`}; stroke-dashoffset: 0;`;H.attr(`style`,e+H.attr(`style`))}}H.attr(`data-edge`,!0),H.attr(`data-et`,`edge`),H.attr(`data-id`,r.id),H.attr(`data-points`,P),H.attr(`data-look`,y(r.look)),r.showPoints&&F.forEach(t=>{e.append(`circle`).style(`stroke`,`red`).style(`fill`,`red`).attr(`r`,1).attr(`cx`,t.x).attr(`cy`,t.y)});let Z=``;(i().flowchart.arrowMarkerAbsolute||i().state.arrowMarkerAbsolute)&&(Z=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,Z=Z.replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)),t.info(`arrowTypeStart`,r.arrowTypeStart),t.info(`arrowTypeEnd`,r.arrowTypeEnd);let Q=!X&&r?.look===`neo`;ne(H,r,Z,E,o,Q,K);let oe=Math.floor(k.length/2),se=k[oe];v.isLabelCoordinateInPath(se,H.attr(`d`))||(A=!0);let $={};return A&&($.updatedPath=k),$.originalPath=r.points,$},`insertEdge`);function q(e,t){if(e.length<2)return``;let n=``,r=e.length,i=1e-5;for(let a=0;a<r;a++){let o=e[a],s=e[a-1],c=e[a+1];if(a===0)n+=`M${o.x},${o.y}`;else if(a===r-1)n+=`L${o.x},${o.y}`;else{let e=o.x-s.x,r=o.y-s.y,a=c.x-o.x,l=c.y-o.y,u=Math.hypot(e,r),d=Math.hypot(a,l);if(u<i||d<i){n+=`L${o.x},${o.y}`;continue}let f=e/u,p=r/u,m=a/d,h=l/d,g=f*m+p*h,_=Math.acos(Math.max(-1,Math.min(1,g)));if(_<i||Math.abs(Math.PI-_)<i){n+=`L${o.x},${o.y}`;continue}let v=Math.min(t/Math.sin(_/2),u/2,d/2),y=o.x-f*v,b=o.y-p*v,x=o.x+m*v,S=o.y+h*v;n+=`L${y},${b}`,n+=`Q${o.x},${o.y} ${x},${S}`}}return n}r(q,`generateRoundedPath`);function J(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};let n=t.x-e.x,r=t.y-e.y;return{angle:Math.atan2(r,n),deltaX:n,deltaY:r}}r(J,`calculateDeltaAndAngle`);function Y(e,t){let n=e.map(e=>({...e}));if(e.length>=2&&T[t.arrowTypeStart]){let r=T[t.arrowTypeStart],i=e[0],a=e[1],{angle:o}=J(i,a),s=r*Math.cos(o),c=r*Math.sin(o);n[0].x=i.x+s,n[0].y=i.y+c}let r=e.length;if(r>=2&&T[t.arrowTypeEnd]){let i=T[t.arrowTypeEnd],a=e[r-1],o=e[r-2],{angle:s}=J(o,a),c=i*Math.cos(s),l=i*Math.sin(s);n[r-1].x=a.x-c,n[r-1].y=a.y-l}return n}r(Y,`applyMarkerOffsetsToPoints`);var X=r((e,t,n,r)=>{t.forEach(t=>{Z[t](e,n,r)})},`insertMarkers`),Z={extension:r((e,n,r)=>{t.trace(`Making markers for `,r),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-extensionStart`).attr(`class`,`marker extension `+n).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 1,7 L18,13 V 1 Z`),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-extensionEnd`).attr(`class`,`marker extension `+n).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 V 13 L18,7 Z`),e.append(`marker`).attr(`id`,r+`_`+n+`-extensionStart-margin`).attr(`class`,`marker extension `+n).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,7 18,13 18,1`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-extensionEnd-margin`).attr(`class`,`marker extension `+n).attr(`refX`,9).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,1 10,13 18,7`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`)},`extension`),composition:r((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart`).attr(`class`,`marker composition `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd`).attr(`class`,`marker composition `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart-margin`).attr(`class`,`marker composition `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`viewBox`,`0 0 15 15`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd-margin`).attr(`class`,`marker composition `+t).attr(`refX`,3.5).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`composition`),aggregation:r((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart`).attr(`class`,`marker aggregation `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`aggregation`),dependency:r((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart`).attr(`class`,`marker dependency `+t).attr(`refX`,6).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd`).attr(`class`,`marker dependency `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,4).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,16).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`dependency`),lollipop:r((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2)},`lollipop`),point:r((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,4.5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 5 L 10 10 L 10 0 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,11.5).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,10.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 11.5 7 L 0 14 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,1).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`polygon`).attr(`points`,`0,7 11.5,14 11.5,0`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`point`),circle:r((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,11).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-1).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refY`,5).attr(`refX`,12.25).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-2).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`circle`),cross:r((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,12).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,-1).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,17.7).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,-3.5).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5).style(`stroke-dasharray`,`1,0`)},`cross`),barb:r((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`barb`),barbNeo:r((e,t,n)=>{let{themeVariables:r}=o(),{transitionColor:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`strokeWidth`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd-margin`).attr(`refX`,17).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`).attr(`fill`,`${i}`)},`barbNeo`),only_one:r((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`)},`only_one`),zero_or_one:r((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,21).attr(`cy`,9).attr(`r`,6),r.append(`path`).attr(`d`,`M9,0 L9,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,9).attr(`r`,6),i.append(`path`).attr(`d`,`M21,0 L21,18`)},`zero_or_one`),one_or_more:r((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`)},`one_or_more`),zero_or_more:r((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,48).attr(`cy`,18).attr(`r`,6),r.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,18).attr(`r`,6),i.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`)},`zero_or_more`),only_one_neo:r((e,t,n)=>{let{themeVariables:r}=o(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`).attr(`stroke-width`,`${i}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`).attr(`stroke-width`,`${i}`)},`only_one_neo`),zero_or_one_neo:r((e,t,n)=>{let{themeVariables:r}=o(),{strokeWidth:i,mainBkg:a}=r,s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);s.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,21).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),s.append(`path`).attr(`d`,`M9,0 L9,18`).attr(`stroke-width`,`${i}`);let c=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);c.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,9).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),c.append(`path`).attr(`d`,`M21,0 L21,18`).attr(`stroke-width`,`${i}`)},`zero_or_one_neo`),one_or_more_neo:r((e,t,n)=>{let{themeVariables:r}=o(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`).attr(`stroke-width`,`${i}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`).attr(`stroke-width`,`${i}`)},`one_or_more_neo`),zero_or_more_neo:r((e,t,n)=>{let{themeVariables:r}=o(),{strokeWidth:i,mainBkg:a}=r,s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);s.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,45.5).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),s.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`).attr(`stroke-width`,`${i}`);let c=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);c.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,11).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),c.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`).attr(`stroke-width`,`${i}`)},`zero_or_more_neo`),requirement_arrow:r((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_arrowEnd`).attr(`refX`,20).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,0
@@ -8,4 +8,4 @@ import{s as e}from"./chunk-C94x7I9S.mjs";import{T as t,p as n,w as r}from"./src-
8
8
  L20,10
9
9
  M20,10
10
10
  L0,20`).attr(`stroke-linejoin`,`miter`)},`requirement_arrow_neo`),requirement_contains_neo:r((e,t,n)=>{let{themeVariables:r}=o(),{strokeWidth:i}=r,a=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`g`);a.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),a.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),a.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10),a.selectAll(`*`).attr(`stroke-width`,`${i}`)},`requirement_contains_neo`)},Q=X;export{B as a,Q as i,K as n,R as r,I as t};
11
- //# sourceMappingURL=chunk-ENJZ2VHE-DgpEksO3.mjs.map
11
+ //# sourceMappingURL=chunk-ENJZ2VHE-DswEO8kN.mjs.map
@@ -1,4 +1,4 @@
1
- import{n as e,r as t,t as n}from"./chunk-74CEPOFO-CciWp7CZ.mjs";var r={name:`nl`,summary:`number lines of files`,usage:`nl [OPTION]... [FILE]...`,description:`Write each FILE to standard output, with line numbers added. If no FILE is specified, standard input is read.`,options:[`-b STYLE Body numbering style: a (all), t (non-empty), n (none)`,`-n FORMAT Number format: ln (left), rn (right), rz (right zeros)`,`-w WIDTH Number width (default: 6)`,`-s SEP Separator after number (default: TAB)`,`-v START Starting line number (default: 1)`,`-i INCR Line number increment (default: 1)`],examples:[`nl file.txt # Number non-empty lines`,`nl -ba file.txt # Number all lines`,`nl -n rz -w 3 file.txt # Right-justified with zeros`,`nl -s ': ' file.txt # Use ': ' as separator`]};function i(e,t,n){let r=String(e);switch(t){case`ln`:return r.padEnd(n);case`rn`:return r.padStart(n);case`rz`:return r.padStart(n,`0`);default:return t}}function a(e,t){switch(t){case`a`:return!0;case`t`:return e.trim().length>0;case`n`:return!1;default:return t}}function o(e,t,n){if(e===``)return{output:``,nextNumber:n};let r=e.split(`
1
+ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-smMq6g2B.mjs";var r={name:`nl`,summary:`number lines of files`,usage:`nl [OPTION]... [FILE]...`,description:`Write each FILE to standard output, with line numbers added. If no FILE is specified, standard input is read.`,options:[`-b STYLE Body numbering style: a (all), t (non-empty), n (none)`,`-n FORMAT Number format: ln (left), rn (right), rz (right zeros)`,`-w WIDTH Number width (default: 6)`,`-s SEP Separator after number (default: TAB)`,`-v START Starting line number (default: 1)`,`-i INCR Line number increment (default: 1)`],examples:[`nl file.txt # Number non-empty lines`,`nl -ba file.txt # Number all lines`,`nl -n rz -w 3 file.txt # Right-justified with zeros`,`nl -s ': ' file.txt # Use ': ' as separator`]};function i(e,t,n){let r=String(e);switch(t){case`ln`:return r.padEnd(n);case`rn`:return r.padStart(n);case`rz`:return r.padStart(n,`0`);default:return t}}function a(e,t){switch(t){case`a`:return!0;case`t`:return e.trim().length>0;case`n`:return!1;default:return t}}function o(e,t,n){if(e===``)return{output:``,nextNumber:n};let r=e.split(`
2
2
  `),o=[],s=n,c=e.endsWith(`
3
3
  `)&&r[r.length-1]===``;c&&r.pop();for(let e of r)if(a(e,t.bodyStyle)){let n=i(s,t.numberFormat,t.width);o.push(`${n}${t.separator}${e}`),s+=t.increment}else{let n=` `.repeat(t.width);o.push(`${n}${t.separator}${e}`)}return{output:o.join(`
4
4
  `)+(c?`
@@ -14,4 +14,4 @@ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-CciWp7CZ.mjs";var r={name:`nl`
14
14
  `};s.increment=e,l+=2}else if(t.startsWith(`-i`)){let e=parseInt(t.slice(2),10);if(Number.isNaN(e))return{exitCode:1,stdout:``,stderr:`nl: invalid line number increment: '${t.slice(2)}'
15
15
  `};s.increment=e,l++}else if(t===`--`){c.push(...i.slice(l+1));break}else{if(t.startsWith(`-`)&&t!==`-`)return e(`nl`,t);c.push(t),l++}}let u=``,d=s.startNumber;if(c.length===0)u=o(a.stdin??``,s,d).output;else for(let e of c){let t=a.fs.resolvePath(a.cwd,e),n=await a.fs.readFile(t);if(n===null)return{exitCode:1,stdout:u,stderr:`nl: ${e}: No such file or directory
16
16
  `};let r=o(n,s,d);u+=r.output,d=r.nextNumber}return{exitCode:0,stdout:u,stderr:``}}},c={name:`nl`,flags:[{flag:`-b`,type:`value`,valueHint:`string`},{flag:`-n`,type:`value`,valueHint:`string`},{flag:`-w`,type:`value`,valueHint:`number`},{flag:`-s`,type:`value`,valueHint:`string`},{flag:`-v`,type:`value`,valueHint:`number`},{flag:`-i`,type:`value`,valueHint:`number`}],stdinType:`text`,needsFiles:!0};export{s as n,c as t};
17
- //# sourceMappingURL=chunk-F23WWYKW-tJnOwArx.mjs.map
17
+ //# sourceMappingURL=chunk-F23WWYKW-YV2Ziyrt.mjs.map
@@ -1,4 +1,4 @@
1
- import{w as e}from"./src-DC_BCes_.mjs";var t=e(()=>`
1
+ import{w as e}from"./src-BGL-MlNN.mjs";var t=e(()=>`
2
2
  /* Font Awesome icon styling - consolidated */
3
3
  .label-icon {
4
4
  display: inline-block;
@@ -13,4 +13,4 @@ import{w as e}from"./src-DC_BCes_.mjs";var t=e(()=>`
13
13
  stroke-width: revert;
14
14
  }
15
15
  `,`getIconStyles`);export{t};
16
- //# sourceMappingURL=chunk-FMBD7UC4-CFP8EClM.mjs.map
16
+ //# sourceMappingURL=chunk-FMBD7UC4-DyW29ls9.mjs.map
@@ -1,2 +1,2 @@
1
- import{_ as e,c as t,g as n,h as r,i,m as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-ChGdeubA.mjs";var l=class extends s{static{a(this,`PacketTokenBuilder`)}constructor(){super([`packet`])}},u={parser:{TokenBuilder:a(()=>new l,`TokenBuilder`),ValueConverter:a(()=>new i,`ValueConverter`)}};function d(i=r){let a=n(c(i),o),s=n(e({shared:a}),t,u);return a.ServiceRegistry.register(s),{shared:a,Packet:s}}a(d,`createPacketServices`);export{d as n,u as t};
2
- //# sourceMappingURL=chunk-FOC6F5B3-BfuMxJA0.mjs.map
1
+ import{_ as e,c as t,g as n,h as r,i,m as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-DLjwaibC.mjs";var l=class extends s{static{a(this,`PacketTokenBuilder`)}constructor(){super([`packet`])}},u={parser:{TokenBuilder:a(()=>new l,`TokenBuilder`),ValueConverter:a(()=>new i,`ValueConverter`)}};function d(i=r){let a=n(c(i),o),s=n(e({shared:a}),t,u);return a.ServiceRegistry.register(s),{shared:a,Packet:s}}a(d,`createPacketServices`);export{d as n,u as t};
2
+ //# sourceMappingURL=chunk-FOC6F5B3-Bc3GvhQ3.mjs.map
@@ -1,4 +1,4 @@
1
1
  function e(e){let t=``,n=0;for(;n<e.length;)if(e[n]===`\\`){if(n+1>=e.length){t+=`\\`;break}let r=e[n+1];switch(r){case`\\`:t+=`\\`,n+=2;break;case`n`:t+=`
2
2
  `,n+=2;break;case`t`:t+=` `,n+=2;break;case`r`:t+=`\r`,n+=2;break;case`a`:t+=`\x07`,n+=2;break;case`b`:t+=`\b`,n+=2;break;case`f`:t+=`\f`,n+=2;break;case`v`:t+=`\v`,n+=2;break;case`e`:case`E`:t+=`\x1B`,n+=2;break;case`c`:return{output:t,stop:!0};case`0`:{let r=``,i=n+2;for(;i<e.length&&i<n+5&&/[0-7]/.test(e[i]);)r+=e[i],i++;if(r.length===0)t+=`\0`;else{let e=parseInt(r,8)%256;t+=String.fromCharCode(e)}n=i;break}case`x`:{let r=``,i=n+2;for(;i<e.length&&i<n+4&&/[0-9a-fA-F]/.test(e[i]);)r+=e[i],i++;if(r.length===0)t+=`\\x`,n+=2;else{let e=parseInt(r,16);t+=String.fromCharCode(e),n=i}break}case`u`:{let r=``,i=n+2;for(;i<e.length&&i<n+6&&/[0-9a-fA-F]/.test(e[i]);)r+=e[i],i++;if(r.length===0)t+=`\\u`,n+=2;else{let e=parseInt(r,16);t+=String.fromCodePoint(e),n=i}break}case`U`:{let r=``,i=n+2;for(;i<e.length&&i<n+10&&/[0-9a-fA-F]/.test(e[i]);)r+=e[i],i++;if(r.length===0)t+=`\\U`,n+=2;else{let e=parseInt(r,16);try{t+=String.fromCodePoint(e)}catch{t+=`\\U${r}`}n=i}break}default:t+=`\\${r}`,n+=2}}else t+=e[n],n++;return{output:t,stop:!1}}var t={name:`echo`,async execute(t,n){let r=!1,i=n.xpgEcho??!1,a=0;for(;a<t.length;){let e=t[a];if(e===`-n`)r=!0,a++;else if(e===`-e`)i=!0,a++;else if(e===`-E`)i=!1,a++;else if(e===`-ne`||e===`-en`)r=!0,i=!0,a++;else break}let o=t.slice(a).join(` `);if(i){let t=e(o);if(o=t.output,t.stop)return{stdout:o,stderr:``,exitCode:0}}return r||(o+=`
3
3
  `),{stdout:o,stderr:``,exitCode:0}}},n={name:`echo`,flags:[{flag:`-n`,type:`boolean`},{flag:`-e`,type:`boolean`},{flag:`-E`,type:`boolean`}],stdinType:`none`,needsArgs:!0};export{n,t};
4
- //# sourceMappingURL=chunk-GCTKCWKD-C5P_ff9C.mjs.map
4
+ //# sourceMappingURL=chunk-GCTKCWKD-DBnk7jcA.mjs.map
@@ -5,4 +5,4 @@ var e=class extends Error{stdout;stderr;constructor(e,t=``,n=``){super(e),this.s
5
5
  `}},u=class extends e{name=`BraceExpansionError`;constructor(e,t=``,n=``){super(e,t,n),this.stderr=n||`bash: ${e}
6
6
  `}},d=class extends e{limitType;name=`ExecutionLimitError`;static EXIT_CODE=126;constructor(e,t,n=``,r=``){super(e,n,r),this.limitType=t,this.stderr=r||`bash: ${e}
7
7
  `}},f=class extends e{name=`ExecutionAbortedError`;constructor(e=``,t=``){super(`execution aborted`,e,t)}},p=class extends e{name=`SubshellExitError`;constructor(e=``,t=``){super(`subshell exit`,e,t)}};function m(e){return e instanceof t||e instanceof n||e instanceof r}var h=class extends e{exitCode;name=`PosixFatalError`;constructor(e,t=``,n=``){super(`posix fatal error`,t,n),this.exitCode=e}};export{t as a,l as c,u as d,s as f,a as h,d as i,r as l,m,h as n,o,i as p,n as r,p as s,f as t,c as u};
8
- //# sourceMappingURL=chunk-GFQRA5P5-DbAN9IDm.mjs.map
8
+ //# sourceMappingURL=chunk-GFQRA5P5-DuNfOQls.mjs.map
@@ -1,4 +1,4 @@
1
- import{n as e,t}from"./chunk-A5O5YHGN-DApqA6Ow.mjs";import{r as n,t as r}from"./chunk-74CEPOFO-CciWp7CZ.mjs";import{t as i}from"./chunk-3ZUFRYJ4-DQB4hWDy.mjs";var a={name:`sleep`,summary:`delay for a specified amount of time`,usage:`sleep NUMBER[SUFFIX]`,description:`Pause for NUMBER seconds. SUFFIX may be:
1
+ import{n as e,t}from"./chunk-A5O5YHGN-0FmmnDn4.mjs";import{r as n,t as r}from"./chunk-74CEPOFO-smMq6g2B.mjs";import{t as i}from"./chunk-3ZUFRYJ4-5tUBEJiQ.mjs";var a={name:`sleep`,summary:`delay for a specified amount of time`,usage:`sleep NUMBER[SUFFIX]`,description:`Pause for NUMBER seconds. SUFFIX may be:
2
2
  s - seconds (default)
3
3
  m - minutes
4
4
  h - hours
@@ -7,4 +7,4 @@ import{n as e,t}from"./chunk-A5O5YHGN-DApqA6Ow.mjs";import{r as n,t as r}from"./
7
7
  NUMBER may be a decimal number.`,options:[` --help display this help and exit`]},o=36e5,s={name:`sleep`,async execute(s,c){if(r(s))return n(a);if(s.length===0)return{stdout:``,stderr:`sleep: missing operand
8
8
  `,exitCode:1};let l=0;for(let e of s){let t=i(e);if(t===null)return{stdout:``,stderr:`sleep: invalid time interval '${e}'
9
9
  `,exitCode:1};l+=t}return l>o&&(l=o),c.signal?.aborted||(c.sleep?await c.sleep(l):c.signal?await new Promise(n=>{let r=()=>{e(i),n()},i=t(()=>{c.signal?.removeEventListener(`abort`,r),n()},l);c.signal?.addEventListener(`abort`,r,{once:!0})}):await new Promise(e=>t(e,l))),{stdout:``,stderr:``,exitCode:0}}},c={name:`sleep`,flags:[],needsArgs:!0};export{s as n,c as t};
10
- //# sourceMappingURL=chunk-GOV5EKKI-CnqfYKLU.mjs.map
10
+ //# sourceMappingURL=chunk-GOV5EKKI-BFLTyBpR.mjs.map
@@ -1,6 +1,6 @@
1
- import{r as e,t}from"./chunk-74CEPOFO-CciWp7CZ.mjs";import{t as n}from"./chunk-HWKDQ44K-Cd9c0ujm.mjs";import{n as r}from"./chunk-7L36YK2X-Cok_Mfzv.mjs";var i={name:`wc`,summary:`print newline, word, and byte counts for each file`,usage:`wc [OPTION]... [FILE]...`,options:[`-c, --bytes print the byte counts`,`-m, --chars print the character counts`,`-l, --lines print the newline counts`,`-w, --words print the word counts`,` --help display this help and exit`]},a={lines:{short:`l`,long:`lines`,type:`boolean`},words:{short:`w`,long:`words`,type:`boolean`},bytes:{short:`c`,long:`bytes`,type:`boolean`},chars:{short:`m`,long:`chars`,type:`boolean`}},o={name:`wc`,async execute(o,l){if(t(o))return e(i);let u=n(`wc`,o,a);if(!u.ok)return u.error;let{lines:d,words:f}=u.result.flags,p=u.result.flags.bytes||u.result.flags.chars,m=u.result.positional;!d&&!f&&!p&&(d=f=p=!0);let h=await r(l,m,{cmdName:`wc`,stopOnError:!1});if(m.length===0)return{stdout:`${c(s(h.files[0].content),d,f,p,``,0)}
1
+ import{r as e,t}from"./chunk-74CEPOFO-smMq6g2B.mjs";import{t as n}from"./chunk-HWKDQ44K-CRAflooW.mjs";import{n as r}from"./chunk-7L36YK2X-BEYeMppm.mjs";var i={name:`wc`,summary:`print newline, word, and byte counts for each file`,usage:`wc [OPTION]... [FILE]...`,options:[`-c, --bytes print the byte counts`,`-m, --chars print the character counts`,`-l, --lines print the newline counts`,`-w, --words print the word counts`,` --help display this help and exit`]},a={lines:{short:`l`,long:`lines`,type:`boolean`},words:{short:`w`,long:`words`,type:`boolean`},bytes:{short:`c`,long:`bytes`,type:`boolean`},chars:{short:`m`,long:`chars`,type:`boolean`}},o={name:`wc`,async execute(o,l){if(t(o))return e(i);let u=n(`wc`,o,a);if(!u.ok)return u.error;let{lines:d,words:f}=u.result.flags,p=u.result.flags.bytes||u.result.flags.chars,m=u.result.positional;!d&&!f&&!p&&(d=f=p=!0);let h=await r(l,m,{cmdName:`wc`,stopOnError:!1});if(m.length===0)return{stdout:`${c(s(h.files[0].content),d,f,p,``,0)}
2
2
  `,stderr:``,exitCode:0};let g=[],_=0,v=0,y=0;for(let{filename:e,content:t}of h.files){let n=s(t);_+=n.lines,v+=n.words,y+=n.chars,g.push({filename:e,stats:n})}let b=m.length>1?_:Math.max(...g.map(e=>e.stats.lines)),x=m.length>1?v:Math.max(...g.map(e=>e.stats.words)),S=m.length>1?y:Math.max(...g.map(e=>e.stats.chars)),C=m.length>1?3:0;d&&(C=Math.max(C,String(b).length)),f&&(C=Math.max(C,String(x).length)),p&&(C=Math.max(C,String(S).length));let w=``;for(let{filename:e,stats:t}of g)w+=`${c(t,d,f,p,e,C)}
3
3
  `;return m.length>1&&(w+=`${c({lines:_,words:v,chars:y},d,f,p,`total`,C)}
4
4
  `),{stdout:w,stderr:h.stderr,exitCode:h.exitCode}}};function s(e){let t=e.length,n=0,r=0,i=!1;for(let a=0;a<t;a++){let t=e[a];t===`
5
5
  `?(n++,i&&=(r++,!1)):t===` `||t===` `||t===`\r`?i&&=(r++,!1):i=!0}return i&&r++,{lines:n,words:r,chars:t}}function c(e,t,n,r,i,a){let o=[];t&&o.push(String(e.lines).padStart(a)),n&&o.push(String(e.words).padStart(a)),r&&o.push(String(e.chars).padStart(a));let s=o.join(` `);return i&&(s+=` ${i}`),s}var l={name:`wc`,flags:[{flag:`-l`,type:`boolean`},{flag:`-w`,type:`boolean`},{flag:`-c`,type:`boolean`},{flag:`-m`,type:`boolean`}],stdinType:`text`,needsFiles:!0};export{l as n,o as t};
6
- //# sourceMappingURL=chunk-GXVXFKBA-BZ5qwuS5.mjs.map
6
+ //# sourceMappingURL=chunk-GXVXFKBA-C3l1H1PT.mjs.map
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-74CEPOFO-CciWp7CZ.mjs";function t(t,n){let r=10,i=null,a=!1,o=!1,s=!1,c=[];for(let l=0;l<t.length;l++){let u=t[l];if(u===`-n`&&l+1<t.length){let e=t[++l];n===`tail`&&e.startsWith(`+`)?(s=!0,r=parseInt(e.slice(1),10)):r=parseInt(e,10)}else if(n===`tail`&&u.startsWith(`-n+`))s=!0,r=parseInt(u.slice(3),10);else if(u.startsWith(`-n`))r=parseInt(u.slice(2),10);else if(u===`-c`&&l+1<t.length)i=parseInt(t[++l],10);else if(u.startsWith(`-c`))i=parseInt(u.slice(2),10);else if(u.startsWith(`--bytes=`))i=parseInt(u.slice(8),10);else if(u.startsWith(`--lines=`))r=parseInt(u.slice(8),10);else if(u===`-q`||u===`--quiet`||u===`--silent`)a=!0;else if(u===`-v`||u===`--verbose`)o=!0;else if(u.match(/^-\d+$/))r=parseInt(u.slice(1),10);else{if(u.startsWith(`--`)||u.startsWith(`-`)&&u!==`-`)return{ok:!1,error:e(n,u)};c.push(u)}}return i!==null&&(Number.isNaN(i)||i<0)?{ok:!1,error:{stdout:``,stderr:`${n}: invalid number of bytes
1
+ import{n as e}from"./chunk-74CEPOFO-smMq6g2B.mjs";function t(t,n){let r=10,i=null,a=!1,o=!1,s=!1,c=[];for(let l=0;l<t.length;l++){let u=t[l];if(u===`-n`&&l+1<t.length){let e=t[++l];n===`tail`&&e.startsWith(`+`)?(s=!0,r=parseInt(e.slice(1),10)):r=parseInt(e,10)}else if(n===`tail`&&u.startsWith(`-n+`))s=!0,r=parseInt(u.slice(3),10);else if(u.startsWith(`-n`))r=parseInt(u.slice(2),10);else if(u===`-c`&&l+1<t.length)i=parseInt(t[++l],10);else if(u.startsWith(`-c`))i=parseInt(u.slice(2),10);else if(u.startsWith(`--bytes=`))i=parseInt(u.slice(8),10);else if(u.startsWith(`--lines=`))r=parseInt(u.slice(8),10);else if(u===`-q`||u===`--quiet`||u===`--silent`)a=!0;else if(u===`-v`||u===`--verbose`)o=!0;else if(u.match(/^-\d+$/))r=parseInt(u.slice(1),10);else{if(u.startsWith(`--`)||u.startsWith(`-`)&&u!==`-`)return{ok:!1,error:e(n,u)};c.push(u)}}return i!==null&&(Number.isNaN(i)||i<0)?{ok:!1,error:{stdout:``,stderr:`${n}: invalid number of bytes
2
2
  `,exitCode:1}}:Number.isNaN(r)||r<0?{ok:!1,error:{stdout:``,stderr:`${n}: invalid number of lines
3
3
  `,exitCode:1}}:{ok:!0,options:{lines:r,bytes:i,quiet:a,verbose:o,files:c,fromLine:s}}}async function n(e,t,n,r){let{quiet:i,verbose:a,files:o}=t;if(o.length===0)return{stdout:r(e.stdin),stderr:``,exitCode:0};let s=``,c=``,l=0,u=a||!i&&o.length>1,d=0;for(let t=0;t<o.length;t++){let i=o[t];try{let t=e.fs.resolvePath(e.cwd,i),n=await e.fs.readFile(t);u&&(d>0&&(s+=`
4
4
  `),s+=`==> ${i} <==
@@ -13,4 +13,4 @@ import{n as e}from"./chunk-74CEPOFO-CciWp7CZ.mjs";function t(t,n){let r=10,i=nul
13
13
  `&&(o++,o===t)){a++;break}a--}a<0&&(a=0);let s=e.slice(a);return e[i-1]===`
14
14
  `?s:`${s}
15
15
  `}export{i,t as n,n as r,r as t};
16
- //# sourceMappingURL=chunk-HDQ56CKY-C2858kAN.mjs.map
16
+ //# sourceMappingURL=chunk-HDQ56CKY-Cy6yVra7.mjs.map
@@ -1,3 +1,3 @@
1
1
  async function e(e,t){return{stdout:`user
2
2
  `,stderr:``,exitCode:0}}var t={name:`whoami`,execute:e},n={name:`whoami`,flags:[]};export{n,t};
3
- //# sourceMappingURL=chunk-HJQJAYMS-BhX1qT1n.mjs.map
3
+ //# sourceMappingURL=chunk-HJQJAYMS-yqfBcYOx.mjs.map
@@ -1,6 +1,6 @@
1
- import{n as e,r as t,t as n}from"./chunk-74CEPOFO-CciWp7CZ.mjs";var r={name:`readlink`,summary:`print resolved symbolic links or canonical file names`,usage:`readlink [OPTIONS] FILE...`,options:[`-f canonicalize by following every symlink in every component of the given name recursively`,` --help display this help and exit`]},i={name:`readlink`,async execute(i,a){if(n(i))return t(r);let o=!1,s=0;for(;s<i.length&&i[s].startsWith(`-`);){let t=i[s];if(t===`-f`||t===`--canonicalize`)o=!0,s++;else if(t===`--`){s++;break}else return e(`readlink`,t)}let c=i.slice(s);if(c.length===0)return{stdout:``,stderr:`readlink: missing operand
1
+ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-smMq6g2B.mjs";var r={name:`readlink`,summary:`print resolved symbolic links or canonical file names`,usage:`readlink [OPTIONS] FILE...`,options:[`-f canonicalize by following every symlink in every component of the given name recursively`,` --help display this help and exit`]},i={name:`readlink`,async execute(i,a){if(n(i))return t(r);let o=!1,s=0;for(;s<i.length&&i[s].startsWith(`-`);){let t=i[s];if(t===`-f`||t===`--canonicalize`)o=!0,s++;else if(t===`--`){s++;break}else return e(`readlink`,t)}let c=i.slice(s);if(c.length===0)return{stdout:``,stderr:`readlink: missing operand
2
2
  `,exitCode:1};let l=``,u=!1;for(let e of c){let t=a.fs.resolvePath(a.cwd,e);try{if(o){let e=t,n=new Set;for(;!n.has(e);){n.add(e);try{let t=await a.fs.readlink(e);if(t.startsWith(`/`))e=t;else{let n=e.substring(0,e.lastIndexOf(`/`))||`/`;e=a.fs.resolvePath(n,t)}}catch{break}}l+=`${e}
3
3
  `}else{let e=await a.fs.readlink(t);l+=`${e}
4
4
  `}}catch{o?l+=`${t}
5
5
  `:u=!0}}return{stdout:l,stderr:``,exitCode:u?1:0}}},a={name:`readlink`,flags:[{flag:`-f`,type:`boolean`},{flag:`-e`,type:`boolean`}],needsArgs:!0};export{i as n,a as t};
6
- //# sourceMappingURL=chunk-HJWBQKYG-D9DjORFc.mjs.map
6
+ //# sourceMappingURL=chunk-HJWBQKYG-C1cifXhx.mjs.map
@@ -1,5 +1,5 @@
1
- import{s as e,t}from"./chunk-C94x7I9S.mjs";import{t as n}from"./chunk-B74TABJS-CM6MrFZT.mjs";import{t as r}from"./chunk-5QMZ5MUS-BwpNU33k.mjs";import{n as i,r as a,t as o}from"./chunk-74CEPOFO-CciWp7CZ.mjs";import{t as s}from"./chunk-X2AJGDEF-Bpyh-CYM.mjs";var c=t(((e,t)=>{var n=[0,1,3,7,15,31,63,127,255],r=function(e){this.stream=e,this.bitOffset=0,this.curByte=0,this.hasByte=!1};r.prototype._ensureByte=function(){this.hasByte||=(this.curByte=this.stream.readByte(),!0)},r.prototype.read=function(e){for(var t=0;e>0;){this._ensureByte();var r=8-this.bitOffset;if(e>=r)t<<=r,t|=n[r]&this.curByte,this.hasByte=!1,this.bitOffset=0,e-=r;else{t<<=e;var i=r-e;t|=(this.curByte&n[e]<<i)>>i,this.bitOffset+=e,e=0}}return t},r.prototype.seek=function(e){var t=e%8,n=(e-t)/8;this.bitOffset=t,this.stream.seek(n),this.hasByte=!1},r.prototype.pi=function(){var e=new Buffer(6),t;for(t=0;t<e.length;t++)e[t]=this.read(8);return e.toString(`hex`)},t.exports=r})),l=t(((e,t)=>{var n=function(){};n.prototype.readByte=function(){throw Error(`abstract method readByte() not implemented`)},n.prototype.read=function(e,t,n){for(var r=0;r<n;){var i=this.readByte();if(i<0)return r===0?-1:r;e[t++]=i,r++}return r},n.prototype.seek=function(e){throw Error(`abstract method seek() not implemented`)},n.prototype.writeByte=function(e){throw Error(`abstract method readByte() not implemented`)},n.prototype.write=function(e,t,n){var r;for(r=0;r<n;r++)this.writeByte(e[t++]);return n},n.prototype.flush=function(){},t.exports=n})),u=t(((e,t)=>{t.exports=(function(){var e=new Uint32Array([0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188]);return function(){var t=4294967295;this.getCRC=function(){return~t>>>0},this.updateCRC=function(n){t=t<<8^e[(t>>>24^n)&255]},this.updateCRCRun=function(n,r){for(;r-- >0;)t=t<<8^e[(t>>>24^n)&255]}}})()})),d=t(((e,t)=>{t.exports={name:`seek-bzip`,version:`2.0.0`,contributors:[`C. Scott Ananian (http://cscott.net)`,`Eli Skeggs`,`Kevin Kwok`,`Rob Landley (http://landley.net)`],description:`a pure-JavaScript Node.JS module for random-access decoding bzip2 data`,main:`./lib/index.js`,repository:{type:`git`,url:`https://github.com/cscott/seek-bzip.git`},license:`MIT`,bin:{"seek-bunzip":`./bin/seek-bunzip`,"seek-table":`./bin/seek-bzip-table`},directories:{test:`test`},dependencies:{commander:`^6.0.0`},devDependencies:{fibers:`^5.0.0`,mocha:`^8.1.0`},scripts:{test:`mocha`}}})),f=e(t(((e,t)=>{var n=c(),r=l(),i=u(),a=d(),o=20,s=258,f=0,p=1,m=2,h=6,g=50,_=`314159265359`,v=`177245385090`,y=function(e,t){var n=e[t],r;for(r=t;r>0;r--)e[r]=e[r-1];return e[0]=n,n},b={OK:0,LAST_BLOCK:-1,NOT_BZIP_DATA:-2,UNEXPECTED_INPUT_EOF:-3,UNEXPECTED_OUTPUT_EOF:-4,DATA_ERROR:-5,OUT_OF_MEMORY:-6,OBSOLETE_INPUT:-7,END_OF_BLOCK:-8},x={};x[b.LAST_BLOCK]=`Bad file checksum`,x[b.NOT_BZIP_DATA]=`Not bzip data`,x[b.UNEXPECTED_INPUT_EOF]=`Unexpected input EOF`,x[b.UNEXPECTED_OUTPUT_EOF]=`Unexpected output EOF`,x[b.DATA_ERROR]=`Data error`,x[b.OUT_OF_MEMORY]=`Out of memory`,x[b.OBSOLETE_INPUT]=`Obsolete (pre 0.9.5) bzip format not supported.`;var S=function(e,t){var n=x[e]||`unknown error`;t&&(n+=`: `+t);var r=TypeError(n);throw r.errorCode=e,r},C=function(e,t){this.writePos=this.writeCurrent=this.writeCount=0,this._start_bunzip(e,t)};C.prototype._init_block=function(){return this._get_next_block()?(this.blockCRC=new i,!0):(this.writeCount=-1,!1)},C.prototype._start_bunzip=function(e,t){var r=new Buffer(4);(e.read(r,0,4)!==4||String.fromCharCode(r[0],r[1],r[2])!==`BZh`)&&S(b.NOT_BZIP_DATA,`bad magic`);var i=r[3]-48;(i<1||i>9)&&S(b.NOT_BZIP_DATA,`level out of range`),this.reader=new n(e),this.dbufSize=1e5*i,this.nextoutput=0,this.outputStream=t,this.streamCRC=0},C.prototype._get_next_block=function(){var e,t,n,r=this.reader,i=r.pi();if(i===v)return!1;i!==_&&S(b.NOT_BZIP_DATA),this.targetBlockCRC=r.read(32)>>>0,this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0,r.read(1)&&S(b.OBSOLETE_INPUT);var a=r.read(24);a>this.dbufSize&&S(b.DATA_ERROR,`initial position out of bounds`);var c=r.read(16),l=new Buffer(256),u=0;for(e=0;e<16;e++)if(c&1<<15-e){var d=e*16;for(n=r.read(16),t=0;t<16;t++)n&1<<15-t&&(l[u++]=d+t)}var x=r.read(3);(x<m||x>h)&&S(b.DATA_ERROR);var C=r.read(15);C===0&&S(b.DATA_ERROR);var w=new Buffer(256);for(e=0;e<x;e++)w[e]=e;var T=new Buffer(C);for(e=0;e<C;e++){for(t=0;r.read(1);t++)t>=x&&S(b.DATA_ERROR);T[e]=y(w,t)}var E=u+2,D=[],O;for(t=0;t<x;t++){var k=new Buffer(E),A=new Uint16Array(o+1);for(c=r.read(5),e=0;e<E;e++){for(;(c<1||c>o)&&S(b.DATA_ERROR),r.read(1);)r.read(1)?c--:c++;k[e]=c}var j=M=k[0],M;for(e=1;e<E;e++)k[e]>M?M=k[e]:k[e]<j&&(j=k[e]);O={},D.push(O),O.permute=new Uint16Array(s),O.limit=new Uint32Array(o+2),O.base=new Uint32Array(o+1),O.minLen=j,O.maxLen=M;var N=0;for(e=j;e<=M;e++)for(A[e]=O.limit[e]=0,c=0;c<E;c++)k[c]===e&&(O.permute[N++]=c);for(e=0;e<E;e++)A[k[e]]++;for(N=c=0,e=j;e<M;e++)N+=A[e],O.limit[e]=N-1,N<<=1,c+=A[e],O.base[e+1]=N-c;O.limit[M+1]=Number.MAX_VALUE,O.limit[M]=N+A[M]-1,O.base[j]=0}var P=new Uint32Array(256);for(e=0;e<256;e++)w[e]=e;var F=0,I=0,ee=0,L,R=this.dbuf=new Uint32Array(this.dbufSize);for(E=0;;){for(E--||(E=g-1,ee>=C&&S(b.DATA_ERROR),O=D[T[ee++]]),e=O.minLen,t=r.read(e);e>O.maxLen&&S(b.DATA_ERROR),!(t<=O.limit[e]);e++)t=t<<1|r.read(1);t-=O.base[e],(t<0||t>=s)&&S(b.DATA_ERROR);var z=O.permute[t];if(z===f||z===p){F||(F=1,c=0),z===f?c+=F:c+=2*F,F<<=1;continue}if(F)for(F=0,I+c>this.dbufSize&&S(b.DATA_ERROR),L=l[w[0]],P[L]+=c;c--;)R[I++]=L;if(z>u)break;I>=this.dbufSize&&S(b.DATA_ERROR),e=z-1,L=y(w,e),L=l[L],P[L]++,R[I++]=L}for((a<0||a>=I)&&S(b.DATA_ERROR),t=0,e=0;e<256;e++)n=t+P[e],P[e]=t,t=n;for(e=0;e<I;e++)L=R[e]&255,R[P[L]]|=e<<8,P[L]++;var B=0,te=0,V=0;return I&&(B=R[a],te=B&255,B>>=8,V=-1),this.writePos=B,this.writeCurrent=te,this.writeCount=I,this.writeRun=V,!0},C.prototype._read_bunzip=function(e,t){var n,r,i;if(this.writeCount<0)return 0;var a=this.dbuf,o=this.writePos,s=this.writeCurrent,c=this.writeCount;this.outputsize;for(var l=this.writeRun;c;){for(c--,r=s,o=a[o],s=o&255,o>>=8,l++===3?(n=s,i=r,s=-1):(n=1,i=s),this.blockCRC.updateCRCRun(i,n);n--;)this.outputStream.writeByte(i),this.nextoutput++;s!=r&&(l=0)}return this.writeCount=c,this.blockCRC.getCRC()!==this.targetBlockCRC&&S(b.DATA_ERROR,`Bad block CRC (got `+this.blockCRC.getCRC().toString(16)+` expected `+this.targetBlockCRC.toString(16)+`)`),this.nextoutput};var w=function(e){if(`readByte`in e)return e;var t=new r;return t.pos=0,t.readByte=function(){return e[this.pos++]},t.seek=function(e){this.pos=e},t.eof=function(){return this.pos>=e.length},t},T=function(e){var t=new r,n=!0;if(e)if(typeof e==`number`)t.buffer=new Buffer(e),n=!1;else if(`writeByte`in e)return e;else t.buffer=e,n=!1;else t.buffer=new Buffer(16384);return t.pos=0,t.writeByte=function(e){if(n&&this.pos>=this.buffer.length){var t=new Buffer(this.buffer.length*2);this.buffer.copy(t),this.buffer=t}this.buffer[this.pos++]=e},t.getBuffer=function(){if(this.pos!==this.buffer.length){if(!n)throw TypeError(`outputsize does not match decoded input`);var e=new Buffer(this.pos);this.buffer.copy(e,0,0,this.pos),this.buffer=e}return this.buffer},t._coerced=!0,t};C.Err=b,C.decode=function(e,t,n){for(var r=w(e),i=T(t),a=new C(r,i);!(`eof`in r&&r.eof());)if(a._init_block())a._read_bunzip();else{var o=a.reader.read(32)>>>0;if(o!==a.streamCRC&&S(b.DATA_ERROR,`Bad stream CRC (got `+a.streamCRC.toString(16)+` expected `+o.toString(16)+`)`),n&&`eof`in r&&!r.eof())a._start_bunzip(r,i);else break}if(`getBuffer`in i)return i.getBuffer()},C.decodeBlock=function(e,t,n){var r=w(e),a=T(n),o=new C(r,a);if(o.reader.seek(t),o._get_next_block()&&(o.blockCRC=new i,o.writeCopies=0,o._read_bunzip()),`getBuffer`in a)return a.getBuffer()},C.table=function(e,t,n){var i=new r;i.delegate=w(e),i.pos=0,i.readByte=function(){return this.pos++,this.delegate.readByte()},i.delegate.eof&&(i.eof=i.delegate.eof.bind(i.delegate));var a=new r;a.pos=0,a.writeByte=function(){this.pos++};for(var o=new C(i,a),s=o.dbufSize;!(`eof`in i&&i.eof());){var c=i.pos*8+o.reader.bitOffset;if(o.reader.hasByte&&(c-=8),o._init_block()){var l=a.pos;o._read_bunzip(),t(c,a.pos-l)}else if(o.reader.read(32),n&&`eof`in i&&!i.eof())o._start_bunzip(i,a),console.assert(o.dbufSize===s,`shouldn't change block size within multistream file`);else break}},C.Stream=r,C.version=a.version,C.license=a.license,t.exports=C}))(),1),p=`file`,m=`link`,h=`symlink`,g=`directory`,_={file:`0`,link:`1`,symlink:`2`,"character-device":`3`,"block-device":`4`,directory:`5`,fifo:`6`,"pax-header":`x`,"pax-global-header":`g`,"gnu-long-name":`L`,"gnu-long-link-name":`K`},v={0:p,1:m,2:h,3:`character-device`,4:`block-device`,5:g,6:`fifo`,x:`pax-header`,g:`pax-global-header`,L:`gnu-long-name`,K:`gnu-long-link-name`},y=new Uint8Array(512),b=new Uint8Array,x=new TextEncoder,S=new TextDecoder;function C(e,t,n,r){r&&x.encodeInto(r,e.subarray(t,t+n))}function w(e,t,n,r){if(r===void 0)return;let i=r.toString(8).padStart(n-1,`0`);x.encodeInto(i,e.subarray(t,t+n-1))}function T(e,t,n){let r=e.indexOf(0,t),i=r===-1||r>t+n?t+n:r;return S.decode(e.subarray(t,i))}function E(e,t,n){let r=0,i=t+n;for(let n=t;n<i;n++){let t=e[n];if(t===0)break;t!==32&&(r=r*8+(t-48))}return r}function D(e,t,n){if(e[t]&128){let r=0;r=e[t]&127;for(let i=1;i<n;i++)r=r*256+e[t+i];if(!Number.isSafeInteger(r))throw Error(`TAR number too large`);return r}return E(e,t,n)}var O=e=>e.type===`directory`||e.type===`symlink`||e.type===`link`||e.type===`character-device`||e.type===`block-device`||e.type===`fifo`;async function k(e){if(e==null)return b;if(e instanceof Uint8Array)return e;if(typeof e==`string`)return x.encode(e);if(e instanceof ArrayBuffer)return new Uint8Array(e);if(e instanceof Blob)return new Uint8Array(await e.arrayBuffer());throw TypeError(`Unsupported content type for entry body.`)}var A=(e,t)=>{let n=e.split(`/`).filter(Boolean);return t>=n.length?``:n.slice(t).join(`/`)};function j(e,t){let{strip:n,filter:r,map:i}=t;if(!n&&!r&&!i)return e;let a={...e};if(n&&n>0){let e=A(a.name,n);if(!e)return null;if(a.name=a.type===`directory`&&!e.endsWith(`/`)?`${e}/`:e,a.linkname){let e=a.linkname.startsWith(`/`);if(e||a.type===`link`){let t=A(a.linkname,n);a.linkname=e?`/${t}`||`/`:t}}}if(r?.(a)===!1)return null;let o=i?i(a):a;return o&&(!o.name||!o.name.trim()||o.name===`.`||o.name===`/`)?null:o}var M=32,N=48;function P(e){let t=E(e,148,8),n=0;for(let t=0;t<e.length;t++)t>=148&&t<156?n+=M:n+=e[t];return t===n}function F(e){e.fill(M,148,156);let t=0;for(let n of e)t+=n;for(let n=153;n>=148;n--)e[n]=(t&7)+N,t>>=3;e[154]=0,e[155]=M}var I=256;function ee(e){let t={};x.encode(e.name).length>100&&L(e.name)===null&&(t.path=e.name),e.linkname&&x.encode(e.linkname).length>100&&(t.linkpath=e.linkname),e.uname&&x.encode(e.uname).length>32&&(t.uname=e.uname),e.gname&&x.encode(e.gname).length>32&&(t.gname=e.gname),e.uid!=null&&e.uid>2097151&&(t.uid=String(e.uid)),e.gid!=null&&e.gid>2097151&&(t.gid=String(e.gid)),e.size!=null&&e.size>8589934591&&(t.size=String(e.size)),e.pax&&Object.assign(t,e.pax);let n=Object.entries(t);if(n.length===0)return null;let r=x.encode(n.map(([e,t])=>{let n=`${e}=${t}
2
- `,r=x.encode(n).length+1,i=r+String(r).length;return i=r+String(i).length,`${i} ${n}`}).join(``));return{paxHeader:R({name:S.decode(x.encode(`PaxHeader/${e.name}`).slice(0,100)),size:r.length,type:`pax-header`,mode:420,mtime:e.mtime,uname:e.uname,gname:e.gname,uid:e.uid,gid:e.gid}),paxBody:r}}function L(e){let t=x.encode(e).length;if(t<=100||t>I)return null;for(let t=e.length-1;t>0;t--){if(e[t]!==`/`)continue;let n=e.slice(0,t),r=e.slice(t+1);if(x.encode(n).length<=155&&x.encode(r).length<=100)return{prefix:n,name:r}}return null}function R(e){let t=new Uint8Array(512),n=O(e)?0:e.size??0,r=e.name,i=``;if(!e.pax?.path){let e=L(r);e&&(r=e.name,i=e.prefix)}return C(t,0,100,r),w(t,100,8,e.mode??(e.type===`directory`?493:420)),w(t,108,8,e.uid??0),w(t,116,8,e.gid??0),w(t,124,12,n),w(t,136,12,Math.floor((e.mtime?.getTime()??Date.now())/1e3)),C(t,156,1,_[e.type??`file`]),C(t,157,100,e.linkname),C(t,257,6,`ustar\0`),C(t,263,2,`00`),C(t,265,32,e.uname),C(t,297,32,e.gname),C(t,345,155,i),F(t),t}function z(e,t){if(t&&!P(e))throw Error(`Invalid tar header checksum.`);let n=T(e,156,1),r={name:T(e,0,100),mode:E(e,100,8),uid:D(e,108,8),gid:D(e,116,8),size:D(e,124,12),mtime:new Date(D(e,136,12)*1e3),type:v[n]||`file`,linkname:T(e,157,100)},i=T(e,257,6);return O(r)&&(r.size=0),i.trim()===`ustar`&&(r.uname=T(e,265,32),r.gname=T(e,297,32)),i===`ustar`&&(r.prefix=T(e,345,155)),r}var B={path:[`name`,e=>e],linkpath:[`linkname`,e=>e],size:[`size`,e=>parseInt(e,10)],mtime:[`mtime`,parseFloat],uid:[`uid`,e=>parseInt(e,10)],gid:[`gid`,e=>parseInt(e,10)],uname:[`uname`,e=>e],gname:[`gname`,e=>e]};function te(e){let t=new TextDecoder(`utf-8`),n=Object.create(null),r=Object.create(null),i=0;for(;i<e.length;){let a=e.indexOf(32,i);if(a===-1)break;let o=parseInt(t.decode(e.subarray(i,a)),10);if(Number.isNaN(o)||o===0)break;let s=i+o,[c,l]=t.decode(e.subarray(a+1,s-1)).split(`=`,2);if(c&&l!==void 0&&(r[c]=l,Object.hasOwn(B,c))){let[e,t]=B[c],r=t(l);(typeof r==`string`||!Number.isNaN(r))&&(n[e]=r)}i=s}return Object.keys(r).length>0&&(n.pax=r),n}function V(e,t){t.name!==void 0&&(e.name=t.name),t.linkname!==void 0&&(e.linkname=t.linkname),t.size!==void 0&&(e.size=t.size),t.mtime!==void 0&&(e.mtime=new Date(t.mtime*1e3)),t.uid!==void 0&&(e.uid=t.uid),t.gid!==void 0&&(e.gid=t.gid),t.uname!==void 0&&(e.uname=t.uname),t.gname!==void 0&&(e.gname=t.gname),t.pax&&(e.pax=Object.assign({},e.pax??{},t.pax))}function ne(e){switch(e){case`pax-global-header`:case`pax-header`:return te;case`gnu-long-name`:return e=>({name:T(e,0,e.length)});case`gnu-long-link-name`:return e=>({linkname:T(e,0,e.length)});default:return}}function re(e){let t=R(e),n=ee(e);if(!n)return[t];let r=-n.paxBody.length&511,i=r>0?[y.subarray(0,r)]:[];return[n.paxHeader,n.paxBody,...i,t]}var ie=new Uint8Array(512*2);function ae(e,t,n){let r=null,i=0,a=!1,o=e=>{let n=Error(e);throw t(n),n};return{add(n){a&&o(`No new tar entries after finalize.`),r!==null&&o(`Previous entry must be completed before adding a new one`);let s=O(n)?0:n.size;(!Number.isSafeInteger(s)||s<0)&&o(`Invalid tar entry size.`);try{let t=re({...n,size:s});for(let n of t)e(n);r={...n,size:s},i=0}catch(e){t(e)}},write(n){r||o(`No active tar entry.`),a&&o(`Cannot write data after finalize.`);let s=i+n.length;s>r.size&&o(`"${r.name}" exceeds given size of ${r.size} bytes.`);try{i=s,e(n)}catch(e){t(e)}},endEntry(){r||o(`No active entry to end.`),a&&o(`Cannot end entry after finalize.`);try{i!==r.size&&o(`Size mismatch for "${r.name}".`);let t=-r.size&511;t>0&&e(new Uint8Array(t)),r=null,i=0}catch(e){throw t(e),e}},finalize(){a&&o(`Archive has already been finalized`),r!==null&&o(`Cannot finalize while an entry is still active`);try{e(ie),a=!0,n&&n()}catch(e){t(e)}}}}var H=256;function oe(){let e=Array(H),t=e.length-1,n=0,r=0,i=0,a=a=>{let o=e[n];a===o.length?(e[n]=b,n=n+1&t):e[n]=o.subarray(a),i-=a,i===0&&e.length>H&&(e=Array(H),t=H-1,n=0,r=0)};function o(t,r){if(r){let o=0,s=Math.min(t,i);for(;s>0;){let t=e[n],i=Math.min(s,t.length),c=i===t.length?t:t.subarray(0,i);if(a(i),s-=i,o+=i,!r(c))break}return o}if(i<t)return null;if(t===0)return b;let o=e[n];if(o.length>=t){let e=o.length===t?o:o.subarray(0,t);return a(t),e}let s=new Uint8Array(t),c=0,l=t;for(;l>0;){let t=e[n],r=Math.min(l,t.length);s.set(r===t.length?t:t.subarray(0,r),c),c+=r,l-=r,a(r)}return s}return{push:a=>{if(a.length===0)return;let o=r+1&t;if(o===n){let i=e.length,a=i*2,s=Array(a),c=r-n+i&i-1;if(n<r)for(let t=0;t<c;t++)s[t]=e[n+t];else if(c>0){let t=i-n;for(let r=0;r<t;r++)s[r]=e[n+r];for(let n=0;n<r;n++)s[t+n]=e[n]}e=s,t=a-1,n=0,r=c,o=r+1&t}e[r]=a,r=o,i+=a.length},available:()=>i,peek:r=>{if(i<r)return null;if(r===0)return b;let a=e[n];if(a.length>=r)return a.length===r?a:a.subarray(0,r);let o=new Uint8Array(r),s=0,c=n;for(;s<r;){let n=e[c],i=Math.min(r-s,n.length);i===n.length?o.set(n,s):o.set(n.subarray(0,i),s),s+=i,c=c+1&t}return o},discard:t=>{if(t>i)throw Error(`Too many bytes consumed`);if(t===0)return;let r=t;for(;r>0;){let t=e[n],i=Math.min(r,t.length);a(i),r-=i}},pull:o}}var se=0,U=1,W=Error(`Tar archive is truncated.`);function ce(e={}){let t=e.strict??!1,{available:n,peek:r,push:i,discard:a,pull:o}=oe(),s=se,c=!1,l=!1,u=!1,d=null,f={},p={},m={isEntryActive:()=>s===U,isBodyComplete:()=>!d||d.remaining===0,canFinish:()=>!d||n()>=d.remaining+d.padding,write(e){if(c)throw Error(`Archive already ended.`);i(e)},end(){c=!0},readHeader(){if(s!==se)throw Error(`Cannot read header while an entry is active`);if(!l)for(;!l;){if(n()<512){if(c){if(n()>0&&t)throw W;l=!0;return}return null}let e=r(512);if(le(e)){if(n()<512*2){if(c){if(t)throw W;l=!0;return}return null}if(le(r(512*2).subarray(512))){a(512*2),l=!0,u=!0;return}if(t)throw Error(`Invalid tar header.`);a(512);continue}let i;try{i=z(e,t)}catch(e){if(t)throw e;a(512);continue}let m=ne(i.type);if(m){let e=i.size+(-i.size&511);if(n()<512+e){if(c&&t)throw W;return null}a(512);let r=m(o(e).subarray(0,i.size)),s=i.type===`pax-global-header`?f:p;for(let e in r)s[e]=r[e];continue}a(512);let h=i;return i.prefix&&(h.name=`${i.prefix}/${h.name}`),V(h,f),V(h,p),h.name.endsWith(`/`)&&h.type===`file`&&(h.type=g),p={},d={header:h,remaining:h.size,padding:-h.size&511},s=U,h}},streamBody(e){if(s!==U||!d||d.remaining===0)return 0;let t=Math.min(d.remaining,n());if(t===0)return 0;let r=o(t,e);return d.remaining-=r,r},skipPadding(){if(s!==U||!d)return!0;if(d.remaining>0)throw Error(`Body not fully consumed`);return n()<d.padding?!1:(a(d.padding),d=null,s=se,!0)},skipEntry(){if(s!==U||!d)return!0;let e=Math.min(d.remaining,n());return e>0&&(a(e),d.remaining-=e),d.remaining>0?!1:m.skipPadding()},validateEOF(){if(t){if(!u)throw W;if(n()>0&&o(n()).some(e=>e!==0))throw Error(`Invalid EOF.`)}}};return m}function le(e){if(e.byteOffset%8==0){let t=new BigUint64Array(e.buffer,e.byteOffset,e.length/8);for(let e=0;e<t.length;e++)if(t[e]!==0n)return!1;return!0}for(let t=0;t<e.length;t++)if(e[t]!==0)return!1;return!0}function ue(){return new CompressionStream(`gzip`)}function de(){return new DecompressionStream(`gzip`)}function fe(){let e,t;return{readable:new ReadableStream({start(n){e=n,t=ae(n.enqueue.bind(n),n.error.bind(n),n.close.bind(n))}}),controller:{add(n){let r=O(n);return t.add(n),r&&t.endEntry(),new WritableStream({write(e){t.write(e)},close(){r||t.endEntry()},abort(t){e.error(t)}})},finalize(){t.finalize()},error(t){e.error(t)}}}}async function pe(e){let t=[],n=e.getReader(),r=0;try{for(;;){let{done:e,value:i}=await n.read();if(e)break;t.push(i),r+=i.length}let e=new Uint8Array(r),i=0;for(let n of t)e.set(n,i),i+=n.length;return e}finally{n.releaseLock()}}var me=e=>e.pipeTo(new WritableStream);function he(e={}){let t=ce(e),n=e.strict??!1,r=null,i=null,a=!1,o=!1,s=!1,c=!1,l=()=>{try{i?.close()}catch{}i=null},u=e=>{if(!c){c=!0;try{i?.error(e)}catch{}i=null;try{r.error(e)}catch{}r=null}},d=()=>{if(!c){c=!0,l();try{r.close()}catch{}r=null}},f=()=>{if(n)throw Error(`Tar archive is truncated.`);d()},p=()=>{if(!(a||c||!r)){a=!0;try{for(;;){if(o){s&&(t.validateEOF(),d());break}if(t.isEntryActive()){if(s&&!t.canFinish()){f();break}if(i){if((i.desiredSize??1)<=0)break;if(t.streamBody(e=>(i.enqueue(e),(i.desiredSize??1)>0))===0&&!t.isBodyComplete()){s&&f();break}}else if(!t.skipEntry()){s&&f();break}if(t.isBodyComplete()&&(l(),!t.skipPadding())){s&&f();break}}else{if((r.desiredSize??0)<0)break;let e=t.readHeader();if(e===null){s&&d();break}if(e===void 0){if(s){t.validateEOF(),d();break}o=!0;break}r.enqueue({header:e,body:new ReadableStream({start(t){e.size===0?t.close():i=t},pull:p,cancel(){i=null,p()}})})}}}catch(e){throw u(e),e}finally{a=!1}}};return{readable:new ReadableStream({start(e){r=e},pull:p,cancel(e){e===void 0?d():u(e)}},{highWaterMark:2}),writable:new WritableStream({write(e){try{if(o&&n&&e.some(e=>e!==0))throw Error(`Invalid EOF.`);t.write(e),p()}catch(e){throw u(e),e}},close(){try{s=!0,t.end(),p()}catch(e){throw u(e),e}},abort(e){u(e)}})}}async function ge(e){let{readable:t,controller:n}=fe();return await(async()=>{for(let t of e){let e=n.add(t.header),r=`body`in t?t.body:t.data;if(!r){await e.close();continue}if(r instanceof ReadableStream)await r.pipeTo(e);else if(r instanceof Blob)await r.stream().pipeTo(e);else try{let t=await k(r);if(t.length>0){let n=e.getWriter();await n.write(t),await n.close()}else await e.close()}catch{throw TypeError(`Unsupported content type for entry "${t.header.name}".`)}}})().then(()=>n.finalize()).catch(e=>n.error(e)),new Uint8Array(await pe(t))}async function _e(e,t={}){let n=e instanceof ReadableStream?e:new ReadableStream({start(t){t.enqueue(e instanceof Uint8Array?e:new Uint8Array(e)),t.close()}}),r=[],i=n.pipeThrough(he(t));for await(let e of i){let n;try{n=j(e.header,t)}catch(t){throw await e.body.cancel(),t}if(n===null){await me(e.body);continue}O(n)?(await me(e.body),r.push({header:n})):r.push({header:n,data:await pe(e.body)})}return r}var ve=(()=>{let e=new Uint32Array(256);for(let t=0;t<256;t++){let n=t<<24;for(let e=0;e<8;e++)n=n&2147483648?n<<1^79764919:n<<1;e[t]=n>>>0}return e})();function ye(e,t){return(e<<8^ve[(e>>>24^t)&255])>>>0}var be=class{buffer=[];current=0;bitCount=0;writeBits(e,t){for(let n=e-1;n>=0;n--)this.current=this.current<<1|t>>>n&1,this.bitCount++,this.bitCount===8&&(this.buffer.push(this.current),this.current=0,this.bitCount=0)}writeBit(e){this.current=this.current<<1|e&1,this.bitCount++,this.bitCount===8&&(this.buffer.push(this.current),this.current=0,this.bitCount=0)}finish(){return this.bitCount>0&&this.buffer.push(this.current<<8-this.bitCount),new Uint8Array(this.buffer)}};function xe(e){let t=[],n=0;for(;n<e.length;){let r=e[n],i=1;for(;n+i<e.length&&e[n+i]===r&&i<255;)i++;i>=4?(t.push(r,r,r,r),t.push(i-4),n+=i):(t.push(r),n++)}return new Uint8Array(t)}function Se(e){let t=e.length;if(t===0)return{transformed:new Uint8Array,pointer:0};let n=Ce(e),r=new Uint8Array(t),i=0;for(let a=0;a<t;a++)n[a]===0?(i=a,r[a]=e[t-1]):r[a]=e[n[a]-1];return{transformed:r,pointer:i}}function Ce(e){let t=e.length,n=new Int32Array(t),r=new Int32Array(t);for(let i=0;i<t;i++)n[i]=i,r[i]=e[i];for(let e=1;e<t;e*=2){let i=r.slice();n.sort((n,r)=>i[n]===i[r]?i[(n+e)%t]-i[(r+e)%t]:i[n]-i[r]),r[n[0]]=0;for(let a=1;a<t;a++)i[n[a]]===i[n[a-1]]&&i[(n[a]+e)%t]===i[(n[a-1]+e)%t]?r[n[a]]=r[n[a-1]]:r[n[a]]=r[n[a-1]]+1;if(r[n[t-1]]===t-1)break}return n}function we(e,t){let n=[];for(let e=0;e<256;e++)t[e]&&n.push(e);let r=Array(256).fill(-1);for(let e=0;e<n.length;e++)r[n[e]]=e;let i=new Uint16Array(e.length),a=n.slice();for(let t=0;t<e.length;t++){let n=e[t],r=0;for(;a[r]!==n;)r++;if(i[t]=r,r>0){let e=a[r];for(let e=r;e>0;e--)a[e]=a[e-1];a[0]=e}}return{encoded:i,length:e.length}}function Te(e,t,n){let r=n+1,i=[],a=0;for(;a<t;)if(e[a]===0){let n=0;for(;a<t&&e[a]===0;)n++,a++;let r=n;for(;r>0;)r--,r&1?i.push(1):i.push(0),r>>>=1}else i.push(e[a]+1),a++;i.push(r);let o=new Uint16Array(i.length);for(let e=0;e<i.length;e++)o[e]=i[e];return{symbols:o,length:i.length,eob:r}}function Ee(e,t,n){if(t<=1){let t=Array(e.length).fill(0);for(let n=0;n<e.length;n++)e[n]>0&&(t[n]=1);return{codeLengths:t,maxLen:1,minLen:1}}let r=[];for(let t=0;t<e.length;t++)e[t]>0&&r.push({freq:e[t],symbol:t,left:null,right:null});if(r.length===0)return{codeLengths:Array(e.length).fill(0),maxLen:0,minLen:0};if(r.length===1){let t=Array(e.length).fill(0);return t[r[0].symbol]=1,{codeLengths:t,maxLen:1,minLen:1}}for(;r.length>1;){r.sort((e,t)=>e.freq-t.freq);let e=r.shift(),t=r.shift();r.push({freq:e.freq+t.freq,symbol:-1,left:e,right:t})}let i=Array(e.length).fill(0);function a(e,t){if(!e.left&&!e.right){i[e.symbol]=t;return}e.left&&a(e.left,t+1),e.right&&a(e.right,t+1)}a(r[0],0);let o=!0;for(;o;){o=!1;for(let e=0;e<i.length;e++)i[e]>n&&(i[e]=n,o=!0);if(o){let e=0;for(let t=0;t<i.length;t++)i[t]>0&&(e+=1/(1<<i[t]));if(e>1)for(let t=1;t<n&&e>1;t++)for(let n=0;n<i.length&&e>1;n++)i[n]===t&&(i[n]++,e-=1/(1<<t)-1/(1<<t+1));o=!1;for(let e=0;e<i.length;e++)if(i[e]>n){o=!0;break}}}let s=n,c=0;for(let e=0;e<i.length;e++)i[e]>0&&(i[e]<s&&(s=i[e]),i[e]>c&&(c=i[e]));return{codeLengths:i,maxLen:c,minLen:s}}function De(e,t){let n=Array(t).fill(0),r=e.slice(0,t),i=Math.max(...r,0),a=Array(i+1).fill(0);for(let e=0;e<t;e++)r[e]>0&&a[r[e]]++;let o=Array(i+1).fill(0),s=0;for(let e=1;e<=i;e++)s=s+a[e-1]<<1,o[e]=s;for(let e=0;e<t;e++)r[e]>0&&(n[e]=o[r[e]]++);return{codes:n,lengths:r}}function Oe(e,t,n){e.writeBits(24,3227993),e.writeBits(24,2511705),e.writeBits(32,n),e.writeBit(0);let{transformed:r,pointer:i}=Se(xe(t));e.writeBits(24,i);let a=Array(256).fill(!1);for(let e=0;e<r.length;e++)a[r[e]]=!0;let o=Array(16).fill(!1);for(let e=0;e<16;e++)for(let t=0;t<16;t++)if(a[e*16+t]){o[e]=!0;break}for(let t=0;t<16;t++)e.writeBit(o[t]?1:0);for(let t=0;t<16;t++)if(o[t])for(let n=0;n<16;n++)e.writeBit(a[t*16+n]?1:0);let s=0;for(let e=0;e<256;e++)a[e]&&s++;let{encoded:c,length:l}=we(r,a),{symbols:u,length:d}=Te(c,l,s),f=s+2,p=Math.ceil(d/50),m;m=d<200?2:d<600?3:d<1200?4:d<2400?5:6,m>p&&(m=Math.max(2,p));let h=[];for(let e=0;e<m;e++)h.push(Array(f).fill(0));let g=new Int32Array(p);for(let e=0;e<p;e++)g[e]=e%m;for(let e=0;e<p;e++){let t=e*50,n=Math.min(t+50,d),r=g[e];for(let e=t;e<n;e++)h[r][u[e]]++}function _(e){for(let t=0;t<f;t++)e[t]<1&&(e[t]=1)}let v=[];for(let e=0;e<m;e++)_(h[e]),v.push(Ee(h[e],f,20));for(let e=0;e<4;e++){for(let e=0;e<m;e++)h[e].fill(0);for(let e=0;e<p;e++){let t=e*50,n=Math.min(t+50,d),r=0,i=1/0;for(let e=0;e<m;e++){let a=0;for(let r=t;r<n;r++)a+=v[e].codeLengths[u[r]]||20;a<i&&(i=a,r=e)}g[e]=r;for(let e=t;e<n;e++)h[r][u[e]]++}for(let e=0;e<m;e++)_(h[e]),v[e]=Ee(h[e],f,20)}e.writeBits(3,m),e.writeBits(15,p);let y=[],b=[];for(let e=0;e<m;e++)b.push(e);for(let e=0;e<p;e++){let t=g[e],n=0;for(;b[n]!==t;)n++;if(y.push(n),n>0){let e=b[n];for(let e=n;e>0;e--)b[e]=b[e-1];b[0]=e}}for(let t=0;t<p;t++){for(let n=0;n<y[t];n++)e.writeBit(1);e.writeBit(0)}for(let t=0;t<m;t++){let n=v[t].codeLengths,r=n[0];e.writeBits(5,r);for(let t=0;t<f;t++){let i=n[t];for(;r<i;)e.writeBit(1),e.writeBit(0),r++;for(;r>i;)e.writeBit(1),e.writeBit(1),r--;e.writeBit(0)}}for(let e=0;e<m;e++){let{codes:t,lengths:n}=De(v[e].codeLengths,f);v[e]=Object.assign(v[e],{_codes:t,_lengths:n})}let x=0,S=0;for(let t=0;t<d;t++){(S===0||S>=50)&&(t>0&&x++,S=0);let n=v[g[x]],r=u[t],i=n._lengths[r],a=n._codes[r];i>0&&e.writeBits(i,a),S++}}var ke=10*1024*1024;function Ae(e,t=9,n=ke){if(t<1||t>9)throw Error(`Block size level must be 1-9`);if(e.length>n)throw Error(`Input too large for bzip2 compression (${e.length} bytes, max ${n})`);let r=t*1e5,i=new be;i.writeBits(8,66),i.writeBits(8,90),i.writeBits(8,104),i.writeBits(8,48+t);let a=0,o=0;for(;o<e.length;){let t=Math.min(o+r,e.length),n=e.subarray(o,t),s=4294967295;for(let e=0;e<n.length;e++)s=ye(s,n[e]);s=~s>>>0,a=(a<<1|a>>>31)>>>0,a=(a^s)>>>0,Oe(i,n,s),o=t}return i.writeBits(24,1536581),i.writeBits(24,3690640),i.writeBits(32,a),i.finish()}var G=null,K=null;async function je(){if(G)return G;if(K)throw K;try{return G=await r.runTrustedAsync(()=>import(`./lzma-NI_6IIcm.mjs`)),G}catch{throw K=Error(`xz compression requires node-liblzma which failed to load. Install liblzma-dev (apt) or xz (brew) and reinstall dependencies.`),K}}var q=null,J=null;async function Me(){if(q)return q;if(J)throw J;try{return q=await r.runTrustedAsync(()=>import(`./lib-BKCY8vrL.mjs`).then(t=>e(t.default,1))),q}catch{throw J=Error(`zstd compression requires @mongodb-js/zstd which is not installed. Install it with: npm install @mongodb-js/zstd`),J}}var Y=100*1024*1024,Ne=512,Pe=1e4;function Fe(e){let t=`file`;e.isDirectory?t=`directory`:e.isSymlink&&(t=`symlink`);let n=e.name;e.isDirectory&&!n.endsWith(`/`)&&(n+=`/`);let r;e.content!==void 0&&(r=typeof e.content==`string`?new TextEncoder().encode(e.content):e.content);let i=e.isDirectory||e.isSymlink?0:r?.length??0;return{header:{name:n,mode:e.mode??(e.isDirectory?493:420),uid:e.uid??0,gid:e.gid??0,size:i,mtime:e.mtime??new Date,type:t,linkname:e.linkTarget??``,uname:`user`,gname:`user`},body:r}}async function X(e){return ge(e.map(Fe))}async function Ie(e){let t=await X(e),n=new ReadableStream({start(e){e.enqueue(t),e.close()}}).pipeThrough(ue()).getReader(),r=[];for(;;){let{done:e,value:t}=await n.read();if(e)break;r.push(t)}let i=r.reduce((e,t)=>e+t.length,0),a=new Uint8Array(i),o=0;for(let e of r)a.set(e,o),o+=e.length;return a}async function Z(e){if(e.length>Y)return{entries:[],error:`Archive too large (max ${Y} bytes)`};if(e.length<Ne||e.length%Ne!==0)return{entries:[],error:`Invalid tar archive format`};try{let t=await _e(e),n=[];for(let e of t){if(n.length>=Pe)return{entries:n,error:`Too many entries (max ${Pe})`};let t=`file`;switch(e.header.type){case`directory`:t=`directory`;break;case`symlink`:t=`symlink`;break;case`link`:t=`hardlink`;break;case`file`:t=`file`;break;default:t=`other`}n.push({name:e.header.name,mode:e.header.mode??420,uid:e.header.uid??0,gid:e.header.gid??0,size:e.header.size,mtime:e.header.mtime??new Date,type:t,linkTarget:e.header.linkname||void 0,content:e.data??new Uint8Array})}return{entries:n}}catch(e){return{entries:[],error:e instanceof Error?e.message:`Unknown error`}}}async function Le(e){if(e.length>Y)return{entries:[],error:`Archive too large (max ${Y} bytes)`};try{let t=new ReadableStream({start(t){t.enqueue(e),t.close()}}).pipeThrough(de()).getReader(),n=[],r=0;for(;;){let{done:e,value:i}=await t.read();if(e)break;if(r+=i.length,r>Y)return await t.cancel(),{entries:[],error:`Decompressed archive too large (max ${Y} bytes)`};n.push(i)}let i=new Uint8Array(r),a=0;for(let e of n)i.set(e,a),a+=e.length;return Z(i)}catch(e){return{entries:[],error:`Decompression failed: ${e instanceof Error?e.message:`Unknown error`}`}}}function Re(e){return e.length>=2&&e[0]===31&&e[1]===139}function ze(e){return e.length>=3&&e[0]===66&&e[1]===90&&e[2]===104}function Be(e){return e.length>=6&&e[0]===253&&e[1]===55&&e[2]===122&&e[3]===88&&e[4]===90&&e[5]===0}async function Ve(e){let t=f.default.decode(Buffer.from(e));return new Uint8Array(t)}async function He(e){return Ae(e,9)}async function Ue(e){let t=(await je()).unxzSync(Buffer.from(e));return new Uint8Array(t)}async function We(e){let t=(await je()).xzSync(Buffer.from(e));return new Uint8Array(t)}async function Ge(e){return He(await X(e))}async function Ke(e,t){if(!t?.allowNativeCodecs)throw Error(`xz compression is disabled by default (native codec risk). Pass { allowNativeCodecs: true } to opt in.`);return We(await X(e))}async function qe(e){if(e.length>Y)return{entries:[],error:`Archive too large (max ${Y} bytes)`};try{let t=await Ve(e);return t.length>Y?{entries:[],error:`Decompressed archive too large (max ${Y} bytes)`}:Z(t)}catch(e){return{entries:[],error:e instanceof Error?e.message:`Unknown error`}}}async function Je(e,t){if(!t?.allowNativeCodecs)return{entries:[],error:`xz decompression is disabled by default (native codec risk). Pass { allowNativeCodecs: true } to opt in, or decompress the archive externally before extraction.`};if(e.length>Y)return{entries:[],error:`Archive too large (max ${Y} bytes)`};try{let t=await Ue(e);return t.length>Y?{entries:[],error:`Decompressed archive too large (max ${Y} bytes)`}:Z(t)}catch(e){return{entries:[],error:e instanceof Error?e.message:`Unknown error`}}}function Ye(e){return e.length>=4&&e[0]===40&&e[1]===181&&e[2]===47&&e[3]===253}async function Xe(e){let t=await(await Me()).compress(Buffer.from(e),3);return new Uint8Array(t)}async function Ze(e){let t=await(await Me()).decompress(Buffer.from(e));return new Uint8Array(t)}async function Qe(e,t){if(!t?.allowNativeCodecs)throw Error(`zstd compression is disabled by default (native codec risk). Pass { allowNativeCodecs: true } to opt in.`);return Xe(await X(e))}async function $e(e,t){if(!t?.allowNativeCodecs)return{entries:[],error:`zstd decompression is disabled by default (native codec risk). Pass { allowNativeCodecs: true } to opt in, or decompress the archive externally before extraction.`};if(e.length>Y)return{entries:[],error:`Archive too large (max ${Y} bytes)`};try{let t=await Ze(e);return t.length>Y?{entries:[],error:`Decompressed archive too large (max ${Y} bytes)`}:Z(t)}catch(e){return{entries:[],error:e instanceof Error?e.message:`Unknown error`}}}function et(e){let t={create:!1,append:!1,update:!1,extract:!1,list:!1,file:``,autoCompress:!1,gzip:!1,bzip2:!1,xz:!1,zstd:!1,verbose:!1,toStdout:!1,keepOldFiles:!1,touch:!1,directory:``,preserve:!1,absoluteNames:!1,strip:0,exclude:[],filesFrom:``,excludeFrom:``,wildcards:!1},n=[],r=0;for(;r<e.length;){let a=e[r];if(a.startsWith(`-`)&&!a.startsWith(`--`)&&a.length>2){if(/^-\d+$/.test(a)){n.push(a),r++;continue}for(let n=1;n<a.length;n++){let o=a[n];switch(o){case`c`:t.create=!0;break;case`r`:t.append=!0;break;case`u`:t.update=!0;break;case`x`:t.extract=!0;break;case`t`:t.list=!0;break;case`a`:t.autoCompress=!0;break;case`z`:t.gzip=!0;break;case`j`:t.bzip2=!0;break;case`J`:t.xz=!0;break;case`v`:t.verbose=!0;break;case`O`:t.toStdout=!0;break;case`k`:t.keepOldFiles=!0;break;case`m`:t.touch=!0;break;case`p`:t.preserve=!0;break;case`P`:t.absoluteNames=!0;break;case`f`:if(n<a.length-1)t.file=a.substring(n+1),n=a.length;else{if(r++,r>=e.length)return{ok:!1,error:{stdout:``,stderr:`tar: option requires an argument -- 'f'
1
+ import{s as e,t}from"./chunk-C94x7I9S.mjs";import{t as n}from"./chunk-B74TABJS-D6QwMpPz.mjs";import{t as r}from"./chunk-5QMZ5MUS-DvwGjmAW.mjs";import{n as i,r as a,t as o}from"./chunk-74CEPOFO-smMq6g2B.mjs";import{t as s}from"./chunk-X2AJGDEF-13z4tBy7.mjs";var c=t(((e,t)=>{var n=[0,1,3,7,15,31,63,127,255],r=function(e){this.stream=e,this.bitOffset=0,this.curByte=0,this.hasByte=!1};r.prototype._ensureByte=function(){this.hasByte||=(this.curByte=this.stream.readByte(),!0)},r.prototype.read=function(e){for(var t=0;e>0;){this._ensureByte();var r=8-this.bitOffset;if(e>=r)t<<=r,t|=n[r]&this.curByte,this.hasByte=!1,this.bitOffset=0,e-=r;else{t<<=e;var i=r-e;t|=(this.curByte&n[e]<<i)>>i,this.bitOffset+=e,e=0}}return t},r.prototype.seek=function(e){var t=e%8,n=(e-t)/8;this.bitOffset=t,this.stream.seek(n),this.hasByte=!1},r.prototype.pi=function(){var e=new Buffer(6),t;for(t=0;t<e.length;t++)e[t]=this.read(8);return e.toString(`hex`)},t.exports=r})),l=t(((e,t)=>{var n=function(){};n.prototype.readByte=function(){throw Error(`abstract method readByte() not implemented`)},n.prototype.read=function(e,t,n){for(var r=0;r<n;){var i=this.readByte();if(i<0)return r===0?-1:r;e[t++]=i,r++}return r},n.prototype.seek=function(e){throw Error(`abstract method seek() not implemented`)},n.prototype.writeByte=function(e){throw Error(`abstract method readByte() not implemented`)},n.prototype.write=function(e,t,n){var r;for(r=0;r<n;r++)this.writeByte(e[t++]);return n},n.prototype.flush=function(){},t.exports=n})),u=t(((e,t)=>{t.exports=(function(){var e=new Uint32Array([0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188]);return function(){var t=4294967295;this.getCRC=function(){return~t>>>0},this.updateCRC=function(n){t=t<<8^e[(t>>>24^n)&255]},this.updateCRCRun=function(n,r){for(;r-- >0;)t=t<<8^e[(t>>>24^n)&255]}}})()})),d=t(((e,t)=>{t.exports={name:`seek-bzip`,version:`2.0.0`,contributors:[`C. Scott Ananian (http://cscott.net)`,`Eli Skeggs`,`Kevin Kwok`,`Rob Landley (http://landley.net)`],description:`a pure-JavaScript Node.JS module for random-access decoding bzip2 data`,main:`./lib/index.js`,repository:{type:`git`,url:`https://github.com/cscott/seek-bzip.git`},license:`MIT`,bin:{"seek-bunzip":`./bin/seek-bunzip`,"seek-table":`./bin/seek-bzip-table`},directories:{test:`test`},dependencies:{commander:`^6.0.0`},devDependencies:{fibers:`^5.0.0`,mocha:`^8.1.0`},scripts:{test:`mocha`}}})),f=e(t(((e,t)=>{var n=c(),r=l(),i=u(),a=d(),o=20,s=258,f=0,p=1,m=2,h=6,g=50,_=`314159265359`,v=`177245385090`,y=function(e,t){var n=e[t],r;for(r=t;r>0;r--)e[r]=e[r-1];return e[0]=n,n},b={OK:0,LAST_BLOCK:-1,NOT_BZIP_DATA:-2,UNEXPECTED_INPUT_EOF:-3,UNEXPECTED_OUTPUT_EOF:-4,DATA_ERROR:-5,OUT_OF_MEMORY:-6,OBSOLETE_INPUT:-7,END_OF_BLOCK:-8},x={};x[b.LAST_BLOCK]=`Bad file checksum`,x[b.NOT_BZIP_DATA]=`Not bzip data`,x[b.UNEXPECTED_INPUT_EOF]=`Unexpected input EOF`,x[b.UNEXPECTED_OUTPUT_EOF]=`Unexpected output EOF`,x[b.DATA_ERROR]=`Data error`,x[b.OUT_OF_MEMORY]=`Out of memory`,x[b.OBSOLETE_INPUT]=`Obsolete (pre 0.9.5) bzip format not supported.`;var S=function(e,t){var n=x[e]||`unknown error`;t&&(n+=`: `+t);var r=TypeError(n);throw r.errorCode=e,r},C=function(e,t){this.writePos=this.writeCurrent=this.writeCount=0,this._start_bunzip(e,t)};C.prototype._init_block=function(){return this._get_next_block()?(this.blockCRC=new i,!0):(this.writeCount=-1,!1)},C.prototype._start_bunzip=function(e,t){var r=new Buffer(4);(e.read(r,0,4)!==4||String.fromCharCode(r[0],r[1],r[2])!==`BZh`)&&S(b.NOT_BZIP_DATA,`bad magic`);var i=r[3]-48;(i<1||i>9)&&S(b.NOT_BZIP_DATA,`level out of range`),this.reader=new n(e),this.dbufSize=1e5*i,this.nextoutput=0,this.outputStream=t,this.streamCRC=0},C.prototype._get_next_block=function(){var e,t,n,r=this.reader,i=r.pi();if(i===v)return!1;i!==_&&S(b.NOT_BZIP_DATA),this.targetBlockCRC=r.read(32)>>>0,this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0,r.read(1)&&S(b.OBSOLETE_INPUT);var a=r.read(24);a>this.dbufSize&&S(b.DATA_ERROR,`initial position out of bounds`);var c=r.read(16),l=new Buffer(256),u=0;for(e=0;e<16;e++)if(c&1<<15-e){var d=e*16;for(n=r.read(16),t=0;t<16;t++)n&1<<15-t&&(l[u++]=d+t)}var x=r.read(3);(x<m||x>h)&&S(b.DATA_ERROR);var C=r.read(15);C===0&&S(b.DATA_ERROR);var w=new Buffer(256);for(e=0;e<x;e++)w[e]=e;var T=new Buffer(C);for(e=0;e<C;e++){for(t=0;r.read(1);t++)t>=x&&S(b.DATA_ERROR);T[e]=y(w,t)}var E=u+2,D=[],O;for(t=0;t<x;t++){var k=new Buffer(E),A=new Uint16Array(o+1);for(c=r.read(5),e=0;e<E;e++){for(;(c<1||c>o)&&S(b.DATA_ERROR),r.read(1);)r.read(1)?c--:c++;k[e]=c}var j=M=k[0],M;for(e=1;e<E;e++)k[e]>M?M=k[e]:k[e]<j&&(j=k[e]);O={},D.push(O),O.permute=new Uint16Array(s),O.limit=new Uint32Array(o+2),O.base=new Uint32Array(o+1),O.minLen=j,O.maxLen=M;var N=0;for(e=j;e<=M;e++)for(A[e]=O.limit[e]=0,c=0;c<E;c++)k[c]===e&&(O.permute[N++]=c);for(e=0;e<E;e++)A[k[e]]++;for(N=c=0,e=j;e<M;e++)N+=A[e],O.limit[e]=N-1,N<<=1,c+=A[e],O.base[e+1]=N-c;O.limit[M+1]=Number.MAX_VALUE,O.limit[M]=N+A[M]-1,O.base[j]=0}var P=new Uint32Array(256);for(e=0;e<256;e++)w[e]=e;var F=0,I=0,ee=0,L,R=this.dbuf=new Uint32Array(this.dbufSize);for(E=0;;){for(E--||(E=g-1,ee>=C&&S(b.DATA_ERROR),O=D[T[ee++]]),e=O.minLen,t=r.read(e);e>O.maxLen&&S(b.DATA_ERROR),!(t<=O.limit[e]);e++)t=t<<1|r.read(1);t-=O.base[e],(t<0||t>=s)&&S(b.DATA_ERROR);var z=O.permute[t];if(z===f||z===p){F||(F=1,c=0),z===f?c+=F:c+=2*F,F<<=1;continue}if(F)for(F=0,I+c>this.dbufSize&&S(b.DATA_ERROR),L=l[w[0]],P[L]+=c;c--;)R[I++]=L;if(z>u)break;I>=this.dbufSize&&S(b.DATA_ERROR),e=z-1,L=y(w,e),L=l[L],P[L]++,R[I++]=L}for((a<0||a>=I)&&S(b.DATA_ERROR),t=0,e=0;e<256;e++)n=t+P[e],P[e]=t,t=n;for(e=0;e<I;e++)L=R[e]&255,R[P[L]]|=e<<8,P[L]++;var B=0,te=0,V=0;return I&&(B=R[a],te=B&255,B>>=8,V=-1),this.writePos=B,this.writeCurrent=te,this.writeCount=I,this.writeRun=V,!0},C.prototype._read_bunzip=function(e,t){var n,r,i;if(this.writeCount<0)return 0;var a=this.dbuf,o=this.writePos,s=this.writeCurrent,c=this.writeCount;this.outputsize;for(var l=this.writeRun;c;){for(c--,r=s,o=a[o],s=o&255,o>>=8,l++===3?(n=s,i=r,s=-1):(n=1,i=s),this.blockCRC.updateCRCRun(i,n);n--;)this.outputStream.writeByte(i),this.nextoutput++;s!=r&&(l=0)}return this.writeCount=c,this.blockCRC.getCRC()!==this.targetBlockCRC&&S(b.DATA_ERROR,`Bad block CRC (got `+this.blockCRC.getCRC().toString(16)+` expected `+this.targetBlockCRC.toString(16)+`)`),this.nextoutput};var w=function(e){if(`readByte`in e)return e;var t=new r;return t.pos=0,t.readByte=function(){return e[this.pos++]},t.seek=function(e){this.pos=e},t.eof=function(){return this.pos>=e.length},t},T=function(e){var t=new r,n=!0;if(e)if(typeof e==`number`)t.buffer=new Buffer(e),n=!1;else if(`writeByte`in e)return e;else t.buffer=e,n=!1;else t.buffer=new Buffer(16384);return t.pos=0,t.writeByte=function(e){if(n&&this.pos>=this.buffer.length){var t=new Buffer(this.buffer.length*2);this.buffer.copy(t),this.buffer=t}this.buffer[this.pos++]=e},t.getBuffer=function(){if(this.pos!==this.buffer.length){if(!n)throw TypeError(`outputsize does not match decoded input`);var e=new Buffer(this.pos);this.buffer.copy(e,0,0,this.pos),this.buffer=e}return this.buffer},t._coerced=!0,t};C.Err=b,C.decode=function(e,t,n){for(var r=w(e),i=T(t),a=new C(r,i);!(`eof`in r&&r.eof());)if(a._init_block())a._read_bunzip();else{var o=a.reader.read(32)>>>0;if(o!==a.streamCRC&&S(b.DATA_ERROR,`Bad stream CRC (got `+a.streamCRC.toString(16)+` expected `+o.toString(16)+`)`),n&&`eof`in r&&!r.eof())a._start_bunzip(r,i);else break}if(`getBuffer`in i)return i.getBuffer()},C.decodeBlock=function(e,t,n){var r=w(e),a=T(n),o=new C(r,a);if(o.reader.seek(t),o._get_next_block()&&(o.blockCRC=new i,o.writeCopies=0,o._read_bunzip()),`getBuffer`in a)return a.getBuffer()},C.table=function(e,t,n){var i=new r;i.delegate=w(e),i.pos=0,i.readByte=function(){return this.pos++,this.delegate.readByte()},i.delegate.eof&&(i.eof=i.delegate.eof.bind(i.delegate));var a=new r;a.pos=0,a.writeByte=function(){this.pos++};for(var o=new C(i,a),s=o.dbufSize;!(`eof`in i&&i.eof());){var c=i.pos*8+o.reader.bitOffset;if(o.reader.hasByte&&(c-=8),o._init_block()){var l=a.pos;o._read_bunzip(),t(c,a.pos-l)}else if(o.reader.read(32),n&&`eof`in i&&!i.eof())o._start_bunzip(i,a),console.assert(o.dbufSize===s,`shouldn't change block size within multistream file`);else break}},C.Stream=r,C.version=a.version,C.license=a.license,t.exports=C}))(),1),p=`file`,m=`link`,h=`symlink`,g=`directory`,_={file:`0`,link:`1`,symlink:`2`,"character-device":`3`,"block-device":`4`,directory:`5`,fifo:`6`,"pax-header":`x`,"pax-global-header":`g`,"gnu-long-name":`L`,"gnu-long-link-name":`K`},v={0:p,1:m,2:h,3:`character-device`,4:`block-device`,5:g,6:`fifo`,x:`pax-header`,g:`pax-global-header`,L:`gnu-long-name`,K:`gnu-long-link-name`},y=new Uint8Array(512),b=new Uint8Array,x=new TextEncoder,S=new TextDecoder;function C(e,t,n,r){r&&x.encodeInto(r,e.subarray(t,t+n))}function w(e,t,n,r){if(r===void 0)return;let i=r.toString(8).padStart(n-1,`0`);x.encodeInto(i,e.subarray(t,t+n-1))}function T(e,t,n){let r=e.indexOf(0,t),i=r===-1||r>t+n?t+n:r;return S.decode(e.subarray(t,i))}function E(e,t,n){let r=0,i=t+n;for(let n=t;n<i;n++){let t=e[n];if(t===0)break;t!==32&&(r=r*8+(t-48))}return r}function D(e,t,n){if(e[t]&128){let r=0;r=e[t]&127;for(let i=1;i<n;i++)r=r*256+e[t+i];if(!Number.isSafeInteger(r))throw Error(`TAR number too large`);return r}return E(e,t,n)}var O=e=>e.type===`directory`||e.type===`symlink`||e.type===`link`||e.type===`character-device`||e.type===`block-device`||e.type===`fifo`;async function k(e){if(e==null)return b;if(e instanceof Uint8Array)return e;if(typeof e==`string`)return x.encode(e);if(e instanceof ArrayBuffer)return new Uint8Array(e);if(e instanceof Blob)return new Uint8Array(await e.arrayBuffer());throw TypeError(`Unsupported content type for entry body.`)}var A=(e,t)=>{let n=e.split(`/`).filter(Boolean);return t>=n.length?``:n.slice(t).join(`/`)};function j(e,t){let{strip:n,filter:r,map:i}=t;if(!n&&!r&&!i)return e;let a={...e};if(n&&n>0){let e=A(a.name,n);if(!e)return null;if(a.name=a.type===`directory`&&!e.endsWith(`/`)?`${e}/`:e,a.linkname){let e=a.linkname.startsWith(`/`);if(e||a.type===`link`){let t=A(a.linkname,n);a.linkname=e?`/${t}`||`/`:t}}}if(r?.(a)===!1)return null;let o=i?i(a):a;return o&&(!o.name||!o.name.trim()||o.name===`.`||o.name===`/`)?null:o}var M=32,N=48;function P(e){let t=E(e,148,8),n=0;for(let t=0;t<e.length;t++)t>=148&&t<156?n+=M:n+=e[t];return t===n}function F(e){e.fill(M,148,156);let t=0;for(let n of e)t+=n;for(let n=153;n>=148;n--)e[n]=(t&7)+N,t>>=3;e[154]=0,e[155]=M}var I=256;function ee(e){let t={};x.encode(e.name).length>100&&L(e.name)===null&&(t.path=e.name),e.linkname&&x.encode(e.linkname).length>100&&(t.linkpath=e.linkname),e.uname&&x.encode(e.uname).length>32&&(t.uname=e.uname),e.gname&&x.encode(e.gname).length>32&&(t.gname=e.gname),e.uid!=null&&e.uid>2097151&&(t.uid=String(e.uid)),e.gid!=null&&e.gid>2097151&&(t.gid=String(e.gid)),e.size!=null&&e.size>8589934591&&(t.size=String(e.size)),e.pax&&Object.assign(t,e.pax);let n=Object.entries(t);if(n.length===0)return null;let r=x.encode(n.map(([e,t])=>{let n=`${e}=${t}
2
+ `,r=x.encode(n).length+1,i=r+String(r).length;return i=r+String(i).length,`${i} ${n}`}).join(``));return{paxHeader:R({name:S.decode(x.encode(`PaxHeader/${e.name}`).slice(0,100)),size:r.length,type:`pax-header`,mode:420,mtime:e.mtime,uname:e.uname,gname:e.gname,uid:e.uid,gid:e.gid}),paxBody:r}}function L(e){let t=x.encode(e).length;if(t<=100||t>I)return null;for(let t=e.length-1;t>0;t--){if(e[t]!==`/`)continue;let n=e.slice(0,t),r=e.slice(t+1);if(x.encode(n).length<=155&&x.encode(r).length<=100)return{prefix:n,name:r}}return null}function R(e){let t=new Uint8Array(512),n=O(e)?0:e.size??0,r=e.name,i=``;if(!e.pax?.path){let e=L(r);e&&(r=e.name,i=e.prefix)}return C(t,0,100,r),w(t,100,8,e.mode??(e.type===`directory`?493:420)),w(t,108,8,e.uid??0),w(t,116,8,e.gid??0),w(t,124,12,n),w(t,136,12,Math.floor((e.mtime?.getTime()??Date.now())/1e3)),C(t,156,1,_[e.type??`file`]),C(t,157,100,e.linkname),C(t,257,6,`ustar\0`),C(t,263,2,`00`),C(t,265,32,e.uname),C(t,297,32,e.gname),C(t,345,155,i),F(t),t}function z(e,t){if(t&&!P(e))throw Error(`Invalid tar header checksum.`);let n=T(e,156,1),r={name:T(e,0,100),mode:E(e,100,8),uid:D(e,108,8),gid:D(e,116,8),size:D(e,124,12),mtime:new Date(D(e,136,12)*1e3),type:v[n]||`file`,linkname:T(e,157,100)},i=T(e,257,6);return O(r)&&(r.size=0),i.trim()===`ustar`&&(r.uname=T(e,265,32),r.gname=T(e,297,32)),i===`ustar`&&(r.prefix=T(e,345,155)),r}var B={path:[`name`,e=>e],linkpath:[`linkname`,e=>e],size:[`size`,e=>parseInt(e,10)],mtime:[`mtime`,parseFloat],uid:[`uid`,e=>parseInt(e,10)],gid:[`gid`,e=>parseInt(e,10)],uname:[`uname`,e=>e],gname:[`gname`,e=>e]};function te(e){let t=new TextDecoder(`utf-8`),n=Object.create(null),r=Object.create(null),i=0;for(;i<e.length;){let a=e.indexOf(32,i);if(a===-1)break;let o=parseInt(t.decode(e.subarray(i,a)),10);if(Number.isNaN(o)||o===0)break;let s=i+o,[c,l]=t.decode(e.subarray(a+1,s-1)).split(`=`,2);if(c&&l!==void 0&&(r[c]=l,Object.hasOwn(B,c))){let[e,t]=B[c],r=t(l);(typeof r==`string`||!Number.isNaN(r))&&(n[e]=r)}i=s}return Object.keys(r).length>0&&(n.pax=r),n}function V(e,t){t.name!==void 0&&(e.name=t.name),t.linkname!==void 0&&(e.linkname=t.linkname),t.size!==void 0&&(e.size=t.size),t.mtime!==void 0&&(e.mtime=new Date(t.mtime*1e3)),t.uid!==void 0&&(e.uid=t.uid),t.gid!==void 0&&(e.gid=t.gid),t.uname!==void 0&&(e.uname=t.uname),t.gname!==void 0&&(e.gname=t.gname),t.pax&&(e.pax=Object.assign({},e.pax??{},t.pax))}function ne(e){switch(e){case`pax-global-header`:case`pax-header`:return te;case`gnu-long-name`:return e=>({name:T(e,0,e.length)});case`gnu-long-link-name`:return e=>({linkname:T(e,0,e.length)});default:return}}function re(e){let t=R(e),n=ee(e);if(!n)return[t];let r=-n.paxBody.length&511,i=r>0?[y.subarray(0,r)]:[];return[n.paxHeader,n.paxBody,...i,t]}var ie=new Uint8Array(512*2);function ae(e,t,n){let r=null,i=0,a=!1,o=e=>{let n=Error(e);throw t(n),n};return{add(n){a&&o(`No new tar entries after finalize.`),r!==null&&o(`Previous entry must be completed before adding a new one`);let s=O(n)?0:n.size;(!Number.isSafeInteger(s)||s<0)&&o(`Invalid tar entry size.`);try{let t=re({...n,size:s});for(let n of t)e(n);r={...n,size:s},i=0}catch(e){t(e)}},write(n){r||o(`No active tar entry.`),a&&o(`Cannot write data after finalize.`);let s=i+n.length;s>r.size&&o(`"${r.name}" exceeds given size of ${r.size} bytes.`);try{i=s,e(n)}catch(e){t(e)}},endEntry(){r||o(`No active entry to end.`),a&&o(`Cannot end entry after finalize.`);try{i!==r.size&&o(`Size mismatch for "${r.name}".`);let t=-r.size&511;t>0&&e(new Uint8Array(t)),r=null,i=0}catch(e){throw t(e),e}},finalize(){a&&o(`Archive has already been finalized`),r!==null&&o(`Cannot finalize while an entry is still active`);try{e(ie),a=!0,n&&n()}catch(e){t(e)}}}}var H=256;function oe(){let e=Array(H),t=e.length-1,n=0,r=0,i=0,a=a=>{let o=e[n];a===o.length?(e[n]=b,n=n+1&t):e[n]=o.subarray(a),i-=a,i===0&&e.length>H&&(e=Array(H),t=H-1,n=0,r=0)};function o(t,r){if(r){let o=0,s=Math.min(t,i);for(;s>0;){let t=e[n],i=Math.min(s,t.length),c=i===t.length?t:t.subarray(0,i);if(a(i),s-=i,o+=i,!r(c))break}return o}if(i<t)return null;if(t===0)return b;let o=e[n];if(o.length>=t){let e=o.length===t?o:o.subarray(0,t);return a(t),e}let s=new Uint8Array(t),c=0,l=t;for(;l>0;){let t=e[n],r=Math.min(l,t.length);s.set(r===t.length?t:t.subarray(0,r),c),c+=r,l-=r,a(r)}return s}return{push:a=>{if(a.length===0)return;let o=r+1&t;if(o===n){let i=e.length,a=i*2,s=Array(a),c=r-n+i&i-1;if(n<r)for(let t=0;t<c;t++)s[t]=e[n+t];else if(c>0){let t=i-n;for(let r=0;r<t;r++)s[r]=e[n+r];for(let n=0;n<r;n++)s[t+n]=e[n]}e=s,t=a-1,n=0,r=c,o=r+1&t}e[r]=a,r=o,i+=a.length},available:()=>i,peek:r=>{if(i<r)return null;if(r===0)return b;let a=e[n];if(a.length>=r)return a.length===r?a:a.subarray(0,r);let o=new Uint8Array(r),s=0,c=n;for(;s<r;){let n=e[c],i=Math.min(r-s,n.length);i===n.length?o.set(n,s):o.set(n.subarray(0,i),s),s+=i,c=c+1&t}return o},discard:t=>{if(t>i)throw Error(`Too many bytes consumed`);if(t===0)return;let r=t;for(;r>0;){let t=e[n],i=Math.min(r,t.length);a(i),r-=i}},pull:o}}var se=0,U=1,W=Error(`Tar archive is truncated.`);function ce(e={}){let t=e.strict??!1,{available:n,peek:r,push:i,discard:a,pull:o}=oe(),s=se,c=!1,l=!1,u=!1,d=null,f={},p={},m={isEntryActive:()=>s===U,isBodyComplete:()=>!d||d.remaining===0,canFinish:()=>!d||n()>=d.remaining+d.padding,write(e){if(c)throw Error(`Archive already ended.`);i(e)},end(){c=!0},readHeader(){if(s!==se)throw Error(`Cannot read header while an entry is active`);if(!l)for(;!l;){if(n()<512){if(c){if(n()>0&&t)throw W;l=!0;return}return null}let e=r(512);if(le(e)){if(n()<512*2){if(c){if(t)throw W;l=!0;return}return null}if(le(r(512*2).subarray(512))){a(512*2),l=!0,u=!0;return}if(t)throw Error(`Invalid tar header.`);a(512);continue}let i;try{i=z(e,t)}catch(e){if(t)throw e;a(512);continue}let m=ne(i.type);if(m){let e=i.size+(-i.size&511);if(n()<512+e){if(c&&t)throw W;return null}a(512);let r=m(o(e).subarray(0,i.size)),s=i.type===`pax-global-header`?f:p;for(let e in r)s[e]=r[e];continue}a(512);let h=i;return i.prefix&&(h.name=`${i.prefix}/${h.name}`),V(h,f),V(h,p),h.name.endsWith(`/`)&&h.type===`file`&&(h.type=g),p={},d={header:h,remaining:h.size,padding:-h.size&511},s=U,h}},streamBody(e){if(s!==U||!d||d.remaining===0)return 0;let t=Math.min(d.remaining,n());if(t===0)return 0;let r=o(t,e);return d.remaining-=r,r},skipPadding(){if(s!==U||!d)return!0;if(d.remaining>0)throw Error(`Body not fully consumed`);return n()<d.padding?!1:(a(d.padding),d=null,s=se,!0)},skipEntry(){if(s!==U||!d)return!0;let e=Math.min(d.remaining,n());return e>0&&(a(e),d.remaining-=e),d.remaining>0?!1:m.skipPadding()},validateEOF(){if(t){if(!u)throw W;if(n()>0&&o(n()).some(e=>e!==0))throw Error(`Invalid EOF.`)}}};return m}function le(e){if(e.byteOffset%8==0){let t=new BigUint64Array(e.buffer,e.byteOffset,e.length/8);for(let e=0;e<t.length;e++)if(t[e]!==0n)return!1;return!0}for(let t=0;t<e.length;t++)if(e[t]!==0)return!1;return!0}function ue(){return new CompressionStream(`gzip`)}function de(){return new DecompressionStream(`gzip`)}function fe(){let e,t;return{readable:new ReadableStream({start(n){e=n,t=ae(n.enqueue.bind(n),n.error.bind(n),n.close.bind(n))}}),controller:{add(n){let r=O(n);return t.add(n),r&&t.endEntry(),new WritableStream({write(e){t.write(e)},close(){r||t.endEntry()},abort(t){e.error(t)}})},finalize(){t.finalize()},error(t){e.error(t)}}}}async function pe(e){let t=[],n=e.getReader(),r=0;try{for(;;){let{done:e,value:i}=await n.read();if(e)break;t.push(i),r+=i.length}let e=new Uint8Array(r),i=0;for(let n of t)e.set(n,i),i+=n.length;return e}finally{n.releaseLock()}}var me=e=>e.pipeTo(new WritableStream);function he(e={}){let t=ce(e),n=e.strict??!1,r=null,i=null,a=!1,o=!1,s=!1,c=!1,l=()=>{try{i?.close()}catch{}i=null},u=e=>{if(!c){c=!0;try{i?.error(e)}catch{}i=null;try{r.error(e)}catch{}r=null}},d=()=>{if(!c){c=!0,l();try{r.close()}catch{}r=null}},f=()=>{if(n)throw Error(`Tar archive is truncated.`);d()},p=()=>{if(!(a||c||!r)){a=!0;try{for(;;){if(o){s&&(t.validateEOF(),d());break}if(t.isEntryActive()){if(s&&!t.canFinish()){f();break}if(i){if((i.desiredSize??1)<=0)break;if(t.streamBody(e=>(i.enqueue(e),(i.desiredSize??1)>0))===0&&!t.isBodyComplete()){s&&f();break}}else if(!t.skipEntry()){s&&f();break}if(t.isBodyComplete()&&(l(),!t.skipPadding())){s&&f();break}}else{if((r.desiredSize??0)<0)break;let e=t.readHeader();if(e===null){s&&d();break}if(e===void 0){if(s){t.validateEOF(),d();break}o=!0;break}r.enqueue({header:e,body:new ReadableStream({start(t){e.size===0?t.close():i=t},pull:p,cancel(){i=null,p()}})})}}}catch(e){throw u(e),e}finally{a=!1}}};return{readable:new ReadableStream({start(e){r=e},pull:p,cancel(e){e===void 0?d():u(e)}},{highWaterMark:2}),writable:new WritableStream({write(e){try{if(o&&n&&e.some(e=>e!==0))throw Error(`Invalid EOF.`);t.write(e),p()}catch(e){throw u(e),e}},close(){try{s=!0,t.end(),p()}catch(e){throw u(e),e}},abort(e){u(e)}})}}async function ge(e){let{readable:t,controller:n}=fe();return await(async()=>{for(let t of e){let e=n.add(t.header),r=`body`in t?t.body:t.data;if(!r){await e.close();continue}if(r instanceof ReadableStream)await r.pipeTo(e);else if(r instanceof Blob)await r.stream().pipeTo(e);else try{let t=await k(r);if(t.length>0){let n=e.getWriter();await n.write(t),await n.close()}else await e.close()}catch{throw TypeError(`Unsupported content type for entry "${t.header.name}".`)}}})().then(()=>n.finalize()).catch(e=>n.error(e)),new Uint8Array(await pe(t))}async function _e(e,t={}){let n=e instanceof ReadableStream?e:new ReadableStream({start(t){t.enqueue(e instanceof Uint8Array?e:new Uint8Array(e)),t.close()}}),r=[],i=n.pipeThrough(he(t));for await(let e of i){let n;try{n=j(e.header,t)}catch(t){throw await e.body.cancel(),t}if(n===null){await me(e.body);continue}O(n)?(await me(e.body),r.push({header:n})):r.push({header:n,data:await pe(e.body)})}return r}var ve=(()=>{let e=new Uint32Array(256);for(let t=0;t<256;t++){let n=t<<24;for(let e=0;e<8;e++)n=n&2147483648?n<<1^79764919:n<<1;e[t]=n>>>0}return e})();function ye(e,t){return(e<<8^ve[(e>>>24^t)&255])>>>0}var be=class{buffer=[];current=0;bitCount=0;writeBits(e,t){for(let n=e-1;n>=0;n--)this.current=this.current<<1|t>>>n&1,this.bitCount++,this.bitCount===8&&(this.buffer.push(this.current),this.current=0,this.bitCount=0)}writeBit(e){this.current=this.current<<1|e&1,this.bitCount++,this.bitCount===8&&(this.buffer.push(this.current),this.current=0,this.bitCount=0)}finish(){return this.bitCount>0&&this.buffer.push(this.current<<8-this.bitCount),new Uint8Array(this.buffer)}};function xe(e){let t=[],n=0;for(;n<e.length;){let r=e[n],i=1;for(;n+i<e.length&&e[n+i]===r&&i<255;)i++;i>=4?(t.push(r,r,r,r),t.push(i-4),n+=i):(t.push(r),n++)}return new Uint8Array(t)}function Se(e){let t=e.length;if(t===0)return{transformed:new Uint8Array,pointer:0};let n=Ce(e),r=new Uint8Array(t),i=0;for(let a=0;a<t;a++)n[a]===0?(i=a,r[a]=e[t-1]):r[a]=e[n[a]-1];return{transformed:r,pointer:i}}function Ce(e){let t=e.length,n=new Int32Array(t),r=new Int32Array(t);for(let i=0;i<t;i++)n[i]=i,r[i]=e[i];for(let e=1;e<t;e*=2){let i=r.slice();n.sort((n,r)=>i[n]===i[r]?i[(n+e)%t]-i[(r+e)%t]:i[n]-i[r]),r[n[0]]=0;for(let a=1;a<t;a++)i[n[a]]===i[n[a-1]]&&i[(n[a]+e)%t]===i[(n[a-1]+e)%t]?r[n[a]]=r[n[a-1]]:r[n[a]]=r[n[a-1]]+1;if(r[n[t-1]]===t-1)break}return n}function we(e,t){let n=[];for(let e=0;e<256;e++)t[e]&&n.push(e);let r=Array(256).fill(-1);for(let e=0;e<n.length;e++)r[n[e]]=e;let i=new Uint16Array(e.length),a=n.slice();for(let t=0;t<e.length;t++){let n=e[t],r=0;for(;a[r]!==n;)r++;if(i[t]=r,r>0){let e=a[r];for(let e=r;e>0;e--)a[e]=a[e-1];a[0]=e}}return{encoded:i,length:e.length}}function Te(e,t,n){let r=n+1,i=[],a=0;for(;a<t;)if(e[a]===0){let n=0;for(;a<t&&e[a]===0;)n++,a++;let r=n;for(;r>0;)r--,r&1?i.push(1):i.push(0),r>>>=1}else i.push(e[a]+1),a++;i.push(r);let o=new Uint16Array(i.length);for(let e=0;e<i.length;e++)o[e]=i[e];return{symbols:o,length:i.length,eob:r}}function Ee(e,t,n){if(t<=1){let t=Array(e.length).fill(0);for(let n=0;n<e.length;n++)e[n]>0&&(t[n]=1);return{codeLengths:t,maxLen:1,minLen:1}}let r=[];for(let t=0;t<e.length;t++)e[t]>0&&r.push({freq:e[t],symbol:t,left:null,right:null});if(r.length===0)return{codeLengths:Array(e.length).fill(0),maxLen:0,minLen:0};if(r.length===1){let t=Array(e.length).fill(0);return t[r[0].symbol]=1,{codeLengths:t,maxLen:1,minLen:1}}for(;r.length>1;){r.sort((e,t)=>e.freq-t.freq);let e=r.shift(),t=r.shift();r.push({freq:e.freq+t.freq,symbol:-1,left:e,right:t})}let i=Array(e.length).fill(0);function a(e,t){if(!e.left&&!e.right){i[e.symbol]=t;return}e.left&&a(e.left,t+1),e.right&&a(e.right,t+1)}a(r[0],0);let o=!0;for(;o;){o=!1;for(let e=0;e<i.length;e++)i[e]>n&&(i[e]=n,o=!0);if(o){let e=0;for(let t=0;t<i.length;t++)i[t]>0&&(e+=1/(1<<i[t]));if(e>1)for(let t=1;t<n&&e>1;t++)for(let n=0;n<i.length&&e>1;n++)i[n]===t&&(i[n]++,e-=1/(1<<t)-1/(1<<t+1));o=!1;for(let e=0;e<i.length;e++)if(i[e]>n){o=!0;break}}}let s=n,c=0;for(let e=0;e<i.length;e++)i[e]>0&&(i[e]<s&&(s=i[e]),i[e]>c&&(c=i[e]));return{codeLengths:i,maxLen:c,minLen:s}}function De(e,t){let n=Array(t).fill(0),r=e.slice(0,t),i=Math.max(...r,0),a=Array(i+1).fill(0);for(let e=0;e<t;e++)r[e]>0&&a[r[e]]++;let o=Array(i+1).fill(0),s=0;for(let e=1;e<=i;e++)s=s+a[e-1]<<1,o[e]=s;for(let e=0;e<t;e++)r[e]>0&&(n[e]=o[r[e]]++);return{codes:n,lengths:r}}function Oe(e,t,n){e.writeBits(24,3227993),e.writeBits(24,2511705),e.writeBits(32,n),e.writeBit(0);let{transformed:r,pointer:i}=Se(xe(t));e.writeBits(24,i);let a=Array(256).fill(!1);for(let e=0;e<r.length;e++)a[r[e]]=!0;let o=Array(16).fill(!1);for(let e=0;e<16;e++)for(let t=0;t<16;t++)if(a[e*16+t]){o[e]=!0;break}for(let t=0;t<16;t++)e.writeBit(o[t]?1:0);for(let t=0;t<16;t++)if(o[t])for(let n=0;n<16;n++)e.writeBit(a[t*16+n]?1:0);let s=0;for(let e=0;e<256;e++)a[e]&&s++;let{encoded:c,length:l}=we(r,a),{symbols:u,length:d}=Te(c,l,s),f=s+2,p=Math.ceil(d/50),m;m=d<200?2:d<600?3:d<1200?4:d<2400?5:6,m>p&&(m=Math.max(2,p));let h=[];for(let e=0;e<m;e++)h.push(Array(f).fill(0));let g=new Int32Array(p);for(let e=0;e<p;e++)g[e]=e%m;for(let e=0;e<p;e++){let t=e*50,n=Math.min(t+50,d),r=g[e];for(let e=t;e<n;e++)h[r][u[e]]++}function _(e){for(let t=0;t<f;t++)e[t]<1&&(e[t]=1)}let v=[];for(let e=0;e<m;e++)_(h[e]),v.push(Ee(h[e],f,20));for(let e=0;e<4;e++){for(let e=0;e<m;e++)h[e].fill(0);for(let e=0;e<p;e++){let t=e*50,n=Math.min(t+50,d),r=0,i=1/0;for(let e=0;e<m;e++){let a=0;for(let r=t;r<n;r++)a+=v[e].codeLengths[u[r]]||20;a<i&&(i=a,r=e)}g[e]=r;for(let e=t;e<n;e++)h[r][u[e]]++}for(let e=0;e<m;e++)_(h[e]),v[e]=Ee(h[e],f,20)}e.writeBits(3,m),e.writeBits(15,p);let y=[],b=[];for(let e=0;e<m;e++)b.push(e);for(let e=0;e<p;e++){let t=g[e],n=0;for(;b[n]!==t;)n++;if(y.push(n),n>0){let e=b[n];for(let e=n;e>0;e--)b[e]=b[e-1];b[0]=e}}for(let t=0;t<p;t++){for(let n=0;n<y[t];n++)e.writeBit(1);e.writeBit(0)}for(let t=0;t<m;t++){let n=v[t].codeLengths,r=n[0];e.writeBits(5,r);for(let t=0;t<f;t++){let i=n[t];for(;r<i;)e.writeBit(1),e.writeBit(0),r++;for(;r>i;)e.writeBit(1),e.writeBit(1),r--;e.writeBit(0)}}for(let e=0;e<m;e++){let{codes:t,lengths:n}=De(v[e].codeLengths,f);v[e]=Object.assign(v[e],{_codes:t,_lengths:n})}let x=0,S=0;for(let t=0;t<d;t++){(S===0||S>=50)&&(t>0&&x++,S=0);let n=v[g[x]],r=u[t],i=n._lengths[r],a=n._codes[r];i>0&&e.writeBits(i,a),S++}}var ke=10*1024*1024;function Ae(e,t=9,n=ke){if(t<1||t>9)throw Error(`Block size level must be 1-9`);if(e.length>n)throw Error(`Input too large for bzip2 compression (${e.length} bytes, max ${n})`);let r=t*1e5,i=new be;i.writeBits(8,66),i.writeBits(8,90),i.writeBits(8,104),i.writeBits(8,48+t);let a=0,o=0;for(;o<e.length;){let t=Math.min(o+r,e.length),n=e.subarray(o,t),s=4294967295;for(let e=0;e<n.length;e++)s=ye(s,n[e]);s=~s>>>0,a=(a<<1|a>>>31)>>>0,a=(a^s)>>>0,Oe(i,n,s),o=t}return i.writeBits(24,1536581),i.writeBits(24,3690640),i.writeBits(32,a),i.finish()}var G=null,K=null;async function je(){if(G)return G;if(K)throw K;try{return G=await r.runTrustedAsync(()=>import(`./lzma-kz900pzb.mjs`)),G}catch{throw K=Error(`xz compression requires node-liblzma which failed to load. Install liblzma-dev (apt) or xz (brew) and reinstall dependencies.`),K}}var q=null,J=null;async function Me(){if(q)return q;if(J)throw J;try{return q=await r.runTrustedAsync(()=>import(`./lib-DOas6HiH.mjs`).then(t=>e(t.default,1))),q}catch{throw J=Error(`zstd compression requires @mongodb-js/zstd which is not installed. Install it with: npm install @mongodb-js/zstd`),J}}var Y=100*1024*1024,Ne=512,Pe=1e4;function Fe(e){let t=`file`;e.isDirectory?t=`directory`:e.isSymlink&&(t=`symlink`);let n=e.name;e.isDirectory&&!n.endsWith(`/`)&&(n+=`/`);let r;e.content!==void 0&&(r=typeof e.content==`string`?new TextEncoder().encode(e.content):e.content);let i=e.isDirectory||e.isSymlink?0:r?.length??0;return{header:{name:n,mode:e.mode??(e.isDirectory?493:420),uid:e.uid??0,gid:e.gid??0,size:i,mtime:e.mtime??new Date,type:t,linkname:e.linkTarget??``,uname:`user`,gname:`user`},body:r}}async function X(e){return ge(e.map(Fe))}async function Ie(e){let t=await X(e),n=new ReadableStream({start(e){e.enqueue(t),e.close()}}).pipeThrough(ue()).getReader(),r=[];for(;;){let{done:e,value:t}=await n.read();if(e)break;r.push(t)}let i=r.reduce((e,t)=>e+t.length,0),a=new Uint8Array(i),o=0;for(let e of r)a.set(e,o),o+=e.length;return a}async function Z(e){if(e.length>Y)return{entries:[],error:`Archive too large (max ${Y} bytes)`};if(e.length<Ne||e.length%Ne!==0)return{entries:[],error:`Invalid tar archive format`};try{let t=await _e(e),n=[];for(let e of t){if(n.length>=Pe)return{entries:n,error:`Too many entries (max ${Pe})`};let t=`file`;switch(e.header.type){case`directory`:t=`directory`;break;case`symlink`:t=`symlink`;break;case`link`:t=`hardlink`;break;case`file`:t=`file`;break;default:t=`other`}n.push({name:e.header.name,mode:e.header.mode??420,uid:e.header.uid??0,gid:e.header.gid??0,size:e.header.size,mtime:e.header.mtime??new Date,type:t,linkTarget:e.header.linkname||void 0,content:e.data??new Uint8Array})}return{entries:n}}catch(e){return{entries:[],error:e instanceof Error?e.message:`Unknown error`}}}async function Le(e){if(e.length>Y)return{entries:[],error:`Archive too large (max ${Y} bytes)`};try{let t=new ReadableStream({start(t){t.enqueue(e),t.close()}}).pipeThrough(de()).getReader(),n=[],r=0;for(;;){let{done:e,value:i}=await t.read();if(e)break;if(r+=i.length,r>Y)return await t.cancel(),{entries:[],error:`Decompressed archive too large (max ${Y} bytes)`};n.push(i)}let i=new Uint8Array(r),a=0;for(let e of n)i.set(e,a),a+=e.length;return Z(i)}catch(e){return{entries:[],error:`Decompression failed: ${e instanceof Error?e.message:`Unknown error`}`}}}function Re(e){return e.length>=2&&e[0]===31&&e[1]===139}function ze(e){return e.length>=3&&e[0]===66&&e[1]===90&&e[2]===104}function Be(e){return e.length>=6&&e[0]===253&&e[1]===55&&e[2]===122&&e[3]===88&&e[4]===90&&e[5]===0}async function Ve(e){let t=f.default.decode(Buffer.from(e));return new Uint8Array(t)}async function He(e){return Ae(e,9)}async function Ue(e){let t=(await je()).unxzSync(Buffer.from(e));return new Uint8Array(t)}async function We(e){let t=(await je()).xzSync(Buffer.from(e));return new Uint8Array(t)}async function Ge(e){return He(await X(e))}async function Ke(e,t){if(!t?.allowNativeCodecs)throw Error(`xz compression is disabled by default (native codec risk). Pass { allowNativeCodecs: true } to opt in.`);return We(await X(e))}async function qe(e){if(e.length>Y)return{entries:[],error:`Archive too large (max ${Y} bytes)`};try{let t=await Ve(e);return t.length>Y?{entries:[],error:`Decompressed archive too large (max ${Y} bytes)`}:Z(t)}catch(e){return{entries:[],error:e instanceof Error?e.message:`Unknown error`}}}async function Je(e,t){if(!t?.allowNativeCodecs)return{entries:[],error:`xz decompression is disabled by default (native codec risk). Pass { allowNativeCodecs: true } to opt in, or decompress the archive externally before extraction.`};if(e.length>Y)return{entries:[],error:`Archive too large (max ${Y} bytes)`};try{let t=await Ue(e);return t.length>Y?{entries:[],error:`Decompressed archive too large (max ${Y} bytes)`}:Z(t)}catch(e){return{entries:[],error:e instanceof Error?e.message:`Unknown error`}}}function Ye(e){return e.length>=4&&e[0]===40&&e[1]===181&&e[2]===47&&e[3]===253}async function Xe(e){let t=await(await Me()).compress(Buffer.from(e),3);return new Uint8Array(t)}async function Ze(e){let t=await(await Me()).decompress(Buffer.from(e));return new Uint8Array(t)}async function Qe(e,t){if(!t?.allowNativeCodecs)throw Error(`zstd compression is disabled by default (native codec risk). Pass { allowNativeCodecs: true } to opt in.`);return Xe(await X(e))}async function $e(e,t){if(!t?.allowNativeCodecs)return{entries:[],error:`zstd decompression is disabled by default (native codec risk). Pass { allowNativeCodecs: true } to opt in, or decompress the archive externally before extraction.`};if(e.length>Y)return{entries:[],error:`Archive too large (max ${Y} bytes)`};try{let t=await Ze(e);return t.length>Y?{entries:[],error:`Decompressed archive too large (max ${Y} bytes)`}:Z(t)}catch(e){return{entries:[],error:e instanceof Error?e.message:`Unknown error`}}}function et(e){let t={create:!1,append:!1,update:!1,extract:!1,list:!1,file:``,autoCompress:!1,gzip:!1,bzip2:!1,xz:!1,zstd:!1,verbose:!1,toStdout:!1,keepOldFiles:!1,touch:!1,directory:``,preserve:!1,absoluteNames:!1,strip:0,exclude:[],filesFrom:``,excludeFrom:``,wildcards:!1},n=[],r=0;for(;r<e.length;){let a=e[r];if(a.startsWith(`-`)&&!a.startsWith(`--`)&&a.length>2){if(/^-\d+$/.test(a)){n.push(a),r++;continue}for(let n=1;n<a.length;n++){let o=a[n];switch(o){case`c`:t.create=!0;break;case`r`:t.append=!0;break;case`u`:t.update=!0;break;case`x`:t.extract=!0;break;case`t`:t.list=!0;break;case`a`:t.autoCompress=!0;break;case`z`:t.gzip=!0;break;case`j`:t.bzip2=!0;break;case`J`:t.xz=!0;break;case`v`:t.verbose=!0;break;case`O`:t.toStdout=!0;break;case`k`:t.keepOldFiles=!0;break;case`m`:t.touch=!0;break;case`p`:t.preserve=!0;break;case`P`:t.absoluteNames=!0;break;case`f`:if(n<a.length-1)t.file=a.substring(n+1),n=a.length;else{if(r++,r>=e.length)return{ok:!1,error:{stdout:``,stderr:`tar: option requires an argument -- 'f'
3
3
  `,exitCode:2}};t.file=e[r]}break;case`C`:if(n<a.length-1)t.directory=a.substring(n+1),n=a.length;else{if(r++,r>=e.length)return{ok:!1,error:{stdout:``,stderr:`tar: option requires an argument -- 'C'
4
4
  `,exitCode:2}};t.directory=e[r]}break;case`T`:if(n<a.length-1)t.filesFrom=a.substring(n+1),n=a.length;else{if(r++,r>=e.length)return{ok:!1,error:{stdout:``,stderr:`tar: option requires an argument -- 'T'
5
5
  `,exitCode:2}};t.filesFrom=e[r]}break;case`X`:if(n<a.length-1)t.excludeFrom=a.substring(n+1),n=a.length;else{if(r++,r>=e.length)return{ok:!1,error:{stdout:``,stderr:`tar: option requires an argument -- 'X'
@@ -60,4 +60,4 @@ import{s as e,t}from"./chunk-C94x7I9S.mjs";import{t as n}from"./chunk-B74TABJS-C
60
60
  `,exitCode:2}}}if(r.excludeFrom){let e=t.fs.resolvePath(t.cwd,r.excludeFrom);try{let n=(await t.fs.readFile(e)).split(`
61
61
  `).map(e=>e.trim()).filter(e=>e.length>0&&!e.startsWith(`#`));r.exclude.push(...n)}catch{return{stdout:``,stderr:`tar: ${r.excludeFrom}: Cannot open: No such file or directory
62
62
  `,exitCode:2}}}return r.create?ct(t,r,l):r.append?lt(t,r,l):r.update?ut(t,r,l):r.extract?dt(t,r,l):ft(t,r,l)}},mt={name:`tar`,flags:[{flag:`-c`,type:`boolean`},{flag:`-x`,type:`boolean`},{flag:`-t`,type:`boolean`},{flag:`-f`,type:`value`,valueHint:`path`},{flag:`-z`,type:`boolean`},{flag:`-j`,type:`boolean`},{flag:`-v`,type:`boolean`},{flag:`-C`,type:`value`,valueHint:`path`},{flag:`--strip-components`,type:`value`,valueHint:`number`},{flag:`--exclude`,type:`value`,valueHint:`pattern`}],needsArgs:!0};export{pt as n,mt as t};
63
- //# sourceMappingURL=chunk-HKLCLINH-DiTtKPWB.mjs.map
63
+ //# sourceMappingURL=chunk-HKLCLINH-Ch0mauLy.mjs.map
@@ -1,4 +1,4 @@
1
- import{a as e,r as t,t as n}from"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{n as r,r as i,t as a}from"./chunk-74CEPOFO-CciWp7CZ.mjs";import{open as o}from"node:fs/promises";var s=t(e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else{if(a===c)return o?NaN:(p?-1:1)*(1/0);o+=2**r,a-=l}return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<<l)-1,d=u>>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}}),c=t((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}}),l=t((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=l,n.disable=o,n.enable=i,n.enabled=s,n.humanize=c(),n.destroy=u,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,i=null,a,o;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,`enabled`,{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(typeof t>`u`?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function o(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function l(e){return e instanceof Error?e.stack||e.message:e}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n}),u=t((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=l()(e);var{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}}),d=t((e,t)=>{t.exports=(e,t=process.argv)=>{let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}}),f=t((e,t)=>{var r=n(`os`),i=n(`tty`),a=d(),{env:o}=process,s;a(`no-color`)||a(`no-colors`)||a(`color=false`)||a(`color=never`)?s=0:(a(`color`)||a(`colors`)||a(`color=true`)||a(`color=always`))&&(s=1),`FORCE_COLOR`in o&&(s=o.FORCE_COLOR===`true`?1:o.FORCE_COLOR===`false`?0:o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3));function c(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function l(e,t){if(s===0)return 0;if(a(`color=16m`)||a(`color=full`)||a(`color=truecolor`))return 3;if(a(`color=256`))return 2;if(e&&!t&&s===void 0)return 0;let n=s||0;if(o.TERM===`dumb`)return n;if(process.platform===`win32`){let e=r.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in o)return[`TRAVIS`,`CIRCLECI`,`APPVEYOR`,`GITLAB_CI`,`GITHUB_ACTIONS`,`BUILDKITE`].some(e=>e in o)||o.CI_NAME===`codeship`?1:n;if(`TEAMCITY_VERSION`in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if(o.COLORTERM===`truecolor`)return 3;if(`TERM_PROGRAM`in o){let e=parseInt((o.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(o.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||`COLORTERM`in o?1:n}function u(e){return c(l(e,e&&e.isTTY))}t.exports={supportsColor:u,stdout:c(l(!0,i.isatty(1))),stderr:c(l(!0,i.isatty(2)))}}),p=t((e,t)=>{var r=n(`tty`),i=n(`util`);e.init=p,e.log=c,e.formatArgs=o,e.save=u,e.load=d,e.useColors=a,e.destroy=i.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let t=f();t&&(t.stderr||t).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function a(){return`colors`in e.inspectOpts?!!e.inspectOpts.colors:r.isatty(process.stderr.fd)}function o(e){let{namespace:n,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${n} \x1B[0m`;e[0]=a+e[0].split(`
1
+ import{a as e,r as t,t as n}from"./chunk-DXB73IDG-ByieFnhr.mjs";import{n as r,r as i,t as a}from"./chunk-74CEPOFO-smMq6g2B.mjs";import{open as o}from"node:fs/promises";var s=t(e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else{if(a===c)return o?NaN:(p?-1:1)*(1/0);o+=2**r,a-=l}return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<<l)-1,d=u>>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}}),c=t((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}}),l=t((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=l,n.disable=o,n.enable=i,n.enabled=s,n.humanize=c(),n.destroy=u,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,i=null,a,o;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,`enabled`,{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(typeof t>`u`?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function o(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function l(e){return e instanceof Error?e.stack||e.message:e}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n}),u=t((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=l()(e);var{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}}),d=t((e,t)=>{t.exports=(e,t=process.argv)=>{let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}}),f=t((e,t)=>{var r=n(`os`),i=n(`tty`),a=d(),{env:o}=process,s;a(`no-color`)||a(`no-colors`)||a(`color=false`)||a(`color=never`)?s=0:(a(`color`)||a(`colors`)||a(`color=true`)||a(`color=always`))&&(s=1),`FORCE_COLOR`in o&&(s=o.FORCE_COLOR===`true`?1:o.FORCE_COLOR===`false`?0:o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3));function c(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function l(e,t){if(s===0)return 0;if(a(`color=16m`)||a(`color=full`)||a(`color=truecolor`))return 3;if(a(`color=256`))return 2;if(e&&!t&&s===void 0)return 0;let n=s||0;if(o.TERM===`dumb`)return n;if(process.platform===`win32`){let e=r.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in o)return[`TRAVIS`,`CIRCLECI`,`APPVEYOR`,`GITLAB_CI`,`GITHUB_ACTIONS`,`BUILDKITE`].some(e=>e in o)||o.CI_NAME===`codeship`?1:n;if(`TEAMCITY_VERSION`in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if(o.COLORTERM===`truecolor`)return 3;if(`TERM_PROGRAM`in o){let e=parseInt((o.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(o.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||`COLORTERM`in o?1:n}function u(e){return c(l(e,e&&e.isTTY))}t.exports={supportsColor:u,stdout:c(l(!0,i.isatty(1))),stderr:c(l(!0,i.isatty(2)))}}),p=t((e,t)=>{var r=n(`tty`),i=n(`util`);e.init=p,e.log=c,e.formatArgs=o,e.save=u,e.load=d,e.useColors=a,e.destroy=i.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let t=f();t&&(t.stderr||t).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function a(){return`colors`in e.inspectOpts?!!e.inspectOpts.colors:r.isatty(process.stderr.fd)}function o(e){let{namespace:n,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${n} \x1B[0m`;e[0]=a+e[0].split(`
2
2
  `).join(`
3
3
  `+a),e.push(i+`m+`+t.exports.humanize(this.diff)+`\x1B[0m`)}else e[0]=s()+n+` `+e[0]}function s(){return e.inspectOpts.hideDate?``:new Date().toISOString()+` `}function c(...t){return process.stderr.write(i.formatWithOptions(e.inspectOpts,...t)+`
4
4
  `)}function u(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function d(){return process.env.DEBUG}function p(t){t.inspectOpts={};let n=Object.keys(e.inspectOpts);for(let r=0;r<n.length;r++)t.inspectOpts[n[r]]=e.inspectOpts[n[r]]}t.exports=l()(e);var{formatters:m}=t.exports;m.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split(`
@@ -21,4 +21,4 @@ ieee754/index.js:
21
21
  (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
22
22
  */
23
23
  export{Ft as n,It as t};
24
- //# sourceMappingURL=chunk-HL6NGDO2-FvmjxcsK.mjs.map
24
+ //# sourceMappingURL=chunk-HL6NGDO2-D41r2_6L.mjs.map
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-74CEPOFO-CciWp7CZ.mjs";function t(t,n,r){let i=new Map,a=new Map;for(let[e,t]of Object.entries(r)){let n={name:e,type:t.type};t.short&&i.set(t.short,n),t.long&&a.set(t.long,n)}let o=Object.create(null);for(let[e,t]of Object.entries(r))t.default===void 0?t.type===`boolean`&&(o[e]=!1):o[e]=t.default;let s=[],c=!1;for(let r=0;r<n.length;r++){let l=n[r];if(c||!l.startsWith(`-`)||l===`-`){s.push(l);continue}if(l===`--`){c=!0;continue}if(l.startsWith(`--`)){let i=l.indexOf(`=`),s,c;i===-1?s=l.slice(2):(s=l.slice(2,i),c=l.slice(i+1));let u=a.get(s);if(!u)return{ok:!1,error:e(t,l)};let{name:d,type:f}=u;if(f===`boolean`)o[d]=!0;else{if(c===void 0){if(r+1>=n.length)return{ok:!1,error:{stdout:``,stderr:`${t}: option '--${s}' requires an argument
1
+ import{n as e}from"./chunk-74CEPOFO-smMq6g2B.mjs";function t(t,n,r){let i=new Map,a=new Map;for(let[e,t]of Object.entries(r)){let n={name:e,type:t.type};t.short&&i.set(t.short,n),t.long&&a.set(t.long,n)}let o=Object.create(null);for(let[e,t]of Object.entries(r))t.default===void 0?t.type===`boolean`&&(o[e]=!1):o[e]=t.default;let s=[],c=!1;for(let r=0;r<n.length;r++){let l=n[r];if(c||!l.startsWith(`-`)||l===`-`){s.push(l);continue}if(l===`--`){c=!0;continue}if(l.startsWith(`--`)){let i=l.indexOf(`=`),s,c;i===-1?s=l.slice(2):(s=l.slice(2,i),c=l.slice(i+1));let u=a.get(s);if(!u)return{ok:!1,error:e(t,l)};let{name:d,type:f}=u;if(f===`boolean`)o[d]=!0;else{if(c===void 0){if(r+1>=n.length)return{ok:!1,error:{stdout:``,stderr:`${t}: option '--${s}' requires an argument
2
2
  `,exitCode:1}};c=n[++r]}o[d]=f===`number`?parseInt(c,10):c}}else{let a=l.slice(1);for(let s=0;s<a.length;s++){let c=a[s],l=i.get(c);if(!l)return{ok:!1,error:e(t,`-${c}`)};let{name:u,type:d}=l;if(d===`boolean`)o[u]=!0;else{let e;if(s+1<a.length)e=a.slice(s+1);else if(r+1<n.length)e=n[++r];else return{ok:!1,error:{stdout:``,stderr:`${t}: option requires an argument -- '${c}'
3
3
  `,exitCode:1}};o[u]=d===`number`?parseInt(e,10):e;break}}}}return{ok:!0,result:{flags:o,positional:s}}}export{t};
4
- //# sourceMappingURL=chunk-HWKDQ44K-Cd9c0ujm.mjs.map
4
+ //# sourceMappingURL=chunk-HWKDQ44K-CRAflooW.mjs.map
@@ -1,4 +1,4 @@
1
- import{t as e}from"./chunk-R6VWJ2ZL-BVeTwIsz.mjs";import{i as t,n}from"./chunk-CWQS3NFK-BkE4vqrf.mjs";import{n as r,t as i}from"./chunk-A5O5YHGN-DApqA6Ow.mjs";import{t as a}from"./chunk-IPJHKYVM-CUKythEA.mjs";import{n as o}from"./chunk-3THT3N7L-B1WzJUh4.mjs";var s={NOOP:0,READ_FILE:1,WRITE_FILE:2,STAT:3,READDIR:4,MKDIR:5,RM:6,EXISTS:7,APPEND_FILE:8,SYMLINK:9,READLINK:10,LSTAT:11,CHMOD:12,REALPATH:13,RENAME:14,COPY_FILE:15,WRITE_STDOUT:100,WRITE_STDERR:101,EXIT:102,HTTP_REQUEST:200,EXEC_COMMAND:300},c={PENDING:0,READY:1,SUCCESS:2,ERROR:3},l={NONE:0,NOT_FOUND:1,IS_DIRECTORY:2,NOT_DIRECTORY:3,EXISTS:4,PERMISSION_DENIED:5,INVALID_PATH:6,IO_ERROR:7,TIMEOUT:8,NETWORK_ERROR:9,NETWORK_NOT_CONFIGURED:10},u={OP_CODE:0,STATUS:4,PATH_LENGTH:8,DATA_LENGTH:12,RESULT_LENGTH:16,ERROR_CODE:20,FLAGS:24,MODE:28,PATH_BUFFER:32,DATA_BUFFER:4128},d={CONTROL_REGION:32,PATH_BUFFER:4096,DATA_BUFFER:1048576,TOTAL:1052704},f={NONE:0,RECURSIVE:1,FORCE:2,MKDIR_RECURSIVE:1},p={IS_FILE:0,IS_DIRECTORY:1,IS_SYMLINK:2,MODE:4,SIZE:8,MTIME:16,TOTAL:24};function m(){return new t(d.TOTAL)}var h=class{int32View;uint8View;dataView;constructor(e){this.int32View=new Int32Array(e),this.uint8View=new Uint8Array(e),this.dataView=new DataView(e)}getOpCode(){return n.load(this.int32View,u.OP_CODE/4)}setOpCode(e){n.store(this.int32View,u.OP_CODE/4,e)}getStatus(){return n.load(this.int32View,u.STATUS/4)}setStatus(e){n.store(this.int32View,u.STATUS/4,e)}getPathLength(){return n.load(this.int32View,u.PATH_LENGTH/4)}setPathLength(e){n.store(this.int32View,u.PATH_LENGTH/4,e)}getDataLength(){return n.load(this.int32View,u.DATA_LENGTH/4)}setDataLength(e){n.store(this.int32View,u.DATA_LENGTH/4,e)}getResultLength(){return n.load(this.int32View,u.RESULT_LENGTH/4)}setResultLength(e){n.store(this.int32View,u.RESULT_LENGTH/4,e)}getErrorCode(){return n.load(this.int32View,u.ERROR_CODE/4)}setErrorCode(e){n.store(this.int32View,u.ERROR_CODE/4,e)}getFlags(){return n.load(this.int32View,u.FLAGS/4)}setFlags(e){n.store(this.int32View,u.FLAGS/4,e)}getMode(){return n.load(this.int32View,u.MODE/4)}setMode(e){n.store(this.int32View,u.MODE/4,e)}getPath(){let e=this.getPathLength(),t=this.uint8View.slice(u.PATH_BUFFER,u.PATH_BUFFER+e);return new TextDecoder().decode(t)}setPath(e){let t=new TextEncoder().encode(e);if(t.length>d.PATH_BUFFER)throw Error(`Path too long: ${t.length} > ${d.PATH_BUFFER}`);this.uint8View.set(t,u.PATH_BUFFER),this.setPathLength(t.length)}getData(){let e=this.getDataLength();return this.uint8View.slice(u.DATA_BUFFER,u.DATA_BUFFER+e)}setData(e){if(e.length>d.DATA_BUFFER)throw Error(`Data too large: ${e.length} > ${d.DATA_BUFFER}`);this.uint8View.set(e,u.DATA_BUFFER),this.setDataLength(e.length)}getDataAsString(){let e=this.getData();return new TextDecoder().decode(e)}setDataFromString(e){let t=new TextEncoder().encode(e);this.setData(t)}getResult(){let e=this.getResultLength();return this.uint8View.slice(u.DATA_BUFFER,u.DATA_BUFFER+e)}setResult(e){if(e.length>d.DATA_BUFFER)throw Error(`Result too large: ${e.length} > ${d.DATA_BUFFER}`);this.uint8View.set(e,u.DATA_BUFFER),this.setResultLength(e.length)}getResultAsString(){let e=this.getResult();return new TextDecoder().decode(e)}setResultFromString(e){let t=new TextEncoder().encode(e);this.setResult(t)}encodeStat(e){this.uint8View[u.DATA_BUFFER+p.IS_FILE]=e.isFile?1:0,this.uint8View[u.DATA_BUFFER+p.IS_DIRECTORY]=e.isDirectory?1:0,this.uint8View[u.DATA_BUFFER+p.IS_SYMLINK]=e.isSymbolicLink?1:0,this.dataView.setInt32(u.DATA_BUFFER+p.MODE,e.mode,!0);let t=Math.min(e.size,2**53-1);this.dataView.setFloat64(u.DATA_BUFFER+p.SIZE,t,!0),this.dataView.setFloat64(u.DATA_BUFFER+p.MTIME,e.mtime.getTime(),!0),this.setResultLength(p.TOTAL)}decodeStat(){return{isFile:this.uint8View[u.DATA_BUFFER+p.IS_FILE]===1,isDirectory:this.uint8View[u.DATA_BUFFER+p.IS_DIRECTORY]===1,isSymbolicLink:this.uint8View[u.DATA_BUFFER+p.IS_SYMLINK]===1,mode:this.dataView.getInt32(u.DATA_BUFFER+p.MODE,!0),size:this.dataView.getFloat64(u.DATA_BUFFER+p.SIZE,!0),mtime:new Date(this.dataView.getFloat64(u.DATA_BUFFER+p.MTIME,!0))}}waitForReady(e){return n.wait(this.int32View,u.STATUS/4,c.PENDING,e)}waitForReadyAsync(e){return n.waitAsync(this.int32View,u.STATUS/4,c.PENDING,e)}async waitUntilReady(e){let t=Date.now();for(;;){let r=this.getStatus();if(r===c.READY)return!0;let i=Date.now()-t;if(i>=e)return!1;let a=e-i,o=n.waitAsync(this.int32View,u.STATUS/4,r,a);if(o.async&&await o.value===`timed-out`)return!1}}waitForResult(e){return n.wait(this.int32View,u.STATUS/4,c.READY,e)}notify(){return n.notify(this.int32View,u.STATUS/4)}reset(){this.setOpCode(s.NOOP),this.setStatus(c.PENDING),this.setPathLength(0),this.setDataLength(0),this.setResultLength(0),this.setErrorCode(l.NONE),this.setFlags(f.NONE),this.setMode(0)}},g=class{fs;cwd;commandName;secureFetch;maxOutputSize;exec;protocol;running=!1;output={stdout:``,stderr:``,exitCode:0};outputLimitExceeded=!1;startTime=0;timeoutMs=0;constructor(e,t,n,r,i=void 0,a=0,o=void 0){this.fs=t,this.cwd=n,this.commandName=r,this.secureFetch=i,this.maxOutputSize=a,this.exec=o,this.protocol=new h(e)}remainingMs(){return Math.max(0,this.timeoutMs-(Date.now()-this.startTime))}raceDeadline(e){let t=this.remainingMs();if(t<=0)return this.running=!1,this.output.exitCode=124,this.output.stderr+=`
1
+ import{t as e}from"./chunk-R6VWJ2ZL-FXX1AKea.mjs";import{i as t,n}from"./chunk-CWQS3NFK-BvSpDizp.mjs";import{n as r,t as i}from"./chunk-A5O5YHGN-0FmmnDn4.mjs";import{t as a}from"./chunk-IPJHKYVM-DDc9WF57.mjs";import{n as o}from"./chunk-3THT3N7L-DNeAafDi.mjs";var s={NOOP:0,READ_FILE:1,WRITE_FILE:2,STAT:3,READDIR:4,MKDIR:5,RM:6,EXISTS:7,APPEND_FILE:8,SYMLINK:9,READLINK:10,LSTAT:11,CHMOD:12,REALPATH:13,RENAME:14,COPY_FILE:15,WRITE_STDOUT:100,WRITE_STDERR:101,EXIT:102,HTTP_REQUEST:200,EXEC_COMMAND:300},c={PENDING:0,READY:1,SUCCESS:2,ERROR:3},l={NONE:0,NOT_FOUND:1,IS_DIRECTORY:2,NOT_DIRECTORY:3,EXISTS:4,PERMISSION_DENIED:5,INVALID_PATH:6,IO_ERROR:7,TIMEOUT:8,NETWORK_ERROR:9,NETWORK_NOT_CONFIGURED:10},u={OP_CODE:0,STATUS:4,PATH_LENGTH:8,DATA_LENGTH:12,RESULT_LENGTH:16,ERROR_CODE:20,FLAGS:24,MODE:28,PATH_BUFFER:32,DATA_BUFFER:4128},d={CONTROL_REGION:32,PATH_BUFFER:4096,DATA_BUFFER:1048576,TOTAL:1052704},f={NONE:0,RECURSIVE:1,FORCE:2,MKDIR_RECURSIVE:1},p={IS_FILE:0,IS_DIRECTORY:1,IS_SYMLINK:2,MODE:4,SIZE:8,MTIME:16,TOTAL:24};function m(){return new t(d.TOTAL)}var h=class{int32View;uint8View;dataView;constructor(e){this.int32View=new Int32Array(e),this.uint8View=new Uint8Array(e),this.dataView=new DataView(e)}getOpCode(){return n.load(this.int32View,u.OP_CODE/4)}setOpCode(e){n.store(this.int32View,u.OP_CODE/4,e)}getStatus(){return n.load(this.int32View,u.STATUS/4)}setStatus(e){n.store(this.int32View,u.STATUS/4,e)}getPathLength(){return n.load(this.int32View,u.PATH_LENGTH/4)}setPathLength(e){n.store(this.int32View,u.PATH_LENGTH/4,e)}getDataLength(){return n.load(this.int32View,u.DATA_LENGTH/4)}setDataLength(e){n.store(this.int32View,u.DATA_LENGTH/4,e)}getResultLength(){return n.load(this.int32View,u.RESULT_LENGTH/4)}setResultLength(e){n.store(this.int32View,u.RESULT_LENGTH/4,e)}getErrorCode(){return n.load(this.int32View,u.ERROR_CODE/4)}setErrorCode(e){n.store(this.int32View,u.ERROR_CODE/4,e)}getFlags(){return n.load(this.int32View,u.FLAGS/4)}setFlags(e){n.store(this.int32View,u.FLAGS/4,e)}getMode(){return n.load(this.int32View,u.MODE/4)}setMode(e){n.store(this.int32View,u.MODE/4,e)}getPath(){let e=this.getPathLength(),t=this.uint8View.slice(u.PATH_BUFFER,u.PATH_BUFFER+e);return new TextDecoder().decode(t)}setPath(e){let t=new TextEncoder().encode(e);if(t.length>d.PATH_BUFFER)throw Error(`Path too long: ${t.length} > ${d.PATH_BUFFER}`);this.uint8View.set(t,u.PATH_BUFFER),this.setPathLength(t.length)}getData(){let e=this.getDataLength();return this.uint8View.slice(u.DATA_BUFFER,u.DATA_BUFFER+e)}setData(e){if(e.length>d.DATA_BUFFER)throw Error(`Data too large: ${e.length} > ${d.DATA_BUFFER}`);this.uint8View.set(e,u.DATA_BUFFER),this.setDataLength(e.length)}getDataAsString(){let e=this.getData();return new TextDecoder().decode(e)}setDataFromString(e){let t=new TextEncoder().encode(e);this.setData(t)}getResult(){let e=this.getResultLength();return this.uint8View.slice(u.DATA_BUFFER,u.DATA_BUFFER+e)}setResult(e){if(e.length>d.DATA_BUFFER)throw Error(`Result too large: ${e.length} > ${d.DATA_BUFFER}`);this.uint8View.set(e,u.DATA_BUFFER),this.setResultLength(e.length)}getResultAsString(){let e=this.getResult();return new TextDecoder().decode(e)}setResultFromString(e){let t=new TextEncoder().encode(e);this.setResult(t)}encodeStat(e){this.uint8View[u.DATA_BUFFER+p.IS_FILE]=e.isFile?1:0,this.uint8View[u.DATA_BUFFER+p.IS_DIRECTORY]=e.isDirectory?1:0,this.uint8View[u.DATA_BUFFER+p.IS_SYMLINK]=e.isSymbolicLink?1:0,this.dataView.setInt32(u.DATA_BUFFER+p.MODE,e.mode,!0);let t=Math.min(e.size,2**53-1);this.dataView.setFloat64(u.DATA_BUFFER+p.SIZE,t,!0),this.dataView.setFloat64(u.DATA_BUFFER+p.MTIME,e.mtime.getTime(),!0),this.setResultLength(p.TOTAL)}decodeStat(){return{isFile:this.uint8View[u.DATA_BUFFER+p.IS_FILE]===1,isDirectory:this.uint8View[u.DATA_BUFFER+p.IS_DIRECTORY]===1,isSymbolicLink:this.uint8View[u.DATA_BUFFER+p.IS_SYMLINK]===1,mode:this.dataView.getInt32(u.DATA_BUFFER+p.MODE,!0),size:this.dataView.getFloat64(u.DATA_BUFFER+p.SIZE,!0),mtime:new Date(this.dataView.getFloat64(u.DATA_BUFFER+p.MTIME,!0))}}waitForReady(e){return n.wait(this.int32View,u.STATUS/4,c.PENDING,e)}waitForReadyAsync(e){return n.waitAsync(this.int32View,u.STATUS/4,c.PENDING,e)}async waitUntilReady(e){let t=Date.now();for(;;){let r=this.getStatus();if(r===c.READY)return!0;let i=Date.now()-t;if(i>=e)return!1;let a=e-i,o=n.waitAsync(this.int32View,u.STATUS/4,r,a);if(o.async&&await o.value===`timed-out`)return!1}}waitForResult(e){return n.wait(this.int32View,u.STATUS/4,c.READY,e)}notify(){return n.notify(this.int32View,u.STATUS/4)}reset(){this.setOpCode(s.NOOP),this.setStatus(c.PENDING),this.setPathLength(0),this.setDataLength(0),this.setResultLength(0),this.setErrorCode(l.NONE),this.setFlags(f.NONE),this.setMode(0)}},g=class{fs;cwd;commandName;secureFetch;maxOutputSize;exec;protocol;running=!1;output={stdout:``,stderr:``,exitCode:0};outputLimitExceeded=!1;startTime=0;timeoutMs=0;constructor(e,t,n,r,i=void 0,a=0,o=void 0){this.fs=t,this.cwd=n,this.commandName=r,this.secureFetch=i,this.maxOutputSize=a,this.exec=o,this.protocol=new h(e)}remainingMs(){return Math.max(0,this.timeoutMs-(Date.now()-this.startTime))}raceDeadline(e){let t=this.remainingMs();if(t<=0)return this.running=!1,this.output.exitCode=124,this.output.stderr+=`
2
2
  ${this.commandName}: execution timeout exceeded
3
3
  `,Promise.reject(Error(`Operation timed out`));let n=e();return new Promise((e,a)=>{let o=i(()=>{this.running=!1,this.output.exitCode=124,this.output.stderr+=`
4
4
  ${this.commandName}: execution timeout exceeded
@@ -8,4 +8,4 @@ ${this.commandName}: execution timeout exceeded
8
8
  ${this.commandName}: execution timeout exceeded
9
9
  `,this.output.exitCode=124;break}let n=this.protocol.getOpCode();await this.handleOperation(n),this.protocol.notify()}return this.output}stop(){this.running=!1}async handleOperation(e){try{switch(e){case s.READ_FILE:await this.handleReadFile();break;case s.WRITE_FILE:await this.handleWriteFile();break;case s.STAT:await this.handleStat();break;case s.LSTAT:await this.handleLstat();break;case s.READDIR:await this.handleReaddir();break;case s.MKDIR:await this.handleMkdir();break;case s.RM:await this.handleRm();break;case s.EXISTS:await this.handleExists();break;case s.APPEND_FILE:await this.handleAppendFile();break;case s.SYMLINK:await this.handleSymlink();break;case s.READLINK:await this.handleReadlink();break;case s.CHMOD:await this.handleChmod();break;case s.REALPATH:await this.handleRealpath();break;case s.RENAME:await this.handleRename();break;case s.COPY_FILE:await this.handleCopyFile();break;case s.WRITE_STDOUT:this.handleWriteStdout();break;case s.WRITE_STDERR:this.handleWriteStderr();break;case s.EXIT:this.handleExit();break;case s.HTTP_REQUEST:await this.handleHttpRequest();break;case s.EXEC_COMMAND:await this.handleExecCommand();break;default:this.protocol.setErrorCode(l.IO_ERROR),this.protocol.setStatus(c.ERROR)}}catch(e){this.setErrorFromException(e)}}resolvePath(e){return this.fs.resolvePath(this.cwd,e)}async handleReadFile(){let e=this.resolvePath(this.protocol.getPath());try{let t=await this.fs.readFileBuffer(e);this.protocol.setResult(t),this.protocol.setStatus(c.SUCCESS)}catch(e){this.setErrorFromException(e)}}async handleWriteFile(){let e=this.resolvePath(this.protocol.getPath()),t=this.protocol.getData();try{await this.fs.writeFile(e,t),this.protocol.setStatus(c.SUCCESS)}catch(e){this.setErrorFromException(e)}}async handleStat(){let e=this.resolvePath(this.protocol.getPath());try{let t=await this.fs.stat(e);this.protocol.encodeStat(t),this.protocol.setStatus(c.SUCCESS)}catch(e){this.setErrorFromException(e)}}async handleLstat(){let e=this.resolvePath(this.protocol.getPath());try{let t=await this.fs.lstat(e);this.protocol.encodeStat(t),this.protocol.setStatus(c.SUCCESS)}catch(e){this.setErrorFromException(e)}}async handleReaddir(){let e=this.resolvePath(this.protocol.getPath());try{let t=await this.fs.readdir(e);this.protocol.setResultFromString(JSON.stringify(t)),this.protocol.setStatus(c.SUCCESS)}catch(e){this.setErrorFromException(e)}}async handleMkdir(){let e=this.resolvePath(this.protocol.getPath()),t=(this.protocol.getFlags()&f.MKDIR_RECURSIVE)!==0;try{await this.fs.mkdir(e,{recursive:t}),this.protocol.setStatus(c.SUCCESS)}catch(e){this.setErrorFromException(e)}}async handleRm(){let e=this.resolvePath(this.protocol.getPath()),t=this.protocol.getFlags(),n=(t&f.RECURSIVE)!==0,r=(t&f.FORCE)!==0;try{await this.fs.rm(e,{recursive:n,force:r}),this.protocol.setStatus(c.SUCCESS)}catch(e){this.setErrorFromException(e)}}async handleExists(){let e=this.resolvePath(this.protocol.getPath());try{let t=await this.fs.exists(e);this.protocol.setResult(new Uint8Array([t?1:0])),this.protocol.setStatus(c.SUCCESS)}catch(e){this.setErrorFromException(e)}}async handleAppendFile(){let e=this.resolvePath(this.protocol.getPath()),t=this.protocol.getData();try{await this.fs.appendFile(e,t),this.protocol.setStatus(c.SUCCESS)}catch(e){this.setErrorFromException(e)}}async handleSymlink(){let e=this.protocol.getPath(),t=this.protocol.getDataAsString(),n=this.resolvePath(e);try{await this.fs.symlink(t,n),this.protocol.setStatus(c.SUCCESS)}catch(e){this.setErrorFromException(e)}}async handleReadlink(){let e=this.resolvePath(this.protocol.getPath());try{let t=await this.fs.readlink(e);this.protocol.setResultFromString(t),this.protocol.setStatus(c.SUCCESS)}catch(e){this.setErrorFromException(e)}}async handleChmod(){let e=this.resolvePath(this.protocol.getPath()),t=this.protocol.getMode();try{await this.fs.chmod(e,t),this.protocol.setStatus(c.SUCCESS)}catch(e){this.setErrorFromException(e)}}async handleRealpath(){let e=this.resolvePath(this.protocol.getPath());try{let t=await this.fs.realpath(e);this.protocol.setResultFromString(t),this.protocol.setStatus(c.SUCCESS)}catch(e){this.setErrorFromException(e)}}async handleRename(){let e=this.resolvePath(this.protocol.getPath()),t=this.resolvePath(this.protocol.getDataAsString());try{await this.fs.mv(e,t),this.protocol.setStatus(c.SUCCESS)}catch(e){this.setErrorFromException(e)}}async handleCopyFile(){let e=this.resolvePath(this.protocol.getPath()),t=this.resolvePath(this.protocol.getDataAsString());try{await this.fs.cp(e,t),this.protocol.setStatus(c.SUCCESS)}catch(e){this.setErrorFromException(e)}}handleWriteStdout(){let e=this.protocol.getDataAsString();if(!this.tryAppendOutput(`stdout`,e)){this.outputLimitExceeded=!0,this.output.exitCode=1,this.appendOutputLimitError(),this.protocol.setErrorCode(l.IO_ERROR),this.protocol.setResultFromString(`Output size limit exceeded`),this.protocol.setStatus(c.ERROR);return}this.protocol.setStatus(c.SUCCESS)}handleWriteStderr(){let e=this.protocol.getDataAsString();if(!this.tryAppendOutput(`stderr`,e)){this.outputLimitExceeded=!0,this.output.exitCode=1,this.appendOutputLimitError(),this.protocol.setErrorCode(l.IO_ERROR),this.protocol.setResultFromString(`Output size limit exceeded`),this.protocol.setStatus(c.ERROR);return}this.protocol.setStatus(c.SUCCESS)}handleExit(){let e=this.protocol.getFlags();this.outputLimitExceeded?this.output.exitCode===0&&(this.output.exitCode=1):this.output.exitCode=e,this.protocol.setStatus(c.SUCCESS),this.running=!1}tryAppendOutput(e,t){return this.outputLimitExceeded?!1:this.maxOutputSize<=0?(e===`stdout`?this.output.stdout+=t:this.output.stderr+=t,!0):this.output.stdout.length+this.output.stderr.length+t.length>this.maxOutputSize?!1:(e===`stdout`?this.output.stdout+=t:this.output.stderr+=t,!0)}appendOutputLimitError(){if(this.maxOutputSize<=0)return;let e=`${this.commandName}: total output size exceeded (>${this.maxOutputSize} bytes), increase executionLimits.maxOutputSize
10
10
  `,t=e.length>this.maxOutputSize?e.slice(0,this.maxOutputSize):e;if(this.output.stderr.includes(`total output size exceeded`))return;let n=this.output.stdout.length+this.output.stderr.length+t.length-this.maxOutputSize;if(n>0)if(this.output.stdout.length>=n)this.output.stdout=this.output.stdout.slice(0,this.output.stdout.length-n);else{let e=n-this.output.stdout.length;this.output.stdout=``,e>=this.output.stderr.length?this.output.stderr=``:this.output.stderr=this.output.stderr.slice(0,this.output.stderr.length-e)}this.output.stderr+=t}async handleHttpRequest(){let t=this.secureFetch;if(!t){this.protocol.setErrorCode(l.NETWORK_NOT_CONFIGURED),this.protocol.setResultFromString(`Network access not configured. Enable network in Bash options.`),this.protocol.setStatus(c.ERROR);return}let n=this.protocol.getPath(),r=this.protocol.getDataAsString();try{let i=r?JSON.parse(r):{},a=this.remainingMs(),o=await this.raceDeadline(()=>t(n,{method:i.method,headers:i.headers,body:i.body,timeoutMs:a})),s=JSON.stringify({status:o.status,statusText:o.statusText,headers:o.headers,bodyBase64:e(o.body,`base64`),url:o.url});this.protocol.setResultFromString(s),this.protocol.setStatus(c.SUCCESS)}catch(e){let t=o(e instanceof Error?e.message:String(e));this.protocol.setErrorCode(l.NETWORK_ERROR),this.protocol.setResultFromString(t),this.protocol.setStatus(c.ERROR)}}async handleExecCommand(){let e=this.exec;if(!e){this.protocol.setErrorCode(l.IO_ERROR),this.protocol.setResultFromString(`Command execution not available in this context.`),this.protocol.setStatus(c.ERROR);return}let t=this.protocol.getPath(),n=this.protocol.getDataAsString(),r=new AbortController;try{let i={cwd:this.cwd,signal:r.signal};if(n){let e=JSON.parse(n);e.stdin&&(i.stdin=e.stdin),e.args&&Array.isArray(e.args)&&(i.args=e.args.map(e=>String(e)),t=a([t]))}let o=await this.raceDeadline(()=>e(t,i)),s=JSON.stringify({stdout:o.stdout,stderr:o.stderr,exitCode:o.exitCode});this.protocol.setResultFromString(s),this.protocol.setStatus(c.SUCCESS)}catch(e){r.abort();let t=e instanceof Error?e.message:String(e);this.protocol.setErrorCode(l.IO_ERROR),this.protocol.setResultFromString(t),this.protocol.setStatus(c.ERROR)}}setErrorFromException(e){let t=e instanceof Error?e.message:String(e),n=o(t),r=l.IO_ERROR,i=t.toLowerCase();i.includes(`no such file`)||i.includes(`not found`)||i.includes(`enoent`)?r=l.NOT_FOUND:i.includes(`is a directory`)||i.includes(`eisdir`)?r=l.IS_DIRECTORY:i.includes(`not a directory`)||i.includes(`enotdir`)?r=l.NOT_DIRECTORY:i.includes(`already exists`)||i.includes(`eexist`)?r=l.EXISTS:(i.includes(`permission`)||i.includes(`eperm`)||i.includes(`eacces`))&&(r=l.PERMISSION_DENIED),this.protocol.setErrorCode(r),this.protocol.setResultFromString(n),this.protocol.setStatus(c.ERROR)}};export{m as n,g as t};
11
- //# sourceMappingURL=chunk-I57KEIP3-BsA-zv3k.mjs.map
11
+ //# sourceMappingURL=chunk-I57KEIP3-BW7G5kxf.mjs.map