just-bash 3.6.0 → 3.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (891) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/README.md +6 -0
  3. package/dist/bin/chunks/awk2-EPZ2CEQT.js +3 -0
  4. package/dist/bin/chunks/base64-D7ZXJQN6.js +3 -0
  5. package/dist/bin/chunks/bash-4Q4RMIZL.js +3 -0
  6. package/dist/bin/chunks/cat-AST5Y57Y.js +3 -0
  7. package/dist/bin/chunks/chmod-BFP7P5CD.js +3 -0
  8. package/dist/bin/chunks/chunk-26O2G5LX.js +34 -0
  9. package/dist/bin/chunks/chunk-2RDKEB6Z.js +15 -0
  10. package/dist/bin/chunks/chunk-35U2THFB.js +3 -0
  11. package/dist/bin/chunks/chunk-3F7UWBEM.js +17 -0
  12. package/dist/bin/chunks/chunk-3WLAERUX.js +3 -0
  13. package/dist/bin/chunks/chunk-3WZIZUMC.js +8 -0
  14. package/dist/bin/chunks/chunk-4ARWO6Y3.js +4 -0
  15. package/dist/bin/chunks/chunk-4HVMRZ5N.js +8 -0
  16. package/dist/bin/chunks/chunk-5AS7PRVN.js +34 -0
  17. package/dist/bin/chunks/chunk-5GYAEVIB.js +10 -0
  18. package/dist/bin/chunks/chunk-5IPYW47P.js +27 -0
  19. package/dist/bin/chunks/chunk-5ZTIV6TI.js +20 -0
  20. package/dist/bin/chunks/chunk-6C2YS7G6.js +14 -0
  21. package/dist/bin/chunks/chunk-74MYVPDY.js +3 -0
  22. package/dist/bin/chunks/chunk-74UP5NWP.js +3 -0
  23. package/dist/bin/chunks/chunk-7DPD5PK3.js +3 -0
  24. package/dist/bin/chunks/chunk-7LJGZPVP.js +18 -0
  25. package/dist/bin/chunks/chunk-7NEXHFSS.js +3 -0
  26. package/dist/bin/chunks/chunk-7XFMCB5C.js +21 -0
  27. package/dist/bin/chunks/chunk-A53Y4KDG.js +7 -0
  28. package/dist/bin/chunks/chunk-AALAYQ6J.js +17 -0
  29. package/dist/bin/chunks/chunk-AM4WIHAG.js +10 -0
  30. package/dist/bin/chunks/chunk-BC5OXEFJ.js +3 -0
  31. package/dist/bin/chunks/chunk-C5ABXV4P.js +15 -0
  32. package/dist/bin/chunks/chunk-CT6P7ILU.js +3 -0
  33. package/dist/bin/chunks/chunk-CYHG3NVG.js +9 -0
  34. package/dist/bin/chunks/chunk-D7PDAJWE.js +7 -0
  35. package/dist/bin/chunks/chunk-DB3G3UVZ.js +5 -0
  36. package/dist/bin/chunks/chunk-EIUU35ZP.js +37 -0
  37. package/dist/bin/chunks/chunk-EMHJNKV5.js +20 -0
  38. package/dist/bin/chunks/chunk-EPWMLTS6.js +9 -0
  39. package/dist/bin/chunks/chunk-F4QFFLWZ.js +8 -0
  40. package/dist/bin/chunks/chunk-F5R5O2Y6.js +9 -0
  41. package/dist/bin/chunks/chunk-FBEYY2HM.js +13 -0
  42. package/dist/bin/chunks/chunk-FIJBWMXU.js +12 -0
  43. package/dist/bin/chunks/chunk-FMVH4N2P.js +5 -0
  44. package/dist/bin/chunks/chunk-G6W2HMNY.js +7 -0
  45. package/dist/bin/chunks/chunk-GFI5BHZX.js +3 -0
  46. package/dist/bin/chunks/chunk-GJAVHEWO.js +143 -0
  47. package/dist/bin/chunks/chunk-GUVSOVQU.js +8 -0
  48. package/dist/bin/chunks/chunk-H22PAKR6.js +3 -0
  49. package/dist/bin/chunks/chunk-HXOJHK2Z.js +8 -0
  50. package/dist/bin/chunks/chunk-IAAYIH44.js +3 -0
  51. package/dist/bin/chunks/chunk-J7W2CRXT.js +7 -0
  52. package/dist/bin/chunks/chunk-JNWWOKCN.js +6 -0
  53. package/dist/bin/chunks/chunk-JQLGE4OW.js +22 -0
  54. package/dist/bin/chunks/chunk-K3U4M4MF.js +7 -0
  55. package/dist/bin/chunks/chunk-KRXYOWIP.js +12 -0
  56. package/dist/bin/chunks/chunk-L4L2QFS4.js +10 -0
  57. package/dist/bin/chunks/chunk-LU6ZEQNN.js +13 -0
  58. package/dist/bin/chunks/chunk-MLMKRR7L.js +12 -0
  59. package/dist/bin/chunks/chunk-MVN5WALS.js +7 -0
  60. package/dist/bin/chunks/chunk-MYOGTYIH.js +22 -0
  61. package/dist/bin/chunks/chunk-NF5LHCVV.js +275 -0
  62. package/dist/bin/chunks/chunk-OUGDZVL6.js +10 -0
  63. package/dist/bin/chunks/chunk-QCNQD6ME.js +11 -0
  64. package/dist/bin/chunks/chunk-QIDBJNMB.js +3 -0
  65. package/dist/bin/chunks/chunk-QKTQYL37.js +9 -0
  66. package/dist/bin/chunks/chunk-R6CMNMNX.js +22 -0
  67. package/dist/bin/chunks/chunk-RCP3WQND.js +7 -0
  68. package/dist/bin/chunks/chunk-RJG4JS32.js +6 -0
  69. package/dist/bin/chunks/chunk-SIMSIBUA.js +13 -0
  70. package/dist/bin/chunks/chunk-TNB7M24H.js +87 -0
  71. package/dist/bin/chunks/chunk-TU6P6AC2.js +4 -0
  72. package/dist/bin/chunks/chunk-TX4WSLXK.js +101 -0
  73. package/dist/bin/chunks/chunk-U4UY6P77.js +3 -0
  74. package/dist/bin/chunks/chunk-U5BNATW4.js +3 -0
  75. package/dist/bin/chunks/chunk-U7VJCJQR.js +16 -0
  76. package/dist/bin/chunks/chunk-VJE2PQW6.js +15 -0
  77. package/dist/bin/chunks/chunk-W4ENG3BR.js +44 -0
  78. package/dist/bin/chunks/chunk-XUFO4QPW.js +65 -0
  79. package/dist/bin/chunks/chunk-XVKL2UZA.js +4 -0
  80. package/dist/bin/chunks/chunk-YCUNLSHF.js +12 -0
  81. package/dist/bin/chunks/chunk-YDH7Q5WV.js +6 -0
  82. package/dist/bin/chunks/chunk-YDWLU56G.js +26 -0
  83. package/dist/bin/chunks/chunk-YILPYZYP.js +16 -0
  84. package/dist/bin/chunks/chunk-YZQ4SVJV.js +13 -0
  85. package/dist/bin/chunks/chunk-ZKLKNN6B.js +3 -0
  86. package/dist/bin/chunks/column-EGAQ7QMC.js +3 -0
  87. package/dist/bin/chunks/comm-JEJ6GWEA.js +3 -0
  88. package/dist/bin/chunks/cp-7AH7TSQ6.js +3 -0
  89. package/dist/bin/chunks/curl-7FCZQCFU.js +31 -0
  90. package/dist/bin/chunks/cut-OVTLUT2B.js +3 -0
  91. package/dist/bin/chunks/date-MKP5YWWY.js +3 -0
  92. package/dist/bin/chunks/diff-R6QTSWD2.js +3 -0
  93. package/dist/bin/chunks/dist-Q3QP7DWN.js +141 -0
  94. package/dist/bin/chunks/du-M2PB5NUH.js +3 -0
  95. package/dist/bin/chunks/env-EUSAZGWO.js +3 -0
  96. package/dist/bin/chunks/expand-B4CPOZN5.js +3 -0
  97. package/dist/bin/chunks/expr-AQBMSEFL.js +3 -0
  98. package/dist/bin/chunks/file-22CVQBNS.js +3 -0
  99. package/dist/bin/chunks/find-QYLHUYOP.js +3 -0
  100. package/dist/bin/chunks/flag-coverage-CTPK5ZWJ.js +3 -0
  101. package/dist/bin/chunks/fold-E6A5I4DW.js +3 -0
  102. package/dist/bin/chunks/grep-HI55D7F7.js +3 -0
  103. package/dist/bin/chunks/gzip-2GJMVXCF.js +3 -0
  104. package/dist/bin/chunks/head-ZQIB2GSI.js +3 -0
  105. package/dist/bin/chunks/html-to-markdown-7ZNLM4SQ.js +3 -0
  106. package/dist/bin/chunks/join-KCYMLQ3V.js +3 -0
  107. package/dist/bin/chunks/jq-KNI4FJIL.js +3 -0
  108. package/dist/bin/chunks/js-exec-OWDAX677.js +1617 -0
  109. package/dist/bin/chunks/ls-QCAGDEDW.js +3 -0
  110. package/dist/bin/chunks/md5sum-OPJ77ZY7.js +3 -0
  111. package/dist/bin/chunks/mkdir-3XFSFVPC.js +3 -0
  112. package/dist/bin/chunks/mktemp-5FA55IJS.js +3 -0
  113. package/dist/bin/chunks/mv-UASF6NAX.js +3 -0
  114. package/dist/bin/chunks/nl-HUDE6DQC.js +3 -0
  115. package/dist/bin/chunks/od-CECQKF5P.js +3 -0
  116. package/dist/bin/chunks/paste-SH5RZ4ZO.js +3 -0
  117. package/dist/bin/chunks/printf-PQKUEWX5.js +3 -0
  118. package/dist/bin/chunks/python3-UE36ZXQT.js +23 -0
  119. package/dist/bin/chunks/readlink-4Z75K3AI.js +3 -0
  120. package/dist/bin/chunks/rev-6SA3VC3J.js +3 -0
  121. package/dist/bin/chunks/rg-ULWB5MQG.js +3 -0
  122. package/dist/bin/chunks/rm-NPIAQT6U.js +3 -0
  123. package/dist/bin/chunks/rmdir-57J3AGQU.js +3 -0
  124. package/dist/bin/chunks/sed-XV7BZPKI.js +3 -0
  125. package/dist/bin/chunks/seq-ZVBT2JEI.js +3 -0
  126. package/dist/bin/chunks/sha1sum-JGOB5K4J.js +3 -0
  127. package/dist/bin/chunks/sha256sum-S5DS6Q6N.js +3 -0
  128. package/dist/bin/chunks/sort-UOMFLGRW.js +3 -0
  129. package/dist/bin/chunks/split-IBL3NIVH.js +3 -0
  130. package/dist/bin/chunks/sqlite3-YIM3BYLS.js +3 -0
  131. package/dist/bin/chunks/stat-RKSIL4YV.js +3 -0
  132. package/dist/bin/chunks/strings-AL7T5GDQ.js +3 -0
  133. package/dist/bin/chunks/tac-36B6LBNS.js +3 -0
  134. package/dist/bin/chunks/tail-G4PLDIOK.js +3 -0
  135. package/dist/bin/chunks/tar-YG6SY2RU.js +3 -0
  136. package/dist/bin/chunks/tee-NP4ULCWD.js +3 -0
  137. package/dist/bin/chunks/time-ZMFJL7MD.js +3 -0
  138. package/dist/bin/chunks/timeout-EJIGKZUX.js +3 -0
  139. package/dist/bin/chunks/touch-YE5LMLLE.js +3 -0
  140. package/dist/bin/chunks/tr-7KFUMSUF.js +3 -0
  141. package/dist/bin/chunks/unexpand-67EBVEPB.js +3 -0
  142. package/dist/bin/chunks/uniq-SZDRNEYK.js +3 -0
  143. package/dist/bin/chunks/wc-VLOME6PL.js +3 -0
  144. package/dist/bin/chunks/xan-FVGJAHFV.js +3 -0
  145. package/dist/bin/chunks/xan-view-LYATQWQB.js +3 -0
  146. package/dist/bin/chunks/xargs-CLQL2WFV.js +3 -0
  147. package/dist/bin/chunks/yes-OOBLAITP.js +3 -0
  148. package/dist/bin/chunks/yq-YQ4YFM26.js +3 -0
  149. package/dist/bin/just-bash.js +347 -345
  150. package/dist/bin/shell/chunks/awk2-EPZ2CEQT.js +3 -0
  151. package/dist/bin/shell/chunks/base64-D7ZXJQN6.js +3 -0
  152. package/dist/bin/shell/chunks/bash-4Q4RMIZL.js +3 -0
  153. package/dist/bin/shell/chunks/cat-AST5Y57Y.js +3 -0
  154. package/dist/bin/shell/chunks/chmod-BFP7P5CD.js +3 -0
  155. package/dist/bin/shell/chunks/chunk-26O2G5LX.js +34 -0
  156. package/dist/bin/shell/chunks/chunk-2RDKEB6Z.js +15 -0
  157. package/dist/bin/shell/chunks/chunk-35U2THFB.js +3 -0
  158. package/dist/bin/shell/chunks/chunk-3F7UWBEM.js +17 -0
  159. package/dist/bin/shell/chunks/chunk-3WLAERUX.js +3 -0
  160. package/dist/bin/shell/chunks/chunk-3WZIZUMC.js +8 -0
  161. package/dist/bin/shell/chunks/chunk-4ARWO6Y3.js +4 -0
  162. package/dist/bin/shell/chunks/chunk-4HVMRZ5N.js +8 -0
  163. package/dist/bin/shell/chunks/chunk-5AS7PRVN.js +34 -0
  164. package/dist/bin/shell/chunks/chunk-5GYAEVIB.js +10 -0
  165. package/dist/bin/shell/chunks/chunk-5IPYW47P.js +27 -0
  166. package/dist/bin/shell/chunks/chunk-5ZTIV6TI.js +20 -0
  167. package/dist/bin/shell/chunks/chunk-6C2YS7G6.js +14 -0
  168. package/dist/bin/shell/chunks/chunk-74MYVPDY.js +3 -0
  169. package/dist/bin/shell/chunks/chunk-74UP5NWP.js +3 -0
  170. package/dist/bin/shell/chunks/chunk-7DPD5PK3.js +3 -0
  171. package/dist/bin/shell/chunks/chunk-7LJGZPVP.js +18 -0
  172. package/dist/bin/shell/chunks/chunk-7NEXHFSS.js +3 -0
  173. package/dist/bin/shell/chunks/chunk-7XFMCB5C.js +21 -0
  174. package/dist/bin/shell/chunks/chunk-A53Y4KDG.js +7 -0
  175. package/dist/bin/shell/chunks/chunk-AALAYQ6J.js +17 -0
  176. package/dist/bin/shell/chunks/chunk-AM4WIHAG.js +10 -0
  177. package/dist/bin/shell/chunks/chunk-BC5OXEFJ.js +3 -0
  178. package/dist/bin/shell/chunks/chunk-C5ABXV4P.js +15 -0
  179. package/dist/bin/shell/chunks/chunk-CT6P7ILU.js +3 -0
  180. package/dist/bin/shell/chunks/chunk-CYHG3NVG.js +9 -0
  181. package/dist/bin/shell/chunks/chunk-D7PDAJWE.js +7 -0
  182. package/dist/bin/shell/chunks/chunk-DB3G3UVZ.js +5 -0
  183. package/dist/bin/shell/chunks/chunk-EIUU35ZP.js +37 -0
  184. package/dist/bin/shell/chunks/chunk-EMHJNKV5.js +20 -0
  185. package/dist/bin/shell/chunks/chunk-EPWMLTS6.js +9 -0
  186. package/dist/bin/shell/chunks/chunk-F4QFFLWZ.js +8 -0
  187. package/dist/bin/shell/chunks/chunk-F5R5O2Y6.js +9 -0
  188. package/dist/bin/shell/chunks/chunk-FBEYY2HM.js +13 -0
  189. package/dist/bin/shell/chunks/chunk-FIJBWMXU.js +12 -0
  190. package/dist/bin/shell/chunks/chunk-FMVH4N2P.js +5 -0
  191. package/dist/bin/shell/chunks/chunk-G6W2HMNY.js +7 -0
  192. package/dist/bin/shell/chunks/chunk-GFI5BHZX.js +3 -0
  193. package/dist/bin/shell/chunks/chunk-GJAVHEWO.js +143 -0
  194. package/dist/bin/shell/chunks/chunk-GUVSOVQU.js +8 -0
  195. package/dist/bin/shell/chunks/chunk-H22PAKR6.js +3 -0
  196. package/dist/bin/shell/chunks/chunk-HXOJHK2Z.js +8 -0
  197. package/dist/bin/shell/chunks/chunk-IAAYIH44.js +3 -0
  198. package/dist/bin/shell/chunks/chunk-J7W2CRXT.js +7 -0
  199. package/dist/bin/shell/chunks/chunk-JNWWOKCN.js +6 -0
  200. package/dist/bin/shell/chunks/chunk-JQLGE4OW.js +22 -0
  201. package/dist/bin/shell/chunks/chunk-K3U4M4MF.js +7 -0
  202. package/dist/bin/shell/chunks/chunk-KRXYOWIP.js +12 -0
  203. package/dist/bin/shell/chunks/chunk-L4L2QFS4.js +10 -0
  204. package/dist/bin/shell/chunks/chunk-LU6ZEQNN.js +13 -0
  205. package/dist/bin/shell/chunks/chunk-MLMKRR7L.js +12 -0
  206. package/dist/bin/shell/chunks/chunk-MVN5WALS.js +7 -0
  207. package/dist/bin/shell/chunks/chunk-MYOGTYIH.js +22 -0
  208. package/dist/bin/shell/chunks/chunk-NF5LHCVV.js +275 -0
  209. package/dist/bin/shell/chunks/chunk-OUGDZVL6.js +10 -0
  210. package/dist/bin/shell/chunks/chunk-QCNQD6ME.js +11 -0
  211. package/dist/bin/shell/chunks/chunk-QIDBJNMB.js +3 -0
  212. package/dist/bin/shell/chunks/chunk-QKTQYL37.js +9 -0
  213. package/dist/bin/shell/chunks/chunk-R6CMNMNX.js +22 -0
  214. package/dist/bin/shell/chunks/chunk-RCP3WQND.js +7 -0
  215. package/dist/bin/shell/chunks/chunk-RJG4JS32.js +6 -0
  216. package/dist/bin/shell/chunks/chunk-SIMSIBUA.js +13 -0
  217. package/dist/bin/shell/chunks/chunk-TNB7M24H.js +87 -0
  218. package/dist/bin/shell/chunks/chunk-TU6P6AC2.js +4 -0
  219. package/dist/bin/shell/chunks/chunk-TX4WSLXK.js +101 -0
  220. package/dist/bin/shell/chunks/chunk-U4UY6P77.js +3 -0
  221. package/dist/bin/shell/chunks/chunk-U5BNATW4.js +3 -0
  222. package/dist/bin/shell/chunks/chunk-U7VJCJQR.js +16 -0
  223. package/dist/bin/shell/chunks/chunk-VJE2PQW6.js +15 -0
  224. package/dist/bin/shell/chunks/chunk-W4ENG3BR.js +44 -0
  225. package/dist/bin/shell/chunks/chunk-XUFO4QPW.js +65 -0
  226. package/dist/bin/shell/chunks/chunk-XVKL2UZA.js +4 -0
  227. package/dist/bin/shell/chunks/chunk-YCUNLSHF.js +12 -0
  228. package/dist/bin/shell/chunks/chunk-YDH7Q5WV.js +6 -0
  229. package/dist/bin/shell/chunks/chunk-YDWLU56G.js +26 -0
  230. package/dist/bin/shell/chunks/chunk-YILPYZYP.js +16 -0
  231. package/dist/bin/shell/chunks/chunk-YZQ4SVJV.js +13 -0
  232. package/dist/bin/shell/chunks/chunk-ZKLKNN6B.js +3 -0
  233. package/dist/bin/shell/chunks/column-EGAQ7QMC.js +3 -0
  234. package/dist/bin/shell/chunks/comm-JEJ6GWEA.js +3 -0
  235. package/dist/bin/shell/chunks/cp-7AH7TSQ6.js +3 -0
  236. package/dist/bin/shell/chunks/curl-7FCZQCFU.js +31 -0
  237. package/dist/bin/shell/chunks/cut-OVTLUT2B.js +3 -0
  238. package/dist/bin/shell/chunks/date-MKP5YWWY.js +3 -0
  239. package/dist/bin/shell/chunks/diff-R6QTSWD2.js +3 -0
  240. package/dist/bin/shell/chunks/dist-Q3QP7DWN.js +141 -0
  241. package/dist/bin/shell/chunks/du-M2PB5NUH.js +3 -0
  242. package/dist/bin/shell/chunks/env-EUSAZGWO.js +3 -0
  243. package/dist/bin/shell/chunks/expand-B4CPOZN5.js +3 -0
  244. package/dist/bin/shell/chunks/expr-AQBMSEFL.js +3 -0
  245. package/dist/bin/shell/chunks/file-22CVQBNS.js +3 -0
  246. package/dist/bin/shell/chunks/find-QYLHUYOP.js +3 -0
  247. package/dist/bin/shell/chunks/flag-coverage-CTPK5ZWJ.js +3 -0
  248. package/dist/bin/shell/chunks/fold-E6A5I4DW.js +3 -0
  249. package/dist/bin/shell/chunks/grep-HI55D7F7.js +3 -0
  250. package/dist/bin/shell/chunks/gzip-2GJMVXCF.js +3 -0
  251. package/dist/bin/shell/chunks/head-ZQIB2GSI.js +3 -0
  252. package/dist/bin/shell/chunks/html-to-markdown-7ZNLM4SQ.js +3 -0
  253. package/dist/bin/shell/chunks/join-KCYMLQ3V.js +3 -0
  254. package/dist/bin/shell/chunks/jq-KNI4FJIL.js +3 -0
  255. package/dist/bin/shell/chunks/js-exec-OWDAX677.js +1617 -0
  256. package/dist/bin/shell/chunks/ls-QCAGDEDW.js +3 -0
  257. package/dist/bin/shell/chunks/md5sum-OPJ77ZY7.js +3 -0
  258. package/dist/bin/shell/chunks/mkdir-3XFSFVPC.js +3 -0
  259. package/dist/bin/shell/chunks/mktemp-5FA55IJS.js +3 -0
  260. package/dist/bin/shell/chunks/mv-UASF6NAX.js +3 -0
  261. package/dist/bin/shell/chunks/nl-HUDE6DQC.js +3 -0
  262. package/dist/bin/shell/chunks/od-CECQKF5P.js +3 -0
  263. package/dist/bin/shell/chunks/paste-SH5RZ4ZO.js +3 -0
  264. package/dist/bin/shell/chunks/printf-PQKUEWX5.js +3 -0
  265. package/dist/bin/shell/chunks/python3-UE36ZXQT.js +23 -0
  266. package/dist/bin/shell/chunks/readlink-4Z75K3AI.js +3 -0
  267. package/dist/bin/shell/chunks/rev-6SA3VC3J.js +3 -0
  268. package/dist/bin/shell/chunks/rg-ULWB5MQG.js +3 -0
  269. package/dist/bin/shell/chunks/rm-NPIAQT6U.js +3 -0
  270. package/dist/bin/shell/chunks/rmdir-57J3AGQU.js +3 -0
  271. package/dist/bin/shell/chunks/sed-XV7BZPKI.js +3 -0
  272. package/dist/bin/shell/chunks/seq-ZVBT2JEI.js +3 -0
  273. package/dist/bin/shell/chunks/sha1sum-JGOB5K4J.js +3 -0
  274. package/dist/bin/shell/chunks/sha256sum-S5DS6Q6N.js +3 -0
  275. package/dist/bin/shell/chunks/sort-UOMFLGRW.js +3 -0
  276. package/dist/bin/shell/chunks/split-IBL3NIVH.js +3 -0
  277. package/dist/bin/shell/chunks/sqlite3-YIM3BYLS.js +3 -0
  278. package/dist/bin/shell/chunks/stat-RKSIL4YV.js +3 -0
  279. package/dist/bin/shell/chunks/strings-AL7T5GDQ.js +3 -0
  280. package/dist/bin/shell/chunks/tac-36B6LBNS.js +3 -0
  281. package/dist/bin/shell/chunks/tail-G4PLDIOK.js +3 -0
  282. package/dist/bin/shell/chunks/tar-YG6SY2RU.js +3 -0
  283. package/dist/bin/shell/chunks/tee-NP4ULCWD.js +3 -0
  284. package/dist/bin/shell/chunks/time-ZMFJL7MD.js +3 -0
  285. package/dist/bin/shell/chunks/timeout-EJIGKZUX.js +3 -0
  286. package/dist/bin/shell/chunks/touch-YE5LMLLE.js +3 -0
  287. package/dist/bin/shell/chunks/tr-7KFUMSUF.js +3 -0
  288. package/dist/bin/shell/chunks/unexpand-67EBVEPB.js +3 -0
  289. package/dist/bin/shell/chunks/uniq-SZDRNEYK.js +3 -0
  290. package/dist/bin/shell/chunks/wc-VLOME6PL.js +3 -0
  291. package/dist/bin/shell/chunks/xan-FVGJAHFV.js +3 -0
  292. package/dist/bin/shell/chunks/xan-view-LYATQWQB.js +3 -0
  293. package/dist/bin/shell/chunks/xargs-CLQL2WFV.js +3 -0
  294. package/dist/bin/shell/chunks/yes-OOBLAITP.js +3 -0
  295. package/dist/bin/shell/chunks/yq-YQ4YFM26.js +3 -0
  296. package/dist/bin/shell/shell.js +385 -383
  297. package/dist/bundle/browser.js +873 -863
  298. package/dist/bundle/chunks/awk2-LEEKKBPN.js +2 -0
  299. package/dist/bundle/chunks/base64-GBEVK7UP.js +2 -0
  300. package/dist/bundle/chunks/bash-QTX2IUM4.js +2 -0
  301. package/dist/bundle/chunks/cat-UBR2ABBH.js +2 -0
  302. package/dist/bundle/chunks/chmod-5VBARXGU.js +2 -0
  303. package/dist/bundle/chunks/chunk-2LOOLBWC.js +33 -0
  304. package/dist/bundle/chunks/chunk-34XJ6PLO.js +20 -0
  305. package/dist/bundle/chunks/chunk-3DUKINTI.js +7 -0
  306. package/dist/bundle/chunks/chunk-3VXY25LY.js +2 -0
  307. package/dist/bundle/chunks/chunk-5G2D2EZB.js +7 -0
  308. package/dist/bundle/chunks/chunk-5Q4R6KJE.js +4 -0
  309. package/dist/bundle/chunks/chunk-5ZVTEBKG.js +7 -0
  310. package/dist/bundle/chunks/chunk-77XFWF43.js +13 -0
  311. package/dist/bundle/chunks/chunk-B2EYYRZX.js +9 -0
  312. package/dist/bundle/chunks/chunk-BC3VKZCL.js +10 -0
  313. package/dist/bundle/chunks/chunk-BEIP3OYT.js +6 -0
  314. package/dist/bundle/chunks/chunk-BLTFJFWH.js +2 -0
  315. package/dist/bundle/chunks/chunk-C2GCPQ2D.js +15 -0
  316. package/dist/bundle/chunks/chunk-CGCA7SGA.js +25 -0
  317. package/dist/bundle/chunks/chunk-CIY4XCGA.js +2 -0
  318. package/dist/bundle/chunks/chunk-CXBOPNEG.js +11 -0
  319. package/dist/bundle/chunks/chunk-CYJQAYUX.js +142 -0
  320. package/dist/bundle/chunks/chunk-D55UUXDJ.js +100 -0
  321. package/dist/bundle/chunks/chunk-EOMWWW4L.js +33 -0
  322. package/dist/bundle/chunks/chunk-ER6ZGLPS.js +26 -0
  323. package/dist/bundle/chunks/chunk-EZHC6HLV.js +3 -0
  324. package/dist/bundle/chunks/chunk-FBRDM6EM.js +12 -0
  325. package/dist/bundle/chunks/chunk-FDAXSABU.js +11 -0
  326. package/dist/bundle/chunks/chunk-FEKEA5Y2.js +2 -0
  327. package/dist/bundle/chunks/chunk-GEANXVKK.js +15 -0
  328. package/dist/bundle/chunks/chunk-GIQ3LRFL.js +21 -0
  329. package/dist/bundle/chunks/chunk-HBIJBKHP.js +14 -0
  330. package/dist/bundle/chunks/chunk-IDYF47VD.js +11 -0
  331. package/dist/bundle/chunks/chunk-IH6MZAKK.js +6 -0
  332. package/dist/bundle/chunks/chunk-IIWAWB3H.js +274 -0
  333. package/dist/bundle/chunks/chunk-IQGNPH54.js +8 -0
  334. package/dist/bundle/chunks/chunk-IVYY6YFV.js +7 -0
  335. package/dist/bundle/chunks/chunk-IXOG2DXK.js +14 -0
  336. package/dist/bundle/chunks/chunk-J6QAN4PZ.js +6 -0
  337. package/dist/bundle/chunks/chunk-JMGGZYF2.js +2 -0
  338. package/dist/bundle/chunks/chunk-JU5GJH4X.js +9 -0
  339. package/dist/bundle/chunks/chunk-JWGTQTBU.js +16 -0
  340. package/dist/bundle/chunks/chunk-KQSMX4HM.js +11 -0
  341. package/dist/bundle/chunks/chunk-KZMK2KYL.js +43 -0
  342. package/dist/bundle/chunks/chunk-L4MC7WH4.js +14 -0
  343. package/dist/bundle/chunks/chunk-L5AKA7GO.js +5 -0
  344. package/dist/bundle/chunks/chunk-LBKOJW6K.js +2 -0
  345. package/dist/bundle/chunks/chunk-LNJ6EIKX.js +2 -0
  346. package/dist/bundle/chunks/chunk-LQXMSLW5.js +16 -0
  347. package/dist/bundle/chunks/chunk-MOOFDAFS.js +7 -0
  348. package/dist/bundle/chunks/chunk-N3VQQRLQ.js +8 -0
  349. package/dist/bundle/chunks/chunk-NJUHQKMR.js +3 -0
  350. package/dist/bundle/chunks/chunk-NOZTFL4F.js +12 -0
  351. package/dist/bundle/chunks/chunk-OEZKBUXP.js +8 -0
  352. package/dist/bundle/chunks/chunk-OZMQI3HV.js +17 -0
  353. package/dist/bundle/chunks/chunk-POI4XBDP.js +6 -0
  354. package/dist/bundle/chunks/chunk-PV2DCWLJ.js +6 -0
  355. package/dist/bundle/chunks/chunk-Q6ZH76O4.js +2 -0
  356. package/dist/bundle/chunks/chunk-QECDICRF.js +9 -0
  357. package/dist/bundle/chunks/chunk-QJTRVYQA.js +5 -0
  358. package/dist/bundle/chunks/chunk-QZPG6UCH.js +9 -0
  359. package/dist/bundle/chunks/chunk-R23EAHN5.js +2 -0
  360. package/dist/bundle/chunks/chunk-R3HY2GCO.js +3 -0
  361. package/dist/bundle/chunks/chunk-RQTEROQ5.js +6 -0
  362. package/dist/bundle/chunks/chunk-SAE7VUIM.js +21 -0
  363. package/dist/bundle/chunks/chunk-SBG7KYI4.js +12 -0
  364. package/dist/bundle/chunks/chunk-SRNYBHIU.js +21 -0
  365. package/dist/bundle/chunks/chunk-T7CFNHX6.js +2 -0
  366. package/dist/bundle/chunks/chunk-U3UTFNHI.js +2 -0
  367. package/dist/bundle/chunks/chunk-UQZ5HJXB.js +64 -0
  368. package/dist/bundle/chunks/chunk-US6XQQ6W.js +19 -0
  369. package/dist/bundle/chunks/chunk-UZ4TKNEJ.js +2 -0
  370. package/dist/bundle/chunks/chunk-VW6FDS6X.js +2 -0
  371. package/dist/bundle/chunks/chunk-W4A6TADR.js +36 -0
  372. package/dist/bundle/chunks/chunk-WAL3MOLR.js +6 -0
  373. package/dist/bundle/chunks/chunk-WFEUQRHM.js +2 -0
  374. package/dist/bundle/chunks/chunk-WNAEYQTE.js +8 -0
  375. package/dist/bundle/chunks/chunk-WOSSFIAE.js +12 -0
  376. package/dist/bundle/chunks/chunk-WTG3OCY4.js +5 -0
  377. package/dist/bundle/chunks/chunk-XIEMQVCO.js +19 -0
  378. package/dist/bundle/chunks/chunk-YFGP6M45.js +7 -0
  379. package/dist/bundle/chunks/chunk-ZARLSKBF.js +2 -0
  380. package/dist/bundle/chunks/chunk-ZVANIJV2.js +4 -0
  381. package/dist/bundle/chunks/column-46NX3HG3.js +2 -0
  382. package/dist/bundle/chunks/comm-QHEYSM4I.js +2 -0
  383. package/dist/bundle/chunks/cp-AQ4Y4WVV.js +2 -0
  384. package/dist/bundle/chunks/curl-LMCQFYWH.js +30 -0
  385. package/dist/bundle/chunks/cut-A6NXJGOH.js +2 -0
  386. package/dist/bundle/chunks/date-YMEJ62OQ.js +2 -0
  387. package/dist/bundle/chunks/diff-SECJC7CN.js +2 -0
  388. package/dist/bundle/chunks/du-JOLY42MC.js +2 -0
  389. package/dist/bundle/chunks/env-MI6QVNMM.js +2 -0
  390. package/dist/bundle/chunks/expand-YVEZTU7W.js +2 -0
  391. package/dist/bundle/chunks/expr-U7WETT5R.js +2 -0
  392. package/dist/bundle/chunks/file-6QDI3H7G.js +2 -0
  393. package/dist/bundle/chunks/find-UYQIFSZI.js +2 -0
  394. package/dist/bundle/chunks/flag-coverage-5YCE6ILG.js +2 -0
  395. package/dist/bundle/chunks/fold-A24KLKHY.js +2 -0
  396. package/dist/bundle/chunks/grep-ZELVZ7JB.js +2 -0
  397. package/dist/bundle/chunks/gzip-3IFADYVU.js +2 -0
  398. package/dist/bundle/chunks/head-5YWCKNNQ.js +2 -0
  399. package/dist/bundle/chunks/html-to-markdown-EOWI2I5J.js +2 -0
  400. package/dist/bundle/chunks/join-MSZXRLNV.js +2 -0
  401. package/dist/bundle/chunks/jq-MKA6BDYV.js +2 -0
  402. package/dist/bundle/chunks/js-exec-CNDWLKWB.js +1616 -0
  403. package/dist/bundle/chunks/ls-WMN4WCCI.js +2 -0
  404. package/dist/bundle/chunks/md5sum-OCX4NZ2Q.js +2 -0
  405. package/dist/bundle/chunks/mkdir-YJMG55FX.js +2 -0
  406. package/dist/bundle/chunks/mktemp-RA55VAN3.js +2 -0
  407. package/dist/bundle/chunks/mv-NTJL2AHI.js +2 -0
  408. package/dist/bundle/chunks/nl-Z5DVHZ3S.js +2 -0
  409. package/dist/bundle/chunks/od-TRWBMEIO.js +2 -0
  410. package/dist/bundle/chunks/paste-VPYCLIL6.js +2 -0
  411. package/dist/bundle/chunks/printf-BNADL4RX.js +2 -0
  412. package/dist/bundle/chunks/python3-TIKLWPZJ.js +22 -0
  413. package/dist/bundle/chunks/readlink-HGACDFRD.js +2 -0
  414. package/dist/bundle/chunks/rev-W57N4M5B.js +2 -0
  415. package/dist/bundle/chunks/rg-IN3KT335.js +2 -0
  416. package/dist/bundle/chunks/rm-CDVWO5CO.js +2 -0
  417. package/dist/bundle/chunks/rmdir-HI3UE4KQ.js +2 -0
  418. package/dist/bundle/chunks/sed-MXZDFQ7I.js +2 -0
  419. package/dist/bundle/chunks/seq-E3UP3G65.js +2 -0
  420. package/dist/bundle/chunks/sha1sum-QUWYL7G6.js +2 -0
  421. package/dist/bundle/chunks/sha256sum-FGHIABMA.js +2 -0
  422. package/dist/bundle/chunks/sort-ATCMEITA.js +2 -0
  423. package/dist/bundle/chunks/split-YZFCWIZI.js +2 -0
  424. package/dist/bundle/chunks/sqlite3-JL36RFBZ.js +2 -0
  425. package/dist/bundle/chunks/stat-APUQD6WQ.js +2 -0
  426. package/dist/bundle/chunks/strings-WA2ZGNUN.js +2 -0
  427. package/dist/bundle/chunks/tac-OCV6R4TG.js +2 -0
  428. package/dist/bundle/chunks/tail-IBKQAMFW.js +2 -0
  429. package/dist/bundle/chunks/tar-WJV4DGKA.js +2 -0
  430. package/dist/bundle/chunks/tee-VOXQ2UGV.js +2 -0
  431. package/dist/bundle/chunks/time-GOHAC6VO.js +2 -0
  432. package/dist/bundle/chunks/timeout-FVGYB3MD.js +2 -0
  433. package/dist/bundle/chunks/touch-57OKADDG.js +2 -0
  434. package/dist/bundle/chunks/tr-M4D6SICQ.js +2 -0
  435. package/dist/bundle/chunks/unexpand-SYZZ5ZBE.js +2 -0
  436. package/dist/bundle/chunks/uniq-TUUUYPVF.js +2 -0
  437. package/dist/bundle/chunks/wc-HQPGW3KR.js +2 -0
  438. package/dist/bundle/chunks/xan-CZJZCC57.js +2 -0
  439. package/dist/bundle/chunks/xan-view-HETEUD3G.js +2 -0
  440. package/dist/bundle/chunks/xargs-WFPZZ3FK.js +2 -0
  441. package/dist/bundle/chunks/yes-ACSNSE7T.js +2 -0
  442. package/dist/bundle/chunks/yq-XDJLIJPZ.js +2 -0
  443. package/dist/bundle/index.cjs +1042 -993
  444. package/dist/bundle/index.js +345 -343
  445. package/dist/commands/awk/interpreter/fields.d.ts +16 -0
  446. package/dist/commands/js-exec/module-shims.d.ts +1 -1
  447. package/dist/commands/rg/rg-options.d.ts +2 -0
  448. package/dist/commands/search-engine/matcher.d.ts +2 -0
  449. package/dist/interpreter/builtin-dispatch.d.ts +9 -3
  450. package/dist/interpreter/fd-table.d.ts +4 -1
  451. package/dist/interpreter/helpers/errors.d.ts +5 -0
  452. package/dist/interpreter/pipeline-execution.d.ts +1 -1
  453. package/dist/interpreter/redirections.d.ts +25 -10
  454. package/dist/interpreter/types.d.ts +2 -0
  455. package/dist/types.d.ts +15 -0
  456. package/dist/utils/string-builder.d.ts +9 -0
  457. package/package.json +2 -2
  458. package/dist/bin/chunks/awk2-U22OR5B5.js +0 -3
  459. package/dist/bin/chunks/base64-2KKH5BCT.js +0 -3
  460. package/dist/bin/chunks/bash-CFCBBWVH.js +0 -3
  461. package/dist/bin/chunks/cat-V45MVNBT.js +0 -3
  462. package/dist/bin/chunks/chmod-A54R4UUQ.js +0 -3
  463. package/dist/bin/chunks/chunk-2NJJXU4K.js +0 -27
  464. package/dist/bin/chunks/chunk-2YLY6FJA.js +0 -10
  465. package/dist/bin/chunks/chunk-3LKMI5IX.js +0 -34
  466. package/dist/bin/chunks/chunk-3VSWQCPN.js +0 -18
  467. package/dist/bin/chunks/chunk-44SKMHU6.js +0 -16
  468. package/dist/bin/chunks/chunk-5SKEZPTU.js +0 -12
  469. package/dist/bin/chunks/chunk-5SR55TXB.js +0 -16
  470. package/dist/bin/chunks/chunk-6D75E4LV.js +0 -3
  471. package/dist/bin/chunks/chunk-6DAR25KN.js +0 -12
  472. package/dist/bin/chunks/chunk-6SAZRW7E.js +0 -15
  473. package/dist/bin/chunks/chunk-723HNGID.js +0 -13
  474. package/dist/bin/chunks/chunk-7FGDUBSN.js +0 -14
  475. package/dist/bin/chunks/chunk-7X4QBCFW.js +0 -36
  476. package/dist/bin/chunks/chunk-AINNAQBQ.js +0 -6
  477. package/dist/bin/chunks/chunk-AL7RVSF4.js +0 -8
  478. package/dist/bin/chunks/chunk-ARYCSNJJ.js +0 -101
  479. package/dist/bin/chunks/chunk-BCJ42NCM.js +0 -15
  480. package/dist/bin/chunks/chunk-BJF6B4YW.js +0 -22
  481. package/dist/bin/chunks/chunk-BOXG6XBN.js +0 -143
  482. package/dist/bin/chunks/chunk-CPKBPQ2C.js +0 -3
  483. package/dist/bin/chunks/chunk-DA3RFNKK.js +0 -17
  484. package/dist/bin/chunks/chunk-DH7M46D3.js +0 -20
  485. package/dist/bin/chunks/chunk-DTGQQKI2.js +0 -87
  486. package/dist/bin/chunks/chunk-ECZAFQ22.js +0 -9
  487. package/dist/bin/chunks/chunk-ETWDDV6I.js +0 -10
  488. package/dist/bin/chunks/chunk-HFW2LXQV.js +0 -13
  489. package/dist/bin/chunks/chunk-HRKG3ZK2.js +0 -8
  490. package/dist/bin/chunks/chunk-I4IRHQDW.js +0 -3
  491. package/dist/bin/chunks/chunk-IKUY74NG.js +0 -3
  492. package/dist/bin/chunks/chunk-ILXMFIYG.js +0 -7
  493. package/dist/bin/chunks/chunk-IMVXTSPG.js +0 -275
  494. package/dist/bin/chunks/chunk-ISW2U76N.js +0 -17
  495. package/dist/bin/chunks/chunk-K5KT6DMM.js +0 -4
  496. package/dist/bin/chunks/chunk-KG2KXL4Y.js +0 -3
  497. package/dist/bin/chunks/chunk-LCP3IKI7.js +0 -9
  498. package/dist/bin/chunks/chunk-LG6IN6SW.js +0 -34
  499. package/dist/bin/chunks/chunk-LMFAALLO.js +0 -21
  500. package/dist/bin/chunks/chunk-LXFMIXGA.js +0 -3
  501. package/dist/bin/chunks/chunk-M5ZBECGM.js +0 -22
  502. package/dist/bin/chunks/chunk-MA6BMA4M.js +0 -3
  503. package/dist/bin/chunks/chunk-MPQMTLXN.js +0 -3
  504. package/dist/bin/chunks/chunk-MUIYG2RB.js +0 -65
  505. package/dist/bin/chunks/chunk-MYTNZ7MA.js +0 -7
  506. package/dist/bin/chunks/chunk-NGMFI3RH.js +0 -15
  507. package/dist/bin/chunks/chunk-NLMTGTSG.js +0 -11
  508. package/dist/bin/chunks/chunk-O74FSWB4.js +0 -4
  509. package/dist/bin/chunks/chunk-OBVTFHVP.js +0 -7
  510. package/dist/bin/chunks/chunk-OOKVPG5D.js +0 -6
  511. package/dist/bin/chunks/chunk-PL4EU7Y2.js +0 -3
  512. package/dist/bin/chunks/chunk-Q3LE3Y66.js +0 -13
  513. package/dist/bin/chunks/chunk-QCGH2ZOW.js +0 -13
  514. package/dist/bin/chunks/chunk-QKWMWSV3.js +0 -3
  515. package/dist/bin/chunks/chunk-QL33F2W6.js +0 -8
  516. package/dist/bin/chunks/chunk-S5Z7DMIE.js +0 -26
  517. package/dist/bin/chunks/chunk-SQ7SZZMW.js +0 -8
  518. package/dist/bin/chunks/chunk-SQUH76NP.js +0 -3
  519. package/dist/bin/chunks/chunk-TGRZ42DS.js +0 -12
  520. package/dist/bin/chunks/chunk-THTKNRO6.js +0 -7
  521. package/dist/bin/chunks/chunk-TQXLQEIT.js +0 -9
  522. package/dist/bin/chunks/chunk-TZ3S7MY6.js +0 -12
  523. package/dist/bin/chunks/chunk-U6BXPMLD.js +0 -7
  524. package/dist/bin/chunks/chunk-U6DBRMD5.js +0 -5
  525. package/dist/bin/chunks/chunk-URRH3GPG.js +0 -10
  526. package/dist/bin/chunks/chunk-VBU3UEG5.js +0 -7
  527. package/dist/bin/chunks/chunk-VLWZ6L7C.js +0 -4
  528. package/dist/bin/chunks/chunk-VTHA5UK5.js +0 -7
  529. package/dist/bin/chunks/chunk-WBST7XJW.js +0 -9
  530. package/dist/bin/chunks/chunk-WDV2ECOC.js +0 -3
  531. package/dist/bin/chunks/chunk-WEQ5WM2M.js +0 -20
  532. package/dist/bin/chunks/chunk-WFVCEB5T.js +0 -3
  533. package/dist/bin/chunks/chunk-WZ7MIBLR.js +0 -37
  534. package/dist/bin/chunks/chunk-X45GP3AQ.js +0 -3
  535. package/dist/bin/chunks/chunk-XEQ7KSRM.js +0 -5
  536. package/dist/bin/chunks/chunk-YIANER7Y.js +0 -8
  537. package/dist/bin/chunks/chunk-YYZSYLJO.js +0 -6
  538. package/dist/bin/chunks/chunk-Z3KAV6YJ.js +0 -10
  539. package/dist/bin/chunks/chunk-Z5KICK5X.js +0 -22
  540. package/dist/bin/chunks/column-LHHS4D3K.js +0 -3
  541. package/dist/bin/chunks/comm-URDMZCXL.js +0 -3
  542. package/dist/bin/chunks/cp-HPLQA35N.js +0 -3
  543. package/dist/bin/chunks/curl-FIRG3RB6.js +0 -31
  544. package/dist/bin/chunks/cut-KP3S36XS.js +0 -3
  545. package/dist/bin/chunks/date-FJUBX7TJ.js +0 -3
  546. package/dist/bin/chunks/diff-JSJ56EOK.js +0 -3
  547. package/dist/bin/chunks/dist-4NZ74CRE.js +0 -141
  548. package/dist/bin/chunks/du-WEF5YWQK.js +0 -3
  549. package/dist/bin/chunks/env-2TSVF4W7.js +0 -3
  550. package/dist/bin/chunks/expand-P6SNTBGZ.js +0 -3
  551. package/dist/bin/chunks/expr-FLWT4OCO.js +0 -3
  552. package/dist/bin/chunks/file-JLUCGBCB.js +0 -3
  553. package/dist/bin/chunks/find-XGVQ6N6L.js +0 -3
  554. package/dist/bin/chunks/flag-coverage-4JYKIAVV.js +0 -3
  555. package/dist/bin/chunks/fold-YEY7X54W.js +0 -3
  556. package/dist/bin/chunks/grep-DCPCPQOS.js +0 -3
  557. package/dist/bin/chunks/gzip-6DZIKNBW.js +0 -3
  558. package/dist/bin/chunks/head-TLFXMM2T.js +0 -3
  559. package/dist/bin/chunks/html-to-markdown-E22RLT2U.js +0 -3
  560. package/dist/bin/chunks/join-UQKXU2QP.js +0 -3
  561. package/dist/bin/chunks/jq-GDM3OBBK.js +0 -3
  562. package/dist/bin/chunks/js-exec-VU6F6WLS.js +0 -1578
  563. package/dist/bin/chunks/ls-67NUUIYT.js +0 -3
  564. package/dist/bin/chunks/md5sum-Z6KAYGDK.js +0 -3
  565. package/dist/bin/chunks/mkdir-AWDWRBKC.js +0 -3
  566. package/dist/bin/chunks/mktemp-L6OGMDUO.js +0 -3
  567. package/dist/bin/chunks/mv-4BJSOT4Y.js +0 -3
  568. package/dist/bin/chunks/nl-XHWFVVKH.js +0 -3
  569. package/dist/bin/chunks/od-SI75GLRE.js +0 -3
  570. package/dist/bin/chunks/paste-5TSIBDF7.js +0 -3
  571. package/dist/bin/chunks/printf-CNXNRQ3I.js +0 -3
  572. package/dist/bin/chunks/python3-GUWCSSDP.js +0 -23
  573. package/dist/bin/chunks/readlink-URO5XTBB.js +0 -3
  574. package/dist/bin/chunks/rev-CZTQCNOZ.js +0 -3
  575. package/dist/bin/chunks/rg-RVULUPDH.js +0 -3
  576. package/dist/bin/chunks/rm-UCUTHC3I.js +0 -3
  577. package/dist/bin/chunks/rmdir-J3HM7GGM.js +0 -3
  578. package/dist/bin/chunks/sed-MCLGHZOI.js +0 -3
  579. package/dist/bin/chunks/seq-I54NZE75.js +0 -3
  580. package/dist/bin/chunks/sha1sum-CATBXX76.js +0 -3
  581. package/dist/bin/chunks/sha256sum-YGSNBVY3.js +0 -3
  582. package/dist/bin/chunks/sort-M3DO25D5.js +0 -3
  583. package/dist/bin/chunks/split-VZO7223N.js +0 -3
  584. package/dist/bin/chunks/sqlite3-HXVFVP4Z.js +0 -3
  585. package/dist/bin/chunks/stat-UJ37RBMM.js +0 -3
  586. package/dist/bin/chunks/strings-J2X2Z6N2.js +0 -3
  587. package/dist/bin/chunks/tac-DG4BMYM5.js +0 -3
  588. package/dist/bin/chunks/tail-5TSF5YM4.js +0 -3
  589. package/dist/bin/chunks/tar-ZGZZDQXO.js +0 -3
  590. package/dist/bin/chunks/tee-L4HKV5PD.js +0 -3
  591. package/dist/bin/chunks/time-J2DAZUIN.js +0 -3
  592. package/dist/bin/chunks/timeout-ATTDYXLX.js +0 -3
  593. package/dist/bin/chunks/touch-TVQAUQOG.js +0 -3
  594. package/dist/bin/chunks/tr-6RPFASYV.js +0 -3
  595. package/dist/bin/chunks/unexpand-JPOQORZF.js +0 -3
  596. package/dist/bin/chunks/uniq-K5VRDP4Q.js +0 -3
  597. package/dist/bin/chunks/wc-VSQBRD6B.js +0 -3
  598. package/dist/bin/chunks/xan-CCS53B7D.js +0 -3
  599. package/dist/bin/chunks/xan-view-KOXASOEV.js +0 -3
  600. package/dist/bin/chunks/xargs-HMISWW4I.js +0 -3
  601. package/dist/bin/chunks/yes-ELH3XQWY.js +0 -3
  602. package/dist/bin/chunks/yq-GSCDUHGM.js +0 -3
  603. package/dist/bin/shell/chunks/awk2-U22OR5B5.js +0 -3
  604. package/dist/bin/shell/chunks/base64-2KKH5BCT.js +0 -3
  605. package/dist/bin/shell/chunks/bash-CFCBBWVH.js +0 -3
  606. package/dist/bin/shell/chunks/cat-V45MVNBT.js +0 -3
  607. package/dist/bin/shell/chunks/chmod-A54R4UUQ.js +0 -3
  608. package/dist/bin/shell/chunks/chunk-2NJJXU4K.js +0 -27
  609. package/dist/bin/shell/chunks/chunk-2YLY6FJA.js +0 -10
  610. package/dist/bin/shell/chunks/chunk-3LKMI5IX.js +0 -34
  611. package/dist/bin/shell/chunks/chunk-3VSWQCPN.js +0 -18
  612. package/dist/bin/shell/chunks/chunk-44SKMHU6.js +0 -16
  613. package/dist/bin/shell/chunks/chunk-5SKEZPTU.js +0 -12
  614. package/dist/bin/shell/chunks/chunk-5SR55TXB.js +0 -16
  615. package/dist/bin/shell/chunks/chunk-6D75E4LV.js +0 -3
  616. package/dist/bin/shell/chunks/chunk-6DAR25KN.js +0 -12
  617. package/dist/bin/shell/chunks/chunk-6SAZRW7E.js +0 -15
  618. package/dist/bin/shell/chunks/chunk-723HNGID.js +0 -13
  619. package/dist/bin/shell/chunks/chunk-7FGDUBSN.js +0 -14
  620. package/dist/bin/shell/chunks/chunk-7X4QBCFW.js +0 -36
  621. package/dist/bin/shell/chunks/chunk-AINNAQBQ.js +0 -6
  622. package/dist/bin/shell/chunks/chunk-AL7RVSF4.js +0 -8
  623. package/dist/bin/shell/chunks/chunk-ARYCSNJJ.js +0 -101
  624. package/dist/bin/shell/chunks/chunk-BCJ42NCM.js +0 -15
  625. package/dist/bin/shell/chunks/chunk-BJF6B4YW.js +0 -22
  626. package/dist/bin/shell/chunks/chunk-BOXG6XBN.js +0 -143
  627. package/dist/bin/shell/chunks/chunk-CPKBPQ2C.js +0 -3
  628. package/dist/bin/shell/chunks/chunk-DA3RFNKK.js +0 -17
  629. package/dist/bin/shell/chunks/chunk-DH7M46D3.js +0 -20
  630. package/dist/bin/shell/chunks/chunk-DTGQQKI2.js +0 -87
  631. package/dist/bin/shell/chunks/chunk-ECZAFQ22.js +0 -9
  632. package/dist/bin/shell/chunks/chunk-ETWDDV6I.js +0 -10
  633. package/dist/bin/shell/chunks/chunk-HFW2LXQV.js +0 -13
  634. package/dist/bin/shell/chunks/chunk-HRKG3ZK2.js +0 -8
  635. package/dist/bin/shell/chunks/chunk-I4IRHQDW.js +0 -3
  636. package/dist/bin/shell/chunks/chunk-IKUY74NG.js +0 -3
  637. package/dist/bin/shell/chunks/chunk-ILXMFIYG.js +0 -7
  638. package/dist/bin/shell/chunks/chunk-IMVXTSPG.js +0 -275
  639. package/dist/bin/shell/chunks/chunk-ISW2U76N.js +0 -17
  640. package/dist/bin/shell/chunks/chunk-K5KT6DMM.js +0 -4
  641. package/dist/bin/shell/chunks/chunk-KG2KXL4Y.js +0 -3
  642. package/dist/bin/shell/chunks/chunk-LCP3IKI7.js +0 -9
  643. package/dist/bin/shell/chunks/chunk-LG6IN6SW.js +0 -34
  644. package/dist/bin/shell/chunks/chunk-LMFAALLO.js +0 -21
  645. package/dist/bin/shell/chunks/chunk-LXFMIXGA.js +0 -3
  646. package/dist/bin/shell/chunks/chunk-M5ZBECGM.js +0 -22
  647. package/dist/bin/shell/chunks/chunk-MA6BMA4M.js +0 -3
  648. package/dist/bin/shell/chunks/chunk-MPQMTLXN.js +0 -3
  649. package/dist/bin/shell/chunks/chunk-MUIYG2RB.js +0 -65
  650. package/dist/bin/shell/chunks/chunk-MYTNZ7MA.js +0 -7
  651. package/dist/bin/shell/chunks/chunk-NGMFI3RH.js +0 -15
  652. package/dist/bin/shell/chunks/chunk-NLMTGTSG.js +0 -11
  653. package/dist/bin/shell/chunks/chunk-O74FSWB4.js +0 -4
  654. package/dist/bin/shell/chunks/chunk-OBVTFHVP.js +0 -7
  655. package/dist/bin/shell/chunks/chunk-OOKVPG5D.js +0 -6
  656. package/dist/bin/shell/chunks/chunk-PL4EU7Y2.js +0 -3
  657. package/dist/bin/shell/chunks/chunk-Q3LE3Y66.js +0 -13
  658. package/dist/bin/shell/chunks/chunk-QCGH2ZOW.js +0 -13
  659. package/dist/bin/shell/chunks/chunk-QKWMWSV3.js +0 -3
  660. package/dist/bin/shell/chunks/chunk-QL33F2W6.js +0 -8
  661. package/dist/bin/shell/chunks/chunk-S5Z7DMIE.js +0 -26
  662. package/dist/bin/shell/chunks/chunk-SQ7SZZMW.js +0 -8
  663. package/dist/bin/shell/chunks/chunk-SQUH76NP.js +0 -3
  664. package/dist/bin/shell/chunks/chunk-TGRZ42DS.js +0 -12
  665. package/dist/bin/shell/chunks/chunk-THTKNRO6.js +0 -7
  666. package/dist/bin/shell/chunks/chunk-TQXLQEIT.js +0 -9
  667. package/dist/bin/shell/chunks/chunk-TZ3S7MY6.js +0 -12
  668. package/dist/bin/shell/chunks/chunk-U6BXPMLD.js +0 -7
  669. package/dist/bin/shell/chunks/chunk-U6DBRMD5.js +0 -5
  670. package/dist/bin/shell/chunks/chunk-URRH3GPG.js +0 -10
  671. package/dist/bin/shell/chunks/chunk-VBU3UEG5.js +0 -7
  672. package/dist/bin/shell/chunks/chunk-VLWZ6L7C.js +0 -4
  673. package/dist/bin/shell/chunks/chunk-VTHA5UK5.js +0 -7
  674. package/dist/bin/shell/chunks/chunk-WBST7XJW.js +0 -9
  675. package/dist/bin/shell/chunks/chunk-WDV2ECOC.js +0 -3
  676. package/dist/bin/shell/chunks/chunk-WEQ5WM2M.js +0 -20
  677. package/dist/bin/shell/chunks/chunk-WFVCEB5T.js +0 -3
  678. package/dist/bin/shell/chunks/chunk-WZ7MIBLR.js +0 -37
  679. package/dist/bin/shell/chunks/chunk-X45GP3AQ.js +0 -3
  680. package/dist/bin/shell/chunks/chunk-XEQ7KSRM.js +0 -5
  681. package/dist/bin/shell/chunks/chunk-YIANER7Y.js +0 -8
  682. package/dist/bin/shell/chunks/chunk-YYZSYLJO.js +0 -6
  683. package/dist/bin/shell/chunks/chunk-Z3KAV6YJ.js +0 -10
  684. package/dist/bin/shell/chunks/chunk-Z5KICK5X.js +0 -22
  685. package/dist/bin/shell/chunks/column-LHHS4D3K.js +0 -3
  686. package/dist/bin/shell/chunks/comm-URDMZCXL.js +0 -3
  687. package/dist/bin/shell/chunks/cp-HPLQA35N.js +0 -3
  688. package/dist/bin/shell/chunks/curl-FIRG3RB6.js +0 -31
  689. package/dist/bin/shell/chunks/cut-KP3S36XS.js +0 -3
  690. package/dist/bin/shell/chunks/date-FJUBX7TJ.js +0 -3
  691. package/dist/bin/shell/chunks/diff-JSJ56EOK.js +0 -3
  692. package/dist/bin/shell/chunks/dist-4NZ74CRE.js +0 -141
  693. package/dist/bin/shell/chunks/du-WEF5YWQK.js +0 -3
  694. package/dist/bin/shell/chunks/env-2TSVF4W7.js +0 -3
  695. package/dist/bin/shell/chunks/expand-P6SNTBGZ.js +0 -3
  696. package/dist/bin/shell/chunks/expr-FLWT4OCO.js +0 -3
  697. package/dist/bin/shell/chunks/file-JLUCGBCB.js +0 -3
  698. package/dist/bin/shell/chunks/find-XGVQ6N6L.js +0 -3
  699. package/dist/bin/shell/chunks/flag-coverage-4JYKIAVV.js +0 -3
  700. package/dist/bin/shell/chunks/fold-YEY7X54W.js +0 -3
  701. package/dist/bin/shell/chunks/grep-DCPCPQOS.js +0 -3
  702. package/dist/bin/shell/chunks/gzip-6DZIKNBW.js +0 -3
  703. package/dist/bin/shell/chunks/head-TLFXMM2T.js +0 -3
  704. package/dist/bin/shell/chunks/html-to-markdown-E22RLT2U.js +0 -3
  705. package/dist/bin/shell/chunks/join-UQKXU2QP.js +0 -3
  706. package/dist/bin/shell/chunks/jq-GDM3OBBK.js +0 -3
  707. package/dist/bin/shell/chunks/js-exec-VU6F6WLS.js +0 -1578
  708. package/dist/bin/shell/chunks/ls-67NUUIYT.js +0 -3
  709. package/dist/bin/shell/chunks/md5sum-Z6KAYGDK.js +0 -3
  710. package/dist/bin/shell/chunks/mkdir-AWDWRBKC.js +0 -3
  711. package/dist/bin/shell/chunks/mktemp-L6OGMDUO.js +0 -3
  712. package/dist/bin/shell/chunks/mv-4BJSOT4Y.js +0 -3
  713. package/dist/bin/shell/chunks/nl-XHWFVVKH.js +0 -3
  714. package/dist/bin/shell/chunks/od-SI75GLRE.js +0 -3
  715. package/dist/bin/shell/chunks/paste-5TSIBDF7.js +0 -3
  716. package/dist/bin/shell/chunks/printf-CNXNRQ3I.js +0 -3
  717. package/dist/bin/shell/chunks/python3-GUWCSSDP.js +0 -23
  718. package/dist/bin/shell/chunks/readlink-URO5XTBB.js +0 -3
  719. package/dist/bin/shell/chunks/rev-CZTQCNOZ.js +0 -3
  720. package/dist/bin/shell/chunks/rg-RVULUPDH.js +0 -3
  721. package/dist/bin/shell/chunks/rm-UCUTHC3I.js +0 -3
  722. package/dist/bin/shell/chunks/rmdir-J3HM7GGM.js +0 -3
  723. package/dist/bin/shell/chunks/sed-MCLGHZOI.js +0 -3
  724. package/dist/bin/shell/chunks/seq-I54NZE75.js +0 -3
  725. package/dist/bin/shell/chunks/sha1sum-CATBXX76.js +0 -3
  726. package/dist/bin/shell/chunks/sha256sum-YGSNBVY3.js +0 -3
  727. package/dist/bin/shell/chunks/sort-M3DO25D5.js +0 -3
  728. package/dist/bin/shell/chunks/split-VZO7223N.js +0 -3
  729. package/dist/bin/shell/chunks/sqlite3-HXVFVP4Z.js +0 -3
  730. package/dist/bin/shell/chunks/stat-UJ37RBMM.js +0 -3
  731. package/dist/bin/shell/chunks/strings-J2X2Z6N2.js +0 -3
  732. package/dist/bin/shell/chunks/tac-DG4BMYM5.js +0 -3
  733. package/dist/bin/shell/chunks/tail-5TSF5YM4.js +0 -3
  734. package/dist/bin/shell/chunks/tar-ZGZZDQXO.js +0 -3
  735. package/dist/bin/shell/chunks/tee-L4HKV5PD.js +0 -3
  736. package/dist/bin/shell/chunks/time-J2DAZUIN.js +0 -3
  737. package/dist/bin/shell/chunks/timeout-ATTDYXLX.js +0 -3
  738. package/dist/bin/shell/chunks/touch-TVQAUQOG.js +0 -3
  739. package/dist/bin/shell/chunks/tr-6RPFASYV.js +0 -3
  740. package/dist/bin/shell/chunks/unexpand-JPOQORZF.js +0 -3
  741. package/dist/bin/shell/chunks/uniq-K5VRDP4Q.js +0 -3
  742. package/dist/bin/shell/chunks/wc-VSQBRD6B.js +0 -3
  743. package/dist/bin/shell/chunks/xan-CCS53B7D.js +0 -3
  744. package/dist/bin/shell/chunks/xan-view-KOXASOEV.js +0 -3
  745. package/dist/bin/shell/chunks/xargs-HMISWW4I.js +0 -3
  746. package/dist/bin/shell/chunks/yes-ELH3XQWY.js +0 -3
  747. package/dist/bin/shell/chunks/yq-GSCDUHGM.js +0 -3
  748. package/dist/bundle/chunks/awk2-V7KYQWCD.js +0 -2
  749. package/dist/bundle/chunks/base64-QPSYZAAJ.js +0 -2
  750. package/dist/bundle/chunks/bash-HIEWVHJ2.js +0 -2
  751. package/dist/bundle/chunks/cat-54BXBS6X.js +0 -2
  752. package/dist/bundle/chunks/chmod-4OPV4QKK.js +0 -2
  753. package/dist/bundle/chunks/chunk-2KNTH3KH.js +0 -9
  754. package/dist/bundle/chunks/chunk-2VWG4LDT.js +0 -11
  755. package/dist/bundle/chunks/chunk-2WBUTDF5.js +0 -2
  756. package/dist/bundle/chunks/chunk-3HDTNUL3.js +0 -6
  757. package/dist/bundle/chunks/chunk-3KWM4FFA.js +0 -12
  758. package/dist/bundle/chunks/chunk-4AKAIZPW.js +0 -15
  759. package/dist/bundle/chunks/chunk-4IMUNIUJ.js +0 -21
  760. package/dist/bundle/chunks/chunk-5ATEFZLC.js +0 -4
  761. package/dist/bundle/chunks/chunk-5BMPT6SF.js +0 -19
  762. package/dist/bundle/chunks/chunk-5QWGR2WA.js +0 -21
  763. package/dist/bundle/chunks/chunk-5UTZMNI5.js +0 -64
  764. package/dist/bundle/chunks/chunk-5VCAQBXL.js +0 -17
  765. package/dist/bundle/chunks/chunk-65LVAUWW.js +0 -7
  766. package/dist/bundle/chunks/chunk-6D3WD6YU.js +0 -3
  767. package/dist/bundle/chunks/chunk-6R4OQQWP.js +0 -16
  768. package/dist/bundle/chunks/chunk-6WGIZV3E.js +0 -13
  769. package/dist/bundle/chunks/chunk-72JHTO7E.js +0 -2
  770. package/dist/bundle/chunks/chunk-7GA3QWJJ.js +0 -33
  771. package/dist/bundle/chunks/chunk-7M672HB6.js +0 -21
  772. package/dist/bundle/chunks/chunk-AFFAMSJT.js +0 -14
  773. package/dist/bundle/chunks/chunk-ANCQ4SCV.js +0 -2
  774. package/dist/bundle/chunks/chunk-B3NGH6KE.js +0 -5
  775. package/dist/bundle/chunks/chunk-B5Z5HTFY.js +0 -14
  776. package/dist/bundle/chunks/chunk-B6OSJB22.js +0 -26
  777. package/dist/bundle/chunks/chunk-BM3X75NC.js +0 -36
  778. package/dist/bundle/chunks/chunk-CGI6V2HW.js +0 -11
  779. package/dist/bundle/chunks/chunk-CHHWTPDH.js +0 -3
  780. package/dist/bundle/chunks/chunk-D5ZJISRS.js +0 -11
  781. package/dist/bundle/chunks/chunk-DIRWTBKE.js +0 -19
  782. package/dist/bundle/chunks/chunk-DIWMSSQY.js +0 -2
  783. package/dist/bundle/chunks/chunk-DPZVOEUP.js +0 -6
  784. package/dist/bundle/chunks/chunk-EFORKKSH.js +0 -8
  785. package/dist/bundle/chunks/chunk-EGTVQWAP.js +0 -20
  786. package/dist/bundle/chunks/chunk-EJFBIRMD.js +0 -6
  787. package/dist/bundle/chunks/chunk-EQQGPAXI.js +0 -9
  788. package/dist/bundle/chunks/chunk-EXXOLIVE.js +0 -35
  789. package/dist/bundle/chunks/chunk-FIMO5HLX.js +0 -2
  790. package/dist/bundle/chunks/chunk-FT6ODGOU.js +0 -2
  791. package/dist/bundle/chunks/chunk-FZRQOL3C.js +0 -7
  792. package/dist/bundle/chunks/chunk-GLAFXDZC.js +0 -4
  793. package/dist/bundle/chunks/chunk-GN6CQ3J4.js +0 -2
  794. package/dist/bundle/chunks/chunk-H42OAUJL.js +0 -12
  795. package/dist/bundle/chunks/chunk-H53EPEGD.js +0 -12
  796. package/dist/bundle/chunks/chunk-HDOXCDVK.js +0 -7
  797. package/dist/bundle/chunks/chunk-HIQEVPXM.js +0 -2
  798. package/dist/bundle/chunks/chunk-J2OBOJ64.js +0 -2
  799. package/dist/bundle/chunks/chunk-LVDUF74R.js +0 -7
  800. package/dist/bundle/chunks/chunk-M4LDT7V7.js +0 -6
  801. package/dist/bundle/chunks/chunk-MDE25PQK.js +0 -15
  802. package/dist/bundle/chunks/chunk-MHDZERK4.js +0 -6
  803. package/dist/bundle/chunks/chunk-MHZF23KB.js +0 -33
  804. package/dist/bundle/chunks/chunk-N6W6FM4N.js +0 -8
  805. package/dist/bundle/chunks/chunk-NRLE7KYI.js +0 -6
  806. package/dist/bundle/chunks/chunk-OB46N7Q7.js +0 -2
  807. package/dist/bundle/chunks/chunk-OQ7C4FYO.js +0 -2
  808. package/dist/bundle/chunks/chunk-P5BOIHWV.js +0 -6
  809. package/dist/bundle/chunks/chunk-PPDMRIJ7.js +0 -11
  810. package/dist/bundle/chunks/chunk-PPHGMG47.js +0 -142
  811. package/dist/bundle/chunks/chunk-R6ZGLVXI.js +0 -9
  812. package/dist/bundle/chunks/chunk-RCRHDT54.js +0 -274
  813. package/dist/bundle/chunks/chunk-RIIUVFUS.js +0 -7
  814. package/dist/bundle/chunks/chunk-SQX6WQXB.js +0 -7
  815. package/dist/bundle/chunks/chunk-SRB6FXRH.js +0 -2
  816. package/dist/bundle/chunks/chunk-T4INBNHX.js +0 -8
  817. package/dist/bundle/chunks/chunk-TUQG2YRH.js +0 -5
  818. package/dist/bundle/chunks/chunk-U7UNEMLJ.js +0 -2
  819. package/dist/bundle/chunks/chunk-UHHCL65P.js +0 -3
  820. package/dist/bundle/chunks/chunk-UK2K3DHN.js +0 -8
  821. package/dist/bundle/chunks/chunk-VDJ53ESK.js +0 -9
  822. package/dist/bundle/chunks/chunk-VGCXKMXN.js +0 -10
  823. package/dist/bundle/chunks/chunk-W5DWRFSU.js +0 -2
  824. package/dist/bundle/chunks/chunk-W5J5ADJF.js +0 -100
  825. package/dist/bundle/chunks/chunk-XHFP44Y4.js +0 -5
  826. package/dist/bundle/chunks/chunk-Y32R7EZP.js +0 -25
  827. package/dist/bundle/chunks/chunk-Y62SXZKJ.js +0 -12
  828. package/dist/bundle/chunks/chunk-YUFU7O6I.js +0 -16
  829. package/dist/bundle/chunks/chunk-YZH7FUSY.js +0 -14
  830. package/dist/bundle/chunks/column-F5JDBRV6.js +0 -2
  831. package/dist/bundle/chunks/comm-DTWKU2MC.js +0 -2
  832. package/dist/bundle/chunks/cp-LTFB4EUA.js +0 -2
  833. package/dist/bundle/chunks/curl-XCX2ZQEA.js +0 -30
  834. package/dist/bundle/chunks/cut-IRSHL3BB.js +0 -2
  835. package/dist/bundle/chunks/date-FN2DXAEE.js +0 -2
  836. package/dist/bundle/chunks/diff-VDB6RXHO.js +0 -2
  837. package/dist/bundle/chunks/du-DOWSRLXR.js +0 -2
  838. package/dist/bundle/chunks/env-VUUMB47B.js +0 -2
  839. package/dist/bundle/chunks/expand-2BPPGGSM.js +0 -2
  840. package/dist/bundle/chunks/expr-GZ4DABKB.js +0 -2
  841. package/dist/bundle/chunks/file-UI6QJAAU.js +0 -2
  842. package/dist/bundle/chunks/find-JTXDH3MR.js +0 -2
  843. package/dist/bundle/chunks/flag-coverage-EDO3VM43.js +0 -2
  844. package/dist/bundle/chunks/fold-QJBPHRFJ.js +0 -2
  845. package/dist/bundle/chunks/grep-OZCR76FT.js +0 -2
  846. package/dist/bundle/chunks/gzip-GQC6CWVL.js +0 -2
  847. package/dist/bundle/chunks/head-J6RVJFRS.js +0 -2
  848. package/dist/bundle/chunks/html-to-markdown-7OG5VWYG.js +0 -2
  849. package/dist/bundle/chunks/join-KQ4Z5OD4.js +0 -2
  850. package/dist/bundle/chunks/jq-FCG2IUBK.js +0 -2
  851. package/dist/bundle/chunks/js-exec-NDLXDUBN.js +0 -1577
  852. package/dist/bundle/chunks/ls-MQTYWW4T.js +0 -2
  853. package/dist/bundle/chunks/md5sum-JEDX55KS.js +0 -2
  854. package/dist/bundle/chunks/mkdir-4A5W3RXH.js +0 -2
  855. package/dist/bundle/chunks/mktemp-XKIE5N3X.js +0 -2
  856. package/dist/bundle/chunks/mv-ZPIATQJL.js +0 -2
  857. package/dist/bundle/chunks/nl-RFXH2GNX.js +0 -2
  858. package/dist/bundle/chunks/od-LUHOH7CG.js +0 -2
  859. package/dist/bundle/chunks/paste-U57ZU47S.js +0 -2
  860. package/dist/bundle/chunks/printf-V42QCPHL.js +0 -2
  861. package/dist/bundle/chunks/python3-SDFCGIU4.js +0 -22
  862. package/dist/bundle/chunks/readlink-YNNS6F7K.js +0 -2
  863. package/dist/bundle/chunks/rev-EPOS3MFH.js +0 -2
  864. package/dist/bundle/chunks/rg-F4SX2PHI.js +0 -2
  865. package/dist/bundle/chunks/rm-3XUUYAXQ.js +0 -2
  866. package/dist/bundle/chunks/rmdir-OGSEXEF4.js +0 -2
  867. package/dist/bundle/chunks/sed-MBB5SXGD.js +0 -2
  868. package/dist/bundle/chunks/seq-IN77HD3S.js +0 -2
  869. package/dist/bundle/chunks/sha1sum-BLPZJ6MP.js +0 -2
  870. package/dist/bundle/chunks/sha256sum-VJZ4PHQ4.js +0 -2
  871. package/dist/bundle/chunks/sort-PV2NEQHF.js +0 -2
  872. package/dist/bundle/chunks/split-6R2TSQY6.js +0 -2
  873. package/dist/bundle/chunks/sqlite3-7MBPFI6W.js +0 -2
  874. package/dist/bundle/chunks/stat-YLVJ4L67.js +0 -2
  875. package/dist/bundle/chunks/strings-WTD7Q2EF.js +0 -2
  876. package/dist/bundle/chunks/tac-YXC4HBTR.js +0 -2
  877. package/dist/bundle/chunks/tail-UGFWX3YY.js +0 -2
  878. package/dist/bundle/chunks/tar-BNHPWTOY.js +0 -2
  879. package/dist/bundle/chunks/tee-OOWSWHRQ.js +0 -2
  880. package/dist/bundle/chunks/time-N6J6DC6C.js +0 -2
  881. package/dist/bundle/chunks/timeout-ZHCL5KTP.js +0 -2
  882. package/dist/bundle/chunks/touch-W4DF6Z4T.js +0 -2
  883. package/dist/bundle/chunks/tr-4NGL47UU.js +0 -2
  884. package/dist/bundle/chunks/unexpand-YD5BWFH4.js +0 -2
  885. package/dist/bundle/chunks/uniq-OVOW532K.js +0 -2
  886. package/dist/bundle/chunks/wc-RUR7HE5O.js +0 -2
  887. package/dist/bundle/chunks/xan-7R3I2DJO.js +0 -2
  888. package/dist/bundle/chunks/xan-view-S4ZILLPU.js +0 -2
  889. package/dist/bundle/chunks/xargs-L7TJHOJT.js +0 -2
  890. package/dist/bundle/chunks/yes-I7SAR7XX.js +0 -2
  891. package/dist/bundle/chunks/yq-IOMBQYB2.js +0 -2
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+ import{createRequire} from"node:module";const require=createRequire(import.meta.url);
3
+ import{b as g}from"./chunk-GFI5BHZX.js";import{a as b,b as m,c as v}from"./chunk-MUFNRCMY.js";var L={name:"unexpand",summary:"convert spaces to tabs",usage:"unexpand [OPTION]... [FILE]...",description:"Convert blanks in each FILE to TABs, writing to standard output. If no FILE is specified, standard input is read.",options:["-t N Use N spaces per tab (default: 8)","-t LIST Use comma-separated list of tab stops","-a Convert all sequences of blanks (not just leading)"],examples:["unexpand file.txt # Convert leading spaces to tabs","unexpand -a file.txt # Convert all space sequences","unexpand -t 4 file.txt # Use 4-space tabs"]};function f(s){let i=s.split(",").map(o=>o.trim()),e=[];for(let o of i){let n=parseInt(o,10);if(Number.isNaN(n)||n<1)return null;e.push(n)}for(let o=1;o<e.length;o++)if(e[o]<=e[o-1])return null;return e}function C(s,i){if(i.length===1){let e=i[0];return s+(e-s%e)}for(let e of i)if(e>s)return e;if(i.length>=2){let e=i[i.length-1]-i[i.length-2],o=i[i.length-1],n=Math.floor((s-o)/e)+1;return o+n*e}return-1}function N(s,i){let{tabStops:e,allBlanks:o}=i,n="",a=0,t="",l=0,u=!0,d=()=>{if(t.length===0)return;let r=l+t.length;if(!o&&!u){n+=t,t="";return}let p=l,c="";for(;p<r;){let h=C(p,e);if(h<=r&&h>p)c+=" ",p=h;else break}let x=r-p;x>0&&(c+=" ".repeat(x)),n+=c,t=""};for(let r of s)r===" "?(t.length===0&&(l=a),t+=r,a++):r===" "?(d(),n+=r,a=C(a,e)):(d(),n+=r,a++,u=!1);return d(),n}function k(s,i){if(s==="")return"";let e=s.split(`
4
+ `),o=s.endsWith(`
5
+ `)&&e[e.length-1]==="";return o&&e.pop(),e.map(a=>N(a,i)).join(`
6
+ `)+(o?`
7
+ `:"")}var I={name:"unexpand",execute:async(s,i)=>{if(m(s))return b(L);let e={tabStops:[8],allBlanks:!1},o=[],n=0;for(;n<s.length;){let t=s[n];if(t==="-t"&&n+1<s.length){let l=f(s[n+1]);if(!l)return{exitCode:1,stdout:"",stderr:`unexpand: invalid tab size: '${s[n+1]}'
8
+ `};e.tabStops=l,n+=2}else if(t.startsWith("-t")&&t.length>2){let l=f(t.slice(2));if(!l)return{exitCode:1,stdout:"",stderr:`unexpand: invalid tab size: '${t.slice(2)}'
9
+ `};e.tabStops=l,n++}else if(t==="--tabs"&&n+1<s.length){let l=f(s[n+1]);if(!l)return{exitCode:1,stdout:"",stderr:`unexpand: invalid tab size: '${s[n+1]}'
10
+ `};e.tabStops=l,n+=2}else if(t.startsWith("--tabs=")){let l=f(t.slice(7));if(!l)return{exitCode:1,stdout:"",stderr:`unexpand: invalid tab size: '${t.slice(7)}'
11
+ `};e.tabStops=l,n++}else if(t==="-a"||t==="--all")e.allBlanks=!0,n++;else if(t==="--"){o.push(...s.slice(n+1));break}else{if(t.startsWith("-")&&t!=="-")return v("unexpand",t);o.push(t),n++}}let a="";if(o.length===0){let t=g(i.stdin)??"";a=k(t,e)}else for(let t of o){let l=i.fs.resolvePath(i.cwd,t),u=await i.fs.readFile(l);if(u===null)return{exitCode:1,stdout:a,stderr:`unexpand: ${t}: No such file or directory
12
+ `};a+=k(u,e)}return{exitCode:0,stdout:a,stderr:""}}},T={name:"unexpand",flags:[{flag:"-t",type:"value",valueHint:"number"},{flag:"-a",type:"boolean"}],stdinType:"text",needsFiles:!0};export{I as a,T as b};
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+ import{createRequire} from"node:module";const require=createRequire(import.meta.url);
3
+ import{a as m}from"./chunk-26O2G5LX.js";import{a as x}from"./chunk-H22PAKR6.js";import{a as w}from"./chunk-PBOVSFTJ.js";var k={name:"expr",async execute(i,a){if(i.length===0)return{stdout:"",stderr:`expr: missing operand
4
+ `,exitCode:2};try{let t=S(i,h=>a.executionScope?.consumeWork(h,"expr index")),f=t==="0"||t===""?1:0;return{stdout:`${t}
5
+ `,stderr:"",exitCode:f}}catch(t){return x(t),{stdout:"",stderr:`expr: ${w(t.message)}
6
+ `,exitCode:2}}}};function S(i,a){if(i.length===1)return i[0];let t=0;function f(){let e=h();for(;t<i.length&&i[t]==="|";){t++;let r=h();if(e!=="0"&&e!=="")return e;e=r}return e}function h(){let e=g();for(;t<i.length&&i[t]==="&";){t++;let r=g();(e==="0"||e===""||r==="0"||r==="")&&(e="0")}return e}function g(){let e=p();for(;t<i.length;){let r=i[t];if(["=","!=","<",">","<=",">="].includes(r)){t++;let s=p(),o=parseInt(e,10),n=parseInt(s,10),l=!Number.isNaN(o)&&!Number.isNaN(n),c;r==="="?c=l?o===n:e===s:r==="!="?c=l?o!==n:e!==s:r==="<"?c=l?o<n:e<s:r===">"?c=l?o>n:e>s:r==="<="?c=l?o<=n:e<=s:c=l?o>=n:e>=s,e=c?"1":"0"}else break}return e}function p(){let e=N();for(;t<i.length;){let r=i[t];if(r==="+"||r==="-"){t++;let s=N(),o=parseInt(e,10),n=parseInt(s,10);if(Number.isNaN(o)||Number.isNaN(n))throw new Error("non-integer argument");e=String(r==="+"?o+n:o-n)}else break}return e}function N(){let e=d();for(;t<i.length;){let r=i[t];if(r==="*"||r==="/"||r==="%"){t++;let s=d(),o=parseInt(e,10),n=parseInt(s,10);if(Number.isNaN(o)||Number.isNaN(n))throw new Error("non-integer argument");if((r==="/"||r==="%")&&n===0)throw new Error("division by zero");r==="*"?e=String(o*n):r==="/"?e=String(Math.trunc(o/n)):e=String(o%n)}else break}return e}function d(){let e=u();for(;t<i.length&&i[t]===":";){t++;let r=u(),o=m(`^${r}`).match(e);o?e=o[1]!==void 0?o[1]:String(o[0].length):e="0"}return e}function u(){if(t>=i.length)throw new Error("syntax error");let e=i[t];if(e==="match"){t++;let r=u(),s=u(),n=m(s).match(r);return n?n[1]!==void 0?n[1]:String(n[0].length):"0"}if(e==="substr"){t++;let r=u(),s=parseInt(u(),10),o=parseInt(u(),10);if(Number.isNaN(s)||Number.isNaN(o))throw new Error("non-integer argument");return r.substring(s-1,s-1+o)}if(e==="index"){t++;let r=u(),s=u();a(s.length+r.length);let o=new Set;for(let n=0;n<s.length;n++)o.add(s[n]);for(let n=0;n<r.length;n++)if(o.has(r[n]))return String(n+1);return"0"}if(e==="length"){t++;let r=u();return String(r.length)}if(e==="("){t++;let r=f();if(t>=i.length||i[t]!==")")throw new Error("syntax error");return t++,r}return t++,e}let b=f();if(t!==i.length)throw new Error("syntax error");return b}var C={name:"expr",flags:[],needsArgs:!0};export{k as a,C as b};
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env node
2
+ import{createRequire} from"node:module";const require=createRequire(import.meta.url);
3
+ import{a as Ue}from"./chunk-H22PAKR6.js";import{e as Ne}from"./chunk-QIDBJNMB.js";import{a as Re,b as Pe,c as ge}from"./chunk-MUFNRCMY.js";import{a as re,b as L,c as Le}from"./chunk-DN2YCFOR.js";var We=L(ye=>{ye.read=function(i,e,t,r,n){var o,s,f=n*8-r-1,m=(1<<f)-1,a=m>>1,c=-7,p=t?n-1:0,u=t?-1:1,d=i[e+p];for(p+=u,o=d&(1<<-c)-1,d>>=-c,c+=f;c>0;o=o*256+i[e+p],p+=u,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=s*256+i[e+p],p+=u,c-=8);if(o===0)o=1-a;else{if(o===m)return s?NaN:(d?-1:1)*(1/0);s=s+Math.pow(2,r),o=o-a}return(d?-1:1)*s*Math.pow(2,o-r)};ye.write=function(i,e,t,r,n,o){var s,f,m,a=o*8-n-1,c=(1<<a)-1,p=c>>1,u=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,b=r?1:-1,w=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(f=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(m=Math.pow(2,-s))<1&&(s--,m*=2),s+p>=1?e+=u/m:e+=u*Math.pow(2,1-p),e*m>=2&&(s++,m/=2),s+p>=c?(f=0,s=c):s+p>=1?(f=(e*m-1)*Math.pow(2,n),s=s+p):(f=e*Math.pow(2,p-1)*Math.pow(2,n),s=0));n>=8;i[t+d]=f&255,d+=b,f/=256,n-=8);for(s=s<<n|f,a+=n;a>0;i[t+d]=s&255,d+=b,s/=256,a-=8);i[t+d-b]|=w*128}});var Qe=L((un,Xe)=>{var H=1e3,J=H*60,X=J*60,$=X*24,Xt=$*7,Qt=$*365.25;Xe.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?ei(i):Kt(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*Qt;case"weeks":case"week":case"w":return t*Xt;case"days":case"day":case"d":return t*$;case"hours":case"hour":case"hrs":case"hr":case"h":return t*X;case"minutes":case"minute":case"mins":case"min":case"m":return t*J;case"seconds":case"second":case"secs":case"sec":case"s":return t*H;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function Kt(i){var e=Math.abs(i);return e>=$?Math.round(i/$)+"d":e>=X?Math.round(i/X)+"h":e>=J?Math.round(i/J)+"m":e>=H?Math.round(i/H)+"s":i+"ms"}function ei(i){var e=Math.abs(i);return e>=$?fe(i,e,$,"day"):e>=X?fe(i,e,X,"hour"):e>=J?fe(i,e,J,"minute"):e>=H?fe(i,e,H,"second"):i+" ms"}function fe(i,e,t,r){var n=e>=t*1.5;return Math.round(i/t)+" "+r+(n?"s":"")}});var Ce=L((ln,Ye)=>{function ti(i){t.debug=t,t.default=t,t.coerce=m,t.disable=s,t.enable=n,t.enabled=f,t.humanize=Qe(),t.destroy=a,Object.keys(i).forEach(c=>{t[c]=i[c]}),t.names=[],t.skips=[],t.formatters={};function e(c){let p=0;for(let u=0;u<c.length;u++)p=(p<<5)-p+c.charCodeAt(u),p|=0;return t.colors[Math.abs(p)%t.colors.length]}t.selectColor=e;function t(c){let p,u=null,d,b;function w(...T){if(!w.enabled)return;let P=w,te=Number(new Date),Ot=te-(p||te);P.diff=Ot,P.prev=p,P.curr=te,p=te,T[0]=t.coerce(T[0]),typeof T[0]!="string"&&T.unshift("%O");let ie=0;T[0]=T[0].replace(/%([a-zA-Z%])/g,(he,zt)=>{if(he==="%%")return"%";ie++;let Me=t.formatters[zt];if(typeof Me=="function"){let Mt=T[ie];he=Me.call(P,Mt),T.splice(ie,1),ie--}return he}),t.formatArgs.call(P,T),(P.log||t.log).apply(P,T)}return w.namespace=c,w.useColors=t.useColors(),w.color=t.selectColor(c),w.extend=r,w.destroy=t.destroy,Object.defineProperty(w,"enabled",{enumerable:!0,configurable:!1,get:()=>u!==null?u:(d!==t.namespaces&&(d=t.namespaces,b=t.enabled(c)),b),set:T=>{u=T}}),typeof t.init=="function"&&t.init(w),w}function r(c,p){let u=t(this.namespace+(typeof p>"u"?":":p)+c);return u.log=this.log,u}function n(c){t.save(c),t.namespaces=c,t.names=[],t.skips=[];let p=(typeof c=="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let u of p)u[0]==="-"?t.skips.push(u.slice(1)):t.names.push(u)}function o(c,p){let u=0,d=0,b=-1,w=0;for(;u<c.length;)if(d<p.length&&(p[d]===c[u]||p[d]==="*"))p[d]==="*"?(b=d,w=u,d++):(u++,d++);else if(b!==-1)d=b+1,w++,u=w;else return!1;for(;d<p.length&&p[d]==="*";)d++;return d===p.length}function s(){let c=[...t.names,...t.skips.map(p=>"-"+p)].join(",");return t.enable(""),c}function f(c){for(let p of t.skips)if(o(c,p))return!1;for(let p of t.names)if(o(c,p))return!0;return!1}function m(c){return c instanceof Error?c.stack||c.message:c}function a(){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}Ye.exports=ti});var Ke=L((E,pe)=>{E.formatArgs=ri;E.save=ni;E.load=oi;E.useColors=ii;E.storage=si();E.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`."))}})();E.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function ii(){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 ri(i){if(i[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+i[0]+(this.useColors?"%c ":" ")+"+"+pe.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)}E.log=console.debug||console.log||(()=>{});function ni(i){try{i?E.storage.setItem("debug",i):E.storage.removeItem("debug")}catch{}}function oi(){let i;try{i=E.storage.getItem("debug")||E.storage.getItem("DEBUG")}catch{}return!i&&typeof process<"u"&&"env"in process&&(i=process.env.DEBUG),i}function si(){try{return localStorage}catch{}}pe.exports=Ce()(E);var{formatters:ai}=pe.exports;ai.j=function(i){try{return JSON.stringify(i)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var tt=L((dn,et)=>{"use strict";et.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 nt=L((xn,rt)=>{"use strict";var ci=re("os"),it=re("tty"),v=tt(),{env:y}=process,U;v("no-color")||v("no-colors")||v("color=false")||v("color=never")?U=0:(v("color")||v("colors")||v("color=true")||v("color=always"))&&(U=1);"FORCE_COLOR"in y&&(y.FORCE_COLOR==="true"?U=1:y.FORCE_COLOR==="false"?U=0:U=y.FORCE_COLOR.length===0?1:Math.min(parseInt(y.FORCE_COLOR,10),3));function Se(i){return i===0?!1:{level:i,hasBasic:!0,has256:i>=2,has16m:i>=3}}function Fe(i,e){if(U===0)return 0;if(v("color=16m")||v("color=full")||v("color=truecolor"))return 3;if(v("color=256"))return 2;if(i&&!e&&U===void 0)return 0;let t=U||0;if(y.TERM==="dumb")return t;if(process.platform==="win32"){let r=ci.release().split(".");return Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in y)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(r=>r in y)||y.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in y)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(y.TEAMCITY_VERSION)?1:0;if(y.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in y){let r=parseInt((y.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(y.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(y.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(y.TERM)||"COLORTERM"in y?1:t}function fi(i){let e=Fe(i,i&&i.isTTY);return Se(e)}rt.exports={supportsColor:fi,stdout:Se(Fe(!0,it.isatty(1))),stderr:Se(Fe(!0,it.isatty(2)))}});var st=L((k,ue)=>{var pi=re("tty"),me=re("util");k.init=gi;k.log=di;k.formatArgs=ui;k.save=xi;k.load=hi;k.useColors=mi;k.destroy=me.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");k.colors=[6,2,3,4,5,1];try{let i=nt();i&&(i.stderr||i).level>=2&&(k.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{}k.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 mi(){return"colors"in k.inspectOpts?!!k.inspectOpts.colors:pi.isatty(process.stderr.fd)}function ui(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(`
4
+ `).join(`
5
+ `+o),i.push(n+"m+"+ue.exports.humanize(this.diff)+"\x1B[0m")}else i[0]=li()+e+" "+i[0]}function li(){return k.inspectOpts.hideDate?"":new Date().toISOString()+" "}function di(...i){return process.stderr.write(me.formatWithOptions(k.inspectOpts,...i)+`
6
+ `)}function xi(i){i?process.env.DEBUG=i:delete process.env.DEBUG}function hi(){return process.env.DEBUG}function gi(i){i.inspectOpts={};let e=Object.keys(k.inspectOpts);for(let t=0;t<e.length;t++)i.inspectOpts[e[t]]=k.inspectOpts[e[t]]}ue.exports=Ce()(k);var{formatters:ot}=ue.exports;ot.o=function(i){return this.inspectOpts.colors=this.useColors,me.inspect(i,this.inspectOpts).split(`
7
+ `).map(e=>e.trim()).join(" ")};ot.O=function(i){return this.inspectOpts.colors=this.useColors,me.inspect(i,this.inspectOpts)}});var at=L((hn,Ee)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Ee.exports=Ke():Ee.exports=st()});var Lt="End-Of-Stream",l=class extends Error{constructor(){super(Lt),this.name="EndOfStreamError"}},N=class extends Error{constructor(e="The operation was aborted"){super(e),this.name="AbortError"}};var j=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 l;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 N;let n=await this.readFromStream(e.subarray(r),t);if(n===0)break;r+=n}if(!t&&r<e.length)throw new l;return r}};var ne=class extends j{constructor(e){super(),this.reader=e}async abort(){return this.close()}async close(){this.reader.releaseLock()}};var Q=class extends ne{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 Z=class extends j{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 l;return r}abort(){return this.interrupted=!0,this.reader.cancel()}async close(){await this.abort(),this.reader.releaseLock()}};function we(i){try{let e=i.getReader({mode:"byob"});return e instanceof ReadableStreamDefaultReader?new Z(e):new Q(e)}catch(e){if(e instanceof TypeError)return new Z(i.getReader());throw e}}var I=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 l;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 l;return e.get(r,0)}async readNumber(e){if(await this.readBuffer(this.numBuffer,{length:e.len})<e.len)throw new l;return e.get(this.numBuffer,0)}async peekNumber(e){if(await this.peekBuffer(this.numBuffer,{length:e.len})<e.len)throw new l;return e.get(this.numBuffer,0)}async ignore(e){if(e<0)throw new RangeError("ignore length must be \u2265 0 bytes");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 Rt=256e3,oe=class extends I{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 l;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 l)return 0;throw o}if(!r.mayBeLess&&n<r.length)throw new l}return n}async ignore(e){if(e<0)throw new RangeError("ignore length must be \u2265 0 bytes");let t=Math.min(Rt,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 se=class extends I{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 l;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 ae=class extends I{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 l;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 je(i,e){let t=we(i),r=e??{},n=r.onClose;return r.onClose=async()=>{if(await t.close(),n)return n()},new oe(t,r)}function _e(i,e){return new se(i,e)}function $e(i,e){return new ae(i,e)}import{open as Nt}from"node:fs/promises";var V=class i extends I{static async fromFile(e){let t=await Nt(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 l;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 l;return n.bytesRead}async close(){return await this.fileHandle.close(),super.close()}setPosition(e){this.position=e}supportsRandomAccess(){return!0}};var sn=V.fromFile;var Ve=Le(We(),1);var Ge={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"},_t={};for(let[i,e]of Object.entries(Ge))_t[e]=Number.parseInt(i,10);var ce;function $t(){if(!(typeof globalThis.TextDecoder>"u"))return ce??(ce=new globalThis.TextDecoder("utf-8"))}var q=32*1024,B=65533;function Ze(i,e="utf-8"){switch(e.toLowerCase()){case"utf-8":case"utf8":{let t=$t();return t?t.decode(i):Gt(i)}case"utf-16le":return Zt(i);case"us-ascii":case"ascii":return Vt(i);case"latin1":case"iso-8859-1":return qt(i);case"windows-1252":return Ht(i);default:throw new RangeError(`Encoding '${e}' not supported`)}}function ke(i,e){e.length!==0&&(i.push(String.fromCharCode.apply(null,e)),e.length=0)}function g(i,e,t){e.push(t),e.length>=q&&ke(i,e)}function Wt(i,e,t){if(t<=65535){g(i,e,t);return}t-=65536,g(i,e,55296+(t>>10)),g(i,e,56320+(t&1023))}function Gt(i){let e=[],t=[],r=0;for(i.length>=3&&i[0]===239&&i[1]===187&&i[2]===191&&(r=3);r<i.length;){let n=i[r];if(n<=127){g(e,t,n),r++;continue}if(n<194||n>244){g(e,t,B),r++;continue}if(n<=223){if(r+1>=i.length){g(e,t,B),r++;continue}let c=i[r+1];if((c&192)!==128){g(e,t,B),r++;continue}let p=(n&31)<<6|c&63;g(e,t,p),r+=2;continue}if(n<=239){if(r+2>=i.length){g(e,t,B),r++;continue}let c=i[r+1],p=i[r+2];if(!((c&192)===128&&(p&192)===128&&!(n===224&&c<160)&&!(n===237&&c>=160))){g(e,t,B),r++;continue}let d=(n&15)<<12|(c&63)<<6|p&63;g(e,t,d),r+=3;continue}if(r+3>=i.length){g(e,t,B),r++;continue}let o=i[r+1],s=i[r+2],f=i[r+3];if(!((o&192)===128&&(s&192)===128&&(f&192)===128&&!(n===240&&o<144)&&!(n===244&&o>143))){g(e,t,B),r++;continue}let a=(n&7)<<18|(o&63)<<12|(s&63)<<6|f&63;Wt(e,t,a),r+=4}return ke(e,t),e.join("")}function Zt(i){let e=[],t=[],r=i.length,n=0;for(;n+1<r;){let o=i[n]|i[n+1]<<8;if(n+=2,o>=55296&&o<=56319){if(n+1<r){let s=i[n]|i[n+1]<<8;s>=56320&&s<=57343?(g(e,t,o),g(e,t,s),n+=2):g(e,t,B)}else g(e,t,B);continue}if(o>=56320&&o<=57343){g(e,t,B);continue}g(e,t,o)}return n<r&&g(e,t,B),ke(e,t),e.join("")}function Vt(i){let e=[];for(let t=0;t<i.length;t+=q){let r=Math.min(i.length,t+q),n=new Array(r-t);for(let o=t,s=0;o<r;o++,s++)n[s]=i[o]&127;e.push(String.fromCharCode.apply(null,n))}return e.join("")}function qt(i){let e=[];for(let t=0;t<i.length;t+=q){let r=Math.min(i.length,t+q),n=new Array(r-t);for(let o=t,s=0;o<r;o++,s++)n[s]=i[o];e.push(String.fromCharCode.apply(null,n))}return e.join("")}function Ht(i){let e=[],t="";for(let r=0;r<i.length;r++){let n=i[r],o=n>=128&&n<=159?Ge[n]:void 0;t+=o??String.fromCharCode(n),t.length>=q&&(e.push(t),t="")}return t&&e.push(t),e.join("")}function S(i){return new DataView(i.buffer,i.byteOffset)}var qe={len:1,get(i,e){return S(i).getUint8(e)},put(i,e,t){return S(i).setUint8(e,t),e+1}},h={len:2,get(i,e){return S(i).getUint16(e,!0)},put(i,e,t){return S(i).setUint16(e,t,!0),e+2}},_={len:2,get(i,e){return S(i).getUint16(e)},put(i,e,t){return S(i).setUint16(e,t),e+2}};var x={len:4,get(i,e){return S(i).getUint32(e,!0)},put(i,e,t){return S(i).setUint32(e,t,!0),e+4}},be={len:4,get(i,e){return S(i).getUint32(e)},put(i,e,t){return S(i).setUint32(e,t),e+4}};var He={len:4,get(i,e){return S(i).getInt32(e)},put(i,e,t){return S(i).setInt32(e,t),e+4}};var Je={len:8,get(i,e){return S(i).getBigUint64(e,!0)},put(i,e,t){return S(i).setBigUint64(e,t,!0),e+8}};var F=class{constructor(e,t){this.len=e,this.encoding=t}get(e,t=0){let r=e.subarray(t,t+this.len);return Ze(r,this.encoding)}};var mt=Le(at(),1);var W={LocalFileHeader:67324752,DataDescriptor:134695760,CentralFileHeader:33639248,EndOfCentralDirectory:101010256},Te={get(i){return{signature:x.get(i,0),compressedSize:x.get(i,8),uncompressedSize:x.get(i,12)}},len:16},ct={get(i){let e=h.get(i,6);return{signature:x.get(i,0),minVersion:h.get(i,4),dataDescriptor:!!(e&8),compressedMethod:h.get(i,8),compressedSize:x.get(i,18),uncompressedSize:x.get(i,22),filenameLength:h.get(i,26),extraFieldLength:h.get(i,28),filename:null}},len:30},ft={get(i){return{signature:x.get(i,0),nrOfThisDisk:h.get(i,4),nrOfThisDiskWithTheStart:h.get(i,6),nrOfEntriesOnThisDisk:h.get(i,8),nrOfEntriesOfSize:h.get(i,10),sizeOfCd:x.get(i,12),offsetOfStartOfCd:x.get(i,16),zipFileCommentLength:h.get(i,20)}},len:22},pt={get(i){let e=h.get(i,8);return{signature:x.get(i,0),minVersion:h.get(i,6),dataDescriptor:!!(e&8),compressedMethod:h.get(i,10),compressedSize:x.get(i,20),uncompressedSize:x.get(i,24),filenameLength:h.get(i,28),extraFieldLength:h.get(i,30),fileCommentLength:h.get(i,32),relativeOffsetOfLocalHeader:x.get(i,42),filename:null}},len:46};function ut(i){let e=new Uint8Array(x.len);return x.put(e,0,i),e}var D=(0,mt.default)("tokenizer:inflate"),ve=256*1024,wi=ut(W.DataDescriptor),le=ut(W.EndOfCentralDirectory),G=class i{constructor(e){this.tokenizer=e,this.syncBuffer=new Uint8Array(ve)}async isZip(){return await this.peekSignature()===W.LocalFileHeader}peekSignature(){return this.tokenizer.peekToken(x)}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]===le[0]&&r[n+1]===le[1]&&r[n+2]===le[2]&&r[n+3]===le[3])return e.fileInfo.size-t+n;return-1}async readCentralDirectory(){if(!this.tokenizer.supportsRandomAccess()){D("Cannot reading central-directory without random-read support");return}D("Reading central-directory...");let e=this.tokenizer.position,t=await this.findEndOfCentralDirectoryLocator();if(t>0){D("Central-directory 32-bit signature found");let r=await this.tokenizer.readToken(ft,t),n=[];this.tokenizer.setPosition(r.offsetOfStartOfCd);for(let o=0;o<r.nrOfEntriesOfSize;++o){let s=await this.tokenizer.readToken(pt);if(s.signature!==W.CentralFileHeader)throw new Error("Expected Central-File-Header signature");s.filename=await this.tokenizer.readToken(new F(s.filenameLength,"utf-8")),await this.tokenizer.ignore(s.extraFieldLength),await this.tokenizer.ignore(s.fileCommentLength),n.push(s),D(`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 f=[],m=ve;D("Compressed-file-size unknown, scanning for next data-descriptor-signature....");let a=-1;for(;a<0&&m===ve;){m=await this.tokenizer.peekBuffer(this.syncBuffer,{mayBeLess:!0}),a=yi(this.syncBuffer.subarray(0,m),wi);let c=a>=0?a:m;if(o.handler){let p=new Uint8Array(c);await this.tokenizer.readBuffer(p),f.push(p)}else await this.tokenizer.ignore(c)}D(`Found data-descriptor-signature at pos=${this.tokenizer.position}`),o.handler&&await this.inflate(n,ki(f),o.handler)}else o.handler?(D(`Reading compressed-file-data: ${n.compressedSize} bytes`),s=new Uint8Array(n.compressedSize),await this.tokenizer.readBuffer(s),await this.inflate(n,s,o.handler)):(D(`Ignoring compressed-file-data: ${n.compressedSize} bytes`),await this.tokenizer.ignore(n.compressedSize));if(D(`Reading data-descriptor at pos=${this.tokenizer.position}`),n.dataDescriptor&&(await this.tokenizer.readToken(Te)).signature!==134695760)throw new Error(`Expected data-descriptor-signature at position ${this.tokenizer.position-Te.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}`);D(`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(x);if(e===W.LocalFileHeader){let t=await this.tokenizer.readToken(ct);return t.filename=await this.tokenizer.readToken(new F(t.filenameLength,"utf-8")),t}if(e===W.CentralFileHeader)return!1;throw e===3759263696?new Error("Encrypted ZIP"):new Error("Unexpected signature")}};function yi(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 ki(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 Y=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 Tn={utf8:new globalThis.TextDecoder("utf8")};var vn=new globalThis.TextEncoder;var An=Array.from({length:256},(i,e)=>e.toString(16).padStart(2,"0"));function Ae(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 lt(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 dt(i,e=0){let t=Number.parseInt(new F(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 xt={get:(i,e)=>i[e+3]&127|i[e+2]<<7|i[e+1]<<14|i[e]<<21,len:4};var ht=["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"],gt=["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 K=4100,bi=K-2,z=1024*1024,wt=1024,Ci=2**31-1,A=16*1024*1024,xe=z,yt=z,Si=A,Fi=1,kt=100,Ie=A,bt=64,Ct=xe,Ei=256,Ti=512,vi=A,Ai=512,Ii=512,St=256,Ft=xe,Et=xe,Bi=xe,Tt=A,Di=new Set(["Unexpected signature","Encrypted ZIP","Expected Central-File-Header signature"]),Oi=["ZIP entry count exceeds ","Unsupported ZIP compression method:","ZIP entry compressed data exceeds ","ZIP entry decompressed data exceeds ","Expected data-descriptor-signature at position "],zi=new Set(["Z_BUF_ERROR","Z_DATA_ERROR","ERR_INVALID_STATE"]),M=class extends Error{};function Mi(i){let e=i?.streamReader;if(e?.constructor?.name!=="WebStreamByobReader")return i;let{reader:t}=e,r=async()=>{await t.cancel(),t.releaseLock()};return e.close=r,e.abort=async()=>{e.interrupted=!0,await r()},i}function Oe(i,e,t){if(!Number.isFinite(i)||i<0||i>e)throw new M(`${t} has invalid size ${i} (maximum ${e} bytes)`);return i}async function R(i,e,{maximumLength:t=A,reason:r="skip"}={}){let n=Oe(e,t,r);await i.ignore(n)}async function Be(i,e,t,{maximumLength:r=e.length,reason:n="read"}={}){let o=t?.length??e.length,s=Oe(o,r,n);return i.readBuffer(e,{...t,length:s})}async function Li(i,{maximumLength:e=z}={}){let n=new ReadableStream({start(a){a.enqueue(i),a.close()}}).pipeThrough(new DecompressionStream("deflate-raw")).getReader(),o=[],s=0;try{for(;;){let{done:a,value:c}=await n.read();if(a)break;if(s+=c.length,s>e)throw await n.cancel(),new Error(`ZIP entry decompressed data exceeds ${e} bytes`);o.push(c)}}finally{n.releaseLock()}let f=new Uint8Array(s),m=0;for(let a of o)f.set(a,m),m+=a.length;return f}var Bt=134695760,de=16,Ui=de-1;function Ri(i,e){if(i.length<de)return-1;let t=i.length-de;for(let r=0;r<=t;r++)if(x.get(i,r)===Bt&&x.get(i,r+8)===e+r)return r;return-1}function Pi(i){return(i.codePointAt(0)&32)!==0}function Ni(i,e){let t=new Uint8Array(e),r=0;for(let n of i)t.set(n,r),r+=n.length;return t}async function ji(i,{shouldBuffer:e,maximumLength:t=z}={}){let{syncBuffer:r}=i,{length:n}=r,o=[],s=0;for(;;){let f=await i.tokenizer.peekBuffer(r,{mayBeLess:!0}),m=Ri(r.subarray(0,f),s),a=m>=0?0:f===n?Math.min(Ui,f-1):0,c=m>=0?m:f-a;if(c===0)break;if(s+=c,s>t)throw new Error(`ZIP entry compressed data exceeds ${t} bytes`);if(e){let p=new Uint8Array(c);await i.tokenizer.readBuffer(p),o.push(p)}else await i.tokenizer.ignore(c);if(m>=0)break}if(C(i.tokenizer)||(i.knownSizeDescriptorScannedBytes+=s),!!e)return Ni(o,s)}function _i(i,e){return C(i.tokenizer)?Math.max(0,A-(i.tokenizer.position-e)):Math.max(0,z-i.knownSizeDescriptorScannedBytes)}async function $i(i,e,{shouldBuffer:t,maximumDescriptorLength:r=z}={}){if(e.dataDescriptor&&e.compressedSize===0)return ji(i,{shouldBuffer:t,maximumLength:r});if(!t){await R(i.tokenizer,e.compressedSize,{maximumLength:C(i.tokenizer)?z:i.tokenizer.fileInfo.size,reason:"ZIP entry compressed data"});return}let n=Hi(i.tokenizer);if(!Number.isFinite(e.compressedSize)||e.compressedSize<0||e.compressedSize>n)throw new Error(`ZIP entry compressed data exceeds ${n} bytes`);let o=new Uint8Array(e.compressedSize);return await i.tokenizer.readBuffer(o),o}G.prototype.inflate=async function(i,e,t){if(i.compressedMethod===0)return t(e);if(i.compressedMethod!==8)throw new Error(`Unsupported ZIP compression method: ${i.compressedMethod}`);let r=await Li(e,{maximumLength:z});return t(r)};G.prototype.unzip=async function(i){let e=!1,t=0,r=this.tokenizer.position;this.knownSizeDescriptorScannedBytes=0;do{if(ee(this.tokenizer,r,A))throw new M(`ZIP stream probing exceeds ${A} bytes`);let n=await this.readLocalFileHeader();if(!n)break;if(t++,t>wt)throw new Error(`ZIP entry count exceeds ${wt}`);let o=i(n);e=!!o.stop,await this.tokenizer.ignore(n.extraFieldLength);let s=await $i(this,n,{shouldBuffer:!!o.handler,maximumDescriptorLength:Math.min(z,_i(this,r))});if(o.handler&&await this.inflate(n,s,o.handler),n.dataDescriptor){let f=new Uint8Array(de);if(await this.tokenizer.readBuffer(f),x.get(f,0)!==Bt)throw new Error(`Expected data-descriptor-signature at position ${this.tokenizer.position-f.length}`)}if(ee(this.tokenizer,r,A))throw new M(`ZIP stream probing exceeds ${A} bytes`)}while(!e)};function Wi(i,e){let t=i.getReader(),r=0,n=!1,o=!1,s=async f=>{n||o||(o=!0,await t.cancel(f))};return new ReadableStream({async pull(f){if(r>=e){f.close(),await s();return}let{done:m,value:a}=await t.read();if(m||!a){n=!0,f.close();return}let c=e-r;if(a.length>c){f.enqueue(a.subarray(0,c)),r+=c,f.close(),await s();return}f.enqueue(a),r+=a.length},async cancel(f){await s(f)}})}async function ze(i,e){return new De(e).fromBuffer(i)}function vt(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 O(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}function Gi(i){return Number.isFinite(i)?Math.max(1,Math.trunc(i)):K}function Zi(i,e,t){return t===void 0?i.read(e):(t.throwIfAborted(),new Promise((r,n)=>{let o=()=>{t.removeEventListener("abort",s)},s=()=>{let f=t.reason;o(),(async()=>{try{await i.cancel(f)}catch{}})(),n(f)};t.addEventListener("abort",s,{once:!0}),(async()=>{try{let f=await i.read(e);o(),r(f)}catch(f){o(),n(f)}})()}))}function Vi(i){return Number.isFinite(i)?Math.max(0,Math.min(bi,Math.trunc(i))):0}function qi(i){return Number.isFinite(i)?Math.max(0,i):Number.MAX_SAFE_INTEGER}function C(i){let e=i.fileInfo.size;return!Number.isFinite(e)||e===Number.MAX_SAFE_INTEGER}function ee(i,e,t){return C(i)&&i.position-e>t}function Hi(i){let e=i.fileInfo.size,t=Number.isFinite(e)?Math.max(0,e-i.position):Number.MAX_SAFE_INTEGER;return Math.min(t,Ci)}function Ji(i){if(i instanceof l||i instanceof M)return!0;if(!(i instanceof Error))return!1;if(Di.has(i.message)||zi.has(i.code))return!0;for(let e of Oi)if(i.message.startsWith(e))return!0;return!1}function At(i,e=z){let t=[i.compressedSize,i.uncompressedSize];for(let r of t)if(!Number.isFinite(r)||r<0||r>e)return!1;return!0}function Xi(){return{hasContentTypesEntry:!1,hasParsedContentTypesEntry:!1,isParsingContentTypes:!1,hasUnparseableContentTypes:!1,hasWordDirectory:!1,hasPresentationDirectory:!1,hasSpreadsheetDirectory:!1,hasThreeDimensionalModelEntry:!1}}function Qi(i,e){e.startsWith("word/")&&(i.hasWordDirectory=!0),e.startsWith("ppt/")&&(i.hasPresentationDirectory=!0),e.startsWith("xl/")&&(i.hasSpreadsheetDirectory=!0),e.startsWith("3D/")&&e.endsWith(".model")&&(i.hasThreeDimensionalModelEntry=!0)}function It(i){if(!(!i.hasContentTypesEntry||i.hasUnparseableContentTypes||i.isParsingContentTypes||i.hasParsedContentTypesEntry)){if(i.hasWordDirectory)return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};if(i.hasPresentationDirectory)return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};if(i.hasSpreadsheetDirectory)return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};if(i.hasThreeDimensionalModelEntry)return{ext:"3mf",mime:"model/3mf"}}}function Yi(i){let e=i.indexOf('.main+xml"');if(e===-1){let n="application/vnd.ms-package.3dmanufacturing-3dmodel+xml";return i.includes(`ContentType="${n}"`)?n:void 0}let t=i.slice(0,e),r=t.lastIndexOf('"');return t.slice(r+1)}var De=class i{constructor(e){let t=Vi(e?.mpegOffsetTolerance);this.options={...e,mpegOffsetTolerance:t},this.detectors=[...this.options.customDetectors??[],{id:"core",detect:this.detectConfident},{id:"core.imprecise",detect:this.detectImprecise}],this.tokenizerOptions={abortSignal:this.options.signal},this.gzipProbeDepth=0}getTokenizerOptions(){return{...this.tokenizerOptions}}createTokenizerFromWebStream(e){return Mi(je(e,this.getTokenizerOptions()))}async parseTokenizer(e,t=0){this.detectionReentryCount=t;let r=e.position;for(let n of this.detectors){let o;try{o=await n.detect(e)}catch(s){if(s instanceof l||s instanceof M)return;throw s}if(o)return o;if(r!==e.position)return}}async fromTokenizer(e){try{return await this.parseTokenizer(e)}finally{await e.close()}}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(_e(t,this.getTokenizerOptions()))}async fromBlob(e){this.options.signal?.throwIfAborted();let t=$e(e,this.getTokenizerOptions());return this.fromTokenizer(t)}async fromStream(e){this.options.signal?.throwIfAborted();let t=this.createTokenizerFromWebStream(e);return this.fromTokenizer(t)}async toDetectionStream(e,t){let r=Gi(t?.sampleSize??K),n,o,s=e.getReader({mode:"byob"});try{let{value:a,done:c}=await Zi(s,new Uint8Array(r),this.options.signal);if(o=a,!c&&a)try{n=await this.fromBuffer(a.subarray(0,r))}catch(p){if(!(p instanceof l))throw p;n=void 0}o=a}finally{s.releaseLock()}let f=new TransformStream({async start(a){a.enqueue(o)},transform(a,c){c.enqueue(a)}}),m=e.pipeThrough(f);return m.fileType=n,m}async detectGzip(e){if(this.gzipProbeDepth>=Fi)return{ext:"gz",mime:"application/gzip"};let t=new Y(e),r=Wi(t.inflate(),Si),n=C(e),o,s,f,m;if(n){let a=new AbortController;o=setTimeout(()=>{a.abort(new DOMException(`Operation timed out after ${kt} ms`,"TimeoutError"))},kt),s=this.options.signal===void 0?a.signal:AbortSignal.any([this.options.signal,a.signal]),f=new i({...this.options,signal:s}),f.gzipProbeDepth=this.gzipProbeDepth+1}else this.gzipProbeDepth++;try{m=await(f??this).fromStream(r)}catch(a){if(a?.name==="AbortError"&&s?.reason?.name!=="TimeoutError")throw a}finally{clearTimeout(o),n||this.gzipProbeDepth--}return m?.ext==="tar"?{ext:"tar.gz",mime:"application/gzip"}:{ext:"gz",mime:"application/gzip"}}check(e,t){return O(this.buffer,e,t)}checkString(e,t){return this.check(lt(e,t?.encoding),t)}detectConfident=async e=>{if(this.buffer=new Uint8Array(K),e.fileInfo.size===void 0&&(e.fileInfo.size=Number.MAX_SAFE_INTEGER),this.tokenizer=e,C(e)&&(await e.peekBuffer(this.buffer,{length:3,mayBeLess:!0}),this.check([31,139,8])))return this.detectGzip(e);if(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.detectionReentryCount>=St?void 0:(this.detectionReentryCount++,await 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]))return this.detectGzip(e);if(this.check([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(this.checkString("ID3")){await R(e,6,{maximumLength:6,reason:"ID3 header prefix"});let t=await e.readToken(xt),r=C(e);if(!Number.isFinite(t)||t<0||r&&(t>Ie||e.position+t>Ie))return;if(e.position+t>e.fileInfo.size)return r?void 0:{ext:"mp3",mime:"audio/mpeg"};try{await R(e,t,{maximumLength:r?Ie:e.fileInfo.size,reason:"ID3 payload"})}catch(n){if(n instanceof l)return;throw n}return this.detectionReentryCount>=St?void 0:(this.detectionReentryCount++,this.parseTokenizer(e,this.detectionReentryCount))}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,r=Xi();try{await new G(e).unzip(n=>{Qi(r,n.filename);let o=n.filename==="[Content_Types].xml",s=It(r);if(!o&&s)return t=s,{stop:!0};switch(n.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 At(n,yt)?{async handler(f){let m=new TextDecoder("utf-8").decode(f).trim();t=vt(m)},stop:!0}:{};case"[Content_Types].xml":return r.hasContentTypesEntry=!0,At(n,yt)?(r.isParsingContentTypes=!0,{async handler(f){let m=new TextDecoder("utf-8").decode(f),a=Yi(m);a&&(t=vt(a)),r.hasParsedContentTypesEntry=!0,r.isParsingContentTypes=!1},stop:!0}):(r.hasUnparseableContentTypes=!0,{});default:return/classes\d*\.dex/.test(n.filename)?(t={ext:"apk",mime:"application/vnd.android.package-archive"},{stop:!0}):{}}})}catch(n){if(!Ji(n))throw n;r.isParsingContentTypes&&(r.isParsingContentTypes=!1,r.hasUnparseableContentTypes=!0)}return t??It(r)??{ext:"zip",mime:"application/zip"}}if(this.checkString("OggS")){await e.ignore(28);let t=new Uint8Array(8);return await e.readBuffer(t),O(t,[79,112,117,115,72,101,97,100])?{ext:"opus",mime:"audio/ogg; codecs=opus"}:O(t,[128,116,104,101,111,114,97])?{ext:"ogv",mime:"video/ogg"}:O(t,[1,118,105,100,101,111,0])?{ext:"ogm",mime:"video/ogg"}:O(t,[127,70,76,65,67])?{ext:"oga",mime:"audio/ogg"}:O(t,[83,112,101,101,120,32,32])?{ext:"spx",mime:"audio/ogg"}:O(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 m=await e.peekNumber(qe),a=128,c=0;for(;(m&a)===0&&a!==0;)++c,a>>=1;let p=new Uint8Array(c+1);return await Be(e,p,void 0,{maximumLength:p.length,reason:"EBML field"}),p}async function r(){let m=await t(),a=await t();a[0]^=128>>a.length-1;let c=Math.min(6,a.length),p=new DataView(m.buffer),u=new DataView(a.buffer,a.length-c,c);return{id:Ae(p),len:Ae(u)}}async function n(m){let a=0;for(;m>0;){if(a++,a>Ei||ee(e,s,A))return;let c=e.position,p=await r();if(p.id===17026){if(p.len>bt)return;let u=Oe(p.len,bt,"EBML DocType");return(await e.readToken(new F(u))).replaceAll(/\00.*$/g,"")}if(C(e)&&(!Number.isFinite(p.len)||p.len<0||p.len>Ct)||(await R(e,p.len,{maximumLength:C(e)?Ct:e.fileInfo.size,reason:"EBML payload"}),--m,e.position<=c))return}}let o=await r(),s=e.position;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([254,237,250,206])||this.check([254,237,250,207])||this.check([206,250,237,254])||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])){let t=be.get(this.buffer,4),r=_.get(this.buffer,6);if(t>0&&t<=30)return{ext:"macho",mime:"application/x-mach-binary"};if(r>30)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 F(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 F(13,"ascii"))==="debian-binary"?{ext:"deb",mime:"application/x-deb"}:{ext:"ar",mime:"application/x-unix-archive"};if(this.checkString("WEBVTT")&&[`
8
+ `,"\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])){let t={ext:"png",mime:"image/png"},r={ext:"apng",mime:"image/apng"};await e.ignore(8);async function n(){return{length:await e.readToken(He),type:await e.readToken(new F(4,"latin1"))}}let o=C(e),s=e.position,f=0,m=!1;do{if(f++,f>Ti||ee(e,s,vi))break;let a=e.position,c=await n();if(c.length<0)return;if(c.type==="IHDR"){if(c.length!==13)return;m=!0}switch(c.type){case"IDAT":return t;case"acTL":return r;default:if(!m&&c.type!=="CgBI")return;if(o&&c.length>Ft)return m&&Pi(c.type)?t:void 0;try{await R(e,c.length+4,{maximumLength:o?Ft+4:e.fileInfo.size,reason:"PNG chunk payload"})}catch(p){if(!o&&(p instanceof M||p instanceof l))return t;throw p}}if(e.position<=a)break}while(e.position+8<e.fileInfo.size);return t}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 F(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
9
+ `))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])){let t=!1;try{async function r(){let f=new Uint8Array(16);return await Be(e,f,void 0,{maximumLength:f.length,reason:"ASF header GUID"}),{id:f,size:Number(await e.readToken(Je))}}await R(e,30,{maximumLength:30,reason:"ASF header prelude"});let n=C(e),o=e.position,s=0;for(;e.position+24<e.fileInfo.size&&(s++,!(s>Ai||ee(e,o,A)));){let f=e.position,m=await r(),a=m.size-24;if(!Number.isFinite(a)||a<0){t=!0;break}if(O(m.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){let c=new Uint8Array(16);if(a-=await Be(e,c,void 0,{maximumLength:c.length,reason:"ASF stream type GUID"}),O(c,[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(O(c,[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}if(n&&a>Et){t=!0;break}if(await R(e,a,{maximumLength:n?Et:e.fileInfo.size,reason:"ASF header payload"}),e.position<=f){t=!0;break}}}catch(r){if(r instanceof l||r instanceof M)C(e)&&(t=!0);else throw r}return t?void 0:{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 F(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})&&dt(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
10
+ `,{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=>{this.buffer=new Uint8Array(K);let t=qi(e.fileInfo.size);if(await e.peekBuffer(this.buffer,{length:Math.min(8,t),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,t),mayBeLess:!0}),this.buffer.length>=2+this.options.mpegOffsetTolerance)for(let r=0;r<=this.options.mpegOffsetTolerance;++r){let n=this.scanMpeg(r);if(n)return n}};async readTiffTag(e){let t=await this.tokenizer.readToken(e?_:h);switch(await 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?_:h);if(!(t>Ii)&&!(C(this.tokenizer)&&2+t*12>Tt))for(let r=0;r<t;++r){let n=await this.readTiffTag(e);if(n)return n}}async readTiffHeader(e){let t={ext:"tif",mime:"image/tiff"},r=(e?_:h).get(this.buffer,2),n=(e?be:x).get(this.buffer,4);if(r===42){if(n>=6){if(this.checkString("CR",{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(n>=8){let f=(e?_:h).get(this.buffer,8),m=(e?_:h).get(this.buffer,10);if(f===28&&m===254||f===31&&m===11)return{ext:"nef",mime:"image/x-nikon-nef"}}}if(C(this.tokenizer)&&n>Bi)return t;let o=C(this.tokenizer)?Tt:this.tokenizer.fileInfo.size;try{await R(this.tokenizer,n,{maximumLength:o,reason:"TIFF IFD offset"})}catch(f){if(f instanceof l)return;throw f}let s;try{s=await this.readTiffIFD(e)}catch(f){if(f instanceof l)return;throw f}return s??t}if(r===43)return t}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"}}}},Ki=new Set(ht),er=new Set(gt);var tr={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"]},ir=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"}]]),rr=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 Dt(i,e){let t=rr.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 nr(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 or(i,e){if(i.startsWith("#!")){let a=i.split(`
11
+ `)[0];return a.includes("python")?{description:"Python script, ASCII text executable",mime:"text/x-python"}:a.includes("node")||a.includes("bun")||a.includes("deno")?{description:"JavaScript script, ASCII text executable",mime:"text/javascript"}:a.includes("bash")?{description:"Bourne-Again shell script, ASCII text executable",mime:"text/x-shellscript"}:a.includes("sh")?{description:"POSIX shell script, ASCII text executable",mime:"text/x-shellscript"}:a.includes("ruby")?{description:"Ruby script, ASCII text executable",mime:"text/x-ruby"}:a.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
12
+ `),n=i.includes("\r")&&!r,o="";r?o=", with CRLF line terminators":n&&(o=", with CR line terminators");let s=nr(e),f=s?ir.get(s):void 0;if(f)return f.mime.startsWith("text/")&&o?{description:`${f.description}${o}`,mime:f.mime}:f;let m=!1;for(let a=0;a<Math.min(i.length,8192);a++)if(i.charCodeAt(a)>127){m=!0;break}return m?{description:`UTF-8 Unicode text${o}`,mime:"text/plain; charset=utf-8"}:{description:`ASCII text${o}`,mime:"text/plain"}}var sr=[31,139,8];function ar(i){return sr.every((e,t)=>i[t]===e)}async function cr(i,e){if(e.length===0)return{description:"empty",mime:"inode/x-empty"};if(ar(e))return{description:Dt("gz","application/gzip"),mime:"application/gzip"};let t=await ze(e);if(t)return{description:Dt(t.ext,t.mime),mime:t.mime};let r=new TextDecoder("utf-8",{fatal:!1}).decode(e);return or(r,i)}var qn={name:"file",async execute(i,e){if(Pe(i))return Re(tr);let t=!1,r=!1,n=!1,o=[];for(let m of i)if(m.startsWith("--"))if(m==="--brief")t=!0;else if(m==="--mime"||m==="--mime-type")r=!0;else if(m==="--dereference")n=!0;else return ge("file",m);else if(m.startsWith("-")&&m!=="-")for(let a of m.slice(1))if(a==="b")t=!0;else if(a==="i")r=!0;else if(a==="L")n=!0;else return ge("file",`-${a}`);else o.push(m);if(o.length===0)return{stdout:"",stderr:`Usage: file [-bLi] FILE...
13
+ `,exitCode:1};let s=new Ne(Math.min(e.limits.maxOutputSize,e.limits.maxStringLength),"file"),f=0;for(let m of o){e.executionScope?.consumeLimited("file-operands",1,e.limits.maxArrayElements,"file");try{let a=e.fs.resolvePath(e.cwd,m),c=n?await e.fs.stat(a):await e.fs.lstat(a);if(c.isSymbolicLink){let b=await e.fs.readlink(a),w=r?"inode/symlink":`symbolic link to ${b}`;s.append(t?`${w}
14
+ `:`${m}: ${w}
15
+ `);continue}if(c.isDirectory){let b=r?"inode/directory":"directory";s.append(t?`${b}
16
+ `:`${m}: ${b}
17
+ `);continue}let p=await e.fs.readFileBuffer(a);e.executionScope?.consumeInput(p.byteLength,"file");let u=await cr(m,p),d=r?u.mime:u.description;s.append(t?`${d}
18
+ `:`${m}: ${d}
19
+ `)}catch(a){Ue(a),s.append(t?`cannot open
20
+ `:`${m}: cannot open (No such file or directory)
21
+ `),f=1}}return{stdout:s.build(),stderr:"",exitCode:f}}},Hn={name:"file",flags:[{flag:"-b",type:"boolean"},{flag:"-i",type:"boolean"},{flag:"-L",type:"boolean"}],needsArgs:!0};export{qn as a,Hn as b};
22
+ /*! Bundled license information:
23
+
24
+ ieee754/index.js:
25
+ (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
26
+ */
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node
2
+ import{createRequire} from"node:module";const require=createRequire(import.meta.url);
3
+ import{a as P}from"./chunk-TU6P6AC2.js";import{a as E,b as _,d as N}from"./chunk-XVKL2UZA.js";import{l as v}from"./chunk-EPWMLTS6.js";import{a as k}from"./chunk-GFI5BHZX.js";import{a as Z}from"./chunk-7DPD5PK3.js";import{a as W,b as T}from"./chunk-MUFNRCMY.js";import{b as G,c as D}from"./chunk-DN2YCFOR.js";var V=G(A=>{(function(){"use strict";var e={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function l(t){return r(s(t),arguments)}function n(t,o){return l.apply(null,[t].concat(o||[]))}function r(t,o){var c=1,d=t.length,i,h="",u,p,f,m,x,C,g,w;for(u=0;u<d;u++)if(typeof t[u]=="string")h+=t[u];else if(typeof t[u]=="object"){if(f=t[u],f.keys)for(i=o[c],p=0;p<f.keys.length;p++){if(i==null)throw new Error(l('[sprintf] Cannot access property "%s" of undefined value "%s"',f.keys[p],f.keys[p-1]));i=i[f.keys[p]]}else f.param_no?i=o[f.param_no]:i=o[c++];if(e.not_type.test(f.type)&&e.not_primitive.test(f.type)&&i instanceof Function&&(i=i()),e.numeric_arg.test(f.type)&&typeof i!="number"&&isNaN(i))throw new TypeError(l("[sprintf] expecting number but found %T",i));switch(e.number.test(f.type)&&(g=i>=0),f.type){case"b":i=parseInt(i,10).toString(2);break;case"c":i=String.fromCharCode(parseInt(i,10));break;case"d":case"i":i=parseInt(i,10);break;case"j":i=JSON.stringify(i,null,f.width?parseInt(f.width):0);break;case"e":i=f.precision?parseFloat(i).toExponential(f.precision):parseFloat(i).toExponential();break;case"f":i=f.precision?parseFloat(i).toFixed(f.precision):parseFloat(i);break;case"g":i=f.precision?String(Number(i.toPrecision(f.precision))):parseFloat(i);break;case"o":i=(parseInt(i,10)>>>0).toString(8);break;case"s":i=String(i),i=f.precision?i.substring(0,f.precision):i;break;case"t":i=String(!!i),i=f.precision?i.substring(0,f.precision):i;break;case"T":i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=f.precision?i.substring(0,f.precision):i;break;case"u":i=parseInt(i,10)>>>0;break;case"v":i=i.valueOf(),i=f.precision?i.substring(0,f.precision):i;break;case"x":i=(parseInt(i,10)>>>0).toString(16);break;case"X":i=(parseInt(i,10)>>>0).toString(16).toUpperCase();break}e.json.test(f.type)?h+=i:(e.number.test(f.type)&&(!g||f.sign)?(w=g?"+":"-",i=i.toString().replace(e.sign,"")):w="",x=f.pad_char?f.pad_char==="0"?"0":f.pad_char.charAt(1):" ",C=f.width-(w+i).length,m=f.width&&C>0?x.repeat(C):"",h+=f.align?w+i+m:x==="0"?w+m+i:m+w+i)}return h}var a=Object.create(null);function s(t){if(a[t])return a[t];for(var o=t,c,d=[],i=0;o;){if((c=e.text.exec(o))!==null)d.push(c[0]);else if((c=e.modulo.exec(o))!==null)d.push("%");else if((c=e.placeholder.exec(o))!==null){if(c[2]){i|=1;var h=[],u=c[2],p=[];if((p=e.key.exec(u))!==null)for(h.push(p[1]);(u=u.substring(p[0].length))!=="";)if((p=e.key_access.exec(u))!==null)h.push(p[1]);else if((p=e.index_access.exec(u))!==null)h.push(p[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");c[2]=h}else i|=2;if(i===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");d.push({placeholder:c[0],param_no:c[1],keys:c[2],sign:c[3],pad_char:c[4],align:c[5],width:c[6],precision:c[7],type:c[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");o=o.substring(c[0].length)}return a[t]=d}typeof A<"u"&&(A.sprintf=l,A.vsprintf=n),typeof window<"u"&&(window.sprintf=l,window.vsprintf=n,typeof define=="function"&&define.amd&&define(function(){return{sprintf:l,vsprintf:n}}))})()});var $=D(V(),1);function J(e){let l="",n=0;for(;n<e.length;){let r=e[n];if(r<128){l+=String.fromCharCode(r),n++;continue}if((r&224)===192){if(n+1<e.length&&(e[n+1]&192)===128&&r>=194){let a=(r&31)<<6|e[n+1]&63;l+=String.fromCharCode(a),n+=2;continue}l+=String.fromCharCode(r),n++;continue}if((r&240)===224){if(n+2<e.length&&(e[n+1]&192)===128&&(e[n+2]&192)===128){if(r===224&&e[n+1]<160){l+=String.fromCharCode(r),n++;continue}let a=(r&15)<<12|(e[n+1]&63)<<6|e[n+2]&63;if(a>=55296&&a<=57343){l+=String.fromCharCode(r),n++;continue}l+=String.fromCharCode(a),n+=3;continue}l+=String.fromCharCode(r),n++;continue}if((r&248)===240&&r<=244){if(n+3<e.length&&(e[n+1]&192)===128&&(e[n+2]&192)===128&&(e[n+3]&192)===128){if(r===240&&e[n+1]<144){l+=String.fromCharCode(r),n++;continue}let a=(r&7)<<18|(e[n+1]&63)<<12|(e[n+2]&63)<<6|e[n+3]&63;if(a>1114111){l+=String.fromCharCode(r),n++;continue}l+=String.fromCodePoint(a),n+=4;continue}l+=String.fromCharCode(r),n++;continue}l+=String.fromCharCode(r),n++}return l}var Q={name:"printf",summary:"format and print data",usage:"printf [-v var] FORMAT [ARGUMENT...]",options:[" -v var assign the output to shell variable VAR rather than display it"," --help display this help and exit"],notes:["FORMAT controls the output like in C printf.","Escape sequences: \\n (newline), \\t (tab), \\\\ (backslash)","Format specifiers: %s (string), %d (integer), %f (float), %x (hex), %o (octal), %% (literal %)","Width and precision: %10s (width 10), %.2f (2 decimal places), %010d (zero-padded)","Flags: %- (left-justify), %+ (show sign), %0 (zero-pad)"]},pe={name:"printf",async execute(e,l){if(T(e))return W(Q);if(e.length===0)return{stdout:"",stderr:`printf: usage: printf format [arguments]
4
+ `,exitCode:2,internalStdinConsumed:0};let n=null,r=0;for(;r<e.length;){let t=e[r];if(t==="--"){r++;break}if(t==="-v"){if(r+1>=e.length)return{stdout:"",stderr:`printf: -v: option requires an argument
5
+ `,exitCode:1,internalStdinConsumed:0};if(n=e[r+1],!/^[a-zA-Z_][a-zA-Z0-9_]*(?:\[[^\]\n]+\])?$/.test(n)||/[;\r\\]/.test(n)||n.includes(".."))return{stdout:"",stderr:`printf: \`${n}': not a valid identifier
6
+ `,exitCode:2,internalStdinConsumed:0};r+=2}else{if(t.startsWith("-")&&t!=="-")break;break}}if(r>=e.length)return{stdout:"",stderr:`printf: usage: printf format [arguments]
7
+ `,exitCode:1,internalStdinConsumed:0};let a=e[r],s=e.slice(r+1);try{let t=Math.min(l.limits.maxStringLength,l.limits.maxOutputSize),o=N(a,t),c="",d=0,i=0,h=!1,u="",p=l.env.get("TZ");do{let{result:f,argsConsumed:m,error:x,errMsg:C,stopped:g}=K(o,s,i,p,t-d),w=k(f);if(w>t-d)throw new v(`printf: output size limit exceeded (${t} bytes)`,"string_length");if(c+=f,d+=w,i+=m,x&&(h=!0,C&&(u=C)),g)break}while(i<s.length&&i>0);if(i===0&&s.length>0,n){let f=n.match(/^([a-zA-Z_][a-zA-Z0-9_]*)\[(['"]?)(.+?)\2\]$/);if(f){let m=f[1],x=f[3];if(x=x.replace(/\$([a-zA-Z_][a-zA-Z0-9_]*)/g,(C,g)=>l.env.get(g)??""),l.assignShellVariable)await l.assignShellVariable(m,c,x);else throw new Error("printf -v array assignment requires an interpreter assignment gateway")}else if(l.assignShellVariable)await l.assignShellVariable(n,c);else{if(!/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(n))throw new Error(`${n}: not a valid identifier`);l.env.set(n,c)}return{stdout:"",stderr:u,exitCode:h?1:0,internalStdinConsumed:0}}return{stdout:c,stderr:u,exitCode:h?1:0,internalStdinConsumed:0}}catch(t){if(t instanceof v||typeof t=="object"&&t!==null&&"name"in t&&t.name==="ExitError")throw t;return{stdout:"",stderr:`printf: ${Z(t)}
8
+ `,exitCode:1,internalStdinConsumed:0}}}};function K(e,l,n,r,a=10*1024*1024){let s="",t=0,o=0,c=!1,d="",i=0,h=u=>{let p=k(u);if(p>a-i)throw new v(`printf: output size limit exceeded (${a} bytes)`,"string_length");s+=u,i+=p};for(;t<e.length;)if(e[t]==="%"&&t+1<e.length){let u=t;if(t++,e[t]==="%"){h("%"),t++;continue}let p=e.slice(u).match(/^%(-?\d*)(?:\.(\d+))?\(([^)]*)\)T/);if(p){let b=p[1]?parseInt(p[1],10):0,M=p[2]?parseInt(p[2],10):-1;E(b,a,"width"),M!==-1&&E(M,a,"precision");let R=p[3],H=p[0],I=l[n+o]||"";o++;let y;I===""||I==="-1"||I==="-2"?y=Math.floor(Date.now()/1e3):y=parseInt(I,10)||0;let z=P(R,y,r,{maxOperations:a-i,maxOutputBytes:a-i});z=_(z,b,M,a-i),h(z),t=u+H.length;continue}for(;t<e.length&&"+-0 #'".includes(e[t]);)t++;let f=!1;if(e[t]==="*")f=!0,t++;else for(;t<e.length&&/\d/.test(e[t]);)t++;let m=!1;if(e[t]===".")if(t++,e[t]==="*")m=!0,t++;else for(;t<e.length&&/\d/.test(e[t]);)t++;t<e.length&&"hlL".includes(e[t])&&t++;let x=e[t]||"";t++;let g=e.slice(u,t);if(f){let b=parseInt(l[n+o]||"0",10);E(b,a-i,"width"),o++,g=g.replace("*",String(b))}if(m){let b=parseInt(l[n+o]||"0",10);b>=0?E(b,a-i,"precision"):Number.isSafeInteger(b)||E(b,a-i,"precision"),o++,g=g.replace(".*",`.${b}`)}O(g,a-i);let w=l[n+o]||"";o++;let{value:U,parseError:q,parseErrMsg:j,stopped:L}=Y(g,x,w,a-i);if(h(U),q&&(c=!0,j&&(d=j)),L)return{result:s,argsConsumed:o,error:c,errMsg:d,stopped:!0}}else h(e[t]),t++;return{result:s,argsConsumed:o,error:c,errMsg:d,stopped:!1}}function Y(e,l,n,r){let a=!1,s="";switch(l){case"d":case"i":{let t=F(n);return a=S,a&&(s=`printf: ${n}: invalid number
9
+ `),{value:X(e,t),parseError:a,parseErrMsg:s}}case"o":{let t=F(n);return a=S,a&&(s=`printf: ${n}: invalid number
10
+ `),{value:B(e,t),parseError:a,parseErrMsg:s}}case"u":{let t=F(n);a=S,a&&(s=`printf: ${n}: invalid number
11
+ `);let o=t<0?t>>>0:t;return{value:X(e.replace("u","d"),o),parseError:a,parseErrMsg:s}}case"x":case"X":{let t=F(n);return a=S,a&&(s=`printf: ${n}: invalid number
12
+ `),{value:ee(e,t),parseError:a,parseErrMsg:s}}case"e":case"E":case"f":case"F":case"g":case"G":{let t=parseFloat(n)||0;return{value:ie(e,l,t),parseError:!1,parseErrMsg:""}}case"c":{if(n==="")return{value:"",parseError:!1,parseErrMsg:""};let c=new TextEncoder().encode(n)[0];return{value:String.fromCharCode(c),parseError:!1,parseErrMsg:""}}case"s":return{value:ne(e,n,r),parseError:!1,parseErrMsg:""};case"q":return{value:re(e,n,r),parseError:!1,parseErrMsg:""};case"b":{let t=se(n,r);return{value:t.value,parseError:!1,parseErrMsg:"",stopped:t.stopped}}default:try{return{value:(0,$.sprintf)(e,n),parseError:!1,parseErrMsg:""}}catch{return{value:"",parseError:!0,parseErrMsg:`printf: [sprintf] unexpected placeholder
13
+ `}}}}function O(e,l){let n=e.match(/^%[-+0 #' ]*(\d*)(?:\.(\d*))?/);if(!n)return;let r=n[1]?Number(n[1]):0,a=n[2]!==void 0?Number(n[2]):-1;E(r,l,"width"),a!==-1&&E(a,l,"precision")}var S=!1;function F(e){S=!1;let l=e.trimStart(),n=l!==l.trimEnd();if(e=l.trimEnd(),e.startsWith("'")&&e.length>=2||e.startsWith('"')&&e.length>=2)return e.charCodeAt(1);if(e.startsWith("\\'")&&e.length>=3||e.startsWith('\\"')&&e.length>=3)return e.charCodeAt(2);if(e.startsWith("+")&&(e=e.slice(1)),e.startsWith("0x")||e.startsWith("0X")){let r=parseInt(e,16);return Number.isNaN(r)?(S=!0,0):(n&&(S=!0),r)}if(e.startsWith("0")&&e.length>1&&/^-?0[0-7]+$/.test(e))return n&&(S=!0),parseInt(e,8)||0;if(/^\d+#/.test(e)){S=!0;let r=e.match(/^(\d+)#/);return r?parseInt(r[1],10):0}if(e!==""&&!/^-?\d+$/.test(e)){S=!0;let r=parseInt(e,10);return Number.isNaN(r)?0:r}return n&&(S=!0),parseInt(e,10)||0}function X(e,l){let n=e.match(/^%([- +#0']*)(\d*)(\.(\d*))?[diu]$/);if(!n)return(0,$.sprintf)(e.replace(/\.\d*/,""),l);let r=n[1]||"",a=n[2]?parseInt(n[2],10):0,s=n[3]!==void 0?n[4]?parseInt(n[4],10):0:-1,t=l<0,o=Math.abs(l),c=String(o);s>=0&&(c=c.padStart(s,"0"));let d="";t?d="-":r.includes("+")?d="+":r.includes(" ")&&(d=" ");let i=d+c;return a>i.length&&(r.includes("-")?i=i.padEnd(a," "):r.includes("0")&&s<0?i=d+c.padStart(a-d.length,"0"):i=i.padStart(a," ")),i}function B(e,l){let n=e.match(/^%([- +#0']*)(\d*)(\.(\d*))?o$/);if(!n)return(0,$.sprintf)(e,l);let r=n[1]||"",a=n[2]?parseInt(n[2],10):0,s=n[3]!==void 0?n[4]?parseInt(n[4],10):0:-1,t=Math.abs(l).toString(8);s>=0&&(t=t.padStart(s,"0")),r.includes("#")&&!t.startsWith("0")&&(t=`0${t}`);let o=t;return a>o.length&&(r.includes("-")?o=o.padEnd(a," "):r.includes("0")&&s<0?o=o.padStart(a,"0"):o=o.padStart(a," ")),o}function ee(e,l){let n=e.includes("X"),r=e.match(/^%([- +#0']*)(\d*)(\.(\d*))?[xX]$/);if(!r)return(0,$.sprintf)(e,l);let a=r[1]||"",s=r[2]?parseInt(r[2],10):0,t=r[3]!==void 0?r[4]?parseInt(r[4],10):0:-1,o=Math.abs(l).toString(16);n&&(o=o.toUpperCase()),t>=0&&(o=o.padStart(t,"0"));let c="";a.includes("#")&&l!==0&&(c=n?"0X":"0x");let d=c+o;return s>d.length&&(a.includes("-")?d=d.padEnd(s," "):a.includes("0")&&t<0?d=c+o.padStart(s-c.length,"0"):d=d.padStart(s," ")),d}function te(e,l){if(e===""){if(l<2)throw new v(`printf: output size limit exceeded (${l} bytes)`,"string_length");return"''"}if(/^[a-zA-Z0-9_./-]+$/.test(e)){if(k(e)>l)throw new v(`printf: output size limit exceeded (${l} bytes)`,"string_length");return e}let n=/[\x00-\x1f\x7f-\xff]/.test(e),r=n?3:0;for(let s of e){let t=s.charCodeAt(0);if(n?s==="'"||s==="\\"||s===`
14
+ `||s===" "||s==="\r"||s==="\x07"||s==="\b"||s==="\f"||s==="\v"||s==="\x1B"||s==='"'?r+=2:t<32||t>=127&&t<=255?r+=4:r+=k(s):r+=k(s)+(" |&;<>()$`\\\"'*?[#~=%!{}".includes(s)?1:0),r>l)throw new v(`printf: output size limit exceeded (${l} bytes)`,"string_length")}if(n){let s="$'";for(let t of e){let o=t.charCodeAt(0);t==="'"?s+="\\'":t==="\\"?s+="\\\\":t===`
15
+ `?s+="\\n":t===" "?s+="\\t":t==="\r"?s+="\\r":t==="\x07"?s+="\\a":t==="\b"?s+="\\b":t==="\f"?s+="\\f":t==="\v"?s+="\\v":t==="\x1B"?s+="\\E":o<32||o>=127&&o<=255?s+=`\\${o.toString(8).padStart(3,"0")}`:t==='"'?s+='\\"':s+=t}return s+="'",s}let a="";for(let s of e)" |&;<>()$`\\\"'*?[#~=%!{}".includes(s)?a+=`\\${s}`:a+=s;return a}function ne(e,l,n){let r=e.match(/^%(-?)(\d*)(\.(\d*))?s$/);if(!r)return(0,$.sprintf)(e.replace(/0+(?=\d)/,""),l);let a=r[1]==="-",s=r[2]?parseInt(r[2],10):0,t=r[3]!==void 0?r[4]?parseInt(r[4],10):0:-1,o=a?-s:s;return _(l,o,t,n)}function re(e,l,n){let r=te(l,n),a=e.match(/^%(-?)(\d*)q$/);if(!a)return r;let s=a[1]==="-",t=a[2]?parseInt(a[2],10):0;return _(r,s?-t:t,-1,n)}function ie(e,l,n){let r=e.match(/^%([- +#0']*)(\d*)(\.(\d*))?[eEfFgG]$/);if(!r)return(0,$.sprintf)(e,n);let a=r[1]||"",s=r[2]?parseInt(r[2],10):0,t=r[3]!==void 0?r[4]?parseInt(r[4],10):0:6,o,c=l.toLowerCase();if(c==="e"?(o=n.toExponential(t),o=o.replace(/e([+-])(\d)$/,"e$10$2"),l==="E"&&(o=o.toUpperCase())):c==="f"?(o=n.toFixed(t),a.includes("#")&&t===0&&!o.includes(".")&&(o+=".")):c==="g"?(o=n.toPrecision(t||1),a.includes("#")||(o=o.replace(/\.?0+$/,""),o=o.replace(/\.?0+e/,"e")),o=o.replace(/e([+-])(\d)$/,"e$10$2"),l==="G"&&(o=o.toUpperCase())):o=n.toString(),n>=0&&(a.includes("+")?o=`+${o}`:a.includes(" ")&&(o=` ${o}`)),s>o.length)if(a.includes("-"))o=o.padEnd(s," ");else if(a.includes("0")){let d=o.match(/^[+ -]/)?.[0]||"",i=d?o.slice(1):o;o=d+i.padStart(s-d.length,"0")}else o=o.padStart(s," ");return o}function se(e,l){if(k(e)>l)throw new v(`printf: output size limit exceeded (${l} bytes)`,"string_length");let n="",r=0;for(;r<e.length;)if(e[r]==="\\"&&r+1<e.length)switch(e[r+1]){case"n":n+=`
16
+ `,r+=2;break;case"t":n+=" ",r+=2;break;case"r":n+="\r",r+=2;break;case"\\":n+="\\",r+=2;break;case"a":n+="\x07",r+=2;break;case"b":n+="\b",r+=2;break;case"f":n+="\f",r+=2;break;case"v":n+="\v",r+=2;break;case"c":return{value:n,stopped:!0};case"x":{let s=[],t=r;for(;t+1<e.length&&e[t]==="\\"&&e[t+1]==="x";){let o="",c=t+2;for(;c<e.length&&c<t+4&&/[0-9a-fA-F]/.test(e[c]);)o+=e[c],c++;if(o)s.push(parseInt(o,16)),t=c;else break}s.length>0?(n+=J(s),r=t):(n+="\\x",r+=2);break}case"u":{let s="",t=r+2;for(;t<e.length&&t<r+6&&/[0-9a-fA-F]/.test(e[t]);)s+=e[t],t++;s?(n+=String.fromCodePoint(parseInt(s,16)),r=t):(n+="\\u",r+=2);break}case"0":{let s="",t=r+2;for(;t<e.length&&t<r+5&&/[0-7]/.test(e[t]);)s+=e[t],t++;s?n+=String.fromCharCode(parseInt(s,8)):n+="\0",r=t;break}case"1":case"2":case"3":case"4":case"5":case"6":case"7":{let s="",t=r+1;for(;t<e.length&&t<r+4&&/[0-7]/.test(e[t]);)s+=e[t],t++;n+=String.fromCharCode(parseInt(s,8)),r=t;break}default:n+=e[r],r++}else n+=e[r],r++;return{value:n,stopped:!1}}var ue={name:"printf",flags:[{flag:"-v",type:"value",valueHint:"string"}],stdinType:"none",needsArgs:!0};export{pe as a,ue as b};
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+ import{createRequire} from"node:module";const require=createRequire(import.meta.url);
3
+ import{a as E,b as k,c as _,d as Ie,e as S,g as C,h as ce}from"./chunk-74MYVPDY.js";import{a as ue,c as je}from"./chunk-MROECM42.js";import{a as Me}from"./chunk-ABM5WFEO.js";import{a as P}from"./chunk-26O2G5LX.js";import{e as G}from"./chunk-QIDBJNMB.js";import{l as g}from"./chunk-EPWMLTS6.js";import{a as j}from"./chunk-GFI5BHZX.js";function I(e){return e!==!1&&e!==null}function J(e,n){return JSON.stringify(e)===JSON.stringify(n)}function Y(e,n){return typeof e=="number"&&typeof n=="number"?e-n:typeof e=="string"&&typeof n=="string"?e.localeCompare(n):0}function xe(e,n,t={}){let r=t.maxDepth??2e3,s=C(e),o=[{target:s,source:n,depth:0}];for(;o.length>0;){let p=o.pop();if(!p)break;if(p.depth>r)throw new g(`query depth limit exceeded (${r})`,"recursion");for(let u of Object.keys(p.source)){if(t.visit?.(),!E(u))continue;let f=_(p.target,u)?S(p.target[u]):null,i=S(p.source[u]);if(f&&i){let c=C(f);k(p.target,u,c),o.push({target:c,source:i,depth:p.depth+1})}else k(p.target,u,p.source[u])}}return s}function B(e,n=3e3){if(e===null||typeof e!="object")return 0;if(n<=1)return n;let t=(i,c)=>({value:i,keys:Array.isArray(i)?void 0:Object.keys(i),nextChild:0,pathDepth:c,maxChildDepth:0}),r=i=>i.keys!==void 0?i.keys.length:i.value.length,s=i=>{if(i.keys){let c=i.keys[i.nextChild++];return i.value[c]}return i.value[i.nextChild++]},o=new WeakMap,p=new WeakMap,u=e,f=[t(u,1)];for(o.set(u,"visiting");f.length>0;){let i=f[f.length-1];if(i.nextChild<r(i)){let a=s(i);if(a===null||typeof a!="object")continue;let l=o.get(a);if(l==="visiting")return n;if(l==="done"){let b=p.get(a)??0;if(i.pathDepth+b>=n)return n;i.maxChildDepth=Math.max(i.maxChildDepth,b);continue}let y=i.pathDepth+1;if(y>=n)return n;let m=a;o.set(a,"visiting"),f.push(t(m,y));continue}let c=i.maxChildDepth+1;p.set(i.value,c),o.set(i.value,"done"),f.pop();let h=f.at(-1);if(h)h.maxChildDepth=Math.max(h.maxChildDepth,c);else return c}return 0}function Z(e,n){let t=u=>u===null?0:typeof u=="boolean"?1:typeof u=="number"?2:typeof u=="string"?3:Array.isArray(u)?4:typeof u=="object"?5:6,r=t(e),s=t(n);if(r!==s)return r-s;if(typeof e=="number"&&typeof n=="number")return e-n;if(typeof e=="string"&&typeof n=="string")return e.localeCompare(n);if(typeof e=="boolean"&&typeof n=="boolean")return(e?1:0)-(n?1:0);if(Array.isArray(e)&&Array.isArray(n)){for(let u=0;u<Math.min(e.length,n.length);u++){let f=Z(e[u],n[u]);if(f!==0)return f}return e.length-n.length}let o=S(e),p=S(n);if(o&&p){let u=Object.keys(o).sort(),f=Object.keys(p).sort();for(let i=0;i<Math.min(u.length,f.length);i++){let c=u[i].localeCompare(f[i]);if(c!==0)return c}if(u.length!==f.length)return u.length-f.length;for(let i of u){let c=Z(o[i],p[i]);if(c!==0)return c}}return 0}function v(e,n){if(J(e,n))return!0;if(typeof e=="string"&&typeof n=="string")return e.includes(n);if(Array.isArray(e)&&Array.isArray(n))return n.every(s=>e.some(o=>v(o,s)));let t=S(e),r=S(n);return t&&r?Object.keys(r).every(s=>_(t,s)&&v(t[s],r[s])):!1}function z(e,n,t=1){let r=e.limits.maxArrayElements;if(t<0||n>r-t)throw new g(`query result element limit exceeded (${r})`,"array_elements")}function he(e,n,t,r,s,o,p,u,f,i){switch(n){case"sort":return Array.isArray(e)?[[...e].sort(p)]:[null];case"sort_by":return!Array.isArray(e)||t.length===0?[null]:[[...e].sort((h,a)=>{let l=s(h,t[0],r)[0],y=s(a,t[0],r)[0];return p(l,y)})];case"bsearch":{if(!Array.isArray(e)){let h=e===null?"null":typeof e=="object"?"object":typeof e;throw new Error(`${h} (${JSON.stringify(e)}) cannot be searched from`)}return t.length===0?[null]:s(e,t[0],r).map(h=>{let a=0,l=e.length;for(;a<l;){let y=a+l>>>1;p(e[y],h)<0?a=y+1:l=y}return a<e.length&&p(e[a],h)===0?a:-a-1})}case"unique_by":{if(!Array.isArray(e)||t.length===0)return[null];let c=new Map;for(let a of e){let l=s(a,t[0],r)[0],y=JSON.stringify(l);c.has(y)||c.set(y,{item:a,key:l})}let h=[...c.values()];return h.sort((a,l)=>p(a.key,l.key)),[h.map(a=>a.item)]}case"group_by":{if(!Array.isArray(e)||t.length===0)return[null];let c=new Map;for(let h of e){let a=JSON.stringify(s(h,t[0],r)[0]);c.has(a)||c.set(a,[]),c.get(a)?.push(h)}return[[...c.values()]]}case"max":return Array.isArray(e)&&e.length>0?[e.reduce((c,h)=>p(c,h)>0?c:h)]:[null];case"max_by":return!Array.isArray(e)||e.length===0||t.length===0?[null]:[e.reduce((c,h)=>{let a=s(c,t[0],r)[0],l=s(h,t[0],r)[0];return p(a,l)>0?c:h})];case"min":return Array.isArray(e)&&e.length>0?[e.reduce((c,h)=>p(c,h)<0?c:h)]:[null];case"min_by":return!Array.isArray(e)||e.length===0||t.length===0?[null]:[e.reduce((c,h)=>{let a=s(c,t[0],r)[0],l=s(h,t[0],r)[0];return p(a,l)<0?c:h})];case"add":{let c=h=>{let a=h.filter(l=>l!==null);return a.length===0?null:a.every(l=>typeof l=="number")?a.reduce((l,y)=>l+y,0):a.every(l=>typeof l=="string")?a.join(""):a.every(l=>Array.isArray(l))?a.flat():a.every(l=>l&&typeof l=="object"&&!Array.isArray(l))?je(...a):null};if(t.length>=1){let h=s(e,t[0],r);return[c(h)]}return Array.isArray(e)?[c(e)]:[null]}case"any":{if(t.length>=2){try{let c=o(e,t[0],r);for(let h of c)if(s(h,t[1],r).some(u))return[!0]}catch(c){if(c instanceof i)throw c}return[!1]}return t.length===1?Array.isArray(e)?[e.some(c=>u(s(c,t[0],r)[0]))]:[!1]:Array.isArray(e)?[e.some(u)]:[!1]}case"all":{if(t.length>=2){try{let c=o(e,t[0],r);for(let h of c)if(!s(h,t[1],r).some(u))return[!1]}catch(c){if(c instanceof i)throw c}return[!0]}return t.length===1?Array.isArray(e)?[e.every(c=>u(s(c,t[0],r)[0]))]:[!0]:Array.isArray(e)?[e.every(u)]:[!0]}case"select":return t.length===0?[e]:s(e,t[0],r).some(u)?[e]:[];case"map":{if(t.length===0||!Array.isArray(e))return[null];z(r,0,e.length);let c=[];for(let h of e){let a=s(h,t[0],r);z(r,c.length,a.length);for(let l of a)c.push(l)}return[c]}case"map_values":{if(t.length===0)return[null];if(Array.isArray(e)){z(r,0,e.length);let c=[];for(let h of e){let a=s(h,t[0],r);z(r,c.length,a.length);for(let l of a)c.push(l)}return[c]}if(e&&typeof e=="object"){let c=Object.create(null),h=Object.keys(e);z(r,0,h.length);for(let a of h){if(!E(a))continue;let l=e[a],y=s(l,t[0],r);y.length>0&&k(c,a,y[0])}return[c]}return[null]}case"has":{if(t.length===0)return[!1];let h=s(e,t[0],r)[0];return Array.isArray(e)&&typeof h=="number"?[h>=0&&h<e.length]:e&&typeof e=="object"&&typeof h=="string"?[Object.hasOwn(e,h)]:[!1]}case"in":{if(t.length===0)return[!1];let h=s(e,t[0],r)[0];return Array.isArray(h)&&typeof e=="number"?[e>=0&&e<h.length]:h&&typeof h=="object"&&typeof e=="string"?[Object.hasOwn(h,e)]:[!1]}case"contains":{if(t.length===0)return[!1];let c=s(e,t[0],r);return[f(e,c[0])]}case"inside":{if(t.length===0)return[!1];let c=s(e,t[0],r);return[f(c[0],e)]}default:return null}}function pe(e,n,t,r,s,o,p,u){switch(n){case"first":if(t.length>0)try{let f=o(e,t[0],r);return f.length>0?[f[0]]:[]}catch(f){if(f instanceof u)throw f;return[]}return Array.isArray(e)&&e.length>0?[e[0]]:[null];case"last":if(t.length>0){let f=s(e,t[0],r);return f.length>0?[f[f.length-1]]:[]}return Array.isArray(e)&&e.length>0?[e[e.length-1]]:[null];case"nth":{if(t.length<1)return[null];let f=s(e,t[0],r);if(t.length>1){for(let c of f)if(c<0)throw new Error("nth doesn't support negative indices");let i;try{i=o(e,t[1],r)}catch(c){if(c instanceof u)throw c;i=[]}return f.flatMap(c=>{let h=c;return h<i.length?[i[h]]:[]})}return Array.isArray(e)?f.flatMap(i=>{let c=i;if(c<0)throw new Error("nth doesn't support negative indices");return c<e.length?[e[c]]:[null]}):[null]}case"range":{if(t.length===0)return[];let f=r.limits.maxArrayElements,i=(y,m)=>{if(y.length>=f)throw new u(`query result element limit exceeded (${f})`,"array_elements");y.push(m)},c=s(e,t[0],r);if(t.length===1){let y=[];for(let m of c){let b=m;for(let A=0;A<b;A++)i(y,A)}return y}let h=s(e,t[1],r);if(t.length===2){let y=[];for(let m of c)for(let b of h){let A=m,w=b;for(let N=A;N<w;N++)i(y,N)}return y}let a=s(e,t[2],r),l=[];for(let y of c)for(let m of h)for(let b of a){let A=y,w=m,N=b;if(N!==0)if(N>0)for(let O=A;O<w;O+=N)i(l,O);else for(let O=A;O>w;O+=N)i(l,O)}return l}case"limit":return t.length<2?[]:s(e,t[0],r).flatMap(i=>{let c=i;if(c<0)throw new Error("limit doesn't support negative count");if(c===0)return[];let h;try{h=o(e,t[1],r)}catch(a){if(a instanceof u)throw a;h=[]}return h.slice(0,c)});case"isempty":{if(t.length<1)return[!0];try{return[o(e,t[0],r).length===0]}catch(f){if(f instanceof u)throw f;return[!0]}}case"isvalid":{if(t.length<1)return[!0];try{return[s(e,t[0],r).length>0]}catch(f){if(f instanceof u)throw f;return[!1]}}case"skip":return t.length<2?[]:s(e,t[0],r).flatMap(i=>{let c=i;if(c<0)throw new Error("skip doesn't support negative count");return s(e,t[1],r).slice(c)});case"until":{if(t.length<2)return[e];let f=e,i=r.limits.maxIterations;for(let c=0;c<i;c++){if(s(f,t[0],r).some(p))return[f];let a=s(f,t[1],r);if(a.length===0)return[f];f=a[0]}throw new u(`jq until: too many iterations (${i}), increase executionLimits.maxJqIterations`,"iterations")}case"while":{if(t.length<2)return[e];let f=[],i=e,c=r.limits.maxIterations;for(let h=0;h<c&&s(i,t[0],r).some(p);h++){f.push(i);let l=s(i,t[1],r);if(l.length===0)break;i=l[0]}if(f.length>=c)throw new u(`jq while: too many iterations (${c}), increase executionLimits.maxJqIterations`,"iterations");return f}case"repeat":{if(t.length===0)return[e];let f=[],i=e,c=r.limits.maxIterations;for(let h=0;h<c;h++){f.push(i);let a=s(i,t[0],r);if(a.length===0)break;i=a[0]}if(f.length>=c)throw new u(`jq repeat: too many iterations (${c}), increase executionLimits.maxJqIterations`,"iterations");return f}default:return null}}var Pe="%Y-%m-%dT%H:%M:%SZ";function ae(e,n){if(!Number.isFinite(e)||Math.abs(e)>864e10)throw new Error(`${n} timestamp is outside the supported range`);return new Date(e*1e3)}function $e(e){let n=e.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})Z$/);if(!n)return null;let[,t,r,s,o,p,u]=n.map(Number),f=Date.UTC(t,r-1,s,o,p,u);if(!Number.isFinite(f))return null;let i=new Date(f);return i.getUTCFullYear()!==t||i.getUTCMonth()!==r-1||i.getUTCDate()!==s||i.getUTCHours()!==o||i.getUTCMinutes()!==p||i.getUTCSeconds()!==u?null:i}function le(e,n,t,r,s){switch(n){case"now":return[Date.now()/1e3];case"gmtime":{if(typeof e!="number")return[null];let o=ae(e,"gmtime"),p=o.getUTCFullYear(),u=o.getUTCMonth(),f=o.getUTCDate(),i=o.getUTCHours(),c=o.getUTCMinutes(),h=o.getUTCSeconds(),a=o.getUTCDay(),l=Date.UTC(p,0,1),y=Math.floor((o.getTime()-l)/(1440*60*1e3));return[[p,u,f,i,c,h,a,y]]}case"mktime":{if(!Array.isArray(e))throw new Error("mktime requires parsed datetime inputs");let[o,p,u,f=0,i=0,c=0]=e;if(typeof o!="number"||typeof p!="number")throw new Error("mktime requires parsed datetime inputs");let h=Date.UTC(o,p,u??1,f??0,i??0,c??0);return[Math.floor(h/1e3)]}case"strftime":{if(t.length===0)return[null];let p=s(e,t[0],r)[0];if(typeof p!="string")throw new Error("strftime/1 requires a string format");let u;if(typeof e=="number")u=ae(e,"strftime");else if(Array.isArray(e)){let[a,l,y,m=0,b=0,A=0]=e;if(typeof a!="number"||typeof l!="number")throw new Error("strftime/1 requires parsed datetime inputs");u=new Date(Date.UTC(a,l,y??1,m??0,b??0,A??0))}else throw new Error("strftime/1 requires parsed datetime inputs");let f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],i=["January","February","March","April","May","June","July","August","September","October","November","December"],c=(a,l=2)=>String(a).padStart(l,"0");return[p.replace(/%Y/g,String(u.getUTCFullYear())).replace(/%m/g,c(u.getUTCMonth()+1)).replace(/%d/g,c(u.getUTCDate())).replace(/%H/g,c(u.getUTCHours())).replace(/%M/g,c(u.getUTCMinutes())).replace(/%S/g,c(u.getUTCSeconds())).replace(/%A/g,f[u.getUTCDay()]).replace(/%B/g,i[u.getUTCMonth()]).replace(/%Z/g,"UTC").replace(/%%/g,"%")]}case"strptime":{if(t.length===0)return[null];if(typeof e!="string")throw new Error("strptime/1 requires a string input");let p=s(e,t[0],r)[0];if(typeof p!="string")throw new Error("strptime/1 requires a string format");if(p!==Pe)throw new Error(`strptime format is not supported: ${p}`);let u=$e(e);if(u){let f=u.getUTCFullYear(),i=u.getUTCMonth(),c=u.getUTCDate(),h=u.getUTCHours(),a=u.getUTCMinutes(),l=u.getUTCSeconds(),y=u.getUTCDay(),m=Date.UTC(f,0,1),b=Math.floor((u.getTime()-m)/(1440*60*1e3));return[[f,i,c,h,a,l,y,b]]}throw new Error(`Cannot parse date: ${e}`)}case"fromdate":{if(typeof e!="string")throw new Error("fromdate requires a string input");let o=$e(e);if(!o)throw new Error(`date "${e}" does not match format "${Pe}"`);return[Math.floor(o.getTime()/1e3)]}case"todate":{if(typeof e!="number")throw new Error("todate requires a number input");return[ae(e,"todate").toISOString().replace(/\.\d{3}Z$/,"Z")]}default:return null}}var Xe=2e3;function Ge(e){let n=[];for(let r=0;r<e.length;r+=32768){let s=Math.min(r+32768,e.length),o="";for(let p=r;p<s;p++)o+=String.fromCharCode(e[p]);n.push(o)}return n.join("")}function Ze(e){let n=new Uint8Array(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return n}function ye(e,n,t){switch(n){case"@base64":if(typeof e=="string"){if(typeof Buffer<"u")return[Buffer.from(e,"utf-8").toString("base64")];let r=new TextEncoder().encode(e);return[btoa(Ge(r))]}return[null];case"@base64d":if(typeof e=="string"){if(typeof Buffer<"u")return[Buffer.from(e,"base64").toString("utf-8")];let r=Ze(atob(e));return[new TextDecoder("utf-8",{fatal:!1}).decode(r)]}return[null];case"@uri":return typeof e=="string"?[encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")]:[null];case"@urid":return typeof e=="string"?[decodeURIComponent(e)]:[null];case"@csv":return Array.isArray(e)?[e.map(s=>{if(s===null)return"";if(typeof s=="boolean")return s?"true":"false";if(typeof s=="number")return String(s);let o=String(s);return o.includes(",")||o.includes('"')||o.includes(`
4
+ `)||o.includes("\r")?`"${o.replace(/"/g,'""')}"`:o}).join(",")]:[null];case"@tsv":return Array.isArray(e)?[e.map(r=>String(r??"").replace(/\t/g,"\\t").replace(/\n/g,"\\n")).join(" ")]:[null];case"@json":{let r=t??Xe;return B(e,r+1)>r?[null]:[JSON.stringify(e)]}case"@html":return typeof e=="string"?[e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&apos;").replace(/"/g,"&quot;")]:[null];case"@sh":return typeof e=="string"?[`'${e.replace(/'/g,"'\\''")}'`]:[null];case"@text":return typeof e=="string"?[e]:e==null?[""]:[String(e)];default:return null}}function me(e,n,t,r,s,o){switch(n){case"index":return t.length===0?[null]:s(e,t[0],r).map(u=>{if(typeof e=="string"&&typeof u=="string"){if(u===""&&e==="")return null;let f=e.indexOf(u);return f>=0?f:null}if(Array.isArray(e)){if(Array.isArray(u)){for(let i=0;i<=e.length-u.length;i++){let c=!0;for(let h=0;h<u.length;h++)if(!o(e[i+h],u[h])){c=!1;break}if(c)return i}return null}let f=e.findIndex(i=>o(i,u));return f>=0?f:null}return null});case"rindex":return t.length===0?[null]:s(e,t[0],r).map(u=>{if(typeof e=="string"&&typeof u=="string"){let f=e.lastIndexOf(u);return f>=0?f:null}if(Array.isArray(e)){if(Array.isArray(u)){for(let f=e.length-u.length;f>=0;f--){let i=!0;for(let c=0;c<u.length;c++)if(!o(e[f+c],u[c])){i=!1;break}if(i)return f}return null}for(let f=e.length-1;f>=0;f--)if(o(e[f],u))return f;return null}return null});case"indices":return t.length===0?[[]]:s(e,t[0],r).map(u=>{let f=[];if(typeof e=="string"&&typeof u=="string"){let i=e.indexOf(u);for(;i!==-1;)f.push(i),i=e.indexOf(u,i+1)}else if(Array.isArray(e))if(Array.isArray(u)){let i=u.length;if(i===0)for(let c=0;c<=e.length;c++)f.push(c);else for(let c=0;c<=e.length-i;c++){let h=!0;for(let a=0;a<i;a++)if(!o(e[c+a],u[a])){h=!1;break}h&&f.push(c)}}else for(let i=0;i<e.length;i++)o(e[i],u)&&f.push(i);return f});default:return null}}function de(e,n,t,r,s){switch(n){case"fabs":case"abs":return typeof e=="number"?[Math.abs(e)]:typeof e=="string"?[e]:[null];case"exp10":return typeof e=="number"?[10**e]:[null];case"exp2":return typeof e=="number"?[2**e]:[null];case"pow":{if(t.length<2)return[null];let o=s(e,t[0],r),p=s(e,t[1],r),u=o[0],f=p[0];return typeof u!="number"||typeof f!="number"?[null]:[u**f]}case"atan2":{if(t.length<2)return[null];let o=s(e,t[0],r),p=s(e,t[1],r),u=o[0],f=p[0];return typeof u!="number"||typeof f!="number"?[null]:[Math.atan2(u,f)]}case"hypot":{if(typeof e!="number"||t.length===0)return[null];let o=s(e,t[0],r)[0];return[Math.hypot(e,o)]}case"fma":{if(typeof e!="number"||t.length<2)return[null];let o=s(e,t[0],r)[0],p=s(e,t[1],r)[0];return[e*o+p]}case"copysign":{if(typeof e!="number"||t.length===0)return[null];let o=s(e,t[0],r)[0];return[Math.sign(o)*Math.abs(e)]}case"drem":case"remainder":{if(typeof e!="number"||t.length===0)return[null];let o=s(e,t[0],r)[0];return[e-Math.round(e/o)*o]}case"fdim":{if(typeof e!="number"||t.length===0)return[null];let o=s(e,t[0],r)[0];return[Math.max(0,e-o)]}case"fmax":{if(typeof e!="number"||t.length===0)return[null];let o=s(e,t[0],r)[0];return[Math.max(e,o)]}case"fmin":{if(typeof e!="number"||t.length===0)return[null];let o=s(e,t[0],r)[0];return[Math.min(e,o)]}case"ldexp":{if(typeof e!="number"||t.length===0)return[null];let o=s(e,t[0],r)[0];return[e*2**o]}case"scalbn":case"scalbln":{if(typeof e!="number"||t.length===0)return[null];let o=s(e,t[0],r)[0];return[e*2**o]}case"nearbyint":return typeof e=="number"?[Math.round(e)]:[null];case"logb":return typeof e=="number"?[Math.floor(Math.log2(Math.abs(e)))]:[null];case"significand":if(typeof e=="number"){let o=Math.floor(Math.log2(Math.abs(e)));return[e/2**o]}return[null];case"frexp":if(typeof e=="number"){if(e===0)return[[0,0]];let o=Math.floor(Math.log2(Math.abs(e)))+1;return[[e/2**o,o]]}return[null];case"modf":if(typeof e=="number"){let o=Math.trunc(e);return[[e-o,o]]}return[null];default:return null}}function V(e){let n=e.limits.maxIterations;return{maxDepth:e.limits.maxDepth,maxResults:e.limits.maxArrayElements,maxIterations:n}}function H(e){throw new g(e,"array_elements")}function ge(e,n){let t=1;for(let r of e){if(!Number.isSafeInteger(r)||r<0)throw new Error("combinations requires finite array lengths");r!==0&&t>Math.floor(n/r)&&H(`query combination limit exceeded (${n})`),t*=r}return t}function be(e,n,t,r,s,o,p,u){switch(n){case"recurse":{let f=[],i=V(r),c=t.length>=2?t[1]:null,h=[{value:e,depth:0}],a=0;for(;h.length>0;){let l=h.pop();if(!l)break;if(++a>i.maxIterations)throw new g(`query iteration limit exceeded (${i.maxIterations})`,"iterations");if(l.depth>i.maxDepth)throw new g(`query depth limit exceeded (${i.maxDepth})`,"recursion");if(c&&!s(l.value,c,r).some(o))continue;f.length>=i.maxResults&&H(`query result element limit exceeded (${i.maxResults})`),f.push(l.value);let y=[];t.length===0?Array.isArray(l.value)?y=l.value:l.value&&typeof l.value=="object"&&(y=Object.keys(l.value).map(m=>l.value[m])):y=s(l.value,t[0],r).filter(m=>m!=null),h.length>i.maxResults-y.length&&H(`query traversal queue limit exceeded (${i.maxResults})`);for(let m=y.length-1;m>=0;m--)h.push({value:y[m],depth:l.depth+1})}return f}case"recurse_down":return u(e,"recurse",t,r);case"walk":{if(t.length===0)return[e];let f=V(r),i=new WeakSet,c=new WeakMap,h=[{value:e,depth:0,expanded:!1}],a=e,l=0;for(;h.length>0;){let y=h.pop();if(!y)break;if(++l>f.maxIterations)throw new g(`query iteration limit exceeded (${f.maxIterations})`,"iterations");if(y.depth>f.maxDepth)throw new g(`query depth limit exceeded (${f.maxDepth})`,"recursion");let m=y.value!==null&&typeof y.value=="object"?y.value:null;if(!y.expanded&&m){if(i.has(m))continue;i.add(m),h.push({...y,expanded:!0});let w=S(y.value),N=Array.isArray(y.value)?y.value:Object.keys(w??{}).map(O=>w?.[O]);h.length>f.maxResults-N.length&&H(`query traversal queue limit exceeded (${f.maxResults})`);for(let O=N.length-1;O>=0;O--)h.push({value:N[O],depth:y.depth+1,expanded:!1});continue}let b=y.value;if(Array.isArray(y.value))b=y.value.map(w=>w!==null&&typeof w=="object"?c.get(w)??w:w);else if(m){let w=Object.create(null),N=S(y.value);for(let O of Object.keys(N??{})){if(!E(O))continue;let $=N?.[O];k(w,O,$!==null&&typeof $=="object"?c.get($)??$:$)}b=w}let A=s(b,t[0],r)[0];m&&c.set(m,A),y.depth===0&&(a=A)}return[a]}case"transpose":{if(!Array.isArray(e))return[null];if(e.length===0)return[[]];let f=V(r),i=0;for(let h of e)Array.isArray(h)&&(i=Math.max(i,h.length));ge([e.length,i],f.maxResults);let c=[];for(let h=0;h<i;h++)c.push(e.map(a=>Array.isArray(a)?a[h]:null));return[c]}case"combinations":{if(t.length>0){let y=s(e,t[0],r)[0];if(!Array.isArray(e))return[];if(!Number.isFinite(y)||!Number.isSafeInteger(y)||y<0)throw new Error("combinations length must be a finite non-negative integer");let m=V(r);if(y>m.maxDepth||y>m.maxResults)throw new g(`query depth limit exceeded (${m.maxDepth})`,"recursion");if(y===0)return m.maxResults<1&&H("query combination limit exceeded (0)"),[[]];let b=ge(Array.from({length:y},()=>e.length),m.maxResults);if(b===0)return[];let A=[],w=new Array(y).fill(0);for(let N=0;N<b;N++){A.push(w.map(O=>e[O]));for(let O=y-1;O>=0&&(w[O]++,!(w[O]<e.length));O--)w[O]=0}return A}if(!Array.isArray(e))return[];if(e.length===0)return V(r).maxResults<1&&H("query combination limit exceeded (0)"),[[]];for(let l of e)if(!Array.isArray(l))return[];let f=V(r),i=e;if(i.length>f.maxDepth)throw new g(`query depth limit exceeded (${f.maxDepth})`,"recursion");let c=ge(i.map(l=>l.length),f.maxResults);if(c===0)return[];let h=[],a=new Array(i.length).fill(0);for(let l=0;l<c;l++){h.push(a.map((y,m)=>i[m][y]));for(let y=i.length-1;y>=0&&(a[y]++,!(a[y]<i[y].length));y--)a[y]=0}return h}case"parent":{if(r.root===void 0||r.currentPath===void 0)return[];let f=r.currentPath;if(f.length===0)return[];let i=t.length>0?s(e,t[0],r)[0]:1;if(i>=0){if(i>f.length)return[];let c=f.slice(0,f.length-i);return[p(r.root,c)]}else{let c=-i-1;if(c>=f.length)return[e];let h=f.slice(0,c);return[p(r.root,h)]}}case"parents":{if(r.root===void 0||r.currentPath===void 0)return[[]];let f=r.currentPath,i=[];for(let c=f.length-1;c>=0;c--)i.push(p(r.root,f.slice(0,c)));return[i]}case"root":return r.root!==void 0?[r.root]:[];default:return null}}var we=2e3;function T(e){return e.limits.maxArrayElements}function Ae(e,n){let t=Object.create(null);return k(t,"key",e),k(t,"value",n),t}function ee(e,n){let t=T(e);if(n>=t)throw new g(`query result element limit exceeded (${t})`,"array_elements")}function ve(e,n){let t=n.limits.maxDepth??we;if(e.length>t)throw new g(`query depth limit exceeded (${t})`,"recursion");let r=n.limits.maxArrayElements;for(let s of e)if(typeof s=="number"){if(!Number.isSafeInteger(s)||s<0||s>=r)throw new g(`query array index limit exceeded (${r})`,"array_elements")}else if(typeof s!="string")throw new Error("stream path components must be strings or integers")}function Ee(e,n,t,r,s){switch(n){case"keys":return Array.isArray(e)?[e.map((o,p)=>p)]:e&&typeof e=="object"?[Object.keys(e).sort()]:[null];case"keys_unsorted":return Array.isArray(e)?[e.map((o,p)=>p)]:e&&typeof e=="object"?[Object.keys(e)]:[null];case"length":return typeof e=="string"?[e.length]:Array.isArray(e)?[e.length]:e&&typeof e=="object"?[Object.keys(e).length]:e===null?[0]:typeof e=="number"?[Math.abs(e)]:[null];case"utf8bytelength":{if(typeof e=="string")return[j(e)];let o=e===null?"null":Array.isArray(e)?"array":typeof e,p=o==="array"||o==="object"?JSON.stringify(e):String(e);throw new Error(`${o} (${p}) only strings have UTF-8 byte length`)}case"to_entries":{if(Array.isArray(e)){if(e.length>T(r))throw new g(`query result element limit exceeded (${T(r)})`,"array_elements");return[e.map((p,u)=>Ae(u,p))]}let o=S(e);if(o){let p=Object.keys(o);if(p.length>T(r))throw new g(`query result element limit exceeded (${T(r)})`,"array_elements");return[p.map(u=>Ae(u,o[u]))]}return[null]}case"from_entries":if(Array.isArray(e)){let o=Object.create(null);for(let p of e){let u=S(p);if(u){let f=u.key??u.Key??u.name??u.Name??u.k,i=u.value??u.Value??u.v;if(f!==void 0){let c=String(f);E(c)&&k(o,c,i)}}}return[o]}return[null];case"with_entries":{if(t.length===0)return[e];let o=S(e);if(o){let p=Object.keys(o);if(p.length>T(r))throw new g(`query result element limit exceeded (${T(r)})`,"array_elements");let u=[];for(let i of p){let c=Ae(i,o[i]),h=s(c,t[0],r);if(u.length>T(r)-h.length)throw new g(`query result element limit exceeded (${T(r)})`,"array_elements");for(let a of h)u.push(a)}let f=Object.create(null);for(let i of u){let c=S(i);if(c){let h=c.key??c.name??c.k,a=c.value??c.v;if(h!==void 0){let l=String(h);E(l)&&k(f,l,a)}}}return[f]}return[null]}case"reverse":return Array.isArray(e)?[[...e].reverse()]:typeof e=="string"?[e.split("").reverse().join("")]:[null];case"flatten":return Array.isArray(e)?(t.length>0?s(e,t[0],r):[Number.POSITIVE_INFINITY]).map(p=>{let u=p;if(u<0)throw new Error("flatten depth must not be negative");return e.flat(u)}):[null];case"unique":if(Array.isArray(e)){let o=new Set,p=[];for(let u of e){let f=JSON.stringify(u);o.has(f)||(o.add(f),p.push(u))}return[p]}return[null];case"tojson":case"tojsonstream":{let o=r.limits.maxDepth??we;return B(e,o+1)>o?[null]:[JSON.stringify(e)]}case"fromjson":{if(typeof e=="string"){let o=e.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[Ie(JSON.parse(e),{maxDepth:r.limits.maxDepth,maxElements:r.limits.maxArrayElements})]}catch(p){throw p instanceof g?p:new Error(`Invalid JSON: ${e}`)}}return[e]}case"tostring":return typeof e=="string"?[e]:[JSON.stringify(e)];case"tonumber":if(typeof e=="number")return[e];if(typeof e=="string"){let o=e.trim()===""?Number.NaN:Number(e);if(Number.isNaN(o))throw new Error(`${JSON.stringify(e)} cannot be parsed as a number`);return[o]}throw new Error(`${typeof e} cannot be parsed as a number`);case"toboolean":{if(typeof e=="boolean")return[e];if(typeof e=="string"){if(e==="true")return[!0];if(e==="false")return[!1];throw new Error(`string (${JSON.stringify(e)}) cannot be parsed as a boolean`)}let o=e===null?"null":Array.isArray(e)?"array":typeof e,p=o==="array"||o==="object"?JSON.stringify(e):String(e);throw new Error(`${o} (${p}) cannot be parsed as a boolean`)}case"tostream":{let o=[],p=r.limits.maxDepth??we,u=[{value:e,path:[]}],f=new WeakSet,i=0;for(;u.length>0;){let c=u.pop();if(!c)break;if(++i>r.limits.maxIterations)throw new g(`query iteration limit exceeded (${r.limits.maxIterations})`,"iterations");if(c.path.length>p)throw new g(`query depth limit exceeded (${p})`,"recursion");let h=c.value;if(h===null||typeof h!="object")ee(r,o.length),o.push([c.path,h]);else if(Array.isArray(h)){if(f.has(h))throw new g("cyclic value cannot be converted to a stream","recursion");if(f.add(h),h.length===0)ee(r,o.length),o.push([c.path,[]]);else{if(u.length>T(r)-h.length)throw new g(`query traversal queue limit exceeded (${T(r)})`,"array_elements");for(let a=h.length-1;a>=0;a--)u.push({value:h[a],path:[...c.path,a]})}}else{if(f.has(h))throw new g("cyclic value cannot be converted to a stream","recursion");f.add(h);let a=Object.keys(h);if(a.length===0)ee(r,o.length),o.push([c.path,Object.create(null)]);else{if(u.length>T(r)-a.length)throw new g(`query traversal queue limit exceeded (${T(r)})`,"array_elements");for(let l=a.length-1;l>=0;l--){let y=a[l];u.push({value:h[y],path:[...c.path,y]})}}}}return ee(r,o.length),o.push([[]]),o}case"fromstream":{if(t.length===0)return[e];let o=s(e,t[0],r);if(o.length>T(r))throw new g(`query stream item limit exceeded (${T(r)})`,"array_elements");let p=null,u=0;for(let f of o){if(!Array.isArray(f)||f.length===1&&Array.isArray(f[0])&&f[0].length===0||f.length!==2)continue;let[i,c]=f;if(!Array.isArray(i))continue;if(ve(i,r),i.length===0){p=c;continue}p===null&&(p=typeof i[0]=="number"?[]:Object.create(null));let h=p;for(let l=0;l<i.length-1;l++){let y=i[l],m=i[l+1];if(Array.isArray(h)&&typeof y=="number"){let b=y+1-h.length;if(b>r.limits.maxIterations-u)throw new g(`query iteration limit exceeded (${r.limits.maxIterations})`,"iterations");for(u+=Math.max(0,b);h.length<=y;)h.push(null);h[y]===null&&(h[y]=typeof m=="number"?[]:Object.create(null)),h=h[y]}else{let b=S(h);if(b){let A=String(y);if(!E(A))continue;(b[A]===null||b[A]===void 0)&&k(b,A,typeof m=="number"?[]:Object.create(null)),h=b[A]}}}let a=i[i.length-1];if(Array.isArray(h)&&typeof a=="number"){let l=a+1-h.length;if(l>r.limits.maxIterations-u)throw new g(`query iteration limit exceeded (${r.limits.maxIterations})`,"iterations");for(u+=Math.max(0,l);h.length<=a;)h.push(null);h[a]=c}else{let l=S(h);if(l){let y=String(a);E(y)&&k(l,y,c)}}}return[p]}case"truncate_stream":{let o=typeof e=="number"?Math.floor(e):0;if(t.length===0)return[];let p=[],u=s(e,t[0],r);for(let f of u)if(Array.isArray(f)){if(f.length===1&&Array.isArray(f[0])){let i=f[0];i.length>o&&p.push([i.slice(o)]);continue}if(f.length===2&&Array.isArray(f[0])){let i=f[0],c=f[1];i.length>o&&p.push([i.slice(o),c])}}return p}default:return null}}function Le(e,n){if(!Array.isArray(e))throw new Error("path must be an array");let t=n.limits.maxDepth;if(e.length>t)throw new g(`query depth limit exceeded (${t})`,"recursion");let r=n.limits.maxArrayElements,s=0;for(let o of e)if(typeof o=="number"){if(!Number.isSafeInteger(o)||o<0||o>=r)throw new g(`query array index limit exceeded (${r})`,"array_elements");let p=o+1;if(s>r-p)throw new g(`query cumulative array allocation limit exceeded (${r})`,"array_elements");s+=p}else if(typeof o!="string")throw new Error("path components must be strings or integers");return R(n,s+e.length),e}function _e(e,n,t){let r=[],s=[{value:e,path:[],isRoot:!0}];for(;s.length>0;){let o=s.pop();if(!o)break;if(R(n),o.path.length>n.limits.maxDepth)throw new g(`query depth limit exceeded (${n.limits.maxDepth})`,"recursion");if(!(o.value!==null&&typeof o.value=="object")){(t||!o.isRoot)&&(D(n,r.length),r.push(o.path));continue}!t&&!o.isRoot&&(D(n,r.length),r.push(o.path));let u=Array.isArray(o.value)?o.value.map((f,i)=>[i,f]):Object.keys(o.value).map(f=>[f,o.value[f]]);D(n,r.length,s.length+u.length);for(let f=u.length-1;f>=0;f--){let[i,c]=u[f],h=[...o.path,i];s.push({value:c,path:h,isRoot:!1})}}return r}function ke(e,n,t,r,s,o,p,u,f,i){switch(n){case"getpath":{if(t.length===0)return[null];let c=s(e,t[0],r),h=[];for(let a of c){let l=a,y=e;for(let m of l){if(y==null){y=null;break}if(Array.isArray(y)&&typeof m=="number")y=y[m];else if(typeof m=="string"){let b=S(y);if(!b||!Object.hasOwn(b,m)){y=null;break}y=b[m]}else{y=null;break}}h.push(y)}return h}case"setpath":{if(t.length<2)return[null];let c=s(e,t[0],r),h=Le(c[0],r),l=s(e,t[1],r)[0];return[p(e,h,l)]}case"delpaths":{if(t.length===0)return[e];let h=s(e,t[0],r)[0],a=e;for(let l of h.sort((y,m)=>m.length-y.length))a=u(a,l);return[a]}case"path":{if(t.length===0)return[[]];let c=[];return i(e,t[0],r,[],c),c}case"del":return t.length===0?[e]:[f(e,t[0],r)];case"pick":{if(t.length===0)return[null];let c=[];for(let a of t)i(e,a,r,[],c);let h=null;for(let a of c){for(let y of a)if(typeof y=="number"&&y<0)throw new Error("Out of bounds negative array index");Le(a,r);let l=e;for(let y of a){if(l==null)break;if(Array.isArray(l)&&typeof y=="number")l=l[y];else if(typeof y=="string"){let m=S(l);if(!m||!Object.hasOwn(m,y)){l=null;break}l=m[y]}else{l=null;break}}h=p(h,a,l)}return[h]}case"paths":{let c=_e(e,r,!1);return t.length>0?c.filter(h=>{let a=e;for(let y of h)if(Array.isArray(a)&&typeof y=="number")a=a[y];else if(typeof y=="string"){let m=S(a);if(!m||!Object.hasOwn(m,y))return!1;a=m[y]}else return!1;return s(a,t[0],r).some(o)}):c}case"leaf_paths":return _e(e,r,!0);default:return null}}function Se(e,n,t,r,s,o){switch(n){case"IN":{if(t.length===0)return[!1];if(t.length===1){let i=s(e,t[0],r);for(let c of i)if(o(e,c))return[!0];return[!1]}let p=s(e,t[0],r),u=s(e,t[1],r),f=new Set(u.map(i=>JSON.stringify(i)));for(let i of p)if(f.has(JSON.stringify(i)))return[!0];return[!1]}case"INDEX":{if(t.length===0)return[Object.create(null)];if(t.length===1){let f=s(e,t[0],r),i=Object.create(null);for(let c of f){let h=String(c);E(h)&&k(i,h,c)}return[i]}if(t.length===2){let f=s(e,t[0],r),i=Object.create(null);for(let c of f){let h=s(c,t[1],r);if(h.length>0){let a=String(h[0]);E(a)&&k(i,a,c)}}return[i]}let p=s(e,t[0],r),u=Object.create(null);for(let f of p){let i=s(f,t[1],r),c=s(f,t[2],r);if(i.length>0&&c.length>0){let h=String(i[0]);E(h)&&k(u,h,c[0])}}return[u]}case"JOIN":{if(t.length<2)return[null];let p=S(s(e,t[0],r)[0]);if(!p)return[null];if(!Array.isArray(e))return[null];let u=[];for(let f of e){let i=s(f,t[1],r),c=i.length>0?String(i[0]):"",h=_(p,c)?p[c]:null;u.push([f,h])}return[u]}default:return null}}function Ue(e){return e.limits.maxArrayElements}function Be(e){return Math.min(e.limits.maxStringLength,e.limits.maxOutputSize)}function U(e,n){let t=Ue(e);if(!Number.isSafeInteger(n)||n<0||n>t)throw new g(`query result element limit exceeded (${t})`,"array_elements")}function et(e,n,t){if(e==="")return n===""?0:1;if(n==="")return e.length;let r=1,s=0;for(;;){let o=e.indexOf(n,s);if(o<0||(r++,r>t))return r;s=o+n.length}}function Oe(e,n,t,r,s){switch(n){case"join":{if(!Array.isArray(e))return[null];let o=t.length>0?s(e,t[0],r):[""];for(let p of e)if(Array.isArray(p)||p!==null&&typeof p=="object")throw new Error("cannot join: contains arrays or objects");return U(r,o.length),o.map(p=>{let u=String(p),f=0;for(let i=0;i<e.length;i++){let c=e[i]===null?"":typeof e[i]=="string"?e[i]:String(e[i]);if(f+=j(c),i>0&&(f+=j(u)),f>Be(r))throw new g(`query string size limit exceeded (${Be(r)} bytes)`,"string_length")}return e.map(i=>i===null?"":typeof i=="string"?i:String(i)).join(u)})}case"split":{if(typeof e!="string"||t.length===0)return[null];let o=s(e,t[0],r),p=String(o[0]);return U(r,et(e,p,Ue(r))),[e.split(p)]}case"splits":{if(typeof e!="string"||t.length===0)return[];let o=s(e,t[0],r),p=String(o[0]);try{let u=t.length>1?String(s(e,t[1],r)[0]):"g",f=P(p,u.includes("g")?u:`${u}g`),i=1;for(let h of f.matchAll(e))i+=Math.max(1,h.length),U(r,i);let c=f.split(e);return U(r,c.length),c}catch(u){if(u instanceof g)throw u;return[]}}case"scan":{if(typeof e!="string"||t.length===0)return[];let o=s(e,t[0],r),p=String(o[0]);try{let u=t.length>1?String(s(e,t[1],r)[0]):"",f=P(p,u.includes("g")?u:`${u}g`),i=[];for(let c of f.matchAll(e))U(r,i.length+1),c.length>1?(U(r,c.length-1),i.push(c.slice(1))):i.push(c[0]);return i}catch(u){if(u instanceof g)throw u;return[]}}case"test":{if(typeof e!="string"||t.length===0)return[!1];let o=s(e,t[0],r),p=String(o[0]);try{let u=t.length>1?String(s(e,t[1],r)[0]):"";return[P(p,u).test(e)]}catch{return[!1]}}case"match":{if(typeof e!="string"||t.length===0)return[null];let o=s(e,t[0],r),p=String(o[0]);try{let u=t.length>1?String(s(e,t[1],r)[0]):"",i=P(p,`${u}d`).exec(e);if(!i)return[];let c=i.indices;return[{offset:i.index,length:i[0].length,string:i[0],captures:i.slice(1).map((h,a)=>({offset:c?.[a+1]?.[0]??null,length:h?.length??0,string:h??"",name:null}))}]}catch{return[null]}}case"capture":{if(typeof e!="string"||t.length===0)return[null];let o=s(e,t[0],r),p=String(o[0]);try{let u=t.length>1?String(s(e,t[1],r)[0]):"",i=P(p,u).match(e);return!i||!i.groups?[Object.create(null)]:[i.groups]}catch{return[null]}}case"sub":{if(typeof e!="string"||t.length<2)return[null];let o=s(e,t[0],r),p=s(e,t[1],r),u=String(o[0]),f=String(p[0]);try{let i=t.length>2?String(s(e,t[2],r)[0]):"";return[P(u,i).replace(e,f)]}catch{return[e]}}case"gsub":{if(typeof e!="string"||t.length<2)return[null];let o=s(e,t[0],r),p=s(e,t[1],r),u=String(o[0]),f=String(p[0]);try{let i=t.length>2?String(s(e,t[2],r)[0]):"g",c=i.includes("g")?i:`${i}g`;return[P(u,c).replace(e,f)]}catch{return[e]}}case"ascii_downcase":return typeof e=="string"?[e.replace(/[A-Z]/g,o=>String.fromCharCode(o.charCodeAt(0)+32))]:[null];case"ascii_upcase":return typeof e=="string"?[e.replace(/[a-z]/g,o=>String.fromCharCode(o.charCodeAt(0)-32))]:[null];case"ltrimstr":{if(typeof e!="string"||t.length===0)return[e];let o=s(e,t[0],r),p=String(o[0]);return[e.startsWith(p)?e.slice(p.length):e]}case"rtrimstr":{if(typeof e!="string"||t.length===0)return[e];let o=s(e,t[0],r),p=String(o[0]);return p===""?[e]:[e.endsWith(p)?e.slice(0,-p.length):e]}case"trimstr":{if(typeof e!="string"||t.length===0)return[e];let o=s(e,t[0],r),p=String(o[0]);if(p==="")return[e];let u=e;return u.startsWith(p)&&(u=u.slice(p.length)),u.endsWith(p)&&(u=u.slice(0,-p.length)),[u]}case"trim":if(typeof e=="string")return[e.trim()];throw new Error("trim input must be a string");case"ltrim":if(typeof e=="string")return[e.trimStart()];throw new Error("trim input must be a string");case"rtrim":if(typeof e=="string")return[e.trimEnd()];throw new Error("trim input must be a string");case"startswith":{if(typeof e!="string"||t.length===0)return[!1];let o=s(e,t[0],r);return[e.startsWith(String(o[0]))]}case"endswith":{if(typeof e!="string"||t.length===0)return[!1];let o=s(e,t[0],r);return[e.endsWith(String(o[0]))]}case"ascii":return typeof e=="string"&&e.length>0?[e.charCodeAt(0)]:[null];case"explode":if(typeof e=="string"){let o=0;for(let p of e)o++,U(r,o);return[Array.from(e).map(p=>p.codePointAt(0))]}return[null];case"implode":if(!Array.isArray(e))throw new Error("implode input must be an array");return[e.map(u=>{if(typeof u=="string")throw new Error(`string (${JSON.stringify(u)}) can't be imploded, unicode codepoint needs to be numeric`);if(typeof u!="number"||Number.isNaN(u))throw new Error("number (null) can't be imploded, unicode codepoint needs to be numeric");let f=Math.trunc(u);return f<0||f>1114111||f>=55296&&f<=57343?String.fromCodePoint(65533):String.fromCodePoint(f)}).join("")];default:return null}}function Ne(e,n){switch(n){case"type":return e===null?["null"]:Array.isArray(e)?["array"]:typeof e=="boolean"?["boolean"]:typeof e=="number"?["number"]:typeof e=="string"?["string"]:typeof e=="object"?["object"]:["null"];case"infinite":return[Number.POSITIVE_INFINITY];case"nan":return[Number.NaN];case"isinfinite":return[typeof e=="number"&&!Number.isFinite(e)];case"isnan":return[typeof e=="number"&&Number.isNaN(e)];case"isnormal":return[typeof e=="number"&&Number.isFinite(e)&&e!==0];case"isfinite":return[typeof e=="number"&&Number.isFinite(e)];case"numbers":return typeof e=="number"?[e]:[];case"strings":return typeof e=="string"?[e]:[];case"booleans":return typeof e=="boolean"?[e]:[];case"nulls":return e===null?[e]:[];case"arrays":return Array.isArray(e)?[e]:[];case"objects":return e&&typeof e=="object"&&!Array.isArray(e)?[e]:[];case"iterables":return Array.isArray(e)||e&&typeof e=="object"&&!Array.isArray(e)?[e]:[];case"scalars":return!Array.isArray(e)&&!(e&&typeof e=="object")?[e]:[];case"values":return e===null?[]:[e];case"not":return e===!1||e===null?[!0]:[!1];case"null":return[null];case"true":return[!0];case"false":return[!1];case"empty":return[];default:return null}}function te(e,n,t){if(n.length===0)return t;let[r,...s]=n;if(typeof r=="number"){if(e&&typeof e=="object"&&!Array.isArray(e))throw new Error("Cannot index object with number");if(r>536870911)throw new Error("Array index too large");if(r<0)throw new Error("Out of bounds negative array index");let i=Array.isArray(e)?[...e]:[];for(;i.length<=r;)i.push(null);return i[r]=te(i[r],s,t),i}if(Array.isArray(e))throw new Error("Cannot index array with string");if(!E(r))return e??Object.create(null);let o=S(e),p=o?C(o):Object.create(null),u=Object.hasOwn(p,r)?p[r]:void 0;return k(p,r,te(u,s,t)),p}function re(e,n){if(n.length===0)return null;if(n.length===1){let s=n[0];if(Array.isArray(e)&&typeof s=="number"){let o=[...e];return o.splice(s,1),o}if(e&&typeof e=="object"&&!Array.isArray(e)){let o=String(s);if(!E(o))return e;let p=C(e);return delete p[o],p}return e}let[t,...r]=n;if(Array.isArray(e)&&typeof t=="number"){let s=[...e];return s[t]=re(s[t],r),s}if(e&&typeof e=="object"&&!Array.isArray(e)){let s=String(t);if(!E(s))return e;let o=C(e);return Object.hasOwn(o,s)&&k(o,s,re(o[s],r)),o}return e}var Q=class e extends Error{label;partialResults;constructor(n,t=[]){super(`break ${n}`),this.label=n,this.partialResults=t,this.name="BreakError"}withPrependedResults(n){return new e(this.label,[...n,...this.partialResults])}},ie=class extends Error{value;constructor(n){super(typeof n=="string"?n:JSON.stringify(n)),this.value=n,this.name="JqError"}},tt=1e4,qe=10*1024*1024,Je=2e3,rt=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 F(e,n){return new g(e,n)}function R(e,n=1){if(!Number.isSafeInteger(n)||n<0||e.budget.operations>e.limits.maxIterations-n)throw F(`query evaluation: too many iterations (${e.limits.maxIterations})`,"iterations");e.budget.operations+=n}function D(e,n,t=1){let r=e.limits.maxArrayElements;if(!Number.isSafeInteger(n)||!Number.isSafeInteger(t)||n<0||t<0||n>r-t)throw F(`query result element limit exceeded (${r})`,"array_elements")}function q(e,n,t){D(e,n.length,t.length);for(let r of t)n.push(r)}function M(e,n,t){let r=[];for(let s of n){R(e);let o=t(s);q(e,r,o)}return r}function nt(e){let n=new Map;if(e?.namedArgs)for(let[t,r]of e.namedArgs)n.set(`$${t}`,r);return{vars:n,limits:{maxIterations:e?.limits?.maxIterations??tt,maxDepth:e?.limits?.maxDepth??Je,maxStringLength:e?.limits?.maxStringLength??qe,maxOutputSize:e?.limits?.maxOutputSize??qe,maxArrayElements:e?.limits?.maxArrayElements??1e5},env:e?.env,namedArgs:e?.namedArgs,positionalArgs:e?.positionalArgs,coverage:e?.coverage,requireDefenseContext:e?.requireDefenseContext,defenseContextChecked:!1,budget:e?.budget??{operations:0,callDepth:0}}}function se(e,n,t){let r=new Map(e.vars);return r.set(n,t),{vars:r,limits:e.limits,env:e.env,namedArgs:e.namedArgs,positionalArgs:e.positionalArgs,requireDefenseContext:e.requireDefenseContext,defenseContextChecked:e.defenseContextChecked,root:e.root,currentPath:e.currentPath,funcs:e.funcs,labels:e.labels,coverage:e.coverage,budget:e.budget}}function W(e,n,t){switch(n.type){case"var":return se(e,n.name,t);case"array":{if(!Array.isArray(t))return null;let r=e;for(let s=0;s<n.elements.length;s++){let o=n.elements[s],p=s<t.length?t[s]:null,u=W(r,o,p);if(u===null)return null;r=u}return r}case"object":{let r=S(t);if(!r)return null;let s=e;for(let o of n.fields){let p;if(typeof o.key=="string")p=o.key;else{let i=d(t,o.key,e);if(i.length===0)return null;p=String(i[0])}let u=_(r,p)?r[p]:null;o.keyVar&&(s=se(s,o.keyVar,u));let f=W(s,o.pattern,u);if(f===null)return null;s=f}return s}}}function it(e,n){let t=e;for(let r of n)if(t&&typeof t=="object")if(Array.isArray(t))if(typeof r=="number")t=t[r];else return;else{let s=S(t);if(s&&typeof r=="string"&&Object.hasOwn(s,r))t=s[r];else return}else return;return t}function x(e){if(e.type==="Identity")return[];if(e.type==="Field"){let n=e.base?x(e.base):[];return n===null?null:[...n,e.name]}if(e.type==="Index"&&e.index.type==="Literal"){let n=e.base?x(e.base):[];if(n===null)return null;let t=e.index.value;return typeof t=="number"||typeof t=="string"?[...n,t]:null}if(e.type==="Pipe"){let n=x(e.left);return n===null?null:Ce(n,e.right)}if(e.type==="Call"){if(e.name==="parent"||e.name==="root")return null;if(e.name==="first"&&e.args.length===0)return[0];if(e.name==="last"&&e.args.length===0)return[-1]}return null}function Ce(e,n){if(n.type==="Call"){if(n.name==="parent"){let t=1;if(n.args.length>0&&n.args[0].type==="Literal"){let r=n.args[0].value;typeof r=="number"&&(t=r)}if(t>=0)return e.slice(0,Math.max(0,e.length-t));{let r=-t-1;return e.slice(0,Math.min(r,e.length))}}if(n.name==="root")return[]}if(n.type==="Field"){let t=x(n);if(t!==null)return[...e,...t]}if(n.type==="Index"&&n.index.type==="Literal"){let t=x(n);if(t!==null)return[...e,...t]}if(n.type==="Pipe"){let t=Ce(e,n.left);return t===null?null:Ce(t,n.right)}return n.type==="Identity"?e:null}function Fe(e,n,t){if(n.type==="Comma"){let r=[];try{let s=d(e,n.left,t);q(t,r,s)}catch(s){if(s instanceof g)throw s;if(r.length>0)return r;throw new Error("evaluation failed")}try{let s=d(e,n.right,t);q(t,r,s)}catch(s){if(s instanceof g)throw s;return r}return r}return d(e,n,t)}function d(e,n,t){let r=t&&"vars"in t?t:nt(t);if(r.defenseContextChecked||(Me(r.requireDefenseContext,"query-engine","evaluation"),r={...r,defenseContextChecked:!0}),r.root===void 0&&(r={...r,root:e,currentPath:[]}),R(r),r.budget.callDepth++,r.budget.callDepth>r.limits.maxDepth)throw r.budget.callDepth--,F(`query depth limit exceeded (${r.limits.maxDepth})`,"recursion");try{let s=st(e,n,r);return D(r,0,s.length),s}finally{r.budget.callDepth--}}function st(e,n,t){switch(t.coverage?.hit(`jq:node:${n.type}`),n.type){case"Identity":return[e];case"Field":{let r=n.base?d(e,n.base,t):[e];return M(t,r,s=>{let o=S(s);if(o){if(!Object.hasOwn(o,n.name))return[null];let u=o[n.name];return[u===void 0?null:u]}if(s===null)return[null];let p=Array.isArray(s)?"array":typeof s;throw new Error(`Cannot index ${p} with string "${n.name}"`)})}case"Index":{let r=d(e,n.index,t);if(r.length===0)return[];let s=n.base?d(e,n.base,t):[e];return M(t,r,o=>M(t,s,p=>{if(typeof o=="number"&&Array.isArray(p)){if(Number.isNaN(o))return[null];let u=Math.trunc(o),f=u<0?p.length+u:u;return f>=0&&f<p.length?[p[f]]:[null]}if(typeof o=="string"){let u=S(p);return!u||!Object.hasOwn(u,o)?[null]:[u[o]]}return[null]}))}case"Slice":{let r=n.base?d(e,n.base,t):[e];return M(t,r,s=>{if(s===null)return[null];if(!Array.isArray(s)&&typeof s!="string")throw new Error(`Cannot slice ${typeof s} (${JSON.stringify(s)})`);let o=s.length,p=n.start?d(e,n.start,t):[0],u=n.end?d(e,n.end,t):[o];return D(t,0,p.length*u.length),M(t,p,f=>u.map(i=>{let c=f,h=i,a=Number.isNaN(c)?0:Number.isInteger(c)?c:Math.floor(c),l=Number.isNaN(h)?o:Number.isInteger(h)?h:Math.ceil(h),y=Ke(a,o),m=Ke(l,o);return Array.isArray(s),s.slice(y,m)}))})}case"Iterate":{let r=n.base?d(e,n.base,t):[e];return M(t,r,s=>Array.isArray(s)?s:s&&typeof s=="object"?Object.values(s):[])}case"Pipe":{let r=d(e,n.left,t),s=x(n.left),o=[];for(let p of r)try{if(s!==null){let u={...t,currentPath:[...t.currentPath??[],...s]},f=d(p,n.right,u);q(t,o,f)}else{let u=d(p,n.right,t);q(t,o,u)}}catch(u){throw u instanceof Q?u.withPrependedResults(o):u}return o}case"Comma":{let r=d(e,n.left,t),s=d(e,n.right,t);return D(t,r.length,s.length),[...r,...s]}case"Literal":return[n.value];case"Array":return n.elements?[d(e,n.elements,t)]:[[]];case"Object":{let r=[Object.create(null)];for(let s of n.entries){let o=typeof s.key=="string"?[s.key]:d(e,s.key,t),p=d(e,s.value,t),u=[],f=o.filter(h=>typeof h=="string"&&E(h)).length,i=f+(o.length-f),c=r.length*i*p.length;D(t,0,c);for(let h of r)for(let a of o){if(typeof a!="string"){let l=a===null?"null":Array.isArray(a)?"array":typeof a;throw new Error(`Cannot use ${l} (${JSON.stringify(a)}) as object key`)}if(!E(a)){for(let l of p)u.push(C(h));continue}for(let l of p){let y=C(h);k(y,a,l),u.push(y)}}r.length=0,q(t,r,u)}return r}case"Paren":return d(e,n.expr,t);case"BinaryOp":return ft(e,n.op,n.left,n.right,t);case"UnaryOp":return d(e,n.operand,t).map(s=>{if(n.op==="-"){if(typeof s=="number")return-s;if(typeof s=="string"){let o=p=>p.length>5?`"${p.slice(0,3)}...`:JSON.stringify(p);throw new Error(`string (${o(s)}) cannot be negated`)}return null}return n.op==="not"?!I(s):null});case"Cond":{let r=d(e,n.cond,t);return M(t,r,s=>{if(I(s))return d(e,n.then,t);for(let o of n.elifs)if(d(e,o.cond,t).some(I))return d(e,o.then,t);return n.else?d(e,n.else,t):[e]})}case"Try":try{return d(e,n.body,t)}catch(r){if(r instanceof g)throw r;if(n.catch){let s=r instanceof ie?r.value:r instanceof Error?r.message:String(r);return d(s,n.catch,t)}return[]}case"Call":return He(e,n.name,n.args,t);case"VarBind":{let r=d(e,n.value,t);return M(t,r,s=>{let o=null,p=[];if(n.pattern?p.push(n.pattern):n.name&&p.push({type:"var",name:n.name}),n.alternatives)for(let u of n.alternatives)p.push(u);for(let u of p)if(o=W(t,u,s),o!==null)break;return o===null?[]:d(e,n.body,o)})}case"VarRef":{if(n.name==="$ENV")return[t.env?ue(t.env):Object.create(null)];if(n.name==="$ARGS"){let s=Object.create(null);if(t.namedArgs)for(let[p,u]of t.namedArgs)Object.defineProperty(s,p,{value:u,enumerable:!0,writable:!0,configurable:!0});let o=Object.create(null);return o.positional=t.positionalArgs?[...t.positionalArgs]:[],o.named=s,[o]}let r=t.vars.get(n.name);return r!==void 0?[r]:[null]}case"Recurse":{let r=[],s=new WeakSet,o=[{val:e,depth:0}];for(;o.length>0;){let p=o.pop();if(!p)break;let{val:u,depth:f}=p;if(R(t),f>t.limits.maxDepth)throw F(`query depth limit exceeded (${t.limits.maxDepth})`,"recursion");if(u&&typeof u=="object"){if(s.has(u))continue;s.add(u)}if(D(t,r.length),r.push(u),Array.isArray(u))for(let i=u.length-1;i>=0;i--)o.push({val:u[i],depth:f+1});else if(u&&typeof u=="object"){let i=Object.keys(u);for(let c=i.length-1;c>=0;c--)o.push({val:u[i[c]],depth:f+1})}}return r}case"Optional":try{return d(e,n.expr,t)}catch(r){if(r instanceof g)throw r;return[]}case"StringInterp":{let r=new G(t.limits.maxStringLength,"query string interpolation",()=>new g(`string size limit exceeded (${t.limits.maxStringLength} bytes)`,"string_length"));for(let s of n.parts){if(typeof s=="string"){r.append(s);continue}let o=d(e,s,t);for(let p of o){if(R(t),B(p,t.limits.maxDepth+1)>t.limits.maxDepth)throw F(`query depth limit exceeded (${t.limits.maxDepth})`,"recursion");r.append(typeof p=="string"?p:JSON.stringify(p))}}return[r.build()]}case"UpdateOp":return[ot(e,n.path,n.op,n.value,t)];case"Reduce":{let r=d(e,n.expr,t),s=d(e,n.init,t)[0],o=t.limits.maxDepth??Je;for(let p of r){let u;if(n.pattern){if(u=W(t,n.pattern,p),u===null)continue}else u=se(t,n.varName,p);if(s=d(s,n.update,u)[0],B(s,o+1)>o)return[null]}return[s]}case"Foreach":{let r=d(e,n.expr,t),s=d(e,n.init,t)[0],o=[];for(let p of r)try{let u;if(n.pattern){if(u=W(t,n.pattern,p),u===null)continue}else u=se(t,n.varName,p);if(s=d(s,n.update,u)[0],n.extract){let f=d(s,n.extract,u);q(t,o,f)}else D(t,o.length),o.push(s)}catch(u){throw u instanceof Q?u.withPrependedResults(o):u}return o}case"Label":try{return d(e,n.body,{...t,labels:new Set([...t.labels??[],n.name])})}catch(r){if(r instanceof Q&&r.label===n.name)return r.partialResults;throw r}case"Break":throw new Q(n.name);case"Def":{let r=new Map(t.funcs??[]),s=`${n.name}/${n.params.length}`;r.set(s,{params:n.params,body:n.funcBody,closure:new Map(t.funcs??[])});let o={...t,funcs:r};return d(e,n.body,o)}default:{let r=n;throw new Error(`Unknown AST node type: ${r.type}`)}}}function Ke(e,n){return e<0?Math.max(0,n+e):Math.min(e,n)}function ot(e,n,t,r,s){function o(f,i){switch(t){case"=":return i;case"|=":return d(f,r,s)[0]??null;case"+=":return typeof f=="number"&&typeof i=="number"||typeof f=="string"&&typeof i=="string"?f+i:Array.isArray(f)&&Array.isArray(i)?(D(s,f.length,i.length),[...f,...i]):f&&i&&typeof f=="object"&&typeof i=="object"?ce(f,i):i;case"-=":return typeof f=="number"&&typeof i=="number"?f-i:f;case"*=":return typeof f=="number"&&typeof i=="number"?f*i:f;case"/=":return typeof f=="number"&&typeof i=="number"?f/i:f;case"%=":return typeof f=="number"&&typeof i=="number"?f%i:f;case"//=":return f===null||f===!1?i:f;default:return i}}function p(f,i,c){switch(i.type){case"Identity":return c(f);case"Field":{if(!E(i.name))return f;if(i.base)return p(f,i.base,h=>{if(h&&typeof h=="object"&&!Array.isArray(h)){let a=C(h),l=Object.hasOwn(a,i.name)?a[i.name]:void 0;return k(a,i.name,c(l)),a}return h});if(f&&typeof f=="object"&&!Array.isArray(f)){let h=C(f),a=Object.hasOwn(h,i.name)?h[i.name]:void 0;return k(h,i.name,c(a)),h}return f}case"Index":{let a=d(e,i.index,s)[0];if(typeof a=="number"&&Number.isNaN(a))throw new Error("Cannot set array element at NaN index");if(typeof a=="number"&&!Number.isFinite(a))throw new Error("array index must be finite");if(typeof a=="number"&&!Number.isInteger(a)&&(a=Math.trunc(a)),i.base)return p(f,i.base,l=>{if(typeof a=="number"&&Array.isArray(l)){let y=[...l],m=a<0?y.length+a:a;if(m>=0){D(s,0,m+1),y.length<=m&&(y.length=m+1);for(let b=l.length;b<m;b++)y[b]=null;y[m]=c(y[m])}return y}if(typeof a=="string"&&l&&typeof l=="object"&&!Array.isArray(l)){if(!E(a))return l;let y=C(l),m=Object.hasOwn(y,a)?y[a]:void 0;return k(y,a,c(m)),y}return l});if(typeof a=="number"){if(!Number.isSafeInteger(a)||a>536870911)throw new Error("Array index too large");if(a<0&&(!f||!Array.isArray(f)))throw new Error("Out of bounds negative array index");if(Array.isArray(f)){let y=[...f],m=a<0?y.length+a:a;if(m>=0){D(s,0,m+1),y.length<=m&&(y.length=m+1);for(let b=f.length;b<m;b++)y[b]=null;y[m]=c(y[m])}return y}if(f==null){D(s,0,a+1);let y=new Array(a+1).fill(null);return y[a]=c(null),y}return f}if(typeof a=="string"&&f&&typeof f=="object"&&!Array.isArray(f)){if(!E(a))return f;let l=C(f),y=Object.hasOwn(l,a)?l[a]:void 0;return k(l,a,c(y)),l}return f}case"Iterate":{let h=a=>{if(Array.isArray(a)){D(s,0,a.length);let l=[];for(let y of a)R(s),l.push(c(y));return l}if(a&&typeof a=="object"){let l=Object.create(null);for(let[y,m]of Object.entries(a))E(y)&&k(l,y,c(m));return l}return a};return i.base?p(f,i.base,h):h(f)}case"Pipe":{let h=p(f,i.left,a=>a);return p(h,i.right,c)}default:return c(f)}}return p(e,n,f=>{if(t==="|=")return o(f,f);let i=d(e,r,s);return o(f,i[0]??null)})}function Ve(e,n,t){function r(o,p,u){switch(p.type){case"Identity":return u;case"Field":{if(!E(p.name))return o;if(p.base){let f=d(o,p.base,t)[0],i=r(f,{type:"Field",name:p.name},u);return r(o,p.base,i)}if(o&&typeof o=="object"&&!Array.isArray(o)){let f=C(o);return k(f,p.name,u),f}return o}case"Index":{if(p.base){let c=d(o,p.base,t)[0],h=r(c,{type:"Index",index:p.index},u);return r(o,p.base,h)}let i=d(e,p.index,t)[0];if(typeof i=="number"&&Array.isArray(o)){let c=[...o],h=i<0?c.length+i:i;return h>=0&&h<c.length&&(c[h]=u),c}if(typeof i=="string"&&o&&typeof o=="object"&&!Array.isArray(o)){if(!E(i))return o;let c=C(o);return k(c,i,u),c}return o}default:return o}}function s(o,p){switch(p.type){case"Identity":return null;case"Field":{if(!E(p.name))return o;if(p.base){let f=d(o,p.base,t)[0];if(f==null)return o;let i=s(f,{type:"Field",name:p.name});return r(o,p.base,i)}if(o&&typeof o=="object"&&!Array.isArray(o)){if(!E(p.name))return o;let f=C(o);return delete f[p.name],f}return o}case"Index":{if(p.base){let c=d(o,p.base,t)[0];if(c==null)return o;let h=s(c,{type:"Index",index:p.index});return r(o,p.base,h)}let i=d(e,p.index,t)[0];if(typeof i=="number"&&Array.isArray(o)){let c=[...o],h=i<0?c.length+i:i;return h>=0&&h<c.length&&c.splice(h,1),c}if(typeof i=="string"&&o&&typeof o=="object"&&!Array.isArray(o)){if(!E(i))return o;let c=C(o);return delete c[i],c}return o}case"Iterate":return Array.isArray(o)?[]:o&&typeof o=="object"?Object.create(null):o;case"Pipe":{let c=function(l,y,m){switch(y.type){case"Identity":return m;case"Field":{if(!E(y.name))return l;if(l&&typeof l=="object"&&!Array.isArray(l)){let b=C(l);return k(b,y.name,m),b}return l}case"Index":{let A=d(e,y.index,t)[0];if(typeof A=="number"&&Array.isArray(l)){let w=[...l],N=A<0?w.length+A:A;return N>=0&&N<w.length&&(w[N]=m),w}if(typeof A=="string"&&l&&typeof l=="object"&&!Array.isArray(l)){if(!E(A))return l;let w=C(l);return k(w,A,m),w}return l}case"Pipe":{let b=d(l,y.left,t)[0],A=c(b,y.right,m);return c(l,y.left,A)}default:return l}};var u=c;let f=p.left,i=p.right,h=d(o,f,t)[0];if(h==null)return o;let a=Ve(h,i,t);return c(o,f,a)}default:return o}}return s(e,n)}function ft(e,n,t,r,s){if(n==="and"){let f=d(e,t,s);return M(s,f,i=>{if(!I(i))return[!1];let c=d(e,r,s);return M(s,c,h=>[I(h)])})}if(n==="or"){let f=d(e,t,s);return M(s,f,i=>{if(I(i))return[!0];let c=d(e,r,s);return M(s,c,h=>[I(h)])})}if(n==="//"){let i=d(e,t,s).filter(c=>c!=null&&c!==!1);return i.length>0?i:d(e,r,s)}let o=d(e,t,s),p=d(e,r,s),u=o.length*p.length;return D(s,0,u),R(s,u),o.flatMap(f=>p.map(i=>{switch(n){case"+":if(f===null)return i;if(i===null)return f;if(typeof f=="number"&&typeof i=="number")return f+i;if(typeof f=="string"&&typeof i=="string"){let c=s.limits.maxStringLength;if(j(f)+j(i)>c)throw new g(`string size limit exceeded (${c} bytes)`,"string_length");return f+i}return Array.isArray(f)&&Array.isArray(i)?(D(s,f.length,i.length),[...f,...i]):f&&i&&typeof f=="object"&&typeof i=="object"&&!Array.isArray(f)&&!Array.isArray(i)?ce(f,i):null;case"-":if(typeof f=="number"&&typeof i=="number")return f-i;if(Array.isArray(f)&&Array.isArray(i)){let c=new Set(i.map(h=>JSON.stringify(h)));return f.filter(h=>!c.has(JSON.stringify(h)))}if(typeof f=="string"&&typeof i=="string"){let c=h=>h.length>10?`"${h.slice(0,10)}...`:JSON.stringify(h);throw new Error(`string (${c(f)}) and string (${c(i)}) cannot be subtracted`)}return null;case"*":if(typeof f=="number"&&typeof i=="number")return f*i;if(typeof f=="string"&&typeof i=="number"){if(!Number.isFinite(i))throw new Error(`invalid string repetition count: ${i}`);let c=Math.trunc(i);if(c<0)return null;let h=j(f),a=s.limits.maxStringLength;if(h>0&&c>Math.floor(a/h))throw new g(`string size limit exceeded (${a} bytes)`,"string_length");return f.repeat(c)}{let c=S(f),h=S(i);if(c&&h)return xe(c,h,{maxDepth:s.limits.maxDepth,visit:()=>R(s)})}return null;case"/":if(typeof f=="number"&&typeof i=="number"){if(i===0)throw new Error(`number (${f}) and number (${i}) cannot be divided because the divisor is zero`);return f/i}return typeof f=="string"&&typeof i=="string"?f.split(i):null;case"%":if(typeof f=="number"&&typeof i=="number"){if(i===0)throw new Error(`number (${f}) and number (${i}) cannot be divided (remainder) because the divisor is zero`);return!Number.isFinite(f)&&!Number.isNaN(f)?!Number.isFinite(i)&&!Number.isNaN(i)&&f<0&&i>0?-1:0:f%i}return null;case"==":return J(f,i);case"!=":return!J(f,i);case"<":return Y(f,i)<0;case"<=":return Y(f,i)<=0;case">":return Y(f,i)>0;case">=":return Y(f,i)>=0;default:return null}}))}function He(e,n,t,r){let s=rt.get(n);if(s)return typeof e=="number"?[s(e)]:[null];let o=de(e,n,t,r,d);if(o!==null)return o;let p=Oe(e,n,t,r,d);if(p!==null)return p;let u=le(e,n,t,r,d);if(u!==null)return u;let f=ye(e,n,r.limits.maxDepth);if(f!==null)return f;let i=Ne(e,n);if(i!==null)return i;let c=Ee(e,n,t,r,d);if(c!==null)return c;let h=he(e,n,t,r,d,Fe,Z,I,v,g);if(h!==null)return h;let a=ke(e,n,t,r,d,I,te,re,Ve,ne);if(a!==null)return a;let l=me(e,n,t,r,d,J);if(l!==null)return l;let y=pe(e,n,t,r,d,Fe,I,g);if(y!==null)return y;let m=be(e,n,t,r,d,I,it,He);if(m!==null)return m;let b=Se(e,n,t,r,d,J);if(b!==null)return b;switch(n){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 A=t.length>0?d(e,t[0],r)[0]:e;throw new ie(A)}case"env":return[r.env?ue(r.env):Object.create(null)];case"debug":return[e];case"input_line_number":return[1];default:{let A=`${n}/${t.length}`,w=r.funcs?.get(A);if(w){let N=w.closure??r.funcs??new Map,O=new Map(N);O.set(A,w);for(let X=0;X<w.params.length;X++){let We=w.params[X],Te=t[X];if(Te){let L=d(e,Te,r),K;if(L.length===0)K={type:"Call",name:"empty",args:[]};else if(L.length===1)K={type:"Literal",value:L[0]};else{K={type:"Literal",value:L[L.length-1]};for(let fe=L.length-2;fe>=0;fe--)K={type:"Comma",left:{type:"Literal",value:L[fe]},right:K}}O.set(`${We}/0`,{params:[],body:K})}}let $={...r,funcs:O};return d(e,w.body,$)}throw new Error(`Unknown function: ${n}`)}}}function ne(e,n,t,r,s){if(R(t),r.length>t.limits.maxDepth)throw F(`query depth limit exceeded (${t.limits.maxDepth})`,"recursion");let o=(f,i)=>{let c=r.length+f.length+(i===void 0?0:1);if(c>t.limits.maxDepth)throw F(`query depth limit exceeded (${t.limits.maxDepth})`,"recursion");D(t,s.length),R(t,c);let h=[...r,...f];i!==void 0&&h.push(i),s.push(h)};if(n.type==="Comma"){let f=n;ne(e,f.left,t,r,s),ne(e,f.right,t,r,s);return}let p=x(n);if(p!==null){o(p);return}if(n.type==="Index"){let f=n.base?x(n.base):[],i=f?d(e,n.index,t):[];if(f&&i.every(c=>typeof c=="string"||typeof c=="number")){if(i.length===0)return;let c=n.base?d(e,n.base,t):[e];for(let h of i)for(let a of c){if(R(t),a!==null&&(typeof h=="string"?typeof a!="object"||Array.isArray(a):!Array.isArray(a))){let l=Array.isArray(a)?"array":typeof a;throw new Error(`Cannot index ${l} with ${typeof h=="string"?`string "${h}"`:"number"}`)}o(f,h)}return}}if(n.type==="Iterate"){if(Array.isArray(e))for(let f=0;f<e.length;f++)R(t),o([],f);else if(e&&typeof e=="object")for(let f of Object.keys(e))R(t),o([],f);return}if(n.type==="Recurse"){let f=[{value:e,path:[]}];for(;f.length>0;){let i=f.pop();if(!i)break;if(R(t),o(i.path),i.value&&typeof i.value=="object"){let c=Array.isArray(i.value)?i.value.map((h,a)=>[a,h]):Object.keys(i.value).map(h=>[h,i.value[h]]);D(t,0,f.length+c.length);for(let h=c.length-1;h>=0;h--){let[a,l]=c[h];f.push({value:l,path:[...i.path,a]})}}}return}if(n.type==="Pipe"){let f=x(n.left);if(f!==null){let i=d(e,n.left,t);for(let c of i)ne(c,n.right,t,[...r,...f],s);return}}d(e,n,t).length>0&&o([])}var Qe=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"]]),oe=new Set(Qe.values());function Ye(e){let n=[],t=0,r=(i=0)=>e[t+i],s=()=>e[t++],o=()=>t>=e.length,p=i=>i>="0"&&i<="9",u=i=>i>="a"&&i<="z"||i>="A"&&i<="Z"||i==="_",f=i=>u(i)||p(i);for(;!o();){let i=t,c=s();if(!(c===" "||c===" "||c===`
5
+ `||c==="\r")){if(c==="#"){for(;!o()&&r()!==`
6
+ `;)s();continue}if(c==="."&&r()==="."){s(),n.push({type:"DOTDOT",pos:i});continue}if(c==="="&&r()==="="){s(),n.push({type:"EQ",pos:i});continue}if(c==="!"&&r()==="="){s(),n.push({type:"NE",pos:i});continue}if(c==="<"&&r()==="="){s(),n.push({type:"LE",pos:i});continue}if(c===">"&&r()==="="){s(),n.push({type:"GE",pos:i});continue}if(c==="/"&&r()==="/"){s(),r()==="="?(s(),n.push({type:"UPDATE_ALT",pos:i})):n.push({type:"ALT",pos:i});continue}if(c==="+"&&r()==="="){s(),n.push({type:"UPDATE_ADD",pos:i});continue}if(c==="-"&&r()==="="){s(),n.push({type:"UPDATE_SUB",pos:i});continue}if(c==="*"&&r()==="="){s(),n.push({type:"UPDATE_MUL",pos:i});continue}if(c==="/"&&r()==="="){s(),n.push({type:"UPDATE_DIV",pos:i});continue}if(c==="%"&&r()==="="){s(),n.push({type:"UPDATE_MOD",pos:i});continue}if(c==="="&&r()!=="="){n.push({type:"ASSIGN",pos:i});continue}if(c==="."){n.push({type:"DOT",pos:i});continue}if(c==="|"){r()==="="?(s(),n.push({type:"UPDATE_PIPE",pos:i})):n.push({type:"PIPE",pos:i});continue}if(c===","){n.push({type:"COMMA",pos:i});continue}if(c===":"){n.push({type:"COLON",pos:i});continue}if(c===";"){n.push({type:"SEMICOLON",pos:i});continue}if(c==="("){n.push({type:"LPAREN",pos:i});continue}if(c===")"){n.push({type:"RPAREN",pos:i});continue}if(c==="["){n.push({type:"LBRACKET",pos:i});continue}if(c==="]"){n.push({type:"RBRACKET",pos:i});continue}if(c==="{"){n.push({type:"LBRACE",pos:i});continue}if(c==="}"){n.push({type:"RBRACE",pos:i});continue}if(c==="?"){n.push({type:"QUESTION",pos:i});continue}if(c==="+"){n.push({type:"PLUS",pos:i});continue}if(c==="-"){n.push({type:"MINUS",pos:i});continue}if(c==="*"){n.push({type:"STAR",pos:i});continue}if(c==="/"){n.push({type:"SLASH",pos:i});continue}if(c==="%"){n.push({type:"PERCENT",pos:i});continue}if(c==="<"){n.push({type:"LT",pos:i});continue}if(c===">"){n.push({type:"GT",pos:i});continue}if(p(c)){let h=c;for(;!o()&&(p(r())||r()==="."||r()==="e"||r()==="E");)(r()==="e"||r()==="E")&&(e[t+1]==="+"||e[t+1]==="-")&&(h+=s()),h+=s();n.push({type:"NUMBER",value:Number(h),pos:i});continue}if(c==='"'){let h="",a=0;for(;!o();){let l=r();if(a===0&&l==='"')break;if(a===0&&l==="\\"){if(s(),o())break;let y=s();switch(y){case"n":h+=`
7
+ `;break;case"r":h+="\r";break;case"t":h+=" ";break;case"\\":h+="\\";break;case'"':h+='"';break;case"(":h+="\\(",a=1;break;default:h+=y}continue}if(a>0){if(l==='"'){for(h+=s();!o();){let y=r();if(y==="\\"){h+=s(),o()||(h+=s());continue}if(h+=s(),y==='"')break}continue}l==="("?a++:l===")"&&a--,h+=s();continue}h+=s()}o()||s(),n.push({type:"STRING",value:h,pos:i});continue}if(u(c)||c==="$"||c==="@"){let h=c;for(;!o()&&f(r());)h+=s();let a=Qe.get(h);a?n.push({type:a,value:h,pos:i}):n.push({type:"IDENT",value:h,pos:i});continue}throw new Error(`Unexpected character '${c}' at position ${i}`)}}return n.push({type:"EOF",pos:t}),n}var De=class e{maxDepth;tokens;pos=0;depth;constructor(n,t,r=0){this.maxDepth=t,this.tokens=n,this.depth=r}peek(n=0){return this.tokens[this.pos+n]??{type:"EOF",pos:-1}}advance(){return this.tokens[this.pos++]}check(n){return this.peek().type===n}match(...n){for(let t of n)if(this.check(t))return this.advance();return null}expect(n,t){if(!this.check(n))throw new Error(`${t} at position ${this.peek().pos}, got ${this.peek().type}`);return this.advance()}withDepth(n){if(this.depth++,this.depth>this.maxDepth)throw this.depth--,new Error(`query parse depth limit exceeded (${this.maxDepth})`);try{return n()}finally{this.depth--}}isFieldNameAfterDot(n=0){let t=this.peek(n),r=this.peek(n+1);return r.type==="STRING"?!0:r.type==="IDENT"||oe.has(r.type)?r.pos===t.pos+1:!1}isIdentLike(){let n=this.peek().type;return n==="IDENT"||oe.has(n)}consumeFieldNameAfterDot(n){let t=this.peek();return t.type==="STRING"?this.advance().value:(t.type==="IDENT"||oe.has(t.type))&&t.pos===n.pos+1?this.advance().value:null}parse(){let n=this.parseExpr();if(!this.check("EOF"))throw new Error(`Unexpected token ${this.peek().type} at position ${this.peek().pos}`);return n}parseExpr(){if(this.depth++,this.depth>this.maxDepth)throw this.depth--,new Error(`query parse depth limit exceeded (${this.maxDepth})`);try{return this.parsePipe()}finally{this.depth--}}parsePattern(){if(this.depth++,this.depth>this.maxDepth)throw this.depth--,new Error(`query parse depth limit exceeded (${this.maxDepth})`);try{return this.parsePatternInner()}finally{this.depth--}}parsePatternInner(){if(this.match("LBRACKET")){let r=[];if(!this.check("RBRACKET"))for(r.push(this.parsePattern());this.match("COMMA")&&!this.check("RBRACKET");)r.push(this.parsePattern());return this.expect("RBRACKET","Expected ']' after array pattern"),{type:"array",elements:r}}if(this.match("LBRACE")){let r=[];if(!this.check("RBRACE"))for(r.push(this.parsePatternField());this.match("COMMA")&&!this.check("RBRACE");)r.push(this.parsePatternField());return this.expect("RBRACE","Expected '}' after object pattern"),{type:"object",fields:r}}let n=this.expect("IDENT","Expected variable name in pattern"),t=n.value;if(!t.startsWith("$"))throw new Error(`Variable name must start with $ at position ${n.pos}`);return{type:"var",name:t}}parsePatternField(){if(this.match("LPAREN")){let t=this.parseExpr();this.expect("RPAREN","Expected ')' after computed key"),this.expect("COLON","Expected ':' after computed key");let r=this.parsePattern();return{key:t,pattern:r}}let n=this.peek();if(n.type==="IDENT"||oe.has(n.type)){let t=n.value;if(t.startsWith("$")){if(this.advance(),this.match("COLON")){let r=this.parsePattern();return{key:t.slice(1),pattern:r,keyVar:t}}return{key:t.slice(1),pattern:{type:"var",name:t}}}if(this.advance(),this.match("COLON")){let r=this.parsePattern();return{key:t,pattern:r}}return{key:t,pattern:{type:"var",name:`$${t}`}}}throw new Error(`Expected field name in object pattern at position ${n.pos}`)}parsePipe(){let n=this.parseComma();for(;this.match("PIPE");){let t=this.parseComma();n={type:"Pipe",left:n,right:t}}return n}parseComma(){let n=this.parseVarBind();for(;this.match("COMMA");){let t=this.parseVarBind();n={type:"Comma",left:n,right:t}}return n}parseVarBind(){let n=this.parseUpdate();if(this.match("AS")){let t=this.parsePattern(),r=[];for(;this.check("QUESTION")&&this.peekAhead(1)?.type==="ALT";)this.advance(),this.advance(),r.push(this.parsePattern());this.expect("PIPE","Expected '|' after variable binding");let s=this.parseExpr();return t.type==="var"&&r.length===0?{type:"VarBind",name:t.name,value:n,body:s}:{type:"VarBind",name:t.type==="var"?t.name:"",value:n,body:s,pattern:t.type!=="var"?t:void 0,alternatives:r.length>0?r:void 0}}return n}peekAhead(n){let t=this.pos+n;return t<this.tokens.length?this.tokens[t]:void 0}parseUpdate(){let n=this.parseAlt(),t=new Map([["ASSIGN","="],["UPDATE_ADD","+="],["UPDATE_SUB","-="],["UPDATE_MUL","*="],["UPDATE_DIV","/="],["UPDATE_MOD","%="],["UPDATE_ALT","//="],["UPDATE_PIPE","|="]]),r=this.match("ASSIGN","UPDATE_ADD","UPDATE_SUB","UPDATE_MUL","UPDATE_DIV","UPDATE_MOD","UPDATE_ALT","UPDATE_PIPE");if(r){let s=this.withDepth(()=>this.parseVarBind()),o=t.get(r.type);if(o)return{type:"UpdateOp",op:o,path:n,value:s}}return n}parseAlt(){let n=this.parseOr();for(;this.match("ALT");){let t=this.parseOr();n={type:"BinaryOp",op:"//",left:n,right:t}}return n}parseOr(){let n=this.parseAnd();for(;this.match("OR");){let t=this.parseAnd();n={type:"BinaryOp",op:"or",left:n,right:t}}return n}parseAnd(){let n=this.parseNot();for(;this.match("AND");){let t=this.parseNot();n={type:"BinaryOp",op:"and",left:n,right:t}}return n}parseNot(){return this.parseComparison()}parseComparison(){let n=this.parseAddSub(),t=new Map([["EQ","=="],["NE","!="],["LT","<"],["LE","<="],["GT",">"],["GE",">="]]),r=this.match("EQ","NE","LT","LE","GT","GE");if(r){let s=t.get(r.type);if(s){let o=this.parseAddSub();n={type:"BinaryOp",op:s,left:n,right:o}}}return n}parseAddSub(){let n=this.parseMulDiv();for(;;)if(this.match("PLUS")){let t=this.parseMulDiv();n={type:"BinaryOp",op:"+",left:n,right:t}}else if(this.match("MINUS")){let t=this.parseMulDiv();n={type:"BinaryOp",op:"-",left:n,right:t}}else break;return n}parseMulDiv(){let n=this.parseUnary();for(;;)if(this.match("STAR")){let t=this.parseUnary();n={type:"BinaryOp",op:"*",left:n,right:t}}else if(this.match("SLASH")){let t=this.parseUnary();n={type:"BinaryOp",op:"/",left:n,right:t}}else if(this.match("PERCENT")){let t=this.parseUnary();n={type:"BinaryOp",op:"%",left:n,right:t}}else break;return n}parseUnary(){let n=0;for(;this.match("MINUS");)if(n++,this.depth+n>this.maxDepth)throw new Error(`query parse depth limit exceeded (${this.maxDepth})`);let t=this.parsePostfix();for(;n-- >0;)t={type:"UnaryOp",op:"-",operand:t};return t}parsePostfix(){let n=this.parsePrimary();for(;;)if(this.match("QUESTION"))n={type:"Optional",expr:n};else if(this.check("DOT")&&this.isFieldNameAfterDot())this.advance(),n={type:"Field",name:this.advance().value,base:n};else if(this.check("LBRACKET"))if(this.advance(),this.match("RBRACKET"))n={type:"Iterate",base:n};else if(this.check("COLON")){this.advance();let t=this.check("RBRACKET")?void 0:this.parseExpr();this.expect("RBRACKET","Expected ']'"),n={type:"Slice",end:t,base:n}}else{let t=this.parseExpr();if(this.match("COLON")){let r=this.check("RBRACKET")?void 0:this.parseExpr();this.expect("RBRACKET","Expected ']'"),n={type:"Slice",start:t,end:r,base:n}}else this.expect("RBRACKET","Expected ']'"),n={type:"Index",index:t,base:n}}else break;return n}parsePrimary(){if(this.match("DOTDOT"))return{type:"Recurse"};if(this.check("DOT")){let n=this.advance();if(this.check("LBRACKET")){if(this.advance(),this.match("RBRACKET"))return{type:"Iterate"};if(this.check("COLON")){this.advance();let s=this.check("RBRACKET")?void 0:this.parseExpr();return this.expect("RBRACKET","Expected ']'"),{type:"Slice",end:s}}let r=this.parseExpr();if(this.match("COLON")){let s=this.check("RBRACKET")?void 0:this.parseExpr();return this.expect("RBRACKET","Expected ']'"),{type:"Slice",start:r,end:s}}return this.expect("RBRACKET","Expected ']'"),{type:"Index",index:r}}let t=this.consumeFieldNameAfterDot(n);return t!==null?{type:"Field",name:t}:{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 t=this.advance().value;return t.includes("\\(")?this.parseStringInterpolation(t):{type:"Literal",value:t}}if(this.match("LBRACKET")){if(this.match("RBRACKET"))return{type:"Array"};let n=this.parseExpr();return this.expect("RBRACKET","Expected ']'"),{type:"Array",elements:n}}if(this.match("LBRACE"))return this.parseObjectConstruction();if(this.match("LPAREN")){let n=this.parseExpr();return this.expect("RPAREN","Expected ')'"),{type:"Paren",expr:n}}if(this.match("IF"))return this.parseIf();if(this.match("TRY")){let n=this.withDepth(()=>this.parsePostfix()),t;return this.match("CATCH")&&(t=this.withDepth(()=>this.parsePostfix())),{type:"Try",body:n,catch:t}}if(this.match("REDUCE")){let n=this.parseAddSub();this.expect("AS","Expected 'as' after reduce expression");let t=this.parsePattern();this.expect("LPAREN","Expected '(' after variable");let r=this.parseExpr();this.expect("SEMICOLON","Expected ';' after init expression");let s=this.parseExpr();this.expect("RPAREN","Expected ')' after update expression");let o=t.type==="var"?t.name:"";return{type:"Reduce",expr:n,varName:o,init:r,update:s,pattern:t.type!=="var"?t:void 0}}if(this.match("FOREACH")){let n=this.parseAddSub();this.expect("AS","Expected 'as' after foreach expression");let t=this.parsePattern();this.expect("LPAREN","Expected '(' after variable");let r=this.parseExpr();this.expect("SEMICOLON","Expected ';' after init expression");let s=this.parseExpr(),o;this.match("SEMICOLON")&&(o=this.parseExpr()),this.expect("RPAREN","Expected ')' after expressions");let p=t.type==="var"?t.name:"";return{type:"Foreach",expr:n,varName:p,init:r,update:s,extract:o,pattern:t.type!=="var"?t:void 0}}if(this.match("LABEL")){let n=this.expect("IDENT","Expected label name (e.g., $out)"),t=n.value;if(!t.startsWith("$"))throw new Error(`Label name must start with $ at position ${n.pos}`);this.expect("PIPE","Expected '|' after label name");let r=this.parseExpr();return{type:"Label",name:t,body:r}}if(this.match("BREAK")){let n=this.expect("IDENT","Expected label name to break to"),t=n.value;if(!t.startsWith("$"))throw new Error(`Break label must start with $ at position ${n.pos}`);return{type:"Break",name:t}}if(this.match("DEF")){let t=this.expect("IDENT","Expected function name after def").value,r=[];if(this.match("LPAREN")){if(!this.check("RPAREN")){let p=this.expect("IDENT","Expected parameter name");for(r.push(p.value);this.match("SEMICOLON");){let u=this.expect("IDENT","Expected parameter name");r.push(u.value)}}this.expect("RPAREN","Expected ')' after parameters")}this.expect("COLON","Expected ':' after function name");let s=this.parseExpr();this.expect("SEMICOLON","Expected ';' after function body");let o=this.parseExpr();return{type:"Def",name:t,params:r,funcBody:s,body:o}}if(this.match("NOT"))return{type:"Call",name:"not",args:[]};if(this.check("IDENT")){let t=this.advance().value;if(t.startsWith("$"))return{type:"VarRef",name:t};if(this.match("LPAREN")){let r=[];if(!this.check("RPAREN"))for(r.push(this.parseExpr());this.match("SEMICOLON");)r.push(this.parseExpr());return this.expect("RPAREN","Expected ')'"),{type:"Call",name:t,args:r}}return{type:"Call",name:t,args:[]}}throw new Error(`Unexpected token ${this.peek().type} at position ${this.peek().pos}`)}parseObjectConstruction(){if(this.depth++,this.depth>this.maxDepth)throw this.depth--,new Error(`query parse depth limit exceeded (${this.maxDepth})`);try{return this.parseObjectConstructionInner()}finally{this.depth--}}parseObjectConstructionInner(){let n=[];if(!this.check("RBRACE"))do{let t,r;if(this.match("LPAREN"))t=this.parseExpr(),this.expect("RPAREN","Expected ')'"),this.expect("COLON","Expected ':'"),r=this.parseObjectValue();else if(this.isIdentLike()){let s=this.advance().value;this.match("COLON")?(t=s,r=this.parseObjectValue()):(t=s,r={type:"Field",name:s})}else if(this.check("STRING"))t=this.advance().value,this.expect("COLON","Expected ':'"),r=this.parseObjectValue();else throw new Error(`Expected object key at position ${this.peek().pos}`);n.push({key:t,value:r})}while(this.match("COMMA"));return this.expect("RBRACE","Expected '}'"),{type:"Object",entries:n}}parseObjectValue(){let n=this.parseVarBind();for(;this.match("PIPE");){let t=this.parseVarBind();n={type:"Pipe",left:n,right:t}}return n}parseIf(){let n=this.parseExpr();this.expect("THEN","Expected 'then'");let t=this.parseExpr(),r=[];for(;this.match("ELIF");){let o=this.parseExpr();this.expect("THEN","Expected 'then' after elif");let p=this.parseExpr();r.push({cond:o,then:p})}let s;return this.match("ELSE")&&(s=this.parseExpr()),this.expect("END","Expected 'end'"),{type:"Cond",cond:n,then:t,elifs:r,else:s}}parseStringInterpolation(n){let t=[],r="",s=0;for(;s<n.length;)if(n[s]==="\\"&&n[s+1]==="("){r&&(t.push(r),r=""),s+=2;let o=1,p="";for(;s<n.length&&o>0;){let i=n[s];if(i==='"'){for(p+=i,s++;s<n.length;){let c=n[s];if(c==="\\"){p+=c,s++,s<n.length&&(p+=n[s],s++);continue}if(p+=c,s++,c==='"')break}continue}i==="("?o++:i===")"&&o--,o>0&&(p+=i),s++}let u=Ye(p),f=new e(u,this.maxDepth,this.depth);t.push(f.parse())}else r+=n[s],s++;return r&&t.push(r),{type:"StringInterp",parts:t}}};function pr(e,n={}){let t=n.maxDepth??256,r=n.maxTokens??1e5,s=n.maxSourceLength??1048576;if(e.length>s)throw new Error(`query source length limit exceeded (${s} characters)`);if(e.length+1>r)throw new Error(`query token limit exceeded (${r})`);let o=Ye(e);return new De(o,t).parse()}function br(e,n,t={}){let r=new G(n,"query JSON output",()=>new g(`output size limit exceeded (${n} bytes)`,t.limitKind??"output_size"));return Re(r,e,t,0),r.build()}function Re(e,n,t,r){if(n==null){e.append("null");return}if(typeof n=="boolean"){e.append(String(n));return}if(typeof n=="number"){e.append(Number.isFinite(n)?String(n):"null");return}if(typeof n=="string"){t.raw&&r===0?e.append(n):ze(e,n);return}let s=t.compact??!1,o=t.indent??2,p=t.useTab?" ":" ".repeat(o);if(Array.isArray(n)){e.append("[");for(let f=0;f<n.length;f++)e.append(s?f===0?"":",":f===0?`
8
+ `:`,
9
+ `),s||e.repeat(p,r+1),Re(e,n[f],t,r+1);!s&&n.length>0&&e.append(`
10
+ `).repeat(p,r),e.append("]");return}let u=Object.keys(n);t.sortKeys&&(u=u.sort()),e.append("{");for(let f=0;f<u.length;f++){let i=u[f];e.append(s?f===0?"":",":f===0?`
11
+ `:`,
12
+ `),s||e.repeat(p,r+1),ze(e,i),e.append(s?":":": "),Re(e,n[i],t,r+1)}!s&&u.length>0&&e.append(`
13
+ `).repeat(p,r),e.append("}")}function ze(e,n){e.append('"');let t=0;for(let r=0;r<n.length;r++){let s=n.charCodeAt(r),o="";s===34?o='\\"':s===92?o="\\\\":s===8?o="\\b":s===9?o="\\t":s===10?o="\\n":s===12?o="\\f":s===13?o="\\r":s<32&&(o=`\\u${s.toString(16).padStart(4,"0")}`),o&&(e.append(n.slice(t,r)).append(o),t=r+1)}e.append(n.slice(t)).append('"')}export{B as a,d as b,pr as c,br as d};
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import{createRequire} from"node:module";const require=createRequire(import.meta.url);
3
+ import{a as r}from"./chunk-26O2G5LX.js";var g=2048,o=new Map;function u(l,c,t){let s=typeof t=="boolean"?{ignoreCase:t}:t??{},e=c;s.stripQuotes&&(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1));let i=s.ignoreCase?`i:${e}`:e,n=o.get(i);if(!n){if(n=a(e,s.ignoreCase),o.size>=g){let f=o.keys().next().value;f!==void 0&&o.delete(f)}o.set(i,n)}return n.test(l)}function a(l,c){let t="^";for(let s=0;s<l.length;s++){let e=l[s];if(e==="*")t+=".*";else if(e==="?")t+=".";else if(e==="["){let i=s+1;for(;i<l.length&&l[i]!=="]";)i++;t+=l.slice(s,i+1),s=i}else e==="."||e==="+"||e==="^"||e==="$"||e==="{"||e==="}"||e==="("||e===")"||e==="|"||e==="\\"?t+=`\\${e}`:t+=e}return t+="$",r(t,c?"i":"")}export{u as a};
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import{createRequire} from"node:module";const require=createRequire(import.meta.url);
3
+ import{a,b}from"./chunk-AM4WIHAG.js";import"./chunk-QIDBJNMB.js";import"./chunk-EPWMLTS6.js";import"./chunk-GFI5BHZX.js";import"./chunk-NE4R2FVV.js";import"./chunk-MUFNRCMY.js";import"./chunk-DN2YCFOR.js";export{a as column,b as flagsForFuzzing};