just-bash 2.15.1-executor.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1158) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/README.md +38 -2
  3. package/dist/Bash.d.ts +23 -84
  4. package/dist/bin/chunks/alias-YRVAW27Y.js +3 -0
  5. package/dist/bin/chunks/awk2-RLMNTGI7.js +3 -0
  6. package/dist/bin/chunks/base64-RZRLGMB3.js +3 -0
  7. package/dist/bin/chunks/basename-F3AQ4KAQ.js +3 -0
  8. package/dist/bin/chunks/bash-CLP24TE2.js +3 -0
  9. package/dist/bin/chunks/cat-LQH5FSAR.js +3 -0
  10. package/dist/bin/chunks/chmod-S564JCJW.js +3 -0
  11. package/dist/bin/chunks/chunk-22HCD466.js +3 -0
  12. package/dist/bin/chunks/chunk-2AIXTPH2.js +9 -0
  13. package/dist/bin/chunks/chunk-2ETT4ELS.js +4 -0
  14. package/dist/bin/chunks/chunk-2GG3NVC4.js +10 -0
  15. package/dist/bin/chunks/chunk-2NRAWO6E.js +7 -0
  16. package/dist/bin/chunks/chunk-2SVX7I5P.js +14 -0
  17. package/dist/bin/chunks/chunk-3BYTCO2H.js +12 -0
  18. package/dist/bin/chunks/chunk-3MRB66F4.js +3 -0
  19. package/dist/bin/chunks/chunk-3UKQXBQ3.js +6 -0
  20. package/dist/bin/chunks/chunk-3WIMLJM7.js +8 -0
  21. package/dist/bin/chunks/chunk-47WZ2U6M.js +9 -0
  22. package/dist/bin/chunks/chunk-4KSZJAQK.js +6 -0
  23. package/dist/bin/chunks/chunk-5XSZHUEI.js +15 -0
  24. package/dist/bin/chunks/chunk-6FSBHK6H.js +22 -0
  25. package/dist/bin/chunks/chunk-6WJQNLR2.js +7 -0
  26. package/dist/bin/chunks/chunk-77MLOOQS.js +11 -0
  27. package/dist/bin/chunks/chunk-7AYT3UKI.js +6 -0
  28. package/dist/bin/chunks/chunk-7JZKVC3F.js +2 -0
  29. package/dist/bin/chunks/chunk-7NC4CPHS.js +20 -0
  30. package/dist/bin/chunks/chunk-7UU7KPEM.js +7 -0
  31. package/dist/bin/chunks/chunk-7VCQWCSH.js +15 -0
  32. package/dist/bin/chunks/chunk-AGKL4LDL.js +4 -0
  33. package/dist/bin/chunks/chunk-AJF3OBTR.js +4 -0
  34. package/dist/bin/chunks/chunk-ALVEEXFD.js +19 -0
  35. package/dist/bin/chunks/chunk-B2DRBHGQ.js +3 -0
  36. package/dist/bin/chunks/chunk-BE4PARL3.js +13 -0
  37. package/dist/bin/chunks/chunk-BGX3RW7H.js +10 -0
  38. package/dist/bin/chunks/chunk-BIJXTWZ4.js +3 -0
  39. package/dist/bin/chunks/chunk-BPZJYOUA.js +33 -0
  40. package/dist/bin/chunks/chunk-BZP56QBM.js +24 -0
  41. package/dist/bin/chunks/chunk-C7ISPH7Y.js +18 -0
  42. package/dist/bin/chunks/chunk-CAZ75E7E.js +3 -0
  43. package/dist/bin/chunks/chunk-D6CPXGKK.js +75 -0
  44. package/dist/bin/chunks/chunk-DJAX3ZRG.js +8 -0
  45. package/dist/bin/chunks/chunk-DYIBFLS3.js +17 -0
  46. package/dist/bin/chunks/chunk-EDTBGO7F.js +37 -0
  47. package/dist/bin/chunks/chunk-F3GKANW3.js +12 -0
  48. package/dist/bin/chunks/chunk-F3WNDKOC.js +3 -0
  49. package/dist/bin/chunks/chunk-FKVQZWJQ.js +10 -0
  50. package/dist/bin/chunks/chunk-FOUVACI7.js +16 -0
  51. package/dist/bin/chunks/chunk-FVRXEJYQ.js +141 -0
  52. package/dist/bin/chunks/chunk-G4AUMZUY.js +4 -0
  53. package/dist/bin/chunks/chunk-H7JTIXAO.js +4 -0
  54. package/dist/bin/chunks/chunk-HL4ZS7TX.js +6 -0
  55. package/dist/bin/chunks/chunk-HN2DCT7T.js +13 -0
  56. package/dist/bin/chunks/chunk-I4IRHQDW.js +3 -0
  57. package/dist/bin/chunks/chunk-IEXQTXU5.js +34 -0
  58. package/dist/bin/chunks/chunk-IZGLHVBB.js +8 -0
  59. package/dist/bin/chunks/chunk-J7TUF2VI.js +9 -0
  60. package/dist/bin/chunks/chunk-JNUX75OX.js +85 -0
  61. package/dist/bin/chunks/chunk-JXLDT4KX.js +4 -0
  62. package/dist/bin/chunks/chunk-JZW7NFK2.js +288 -0
  63. package/dist/bin/chunks/chunk-KFMPGSUT.js +9 -0
  64. package/dist/bin/chunks/chunk-KI54R2QB.js +3 -0
  65. package/dist/bin/chunks/chunk-KRRM5UCC.js +3 -0
  66. package/dist/bin/chunks/chunk-KUMHQGUR.js +3 -0
  67. package/dist/bin/chunks/chunk-L24QXM5S.js +34 -0
  68. package/dist/bin/chunks/chunk-LAHBP3FW.js +11 -0
  69. package/dist/bin/chunks/chunk-LC6D27QJ.js +3 -0
  70. package/dist/bin/chunks/chunk-LNNWMRCB.js +3 -0
  71. package/dist/bin/chunks/chunk-LNVSXNT7.js +3 -0
  72. package/dist/bin/chunks/chunk-LSQTB2QK.js +7 -0
  73. package/dist/bin/chunks/chunk-M65CQLJE.js +101 -0
  74. package/dist/bin/chunks/chunk-MLUOPG3W.js +3 -0
  75. package/dist/bin/chunks/chunk-MNWK4UIM.js +22 -0
  76. package/dist/bin/chunks/chunk-MROECM42.js +3 -0
  77. package/dist/bin/chunks/chunk-MUFNRCMY.js +24 -0
  78. package/dist/bin/chunks/chunk-N6YW4W3Z.js +29 -0
  79. package/dist/bin/chunks/chunk-NE4R2FVV.js +5 -0
  80. package/dist/bin/chunks/chunk-NXVG64T3.js +22 -0
  81. package/dist/bin/chunks/chunk-NYIPFY36.js +3 -0
  82. package/dist/bin/chunks/chunk-O2BCKSMK.js +3 -0
  83. package/dist/bin/chunks/chunk-OLEQNRKX.js +8 -0
  84. package/dist/bin/chunks/chunk-OPMLWMNH.js +17 -0
  85. package/dist/bin/chunks/chunk-PAYQNSZN.js +18 -0
  86. package/dist/bin/chunks/chunk-PBOVSFTJ.js +3 -0
  87. package/dist/bin/chunks/chunk-PXP4YYZA.js +13 -0
  88. package/dist/bin/chunks/chunk-PZQVSQX6.js +4 -0
  89. package/dist/bin/chunks/chunk-Q2GOPGDA.js +6 -0
  90. package/dist/bin/chunks/chunk-Q4UMTSRO.js +15 -0
  91. package/dist/bin/chunks/chunk-QL33F2W6.js +8 -0
  92. package/dist/bin/chunks/chunk-RVPTAYDS.js +4 -0
  93. package/dist/bin/chunks/chunk-SMSELHIY.js +12 -0
  94. package/dist/bin/chunks/chunk-UGJM7CKP.js +17 -0
  95. package/dist/bin/chunks/chunk-UO5LOD7U.js +12 -0
  96. package/dist/bin/chunks/chunk-UOMNSQEZ.js +10 -0
  97. package/dist/bin/chunks/chunk-UR4CEP4Y.js +3 -0
  98. package/dist/bin/chunks/chunk-V2RP73X4.js +15 -0
  99. package/dist/bin/chunks/chunk-VBDLSL7Y.js +10 -0
  100. package/dist/bin/chunks/chunk-VZK4FHWJ.js +3 -0
  101. package/dist/bin/chunks/chunk-WDWNEHHE.js +9 -0
  102. package/dist/bin/chunks/chunk-X4MX6EHF.js +6 -0
  103. package/dist/bin/chunks/chunk-XBB73LFB.js +5 -0
  104. package/dist/bin/chunks/chunk-XFFUAO3F.js +3 -0
  105. package/dist/bin/chunks/chunk-XHCCSVP6.js +9 -0
  106. package/dist/bin/chunks/chunk-XJ37N3S5.js +7 -0
  107. package/dist/bin/chunks/chunk-XPTYN6UE.js +8 -0
  108. package/dist/bin/chunks/chunk-XRUDFQG5.js +7 -0
  109. package/dist/bin/chunks/chunk-Y4FPH5DQ.js +64 -0
  110. package/dist/bin/chunks/chunk-YJ5OCPSK.js +7 -0
  111. package/dist/bin/chunks/chunk-YOIFOOGX.js +9 -0
  112. package/dist/bin/chunks/chunk-YOKQNNQO.js +6 -0
  113. package/dist/bin/chunks/chunk-YUZRUF5F.js +10 -0
  114. package/dist/bin/chunks/chunk-YY5PJR7O.js +7 -0
  115. package/dist/bin/chunks/chunk-ZFUVUYWG.js +15 -0
  116. package/dist/bin/chunks/clear-FGNEKYDU.js +3 -0
  117. package/dist/bin/chunks/column-AQB3A3PJ.js +3 -0
  118. package/dist/bin/chunks/comm-Q4VDF6ZO.js +3 -0
  119. package/dist/bin/chunks/cp-HYXTMN3D.js +3 -0
  120. package/dist/bin/chunks/curl-AXXGQRR2.js +27 -0
  121. package/dist/bin/chunks/cut-ZI2HIAW7.js +3 -0
  122. package/dist/bin/chunks/date-JEZYSA4F.js +3 -0
  123. package/dist/bin/chunks/diff-YDJ42RKS.js +3 -0
  124. package/dist/bin/chunks/dirname-VCINTLPD.js +3 -0
  125. package/dist/bin/chunks/du-4LRQIGRG.js +3 -0
  126. package/dist/bin/chunks/echo-KCOHTNDF.js +3 -0
  127. package/dist/bin/chunks/env-NY32PQJM.js +3 -0
  128. package/dist/bin/chunks/expand-YYSO35NS.js +3 -0
  129. package/dist/bin/chunks/expansion-PPP6PD75.js +3 -0
  130. package/dist/bin/chunks/expr-7PLWSWZI.js +3 -0
  131. package/dist/bin/chunks/file-GRZLWDVH.js +3 -0
  132. package/dist/bin/chunks/find-P4DOE7CE.js +3 -0
  133. package/dist/bin/chunks/flag-coverage-RFKIBJ6L.js +3 -0
  134. package/dist/bin/chunks/fold-5MF7QZWQ.js +3 -0
  135. package/dist/bin/chunks/grep-VAYCFO4O.js +3 -0
  136. package/dist/bin/chunks/gzip-UGBQQKIH.js +3 -0
  137. package/dist/bin/chunks/head-QNC2ZYDO.js +3 -0
  138. package/dist/bin/chunks/help-CGUEOGXQ.js +3 -0
  139. package/dist/bin/chunks/history-AQQWW3QB.js +3 -0
  140. package/dist/bin/chunks/hostname-USNWOQCK.js +3 -0
  141. package/dist/bin/chunks/html-to-markdown-QEFY7XQR.js +3 -0
  142. package/dist/bin/chunks/join-EJ73DYTK.js +3 -0
  143. package/dist/bin/chunks/jq-GGTKKMEN.js +3 -0
  144. package/dist/bin/chunks/js-exec-BC6NI55L.js +98 -0
  145. package/dist/bin/chunks/js-exec-worker.js +27 -185
  146. package/dist/bin/chunks/ln-LP4HMCSM.js +3 -0
  147. package/dist/bin/chunks/ls-KBNHNZWQ.js +3 -0
  148. package/dist/bin/chunks/md5sum-MCVDIB35.js +3 -0
  149. package/dist/bin/chunks/mkdir-P4DKRCDX.js +3 -0
  150. package/dist/bin/chunks/mv-QQK4FQX6.js +3 -0
  151. package/dist/bin/chunks/nl-KUPLVCTS.js +3 -0
  152. package/dist/bin/chunks/od-YQ5ZUI2H.js +3 -0
  153. package/dist/bin/chunks/paste-A5KKPWXX.js +3 -0
  154. package/dist/bin/chunks/printf-Z5C2UOI5.js +3 -0
  155. package/dist/bin/chunks/pwd-FCNDA467.js +3 -0
  156. package/dist/bin/chunks/python3-BQWDPUBM.js +13 -0
  157. package/dist/bin/chunks/readlink-25V57VOL.js +3 -0
  158. package/dist/bin/chunks/rev-PYHOZ4D4.js +3 -0
  159. package/dist/bin/chunks/rg-BGFMSIVK.js +3 -0
  160. package/dist/bin/chunks/rm-ECNUFR66.js +3 -0
  161. package/dist/bin/chunks/rmdir-DLOHIA7Q.js +3 -0
  162. package/dist/bin/chunks/sed-FWA634SN.js +3 -0
  163. package/dist/bin/chunks/seq-UXDJE6FB.js +3 -0
  164. package/dist/bin/chunks/sha1sum-4KF52U3Y.js +3 -0
  165. package/dist/bin/chunks/sha256sum-6YEPULPX.js +3 -0
  166. package/dist/bin/chunks/sleep-QHAPNY3Q.js +3 -0
  167. package/dist/bin/chunks/sort-4C6WOKNK.js +3 -0
  168. package/dist/bin/chunks/split-TV7NL7LA.js +3 -0
  169. package/dist/bin/chunks/sqlite3-W777NCI4.js +3 -0
  170. package/dist/bin/chunks/sqlite3-worker.js +1728 -0
  171. package/dist/bin/chunks/stat-BD6KT3BP.js +3 -0
  172. package/dist/bin/chunks/strings-MDD72LR6.js +3 -0
  173. package/dist/bin/chunks/tac-C2N4NQ6S.js +3 -0
  174. package/dist/bin/chunks/tail-BCB5W6JC.js +3 -0
  175. package/dist/bin/chunks/tar-DOO744MK.js +3 -0
  176. package/dist/bin/chunks/tee-UQHPO4OW.js +3 -0
  177. package/dist/bin/chunks/time-ZPY52VT2.js +3 -0
  178. package/dist/bin/chunks/timeout-5AX3ZS3X.js +3 -0
  179. package/dist/bin/chunks/touch-DFGSVIX7.js +3 -0
  180. package/dist/bin/chunks/tr-G7K6M6HP.js +3 -0
  181. package/dist/bin/chunks/tree-6D7SMPUR.js +3 -0
  182. package/dist/bin/chunks/true-SKL4L7JP.js +3 -0
  183. package/dist/bin/chunks/unexpand-QIR4EDPG.js +3 -0
  184. package/dist/bin/chunks/uniq-I7PVFJR4.js +3 -0
  185. package/dist/bin/chunks/wc-6NGWULAP.js +3 -0
  186. package/dist/bin/chunks/which-LCXKCLFC.js +3 -0
  187. package/dist/bin/chunks/whoami-TZDZDU7T.js +3 -0
  188. package/dist/bin/chunks/worker.js +28 -9
  189. package/dist/bin/chunks/xan-KX4VPXUN.js +3 -0
  190. package/dist/bin/chunks/xan-view-JXOZLJ7S.js +3 -0
  191. package/dist/bin/chunks/xargs-UWHPYLY7.js +3 -0
  192. package/dist/bin/chunks/yq-GCDCJBKB.js +3 -0
  193. package/dist/bin/just-bash.js +293 -292
  194. package/dist/bin/shell/chunks/alias-YRVAW27Y.js +3 -0
  195. package/dist/bin/shell/chunks/awk2-RLMNTGI7.js +3 -0
  196. package/dist/bin/shell/chunks/base64-RZRLGMB3.js +3 -0
  197. package/dist/bin/shell/chunks/basename-F3AQ4KAQ.js +3 -0
  198. package/dist/bin/shell/chunks/bash-CLP24TE2.js +3 -0
  199. package/dist/bin/shell/chunks/cat-LQH5FSAR.js +3 -0
  200. package/dist/bin/shell/chunks/chmod-S564JCJW.js +3 -0
  201. package/dist/bin/shell/chunks/chunk-22HCD466.js +3 -0
  202. package/dist/bin/shell/chunks/chunk-2AIXTPH2.js +9 -0
  203. package/dist/bin/shell/chunks/chunk-2ETT4ELS.js +4 -0
  204. package/dist/bin/shell/chunks/chunk-2GG3NVC4.js +10 -0
  205. package/dist/bin/shell/chunks/chunk-2NRAWO6E.js +7 -0
  206. package/dist/bin/shell/chunks/chunk-2SVX7I5P.js +14 -0
  207. package/dist/bin/shell/chunks/chunk-3BYTCO2H.js +12 -0
  208. package/dist/bin/shell/chunks/chunk-3MRB66F4.js +3 -0
  209. package/dist/bin/shell/chunks/chunk-3UKQXBQ3.js +6 -0
  210. package/dist/bin/shell/chunks/chunk-3WIMLJM7.js +8 -0
  211. package/dist/bin/shell/chunks/chunk-47WZ2U6M.js +9 -0
  212. package/dist/bin/shell/chunks/chunk-4KSZJAQK.js +6 -0
  213. package/dist/bin/shell/chunks/chunk-5XSZHUEI.js +15 -0
  214. package/dist/bin/shell/chunks/chunk-6FSBHK6H.js +22 -0
  215. package/dist/bin/shell/chunks/chunk-6WJQNLR2.js +7 -0
  216. package/dist/bin/shell/chunks/chunk-77MLOOQS.js +11 -0
  217. package/dist/bin/shell/chunks/chunk-7AYT3UKI.js +6 -0
  218. package/dist/bin/shell/chunks/chunk-7JZKVC3F.js +2 -0
  219. package/dist/bin/shell/chunks/chunk-7NC4CPHS.js +20 -0
  220. package/dist/bin/shell/chunks/chunk-7UU7KPEM.js +7 -0
  221. package/dist/bin/shell/chunks/chunk-7VCQWCSH.js +15 -0
  222. package/dist/bin/shell/chunks/chunk-AGKL4LDL.js +4 -0
  223. package/dist/bin/shell/chunks/chunk-AJF3OBTR.js +4 -0
  224. package/dist/bin/shell/chunks/chunk-ALVEEXFD.js +19 -0
  225. package/dist/bin/shell/chunks/chunk-B2DRBHGQ.js +3 -0
  226. package/dist/bin/shell/chunks/chunk-BE4PARL3.js +13 -0
  227. package/dist/bin/shell/chunks/chunk-BGX3RW7H.js +10 -0
  228. package/dist/bin/shell/chunks/chunk-BIJXTWZ4.js +3 -0
  229. package/dist/bin/shell/chunks/chunk-BPZJYOUA.js +33 -0
  230. package/dist/bin/shell/chunks/chunk-BZP56QBM.js +24 -0
  231. package/dist/bin/shell/chunks/chunk-C7ISPH7Y.js +18 -0
  232. package/dist/bin/shell/chunks/chunk-CAZ75E7E.js +3 -0
  233. package/dist/bin/shell/chunks/chunk-D6CPXGKK.js +75 -0
  234. package/dist/bin/shell/chunks/chunk-DJAX3ZRG.js +8 -0
  235. package/dist/bin/shell/chunks/chunk-DYIBFLS3.js +17 -0
  236. package/dist/bin/shell/chunks/chunk-EDTBGO7F.js +37 -0
  237. package/dist/bin/shell/chunks/chunk-F3GKANW3.js +12 -0
  238. package/dist/bin/shell/chunks/chunk-F3WNDKOC.js +3 -0
  239. package/dist/bin/shell/chunks/chunk-FKVQZWJQ.js +10 -0
  240. package/dist/bin/shell/chunks/chunk-FOUVACI7.js +16 -0
  241. package/dist/bin/shell/chunks/chunk-FVRXEJYQ.js +141 -0
  242. package/dist/bin/shell/chunks/chunk-G4AUMZUY.js +4 -0
  243. package/dist/bin/shell/chunks/chunk-H7JTIXAO.js +4 -0
  244. package/dist/bin/shell/chunks/chunk-HL4ZS7TX.js +6 -0
  245. package/dist/bin/shell/chunks/chunk-HN2DCT7T.js +13 -0
  246. package/dist/bin/shell/chunks/chunk-I4IRHQDW.js +3 -0
  247. package/dist/bin/shell/chunks/chunk-IEXQTXU5.js +34 -0
  248. package/dist/bin/shell/chunks/chunk-IZGLHVBB.js +8 -0
  249. package/dist/bin/shell/chunks/chunk-J7TUF2VI.js +9 -0
  250. package/dist/bin/shell/chunks/chunk-JNUX75OX.js +85 -0
  251. package/dist/bin/shell/chunks/chunk-JXLDT4KX.js +4 -0
  252. package/dist/bin/shell/chunks/chunk-JZW7NFK2.js +288 -0
  253. package/dist/bin/shell/chunks/chunk-KFMPGSUT.js +9 -0
  254. package/dist/bin/shell/chunks/chunk-KI54R2QB.js +3 -0
  255. package/dist/bin/shell/chunks/chunk-KRRM5UCC.js +3 -0
  256. package/dist/bin/shell/chunks/chunk-KUMHQGUR.js +3 -0
  257. package/dist/bin/shell/chunks/chunk-L24QXM5S.js +34 -0
  258. package/dist/bin/shell/chunks/chunk-LAHBP3FW.js +11 -0
  259. package/dist/bin/shell/chunks/chunk-LC6D27QJ.js +3 -0
  260. package/dist/bin/shell/chunks/chunk-LNNWMRCB.js +3 -0
  261. package/dist/bin/shell/chunks/chunk-LNVSXNT7.js +3 -0
  262. package/dist/bin/shell/chunks/chunk-LSQTB2QK.js +7 -0
  263. package/dist/bin/shell/chunks/chunk-M65CQLJE.js +101 -0
  264. package/dist/bin/shell/chunks/chunk-MLUOPG3W.js +3 -0
  265. package/dist/bin/shell/chunks/chunk-MNWK4UIM.js +22 -0
  266. package/dist/bin/shell/chunks/chunk-MROECM42.js +3 -0
  267. package/dist/bin/shell/chunks/chunk-MUFNRCMY.js +24 -0
  268. package/dist/bin/shell/chunks/chunk-N6YW4W3Z.js +29 -0
  269. package/dist/bin/shell/chunks/chunk-NE4R2FVV.js +5 -0
  270. package/dist/bin/shell/chunks/chunk-NXVG64T3.js +22 -0
  271. package/dist/bin/shell/chunks/chunk-NYIPFY36.js +3 -0
  272. package/dist/bin/shell/chunks/chunk-O2BCKSMK.js +3 -0
  273. package/dist/bin/shell/chunks/chunk-OLEQNRKX.js +8 -0
  274. package/dist/bin/shell/chunks/chunk-OPMLWMNH.js +17 -0
  275. package/dist/bin/shell/chunks/chunk-PAYQNSZN.js +18 -0
  276. package/dist/bin/shell/chunks/chunk-PBOVSFTJ.js +3 -0
  277. package/dist/bin/shell/chunks/chunk-PXP4YYZA.js +13 -0
  278. package/dist/bin/shell/chunks/chunk-PZQVSQX6.js +4 -0
  279. package/dist/bin/shell/chunks/chunk-Q2GOPGDA.js +6 -0
  280. package/dist/bin/shell/chunks/chunk-Q4UMTSRO.js +15 -0
  281. package/dist/bin/shell/chunks/chunk-QL33F2W6.js +8 -0
  282. package/dist/bin/shell/chunks/chunk-RVPTAYDS.js +4 -0
  283. package/dist/bin/shell/chunks/chunk-SMSELHIY.js +12 -0
  284. package/dist/bin/shell/chunks/chunk-UGJM7CKP.js +17 -0
  285. package/dist/bin/shell/chunks/chunk-UO5LOD7U.js +12 -0
  286. package/dist/bin/shell/chunks/chunk-UOMNSQEZ.js +10 -0
  287. package/dist/bin/shell/chunks/chunk-UR4CEP4Y.js +3 -0
  288. package/dist/bin/shell/chunks/chunk-V2RP73X4.js +15 -0
  289. package/dist/bin/shell/chunks/chunk-VBDLSL7Y.js +10 -0
  290. package/dist/bin/shell/chunks/chunk-VZK4FHWJ.js +3 -0
  291. package/dist/bin/shell/chunks/chunk-WDWNEHHE.js +9 -0
  292. package/dist/bin/shell/chunks/chunk-X4MX6EHF.js +6 -0
  293. package/dist/bin/shell/chunks/chunk-XBB73LFB.js +5 -0
  294. package/dist/bin/shell/chunks/chunk-XFFUAO3F.js +3 -0
  295. package/dist/bin/shell/chunks/chunk-XHCCSVP6.js +9 -0
  296. package/dist/bin/shell/chunks/chunk-XJ37N3S5.js +7 -0
  297. package/dist/bin/shell/chunks/chunk-XPTYN6UE.js +8 -0
  298. package/dist/bin/shell/chunks/chunk-XRUDFQG5.js +7 -0
  299. package/dist/bin/shell/chunks/chunk-Y4FPH5DQ.js +64 -0
  300. package/dist/bin/shell/chunks/chunk-YJ5OCPSK.js +7 -0
  301. package/dist/bin/shell/chunks/chunk-YOIFOOGX.js +9 -0
  302. package/dist/bin/shell/chunks/chunk-YOKQNNQO.js +6 -0
  303. package/dist/bin/shell/chunks/chunk-YUZRUF5F.js +10 -0
  304. package/dist/bin/shell/chunks/chunk-YY5PJR7O.js +7 -0
  305. package/dist/bin/shell/chunks/chunk-ZFUVUYWG.js +15 -0
  306. package/dist/bin/shell/chunks/clear-FGNEKYDU.js +3 -0
  307. package/dist/bin/shell/chunks/column-AQB3A3PJ.js +3 -0
  308. package/dist/bin/shell/chunks/comm-Q4VDF6ZO.js +3 -0
  309. package/dist/bin/shell/chunks/cp-HYXTMN3D.js +3 -0
  310. package/dist/bin/shell/chunks/curl-AXXGQRR2.js +27 -0
  311. package/dist/bin/shell/chunks/cut-ZI2HIAW7.js +3 -0
  312. package/dist/bin/shell/chunks/date-JEZYSA4F.js +3 -0
  313. package/dist/bin/shell/chunks/diff-YDJ42RKS.js +3 -0
  314. package/dist/bin/shell/chunks/dirname-VCINTLPD.js +3 -0
  315. package/dist/bin/shell/chunks/du-4LRQIGRG.js +3 -0
  316. package/dist/bin/shell/chunks/echo-KCOHTNDF.js +3 -0
  317. package/dist/bin/shell/chunks/env-NY32PQJM.js +3 -0
  318. package/dist/bin/shell/chunks/expand-YYSO35NS.js +3 -0
  319. package/dist/bin/shell/chunks/expansion-PPP6PD75.js +3 -0
  320. package/dist/bin/shell/chunks/expr-7PLWSWZI.js +3 -0
  321. package/dist/bin/shell/chunks/file-GRZLWDVH.js +3 -0
  322. package/dist/bin/shell/chunks/find-P4DOE7CE.js +3 -0
  323. package/dist/bin/shell/chunks/flag-coverage-RFKIBJ6L.js +3 -0
  324. package/dist/bin/shell/chunks/fold-5MF7QZWQ.js +3 -0
  325. package/dist/bin/shell/chunks/grep-VAYCFO4O.js +3 -0
  326. package/dist/bin/shell/chunks/gzip-UGBQQKIH.js +3 -0
  327. package/dist/bin/shell/chunks/head-QNC2ZYDO.js +3 -0
  328. package/dist/bin/shell/chunks/help-CGUEOGXQ.js +3 -0
  329. package/dist/bin/shell/chunks/history-AQQWW3QB.js +3 -0
  330. package/dist/bin/shell/chunks/hostname-USNWOQCK.js +3 -0
  331. package/dist/bin/shell/chunks/html-to-markdown-QEFY7XQR.js +3 -0
  332. package/dist/bin/shell/chunks/join-EJ73DYTK.js +3 -0
  333. package/dist/bin/shell/chunks/jq-GGTKKMEN.js +3 -0
  334. package/dist/bin/shell/chunks/js-exec-BC6NI55L.js +98 -0
  335. package/dist/bin/shell/chunks/ln-LP4HMCSM.js +3 -0
  336. package/dist/bin/shell/chunks/ls-KBNHNZWQ.js +3 -0
  337. package/dist/bin/shell/chunks/md5sum-MCVDIB35.js +3 -0
  338. package/dist/bin/shell/chunks/mkdir-P4DKRCDX.js +3 -0
  339. package/dist/bin/shell/chunks/mv-QQK4FQX6.js +3 -0
  340. package/dist/bin/shell/chunks/nl-KUPLVCTS.js +3 -0
  341. package/dist/bin/shell/chunks/od-YQ5ZUI2H.js +3 -0
  342. package/dist/bin/shell/chunks/paste-A5KKPWXX.js +3 -0
  343. package/dist/bin/shell/chunks/printf-Z5C2UOI5.js +3 -0
  344. package/dist/bin/shell/chunks/pwd-FCNDA467.js +3 -0
  345. package/dist/bin/shell/chunks/python3-BQWDPUBM.js +13 -0
  346. package/dist/bin/shell/chunks/readlink-25V57VOL.js +3 -0
  347. package/dist/bin/shell/chunks/rev-PYHOZ4D4.js +3 -0
  348. package/dist/bin/shell/chunks/rg-BGFMSIVK.js +3 -0
  349. package/dist/bin/shell/chunks/rm-ECNUFR66.js +3 -0
  350. package/dist/bin/shell/chunks/rmdir-DLOHIA7Q.js +3 -0
  351. package/dist/bin/shell/chunks/sed-FWA634SN.js +3 -0
  352. package/dist/bin/shell/chunks/seq-UXDJE6FB.js +3 -0
  353. package/dist/bin/shell/chunks/sha1sum-4KF52U3Y.js +3 -0
  354. package/dist/bin/shell/chunks/sha256sum-6YEPULPX.js +3 -0
  355. package/dist/bin/shell/chunks/sleep-QHAPNY3Q.js +3 -0
  356. package/dist/bin/shell/chunks/sort-4C6WOKNK.js +3 -0
  357. package/dist/bin/shell/chunks/split-TV7NL7LA.js +3 -0
  358. package/dist/bin/shell/chunks/sqlite3-W777NCI4.js +3 -0
  359. package/dist/bin/shell/chunks/stat-BD6KT3BP.js +3 -0
  360. package/dist/bin/shell/chunks/strings-MDD72LR6.js +3 -0
  361. package/dist/bin/shell/chunks/tac-C2N4NQ6S.js +3 -0
  362. package/dist/bin/shell/chunks/tail-BCB5W6JC.js +3 -0
  363. package/dist/bin/shell/chunks/tar-DOO744MK.js +3 -0
  364. package/dist/bin/shell/chunks/tee-UQHPO4OW.js +3 -0
  365. package/dist/bin/shell/chunks/time-ZPY52VT2.js +3 -0
  366. package/dist/bin/shell/chunks/timeout-5AX3ZS3X.js +3 -0
  367. package/dist/bin/shell/chunks/touch-DFGSVIX7.js +3 -0
  368. package/dist/bin/shell/chunks/tr-G7K6M6HP.js +3 -0
  369. package/dist/bin/shell/chunks/tree-6D7SMPUR.js +3 -0
  370. package/dist/bin/shell/chunks/true-SKL4L7JP.js +3 -0
  371. package/dist/bin/shell/chunks/unexpand-QIR4EDPG.js +3 -0
  372. package/dist/bin/shell/chunks/uniq-I7PVFJR4.js +3 -0
  373. package/dist/bin/shell/chunks/wc-6NGWULAP.js +3 -0
  374. package/dist/bin/shell/chunks/which-LCXKCLFC.js +3 -0
  375. package/dist/bin/shell/chunks/whoami-TZDZDU7T.js +3 -0
  376. package/dist/bin/shell/chunks/xan-KX4VPXUN.js +3 -0
  377. package/dist/bin/shell/chunks/xan-view-JXOZLJ7S.js +3 -0
  378. package/dist/bin/shell/chunks/xargs-UWHPYLY7.js +3 -0
  379. package/dist/bin/shell/chunks/yq-GCDCJBKB.js +3 -0
  380. package/dist/bin/shell/shell.js +275 -274
  381. package/dist/browser.d.ts +1 -0
  382. package/dist/bundle/browser.js +676 -674
  383. package/dist/bundle/chunks/alias-RTYYYW3D.js +2 -0
  384. package/dist/bundle/chunks/awk2-LA3USKJP.js +2 -0
  385. package/dist/bundle/chunks/base64-C2AIWVNC.js +2 -0
  386. package/dist/bundle/chunks/basename-UB3CIYNI.js +2 -0
  387. package/dist/bundle/chunks/bash-YZ33HQZQ.js +2 -0
  388. package/dist/bundle/chunks/cat-TSFMZVYS.js +2 -0
  389. package/dist/bundle/chunks/chmod-TFEPA42X.js +2 -0
  390. package/dist/bundle/chunks/chunk-27JIFWUR.js +3 -0
  391. package/dist/bundle/chunks/chunk-2JIPICV3.js +13 -0
  392. package/dist/bundle/chunks/chunk-2SMD2AUA.js +3 -0
  393. package/dist/bundle/chunks/chunk-2VDTE5BV.js +14 -0
  394. package/dist/bundle/chunks/chunk-2VJJEDV2.js +8 -0
  395. package/dist/bundle/chunks/chunk-46RN27KI.js +100 -0
  396. package/dist/bundle/chunks/chunk-4I3HOE5Z.js +21 -0
  397. package/dist/bundle/chunks/chunk-4JLVZKHC.js +8 -0
  398. package/dist/bundle/chunks/chunk-4MZPEZTU.js +3 -0
  399. package/dist/bundle/chunks/chunk-4N6J7B5P.js +6 -0
  400. package/dist/bundle/chunks/chunk-4RUAZWKT.js +33 -0
  401. package/dist/bundle/chunks/chunk-4WKZNNJK.js +2 -0
  402. package/dist/bundle/chunks/chunk-5H5SCKJM.js +11 -0
  403. package/dist/bundle/chunks/chunk-6LASZU3O.js +5 -0
  404. package/dist/bundle/chunks/chunk-6SHYIICL.js +4 -0
  405. package/dist/bundle/chunks/chunk-6VAT5Z2D.js +5 -0
  406. package/dist/bundle/chunks/chunk-7AISL3XV.js +12 -0
  407. package/dist/bundle/chunks/chunk-7EUWTCWK.js +2 -0
  408. package/dist/bundle/chunks/chunk-7JHM3L42.js +6 -0
  409. package/dist/bundle/chunks/chunk-A4R2GWRF.js +9 -0
  410. package/dist/bundle/chunks/chunk-ACSZB4FE.js +11 -0
  411. package/dist/bundle/chunks/chunk-AQ6FYS2X.js +2 -0
  412. package/dist/bundle/chunks/chunk-BVKWRAS6.js +12 -0
  413. package/dist/bundle/chunks/chunk-BZUGFHVS.js +2 -0
  414. package/dist/bundle/chunks/chunk-CBJVD2XA.js +7 -0
  415. package/dist/bundle/chunks/chunk-CHFEPBH4.js +18 -0
  416. package/dist/bundle/chunks/chunk-CN5XGDNN.js +6 -0
  417. package/dist/bundle/chunks/chunk-DLL7UR66.js +2 -0
  418. package/dist/bundle/chunks/chunk-EBAPSGAO.js +9 -0
  419. package/dist/bundle/chunks/chunk-FAXLQUCQ.js +10 -0
  420. package/dist/bundle/chunks/chunk-FHC24QSK.js +7 -0
  421. package/dist/bundle/chunks/chunk-FJK43EBQ.js +14 -0
  422. package/dist/bundle/chunks/chunk-FOCWZZDE.js +2 -0
  423. package/dist/bundle/chunks/chunk-FW54FHZR.js +2 -0
  424. package/dist/bundle/chunks/chunk-FX4RBUYU.js +5 -0
  425. package/dist/bundle/chunks/chunk-FX7KQCEA.js +33 -0
  426. package/dist/bundle/chunks/chunk-FZRQOL3C.js +7 -0
  427. package/dist/bundle/chunks/chunk-G5EVRAOO.js +74 -0
  428. package/dist/bundle/chunks/chunk-GGC5NEPZ.js +8 -0
  429. package/dist/bundle/chunks/chunk-GIUR5SNU.js +15 -0
  430. package/dist/bundle/chunks/chunk-GJC3WVOW.js +2 -0
  431. package/dist/bundle/chunks/chunk-GSPYNYZA.js +6 -0
  432. package/dist/bundle/chunks/chunk-GTQIUQM6.js +5 -0
  433. package/dist/bundle/chunks/chunk-HBVMHTO5.js +2 -0
  434. package/dist/bundle/chunks/chunk-HDRAUQK2.js +2 -0
  435. package/dist/bundle/chunks/chunk-HJBTD7PY.js +21 -0
  436. package/dist/bundle/chunks/chunk-ICIEVHY5.js +36 -0
  437. package/dist/bundle/chunks/chunk-KATRCGLX.js +2 -0
  438. package/dist/bundle/chunks/chunk-KD3KENL6.js +11 -0
  439. package/dist/bundle/chunks/chunk-KWGBQNTV.js +32 -0
  440. package/dist/bundle/chunks/chunk-L2UW7DWF.js +2 -0
  441. package/dist/bundle/chunks/chunk-L64BMZUV.js +2 -0
  442. package/dist/bundle/chunks/chunk-LEKBROJD.js +6 -0
  443. package/dist/bundle/chunks/chunk-LNBPBRV4.js +21 -0
  444. package/dist/bundle/chunks/chunk-LPJEKUCB.js +8 -0
  445. package/dist/bundle/chunks/chunk-LSLPJOYM.js +3 -0
  446. package/dist/bundle/chunks/chunk-MFDPAVC6.js +14 -0
  447. package/dist/bundle/chunks/chunk-MLIO3BK2.js +7 -0
  448. package/dist/bundle/chunks/chunk-MQKGGNPS.js +16 -0
  449. package/dist/bundle/chunks/chunk-MZFCCXPZ.js +63 -0
  450. package/dist/bundle/chunks/chunk-N6DXJ2JN.js +287 -0
  451. package/dist/bundle/chunks/chunk-NRSASXYY.js +2 -0
  452. package/dist/bundle/chunks/chunk-OC35HPHG.js +2 -0
  453. package/dist/bundle/chunks/chunk-OGJ5CFPR.js +9 -0
  454. package/dist/bundle/chunks/chunk-OVGANXCG.js +8 -0
  455. package/dist/bundle/chunks/chunk-Q7H5W7YE.js +140 -0
  456. package/dist/bundle/chunks/chunk-QAYAQNCG.js +23 -0
  457. package/dist/bundle/chunks/chunk-QIQMJJZ4.js +4 -0
  458. package/dist/bundle/chunks/chunk-R4IFXNY5.js +28 -0
  459. package/dist/bundle/chunks/chunk-R74UQCKX.js +5 -0
  460. package/dist/bundle/chunks/chunk-S3LEJEPP.js +2 -0
  461. package/dist/bundle/chunks/chunk-S443BAN4.js +7 -0
  462. package/dist/bundle/chunks/chunk-SAI2SPQQ.js +8 -0
  463. package/dist/bundle/chunks/chunk-SBBYKIYU.js +3 -0
  464. package/dist/bundle/chunks/chunk-SETW5JBN.js +9 -0
  465. package/dist/bundle/chunks/chunk-SHKOQWO4.js +3 -0
  466. package/dist/bundle/chunks/chunk-SJYEXC2Z.js +14 -0
  467. package/dist/bundle/chunks/chunk-SO6R3ZKN.js +16 -0
  468. package/dist/bundle/chunks/chunk-STHBFACM.js +1 -0
  469. package/dist/bundle/chunks/chunk-SX2HC7SO.js +2 -0
  470. package/dist/bundle/chunks/chunk-T4TFLF3R.js +16 -0
  471. package/dist/bundle/chunks/chunk-TDD4NFYE.js +2 -0
  472. package/dist/bundle/chunks/chunk-TN7HHBQW.js +5 -0
  473. package/dist/bundle/chunks/chunk-U73A73IE.js +17 -0
  474. package/dist/bundle/chunks/chunk-UIJUTQPH.js +3 -0
  475. package/dist/bundle/chunks/chunk-UP6MSJGD.js +17 -0
  476. package/dist/bundle/chunks/chunk-VLCHOJWK.js +6 -0
  477. package/dist/bundle/chunks/chunk-VPADYNBD.js +10 -0
  478. package/dist/bundle/chunks/chunk-W5DWRFSU.js +2 -0
  479. package/dist/bundle/chunks/chunk-WM5IJFMP.js +8 -0
  480. package/dist/bundle/chunks/chunk-WNH3HOQA.js +2 -0
  481. package/dist/bundle/chunks/chunk-WPGQVBSY.js +6 -0
  482. package/dist/bundle/chunks/chunk-WVRWIZF5.js +23 -0
  483. package/dist/bundle/chunks/chunk-XCQWV4AU.js +12 -0
  484. package/dist/bundle/chunks/chunk-XDGLKIHR.js +9 -0
  485. package/dist/bundle/chunks/chunk-XHLMAZX2.js +5 -0
  486. package/dist/bundle/chunks/chunk-XRFHFXFP.js +2 -0
  487. package/dist/bundle/chunks/chunk-XUIHBHL5.js +5 -0
  488. package/dist/bundle/chunks/chunk-XYXUMFSU.js +14 -0
  489. package/dist/bundle/chunks/chunk-Y4LIDHSD.js +7 -0
  490. package/dist/bundle/chunks/chunk-YCLFEX4T.js +3 -0
  491. package/dist/bundle/chunks/chunk-YS4NUBYX.js +9 -0
  492. package/dist/bundle/chunks/chunk-ZDIT6ST5.js +7 -0
  493. package/dist/bundle/chunks/chunk-ZDPFA4L3.js +6 -0
  494. package/dist/bundle/chunks/chunk-ZZKH2ELC.js +11 -0
  495. package/dist/bundle/chunks/clear-HKGFEOF6.js +2 -0
  496. package/dist/bundle/chunks/column-XT6UFXNQ.js +2 -0
  497. package/dist/bundle/chunks/comm-VV2LDX2J.js +2 -0
  498. package/dist/bundle/chunks/cp-BISAAS7A.js +2 -0
  499. package/dist/bundle/chunks/curl-LV5Y3AMS.js +26 -0
  500. package/dist/bundle/chunks/cut-OKARJCCV.js +2 -0
  501. package/dist/bundle/chunks/date-UUUPW43J.js +2 -0
  502. package/dist/bundle/chunks/diff-MWJFIG7X.js +2 -0
  503. package/dist/bundle/chunks/dirname-MPHRFUTI.js +2 -0
  504. package/dist/bundle/chunks/du-572XNP42.js +2 -0
  505. package/dist/bundle/chunks/echo-NDWZZHPO.js +2 -0
  506. package/dist/bundle/chunks/env-36M5BO7M.js +2 -0
  507. package/dist/bundle/chunks/expand-JSPG6VOP.js +2 -0
  508. package/dist/bundle/chunks/expansion-R25BK4W3.js +2 -0
  509. package/dist/bundle/chunks/expr-5JAACS4X.js +2 -0
  510. package/dist/bundle/chunks/file-IPZJC3FQ.js +2 -0
  511. package/dist/bundle/chunks/find-INTH3OLC.js +2 -0
  512. package/dist/bundle/chunks/flag-coverage-XWSYNE72.js +2 -0
  513. package/dist/bundle/chunks/fold-4TQNYMSW.js +2 -0
  514. package/dist/bundle/chunks/grep-V3LQVMRQ.js +2 -0
  515. package/dist/bundle/chunks/gzip-O5ASJAFY.js +2 -0
  516. package/dist/bundle/chunks/head-442HYESI.js +2 -0
  517. package/dist/bundle/chunks/help-HZ6M2CKN.js +2 -0
  518. package/dist/bundle/chunks/history-WYYKSLSZ.js +2 -0
  519. package/dist/bundle/chunks/hostname-C4HQXXUP.js +2 -0
  520. package/dist/bundle/chunks/html-to-markdown-JW4MSQZO.js +2 -0
  521. package/dist/bundle/chunks/join-TBRGI3LQ.js +2 -0
  522. package/dist/bundle/chunks/jq-4XLYLOS5.js +2 -0
  523. package/dist/bundle/chunks/js-exec-N5KEZBH7.js +97 -0
  524. package/dist/bundle/chunks/js-exec-worker.js +27 -185
  525. package/dist/bundle/chunks/ln-4LGSXXGD.js +2 -0
  526. package/dist/bundle/chunks/ls-ZJGQER7M.js +2 -0
  527. package/dist/bundle/chunks/md5sum-SPU24VSG.js +2 -0
  528. package/dist/bundle/chunks/mkdir-MEPGZOB6.js +2 -0
  529. package/dist/bundle/chunks/mv-W5BIQ646.js +2 -0
  530. package/dist/bundle/chunks/nl-WSDW7I4O.js +2 -0
  531. package/dist/bundle/chunks/od-WOKFDJTP.js +2 -0
  532. package/dist/bundle/chunks/paste-7JC6S4DX.js +2 -0
  533. package/dist/bundle/chunks/printf-TWGXF445.js +2 -0
  534. package/dist/bundle/chunks/pwd-WE6EN5AV.js +2 -0
  535. package/dist/bundle/chunks/python3-POMOR4OA.js +12 -0
  536. package/dist/bundle/chunks/readlink-OPJF4DL5.js +2 -0
  537. package/dist/bundle/chunks/rev-5EHFX4EJ.js +2 -0
  538. package/dist/bundle/chunks/rg-S4FXYXWB.js +2 -0
  539. package/dist/bundle/chunks/rm-SSGETQVQ.js +2 -0
  540. package/dist/bundle/chunks/rmdir-OC4ZLPYA.js +2 -0
  541. package/dist/bundle/chunks/sed-S5UIK574.js +2 -0
  542. package/dist/bundle/chunks/seq-M5EC7Q57.js +2 -0
  543. package/dist/bundle/chunks/sha1sum-2PTOAFR6.js +2 -0
  544. package/dist/bundle/chunks/sha256sum-NS7D3IXX.js +2 -0
  545. package/dist/bundle/chunks/sleep-X22JJINO.js +2 -0
  546. package/dist/bundle/chunks/sort-SW2YEO5B.js +2 -0
  547. package/dist/bundle/chunks/split-4KKZZXXE.js +2 -0
  548. package/dist/bundle/chunks/sqlite3-CGOEFJAO.js +2 -0
  549. package/dist/bundle/chunks/sqlite3-worker.js +1728 -0
  550. package/dist/bundle/chunks/stat-CD34IZ4P.js +2 -0
  551. package/dist/bundle/chunks/strings-6WDHLGMX.js +2 -0
  552. package/dist/bundle/chunks/tac-2STMMJYW.js +2 -0
  553. package/dist/bundle/chunks/tail-R4PCA2C4.js +2 -0
  554. package/dist/bundle/chunks/tar-STHHZTZ6.js +2 -0
  555. package/dist/bundle/chunks/tee-YUZ2FKCJ.js +2 -0
  556. package/dist/bundle/chunks/time-D4LNBSWX.js +2 -0
  557. package/dist/bundle/chunks/timeout-YDCRSLPQ.js +2 -0
  558. package/dist/bundle/chunks/touch-UA33VN3N.js +2 -0
  559. package/dist/bundle/chunks/tr-36LHWFRQ.js +2 -0
  560. package/dist/bundle/chunks/tree-YLD52CNT.js +2 -0
  561. package/dist/bundle/chunks/true-FHQXJXBE.js +2 -0
  562. package/dist/bundle/chunks/unexpand-CADSA4VO.js +2 -0
  563. package/dist/bundle/chunks/uniq-XSIZR6PB.js +2 -0
  564. package/dist/bundle/chunks/wc-LF7NU4LA.js +2 -0
  565. package/dist/bundle/chunks/which-XEM24D5D.js +2 -0
  566. package/dist/bundle/chunks/whoami-XMTX52VE.js +2 -0
  567. package/dist/bundle/chunks/worker.js +28 -9
  568. package/dist/bundle/chunks/xan-Y6WF3IRG.js +2 -0
  569. package/dist/bundle/chunks/xan-view-HDVKHFC2.js +2 -0
  570. package/dist/bundle/chunks/xargs-MGZPH7AX.js +2 -0
  571. package/dist/bundle/chunks/yq-4QJW3EQG.js +2 -0
  572. package/dist/bundle/index.cjs +984 -985
  573. package/dist/bundle/index.js +272 -271
  574. package/dist/commands/js-exec/js-exec-worker.d.ts +32 -0
  575. package/dist/commands/js-exec/js-exec.d.ts +1 -19
  576. package/dist/commands/search-engine/matcher.d.ts +6 -0
  577. package/dist/commands/search-engine/regex.d.ts +13 -0
  578. package/dist/commands/sqlite3/sqlite3.d.ts +1 -0
  579. package/dist/commands/sqlite3/worker.js +1728 -0
  580. package/dist/commands/tar/bzip2-compress.d.ts +17 -0
  581. package/dist/commands/worker-bridge/sync-backend.d.ts +2 -1
  582. package/dist/encoding.d.ts +115 -0
  583. package/dist/fs/in-memory-fs/in-memory-fs.d.ts +2 -0
  584. package/dist/fs/interface.d.ts +23 -1
  585. package/dist/fs/mountable-fs/mountable-fs.d.ts +2 -0
  586. package/dist/fs/overlay-fs/overlay-fs.d.ts +2 -0
  587. package/dist/fs/read-write-fs/read-write-fs.d.ts +2 -0
  588. package/dist/index.d.cts +2 -0
  589. package/dist/index.d.ts +2 -0
  590. package/dist/interpreter/interpreter.d.ts +2 -7
  591. package/dist/interpreter/types.d.ts +3 -8
  592. package/dist/network/dns-pin.d.ts +43 -0
  593. package/dist/network/types.d.ts +2 -1
  594. package/dist/types.d.ts +48 -21
  595. package/dist/utils/file-reader.d.ts +12 -5
  596. package/package.json +36 -40
  597. package/vendor/cpython-emscripten/python.wasm +0 -0
  598. package/dist/bin/chunks/alias-3GODYSFD.js +0 -2
  599. package/dist/bin/chunks/awk2-VTJMI54B.js +0 -2
  600. package/dist/bin/chunks/base64-43M2R3GA.js +0 -2
  601. package/dist/bin/chunks/basename-KBUKWB2E.js +0 -2
  602. package/dist/bin/chunks/bash-6ZHZ6BX7.js +0 -2
  603. package/dist/bin/chunks/cat-XZIJZXKP.js +0 -2
  604. package/dist/bin/chunks/chmod-N5CQATDW.js +0 -2
  605. package/dist/bin/chunks/chunk-26NO42TF.js +0 -14
  606. package/dist/bin/chunks/chunk-3MBAUIBB.js +0 -7
  607. package/dist/bin/chunks/chunk-3Y32LPNT.js +0 -2
  608. package/dist/bin/chunks/chunk-4OALHZXB.js +0 -2
  609. package/dist/bin/chunks/chunk-4PRVMER6.js +0 -2
  610. package/dist/bin/chunks/chunk-4VDEBYW7.js +0 -2
  611. package/dist/bin/chunks/chunk-54G6AE72.js +0 -32
  612. package/dist/bin/chunks/chunk-5G2VOPPJ.js +0 -7
  613. package/dist/bin/chunks/chunk-5WFYIUU2.js +0 -3
  614. package/dist/bin/chunks/chunk-6KZRLMG3.js +0 -8
  615. package/dist/bin/chunks/chunk-7ADG3DNO.js +0 -8
  616. package/dist/bin/chunks/chunk-7BORMNPQ.js +0 -2
  617. package/dist/bin/chunks/chunk-7G3MC56B.js +0 -7
  618. package/dist/bin/chunks/chunk-A3HQTYHR.js +0 -74
  619. package/dist/bin/chunks/chunk-AAW7UMPO.js +0 -9
  620. package/dist/bin/chunks/chunk-AXWFPG37.js +0 -10
  621. package/dist/bin/chunks/chunk-AZ3RUDR2.js +0 -9
  622. package/dist/bin/chunks/chunk-B3RU2PUI.js +0 -140
  623. package/dist/bin/chunks/chunk-BYDV4VEF.js +0 -3
  624. package/dist/bin/chunks/chunk-CGE2EHYP.js +0 -5
  625. package/dist/bin/chunks/chunk-CM4532DS.js +0 -36
  626. package/dist/bin/chunks/chunk-CQG2HEAL.js +0 -5
  627. package/dist/bin/chunks/chunk-D5WP4CKS.js +0 -3
  628. package/dist/bin/chunks/chunk-DOXYBGNA.js +0 -12
  629. package/dist/bin/chunks/chunk-EJQKHROT.js +0 -14
  630. package/dist/bin/chunks/chunk-EPPBDXOG.js +0 -8
  631. package/dist/bin/chunks/chunk-EUXCM6C4.js +0 -12
  632. package/dist/bin/chunks/chunk-F3LGZXLQ.js +0 -9
  633. package/dist/bin/chunks/chunk-FA2CHD73.js +0 -16
  634. package/dist/bin/chunks/chunk-FLPVVSN5.js +0 -5
  635. package/dist/bin/chunks/chunk-FSZWFMB4.js +0 -16
  636. package/dist/bin/chunks/chunk-G43H2WGH.js +0 -17
  637. package/dist/bin/chunks/chunk-GO6FXSC4.js +0 -6
  638. package/dist/bin/chunks/chunk-GOJZHH3L.js +0 -6
  639. package/dist/bin/chunks/chunk-GTNBSMZR.js +0 -23
  640. package/dist/bin/chunks/chunk-GZHFXDDO.js +0 -10
  641. package/dist/bin/chunks/chunk-HJEHIH4P.js +0 -33
  642. package/dist/bin/chunks/chunk-IDGH4PGU.js +0 -3
  643. package/dist/bin/chunks/chunk-ITA43A73.js +0 -7
  644. package/dist/bin/chunks/chunk-JBABAK44.js +0 -4
  645. package/dist/bin/chunks/chunk-JLX6YWGA.js +0 -3
  646. package/dist/bin/chunks/chunk-JQBC3FXE.js +0 -8
  647. package/dist/bin/chunks/chunk-JTF74J6E.js +0 -2
  648. package/dist/bin/chunks/chunk-KGOUQS5A.js +0 -2
  649. package/dist/bin/chunks/chunk-L2JBII6Z.js +0 -287
  650. package/dist/bin/chunks/chunk-LGJM5YFT.js +0 -17
  651. package/dist/bin/chunks/chunk-LIYVQA3X.js +0 -2
  652. package/dist/bin/chunks/chunk-LJKIWB5F.js +0 -4
  653. package/dist/bin/chunks/chunk-LMK6G2HH.js +0 -8
  654. package/dist/bin/chunks/chunk-LOJMXC4F.js +0 -5
  655. package/dist/bin/chunks/chunk-MAVV76T4.js +0 -2
  656. package/dist/bin/chunks/chunk-MNMRGJJM.js +0 -11
  657. package/dist/bin/chunks/chunk-MO4RPBN2.js +0 -2
  658. package/dist/bin/chunks/chunk-MRP4ZCD7.js +0 -6
  659. package/dist/bin/chunks/chunk-MXVNCVD6.js +0 -30
  660. package/dist/bin/chunks/chunk-MY5PY2PL.js +0 -2
  661. package/dist/bin/chunks/chunk-N43DJTSI.js +0 -2
  662. package/dist/bin/chunks/chunk-N5OTVT4F.js +0 -23
  663. package/dist/bin/chunks/chunk-NAX7MTAR.js +0 -21
  664. package/dist/bin/chunks/chunk-ND23BJUM.js +0 -15
  665. package/dist/bin/chunks/chunk-NLBRLRWD.js +0 -5
  666. package/dist/bin/chunks/chunk-NSUMEERA.js +0 -12
  667. package/dist/bin/chunks/chunk-OBH7XN5N.js +0 -1
  668. package/dist/bin/chunks/chunk-OBI37ZY4.js +0 -9
  669. package/dist/bin/chunks/chunk-OOJCYVYF.js +0 -2
  670. package/dist/bin/chunks/chunk-ORUYSLP4.js +0 -16
  671. package/dist/bin/chunks/chunk-P6GNZPVW.js +0 -19
  672. package/dist/bin/chunks/chunk-PPBQJBC2.js +0 -5
  673. package/dist/bin/chunks/chunk-PQNTKMH3.js +0 -6
  674. package/dist/bin/chunks/chunk-PS4LOXE5.js +0 -8
  675. package/dist/bin/chunks/chunk-QSDVMMYI.js +0 -21
  676. package/dist/bin/chunks/chunk-RJSAGJQJ.js +0 -11
  677. package/dist/bin/chunks/chunk-RLNOQILG.js +0 -2
  678. package/dist/bin/chunks/chunk-RMQC3GS7.js +0 -100
  679. package/dist/bin/chunks/chunk-ROJPSS6N.js +0 -3
  680. package/dist/bin/chunks/chunk-RT7TRQVZ.js +0 -3
  681. package/dist/bin/chunks/chunk-S7OHMN3F.js +0 -6
  682. package/dist/bin/chunks/chunk-SDLWFYVT.js +0 -21
  683. package/dist/bin/chunks/chunk-SE4C7FJY.js +0 -33
  684. package/dist/bin/chunks/chunk-SGA7Y45Z.js +0 -17
  685. package/dist/bin/chunks/chunk-SXB55JOI.js +0 -2
  686. package/dist/bin/chunks/chunk-SXRVLCZ4.js +0 -2
  687. package/dist/bin/chunks/chunk-TEFXEYX3.js +0 -3
  688. package/dist/bin/chunks/chunk-THALLNXT.js +0 -7
  689. package/dist/bin/chunks/chunk-THNL3XFF.js +0 -11
  690. package/dist/bin/chunks/chunk-V7ZOPVQS.js +0 -2
  691. package/dist/bin/chunks/chunk-VHUYNUT7.js +0 -13
  692. package/dist/bin/chunks/chunk-VNER2XXL.js +0 -7
  693. package/dist/bin/chunks/chunk-WS6P4H4S.js +0 -63
  694. package/dist/bin/chunks/chunk-WWZVR5NN.js +0 -6
  695. package/dist/bin/chunks/chunk-WXMBDX4P.js +0 -14
  696. package/dist/bin/chunks/chunk-XKPFI566.js +0 -84
  697. package/dist/bin/chunks/chunk-XY5HGZW5.js +0 -8
  698. package/dist/bin/chunks/chunk-YEKSVVRC.js +0 -11
  699. package/dist/bin/chunks/chunk-YFPDB4PH.js +0 -9
  700. package/dist/bin/chunks/chunk-YLE2OYY6.js +0 -2
  701. package/dist/bin/chunks/chunk-YMMJLYIX.js +0 -2
  702. package/dist/bin/chunks/chunk-YTIURC67.js +0 -2
  703. package/dist/bin/chunks/chunk-YU6OGPZR.js +0 -5
  704. package/dist/bin/chunks/chunk-YWZOGBFE.js +0 -9
  705. package/dist/bin/chunks/chunk-ZA4HUKJ3.js +0 -13
  706. package/dist/bin/chunks/chunk-ZKC5HQYO.js +0 -14
  707. package/dist/bin/chunks/chunk-ZO5PSLKR.js +0 -6
  708. package/dist/bin/chunks/chunk-ZSVBYEY4.js +0 -6
  709. package/dist/bin/chunks/clear-KRGKPFOI.js +0 -2
  710. package/dist/bin/chunks/column-XGV32UPN.js +0 -2
  711. package/dist/bin/chunks/comm-R3F3Z5DX.js +0 -2
  712. package/dist/bin/chunks/cp-XH2ZB7WT.js +0 -2
  713. package/dist/bin/chunks/curl-SRTMGOVV.js +0 -26
  714. package/dist/bin/chunks/cut-5EY2XPXX.js +0 -2
  715. package/dist/bin/chunks/date-WUPBL2TL.js +0 -2
  716. package/dist/bin/chunks/diff-LE7GMFZD.js +0 -2
  717. package/dist/bin/chunks/dirname-5FAOMLBL.js +0 -2
  718. package/dist/bin/chunks/du-LDAPXSGF.js +0 -2
  719. package/dist/bin/chunks/echo-2MUAOGUE.js +0 -2
  720. package/dist/bin/chunks/env-NTPN5QYM.js +0 -2
  721. package/dist/bin/chunks/expand-26XPP5KB.js +0 -2
  722. package/dist/bin/chunks/expansion-2RO5M3QC.js +0 -2
  723. package/dist/bin/chunks/expr-4CJYC4LY.js +0 -2
  724. package/dist/bin/chunks/file-D5YKS5NV.js +0 -2
  725. package/dist/bin/chunks/find-GAYRV4IF.js +0 -2
  726. package/dist/bin/chunks/flag-coverage-LBMWMYOO.js +0 -2
  727. package/dist/bin/chunks/fold-XSVNTAWH.js +0 -2
  728. package/dist/bin/chunks/grep-OZJTRD4D.js +0 -2
  729. package/dist/bin/chunks/gzip-LHOO65AN.js +0 -2
  730. package/dist/bin/chunks/head-YMNRW3F3.js +0 -2
  731. package/dist/bin/chunks/help-DVG4AAGE.js +0 -2
  732. package/dist/bin/chunks/history-UUKG55YW.js +0 -2
  733. package/dist/bin/chunks/hostname-WY6RKE32.js +0 -2
  734. package/dist/bin/chunks/html-to-markdown-WVZA3MCP.js +0 -2
  735. package/dist/bin/chunks/join-Y4Q5WVVE.js +0 -2
  736. package/dist/bin/chunks/jq-FIV5Q5T4.js +0 -2
  737. package/dist/bin/chunks/js-exec-RGKNWHHL.js +0 -100
  738. package/dist/bin/chunks/ln-EGC4HRXZ.js +0 -2
  739. package/dist/bin/chunks/ls-G2PXHSNX.js +0 -2
  740. package/dist/bin/chunks/md5sum-NCLXV2S3.js +0 -2
  741. package/dist/bin/chunks/mkdir-Z47OISSR.js +0 -2
  742. package/dist/bin/chunks/mv-OY7X62QC.js +0 -2
  743. package/dist/bin/chunks/nl-XH3L75DR.js +0 -2
  744. package/dist/bin/chunks/od-52FBC34W.js +0 -2
  745. package/dist/bin/chunks/paste-3UVLMQ2K.js +0 -2
  746. package/dist/bin/chunks/printf-P3QVL4IO.js +0 -2
  747. package/dist/bin/chunks/pwd-6VBAPL3Y.js +0 -2
  748. package/dist/bin/chunks/python3-QOJU2POC.js +0 -12
  749. package/dist/bin/chunks/readlink-BD5VFOC5.js +0 -2
  750. package/dist/bin/chunks/rev-UHEPS2UL.js +0 -2
  751. package/dist/bin/chunks/rg-C6KMBFNG.js +0 -2
  752. package/dist/bin/chunks/rm-L3NZOLLG.js +0 -2
  753. package/dist/bin/chunks/rmdir-5KLM4EA6.js +0 -2
  754. package/dist/bin/chunks/sed-HALRQZKY.js +0 -2
  755. package/dist/bin/chunks/seq-V7KBLSQ7.js +0 -2
  756. package/dist/bin/chunks/sha1sum-BHNJ5ALF.js +0 -2
  757. package/dist/bin/chunks/sha256sum-HJJ3NJ5L.js +0 -2
  758. package/dist/bin/chunks/sleep-ND6FZRZ4.js +0 -2
  759. package/dist/bin/chunks/sort-7GENYU2I.js +0 -2
  760. package/dist/bin/chunks/split-YWV64TJH.js +0 -2
  761. package/dist/bin/chunks/sqlite3-CVNFMP3Z.js +0 -2
  762. package/dist/bin/chunks/stat-XS2LXYS2.js +0 -2
  763. package/dist/bin/chunks/strings-XXKZCWY5.js +0 -2
  764. package/dist/bin/chunks/tac-T42SKDDI.js +0 -2
  765. package/dist/bin/chunks/tail-V537TDFR.js +0 -2
  766. package/dist/bin/chunks/tar-TOWX2TDU.js +0 -2
  767. package/dist/bin/chunks/tee-HK2SYCAR.js +0 -2
  768. package/dist/bin/chunks/time-5R4QWCYF.js +0 -2
  769. package/dist/bin/chunks/timeout-Z24MNWOP.js +0 -2
  770. package/dist/bin/chunks/touch-DWKSZGOQ.js +0 -2
  771. package/dist/bin/chunks/tr-4FPGAEVB.js +0 -2
  772. package/dist/bin/chunks/tree-HEKABARE.js +0 -2
  773. package/dist/bin/chunks/true-DP5UZP52.js +0 -2
  774. package/dist/bin/chunks/unexpand-OYZ7KOYR.js +0 -2
  775. package/dist/bin/chunks/uniq-TMSAIZM3.js +0 -2
  776. package/dist/bin/chunks/wc-ZIV3TFVG.js +0 -2
  777. package/dist/bin/chunks/which-5PO4LAOG.js +0 -2
  778. package/dist/bin/chunks/whoami-E7PN2UWC.js +0 -2
  779. package/dist/bin/chunks/xan-MOZFJGMY.js +0 -2
  780. package/dist/bin/chunks/xan-view-5SZBYPLG.js +0 -2
  781. package/dist/bin/chunks/xargs-SCYIFXOW.js +0 -2
  782. package/dist/bin/chunks/yq-Q47JUWL6.js +0 -2
  783. package/dist/bin/shell/chunks/alias-3GODYSFD.js +0 -2
  784. package/dist/bin/shell/chunks/awk2-VTJMI54B.js +0 -2
  785. package/dist/bin/shell/chunks/base64-43M2R3GA.js +0 -2
  786. package/dist/bin/shell/chunks/basename-KBUKWB2E.js +0 -2
  787. package/dist/bin/shell/chunks/bash-6ZHZ6BX7.js +0 -2
  788. package/dist/bin/shell/chunks/cat-XZIJZXKP.js +0 -2
  789. package/dist/bin/shell/chunks/chmod-N5CQATDW.js +0 -2
  790. package/dist/bin/shell/chunks/chunk-26NO42TF.js +0 -14
  791. package/dist/bin/shell/chunks/chunk-3MBAUIBB.js +0 -7
  792. package/dist/bin/shell/chunks/chunk-3Y32LPNT.js +0 -2
  793. package/dist/bin/shell/chunks/chunk-4OALHZXB.js +0 -2
  794. package/dist/bin/shell/chunks/chunk-4PRVMER6.js +0 -2
  795. package/dist/bin/shell/chunks/chunk-4VDEBYW7.js +0 -2
  796. package/dist/bin/shell/chunks/chunk-54G6AE72.js +0 -32
  797. package/dist/bin/shell/chunks/chunk-5G2VOPPJ.js +0 -7
  798. package/dist/bin/shell/chunks/chunk-5WFYIUU2.js +0 -3
  799. package/dist/bin/shell/chunks/chunk-6KZRLMG3.js +0 -8
  800. package/dist/bin/shell/chunks/chunk-7ADG3DNO.js +0 -8
  801. package/dist/bin/shell/chunks/chunk-7BORMNPQ.js +0 -2
  802. package/dist/bin/shell/chunks/chunk-7G3MC56B.js +0 -7
  803. package/dist/bin/shell/chunks/chunk-A3HQTYHR.js +0 -74
  804. package/dist/bin/shell/chunks/chunk-AAW7UMPO.js +0 -9
  805. package/dist/bin/shell/chunks/chunk-AXWFPG37.js +0 -10
  806. package/dist/bin/shell/chunks/chunk-AZ3RUDR2.js +0 -9
  807. package/dist/bin/shell/chunks/chunk-B3RU2PUI.js +0 -140
  808. package/dist/bin/shell/chunks/chunk-BYDV4VEF.js +0 -3
  809. package/dist/bin/shell/chunks/chunk-CGE2EHYP.js +0 -5
  810. package/dist/bin/shell/chunks/chunk-CM4532DS.js +0 -36
  811. package/dist/bin/shell/chunks/chunk-CQG2HEAL.js +0 -5
  812. package/dist/bin/shell/chunks/chunk-D5WP4CKS.js +0 -3
  813. package/dist/bin/shell/chunks/chunk-D64U2VGQ.js +0 -2
  814. package/dist/bin/shell/chunks/chunk-DOXYBGNA.js +0 -12
  815. package/dist/bin/shell/chunks/chunk-EJQKHROT.js +0 -14
  816. package/dist/bin/shell/chunks/chunk-EPPBDXOG.js +0 -8
  817. package/dist/bin/shell/chunks/chunk-EUXCM6C4.js +0 -12
  818. package/dist/bin/shell/chunks/chunk-F3LGZXLQ.js +0 -9
  819. package/dist/bin/shell/chunks/chunk-FA2CHD73.js +0 -16
  820. package/dist/bin/shell/chunks/chunk-FLPVVSN5.js +0 -5
  821. package/dist/bin/shell/chunks/chunk-FSZWFMB4.js +0 -16
  822. package/dist/bin/shell/chunks/chunk-G43H2WGH.js +0 -17
  823. package/dist/bin/shell/chunks/chunk-GO6FXSC4.js +0 -6
  824. package/dist/bin/shell/chunks/chunk-GOJZHH3L.js +0 -6
  825. package/dist/bin/shell/chunks/chunk-GTNBSMZR.js +0 -23
  826. package/dist/bin/shell/chunks/chunk-GZHFXDDO.js +0 -10
  827. package/dist/bin/shell/chunks/chunk-HJEHIH4P.js +0 -33
  828. package/dist/bin/shell/chunks/chunk-IDGH4PGU.js +0 -3
  829. package/dist/bin/shell/chunks/chunk-ITA43A73.js +0 -7
  830. package/dist/bin/shell/chunks/chunk-JBABAK44.js +0 -4
  831. package/dist/bin/shell/chunks/chunk-JLX6YWGA.js +0 -3
  832. package/dist/bin/shell/chunks/chunk-JQBC3FXE.js +0 -8
  833. package/dist/bin/shell/chunks/chunk-JTF74J6E.js +0 -2
  834. package/dist/bin/shell/chunks/chunk-KGOUQS5A.js +0 -2
  835. package/dist/bin/shell/chunks/chunk-L2JBII6Z.js +0 -287
  836. package/dist/bin/shell/chunks/chunk-LGJM5YFT.js +0 -17
  837. package/dist/bin/shell/chunks/chunk-LIYVQA3X.js +0 -2
  838. package/dist/bin/shell/chunks/chunk-LJKIWB5F.js +0 -4
  839. package/dist/bin/shell/chunks/chunk-LMK6G2HH.js +0 -8
  840. package/dist/bin/shell/chunks/chunk-LOJMXC4F.js +0 -5
  841. package/dist/bin/shell/chunks/chunk-MAVV76T4.js +0 -2
  842. package/dist/bin/shell/chunks/chunk-MNMRGJJM.js +0 -11
  843. package/dist/bin/shell/chunks/chunk-MO4RPBN2.js +0 -2
  844. package/dist/bin/shell/chunks/chunk-MRP4ZCD7.js +0 -6
  845. package/dist/bin/shell/chunks/chunk-MXVNCVD6.js +0 -30
  846. package/dist/bin/shell/chunks/chunk-N43DJTSI.js +0 -2
  847. package/dist/bin/shell/chunks/chunk-N5OTVT4F.js +0 -23
  848. package/dist/bin/shell/chunks/chunk-NAX7MTAR.js +0 -21
  849. package/dist/bin/shell/chunks/chunk-ND23BJUM.js +0 -15
  850. package/dist/bin/shell/chunks/chunk-NLBRLRWD.js +0 -5
  851. package/dist/bin/shell/chunks/chunk-NSUMEERA.js +0 -12
  852. package/dist/bin/shell/chunks/chunk-OBH7XN5N.js +0 -1
  853. package/dist/bin/shell/chunks/chunk-OBI37ZY4.js +0 -9
  854. package/dist/bin/shell/chunks/chunk-OOJCYVYF.js +0 -2
  855. package/dist/bin/shell/chunks/chunk-ORUYSLP4.js +0 -16
  856. package/dist/bin/shell/chunks/chunk-P6GNZPVW.js +0 -19
  857. package/dist/bin/shell/chunks/chunk-PPBQJBC2.js +0 -5
  858. package/dist/bin/shell/chunks/chunk-PQNTKMH3.js +0 -6
  859. package/dist/bin/shell/chunks/chunk-PS4LOXE5.js +0 -8
  860. package/dist/bin/shell/chunks/chunk-QSDVMMYI.js +0 -21
  861. package/dist/bin/shell/chunks/chunk-RJSAGJQJ.js +0 -11
  862. package/dist/bin/shell/chunks/chunk-RLNOQILG.js +0 -2
  863. package/dist/bin/shell/chunks/chunk-RMQC3GS7.js +0 -100
  864. package/dist/bin/shell/chunks/chunk-ROJPSS6N.js +0 -3
  865. package/dist/bin/shell/chunks/chunk-RT7TRQVZ.js +0 -3
  866. package/dist/bin/shell/chunks/chunk-S7OHMN3F.js +0 -6
  867. package/dist/bin/shell/chunks/chunk-SDLWFYVT.js +0 -21
  868. package/dist/bin/shell/chunks/chunk-SE4C7FJY.js +0 -33
  869. package/dist/bin/shell/chunks/chunk-SGA7Y45Z.js +0 -17
  870. package/dist/bin/shell/chunks/chunk-SXB55JOI.js +0 -2
  871. package/dist/bin/shell/chunks/chunk-SXRVLCZ4.js +0 -2
  872. package/dist/bin/shell/chunks/chunk-TEFXEYX3.js +0 -3
  873. package/dist/bin/shell/chunks/chunk-THALLNXT.js +0 -7
  874. package/dist/bin/shell/chunks/chunk-THNL3XFF.js +0 -11
  875. package/dist/bin/shell/chunks/chunk-V7ZOPVQS.js +0 -2
  876. package/dist/bin/shell/chunks/chunk-VHUYNUT7.js +0 -13
  877. package/dist/bin/shell/chunks/chunk-VNER2XXL.js +0 -7
  878. package/dist/bin/shell/chunks/chunk-WS6P4H4S.js +0 -63
  879. package/dist/bin/shell/chunks/chunk-WWZVR5NN.js +0 -6
  880. package/dist/bin/shell/chunks/chunk-WXMBDX4P.js +0 -14
  881. package/dist/bin/shell/chunks/chunk-XKPFI566.js +0 -84
  882. package/dist/bin/shell/chunks/chunk-XY5HGZW5.js +0 -8
  883. package/dist/bin/shell/chunks/chunk-YEKSVVRC.js +0 -11
  884. package/dist/bin/shell/chunks/chunk-YFPDB4PH.js +0 -9
  885. package/dist/bin/shell/chunks/chunk-YLE2OYY6.js +0 -2
  886. package/dist/bin/shell/chunks/chunk-YMMJLYIX.js +0 -2
  887. package/dist/bin/shell/chunks/chunk-YTIURC67.js +0 -2
  888. package/dist/bin/shell/chunks/chunk-YU6OGPZR.js +0 -5
  889. package/dist/bin/shell/chunks/chunk-YWZOGBFE.js +0 -9
  890. package/dist/bin/shell/chunks/chunk-ZA4HUKJ3.js +0 -13
  891. package/dist/bin/shell/chunks/chunk-ZKC5HQYO.js +0 -14
  892. package/dist/bin/shell/chunks/chunk-ZO5PSLKR.js +0 -6
  893. package/dist/bin/shell/chunks/chunk-ZSVBYEY4.js +0 -6
  894. package/dist/bin/shell/chunks/clear-KRGKPFOI.js +0 -2
  895. package/dist/bin/shell/chunks/column-XGV32UPN.js +0 -2
  896. package/dist/bin/shell/chunks/comm-R3F3Z5DX.js +0 -2
  897. package/dist/bin/shell/chunks/cp-XH2ZB7WT.js +0 -2
  898. package/dist/bin/shell/chunks/curl-SRTMGOVV.js +0 -26
  899. package/dist/bin/shell/chunks/cut-5EY2XPXX.js +0 -2
  900. package/dist/bin/shell/chunks/date-WUPBL2TL.js +0 -2
  901. package/dist/bin/shell/chunks/diff-LE7GMFZD.js +0 -2
  902. package/dist/bin/shell/chunks/dirname-5FAOMLBL.js +0 -2
  903. package/dist/bin/shell/chunks/du-LDAPXSGF.js +0 -2
  904. package/dist/bin/shell/chunks/echo-2MUAOGUE.js +0 -2
  905. package/dist/bin/shell/chunks/env-NTPN5QYM.js +0 -2
  906. package/dist/bin/shell/chunks/expand-26XPP5KB.js +0 -2
  907. package/dist/bin/shell/chunks/expansion-2RO5M3QC.js +0 -2
  908. package/dist/bin/shell/chunks/expr-4CJYC4LY.js +0 -2
  909. package/dist/bin/shell/chunks/file-D5YKS5NV.js +0 -2
  910. package/dist/bin/shell/chunks/find-GAYRV4IF.js +0 -2
  911. package/dist/bin/shell/chunks/flag-coverage-LBMWMYOO.js +0 -2
  912. package/dist/bin/shell/chunks/fold-XSVNTAWH.js +0 -2
  913. package/dist/bin/shell/chunks/grep-OZJTRD4D.js +0 -2
  914. package/dist/bin/shell/chunks/gzip-LHOO65AN.js +0 -2
  915. package/dist/bin/shell/chunks/head-YMNRW3F3.js +0 -2
  916. package/dist/bin/shell/chunks/help-DVG4AAGE.js +0 -2
  917. package/dist/bin/shell/chunks/history-UUKG55YW.js +0 -2
  918. package/dist/bin/shell/chunks/hostname-WY6RKE32.js +0 -2
  919. package/dist/bin/shell/chunks/html-to-markdown-WVZA3MCP.js +0 -2
  920. package/dist/bin/shell/chunks/join-Y4Q5WVVE.js +0 -2
  921. package/dist/bin/shell/chunks/jq-FIV5Q5T4.js +0 -2
  922. package/dist/bin/shell/chunks/js-exec-DUGJM6RL.js +0 -100
  923. package/dist/bin/shell/chunks/ln-EGC4HRXZ.js +0 -2
  924. package/dist/bin/shell/chunks/ls-G2PXHSNX.js +0 -2
  925. package/dist/bin/shell/chunks/md5sum-NCLXV2S3.js +0 -2
  926. package/dist/bin/shell/chunks/mkdir-Z47OISSR.js +0 -2
  927. package/dist/bin/shell/chunks/mv-OY7X62QC.js +0 -2
  928. package/dist/bin/shell/chunks/nl-XH3L75DR.js +0 -2
  929. package/dist/bin/shell/chunks/od-52FBC34W.js +0 -2
  930. package/dist/bin/shell/chunks/paste-3UVLMQ2K.js +0 -2
  931. package/dist/bin/shell/chunks/printf-P3QVL4IO.js +0 -2
  932. package/dist/bin/shell/chunks/pwd-6VBAPL3Y.js +0 -2
  933. package/dist/bin/shell/chunks/python3-O4VTP6TD.js +0 -12
  934. package/dist/bin/shell/chunks/readlink-BD5VFOC5.js +0 -2
  935. package/dist/bin/shell/chunks/rev-UHEPS2UL.js +0 -2
  936. package/dist/bin/shell/chunks/rg-C6KMBFNG.js +0 -2
  937. package/dist/bin/shell/chunks/rm-L3NZOLLG.js +0 -2
  938. package/dist/bin/shell/chunks/rmdir-5KLM4EA6.js +0 -2
  939. package/dist/bin/shell/chunks/sed-HALRQZKY.js +0 -2
  940. package/dist/bin/shell/chunks/seq-V7KBLSQ7.js +0 -2
  941. package/dist/bin/shell/chunks/sha1sum-BHNJ5ALF.js +0 -2
  942. package/dist/bin/shell/chunks/sha256sum-HJJ3NJ5L.js +0 -2
  943. package/dist/bin/shell/chunks/sleep-ND6FZRZ4.js +0 -2
  944. package/dist/bin/shell/chunks/sort-7GENYU2I.js +0 -2
  945. package/dist/bin/shell/chunks/split-YWV64TJH.js +0 -2
  946. package/dist/bin/shell/chunks/sqlite3-CVNFMP3Z.js +0 -2
  947. package/dist/bin/shell/chunks/stat-XS2LXYS2.js +0 -2
  948. package/dist/bin/shell/chunks/strings-XXKZCWY5.js +0 -2
  949. package/dist/bin/shell/chunks/tac-T42SKDDI.js +0 -2
  950. package/dist/bin/shell/chunks/tail-V537TDFR.js +0 -2
  951. package/dist/bin/shell/chunks/tar-TOWX2TDU.js +0 -2
  952. package/dist/bin/shell/chunks/tee-HK2SYCAR.js +0 -2
  953. package/dist/bin/shell/chunks/time-5R4QWCYF.js +0 -2
  954. package/dist/bin/shell/chunks/timeout-Z24MNWOP.js +0 -2
  955. package/dist/bin/shell/chunks/touch-DWKSZGOQ.js +0 -2
  956. package/dist/bin/shell/chunks/tr-4FPGAEVB.js +0 -2
  957. package/dist/bin/shell/chunks/tree-HEKABARE.js +0 -2
  958. package/dist/bin/shell/chunks/true-DP5UZP52.js +0 -2
  959. package/dist/bin/shell/chunks/unexpand-OYZ7KOYR.js +0 -2
  960. package/dist/bin/shell/chunks/uniq-TMSAIZM3.js +0 -2
  961. package/dist/bin/shell/chunks/wc-ZIV3TFVG.js +0 -2
  962. package/dist/bin/shell/chunks/which-5PO4LAOG.js +0 -2
  963. package/dist/bin/shell/chunks/whoami-E7PN2UWC.js +0 -2
  964. package/dist/bin/shell/chunks/xan-MOZFJGMY.js +0 -2
  965. package/dist/bin/shell/chunks/xan-view-5SZBYPLG.js +0 -2
  966. package/dist/bin/shell/chunks/xargs-SCYIFXOW.js +0 -2
  967. package/dist/bin/shell/chunks/yq-Q47JUWL6.js +0 -2
  968. package/dist/bundle/chunks/alias-JE7RI5QX.js +0 -1
  969. package/dist/bundle/chunks/awk2-POPGKRAI.js +0 -1
  970. package/dist/bundle/chunks/base64-4YMZCVJ5.js +0 -1
  971. package/dist/bundle/chunks/basename-AA2KJYZQ.js +0 -1
  972. package/dist/bundle/chunks/bash-IJWYRKFO.js +0 -1
  973. package/dist/bundle/chunks/cat-RDUMLXKC.js +0 -1
  974. package/dist/bundle/chunks/chmod-SYMGL4JA.js +0 -1
  975. package/dist/bundle/chunks/chunk-24IMIIXA.js +0 -1
  976. package/dist/bundle/chunks/chunk-3THT3N7L.js +0 -1
  977. package/dist/bundle/chunks/chunk-3ZUFRYJ4.js +0 -1
  978. package/dist/bundle/chunks/chunk-44UOCSGV.js +0 -1
  979. package/dist/bundle/chunks/chunk-4GTNDTRF.js +0 -7
  980. package/dist/bundle/chunks/chunk-4HHKTUW3.js +0 -2
  981. package/dist/bundle/chunks/chunk-4Q4SM6WR.js +0 -4
  982. package/dist/bundle/chunks/chunk-55VFSPNA.js +0 -2
  983. package/dist/bundle/chunks/chunk-5QMZ5MUS.js +0 -4
  984. package/dist/bundle/chunks/chunk-5QVNJEHU.js +0 -8
  985. package/dist/bundle/chunks/chunk-5V6VZH6T.js +0 -1
  986. package/dist/bundle/chunks/chunk-62RKD26F.js +0 -20
  987. package/dist/bundle/chunks/chunk-64BAICW3.js +0 -1
  988. package/dist/bundle/chunks/chunk-74CEPOFO.js +0 -22
  989. package/dist/bundle/chunks/chunk-7L36YK2X.js +0 -2
  990. package/dist/bundle/chunks/chunk-7TSDKFEO.js +0 -1
  991. package/dist/bundle/chunks/chunk-A4HU7SVR.js +0 -2
  992. package/dist/bundle/chunks/chunk-A4JSPFCI.js +0 -6
  993. package/dist/bundle/chunks/chunk-A5O5YHGN.js +0 -1
  994. package/dist/bundle/chunks/chunk-A65PWWJC.js +0 -2
  995. package/dist/bundle/chunks/chunk-A7A2DBEE.js +0 -6
  996. package/dist/bundle/chunks/chunk-A7ICOL4V.js +0 -13
  997. package/dist/bundle/chunks/chunk-ALLTKNUZ.js +0 -5
  998. package/dist/bundle/chunks/chunk-APT7OOP2.js +0 -1
  999. package/dist/bundle/chunks/chunk-B6O2PIY4.js +0 -10
  1000. package/dist/bundle/chunks/chunk-BBXLRYSX.js +0 -5
  1001. package/dist/bundle/chunks/chunk-CR5AFCPT.js +0 -22
  1002. package/dist/bundle/chunks/chunk-CWQS3NFK.js +0 -1
  1003. package/dist/bundle/chunks/chunk-D4J545R4.js +0 -11
  1004. package/dist/bundle/chunks/chunk-D6CWQ5DW.js +0 -5
  1005. package/dist/bundle/chunks/chunk-D7MEQ3VN.js +0 -4
  1006. package/dist/bundle/chunks/chunk-DCAAORBQ.js +0 -1
  1007. package/dist/bundle/chunks/chunk-DXB73IDG.js +0 -1
  1008. package/dist/bundle/chunks/chunk-EEXR5ZDP.js +0 -2
  1009. package/dist/bundle/chunks/chunk-EIZGF4BS.js +0 -8
  1010. package/dist/bundle/chunks/chunk-F23WWYKW.js +0 -16
  1011. package/dist/bundle/chunks/chunk-F55TLFGB.js +0 -9
  1012. package/dist/bundle/chunks/chunk-FEIOJCZD.js +0 -73
  1013. package/dist/bundle/chunks/chunk-GCTKCWKD.js +0 -3
  1014. package/dist/bundle/chunks/chunk-GFQRA5P5.js +0 -7
  1015. package/dist/bundle/chunks/chunk-GOV5EKKI.js +0 -9
  1016. package/dist/bundle/chunks/chunk-GXVXFKBA.js +0 -5
  1017. package/dist/bundle/chunks/chunk-HDQ56CKY.js +0 -15
  1018. package/dist/bundle/chunks/chunk-HJQJAYMS.js +0 -2
  1019. package/dist/bundle/chunks/chunk-HJWBQKYG.js +0 -5
  1020. package/dist/bundle/chunks/chunk-HWBSOZZR.js +0 -35
  1021. package/dist/bundle/chunks/chunk-HWKDQ44K.js +0 -3
  1022. package/dist/bundle/chunks/chunk-IPJHKYVM.js +0 -1
  1023. package/dist/bundle/chunks/chunk-J642UCRS.js +0 -1
  1024. package/dist/bundle/chunks/chunk-JVPRLUMK.js +0 -7
  1025. package/dist/bundle/chunks/chunk-KMEYNNUA.js +0 -15
  1026. package/dist/bundle/chunks/chunk-LL3S3NLB.js +0 -1
  1027. package/dist/bundle/chunks/chunk-LPQPILI2.js +0 -10
  1028. package/dist/bundle/chunks/chunk-LTZRCH7N.js +0 -31
  1029. package/dist/bundle/chunks/chunk-LWEGUNWT.js +0 -7
  1030. package/dist/bundle/chunks/chunk-MDDMCKUK.js +0 -6
  1031. package/dist/bundle/chunks/chunk-MDLLFABN.js +0 -4
  1032. package/dist/bundle/chunks/chunk-MHTUABJP.js +0 -8
  1033. package/dist/bundle/chunks/chunk-MIZPJHVH.js +0 -7
  1034. package/dist/bundle/chunks/chunk-MLXIYONF.js +0 -15
  1035. package/dist/bundle/chunks/chunk-MYE6AGBJ.js +0 -16
  1036. package/dist/bundle/chunks/chunk-NAERJDUW.js +0 -8
  1037. package/dist/bundle/chunks/chunk-NCNPKYJZ.js +0 -2
  1038. package/dist/bundle/chunks/chunk-NUFRM6SI.js +0 -0
  1039. package/dist/bundle/chunks/chunk-NUYSJFDK.js +0 -7
  1040. package/dist/bundle/chunks/chunk-NYQYO467.js +0 -32
  1041. package/dist/bundle/chunks/chunk-OARHFVLG.js +0 -20
  1042. package/dist/bundle/chunks/chunk-OCLXQMOG.js +0 -6
  1043. package/dist/bundle/chunks/chunk-OCS6LSEM.js +0 -13
  1044. package/dist/bundle/chunks/chunk-OJDRYQWQ.js +0 -1
  1045. package/dist/bundle/chunks/chunk-OL3S66CO.js +0 -99
  1046. package/dist/bundle/chunks/chunk-PBXLG62G.js +0 -8
  1047. package/dist/bundle/chunks/chunk-PP6PSHAB.js +0 -4
  1048. package/dist/bundle/chunks/chunk-PYSFUGCK.js +0 -10
  1049. package/dist/bundle/chunks/chunk-QCDB2VPH.js +0 -6
  1050. package/dist/bundle/chunks/chunk-QJ7O6ZN3.js +0 -5
  1051. package/dist/bundle/chunks/chunk-R6QSAL5T.js +0 -1
  1052. package/dist/bundle/chunks/chunk-RPNGRAAP.js +0 -7
  1053. package/dist/bundle/chunks/chunk-SDNKECQQ.js +0 -5
  1054. package/dist/bundle/chunks/chunk-SYMJJMQ4.js +0 -20
  1055. package/dist/bundle/chunks/chunk-T56QNPHK.js +0 -14
  1056. package/dist/bundle/chunks/chunk-TLSUDHID.js +0 -6
  1057. package/dist/bundle/chunks/chunk-TOMNU26N.js +0 -4
  1058. package/dist/bundle/chunks/chunk-TXBZCHCQ.js +0 -5
  1059. package/dist/bundle/chunks/chunk-UNYNJIFU.js +0 -139
  1060. package/dist/bundle/chunks/chunk-V7TAPXDL.js +0 -27
  1061. package/dist/bundle/chunks/chunk-VJFXDYWH.js +0 -10
  1062. package/dist/bundle/chunks/chunk-VLGZJRPG.js +0 -16
  1063. package/dist/bundle/chunks/chunk-VOBGTVA6.js +0 -6
  1064. package/dist/bundle/chunks/chunk-VYOJP4TV.js +0 -13
  1065. package/dist/bundle/chunks/chunk-WKFATFPP.js +0 -4
  1066. package/dist/bundle/chunks/chunk-X2AJGDEF.js +0 -1
  1067. package/dist/bundle/chunks/chunk-XHM67O4N.js +0 -1
  1068. package/dist/bundle/chunks/chunk-XKQRETAK.js +0 -1
  1069. package/dist/bundle/chunks/chunk-XORM457F.js +0 -286
  1070. package/dist/bundle/chunks/chunk-XVDPCNWR.js +0 -11
  1071. package/dist/bundle/chunks/chunk-YCFVLTST.js +0 -12
  1072. package/dist/bundle/chunks/chunk-YFG2CMIF.js +0 -4
  1073. package/dist/bundle/chunks/chunk-YNYSPYQ5.js +0 -32
  1074. package/dist/bundle/chunks/chunk-YS3AZT3J.js +0 -8
  1075. package/dist/bundle/chunks/chunk-YTNYSM6T.js +0 -11
  1076. package/dist/bundle/chunks/chunk-Z6LRHWXI.js +0 -13
  1077. package/dist/bundle/chunks/chunk-Z7JVV2SM.js +0 -12
  1078. package/dist/bundle/chunks/chunk-ZXL7TQLN.js +0 -62
  1079. package/dist/bundle/chunks/clear-5CZ5X4YR.js +0 -1
  1080. package/dist/bundle/chunks/column-WLPMMSTS.js +0 -1
  1081. package/dist/bundle/chunks/comm-5SLSESQG.js +0 -1
  1082. package/dist/bundle/chunks/cp-XOYR4ABJ.js +0 -1
  1083. package/dist/bundle/chunks/curl-COE4TZE6.js +0 -25
  1084. package/dist/bundle/chunks/cut-OPC3VAGB.js +0 -1
  1085. package/dist/bundle/chunks/date-DD7FVA2V.js +0 -1
  1086. package/dist/bundle/chunks/diff-HJF2MPDN.js +0 -1
  1087. package/dist/bundle/chunks/dirname-LEMTZZFS.js +0 -1
  1088. package/dist/bundle/chunks/du-WO2ENHXQ.js +0 -1
  1089. package/dist/bundle/chunks/echo-O45JWWI2.js +0 -1
  1090. package/dist/bundle/chunks/env-5EPCWSXR.js +0 -1
  1091. package/dist/bundle/chunks/expand-DTNXU4LQ.js +0 -1
  1092. package/dist/bundle/chunks/expansion-ENLSRCXJ.js +0 -1
  1093. package/dist/bundle/chunks/expr-5T3UU5KE.js +0 -1
  1094. package/dist/bundle/chunks/file-ZIGAJ4YS.js +0 -1
  1095. package/dist/bundle/chunks/find-TPUOAIUQ.js +0 -1
  1096. package/dist/bundle/chunks/flag-coverage-LMTH7T5F.js +0 -1
  1097. package/dist/bundle/chunks/fold-LDSORVYE.js +0 -1
  1098. package/dist/bundle/chunks/grep-3AIAIJVR.js +0 -1
  1099. package/dist/bundle/chunks/gzip-AQXSGOVS.js +0 -1
  1100. package/dist/bundle/chunks/head-HT2B6D2J.js +0 -1
  1101. package/dist/bundle/chunks/help-VVWX7SA5.js +0 -1
  1102. package/dist/bundle/chunks/history-J4QRNGRO.js +0 -1
  1103. package/dist/bundle/chunks/hostname-BK6HG2DE.js +0 -1
  1104. package/dist/bundle/chunks/html-to-markdown-TFCECAGV.js +0 -1
  1105. package/dist/bundle/chunks/join-GG2LDHE5.js +0 -1
  1106. package/dist/bundle/chunks/jq-ODXZBPLY.js +0 -1
  1107. package/dist/bundle/chunks/js-exec-LSIPMWTQ.js +0 -99
  1108. package/dist/bundle/chunks/ln-4TRFBYAT.js +0 -1
  1109. package/dist/bundle/chunks/ls-KSXFZCWH.js +0 -1
  1110. package/dist/bundle/chunks/md5sum-INMIK4DX.js +0 -1
  1111. package/dist/bundle/chunks/mkdir-TDEMSB6C.js +0 -1
  1112. package/dist/bundle/chunks/mv-Z6MORUFL.js +0 -1
  1113. package/dist/bundle/chunks/nl-U5YJDM32.js +0 -1
  1114. package/dist/bundle/chunks/od-VJEF2UR5.js +0 -1
  1115. package/dist/bundle/chunks/paste-7N6AFSDS.js +0 -1
  1116. package/dist/bundle/chunks/printf-CX64KX2P.js +0 -1
  1117. package/dist/bundle/chunks/pwd-D4OZ7N27.js +0 -1
  1118. package/dist/bundle/chunks/python3-5F2XPEW4.js +0 -11
  1119. package/dist/bundle/chunks/readlink-MI4GCHJF.js +0 -1
  1120. package/dist/bundle/chunks/rev-XOSYPP45.js +0 -1
  1121. package/dist/bundle/chunks/rg-FOQSCCX3.js +0 -1
  1122. package/dist/bundle/chunks/rm-RTZG23RL.js +0 -1
  1123. package/dist/bundle/chunks/rmdir-XTQXT7RK.js +0 -1
  1124. package/dist/bundle/chunks/sed-VFTTATXJ.js +0 -1
  1125. package/dist/bundle/chunks/seq-RN5ZUASB.js +0 -1
  1126. package/dist/bundle/chunks/sha1sum-VJPNLNU6.js +0 -1
  1127. package/dist/bundle/chunks/sha256sum-PI32XWXY.js +0 -1
  1128. package/dist/bundle/chunks/sleep-VZFPZFWA.js +0 -1
  1129. package/dist/bundle/chunks/sort-DCNRDA7U.js +0 -1
  1130. package/dist/bundle/chunks/split-SITCSYCZ.js +0 -1
  1131. package/dist/bundle/chunks/sqlite3-56UMWEY3.js +0 -1
  1132. package/dist/bundle/chunks/stat-BT5A227F.js +0 -1
  1133. package/dist/bundle/chunks/strings-7PLOGTPD.js +0 -1
  1134. package/dist/bundle/chunks/tac-SJGXQ4T2.js +0 -1
  1135. package/dist/bundle/chunks/tail-S5ULNTJU.js +0 -1
  1136. package/dist/bundle/chunks/tar-232RCEFK.js +0 -1
  1137. package/dist/bundle/chunks/tee-O7VXZDCO.js +0 -1
  1138. package/dist/bundle/chunks/time-DEUO3QV2.js +0 -1
  1139. package/dist/bundle/chunks/timeout-VRKMCG72.js +0 -1
  1140. package/dist/bundle/chunks/touch-DX2IJOQ4.js +0 -1
  1141. package/dist/bundle/chunks/tr-2HXZRDSW.js +0 -1
  1142. package/dist/bundle/chunks/tree-LYXBS7DC.js +0 -1
  1143. package/dist/bundle/chunks/true-WHJNXCHG.js +0 -1
  1144. package/dist/bundle/chunks/unexpand-RGTMIGZM.js +0 -1
  1145. package/dist/bundle/chunks/uniq-SUNANL47.js +0 -1
  1146. package/dist/bundle/chunks/wc-TQB3VNOX.js +0 -1
  1147. package/dist/bundle/chunks/which-XZHEH76L.js +0 -1
  1148. package/dist/bundle/chunks/whoami-DGKU3D2X.js +0 -1
  1149. package/dist/bundle/chunks/xan-BXDXYEIB.js +0 -1
  1150. package/dist/bundle/chunks/xan-view-ECQUO7AJ.js +0 -1
  1151. package/dist/bundle/chunks/xargs-I6EZUCYF.js +0 -1
  1152. package/dist/bundle/chunks/yq-MJMAR36V.js +0 -1
  1153. package/dist/commands/js-exec/executor-adapter.d.ts +0 -66
  1154. package/dist/commands/js-exec/worker.d.ts +0 -38
  1155. package/dist/executor-init.d.ts +0 -19
  1156. package/vendor/executor/executor-sdk-bundle.d.mts +0 -18
  1157. package/vendor/executor/executor-sdk-bundle.mjs +0 -512
  1158. package/vendor/executor/openapi-extractor-wasm/openapi_extractor_bg.wasm +0 -0
@@ -1,22 +0,0 @@
1
- function s(t){let e=`${t.name} - ${t.summary}
2
-
3
- `;if(e+=`Usage: ${t.usage}
4
- `,t.description){if(e+=`
5
- Description:
6
- `,typeof t.description=="string")for(let n of t.description.split(`
7
- `))e+=n?` ${n}
8
- `:`
9
- `;else if(t.description.length>0)for(let n of t.description)e+=n?` ${n}
10
- `:`
11
- `}if(t.options&&t.options.length>0){e+=`
12
- Options:
13
- `;for(let n of t.options)e+=` ${n}
14
- `}if(t.examples&&t.examples.length>0){e+=`
15
- Examples:
16
- `;for(let n of t.examples)e+=` ${n}
17
- `}if(t.notes&&t.notes.length>0){e+=`
18
- Notes:
19
- `;for(let n of t.notes)e+=` ${n}
20
- `}return{stdout:e,stderr:"",exitCode:0}}function o(t){return t.includes("--help")}function r(t,e){return{stdout:"",stderr:e.startsWith("--")?`${t}: unrecognized option '${e}'
21
- `:`${t}: invalid option -- '${e.replace(/^-/,"")}'
22
- `,exitCode:1}}export{s as a,o as b,r as c};
@@ -1,2 +0,0 @@
1
- async function y(t,n,s){let{cmdName:r,allowStdinMarker:f=!0,stopOnError:a=!1,batchSize:u=100}=s;if(n.length===0)return{files:[{filename:"",content:t.stdin}],stderr:"",exitCode:0};let i=[],c="",l=0;for(let o=0;o<n.length;o+=u){let d=n.slice(o,o+u),m=await Promise.all(d.map(async e=>{if(f&&e==="-")return{filename:"-",content:t.stdin,error:null};try{let h=t.fs.resolvePath(t.cwd,e),p=await t.fs.readFile(h,"binary");return{filename:e,content:p,error:null}}catch{return{filename:e,content:"",error:`${r}: ${e}: No such file or directory
2
- `}}}));for(let e of m)if(e.error){if(c+=e.error,l=1,a)return{files:i,stderr:c,exitCode:l}}else i.push({filename:e.filename,content:e.content})}return{files:i,stderr:c,exitCode:l}}async function b(t,n,s){let r=await y(t,n,{...s,stopOnError:!0});return r.exitCode!==0?{ok:!1,error:{stdout:"",stderr:r.stderr,exitCode:r.exitCode}}:{ok:!0,content:r.files.map(a=>a.content).join("")}}export{y as a,b};
@@ -1 +0,0 @@
1
- var i=new Set(["__proto__","constructor","prototype"]),p=new Set([...i,"__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]);function a(e,n){if(Array.isArray(e))throw new TypeError(`${n}: expected object, got array`);if(Object.getPrototypeOf(e)!==null)throw new TypeError(`${n}: expected null-prototype object, got prototypal object`)}function u(e){return!i.has(e)}function l(e,n,o){a(e,"safeSet"),u(n)&&(e[n]=o)}function y(e,n){return a(e,"safeHasOwn"),Object.hasOwn(e,n)}function O(e){let n=new WeakMap,o=t=>{if(t===null||typeof t!="object"||t instanceof Date)return t;let f=n.get(t);if(f!==void 0)return f;if(Array.isArray(t)){let r=[];n.set(t,r);for(let c of t)r.push(o(c));return r}let s=Object.create(null);n.set(t,s);for(let r of Object.keys(t))s[r]=o(t[r]);return s};return o(e)}function _(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)?e:null}function x(e){return Object.assign(Object.create(null),e)}function S(e){return Object.assign(Object.create(null),e)}function b(...e){return Object.assign(Object.create(null),...e)}export{u as a,l as b,y as c,O as d,_ as e,x as f,S as g,b as h};
@@ -1,2 +0,0 @@
1
- var o={name:"pwd",async execute(l,a){let t=!1;for(let e of l)if(e==="-P")t=!0;else if(e==="-L")t=!1;else{if(e==="--")break;e.startsWith("-")}let s=a.cwd;if(t)try{s=await a.fs.realpath(a.cwd)}catch{}return{stdout:`${s}
2
- `,stderr:"",exitCode:0}}},f={name:"pwd",flags:[{flag:"-P",type:"boolean"},{flag:"-L",type:"boolean"}]};export{o as a,f as b};
@@ -1,6 +0,0 @@
1
- import{a as y}from"./chunk-HWKDQ44K.js";import{a as $}from"./chunk-44UOCSGV.js";import{a as u,b as h}from"./chunk-74CEPOFO.js";var C={name:"mv",summary:"move (rename) files",usage:"mv [OPTION]... SOURCE... DEST",options:["-f, --force do not prompt before overwriting","-n, --no-clobber do not overwrite an existing file","-v, --verbose explain what is being done"," --help display this help and exit"]},P={force:{short:"f",long:"force",type:"boolean"},noClobber:{short:"n",long:"no-clobber",type:"boolean"},verbose:{short:"v",long:"verbose",type:"boolean"}},O={name:"mv",async execute(m,t){if(h(m))return u(C);let s=y("mv",m,P);if(!s.ok)return s.error;let p=s.result.flags.force,d=s.result.flags.noClobber,w=s.result.flags.verbose,i=s.result.positional;if(d&&(p=!1),i.length<2)return{stdout:"",stderr:`mv: missing destination file operand
2
- `,exitCode:1};let r=i.pop()??"",g=i,n=t.fs.resolvePath(t.cwd,r),v="",f="",b=0,a=!1;try{a=(await t.fs.stat(n)).isDirectory}catch{}if(g.length>1&&!a)return{stdout:"",stderr:`mv: target '${r}' is not a directory
3
- `,exitCode:1};for(let e of g)try{let c=t.fs.resolvePath(t.cwd,e),o=n;if(a){let l=e.split("/").pop()||e;o=n==="/"?`/${l}`:`${n}/${l}`}if(d)try{await t.fs.stat(o);continue}catch{}if(await t.fs.mv(c,o),w){let l=a?`${r}/${e.split("/").pop()||e}`:r;v+=`renamed '${e}' -> '${l}'
4
- `}}catch(c){let o=$(c);o.includes("ENOENT")||o.includes("no such file")?f+=`mv: cannot stat '${e}': No such file or directory
5
- `:f+=`mv: cannot move '${e}': ${o}
6
- `,b=1}return{stdout:v,stderr:f,exitCode:b}}},x={name:"mv",flags:[{flag:"-f",type:"boolean"},{flag:"-n",type:"boolean"},{flag:"-v",type:"boolean"}],needsArgs:!0,minArgs:2};export{O as a,x as b};
@@ -1 +0,0 @@
1
- import{b as e}from"./chunk-5QMZ5MUS.js";var i=globalThis.setTimeout.bind(globalThis),r=globalThis.clearTimeout.bind(globalThis),s=globalThis.setInterval.bind(globalThis),T=globalThis.clearInterval.bind(globalThis);function l(t){return typeof t!="function"?t:e.bindCurrentContext(t)}var b=((t,n,...o)=>i(l(t),n,...o)),u=r;export{b as a,u as b};
@@ -1,2 +0,0 @@
1
- import{a as u}from"./chunk-HWKDQ44K.js";import{a as f,b as h}from"./chunk-74CEPOFO.js";var g={name:"which",summary:"locate a command",usage:"which [-as] program ...",options:["-a List all instances of executables found","-s No output, just return 0 if found, 1 if not","--help display this help and exit"]},w={showAll:{short:"a",type:"boolean"},silent:{short:"s",type:"boolean"}},A={name:"which",async execute(s,e){if(h(s))return f(g);let t=u("which",s,w);if(!t.ok)return t.error;let c=t.result.flags.showAll,p=t.result.flags.silent,o=t.result.positional;if(o.length===0)return{stdout:"",stderr:"",exitCode:1};let d=(e.env.get("PATH")||"/usr/bin:/bin").split(":"),n="",a=!0;for(let m of o){let l=!1;for(let r of d){if(!r)continue;let i=e.fs.resolvePath(r,m);if(await e.fs.exists(i)&&(l=!0,p||(n+=`${i}
2
- `),!c))break}l||(a=!1)}return{stdout:n,stderr:"",exitCode:a?0:1}}},v={name:"which",flags:[{flag:"-a",type:"boolean"},{flag:"-s",type:"boolean"}],needsArgs:!0};export{A as a,v as b};
@@ -1,6 +0,0 @@
1
- var F={name:"seq",async execute(r){let d=`
2
- `,f=!1,s=[],t=0;for(;t<r.length;){let e=r[t];if(e==="-s"&&t+1<r.length){d=r[t+1],t+=2;continue}if(e==="-w"){f=!0,t++;continue}if(e==="--"){t++;break}if(e.startsWith("-")&&e!=="-"){if(e.startsWith("-s")&&e.length>2){d=e.slice(2),t++;continue}if((e==="-ws"||e==="-sw")&&(f=!0,t+1<r.length)){d=r[t+1],t+=2;continue}}s.push(e),t++}for(;t<r.length;)s.push(r[t]),t++;if(s.length===0)return{stdout:"",stderr:`seq: missing operand
3
- `,exitCode:1};let l=1,o=1,a;if(s.length===1?a=parseFloat(s[0]):s.length===2?(l=parseFloat(s[0]),a=parseFloat(s[1])):(l=parseFloat(s[0]),o=parseFloat(s[1]),a=parseFloat(s[2])),Number.isNaN(l)||Number.isNaN(o)||Number.isNaN(a))return{stdout:"",stderr:`seq: invalid floating point argument: '${s.find(n=>Number.isNaN(parseFloat(n)))}'
4
- `,exitCode:1};if(o===0)return{stdout:"",stderr:`seq: invalid Zero increment value: '0'
5
- `,exitCode:1};let i=[],h=e=>{let n=String(e),u=n.indexOf(".");return u===-1?0:n.length-u-1},c=Math.max(h(l),h(o),h(a)),p=1e5,g=0;if(o>0)for(let e=l;e<=a+1e-10&&!(g++>p);e+=o)i.push(c>0?e.toFixed(c):String(Math.round(e)));else for(let e=l;e>=a-1e-10&&!(g++>p);e+=o)i.push(c>0?e.toFixed(c):String(Math.round(e)));if(f&&i.length>0){let e=Math.max(...i.map(n=>n.replace("-","").length));for(let n=0;n<i.length;n++){let u=i[n].startsWith("-"),x=(u?i[n].slice(1):i[n]).padStart(e,"0");i[n]=u?`-${x}`:x}}let m=i.join(d);return{stdout:m?`${m}
6
- `:"",stderr:"",exitCode:0}}},b={name:"seq",flags:[{flag:"-s",type:"value",valueHint:"string"},{flag:"-w",type:"boolean"}],needsArgs:!0};export{F as a,b};
@@ -1,13 +0,0 @@
1
- import{a as j,b as y,c as g}from"./chunk-74CEPOFO.js";var v={name:"join",summary:"join lines of two files on a common field",usage:"join [OPTION]... FILE1 FILE2",description:"For each pair of input lines with identical join fields, write a line to standard output. The default join field is the first, delimited by blanks.",options:["-1 FIELD Join on this FIELD of file 1 (default: 1)","-2 FIELD Join on this FIELD of file 2 (default: 1)","-t CHAR Use CHAR as input and output field separator","-a FILENUM Also print unpairable lines from file FILENUM (1 or 2)","-v FILENUM Like -a but only output unpairable lines","-e STRING Replace missing fields with STRING","-o FORMAT Output format (comma-separated list of FILENUM.FIELD)","-i Ignore case when comparing fields"],examples:["join file1 file2 # Join on first field","join -1 2 -2 1 file1 file2 # Join file1 col 2 with file2 col 1","join -t ',' file1.csv file2.csv # Join CSV files","join -a 1 file1 file2 # Left outer join"]};function N(i,s){return s?i.split(s):i.split(/[ \t]+/).filter(n=>n.length>0)}function F(i,s,n,f){let e=N(i,s),r=e[n-1]??"";return f&&(r=r.toLowerCase()),{fields:e,joinKey:r,original:i}}function m(i,s,n){let f=n.separator??" ";if(n.outputFormat){let o=[];for(let{file:c,field:p}of n.outputFormat){let a=c===1?i:s;a&&p===0?o.push(a.joinKey):a&&a.fields[p-1]!==void 0?o.push(a.fields[p-1]):o.push(n.emptyString)}return o.join(f)}let e=[],r=i?.joinKey??s?.joinKey??"";if(e.push(r),i)for(let o=0;o<i.fields.length;o++)o!==n.field1-1&&e.push(i.fields[o]);if(s)for(let o=0;o<s.fields.length;o++)o!==n.field2-1&&e.push(s.fields[o]);return e.join(f)}function I(i){let s=i.split(","),n=[];for(let f of s){let e=f.trim().match(/^(\d+)\.(\d+)$/);if(!e)return null;let r=Number.parseInt(e[1],10),o=Number.parseInt(e[2],10);if(r!==1&&r!==2)return null;n.push({file:r,field:o})}return n}var w={name:"join",execute:async(i,s)=>{if(y(i))return j(v);let n={field1:1,field2:1,separator:null,printUnpairable:new Set,onlyUnpairable:new Set,emptyString:"",outputFormat:null,ignoreCase:!1},f=[],e=0;for(;e<i.length;){let t=i[e];if(t==="-1"&&e+1<i.length){let l=Number.parseInt(i[e+1],10);if(Number.isNaN(l)||l<1)return{exitCode:1,stdout:"",stderr:`join: invalid field number: '${i[e+1]}'
2
- `};n.field1=l,e+=2}else if(t==="-2"&&e+1<i.length){let l=Number.parseInt(i[e+1],10);if(Number.isNaN(l)||l<1)return{exitCode:1,stdout:"",stderr:`join: invalid field number: '${i[e+1]}'
3
- `};n.field2=l,e+=2}else if((t==="-t"||t==="--field-separator")&&e+1<i.length)n.separator=i[e+1],e+=2;else if(t.startsWith("-t")&&t.length>2)n.separator=t.slice(2),e++;else if(t==="-a"&&e+1<i.length){let l=Number.parseInt(i[e+1],10);if(l!==1&&l!==2)return{exitCode:1,stdout:"",stderr:`join: invalid file number: '${i[e+1]}'
4
- `};n.printUnpairable.add(l),e+=2}else if(t.match(/^-a[12]$/))n.printUnpairable.add(Number.parseInt(t[2],10)),e++;else if(t==="-v"&&e+1<i.length){let l=Number.parseInt(i[e+1],10);if(l!==1&&l!==2)return{exitCode:1,stdout:"",stderr:`join: invalid file number: '${i[e+1]}'
5
- `};n.onlyUnpairable.add(l),e+=2}else if(t.match(/^-v[12]$/))n.onlyUnpairable.add(Number.parseInt(t[2],10)),e++;else if(t==="-e"&&e+1<i.length)n.emptyString=i[e+1],e+=2;else if(t==="-o"&&e+1<i.length){let l=I(i[e+1]);if(!l)return{exitCode:1,stdout:"",stderr:`join: invalid field spec: '${i[e+1]}'
6
- `};n.outputFormat=l,e+=2}else if(t==="-i"||t==="--ignore-case")n.ignoreCase=!0,e++;else if(t==="--"){f.push(...i.slice(e+1));break}else{if(t.startsWith("-")&&t!=="-")return g("join",t);f.push(t),e++}}if(f.length!==2)return{exitCode:1,stdout:"",stderr:f.length<2?`join: missing file operand
7
- `:`join: extra operand
8
- `};let r=[];for(let t of f)if(t==="-")r.push(s.stdin??"");else{let l=s.fs.resolvePath(s.cwd,t),u=await s.fs.readFile(l);if(u===null)return{exitCode:1,stdout:"",stderr:`join: ${t}: No such file or directory
9
- `};r.push(u)}let o=(t,l)=>{let u=t.split(`
10
- `);return t.endsWith(`
11
- `)&&u[u.length-1]===""&&u.pop(),u.filter(h=>h.length>0).map(h=>F(h,n.separator,l,n.ignoreCase))},c=o(r[0],n.field1),p=o(r[1],n.field2),a=new Map;for(let t of p){let l=a.get(t.joinKey);l?l.push(t):a.set(t.joinKey,[t])}let d=[],b=new Set;for(let t of c){let l=a.get(t.joinKey);if(l&&l.length>0){if(b.add(t.joinKey),n.onlyUnpairable.size===0)for(let u of l)d.push(m(t,u,n))}else(n.printUnpairable.has(1)||n.onlyUnpairable.has(1))&&d.push(m(t,null,n))}if(n.printUnpairable.has(2)||n.onlyUnpairable.has(2))for(let t of p)b.has(t.joinKey)||d.push(m(null,t,n));return{exitCode:0,stdout:d.length>0?`${d.join(`
12
- `)}
13
- `:"",stderr:""}}},U={name:"join",flags:[{flag:"-1",type:"value",valueHint:"number"},{flag:"-2",type:"value",valueHint:"number"},{flag:"-t",type:"value",valueHint:"delimiter"},{flag:"-a",type:"value",valueHint:"number"},{flag:"-v",type:"value",valueHint:"number"},{flag:"-e",type:"value",valueHint:"string"},{flag:"-o",type:"value",valueHint:"format"},{flag:"-i",type:"boolean"}],needsArgs:!0,minArgs:2};export{w as a,U as b};
@@ -1,5 +0,0 @@
1
- import{a as r,b as m}from"./chunk-74CEPOFO.js";var p={name:"basename",summary:"strip directory and suffix from filenames",usage:`basename NAME [SUFFIX]
2
- basename OPTION... NAME...`,options:["-a, --multiple support multiple arguments","-s, --suffix=SUFFIX remove a trailing SUFFIX"," --help display this help and exit"]},c={name:"basename",async execute(n,u){if(m(n))return r(p);let l=!1,s="",a=[];for(let t=0;t<n.length;t++){let e=n[t];e==="-a"||e==="--multiple"?l=!0:e==="-s"&&t+1<n.length?(s=n[++t],l=!0):e.startsWith("--suffix=")?(s=e.slice(9),l=!0):e.startsWith("-")||a.push(e)}if(a.length===0)return{stdout:"",stderr:`basename: missing operand
3
- `,exitCode:1};!l&&a.length>=2&&(s=a.pop()??"");let o=[];for(let t of a){let e=t.replace(/\/+$/,""),i=e.split("/").pop()||e;s&&i.endsWith(s)&&(i=i.slice(0,-s.length)),o.push(i)}return{stdout:`${o.join(`
4
- `)}
5
- `,stderr:"",exitCode:0}}},h={name:"basename",flags:[{flag:"-a",type:"boolean"},{flag:"-s",type:"value",valueHint:"string"}],needsArgs:!0};export{c as a,h as b};
@@ -1 +0,0 @@
1
- import{a as m}from"./chunk-EIZGF4BS.js";var s=m("md5sum","md5","compute MD5 message digest"),o={name:"md5sum",flags:[{flag:"-c",type:"boolean"}],needsFiles:!0};export{s as a,o as b};
@@ -1,10 +0,0 @@
1
- import{a as w,b as h}from"./chunk-CWQS3NFK.js";import{a as T,b as g}from"./chunk-A5O5YHGN.js";import{a as F}from"./chunk-IPJHKYVM.js";import{a as m}from"./chunk-3THT3N7L.js";var n={NOOP:0,READ_FILE:1,WRITE_FILE:2,STAT:3,READDIR:4,MKDIR:5,RM:6,EXISTS:7,APPEND_FILE:8,SYMLINK:9,READLINK:10,LSTAT:11,CHMOD:12,REALPATH:13,RENAME:14,COPY_FILE:15,WRITE_STDOUT:100,WRITE_STDERR:101,EXIT:102,HTTP_REQUEST:200,EXEC_COMMAND:300,INVOKE_TOOL:400},r={PENDING:0,READY:1,SUCCESS:2,ERROR:3},l={NONE:0,NOT_FOUND:1,IS_DIRECTORY:2,NOT_DIRECTORY:3,EXISTS:4,PERMISSION_DENIED:5,INVALID_PATH:6,IO_ERROR:7,TIMEOUT:8,NETWORK_ERROR:9,NETWORK_NOT_CONFIGURED:10},o={OP_CODE:0,STATUS:4,PATH_LENGTH:8,DATA_LENGTH:12,RESULT_LENGTH:16,ERROR_CODE:20,FLAGS:24,MODE:28,PATH_BUFFER:32,DATA_BUFFER:4128},p={CONTROL_REGION:32,PATH_BUFFER:4096,DATA_BUFFER:1048576,TOTAL:1052704},S={NONE:0,RECURSIVE:1,FORCE:2,MKDIR_RECURSIVE:1},u={IS_FILE:0,IS_DIRECTORY:1,IS_SYMLINK:2,MODE:4,SIZE:8,MTIME:16,TOTAL:24};function _(){return new w(p.TOTAL)}var R=class{int32View;uint8View;dataView;constructor(t){this.int32View=new Int32Array(t),this.uint8View=new Uint8Array(t),this.dataView=new DataView(t)}getOpCode(){return h.load(this.int32View,o.OP_CODE/4)}setOpCode(t){h.store(this.int32View,o.OP_CODE/4,t)}getStatus(){return h.load(this.int32View,o.STATUS/4)}setStatus(t){h.store(this.int32View,o.STATUS/4,t)}getPathLength(){return h.load(this.int32View,o.PATH_LENGTH/4)}setPathLength(t){h.store(this.int32View,o.PATH_LENGTH/4,t)}getDataLength(){return h.load(this.int32View,o.DATA_LENGTH/4)}setDataLength(t){h.store(this.int32View,o.DATA_LENGTH/4,t)}getResultLength(){return h.load(this.int32View,o.RESULT_LENGTH/4)}setResultLength(t){h.store(this.int32View,o.RESULT_LENGTH/4,t)}getErrorCode(){return h.load(this.int32View,o.ERROR_CODE/4)}setErrorCode(t){h.store(this.int32View,o.ERROR_CODE/4,t)}getFlags(){return h.load(this.int32View,o.FLAGS/4)}setFlags(t){h.store(this.int32View,o.FLAGS/4,t)}getMode(){return h.load(this.int32View,o.MODE/4)}setMode(t){h.store(this.int32View,o.MODE/4,t)}getPath(){let t=this.getPathLength(),e=this.uint8View.slice(o.PATH_BUFFER,o.PATH_BUFFER+t);return new TextDecoder().decode(e)}setPath(t){let e=new TextEncoder().encode(t);if(e.length>p.PATH_BUFFER)throw new Error(`Path too long: ${e.length} > ${p.PATH_BUFFER}`);this.uint8View.set(e,o.PATH_BUFFER),this.setPathLength(e.length)}getData(){let t=this.getDataLength();return this.uint8View.slice(o.DATA_BUFFER,o.DATA_BUFFER+t)}setData(t){if(t.length>p.DATA_BUFFER)throw new Error(`Data too large: ${t.length} > ${p.DATA_BUFFER}`);this.uint8View.set(t,o.DATA_BUFFER),this.setDataLength(t.length)}getDataAsString(){let t=this.getData();return new TextDecoder().decode(t)}setDataFromString(t){let e=new TextEncoder().encode(t);this.setData(e)}getResult(){let t=this.getResultLength();return this.uint8View.slice(o.DATA_BUFFER,o.DATA_BUFFER+t)}setResult(t){if(t.length>p.DATA_BUFFER)throw new Error(`Result too large: ${t.length} > ${p.DATA_BUFFER}`);this.uint8View.set(t,o.DATA_BUFFER),this.setResultLength(t.length)}getResultAsString(){let t=this.getResult();return new TextDecoder().decode(t)}setResultFromString(t){let e=new TextEncoder().encode(t);this.setResult(e)}encodeStat(t){this.uint8View[o.DATA_BUFFER+u.IS_FILE]=t.isFile?1:0,this.uint8View[o.DATA_BUFFER+u.IS_DIRECTORY]=t.isDirectory?1:0,this.uint8View[o.DATA_BUFFER+u.IS_SYMLINK]=t.isSymbolicLink?1:0,this.dataView.setInt32(o.DATA_BUFFER+u.MODE,t.mode,!0);let e=Math.min(t.size,Number.MAX_SAFE_INTEGER);this.dataView.setFloat64(o.DATA_BUFFER+u.SIZE,e,!0),this.dataView.setFloat64(o.DATA_BUFFER+u.MTIME,t.mtime.getTime(),!0),this.setResultLength(u.TOTAL)}decodeStat(){return{isFile:this.uint8View[o.DATA_BUFFER+u.IS_FILE]===1,isDirectory:this.uint8View[o.DATA_BUFFER+u.IS_DIRECTORY]===1,isSymbolicLink:this.uint8View[o.DATA_BUFFER+u.IS_SYMLINK]===1,mode:this.dataView.getInt32(o.DATA_BUFFER+u.MODE,!0),size:this.dataView.getFloat64(o.DATA_BUFFER+u.SIZE,!0),mtime:new Date(this.dataView.getFloat64(o.DATA_BUFFER+u.MTIME,!0))}}waitForReady(t){return h.wait(this.int32View,o.STATUS/4,r.PENDING,t)}waitForReadyAsync(t){return h.waitAsync(this.int32View,o.STATUS/4,r.PENDING,t)}async waitUntilReady(t){let e=Date.now();for(;;){let a=this.getStatus();if(a===r.READY)return!0;let s=Date.now()-e;if(s>=t)return!1;let i=t-s,c=h.waitAsync(this.int32View,o.STATUS/4,a,i);if(c.async&&await c.value==="timed-out")return!1}}waitForResult(t){return h.wait(this.int32View,o.STATUS/4,r.READY,t)}notify(){return h.notify(this.int32View,o.STATUS/4)}reset(){this.setOpCode(n.NOOP),this.setStatus(r.PENDING),this.setPathLength(0),this.setDataLength(0),this.setResultLength(0),this.setErrorCode(l.NONE),this.setFlags(S.NONE),this.setMode(0)}};var O=class{fs;cwd;commandName;secureFetch;maxOutputSize;exec;invokeTool;protocol;running=!1;output={stdout:"",stderr:"",exitCode:0};outputLimitExceeded=!1;startTime=0;timeoutMs=0;constructor(t,e,a,s,i=void 0,c=0,d=void 0,E=void 0){this.fs=e,this.cwd=a,this.commandName=s,this.secureFetch=i,this.maxOutputSize=c,this.exec=d,this.invokeTool=E,this.protocol=new R(t)}remainingMs(){return Math.max(0,this.timeoutMs-(Date.now()-this.startTime))}raceDeadline(t){let e=this.remainingMs();if(e<=0)return this.running=!1,this.output.exitCode=124,this.output.stderr+=`
2
- ${this.commandName}: execution timeout exceeded
3
- `,Promise.reject(new Error("Operation timed out"));let a=t();return new Promise((s,i)=>{let c=T(()=>{this.running=!1,this.output.exitCode=124,this.output.stderr+=`
4
- ${this.commandName}: execution timeout exceeded
5
- `,i(new Error("Operation timed out"))},e);a.then(d=>{g(c),s(d)},d=>{g(c),i(d)})})}async run(t){for(this.running=!0,this.startTime=Date.now(),this.timeoutMs=t;this.running;){if(Date.now()-this.startTime>=t){this.output.stderr+=`
6
- ${this.commandName}: execution timeout exceeded
7
- `,this.output.exitCode=124;break}let a=this.remainingMs();if(!await this.protocol.waitUntilReady(a)){this.output.stderr+=`
8
- ${this.commandName}: execution timeout exceeded
9
- `,this.output.exitCode=124;break}let i=this.protocol.getOpCode();await this.handleOperation(i),this.protocol.notify()}return this.output}stop(){this.running=!1}async handleOperation(t){try{switch(t){case n.READ_FILE:await this.handleReadFile();break;case n.WRITE_FILE:await this.handleWriteFile();break;case n.STAT:await this.handleStat();break;case n.LSTAT:await this.handleLstat();break;case n.READDIR:await this.handleReaddir();break;case n.MKDIR:await this.handleMkdir();break;case n.RM:await this.handleRm();break;case n.EXISTS:await this.handleExists();break;case n.APPEND_FILE:await this.handleAppendFile();break;case n.SYMLINK:await this.handleSymlink();break;case n.READLINK:await this.handleReadlink();break;case n.CHMOD:await this.handleChmod();break;case n.REALPATH:await this.handleRealpath();break;case n.RENAME:await this.handleRename();break;case n.COPY_FILE:await this.handleCopyFile();break;case n.WRITE_STDOUT:this.handleWriteStdout();break;case n.WRITE_STDERR:this.handleWriteStderr();break;case n.EXIT:this.handleExit();break;case n.HTTP_REQUEST:await this.handleHttpRequest();break;case n.EXEC_COMMAND:await this.handleExecCommand();break;case n.INVOKE_TOOL:await this.handleInvokeTool();break;default:this.protocol.setErrorCode(l.IO_ERROR),this.protocol.setStatus(r.ERROR)}}catch(e){this.setErrorFromException(e)}}resolvePath(t){return this.fs.resolvePath(this.cwd,t)}async handleReadFile(){let t=this.resolvePath(this.protocol.getPath());try{let e=await this.fs.readFileBuffer(t);this.protocol.setResult(e),this.protocol.setStatus(r.SUCCESS)}catch(e){this.setErrorFromException(e)}}async handleWriteFile(){let t=this.resolvePath(this.protocol.getPath()),e=this.protocol.getData();try{await this.fs.writeFile(t,e),this.protocol.setStatus(r.SUCCESS)}catch(a){this.setErrorFromException(a)}}async handleStat(){let t=this.resolvePath(this.protocol.getPath());try{let e=await this.fs.stat(t);this.protocol.encodeStat(e),this.protocol.setStatus(r.SUCCESS)}catch(e){this.setErrorFromException(e)}}async handleLstat(){let t=this.resolvePath(this.protocol.getPath());try{let e=await this.fs.lstat(t);this.protocol.encodeStat(e),this.protocol.setStatus(r.SUCCESS)}catch(e){this.setErrorFromException(e)}}async handleReaddir(){let t=this.resolvePath(this.protocol.getPath());try{let e=await this.fs.readdir(t);this.protocol.setResultFromString(JSON.stringify(e)),this.protocol.setStatus(r.SUCCESS)}catch(e){this.setErrorFromException(e)}}async handleMkdir(){let t=this.resolvePath(this.protocol.getPath()),a=(this.protocol.getFlags()&S.MKDIR_RECURSIVE)!==0;try{await this.fs.mkdir(t,{recursive:a}),this.protocol.setStatus(r.SUCCESS)}catch(s){this.setErrorFromException(s)}}async handleRm(){let t=this.resolvePath(this.protocol.getPath()),e=this.protocol.getFlags(),a=(e&S.RECURSIVE)!==0,s=(e&S.FORCE)!==0;try{await this.fs.rm(t,{recursive:a,force:s}),this.protocol.setStatus(r.SUCCESS)}catch(i){this.setErrorFromException(i)}}async handleExists(){let t=this.resolvePath(this.protocol.getPath());try{let e=await this.fs.exists(t);this.protocol.setResult(new Uint8Array([e?1:0])),this.protocol.setStatus(r.SUCCESS)}catch(e){this.setErrorFromException(e)}}async handleAppendFile(){let t=this.resolvePath(this.protocol.getPath()),e=this.protocol.getData();try{await this.fs.appendFile(t,e),this.protocol.setStatus(r.SUCCESS)}catch(a){this.setErrorFromException(a)}}async handleSymlink(){let t=this.protocol.getPath(),e=this.protocol.getDataAsString(),a=this.resolvePath(t);try{await this.fs.symlink(e,a),this.protocol.setStatus(r.SUCCESS)}catch(s){this.setErrorFromException(s)}}async handleReadlink(){let t=this.resolvePath(this.protocol.getPath());try{let e=await this.fs.readlink(t);this.protocol.setResultFromString(e),this.protocol.setStatus(r.SUCCESS)}catch(e){this.setErrorFromException(e)}}async handleChmod(){let t=this.resolvePath(this.protocol.getPath()),e=this.protocol.getMode();try{await this.fs.chmod(t,e),this.protocol.setStatus(r.SUCCESS)}catch(a){this.setErrorFromException(a)}}async handleRealpath(){let t=this.resolvePath(this.protocol.getPath());try{let e=await this.fs.realpath(t);this.protocol.setResultFromString(e),this.protocol.setStatus(r.SUCCESS)}catch(e){this.setErrorFromException(e)}}async handleRename(){let t=this.resolvePath(this.protocol.getPath()),e=this.resolvePath(this.protocol.getDataAsString());try{await this.fs.mv(t,e),this.protocol.setStatus(r.SUCCESS)}catch(a){this.setErrorFromException(a)}}async handleCopyFile(){let t=this.resolvePath(this.protocol.getPath()),e=this.resolvePath(this.protocol.getDataAsString());try{await this.fs.cp(t,e),this.protocol.setStatus(r.SUCCESS)}catch(a){this.setErrorFromException(a)}}handleWriteStdout(){let t=this.protocol.getDataAsString();if(!this.tryAppendOutput("stdout",t)){this.outputLimitExceeded=!0,this.output.exitCode=1,this.appendOutputLimitError(),this.protocol.setErrorCode(l.IO_ERROR),this.protocol.setResultFromString("Output size limit exceeded"),this.protocol.setStatus(r.ERROR);return}this.protocol.setStatus(r.SUCCESS)}handleWriteStderr(){let t=this.protocol.getDataAsString();if(!this.tryAppendOutput("stderr",t)){this.outputLimitExceeded=!0,this.output.exitCode=1,this.appendOutputLimitError(),this.protocol.setErrorCode(l.IO_ERROR),this.protocol.setResultFromString("Output size limit exceeded"),this.protocol.setStatus(r.ERROR);return}this.protocol.setStatus(r.SUCCESS)}handleExit(){let t=this.protocol.getFlags();this.outputLimitExceeded?this.output.exitCode===0&&(this.output.exitCode=1):this.output.exitCode=t,this.protocol.setStatus(r.SUCCESS),this.running=!1}tryAppendOutput(t,e){return this.outputLimitExceeded?!1:this.maxOutputSize<=0?(t==="stdout"?this.output.stdout+=e:this.output.stderr+=e,!0):this.output.stdout.length+this.output.stderr.length+e.length>this.maxOutputSize?!1:(t==="stdout"?this.output.stdout+=e:this.output.stderr+=e,!0)}appendOutputLimitError(){if(this.maxOutputSize<=0)return;let t=`${this.commandName}: total output size exceeded (>${this.maxOutputSize} bytes), increase executionLimits.maxOutputSize
10
- `,e=t.length>this.maxOutputSize?t.slice(0,this.maxOutputSize):t;if(this.output.stderr.includes("total output size exceeded"))return;let s=this.output.stdout.length+this.output.stderr.length+e.length-this.maxOutputSize;if(s>0)if(this.output.stdout.length>=s)this.output.stdout=this.output.stdout.slice(0,this.output.stdout.length-s);else{let i=s-this.output.stdout.length;this.output.stdout="",i>=this.output.stderr.length?this.output.stderr="":this.output.stderr=this.output.stderr.slice(0,this.output.stderr.length-i)}this.output.stderr+=e}async handleHttpRequest(){let t=this.secureFetch;if(!t){this.protocol.setErrorCode(l.NETWORK_NOT_CONFIGURED),this.protocol.setResultFromString("Network access not configured. Enable network in Bash options."),this.protocol.setStatus(r.ERROR);return}let e=this.protocol.getPath(),a=this.protocol.getDataAsString();try{let s=a?JSON.parse(a):{},i=this.remainingMs(),c=await this.raceDeadline(()=>t(e,{method:s.method,headers:s.headers,body:s.body,timeoutMs:i})),d=JSON.stringify({status:c.status,statusText:c.statusText,headers:c.headers,body:c.body,url:c.url});this.protocol.setResultFromString(d),this.protocol.setStatus(r.SUCCESS)}catch(s){let i=m(s instanceof Error?s.message:String(s));this.protocol.setErrorCode(l.NETWORK_ERROR),this.protocol.setResultFromString(i),this.protocol.setStatus(r.ERROR)}}async handleExecCommand(){let t=this.exec;if(!t){this.protocol.setErrorCode(l.IO_ERROR),this.protocol.setResultFromString("Command execution not available in this context."),this.protocol.setStatus(r.ERROR);return}let e=this.protocol.getPath(),a=this.protocol.getDataAsString(),s=new AbortController;try{let i={cwd:this.cwd,signal:s.signal};if(a){let E=JSON.parse(a);E.stdin&&(i.stdin=E.stdin),E.args&&Array.isArray(E.args)&&(i.args=E.args.map(D=>String(D)),e=F([e]))}let c=await this.raceDeadline(()=>t(e,i)),d=JSON.stringify({stdout:c.stdout,stderr:c.stderr,exitCode:c.exitCode});this.protocol.setResultFromString(d),this.protocol.setStatus(r.SUCCESS)}catch(i){s.abort();let c=i instanceof Error?i.message:String(i);this.protocol.setErrorCode(l.IO_ERROR),this.protocol.setResultFromString(c),this.protocol.setStatus(r.ERROR)}}async handleInvokeTool(){let t=this.invokeTool;if(!t){this.protocol.setErrorCode(l.IO_ERROR),this.protocol.setResultFromString("Tool invocation not available in this context."),this.protocol.setStatus(r.ERROR);return}let e=this.protocol.getPath(),a=this.protocol.getDataAsString();try{let s=await this.raceDeadline(()=>t(e,a));this.protocol.setResultFromString(s),this.protocol.setStatus(r.SUCCESS)}catch(s){let i=s instanceof Error?s.message:String(s);this.protocol.setErrorCode(l.IO_ERROR),this.protocol.setResultFromString(i),this.protocol.setStatus(r.ERROR)}}setErrorFromException(t){let e=t instanceof Error?t.message:String(t),a=m(e),s=l.IO_ERROR,i=e.toLowerCase();i.includes("no such file")||i.includes("not found")||i.includes("enoent")?s=l.NOT_FOUND:i.includes("is a directory")||i.includes("eisdir")?s=l.IS_DIRECTORY:i.includes("not a directory")||i.includes("enotdir")?s=l.NOT_DIRECTORY:i.includes("already exists")||i.includes("eexist")?s=l.EXISTS:(i.includes("permission")||i.includes("eperm")||i.includes("eacces"))&&(s=l.PERMISSION_DENIED),this.protocol.setErrorCode(s),this.protocol.setResultFromString(a),this.protocol.setStatus(r.ERROR)}};export{_ as a,O as b};
@@ -1,5 +0,0 @@
1
- import{a as g,b as A,c as T,d as at,e as E,g as O,h as G}from"./chunk-7TSDKFEO.js";import{a as X,c as lt}from"./chunk-OJDRYQWQ.js";import{a as yt}from"./chunk-24IMIIXA.js";import{a as R}from"./chunk-YNYSPYQ5.js";import{k as B}from"./chunk-GFQRA5P5.js";function W(t,r,e,n,p,o,u,c,s,f){switch(r){case"sort":return Array.isArray(t)?[[...t].sort(u)]:[null];case"sort_by":return!Array.isArray(t)||e.length===0?[null]:[[...t].sort((h,a)=>{let y=p(h,e[0],n)[0],l=p(a,e[0],n)[0];return u(y,l)})];case"bsearch":{if(!Array.isArray(t)){let h=t===null?"null":typeof t=="object"?"object":typeof t;throw new Error(`${h} (${JSON.stringify(t)}) cannot be searched from`)}return e.length===0?[null]:p(t,e[0],n).map(h=>{let a=0,y=t.length;for(;a<y;){let l=a+y>>>1;u(t[l],h)<0?a=l+1:y=l}return a<t.length&&u(t[a],h)===0?a:-a-1})}case"unique_by":{if(!Array.isArray(t)||e.length===0)return[null];let i=new Map;for(let a of t){let y=p(a,e[0],n)[0],l=JSON.stringify(y);i.has(l)||i.set(l,{item:a,key:y})}let h=[...i.values()];return h.sort((a,y)=>u(a.key,y.key)),[h.map(a=>a.item)]}case"group_by":{if(!Array.isArray(t)||e.length===0)return[null];let i=new Map;for(let h of t){let a=JSON.stringify(p(h,e[0],n)[0]);i.has(a)||i.set(a,[]),i.get(a)?.push(h)}return[[...i.values()]]}case"max":return Array.isArray(t)&&t.length>0?[t.reduce((i,h)=>u(i,h)>0?i:h)]:[null];case"max_by":return!Array.isArray(t)||t.length===0||e.length===0?[null]:[t.reduce((i,h)=>{let a=p(i,e[0],n)[0],y=p(h,e[0],n)[0];return u(a,y)>0?i:h})];case"min":return Array.isArray(t)&&t.length>0?[t.reduce((i,h)=>u(i,h)<0?i:h)]:[null];case"min_by":return!Array.isArray(t)||t.length===0||e.length===0?[null]:[t.reduce((i,h)=>{let a=p(i,e[0],n)[0],y=p(h,e[0],n)[0];return u(a,y)<0?i:h})];case"add":{let i=h=>{let a=h.filter(y=>y!==null);return a.length===0?null:a.every(y=>typeof y=="number")?a.reduce((y,l)=>y+l,0):a.every(y=>typeof y=="string")?a.join(""):a.every(y=>Array.isArray(y))?a.flat():a.every(y=>y&&typeof y=="object"&&!Array.isArray(y))?lt(...a):null};if(e.length>=1){let h=p(t,e[0],n);return[i(h)]}return Array.isArray(t)?[i(t)]:[null]}case"any":{if(e.length>=2){try{let i=o(t,e[0],n);for(let h of i)if(p(h,e[1],n).some(c))return[!0]}catch(i){if(i instanceof f)throw i}return[!1]}return e.length===1?Array.isArray(t)?[t.some(i=>c(p(i,e[0],n)[0]))]:[!1]:Array.isArray(t)?[t.some(c)]:[!1]}case"all":{if(e.length>=2){try{let i=o(t,e[0],n);for(let h of i)if(!p(h,e[1],n).some(c))return[!1]}catch(i){if(i instanceof f)throw i}return[!0]}return e.length===1?Array.isArray(t)?[t.every(i=>c(p(i,e[0],n)[0]))]:[!0]:Array.isArray(t)?[t.every(c)]:[!0]}case"select":return e.length===0?[t]:p(t,e[0],n).some(c)?[t]:[];case"map":return e.length===0||!Array.isArray(t)?[null]:[t.flatMap(h=>p(h,e[0],n))];case"map_values":{if(e.length===0)return[null];if(Array.isArray(t))return[t.flatMap(i=>p(i,e[0],n))];if(t&&typeof t=="object"){let i=Object.create(null);for(let[h,a]of Object.entries(t)){if(!g(h))continue;let y=p(a,e[0],n);y.length>0&&A(i,h,y[0])}return[i]}return[null]}case"has":{if(e.length===0)return[!1];let h=p(t,e[0],n)[0];return Array.isArray(t)&&typeof h=="number"?[h>=0&&h<t.length]:t&&typeof t=="object"&&typeof h=="string"?[T(t,h)]:[!1]}case"in":{if(e.length===0)return[!1];let h=p(t,e[0],n)[0];return Array.isArray(h)&&typeof t=="number"?[t>=0&&t<h.length]:h&&typeof h=="object"&&typeof t=="string"?[T(h,t)]:[!1]}case"contains":{if(e.length===0)return[!1];let i=p(t,e[0],n);return[s(t,i[0])]}case"inside":{if(e.length===0)return[!1];let i=p(t,e[0],n);return[s(i[0],t)]}default:return null}}function z(t,r,e,n,p,o,u,c){switch(r){case"first":if(e.length>0)try{let s=o(t,e[0],n);return s.length>0?[s[0]]:[]}catch(s){if(s instanceof c)throw s;return[]}return Array.isArray(t)&&t.length>0?[t[0]]:[null];case"last":if(e.length>0){let s=p(t,e[0],n);return s.length>0?[s[s.length-1]]:[]}return Array.isArray(t)&&t.length>0?[t[t.length-1]]:[null];case"nth":{if(e.length<1)return[null];let s=p(t,e[0],n);if(e.length>1){for(let i of s)if(i<0)throw new Error("nth doesn't support negative indices");let f;try{f=o(t,e[1],n)}catch(i){if(i instanceof c)throw i;f=[]}return s.flatMap(i=>{let h=i;return h<f.length?[f[h]]:[]})}return Array.isArray(t)?s.flatMap(f=>{let i=f;if(i<0)throw new Error("nth doesn't support negative indices");return i<t.length?[t[i]]:[null]}):[null]}case"range":{if(e.length===0)return[];let s=Math.max(n.limits.maxIterations*100,1e6),f=l=>l.length>=s,i=p(t,e[0],n);if(e.length===1){let l=[];for(let m of i){let b=m;for(let w=0;w<b;w++)if(l.push(w),f(l))return l}return l}let h=p(t,e[1],n);if(e.length===2){let l=[];for(let m of i)for(let b of h){let w=m,k=b;for(let N=w;N<k;N++)if(l.push(N),f(l))return l}return l}let a=p(t,e[2],n),y=[];for(let l of i)for(let m of h)for(let b of a){let w=l,k=m,N=b;if(N!==0){if(N>0){for(let C=w;C<k;C+=N)if(y.push(C),f(y))return y}else for(let C=w;C>k;C+=N)if(y.push(C),f(y))return y}}return y}case"limit":return e.length<2?[]:p(t,e[0],n).flatMap(f=>{let i=f;if(i<0)throw new Error("limit doesn't support negative count");if(i===0)return[];let h;try{h=o(t,e[1],n)}catch(a){if(a instanceof c)throw a;h=[]}return h.slice(0,i)});case"isempty":{if(e.length<1)return[!0];try{return[o(t,e[0],n).length===0]}catch(s){if(s instanceof c)throw s;return[!0]}}case"isvalid":{if(e.length<1)return[!0];try{return[p(t,e[0],n).length>0]}catch(s){if(s instanceof c)throw s;return[!1]}}case"skip":return e.length<2?[]:p(t,e[0],n).flatMap(f=>{let i=f;if(i<0)throw new Error("skip doesn't support negative count");return p(t,e[1],n).slice(i)});case"until":{if(e.length<2)return[t];let s=t,f=n.limits.maxIterations;for(let i=0;i<f;i++){if(p(s,e[0],n).some(u))return[s];let a=p(s,e[1],n);if(a.length===0)return[s];s=a[0]}throw new c(`jq until: too many iterations (${f}), increase executionLimits.maxJqIterations`,"iterations")}case"while":{if(e.length<2)return[t];let s=[],f=t,i=n.limits.maxIterations;for(let h=0;h<i&&p(f,e[0],n).some(u);h++){s.push(f);let y=p(f,e[1],n);if(y.length===0)break;f=y[0]}if(s.length>=i)throw new c(`jq while: too many iterations (${i}), increase executionLimits.maxJqIterations`,"iterations");return s}case"repeat":{if(e.length===0)return[t];let s=[],f=t,i=n.limits.maxIterations;for(let h=0;h<i;h++){s.push(f);let a=p(f,e[0],n);if(a.length===0)break;f=a[0]}if(s.length>=i)throw new c(`jq repeat: too many iterations (${i}), increase executionLimits.maxJqIterations`,"iterations");return s}default:return null}}function Z(t,r,e,n,p){switch(r){case"now":return[Date.now()/1e3];case"gmtime":{if(typeof t!="number")return[null];let o=new Date(t*1e3),u=o.getUTCFullYear(),c=o.getUTCMonth(),s=o.getUTCDate(),f=o.getUTCHours(),i=o.getUTCMinutes(),h=o.getUTCSeconds(),a=o.getUTCDay(),y=Date.UTC(u,0,1),l=Math.floor((o.getTime()-y)/(1440*60*1e3));return[[u,c,s,f,i,h,a,l]]}case"mktime":{if(!Array.isArray(t))throw new Error("mktime requires parsed datetime inputs");let[o,u,c,s=0,f=0,i=0]=t;if(typeof o!="number"||typeof u!="number")throw new Error("mktime requires parsed datetime inputs");let h=Date.UTC(o,u,c??1,s??0,f??0,i??0);return[Math.floor(h/1e3)]}case"strftime":{if(e.length===0)return[null];let u=p(t,e[0],n)[0];if(typeof u!="string")throw new Error("strftime/1 requires a string format");let c;if(typeof t=="number")c=new Date(t*1e3);else if(Array.isArray(t)){let[a,y,l,m=0,b=0,w=0]=t;if(typeof a!="number"||typeof y!="number")throw new Error("strftime/1 requires parsed datetime inputs");c=new Date(Date.UTC(a,y,l??1,m??0,b??0,w??0))}else throw new Error("strftime/1 requires parsed datetime inputs");let s=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],f=["January","February","March","April","May","June","July","August","September","October","November","December"],i=(a,y=2)=>String(a).padStart(y,"0");return[u.replace(/%Y/g,String(c.getUTCFullYear())).replace(/%m/g,i(c.getUTCMonth()+1)).replace(/%d/g,i(c.getUTCDate())).replace(/%H/g,i(c.getUTCHours())).replace(/%M/g,i(c.getUTCMinutes())).replace(/%S/g,i(c.getUTCSeconds())).replace(/%A/g,s[c.getUTCDay()]).replace(/%B/g,f[c.getUTCMonth()]).replace(/%Z/g,"UTC").replace(/%%/g,"%")]}case"strptime":{if(e.length===0)return[null];if(typeof t!="string")throw new Error("strptime/1 requires a string input");let u=p(t,e[0],n)[0];if(typeof u!="string")throw new Error("strptime/1 requires a string format");if(u==="%Y-%m-%dT%H:%M:%SZ"){let s=t.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})Z$/);if(s){let[,f,i,h,a,y,l]=s.map(Number),m=new Date(Date.UTC(f,i-1,h,a,y,l)),b=m.getUTCDay(),w=Date.UTC(f,0,1),k=Math.floor((m.getTime()-w)/(1440*60*1e3));return[[f,i-1,h,a,y,l,b,k]]}}let c=new Date(t);if(!Number.isNaN(c.getTime())){let s=c.getUTCFullYear(),f=c.getUTCMonth(),i=c.getUTCDate(),h=c.getUTCHours(),a=c.getUTCMinutes(),y=c.getUTCSeconds(),l=c.getUTCDay(),m=Date.UTC(s,0,1),b=Math.floor((c.getTime()-m)/(1440*60*1e3));return[[s,f,i,h,a,y,l,b]]}throw new Error(`Cannot parse date: ${t}`)}case"fromdate":{if(typeof t!="string")throw new Error("fromdate requires a string input");let o=new Date(t);if(Number.isNaN(o.getTime()))throw new Error(`date "${t}" does not match format "%Y-%m-%dT%H:%M:%SZ"`);return[Math.floor(o.getTime()/1e3)]}case"todate":{if(typeof t!="number")throw new Error("todate requires a number input");return[new Date(t*1e3).toISOString().replace(/\.\d{3}Z$/,"Z")]}default:return null}}function S(t){return t!==!1&&t!==null}function I(t,r){return JSON.stringify(t)===JSON.stringify(r)}function U(t,r){return typeof t=="number"&&typeof r=="number"?t-r:typeof t=="string"&&typeof r=="string"?t.localeCompare(r):0}function v(t,r){let e=O(t);for(let n of Object.keys(r)){if(!g(n))continue;let p=T(e,n)?E(e[n]):null,o=E(r[n]);p&&o?A(e,n,v(p,o)):A(e,n,r[n])}return e}function D(t,r=3e3){let e=0,n=t;for(;e<r;)if(Array.isArray(n)){if(n.length===0)return e+1;n=n[0],e++}else if(n!==null&&typeof n=="object"){let p=Object.keys(n);if(p.length===0)return e+1;n=n[p[0]],e++}else return e;return e}function $(t,r){let e=c=>c===null?0:typeof c=="boolean"?1:typeof c=="number"?2:typeof c=="string"?3:Array.isArray(c)?4:typeof c=="object"?5:6,n=e(t),p=e(r);if(n!==p)return n-p;if(typeof t=="number"&&typeof r=="number")return t-r;if(typeof t=="string"&&typeof r=="string")return t.localeCompare(r);if(typeof t=="boolean"&&typeof r=="boolean")return(t?1:0)-(r?1:0);if(Array.isArray(t)&&Array.isArray(r)){for(let c=0;c<Math.min(t.length,r.length);c++){let s=$(t[c],r[c]);if(s!==0)return s}return t.length-r.length}let o=E(t),u=E(r);if(o&&u){let c=Object.keys(o).sort(),s=Object.keys(u).sort();for(let f=0;f<Math.min(c.length,s.length);f++){let i=c[f].localeCompare(s[f]);if(i!==0)return i}if(c.length!==s.length)return c.length-s.length;for(let f of c){let i=$(o[f],u[f]);if(i!==0)return i}}return 0}function F(t,r){if(I(t,r))return!0;if(typeof t=="string"&&typeof r=="string")return t.includes(r);if(Array.isArray(t)&&Array.isArray(r))return r.every(p=>t.some(o=>F(o,p)));let e=E(t),n=E(r);return e&&n?Object.keys(n).every(p=>T(e,p)&&F(e[p],n[p])):!1}var Ot=2e3;function tt(t,r,e){switch(r){case"@base64":return typeof t=="string"?typeof Buffer<"u"?[Buffer.from(t,"utf-8").toString("base64")]:[btoa(t)]:[null];case"@base64d":return typeof t=="string"?typeof Buffer<"u"?[Buffer.from(t,"base64").toString("utf-8")]:[atob(t)]:[null];case"@uri":return typeof t=="string"?[encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")]:[null];case"@urid":return typeof t=="string"?[decodeURIComponent(t)]:[null];case"@csv":return Array.isArray(t)?[t.map(p=>{if(p===null)return"";if(typeof p=="boolean")return p?"true":"false";if(typeof p=="number")return String(p);let o=String(p);return o.includes(",")||o.includes('"')||o.includes(`
2
- `)||o.includes("\r")?`"${o.replace(/"/g,'""')}"`:o}).join(",")]:[null];case"@tsv":return Array.isArray(t)?[t.map(n=>String(n??"").replace(/\t/g,"\\t").replace(/\n/g,"\\n")).join(" ")]:[null];case"@json":{let n=e??Ot;return D(t,n+1)>n?[null]:[JSON.stringify(t)]}case"@html":return typeof t=="string"?[t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&apos;").replace(/"/g,"&quot;")]:[null];case"@sh":return typeof t=="string"?[`'${t.replace(/'/g,"'\\''")}'`]:[null];case"@text":return typeof t=="string"?[t]:t==null?[""]:[String(t)];default:return null}}function et(t,r,e,n,p,o){switch(r){case"index":return e.length===0?[null]:p(t,e[0],n).map(c=>{if(typeof t=="string"&&typeof c=="string"){if(c===""&&t==="")return null;let s=t.indexOf(c);return s>=0?s:null}if(Array.isArray(t)){if(Array.isArray(c)){for(let f=0;f<=t.length-c.length;f++){let i=!0;for(let h=0;h<c.length;h++)if(!o(t[f+h],c[h])){i=!1;break}if(i)return f}return null}let s=t.findIndex(f=>o(f,c));return s>=0?s:null}return null});case"rindex":return e.length===0?[null]:p(t,e[0],n).map(c=>{if(typeof t=="string"&&typeof c=="string"){let s=t.lastIndexOf(c);return s>=0?s:null}if(Array.isArray(t)){if(Array.isArray(c)){for(let s=t.length-c.length;s>=0;s--){let f=!0;for(let i=0;i<c.length;i++)if(!o(t[s+i],c[i])){f=!1;break}if(f)return s}return null}for(let s=t.length-1;s>=0;s--)if(o(t[s],c))return s;return null}return null});case"indices":return e.length===0?[[]]:p(t,e[0],n).map(c=>{let s=[];if(typeof t=="string"&&typeof c=="string"){let f=t.indexOf(c);for(;f!==-1;)s.push(f),f=t.indexOf(c,f+1)}else if(Array.isArray(t))if(Array.isArray(c)){let f=c.length;if(f===0)for(let i=0;i<=t.length;i++)s.push(i);else for(let i=0;i<=t.length-f;i++){let h=!0;for(let a=0;a<f;a++)if(!o(t[i+a],c[a])){h=!1;break}h&&s.push(i)}}else for(let f=0;f<t.length;f++)o(t[f],c)&&s.push(f);return s});default:return null}}function rt(t,r,e,n,p){switch(r){case"fabs":case"abs":return typeof t=="number"?[Math.abs(t)]:typeof t=="string"?[t]:[null];case"exp10":return typeof t=="number"?[10**t]:[null];case"exp2":return typeof t=="number"?[2**t]:[null];case"pow":{if(e.length<2)return[null];let o=p(t,e[0],n),u=p(t,e[1],n),c=o[0],s=u[0];return typeof c!="number"||typeof s!="number"?[null]:[c**s]}case"atan2":{if(e.length<2)return[null];let o=p(t,e[0],n),u=p(t,e[1],n),c=o[0],s=u[0];return typeof c!="number"||typeof s!="number"?[null]:[Math.atan2(c,s)]}case"hypot":{if(typeof t!="number"||e.length===0)return[null];let o=p(t,e[0],n)[0];return[Math.hypot(t,o)]}case"fma":{if(typeof t!="number"||e.length<2)return[null];let o=p(t,e[0],n)[0],u=p(t,e[1],n)[0];return[t*o+u]}case"copysign":{if(typeof t!="number"||e.length===0)return[null];let o=p(t,e[0],n)[0];return[Math.sign(o)*Math.abs(t)]}case"drem":case"remainder":{if(typeof t!="number"||e.length===0)return[null];let o=p(t,e[0],n)[0];return[t-Math.round(t/o)*o]}case"fdim":{if(typeof t!="number"||e.length===0)return[null];let o=p(t,e[0],n)[0];return[Math.max(0,t-o)]}case"fmax":{if(typeof t!="number"||e.length===0)return[null];let o=p(t,e[0],n)[0];return[Math.max(t,o)]}case"fmin":{if(typeof t!="number"||e.length===0)return[null];let o=p(t,e[0],n)[0];return[Math.min(t,o)]}case"ldexp":{if(typeof t!="number"||e.length===0)return[null];let o=p(t,e[0],n)[0];return[t*2**o]}case"scalbn":case"scalbln":{if(typeof t!="number"||e.length===0)return[null];let o=p(t,e[0],n)[0];return[t*2**o]}case"nearbyint":return typeof t=="number"?[Math.round(t)]:[null];case"logb":return typeof t=="number"?[Math.floor(Math.log2(Math.abs(t)))]:[null];case"significand":if(typeof t=="number"){let o=Math.floor(Math.log2(Math.abs(t)));return[t/2**o]}return[null];case"frexp":if(typeof t=="number"){if(t===0)return[[0,0]];let o=Math.floor(Math.log2(Math.abs(t)))+1;return[[t/2**o,o]]}return[null];case"modf":if(typeof t=="number"){let o=Math.trunc(t);return[[t-o,o]]}return[null];default:return null}}function nt(t,r,e,n,p,o,u,c){switch(r){case"recurse":{if(e.length===0){let y=[],l=m=>{if(y.push(m),Array.isArray(m))for(let b of m)l(b);else if(m&&typeof m=="object")for(let b of Object.keys(m))l(m[b])};return l(t),y}let s=[],f=e.length>=2?e[1]:null,i=1e4,h=0,a=y=>{if(h++>i||f&&!p(y,f,n).some(o))return;s.push(y);let l=p(y,e[0],n);for(let m of l)m!=null&&a(m)};return a(t),s}case"recurse_down":return c(t,"recurse",e,n);case"walk":{if(e.length===0)return[t];let s=new WeakSet,f=i=>{if(i&&typeof i=="object"){if(s.has(i))return i;s.add(i)}let h;if(Array.isArray(i))h=i.map(f);else if(i&&typeof i=="object"){let y=Object.create(null);for(let[l,m]of Object.entries(i))g(l)&&A(y,l,f(m));h=y}else h=i;return p(h,e[0],n)[0]};return[f(t)]}case"transpose":{if(!Array.isArray(t))return[null];if(t.length===0)return[[]];let s=Math.max(...t.map(i=>Array.isArray(i)?i.length:0)),f=[];for(let i=0;i<s;i++)f.push(t.map(h=>Array.isArray(h)?h[i]:null));return[f]}case"combinations":{if(e.length>0){let h=p(t,e[0],n)[0];if(!Array.isArray(t)||h<0)return[];if(h===0)return[[]];let a=[],y=(l,m)=>{if(m===h){a.push([...l]);return}for(let b of t)l.push(b),y(l,m+1),l.pop()};return y([],0),a}if(!Array.isArray(t))return[];if(t.length===0)return[[]];for(let i of t)if(!Array.isArray(i))return[];let s=[],f=(i,h)=>{if(i===t.length){s.push([...h]);return}let a=t[i];for(let y of a)h.push(y),f(i+1,h),h.pop()};return f(0,[]),s}case"parent":{if(n.root===void 0||n.currentPath===void 0)return[];let s=n.currentPath;if(s.length===0)return[];let f=e.length>0?p(t,e[0],n)[0]:1;if(f>=0){if(f>s.length)return[];let i=s.slice(0,s.length-f);return[u(n.root,i)]}else{let i=-f-1;if(i>=s.length)return[t];let h=s.slice(0,i);return[u(n.root,h)]}}case"parents":{if(n.root===void 0||n.currentPath===void 0)return[[]];let s=n.currentPath,f=[];for(let i=s.length-1;i>=0;i--)f.push(u(n.root,s.slice(0,i)));return[f]}case"root":return n.root!==void 0?[n.root]:[];default:return null}}var Nt=2e3;function st(t,r,e,n,p){switch(r){case"keys":return Array.isArray(t)?[t.map((o,u)=>u)]:t&&typeof t=="object"?[Object.keys(t).sort()]:[null];case"keys_unsorted":return Array.isArray(t)?[t.map((o,u)=>u)]:t&&typeof t=="object"?[Object.keys(t)]:[null];case"length":return typeof t=="string"?[t.length]:Array.isArray(t)?[t.length]:t&&typeof t=="object"?[Object.keys(t).length]:t===null?[0]:typeof t=="number"?[Math.abs(t)]:[null];case"utf8bytelength":{if(typeof t=="string")return[new TextEncoder().encode(t).length];let o=t===null?"null":Array.isArray(t)?"array":typeof t,u=o==="array"||o==="object"?JSON.stringify(t):String(t);throw new Error(`${o} (${u}) only strings have UTF-8 byte length`)}case"to_entries":{let o=E(t);return o?[Object.entries(o).map(([u,c])=>({key:u,value:c}))]:[null]}case"from_entries":if(Array.isArray(t)){let o=Object.create(null);for(let u of t){let c=E(u);if(c){let s=c.key??c.Key??c.name??c.Name??c.k,f=c.value??c.Value??c.v;if(s!==void 0){let i=String(s);g(i)&&A(o,i,f)}}}return[o]}return[null];case"with_entries":{if(e.length===0)return[t];let o=E(t);if(o){let c=Object.entries(o).map(([f,i])=>({key:f,value:i})).flatMap(f=>p(f,e[0],n)),s=Object.create(null);for(let f of c){let i=E(f);if(i){let h=i.key??i.name??i.k,a=i.value??i.v;if(h!==void 0){let y=String(h);g(y)&&A(s,y,a)}}}return[s]}return[null]}case"reverse":return Array.isArray(t)?[[...t].reverse()]:typeof t=="string"?[t.split("").reverse().join("")]:[null];case"flatten":return Array.isArray(t)?(e.length>0?p(t,e[0],n):[Number.POSITIVE_INFINITY]).map(u=>{let c=u;if(c<0)throw new Error("flatten depth must not be negative");return t.flat(c)}):[null];case"unique":if(Array.isArray(t)){let o=new Set,u=[];for(let c of t){let s=JSON.stringify(c);o.has(s)||(o.add(s),u.push(c))}return[u]}return[null];case"tojson":case"tojsonstream":{let o=n.limits.maxDepth??Nt;return D(t,o+1)>o?[null]:[JSON.stringify(t)]}case"fromjson":{if(typeof t=="string"){let o=t.trim().toLowerCase();if(o==="nan")return[Number.NaN];if(o==="inf"||o==="infinity")return[Number.POSITIVE_INFINITY];if(o==="-inf"||o==="-infinity")return[Number.NEGATIVE_INFINITY];try{return[at(JSON.parse(t))]}catch{throw new Error(`Invalid JSON: ${t}`)}}return[t]}case"tostring":return typeof t=="string"?[t]:[JSON.stringify(t)];case"tonumber":if(typeof t=="number")return[t];if(typeof t=="string"){let o=Number(t);if(Number.isNaN(o))throw new Error(`${JSON.stringify(t)} cannot be parsed as a number`);return[o]}throw new Error(`${typeof t} cannot be parsed as a number`);case"toboolean":{if(typeof t=="boolean")return[t];if(typeof t=="string"){if(t==="true")return[!0];if(t==="false")return[!1];throw new Error(`string (${JSON.stringify(t)}) cannot be parsed as a boolean`)}let o=t===null?"null":Array.isArray(t)?"array":typeof t,u=o==="array"||o==="object"?JSON.stringify(t):String(t);throw new Error(`${o} (${u}) cannot be parsed as a boolean`)}case"tostream":{let o=[],u=(c,s)=>{if(c===null||typeof c!="object")o.push([s,c]);else if(Array.isArray(c))if(c.length===0)o.push([s,[]]);else for(let f=0;f<c.length;f++)u(c[f],[...s,f]);else{let f=Object.keys(c);if(f.length===0)o.push([s,Object.create(null)]);else for(let i of f)u(c[i],[...s,i])}};return u(t,[]),o.push([[]]),o}case"fromstream":{if(e.length===0)return[t];let o=p(t,e[0],n),u=null;for(let c of o){if(!Array.isArray(c)||c.length===1&&Array.isArray(c[0])&&c[0].length===0||c.length!==2)continue;let[s,f]=c;if(!Array.isArray(s))continue;if(s.length===0){u=f;continue}u===null&&(u=typeof s[0]=="number"?[]:Object.create(null));let i=u;for(let a=0;a<s.length-1;a++){let y=s[a],l=s[a+1];if(Array.isArray(i)&&typeof y=="number"){for(;i.length<=y;)i.push(null);i[y]===null&&(i[y]=typeof l=="number"?[]:Object.create(null)),i=i[y]}else{let m=E(i);if(m){let b=String(y);if(!g(b))continue;(m[b]===null||m[b]===void 0)&&A(m,b,typeof l=="number"?[]:Object.create(null)),i=m[b]}}}let h=s[s.length-1];if(Array.isArray(i)&&typeof h=="number"){for(;i.length<=h;)i.push(null);i[h]=f}else{let a=E(i);if(a){let y=String(h);g(y)&&A(a,y,f)}}}return[u]}case"truncate_stream":{let o=typeof t=="number"?Math.floor(t):0;if(e.length===0)return[];let u=[],c=p(t,e[0],n);for(let s of c)if(Array.isArray(s)){if(s.length===1&&Array.isArray(s[0])){let f=s[0];f.length>o&&u.push([f.slice(o)]);continue}if(s.length===2&&Array.isArray(s[0])){let f=s[0],i=s[1];f.length>o&&u.push([f.slice(o),i])}}return u}default:return null}}function it(t,r,e,n,p,o,u,c,s,f){switch(r){case"getpath":{if(e.length===0)return[null];let i=p(t,e[0],n),h=[];for(let a of i){let y=a,l=t;for(let m of y){if(l==null){l=null;break}if(Array.isArray(l)&&typeof m=="number")l=l[m];else if(typeof m=="string"){let b=E(l);if(!b||!Object.hasOwn(b,m)){l=null;break}l=b[m]}else{l=null;break}}h.push(l)}return h}case"setpath":{if(e.length<2)return[null];let h=p(t,e[0],n)[0],y=p(t,e[1],n)[0];return[u(t,h,y)]}case"delpaths":{if(e.length===0)return[t];let h=p(t,e[0],n)[0],a=t;for(let y of h.sort((l,m)=>m.length-l.length))a=c(a,y);return[a]}case"path":{if(e.length===0)return[[]];let i=[];return f(t,e[0],n,[],i),i}case"del":return e.length===0?[t]:[s(t,e[0],n)];case"pick":{if(e.length===0)return[null];let i=[];for(let a of e)f(t,a,n,[],i);let h=null;for(let a of i){for(let l of a)if(typeof l=="number"&&l<0)throw new Error("Out of bounds negative array index");let y=t;for(let l of a){if(y==null)break;if(Array.isArray(y)&&typeof l=="number")y=y[l];else if(typeof l=="string"){let m=E(y);if(!m||!Object.hasOwn(m,l)){y=null;break}y=m[l]}else{y=null;break}}h=u(h,a,y)}return[h]}case"paths":{let i=[],h=(a,y)=>{if(a&&typeof a=="object")if(Array.isArray(a))for(let l=0;l<a.length;l++)i.push([...y,l]),h(a[l],[...y,l]);else for(let l of Object.keys(a))i.push([...y,l]),h(a[l],[...y,l])};return h(t,[]),e.length>0?i.filter(a=>{let y=t;for(let m of a)if(Array.isArray(y)&&typeof m=="number")y=y[m];else if(typeof m=="string"){let b=E(y);if(!b||!Object.hasOwn(b,m))return!1;y=b[m]}else return!1;return p(y,e[0],n).some(o)}):i}case"leaf_paths":{let i=[],h=(a,y)=>{if(a===null||typeof a!="object")i.push(y);else if(Array.isArray(a))for(let l=0;l<a.length;l++)h(a[l],[...y,l]);else for(let l of Object.keys(a))h(a[l],[...y,l])};return h(t,[]),i}default:return null}}function ot(t,r,e,n,p,o){switch(r){case"IN":{if(e.length===0)return[!1];if(e.length===1){let f=p(t,e[0],n);for(let i of f)if(o(t,i))return[!0];return[!1]}let u=p(t,e[0],n),c=p(t,e[1],n),s=new Set(c.map(f=>JSON.stringify(f)));for(let f of u)if(s.has(JSON.stringify(f)))return[!0];return[!1]}case"INDEX":{if(e.length===0)return[Object.create(null)];if(e.length===1){let s=p(t,e[0],n),f=Object.create(null);for(let i of s){let h=String(i);g(h)&&A(f,h,i)}return[f]}if(e.length===2){let s=p(t,e[0],n),f=Object.create(null);for(let i of s){let h=p(i,e[1],n);if(h.length>0){let a=String(h[0]);g(a)&&A(f,a,i)}}return[f]}let u=p(t,e[0],n),c=Object.create(null);for(let s of u){let f=p(s,e[1],n),i=p(s,e[2],n);if(f.length>0&&i.length>0){let h=String(f[0]);g(h)&&A(c,h,i[0])}}return[c]}case"JOIN":{if(e.length<2)return[null];let u=E(p(t,e[0],n)[0]);if(!u)return[null];if(!Array.isArray(t))return[null];let c=[];for(let s of t){let f=p(s,e[1],n),i=f.length>0?String(f[0]):"",h=T(u,i)?u[i]:null;c.push([s,h])}return[c]}default:return null}}function ft(t,r,e,n,p){switch(r){case"join":{if(!Array.isArray(t))return[null];let o=e.length>0?p(t,e[0],n):[""];for(let u of t)if(Array.isArray(u)||u!==null&&typeof u=="object")throw new Error("cannot join: contains arrays or objects");return o.map(u=>t.map(c=>c===null?"":typeof c=="string"?c:String(c)).join(String(u)))}case"split":{if(typeof t!="string"||e.length===0)return[null];let o=p(t,e[0],n),u=String(o[0]);return[t.split(u)]}case"splits":{if(typeof t!="string"||e.length===0)return[];let o=p(t,e[0],n),u=String(o[0]);try{let c=e.length>1?String(p(t,e[1],n)[0]):"g";return R(u,c.includes("g")?c:`${c}g`).split(t)}catch{return[]}}case"scan":{if(typeof t!="string"||e.length===0)return[];let o=p(t,e[0],n),u=String(o[0]);try{let c=e.length>1?String(p(t,e[1],n)[0]):"";return[...R(u,c.includes("g")?c:`${c}g`).matchAll(t)].map(i=>i.length>1?i.slice(1):i[0])}catch{return[]}}case"test":{if(typeof t!="string"||e.length===0)return[!1];let o=p(t,e[0],n),u=String(o[0]);try{let c=e.length>1?String(p(t,e[1],n)[0]):"";return[R(u,c).test(t)]}catch{return[!1]}}case"match":{if(typeof t!="string"||e.length===0)return[null];let o=p(t,e[0],n),u=String(o[0]);try{let c=e.length>1?String(p(t,e[1],n)[0]):"",f=R(u,`${c}d`).exec(t);if(!f)return[];let i=f.indices;return[{offset:f.index,length:f[0].length,string:f[0],captures:f.slice(1).map((h,a)=>({offset:i?.[a+1]?.[0]??null,length:h?.length??0,string:h??"",name:null}))}]}catch{return[null]}}case"capture":{if(typeof t!="string"||e.length===0)return[null];let o=p(t,e[0],n),u=String(o[0]);try{let c=e.length>1?String(p(t,e[1],n)[0]):"",f=R(u,c).match(t);return!f||!f.groups?[Object.create(null)]:[f.groups]}catch{return[null]}}case"sub":{if(typeof t!="string"||e.length<2)return[null];let o=p(t,e[0],n),u=p(t,e[1],n),c=String(o[0]),s=String(u[0]);try{let f=e.length>2?String(p(t,e[2],n)[0]):"";return[R(c,f).replace(t,s)]}catch{return[t]}}case"gsub":{if(typeof t!="string"||e.length<2)return[null];let o=p(t,e[0],n),u=p(t,e[1],n),c=String(o[0]),s=String(u[0]);try{let f=e.length>2?String(p(t,e[2],n)[0]):"g",i=f.includes("g")?f:`${f}g`;return[R(c,i).replace(t,s)]}catch{return[t]}}case"ascii_downcase":return typeof t=="string"?[t.replace(/[A-Z]/g,o=>String.fromCharCode(o.charCodeAt(0)+32))]:[null];case"ascii_upcase":return typeof t=="string"?[t.replace(/[a-z]/g,o=>String.fromCharCode(o.charCodeAt(0)-32))]:[null];case"ltrimstr":{if(typeof t!="string"||e.length===0)return[t];let o=p(t,e[0],n),u=String(o[0]);return[t.startsWith(u)?t.slice(u.length):t]}case"rtrimstr":{if(typeof t!="string"||e.length===0)return[t];let o=p(t,e[0],n),u=String(o[0]);return u===""?[t]:[t.endsWith(u)?t.slice(0,-u.length):t]}case"trimstr":{if(typeof t!="string"||e.length===0)return[t];let o=p(t,e[0],n),u=String(o[0]);if(u==="")return[t];let c=t;return c.startsWith(u)&&(c=c.slice(u.length)),c.endsWith(u)&&(c=c.slice(0,-u.length)),[c]}case"trim":if(typeof t=="string")return[t.trim()];throw new Error("trim input must be a string");case"ltrim":if(typeof t=="string")return[t.trimStart()];throw new Error("trim input must be a string");case"rtrim":if(typeof t=="string")return[t.trimEnd()];throw new Error("trim input must be a string");case"startswith":{if(typeof t!="string"||e.length===0)return[!1];let o=p(t,e[0],n);return[t.startsWith(String(o[0]))]}case"endswith":{if(typeof t!="string"||e.length===0)return[!1];let o=p(t,e[0],n);return[t.endsWith(String(o[0]))]}case"ascii":return typeof t=="string"&&t.length>0?[t.charCodeAt(0)]:[null];case"explode":return typeof t=="string"?[Array.from(t).map(o=>o.codePointAt(0))]:[null];case"implode":if(!Array.isArray(t))throw new Error("implode input must be an array");return[t.map(c=>{if(typeof c=="string")throw new Error(`string (${JSON.stringify(c)}) can't be imploded, unicode codepoint needs to be numeric`);if(typeof c!="number"||Number.isNaN(c))throw new Error("number (null) can't be imploded, unicode codepoint needs to be numeric");let s=Math.trunc(c);return s<0||s>1114111||s>=55296&&s<=57343?String.fromCodePoint(65533):String.fromCodePoint(s)}).join("")];default:return null}}function ct(t,r){switch(r){case"type":return t===null?["null"]:Array.isArray(t)?["array"]:typeof t=="boolean"?["boolean"]:typeof t=="number"?["number"]:typeof t=="string"?["string"]:typeof t=="object"?["object"]:["null"];case"infinite":return[Number.POSITIVE_INFINITY];case"nan":return[Number.NaN];case"isinfinite":return[typeof t=="number"&&!Number.isFinite(t)];case"isnan":return[typeof t=="number"&&Number.isNaN(t)];case"isnormal":return[typeof t=="number"&&Number.isFinite(t)&&t!==0];case"isfinite":return[typeof t=="number"&&Number.isFinite(t)];case"numbers":return typeof t=="number"?[t]:[];case"strings":return typeof t=="string"?[t]:[];case"booleans":return typeof t=="boolean"?[t]:[];case"nulls":return t===null?[t]:[];case"arrays":return Array.isArray(t)?[t]:[];case"objects":return t&&typeof t=="object"&&!Array.isArray(t)?[t]:[];case"iterables":return Array.isArray(t)||t&&typeof t=="object"&&!Array.isArray(t)?[t]:[];case"scalars":return!Array.isArray(t)&&!(t&&typeof t=="object")?[t]:[];case"values":return t===null?[]:[t];case"not":return t===!1||t===null?[!0]:[!1];case"null":return[null];case"true":return[!0];case"false":return[!1];case"empty":return[];default:return null}}function K(t,r,e){if(r.length===0)return e;let[n,...p]=r;if(typeof n=="number"){if(t&&typeof t=="object"&&!Array.isArray(t))throw new Error("Cannot index object with number");if(n>536870911)throw new Error("Array index too large");if(n<0)throw new Error("Out of bounds negative array index");let f=Array.isArray(t)?[...t]:[];for(;f.length<=n;)f.push(null);return f[n]=K(f[n],p,e),f}if(Array.isArray(t))throw new Error("Cannot index array with string");if(!g(n))return t??Object.create(null);let o=E(t),u=o?O(o):Object.create(null),c=Object.hasOwn(u,n)?u[n]:void 0;return A(u,n,K(c,p,e)),u}function V(t,r){if(r.length===0)return null;if(r.length===1){let p=r[0];if(Array.isArray(t)&&typeof p=="number"){let o=[...t];return o.splice(p,1),o}if(t&&typeof t=="object"&&!Array.isArray(t)){let o=String(p);if(!g(o))return t;let u=O(t);return delete u[o],u}return t}let[e,...n]=r;if(Array.isArray(t)&&typeof e=="number"){let p=[...t];return p[e]=V(p[e],n),p}if(t&&typeof t=="object"&&!Array.isArray(t)){let p=String(e);if(!g(p))return t;let o=O(t);return Object.hasOwn(o,p)&&A(o,p,V(o[p],n)),o}return t}var P=class t extends Error{label;partialResults;constructor(r,e=[]){super(`break ${r}`),this.label=r,this.partialResults=e,this.name="BreakError"}withPrependedResults(r){return new t(this.label,[...r,...this.partialResults])}},H=class extends Error{value;constructor(r){super(typeof r=="string"?r:JSON.stringify(r)),this.value=r,this.name="JqError"}},St=1e4,bt=2e3,Ct=new Map([["floor",Math.floor],["ceil",Math.ceil],["round",Math.round],["sqrt",Math.sqrt],["log",Math.log],["log10",Math.log10],["log2",Math.log2],["exp",Math.exp],["sin",Math.sin],["cos",Math.cos],["tan",Math.tan],["asin",Math.asin],["acos",Math.acos],["atan",Math.atan],["sinh",Math.sinh],["cosh",Math.cosh],["tanh",Math.tanh],["asinh",Math.asinh],["acosh",Math.acosh],["atanh",Math.atanh],["cbrt",Math.cbrt],["expm1",Math.expm1],["log1p",Math.log1p],["trunc",Math.trunc]]);function Tt(t){return{vars:new Map,limits:{maxIterations:t?.limits?.maxIterations??St,maxDepth:t?.limits?.maxDepth??bt},env:t?.env,coverage:t?.coverage,requireDefenseContext:t?.requireDefenseContext,defenseContextChecked:!1}}function q(t,r,e){let n=new Map(t.vars);return n.set(r,e),{vars:n,limits:t.limits,env:t.env,requireDefenseContext:t.requireDefenseContext,defenseContextChecked:t.defenseContextChecked,root:t.root,currentPath:t.currentPath,funcs:t.funcs,labels:t.labels,coverage:t.coverage}}function L(t,r,e){switch(r.type){case"var":return q(t,r.name,e);case"array":{if(!Array.isArray(e))return null;let n=t;for(let p=0;p<r.elements.length;p++){let o=r.elements[p],u=p<e.length?e[p]:null,c=L(n,o,u);if(c===null)return null;n=c}return n}case"object":{let n=E(e);if(!n)return null;let p=t;for(let o of r.fields){let u;if(typeof o.key=="string")u=o.key;else{let f=d(e,o.key,t);if(f.length===0)return null;u=String(f[0])}let c=T(n,u)?n[u]:null;o.keyVar&&(p=q(p,o.keyVar,c));let s=L(p,o.pattern,c);if(s===null)return null;p=s}return p}}}function Rt(t,r){let e=t;for(let n of r)if(e&&typeof e=="object")if(Array.isArray(e))if(typeof n=="number")e=e[n];else return;else{let p=E(e);if(p&&typeof n=="string"&&Object.hasOwn(p,n))e=p[n];else return}else return;return e}function M(t){if(t.type==="Identity")return[];if(t.type==="Field"){let r=t.base?M(t.base):[];return r===null?null:[...r,t.name]}if(t.type==="Index"&&t.index.type==="Literal"){let r=t.base?M(t.base):[];if(r===null)return null;let e=t.index.value;return typeof e=="number"||typeof e=="string"?[...r,e]:null}if(t.type==="Pipe"){let r=M(t.left);return r===null?null:pt(r,t.right)}if(t.type==="Call"){if(t.name==="parent"||t.name==="root")return null;if(t.name==="first"&&t.args.length===0)return[0];if(t.name==="last"&&t.args.length===0)return[-1]}return null}function pt(t,r){if(r.type==="Call"){if(r.name==="parent"){let e=1;if(r.args.length>0&&r.args[0].type==="Literal"){let n=r.args[0].value;typeof n=="number"&&(e=n)}if(e>=0)return t.slice(0,Math.max(0,t.length-e));{let n=-e-1;return t.slice(0,Math.min(n,t.length))}}if(r.name==="root")return[]}if(r.type==="Field"){let e=M(r);if(e!==null)return[...t,...e]}if(r.type==="Index"&&r.index.type==="Literal"){let e=M(r);if(e!==null)return[...t,...e]}if(r.type==="Pipe"){let e=pt(t,r.left);return e===null?null:pt(e,r.right)}return r.type==="Identity"?t:null}function mt(t,r,e){if(r.type==="Comma"){let n=[];try{n.push(...d(t,r.left,e))}catch(p){if(p instanceof B)throw p;if(n.length>0)return n;throw new Error("evaluation failed")}try{n.push(...d(t,r.right,e))}catch(p){if(p instanceof B)throw p;return n}return n}return d(t,r,e)}function d(t,r,e){let n=e&&"vars"in e?e:Tt(e);switch(n.defenseContextChecked||(yt(n.requireDefenseContext,"query-engine","evaluation"),n={...n,defenseContextChecked:!0}),n.root===void 0&&(n={...n,root:t,currentPath:[]}),n.coverage?.hit(`jq:node:${r.type}`),r.type){case"Identity":return[t];case"Field":return(r.base?d(t,r.base,n):[t]).flatMap(o=>{let u=E(o);if(u){if(!Object.hasOwn(u,r.name))return[null];let s=u[r.name];return[s===void 0?null:s]}if(o===null)return[null];let c=Array.isArray(o)?"array":typeof o;throw new Error(`Cannot index ${c} with string "${r.name}"`)});case"Index":return(r.base?d(t,r.base,n):[t]).flatMap(o=>d(o,r.index,n).flatMap(c=>{if(typeof c=="number"&&Array.isArray(o)){if(Number.isNaN(c))return[null];let s=Math.trunc(c),f=s<0?o.length+s:s;return f>=0&&f<o.length?[o[f]]:[null]}if(typeof c=="string"){let s=E(o);return!s||!Object.hasOwn(s,c)?[null]:[s[c]]}return[null]}));case"Slice":return(r.base?d(t,r.base,n):[t]).flatMap(o=>{if(o===null)return[null];if(!Array.isArray(o)&&typeof o!="string")throw new Error(`Cannot slice ${typeof o} (${JSON.stringify(o)})`);let u=o.length,c=r.start?d(t,r.start,n):[0],s=r.end?d(t,r.end,n):[u];return c.flatMap(f=>s.map(i=>{let h=f,a=i,y=Number.isNaN(h)?0:Number.isInteger(h)?h:Math.floor(h),l=Number.isNaN(a)?u:Number.isInteger(a)?a:Math.ceil(a),m=dt(y,u),b=dt(l,u);return Array.isArray(o),o.slice(m,b)}))});case"Iterate":return(r.base?d(t,r.base,n):[t]).flatMap(o=>Array.isArray(o)?o:o&&typeof o=="object"?Object.values(o):[]);case"Pipe":{let p=d(t,r.left,n),o=M(r.left),u=[];for(let c of p)try{if(o!==null){let s={...n,currentPath:[...n.currentPath??[],...o]};u.push(...d(c,r.right,s))}else u.push(...d(c,r.right,n))}catch(s){throw s instanceof P?s.withPrependedResults(u):s}return u}case"Comma":{let p=d(t,r.left,n),o=d(t,r.right,n);return[...p,...o]}case"Literal":return[r.value];case"Array":return r.elements?[d(t,r.elements,n)]:[[]];case"Object":{let p=[Object.create(null)];for(let o of r.entries){let u=typeof o.key=="string"?[o.key]:d(t,o.key,n),c=d(t,o.value,n),s=[];for(let f of p)for(let i of u){if(typeof i!="string"){let h=i===null?"null":Array.isArray(i)?"array":typeof i;throw new Error(`Cannot use ${h} (${JSON.stringify(i)}) as object key`)}if(!g(i)){for(let h of c)s.push(O(f));continue}for(let h of c){let a=O(f);A(a,i,h),s.push(a)}}p.length=0,p.push(...s)}return p}case"Paren":return d(t,r.expr,n);case"BinaryOp":return xt(t,r.op,r.left,r.right,n);case"UnaryOp":return d(t,r.operand,n).map(o=>{if(r.op==="-"){if(typeof o=="number")return-o;if(typeof o=="string"){let u=c=>c.length>5?`"${c.slice(0,3)}...`:JSON.stringify(c);throw new Error(`string (${u(o)}) cannot be negated`)}return null}return r.op==="not"?!S(o):null});case"Cond":return d(t,r.cond,n).flatMap(o=>{if(S(o))return d(t,r.then,n);for(let u of r.elifs)if(d(t,u.cond,n).some(S))return d(t,u.then,n);return r.else?d(t,r.else,n):[t]});case"Try":try{return d(t,r.body,n)}catch(p){if(r.catch){let o=p instanceof H?p.value:p instanceof Error?p.message:String(p);return d(o,r.catch,n)}return[]}case"Call":return gt(t,r.name,r.args,n);case"VarBind":return d(t,r.value,n).flatMap(o=>{let u=null,c=[];r.pattern?c.push(r.pattern):r.name&&c.push({type:"var",name:r.name}),r.alternatives&&c.push(...r.alternatives);for(let s of c)if(u=L(n,s,o),u!==null)break;return u===null?[]:d(t,r.body,u)});case"VarRef":{if(r.name==="$ENV")return[n.env?X(n.env):Object.create(null)];let p=n.vars.get(r.name);return p!==void 0?[p]:[null]}case"Recurse":{let p=[],o=new WeakSet,u=c=>{if(c&&typeof c=="object"){if(o.has(c))return;o.add(c)}if(p.push(c),Array.isArray(c))for(let s of c)u(s);else if(c&&typeof c=="object")for(let s of Object.keys(c))u(c[s])};return u(t),p}case"Optional":try{return d(t,r.expr,n)}catch{return[]}case"StringInterp":return[r.parts.map(o=>typeof o=="string"?o:d(t,o,n).map(c=>typeof c=="string"?c:JSON.stringify(c)).join("")).join("")];case"UpdateOp":return[Mt(t,r.path,r.op,r.value,n)];case"Reduce":{let p=d(t,r.expr,n),o=d(t,r.init,n)[0],u=n.limits.maxDepth??bt;for(let c of p){let s;if(r.pattern){if(s=L(n,r.pattern,c),s===null)continue}else s=q(n,r.varName,c);if(o=d(o,r.update,s)[0],D(o,u+1)>u)return[null]}return[o]}case"Foreach":{let p=d(t,r.expr,n),o=d(t,r.init,n)[0],u=[];for(let c of p)try{let s;if(r.pattern){if(s=L(n,r.pattern,c),s===null)continue}else s=q(n,r.varName,c);if(o=d(o,r.update,s)[0],r.extract){let f=d(o,r.extract,s);u.push(...f)}else u.push(o)}catch(s){throw s instanceof P?s.withPrependedResults(u):s}return u}case"Label":try{return d(t,r.body,{...n,labels:new Set([...n.labels??[],r.name])})}catch(p){if(p instanceof P&&p.label===r.name)return p.partialResults;throw p}case"Break":throw new P(r.name);case"Def":{let p=new Map(n.funcs??[]),o=`${r.name}/${r.params.length}`;p.set(o,{params:r.params,body:r.funcBody,closure:new Map(n.funcs??[])});let u={...n,funcs:p};return d(t,r.body,u)}default:{let p=r;throw new Error(`Unknown AST node type: ${p.type}`)}}}function dt(t,r){return t<0?Math.max(0,r+t):Math.min(t,r)}function Mt(t,r,e,n,p){function o(s,f){switch(e){case"=":return f;case"|=":return d(s,n,p)[0]??null;case"+=":return typeof s=="number"&&typeof f=="number"||typeof s=="string"&&typeof f=="string"?s+f:Array.isArray(s)&&Array.isArray(f)?[...s,...f]:s&&f&&typeof s=="object"&&typeof f=="object"?G(s,f):f;case"-=":return typeof s=="number"&&typeof f=="number"?s-f:s;case"*=":return typeof s=="number"&&typeof f=="number"?s*f:s;case"/=":return typeof s=="number"&&typeof f=="number"?s/f:s;case"%=":return typeof s=="number"&&typeof f=="number"?s%f:s;case"//=":return s===null||s===!1?f:s;default:return f}}function u(s,f,i){switch(f.type){case"Identity":return i(s);case"Field":{if(!g(f.name))return s;if(f.base)return u(s,f.base,h=>{if(h&&typeof h=="object"&&!Array.isArray(h)){let a=O(h),y=Object.hasOwn(a,f.name)?a[f.name]:void 0;return A(a,f.name,i(y)),a}return h});if(s&&typeof s=="object"&&!Array.isArray(s)){let h=O(s),a=Object.hasOwn(h,f.name)?h[f.name]:void 0;return A(h,f.name,i(a)),h}return s}case"Index":{let a=d(t,f.index,p)[0];if(typeof a=="number"&&Number.isNaN(a))throw new Error("Cannot set array element at NaN index");if(typeof a=="number"&&!Number.isInteger(a)&&(a=Math.trunc(a)),f.base)return u(s,f.base,y=>{if(typeof a=="number"&&Array.isArray(y)){let l=[...y],m=a<0?l.length+a:a;if(m>=0){for(;l.length<=m;)l.push(null);l[m]=i(l[m])}return l}if(typeof a=="string"&&y&&typeof y=="object"&&!Array.isArray(y)){if(!g(a))return y;let l=O(y),m=Object.hasOwn(l,a)?l[a]:void 0;return A(l,a,i(m)),l}return y});if(typeof a=="number"){if(a>536870911)throw new Error("Array index too large");if(a<0&&(!s||!Array.isArray(s)))throw new Error("Out of bounds negative array index");if(Array.isArray(s)){let l=[...s],m=a<0?l.length+a:a;if(m>=0){for(;l.length<=m;)l.push(null);l[m]=i(l[m])}return l}if(s==null){let l=[];for(;l.length<=a;)l.push(null);return l[a]=i(null),l}return s}if(typeof a=="string"&&s&&typeof s=="object"&&!Array.isArray(s)){if(!g(a))return s;let y=O(s),l=Object.hasOwn(y,a)?y[a]:void 0;return A(y,a,i(l)),y}return s}case"Iterate":{let h=a=>{if(Array.isArray(a))return a.map(y=>i(y));if(a&&typeof a=="object"){let y=Object.create(null);for(let[l,m]of Object.entries(a))g(l)&&A(y,l,i(m));return y}return a};return f.base?u(s,f.base,h):h(s)}case"Pipe":{let h=u(s,f.left,a=>a);return u(h,f.right,i)}default:return i(s)}}return u(t,r,s=>{if(e==="|=")return o(s,s);let f=d(t,n,p);return o(s,f[0]??null)})}function jt(t,r,e){function n(o,u,c){switch(u.type){case"Identity":return c;case"Field":{if(!g(u.name))return o;if(u.base){let s=d(o,u.base,e)[0],f=n(s,{type:"Field",name:u.name},c);return n(o,u.base,f)}if(o&&typeof o=="object"&&!Array.isArray(o)){let s=O(o);return A(s,u.name,c),s}return o}case"Index":{if(u.base){let i=d(o,u.base,e)[0],h=n(i,{type:"Index",index:u.index},c);return n(o,u.base,h)}let f=d(t,u.index,e)[0];if(typeof f=="number"&&Array.isArray(o)){let i=[...o],h=f<0?i.length+f:f;return h>=0&&h<i.length&&(i[h]=c),i}if(typeof f=="string"&&o&&typeof o=="object"&&!Array.isArray(o)){if(!g(f))return o;let i=O(o);return A(i,f,c),i}return o}default:return o}}function p(o,u){switch(u.type){case"Identity":return null;case"Field":{if(!g(u.name))return o;if(u.base){let s=d(o,u.base,e)[0];if(s==null)return o;let f=p(s,{type:"Field",name:u.name});return n(o,u.base,f)}if(o&&typeof o=="object"&&!Array.isArray(o)){if(!g(u.name))return o;let s=O(o);return delete s[u.name],s}return o}case"Index":{if(u.base){let i=d(o,u.base,e)[0];if(i==null)return o;let h=p(i,{type:"Index",index:u.index});return n(o,u.base,h)}let f=d(t,u.index,e)[0];if(typeof f=="number"&&Array.isArray(o)){let i=[...o],h=f<0?i.length+f:f;return h>=0&&h<i.length&&i.splice(h,1),i}if(typeof f=="string"&&o&&typeof o=="object"&&!Array.isArray(o)){if(!g(f))return o;let i=O(o);return delete i[f],i}return o}case"Iterate":return Array.isArray(o)?[]:o&&typeof o=="object"?Object.create(null):o;case"Pipe":{let i=function(y,l,m){switch(l.type){case"Identity":return m;case"Field":{if(!g(l.name))return y;if(y&&typeof y=="object"&&!Array.isArray(y)){let b=O(y);return A(b,l.name,m),b}return y}case"Index":{let w=d(t,l.index,e)[0];if(typeof w=="number"&&Array.isArray(y)){let k=[...y],N=w<0?k.length+w:w;return N>=0&&N<k.length&&(k[N]=m),k}if(typeof w=="string"&&y&&typeof y=="object"&&!Array.isArray(y)){if(!g(w))return y;let k=O(y);return A(k,w,m),k}return y}case"Pipe":{let b=d(y,l.left,e)[0],w=i(b,l.right,m);return i(y,l.left,w)}default:return y}};var c=i;let s=u.left,f=u.right,h=d(o,s,e)[0];if(h==null)return o;let a=p(h,f);return i(o,s,a)}default:return o}}return p(t,r)}function xt(t,r,e,n,p){if(r==="and")return d(t,e,p).flatMap(s=>S(s)?d(t,n,p).map(i=>S(i)):[!1]);if(r==="or")return d(t,e,p).flatMap(s=>S(s)?[!0]:d(t,n,p).map(i=>S(i)));if(r==="//"){let s=d(t,e,p).filter(f=>f!=null&&f!==!1);return s.length>0?s:d(t,n,p)}let o=d(t,e,p),u=d(t,n,p);return o.flatMap(c=>u.map(s=>{switch(r){case"+":return c===null?s:s===null?c:typeof c=="number"&&typeof s=="number"||typeof c=="string"&&typeof s=="string"?c+s:Array.isArray(c)&&Array.isArray(s)?[...c,...s]:c&&s&&typeof c=="object"&&typeof s=="object"&&!Array.isArray(c)&&!Array.isArray(s)?G(c,s):null;case"-":if(typeof c=="number"&&typeof s=="number")return c-s;if(Array.isArray(c)&&Array.isArray(s)){let f=new Set(s.map(i=>JSON.stringify(i)));return c.filter(i=>!f.has(JSON.stringify(i)))}if(typeof c=="string"&&typeof s=="string"){let f=i=>i.length>10?`"${i.slice(0,10)}...`:JSON.stringify(i);throw new Error(`string (${f(c)}) and string (${f(s)}) cannot be subtracted`)}return null;case"*":if(typeof c=="number"&&typeof s=="number")return c*s;if(typeof c=="string"&&typeof s=="number")return c.repeat(s);{let f=E(c),i=E(s);if(f&&i)return v(f,i)}return null;case"/":if(typeof c=="number"&&typeof s=="number"){if(s===0)throw new Error(`number (${c}) and number (${s}) cannot be divided because the divisor is zero`);return c/s}return typeof c=="string"&&typeof s=="string"?c.split(s):null;case"%":if(typeof c=="number"&&typeof s=="number"){if(s===0)throw new Error(`number (${c}) and number (${s}) cannot be divided (remainder) because the divisor is zero`);return!Number.isFinite(c)&&!Number.isNaN(c)?!Number.isFinite(s)&&!Number.isNaN(s)&&c<0&&s>0?-1:0:c%s}return null;case"==":return I(c,s);case"!=":return!I(c,s);case"<":return U(c,s)<0;case"<=":return U(c,s)<=0;case">":return U(c,s)>0;case">=":return U(c,s)>=0;default:return null}}))}function gt(t,r,e,n){let p=Ct.get(r);if(p)return typeof t=="number"?[p(t)]:[null];let o=rt(t,r,e,n,d);if(o!==null)return o;let u=ft(t,r,e,n,d);if(u!==null)return u;let c=Z(t,r,e,n,d);if(c!==null)return c;let s=tt(t,r,n.limits.maxDepth);if(s!==null)return s;let f=ct(t,r);if(f!==null)return f;let i=st(t,r,e,n,d);if(i!==null)return i;let h=W(t,r,e,n,d,mt,$,S,F,B);if(h!==null)return h;let a=it(t,r,e,n,d,S,K,V,jt,J);if(a!==null)return a;let y=et(t,r,e,n,d,I);if(y!==null)return y;let l=z(t,r,e,n,d,mt,S,B);if(l!==null)return l;let m=nt(t,r,e,n,d,S,Rt,gt);if(m!==null)return m;let b=ot(t,r,e,n,d,I);if(b!==null)return b;switch(r){case"builtins":return[["add/0","all/0","all/1","all/2","any/0","any/1","any/2","arrays/0","ascii/0","ascii_downcase/0","ascii_upcase/0","booleans/0","bsearch/1","builtins/0","combinations/0","combinations/1","contains/1","debug/0","del/1","delpaths/1","empty/0","env/0","error/0","error/1","explode/0","first/0","first/1","flatten/0","flatten/1","floor/0","from_entries/0","fromdate/0","fromjson/0","getpath/1","gmtime/0","group_by/1","gsub/2","gsub/3","has/1","implode/0","IN/1","IN/2","INDEX/1","INDEX/2","index/1","indices/1","infinite/0","inside/1","isempty/1","isnan/0","isnormal/0","isvalid/1","iterables/0","join/1","keys/0","keys_unsorted/0","last/0","last/1","length/0","limit/2","ltrimstr/1","map/1","map_values/1","match/1","match/2","max/0","max_by/1","min/0","min_by/1","mktime/0","modulemeta/1","nan/0","not/0","nth/1","nth/2","null/0","nulls/0","numbers/0","objects/0","path/1","paths/0","paths/1","pick/1","range/1","range/2","range/3","recurse/0","recurse/1","recurse_down/0","repeat/1","reverse/0","rindex/1","rtrimstr/1","scalars/0","scan/1","scan/2","select/1","setpath/2","skip/2","sort/0","sort_by/1","split/1","splits/1","splits/2","sqrt/0","startswith/1","strftime/1","strings/0","strptime/1","sub/2","sub/3","test/1","test/2","to_entries/0","toboolean/0","todate/0","tojson/0","tostream/0","fromstream/1","truncate_stream/1","tonumber/0","tostring/0","transpose/0","trim/0","ltrim/0","rtrim/0","type/0","unique/0","unique_by/1","until/2","utf8bytelength/0","values/0","walk/1","while/2","with_entries/1"]];case"error":{let w=e.length>0?d(t,e[0],n)[0]:t;throw new H(w)}case"env":return[n.env?X(n.env):Object.create(null)];case"debug":return[t];case"input_line_number":return[1];default:{let w=`${r}/${e.length}`,k=n.funcs?.get(w);if(k){let N=k.closure??n.funcs??new Map,C=new Map(N);C.set(w,k);for(let _=0;_<k.params.length;_++){let kt=k.params[_],ht=e[_];if(ht){let j=d(t,ht,n),x;if(j.length===0)x={type:"Call",name:"empty",args:[]};else if(j.length===1)x={type:"Literal",value:j[0]};else{x={type:"Literal",value:j[j.length-1]};for(let Q=j.length-2;Q>=0;Q--)x={type:"Comma",left:{type:"Literal",value:j[Q]},right:x}}C.set(`${kt}/0`,{params:[],body:x})}}let wt={...n,funcs:C};return d(t,k.body,wt)}throw new Error(`Unknown function: ${r}`)}}}function J(t,r,e,n,p){if(r.type==="Comma"){let c=r;J(t,c.left,e,n,p),J(t,c.right,e,n,p);return}let o=M(r);if(o!==null){p.push([...n,...o]);return}if(r.type==="Iterate"){if(Array.isArray(t))for(let c=0;c<t.length;c++)p.push([...n,c]);else if(t&&typeof t=="object")for(let c of Object.keys(t))p.push([...n,c]);return}if(r.type==="Recurse"){let c=(s,f)=>{if(p.push([...n,...f]),s&&typeof s=="object")if(Array.isArray(s))for(let i=0;i<s.length;i++)c(s[i],[...f,i]);else for(let i of Object.keys(s))c(s[i],[...f,i])};c(t,[]);return}if(r.type==="Pipe"){let c=M(r.left);if(c!==null){let s=d(t,r.left,e);for(let f of s)J(f,r.right,e,[...n,...c],p);return}}d(t,r,e).length>0&&p.push(n)}var At=new Map([["and","AND"],["or","OR"],["not","NOT"],["if","IF"],["then","THEN"],["elif","ELIF"],["else","ELSE"],["end","END"],["as","AS"],["try","TRY"],["catch","CATCH"],["true","TRUE"],["false","FALSE"],["null","NULL"],["reduce","REDUCE"],["foreach","FOREACH"],["label","LABEL"],["break","BREAK"],["def","DEF"]]),Y=new Set(At.values());function Et(t){let r=[],e=0,n=(f=0)=>t[e+f],p=()=>t[e++],o=()=>e>=t.length,u=f=>f>="0"&&f<="9",c=f=>f>="a"&&f<="z"||f>="A"&&f<="Z"||f==="_",s=f=>c(f)||u(f);for(;!o();){let f=e,i=p();if(!(i===" "||i===" "||i===`
3
- `||i==="\r")){if(i==="#"){for(;!o()&&n()!==`
4
- `;)p();continue}if(i==="."&&n()==="."){p(),r.push({type:"DOTDOT",pos:f});continue}if(i==="="&&n()==="="){p(),r.push({type:"EQ",pos:f});continue}if(i==="!"&&n()==="="){p(),r.push({type:"NE",pos:f});continue}if(i==="<"&&n()==="="){p(),r.push({type:"LE",pos:f});continue}if(i===">"&&n()==="="){p(),r.push({type:"GE",pos:f});continue}if(i==="/"&&n()==="/"){p(),n()==="="?(p(),r.push({type:"UPDATE_ALT",pos:f})):r.push({type:"ALT",pos:f});continue}if(i==="+"&&n()==="="){p(),r.push({type:"UPDATE_ADD",pos:f});continue}if(i==="-"&&n()==="="){p(),r.push({type:"UPDATE_SUB",pos:f});continue}if(i==="*"&&n()==="="){p(),r.push({type:"UPDATE_MUL",pos:f});continue}if(i==="/"&&n()==="="){p(),r.push({type:"UPDATE_DIV",pos:f});continue}if(i==="%"&&n()==="="){p(),r.push({type:"UPDATE_MOD",pos:f});continue}if(i==="="&&n()!=="="){r.push({type:"ASSIGN",pos:f});continue}if(i==="."){r.push({type:"DOT",pos:f});continue}if(i==="|"){n()==="="?(p(),r.push({type:"UPDATE_PIPE",pos:f})):r.push({type:"PIPE",pos:f});continue}if(i===","){r.push({type:"COMMA",pos:f});continue}if(i===":"){r.push({type:"COLON",pos:f});continue}if(i===";"){r.push({type:"SEMICOLON",pos:f});continue}if(i==="("){r.push({type:"LPAREN",pos:f});continue}if(i===")"){r.push({type:"RPAREN",pos:f});continue}if(i==="["){r.push({type:"LBRACKET",pos:f});continue}if(i==="]"){r.push({type:"RBRACKET",pos:f});continue}if(i==="{"){r.push({type:"LBRACE",pos:f});continue}if(i==="}"){r.push({type:"RBRACE",pos:f});continue}if(i==="?"){r.push({type:"QUESTION",pos:f});continue}if(i==="+"){r.push({type:"PLUS",pos:f});continue}if(i==="-"){r.push({type:"MINUS",pos:f});continue}if(i==="*"){r.push({type:"STAR",pos:f});continue}if(i==="/"){r.push({type:"SLASH",pos:f});continue}if(i==="%"){r.push({type:"PERCENT",pos:f});continue}if(i==="<"){r.push({type:"LT",pos:f});continue}if(i===">"){r.push({type:"GT",pos:f});continue}if(u(i)){let h=i;for(;!o()&&(u(n())||n()==="."||n()==="e"||n()==="E");)(n()==="e"||n()==="E")&&(t[e+1]==="+"||t[e+1]==="-")&&(h+=p()),h+=p();r.push({type:"NUMBER",value:Number(h),pos:f});continue}if(i==='"'){let h="";for(;!o()&&n()!=='"';)if(n()==="\\"){if(p(),o())break;let a=p();switch(a){case"n":h+=`
5
- `;break;case"r":h+="\r";break;case"t":h+=" ";break;case"\\":h+="\\";break;case'"':h+='"';break;case"(":h+="\\(";break;default:h+=a}}else h+=p();o()||p(),r.push({type:"STRING",value:h,pos:f});continue}if(c(i)||i==="$"||i==="@"){let h=i;for(;!o()&&s(n());)h+=p();let a=At.get(h);a?r.push({type:a,value:h,pos:f}):r.push({type:"IDENT",value:h,pos:f});continue}throw new Error(`Unexpected character '${i}' at position ${f}`)}}return r.push({type:"EOF",pos:e}),r}var ut=class t{tokens;pos=0;constructor(r){this.tokens=r}peek(r=0){return this.tokens[this.pos+r]??{type:"EOF",pos:-1}}advance(){return this.tokens[this.pos++]}check(r){return this.peek().type===r}match(...r){for(let e of r)if(this.check(e))return this.advance();return null}expect(r,e){if(!this.check(r))throw new Error(`${e} at position ${this.peek().pos}, got ${this.peek().type}`);return this.advance()}isFieldNameAfterDot(r=0){let e=this.peek(r),n=this.peek(r+1);return n.type==="STRING"?!0:n.type==="IDENT"||Y.has(n.type)?n.pos===e.pos+1:!1}isIdentLike(){let r=this.peek().type;return r==="IDENT"||Y.has(r)}consumeFieldNameAfterDot(r){let e=this.peek();return e.type==="STRING"?this.advance().value:(e.type==="IDENT"||Y.has(e.type))&&e.pos===r.pos+1?this.advance().value:null}parse(){let r=this.parseExpr();if(!this.check("EOF"))throw new Error(`Unexpected token ${this.peek().type} at position ${this.peek().pos}`);return r}parseExpr(){return this.parsePipe()}parsePattern(){if(this.match("LBRACKET")){let n=[];if(!this.check("RBRACKET"))for(n.push(this.parsePattern());this.match("COMMA")&&!this.check("RBRACKET");)n.push(this.parsePattern());return this.expect("RBRACKET","Expected ']' after array pattern"),{type:"array",elements:n}}if(this.match("LBRACE")){let n=[];if(!this.check("RBRACE"))for(n.push(this.parsePatternField());this.match("COMMA")&&!this.check("RBRACE");)n.push(this.parsePatternField());return this.expect("RBRACE","Expected '}' after object pattern"),{type:"object",fields:n}}let r=this.expect("IDENT","Expected variable name in pattern"),e=r.value;if(!e.startsWith("$"))throw new Error(`Variable name must start with $ at position ${r.pos}`);return{type:"var",name:e}}parsePatternField(){if(this.match("LPAREN")){let e=this.parseExpr();this.expect("RPAREN","Expected ')' after computed key"),this.expect("COLON","Expected ':' after computed key");let n=this.parsePattern();return{key:e,pattern:n}}let r=this.peek();if(r.type==="IDENT"||Y.has(r.type)){let e=r.value;if(e.startsWith("$")){if(this.advance(),this.match("COLON")){let n=this.parsePattern();return{key:e.slice(1),pattern:n,keyVar:e}}return{key:e.slice(1),pattern:{type:"var",name:e}}}if(this.advance(),this.match("COLON")){let n=this.parsePattern();return{key:e,pattern:n}}return{key:e,pattern:{type:"var",name:`$${e}`}}}throw new Error(`Expected field name in object pattern at position ${r.pos}`)}parsePipe(){let r=this.parseComma();for(;this.match("PIPE");){let e=this.parseComma();r={type:"Pipe",left:r,right:e}}return r}parseComma(){let r=this.parseVarBind();for(;this.match("COMMA");){let e=this.parseVarBind();r={type:"Comma",left:r,right:e}}return r}parseVarBind(){let r=this.parseUpdate();if(this.match("AS")){let e=this.parsePattern(),n=[];for(;this.check("QUESTION")&&this.peekAhead(1)?.type==="ALT";)this.advance(),this.advance(),n.push(this.parsePattern());this.expect("PIPE","Expected '|' after variable binding");let p=this.parseExpr();return e.type==="var"&&n.length===0?{type:"VarBind",name:e.name,value:r,body:p}:{type:"VarBind",name:e.type==="var"?e.name:"",value:r,body:p,pattern:e.type!=="var"?e:void 0,alternatives:n.length>0?n:void 0}}return r}peekAhead(r){let e=this.pos+r;return e<this.tokens.length?this.tokens[e]:void 0}parseUpdate(){let r=this.parseAlt(),e=new Map([["ASSIGN","="],["UPDATE_ADD","+="],["UPDATE_SUB","-="],["UPDATE_MUL","*="],["UPDATE_DIV","/="],["UPDATE_MOD","%="],["UPDATE_ALT","//="],["UPDATE_PIPE","|="]]),n=this.match("ASSIGN","UPDATE_ADD","UPDATE_SUB","UPDATE_MUL","UPDATE_DIV","UPDATE_MOD","UPDATE_ALT","UPDATE_PIPE");if(n){let p=this.parseVarBind(),o=e.get(n.type);if(o)return{type:"UpdateOp",op:o,path:r,value:p}}return r}parseAlt(){let r=this.parseOr();for(;this.match("ALT");){let e=this.parseOr();r={type:"BinaryOp",op:"//",left:r,right:e}}return r}parseOr(){let r=this.parseAnd();for(;this.match("OR");){let e=this.parseAnd();r={type:"BinaryOp",op:"or",left:r,right:e}}return r}parseAnd(){let r=this.parseNot();for(;this.match("AND");){let e=this.parseNot();r={type:"BinaryOp",op:"and",left:r,right:e}}return r}parseNot(){return this.parseComparison()}parseComparison(){let r=this.parseAddSub(),e=new Map([["EQ","=="],["NE","!="],["LT","<"],["LE","<="],["GT",">"],["GE",">="]]),n=this.match("EQ","NE","LT","LE","GT","GE");if(n){let p=e.get(n.type);if(p){let o=this.parseAddSub();r={type:"BinaryOp",op:p,left:r,right:o}}}return r}parseAddSub(){let r=this.parseMulDiv();for(;;)if(this.match("PLUS")){let e=this.parseMulDiv();r={type:"BinaryOp",op:"+",left:r,right:e}}else if(this.match("MINUS")){let e=this.parseMulDiv();r={type:"BinaryOp",op:"-",left:r,right:e}}else break;return r}parseMulDiv(){let r=this.parseUnary();for(;;)if(this.match("STAR")){let e=this.parseUnary();r={type:"BinaryOp",op:"*",left:r,right:e}}else if(this.match("SLASH")){let e=this.parseUnary();r={type:"BinaryOp",op:"/",left:r,right:e}}else if(this.match("PERCENT")){let e=this.parseUnary();r={type:"BinaryOp",op:"%",left:r,right:e}}else break;return r}parseUnary(){return this.match("MINUS")?{type:"UnaryOp",op:"-",operand:this.parseUnary()}:this.parsePostfix()}parsePostfix(){let r=this.parsePrimary();for(;;)if(this.match("QUESTION"))r={type:"Optional",expr:r};else if(this.check("DOT")&&this.isFieldNameAfterDot())this.advance(),r={type:"Field",name:this.advance().value,base:r};else if(this.check("LBRACKET"))if(this.advance(),this.match("RBRACKET"))r={type:"Iterate",base:r};else if(this.check("COLON")){this.advance();let e=this.check("RBRACKET")?void 0:this.parseExpr();this.expect("RBRACKET","Expected ']'"),r={type:"Slice",end:e,base:r}}else{let e=this.parseExpr();if(this.match("COLON")){let n=this.check("RBRACKET")?void 0:this.parseExpr();this.expect("RBRACKET","Expected ']'"),r={type:"Slice",start:e,end:n,base:r}}else this.expect("RBRACKET","Expected ']'"),r={type:"Index",index:e,base:r}}else break;return r}parsePrimary(){if(this.match("DOTDOT"))return{type:"Recurse"};if(this.check("DOT")){let r=this.advance();if(this.check("LBRACKET")){if(this.advance(),this.match("RBRACKET"))return{type:"Iterate"};if(this.check("COLON")){this.advance();let p=this.check("RBRACKET")?void 0:this.parseExpr();return this.expect("RBRACKET","Expected ']'"),{type:"Slice",end:p}}let n=this.parseExpr();if(this.match("COLON")){let p=this.check("RBRACKET")?void 0:this.parseExpr();return this.expect("RBRACKET","Expected ']'"),{type:"Slice",start:n,end:p}}return this.expect("RBRACKET","Expected ']'"),{type:"Index",index:n}}let e=this.consumeFieldNameAfterDot(r);return e!==null?{type:"Field",name:e}:{type:"Identity"}}if(this.match("TRUE"))return{type:"Literal",value:!0};if(this.match("FALSE"))return{type:"Literal",value:!1};if(this.match("NULL"))return{type:"Literal",value:null};if(this.check("NUMBER"))return{type:"Literal",value:this.advance().value};if(this.check("STRING")){let e=this.advance().value;return e.includes("\\(")?this.parseStringInterpolation(e):{type:"Literal",value:e}}if(this.match("LBRACKET")){if(this.match("RBRACKET"))return{type:"Array"};let r=this.parseExpr();return this.expect("RBRACKET","Expected ']'"),{type:"Array",elements:r}}if(this.match("LBRACE"))return this.parseObjectConstruction();if(this.match("LPAREN")){let r=this.parseExpr();return this.expect("RPAREN","Expected ')'"),{type:"Paren",expr:r}}if(this.match("IF"))return this.parseIf();if(this.match("TRY")){let r=this.parsePostfix(),e;return this.match("CATCH")&&(e=this.parsePostfix()),{type:"Try",body:r,catch:e}}if(this.match("REDUCE")){let r=this.parseAddSub();this.expect("AS","Expected 'as' after reduce expression");let e=this.parsePattern();this.expect("LPAREN","Expected '(' after variable");let n=this.parseExpr();this.expect("SEMICOLON","Expected ';' after init expression");let p=this.parseExpr();this.expect("RPAREN","Expected ')' after update expression");let o=e.type==="var"?e.name:"";return{type:"Reduce",expr:r,varName:o,init:n,update:p,pattern:e.type!=="var"?e:void 0}}if(this.match("FOREACH")){let r=this.parseAddSub();this.expect("AS","Expected 'as' after foreach expression");let e=this.parsePattern();this.expect("LPAREN","Expected '(' after variable");let n=this.parseExpr();this.expect("SEMICOLON","Expected ';' after init expression");let p=this.parseExpr(),o;this.match("SEMICOLON")&&(o=this.parseExpr()),this.expect("RPAREN","Expected ')' after expressions");let u=e.type==="var"?e.name:"";return{type:"Foreach",expr:r,varName:u,init:n,update:p,extract:o,pattern:e.type!=="var"?e:void 0}}if(this.match("LABEL")){let r=this.expect("IDENT","Expected label name (e.g., $out)"),e=r.value;if(!e.startsWith("$"))throw new Error(`Label name must start with $ at position ${r.pos}`);this.expect("PIPE","Expected '|' after label name");let n=this.parseExpr();return{type:"Label",name:e,body:n}}if(this.match("BREAK")){let r=this.expect("IDENT","Expected label name to break to"),e=r.value;if(!e.startsWith("$"))throw new Error(`Break label must start with $ at position ${r.pos}`);return{type:"Break",name:e}}if(this.match("DEF")){let e=this.expect("IDENT","Expected function name after def").value,n=[];if(this.match("LPAREN")){if(!this.check("RPAREN")){let u=this.expect("IDENT","Expected parameter name");for(n.push(u.value);this.match("SEMICOLON");){let c=this.expect("IDENT","Expected parameter name");n.push(c.value)}}this.expect("RPAREN","Expected ')' after parameters")}this.expect("COLON","Expected ':' after function name");let p=this.parseExpr();this.expect("SEMICOLON","Expected ';' after function body");let o=this.parseExpr();return{type:"Def",name:e,params:n,funcBody:p,body:o}}if(this.match("NOT"))return{type:"Call",name:"not",args:[]};if(this.check("IDENT")){let e=this.advance().value;if(e.startsWith("$"))return{type:"VarRef",name:e};if(this.match("LPAREN")){let n=[];if(!this.check("RPAREN"))for(n.push(this.parseExpr());this.match("SEMICOLON");)n.push(this.parseExpr());return this.expect("RPAREN","Expected ')'"),{type:"Call",name:e,args:n}}return{type:"Call",name:e,args:[]}}throw new Error(`Unexpected token ${this.peek().type} at position ${this.peek().pos}`)}parseObjectConstruction(){let r=[];if(!this.check("RBRACE"))do{let e,n;if(this.match("LPAREN"))e=this.parseExpr(),this.expect("RPAREN","Expected ')'"),this.expect("COLON","Expected ':'"),n=this.parseObjectValue();else if(this.isIdentLike()){let p=this.advance().value;this.match("COLON")?(e=p,n=this.parseObjectValue()):(e=p,n={type:"Field",name:p})}else if(this.check("STRING"))e=this.advance().value,this.expect("COLON","Expected ':'"),n=this.parseObjectValue();else throw new Error(`Expected object key at position ${this.peek().pos}`);r.push({key:e,value:n})}while(this.match("COMMA"));return this.expect("RBRACE","Expected '}'"),{type:"Object",entries:r}}parseObjectValue(){let r=this.parseVarBind();for(;this.match("PIPE");){let e=this.parseVarBind();r={type:"Pipe",left:r,right:e}}return r}parseIf(){let r=this.parseExpr();this.expect("THEN","Expected 'then'");let e=this.parseExpr(),n=[];for(;this.match("ELIF");){let o=this.parseExpr();this.expect("THEN","Expected 'then' after elif");let u=this.parseExpr();n.push({cond:o,then:u})}let p;return this.match("ELSE")&&(p=this.parseExpr()),this.expect("END","Expected 'end'"),{type:"Cond",cond:r,then:e,elifs:n,else:p}}parseStringInterpolation(r){let e=[],n="",p=0;for(;p<r.length;)if(r[p]==="\\"&&r[p+1]==="("){n&&(e.push(n),n=""),p+=2;let o=1,u="";for(;p<r.length&&o>0;)r[p]==="("?o++:r[p]===")"&&o--,o>0&&(u+=r[p]),p++;let c=Et(u),s=new t(c);e.push(s.parse())}else n+=r[p],p++;return n&&e.push(n),{type:"StringInterp",parts:e}}};function Ne(t){let r=Et(t);return new ut(r).parse()}export{d as a,Ne as b};
@@ -1,22 +0,0 @@
1
- import{a as Ce,b as Fe,c as ne}from"./chunk-74CEPOFO.js";import{a as G,c as B,e as be}from"./chunk-DXB73IDG.js";var Te=B(ae=>{ae.read=function(i,e,t,r,n){var o,s,c=n*8-r-1,p=(1<<c)-1,m=p>>1,a=-7,f=t?n-1:0,l=t?-1:1,u=i[e+f];for(f+=l,o=u&(1<<-a)-1,u>>=-a,a+=c;a>0;o=o*256+i[e+f],f+=l,a-=8);for(s=o&(1<<-a)-1,o>>=-a,a+=r;a>0;s=s*256+i[e+f],f+=l,a-=8);if(o===0)o=1-m;else{if(o===p)return s?NaN:(u?-1:1)*(1/0);s=s+Math.pow(2,r),o=o-m}return(u?-1:1)*s*Math.pow(2,o-r)};ae.write=function(i,e,t,r,n,o){var s,c,p,m=o*8-n-1,a=(1<<m)-1,f=a>>1,l=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,u=r?0:o-1,T=r?1:-1,k=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,s=a):(s=Math.floor(Math.log(e)/Math.LN2),e*(p=Math.pow(2,-s))<1&&(s--,p*=2),s+f>=1?e+=l/p:e+=l*Math.pow(2,1-f),e*p>=2&&(s++,p/=2),s+f>=a?(c=0,s=a):s+f>=1?(c=(e*p-1)*Math.pow(2,n),s=s+f):(c=e*Math.pow(2,f-1)*Math.pow(2,n),s=0));n>=8;i[t+u]=c&255,u+=T,c/=256,n-=8);for(s=s<<n|c,m+=n;m>0;i[t+u]=s&255,u+=T,s/=256,m-=8);i[t+u-T]|=k*128}});var ze=B((Ki,Me)=>{var j=1e3,P=j*60,N=P*60,z=N*24,wt=z*7,kt=z*365.25;Me.exports=function(i,e){e=e||{};var t=typeof i;if(t==="string"&&i.length>0)return yt(i);if(t==="number"&&isFinite(i))return e.long?Ct(i):bt(i);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))};function yt(i){if(i=String(i),!(i.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(e){var t=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return t*kt;case"weeks":case"week":case"w":return t*wt;case"days":case"day":case"d":return t*z;case"hours":case"hour":case"hrs":case"hr":case"h":return t*N;case"minutes":case"minute":case"mins":case"min":case"m":return t*P;case"seconds":case"second":case"secs":case"sec":case"s":return t*j;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function bt(i){var e=Math.abs(i);return e>=z?Math.round(i/z)+"d":e>=N?Math.round(i/N)+"h":e>=P?Math.round(i/P)+"m":e>=j?Math.round(i/j)+"s":i+"ms"}function Ct(i){var e=Math.abs(i);return e>=z?Y(i,e,z,"day"):e>=N?Y(i,e,N,"hour"):e>=P?Y(i,e,P,"minute"):e>=j?Y(i,e,j,"second"):i+" ms"}function Y(i,e,t,r){var n=e>=t*1.5;return Math.round(i/t)+" "+r+(n?"s":"")}});var fe=B((er,Ue)=>{function Ft(i){t.debug=t,t.default=t,t.coerce=p,t.disable=s,t.enable=n,t.enabled=c,t.humanize=ze(),t.destroy=m,Object.keys(i).forEach(a=>{t[a]=i[a]}),t.names=[],t.skips=[],t.formatters={};function e(a){let f=0;for(let l=0;l<a.length;l++)f=(f<<5)-f+a.charCodeAt(l),f|=0;return t.colors[Math.abs(f)%t.colors.length]}t.selectColor=e;function t(a){let f,l=null,u,T;function k(...F){if(!k.enabled)return;let O=k,V=Number(new Date),tt=V-(f||V);O.diff=tt,O.prev=f,O.curr=V,f=V,F[0]=t.coerce(F[0]),typeof F[0]!="string"&&F.unshift("%O");let q=0;F[0]=F[0].replace(/%([a-zA-Z%])/g,(re,it)=>{if(re==="%%")return"%";q++;let ye=t.formatters[it];if(typeof ye=="function"){let rt=F[q];re=ye.call(O,rt),F.splice(q,1),q--}return re}),t.formatArgs.call(O,F),(O.log||t.log).apply(O,F)}return k.namespace=a,k.useColors=t.useColors(),k.color=t.selectColor(a),k.extend=r,k.destroy=t.destroy,Object.defineProperty(k,"enabled",{enumerable:!0,configurable:!1,get:()=>l!==null?l:(u!==t.namespaces&&(u=t.namespaces,T=t.enabled(a)),T),set:F=>{l=F}}),typeof t.init=="function"&&t.init(k),k}function r(a,f){let l=t(this.namespace+(typeof f>"u"?":":f)+a);return l.log=this.log,l}function n(a){t.save(a),t.namespaces=a,t.names=[],t.skips=[];let f=(typeof a=="string"?a:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let l of f)l[0]==="-"?t.skips.push(l.slice(1)):t.names.push(l)}function o(a,f){let l=0,u=0,T=-1,k=0;for(;l<a.length;)if(u<f.length&&(f[u]===a[l]||f[u]==="*"))f[u]==="*"?(T=u,k=l,u++):(l++,u++);else if(T!==-1)u=T+1,k++,l=k;else return!1;for(;u<f.length&&f[u]==="*";)u++;return u===f.length}function s(){let a=[...t.names,...t.skips.map(f=>"-"+f)].join(",");return t.enable(""),a}function c(a){for(let f of t.skips)if(o(a,f))return!1;for(let f of t.names)if(o(a,f))return!0;return!1}function p(a){return a instanceof Error?a.stack||a.message:a}function m(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}Ue.exports=Ft});var Le=B((C,K)=>{C.formatArgs=St;C.save=Tt;C.load=Et;C.useColors=vt;C.storage=At();C.destroy=(()=>{let i=!1;return()=>{i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();C.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function vt(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let i;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(i=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(i[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function St(i){if(i[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+i[0]+(this.useColors?"%c ":" ")+"+"+K.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;i.splice(1,0,e,"color: inherit");let t=0,r=0;i[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(t++,n==="%c"&&(r=t))}),i.splice(r,0,e)}C.log=console.debug||console.log||(()=>{});function Tt(i){try{i?C.storage.setItem("debug",i):C.storage.removeItem("debug")}catch{}}function Et(){let i;try{i=C.storage.getItem("debug")||C.storage.getItem("DEBUG")}catch{}return!i&&typeof process<"u"&&"env"in process&&(i=process.env.DEBUG),i}function At(){try{return localStorage}catch{}}K.exports=fe()(C);var{formatters:Bt}=K.exports;Bt.j=function(i){try{return JSON.stringify(i)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var je=B((tr,Re)=>{"use strict";Re.exports=(i,e=process.argv)=>{let t=i.startsWith("-")?"":i.length===1?"-":"--",r=e.indexOf(t+i),n=e.indexOf("--");return r!==-1&&(n===-1||r<n)}});var _e=B((ir,Ne)=>{"use strict";var It=G("os"),Pe=G("tty"),v=je(),{env:g}=process,I;v("no-color")||v("no-colors")||v("color=false")||v("color=never")?I=0:(v("color")||v("colors")||v("color=true")||v("color=always"))&&(I=1);"FORCE_COLOR"in g&&(g.FORCE_COLOR==="true"?I=1:g.FORCE_COLOR==="false"?I=0:I=g.FORCE_COLOR.length===0?1:Math.min(parseInt(g.FORCE_COLOR,10),3));function pe(i){return i===0?!1:{level:i,hasBasic:!0,has256:i>=2,has16m:i>=3}}function me(i,e){if(I===0)return 0;if(v("color=16m")||v("color=full")||v("color=truecolor"))return 3;if(v("color=256"))return 2;if(i&&!e&&I===void 0)return 0;let t=I||0;if(g.TERM==="dumb")return t;if(process.platform==="win32"){let r=It.release().split(".");return Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in g)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(r=>r in g)||g.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in g)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(g.TEAMCITY_VERSION)?1:0;if(g.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in g){let r=parseInt((g.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(g.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(g.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(g.TERM)||"COLORTERM"in g?1:t}function Ot(i){let e=me(i,i&&i.isTTY);return pe(e)}Ne.exports={supportsColor:Ot,stdout:pe(me(!0,Pe.isatty(1))),stderr:pe(me(!0,Pe.isatty(2)))}});var He=B((w,te)=>{var Dt=G("tty"),ee=G("util");w.init=Pt;w.log=Lt;w.formatArgs=zt;w.save=Rt;w.load=jt;w.useColors=Mt;w.destroy=ee.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");w.colors=[6,2,3,4,5,1];try{let i=_e();i&&(i.stderr||i).level>=2&&(w.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}w.inspectOpts=Object.keys(process.env).filter(i=>/^debug_/i.test(i)).reduce((i,e)=>{let t=e.substring(6).toLowerCase().replace(/_([a-z])/g,(n,o)=>o.toUpperCase()),r=process.env[e];return/^(yes|on|true|enabled)$/i.test(r)?r=!0:/^(no|off|false|disabled)$/i.test(r)?r=!1:r==="null"?r=null:r=Number(r),i[t]=r,i},{});function Mt(){return"colors"in w.inspectOpts?!!w.inspectOpts.colors:Dt.isatty(process.stderr.fd)}function zt(i){let{namespace:e,useColors:t}=this;if(t){let r=this.color,n="\x1B[3"+(r<8?r:"8;5;"+r),o=` ${n};1m${e} \x1B[0m`;i[0]=o+i[0].split(`
2
- `).join(`
3
- `+o),i.push(n+"m+"+te.exports.humanize(this.diff)+"\x1B[0m")}else i[0]=Ut()+e+" "+i[0]}function Ut(){return w.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Lt(...i){return process.stderr.write(ee.formatWithOptions(w.inspectOpts,...i)+`
4
- `)}function Rt(i){i?process.env.DEBUG=i:delete process.env.DEBUG}function jt(){return process.env.DEBUG}function Pt(i){i.inspectOpts={};let e=Object.keys(w.inspectOpts);for(let t=0;t<e.length;t++)i.inspectOpts[e[t]]=w.inspectOpts[e[t]]}te.exports=fe()(w);var{formatters:$e}=te.exports;$e.o=function(i){return this.inspectOpts.colors=this.useColors,ee.inspect(i,this.inspectOpts).split(`
5
- `).map(e=>e.trim()).join(" ")};$e.O=function(i){return this.inspectOpts.colors=this.useColors,ee.inspect(i,this.inspectOpts)}});var We=B((rr,le)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?le.exports=Le():le.exports=He()});var nt="End-Of-Stream",x=class extends Error{constructor(){super(nt),this.name="EndOfStreamError"}},D=class extends Error{constructor(e="The operation was aborted"){super(e),this.name="AbortError"}};var M=class{constructor(){this.endOfStream=!1,this.interrupted=!1,this.peekQueue=[]}async peek(e,t=!1){let r=await this.read(e,t);return this.peekQueue.push(e.subarray(0,r)),r}async read(e,t=!1){if(e.length===0)return 0;let r=this.readFromPeekBuffer(e);if(this.endOfStream||(r+=await this.readRemainderFromStream(e.subarray(r),t)),r===0&&!t)throw new x;return r}readFromPeekBuffer(e){let t=e.length,r=0;for(;this.peekQueue.length>0&&t>0;){let n=this.peekQueue.pop();if(!n)throw new Error("peekData should be defined");let o=Math.min(n.length,t);e.set(n.subarray(0,o),r),r+=o,t-=o,o<n.length&&this.peekQueue.push(n.subarray(o))}return r}async readRemainderFromStream(e,t){let r=0;for(;r<e.length&&!this.endOfStream;){if(this.interrupted)throw new D;let n=await this.readFromStream(e.subarray(r),t);if(n===0)break;r+=n}if(!t&&r<e.length)throw new x;return r}};var J=class extends M{constructor(e){super(),this.reader=e}async abort(){return this.close()}async close(){this.reader.releaseLock()}};var _=class extends J{async readFromStream(e,t){if(e.length===0)return 0;let r=await this.reader.read(new Uint8Array(e.length),{min:t?void 0:e.length});return r.done&&(this.endOfStream=r.done),r.value?(e.set(r.value),r.value.length):0}};var L=class extends M{constructor(e){super(),this.reader=e,this.buffer=null}writeChunk(e,t){let r=Math.min(t.length,e.length);return e.set(t.subarray(0,r)),r<t.length?this.buffer=t.subarray(r):this.buffer=null,r}async readFromStream(e,t){if(e.length===0)return 0;let r=0;for(this.buffer&&(r+=this.writeChunk(e,this.buffer));r<e.length&&!this.endOfStream;){let n=await this.reader.read();if(n.done){this.endOfStream=!0;break}n.value&&(r+=this.writeChunk(e.subarray(r),n.value))}if(!t&&r===0&&this.endOfStream)throw new x;return r}abort(){return this.interrupted=!0,this.reader.cancel()}async close(){await this.abort(),this.reader.releaseLock()}};function oe(i){try{let e=i.getReader({mode:"byob"});return e instanceof ReadableStreamDefaultReader?new L(e):new _(e)}catch(e){if(e instanceof TypeError)return new L(i.getReader());throw e}}var S=class{constructor(e){this.numBuffer=new Uint8Array(8),this.position=0,this.onClose=e?.onClose,e?.abortSignal&&e.abortSignal.addEventListener("abort",()=>{this.abort()})}async readToken(e,t=this.position){let r=new Uint8Array(e.len);if(await this.readBuffer(r,{position:t})<e.len)throw new x;return e.get(r,0)}async peekToken(e,t=this.position){let r=new Uint8Array(e.len);if(await this.peekBuffer(r,{position:t})<e.len)throw new x;return e.get(r,0)}async readNumber(e){if(await this.readBuffer(this.numBuffer,{length:e.len})<e.len)throw new x;return e.get(this.numBuffer,0)}async peekNumber(e){if(await this.peekBuffer(this.numBuffer,{length:e.len})<e.len)throw new x;return e.get(this.numBuffer,0)}async ignore(e){if(this.fileInfo.size!==void 0){let t=this.fileInfo.size-this.position;if(e>t)return this.position+=t,t}return this.position+=e,e}async close(){await this.abort(),await this.onClose?.()}normalizeOptions(e,t){if(!this.supportsRandomAccess()&&t&&t.position!==void 0&&t.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");return{mayBeLess:!1,offset:0,length:e.length,position:this.position,...t}}abort(){return Promise.resolve()}};var st=256e3,X=class extends S{constructor(e,t){super(t),this.streamReader=e,this.fileInfo=t?.fileInfo??{}}async readBuffer(e,t){let r=this.normalizeOptions(e,t),n=r.position-this.position;if(n>0)return await this.ignore(n),this.readBuffer(e,t);if(n<0)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");if(r.length===0)return 0;let o=await this.streamReader.read(e.subarray(0,r.length),r.mayBeLess);if(this.position+=o,(!t||!t.mayBeLess)&&o<r.length)throw new x;return o}async peekBuffer(e,t){let r=this.normalizeOptions(e,t),n=0;if(r.position){let o=r.position-this.position;if(o>0){let s=new Uint8Array(r.length+o);return n=await this.peekBuffer(s,{mayBeLess:r.mayBeLess}),e.set(s.subarray(o)),n-o}if(o<0)throw new Error("Cannot peek from a negative offset in a stream")}if(r.length>0){try{n=await this.streamReader.peek(e.subarray(0,r.length),r.mayBeLess)}catch(o){if(t?.mayBeLess&&o instanceof x)return 0;throw o}if(!r.mayBeLess&&n<r.length)throw new x}return n}async ignore(e){let t=Math.min(st,e),r=new Uint8Array(t),n=0;for(;n<e;){let o=e-n,s=await this.readBuffer(r,{length:Math.min(t,o)});if(s<0)return s;n+=s}return n}abort(){return this.streamReader.abort()}async close(){return this.streamReader.close()}supportsRandomAccess(){return!1}};var Z=class extends S{constructor(e,t){super(t),this.uint8Array=e,this.fileInfo={...t?.fileInfo??{},size:e.length}}async readBuffer(e,t){t?.position&&(this.position=t.position);let r=await this.peekBuffer(e,t);return this.position+=r,r}async peekBuffer(e,t){let r=this.normalizeOptions(e,t),n=Math.min(this.uint8Array.length-r.position,r.length);if(!r.mayBeLess&&n<r.length)throw new x;return e.set(this.uint8Array.subarray(r.position,r.position+n)),n}close(){return super.close()}supportsRandomAccess(){return!0}setPosition(e){this.position=e}};var Q=class extends S{constructor(e,t){super(t),this.blob=e,this.fileInfo={...t?.fileInfo??{},size:e.size,mimeType:e.type}}async readBuffer(e,t){t?.position&&(this.position=t.position);let r=await this.peekBuffer(e,t);return this.position+=r,r}async peekBuffer(e,t){let r=this.normalizeOptions(e,t),n=Math.min(this.blob.size-r.position,r.length);if(!r.mayBeLess&&n<r.length)throw new x;let o=await this.blob.slice(r.position,r.position+n).arrayBuffer();return e.set(new Uint8Array(o)),n}close(){return super.close()}supportsRandomAccess(){return!0}setPosition(e){this.position=e}};function se(i,e){let t=oe(i),r=e??{},n=r.onClose;return r.onClose=async()=>{if(await t.close(),n)return n()},new X(t,r)}function ve(i,e){return new Z(i,e)}function Se(i,e){return new Q(i,e)}import{open as ct}from"node:fs/promises";var $=class i extends S{static async fromFile(e){let t=await ct(e,"r"),r=await t.stat();return new i(t,{fileInfo:{path:e,size:r.size}})}constructor(e,t){super(t),this.fileHandle=e,this.fileInfo=t.fileInfo}async readBuffer(e,t){let r=this.normalizeOptions(e,t);if(this.position=r.position,r.length===0)return 0;let n=await this.fileHandle.read(e,0,r.length,r.position);if(this.position+=n.bytesRead,n.bytesRead<r.length&&(!t||!t.mayBeLess))throw new x;return n.bytesRead}async peekBuffer(e,t){let r=this.normalizeOptions(e,t),n=await this.fileHandle.read(e,0,r.length,r.position);if(!r.mayBeLess&&n.bytesRead<r.length)throw new x;return n.bytesRead}async close(){return await this.fileHandle.close(),super.close()}setPosition(e){this.position=e}supportsRandomAccess(){return!0}};var ft=$.fromFile;var Ae=be(Te(),1);var ce={128:"\u20AC",130:"\u201A",131:"\u0192",132:"\u201E",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02C6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017D",145:"\u2018",146:"\u2019",147:"\u201C",148:"\u201D",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02DC",153:"\u2122",154:"\u0161",155:"\u203A",156:"\u0153",158:"\u017E",159:"\u0178"},mt={};for(let[i,e]of Object.entries(ce))mt[e]=Number.parseInt(i);function Ee(i,e="utf-8"){switch(e.toLowerCase()){case"utf-8":case"utf8":return typeof globalThis.TextDecoder<"u"?new globalThis.TextDecoder("utf-8").decode(i):lt(i);case"utf-16le":return ut(i);case"ascii":return xt(i);case"latin1":case"iso-8859-1":return dt(i);case"windows-1252":return ht(i);default:throw new RangeError(`Encoding '${e}' not supported`)}}function lt(i){let e="",t=0;for(;t<i.length;){let r=i[t++];if(r<128)e+=String.fromCharCode(r);else if(r<224){let n=i[t++]&63;e+=String.fromCharCode((r&31)<<6|n)}else if(r<240){let n=i[t++]&63,o=i[t++]&63;e+=String.fromCharCode((r&15)<<12|n<<6|o)}else{let n=i[t++]&63,o=i[t++]&63,s=i[t++]&63,c=(r&7)<<18|n<<12|o<<6|s;c-=65536,e+=String.fromCharCode(55296+(c>>10&1023),56320+(c&1023))}}return e}function ut(i){let e="";for(let t=0;t<i.length;t+=2)e+=String.fromCharCode(i[t]|i[t+1]<<8);return e}function xt(i){return String.fromCharCode(...i.map(e=>e&127))}function dt(i){return String.fromCharCode(...i)}function ht(i){let e="";for(let t of i)t>=128&&t<=159&&ce[t]?e+=ce[t]:e+=String.fromCharCode(t);return e}function y(i){return new DataView(i.buffer,i.byteOffset)}var Be={len:1,get(i,e){return y(i).getUint8(e)},put(i,e,t){return y(i).setUint8(e,t),e+1}},d={len:2,get(i,e){return y(i).getUint16(e,!0)},put(i,e,t){return y(i).setUint16(e,t,!0),e+2}},R={len:2,get(i,e){return y(i).getUint16(e)},put(i,e,t){return y(i).setUint16(e,t),e+2}};var h={len:4,get(i,e){return y(i).getUint32(e,!0)},put(i,e,t){return y(i).setUint32(e,t,!0),e+4}},Ie={len:4,get(i,e){return y(i).getUint32(e)},put(i,e,t){return y(i).setUint32(e,t),e+4}};var Oe={len:4,get(i,e){return y(i).getInt32(e)},put(i,e,t){return y(i).setInt32(e,t),e+4}};var De={len:8,get(i,e){return y(i).getBigUint64(e,!0)},put(i,e,t){return y(i).setBigUint64(e,t,!0),e+8}};var b=class{constructor(e,t){this.len=e,this.encoding=t}get(e,t=0){let r=e.subarray(t,t+this.len);return Ee(r,this.encoding)}};var Je=be(We(),1);var U={LocalFileHeader:67324752,DataDescriptor:134695760,CentralFileHeader:33639248,EndOfCentralDirectory:101010256},ue={get(i){return{signature:h.get(i,0),compressedSize:h.get(i,8),uncompressedSize:h.get(i,12)}},len:16},Ve={get(i){let e=d.get(i,6);return{signature:h.get(i,0),minVersion:d.get(i,4),dataDescriptor:!!(e&8),compressedMethod:d.get(i,8),compressedSize:h.get(i,18),uncompressedSize:h.get(i,22),filenameLength:d.get(i,26),extraFieldLength:d.get(i,28),filename:null}},len:30},qe={get(i){return{signature:h.get(i,0),nrOfThisDisk:d.get(i,4),nrOfThisDiskWithTheStart:d.get(i,6),nrOfEntriesOnThisDisk:d.get(i,8),nrOfEntriesOfSize:d.get(i,10),sizeOfCd:h.get(i,12),offsetOfStartOfCd:h.get(i,16),zipFileCommentLength:d.get(i,20)}},len:22},Ge={get(i){let e=d.get(i,8);return{signature:h.get(i,0),minVersion:d.get(i,6),dataDescriptor:!!(e&8),compressedMethod:d.get(i,10),compressedSize:h.get(i,20),uncompressedSize:h.get(i,24),filenameLength:d.get(i,28),extraFieldLength:d.get(i,30),fileCommentLength:d.get(i,32),relativeOffsetOfLocalHeader:h.get(i,42),filename:null}},len:46};function Xe(i){let e=new Uint8Array(h.len);return h.put(e,0,i),e}var E=(0,Je.default)("tokenizer:inflate"),xe=256*1024,Nt=Xe(U.DataDescriptor),ie=Xe(U.EndOfCentralDirectory),H=class i{constructor(e){this.tokenizer=e,this.syncBuffer=new Uint8Array(xe)}async isZip(){return await this.peekSignature()===U.LocalFileHeader}peekSignature(){return this.tokenizer.peekToken(h)}async findEndOfCentralDirectoryLocator(){let e=this.tokenizer,t=Math.min(16*1024,e.fileInfo.size),r=this.syncBuffer.subarray(0,t);await this.tokenizer.readBuffer(r,{position:e.fileInfo.size-t});for(let n=r.length-4;n>=0;n--)if(r[n]===ie[0]&&r[n+1]===ie[1]&&r[n+2]===ie[2]&&r[n+3]===ie[3])return e.fileInfo.size-t+n;return-1}async readCentralDirectory(){if(!this.tokenizer.supportsRandomAccess()){E("Cannot reading central-directory without random-read support");return}E("Reading central-directory...");let e=this.tokenizer.position,t=await this.findEndOfCentralDirectoryLocator();if(t>0){E("Central-directory 32-bit signature found");let r=await this.tokenizer.readToken(qe,t),n=[];this.tokenizer.setPosition(r.offsetOfStartOfCd);for(let o=0;o<r.nrOfEntriesOfSize;++o){let s=await this.tokenizer.readToken(Ge);if(s.signature!==U.CentralFileHeader)throw new Error("Expected Central-File-Header signature");s.filename=await this.tokenizer.readToken(new b(s.filenameLength,"utf-8")),await this.tokenizer.ignore(s.extraFieldLength),await this.tokenizer.ignore(s.fileCommentLength),n.push(s),E(`Add central-directory file-entry: n=${o+1}/${n.length}: filename=${n[o].filename}`)}return this.tokenizer.setPosition(e),n}this.tokenizer.setPosition(e)}async unzip(e){let t=await this.readCentralDirectory();if(t)return this.iterateOverCentralDirectory(t,e);let r=!1;do{let n=await this.readLocalFileHeader();if(!n)break;let o=e(n);r=!!o.stop;let s;if(await this.tokenizer.ignore(n.extraFieldLength),n.dataDescriptor&&n.compressedSize===0){let c=[],p=xe;E("Compressed-file-size unknown, scanning for next data-descriptor-signature....");let m=-1;for(;m<0&&p===xe;){p=await this.tokenizer.peekBuffer(this.syncBuffer,{mayBeLess:!0}),m=_t(this.syncBuffer.subarray(0,p),Nt);let a=m>=0?m:p;if(o.handler){let f=new Uint8Array(a);await this.tokenizer.readBuffer(f),c.push(f)}else await this.tokenizer.ignore(a)}E(`Found data-descriptor-signature at pos=${this.tokenizer.position}`),o.handler&&await this.inflate(n,$t(c),o.handler)}else o.handler?(E(`Reading compressed-file-data: ${n.compressedSize} bytes`),s=new Uint8Array(n.compressedSize),await this.tokenizer.readBuffer(s),await this.inflate(n,s,o.handler)):(E(`Ignoring compressed-file-data: ${n.compressedSize} bytes`),await this.tokenizer.ignore(n.compressedSize));if(E(`Reading data-descriptor at pos=${this.tokenizer.position}`),n.dataDescriptor&&(await this.tokenizer.readToken(ue)).signature!==134695760)throw new Error(`Expected data-descriptor-signature at position ${this.tokenizer.position-ue.len}`)}while(!r)}async iterateOverCentralDirectory(e,t){for(let r of e){let n=t(r);if(n.handler){this.tokenizer.setPosition(r.relativeOffsetOfLocalHeader);let o=await this.readLocalFileHeader();if(o){await this.tokenizer.ignore(o.extraFieldLength);let s=new Uint8Array(r.compressedSize);await this.tokenizer.readBuffer(s),await this.inflate(o,s,n.handler)}}if(n.stop)break}}async inflate(e,t,r){if(e.compressedMethod===0)return r(t);if(e.compressedMethod!==8)throw new Error(`Unsupported ZIP compression method: ${e.compressedMethod}`);E(`Decompress filename=${e.filename}, compressed-size=${t.length}`);let n=await i.decompressDeflateRaw(t);return r(n)}static async decompressDeflateRaw(e){let t=new ReadableStream({start(o){o.enqueue(e),o.close()}}),r=new DecompressionStream("deflate-raw"),n=t.pipeThrough(r);try{let s=await new Response(n).arrayBuffer();return new Uint8Array(s)}catch(o){let s=o instanceof Error?`Failed to deflate ZIP entry: ${o.message}`:"Unknown decompression error in ZIP entry";throw new TypeError(s)}}async readLocalFileHeader(){let e=await this.tokenizer.peekToken(h);if(e===U.LocalFileHeader){let t=await this.tokenizer.readToken(Ve);return t.filename=await this.tokenizer.readToken(new b(t.filenameLength,"utf-8")),t}if(e===U.CentralFileHeader)return!1;throw e===3759263696?new Error("Encrypted ZIP"):new Error("Unexpected signature")}};function _t(i,e){let t=i.length,r=e.length;if(r>t)return-1;for(let n=0;n<=t-r;n++){let o=!0;for(let s=0;s<r;s++)if(i[n+s]!==e[s]){o=!1;break}if(o)return n}return-1}function $t(i){let e=i.reduce((n,o)=>n+o.length,0),t=new Uint8Array(e),r=0;for(let n of i)t.set(n,r),r+=n.length;return t}var W=class{constructor(e){this.tokenizer=e}inflate(){let e=this.tokenizer;return new ReadableStream({async pull(t){let r=new Uint8Array(1024),n=await e.readBuffer(r,{mayBeLess:!0});if(n===0){t.close();return}t.enqueue(r.subarray(0,n))}}).pipeThrough(new DecompressionStream("gzip"))}};var ur={utf8:new globalThis.TextDecoder("utf8")};var xr=new globalThis.TextEncoder;var dr=Array.from({length:256},(i,e)=>e.toString(16).padStart(2,"0"));function de(i){let{byteLength:e}=i;if(e===6)return i.getUint16(0)*2**32+i.getUint32(2);if(e===5)return i.getUint8(0)*2**32+i.getUint32(1);if(e===4)return i.getUint32(0);if(e===3)return i.getUint8(0)*2**16+i.getUint16(1);if(e===2)return i.getUint16(0);if(e===1)return i.getUint8(0)}function Ze(i,e){if(e==="utf-16le"){let t=[];for(let r=0;r<i.length;r++){let n=i.charCodeAt(r);t.push(n&255,n>>8&255)}return t}if(e==="utf-16be"){let t=[];for(let r=0;r<i.length;r++){let n=i.charCodeAt(r);t.push(n>>8&255,n&255)}return t}return[...i].map(t=>t.charCodeAt(0))}function Qe(i,e=0){let t=Number.parseInt(new b(6).get(i,148).replace(/\0.*$/,"").trim(),8);if(Number.isNaN(t))return!1;let r=256;for(let n=e;n<e+148;n++)r+=i[n];for(let n=e+156;n<e+512;n++)r+=i[n];return t===r}var Ye={get:(i,e)=>i[e+3]&127|i[e+2]<<7|i[e+1]<<14|i[e]<<21,len:4};var Ke=["jpg","png","apng","gif","webp","flif","xcf","cr2","cr3","orf","arw","dng","nef","rw2","raf","tif","bmp","icns","jxr","psd","indd","zip","tar","rar","gz","bz2","7z","dmg","mp4","mid","mkv","webm","mov","avi","mpg","mp2","mp3","m4a","oga","ogg","ogv","opus","flac","wav","spx","amr","pdf","epub","elf","macho","exe","swf","rtf","wasm","woff","woff2","eot","ttf","otf","ttc","ico","flv","ps","xz","sqlite","nes","crx","xpi","cab","deb","ar","rpm","Z","lz","cfb","mxf","mts","blend","bpg","docx","pptx","xlsx","3gp","3g2","j2c","jp2","jpm","jpx","mj2","aif","qcp","odt","ods","odp","xml","mobi","heic","cur","ktx","ape","wv","dcm","ics","glb","pcap","dsf","lnk","alias","voc","ac3","m4v","m4p","m4b","f4v","f4p","f4b","f4a","mie","asf","ogm","ogx","mpc","arrow","shp","aac","mp1","it","s3m","xm","skp","avif","eps","lzh","pgp","asar","stl","chm","3mf","zst","jxl","vcf","jls","pst","dwg","parquet","class","arj","cpio","ace","avro","icc","fbx","vsdx","vtt","apk","drc","lz4","potx","xltx","dotx","xltm","ott","ots","otp","odg","otg","xlsm","docm","dotm","potm","pptm","jar","jmp","rm","sav","ppsm","ppsx","tar.gz","reg","dat"],et=["image/jpeg","image/png","image/gif","image/webp","image/flif","image/x-xcf","image/x-canon-cr2","image/x-canon-cr3","image/tiff","image/bmp","image/vnd.ms-photo","image/vnd.adobe.photoshop","application/x-indesign","application/epub+zip","application/x-xpinstall","application/vnd.ms-powerpoint.slideshow.macroenabled.12","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/zip","application/x-tar","application/x-rar-compressed","application/gzip","application/x-bzip2","application/x-7z-compressed","application/x-apple-diskimage","application/vnd.apache.arrow.file","video/mp4","audio/midi","video/matroska","video/webm","video/quicktime","video/vnd.avi","audio/wav","audio/qcelp","audio/x-ms-asf","video/x-ms-asf","application/vnd.ms-asf","video/mpeg","video/3gpp","audio/mpeg","audio/mp4","video/ogg","audio/ogg","audio/ogg; codecs=opus","application/ogg","audio/flac","audio/ape","audio/wavpack","audio/amr","application/pdf","application/x-elf","application/x-mach-binary","application/x-msdownload","application/x-shockwave-flash","application/rtf","application/wasm","font/woff","font/woff2","application/vnd.ms-fontobject","font/ttf","font/otf","font/collection","image/x-icon","video/x-flv","application/postscript","application/eps","application/x-xz","application/x-sqlite3","application/x-nintendo-nes-rom","application/x-google-chrome-extension","application/vnd.ms-cab-compressed","application/x-deb","application/x-unix-archive","application/x-rpm","application/x-compress","application/x-lzip","application/x-cfb","application/x-mie","application/mxf","video/mp2t","application/x-blender","image/bpg","image/j2c","image/jp2","image/jpx","image/jpm","image/mj2","audio/aiff","application/xml","application/x-mobipocket-ebook","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/icns","image/ktx","application/dicom","audio/x-musepack","text/calendar","text/vcard","text/vtt","model/gltf-binary","application/vnd.tcpdump.pcap","audio/x-dsf","application/x.ms.shortcut","application/x.apple.alias","audio/x-voc","audio/vnd.dolby.dd-raw","audio/x-m4a","image/apng","image/x-olympus-orf","image/x-sony-arw","image/x-adobe-dng","image/x-nikon-nef","image/x-panasonic-rw2","image/x-fujifilm-raf","video/x-m4v","video/3gpp2","application/x-esri-shape","audio/aac","audio/x-it","audio/x-s3m","audio/x-xm","video/MP1S","video/MP2P","application/vnd.sketchup.skp","image/avif","application/x-lzh-compressed","application/pgp-encrypted","application/x-asar","model/stl","application/vnd.ms-htmlhelp","model/3mf","image/jxl","application/zstd","image/jls","application/vnd.ms-outlook","image/vnd.dwg","application/vnd.apache.parquet","application/java-vm","application/x-arj","application/x-cpio","application/x-ace-compressed","application/avro","application/vnd.iccprofile","application/x.autodesk.fbx","application/vnd.visio","application/vnd.android.package-archive","application/vnd.google.draco","application/x-lz4","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-excel.template.macroenabled.12","application/vnd.oasis.opendocument.text-template","application/vnd.oasis.opendocument.spreadsheet-template","application/vnd.oasis.opendocument.presentation-template","application/vnd.oasis.opendocument.graphics","application/vnd.oasis.opendocument.graphics-template","application/vnd.ms-excel.sheet.macroenabled.12","application/vnd.ms-word.document.macroenabled.12","application/vnd.ms-word.template.macroenabled.12","application/vnd.ms-powerpoint.template.macroenabled.12","application/vnd.ms-powerpoint.presentation.macroenabled.12","application/java-archive","application/vnd.rn-realmedia","application/x-spss-sav","application/x-ms-regedit","application/x-ft-windows-registry-hive","application/x-jmp-data"];var he=4100;async function ke(i,e){return new we(e).fromBuffer(i)}function ge(i){switch(i=i.toLowerCase(),i){case"application/epub+zip":return{ext:"epub",mime:i};case"application/vnd.oasis.opendocument.text":return{ext:"odt",mime:i};case"application/vnd.oasis.opendocument.text-template":return{ext:"ott",mime:i};case"application/vnd.oasis.opendocument.spreadsheet":return{ext:"ods",mime:i};case"application/vnd.oasis.opendocument.spreadsheet-template":return{ext:"ots",mime:i};case"application/vnd.oasis.opendocument.presentation":return{ext:"odp",mime:i};case"application/vnd.oasis.opendocument.presentation-template":return{ext:"otp",mime:i};case"application/vnd.oasis.opendocument.graphics":return{ext:"odg",mime:i};case"application/vnd.oasis.opendocument.graphics-template":return{ext:"otg",mime:i};case"application/vnd.openxmlformats-officedocument.presentationml.slideshow":return{ext:"ppsx",mime:i};case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":return{ext:"xlsx",mime:i};case"application/vnd.ms-excel.sheet.macroenabled":return{ext:"xlsm",mime:"application/vnd.ms-excel.sheet.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.spreadsheetml.template":return{ext:"xltx",mime:i};case"application/vnd.ms-excel.template.macroenabled":return{ext:"xltm",mime:"application/vnd.ms-excel.template.macroenabled.12"};case"application/vnd.ms-powerpoint.slideshow.macroenabled":return{ext:"ppsm",mime:"application/vnd.ms-powerpoint.slideshow.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":return{ext:"docx",mime:i};case"application/vnd.ms-word.document.macroenabled":return{ext:"docm",mime:"application/vnd.ms-word.document.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.wordprocessingml.template":return{ext:"dotx",mime:i};case"application/vnd.ms-word.template.macroenabledtemplate":return{ext:"dotm",mime:"application/vnd.ms-word.template.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.presentationml.template":return{ext:"potx",mime:i};case"application/vnd.ms-powerpoint.template.macroenabled":return{ext:"potm",mime:"application/vnd.ms-powerpoint.template.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.presentationml.presentation":return{ext:"pptx",mime:i};case"application/vnd.ms-powerpoint.presentation.macroenabled":return{ext:"pptm",mime:"application/vnd.ms-powerpoint.presentation.macroenabled.12"};case"application/vnd.ms-visio.drawing":return{ext:"vsdx",mime:"application/vnd.visio"};case"application/vnd.ms-package.3dmanufacturing-3dmodel+xml":return{ext:"3mf",mime:"model/3mf"};default:}}function A(i,e,t){t={offset:0,...t};for(let[r,n]of e.entries())if(t.mask){if(n!==(t.mask[r]&i[r+t.offset]))return!1}else if(n!==i[r+t.offset])return!1;return!0}var we=class{constructor(e){this.options={mpegOffsetTolerance:0,...e},this.detectors=[...e?.customDetectors??[],{id:"core",detect:this.detectConfident},{id:"core.imprecise",detect:this.detectImprecise}],this.tokenizerOptions={abortSignal:e?.signal}}async fromTokenizer(e){let t=e.position;for(let r of this.detectors){let n=await r.detect(e);if(n)return n;if(t!==e.position)return}}async fromBuffer(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer))throw new TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``);let t=e instanceof Uint8Array?e:new Uint8Array(e);if(t?.length>1)return this.fromTokenizer(ve(t,this.tokenizerOptions))}async fromBlob(e){let t=Se(e,this.tokenizerOptions);try{return await this.fromTokenizer(t)}finally{await t.close()}}async fromStream(e){let t=se(e,this.tokenizerOptions);try{return await this.fromTokenizer(t)}finally{await t.close()}}async toDetectionStream(e,t){let{sampleSize:r=he}=t,n,o,s=e.getReader({mode:"byob"});try{let{value:m,done:a}=await s.read(new Uint8Array(r));if(o=m,!a&&m)try{n=await this.fromBuffer(m.subarray(0,r))}catch(f){if(!(f instanceof x))throw f;n=void 0}o=m}finally{s.releaseLock()}let c=new TransformStream({async start(m){m.enqueue(o)},transform(m,a){a.enqueue(m)}}),p=e.pipeThrough(c);return p.fileType=n,p}check(e,t){return A(this.buffer,e,t)}checkString(e,t){return this.check(Ze(e,t?.encoding),t)}detectConfident=async e=>{if(this.buffer=new Uint8Array(he),e.fileInfo.size===void 0&&(e.fileInfo.size=Number.MAX_SAFE_INTEGER),this.tokenizer=e,await e.peekBuffer(this.buffer,{length:32,mayBeLess:!0}),this.check([66,77]))return{ext:"bmp",mime:"image/bmp"};if(this.check([11,119]))return{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"};if(this.check([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(this.check([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if(this.check([37,33]))return await e.peekBuffer(this.buffer,{length:24,mayBeLess:!0}),this.checkString("PS-Adobe-",{offset:2})&&this.checkString(" EPSF-",{offset:14})?{ext:"eps",mime:"application/eps"}:{ext:"ps",mime:"application/postscript"};if(this.check([31,160])||this.check([31,157]))return{ext:"Z",mime:"application/x-compress"};if(this.check([199,113]))return{ext:"cpio",mime:"application/x-cpio"};if(this.check([96,234]))return{ext:"arj",mime:"application/x-arj"};if(this.check([239,187,191]))return this.tokenizer.ignore(3),this.detectConfident(e);if(this.check([71,73,70]))return{ext:"gif",mime:"image/gif"};if(this.check([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(this.check([31,139,8])){let r=new W(e).inflate(),n=!0;try{let o;try{o=await this.fromStream(r)}catch{n=!1}if(o&&o.ext==="tar")return{ext:"tar.gz",mime:"application/gzip"}}finally{n&&await r.cancel()}return{ext:"gz",mime:"application/gzip"}}if(this.check([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(this.checkString("ID3")){await e.ignore(6);let t=await e.readToken(Ye);return e.position+t>e.fileInfo.size?{ext:"mp3",mime:"audio/mpeg"}:(await e.ignore(t),this.fromTokenizer(e))}if(this.checkString("MP+"))return{ext:"mpc",mime:"audio/x-musepack"};if((this.buffer[0]===67||this.buffer[0]===70)&&this.check([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(this.check([255,216,255]))return this.check([247],{offset:3})?{ext:"jls",mime:"image/jls"}:{ext:"jpg",mime:"image/jpeg"};if(this.check([79,98,106,1]))return{ext:"avro",mime:"application/avro"};if(this.checkString("FLIF"))return{ext:"flif",mime:"image/flif"};if(this.checkString("8BPS"))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(this.checkString("MPCK"))return{ext:"mpc",mime:"audio/x-musepack"};if(this.checkString("FORM"))return{ext:"aif",mime:"audio/aiff"};if(this.checkString("icns",{offset:0}))return{ext:"icns",mime:"image/icns"};if(this.check([80,75,3,4])){let t;return await new H(e).unzip(r=>{switch(r.filename){case"META-INF/mozilla.rsa":return t={ext:"xpi",mime:"application/x-xpinstall"},{stop:!0};case"META-INF/MANIFEST.MF":return t={ext:"jar",mime:"application/java-archive"},{stop:!0};case"mimetype":return{async handler(n){let o=new TextDecoder("utf-8").decode(n).trim();t=ge(o)},stop:!0};case"[Content_Types].xml":return{async handler(n){let o=new TextDecoder("utf-8").decode(n),s=o.indexOf('.main+xml"');if(s===-1){let c="application/vnd.ms-package.3dmanufacturing-3dmodel+xml";o.includes(`ContentType="${c}"`)&&(t=ge(c))}else{o=o.slice(0,Math.max(0,s));let c=o.lastIndexOf('"'),p=o.slice(Math.max(0,c+1));t=ge(p)}},stop:!0};default:return/classes\d*\.dex/.test(r.filename)?(t={ext:"apk",mime:"application/vnd.android.package-archive"},{stop:!0}):{}}}).catch(r=>{if(!(r instanceof x))throw r}),t??{ext:"zip",mime:"application/zip"}}if(this.checkString("OggS")){await e.ignore(28);let t=new Uint8Array(8);return await e.readBuffer(t),A(t,[79,112,117,115,72,101,97,100])?{ext:"opus",mime:"audio/ogg; codecs=opus"}:A(t,[128,116,104,101,111,114,97])?{ext:"ogv",mime:"video/ogg"}:A(t,[1,118,105,100,101,111,0])?{ext:"ogm",mime:"video/ogg"}:A(t,[127,70,76,65,67])?{ext:"oga",mime:"audio/ogg"}:A(t,[83,112,101,101,120,32,32])?{ext:"spx",mime:"audio/ogg"}:A(t,[1,118,111,114,98,105,115])?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"}}if(this.check([80,75])&&(this.buffer[2]===3||this.buffer[2]===5||this.buffer[2]===7)&&(this.buffer[3]===4||this.buffer[3]===6||this.buffer[3]===8))return{ext:"zip",mime:"application/zip"};if(this.checkString("MThd"))return{ext:"mid",mime:"audio/midi"};if(this.checkString("wOFF")&&(this.check([0,1,0,0],{offset:4})||this.checkString("OTTO",{offset:4})))return{ext:"woff",mime:"font/woff"};if(this.checkString("wOF2")&&(this.check([0,1,0,0],{offset:4})||this.checkString("OTTO",{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(this.check([212,195,178,161])||this.check([161,178,195,212]))return{ext:"pcap",mime:"application/vnd.tcpdump.pcap"};if(this.checkString("DSD "))return{ext:"dsf",mime:"audio/x-dsf"};if(this.checkString("LZIP"))return{ext:"lz",mime:"application/x-lzip"};if(this.checkString("fLaC"))return{ext:"flac",mime:"audio/flac"};if(this.check([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(this.checkString("wvpk"))return{ext:"wv",mime:"audio/wavpack"};if(this.checkString("%PDF"))return{ext:"pdf",mime:"application/pdf"};if(this.check([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(this.check([73,73])){let t=await this.readTiffHeader(!1);if(t)return t}if(this.check([77,77])){let t=await this.readTiffHeader(!0);if(t)return t}if(this.checkString("MAC "))return{ext:"ape",mime:"audio/ape"};if(this.check([26,69,223,163])){async function t(){let c=await e.peekNumber(Be),p=128,m=0;for(;(c&p)===0&&p!==0;)++m,p>>=1;let a=new Uint8Array(m+1);return await e.readBuffer(a),a}async function r(){let c=await t(),p=await t();p[0]^=128>>p.length-1;let m=Math.min(6,p.length),a=new DataView(c.buffer),f=new DataView(p.buffer,p.length-m,m);return{id:de(a),len:de(f)}}async function n(c){for(;c>0;){let p=await r();if(p.id===17026)return(await e.readToken(new b(p.len))).replaceAll(/\00.*$/g,"");await e.ignore(p.len),--c}}let o=await r();switch(await n(o.len)){case"webm":return{ext:"webm",mime:"video/webm"};case"matroska":return{ext:"mkv",mime:"video/matroska"};default:return}}if(this.checkString("SQLi"))return{ext:"sqlite",mime:"application/x-sqlite3"};if(this.check([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(this.checkString("Cr24"))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(this.checkString("MSCF")||this.checkString("ISc("))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(this.check([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(this.check([197,208,211,198]))return{ext:"eps",mime:"application/eps"};if(this.check([40,181,47,253]))return{ext:"zst",mime:"application/zstd"};if(this.check([127,69,76,70]))return{ext:"elf",mime:"application/x-elf"};if(this.check([33,66,68,78]))return{ext:"pst",mime:"application/vnd.ms-outlook"};if(this.checkString("PAR1")||this.checkString("PARE"))return{ext:"parquet",mime:"application/vnd.apache.parquet"};if(this.checkString("ttcf"))return{ext:"ttc",mime:"font/collection"};if(this.check([207,250,237,254]))return{ext:"macho",mime:"application/x-mach-binary"};if(this.check([4,34,77,24]))return{ext:"lz4",mime:"application/x-lz4"};if(this.checkString("regf"))return{ext:"dat",mime:"application/x-ft-windows-registry-hive"};if(this.checkString("$FL2")||this.checkString("$FL3"))return{ext:"sav",mime:"application/x-spss-sav"};if(this.check([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(this.checkString("#!AMR"))return{ext:"amr",mime:"audio/amr"};if(this.checkString("{\\rtf"))return{ext:"rtf",mime:"application/rtf"};if(this.check([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(this.checkString("IMPM"))return{ext:"it",mime:"audio/x-it"};if(this.checkString("-lh0-",{offset:2})||this.checkString("-lh1-",{offset:2})||this.checkString("-lh2-",{offset:2})||this.checkString("-lh3-",{offset:2})||this.checkString("-lh4-",{offset:2})||this.checkString("-lh5-",{offset:2})||this.checkString("-lh6-",{offset:2})||this.checkString("-lh7-",{offset:2})||this.checkString("-lzs-",{offset:2})||this.checkString("-lz4-",{offset:2})||this.checkString("-lz5-",{offset:2})||this.checkString("-lhd-",{offset:2}))return{ext:"lzh",mime:"application/x-lzh-compressed"};if(this.check([0,0,1,186])){if(this.check([33],{offset:4,mask:[241]}))return{ext:"mpg",mime:"video/MP1S"};if(this.check([68],{offset:4,mask:[196]}))return{ext:"mpg",mime:"video/MP2P"}}if(this.checkString("ITSF"))return{ext:"chm",mime:"application/vnd.ms-htmlhelp"};if(this.check([202,254,186,190]))return{ext:"class",mime:"application/java-vm"};if(this.checkString(".RMF"))return{ext:"rm",mime:"application/vnd.rn-realmedia"};if(this.checkString("DRACO"))return{ext:"drc",mime:"application/vnd.google.draco"};if(this.check([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(this.checkString("<?xml "))return{ext:"xml",mime:"application/xml"};if(this.check([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(this.check([82,97,114,33,26,7])&&(this.buffer[6]===0||this.buffer[6]===1))return{ext:"rar",mime:"application/x-rar-compressed"};if(this.checkString("solid "))return{ext:"stl",mime:"model/stl"};if(this.checkString("AC")){let t=new b(4,"latin1").get(this.buffer,2);if(t.match("^d*")&&t>=1e3&&t<=1050)return{ext:"dwg",mime:"image/vnd.dwg"}}if(this.checkString("070707"))return{ext:"cpio",mime:"application/x-cpio"};if(this.checkString("BLENDER"))return{ext:"blend",mime:"application/x-blender"};if(this.checkString("!<arch>"))return await e.ignore(8),await e.readToken(new b(13,"ascii"))==="debian-binary"?{ext:"deb",mime:"application/x-deb"}:{ext:"ar",mime:"application/x-unix-archive"};if(this.checkString("WEBVTT")&&[`
6
- `,"\r"," "," ","\0"].some(t=>this.checkString(t,{offset:6})))return{ext:"vtt",mime:"text/vtt"};if(this.check([137,80,78,71,13,10,26,10])){await e.ignore(8);async function t(){return{length:await e.readToken(Oe),type:await e.readToken(new b(4,"latin1"))}}do{let r=await t();if(r.length<0)return;switch(r.type){case"IDAT":return{ext:"png",mime:"image/png"};case"acTL":return{ext:"apng",mime:"image/apng"};default:await e.ignore(r.length+4)}}while(e.position+8<e.fileInfo.size);return{ext:"png",mime:"image/png"}}if(this.check([65,82,82,79,87,49,0,0]))return{ext:"arrow",mime:"application/vnd.apache.arrow.file"};if(this.check([103,108,84,70,2,0,0,0]))return{ext:"glb",mime:"model/gltf-binary"};if(this.check([102,114,101,101],{offset:4})||this.check([109,100,97,116],{offset:4})||this.check([109,111,111,118],{offset:4})||this.check([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(this.check([73,73,82,79,8,0,0,0,24]))return{ext:"orf",mime:"image/x-olympus-orf"};if(this.checkString("gimp xcf "))return{ext:"xcf",mime:"image/x-xcf"};if(this.checkString("ftyp",{offset:4})&&(this.buffer[8]&96)!==0){let t=new b(4,"latin1").get(this.buffer,8).replace("\0"," ").trim();switch(t){case"avif":case"avis":return{ext:"avif",mime:"image/avif"};case"mif1":return{ext:"heic",mime:"image/heif"};case"msf1":return{ext:"heic",mime:"image/heif-sequence"};case"heic":case"heix":return{ext:"heic",mime:"image/heic"};case"hevc":case"hevx":return{ext:"heic",mime:"image/heic-sequence"};case"qt":return{ext:"mov",mime:"video/quicktime"};case"M4V":case"M4VH":case"M4VP":return{ext:"m4v",mime:"video/x-m4v"};case"M4P":return{ext:"m4p",mime:"video/mp4"};case"M4B":return{ext:"m4b",mime:"audio/mp4"};case"M4A":return{ext:"m4a",mime:"audio/x-m4a"};case"F4V":return{ext:"f4v",mime:"video/mp4"};case"F4P":return{ext:"f4p",mime:"video/mp4"};case"F4A":return{ext:"f4a",mime:"audio/mp4"};case"F4B":return{ext:"f4b",mime:"audio/mp4"};case"crx":return{ext:"cr3",mime:"image/x-canon-cr3"};default:return t.startsWith("3g")?t.startsWith("3g2")?{ext:"3g2",mime:"video/3gpp2"}:{ext:"3gp",mime:"video/3gpp"}:{ext:"mp4",mime:"video/mp4"}}}if(this.checkString(`REGEDIT4\r
7
- `))return{ext:"reg",mime:"application/x-ms-regedit"};if(this.check([82,73,70,70])){if(this.checkString("WEBP",{offset:8}))return{ext:"webp",mime:"image/webp"};if(this.check([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(this.check([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/wav"};if(this.check([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(this.check([73,73,85,0,24,0,0,0,136,231,116,216]))return{ext:"rw2",mime:"image/x-panasonic-rw2"};if(this.check([48,38,178,117,142,102,207,17,166,217])){async function t(){let r=new Uint8Array(16);return await e.readBuffer(r),{id:r,size:Number(await e.readToken(De))}}for(await e.ignore(30);e.position+24<e.fileInfo.size;){let r=await t(),n=r.size-24;if(A(r.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){let o=new Uint8Array(16);if(n-=await e.readBuffer(o),A(o,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"audio/x-ms-asf"};if(A(o,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"video/x-ms-asf"};break}await e.ignore(n)}return{ext:"asf",mime:"application/vnd.ms-asf"}}if(this.check([171,75,84,88,32,49,49,187,13,10,26,10]))return{ext:"ktx",mime:"image/ktx"};if((this.check([126,16,4])||this.check([126,24,4]))&&this.check([48,77,73,69],{offset:4}))return{ext:"mie",mime:"application/x-mie"};if(this.check([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2}))return{ext:"shp",mime:"application/x-esri-shape"};if(this.check([255,79,255,81]))return{ext:"j2c",mime:"image/j2c"};if(this.check([0,0,0,12,106,80,32,32,13,10,135,10]))switch(await e.ignore(20),await e.readToken(new b(4,"ascii"))){case"jp2 ":return{ext:"jp2",mime:"image/jp2"};case"jpx ":return{ext:"jpx",mime:"image/jpx"};case"jpm ":return{ext:"jpm",mime:"image/jpm"};case"mjp2":return{ext:"mj2",mime:"image/mj2"};default:return}if(this.check([255,10])||this.check([0,0,0,12,74,88,76,32,13,10,135,10]))return{ext:"jxl",mime:"image/jxl"};if(this.check([254,255]))return this.checkString("<?xml ",{offset:2,encoding:"utf-16be"})?{ext:"xml",mime:"application/xml"}:void 0;if(this.check([208,207,17,224,161,177,26,225]))return{ext:"cfb",mime:"application/x-cfb"};if(await e.peekBuffer(this.buffer,{length:Math.min(256,e.fileInfo.size),mayBeLess:!0}),this.check([97,99,115,112],{offset:36}))return{ext:"icc",mime:"application/vnd.iccprofile"};if(this.checkString("**ACE",{offset:7})&&this.checkString("**",{offset:12}))return{ext:"ace",mime:"application/x-ace-compressed"};if(this.checkString("BEGIN:")){if(this.checkString("VCARD",{offset:6}))return{ext:"vcf",mime:"text/vcard"};if(this.checkString("VCALENDAR",{offset:6}))return{ext:"ics",mime:"text/calendar"}}if(this.checkString("FUJIFILMCCD-RAW"))return{ext:"raf",mime:"image/x-fujifilm-raf"};if(this.checkString("Extended Module:"))return{ext:"xm",mime:"audio/x-xm"};if(this.checkString("Creative Voice File"))return{ext:"voc",mime:"audio/x-voc"};if(this.check([4,0,0,0])&&this.buffer.length>=16){let t=new DataView(this.buffer.buffer).getUint32(12,!0);if(t>12&&this.buffer.length>=t+16)try{let r=new TextDecoder().decode(this.buffer.subarray(16,t+16));if(JSON.parse(r).files)return{ext:"asar",mime:"application/x-asar"}}catch{}}if(this.check([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(this.checkString("SCRM",{offset:44}))return{ext:"s3m",mime:"audio/x-s3m"};if(this.check([71])&&this.check([71],{offset:188}))return{ext:"mts",mime:"video/mp2t"};if(this.check([71],{offset:4})&&this.check([71],{offset:196}))return{ext:"mts",mime:"video/mp2t"};if(this.check([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(this.check([68,73,67,77],{offset:128}))return{ext:"dcm",mime:"application/dicom"};if(this.check([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70]))return{ext:"lnk",mime:"application/x.ms.shortcut"};if(this.check([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0]))return{ext:"alias",mime:"application/x.apple.alias"};if(this.checkString("Kaydara FBX Binary \0"))return{ext:"fbx",mime:"application/x.autodesk.fbx"};if(this.check([76,80],{offset:34})&&(this.check([0,0,1],{offset:8})||this.check([1,0,2],{offset:8})||this.check([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(this.check([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29]))return{ext:"indd",mime:"application/x-indesign"};if(this.check([255,255,0,0,7,0,0,0,4,0,0,0,1,0,1,0])||this.check([0,0,255,255,0,0,0,7,0,0,0,4,0,1,0,1]))return{ext:"jmp",mime:"application/x-jmp-data"};if(await e.peekBuffer(this.buffer,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0}),this.checkString("ustar",{offset:257})&&(this.checkString("\0",{offset:262})||this.checkString(" ",{offset:262}))||this.check([0,0,0,0,0,0],{offset:257})&&Qe(this.buffer))return{ext:"tar",mime:"application/x-tar"};if(this.check([255,254])){let t="utf-16le";return this.checkString("<?xml ",{offset:2,encoding:t})?{ext:"xml",mime:"application/xml"}:this.check([255,14],{offset:2})&&this.checkString("SketchUp Model",{offset:4,encoding:t})?{ext:"skp",mime:"application/vnd.sketchup.skp"}:this.checkString(`Windows Registry Editor Version 5.00\r
8
- `,{offset:2,encoding:t})?{ext:"reg",mime:"application/x-ms-regedit"}:void 0}if(this.checkString("-----BEGIN PGP MESSAGE-----"))return{ext:"pgp",mime:"application/pgp-encrypted"}};detectImprecise=async e=>{if(this.buffer=new Uint8Array(he),await e.peekBuffer(this.buffer,{length:Math.min(8,e.fileInfo.size),mayBeLess:!0}),this.check([0,0,1,186])||this.check([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(this.check([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(this.check([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(this.check([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(await e.peekBuffer(this.buffer,{length:Math.min(2+this.options.mpegOffsetTolerance,e.fileInfo.size),mayBeLess:!0}),this.buffer.length>=2+this.options.mpegOffsetTolerance)for(let t=0;t<=this.options.mpegOffsetTolerance;++t){let r=this.scanMpeg(t);if(r)return r}};async readTiffTag(e){let t=await this.tokenizer.readToken(e?R:d);switch(this.tokenizer.ignore(10),t){case 50341:return{ext:"arw",mime:"image/x-sony-arw"};case 50706:return{ext:"dng",mime:"image/x-adobe-dng"};default:}}async readTiffIFD(e){let t=await this.tokenizer.readToken(e?R:d);for(let r=0;r<t;++r){let n=await this.readTiffTag(e);if(n)return n}}async readTiffHeader(e){let t=(e?R:d).get(this.buffer,2),r=(e?Ie:h).get(this.buffer,4);if(t===42){if(r>=6){if(this.checkString("CR",{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r>=8){let o=(e?R:d).get(this.buffer,8),s=(e?R:d).get(this.buffer,10);if(o===28&&s===254||o===31&&s===11)return{ext:"nef",mime:"image/x-nikon-nef"}}}return await this.tokenizer.ignore(r),await this.readTiffIFD(e)??{ext:"tif",mime:"image/tiff"}}if(t===43)return{ext:"tif",mime:"image/tiff"}}scanMpeg(e){if(this.check([255,224],{offset:e,mask:[255,224]})){if(this.check([16],{offset:e+1,mask:[22]}))return this.check([8],{offset:e+1,mask:[8]})?{ext:"aac",mime:"audio/aac"}:{ext:"aac",mime:"audio/aac"};if(this.check([2],{offset:e+1,mask:[6]}))return{ext:"mp3",mime:"audio/mpeg"};if(this.check([4],{offset:e+1,mask:[6]}))return{ext:"mp2",mime:"audio/mpeg"};if(this.check([6],{offset:e+1,mask:[6]}))return{ext:"mp1",mime:"audio/mpeg"}}}},Ht=new Set(Ke),Wt=new Set(et);var Vt={name:"file",summary:"determine file type",usage:"file [OPTION]... FILE...",options:["-b, --brief do not prepend filenames to output","-i, --mime output MIME type strings","-L, --dereference follow symlinks"," --help display this help and exit"]},qt=new Map([[".js",{description:"JavaScript source",mime:"text/javascript"}],[".mjs",{description:"JavaScript module",mime:"text/javascript"}],[".cjs",{description:"CommonJS module",mime:"text/javascript"}],[".ts",{description:"TypeScript source",mime:"text/typescript"}],[".tsx",{description:"TypeScript JSX source",mime:"text/typescript"}],[".jsx",{description:"JavaScript JSX source",mime:"text/javascript"}],[".py",{description:"Python script",mime:"text/x-python"}],[".rb",{description:"Ruby script",mime:"text/x-ruby"}],[".go",{description:"Go source",mime:"text/x-go"}],[".rs",{description:"Rust source",mime:"text/x-rust"}],[".c",{description:"C source",mime:"text/x-c"}],[".h",{description:"C header",mime:"text/x-c"}],[".cpp",{description:"C++ source",mime:"text/x-c++"}],[".hpp",{description:"C++ header",mime:"text/x-c++"}],[".java",{description:"Java source",mime:"text/x-java"}],[".sh",{description:"Bourne-Again shell script",mime:"text/x-shellscript"}],[".bash",{description:"Bourne-Again shell script",mime:"text/x-shellscript"}],[".zsh",{description:"Zsh shell script",mime:"text/x-shellscript"}],[".json",{description:"JSON data",mime:"application/json"}],[".yaml",{description:"YAML data",mime:"text/yaml"}],[".yml",{description:"YAML data",mime:"text/yaml"}],[".xml",{description:"XML document",mime:"application/xml"}],[".csv",{description:"CSV text",mime:"text/csv"}],[".toml",{description:"TOML data",mime:"text/toml"}],[".html",{description:"HTML document",mime:"text/html"}],[".htm",{description:"HTML document",mime:"text/html"}],[".css",{description:"CSS stylesheet",mime:"text/css"}],[".svg",{description:"SVG image",mime:"image/svg+xml"}],[".md",{description:"Markdown document",mime:"text/markdown"}],[".markdown",{description:"Markdown document",mime:"text/markdown"}],[".txt",{description:"ASCII text",mime:"text/plain"}],[".rst",{description:"reStructuredText",mime:"text/x-rst"}],[".env",{description:"ASCII text",mime:"text/plain"}],[".gitignore",{description:"ASCII text",mime:"text/plain"}],[".dockerignore",{description:"ASCII text",mime:"text/plain"}]]),Gt=new Map([["jpg","JPEG image data"],["jpeg","JPEG image data"],["png","PNG image data"],["gif","GIF image data"],["webp","WebP image data"],["bmp","PC bitmap"],["ico","MS Windows icon resource"],["tif","TIFF image data"],["tiff","TIFF image data"],["psd","Adobe Photoshop Document"],["avif","AVIF image"],["heic","HEIC image"],["heif","HEIF image"],["jxl","JPEG XL image"],["icns","Mac OS X icon"],["svg","SVG Scalable Vector Graphics image"],["pdf","PDF document"],["epub","EPUB document"],["mobi","Mobipocket E-book"],["djvu","DjVu document"],["zip","Zip archive data"],["gz","gzip compressed data"],["gzip","gzip compressed data"],["bz2","bzip2 compressed data"],["xz","XZ compressed data"],["tar","POSIX tar archive"],["rar","RAR archive data"],["7z","7-zip archive data"],["lz","lzip compressed data"],["lzma","LZMA compressed data"],["zst","Zstandard compressed data"],["cab","Microsoft Cabinet archive"],["ar","Unix ar archive"],["rpm","RPM package"],["deb","Debian binary package"],["apk","Android Package"],["dmg","Apple disk image"],["iso","ISO 9660 CD-ROM filesystem data"],["vhd","Microsoft Virtual Hard Disk"],["vhdx","Microsoft Virtual Hard Disk (new format)"],["qcow2","QEMU QCOW Image"],["mp3","Audio file with ID3"],["m4a","MPEG-4 audio"],["aac","AAC audio"],["wav","RIFF (little-endian) data, WAVE audio"],["flac","FLAC audio bitstream data"],["ogg","Ogg data"],["oga","Ogg audio"],["opus","Ogg Opus audio"],["aiff","AIFF audio"],["wma","Windows Media Audio"],["amr","AMR audio"],["mid","MIDI audio"],["midi","MIDI audio"],["ape","Monkey's Audio"],["mp4","ISO Media, MPEG-4"],["m4v","MPEG-4 video"],["webm","WebM"],["avi","RIFF (little-endian) data, AVI"],["mov","ISO Media, Apple QuickTime movie"],["mkv","Matroska data"],["wmv","Windows Media Video"],["flv","Flash Video"],["3gp","3GPP multimedia"],["3g2","3GPP2 multimedia"],["ogv","Ogg video"],["mts","MPEG transport stream"],["m2ts","MPEG transport stream"],["ts","MPEG transport stream"],["mpg","MPEG video"],["mpeg","MPEG video"],["exe","PE32 executable"],["dll","PE32 DLL"],["elf","ELF executable"],["mach","Mach-O executable"],["wasm","WebAssembly (wasm) binary module"],["dex","Android Dalvik executable"],["class","Java class file"],["swf","Adobe Flash"],["doc","Microsoft Word Document"],["docx","Microsoft Word 2007+ Document"],["xls","Microsoft Excel Spreadsheet"],["xlsx","Microsoft Excel 2007+ Spreadsheet"],["ppt","Microsoft PowerPoint Presentation"],["pptx","Microsoft PowerPoint 2007+ Presentation"],["odt","OpenDocument Text"],["ods","OpenDocument Spreadsheet"],["odp","OpenDocument Presentation"],["ttf","TrueType Font"],["otf","OpenType Font"],["woff","Web Open Font Format"],["woff2","Web Open Font Format 2"],["eot","Embedded OpenType font"],["stl","Stereolithography CAD"],["obj","Wavefront 3D Object"],["gltf","GL Transmission Format"],["glb","GL Transmission Format (binary)"],["sqlite","SQLite 3.x database"],["mdb","Microsoft Access Database"],["xml","XML document"],["json","JSON data"],["macho","Mach-O binary"],["ics","iCalendar data"],["vcf","vCard data"],["msi","Microsoft Installer"],["ps","PostScript"],["ai","Adobe Illustrator"],["indd","Adobe InDesign"],["sketch","Sketch design file"],["fig","Figma design file"],["xd","Adobe XD"],["blend","Blender"],["fbx","Autodesk FBX"],["lnk","MS Windows shortcut"],["alias","Mac OS alias"],["torrent","BitTorrent file"],["pcap","pcap capture file"],["arrow","Apache Arrow"],["parquet","Apache Parquet"]]);function Jt(i,e){let t=Gt.get(i);if(t)return t;let[r,n]=e.split("/"),o=n?.split("+")[0]?.replace(/-/g," ")||i;switch(r){case"image":return`${o.toUpperCase()} image data`;case"audio":return`${o.toUpperCase()} audio`;case"video":return`${o.toUpperCase()} video`;case"font":return`${o} font`;case"model":return`${o} 3D model`;case"application":return n?.includes("zip")||n?.includes("compressed")?`${o} archive data`:n?.includes("executable")?`${o} executable`:`${i.toUpperCase()} data`;default:return`${i.toUpperCase()} data`}}function Xt(i){let e=i.split("/").pop()||i;if(e.startsWith(".")&&!e.includes(".",1))return e;let t=e.lastIndexOf(".");return t===-1||t===0?"":e.slice(t).toLowerCase()}function Zt(i,e){if(i.startsWith("#!")){let m=i.split(`
9
- `)[0];return m.includes("python")?{description:"Python script, ASCII text executable",mime:"text/x-python"}:m.includes("node")||m.includes("bun")||m.includes("deno")?{description:"JavaScript script, ASCII text executable",mime:"text/javascript"}:m.includes("bash")?{description:"Bourne-Again shell script, ASCII text executable",mime:"text/x-shellscript"}:m.includes("sh")?{description:"POSIX shell script, ASCII text executable",mime:"text/x-shellscript"}:m.includes("ruby")?{description:"Ruby script, ASCII text executable",mime:"text/x-ruby"}:m.includes("perl")?{description:"Perl script, ASCII text executable",mime:"text/x-perl"}:{description:"script, ASCII text executable",mime:"text/plain"}}let t=i.trimStart();if(t.startsWith("<?xml"))return{description:"XML document",mime:"application/xml"};if(t.startsWith("<!DOCTYPE html")||t.toLowerCase().startsWith("<html"))return{description:"HTML document",mime:"text/html"};let r=i.includes(`\r
10
- `),n=i.includes("\r")&&!r,o="";r?o=", with CRLF line terminators":n&&(o=", with CR line terminators");let s=Xt(e),c=s?qt.get(s):void 0;if(c)return c.mime.startsWith("text/")&&o?{description:`${c.description}${o}`,mime:c.mime}:c;let p=!1;for(let m=0;m<Math.min(i.length,8192);m++)if(i.charCodeAt(m)>127){p=!0;break}return p?{description:`UTF-8 Unicode text${o}`,mime:"text/plain; charset=utf-8"}:{description:`ASCII text${o}`,mime:"text/plain"}}async function Qt(i,e){if(e.length===0)return{description:"empty",mime:"inode/x-empty"};let t=await ke(e);if(t)return{description:Jt(t.ext,t.mime),mime:t.mime};let r=new TextDecoder("utf-8",{fatal:!1}).decode(e);return Zt(r,i)}var Dr={name:"file",async execute(i,e){if(Fe(i))return Ce(Vt);let t=!1,r=!1,n=[];for(let c of i)if(c.startsWith("--")){if(c==="--brief")t=!0;else if(c==="--mime"||c==="--mime-type")r=!0;else if(c!=="--dereference")return ne("file",c)}else if(c.startsWith("-")&&c!=="-"){for(let p of c.slice(1))if(p==="b")t=!0;else if(p==="i")r=!0;else if(p!=="L")return ne("file",`-${p}`)}else n.push(c);if(n.length===0)return{stdout:"",stderr:`Usage: file [-bLi] FILE...
11
- `,exitCode:1};let o="",s=0;for(let c of n)try{let p=e.fs.resolvePath(e.cwd,c);if((await e.fs.stat(p)).isDirectory){let u=r?"inode/directory":"directory";o+=t?`${u}
12
- `:`${c}: ${u}
13
- `;continue}let a=await e.fs.readFileBuffer(p),f=await Qt(c,a),l=r?f.mime:f.description;o+=t?`${l}
14
- `:`${c}: ${l}
15
- `}catch{o+=t?`cannot open
16
- `:`${c}: cannot open (No such file or directory)
17
- `,s=1}return{stdout:o,stderr:"",exitCode:s}}},Mr={name:"file",flags:[{flag:"-b",type:"boolean"},{flag:"-i",type:"boolean"},{flag:"-L",type:"boolean"}],needsArgs:!0};export{Dr as a,Mr as b};
18
- /*! Bundled license information:
19
-
20
- ieee754/index.js:
21
- (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
22
- */
@@ -1 +0,0 @@
1
- var r=globalThis.SharedArrayBuffer,e=globalThis.Atomics,o=performance.now.bind(performance),a=globalThis.Headers;export{r as a,e as b,o as c,a as d};
@@ -1,11 +0,0 @@
1
- import{a as p,b as h,c as w}from"./chunk-74CEPOFO.js";var m={name:"fold",summary:"wrap each input line to fit in specified width",usage:"fold [OPTION]... [FILE]...",description:"Wrap input lines in each FILE, writing to standard output. If no FILE is specified, standard input is read.",options:["-w WIDTH Use WIDTH columns instead of 80","-s Break at spaces","-b Count bytes rather than columns"],examples:["fold -w 40 file.txt # Wrap at 40 columns","fold -sw 40 file.txt # Word wrap at 40 columns","echo 'long line' | fold -w 5 # Force wrap at 5"]};function g(s,r,n){return n?new TextEncoder().encode(s).length:s===" "?8-r%8:s==="\b"?-1:1}function y(s,r){if(s.length===0)return s;let{width:n,breakAtSpaces:u,countBytes:i}=r,l=[],e="",t=0,o=-1,f=0;for(let c=0;c<s.length;c++){let a=s[c],d=g(a,t,i);t+d>n&&e.length>0?u&&o>=0?(l.push(e.slice(0,o+1)),e=e.slice(o+1)+a,t=t-f-1+d,o=-1,f=0):(l.push(e),e=a,t=d,o=-1,f=0):(e+=a,t+=d,(a===" "||a===" ")&&(o=e.length-1,f=t-d))}return e.length>0&&l.push(e),l.join(`
2
- `)}function b(s,r){if(s==="")return"";let n=s.split(`
3
- `),u=s.endsWith(`
4
- `)&&n[n.length-1]==="";return u&&n.pop(),n.map(l=>y(l,r)).join(`
5
- `)+(u?`
6
- `:"")}var k={name:"fold",execute:async(s,r)=>{if(h(s))return p(m);let n={width:80,breakAtSpaces:!1,countBytes:!1},u=[],i=0;for(;i<s.length;){let e=s[i];if(e==="-w"&&i+1<s.length){let t=parseInt(s[i+1],10);if(Number.isNaN(t)||t<1)return{exitCode:1,stdout:"",stderr:`fold: invalid number of columns: '${s[i+1]}'
7
- `};n.width=t,i+=2}else if(e.startsWith("-w")&&e.length>2){let t=parseInt(e.slice(2),10);if(Number.isNaN(t)||t<1)return{exitCode:1,stdout:"",stderr:`fold: invalid number of columns: '${e.slice(2)}'
8
- `};n.width=t,i++}else if(e==="-s")n.breakAtSpaces=!0,i++;else if(e==="-b")n.countBytes=!0,i++;else if(e==="-bs"||e==="-sb")n.breakAtSpaces=!0,n.countBytes=!0,i++;else if(e.match(/^-[sb]+w\d+$/)){e.includes("s")&&(n.breakAtSpaces=!0),e.includes("b")&&(n.countBytes=!0);let t=e.replace(/^-[sb]+w/,""),o=parseInt(t,10);if(Number.isNaN(o)||o<1)return{exitCode:1,stdout:"",stderr:`fold: invalid number of columns: '${t}'
9
- `};n.width=o,i++}else if(e.match(/^-[sb]+w$/)&&i+1<s.length){e.includes("s")&&(n.breakAtSpaces=!0),e.includes("b")&&(n.countBytes=!0);let t=parseInt(s[i+1],10);if(Number.isNaN(t)||t<1)return{exitCode:1,stdout:"",stderr:`fold: invalid number of columns: '${s[i+1]}'
10
- `};n.width=t,i+=2}else if(e==="--"){u.push(...s.slice(i+1));break}else if(e.startsWith("-")&&e!=="-"){let t=e.slice(1),o=!1;for(let f of t)if(f==="s")n.breakAtSpaces=!0;else if(f==="b")n.countBytes=!0;else{o=!0;break}if(o)return w("fold",e);i++}else u.push(e),i++}let l="";if(u.length===0){let e=r.stdin??"";l=b(e,n)}else for(let e of u){let t=r.fs.resolvePath(r.cwd,e),o=await r.fs.readFile(t);if(o===null)return{exitCode:1,stdout:l,stderr:`fold: ${e}: No such file or directory
11
- `};l+=b(o,n)}return{exitCode:0,stdout:l,stderr:""}}},x={name:"fold",flags:[{flag:"-w",type:"value",valueHint:"number"},{flag:"-s",type:"boolean"},{flag:"-b",type:"boolean"}],stdinType:"text",needsFiles:!0};export{k as a,x as b};