@qitqode/qitqode-android-arm64 0.2.9 → 0.2.11

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 (432) hide show
  1. package/bundle/chunk-06j0gaen.js +2 -0
  2. package/bundle/{chunk-g4tyaj0m.js → chunk-075gkea2.js} +1 -1
  3. package/bundle/{chunk-8ysp6vf8.js → chunk-09n24ztn.js} +1 -1
  4. package/bundle/chunk-0bn86djg.js +3 -0
  5. package/bundle/chunk-0mm40z8g.js +2 -0
  6. package/bundle/{chunk-s2tc3qs0.js → chunk-0tya4pqb.js} +2 -2
  7. package/bundle/{chunk-0s4cp6q2.js → chunk-1dnvdeat.js} +2 -2
  8. package/bundle/chunk-1h9sc0gy.js +2 -0
  9. package/bundle/chunk-1mqfhw0f.js +2 -0
  10. package/bundle/{chunk-b5ym419d.js → chunk-1p39y33b.js} +2 -2
  11. package/bundle/{chunk-5cw8235e.js → chunk-1pd943m9.js} +1 -1
  12. package/bundle/{chunk-m7tmgvh6.js → chunk-1rsabv4p.js} +1 -1
  13. package/bundle/{chunk-dwkrqtbc.js → chunk-1tdy73ha.js} +2 -2
  14. package/bundle/{chunk-phf37x1c.js → chunk-1yh1f9yj.js} +1 -1
  15. package/bundle/chunk-22wa8zty.js +2 -0
  16. package/bundle/chunk-28kte9rt.js +2 -0
  17. package/bundle/chunk-2dhjehxe.js +2 -0
  18. package/bundle/{chunk-kre93a89.js → chunk-2h8b0csf.js} +2 -2
  19. package/bundle/chunk-2nnfxbd2.js +2 -0
  20. package/bundle/{chunk-j10a984e.js → chunk-2ts74cgq.js} +2 -2
  21. package/bundle/{chunk-cfwz1hgr.js → chunk-2vsqsxe1.js} +3 -3
  22. package/bundle/chunk-2w5zmgpb.js +2 -0
  23. package/bundle/{chunk-8yzghzjq.js → chunk-32x2901e.js} +1 -1
  24. package/bundle/chunk-34qt3fqj.js +2 -0
  25. package/bundle/{chunk-5r7c6vvx.js → chunk-3amgvg81.js} +2 -2
  26. package/bundle/{chunk-0w19vmd7.js → chunk-3hawwbw6.js} +2 -2
  27. package/bundle/chunk-3p0xvt47.js +2 -0
  28. package/bundle/chunk-3pzx5ret.js +2 -0
  29. package/bundle/{chunk-nsp1za8t.js → chunk-3tf7xfw5.js} +2 -2
  30. package/bundle/chunk-3y4rmqmm.js +2 -0
  31. package/bundle/{chunk-wd8f9r4k.js → chunk-42gd2vx4.js} +1 -1
  32. package/bundle/{chunk-702bt91p.js → chunk-43eqr0ds.js} +4 -4
  33. package/bundle/{chunk-1p9s5jj1.js → chunk-43x9n8rp.js} +1 -1
  34. package/bundle/{chunk-13jq2ygc.js → chunk-44685nzw.js} +2 -2
  35. package/bundle/chunk-46ewdxgh.js +2 -0
  36. package/bundle/{chunk-makegrxs.js → chunk-4805mxf7.js} +1 -1
  37. package/bundle/chunk-486874bd.js +2 -0
  38. package/bundle/{chunk-7adsab4h.js → chunk-48y4n9ne.js} +1 -1
  39. package/bundle/{chunk-vr8nwzp0.js → chunk-49brdmgp.js} +1 -1
  40. package/bundle/{chunk-az3nss5m.js → chunk-49we3vy1.js} +2 -2
  41. package/bundle/chunk-4bcbvfsw.js +2 -0
  42. package/bundle/{chunk-eewe7tx1.js → chunk-4c6d1wy1.js} +2 -2
  43. package/bundle/{chunk-p8ak162p.js → chunk-4d9s7cgr.js} +1 -1
  44. package/bundle/{chunk-scnbt714.js → chunk-4ngvj758.js} +1 -1
  45. package/bundle/{chunk-060wbpz4.js → chunk-4q14whpc.js} +1 -1
  46. package/bundle/chunk-4t1ysdag.js +2 -0
  47. package/bundle/{chunk-g9nwqwqp.js → chunk-50knjq36.js} +1 -1
  48. package/bundle/{chunk-fs1vb39f.js → chunk-51vn4f06.js} +3 -3
  49. package/bundle/{chunk-ag8wxwwz.js → chunk-5mgmq6yz.js} +1 -1
  50. package/bundle/chunk-5q7a4h2w.js +2 -0
  51. package/bundle/{chunk-rdreeyv0.js → chunk-5qydhr42.js} +3 -3
  52. package/bundle/{chunk-maa21rh9.js → chunk-611wfdn3.js} +1 -1
  53. package/bundle/{chunk-n6tqtk6h.js → chunk-63t0rhc9.js} +2 -2
  54. package/bundle/chunk-63vamhf7.js +2 -0
  55. package/bundle/chunk-6hhv3n7c.js +2 -0
  56. package/bundle/{chunk-gbkz04ke.js → chunk-6p848y99.js} +1 -1
  57. package/bundle/{chunk-f2v4g7t1.js → chunk-6xx66mr1.js} +1 -1
  58. package/bundle/{chunk-7thhd7ds.js → chunk-71h3pmnn.js} +1 -1
  59. package/bundle/{chunk-k3m7jfdh.js → chunk-78e76m4h.js} +1 -1
  60. package/bundle/{chunk-vbfej8ds.js → chunk-78yvbv9b.js} +2 -2
  61. package/bundle/chunk-7a9kfb2n.js +2 -0
  62. package/bundle/chunk-7b5vney6.js +2 -0
  63. package/bundle/{chunk-fh3d0wce.js → chunk-7jvx29js.js} +1 -1
  64. package/bundle/{chunk-zqdjk4rf.js → chunk-7wshaze9.js} +2 -2
  65. package/bundle/{chunk-rye1yjnr.js → chunk-7x4g7h04.js} +1 -1
  66. package/bundle/chunk-7x9m1smk.js +2 -0
  67. package/bundle/chunk-82mnr6sf.js +2 -0
  68. package/bundle/{chunk-0egrckx0.js → chunk-84qx54nf.js} +2 -2
  69. package/bundle/{chunk-1acn5me8.js → chunk-88hmeyf5.js} +327 -313
  70. package/bundle/{chunk-gsg6zn7e.js → chunk-89b6ttzs.js} +2 -2
  71. package/bundle/chunk-8bea2r6p.js +2 -0
  72. package/bundle/{chunk-pqg1wjb5.js → chunk-8gn7r4kb.js} +1 -1
  73. package/bundle/chunk-8h6mhzhg.js +2 -0
  74. package/bundle/chunk-8n1cmvr7.js +2 -0
  75. package/bundle/{chunk-e2wfj86b.js → chunk-8qbhnwej.js} +1 -1
  76. package/bundle/{chunk-0ffmwhw7.js → chunk-8rbbt1s8.js} +1 -1
  77. package/bundle/{chunk-zfrftgcy.js → chunk-8rc7cvex.js} +1 -1
  78. package/bundle/{chunk-rk0fnvp5.js → chunk-8t17w67q.js} +1 -1
  79. package/bundle/{chunk-h8mfbbjh.js → chunk-8y03p2md.js} +2 -2
  80. package/bundle/{chunk-3bb4aqh9.js → chunk-8z65v9c9.js} +1 -1
  81. package/bundle/{chunk-ggncq8w8.js → chunk-92xxg12q.js} +1 -1
  82. package/bundle/chunk-955zj1y6.js +2 -0
  83. package/bundle/{chunk-m4r8sepw.js → chunk-95tec4gm.js} +1 -1
  84. package/bundle/chunk-95vp9bvk.js +2 -0
  85. package/bundle/{chunk-cf9m9m9q.js → chunk-96nmxprr.js} +1 -1
  86. package/bundle/{chunk-jpn9zfj5.js → chunk-98z5pfvj.js} +1 -1
  87. package/bundle/{chunk-s5aefff0.js → chunk-9d2mtevw.js} +1 -1
  88. package/bundle/{chunk-qk5vy2pr.js → chunk-9d8meavf.js} +1 -1
  89. package/bundle/{chunk-fw1f47de.js → chunk-9gs4en9v.js} +1 -1
  90. package/bundle/{chunk-e0vrxetq.js → chunk-9svh74gt.js} +1 -1
  91. package/bundle/chunk-9wzxnwv7.js +2 -0
  92. package/bundle/chunk-9zve998d.js +2 -0
  93. package/bundle/chunk-a2pd7nt5.js +2 -0
  94. package/bundle/{chunk-ntr0ezf2.js → chunk-a4cmpa56.js} +1 -1
  95. package/bundle/chunk-a9bkr9x4.js +2 -0
  96. package/bundle/chunk-ac5vzpzt.js +2 -0
  97. package/bundle/{chunk-qbnt4ynd.js → chunk-ajgwyrcf.js} +2 -2
  98. package/bundle/{chunk-c8k32724.js → chunk-ajyfms68.js} +1 -1
  99. package/bundle/{chunk-5wx962mw.js → chunk-akrcbxfa.js} +1 -1
  100. package/bundle/{chunk-vs3s49jw.js → chunk-aykvrqrp.js} +2 -2
  101. package/bundle/{chunk-f4mnp6xd.js → chunk-b274mb6v.js} +1 -1
  102. package/bundle/{chunk-1v0khv7p.js → chunk-b79bb2g3.js} +1 -1
  103. package/bundle/{chunk-wtxh5m6j.js → chunk-bd66q24j.js} +3 -3
  104. package/bundle/{chunk-72crs18f.js → chunk-bffm0wv9.js} +1 -1
  105. package/bundle/{chunk-zwhmg9dj.js → chunk-bh1zbz62.js} +1 -1
  106. package/bundle/chunk-bqqxvagz.js +14 -0
  107. package/bundle/{chunk-gznt3dv8.js → chunk-bw0951fs.js} +1 -1
  108. package/bundle/chunk-bwzbcwff.js +2 -0
  109. package/bundle/{chunk-4y9wbfd2.js → chunk-bxc3z38f.js} +2 -2
  110. package/bundle/{chunk-kveztc6k.js → chunk-bzz2expb.js} +1 -1
  111. package/bundle/chunk-c1exgasy.js +2 -0
  112. package/bundle/{chunk-dt3bsmfe.js → chunk-c53ev0da.js} +2 -2
  113. package/bundle/{chunk-0tm6589k.js → chunk-c5n49vrd.js} +2 -2
  114. package/bundle/{chunk-e0hha3be.js → chunk-ccghr6pm.js} +1 -1
  115. package/bundle/{chunk-52xvhxek.js → chunk-cg7zeppb.js} +2 -2
  116. package/bundle/chunk-cgxzmkkf.js +2 -0
  117. package/bundle/{chunk-0z1keh2w.js → chunk-cm7yp259.js} +1 -1
  118. package/bundle/chunk-cs3cbfm8.js +2 -0
  119. package/bundle/{chunk-w7a33cwa.js → chunk-cshsqavb.js} +2 -2
  120. package/bundle/{chunk-2kh0tg92.js → chunk-csmdhh7r.js} +2 -2
  121. package/bundle/{chunk-w0nc0gcx.js → chunk-cydpdkx7.js} +1 -1
  122. package/bundle/{chunk-vsqvnxbz.js → chunk-czfjmrrq.js} +1 -1
  123. package/bundle/{chunk-bc2krtaf.js → chunk-d1j8frtq.js} +1 -1
  124. package/bundle/chunk-d29te4c1.js +2 -0
  125. package/bundle/{chunk-sz0favtz.js → chunk-d39e4fa8.js} +1 -1
  126. package/bundle/chunk-d6q42p18.js +2 -0
  127. package/bundle/{chunk-ax64ngf2.js → chunk-d6qs2pbx.js} +1 -1
  128. package/bundle/{chunk-wgkcyqn1.js → chunk-datctfgt.js} +2 -2
  129. package/bundle/chunk-dfbexagg.js +2 -0
  130. package/bundle/chunk-dfkcp43a.js +2 -0
  131. package/bundle/chunk-dps1p1g1.js +2 -0
  132. package/bundle/{chunk-z0kbyr00.js → chunk-dzw0j790.js} +2 -2
  133. package/bundle/chunk-e1fzgez5.js +2 -0
  134. package/bundle/chunk-e5cds19n.js +4 -0
  135. package/bundle/{chunk-wr6rnxr5.js → chunk-e6ckxkj8.js} +1 -1
  136. package/bundle/chunk-e7a50j2w.js +2 -0
  137. package/bundle/chunk-e9vh8d52.js +8 -0
  138. package/bundle/chunk-eftk07r3.js +3 -0
  139. package/bundle/chunk-egcvm4x2.js +3 -0
  140. package/bundle/chunk-ek3b08ed.js +2 -0
  141. package/bundle/chunk-ep92grvg.js +808 -0
  142. package/bundle/{chunk-7pckez5z.js → chunk-ex47pb9n.js} +2 -2
  143. package/bundle/{chunk-dhvx9p54.js → chunk-eya9c81t.js} +1 -1
  144. package/bundle/chunk-f78yth0b.js +2 -0
  145. package/bundle/{chunk-kgv68cpb.js → chunk-fd6qxjtf.js} +1 -1
  146. package/bundle/{chunk-b7sr9rn3.js → chunk-fnmq42y5.js} +1 -1
  147. package/bundle/chunk-fqvrxy41.js +2 -0
  148. package/bundle/{chunk-wtt5wms9.js → chunk-fqvsxg00.js} +1 -1
  149. package/bundle/{chunk-sy9w1t2y.js → chunk-fsagyvkz.js} +1 -1
  150. package/bundle/{chunk-trstb8ee.js → chunk-fzxqn4j0.js} +1 -1
  151. package/bundle/{chunk-7jy53zqy.js → chunk-g7jwp73v.js} +1 -1
  152. package/bundle/{chunk-27saej0r.js → chunk-g83d3a0t.js} +2 -2
  153. package/bundle/chunk-gamnnfna.js +2 -0
  154. package/bundle/{chunk-0a4pmkc9.js → chunk-gfer8ch3.js} +2 -2
  155. package/bundle/{chunk-2nheahmq.js → chunk-ghdegwnr.js} +1 -1
  156. package/bundle/chunk-gjxhz1a6.js +2 -0
  157. package/bundle/chunk-gpm39v12.js +2 -0
  158. package/bundle/chunk-gr8emzzx.js +2 -0
  159. package/bundle/chunk-gt6h68pk.js +2 -0
  160. package/bundle/{chunk-3z2zn8rj.js → chunk-gz8k40ty.js} +1 -1
  161. package/bundle/{chunk-bwadggys.js → chunk-h6kmpgak.js} +2 -2
  162. package/bundle/{chunk-t3w43rft.js → chunk-h8yf5e2e.js} +1 -1
  163. package/bundle/{chunk-ryrxgn6d.js → chunk-hama2v6a.js} +1 -1
  164. package/bundle/{chunk-3va85mbe.js → chunk-hav9pgf3.js} +2 -2
  165. package/bundle/chunk-hj588j4f.js +2 -0
  166. package/bundle/{chunk-nas631g2.js → chunk-hntsg7q4.js} +1 -1
  167. package/bundle/chunk-hqtex91e.js +2 -0
  168. package/bundle/{chunk-mr17tppa.js → chunk-hts68y73.js} +2 -2
  169. package/bundle/{chunk-2vaphpz0.js → chunk-j5dnzqjy.js} +1 -1
  170. package/bundle/{chunk-6tqbnxar.js → chunk-j7d3v0x2.js} +1 -1
  171. package/bundle/{chunk-1rgt2vmt.js → chunk-jcn8bg31.js} +1 -1
  172. package/bundle/{chunk-8p0t8qah.js → chunk-jf4zyy7r.js} +1 -1
  173. package/bundle/{chunk-sm1g81cv.js → chunk-jfe9f2wv.js} +1 -1
  174. package/bundle/{chunk-k6981ysw.js → chunk-jh2za7y4.js} +3 -3
  175. package/bundle/chunk-jmgpr5th.js +2 -0
  176. package/bundle/chunk-jt79yt0t.js +2 -0
  177. package/bundle/{chunk-t8fjgkp8.js → chunk-jt7g0r2j.js} +2 -2
  178. package/bundle/chunk-jtz5re73.js +2 -0
  179. package/bundle/{chunk-g6y2c5az.js → chunk-k232ny9m.js} +1 -1
  180. package/bundle/{chunk-vkkz40je.js → chunk-k4ajben7.js} +2 -2
  181. package/bundle/chunk-k4bj677f.js +3 -0
  182. package/bundle/{chunk-mv7q6ach.js → chunk-k4d8gwxe.js} +1 -1
  183. package/bundle/{chunk-h1bvqstw.js → chunk-k558fr15.js} +1 -1
  184. package/bundle/{chunk-85wh85pk.js → chunk-k56zj08h.js} +1 -1
  185. package/bundle/{chunk-a1z8rnq7.js → chunk-k5swnh8m.js} +4 -4
  186. package/bundle/{chunk-bkfafcbw.js → chunk-k8zbhj2p.js} +2 -2
  187. package/bundle/{chunk-vd8cmdpv.js → chunk-kr975sx0.js} +1 -1
  188. package/bundle/{chunk-ydgst3h8.js → chunk-krk24aqm.js} +2 -2
  189. package/bundle/{chunk-eg1m81ax.js → chunk-kt982884.js} +1 -1
  190. package/bundle/chunk-kw5z5awx.js +2 -0
  191. package/bundle/{chunk-d839fr0w.js → chunk-kxdw2vtq.js} +2 -2
  192. package/bundle/chunk-m8phqgxp.js +7 -0
  193. package/bundle/{chunk-kckr30tf.js → chunk-mazakqr7.js} +1 -1
  194. package/bundle/{chunk-1bxfzd6r.js → chunk-mnxcykeq.js} +4 -4
  195. package/bundle/chunk-mp42gb6q.js +2 -0
  196. package/bundle/{chunk-eyr5ymt8.js → chunk-mp5m0acf.js} +1 -1
  197. package/bundle/chunk-mq0733qh.js +2 -0
  198. package/bundle/chunk-mrcsatmn.js +2 -0
  199. package/bundle/{chunk-0tcggtwv.js → chunk-n230jbn9.js} +1 -1
  200. package/bundle/chunk-n24yx79r.js +5 -0
  201. package/bundle/{chunk-cr5tknvb.js → chunk-n2ytaxyn.js} +1 -1
  202. package/bundle/chunk-n4fwztya.js +2 -0
  203. package/bundle/{chunk-bpfq8fz4.js → chunk-n5dxwryh.js} +1 -1
  204. package/bundle/{chunk-dwqvcdmf.js → chunk-n9969djm.js} +1 -1
  205. package/bundle/{chunk-vgt3artc.js → chunk-ncvr75f6.js} +2 -2
  206. package/bundle/chunk-ng2g9kkk.js +2 -0
  207. package/bundle/chunk-ngfhfyjs.js +2 -0
  208. package/bundle/{chunk-y31f8k5f.js → chunk-nvvja3ch.js} +1 -1
  209. package/bundle/{chunk-c76cjhn0.js → chunk-nwkp2f8e.js} +1 -1
  210. package/bundle/{chunk-53jstmdp.js → chunk-nwygsfhk.js} +2 -2
  211. package/bundle/chunk-p0dnmrqp.js +2 -0
  212. package/bundle/{chunk-g878zd6e.js → chunk-p5p4jh9s.js} +1 -1
  213. package/bundle/chunk-p6h2ydcp.js +2 -0
  214. package/bundle/{chunk-wn63q3xp.js → chunk-pcmsxhrb.js} +1 -1
  215. package/bundle/{chunk-ccf4pgkr.js → chunk-pdcj2rfz.js} +2 -2
  216. package/bundle/{chunk-dgcannw0.js → chunk-pfd8gzy4.js} +1 -1
  217. package/bundle/{chunk-a8bjcvda.js → chunk-ph46s66y.js} +1 -1
  218. package/bundle/chunk-pkm3w0ks.js +3 -0
  219. package/bundle/{chunk-g26redah.js → chunk-pnmadk2h.js} +1 -1
  220. package/bundle/{chunk-y0h3jfkj.js → chunk-q65qzc9w.js} +1 -1
  221. package/bundle/{chunk-qk1jkc0n.js → chunk-q8qx38kz.js} +1 -1
  222. package/bundle/chunk-qhakedgs.js +2 -0
  223. package/bundle/{chunk-2caaqmec.js → chunk-qsgpbt4t.js} +1 -1
  224. package/bundle/{chunk-ejhhrece.js → chunk-qtdxy2q1.js} +3 -3
  225. package/bundle/chunk-r18zetwf.js +2 -0
  226. package/bundle/{chunk-t18ka1e7.js → chunk-r1936yb5.js} +1 -1
  227. package/bundle/{chunk-qgkb6n8k.js → chunk-r4qpsa4e.js} +2 -2
  228. package/bundle/chunk-r6055kk0.js +3 -0
  229. package/bundle/chunk-r6rgrz25.js +2 -0
  230. package/bundle/{chunk-rva2ekrt.js → chunk-r9ng8xx5.js} +1 -1
  231. package/bundle/chunk-rk4vp09j.js +2 -0
  232. package/bundle/{chunk-tk4z6r09.js → chunk-rkmg0gbq.js} +1 -1
  233. package/bundle/{chunk-t6zz47zk.js → chunk-rpc0he6b.js} +2 -2
  234. package/bundle/{chunk-sbjymf20.js → chunk-rvev3cy6.js} +2 -2
  235. package/bundle/{chunk-1har4t9a.js → chunk-rx29zmw2.js} +1 -1
  236. package/bundle/{chunk-4pmvxnkj.js → chunk-rxh160jr.js} +2 -2
  237. package/bundle/chunk-s3hbwksw.js +5 -0
  238. package/bundle/{chunk-sa0rrreh.js → chunk-s3zmxfz2.js} +2 -2
  239. package/bundle/chunk-s4jp4zce.js +2 -0
  240. package/bundle/{chunk-c987bemn.js → chunk-s6vhscvd.js} +2 -2
  241. package/bundle/{chunk-zrhw1szj.js → chunk-s81ck6bw.js} +1 -1
  242. package/bundle/{chunk-hz02vrqs.js → chunk-sbj816s8.js} +1 -1
  243. package/bundle/chunk-sec9y622.js +2 -0
  244. package/bundle/{chunk-dcv6wj9x.js → chunk-seda5sfd.js} +2 -2
  245. package/bundle/{chunk-ynf17943.js → chunk-sjtq9bbb.js} +2 -2
  246. package/bundle/chunk-sn7q178t.js +2 -0
  247. package/bundle/chunk-st0h54dm.js +2 -0
  248. package/bundle/{chunk-cghz0855.js → chunk-sxtfssjv.js} +1 -1
  249. package/bundle/chunk-sz75fx13.js +2 -0
  250. package/bundle/{chunk-6ps30qax.js → chunk-t076hwsv.js} +2 -2
  251. package/bundle/{chunk-phpxxd48.js → chunk-t3e19wdp.js} +1 -1
  252. package/bundle/{chunk-ftvvm4r5.js → chunk-t7s475b2.js} +2 -2
  253. package/bundle/chunk-tefh2cgk.js +2 -0
  254. package/bundle/chunk-tfez99qv.js +2 -0
  255. package/bundle/chunk-tjk1hymv.js +2 -0
  256. package/bundle/{chunk-48gap82w.js → chunk-tpw1ewqn.js} +1 -1
  257. package/bundle/{chunk-fej5x648.js → chunk-tqnf1p88.js} +1 -1
  258. package/bundle/chunk-tyk97q7c.js +2 -0
  259. package/bundle/chunk-tz1sv9kt.js +3 -0
  260. package/bundle/{chunk-g7v6sp3c.js → chunk-tz60e15h.js} +2 -2
  261. package/bundle/{chunk-d30k7dpf.js → chunk-tzwm08yc.js} +1 -1
  262. package/bundle/chunk-v1098rqc.js +2 -0
  263. package/bundle/chunk-v30ezr68.js +11 -0
  264. package/bundle/{chunk-jmmtcr2r.js → chunk-v5j3ypfv.js} +1 -1
  265. package/bundle/chunk-v5wn741w.js +2 -0
  266. package/bundle/{chunk-xy8arehp.js → chunk-vamwvx0x.js} +1 -1
  267. package/bundle/{chunk-wm9nh9nb.js → chunk-vbcekkw2.js} +2 -2
  268. package/bundle/chunk-vf75j9wd.js +2 -0
  269. package/bundle/{chunk-wqk1v8t0.js → chunk-vhh80d5j.js} +2 -2
  270. package/bundle/{chunk-5bv63rqj.js → chunk-vm8htc6d.js} +1 -1
  271. package/bundle/{chunk-56wq8cqj.js → chunk-vnz9n9z0.js} +1 -1
  272. package/bundle/chunk-vp6ttkct.js +2 -0
  273. package/bundle/chunk-vpcsmwsb.js +2 -0
  274. package/bundle/{chunk-afr8m0q1.js → chunk-vrt8wd3r.js} +1 -1
  275. package/bundle/chunk-vyf77kq1.js +29 -0
  276. package/bundle/{chunk-vph4w4yy.js → chunk-w32xhz0x.js} +2 -2
  277. package/bundle/{chunk-fjftb2sz.js → chunk-wdy0fsp8.js} +2 -2
  278. package/bundle/{chunk-tbx741en.js → chunk-wkepvmgt.js} +1 -1
  279. package/bundle/{chunk-rwwvy89t.js → chunk-wp0xd7at.js} +1 -1
  280. package/bundle/{chunk-y3gy62q5.js → chunk-wpkr3vzf.js} +1 -1
  281. package/bundle/{chunk-jqj1ay7x.js → chunk-wpx2vmf5.js} +1 -1
  282. package/bundle/{chunk-35fj1sfm.js → chunk-wqkvsj5y.js} +2 -2
  283. package/bundle/{chunk-8jmb5bd4.js → chunk-wspbjh74.js} +2 -2
  284. package/bundle/{chunk-6vnqbejg.js → chunk-wzfb19t6.js} +1 -1
  285. package/bundle/chunk-x23s1s8k.js +2 -0
  286. package/bundle/{chunk-59csnjc3.js → chunk-x28chfpz.js} +2 -2
  287. package/bundle/{chunk-bhg69t69.js → chunk-xf1y0sc6.js} +2 -2
  288. package/bundle/{chunk-zsg29gba.js → chunk-xfsccqsm.js} +1 -1
  289. package/bundle/{chunk-qsme16gk.js → chunk-xmt17jd4.js} +2 -2
  290. package/bundle/{chunk-a48mx917.js → chunk-xphzr4wg.js} +2 -2
  291. package/bundle/chunk-xr6js4ek.js +2 -0
  292. package/bundle/chunk-y078gb3n.js +2 -0
  293. package/bundle/{chunk-ykpj10nz.js → chunk-y24yxs9g.js} +2 -2
  294. package/bundle/{chunk-wb47k8ah.js → chunk-y565z8n2.js} +2 -2
  295. package/bundle/{chunk-p2fte9vz.js → chunk-y7cqyeve.js} +2 -2
  296. package/bundle/{chunk-g3n465ee.js → chunk-y8bxvp3c.js} +2 -2
  297. package/bundle/{chunk-29gwtcey.js → chunk-y8tx9x5b.js} +1 -1
  298. package/bundle/{chunk-5xkp27b1.js → chunk-ya6r72ng.js} +1 -1
  299. package/bundle/chunk-yewjnqee.js +2 -0
  300. package/bundle/{chunk-29q89bge.js → chunk-yg0rs4g1.js} +2 -2
  301. package/bundle/{chunk-rwnwjm82.js → chunk-yhr7s8qm.js} +2 -2
  302. package/bundle/chunk-ykk9e9as.js +2 -0
  303. package/bundle/chunk-yqn88gjf.js +2 -0
  304. package/bundle/chunk-yrxg3dex.js +2 -0
  305. package/bundle/{chunk-eacpc64g.js → chunk-yvtbt12y.js} +2 -2
  306. package/bundle/chunk-z1xeqrgd.js +2 -0
  307. package/bundle/chunk-z5j46dem.js +2 -0
  308. package/bundle/{chunk-mrq35ftw.js → chunk-zj5snrsa.js} +2 -2
  309. package/bundle/{chunk-9cf2ktyh.js → chunk-zjfdptdj.js} +1 -1
  310. package/bundle/chunk-zq0hpja9.js +2 -0
  311. package/bundle/chunk-zqzh5hp3.js +2 -0
  312. package/bundle/{chunk-qgek59e6.js → chunk-zr1cvkpb.js} +1 -1
  313. package/bundle/{chunk-fa8pwdwv.js → chunk-zr89enb8.js} +1 -1
  314. package/bundle/{chunk-jr80q31w.js → chunk-zskjqrmc.js} +1 -1
  315. package/bundle/{chunk-92r1gw2j.js → chunk-ztjrm8m0.js} +2 -2
  316. package/bundle/chunk-zv89qwjc.js +2 -0
  317. package/bundle/index.js +3 -3
  318. package/bundle/parser.worker.js +2 -2
  319. package/bundle/worker.js +1 -1
  320. package/package.json +1 -1
  321. package/bundle/chunk-03zpnwk2.js +0 -2
  322. package/bundle/chunk-0aqdzyar.js +0 -2
  323. package/bundle/chunk-0eh3yc6e.js +0 -2
  324. package/bundle/chunk-0mh600tv.js +0 -2
  325. package/bundle/chunk-1a6q1f5n.js +0 -7
  326. package/bundle/chunk-2a5gjgvp.js +0 -2
  327. package/bundle/chunk-2phyc1c0.js +0 -2
  328. package/bundle/chunk-2pkfphgb.js +0 -2
  329. package/bundle/chunk-30wp95w1.js +0 -2
  330. package/bundle/chunk-32fpqd0n.js +0 -2
  331. package/bundle/chunk-3f2cjzb4.js +0 -2
  332. package/bundle/chunk-3qvap1kv.js +0 -2
  333. package/bundle/chunk-42hvspe7.js +0 -2
  334. package/bundle/chunk-452tk6v3.js +0 -2
  335. package/bundle/chunk-4gqb1hps.js +0 -2
  336. package/bundle/chunk-50qgz5ka.js +0 -2
  337. package/bundle/chunk-539cw9r0.js +0 -2
  338. package/bundle/chunk-5b0xyq5z.js +0 -2
  339. package/bundle/chunk-5j4nxpdy.js +0 -2
  340. package/bundle/chunk-5nxgk6hw.js +0 -2
  341. package/bundle/chunk-5qkvhr6y.js +0 -2
  342. package/bundle/chunk-6dpdkzrk.js +0 -2
  343. package/bundle/chunk-6p6m5956.js +0 -3
  344. package/bundle/chunk-705qkpra.js +0 -28
  345. package/bundle/chunk-76c400ze.js +0 -2
  346. package/bundle/chunk-7bxxc4a3.js +0 -2
  347. package/bundle/chunk-7g59hc61.js +0 -2
  348. package/bundle/chunk-7p88j56s.js +0 -2
  349. package/bundle/chunk-7r92d7v9.js +0 -14
  350. package/bundle/chunk-7trngc9g.js +0 -2
  351. package/bundle/chunk-8cebbmtf.js +0 -2
  352. package/bundle/chunk-8j1xcdmd.js +0 -2
  353. package/bundle/chunk-90r2z49k.js +0 -2
  354. package/bundle/chunk-94mjwy22.js +0 -2
  355. package/bundle/chunk-9bw6bx5c.js +0 -2
  356. package/bundle/chunk-aenrd7dk.js +0 -2
  357. package/bundle/chunk-ahmy80vb.js +0 -2
  358. package/bundle/chunk-avn12jkt.js +0 -2
  359. package/bundle/chunk-bnw744ej.js +0 -8
  360. package/bundle/chunk-brk6bge4.js +0 -3
  361. package/bundle/chunk-ce5e7j62.js +0 -2
  362. package/bundle/chunk-cw1gwjx9.js +0 -2
  363. package/bundle/chunk-czw30fjs.js +0 -2
  364. package/bundle/chunk-dtcvqrmn.js +0 -2
  365. package/bundle/chunk-dwhsvpag.js +0 -2
  366. package/bundle/chunk-e0hfpdje.js +0 -2
  367. package/bundle/chunk-e5jk67xh.js +0 -2
  368. package/bundle/chunk-eg4pq4hv.js +0 -2
  369. package/bundle/chunk-ew3yz97p.js +0 -2
  370. package/bundle/chunk-f2yfyhh8.js +0 -2
  371. package/bundle/chunk-fd8x2nb4.js +0 -2
  372. package/bundle/chunk-fv5mrdyc.js +0 -5
  373. package/bundle/chunk-fveaq0pb.js +0 -2
  374. package/bundle/chunk-gbvm6dpv.js +0 -2
  375. package/bundle/chunk-gkbx6edf.js +0 -2
  376. package/bundle/chunk-gq9hb2e8.js +0 -2
  377. package/bundle/chunk-gsez13bg.js +0 -3
  378. package/bundle/chunk-gswhjd1h.js +0 -3
  379. package/bundle/chunk-h5w91zr4.js +0 -2
  380. package/bundle/chunk-hmpb3c21.js +0 -2
  381. package/bundle/chunk-hq7s4f75.js +0 -2
  382. package/bundle/chunk-j1h64m65.js +0 -2
  383. package/bundle/chunk-j32rr7rt.js +0 -2
  384. package/bundle/chunk-j871xzr7.js +0 -2
  385. package/bundle/chunk-k1qd8ecm.js +0 -808
  386. package/bundle/chunk-kx88qekb.js +0 -2
  387. package/bundle/chunk-m4g4djss.js +0 -2
  388. package/bundle/chunk-mt2by7rx.js +0 -3
  389. package/bundle/chunk-mwkms65j.js +0 -3
  390. package/bundle/chunk-n61e0znt.js +0 -2
  391. package/bundle/chunk-ndd4cn3z.js +0 -2
  392. package/bundle/chunk-nr2j8ytn.js +0 -3
  393. package/bundle/chunk-nsw5x43k.js +0 -2
  394. package/bundle/chunk-p5b5ekhh.js +0 -2
  395. package/bundle/chunk-pf23nw4z.js +0 -2
  396. package/bundle/chunk-pw3cv89g.js +0 -2
  397. package/bundle/chunk-qwmae3vk.js +0 -5
  398. package/bundle/chunk-rdk62809.js +0 -2
  399. package/bundle/chunk-rew6r516.js +0 -2
  400. package/bundle/chunk-rjcz4kbm.js +0 -2
  401. package/bundle/chunk-rmsqb6r4.js +0 -10
  402. package/bundle/chunk-skgr9ypq.js +0 -2
  403. package/bundle/chunk-sv40pwe2.js +0 -2
  404. package/bundle/chunk-tax3ecy5.js +0 -2
  405. package/bundle/chunk-tfhpjmny.js +0 -2
  406. package/bundle/chunk-tnete6ye.js +0 -2
  407. package/bundle/chunk-tpyq7ycb.js +0 -2
  408. package/bundle/chunk-tr0rm1ka.js +0 -2
  409. package/bundle/chunk-ty14zznd.js +0 -2
  410. package/bundle/chunk-v5h5wxw5.js +0 -2
  411. package/bundle/chunk-v6141yq1.js +0 -2
  412. package/bundle/chunk-vjs69r6x.js +0 -2
  413. package/bundle/chunk-vmhar83s.js +0 -2
  414. package/bundle/chunk-vpjyk76v.js +0 -2
  415. package/bundle/chunk-vqvnw12p.js +0 -2
  416. package/bundle/chunk-w0sztk4y.js +0 -2
  417. package/bundle/chunk-w6bb320d.js +0 -2
  418. package/bundle/chunk-wqw6yjrg.js +0 -2
  419. package/bundle/chunk-ws08rxge.js +0 -2
  420. package/bundle/chunk-wwvek9zf.js +0 -3
  421. package/bundle/chunk-wz3dvc3g.js +0 -2
  422. package/bundle/chunk-x2pmqvdc.js +0 -2
  423. package/bundle/chunk-x4wfq39v.js +0 -2
  424. package/bundle/chunk-x7a3kqe5.js +0 -2
  425. package/bundle/chunk-xb22grz6.js +0 -2
  426. package/bundle/chunk-y3eeva80.js +0 -2
  427. package/bundle/chunk-yb6m08zj.js +0 -2
  428. package/bundle/chunk-ybcqkgs7.js +0 -2
  429. package/bundle/chunk-zj1jc1xt.js +0 -2
  430. package/bundle/chunk-zm0m0504.js +0 -2
  431. package/bundle/chunk-zq32jhj1.js +0 -2
  432. package/bundle/chunk-zxwjxszn.js +0 -2
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{uO as O,xO as n}from"./chunk-e0vrxetq.js";var m=O((Y6,nq)=>{var V8=Number.MAX_SAFE_INTEGER||9007199254740991,X8=["major","premajor","minor","preminor","patch","prepatch","prerelease"];nq.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:V8,RELEASE_TYPES:X8,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var s=O((W6,aq)=>{var O8=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...q)=>console.error("SEMVER",...q):()=>{};aq.exports=O8});var p=O((u,iq)=>{var{MAX_SAFE_COMPONENT_LENGTH:Aq,MAX_SAFE_BUILD_LENGTH:F8,MAX_LENGTH:x8}=m(),D8=s();u=iq.exports={};var U8=u.re=[],N8=u.safeRe=[],V=u.src=[],L8=u.safeSrc=[],X=u.t={},G8=0,Cq="[a-zA-Z0-9-]",P8=[["\\s",1],["\\d",x8],[Cq,F8]],A8=(q)=>{for(let[Z,$]of P8)q=q.split(`${Z}*`).join(`${Z}{0,${$}}`).split(`${Z}+`).join(`${Z}{1,${$}}`);return q},D=(q,Z,$)=>{let Q=A8(Z),K=G8++;D8(q,K,Z),X[q]=K,V[K]=Z,L8[K]=Q,U8[K]=new RegExp(Z,$?"g":void 0),N8[K]=new RegExp(Q,$?"g":void 0)};D("NUMERICIDENTIFIER","0|[1-9]\\d*");D("NUMERICIDENTIFIERLOOSE","\\d+");D("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Cq}*`);D("MAINVERSION",`(${V[X.NUMERICIDENTIFIER]})\\.(${V[X.NUMERICIDENTIFIER]})\\.(${V[X.NUMERICIDENTIFIER]})`);D("MAINVERSIONLOOSE",`(${V[X.NUMERICIDENTIFIERLOOSE]})\\.(${V[X.NUMERICIDENTIFIERLOOSE]})\\.(${V[X.NUMERICIDENTIFIERLOOSE]})`);D("PRERELEASEIDENTIFIER",`(?:${V[X.NONNUMERICIDENTIFIER]}|${V[X.NUMERICIDENTIFIER]})`);D("PRERELEASEIDENTIFIERLOOSE",`(?:${V[X.NONNUMERICIDENTIFIER]}|${V[X.NUMERICIDENTIFIERLOOSE]})`);D("PRERELEASE",`(?:-(${V[X.PRERELEASEIDENTIFIER]}(?:\\.${V[X.PRERELEASEIDENTIFIER]})*))`);D("PRERELEASELOOSE",`(?:-?(${V[X.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${V[X.PRERELEASEIDENTIFIERLOOSE]})*))`);D("BUILDIDENTIFIER",`${Cq}+`);D("BUILD",`(?:\\+(${V[X.BUILDIDENTIFIER]}(?:\\.${V[X.BUILDIDENTIFIER]})*))`);D("FULLPLAIN",`v?${V[X.MAINVERSION]}${V[X.PRERELEASE]}?${V[X.BUILD]}?`);D("FULL",`^${V[X.FULLPLAIN]}$`);D("LOOSEPLAIN",`[v=\\s]*${V[X.MAINVERSIONLOOSE]}${V[X.PRERELEASELOOSE]}?${V[X.BUILD]}?`);D("LOOSE",`^${V[X.LOOSEPLAIN]}$`);D("GTLT","((?:<|>)?=?)");D("XRANGEIDENTIFIERLOOSE",`${V[X.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);D("XRANGEIDENTIFIER",`${V[X.NUMERICIDENTIFIER]}|x|X|\\*`);D("XRANGEPLAIN",`[v=\\s]*(${V[X.XRANGEIDENTIFIER]})(?:\\.(${V[X.XRANGEIDENTIFIER]})(?:\\.(${V[X.XRANGEIDENTIFIER]})(?:${V[X.PRERELEASE]})?${V[X.BUILD]}?)?)?`);D("XRANGEPLAINLOOSE",`[v=\\s]*(${V[X.XRANGEIDENTIFIERLOOSE]})(?:\\.(${V[X.XRANGEIDENTIFIERLOOSE]})(?:\\.(${V[X.XRANGEIDENTIFIERLOOSE]})(?:${V[X.PRERELEASELOOSE]})?${V[X.BUILD]}?)?)?`);D("XRANGE",`^${V[X.GTLT]}\\s*${V[X.XRANGEPLAIN]}$`);D("XRANGELOOSE",`^${V[X.GTLT]}\\s*${V[X.XRANGEPLAINLOOSE]}$`);D("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Aq}})(?:\\.(\\d{1,${Aq}}))?(?:\\.(\\d{1,${Aq}}))?`);D("COERCE",`${V[X.COERCEPLAIN]}(?:$|[^\\d])`);D("COERCEFULL",V[X.COERCEPLAIN]+`(?:${V[X.PRERELEASE]})?(?:${V[X.BUILD]})?(?:$|[^\\d])`);D("COERCERTL",V[X.COERCE],!0);D("COERCERTLFULL",V[X.COERCEFULL],!0);D("LONETILDE","(?:~>?)");D("TILDETRIM",`(\\s*)${V[X.LONETILDE]}\\s+`,!0);u.tildeTrimReplace="$1~";D("TILDE",`^${V[X.LONETILDE]}${V[X.XRANGEPLAIN]}$`);D("TILDELOOSE",`^${V[X.LONETILDE]}${V[X.XRANGEPLAINLOOSE]}$`);D("LONECARET","(?:\\^)");D("CARETTRIM",`(\\s*)${V[X.LONECARET]}\\s+`,!0);u.caretTrimReplace="$1^";D("CARET",`^${V[X.LONECARET]}${V[X.XRANGEPLAIN]}$`);D("CARETLOOSE",`^${V[X.LONECARET]}${V[X.XRANGEPLAINLOOSE]}$`);D("COMPARATORLOOSE",`^${V[X.GTLT]}\\s*(${V[X.LOOSEPLAIN]})$|^$`);D("COMPARATOR",`^${V[X.GTLT]}\\s*(${V[X.FULLPLAIN]})$|^$`);D("COMPARATORTRIM",`(\\s*)${V[X.GTLT]}\\s*(${V[X.LOOSEPLAIN]}|${V[X.XRANGEPLAIN]})`,!0);u.comparatorTrimReplace="$1$2$3";D("HYPHENRANGE",`^\\s*(${V[X.XRANGEPLAIN]})\\s+-\\s+(${V[X.XRANGEPLAIN]})\\s*$`);D("HYPHENRANGELOOSE",`^\\s*(${V[X.XRANGEPLAINLOOSE]})\\s+-\\s+(${V[X.XRANGEPLAINLOOSE]})\\s*$`);D("STAR","(<|>)?=?\\s*\\*");D("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");D("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Wq=O((z6,sq)=>{var C8=Object.freeze({loose:!0}),E8=Object.freeze({}),H8=(q)=>{if(!q)return E8;if(typeof q!=="object")return C8;return q};sq.exports=H8});var Eq=O((_6,tq)=>{var rq=/^[0-9]+$/,oq=(q,Z)=>{if(typeof q==="number"&&typeof Z==="number")return q===Z?0:q<Z?-1:1;let $=rq.test(q),Q=rq.test(Z);if($&&Q)q=+q,Z=+Z;return q===Z?0:$&&!Q?-1:Q&&!$?1:q<Z?-1:1},k8=(q,Z)=>oq(Z,q);tq.exports={compareIdentifiers:oq,rcompareIdentifiers:k8}});var R=O((I6,q0)=>{var zq=s(),{MAX_LENGTH:eq,MAX_SAFE_INTEGER:_q}=m(),{safeRe:Iq,t:Bq}=p(),R8=Wq(),{compareIdentifiers:Hq}=Eq(),y8=(q,Z)=>{let $=Z.split(".");if($.length>q.length)return!1;for(let Q=0;Q<$.length;Q++)if(Hq(q[Q],$[Q])!==0)return!1;return!0};class v{constructor(q,Z){if(Z=R8(Z),q instanceof v)if(q.loose===!!Z.loose&&q.includePrerelease===!!Z.includePrerelease)return q;else q=q.version;else if(typeof q!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof q}".`);if(q.length>eq)throw TypeError(`version is longer than ${eq} characters`);zq("SemVer",q,Z),this.options=Z,this.loose=!!Z.loose,this.includePrerelease=!!Z.includePrerelease;let $=q.trim().match(Z.loose?Iq[Bq.LOOSE]:Iq[Bq.FULL]);if(!$)throw TypeError(`Invalid Version: ${q}`);if(this.raw=q,this.major=+$[1],this.minor=+$[2],this.patch=+$[3],this.major>_q||this.major<0)throw TypeError("Invalid major version");if(this.minor>_q||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>_q||this.patch<0)throw TypeError("Invalid patch version");if(!$[4])this.prerelease=[];else this.prerelease=$[4].split(".").map((Q)=>{if(/^[0-9]+$/.test(Q)){let K=+Q;if(K>=0&&K<_q)return K}return Q});this.build=$[5]?$[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare(q){if(zq("SemVer.compare",this.version,this.options,q),!(q instanceof v)){if(typeof q==="string"&&q===this.version)return 0;q=new v(q,this.options)}if(q.version===this.version)return 0;return this.compareMain(q)||this.comparePre(q)}compareMain(q){if(!(q instanceof v))q=new v(q,this.options);if(this.major<q.major)return-1;if(this.major>q.major)return 1;if(this.minor<q.minor)return-1;if(this.minor>q.minor)return 1;if(this.patch<q.patch)return-1;if(this.patch>q.patch)return 1;return 0}comparePre(q){if(!(q instanceof v))q=new v(q,this.options);if(this.prerelease.length&&!q.prerelease.length)return-1;else if(!this.prerelease.length&&q.prerelease.length)return 1;else if(!this.prerelease.length&&!q.prerelease.length)return 0;let Z=0;do{let $=this.prerelease[Z],Q=q.prerelease[Z];if(zq("prerelease compare",Z,$,Q),$===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if($===void 0)return-1;else if($===Q)continue;else return Hq($,Q)}while(++Z)}compareBuild(q){if(!(q instanceof v))q=new v(q,this.options);let Z=0;do{let $=this.build[Z],Q=q.build[Z];if(zq("build compare",Z,$,Q),$===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if($===void 0)return-1;else if($===Q)continue;else return Hq($,Q)}while(++Z)}inc(q,Z,$){if(q.startsWith("pre")){if(!Z&&$===!1)throw Error("invalid increment argument: identifier is empty");if(Z){let Q=`-${Z}`.match(this.options.loose?Iq[Bq.PRERELEASELOOSE]:Iq[Bq.PRERELEASE]);if(!Q||Q[1]!==Z)throw Error(`invalid identifier: ${Z}`)}}switch(q){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",Z,$);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",Z,$);break;case"prepatch":this.prerelease.length=0,this.inc("patch",Z,$),this.inc("pre",Z,$);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",Z,$);this.inc("pre",Z,$);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let Q=Number($)?1:0;if(this.prerelease.length===0)this.prerelease=[Q];else{let K=this.prerelease.length;while(--K>=0)if(typeof this.prerelease[K]==="number")this.prerelease[K]++,K=-2;if(K===-1){if(Z===this.prerelease.join(".")&&$===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(Q)}}if(Z){let K=[Z,Q];if($===!1)K=[Z];if(y8(this.prerelease,Z)){let Y=this.prerelease[Z.split(".").length];if(isNaN(Y))this.prerelease=K}else this.prerelease=K}break}default:throw Error(`invalid increment argument: ${q}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}q0.exports=v});var d=O((B6,$0)=>{var Z0=R(),w8=(q,Z,$=!1)=>{if(q instanceof Z0)return q;try{return new Z0(q,Z)}catch(Q){if(!$)return null;throw Q}};$0.exports=w8});var K0=O((J6,Q0)=>{var S8=d(),T8=(q,Z)=>{let $=S8(q,Z);return $?$.version:null};Q0.exports=T8});var W0=O((V6,Y0)=>{var j8=d(),M8=(q,Z)=>{let $=j8(q.trim().replace(/^[=v]+/,""),Z);return $?$.version:null};Y0.exports=M8});var I0=O((X6,_0)=>{var z0=R(),b8=(q,Z,$,Q,K)=>{if(typeof $==="string")K=Q,Q=$,$=void 0;try{return new z0(q instanceof z0?q.version:q,$).inc(Z,Q,K).version}catch(Y){return null}};_0.exports=b8});var V0=O((O6,J0)=>{var B0=d(),v8=(q,Z)=>{let $=B0(q,null,!0),Q=B0(Z,null,!0),K=$.compare(Q);if(K===0)return null;let Y=K>0,W=Y?$:Q,z=Y?Q:$,_=!!W.prerelease.length;if(!!z.prerelease.length&&!_){if(!z.patch&&!z.minor)return"major";if(z.compareMain(W)===0){if(z.minor&&!z.patch)return"minor";return"patch"}}let J=_?"pre":"";if($.major!==Q.major)return J+"major";if($.minor!==Q.minor)return J+"minor";if($.patch!==Q.patch)return J+"patch";return"prerelease"};J0.exports=v8});var O0=O((F6,X0)=>{var u8=R(),f8=(q,Z)=>new u8(q,Z).major;X0.exports=f8});var x0=O((x6,F0)=>{var d8=R(),h8=(q,Z)=>new d8(q,Z).minor;F0.exports=h8});var U0=O((D6,D0)=>{var l8=R(),g8=(q,Z)=>new l8(q,Z).patch;D0.exports=g8});var L0=O((U6,N0)=>{var c8=d(),m8=(q,Z)=>{let $=c8(q,Z);return $&&$.prerelease.length?$.prerelease:null};N0.exports=m8});var M=O((N6,P0)=>{var G0=R(),p8=(q,Z,$)=>new G0(q,$).compare(new G0(Z,$));P0.exports=p8});var C0=O((L6,A0)=>{var n8=M(),a8=(q,Z,$)=>n8(Z,q,$);A0.exports=a8});var H0=O((G6,E0)=>{var i8=M(),s8=(q,Z)=>i8(q,Z,!0);E0.exports=s8});var Jq=O((P6,R0)=>{var k0=R(),r8=(q,Z,$)=>{let Q=new k0(q,$),K=new k0(Z,$);return Q.compare(K)||Q.compareBuild(K)};R0.exports=r8});var w0=O((A6,y0)=>{var o8=Jq(),t8=(q,Z)=>q.sort(($,Q)=>o8($,Q,Z));y0.exports=t8});var T0=O((C6,S0)=>{var e8=Jq(),q9=(q,Z)=>q.sort(($,Q)=>e8(Q,$,Z));S0.exports=q9});var r=O((E6,j0)=>{var Z9=M(),$9=(q,Z,$)=>Z9(q,Z,$)>0;j0.exports=$9});var Vq=O((H6,M0)=>{var Q9=M(),K9=(q,Z,$)=>Q9(q,Z,$)<0;M0.exports=K9});var kq=O((k6,b0)=>{var Y9=M(),W9=(q,Z,$)=>Y9(q,Z,$)===0;b0.exports=W9});var Rq=O((R6,v0)=>{var z9=M(),_9=(q,Z,$)=>z9(q,Z,$)!==0;v0.exports=_9});var Xq=O((y6,u0)=>{var I9=M(),B9=(q,Z,$)=>I9(q,Z,$)>=0;u0.exports=B9});var Oq=O((w6,f0)=>{var J9=M(),V9=(q,Z,$)=>J9(q,Z,$)<=0;f0.exports=V9});var yq=O((S6,d0)=>{var X9=kq(),O9=Rq(),F9=r(),x9=Xq(),D9=Vq(),U9=Oq(),N9=(q,Z,$,Q)=>{switch(Z){case"===":if(typeof q==="object")q=q.version;if(typeof $==="object")$=$.version;return q===$;case"!==":if(typeof q==="object")q=q.version;if(typeof $==="object")$=$.version;return q!==$;case"":case"=":case"==":return X9(q,$,Q);case"!=":return O9(q,$,Q);case">":return F9(q,$,Q);case">=":return x9(q,$,Q);case"<":return D9(q,$,Q);case"<=":return U9(q,$,Q);default:throw TypeError(`Invalid operator: ${Z}`)}};d0.exports=N9});var l0=O((T6,h0)=>{var L9=R(),G9=d(),{safeRe:Fq,t:xq}=p(),P9=(q,Z)=>{if(q instanceof L9)return q;if(typeof q==="number")q=String(q);if(typeof q!=="string")return null;Z=Z||{};let $=null;if(!Z.rtl)$=q.match(Z.includePrerelease?Fq[xq.COERCEFULL]:Fq[xq.COERCE]);else{let _=Z.includePrerelease?Fq[xq.COERCERTLFULL]:Fq[xq.COERCERTL],I;while((I=_.exec(q))&&(!$||$.index+$[0].length!==q.length)){if(!$||I.index+I[0].length!==$.index+$[0].length)$=I;_.lastIndex=I.index+I[1].length+I[2].length}_.lastIndex=-1}if($===null)return null;let Q=$[2],K=$[3]||"0",Y=$[4]||"0",W=Z.includePrerelease&&$[5]?`-${$[5]}`:"",z=Z.includePrerelease&&$[6]?`+${$[6]}`:"";return G9(`${Q}.${K}.${Y}${W}${z}`,Z)};h0.exports=P9});var c0=O((j6,g0)=>{var A9=d(),C9=m(),E9=R(),H9=(q,Z,$)=>{if(!C9.RELEASE_TYPES.includes(Z))return null;let Q=k9(q,$);return Q&&R9(Q,Z)},k9=(q,Z)=>{let $=q instanceof E9?q.version:q;return A9($,Z)},R9=(q,Z)=>{if(y9(Z))return q.version;switch(q.prerelease=[],Z){case"major":q.minor=0,q.patch=0;break;case"minor":q.patch=0;break}return q.format()},y9=(q)=>{return q.startsWith("pre")};g0.exports=H9});var n0=O((M6,p0)=>{class m0{constructor(){this.max=1000,this.map=new Map}get(q){let Z=this.map.get(q);if(Z===void 0)return;else return this.map.delete(q),this.map.set(q,Z),Z}delete(q){return this.map.delete(q)}set(q,Z){if(!this.delete(q)&&Z!==void 0){if(this.map.size>=this.max){let Q=this.map.keys().next().value;this.delete(Q)}this.map.set(q,Z)}return this}}p0.exports=m0});var b=O((b6,r0)=>{var w9=/\s+/g;class o{constructor(q,Z){if(Z=T9(Z),q instanceof o)if(q.loose===!!Z.loose&&q.includePrerelease===!!Z.includePrerelease)return q;else return new o(q.raw,Z);if(q instanceof wq)return this.raw=q.value,this.set=[[q]],this.formatted=void 0,this;if(this.options=Z,this.loose=!!Z.loose,this.includePrerelease=!!Z.includePrerelease,this.raw=q.trim().replace(w9," "),this.set=this.raw.split("||").map(($)=>this.parseRange($.trim())).filter(($)=>$.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let $=this.set[0];if(this.set=this.set.filter((Q)=>!i0(Q[0])),this.set.length===0)this.set=[$];else if(this.set.length>1){for(let Q of this.set)if(Q.length===1&&l9(Q[0])){this.set=[Q];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let q=0;q<this.set.length;q++){if(q>0)this.formatted+="||";let Z=this.set[q];for(let $=0;$<Z.length;$++){if($>0)this.formatted+=" ";this.formatted+=Z[$].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(q){q=q.replace(h9,"");let $=((this.options.includePrerelease&&f9)|(this.options.loose&&d9))+":"+q,Q=a0.get($);if(Q)return Q;let K=this.options.loose,Y=K?S[y.HYPHENRANGELOOSE]:S[y.HYPHENRANGE];q=q.replace(Y,o9(this.options.includePrerelease)),P("hyphen replace",q),q=q.replace(S[y.COMPARATORTRIM],b9),P("comparator trim",q),q=q.replace(S[y.TILDETRIM],v9),P("tilde trim",q),q=q.replace(S[y.CARETTRIM],u9),P("caret trim",q);let W=q.split(" ").map((J)=>g9(J,this.options)).join(" ").split(/\s+/).map((J)=>r9(J,this.options));if(K)W=W.filter((J)=>{return P("loose invalid filter",J,this.options),!!J.match(S[y.COMPARATORLOOSE])});P("range list",W);let z=new Map,_=W.map((J)=>new wq(J,this.options));for(let J of _){if(i0(J))return[J];z.set(J.value,J)}if(z.size>1&&z.has(""))z.delete("");let I=[...z.values()];return a0.set($,I),I}intersects(q,Z){if(!(q instanceof o))throw TypeError("a Range is required");return this.set.some(($)=>{return s0($,Z)&&q.set.some((Q)=>{return s0(Q,Z)&&$.every((K)=>{return Q.every((Y)=>{return K.intersects(Y,Z)})})})})}test(q){if(!q)return!1;if(typeof q==="string")try{q=new j9(q,this.options)}catch(Z){return!1}for(let Z=0;Z<this.set.length;Z++)if(t9(this.set[Z],q,this.options))return!0;return!1}}r0.exports=o;var S9=n0(),a0=new S9,T9=Wq(),wq=t(),P=s(),j9=R(),{safeRe:S,src:M9,t:y,comparatorTrimReplace:b9,tildeTrimReplace:v9,caretTrimReplace:u9}=p(),{FLAG_INCLUDE_PRERELEASE:f9,FLAG_LOOSE:d9}=m(),h9=new RegExp(M9[y.BUILD],"g"),i0=(q)=>q.value==="<0.0.0-0",l9=(q)=>q.value==="",s0=(q,Z)=>{let $=!0,Q=q.slice(),K=Q.pop();while($&&Q.length)$=Q.every((Y)=>{return K.intersects(Y,Z)}),K=Q.pop();return $},g9=(q,Z)=>{return q=q.replace(S[y.BUILD],""),P("comp",q,Z),q=p9(q,Z),P("caret",q),q=c9(q,Z),P("tildes",q),q=a9(q,Z),P("xrange",q),q=s9(q,Z),P("stars",q),q},T=(q)=>!q||q.toLowerCase()==="x"||q==="*",c9=(q,Z)=>{return q.trim().split(/\s+/).map(($)=>m9($,Z)).join(" ")},m9=(q,Z)=>{let $=Z.loose?S[y.TILDELOOSE]:S[y.TILDE];return q.replace($,(Q,K,Y,W,z)=>{P("tilde",q,Q,K,Y,W,z);let _;if(T(K))_="";else if(T(Y))_=`>=${K}.0.0 <${+K+1}.0.0-0`;else if(T(W))_=`>=${K}.${Y}.0 <${K}.${+Y+1}.0-0`;else if(z)P("replaceTilde pr",z),_=`>=${K}.${Y}.${W}-${z} <${K}.${+Y+1}.0-0`;else _=`>=${K}.${Y}.${W} <${K}.${+Y+1}.0-0`;return P("tilde return",_),_})},p9=(q,Z)=>{return q.trim().split(/\s+/).map(($)=>n9($,Z)).join(" ")},n9=(q,Z)=>{P("caret",q,Z);let $=Z.loose?S[y.CARETLOOSE]:S[y.CARET],Q=Z.includePrerelease?"-0":"";return q.replace($,(K,Y,W,z,_)=>{P("caret",q,K,Y,W,z,_);let I;if(T(Y))I="";else if(T(W))I=`>=${Y}.0.0${Q} <${+Y+1}.0.0-0`;else if(T(z))if(Y==="0")I=`>=${Y}.${W}.0${Q} <${Y}.${+W+1}.0-0`;else I=`>=${Y}.${W}.0${Q} <${+Y+1}.0.0-0`;else if(_)if(P("replaceCaret pr",_),Y==="0")if(W==="0")I=`>=${Y}.${W}.${z}-${_} <${Y}.${W}.${+z+1}-0`;else I=`>=${Y}.${W}.${z}-${_} <${Y}.${+W+1}.0-0`;else I=`>=${Y}.${W}.${z}-${_} <${+Y+1}.0.0-0`;else if(P("no pr"),Y==="0")if(W==="0")I=`>=${Y}.${W}.${z}${Q} <${Y}.${W}.${+z+1}-0`;else I=`>=${Y}.${W}.${z}${Q} <${Y}.${+W+1}.0-0`;else I=`>=${Y}.${W}.${z} <${+Y+1}.0.0-0`;return P("caret return",I),I})},a9=(q,Z)=>{return P("replaceXRanges",q,Z),q.split(/\s+/).map(($)=>i9($,Z)).join(" ")},i9=(q,Z)=>{q=q.trim();let $=Z.loose?S[y.XRANGELOOSE]:S[y.XRANGE];return q.replace($,(Q,K,Y,W,z,_)=>{P("xRange",q,Q,K,Y,W,z,_);let I=T(Y),J=I||T(W),F=J||T(z),N=F;if(K==="="&&N)K="";if(_=Z.includePrerelease?"-0":"",I)if(K===">"||K==="<")Q="<0.0.0-0";else Q="*";else if(K&&N){if(J)W=0;if(z=0,K===">")if(K=">=",J)Y=+Y+1,W=0,z=0;else W=+W+1,z=0;else if(K==="<=")if(K="<",J)Y=+Y+1;else W=+W+1;if(K==="<")_="-0";Q=`${K+Y}.${W}.${z}${_}`}else if(J)Q=`>=${Y}.0.0${_} <${+Y+1}.0.0-0`;else if(F)Q=`>=${Y}.${W}.0${_} <${Y}.${+W+1}.0-0`;return P("xRange return",Q),Q})},s9=(q,Z)=>{return P("replaceStars",q,Z),q.trim().replace(S[y.STAR],"")},r9=(q,Z)=>{return P("replaceGTE0",q,Z),q.trim().replace(S[Z.includePrerelease?y.GTE0PRE:y.GTE0],"")},o9=(q)=>(Z,$,Q,K,Y,W,z,_,I,J,F,N)=>{if(T(Q))$="";else if(T(K))$=`>=${Q}.0.0${q?"-0":""}`;else if(T(Y))$=`>=${Q}.${K}.0${q?"-0":""}`;else if(W)$=`>=${$}`;else $=`>=${$}${q?"-0":""}`;if(T(I))_="";else if(T(J))_=`<${+I+1}.0.0-0`;else if(T(F))_=`<${I}.${+J+1}.0-0`;else if(N)_=`<=${I}.${J}.${F}-${N}`;else if(q)_=`<${I}.${J}.${+F+1}-0`;else _=`<=${_}`;return`${$} ${_}`.trim()},t9=(q,Z,$)=>{for(let Q=0;Q<q.length;Q++)if(!q[Q].test(Z))return!1;if(Z.prerelease.length&&!$.includePrerelease){for(let Q=0;Q<q.length;Q++){if(P(q[Q].semver),q[Q].semver===wq.ANY)continue;if(q[Q].semver.prerelease.length>0){let K=q[Q].semver;if(K.major===Z.major&&K.minor===Z.minor&&K.patch===Z.patch)return!0}}return!1}return!0}});var t=O((v6,$1)=>{var e=Symbol("SemVer ANY");class Dq{static get ANY(){return e}constructor(q,Z){if(Z=o0(Z),q instanceof Dq)if(q.loose===!!Z.loose)return q;else q=q.value;if(q=q.trim().split(/\s+/).join(" "),Tq("comparator",q,Z),this.options=Z,this.loose=!!Z.loose,this.parse(q),this.semver===e)this.value="";else this.value=this.operator+this.semver.version;Tq("comp",this)}parse(q){let Z=this.options.loose?t0[e0.COMPARATORLOOSE]:t0[e0.COMPARATOR],$=q.match(Z);if(!$)throw TypeError(`Invalid comparator: ${q}`);if(this.operator=$[1]!==void 0?$[1]:"",this.operator==="=")this.operator="";if(!$[2])this.semver=e;else this.semver=new q1($[2],this.options.loose)}toString(){return this.value}test(q){if(Tq("Comparator.test",q,this.options.loose),this.semver===e||q===e)return!0;if(typeof q==="string")try{q=new q1(q,this.options)}catch(Z){return!1}return Sq(q,this.operator,this.semver,this.options)}intersects(q,Z){if(!(q instanceof Dq))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new Z1(q.value,Z).test(this.value)}else if(q.operator===""){if(q.value==="")return!0;return new Z1(this.value,Z).test(q.semver)}if(Z=o0(Z),Z.includePrerelease&&(this.value==="<0.0.0-0"||q.value==="<0.0.0-0"))return!1;if(!Z.includePrerelease&&(this.value.startsWith("<0.0.0")||q.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&q.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&q.operator.startsWith("<"))return!0;if(this.semver.version===q.semver.version&&this.operator.includes("=")&&q.operator.includes("="))return!0;if(Sq(this.semver,"<",q.semver,Z)&&this.operator.startsWith(">")&&q.operator.startsWith("<"))return!0;if(Sq(this.semver,">",q.semver,Z)&&this.operator.startsWith("<")&&q.operator.startsWith(">"))return!0;return!1}}$1.exports=Dq;var o0=Wq(),{safeRe:t0,t:e0}=p(),Sq=yq(),Tq=s(),q1=R(),Z1=b()});var qq=O((u6,Q1)=>{var e9=b(),qZ=(q,Z,$)=>{try{Z=new e9(Z,$)}catch(Q){return!1}return Z.test(q)};Q1.exports=qZ});var Y1=O((f6,K1)=>{var ZZ=b(),$Z=(q,Z)=>new ZZ(q,Z).set.map(($)=>$.map((Q)=>Q.value).join(" ").trim().split(" "));K1.exports=$Z});var z1=O((d6,W1)=>{var QZ=R(),KZ=b(),YZ=(q,Z,$)=>{let Q=null,K=null,Y=null;try{Y=new KZ(Z,$)}catch(W){return null}return q.forEach((W)=>{if(Y.test(W)){if(!Q||K.compare(W)===-1)Q=W,K=new QZ(Q,$)}}),Q};W1.exports=YZ});var I1=O((h6,_1)=>{var WZ=R(),zZ=b(),_Z=(q,Z,$)=>{let Q=null,K=null,Y=null;try{Y=new zZ(Z,$)}catch(W){return null}return q.forEach((W)=>{if(Y.test(W)){if(!Q||K.compare(W)===1)Q=W,K=new WZ(Q,$)}}),Q};_1.exports=_Z});var V1=O((l6,J1)=>{var jq=R(),IZ=b(),B1=r(),BZ=(q,Z)=>{q=new IZ(q,Z);let $=new jq("0.0.0");if(q.test($))return $;if($=new jq("0.0.0-0"),q.test($))return $;$=null;for(let Q=0;Q<q.set.length;++Q){let K=q.set[Q],Y=null;if(K.forEach((W)=>{let z=new jq(W.semver.version);switch(W.operator){case">":if(z.prerelease.length===0)z.patch++;else z.prerelease.push(0);z.raw=z.format();case"":case">=":if(!Y||B1(z,Y))Y=z;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${W.operator}`)}}),Y&&(!$||B1($,Y)))$=Y}if($&&q.test($))return $;return null};J1.exports=BZ});var O1=O((g6,X1)=>{var JZ=b(),VZ=(q,Z)=>{try{return new JZ(q,Z).range||"*"}catch($){return null}};X1.exports=VZ});var Uq=O((c6,U1)=>{var XZ=R(),D1=t(),{ANY:OZ}=D1,FZ=b(),xZ=qq(),F1=r(),x1=Vq(),DZ=Oq(),UZ=Xq(),NZ=(q,Z,$,Q)=>{q=new XZ(q,Q),Z=new FZ(Z,Q);let K,Y,W,z,_;switch($){case">":K=F1,Y=DZ,W=x1,z=">",_=">=";break;case"<":K=x1,Y=UZ,W=F1,z="<",_="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(xZ(q,Z,Q))return!1;for(let I=0;I<Z.set.length;++I){let J=Z.set[I],F=null,N=null;if(J.forEach((B)=>{if(B.semver===OZ)B=new D1(">=0.0.0");if(F=F||B,N=N||B,K(B.semver,F.semver,Q))F=B;else if(W(B.semver,N.semver,Q))N=B}),F.operator===z||F.operator===_)return!1;if((!N.operator||N.operator===z)&&Y(q,N.semver))return!1;else if(N.operator===_&&W(q,N.semver))return!1}return!0};U1.exports=NZ});var L1=O((m6,N1)=>{var LZ=Uq(),GZ=(q,Z,$)=>LZ(q,Z,">",$);N1.exports=GZ});var P1=O((p6,G1)=>{var PZ=Uq(),AZ=(q,Z,$)=>PZ(q,Z,"<",$);G1.exports=AZ});var E1=O((n6,C1)=>{var A1=b(),CZ=(q,Z,$)=>{return q=new A1(q,$),Z=new A1(Z,$),q.intersects(Z,$)};C1.exports=CZ});var k1=O((a6,H1)=>{var EZ=qq(),HZ=M();H1.exports=(q,Z,$)=>{let Q=[],K=null,Y=null,W=q.sort((J,F)=>HZ(J,F,$));for(let J of W)if(EZ(J,Z,$)){if(Y=J,!K)K=J}else{if(Y)Q.push([K,Y]);Y=null,K=null}if(K)Q.push([K,null]);let z=[];for(let[J,F]of Q)if(J===F)z.push(J);else if(!F&&J===W[0])z.push("*");else if(!F)z.push(`>=${J}`);else if(J===W[0])z.push(`<=${F}`);else z.push(`${J} - ${F}`);let _=z.join(" || "),I=typeof Z.raw==="string"?Z.raw:String(Z);return _.length<I.length?_:Z}});var j1=O((i6,T1)=>{var R1=b(),vq=t(),{ANY:Mq}=vq,bq=qq(),uq=M(),kZ=(q,Z,$={})=>{if(q===Z)return!0;q=new R1(q,$),Z=new R1(Z,$);let Q=!1;q:for(let K of q.set){for(let Y of Z.set){let W=yZ(K,Y,$);if(Q=Q||W!==null,W)continue q}if(Q)return!1}return!0},RZ=[new vq(">=0.0.0-0")],y1=[new vq(">=0.0.0")],yZ=(q,Z,$)=>{if(q===Z)return!0;if(q.length===1&&q[0].semver===Mq)if(Z.length===1&&Z[0].semver===Mq)return!0;else if($.includePrerelease)q=RZ;else q=y1;if(Z.length===1&&Z[0].semver===Mq)if($.includePrerelease)return!0;else Z=y1;let Q=new Set,K,Y;for(let B of q)if(B.operator===">"||B.operator===">=")K=w1(K,B,$);else if(B.operator==="<"||B.operator==="<=")Y=S1(Y,B,$);else Q.add(B.semver);if(Q.size>1)return null;let W;if(K&&Y){if(W=uq(K.semver,Y.semver,$),W>0)return null;else if(W===0&&(K.operator!==">="||Y.operator!=="<="))return null}for(let B of Q){if(K&&!bq(B,String(K),$))return null;if(Y&&!bq(B,String(Y),$))return null;for(let G of Z)if(!bq(B,String(G),$))return!1;return!0}let z,_,I,J,F=Y&&!$.includePrerelease&&Y.semver.prerelease.length?Y.semver:!1,N=K&&!$.includePrerelease&&K.semver.prerelease.length?K.semver:!1;if(F&&F.prerelease.length===1&&Y.operator==="<"&&F.prerelease[0]===0)F=!1;for(let B of Z){if(J=J||B.operator===">"||B.operator===">=",I=I||B.operator==="<"||B.operator==="<=",K){if(N){if(B.semver.prerelease&&B.semver.prerelease.length&&B.semver.major===N.major&&B.semver.minor===N.minor&&B.semver.patch===N.patch)N=!1}if(B.operator===">"||B.operator===">="){if(z=w1(K,B,$),z===B&&z!==K)return!1}else if(K.operator===">="&&!B.test(K.semver))return!1}if(Y){if(F){if(B.semver.prerelease&&B.semver.prerelease.length&&B.semver.major===F.major&&B.semver.minor===F.minor&&B.semver.patch===F.patch)F=!1}if(B.operator==="<"||B.operator==="<="){if(_=S1(Y,B,$),_===B&&_!==Y)return!1}else if(Y.operator==="<="&&!B.test(Y.semver))return!1}if(!B.operator&&(Y||K)&&W!==0)return!1}if(K&&I&&!Y&&W!==0)return!1;if(Y&&J&&!K&&W!==0)return!1;if(N||F)return!1;return!0},w1=(q,Z,$)=>{if(!q)return Z;let Q=uq(q.semver,Z.semver,$);return Q>0?q:Q<0?Z:Z.operator===">"&&q.operator===">="?Z:q},S1=(q,Z,$)=>{if(!q)return Z;let Q=uq(q.semver,Z.semver,$);return Q<0?q:Q>0?Z:Z.operator==="<"&&q.operator==="<="?Z:q};T1.exports=kZ});var u1=O((s6,v1)=>{var fq=p(),M1=m(),wZ=R(),b1=Eq(),SZ=d(),TZ=K0(),jZ=W0(),MZ=I0(),bZ=V0(),vZ=O0(),uZ=x0(),fZ=U0(),dZ=L0(),hZ=M(),lZ=C0(),gZ=H0(),cZ=Jq(),mZ=w0(),pZ=T0(),nZ=r(),aZ=Vq(),iZ=kq(),sZ=Rq(),rZ=Xq(),oZ=Oq(),tZ=yq(),eZ=l0(),q5=c0(),Z5=t(),$5=b(),Q5=qq(),K5=Y1(),Y5=z1(),W5=I1(),z5=V1(),_5=O1(),I5=Uq(),B5=L1(),J5=P1(),V5=E1(),X5=k1(),O5=j1();v1.exports={parse:SZ,valid:TZ,clean:jZ,inc:MZ,diff:bZ,major:vZ,minor:uZ,patch:fZ,prerelease:dZ,compare:hZ,rcompare:lZ,compareLoose:gZ,compareBuild:cZ,sort:mZ,rsort:pZ,gt:nZ,lt:aZ,eq:iZ,neq:sZ,gte:rZ,lte:oZ,cmp:tZ,coerce:eZ,truncate:q5,Comparator:Z5,Range:$5,satisfies:Q5,toComparators:K5,maxSatisfying:Y5,minSatisfying:W5,minVersion:z5,validRange:_5,outside:I5,gtr:B5,ltr:J5,intersects:V5,simplifyRange:X5,subset:O5,SemVer:wZ,re:fq.re,src:fq.src,tokens:fq.t,SEMVER_SPEC_VERSION:M1.SEMVER_SPEC_VERSION,RELEASE_TYPES:M1.RELEASE_TYPES,compareIdentifiers:b1.compareIdentifiers,rcompareIdentifiers:b1.rcompareIdentifiers}});var d1=O((r6,f1)=>{var F5=Symbol("proc-log.meta");f1.exports={META:F5,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...q){return process.emit("output","standard",...q)},error:function(...q){return process.emit("output","error",...q)},buffer:function(...q){return process.emit("output","buffer",...q)},flush:function(...q){return process.emit("output","flush",...q)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...q){return process.emit("log","error",...q)},notice:function(...q){return process.emit("log","notice",...q)},warn:function(...q){return process.emit("log","warn",...q)},info:function(...q){return process.emit("log","info",...q)},verbose:function(...q){return process.emit("log","verbose",...q)},http:function(...q){return process.emit("log","http",...q)},silly:function(...q){return process.emit("log","silly",...q)},timing:function(...q){return process.emit("log","timing",...q)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(q,Z){process.emit("time","start",q);function $(){return process.emit("time","end",q)}if(typeof Z==="function"){let Q=Z();if(Q&&Q.finally)return Q.finally($);return $(),Q}return $},end:function(q){return process.emit("time","end",q)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(...q){let Z;if(typeof q[0]==="function")Z=q.shift();process.emit("input","start",...q);function $(){return process.emit("input","end",...q)}if(typeof Z==="function"){let Q=Z();if(Q&&Q.finally)return Q.finally($);return $(),Q}return $},end:function(...q){return process.emit("input","end",...q)},read:function(...q){let Z,$,Q=new Promise((K,Y)=>{Z=K,$=Y});return process.emit("input","read",Z,$,...q),Q}}}});var n1=O((m1)=>{var l1=(q,Z)=>()=>(Z||q((Z={exports:{}}).exports,Z),Z.exports),x5=l1((q)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.tracing=q.metrics=void 0;var Z=n("diagnostics_channel");q.metrics=(0,Z.channel)("lru-cache:metrics"),q.tracing=(0,Z.tracingChannel)("lru-cache")}),D5=l1((q)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.defaultPerf=void 0,q.defaultPerf=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date});Object.defineProperty(m1,"__esModule",{value:!0});m1.LRUCache=void 0;var A=x5(),U5=D5(),dq=()=>A.metrics.hasSubscribers||A.tracing.hasSubscribers,g1=new Set,h1=typeof process=="object"&&process?process:{},N5=(q,Z,$,Q)=>{typeof h1.emitWarning=="function"?h1.emitWarning(q,Z,$,Q):console.error(`[${$}] ${Z}: ${q}`)},L5=(q)=>!g1.has(q),h=(q)=>!!q&&q===Math.floor(q)&&q>0&&isFinite(q),c1=(q)=>h(q)?q<=Math.pow(2,8)?Uint8Array:q<=Math.pow(2,16)?Uint16Array:q<=Math.pow(2,32)?Uint32Array:q<=Number.MAX_SAFE_INTEGER?Nq:null:null,Nq=class extends Array{constructor(q){super(q),this.fill(0)}},G5=class q{heap;length;static#K=!1;static create(Z){let $=c1(Z);if(!$)return[];q.#K=!0;let Q=new q(Z,$);return q.#K=!1,Q}constructor(Z,$){if(!q.#K)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new $(Z),this.length=0}push(Z){this.heap[this.length++]=Z}pop(){return this.heap[--this.length]}},P5=class q{#K;#I;#Z;#y;#D;#b;#v;#U;get perf(){return this.#U}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;backgroundFetchSize;#W;#N;#Y;#Q;#q;#J;#X;#B;#z;#L;#_;#G;#P;#O;#F;#A;#u;#V;#w;static unsafeExposeInternals(Z){return{starts:Z.#P,ttls:Z.#O,autopurgeTimers:Z.#F,sizes:Z.#G,keyMap:Z.#Y,keyList:Z.#Q,valList:Z.#q,next:Z.#J,prev:Z.#X,get head(){return Z.#B},get tail(){return Z.#z},free:Z.#L,isBackgroundFetch:($)=>Z.#$($),backgroundFetch:($,Q,K,Y)=>Z.#h($,Q,K,Y),moveToTail:($)=>Z.#M($),indexes:($)=>Z.#C($),rindexes:($)=>Z.#E($),isStale:($)=>Z.#x($)}}get max(){return this.#K}get maxSize(){return this.#I}get calculatedSize(){return this.#N}get size(){return this.#W}get fetchMethod(){return this.#b}get memoMethod(){return this.#v}get dispose(){return this.#Z}get onInsert(){return this.#y}get disposeAfter(){return this.#D}constructor(Z){let{max:$=0,ttl:Q,ttlResolution:K=1,ttlAutopurge:Y,updateAgeOnGet:W,updateAgeOnHas:z,allowStale:_,dispose:I,onInsert:J,disposeAfter:F,noDisposeOnSet:N,noUpdateTTL:B,maxSize:G=0,maxEntrySize:x=0,sizeCalculation:H,fetchMethod:U,memoMethod:k,noDeleteOnFetchRejection:f,noDeleteOnStaleGet:w,allowStaleOnFetchRejection:C,allowStaleOnFetchAbort:i,ignoreFetchAbort:g,backgroundFetchSize:Yq=1,perf:c}=Z;if(this.backgroundFetchSize=Yq,c!==void 0&&typeof c?.now!="function")throw TypeError("perf option must have a now() method if specified");if(this.#U=c??U5.defaultPerf,$!==0&&!h($))throw TypeError("max option must be a nonnegative integer");let Gq=$?c1($):Array;if(!Gq)throw Error("invalid max value: "+$);if(this.#K=$,this.#I=G,this.maxEntrySize=x||this.#I,this.sizeCalculation=H,this.sizeCalculation){if(!this.#I&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw TypeError("sizeCalculation set to non-function")}if(k!==void 0&&typeof k!="function")throw TypeError("memoMethod must be a function if defined");if(this.#v=k,U!==void 0&&typeof U!="function")throw TypeError("fetchMethod must be a function if specified");if(this.#b=U,this.#u=!!U,this.#Y=new Map,this.#Q=Array.from({length:$}).fill(void 0),this.#q=Array.from({length:$}).fill(void 0),this.#J=new Gq($),this.#X=new Gq($),this.#B=0,this.#z=0,this.#L=G5.create($),this.#W=0,this.#N=0,typeof I=="function"&&(this.#Z=I),typeof J=="function"&&(this.#y=J),typeof F=="function"?(this.#D=F,this.#_=[]):(this.#D=void 0,this.#_=void 0),this.#A=!!this.#Z,this.#w=!!this.#y,this.#V=!!this.#D,this.noDisposeOnSet=!!N,this.noUpdateTTL=!!B,this.noDeleteOnFetchRejection=!!f,this.allowStaleOnFetchRejection=!!C,this.allowStaleOnFetchAbort=!!i,this.ignoreFetchAbort=!!g,this.maxEntrySize!==0){if(this.#I!==0&&!h(this.#I))throw TypeError("maxSize must be a positive integer if specified");if(!h(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.#i()}if(this.allowStale=!!_,this.noDeleteOnStaleGet=!!w,this.updateAgeOnGet=!!W,this.updateAgeOnHas=!!z,this.ttlResolution=h(K)||K===0?K:1,this.ttlAutopurge=!!Y,this.ttl=Q||0,this.ttl){if(!h(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.#l()}if(this.#K===0&&this.ttl===0&&this.#I===0)throw TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#K&&!this.#I){let Pq="LRU_CACHE_UNBOUNDED";L5(Pq)&&(g1.add(Pq),N5("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Pq,q))}}getRemainingTTL(Z){return this.#Y.has(Z)?1/0:0}#l(){let Z=new Nq(this.#K),$=new Nq(this.#K);this.#O=Z,this.#P=$;let Q=this.ttlAutopurge?Array.from({length:this.#K}):void 0;this.#F=Q,this.#g=(z,_,I=this.#U.now())=>{$[z]=_!==0?I:0,Z[z]=_,K(z,_)},this.#S=(z)=>{$[z]=Z[z]!==0?this.#U.now():0,K(z,Z[z])};let K=this.ttlAutopurge?(z,_)=>{if(Q?.[z]&&(clearTimeout(Q[z]),Q[z]=void 0),_&&_!==0&&Q){let I=setTimeout(()=>{this.#x(z)&&this.#H(this.#Q[z],"expire")},_+1);I.unref&&I.unref(),Q[z]=I}}:()=>{};this.#k=(z,_)=>{if(Z[_]){let I=Z[_],J=$[_];if(!I||!J)return;z.ttl=I,z.start=J,z.now=Y||W();let F=z.now-J;z.remainingTTL=I-F}};let Y=0,W=()=>{let z=this.#U.now();if(this.ttlResolution>0){Y=z;let _=setTimeout(()=>Y=0,this.ttlResolution);_.unref&&_.unref()}return z};this.getRemainingTTL=(z)=>{let _=this.#Y.get(z);if(_===void 0)return 0;let I=Z[_],J=$[_];if(!I||!J)return 1/0;let F=(Y||W())-J;return I-F},this.#x=(z)=>{let _=$[z],I=Z[z];return!!I&&!!_&&(Y||W())-_>I}}#S=()=>{};#k=()=>{};#g=()=>{};#x=()=>!1;#i(){let Z=new Nq(this.#K);this.#N=0,this.#G=Z,this.#T=($)=>{this.#N-=Z[$],Z[$]=0},this.#c=($,Q,K,Y)=>{if(!h(K)){if(this.#$(Q))return this.backgroundFetchSize;if(Y){if(typeof Y!="function")throw TypeError("sizeCalculation must be a function");if(K=Y(Q,$),!h(K))throw TypeError("sizeCalculation return invalid (expect positive integer)")}else throw TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.")}return K},this.#f=($,Q,K)=>{if(Z[$]=Q,this.#I){let Y=this.#I-Z[$];for(;this.#N>Y;)this.#d(!0)}this.#N+=Z[$],K&&(K.entrySize=Q,K.totalCalculatedSize=this.#N)}}#T=(Z)=>{};#f=(Z,$,Q)=>{};#c=(Z,$,Q,K)=>{if(Q||K)throw TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#C({allowStale:Z=this.allowStale}={}){if(this.#W)for(let $=this.#z;this.#m($)&&((Z||!this.#x($))&&(yield $),$!==this.#B);)$=this.#X[$]}*#E({allowStale:Z=this.allowStale}={}){if(this.#W)for(let $=this.#B;this.#m($)&&((Z||!this.#x($))&&(yield $),$!==this.#z);)$=this.#J[$]}#m(Z){return Z!==void 0&&this.#Y.get(this.#Q[Z])===Z}*entries(){for(let Z of this.#C())this.#q[Z]!==void 0&&this.#Q[Z]!==void 0&&!this.#$(this.#q[Z])&&(yield[this.#Q[Z],this.#q[Z]])}*rentries(){for(let Z of this.#E())this.#q[Z]!==void 0&&this.#Q[Z]!==void 0&&!this.#$(this.#q[Z])&&(yield[this.#Q[Z],this.#q[Z]])}*keys(){for(let Z of this.#C()){let $=this.#Q[Z];$!==void 0&&!this.#$(this.#q[Z])&&(yield $)}}*rkeys(){for(let Z of this.#E()){let $=this.#Q[Z];$!==void 0&&!this.#$(this.#q[Z])&&(yield $)}}*values(){for(let Z of this.#C())this.#q[Z]!==void 0&&!this.#$(this.#q[Z])&&(yield this.#q[Z])}*rvalues(){for(let Z of this.#E())this.#q[Z]!==void 0&&!this.#$(this.#q[Z])&&(yield this.#q[Z])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(Z,$={}){for(let Q of this.#C()){let K=this.#q[Q],Y=this.#$(K)?K.__staleWhileFetching:K;if(Y!==void 0&&Z(Y,this.#Q[Q],this))return this.#j(this.#Q[Q],$)}}forEach(Z,$=this){for(let Q of this.#C()){let K=this.#q[Q],Y=this.#$(K)?K.__staleWhileFetching:K;Y!==void 0&&Z.call($,Y,this.#Q[Q],this)}}rforEach(Z,$=this){for(let Q of this.#E()){let K=this.#q[Q],Y=this.#$(K)?K.__staleWhileFetching:K;Y!==void 0&&Z.call($,Y,this.#Q[Q],this)}}purgeStale(){let Z=!1;for(let $ of this.#E({allowStale:!0}))this.#x($)&&(this.#H(this.#Q[$],"expire"),Z=!0);return Z}info(Z){let $=this.#Y.get(Z);if($===void 0)return;let Q=this.#q[$],K=this.#$(Q)?Q.__staleWhileFetching:Q;if(K===void 0)return;let Y={value:K};if(this.#O&&this.#P){let W=this.#O[$],z=this.#P[$];if(W&&z){let _=W-(this.#U.now()-z);Y.ttl=_,Y.start=Date.now()}}return this.#G&&(Y.size=this.#G[$]),Y}dump(){let Z=[];for(let $ of this.#C({allowStale:!0})){let Q=this.#Q[$],K=this.#q[$],Y=this.#$(K)?K.__staleWhileFetching:K;if(Y===void 0||Q===void 0)continue;let W={value:Y};if(this.#O&&this.#P){W.ttl=this.#O[$];let z=this.#U.now()-this.#P[$];W.start=Math.floor(Date.now()-z)}this.#G&&(W.size=this.#G[$]),Z.unshift([Q,W])}return Z}load(Z){this.clear();for(let[$,Q]of Z){if(Q.start){let K=Date.now()-Q.start;Q.start=this.#U.now()-K}this.#R($,Q.value,Q)}}set(Z,$,Q={}){let{status:K=A.metrics.hasSubscribers?{}:void 0}=Q;Q.status=K,K&&(K.op="set",K.key=Z,$!==void 0&&(K.value=$),K.cache=this);let Y=this.#R(Z,$,Q);return K&&A.metrics.hasSubscribers&&A.metrics.publish(K),Y}#R(Z,$,Q,K){let{ttl:Y=this.ttl,start:W,noDisposeOnSet:z=this.noDisposeOnSet,sizeCalculation:_=this.sizeCalculation,status:I}=Q,J=this.#$($);if($===void 0)return I&&(I.set="deleted"),this.delete(Z),this;let{noUpdateTTL:F=this.noUpdateTTL}=Q;I&&!J&&(I.value=$);let N=this.#c(Z,$,Q.size||0,_,I);if(this.maxEntrySize&&N>this.maxEntrySize)return this.#H(Z,"set"),I&&(I.set="miss",I.maxEntrySizeExceeded=!0),this;let B=this.#W===0?void 0:this.#Y.get(Z);if(B===void 0)B=this.#W===0?this.#z:this.#L.length!==0?this.#L.pop():this.#W===this.#K?this.#d(!1):this.#W,this.#Q[B]=Z,this.#q[B]=$,this.#Y.set(Z,B),this.#J[this.#z]=B,this.#X[B]=this.#z,this.#z=B,this.#W++,this.#f(B,N,I),I&&(I.set="add"),F=!1,this.#w&&!J&&this.#y?.($,Z,"add");else{this.#M(B);let G=this.#q[B];if($!==G){if(!z)if(this.#$(G)){G!==K&&G.__abortController.abort(Error("replaced"));let{__staleWhileFetching:x}=G;x!==void 0&&x!==$&&(this.#A&&this.#Z?.(x,Z,"set"),this.#V&&this.#_?.push([x,Z,"set"]))}else this.#A&&this.#Z?.(G,Z,"set"),this.#V&&this.#_?.push([G,Z,"set"]);if(this.#T(B),this.#f(B,N,I),this.#q[B]=$,!J){let x=G&&this.#$(G)?G.__staleWhileFetching:G,H=x===void 0?"add":$!==x?"replace":"update";I&&(I.set=H,x!==void 0&&(I.oldValue=x)),this.#w&&this.onInsert?.($,Z,H)}}else J||(I&&(I.set="update"),this.#w&&this.onInsert?.($,Z,"update"))}if(Y!==0&&!this.#O&&this.#l(),this.#O&&(F||this.#g(B,Y,W),I&&this.#k(I,B)),!z&&this.#V&&this.#_){let G=this.#_,x;for(;x=G?.shift();)this.#D?.(...x)}return this}pop(){try{for(;this.#W;){let Z=this.#q[this.#B];if(this.#d(!0),this.#$(Z)){if(Z.__staleWhileFetching)return Z.__staleWhileFetching}else if(Z!==void 0)return Z}}finally{if(this.#V&&this.#_){let Z=this.#_,$;for(;$=Z?.shift();)this.#D?.(...$)}}}#d(Z){let $=this.#B,Q=this.#Q[$],K=this.#q[$],Y=this.#$(K);Y&&K.__abortController.abort(Error("evicted"));let W=Y?K.__staleWhileFetching:K;return(this.#A||this.#V)&&W!==void 0&&(this.#A&&this.#Z?.(W,Q,"evict"),this.#V&&this.#_?.push([W,Q,"evict"])),this.#T($),this.#F?.[$]&&(clearTimeout(this.#F[$]),this.#F[$]=void 0),Z&&(this.#Q[$]=void 0,this.#q[$]=void 0,this.#L.push($)),this.#W===1?(this.#B=this.#z=0,this.#L.length=0):this.#B=this.#J[$],this.#Y.delete(Q),this.#W--,$}has(Z,$={}){let{status:Q=A.metrics.hasSubscribers?{}:void 0}=$;$.status=Q,Q&&(Q.op="has",Q.key=Z,Q.cache=this);let K=this.#s(Z,$);return A.metrics.hasSubscribers&&A.metrics.publish(Q),K}#s(Z,$={}){let{updateAgeOnHas:Q=this.updateAgeOnHas,status:K}=$,Y=this.#Y.get(Z);if(Y!==void 0){let W=this.#q[Y];if(this.#$(W)&&W.__staleWhileFetching===void 0)return!1;if(this.#x(Y))K&&(K.has="stale",this.#k(K,Y));else return Q&&this.#S(Y),K&&(K.has="hit",this.#k(K,Y)),!0}else K&&(K.has="miss");return!1}peek(Z,$={}){let{status:Q=dq()?{}:void 0}=$;Q&&(Q.op="peek",Q.key=Z,Q.cache=this),$.status=Q;let K=this.#r(Z,$);return A.metrics.hasSubscribers&&A.metrics.publish(Q),K}#r(Z,$){let{status:Q,allowStale:K=this.allowStale}=$,Y=this.#Y.get(Z);if(Y===void 0||!K&&this.#x(Y)){Q&&(Q.peek=Y===void 0?"miss":"stale");return}let W=this.#q[Y],z=this.#$(W)?W.__staleWhileFetching:W;return Q&&(z!==void 0?(Q.peek="hit",Q.value=z):Q.peek="miss"),z}#h(Z,$,Q,K){let Y=$===void 0?void 0:this.#q[$];if(this.#$(Y))return Y;let W=new AbortController,{signal:z}=Q;z?.addEventListener("abort",()=>W.abort(z.reason),{signal:W.signal});let _={signal:W.signal,options:Q,context:K},I=(x,H=!1)=>{let{aborted:U}=W.signal,k=Q.ignoreFetchAbort&&x!==void 0,f=Q.ignoreFetchAbort||!!(Q.allowStaleOnFetchAbort&&x!==void 0);if(Q.status&&(U&&!H?(Q.status.fetchAborted=!0,Q.status.fetchError=W.signal.reason,k&&(Q.status.fetchAbortIgnored=!0)):Q.status.fetchResolved=!0),U&&!k&&!H)return F(W.signal.reason,f);let w=B,C=this.#q[$];return(C===B||C===void 0&&k&&H)&&(x===void 0?w.__staleWhileFetching!==void 0?this.#q[$]=w.__staleWhileFetching:this.#H(Z,"fetch"):(Q.status&&(Q.status.fetchUpdated=!0),this.#R(Z,x,_.options,w))),x},J=(x)=>(Q.status&&(Q.status.fetchRejected=!0,Q.status.fetchError=x),F(x,!1)),F=(x,H)=>{let{aborted:U}=W.signal,k=U&&Q.allowStaleOnFetchAbort,f=k||Q.allowStaleOnFetchRejection,w=f||Q.noDeleteOnFetchRejection,C=B;if(this.#q[$]===B&&(!w||!H&&C.__staleWhileFetching===void 0?this.#H(Z,"fetch"):k||(this.#q[$]=C.__staleWhileFetching)),f)return Q.status&&C.__staleWhileFetching!==void 0&&(Q.status.returnedStale=!0),C.__staleWhileFetching;if(C.__returned===C)throw x},N=(x,H)=>{let U=this.#b?.(Z,Y,_);W.signal.addEventListener("abort",()=>{(!Q.ignoreFetchAbort||Q.allowStaleOnFetchAbort)&&(x(void 0),Q.allowStaleOnFetchAbort&&(x=(k)=>I(k,!0)))}),U&&U instanceof Promise?U.then((k)=>x(k===void 0?void 0:k),H):U!==void 0&&x(U)};Q.status&&(Q.status.fetchDispatched=!0);let B=new Promise(N).then(I,J),G=Object.assign(B,{__abortController:W,__staleWhileFetching:Y,__returned:void 0});return $===void 0?(this.#R(Z,G,{..._.options,status:void 0}),$=this.#Y.get(Z)):this.#q[$]=G,G}#$(Z){if(!this.#u)return!1;let $=Z;return!!$&&$ instanceof Promise&&$.hasOwnProperty("__staleWhileFetching")&&$.__abortController instanceof AbortController}fetch(Z,$={}){let Q=A.tracing.hasSubscribers,{status:K=dq()?{}:void 0}=$;$.status=K,K&&$.context&&(K.context=$.context);let Y=this.#p(Z,$);return K&&Q&&(K.trace=!0,A.tracing.tracePromise(()=>Y,K).catch(()=>{})),Y}async#p(Z,$={}){let{allowStale:Q=this.allowStale,updateAgeOnGet:K=this.updateAgeOnGet,noDeleteOnStaleGet:Y=this.noDeleteOnStaleGet,ttl:W=this.ttl,noDisposeOnSet:z=this.noDisposeOnSet,size:_=0,sizeCalculation:I=this.sizeCalculation,noUpdateTTL:J=this.noUpdateTTL,noDeleteOnFetchRejection:F=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:N=this.allowStaleOnFetchRejection,ignoreFetchAbort:B=this.ignoreFetchAbort,allowStaleOnFetchAbort:G=this.allowStaleOnFetchAbort,context:x,forceRefresh:H=!1,status:U,signal:k}=$;if(U&&(U.op="fetch",U.key=Z,H&&(U.forceRefresh=!0),U.cache=this),!this.#u)return U&&(U.fetch="get"),this.#j(Z,{allowStale:Q,updateAgeOnGet:K,noDeleteOnStaleGet:Y,status:U});let f={allowStale:Q,updateAgeOnGet:K,noDeleteOnStaleGet:Y,ttl:W,noDisposeOnSet:z,size:_,sizeCalculation:I,noUpdateTTL:J,noDeleteOnFetchRejection:F,allowStaleOnFetchRejection:N,allowStaleOnFetchAbort:G,ignoreFetchAbort:B,status:U,signal:k},w=this.#Y.get(Z);if(w===void 0){U&&(U.fetch="miss");let C=this.#h(Z,w,f,x);return C.__returned=C}else{let C=this.#q[w];if(this.#$(C)){let c=Q&&C.__staleWhileFetching!==void 0;return U&&(U.fetch="inflight",c&&(U.returnedStale=!0)),c?C.__staleWhileFetching:C.__returned=C}let i=this.#x(w);if(!H&&!i)return U&&(U.fetch="hit"),this.#M(w),K&&this.#S(w),U&&this.#k(U,w),C;let g=this.#h(Z,w,f,x),Yq=g.__staleWhileFetching!==void 0&&Q;return U&&(U.fetch=i?"stale":"refresh",Yq&&i&&(U.returnedStale=!0)),Yq?g.__staleWhileFetching:g.__returned=g}}forceFetch(Z,$={}){let Q=A.tracing.hasSubscribers,{status:K=dq()?{}:void 0}=$;$.status=K,K&&$.context&&(K.context=$.context);let Y=this.#o(Z,$);return K&&Q&&(K.trace=!0,A.tracing.tracePromise(()=>Y,K).catch(()=>{})),Y}async#o(Z,$={}){let Q=await this.#p(Z,$);if(Q===void 0)throw Error("fetch() returned undefined");return Q}memo(Z,$={}){let{status:Q=A.metrics.hasSubscribers?{}:void 0}=$;$.status=Q,Q&&(Q.op="memo",Q.key=Z,$.context&&(Q.context=$.context),Q.cache=this);let K=this.#t(Z,$);return Q&&(Q.value=K),A.metrics.hasSubscribers&&A.metrics.publish(Q),K}#t(Z,$={}){let Q=this.#v;if(!Q)throw Error("no memoMethod provided to constructor");let{context:K,status:Y,forceRefresh:W,...z}=$;Y&&W&&(Y.forceRefresh=!0);let _=this.#j(Z,z),I=W||_===void 0;if(Y&&(Y.memo=I?"miss":"hit",I||(Y.value=_)),!I)return _;let J=Q(Z,_,{options:z,context:K});return Y&&(Y.value=J),this.#R(Z,J,z),J}get(Z,$={}){let{status:Q=A.metrics.hasSubscribers?{}:void 0}=$;$.status=Q,Q&&(Q.op="get",Q.key=Z,Q.cache=this);let K=this.#j(Z,$);return Q&&(K!==void 0&&(Q.value=K),A.metrics.hasSubscribers&&A.metrics.publish(Q)),K}#j(Z,$={}){let{allowStale:Q=this.allowStale,updateAgeOnGet:K=this.updateAgeOnGet,noDeleteOnStaleGet:Y=this.noDeleteOnStaleGet,status:W}=$,z=this.#Y.get(Z);if(z===void 0){W&&(W.get="miss");return}let _=this.#q[z],I=this.#$(_);return W&&this.#k(W,z),this.#x(z)?I?(W&&(W.get="stale-fetching"),Q&&_.__staleWhileFetching!==void 0?(W&&(W.returnedStale=!0),_.__staleWhileFetching):void 0):(Y||this.#H(Z,"expire"),W&&(W.get="stale"),Q?(W&&(W.returnedStale=!0),_):void 0):(W&&(W.get=I?"fetching":"hit"),this.#M(z),K&&this.#S(z),I?_.__staleWhileFetching:_)}#n(Z,$){this.#X[$]=Z,this.#J[Z]=$}#M(Z){Z!==this.#z&&(Z===this.#B?this.#B=this.#J[Z]:this.#n(this.#X[Z],this.#J[Z]),this.#n(this.#z,Z),this.#z=Z)}delete(Z){return this.#H(Z,"delete")}#H(Z,$){A.metrics.hasSubscribers&&A.metrics.publish({op:"delete",delete:$,key:Z,cache:this});let Q=!1;if(this.#W!==0){let K=this.#Y.get(Z);if(K!==void 0)if(this.#F?.[K]&&(clearTimeout(this.#F?.[K]),this.#F[K]=void 0),Q=!0,this.#W===1)this.#a($);else{this.#T(K);let Y=this.#q[K];if(this.#$(Y)?Y.__abortController.abort(Error("deleted")):(this.#A||this.#V)&&(this.#A&&this.#Z?.(Y,Z,$),this.#V&&this.#_?.push([Y,Z,$])),this.#Y.delete(Z),this.#Q[K]=void 0,this.#q[K]=void 0,K===this.#z)this.#z=this.#X[K];else if(K===this.#B)this.#B=this.#J[K];else{let W=this.#X[K];this.#J[W]=this.#J[K];let z=this.#J[K];this.#X[z]=this.#X[K]}this.#W--,this.#L.push(K)}}if(this.#V&&this.#_?.length){let K=this.#_,Y;for(;Y=K?.shift();)this.#D?.(...Y)}return Q}clear(){return this.#a("delete")}#a(Z){for(let $ of this.#E({allowStale:!0})){let Q=this.#q[$];if(this.#$(Q))Q.__abortController.abort(Error("deleted"));else{let K=this.#Q[$];this.#A&&this.#Z?.(Q,K,Z),this.#V&&this.#_?.push([Q,K,Z])}}if(this.#Y.clear(),this.#q.fill(void 0),this.#Q.fill(void 0),this.#O&&this.#P){this.#O.fill(0),this.#P.fill(0);for(let $ of this.#F??[])$!==void 0&&clearTimeout($);this.#F?.fill(void 0)}if(this.#G&&this.#G.fill(0),this.#B=0,this.#z=0,this.#L.length=0,this.#N=0,this.#W=0,this.#V&&this.#_){let $=this.#_,Q;for(;Q=$?.shift();)this.#D?.(...Q)}}};m1.LRUCache=P5});var s1=O((e6,i1)=>{var L=(...q)=>q.every((Z)=>Z)?q.join(""):"",E=(q)=>q?encodeURIComponent(q):"",a1=(q)=>q.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),A5={sshtemplate:({domain:q,user:Z,project:$,committish:Q})=>`git@${q}:${Z}/${$}.git${L("#",Q)}`,sshurltemplate:({domain:q,user:Z,project:$,committish:Q})=>`git+ssh://git@${q}/${Z}/${$}.git${L("#",Q)}`,edittemplate:({domain:q,user:Z,project:$,committish:Q,editpath:K,path:Y})=>`https://${q}/${Z}/${$}${L("/",K,"/",E(Q||"HEAD"),"/",Y)}`,browsetemplate:({domain:q,user:Z,project:$,committish:Q,treepath:K})=>`https://${q}/${Z}/${$}${L("/",K,"/",E(Q))}`,browsetreetemplate:({domain:q,user:Z,project:$,committish:Q,treepath:K,path:Y,fragment:W,hashformat:z})=>`https://${q}/${Z}/${$}/${K}/${E(Q||"HEAD")}/${Y}${L("#",z(W||""))}`,browseblobtemplate:({domain:q,user:Z,project:$,committish:Q,blobpath:K,path:Y,fragment:W,hashformat:z})=>`https://${q}/${Z}/${$}/${K}/${E(Q||"HEAD")}/${Y}${L("#",z(W||""))}`,docstemplate:({domain:q,user:Z,project:$,treepath:Q,committish:K})=>`https://${q}/${Z}/${$}${L("/",Q,"/",E(K))}#readme`,httpstemplate:({auth:q,domain:Z,user:$,project:Q,committish:K})=>`git+https://${L(q,"@")}${Z}/${$}/${Q}.git${L("#",K)}`,filetemplate:({domain:q,user:Z,project:$,committish:Q,path:K})=>`https://${q}/${Z}/${$}/raw/${E(Q||"HEAD")}/${K}`,shortcuttemplate:({type:q,user:Z,project:$,committish:Q})=>`${q}:${Z}/${$}${L("#",Q)}`,pathtemplate:({user:q,project:Z,committish:$})=>`${q}/${Z}${L("#",$)}`,bugstemplate:({domain:q,user:Z,project:$})=>`https://${q}/${Z}/${$}/issues`,hashformat:a1},l={};l.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:q,user:Z,project:$,committish:Q,path:K})=>`https://${L(q,"@")}raw.githubusercontent.com/${Z}/${$}/${E(Q||"HEAD")}/${K}`,gittemplate:({auth:q,domain:Z,user:$,project:Q,committish:K})=>`git://${L(q,"@")}${Z}/${$}/${Q}.git${L("#",K)}`,tarballtemplate:({domain:q,user:Z,project:$,committish:Q})=>`https://codeload.${q}/${Z}/${$}/tar.gz/${E(Q||"HEAD")}`,extract:(q)=>{let[,Z,$,Q,K]=q.pathname.split("/",5);if(Q&&Q!=="tree")return;if(!Q)K=q.hash.slice(1);if($&&$.endsWith(".git"))$=$.slice(0,-4);if(!Z||!$)return;return{user:Z,project:$,committish:K}}};l.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:q,user:Z,project:$,committish:Q,treepath:K,path:Y,editpath:W})=>`https://${q}/${Z}/${$}${L("/",K,"/",E(Q||"HEAD"),"/",Y,W)}`,tarballtemplate:({domain:q,user:Z,project:$,committish:Q})=>`https://${q}/${Z}/${$}/get/${E(Q||"HEAD")}.tar.gz`,extract:(q)=>{let[,Z,$,Q]=q.pathname.split("/",4);if(["get"].includes(Q))return;if($&&$.endsWith(".git"))$=$.slice(0,-4);if(!Z||!$)return;return{user:Z,project:$,committish:q.hash.slice(1)}}};l.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",tarballtemplate:({domain:q,user:Z,project:$,committish:Q})=>`https://${q}/api/v4/projects/${E(Z+"/"+$)}/repository/archive.tar.gz?sha=${E(Q||"HEAD")}`,extract:(q)=>{let Z=q.pathname.slice(1);if(Z.includes("/-/")||Z.includes("/archive.tar.gz"))return;let $=Z.split("/"),Q=$.pop();if(Q.endsWith(".git"))Q=Q.slice(0,-4);let K=$.join("/");if(!K||!Q)return;return{user:K,project:Q,committish:q.hash.slice(1)}}};l.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:q,project:Z,committish:$})=>`git@${q}:${Z}.git${L("#",$)}`,sshurltemplate:({domain:q,project:Z,committish:$})=>`git+ssh://git@${q}/${Z}.git${L("#",$)}`,edittemplate:({domain:q,user:Z,project:$,committish:Q,editpath:K})=>`https://${q}/${Z}/${$}${L("/",E(Q))}/${K}`,browsetemplate:({domain:q,project:Z,committish:$})=>`https://${q}/${Z}${L("/",E($))}`,browsetreetemplate:({domain:q,project:Z,committish:$,path:Q,hashformat:K})=>`https://${q}/${Z}${L("/",E($))}${L("#",K(Q))}`,browseblobtemplate:({domain:q,project:Z,committish:$,path:Q,hashformat:K})=>`https://${q}/${Z}${L("/",E($))}${L("#",K(Q))}`,docstemplate:({domain:q,project:Z,committish:$})=>`https://${q}/${Z}${L("/",E($))}`,httpstemplate:({domain:q,project:Z,committish:$})=>`git+https://${q}/${Z}.git${L("#",$)}`,filetemplate:({user:q,project:Z,committish:$,path:Q})=>`https://gist.githubusercontent.com/${q}/${Z}/raw${L("/",E($))}/${Q}`,shortcuttemplate:({type:q,project:Z,committish:$})=>`${q}:${Z}${L("#",$)}`,pathtemplate:({project:q,committish:Z})=>`${q}${L("#",Z)}`,bugstemplate:({domain:q,project:Z})=>`https://${q}/${Z}`,gittemplate:({domain:q,project:Z,committish:$})=>`git://${q}/${Z}.git${L("#",$)}`,tarballtemplate:({project:q,committish:Z})=>`https://codeload.github.com/gist/${q}/tar.gz/${E(Z||"HEAD")}`,extract:(q)=>{let[,Z,$,Q]=q.pathname.split("/",4);if(Q==="raw")return;if(!$){if(!Z)return;$=Z,Z=null}if($.endsWith(".git"))$=$.slice(0,-4);return{user:Z,project:$,committish:q.hash.slice(1)}},hashformat:function(q){return q&&"file-"+a1(q)}};l.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:q,user:Z,project:$,committish:Q,path:K})=>`https://${q}/${Z}/${$}/blob/${E(Q)||"HEAD"}/${K}`,httpstemplate:({domain:q,user:Z,project:$,committish:Q})=>`https://${q}/${Z}/${$}${L("#",Q)}`,tarballtemplate:({domain:q,user:Z,project:$,committish:Q})=>`https://${q}/${Z}/${$}/archive/${E(Q)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:(q)=>{let[,Z,$,Q]=q.pathname.split("/",4);if(["archive"].includes(Q))return;if($&&$.endsWith(".git"))$=$.slice(0,-4);if(!Z||!$)return;return{user:Z,project:$,committish:q.hash.slice(1)}}};for(let[q,Z]of Object.entries(l))l[q]=Object.assign({},A5,Z);i1.exports=l});var lq=O((q7,o1)=>{var C5=n("url"),hq=(q,Z,$)=>{let Q=q.indexOf($);return q.lastIndexOf(Z,Q>-1?Q:1/0)},r1=(q)=>{try{return new C5.URL(q)}catch{}},E5=(q,Z)=>{let $=q.indexOf(":"),Q=q.slice(0,$+1);if(Object.prototype.hasOwnProperty.call(Z,Q))return q;if(q.substr($,3)==="://")return q;let K=q.indexOf("@");if(K>-1)if(K>$)return`git+ssh://${q}`;else return q;return`${q.slice(0,$+1)}//${q.slice($+1)}`},H5=(q)=>{let Z=hq(q,"@","#"),$=hq(q,":","#");if($>Z)q=q.slice(0,$)+"/"+q.slice($+1);if(hq(q,":","#")===-1&&q.indexOf("//")===-1)q=`git+ssh://${q}`;return q};o1.exports=(q,Z)=>{let $=Z?E5(q,Z):q;return r1($)||r1(H5($))}});var e1=O((Z7,t1)=>{var k5=lq(),R5=(q)=>{let Z=q.indexOf("#"),$=q.indexOf("/"),Q=q.indexOf("/",$+1),K=q.indexOf(":"),Y=/\s/.exec(q),W=q.indexOf("@"),z=!Y||Z>-1&&Y.index>Z,_=W===-1||Z>-1&&W>Z,I=K===-1||Z>-1&&K>Z,J=Q===-1||Z>-1&&Q>Z,F=$>0,N=Z>-1?q[Z-1]!=="/":!q.endsWith("/"),B=!q.startsWith(".");return z&&F&&N&&B&&_&&I&&J};t1.exports=(q,Z,{gitHosts:$,protocols:Q})=>{if(!q)return;let K=R5(q)?`github:${q}`:q,Y=k5(K,Q);if(!Y)return;let W=$.byShortcut[Y.protocol],z=$.byDomain[Y.hostname.startsWith("www.")?Y.hostname.slice(4):Y.hostname],_=W||z;if(!_)return;let I=$[W||z],J=null;if(Q[Y.protocol]?.auth&&(Y.username||Y.password))J=`${Y.username}${Y.password?":"+Y.password:""}`;let F=null,N=null,B=null,G=null;try{if(W){let x=Y.pathname.startsWith("/")?Y.pathname.slice(1):Y.pathname,H=x.indexOf("@");if(H>-1)x=x.slice(H+1);let U=x.lastIndexOf("/");if(U>-1){if(N=decodeURIComponent(x.slice(0,U)),!N)N=null;B=decodeURIComponent(x.slice(U+1))}else B=decodeURIComponent(x);if(B.endsWith(".git"))B=B.slice(0,-4);if(Y.hash)F=decodeURIComponent(Y.hash.slice(1));G="shortcut"}else{if(!I.protocols.includes(Y.protocol))return;let x=I.extract(Y);if(!x)return;N=x.user&&decodeURIComponent(x.user),B=decodeURIComponent(x.project),F=decodeURIComponent(x.committish),G=Q[Y.protocol]?.name||Y.protocol.slice(0,-1)}}catch(x){if(x instanceof URIError)return;else throw x}return[_,N,J,B,F,G,Z]}});var Z8=O(($7,q8)=>{var{LRUCache:y5}=n1(),w5=s1(),S5=e1(),T5=lq(),gq=new y5({max:1000});function j5(q){try{let{protocol:Z,hostname:$,pathname:Q}=new URL(q);if(!$)return null;let K=/(?:git\+)http:$/.test(Z)?"http:":"https:",Y=Q.replace(/\.git$/,"");return`${K}//${$}${Y}`}catch{return null}}class j{constructor(q,Z,$,Q,K,Y,W={}){Object.assign(this,j.#K[q],{type:q,user:Z,auth:$,project:Q,committish:K,default:Y,opts:W})}static#K={byShortcut:{},byDomain:{}};static#I={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(q,Z){j.#K[q]=Z,j.#K.byDomain[Z.domain]=q,j.#K.byShortcut[`${q}:`]=q,j.#I[`${q}:`]={name:q}}static fromUrl(q,Z){if(typeof q!=="string")return;let $=q+JSON.stringify(Z||{});if(!gq.has($)){let Q=S5(q,Z,{gitHosts:j.#K,protocols:j.#I});gq.set($,Q?new j(...Q):void 0)}return gq.get($)}static fromManifest(q,Z={}){if(!q||typeof q!=="object")return;let $=q.repository,Q=$&&(typeof $==="string"?$:typeof $==="object"&&typeof $.url==="string"?$.url:null);if(!Q)throw Error("no repository");let K=Q&&j.fromUrl(Q.replace(/^git\+/,""),Z)||null;if(K)return K;let Y=j5(Q);return j.fromUrl(Y,Z)||Y}static parseUrl(q){return T5(q)}#Z(q,Z){if(typeof q!=="function")return null;let $={...this,...this.opts,...Z};if(!$.path)$.path="";if($.path.startsWith("/"))$.path=$.path.slice(1);if($.noCommittish)$.committish=null;let Q=q($);return $.noGitPlus&&Q.startsWith("git+")?Q.slice(4):Q}hash(){return this.committish?`#${this.committish}`:""}ssh(q){return this.#Z(this.sshtemplate,q)}sshurl(q){return this.#Z(this.sshurltemplate,q)}browse(q,...Z){if(typeof q!=="string")return this.#Z(this.browsetemplate,q);if(typeof Z[0]!=="string")return this.#Z(this.browsetreetemplate,{...Z[0],path:q});return this.#Z(this.browsetreetemplate,{...Z[1],fragment:Z[0],path:q})}browseFile(q,...Z){if(typeof Z[0]!=="string")return this.#Z(this.browseblobtemplate,{...Z[0],path:q});return this.#Z(this.browseblobtemplate,{...Z[1],fragment:Z[0],path:q})}docs(q){return this.#Z(this.docstemplate,q)}bugs(q){return this.#Z(this.bugstemplate,q)}https(q){return this.#Z(this.httpstemplate,q)}git(q){return this.#Z(this.gittemplate,q)}shortcut(q){return this.#Z(this.shortcuttemplate,q)}path(q){return this.#Z(this.pathtemplate,q)}tarball(q){return this.#Z(this.tarballtemplate,{...q,noCommittish:!1})}file(q,Z){return this.#Z(this.filetemplate,{...Z,path:q})}edit(q,Z){return this.#Z(this.edittemplate,{...Z,path:q})}getDefaultRepresentation(){return this.default}toString(q){if(this.default&&typeof this[this.default]==="function")return this[this.default](q);return this.sshurl(q)}}for(let[q,Z]of Object.entries(w5))j.addHost(q,Z);q8.exports=j});var $8=O((Q7,M5)=>{M5.exports=["_http_agent","_http_client","_http_common","_http_incoming","_http_outgoing","_http_server","_stream_duplex","_stream_passthrough","_stream_readable","_stream_transform","_stream_wrap","_stream_writable","_tls_common","_tls_wrap","assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib","node:sea","node:sqlite","node:test","node:test/reporters"]});var K8=O((K7,Q8)=>{var b5=$8(),v5=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),u5=["node_modules","favicon.ico"];function f5(q){var Z=[],$=[];if(q===null)return $.push("name cannot be null"),Zq(Z,$);if(q===void 0)return $.push("name cannot be undefined"),Zq(Z,$);if(typeof q!=="string")return $.push("name must be a string"),Zq(Z,$);if(!q.length)$.push("name length must be greater than zero");if(q.startsWith("."))$.push("name cannot start with a period");if(q.startsWith("-"))$.push("name cannot start with a hyphen");if(q.match(/^_/))$.push("name cannot start with an underscore");if(q.trim()!==q)$.push("name cannot contain leading or trailing spaces");if(u5.forEach(function(W){if(q.toLowerCase()===W)$.push(W+" is not a valid package name")}),b5.includes(q.toLowerCase()))Z.push(q+" is a core module name");if(q.length>214)Z.push("name can no longer contain more than 214 characters");if(q.toLowerCase()!==q)Z.push("name can no longer contain capital letters");if(/[~'!()*]/.test(q.split("/").slice(-1)[0]))Z.push(`name can no longer contain special characters ("~'!()*")`);if(encodeURIComponent(q)!==q){var Q=q.match(v5);if(Q){var K=Q[1],Y=Q[2];if(Y.startsWith("."))$.push("name cannot start with a period");if(encodeURIComponent(K)===K&&encodeURIComponent(Y)===Y)return Zq(Z,$)}$.push("name can only contain URL-friendly characters")}return Zq(Z,$)}var Zq=function(q,Z){var $={validForNewPackages:Z.length===0&&q.length===0,validForOldPackages:Z.length===0,warnings:q,errors:Z};if(!$.warnings.length)delete $.warnings;if(!$.errors.length)delete $.errors;return $};Q8.exports=f5});var K6=O((Y7,Kq)=>{var Qq=process.platform==="win32",{URL:cq}=n("url"),a=Qq?n("path/win32"):n("path"),{homedir:d5}=n("os"),h5=Z8(),Y8=u1(),_8=K8(),{log:l5}=d1(),I8=Qq?/\\|[/]/:/[/]/,B8=/^(?:git[+])?[a-z]+:/i,g5=/^[^@]+@[^:.]+\.[^:]+:.+$/i,pq=/[.](?:tgz|tar\.gz|tar)$/i,c5=/:[0-9]+(\/|$)/i,m5=/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/,p5=/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;function $q(q,Z){let $,Q;if(typeof q==="object")if(q instanceof Lq&&(!Z||Z===q.where))return q;else if(q.name&&q.rawSpec)return $q.resolve(q.name,q.rawSpec,Z||q.where);else return $q(q.raw,Z||q.where);let K=q.indexOf("@",1),Y=K>0?q.slice(0,K):q;if(B8.test(q))Q=q;else if(g5.test(q))Q=`git+ssh://${q}`;else if(!Y.startsWith("@")&&(I8.test(Y)||pq.test(Y)))Q=q;else if(K>0)$=Y,Q=q.slice(K+1)||"*";else if(_8(q).validForOldPackages)$=q,Q="*";else Q=q;return J8($,Q,Z,q)}function n5(q){if(!q)return!1;if(q.toLowerCase().startsWith("file:"))return!0;if(Qq)return m5.test(q);return p5.test(q)}function a5(q){if(!q)return!1;return q.toLowerCase().startsWith("npm:")}function J8(q,Z,$,Q){let K=new Lq({raw:Q,name:q,rawSpec:Z,fromArgument:Q!=null});if(q)K.name=q;if(!$)$=process.cwd();if(n5(Z))return z8(K,$);else if(a5(Z))return $6(K,$);let Y=h5.fromUrl(Z,{noGitPlus:!0,noCommittish:!0});if(Y)return e5(K,Y);else if(Z&&B8.test(Z))return Z6(K);else if(Z&&(I8.test(Z)||pq.test(Z)))return z8(K,$);else return Q6(K)}function i5(q,Z="https://registry.npmjs.org"){let $=$q(q);if($.type!=="version")throw o5($.type,$.raw);let Q="pkg:npm/"+$.name.replace(/^@/,"%40")+"@"+$.rawSpec;if(Z!=="https://registry.npmjs.org")Q+="?repository_url="+Z;return Q}function s5(q,Z,$){let Q=Error(`Invalid package name "${q}" of package "${$}": ${Z.errors.join("; ")}.`);return Q.code="EINVALIDPACKAGENAME",Q}function r5(q,Z){let $=Error(`Invalid tag name "${q}" of package "${Z}": Tags may not have any characters that encodeURIComponent encodes.`);return $.code="EINVALIDTAGNAME",$}function o5(q,Z){let $=Error(`Invalid type "${q}" of package "${Z}": Purl can only be generated for "version" types.`);return $.code="EINVALIDPURLTYPE",$}class Lq{constructor(q){if(this.type=q.type,this.registry=q.registry,this.where=q.where,q.raw==null)this.raw=q.name?`${q.name}@${q.rawSpec}`:q.rawSpec;else this.raw=q.raw;if(this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=q.rawSpec||"",this.saveSpec=q.saveSpec,this.fetchSpec=q.fetchSpec,q.name)this.setName(q.name);this.gitRange=q.gitRange,this.gitCommittish=q.gitCommittish,this.gitSubdir=q.gitSubdir,this.hosted=q.hosted}setName(q){let Z=_8(q);if(!Z.validForOldPackages)throw s5(q,Z,this.raw);return this.name=q,this.scope=q[0]==="@"?q.slice(0,q.indexOf("/")):void 0,this.escapedName=q.replace("/","%2f"),this}toString(){let q=[];if(this.name!=null&&this.name!=="")q.push(this.name);let Z=this.saveSpec||this.fetchSpec||this.rawSpec;if(Z!=null&&Z!=="")q.push(Z);return q.length?q.join("@"):this.raw}toJSON(){let q=Object.assign({},this);return delete q.hosted,q}}function mq(q,Z){if(!Z){q.gitCommittish=null;return}for(let $ of Z.split("::")){if(!$.includes(":")){if(q.gitRange)throw Error("cannot override existing semver range with a committish");if(q.gitCommittish)throw Error("cannot override existing committish with a second committish");q.gitCommittish=$;continue}let[Q,K]=$.split(":");if(Q==="semver"){if(q.gitCommittish)throw Error("cannot override existing committish with a semver range");if(q.gitRange)throw Error("cannot override existing semver range with a second semver range");q.gitRange=decodeURIComponent(K);continue}if(Q==="path"){if(q.gitSubdir)throw Error("cannot override existing path with a second path");q.gitSubdir=`/${K}`;continue}l5.warn("npm-package-arg",`ignoring unknown key "${Q}"`)}}var t5=new Map([["\x00","%00"],["\t","%09"],[`
2
+ import{RQ as O,UQ as n}from"./chunk-9svh74gt.js";var m=O((Y6,nq)=>{var V8=Number.MAX_SAFE_INTEGER||9007199254740991,X8=["major","premajor","minor","preminor","patch","prepatch","prerelease"];nq.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:V8,RELEASE_TYPES:X8,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var s=O((W6,aq)=>{var O8=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...q)=>console.error("SEMVER",...q):()=>{};aq.exports=O8});var p=O((u,iq)=>{var{MAX_SAFE_COMPONENT_LENGTH:Aq,MAX_SAFE_BUILD_LENGTH:F8,MAX_LENGTH:x8}=m(),D8=s();u=iq.exports={};var U8=u.re=[],N8=u.safeRe=[],V=u.src=[],L8=u.safeSrc=[],X=u.t={},G8=0,Cq="[a-zA-Z0-9-]",P8=[["\\s",1],["\\d",x8],[Cq,F8]],A8=(q)=>{for(let[Z,$]of P8)q=q.split(`${Z}*`).join(`${Z}{0,${$}}`).split(`${Z}+`).join(`${Z}{1,${$}}`);return q},D=(q,Z,$)=>{let Q=A8(Z),K=G8++;D8(q,K,Z),X[q]=K,V[K]=Z,L8[K]=Q,U8[K]=new RegExp(Z,$?"g":void 0),N8[K]=new RegExp(Q,$?"g":void 0)};D("NUMERICIDENTIFIER","0|[1-9]\\d*");D("NUMERICIDENTIFIERLOOSE","\\d+");D("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Cq}*`);D("MAINVERSION",`(${V[X.NUMERICIDENTIFIER]})\\.(${V[X.NUMERICIDENTIFIER]})\\.(${V[X.NUMERICIDENTIFIER]})`);D("MAINVERSIONLOOSE",`(${V[X.NUMERICIDENTIFIERLOOSE]})\\.(${V[X.NUMERICIDENTIFIERLOOSE]})\\.(${V[X.NUMERICIDENTIFIERLOOSE]})`);D("PRERELEASEIDENTIFIER",`(?:${V[X.NONNUMERICIDENTIFIER]}|${V[X.NUMERICIDENTIFIER]})`);D("PRERELEASEIDENTIFIERLOOSE",`(?:${V[X.NONNUMERICIDENTIFIER]}|${V[X.NUMERICIDENTIFIERLOOSE]})`);D("PRERELEASE",`(?:-(${V[X.PRERELEASEIDENTIFIER]}(?:\\.${V[X.PRERELEASEIDENTIFIER]})*))`);D("PRERELEASELOOSE",`(?:-?(${V[X.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${V[X.PRERELEASEIDENTIFIERLOOSE]})*))`);D("BUILDIDENTIFIER",`${Cq}+`);D("BUILD",`(?:\\+(${V[X.BUILDIDENTIFIER]}(?:\\.${V[X.BUILDIDENTIFIER]})*))`);D("FULLPLAIN",`v?${V[X.MAINVERSION]}${V[X.PRERELEASE]}?${V[X.BUILD]}?`);D("FULL",`^${V[X.FULLPLAIN]}$`);D("LOOSEPLAIN",`[v=\\s]*${V[X.MAINVERSIONLOOSE]}${V[X.PRERELEASELOOSE]}?${V[X.BUILD]}?`);D("LOOSE",`^${V[X.LOOSEPLAIN]}$`);D("GTLT","((?:<|>)?=?)");D("XRANGEIDENTIFIERLOOSE",`${V[X.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);D("XRANGEIDENTIFIER",`${V[X.NUMERICIDENTIFIER]}|x|X|\\*`);D("XRANGEPLAIN",`[v=\\s]*(${V[X.XRANGEIDENTIFIER]})(?:\\.(${V[X.XRANGEIDENTIFIER]})(?:\\.(${V[X.XRANGEIDENTIFIER]})(?:${V[X.PRERELEASE]})?${V[X.BUILD]}?)?)?`);D("XRANGEPLAINLOOSE",`[v=\\s]*(${V[X.XRANGEIDENTIFIERLOOSE]})(?:\\.(${V[X.XRANGEIDENTIFIERLOOSE]})(?:\\.(${V[X.XRANGEIDENTIFIERLOOSE]})(?:${V[X.PRERELEASELOOSE]})?${V[X.BUILD]}?)?)?`);D("XRANGE",`^${V[X.GTLT]}\\s*${V[X.XRANGEPLAIN]}$`);D("XRANGELOOSE",`^${V[X.GTLT]}\\s*${V[X.XRANGEPLAINLOOSE]}$`);D("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Aq}})(?:\\.(\\d{1,${Aq}}))?(?:\\.(\\d{1,${Aq}}))?`);D("COERCE",`${V[X.COERCEPLAIN]}(?:$|[^\\d])`);D("COERCEFULL",V[X.COERCEPLAIN]+`(?:${V[X.PRERELEASE]})?(?:${V[X.BUILD]})?(?:$|[^\\d])`);D("COERCERTL",V[X.COERCE],!0);D("COERCERTLFULL",V[X.COERCEFULL],!0);D("LONETILDE","(?:~>?)");D("TILDETRIM",`(\\s*)${V[X.LONETILDE]}\\s+`,!0);u.tildeTrimReplace="$1~";D("TILDE",`^${V[X.LONETILDE]}${V[X.XRANGEPLAIN]}$`);D("TILDELOOSE",`^${V[X.LONETILDE]}${V[X.XRANGEPLAINLOOSE]}$`);D("LONECARET","(?:\\^)");D("CARETTRIM",`(\\s*)${V[X.LONECARET]}\\s+`,!0);u.caretTrimReplace="$1^";D("CARET",`^${V[X.LONECARET]}${V[X.XRANGEPLAIN]}$`);D("CARETLOOSE",`^${V[X.LONECARET]}${V[X.XRANGEPLAINLOOSE]}$`);D("COMPARATORLOOSE",`^${V[X.GTLT]}\\s*(${V[X.LOOSEPLAIN]})$|^$`);D("COMPARATOR",`^${V[X.GTLT]}\\s*(${V[X.FULLPLAIN]})$|^$`);D("COMPARATORTRIM",`(\\s*)${V[X.GTLT]}\\s*(${V[X.LOOSEPLAIN]}|${V[X.XRANGEPLAIN]})`,!0);u.comparatorTrimReplace="$1$2$3";D("HYPHENRANGE",`^\\s*(${V[X.XRANGEPLAIN]})\\s+-\\s+(${V[X.XRANGEPLAIN]})\\s*$`);D("HYPHENRANGELOOSE",`^\\s*(${V[X.XRANGEPLAINLOOSE]})\\s+-\\s+(${V[X.XRANGEPLAINLOOSE]})\\s*$`);D("STAR","(<|>)?=?\\s*\\*");D("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");D("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Wq=O((z6,sq)=>{var C8=Object.freeze({loose:!0}),E8=Object.freeze({}),H8=(q)=>{if(!q)return E8;if(typeof q!=="object")return C8;return q};sq.exports=H8});var Eq=O((_6,tq)=>{var rq=/^[0-9]+$/,oq=(q,Z)=>{if(typeof q==="number"&&typeof Z==="number")return q===Z?0:q<Z?-1:1;let $=rq.test(q),Q=rq.test(Z);if($&&Q)q=+q,Z=+Z;return q===Z?0:$&&!Q?-1:Q&&!$?1:q<Z?-1:1},k8=(q,Z)=>oq(Z,q);tq.exports={compareIdentifiers:oq,rcompareIdentifiers:k8}});var R=O((I6,q0)=>{var zq=s(),{MAX_LENGTH:eq,MAX_SAFE_INTEGER:_q}=m(),{safeRe:Iq,t:Bq}=p(),R8=Wq(),{compareIdentifiers:Hq}=Eq(),y8=(q,Z)=>{let $=Z.split(".");if($.length>q.length)return!1;for(let Q=0;Q<$.length;Q++)if(Hq(q[Q],$[Q])!==0)return!1;return!0};class v{constructor(q,Z){if(Z=R8(Z),q instanceof v)if(q.loose===!!Z.loose&&q.includePrerelease===!!Z.includePrerelease)return q;else q=q.version;else if(typeof q!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof q}".`);if(q.length>eq)throw TypeError(`version is longer than ${eq} characters`);zq("SemVer",q,Z),this.options=Z,this.loose=!!Z.loose,this.includePrerelease=!!Z.includePrerelease;let $=q.trim().match(Z.loose?Iq[Bq.LOOSE]:Iq[Bq.FULL]);if(!$)throw TypeError(`Invalid Version: ${q}`);if(this.raw=q,this.major=+$[1],this.minor=+$[2],this.patch=+$[3],this.major>_q||this.major<0)throw TypeError("Invalid major version");if(this.minor>_q||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>_q||this.patch<0)throw TypeError("Invalid patch version");if(!$[4])this.prerelease=[];else this.prerelease=$[4].split(".").map((Q)=>{if(/^[0-9]+$/.test(Q)){let K=+Q;if(K>=0&&K<_q)return K}return Q});this.build=$[5]?$[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare(q){if(zq("SemVer.compare",this.version,this.options,q),!(q instanceof v)){if(typeof q==="string"&&q===this.version)return 0;q=new v(q,this.options)}if(q.version===this.version)return 0;return this.compareMain(q)||this.comparePre(q)}compareMain(q){if(!(q instanceof v))q=new v(q,this.options);if(this.major<q.major)return-1;if(this.major>q.major)return 1;if(this.minor<q.minor)return-1;if(this.minor>q.minor)return 1;if(this.patch<q.patch)return-1;if(this.patch>q.patch)return 1;return 0}comparePre(q){if(!(q instanceof v))q=new v(q,this.options);if(this.prerelease.length&&!q.prerelease.length)return-1;else if(!this.prerelease.length&&q.prerelease.length)return 1;else if(!this.prerelease.length&&!q.prerelease.length)return 0;let Z=0;do{let $=this.prerelease[Z],Q=q.prerelease[Z];if(zq("prerelease compare",Z,$,Q),$===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if($===void 0)return-1;else if($===Q)continue;else return Hq($,Q)}while(++Z)}compareBuild(q){if(!(q instanceof v))q=new v(q,this.options);let Z=0;do{let $=this.build[Z],Q=q.build[Z];if(zq("build compare",Z,$,Q),$===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if($===void 0)return-1;else if($===Q)continue;else return Hq($,Q)}while(++Z)}inc(q,Z,$){if(q.startsWith("pre")){if(!Z&&$===!1)throw Error("invalid increment argument: identifier is empty");if(Z){let Q=`-${Z}`.match(this.options.loose?Iq[Bq.PRERELEASELOOSE]:Iq[Bq.PRERELEASE]);if(!Q||Q[1]!==Z)throw Error(`invalid identifier: ${Z}`)}}switch(q){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",Z,$);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",Z,$);break;case"prepatch":this.prerelease.length=0,this.inc("patch",Z,$),this.inc("pre",Z,$);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",Z,$);this.inc("pre",Z,$);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let Q=Number($)?1:0;if(this.prerelease.length===0)this.prerelease=[Q];else{let K=this.prerelease.length;while(--K>=0)if(typeof this.prerelease[K]==="number")this.prerelease[K]++,K=-2;if(K===-1){if(Z===this.prerelease.join(".")&&$===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(Q)}}if(Z){let K=[Z,Q];if($===!1)K=[Z];if(y8(this.prerelease,Z)){let Y=this.prerelease[Z.split(".").length];if(isNaN(Y))this.prerelease=K}else this.prerelease=K}break}default:throw Error(`invalid increment argument: ${q}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}q0.exports=v});var d=O((B6,$0)=>{var Z0=R(),w8=(q,Z,$=!1)=>{if(q instanceof Z0)return q;try{return new Z0(q,Z)}catch(Q){if(!$)return null;throw Q}};$0.exports=w8});var K0=O((J6,Q0)=>{var S8=d(),T8=(q,Z)=>{let $=S8(q,Z);return $?$.version:null};Q0.exports=T8});var W0=O((V6,Y0)=>{var j8=d(),M8=(q,Z)=>{let $=j8(q.trim().replace(/^[=v]+/,""),Z);return $?$.version:null};Y0.exports=M8});var I0=O((X6,_0)=>{var z0=R(),b8=(q,Z,$,Q,K)=>{if(typeof $==="string")K=Q,Q=$,$=void 0;try{return new z0(q instanceof z0?q.version:q,$).inc(Z,Q,K).version}catch(Y){return null}};_0.exports=b8});var V0=O((O6,J0)=>{var B0=d(),v8=(q,Z)=>{let $=B0(q,null,!0),Q=B0(Z,null,!0),K=$.compare(Q);if(K===0)return null;let Y=K>0,W=Y?$:Q,z=Y?Q:$,_=!!W.prerelease.length;if(!!z.prerelease.length&&!_){if(!z.patch&&!z.minor)return"major";if(z.compareMain(W)===0){if(z.minor&&!z.patch)return"minor";return"patch"}}let J=_?"pre":"";if($.major!==Q.major)return J+"major";if($.minor!==Q.minor)return J+"minor";if($.patch!==Q.patch)return J+"patch";return"prerelease"};J0.exports=v8});var O0=O((F6,X0)=>{var u8=R(),f8=(q,Z)=>new u8(q,Z).major;X0.exports=f8});var x0=O((x6,F0)=>{var d8=R(),h8=(q,Z)=>new d8(q,Z).minor;F0.exports=h8});var U0=O((D6,D0)=>{var l8=R(),g8=(q,Z)=>new l8(q,Z).patch;D0.exports=g8});var L0=O((U6,N0)=>{var c8=d(),m8=(q,Z)=>{let $=c8(q,Z);return $&&$.prerelease.length?$.prerelease:null};N0.exports=m8});var M=O((N6,P0)=>{var G0=R(),p8=(q,Z,$)=>new G0(q,$).compare(new G0(Z,$));P0.exports=p8});var C0=O((L6,A0)=>{var n8=M(),a8=(q,Z,$)=>n8(Z,q,$);A0.exports=a8});var H0=O((G6,E0)=>{var i8=M(),s8=(q,Z)=>i8(q,Z,!0);E0.exports=s8});var Jq=O((P6,R0)=>{var k0=R(),r8=(q,Z,$)=>{let Q=new k0(q,$),K=new k0(Z,$);return Q.compare(K)||Q.compareBuild(K)};R0.exports=r8});var w0=O((A6,y0)=>{var o8=Jq(),t8=(q,Z)=>q.sort(($,Q)=>o8($,Q,Z));y0.exports=t8});var T0=O((C6,S0)=>{var e8=Jq(),q9=(q,Z)=>q.sort(($,Q)=>e8(Q,$,Z));S0.exports=q9});var r=O((E6,j0)=>{var Z9=M(),$9=(q,Z,$)=>Z9(q,Z,$)>0;j0.exports=$9});var Vq=O((H6,M0)=>{var Q9=M(),K9=(q,Z,$)=>Q9(q,Z,$)<0;M0.exports=K9});var kq=O((k6,b0)=>{var Y9=M(),W9=(q,Z,$)=>Y9(q,Z,$)===0;b0.exports=W9});var Rq=O((R6,v0)=>{var z9=M(),_9=(q,Z,$)=>z9(q,Z,$)!==0;v0.exports=_9});var Xq=O((y6,u0)=>{var I9=M(),B9=(q,Z,$)=>I9(q,Z,$)>=0;u0.exports=B9});var Oq=O((w6,f0)=>{var J9=M(),V9=(q,Z,$)=>J9(q,Z,$)<=0;f0.exports=V9});var yq=O((S6,d0)=>{var X9=kq(),O9=Rq(),F9=r(),x9=Xq(),D9=Vq(),U9=Oq(),N9=(q,Z,$,Q)=>{switch(Z){case"===":if(typeof q==="object")q=q.version;if(typeof $==="object")$=$.version;return q===$;case"!==":if(typeof q==="object")q=q.version;if(typeof $==="object")$=$.version;return q!==$;case"":case"=":case"==":return X9(q,$,Q);case"!=":return O9(q,$,Q);case">":return F9(q,$,Q);case">=":return x9(q,$,Q);case"<":return D9(q,$,Q);case"<=":return U9(q,$,Q);default:throw TypeError(`Invalid operator: ${Z}`)}};d0.exports=N9});var l0=O((T6,h0)=>{var L9=R(),G9=d(),{safeRe:Fq,t:xq}=p(),P9=(q,Z)=>{if(q instanceof L9)return q;if(typeof q==="number")q=String(q);if(typeof q!=="string")return null;Z=Z||{};let $=null;if(!Z.rtl)$=q.match(Z.includePrerelease?Fq[xq.COERCEFULL]:Fq[xq.COERCE]);else{let _=Z.includePrerelease?Fq[xq.COERCERTLFULL]:Fq[xq.COERCERTL],I;while((I=_.exec(q))&&(!$||$.index+$[0].length!==q.length)){if(!$||I.index+I[0].length!==$.index+$[0].length)$=I;_.lastIndex=I.index+I[1].length+I[2].length}_.lastIndex=-1}if($===null)return null;let Q=$[2],K=$[3]||"0",Y=$[4]||"0",W=Z.includePrerelease&&$[5]?`-${$[5]}`:"",z=Z.includePrerelease&&$[6]?`+${$[6]}`:"";return G9(`${Q}.${K}.${Y}${W}${z}`,Z)};h0.exports=P9});var c0=O((j6,g0)=>{var A9=d(),C9=m(),E9=R(),H9=(q,Z,$)=>{if(!C9.RELEASE_TYPES.includes(Z))return null;let Q=k9(q,$);return Q&&R9(Q,Z)},k9=(q,Z)=>{let $=q instanceof E9?q.version:q;return A9($,Z)},R9=(q,Z)=>{if(y9(Z))return q.version;switch(q.prerelease=[],Z){case"major":q.minor=0,q.patch=0;break;case"minor":q.patch=0;break}return q.format()},y9=(q)=>{return q.startsWith("pre")};g0.exports=H9});var n0=O((M6,p0)=>{class m0{constructor(){this.max=1000,this.map=new Map}get(q){let Z=this.map.get(q);if(Z===void 0)return;else return this.map.delete(q),this.map.set(q,Z),Z}delete(q){return this.map.delete(q)}set(q,Z){if(!this.delete(q)&&Z!==void 0){if(this.map.size>=this.max){let Q=this.map.keys().next().value;this.delete(Q)}this.map.set(q,Z)}return this}}p0.exports=m0});var b=O((b6,r0)=>{var w9=/\s+/g;class o{constructor(q,Z){if(Z=T9(Z),q instanceof o)if(q.loose===!!Z.loose&&q.includePrerelease===!!Z.includePrerelease)return q;else return new o(q.raw,Z);if(q instanceof wq)return this.raw=q.value,this.set=[[q]],this.formatted=void 0,this;if(this.options=Z,this.loose=!!Z.loose,this.includePrerelease=!!Z.includePrerelease,this.raw=q.trim().replace(w9," "),this.set=this.raw.split("||").map(($)=>this.parseRange($.trim())).filter(($)=>$.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let $=this.set[0];if(this.set=this.set.filter((Q)=>!i0(Q[0])),this.set.length===0)this.set=[$];else if(this.set.length>1){for(let Q of this.set)if(Q.length===1&&l9(Q[0])){this.set=[Q];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let q=0;q<this.set.length;q++){if(q>0)this.formatted+="||";let Z=this.set[q];for(let $=0;$<Z.length;$++){if($>0)this.formatted+=" ";this.formatted+=Z[$].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(q){q=q.replace(h9,"");let $=((this.options.includePrerelease&&f9)|(this.options.loose&&d9))+":"+q,Q=a0.get($);if(Q)return Q;let K=this.options.loose,Y=K?S[y.HYPHENRANGELOOSE]:S[y.HYPHENRANGE];q=q.replace(Y,o9(this.options.includePrerelease)),P("hyphen replace",q),q=q.replace(S[y.COMPARATORTRIM],b9),P("comparator trim",q),q=q.replace(S[y.TILDETRIM],v9),P("tilde trim",q),q=q.replace(S[y.CARETTRIM],u9),P("caret trim",q);let W=q.split(" ").map((J)=>g9(J,this.options)).join(" ").split(/\s+/).map((J)=>r9(J,this.options));if(K)W=W.filter((J)=>{return P("loose invalid filter",J,this.options),!!J.match(S[y.COMPARATORLOOSE])});P("range list",W);let z=new Map,_=W.map((J)=>new wq(J,this.options));for(let J of _){if(i0(J))return[J];z.set(J.value,J)}if(z.size>1&&z.has(""))z.delete("");let I=[...z.values()];return a0.set($,I),I}intersects(q,Z){if(!(q instanceof o))throw TypeError("a Range is required");return this.set.some(($)=>{return s0($,Z)&&q.set.some((Q)=>{return s0(Q,Z)&&$.every((K)=>{return Q.every((Y)=>{return K.intersects(Y,Z)})})})})}test(q){if(!q)return!1;if(typeof q==="string")try{q=new j9(q,this.options)}catch(Z){return!1}for(let Z=0;Z<this.set.length;Z++)if(t9(this.set[Z],q,this.options))return!0;return!1}}r0.exports=o;var S9=n0(),a0=new S9,T9=Wq(),wq=t(),P=s(),j9=R(),{safeRe:S,src:M9,t:y,comparatorTrimReplace:b9,tildeTrimReplace:v9,caretTrimReplace:u9}=p(),{FLAG_INCLUDE_PRERELEASE:f9,FLAG_LOOSE:d9}=m(),h9=new RegExp(M9[y.BUILD],"g"),i0=(q)=>q.value==="<0.0.0-0",l9=(q)=>q.value==="",s0=(q,Z)=>{let $=!0,Q=q.slice(),K=Q.pop();while($&&Q.length)$=Q.every((Y)=>{return K.intersects(Y,Z)}),K=Q.pop();return $},g9=(q,Z)=>{return q=q.replace(S[y.BUILD],""),P("comp",q,Z),q=p9(q,Z),P("caret",q),q=c9(q,Z),P("tildes",q),q=a9(q,Z),P("xrange",q),q=s9(q,Z),P("stars",q),q},T=(q)=>!q||q.toLowerCase()==="x"||q==="*",c9=(q,Z)=>{return q.trim().split(/\s+/).map(($)=>m9($,Z)).join(" ")},m9=(q,Z)=>{let $=Z.loose?S[y.TILDELOOSE]:S[y.TILDE];return q.replace($,(Q,K,Y,W,z)=>{P("tilde",q,Q,K,Y,W,z);let _;if(T(K))_="";else if(T(Y))_=`>=${K}.0.0 <${+K+1}.0.0-0`;else if(T(W))_=`>=${K}.${Y}.0 <${K}.${+Y+1}.0-0`;else if(z)P("replaceTilde pr",z),_=`>=${K}.${Y}.${W}-${z} <${K}.${+Y+1}.0-0`;else _=`>=${K}.${Y}.${W} <${K}.${+Y+1}.0-0`;return P("tilde return",_),_})},p9=(q,Z)=>{return q.trim().split(/\s+/).map(($)=>n9($,Z)).join(" ")},n9=(q,Z)=>{P("caret",q,Z);let $=Z.loose?S[y.CARETLOOSE]:S[y.CARET],Q=Z.includePrerelease?"-0":"";return q.replace($,(K,Y,W,z,_)=>{P("caret",q,K,Y,W,z,_);let I;if(T(Y))I="";else if(T(W))I=`>=${Y}.0.0${Q} <${+Y+1}.0.0-0`;else if(T(z))if(Y==="0")I=`>=${Y}.${W}.0${Q} <${Y}.${+W+1}.0-0`;else I=`>=${Y}.${W}.0${Q} <${+Y+1}.0.0-0`;else if(_)if(P("replaceCaret pr",_),Y==="0")if(W==="0")I=`>=${Y}.${W}.${z}-${_} <${Y}.${W}.${+z+1}-0`;else I=`>=${Y}.${W}.${z}-${_} <${Y}.${+W+1}.0-0`;else I=`>=${Y}.${W}.${z}-${_} <${+Y+1}.0.0-0`;else if(P("no pr"),Y==="0")if(W==="0")I=`>=${Y}.${W}.${z}${Q} <${Y}.${W}.${+z+1}-0`;else I=`>=${Y}.${W}.${z}${Q} <${Y}.${+W+1}.0-0`;else I=`>=${Y}.${W}.${z} <${+Y+1}.0.0-0`;return P("caret return",I),I})},a9=(q,Z)=>{return P("replaceXRanges",q,Z),q.split(/\s+/).map(($)=>i9($,Z)).join(" ")},i9=(q,Z)=>{q=q.trim();let $=Z.loose?S[y.XRANGELOOSE]:S[y.XRANGE];return q.replace($,(Q,K,Y,W,z,_)=>{P("xRange",q,Q,K,Y,W,z,_);let I=T(Y),J=I||T(W),F=J||T(z),N=F;if(K==="="&&N)K="";if(_=Z.includePrerelease?"-0":"",I)if(K===">"||K==="<")Q="<0.0.0-0";else Q="*";else if(K&&N){if(J)W=0;if(z=0,K===">")if(K=">=",J)Y=+Y+1,W=0,z=0;else W=+W+1,z=0;else if(K==="<=")if(K="<",J)Y=+Y+1;else W=+W+1;if(K==="<")_="-0";Q=`${K+Y}.${W}.${z}${_}`}else if(J)Q=`>=${Y}.0.0${_} <${+Y+1}.0.0-0`;else if(F)Q=`>=${Y}.${W}.0${_} <${Y}.${+W+1}.0-0`;return P("xRange return",Q),Q})},s9=(q,Z)=>{return P("replaceStars",q,Z),q.trim().replace(S[y.STAR],"")},r9=(q,Z)=>{return P("replaceGTE0",q,Z),q.trim().replace(S[Z.includePrerelease?y.GTE0PRE:y.GTE0],"")},o9=(q)=>(Z,$,Q,K,Y,W,z,_,I,J,F,N)=>{if(T(Q))$="";else if(T(K))$=`>=${Q}.0.0${q?"-0":""}`;else if(T(Y))$=`>=${Q}.${K}.0${q?"-0":""}`;else if(W)$=`>=${$}`;else $=`>=${$}${q?"-0":""}`;if(T(I))_="";else if(T(J))_=`<${+I+1}.0.0-0`;else if(T(F))_=`<${I}.${+J+1}.0-0`;else if(N)_=`<=${I}.${J}.${F}-${N}`;else if(q)_=`<${I}.${J}.${+F+1}-0`;else _=`<=${_}`;return`${$} ${_}`.trim()},t9=(q,Z,$)=>{for(let Q=0;Q<q.length;Q++)if(!q[Q].test(Z))return!1;if(Z.prerelease.length&&!$.includePrerelease){for(let Q=0;Q<q.length;Q++){if(P(q[Q].semver),q[Q].semver===wq.ANY)continue;if(q[Q].semver.prerelease.length>0){let K=q[Q].semver;if(K.major===Z.major&&K.minor===Z.minor&&K.patch===Z.patch)return!0}}return!1}return!0}});var t=O((v6,$1)=>{var e=Symbol("SemVer ANY");class Dq{static get ANY(){return e}constructor(q,Z){if(Z=o0(Z),q instanceof Dq)if(q.loose===!!Z.loose)return q;else q=q.value;if(q=q.trim().split(/\s+/).join(" "),Tq("comparator",q,Z),this.options=Z,this.loose=!!Z.loose,this.parse(q),this.semver===e)this.value="";else this.value=this.operator+this.semver.version;Tq("comp",this)}parse(q){let Z=this.options.loose?t0[e0.COMPARATORLOOSE]:t0[e0.COMPARATOR],$=q.match(Z);if(!$)throw TypeError(`Invalid comparator: ${q}`);if(this.operator=$[1]!==void 0?$[1]:"",this.operator==="=")this.operator="";if(!$[2])this.semver=e;else this.semver=new q1($[2],this.options.loose)}toString(){return this.value}test(q){if(Tq("Comparator.test",q,this.options.loose),this.semver===e||q===e)return!0;if(typeof q==="string")try{q=new q1(q,this.options)}catch(Z){return!1}return Sq(q,this.operator,this.semver,this.options)}intersects(q,Z){if(!(q instanceof Dq))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new Z1(q.value,Z).test(this.value)}else if(q.operator===""){if(q.value==="")return!0;return new Z1(this.value,Z).test(q.semver)}if(Z=o0(Z),Z.includePrerelease&&(this.value==="<0.0.0-0"||q.value==="<0.0.0-0"))return!1;if(!Z.includePrerelease&&(this.value.startsWith("<0.0.0")||q.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&q.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&q.operator.startsWith("<"))return!0;if(this.semver.version===q.semver.version&&this.operator.includes("=")&&q.operator.includes("="))return!0;if(Sq(this.semver,"<",q.semver,Z)&&this.operator.startsWith(">")&&q.operator.startsWith("<"))return!0;if(Sq(this.semver,">",q.semver,Z)&&this.operator.startsWith("<")&&q.operator.startsWith(">"))return!0;return!1}}$1.exports=Dq;var o0=Wq(),{safeRe:t0,t:e0}=p(),Sq=yq(),Tq=s(),q1=R(),Z1=b()});var qq=O((u6,Q1)=>{var e9=b(),qZ=(q,Z,$)=>{try{Z=new e9(Z,$)}catch(Q){return!1}return Z.test(q)};Q1.exports=qZ});var Y1=O((f6,K1)=>{var ZZ=b(),$Z=(q,Z)=>new ZZ(q,Z).set.map(($)=>$.map((Q)=>Q.value).join(" ").trim().split(" "));K1.exports=$Z});var z1=O((d6,W1)=>{var QZ=R(),KZ=b(),YZ=(q,Z,$)=>{let Q=null,K=null,Y=null;try{Y=new KZ(Z,$)}catch(W){return null}return q.forEach((W)=>{if(Y.test(W)){if(!Q||K.compare(W)===-1)Q=W,K=new QZ(Q,$)}}),Q};W1.exports=YZ});var I1=O((h6,_1)=>{var WZ=R(),zZ=b(),_Z=(q,Z,$)=>{let Q=null,K=null,Y=null;try{Y=new zZ(Z,$)}catch(W){return null}return q.forEach((W)=>{if(Y.test(W)){if(!Q||K.compare(W)===1)Q=W,K=new WZ(Q,$)}}),Q};_1.exports=_Z});var V1=O((l6,J1)=>{var jq=R(),IZ=b(),B1=r(),BZ=(q,Z)=>{q=new IZ(q,Z);let $=new jq("0.0.0");if(q.test($))return $;if($=new jq("0.0.0-0"),q.test($))return $;$=null;for(let Q=0;Q<q.set.length;++Q){let K=q.set[Q],Y=null;if(K.forEach((W)=>{let z=new jq(W.semver.version);switch(W.operator){case">":if(z.prerelease.length===0)z.patch++;else z.prerelease.push(0);z.raw=z.format();case"":case">=":if(!Y||B1(z,Y))Y=z;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${W.operator}`)}}),Y&&(!$||B1($,Y)))$=Y}if($&&q.test($))return $;return null};J1.exports=BZ});var O1=O((g6,X1)=>{var JZ=b(),VZ=(q,Z)=>{try{return new JZ(q,Z).range||"*"}catch($){return null}};X1.exports=VZ});var Uq=O((c6,U1)=>{var XZ=R(),D1=t(),{ANY:OZ}=D1,FZ=b(),xZ=qq(),F1=r(),x1=Vq(),DZ=Oq(),UZ=Xq(),NZ=(q,Z,$,Q)=>{q=new XZ(q,Q),Z=new FZ(Z,Q);let K,Y,W,z,_;switch($){case">":K=F1,Y=DZ,W=x1,z=">",_=">=";break;case"<":K=x1,Y=UZ,W=F1,z="<",_="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(xZ(q,Z,Q))return!1;for(let I=0;I<Z.set.length;++I){let J=Z.set[I],F=null,N=null;if(J.forEach((B)=>{if(B.semver===OZ)B=new D1(">=0.0.0");if(F=F||B,N=N||B,K(B.semver,F.semver,Q))F=B;else if(W(B.semver,N.semver,Q))N=B}),F.operator===z||F.operator===_)return!1;if((!N.operator||N.operator===z)&&Y(q,N.semver))return!1;else if(N.operator===_&&W(q,N.semver))return!1}return!0};U1.exports=NZ});var L1=O((m6,N1)=>{var LZ=Uq(),GZ=(q,Z,$)=>LZ(q,Z,">",$);N1.exports=GZ});var P1=O((p6,G1)=>{var PZ=Uq(),AZ=(q,Z,$)=>PZ(q,Z,"<",$);G1.exports=AZ});var E1=O((n6,C1)=>{var A1=b(),CZ=(q,Z,$)=>{return q=new A1(q,$),Z=new A1(Z,$),q.intersects(Z,$)};C1.exports=CZ});var k1=O((a6,H1)=>{var EZ=qq(),HZ=M();H1.exports=(q,Z,$)=>{let Q=[],K=null,Y=null,W=q.sort((J,F)=>HZ(J,F,$));for(let J of W)if(EZ(J,Z,$)){if(Y=J,!K)K=J}else{if(Y)Q.push([K,Y]);Y=null,K=null}if(K)Q.push([K,null]);let z=[];for(let[J,F]of Q)if(J===F)z.push(J);else if(!F&&J===W[0])z.push("*");else if(!F)z.push(`>=${J}`);else if(J===W[0])z.push(`<=${F}`);else z.push(`${J} - ${F}`);let _=z.join(" || "),I=typeof Z.raw==="string"?Z.raw:String(Z);return _.length<I.length?_:Z}});var j1=O((i6,T1)=>{var R1=b(),vq=t(),{ANY:Mq}=vq,bq=qq(),uq=M(),kZ=(q,Z,$={})=>{if(q===Z)return!0;q=new R1(q,$),Z=new R1(Z,$);let Q=!1;q:for(let K of q.set){for(let Y of Z.set){let W=yZ(K,Y,$);if(Q=Q||W!==null,W)continue q}if(Q)return!1}return!0},RZ=[new vq(">=0.0.0-0")],y1=[new vq(">=0.0.0")],yZ=(q,Z,$)=>{if(q===Z)return!0;if(q.length===1&&q[0].semver===Mq)if(Z.length===1&&Z[0].semver===Mq)return!0;else if($.includePrerelease)q=RZ;else q=y1;if(Z.length===1&&Z[0].semver===Mq)if($.includePrerelease)return!0;else Z=y1;let Q=new Set,K,Y;for(let B of q)if(B.operator===">"||B.operator===">=")K=w1(K,B,$);else if(B.operator==="<"||B.operator==="<=")Y=S1(Y,B,$);else Q.add(B.semver);if(Q.size>1)return null;let W;if(K&&Y){if(W=uq(K.semver,Y.semver,$),W>0)return null;else if(W===0&&(K.operator!==">="||Y.operator!=="<="))return null}for(let B of Q){if(K&&!bq(B,String(K),$))return null;if(Y&&!bq(B,String(Y),$))return null;for(let G of Z)if(!bq(B,String(G),$))return!1;return!0}let z,_,I,J,F=Y&&!$.includePrerelease&&Y.semver.prerelease.length?Y.semver:!1,N=K&&!$.includePrerelease&&K.semver.prerelease.length?K.semver:!1;if(F&&F.prerelease.length===1&&Y.operator==="<"&&F.prerelease[0]===0)F=!1;for(let B of Z){if(J=J||B.operator===">"||B.operator===">=",I=I||B.operator==="<"||B.operator==="<=",K){if(N){if(B.semver.prerelease&&B.semver.prerelease.length&&B.semver.major===N.major&&B.semver.minor===N.minor&&B.semver.patch===N.patch)N=!1}if(B.operator===">"||B.operator===">="){if(z=w1(K,B,$),z===B&&z!==K)return!1}else if(K.operator===">="&&!B.test(K.semver))return!1}if(Y){if(F){if(B.semver.prerelease&&B.semver.prerelease.length&&B.semver.major===F.major&&B.semver.minor===F.minor&&B.semver.patch===F.patch)F=!1}if(B.operator==="<"||B.operator==="<="){if(_=S1(Y,B,$),_===B&&_!==Y)return!1}else if(Y.operator==="<="&&!B.test(Y.semver))return!1}if(!B.operator&&(Y||K)&&W!==0)return!1}if(K&&I&&!Y&&W!==0)return!1;if(Y&&J&&!K&&W!==0)return!1;if(N||F)return!1;return!0},w1=(q,Z,$)=>{if(!q)return Z;let Q=uq(q.semver,Z.semver,$);return Q>0?q:Q<0?Z:Z.operator===">"&&q.operator===">="?Z:q},S1=(q,Z,$)=>{if(!q)return Z;let Q=uq(q.semver,Z.semver,$);return Q<0?q:Q>0?Z:Z.operator==="<"&&q.operator==="<="?Z:q};T1.exports=kZ});var u1=O((s6,v1)=>{var fq=p(),M1=m(),wZ=R(),b1=Eq(),SZ=d(),TZ=K0(),jZ=W0(),MZ=I0(),bZ=V0(),vZ=O0(),uZ=x0(),fZ=U0(),dZ=L0(),hZ=M(),lZ=C0(),gZ=H0(),cZ=Jq(),mZ=w0(),pZ=T0(),nZ=r(),aZ=Vq(),iZ=kq(),sZ=Rq(),rZ=Xq(),oZ=Oq(),tZ=yq(),eZ=l0(),q5=c0(),Z5=t(),$5=b(),Q5=qq(),K5=Y1(),Y5=z1(),W5=I1(),z5=V1(),_5=O1(),I5=Uq(),B5=L1(),J5=P1(),V5=E1(),X5=k1(),O5=j1();v1.exports={parse:SZ,valid:TZ,clean:jZ,inc:MZ,diff:bZ,major:vZ,minor:uZ,patch:fZ,prerelease:dZ,compare:hZ,rcompare:lZ,compareLoose:gZ,compareBuild:cZ,sort:mZ,rsort:pZ,gt:nZ,lt:aZ,eq:iZ,neq:sZ,gte:rZ,lte:oZ,cmp:tZ,coerce:eZ,truncate:q5,Comparator:Z5,Range:$5,satisfies:Q5,toComparators:K5,maxSatisfying:Y5,minSatisfying:W5,minVersion:z5,validRange:_5,outside:I5,gtr:B5,ltr:J5,intersects:V5,simplifyRange:X5,subset:O5,SemVer:wZ,re:fq.re,src:fq.src,tokens:fq.t,SEMVER_SPEC_VERSION:M1.SEMVER_SPEC_VERSION,RELEASE_TYPES:M1.RELEASE_TYPES,compareIdentifiers:b1.compareIdentifiers,rcompareIdentifiers:b1.rcompareIdentifiers}});var d1=O((r6,f1)=>{var F5=Symbol("proc-log.meta");f1.exports={META:F5,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...q){return process.emit("output","standard",...q)},error:function(...q){return process.emit("output","error",...q)},buffer:function(...q){return process.emit("output","buffer",...q)},flush:function(...q){return process.emit("output","flush",...q)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...q){return process.emit("log","error",...q)},notice:function(...q){return process.emit("log","notice",...q)},warn:function(...q){return process.emit("log","warn",...q)},info:function(...q){return process.emit("log","info",...q)},verbose:function(...q){return process.emit("log","verbose",...q)},http:function(...q){return process.emit("log","http",...q)},silly:function(...q){return process.emit("log","silly",...q)},timing:function(...q){return process.emit("log","timing",...q)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(q,Z){process.emit("time","start",q);function $(){return process.emit("time","end",q)}if(typeof Z==="function"){let Q=Z();if(Q&&Q.finally)return Q.finally($);return $(),Q}return $},end:function(q){return process.emit("time","end",q)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(...q){let Z;if(typeof q[0]==="function")Z=q.shift();process.emit("input","start",...q);function $(){return process.emit("input","end",...q)}if(typeof Z==="function"){let Q=Z();if(Q&&Q.finally)return Q.finally($);return $(),Q}return $},end:function(...q){return process.emit("input","end",...q)},read:function(...q){let Z,$,Q=new Promise((K,Y)=>{Z=K,$=Y});return process.emit("input","read",Z,$,...q),Q}}}});var n1=O((m1)=>{var l1=(q,Z)=>()=>(Z||q((Z={exports:{}}).exports,Z),Z.exports),x5=l1((q)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.tracing=q.metrics=void 0;var Z=n("diagnostics_channel");q.metrics=(0,Z.channel)("lru-cache:metrics"),q.tracing=(0,Z.tracingChannel)("lru-cache")}),D5=l1((q)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.defaultPerf=void 0,q.defaultPerf=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date});Object.defineProperty(m1,"__esModule",{value:!0});m1.LRUCache=void 0;var A=x5(),U5=D5(),dq=()=>A.metrics.hasSubscribers||A.tracing.hasSubscribers,g1=new Set,h1=typeof process=="object"&&process?process:{},N5=(q,Z,$,Q)=>{typeof h1.emitWarning=="function"?h1.emitWarning(q,Z,$,Q):console.error(`[${$}] ${Z}: ${q}`)},L5=(q)=>!g1.has(q),h=(q)=>!!q&&q===Math.floor(q)&&q>0&&isFinite(q),c1=(q)=>h(q)?q<=Math.pow(2,8)?Uint8Array:q<=Math.pow(2,16)?Uint16Array:q<=Math.pow(2,32)?Uint32Array:q<=Number.MAX_SAFE_INTEGER?Nq:null:null,Nq=class extends Array{constructor(q){super(q),this.fill(0)}},G5=class q{heap;length;static#K=!1;static create(Z){let $=c1(Z);if(!$)return[];q.#K=!0;let Q=new q(Z,$);return q.#K=!1,Q}constructor(Z,$){if(!q.#K)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new $(Z),this.length=0}push(Z){this.heap[this.length++]=Z}pop(){return this.heap[--this.length]}},P5=class q{#K;#I;#Z;#y;#D;#b;#v;#U;get perf(){return this.#U}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;backgroundFetchSize;#W;#N;#Y;#Q;#q;#J;#X;#B;#z;#L;#_;#G;#P;#O;#F;#A;#u;#V;#w;static unsafeExposeInternals(Z){return{starts:Z.#P,ttls:Z.#O,autopurgeTimers:Z.#F,sizes:Z.#G,keyMap:Z.#Y,keyList:Z.#Q,valList:Z.#q,next:Z.#J,prev:Z.#X,get head(){return Z.#B},get tail(){return Z.#z},free:Z.#L,isBackgroundFetch:($)=>Z.#$($),backgroundFetch:($,Q,K,Y)=>Z.#h($,Q,K,Y),moveToTail:($)=>Z.#M($),indexes:($)=>Z.#C($),rindexes:($)=>Z.#E($),isStale:($)=>Z.#x($)}}get max(){return this.#K}get maxSize(){return this.#I}get calculatedSize(){return this.#N}get size(){return this.#W}get fetchMethod(){return this.#b}get memoMethod(){return this.#v}get dispose(){return this.#Z}get onInsert(){return this.#y}get disposeAfter(){return this.#D}constructor(Z){let{max:$=0,ttl:Q,ttlResolution:K=1,ttlAutopurge:Y,updateAgeOnGet:W,updateAgeOnHas:z,allowStale:_,dispose:I,onInsert:J,disposeAfter:F,noDisposeOnSet:N,noUpdateTTL:B,maxSize:G=0,maxEntrySize:x=0,sizeCalculation:H,fetchMethod:U,memoMethod:k,noDeleteOnFetchRejection:f,noDeleteOnStaleGet:w,allowStaleOnFetchRejection:C,allowStaleOnFetchAbort:i,ignoreFetchAbort:g,backgroundFetchSize:Yq=1,perf:c}=Z;if(this.backgroundFetchSize=Yq,c!==void 0&&typeof c?.now!="function")throw TypeError("perf option must have a now() method if specified");if(this.#U=c??U5.defaultPerf,$!==0&&!h($))throw TypeError("max option must be a nonnegative integer");let Gq=$?c1($):Array;if(!Gq)throw Error("invalid max value: "+$);if(this.#K=$,this.#I=G,this.maxEntrySize=x||this.#I,this.sizeCalculation=H,this.sizeCalculation){if(!this.#I&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw TypeError("sizeCalculation set to non-function")}if(k!==void 0&&typeof k!="function")throw TypeError("memoMethod must be a function if defined");if(this.#v=k,U!==void 0&&typeof U!="function")throw TypeError("fetchMethod must be a function if specified");if(this.#b=U,this.#u=!!U,this.#Y=new Map,this.#Q=Array.from({length:$}).fill(void 0),this.#q=Array.from({length:$}).fill(void 0),this.#J=new Gq($),this.#X=new Gq($),this.#B=0,this.#z=0,this.#L=G5.create($),this.#W=0,this.#N=0,typeof I=="function"&&(this.#Z=I),typeof J=="function"&&(this.#y=J),typeof F=="function"?(this.#D=F,this.#_=[]):(this.#D=void 0,this.#_=void 0),this.#A=!!this.#Z,this.#w=!!this.#y,this.#V=!!this.#D,this.noDisposeOnSet=!!N,this.noUpdateTTL=!!B,this.noDeleteOnFetchRejection=!!f,this.allowStaleOnFetchRejection=!!C,this.allowStaleOnFetchAbort=!!i,this.ignoreFetchAbort=!!g,this.maxEntrySize!==0){if(this.#I!==0&&!h(this.#I))throw TypeError("maxSize must be a positive integer if specified");if(!h(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.#i()}if(this.allowStale=!!_,this.noDeleteOnStaleGet=!!w,this.updateAgeOnGet=!!W,this.updateAgeOnHas=!!z,this.ttlResolution=h(K)||K===0?K:1,this.ttlAutopurge=!!Y,this.ttl=Q||0,this.ttl){if(!h(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.#l()}if(this.#K===0&&this.ttl===0&&this.#I===0)throw TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#K&&!this.#I){let Pq="LRU_CACHE_UNBOUNDED";L5(Pq)&&(g1.add(Pq),N5("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Pq,q))}}getRemainingTTL(Z){return this.#Y.has(Z)?1/0:0}#l(){let Z=new Nq(this.#K),$=new Nq(this.#K);this.#O=Z,this.#P=$;let Q=this.ttlAutopurge?Array.from({length:this.#K}):void 0;this.#F=Q,this.#g=(z,_,I=this.#U.now())=>{$[z]=_!==0?I:0,Z[z]=_,K(z,_)},this.#S=(z)=>{$[z]=Z[z]!==0?this.#U.now():0,K(z,Z[z])};let K=this.ttlAutopurge?(z,_)=>{if(Q?.[z]&&(clearTimeout(Q[z]),Q[z]=void 0),_&&_!==0&&Q){let I=setTimeout(()=>{this.#x(z)&&this.#H(this.#Q[z],"expire")},_+1);I.unref&&I.unref(),Q[z]=I}}:()=>{};this.#k=(z,_)=>{if(Z[_]){let I=Z[_],J=$[_];if(!I||!J)return;z.ttl=I,z.start=J,z.now=Y||W();let F=z.now-J;z.remainingTTL=I-F}};let Y=0,W=()=>{let z=this.#U.now();if(this.ttlResolution>0){Y=z;let _=setTimeout(()=>Y=0,this.ttlResolution);_.unref&&_.unref()}return z};this.getRemainingTTL=(z)=>{let _=this.#Y.get(z);if(_===void 0)return 0;let I=Z[_],J=$[_];if(!I||!J)return 1/0;let F=(Y||W())-J;return I-F},this.#x=(z)=>{let _=$[z],I=Z[z];return!!I&&!!_&&(Y||W())-_>I}}#S=()=>{};#k=()=>{};#g=()=>{};#x=()=>!1;#i(){let Z=new Nq(this.#K);this.#N=0,this.#G=Z,this.#T=($)=>{this.#N-=Z[$],Z[$]=0},this.#c=($,Q,K,Y)=>{if(!h(K)){if(this.#$(Q))return this.backgroundFetchSize;if(Y){if(typeof Y!="function")throw TypeError("sizeCalculation must be a function");if(K=Y(Q,$),!h(K))throw TypeError("sizeCalculation return invalid (expect positive integer)")}else throw TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.")}return K},this.#f=($,Q,K)=>{if(Z[$]=Q,this.#I){let Y=this.#I-Z[$];for(;this.#N>Y;)this.#d(!0)}this.#N+=Z[$],K&&(K.entrySize=Q,K.totalCalculatedSize=this.#N)}}#T=(Z)=>{};#f=(Z,$,Q)=>{};#c=(Z,$,Q,K)=>{if(Q||K)throw TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#C({allowStale:Z=this.allowStale}={}){if(this.#W)for(let $=this.#z;this.#m($)&&((Z||!this.#x($))&&(yield $),$!==this.#B);)$=this.#X[$]}*#E({allowStale:Z=this.allowStale}={}){if(this.#W)for(let $=this.#B;this.#m($)&&((Z||!this.#x($))&&(yield $),$!==this.#z);)$=this.#J[$]}#m(Z){return Z!==void 0&&this.#Y.get(this.#Q[Z])===Z}*entries(){for(let Z of this.#C())this.#q[Z]!==void 0&&this.#Q[Z]!==void 0&&!this.#$(this.#q[Z])&&(yield[this.#Q[Z],this.#q[Z]])}*rentries(){for(let Z of this.#E())this.#q[Z]!==void 0&&this.#Q[Z]!==void 0&&!this.#$(this.#q[Z])&&(yield[this.#Q[Z],this.#q[Z]])}*keys(){for(let Z of this.#C()){let $=this.#Q[Z];$!==void 0&&!this.#$(this.#q[Z])&&(yield $)}}*rkeys(){for(let Z of this.#E()){let $=this.#Q[Z];$!==void 0&&!this.#$(this.#q[Z])&&(yield $)}}*values(){for(let Z of this.#C())this.#q[Z]!==void 0&&!this.#$(this.#q[Z])&&(yield this.#q[Z])}*rvalues(){for(let Z of this.#E())this.#q[Z]!==void 0&&!this.#$(this.#q[Z])&&(yield this.#q[Z])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(Z,$={}){for(let Q of this.#C()){let K=this.#q[Q],Y=this.#$(K)?K.__staleWhileFetching:K;if(Y!==void 0&&Z(Y,this.#Q[Q],this))return this.#j(this.#Q[Q],$)}}forEach(Z,$=this){for(let Q of this.#C()){let K=this.#q[Q],Y=this.#$(K)?K.__staleWhileFetching:K;Y!==void 0&&Z.call($,Y,this.#Q[Q],this)}}rforEach(Z,$=this){for(let Q of this.#E()){let K=this.#q[Q],Y=this.#$(K)?K.__staleWhileFetching:K;Y!==void 0&&Z.call($,Y,this.#Q[Q],this)}}purgeStale(){let Z=!1;for(let $ of this.#E({allowStale:!0}))this.#x($)&&(this.#H(this.#Q[$],"expire"),Z=!0);return Z}info(Z){let $=this.#Y.get(Z);if($===void 0)return;let Q=this.#q[$],K=this.#$(Q)?Q.__staleWhileFetching:Q;if(K===void 0)return;let Y={value:K};if(this.#O&&this.#P){let W=this.#O[$],z=this.#P[$];if(W&&z){let _=W-(this.#U.now()-z);Y.ttl=_,Y.start=Date.now()}}return this.#G&&(Y.size=this.#G[$]),Y}dump(){let Z=[];for(let $ of this.#C({allowStale:!0})){let Q=this.#Q[$],K=this.#q[$],Y=this.#$(K)?K.__staleWhileFetching:K;if(Y===void 0||Q===void 0)continue;let W={value:Y};if(this.#O&&this.#P){W.ttl=this.#O[$];let z=this.#U.now()-this.#P[$];W.start=Math.floor(Date.now()-z)}this.#G&&(W.size=this.#G[$]),Z.unshift([Q,W])}return Z}load(Z){this.clear();for(let[$,Q]of Z){if(Q.start){let K=Date.now()-Q.start;Q.start=this.#U.now()-K}this.#R($,Q.value,Q)}}set(Z,$,Q={}){let{status:K=A.metrics.hasSubscribers?{}:void 0}=Q;Q.status=K,K&&(K.op="set",K.key=Z,$!==void 0&&(K.value=$),K.cache=this);let Y=this.#R(Z,$,Q);return K&&A.metrics.hasSubscribers&&A.metrics.publish(K),Y}#R(Z,$,Q,K){let{ttl:Y=this.ttl,start:W,noDisposeOnSet:z=this.noDisposeOnSet,sizeCalculation:_=this.sizeCalculation,status:I}=Q,J=this.#$($);if($===void 0)return I&&(I.set="deleted"),this.delete(Z),this;let{noUpdateTTL:F=this.noUpdateTTL}=Q;I&&!J&&(I.value=$);let N=this.#c(Z,$,Q.size||0,_,I);if(this.maxEntrySize&&N>this.maxEntrySize)return this.#H(Z,"set"),I&&(I.set="miss",I.maxEntrySizeExceeded=!0),this;let B=this.#W===0?void 0:this.#Y.get(Z);if(B===void 0)B=this.#W===0?this.#z:this.#L.length!==0?this.#L.pop():this.#W===this.#K?this.#d(!1):this.#W,this.#Q[B]=Z,this.#q[B]=$,this.#Y.set(Z,B),this.#J[this.#z]=B,this.#X[B]=this.#z,this.#z=B,this.#W++,this.#f(B,N,I),I&&(I.set="add"),F=!1,this.#w&&!J&&this.#y?.($,Z,"add");else{this.#M(B);let G=this.#q[B];if($!==G){if(!z)if(this.#$(G)){G!==K&&G.__abortController.abort(Error("replaced"));let{__staleWhileFetching:x}=G;x!==void 0&&x!==$&&(this.#A&&this.#Z?.(x,Z,"set"),this.#V&&this.#_?.push([x,Z,"set"]))}else this.#A&&this.#Z?.(G,Z,"set"),this.#V&&this.#_?.push([G,Z,"set"]);if(this.#T(B),this.#f(B,N,I),this.#q[B]=$,!J){let x=G&&this.#$(G)?G.__staleWhileFetching:G,H=x===void 0?"add":$!==x?"replace":"update";I&&(I.set=H,x!==void 0&&(I.oldValue=x)),this.#w&&this.onInsert?.($,Z,H)}}else J||(I&&(I.set="update"),this.#w&&this.onInsert?.($,Z,"update"))}if(Y!==0&&!this.#O&&this.#l(),this.#O&&(F||this.#g(B,Y,W),I&&this.#k(I,B)),!z&&this.#V&&this.#_){let G=this.#_,x;for(;x=G?.shift();)this.#D?.(...x)}return this}pop(){try{for(;this.#W;){let Z=this.#q[this.#B];if(this.#d(!0),this.#$(Z)){if(Z.__staleWhileFetching)return Z.__staleWhileFetching}else if(Z!==void 0)return Z}}finally{if(this.#V&&this.#_){let Z=this.#_,$;for(;$=Z?.shift();)this.#D?.(...$)}}}#d(Z){let $=this.#B,Q=this.#Q[$],K=this.#q[$],Y=this.#$(K);Y&&K.__abortController.abort(Error("evicted"));let W=Y?K.__staleWhileFetching:K;return(this.#A||this.#V)&&W!==void 0&&(this.#A&&this.#Z?.(W,Q,"evict"),this.#V&&this.#_?.push([W,Q,"evict"])),this.#T($),this.#F?.[$]&&(clearTimeout(this.#F[$]),this.#F[$]=void 0),Z&&(this.#Q[$]=void 0,this.#q[$]=void 0,this.#L.push($)),this.#W===1?(this.#B=this.#z=0,this.#L.length=0):this.#B=this.#J[$],this.#Y.delete(Q),this.#W--,$}has(Z,$={}){let{status:Q=A.metrics.hasSubscribers?{}:void 0}=$;$.status=Q,Q&&(Q.op="has",Q.key=Z,Q.cache=this);let K=this.#s(Z,$);return A.metrics.hasSubscribers&&A.metrics.publish(Q),K}#s(Z,$={}){let{updateAgeOnHas:Q=this.updateAgeOnHas,status:K}=$,Y=this.#Y.get(Z);if(Y!==void 0){let W=this.#q[Y];if(this.#$(W)&&W.__staleWhileFetching===void 0)return!1;if(this.#x(Y))K&&(K.has="stale",this.#k(K,Y));else return Q&&this.#S(Y),K&&(K.has="hit",this.#k(K,Y)),!0}else K&&(K.has="miss");return!1}peek(Z,$={}){let{status:Q=dq()?{}:void 0}=$;Q&&(Q.op="peek",Q.key=Z,Q.cache=this),$.status=Q;let K=this.#r(Z,$);return A.metrics.hasSubscribers&&A.metrics.publish(Q),K}#r(Z,$){let{status:Q,allowStale:K=this.allowStale}=$,Y=this.#Y.get(Z);if(Y===void 0||!K&&this.#x(Y)){Q&&(Q.peek=Y===void 0?"miss":"stale");return}let W=this.#q[Y],z=this.#$(W)?W.__staleWhileFetching:W;return Q&&(z!==void 0?(Q.peek="hit",Q.value=z):Q.peek="miss"),z}#h(Z,$,Q,K){let Y=$===void 0?void 0:this.#q[$];if(this.#$(Y))return Y;let W=new AbortController,{signal:z}=Q;z?.addEventListener("abort",()=>W.abort(z.reason),{signal:W.signal});let _={signal:W.signal,options:Q,context:K},I=(x,H=!1)=>{let{aborted:U}=W.signal,k=Q.ignoreFetchAbort&&x!==void 0,f=Q.ignoreFetchAbort||!!(Q.allowStaleOnFetchAbort&&x!==void 0);if(Q.status&&(U&&!H?(Q.status.fetchAborted=!0,Q.status.fetchError=W.signal.reason,k&&(Q.status.fetchAbortIgnored=!0)):Q.status.fetchResolved=!0),U&&!k&&!H)return F(W.signal.reason,f);let w=B,C=this.#q[$];return(C===B||C===void 0&&k&&H)&&(x===void 0?w.__staleWhileFetching!==void 0?this.#q[$]=w.__staleWhileFetching:this.#H(Z,"fetch"):(Q.status&&(Q.status.fetchUpdated=!0),this.#R(Z,x,_.options,w))),x},J=(x)=>(Q.status&&(Q.status.fetchRejected=!0,Q.status.fetchError=x),F(x,!1)),F=(x,H)=>{let{aborted:U}=W.signal,k=U&&Q.allowStaleOnFetchAbort,f=k||Q.allowStaleOnFetchRejection,w=f||Q.noDeleteOnFetchRejection,C=B;if(this.#q[$]===B&&(!w||!H&&C.__staleWhileFetching===void 0?this.#H(Z,"fetch"):k||(this.#q[$]=C.__staleWhileFetching)),f)return Q.status&&C.__staleWhileFetching!==void 0&&(Q.status.returnedStale=!0),C.__staleWhileFetching;if(C.__returned===C)throw x},N=(x,H)=>{let U=this.#b?.(Z,Y,_);W.signal.addEventListener("abort",()=>{(!Q.ignoreFetchAbort||Q.allowStaleOnFetchAbort)&&(x(void 0),Q.allowStaleOnFetchAbort&&(x=(k)=>I(k,!0)))}),U&&U instanceof Promise?U.then((k)=>x(k===void 0?void 0:k),H):U!==void 0&&x(U)};Q.status&&(Q.status.fetchDispatched=!0);let B=new Promise(N).then(I,J),G=Object.assign(B,{__abortController:W,__staleWhileFetching:Y,__returned:void 0});return $===void 0?(this.#R(Z,G,{..._.options,status:void 0}),$=this.#Y.get(Z)):this.#q[$]=G,G}#$(Z){if(!this.#u)return!1;let $=Z;return!!$&&$ instanceof Promise&&$.hasOwnProperty("__staleWhileFetching")&&$.__abortController instanceof AbortController}fetch(Z,$={}){let Q=A.tracing.hasSubscribers,{status:K=dq()?{}:void 0}=$;$.status=K,K&&$.context&&(K.context=$.context);let Y=this.#p(Z,$);return K&&Q&&(K.trace=!0,A.tracing.tracePromise(()=>Y,K).catch(()=>{})),Y}async#p(Z,$={}){let{allowStale:Q=this.allowStale,updateAgeOnGet:K=this.updateAgeOnGet,noDeleteOnStaleGet:Y=this.noDeleteOnStaleGet,ttl:W=this.ttl,noDisposeOnSet:z=this.noDisposeOnSet,size:_=0,sizeCalculation:I=this.sizeCalculation,noUpdateTTL:J=this.noUpdateTTL,noDeleteOnFetchRejection:F=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:N=this.allowStaleOnFetchRejection,ignoreFetchAbort:B=this.ignoreFetchAbort,allowStaleOnFetchAbort:G=this.allowStaleOnFetchAbort,context:x,forceRefresh:H=!1,status:U,signal:k}=$;if(U&&(U.op="fetch",U.key=Z,H&&(U.forceRefresh=!0),U.cache=this),!this.#u)return U&&(U.fetch="get"),this.#j(Z,{allowStale:Q,updateAgeOnGet:K,noDeleteOnStaleGet:Y,status:U});let f={allowStale:Q,updateAgeOnGet:K,noDeleteOnStaleGet:Y,ttl:W,noDisposeOnSet:z,size:_,sizeCalculation:I,noUpdateTTL:J,noDeleteOnFetchRejection:F,allowStaleOnFetchRejection:N,allowStaleOnFetchAbort:G,ignoreFetchAbort:B,status:U,signal:k},w=this.#Y.get(Z);if(w===void 0){U&&(U.fetch="miss");let C=this.#h(Z,w,f,x);return C.__returned=C}else{let C=this.#q[w];if(this.#$(C)){let c=Q&&C.__staleWhileFetching!==void 0;return U&&(U.fetch="inflight",c&&(U.returnedStale=!0)),c?C.__staleWhileFetching:C.__returned=C}let i=this.#x(w);if(!H&&!i)return U&&(U.fetch="hit"),this.#M(w),K&&this.#S(w),U&&this.#k(U,w),C;let g=this.#h(Z,w,f,x),Yq=g.__staleWhileFetching!==void 0&&Q;return U&&(U.fetch=i?"stale":"refresh",Yq&&i&&(U.returnedStale=!0)),Yq?g.__staleWhileFetching:g.__returned=g}}forceFetch(Z,$={}){let Q=A.tracing.hasSubscribers,{status:K=dq()?{}:void 0}=$;$.status=K,K&&$.context&&(K.context=$.context);let Y=this.#o(Z,$);return K&&Q&&(K.trace=!0,A.tracing.tracePromise(()=>Y,K).catch(()=>{})),Y}async#o(Z,$={}){let Q=await this.#p(Z,$);if(Q===void 0)throw Error("fetch() returned undefined");return Q}memo(Z,$={}){let{status:Q=A.metrics.hasSubscribers?{}:void 0}=$;$.status=Q,Q&&(Q.op="memo",Q.key=Z,$.context&&(Q.context=$.context),Q.cache=this);let K=this.#t(Z,$);return Q&&(Q.value=K),A.metrics.hasSubscribers&&A.metrics.publish(Q),K}#t(Z,$={}){let Q=this.#v;if(!Q)throw Error("no memoMethod provided to constructor");let{context:K,status:Y,forceRefresh:W,...z}=$;Y&&W&&(Y.forceRefresh=!0);let _=this.#j(Z,z),I=W||_===void 0;if(Y&&(Y.memo=I?"miss":"hit",I||(Y.value=_)),!I)return _;let J=Q(Z,_,{options:z,context:K});return Y&&(Y.value=J),this.#R(Z,J,z),J}get(Z,$={}){let{status:Q=A.metrics.hasSubscribers?{}:void 0}=$;$.status=Q,Q&&(Q.op="get",Q.key=Z,Q.cache=this);let K=this.#j(Z,$);return Q&&(K!==void 0&&(Q.value=K),A.metrics.hasSubscribers&&A.metrics.publish(Q)),K}#j(Z,$={}){let{allowStale:Q=this.allowStale,updateAgeOnGet:K=this.updateAgeOnGet,noDeleteOnStaleGet:Y=this.noDeleteOnStaleGet,status:W}=$,z=this.#Y.get(Z);if(z===void 0){W&&(W.get="miss");return}let _=this.#q[z],I=this.#$(_);return W&&this.#k(W,z),this.#x(z)?I?(W&&(W.get="stale-fetching"),Q&&_.__staleWhileFetching!==void 0?(W&&(W.returnedStale=!0),_.__staleWhileFetching):void 0):(Y||this.#H(Z,"expire"),W&&(W.get="stale"),Q?(W&&(W.returnedStale=!0),_):void 0):(W&&(W.get=I?"fetching":"hit"),this.#M(z),K&&this.#S(z),I?_.__staleWhileFetching:_)}#n(Z,$){this.#X[$]=Z,this.#J[Z]=$}#M(Z){Z!==this.#z&&(Z===this.#B?this.#B=this.#J[Z]:this.#n(this.#X[Z],this.#J[Z]),this.#n(this.#z,Z),this.#z=Z)}delete(Z){return this.#H(Z,"delete")}#H(Z,$){A.metrics.hasSubscribers&&A.metrics.publish({op:"delete",delete:$,key:Z,cache:this});let Q=!1;if(this.#W!==0){let K=this.#Y.get(Z);if(K!==void 0)if(this.#F?.[K]&&(clearTimeout(this.#F?.[K]),this.#F[K]=void 0),Q=!0,this.#W===1)this.#a($);else{this.#T(K);let Y=this.#q[K];if(this.#$(Y)?Y.__abortController.abort(Error("deleted")):(this.#A||this.#V)&&(this.#A&&this.#Z?.(Y,Z,$),this.#V&&this.#_?.push([Y,Z,$])),this.#Y.delete(Z),this.#Q[K]=void 0,this.#q[K]=void 0,K===this.#z)this.#z=this.#X[K];else if(K===this.#B)this.#B=this.#J[K];else{let W=this.#X[K];this.#J[W]=this.#J[K];let z=this.#J[K];this.#X[z]=this.#X[K]}this.#W--,this.#L.push(K)}}if(this.#V&&this.#_?.length){let K=this.#_,Y;for(;Y=K?.shift();)this.#D?.(...Y)}return Q}clear(){return this.#a("delete")}#a(Z){for(let $ of this.#E({allowStale:!0})){let Q=this.#q[$];if(this.#$(Q))Q.__abortController.abort(Error("deleted"));else{let K=this.#Q[$];this.#A&&this.#Z?.(Q,K,Z),this.#V&&this.#_?.push([Q,K,Z])}}if(this.#Y.clear(),this.#q.fill(void 0),this.#Q.fill(void 0),this.#O&&this.#P){this.#O.fill(0),this.#P.fill(0);for(let $ of this.#F??[])$!==void 0&&clearTimeout($);this.#F?.fill(void 0)}if(this.#G&&this.#G.fill(0),this.#B=0,this.#z=0,this.#L.length=0,this.#N=0,this.#W=0,this.#V&&this.#_){let $=this.#_,Q;for(;Q=$?.shift();)this.#D?.(...Q)}}};m1.LRUCache=P5});var s1=O((e6,i1)=>{var L=(...q)=>q.every((Z)=>Z)?q.join(""):"",E=(q)=>q?encodeURIComponent(q):"",a1=(q)=>q.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),A5={sshtemplate:({domain:q,user:Z,project:$,committish:Q})=>`git@${q}:${Z}/${$}.git${L("#",Q)}`,sshurltemplate:({domain:q,user:Z,project:$,committish:Q})=>`git+ssh://git@${q}/${Z}/${$}.git${L("#",Q)}`,edittemplate:({domain:q,user:Z,project:$,committish:Q,editpath:K,path:Y})=>`https://${q}/${Z}/${$}${L("/",K,"/",E(Q||"HEAD"),"/",Y)}`,browsetemplate:({domain:q,user:Z,project:$,committish:Q,treepath:K})=>`https://${q}/${Z}/${$}${L("/",K,"/",E(Q))}`,browsetreetemplate:({domain:q,user:Z,project:$,committish:Q,treepath:K,path:Y,fragment:W,hashformat:z})=>`https://${q}/${Z}/${$}/${K}/${E(Q||"HEAD")}/${Y}${L("#",z(W||""))}`,browseblobtemplate:({domain:q,user:Z,project:$,committish:Q,blobpath:K,path:Y,fragment:W,hashformat:z})=>`https://${q}/${Z}/${$}/${K}/${E(Q||"HEAD")}/${Y}${L("#",z(W||""))}`,docstemplate:({domain:q,user:Z,project:$,treepath:Q,committish:K})=>`https://${q}/${Z}/${$}${L("/",Q,"/",E(K))}#readme`,httpstemplate:({auth:q,domain:Z,user:$,project:Q,committish:K})=>`git+https://${L(q,"@")}${Z}/${$}/${Q}.git${L("#",K)}`,filetemplate:({domain:q,user:Z,project:$,committish:Q,path:K})=>`https://${q}/${Z}/${$}/raw/${E(Q||"HEAD")}/${K}`,shortcuttemplate:({type:q,user:Z,project:$,committish:Q})=>`${q}:${Z}/${$}${L("#",Q)}`,pathtemplate:({user:q,project:Z,committish:$})=>`${q}/${Z}${L("#",$)}`,bugstemplate:({domain:q,user:Z,project:$})=>`https://${q}/${Z}/${$}/issues`,hashformat:a1},l={};l.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:q,user:Z,project:$,committish:Q,path:K})=>`https://${L(q,"@")}raw.githubusercontent.com/${Z}/${$}/${E(Q||"HEAD")}/${K}`,gittemplate:({auth:q,domain:Z,user:$,project:Q,committish:K})=>`git://${L(q,"@")}${Z}/${$}/${Q}.git${L("#",K)}`,tarballtemplate:({domain:q,user:Z,project:$,committish:Q})=>`https://codeload.${q}/${Z}/${$}/tar.gz/${E(Q||"HEAD")}`,extract:(q)=>{let[,Z,$,Q,K]=q.pathname.split("/",5);if(Q&&Q!=="tree")return;if(!Q)K=q.hash.slice(1);if($&&$.endsWith(".git"))$=$.slice(0,-4);if(!Z||!$)return;return{user:Z,project:$,committish:K}}};l.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:q,user:Z,project:$,committish:Q,treepath:K,path:Y,editpath:W})=>`https://${q}/${Z}/${$}${L("/",K,"/",E(Q||"HEAD"),"/",Y,W)}`,tarballtemplate:({domain:q,user:Z,project:$,committish:Q})=>`https://${q}/${Z}/${$}/get/${E(Q||"HEAD")}.tar.gz`,extract:(q)=>{let[,Z,$,Q]=q.pathname.split("/",4);if(["get"].includes(Q))return;if($&&$.endsWith(".git"))$=$.slice(0,-4);if(!Z||!$)return;return{user:Z,project:$,committish:q.hash.slice(1)}}};l.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",tarballtemplate:({domain:q,user:Z,project:$,committish:Q})=>`https://${q}/api/v4/projects/${E(Z+"/"+$)}/repository/archive.tar.gz?sha=${E(Q||"HEAD")}`,extract:(q)=>{let Z=q.pathname.slice(1);if(Z.includes("/-/")||Z.includes("/archive.tar.gz"))return;let $=Z.split("/"),Q=$.pop();if(Q.endsWith(".git"))Q=Q.slice(0,-4);let K=$.join("/");if(!K||!Q)return;return{user:K,project:Q,committish:q.hash.slice(1)}}};l.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:q,project:Z,committish:$})=>`git@${q}:${Z}.git${L("#",$)}`,sshurltemplate:({domain:q,project:Z,committish:$})=>`git+ssh://git@${q}/${Z}.git${L("#",$)}`,edittemplate:({domain:q,user:Z,project:$,committish:Q,editpath:K})=>`https://${q}/${Z}/${$}${L("/",E(Q))}/${K}`,browsetemplate:({domain:q,project:Z,committish:$})=>`https://${q}/${Z}${L("/",E($))}`,browsetreetemplate:({domain:q,project:Z,committish:$,path:Q,hashformat:K})=>`https://${q}/${Z}${L("/",E($))}${L("#",K(Q))}`,browseblobtemplate:({domain:q,project:Z,committish:$,path:Q,hashformat:K})=>`https://${q}/${Z}${L("/",E($))}${L("#",K(Q))}`,docstemplate:({domain:q,project:Z,committish:$})=>`https://${q}/${Z}${L("/",E($))}`,httpstemplate:({domain:q,project:Z,committish:$})=>`git+https://${q}/${Z}.git${L("#",$)}`,filetemplate:({user:q,project:Z,committish:$,path:Q})=>`https://gist.githubusercontent.com/${q}/${Z}/raw${L("/",E($))}/${Q}`,shortcuttemplate:({type:q,project:Z,committish:$})=>`${q}:${Z}${L("#",$)}`,pathtemplate:({project:q,committish:Z})=>`${q}${L("#",Z)}`,bugstemplate:({domain:q,project:Z})=>`https://${q}/${Z}`,gittemplate:({domain:q,project:Z,committish:$})=>`git://${q}/${Z}.git${L("#",$)}`,tarballtemplate:({project:q,committish:Z})=>`https://codeload.github.com/gist/${q}/tar.gz/${E(Z||"HEAD")}`,extract:(q)=>{let[,Z,$,Q]=q.pathname.split("/",4);if(Q==="raw")return;if(!$){if(!Z)return;$=Z,Z=null}if($.endsWith(".git"))$=$.slice(0,-4);return{user:Z,project:$,committish:q.hash.slice(1)}},hashformat:function(q){return q&&"file-"+a1(q)}};l.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:q,user:Z,project:$,committish:Q,path:K})=>`https://${q}/${Z}/${$}/blob/${E(Q)||"HEAD"}/${K}`,httpstemplate:({domain:q,user:Z,project:$,committish:Q})=>`https://${q}/${Z}/${$}${L("#",Q)}`,tarballtemplate:({domain:q,user:Z,project:$,committish:Q})=>`https://${q}/${Z}/${$}/archive/${E(Q)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:(q)=>{let[,Z,$,Q]=q.pathname.split("/",4);if(["archive"].includes(Q))return;if($&&$.endsWith(".git"))$=$.slice(0,-4);if(!Z||!$)return;return{user:Z,project:$,committish:q.hash.slice(1)}}};for(let[q,Z]of Object.entries(l))l[q]=Object.assign({},A5,Z);i1.exports=l});var lq=O((q7,o1)=>{var C5=n("url"),hq=(q,Z,$)=>{let Q=q.indexOf($);return q.lastIndexOf(Z,Q>-1?Q:1/0)},r1=(q)=>{try{return new C5.URL(q)}catch{}},E5=(q,Z)=>{let $=q.indexOf(":"),Q=q.slice(0,$+1);if(Object.prototype.hasOwnProperty.call(Z,Q))return q;if(q.substr($,3)==="://")return q;let K=q.indexOf("@");if(K>-1)if(K>$)return`git+ssh://${q}`;else return q;return`${q.slice(0,$+1)}//${q.slice($+1)}`},H5=(q)=>{let Z=hq(q,"@","#"),$=hq(q,":","#");if($>Z)q=q.slice(0,$)+"/"+q.slice($+1);if(hq(q,":","#")===-1&&q.indexOf("//")===-1)q=`git+ssh://${q}`;return q};o1.exports=(q,Z)=>{let $=Z?E5(q,Z):q;return r1($)||r1(H5($))}});var e1=O((Z7,t1)=>{var k5=lq(),R5=(q)=>{let Z=q.indexOf("#"),$=q.indexOf("/"),Q=q.indexOf("/",$+1),K=q.indexOf(":"),Y=/\s/.exec(q),W=q.indexOf("@"),z=!Y||Z>-1&&Y.index>Z,_=W===-1||Z>-1&&W>Z,I=K===-1||Z>-1&&K>Z,J=Q===-1||Z>-1&&Q>Z,F=$>0,N=Z>-1?q[Z-1]!=="/":!q.endsWith("/"),B=!q.startsWith(".");return z&&F&&N&&B&&_&&I&&J};t1.exports=(q,Z,{gitHosts:$,protocols:Q})=>{if(!q)return;let K=R5(q)?`github:${q}`:q,Y=k5(K,Q);if(!Y)return;let W=$.byShortcut[Y.protocol],z=$.byDomain[Y.hostname.startsWith("www.")?Y.hostname.slice(4):Y.hostname],_=W||z;if(!_)return;let I=$[W||z],J=null;if(Q[Y.protocol]?.auth&&(Y.username||Y.password))J=`${Y.username}${Y.password?":"+Y.password:""}`;let F=null,N=null,B=null,G=null;try{if(W){let x=Y.pathname.startsWith("/")?Y.pathname.slice(1):Y.pathname,H=x.indexOf("@");if(H>-1)x=x.slice(H+1);let U=x.lastIndexOf("/");if(U>-1){if(N=decodeURIComponent(x.slice(0,U)),!N)N=null;B=decodeURIComponent(x.slice(U+1))}else B=decodeURIComponent(x);if(B.endsWith(".git"))B=B.slice(0,-4);if(Y.hash)F=decodeURIComponent(Y.hash.slice(1));G="shortcut"}else{if(!I.protocols.includes(Y.protocol))return;let x=I.extract(Y);if(!x)return;N=x.user&&decodeURIComponent(x.user),B=decodeURIComponent(x.project),F=decodeURIComponent(x.committish),G=Q[Y.protocol]?.name||Y.protocol.slice(0,-1)}}catch(x){if(x instanceof URIError)return;else throw x}return[_,N,J,B,F,G,Z]}});var Z8=O(($7,q8)=>{var{LRUCache:y5}=n1(),w5=s1(),S5=e1(),T5=lq(),gq=new y5({max:1000});function j5(q){try{let{protocol:Z,hostname:$,pathname:Q}=new URL(q);if(!$)return null;let K=/(?:git\+)http:$/.test(Z)?"http:":"https:",Y=Q.replace(/\.git$/,"");return`${K}//${$}${Y}`}catch{return null}}class j{constructor(q,Z,$,Q,K,Y,W={}){Object.assign(this,j.#K[q],{type:q,user:Z,auth:$,project:Q,committish:K,default:Y,opts:W})}static#K={byShortcut:{},byDomain:{}};static#I={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(q,Z){j.#K[q]=Z,j.#K.byDomain[Z.domain]=q,j.#K.byShortcut[`${q}:`]=q,j.#I[`${q}:`]={name:q}}static fromUrl(q,Z){if(typeof q!=="string")return;let $=q+JSON.stringify(Z||{});if(!gq.has($)){let Q=S5(q,Z,{gitHosts:j.#K,protocols:j.#I});gq.set($,Q?new j(...Q):void 0)}return gq.get($)}static fromManifest(q,Z={}){if(!q||typeof q!=="object")return;let $=q.repository,Q=$&&(typeof $==="string"?$:typeof $==="object"&&typeof $.url==="string"?$.url:null);if(!Q)throw Error("no repository");let K=Q&&j.fromUrl(Q.replace(/^git\+/,""),Z)||null;if(K)return K;let Y=j5(Q);return j.fromUrl(Y,Z)||Y}static parseUrl(q){return T5(q)}#Z(q,Z){if(typeof q!=="function")return null;let $={...this,...this.opts,...Z};if(!$.path)$.path="";if($.path.startsWith("/"))$.path=$.path.slice(1);if($.noCommittish)$.committish=null;let Q=q($);return $.noGitPlus&&Q.startsWith("git+")?Q.slice(4):Q}hash(){return this.committish?`#${this.committish}`:""}ssh(q){return this.#Z(this.sshtemplate,q)}sshurl(q){return this.#Z(this.sshurltemplate,q)}browse(q,...Z){if(typeof q!=="string")return this.#Z(this.browsetemplate,q);if(typeof Z[0]!=="string")return this.#Z(this.browsetreetemplate,{...Z[0],path:q});return this.#Z(this.browsetreetemplate,{...Z[1],fragment:Z[0],path:q})}browseFile(q,...Z){if(typeof Z[0]!=="string")return this.#Z(this.browseblobtemplate,{...Z[0],path:q});return this.#Z(this.browseblobtemplate,{...Z[1],fragment:Z[0],path:q})}docs(q){return this.#Z(this.docstemplate,q)}bugs(q){return this.#Z(this.bugstemplate,q)}https(q){return this.#Z(this.httpstemplate,q)}git(q){return this.#Z(this.gittemplate,q)}shortcut(q){return this.#Z(this.shortcuttemplate,q)}path(q){return this.#Z(this.pathtemplate,q)}tarball(q){return this.#Z(this.tarballtemplate,{...q,noCommittish:!1})}file(q,Z){return this.#Z(this.filetemplate,{...Z,path:q})}edit(q,Z){return this.#Z(this.edittemplate,{...Z,path:q})}getDefaultRepresentation(){return this.default}toString(q){if(this.default&&typeof this[this.default]==="function")return this[this.default](q);return this.sshurl(q)}}for(let[q,Z]of Object.entries(w5))j.addHost(q,Z);q8.exports=j});var $8=O((Q7,M5)=>{M5.exports=["_http_agent","_http_client","_http_common","_http_incoming","_http_outgoing","_http_server","_stream_duplex","_stream_passthrough","_stream_readable","_stream_transform","_stream_wrap","_stream_writable","_tls_common","_tls_wrap","assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib","node:sea","node:sqlite","node:test","node:test/reporters"]});var K8=O((K7,Q8)=>{var b5=$8(),v5=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),u5=["node_modules","favicon.ico"];function f5(q){var Z=[],$=[];if(q===null)return $.push("name cannot be null"),Zq(Z,$);if(q===void 0)return $.push("name cannot be undefined"),Zq(Z,$);if(typeof q!=="string")return $.push("name must be a string"),Zq(Z,$);if(!q.length)$.push("name length must be greater than zero");if(q.startsWith("."))$.push("name cannot start with a period");if(q.startsWith("-"))$.push("name cannot start with a hyphen");if(q.match(/^_/))$.push("name cannot start with an underscore");if(q.trim()!==q)$.push("name cannot contain leading or trailing spaces");if(u5.forEach(function(W){if(q.toLowerCase()===W)$.push(W+" is not a valid package name")}),b5.includes(q.toLowerCase()))Z.push(q+" is a core module name");if(q.length>214)Z.push("name can no longer contain more than 214 characters");if(q.toLowerCase()!==q)Z.push("name can no longer contain capital letters");if(/[~'!()*]/.test(q.split("/").slice(-1)[0]))Z.push(`name can no longer contain special characters ("~'!()*")`);if(encodeURIComponent(q)!==q){var Q=q.match(v5);if(Q){var K=Q[1],Y=Q[2];if(Y.startsWith("."))$.push("name cannot start with a period");if(encodeURIComponent(K)===K&&encodeURIComponent(Y)===Y)return Zq(Z,$)}$.push("name can only contain URL-friendly characters")}return Zq(Z,$)}var Zq=function(q,Z){var $={validForNewPackages:Z.length===0&&q.length===0,validForOldPackages:Z.length===0,warnings:q,errors:Z};if(!$.warnings.length)delete $.warnings;if(!$.errors.length)delete $.errors;return $};Q8.exports=f5});var K6=O((Y7,Kq)=>{var Qq=process.platform==="win32",{URL:cq}=n("url"),a=Qq?n("path/win32"):n("path"),{homedir:d5}=n("os"),h5=Z8(),Y8=u1(),_8=K8(),{log:l5}=d1(),I8=Qq?/\\|[/]/:/[/]/,B8=/^(?:git[+])?[a-z]+:/i,g5=/^[^@]+@[^:.]+\.[^:]+:.+$/i,pq=/[.](?:tgz|tar\.gz|tar)$/i,c5=/:[0-9]+(\/|$)/i,m5=/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/,p5=/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;function $q(q,Z){let $,Q;if(typeof q==="object")if(q instanceof Lq&&(!Z||Z===q.where))return q;else if(q.name&&q.rawSpec)return $q.resolve(q.name,q.rawSpec,Z||q.where);else return $q(q.raw,Z||q.where);let K=q.indexOf("@",1),Y=K>0?q.slice(0,K):q;if(B8.test(q))Q=q;else if(g5.test(q))Q=`git+ssh://${q}`;else if(!Y.startsWith("@")&&(I8.test(Y)||pq.test(Y)))Q=q;else if(K>0)$=Y,Q=q.slice(K+1)||"*";else if(_8(q).validForOldPackages)$=q,Q="*";else Q=q;return J8($,Q,Z,q)}function n5(q){if(!q)return!1;if(q.toLowerCase().startsWith("file:"))return!0;if(Qq)return m5.test(q);return p5.test(q)}function a5(q){if(!q)return!1;return q.toLowerCase().startsWith("npm:")}function J8(q,Z,$,Q){let K=new Lq({raw:Q,name:q,rawSpec:Z,fromArgument:Q!=null});if(q)K.name=q;if(!$)$=process.cwd();if(n5(Z))return z8(K,$);else if(a5(Z))return $6(K,$);let Y=h5.fromUrl(Z,{noGitPlus:!0,noCommittish:!0});if(Y)return e5(K,Y);else if(Z&&B8.test(Z))return Z6(K);else if(Z&&(I8.test(Z)||pq.test(Z)))return z8(K,$);else return Q6(K)}function i5(q,Z="https://registry.npmjs.org"){let $=$q(q);if($.type!=="version")throw o5($.type,$.raw);let Q="pkg:npm/"+$.name.replace(/^@/,"%40")+"@"+$.rawSpec;if(Z!=="https://registry.npmjs.org")Q+="?repository_url="+Z;return Q}function s5(q,Z,$){let Q=Error(`Invalid package name "${q}" of package "${$}": ${Z.errors.join("; ")}.`);return Q.code="EINVALIDPACKAGENAME",Q}function r5(q,Z){let $=Error(`Invalid tag name "${q}" of package "${Z}": Tags may not have any characters that encodeURIComponent encodes.`);return $.code="EINVALIDTAGNAME",$}function o5(q,Z){let $=Error(`Invalid type "${q}" of package "${Z}": Purl can only be generated for "version" types.`);return $.code="EINVALIDPURLTYPE",$}class Lq{constructor(q){if(this.type=q.type,this.registry=q.registry,this.where=q.where,q.raw==null)this.raw=q.name?`${q.name}@${q.rawSpec}`:q.rawSpec;else this.raw=q.raw;if(this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=q.rawSpec||"",this.saveSpec=q.saveSpec,this.fetchSpec=q.fetchSpec,q.name)this.setName(q.name);this.gitRange=q.gitRange,this.gitCommittish=q.gitCommittish,this.gitSubdir=q.gitSubdir,this.hosted=q.hosted}setName(q){let Z=_8(q);if(!Z.validForOldPackages)throw s5(q,Z,this.raw);return this.name=q,this.scope=q[0]==="@"?q.slice(0,q.indexOf("/")):void 0,this.escapedName=q.replace("/","%2f"),this}toString(){let q=[];if(this.name!=null&&this.name!=="")q.push(this.name);let Z=this.saveSpec||this.fetchSpec||this.rawSpec;if(Z!=null&&Z!=="")q.push(Z);return q.length?q.join("@"):this.raw}toJSON(){let q=Object.assign({},this);return delete q.hosted,q}}function mq(q,Z){if(!Z){q.gitCommittish=null;return}for(let $ of Z.split("::")){if(!$.includes(":")){if(q.gitRange)throw Error("cannot override existing semver range with a committish");if(q.gitCommittish)throw Error("cannot override existing committish with a second committish");q.gitCommittish=$;continue}let[Q,K]=$.split(":");if(Q==="semver"){if(q.gitCommittish)throw Error("cannot override existing committish with a semver range");if(q.gitRange)throw Error("cannot override existing semver range with a second semver range");q.gitRange=decodeURIComponent(K);continue}if(Q==="path"){if(q.gitSubdir)throw Error("cannot override existing path with a second path");q.gitSubdir=`/${K}`;continue}l5.warn("npm-package-arg",`ignoring unknown key "${Q}"`)}}var t5=new Map([["\x00","%00"],["\t","%09"],[`
3
3
  `,"%0A"],["\r","%0D"],[" ","%20"],['"',"%22"],["#","%23"],["%","%25"],["?","%3F"],["[","%5B"],["\\",Qq?"/":"%5C"],["]","%5D"],["^","%5E"],["|","%7C"],["~","%7E"]]);function W8(q){let Z="";for(let $=0;$<q.length;$++)Z=`${Z}${t5.get(q[$])??q[$]}`;if(Z.startsWith("file:"))return Z;return`file:${Z}`}function z8(q,Z){q.type=pq.test(q.rawSpec)?"file":"directory",q.where=Z;let $=W8(q.rawSpec);if($.startsWith("file:/")){if(/^file:\/\/[^/]/.test($))$=`file:/${$.slice(5)}`;if(/^\/{1,3}\.\.?(\/|$)/.test($.slice(5)))$=$.replace(/^file:\/{1,3}/,"file:")}let Q,K;try{Q=new cq($,`${W8(a.resolve(Z))}/`),K=new cq($)}catch(z){let _=Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(_,{raw:q.rawSpec,spec:q,where:Z,originalError:z})}let Y=decodeURIComponent(K.pathname),W=decodeURIComponent(Q.pathname);if(Qq)Y=Y.replace(/^\/+([a-z]:\/)/i,"$1"),W=W.replace(/^\/+([a-z]:\/)/i,"$1");if(/^\/~(\/|$)/.test(Y))q.saveSpec=`file:${Y.substr(1)}`,W=a.resolve(d5(),Y.substr(3));else if(!a.isAbsolute($.slice(5)))q.saveSpec=`file:${a.relative(Z,W)}`;else q.saveSpec=`file:${a.resolve(W)}`;if(q.fetchSpec=a.resolve(Z,W),q.saveSpec=q.saveSpec.split("\\").join("/"),q.saveSpec.startsWith("file://"))q.saveSpec=`file:/${q.saveSpec.slice(7)}`;return q}function e5(q,Z){return q.type="git",q.hosted=Z,q.saveSpec=Z.toString({noGitPlus:!1,noCommittish:!1}),q.fetchSpec=Z.getDefaultRepresentation()==="shortcut"?null:Z.toString(),mq(q,Z.committish),q}function q6(q,Z){let $=Error(`Unsupported URL Type "${q}": ${Z}`);return $.code="EUNSUPPORTEDPROTOCOL",$}function Z6(q){let Z=q.rawSpec;if(q.saveSpec=Z,Z.startsWith("git+ssh:")){let Q=Z.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(Q&&!Q[1].match(c5))return q.type="git",mq(q,Q[2]),q.fetchSpec=Q[1],q}else if(Z.startsWith("git+file://"))Z=Z.replace(/\\/g,"/");let $=new cq(Z);switch($.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":if(q.type="git",mq(q,$.hash.slice(1)),$.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(Z))q.fetchSpec=`git+file://${$.host.toLowerCase()}:${$.pathname}`;else $.hash="",q.fetchSpec=$.toString();if(q.fetchSpec.startsWith("git+"))q.fetchSpec=q.fetchSpec.slice(4);break;case"http:":case"https:":q.type="remote",q.fetchSpec=q.saveSpec;break;default:throw q6($.protocol,Z)}return q}function $6(q,Z){let $=$q(q.rawSpec.substr(4),Z);if($.type==="alias")throw Error("nested aliases not supported");if(!$.registry)throw Error("aliases only work for registry deps");if(!$.name)throw Error("aliases must have a name");return q.subSpec=$,q.registry=!0,q.type="alias",q.saveSpec=null,q.fetchSpec=null,q}function Q6(q){q.registry=!0;let Z=q.rawSpec.trim();q.saveSpec=null,q.fetchSpec=Z;let $=Y8.valid(Z,!0),Q=Y8.validRange(Z,!0);if($)q.type="version";else if(Q)q.type="range";else{if(encodeURIComponent(Z)!==Z)throw r5(Z,q.raw);q.type="tag"}return q}Kq.exports=$q;Kq.exports.resolve=J8;Kq.exports.toPurl=i5;Kq.exports.Result=Lq});
4
- export{n1 as Qr,Z8 as Rr,K0 as Sr,W0 as Tr,qq as Ur,O1 as Vr,u1 as Wr,d1 as Xr,K6 as Yr};
4
+ export{n1 as lu,Z8 as mu,K0 as nu,W0 as ou,qq as pu,O1 as qu,u1 as ru,d1 as su,K6 as tu};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{mt as e}from"./chunk-6p6m5956.js";class r extends Error{static hasName(t,n){return typeof t==="object"&&t!==null&&"name"in t&&t.name===n}static create(t,n){let s=e.object({name:e.literal(t),data:n}).meta({ref:t}),o=class extends r{data;static Schema=s;name=t;constructor(a,c){super(t,c);this.data=a;this.name=t}static isInstance(a){return typeof a==="object"&&"name"in a&&a.name===t}schema(){return s}toObject(){return{name:t,data:this.data}}};return Object.defineProperty(o,"name",{value:t}),o}static Unknown=r.create("UnknownError",e.object({message:e.string(),diagnostic:e.object({errorID:e.string(),errorName:e.string(),logFile:e.string()}).optional()}))}
3
- export{r as bs};
2
+ import{Jv as e}from"./chunk-0bn86djg.js";class r extends Error{static hasName(t,n){return typeof t==="object"&&t!==null&&"name"in t&&t.name===n}static create(t,n){let s=e.object({name:e.literal(t),data:n}).meta({ref:t}),o=class extends r{data;static Schema=s;name=t;constructor(a,c){super(t,c);this.data=a;this.name=t}static isInstance(a){return typeof a==="object"&&"name"in a&&a.name===t}schema(){return s}toObject(){return{name:t,data:this.data}}};return Object.defineProperty(o,"name",{value:t}),o}static Unknown=r.create("UnknownError",e.object({message:e.string(),diagnostic:e.object({errorID:e.string(),errorName:e.string(),logFile:e.string()}).optional()}))}
3
+ export{r as yu};
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{Od as W$}from"./chunk-bkfafcbw.js";import{Qd as j$}from"./chunk-vkkz40je.js";import{be as A$}from"./chunk-f4mnp6xd.js";import{Zf as J$}from"./chunk-qsme16gk.js";import{lg as Z$}from"./chunk-7r92d7v9.js";import"./chunk-0s4cp6q2.js";import"./chunk-mrq35ftw.js";import"./chunk-nsp1za8t.js";import"./chunk-brk6bge4.js";import"./chunk-nfg7nt13.js";import"./chunk-qgkb6n8k.js";import"./chunk-dcv6wj9x.js";import{Ch as MD,rh as hD}from"./chunk-1acn5me8.js";import"./chunk-vs3s49jw.js";import"./chunk-kre93a89.js";import"./chunk-060wbpz4.js";import"./chunk-zrhw1szj.js";import"./chunk-t8fjgkp8.js";import"./chunk-0egrckx0.js";import{$j as k,Tk as _$,Uk as U,Vj as sD,Wk as G$,ak as P}from"./chunk-k1qd8ecm.js";import"./chunk-bhg69t69.js";import"./chunk-fv5mrdyc.js";import"./chunk-rdreeyv0.js";import"./chunk-rmsqb6r4.js";import"./chunk-7pckez5z.js";import"./chunk-k6981ysw.js";import"./chunk-sa0rrreh.js";import"./chunk-ydgst3h8.js";import"./chunk-6tqbnxar.js";import"./chunk-0w19vmd7.js";import"./chunk-eewe7tx1.js";import{bo as X$,ho as Y$}from"./chunk-4y9wbfd2.js";import"./chunk-wm9nh9nb.js";import{Rp as f$}from"./chunk-scnbt714.js";import"./chunk-cqtkxwd8.js";import"./chunk-y3gy62q5.js";import"./chunk-az3nss5m.js";import"./chunk-p2fte9vz.js";import"./chunk-ggncq8w8.js";import"./chunk-t3w43rft.js";import"./chunk-eacpc64g.js";import"./chunk-27saej0r.js";import"./chunk-b5ym419d.js";import"./chunk-29q89bge.js";import"./chunk-wqk1v8t0.js";import"./chunk-rwwvy89t.js";import"./chunk-z0kbyr00.js";import"./chunk-sbjymf20.js";import"./chunk-dt3bsmfe.js";import"./chunk-vbfej8ds.js";import"./chunk-0tm6589k.js";import"./chunk-fveaq0pb.js";import{es as Q$}from"./chunk-gswhjd1h.js";import"./chunk-wgkcyqn1.js";import{Xs as H}from"./chunk-59csnjc3.js";import{gt as kD,ht as w$}from"./chunk-1bxfzd6r.js";import"./chunk-6p6m5956.js";import{Kt as D}from"./chunk-a48mx917.js";import"./chunk-3va85mbe.js";import"./chunk-w7a33cwa.js";import"./chunk-g7v6sp3c.js";import"./chunk-s2tc3qs0.js";import"./chunk-n6tqtk6h.js";import{vO as ow}from"./chunk-e0vrxetq.js";var O={authenticate:"authenticate",initialize:"initialize",session_cancel:"session/cancel",session_close:"session/close",session_fork:"session/fork",session_list:"session/list",session_load:"session/load",session_new:"session/new",session_prompt:"session/prompt",session_resume:"session/resume",session_set_config_option:"session/set_config_option",session_set_mode:"session/set_mode",session_set_model:"session/set_model"},F={fs_read_text_file:"fs/read_text_file",fs_write_text_file:"fs/write_text_file",session_request_permission:"session/request_permission",session_update:"session/update",terminal_create:"terminal/create",terminal_kill:"terminal/kill",terminal_output:"terminal/output",terminal_release:"terminal/release",terminal_wait_for_exit:"terminal/wait_for_exit"};var K$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),terminal:D.boolean().optional().default(!1)}),B$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),label:D.string().nullish(),name:D.string(),optional:D.boolean().optional().default(!1),secret:D.boolean().optional().default(!0)}),O$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),id:D.string(),name:D.string()}),N$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),id:D.string(),link:D.string().nullish(),name:D.string(),vars:D.array(B$)}),F$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),args:D.array(D.string()).optional(),description:D.string().nullish(),env:D.record(D.string(),D.string()).optional(),id:D.string(),name:D.string()}),L$=D.union([N$.and(D.object({type:D.literal("env_var")})),F$.and(D.object({type:D.literal("terminal")})),O$]),n=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),methodId:D.string()}),x$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),V$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),blob:D.string(),mimeType:D.string().nullish(),uri:D.string()}),H$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),P$=D.object({amount:D.number(),currency:D.string()}),k$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),terminalId:D.string()}),T$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),newText:D.string(),oldText:D.string().nullish(),path:D.string()}),vD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),name:D.string(),value:D.string()}),U$=D.union([D.literal(-32700),D.literal(-32600),D.literal(-32601),D.literal(-32602),D.literal(-32603),D.literal(-32800),D.literal(-32000),D.literal(-32002),D.number().int().min(-2147483648,{message:"Invalid value: Expected int32 to be >= -2147483648"}).max(2147483647,{message:"Invalid value: Expected int32 to be <= 2147483647"})]),ID=D.object({code:U$,data:D.unknown().optional(),message:D.string()}),qD=D.unknown(),SD=D.unknown(),RD=D.unknown(),b$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),readTextFile:D.boolean().optional().default(!1),writeTextFile:D.boolean().optional().default(!1)}),h$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),auth:K$.optional().default({terminal:!1}),fs:b$.optional().default({readTextFile:!1,writeTextFile:!1}),terminal:D.boolean().optional().default(!1)}),cD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),name:D.string(),value:D.string()}),uD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),name:D.string(),title:D.string().nullish(),version:D.string()}),M$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),t=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cursor:D.string().nullish(),cwd:D.string().nullish()}),C$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),http:D.boolean().optional().default(!1),sse:D.boolean().optional().default(!1)}),E$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),headers:D.array(cD),name:D.string(),url:D.string()}),v$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),headers:D.array(cD),name:D.string(),url:D.string()}),I$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),args:D.array(D.string()),command:D.string(),env:D.array(vD),name:D.string()}),I=D.union([E$.and(D.object({type:D.literal("http")})),v$.and(D.object({type:D.literal("sse")})),I$]),o=D.string(),q$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),modelId:o,name:D.string()}),r=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I)}),gD=D.string(),S$=D.union([D.literal("allow_once"),D.literal("allow_always"),D.literal("reject_once"),D.literal("reject_always")]),R$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),kind:S$,name:D.string(),optionId:gD}),c$=D.union([D.literal("high"),D.literal("medium"),D.literal("low")]),u$=D.union([D.literal("pending"),D.literal("in_progress"),D.literal("completed")]),g$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.string(),priority:c$,status:u$}),l$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),entries:D.array(g$)}),d$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),audio:D.boolean().optional().default(!1),embeddedContext:D.boolean().optional().default(!1),image:D.boolean().optional().default(!1)}),lD=D.number().int().gte(0).lte(65535),z=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),clientCapabilities:h$.optional().default({auth:{terminal:!1},fs:{readTextFile:!1,writeTextFile:!1},terminal:!1}),clientInfo:uD.nullish(),protocolVersion:lD}),i$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.string()}),m$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),T=D.union([D.number(),D.string()]).nullable(),sw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),requestId:T}),p$=D.enum(["assistant","user"]),E=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),audience:D.array(p$).nullish(),lastModified:D.string().nullish(),priority:D.number().nullish()}),n$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),data:D.string(),mimeType:D.string()}),t$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),data:D.string(),mimeType:D.string(),uri:D.string().nullish()}),o$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),description:D.string().nullish(),mimeType:D.string().nullish(),name:D.string(),size:D.number().nullish(),title:D.string().nullish(),uri:D.string()}),r$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),optionId:gD}),z$=D.union([D.object({outcome:D.literal("cancelled")}),r$.and(D.object({outcome:D.literal("selected")}))]),a$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),outcome:z$}),s$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),e$=D.object({currentValue:D.boolean()}),Dw=D.string(),dD=D.string(),$w=D.union([D.literal("mode"),D.literal("model"),D.literal("thought_level"),D.string()]),a=D.string(),iD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),name:D.string(),value:a}),ww=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),group:Dw,name:D.string(),options:D.array(iD)}),Qw=D.union([D.array(iD),D.array(ww)]),fw=D.object({currentValue:a,options:Qw}),M=D.intersection(D.union([fw.and(D.object({type:D.literal("select")})),e$.and(D.object({type:D.literal("boolean")}))]),D.object({_meta:D.record(D.string(),D.unknown()).nullish(),category:$w.nullish(),description:D.string().nullish(),id:dD,name:D.string()})),_w=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M)}),Gw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),N=D.string(),s=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N}),ew=D.object({method:D.string(),params:D.union([s,qD]).nullish()}),e=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N}),DD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),args:D.array(D.string()).optional(),command:D.string(),cwd:D.string().nullish(),env:D.array(vD).optional(),outputByteLimit:D.number().nullish(),sessionId:N}),$D=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I).optional(),sessionId:N}),wD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),QD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I),sessionId:N}),fD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),limit:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),line:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),path:D.string(),sessionId:N}),_D=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),GD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I).optional(),sessionId:N}),Jw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),sessionId:N,title:D.string().nullish(),updatedAt:D.string().nullish()}),Xw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),nextCursor:D.string().nullish(),sessions:D.array(Jw)}),Yw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),title:D.string().nullish(),updatedAt:D.string().nullish()}),Zw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),q=D.string(),jw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),currentModeId:q}),Aw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),id:q,name:D.string()}),S=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),availableModes:D.array(Aw),currentModeId:q}),R=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),availableModels:D.array(q$),currentModelId:o}),Ww=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish(),sessionId:N}),yw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish()}),Kw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish(),sessionId:N}),Bw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish()}),Ow=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),Nw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),close:s$.nullish(),fork:Gw.nullish(),list:Zw.nullish(),resume:Ow.nullish()}),Fw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),loadSession:D.boolean().optional().default(!1),mcpCapabilities:C$.optional().default({http:!1,sse:!1}),promptCapabilities:d$.optional().default({audio:!1,embeddedContext:!1,image:!1}),sessionCapabilities:Nw.optional().default({})}),Lw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),agentCapabilities:Fw.optional().default({loadSession:!1,mcpCapabilities:{http:!1,sse:!1},promptCapabilities:{audio:!1,embeddedContext:!1,image:!1},sessionCapabilities:{}}),agentInfo:uD.nullish(),authMethods:D.array(L$).optional().default([]),protocolVersion:lD}),JD=D.intersection(D.union([D.object({type:D.literal("boolean"),value:D.boolean()}),D.object({value:a})]),D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configId:dD,sessionId:N})),xw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M)}),XD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),modeId:q,sessionId:N}),Vw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),YD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),modelId:o,sessionId:N}),Hw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),Pw=D.union([D.literal("end_turn"),D.literal("max_tokens"),D.literal("max_turn_requests"),D.literal("refusal"),D.literal("cancelled")]),kw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),terminalId:D.string()}),Tw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),exitCode:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),signal:D.string().nullish()}),ZD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),Uw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),exitStatus:Tw.nullish(),output:D.string(),truncated:D.boolean()}),bw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),text:D.string()}),hw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),mimeType:D.string().nullish(),text:D.string(),uri:D.string()}),Mw=D.union([hw,V$]),Cw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),resource:Mw}),jD=D.union([bw.and(D.object({type:D.literal("text")})),t$.and(D.object({type:D.literal("image")})),n$.and(D.object({type:D.literal("audio")})),o$.and(D.object({type:D.literal("resource_link")})),Cw.and(D.object({type:D.literal("resource")}))]),Ew=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:jD}),p=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:jD,messageId:D.string().nullish()}),AD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),messageId:D.string().nullish(),prompt:D.array(jD),sessionId:N}),DQ=D.object({id:T,method:D.string(),params:D.union([z,n,r,QD,t,$D,GD,e,XD,JD,AD,YD,SD]).nullish()}),mD=D.union([Ew.and(D.object({type:D.literal("content")})),T$.and(D.object({type:D.literal("diff")})),kw.and(D.object({type:D.literal("terminal")}))]),pD=D.string(),nD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),line:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),path:D.string()}),tD=D.union([D.literal("pending"),D.literal("in_progress"),D.literal("completed"),D.literal("failed")]),oD=D.union([D.literal("read"),D.literal("edit"),D.literal("delete"),D.literal("move"),D.literal("search"),D.literal("execute"),D.literal("think"),D.literal("fetch"),D.literal("switch_mode"),D.literal("other")]),vw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.array(mD).optional(),kind:oD.optional(),locations:D.array(nD).optional(),rawInput:D.unknown().optional(),rawOutput:D.unknown().optional(),status:tD.optional(),title:D.string(),toolCallId:pD}),rD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.array(mD).nullish(),kind:oD.nullish(),locations:D.array(nD).nullish(),rawInput:D.unknown().optional(),rawOutput:D.unknown().optional(),status:tD.nullish(),title:D.string().nullish(),toolCallId:pD}),WD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),options:D.array(R$),sessionId:N,toolCall:rD}),Iw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),hint:D.string()}),qw=Iw,Sw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string(),input:qw.nullish(),name:D.string()}),Rw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),availableCommands:D.array(Sw)}),cw=D.object({cachedReadTokens:D.number().nullish(),cachedWriteTokens:D.number().nullish(),inputTokens:D.number(),outputTokens:D.number(),thoughtTokens:D.number().nullish(),totalTokens:D.number()}),uw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),stopReason:Pw,usage:cw.nullish(),userMessageId:D.string().nullish()}),$Q=D.union([D.object({id:T,result:D.union([Lw,x$,Kw,yw,Xw,Ww,Bw,H$,Vw,xw,uw,Hw,RD])}),D.object({error:ID,id:T})]),gw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cost:P$.nullish(),size:D.number(),used:D.number()}),lw=D.union([p.and(D.object({sessionUpdate:D.literal("user_message_chunk")})),p.and(D.object({sessionUpdate:D.literal("agent_message_chunk")})),p.and(D.object({sessionUpdate:D.literal("agent_thought_chunk")})),vw.and(D.object({sessionUpdate:D.literal("tool_call")})),rD.and(D.object({sessionUpdate:D.literal("tool_call_update")})),l$.and(D.object({sessionUpdate:D.literal("plan")})),Rw.and(D.object({sessionUpdate:D.literal("available_commands_update")})),jw.and(D.object({sessionUpdate:D.literal("current_mode_update")})),_w.and(D.object({sessionUpdate:D.literal("config_option_update")})),Yw.and(D.object({sessionUpdate:D.literal("session_info_update")})),gw.and(D.object({sessionUpdate:D.literal("usage_update")}))]),yD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,update:lw}),wQ=D.object({method:D.string(),params:D.union([yD,qD]).nullish()}),KD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),dw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),exitCode:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),signal:D.string().nullish()}),BD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.string(),path:D.string(),sessionId:N}),QQ=D.object({id:T,method:D.string(),params:D.union([BD,fD,WD,DD,ZD,_D,KD,wD,SD]).nullish()}),iw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),fQ=D.union([D.object({id:T,result:D.union([iw,i$,a$,k$,Uw,m$,dw,M$,RD])}),D.object({error:ID,id:T})]);function zD($,Q){let w=new TextEncoder,f=new TextDecoder,X=new ReadableStream({async start(_){let J="",j=Q.getReader();try{while(!0){let{value:B,done:Y}=await j.read();if(Y)break;if(!B)continue;J+=f.decode(B,{stream:!0});let Z=J.split(`
2
+ import{Qd as W$}from"./chunk-k8zbhj2p.js";import{Sd as j$}from"./chunk-k4ajben7.js";import{de as A$}from"./chunk-b274mb6v.js";import{Vf as J$}from"./chunk-xmt17jd4.js";import{hg as Z$}from"./chunk-bqqxvagz.js";import"./chunk-1dnvdeat.js";import"./chunk-zj5snrsa.js";import"./chunk-3tf7xfw5.js";import"./chunk-egcvm4x2.js";import"./chunk-nfg7nt13.js";import"./chunk-r4qpsa4e.js";import"./chunk-seda5sfd.js";import{nh as hD,yh as MD}from"./chunk-88hmeyf5.js";import"./chunk-aykvrqrp.js";import"./chunk-2h8b0csf.js";import"./chunk-4q14whpc.js";import"./chunk-s81ck6bw.js";import"./chunk-jt7g0r2j.js";import"./chunk-84qx54nf.js";import{Pk as _$,Qk as U,Rj as sD,Sk as G$,Xj as k,Yj as P}from"./chunk-ep92grvg.js";import"./chunk-xf1y0sc6.js";import"./chunk-n24yx79r.js";import"./chunk-5qydhr42.js";import"./chunk-v30ezr68.js";import"./chunk-ex47pb9n.js";import"./chunk-jh2za7y4.js";import"./chunk-s3zmxfz2.js";import"./chunk-krk24aqm.js";import"./chunk-j7d3v0x2.js";import"./chunk-3hawwbw6.js";import"./chunk-4c6d1wy1.js";import"./chunk-vyf77kq1.js";import{sq as X$,yq as Y$}from"./chunk-bxc3z38f.js";import"./chunk-7wshaze9.js";import"./chunk-vbcekkw2.js";import{ms as f$}from"./chunk-4ngvj758.js";import"./chunk-cqtkxwd8.js";import"./chunk-wpkr3vzf.js";import"./chunk-49we3vy1.js";import"./chunk-y7cqyeve.js";import"./chunk-92xxg12q.js";import"./chunk-h8yf5e2e.js";import"./chunk-yvtbt12y.js";import"./chunk-g83d3a0t.js";import"./chunk-1p39y33b.js";import"./chunk-yg0rs4g1.js";import"./chunk-vhh80d5j.js";import"./chunk-wp0xd7at.js";import"./chunk-dzw0j790.js";import"./chunk-rvev3cy6.js";import"./chunk-c53ev0da.js";import"./chunk-78yvbv9b.js";import"./chunk-c5n49vrd.js";import"./chunk-bwzbcwff.js";import{Bu as Q$}from"./chunk-r6055kk0.js";import"./chunk-datctfgt.js";import{sv as H}from"./chunk-x28chfpz.js";import{Dv as kD,Ev as w$}from"./chunk-mnxcykeq.js";import"./chunk-0bn86djg.js";import{fw as D}from"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-cshsqavb.js";import"./chunk-tz60e15h.js";import"./chunk-0tya4pqb.js";import"./chunk-63t0rhc9.js";import{SQ as ow}from"./chunk-9svh74gt.js";var O={authenticate:"authenticate",initialize:"initialize",session_cancel:"session/cancel",session_close:"session/close",session_fork:"session/fork",session_list:"session/list",session_load:"session/load",session_new:"session/new",session_prompt:"session/prompt",session_resume:"session/resume",session_set_config_option:"session/set_config_option",session_set_mode:"session/set_mode",session_set_model:"session/set_model"},F={fs_read_text_file:"fs/read_text_file",fs_write_text_file:"fs/write_text_file",session_request_permission:"session/request_permission",session_update:"session/update",terminal_create:"terminal/create",terminal_kill:"terminal/kill",terminal_output:"terminal/output",terminal_release:"terminal/release",terminal_wait_for_exit:"terminal/wait_for_exit"};var K$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),terminal:D.boolean().optional().default(!1)}),B$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),label:D.string().nullish(),name:D.string(),optional:D.boolean().optional().default(!1),secret:D.boolean().optional().default(!0)}),O$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),id:D.string(),name:D.string()}),N$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),id:D.string(),link:D.string().nullish(),name:D.string(),vars:D.array(B$)}),F$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),args:D.array(D.string()).optional(),description:D.string().nullish(),env:D.record(D.string(),D.string()).optional(),id:D.string(),name:D.string()}),L$=D.union([N$.and(D.object({type:D.literal("env_var")})),F$.and(D.object({type:D.literal("terminal")})),O$]),n=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),methodId:D.string()}),x$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),V$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),blob:D.string(),mimeType:D.string().nullish(),uri:D.string()}),H$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),P$=D.object({amount:D.number(),currency:D.string()}),k$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),terminalId:D.string()}),T$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),newText:D.string(),oldText:D.string().nullish(),path:D.string()}),vD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),name:D.string(),value:D.string()}),U$=D.union([D.literal(-32700),D.literal(-32600),D.literal(-32601),D.literal(-32602),D.literal(-32603),D.literal(-32800),D.literal(-32000),D.literal(-32002),D.number().int().min(-2147483648,{message:"Invalid value: Expected int32 to be >= -2147483648"}).max(2147483647,{message:"Invalid value: Expected int32 to be <= 2147483647"})]),ID=D.object({code:U$,data:D.unknown().optional(),message:D.string()}),qD=D.unknown(),SD=D.unknown(),RD=D.unknown(),b$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),readTextFile:D.boolean().optional().default(!1),writeTextFile:D.boolean().optional().default(!1)}),h$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),auth:K$.optional().default({terminal:!1}),fs:b$.optional().default({readTextFile:!1,writeTextFile:!1}),terminal:D.boolean().optional().default(!1)}),cD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),name:D.string(),value:D.string()}),uD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),name:D.string(),title:D.string().nullish(),version:D.string()}),M$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),t=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cursor:D.string().nullish(),cwd:D.string().nullish()}),C$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),http:D.boolean().optional().default(!1),sse:D.boolean().optional().default(!1)}),E$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),headers:D.array(cD),name:D.string(),url:D.string()}),v$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),headers:D.array(cD),name:D.string(),url:D.string()}),I$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),args:D.array(D.string()),command:D.string(),env:D.array(vD),name:D.string()}),I=D.union([E$.and(D.object({type:D.literal("http")})),v$.and(D.object({type:D.literal("sse")})),I$]),o=D.string(),q$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),modelId:o,name:D.string()}),r=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I)}),gD=D.string(),S$=D.union([D.literal("allow_once"),D.literal("allow_always"),D.literal("reject_once"),D.literal("reject_always")]),R$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),kind:S$,name:D.string(),optionId:gD}),c$=D.union([D.literal("high"),D.literal("medium"),D.literal("low")]),u$=D.union([D.literal("pending"),D.literal("in_progress"),D.literal("completed")]),g$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.string(),priority:c$,status:u$}),l$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),entries:D.array(g$)}),d$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),audio:D.boolean().optional().default(!1),embeddedContext:D.boolean().optional().default(!1),image:D.boolean().optional().default(!1)}),lD=D.number().int().gte(0).lte(65535),z=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),clientCapabilities:h$.optional().default({auth:{terminal:!1},fs:{readTextFile:!1,writeTextFile:!1},terminal:!1}),clientInfo:uD.nullish(),protocolVersion:lD}),i$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.string()}),m$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),T=D.union([D.number(),D.string()]).nullable(),sw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),requestId:T}),p$=D.enum(["assistant","user"]),E=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),audience:D.array(p$).nullish(),lastModified:D.string().nullish(),priority:D.number().nullish()}),n$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),data:D.string(),mimeType:D.string()}),t$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),data:D.string(),mimeType:D.string(),uri:D.string().nullish()}),o$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),description:D.string().nullish(),mimeType:D.string().nullish(),name:D.string(),size:D.number().nullish(),title:D.string().nullish(),uri:D.string()}),r$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),optionId:gD}),z$=D.union([D.object({outcome:D.literal("cancelled")}),r$.and(D.object({outcome:D.literal("selected")}))]),a$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),outcome:z$}),s$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),e$=D.object({currentValue:D.boolean()}),Dw=D.string(),dD=D.string(),$w=D.union([D.literal("mode"),D.literal("model"),D.literal("thought_level"),D.string()]),a=D.string(),iD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),name:D.string(),value:a}),ww=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),group:Dw,name:D.string(),options:D.array(iD)}),Qw=D.union([D.array(iD),D.array(ww)]),fw=D.object({currentValue:a,options:Qw}),M=D.intersection(D.union([fw.and(D.object({type:D.literal("select")})),e$.and(D.object({type:D.literal("boolean")}))]),D.object({_meta:D.record(D.string(),D.unknown()).nullish(),category:$w.nullish(),description:D.string().nullish(),id:dD,name:D.string()})),_w=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M)}),Gw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),N=D.string(),s=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N}),ew=D.object({method:D.string(),params:D.union([s,qD]).nullish()}),e=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N}),DD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),args:D.array(D.string()).optional(),command:D.string(),cwd:D.string().nullish(),env:D.array(vD).optional(),outputByteLimit:D.number().nullish(),sessionId:N}),$D=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I).optional(),sessionId:N}),wD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),QD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I),sessionId:N}),fD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),limit:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),line:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),path:D.string(),sessionId:N}),_D=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),GD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I).optional(),sessionId:N}),Jw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),sessionId:N,title:D.string().nullish(),updatedAt:D.string().nullish()}),Xw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),nextCursor:D.string().nullish(),sessions:D.array(Jw)}),Yw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),title:D.string().nullish(),updatedAt:D.string().nullish()}),Zw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),q=D.string(),jw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),currentModeId:q}),Aw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),id:q,name:D.string()}),S=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),availableModes:D.array(Aw),currentModeId:q}),R=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),availableModels:D.array(q$),currentModelId:o}),Ww=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish(),sessionId:N}),yw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish()}),Kw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish(),sessionId:N}),Bw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish()}),Ow=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),Nw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),close:s$.nullish(),fork:Gw.nullish(),list:Zw.nullish(),resume:Ow.nullish()}),Fw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),loadSession:D.boolean().optional().default(!1),mcpCapabilities:C$.optional().default({http:!1,sse:!1}),promptCapabilities:d$.optional().default({audio:!1,embeddedContext:!1,image:!1}),sessionCapabilities:Nw.optional().default({})}),Lw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),agentCapabilities:Fw.optional().default({loadSession:!1,mcpCapabilities:{http:!1,sse:!1},promptCapabilities:{audio:!1,embeddedContext:!1,image:!1},sessionCapabilities:{}}),agentInfo:uD.nullish(),authMethods:D.array(L$).optional().default([]),protocolVersion:lD}),JD=D.intersection(D.union([D.object({type:D.literal("boolean"),value:D.boolean()}),D.object({value:a})]),D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configId:dD,sessionId:N})),xw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M)}),XD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),modeId:q,sessionId:N}),Vw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),YD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),modelId:o,sessionId:N}),Hw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),Pw=D.union([D.literal("end_turn"),D.literal("max_tokens"),D.literal("max_turn_requests"),D.literal("refusal"),D.literal("cancelled")]),kw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),terminalId:D.string()}),Tw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),exitCode:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),signal:D.string().nullish()}),ZD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),Uw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),exitStatus:Tw.nullish(),output:D.string(),truncated:D.boolean()}),bw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),text:D.string()}),hw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),mimeType:D.string().nullish(),text:D.string(),uri:D.string()}),Mw=D.union([hw,V$]),Cw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),resource:Mw}),jD=D.union([bw.and(D.object({type:D.literal("text")})),t$.and(D.object({type:D.literal("image")})),n$.and(D.object({type:D.literal("audio")})),o$.and(D.object({type:D.literal("resource_link")})),Cw.and(D.object({type:D.literal("resource")}))]),Ew=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:jD}),p=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:jD,messageId:D.string().nullish()}),AD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),messageId:D.string().nullish(),prompt:D.array(jD),sessionId:N}),DQ=D.object({id:T,method:D.string(),params:D.union([z,n,r,QD,t,$D,GD,e,XD,JD,AD,YD,SD]).nullish()}),mD=D.union([Ew.and(D.object({type:D.literal("content")})),T$.and(D.object({type:D.literal("diff")})),kw.and(D.object({type:D.literal("terminal")}))]),pD=D.string(),nD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),line:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),path:D.string()}),tD=D.union([D.literal("pending"),D.literal("in_progress"),D.literal("completed"),D.literal("failed")]),oD=D.union([D.literal("read"),D.literal("edit"),D.literal("delete"),D.literal("move"),D.literal("search"),D.literal("execute"),D.literal("think"),D.literal("fetch"),D.literal("switch_mode"),D.literal("other")]),vw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.array(mD).optional(),kind:oD.optional(),locations:D.array(nD).optional(),rawInput:D.unknown().optional(),rawOutput:D.unknown().optional(),status:tD.optional(),title:D.string(),toolCallId:pD}),rD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.array(mD).nullish(),kind:oD.nullish(),locations:D.array(nD).nullish(),rawInput:D.unknown().optional(),rawOutput:D.unknown().optional(),status:tD.nullish(),title:D.string().nullish(),toolCallId:pD}),WD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),options:D.array(R$),sessionId:N,toolCall:rD}),Iw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),hint:D.string()}),qw=Iw,Sw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string(),input:qw.nullish(),name:D.string()}),Rw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),availableCommands:D.array(Sw)}),cw=D.object({cachedReadTokens:D.number().nullish(),cachedWriteTokens:D.number().nullish(),inputTokens:D.number(),outputTokens:D.number(),thoughtTokens:D.number().nullish(),totalTokens:D.number()}),uw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),stopReason:Pw,usage:cw.nullish(),userMessageId:D.string().nullish()}),$Q=D.union([D.object({id:T,result:D.union([Lw,x$,Kw,yw,Xw,Ww,Bw,H$,Vw,xw,uw,Hw,RD])}),D.object({error:ID,id:T})]),gw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cost:P$.nullish(),size:D.number(),used:D.number()}),lw=D.union([p.and(D.object({sessionUpdate:D.literal("user_message_chunk")})),p.and(D.object({sessionUpdate:D.literal("agent_message_chunk")})),p.and(D.object({sessionUpdate:D.literal("agent_thought_chunk")})),vw.and(D.object({sessionUpdate:D.literal("tool_call")})),rD.and(D.object({sessionUpdate:D.literal("tool_call_update")})),l$.and(D.object({sessionUpdate:D.literal("plan")})),Rw.and(D.object({sessionUpdate:D.literal("available_commands_update")})),jw.and(D.object({sessionUpdate:D.literal("current_mode_update")})),_w.and(D.object({sessionUpdate:D.literal("config_option_update")})),Yw.and(D.object({sessionUpdate:D.literal("session_info_update")})),gw.and(D.object({sessionUpdate:D.literal("usage_update")}))]),yD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,update:lw}),wQ=D.object({method:D.string(),params:D.union([yD,qD]).nullish()}),KD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),dw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),exitCode:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),signal:D.string().nullish()}),BD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.string(),path:D.string(),sessionId:N}),QQ=D.object({id:T,method:D.string(),params:D.union([BD,fD,WD,DD,ZD,_D,KD,wD,SD]).nullish()}),iw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),fQ=D.union([D.object({id:T,result:D.union([iw,i$,a$,k$,Uw,m$,dw,M$,RD])}),D.object({error:ID,id:T})]);function zD($,Q){let w=new TextEncoder,f=new TextDecoder,X=new ReadableStream({async start(_){let J="",j=Q.getReader();try{while(!0){let{value:B,done:Y}=await j.read();if(Y)break;if(!B)continue;J+=f.decode(B,{stream:!0});let Z=J.split(`
3
3
  `);J=Z.pop()||"";for(let A of Z){let y=A.trim();if(y)try{let W=JSON.parse(y);_.enqueue(W)}catch(W){console.error("Failed to parse JSON message:",y,W)}}}}finally{j.releaseLock(),_.close()}}}),G=new WritableStream({async write(_){let J=JSON.stringify(_)+`
4
4
  `,j=$.getWriter();try{await j.write(w.encode(J))}finally{j.releaseLock()}}});return{readable:X,writable:G}}class OD{#D;constructor($,Q){let w=$(this),f=async(G,_)=>{switch(G){case O.initialize:{let J=z.parse(_);return w.initialize(J)}case O.session_new:{let J=r.parse(_);return w.newSession(J)}case O.session_load:{if(!w.loadSession)throw K.methodNotFound(G);let J=QD.parse(_);return w.loadSession(J)}case O.session_list:{if(!w.listSessions)throw K.methodNotFound(G);let J=t.parse(_);return w.listSessions(J)}case O.session_fork:{if(!w.unstable_forkSession)throw K.methodNotFound(G);let J=$D.parse(_);return w.unstable_forkSession(J)}case O.session_resume:{if(!w.unstable_resumeSession)throw K.methodNotFound(G);let J=GD.parse(_);return w.unstable_resumeSession(J)}case O.session_close:{if(!w.unstable_closeSession)throw K.methodNotFound(G);let J=e.parse(_);return w.unstable_closeSession(J)}case O.session_set_mode:{if(!w.setSessionMode)throw K.methodNotFound(G);let J=XD.parse(_);return await w.setSessionMode(J)??{}}case O.authenticate:{let J=n.parse(_);return await w.authenticate(J)??{}}case O.session_prompt:{let J=AD.parse(_);return w.prompt(J)}case O.session_set_model:{if(!w.unstable_setSessionModel)throw K.methodNotFound(G);let J=YD.parse(_);return await w.unstable_setSessionModel(J)??{}}case O.session_set_config_option:{if(!w.setSessionConfigOption)throw K.methodNotFound(G);let J=JD.parse(_);return w.setSessionConfigOption(J)}default:if(w.extMethod)return w.extMethod(G,_);throw K.methodNotFound(G)}},X=async(G,_)=>{switch(G){case O.session_cancel:{let J=s.parse(_);return w.cancel(J)}default:if(w.extNotification)return w.extNotification(G,_);throw K.methodNotFound(G)}};this.#D=new ND(f,X,Q)}async sessionUpdate($){return await this.#D.sendNotification(F.session_update,$)}async requestPermission($){return await this.#D.sendRequest(F.session_request_permission,$)}async readTextFile($){return await this.#D.sendRequest(F.fs_read_text_file,$)}async writeTextFile($){return await this.#D.sendRequest(F.fs_write_text_file,$)??{}}async createTerminal($){let Q=await this.#D.sendRequest(F.terminal_create,$);return new aD(Q.terminalId,$.sessionId,this.#D)}async extMethod($,Q){return await this.#D.sendRequest($,Q)}async extNotification($,Q){return await this.#D.sendNotification($,Q)}get signal(){return this.#D.signal}get closed(){return this.#D.closed}}class aD{id;#D;#$;constructor($,Q,w){this.id=$,this.#D=Q,this.#$=w}async currentOutput(){return await this.#$.sendRequest(F.terminal_output,{sessionId:this.#D,terminalId:this.id})}async waitForExit(){return await this.#$.sendRequest(F.terminal_wait_for_exit,{sessionId:this.#D,terminalId:this.id})}async kill(){return await this.#$.sendRequest(F.terminal_kill,{sessionId:this.#D,terminalId:this.id})??{}}async release(){return await this.#$.sendRequest(F.terminal_release,{sessionId:this.#D,terminalId:this.id})??{}}async[Symbol.asyncDispose](){await this.release()}}class pw{#D;constructor($,Q){let w=$(this),f=async(G,_)=>{switch(G){case F.fs_write_text_file:{let J=BD.parse(_);return w.writeTextFile?.(J)}case F.fs_read_text_file:{let J=fD.parse(_);return w.readTextFile?.(J)}case F.session_request_permission:{let J=WD.parse(_);return w.requestPermission(J)}case F.terminal_create:{let J=DD.parse(_);return w.createTerminal?.(J)}case F.terminal_output:{let J=ZD.parse(_);return w.terminalOutput?.(J)}case F.terminal_release:{let J=_D.parse(_);return await w.releaseTerminal?.(J)??{}}case F.terminal_wait_for_exit:{let J=KD.parse(_);return w.waitForTerminalExit?.(J)}case F.terminal_kill:{let J=wD.parse(_);return await w.killTerminal?.(J)??{}}default:if(w.extMethod)return w.extMethod(G,_);throw K.methodNotFound(G)}},X=async(G,_)=>{switch(G){case F.session_update:{let J=yD.parse(_);return w.sessionUpdate(J)}default:if(w.extNotification)return w.extNotification(G,_);throw K.methodNotFound(G)}};this.#D=new ND(f,X,Q)}async initialize($){return await this.#D.sendRequest(O.initialize,$)}async newSession($){return await this.#D.sendRequest(O.session_new,$)}async loadSession($){return await this.#D.sendRequest(O.session_load,$)??{}}async unstable_forkSession($){return await this.#D.sendRequest(O.session_fork,$)}async listSessions($){return await this.#D.sendRequest(O.session_list,$)}async unstable_resumeSession($){return await this.#D.sendRequest(O.session_resume,$)}async unstable_closeSession($){return await this.#D.sendRequest(O.session_close,$)}async setSessionMode($){return await this.#D.sendRequest(O.session_set_mode,$)??{}}async unstable_setSessionModel($){return await this.#D.sendRequest(O.session_set_model,$)??{}}async setSessionConfigOption($){return await this.#D.sendRequest(O.session_set_config_option,$)}async authenticate($){return await this.#D.sendRequest(O.authenticate,$)??{}}async prompt($){return await this.#D.sendRequest(O.session_prompt,$)}async cancel($){return await this.#D.sendNotification(O.session_cancel,$)}async extMethod($,Q){return await this.#D.sendRequest($,Q)}async extNotification($,Q){return await this.#D.sendNotification($,Q)}get signal(){return this.#D.signal}get closed(){return this.#D.closed}}class ND{#D=new Map;#$=0;#G;#J;#Q;#f=Promise.resolve();#_=new AbortController;#X;constructor($,Q,w){this.#G=$,this.#J=Q,this.#Q=w,this.#X=new Promise((f)=>{this.#_.signal.addEventListener("abort",()=>f())}),this.#Y()}get signal(){return this.#_.signal}get closed(){return this.#X}async#Y(){let $=this.#Q.readable.getReader();try{while(!0){let{value:Q,done:w}=await $.read();if(w)break;if(!Q)continue;try{this.#Z(Q)}catch(f){if(console.error("Unexpected error during message processing:",Q,f),"id"in Q&&Q.id!==void 0)this.#w({jsonrpc:"2.0",id:Q.id,error:{code:-32700,message:"Parse error"}})}}}finally{$.releaseLock(),this.#_.abort()}}async#Z($){if("method"in $&&"id"in $){let Q=await this.#j($.method,$.params);if("error"in Q)console.error("Error handling request",$,Q.error);await this.#w({jsonrpc:"2.0",id:$.id,...Q})}else if("method"in $){let Q=await this.#A($.method,$.params);if("error"in Q)console.error("Error handling notification",$,Q.error)}else if("id"in $)this.#W($);else console.error("Invalid message",{message:$})}async#j($,Q){try{return{result:await this.#G($,Q)??null}}catch(w){if(w instanceof K)return w.toResult();if(w instanceof D.ZodError)return K.invalidParams(w.format()).toResult();let f;if(w instanceof Error)f=w.message;else if(typeof w==="object"&&w!=null&&"message"in w&&typeof w.message==="string")f=w.message;try{return K.internalError(f?JSON.parse(f):{}).toResult()}catch{return K.internalError({details:f}).toResult()}}}async#A($,Q){try{return await this.#J($,Q),{result:null}}catch(w){if(w instanceof K)return w.toResult();if(w instanceof D.ZodError)return K.invalidParams(w.format()).toResult();let f;if(w instanceof Error)f=w.message;else if(typeof w==="object"&&w!=null&&"message"in w&&typeof w.message==="string")f=w.message;try{return K.internalError(f?JSON.parse(f):{}).toResult()}catch{return K.internalError({details:f}).toResult()}}}#W($){let Q=this.#D.get($.id);if(Q){if("result"in $)Q.resolve($.result);else if("error"in $)Q.reject($.error);this.#D.delete($.id)}else console.error("Got response to unknown request",$.id)}async sendRequest($,Q){let w=this.#$++,f=new Promise((X,G)=>{this.#D.set(w,{resolve:X,reject:G})});return await this.#w({jsonrpc:"2.0",id:w,method:$,params:Q}),f}async sendNotification($,Q){await this.#w({jsonrpc:"2.0",method:$,params:Q})}async#w($){return this.#f=this.#f.then(async()=>{let Q=this.#Q.writable.getWriter();try{await Q.write($)}finally{Q.releaseLock()}}).catch((Q)=>{console.error("ACP write error:",Q)}),this.#f}}class K extends Error{code;data;constructor($,Q,w){super(Q);this.code=$,this.name="RequestError",this.data=w}static parseError($,Q){return new K(-32700,`Parse error${Q?`: ${Q}`:""}`,$)}static invalidRequest($,Q){return new K(-32600,`Invalid request${Q?`: ${Q}`:""}`,$)}static methodNotFound($){return new K(-32601,`"Method not found": ${$}`,{method:$})}static invalidParams($,Q){return new K(-32602,`Invalid params${Q?`: ${Q}`:""}`,$)}static internalError($,Q){return new K(-32603,`Internal error${Q?`: ${Q}`:""}`,$)}static authRequired($,Q){return new K(-32000,`Authentication required${Q?`: ${Q}`:""}`,$)}static resourceNotFound($){return new K(-32002,`Resource not found${$?`: ${$}`:""}`,$&&{uri:$})}toResult(){return{error:{code:this.code,message:this.message,data:this.data}}}toErrorResponse(){return{code:this.code,message:this.message,data:this.data}}}var v={};ow(v,{init:()=>zw,Agent:()=>CD,ACP:()=>v});var FD=H.create({service:"acp-session-manager"});class LD{sessions=new Map;sdk;constructor($){this.sdk=$}tryGet($){return this.sessions.get($)}async create($,Q,w){let X=(await this.sdk.session.create({directory:$},{throwOnError:!0}).then((J)=>J.data)).id,_={id:X,cwd:$,mcpServers:Q,createdAt:new Date,model:w};return FD.info("creating_session",{state:_}),this.sessions.set(X,_),_}async load($,Q,w,f){let X=await this.sdk.session.get({sessionID:$,directory:Q},{throwOnError:!0}).then((J)=>J.data),G=f,_={id:$,cwd:Q,mcpServers:w,createdAt:new Date(X.time.created),model:G};return FD.info("loading_session",{state:_}),this.sessions.set($,_),_}get($){let Q=this.sessions.get($);if(!Q)throw FD.error("session not found",{sessionId:$}),K.invalidParams(JSON.stringify({error:`Session not found: ${$}`}));return Q}getModel($){return this.get($).model}setModel($,Q){let w=this.get($);return w.model=Q,this.sessions.set($,w),w}getVariant($){return this.get($).variant}setVariant($,Q){let w=this.get($);return w.variant=Q,this.sessions.set($,w),w}setMode($,Q){let w=this.get($);return w.modeId=Q,this.sessions.set($,w),w}}import{pathToFileURL as c}from"url";var nw=H.create({service:"acp-message-translator"}),tw="default";function b($){switch($.toLocaleLowerCase()){case"bash":return"execute";case"webfetch":return"fetch";case"edit":case"patch":case"write":return"edit";case"grep":case"glob":case"context7_resolve_library_id":case"context7_get_library_docs":return"search";case"read":return"read";default:return"other"}}function u($,Q){switch($.toLocaleLowerCase()){case"read":case"edit":case"write":return Q.filePath?[{path:Q.filePath}]:[];case"glob":case"grep":return Q.path?[{path:Q.path}]:[];case"bash":return[];default:return[]}}function g($){try{if($.startsWith("file://")){let Q=$.slice(7),w=Q.split("/").pop()||Q;return{type:"file",url:$,filename:w,mime:"text/plain"}}if($.startsWith("zed://")){let w=new URL($).searchParams.get("path");if(w){let f=w.split("/").pop()||w;return{type:"file",url:c(w).href,filename:f,mime:"text/plain"}}}return{type:"text",text:$}}catch{return{type:"text",text:$}}}function eD($,Q){let w=sD($,Q);if(w===!1){nw.error("Failed to apply unified diff (context mismatch)");return}return w}function xD($){if($.tool!=="bash")return;if(!("metadata"in $.state)||!$.state.metadata||typeof $.state.metadata!=="object")return;let Q=$.state.metadata.output;if(typeof Q!=="string")return;return Q}function l($){return[...$].sort((Q,w)=>{let f=Q.name.toLowerCase(),X=w.name.toLowerCase();if(f<X)return-1;if(f>X)return 1;return 0})}function VD($,Q){let w=$.find((X)=>X.id===Q.providerID);if(!w)return[];let f=w.models[Q.modelID];if(!f?.variants)return[];return Object.keys(f.variants)}function D$($,Q={}){let w=Q.includeVariants??!1;return $.flatMap((f)=>{let X=Object.values(f.models);return U.sort(X).flatMap((_)=>{let J={modelId:`${f.id}/${_.id}`,name:`${f.name}/${_.name}`};if(!w||!_.variants)return[J];let B=Object.keys(_.variants).filter((Y)=>Y!==tw).map((Y)=>({modelId:`${f.id}/${_.id}/${Y}`,name:`${f.name}/${_.name} (${Y})`}));return[J,...B]})})}function d($,Q,w,f){let X=`${$.providerID}/${$.modelID}`;if(!f||!Q||!w.includes(Q))return X;return`${X}/${Q}`}function HD($){return{opencode:{modelId:`${$.model.providerID}/${$.model.modelID}`,variant:$.variant??null,availableVariants:$.availableVariants}}}function PD($,Q){let w=U.parseModel($),f=Q.find((G)=>G.id===w.providerID);if(!f)return{model:w,variant:void 0};if(f.models[w.modelID])return{model:w,variant:void 0};let X=w.modelID.split("/");if(X.length>1){let G=X[X.length-1],_=X.slice(0,-1).join("/"),J=f.models[_];if(J?.variants&&G in J.variants)return{model:{providerID:w.providerID,modelID:P.make(_)},variant:G}}return{model:w,variant:void 0}}function i($){let Q=[{id:"model",name:"Model",category:"model",type:"select",currentValue:$.currentModelId,options:$.availableModels.map((w)=>({value:w.modelId,name:w.name}))}];if($.modes)Q.push({id:"mode",name:"Session Mode",category:"mode",type:"select",currentValue:$.modes.currentModeId,options:$.modes.availableModes.map((w)=>({value:w.id,name:w.name,...w.description?{description:w.description}:{}}))});return Q}var $$=H.create({service:"acp-permissions"});class TD{connection;sdk;sessionManager;permissionQueues=new Map;permissionOptions=[{optionId:"once",kind:"allow_once",name:"Allow once"},{optionId:"always",kind:"allow_always",name:"Always allow"},{optionId:"reject",kind:"reject_once",name:"Reject"}];constructor($,Q,w){this.connection=$;this.sdk=Q;this.sessionManager=w}handle($){let Q=this.sessionManager.tryGet($.sessionID);if(!Q)return;let f=(this.permissionQueues.get($.sessionID)??Promise.resolve()).then(async()=>{let X=Q.cwd,G=await this.connection.requestPermission({sessionId:$.sessionID,toolCall:{toolCallId:$.tool?.callID??$.id,status:"pending",title:$.permission,rawInput:$.metadata,kind:b($.permission),locations:u($.permission,$.metadata??{})},options:this.permissionOptions}).catch(async(_)=>{$$.error("failed to request permission from ACP",{error:_,permissionID:$.id,sessionID:$.sessionID}),await this.sdk.permission.reply({requestID:$.id,reply:"reject",directory:X});return});if(!G)return;if(G.outcome.outcome!=="selected"){await this.sdk.permission.reply({requestID:$.id,reply:"reject",directory:X});return}if(G.outcome.optionId!=="reject"&&$.permission=="edit"){let _=$.metadata||{},J=typeof _.filepath==="string"?_.filepath:"",j=typeof _.diff==="string"?_.diff:"",B=await kD.exists(J)?await kD.readText(J):"",Y=eD(B,j);if(Y)this.connection.writeTextFile({sessionId:Q.id,path:J,content:Y})}await this.sdk.permission.reply({requestID:$.id,reply:G.outcome.optionId,directory:X})}).catch((X)=>{$$.error("failed to handle permission",{error:X,permissionID:$.id})}).finally(()=>{if(this.permissionQueues.get($.sessionID)===f)this.permissionQueues.delete($.sessionID)});this.permissionQueues.set($.sessionID,f)}}var L=H.create({service:"acp-event-bridge"});class UD{connection;sdk;sessionManager;eventAbort=new AbortController;eventStarted=!1;bashSnapshots=new Map;toolStarts=new Set;permissionHandler;constructor($,Q,w){this.connection=$;this.sdk=Q;this.sessionManager=w;this.permissionHandler=new TD($,Q,w)}start(){if(this.eventStarted)return;this.eventStarted=!0,this.runEventSubscription().catch(($)=>{if(this.eventAbort.signal.aborted)return;L.error("event subscription failed",{error:$})})}stop(){this.eventAbort.abort()}async runEventSubscription(){while(!0){if(this.eventAbort.signal.aborted)return;let $=await this.sdk.global.event({signal:this.eventAbort.signal,sseMaxRetryAttempts:0});for await(let Q of $.stream){if(this.eventAbort.signal.aborted)return;let w=Q?.payload;if(!w)continue;await this.handleEvent(w).catch((f)=>{L.error("failed to handle event",{error:f,type:w.type})})}if(this.eventAbort.signal.aborted)return;await new Promise((Q)=>{let w=()=>{clearTimeout(f),this.eventAbort.signal.removeEventListener("abort",w),Q()},f=setTimeout(w,1000);if(this.eventAbort.signal.addEventListener("abort",w,{once:!0}),this.eventAbort.signal.aborted)w()})}}async handleEvent($){switch($.type){case"permission.asked":{this.permissionHandler.handle($.properties);return}case"message.part.updated":{L.info("message part updated",{event:$.properties});let w=$.properties.part,f=this.sessionManager.tryGet(w.sessionID);if(!f)return;let X=f.id;if(w.type==="tool")switch(await this.toolStart(X,w),w.state.status){case"pending":this.bashSnapshots.delete(w.callID);return;case"running":{let G=xD(w),_=[];if(G){let J=w$.fast(G);if(w.tool==="bash"){if(this.bashSnapshots.get(w.callID)===J){await this.sendToolInProgress(X,w,w.state,[]);return}this.bashSnapshots.set(w.callID,J)}_.push({type:"content",content:{type:"text",text:G}})}await this.sendToolInProgress(X,w,w.state,_);return}case"completed":await this.sendToolCompleted(X,w,w.state);return;case"error":await this.sendToolError(X,w,w.state);return}if(w.type!=="text"&&w.type!=="file")return;return}case"message.part.delta":{let Q=$.properties,w=this.sessionManager.tryGet(Q.sessionID);if(!w)return;let f=w.id,X=await this.sdk.session.message({sessionID:Q.sessionID,messageID:Q.messageID,directory:w.cwd},{throwOnError:!0}).then((_)=>_.data).catch((_)=>{L.error("unexpected error when fetching message",{error:_});return});if(!X||X.info.role!=="assistant")return;let G=X.parts.find((_)=>_.id===Q.partID);if(!G)return;if(G.type==="text"&&Q.field==="text"&&G.ignored!==!0){await this.connection.sessionUpdate({sessionId:f,update:{sessionUpdate:"agent_message_chunk",messageId:Q.messageID,content:{type:"text",text:Q.delta}}}).catch((_)=>{L.error("failed to send text delta to ACP",{error:_})});return}if(G.type==="reasoning"&&Q.field==="text")await this.connection.sessionUpdate({sessionId:f,update:{sessionUpdate:"agent_thought_chunk",messageId:Q.messageID,content:{type:"text",text:Q.delta}}}).catch((_)=>{L.error("failed to send reasoning delta to ACP",{error:_})});return}}}async sendToolInProgress($,Q,w,f){await this.connection.sessionUpdate({sessionId:$,update:{sessionUpdate:"tool_call_update",toolCallId:Q.callID,status:"in_progress",kind:b(Q.tool),title:Q.tool,locations:u(Q.tool,w.input),rawInput:w.input,...f.length>0&&{content:f}}}).catch((X)=>{L.error("failed to send tool in_progress to ACP",{error:X})})}async sendToolCompleted($,Q,w){this.toolStarts.delete(Q.callID),this.bashSnapshots.delete(Q.callID);let f=b(Q.tool),X=[{type:"content",content:{type:"text",text:w.output}}];if(f==="edit"){let G=w.input,_=typeof G.filePath==="string"?G.filePath:"",J=typeof G.oldString==="string"?G.oldString:"",j=typeof G.newString==="string"?G.newString:typeof G.content==="string"?G.content:"";X.push({type:"diff",path:_,oldText:J,newText:j})}await this.connection.sessionUpdate({sessionId:$,update:{sessionUpdate:"tool_call_update",toolCallId:Q.callID,status:"completed",kind:f,content:X,title:w.title,rawInput:w.input,rawOutput:{output:w.output,metadata:w.metadata}}}).catch((G)=>{L.error("failed to send tool completed to ACP",{error:G})})}async sendToolError($,Q,w){this.toolStarts.delete(Q.callID),this.bashSnapshots.delete(Q.callID),await this.connection.sessionUpdate({sessionId:$,update:{sessionUpdate:"tool_call_update",toolCallId:Q.callID,status:"failed",kind:b(Q.tool),title:Q.tool,rawInput:w.input,content:[{type:"content",content:{type:"text",text:w.error}}],rawOutput:{error:w.error,metadata:w.metadata}}}).catch((f)=>{L.error("failed to send tool error to ACP",{error:f})})}async toolStart($,Q){if(this.toolStarts.has(Q.callID))return;this.toolStarts.add(Q.callID),await this.connection.sessionUpdate({sessionId:$,update:{sessionUpdate:"tool_call",toolCallId:Q.callID,title:Q.tool,kind:b(Q.tool),status:"pending",locations:[],rawInput:{}}}).catch((w)=>{L.error("failed to send tool pending to ACP",{error:w})})}async processMessage($){if(L.debug("process message",$),$.info.role!=="assistant"&&$.info.role!=="user")return;let Q=$.info.sessionID;for(let w of $.parts)if(w.type==="tool")switch(await this.toolStart(Q,w),w.state.status){case"pending":this.bashSnapshots.delete(w.callID);break;case"running":{let f=xD(w),X=[];if(f)X.push({type:"content",content:{type:"text",text:f}});await this.sendToolInProgress(Q,w,w.state,X);break}case"completed":await this.sendToolCompleted(Q,w,w.state);break;case"error":await this.sendToolError(Q,w,w.state);break}else if(w.type==="text"){if(w.text){let f=w.synthetic?["assistant"]:w.ignored?["user"]:void 0;await this.connection.sessionUpdate({sessionId:Q,update:{sessionUpdate:$.info.role==="user"?"user_message_chunk":"agent_message_chunk",messageId:$.info.id,content:{type:"text",text:w.text,...f&&{annotations:{audience:f}}}}}).catch((X)=>{L.error("failed to send text to ACP",{error:X})})}}else if(w.type==="file"){let f=w.url,X=w.filename??"file",G=w.mime||"application/octet-stream",_=$.info.role==="user"?"user_message_chunk":"agent_message_chunk";if(f.startsWith("file://"))await this.connection.sessionUpdate({sessionId:Q,update:{sessionUpdate:_,messageId:$.info.id,content:{type:"resource_link",uri:f,name:X,mimeType:G}}}).catch((J)=>{L.error("failed to send resource_link to ACP",{error:J})});else if(f.startsWith("data:")){let J=f.match(/^data:([^;]+);base64,(.*)$/),j=J?.[1],B=J?.[2]??"",Y=j||G;if(Y.startsWith("image/"))await this.connection.sessionUpdate({sessionId:Q,update:{sessionUpdate:_,messageId:$.info.id,content:{type:"image",mimeType:Y,data:B,uri:c(X).href}}}).catch((Z)=>{L.error("failed to send image to ACP",{error:Z})});else{let Z=Y.startsWith("text/")||Y==="application/json",A=c(X).href,y=Z?{uri:A,mimeType:Y,text:Buffer.from(B,"base64").toString("utf-8")}:{uri:A,mimeType:Y,blob:B};await this.connection.sessionUpdate({sessionId:Q,update:{sessionUpdate:_,messageId:$.info.id,content:{type:"resource",resource:y}}}).catch((W)=>{L.error("failed to send resource to ACP",{error:W})})}}}else if(w.type==="reasoning"){if(w.text)await this.connection.sessionUpdate({sessionId:Q,update:{sessionUpdate:"agent_thought_chunk",messageId:$.info.id,content:{type:"text",text:w.text}}}).catch((f)=>{L.error("failed to send reasoning to ACP",{error:f})})}}}var V=H.create({service:"acp-agent"});async function rw($,Q,w,f){return(await $.config.providers({directory:f}).then((J)=>J.data?.providers??[]).catch((J)=>{return V.error("failed to get providers for context limit",{error:J}),[]})).find((J)=>J.id===Q)?.models[w]?.limit.context??null}async function bD($,Q,w,f){let X=await Q.session.messages({sessionID:w,directory:f,agent_id:"main"},{throwOnError:!0}).then((Z)=>Z.data).catch((Z)=>{V.error("failed to fetch messages for usage update",{error:Z});return});if(!X)return;let G=X.filter((Z)=>Z.info.role==="assistant"),_=G[G.length-1];if(!_)return;let J=_.info;if(!J.providerID||!J.modelID)return;let j=await rw(Q,k.make(J.providerID),P.make(J.modelID),f);if(!j)return;let B=J.tokens.input+(J.tokens.cache?.read??0),Y=G.reduce((Z,A)=>Z+A.info.cost,0);await $.sessionUpdate({sessionId:w,update:{sessionUpdate:"usage_update",used:B,size:j,cost:{amount:Y,currency:"USD"}}}).catch((Z)=>{V.error("failed to send usage update",{error:Z})})}async function zw({sdk:$}){return{create:(Q,w)=>{return new CD(Q,w)}}}class CD{connection;config;sdk;sessionManager;eventBridge;constructor($,Q){this.connection=$,this.config=Q,this.sdk=Q.sdk,this.sessionManager=new LD(this.sdk),this.eventBridge=new UD($,this.sdk,this.sessionManager),this.eventBridge.start()}async initialize($){V.info("initialize",{protocolVersion:$.protocolVersion});let Q={description:"Run `qitqode auth login` in the terminal",name:"Login with qitqode",id:"qitqode-login"};if($.clientCapabilities?._meta?.["terminal-auth"]===!0)Q._meta={"terminal-auth":{command:"qitqode",args:["auth","login"],label:"QitQode Login"}};return{protocolVersion:1,agentCapabilities:{loadSession:!0,mcpCapabilities:{http:!0,sse:!0},promptCapabilities:{embeddedContext:!0,image:!0},sessionCapabilities:{fork:{},list:{},resume:{}}},authMethods:[Q],agentInfo:{name:"QitQode",version:Q$}}}async authenticate($){throw Error("Authentication not implemented")}rethrowSessionError($){let Q=G$.fromError($,{providerID:k.make(this.config.defaultModel?.providerID??"unknown")});if(f$.isInstance(Q))throw K.authRequired();throw $}fetchSessionMessages($,Q){return this.sdk.session.messages({sessionID:$,directory:Q,agent_id:"main"},{throwOnError:!0}).then((w)=>w.data).catch((w)=>{V.error("unexpected error when fetching message",{error:w});return})}loadSessionProviders($){return this.sdk.config.providers({directory:$},{throwOnError:!0}).then((Q)=>Q.data.providers)}async newSession($){let Q=$.cwd;try{let w=await h(this.config,Q),X=(await this.sessionManager.create($.cwd,$.mcpServers,w)).id;V.info("creating_session",{sessionId:X,mcpServers:$.mcpServers.length});let G=await this.loadSessionMode({cwd:Q,mcpServers:$.mcpServers,sessionId:X});return{sessionId:X,configOptions:G.configOptions,models:G.models,modes:G.modes,_meta:G._meta}}catch(w){this.rethrowSessionError(w)}}async loadSession($){let{cwd:Q,sessionId:w}=$;try{let f=await h(this.config,Q);await this.sessionManager.load(w,$.cwd,$.mcpServers,f),V.info("load_session",{sessionId:w,mcpServers:$.mcpServers.length});let X=await this.loadSessionMode({cwd:Q,mcpServers:$.mcpServers,sessionId:w}),G=await this.fetchSessionMessages(w,Q),_=G?.findLast((J)=>J.info.role==="user")?.info;if(_?.role==="user"){if(X.models.currentModelId=`${_.model.providerID}/${_.model.modelID}`,this.sessionManager.setModel(w,{providerID:k.make(_.model.providerID),modelID:P.make(_.model.modelID)}),X.modes?.availableModes.some((J)=>J.id===_.agent))X.modes.currentModeId=_.agent,this.sessionManager.setMode(w,_.agent);X.configOptions=i({currentModelId:X.models.currentModelId,availableModels:X.models.availableModels,modes:X.modes})}return await this.replayMessagesAndSendUsage(G,w,Q),X}catch(f){this.rethrowSessionError(f)}}async listSessions($){try{let w=await this.sdk.session.list({directory:$.cwd??void 0,roots:!0},{throwOnError:!0}).then((Z)=>Z.data??[]),f=$.cursor?Number($.cursor):void 0,X=w.toSorted((Z,A)=>A.time.updated-Z.time.updated),G=f?X.filter((Z)=>Z.time.updated<f):X,_=G.slice(0,100),J=_.map((Z)=>({sessionId:Z.id,cwd:Z.directory,title:Z.title,updatedAt:new Date(Z.time.updated).toISOString()})),j=_[_.length-1],B=G.length>100&&j?String(j.time.updated):void 0,Y={sessions:J};if(B)Y.nextCursor=B;return Y}catch(Q){this.rethrowSessionError(Q)}}async unstable_forkSession($){let Q=$.cwd,w=$.mcpServers??[];try{let f=await h(this.config,Q),X=await this.sdk.session.fork({sessionID:$.sessionId,directory:Q},{throwOnError:!0}).then((j)=>j.data);if(!X)throw Error("Fork session returned no data");let G=X.id;await this.sessionManager.load(G,Q,w,f),V.info("fork_session",{sessionId:G,mcpServers:w.length});let _=await this.loadSessionMode({cwd:Q,mcpServers:w,sessionId:G}),J=await this.fetchSessionMessages(G,Q);return await this.replayMessagesAndSendUsage(J,G,Q),_}catch(f){this.rethrowSessionError(f)}}async unstable_resumeSession($){let{cwd:Q,sessionId:w}=$,f=$.mcpServers??[];try{let X=await h(this.config,Q);await this.sessionManager.load(w,Q,f,X),V.info("resume_session",{sessionId:w,mcpServers:f.length});let G=await this.loadSessionMode({cwd:Q,mcpServers:f,sessionId:w});return await bD(this.connection,this.sdk,w,Q),G}catch(X){this.rethrowSessionError(X)}}async loadAvailableModes($){return(await this.config.sdk.app.agents({directory:$},{throwOnError:!0}).then((w)=>w.data)).filter((w)=>w.mode!=="subagent"&&!w.hidden).map((w)=>({id:w.name,name:w.name,description:w.description}))}async resolveModeState($,Q){let w=await this.loadAvailableModes($),f=this.sessionManager.get(Q).modeId||await(async()=>{if(!w.length)return;let X=await MD.runPromise(hD.Service.use((_)=>_.defaultAgent())),G=w.find((_)=>_.name===X)?.id??w[0].id;return this.sessionManager.setMode(Q,G),G})();return{availableModes:w,currentModeId:f}}async replayMessagesAndSendUsage($,Q,w){for(let f of $??[])V.debug("replay message",f),await this.eventBridge.processMessage(f);await bD(this.connection,this.sdk,Q,w)}async resolveModelsAndModes($){let Q=VD($.entries,$.model);$.onVariants?.(Q);let w=D$($.entries,{includeVariants:!0}),f=await this.resolveModeState($.directory,$.sessionId),X=f.currentModeId?{availableModes:f.availableModes,currentModeId:f.currentModeId}:void 0;return{availableVariants:Q,availableModels:w,modes:X}}async loadSessionMode($){let Q=$.cwd,w=await h(this.config,Q),f=$.sessionId,X=await this.sdk.config.providers({directory:Q}).then((W)=>W.data.providers),G=l(X),_=this.sessionManager.getVariant(f),{availableVariants:J,availableModels:j,modes:B}=await this.resolveModelsAndModes({entries:G,model:w,directory:Q,sessionId:f,onVariants:(W)=>{if(_&&!W.includes(_))this.sessionManager.setVariant(f,void 0)}}),Z=(await this.config.sdk.command.list({directory:Q},{throwOnError:!0}).then((W)=>W.data)).map((W)=>({name:W.name,description:W.description??""}));if(!new Set(Z.map((W)=>W.name)).has("compact"))Z.push({name:"compact",description:"summarize the session to reduce context"});let y={};for(let W of $.mcpServers)if("type"in W)y[W.name]={url:W.url,headers:W.headers.reduce((x,{name:C,value:m})=>{return x[C]=m,x},{}),type:"remote"};else y[W.name]={type:"local",command:[W.command,...W.args],environment:W.env.reduce((x,{name:C,value:m})=>{return x[C]=m,x},{})};return await Promise.all(Object.entries(y).map(async([W,x])=>{await this.sdk.mcp.add({directory:Q,name:W,config:x},{throwOnError:!0}).catch((C)=>{V.error("failed to add mcp server",{name:W,error:C})})})),setTimeout(()=>{this.connection.sessionUpdate({sessionId:f,update:{sessionUpdate:"available_commands_update",availableCommands:Z}})},0),{sessionId:f,models:{currentModelId:d(w,_,J,!0),availableModels:j},modes:B,configOptions:i({currentModelId:d(w,_,J,!0),availableModels:j,modes:B}),_meta:HD({model:w,variant:this.sessionManager.getVariant(f),availableVariants:J})}}async unstable_setSessionModel($){let Q=this.sessionManager.get($.sessionId),w=await this.loadSessionProviders(Q.cwd),f=PD($.modelId,w);this.sessionManager.setModel(Q.id,f.model),this.sessionManager.setVariant(Q.id,f.variant);let X=l(w),G=VD(X,f.model);return{_meta:HD({model:f.model,variant:f.variant,availableVariants:G})}}async setSessionMode($){let Q=this.sessionManager.get($.sessionId);if(!(await this.loadAvailableModes(Q.cwd)).some((f)=>f.id===$.modeId))throw Error(`Agent not found: ${$.modeId}`);this.sessionManager.setMode($.sessionId,$.modeId)}async setSessionConfigOption($){let Q=this.sessionManager.get($.sessionId),w=await this.loadSessionProviders(Q.cwd),f=l(w);if($.configId==="model"){if(typeof $.value!=="string")throw K.invalidParams("model value must be a string");let Y=PD($.value,w);this.sessionManager.setModel(Q.id,Y.model),this.sessionManager.setVariant(Q.id,Y.variant)}else if($.configId==="mode"){if(typeof $.value!=="string")throw K.invalidParams("mode value must be a string");if(!(await this.loadAvailableModes(Q.cwd)).some((Z)=>Z.id===$.value))throw K.invalidParams(JSON.stringify({error:`Mode not found: ${$.value}`}));this.sessionManager.setMode(Q.id,$.value)}else throw K.invalidParams(JSON.stringify({error:`Unknown config option: ${$.configId}`}));let X=this.sessionManager.get(Q.id),G=X.model??await h(this.config,Q.cwd),{availableVariants:_,availableModels:J,modes:j}=await this.resolveModelsAndModes({entries:f,model:G,directory:Q.cwd,sessionId:Q.id}),B=d(G,X.variant,_,!0);return{configOptions:i({currentModelId:B,availableModels:J,modes:j})}}async prompt($){let Q=$.sessionId,w=this.sessionManager.get(Q),f=w.cwd,X=w.model,G=X??await h(this.config,f);if(!X)this.sessionManager.setModel(w.id,G);let _=w.modeId??await MD.runPromise(hD.Service.use((A)=>A.defaultAgent())),J=[];for(let A of $.prompt)switch(A.type){case"text":{let y=A.annotations?.audience,W=y?.length===1&&y[0]==="assistant",x=y?.length===1&&y[0]==="user";J.push({type:"text",text:A.text,...W&&{synthetic:!0},...x&&{ignored:!0}});break}case"image":{let y=g(A.uri??""),W=y.type==="file"?y.filename:"image";if(A.data)J.push({type:"file",url:`data:${A.mimeType};base64,${A.data}`,filename:W,mime:A.mimeType});else if(A.uri&&A.uri.startsWith("http:"))J.push({type:"file",url:A.uri,filename:W,mime:A.mimeType});break}case"resource_link":{let y=g(A.uri);if(A.name&&y.type==="file")y.filename=A.name;J.push(y);break}case"resource":{let y=A.resource;if("text"in y&&y.text)J.push({type:"text",text:y.text});else if("blob"in y&&y.blob&&y.mimeType){let W=g(y.uri??""),x=W.type==="file"?W.filename:"file";J.push({type:"file",url:`data:${y.mimeType};base64,${y.blob}`,filename:x,mime:y.mimeType})}break}default:break}V.info("parts",{parts:J});let j=(()=>{let A=J.filter((x)=>x.type==="text").map((x)=>x.text).join("").trim();if(!A.startsWith("/"))return;let[y,...W]=A.slice(1).split(/\s+/);return{name:y,args:W.join(" ").trim()}})(),B=(A)=>({totalTokens:A.tokens.input+A.tokens.output+A.tokens.reasoning+(A.tokens.cache?.read??0)+(A.tokens.cache?.write??0),inputTokens:A.tokens.input,outputTokens:A.tokens.output,thoughtTokens:A.tokens.reasoning||void 0,cachedReadTokens:A.tokens.cache?.read||void 0,cachedWriteTokens:A.tokens.cache?.write||void 0}),Y,Z=!1;if(!j)Z=!0,Y=(await this.sdk.session.prompt({sessionID:Q,model:{providerID:G.providerID,modelID:G.modelID},variant:this.sessionManager.getVariant(Q),parts:J,agent:_,directory:f})).data?.info;else{let A=await this.config.sdk.command.list({directory:f},{throwOnError:!0}).then((y)=>y.data.find((W)=>W.name===j.name));if(A)Z=!0,Y=(await this.sdk.session.command({sessionID:Q,command:A.name,arguments:j.args,model:G.providerID+"/"+G.modelID,agent:_,directory:f})).data?.info;else switch(j.name){case"compact":await this.config.sdk.session.summarize({sessionID:Q,directory:f,providerID:G.providerID,modelID:G.modelID},{throwOnError:!0});break}}return await bD(this.connection,this.sdk,Q,f),{stopReason:"end_turn",...Z?{usage:Y?B(Y):void 0}:{},_meta:{}}}async cancel($){let Q=this.sessionManager.get($.sessionId);await this.config.sdk.session.abort({sessionID:$.sessionId,directory:Q.cwd},{throwOnError:!0})}}async function h($,Q){let{sdk:w,defaultModel:f}=$;if(f)return f;let X=Q??process.cwd(),G=await w.config.get({directory:X},{throwOnError:!0}).then((Y)=>{let Z=Y.data;if(!Z||!Z.model)return;return U.parseModel(Z.model)}).catch((Y)=>{V.error("failed to load user config for default model",{error:Y});return}),_=await w.config.providers({directory:X},{throwOnError:!0}).then((Y)=>Y.data?.providers??[]).catch((Y)=>{return V.error("failed to list providers for default model",{error:Y}),[]});if(G&&_.length){let Y=_.find((Z)=>Z.id===G.providerID);if(Y&&Y.models[G.modelID])return G}if(G&&!_.length)return G;let J=_.find((Y)=>Y.id==="opencode");if(J){if(J.models["big-pickle"])return{providerID:k.opencode,modelID:P.make("big-pickle")};let[Y]=U.sort(Object.values(J.models));if(Y)return{providerID:k.make(Y.providerID),modelID:P.make(Y.id)}}for(let Y of["default","fast","economical","power"]){let Z=_$[Y];if(!Z)continue;if(_.find((y)=>y.id===Z.providerID)?.models[Z.modelID])return{providerID:k.make(Z.providerID),modelID:P.make(Z.modelID)}}let j=_.flatMap((Y)=>Object.values(Y.models)),[B]=U.sort(j);if(B)return{providerID:k.make(B.providerID),modelID:P.make(B.id)};if(G)return G;return{providerID:k.opencode,modelID:P.make("big-pickle")}}var ED=H.create({service:"acp-command"}),sQ=A$({command:"acp",describe:"start ACP (Agent Client Protocol) server",builder:($)=>{return J$($).option("cwd",{describe:"working directory",type:"string",default:process.cwd()})},handler:async($)=>{if(process.env.QITQODE_CLIENT="acp",process.env.QITQODE_KEY)ED.info("Using QITQODE_KEY for authentication.");else if(!await Y$())ED.warn("No QitQode credential found. AI features will not work until you sign in (`qitqode auth login`) or set QITQODE_KEY.");await j$(process.cwd(),async()=>{let Q=await W$($),w=await Z$.listen(Q),f=X$({baseUrl:`http://${w.hostname}:${w.port}`}),X=new WritableStream({write(j){return new Promise((B,Y)=>{process.stdout.write(j,(Z)=>{if(Z)Y(Z);else B()})})}}),G=new ReadableStream({start(j){process.stdin.on("data",(B)=>{j.enqueue(new Uint8Array(B))}),process.stdin.on("end",()=>j.close()),process.stdin.on("error",(B)=>j.error(B))}}),_=zD(X,G),J=await v.init({sdk:f});new OD((j)=>{return J.create(j,{sdk:f})},_),ED.info("setup connection"),process.stdin.resume(),await new Promise((j,B)=>{process.stdin.on("end",j),process.stdin.on("error",B)})})}});export{sQ as AcpCommand};