@inkeep/open-knowledge 0.11.0-beta.4 → 0.11.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/dist/alias-JE7RI5QX-oTDRHt3W.mjs +1 -0
  2. package/dist/assets/skills/discovery/SKILL.md +1 -1
  3. package/dist/assets/skills/project/SKILL.md +1 -1
  4. package/dist/awk2-POPGKRAI-BZ_7e8H1.mjs +1 -0
  5. package/dist/base64-4YMZCVJ5-BhIrz6He.mjs +1 -0
  6. package/dist/basename-AA2KJYZQ-C5R0pcfV.mjs +1 -0
  7. package/dist/bash-IJWYRKFO-DywpGlyx.mjs +1 -0
  8. package/dist/{build-Dt6UA4sF.mjs → build-CJEQ0nGy.mjs} +1 -1
  9. package/dist/build-CZpdADQB.mjs +1 -0
  10. package/dist/cat-RDUMLXKC-BNwer8pK.mjs +1 -0
  11. package/dist/chmod-SYMGL4JA-BN-B1xmG.mjs +1 -0
  12. package/dist/{chunk-24IMIIXA-B6yIPkk2.mjs → chunk-24IMIIXA-C-Zyd2K_.mjs} +2 -2
  13. package/dist/{chunk-3THT3N7L-DztAF386.mjs → chunk-3THT3N7L-Ce6LrnIA.mjs} +1 -1
  14. package/dist/{chunk-44UOCSGV-CaFxJDHm.mjs → chunk-44UOCSGV-uErOrz7G.mjs} +1 -1
  15. package/dist/{chunk-5QMZ5MUS-CAp625aG.mjs → chunk-5QMZ5MUS-BfIuRNkK.mjs} +2 -2
  16. package/dist/{chunk-62RKD26F-CBIDfuTL.mjs → chunk-62RKD26F-CvuML91F.mjs} +2 -2
  17. package/dist/{chunk-A4JSPFCI-v5lUtffG.mjs → chunk-A4JSPFCI-k-tJSZgB.mjs} +2 -2
  18. package/dist/{chunk-A5O5YHGN-DvJz5Cpw.mjs → chunk-A5O5YHGN-C6ngIqYR.mjs} +2 -2
  19. package/dist/{chunk-BBXLRYSX-DHx5dxhT.mjs → chunk-BBXLRYSX-Oks1GMhO.mjs} +2 -2
  20. package/dist/{chunk-BRGMQKJV-CD9YvPOS.mjs → chunk-BRGMQKJV-CHO764qS.mjs} +2 -2
  21. package/dist/{chunk-CR5AFCPT-BWXo8X-o.mjs → chunk-CR5AFCPT-CH8ZGz3B.mjs} +2 -2
  22. package/dist/{chunk-CWQS3NFK-Co4ALolT.mjs → chunk-CWQS3NFK-BP3kiNgH.mjs} +1 -1
  23. package/dist/{chunk-D6CWQ5DW-Cik2LGX1.mjs → chunk-D6CWQ5DW-BgQGt8eQ.mjs} +2 -2
  24. package/dist/{chunk-DXB73IDG-DIKSLkPq.mjs → chunk-DXB73IDG-C2RuFAAY.mjs} +1 -1
  25. package/dist/{chunk-F55TLFGB-oTuag-aK.mjs → chunk-F55TLFGB-Bkfd8ak_.mjs} +2 -2
  26. package/dist/{chunk-FEIOJCZD-C25Und0M.mjs → chunk-FEIOJCZD-DmvuPNqm.mjs} +2 -2
  27. package/dist/{chunk-GFQRA5P5-DnjwTqP3.mjs → chunk-GFQRA5P5-ePq2jelx.mjs} +1 -1
  28. package/dist/{chunk-GOV5EKKI-i-yw_7Ty.mjs → chunk-GOV5EKKI-CyL1eJ32.mjs} +2 -2
  29. package/dist/{chunk-HWBSOZZR-Bw5kf-cE.mjs → chunk-HWBSOZZR-BeVrNfQw.mjs} +2 -2
  30. package/dist/{chunk-I57KEIP3-DwNGEmJW.mjs → chunk-I57KEIP3-5RFY25TO.mjs} +2 -2
  31. package/dist/{chunk-IPJHKYVM-C3IodQq7.mjs → chunk-IPJHKYVM-D6H6ZTtk.mjs} +1 -1
  32. package/dist/{chunk-J642UCRS-DuJ82Ao2.mjs → chunk-J642UCRS-D87gHOLP.mjs} +2 -2
  33. package/dist/{chunk-LPQPILI2-CfDX1Tyv.mjs → chunk-LPQPILI2-DyyhWSR7.mjs} +2 -2
  34. package/dist/{chunk-MDDMCKUK-BrBgeH_z.mjs → chunk-MDDMCKUK-poQ25EjI.mjs} +2 -2
  35. package/dist/{chunk-MIZPJHVH-D3ET6RI_.mjs → chunk-MIZPJHVH-BdoPqh_Y.mjs} +2 -2
  36. package/dist/{chunk-MLXIYONF-dOe6Iqcc.mjs → chunk-MLXIYONF-DwewZM3r.mjs} +2 -2
  37. package/dist/{chunk-NAERJDUW-CYdostkt.mjs → chunk-NAERJDUW-BFcmkHme.mjs} +2 -2
  38. package/dist/{chunk-NUYSJFDK-CU1FKadr.mjs → chunk-NUYSJFDK-DAvAseHr.mjs} +2 -2
  39. package/dist/{chunk-NYQYO467-DUxnOnNG.mjs → chunk-NYQYO467-_2947cgi.mjs} +2 -2
  40. package/dist/{chunk-OARHFVLG-CpUL83N9.mjs → chunk-OARHFVLG-vxL5zuWx.mjs} +2 -2
  41. package/dist/{chunk-OCLXQMOG-LAs82g00.mjs → chunk-OCLXQMOG-C7k2qEN6.mjs} +2 -2
  42. package/dist/{chunk-OCS6LSEM-y5pQiBQp.mjs → chunk-OCS6LSEM-Lh1p0H-V.mjs} +2 -2
  43. package/dist/{chunk-OJDRYQWQ-ikvLWpfV.mjs → chunk-OJDRYQWQ-DWhg7YHU.mjs} +1 -1
  44. package/dist/{chunk-OL3S66CO-DjFShiWt.mjs → chunk-OL3S66CO-B3hSNlNP.mjs} +2 -2
  45. package/dist/{chunk-PBXLG62G-CU755yEQ.mjs → chunk-PBXLG62G-MmAqjdXR.mjs} +2 -2
  46. package/dist/{chunk-R6VWJ2ZL-FwG_Za20.mjs → chunk-R6VWJ2ZL-D1Ufj9fh.mjs} +1 -1
  47. package/dist/{chunk-SYMJJMQ4-tl6Dz6VW.mjs → chunk-SYMJJMQ4-DLPoQaug.mjs} +2 -2
  48. package/dist/{chunk-T56QNPHK-Dzjonwlk.mjs → chunk-T56QNPHK-TppyesRp.mjs} +2 -2
  49. package/dist/{chunk-TLSUDHID-DYvzalvd.mjs → chunk-TLSUDHID-BeulIM_X.mjs} +2 -2
  50. package/dist/{chunk-TOMNU26N-DYqwg_75.mjs → chunk-TOMNU26N-DfLjxpHW.mjs} +2 -2
  51. package/dist/{chunk-UNYNJIFU-B6KF1Gqq.mjs → chunk-UNYNJIFU--HT-3lrq.mjs} +3 -3
  52. package/dist/{chunk-VLGZJRPG-ChVasMna.mjs → chunk-VLGZJRPG-DbWYxLfI.mjs} +2 -2
  53. package/dist/{chunk-XHM67O4N-53eJIPK0.mjs → chunk-XHM67O4N-BWGDFyz_.mjs} +1 -1
  54. package/dist/{chunk-XORM457F-BlSrSdGX.mjs → chunk-XORM457F-D-QrjagQ.mjs} +2 -2
  55. package/dist/{chunk-YCFVLTST-uJkMN44i.mjs → chunk-YCFVLTST-CFJxSbsH.mjs} +2 -2
  56. package/dist/{chunk-YFG2CMIF-DYVCRkoM.mjs → chunk-YFG2CMIF-DkT4NiqV.mjs} +2 -2
  57. package/dist/{chunk-YNYSPYQ5-DesxOVHh.mjs → chunk-YNYSPYQ5-iQGTFdx0.mjs} +1 -1
  58. package/dist/{chunk-YS3AZT3J-DqU1hDNV.mjs → chunk-YS3AZT3J-w6Dw8reo.mjs} +2 -2
  59. package/dist/{chunk-YTNYSM6T-ChSQxUVG.mjs → chunk-YTNYSM6T-Cz_dxkBy.mjs} +2 -2
  60. package/dist/{chunk-Z6LRHWXI-CEAGkbzj.mjs → chunk-Z6LRHWXI-BcgkPhhu.mjs} +2 -2
  61. package/dist/clear-5CZ5X4YR-B6kVcfOw.mjs +1 -0
  62. package/dist/cli.mjs +50 -50
  63. package/dist/column-WLPMMSTS-CEev_e2R.mjs +1 -0
  64. package/dist/comm-5SLSESQG-BXsiD7To.mjs +1 -0
  65. package/dist/constants-DSCKzAUk.mjs +2 -0
  66. package/dist/cp-XOYR4ABJ-Dy5aHk72.mjs +1 -0
  67. package/dist/{curl-47BFPSFW-CseKVLFy.mjs → curl-47BFPSFW-CdMFK7aW.mjs} +2 -2
  68. package/dist/cut-OPC3VAGB-GohHdbJ4.mjs +1 -0
  69. package/dist/date-DD7FVA2V-RM_vdvCh.mjs +1 -0
  70. package/dist/diff-HJF2MPDN-Ci7M3Pfx.mjs +1 -0
  71. package/dist/dirname-LEMTZZFS-C6aDcxLl.mjs +1 -0
  72. package/dist/dist-CHRfgQ3D.mjs +1 -0
  73. package/dist/{dist-D0BxLviK.mjs → dist-DFDll_q5.mjs} +16 -17
  74. package/dist/{dist-bundle-BK4P1EQn.mjs → dist-bundle-B3l-HkEL.mjs} +1 -1
  75. package/dist/dist-bundle-XlngXUNr.mjs +1 -0
  76. package/dist/du-WO2ENHXQ-Da1HuQkH.mjs +1 -0
  77. package/dist/echo-O45JWWI2-Cr9jHdYm.mjs +1 -0
  78. package/dist/env-5EPCWSXR-6RSqo9Bn.mjs +1 -0
  79. package/dist/{esm-s2X3YAg-.mjs → esm-k1YlZnpm.mjs} +1 -1
  80. package/dist/expand-DTNXU4LQ-D4dbwBrD.mjs +1 -0
  81. package/dist/expansion-ENLSRCXJ-Bv6RV19y.mjs +1 -0
  82. package/dist/expr-5T3UU5KE-D7ekHiOy.mjs +1 -0
  83. package/dist/file-ZIGAJ4YS-DzKHvjCj.mjs +1 -0
  84. package/dist/find-TPUOAIUQ-DuBwOGWI.mjs +1 -0
  85. package/dist/{flag-coverage-QT4N2Z44-C7XMLkDY.mjs → flag-coverage-QT4N2Z44-C38ybzz7.mjs} +2 -2
  86. package/dist/fold-LDSORVYE-BQyKAmCr.mjs +1 -0
  87. package/dist/{getMachineId-bsd-BCJXEJCn.mjs → getMachineId-bsd-CzP05Ffc.mjs} +2 -2
  88. package/dist/{getMachineId-bsd-GIcY1fmf.mjs → getMachineId-bsd-D0erQsHH.mjs} +2 -2
  89. package/dist/{getMachineId-bsd-D7C80Q-x.mjs → getMachineId-bsd-Dp2q7huT.mjs} +2 -2
  90. package/dist/{getMachineId-darwin-C9wsuHP1.mjs → getMachineId-darwin-C4PiguA-.mjs} +2 -2
  91. package/dist/{getMachineId-darwin-D9y6ky_l.mjs → getMachineId-darwin-COcA_c6l.mjs} +2 -2
  92. package/dist/{getMachineId-darwin-DG876t7S.mjs → getMachineId-darwin-CywdnyvB.mjs} +2 -2
  93. package/dist/{getMachineId-linux-Bt9mk0EE.mjs → getMachineId-linux-BRPjBsHg.mjs} +2 -2
  94. package/dist/{getMachineId-linux-D9atImpV.mjs → getMachineId-linux-CQZJR55S.mjs} +2 -2
  95. package/dist/{getMachineId-linux-BJESQahL.mjs → getMachineId-linux-DcN5tfI_.mjs} +2 -2
  96. package/dist/{getMachineId-unsupported-Dabs3aBp.mjs → getMachineId-unsupported-BokXsjFr.mjs} +2 -2
  97. package/dist/{getMachineId-unsupported-cApRznzG.mjs → getMachineId-unsupported-DZAxq-oW.mjs} +2 -2
  98. package/dist/{getMachineId-unsupported-DAbsbHrs.mjs → getMachineId-unsupported-GPbM_evk.mjs} +2 -2
  99. package/dist/{getMachineId-win-CU_iAQo9.mjs → getMachineId-win-B20yaCSB.mjs} +2 -2
  100. package/dist/{getMachineId-win-CH98qgwX.mjs → getMachineId-win-BXWDfxLS.mjs} +2 -2
  101. package/dist/{getMachineId-win-1MPHaim9.mjs → getMachineId-win-BfSvDvM7.mjs} +2 -2
  102. package/dist/gh-detect-C3kYac-p.mjs +3 -0
  103. package/dist/{git-handle-BSAUg1L_-Bn2h-fYS.mjs → git-handle-BSAUg1L_-B0dX3OSo.mjs} +1 -1
  104. package/dist/git-handle-CvT4CaVU-BqccGnFS.mjs +1 -0
  105. package/dist/grep-3AIAIJVR-DhLMPK9o.mjs +1 -0
  106. package/dist/gzip-AQXSGOVS-kzAFjO_Y.mjs +1 -0
  107. package/dist/head-HT2B6D2J-BR-dv_ar.mjs +1 -0
  108. package/dist/help-VVWX7SA5-jdvqGfQj.mjs +1 -0
  109. package/dist/history-J4QRNGRO-jb5B-tWQ.mjs +1 -0
  110. package/dist/hostname-BK6HG2DE-CVVAGatl.mjs +1 -0
  111. package/dist/html-to-markdown-TFCECAGV-B5yiu2Qr.mjs +1 -0
  112. package/dist/index.d.mts +12 -1
  113. package/dist/index.mjs +1 -1
  114. package/dist/{init-DRfbG7u0.mjs → init-DOOSSLEH.mjs} +15 -15
  115. package/dist/init-s_zGdaxm.mjs +1 -0
  116. package/dist/join-GG2LDHE5-BLgXAHZ_.mjs +1 -0
  117. package/dist/jq-ODXZBPLY-JpgGenzN.mjs +1 -0
  118. package/dist/{js-exec-M6UR76J5-Cw-W_H_2.mjs → js-exec-M6UR76J5-Bo7dCQVP.mjs} +3 -3
  119. package/dist/{libesm-B_qVEpZ1.mjs → libesm-BXjuRhd9.mjs} +1 -1
  120. package/dist/ln-4TRFBYAT-C7xn5Rqr.mjs +1 -0
  121. package/dist/{loader-Dr74NhT-.mjs → loader-BrdaUVEQ.mjs} +3 -3
  122. package/dist/loader-DePwbagD.mjs +1 -0
  123. package/dist/ls-KSXFZCWH-BFVVAoBi.mjs +1 -0
  124. package/dist/md5sum-INMIK4DX-0GZIz1Ci.mjs +1 -0
  125. package/dist/mkdir-TDEMSB6C-DTyG__G-.mjs +1 -0
  126. package/dist/mv-Z6MORUFL-CmjBk72Q.mjs +1 -0
  127. package/dist/nl-U5YJDM32-5XaxKjVN.mjs +1 -0
  128. package/dist/od-VJEF2UR5-BYZOEzSd.mjs +1 -0
  129. package/dist/paste-7N6AFSDS-BnDgUhuq.mjs +1 -0
  130. package/dist/{preview-WlY5Fo0D.mjs → preview-BHPfi0n1.mjs} +2 -2
  131. package/dist/preview-CQODygq-.mjs +1 -0
  132. package/dist/printf-CX64KX2P-0abCeF-D.mjs +1 -0
  133. package/dist/public/assets/{ActivityModeContent-DYz6rey5.js → ActivityModeContent-A9JVnd1C.js} +1 -1
  134. package/dist/public/assets/{DocumentContext-B4QIWPrL.js → DocumentContext-CmBtR_Ex.js} +1 -1
  135. package/dist/public/assets/{GraphPanel-DFeRGhXy.js → GraphPanel-BvMeDFSM.js} +1 -1
  136. package/dist/public/assets/{SettingsDialogBody-B8ZGJUn1.js → SettingsDialogBody-Dhgc3_Ok.js} +1 -1
  137. package/dist/public/assets/{SourceEditor-_U6sbaL_.js → SourceEditor-D0EQlBRn.js} +1 -1
  138. package/dist/public/assets/{config-validation-events-DOsyw_ZJ.js → config-validation-events-BnNnGv50.js} +1 -1
  139. package/dist/public/assets/{index-BDfLuihf.js → index-BXJoxA8K.js} +4 -4
  140. package/dist/public/assets/{keyboard-shortcuts-Cb78kYel.js → keyboard-shortcuts-DGQUJa57.js} +1 -1
  141. package/dist/public/assets/{prop-types-IdQnEpCT.js → prop-types-z8aPJgr3.js} +155 -153
  142. package/dist/public/assets/{target-navigation-intent-CE2P4fcd.js → target-navigation-intent-BAXnlSRH.js} +1 -1
  143. package/dist/public/assets/{typing-burst-detector-jWK_zqz9.js → typing-burst-detector-DihrFfB5.js} +1 -1
  144. package/dist/public/index.html +7 -7
  145. package/dist/pwd-D4OZ7N27-AYS4A9o1.mjs +1 -0
  146. package/dist/{python3-AUFTPCU6-C02r6EXI.mjs → python3-AUFTPCU6-1PPUn2I7.mjs} +2 -2
  147. package/dist/readlink-MI4GCHJF-BvzND_DT.mjs +1 -0
  148. package/dist/{repair-launch-json-bfPeTjC1.mjs → repair-launch-json-C6PTJ9xk.mjs} +2 -2
  149. package/dist/{repair-mcp-configs-Dv7-MChW.mjs → repair-mcp-configs-1DLQ_aI_.mjs} +2 -2
  150. package/dist/{repair-skills-DYNSfoYx.mjs → repair-skills-CjT8z59t.mjs} +2 -2
  151. package/dist/repair-skills-DIfWiu1E.mjs +1 -0
  152. package/dist/rev-XOSYPP45-Bqdhxuez.mjs +1 -0
  153. package/dist/rg-FOQSCCX3-CrVzsut-.mjs +1 -0
  154. package/dist/rm-RTZG23RL-DVQCHLUL.mjs +1 -0
  155. package/dist/rmdir-XTQXT7RK-DrUUkxCF.mjs +1 -0
  156. package/dist/sed-VFTTATXJ-QHemmbCP.mjs +1 -0
  157. package/dist/seq-RN5ZUASB-BBSGpJq5.mjs +1 -0
  158. package/dist/{server-lock-BpjJj3OD-0F8DEGbQ.mjs → server-lock-BpjJj3OD-vTp6kF0e.mjs} +10 -8
  159. package/dist/server-lock-CyhBidkz-C2yQNfyA.mjs +1 -0
  160. package/dist/sha1sum-VJPNLNU6-D6-7B21n.mjs +1 -0
  161. package/dist/sha256sum-PI32XWXY-BYVtIJOS.mjs +1 -0
  162. package/dist/sleep-VZFPZFWA-C-x_VGtG.mjs +1 -0
  163. package/dist/sort-DCNRDA7U-BTlvuG7X.mjs +1 -0
  164. package/dist/split-SITCSYCZ-BmGbaiMe.mjs +1 -0
  165. package/dist/sqlite3-56UMWEY3-Cjvsy5Oo.mjs +1 -0
  166. package/dist/{src-C_kqzFe0.mjs → src-DPAvJMN5.mjs} +3 -3
  167. package/dist/{start-C2GdC0f6.mjs → start-CQvloGGb.mjs} +2 -2
  168. package/dist/start-DMPvMQIA.mjs +1 -0
  169. package/dist/stat-BT5A227F-BjNsVAze.mjs +1 -0
  170. package/dist/strings-7PLOGTPD-B6_kjNM-.mjs +1 -0
  171. package/dist/tac-SJGXQ4T2-BEQ9sZmi.mjs +1 -0
  172. package/dist/tail-S5ULNTJU-DSe2aEO8.mjs +1 -0
  173. package/dist/tar-ANUBEFJY-HbwMpE1g.mjs +1 -0
  174. package/dist/tee-O7VXZDCO-BD6QXg_b.mjs +1 -0
  175. package/dist/time-DEUO3QV2-CRnH51wk.mjs +1 -0
  176. package/dist/timeout-VRKMCG72-D_oS0IDg.mjs +1 -0
  177. package/dist/touch-DX2IJOQ4-4yR1M9Nd.mjs +1 -0
  178. package/dist/tr-2HXZRDSW-Ca-NmLk7.mjs +1 -0
  179. package/dist/tree-LYXBS7DC-CR3kfmh6.mjs +1 -0
  180. package/dist/true-WHJNXCHG-x85l8vsW.mjs +1 -0
  181. package/dist/unexpand-RGTMIGZM-D-1EwjbB.mjs +1 -0
  182. package/dist/uniq-SUNANL47-DtBj3lmA.mjs +1 -0
  183. package/dist/wc-TQB3VNOX-Qw6WjSl1.mjs +1 -0
  184. package/dist/which-XZHEH76L-B-Xo178d.mjs +1 -0
  185. package/dist/whoami-DGKU3D2X-_Mgzu6ty.mjs +1 -0
  186. package/dist/{write-project-skill-CPYFetL-.mjs → write-project-skill-B4WKDHbQ.mjs} +2 -2
  187. package/dist/xan-BXDXYEIB-qijhj_cA.mjs +1 -0
  188. package/dist/xan-view-ECQUO7AJ-BfZejrY6.mjs +1 -0
  189. package/dist/xargs-I6EZUCYF-aS184J1w.mjs +1 -0
  190. package/dist/{yazl-DjRp4wSy.mjs → yazl-CB0sfSbo.mjs} +1 -1
  191. package/dist/yazl-Dqnhfxk7.mjs +1 -0
  192. package/dist/yq-MJMAR36V-Cgql6fKu.mjs +1 -0
  193. package/package.json +1 -1
  194. package/dist/alias-JE7RI5QX-DvXqsNuT.mjs +0 -1
  195. package/dist/awk2-POPGKRAI-DjdS5H9u.mjs +0 -1
  196. package/dist/base64-4YMZCVJ5-KM4zCU91.mjs +0 -1
  197. package/dist/basename-AA2KJYZQ-623KrTZh.mjs +0 -1
  198. package/dist/bash-IJWYRKFO-Czh-Vt61.mjs +0 -1
  199. package/dist/build-CcnIXJkq.mjs +0 -1
  200. package/dist/cat-RDUMLXKC-BcPFfXNy.mjs +0 -1
  201. package/dist/chmod-SYMGL4JA-DNQ-_FB-.mjs +0 -1
  202. package/dist/clear-5CZ5X4YR-DQDNPZFX.mjs +0 -1
  203. package/dist/column-WLPMMSTS-D7ZdQMYX.mjs +0 -1
  204. package/dist/comm-5SLSESQG-D314YMTX.mjs +0 -1
  205. package/dist/constants-LiLVgWIu.mjs +0 -2
  206. package/dist/cp-XOYR4ABJ-BoeqT96E.mjs +0 -1
  207. package/dist/cut-OPC3VAGB-BduNLBmG.mjs +0 -1
  208. package/dist/date-DD7FVA2V-CXtS-UgC.mjs +0 -1
  209. package/dist/diff-HJF2MPDN-BIBcfzYf.mjs +0 -1
  210. package/dist/dirname-LEMTZZFS-y-nYlas9.mjs +0 -1
  211. package/dist/dist-DDYBq5tf.mjs +0 -1
  212. package/dist/dist-bundle-CjV1Pdeo.mjs +0 -1
  213. package/dist/du-WO2ENHXQ-DxBFDhE9.mjs +0 -1
  214. package/dist/echo-O45JWWI2-D2qFOnG-.mjs +0 -1
  215. package/dist/env-5EPCWSXR-3enSMuUq.mjs +0 -1
  216. package/dist/expand-DTNXU4LQ-ByrWF7LC.mjs +0 -1
  217. package/dist/expansion-ENLSRCXJ-ZEK-CtLJ.mjs +0 -1
  218. package/dist/expr-5T3UU5KE-DslbMHGH.mjs +0 -1
  219. package/dist/file-ZIGAJ4YS-5ydJB32I.mjs +0 -1
  220. package/dist/find-TPUOAIUQ-B-6hQsZ1.mjs +0 -1
  221. package/dist/fold-LDSORVYE-BcrX-J9k.mjs +0 -1
  222. package/dist/gh-detect-DjyibUoa.mjs +0 -3
  223. package/dist/git-handle-CvT4CaVU-HAzuhDq0.mjs +0 -1
  224. package/dist/grep-3AIAIJVR-Gk5ggptS.mjs +0 -1
  225. package/dist/gzip-AQXSGOVS-DVhom50G.mjs +0 -1
  226. package/dist/head-HT2B6D2J-ahSJqSiq.mjs +0 -1
  227. package/dist/help-VVWX7SA5-DWuklTmV.mjs +0 -1
  228. package/dist/history-J4QRNGRO-DF-FzAzf.mjs +0 -1
  229. package/dist/hostname-BK6HG2DE-BduSSI6z.mjs +0 -1
  230. package/dist/html-to-markdown-TFCECAGV-Dyh1D0fg.mjs +0 -1
  231. package/dist/init-CehvDihd.mjs +0 -1
  232. package/dist/join-GG2LDHE5-DbbozPoG.mjs +0 -1
  233. package/dist/jq-ODXZBPLY-DDNFO29H.mjs +0 -1
  234. package/dist/ln-4TRFBYAT-D-c9GUlv.mjs +0 -1
  235. package/dist/loader-CX4fDb28.mjs +0 -1
  236. package/dist/ls-KSXFZCWH-Cpvwn_RB.mjs +0 -1
  237. package/dist/md5sum-INMIK4DX-ysJE_fRH.mjs +0 -1
  238. package/dist/mkdir-TDEMSB6C-Doj-uc1V.mjs +0 -1
  239. package/dist/mv-Z6MORUFL-CB3JJwR7.mjs +0 -1
  240. package/dist/nl-U5YJDM32-DNpHPr0D.mjs +0 -1
  241. package/dist/od-VJEF2UR5-CU4HUmLC.mjs +0 -1
  242. package/dist/paste-7N6AFSDS-CRLhW5JD.mjs +0 -1
  243. package/dist/preview-b3CbdBUE.mjs +0 -1
  244. package/dist/printf-CX64KX2P-BRDA91sv.mjs +0 -1
  245. package/dist/pwd-D4OZ7N27-DOBMwDAQ.mjs +0 -1
  246. package/dist/readlink-MI4GCHJF-C7jxdmka.mjs +0 -1
  247. package/dist/repair-skills-C9qAyzit.mjs +0 -1
  248. package/dist/rev-XOSYPP45-BrzxRIO9.mjs +0 -1
  249. package/dist/rg-FOQSCCX3-D0ctWk6O.mjs +0 -1
  250. package/dist/rm-RTZG23RL-DZt78fCD.mjs +0 -1
  251. package/dist/rmdir-XTQXT7RK-CJJKrOdm.mjs +0 -1
  252. package/dist/sed-VFTTATXJ-Cv8KiT35.mjs +0 -1
  253. package/dist/seq-RN5ZUASB-BD6p5vId.mjs +0 -1
  254. package/dist/server-lock-CyhBidkz-DRsKQAKO.mjs +0 -1
  255. package/dist/sha1sum-VJPNLNU6-DukJfnER.mjs +0 -1
  256. package/dist/sha256sum-PI32XWXY-QlLE_NGo.mjs +0 -1
  257. package/dist/sleep-VZFPZFWA-gwZmptDS.mjs +0 -1
  258. package/dist/sort-DCNRDA7U-Bnmzizlk.mjs +0 -1
  259. package/dist/split-SITCSYCZ-NsOC8k0n.mjs +0 -1
  260. package/dist/sqlite3-56UMWEY3-URg2-QXI.mjs +0 -1
  261. package/dist/start-Cuu2M83v.mjs +0 -1
  262. package/dist/stat-BT5A227F-Di81wqB8.mjs +0 -1
  263. package/dist/strings-7PLOGTPD-DKTG3t3M.mjs +0 -1
  264. package/dist/tac-SJGXQ4T2-CMuGqDl5.mjs +0 -1
  265. package/dist/tail-S5ULNTJU-CxhswWhX.mjs +0 -1
  266. package/dist/tar-ANUBEFJY-BBFrIW8E.mjs +0 -1
  267. package/dist/tee-O7VXZDCO-DwJ0hUpW.mjs +0 -1
  268. package/dist/time-DEUO3QV2-W5vzutuD.mjs +0 -1
  269. package/dist/timeout-VRKMCG72-wW3XOtt7.mjs +0 -1
  270. package/dist/touch-DX2IJOQ4-C7eGjNGd.mjs +0 -1
  271. package/dist/tr-2HXZRDSW-DlafN6SW.mjs +0 -1
  272. package/dist/tree-LYXBS7DC-Ou8JkGQ1.mjs +0 -1
  273. package/dist/true-WHJNXCHG-B4B4ZHqp.mjs +0 -1
  274. package/dist/unexpand-RGTMIGZM-D6xZmTWp.mjs +0 -1
  275. package/dist/uniq-SUNANL47-Ce9L4IzE.mjs +0 -1
  276. package/dist/wc-TQB3VNOX-dwG38U4n.mjs +0 -1
  277. package/dist/which-XZHEH76L-Cw9SQliE.mjs +0 -1
  278. package/dist/whoami-DGKU3D2X-hzRI9gvz.mjs +0 -1
  279. package/dist/xan-BXDXYEIB-loWv9Mk3.mjs +0 -1
  280. package/dist/xan-view-ECQUO7AJ-8Lt55NoE.mjs +0 -1
  281. package/dist/xargs-I6EZUCYF-CG6axhMW.mjs +0 -1
  282. package/dist/yazl-CJayzk0b.mjs +0 -1
  283. package/dist/yq-MJMAR36V-CsEAtdgj.mjs +0 -1
@@ -1,4 +1,4 @@
1
- import{t as e}from"./chunk-YNYSPYQ5-DesxOVHh.mjs";import{t}from"./chunk-IPJHKYVM-C3IodQq7.mjs";import{n,r,t as i}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{s as a}from"./chunk-7TSDKFEO-a-GUGBTu.mjs";import{n as o,r as s,t as c}from"./chunk-VLGZJRPG-ChVasMna.mjs";import{gunzipSync as l}from"node:zlib";var u=a({js:{extensions:[`.js`,`.mjs`,`.cjs`,`.jsx`],globs:[]},ts:{extensions:[`.ts`,`.tsx`,`.mts`,`.cts`],globs:[]},html:{extensions:[`.html`,`.htm`,`.xhtml`],globs:[]},css:{extensions:[`.css`,`.scss`,`.sass`,`.less`],globs:[]},json:{extensions:[`.json`,`.jsonc`,`.json5`],globs:[]},xml:{extensions:[`.xml`,`.xsl`,`.xslt`],globs:[]},c:{extensions:[`.c`,`.h`],globs:[]},cpp:{extensions:[`.cpp`,`.cc`,`.cxx`,`.hpp`,`.hh`,`.hxx`,`.h`],globs:[]},rust:{extensions:[`.rs`],globs:[]},go:{extensions:[`.go`],globs:[]},zig:{extensions:[`.zig`],globs:[]},java:{extensions:[`.java`],globs:[]},kotlin:{extensions:[`.kt`,`.kts`],globs:[]},scala:{extensions:[`.scala`,`.sc`],globs:[]},clojure:{extensions:[`.clj`,`.cljc`,`.cljs`,`.edn`],globs:[]},py:{extensions:[`.py`,`.pyi`,`.pyw`],globs:[]},rb:{extensions:[`.rb`,`.rake`,`.gemspec`],globs:[`Rakefile`,`Gemfile`]},php:{extensions:[`.php`,`.phtml`,`.php3`,`.php4`,`.php5`],globs:[]},perl:{extensions:[`.pl`,`.pm`,`.pod`,`.t`],globs:[]},lua:{extensions:[`.lua`],globs:[]},sh:{extensions:[`.sh`,`.bash`,`.zsh`,`.fish`],globs:[`.bashrc`,`.zshrc`,`.profile`]},bat:{extensions:[`.bat`,`.cmd`],globs:[]},ps:{extensions:[`.ps1`,`.psm1`,`.psd1`],globs:[]},yaml:{extensions:[`.yaml`,`.yml`],globs:[]},toml:{extensions:[`.toml`],globs:[`Cargo.toml`,`pyproject.toml`]},ini:{extensions:[`.ini`,`.cfg`,`.conf`],globs:[]},csv:{extensions:[`.csv`,`.tsv`],globs:[]},md:{extensions:[`.md`,`.mdx`,`.markdown`,`.mdown`,`.mkd`],globs:[]},markdown:{extensions:[`.md`,`.mdx`,`.markdown`,`.mdown`,`.mkd`],globs:[]},rst:{extensions:[`.rst`],globs:[]},txt:{extensions:[`.txt`,`.text`],globs:[]},tex:{extensions:[`.tex`,`.ltx`,`.sty`,`.cls`],globs:[]},sql:{extensions:[`.sql`],globs:[]},graphql:{extensions:[`.graphql`,`.gql`],globs:[]},proto:{extensions:[`.proto`],globs:[]},make:{extensions:[`.mk`,`.mak`],globs:[`Makefile`,`GNUmakefile`,`makefile`]},docker:{extensions:[],globs:[`Dockerfile`,`Dockerfile.*`,`*.dockerfile`]},tf:{extensions:[`.tf`,`.tfvars`],globs:[]}}),d=class{types;constructor(){this.types=new Map(Object.entries(u).map(([e,t])=>[e,{extensions:[...t.extensions],globs:[...t.globs]}]))}addType(e){let t=e.indexOf(`:`);if(t===-1)return;let n=e.slice(0,t),r=e.slice(t+1);if(r.startsWith(`include:`)){let e=r.slice(8),t=this.types.get(e);if(t){let e=this.types.get(n)||{extensions:[],globs:[]};e.extensions.push(...t.extensions),e.globs.push(...t.globs),this.types.set(n,e)}}else{let e=this.types.get(n)||{extensions:[],globs:[]};if(r.startsWith(`*.`)&&!r.slice(2).includes(`*`)){let t=r.slice(1);e.extensions.includes(t)||e.extensions.push(t)}else e.globs.includes(r)||e.globs.push(r);this.types.set(n,e)}}clearType(e){let t=this.types.get(e);t&&(t.extensions=[],t.globs=[])}getType(e){return this.types.get(e)}getAllTypes(){return this.types}matchesType(t,n){let r=t.toLowerCase();for(let i of n){if(i===`all`){if(this.matchesAnyType(t))return!0;continue}let n=this.types.get(i);if(n){for(let e of n.extensions)if(r.endsWith(e))return!0;for(let i of n.globs)if(i.includes(`*`)){if(e(`^${i.replace(/\./g,`\\.`).replace(/\*/g,`.*`)}$`,`i`).test(t))return!0}else if(r===i.toLowerCase())return!0}}return!1}matchesAnyType(t){let n=t.toLowerCase();for(let r of this.types.values()){for(let e of r.extensions)if(n.endsWith(e))return!0;for(let i of r.globs)if(i.includes(`*`)){if(e(`^${i.replace(/\./g,`\\.`).replace(/\*/g,`.*`)}$`,`i`).test(t))return!0}else if(n===i.toLowerCase())return!0}return!1}};function f(){let e=[];for(let[t,n]of Object.entries(u).sort()){let r=[];for(let e of n.extensions)r.push(`*${e}`);for(let e of n.globs)r.push(e);e.push(`${t}: ${r.join(`, `)}`)}return`${e.join(`
1
+ import{t as e}from"./chunk-YNYSPYQ5-iQGTFdx0.mjs";import{t}from"./chunk-IPJHKYVM-D6H6ZTtk.mjs";import{n,r,t as i}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{s as a}from"./chunk-7TSDKFEO-a-GUGBTu.mjs";import{n as o,r as s,t as c}from"./chunk-VLGZJRPG-DbWYxLfI.mjs";import{gunzipSync as l}from"node:zlib";var u=a({js:{extensions:[`.js`,`.mjs`,`.cjs`,`.jsx`],globs:[]},ts:{extensions:[`.ts`,`.tsx`,`.mts`,`.cts`],globs:[]},html:{extensions:[`.html`,`.htm`,`.xhtml`],globs:[]},css:{extensions:[`.css`,`.scss`,`.sass`,`.less`],globs:[]},json:{extensions:[`.json`,`.jsonc`,`.json5`],globs:[]},xml:{extensions:[`.xml`,`.xsl`,`.xslt`],globs:[]},c:{extensions:[`.c`,`.h`],globs:[]},cpp:{extensions:[`.cpp`,`.cc`,`.cxx`,`.hpp`,`.hh`,`.hxx`,`.h`],globs:[]},rust:{extensions:[`.rs`],globs:[]},go:{extensions:[`.go`],globs:[]},zig:{extensions:[`.zig`],globs:[]},java:{extensions:[`.java`],globs:[]},kotlin:{extensions:[`.kt`,`.kts`],globs:[]},scala:{extensions:[`.scala`,`.sc`],globs:[]},clojure:{extensions:[`.clj`,`.cljc`,`.cljs`,`.edn`],globs:[]},py:{extensions:[`.py`,`.pyi`,`.pyw`],globs:[]},rb:{extensions:[`.rb`,`.rake`,`.gemspec`],globs:[`Rakefile`,`Gemfile`]},php:{extensions:[`.php`,`.phtml`,`.php3`,`.php4`,`.php5`],globs:[]},perl:{extensions:[`.pl`,`.pm`,`.pod`,`.t`],globs:[]},lua:{extensions:[`.lua`],globs:[]},sh:{extensions:[`.sh`,`.bash`,`.zsh`,`.fish`],globs:[`.bashrc`,`.zshrc`,`.profile`]},bat:{extensions:[`.bat`,`.cmd`],globs:[]},ps:{extensions:[`.ps1`,`.psm1`,`.psd1`],globs:[]},yaml:{extensions:[`.yaml`,`.yml`],globs:[]},toml:{extensions:[`.toml`],globs:[`Cargo.toml`,`pyproject.toml`]},ini:{extensions:[`.ini`,`.cfg`,`.conf`],globs:[]},csv:{extensions:[`.csv`,`.tsv`],globs:[]},md:{extensions:[`.md`,`.mdx`,`.markdown`,`.mdown`,`.mkd`],globs:[]},markdown:{extensions:[`.md`,`.mdx`,`.markdown`,`.mdown`,`.mkd`],globs:[]},rst:{extensions:[`.rst`],globs:[]},txt:{extensions:[`.txt`,`.text`],globs:[]},tex:{extensions:[`.tex`,`.ltx`,`.sty`,`.cls`],globs:[]},sql:{extensions:[`.sql`],globs:[]},graphql:{extensions:[`.graphql`,`.gql`],globs:[]},proto:{extensions:[`.proto`],globs:[]},make:{extensions:[`.mk`,`.mak`],globs:[`Makefile`,`GNUmakefile`,`makefile`]},docker:{extensions:[],globs:[`Dockerfile`,`Dockerfile.*`,`*.dockerfile`]},tf:{extensions:[`.tf`,`.tfvars`],globs:[]}}),d=class{types;constructor(){this.types=new Map(Object.entries(u).map(([e,t])=>[e,{extensions:[...t.extensions],globs:[...t.globs]}]))}addType(e){let t=e.indexOf(`:`);if(t===-1)return;let n=e.slice(0,t),r=e.slice(t+1);if(r.startsWith(`include:`)){let e=r.slice(8),t=this.types.get(e);if(t){let e=this.types.get(n)||{extensions:[],globs:[]};e.extensions.push(...t.extensions),e.globs.push(...t.globs),this.types.set(n,e)}}else{let e=this.types.get(n)||{extensions:[],globs:[]};if(r.startsWith(`*.`)&&!r.slice(2).includes(`*`)){let t=r.slice(1);e.extensions.includes(t)||e.extensions.push(t)}else e.globs.includes(r)||e.globs.push(r);this.types.set(n,e)}}clearType(e){let t=this.types.get(e);t&&(t.extensions=[],t.globs=[])}getType(e){return this.types.get(e)}getAllTypes(){return this.types}matchesType(t,n){let r=t.toLowerCase();for(let i of n){if(i===`all`){if(this.matchesAnyType(t))return!0;continue}let n=this.types.get(i);if(n){for(let e of n.extensions)if(r.endsWith(e))return!0;for(let i of n.globs)if(i.includes(`*`)){if(e(`^${i.replace(/\./g,`\\.`).replace(/\*/g,`.*`)}$`,`i`).test(t))return!0}else if(r===i.toLowerCase())return!0}}return!1}matchesAnyType(t){let n=t.toLowerCase();for(let r of this.types.values()){for(let e of r.extensions)if(n.endsWith(e))return!0;for(let i of r.globs)if(i.includes(`*`)){if(e(`^${i.replace(/\./g,`\\.`).replace(/\*/g,`.*`)}$`,`i`).test(t))return!0}else if(n===i.toLowerCase())return!0}return!1}};function f(){let e=[];for(let[t,n]of Object.entries(u).sort()){let r=[];for(let e of n.extensions)r.push(`*${e}`);for(let e of n.globs)r.push(e);e.push(`${t}: ${r.join(`, `)}`)}return`${e.join(`
2
2
  `)}
3
3
  `}function p(){return{ignoreCase:!1,caseSensitive:!1,smartCase:!0,fixedStrings:!1,wordRegexp:!1,lineRegexp:!1,invertMatch:!1,multiline:!1,multilineDotall:!1,patterns:[],patternFiles:[],count:!1,countMatches:!1,files:!1,filesWithMatches:!1,filesWithoutMatch:!1,stats:!1,onlyMatching:!1,maxCount:0,lineNumber:!0,noFilename:!1,withFilename:!1,nullSeparator:!1,byteOffset:!1,column:!1,vimgrep:!1,replace:null,afterContext:0,beforeContext:0,contextSeparator:`--`,quiet:!1,heading:!1,passthru:!1,includeZero:!1,sort:`path`,json:!1,globs:[],iglobs:[],globCaseInsensitive:!1,types:[],typesNot:[],typeAdd:[],typeClear:[],hidden:!1,noIgnore:!1,noIgnoreDot:!1,noIgnoreVcs:!1,ignoreFiles:[],maxDepth:256,maxFilesize:0,followSymlinks:!1,searchZip:!1,searchBinary:!1,preprocessor:null,preprocessorGlobs:[]}}function m(e){let t=e.match(/^(\d+)([KMG])?$/i);if(!t)return 0;let n=parseInt(t[1],10);switch((t[2]||``).toUpperCase()){case`K`:return n*1024;case`M`:return n*1024*1024;case`G`:return n*1024*1024*1024;default:return n}}function h(e){return/^\d+[KMG]?$/i.test(e)?null:{stdout:``,stderr:`rg: invalid --max-filesize value: ${e}
4
4
  `,exitCode:1}}function g(e){return null}var _=[{short:`g`,long:`glob`,target:`globs`,multi:!0},{long:`iglob`,target:`iglobs`,multi:!0},{short:`t`,long:`type`,target:`types`,multi:!0,validate:g},{short:`T`,long:`type-not`,target:`typesNot`,multi:!0,validate:g},{long:`type-add`,target:`typeAdd`,multi:!0},{long:`type-clear`,target:`typeClear`,multi:!0},{short:`m`,long:`max-count`,target:`maxCount`,parse:parseInt},{short:`e`,long:`regexp`,target:`patterns`,multi:!0},{short:`f`,long:`file`,target:`patternFiles`,multi:!0},{short:`r`,long:`replace`,target:`replace`},{short:`d`,long:`max-depth`,target:`maxDepth`,parse:parseInt},{long:`max-filesize`,target:`maxFilesize`,parse:m,validate:h},{long:`context-separator`,target:`contextSeparator`},{short:`j`,long:`threads`,target:`maxDepth`,parse:()=>1/0},{long:`ignore-file`,target:`ignoreFiles`,multi:!0},{long:`pre`,target:`preprocessor`},{long:`pre-glob`,target:`preprocessorGlobs`,multi:!0}],v=new Map([[`i`,e=>{e.ignoreCase=!0,e.caseSensitive=!1,e.smartCase=!1}],[`--ignore-case`,e=>{e.ignoreCase=!0,e.caseSensitive=!1,e.smartCase=!1}],[`s`,e=>{e.caseSensitive=!0,e.ignoreCase=!1,e.smartCase=!1}],[`--case-sensitive`,e=>{e.caseSensitive=!0,e.ignoreCase=!1,e.smartCase=!1}],[`S`,e=>{e.smartCase=!0,e.ignoreCase=!1,e.caseSensitive=!1}],[`--smart-case`,e=>{e.smartCase=!0,e.ignoreCase=!1,e.caseSensitive=!1}],[`F`,e=>{e.fixedStrings=!0}],[`--fixed-strings`,e=>{e.fixedStrings=!0}],[`w`,e=>{e.wordRegexp=!0}],[`--word-regexp`,e=>{e.wordRegexp=!0}],[`x`,e=>{e.lineRegexp=!0}],[`--line-regexp`,e=>{e.lineRegexp=!0}],[`v`,e=>{e.invertMatch=!0}],[`--invert-match`,e=>{e.invertMatch=!0}],[`U`,e=>{e.multiline=!0}],[`--multiline`,e=>{e.multiline=!0}],[`--multiline-dotall`,e=>{e.multilineDotall=!0,e.multiline=!0}],[`c`,e=>{e.count=!0}],[`--count`,e=>{e.count=!0}],[`--count-matches`,e=>{e.countMatches=!0}],[`l`,e=>{e.filesWithMatches=!0}],[`--files`,e=>{e.files=!0}],[`--files-with-matches`,e=>{e.filesWithMatches=!0}],[`--files-without-match`,e=>{e.filesWithoutMatch=!0}],[`--stats`,e=>{e.stats=!0}],[`o`,e=>{e.onlyMatching=!0}],[`--only-matching`,e=>{e.onlyMatching=!0}],[`q`,e=>{e.quiet=!0}],[`--quiet`,e=>{e.quiet=!0}],[`N`,e=>{e.lineNumber=!1}],[`--no-line-number`,e=>{e.lineNumber=!1}],[`H`,e=>{e.withFilename=!0}],[`--with-filename`,e=>{e.withFilename=!0}],[`I`,e=>{e.noFilename=!0}],[`--no-filename`,e=>{e.noFilename=!0}],[`0`,e=>{e.nullSeparator=!0}],[`--null`,e=>{e.nullSeparator=!0}],[`b`,e=>{e.byteOffset=!0}],[`--byte-offset`,e=>{e.byteOffset=!0}],[`--column`,e=>{e.column=!0,e.lineNumber=!0}],[`--no-column`,e=>{e.column=!1}],[`--vimgrep`,e=>{e.vimgrep=!0,e.column=!0,e.lineNumber=!0}],[`--json`,e=>{e.json=!0}],[`--hidden`,e=>{e.hidden=!0}],[`--no-ignore`,e=>{e.noIgnore=!0}],[`--no-ignore-dot`,e=>{e.noIgnoreDot=!0}],[`--no-ignore-vcs`,e=>{e.noIgnoreVcs=!0}],[`L`,e=>{e.followSymlinks=!0}],[`--follow`,e=>{e.followSymlinks=!0}],[`z`,e=>{e.searchZip=!0}],[`--search-zip`,e=>{e.searchZip=!0}],[`a`,e=>{e.searchBinary=!0}],[`--text`,e=>{e.searchBinary=!0}],[`--heading`,e=>{e.heading=!0}],[`--passthru`,e=>{e.passthru=!0}],[`--include-zero`,e=>{e.includeZero=!0}],[`--glob-case-insensitive`,e=>{e.globCaseInsensitive=!0}]]),y=new Set([`n`,`--line-number`]);function b(e){e.hidden?e.searchBinary=!0:e.noIgnore?e.hidden=!0:e.noIgnore=!0}function x(e,t,n){let r=e[t];for(let i of _){if(r.startsWith(`--${i.long}=`)){let e=C(n,i,r.slice(`--${i.long}=`.length));return e?{newIndex:t,error:e}:{newIndex:t}}if(i.short&&r.startsWith(`-${i.short}`)&&r.length>2){let e=C(n,i,r.slice(2));return e?{newIndex:t,error:e}:{newIndex:t}}if(i.short&&r===`-${i.short}`||r===`--${i.long}`){if(t+1>=e.length)return null;let r=e[t+1],a=C(n,i,r);return a?{newIndex:t+1,error:a}:{newIndex:t+1}}}return null}function S(e){return _.find(t=>t.short===e)}function C(e,t,n){if(t.validate){let e=t.validate(n);if(e)return e}let r=t.parse?t.parse(n):n;t.multi?e[t.target].push(r):e[t.target]=r}function w(e,t){let n=e[t];if(n===`--sort`&&t+1<e.length){let n=e[t+1];if(n===`path`||n===`none`)return{value:n,newIndex:t+1}}if(n.startsWith(`--sort=`)){let e=n.slice(7);if(e===`path`||e===`none`)return{value:e,newIndex:t}}return null}function T(e,t){let n=e[t],r=n.match(/^-([ABC])(\d+)$/);return r?{flag:r[1],value:parseInt(r[2],10),newIndex:t}:(n===`-A`||n===`-B`||n===`-C`)&&t+1<e.length?{flag:n[1],value:parseInt(e[t+1],10),newIndex:t+1}:null}function E(e){let t=e.match(/^-m(\d+)$/);return t?parseInt(t[1],10):null}function D(e){let t=p(),r=null,i=[],a=-1,o=-1,s=-1,c=!1;for(let l=0;l<e.length;l++){let u=e[l];if(u.startsWith(`-`)&&u!==`-`){let r=T(e,l);if(r){let{flag:e,value:t,newIndex:n}=r;e===`A`?a=Math.max(a,t):e===`B`?o=Math.max(o,t):s=t,l=n;continue}let i=E(u);if(i!==null){t.maxCount=i;continue}let d=x(e,l,t);if(d){if(d.error)return{success:!1,error:d.error};l=d.newIndex;continue}let f=w(e,l);if(f){t.sort=f.value,l=f.newIndex;continue}let p=u.startsWith(`--`)?[u]:u.slice(1).split(``);for(let r of p){if(y.has(r)){t.lineNumber=!0,c=!0;continue}if(r===`u`||r===`--unrestricted`){b(t);continue}if(r===`P`||r===`--pcre2`)return{success:!1,error:{stdout:``,stderr:`rg: PCRE2 is not supported. Use standard regex syntax instead.
@@ -30,4 +30,4 @@ EXAMPLES:
30
30
  rg -g '*.ts' foo Search files matching glob
31
31
  rg --hidden foo Include hidden files
32
32
  rg -l foo List files with matches only`,options:[`-e, --regexp PATTERN search for PATTERN (can be used multiple times)`,`-f, --file FILE read patterns from FILE, one per line`,`-i, --ignore-case case-insensitive search`,`-s, --case-sensitive case-sensitive search (overrides smart-case)`,`-S, --smart-case smart case (default: case-insensitive unless pattern has uppercase)`,`-F, --fixed-strings treat pattern as literal string`,`-w, --word-regexp match whole words only`,`-x, --line-regexp match whole lines only`,`-v, --invert-match select non-matching lines`,`-r, --replace TEXT replace matches with TEXT`,`-c, --count print count of matching lines per file`,` --count-matches print count of individual matches per file`,`-l, --files-with-matches print only file names with matches`,` --files-without-match print file names without matches`,` --files list files that would be searched`,`-o, --only-matching print only matching parts`,`-m, --max-count NUM stop after NUM matches per file`,`-q, --quiet suppress output, exit 0 on match`,` --stats print search statistics`,`-n, --line-number print line numbers (default: on)`,`-N, --no-line-number do not print line numbers`,`-I, --no-filename suppress the prefixing of file names`,`-0, --null use NUL as filename separator`,`-b, --byte-offset show byte offset of each match`,` --column show column number of first match`,` --vimgrep show results in vimgrep format`,` --json show results in JSON Lines format`,`-A NUM print NUM lines after each match`,`-B NUM print NUM lines before each match`,`-C NUM print NUM lines before and after each match`,` --context-separator SEP separator for context groups (default: --)`,`-U, --multiline match patterns across lines`,`-z, --search-zip search in compressed files (gzip only)`,`-g, --glob GLOB include files matching GLOB`,`-t, --type TYPE only search files of TYPE (e.g., js, py, ts)`,`-T, --type-not TYPE exclude files of TYPE`,`-L, --follow follow symbolic links`,`-u, --unrestricted reduce filtering (-u: no ignore, -uu: +hidden, -uuu: +binary)`,`-a, --text search binary files as text`,` --hidden search hidden files and directories`,` --no-ignore don't respect .gitignore/.ignore files`,`-d, --max-depth NUM maximum search depth`,` --sort TYPE sort files (path, none)`,` --heading show file path above matches`,` --passthru print all lines (non-matches use - separator)`,` --include-zero include files with 0 matches in count output`,` --type-list list all available file types`,` --help display this help and exit`]},G={name:`rg`,async execute(e,t){if(i(e))return r(W);if(e.includes(`--type-list`))return{stdout:f(),stderr:``,exitCode:0};let n=D(e);return n.success?N({ctx:t,options:n.options,paths:n.paths,explicitLineNumbers:n.explicitLineNumbers}):n.error}},K={name:`rg`,flags:[{flag:`-i`,type:`boolean`},{flag:`-s`,type:`boolean`},{flag:`-S`,type:`boolean`},{flag:`-F`,type:`boolean`},{flag:`-w`,type:`boolean`},{flag:`-x`,type:`boolean`},{flag:`-v`,type:`boolean`},{flag:`-c`,type:`boolean`},{flag:`-l`,type:`boolean`},{flag:`-o`,type:`boolean`},{flag:`-n`,type:`boolean`},{flag:`-N`,type:`boolean`},{flag:`--hidden`,type:`boolean`},{flag:`--no-ignore`,type:`boolean`},{flag:`-m`,type:`value`,valueHint:`number`},{flag:`-A`,type:`value`,valueHint:`number`},{flag:`-B`,type:`value`,valueHint:`number`},{flag:`-C`,type:`value`,valueHint:`number`},{flag:`-g`,type:`value`,valueHint:`pattern`},{flag:`-t`,type:`value`,valueHint:`string`},{flag:`-T`,type:`value`,valueHint:`string`}],needsArgs:!0};export{K as n,G as t};
33
- //# sourceMappingURL=chunk-NYQYO467-DUxnOnNG.mjs.map
33
+ //# sourceMappingURL=chunk-NYQYO467-_2947cgi.mjs.map
@@ -1,4 +1,4 @@
1
- import{n as e,t}from"./chunk-YNYSPYQ5-DesxOVHh.mjs";import{i as n}from"./chunk-GFQRA5P5-DnjwTqP3.mjs";import{n as r}from"./chunk-5QMZ5MUS-CAp625aG.mjs";import{r as i}from"./chunk-OJDRYQWQ-ikvLWpfV.mjs";import{r as a,t as o}from"./chunk-24IMIIXA-B6yIPkk2.mjs";import{n as s,r as c,t as l}from"./chunk-74CEPOFO-D1bzz49u.mjs";var u=1e4,d=100,f=new e(/\s+/);function p(e={}){let{fieldSep:t=f,maxIterations:n=u,maxRecursionDepth:r=d,maxOutputSize:i=0,fs:a,cwd:o,exec:s,coverage:c,requireDefenseContext:l}=e;return{FS:` `,OFS:` `,ORS:`
1
+ import{n as e,t}from"./chunk-YNYSPYQ5-iQGTFdx0.mjs";import{i as n}from"./chunk-GFQRA5P5-ePq2jelx.mjs";import{n as r}from"./chunk-5QMZ5MUS-BfIuRNkK.mjs";import{r as i}from"./chunk-OJDRYQWQ-DWhg7YHU.mjs";import{r as a,t as o}from"./chunk-24IMIIXA-C-Zyd2K_.mjs";import{n as s,r as c,t as l}from"./chunk-74CEPOFO-D1bzz49u.mjs";var u=1e4,d=100,f=new e(/\s+/);function p(e={}){let{fieldSep:t=f,maxIterations:n=u,maxRecursionDepth:r=d,maxOutputSize:i=0,fs:a,cwd:o,exec:s,coverage:c,requireDefenseContext:l}=e;return{FS:` `,OFS:` `,ORS:`
2
2
  `,OFMT:`%.6g`,NR:0,NF:0,FNR:0,FILENAME:``,RSTART:0,RLENGTH:-1,SUBSEP:``,fields:[],line:``,vars:Object.create(null),arrays:Object.create(null),arrayAliases:new Map,ARGC:0,ARGV:Object.create(null),ENVIRON:Object.create(null),functions:new Map,fieldSep:t,maxIterations:n,maxRecursionDepth:r,maxOutputSize:i,currentRecursionDepth:0,exitCode:0,shouldExit:!1,shouldNext:!1,shouldNextFile:!1,loopBreak:!1,loopContinue:!1,hasReturn:!1,inEndBlock:!1,output:``,openedFiles:new Set,fs:a,cwd:o,exec:s,coverage:c,requireDefenseContext:l}}function m(e,t,n){switch(n){case`+`:return e+t;case`-`:return e-t;case`*`:return e*t;case`/`:return t===0?0:e/t;case`%`:return t===0?0:e%t;case`^`:case`**`:return e**t;default:return 0}}function h(e){if(typeof e==`number`)return e;let t=parseFloat(e);return Number.isNaN(t)?0:t}function g(e){return typeof e==`string`?e:String(e)}async function _(e,t){if(e.type===`regex`)return e.pattern;let n=g(await t.evalExpr(e));return n.startsWith(`/`)&&n.endsWith(`/`)&&(n=n.slice(1,-1)),n}async function v(e,t){return e?e.type===`variable`?e.name:e.type===`field`?`$${Math.floor(h(await t.evalExpr(e.index)))}`:`$0`:`$0`}function y(e,t){if(e===`$0`)return t.line;if(e.startsWith(`$`)){let n=parseInt(e.slice(1),10)-1;return t.fields[n]||``}return g(t.vars[e]??``)}function b(e,t,n){if(e===`$0`)n.line=t,n.fields=n.FS===` `?t.trim().split(/\s+/).filter(Boolean):n.fieldSep.split(t),n.NF=n.fields.length;else if(e.startsWith(`$`)){let r=parseInt(e.slice(1),10)-1;for(;n.fields.length<=r;)n.fields.push(``);n.fields[r]=t,n.NF=n.fields.length,n.line=n.fields.join(n.OFS)}else n.vars[e]=t}async function ee(e,t,n){return e.length===0?t.line.length:g(await n.evalExpr(e[0])).length}async function x(e,t,n){if(e.length<2)return``;let r=g(await n.evalExpr(e[0])),i=Math.floor(h(await n.evalExpr(e[1])))-1;if(e.length>=3){let t=Math.floor(h(await n.evalExpr(e[2])));return r.substr(Math.max(0,i),t)}return r.substr(Math.max(0,i))}async function S(e,t,n){if(e.length<2)return 0;let r=g(await n.evalExpr(e[0])),i=g(await n.evalExpr(e[1])),a=r.indexOf(i);return a===-1?0:a+1}async function C(e,n,r){if(e.length<2)return 0;let i=g(await r.evalExpr(e[0])),a=e[1];if(a.type!==`variable`)return 0;let o=a.name,s=n.FS;if(e.length>=3){let n=e[2];if(n.type===`regex`)s=t(n.pattern);else{let e=g(await r.evalExpr(n));s=e===` `?t(`\\s+`):e}}else n.FS===` `&&(s=t(`\\s+`));let c=typeof s==`string`?i.split(s):s.split(i);n.arrays[o]=Object.create(null);for(let e=0;e<c.length;e++)n.arrays[o][String(e+1)]=c[e];return c.length}async function te(e,n,r){if(e.length<2)return 0;let i=await _(e[0],r),a=g(await r.evalExpr(e[1])),o=await v(e[2],r),s=y(o,n);try{let e=t(i).replace(s,re(a)),r=e===s?0:1;return b(o,e,n),r}catch{return 0}}async function ne(e,n,r){if(e.length<2)return 0;let i=await _(e[0],r),a=g(await r.evalExpr(e[1])),o=await v(e[2],r),s=y(o,n);try{let e=t(i,`g`),r=e.match(s),c=r?r.length:0;return b(o,e.replace(s,re(a)),n),c}catch{return 0}}function re(e){return t=>{let n=``,r=0;for(;r<e.length;)if(e[r]===`\\`&&r+1<e.length){let t=e[r+1];t===`&`?(n+=`&`,r+=2):t===`\\`?(n+=`\\`,r+=2):(n+=e[r+1],r+=2)}else e[r]===`&`?(n+=t,r++):(n+=e[r],r++);return n}}async function ie(e,n,r){if(e.length<2)return n.RSTART=0,n.RLENGTH=-1,0;let i=g(await r.evalExpr(e[0])),a=await _(e[1],r);try{let e=t(a).exec(i);if(e)return n.RSTART=e.index+1,n.RLENGTH=e[0].length,n.RSTART}catch{}return n.RSTART=0,n.RLENGTH=-1,0}async function ae(e,n,r){if(e.length<3)return``;let i=await _(e[0],r),a=g(await r.evalExpr(e[1])),o=g(await r.evalExpr(e[2])),s=e.length>=4?g(await r.evalExpr(e[3])):n.line;try{let e=o.toLowerCase()===`g`,n=e?0:parseInt(o,10)||1;if(e)return t(i,`g`).replace(s,(e,...t)=>oe(a,e,t.slice(0,-2)));{let e=0;return t(i,`g`).replace(s,(t,...r)=>(e++,e===n?oe(a,t,r.slice(0,-2)):t))}}catch{return s}}function oe(e,t,n){let r=``,i=0;for(;i<e.length;)if(e[i]===`\\`&&i+1<e.length){let a=e[i+1];if(a===`&`)r+=`&`,i+=2;else if(a===`0`)r+=t,i+=2;else if(a>=`1`&&a<=`9`){let e=parseInt(a,10)-1;r+=n[e]||``,i+=2}else a===`n`?(r+=`
3
3
  `,i+=2):a===`t`?(r+=` `,i+=2):(r+=a,i+=2)}else e[i]===`&`?(r+=t,i++):(r+=e[i],i++);return r}async function se(e,t,n){return e.length===0?``:g(await n.evalExpr(e[0])).toLowerCase()}async function ce(e,t,n){return e.length===0?``:g(await n.evalExpr(e[0])).toUpperCase()}async function le(e,t,n){if(e.length===0)return``;let r=g(await n.evalExpr(e[0])),i=[];for(let t=1;t<e.length;t++)i.push(await n.evalExpr(e[t]));return E(r,i)}async function ue(e,t,n){return e.length===0?0:Math.floor(h(await n.evalExpr(e[0])))}async function de(e,t,n){return e.length===0?0:Math.sqrt(h(await n.evalExpr(e[0])))}async function fe(e,t,n){return e.length===0?0:Math.sin(h(await n.evalExpr(e[0])))}async function pe(e,t,n){return e.length===0?0:Math.cos(h(await n.evalExpr(e[0])))}async function me(e,t,n){let r=e.length>0?h(await n.evalExpr(e[0])):0,i=e.length>1?h(await n.evalExpr(e[1])):0;return Math.atan2(r,i)}async function he(e,t,n){return e.length===0?0:Math.log(h(await n.evalExpr(e[0])))}async function ge(e,t,n){return e.length===0?1:Math.exp(h(await n.evalExpr(e[0])))}function _e(e,t,n){return t.random?t.random():Math.random()}async function ve(e,t,n){let r=e.length>0?h(await n.evalExpr(e[0])):Date.now();return t.vars._srand_seed=r,r}function ye(e,t){return()=>{throw Error(`${e}() is not supported - ${t}`)}}function w(e){return()=>{throw Error(`function '${e}()' is not implemented`)}}var T=1e4;function E(e,t){let n=0,r=``,i=0;for(;i<e.length;)if(e[i]===`%`&&i+1<e.length){let a=i+1,o=``,s=``,c=``,l,u=a;for(;a<e.length&&/\d/.test(e[a]);)a++;a>u&&e[a]===`$`?(l=parseInt(e.substring(u,a),10)-1,a++):a=u;let d=()=>{if(a<e.length){if(a+1<e.length&&(e[a]===`h`&&e[a+1]===`h`||e[a]===`l`&&e[a+1]===`l`)){a+=2;return}/[lzjh]/.test(e[a])&&a++}};for(;a<e.length&&/[-+ #0]/.test(e[a]);)o+=e[a++];if(e[a]===`*`){let e=t[n++],r=e===void 0?0:Math.floor(Number(e));r<0?(o+=`-`,s=String(Math.min(-r,T))):s=String(Math.min(r,T)),a++}else for(;a<e.length&&/\d/.test(e[a]);)s+=e[a++];if(s&&parseInt(s,10)>T&&(s=String(T)),e[a]===`.`){if(a++,e[a]===`*`){let e=t[n++];c=String(Math.min(e===void 0?0:Math.floor(Number(e)),T)),a++}else for(;a<e.length&&/\d/.test(e[a]);)c+=e[a++];c&&parseInt(c,10)>T&&(c=String(T))}d();let f=e[a],p=t[l===void 0?n:l];switch(f){case`s`:{let e=p===void 0?``:String(p);if(c&&(e=e.substring(0,parseInt(c,10))),s){let t=parseInt(s,10);e=o.includes(`-`)?e.padEnd(t):e.padStart(t)}r+=e,l===void 0&&n++;break}case`d`:case`i`:{let e=p===void 0?0:Math.floor(Number(p));Number.isNaN(e)&&(e=0);let t=e<0,i=Math.abs(e).toString();if(c){let e=parseInt(c,10);i=i.padStart(e,`0`)}let a=``;t?a=`-`:o.includes(`+`)?a=`+`:o.includes(` `)&&(a=` `);let u=a+i;if(s){let e=parseInt(s,10);u=o.includes(`-`)?u.padEnd(e):o.includes(`0`)&&!c?a+i.padStart(e-a.length,`0`):u.padStart(e)}r+=u,l===void 0&&n++;break}case`f`:{let e=p===void 0?0:Number(p);Number.isNaN(e)&&(e=0);let t=c?parseInt(c,10):6,i=e.toFixed(t);if(s){let e=parseInt(s,10);i=o.includes(`-`)?i.padEnd(e):i.padStart(e)}r+=i,l===void 0&&n++;break}case`e`:case`E`:{let e=p===void 0?0:Number(p);Number.isNaN(e)&&(e=0);let t=c?parseInt(c,10):6,i=e.toExponential(t);if(f===`E`&&(i=i.toUpperCase()),s){let e=parseInt(s,10);i=o.includes(`-`)?i.padEnd(e):i.padStart(e)}r+=i,l===void 0&&n++;break}case`g`:case`G`:{let e=p===void 0?0:Number(p);Number.isNaN(e)&&(e=0);let t=c?parseInt(c,10):6,i=e===0?0:Math.floor(Math.log10(Math.abs(e))),a;if(e===0?a=`0`:i<-4||i>=t?(a=e.toExponential(t-1),f===`G`&&(a=a.toUpperCase())):a=e.toPrecision(t),a.includes(`.`)&&(a=a.replace(/\.?0+$/,``).replace(/\.?0+e/,`e`)),a.includes(`e`)&&(a=a.replace(/\.?0+e/,`e`)),s){let e=parseInt(s,10);a=o.includes(`-`)?a.padEnd(e):a.padStart(e)}r+=a,l===void 0&&n++;break}case`x`:case`X`:{let e=p===void 0?0:Math.floor(Number(p));Number.isNaN(e)&&(e=0);let t=Math.abs(e).toString(16);if(f===`X`&&(t=t.toUpperCase()),c){let e=parseInt(c,10);t=t.padStart(e,`0`)}let i=e<0?`-`:``,a=i+t;if(s){let e=parseInt(s,10);a=o.includes(`-`)?a.padEnd(e):o.includes(`0`)&&!c?i+t.padStart(e-i.length,`0`):a.padStart(e)}r+=a,l===void 0&&n++;break}case`o`:{let e=p===void 0?0:Math.floor(Number(p));Number.isNaN(e)&&(e=0);let t=Math.abs(e).toString(8);if(c){let e=parseInt(c,10);t=t.padStart(e,`0`)}let i=e<0?`-`:``,a=i+t;if(s){let e=parseInt(s,10);a=o.includes(`-`)?a.padEnd(e):o.includes(`0`)&&!c?i+t.padStart(e-i.length,`0`):a.padStart(e)}r+=a,l===void 0&&n++;break}case`c`:typeof p==`number`?r+=String.fromCharCode(p):r+=String(p??``).charAt(0)||``,l===void 0&&n++;break;case`%`:r+=`%`;break;default:r+=e.substring(i,a+1)}i=a+1}else if(e[i]===`\\`&&i+1<e.length){let t=e[i+1];switch(t){case`n`:r+=`
4
4
  `;break;case`t`:r+=` `;break;case`r`:r+=`\r`;break;case`\\`:r+=`\\`;break;default:r+=t}i+=2}else r+=e[i++];return r}var be=new Map([[`length`,ee],[`substr`,x],[`index`,S],[`split`,C],[`sub`,te],[`gsub`,ne],[`match`,ie],[`gensub`,ae],[`tolower`,se],[`toupper`,ce],[`sprintf`,le],[`int`,ue],[`sqrt`,de],[`sin`,fe],[`cos`,pe],[`atan2`,me],[`log`,he],[`exp`,ge],[`rand`,_e],[`srand`,ve],[`system`,ye(`system`,`shell execution not allowed in sandboxed environment`)],[`close`,()=>0],[`fflush`,()=>0],[`systime`,w(`systime`)],[`mktime`,w(`mktime`)],[`strftime`,w(`strftime`)]]);function D(e){return typeof e==`number`?e!==0:!(e===``||e===`0`)}function O(e){if(typeof e==`number`)return e;let t=parseFloat(e);return Number.isNaN(t)?0:t}function k(e){return typeof e==`string`?e:String(e)}function xe(e){if(typeof e==`number`)return!0;let t=String(e).trim();return t===``?!1:!Number.isNaN(Number(t))}function A(e,n){try{return t(e).test(n)}catch{return!1}}function j(e,t){return t===``?[]:e.FS===` `?t.trim().split(/\s+/).filter(Boolean):e.fieldSep.split(t)}function M(e,t){return t===0?e.line:t<0||t>e.fields.length?``:e.fields[t-1]??``}function N(e,t,n){if(t===0)e.line=k(n),e.fields=j(e,e.line),e.NF=e.fields.length;else if(t>0){for(;e.fields.length<t;)e.fields.push(``);e.fields[t-1]=k(n),e.NF=e.fields.length,e.line=e.fields.join(e.OFS)}}function P(e,t){e.line=t,e.fields=j(e,t),e.NF=e.fields.length}function Se(n,r){if(n.FS=r,r===` `)n.fieldSep=new e(/\s+/);else try{n.fieldSep=t(r)}catch{n.fieldSep=t(r.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`))}}function F(e,t){switch(t){case`FS`:return e.FS;case`OFS`:return e.OFS;case`ORS`:return e.ORS;case`OFMT`:return e.OFMT;case`NR`:return e.NR;case`NF`:return e.NF;case`FNR`:return e.FNR;case`FILENAME`:return e.FILENAME;case`RSTART`:return e.RSTART;case`RLENGTH`:return e.RLENGTH;case`SUBSEP`:return e.SUBSEP;case`ARGC`:return e.ARGC}return e.vars[t]??``}function I(e,t,n){switch(t){case`FS`:Se(e,k(n));return;case`OFS`:e.OFS=k(n);return;case`ORS`:e.ORS=k(n);return;case`OFMT`:e.OFMT=k(n);return;case`NR`:e.NR=Math.floor(O(n));return;case`NF`:{let t=Math.floor(O(n));if(t<e.NF)e.fields=e.fields.slice(0,t),e.line=e.fields.join(e.OFS);else if(t>e.NF){for(;e.fields.length<t;)e.fields.push(``);e.line=e.fields.join(e.OFS)}e.NF=t;return}case`FNR`:e.FNR=Math.floor(O(n));return;case`FILENAME`:e.FILENAME=k(n);return;case`RSTART`:e.RSTART=Math.floor(O(n));return;case`RLENGTH`:e.RLENGTH=Math.floor(O(n));return;case`SUBSEP`:e.SUBSEP=k(n);return}e.vars[t]=n}function L(e,t){let n=t,r=new Set,i=e.arrayAliases.get(n);for(;i!==void 0&&!r.has(n);)r.add(n),n=i,i=e.arrayAliases.get(n);return n}function R(e,t,n){if(t===`ARGV`)return e.ARGV[n]??``;if(t===`ENVIRON`)return e.ENVIRON[n]??``;let r=L(e,t);return e.arrays[r]?.[n]??``}function Ce(e,t,n,r){let i=L(e,t);e.arrays[i]||(e.arrays[i]=Object.create(null)),e.arrays[i][n]=r}function we(e,t,n){if(t===`ARGV`)return e.ARGV[n]!==void 0;if(t===`ENVIRON`)return e.ENVIRON[n]!==void 0;let r=L(e,t);return e.arrays[r]?.[n]!==void 0}function Te(e,t,n){let r=L(e,t);e.arrays[r]&&delete e.arrays[r][n]}function Ee(e,t){let n=L(e,t);delete e.arrays[n]}var De=null;function Oe(e){De=e}function z(e,t){o(e.requireDefenseContext,`awk`,t)}function B(e,t,n){return a(e.requireDefenseContext,`awk`,t,n)}async function V(e,t){switch(z(e,`expression evaluation`),e.coverage?.hit(`awk:expr:${t.type}`),t.type){case`number`:return t.value;case`string`:return t.value;case`regex`:return A(t.pattern,e.line)?1:0;case`field`:return ke(e,t);case`variable`:return F(e,t.name);case`array_access`:return Ae(e,t);case`binary`:return je(e,t);case`unary`:return Pe(e,t);case`ternary`:return D(await B(e,`ternary condition evaluation`,()=>V(e,t.condition)))?await B(e,`ternary consequent evaluation`,()=>V(e,t.consequent)):await B(e,`ternary alternate evaluation`,()=>V(e,t.alternate));case`call`:return Fe(e,t.name,t.args);case`assignment`:return Le(e,t);case`pre_increment`:return Re(e,t.operand);case`pre_decrement`:return ze(e,t.operand);case`post_increment`:return Be(e,t.operand);case`post_decrement`:return Ve(e,t.operand);case`in`:return He(e,t.key,t.array);case`getline`:return Ue(e,t.variable,t.file,t.command);case`tuple`:return Ke(e,t.elements);default:return``}}async function ke(e,t){return z(e,`field reference evaluation`),M(e,Math.floor(O(await B(e,`field index evaluation`,()=>V(e,t.index)))))}async function Ae(e,t){z(e,`array access evaluation`);let n=k(await B(e,`array key evaluation`,()=>V(e,t.key)));return R(e,t.array,n)}async function je(e,r){z(e,`binary expression evaluation`);let i=r.operator;if(i===`||`)return D(await B(e,`logical-or left evaluation`,()=>V(e,r.left)))||D(await B(e,`logical-or right evaluation`,()=>V(e,r.right)))?1:0;if(i===`&&`)return D(await B(e,`logical-and left evaluation`,()=>V(e,r.left)))&&D(await B(e,`logical-and right evaluation`,()=>V(e,r.right)))?1:0;if(i===`~`){let n=await B(e,`regex left evaluation`,()=>V(e,r.left));r.right.type===`regex`&&e.coverage?.hit(`awk:expr:regex`);let i=r.right.type===`regex`?r.right.pattern:k(await B(e,`regex right evaluation`,()=>V(e,r.right)));try{return t(i).test(k(n))?1:0}catch{return 0}}if(i===`!~`){let n=await B(e,`negated-regex left evaluation`,()=>V(e,r.left));r.right.type===`regex`&&e.coverage?.hit(`awk:expr:regex`);let i=r.right.type===`regex`?r.right.pattern:k(await B(e,`negated-regex right evaluation`,()=>V(e,r.right)));try{return t(i).test(k(n))?0:1}catch{return 1}}let a=await B(e,`binary left evaluation`,()=>V(e,r.left)),o=await B(e,`binary right evaluation`,()=>V(e,r.right));if(i===` `){let t=k(a)+k(o);if(e.maxOutputSize>0&&t.length>e.maxOutputSize)throw new n(`awk: string concatenation size limit exceeded (${e.maxOutputSize} bytes)`,`string_length`,e.output);return t}return Me(i)?Ne(a,o,i):m(O(a),O(o),i)}function Me(e){return[`<`,`<=`,`>`,`>=`,`==`,`!=`].includes(e)}function Ne(e,t,n){let r=xe(e),i=xe(t);if(r&&i){let r=O(e),i=O(t);switch(n){case`<`:return r<i?1:0;case`<=`:return r<=i?1:0;case`>`:return r>i?1:0;case`>=`:return r>=i?1:0;case`==`:return r===i?1:0;case`!=`:return r===i?0:1}}let a=k(e),o=k(t);switch(n){case`<`:return a<o?1:0;case`<=`:return a<=o?1:0;case`>`:return a>o?1:0;case`>=`:return a>=o?1:0;case`==`:return a===o?1:0;case`!=`:return a===o?0:1}return 0}async function Pe(e,t){z(e,`unary expression evaluation`);let n=await B(e,`unary operand evaluation`,()=>V(e,t.operand));switch(t.operator){case`!`:return D(n)?0:1;case`-`:return-O(n);case`+`:return+O(n);default:return n}}async function Fe(e,t,n){z(e,`function call evaluation`);let r=be.get(t);if(r)return r(n,e,{evalExpr:t=>V(e,t)});let i=e.functions.get(t);return i?Ie(e,i,n):``}async function Ie(e,t,r){if(z(e,`user function call`),e.currentRecursionDepth++,e.currentRecursionDepth>e.maxRecursionDepth)throw e.currentRecursionDepth--,new n(`awk: recursion depth exceeded maximum (${e.maxRecursionDepth})`,`recursion`,e.output);let i=Object.create(null);for(let n of t.params)i[n]=e.vars[n];let a=[];for(let n=0;n<t.params.length;n++){let i=t.params[n];if(n<r.length){let t=r[n];t.type===`variable`&&(e.arrayAliases.set(i,t.name),a.push(i));let o=await B(e,`user function argument evaluation`,()=>V(e,t));e.vars[i]=o}else e.vars[i]=``}e.hasReturn=!1,e.returnValue=void 0;let o=De;o&&await B(e,`user function body execution`,()=>o(e,t.body.statements));let s=e.returnValue??``;for(let n of t.params)i[n]===void 0?delete e.vars[n]:e.vars[n]=i[n];for(let t of a)e.arrayAliases.delete(t);return e.hasReturn=!1,e.returnValue=void 0,e.currentRecursionDepth--,s}async function Le(e,t){z(e,`assignment evaluation`);let n=await B(e,`assignment value evaluation`,()=>V(e,t.value)),r=t.target,i=t.operator,a;if(i===`=`)a=n;else{let t;if(r.type===`field`)t=M(e,Math.floor(O(await B(e,`assignment field index`,()=>V(e,r.index)))));else if(r.type===`variable`)t=F(e,r.name);else{let n=k(await B(e,`assignment array key`,()=>V(e,r.key)));t=R(e,r.array,n)}let o=O(t),s=O(n);switch(i){case`+=`:a=o+s;break;case`-=`:a=o-s;break;case`*=`:a=o*s;break;case`/=`:a=s===0?0:o/s;break;case`%=`:a=s===0?0:o%s;break;case`^=`:a=o**s;break;default:a=n}}if(r.type===`field`)N(e,Math.floor(O(await B(e,`assignment target field index`,()=>V(e,r.index)))),a);else if(r.type===`variable`)I(e,r.name,a);else{let t=k(await B(e,`assignment target array key`,()=>V(e,r.key)));Ce(e,r.array,t,a)}return a}async function H(e,t,n,r){z(e,`inc/dec evaluation`);let i;if(t.type===`field`){let r=Math.floor(O(await B(e,`inc/dec field index`,()=>V(e,t.index))));i=O(M(e,r)),N(e,r,i+n)}else if(t.type===`variable`)i=O(F(e,t.name)),I(e,t.name,i+n);else{let r=k(await B(e,`inc/dec array key`,()=>V(e,t.key)));i=O(R(e,t.array,r)),Ce(e,t.array,r,i+n)}return r?i+n:i}async function Re(e,t){return H(e,t,1,!0)}async function ze(e,t){return H(e,t,-1,!0)}async function Be(e,t){return H(e,t,1,!1)}async function Ve(e,t){return H(e,t,-1,!1)}async function He(e,t,n){z(e,`in-expression evaluation`);let r;if(t.type===`tuple`){e.coverage?.hit(`awk:expr:tuple`);let n=[];for(let r of t.elements)n.push(k(await B(e,`tuple key element evaluation`,()=>V(e,r))));r=n.join(e.SUBSEP)}else r=k(await B(e,`in-expression key evaluation`,()=>V(e,t)));return we(e,n,r)?1:0}async function Ue(e,t,n,r){if(z(e,`getline evaluation`),r)return We(e,t,r);if(n)return Ge(e,t,n);if(!e.lines||e.lineIndex===void 0)return-1;let i=e.lineIndex+1;if(i>=e.lines.length)return 0;let a=e.lines[i];return t?I(e,t,a):P(e,a),e.NR++,e.lineIndex=i,1}async function We(e,t,n){let i=e.exec;if(!i)return-1;z(e,`getline command source`);let a=k(await B(e,`getline command expression`,()=>V(e,n))),o=`__cmd_${a}`,s=`__cmdi_${a}`,c,l;if(e.vars[o]===void 0)try{c=(await B(e,`getline command exec`,()=>i(a))).stdout.split(`
@@ -18,4 +18,4 @@ import{n as e,t}from"./chunk-YNYSPYQ5-DesxOVHh.mjs";import{i as n}from"./chunk-G
18
18
  `);t.length>0&&t[t.length-1]===``&&t.pop(),e.push({filename:``,lines:t})}for(let t of e){for(S.FILENAME=t.filename,S.FNR=0,S.lines=t.lines,S.lineIndex=-1,S.shouldNextFile=!1;S.lineIndex<t.lines.length-1;){S.lineIndex++;let e=S.lineIndex;if(await d(`line execution`,()=>C.executeLine(t.lines[e])),S.shouldExit||S.shouldNextFile)break}if(S.shouldExit)break}return await d(`END execution`,()=>C.executeEnd()),{stdout:C.getOutput(),stderr:``,exitCode:C.getExitCode()}}catch(e){if(e instanceof r)throw e;let t=e instanceof Error?e.message:String(e),i=e instanceof n?n.EXIT_CODE:2;return{stdout:C.getOutput(),stderr:`awk: ${t}
19
19
  `,exitCode:i}}}};function $(e){return e.replace(/\\t/g,` `).replace(/\\n/g,`
20
20
  `).replace(/\\r/g,`\r`).replace(/\\b/g,`\b`).replace(/\\f/g,`\f`).replace(/\\a/g,`\x07`).replace(/\\v/g,`\v`).replace(/\\\\/g,`\\`)}function bt(e){if(e===` `)return t(`\\s+`);if(/[[\](){}.*+?^$|\\]/.test(e))try{return t(e)}catch{return t(xt(e))}return t(xt(e))}function xt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}var St={name:`awk`,flags:[{flag:`-F`,type:`value`,valueHint:`delimiter`},{flag:`-v`,type:`value`,valueHint:`string`}],stdinType:`text`,needsArgs:!0};export{yt as n,St as t};
21
- //# sourceMappingURL=chunk-OARHFVLG-CpUL83N9.mjs.map
21
+ //# sourceMappingURL=chunk-OARHFVLG-vxL5zuWx.mjs.map
@@ -1,7 +1,7 @@
1
- import{t as e}from"./chunk-44UOCSGV-CaFxJDHm.mjs";import{n as t}from"./chunk-74CEPOFO-D1bzz49u.mjs";function n(e){let t=e.replace(/\//g,`-`),n=new Date(t);if(!Number.isNaN(n.getTime()))return n;let r=t.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(r){let[,e,t,i]=r;if(n=new Date(Number.parseInt(e,10),Number.parseInt(t,10)-1,Number.parseInt(i,10)),!Number.isNaN(n.getTime()))return n}let i=t.match(/^(\d{4})-(\d{2})-(\d{2})\s+(\d{2}):(\d{2}):(\d{2})$/);if(i){let[,e,t,r,a,o,s]=i;if(n=new Date(Number.parseInt(e,10),Number.parseInt(t,10)-1,Number.parseInt(r,10),Number.parseInt(a,10),Number.parseInt(o,10),Number.parseInt(s,10)),!Number.isNaN(n.getTime()))return n}return null}var r={name:`touch`,async execute(r,i){let a=[],o=null,s=!1;for(let e=0;e<r.length;e++){let n=r[e];if(n===`--`){a.push(...r.slice(e+1));break}else if(n===`-d`||n===`--date`){if(e+1>=r.length)return{stdout:``,stderr:`touch: option requires an argument -- 'd'
1
+ import{t as e}from"./chunk-44UOCSGV-uErOrz7G.mjs";import{n as t}from"./chunk-74CEPOFO-D1bzz49u.mjs";function n(e){let t=e.replace(/\//g,`-`),n=new Date(t);if(!Number.isNaN(n.getTime()))return n;let r=t.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(r){let[,e,t,i]=r;if(n=new Date(Number.parseInt(e,10),Number.parseInt(t,10)-1,Number.parseInt(i,10)),!Number.isNaN(n.getTime()))return n}let i=t.match(/^(\d{4})-(\d{2})-(\d{2})\s+(\d{2}):(\d{2}):(\d{2})$/);if(i){let[,e,t,r,a,o,s]=i;if(n=new Date(Number.parseInt(e,10),Number.parseInt(t,10)-1,Number.parseInt(r,10),Number.parseInt(a,10),Number.parseInt(o,10),Number.parseInt(s,10)),!Number.isNaN(n.getTime()))return n}return null}var r={name:`touch`,async execute(r,i){let a=[],o=null,s=!1;for(let e=0;e<r.length;e++){let n=r[e];if(n===`--`){a.push(...r.slice(e+1));break}else if(n===`-d`||n===`--date`){if(e+1>=r.length)return{stdout:``,stderr:`touch: option requires an argument -- 'd'
2
2
  `,exitCode:1};o=r[++e]}else if(n.startsWith(`--date=`))o=n.slice(7);else if(n===`-c`||n===`--no-create`)s=!0;else if(n===`-a`||n===`-m`||n===`-r`||n===`-t`)(n===`-r`||n===`-t`)&&e++;else{if(n.startsWith(`--`))return t(`touch`,n);if(n.startsWith(`-`)&&n.length>1){let i=!1;for(let a of n.slice(1))if(a===`c`)s=!0;else if(!(a===`a`||a===`m`))if(a===`d`){if(e+1>=r.length)return{stdout:``,stderr:`touch: option requires an argument -- 'd'
3
3
  `,exitCode:1};o=r[++e],i=!0;break}else if(a===`r`||a===`t`){e++,i=!0;break}else return t(`touch`,`-${a}`);if(i)continue}else a.push(n)}}if(a.length===0)return{stdout:``,stderr:`touch: missing file operand
4
4
  `,exitCode:1};let c=null;if(o!==null&&(c=n(o),c===null))return{stdout:``,stderr:`touch: invalid date format '${o}'
5
5
  `,exitCode:1};let l=``,u=0;for(let t of a)try{let e=i.fs.resolvePath(i.cwd,t);if(!await i.fs.exists(e)){if(s)continue;await i.fs.writeFile(e,``)}let n=c??new Date;await i.fs.utimes(e,n,n)}catch(n){l+=`touch: cannot touch '${t}': ${e(n)}
6
6
  `,u=1}return{stdout:``,stderr:l,exitCode:u}}},i={name:`touch`,flags:[{flag:`-c`,type:`boolean`},{flag:`-a`,type:`boolean`},{flag:`-m`,type:`boolean`},{flag:`-d`,type:`value`,valueHint:`string`}],needsArgs:!0};export{i as n,r as t};
7
- //# sourceMappingURL=chunk-OCLXQMOG-LAs82g00.mjs.map
7
+ //# sourceMappingURL=chunk-OCLXQMOG-C7k2qEN6.mjs.map
@@ -1,4 +1,4 @@
1
- import{t as e}from"./chunk-44UOCSGV-CaFxJDHm.mjs";import{t}from"./chunk-HWKDQ44K-CPSjqtR_.mjs";var n=`Usage: rmdir [-pv] DIRECTORY...
1
+ import{t as e}from"./chunk-44UOCSGV-uErOrz7G.mjs";import{t}from"./chunk-HWKDQ44K-CPSjqtR_.mjs";var n=`Usage: rmdir [-pv] DIRECTORY...
2
2
  Remove empty directories.
3
3
 
4
4
  Options:
@@ -11,4 +11,4 @@ Options:
11
11
  `,exitCode:1};await t.fs.rm(n,{recursive:!1,force:!1});let e=``;return i&&(e=`rmdir: removing directory, '${r}'
12
12
  `),{stdout:e,stderr:``,exitCode:0}}catch(t){return{stdout:``,stderr:`rmdir: failed to remove '${r}': ${e(t)}
13
13
  `,exitCode:1}}}function s(e){let t=e.replace(/\/+$/,``),n=t.lastIndexOf(`/`);return n===-1?`.`:n===0?`/`:t.substring(0,n)}var c={name:`rmdir`,flags:[{flag:`-p`,type:`boolean`},{flag:`-v`,type:`boolean`}],needsArgs:!0};export{i as n,c as t};
14
- //# sourceMappingURL=chunk-OCS6LSEM-y5pQiBQp.mjs.map
14
+ //# sourceMappingURL=chunk-OCS6LSEM-Lh1p0H-V.mjs.map
@@ -1,2 +1,2 @@
1
1
  function e(e){return Object.assign(Object.create(null),Object.fromEntries(e))}function t(e,t){return Object.assign(Object.create(null),Object.fromEntries(e),t)}function n(...e){return Object.assign(Object.create(null),...e)}export{t as n,e as r,n as t};
2
- //# sourceMappingURL=chunk-OJDRYQWQ-ikvLWpfV.mjs.map
2
+ //# sourceMappingURL=chunk-OJDRYQWQ-DWhg7YHU.mjs.map
@@ -1,4 +1,4 @@
1
- import{t as e}from"./chunk-YNYSPYQ5-DesxOVHh.mjs";import{i as t}from"./chunk-GFQRA5P5-DnjwTqP3.mjs";import{n}from"./chunk-5QMZ5MUS-CAp625aG.mjs";import{r,t as i}from"./chunk-24IMIIXA-B6yIPkk2.mjs";import{n as a}from"./chunk-3THT3N7L-DztAF386.mjs";import{n as o,r as s,t as c}from"./chunk-74CEPOFO-D1bzz49u.mjs";var l=new Map([[`alnum`,`a-zA-Z0-9`],[`alpha`,`a-zA-Z`],[`ascii`,`\\x00-\\x7F`],[`blank`,` \\t`],[`cntrl`,`\\x00-\\x1F\\x7F`],[`digit`,`0-9`],[`graph`,`!-~`],[`lower`,`a-z`],[`print`,` -~`],[`punct`,"!-/:-@\\[-`{-~"],[`space`,` \\t\\n\\r\\f\\v`],[`upper`,`A-Z`],[`word`,`a-zA-Z0-9_`],[`xdigit`,`0-9A-Fa-f`]]);function u(e){let t=``,n=0,r=!1;for(;n<e.length;){if(e[n]===`[`&&!r){if(e[n+1]===`[`&&e[n+2]===`:`){let r=e.indexOf(`:]]`,n+3);if(r!==-1){let i=e.slice(n+3,r),a=l.get(i);if(a){t+=`[${a}]`,n=r+3;continue}}}if(e[n+1]===`^`&&e[n+2]===`[`&&e[n+3]===`:`){let r=e.indexOf(`:]]`,n+4);if(r!==-1){let i=e.slice(n+4,r),a=l.get(i);if(a){t+=`[^${a}]`,n=r+3;continue}}}t+=`[`,n++,r=!0,n<e.length&&e[n]===`^`&&(t+=`^`,n++),n<e.length&&e[n]===`]`&&(t+=`\\]`,n++);continue}if(r){if(e[n]===`]`){t+=`]`,n++,r=!1;continue}if(e[n]===`[`&&e[n+1]===`:`){let r=e.indexOf(`:]`,n+2);if(r!==-1){let i=e.slice(n+2,r),a=l.get(i);if(a){t+=a,n=r+2;continue}}}if(e[n]===`\\`&&n+1<e.length){t+=e[n]+e[n+1],n+=2;continue}t+=e[n],n++;continue}if(e[n]===`\\`&&n+1<e.length){let r=e[n+1];if(r===`+`||r===`?`||r===`|`){t+=r,n+=2;continue}if(r===`(`||r===`)`){t+=r,n+=2;continue}if(r===`{`||r===`}`){t+=r,n+=2;continue}if(r===`t`){t+=` `,n+=2;continue}if(r===`n`){t+=`
1
+ import{t as e}from"./chunk-YNYSPYQ5-iQGTFdx0.mjs";import{i as t}from"./chunk-GFQRA5P5-ePq2jelx.mjs";import{n}from"./chunk-5QMZ5MUS-BfIuRNkK.mjs";import{r,t as i}from"./chunk-24IMIIXA-C-Zyd2K_.mjs";import{n as a}from"./chunk-3THT3N7L-Ce6LrnIA.mjs";import{n as o,r as s,t as c}from"./chunk-74CEPOFO-D1bzz49u.mjs";var l=new Map([[`alnum`,`a-zA-Z0-9`],[`alpha`,`a-zA-Z`],[`ascii`,`\\x00-\\x7F`],[`blank`,` \\t`],[`cntrl`,`\\x00-\\x1F\\x7F`],[`digit`,`0-9`],[`graph`,`!-~`],[`lower`,`a-z`],[`print`,` -~`],[`punct`,"!-/:-@\\[-`{-~"],[`space`,` \\t\\n\\r\\f\\v`],[`upper`,`A-Z`],[`word`,`a-zA-Z0-9_`],[`xdigit`,`0-9A-Fa-f`]]);function u(e){let t=``,n=0,r=!1;for(;n<e.length;){if(e[n]===`[`&&!r){if(e[n+1]===`[`&&e[n+2]===`:`){let r=e.indexOf(`:]]`,n+3);if(r!==-1){let i=e.slice(n+3,r),a=l.get(i);if(a){t+=`[${a}]`,n=r+3;continue}}}if(e[n+1]===`^`&&e[n+2]===`[`&&e[n+3]===`:`){let r=e.indexOf(`:]]`,n+4);if(r!==-1){let i=e.slice(n+4,r),a=l.get(i);if(a){t+=`[^${a}]`,n=r+3;continue}}}t+=`[`,n++,r=!0,n<e.length&&e[n]===`^`&&(t+=`^`,n++),n<e.length&&e[n]===`]`&&(t+=`\\]`,n++);continue}if(r){if(e[n]===`]`){t+=`]`,n++,r=!1;continue}if(e[n]===`[`&&e[n+1]===`:`){let r=e.indexOf(`:]`,n+2);if(r!==-1){let i=e.slice(n+2,r),a=l.get(i);if(a){t+=a,n=r+2;continue}}}if(e[n]===`\\`&&n+1<e.length){t+=e[n]+e[n+1],n+=2;continue}t+=e[n],n++;continue}if(e[n]===`\\`&&n+1<e.length){let r=e[n+1];if(r===`+`||r===`?`||r===`|`){t+=r,n+=2;continue}if(r===`(`||r===`)`){t+=r,n+=2;continue}if(r===`{`||r===`}`){t+=r,n+=2;continue}if(r===`t`){t+=` `,n+=2;continue}if(r===`n`){t+=`
2
2
  `,n+=2;continue}if(r===`r`){t+=`\r`,n+=2;continue}t+=e[n]+r,n+=2;continue}if(e[n]===`+`||e[n]===`?`||e[n]===`|`||e[n]===`(`||e[n]===`)`){t+=`\\${e[n]}`,n++;continue}if(e[n]===`^`&&!(t===``||t.endsWith(`(`))){t+=`\\^`,n++;continue}if(e[n]===`$`){let r=n===e.length-1,i=n+2<e.length&&e[n+1]===`\\`&&e[n+2]===`)`;if(!r&&!i){t+=`\\$`,n++;continue}}t+=e[n],n++}return t}function d(e){let t=``,n=!1;for(let r=0;r<e.length;r++)e[r]===`[`&&!n?(n=!0,t+=`[`,r++,r<e.length&&e[r]===`^`&&(t+=`^`,r++),r<e.length&&e[r]===`]`&&(t+=`]`,r++),r--):e[r]===`]`&&n?(n=!1,t+=`]`):!n&&e[r]===`{`&&e[r+1]===`,`?(t+=`{0,`,r++):t+=e[r];return t}function f(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n],i=r.charCodeAt(0);r===`\\`?t+=`\\\\`:r===` `?t+=`\\t`:r===`
3
3
  `?t+=`$
4
4
  `:r===`\r`?t+=`\\r`:r===`\x07`?t+=`\\a`:r===`\b`?t+=`\\b`:r===`\f`?t+=`\\f`:r===`\v`?t+=`\\v`:i<32||i>=127?t+=`\\${i.toString(8).padStart(3,`0`)}`:t+=r}return`${t}$`}var p=1e4;function m(e,t,n){return{patternSpace:``,holdSpace:``,lineNumber:0,totalLines:e,deleted:!1,printed:!1,quit:!1,quitSilent:!1,exitCode:void 0,errorMessage:void 0,appendBuffer:[],substitutionMade:!1,lineNumberOutput:[],nCommandOutput:[],restartCycle:!1,inDRestartedCycle:!1,currentFilename:t,pendingFileReads:[],pendingFileWrites:[],rangeStates:n||new Map,linesConsumedInCycle:0}}function h(e){return typeof e==`object`&&`first`in e&&`step`in e}function g(e){return typeof e==`object`&&`offset`in e}function _(t,n,r,i,a){if(t===`$`)return n===r;if(typeof t==`number`)return n===t;if(h(t)){let{first:e,step:r}=t;return r===0?n===e:(n-e)%r===0&&n>=e}if(typeof t==`object`&&`pattern`in t)try{let n=t.pattern;return n===``&&a?.lastPattern?n=a.lastPattern:n!==``&&a&&(a.lastPattern=n),e(d(u(n))).test(i)}catch{return!1}return!1}function v(e){let t=e=>e===void 0?`undefined`:e===`$`?`$`:typeof e==`number`?String(e):`pattern`in e?`/${e.pattern}/`:`first`in e?`${e.first}~${e.step}`:`unknown`;return`${t(e.start)},${t(e.end)}`}function y(e,t,n,r,i,a){if(!e||!e.start&&!e.end)return!0;let o=e.start,s=e.end;if(o!==void 0&&s===void 0)return _(o,t,n,r,a);if(o!==void 0&&s!==void 0){let c=typeof o==`object`&&`pattern`in o,l=typeof s==`object`&&`pattern`in s,u=g(s);if(u&&i){let c=v(e),l=i.get(c);return l||(l={active:!1},i.set(c,l)),l.active?(t>=(l.startLine||t)+s.offset&&(l.active=!1,i.set(c,l)),!0):_(o,t,n,r,a)?(l.active=!0,l.startLine=t,i.set(c,l),s.offset===0&&(l.active=!1,i.set(c,l)),!0):!1}if(!c&&!l&&!u){let r=typeof o==`number`?o:o===`$`?n:1,a=typeof s==`number`?s:n;if(r<=a)return t>=r&&t<=a;if(i){let n=v(e),a=i.get(n);return a||(a={active:!1},i.set(n,a)),!a.completed&&t>=r?(a.completed=!0,i.set(n,a),!0):!1}return!1}if(i){let c=v(e),l=i.get(c);if(l||(l={active:!1},i.set(c,l)),l.active)return _(s,t,n,r,a)&&(l.active=!1,typeof o==`number`&&(l.completed=!0),i.set(c,l)),!0;{if(l.completed)return!1;let e=!1;return e=typeof o==`number`?t>=o:_(o,t,n,r,a),e?(l.active=!0,l.startLine=t,i.set(c,l),_(s,t,n,r,a)&&(l.active=!1,typeof o==`number`&&(l.completed=!0),i.set(c,l)),!0):!1}}return _(o,t,n,r,a)}return!0}function b(e,t,n,r,i,a){let o=y(e,t,n,r,i,a);return e?.negated?!o:o}function x(e,t,n,r){let i=``,a=0,o=!1;for(;a<=e.length;){t.lastIndex=a;let n=t.exec(e);if(!n){i+=e.slice(a);break}if(n.index!==a){i+=e.slice(a,n.index),a=n.index,o=!1;continue}let s=n[0],c=n.slice(1);if(o&&s.length===0){if(a<e.length)i+=e[a],a++;else break;o=!1;continue}if(i+=r(s,c),o=!1,s.length===0)if(a<e.length)i+=e[a],a++;else break;else a+=s.length,o=!0}return i}function S(e,t,n){let r=``,i=0;for(;i<e.length;){if(e[i]===`\\`&&i+1<e.length){let a=e[i+1];if(a===`&`){r+=`&`,i+=2;continue}if(a===`n`){r+=`
@@ -97,4 +97,4 @@ Addresses:
97
97
  `),x+=r}try{let e=await u(`final processing`,()=>F(x,_,b,{limits:l.limits,filename:g.length===1?g[0]:void 0,fs:l.fs,cwd:l.cwd,coverage:l.coverage,requireDefenseContext:l.requireDefenseContext}));return{stdout:e.output,stderr:e.errorMessage?`${e.errorMessage}
98
98
  `:``,exitCode:e.exitCode??0}}catch(e){if(e instanceof n)throw e;if(e instanceof t)return{stdout:``,stderr:`sed: ${a(e.message)}
99
99
  `,exitCode:t.EXIT_CODE};throw e}}},L={name:`sed`,flags:[{flag:`-n`,type:`boolean`},{flag:`-i`,type:`boolean`},{flag:`-E`,type:`boolean`},{flag:`-r`,type:`boolean`},{flag:`-e`,type:`value`,valueHint:`string`}],stdinType:`text`,needsArgs:!0};export{L as n,I as t};
100
- //# sourceMappingURL=chunk-OL3S66CO-DjFShiWt.mjs.map
100
+ //# sourceMappingURL=chunk-OL3S66CO-B3hSNlNP.mjs.map
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-3THT3N7L-DztAF386.mjs";import{n as t,r as n,t as r}from"./chunk-74CEPOFO-D1bzz49u.mjs";var i={name:`ln`,summary:`make links between files`,usage:`ln [OPTIONS] TARGET LINK_NAME`,options:[`-s create a symbolic link instead of a hard link`,`-f remove existing destination files`,`-n treat LINK_NAME as a normal file if it is a symbolic link to a directory`,`-v print name of each linked file`,` --help display this help and exit`]},a={name:`ln`,async execute(a,o){if(r(a))return n(i);let s=!1,c=!1,l=!1,u=0;for(;u<a.length&&a[u].startsWith(`-`);){let e=a[u];if(e===`-s`||e===`--symbolic`)s=!0,u++;else if(e===`-f`||e===`--force`)c=!0,u++;else if(e===`-v`||e===`--verbose`)l=!0,u++;else if(e===`-n`||e===`--no-dereference`)u++;else if(/^-[sfvn]+$/.test(e))e.includes(`s`)&&(s=!0),e.includes(`f`)&&(c=!0),e.includes(`v`)&&(l=!0),u++;else if(e===`--`){u++;break}else return t(`ln`,e)}let d=a.slice(u);if(d.length<2)return{stdout:``,stderr:`ln: missing file operand
1
+ import{n as e}from"./chunk-3THT3N7L-Ce6LrnIA.mjs";import{n as t,r as n,t as r}from"./chunk-74CEPOFO-D1bzz49u.mjs";var i={name:`ln`,summary:`make links between files`,usage:`ln [OPTIONS] TARGET LINK_NAME`,options:[`-s create a symbolic link instead of a hard link`,`-f remove existing destination files`,`-n treat LINK_NAME as a normal file if it is a symbolic link to a directory`,`-v print name of each linked file`,` --help display this help and exit`]},a={name:`ln`,async execute(a,o){if(r(a))return n(i);let s=!1,c=!1,l=!1,u=0;for(;u<a.length&&a[u].startsWith(`-`);){let e=a[u];if(e===`-s`||e===`--symbolic`)s=!0,u++;else if(e===`-f`||e===`--force`)c=!0,u++;else if(e===`-v`||e===`--verbose`)l=!0,u++;else if(e===`-n`||e===`--no-dereference`)u++;else if(/^-[sfvn]+$/.test(e))e.includes(`s`)&&(s=!0),e.includes(`f`)&&(c=!0),e.includes(`v`)&&(l=!0),u++;else if(e===`--`){u++;break}else return t(`ln`,e)}let d=a.slice(u);if(d.length<2)return{stdout:``,stderr:`ln: missing file operand
2
2
  `,exitCode:1};let f=d[0],p=d[1],m=o.fs.resolvePath(o.cwd,p);if(await o.fs.exists(m))if(c)try{await o.fs.rm(m,{force:!0})}catch{return{stdout:``,stderr:`ln: cannot remove '${p}': Permission denied
3
3
  `,exitCode:1}}else return{stdout:``,stderr:`ln: failed to create ${s?`symbolic `:``}link '${p}': File exists
4
4
  `,exitCode:1};try{if(s)await o.fs.symlink(f,m);else{let e=o.fs.resolvePath(o.cwd,f);if(!await o.fs.exists(e))return{stdout:``,stderr:`ln: failed to access '${f}': No such file or directory
@@ -6,4 +6,4 @@ import{n as e}from"./chunk-3THT3N7L-DztAF386.mjs";import{n as t,r as n,t as r}fr
6
6
  `,exitCode:1}:{stdout:``,stderr:`ln: ${e(n.message)}
7
7
  `,exitCode:1}}let h=``;return l&&(h=`'${p}' -> '${f}'
8
8
  `),{stdout:h,stderr:``,exitCode:0}}},o={name:`ln`,flags:[{flag:`-s`,type:`boolean`},{flag:`-f`,type:`boolean`},{flag:`-n`,type:`boolean`},{flag:`-v`,type:`boolean`}],needsArgs:!0,minArgs:2};export{a as n,o as t};
9
- //# sourceMappingURL=chunk-PBXLG62G-CU755yEQ.mjs.map
9
+ //# sourceMappingURL=chunk-PBXLG62G-MmAqjdXR.mjs.map
@@ -1,2 +1,2 @@
1
1
  var e=new TextEncoder,t=new TextDecoder;function n(t,n){if(t instanceof Uint8Array)return t;if(n===`base64`)return Uint8Array.from(atob(t),e=>e.charCodeAt(0));if(n===`hex`){let e=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2)e[n/2]=parseInt(t.slice(n,n+2),16);return e}if(n===`binary`||n===`latin1`){if(t.length<=65536)return Uint8Array.from(t,e=>e.charCodeAt(0));let e=new Uint8Array(t.length);for(let n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}return e.encode(t)}function r(e,n){if(n===`base64`){if(typeof Buffer<`u`)return Buffer.from(e).toString(`base64`);let t=65536,n=``;for(let r=0;r<e.length;r+=t){let i=e.subarray(r,r+t);n+=String.fromCharCode(...i)}return btoa(n)}if(n===`hex`)return Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``);if(n===`binary`||n===`latin1`){if(typeof Buffer<`u`)return Buffer.from(e).toString(n);let t=65536;if(e.length<=t)return String.fromCharCode(...e);let r=``;for(let n=0;n<e.length;n+=t){let i=e.subarray(n,n+t);r+=String.fromCharCode(...i)}return r}return t.decode(e)}function i(e){if(e!=null)return typeof e==`string`?e:e.encoding??void 0}export{i as n,n as r,r as t};
2
- //# sourceMappingURL=chunk-R6VWJ2ZL-FwG_Za20.mjs.map
2
+ //# sourceMappingURL=chunk-R6VWJ2ZL-D1Ufj9fh.mjs.map
@@ -1,4 +1,4 @@
1
- import{r as e,t}from"./chunk-DXB73IDG-DIKSLkPq.mjs";var n=e((e,n)=>{(function(t,r){typeof define==`function`&&define.amd?define([],r):typeof n==`object`&&typeof e<`u`?n.exports=r():t.Papa=r()})(e,function e(){var n=(function(){return typeof self<`u`?self:typeof window<`u`?window:typeof n<`u`?n:{}})();function r(){var t=n.URL||n.webkitURL||null,r=e.toString();return c.BLOB_URL||=t.createObjectURL(new Blob([`var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; `,`(`,r,`)();`],{type:`text/javascript`}))}var i=!n.document&&!!n.postMessage,a=n.IS_PAPA_WORKER||!1,o={},s=0,c={};if(c.parse=u,c.unparse=d,c.RECORD_SEP=``,c.UNIT_SEP=``,c.BYTE_ORDER_MARK=``,c.BAD_DELIMITERS=[`\r`,`
1
+ import{r as e,t}from"./chunk-DXB73IDG-C2RuFAAY.mjs";var n=e((e,n)=>{(function(t,r){typeof define==`function`&&define.amd?define([],r):typeof n==`object`&&typeof e<`u`?n.exports=r():t.Papa=r()})(e,function e(){var n=(function(){return typeof self<`u`?self:typeof window<`u`?window:typeof n<`u`?n:{}})();function r(){var t=n.URL||n.webkitURL||null,r=e.toString();return c.BLOB_URL||=t.createObjectURL(new Blob([`var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; `,`(`,r,`)();`],{type:`text/javascript`}))}var i=!n.document&&!!n.postMessage,a=n.IS_PAPA_WORKER||!1,o={},s=0,c={};if(c.parse=u,c.unparse=d,c.RECORD_SEP=``,c.UNIT_SEP=``,c.BYTE_ORDER_MARK=``,c.BAD_DELIMITERS=[`\r`,`
2
2
  `,`"`,c.BYTE_ORDER_MARK],c.WORKERS_SUPPORTED=!i&&!!n.Worker,c.NODE_STREAM_INPUT=1,c.LocalChunkSize=1024*1024*10,c.RemoteChunkSize=1024*1024*5,c.DefaultDelimiter=`,`,c.Parser=b,c.ParserHandle=v,c.NetworkStreamer=p,c.FileStreamer=m,c.StringStreamer=h,c.ReadableStreamStreamer=g,typeof PAPA_BROWSER_CONTEXT>`u`&&(c.DuplexStreamStreamer=_),n.jQuery){var l=n.jQuery;l.fn.parse=function(e){var t=e.config||{},r=[];return this.each(function(e){if(!(l(this).prop(`tagName`).toUpperCase()===`INPUT`&&l(this).attr(`type`).toLowerCase()===`file`&&n.FileReader)||!this.files||this.files.length===0)return!0;for(var i=0;i<this.files.length;i++)r.push({file:this.files[i],inputElem:this,instanceConfig:l.extend({},t)})}),i(),this;function i(){if(r.length===0){O(e.complete)&&e.complete();return}var t=r[0];if(O(e.before)){var n=e.before(t.file,t.inputElem);if(typeof n==`object`)if(n.action===`abort`){a(`AbortError`,t.file,t.inputElem,n.reason);return}else if(n.action===`skip`){o();return}else typeof n.config==`object`&&(t.instanceConfig=l.extend(t.instanceConfig,n.config));else if(n===`skip`){o();return}}var i=t.instanceConfig.complete;t.instanceConfig.complete=function(e){O(i)&&i(e,t.file,t.inputElem),o()},c.parse(t.file,t.instanceConfig)}function a(t,n,r,i){O(e.error)&&e.error({name:t},n,r,i)}function o(){r.splice(0,1),i()}}}a&&(n.onmessage=T);function u(e,t){t||={};var r=t.dynamicTyping||!1;if(O(r)&&(t.dynamicTypingFunction=r,r={}),t.dynamicTyping=r,t.transform=O(t.transform)?t.transform:!1,t.worker&&c.WORKERS_SUPPORTED){var i=x();i.userStep=t.step,i.userChunk=t.chunk,i.userComplete=t.complete,i.userError=t.error,t.step=O(t.step),t.chunk=O(t.chunk),t.complete=O(t.complete),t.error=O(t.error),delete t.worker,i.postMessage({input:e,config:t,workerId:i.id});return}var a=null;if(e===c.NODE_STREAM_INPUT&&typeof PAPA_BROWSER_CONTEXT>`u`)return a=new _(t),a.getStream();return typeof e==`string`?(e=o(e),a=t.download?new p(t):new h(t)):e.readable===!0&&O(e.read)&&O(e.on)?a=new g(t):(n.File&&e instanceof File||e instanceof Object)&&(a=new m(t)),a.stream(e);function o(e){return e.charCodeAt(0)===65279?e.slice(1):e}}function d(e,t){var n=!1,r=!0,i=`,`,a=`\r
3
3
  `,o=`"`,s=o+o,l=!1,u=null,d=!1;p();var f=new RegExp(y(o),`g`);if(typeof e==`string`&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return m(null,e,l);if(typeof e[0]==`object`)return m(u||Object.keys(e[0]),e,l)}else if(typeof e==`object`)return typeof e.data==`string`&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||=e.meta&&e.meta.fields||u,e.fields||=Array.isArray(e.data[0])?e.fields:typeof e.data[0]==`object`?Object.keys(e.data[0]):[],!Array.isArray(e.data[0])&&typeof e.data[0]!=`object`&&(e.data=[e.data])),m(e.fields||[],e.data||[],l);throw Error(`Unable to serialize unrecognized input`);function p(){if(typeof t==`object`){if(typeof t.delimiter==`string`&&!c.BAD_DELIMITERS.filter(function(e){return t.delimiter.indexOf(e)!==-1}).length&&(i=t.delimiter),(typeof t.quotes==`boolean`||typeof t.quotes==`function`||Array.isArray(t.quotes))&&(n=t.quotes),(typeof t.skipEmptyLines==`boolean`||typeof t.skipEmptyLines==`string`)&&(l=t.skipEmptyLines),typeof t.newline==`string`&&(a=t.newline),typeof t.quoteChar==`string`&&(o=t.quoteChar),typeof t.header==`boolean`&&(r=t.header),Array.isArray(t.columns)){if(t.columns.length===0)throw Error(`Option columns is empty`);u=t.columns}t.escapeChar!==void 0&&(s=t.escapeChar+o),t.escapeFormulae instanceof RegExp?d=t.escapeFormulae:typeof t.escapeFormulae==`boolean`&&t.escapeFormulae&&(d=/^[=+\-@\t\r].*$/)}}function m(e,t,n){var o=``;typeof e==`string`&&(e=JSON.parse(e)),typeof t==`string`&&(t=JSON.parse(t));var s=Array.isArray(e)&&e.length>0,c=!Array.isArray(t[0]);if(s&&r){for(var l=0;l<e.length;l++)l>0&&(o+=i),o+=h(e[l],l);t.length>0&&(o+=a)}for(var u=0;u<t.length;u++){var d=s?e.length:t[u].length,f=!1,p=s?Object.keys(t[u]).length===0:t[u].length===0;if(n&&!s&&(f=n===`greedy`?t[u].join(``).trim()===``:t[u].length===1&&t[u][0].length===0),n===`greedy`&&s){for(var m=[],g=0;g<d;g++){var _=c?e[g]:g;m.push(t[u][_])}f=m.join(``).trim()===``}if(!f){for(var v=0;v<d;v++){v>0&&!p&&(o+=i);var y=s&&c?e[v]:v;o+=h(t[u][y],v)}u<t.length-1&&(!n||d>0&&!p)&&(o+=a)}}return o}function h(e,t){if(typeof e>`u`||e===null)return``;if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var r=!1;d&&typeof e==`string`&&d.test(e)&&(e=`'`+e,r=!0);var a=e.toString().replace(f,s);return r=r||n===!0||typeof n==`function`&&n(e,t)||Array.isArray(n)&&n[t]||g(a,c.BAD_DELIMITERS)||a.indexOf(i)>-1||a.charAt(0)===` `||a.charAt(a.length-1)===` `,r?o+a+o:a}function g(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return!0;return!1}}function f(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine=``,this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},t.call(this,e),this.parseChunk=function(e,t){let r=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&r>0){let t=this._config.newline;if(!t){let n=this._config.quoteChar||`"`;t=this._handle.guessLineEndings(e,n)}e=[...e.split(t).slice(r)].join(t)}if(this.isFirstChunk&&O(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(e);i!==void 0&&(e=i)}this.isFirstChunk=!1,this._halted=!1;var o=this._partialLine+e;this._partialLine=``;var s=this._handle.parse(o,this._baseIndex,!this._finished);if(this._handle.paused()||this._handle.aborted()){this._halted=!0;return}var l=s.meta.cursor;this._finished||(this._partialLine=o.substring(l-this._baseIndex),this._baseIndex=l),s&&s.data&&(this._rowCount+=s.data.length);var u=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(a)n.postMessage({results:s,workerId:c.WORKER_ID,finished:u});else if(O(this._config.chunk)&&!t){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted()){this._halted=!0;return}s=void 0,this._completeResults=void 0}return!this._config.step&&!this._config.chunk&&(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),!this._completed&&u&&O(this._config.complete)&&(!s||!s.meta.aborted)&&(this._config.complete(this._completeResults,this._input),this._completed=!0),!u&&(!s||!s.meta.paused)&&this._nextChunk(),s},this._sendError=function(e){O(this._config.error)?this._config.error(e):a&&this._config.error&&n.postMessage({workerId:c.WORKER_ID,error:e,finished:!1})};function t(e){var t=E(e);t.chunkSize=parseInt(t.chunkSize),!e.step&&!e.chunk&&(t.chunkSize=null),this._handle=new v(t),this._handle.streamer=this,this._config=t}}function p(e){e||={},e.chunkSize||=c.RemoteChunkSize,f.call(this,e);var t;i?this._nextChunk=function(){this._readChunk(),this._chunkLoaded()}:this._nextChunk=function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished){this._chunkLoaded();return}if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),i||(t.onload=D(this._chunkLoaded,this),t.onerror=D(this._chunkError,this)),t.open(this._config.downloadRequestBody?`POST`:`GET`,this._input,!i),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var n in e)t.setRequestHeader(n,e[n])}if(this._config.chunkSize){var r=this._start+this._config.chunkSize-1;t.setRequestHeader(`Range`,`bytes=`+this._start+`-`+r)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}i&&t.status===0&&this._chunkError()},this._chunkLoaded=function(){if(t.readyState===4){if(t.status<200||t.status>=400){this._chunkError();return}this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=n(t),this.parseChunk(t.responseText)}},this._chunkError=function(e){var n=t.statusText||e;this._sendError(Error(n))};function n(e){var t=e.getResponseHeader(`Content-Range`);return t===null?-1:parseInt(t.substring(t.lastIndexOf(`/`)+1))}}p.prototype=Object.create(f.prototype),p.prototype.constructor=p;function m(e){e||={},e.chunkSize||=c.LocalChunkSize,f.call(this,e);var t,n,r=typeof FileReader<`u`;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?(t=new FileReader,t.onload=D(this._chunkLoaded,this),t.onerror=D(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){!this._finished&&(!this._config.preview||this._rowCount<this._config.preview)&&this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var i=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,i)}var a=t.readAsText(e,this._config.encoding);r||this._chunkLoaded({target:{result:a}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}m.prototype=Object.create(f.prototype),m.prototype.constructor=m;function h(e){e||={},f.call(this,e);var t;this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e=this._config.chunkSize,n;return e?(n=t.substring(0,e),t=t.substring(e)):(n=t,t=``),this._finished=!t,this.parseChunk(n)}}}h.prototype=Object.create(h.prototype),h.prototype.constructor=h;function g(e){e||={},f.call(this,e);var t=[],n=!0,r=!1;this.pause=function(){f.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){f.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on(`data`,this._streamData),this._input.on(`end`,this._streamEnd),this._input.on(`error`,this._streamError)},this._checkIsFinished=function(){r&&t.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=D(function(e){try{t.push(typeof e==`string`?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=D(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=D(function(){this._streamCleanUp(),r=!0,this._streamData(``)},this),this._streamCleanUp=D(function(){this._input.removeListener(`data`,this._streamData),this._input.removeListener(`end`,this._streamEnd),this._input.removeListener(`error`,this._streamError)},this)}g.prototype=Object.create(f.prototype),g.prototype.constructor=g;function _(e){var n=t(`stream`).Duplex,r=E(e),i=!0,a=!1,o=[],s=null;this._onCsvData=function(e){var t=e.data;!s.push(t)&&!this._handle.paused()&&this._handle.pause()},this._onCsvComplete=function(){s.push(null)},r.step=D(this._onCsvData,this),r.complete=D(this._onCsvComplete,this),f.call(this,r),this._nextChunk=function(){a&&o.length===1&&(this._finished=!0),o.length?o.shift()():i=!0},this._addToParseQueue=function(e,t){o.push(D(function(){if(this.parseChunk(typeof e==`string`?e:e.toString(r.encoding)),O(t))return t()},this)),i&&(i=!1,this._nextChunk())},this._onRead=function(){this._handle.paused()&&this._handle.resume()},this._onWrite=function(e,t,n){this._addToParseQueue(e,n)},this._onWriteComplete=function(){a=!0,this._addToParseQueue(``)},this.getStream=function(){return s},s=new n({readableObjectMode:!0,decodeStrings:!1,read:D(this._onRead,this),write:D(this._onWrite,this)}),s.once(`finish`,D(this._onWriteComplete,this))}typeof PAPA_BROWSER_CONTEXT>`u`&&(_.prototype=Object.create(f.prototype),_.prototype.constructor=_);function v(e){var t=2**53,n=-t,r=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,i=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,a=this,o=0,s=0,l,u,d=!1,f=!1,p,m=[],h={data:[],errors:[],meta:{}};if(O(e.step)){var g=e.step;e.step=function(t){if(h=t,S())x();else{if(x(),h.data.length===0)return;o+=t.data.length,e.preview&&o>e.preview?u.abort():(h.data=h.data[0],g(h,a))}}}this.parse=function(t,n,r){var i=e.quoteChar||`"`;if(e.newline||=this.guessLineEndings(t,i),p=!1,e.delimiter)O(e.delimiter)&&(e.delimiter=e.delimiter(t),h.meta.delimiter=e.delimiter);else{var a=k(t,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);a.successful?e.delimiter=a.bestDelimiter:(p=!0,e.delimiter=c.DefaultDelimiter),h.meta.delimiter=e.delimiter}var o=E(e);return e.preview&&e.header&&o.preview++,l=t,u=new b(o),h=u.parse(l,n,r),x(),d?{meta:{paused:!0}}:h||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,u.abort(),l=O(e.chunk)?``:l.substring(u.getCharIndex())},this.resume=function(){a.streamer._halted?(d=!1,a.streamer.parseChunk(l,!0)):setTimeout(a.resume,3)},this.aborted=function(){return f},this.abort=function(){f=!0,u.abort(),h.meta.aborted=!0,O(e.complete)&&e.complete(h),l=``},this.guessLineEndings=function(e,t){e=e.substring(0,1024*1024);var n=RegExp(y(t)+`([^]*?)`+y(t),`gm`);e=e.replace(n,``);var r=e.split(`\r`),i=e.split(`
4
4
  `),a=i.length>1&&i[0].length<r[0].length;if(r.length===1||a)return`
@@ -19,4 +19,4 @@ License: MIT
19
19
  *)
20
20
  */
21
21
  export{n as t};
22
- //# sourceMappingURL=chunk-SYMJJMQ4-tl6Dz6VW.mjs.map
22
+ //# sourceMappingURL=chunk-SYMJJMQ4-DLPoQaug.mjs.map
@@ -1,4 +1,4 @@
1
- import{t as e}from"./chunk-FK9Q3tQk.mjs";import{i as t}from"./chunk-GFQRA5P5-DnjwTqP3.mjs";import{t as n}from"./chunk-44UOCSGV-CaFxJDHm.mjs";import{r,t as i}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{n as a,r as o}from"./chunk-EEXR5ZDP-C5AJH114.mjs";var s=e((e=>{(function(){var t={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function n(e){return i(o(e),arguments)}function r(e,t){return n.apply(null,[e].concat(t||[]))}function i(e,r){var i=1,a=e.length,o,s=``,c,l,u,d,f,p,m,h;for(c=0;c<a;c++)if(typeof e[c]==`string`)s+=e[c];else if(typeof e[c]==`object`){if(u=e[c],u.keys)for(o=r[i],l=0;l<u.keys.length;l++){if(o==null)throw Error(n(`[sprintf] Cannot access property "%s" of undefined value "%s"`,u.keys[l],u.keys[l-1]));o=o[u.keys[l]]}else o=u.param_no?r[u.param_no]:r[i++];if(t.not_type.test(u.type)&&t.not_primitive.test(u.type)&&o instanceof Function&&(o=o()),t.numeric_arg.test(u.type)&&typeof o!=`number`&&isNaN(o))throw TypeError(n(`[sprintf] expecting number but found %T`,o));switch(t.number.test(u.type)&&(m=o>=0),u.type){case`b`:o=parseInt(o,10).toString(2);break;case`c`:o=String.fromCharCode(parseInt(o,10));break;case`d`:case`i`:o=parseInt(o,10);break;case`j`:o=JSON.stringify(o,null,u.width?parseInt(u.width):0);break;case`e`:o=u.precision?parseFloat(o).toExponential(u.precision):parseFloat(o).toExponential();break;case`f`:o=u.precision?parseFloat(o).toFixed(u.precision):parseFloat(o);break;case`g`:o=u.precision?String(Number(o.toPrecision(u.precision))):parseFloat(o);break;case`o`:o=(parseInt(o,10)>>>0).toString(8);break;case`s`:o=String(o),o=u.precision?o.substring(0,u.precision):o;break;case`t`:o=String(!!o),o=u.precision?o.substring(0,u.precision):o;break;case`T`:o=Object.prototype.toString.call(o).slice(8,-1).toLowerCase(),o=u.precision?o.substring(0,u.precision):o;break;case`u`:o=parseInt(o,10)>>>0;break;case`v`:o=o.valueOf(),o=u.precision?o.substring(0,u.precision):o;break;case`x`:o=(parseInt(o,10)>>>0).toString(16);break;case`X`:o=(parseInt(o,10)>>>0).toString(16).toUpperCase();break}t.json.test(u.type)?s+=o:(t.number.test(u.type)&&(!m||u.sign)?(h=m?`+`:`-`,o=o.toString().replace(t.sign,``)):h=``,f=u.pad_char?u.pad_char===`0`?`0`:u.pad_char.charAt(1):` `,p=u.width-(h+o).length,d=u.width&&p>0?f.repeat(p):``,s+=u.align?h+o+d:f===`0`?h+d+o:d+h+o)}return s}var a=Object.create(null);function o(e){if(a[e])return a[e];for(var n=e,r,i=[],o=0;n;){if((r=t.text.exec(n))!==null)i.push(r[0]);else if((r=t.modulo.exec(n))!==null)i.push(`%`);else if((r=t.placeholder.exec(n))!==null){if(r[2]){o|=1;var s=[],c=r[2],l=[];if((l=t.key.exec(c))!==null)for(s.push(l[1]);(c=c.substring(l[0].length))!==``;)if((l=t.key_access.exec(c))!==null)s.push(l[1]);else if((l=t.index_access.exec(c))!==null)s.push(l[1]);else throw SyntaxError(`[sprintf] failed to parse named argument key`);else throw SyntaxError(`[sprintf] failed to parse named argument key`);r[2]=s}else o|=2;if(o===3)throw Error(`[sprintf] mixing positional and named placeholders is not (yet) supported`);i.push({placeholder:r[0],param_no:r[1],keys:r[2],sign:r[3],pad_char:r[4],align:r[5],width:r[6],precision:r[7],type:r[8]})}else throw SyntaxError(`[sprintf] unexpected placeholder`);n=n.substring(r[0].length)}return a[e]=i}e!==void 0&&(e.sprintf=n,e.vsprintf=r),typeof window<`u`&&(window.sprintf=n,window.vsprintf=r,typeof define==`function`&&define.amd&&define(function(){return{sprintf:n,vsprintf:r}}))})()}))();function c(e,t,n){let r=new Date(t*1e3),i=``,a=0;for(;a<e.length;)if(e[a]===`%`&&a+1<e.length){let t=e[a+1],o=u(r,t,n);o===null?(i+=e[a],a++):(i+=o,a+=2)}else i+=e[a],a++;return i}function l(e,t){let n={year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,weekday:`short`,hour12:!1,timeZone:t};try{let t=new Intl.DateTimeFormat(`en-US`,n).formatToParts(e),r=e=>t.find(t=>t.type===e)?.value??``,i=new Map([[`Sun`,0],[`Mon`,1],[`Tue`,2],[`Wed`,3],[`Thu`,4],[`Fri`,5],[`Sat`,6]]),a=r(`weekday`);return{year:Number.parseInt(r(`year`),10)||e.getFullYear(),month:Number.parseInt(r(`month`),10)||e.getMonth()+1,day:Number.parseInt(r(`day`),10)||e.getDate(),hour:Number.parseInt(r(`hour`),10)||e.getHours(),minute:Number.parseInt(r(`minute`),10)||e.getMinutes(),second:Number.parseInt(r(`second`),10)||e.getSeconds(),weekday:i.get(a)??e.getDay()}}catch{return{year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate(),hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),weekday:e.getDay()}}}function u(e,t,n){let r=l(e,n),i=(e,t=2)=>String(e).padStart(t,`0`),a=p(r.year,r.month,r.day),o=m(r.year,r.month,r.day,r.weekday,0),s=m(r.year,r.month,r.day,r.weekday,1);switch(t){case`a`:return[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`][r.weekday];case`A`:return[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`][r.weekday];case`b`:case`h`:return[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`][r.month-1];case`B`:return[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`][r.month-1];case`c`:return`${[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`][r.weekday]} ${[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`][r.month-1]} ${String(r.day).padStart(2,` `)} ${i(r.hour)}:${i(r.minute)}:${i(r.second)} ${r.year}`;case`C`:return i(Math.floor(r.year/100));case`d`:return i(r.day);case`D`:return`${i(r.month)}/${i(r.day)}/${i(r.year%100)}`;case`e`:return String(r.day).padStart(2,` `);case`F`:return`${r.year}-${i(r.month)}-${i(r.day)}`;case`g`:return i(g(r.year,r.month,r.day)%100);case`G`:return String(g(r.year,r.month,r.day));case`H`:return i(r.hour);case`I`:return i(r.hour%12||12);case`j`:return String(a).padStart(3,`0`);case`k`:return String(r.hour).padStart(2,` `);case`l`:return String(r.hour%12||12).padStart(2,` `);case`m`:return i(r.month);case`M`:return i(r.minute);case`n`:return`
1
+ import{t as e}from"./chunk-FK9Q3tQk.mjs";import{i as t}from"./chunk-GFQRA5P5-ePq2jelx.mjs";import{t as n}from"./chunk-44UOCSGV-uErOrz7G.mjs";import{r,t as i}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{n as a,r as o}from"./chunk-EEXR5ZDP-C5AJH114.mjs";var s=e((e=>{(function(){var t={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function n(e){return i(o(e),arguments)}function r(e,t){return n.apply(null,[e].concat(t||[]))}function i(e,r){var i=1,a=e.length,o,s=``,c,l,u,d,f,p,m,h;for(c=0;c<a;c++)if(typeof e[c]==`string`)s+=e[c];else if(typeof e[c]==`object`){if(u=e[c],u.keys)for(o=r[i],l=0;l<u.keys.length;l++){if(o==null)throw Error(n(`[sprintf] Cannot access property "%s" of undefined value "%s"`,u.keys[l],u.keys[l-1]));o=o[u.keys[l]]}else o=u.param_no?r[u.param_no]:r[i++];if(t.not_type.test(u.type)&&t.not_primitive.test(u.type)&&o instanceof Function&&(o=o()),t.numeric_arg.test(u.type)&&typeof o!=`number`&&isNaN(o))throw TypeError(n(`[sprintf] expecting number but found %T`,o));switch(t.number.test(u.type)&&(m=o>=0),u.type){case`b`:o=parseInt(o,10).toString(2);break;case`c`:o=String.fromCharCode(parseInt(o,10));break;case`d`:case`i`:o=parseInt(o,10);break;case`j`:o=JSON.stringify(o,null,u.width?parseInt(u.width):0);break;case`e`:o=u.precision?parseFloat(o).toExponential(u.precision):parseFloat(o).toExponential();break;case`f`:o=u.precision?parseFloat(o).toFixed(u.precision):parseFloat(o);break;case`g`:o=u.precision?String(Number(o.toPrecision(u.precision))):parseFloat(o);break;case`o`:o=(parseInt(o,10)>>>0).toString(8);break;case`s`:o=String(o),o=u.precision?o.substring(0,u.precision):o;break;case`t`:o=String(!!o),o=u.precision?o.substring(0,u.precision):o;break;case`T`:o=Object.prototype.toString.call(o).slice(8,-1).toLowerCase(),o=u.precision?o.substring(0,u.precision):o;break;case`u`:o=parseInt(o,10)>>>0;break;case`v`:o=o.valueOf(),o=u.precision?o.substring(0,u.precision):o;break;case`x`:o=(parseInt(o,10)>>>0).toString(16);break;case`X`:o=(parseInt(o,10)>>>0).toString(16).toUpperCase();break}t.json.test(u.type)?s+=o:(t.number.test(u.type)&&(!m||u.sign)?(h=m?`+`:`-`,o=o.toString().replace(t.sign,``)):h=``,f=u.pad_char?u.pad_char===`0`?`0`:u.pad_char.charAt(1):` `,p=u.width-(h+o).length,d=u.width&&p>0?f.repeat(p):``,s+=u.align?h+o+d:f===`0`?h+d+o:d+h+o)}return s}var a=Object.create(null);function o(e){if(a[e])return a[e];for(var n=e,r,i=[],o=0;n;){if((r=t.text.exec(n))!==null)i.push(r[0]);else if((r=t.modulo.exec(n))!==null)i.push(`%`);else if((r=t.placeholder.exec(n))!==null){if(r[2]){o|=1;var s=[],c=r[2],l=[];if((l=t.key.exec(c))!==null)for(s.push(l[1]);(c=c.substring(l[0].length))!==``;)if((l=t.key_access.exec(c))!==null)s.push(l[1]);else if((l=t.index_access.exec(c))!==null)s.push(l[1]);else throw SyntaxError(`[sprintf] failed to parse named argument key`);else throw SyntaxError(`[sprintf] failed to parse named argument key`);r[2]=s}else o|=2;if(o===3)throw Error(`[sprintf] mixing positional and named placeholders is not (yet) supported`);i.push({placeholder:r[0],param_no:r[1],keys:r[2],sign:r[3],pad_char:r[4],align:r[5],width:r[6],precision:r[7],type:r[8]})}else throw SyntaxError(`[sprintf] unexpected placeholder`);n=n.substring(r[0].length)}return a[e]=i}e!==void 0&&(e.sprintf=n,e.vsprintf=r),typeof window<`u`&&(window.sprintf=n,window.vsprintf=r,typeof define==`function`&&define.amd&&define(function(){return{sprintf:n,vsprintf:r}}))})()}))();function c(e,t,n){let r=new Date(t*1e3),i=``,a=0;for(;a<e.length;)if(e[a]===`%`&&a+1<e.length){let t=e[a+1],o=u(r,t,n);o===null?(i+=e[a],a++):(i+=o,a+=2)}else i+=e[a],a++;return i}function l(e,t){let n={year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,weekday:`short`,hour12:!1,timeZone:t};try{let t=new Intl.DateTimeFormat(`en-US`,n).formatToParts(e),r=e=>t.find(t=>t.type===e)?.value??``,i=new Map([[`Sun`,0],[`Mon`,1],[`Tue`,2],[`Wed`,3],[`Thu`,4],[`Fri`,5],[`Sat`,6]]),a=r(`weekday`);return{year:Number.parseInt(r(`year`),10)||e.getFullYear(),month:Number.parseInt(r(`month`),10)||e.getMonth()+1,day:Number.parseInt(r(`day`),10)||e.getDate(),hour:Number.parseInt(r(`hour`),10)||e.getHours(),minute:Number.parseInt(r(`minute`),10)||e.getMinutes(),second:Number.parseInt(r(`second`),10)||e.getSeconds(),weekday:i.get(a)??e.getDay()}}catch{return{year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate(),hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),weekday:e.getDay()}}}function u(e,t,n){let r=l(e,n),i=(e,t=2)=>String(e).padStart(t,`0`),a=p(r.year,r.month,r.day),o=m(r.year,r.month,r.day,r.weekday,0),s=m(r.year,r.month,r.day,r.weekday,1);switch(t){case`a`:return[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`][r.weekday];case`A`:return[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`][r.weekday];case`b`:case`h`:return[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`][r.month-1];case`B`:return[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`][r.month-1];case`c`:return`${[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`][r.weekday]} ${[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`][r.month-1]} ${String(r.day).padStart(2,` `)} ${i(r.hour)}:${i(r.minute)}:${i(r.second)} ${r.year}`;case`C`:return i(Math.floor(r.year/100));case`d`:return i(r.day);case`D`:return`${i(r.month)}/${i(r.day)}/${i(r.year%100)}`;case`e`:return String(r.day).padStart(2,` `);case`F`:return`${r.year}-${i(r.month)}-${i(r.day)}`;case`g`:return i(g(r.year,r.month,r.day)%100);case`G`:return String(g(r.year,r.month,r.day));case`H`:return i(r.hour);case`I`:return i(r.hour%12||12);case`j`:return String(a).padStart(3,`0`);case`k`:return String(r.hour).padStart(2,` `);case`l`:return String(r.hour%12||12).padStart(2,` `);case`m`:return i(r.month);case`M`:return i(r.minute);case`n`:return`
2
2
  `;case`N`:return`000000000`;case`p`:return r.hour<12?`AM`:`PM`;case`P`:return r.hour<12?`am`:`pm`;case`r`:return`${i(r.hour%12||12)}:${i(r.minute)}:${i(r.second)} ${r.hour<12?`AM`:`PM`}`;case`R`:return`${i(r.hour)}:${i(r.minute)}`;case`s`:return String(Math.floor(e.getTime()/1e3));case`S`:return i(r.second);case`t`:return` `;case`T`:return`${i(r.hour)}:${i(r.minute)}:${i(r.second)}`;case`u`:return String(r.weekday===0?7:r.weekday);case`U`:return i(o);case`V`:return i(h(r.year,r.month,r.day));case`w`:return String(r.weekday);case`W`:return i(s);case`x`:return`${i(r.month)}/${i(r.day)}/${i(r.year%100)}`;case`X`:return`${i(r.hour)}:${i(r.minute)}:${i(r.second)}`;case`y`:return i(r.year%100);case`Y`:return String(r.year);case`z`:return d(e,n);case`Z`:return f(e,n);case`%`:return`%`;default:return null}}function d(e,t){if(!t){let t=-e.getTimezoneOffset(),n=t>=0?`+`:`-`,r=Math.floor(Math.abs(t)/60),i=Math.abs(t)%60;return`${n}${String(r).padStart(2,`0`)}${String(i).padStart(2,`0`)}`}try{let n=new Intl.DateTimeFormat(`en-US`,{timeZone:t,timeZoneName:`longOffset`}).formatToParts(e).find(e=>e.type===`timeZoneName`);if(n){let e=n.value.match(/GMT([+-])(\d{2}):(\d{2})/);if(e)return`${e[1]}${e[2]}${e[3]}`;if(n.value===`GMT`||n.value===`UTC`)return`+0000`}}catch{}let n=-e.getTimezoneOffset(),r=n>=0?`+`:`-`,i=Math.floor(Math.abs(n)/60),a=Math.abs(n)%60;return`${r}${String(i).padStart(2,`0`)}${String(a).padStart(2,`0`)}`}function f(e,t){try{return new Intl.DateTimeFormat(`en-US`,{timeZone:t,timeZoneName:`short`}).formatToParts(e).find(e=>e.type===`timeZoneName`)?.value??`UTC`}catch{return`UTC`}}function p(e,t,n){let r=[31,28,31,30,31,30,31,31,30,31,30,31];(e%4==0&&e%100!=0||e%400==0)&&(r[1]=29);let i=n;for(let e=0;e<t-1;e++)i+=r[e];return i}function m(e,t,n,r,i){let a=p(e,t,n),o=(new Date(e,0,1).getDay()-i+7)%7,s=(r-i+7)%7,c=a-1+o;return Math.floor((c-s+7)/7)}function h(e,t,n){let r=new Date(e,t-1,n,12,0,0);r.setDate(r.getDate()+3-(r.getDay()+6)%7);let i=new Date(r.getFullYear(),0,4);i.setDate(i.getDate()+3-(i.getDay()+6)%7);let a=r.getTime()-i.getTime();return 1+Math.round(a/(10080*60*1e3))}function g(e,t,n){let r=new Date(e,t-1,n,12,0,0);return r.setDate(r.getDate()+3-(r.getDay()+6)%7),r.getFullYear()}function _(e){let t=``,n=0;for(;n<e.length;){let r=e[n];if(r<128){t+=String.fromCharCode(r),n++;continue}if((r&224)==192){if(n+1<e.length&&(e[n+1]&192)==128&&r>=194){let i=(r&31)<<6|e[n+1]&63;t+=String.fromCharCode(i),n+=2;continue}t+=String.fromCharCode(r),n++;continue}if((r&240)==224){if(n+2<e.length&&(e[n+1]&192)==128&&(e[n+2]&192)==128){if(r===224&&e[n+1]<160){t+=String.fromCharCode(r),n++;continue}let i=(r&15)<<12|(e[n+1]&63)<<6|e[n+2]&63;if(i>=55296&&i<=57343){t+=String.fromCharCode(r),n++;continue}t+=String.fromCharCode(i),n+=3;continue}t+=String.fromCharCode(r),n++;continue}if((r&248)==240&&r<=244){if(n+3<e.length&&(e[n+1]&192)==128&&(e[n+2]&192)==128&&(e[n+3]&192)==128){if(r===240&&e[n+1]<144){t+=String.fromCharCode(r),n++;continue}let i=(r&7)<<18|(e[n+1]&63)<<12|(e[n+2]&63)<<6|e[n+3]&63;if(i>1114111){t+=String.fromCharCode(r),n++;continue}t+=String.fromCodePoint(i),n+=4;continue}t+=String.fromCharCode(r),n++;continue}t+=String.fromCharCode(r),n++}return t}var v={name:`printf`,summary:`format and print data`,usage:`printf [-v var] FORMAT [ARGUMENT...]`,options:[` -v var assign the output to shell variable VAR rather than display it`,` --help display this help and exit`],notes:[`FORMAT controls the output like in C printf.`,`Escape sequences: \\n (newline), \\t (tab), \\\\ (backslash)`,`Format specifiers: %s (string), %d (integer), %f (float), %x (hex), %o (octal), %% (literal %)`,`Width and precision: %10s (width 10), %.2f (2 decimal places), %010d (zero-padded)`,`Flags: %- (left-justify), %+ (show sign), %0 (zero-pad)`]},y={name:`printf`,async execute(e,a){if(i(e))return r(v);if(e.length===0)return{stdout:``,stderr:`printf: usage: printf format [arguments]
3
3
  `,exitCode:2};let s=null,c=0;for(;c<e.length;){let t=e[c];if(t===`--`){c++;break}if(t===`-v`){if(c+1>=e.length)return{stdout:``,stderr:`printf: -v: option requires an argument
4
4
  `,exitCode:1};if(s=e[c+1],!/^[a-zA-Z_][a-zA-Z0-9_]*(\[[a-zA-Z0-9_@*"'$]+\])?$/.test(s))return{stdout:``,stderr:`printf: \`${s}': not a valid identifier
@@ -12,4 +12,4 @@ import{t as e}from"./chunk-FK9Q3tQk.mjs";import{i as t}from"./chunk-GFQRA5P5-Dnj
12
12
  `}}}}var S=!1;function C(e){S=!1;let t=e.trimStart(),n=t!==t.trimEnd();if(e=t.trimEnd(),e.startsWith(`'`)&&e.length>=2||e.startsWith(`"`)&&e.length>=2)return e.charCodeAt(1);if(e.startsWith(`\\'`)&&e.length>=3||e.startsWith(`\\"`)&&e.length>=3)return e.charCodeAt(2);if(e.startsWith(`+`)&&(e=e.slice(1)),e.startsWith(`0x`)||e.startsWith(`0X`)){let t=parseInt(e,16);return Number.isNaN(t)?(S=!0,0):(n&&(S=!0),t)}if(e.startsWith(`0`)&&e.length>1&&/^-?0[0-7]+$/.test(e))return n&&(S=!0),parseInt(e,8)||0;if(/^\d+#/.test(e)){S=!0;let t=e.match(/^(\d+)#/);return t?parseInt(t[1],10):0}if(e!==``&&!/^-?\d+$/.test(e)){S=!0;let t=parseInt(e,10);return Number.isNaN(t)?0:t}return n&&(S=!0),parseInt(e,10)||0}function w(e,t){let n=e.match(/^%([- +#0']*)(\d*)(\.(\d*))?[diu]$/);if(!n)return(0,s.sprintf)(e.replace(/\.\d*/,``),t);let r=n[1]||``,i=n[2]?parseInt(n[2],10):0,a=n[3]===void 0?-1:n[4]?parseInt(n[4],10):0,o=t<0,c=String(Math.abs(t));a>=0&&(c=c.padStart(a,`0`));let l=``;o?l=`-`:r.includes(`+`)?l=`+`:r.includes(` `)&&(l=` `);let u=l+c;return i>u.length&&(u=r.includes(`-`)?u.padEnd(i,` `):r.includes(`0`)&&a<0?l+c.padStart(i-l.length,`0`):u.padStart(i,` `)),u}function T(e,t){let n=e.match(/^%([- +#0']*)(\d*)(\.(\d*))?o$/);if(!n)return(0,s.sprintf)(e,t);let r=n[1]||``,i=n[2]?parseInt(n[2],10):0,a=n[3]===void 0?-1:n[4]?parseInt(n[4],10):0,o=Math.abs(t).toString(8);a>=0&&(o=o.padStart(a,`0`)),r.includes(`#`)&&!o.startsWith(`0`)&&(o=`0${o}`);let c=o;return i>c.length&&(c=r.includes(`-`)?c.padEnd(i,` `):r.includes(`0`)&&a<0?c.padStart(i,`0`):c.padStart(i,` `)),c}function E(e,t){let n=e.includes(`X`),r=e.match(/^%([- +#0']*)(\d*)(\.(\d*))?[xX]$/);if(!r)return(0,s.sprintf)(e,t);let i=r[1]||``,a=r[2]?parseInt(r[2],10):0,o=r[3]===void 0?-1:r[4]?parseInt(r[4],10):0,c=Math.abs(t).toString(16);n&&(c=c.toUpperCase()),o>=0&&(c=c.padStart(o,`0`));let l=``;i.includes(`#`)&&t!==0&&(l=n?`0X`:`0x`);let u=l+c;return a>u.length&&(u=i.includes(`-`)?u.padEnd(a,` `):i.includes(`0`)&&o<0?l+c.padStart(a-l.length,`0`):u.padStart(a,` `)),u}function D(e){if(e===``)return`''`;if(/^[a-zA-Z0-9_./-]+$/.test(e))return e;if(/[\x00-\x1f\x7f-\xff]/.test(e)){let t=`$'`;for(let n of e){let e=n.charCodeAt(0);n===`'`?t+=`\\'`:n===`\\`?t+=`\\\\`:n===`
13
13
  `?t+=`\\n`:n===` `?t+=`\\t`:n===`\r`?t+=`\\r`:n===`\x07`?t+=`\\a`:n===`\b`?t+=`\\b`:n===`\f`?t+=`\\f`:n===`\v`?t+=`\\v`:n===`\x1B`?t+=`\\E`:e<32||e>=127&&e<=255?t+=`\\${e.toString(8).padStart(3,`0`)}`:n===`"`?t+=`\\"`:t+=n}return t+=`'`,t}let t=``;for(let n of e)` |&;<>()$\`\\"'*?[#~=%!{}`.includes(n)?t+=`\\${n}`:t+=n;return t}function O(e,t){let n=e.match(/^%(-?)(\d*)(\.(\d*))?s$/);if(!n)return(0,s.sprintf)(e.replace(/0+(?=\d)/,``),t);let r=n[1]===`-`,i=n[2]?parseInt(n[2],10):0,o=n[3]===void 0?-1:n[4]?parseInt(n[4],10):0;return a(t,r?-i:i,o)}function k(e,t){let n=D(t),r=e.match(/^%(-?)(\d*)q$/);if(!r)return n;let i=r[1]===`-`,a=r[2]?parseInt(r[2],10):0,o=n;return a>o.length&&(o=i?o.padEnd(a,` `):o.padStart(a,` `)),o}function A(e,t,n){let r=e.match(/^%([- +#0']*)(\d*)(\.(\d*))?[eEfFgG]$/);if(!r)return(0,s.sprintf)(e,n);let i=r[1]||``,a=r[2]?parseInt(r[2],10):0,o=r[3]===void 0?6:r[4]?parseInt(r[4],10):0,c,l=t.toLowerCase();if(l===`e`?(c=n.toExponential(o),c=c.replace(/e([+-])(\d)$/,`e$10$2`),t===`E`&&(c=c.toUpperCase())):l===`f`?(c=n.toFixed(o),i.includes(`#`)&&o===0&&!c.includes(`.`)&&(c+=`.`)):l===`g`?(c=n.toPrecision(o||1),i.includes(`#`)||(c=c.replace(/\.?0+$/,``),c=c.replace(/\.?0+e/,`e`)),c=c.replace(/e([+-])(\d)$/,`e$10$2`),t===`G`&&(c=c.toUpperCase())):c=n.toString(),n>=0&&(i.includes(`+`)?c=`+${c}`:i.includes(` `)&&(c=` ${c}`)),a>c.length)if(i.includes(`-`))c=c.padEnd(a,` `);else if(i.includes(`0`)){let e=c.match(/^[+ -]/)?.[0]||``;c=e+(e?c.slice(1):c).padStart(a-e.length,`0`)}else c=c.padStart(a,` `);return c}function j(e){let t=``,n=0;for(;n<e.length;)if(e[n]===`\\`&&n+1<e.length)switch(e[n+1]){case`n`:t+=`
14
14
  `,n+=2;break;case`t`:t+=` `,n+=2;break;case`r`:t+=`\r`,n+=2;break;case`\\`:t+=`\\`,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`c`:return{value:t,stopped:!0};case`x`:{let r=[],i=n;for(;i+1<e.length&&e[i]===`\\`&&e[i+1]===`x`;){let t=``,n=i+2;for(;n<e.length&&n<i+4&&/[0-9a-fA-F]/.test(e[n]);)t+=e[n],n++;if(t)r.push(parseInt(t,16)),i=n;else break}r.length>0?(t+=_(r),n=i):(t+=`\\x`,n+=2);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++;r?(t+=String.fromCodePoint(parseInt(r,16)),n=i):(t+=`\\u`,n+=2);break}case`0`:{let r=``,i=n+2;for(;i<e.length&&i<n+5&&/[0-7]/.test(e[i]);)r+=e[i],i++;r?t+=String.fromCharCode(parseInt(r,8)):t+=`\0`,n=i;break}case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:{let r=``,i=n+1;for(;i<e.length&&i<n+4&&/[0-7]/.test(e[i]);)r+=e[i],i++;t+=String.fromCharCode(parseInt(r,8)),n=i;break}default:t+=e[n],n++}else t+=e[n],n++;return{value:t,stopped:!1}}var M={name:`printf`,flags:[{flag:`-v`,type:`value`,valueHint:`string`}],stdinType:`none`,needsArgs:!0};export{M as n,y as t};
15
- //# sourceMappingURL=chunk-T56QNPHK-Dzjonwlk.mjs.map
15
+ //# sourceMappingURL=chunk-T56QNPHK-TppyesRp.mjs.map
@@ -1,7 +1,7 @@
1
- import{n as e}from"./libesm-B_qVEpZ1.mjs";import{r as t,t as n}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as r}from"./chunk-HWKDQ44K-CPSjqtR_.mjs";var i={name:`diff`,summary:`compare files line by line`,usage:`diff [OPTION]... FILE1 FILE2`,options:[`-u, --unified output unified diff format (default)`,`-q, --brief report only whether files differ`,`-s, --report-identical-files report when files are the same`,`-i, --ignore-case ignore case differences`,` --help display this help and exit`]},a={unified:{short:`u`,long:`unified`,type:`boolean`},brief:{short:`q`,long:`brief`,type:`boolean`},reportSame:{short:`s`,long:`report-identical-files`,type:`boolean`},ignoreCase:{short:`i`,long:`ignore-case`,type:`boolean`}},o={name:`diff`,async execute(o,s){if(n(o))return t(i);let c=r(`diff`,o,a);if(!c.ok)return c.error;let l=c.result.flags.brief,u=c.result.flags.reportSame,d=c.result.flags.ignoreCase,f=c.result.positional;if(c.result.flags.unified,f.length<2)return{stdout:``,stderr:`diff: missing operand
1
+ import{n as e}from"./libesm-BXjuRhd9.mjs";import{r as t,t as n}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as r}from"./chunk-HWKDQ44K-CPSjqtR_.mjs";var i={name:`diff`,summary:`compare files line by line`,usage:`diff [OPTION]... FILE1 FILE2`,options:[`-u, --unified output unified diff format (default)`,`-q, --brief report only whether files differ`,`-s, --report-identical-files report when files are the same`,`-i, --ignore-case ignore case differences`,` --help display this help and exit`]},a={unified:{short:`u`,long:`unified`,type:`boolean`},brief:{short:`q`,long:`brief`,type:`boolean`},reportSame:{short:`s`,long:`report-identical-files`,type:`boolean`},ignoreCase:{short:`i`,long:`ignore-case`,type:`boolean`}},o={name:`diff`,async execute(o,s){if(n(o))return t(i);let c=r(`diff`,o,a);if(!c.ok)return c.error;let l=c.result.flags.brief,u=c.result.flags.reportSame,d=c.result.flags.ignoreCase,f=c.result.positional;if(c.result.flags.unified,f.length<2)return{stdout:``,stderr:`diff: missing operand
2
2
  `,exitCode:2};let p,m,[h,g]=f;try{p=h===`-`?s.stdin:await s.fs.readFile(s.fs.resolvePath(s.cwd,h))}catch{return{stdout:``,stderr:`diff: ${h}: No such file or directory
3
3
  `,exitCode:2}}try{m=g===`-`?s.stdin:await s.fs.readFile(s.fs.resolvePath(s.cwd,g))}catch{return{stdout:``,stderr:`diff: ${g}: No such file or directory
4
4
  `,exitCode:2}}let _=p,v=m;return d&&(_=_.toLowerCase(),v=v.toLowerCase()),_===v?u?{stdout:`Files ${h} and ${g} are identical
5
5
  `,stderr:``,exitCode:0}:{stdout:``,stderr:``,exitCode:0}:l?{stdout:`Files ${h} and ${g} differ
6
6
  `,stderr:``,exitCode:1}:{stdout:e(h,g,p,m,``,``,{context:3}),stderr:``,exitCode:1}}},s={name:`diff`,flags:[{flag:`-u`,type:`boolean`},{flag:`-q`,type:`boolean`},{flag:`-s`,type:`boolean`},{flag:`-i`,type:`boolean`}],needsArgs:!0,minArgs:2};export{s as n,o as t};
7
- //# sourceMappingURL=chunk-TLSUDHID-DYvzalvd.mjs.map
7
+ //# sourceMappingURL=chunk-TLSUDHID-BeulIM_X.mjs.map
@@ -1,5 +1,5 @@
1
- import{t as e}from"./chunk-IPJHKYVM-C3IodQq7.mjs";import{n as t,r as n,t as r}from"./chunk-74CEPOFO-D1bzz49u.mjs";var i={name:`xargs`,summary:`build and execute command lines from standard input`,usage:`xargs [OPTION]... [COMMAND [INITIAL-ARGS]]`,options:[`-I REPLACE replace occurrences of REPLACE with input`,`-d DELIM use DELIM as input delimiter (e.g., -d '\\n' for newline)`,`-n NUM use at most NUM arguments per command line`,`-P NUM run at most NUM processes at a time`,`-0, --null items are separated by null, not whitespace`,`-t, --verbose print commands before executing`,`-r, --no-run-if-empty do not run command if input is empty`,` --help display this help and exit`]},a={name:`xargs`,async execute(a,o){if(r(a))return n(i);let s=null,c=null,l=null,u=null,d=!1,f=!1,p=0;for(let e=0;e<a.length;e++){let n=a[e];if(n===`-I`&&e+1<a.length)s=a[++e],p=e+1;else if(n===`-d`&&e+1<a.length)c=a[++e].replace(/\\n/g,`
1
+ import{t as e}from"./chunk-IPJHKYVM-D6H6ZTtk.mjs";import{n as t,r as n,t as r}from"./chunk-74CEPOFO-D1bzz49u.mjs";var i={name:`xargs`,summary:`build and execute command lines from standard input`,usage:`xargs [OPTION]... [COMMAND [INITIAL-ARGS]]`,options:[`-I REPLACE replace occurrences of REPLACE with input`,`-d DELIM use DELIM as input delimiter (e.g., -d '\\n' for newline)`,`-n NUM use at most NUM arguments per command line`,`-P NUM run at most NUM processes at a time`,`-0, --null items are separated by null, not whitespace`,`-t, --verbose print commands before executing`,`-r, --no-run-if-empty do not run command if input is empty`,` --help display this help and exit`]},a={name:`xargs`,async execute(a,o){if(r(a))return n(i);let s=null,c=null,l=null,u=null,d=!1,f=!1,p=0;for(let e=0;e<a.length;e++){let n=a[e];if(n===`-I`&&e+1<a.length)s=a[++e],p=e+1;else if(n===`-d`&&e+1<a.length)c=a[++e].replace(/\\n/g,`
2
2
  `).replace(/\\t/g,` `).replace(/\\r/g,`\r`).replace(/\\0/g,`\0`).replace(/\\\\/g,`\\`),p=e+1;else if(n===`-n`&&e+1<a.length)l=parseInt(a[++e],10),p=e+1;else if(n===`-P`&&e+1<a.length)u=parseInt(a[++e],10),p=e+1;else if(n===`-0`||n===`--null`)d=!0,p=e+1;else if(n===`-t`||n===`--verbose`)f=!0,p=e+1;else if(n===`-r`||n===`--no-run-if-empty`)p=e+1;else{if(n.startsWith(`--`))return t(`xargs`,n);if(n.startsWith(`-`)&&n.length>1){for(let e of n.slice(1))if(!`0tr`.includes(e))return t(`xargs`,`-${e}`);n.includes(`0`)&&(d=!0),n.includes(`t`)&&(f=!0),n.includes(`r`),p=e+1}else if(!n.startsWith(`-`)){p=e;break}}}let m=a.slice(p);m.length===0&&m.push(`echo`);let h;if(h=d?o.stdin.split(`\0`).filter(e=>e.length>0):c===null?o.stdin.split(/\s+/).map(e=>e.trim()).filter(e=>e.length>0):o.stdin.replace(/\n$/,``).split(c).filter(e=>e.length>0),h.length===0)return{stdout:``,stderr:``,exitCode:0};let g=``,_=``,v=0,y=e=>/[\s"'\\$`!*?[\]{}();&|<>#]/.test(e)?`"${e.replace(/([\\"`$])/g,`\\$1`)}"`:e,b=async t=>{if(f){let e=t.map(y).join(` `);_+=`${e}
3
3
  `}return o.exec?o.exec(e([t[0]]),{cwd:o.cwd,signal:o.signal,args:t.slice(1)}):{stdout:`${t.map(y).join(` `)}
4
4
  `,stderr:``,exitCode:0}},x=async e=>{if(u!==null&&u>1)for(let t=0;t<e.length;t+=u){let n=e.slice(t,t+u),r=await Promise.all(n.map(b));for(let e of r)g+=e.stdout,_+=e.stderr,e.exitCode!==0&&(v=e.exitCode)}else for(let t of e){let e=await b(t);g+=e.stdout,_+=e.stderr,e.exitCode!==0&&(v=e.exitCode)}};if(s!==null)await x(h.map(e=>m.map(t=>t.replaceAll(s,e))));else if(l!==null){let e=[];for(let t=0;t<h.length;t+=l){let n=h.slice(t,t+l);e.push([...m,...n])}await x(e)}else{let e=await b([...m,...h]);g+=e.stdout,_+=e.stderr,v=e.exitCode}return{stdout:g,stderr:_,exitCode:v}}},o={name:`xargs`,flags:[{flag:`-I`,type:`value`,valueHint:`string`},{flag:`-d`,type:`value`,valueHint:`delimiter`},{flag:`-n`,type:`value`,valueHint:`number`},{flag:`-0`,type:`boolean`},{flag:`-t`,type:`boolean`},{flag:`-r`,type:`boolean`}],stdinType:`text`};export{a as n,o as t};
5
- //# sourceMappingURL=chunk-TOMNU26N-DYqwg_75.mjs.map
5
+ //# sourceMappingURL=chunk-TOMNU26N-DfLjxpHW.mjs.map
@@ -1,4 +1,4 @@
1
- import{t as e}from"./chunk-YNYSPYQ5-DesxOVHh.mjs";import{a as t,i as n,n as r,o as i}from"./chunk-DXB73IDG-DIKSLkPq.mjs";import{r as a,t as o}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{n as s}from"./chunk-7L36YK2X-RiPZFKaV.mjs";import{t as c}from"./chunk-SYMJJMQ4-tl6Dz6VW.mjs";import{n as l,s as u}from"./chunk-7TSDKFEO-a-GUGBTu.mjs";import{n as d}from"./chunk-BBXLRYSX-DHx5dxhT.mjs";import{a as f,c as p,i as m,n as h,o as g,r as _,s as v,t as y}from"./chunk-F55TLFGB-oTuag-aK.mjs";var b,x=r(()=>{b=class{input;pos=0;tokens=[];constructor(e){this.input=e}tokenize(){for(;this.pos<this.input.length&&(this.skipWhitespace(),!(this.pos>=this.input.length));){let e=this.nextToken();e&&this.tokens.push(e)}return this.tokens.push({type:`eof`,value:``,pos:this.pos}),this.tokens}skipWhitespace(){for(;this.pos<this.input.length;){let e=this.input[this.pos];if(e===` `||e===` `||e===`
1
+ import{t as e}from"./chunk-YNYSPYQ5-iQGTFdx0.mjs";import{a as t,i as n,n as r,o as i}from"./chunk-DXB73IDG-C2RuFAAY.mjs";import{r as a,t as o}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{n as s}from"./chunk-7L36YK2X-RiPZFKaV.mjs";import{t as c}from"./chunk-SYMJJMQ4-DLPoQaug.mjs";import{n as l,s as u}from"./chunk-7TSDKFEO-a-GUGBTu.mjs";import{n as d}from"./chunk-BBXLRYSX-Oks1GMhO.mjs";import{a as f,c as p,i as m,n as h,o as g,r as _,s as v,t as y}from"./chunk-F55TLFGB-Bkfd8ak_.mjs";var b,x=r(()=>{b=class{input;pos=0;tokens=[];constructor(e){this.input=e}tokenize(){for(;this.pos<this.input.length&&(this.skipWhitespace(),!(this.pos>=this.input.length));){let e=this.nextToken();e&&this.tokens.push(e)}return this.tokens.push({type:`eof`,value:``,pos:this.pos}),this.tokens}skipWhitespace(){for(;this.pos<this.input.length;){let e=this.input[this.pos];if(e===` `||e===` `||e===`
2
2
  `||e===`\r`)this.pos++;else if(e===`#`)for(;this.pos<this.input.length&&this.input[this.pos]!==`
3
3
  `;)this.pos++;else break}}nextToken(){let e=this.pos,t=this.input[this.pos];if(t>=`0`&&t<=`9`)return this.readNumber();if(t===`"`||t===`'`||t==="`")return this.readString(t);if(t===`b`&&this.pos+1<this.input.length){let e=this.input[this.pos+1];if(e===`"`||e===`'`||e==="`")return this.pos++,this.readString(e)}if(t===`/`){let t=this.tokens[this.tokens.length-1];return t&&(t.type===`int`||t.type===`float`||t.type===`string`||t.type===`ident`||t.type===`)`||t.type===`]`)?this.input[this.pos+1]===`/`?(this.pos+=2,{type:`//`,value:`//`,pos:e}):(this.pos++,{type:`/`,value:`/`,pos:e}):this.readRegex()}if(this.match(`not in`))return{type:`not in`,value:`not in`,pos:e};if(this.match(`=>`))return{type:`=>`,value:`=>`,pos:e};if(this.match(`**`))return{type:`**`,value:`**`,pos:e};if(this.match(`++`))return{type:`++`,value:`++`,pos:e};if(this.match(`//`))return{type:`//`,value:`//`,pos:e};if(this.match(`==`))return{type:`==`,value:`==`,pos:e};if(this.match(`!=`))return{type:`!=`,value:`!=`,pos:e};if(this.match(`<=`))return{type:`<=`,value:`<=`,pos:e};if(this.match(`>=`))return{type:`>=`,value:`>=`,pos:e};if(this.match(`&&`))return{type:`&&`,value:`&&`,pos:e};if(this.match(`||`))return{type:`||`,value:`||`,pos:e};let n=new Map([[`(`,`(`],[`)`,`)`],[`[`,`[`],[`]`,`]`],[`{`,`{`],[`}`,`}`],[`,`,`,`],[`:`,`:`],[`;`,`;`],[`+`,`+`],[`-`,`-`],[`*`,`*`],[`%`,`%`],[`<`,`<`],[`>`,`>`],[`!`,`!`],[`.`,`.`],[`|`,`|`],[`=`,`=`]]).get(t);if(n!==void 0)return this.pos++,{type:n,value:t,pos:e};if(this.isIdentStart(t))return this.readIdentifier();throw Error(`Unexpected character '${t}' at position ${this.pos}`)}match(e){if(this.input.slice(this.pos,this.pos+e.length)===e){if(/^[a-zA-Z]/.test(e)){let t=this.input[this.pos+e.length];if(t&&this.isIdentChar(t))return!1}return this.pos+=e.length,!0}return!1}isIdentStart(e){return e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e===`_`}isIdentChar(e){return this.isIdentStart(e)||e>=`0`&&e<=`9`}readNumber(){let e=this.pos,t=!1,n=!1;for(;this.pos<this.input.length;){let e=this.input[this.pos];if(e>=`0`&&e<=`9`)this.pos++;else if(e===`_`)this.pos++;else if(e===`.`&&!t&&!n)t=!0,this.pos++;else if((e===`e`||e===`E`)&&!n)n=!0,t=!0,this.pos++,this.pos<this.input.length&&(this.input[this.pos]===`+`||this.input[this.pos]===`-`)&&this.pos++;else break}let r=this.input.slice(e,this.pos).replace(/_/g,``);return{type:t?`float`:`int`,value:r,pos:e}}readString(e){let t=this.pos;this.pos++;let n=``;for(;this.pos<this.input.length;){let r=this.input[this.pos];if(r===e)return this.pos++,{type:`string`,value:n,pos:t};if(r===`\\`){if(this.pos++,this.pos<this.input.length){let e=this.input[this.pos];switch(e){case`n`:n+=`
4
4
  `;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;case`\\`:n+=`\\`;break;case`"`:n+=`"`;break;case`'`:n+=`'`;break;case"`":n+="`";break;case`0`:n+=`\0`;break;default:n+=e}this.pos++}}else n+=r,this.pos++}throw Error(`Unterminated string starting at position ${t}`)}readRegex(){let e=this.pos;this.pos++;let t=``,n=``;for(;this.pos<this.input.length;){let r=this.input[this.pos];if(r===`/`){for(this.pos++;this.pos<this.input.length&&this.input[this.pos]===`i`;)n+=this.input[this.pos],this.pos++;return{type:`regex`,value:t+(n?`/${n}`:``),pos:e}}r===`\\`?(t+=r,this.pos++,this.pos<this.input.length&&(t+=this.input[this.pos],this.pos++)):(t+=r,this.pos++)}throw Error(`Unterminated regex starting at position ${e}`)}readIdentifier(){let e=this.pos;for(;this.pos<this.input.length&&this.isIdentChar(this.input[this.pos]);)this.pos++;let t=!1;this.pos<this.input.length&&this.input[this.pos]===`?`&&(t=!0,this.pos++);let n=this.input.slice(e,t?this.pos-1:this.pos);t&&(n+=`?`);let r=new Map([[`true`,`true`],[`false`,`false`],[`null`,`null`],[`and`,`and`],[`or`,`or`],[`eq`,`eq`],[`ne`,`ne`],[`lt`,`lt`],[`le`,`le`],[`gt`,`gt`],[`ge`,`ge`],[`in`,`in`],[`as`,`as`],[`_`,`_`]]),i=n.replace(/\?$/,``),a=r.get(i);return a!==void 0&&!t?{type:a,value:i,pos:e}:{type:`ident`,value:n,pos:e}}}}),S={};n(S,{parseMoonblade:()=>w,parseNamedExpressions:()=>C});function C(e){let t=[],n=new b(e).tokenize(),r=0,i=()=>n[r]||{type:`eof`,value:``,pos:0},a=()=>n[r++];for(;i().type!==`eof`;){if(i().type===`,`&&t.length>0){a();continue}let o=[],s=0,c=r;for(;i().type!==`eof`;){let e=i();if((e.type===`,`||e.type===`as`)&&s===0)break;(e.type===`(`||e.type===`[`||e.type===`{`)&&s++,(e.type===`)`||e.type===`]`||e.type===`}`)&&s--,o.push(a())}o.push({type:`eof`,value:``,pos:0});let l=new E(o).parse(),u;if(i().type===`as`)if(a(),i().type===`(`){a();let e=[];for(;i().type!==`)`&&i().type!==`eof`;)(i().type===`ident`||i().type===`string`)&&(e.push(i().value),a()),i().type===`,`&&a();i().type===`)`&&a(),u=e}else if(i().type===`ident`||i().type===`string`)u=i().value,a();else throw Error(`Expected name after 'as', got ${i().type}`);else u=e.slice(n[c].pos,n[r-1]?.pos||e.length).trim(),l.type===`identifier`&&(u=l.name);t.push({expr:l,name:u})}return t}function w(e){let t=new b(e).tokenize();return new E(t).parse()}var T,E,D=r(()=>{x(),T={PIPE:1,OR:2,AND:3,EQUALITY:4,COMPARISON:5,ADDITIVE:6,MULTIPLICATIVE:7,POWER:8,UNARY:9,POSTFIX:10},E=class{pos=0;tokens;constructor(e){this.tokens=e}parse(){let e=this.parseExpr(0);if(this.peek().type!==`eof`)throw Error(`Unexpected token: ${this.peek().value}`);return e}parseExpr(e){let t=this.parsePrefix();for(;;){let n=this.peek(),r=this.getInfixPrec(n.type);if(r<e)break;t=this.parseInfix(t,r)}return t}parsePrefix(){let e=this.peek();switch(e.type){case`int`:return this.advance(),{type:`int`,value:Number.parseInt(e.value,10)};case`float`:return this.advance(),{type:`float`,value:Number.parseFloat(e.value)};case`string`:return this.advance(),{type:`string`,value:e.value};case`regex`:{this.advance();let t=e.value.split(`/`),n=t.length>1?t[t.length-1]:``;return{type:`regex`,pattern:t.slice(0,-1).join(`/`)||e.value,caseInsensitive:n.includes(`i`)}}case`true`:return this.advance(),{type:`bool`,value:!0};case`false`:return this.advance(),{type:`bool`,value:!1};case`null`:return this.advance(),{type:`null`};case`_`:return this.advance(),{type:`underscore`};case`ident`:{let t=e.value,n=t.endsWith(`?`),r=n?t.slice(0,-1):t;if(this.advance(),this.peek().type===`(`)return this.parseFunctionCall(r);if(this.peek().type===`=>`){this.advance();let e=this.parseExpr(0);return this.bindLambdaArgs({type:`lambda`,params:[r],body:e},[r])}return{type:`identifier`,name:r,unsure:n}}case`(`:{this.advance();let e=[];if(this.peek().type===`)`){if(this.advance(),this.peek().type===`=>`)return this.advance(),{type:`lambda`,params:[],body:this.parseExpr(0)};throw Error(`Empty parentheses not allowed`)}if(this.peek().type===`ident`){let t=this.peek().value;if(this.advance(),this.peek().type===`,`||this.peek().type===`)`){for(e.push(t);this.peek().type===`,`&&(this.advance(),this.peek().type===`ident`);)e.push(this.peek().value),this.advance();if(this.peek().type===`)`&&(this.advance(),this.peek().type===`=>`)){this.advance();let t=this.parseExpr(0);return this.bindLambdaArgs({type:`lambda`,params:e,body:t},e)}this.pos-=e.length*2,e.length>1&&(this.pos=this.pos)}this.pos--}let t=this.parseExpr(0);return this.expect(`)`),this.peek().type,t}case`[`:return this.parseList();case`{`:return this.parseMap();case`-`:{this.advance();let e=this.parseExpr(T.UNARY);return e.type===`int`?{type:`int`,value:-e.value}:e.type===`float`?{type:`float`,value:-e.value}:{type:`func`,name:`neg`,args:[{expr:e}]}}case`!`:return this.advance(),{type:`func`,name:`not`,args:[{expr:this.parseExpr(T.UNARY)}]};default:throw Error(`Unexpected token: ${e.type} (${e.value})`)}}parseFunctionCall(e){this.expect(`(`);let t=[];if(this.peek().type!==`)`)do{t.length>0&&this.peek().type===`,`&&this.advance();let e;if(this.peek().type===`ident`){let t=this.peek().value,n=this.pos+1;n<this.tokens.length&&this.tokens[n].type===`=`&&(e=t,this.advance(),this.advance())}let n=this.parseExpr(0);t.push({name:e,expr:n})}while(this.peek().type===`,`);return this.expect(`)`),{type:`func`,name:e.toLowerCase(),args:t}}parseList(){this.expect(`[`);let e=[];if(this.peek().type!==`]`)do e.length>0&&this.peek().type===`,`&&this.advance(),e.push(this.parseExpr(0));while(this.peek().type===`,`);return this.expect(`]`),{type:`list`,elements:e}}parseMap(){this.expect(`{`);let e=[];if(this.peek().type!==`}`)do{e.length>0&&this.peek().type===`,`&&this.advance();let t;if(this.peek().type===`ident`)t=this.peek().value,this.advance();else if(this.peek().type===`string`)t=this.peek().value,this.advance();else throw Error(`Expected map key, got ${this.peek().type}`);this.expect(`:`);let n=this.parseExpr(0);e.push({key:t,value:n})}while(this.peek().type===`,`);return this.expect(`}`),{type:`map`,entries:e}}parseInfix(e,t){let n=this.peek(),r=new Map([[`+`,`add`],[`-`,`sub`],[`*`,`mul`],[`/`,`div`],[`//`,`idiv`],[`%`,`mod`],[`**`,`pow`],[`++`,`concat`],[`==`,`==`],[`!=`,`!=`],[`<`,`<`],[`<=`,`<=`],[`>`,`>`],[`>=`,`>=`],[`eq`,`eq`],[`ne`,`ne`],[`lt`,`lt`],[`le`,`le`],[`gt`,`gt`],[`ge`,`ge`],[`&&`,`and`],[`and`,`and`],[`||`,`or`],[`or`,`or`]]).get(n.type);if(r!==void 0){this.advance();let i=this.parseExpr(t+(this.isRightAssoc(n.type)?0:1));return{type:`func`,name:r,args:[{expr:e},{expr:i}]}}if(n.type===`|`){this.advance();let n=this.parseExpr(t);return this.handlePipe(e,n)}if(n.type===`.`)return this.advance(),this.handleDot(e);if(n.type===`[`)return this.advance(),this.handleIndexing(e);if(n.type===`in`)return this.advance(),{type:`func`,name:`contains`,args:[{expr:this.parseExpr(t+1)},{expr:e}]};if(n.type===`not in`)return this.advance(),{type:`func`,name:`not`,args:[{expr:{type:`func`,name:`contains`,args:[{expr:this.parseExpr(t+1)},{expr:e}]}}]};throw Error(`Unexpected infix token: ${n.type}`)}handlePipe(e,t){if(t.type===`identifier`)return{type:`func`,name:t.name,args:[{expr:e}]};if(t.type===`func`){let n=this.countUnderscores(t);return n===0?t:n===1?this.fillUnderscore(t,e):{type:`pipeline`,exprs:[e,t]}}return this.countUnderscores(t)===1?this.fillUnderscore(t,e):t}handleDot(e){let t=this.peek();if(t.type===`ident`){let n=t.value;if(this.advance(),this.peek().type===`(`){let t=this.parseFunctionCall(n);return t.type===`func`&&t.args.unshift({expr:e}),t}return{type:`func`,name:`get`,args:[{expr:e},{expr:{type:`string`,value:n}}]}}if(t.type===`int`){let n=Number.parseInt(t.value,10);return this.advance(),{type:`func`,name:`get`,args:[{expr:e},{expr:{type:`int`,value:n}}]}}if(t.type===`string`){let n=t.value;return this.advance(),{type:`func`,name:`get`,args:[{expr:e},{expr:{type:`string`,value:n}}]}}throw Error(`Expected identifier, number, or string after dot, got ${t.type}`)}handleIndexing(e){if(this.peek().type===`:`){if(this.advance(),this.peek().type===`]`)return this.advance(),{type:`func`,name:`slice`,args:[{expr:e}]};let t=this.parseExpr(0);return this.expect(`]`),{type:`func`,name:`slice`,args:[{expr:e},{expr:{type:`int`,value:0}},{expr:t}]}}let t=this.parseExpr(0);if(this.peek().type===`:`){if(this.advance(),this.peek().type===`]`)return this.advance(),{type:`func`,name:`slice`,args:[{expr:e},{expr:t}]};let n=this.parseExpr(0);return this.expect(`]`),{type:`func`,name:`slice`,args:[{expr:e},{expr:t},{expr:n}]}}return this.expect(`]`),{type:`func`,name:`get`,args:[{expr:e},{expr:t}]}}countUnderscores(e){return e.type===`underscore`?1:e.type===`func`?e.args.reduce((e,t)=>e+this.countUnderscores(t.expr),0):e.type===`list`?e.elements.reduce((e,t)=>e+this.countUnderscores(t),0):e.type===`map`?e.entries.reduce((e,t)=>e+this.countUnderscores(t.value),0):0}fillUnderscore(e,t){return e.type===`underscore`?t:e.type===`func`?{...e,args:e.args.map(e=>({...e,expr:this.fillUnderscore(e.expr,t)}))}:e.type===`list`?{...e,elements:e.elements.map(e=>this.fillUnderscore(e,t))}:e.type===`map`?{...e,entries:e.entries.map(e=>({...e,value:this.fillUnderscore(e.value,t)}))}:e}bindLambdaArgs(e,t){return{...e,body:this.bindLambdaArgsInExpr(e.body,t)}}bindLambdaArgsInExpr(e,t){return e.type===`identifier`&&t.includes(e.name)?{type:`lambdaBinding`,name:e.name}:e.type===`func`?{...e,args:e.args.map(e=>({...e,expr:this.bindLambdaArgsInExpr(e.expr,t)}))}:e.type===`list`?{...e,elements:e.elements.map(e=>this.bindLambdaArgsInExpr(e,t))}:e.type===`map`?{...e,entries:e.entries.map(e=>({...e,value:this.bindLambdaArgsInExpr(e.value,t)}))}:e}getInfixPrec(e){switch(e){case`|`:return T.PIPE;case`||`:case`or`:return T.OR;case`&&`:case`and`:return T.AND;case`==`:case`!=`:case`eq`:case`ne`:return T.EQUALITY;case`<`:case`<=`:case`>`:case`>=`:case`lt`:case`le`:case`gt`:case`ge`:case`in`:case`not in`:return T.COMPARISON;case`+`:case`-`:case`++`:return T.ADDITIVE;case`*`:case`/`:case`//`:case`%`:return T.MULTIPLICATIVE;case`**`:return T.POWER;case`.`:case`[`:return T.POSTFIX;default:return-1}}isRightAssoc(e){return e===`**`}peek(){return this.tokens[this.pos]||{type:`eof`,value:``,pos:0}}advance(){return this.tokens[this.pos++]}expect(e){let t=this.peek();if(t.type!==e)throw Error(`Expected ${e}, got ${t.type}`);return this.advance()}}});D();function O(e,t){return t.length===0?j(e,[]):t.length===1?{type:`Pipe`,left:t[0],right:j(e,[])}:{type:`Pipe`,left:t[0],right:j(e,t.slice(1))}}var k={add:e=>A(`+`,e[0],e[1]),sub:e=>A(`-`,e[0],e[1]),mul:e=>A(`*`,e[0],e[1]),div:e=>A(`/`,e[0],e[1]),mod:e=>A(`%`,e[0],e[1]),idiv:e=>j(`floor`,[A(`/`,e[0],e[1])]),pow:e=>O(`pow`,e),neg:e=>({type:`UnaryOp`,op:`-`,operand:e[0]}),"==":e=>A(`==`,e[0],e[1]),"!=":e=>A(`!=`,e[0],e[1]),"<":e=>A(`<`,e[0],e[1]),"<=":e=>A(`<=`,e[0],e[1]),">":e=>A(`>`,e[0],e[1]),">=":e=>A(`>=`,e[0],e[1]),eq:e=>A(`==`,P(e[0]),P(e[1])),ne:e=>A(`!=`,P(e[0]),P(e[1])),lt:e=>A(`<`,P(e[0]),P(e[1])),le:e=>A(`<=`,P(e[0]),P(e[1])),gt:e=>A(`>`,P(e[0]),P(e[1])),ge:e=>A(`>=`,P(e[0]),P(e[1])),and:e=>A(`and`,e[0],e[1]),or:e=>A(`or`,e[0],e[1]),not:e=>({type:`UnaryOp`,op:`not`,operand:e[0]}),len:e=>O(`length`,e),length:e=>O(`length`,e),upper:e=>O(`ascii_upcase`,e),lower:e=>O(`ascii_downcase`,e),trim:e=>O(`trim`,e),ltrim:e=>e.length===0?j(`ltrimstr`,[{type:`Literal`,value:` `}]):{type:`Pipe`,left:e[0],right:j(`ltrimstr`,[{type:`Literal`,value:` `}])},rtrim:e=>e.length===0?j(`rtrimstr`,[{type:`Literal`,value:` `}]):{type:`Pipe`,left:e[0],right:j(`rtrimstr`,[{type:`Literal`,value:` `}])},split:e=>O(`split`,e),join:e=>e.length===1?j(`join`,[{type:`Literal`,value:``}]):O(`join`,e),concat:e=>A(`+`,e[0],e[1]),startswith:e=>O(`startswith`,e),endswith:e=>O(`endswith`,e),contains:e=>O(`contains`,e),replace:e=>O(`gsub`,e),substr:e=>e.length===2?{type:`Slice`,base:e[0],start:e[1]}:{type:`Slice`,base:e[0],start:e[1],end:A(`+`,e[1],e[2])},abs:e=>O(`fabs`,e),floor:e=>O(`floor`,e),ceil:e=>O(`ceil`,e),round:e=>O(`round`,e),sqrt:e=>O(`sqrt`,e),log:e=>O(`log`,e),log10:e=>O(`log10`,e),log2:e=>O(`log2`,e),exp:e=>O(`exp`,e),sin:e=>O(`sin`,e),cos:e=>O(`cos`,e),tan:e=>O(`tan`,e),asin:e=>O(`asin`,e),acos:e=>O(`acos`,e),atan:e=>O(`atan`,e),min:e=>O(`min`,e),max:e=>O(`max`,e),first:e=>e.length===0?{type:`Index`,index:{type:`Literal`,value:0}}:{type:`Index`,index:{type:`Literal`,value:0},base:e[0]},last:e=>e.length===0?{type:`Index`,index:{type:`Literal`,value:-1}}:{type:`Index`,index:{type:`Literal`,value:-1},base:e[0]},get:e=>e.length===1?{type:`Index`,index:e[0]}:{type:`Index`,index:e[1],base:e[0]},slice:e=>e.length===1?{type:`Slice`,base:e[0]}:e.length===2?{type:`Slice`,base:e[0],start:e[1]}:{type:`Slice`,base:e[0],start:e[1],end:e[2]},keys:`keys`,values:`values`,entries:e=>j(`to_entries`,e),from_entries:`from_entries`,reverse:`reverse`,sort:`sort`,sort_by:`sort_by`,group_by:`group_by`,unique:`unique`,unique_by:`unique_by`,flatten:`flatten`,map:e=>({type:`Pipe`,left:e[0],right:{type:`Array`,elements:e[1]}}),select:e=>j(`select`,e),empty:()=>j(`empty`,[]),count:()=>j(`length`,[]),sum:e=>e.length===0?j(`add`,[]):{type:`Pipe`,left:{type:`Array`,elements:e[0]},right:j(`add`,[])},mean:e=>e.length===0?{type:`Pipe`,left:{type:`Identity`},right:A(`/`,j(`add`,[]),j(`length`,[]))}:{type:`Pipe`,left:{type:`Array`,elements:e[0]},right:A(`/`,j(`add`,[]),j(`length`,[]))},avg:e=>e.length===0?{type:`Pipe`,left:{type:`Identity`},right:A(`/`,j(`add`,[]),j(`length`,[]))}:{type:`Pipe`,left:{type:`Array`,elements:e[0]},right:A(`/`,j(`add`,[]),j(`length`,[]))},type:`type`,isnull:e=>e.length===0?A(`==`,{type:`Identity`},{type:`Literal`,value:null}):A(`==`,e[0],{type:`Literal`,value:null}),isempty:e=>e.length===0?A(`==`,{type:`Identity`},{type:`Literal`,value:``}):A(`==`,e[0],{type:`Literal`,value:``}),tonumber:e=>e.length===0?j(`tonumber`,[]):j(`tonumber`,e),tostring:e=>e.length===0?j(`tostring`,[]):j(`tostring`,e),if:e=>N(e[0],e[1],e[2]),coalesce:e=>{if(e.length===0)return{type:`Literal`,value:null};if(e.length===1)return e[0];let[t,...n]=e;return N(A(`and`,A(`!=`,t,{type:`Literal`,value:null}),A(`!=`,t,{type:`Literal`,value:``})),t,n.length===1?n[0]:k.coalesce(n))},index:()=>({type:`Field`,name:`_row_index`}),now:()=>j(`now`,[]),fmt:e=>j(`tostring`,e),format:e=>j(`tostring`,e)};Object.setPrototypeOf(k,null);function A(e,t,n){return{type:`BinaryOp`,op:e,left:t,right:n}}function j(e,t){return{type:`Call`,name:e,args:t}}var M=`then`;function N(e,t,n){let r=u({type:`Cond`,cond:e,elifs:[],else:n||{type:`Literal`,value:null}});return r[M]=t,r}function P(e){return{type:`Pipe`,left:e,right:{type:`Call`,name:`tostring`,args:[]}}}function F(e,t=!0){switch(e.type){case`int`:case`float`:return{type:`Literal`,value:e.value};case`string`:return{type:`Literal`,value:e.value};case`bool`:return{type:`Literal`,value:e.value};case`null`:return{type:`Literal`,value:null};case`underscore`:return{type:`Index`,base:{type:`Identity`},index:{type:`Literal`,value:`_`}};case`identifier`:return t?{type:`Field`,name:e.name}:{type:`VarRef`,name:e.name};case`lambdaBinding`:return{type:`VarRef`,name:e.name};case`func`:{let n=e.args.map(e=>F(e.expr,t)),r=Object.hasOwn(k,e.name)?k[e.name]:void 0;return typeof r==`function`?r(n):j(typeof r==`string`?r:e.name,n)}case`list`:return e.elements.length===0?{type:`Array`}:{type:`Array`,elements:e.elements.reduce((e,n,r)=>{let i=F(n,t);return r===0?i:{type:`Comma`,left:e,right:i}},null)};case`map`:return{type:`Object`,entries:e.entries.map(e=>({key:e.key,value:F(e.value,t)}))};case`regex`:return{type:`Literal`,value:e.pattern};case`slice`:return{type:`Slice`,start:e.start?F(e.start,t):void 0,end:e.end?F(e.end,t):void 0};case`lambda`:return F(e.body,t);case`pipeline`:return{type:`Identity`};default:throw Error(`Unknown moonblade expression type: ${e.type}`)}}function I(e){let t=[],n=0;for(;n<e.length;){for(;n<e.length&&(e[n]===` `||e[n]===`,`);)n++;if(n>=e.length)break;let r=n;for(;n<e.length&&/\w/.test(e[n]);)n++;let i=e.slice(r,n);for(;n<e.length&&e[n]===` `;)n++;if(e[n]!==`(`)break;n++;let a=1,o=n;for(;n<e.length&&a>0;)e[n]===`(`?a++:e[n]===`)`&&a--,a>0&&n++;let s=e.slice(o,n).trim();for(n++;n<e.length&&e[n]===` `;)n++;let c=``;if(e.slice(n,n+3).toLowerCase()===`as `){for(n+=3;n<e.length&&e[n]===` `;)n++;let t=n;for(;n<e.length&&/\w/.test(e[n]);)n++;c=e.slice(t,n)}c||=s?`${i}(${s})`:`${i}()`,t.push({func:i,expr:s,alias:c})}return t}function L(e){return/^\w+$/.test(e)}function R(e,t,n){let r=d(e,F(w(t)),n);return r.length>0?r[0]:null}function z(e,t,n={}){let{func:r,expr:i}=t;if(r===`count`&&!i)return e.length;let a;switch(a=L(i)?e.map(e=>e[i]).filter(e=>e!=null):e.map(e=>R(e,i,n)).filter(e=>e!=null),r){case`count`:return L(i)?a.length:a.filter(e=>!!e).length;case`sum`:return a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e))).reduce((e,t)=>e+t,0);case`mean`:case`avg`:{let e=a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e)));return e.length>0?e.reduce((e,t)=>e+t,0)/e.length:0}case`min`:{let e=a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e)));return e.length>0?Math.min(...e):null}case`max`:{let e=a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e)));return e.length>0?Math.max(...e):null}case`first`:return a.length>0?a[0]:null;case`last`:return a.length>0?a[a.length-1]:null;case`median`:{let e=a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e))).filter(e=>!Number.isNaN(e)).sort((e,t)=>e-t);if(e.length===0)return null;let t=Math.floor(e.length/2);return e.length%2==0?(e[t-1]+e[t])/2:e[t]}case`mode`:{let e=new Map;for(let t of a){let n=String(t);e.set(n,(e.get(n)||0)+1)}let t=0,n=null;for(let[r,i]of e)i>t&&(t=i,n=r);return n}case`cardinality`:return new Set(a.map(e=>String(e))).size;case`values`:return a.map(e=>String(e)).join(`|`);case`distinct_values`:return[...new Set(a.map(e=>String(e)))].sort().join(`|`);case`all`:if(e.length===0)return!0;for(let t of e)if(!R(t,i,n))return!1;return!0;case`any`:for(let t of e)if(R(t,i,n))return!0;return!1;default:return null}}function ee(e,t,n={}){let r=v();for(let i of t)_(r,i.alias,z(e,i,n));return r}async function te(e,t){let n=``,r=[];for(let t of e)t.startsWith(`-`)||(n?r.push(t):n=t);if(!n)return{stdout:``,stderr:`xan agg: no aggregation expression
@@ -58,7 +58,7 @@ import{t as e}from"./chunk-YNYSPYQ5-DesxOVHh.mjs";import{a as t,i as n,n as r,o
58
58
  `,exitCode:1};o=a[0].headers}let c=[];for(let{headers:e,data:t}of a)for(let n of t){let t=v();for(let r of o)_(t,r,e.includes(r)?n[r]:``);c.push(t)}return{stdout:h(o,c),stderr:``,exitCode:0}}async function Me(t,n){let r=``,i=[],a=!1,o=!1,s=[];for(let e=0;e<t.length;e++){let n=t[e];(n===`-s`||n===`--select`)&&e+1<t.length?i=t[++e].split(`,`):n===`-v`||n===`--invert`?a=!0:n===`-i`||n===`--ignore-case`?o=!0:n===`-r`||n===`--regex`||n.startsWith(`-`)||(r?s.push(n):r=n)}if(!r)return{stdout:``,stderr:`xan search: no pattern specified
59
59
  `,exitCode:1};let{headers:c,data:l,error:u}=await g(s,n);if(u)return u;let d=i.length>0?i:c,f;try{f=e(r,o?`i`:``)}catch{return{stdout:``,stderr:`xan search: invalid regex pattern '${r}'
60
60
  `,exitCode:1}}return{stdout:h(c,l.filter(e=>{let t=d.some(t=>{let n=e[t];return n!=null&&f.test(String(n))});return a?!t:t})),stderr:``,exitCode:0}}async function Ne(e,t){let n=``,r=[];for(let t of e)t.startsWith(`-`)||(n?r.push(t):n=t);if(!n)return{stdout:``,stderr:`xan flatmap: no expression specified
61
- `,exitCode:1};let{headers:i,data:a,error:o}=await g(r,t);if(o)return o;let s=C(n).map(({expr:e,name:t})=>({alias:typeof t==`string`?t:t[0],ast:F(e)})),c={limits:t.limits?{maxIterations:t.limits.maxJqIterations}:void 0},l=[...i,...s.map(e=>e.alias)],u=[];for(let e of a){let t=[],n=1;for(let r of s){let i=d(e,r.ast,c),a=i.length>0&&Array.isArray(i[0])?i[0]:i;t.push(a),n=Math.max(n,a.length)}for(let r=0;r<n;r++){let n=y(e);for(let e=0;e<s.length;e++){let i=t[e][r]??null;_(n,s[e].alias,i)}u.push(n)}}return{stdout:h(l,u),stderr:``,exitCode:0}}async function Pe(e,t){let{cmdView:n}=await import(`./xan-view-ECQUO7AJ-8Lt55NoE.mjs`);return n(e,t)}var Q=new Set([`fuzzy-join`,`glob`,`hist`,`input`,`parallel`,`plot`,`progress`,`range`,`scrape`,`tokenize`,`union-find`]),Fe=new Set([`agg`,`behead`,`cat`,`count`,`dedup`,`drop`,`enum`,`explode`,`f`,`filter`,`fixlengths`,`flatmap`,`flatten`,`fmt`,`frequency`,`freq`,`from`,`groupby`,`head`,`headers`,`implode`,`join`,`map`,`merge`,`partition`,`pivot`,`rename`,`reverse`,`sample`,`search`,`select`,`shuffle`,`slice`,`sort`,`split`,`stats`,`tail`,`to`,`top`,`transform`,`transpose`,`view`,...Q]),$={name:`xan`,summary:`CSV toolkit for data manipulation`,usage:`xan <COMMAND> [OPTIONS] [FILE]`,description:`xan is a collection of commands for working with CSV data.
61
+ `,exitCode:1};let{headers:i,data:a,error:o}=await g(r,t);if(o)return o;let s=C(n).map(({expr:e,name:t})=>({alias:typeof t==`string`?t:t[0],ast:F(e)})),c={limits:t.limits?{maxIterations:t.limits.maxJqIterations}:void 0},l=[...i,...s.map(e=>e.alias)],u=[];for(let e of a){let t=[],n=1;for(let r of s){let i=d(e,r.ast,c),a=i.length>0&&Array.isArray(i[0])?i[0]:i;t.push(a),n=Math.max(n,a.length)}for(let r=0;r<n;r++){let n=y(e);for(let e=0;e<s.length;e++){let i=t[e][r]??null;_(n,s[e].alias,i)}u.push(n)}}return{stdout:h(l,u),stderr:``,exitCode:0}}async function Pe(e,t){let{cmdView:n}=await import(`./xan-view-ECQUO7AJ-BfZejrY6.mjs`);return n(e,t)}var Q=new Set([`fuzzy-join`,`glob`,`hist`,`input`,`parallel`,`plot`,`progress`,`range`,`scrape`,`tokenize`,`union-find`]),Fe=new Set([`agg`,`behead`,`cat`,`count`,`dedup`,`drop`,`enum`,`explode`,`f`,`filter`,`fixlengths`,`flatmap`,`flatten`,`fmt`,`frequency`,`freq`,`from`,`groupby`,`head`,`headers`,`implode`,`join`,`map`,`merge`,`partition`,`pivot`,`rename`,`reverse`,`sample`,`search`,`select`,`shuffle`,`slice`,`sort`,`split`,`stats`,`tail`,`to`,`top`,`transform`,`transpose`,`view`,...Q]),$={name:`xan`,summary:`CSV toolkit for data manipulation`,usage:`xan <COMMAND> [OPTIONS] [FILE]`,description:`xan is a collection of commands for working with CSV data.
62
62
  It provides a simple, ergonomic interface for common data operations.
63
63
 
64
64
  COMMANDS:
@@ -137,4 +137,4 @@ EXAMPLES:
137
137
  `,exitCode:1}:{stdout:``,stderr:`xan: unknown command '${n}'
138
138
  Run 'xan --help' for usage.
139
139
  `,exitCode:1}}}},Re={name:`xan`,flags:[],stdinType:`text`,needsArgs:!0};export{Le as n,Re as t};
140
- //# sourceMappingURL=chunk-UNYNJIFU-B6KF1Gqq.mjs.map
140
+ //# sourceMappingURL=chunk-UNYNJIFU--HT-3lrq.mjs.map
@@ -1,4 +1,4 @@
1
- import{t as e}from"./chunk-YNYSPYQ5-DesxOVHh.mjs";function t(e,t){return e.replace(/\$(&|\d+|<([^>]+)>)/g,(e,n,r)=>n===`&`?t[0]:r===void 0?t[parseInt(n,10)]??``:t.groups?.[r]??``)}function n(e,n,i={}){let{invertMatch:a=!1,showLineNumbers:o=!1,countOnly:s=!1,countMatches:c=!1,filename:l=``,onlyMatching:u=!1,beforeContext:d=0,afterContext:f=0,maxCount:p=0,contextSeparator:m=`--`,showColumn:h=!1,vimgrep:g=!1,showByteOffset:_=!1,replace:v=null,passthru:y=!1,multiline:b=!1,kResetGroup:x}=i;if(b)return r(e,n,{invertMatch:a,showLineNumbers:o,countOnly:s,countMatches:c,filename:l,onlyMatching:u,beforeContext:d,afterContext:f,maxCount:p,contextSeparator:m,showColumn:h,showByteOffset:_,replace:v,kResetGroup:x});let S=e.split(`
1
+ import{t as e}from"./chunk-YNYSPYQ5-iQGTFdx0.mjs";function t(e,t){return e.replace(/\$(&|\d+|<([^>]+)>)/g,(e,n,r)=>n===`&`?t[0]:r===void 0?t[parseInt(n,10)]??``:t.groups?.[r]??``)}function n(e,n,i={}){let{invertMatch:a=!1,showLineNumbers:o=!1,countOnly:s=!1,countMatches:c=!1,filename:l=``,onlyMatching:u=!1,beforeContext:d=0,afterContext:f=0,maxCount:p=0,contextSeparator:m=`--`,showColumn:h=!1,vimgrep:g=!1,showByteOffset:_=!1,replace:v=null,passthru:y=!1,multiline:b=!1,kResetGroup:x}=i;if(b)return r(e,n,{invertMatch:a,showLineNumbers:o,countOnly:s,countMatches:c,filename:l,onlyMatching:u,beforeContext:d,afterContext:f,maxCount:p,contextSeparator:m,showColumn:h,showByteOffset:_,replace:v,kResetGroup:x});let S=e.split(`
2
2
  `),C=S.length,w=C>0&&S[C-1]===``?C-1:C;if(s||c){let e=0,t=(c||u)&&!a;for(let r=0;r<w;r++)if(n.lastIndex=0,t)for(let t=n.exec(S[r]);t!==null;t=n.exec(S[r]))e++,t[0].length===0&&n.lastIndex++;else n.test(S[r])!==a&&e++;return{output:`${l?`${l}:${e}`:String(e)}
3
3
  `,matched:e>0,matchCount:e}}if(d===0&&f===0&&!y){let e=[],r=!1,i=0,s=0;for(let c=0;c<w&&!(p>0&&i>=p);c++){let d=S[c];if(n.lastIndex=0,n.test(d)!==a)if(r=!0,i++,u){n.lastIndex=0;for(let r=n.exec(d);r!==null;r=n.exec(d)){let i=x===void 0?r[0]:r[x]??``,a=v===null?i:t(v,r),u=l?`${l}:`:``;_&&(u+=`${s+r.index}:`),o&&(u+=`${c+1}:`),h&&(u+=`${r.index+1}:`),e.push(u+a),r[0].length===0&&n.lastIndex++}}else if(g){n.lastIndex=0;for(let t=n.exec(d);t!==null;t=n.exec(d)){let r=l?`${l}:`:``;_&&(r+=`${s+t.index}:`),o&&(r+=`${c+1}:`),h&&(r+=`${t.index+1}:`),e.push(r+d),t[0].length===0&&n.lastIndex++}}else{n.lastIndex=0;let r=n.exec(d),i=r?r.index+1:1,a=d;v!==null&&(n.lastIndex=0,a=n.replace(d,(...e)=>{if(e[0].length===0)return``;let n=e,r=e[e.length-1];return typeof r==`object`&&r?(n.groups=r,n.input=e[e.length-2],n.index=e[e.length-3]):(n.input=e[e.length-1],n.index=e[e.length-2]),t(v,n)}));let u=l?`${l}:`:``;_&&(u+=`${s+(r?r.index:0)}:`),o&&(u+=`${c+1}:`),h&&(u+=`${i}:`),e.push(u+a)}s+=d.length+1}return{output:e.length>0?`${e.join(`
4
4
  `)}
@@ -14,4 +14,4 @@ import{t as e}from"./chunk-YNYSPYQ5-DesxOVHh.mjs";function t(e,t){return e.repla
14
14
  `:``,matched:t.length>0,matchCount:t.length}}if(C.length===0)return{output:``,matched:!1,matchCount:0};let w=new Set,T=-1,E=[];for(let e of C){let n=Math.max(0,e.startLine-l),r=Math.min(y-1,e.endLine+u);T>=0&&n>T+1&&E.push(f);for(let t=n;t<e.startLine;t++)if(!w.has(t)){w.add(t),T=t;let e=_[t];i&&(e=`${t+1}-${e}`),s&&(e=`${s}-${e}`),E.push(e)}if(c){let t=h===null?e.matchText:h,n=s?`${s}:`:``;m&&(n+=`${e.byteOffset}:`),i&&(n+=`${e.startLine+1}:`),p&&(n+=`${e.column}:`),E.push(n+t);for(let t=e.startLine;t<=e.endLine;t++)w.add(t),T=t}else for(let n=e.startLine;n<=e.endLine&&n<y;n++)if(!w.has(n)){w.add(n),T=n;let r=_[n];h!==null&&n===e.startLine&&(t.lastIndex=0,r=t.replace(r,h));let a=s?`${s}:`:``;m&&n===e.startLine&&(a+=`${e.byteOffset}:`),i&&(a+=`${n+1}:`),p&&n===e.startLine&&(a+=`${e.column}:`),E.push(a+r)}for(let t=e.endLine+1;t<=r;t++)if(!w.has(t)){w.add(t),T=t;let e=_[t];i&&(e=`${t+1}-${e}`),s&&(e=`${s}-${e}`),E.push(e)}}return{output:E.length>0?`${E.join(`
15
15
  `)}
16
16
  `:``,matched:!0,matchCount:C.length}}var i=new Map([[`alpha`,`a-zA-Z`],[`digit`,`0-9`],[`alnum`,`a-zA-Z0-9`],[`lower`,`a-z`],[`upper`,`A-Z`],[`xdigit`,`0-9A-Fa-f`],[`space`,` \\t\\n\\r\\f\\v`],[`blank`,` \\t`],[`punct`,"!-/:-@\\[-`{-~"],[`graph`,`!-~`],[`print`,` -~`],[`cntrl`,`\\x00-\\x1F\\x7F`],[`ascii`,`\\x00-\\x7F`],[`word`,`a-zA-Z0-9_`]]);function a(e){let t=``,n=0;for(;n<e.length;){if(e.slice(n,n+7)===`[[:<:]]`){t+=`\\b`,n+=7;continue}if(e.slice(n,n+7)===`[[:>:]]`){t+=`\\b`,n+=7;continue}if(e[n]===`[`){let r=`[`;for(n++,n<e.length&&(e[n]===`^`||e[n]===`!`)&&(r+=`^`,n++),n<e.length&&e[n]===`]`&&(r+=`\\]`,n++);n<e.length&&e[n]!==`]`;){if(e[n]===`[`&&n+1<e.length&&e[n+1]===`:`){let t=e.indexOf(`:]`,n+2);if(t!==-1){let a=e.slice(n+2,t),o=i.get(a);if(o){r+=o,n=t+2;continue}}}if(e[n]===`\\`&&n+1<e.length){r+=e[n]+e[n+1],n+=2;continue}r+=e[n],n++}n<e.length&&e[n]===`]`&&(r+=`]`,n++),t+=r;continue}if(e[n]===`\\`&&n+1<e.length){t+=e[n]+e[n+1],n+=2;continue}t+=e[n],n++}return t}function o(t,n){let r,i;switch(n.mode){case`fixed`:r=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);break;case`extended`:case`perl`:if(r=a(t),r=r.replace(/\(\?P<([^>]+)>/g,`(?<$1>`),n.mode===`perl`){r=s(r),r=c(r),r=l(r);let e=p(r);r=e.pattern,i=e.kResetGroup}break;default:r=a(t),r=_(r);break}n.wholeWord&&(r=`\\b(?:${r})\\b`),n.lineRegexp&&(r=`^${r}$`);let o=/\\u\{[0-9A-Fa-f]+\}/.test(r),u=`g`+(n.ignoreCase?`i`:``)+(n.multiline?`m`:``)+(n.multilineDotall?`s`:``)+(o?`u`:``);return{regex:e(r,u),kResetGroup:i}}function s(e){let t=``,n=0;for(;n<e.length;)if(e[n]===`\\`&&n+1<e.length&&e[n+1]===`Q`){n+=2;let r=``;for(;n<e.length;){if(e[n]===`\\`&&n+1<e.length&&e[n+1]===`E`){n+=2;break}r+=e[n],n++}t+=r.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}else t+=e[n],n++;return t}function c(e){return e.replace(/\\x\{([0-9A-Fa-f]+)\}/g,`\\u{$1}`)}function l(e){let t=``,n=0;for(;n<e.length;){if(e[n]===`(`&&n+1<e.length&&e[n+1]===`?`){let r=e.slice(n).match(/^\(\?([imsx]*)(-[imsx]*)?(:|$|\))/);if(r){let i=r[1]||``,a=r[2]||``,o=r[3];if(o===`:`){let o=n+r[0].length-1,s=u(e,n);if(s!==-1){let r=d(e.slice(o+1,s),i,a);t+=`(?:${r})`,n=s+1;continue}}else if(o===`)`||o===``){n+=r[0].length;continue}}}t+=e[n],n++}return t}function u(e,t){let n=0,r=t;for(;r<e.length;){if(e[r]===`\\`){r+=2;continue}if(e[r]===`[`){for(r++;r<e.length&&e[r]!==`]`;)e[r]===`\\`&&r++,r++;r++;continue}if(e[r]===`(`)n++;else if(e[r]===`)`&&(n--,n===0))return r;r++}return-1}function d(e,t,n){let r=e;return t.includes(`i`)&&(r=f(r)),r}function f(e){let t=``,n=0;for(;n<e.length;){let r=e[n];if(r===`\\`){n+1<e.length?(t+=r+e[n+1],n+=2):(t+=r,n++);continue}if(r===`[`){t+=r,n++,n<e.length&&e[n]===`^`&&(t+=e[n],n++);let i=[];for(;n<e.length&&e[n]!==`]`;)if(e[n]===`\\`)i.push(e[n]),n++,n<e.length&&(i.push(e[n]),n++);else if(e[n]===`-`&&i.length>0&&n+1<e.length&&e[n+1]!==`]`){let t=i[i.length-1],r=e[n+1];i.push(`-`),i.push(r),/[a-z]/.test(t)&&/[a-z]/.test(r)?(i.push(t.toUpperCase()),i.push(`-`),i.push(r.toUpperCase())):/[A-Z]/.test(t)&&/[A-Z]/.test(r)&&(i.push(t.toLowerCase()),i.push(`-`),i.push(r.toLowerCase())),n+=2}else{let t=e[n];if(i.push(t),/[a-zA-Z]/.test(t)){let e=t===t.toLowerCase()?t.toUpperCase():t.toLowerCase();i.includes(e)||i.push(e)}n++}t+=i.join(``),n<e.length&&(t+=e[n],n++);continue}if(/[a-zA-Z]/.test(r)){let e=r.toLowerCase(),n=r.toUpperCase();t+=`[${n}${e}]`}else t+=r;n++}return t}function p(e){let t=m(e);if(t===-1)return{pattern:e};let n=e.slice(0,t),r=e.slice(t+2),i=h(n);return{pattern:`(?:${n})(${r})`,kResetGroup:i+1}}function m(e){let t=0;for(;t<e.length-1;)if(e[t]===`\\`){if(e[t+1]===`K`){let n=0,r=t-1;for(;r>=0&&e[r]===`\\`;)n++,r--;if(n%2==0)return t}t+=2}else t++;return-1}function h(e){let t=0,n=0;for(;n<e.length;){if(e[n]===`\\`){n+=2;continue}if(e[n]===`[`){for(n++;n<e.length&&e[n]!==`]`;)e[n]===`\\`&&n++,n++;n++;continue}if(e[n]===`(`)if(n+1<e.length&&e[n+1]===`?`){if(n+2<e.length){let r=e[n+2];if(r===`:`||r===`=`||r===`!`){n++;continue}if(r===`<`&&n+3<e.length){let r=e[n+3];if(r===`=`||r===`!`){n++;continue}t++,n++;continue}}}else t++;n++}return t}function g(e){let t=e.replace(/\$\{0\}|\$0(?![0-9])/g,`$$&`);return t=t.replace(/\$\{([^0-9}][^}]*)\}/g,`$$<$1>`),t=t.replace(/\$([a-zA-Z_][a-zA-Z0-9_]*)(?![>0-9])/g,`$$<$1>`),t}function _(e){let t=``,n=0,r=!0,i=0;for(;n<e.length;){let a=e[n];if(a===`[`){for(t+=a,n++,n<e.length&&(e[n]===`^`||e[n]===`!`)&&(t+=e[n],n++),n<e.length&&e[n]===`]`&&(t+=e[n],n++);n<e.length&&e[n]!==`]`;)e[n]===`\\`&&n+1<e.length?(t+=e[n]+e[n+1],n+=2):(t+=e[n],n++);n<e.length&&e[n]===`]`&&(t+=e[n],n++),r=!1;continue}if(a===`\\`&&n+1<e.length){let o=e[n+1];if(o===`|`){t+=`|`,n+=2,r=!0;continue}if(o===`(`){t+=`(`,n+=2,i++,r=!0;continue}if(o===`)`){t+=`)`,n+=2,i=Math.max(0,i-1),r=!1;continue}if(o===`{`){let i=e.slice(n).match(/^\\{(\d+)(,(\d*)?)?\\}/);if(i){let e=i[1],a=i[2]!==void 0,o=i[3]||``;a?t+=`{${e},${o}}`:t+=`{${e}}`,n+=i[0].length,r=!1;continue}t+=`\\{`,n+=2,r=!1;continue}if(o===`}`){t+=`\\}`,n+=2,r=!1;continue}t+=a+o,n+=2,r=!1;continue}if(a===`*`&&r){t+=`\\*`,n++;continue}if(a===`^`){if(r){t+=`^`,n++;continue}t+=`\\^`,n++;continue}if(a===`$`){let i=n===e.length-1,a=n+2<e.length&&e[n+1]===`\\`&&e[n+2]===`)`;i||a?t+=`$`:t+=`\\$`,n++,r=!1;continue}a===`+`||a===`?`||a===`|`||a===`(`||a===`)`||a===`{`||a===`}`?t+=`\\${a}`:t+=a,n++,r=!1}return t}export{o as n,g as r,n as t};
17
- //# sourceMappingURL=chunk-VLGZJRPG-ChVasMna.mjs.map
17
+ //# sourceMappingURL=chunk-VLGZJRPG-DbWYxLfI.mjs.map
@@ -1,2 +1,2 @@
1
1
  import*as e from"node:fs";import*as t from"node:path";function n(e){if(!e||e===`/`)return`/`;let t=e.endsWith(`/`)&&e!==`/`?e.slice(0,-1):e;t.startsWith(`/`)||(t=`/${t}`);let n=t.split(`/`).filter(e=>e&&e!==`.`),r=[];for(let e of n)e===`..`?r.pop():r.push(e);return`/${r.join(`/`)}`||`/`}function r(e,t){if(e.includes(`\0`))throw Error(`ENOENT: path contains null byte, ${t} '${e}'`)}function i(e){let t=n(e);if(t===`/`)return`/`;let r=t.lastIndexOf(`/`);return r===0?`/`:t.slice(0,r)}function a(e,t){return t.startsWith(`/`)?n(t):n(e===`/`?`/${t}`:`${e}/${t}`)}function o(e,t){return e===`/`?`/${t}`:`${e}/${t}`}function s(e,t){return t.startsWith(`/`)?n(t):n(o(i(e),t))}function c(e,t){return e===t||e.startsWith(`${t}/`)}function l(n,r){try{let t=e.realpathSync(n);return c(t,r)?t:null}catch(i){if(i.code===`ENOENT`){let i=t.dirname(n);if(i===n)return null;let a=l(i,r);if(a===null)return null;try{if(e.lstatSync(n).isSymbolicLink()){let i=e.readlinkSync(n);if(l(t.isAbsolute(i)?i:t.resolve(t.dirname(n),i),r)===null)return null}}catch{}return t.join(a,t.basename(n))}return null}}function u(n,r,i){let a=l(n,i);if(a===null)return null;let o=t.resolve(n);if(o.slice(r.length)!==a.slice(i.length))return null;try{if(e.lstatSync(o).isSymbolicLink())return null}catch{}return a}function d(t,n){if(!e.existsSync(t))throw Error(`${n} root does not exist`);if(!e.statSync(t).isDirectory())throw Error(`${n} root is not a directory`)}function f(e,t,n,r){let i=e;if(i.path===void 0){for(let t of r)if(i.message?.includes(t))throw e}let a=i.code||`EIO`;throw Error(`${a}: ${n} '${t}'`)}export{c as a,i as c,a as d,n as i,o as l,f as n,l as o,u as r,r as s,d as t,s as u};
2
- //# sourceMappingURL=chunk-XHM67O4N-53eJIPK0.mjs.map
2
+ //# sourceMappingURL=chunk-XHM67O4N-BWGDFyz_.mjs.map
@@ -1,4 +1,4 @@
1
- import{i as e}from"./chunk-GFQRA5P5-DnjwTqP3.mjs";import{a as t,r as n,t as r}from"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as i}from"./chunk-5QMZ5MUS-CAp625aG.mjs";import{r as a,t as o}from"./chunk-24IMIIXA-B6yIPkk2.mjs";import{n as s}from"./chunk-3THT3N7L-DztAF386.mjs";import{n as c,r as l,t as u}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as d}from"./chunk-SYMJJMQ4-tl6Dz6VW.mjs";import{t as f}from"./chunk-7TSDKFEO-a-GUGBTu.mjs";import{n as p,t as m}from"./chunk-BBXLRYSX-DHx5dxhT.mjs";var h=n((e,t)=>{var{hasOwnProperty:n}=Object.prototype,r=(e,t={})=>{typeof t==`string`&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<`u`&&process.platform,t.bracketedArray=t.bracketedArray!==!1;let n=t.platform===`win32`?`\r
1
+ import{i as e}from"./chunk-GFQRA5P5-ePq2jelx.mjs";import{a as t,r as n,t as r}from"./chunk-DXB73IDG-C2RuFAAY.mjs";import{n as i}from"./chunk-5QMZ5MUS-BfIuRNkK.mjs";import{r as a,t as o}from"./chunk-24IMIIXA-C-Zyd2K_.mjs";import{n as s}from"./chunk-3THT3N7L-Ce6LrnIA.mjs";import{n as c,r as l,t as u}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as d}from"./chunk-SYMJJMQ4-DLPoQaug.mjs";import{t as f}from"./chunk-7TSDKFEO-a-GUGBTu.mjs";import{n as p,t as m}from"./chunk-BBXLRYSX-Oks1GMhO.mjs";var h=n((e,t)=>{var{hasOwnProperty:n}=Object.prototype,r=(e,t={})=>{typeof t==`string`&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<`u`&&process.platform,t.bracketedArray=t.bracketedArray!==!1;let n=t.platform===`win32`?`\r
2
2
  `:`
3
3
  `,a=t.whitespace?` = `:`=`,o=[],c=t.sort?Object.keys(e).sort():Object.keys(e),l=0;t.align&&(l=s(c.filter(t=>e[t]===null||Array.isArray(e[t])||typeof e[t]!=`object`).map(t=>Array.isArray(e[t])?`${t}[]`:t).concat([``]).reduce((e,t)=>s(e).length>=s(t).length?e:t)).length);let u=``,d=t.bracketedArray?`[]`:``;for(let t of c){let r=e[t];if(r&&Array.isArray(r))for(let e of r)u+=s(`${t}${d}`).padEnd(l,` `)+a+s(e)+n;else r&&typeof r==`object`?o.push(t):u+=s(t).padEnd(l,` `)+a+s(r)+n}t.section&&u.length&&(u=`[`+s(t.section)+`]`+(t.newline?n+n:n)+u);for(let a of o){let o=i(a,`.`).join(`\\.`),s=(t.section?t.section+`.`:``)+o,c=r(e[a],{...t,section:s});u.length&&c.length&&(u+=n),u+=c}return u};function i(e,t){var n=0,r=0,i=0,a=[];do if(i=e.indexOf(t,n),i!==-1){if(n=i+t.length,i>0&&e[i-1]===`\\`)continue;a.push(e.slice(r,i)),r=i+t.length}while(i!==-1);return a.push(e.slice(r)),a}var a=(e,t={})=>{t.bracketedArray=t.bracketedArray!==!1;let r=Object.create(null),a=r,o=null,s=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,l=e.split(/[\r\n]+/g),u={};for(let e of l){if(!e||e.match(/^\s*[;#]/)||e.match(/^\s*$/))continue;let i=e.match(s);if(!i)continue;if(i[1]!==void 0){if(o=c(i[1]),o===`__proto__`){a=Object.create(null);continue}a=r[o]=r[o]||Object.create(null);continue}let l=c(i[2]),d;t.bracketedArray?d=l.length>2&&l.slice(-2)===`[]`:(u[l]=(u?.[l]||0)+1,d=u[l]>1);let f=d&&l.endsWith(`[]`)?l.slice(0,-2):l;if(f===`__proto__`)continue;let p=i[3]?c(i[4]):!0,m=p===`true`||p===`false`||p===`null`?JSON.parse(p):p;d&&(n.call(a,f)?Array.isArray(a[f])||(a[f]=[a[f]]):a[f]=[]),Array.isArray(a[f])?a[f].push(m):a[f]=m}let d=[];for(let e of Object.keys(r)){if(!n.call(r,e)||typeof r[e]!=`object`||Array.isArray(r[e]))continue;let t=i(e,`.`);a=r;let o=t.pop(),s=o.replace(/\\\./g,`.`);for(let e of t)e!==`__proto__`&&((!n.call(a,e)||typeof a[e]!=`object`)&&(a[e]=Object.create(null)),a=a[e]);a===r&&s===o||(a[s]=r[e],d.push(e))}for(let e of d)delete r[e];return r},o=e=>e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`),s=e=>typeof e!=`string`||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&o(e)||e!==e.trim()?JSON.stringify(e):e.split(`;`).join(`\\;`).split(`#`).join(`\\#`),c=e=>{if(e=(e||``).trim(),o(e)){e.charAt(0)===`'`&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let t=!1,n=``;for(let r=0,i=e.length;r<i;r++){let i=e.charAt(r);if(t)`\\;#`.indexOf(i)===-1?n+=`\\`+i:n+=i,t=!1;else{if(`;#`.indexOf(i)!==-1)break;i===`\\`?t=!0:n+=i}}return t&&(n+=`\\`),n.trim()}return e};t.exports={parse:a,decode:a,stringify:r,encode:r,safe:s,unsafe:c}}),g=n(e=>{var t=Symbol.for(`yaml.alias`),n=Symbol.for(`yaml.document`),r=Symbol.for(`yaml.map`),i=Symbol.for(`yaml.pair`),a=Symbol.for(`yaml.scalar`),o=Symbol.for(`yaml.seq`),s=Symbol.for(`yaml.node.type`),c=e=>!!e&&typeof e==`object`&&e[s]===t,l=e=>!!e&&typeof e==`object`&&e[s]===n,u=e=>!!e&&typeof e==`object`&&e[s]===r,d=e=>!!e&&typeof e==`object`&&e[s]===i,f=e=>!!e&&typeof e==`object`&&e[s]===a,p=e=>!!e&&typeof e==`object`&&e[s]===o;function m(e){if(e&&typeof e==`object`)switch(e[s]){case r:case o:return!0}return!1}function h(e){if(e&&typeof e==`object`)switch(e[s]){case t:case r:case a:case o:return!0}return!1}e.ALIAS=t,e.DOC=n,e.MAP=r,e.NODE_TYPE=s,e.PAIR=i,e.SCALAR=a,e.SEQ=o,e.hasAnchor=e=>(f(e)||m(e))&&!!e.anchor,e.isAlias=c,e.isCollection=m,e.isDocument=l,e.isMap=u,e.isNode=h,e.isPair=d,e.isScalar=f,e.isSeq=p}),_=n(e=>{var t=g(),n=Symbol(`break visit`),r=Symbol(`skip children`),i=Symbol(`remove node`);function a(e,n){let r=l(n);t.isDocument(e)?o(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):o(null,e,r,Object.freeze([]))}a.BREAK=n,a.SKIP=r,a.REMOVE=i;function o(e,r,a,s){let c=u(e,r,a,s);if(t.isNode(c)||t.isPair(c))return d(e,s,c),o(e,c,a,s);if(typeof c!=`symbol`){if(t.isCollection(r)){s=Object.freeze(s.concat(r));for(let e=0;e<r.items.length;++e){let t=o(e,r.items[e],a,s);if(typeof t==`number`)e=t-1;else{if(t===n)return n;t===i&&(r.items.splice(e,1),--e)}}}else if(t.isPair(r)){s=Object.freeze(s.concat(r));let e=o(`key`,r.key,a,s);if(e===n)return n;e===i&&(r.key=null);let t=o(`value`,r.value,a,s);if(t===n)return n;t===i&&(r.value=null)}}return c}async function s(e,n){let r=l(n);t.isDocument(e)?await c(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):await c(null,e,r,Object.freeze([]))}s.BREAK=n,s.SKIP=r,s.REMOVE=i;async function c(e,r,a,o){let s=await u(e,r,a,o);if(t.isNode(s)||t.isPair(s))return d(e,o,s),c(e,s,a,o);if(typeof s!=`symbol`){if(t.isCollection(r)){o=Object.freeze(o.concat(r));for(let e=0;e<r.items.length;++e){let t=await c(e,r.items[e],a,o);if(typeof t==`number`)e=t-1;else{if(t===n)return n;t===i&&(r.items.splice(e,1),--e)}}}else if(t.isPair(r)){o=Object.freeze(o.concat(r));let e=await c(`key`,r.key,a,o);if(e===n)return n;e===i&&(r.key=null);let t=await c(`value`,r.value,a,o);if(t===n)return n;t===i&&(r.value=null)}}return s}function l(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function u(e,n,r,i){if(typeof r==`function`)return r(e,n,i);if(t.isMap(n))return r.Map?.(e,n,i);if(t.isSeq(n))return r.Seq?.(e,n,i);if(t.isPair(n))return r.Pair?.(e,n,i);if(t.isScalar(n))return r.Scalar?.(e,n,i);if(t.isAlias(n))return r.Alias?.(e,n,i)}function d(e,n,r){let i=n[n.length-1];if(t.isCollection(i))i.items[e]=r;else if(t.isPair(i))e===`key`?i.key=r:i.value=r;else if(t.isDocument(i))i.contents=r;else{let e=t.isAlias(i)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}e.visit=a,e.visitAsync=s}),v=n(e=>{var t=g(),n=_(),r={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},i=e=>e.replace(/[!,[\]{}]/g,e=>r[e]),a=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+i(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],i=Object.entries(this.tags),a;if(e&&i.length>0&&t.isNode(e.contents)){let r={};n.visit(e.contents,(e,n)=>{t.isNode(n)&&n.tag&&(r[n.tag]=!0)}),a=Object.keys(r)}else a=[];for(let[t,n]of i)t===`!!`&&n===`tag:yaml.org,2002:`||(!e||a.some(e=>e.startsWith(n)))&&r.push(`%TAG ${t} ${n}`);return r.join(`
4
4
  `)}};a.defaultYaml={explicit:!1,version:`1.2`},a.defaultTags={"!!":`tag:yaml.org,2002:`},e.Directives=a}),y=n(e=>{var t=g(),n=_();function r(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function i(e){let t=new Set;return n.visit(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function a(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function o(e,n){let r=[],o=new Map,s=null;return{onAnchor:t=>{r.push(t),s??=i(e);let o=a(n,s);return s.add(o),o},setAnchors:()=>{for(let e of r){let n=o.get(e);if(typeof n==`object`&&n.anchor&&(t.isScalar(n.node)||t.isCollection(n.node)))n.node.anchor=n.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:o}}e.anchorIsValid=r,e.anchorNames=i,e.createNodeAnchors=o,e.findNewAnchor=a}),b=n(e=>{function t(e,n,r,i){if(i&&typeof i==`object`)if(Array.isArray(i))for(let n=0,r=i.length;n<r;++n){let r=i[n],a=t(e,i,String(n),r);a===void 0?delete i[n]:a!==r&&(i[n]=a)}else if(i instanceof Map)for(let n of Array.from(i.keys())){let r=i.get(n),a=t(e,i,n,r);a===void 0?i.delete(n):a!==r&&i.set(n,a)}else if(i instanceof Set)for(let n of Array.from(i)){let r=t(e,i,n,n);r===void 0?i.delete(n):r!==n&&(i.delete(n),i.add(r))}else for(let[n,r]of Object.entries(i)){let a=t(e,i,n,r);a===void 0?delete i[n]:a!==r&&(i[n]=a)}return e.call(n,r,i)}e.applyReviver=t}),x=n(e=>{var t=g();function n(e,r,i){if(Array.isArray(e))return e.map((e,t)=>n(e,String(t),i));if(e&&typeof e.toJSON==`function`){if(!i||!t.hasAnchor(e))return e.toJSON(r,i);let n={aliasCount:0,count:1,res:void 0};i.anchors.set(e,n),i.onCreate=e=>{n.res=e,delete i.onCreate};let a=e.toJSON(r,i);return i.onCreate&&i.onCreate(a),a}return typeof e==`bigint`&&!i?.keep?Number(e):e}e.toJS=n}),S=n(e=>{var t=b(),n=g(),r=x();e.NodeBase=class{constructor(e){Object.defineProperty(this,n.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:i,maxAliasCount:a,onAnchor:o,reviver:s}={}){if(!n.isDocument(e))throw TypeError(`A document argument is required`);let c={anchors:new Map,doc:e,keep:!0,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof a==`number`?a:100},l=r.toJS(this,``,c);if(typeof o==`function`)for(let{count:e,res:t}of c.anchors.values())o(t,e);return typeof s==`function`?t.applyReviver(s,{"":l},``,l):l}}}),C=n(e=>{var t=y(),n=_(),r=g(),i=S(),a=x(),o=class extends i.NodeBase{constructor(e){super(r.ALIAS),this.source=e,Object.defineProperty(this,`tag`,{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){let i;t?.aliasResolveCache?i=t.aliasResolveCache:(i=[],n.visit(e,{Node:(e,t)=>{(r.isAlias(t)||r.hasAnchor(t))&&i.push(t)}}),t&&(t.aliasResolveCache=i));let a;for(let e of i){if(e===this)break;e.anchor===this.source&&(a=e)}return a}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,o=this.resolve(r,t);if(!o){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let c=n.get(o);if(c||=(a.toJS(o,null,t),n.get(o)),c?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=s(r,o,n)),c.count*c.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return c.res}toString(e,n,r){let i=`*${this.source}`;if(e){if(t.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${i} `}return i}};function s(e,t,n){if(r.isAlias(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(r.isCollection(t)){let r=0;for(let i of t.items){let t=s(e,i,n);t>r&&(r=t)}return r}else if(r.isPair(t)){let r=s(e,t.key,n),i=s(e,t.value,n);return Math.max(r,i)}return 1}e.Alias=o}),w=n(e=>{var t=g(),n=S(),r=x(),i=e=>!e||typeof e!=`function`&&typeof e!=`object`,a=class extends n.NodeBase{constructor(e){super(t.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:r.toJS(this.value,e,t)}toString(){return String(this.value)}};a.BLOCK_FOLDED=`BLOCK_FOLDED`,a.BLOCK_LITERAL=`BLOCK_LITERAL`,a.PLAIN=`PLAIN`,a.QUOTE_DOUBLE=`QUOTE_DOUBLE`,a.QUOTE_SINGLE=`QUOTE_SINGLE`,e.Scalar=a,e.isScalarValue=i}),T=n(e=>{var t=C(),n=g(),r=w(),i=`tag:yaml.org,2002:`;function a(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function o(e,o,s){if(n.isDocument(e)&&(e=e.contents),n.isNode(e))return e;if(n.isPair(e)){let t=s.schema[n.MAP].createNode?.(s.schema,null,s);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:c,onAnchor:l,onTagObj:u,schema:d,sourceObjects:f}=s,p;if(c&&e&&typeof e==`object`){if(p=f.get(e),p)return p.anchor??=l(e),new t.Alias(p.anchor);p={anchor:null,node:null},f.set(e,p)}o?.startsWith(`!!`)&&(o=i+o.slice(2));let m=a(e,o,d.tags);if(!m){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new r.Scalar(e);return p&&(p.node=t),t}m=e instanceof Map?d[n.MAP]:Symbol.iterator in Object(e)?d[n.SEQ]:d[n.MAP]}u&&(u(m),delete s.onTagObj);let h=m?.createNode?m.createNode(s.schema,e,s):typeof m?.nodeClass?.from==`function`?m.nodeClass.from(s.schema,e,s):new r.Scalar(e);return o?h.tag=o:m.default||(h.tag=m.tag),p&&(p.node=h),h}e.createNode=o}),E=n(e=>{var t=T(),n=g(),r=S();function i(e,n,r){let i=r;for(let e=n.length-1;e>=0;--e){let t=n[e];if(typeof t==`number`&&Number.isInteger(t)&&t>=0){let e=[];e[t]=i,i=e}else i=new Map([[t,i]])}return t.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var a=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done;e.Collection=class extends r.NodeBase{constructor(e,t){super(e),Object.defineProperty(this,`schema`,{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>n.isNode(t)||n.isPair(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(a(e))this.add(t);else{let[r,...a]=e,o=this.get(r,!0);if(n.isCollection(o))o.addIn(a,t);else if(o===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}deleteIn(e){let[t,...r]=e;if(r.length===0)return this.delete(t);let i=this.get(t,!0);if(n.isCollection(i))return i.deleteIn(r);throw Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){let[r,...i]=e,a=this.get(r,!0);return i.length===0?!t&&n.isScalar(a)?a.value:a:n.isCollection(a)?a.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!n.isPair(t))return!1;let r=t.value;return r==null||e&&n.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){let[t,...r]=e;if(r.length===0)return this.has(t);let i=this.get(t,!0);return n.isCollection(i)?i.hasIn(r):!1}setIn(e,t){let[r,...a]=e;if(a.length===0)this.set(r,t);else{let e=this.get(r,!0);if(n.isCollection(e))e.setIn(a,t);else if(e===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}},e.collectionFromPath=i,e.isEmptyPath=a}),D=n(e=>{var t=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function n(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}e.indentComment=n,e.lineComment=(e,t,r)=>e.endsWith(`
@@ -285,4 +285,4 @@ smol-toml/dist/index.js:
285
285
  *)
286
286
  */
287
287
  export{rr as n,nr as t};
288
- //# sourceMappingURL=chunk-XORM457F-BlSrSdGX.mjs.map
288
+ //# sourceMappingURL=chunk-XORM457F-D-QrjagQ.mjs.map
@@ -1,4 +1,4 @@
1
- import{i as e}from"./chunk-GFQRA5P5-DnjwTqP3.mjs";import{n as t}from"./chunk-5QMZ5MUS-CAp625aG.mjs";import{r as n,t as r}from"./chunk-24IMIIXA-B6yIPkk2.mjs";import{n as i}from"./chunk-3THT3N7L-DztAF386.mjs";import{n as a,r as o,t as s}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{n as c}from"./chunk-7L36YK2X-RiPZFKaV.mjs";import{t as l}from"./chunk-7TSDKFEO-a-GUGBTu.mjs";import{n as u,t as d}from"./chunk-BBXLRYSX-DHx5dxhT.mjs";function f(e){let t=[],n=0,r=e.length;for(;n<r;){for(;n<r&&/\s/.test(e[n]);)n++;if(n>=r)break;let i=n,a=e[n];if(a===`{`||a===`[`){let o=a,s=a===`{`?`}`:`]`,c=1,u=!1,d=!1;for(n++;n<r&&c>0;){let t=e[n];d?d=!1:t===`\\`?d=!0:t===`"`?u=!u:u||(t===o?c++:t===s&&c--),n++}if(c!==0)throw Error(`Unexpected end of JSON input at position ${n} (unclosed ${o})`);t.push(l(JSON.parse(e.slice(i,n))))}else if(a===`"`){let a=!1;for(n++;n<r;){let t=e[n];if(a)a=!1;else if(t===`\\`)a=!0;else if(t===`"`){n++;break}n++}t.push(l(JSON.parse(e.slice(i,n))))}else if(a===`-`||a>=`0`&&a<=`9`){for(;n<r&&/[\d.eE+-]/.test(e[n]);)n++;t.push(l(JSON.parse(e.slice(i,n))))}else if(e.slice(n,n+4)===`true`)t.push(!0),n+=4;else if(e.slice(n,n+5)===`false`)t.push(!1),n+=5;else if(e.slice(n,n+4)===`null`)t.push(null),n+=4;else{let t=e.slice(n,n+10);throw Error(`Invalid JSON at position ${i}: unexpected '${t.split(/\s/)[0]}'`)}}return t}var p={name:`jq`,summary:`command-line JSON processor`,usage:`jq [OPTIONS] FILTER [FILE]`,options:[`-r, --raw-output output strings without quotes`,`-c, --compact compact output (no pretty printing)`,`-e, --exit-status set exit status based on output`,`-s, --slurp read entire input into array`,`-n, --null-input don't read any input`,`-j, --join-output don't print newlines after each output`,`-a, --ascii force ASCII output`,`-S, --sort-keys sort object keys`,`-C, --color colorize output (ignored)`,`-M, --monochrome monochrome output (ignored)`,` --tab use tabs for indentation`,` --help display this help and exit`]};function m(e,t,n,r,i,a=0){if(e==null)return`null`;if(typeof e==`boolean`)return String(e);if(typeof e==`number`)return Number.isFinite(e)?String(e):`null`;if(typeof e==`string`)return n?e:JSON.stringify(e);let o=i?` `:` `;if(Array.isArray(e))return e.length===0?`[]`:t?`[${e.map(e=>m(e,!0,!1,r,i)).join(`,`)}]`:`[
1
+ import{i as e}from"./chunk-GFQRA5P5-ePq2jelx.mjs";import{n as t}from"./chunk-5QMZ5MUS-BfIuRNkK.mjs";import{r as n,t as r}from"./chunk-24IMIIXA-C-Zyd2K_.mjs";import{n as i}from"./chunk-3THT3N7L-Ce6LrnIA.mjs";import{n as a,r as o,t as s}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{n as c}from"./chunk-7L36YK2X-RiPZFKaV.mjs";import{t as l}from"./chunk-7TSDKFEO-a-GUGBTu.mjs";import{n as u,t as d}from"./chunk-BBXLRYSX-Oks1GMhO.mjs";function f(e){let t=[],n=0,r=e.length;for(;n<r;){for(;n<r&&/\s/.test(e[n]);)n++;if(n>=r)break;let i=n,a=e[n];if(a===`{`||a===`[`){let o=a,s=a===`{`?`}`:`]`,c=1,u=!1,d=!1;for(n++;n<r&&c>0;){let t=e[n];d?d=!1:t===`\\`?d=!0:t===`"`?u=!u:u||(t===o?c++:t===s&&c--),n++}if(c!==0)throw Error(`Unexpected end of JSON input at position ${n} (unclosed ${o})`);t.push(l(JSON.parse(e.slice(i,n))))}else if(a===`"`){let a=!1;for(n++;n<r;){let t=e[n];if(a)a=!1;else if(t===`\\`)a=!0;else if(t===`"`){n++;break}n++}t.push(l(JSON.parse(e.slice(i,n))))}else if(a===`-`||a>=`0`&&a<=`9`){for(;n<r&&/[\d.eE+-]/.test(e[n]);)n++;t.push(l(JSON.parse(e.slice(i,n))))}else if(e.slice(n,n+4)===`true`)t.push(!0),n+=4;else if(e.slice(n,n+5)===`false`)t.push(!1),n+=5;else if(e.slice(n,n+4)===`null`)t.push(null),n+=4;else{let t=e.slice(n,n+10);throw Error(`Invalid JSON at position ${i}: unexpected '${t.split(/\s/)[0]}'`)}}return t}var p={name:`jq`,summary:`command-line JSON processor`,usage:`jq [OPTIONS] FILTER [FILE]`,options:[`-r, --raw-output output strings without quotes`,`-c, --compact compact output (no pretty printing)`,`-e, --exit-status set exit status based on output`,`-s, --slurp read entire input into array`,`-n, --null-input don't read any input`,`-j, --join-output don't print newlines after each output`,`-a, --ascii force ASCII output`,`-S, --sort-keys sort object keys`,`-C, --color colorize output (ignored)`,`-M, --monochrome monochrome output (ignored)`,` --tab use tabs for indentation`,` --help display this help and exit`]};function m(e,t,n,r,i,a=0){if(e==null)return`null`;if(typeof e==`boolean`)return String(e);if(typeof e==`number`)return Number.isFinite(e)?String(e):`null`;if(typeof e==`string`)return n?e:JSON.stringify(e);let o=i?` `:` `;if(Array.isArray(e))return e.length===0?`[]`:t?`[${e.map(e=>m(e,!0,!1,r,i)).join(`,`)}]`:`[
2
2
  ${e.map(e=>o.repeat(a+1)+m(e,!1,!1,r,i,a+1)).join(`,
3
3
  `)}
4
4
  ${o.repeat(a)}]`;if(typeof e==`object`){let n=Object.keys(e);return r&&(n=n.sort()),n.length===0?`{}`:t?`{${n.map(t=>`${JSON.stringify(t)}:${m(e[t],!0,!1,r,i)}`).join(`,`)}}`:`{
@@ -10,4 +10,4 @@ ${o.repeat(a)}}`}return String(e)}var h={name:`jq`,async execute(l,h){r(h.requir
10
10
  `,exitCode:e.EXIT_CODE};let r=i(n.message);return r.includes(`Unknown function`)?{stdout:``,stderr:`jq: error: ${r}
11
11
  `,exitCode:3}:{stdout:``,stderr:`jq: parse error: ${r}
12
12
  `,exitCode:5}}}},g={name:`jq`,flags:[{flag:`-r`,type:`boolean`},{flag:`-c`,type:`boolean`},{flag:`-e`,type:`boolean`},{flag:`-s`,type:`boolean`},{flag:`-n`,type:`boolean`},{flag:`-j`,type:`boolean`},{flag:`-S`,type:`boolean`},{flag:`--tab`,type:`boolean`}],stdinType:`json`,needsArgs:!0};export{g as n,h as t};
13
- //# sourceMappingURL=chunk-YCFVLTST-uJkMN44i.mjs.map
13
+ //# sourceMappingURL=chunk-YCFVLTST-CFJxSbsH.mjs.map
@@ -1,5 +1,5 @@
1
- import{t as e}from"./chunk-YNYSPYQ5-DesxOVHh.mjs";import{n as t}from"./chunk-3THT3N7L-DztAF386.mjs";var n={name:`expr`,async execute(e,n){if(e.length===0)return{stdout:``,stderr:`expr: missing operand
1
+ import{t as e}from"./chunk-YNYSPYQ5-iQGTFdx0.mjs";import{n as t}from"./chunk-3THT3N7L-Ce6LrnIA.mjs";var n={name:`expr`,async execute(e,n){if(e.length===0)return{stdout:``,stderr:`expr: missing operand
2
2
  `,exitCode:2};try{let t=r(e),n=t===`0`||t===``?1:0;return{stdout:`${t}
3
3
  `,stderr:``,exitCode:n}}catch(e){return{stdout:``,stderr:`expr: ${t(e.message)}
4
4
  `,exitCode:2}}}};function r(t){if(t.length===1)return t[0];let n=0;function r(){let e=i();for(;n<t.length&&t[n]===`|`;){n++;let t=i();if(e!==`0`&&e!==``)return e;e=t}return e}function i(){let e=a();for(;n<t.length&&t[n]===`&`;){n++;let t=a();(e===`0`||e===``||t===`0`||t===``)&&(e=`0`)}return e}function a(){let e=o();for(;n<t.length;){let r=t[n];if([`=`,`!=`,`<`,`>`,`<=`,`>=`].includes(r)){n++;let t=o(),i=parseInt(e,10),a=parseInt(t,10),s=!Number.isNaN(i)&&!Number.isNaN(a),c;c=r===`=`?s?i===a:e===t:r===`!=`?s?i!==a:e!==t:r===`<`?s?i<a:e<t:r===`>`?s?i>a:e>t:r===`<=`?s?i<=a:e<=t:s?i>=a:e>=t,e=c?`1`:`0`}else break}return e}function o(){let e=s();for(;n<t.length;){let r=t[n];if(r===`+`||r===`-`){n++;let t=s(),i=parseInt(e,10),a=parseInt(t,10);if(Number.isNaN(i)||Number.isNaN(a))throw Error(`non-integer argument`);e=String(r===`+`?i+a:i-a)}else break}return e}function s(){let e=c();for(;n<t.length;){let r=t[n];if(r===`*`||r===`/`||r===`%`){n++;let t=c(),i=parseInt(e,10),a=parseInt(t,10);if(Number.isNaN(i)||Number.isNaN(a))throw Error(`non-integer argument`);if((r===`/`||r===`%`)&&a===0)throw Error(`division by zero`);e=String(r===`*`?i*a:r===`/`?Math.trunc(i/a):i%a)}else break}return e}function c(){let r=l();for(;n<t.length&&t[n]===`:`;){n++;let t=e(`^${l()}`).match(r);r=t?t[1]===void 0?String(t[0].length):t[1]:`0`}return r}function l(){if(n>=t.length)throw Error(`syntax error`);let i=t[n];if(i===`match`){n++;let t=l(),r=e(l()).match(t);return r?r[1]===void 0?String(r[0].length):r[1]:`0`}if(i===`substr`){n++;let e=l(),t=parseInt(l(),10),r=parseInt(l(),10);if(Number.isNaN(t)||Number.isNaN(r))throw Error(`non-integer argument`);return e.substring(t-1,t-1+r)}if(i===`index`){n++;let e=l(),t=l();for(let n=0;n<e.length;n++)if(t.includes(e[n]))return String(n+1);return`0`}if(i===`length`){n++;let e=l();return String(e.length)}if(i===`(`){n++;let e=r();if(n>=t.length||t[n]!==`)`)throw Error(`syntax error`);return n++,e}return n++,i}return r()}var i={name:`expr`,flags:[],needsArgs:!0};export{n,i as t};
5
- //# sourceMappingURL=chunk-YFG2CMIF-DYVCRkoM.mjs.map
5
+ //# sourceMappingURL=chunk-YFG2CMIF-DkT4NiqV.mjs.map
@@ -31,4 +31,4 @@ re2js/build/index.esm.js:
31
31
  *)
32
32
  */
33
33
  export{ce as n,se as t};
34
- //# sourceMappingURL=chunk-YNYSPYQ5-DesxOVHh.mjs.map
34
+ //# sourceMappingURL=chunk-YNYSPYQ5-iQGTFdx0.mjs.map