@qitqode/qitqode-android-arm64 0.2.2 → 0.2.4

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 (427) hide show
  1. package/bun +2 -2
  2. package/bundle/{chunk-2hv2c8d5.js → chunk-0428v6mw.js} +1 -1
  3. package/bundle/{chunk-0f3ft9dh.js → chunk-05ck7acg.js} +1 -1
  4. package/bundle/{chunk-xmjntwjc.js → chunk-09geev0j.js} +2 -2
  5. package/bundle/{chunk-j5ymkhry.js → chunk-0cnwsf8p.js} +1 -1
  6. package/bundle/chunk-0ppnq3a4.js +2 -0
  7. package/bundle/{chunk-6kf4vw2g.js → chunk-0qd3567w.js} +1 -1
  8. package/bundle/{chunk-jw114bbt.js → chunk-0smnwqk6.js} +2 -2
  9. package/bundle/chunk-0te0vcdn.js +2 -0
  10. package/bundle/{chunk-q4fn41ex.js → chunk-0xrb12s8.js} +2 -2
  11. package/bundle/chunk-11h06z17.js +2 -0
  12. package/bundle/{chunk-vyh300ac.js → chunk-1rtx2zsc.js} +2 -2
  13. package/bundle/{chunk-3jms025t.js → chunk-1t0c86bz.js} +1 -1
  14. package/bundle/{chunk-6dfjtzqb.js → chunk-21rq4592.js} +2 -2
  15. package/bundle/{chunk-y3dfk6n5.js → chunk-24rkf2gk.js} +1 -1
  16. package/bundle/{chunk-rdwma0de.js → chunk-24ygjbpf.js} +2 -2
  17. package/bundle/{chunk-q46pzk9z.js → chunk-25ganjcn.js} +2 -2
  18. package/bundle/chunk-28yv4fqe.js +2 -0
  19. package/bundle/{chunk-3tmq81kq.js → chunk-2drzgtv3.js} +2 -2
  20. package/bundle/{chunk-xd3xc1vv.js → chunk-2md6sx8d.js} +1 -1
  21. package/bundle/chunk-2mm37s1w.js +2 -0
  22. package/bundle/chunk-2prf30p3.js +2 -0
  23. package/bundle/{chunk-v9rg0a8g.js → chunk-313zqzc1.js} +1 -1
  24. package/bundle/{chunk-zfd70p01.js → chunk-32j0q58h.js} +1 -1
  25. package/bundle/chunk-34a52hyr.js +2 -0
  26. package/bundle/{chunk-86jsqc7d.js → chunk-39z96pc6.js} +3 -3
  27. package/bundle/chunk-3hcr2bzt.js +2 -0
  28. package/bundle/{chunk-e6wp96vm.js → chunk-3jf3jhrs.js} +1 -1
  29. package/bundle/{chunk-4sxg9cgr.js → chunk-3kpse7zy.js} +1 -1
  30. package/bundle/chunk-3n3gb3vd.js +2 -0
  31. package/bundle/chunk-3sq60y9f.js +2 -0
  32. package/bundle/{chunk-2qwmrp16.js → chunk-3vvd7j14.js} +1 -1
  33. package/bundle/{chunk-h10wjk96.js → chunk-3zrr4n6k.js} +2 -2
  34. package/bundle/{chunk-rcyzqa3g.js → chunk-450fef7h.js} +2 -2
  35. package/bundle/{chunk-kxjrrdj0.js → chunk-45a4n21f.js} +1 -1
  36. package/bundle/{chunk-xny5ecn0.js → chunk-47k5jy1p.js} +2 -2
  37. package/bundle/{chunk-0gab4v98.js → chunk-48r70n4s.js} +1 -1
  38. package/bundle/chunk-49mbnqvc.js +2 -0
  39. package/bundle/{chunk-t9zbp2qw.js → chunk-4agaj51z.js} +1 -1
  40. package/bundle/chunk-4fr6kae9.js +2 -0
  41. package/bundle/chunk-4v2pzx22.js +2 -0
  42. package/bundle/chunk-516w1nc4.js +2 -0
  43. package/bundle/chunk-535nm66j.js +2 -0
  44. package/bundle/{chunk-1p6jjrea.js → chunk-55fcmswd.js} +2 -2
  45. package/bundle/{chunk-n7kqdqkh.js → chunk-55ykn8nz.js} +4 -4
  46. package/bundle/chunk-58dpxf8r.js +2 -0
  47. package/bundle/chunk-58w8c6c2.js +2 -0
  48. package/bundle/{chunk-as845ya4.js → chunk-5c2438af.js} +1 -1
  49. package/bundle/chunk-5kpxpm8e.js +2 -0
  50. package/bundle/chunk-5nm5s0h2.js +2 -0
  51. package/bundle/{chunk-07s30fpb.js → chunk-5nrc5rhh.js} +1 -1
  52. package/bundle/{chunk-jwph7tpc.js → chunk-5pwv2p3s.js} +1 -1
  53. package/bundle/{chunk-q5abwn50.js → chunk-5pzs51sp.js} +1 -1
  54. package/bundle/{chunk-r0s28gnb.js → chunk-5tky3csh.js} +1 -1
  55. package/bundle/{chunk-yajd975f.js → chunk-5w76kdjr.js} +1 -1
  56. package/bundle/{chunk-wcqfr8vr.js → chunk-5ysbwr4x.js} +1 -1
  57. package/bundle/{chunk-85xh72hk.js → chunk-5zkj5xv9.js} +2 -2
  58. package/bundle/chunk-620dpezx.js +5 -0
  59. package/bundle/{chunk-fgn83bs7.js → chunk-65bmsp2t.js} +1 -1
  60. package/bundle/{chunk-9jrxrjzt.js → chunk-68v3b6ns.js} +2 -2
  61. package/bundle/{chunk-7ntw4rrn.js → chunk-6ar91jvd.js} +1 -1
  62. package/bundle/{chunk-bbbh69ys.js → chunk-6evh2ke8.js} +1 -1
  63. package/bundle/{chunk-9bm9z52r.js → chunk-6fc3gw3e.js} +1 -1
  64. package/bundle/chunk-6gpf2bjs.js +2 -0
  65. package/bundle/{chunk-a2dz9nqh.js → chunk-6m9jb0s9.js} +2 -2
  66. package/bundle/{chunk-e374shb8.js → chunk-6pe60dsw.js} +2 -2
  67. package/bundle/{chunk-yvjke593.js → chunk-6scf311w.js} +1 -1
  68. package/bundle/{chunk-epa576pa.js → chunk-6v5867cy.js} +3 -3
  69. package/bundle/{chunk-5wwd40t3.js → chunk-70q8qcb2.js} +1 -1
  70. package/bundle/{chunk-pfkm3j8g.js → chunk-73r8bjjz.js} +2 -2
  71. package/bundle/{chunk-hs3vfhar.js → chunk-7bcm7gg1.js} +1 -1
  72. package/bundle/chunk-7bgzcpdw.js +2 -0
  73. package/bundle/{chunk-ezfzb8qc.js → chunk-7g66qc1v.js} +2 -2
  74. package/bundle/{chunk-fd7fmvyw.js → chunk-7hvf9dgx.js} +1 -1
  75. package/bundle/{chunk-7zc04q43.js → chunk-7j4qne3q.js} +2 -2
  76. package/bundle/chunk-7kjvcbwa.js +2 -0
  77. package/bundle/{chunk-6j339s7a.js → chunk-7mppvhv9.js} +2 -2
  78. package/bundle/{chunk-7z884mz2.js → chunk-7msfwk15.js} +2 -2
  79. package/bundle/{chunk-kmwy6c9g.js → chunk-7vmx8bg9.js} +2 -2
  80. package/bundle/{chunk-7njz51r4.js → chunk-7x6yrtzn.js} +1 -1
  81. package/bundle/{chunk-yhsnmpzv.js → chunk-7zx1ve4w.js} +1 -1
  82. package/bundle/{chunk-skv9ww0s.js → chunk-804vmbcd.js} +1 -1
  83. package/bundle/chunk-8jma2btf.js +2 -0
  84. package/bundle/{chunk-543pt030.js → chunk-8q38721t.js} +2 -2
  85. package/bundle/{chunk-kdcnder5.js → chunk-8wwdrwf2.js} +1 -1
  86. package/bundle/{chunk-4fk46ngj.js → chunk-920z7g7j.js} +1 -1
  87. package/bundle/chunk-93e0w75z.js +2 -0
  88. package/bundle/{chunk-pzefsndd.js → chunk-953pqp3w.js} +1 -1
  89. package/bundle/chunk-97gp818s.js +2 -0
  90. package/bundle/chunk-9epf2zbh.js +2 -0
  91. package/bundle/{chunk-4hd3v58j.js → chunk-9hz56z6a.js} +1 -1
  92. package/bundle/chunk-9pmmf4k1.js +2 -0
  93. package/bundle/chunk-9y03z65a.js +2 -0
  94. package/bundle/{chunk-rk2bk4s7.js → chunk-9zm6r55d.js} +2 -2
  95. package/bundle/{chunk-t1475j9f.js → chunk-a3edstpn.js} +1 -1
  96. package/bundle/{chunk-8d6e4jg7.js → chunk-ab4dq1bn.js} +2 -2
  97. package/bundle/{chunk-w7em72p8.js → chunk-ac7482n2.js} +2 -2
  98. package/bundle/chunk-agv04nt7.js +2 -0
  99. package/bundle/{chunk-sjreby6e.js → chunk-aj1sgq1d.js} +1 -1
  100. package/bundle/chunk-ak8e1nrf.js +2 -0
  101. package/bundle/{chunk-cbmwhvxw.js → chunk-at22twxx.js} +2 -2
  102. package/bundle/{chunk-frsd6e1h.js → chunk-avefgbjg.js} +2 -2
  103. package/bundle/chunk-b034nf8g.js +2 -0
  104. package/bundle/chunk-b2p54yka.js +2 -0
  105. package/bundle/{chunk-z2h1gxyx.js → chunk-bbng1cea.js} +1 -1
  106. package/bundle/{chunk-5az84brc.js → chunk-bd21p9zz.js} +2 -2
  107. package/bundle/chunk-be7smmar.js +2 -0
  108. package/bundle/chunk-bghqsh7r.js +2 -0
  109. package/bundle/{chunk-y4e7e42x.js → chunk-bne5w117.js} +4 -4
  110. package/bundle/{chunk-j3jqk62r.js → chunk-bqn6bqws.js} +1 -1
  111. package/bundle/chunk-bryx5cx9.js +2 -0
  112. package/bundle/{chunk-tge53d52.js → chunk-bwbqkfv0.js} +1 -1
  113. package/bundle/chunk-c13rrw41.js +2 -0
  114. package/bundle/chunk-c2kkv619.js +2 -0
  115. package/bundle/{chunk-64c8q9zg.js → chunk-c36p881g.js} +3 -3
  116. package/bundle/chunk-c5xj1y5v.js +2 -0
  117. package/bundle/{chunk-91z7azf7.js → chunk-cdja76vj.js} +1 -1
  118. package/bundle/{chunk-7ab3yw9j.js → chunk-ckb1y6gv.js} +2 -2
  119. package/bundle/chunk-ckpm4dvv.js +2 -0
  120. package/bundle/{chunk-732yr6qq.js → chunk-cmb62jkt.js} +2 -2
  121. package/bundle/chunk-ct8twng1.js +2 -0
  122. package/bundle/{chunk-s77qktcn.js → chunk-cx78hhbx.js} +2 -2
  123. package/bundle/{chunk-1q1cddy4.js → chunk-cz5vta94.js} +1 -1
  124. package/bundle/{chunk-fpm2vgz6.js → chunk-d0x5pbkm.js} +1 -1
  125. package/bundle/chunk-d38y7bvh.js +2 -0
  126. package/bundle/chunk-d5qgc18n.js +2 -0
  127. package/bundle/chunk-d6hxsfm6.js +2 -0
  128. package/bundle/{chunk-29zm623f.js → chunk-d6jhs818.js} +2 -2
  129. package/bundle/chunk-descb9jz.js +2 -0
  130. package/bundle/{chunk-ssdw9zre.js → chunk-dj1jen1p.js} +1 -1
  131. package/bundle/{chunk-mswx4k75.js → chunk-dnnkq5y4.js} +2 -2
  132. package/bundle/{chunk-6pcmv8vs.js → chunk-dnsh1v42.js} +2 -2
  133. package/bundle/chunk-dvr2b9r1.js +2 -0
  134. package/bundle/chunk-dwhjgd8j.js +2 -0
  135. package/bundle/{chunk-s0ty36qg.js → chunk-dxdggn90.js} +1 -1
  136. package/bundle/chunk-dypdyrmy.js +2 -0
  137. package/bundle/{chunk-w30b563s.js → chunk-e8p92vz4.js} +2 -2
  138. package/bundle/chunk-ea5fktnn.js +2 -0
  139. package/bundle/{chunk-t1jgx17a.js → chunk-eg3syjtv.js} +2 -2
  140. package/bundle/{chunk-2a9rzgk6.js → chunk-ehb4hd9c.js} +1 -1
  141. package/bundle/{chunk-9jsgs71h.js → chunk-ejqzcdcx.js} +1 -1
  142. package/bundle/{chunk-5t0w9ecw.js → chunk-et3804wr.js} +1 -1
  143. package/bundle/{chunk-yd8bzhv6.js → chunk-ezrqhqkp.js} +1 -1
  144. package/bundle/chunk-f0t7rryn.js +3 -0
  145. package/bundle/{chunk-p635phfw.js → chunk-f31yvp20.js} +1 -1
  146. package/bundle/chunk-f4mf6tpp.js +2 -0
  147. package/bundle/chunk-f97k17t8.js +2 -0
  148. package/bundle/{chunk-yx1h0b5v.js → chunk-faee8zgc.js} +1 -1
  149. package/bundle/{chunk-p9mj4zyk.js → chunk-ff548b0j.js} +2 -2
  150. package/bundle/{chunk-bgng3rdj.js → chunk-fhqfqd5v.js} +2 -2
  151. package/bundle/{chunk-zek5c15t.js → chunk-fjbv3jht.js} +1 -1
  152. package/bundle/{chunk-hq9bgnqb.js → chunk-g22e4gw7.js} +1 -1
  153. package/bundle/chunk-g26tersc.js +2 -0
  154. package/bundle/{chunk-s0ptrw0z.js → chunk-g3wvtyw3.js} +1 -1
  155. package/bundle/{chunk-x4pdpka8.js → chunk-g42krp0z.js} +1 -1
  156. package/bundle/chunk-g4ehhdzp.js +2 -0
  157. package/bundle/{chunk-a9y27zd2.js → chunk-gbkz04ke.js} +1 -1
  158. package/bundle/chunk-gd6qpdjw.js +2 -0
  159. package/bundle/chunk-gehn9fd9.js +2 -0
  160. package/bundle/{chunk-0zxwjsvz.js → chunk-ggxzf22k.js} +1 -1
  161. package/bundle/{chunk-45fyv9f1.js → chunk-grnjm8ev.js} +2 -2
  162. package/bundle/{chunk-kzvvvj79.js → chunk-gszvgz76.js} +2 -2
  163. package/bundle/{chunk-g3kd4957.js → chunk-gy21fw82.js} +2 -2
  164. package/bundle/{chunk-cbf1y12x.js → chunk-h62chdmw.js} +1 -1
  165. package/bundle/{chunk-c1g8n10t.js → chunk-ha1w0xzh.js} +1 -1
  166. package/bundle/{chunk-rpfhgncs.js → chunk-has2rz35.js} +1 -1
  167. package/bundle/{chunk-6f8qqbac.js → chunk-hg4039nz.js} +166 -205
  168. package/bundle/chunk-hhax4mxw.js +2 -0
  169. package/bundle/{chunk-087tnr8a.js → chunk-hwrrrbqd.js} +1 -1
  170. package/bundle/chunk-hz3h6e19.js +2 -0
  171. package/bundle/{chunk-yd2emszh.js → chunk-j0bwa5dk.js} +2 -2
  172. package/bundle/{chunk-9b4aqcde.js → chunk-j164q40b.js} +2 -2
  173. package/bundle/{chunk-et5dnymk.js → chunk-j4ad3mde.js} +2 -2
  174. package/bundle/{chunk-qhnpq5gb.js → chunk-j8fcfhr2.js} +2 -2
  175. package/bundle/chunk-j8nkz81m.js +7 -0
  176. package/bundle/{chunk-9ea1n338.js → chunk-j9h1sp4g.js} +2 -2
  177. package/bundle/{chunk-zcp0wx4j.js → chunk-jdx3jshm.js} +2 -2
  178. package/bundle/chunk-jebss7x8.js +2 -0
  179. package/bundle/{chunk-yrfq22a5.js → chunk-jg1ccs3j.js} +1 -1
  180. package/bundle/chunk-jqekpprn.js +3 -0
  181. package/bundle/{chunk-d307vb2d.js → chunk-jqk3v8d6.js} +1 -1
  182. package/bundle/chunk-jvkzdap1.js +2 -0
  183. package/bundle/{chunk-pp9neaaz.js → chunk-jww55nk9.js} +1 -1
  184. package/bundle/{chunk-fvy24yhq.js → chunk-k1nh5sd2.js} +1 -1
  185. package/bundle/chunk-k2g8346v.js +3 -0
  186. package/bundle/chunk-k2vsezeb.js +2 -0
  187. package/bundle/{chunk-wfggztm4.js → chunk-k4gsktts.js} +1 -1
  188. package/bundle/{chunk-qaz100ht.js → chunk-k5q9px67.js} +1 -1
  189. package/bundle/{chunk-mrn44msr.js → chunk-k6y2vw0d.js} +2 -2
  190. package/bundle/chunk-kg8fcv91.js +2 -0
  191. package/bundle/chunk-kgptyf7n.js +3 -0
  192. package/bundle/{chunk-b50t4jc5.js → chunk-khzzmyk2.js} +1 -1
  193. package/bundle/chunk-kjjjrjnb.js +2 -0
  194. package/bundle/{chunk-dbztxdea.js → chunk-kp6gh35c.js} +2 -2
  195. package/bundle/{chunk-g7k6ecb2.js → chunk-kqhczjf6.js} +1 -1
  196. package/bundle/{chunk-jvjq554f.js → chunk-ksme3gj1.js} +1 -1
  197. package/bundle/chunk-m5cfmhwh.js +2 -0
  198. package/bundle/{chunk-4v61ysex.js → chunk-m5dm7a1t.js} +1 -1
  199. package/bundle/{chunk-yr35q7q1.js → chunk-m7ganre7.js} +1 -1
  200. package/bundle/chunk-m7qxxbns.js +2 -0
  201. package/bundle/{chunk-y287zwkr.js → chunk-mh19kwzw.js} +1 -1
  202. package/bundle/{chunk-7my2231h.js → chunk-mhhtf0v3.js} +1 -1
  203. package/bundle/{chunk-grw4gg9j.js → chunk-mjjaezwq.js} +2 -2
  204. package/bundle/{chunk-03mbn7nj.js → chunk-mmjgf680.js} +2 -2
  205. package/bundle/{chunk-jv4th87b.js → chunk-mn9end71.js} +1 -1
  206. package/bundle/{chunk-3h49k2ck.js → chunk-n23d0q00.js} +1 -1
  207. package/bundle/{chunk-mpe8zxc0.js → chunk-n78f8hfk.js} +1 -1
  208. package/bundle/chunk-n8wg5h5p.js +2 -0
  209. package/bundle/{chunk-gr4bctqj.js → chunk-nj1ntakd.js} +2 -2
  210. package/bundle/{chunk-wdaf713t.js → chunk-nrat6ncm.js} +1 -1
  211. package/bundle/{chunk-rm5ntsvn.js → chunk-nty5z2cj.js} +1 -1
  212. package/bundle/{chunk-rp8asmq7.js → chunk-p169ee92.js} +1 -1
  213. package/bundle/{chunk-fbm6qczy.js → chunk-p4027t94.js} +1 -1
  214. package/bundle/{chunk-94qhpkfx.js → chunk-p54bzjtv.js} +1 -1
  215. package/bundle/{chunk-cp39f96a.js → chunk-p5be5ddp.js} +1 -1
  216. package/bundle/{chunk-ngvp6zc2.js → chunk-p6crzjtf.js} +2 -2
  217. package/bundle/chunk-p6hcj3kv.js +2 -0
  218. package/bundle/{chunk-p4ewy9xh.js → chunk-pb30kkbs.js} +6 -6
  219. package/bundle/chunk-pdjafjry.js +3 -0
  220. package/bundle/chunk-pexmns0j.js +2 -0
  221. package/bundle/{chunk-my3cswnp.js → chunk-ph8hn1wt.js} +2 -2
  222. package/bundle/chunk-pkn85169.js +2 -0
  223. package/bundle/{chunk-99148b1k.js → chunk-pmg53fdd.js} +1 -1
  224. package/bundle/{chunk-wf4x5cjc.js → chunk-pr7z5dj8.js} +1 -1
  225. package/bundle/chunk-pt603np4.js +2 -0
  226. package/bundle/{chunk-4mvg7jt1.js → chunk-ptqk1j2r.js} +1 -1
  227. package/bundle/{chunk-a92hh67a.js → chunk-pxm4qvqk.js} +2 -2
  228. package/bundle/{chunk-3qfpw8f6.js → chunk-qey1efpx.js} +1 -1
  229. package/bundle/chunk-qk5bfcv8.js +2 -0
  230. package/bundle/{chunk-9s785py4.js → chunk-qk9x8j8d.js} +1 -1
  231. package/bundle/chunk-qnaw8k98.js +2 -0
  232. package/bundle/{chunk-ks1cs80p.js → chunk-qnvsqnz5.js} +2 -2
  233. package/bundle/{chunk-bcx2vkv4.js → chunk-qp1n7kwe.js} +1 -1
  234. package/bundle/chunk-qr06byhp.js +2 -0
  235. package/bundle/{chunk-gtjn3yc4.js → chunk-qxcyz5hc.js} +2 -2
  236. package/bundle/{chunk-tj3rem3q.js → chunk-r5zy4za0.js} +2 -2
  237. package/bundle/chunk-r6p0bd2w.js +8251 -0
  238. package/bundle/chunk-r7sq3maz.js +2 -0
  239. package/bundle/{chunk-f83wv08n.js → chunk-r9w0thdk.js} +1 -1
  240. package/bundle/chunk-rmgs9nmj.js +2 -0
  241. package/bundle/{chunk-p887g1xj.js → chunk-rn83r0js.js} +1 -1
  242. package/bundle/{chunk-n90eh3e7.js → chunk-rrv0n73b.js} +1 -1
  243. package/bundle/chunk-rv08wm9j.js +2 -0
  244. package/bundle/chunk-rytavefg.js +2 -0
  245. package/bundle/{chunk-yz0pwv2m.js → chunk-s4vx9x1v.js} +1 -1
  246. package/bundle/{chunk-x2cavpa9.js → chunk-sfw5qddj.js} +1 -1
  247. package/bundle/chunk-sh9vjnsh.js +2 -0
  248. package/bundle/{chunk-6avjq7my.js → chunk-smznrv7k.js} +1 -1
  249. package/bundle/{chunk-vtw0wwch.js → chunk-snqa3zsm.js} +3 -3
  250. package/bundle/chunk-st0c5wwc.js +2 -0
  251. package/bundle/{chunk-vqss3e48.js → chunk-t0761rhq.js} +2 -2
  252. package/bundle/{chunk-vqpfpmha.js → chunk-t239rvej.js} +2 -2
  253. package/bundle/{chunk-5js6a6gf.js → chunk-t2n7vgsq.js} +1 -1
  254. package/bundle/chunk-t6yzrmww.js +2 -0
  255. package/bundle/{chunk-bggybm9k.js → chunk-t8c4cs6z.js} +1 -1
  256. package/bundle/chunk-teb3k2sf.js +2 -0
  257. package/bundle/{chunk-ve3np791.js → chunk-tg226j37.js} +1 -1
  258. package/bundle/chunk-thrfabyv.js +35 -0
  259. package/bundle/{chunk-73fz0cf4.js → chunk-tkrwcjkr.js} +2 -2
  260. package/bundle/{chunk-v5z6sx6j.js → chunk-tm34qp8j.js} +1 -1
  261. package/bundle/chunk-tr6rdr6h.js +4 -0
  262. package/bundle/chunk-ts798jvf.js +2 -0
  263. package/bundle/{chunk-a550vst5.js → chunk-twp3mjj0.js} +9 -9
  264. package/bundle/chunk-tx5aj02v.js +2 -0
  265. package/bundle/chunk-v1t51rrq.js +2 -0
  266. package/bundle/{chunk-vk88jj60.js → chunk-v3arcn10.js} +1 -1
  267. package/bundle/{chunk-e586sjb0.js → chunk-vcygx6hs.js} +2 -2
  268. package/bundle/{chunk-86yk21g4.js → chunk-venprxdp.js} +1 -1
  269. package/bundle/{chunk-ywkvq7zb.js → chunk-vf492zs6.js} +1 -1
  270. package/bundle/chunk-vh9ptqn0.js +2 -0
  271. package/bundle/{chunk-w79jzf8w.js → chunk-vnrjk2be.js} +1 -1
  272. package/bundle/{chunk-8q5ns61h.js → chunk-vshycswk.js} +1 -1
  273. package/bundle/{chunk-8e6gx3gg.js → chunk-vsz4s6zt.js} +1 -1
  274. package/bundle/{chunk-vhe92p7a.js → chunk-vygkwwjd.js} +2 -2
  275. package/bundle/{chunk-9rxyq6f9.js → chunk-w46g7kdq.js} +2 -2
  276. package/bundle/{chunk-q128vfc6.js → chunk-w4brava0.js} +1 -1
  277. package/bundle/{chunk-drwqag0f.js → chunk-w4synhfg.js} +1 -1
  278. package/bundle/chunk-w72rctxz.js +2 -0
  279. package/bundle/{chunk-h2bmss2m.js → chunk-w88ve2pm.js} +1 -1
  280. package/bundle/{chunk-mxhb5adq.js → chunk-w9gzfsy7.js} +2 -2
  281. package/bundle/chunk-wbw9zv3h.js +2 -0
  282. package/bundle/{chunk-1sfcxdbw.js → chunk-wkg3c643.js} +2 -2
  283. package/bundle/{chunk-2bgqy6z7.js → chunk-wwdpw27v.js} +1 -1
  284. package/bundle/{chunk-km1n4ttr.js → chunk-wy3a4cab.js} +1 -1
  285. package/bundle/{chunk-tczbhj0e.js → chunk-wyj8cpx5.js} +1 -1
  286. package/bundle/{chunk-3888asr7.js → chunk-x65xbskr.js} +1 -1
  287. package/bundle/chunk-x6mw98c2.js +2 -0
  288. package/bundle/chunk-x749e61j.js +2 -0
  289. package/bundle/{chunk-8rh0femq.js → chunk-xdd3553a.js} +1 -1
  290. package/bundle/{chunk-2jpmxt4v.js → chunk-xdteq9bd.js} +1 -1
  291. package/bundle/{chunk-9y15zjxa.js → chunk-xe69cnsk.js} +1 -1
  292. package/bundle/chunk-xpjhe9gz.js +2 -0
  293. package/bundle/{chunk-8v6x712g.js → chunk-xv5z1bj6.js} +2 -2
  294. package/bundle/{chunk-bk3z400e.js → chunk-y0527cg0.js} +1 -1
  295. package/bundle/{chunk-hrw5rmj1.js → chunk-y29ejqg2.js} +1 -1
  296. package/bundle/{chunk-42r7z6sq.js → chunk-y67kaj0b.js} +1 -1
  297. package/bundle/chunk-y6p57wgh.js +2 -0
  298. package/bundle/chunk-y6xs8v17.js +2 -0
  299. package/bundle/{chunk-zdzxsyxs.js → chunk-y7hgevfv.js} +2 -2
  300. package/bundle/{chunk-k1gddnkm.js → chunk-ybane1en.js} +1 -1
  301. package/bundle/{chunk-k6cbfrzc.js → chunk-yhj01dz9.js} +2 -2
  302. package/bundle/chunk-ym09zrxe.js +3 -0
  303. package/bundle/{chunk-2xqqkf86.js → chunk-ypdt9mmr.js} +2 -2
  304. package/bundle/chunk-ytetprwr.js +2 -0
  305. package/bundle/{chunk-vm1ek7yf.js → chunk-yz25607t.js} +1 -1
  306. package/bundle/{chunk-ypcc3cnb.js → chunk-z1932c3f.js} +1 -1
  307. package/bundle/chunk-z3xsfpc6.js +2 -0
  308. package/bundle/{chunk-6ypafpg8.js → chunk-z6sbjvtv.js} +1 -1
  309. package/bundle/{chunk-ta7mfkms.js → chunk-zc0cdvcv.js} +2 -2
  310. package/bundle/chunk-zn5pw733.js +2 -0
  311. package/bundle/chunk-ztn9e8g1.js +2 -0
  312. package/bundle/{chunk-ywdtp534.js → chunk-ztyy3ga3.js} +2 -2
  313. package/bundle/chunk-zxwvnmea.js +2 -0
  314. package/bundle/chunk-zzznad30.js +2 -0
  315. package/bundle/index.js +18 -18
  316. package/bundle/parser.worker.js +2 -2
  317. package/bundle/qffi-compat.so +0 -0
  318. package/bundle/qffi.node +0 -0
  319. package/bundle/worker.js +1 -1
  320. package/package.json +1 -1
  321. package/bundle/chunk-0cdtq1r3.js +0 -2
  322. package/bundle/chunk-0ych0f5w.js +0 -2
  323. package/bundle/chunk-0yjdatm6.js +0 -3
  324. package/bundle/chunk-0ykeedfm.js +0 -2
  325. package/bundle/chunk-22hr3ndh.js +0 -2
  326. package/bundle/chunk-23tyxyyj.js +0 -2
  327. package/bundle/chunk-2517cev8.js +0 -2
  328. package/bundle/chunk-28g1ndpx.js +0 -2
  329. package/bundle/chunk-2avxtbv3.js +0 -2
  330. package/bundle/chunk-2faah8w1.js +0 -2
  331. package/bundle/chunk-2qk0k2eb.js +0 -2
  332. package/bundle/chunk-3c3xzz0g.js +0 -3
  333. package/bundle/chunk-42wdfks8.js +0 -2
  334. package/bundle/chunk-44y6dffe.js +0 -2
  335. package/bundle/chunk-4f19vqxf.js +0 -2
  336. package/bundle/chunk-4m3k1atq.js +0 -2
  337. package/bundle/chunk-4n2ytddp.js +0 -2
  338. package/bundle/chunk-4yg42p6y.js +0 -2
  339. package/bundle/chunk-4zx3ze68.js +0 -2
  340. package/bundle/chunk-637sjdzq.js +0 -2
  341. package/bundle/chunk-6h8f89tt.js +0 -2
  342. package/bundle/chunk-6sjj203r.js +0 -2
  343. package/bundle/chunk-79aka9xe.js +0 -2
  344. package/bundle/chunk-7nqdhe7x.js +0 -2
  345. package/bundle/chunk-7q003wdd.js +0 -4
  346. package/bundle/chunk-7x88b2n2.js +0 -2
  347. package/bundle/chunk-8apeexas.js +0 -3
  348. package/bundle/chunk-8mthftwc.js +0 -2
  349. package/bundle/chunk-8wdara3b.js +0 -2
  350. package/bundle/chunk-8xhzpnph.js +0 -2
  351. package/bundle/chunk-96sqbyvf.js +0 -2
  352. package/bundle/chunk-9akz8w0d.js +0 -2
  353. package/bundle/chunk-9etpppyv.js +0 -3
  354. package/bundle/chunk-9pnpmtb2.js +0 -2
  355. package/bundle/chunk-a5pbvp1f.js +0 -7
  356. package/bundle/chunk-a7p0x4sw.js +0 -2
  357. package/bundle/chunk-ae0a496j.js +0 -2
  358. package/bundle/chunk-aq1j9y18.js +0 -2
  359. package/bundle/chunk-aq8nz9hp.js +0 -2
  360. package/bundle/chunk-b4zy78be.js +0 -2
  361. package/bundle/chunk-basjzwqp.js +0 -2
  362. package/bundle/chunk-bhetpmgq.js +0 -3
  363. package/bundle/chunk-bm7xpjh6.js +0 -2
  364. package/bundle/chunk-c1bw1q75.js +0 -2
  365. package/bundle/chunk-c2k556rk.js +0 -2
  366. package/bundle/chunk-c47vp7ne.js +0 -2
  367. package/bundle/chunk-cbhgf058.js +0 -2
  368. package/bundle/chunk-d41mg7at.js +0 -2
  369. package/bundle/chunk-d50kpss6.js +0 -2
  370. package/bundle/chunk-day0rb5p.js +0 -2
  371. package/bundle/chunk-dp7cww4v.js +0 -2
  372. package/bundle/chunk-dy31mchw.js +0 -3
  373. package/bundle/chunk-e5rda9mx.js +0 -2
  374. package/bundle/chunk-e999xtfj.js +0 -2
  375. package/bundle/chunk-ehfxypks.js +0 -7610
  376. package/bundle/chunk-eyr0vf92.js +0 -2
  377. package/bundle/chunk-gbmmbhy4.js +0 -2
  378. package/bundle/chunk-gp877cq5.js +0 -2
  379. package/bundle/chunk-h4f582d6.js +0 -2
  380. package/bundle/chunk-h57c6ne3.js +0 -2
  381. package/bundle/chunk-hk8vvc10.js +0 -2
  382. package/bundle/chunk-hnrqhcgq.js +0 -2
  383. package/bundle/chunk-hwavzxdm.js +0 -2
  384. package/bundle/chunk-hwnc2sa5.js +0 -2
  385. package/bundle/chunk-hy86wfad.js +0 -2
  386. package/bundle/chunk-j17421hz.js +0 -2
  387. package/bundle/chunk-j2gvpa15.js +0 -2
  388. package/bundle/chunk-j7n8khk7.js +0 -2
  389. package/bundle/chunk-jkh98wby.js +0 -2
  390. package/bundle/chunk-k5a652s4.js +0 -2
  391. package/bundle/chunk-k6w32q2p.js +0 -2
  392. package/bundle/chunk-kghwk0yh.js +0 -2
  393. package/bundle/chunk-kh8de8re.js +0 -2
  394. package/bundle/chunk-mce8aa9y.js +0 -2
  395. package/bundle/chunk-me1ja46g.js +0 -2
  396. package/bundle/chunk-mgadsp7r.js +0 -2
  397. package/bundle/chunk-n0k0pp4k.js +0 -2
  398. package/bundle/chunk-n393nnh5.js +0 -2
  399. package/bundle/chunk-n5vyed7w.js +0 -2
  400. package/bundle/chunk-pasm65wq.js +0 -2
  401. package/bundle/chunk-phpmxjf8.js +0 -2
  402. package/bundle/chunk-q2q3dmg3.js +0 -2
  403. package/bundle/chunk-qvzvxsjw.js +0 -2
  404. package/bundle/chunk-racrb1b3.js +0 -2
  405. package/bundle/chunk-s0c0t6qr.js +0 -5
  406. package/bundle/chunk-sghy9s7m.js +0 -2
  407. package/bundle/chunk-skpkjnyy.js +0 -2
  408. package/bundle/chunk-skxhg212.js +0 -2
  409. package/bundle/chunk-snt4kwab.js +0 -2
  410. package/bundle/chunk-sq47t8f1.js +0 -2
  411. package/bundle/chunk-sqhgnvvs.js +0 -2
  412. package/bundle/chunk-t114r59h.js +0 -2
  413. package/bundle/chunk-t1f56k0j.js +0 -2
  414. package/bundle/chunk-t69jx6fz.js +0 -2
  415. package/bundle/chunk-tsb3jsx4.js +0 -2
  416. package/bundle/chunk-ttpbpzbh.js +0 -2
  417. package/bundle/chunk-v667egp5.js +0 -2
  418. package/bundle/chunk-vrv67tt0.js +0 -2
  419. package/bundle/chunk-wcx7hc2p.js +0 -635
  420. package/bundle/chunk-wv8qx8sa.js +0 -2
  421. package/bundle/chunk-xxrtr6sd.js +0 -2
  422. package/bundle/chunk-y2ptjam9.js +0 -3
  423. package/bundle/chunk-y6h35v4a.js +0 -2
  424. package/bundle/chunk-y72p79v2.js +0 -2
  425. package/bundle/chunk-y8eggnrr.js +0 -2
  426. package/bundle/chunk-y9q0f9qz.js +0 -2
  427. package/bundle/chunk-yck5h49c.js +0 -2
package/bundle/index.js CHANGED
@@ -1,20 +1,20 @@
1
1
  // @bun
2
- import{If as eD,Jf as k0}from"./chunk-45fyv9f1.js";import{Lf as y0,Mf as s0,Qf as r0,Rf as a0}from"./chunk-vyh300ac.js";import{Uf as Ku}from"./chunk-t1jgx17a.js";import{qs as l0}from"./chunk-kmwy6c9g.js";import{rs as i0}from"./chunk-73fz0cf4.js";import"./chunk-0cdtq1r3.js";import{Ts as g0,us as Lu,vs as d0,ws as o0,xs as hF}from"./chunk-xmjntwjc.js";import{Ys as GF}from"./chunk-tj3rem3q.js";import"./chunk-7q003wdd.js";import"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import{LO as p2,MO as c2,PO as p}from"./chunk-f83wv08n.js";var eF=c2((R3,aF)=>{aF.exports=function(u){if(u===void 0)u=2;if(u>=Error.stackTraceLimit)throw TypeError("getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `"+u+"` and Error.stackTraceLimit was: `"+Error.stackTraceLimit+"`");var F=Error.prepareStackTrace;Error.prepareStackTrace=function(C,f){return f};var E=Error().stack;if(Error.prepareStackTrace=F,E!==null&&typeof E==="object")return E[u]?E[u].getFileName():void 0}});import{notStrictEqual as v2,strictEqual as m2}from"assert";var F2={right:B2,center:f2};class ZF{constructor(D){var u;this.width=D.width,this.wrap=(u=D.wrap)!==null&&u!==void 0?u:!0,this.rows=[]}span(...D){let u=this.div(...D);u.span=!0}resetOutput(){this.rows=[]}div(...D){if(D.length===0)this.div("");if(this.wrap&&this.shouldApplyLayoutDSL(...D)&&typeof D[0]==="string")return this.applyLayoutDSL(D[0]);let u=D.map((F)=>{if(typeof F==="string")return this.colFromString(F);return F});return this.rows.push(u),u}shouldApplyLayoutDSL(...D){return D.length===1&&typeof D[0]==="string"&&/[\t\n]/.test(D[0])}applyLayoutDSL(D){let u=D.split(`
2
+ import{Tf as eD,Uf as g0}from"./chunk-grnjm8ev.js";import{$f as a0,Wf as s0,Xf as r0,ag as e0}from"./chunk-1rtx2zsc.js";import{dg as Ku}from"./chunk-eg3syjtv.js";import{$r as l0}from"./chunk-7vmx8bg9.js";import{as as d0}from"./chunk-tkrwcjkr.js";import"./chunk-ztn9e8g1.js";import{Cs as y0,ds as Lu,es as o0,fs as k0,gs as hF}from"./chunk-09geev0j.js";import{Hs as GF}from"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import{sO as v2,tO as p2,wO as p}from"./chunk-r9w0thdk.js";var eF=p2((j3,aF)=>{aF.exports=function(u){if(u===void 0)u=2;if(u>=Error.stackTraceLimit)throw TypeError("getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `"+u+"` and Error.stackTraceLimit was: `"+Error.stackTraceLimit+"`");var F=Error.prepareStackTrace;Error.prepareStackTrace=function(C,f){return f};var E=Error().stack;if(Error.prepareStackTrace=F,E!==null&&typeof E==="object")return E[u]?E[u].getFileName():void 0}});import{notStrictEqual as m2,strictEqual as i2}from"assert";var E2={right:f2,center:$2};class XF{constructor(D){var u;this.width=D.width,this.wrap=(u=D.wrap)!==null&&u!==void 0?u:!0,this.rows=[]}span(...D){let u=this.div(...D);u.span=!0}resetOutput(){this.rows=[]}div(...D){if(D.length===0)this.div("");if(this.wrap&&this.shouldApplyLayoutDSL(...D)&&typeof D[0]==="string")return this.applyLayoutDSL(D[0]);let u=D.map((F)=>{if(typeof F==="string")return this.colFromString(F);return F});return this.rows.push(u),u}shouldApplyLayoutDSL(...D){return D.length===1&&typeof D[0]==="string"&&/[\t\n]/.test(D[0])}applyLayoutDSL(D){let u=D.split(`
3
3
  `).map((E)=>E.split("\t")),F=0;return u.forEach((E)=>{if(E.length>1&&JD.stringWidth(E[0])>F)F=Math.min(Math.floor(this.width*0.5),JD.stringWidth(E[0]))}),u.forEach((E)=>{this.div(...E.map((C,f)=>{return{text:C.trim(),padding:this.measurePadding(C),width:f===0&&E.length>1?F:void 0}}))}),this.rows[this.rows.length-1]}colFromString(D){return{text:D,padding:this.measurePadding(D)}}measurePadding(D){let u=JD.stripAnsi(D);return[0,u.match(/\s*$/)[0].length,0,u.match(/^\s*/)[0].length]}toString(){let D=[];return this.rows.forEach((u)=>{this.rowToString(u,D)}),D.filter((u)=>!u.hidden).map((u)=>u.text).join(`
4
- `)}rowToString(D,u){return this.rasterize(D).forEach((F,E)=>{let C="";F.forEach((f,$)=>{let{width:G}=D[$],J=this.negatePadding(D[$]),Y=f;if(J>JD.stringWidth(f))Y+=" ".repeat(J-JD.stringWidth(f));if(D[$].align&&D[$].align!=="left"&&this.wrap){let Q=F2[D[$].align];if(Y=Q(Y,J),JD.stringWidth(Y)<J)Y+=" ".repeat((G||0)-JD.stringWidth(Y)-1)}let U=D[$].padding||[0,0,0,0];if(U[3])C+=" ".repeat(U[3]);if(C+=XF(D[$],Y,"| "),C+=Y,C+=XF(D[$],Y," |"),U[1])C+=" ".repeat(U[1]);if(E===0&&u.length>0)C=this.renderInline(C,u[u.length-1])}),u.push({text:C.replace(/ +$/,""),span:D.span})}),u}renderInline(D,u){let F=D.match(/^ */),E=F?F[0].length:0,C=u.text,f=JD.stringWidth(C.trimRight());if(!u.span)return D;if(!this.wrap)return u.hidden=!0,C+D;if(E<f)return D;return u.hidden=!0,C.trimRight()+" ".repeat(E-f)+D.trimLeft()}rasterize(D){let u=[],F=this.columnWidths(D),E;return D.forEach((C,f)=>{if(C.width=F[f],this.wrap)E=JD.wrap(C.text,this.negatePadding(C),{hard:!0}).split(`
4
+ `)}rowToString(D,u){return this.rasterize(D).forEach((F,E)=>{let C="";F.forEach((f,$)=>{let{width:G}=D[$],J=this.negatePadding(D[$]),Y=f;if(J>JD.stringWidth(f))Y+=" ".repeat(J-JD.stringWidth(f));if(D[$].align&&D[$].align!=="left"&&this.wrap){let Q=E2[D[$].align];if(Y=Q(Y,J),JD.stringWidth(Y)<J)Y+=" ".repeat((G||0)-JD.stringWidth(Y)-1)}let U=D[$].padding||[0,0,0,0];if(U[3])C+=" ".repeat(U[3]);if(C+=ZF(D[$],Y,"| "),C+=Y,C+=ZF(D[$],Y," |"),U[1])C+=" ".repeat(U[1]);if(E===0&&u.length>0)C=this.renderInline(C,u[u.length-1])}),u.push({text:C.replace(/ +$/,""),span:D.span})}),u}renderInline(D,u){let F=D.match(/^ */),E=F?F[0].length:0,C=u.text,f=JD.stringWidth(C.trimRight());if(!u.span)return D;if(!this.wrap)return u.hidden=!0,C+D;if(E<f)return D;return u.hidden=!0,C.trimRight()+" ".repeat(E-f)+D.trimLeft()}rasterize(D){let u=[],F=this.columnWidths(D),E;return D.forEach((C,f)=>{if(C.width=F[f],this.wrap)E=JD.wrap(C.text,this.negatePadding(C),{hard:!0}).split(`
5
5
  `);else E=C.text.split(`
6
- `);if(C.border)E.unshift("."+"-".repeat(this.negatePadding(C)+2)+"."),E.push("'"+"-".repeat(this.negatePadding(C)+2)+"'");if(C.padding)E.unshift(...Array(C.padding[0]||0).fill("")),E.push(...Array(C.padding[2]||0).fill(""));E.forEach(($,G)=>{if(!u[G])u.push([]);let J=u[G];for(let Y=0;Y<f;Y++)if(J[Y]===void 0)J.push("");J.push($)})}),u}negatePadding(D){let u=D.width||0;if(D.padding)u-=(D.padding[3]||0)+(D.padding[1]||0);if(D.border)u-=4;return u}columnWidths(D){if(!this.wrap)return D.map((f)=>{return f.width||JD.stringWidth(f.text)});let u=D.length,F=this.width,E=D.map((f)=>{if(f.width)return u--,F-=f.width,f.width;return}),C=u?Math.floor(F/u):0;return E.map((f,$)=>{if(f===void 0)return Math.max(C,E2(D[$]));return f})}}function XF(D,u,F){if(D.border){if(/[.']-+[.']/.test(u))return"";if(u.trim().length!==0)return F;return" "}return""}function E2(D){let u=D.padding||[],F=1+(u[3]||0)+(u[1]||0);if(D.border)return F+4;return F}function C2(){if(typeof process==="object"&&process.stdout&&process.stdout.columns)return process.stdout.columns;return 80}function B2(D,u){D=D.trim();let F=JD.stringWidth(D);if(F<u)return" ".repeat(u-F)+D;return D}function f2(D,u){D=D.trim();let F=JD.stringWidth(D);if(F>=u)return D;return" ".repeat(u-F>>1)+D}var JD;function JF(D,u){return JD=u,new ZF({width:(D===null||D===void 0?void 0:D.width)||C2(),wrap:D===null||D===void 0?void 0:D.wrap})}var QF=161,OF=1114109,TF=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],YF=12288,WF=65510,UF=[12288,12288,65281,65376,65504,65510];var NF=4352,RF=262141,Su=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];var Xu=(D,u)=>{let F=0,E=Math.floor(D.length/2)-1;while(F<=E){let C=Math.floor((F+E)/2),f=C*2;if(u<D[f])E=C-1;else if(u>D[f+1])F=C+1;else return!0}return!1};var jF=19968,[$2,h2]=z2(Su);function z2(D){let u=D[0],F=D[1];for(let E=0;E<D.length;E+=2){let C=D[E],f=D[E+1];if(jF>=C&&jF<=f)return[C,f];if(f-C>F-u)u=C,F=f}return[u,F]}var qF=(D)=>{if(D<QF||D>OF)return!1;return Xu(TF,D)},HF=(D)=>{if(D<YF||D>WF)return!1;return Xu(UF,D)};var IF=(D)=>{if(D>=$2&&D<=h2)return!0;if(D<NF||D>RF)return!1;return Xu(Su,D)};function G2(D){if(!Number.isSafeInteger(D))throw TypeError(`Expected a code point, got \`${typeof D}\`.`)}function VF(D,{ambiguousAsWide:u=!1}={}){if(G2(D),HF(D)||IF(D)||u&&qF(D))return 2;return 1}var _F=()=>{return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g};var M2=new Intl.Segmenter,X2=/^\p{Default_Ignorable_Code_Point}$/u;function jD(D,u={}){if(typeof D!=="string"||D.length===0)return 0;let{ambiguousIsNarrow:F=!0,countAnsiEscapeCodes:E=!1}=u;if(!E)D=eD(D);if(D.length===0)return 0;let C=0,f={ambiguousAsWide:!F};for(let{segment:$}of M2.segment(D)){let G=$.codePointAt(0);if(G<=31||G>=127&&G<=159)continue;if(G>=8203&&G<=8207||G===65279)continue;if(G>=768&&G<=879||G>=6832&&G<=6911||G>=7616&&G<=7679||G>=8400&&G<=8447||G>=65056&&G<=65071)continue;if(G>=55296&&G<=57343)continue;if(G>=65024&&G<=65039)continue;if(X2.test($))continue;if(_F().test($)){C+=2;continue}C+=VF(G,f)}return C}var KF=(D=0)=>(u)=>`\x1B[${u+D}m`,LF=(D=0)=>(u)=>`\x1B[${38+D};5;${u}m`,AF=(D=0)=>(u,F,E)=>`\x1B[${38+D};2;${u};${F};${E}m`,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},n8=Object.keys(s.modifier),Z2=Object.keys(s.color),J2=Object.keys(s.bgColor),c8=[...Z2,...J2];function Q2(){let D=new Map;for(let[u,F]of Object.entries(s)){for(let[E,C]of Object.entries(F))s[E]={open:`\x1B[${C[0]}m`,close:`\x1B[${C[1]}m`},F[E]=s[E],D.set(C[0],C[1]);Object.defineProperty(s,u,{value:F,enumerable:!1})}return Object.defineProperty(s,"codes",{value:D,enumerable:!1}),s.color.close="\x1B[39m",s.bgColor.close="\x1B[49m",s.color.ansi=KF(),s.color.ansi256=LF(),s.color.ansi16m=AF(),s.bgColor.ansi=KF(10),s.bgColor.ansi256=LF(10),s.bgColor.ansi16m=AF(10),Object.defineProperties(s,{rgbToAnsi256:{value(u,F,E){if(u===F&&F===E){if(u<8)return 16;if(u>248)return 231;return Math.round((u-8)/247*24)+232}return 16+36*Math.round(u/255*5)+6*Math.round(F/255*5)+Math.round(E/255*5)},enumerable:!1},hexToRgb:{value(u){let F=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!F)return[0,0,0];let[E]=F;if(E.length===3)E=[...E].map((f)=>f+f).join("");let C=Number.parseInt(E,16);return[C>>16&255,C>>8&255,C&255]},enumerable:!1},hexToAnsi256:{value:(u)=>s.rgbToAnsi256(...s.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value(u){if(u<8)return 30+u;if(u<16)return 90+(u-8);let F,E,C;if(u>=232)F=((u-232)*10+8)/255,E=F,C=F;else{u-=16;let G=u%36;F=Math.floor(u/36)/5,E=Math.floor(G/6)/5,C=G%6/5}let f=Math.max(F,E,C)*2;if(f===0)return 30;let $=30+(Math.round(C)<<2|Math.round(E)<<1|Math.round(F));if(f===2)$+=60;return $},enumerable:!1},rgbToAnsi:{value:(u,F,E)=>s.ansi256ToAnsi(s.rgbToAnsi256(u,F,E)),enumerable:!1},hexToAnsi:{value:(u)=>s.ansi256ToAnsi(s.hexToAnsi256(u)),enumerable:!1}}),s}var O2=Q2(),SF=O2;var Ju=new Set(["\x1B","\x9B"]),T2=39,Pu="\x07",wF="[",Y2="]",bF="m",Zu=`${Y2}8;;`,xF=(D)=>`${Ju.values().next().value}${wF}${D}${bF}`,PF=(D)=>`${Ju.values().next().value}${Zu}${D}${Pu}`,W2=(D)=>D.split(" ").map((u)=>jD(u)),xu=(D,u,F)=>{let E=[...u],C=!1,f=!1,$=jD(eD(D.at(-1)));for(let[G,J]of E.entries()){let Y=jD(J);if($+Y<=F)D[D.length-1]+=J;else D.push(J),$=0;if(Ju.has(J))C=!0,f=E.slice(G+1,G+1+Zu.length).join("")===Zu;if(C){if(f){if(J===Pu)C=!1,f=!1}else if(J===bF)C=!1;continue}if($+=Y,$===F&&G<E.length-1)D.push(""),$=0}if(!$&&D.at(-1).length>0&&D.length>1)D[D.length-2]+=D.pop()},U2=(D)=>{let u=D.split(" "),F=u.length;while(F>0){if(jD(u[F-1])>0)break;F--}if(F===u.length)return D;return u.slice(0,F).join(" ")+u.slice(F).join("")},N2=(D,u,F={})=>{if(F.trim!==!1&&D.trim()==="")return"";let E="",C,f,$=W2(D),G=[""];for(let[Q,X]of D.split(" ").entries()){if(F.trim!==!1)G[G.length-1]=G.at(-1).trimStart();let O=jD(G.at(-1));if(Q!==0){if(O>=u&&(F.wordWrap===!1||F.trim===!1))G.push(""),O=0;if(O>0||F.trim===!1)G[G.length-1]+=" ",O++}if(F.hard&&$[Q]>u){let W=u-O,Z=1+Math.floor(($[Q]-W-1)/u);if(Math.floor(($[Q]-1)/u)<Z)G.push("");xu(G,X,u);continue}if(O+$[Q]>u&&O>0&&$[Q]>0){if(F.wordWrap===!1&&O<u){xu(G,X,u);continue}G.push("")}if(O+$[Q]>u&&F.wordWrap===!1){xu(G,X,u);continue}G[G.length-1]+=X}if(F.trim!==!1)G=G.map((Q)=>U2(Q));let J=G.join(`
7
- `),Y=[...J],U=0;for(let[Q,X]of Y.entries()){if(E+=X,Ju.has(X)){let{groups:W}=new RegExp(`(?:\\${wF}(?<code>\\d+)m|\\${Zu}(?<uri>.*)${Pu})`).exec(J.slice(U))||{groups:{}};if(W.code!==void 0){let Z=Number.parseFloat(W.code);C=Z===T2?void 0:Z}else if(W.uri!==void 0)f=W.uri.length===0?void 0:W.uri}let O=SF.codes.get(Number(C));if(Y[Q+1]===`
8
- `){if(f)E+=PF("");if(C&&O)E+=xF(O)}else if(X===`
9
- `){if(C&&O)E+=xF(C);if(f)E+=PF(f)}U+=X.length}return E};function wu(D,u,F){return String(D).normalize().replaceAll(`\r
6
+ `);if(C.border)E.unshift("."+"-".repeat(this.negatePadding(C)+2)+"."),E.push("'"+"-".repeat(this.negatePadding(C)+2)+"'");if(C.padding)E.unshift(...Array(C.padding[0]||0).fill("")),E.push(...Array(C.padding[2]||0).fill(""));E.forEach(($,G)=>{if(!u[G])u.push([]);let J=u[G];for(let Y=0;Y<f;Y++)if(J[Y]===void 0)J.push("");J.push($)})}),u}negatePadding(D){let u=D.width||0;if(D.padding)u-=(D.padding[3]||0)+(D.padding[1]||0);if(D.border)u-=4;return u}columnWidths(D){if(!this.wrap)return D.map((f)=>{return f.width||JD.stringWidth(f.text)});let u=D.length,F=this.width,E=D.map((f)=>{if(f.width)return u--,F-=f.width,f.width;return}),C=u?Math.floor(F/u):0;return E.map((f,$)=>{if(f===void 0)return Math.max(C,C2(D[$]));return f})}}function ZF(D,u,F){if(D.border){if(/[.']-+[.']/.test(u))return"";if(u.trim().length!==0)return F;return" "}return""}function C2(D){let u=D.padding||[],F=1+(u[3]||0)+(u[1]||0);if(D.border)return F+4;return F}function B2(){if(typeof process==="object"&&process.stdout&&process.stdout.columns)return process.stdout.columns;return 80}function f2(D,u){D=D.trim();let F=JD.stringWidth(D);if(F<u)return" ".repeat(u-F)+D;return D}function $2(D,u){D=D.trim();let F=JD.stringWidth(D);if(F>=u)return D;return" ".repeat(u-F>>1)+D}var JD;function JF(D,u){return JD=u,new XF({width:(D===null||D===void 0?void 0:D.width)||B2(),wrap:D===null||D===void 0?void 0:D.wrap})}var QF=161,OF=1114109,TF=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],YF=12288,WF=65510,UF=[12288,12288,65281,65376,65504,65510];var NF=4352,RF=262141,Su=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];var Zu=(D,u)=>{let F=0,E=Math.floor(D.length/2)-1;while(F<=E){let C=Math.floor((F+E)/2),f=C*2;if(u<D[f])E=C-1;else if(u>D[f+1])F=C+1;else return!0}return!1};var jF=19968,[h2,z2]=G2(Su);function G2(D){let u=D[0],F=D[1];for(let E=0;E<D.length;E+=2){let C=D[E],f=D[E+1];if(jF>=C&&jF<=f)return[C,f];if(f-C>F-u)u=C,F=f}return[u,F]}var qF=(D)=>{if(D<QF||D>OF)return!1;return Zu(TF,D)},HF=(D)=>{if(D<YF||D>WF)return!1;return Zu(UF,D)};var IF=(D)=>{if(D>=h2&&D<=z2)return!0;if(D<NF||D>RF)return!1;return Zu(Su,D)};function M2(D){if(!Number.isSafeInteger(D))throw TypeError(`Expected a code point, got \`${typeof D}\`.`)}function VF(D,{ambiguousAsWide:u=!1}={}){if(M2(D),HF(D)||IF(D)||u&&qF(D))return 2;return 1}var _F=()=>{return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g};var Z2=new Intl.Segmenter,X2=/^\p{Default_Ignorable_Code_Point}$/u;function jD(D,u={}){if(typeof D!=="string"||D.length===0)return 0;let{ambiguousIsNarrow:F=!0,countAnsiEscapeCodes:E=!1}=u;if(!E)D=eD(D);if(D.length===0)return 0;let C=0,f={ambiguousAsWide:!F};for(let{segment:$}of Z2.segment(D)){let G=$.codePointAt(0);if(G<=31||G>=127&&G<=159)continue;if(G>=8203&&G<=8207||G===65279)continue;if(G>=768&&G<=879||G>=6832&&G<=6911||G>=7616&&G<=7679||G>=8400&&G<=8447||G>=65056&&G<=65071)continue;if(G>=55296&&G<=57343)continue;if(G>=65024&&G<=65039)continue;if(X2.test($))continue;if(_F().test($)){C+=2;continue}C+=VF(G,f)}return C}var KF=(D=0)=>(u)=>`\x1B[${u+D}m`,LF=(D=0)=>(u)=>`\x1B[${38+D};5;${u}m`,AF=(D=0)=>(u,F,E)=>`\x1B[${38+D};2;${u};${F};${E}m`,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},c8=Object.keys(s.modifier),J2=Object.keys(s.color),Q2=Object.keys(s.bgColor),p8=[...J2,...Q2];function O2(){let D=new Map;for(let[u,F]of Object.entries(s)){for(let[E,C]of Object.entries(F))s[E]={open:`\x1B[${C[0]}m`,close:`\x1B[${C[1]}m`},F[E]=s[E],D.set(C[0],C[1]);Object.defineProperty(s,u,{value:F,enumerable:!1})}return Object.defineProperty(s,"codes",{value:D,enumerable:!1}),s.color.close="\x1B[39m",s.bgColor.close="\x1B[49m",s.color.ansi=KF(),s.color.ansi256=LF(),s.color.ansi16m=AF(),s.bgColor.ansi=KF(10),s.bgColor.ansi256=LF(10),s.bgColor.ansi16m=AF(10),Object.defineProperties(s,{rgbToAnsi256:{value(u,F,E){if(u===F&&F===E){if(u<8)return 16;if(u>248)return 231;return Math.round((u-8)/247*24)+232}return 16+36*Math.round(u/255*5)+6*Math.round(F/255*5)+Math.round(E/255*5)},enumerable:!1},hexToRgb:{value(u){let F=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!F)return[0,0,0];let[E]=F;if(E.length===3)E=[...E].map((f)=>f+f).join("");let C=Number.parseInt(E,16);return[C>>16&255,C>>8&255,C&255]},enumerable:!1},hexToAnsi256:{value:(u)=>s.rgbToAnsi256(...s.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value(u){if(u<8)return 30+u;if(u<16)return 90+(u-8);let F,E,C;if(u>=232)F=((u-232)*10+8)/255,E=F,C=F;else{u-=16;let G=u%36;F=Math.floor(u/36)/5,E=Math.floor(G/6)/5,C=G%6/5}let f=Math.max(F,E,C)*2;if(f===0)return 30;let $=30+(Math.round(C)<<2|Math.round(E)<<1|Math.round(F));if(f===2)$+=60;return $},enumerable:!1},rgbToAnsi:{value:(u,F,E)=>s.ansi256ToAnsi(s.rgbToAnsi256(u,F,E)),enumerable:!1},hexToAnsi:{value:(u)=>s.ansi256ToAnsi(s.hexToAnsi256(u)),enumerable:!1}}),s}var T2=O2(),SF=T2;var Ju=new Set(["\x1B","\x9B"]),Y2=39,Pu="\x07",wF="[",W2="]",bF="m",Xu=`${W2}8;;`,xF=(D)=>`${Ju.values().next().value}${wF}${D}${bF}`,PF=(D)=>`${Ju.values().next().value}${Xu}${D}${Pu}`,U2=(D)=>D.split(" ").map((u)=>jD(u)),xu=(D,u,F)=>{let E=[...u],C=!1,f=!1,$=jD(eD(D.at(-1)));for(let[G,J]of E.entries()){let Y=jD(J);if($+Y<=F)D[D.length-1]+=J;else D.push(J),$=0;if(Ju.has(J))C=!0,f=E.slice(G+1,G+1+Xu.length).join("")===Xu;if(C){if(f){if(J===Pu)C=!1,f=!1}else if(J===bF)C=!1;continue}if($+=Y,$===F&&G<E.length-1)D.push(""),$=0}if(!$&&D.at(-1).length>0&&D.length>1)D[D.length-2]+=D.pop()},N2=(D)=>{let u=D.split(" "),F=u.length;while(F>0){if(jD(u[F-1])>0)break;F--}if(F===u.length)return D;return u.slice(0,F).join(" ")+u.slice(F).join("")},R2=(D,u,F={})=>{if(F.trim!==!1&&D.trim()==="")return"";let E="",C,f,$=U2(D),G=[""];for(let[Q,Z]of D.split(" ").entries()){if(F.trim!==!1)G[G.length-1]=G.at(-1).trimStart();let O=jD(G.at(-1));if(Q!==0){if(O>=u&&(F.wordWrap===!1||F.trim===!1))G.push(""),O=0;if(O>0||F.trim===!1)G[G.length-1]+=" ",O++}if(F.hard&&$[Q]>u){let W=u-O,X=1+Math.floor(($[Q]-W-1)/u);if(Math.floor(($[Q]-1)/u)<X)G.push("");xu(G,Z,u);continue}if(O+$[Q]>u&&O>0&&$[Q]>0){if(F.wordWrap===!1&&O<u){xu(G,Z,u);continue}G.push("")}if(O+$[Q]>u&&F.wordWrap===!1){xu(G,Z,u);continue}G[G.length-1]+=Z}if(F.trim!==!1)G=G.map((Q)=>N2(Q));let J=G.join(`
7
+ `),Y=[...J],U=0;for(let[Q,Z]of Y.entries()){if(E+=Z,Ju.has(Z)){let{groups:W}=new RegExp(`(?:\\${wF}(?<code>\\d+)m|\\${Xu}(?<uri>.*)${Pu})`).exec(J.slice(U))||{groups:{}};if(W.code!==void 0){let X=Number.parseFloat(W.code);C=X===Y2?void 0:X}else if(W.uri!==void 0)f=W.uri.length===0?void 0:W.uri}let O=SF.codes.get(Number(C));if(Y[Q+1]===`
8
+ `){if(f)E+=PF("");if(C&&O)E+=xF(O)}else if(Z===`
9
+ `){if(C&&O)E+=xF(C);if(f)E+=PF(f)}U+=Z.length}return E};function wu(D,u,F){return String(D).normalize().replaceAll(`\r
10
10
  `,`
11
11
  `).split(`
12
- `).map((E)=>N2(E,u,F)).join(`
13
- `)}function bu(D){return JF(D,{stringWidth:jD,stripAnsi:eD,wrap:wu})}import{dirname as tF,resolve as nF}from"path";import{readdirSync as R2,statSync as j2}from"fs";function tu(D,u){let F=nF(".",D),E;if(!j2(F).isDirectory())F=tF(F);while(!0){if(E=u(F,R2(F)),E)return nF(F,E);if(F=tF(E=F),E===F)break}}import{inspect as i2}from"util";import{fileURLToPath as u0}from"url";import{format as I2}from"util";import{normalize as V2,resolve as _2}from"path";function nD(D){if(!(D!==D.toLowerCase()&&D!==D.toUpperCase()))D=D.toLowerCase();if(D.indexOf("-")===-1&&D.indexOf("_")===-1)return D;else{let F="",E=!1,C=D.match(/^-+/);for(let f=C?C[0].length:0;f<D.length;f++){let $=D.charAt(f);if(E)E=!1,$=$.toUpperCase();if(f!==0&&($==="-"||$==="_"))E=!0;else if($!=="-"&&$!=="_")F+=$}return F}}function Qu(D,u){let F=D.toLowerCase();u=u||"-";let E="";for(let C=0;C<D.length;C++){let f=F.charAt(C),$=D.charAt(C);if(f!==$&&C>0)E+=`${u}${F.charAt(C)}`;else E+=$}return E}function Ou(D){if(D===null||D===void 0)return!1;if(typeof D==="number")return!0;if(/^0x[0-9a-f]+$/i.test(D))return!0;if(/^0[^.]/.test(D))return!1;return/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(D)}function cF(D){if(Array.isArray(D))return D.map(($)=>typeof $!=="string"?$+"":$);D=D.trim();let u=0,F=null,E=null,C=null,f=[];for(let $=0;$<D.length;$++){if(F=E,E=D.charAt($),E===" "&&!C){if(F!==" ")u++;continue}if(E===C)C=null;else if((E==="'"||E==='"')&&!C)C=E;if(!f[u])f[u]="";f[u]+=E}return f}var YD;(function(D){D.BOOLEAN="boolean",D.STRING="string",D.NUMBER="number",D.ARRAY="array"})(YD||(YD={}));var LD;class cu{constructor(D){LD=D}parse(D,u){let F=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},u),E=cF(D),C=typeof D==="string",f=q2(Object.assign(Object.create(null),F.alias)),$=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},F.configuration),G=Object.assign(Object.create(null),F.default),J=F.configObjects||[],Y=F.envPrefix,U=$["populate--"],Q=U?"--":"_",X=Object.create(null),O=Object.create(null),W=F.__||LD.format,Z={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},A=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,v=new RegExp("^--"+$["negation-prefix"]+"(.+)");if([].concat(F.array||[]).filter(Boolean).forEach(function(h){let M=typeof h==="object"?h.key:h,N=Object.keys(h).map(function(T){return{boolean:"bools",string:"strings",number:"numbers"}[T]}).filter(Boolean).pop();if(N)Z[N][M]=!0;Z.arrays[M]=!0,Z.keys.push(M)}),[].concat(F.boolean||[]).filter(Boolean).forEach(function(h){Z.bools[h]=!0,Z.keys.push(h)}),[].concat(F.string||[]).filter(Boolean).forEach(function(h){Z.strings[h]=!0,Z.keys.push(h)}),[].concat(F.number||[]).filter(Boolean).forEach(function(h){Z.numbers[h]=!0,Z.keys.push(h)}),[].concat(F.count||[]).filter(Boolean).forEach(function(h){Z.counts[h]=!0,Z.keys.push(h)}),[].concat(F.normalize||[]).filter(Boolean).forEach(function(h){Z.normalize[h]=!0,Z.keys.push(h)}),typeof F.narg==="object")Object.entries(F.narg).forEach(([h,M])=>{if(typeof M==="number")Z.nargs[h]=M,Z.keys.push(h)});if(typeof F.coerce==="object")Object.entries(F.coerce).forEach(([h,M])=>{if(typeof M==="function")Z.coercions[h]=M,Z.keys.push(h)});if(typeof F.config<"u"){if(Array.isArray(F.config)||typeof F.config==="string")[].concat(F.config).filter(Boolean).forEach(function(h){Z.configs[h]=!0});else if(typeof F.config==="object")Object.entries(F.config).forEach(([h,M])=>{if(typeof M==="boolean"||typeof M==="function")Z.configs[h]=M})}Bu(F.key,f,F.default,Z.arrays),Object.keys(G).forEach(function(h){(Z.aliases[h]||[]).forEach(function(M){G[M]=G[h]})});let n=null;Au();let GD=[],t=Object.assign(Object.create(null),{_:[]}),g={};for(let h=0;h<E.length;h++){let M=E[h],N=M.replace(/^-{3,}/,"---"),T,z,I,j,L,$D;if(M!=="--"&&/^-/.test(M)&&o(M))ED(M);else if(N.match(/^---+(=|$)/)){ED(M);continue}else if(M.match(/^--.+=/)||!$["short-option-groups"]&&M.match(/^-.+=/)){if(j=M.match(/^--?([^=]+)=([\s\S]*)$/),j!==null&&Array.isArray(j)&&j.length>=3)if(S(j[1],Z.arrays))h=ID(h,j[1],E,j[2]);else if(S(j[1],Z.nargs)!==!1)h=a(h,j[1],E,j[2]);else d(j[1],j[2],!0)}else if(M.match(v)&&$["boolean-negation"]){if(j=M.match(v),j!==null&&Array.isArray(j)&&j.length>=2)z=j[1],d(z,S(z,Z.arrays)?[!1]:!1)}else if(M.match(/^--.+/)||!$["short-option-groups"]&&M.match(/^-[^-]+/)){if(j=M.match(/^--?(.+)/),j!==null&&Array.isArray(j)&&j.length>=2)if(z=j[1],S(z,Z.arrays))h=ID(h,z,E);else if(S(z,Z.nargs)!==!1)h=a(h,z,E);else if(L=E[h+1],L!==void 0&&(!L.match(/^-/)||L.match(A))&&!S(z,Z.bools)&&!S(z,Z.counts))d(z,L),h++;else if(/^(true|false)$/.test(L))d(z,L),h++;else d(z,c(z))}else if(M.match(/^-.\..+=/)){if(j=M.match(/^-([^=]+)=([\s\S]*)$/),j!==null&&Array.isArray(j)&&j.length>=3)d(j[1],j[2])}else if(M.match(/^-.\..+/)&&!M.match(A)){if(L=E[h+1],j=M.match(/^-(.\..+)/),j!==null&&Array.isArray(j)&&j.length>=2)if(z=j[1],L!==void 0&&!L.match(/^-/)&&!S(z,Z.bools)&&!S(z,Z.counts))d(z,L),h++;else d(z,c(z))}else if(M.match(/^-[^-]+/)&&!M.match(A)){I=M.slice(1,-1).split(""),T=!1;for(let MD=0;MD<I.length;MD++){if(L=M.slice(MD+2),I[MD+1]&&I[MD+1]==="="){if($D=M.slice(MD+3),z=I[MD],S(z,Z.arrays))h=ID(h,z,E,$D);else if(S(z,Z.nargs)!==!1)h=a(h,z,E,$D);else d(z,$D);T=!0;break}if(L==="-"){d(I[MD],L);continue}if(/[A-Za-z]/.test(I[MD])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(L)&&S(L,Z.bools)===!1){d(I[MD],L),T=!0;break}if(I[MD+1]&&I[MD+1].match(/\W/)){d(I[MD],L),T=!0;break}else d(I[MD],c(I[MD]))}if(z=M.slice(-1)[0],!T&&z!=="-")if(S(z,Z.arrays))h=ID(h,z,E);else if(S(z,Z.nargs)!==!1)h=a(h,z,E);else if(L=E[h+1],L!==void 0&&(!/^(-|--)[^-]/.test(L)||L.match(A))&&!S(z,Z.bools)&&!S(z,Z.counts))d(z,L),h++;else if(/^(true|false)$/.test(L))d(z,L),h++;else d(z,c(z))}else if(M.match(/^-[0-9]$/)&&M.match(A)&&S(M.slice(1),Z.bools))z=M.slice(1),d(z,c(z));else if(M==="--"){GD=E.slice(h+1);break}else if($["halt-at-non-option"]){GD=E.slice(h);break}else ED(M)}if(FD(t,!0),FD(t,!1),_(t),i(),AD(t,Z.aliases,G,!0),m(t),$["set-placeholder-key"])CD(t);if(Object.keys(Z.counts).forEach(function(h){if(!k(t,h.split(".")))d(h,0)}),U&&GD.length)t[Q]=[];if(GD.forEach(function(h){t[Q].push(h)}),$["camel-case-expansion"]&&$["strip-dashed"])Object.keys(t).filter((h)=>h!=="--"&&h.includes("-")).forEach((h)=>{delete t[h]});if($["strip-aliased"])[].concat(...Object.keys(f).map((h)=>f[h])).forEach((h)=>{if($["camel-case-expansion"]&&h.includes("-"))delete t[h.split(".").map((M)=>nD(M)).join(".")];delete t[h]});function ED(h){let M=R("_",h);if(typeof M==="string"||typeof M==="number")t._.push(M)}function a(h,M,N,T){let z,I=S(M,Z.nargs);if(I=typeof I!=="number"||isNaN(I)?1:I,I===0){if(!fD(T))n=Error(W("Argument unexpected for: %s",M));return d(M,c(M)),h}let j=fD(T)?0:1;if($["nargs-eats-options"]){if(N.length-(h+1)+j<I)n=Error(W("Not enough arguments following: %s",M));j=I}else{for(z=h+1;z<N.length;z++)if(!N[z].match(/^-[^0-9]/)||N[z].match(A)||o(N[z]))j++;else break;if(j<I)n=Error(W("Not enough arguments following: %s",M))}let L=Math.min(j,I);if(!fD(T)&&L>0)d(M,T),L--;for(z=h+1;z<L+h+1;z++)d(M,N[z]);return h+L}function ID(h,M,N,T){let z=[],I=T||N[h+1],j=S(M,Z.nargs);if(S(M,Z.bools)&&!/^(true|false)$/.test(I))z.push(!0);else if(fD(I)||fD(T)&&/^-/.test(I)&&!A.test(I)&&!o(I)){if(G[M]!==void 0){let L=G[M];z=Array.isArray(L)?L:[L]}}else{if(!fD(T))z.push(V(M,T,!0));for(let L=h+1;L<N.length;L++){if(!$["greedy-arrays"]&&z.length>0||j&&typeof j==="number"&&z.length>=j)break;if(I=N[L],/^-/.test(I)&&!A.test(I)&&!o(I))break;h=L,z.push(V(M,I,C))}}if(typeof j==="number"&&(j&&z.length<j||isNaN(j)&&z.length===0))n=Error(W("Not enough arguments following: %s",M));return d(M,z),h}function d(h,M,N=C){if(/-/.test(h)&&$["camel-case-expansion"]){let I=h.split(".").map(function(j){return nD(j)}).join(".");Cu(h,I)}let T=V(h,M,N),z=h.split(".");if(KD(t,z,T),Z.aliases[h])Z.aliases[h].forEach(function(I){let j=I.split(".");KD(t,j,T)});if(z.length>1&&$["dot-notation"])(Z.aliases[z[0]]||[]).forEach(function(I){let j=I.split("."),L=[].concat(z);if(L.shift(),j=j.concat(L),!(Z.aliases[h]||[]).includes(j.join(".")))KD(t,j,T)});if(S(h,Z.normalize)&&!S(h,Z.arrays))[h].concat(Z.aliases[h]||[]).forEach(function(j){Object.defineProperty(g,j,{enumerable:!0,get(){return M},set(L){M=typeof L==="string"?LD.normalize(L):L}})})}function Cu(h,M){if(!(Z.aliases[h]&&Z.aliases[h].length))Z.aliases[h]=[M],X[M]=!0;if(!(Z.aliases[M]&&Z.aliases[M].length))Cu(M,h)}function V(h,M,N){if(N)M=H2(M);if(S(h,Z.bools)||S(h,Z.counts)){if(typeof M==="string")M=M==="true"}let T=Array.isArray(M)?M.map(function(z){return R(h,z)}):R(h,M);if(S(h,Z.counts)&&(fD(T)||typeof T==="boolean"))T=nu();if(S(h,Z.normalize)&&S(h,Z.arrays))if(Array.isArray(M))T=M.map((z)=>{return LD.normalize(z)});else T=LD.normalize(M);return T}function R(h,M){if(!$["parse-positional-numbers"]&&h==="_")return M;if(!S(h,Z.strings)&&!S(h,Z.bools)&&!Array.isArray(M)){if(Ou(M)&&$["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${M}`)))||!fD(M)&&S(h,Z.numbers))M=Number(M)}return M}function _(h){let M=Object.create(null);AD(M,Z.aliases,G),Object.keys(Z.configs).forEach(function(N){let T=h[N]||M[N];if(T)try{let z=null,I=LD.resolve(LD.cwd(),T),j=Z.configs[N];if(typeof j==="function"){try{z=j(I)}catch(L){z=L}if(z instanceof Error){n=z;return}}else z=LD.require(I);w(z)}catch(z){if(z.name==="PermissionDenied")n=z;else if(h[N])n=Error(W("Invalid JSON config file: %s",T))}})}function w(h,M){Object.keys(h).forEach(function(N){let T=h[N],z=M?M+"."+N:N;if(typeof T==="object"&&T!==null&&!Array.isArray(T)&&$["dot-notation"])w(T,z);else if(!k(t,z.split("."))||S(z,Z.arrays)&&$["combine-arrays"])d(z,T)})}function i(){if(typeof J<"u")J.forEach(function(h){w(h)})}function FD(h,M){if(typeof Y>"u")return;let N=typeof Y==="string"?Y:"",T=LD.env();Object.keys(T).forEach(function(z){if(N===""||z.lastIndexOf(N,0)===0){let I=z.split("__").map(function(j,L){if(L===0)j=j.substring(N.length);return nD(j)});if((M&&Z.configs[I.join(".")]||!M)&&!k(h,I))d(I.join("."),T[z])}})}function m(h){let M,N=new Set;Object.keys(h).forEach(function(T){if(!N.has(T)){if(M=S(T,Z.coercions),typeof M==="function")try{let z=R(T,M(h[T]));[].concat(Z.aliases[T]||[],T).forEach((I)=>{N.add(I),h[I]=z})}catch(z){n=z}}})}function CD(h){return Z.keys.forEach((M)=>{if(~M.indexOf("."))return;if(typeof h[M]>"u")h[M]=void 0}),h}function AD(h,M,N,T=!1){Object.keys(N).forEach(function(z){if(!k(h,z.split("."))){if(KD(h,z.split("."),N[z]),T)O[z]=!0;(M[z]||[]).forEach(function(I){if(k(h,I.split(".")))return;KD(h,I.split("."),N[z])})}})}function k(h,M){let N=h;if(!$["dot-notation"])M=[M.join(".")];M.slice(0,-1).forEach(function(z){N=N[z]||{}});let T=M[M.length-1];if(typeof N!=="object")return!1;else return T in N}function KD(h,M,N){let T=h;if(!$["dot-notation"])M=[M.join(".")];M.slice(0,-1).forEach(function($D){if($D=pF($D),typeof T==="object"&&T[$D]===void 0)T[$D]={};if(typeof T[$D]!=="object"||Array.isArray(T[$D])){if(Array.isArray(T[$D]))T[$D].push({});else T[$D]=[T[$D],{}];T=T[$D][T[$D].length-1]}else T=T[$D]});let z=pF(M[M.length-1]),I=S(M.join("."),Z.arrays),j=Array.isArray(N),L=$["duplicate-arguments-array"];if(!L&&S(z,Z.nargs)){if(L=!0,!fD(T[z])&&Z.nargs[z]===1||Array.isArray(T[z])&&T[z].length===Z.nargs[z])T[z]=void 0}if(N===nu())T[z]=nu(T[z]);else if(Array.isArray(T[z]))if(L&&I&&j)T[z]=$["flatten-duplicate-arrays"]?T[z].concat(N):(Array.isArray(T[z][0])?T[z]:[T[z]]).concat([N]);else if(!L&&Boolean(I)===Boolean(j))T[z]=N;else T[z]=T[z].concat([N]);else if(T[z]===void 0&&I)T[z]=j?N:[N];else if(L&&!(T[z]===void 0||S(z,Z.counts)||S(z,Z.bools)))T[z]=[T[z],N];else T[z]=N}function Bu(...h){h.forEach(function(M){Object.keys(M||{}).forEach(function(N){if(Z.aliases[N])return;Z.aliases[N]=[].concat(f[N]||[]),Z.aliases[N].concat(N).forEach(function(T){if(/-/.test(T)&&$["camel-case-expansion"]){let z=nD(T);if(z!==N&&Z.aliases[N].indexOf(z)===-1)Z.aliases[N].push(z),X[z]=!0}}),Z.aliases[N].concat(N).forEach(function(T){if(T.length>1&&/[A-Z]/.test(T)&&$["camel-case-expansion"]){let z=Qu(T,"-");if(z!==N&&Z.aliases[N].indexOf(z)===-1)Z.aliases[N].push(z),X[z]=!0}}),Z.aliases[N].forEach(function(T){Z.aliases[T]=[N].concat(Z.aliases[N].filter(function(z){return T!==z}))})})})}function S(h,M){let N=[].concat(Z.aliases[h]||[],h),T=Object.keys(M),z=N.find((I)=>T.includes(I));return z?M[z]:!1}function aD(h){let M=Object.keys(Z);return[].concat(M.map((T)=>Z[T])).some(function(T){return Array.isArray(T)?T.includes(h):T[h]})}function MF(h,...M){return[].concat(...M).some(function(T){let z=h.match(T);return z&&aD(z[1])})}function x(h){if(h.match(A)||!h.match(/^-[^-]+/))return!1;let M=!0,N,T=h.slice(1).split("");for(let z=0;z<T.length;z++){if(N=h.slice(z+2),!aD(T[z])){M=!1;break}if(T[z+1]&&T[z+1]==="="||N==="-"||/[A-Za-z]/.test(T[z])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(N)||T[z+1]&&T[z+1].match(/\W/))break}return M}function o(h){return $["unknown-options-as-args"]&&BD(h)}function BD(h){if(h=h.replace(/^-{3,}/,"--"),h.match(A))return!1;if(x(h))return!1;return!MF(h,/^-+([^=]+?)=[\s\S]*$/,v,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function c(h){if(!S(h,Z.bools)&&!S(h,Z.counts)&&`${h}`in G)return G[h];else return zD(e(h))}function zD(h){return{[YD.BOOLEAN]:!0,[YD.STRING]:"",[YD.NUMBER]:void 0,[YD.ARRAY]:[]}[h]}function e(h){let M=YD.BOOLEAN;if(S(h,Z.strings))M=YD.STRING;else if(S(h,Z.numbers))M=YD.NUMBER;else if(S(h,Z.bools))M=YD.BOOLEAN;else if(S(h,Z.arrays))M=YD.ARRAY;return M}function fD(h){return h===void 0}function Au(){Object.keys(Z.counts).find((h)=>{if(S(h,Z.arrays))return n=Error(W("Invalid configuration: %s, opts.count excludes opts.array.",h)),!0;else if(S(h,Z.nargs))return n=Error(W("Invalid configuration: %s, opts.count excludes opts.narg.",h)),!0;return!1})}return{aliases:Object.assign({},Z.aliases),argv:Object.assign(g,t),configuration:$,defaulted:Object.assign({},O),error:n,newAliases:Object.assign({},X)}}}function q2(D){let u=[],F=Object.create(null),E=!0;Object.keys(D).forEach(function(C){u.push([].concat(D[C],C))});while(E){E=!1;for(let C=0;C<u.length;C++)for(let f=C+1;f<u.length;f++)if(u[C].filter(function(G){return u[f].indexOf(G)!==-1}).length){u[C]=u[C].concat(u[f]),u.splice(f,1),E=!0;break}}return u.forEach(function(C){C=C.filter(function($,G,J){return J.indexOf($)===G});let f=C.pop();if(f!==void 0&&typeof f==="string")F[f]=C}),F}function nu(D){return D!==void 0?D+1:1}function pF(D){if(D==="__proto__")return"___proto___";return D}function H2(D){return typeof D==="string"&&(D[0]==="'"||D[0]==='"')&&D[D.length-1]===D[0]?D.substring(1,D.length-1):D}import{readFileSync as K2}from"fs";import{createRequire as vF}from"module";var pu,vu,mu,mF=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):20,iF=(vu=(pu=process===null||process===void 0?void 0:process.versions)===null||pu===void 0?void 0:pu.node)!==null&&vu!==void 0?vu:(mu=process===null||process===void 0?void 0:process.version)===null||mu===void 0?void 0:mu.slice(1);if(iF){if(Number(iF.match(/^([^.]+)/)[1])<mF)throw Error(`yargs parser supports a minimum Node.js version of ${mF}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`)}var L2=process?process.env:{},dF=vF?vF(import.meta.url):void 0,oF=new cu({cwd:process.cwd,env:()=>{return L2},format:I2,normalize:V2,resolve:_2,require:(D)=>{if(typeof dF<"u")return dF(D);else if(D.match(/\.json$/))return JSON.parse(K2(D,"utf8"));else throw Error("only .json config files are supported in ESM")}}),fu=function(u,F){return oF.parse(u.slice(),F).argv};fu.detailed=function(D,u){return oF.parse(D.slice(),u)};fu.camelCase=nD;fu.decamelize=Qu;fu.looksLikeNumber=Ou;var iu=fu;import{basename as d2,dirname as o2,extname as k2,relative as g2,resolve as D0,join as l2}from"path";function kF(){if(A2())return 0;return 1}function A2(){return S2()&&!process.defaultApp}function S2(){return!!process.versions.electron}function du(D){return D.slice(kF()+1)}function gF(){return process.argv[kF()]}import{readFileSync as x2,statSync as P2,writeFile as w2}from"fs";import{format as b2}from"util";import{resolve as t2}from"path";var lF={fs:{readFileSync:x2,writeFile:w2},format:b2,resolve:t2,exists:(D)=>{try{return P2(D).isFile()}catch(u){return!1}}};var qD;class yF{constructor(D){D=D||{},this.directory=D.directory||"./locales",this.updateFiles=typeof D.updateFiles==="boolean"?D.updateFiles:!0,this.locale=D.locale||"en",this.fallbackToLanguage=typeof D.fallbackToLanguage==="boolean"?D.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...D){if(typeof arguments[0]!=="string")return this._taggedLiteral(arguments[0],...arguments);let u=D.shift(),F=function(){};if(typeof D[D.length-1]==="function")F=D.pop();if(F=F||function(){},!this.cache[this.locale])this._readLocaleFile();if(!this.cache[this.locale][u]&&this.updateFiles)this.cache[this.locale][u]=u,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:F});else F();return qD.format.apply(qD.format,[this.cache[this.locale][u]||u].concat(D))}__n(){let D=Array.prototype.slice.call(arguments),u=D.shift(),F=D.shift(),E=D.shift(),C=function(){};if(typeof D[D.length-1]==="function")C=D.pop();if(!this.cache[this.locale])this._readLocaleFile();let f=E===1?u:F;if(this.cache[this.locale][u])f=this.cache[this.locale][u][E===1?"one":"other"];if(!this.cache[this.locale][u]&&this.updateFiles)this.cache[this.locale][u]={one:u,other:F},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:C});else C();let $=[f];if(~f.indexOf("%d"))$.push(E);return qD.format.apply(qD.format,$.concat(D))}setLocale(D){this.locale=D}getLocale(){return this.locale}updateLocale(D){if(!this.cache[this.locale])this._readLocaleFile();for(let u in D)if(Object.prototype.hasOwnProperty.call(D,u))this.cache[this.locale][u]=D[u]}_taggedLiteral(D,...u){let F="";return D.forEach(function(E,C){let f=u[C+1];if(F+=E,typeof f<"u")F+="%s"}),this.__.apply(this,[F].concat([].slice.call(u,1)))}_enqueueWrite(D){if(this.writeQueue.push(D),this.writeQueue.length===1)this._processWriteQueue()}_processWriteQueue(){let D=this,u=this.writeQueue[0],F=u.directory,E=u.locale,C=u.cb,f=this._resolveLocaleFile(F,E),$=JSON.stringify(this.cache[E],null,2);qD.fs.writeFile(f,$,"utf-8",function(G){if(D.writeQueue.shift(),D.writeQueue.length>0)D._processWriteQueue();C(G)})}_readLocaleFile(){let D={},u=this._resolveLocaleFile(this.directory,this.locale);try{if(qD.fs.readFileSync)D=JSON.parse(qD.fs.readFileSync(u,"utf-8"))}catch(F){if(F instanceof SyntaxError)F.message="syntax error in "+u;if(F.code==="ENOENT")D={};else throw F}this.cache[this.locale]=D}_resolveLocaleFile(D,u){let F=qD.resolve(D,"./",u+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(F)&&~u.lastIndexOf("_")){let E=qD.resolve(D,"./",u.split("_")[0]+".json");if(this._fileExistsSync(E))F=E}return F}_fileExistsSync(D){return qD.exists(D)}}function sF(D,u){qD=u;let F=new yF(D);return{__:F.__.bind(F),__n:F.__n.bind(F),setLocale:F.setLocale.bind(F),getLocale:F.getLocale.bind(F),updateLocale:F.updateLocale.bind(F),locale:F.locale}}var n2=(D)=>{return sF(D,lF)},rF=n2;var F0=p2(eF(),1);import{createRequire as y2}from"module";import{readFileSync as s2,readdirSync as r2}from"fs";var ou=u0(import.meta.url),a2=ou.substring(0,ou.lastIndexOf("node_modules")),e2=y2(import.meta.url),ku={assert:{notStrictEqual:v2,strictEqual:m2},cliui:bu,findUp:tu,getEnv:(D)=>{return process.env[D]},inspect:i2,getProcessArgvBin:gF,mainFilename:a2||process.cwd(),Parser:iu,path:{basename:d2,dirname:o2,extname:k2,relative:g2,resolve:D0,join:l2},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(D,u)=>process.emitWarning(D,u),execPath:()=>process.execPath,exit:(D)=>{process.exit(D)},nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:s2,readdirSync:r2,require:e2,getCallerFile:()=>{let D=F0.default(3);return D.match(/^file:\/\//)?u0(D):D},stringWidth:jD,y18n:rF({directory:D0(ou,"../../../locales"),updateFiles:!1})};function XD(D,u,F,E){F.assert.notStrictEqual(D,u,E)}function gu(D,u){u.assert.strictEqual(typeof D,"string")}function Du(D){return Object.keys(D)}function l(D){return!!D&&!!D.then&&typeof D.then==="function"}class DD extends Error{constructor(D){super(D||"yargs error");if(this.name="YError",Error.captureStackTrace)Error.captureStackTrace(this,DD)}}function SD(D){let F=D.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),E=/\.*[\][<>]/g,C=F.shift();if(!C)throw Error(`No command found in: ${D}`);let f={cmd:C.replace(E,""),demanded:[],optional:[]};return F.forEach(($,G)=>{let J=!1;if($=$.replace(/\s/g,""),/\.+[\]>]/.test($)&&G===F.length-1)J=!0;if(/^\[/.test($))f.optional.push({cmd:$.replace(E,"").split("|"),variadic:J});else f.demanded.push({cmd:$.replace(E,"").split("|"),variadic:J})}),f}var D8=["first","second","third","fourth","fifth","sixth"];function q(D,u,F){function E(){return typeof D==="object"?[{demanded:[],optional:[]},D,u]:[SD(`cmd ${D}`),u,F]}try{let C=0,[f,$,G]=E(),J=[].slice.call($);while(J.length&&J[J.length-1]===void 0)J.pop();let Y=G||J.length;if(Y<f.demanded.length)throw new DD(`Not enough arguments provided. Expected ${f.demanded.length} but received ${J.length}.`);let U=f.demanded.length+f.optional.length;if(Y>U)throw new DD(`Too many arguments provided. Expected max ${U} but received ${Y}.`);f.demanded.forEach((Q)=>{let X=J.shift(),O=E0(X);if(Q.cmd.filter((Z)=>Z===O||Z==="*").length===0)C0(O,Q.cmd,C);C+=1}),f.optional.forEach((Q)=>{if(J.length===0)return;let X=J.shift(),O=E0(X);if(Q.cmd.filter((Z)=>Z===O||Z==="*").length===0)C0(O,Q.cmd,C);C+=1})}catch(C){console.warn(C.stack)}}function E0(D){if(Array.isArray(D))return"array";else if(D===null)return"null";return typeof D}function C0(D,u,F){throw new DD(`Invalid ${D8[F]||"manyith"} argument. Expected ${u.join(" or ")} but received ${D}.`)}class lu{constructor(D){this.globalMiddleware=[],this.frozens=[],this.yargs=D}addMiddleware(D,u,F=!0,E=!1){if(q("<array|function> [boolean] [boolean] [boolean]",[D,u,F],arguments.length),Array.isArray(D)){for(let C=0;C<D.length;C++){if(typeof D[C]!=="function")throw Error("middleware must be a function");let f=D[C];f.applyBeforeValidation=u,f.global=F}Array.prototype.push.apply(this.globalMiddleware,D)}else if(typeof D==="function"){let C=D;C.applyBeforeValidation=u,C.global=F,C.mutates=E,this.globalMiddleware.push(D)}return this.yargs}addCoerceMiddleware(D,u){let F=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter((E)=>{let C=[...F[u]||[],u];if(!E.option)return!0;else return!C.includes(E.option)}),D.option=u,this.addMiddleware(D,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let D=this.frozens.pop();if(D!==void 0)this.globalMiddleware=D}reset(){this.globalMiddleware=this.globalMiddleware.filter((D)=>D.global)}}function B0(D){if(!D)return[];return D.map((u)=>{return u.applyBeforeValidation=!1,u})}function cD(D,u,F,E){return F.reduce((C,f)=>{if(f.applyBeforeValidation!==E)return C;if(f.mutates){if(f.applied)return C;f.applied=!0}if(l(C))return C.then(($)=>Promise.all([$,f($,u)])).then(([$,G])=>Object.assign($,G));else{let $=f(C,u);return l($)?$.then((G)=>Object.assign(C,G)):Object.assign(C,$)}},D)}function pD(D,u,F=(E)=>{throw E}){try{let E=u8(D)?D():D;return l(E)?E.then((C)=>u(C)):u(E)}catch(E){return F(E)}}function u8(D){return typeof D==="function"}var uu=/(^\*)|(^\$0)/;class $0{constructor(D,u,F,E){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=E,this.usage=D,this.globalMiddleware=F,this.validation=u}addDirectory(D,u,F,E){E=E||{},this.requireCache.add(F);let C=this.shim.path.resolve(this.shim.path.dirname(F),D),f=this.shim.readdirSync(C,{recursive:E.recurse?!0:!1});if(!Array.isArray(E.extensions))E.extensions=["js"];let $=typeof E.visit==="function"?E.visit:(G)=>G;for(let G of f){let J=G.toString();if(E.exclude){let U=!1;if(typeof E.exclude==="function")U=E.exclude(J);else U=E.exclude.test(J);if(U)continue}if(E.include){let U=!1;if(typeof E.include==="function")U=E.include(J);else U=E.include.test(J);if(!U)continue}let Y=!1;for(let U of E.extensions)if(J.endsWith(U))Y=!0;if(Y){let U=this.shim.path.join(C,J),Q=u(U),X=Object.create(null,Object.getOwnPropertyDescriptors({...Q}));if($(X,U,J)){if(this.requireCache.has(U))continue;else this.requireCache.add(U);if(!X.command)X.command=this.shim.path.basename(U,this.shim.path.extname(U));this.addHandler(X)}}}}addHandler(D,u,F,E,C,f){let $=[],G=B0(C);if(E=E||(()=>{}),Array.isArray(D))if(F8(D))[D,...$]=D;else for(let J of D)this.addHandler(J);else if(C8(D)){let J=Array.isArray(D.command)||typeof D.command==="string"?D.command:null;if(J===null)throw Error(`No command name given for module: ${this.shim.inspect(D)}`);if(D.aliases)J=[].concat(J).concat(D.aliases);this.addHandler(J,this.extractDesc(D),D.builder,D.handler,D.middlewares,D.deprecated);return}else if(f0(F)){this.addHandler([D].concat($),u,F.builder,F.handler,F.middlewares,F.deprecated);return}if(typeof D==="string"){let J=SD(D);$=$.map((Q)=>SD(Q).cmd);let Y=!1,U=[J.cmd].concat($).filter((Q)=>{if(uu.test(Q))return Y=!0,!1;return!0});if(U.length===0&&Y)U.push("$0");if(Y)J.cmd=U[0],$=U.slice(1),D=D.replace(uu,J.cmd);if($.forEach((Q)=>{this.aliasMap[Q]=J.cmd}),u!==!1)this.usage.command(D,u,Y,$,f);if(this.handlers[J.cmd]={original:D,description:u,handler:E,builder:F||{},middlewares:G,deprecated:f,demanded:J.demanded,optional:J.optional},Y)this.defaultCommand=this.handlers[J.cmd]}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(D,u,F,E,C,f){let $=this.handlers[D]||this.handlers[this.aliasMap[D]]||this.defaultCommand,G=u.getInternalMethods().getContext(),J=G.commands.slice(),Y=!D;if(D)G.commands.push(D),G.fullCommands.push($.original);let U=this.applyBuilderUpdateUsageAndParse(Y,$,u,F.aliases,J,E,C,f);return l(U)?U.then((Q)=>this.applyMiddlewareAndGetResult(Y,$,Q.innerArgv,G,C,Q.aliases,u)):this.applyMiddlewareAndGetResult(Y,$,U.innerArgv,G,C,U.aliases,u)}applyBuilderUpdateUsageAndParse(D,u,F,E,C,f,$,G){let J=u.builder,Y=F;if(Tu(J)){F.getInternalMethods().getUsageInstance().freeze();let U=J(F.getInternalMethods().reset(E),G);if(l(U))return U.then((Q)=>{return Y=z0(Q)?Q:F,this.parseAndUpdateUsage(D,u,Y,C,f,$)})}else if(E8(J))F.getInternalMethods().getUsageInstance().freeze(),Y=F.getInternalMethods().reset(E),Object.keys(u.builder).forEach((U)=>{Y.option(U,J[U])});return this.parseAndUpdateUsage(D,u,Y,C,f,$)}parseAndUpdateUsage(D,u,F,E,C,f){if(D)F.getInternalMethods().getUsageInstance().unfreeze(!0);if(this.shouldUpdateUsage(F))F.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(E,u),u.description);let $=F.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,C,f);return l($)?$.then((G)=>({aliases:F.parsed.aliases,innerArgv:G})):{aliases:F.parsed.aliases,innerArgv:$}}shouldUpdateUsage(D){return!D.getInternalMethods().getUsageInstance().getUsageDisabled()&&D.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(D,u){let F=uu.test(u.original)?u.original.replace(uu,"").trim():u.original,E=D.filter((C)=>{return!uu.test(C)});return E.push(F),`$0 ${E.join(" ")}`}handleValidationAndGetResult(D,u,F,E,C,f,$,G){if(!f.getInternalMethods().getHasOutput()){let J=f.getInternalMethods().runValidation(C,G,f.parsed.error,D);F=pD(F,(Y)=>{return J(Y),Y})}if(u.handler&&!f.getInternalMethods().getHasOutput()){f.getInternalMethods().setHasOutput();let J=!!f.getOptions().configuration["populate--"];if(f.getInternalMethods().postProcess(F,J,!1,!1),F=cD(F,f,$,!1),F=pD(F,(Y)=>{let U=u.handler(Y);return l(U)?U.then(()=>Y):Y}),!D)f.getInternalMethods().getUsageInstance().cacheHelpMessage();if(l(F)&&!f.getInternalMethods().hasParseCallback())F.catch((Y)=>{try{f.getInternalMethods().getUsageInstance().fail(null,Y)}catch(U){}})}if(!D)E.commands.pop(),E.fullCommands.pop();return F}applyMiddlewareAndGetResult(D,u,F,E,C,f,$){let G={};if(C)return F;if(!$.getInternalMethods().getHasOutput())G=this.populatePositionals(u,F,E,$);let J=this.globalMiddleware.getMiddleware().slice(0).concat(u.middlewares),Y=cD(F,$,J,!0);return l(Y)?Y.then((U)=>this.handleValidationAndGetResult(D,u,U,E,f,$,J,G)):this.handleValidationAndGetResult(D,u,Y,E,f,$,J,G)}populatePositionals(D,u,F,E){u._=u._.slice(F.commands.length);let C=D.demanded.slice(0),f=D.optional.slice(0),$={};this.validation.positionalCount(C.length,u._.length);while(C.length){let G=C.shift();this.populatePositional(G,u,$)}while(f.length){let G=f.shift();this.populatePositional(G,u,$)}return u._=F.commands.concat(u._.map((G)=>""+G)),this.postProcessPositionals(u,$,this.cmdToParseOptions(D.original),E),$}populatePositional(D,u,F){let E=D.cmd[0];if(D.variadic)F[E]=u._.splice(0).map(String);else if(u._.length)F[E]=[String(u._.shift())]}cmdToParseOptions(D){let u={array:[],default:{},alias:{},demand:{}},F=SD(D);return F.demanded.forEach((E)=>{let[C,...f]=E.cmd;if(E.variadic)u.array.push(C),u.default[C]=[];u.alias[C]=f,u.demand[C]=!0}),F.optional.forEach((E)=>{let[C,...f]=E.cmd;if(E.variadic)u.array.push(C),u.default[C]=[];u.alias[C]=f}),u}postProcessPositionals(D,u,F,E){let C=Object.assign({},E.getOptions());C.default=Object.assign(F.default,C.default);for(let J of Object.keys(F.alias))C.alias[J]=(C.alias[J]||[]).concat(F.alias[J]);C.array=C.array.concat(F.array),C.config={};let f=[];if(Object.keys(u).forEach((J)=>{u[J].map((Y)=>{if(C.configuration["unknown-options-as-args"])C.key[J]=!0;f.push(`--${J}`),f.push(Y)})}),!f.length)return;let $=Object.assign({},C.configuration,{"populate--":!1}),G=this.shim.Parser.detailed(f,Object.assign({},C,{configuration:$}));if(G.error)E.getInternalMethods().getUsageInstance().fail(G.error.message,G.error);else{let J=Object.keys(u);Object.keys(u).forEach((Y)=>{J.push(...G.aliases[Y])}),Object.keys(G.argv).forEach((Y)=>{if(J.includes(Y)){if(!u[Y])u[Y]=G.argv[Y];if(!this.isInConfigs(E,Y)&&!this.isDefaulted(E,Y)&&Object.prototype.hasOwnProperty.call(D,Y)&&Object.prototype.hasOwnProperty.call(G.argv,Y)&&(Array.isArray(D[Y])||Array.isArray(G.argv[Y])))D[Y]=[].concat(D[Y],G.argv[Y]);else D[Y]=G.argv[Y]}})}}isDefaulted(D,u){let{default:F}=D.getOptions();return Object.prototype.hasOwnProperty.call(F,u)||Object.prototype.hasOwnProperty.call(F,this.shim.Parser.camelCase(u))}isInConfigs(D,u){let{configObjects:F}=D.getOptions();return F.some((E)=>Object.prototype.hasOwnProperty.call(E,u))||F.some((E)=>Object.prototype.hasOwnProperty.call(E,this.shim.Parser.camelCase(u)))}runDefaultBuilderOn(D){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(D)){let F=uu.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");D.getInternalMethods().getUsageInstance().usage(F,this.defaultCommand.description)}let u=this.defaultCommand.builder;if(Tu(u))return u(D,!0);else if(!f0(u))Object.keys(u).forEach((F)=>{D.option(F,u[F])});return}extractDesc({describe:D,description:u,desc:F}){for(let E of[D,u,F]){if(typeof E==="string"||E===!1)return E;XD(E,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let D=this.frozens.pop();XD(D,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=D}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}}function h0(D,u,F,E){return new $0(D,u,F,E)}function f0(D){return typeof D==="object"&&!!D.builder&&typeof D.handler==="function"}function F8(D){return D.every((u)=>typeof u==="string")}function Tu(D){return typeof D==="function"}function E8(D){return typeof D==="object"}function C8(D){return typeof D==="object"&&!Array.isArray(D)}function xD(D={},u=()=>!0){let F={};return Du(D).forEach((E)=>{if(u(E,D[E]))F[E]=D[E]}),F}function PD(D){if(typeof process>"u")return;[process.stdout,process.stderr].forEach((u)=>{let F=u;if(F._handle&&F.isTTY&&typeof F._handle.setBlocking==="function")F._handle.setBlocking(D)})}function B8(D){return typeof D==="boolean"}function M0(D,u){let F=u.y18n.__,E={},C=[];E.failFn=function(R){C.push(R)};let f=null,$=null,G=!0;E.showHelpOnFail=function(R=!0,_){let[w,i]=typeof R==="string"?[!0,R]:[R,_];if(D.getInternalMethods().isGlobalContext())$=i;return f=i,G=w,E};let J=!1;E.fail=function(R,_){let w=D.getInternalMethods().getLoggerInstance();if(C.length)for(let i=C.length-1;i>=0;--i){let FD=C[i];if(B8(FD)){if(_)throw _;else if(R)throw Error(R)}else FD(R,_,E)}else{if(D.getExitProcess())PD(!0);if(!J){if(J=!0,G)D.showHelp("error"),w.error();if(R||_)w.error(R||_);let i=f||$;if(i){if(R||_)w.error("");w.error(i)}}if(_=_||new DD(R),D.getExitProcess())return D.exit(1);else if(D.getInternalMethods().hasParseCallback())return D.exit(1,_);else throw _}};let Y=[],U=!1;E.usage=(V,R)=>{if(V===null)return U=!0,Y=[],E;return U=!1,Y.push([V,R||""]),E},E.getUsage=()=>{return Y},E.getUsageDisabled=()=>{return U},E.getPositionalGroupName=()=>{return F("Positionals:")};let Q=[];E.example=(V,R)=>{Q.push([V,R||""])};let X=[];E.command=function(R,_,w,i,FD=!1){if(w)X=X.map((m)=>{return m[2]=!1,m});X.push([R,_||"",w,i,FD])},E.getCommands=()=>X;let O={};E.describe=function(R,_){if(Array.isArray(R))R.forEach((w)=>{E.describe(w,_)});else if(typeof R==="object")Object.keys(R).forEach((w)=>{E.describe(w,R[w])});else O[R]=_},E.getDescriptions=()=>O;let W=[];E.epilog=(V)=>{W.push(V)};let Z=!1,A;E.wrap=(V)=>{Z=!0,A=V},E.getWrap=()=>{if(u.getEnv("YARGS_DISABLE_WRAP"))return null;if(!Z)A=ID(),Z=!0;return A};let v="__yargsString__:";E.deferY18nLookup=(V)=>v+V,E.help=function(){if(t)return t;GD();let R=D.customScriptName?D.$0:u.path.basename(D.$0),_=D.getDemandedOptions(),w=D.getDemandedCommands(),i=D.getDeprecatedOptions(),FD=D.getGroups(),m=D.getOptions(),CD=[];CD=CD.concat(Object.keys(O)),CD=CD.concat(Object.keys(_)),CD=CD.concat(Object.keys(w)),CD=CD.concat(Object.keys(m.default)),CD=CD.filter(ED),CD=Object.keys(CD.reduce((x,o)=>{if(o!=="_")x[o]=!0;return x},{}));let AD=E.getWrap(),k=u.cliui({width:AD,wrap:!!AD});if(!U){if(Y.length)Y.forEach((x)=>{if(k.div({text:`${x[0].replace(/\$0/g,R)}`}),x[1])k.div({text:`${x[1]}`,padding:[1,0,0,0]})}),k.div();else if(X.length){let x=null;if(w._)x=`${R} <${F("command")}>
12
+ `).map((E)=>R2(E,u,F)).join(`
13
+ `)}function bu(D){return JF(D,{stringWidth:jD,stripAnsi:eD,wrap:wu})}import{dirname as tF,resolve as nF}from"path";import{readdirSync as j2,statSync as q2}from"fs";function tu(D,u){let F=nF(".",D),E;if(!q2(F).isDirectory())F=tF(F);while(!0){if(E=u(F,j2(F)),E)return nF(F,E);if(F=tF(E=F),E===F)break}}import{inspect as d2}from"util";import{fileURLToPath as u0}from"url";import{format as V2}from"util";import{normalize as _2,resolve as K2}from"path";function nD(D){if(!(D!==D.toLowerCase()&&D!==D.toUpperCase()))D=D.toLowerCase();if(D.indexOf("-")===-1&&D.indexOf("_")===-1)return D;else{let F="",E=!1,C=D.match(/^-+/);for(let f=C?C[0].length:0;f<D.length;f++){let $=D.charAt(f);if(E)E=!1,$=$.toUpperCase();if(f!==0&&($==="-"||$==="_"))E=!0;else if($!=="-"&&$!=="_")F+=$}return F}}function Qu(D,u){let F=D.toLowerCase();u=u||"-";let E="";for(let C=0;C<D.length;C++){let f=F.charAt(C),$=D.charAt(C);if(f!==$&&C>0)E+=`${u}${F.charAt(C)}`;else E+=$}return E}function Ou(D){if(D===null||D===void 0)return!1;if(typeof D==="number")return!0;if(/^0x[0-9a-f]+$/i.test(D))return!0;if(/^0[^.]/.test(D))return!1;return/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(D)}function cF(D){if(Array.isArray(D))return D.map(($)=>typeof $!=="string"?$+"":$);D=D.trim();let u=0,F=null,E=null,C=null,f=[];for(let $=0;$<D.length;$++){if(F=E,E=D.charAt($),E===" "&&!C){if(F!==" ")u++;continue}if(E===C)C=null;else if((E==="'"||E==='"')&&!C)C=E;if(!f[u])f[u]="";f[u]+=E}return f}var YD;(function(D){D.BOOLEAN="boolean",D.STRING="string",D.NUMBER="number",D.ARRAY="array"})(YD||(YD={}));var LD;class cu{constructor(D){LD=D}parse(D,u){let F=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},u),E=cF(D),C=typeof D==="string",f=H2(Object.assign(Object.create(null),F.alias)),$=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},F.configuration),G=Object.assign(Object.create(null),F.default),J=F.configObjects||[],Y=F.envPrefix,U=$["populate--"],Q=U?"--":"_",Z=Object.create(null),O=Object.create(null),W=F.__||LD.format,X={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},A=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,v=new RegExp("^--"+$["negation-prefix"]+"(.+)");if([].concat(F.array||[]).filter(Boolean).forEach(function(h){let M=typeof h==="object"?h.key:h,N=Object.keys(h).map(function(T){return{boolean:"bools",string:"strings",number:"numbers"}[T]}).filter(Boolean).pop();if(N)X[N][M]=!0;X.arrays[M]=!0,X.keys.push(M)}),[].concat(F.boolean||[]).filter(Boolean).forEach(function(h){X.bools[h]=!0,X.keys.push(h)}),[].concat(F.string||[]).filter(Boolean).forEach(function(h){X.strings[h]=!0,X.keys.push(h)}),[].concat(F.number||[]).filter(Boolean).forEach(function(h){X.numbers[h]=!0,X.keys.push(h)}),[].concat(F.count||[]).filter(Boolean).forEach(function(h){X.counts[h]=!0,X.keys.push(h)}),[].concat(F.normalize||[]).filter(Boolean).forEach(function(h){X.normalize[h]=!0,X.keys.push(h)}),typeof F.narg==="object")Object.entries(F.narg).forEach(([h,M])=>{if(typeof M==="number")X.nargs[h]=M,X.keys.push(h)});if(typeof F.coerce==="object")Object.entries(F.coerce).forEach(([h,M])=>{if(typeof M==="function")X.coercions[h]=M,X.keys.push(h)});if(typeof F.config<"u"){if(Array.isArray(F.config)||typeof F.config==="string")[].concat(F.config).filter(Boolean).forEach(function(h){X.configs[h]=!0});else if(typeof F.config==="object")Object.entries(F.config).forEach(([h,M])=>{if(typeof M==="boolean"||typeof M==="function")X.configs[h]=M})}Bu(F.key,f,F.default,X.arrays),Object.keys(G).forEach(function(h){(X.aliases[h]||[]).forEach(function(M){G[M]=G[h]})});let n=null;Au();let GD=[],t=Object.assign(Object.create(null),{_:[]}),g={};for(let h=0;h<E.length;h++){let M=E[h],N=M.replace(/^-{3,}/,"---"),T,z,I,j,L,$D;if(M!=="--"&&/^-/.test(M)&&o(M))ED(M);else if(N.match(/^---+(=|$)/)){ED(M);continue}else if(M.match(/^--.+=/)||!$["short-option-groups"]&&M.match(/^-.+=/)){if(j=M.match(/^--?([^=]+)=([\s\S]*)$/),j!==null&&Array.isArray(j)&&j.length>=3)if(S(j[1],X.arrays))h=ID(h,j[1],E,j[2]);else if(S(j[1],X.nargs)!==!1)h=a(h,j[1],E,j[2]);else d(j[1],j[2],!0)}else if(M.match(v)&&$["boolean-negation"]){if(j=M.match(v),j!==null&&Array.isArray(j)&&j.length>=2)z=j[1],d(z,S(z,X.arrays)?[!1]:!1)}else if(M.match(/^--.+/)||!$["short-option-groups"]&&M.match(/^-[^-]+/)){if(j=M.match(/^--?(.+)/),j!==null&&Array.isArray(j)&&j.length>=2)if(z=j[1],S(z,X.arrays))h=ID(h,z,E);else if(S(z,X.nargs)!==!1)h=a(h,z,E);else if(L=E[h+1],L!==void 0&&(!L.match(/^-/)||L.match(A))&&!S(z,X.bools)&&!S(z,X.counts))d(z,L),h++;else if(/^(true|false)$/.test(L))d(z,L),h++;else d(z,c(z))}else if(M.match(/^-.\..+=/)){if(j=M.match(/^-([^=]+)=([\s\S]*)$/),j!==null&&Array.isArray(j)&&j.length>=3)d(j[1],j[2])}else if(M.match(/^-.\..+/)&&!M.match(A)){if(L=E[h+1],j=M.match(/^-(.\..+)/),j!==null&&Array.isArray(j)&&j.length>=2)if(z=j[1],L!==void 0&&!L.match(/^-/)&&!S(z,X.bools)&&!S(z,X.counts))d(z,L),h++;else d(z,c(z))}else if(M.match(/^-[^-]+/)&&!M.match(A)){I=M.slice(1,-1).split(""),T=!1;for(let MD=0;MD<I.length;MD++){if(L=M.slice(MD+2),I[MD+1]&&I[MD+1]==="="){if($D=M.slice(MD+3),z=I[MD],S(z,X.arrays))h=ID(h,z,E,$D);else if(S(z,X.nargs)!==!1)h=a(h,z,E,$D);else d(z,$D);T=!0;break}if(L==="-"){d(I[MD],L);continue}if(/[A-Za-z]/.test(I[MD])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(L)&&S(L,X.bools)===!1){d(I[MD],L),T=!0;break}if(I[MD+1]&&I[MD+1].match(/\W/)){d(I[MD],L),T=!0;break}else d(I[MD],c(I[MD]))}if(z=M.slice(-1)[0],!T&&z!=="-")if(S(z,X.arrays))h=ID(h,z,E);else if(S(z,X.nargs)!==!1)h=a(h,z,E);else if(L=E[h+1],L!==void 0&&(!/^(-|--)[^-]/.test(L)||L.match(A))&&!S(z,X.bools)&&!S(z,X.counts))d(z,L),h++;else if(/^(true|false)$/.test(L))d(z,L),h++;else d(z,c(z))}else if(M.match(/^-[0-9]$/)&&M.match(A)&&S(M.slice(1),X.bools))z=M.slice(1),d(z,c(z));else if(M==="--"){GD=E.slice(h+1);break}else if($["halt-at-non-option"]){GD=E.slice(h);break}else ED(M)}if(FD(t,!0),FD(t,!1),_(t),i(),AD(t,X.aliases,G,!0),m(t),$["set-placeholder-key"])CD(t);if(Object.keys(X.counts).forEach(function(h){if(!k(t,h.split(".")))d(h,0)}),U&&GD.length)t[Q]=[];if(GD.forEach(function(h){t[Q].push(h)}),$["camel-case-expansion"]&&$["strip-dashed"])Object.keys(t).filter((h)=>h!=="--"&&h.includes("-")).forEach((h)=>{delete t[h]});if($["strip-aliased"])[].concat(...Object.keys(f).map((h)=>f[h])).forEach((h)=>{if($["camel-case-expansion"]&&h.includes("-"))delete t[h.split(".").map((M)=>nD(M)).join(".")];delete t[h]});function ED(h){let M=R("_",h);if(typeof M==="string"||typeof M==="number")t._.push(M)}function a(h,M,N,T){let z,I=S(M,X.nargs);if(I=typeof I!=="number"||isNaN(I)?1:I,I===0){if(!fD(T))n=Error(W("Argument unexpected for: %s",M));return d(M,c(M)),h}let j=fD(T)?0:1;if($["nargs-eats-options"]){if(N.length-(h+1)+j<I)n=Error(W("Not enough arguments following: %s",M));j=I}else{for(z=h+1;z<N.length;z++)if(!N[z].match(/^-[^0-9]/)||N[z].match(A)||o(N[z]))j++;else break;if(j<I)n=Error(W("Not enough arguments following: %s",M))}let L=Math.min(j,I);if(!fD(T)&&L>0)d(M,T),L--;for(z=h+1;z<L+h+1;z++)d(M,N[z]);return h+L}function ID(h,M,N,T){let z=[],I=T||N[h+1],j=S(M,X.nargs);if(S(M,X.bools)&&!/^(true|false)$/.test(I))z.push(!0);else if(fD(I)||fD(T)&&/^-/.test(I)&&!A.test(I)&&!o(I)){if(G[M]!==void 0){let L=G[M];z=Array.isArray(L)?L:[L]}}else{if(!fD(T))z.push(V(M,T,!0));for(let L=h+1;L<N.length;L++){if(!$["greedy-arrays"]&&z.length>0||j&&typeof j==="number"&&z.length>=j)break;if(I=N[L],/^-/.test(I)&&!A.test(I)&&!o(I))break;h=L,z.push(V(M,I,C))}}if(typeof j==="number"&&(j&&z.length<j||isNaN(j)&&z.length===0))n=Error(W("Not enough arguments following: %s",M));return d(M,z),h}function d(h,M,N=C){if(/-/.test(h)&&$["camel-case-expansion"]){let I=h.split(".").map(function(j){return nD(j)}).join(".");Cu(h,I)}let T=V(h,M,N),z=h.split(".");if(KD(t,z,T),X.aliases[h])X.aliases[h].forEach(function(I){let j=I.split(".");KD(t,j,T)});if(z.length>1&&$["dot-notation"])(X.aliases[z[0]]||[]).forEach(function(I){let j=I.split("."),L=[].concat(z);if(L.shift(),j=j.concat(L),!(X.aliases[h]||[]).includes(j.join(".")))KD(t,j,T)});if(S(h,X.normalize)&&!S(h,X.arrays))[h].concat(X.aliases[h]||[]).forEach(function(j){Object.defineProperty(g,j,{enumerable:!0,get(){return M},set(L){M=typeof L==="string"?LD.normalize(L):L}})})}function Cu(h,M){if(!(X.aliases[h]&&X.aliases[h].length))X.aliases[h]=[M],Z[M]=!0;if(!(X.aliases[M]&&X.aliases[M].length))Cu(M,h)}function V(h,M,N){if(N)M=I2(M);if(S(h,X.bools)||S(h,X.counts)){if(typeof M==="string")M=M==="true"}let T=Array.isArray(M)?M.map(function(z){return R(h,z)}):R(h,M);if(S(h,X.counts)&&(fD(T)||typeof T==="boolean"))T=nu();if(S(h,X.normalize)&&S(h,X.arrays))if(Array.isArray(M))T=M.map((z)=>{return LD.normalize(z)});else T=LD.normalize(M);return T}function R(h,M){if(!$["parse-positional-numbers"]&&h==="_")return M;if(!S(h,X.strings)&&!S(h,X.bools)&&!Array.isArray(M)){if(Ou(M)&&$["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${M}`)))||!fD(M)&&S(h,X.numbers))M=Number(M)}return M}function _(h){let M=Object.create(null);AD(M,X.aliases,G),Object.keys(X.configs).forEach(function(N){let T=h[N]||M[N];if(T)try{let z=null,I=LD.resolve(LD.cwd(),T),j=X.configs[N];if(typeof j==="function"){try{z=j(I)}catch(L){z=L}if(z instanceof Error){n=z;return}}else z=LD.require(I);w(z)}catch(z){if(z.name==="PermissionDenied")n=z;else if(h[N])n=Error(W("Invalid JSON config file: %s",T))}})}function w(h,M){Object.keys(h).forEach(function(N){let T=h[N],z=M?M+"."+N:N;if(typeof T==="object"&&T!==null&&!Array.isArray(T)&&$["dot-notation"])w(T,z);else if(!k(t,z.split("."))||S(z,X.arrays)&&$["combine-arrays"])d(z,T)})}function i(){if(typeof J<"u")J.forEach(function(h){w(h)})}function FD(h,M){if(typeof Y>"u")return;let N=typeof Y==="string"?Y:"",T=LD.env();Object.keys(T).forEach(function(z){if(N===""||z.lastIndexOf(N,0)===0){let I=z.split("__").map(function(j,L){if(L===0)j=j.substring(N.length);return nD(j)});if((M&&X.configs[I.join(".")]||!M)&&!k(h,I))d(I.join("."),T[z])}})}function m(h){let M,N=new Set;Object.keys(h).forEach(function(T){if(!N.has(T)){if(M=S(T,X.coercions),typeof M==="function")try{let z=R(T,M(h[T]));[].concat(X.aliases[T]||[],T).forEach((I)=>{N.add(I),h[I]=z})}catch(z){n=z}}})}function CD(h){return X.keys.forEach((M)=>{if(~M.indexOf("."))return;if(typeof h[M]>"u")h[M]=void 0}),h}function AD(h,M,N,T=!1){Object.keys(N).forEach(function(z){if(!k(h,z.split("."))){if(KD(h,z.split("."),N[z]),T)O[z]=!0;(M[z]||[]).forEach(function(I){if(k(h,I.split(".")))return;KD(h,I.split("."),N[z])})}})}function k(h,M){let N=h;if(!$["dot-notation"])M=[M.join(".")];M.slice(0,-1).forEach(function(z){N=N[z]||{}});let T=M[M.length-1];if(typeof N!=="object")return!1;else return T in N}function KD(h,M,N){let T=h;if(!$["dot-notation"])M=[M.join(".")];M.slice(0,-1).forEach(function($D){if($D=pF($D),typeof T==="object"&&T[$D]===void 0)T[$D]={};if(typeof T[$D]!=="object"||Array.isArray(T[$D])){if(Array.isArray(T[$D]))T[$D].push({});else T[$D]=[T[$D],{}];T=T[$D][T[$D].length-1]}else T=T[$D]});let z=pF(M[M.length-1]),I=S(M.join("."),X.arrays),j=Array.isArray(N),L=$["duplicate-arguments-array"];if(!L&&S(z,X.nargs)){if(L=!0,!fD(T[z])&&X.nargs[z]===1||Array.isArray(T[z])&&T[z].length===X.nargs[z])T[z]=void 0}if(N===nu())T[z]=nu(T[z]);else if(Array.isArray(T[z]))if(L&&I&&j)T[z]=$["flatten-duplicate-arrays"]?T[z].concat(N):(Array.isArray(T[z][0])?T[z]:[T[z]]).concat([N]);else if(!L&&Boolean(I)===Boolean(j))T[z]=N;else T[z]=T[z].concat([N]);else if(T[z]===void 0&&I)T[z]=j?N:[N];else if(L&&!(T[z]===void 0||S(z,X.counts)||S(z,X.bools)))T[z]=[T[z],N];else T[z]=N}function Bu(...h){h.forEach(function(M){Object.keys(M||{}).forEach(function(N){if(X.aliases[N])return;X.aliases[N]=[].concat(f[N]||[]),X.aliases[N].concat(N).forEach(function(T){if(/-/.test(T)&&$["camel-case-expansion"]){let z=nD(T);if(z!==N&&X.aliases[N].indexOf(z)===-1)X.aliases[N].push(z),Z[z]=!0}}),X.aliases[N].concat(N).forEach(function(T){if(T.length>1&&/[A-Z]/.test(T)&&$["camel-case-expansion"]){let z=Qu(T,"-");if(z!==N&&X.aliases[N].indexOf(z)===-1)X.aliases[N].push(z),Z[z]=!0}}),X.aliases[N].forEach(function(T){X.aliases[T]=[N].concat(X.aliases[N].filter(function(z){return T!==z}))})})})}function S(h,M){let N=[].concat(X.aliases[h]||[],h),T=Object.keys(M),z=N.find((I)=>T.includes(I));return z?M[z]:!1}function aD(h){let M=Object.keys(X);return[].concat(M.map((T)=>X[T])).some(function(T){return Array.isArray(T)?T.includes(h):T[h]})}function MF(h,...M){return[].concat(...M).some(function(T){let z=h.match(T);return z&&aD(z[1])})}function x(h){if(h.match(A)||!h.match(/^-[^-]+/))return!1;let M=!0,N,T=h.slice(1).split("");for(let z=0;z<T.length;z++){if(N=h.slice(z+2),!aD(T[z])){M=!1;break}if(T[z+1]&&T[z+1]==="="||N==="-"||/[A-Za-z]/.test(T[z])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(N)||T[z+1]&&T[z+1].match(/\W/))break}return M}function o(h){return $["unknown-options-as-args"]&&BD(h)}function BD(h){if(h=h.replace(/^-{3,}/,"--"),h.match(A))return!1;if(x(h))return!1;return!MF(h,/^-+([^=]+?)=[\s\S]*$/,v,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function c(h){if(!S(h,X.bools)&&!S(h,X.counts)&&`${h}`in G)return G[h];else return zD(e(h))}function zD(h){return{[YD.BOOLEAN]:!0,[YD.STRING]:"",[YD.NUMBER]:void 0,[YD.ARRAY]:[]}[h]}function e(h){let M=YD.BOOLEAN;if(S(h,X.strings))M=YD.STRING;else if(S(h,X.numbers))M=YD.NUMBER;else if(S(h,X.bools))M=YD.BOOLEAN;else if(S(h,X.arrays))M=YD.ARRAY;return M}function fD(h){return h===void 0}function Au(){Object.keys(X.counts).find((h)=>{if(S(h,X.arrays))return n=Error(W("Invalid configuration: %s, opts.count excludes opts.array.",h)),!0;else if(S(h,X.nargs))return n=Error(W("Invalid configuration: %s, opts.count excludes opts.narg.",h)),!0;return!1})}return{aliases:Object.assign({},X.aliases),argv:Object.assign(g,t),configuration:$,defaulted:Object.assign({},O),error:n,newAliases:Object.assign({},Z)}}}function H2(D){let u=[],F=Object.create(null),E=!0;Object.keys(D).forEach(function(C){u.push([].concat(D[C],C))});while(E){E=!1;for(let C=0;C<u.length;C++)for(let f=C+1;f<u.length;f++)if(u[C].filter(function(G){return u[f].indexOf(G)!==-1}).length){u[C]=u[C].concat(u[f]),u.splice(f,1),E=!0;break}}return u.forEach(function(C){C=C.filter(function($,G,J){return J.indexOf($)===G});let f=C.pop();if(f!==void 0&&typeof f==="string")F[f]=C}),F}function nu(D){return D!==void 0?D+1:1}function pF(D){if(D==="__proto__")return"___proto___";return D}function I2(D){return typeof D==="string"&&(D[0]==="'"||D[0]==='"')&&D[D.length-1]===D[0]?D.substring(1,D.length-1):D}import{readFileSync as L2}from"fs";import{createRequire as vF}from"module";var pu,vu,mu,mF=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):20,iF=(vu=(pu=process===null||process===void 0?void 0:process.versions)===null||pu===void 0?void 0:pu.node)!==null&&vu!==void 0?vu:(mu=process===null||process===void 0?void 0:process.version)===null||mu===void 0?void 0:mu.slice(1);if(iF){if(Number(iF.match(/^([^.]+)/)[1])<mF)throw Error(`yargs parser supports a minimum Node.js version of ${mF}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`)}var A2=process?process.env:{},dF=vF?vF(import.meta.url):void 0,oF=new cu({cwd:process.cwd,env:()=>{return A2},format:V2,normalize:_2,resolve:K2,require:(D)=>{if(typeof dF<"u")return dF(D);else if(D.match(/\.json$/))return JSON.parse(L2(D,"utf8"));else throw Error("only .json config files are supported in ESM")}}),fu=function(u,F){return oF.parse(u.slice(),F).argv};fu.detailed=function(D,u){return oF.parse(D.slice(),u)};fu.camelCase=nD;fu.decamelize=Qu;fu.looksLikeNumber=Ou;var iu=fu;import{basename as o2,dirname as k2,extname as g2,relative as y2,resolve as D0,join as l2}from"path";function kF(){if(S2())return 0;return 1}function S2(){return x2()&&!process.defaultApp}function x2(){return!!process.versions.electron}function du(D){return D.slice(kF()+1)}function gF(){return process.argv[kF()]}import{readFileSync as P2,statSync as w2,writeFile as b2}from"fs";import{format as t2}from"util";import{resolve as n2}from"path";var yF={fs:{readFileSync:P2,writeFile:b2},format:t2,resolve:n2,exists:(D)=>{try{return w2(D).isFile()}catch(u){return!1}}};var qD;class lF{constructor(D){D=D||{},this.directory=D.directory||"./locales",this.updateFiles=typeof D.updateFiles==="boolean"?D.updateFiles:!0,this.locale=D.locale||"en",this.fallbackToLanguage=typeof D.fallbackToLanguage==="boolean"?D.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...D){if(typeof arguments[0]!=="string")return this._taggedLiteral(arguments[0],...arguments);let u=D.shift(),F=function(){};if(typeof D[D.length-1]==="function")F=D.pop();if(F=F||function(){},!this.cache[this.locale])this._readLocaleFile();if(!this.cache[this.locale][u]&&this.updateFiles)this.cache[this.locale][u]=u,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:F});else F();return qD.format.apply(qD.format,[this.cache[this.locale][u]||u].concat(D))}__n(){let D=Array.prototype.slice.call(arguments),u=D.shift(),F=D.shift(),E=D.shift(),C=function(){};if(typeof D[D.length-1]==="function")C=D.pop();if(!this.cache[this.locale])this._readLocaleFile();let f=E===1?u:F;if(this.cache[this.locale][u])f=this.cache[this.locale][u][E===1?"one":"other"];if(!this.cache[this.locale][u]&&this.updateFiles)this.cache[this.locale][u]={one:u,other:F},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:C});else C();let $=[f];if(~f.indexOf("%d"))$.push(E);return qD.format.apply(qD.format,$.concat(D))}setLocale(D){this.locale=D}getLocale(){return this.locale}updateLocale(D){if(!this.cache[this.locale])this._readLocaleFile();for(let u in D)if(Object.prototype.hasOwnProperty.call(D,u))this.cache[this.locale][u]=D[u]}_taggedLiteral(D,...u){let F="";return D.forEach(function(E,C){let f=u[C+1];if(F+=E,typeof f<"u")F+="%s"}),this.__.apply(this,[F].concat([].slice.call(u,1)))}_enqueueWrite(D){if(this.writeQueue.push(D),this.writeQueue.length===1)this._processWriteQueue()}_processWriteQueue(){let D=this,u=this.writeQueue[0],F=u.directory,E=u.locale,C=u.cb,f=this._resolveLocaleFile(F,E),$=JSON.stringify(this.cache[E],null,2);qD.fs.writeFile(f,$,"utf-8",function(G){if(D.writeQueue.shift(),D.writeQueue.length>0)D._processWriteQueue();C(G)})}_readLocaleFile(){let D={},u=this._resolveLocaleFile(this.directory,this.locale);try{if(qD.fs.readFileSync)D=JSON.parse(qD.fs.readFileSync(u,"utf-8"))}catch(F){if(F instanceof SyntaxError)F.message="syntax error in "+u;if(F.code==="ENOENT")D={};else throw F}this.cache[this.locale]=D}_resolveLocaleFile(D,u){let F=qD.resolve(D,"./",u+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(F)&&~u.lastIndexOf("_")){let E=qD.resolve(D,"./",u.split("_")[0]+".json");if(this._fileExistsSync(E))F=E}return F}_fileExistsSync(D){return qD.exists(D)}}function sF(D,u){qD=u;let F=new lF(D);return{__:F.__.bind(F),__n:F.__n.bind(F),setLocale:F.setLocale.bind(F),getLocale:F.getLocale.bind(F),updateLocale:F.updateLocale.bind(F),locale:F.locale}}var c2=(D)=>{return sF(D,yF)},rF=c2;var F0=v2(eF(),1);import{createRequire as s2}from"module";import{readFileSync as r2,readdirSync as a2}from"fs";var ou=u0(import.meta.url),e2=ou.substring(0,ou.lastIndexOf("node_modules")),D8=s2(import.meta.url),ku={assert:{notStrictEqual:m2,strictEqual:i2},cliui:bu,findUp:tu,getEnv:(D)=>{return process.env[D]},inspect:d2,getProcessArgvBin:gF,mainFilename:e2||process.cwd(),Parser:iu,path:{basename:o2,dirname:k2,extname:g2,relative:y2,resolve:D0,join:l2},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(D,u)=>process.emitWarning(D,u),execPath:()=>process.execPath,exit:(D)=>{process.exit(D)},nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:r2,readdirSync:a2,require:D8,getCallerFile:()=>{let D=F0.default(3);return D.match(/^file:\/\//)?u0(D):D},stringWidth:jD,y18n:rF({directory:D0(ou,"../../../locales"),updateFiles:!1})};function ZD(D,u,F,E){F.assert.notStrictEqual(D,u,E)}function gu(D,u){u.assert.strictEqual(typeof D,"string")}function Du(D){return Object.keys(D)}function y(D){return!!D&&!!D.then&&typeof D.then==="function"}class DD extends Error{constructor(D){super(D||"yargs error");if(this.name="YError",Error.captureStackTrace)Error.captureStackTrace(this,DD)}}function SD(D){let F=D.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),E=/\.*[\][<>]/g,C=F.shift();if(!C)throw Error(`No command found in: ${D}`);let f={cmd:C.replace(E,""),demanded:[],optional:[]};return F.forEach(($,G)=>{let J=!1;if($=$.replace(/\s/g,""),/\.+[\]>]/.test($)&&G===F.length-1)J=!0;if(/^\[/.test($))f.optional.push({cmd:$.replace(E,"").split("|"),variadic:J});else f.demanded.push({cmd:$.replace(E,"").split("|"),variadic:J})}),f}var u8=["first","second","third","fourth","fifth","sixth"];function q(D,u,F){function E(){return typeof D==="object"?[{demanded:[],optional:[]},D,u]:[SD(`cmd ${D}`),u,F]}try{let C=0,[f,$,G]=E(),J=[].slice.call($);while(J.length&&J[J.length-1]===void 0)J.pop();let Y=G||J.length;if(Y<f.demanded.length)throw new DD(`Not enough arguments provided. Expected ${f.demanded.length} but received ${J.length}.`);let U=f.demanded.length+f.optional.length;if(Y>U)throw new DD(`Too many arguments provided. Expected max ${U} but received ${Y}.`);f.demanded.forEach((Q)=>{let Z=J.shift(),O=E0(Z);if(Q.cmd.filter((X)=>X===O||X==="*").length===0)C0(O,Q.cmd,C);C+=1}),f.optional.forEach((Q)=>{if(J.length===0)return;let Z=J.shift(),O=E0(Z);if(Q.cmd.filter((X)=>X===O||X==="*").length===0)C0(O,Q.cmd,C);C+=1})}catch(C){console.warn(C.stack)}}function E0(D){if(Array.isArray(D))return"array";else if(D===null)return"null";return typeof D}function C0(D,u,F){throw new DD(`Invalid ${u8[F]||"manyith"} argument. Expected ${u.join(" or ")} but received ${D}.`)}class yu{constructor(D){this.globalMiddleware=[],this.frozens=[],this.yargs=D}addMiddleware(D,u,F=!0,E=!1){if(q("<array|function> [boolean] [boolean] [boolean]",[D,u,F],arguments.length),Array.isArray(D)){for(let C=0;C<D.length;C++){if(typeof D[C]!=="function")throw Error("middleware must be a function");let f=D[C];f.applyBeforeValidation=u,f.global=F}Array.prototype.push.apply(this.globalMiddleware,D)}else if(typeof D==="function"){let C=D;C.applyBeforeValidation=u,C.global=F,C.mutates=E,this.globalMiddleware.push(D)}return this.yargs}addCoerceMiddleware(D,u){let F=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter((E)=>{let C=[...F[u]||[],u];if(!E.option)return!0;else return!C.includes(E.option)}),D.option=u,this.addMiddleware(D,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let D=this.frozens.pop();if(D!==void 0)this.globalMiddleware=D}reset(){this.globalMiddleware=this.globalMiddleware.filter((D)=>D.global)}}function B0(D){if(!D)return[];return D.map((u)=>{return u.applyBeforeValidation=!1,u})}function cD(D,u,F,E){return F.reduce((C,f)=>{if(f.applyBeforeValidation!==E)return C;if(f.mutates){if(f.applied)return C;f.applied=!0}if(y(C))return C.then(($)=>Promise.all([$,f($,u)])).then(([$,G])=>Object.assign($,G));else{let $=f(C,u);return y($)?$.then((G)=>Object.assign(C,G)):Object.assign(C,$)}},D)}function pD(D,u,F=(E)=>{throw E}){try{let E=F8(D)?D():D;return y(E)?E.then((C)=>u(C)):u(E)}catch(E){return F(E)}}function F8(D){return typeof D==="function"}var uu=/(^\*)|(^\$0)/;class $0{constructor(D,u,F,E){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=E,this.usage=D,this.globalMiddleware=F,this.validation=u}addDirectory(D,u,F,E){E=E||{},this.requireCache.add(F);let C=this.shim.path.resolve(this.shim.path.dirname(F),D),f=this.shim.readdirSync(C,{recursive:E.recurse?!0:!1});if(!Array.isArray(E.extensions))E.extensions=["js"];let $=typeof E.visit==="function"?E.visit:(G)=>G;for(let G of f){let J=G.toString();if(E.exclude){let U=!1;if(typeof E.exclude==="function")U=E.exclude(J);else U=E.exclude.test(J);if(U)continue}if(E.include){let U=!1;if(typeof E.include==="function")U=E.include(J);else U=E.include.test(J);if(!U)continue}let Y=!1;for(let U of E.extensions)if(J.endsWith(U))Y=!0;if(Y){let U=this.shim.path.join(C,J),Q=u(U),Z=Object.create(null,Object.getOwnPropertyDescriptors({...Q}));if($(Z,U,J)){if(this.requireCache.has(U))continue;else this.requireCache.add(U);if(!Z.command)Z.command=this.shim.path.basename(U,this.shim.path.extname(U));this.addHandler(Z)}}}}addHandler(D,u,F,E,C,f){let $=[],G=B0(C);if(E=E||(()=>{}),Array.isArray(D))if(E8(D))[D,...$]=D;else for(let J of D)this.addHandler(J);else if(B8(D)){let J=Array.isArray(D.command)||typeof D.command==="string"?D.command:null;if(J===null)throw Error(`No command name given for module: ${this.shim.inspect(D)}`);if(D.aliases)J=[].concat(J).concat(D.aliases);this.addHandler(J,this.extractDesc(D),D.builder,D.handler,D.middlewares,D.deprecated);return}else if(f0(F)){this.addHandler([D].concat($),u,F.builder,F.handler,F.middlewares,F.deprecated);return}if(typeof D==="string"){let J=SD(D);$=$.map((Q)=>SD(Q).cmd);let Y=!1,U=[J.cmd].concat($).filter((Q)=>{if(uu.test(Q))return Y=!0,!1;return!0});if(U.length===0&&Y)U.push("$0");if(Y)J.cmd=U[0],$=U.slice(1),D=D.replace(uu,J.cmd);if($.forEach((Q)=>{this.aliasMap[Q]=J.cmd}),u!==!1)this.usage.command(D,u,Y,$,f);if(this.handlers[J.cmd]={original:D,description:u,handler:E,builder:F||{},middlewares:G,deprecated:f,demanded:J.demanded,optional:J.optional},Y)this.defaultCommand=this.handlers[J.cmd]}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(D,u,F,E,C,f){let $=this.handlers[D]||this.handlers[this.aliasMap[D]]||this.defaultCommand,G=u.getInternalMethods().getContext(),J=G.commands.slice(),Y=!D;if(D)G.commands.push(D),G.fullCommands.push($.original);let U=this.applyBuilderUpdateUsageAndParse(Y,$,u,F.aliases,J,E,C,f);return y(U)?U.then((Q)=>this.applyMiddlewareAndGetResult(Y,$,Q.innerArgv,G,C,Q.aliases,u)):this.applyMiddlewareAndGetResult(Y,$,U.innerArgv,G,C,U.aliases,u)}applyBuilderUpdateUsageAndParse(D,u,F,E,C,f,$,G){let J=u.builder,Y=F;if(Tu(J)){F.getInternalMethods().getUsageInstance().freeze();let U=J(F.getInternalMethods().reset(E),G);if(y(U))return U.then((Q)=>{return Y=z0(Q)?Q:F,this.parseAndUpdateUsage(D,u,Y,C,f,$)})}else if(C8(J))F.getInternalMethods().getUsageInstance().freeze(),Y=F.getInternalMethods().reset(E),Object.keys(u.builder).forEach((U)=>{Y.option(U,J[U])});return this.parseAndUpdateUsage(D,u,Y,C,f,$)}parseAndUpdateUsage(D,u,F,E,C,f){if(D)F.getInternalMethods().getUsageInstance().unfreeze(!0);if(this.shouldUpdateUsage(F))F.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(E,u),u.description);let $=F.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,C,f);return y($)?$.then((G)=>({aliases:F.parsed.aliases,innerArgv:G})):{aliases:F.parsed.aliases,innerArgv:$}}shouldUpdateUsage(D){return!D.getInternalMethods().getUsageInstance().getUsageDisabled()&&D.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(D,u){let F=uu.test(u.original)?u.original.replace(uu,"").trim():u.original,E=D.filter((C)=>{return!uu.test(C)});return E.push(F),`$0 ${E.join(" ")}`}handleValidationAndGetResult(D,u,F,E,C,f,$,G){if(!f.getInternalMethods().getHasOutput()){let J=f.getInternalMethods().runValidation(C,G,f.parsed.error,D);F=pD(F,(Y)=>{return J(Y),Y})}if(u.handler&&!f.getInternalMethods().getHasOutput()){f.getInternalMethods().setHasOutput();let J=!!f.getOptions().configuration["populate--"];if(f.getInternalMethods().postProcess(F,J,!1,!1),F=cD(F,f,$,!1),F=pD(F,(Y)=>{let U=u.handler(Y);return y(U)?U.then(()=>Y):Y}),!D)f.getInternalMethods().getUsageInstance().cacheHelpMessage();if(y(F)&&!f.getInternalMethods().hasParseCallback())F.catch((Y)=>{try{f.getInternalMethods().getUsageInstance().fail(null,Y)}catch(U){}})}if(!D)E.commands.pop(),E.fullCommands.pop();return F}applyMiddlewareAndGetResult(D,u,F,E,C,f,$){let G={};if(C)return F;if(!$.getInternalMethods().getHasOutput())G=this.populatePositionals(u,F,E,$);let J=this.globalMiddleware.getMiddleware().slice(0).concat(u.middlewares),Y=cD(F,$,J,!0);return y(Y)?Y.then((U)=>this.handleValidationAndGetResult(D,u,U,E,f,$,J,G)):this.handleValidationAndGetResult(D,u,Y,E,f,$,J,G)}populatePositionals(D,u,F,E){u._=u._.slice(F.commands.length);let C=D.demanded.slice(0),f=D.optional.slice(0),$={};this.validation.positionalCount(C.length,u._.length);while(C.length){let G=C.shift();this.populatePositional(G,u,$)}while(f.length){let G=f.shift();this.populatePositional(G,u,$)}return u._=F.commands.concat(u._.map((G)=>""+G)),this.postProcessPositionals(u,$,this.cmdToParseOptions(D.original),E),$}populatePositional(D,u,F){let E=D.cmd[0];if(D.variadic)F[E]=u._.splice(0).map(String);else if(u._.length)F[E]=[String(u._.shift())]}cmdToParseOptions(D){let u={array:[],default:{},alias:{},demand:{}},F=SD(D);return F.demanded.forEach((E)=>{let[C,...f]=E.cmd;if(E.variadic)u.array.push(C),u.default[C]=[];u.alias[C]=f,u.demand[C]=!0}),F.optional.forEach((E)=>{let[C,...f]=E.cmd;if(E.variadic)u.array.push(C),u.default[C]=[];u.alias[C]=f}),u}postProcessPositionals(D,u,F,E){let C=Object.assign({},E.getOptions());C.default=Object.assign(F.default,C.default);for(let J of Object.keys(F.alias))C.alias[J]=(C.alias[J]||[]).concat(F.alias[J]);C.array=C.array.concat(F.array),C.config={};let f=[];if(Object.keys(u).forEach((J)=>{u[J].map((Y)=>{if(C.configuration["unknown-options-as-args"])C.key[J]=!0;f.push(`--${J}`),f.push(Y)})}),!f.length)return;let $=Object.assign({},C.configuration,{"populate--":!1}),G=this.shim.Parser.detailed(f,Object.assign({},C,{configuration:$}));if(G.error)E.getInternalMethods().getUsageInstance().fail(G.error.message,G.error);else{let J=Object.keys(u);Object.keys(u).forEach((Y)=>{J.push(...G.aliases[Y])}),Object.keys(G.argv).forEach((Y)=>{if(J.includes(Y)){if(!u[Y])u[Y]=G.argv[Y];if(!this.isInConfigs(E,Y)&&!this.isDefaulted(E,Y)&&Object.prototype.hasOwnProperty.call(D,Y)&&Object.prototype.hasOwnProperty.call(G.argv,Y)&&(Array.isArray(D[Y])||Array.isArray(G.argv[Y])))D[Y]=[].concat(D[Y],G.argv[Y]);else D[Y]=G.argv[Y]}})}}isDefaulted(D,u){let{default:F}=D.getOptions();return Object.prototype.hasOwnProperty.call(F,u)||Object.prototype.hasOwnProperty.call(F,this.shim.Parser.camelCase(u))}isInConfigs(D,u){let{configObjects:F}=D.getOptions();return F.some((E)=>Object.prototype.hasOwnProperty.call(E,u))||F.some((E)=>Object.prototype.hasOwnProperty.call(E,this.shim.Parser.camelCase(u)))}runDefaultBuilderOn(D){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(D)){let F=uu.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");D.getInternalMethods().getUsageInstance().usage(F,this.defaultCommand.description)}let u=this.defaultCommand.builder;if(Tu(u))return u(D,!0);else if(!f0(u))Object.keys(u).forEach((F)=>{D.option(F,u[F])});return}extractDesc({describe:D,description:u,desc:F}){for(let E of[D,u,F]){if(typeof E==="string"||E===!1)return E;ZD(E,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let D=this.frozens.pop();ZD(D,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=D}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}}function h0(D,u,F,E){return new $0(D,u,F,E)}function f0(D){return typeof D==="object"&&!!D.builder&&typeof D.handler==="function"}function E8(D){return D.every((u)=>typeof u==="string")}function Tu(D){return typeof D==="function"}function C8(D){return typeof D==="object"}function B8(D){return typeof D==="object"&&!Array.isArray(D)}function xD(D={},u=()=>!0){let F={};return Du(D).forEach((E)=>{if(u(E,D[E]))F[E]=D[E]}),F}function PD(D){if(typeof process>"u")return;[process.stdout,process.stderr].forEach((u)=>{let F=u;if(F._handle&&F.isTTY&&typeof F._handle.setBlocking==="function")F._handle.setBlocking(D)})}function f8(D){return typeof D==="boolean"}function M0(D,u){let F=u.y18n.__,E={},C=[];E.failFn=function(R){C.push(R)};let f=null,$=null,G=!0;E.showHelpOnFail=function(R=!0,_){let[w,i]=typeof R==="string"?[!0,R]:[R,_];if(D.getInternalMethods().isGlobalContext())$=i;return f=i,G=w,E};let J=!1;E.fail=function(R,_){let w=D.getInternalMethods().getLoggerInstance();if(C.length)for(let i=C.length-1;i>=0;--i){let FD=C[i];if(f8(FD)){if(_)throw _;else if(R)throw Error(R)}else FD(R,_,E)}else{if(D.getExitProcess())PD(!0);if(!J){if(J=!0,G)D.showHelp("error"),w.error();if(R||_)w.error(R||_);let i=f||$;if(i){if(R||_)w.error("");w.error(i)}}if(_=_||new DD(R),D.getExitProcess())return D.exit(1);else if(D.getInternalMethods().hasParseCallback())return D.exit(1,_);else throw _}};let Y=[],U=!1;E.usage=(V,R)=>{if(V===null)return U=!0,Y=[],E;return U=!1,Y.push([V,R||""]),E},E.getUsage=()=>{return Y},E.getUsageDisabled=()=>{return U},E.getPositionalGroupName=()=>{return F("Positionals:")};let Q=[];E.example=(V,R)=>{Q.push([V,R||""])};let Z=[];E.command=function(R,_,w,i,FD=!1){if(w)Z=Z.map((m)=>{return m[2]=!1,m});Z.push([R,_||"",w,i,FD])},E.getCommands=()=>Z;let O={};E.describe=function(R,_){if(Array.isArray(R))R.forEach((w)=>{E.describe(w,_)});else if(typeof R==="object")Object.keys(R).forEach((w)=>{E.describe(w,R[w])});else O[R]=_},E.getDescriptions=()=>O;let W=[];E.epilog=(V)=>{W.push(V)};let X=!1,A;E.wrap=(V)=>{X=!0,A=V},E.getWrap=()=>{if(u.getEnv("YARGS_DISABLE_WRAP"))return null;if(!X)A=ID(),X=!0;return A};let v="__yargsString__:";E.deferY18nLookup=(V)=>v+V,E.help=function(){if(t)return t;GD();let R=D.customScriptName?D.$0:u.path.basename(D.$0),_=D.getDemandedOptions(),w=D.getDemandedCommands(),i=D.getDeprecatedOptions(),FD=D.getGroups(),m=D.getOptions(),CD=[];CD=CD.concat(Object.keys(O)),CD=CD.concat(Object.keys(_)),CD=CD.concat(Object.keys(w)),CD=CD.concat(Object.keys(m.default)),CD=CD.filter(ED),CD=Object.keys(CD.reduce((x,o)=>{if(o!=="_")x[o]=!0;return x},{}));let AD=E.getWrap(),k=u.cliui({width:AD,wrap:!!AD});if(!U){if(Y.length)Y.forEach((x)=>{if(k.div({text:`${x[0].replace(/\$0/g,R)}`}),x[1])k.div({text:`${x[1]}`,padding:[1,0,0,0]})}),k.div();else if(Z.length){let x=null;if(w._)x=`${R} <${F("command")}>
14
14
  `;else x=`${R} [${F("command")}]
15
- `;k.div(`${x}`)}}if(X.length>1||X.length===1&&!X[0][2]){k.div(F("Commands:"));let x=D.getInternalMethods().getContext(),o=x.commands.length?`${x.commands.join(" ")} `:"";if(D.getInternalMethods().getParserConfiguration()["sort-commands"]===!0)X=X.sort((c,zD)=>c[0].localeCompare(zD[0]));let BD=R?`${R} `:"";X.forEach((c)=>{let zD=`${BD}${o}${c[0].replace(/^\$0 ?/,"")}`;k.span({text:zD,padding:[0,2,0,2],width:n(X,AD,`${R}${o}`)+4},{text:c[1]});let e=[];if(c[2])e.push(`[${F("default")}]`);if(c[3]&&c[3].length)e.push(`[${F("aliases:")} ${c[3].join(", ")}]`);if(c[4])if(typeof c[4]==="string")e.push(`[${F("deprecated: %s",c[4])}]`);else e.push(`[${F("deprecated")}]`);if(e.length)k.div({text:e.join(" "),padding:[0,0,0,2],align:"right"});else k.div()}),k.div()}let KD=(Object.keys(m.alias)||[]).concat(Object.keys(D.parsed.newAliases)||[]);CD=CD.filter((x)=>!D.parsed.newAliases[x]&&KD.every((o)=>(m.alias[o]||[]).indexOf(x)===-1));let Bu=F("Options:");if(!FD[Bu])FD[Bu]=[];g(CD,m.alias,FD,Bu);let S=(x)=>/^--/.test(Yu(x)),aD=Object.keys(FD).filter((x)=>FD[x].length>0).map((x)=>{let o=FD[x].filter(ED).map((BD)=>{if(KD.includes(BD))return BD;for(let c=0,zD;(zD=KD[c])!==void 0;c++)if((m.alias[zD]||[]).includes(BD))return zD;return BD});return{groupName:x,normalizedKeys:o}}).filter(({normalizedKeys:x})=>x.length>0).map(({groupName:x,normalizedKeys:o})=>{let BD=o.reduce((c,zD)=>{return c[zD]=[zD].concat(m.alias[zD]||[]).map((e)=>{if(x===E.getPositionalGroupName())return e;else return(/^[0-9]$/.test(e)?m.boolean.includes(zD)?"-":"--":e.length>1?"--":"-")+e}).sort((e,fD)=>S(e)===S(fD)?0:S(e)?1:-1).join(", "),c},{});return{groupName:x,normalizedKeys:o,switches:BD}});if(aD.filter(({groupName:x})=>x!==E.getPositionalGroupName()).some(({normalizedKeys:x,switches:o})=>!x.every((BD)=>S(o[BD]))))aD.filter(({groupName:x})=>x!==E.getPositionalGroupName()).forEach(({normalizedKeys:x,switches:o})=>{x.forEach((BD)=>{if(S(o[BD]))o[BD]=f8(o[BD],4)})});if(aD.forEach(({groupName:x,normalizedKeys:o,switches:BD})=>{k.div(x),o.forEach((c)=>{let zD=BD[c],e=O[c]||"",fD=null;if(e.includes(v))e=F(e.substring(v.length));if(m.boolean.includes(c))fD=`[${F("boolean")}]`;if(m.count.includes(c))fD=`[${F("count")}]`;if(m.string.includes(c))fD=`[${F("string")}]`;if(m.normalize.includes(c))fD=`[${F("string")}]`;if(m.array.includes(c))fD=`[${F("array")}]`;if(m.number.includes(c))fD=`[${F("number")}]`;let Au=(N)=>typeof N==="string"?`[${F("deprecated: %s",N)}]`:`[${F("deprecated")}]`,h=[c in i?Au(i[c]):null,fD,c in _?`[${F("required")}]`:null,m.choices&&m.choices[c]?`[${F("choices:")} ${E.stringifiedValues(m.choices[c])}]`:null,a(m.default[c],m.defaultDescription[c])].filter(Boolean).join(" ");k.span({text:Yu(zD),padding:[0,2,0,2+G0(zD)],width:n(BD,AD)+4},e);let M=D.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;if(h&&!M)k.div({text:h,padding:[0,0,0,2],align:"right"});else k.div()}),k.div()}),Q.length)k.div(F("Examples:")),Q.forEach((x)=>{x[0]=x[0].replace(/\$0/g,R)}),Q.forEach((x)=>{if(x[1]==="")k.div({text:x[0],padding:[0,2,0,2]});else k.div({text:x[0],padding:[0,2,0,2],width:n(Q,AD)+4},{text:x[1]})}),k.div();if(W.length>0){let x=W.map((o)=>o.replace(/\$0/g,R)).join(`
15
+ `;k.div(`${x}`)}}if(Z.length>1||Z.length===1&&!Z[0][2]){k.div(F("Commands:"));let x=D.getInternalMethods().getContext(),o=x.commands.length?`${x.commands.join(" ")} `:"";if(D.getInternalMethods().getParserConfiguration()["sort-commands"]===!0)Z=Z.sort((c,zD)=>c[0].localeCompare(zD[0]));let BD=R?`${R} `:"";Z.forEach((c)=>{let zD=`${BD}${o}${c[0].replace(/^\$0 ?/,"")}`;k.span({text:zD,padding:[0,2,0,2],width:n(Z,AD,`${R}${o}`)+4},{text:c[1]});let e=[];if(c[2])e.push(`[${F("default")}]`);if(c[3]&&c[3].length)e.push(`[${F("aliases:")} ${c[3].join(", ")}]`);if(c[4])if(typeof c[4]==="string")e.push(`[${F("deprecated: %s",c[4])}]`);else e.push(`[${F("deprecated")}]`);if(e.length)k.div({text:e.join(" "),padding:[0,0,0,2],align:"right"});else k.div()}),k.div()}let KD=(Object.keys(m.alias)||[]).concat(Object.keys(D.parsed.newAliases)||[]);CD=CD.filter((x)=>!D.parsed.newAliases[x]&&KD.every((o)=>(m.alias[o]||[]).indexOf(x)===-1));let Bu=F("Options:");if(!FD[Bu])FD[Bu]=[];g(CD,m.alias,FD,Bu);let S=(x)=>/^--/.test(Yu(x)),aD=Object.keys(FD).filter((x)=>FD[x].length>0).map((x)=>{let o=FD[x].filter(ED).map((BD)=>{if(KD.includes(BD))return BD;for(let c=0,zD;(zD=KD[c])!==void 0;c++)if((m.alias[zD]||[]).includes(BD))return zD;return BD});return{groupName:x,normalizedKeys:o}}).filter(({normalizedKeys:x})=>x.length>0).map(({groupName:x,normalizedKeys:o})=>{let BD=o.reduce((c,zD)=>{return c[zD]=[zD].concat(m.alias[zD]||[]).map((e)=>{if(x===E.getPositionalGroupName())return e;else return(/^[0-9]$/.test(e)?m.boolean.includes(zD)?"-":"--":e.length>1?"--":"-")+e}).sort((e,fD)=>S(e)===S(fD)?0:S(e)?1:-1).join(", "),c},{});return{groupName:x,normalizedKeys:o,switches:BD}});if(aD.filter(({groupName:x})=>x!==E.getPositionalGroupName()).some(({normalizedKeys:x,switches:o})=>!x.every((BD)=>S(o[BD]))))aD.filter(({groupName:x})=>x!==E.getPositionalGroupName()).forEach(({normalizedKeys:x,switches:o})=>{x.forEach((BD)=>{if(S(o[BD]))o[BD]=$8(o[BD],4)})});if(aD.forEach(({groupName:x,normalizedKeys:o,switches:BD})=>{k.div(x),o.forEach((c)=>{let zD=BD[c],e=O[c]||"",fD=null;if(e.includes(v))e=F(e.substring(v.length));if(m.boolean.includes(c))fD=`[${F("boolean")}]`;if(m.count.includes(c))fD=`[${F("count")}]`;if(m.string.includes(c))fD=`[${F("string")}]`;if(m.normalize.includes(c))fD=`[${F("string")}]`;if(m.array.includes(c))fD=`[${F("array")}]`;if(m.number.includes(c))fD=`[${F("number")}]`;let Au=(N)=>typeof N==="string"?`[${F("deprecated: %s",N)}]`:`[${F("deprecated")}]`,h=[c in i?Au(i[c]):null,fD,c in _?`[${F("required")}]`:null,m.choices&&m.choices[c]?`[${F("choices:")} ${E.stringifiedValues(m.choices[c])}]`:null,a(m.default[c],m.defaultDescription[c])].filter(Boolean).join(" ");k.span({text:Yu(zD),padding:[0,2,0,2+G0(zD)],width:n(BD,AD)+4},e);let M=D.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;if(h&&!M)k.div({text:h,padding:[0,0,0,2],align:"right"});else k.div()}),k.div()}),Q.length)k.div(F("Examples:")),Q.forEach((x)=>{x[0]=x[0].replace(/\$0/g,R)}),Q.forEach((x)=>{if(x[1]==="")k.div({text:x[0],padding:[0,2,0,2]});else k.div({text:x[0],padding:[0,2,0,2],width:n(Q,AD)+4},{text:x[1]})}),k.div();if(W.length>0){let x=W.map((o)=>o.replace(/\$0/g,R)).join(`
16
16
  `);k.div(`${x}
17
- `)}return k.toString().replace(/\s*$/,"")};function n(V,R,_){let w=0;if(!Array.isArray(V))V=Object.values(V).map((i)=>[i]);if(V.forEach((i)=>{w=Math.max(u.stringWidth(_?`${_} ${Yu(i[0])}`:Yu(i[0]))+G0(i[0]),w)}),R)w=Math.min(w,parseInt((R*0.5).toString(),10));return w}function GD(){let V=D.getDemandedOptions(),R=D.getOptions();(Object.keys(R.alias)||[]).forEach((_)=>{R.alias[_].forEach((w)=>{if(O[w])E.describe(_,O[w]);if(w in V)D.demandOption(_,V[w]);if(R.boolean.includes(w))D.boolean(_);if(R.count.includes(w))D.count(_);if(R.string.includes(w))D.string(_);if(R.normalize.includes(w))D.normalize(_);if(R.array.includes(w))D.array(_);if(R.number.includes(w))D.number(_)})})}let t;E.cacheHelpMessage=function(){t=this.help()},E.clearCachedHelpMessage=function(){t=void 0},E.hasCachedHelpMessage=function(){return!!t};function g(V,R,_,w){let i=[],FD=null;return Object.keys(_).forEach((m)=>{i=i.concat(_[m])}),V.forEach((m)=>{if(FD=[m].concat(R[m]),!FD.some((CD)=>i.indexOf(CD)!==-1))_[w].push(m)}),i}function ED(V){return D.getOptions().hiddenOptions.indexOf(V)<0||D.parsed.argv[D.getOptions().showHiddenOpt]}E.showHelp=(V)=>{let R=D.getInternalMethods().getLoggerInstance();if(!V)V="error";(typeof V==="function"?V:R[V])(E.help())},E.functionDescription=(V)=>{return["(",V.name?u.Parser.decamelize(V.name,"-"):F("generated-value"),")"].join("")},E.stringifiedValues=function(R,_){let w="",i=_||", ",FD=[].concat(R);if(!R||!FD.length)return w;return FD.forEach((m)=>{if(w.length)w+=i;w+=JSON.stringify(m)}),w};function a(V,R){let _=`[${F("default:")} `;if(V===void 0&&!R)return null;if(R)_+=R;else switch(typeof V){case"string":_+=`"${V}"`;break;case"object":_+=JSON.stringify(V);break;default:_+=V}return`${_}]`}function ID(){if(u.process.stdColumns)return Math.min(80,u.process.stdColumns);else return 80}let d=null;E.version=(V)=>{d=V},E.showVersion=(V)=>{let R=D.getInternalMethods().getLoggerInstance();if(!V)V="error";(typeof V==="function"?V:R[V])(d)},E.reset=function(R){return f=null,J=!1,Y=[],U=!1,W=[],Q=[],X=[],O=xD(O,(_)=>!R[_]),E};let Cu=[];return E.freeze=function(){Cu.push({failMessage:f,failureOutput:J,usages:Y,usageDisabled:U,epilogs:W,examples:Q,commands:X,descriptions:O})},E.unfreeze=function(R=!1){let _=Cu.pop();if(!_)return;if(R)O={..._.descriptions,...O},X=[..._.commands,...X],Y=[..._.usages,...Y],Q=[..._.examples,...Q],W=[..._.epilogs,...W];else({failMessage:f,failureOutput:J,usages:Y,usageDisabled:U,epilogs:W,examples:Q,commands:X,descriptions:O}=_)},E}function yu(D){return typeof D==="object"}function f8(D,u){return yu(D)?{text:D.text,indentation:D.indentation+u}:{text:D,indentation:u}}function G0(D){return yu(D)?D.indentation:0}function Yu(D){return yu(D)?D.text:D}var X0=`###-begin-{{app_name}}-completions-###
17
+ `)}return k.toString().replace(/\s*$/,"")};function n(V,R,_){let w=0;if(!Array.isArray(V))V=Object.values(V).map((i)=>[i]);if(V.forEach((i)=>{w=Math.max(u.stringWidth(_?`${_} ${Yu(i[0])}`:Yu(i[0]))+G0(i[0]),w)}),R)w=Math.min(w,parseInt((R*0.5).toString(),10));return w}function GD(){let V=D.getDemandedOptions(),R=D.getOptions();(Object.keys(R.alias)||[]).forEach((_)=>{R.alias[_].forEach((w)=>{if(O[w])E.describe(_,O[w]);if(w in V)D.demandOption(_,V[w]);if(R.boolean.includes(w))D.boolean(_);if(R.count.includes(w))D.count(_);if(R.string.includes(w))D.string(_);if(R.normalize.includes(w))D.normalize(_);if(R.array.includes(w))D.array(_);if(R.number.includes(w))D.number(_)})})}let t;E.cacheHelpMessage=function(){t=this.help()},E.clearCachedHelpMessage=function(){t=void 0},E.hasCachedHelpMessage=function(){return!!t};function g(V,R,_,w){let i=[],FD=null;return Object.keys(_).forEach((m)=>{i=i.concat(_[m])}),V.forEach((m)=>{if(FD=[m].concat(R[m]),!FD.some((CD)=>i.indexOf(CD)!==-1))_[w].push(m)}),i}function ED(V){return D.getOptions().hiddenOptions.indexOf(V)<0||D.parsed.argv[D.getOptions().showHiddenOpt]}E.showHelp=(V)=>{let R=D.getInternalMethods().getLoggerInstance();if(!V)V="error";(typeof V==="function"?V:R[V])(E.help())},E.functionDescription=(V)=>{return["(",V.name?u.Parser.decamelize(V.name,"-"):F("generated-value"),")"].join("")},E.stringifiedValues=function(R,_){let w="",i=_||", ",FD=[].concat(R);if(!R||!FD.length)return w;return FD.forEach((m)=>{if(w.length)w+=i;w+=JSON.stringify(m)}),w};function a(V,R){let _=`[${F("default:")} `;if(V===void 0&&!R)return null;if(R)_+=R;else switch(typeof V){case"string":_+=`"${V}"`;break;case"object":_+=JSON.stringify(V);break;default:_+=V}return`${_}]`}function ID(){if(u.process.stdColumns)return Math.min(80,u.process.stdColumns);else return 80}let d=null;E.version=(V)=>{d=V},E.showVersion=(V)=>{let R=D.getInternalMethods().getLoggerInstance();if(!V)V="error";(typeof V==="function"?V:R[V])(d)},E.reset=function(R){return f=null,J=!1,Y=[],U=!1,W=[],Q=[],Z=[],O=xD(O,(_)=>!R[_]),E};let Cu=[];return E.freeze=function(){Cu.push({failMessage:f,failureOutput:J,usages:Y,usageDisabled:U,epilogs:W,examples:Q,commands:Z,descriptions:O})},E.unfreeze=function(R=!1){let _=Cu.pop();if(!_)return;if(R)O={..._.descriptions,...O},Z=[..._.commands,...Z],Y=[..._.usages,...Y],Q=[..._.examples,...Q],W=[..._.epilogs,...W];else({failMessage:f,failureOutput:J,usages:Y,usageDisabled:U,epilogs:W,examples:Q,commands:Z,descriptions:O}=_)},E}function lu(D){return typeof D==="object"}function $8(D,u){return lu(D)?{text:D.text,indentation:D.indentation+u}:{text:D,indentation:u}}function G0(D){return lu(D)?D.indentation:0}function Yu(D){return lu(D)?D.text:D}var Z0=`###-begin-{{app_name}}-completions-###
18
18
  #
19
19
  # yargs command completion script
20
20
  #
@@ -43,7 +43,7 @@ _{{app_name}}_yargs_completions()
43
43
  }
44
44
  complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}
45
45
  ###-end-{{app_name}}-completions-###
46
- `,Z0=`#compdef {{app_name}}
46
+ `,X0=`#compdef {{app_name}}
47
47
  ###-begin-{{app_name}}-completions-###
48
48
  #
49
49
  # yargs command completion script
@@ -70,12 +70,12 @@ else
70
70
  compdef _{{app_name}}_yargs_completions {{app_name}}
71
71
  fi
72
72
  ###-end-{{app_name}}-completions-###
73
- `;class J0{constructor(D,u,F,E){var C,f,$;this.yargs=D,this.usage=u,this.command=F,this.shim=E,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=($=((C=this.shim.getEnv("SHELL"))===null||C===void 0?void 0:C.includes("zsh"))||((f=this.shim.getEnv("ZSH_NAME"))===null||f===void 0?void 0:f.includes("zsh")))!==null&&$!==void 0?$:!1}defaultCompletion(D,u,F,E){let C=this.command.getCommandHandlers();for(let $=0,G=D.length;$<G;++$)if(C[D[$]]&&C[D[$]].builder){let J=C[D[$]].builder;if(Tu(J)){this.indexAfterLastReset=$+1;let Y=this.yargs.getInternalMethods().reset();return J(Y,!0),Y.argv}}let f=[];this.commandCompletions(f,D,F),this.optionCompletions(f,D,u,F),this.choicesFromOptionsCompletions(f,D,u,F),this.choicesFromPositionalsCompletions(f,D,u,F),E(null,f)}commandCompletions(D,u,F){let E=this.yargs.getInternalMethods().getContext().commands;if(!F.match(/^-/)&&E[E.length-1]!==F&&!this.previousArgHasChoices(u))this.usage.getCommands().forEach((C)=>{let f=SD(C[0]).cmd;if(u.indexOf(f)===-1)if(!this.zshShell)D.push(f);else{let $=C[1]||"";D.push(f.replace(/:/g,"\\:")+":"+$)}})}optionCompletions(D,u,F,E){if((E.match(/^-/)||E===""&&D.length===0)&&!this.previousArgHasChoices(u)){let C=this.yargs.getOptions(),f=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(C.key).forEach(($)=>{let G=!!C.configuration["boolean-negation"]&&C.boolean.includes($);if(!f.includes($)&&!C.hiddenOptions.includes($)&&!this.argsContainKey(u,$,G))this.completeOptionKey($,D,E,G&&!!C.default[$])})}}choicesFromOptionsCompletions(D,u,F,E){if(this.previousArgHasChoices(u)){let C=this.getPreviousArgChoices(u);if(C&&C.length>0)D.push(...C.map((f)=>f.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(D,u,F,E){if(E===""&&D.length>0&&this.previousArgHasChoices(u))return;let C=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],f=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),$=C[F._.length-f-1];if(!$)return;let G=this.yargs.getOptions().choices[$]||[];for(let J of G)if(J.startsWith(E))D.push(J.replace(/:/g,"\\:"))}getPreviousArgChoices(D){if(D.length<1)return;let u=D[D.length-1],F="";if(!u.startsWith("-")&&D.length>1)F=u,u=D[D.length-2];if(!u.startsWith("-"))return;let E=u.replace(/^-+/,""),C=this.yargs.getOptions(),f=[E,...this.yargs.getAliases()[E]||[]],$;for(let G of f)if(Object.prototype.hasOwnProperty.call(C.key,G)&&Array.isArray(C.choices[G])){$=C.choices[G];break}if($)return $.filter((G)=>!F||G.startsWith(F))}previousArgHasChoices(D){let u=this.getPreviousArgChoices(D);return u!==void 0&&u.length>0}argsContainKey(D,u,F){let E=(C)=>D.indexOf((/^[^0-9]$/.test(C)?"-":"--")+C)!==-1;if(E(u))return!0;if(F&&E(`no-${u}`))return!0;if(this.aliases){for(let C of this.aliases[u])if(E(C))return!0}return!1}completeOptionKey(D,u,F,E){var C,f,$,G;let J=D;if(this.zshShell){let X=this.usage.getDescriptions(),O=(f=(C=this===null||this===void 0?void 0:this.aliases)===null||C===void 0?void 0:C[D])===null||f===void 0?void 0:f.find((A)=>{let v=X[A];return typeof v==="string"&&v.length>0}),W=O?X[O]:void 0,Z=(G=($=X[D])!==null&&$!==void 0?$:W)!==null&&G!==void 0?G:"";J=`${D.replace(/:/g,"\\:")}:${Z.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let Y=(X)=>/^--/.test(X),U=(X)=>/^[^0-9]$/.test(X),Q=!Y(F)&&U(D)?"-":"--";if(u.push(Q+J),E)u.push(Q+"no-"+J)}customCompletion(D,u,F,E){if(XD(this.customCompletionFunction,null,this.shim),h8(this.customCompletionFunction)){let C=this.customCompletionFunction(F,u);if(l(C))return C.then((f)=>{this.shim.process.nextTick(()=>{E(null,f)})}).catch((f)=>{this.shim.process.nextTick(()=>{E(f,void 0)})});return E(null,C)}else if(z8(this.customCompletionFunction))return this.customCompletionFunction(F,u,(C=E)=>this.defaultCompletion(D,u,F,C),(C)=>{E(null,C)});else return this.customCompletionFunction(F,u,(C)=>{E(null,C)})}getCompletion(D,u){let F=D.length?D[D.length-1]:"",E=this.yargs.parse(D,!0),C=this.customCompletionFunction?(f)=>this.customCompletion(D,f,F,u):(f)=>this.defaultCompletion(D,f,F,u);return l(E)?E.then(C):C(E)}generateCompletionScript(D,u){let F=this.zshShell?Z0:X0,E=this.shim.path.basename(D);if(D.match(/\.js$/))D=`./${D}`;return F=F.replace(/{{app_name}}/g,E),F=F.replace(/{{completion_command}}/g,u),F.replace(/{{app_path}}/g,D)}registerFunction(D){this.customCompletionFunction=D}setParsed(D){this.aliases=D.aliases}}function Q0(D,u,F,E){return new J0(D,u,F,E)}function h8(D){return D.length<3}function z8(D){return D.length>3}function O0(D,u){if(D.length===0)return u.length;if(u.length===0)return D.length;let F=[],E;for(E=0;E<=u.length;E++)F[E]=[E];let C;for(C=0;C<=D.length;C++)F[0][C]=C;for(E=1;E<=u.length;E++)for(C=1;C<=D.length;C++)if(u.charAt(E-1)===D.charAt(C-1))F[E][C]=F[E-1][C-1];else if(E>1&&C>1&&u.charAt(E-2)===D.charAt(C-1)&&u.charAt(E-1)===D.charAt(C-2))F[E][C]=F[E-2][C-2]+1;else F[E][C]=Math.min(F[E-1][C-1]+1,Math.min(F[E][C-1]+1,F[E-1][C]+1));return F[u.length][D.length]}var T0=["$0","--","_"];function Y0(D,u,F){let E=F.y18n.__,C=F.y18n.__n,f={};f.nonOptionCount=function(Q){let X=D.getDemandedCommands(),W=Q._.length+(Q["--"]?Q["--"].length:0)-D.getInternalMethods().getContext().commands.length;if(X._&&(W<X._.min||W>X._.max)){if(W<X._.min)if(X._.minMsg!==void 0)u.fail(X._.minMsg?X._.minMsg.replace(/\$0/g,W.toString()).replace(/\$1/,X._.min.toString()):null);else u.fail(C("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",W,W.toString(),X._.min.toString()));else if(W>X._.max)if(X._.maxMsg!==void 0)u.fail(X._.maxMsg?X._.maxMsg.replace(/\$0/g,W.toString()).replace(/\$1/,X._.max.toString()):null);else u.fail(C("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",W,W.toString(),X._.max.toString()))}},f.positionalCount=function(Q,X){if(X<Q)u.fail(C("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",X,X+"",Q+""))},f.requiredArguments=function(Q,X){let O=null;for(let W of Object.keys(X))if(!Object.prototype.hasOwnProperty.call(Q,W)||typeof Q[W]>"u")O=O||{},O[W]=X[W];if(O){let W=[];for(let A of Object.keys(O)){let v=O[A];if(v&&W.indexOf(v)<0)W.push(v)}let Z=W.length?`
73
+ `;class J0{constructor(D,u,F,E){var C,f,$;this.yargs=D,this.usage=u,this.command=F,this.shim=E,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=($=((C=this.shim.getEnv("SHELL"))===null||C===void 0?void 0:C.includes("zsh"))||((f=this.shim.getEnv("ZSH_NAME"))===null||f===void 0?void 0:f.includes("zsh")))!==null&&$!==void 0?$:!1}defaultCompletion(D,u,F,E){let C=this.command.getCommandHandlers();for(let $=0,G=D.length;$<G;++$)if(C[D[$]]&&C[D[$]].builder){let J=C[D[$]].builder;if(Tu(J)){this.indexAfterLastReset=$+1;let Y=this.yargs.getInternalMethods().reset();return J(Y,!0),Y.argv}}let f=[];this.commandCompletions(f,D,F),this.optionCompletions(f,D,u,F),this.choicesFromOptionsCompletions(f,D,u,F),this.choicesFromPositionalsCompletions(f,D,u,F),E(null,f)}commandCompletions(D,u,F){let E=this.yargs.getInternalMethods().getContext().commands;if(!F.match(/^-/)&&E[E.length-1]!==F&&!this.previousArgHasChoices(u))this.usage.getCommands().forEach((C)=>{let f=SD(C[0]).cmd;if(u.indexOf(f)===-1)if(!this.zshShell)D.push(f);else{let $=C[1]||"";D.push(f.replace(/:/g,"\\:")+":"+$)}})}optionCompletions(D,u,F,E){if((E.match(/^-/)||E===""&&D.length===0)&&!this.previousArgHasChoices(u)){let C=this.yargs.getOptions(),f=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(C.key).forEach(($)=>{let G=!!C.configuration["boolean-negation"]&&C.boolean.includes($);if(!f.includes($)&&!C.hiddenOptions.includes($)&&!this.argsContainKey(u,$,G))this.completeOptionKey($,D,E,G&&!!C.default[$])})}}choicesFromOptionsCompletions(D,u,F,E){if(this.previousArgHasChoices(u)){let C=this.getPreviousArgChoices(u);if(C&&C.length>0)D.push(...C.map((f)=>f.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(D,u,F,E){if(E===""&&D.length>0&&this.previousArgHasChoices(u))return;let C=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],f=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),$=C[F._.length-f-1];if(!$)return;let G=this.yargs.getOptions().choices[$]||[];for(let J of G)if(J.startsWith(E))D.push(J.replace(/:/g,"\\:"))}getPreviousArgChoices(D){if(D.length<1)return;let u=D[D.length-1],F="";if(!u.startsWith("-")&&D.length>1)F=u,u=D[D.length-2];if(!u.startsWith("-"))return;let E=u.replace(/^-+/,""),C=this.yargs.getOptions(),f=[E,...this.yargs.getAliases()[E]||[]],$;for(let G of f)if(Object.prototype.hasOwnProperty.call(C.key,G)&&Array.isArray(C.choices[G])){$=C.choices[G];break}if($)return $.filter((G)=>!F||G.startsWith(F))}previousArgHasChoices(D){let u=this.getPreviousArgChoices(D);return u!==void 0&&u.length>0}argsContainKey(D,u,F){let E=(C)=>D.indexOf((/^[^0-9]$/.test(C)?"-":"--")+C)!==-1;if(E(u))return!0;if(F&&E(`no-${u}`))return!0;if(this.aliases){for(let C of this.aliases[u])if(E(C))return!0}return!1}completeOptionKey(D,u,F,E){var C,f,$,G;let J=D;if(this.zshShell){let Z=this.usage.getDescriptions(),O=(f=(C=this===null||this===void 0?void 0:this.aliases)===null||C===void 0?void 0:C[D])===null||f===void 0?void 0:f.find((A)=>{let v=Z[A];return typeof v==="string"&&v.length>0}),W=O?Z[O]:void 0,X=(G=($=Z[D])!==null&&$!==void 0?$:W)!==null&&G!==void 0?G:"";J=`${D.replace(/:/g,"\\:")}:${X.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let Y=(Z)=>/^--/.test(Z),U=(Z)=>/^[^0-9]$/.test(Z),Q=!Y(F)&&U(D)?"-":"--";if(u.push(Q+J),E)u.push(Q+"no-"+J)}customCompletion(D,u,F,E){if(ZD(this.customCompletionFunction,null,this.shim),z8(this.customCompletionFunction)){let C=this.customCompletionFunction(F,u);if(y(C))return C.then((f)=>{this.shim.process.nextTick(()=>{E(null,f)})}).catch((f)=>{this.shim.process.nextTick(()=>{E(f,void 0)})});return E(null,C)}else if(G8(this.customCompletionFunction))return this.customCompletionFunction(F,u,(C=E)=>this.defaultCompletion(D,u,F,C),(C)=>{E(null,C)});else return this.customCompletionFunction(F,u,(C)=>{E(null,C)})}getCompletion(D,u){let F=D.length?D[D.length-1]:"",E=this.yargs.parse(D,!0),C=this.customCompletionFunction?(f)=>this.customCompletion(D,f,F,u):(f)=>this.defaultCompletion(D,f,F,u);return y(E)?E.then(C):C(E)}generateCompletionScript(D,u){let F=this.zshShell?X0:Z0,E=this.shim.path.basename(D);if(D.match(/\.js$/))D=`./${D}`;return F=F.replace(/{{app_name}}/g,E),F=F.replace(/{{completion_command}}/g,u),F.replace(/{{app_path}}/g,D)}registerFunction(D){this.customCompletionFunction=D}setParsed(D){this.aliases=D.aliases}}function Q0(D,u,F,E){return new J0(D,u,F,E)}function z8(D){return D.length<3}function G8(D){return D.length>3}function O0(D,u){if(D.length===0)return u.length;if(u.length===0)return D.length;let F=[],E;for(E=0;E<=u.length;E++)F[E]=[E];let C;for(C=0;C<=D.length;C++)F[0][C]=C;for(E=1;E<=u.length;E++)for(C=1;C<=D.length;C++)if(u.charAt(E-1)===D.charAt(C-1))F[E][C]=F[E-1][C-1];else if(E>1&&C>1&&u.charAt(E-2)===D.charAt(C-1)&&u.charAt(E-1)===D.charAt(C-2))F[E][C]=F[E-2][C-2]+1;else F[E][C]=Math.min(F[E-1][C-1]+1,Math.min(F[E][C-1]+1,F[E-1][C]+1));return F[u.length][D.length]}var T0=["$0","--","_"];function Y0(D,u,F){let E=F.y18n.__,C=F.y18n.__n,f={};f.nonOptionCount=function(Q){let Z=D.getDemandedCommands(),W=Q._.length+(Q["--"]?Q["--"].length:0)-D.getInternalMethods().getContext().commands.length;if(Z._&&(W<Z._.min||W>Z._.max)){if(W<Z._.min)if(Z._.minMsg!==void 0)u.fail(Z._.minMsg?Z._.minMsg.replace(/\$0/g,W.toString()).replace(/\$1/,Z._.min.toString()):null);else u.fail(C("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",W,W.toString(),Z._.min.toString()));else if(W>Z._.max)if(Z._.maxMsg!==void 0)u.fail(Z._.maxMsg?Z._.maxMsg.replace(/\$0/g,W.toString()).replace(/\$1/,Z._.max.toString()):null);else u.fail(C("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",W,W.toString(),Z._.max.toString()))}},f.positionalCount=function(Q,Z){if(Z<Q)u.fail(C("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",Z,Z+"",Q+""))},f.requiredArguments=function(Q,Z){let O=null;for(let W of Object.keys(Z))if(!Object.prototype.hasOwnProperty.call(Q,W)||typeof Q[W]>"u")O=O||{},O[W]=Z[W];if(O){let W=[];for(let A of Object.keys(O)){let v=O[A];if(v&&W.indexOf(v)<0)W.push(v)}let X=W.length?`
74
74
  ${W.join(`
75
- `)}`:"";u.fail(C("Missing required argument: %s","Missing required arguments: %s",Object.keys(O).length,Object.keys(O).join(", ")+Z))}},f.unknownArguments=function(Q,X,O,W,Z=!0){var A;let v=D.getInternalMethods().getCommandInstance().getCommands(),n=[],GD=D.getInternalMethods().getContext();if(Object.keys(Q).forEach((t)=>{if(!T0.includes(t)&&!Object.prototype.hasOwnProperty.call(O,t)&&!Object.prototype.hasOwnProperty.call(D.getInternalMethods().getParseContext(),t)&&!f.isValidAndSomeAliasIsNotNew(t,X))n.push(t)}),Z&&(GD.commands.length>0||v.length>0||W))Q._.slice(GD.commands.length).forEach((t)=>{if(!v.includes(""+t))n.push(""+t)});if(Z){let g=((A=D.getDemandedCommands()._)===null||A===void 0?void 0:A.max)||0,ED=GD.commands.length+g;if(ED<Q._.length)Q._.slice(ED).forEach((a)=>{if(a=String(a),!GD.commands.includes(a)&&!n.includes(a))n.push(a)})}if(n.length)u.fail(C("Unknown argument: %s","Unknown arguments: %s",n.length,n.map((t)=>t.trim()?t:`"${t}"`).join(", ")))},f.unknownCommands=function(Q){let X=D.getInternalMethods().getCommandInstance().getCommands(),O=[],W=D.getInternalMethods().getContext();if(W.commands.length>0||X.length>0)Q._.slice(W.commands.length).forEach((Z)=>{if(!X.includes(""+Z))O.push(""+Z)});if(O.length>0)return u.fail(C("Unknown command: %s","Unknown commands: %s",O.length,O.join(", "))),!0;else return!1},f.isValidAndSomeAliasIsNotNew=function(Q,X){if(!Object.prototype.hasOwnProperty.call(X,Q))return!1;let O=D.parsed.newAliases;return[Q,...X[Q]].some((W)=>!Object.prototype.hasOwnProperty.call(O,W)||!O[Q])},f.limitedChoices=function(Q){let X=D.getOptions(),O={};if(!Object.keys(X.choices).length)return;Object.keys(Q).forEach((A)=>{if(T0.indexOf(A)===-1&&Object.prototype.hasOwnProperty.call(X.choices,A))[].concat(Q[A]).forEach((v)=>{if(X.choices[A].indexOf(v)===-1&&v!==void 0)O[A]=(O[A]||[]).concat(v)})});let W=Object.keys(O);if(!W.length)return;let Z=E("Invalid values:");W.forEach((A)=>{Z+=`
76
- ${E("Argument: %s, Given: %s, Choices: %s",A,u.stringifiedValues(O[A]),u.stringifiedValues(X.choices[A]))}`}),u.fail(Z)};let $={};f.implies=function(Q,X){if(q("<string|object> [array|number|string]",[Q,X],arguments.length),typeof Q==="object")Object.keys(Q).forEach((O)=>{f.implies(O,Q[O])});else{if(D.global(Q),!$[Q])$[Q]=[];if(Array.isArray(X))X.forEach((O)=>f.implies(Q,O));else XD(X,void 0,F),$[Q].push(X)}},f.getImplied=function(){return $};function G(U,Q){let X=Number(Q);if(Q=isNaN(X)?Q:X,typeof Q==="number")Q=U._.length>=Q;else if(Q.match(/^--no-.+/))Q=Q.match(/^--no-(.+)/)[1],Q=!Object.prototype.hasOwnProperty.call(U,Q);else Q=Object.prototype.hasOwnProperty.call(U,Q);return Q}f.implications=function(Q){let X=[];if(Object.keys($).forEach((O)=>{let W=O;($[O]||[]).forEach((Z)=>{let A=W,v=Z;if(A=G(Q,A),Z=G(Q,Z),A&&!Z)X.push(` ${W} -> ${v}`)})}),X.length){let O=`${E("Implications failed:")}
77
- `;X.forEach((W)=>{O+=W}),u.fail(O)}};let J={};f.conflicts=function(Q,X){if(q("<string|object> [array|string]",[Q,X],arguments.length),typeof Q==="object")Object.keys(Q).forEach((O)=>{f.conflicts(O,Q[O])});else{if(D.global(Q),!J[Q])J[Q]=[];if(Array.isArray(X))X.forEach((O)=>f.conflicts(Q,O));else J[Q].push(X)}},f.getConflicting=()=>J,f.conflicting=function(Q){if(Object.keys(Q).forEach((X)=>{if(J[X])J[X].forEach((O)=>{if(O&&Q[X]!==void 0&&Q[O]!==void 0)u.fail(E("Arguments %s and %s are mutually exclusive",X,O))})}),D.getInternalMethods().getParserConfiguration()["strip-dashed"])Object.keys(J).forEach((X)=>{J[X].forEach((O)=>{if(O&&Q[F.Parser.camelCase(X)]!==void 0&&Q[F.Parser.camelCase(O)]!==void 0)u.fail(E("Arguments %s and %s are mutually exclusive",X,O))})})},f.recommendCommands=function(Q,X){X=X.sort((A,v)=>v.length-A.length);let W=null,Z=1/0;for(let A=0,v;(v=X[A])!==void 0;A++){let n=O0(Q,v);if(n<=3&&n<Z)Z=n,W=v}if(W)u.fail(E("Did you mean %s?",W))},f.reset=function(Q){return $=xD($,(X)=>!Q[X]),J=xD(J,(X)=>!Q[X]),f};let Y=[];return f.freeze=function(){Y.push({implied:$,conflicting:J})},f.unfreeze=function(){let Q=Y.pop();XD(Q,void 0,F),{implied:$,conflicting:J}=Q},f}var su=[],$u;function hu(D,u,F,E){$u=E;let C={};if(Object.prototype.hasOwnProperty.call(D,"extends")){if(typeof D.extends!=="string")return C;let f=/\.json|\..*rc$/.test(D.extends),$=null;if(!f)try{$=import.meta.resolve(D.extends)}catch(G){return D}else $=M8(u,D.extends);G8($),su.push($),C=f?JSON.parse($u.readFileSync($,"utf8")):E.require(D.extends),delete D.extends,C=hu(C,$u.path.dirname($),F,$u)}return su=[],F?W0(C,D):Object.assign({},C,D)}function G8(D){if(su.indexOf(D)>-1)throw new DD(`Circular extended configurations: '${D}'.`)}function M8(D,u){return $u.path.resolve(D,u)}function W0(D,u){let F={};function E(C){return C&&typeof C==="object"&&!Array.isArray(C)}Object.assign(F,D);for(let C of Object.keys(u))if(E(u[C])&&E(F[C]))F[C]=W0(D[C],u[C]);else F[C]=u[C];return F}var H=function(D,u,F,E,C){if(E==="m")throw TypeError("Private method is not writable");if(E==="a"&&!C)throw TypeError("Private accessor was defined without a setter");if(typeof u==="function"?D!==u||!C:!u.has(D))throw TypeError("Cannot write private member to an object whose class did not declare it");return E==="a"?C.call(D,F):C?C.value=F:u.set(D,F),F},B=function(D,u,F,E){if(F==="a"&&!E)throw TypeError("Private accessor was defined without a getter");if(typeof u==="function"?D!==u||!E:!u.has(D))throw TypeError("Cannot read private member from an object whose class did not declare it");return F==="m"?E:F==="a"?E.call(D):E?E.value:u.get(D)},uD,vD,zu,ZD,QD,Wu,wD,mD,Uu,WD,Nu,UD,VD,OD,ND,Ru,iD,hD,K,ju,qu,TD,dD,Fu,oD,bD,Hu,P,kD,gD,lD,b,Iu,_D,r;function c0(D){return(u=[],F=D.process.cwd(),E)=>{let C=new p0(u,F,E,D);return Object.defineProperty(C,"argv",{get:()=>{return C.parse()},enumerable:!0}),C.help(),C.version(),C}}var U0=Symbol("copyDoubleDash"),N0=Symbol("copyDoubleDash"),ru=Symbol("deleteFromParserHintObject"),R0=Symbol("emitWarning"),j0=Symbol("freeze"),q0=Symbol("getDollarZero"),yD=Symbol("getParserConfiguration"),H0=Symbol("getUsageConfiguration"),au=Symbol("guessLocale"),I0=Symbol("guessVersion"),V0=Symbol("parsePositionalNumbers"),eu=Symbol("pkgUp"),tD=Symbol("populateParserHintArray"),Eu=Symbol("populateParserHintSingleValueDictionary"),DF=Symbol("populateParserHintArrayDictionary"),uF=Symbol("populateParserHintDictionary"),FF=Symbol("sanitizeKey"),EF=Symbol("setKey"),CF=Symbol("unfreeze"),_0=Symbol("validateAsync"),K0=Symbol("getCommandInstance"),L0=Symbol("getContext"),A0=Symbol("getHasOutput"),S0=Symbol("getLoggerInstance"),x0=Symbol("getParseContext"),P0=Symbol("getUsageInstance"),w0=Symbol("getValidationInstance"),Vu=Symbol("hasParseCallback"),b0=Symbol("isGlobalContext"),sD=Symbol("postProcess"),t0=Symbol("rebase"),BF=Symbol("reset"),Gu=Symbol("runYargsParserAndExecuteCommands"),fF=Symbol("runValidation"),n0=Symbol("setHasOutput"),rD=Symbol("kTrackManuallySetKeys"),X8="en_US";class p0{constructor(D=[],u,F,E){this.customScriptName=!1,this.parsed=!1,uD.set(this,void 0),vD.set(this,void 0),zu.set(this,{commands:[],fullCommands:[]}),ZD.set(this,null),QD.set(this,null),Wu.set(this,"show-hidden"),wD.set(this,null),mD.set(this,!0),Uu.set(this,{}),WD.set(this,!0),Nu.set(this,[]),UD.set(this,void 0),VD.set(this,{}),OD.set(this,!1),ND.set(this,null),Ru.set(this,!0),iD.set(this,void 0),hD.set(this,""),K.set(this,void 0),ju.set(this,void 0),qu.set(this,{}),TD.set(this,null),dD.set(this,null),Fu.set(this,{}),oD.set(this,{}),bD.set(this,void 0),Hu.set(this,!1),P.set(this,void 0),kD.set(this,!1),gD.set(this,!1),lD.set(this,!1),b.set(this,void 0),Iu.set(this,{}),_D.set(this,null),r.set(this,void 0),H(this,P,E,"f"),H(this,bD,D,"f"),H(this,vD,u,"f"),H(this,ju,F,"f"),H(this,UD,new lu(this),"f"),this.$0=this[q0](),this[BF](),H(this,uD,B(this,uD,"f"),"f"),H(this,b,B(this,b,"f"),"f"),H(this,r,B(this,r,"f"),"f"),H(this,K,B(this,K,"f"),"f"),B(this,K,"f").showHiddenOpt=B(this,Wu,"f"),H(this,iD,this[N0](),"f"),B(this,P,"f").y18n.setLocale(X8)}addHelpOpt(D,u){if(q("[string|boolean] [string]",[D,u],arguments.length),B(this,ND,"f"))this[ru](B(this,ND,"f")),H(this,ND,null,"f");if(D===!1&&u===void 0)return this;return H(this,ND,typeof D==="string"?D:"help","f"),this.boolean(B(this,ND,"f")),this.describe(B(this,ND,"f"),u||B(this,b,"f").deferY18nLookup("Show help")),this}help(D,u){return this.addHelpOpt(D,u)}addShowHiddenOpt(D,u){if(q("[string|boolean] [string]",[D,u],arguments.length),D===!1&&u===void 0)return this;let F=typeof D==="string"?D:B(this,Wu,"f");return this.boolean(F),this.describe(F,u||B(this,b,"f").deferY18nLookup("Show hidden options")),B(this,K,"f").showHiddenOpt=F,this}showHidden(D,u){return this.addShowHiddenOpt(D,u)}alias(D,u){return q("<object|string|array> [string|array]",[D,u],arguments.length),this[DF](this.alias.bind(this),"alias",D,u),this}array(D){return q("<array|string>",[D],arguments.length),this[tD]("array",D),this[rD](D),this}boolean(D){return q("<array|string>",[D],arguments.length),this[tD]("boolean",D),this[rD](D),this}check(D,u){return q("<function> [boolean]",[D,u],arguments.length),this.middleware((F,E)=>{return pD(()=>{return D(F,E.getOptions())},(C)=>{if(!C)B(this,b,"f").fail(B(this,P,"f").y18n.__("Argument check failed: %s",D.toString()));else if(typeof C==="string"||C instanceof Error)B(this,b,"f").fail(C.toString(),C);return F},(C)=>{return B(this,b,"f").fail(C.message?C.message:C.toString(),C),F})},!1,u),this}choices(D,u){return q("<object|string|array> [string|array]",[D,u],arguments.length),this[DF](this.choices.bind(this),"choices",D,u),this}coerce(D,u){if(q("<object|string|array> [function]",[D,u],arguments.length),Array.isArray(D)){if(!u)throw new DD("coerce callback must be provided");for(let E of D)this.coerce(E,u);return this}else if(typeof D==="object"){for(let E of Object.keys(D))this.coerce(E,D[E]);return this}if(!u)throw new DD("coerce callback must be provided");let F=D;return B(this,K,"f").key[F]=!0,B(this,UD,"f").addCoerceMiddleware((E,C)=>{var f;let $=(f=C.getAliases()[F])!==null&&f!==void 0?f:[],G=[F,...$].filter((J)=>Object.prototype.hasOwnProperty.call(E,J));if(G.length===0)return E;return pD(()=>{return u(E[G[0]])},(J)=>{return G.forEach((Y)=>{E[Y]=J}),E},(J)=>{throw new DD(J.message)})},F),this}conflicts(D,u){return q("<string|object> [string|array]",[D,u],arguments.length),B(this,r,"f").conflicts(D,u),this}config(D="config",u,F){if(q("[object|string] [string|function] [function]",[D,u,F],arguments.length),typeof D==="object"&&!Array.isArray(D))return D=hu(D,B(this,vD,"f"),this[yD]()["deep-merge-config"]||!1,B(this,P,"f")),B(this,K,"f").configObjects=(B(this,K,"f").configObjects||[]).concat(D),this;if(typeof u==="function")F=u,u=void 0;return this.describe(D,u||B(this,b,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(D)?D:[D]).forEach((E)=>{B(this,K,"f").config[E]=F||!0}),this}completion(D,u,F){if(q("[string] [string|boolean|function] [function]",[D,u,F],arguments.length),typeof u==="function")F=u,u=void 0;if(H(this,QD,D||B(this,QD,"f")||"completion","f"),!u&&u!==!1)u="generate completion script";if(this.command(B(this,QD,"f"),u),F)B(this,ZD,"f").registerFunction(F);return this}command(D,u,F,E,C,f){return q("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[D,u,F,E,C,f],arguments.length),B(this,uD,"f").addHandler(D,u,F,E,C,f),this}commands(D,u,F,E,C,f){return this.command(D,u,F,E,C,f)}commandDir(D,u){q("<string> [object]",[D,u],arguments.length);let F=B(this,ju,"f")||B(this,P,"f").require;return B(this,uD,"f").addDirectory(D,F,B(this,P,"f").getCallerFile(),u),this}count(D){return q("<array|string>",[D],arguments.length),this[tD]("count",D),this[rD](D),this}default(D,u,F){if(q("<object|string|array> [*] [string]",[D,u,F],arguments.length),F)gu(D,B(this,P,"f")),B(this,K,"f").defaultDescription[D]=F;if(typeof u==="function"){if(gu(D,B(this,P,"f")),!B(this,K,"f").defaultDescription[D])B(this,K,"f").defaultDescription[D]=B(this,b,"f").functionDescription(u);u=u.call()}return this[Eu](this.default.bind(this),"default",D,u),this}defaults(D,u,F){return this.default(D,u,F)}demandCommand(D=1,u,F,E){if(q("[number] [number|string] [string|null|undefined] [string|null|undefined]",[D,u,F,E],arguments.length),typeof u!=="number")F=u,u=1/0;return this.global("_",!1),B(this,K,"f").demandedCommands._={min:D,max:u,minMsg:F,maxMsg:E},this}demand(D,u,F){if(Array.isArray(u))u.forEach((E)=>{XD(F,!0,B(this,P,"f")),this.demandOption(E,F)}),u=1/0;else if(typeof u!=="number")F=u,u=1/0;if(typeof D==="number")XD(F,!0,B(this,P,"f")),this.demandCommand(D,u,F,F);else if(Array.isArray(D))D.forEach((E)=>{XD(F,!0,B(this,P,"f")),this.demandOption(E,F)});else if(typeof F==="string")this.demandOption(D,F);else if(F===!0||typeof F>"u")this.demandOption(D);return this}demandOption(D,u){return q("<object|string|array> [string]",[D,u],arguments.length),this[Eu](this.demandOption.bind(this),"demandedOptions",D,u),this}deprecateOption(D,u){return q("<string> [string|boolean]",[D,u],arguments.length),B(this,K,"f").deprecatedOptions[D]=u,this}describe(D,u){return q("<object|string|array> [string]",[D,u],arguments.length),this[EF](D,!0),B(this,b,"f").describe(D,u),this}detectLocale(D){return q("<boolean>",[D],arguments.length),H(this,mD,D,"f"),this}env(D){if(q("[string|boolean]",[D],arguments.length),D===!1)delete B(this,K,"f").envPrefix;else B(this,K,"f").envPrefix=D||"";return this}epilogue(D){return q("<string>",[D],arguments.length),B(this,b,"f").epilog(D),this}epilog(D){return this.epilogue(D)}example(D,u){if(q("<string|array> [string]",[D,u],arguments.length),Array.isArray(D))D.forEach((F)=>this.example(...F));else B(this,b,"f").example(D,u);return this}exit(D,u){if(H(this,OD,!0,"f"),H(this,wD,u,"f"),B(this,WD,"f"))B(this,P,"f").process.exit(D)}exitProcess(D=!0){return q("[boolean]",[D],arguments.length),H(this,WD,D,"f"),this}fail(D){if(q("<function|boolean>",[D],arguments.length),typeof D==="boolean"&&D!==!1)throw new DD("Invalid first argument. Expected function or boolean 'false'");return B(this,b,"f").failFn(D),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(D,u){if(q("<array> [function]",[D,u],arguments.length),!u)return new Promise((F,E)=>{B(this,ZD,"f").getCompletion(D,(C,f)=>{if(C)E(C);else F(f)})});else return B(this,ZD,"f").getCompletion(D,u)}getDemandedOptions(){return q([],0),B(this,K,"f").demandedOptions}getDemandedCommands(){return q([],0),B(this,K,"f").demandedCommands}getDeprecatedOptions(){return q([],0),B(this,K,"f").deprecatedOptions}getDetectLocale(){return B(this,mD,"f")}getExitProcess(){return B(this,WD,"f")}getGroups(){return Object.assign({},B(this,VD,"f"),B(this,oD,"f"))}getHelp(){if(H(this,OD,!0,"f"),!B(this,b,"f").hasCachedHelpMessage()){if(!this.parsed){let u=this[Gu](B(this,bD,"f"),void 0,void 0,0,!0);if(l(u))return u.then(()=>{return B(this,b,"f").help()})}let D=B(this,uD,"f").runDefaultBuilderOn(this);if(l(D))return D.then(()=>{return B(this,b,"f").help()})}return Promise.resolve(B(this,b,"f").help())}getOptions(){return B(this,K,"f")}getStrict(){return B(this,kD,"f")}getStrictCommands(){return B(this,gD,"f")}getStrictOptions(){return B(this,lD,"f")}global(D,u){if(q("<string|array> [boolean]",[D,u],arguments.length),D=[].concat(D),u!==!1)B(this,K,"f").local=B(this,K,"f").local.filter((F)=>D.indexOf(F)===-1);else D.forEach((F)=>{if(!B(this,K,"f").local.includes(F))B(this,K,"f").local.push(F)});return this}group(D,u){q("<string|array> <string>",[D,u],arguments.length);let F=B(this,oD,"f")[u]||B(this,VD,"f")[u];if(B(this,oD,"f")[u])delete B(this,oD,"f")[u];let E={};return B(this,VD,"f")[u]=(F||[]).concat(D).filter((C)=>{if(E[C])return!1;return E[C]=!0}),this}hide(D){return q("<string>",[D],arguments.length),B(this,K,"f").hiddenOptions.push(D),this}implies(D,u){return q("<string|object> [number|string|array]",[D,u],arguments.length),B(this,r,"f").implies(D,u),this}locale(D){if(q("[string]",[D],arguments.length),D===void 0)return this[au](),B(this,P,"f").y18n.getLocale();return H(this,mD,!1,"f"),B(this,P,"f").y18n.setLocale(D),this}middleware(D,u,F){return B(this,UD,"f").addMiddleware(D,!!u,F)}nargs(D,u){return q("<string|object|array> [number]",[D,u],arguments.length),this[Eu](this.nargs.bind(this),"narg",D,u),this}normalize(D){return q("<array|string>",[D],arguments.length),this[tD]("normalize",D),this}number(D){return q("<array|string>",[D],arguments.length),this[tD]("number",D),this[rD](D),this}option(D,u){if(q("<string|object> [object]",[D,u],arguments.length),typeof D==="object")Object.keys(D).forEach((F)=>{this.options(F,D[F])});else{if(typeof u!=="object")u={};if(this[rD](D),B(this,_D,"f")&&(D==="version"||(u===null||u===void 0?void 0:u.alias)==="version"))this[R0](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
78
- `),void 0,"versionWarning");if(B(this,K,"f").key[D]=!0,u.alias)this.alias(D,u.alias);let F=u.deprecate||u.deprecated;if(F)this.deprecateOption(D,F);let E=u.demand||u.required||u.require;if(E)this.demand(D,E);if(u.demandOption)this.demandOption(D,typeof u.demandOption==="string"?u.demandOption:void 0);if(u.conflicts)this.conflicts(D,u.conflicts);if("default"in u)this.default(D,u.default);if(u.implies!==void 0)this.implies(D,u.implies);if(u.nargs!==void 0)this.nargs(D,u.nargs);if(u.config)this.config(D,u.configParser);if(u.normalize)this.normalize(D);if(u.choices)this.choices(D,u.choices);if(u.coerce)this.coerce(D,u.coerce);if(u.group)this.group(D,u.group);if(u.boolean||u.type==="boolean"){if(this.boolean(D),u.alias)this.boolean(u.alias)}if(u.array||u.type==="array"){if(this.array(D),u.alias)this.array(u.alias)}if(u.number||u.type==="number"){if(this.number(D),u.alias)this.number(u.alias)}if(u.string||u.type==="string"){if(this.string(D),u.alias)this.string(u.alias)}if(u.count||u.type==="count")this.count(D);if(typeof u.global==="boolean")this.global(D,u.global);if(u.defaultDescription)B(this,K,"f").defaultDescription[D]=u.defaultDescription;if(u.skipValidation)this.skipValidation(D);let C=u.describe||u.description||u.desc,f=B(this,b,"f").getDescriptions();if(!Object.prototype.hasOwnProperty.call(f,D)||typeof C==="string")this.describe(D,C);if(u.hidden)this.hide(D);if(u.requiresArg)this.requiresArg(D)}return this}options(D,u){return this.option(D,u)}parse(D,u,F){if(q("[string|array] [function|boolean|object] [function]",[D,u,F],arguments.length),this[j0](),typeof D>"u")D=B(this,bD,"f");if(typeof u==="object")H(this,dD,u,"f"),u=F;if(typeof u==="function")H(this,TD,u,"f"),u=!1;if(!u)H(this,bD,D,"f");if(B(this,TD,"f"))H(this,WD,!1,"f");let E=this[Gu](D,!!u),C=this.parsed;if(B(this,ZD,"f").setParsed(this.parsed),l(E))return E.then((f)=>{if(B(this,TD,"f"))B(this,TD,"f").call(this,B(this,wD,"f"),f,B(this,hD,"f"));return f}).catch((f)=>{if(B(this,TD,"f"))B(this,TD,"f")(f,this.parsed.argv,B(this,hD,"f"));throw f}).finally(()=>{this[CF](),this.parsed=C});else{if(B(this,TD,"f"))B(this,TD,"f").call(this,B(this,wD,"f"),E,B(this,hD,"f"));this[CF](),this.parsed=C}return E}parseAsync(D,u,F){let E=this.parse(D,u,F);return!l(E)?Promise.resolve(E):E}parseSync(D,u,F){let E=this.parse(D,u,F);if(l(E))throw new DD(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return E}parserConfiguration(D){return q("<object>",[D],arguments.length),H(this,qu,D,"f"),this}pkgConf(D,u){q("<string> [string]",[D,u],arguments.length);let F=null,E=this[eu](u||B(this,vD,"f"));if(E[D]&&typeof E[D]==="object")F=hu(E[D],u||B(this,vD,"f"),this[yD]()["deep-merge-config"]||!1,B(this,P,"f")),B(this,K,"f").configObjects=(B(this,K,"f").configObjects||[]).concat(F);return this}positional(D,u){q("<string> <object>",[D,u],arguments.length);let F=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];u=xD(u,(f,$)=>{if(f==="type"&&!["string","number","boolean"].includes($))return!1;return F.includes(f)});let E=B(this,zu,"f").fullCommands[B(this,zu,"f").fullCommands.length-1],C=E?B(this,uD,"f").cmdToParseOptions(E):{array:[],alias:{},default:{},demand:{}};return Du(C).forEach((f)=>{let $=C[f];if(Array.isArray($)){if($.indexOf(D)!==-1)u[f]=!0}else if($[D]&&!(f in u))u[f]=$[D]}),this.group(D,B(this,b,"f").getPositionalGroupName()),this.option(D,u)}recommendCommands(D=!0){return q("[boolean]",[D],arguments.length),H(this,Hu,D,"f"),this}required(D,u,F){return this.demand(D,u,F)}require(D,u,F){return this.demand(D,u,F)}requiresArg(D){if(q("<array|string|object> [number]",[D],arguments.length),typeof D==="string"&&B(this,K,"f").narg[D])return this;else this[Eu](this.requiresArg.bind(this),"narg",D,NaN);return this}showCompletionScript(D,u){return q("[string] [string]",[D,u],arguments.length),D=D||this.$0,B(this,iD,"f").log(B(this,ZD,"f").generateCompletionScript(D,u||B(this,QD,"f")||"completion")),this}showHelp(D){if(q("[string|function]",[D],arguments.length),H(this,OD,!0,"f"),!B(this,b,"f").hasCachedHelpMessage()){if(!this.parsed){let F=this[Gu](B(this,bD,"f"),void 0,void 0,0,!0);if(l(F))return F.then(()=>{B(this,b,"f").showHelp(D)}),this}let u=B(this,uD,"f").runDefaultBuilderOn(this);if(l(u))return u.then(()=>{B(this,b,"f").showHelp(D)}),this}return B(this,b,"f").showHelp(D),this}scriptName(D){return this.customScriptName=!0,this.$0=D,this}showHelpOnFail(D,u){return q("[boolean|string] [string]",[D,u],arguments.length),B(this,b,"f").showHelpOnFail(D,u),this}showVersion(D){return q("[string|function]",[D],arguments.length),B(this,b,"f").showVersion(D),this}skipValidation(D){return q("<array|string>",[D],arguments.length),this[tD]("skipValidation",D),this}strict(D){return q("[boolean]",[D],arguments.length),H(this,kD,D!==!1,"f"),this}strictCommands(D){return q("[boolean]",[D],arguments.length),H(this,gD,D!==!1,"f"),this}strictOptions(D){return q("[boolean]",[D],arguments.length),H(this,lD,D!==!1,"f"),this}string(D){return q("<array|string>",[D],arguments.length),this[tD]("string",D),this[rD](D),this}terminalWidth(){return q([],0),B(this,P,"f").process.stdColumns}updateLocale(D){return this.updateStrings(D)}updateStrings(D){return q("<object>",[D],arguments.length),H(this,mD,!1,"f"),B(this,P,"f").y18n.updateLocale(D),this}usage(D,u,F,E){if(q("<string|null|undefined> [string|boolean] [function|object] [function]",[D,u,F,E],arguments.length),u!==void 0)if(XD(D,null,B(this,P,"f")),(D||"").match(/^\$0( |$)/))return this.command(D,u,F,E);else throw new DD(".usage() description must start with $0 if being used as alias for .command()");else return B(this,b,"f").usage(D),this}usageConfiguration(D){return q("<object>",[D],arguments.length),H(this,Iu,D,"f"),this}version(D,u,F){if(q("[boolean|string] [string] [string]",[D,u,F],arguments.length),B(this,_D,"f"))this[ru](B(this,_D,"f")),B(this,b,"f").version(void 0),H(this,_D,null,"f");if(arguments.length===0)F=this[I0](),D="version";else if(arguments.length===1){if(D===!1)return this;F=D,D="version"}else if(arguments.length===2)F=u,u=void 0;return H(this,_D,typeof D==="string"?D:"version","f"),u=u||B(this,b,"f").deferY18nLookup("Show version number"),B(this,b,"f").version(F||void 0),this.boolean(B(this,_D,"f")),this.describe(B(this,_D,"f"),u),this}wrap(D){return q("<number|null|undefined>",[D],arguments.length),B(this,b,"f").wrap(D),this}[(uD=new WeakMap,vD=new WeakMap,zu=new WeakMap,ZD=new WeakMap,QD=new WeakMap,Wu=new WeakMap,wD=new WeakMap,mD=new WeakMap,Uu=new WeakMap,WD=new WeakMap,Nu=new WeakMap,UD=new WeakMap,VD=new WeakMap,OD=new WeakMap,ND=new WeakMap,Ru=new WeakMap,iD=new WeakMap,hD=new WeakMap,K=new WeakMap,ju=new WeakMap,qu=new WeakMap,TD=new WeakMap,dD=new WeakMap,Fu=new WeakMap,oD=new WeakMap,bD=new WeakMap,Hu=new WeakMap,P=new WeakMap,kD=new WeakMap,gD=new WeakMap,lD=new WeakMap,b=new WeakMap,Iu=new WeakMap,_D=new WeakMap,r=new WeakMap,U0)](D){if(!D._||!D["--"])return D;D._.push.apply(D._,D["--"]);try{delete D["--"]}catch(u){}return D}[N0](){return{log:(...D)=>{if(!this[Vu]())console.log(...D);if(H(this,OD,!0,"f"),B(this,hD,"f").length)H(this,hD,B(this,hD,"f")+`
75
+ `)}`:"";u.fail(C("Missing required argument: %s","Missing required arguments: %s",Object.keys(O).length,Object.keys(O).join(", ")+X))}},f.unknownArguments=function(Q,Z,O,W,X=!0){var A;let v=D.getInternalMethods().getCommandInstance().getCommands(),n=[],GD=D.getInternalMethods().getContext();if(Object.keys(Q).forEach((t)=>{if(!T0.includes(t)&&!Object.prototype.hasOwnProperty.call(O,t)&&!Object.prototype.hasOwnProperty.call(D.getInternalMethods().getParseContext(),t)&&!f.isValidAndSomeAliasIsNotNew(t,Z))n.push(t)}),X&&(GD.commands.length>0||v.length>0||W))Q._.slice(GD.commands.length).forEach((t)=>{if(!v.includes(""+t))n.push(""+t)});if(X){let g=((A=D.getDemandedCommands()._)===null||A===void 0?void 0:A.max)||0,ED=GD.commands.length+g;if(ED<Q._.length)Q._.slice(ED).forEach((a)=>{if(a=String(a),!GD.commands.includes(a)&&!n.includes(a))n.push(a)})}if(n.length)u.fail(C("Unknown argument: %s","Unknown arguments: %s",n.length,n.map((t)=>t.trim()?t:`"${t}"`).join(", ")))},f.unknownCommands=function(Q){let Z=D.getInternalMethods().getCommandInstance().getCommands(),O=[],W=D.getInternalMethods().getContext();if(W.commands.length>0||Z.length>0)Q._.slice(W.commands.length).forEach((X)=>{if(!Z.includes(""+X))O.push(""+X)});if(O.length>0)return u.fail(C("Unknown command: %s","Unknown commands: %s",O.length,O.join(", "))),!0;else return!1},f.isValidAndSomeAliasIsNotNew=function(Q,Z){if(!Object.prototype.hasOwnProperty.call(Z,Q))return!1;let O=D.parsed.newAliases;return[Q,...Z[Q]].some((W)=>!Object.prototype.hasOwnProperty.call(O,W)||!O[Q])},f.limitedChoices=function(Q){let Z=D.getOptions(),O={};if(!Object.keys(Z.choices).length)return;Object.keys(Q).forEach((A)=>{if(T0.indexOf(A)===-1&&Object.prototype.hasOwnProperty.call(Z.choices,A))[].concat(Q[A]).forEach((v)=>{if(Z.choices[A].indexOf(v)===-1&&v!==void 0)O[A]=(O[A]||[]).concat(v)})});let W=Object.keys(O);if(!W.length)return;let X=E("Invalid values:");W.forEach((A)=>{X+=`
76
+ ${E("Argument: %s, Given: %s, Choices: %s",A,u.stringifiedValues(O[A]),u.stringifiedValues(Z.choices[A]))}`}),u.fail(X)};let $={};f.implies=function(Q,Z){if(q("<string|object> [array|number|string]",[Q,Z],arguments.length),typeof Q==="object")Object.keys(Q).forEach((O)=>{f.implies(O,Q[O])});else{if(D.global(Q),!$[Q])$[Q]=[];if(Array.isArray(Z))Z.forEach((O)=>f.implies(Q,O));else ZD(Z,void 0,F),$[Q].push(Z)}},f.getImplied=function(){return $};function G(U,Q){let Z=Number(Q);if(Q=isNaN(Z)?Q:Z,typeof Q==="number")Q=U._.length>=Q;else if(Q.match(/^--no-.+/))Q=Q.match(/^--no-(.+)/)[1],Q=!Object.prototype.hasOwnProperty.call(U,Q);else Q=Object.prototype.hasOwnProperty.call(U,Q);return Q}f.implications=function(Q){let Z=[];if(Object.keys($).forEach((O)=>{let W=O;($[O]||[]).forEach((X)=>{let A=W,v=X;if(A=G(Q,A),X=G(Q,X),A&&!X)Z.push(` ${W} -> ${v}`)})}),Z.length){let O=`${E("Implications failed:")}
77
+ `;Z.forEach((W)=>{O+=W}),u.fail(O)}};let J={};f.conflicts=function(Q,Z){if(q("<string|object> [array|string]",[Q,Z],arguments.length),typeof Q==="object")Object.keys(Q).forEach((O)=>{f.conflicts(O,Q[O])});else{if(D.global(Q),!J[Q])J[Q]=[];if(Array.isArray(Z))Z.forEach((O)=>f.conflicts(Q,O));else J[Q].push(Z)}},f.getConflicting=()=>J,f.conflicting=function(Q){if(Object.keys(Q).forEach((Z)=>{if(J[Z])J[Z].forEach((O)=>{if(O&&Q[Z]!==void 0&&Q[O]!==void 0)u.fail(E("Arguments %s and %s are mutually exclusive",Z,O))})}),D.getInternalMethods().getParserConfiguration()["strip-dashed"])Object.keys(J).forEach((Z)=>{J[Z].forEach((O)=>{if(O&&Q[F.Parser.camelCase(Z)]!==void 0&&Q[F.Parser.camelCase(O)]!==void 0)u.fail(E("Arguments %s and %s are mutually exclusive",Z,O))})})},f.recommendCommands=function(Q,Z){Z=Z.sort((A,v)=>v.length-A.length);let W=null,X=1/0;for(let A=0,v;(v=Z[A])!==void 0;A++){let n=O0(Q,v);if(n<=3&&n<X)X=n,W=v}if(W)u.fail(E("Did you mean %s?",W))},f.reset=function(Q){return $=xD($,(Z)=>!Q[Z]),J=xD(J,(Z)=>!Q[Z]),f};let Y=[];return f.freeze=function(){Y.push({implied:$,conflicting:J})},f.unfreeze=function(){let Q=Y.pop();ZD(Q,void 0,F),{implied:$,conflicting:J}=Q},f}var su=[],$u;function hu(D,u,F,E){$u=E;let C={};if(Object.prototype.hasOwnProperty.call(D,"extends")){if(typeof D.extends!=="string")return C;let f=/\.json|\..*rc$/.test(D.extends),$=null;if(!f)try{$=import.meta.resolve(D.extends)}catch(G){return D}else $=Z8(u,D.extends);M8($),su.push($),C=f?JSON.parse($u.readFileSync($,"utf8")):E.require(D.extends),delete D.extends,C=hu(C,$u.path.dirname($),F,$u)}return su=[],F?W0(C,D):Object.assign({},C,D)}function M8(D){if(su.indexOf(D)>-1)throw new DD(`Circular extended configurations: '${D}'.`)}function Z8(D,u){return $u.path.resolve(D,u)}function W0(D,u){let F={};function E(C){return C&&typeof C==="object"&&!Array.isArray(C)}Object.assign(F,D);for(let C of Object.keys(u))if(E(u[C])&&E(F[C]))F[C]=W0(D[C],u[C]);else F[C]=u[C];return F}var H=function(D,u,F,E,C){if(E==="m")throw TypeError("Private method is not writable");if(E==="a"&&!C)throw TypeError("Private accessor was defined without a setter");if(typeof u==="function"?D!==u||!C:!u.has(D))throw TypeError("Cannot write private member to an object whose class did not declare it");return E==="a"?C.call(D,F):C?C.value=F:u.set(D,F),F},B=function(D,u,F,E){if(F==="a"&&!E)throw TypeError("Private accessor was defined without a getter");if(typeof u==="function"?D!==u||!E:!u.has(D))throw TypeError("Cannot read private member from an object whose class did not declare it");return F==="m"?E:F==="a"?E.call(D):E?E.value:u.get(D)},uD,vD,zu,XD,QD,Wu,wD,mD,Uu,WD,Nu,UD,VD,OD,ND,Ru,iD,hD,K,ju,qu,TD,dD,Fu,oD,bD,Hu,P,kD,gD,yD,b,Iu,_D,r;function c0(D){return(u=[],F=D.process.cwd(),E)=>{let C=new p0(u,F,E,D);return Object.defineProperty(C,"argv",{get:()=>{return C.parse()},enumerable:!0}),C.help(),C.version(),C}}var U0=Symbol("copyDoubleDash"),N0=Symbol("copyDoubleDash"),ru=Symbol("deleteFromParserHintObject"),R0=Symbol("emitWarning"),j0=Symbol("freeze"),q0=Symbol("getDollarZero"),lD=Symbol("getParserConfiguration"),H0=Symbol("getUsageConfiguration"),au=Symbol("guessLocale"),I0=Symbol("guessVersion"),V0=Symbol("parsePositionalNumbers"),eu=Symbol("pkgUp"),tD=Symbol("populateParserHintArray"),Eu=Symbol("populateParserHintSingleValueDictionary"),DF=Symbol("populateParserHintArrayDictionary"),uF=Symbol("populateParserHintDictionary"),FF=Symbol("sanitizeKey"),EF=Symbol("setKey"),CF=Symbol("unfreeze"),_0=Symbol("validateAsync"),K0=Symbol("getCommandInstance"),L0=Symbol("getContext"),A0=Symbol("getHasOutput"),S0=Symbol("getLoggerInstance"),x0=Symbol("getParseContext"),P0=Symbol("getUsageInstance"),w0=Symbol("getValidationInstance"),Vu=Symbol("hasParseCallback"),b0=Symbol("isGlobalContext"),sD=Symbol("postProcess"),t0=Symbol("rebase"),BF=Symbol("reset"),Gu=Symbol("runYargsParserAndExecuteCommands"),fF=Symbol("runValidation"),n0=Symbol("setHasOutput"),rD=Symbol("kTrackManuallySetKeys"),X8="en_US";class p0{constructor(D=[],u,F,E){this.customScriptName=!1,this.parsed=!1,uD.set(this,void 0),vD.set(this,void 0),zu.set(this,{commands:[],fullCommands:[]}),XD.set(this,null),QD.set(this,null),Wu.set(this,"show-hidden"),wD.set(this,null),mD.set(this,!0),Uu.set(this,{}),WD.set(this,!0),Nu.set(this,[]),UD.set(this,void 0),VD.set(this,{}),OD.set(this,!1),ND.set(this,null),Ru.set(this,!0),iD.set(this,void 0),hD.set(this,""),K.set(this,void 0),ju.set(this,void 0),qu.set(this,{}),TD.set(this,null),dD.set(this,null),Fu.set(this,{}),oD.set(this,{}),bD.set(this,void 0),Hu.set(this,!1),P.set(this,void 0),kD.set(this,!1),gD.set(this,!1),yD.set(this,!1),b.set(this,void 0),Iu.set(this,{}),_D.set(this,null),r.set(this,void 0),H(this,P,E,"f"),H(this,bD,D,"f"),H(this,vD,u,"f"),H(this,ju,F,"f"),H(this,UD,new yu(this),"f"),this.$0=this[q0](),this[BF](),H(this,uD,B(this,uD,"f"),"f"),H(this,b,B(this,b,"f"),"f"),H(this,r,B(this,r,"f"),"f"),H(this,K,B(this,K,"f"),"f"),B(this,K,"f").showHiddenOpt=B(this,Wu,"f"),H(this,iD,this[N0](),"f"),B(this,P,"f").y18n.setLocale(X8)}addHelpOpt(D,u){if(q("[string|boolean] [string]",[D,u],arguments.length),B(this,ND,"f"))this[ru](B(this,ND,"f")),H(this,ND,null,"f");if(D===!1&&u===void 0)return this;return H(this,ND,typeof D==="string"?D:"help","f"),this.boolean(B(this,ND,"f")),this.describe(B(this,ND,"f"),u||B(this,b,"f").deferY18nLookup("Show help")),this}help(D,u){return this.addHelpOpt(D,u)}addShowHiddenOpt(D,u){if(q("[string|boolean] [string]",[D,u],arguments.length),D===!1&&u===void 0)return this;let F=typeof D==="string"?D:B(this,Wu,"f");return this.boolean(F),this.describe(F,u||B(this,b,"f").deferY18nLookup("Show hidden options")),B(this,K,"f").showHiddenOpt=F,this}showHidden(D,u){return this.addShowHiddenOpt(D,u)}alias(D,u){return q("<object|string|array> [string|array]",[D,u],arguments.length),this[DF](this.alias.bind(this),"alias",D,u),this}array(D){return q("<array|string>",[D],arguments.length),this[tD]("array",D),this[rD](D),this}boolean(D){return q("<array|string>",[D],arguments.length),this[tD]("boolean",D),this[rD](D),this}check(D,u){return q("<function> [boolean]",[D,u],arguments.length),this.middleware((F,E)=>{return pD(()=>{return D(F,E.getOptions())},(C)=>{if(!C)B(this,b,"f").fail(B(this,P,"f").y18n.__("Argument check failed: %s",D.toString()));else if(typeof C==="string"||C instanceof Error)B(this,b,"f").fail(C.toString(),C);return F},(C)=>{return B(this,b,"f").fail(C.message?C.message:C.toString(),C),F})},!1,u),this}choices(D,u){return q("<object|string|array> [string|array]",[D,u],arguments.length),this[DF](this.choices.bind(this),"choices",D,u),this}coerce(D,u){if(q("<object|string|array> [function]",[D,u],arguments.length),Array.isArray(D)){if(!u)throw new DD("coerce callback must be provided");for(let E of D)this.coerce(E,u);return this}else if(typeof D==="object"){for(let E of Object.keys(D))this.coerce(E,D[E]);return this}if(!u)throw new DD("coerce callback must be provided");let F=D;return B(this,K,"f").key[F]=!0,B(this,UD,"f").addCoerceMiddleware((E,C)=>{var f;let $=(f=C.getAliases()[F])!==null&&f!==void 0?f:[],G=[F,...$].filter((J)=>Object.prototype.hasOwnProperty.call(E,J));if(G.length===0)return E;return pD(()=>{return u(E[G[0]])},(J)=>{return G.forEach((Y)=>{E[Y]=J}),E},(J)=>{throw new DD(J.message)})},F),this}conflicts(D,u){return q("<string|object> [string|array]",[D,u],arguments.length),B(this,r,"f").conflicts(D,u),this}config(D="config",u,F){if(q("[object|string] [string|function] [function]",[D,u,F],arguments.length),typeof D==="object"&&!Array.isArray(D))return D=hu(D,B(this,vD,"f"),this[lD]()["deep-merge-config"]||!1,B(this,P,"f")),B(this,K,"f").configObjects=(B(this,K,"f").configObjects||[]).concat(D),this;if(typeof u==="function")F=u,u=void 0;return this.describe(D,u||B(this,b,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(D)?D:[D]).forEach((E)=>{B(this,K,"f").config[E]=F||!0}),this}completion(D,u,F){if(q("[string] [string|boolean|function] [function]",[D,u,F],arguments.length),typeof u==="function")F=u,u=void 0;if(H(this,QD,D||B(this,QD,"f")||"completion","f"),!u&&u!==!1)u="generate completion script";if(this.command(B(this,QD,"f"),u),F)B(this,XD,"f").registerFunction(F);return this}command(D,u,F,E,C,f){return q("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[D,u,F,E,C,f],arguments.length),B(this,uD,"f").addHandler(D,u,F,E,C,f),this}commands(D,u,F,E,C,f){return this.command(D,u,F,E,C,f)}commandDir(D,u){q("<string> [object]",[D,u],arguments.length);let F=B(this,ju,"f")||B(this,P,"f").require;return B(this,uD,"f").addDirectory(D,F,B(this,P,"f").getCallerFile(),u),this}count(D){return q("<array|string>",[D],arguments.length),this[tD]("count",D),this[rD](D),this}default(D,u,F){if(q("<object|string|array> [*] [string]",[D,u,F],arguments.length),F)gu(D,B(this,P,"f")),B(this,K,"f").defaultDescription[D]=F;if(typeof u==="function"){if(gu(D,B(this,P,"f")),!B(this,K,"f").defaultDescription[D])B(this,K,"f").defaultDescription[D]=B(this,b,"f").functionDescription(u);u=u.call()}return this[Eu](this.default.bind(this),"default",D,u),this}defaults(D,u,F){return this.default(D,u,F)}demandCommand(D=1,u,F,E){if(q("[number] [number|string] [string|null|undefined] [string|null|undefined]",[D,u,F,E],arguments.length),typeof u!=="number")F=u,u=1/0;return this.global("_",!1),B(this,K,"f").demandedCommands._={min:D,max:u,minMsg:F,maxMsg:E},this}demand(D,u,F){if(Array.isArray(u))u.forEach((E)=>{ZD(F,!0,B(this,P,"f")),this.demandOption(E,F)}),u=1/0;else if(typeof u!=="number")F=u,u=1/0;if(typeof D==="number")ZD(F,!0,B(this,P,"f")),this.demandCommand(D,u,F,F);else if(Array.isArray(D))D.forEach((E)=>{ZD(F,!0,B(this,P,"f")),this.demandOption(E,F)});else if(typeof F==="string")this.demandOption(D,F);else if(F===!0||typeof F>"u")this.demandOption(D);return this}demandOption(D,u){return q("<object|string|array> [string]",[D,u],arguments.length),this[Eu](this.demandOption.bind(this),"demandedOptions",D,u),this}deprecateOption(D,u){return q("<string> [string|boolean]",[D,u],arguments.length),B(this,K,"f").deprecatedOptions[D]=u,this}describe(D,u){return q("<object|string|array> [string]",[D,u],arguments.length),this[EF](D,!0),B(this,b,"f").describe(D,u),this}detectLocale(D){return q("<boolean>",[D],arguments.length),H(this,mD,D,"f"),this}env(D){if(q("[string|boolean]",[D],arguments.length),D===!1)delete B(this,K,"f").envPrefix;else B(this,K,"f").envPrefix=D||"";return this}epilogue(D){return q("<string>",[D],arguments.length),B(this,b,"f").epilog(D),this}epilog(D){return this.epilogue(D)}example(D,u){if(q("<string|array> [string]",[D,u],arguments.length),Array.isArray(D))D.forEach((F)=>this.example(...F));else B(this,b,"f").example(D,u);return this}exit(D,u){if(H(this,OD,!0,"f"),H(this,wD,u,"f"),B(this,WD,"f"))B(this,P,"f").process.exit(D)}exitProcess(D=!0){return q("[boolean]",[D],arguments.length),H(this,WD,D,"f"),this}fail(D){if(q("<function|boolean>",[D],arguments.length),typeof D==="boolean"&&D!==!1)throw new DD("Invalid first argument. Expected function or boolean 'false'");return B(this,b,"f").failFn(D),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(D,u){if(q("<array> [function]",[D,u],arguments.length),!u)return new Promise((F,E)=>{B(this,XD,"f").getCompletion(D,(C,f)=>{if(C)E(C);else F(f)})});else return B(this,XD,"f").getCompletion(D,u)}getDemandedOptions(){return q([],0),B(this,K,"f").demandedOptions}getDemandedCommands(){return q([],0),B(this,K,"f").demandedCommands}getDeprecatedOptions(){return q([],0),B(this,K,"f").deprecatedOptions}getDetectLocale(){return B(this,mD,"f")}getExitProcess(){return B(this,WD,"f")}getGroups(){return Object.assign({},B(this,VD,"f"),B(this,oD,"f"))}getHelp(){if(H(this,OD,!0,"f"),!B(this,b,"f").hasCachedHelpMessage()){if(!this.parsed){let u=this[Gu](B(this,bD,"f"),void 0,void 0,0,!0);if(y(u))return u.then(()=>{return B(this,b,"f").help()})}let D=B(this,uD,"f").runDefaultBuilderOn(this);if(y(D))return D.then(()=>{return B(this,b,"f").help()})}return Promise.resolve(B(this,b,"f").help())}getOptions(){return B(this,K,"f")}getStrict(){return B(this,kD,"f")}getStrictCommands(){return B(this,gD,"f")}getStrictOptions(){return B(this,yD,"f")}global(D,u){if(q("<string|array> [boolean]",[D,u],arguments.length),D=[].concat(D),u!==!1)B(this,K,"f").local=B(this,K,"f").local.filter((F)=>D.indexOf(F)===-1);else D.forEach((F)=>{if(!B(this,K,"f").local.includes(F))B(this,K,"f").local.push(F)});return this}group(D,u){q("<string|array> <string>",[D,u],arguments.length);let F=B(this,oD,"f")[u]||B(this,VD,"f")[u];if(B(this,oD,"f")[u])delete B(this,oD,"f")[u];let E={};return B(this,VD,"f")[u]=(F||[]).concat(D).filter((C)=>{if(E[C])return!1;return E[C]=!0}),this}hide(D){return q("<string>",[D],arguments.length),B(this,K,"f").hiddenOptions.push(D),this}implies(D,u){return q("<string|object> [number|string|array]",[D,u],arguments.length),B(this,r,"f").implies(D,u),this}locale(D){if(q("[string]",[D],arguments.length),D===void 0)return this[au](),B(this,P,"f").y18n.getLocale();return H(this,mD,!1,"f"),B(this,P,"f").y18n.setLocale(D),this}middleware(D,u,F){return B(this,UD,"f").addMiddleware(D,!!u,F)}nargs(D,u){return q("<string|object|array> [number]",[D,u],arguments.length),this[Eu](this.nargs.bind(this),"narg",D,u),this}normalize(D){return q("<array|string>",[D],arguments.length),this[tD]("normalize",D),this}number(D){return q("<array|string>",[D],arguments.length),this[tD]("number",D),this[rD](D),this}option(D,u){if(q("<string|object> [object]",[D,u],arguments.length),typeof D==="object")Object.keys(D).forEach((F)=>{this.options(F,D[F])});else{if(typeof u!=="object")u={};if(this[rD](D),B(this,_D,"f")&&(D==="version"||(u===null||u===void 0?void 0:u.alias)==="version"))this[R0](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
78
+ `),void 0,"versionWarning");if(B(this,K,"f").key[D]=!0,u.alias)this.alias(D,u.alias);let F=u.deprecate||u.deprecated;if(F)this.deprecateOption(D,F);let E=u.demand||u.required||u.require;if(E)this.demand(D,E);if(u.demandOption)this.demandOption(D,typeof u.demandOption==="string"?u.demandOption:void 0);if(u.conflicts)this.conflicts(D,u.conflicts);if("default"in u)this.default(D,u.default);if(u.implies!==void 0)this.implies(D,u.implies);if(u.nargs!==void 0)this.nargs(D,u.nargs);if(u.config)this.config(D,u.configParser);if(u.normalize)this.normalize(D);if(u.choices)this.choices(D,u.choices);if(u.coerce)this.coerce(D,u.coerce);if(u.group)this.group(D,u.group);if(u.boolean||u.type==="boolean"){if(this.boolean(D),u.alias)this.boolean(u.alias)}if(u.array||u.type==="array"){if(this.array(D),u.alias)this.array(u.alias)}if(u.number||u.type==="number"){if(this.number(D),u.alias)this.number(u.alias)}if(u.string||u.type==="string"){if(this.string(D),u.alias)this.string(u.alias)}if(u.count||u.type==="count")this.count(D);if(typeof u.global==="boolean")this.global(D,u.global);if(u.defaultDescription)B(this,K,"f").defaultDescription[D]=u.defaultDescription;if(u.skipValidation)this.skipValidation(D);let C=u.describe||u.description||u.desc,f=B(this,b,"f").getDescriptions();if(!Object.prototype.hasOwnProperty.call(f,D)||typeof C==="string")this.describe(D,C);if(u.hidden)this.hide(D);if(u.requiresArg)this.requiresArg(D)}return this}options(D,u){return this.option(D,u)}parse(D,u,F){if(q("[string|array] [function|boolean|object] [function]",[D,u,F],arguments.length),this[j0](),typeof D>"u")D=B(this,bD,"f");if(typeof u==="object")H(this,dD,u,"f"),u=F;if(typeof u==="function")H(this,TD,u,"f"),u=!1;if(!u)H(this,bD,D,"f");if(B(this,TD,"f"))H(this,WD,!1,"f");let E=this[Gu](D,!!u),C=this.parsed;if(B(this,XD,"f").setParsed(this.parsed),y(E))return E.then((f)=>{if(B(this,TD,"f"))B(this,TD,"f").call(this,B(this,wD,"f"),f,B(this,hD,"f"));return f}).catch((f)=>{if(B(this,TD,"f"))B(this,TD,"f")(f,this.parsed.argv,B(this,hD,"f"));throw f}).finally(()=>{this[CF](),this.parsed=C});else{if(B(this,TD,"f"))B(this,TD,"f").call(this,B(this,wD,"f"),E,B(this,hD,"f"));this[CF](),this.parsed=C}return E}parseAsync(D,u,F){let E=this.parse(D,u,F);return!y(E)?Promise.resolve(E):E}parseSync(D,u,F){let E=this.parse(D,u,F);if(y(E))throw new DD(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return E}parserConfiguration(D){return q("<object>",[D],arguments.length),H(this,qu,D,"f"),this}pkgConf(D,u){q("<string> [string]",[D,u],arguments.length);let F=null,E=this[eu](u||B(this,vD,"f"));if(E[D]&&typeof E[D]==="object")F=hu(E[D],u||B(this,vD,"f"),this[lD]()["deep-merge-config"]||!1,B(this,P,"f")),B(this,K,"f").configObjects=(B(this,K,"f").configObjects||[]).concat(F);return this}positional(D,u){q("<string> <object>",[D,u],arguments.length);let F=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];u=xD(u,(f,$)=>{if(f==="type"&&!["string","number","boolean"].includes($))return!1;return F.includes(f)});let E=B(this,zu,"f").fullCommands[B(this,zu,"f").fullCommands.length-1],C=E?B(this,uD,"f").cmdToParseOptions(E):{array:[],alias:{},default:{},demand:{}};return Du(C).forEach((f)=>{let $=C[f];if(Array.isArray($)){if($.indexOf(D)!==-1)u[f]=!0}else if($[D]&&!(f in u))u[f]=$[D]}),this.group(D,B(this,b,"f").getPositionalGroupName()),this.option(D,u)}recommendCommands(D=!0){return q("[boolean]",[D],arguments.length),H(this,Hu,D,"f"),this}required(D,u,F){return this.demand(D,u,F)}require(D,u,F){return this.demand(D,u,F)}requiresArg(D){if(q("<array|string|object> [number]",[D],arguments.length),typeof D==="string"&&B(this,K,"f").narg[D])return this;else this[Eu](this.requiresArg.bind(this),"narg",D,NaN);return this}showCompletionScript(D,u){return q("[string] [string]",[D,u],arguments.length),D=D||this.$0,B(this,iD,"f").log(B(this,XD,"f").generateCompletionScript(D,u||B(this,QD,"f")||"completion")),this}showHelp(D){if(q("[string|function]",[D],arguments.length),H(this,OD,!0,"f"),!B(this,b,"f").hasCachedHelpMessage()){if(!this.parsed){let F=this[Gu](B(this,bD,"f"),void 0,void 0,0,!0);if(y(F))return F.then(()=>{B(this,b,"f").showHelp(D)}),this}let u=B(this,uD,"f").runDefaultBuilderOn(this);if(y(u))return u.then(()=>{B(this,b,"f").showHelp(D)}),this}return B(this,b,"f").showHelp(D),this}scriptName(D){return this.customScriptName=!0,this.$0=D,this}showHelpOnFail(D,u){return q("[boolean|string] [string]",[D,u],arguments.length),B(this,b,"f").showHelpOnFail(D,u),this}showVersion(D){return q("[string|function]",[D],arguments.length),B(this,b,"f").showVersion(D),this}skipValidation(D){return q("<array|string>",[D],arguments.length),this[tD]("skipValidation",D),this}strict(D){return q("[boolean]",[D],arguments.length),H(this,kD,D!==!1,"f"),this}strictCommands(D){return q("[boolean]",[D],arguments.length),H(this,gD,D!==!1,"f"),this}strictOptions(D){return q("[boolean]",[D],arguments.length),H(this,yD,D!==!1,"f"),this}string(D){return q("<array|string>",[D],arguments.length),this[tD]("string",D),this[rD](D),this}terminalWidth(){return q([],0),B(this,P,"f").process.stdColumns}updateLocale(D){return this.updateStrings(D)}updateStrings(D){return q("<object>",[D],arguments.length),H(this,mD,!1,"f"),B(this,P,"f").y18n.updateLocale(D),this}usage(D,u,F,E){if(q("<string|null|undefined> [string|boolean] [function|object] [function]",[D,u,F,E],arguments.length),u!==void 0)if(ZD(D,null,B(this,P,"f")),(D||"").match(/^\$0( |$)/))return this.command(D,u,F,E);else throw new DD(".usage() description must start with $0 if being used as alias for .command()");else return B(this,b,"f").usage(D),this}usageConfiguration(D){return q("<object>",[D],arguments.length),H(this,Iu,D,"f"),this}version(D,u,F){if(q("[boolean|string] [string] [string]",[D,u,F],arguments.length),B(this,_D,"f"))this[ru](B(this,_D,"f")),B(this,b,"f").version(void 0),H(this,_D,null,"f");if(arguments.length===0)F=this[I0](),D="version";else if(arguments.length===1){if(D===!1)return this;F=D,D="version"}else if(arguments.length===2)F=u,u=void 0;return H(this,_D,typeof D==="string"?D:"version","f"),u=u||B(this,b,"f").deferY18nLookup("Show version number"),B(this,b,"f").version(F||void 0),this.boolean(B(this,_D,"f")),this.describe(B(this,_D,"f"),u),this}wrap(D){return q("<number|null|undefined>",[D],arguments.length),B(this,b,"f").wrap(D),this}[(uD=new WeakMap,vD=new WeakMap,zu=new WeakMap,XD=new WeakMap,QD=new WeakMap,Wu=new WeakMap,wD=new WeakMap,mD=new WeakMap,Uu=new WeakMap,WD=new WeakMap,Nu=new WeakMap,UD=new WeakMap,VD=new WeakMap,OD=new WeakMap,ND=new WeakMap,Ru=new WeakMap,iD=new WeakMap,hD=new WeakMap,K=new WeakMap,ju=new WeakMap,qu=new WeakMap,TD=new WeakMap,dD=new WeakMap,Fu=new WeakMap,oD=new WeakMap,bD=new WeakMap,Hu=new WeakMap,P=new WeakMap,kD=new WeakMap,gD=new WeakMap,yD=new WeakMap,b=new WeakMap,Iu=new WeakMap,_D=new WeakMap,r=new WeakMap,U0)](D){if(!D._||!D["--"])return D;D._.push.apply(D._,D["--"]);try{delete D["--"]}catch(u){}return D}[N0](){return{log:(...D)=>{if(!this[Vu]())console.log(...D);if(H(this,OD,!0,"f"),B(this,hD,"f").length)H(this,hD,B(this,hD,"f")+`
79
79
  `,"f");H(this,hD,B(this,hD,"f")+D.join(" "),"f")},error:(...D)=>{if(!this[Vu]())console.error(...D);if(H(this,OD,!0,"f"),B(this,hD,"f").length)H(this,hD,B(this,hD,"f")+`
80
- `,"f");H(this,hD,B(this,hD,"f")+D.join(" "),"f")}}}[ru](D){Du(B(this,K,"f")).forEach((u)=>{if(((E)=>E==="configObjects")(u))return;let F=B(this,K,"f")[u];if(Array.isArray(F)){if(F.includes(D))F.splice(F.indexOf(D),1)}else if(typeof F==="object")delete F[D]}),delete B(this,b,"f").getDescriptions()[D]}[R0](D,u,F){if(!B(this,Uu,"f")[F])B(this,P,"f").process.emitWarning(D,u),B(this,Uu,"f")[F]=!0}[j0](){B(this,Nu,"f").push({options:B(this,K,"f"),configObjects:B(this,K,"f").configObjects.slice(0),exitProcess:B(this,WD,"f"),groups:B(this,VD,"f"),strict:B(this,kD,"f"),strictCommands:B(this,gD,"f"),strictOptions:B(this,lD,"f"),completionCommand:B(this,QD,"f"),output:B(this,hD,"f"),exitError:B(this,wD,"f"),hasOutput:B(this,OD,"f"),parsed:this.parsed,parseFn:B(this,TD,"f"),parseContext:B(this,dD,"f")}),B(this,b,"f").freeze(),B(this,r,"f").freeze(),B(this,uD,"f").freeze(),B(this,UD,"f").freeze()}[q0](){let D="",u;if(/\b(node|iojs|electron)(\.exe)?$/.test(B(this,P,"f").process.argv()[0]))u=B(this,P,"f").process.argv().slice(1,2);else u=B(this,P,"f").process.argv().slice(0,1);if(D=u.map((F)=>{let E=this[t0](B(this,vD,"f"),F);return F.match(/^(\/|([a-zA-Z]:)?\\)/)&&E.length<F.length?E:F}).join(" ").trim(),B(this,P,"f").getEnv("_")&&B(this,P,"f").getProcessArgvBin()===B(this,P,"f").getEnv("_"))D=B(this,P,"f").getEnv("_").replace(`${B(this,P,"f").path.dirname(B(this,P,"f").process.execPath())}/`,"");return D}[yD](){return B(this,qu,"f")}[H0](){return B(this,Iu,"f")}[au](){if(!B(this,mD,"f"))return;let D=B(this,P,"f").getEnv("LC_ALL")||B(this,P,"f").getEnv("LC_MESSAGES")||B(this,P,"f").getEnv("LANG")||B(this,P,"f").getEnv("LANGUAGE")||"en_US";this.locale(D.replace(/[.:].*/,""))}[I0](){return this[eu]().version||"unknown"}[V0](D){let u=D["--"]?D["--"]:D._;for(let F=0,E;(E=u[F])!==void 0;F++)if(B(this,P,"f").Parser.looksLikeNumber(E)&&Number.isSafeInteger(Math.floor(parseFloat(`${E}`))))u[F]=Number(E);return D}[eu](D){let u=D||"*";if(B(this,Fu,"f")[u])return B(this,Fu,"f")[u];let F={};try{let E=D||B(this,P,"f").mainFilename;if(B(this,P,"f").path.extname(E))E=B(this,P,"f").path.dirname(E);let C=B(this,P,"f").findUp(E,(f,$)=>{if($.includes("package.json"))return"package.json";else return});XD(C,void 0,B(this,P,"f")),F=JSON.parse(B(this,P,"f").readFileSync(C,"utf8"))}catch(E){}return B(this,Fu,"f")[u]=F||{},B(this,Fu,"f")[u]}[tD](D,u){u=[].concat(u),u.forEach((F)=>{F=this[FF](F),B(this,K,"f")[D].push(F)})}[Eu](D,u,F,E){this[uF](D,u,F,E,(C,f,$)=>{B(this,K,"f")[C][f]=$})}[DF](D,u,F,E){this[uF](D,u,F,E,(C,f,$)=>{B(this,K,"f")[C][f]=(B(this,K,"f")[C][f]||[]).concat($)})}[uF](D,u,F,E,C){if(Array.isArray(F))F.forEach((f)=>{D(f,E)});else if(((f)=>typeof f==="object")(F))for(let f of Du(F))D(f,F[f]);else C(u,this[FF](F),E)}[FF](D){if(D==="__proto__")return"___proto___";return D}[EF](D,u){return this[Eu](this[EF].bind(this),"key",D,u),this}[CF](){var D,u,F,E,C,f,$,G,J,Y,U,Q;let X=B(this,Nu,"f").pop();XD(X,void 0,B(this,P,"f"));let O;D=this,u=this,F=this,E=this,C=this,f=this,$=this,G=this,J=this,Y=this,U=this,Q=this,{options:{set value(W){H(D,K,W,"f")}}.value,configObjects:O,exitProcess:{set value(W){H(u,WD,W,"f")}}.value,groups:{set value(W){H(F,VD,W,"f")}}.value,output:{set value(W){H(E,hD,W,"f")}}.value,exitError:{set value(W){H(C,wD,W,"f")}}.value,hasOutput:{set value(W){H(f,OD,W,"f")}}.value,parsed:this.parsed,strict:{set value(W){H($,kD,W,"f")}}.value,strictCommands:{set value(W){H(G,gD,W,"f")}}.value,strictOptions:{set value(W){H(J,lD,W,"f")}}.value,completionCommand:{set value(W){H(Y,QD,W,"f")}}.value,parseFn:{set value(W){H(U,TD,W,"f")}}.value,parseContext:{set value(W){H(Q,dD,W,"f")}}.value}=X,B(this,K,"f").configObjects=O,B(this,b,"f").unfreeze(),B(this,r,"f").unfreeze(),B(this,uD,"f").unfreeze(),B(this,UD,"f").unfreeze()}[_0](D,u){return pD(u,(F)=>{return D(F),F})}getInternalMethods(){return{getCommandInstance:this[K0].bind(this),getContext:this[L0].bind(this),getHasOutput:this[A0].bind(this),getLoggerInstance:this[S0].bind(this),getParseContext:this[x0].bind(this),getParserConfiguration:this[yD].bind(this),getUsageConfiguration:this[H0].bind(this),getUsageInstance:this[P0].bind(this),getValidationInstance:this[w0].bind(this),hasParseCallback:this[Vu].bind(this),isGlobalContext:this[b0].bind(this),postProcess:this[sD].bind(this),reset:this[BF].bind(this),runValidation:this[fF].bind(this),runYargsParserAndExecuteCommands:this[Gu].bind(this),setHasOutput:this[n0].bind(this)}}[K0](){return B(this,uD,"f")}[L0](){return B(this,zu,"f")}[A0](){return B(this,OD,"f")}[S0](){return B(this,iD,"f")}[x0](){return B(this,dD,"f")||{}}[P0](){return B(this,b,"f")}[w0](){return B(this,r,"f")}[Vu](){return!!B(this,TD,"f")}[b0](){return B(this,Ru,"f")}[sD](D,u,F,E){if(F)return D;if(l(D))return D;if(!u)D=this[U0](D);if(this[yD]()["parse-positional-numbers"]||this[yD]()["parse-positional-numbers"]===void 0)D=this[V0](D);if(E)D=cD(D,this,B(this,UD,"f").getMiddleware(),!1);return D}[BF](D={}){H(this,K,B(this,K,"f")||{},"f");let u={};u.local=B(this,K,"f").local||[],u.configObjects=B(this,K,"f").configObjects||[];let F={};u.local.forEach((f)=>{F[f]=!0,(D[f]||[]).forEach(($)=>{F[$]=!0})}),Object.assign(B(this,oD,"f"),Object.keys(B(this,VD,"f")).reduce((f,$)=>{let G=B(this,VD,"f")[$].filter((J)=>!(J in F));if(G.length>0)f[$]=G;return f},{})),H(this,VD,{},"f");let E=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],C=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];if(E.forEach((f)=>{u[f]=(B(this,K,"f")[f]||[]).filter(($)=>!F[$])}),C.forEach((f)=>{u[f]=xD(B(this,K,"f")[f],($)=>!F[$])}),u.envPrefix=B(this,K,"f").envPrefix,H(this,K,u,"f"),H(this,b,B(this,b,"f")?B(this,b,"f").reset(F):M0(this,B(this,P,"f")),"f"),H(this,r,B(this,r,"f")?B(this,r,"f").reset(F):Y0(this,B(this,b,"f"),B(this,P,"f")),"f"),H(this,uD,B(this,uD,"f")?B(this,uD,"f").reset():h0(B(this,b,"f"),B(this,r,"f"),B(this,UD,"f"),B(this,P,"f")),"f"),!B(this,ZD,"f"))H(this,ZD,Q0(this,B(this,b,"f"),B(this,uD,"f"),B(this,P,"f")),"f");return B(this,UD,"f").reset(),H(this,QD,null,"f"),H(this,hD,"","f"),H(this,wD,null,"f"),H(this,OD,!1,"f"),this.parsed=!1,this}[t0](D,u){return B(this,P,"f").path.relative(D,u)}[Gu](D,u,F,E=0,C=!1){var f,$,G,J;let Y=!!F||C;D=D||B(this,bD,"f"),B(this,K,"f").__=B(this,P,"f").y18n.__,B(this,K,"f").configuration=this[yD]();let U=!!B(this,K,"f").configuration["populate--"],Q=Object.assign({},B(this,K,"f").configuration,{"populate--":!0}),X=B(this,P,"f").Parser.detailed(D,Object.assign({},B(this,K,"f"),{configuration:{"parse-positional-numbers":!1,...Q}})),O=Object.assign(X.argv,B(this,dD,"f")),W=void 0,Z=X.aliases,A=!1,v=!1;if(Object.keys(O).forEach((n)=>{if(n===B(this,ND,"f")&&O[n])A=!0;else if(n===B(this,_D,"f")&&O[n])v=!0}),O.$0=this.$0,this.parsed=X,E===0)B(this,b,"f").clearCachedHelpMessage();try{if(this[au](),u)return this[sD](O,U,!!F,!1);if(B(this,ND,"f")){if([B(this,ND,"f")].concat(Z[B(this,ND,"f")]||[]).filter((ED)=>ED.length>1).includes(""+O._[O._.length-1]))O._.pop(),A=!0}H(this,Ru,!1,"f");let n=B(this,uD,"f").getCommands(),GD=((f=B(this,ZD,"f"))===null||f===void 0?void 0:f.completionKey)?[($=B(this,ZD,"f"))===null||$===void 0?void 0:$.completionKey,...(J=this.getAliases()[(G=B(this,ZD,"f"))===null||G===void 0?void 0:G.completionKey])!==null&&J!==void 0?J:[]].some((g)=>Object.prototype.hasOwnProperty.call(O,g)):!1,t=A||GD||C;if(O._.length){if(n.length){let g;for(let ED=E||0,a;O._[ED]!==void 0;ED++)if(a=String(O._[ED]),n.includes(a)&&a!==B(this,QD,"f")){let ID=B(this,uD,"f").runCommand(a,this,X,ED+1,C,A||v||C);return this[sD](ID,U,!!F,!1)}else if(!g&&a!==B(this,QD,"f")){g=a;break}if(!B(this,uD,"f").hasDefaultCommand()&&B(this,Hu,"f")&&g&&!t)B(this,r,"f").recommendCommands(g,n)}if(B(this,QD,"f")&&O._.includes(B(this,QD,"f"))&&!GD){if(B(this,WD,"f"))PD(!0);this.showCompletionScript(),this.exit(0)}}if(B(this,uD,"f").hasDefaultCommand()&&!t){let g=B(this,uD,"f").runCommand(null,this,X,0,C,A||v||C);return this[sD](g,U,!!F,!1)}if(GD){if(B(this,WD,"f"))PD(!0);D=[].concat(D);let g=D.slice(D.indexOf(`--${B(this,ZD,"f").completionKey}`)+1);return B(this,ZD,"f").getCompletion(g,(ED,a)=>{if(ED)throw new DD(ED.message);(a||[]).forEach((ID)=>{B(this,iD,"f").log(ID)}),this.exit(0)}),this[sD](O,!U,!!F,!1)}if(!B(this,OD,"f")){if(A){if(B(this,WD,"f"))PD(!0);Y=!0,this.showHelp((g)=>{B(this,iD,"f").log(g),this.exit(0)})}else if(v){if(B(this,WD,"f"))PD(!0);Y=!0,B(this,b,"f").showVersion("log"),this.exit(0)}}if(!Y&&B(this,K,"f").skipValidation.length>0)Y=Object.keys(O).some((g)=>B(this,K,"f").skipValidation.indexOf(g)>=0&&O[g]===!0);if(!Y){if(X.error)throw new DD(X.error.message);if(!GD){let g=this[fF](Z,{},X.error);if(!F)W=cD(O,this,B(this,UD,"f").getMiddleware(),!0);if(W=this[_0](g,W!==null&&W!==void 0?W:O),l(W)&&!F)W=W.then(()=>{return cD(O,this,B(this,UD,"f").getMiddleware(),!1)})}}}catch(n){if(n instanceof DD)B(this,b,"f").fail(n.message,n);else throw n}return this[sD](W!==null&&W!==void 0?W:O,U,!!F,!0)}[fF](D,u,F,E){let C={...this.getDemandedOptions()};return(f)=>{if(F)throw new DD(F.message);B(this,r,"f").nonOptionCount(f),B(this,r,"f").requiredArguments(f,C);let $=!1;if(B(this,gD,"f"))$=B(this,r,"f").unknownCommands(f);if(B(this,kD,"f")&&!$)B(this,r,"f").unknownArguments(f,D,u,!!E);else if(B(this,lD,"f"))B(this,r,"f").unknownArguments(f,D,{},!1,!1);B(this,r,"f").limitedChoices(f),B(this,r,"f").implications(f),B(this,r,"f").conflicting(f)}}[n0](){H(this,OD,!0,"f")}[rD](D){if(typeof D==="string")B(this,K,"f").key[D]=!0;else for(let u of D)B(this,K,"f").key[u]=!0}}function z0(D){return!!D&&typeof D.getInternalMethods==="function"}var Z8=c0(ku),v0=Z8;import{EOL as HD}from"os";import e0 from"path";import J8 from"fs";var m0=g0("main");l0("main");var RD=du(process.argv),D2=new Set(["--version","-v"]);if(RD.length===1&&D2.has(RD[0]))process.stdout.write(Lu+HD),process.exit();if(RD.length===2&&RD.some((D)=>D2.has(D))&&RD.includes("--verbose")){let D=process.argv[1],u=(()=>{if(!D||D.startsWith("-"))return;if(D.startsWith("/$bunfs/")||/^B:[\\/]~BUN[\\/]/.test(D))return;let E=e0.resolve(D);if(E===process.execPath)return;try{if(!J8.statSync(E).isFile())return}catch{return}return E})(),F=[`version: ${Lu}`,`channel: ${d0}`,`commit: ${o0}`,`binary: ${process.execPath}`,...u?[`bundle: ${u}`]:[]];process.stdout.write(F.join(HD)+HD),process.exit()}var _u={acp:()=>import("./chunk-vk88jj60.js").then((D)=>D.AcpCommand),mcp:()=>import("./chunk-3888asr7.js").then((D)=>D.McpCommand),attach:()=>import("./chunk-me1ja46g.js").then((D)=>D.AttachCommand),run:()=>import("./chunk-3c3xzz0g.js").then((D)=>D.RunCommand),generate:()=>import("./chunk-dy31mchw.js").then((D)=>D.GenerateCommand),debug:()=>import("./chunk-2faah8w1.js").then((D)=>D.DebugCommand),console:()=>import("./chunk-hnrqhcgq.js").then((D)=>D.ConsoleCommand),providers:()=>import("./chunk-a5pbvp1f.js").then((D)=>D.ProvidersCommand),agent:()=>import("./chunk-y6h35v4a.js").then((D)=>D.AgentCommand),upgrade:()=>import("./chunk-0ykeedfm.js").then((D)=>D.UpgradeCommand),uninstall:()=>import("./chunk-s0c0t6qr.js").then((D)=>D.UninstallCommand),serve:()=>import("./chunk-j17421hz.js").then((D)=>D.ServeCommand),models:()=>import("./chunk-y72p79v2.js").then((D)=>D.ModelsCommand),stats:()=>import("./chunk-e5rda9mx.js").then((D)=>D.StatsCommand),usage:()=>import("./chunk-44y6dffe.js").then((D)=>D.UsageCommand),export:()=>import("./chunk-y2ptjam9.js").then((D)=>D.ExportCommand),import:()=>import("./chunk-sghy9s7m.js").then((D)=>D.ImportCommand),github:()=>import("./chunk-3jms025t.js").then((D)=>D.GithubCommand),pr:()=>import("./chunk-8apeexas.js").then((D)=>D.PrCommand),session:()=>import("./chunk-96sqbyvf.js").then((D)=>D.SessionCommand),plugin:()=>import("./chunk-yhsnmpzv.js").then((D)=>D.PluginCommand),plug:()=>import("./chunk-yhsnmpzv.js").then((D)=>D.PluginCommand),auth:()=>import("./chunk-hy86wfad.js").then((D)=>D.AuthCommand),qredits:()=>import("./chunk-racrb1b3.js").then((D)=>D.QreditsCommand),batch:()=>import("./chunk-g7k6ecb2.js").then((D)=>D.BatchCommand),db:()=>import("./chunk-ssdw9zre.js").then((D)=>D.DbCommand),default:()=>import("./chunk-q46pzk9z.js").then((D)=>D.TuiThreadCommand)};function y(D,u,F){return{command:D,describe:u,aliases:F,handler:async()=>{}}}function $F(){return[y("acp","start ACP (Agent Client Protocol) server"),y("mcp","manage MCP (Model Context Protocol) servers"),{command:"$0 [project]",describe:"start qitqode tui",builder:(D)=>D.positional("project",{type:"string",describe:"path to start qitqode in"}).options(s0).options(r0).option("never-ask",{type:"boolean",describe:"start in never-ask mode, auto-decide without asking (permissions excluded)",default:!1}).option("trust",{type:"boolean",describe:"skip workspace trust prompt and trust the directory",default:!1}),handler:async()=>{}},y("attach <url>","attach to a running qitqode server"),y("run [message..]","run qitqode with a message"),y("generate","generate files"),y("debug","debugging and troubleshooting tools"),y("console","manage qitqode accounts"),y("providers","manage AI providers and credentials",["auth"]),y("agent","manage agents"),y("upgrade [target]","upgrade qitqode to the latest or a specific version"),y("uninstall","uninstall qitqode and remove all related files"),y("serve","starts a headless qitqode server"),y("models [provider]","list all available models"),y("stats","show token usage and cost statistics"),y("usage [sessionID]","show per-turn token usage and cost"),y("export [sessionID]","export session data as JSON"),y("import <file>","import session data from JSON file or URL"),y("github","manage GitHub agent"),y("pr <number>","fetch and checkout a GitHub PR branch, then run qitqode"),y("session","manage sessions"),y("plugin <module>","install plugin and update config",["plug"]),y("auth <command>","Sign in or out of Forgewise"),y("qredits <command>","Check Qredits balance and spend history"),y("batch <command>","Submit and poll async batch LLM jobs"),y("db","database tools")]}function zF(D){let u=new Set(["--log-level","--model","-m","--session","-s","--prompt","--agent","--port","--hostname","--mdns-domain","--cors"]);for(let F=0;F<D.length;F++){let E=D[F];if(E==="--")return;if(E.startsWith("-")){if(u.has(E))F++;continue}return E}}function Q8(D){return D.length>0&&D.every((u)=>u==="--help"||u==="-h")}function O8(D){return D.includes("--help")||D.includes("-h")}async function T8(D){let u=zF(D);if(D.includes("--get-yargs-completions")||u==="completion")return $F();if(Q8(D))return $F();else if(u&&u in _u)return[await _u[u]()];else if(O8(D))return $F();else return[await _u.default()]}function u2(D){let u=D.trimStart();if(!u.startsWith("qitqode ")){process.stderr.write(Ku.logo()+HD+HD),process.stderr.write(u);return}process.stderr.write(D)}var Mu=y0(v0(RD)).middleware(async(D)=>{if(D.pure)process.env.QITQODE_PURE="1";let u=await import("./chunk-vrv67tt0.js"),{Filesystem:F}=await import("./chunk-wv8qx8sa.js"),{Heap:E}=await import("./chunk-h4f582d6.js"),{Global:C}=await import("./chunk-22hr3ndh.js");await u.init({print:process.argv.includes("--print-logs"),dev:hF,level:(()=>{if(D.logLevel)return D.logLevel;if(hF)return"DEBUG";return"INFO"})()}),E.start(),(await import("./chunk-mce8aa9y.js")).startRefresh(),process.env.AGENT="1",process.env.QITQODE="1",process.env.QITQODE_PID=String(process.pid),u.Default.info("qitqode",{version:Lu,command:zF(RD)??"tui",process_role:m0.processRole,run_id:m0.runID});let $=e0.join(C.Path.data,"qitqode.db");if(!await F.exists($)){let{JsonMigration:G,Database:J}=await import("./chunk-cbhgf058.js"),{drizzle:Y}=await import("./chunk-0ych0f5w.js"),U=process.stderr.isTTY;process.stderr.write("Performing one time database migration, may take a few minutes..."+HD);let Q=-1;if(U)process.stderr.write("\x1B[?25l");try{await G.run(Y({client:J.Client().$client}),{progress:(X)=>{let O=Math.floor(X.current/X.total*100);if(O===Q&&X.current!==X.total)return;if(Q=O,U){if(process.stderr.write(a0(O,`${X.label.padEnd(12)} ${X.current}/${X.total}`)),X.current===X.total)process.stderr.write(`
81
- `)}else process.stderr.write(`sqlite-migration:${O}${HD}`)}})}finally{if(U)process.stderr.write("\x1B[?25h");else process.stderr.write(`sqlite-migration:done${HD}`)}process.stderr.write("Database migration complete."+HD)}if(!process.env.QITQODE_DISABLE_CLAUDE_IMPORT&&!process.env.QITQODE_CLAUDE_IMPORTED){process.env.QITQODE_CLAUDE_IMPORTED="1";let G=async()=>{try{let{ClaudeImport:U}=await import("./chunk-skxhg212.js");await U.run()}catch(U){u.Default.warn("claude-import failed",{e:GF(U)})}},J=zF(RD);if(!J||!(J in _u))G();else await G()}}).usage("").completion("completion","generate shell completion script");for(let D of await T8(RD))Mu.command(D);Mu.fail((D,u)=>{if(D?.startsWith("Unknown argument")||D?.startsWith("Not enough non-option arguments")||D?.startsWith("Invalid values:")){if(u)throw u;Mu.showHelp(u2)}if(u)throw u;process.exit(1)}).strict();try{if(RD.includes("-h")||RD.includes("--help"))await Mu.parse(RD,(D,u,F)=>{if(D)throw D;if(!F)return;u2(F)});else await Mu.parse()}catch(D){let u={};if(D instanceof i0){let C=D.toObject();Object.assign(u,{...C.data})}if(D instanceof Error)Object.assign(u,{name:D.name,message:D.message,cause:D.cause?.toString(),stack:D.stack});if(D instanceof ResolveMessage)Object.assign(u,{name:D.name,message:D.message,code:D.code,specifier:D.specifier,referrer:D.referrer,position:D.position,importKind:D.importKind});let F=await import("./chunk-vrv67tt0.js");F.Default.error("fatal",u);let E=k0(D);if(E)Ku.error(E);if(E===void 0)Ku.error("Unexpected error, check log file at "+F.file()+" for more details"+HD),process.stderr.write(GF(D)+HD);process.exitCode=1}finally{process.exit()}
80
+ `,"f");H(this,hD,B(this,hD,"f")+D.join(" "),"f")}}}[ru](D){Du(B(this,K,"f")).forEach((u)=>{if(((E)=>E==="configObjects")(u))return;let F=B(this,K,"f")[u];if(Array.isArray(F)){if(F.includes(D))F.splice(F.indexOf(D),1)}else if(typeof F==="object")delete F[D]}),delete B(this,b,"f").getDescriptions()[D]}[R0](D,u,F){if(!B(this,Uu,"f")[F])B(this,P,"f").process.emitWarning(D,u),B(this,Uu,"f")[F]=!0}[j0](){B(this,Nu,"f").push({options:B(this,K,"f"),configObjects:B(this,K,"f").configObjects.slice(0),exitProcess:B(this,WD,"f"),groups:B(this,VD,"f"),strict:B(this,kD,"f"),strictCommands:B(this,gD,"f"),strictOptions:B(this,yD,"f"),completionCommand:B(this,QD,"f"),output:B(this,hD,"f"),exitError:B(this,wD,"f"),hasOutput:B(this,OD,"f"),parsed:this.parsed,parseFn:B(this,TD,"f"),parseContext:B(this,dD,"f")}),B(this,b,"f").freeze(),B(this,r,"f").freeze(),B(this,uD,"f").freeze(),B(this,UD,"f").freeze()}[q0](){let D="",u;if(/\b(node|iojs|electron)(\.exe)?$/.test(B(this,P,"f").process.argv()[0]))u=B(this,P,"f").process.argv().slice(1,2);else u=B(this,P,"f").process.argv().slice(0,1);if(D=u.map((F)=>{let E=this[t0](B(this,vD,"f"),F);return F.match(/^(\/|([a-zA-Z]:)?\\)/)&&E.length<F.length?E:F}).join(" ").trim(),B(this,P,"f").getEnv("_")&&B(this,P,"f").getProcessArgvBin()===B(this,P,"f").getEnv("_"))D=B(this,P,"f").getEnv("_").replace(`${B(this,P,"f").path.dirname(B(this,P,"f").process.execPath())}/`,"");return D}[lD](){return B(this,qu,"f")}[H0](){return B(this,Iu,"f")}[au](){if(!B(this,mD,"f"))return;let D=B(this,P,"f").getEnv("LC_ALL")||B(this,P,"f").getEnv("LC_MESSAGES")||B(this,P,"f").getEnv("LANG")||B(this,P,"f").getEnv("LANGUAGE")||"en_US";this.locale(D.replace(/[.:].*/,""))}[I0](){return this[eu]().version||"unknown"}[V0](D){let u=D["--"]?D["--"]:D._;for(let F=0,E;(E=u[F])!==void 0;F++)if(B(this,P,"f").Parser.looksLikeNumber(E)&&Number.isSafeInteger(Math.floor(parseFloat(`${E}`))))u[F]=Number(E);return D}[eu](D){let u=D||"*";if(B(this,Fu,"f")[u])return B(this,Fu,"f")[u];let F={};try{let E=D||B(this,P,"f").mainFilename;if(B(this,P,"f").path.extname(E))E=B(this,P,"f").path.dirname(E);let C=B(this,P,"f").findUp(E,(f,$)=>{if($.includes("package.json"))return"package.json";else return});ZD(C,void 0,B(this,P,"f")),F=JSON.parse(B(this,P,"f").readFileSync(C,"utf8"))}catch(E){}return B(this,Fu,"f")[u]=F||{},B(this,Fu,"f")[u]}[tD](D,u){u=[].concat(u),u.forEach((F)=>{F=this[FF](F),B(this,K,"f")[D].push(F)})}[Eu](D,u,F,E){this[uF](D,u,F,E,(C,f,$)=>{B(this,K,"f")[C][f]=$})}[DF](D,u,F,E){this[uF](D,u,F,E,(C,f,$)=>{B(this,K,"f")[C][f]=(B(this,K,"f")[C][f]||[]).concat($)})}[uF](D,u,F,E,C){if(Array.isArray(F))F.forEach((f)=>{D(f,E)});else if(((f)=>typeof f==="object")(F))for(let f of Du(F))D(f,F[f]);else C(u,this[FF](F),E)}[FF](D){if(D==="__proto__")return"___proto___";return D}[EF](D,u){return this[Eu](this[EF].bind(this),"key",D,u),this}[CF](){var D,u,F,E,C,f,$,G,J,Y,U,Q;let Z=B(this,Nu,"f").pop();ZD(Z,void 0,B(this,P,"f"));let O;D=this,u=this,F=this,E=this,C=this,f=this,$=this,G=this,J=this,Y=this,U=this,Q=this,{options:{set value(W){H(D,K,W,"f")}}.value,configObjects:O,exitProcess:{set value(W){H(u,WD,W,"f")}}.value,groups:{set value(W){H(F,VD,W,"f")}}.value,output:{set value(W){H(E,hD,W,"f")}}.value,exitError:{set value(W){H(C,wD,W,"f")}}.value,hasOutput:{set value(W){H(f,OD,W,"f")}}.value,parsed:this.parsed,strict:{set value(W){H($,kD,W,"f")}}.value,strictCommands:{set value(W){H(G,gD,W,"f")}}.value,strictOptions:{set value(W){H(J,yD,W,"f")}}.value,completionCommand:{set value(W){H(Y,QD,W,"f")}}.value,parseFn:{set value(W){H(U,TD,W,"f")}}.value,parseContext:{set value(W){H(Q,dD,W,"f")}}.value}=Z,B(this,K,"f").configObjects=O,B(this,b,"f").unfreeze(),B(this,r,"f").unfreeze(),B(this,uD,"f").unfreeze(),B(this,UD,"f").unfreeze()}[_0](D,u){return pD(u,(F)=>{return D(F),F})}getInternalMethods(){return{getCommandInstance:this[K0].bind(this),getContext:this[L0].bind(this),getHasOutput:this[A0].bind(this),getLoggerInstance:this[S0].bind(this),getParseContext:this[x0].bind(this),getParserConfiguration:this[lD].bind(this),getUsageConfiguration:this[H0].bind(this),getUsageInstance:this[P0].bind(this),getValidationInstance:this[w0].bind(this),hasParseCallback:this[Vu].bind(this),isGlobalContext:this[b0].bind(this),postProcess:this[sD].bind(this),reset:this[BF].bind(this),runValidation:this[fF].bind(this),runYargsParserAndExecuteCommands:this[Gu].bind(this),setHasOutput:this[n0].bind(this)}}[K0](){return B(this,uD,"f")}[L0](){return B(this,zu,"f")}[A0](){return B(this,OD,"f")}[S0](){return B(this,iD,"f")}[x0](){return B(this,dD,"f")||{}}[P0](){return B(this,b,"f")}[w0](){return B(this,r,"f")}[Vu](){return!!B(this,TD,"f")}[b0](){return B(this,Ru,"f")}[sD](D,u,F,E){if(F)return D;if(y(D))return D;if(!u)D=this[U0](D);if(this[lD]()["parse-positional-numbers"]||this[lD]()["parse-positional-numbers"]===void 0)D=this[V0](D);if(E)D=cD(D,this,B(this,UD,"f").getMiddleware(),!1);return D}[BF](D={}){H(this,K,B(this,K,"f")||{},"f");let u={};u.local=B(this,K,"f").local||[],u.configObjects=B(this,K,"f").configObjects||[];let F={};u.local.forEach((f)=>{F[f]=!0,(D[f]||[]).forEach(($)=>{F[$]=!0})}),Object.assign(B(this,oD,"f"),Object.keys(B(this,VD,"f")).reduce((f,$)=>{let G=B(this,VD,"f")[$].filter((J)=>!(J in F));if(G.length>0)f[$]=G;return f},{})),H(this,VD,{},"f");let E=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],C=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];if(E.forEach((f)=>{u[f]=(B(this,K,"f")[f]||[]).filter(($)=>!F[$])}),C.forEach((f)=>{u[f]=xD(B(this,K,"f")[f],($)=>!F[$])}),u.envPrefix=B(this,K,"f").envPrefix,H(this,K,u,"f"),H(this,b,B(this,b,"f")?B(this,b,"f").reset(F):M0(this,B(this,P,"f")),"f"),H(this,r,B(this,r,"f")?B(this,r,"f").reset(F):Y0(this,B(this,b,"f"),B(this,P,"f")),"f"),H(this,uD,B(this,uD,"f")?B(this,uD,"f").reset():h0(B(this,b,"f"),B(this,r,"f"),B(this,UD,"f"),B(this,P,"f")),"f"),!B(this,XD,"f"))H(this,XD,Q0(this,B(this,b,"f"),B(this,uD,"f"),B(this,P,"f")),"f");return B(this,UD,"f").reset(),H(this,QD,null,"f"),H(this,hD,"","f"),H(this,wD,null,"f"),H(this,OD,!1,"f"),this.parsed=!1,this}[t0](D,u){return B(this,P,"f").path.relative(D,u)}[Gu](D,u,F,E=0,C=!1){var f,$,G,J;let Y=!!F||C;D=D||B(this,bD,"f"),B(this,K,"f").__=B(this,P,"f").y18n.__,B(this,K,"f").configuration=this[lD]();let U=!!B(this,K,"f").configuration["populate--"],Q=Object.assign({},B(this,K,"f").configuration,{"populate--":!0}),Z=B(this,P,"f").Parser.detailed(D,Object.assign({},B(this,K,"f"),{configuration:{"parse-positional-numbers":!1,...Q}})),O=Object.assign(Z.argv,B(this,dD,"f")),W=void 0,X=Z.aliases,A=!1,v=!1;if(Object.keys(O).forEach((n)=>{if(n===B(this,ND,"f")&&O[n])A=!0;else if(n===B(this,_D,"f")&&O[n])v=!0}),O.$0=this.$0,this.parsed=Z,E===0)B(this,b,"f").clearCachedHelpMessage();try{if(this[au](),u)return this[sD](O,U,!!F,!1);if(B(this,ND,"f")){if([B(this,ND,"f")].concat(X[B(this,ND,"f")]||[]).filter((ED)=>ED.length>1).includes(""+O._[O._.length-1]))O._.pop(),A=!0}H(this,Ru,!1,"f");let n=B(this,uD,"f").getCommands(),GD=((f=B(this,XD,"f"))===null||f===void 0?void 0:f.completionKey)?[($=B(this,XD,"f"))===null||$===void 0?void 0:$.completionKey,...(J=this.getAliases()[(G=B(this,XD,"f"))===null||G===void 0?void 0:G.completionKey])!==null&&J!==void 0?J:[]].some((g)=>Object.prototype.hasOwnProperty.call(O,g)):!1,t=A||GD||C;if(O._.length){if(n.length){let g;for(let ED=E||0,a;O._[ED]!==void 0;ED++)if(a=String(O._[ED]),n.includes(a)&&a!==B(this,QD,"f")){let ID=B(this,uD,"f").runCommand(a,this,Z,ED+1,C,A||v||C);return this[sD](ID,U,!!F,!1)}else if(!g&&a!==B(this,QD,"f")){g=a;break}if(!B(this,uD,"f").hasDefaultCommand()&&B(this,Hu,"f")&&g&&!t)B(this,r,"f").recommendCommands(g,n)}if(B(this,QD,"f")&&O._.includes(B(this,QD,"f"))&&!GD){if(B(this,WD,"f"))PD(!0);this.showCompletionScript(),this.exit(0)}}if(B(this,uD,"f").hasDefaultCommand()&&!t){let g=B(this,uD,"f").runCommand(null,this,Z,0,C,A||v||C);return this[sD](g,U,!!F,!1)}if(GD){if(B(this,WD,"f"))PD(!0);D=[].concat(D);let g=D.slice(D.indexOf(`--${B(this,XD,"f").completionKey}`)+1);return B(this,XD,"f").getCompletion(g,(ED,a)=>{if(ED)throw new DD(ED.message);(a||[]).forEach((ID)=>{B(this,iD,"f").log(ID)}),this.exit(0)}),this[sD](O,!U,!!F,!1)}if(!B(this,OD,"f")){if(A){if(B(this,WD,"f"))PD(!0);Y=!0,this.showHelp((g)=>{B(this,iD,"f").log(g),this.exit(0)})}else if(v){if(B(this,WD,"f"))PD(!0);Y=!0,B(this,b,"f").showVersion("log"),this.exit(0)}}if(!Y&&B(this,K,"f").skipValidation.length>0)Y=Object.keys(O).some((g)=>B(this,K,"f").skipValidation.indexOf(g)>=0&&O[g]===!0);if(!Y){if(Z.error)throw new DD(Z.error.message);if(!GD){let g=this[fF](X,{},Z.error);if(!F)W=cD(O,this,B(this,UD,"f").getMiddleware(),!0);if(W=this[_0](g,W!==null&&W!==void 0?W:O),y(W)&&!F)W=W.then(()=>{return cD(O,this,B(this,UD,"f").getMiddleware(),!1)})}}}catch(n){if(n instanceof DD)B(this,b,"f").fail(n.message,n);else throw n}return this[sD](W!==null&&W!==void 0?W:O,U,!!F,!0)}[fF](D,u,F,E){let C={...this.getDemandedOptions()};return(f)=>{if(F)throw new DD(F.message);B(this,r,"f").nonOptionCount(f),B(this,r,"f").requiredArguments(f,C);let $=!1;if(B(this,gD,"f"))$=B(this,r,"f").unknownCommands(f);if(B(this,kD,"f")&&!$)B(this,r,"f").unknownArguments(f,D,u,!!E);else if(B(this,yD,"f"))B(this,r,"f").unknownArguments(f,D,{},!1,!1);B(this,r,"f").limitedChoices(f),B(this,r,"f").implications(f),B(this,r,"f").conflicting(f)}}[n0](){H(this,OD,!0,"f")}[rD](D){if(typeof D==="string")B(this,K,"f").key[D]=!0;else for(let u of D)B(this,K,"f").key[u]=!0}}function z0(D){return!!D&&typeof D.getInternalMethods==="function"}var J8=c0(ku),v0=J8;import{EOL as HD}from"os";import D2 from"path";import Q8 from"fs";function m0(D=process.env){if(!D.QITQODE_KEY&&D.QORTEX_KEY)D.QITQODE_KEY=D.QORTEX_KEY;if(!D.QLEX_API_KEY&&D.QITQODE_KEY)D.QLEX_API_KEY=D.QITQODE_KEY}m0();var i0=y0("main");l0("main");var RD=du(process.argv),u2=new Set(["--version","-v"]);if(RD.length===1&&u2.has(RD[0]))process.stdout.write(Lu+HD),process.exit();if(RD.length===2&&RD.some((D)=>u2.has(D))&&RD.includes("--verbose")){let D=process.argv[1],u=(()=>{if(!D||D.startsWith("-"))return;if(D.startsWith("/$bunfs/")||/^B:[\\/]~BUN[\\/]/.test(D))return;let E=D2.resolve(D);if(E===process.execPath)return;try{if(!Q8.statSync(E).isFile())return}catch{return}return E})(),F=[`version: ${Lu}`,`channel: ${o0}`,`commit: ${k0}`,`binary: ${process.execPath}`,...u?[`bundle: ${u}`]:[]];process.stdout.write(F.join(HD)+HD),process.exit()}var _u={acp:()=>import("./chunk-v3arcn10.js").then((D)=>D.AcpCommand),mcp:()=>import("./chunk-x65xbskr.js").then((D)=>D.McpCommand),attach:()=>import("./chunk-k2vsezeb.js").then((D)=>D.AttachCommand),run:()=>import("./chunk-jqekpprn.js").then((D)=>D.RunCommand),generate:()=>import("./chunk-ym09zrxe.js").then((D)=>D.GenerateCommand),debug:()=>import("./chunk-3hcr2bzt.js").then((D)=>D.DebugCommand),console:()=>import("./chunk-xpjhe9gz.js").then((D)=>D.ConsoleCommand),providers:()=>import("./chunk-j8nkz81m.js").then((D)=>D.ProvidersCommand),agent:()=>import("./chunk-t6yzrmww.js").then((D)=>D.AgentCommand),upgrade:()=>import("./chunk-ytetprwr.js").then((D)=>D.UpgradeCommand),uninstall:()=>import("./chunk-620dpezx.js").then((D)=>D.UninstallCommand),serve:()=>import("./chunk-rv08wm9j.js").then((D)=>D.ServeCommand),models:()=>import("./chunk-4v2pzx22.js").then((D)=>D.ModelsCommand),stats:()=>import("./chunk-9pmmf4k1.js").then((D)=>D.StatsCommand),usage:()=>import("./chunk-9y03z65a.js").then((D)=>D.UsageCommand),export:()=>import("./chunk-bghqsh7r.js").then((D)=>D.ExportCommand),import:()=>import("./chunk-qnaw8k98.js").then((D)=>D.ImportCommand),github:()=>import("./chunk-1t0c86bz.js").then((D)=>D.GithubCommand),pr:()=>import("./chunk-pdjafjry.js").then((D)=>D.PrCommand),session:()=>import("./chunk-2prf30p3.js").then((D)=>D.SessionCommand),plugin:()=>import("./chunk-7zx1ve4w.js").then((D)=>D.PluginCommand),plug:()=>import("./chunk-7zx1ve4w.js").then((D)=>D.PluginCommand),auth:()=>import("./chunk-58w8c6c2.js").then((D)=>D.AuthCommand),qredits:()=>import("./chunk-b2p54yka.js").then((D)=>D.QreditsCommand),batch:()=>import("./chunk-kqhczjf6.js").then((D)=>D.BatchCommand),db:()=>import("./chunk-dj1jen1p.js").then((D)=>D.DbCommand),default:()=>import("./chunk-25ganjcn.js").then((D)=>D.TuiThreadCommand)};function l(D,u,F){return{command:D,describe:u,aliases:F,handler:async()=>{}}}function $F(){return[l("acp","start ACP (Agent Client Protocol) server"),l("mcp","manage MCP (Model Context Protocol) servers"),{command:"$0 [project]",describe:"start qitqode tui",builder:(D)=>D.positional("project",{type:"string",describe:"path to start qitqode in"}).options(r0).options(a0).option("never-ask",{type:"boolean",describe:"start in never-ask mode, auto-decide without asking (permissions excluded)",default:!1}),handler:async()=>{}},l("attach <url>","attach to a running qitqode server"),l("run [message..]","run qitqode with a message"),l("generate","generate files"),l("debug","debugging and troubleshooting tools"),l("console","manage qitqode accounts"),l("providers","manage AI providers and credentials",["auth"]),l("agent","manage agents"),l("upgrade [target]","upgrade qitqode to the latest or a specific version"),l("uninstall","uninstall qitqode and remove all related files"),l("serve","starts a headless qitqode server"),l("models [provider]","list all available models"),l("stats","show token usage and cost statistics"),l("usage [sessionID]","show per-turn token usage and cost"),l("export [sessionID]","export a complete session transcript as JSON or Markdown"),l("import <file>","import session data from JSON file or URL"),l("github","manage GitHub agent"),l("pr <number>","fetch and checkout a GitHub PR branch, then run qitqode"),l("session","manage sessions"),l("plugin <module>","install plugin and update config",["plug"]),l("auth <command>","Sign in or out of Forgewise"),l("qredits <command>","Check Qredits balance and spend history"),l("batch <command>","Submit and poll async batch LLM jobs"),l("db","database tools")]}function zF(D){let u=new Set(["--log-level","--model","-m","--session","-s","--prompt","--agent","--port","--hostname","--mdns-domain","--cors"]);for(let F=0;F<D.length;F++){let E=D[F];if(E==="--")return;if(E.startsWith("-")){if(u.has(E))F++;continue}return E}}function O8(D){return D.length>0&&D.every((u)=>u==="--help"||u==="-h")}function T8(D){return D.includes("--help")||D.includes("-h")}async function Y8(D){let u=zF(D);if(D.includes("--get-yargs-completions")||u==="completion")return $F();if(O8(D))return $F();else if(u&&u in _u)return[await _u[u]()];else if(T8(D))return $F();else return[await _u.default()]}function F2(D){let u=D.trimStart();if(!u.startsWith("qitqode ")){process.stderr.write(Ku.logo()+HD+HD),process.stderr.write(u);return}process.stderr.write(D)}var Mu=s0(v0(RD)).middleware(async(D)=>{if(D.pure)process.env.QITQODE_PURE="1";let u=await import("./chunk-st0c5wwc.js"),{Filesystem:F}=await import("./chunk-zzznad30.js"),{Heap:E}=await import("./chunk-ak8e1nrf.js"),{Global:C}=await import("./chunk-dvr2b9r1.js");await u.init({print:process.argv.includes("--print-logs"),dev:hF,level:(()=>{if(D.logLevel)return D.logLevel;if(hF)return"DEBUG";return"INFO"})()}),E.start(),(await import("./chunk-pkn85169.js")).startRefresh(),process.env.AGENT="1",process.env.QITQODE="1",process.env.QITQODE_PID=String(process.pid),u.Default.info("qitqode",{version:Lu,command:zF(RD)??"tui",process_role:i0.processRole,run_id:i0.runID});let $=D2.join(C.Path.data,"qitqode.db");if(!await F.exists($)){let{JsonMigration:G,Database:J}=await import("./chunk-x749e61j.js"),{drizzle:Y}=await import("./chunk-jvkzdap1.js"),U=process.stderr.isTTY;process.stderr.write("Performing one time database migration, may take a few minutes..."+HD);let Q=-1;if(U)process.stderr.write("\x1B[?25l");try{await G.run(Y({client:J.Client().$client}),{progress:(Z)=>{let O=Math.floor(Z.current/Z.total*100);if(O===Q&&Z.current!==Z.total)return;if(Q=O,U){if(process.stderr.write(e0(O,`${Z.label.padEnd(12)} ${Z.current}/${Z.total}`)),Z.current===Z.total)process.stderr.write(`
81
+ `)}else process.stderr.write(`sqlite-migration:${O}${HD}`)}})}finally{if(U)process.stderr.write("\x1B[?25h");else process.stderr.write(`sqlite-migration:done${HD}`)}process.stderr.write("Database migration complete."+HD)}if(!process.env.QITQODE_DISABLE_CLAUDE_IMPORT&&!process.env.QITQODE_CLAUDE_IMPORTED){process.env.QITQODE_CLAUDE_IMPORTED="1";let G=async()=>{try{let{ClaudeImport:U}=await import("./chunk-dypdyrmy.js");await U.run()}catch(U){u.Default.warn("claude-import failed",{e:GF(U)})}},J=zF(RD);if(!J||!(J in _u))G();else await G()}}).usage("").completion("completion","generate shell completion script");for(let D of await Y8(RD))Mu.command(D);Mu.fail((D,u)=>{if(D?.startsWith("Unknown argument")||D?.startsWith("Not enough non-option arguments")||D?.startsWith("Invalid values:")){if(u)throw u;Mu.showHelp(F2)}if(u)throw u;process.exit(1)}).strict();try{if(RD.includes("-h")||RD.includes("--help"))await Mu.parse(RD,(D,u,F)=>{if(D)throw D;if(!F)return;F2(F)});else await Mu.parse()}catch(D){let u={};if(D instanceof d0){let C=D.toObject();Object.assign(u,{...C.data})}if(D instanceof Error)Object.assign(u,{name:D.name,message:D.message,cause:D.cause?.toString(),stack:D.stack});if(D instanceof ResolveMessage)Object.assign(u,{name:D.name,message:D.message,code:D.code,specifier:D.specifier,referrer:D.referrer,position:D.position,importKind:D.importKind});let F=await import("./chunk-st0c5wwc.js");F.Default.error("fatal",u);let E=g0(D);if(E)Ku.error(E);if(E===void 0)Ku.error("Unexpected error, check log file at "+F.file()+" for more details"+HD),process.stderr.write(GF(D)+HD);process.exitCode=1}finally{process.exit()}