@qitqode/qitqode-android-arm64 0.2.6 → 0.2.8

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 (408) hide show
  1. package/bundle/chunk-03zpnwk2.js +2 -0
  2. package/bundle/{chunk-p54bzjtv.js → chunk-060wbpz4.js} +1 -1
  3. package/bundle/{chunk-j0bwa5dk.js → chunk-0a4pmkc9.js} +2 -2
  4. package/bundle/chunk-0aqdzyar.js +2 -0
  5. package/bundle/{chunk-vygkwwjd.js → chunk-0egrckx0.js} +2 -2
  6. package/bundle/{chunk-bwbqkfv0.js → chunk-0ffmwhw7.js} +1 -1
  7. package/bundle/{chunk-953pqp3w.js → chunk-0tcggtwv.js} +1 -1
  8. package/bundle/{chunk-tkrwcjkr.js → chunk-0tm6589k.js} +2 -2
  9. package/bundle/{chunk-y7hgevfv.js → chunk-0w19vmd7.js} +2 -2
  10. package/bundle/{chunk-ehb4hd9c.js → chunk-0z1keh2w.js} +1 -1
  11. package/bundle/{chunk-at22twxx.js → chunk-1bxfzd6r.js} +2 -2
  12. package/bundle/{chunk-48r70n4s.js → chunk-1har4t9a.js} +1 -1
  13. package/bundle/{chunk-sfw5qddj.js → chunk-1p9s5jj1.js} +1 -1
  14. package/bundle/{chunk-2md6sx8d.js → chunk-1rgt2vmt.js} +1 -1
  15. package/bundle/{chunk-ksme3gj1.js → chunk-1v0khv7p.js} +1 -1
  16. package/bundle/{chunk-a7rp46yt.js → chunk-26cr51wa.js} +5 -5
  17. package/bundle/{chunk-fhqfqd5v.js → chunk-27saej0r.js} +2 -2
  18. package/bundle/{chunk-9hz56z6a.js → chunk-29gwtcey.js} +1 -1
  19. package/bundle/chunk-2a5gjgvp.js +2 -0
  20. package/bundle/{chunk-venprxdp.js → chunk-2caaqmec.js} +1 -1
  21. package/bundle/{chunk-ff548b0j.js → chunk-2kh0tg92.js} +2 -2
  22. package/bundle/{chunk-6evh2ke8.js → chunk-2nheahmq.js} +1 -1
  23. package/bundle/chunk-2pkfphgb.js +2 -0
  24. package/bundle/{chunk-99s035f0.js → chunk-2qm46qvn.js} +2 -2
  25. package/bundle/{chunk-8e4s6nc2.js → chunk-2t5yh25f.js} +1 -1
  26. package/bundle/{chunk-k1nh5sd2.js → chunk-2vaphpz0.js} +1 -1
  27. package/bundle/{chunk-f3zmdfqa.js → chunk-33ebjca6.js} +1 -1
  28. package/bundle/{chunk-2drzgtv3.js → chunk-35fj1sfm.js} +2 -2
  29. package/bundle/chunk-37cbrnke.js +8 -0
  30. package/bundle/{chunk-3kpse7zy.js → chunk-3bb4aqh9.js} +1 -1
  31. package/bundle/chunk-3cx4p07h.js +2 -0
  32. package/bundle/chunk-3f2cjzb4.js +2 -0
  33. package/bundle/chunk-3qvap1kv.js +2 -0
  34. package/bundle/{chunk-p6crzjtf.js → chunk-3va85mbe.js} +2 -2
  35. package/bundle/{chunk-y67kaj0b.js → chunk-3z2zn8rj.js} +1 -1
  36. package/bundle/{chunk-bzebyyfr.js → chunk-3zwma68w.js} +4 -4
  37. package/bundle/{chunk-4pshnq6g.js → chunk-4064rbtp.js} +1 -1
  38. package/bundle/chunk-42hvspe7.js +2 -0
  39. package/bundle/chunk-452tk6v3.js +2 -0
  40. package/bundle/{chunk-ejqzcdcx.js → chunk-48gap82w.js} +1 -1
  41. package/bundle/{chunk-ycvwpmd9.js → chunk-4aajzxm9.js} +2 -2
  42. package/bundle/chunk-4gqb1hps.js +2 -0
  43. package/bundle/{chunk-e8p92vz4.js → chunk-4pmvxnkj.js} +2 -2
  44. package/bundle/chunk-50qgz5ka.js +2 -0
  45. package/bundle/{chunk-zc0cdvcv.js → chunk-52xvhxek.js} +2 -2
  46. package/bundle/{chunk-y0527cg0.js → chunk-56wq8cqj.js} +1 -1
  47. package/bundle/{chunk-tzb26ntq.js → chunk-58f4y4b7.js} +3 -3
  48. package/bundle/{chunk-tr6rdr6h.js → chunk-59csnjc3.js} +2 -2
  49. package/bundle/chunk-5b0xyq5z.js +2 -0
  50. package/bundle/{chunk-mn9end71.js → chunk-5bv63rqj.js} +1 -1
  51. package/bundle/{chunk-w4synhfg.js → chunk-5cw8235e.js} +1 -1
  52. package/bundle/{chunk-5asx1706.js → chunk-5f0nhthe.js} +2 -2
  53. package/bundle/chunk-5j4nxpdy.js +2 -0
  54. package/bundle/{chunk-cbnkx933.js → chunk-5nmm1kvx.js} +2 -2
  55. package/bundle/chunk-5nxgk6hw.js +2 -0
  56. package/bundle/chunk-5qkvhr6y.js +2 -0
  57. package/bundle/{chunk-avefgbjg.js → chunk-5r7c6vvx.js} +2 -2
  58. package/bundle/{chunk-z6sbjvtv.js → chunk-5wx962mw.js} +1 -1
  59. package/bundle/{chunk-mhhtf0v3.js → chunk-5xkp27b1.js} +1 -1
  60. package/bundle/chunk-66qmmmdp.js +2 -0
  61. package/bundle/{chunk-3cr2p4mp.js → chunk-66wv82vf.js} +1 -1
  62. package/bundle/chunk-6dpdkzrk.js +2 -0
  63. package/bundle/chunk-6p6m5956.js +3 -0
  64. package/bundle/{chunk-dnsh1v42.js → chunk-6ps30qax.js} +2 -2
  65. package/bundle/{chunk-hqbbs9dm.js → chunk-6qwk6z87.js} +3 -3
  66. package/bundle/{chunk-khzzmyk2.js → chunk-6tqbnxar.js} +1 -1
  67. package/bundle/chunk-6yhn9syz.js +2 -0
  68. package/bundle/{chunk-m5dm7a1t.js → chunk-72crs18f.js} +1 -1
  69. package/bundle/{chunk-hwrrrbqd.js → chunk-7adsab4h.js} +1 -1
  70. package/bundle/{chunk-97q2t1yz.js → chunk-7b60whxm.js} +1 -1
  71. package/bundle/chunk-7g59hc61.js +2 -0
  72. package/bundle/{chunk-5pzs51sp.js → chunk-7jy53zqy.js} +1 -1
  73. package/bundle/chunk-7p88j56s.js +2 -0
  74. package/bundle/{chunk-3jf3jhrs.js → chunk-7thhd7ds.js} +1 -1
  75. package/bundle/chunk-7trngc9g.js +2 -0
  76. package/bundle/{chunk-5df5aja0.js → chunk-82xrfk5x.js} +2 -2
  77. package/bundle/{chunk-jqk3v8d6.js → chunk-85wh85pk.js} +1 -1
  78. package/bundle/chunk-8cebbmtf.js +2 -0
  79. package/bundle/chunk-8csas2jc.js +2 -0
  80. package/bundle/chunk-8g4jdqq1.js +2 -0
  81. package/bundle/chunk-8j1xcdmd.js +2 -0
  82. package/bundle/{chunk-7vmx8bg9.js → chunk-8jmb5bd4.js} +2 -2
  83. package/bundle/{chunk-8wwdrwf2.js → chunk-8p0t8qah.js} +1 -1
  84. package/bundle/{chunk-bbng1cea.js → chunk-8ysp6vf8.js} +1 -1
  85. package/bundle/{chunk-rn83r0js.js → chunk-8yzghzjq.js} +1 -1
  86. package/bundle/{chunk-q3nvzhyh.js → chunk-9009v4d0.js} +2 -2
  87. package/bundle/chunk-90r2z49k.js +2 -0
  88. package/bundle/{chunk-j164q40b.js → chunk-92r1gw2j.js} +2 -2
  89. package/bundle/chunk-94mjwy22.js +2 -0
  90. package/bundle/{chunk-xdteq9bd.js → chunk-9cf2ktyh.js} +1 -1
  91. package/bundle/{chunk-ngfxxfem.js → chunk-9cn8cmt0.js} +1 -1
  92. package/bundle/{chunk-55ykn8nz.js → chunk-a1z8rnq7.js} +4 -4
  93. package/bundle/{chunk-j9h1sp4g.js → chunk-a48mx917.js} +2 -2
  94. package/bundle/{chunk-et3804wr.js → chunk-a8bjcvda.js} +1 -1
  95. package/bundle/chunk-aenrd7dk.js +2 -0
  96. package/bundle/{chunk-cz5vta94.js → chunk-afr8m0q1.js} +1 -1
  97. package/bundle/{chunk-f31yvp20.js → chunk-ag8wxwwz.js} +1 -1
  98. package/bundle/chunk-ahmy80vb.js +2 -0
  99. package/bundle/chunk-avn12jkt.js +2 -0
  100. package/bundle/{chunk-6scf311w.js → chunk-ax64ngf2.js} +1 -1
  101. package/bundle/{chunk-43ttzy29.js → chunk-ayb3bdb7.js} +2 -2
  102. package/bundle/{chunk-dnnkq5y4.js → chunk-az3nss5m.js} +2 -2
  103. package/bundle/chunk-b7ncyat6.js +2 -0
  104. package/bundle/{chunk-g3wvtyw3.js → chunk-b7sr9rn3.js} +1 -1
  105. package/bundle/{chunk-24rkf2gk.js → chunk-bc2krtaf.js} +1 -1
  106. package/bundle/{chunk-gjd3wf8b.js → chunk-bjv1h2dq.js} +1 -1
  107. package/bundle/{chunk-cng61dby.js → chunk-bnaj2hh3.js} +1 -1
  108. package/bundle/{chunk-70q8qcb2.js → chunk-bpfq8fz4.js} +1 -1
  109. package/bundle/chunk-brk6bge4.js +3 -0
  110. package/bundle/{chunk-eg3syjtv.js → chunk-bwadggys.js} +2 -2
  111. package/bundle/chunk-c2a74stf.js +2 -0
  112. package/bundle/{chunk-q9tgdghx.js → chunk-c3yjbent.js} +1 -1
  113. package/bundle/{chunk-7x6yrtzn.js → chunk-c76cjhn0.js} +1 -1
  114. package/bundle/{chunk-21rq4592.js → chunk-ccf4pgkr.js} +2 -2
  115. package/bundle/chunk-ce5e7j62.js +2 -0
  116. package/bundle/{chunk-tm34qp8j.js → chunk-cf9m9m9q.js} +1 -1
  117. package/bundle/{chunk-39z96pc6.js → chunk-cfwz1hgr.js} +3 -3
  118. package/bundle/{chunk-jww55nk9.js → chunk-cghz0855.js} +1 -1
  119. package/bundle/{chunk-5c2438af.js → chunk-cr5tknvb.js} +1 -1
  120. package/bundle/chunk-cw1gwjx9.js +2 -0
  121. package/bundle/chunk-czw30fjs.js +2 -0
  122. package/bundle/{chunk-05ck7acg.js → chunk-d30k7dpf.js} +1 -1
  123. package/bundle/{chunk-mjjaezwq.js → chunk-d839fr0w.js} +2 -2
  124. package/bundle/{chunk-nmzrrqgb.js → chunk-ddx2pcr4.js} +1 -1
  125. package/bundle/{chunk-pmg53fdd.js → chunk-dgcannw0.js} +1 -1
  126. package/bundle/{chunk-vnrjk2be.js → chunk-dhvx9p54.js} +1 -1
  127. package/bundle/chunk-dmkgjf1v.js +3 -0
  128. package/bundle/{chunk-nj1ntakd.js → chunk-dt3bsmfe.js} +2 -2
  129. package/bundle/chunk-dwhsvpag.js +2 -0
  130. package/bundle/{chunk-0smnwqk6.js → chunk-dwkrqtbc.js} +2 -2
  131. package/bundle/chunk-e01jgnnm.js +2 -0
  132. package/bundle/chunk-e0hfpdje.js +2 -0
  133. package/bundle/{chunk-r9w0thdk.js → chunk-e0vrxetq.js} +1 -1
  134. package/bundle/{chunk-k4gsktts.js → chunk-e2wfj86b.js} +1 -1
  135. package/bundle/chunk-e5jk67xh.js +2 -0
  136. package/bundle/{chunk-wkg3c643.js → chunk-eacpc64g.js} +2 -2
  137. package/bundle/{chunk-47k5jy1p.js → chunk-eewe7tx1.js} +2 -2
  138. package/bundle/{chunk-y29ejqg2.js → chunk-eg1m81ax.js} +1 -1
  139. package/bundle/chunk-eg4pq4hv.js +2 -0
  140. package/bundle/{chunk-bne5w117.js → chunk-ejhhrece.js} +3 -3
  141. package/bundle/{chunk-d7nsd979.js → chunk-epmc4aht.js} +1 -1
  142. package/bundle/chunk-ew3yz97p.js +2 -0
  143. package/bundle/{chunk-32j0q58h.js → chunk-eyr5ymt8.js} +1 -1
  144. package/bundle/chunk-ezgfhy4e.js +2 -0
  145. package/bundle/{chunk-45a4n21f.js → chunk-f2v4g7t1.js} +1 -1
  146. package/bundle/chunk-f2yfyhh8.js +2 -0
  147. package/bundle/chunk-f30em1wx.js +2 -0
  148. package/bundle/{chunk-5w76kdjr.js → chunk-f4mnp6xd.js} +1 -1
  149. package/bundle/{chunk-bkct64rs.js → chunk-f81kk8ra.js} +1 -1
  150. package/bundle/{chunk-3ktzxj69.js → chunk-f8cae1ap.js} +1 -1
  151. package/bundle/{chunk-ybane1en.js → chunk-fa8pwdwv.js} +1 -1
  152. package/bundle/{chunk-wwdpw27v.js → chunk-fej5x648.js} +1 -1
  153. package/bundle/{chunk-8yvx3pgy.js → chunk-fge37dke.js} +1 -1
  154. package/bundle/{chunk-nty5z2cj.js → chunk-fh3d0wce.js} +1 -1
  155. package/bundle/{chunk-gszvgz76.js → chunk-fjftb2sz.js} +2 -2
  156. package/bundle/{chunk-c36p881g.js → chunk-fs1vb39f.js} +3 -3
  157. package/bundle/{chunk-0xrb12s8.js → chunk-ftvvm4r5.js} +2 -2
  158. package/bundle/{chunk-nrat6ncm.js → chunk-fw1f47de.js} +1 -1
  159. package/bundle/{chunk-m7ganre7.js → chunk-g26redah.js} +1 -1
  160. package/bundle/{chunk-7g66qc1v.js → chunk-g3n465ee.js} +2 -2
  161. package/bundle/{chunk-313zqzc1.js → chunk-g4tyaj0m.js} +1 -1
  162. package/bundle/{chunk-fjbv3jht.js → chunk-g6y2c5az.js} +1 -1
  163. package/bundle/{chunk-qnvsqnz5.js → chunk-g7v6sp3c.js} +2 -2
  164. package/bundle/{chunk-n23d0q00.js → chunk-g878zd6e.js} +1 -1
  165. package/bundle/{chunk-p5be5ddp.js → chunk-g9nwqwqp.js} +1 -1
  166. package/bundle/chunk-gbvm6dpv.js +2 -0
  167. package/bundle/{chunk-fsqses4g.js → chunk-gc5rhnht.js} +2 -2
  168. package/bundle/{chunk-kengqzja.js → chunk-gefx3n08.js} +2 -2
  169. package/bundle/{chunk-yz25607t.js → chunk-ggncq8w8.js} +1 -1
  170. package/bundle/{chunk-7mppvhv9.js → chunk-gsg6zn7e.js} +2 -2
  171. package/bundle/{chunk-5nrc5rhh.js → chunk-gznt3dv8.js} +1 -1
  172. package/bundle/{chunk-p169ee92.js → chunk-h1bvqstw.js} +1 -1
  173. package/bundle/{chunk-pe2xdkez.js → chunk-h4hs2rhf.js} +2 -2
  174. package/bundle/chunk-h5w91zr4.js +2 -0
  175. package/bundle/{chunk-d6jhs818.js → chunk-h8mfbbjh.js} +2 -2
  176. package/bundle/{chunk-hjt94wce.js → chunk-he9kpk9r.js} +282 -276
  177. package/bundle/chunk-hmpb3c21.js +2 -0
  178. package/bundle/{chunk-920z7g7j.js → chunk-hz02vrqs.js} +1 -1
  179. package/bundle/{chunk-68v3b6ns.js → chunk-j10a984e.js} +2 -2
  180. package/bundle/chunk-j32rr7rt.js +2 -0
  181. package/bundle/chunk-j871xzr7.js +2 -0
  182. package/bundle/{chunk-0qd3567w.js → chunk-jmmtcr2r.js} +1 -1
  183. package/bundle/{chunk-has2rz35.js → chunk-jpn9zfj5.js} +1 -1
  184. package/bundle/{chunk-vshycswk.js → chunk-jqj1ay7x.js} +1 -1
  185. package/bundle/{chunk-vsz4s6zt.js → chunk-jr80q31w.js} +1 -1
  186. package/bundle/chunk-k3hgwszx.js +2 -0
  187. package/bundle/{chunk-wy3a4cab.js → chunk-kckr30tf.js} +1 -1
  188. package/bundle/{chunk-z1932c3f.js → chunk-kgv68cpb.js} +1 -1
  189. package/bundle/{chunk-vkaa7k3e.js → chunk-khpfseej.js} +2 -2
  190. package/bundle/{chunk-bd21p9zz.js → chunk-kre93a89.js} +2 -2
  191. package/bundle/{chunk-smznrv7k.js → chunk-kveztc6k.js} +1 -1
  192. package/bundle/{chunk-jnrnncqc.js → chunk-kwfe4em6.js} +1 -1
  193. package/bundle/chunk-kx88qekb.js +2 -0
  194. package/bundle/{chunk-4agaj51z.js → chunk-m4r8sepw.js} +1 -1
  195. package/bundle/{chunk-bqn6bqws.js → chunk-m7tmgvh6.js} +1 -1
  196. package/bundle/{chunk-qp1n7kwe.js → chunk-makegrxs.js} +1 -1
  197. package/bundle/{chunk-yhj01dz9.js → chunk-mr17tppa.js} +2 -2
  198. package/bundle/{chunk-5pwv2p3s.js → chunk-mv7q6ach.js} +1 -1
  199. package/bundle/chunk-n61e0znt.js +2 -0
  200. package/bundle/{chunk-j8fcfhr2.js → chunk-n6tqtk6h.js} +2 -2
  201. package/bundle/chunk-n6v36np0.js +2 -0
  202. package/bundle/chunk-ndd4cn3z.js +2 -0
  203. package/bundle/{chunk-t5r3w9e1.js → chunk-nfafk3ts.js} +1 -1
  204. package/bundle/{chunk-kth84vdn.js → chunk-nga216dm.js} +1 -1
  205. package/bundle/{chunk-cj7r8w1e.js → chunk-njsmma3a.js} +1 -1
  206. package/bundle/chunk-nr2j8ytn.js +3 -0
  207. package/bundle/{chunk-rrv0n73b.js → chunk-ntr0ezf2.js} +1 -1
  208. package/bundle/chunk-nwj6mcxz.js +2 -0
  209. package/bundle/{chunk-t239rvej.js → chunk-p2fte9vz.js} +2 -2
  210. package/bundle/chunk-p5b5ekhh.js +2 -0
  211. package/bundle/{chunk-vf492zs6.js → chunk-p8ak162p.js} +1 -1
  212. package/bundle/chunk-pf23nw4z.js +2 -0
  213. package/bundle/{chunk-0428v6mw.js → chunk-phf37x1c.js} +1 -1
  214. package/bundle/{chunk-faee8zgc.js → chunk-phpxxd48.js} +1 -1
  215. package/bundle/{chunk-5tky3csh.js → chunk-pqg1wjb5.js} +1 -1
  216. package/bundle/chunk-pw3cv89g.js +2 -0
  217. package/bundle/{chunk-d51908mv.js → chunk-q3c8mfbq.js} +1 -1
  218. package/bundle/{chunk-ypdt9mmr.js → chunk-qbnt4ynd.js} +2 -2
  219. package/bundle/chunk-qc89yj61.js +2 -0
  220. package/bundle/{chunk-k5q9px67.js → chunk-qgek59e6.js} +1 -1
  221. package/bundle/{chunk-v6v9xn81.js → chunk-qgfbsmsx.js} +1 -1
  222. package/bundle/{chunk-450fef7h.js → chunk-qgkb6n8k.js} +2 -2
  223. package/bundle/{chunk-xe69cnsk.js → chunk-qk1jkc0n.js} +1 -1
  224. package/bundle/{chunk-w4brava0.js → chunk-qk5vy2pr.js} +1 -1
  225. package/bundle/chunk-qn8tz704.js +2 -0
  226. package/bundle/{chunk-k3dacdp5.js → chunk-qq9m8fxv.js} +7 -7
  227. package/bundle/{chunk-q3h42a94.js → chunk-qxdpgdfk.js} +2 -2
  228. package/bundle/chunk-qxre2gqn.js +2 -0
  229. package/bundle/chunk-rdk62809.js +2 -0
  230. package/bundle/chunk-rew6r516.js +2 -0
  231. package/bundle/chunk-rjhvdfn5.js +2 -0
  232. package/bundle/{chunk-wyj8cpx5.js → chunk-rk0fnvp5.js} +1 -1
  233. package/bundle/{chunk-mh19kwzw.js → chunk-rmsqb6r4.js} +1 -1
  234. package/bundle/{chunk-jg1ccs3j.js → chunk-rva2ekrt.js} +1 -1
  235. package/bundle/{chunk-ac7482n2.js → chunk-rwnwjm82.js} +2 -2
  236. package/bundle/{chunk-ggxzf22k.js → chunk-rye1yjnr.js} +1 -1
  237. package/bundle/{chunk-s4vx9x1v.js → chunk-ryrxgn6d.js} +1 -1
  238. package/bundle/{chunk-pxm4qvqk.js → chunk-s2tc3qs0.js} +2 -2
  239. package/bundle/{chunk-mhtxp66q.js → chunk-s8z7v1me.js} +2 -2
  240. package/bundle/{chunk-9zm6r55d.js → chunk-sa0rrreh.js} +2 -2
  241. package/bundle/{chunk-mmjgf680.js → chunk-sbjymf20.js} +2 -2
  242. package/bundle/{chunk-ptqk1j2r.js → chunk-scnbt714.js} +1 -1
  243. package/bundle/chunk-skgr9ypq.js +2 -0
  244. package/bundle/{chunk-tg226j37.js → chunk-sm1g81cv.js} +1 -1
  245. package/bundle/chunk-sv40pwe2.js +2 -0
  246. package/bundle/{chunk-3vvd7j14.js → chunk-sy9w1t2y.js} +1 -1
  247. package/bundle/{chunk-p4027t94.js → chunk-sz0favtz.js} +1 -1
  248. package/bundle/{chunk-g22e4gw7.js → chunk-t18ka1e7.js} +1 -1
  249. package/bundle/{chunk-7hvf9dgx.js → chunk-t3w43rft.js} +1 -1
  250. package/bundle/{chunk-5zkj5xv9.js → chunk-t6zz47zk.js} +2 -2
  251. package/bundle/{chunk-6m9jb0s9.js → chunk-t8fjgkp8.js} +2 -2
  252. package/bundle/{chunk-7bcm7gg1.js → chunk-tbx741en.js} +1 -1
  253. package/bundle/chunk-tfhpjmny.js +2 -0
  254. package/bundle/chunk-tnete6ye.js +2 -0
  255. package/bundle/chunk-tpyq7ycb.js +2 -0
  256. package/bundle/{chunk-ezrqhqkp.js → chunk-trstb8ee.js} +1 -1
  257. package/bundle/{chunk-h9wh48d0.js → chunk-tsmj98yf.js} +2 -2
  258. package/bundle/{chunk-m80v76m9.js → chunk-txkdt4ep.js} +1 -1
  259. package/bundle/chunk-v5h5wxw5.js +2 -0
  260. package/bundle/chunk-v6141yq1.js +2 -0
  261. package/bundle/{chunk-cmb62jkt.js → chunk-vbfej8ds.js} +2 -2
  262. package/bundle/chunk-vfd3azkp.js +3 -0
  263. package/bundle/chunk-vjs69r6x.js +2 -0
  264. package/bundle/{chunk-xy0gnpen.js → chunk-vkjqy92f.js} +1 -1
  265. package/bundle/chunk-vmhar83s.js +2 -0
  266. package/bundle/{chunk-24ygjbpf.js → chunk-vph4w4yy.js} +2 -2
  267. package/bundle/chunk-vqvnw12p.js +2 -0
  268. package/bundle/{chunk-h62chdmw.js → chunk-vr8nwzp0.js} +1 -1
  269. package/bundle/{chunk-w46g7kdq.js → chunk-vs3s49jw.js} +2 -2
  270. package/bundle/{chunk-n78f8hfk.js → chunk-vsqvnxbz.js} +1 -1
  271. package/bundle/{chunk-t8c4cs6z.js → chunk-w0nc0gcx.js} +1 -1
  272. package/bundle/{chunk-qkvqvgcx.js → chunk-w0sng8a9.js} +1 -1
  273. package/bundle/chunk-w0sztk4y.js +2 -0
  274. package/bundle/chunk-w6bb320d.js +2 -0
  275. package/bundle/{chunk-55fcmswd.js → chunk-w7a33cwa.js} +2 -2
  276. package/bundle/{chunk-fyhqp4pb.js → chunk-w9qh2479.js} +1 -1
  277. package/bundle/{chunk-xwdxgg16.js → chunk-waa1ggtj.js} +1 -1
  278. package/bundle/{chunk-fr34mnyg.js → chunk-wb05bp10.js} +2 -2
  279. package/bundle/{chunk-gy21fw82.js → chunk-wb47k8ah.js} +2 -2
  280. package/bundle/{chunk-dxdggn90.js → chunk-wd8f9r4k.js} +1 -1
  281. package/bundle/chunk-wf41m019.js +2 -0
  282. package/bundle/{chunk-r5zy4za0.js → chunk-wgkcyqn1.js} +2 -2
  283. package/bundle/{chunk-ph8hn1wt.js → chunk-wm9nh9nb.js} +2 -2
  284. package/bundle/{chunk-g42krp0z.js → chunk-wn63q3xp.js} +1 -1
  285. package/bundle/{chunk-73r8bjjz.js → chunk-wqk1v8t0.js} +2 -2
  286. package/bundle/chunk-wqw6yjrg.js +2 -0
  287. package/bundle/{chunk-qey1efpx.js → chunk-wr6rnxr5.js} +1 -1
  288. package/bundle/chunk-ws08rxge.js +2 -0
  289. package/bundle/{chunk-xdd3553a.js → chunk-wtt5wms9.js} +1 -1
  290. package/bundle/{chunk-pb30kkbs.js → chunk-wtxh5m6j.js} +3 -3
  291. package/bundle/chunk-wz3dvc3g.js +2 -0
  292. package/bundle/{chunk-p4b0s5td.js → chunk-x00hwy3x.js} +1 -1
  293. package/bundle/chunk-x2pmqvdc.js +2 -0
  294. package/bundle/chunk-x4wfq39v.js +2 -0
  295. package/bundle/{chunk-pt0xphq9.js → chunk-xs6v0r9m.js} +1 -1
  296. package/bundle/{chunk-d0x5pbkm.js → chunk-xy8arehp.js} +1 -1
  297. package/bundle/{chunk-0cnwsf8p.js → chunk-y0h3jfkj.js} +1 -1
  298. package/bundle/{chunk-pr7z5dj8.js → chunk-y3gy62q5.js} +1 -1
  299. package/bundle/chunk-yb6m08zj.js +2 -0
  300. package/bundle/chunk-ybcqkgs7.js +2 -0
  301. package/bundle/{chunk-vcygx6hs.js → chunk-ydgst3h8.js} +2 -2
  302. package/bundle/{chunk-qxcyz5hc.js → chunk-ykpj10nz.js} +2 -2
  303. package/bundle/{chunk-t0761rhq.js → chunk-ynf17943.js} +2 -2
  304. package/bundle/{chunk-da6kggv7.js → chunk-ytyzrqev.js} +2 -2
  305. package/bundle/{chunk-ztyy3ga3.js → chunk-z0kbyr00.js} +2 -2
  306. package/bundle/{chunk-65bmsp2t.js → chunk-zfrftgcy.js} +1 -1
  307. package/bundle/chunk-zj1jc1xt.js +2 -0
  308. package/bundle/chunk-zm0m0504.js +2 -0
  309. package/bundle/{chunk-w9gzfsy7.js → chunk-zqdjk4rf.js} +2 -2
  310. package/bundle/{chunk-ha1w0xzh.js → chunk-zrhw1szj.js} +1 -1
  311. package/bundle/{chunk-804vmbcd.js → chunk-zsg29gba.js} +1 -1
  312. package/bundle/{chunk-6ar91jvd.js → chunk-zwhmg9dj.js} +1 -1
  313. package/bundle/index.js +3 -3
  314. package/bundle/parser.worker.js +2 -2
  315. package/bundle/worker.js +1 -1
  316. package/package.json +1 -1
  317. package/bundle/chunk-0ppnq3a4.js +0 -2
  318. package/bundle/chunk-0te0vcdn.js +0 -2
  319. package/bundle/chunk-11h06z17.js +0 -2
  320. package/bundle/chunk-28yv4fqe.js +0 -2
  321. package/bundle/chunk-34a52hyr.js +0 -2
  322. package/bundle/chunk-3d73kfea.js +0 -2
  323. package/bundle/chunk-3n3gb3vd.js +0 -2
  324. package/bundle/chunk-3sq60y9f.js +0 -2
  325. package/bundle/chunk-49mbnqvc.js +0 -2
  326. package/bundle/chunk-4fr6kae9.js +0 -2
  327. package/bundle/chunk-516w1nc4.js +0 -2
  328. package/bundle/chunk-535nm66j.js +0 -2
  329. package/bundle/chunk-5kpxpm8e.js +0 -2
  330. package/bundle/chunk-5nm5s0h2.js +0 -2
  331. package/bundle/chunk-5ysbwr4x.js +0 -3
  332. package/bundle/chunk-6dvmyeg7.js +0 -2
  333. package/bundle/chunk-6ex981t8.js +0 -2
  334. package/bundle/chunk-6gpf2bjs.js +0 -2
  335. package/bundle/chunk-6jeg2r5j.js +0 -2
  336. package/bundle/chunk-6nry7tah.js +0 -2
  337. package/bundle/chunk-7bgzcpdw.js +0 -2
  338. package/bundle/chunk-7kjvcbwa.js +0 -2
  339. package/bundle/chunk-7x30x94y.js +0 -2
  340. package/bundle/chunk-86hsh44c.js +0 -3
  341. package/bundle/chunk-8jma2btf.js +0 -2
  342. package/bundle/chunk-8sbb95a4.js +0 -2
  343. package/bundle/chunk-93e0w75z.js +0 -2
  344. package/bundle/chunk-97gp818s.js +0 -2
  345. package/bundle/chunk-9epf2zbh.js +0 -2
  346. package/bundle/chunk-agv04nt7.js +0 -2
  347. package/bundle/chunk-be7smmar.js +0 -2
  348. package/bundle/chunk-bg1t0kke.js +0 -2
  349. package/bundle/chunk-bryx5cx9.js +0 -2
  350. package/bundle/chunk-c13rrw41.js +0 -2
  351. package/bundle/chunk-c2kkv619.js +0 -2
  352. package/bundle/chunk-c3zge8cg.js +0 -3
  353. package/bundle/chunk-c5xj1y5v.js +0 -2
  354. package/bundle/chunk-cfhfc86j.js +0 -8
  355. package/bundle/chunk-ckpm4dvv.js +0 -2
  356. package/bundle/chunk-cqkaamvn.js +0 -2
  357. package/bundle/chunk-ct8twng1.js +0 -2
  358. package/bundle/chunk-d38y7bvh.js +0 -2
  359. package/bundle/chunk-d6hxsfm6.js +0 -2
  360. package/bundle/chunk-descb9jz.js +0 -2
  361. package/bundle/chunk-dvr2b9r1.js +0 -2
  362. package/bundle/chunk-ea5fktnn.js +0 -2
  363. package/bundle/chunk-f0t7rryn.js +0 -3
  364. package/bundle/chunk-f4mf6tpp.js +0 -2
  365. package/bundle/chunk-f97k17t8.js +0 -2
  366. package/bundle/chunk-g4ehhdzp.js +0 -2
  367. package/bundle/chunk-gd6qpdjw.js +0 -2
  368. package/bundle/chunk-gdn91t9j.js +0 -2
  369. package/bundle/chunk-gehn9fd9.js +0 -2
  370. package/bundle/chunk-hhax4mxw.js +0 -2
  371. package/bundle/chunk-hjb1etf8.js +0 -2
  372. package/bundle/chunk-jvkzdap1.js +0 -2
  373. package/bundle/chunk-kg8fcv91.js +0 -2
  374. package/bundle/chunk-kgptyf7n.js +0 -3
  375. package/bundle/chunk-kjjjrjnb.js +0 -2
  376. package/bundle/chunk-ky88ba80.js +0 -2
  377. package/bundle/chunk-m5cfmhwh.js +0 -2
  378. package/bundle/chunk-m7qxxbns.js +0 -2
  379. package/bundle/chunk-n8wg5h5p.js +0 -2
  380. package/bundle/chunk-nvs0d8jg.js +0 -2
  381. package/bundle/chunk-p6hcj3kv.js +0 -2
  382. package/bundle/chunk-pexmns0j.js +0 -2
  383. package/bundle/chunk-pt603np4.js +0 -2
  384. package/bundle/chunk-pz1avwyt.js +0 -2
  385. package/bundle/chunk-qk5bfcv8.js +0 -2
  386. package/bundle/chunk-qr06byhp.js +0 -2
  387. package/bundle/chunk-r7sq3maz.js +0 -2
  388. package/bundle/chunk-rcrjbhaz.js +0 -2
  389. package/bundle/chunk-rmgs9nmj.js +0 -2
  390. package/bundle/chunk-rytavefg.js +0 -2
  391. package/bundle/chunk-sh9vjnsh.js +0 -2
  392. package/bundle/chunk-st0c5wwc.js +0 -2
  393. package/bundle/chunk-teb3k2sf.js +0 -2
  394. package/bundle/chunk-ts798jvf.js +0 -2
  395. package/bundle/chunk-tx5aj02v.js +0 -2
  396. package/bundle/chunk-v1t51rrq.js +0 -2
  397. package/bundle/chunk-vdrz2t9c.js +0 -2
  398. package/bundle/chunk-vh9ptqn0.js +0 -2
  399. package/bundle/chunk-vj4x8hvz.js +0 -2
  400. package/bundle/chunk-w72rctxz.js +0 -2
  401. package/bundle/chunk-wbw9zv3h.js +0 -2
  402. package/bundle/chunk-x6mw98c2.js +0 -2
  403. package/bundle/chunk-y6p57wgh.js +0 -2
  404. package/bundle/chunk-y6xs8v17.js +0 -2
  405. package/bundle/chunk-z3xsfpc6.js +0 -2
  406. package/bundle/chunk-zkm3yyyf.js +0 -2
  407. package/bundle/chunk-zn5pw733.js +0 -2
  408. package/bundle/chunk-zxwvnmea.js +0 -2
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-r9w0thdk.js";var Jm=Object.defineProperty,Om=(e)=>{throw TypeError(e)},dh=(e,_,o)=>(_ in e)?Jm(e,_,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[_]=o,Lm=(e,_)=>{for(var o in _)Jm(e,o,{get:_[o],enumerable:!0})},zo=(e,_,o)=>dh(e,typeof _!="symbol"?_+"":_,o),mh=(e,_,o)=>_.has(e)||Om("Cannot "+o),fh=(e,_,o)=>_.has(e)?Om("Cannot add the same private member more than once"):_ instanceof WeakSet?_.add(e):_.set(e,o),ye=(e,_,o)=>(mh(e,_,"access private method"),o),Rm={};Lm(Rm,{parsers:()=>qm});var qm={};Lm(qm,{typescript:()=>T4});var hh=()=>()=>{},Fp=hh,yh=(e,_,o,c)=>{if(!(e&&_==null))return _.replaceAll?_.replaceAll(o,c):o.global?_.replace(o,c):_.split(o).join(c)},Na=yh,gh="5.8",At=[],bh=new Map;function Ho(e){return e!==void 0?e.length:0}function O_(e,_){if(e!==void 0)for(let o=0;o<e.length;o++){let c=_(e[o],o);if(c)return c}}function vh(e,_){if(e!==void 0)for(let o=0;o<e.length;o++){let c=_(e[o],o);if(c!==void 0)return c}}function xd(e,_,o){let c=[];q.assertEqual(e.length,_.length);for(let h=0;h<e.length;h++)c.push(o(e[h],_[h],h));return c}function jp(e,_){if(e!==void 0){for(let o=0;o<e.length;o++)if(!_(e[o],o))return!1}return!0}function Um(e,_,o){if(e!==void 0)for(let c=o??0;c<e.length;c++){let h=e[c];if(_(h,c))return h}}function Gu(e,_,o){if(e===void 0)return-1;for(let c=o??0;c<e.length;c++)if(_(e[c],c))return c;return-1}function xh(e,_,o=Op){if(e!==void 0){for(let c=0;c<e.length;c++)if(o(e[c],_))return!0}return!1}function Xn(e,_){if(e!==void 0){let o=e.length,c=0;for(;c<o&&_(e[c]);)c++;if(c<o){let h=e.slice(0,c);for(c++;c<o;){let v=e[c];_(v)&&h.push(v),c++}return h}}return e}function cp(e,_){let o;if(e!==void 0){o=[];for(let c=0;c<e.length;c++)o.push(_(e[c],c))}return o}function Bm(e){let _=[];for(let o=0;o<e.length;o++){let c=e[o];c&&($n(c)?D_(_,c):_.push(c))}return _}function zm(e,_){let o;if(e!==void 0)for(let c=0;c<e.length;c++){let h=_(e[c],c);h&&($n(h)?o=D_(o,h):o=C_(o,h))}return o??At}function wh(e,_){let o;if(e!==void 0)for(let c=0;c<e.length;c++){let h=e[c],v=_(h,c);(o||h!==v||$n(v))&&(o||(o=e.slice(0,c)),$n(v)?D_(o,v):o.push(v))}return o??e}function Th(e,_){let o=[];if(e!==void 0)for(let c=0;c<e.length;c++){let h=_(e[c],c);h!==void 0&&o.push(h)}return o}function Zt(e,_){if(e!==void 0)if(_!==void 0){for(let o=0;o<e.length;o++)if(_(e[o]))return!0}else return e.length>0;return!1}function Mp(e,_){return _===void 0||_.length===0?e:e===void 0||e.length===0?_:[...e,..._]}function Sh(e,_,o=Op){if(e===void 0||_===void 0)return e===_;if(e.length!==_.length)return!1;for(let c=0;c<e.length;c++)if(!o(e[c],_[c],c))return!1;return!0}function C_(e,_){return _===void 0?e:e===void 0?[_]:(e.push(_),e)}function up(e,_){return _<0?e.length+_:_}function D_(e,_,o,c){if(_===void 0||_.length===0)return e;if(e===void 0)return _.slice(o,c);o=o===void 0?0:up(_,o),c=c===void 0?_.length:up(_,c);for(let h=o;h<c&&h<_.length;h++)_[h]!==void 0&&e.push(_[h]);return e}function kh(e,_,o){return xh(e,_,o)?!1:(e.push(_),!0)}function Ch(e,_,o){return e!==void 0?(kh(e,_,o),e):[_]}function Ah(e,_){return e.length===0?At:e.slice().sort(_)}var S4=Array.prototype.at?(e,_)=>e==null?void 0:e.at(_):(e,_)=>{if(e!==void 0&&(_=up(e,_),_<e.length))return e[_]};function Jp(e){return e===void 0||e.length===0?void 0:e[0]}function ja(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function Dh(e){return q.assert(e.length!==0),e[e.length-1]}function Eh(e){return e!==void 0&&e.length===1?e[0]:void 0}function Ph(e,_,o,c,h){return Nh(e,o(_),o,c,h)}function Nh(e,_,o,c,h){if(!Zt(e))return-1;let v=h??0,A=e.length-1;for(;v<=A;){let E=v+(A-v>>1),s=o(e[E],E);switch(c(s,_)){case-1:v=E+1;break;case 0:return E;case 1:A=E-1;break}}return~v}function Ih(e,_,o,c,h){if(e&&e.length>0){let v=e.length;if(v>0){let A=c===void 0||c<0?0:c,E=h===void 0||A+h>v-1?v-1:A+h,s;for(arguments.length<=2?(s=e[A],A++):s=o;A<=E;)s=_(s,e[A],A),A++;return s}}return o}var Km=Object.prototype.hasOwnProperty;function Dn(e,_){return Km.call(e,_)}function Fh(e){let _=[];for(let o in e)Km.call(e,o)&&_.push(o);return _}function jh(){let e=new Map;return e.add=Mh,e.remove=Jh,e}function Mh(e,_){let o=this.get(e);return o!==void 0?o.push(_):this.set(e,o=[_]),o}function Jh(e,_){let o=this.get(e);o!==void 0&&(Vh(o,_),o.length||this.delete(e))}function $n(e){return Array.isArray(e)}function $u(e){return $n(e)?e:[e]}function Oh(e,_){return e!==void 0&&_(e)?e:void 0}function Cn(e,_){return e!==void 0&&_(e)?e:q.fail(`Invalid cast. The supplied value ${e} did not pass the test '${q.getFunctionName(_)}'.`)}function qa(e){}function Lh(){return!0}function gt(e){return e}function wd(e){let _;return()=>(e&&(_=e(),e=void 0),_)}function H_(e){let _=new Map;return(o)=>{let c=`${typeof o}:${o}`,h=_.get(c);return h===void 0&&!_.has(c)&&(h=e(o),_.set(c,h)),h}}function Op(e,_){return e===_}function Lp(e,_){return e===_||e!==void 0&&_!==void 0&&e.toUpperCase()===_.toUpperCase()}function Rh(e,_){return Op(e,_)}function qh(e,_){return e===_?0:e===void 0?-1:_===void 0?1:e<_?-1:1}function Vm(e,_){return qh(e,_)}function Uh(e,_,o){for(let c=0;c<e.length;c++)_=Math.max(_,o(e[c]));return _}function Qo(e,_,o){let c=Math.max(2,Math.floor(e.length*0.34)),h=Math.floor(e.length*0.4)+1,v;for(let A of _){let E=o(A);if(E!==void 0&&Math.abs(E.length-e.length)<=c){if(E===e||E.length<3&&E.toLowerCase()!==e.toLowerCase())continue;let s=Bh(e,E,h-0.1);if(s===void 0)continue;q.assert(s<h),h=s,v=A}}return v}function Bh(e,_,o){let c=Array(_.length+1),h=Array(_.length+1),v=o+0.01;for(let E=0;E<=_.length;E++)c[E]=E;for(let E=1;E<=e.length;E++){let s=e.charCodeAt(E-1),V=Math.ceil(E>o?E-o:1),d=Math.floor(_.length>o+E?o+E:_.length);h[0]=E;let T=E;for(let S=1;S<V;S++)h[S]=v;for(let S=V;S<=d;S++){let F=e[E-1].toLowerCase()===_[S-1].toLowerCase()?c[S-1]+0.1:c[S-1]+2,te=s===_.charCodeAt(S-1)?c[S-1]:Math.min(c[S]+1,h[S-1]+1,F);h[S]=te,T=Math.min(T,te)}for(let S=d+1;S<=_.length;S++)h[S]=v;if(T>o)return;let b=c;c=h,h=b}let A=c[_.length];return A>o?void 0:A}function zh(e,_,o){let c=e.length-_.length;return c>=0&&(o?Lp(e.slice(c),_):e.indexOf(_,c)===c)}function Kh(e,_){e[_]=e[e.length-1],e.pop()}function Vh(e,_){return Wh(e,(o)=>o===_)}function Wh(e,_){for(let o=0;o<e.length;o++)if(_(e[o]))return Kh(e,o),!0;return!1}function _c(e,_,o){return o?Lp(e.slice(0,_.length),_):e.lastIndexOf(_,0)===0}function pp(e){return e===void 0?void 0:[e]}var q;((e)=>{let _=0;e.currentLogLevel=2,e.isDebugging=!1;function o(J){return e.currentLogLevel<=J}e.shouldLog=o;function c(J,oe){e.loggingHost&&o(J)&&e.loggingHost.log(J,oe)}function h(J){c(3,J)}e.log=h,((J)=>{function oe(Ye){c(1,Ye)}J.error=oe;function pe(Ye){c(2,Ye)}J.warn=pe;function ke(Ye){c(3,Ye)}J.log=ke;function Qe(Ye){c(4,Ye)}J.trace=Qe})(h=e.log||(e.log={}));let v={};function A(){return _}e.getAssertionLevel=A;function E(J){let oe=_;if(_=J,J>oe)for(let pe of Fh(v)){let ke=v[pe];ke!==void 0&&e[pe]!==ke.assertion&&J>=ke.level&&(e[pe]=ke,v[pe]=void 0)}}e.setAssertionLevel=E;function s(J){return _>=J}e.shouldAssert=s;function V(J,oe){return s(J)?!0:(v[oe]={level:J,assertion:e[oe]},e[oe]=qa,!1)}function d(J,oe){debugger;let pe=Error(J?`Debug Failure. ${J}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(pe,oe||d),pe}e.fail=d;function T(J,oe,pe){return d(`${oe||"Unexpected node."}\r
2
+ import"./chunk-e0vrxetq.js";var Jm=Object.defineProperty,Om=(e)=>{throw TypeError(e)},dh=(e,_,o)=>(_ in e)?Jm(e,_,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[_]=o,Lm=(e,_)=>{for(var o in _)Jm(e,o,{get:_[o],enumerable:!0})},zo=(e,_,o)=>dh(e,typeof _!="symbol"?_+"":_,o),mh=(e,_,o)=>_.has(e)||Om("Cannot "+o),fh=(e,_,o)=>_.has(e)?Om("Cannot add the same private member more than once"):_ instanceof WeakSet?_.add(e):_.set(e,o),ye=(e,_,o)=>(mh(e,_,"access private method"),o),Rm={};Lm(Rm,{parsers:()=>qm});var qm={};Lm(qm,{typescript:()=>T4});var hh=()=>()=>{},Fp=hh,yh=(e,_,o,c)=>{if(!(e&&_==null))return _.replaceAll?_.replaceAll(o,c):o.global?_.replace(o,c):_.split(o).join(c)},Na=yh,gh="5.8",At=[],bh=new Map;function Ho(e){return e!==void 0?e.length:0}function O_(e,_){if(e!==void 0)for(let o=0;o<e.length;o++){let c=_(e[o],o);if(c)return c}}function vh(e,_){if(e!==void 0)for(let o=0;o<e.length;o++){let c=_(e[o],o);if(c!==void 0)return c}}function xd(e,_,o){let c=[];q.assertEqual(e.length,_.length);for(let h=0;h<e.length;h++)c.push(o(e[h],_[h],h));return c}function jp(e,_){if(e!==void 0){for(let o=0;o<e.length;o++)if(!_(e[o],o))return!1}return!0}function Um(e,_,o){if(e!==void 0)for(let c=o??0;c<e.length;c++){let h=e[c];if(_(h,c))return h}}function Gu(e,_,o){if(e===void 0)return-1;for(let c=o??0;c<e.length;c++)if(_(e[c],c))return c;return-1}function xh(e,_,o=Op){if(e!==void 0){for(let c=0;c<e.length;c++)if(o(e[c],_))return!0}return!1}function Xn(e,_){if(e!==void 0){let o=e.length,c=0;for(;c<o&&_(e[c]);)c++;if(c<o){let h=e.slice(0,c);for(c++;c<o;){let v=e[c];_(v)&&h.push(v),c++}return h}}return e}function cp(e,_){let o;if(e!==void 0){o=[];for(let c=0;c<e.length;c++)o.push(_(e[c],c))}return o}function Bm(e){let _=[];for(let o=0;o<e.length;o++){let c=e[o];c&&($n(c)?D_(_,c):_.push(c))}return _}function zm(e,_){let o;if(e!==void 0)for(let c=0;c<e.length;c++){let h=_(e[c],c);h&&($n(h)?o=D_(o,h):o=C_(o,h))}return o??At}function wh(e,_){let o;if(e!==void 0)for(let c=0;c<e.length;c++){let h=e[c],v=_(h,c);(o||h!==v||$n(v))&&(o||(o=e.slice(0,c)),$n(v)?D_(o,v):o.push(v))}return o??e}function Th(e,_){let o=[];if(e!==void 0)for(let c=0;c<e.length;c++){let h=_(e[c],c);h!==void 0&&o.push(h)}return o}function Zt(e,_){if(e!==void 0)if(_!==void 0){for(let o=0;o<e.length;o++)if(_(e[o]))return!0}else return e.length>0;return!1}function Mp(e,_){return _===void 0||_.length===0?e:e===void 0||e.length===0?_:[...e,..._]}function Sh(e,_,o=Op){if(e===void 0||_===void 0)return e===_;if(e.length!==_.length)return!1;for(let c=0;c<e.length;c++)if(!o(e[c],_[c],c))return!1;return!0}function C_(e,_){return _===void 0?e:e===void 0?[_]:(e.push(_),e)}function up(e,_){return _<0?e.length+_:_}function D_(e,_,o,c){if(_===void 0||_.length===0)return e;if(e===void 0)return _.slice(o,c);o=o===void 0?0:up(_,o),c=c===void 0?_.length:up(_,c);for(let h=o;h<c&&h<_.length;h++)_[h]!==void 0&&e.push(_[h]);return e}function kh(e,_,o){return xh(e,_,o)?!1:(e.push(_),!0)}function Ch(e,_,o){return e!==void 0?(kh(e,_,o),e):[_]}function Ah(e,_){return e.length===0?At:e.slice().sort(_)}var S4=Array.prototype.at?(e,_)=>e==null?void 0:e.at(_):(e,_)=>{if(e!==void 0&&(_=up(e,_),_<e.length))return e[_]};function Jp(e){return e===void 0||e.length===0?void 0:e[0]}function ja(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function Dh(e){return q.assert(e.length!==0),e[e.length-1]}function Eh(e){return e!==void 0&&e.length===1?e[0]:void 0}function Ph(e,_,o,c,h){return Nh(e,o(_),o,c,h)}function Nh(e,_,o,c,h){if(!Zt(e))return-1;let v=h??0,A=e.length-1;for(;v<=A;){let E=v+(A-v>>1),s=o(e[E],E);switch(c(s,_)){case-1:v=E+1;break;case 0:return E;case 1:A=E-1;break}}return~v}function Ih(e,_,o,c,h){if(e&&e.length>0){let v=e.length;if(v>0){let A=c===void 0||c<0?0:c,E=h===void 0||A+h>v-1?v-1:A+h,s;for(arguments.length<=2?(s=e[A],A++):s=o;A<=E;)s=_(s,e[A],A),A++;return s}}return o}var Km=Object.prototype.hasOwnProperty;function Dn(e,_){return Km.call(e,_)}function Fh(e){let _=[];for(let o in e)Km.call(e,o)&&_.push(o);return _}function jh(){let e=new Map;return e.add=Mh,e.remove=Jh,e}function Mh(e,_){let o=this.get(e);return o!==void 0?o.push(_):this.set(e,o=[_]),o}function Jh(e,_){let o=this.get(e);o!==void 0&&(Vh(o,_),o.length||this.delete(e))}function $n(e){return Array.isArray(e)}function $u(e){return $n(e)?e:[e]}function Oh(e,_){return e!==void 0&&_(e)?e:void 0}function Cn(e,_){return e!==void 0&&_(e)?e:q.fail(`Invalid cast. The supplied value ${e} did not pass the test '${q.getFunctionName(_)}'.`)}function qa(e){}function Lh(){return!0}function gt(e){return e}function wd(e){let _;return()=>(e&&(_=e(),e=void 0),_)}function H_(e){let _=new Map;return(o)=>{let c=`${typeof o}:${o}`,h=_.get(c);return h===void 0&&!_.has(c)&&(h=e(o),_.set(c,h)),h}}function Op(e,_){return e===_}function Lp(e,_){return e===_||e!==void 0&&_!==void 0&&e.toUpperCase()===_.toUpperCase()}function Rh(e,_){return Op(e,_)}function qh(e,_){return e===_?0:e===void 0?-1:_===void 0?1:e<_?-1:1}function Vm(e,_){return qh(e,_)}function Uh(e,_,o){for(let c=0;c<e.length;c++)_=Math.max(_,o(e[c]));return _}function Qo(e,_,o){let c=Math.max(2,Math.floor(e.length*0.34)),h=Math.floor(e.length*0.4)+1,v;for(let A of _){let E=o(A);if(E!==void 0&&Math.abs(E.length-e.length)<=c){if(E===e||E.length<3&&E.toLowerCase()!==e.toLowerCase())continue;let s=Bh(e,E,h-0.1);if(s===void 0)continue;q.assert(s<h),h=s,v=A}}return v}function Bh(e,_,o){let c=Array(_.length+1),h=Array(_.length+1),v=o+0.01;for(let E=0;E<=_.length;E++)c[E]=E;for(let E=1;E<=e.length;E++){let s=e.charCodeAt(E-1),V=Math.ceil(E>o?E-o:1),d=Math.floor(_.length>o+E?o+E:_.length);h[0]=E;let T=E;for(let S=1;S<V;S++)h[S]=v;for(let S=V;S<=d;S++){let F=e[E-1].toLowerCase()===_[S-1].toLowerCase()?c[S-1]+0.1:c[S-1]+2,te=s===_.charCodeAt(S-1)?c[S-1]:Math.min(c[S]+1,h[S-1]+1,F);h[S]=te,T=Math.min(T,te)}for(let S=d+1;S<=_.length;S++)h[S]=v;if(T>o)return;let b=c;c=h,h=b}let A=c[_.length];return A>o?void 0:A}function zh(e,_,o){let c=e.length-_.length;return c>=0&&(o?Lp(e.slice(c),_):e.indexOf(_,c)===c)}function Kh(e,_){e[_]=e[e.length-1],e.pop()}function Vh(e,_){return Wh(e,(o)=>o===_)}function Wh(e,_){for(let o=0;o<e.length;o++)if(_(e[o]))return Kh(e,o),!0;return!1}function _c(e,_,o){return o?Lp(e.slice(0,_.length),_):e.lastIndexOf(_,0)===0}function pp(e){return e===void 0?void 0:[e]}var q;((e)=>{let _=0;e.currentLogLevel=2,e.isDebugging=!1;function o(J){return e.currentLogLevel<=J}e.shouldLog=o;function c(J,oe){e.loggingHost&&o(J)&&e.loggingHost.log(J,oe)}function h(J){c(3,J)}e.log=h,((J)=>{function oe(Ye){c(1,Ye)}J.error=oe;function pe(Ye){c(2,Ye)}J.warn=pe;function ke(Ye){c(3,Ye)}J.log=ke;function Qe(Ye){c(4,Ye)}J.trace=Qe})(h=e.log||(e.log={}));let v={};function A(){return _}e.getAssertionLevel=A;function E(J){let oe=_;if(_=J,J>oe)for(let pe of Fh(v)){let ke=v[pe];ke!==void 0&&e[pe]!==ke.assertion&&J>=ke.level&&(e[pe]=ke,v[pe]=void 0)}}e.setAssertionLevel=E;function s(J){return _>=J}e.shouldAssert=s;function V(J,oe){return s(J)?!0:(v[oe]={level:J,assertion:e[oe]},e[oe]=qa,!1)}function d(J,oe){debugger;let pe=Error(J?`Debug Failure. ${J}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(pe,oe||d),pe}e.fail=d;function T(J,oe,pe){return d(`${oe||"Unexpected node."}\r
3
3
  Node ${jt(J.kind)} was unexpected.`,pe||T)}e.failBadSyntaxKind=T;function b(J,oe,pe,ke){J||(oe=oe?`False expression: ${oe}`:"False expression.",pe&&(oe+=`\r
4
4
  Verbose Debug Information: `+(typeof pe=="string"?pe:pe())),d(oe,ke||b))}e.assert=b;function S(J,oe,pe,ke,Qe){if(J!==oe){let Ye=pe?ke?`${pe} ${ke}`:pe:"";d(`Expected ${J} === ${oe}. ${Ye}`,Qe||S)}}e.assertEqual=S;function F(J,oe,pe,ke){J>=oe&&d(`Expected ${J} < ${oe}. ${pe||""}`,ke||F)}e.assertLessThan=F;function te(J,oe,pe){J>oe&&d(`Expected ${J} <= ${oe}`,pe||te)}e.assertLessThanOrEqual=te;function ve(J,oe,pe){J<oe&&d(`Expected ${J} >= ${oe}`,pe||ve)}e.assertGreaterThanOrEqual=ve;function fe(J,oe,pe){J==null&&d(oe,pe||fe)}e.assertIsDefined=fe;function me(J,oe,pe){return fe(J,oe,pe||me),J}e.checkDefined=me;function j(J,oe,pe){for(let ke of J)fe(ke,oe,pe||j)}e.assertEachIsDefined=j;function ne(J,oe,pe){return j(J,oe,pe||ne),J}e.checkEachDefined=ne;function je(J,oe="Illegal value:",pe){let ke=typeof J=="object"&&Dn(J,"kind")&&Dn(J,"pos")?"SyntaxKind: "+jt(J.kind):JSON.stringify(J);return d(`${oe} ${ke}`,pe||je)}e.assertNever=je;function K(J,oe,pe,ke){V(1,"assertEachNode")&&b(oe===void 0||jp(J,oe),pe||"Unexpected node.",()=>`Node array did not pass test '${y_(oe)}'.`,ke||K)}e.assertEachNode=K;function se(J,oe,pe,ke){V(1,"assertNode")&&b(J!==void 0&&(oe===void 0||oe(J)),pe||"Unexpected node.",()=>`Node ${jt(J==null?void 0:J.kind)} did not pass test '${y_(oe)}'.`,ke||se)}e.assertNode=se;function G(J,oe,pe,ke){V(1,"assertNotNode")&&b(J===void 0||oe===void 0||!oe(J),pe||"Unexpected node.",()=>`Node ${jt(J.kind)} should not have passed test '${y_(oe)}'.`,ke||G)}e.assertNotNode=G;function mt(J,oe,pe,ke){V(1,"assertOptionalNode")&&b(oe===void 0||J===void 0||oe(J),pe||"Unexpected node.",()=>`Node ${jt(J==null?void 0:J.kind)} did not pass test '${y_(oe)}'.`,ke||mt)}e.assertOptionalNode=mt;function en(J,oe,pe,ke){V(1,"assertOptionalToken")&&b(oe===void 0||J===void 0||J.kind===oe,pe||"Unexpected node.",()=>`Node ${jt(J==null?void 0:J.kind)} was not a '${jt(oe)}' token.`,ke||en)}e.assertOptionalToken=en;function h_(J,oe,pe){V(1,"assertMissingNode")&&b(J===void 0,oe||"Unexpected node.",()=>`Node ${jt(J.kind)} was unexpected'.`,pe||h_)}e.assertMissingNode=h_;function tn(J){}e.type=tn;function y_(J){if(typeof J!="function")return"";if(Dn(J,"name"))return J.name;{let oe=Function.prototype.toString.call(J),pe=/^function\s+([\w$]+)\s*\(/.exec(oe);return pe?pe[1]:""}}e.getFunctionName=y_;function P_(J){return`{ name: ${si(J.escapedName)}; flags: ${st(J.flags)}; declarations: ${cp(J.declarations,(oe)=>jt(oe.kind))} }`}e.formatSymbol=P_;function We(J=0,oe,pe){let ke=Pn(oe);if(J===0)return ke.length>0&&ke[0][0]===0?ke[0][1]:"0";if(pe){let Qe=[],Ye=J;for(let[at,Et]of ke){if(at>J)break;at!==0&&at&J&&(Qe.push(Et),Ye&=~at)}if(Ye===0)return Qe.join("|")}else for(let[Qe,Ye]of ke)if(Qe===J)return Ye;return J.toString()}e.formatEnum=We;let _n=new Map;function Pn(J){let oe=_n.get(J);if(oe)return oe;let pe=[];for(let Qe in J){let Ye=J[Qe];typeof Ye=="number"&&pe.push([Ye,Qe])}let ke=Ah(pe,(Qe,Ye)=>Vm(Qe[0],Ye[0]));return _n.set(J,ke),ke}function jt(J){return We(J,Fe,!1)}e.formatSyntaxKind=jt;function L_(J){return We(J,ef,!1)}e.formatSnippetKind=L_;function N_(J){return We(J,Wn,!1)}e.formatScriptKind=N_;function Mt(J){return We(J,Y_,!0)}e.formatNodeFlags=Mt;function bt(J){return We(J,$m,!0)}e.formatNodeCheckFlags=bt;function He(J){return We(J,Wm,!0)}e.formatModifierFlags=He;function R_(J){return We(J,Zm,!0)}e.formatTransformFlags=R_;function Xt(J){return We(J,tf,!0)}e.formatEmitFlags=Xt;function st(J){return We(J,Gm,!0)}e.formatSymbolFlags=st;function rt(J){return We(J,o_,!0)}e.formatTypeFlags=rt;function Rt(J){return We(J,Qm,!0)}e.formatSignatureFlags=Rt;function Jt(J){return We(J,Hm,!0)}e.formatObjectFlags=Jt;function lt(J){return We(J,dp,!0)}e.formatFlowFlags=lt;function nn(J){return We(J,Xm,!0)}e.formatRelationComparisonResult=nn;function ft(J){return We(J,CheckMode,!0)}e.formatCheckMode=ft;function g_(J){return We(J,SignatureCheckMode,!0)}e.formatSignatureCheckMode=g_;function yt(J){return We(J,TypeFacts,!0)}e.formatTypeFacts=yt;let i_=!1,_t;function qt(J){"__debugFlowFlags"in J||Object.defineProperties(J,{__tsDebuggerDisplay:{value(){let oe=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",pe=this.flags&-2048;return`${oe}${pe?` (${lt(pe)})`:""}`}},__debugFlowFlags:{get(){return We(this.flags,dp,!0)}},__debugToString:{value(){return hn(this)}}})}function t_(J){return i_&&(typeof Object.setPrototypeOf=="function"?(_t||(_t=Object.create(Object.prototype),qt(_t)),Object.setPrototypeOf(J,_t)):qt(J)),J}e.attachFlowNodeDebugInfo=t_;let rn;function dn(J){"__tsDebuggerDisplay"in J||Object.defineProperties(J,{__tsDebuggerDisplay:{value(oe){return oe=String(oe).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${oe}`}}})}function mn(J){i_&&(typeof Object.setPrototypeOf=="function"?(rn||(rn=Object.create(Array.prototype),dn(rn)),Object.setPrototypeOf(J,rn)):dn(J))}e.attachNodeArrayDebugInfo=mn;function q_(){if(i_)return;let J=new WeakMap,oe=new WeakMap;Object.defineProperties(Ct.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let ke=this.flags&33554432?"TransientSymbol":"Symbol",Qe=this.flags&-33554433;return`${ke} '${hp(this)}'${Qe?` (${st(Qe)})`:""}`}},__debugFlags:{get(){return st(this.flags)}}}),Object.defineProperties(Ct.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let ke=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Qe=this.flags&524288?this.objectFlags&-1344:0;return`${ke}${this.symbol?` '${hp(this.symbol)}'`:""}${Qe?` (${Jt(Qe)})`:""}`}},__debugFlags:{get(){return rt(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Jt(this.objectFlags):""}},__debugTypeToString:{value(){let ke=J.get(this);return ke===void 0&&(ke=this.checker.typeToString(this),J.set(this,ke)),ke}}}),Object.defineProperties(Ct.getSignatureConstructor().prototype,{__debugFlags:{get(){return Rt(this.flags)}},__debugSignatureToString:{value(){var ke;return(ke=this.checker)==null?void 0:ke.signatureToString(this)}}});let pe=[Ct.getNodeConstructor(),Ct.getIdentifierConstructor(),Ct.getTokenConstructor(),Ct.getSourceFileConstructor()];for(let ke of pe)Dn(ke.prototype,"__debugKind")||Object.defineProperties(ke.prototype,{__tsDebuggerDisplay:{value(){return`${Fa(this)?"GeneratedIdentifier":tt(this)?`Identifier '${E_(this)}'`:Xr(this)?`PrivateIdentifier '${E_(this)}'`:Ra(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Ba(this)?`NumericLiteral ${this.text}`:og(this)?`BigIntLiteral ${this.text}n`:Qf(this)?"TypeParameterDeclaration":sc(this)?"ParameterDeclaration":Yf(this)?"ConstructorDeclaration":Tp(this)?"GetAccessorDeclaration":cc(this)?"SetAccessorDeclaration":mg(this)?"CallSignatureDeclaration":fg(this)?"ConstructSignatureDeclaration":Zf(this)?"IndexSignatureDeclaration":hg(this)?"TypePredicateNode":e1(this)?"TypeReferenceNode":t1(this)?"FunctionTypeNode":_1(this)?"ConstructorTypeNode":yg(this)?"TypeQueryNode":gg(this)?"TypeLiteralNode":bg(this)?"ArrayTypeNode":vg(this)?"TupleTypeNode":wg(this)?"OptionalTypeNode":Tg(this)?"RestTypeNode":Sg(this)?"UnionTypeNode":kg(this)?"IntersectionTypeNode":Cg(this)?"ConditionalTypeNode":Ag(this)?"InferTypeNode":Dg(this)?"ParenthesizedTypeNode":Eg(this)?"ThisTypeNode":Pg(this)?"TypeOperatorNode":Ng(this)?"IndexedAccessTypeNode":Ig(this)?"MappedTypeNode":Fg(this)?"LiteralTypeNode":xg(this)?"NamedTupleMember":jg(this)?"ImportTypeNode":jt(this.kind)}${this.flags?` (${Mt(this.flags)})`:""}`}},__debugKind:{get(){return jt(this.kind)}},__debugNodeFlags:{get(){return Mt(this.flags)}},__debugModifierFlags:{get(){return He(h2(this))}},__debugTransformFlags:{get(){return R_(this.transformFlags)}},__debugIsParseTreeNode:{get(){return ac(this)}},__debugEmitFlags:{get(){return Xt(La(this))}},__debugGetText:{value(Qe){if(Aa(this))return"";let Ye=oe.get(this);if(Ye===void 0){let at=N0(this),Et=at&&fr(at);Ye=Et?Od(Et,at,Qe):"",oe.set(this,Ye)}return Ye}}});i_=!0}e.enableDebugInfo=q_;function U_(J){let oe=J&7,pe=oe===0?"in out":oe===3?"[bivariant]":oe===2?"in":oe===1?"out":oe===4?"[independent]":"";return J&8?pe+=" (unmeasurable)":J&16&&(pe+=" (unreliable)"),pe}e.formatVariance=U_;class fn{__debugToString(){var J;switch(this.kind){case 3:return((J=this.debugInfo)==null?void 0:J.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return xd(this.sources,this.targets||cp(this.sources,()=>"any"),(oe,pe)=>`${oe.__debugTypeToString()} -> ${typeof pe=="string"?pe:pe.__debugTypeToString()}`).join(", ");case 2:return xd(this.sources,this.targets,(oe,pe)=>`${oe.__debugTypeToString()} -> ${pe().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
5
5
  `).join(`
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{T as I}from"./chunk-gbkz04ke.js";import{U as i,W as r}from"./chunk-4pshnq6g.js";import{Hd as c}from"./chunk-bwbqkfv0.js";import{Id as g}from"./chunk-32j0q58h.js";import{Jd as y}from"./chunk-0cnwsf8p.js";import{Kd as k}from"./chunk-2md6sx8d.js";import{Ld as A}from"./chunk-wyj8cpx5.js";import{Qd as w,Rd as u,Td as W,Ud as L,Vd as T,Xd as p,Yd as o,Zd as b,_d as P}from"./chunk-ff548b0j.js";import"./chunk-zc0cdvcv.js";import{ae as z}from"./chunk-5w76kdjr.js";import{dg as Y}from"./chunk-eg3syjtv.js";import{Bh as M}from"./chunk-hjt94wce.js";import"./chunk-w46g7kdq.js";import"./chunk-bd21p9zz.js";import"./chunk-p54bzjtv.js";import"./chunk-ha1w0xzh.js";import"./chunk-6m9jb0s9.js";import"./chunk-vygkwwjd.js";import{Qk as a,dl as s,xj as R}from"./chunk-k3dacdp5.js";import{pl as V}from"./chunk-99s035f0.js";import{Nl as n}from"./chunk-h9wh48d0.js";import"./chunk-tzb26ntq.js";import"./chunk-mh19kwzw.js";import"./chunk-q3h42a94.js";import"./chunk-hqbbs9dm.js";import"./chunk-9zm6r55d.js";import"./chunk-vcygx6hs.js";import"./chunk-khzzmyk2.js";import"./chunk-y7hgevfv.js";import"./chunk-47k5jy1p.js";import"./chunk-cfhfc86j.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-dnnkq5y4.js";import"./chunk-t239rvej.js";import"./chunk-yz25607t.js";import"./chunk-7hvf9dgx.js";import"./chunk-wkg3c643.js";import"./chunk-fhqfqd5v.js";import"./chunk-q3nvzhyh.js";import"./chunk-5df5aja0.js";import"./chunk-73r8bjjz.js";import"./chunk-xy0gnpen.js";import{Nr as l}from"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-nj1ntakd.js";import"./chunk-cmb62jkt.js";import"./chunk-tkrwcjkr.js";import"./chunk-vdrz2t9c.js";import{ks as d}from"./chunk-fr34mnyg.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import{kt as v}from"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import{eH as O}from"./chunk-qnvsqnz5.js";import"./chunk-pxm4qvqk.js";import"./chunk-j8fcfhr2.js";import{wO as H1}from"./chunk-r9w0thdk.js";import f from"path";import{pathToFileURL as J1}from"url";import Q1 from"os";import{access as S1,readdir as X1}from"fs/promises";var q1={en:A,zh:k,ja:c,fr:y,ru:g},B1=q1[I()]??A;function U($,B){let J=B1[$]??A[$]??$;if(!B)return J;return J.replace(/\{(\w+)\}/g,(X,H)=>(H in B)?String(B[H]):`{${H}}`)}import{text as Z1}from"stream/consumers";var D=($,B)=>M.runPromise(O.gen(function*(){yield*(yield*R.Service).set($,B)}));async function t(){let $=await p({message:"Enter your API key",validate:(B)=>B&&B.length>0?void 0:"Required"});if(w($))throw new Y.CancelledError;return $}async function h($,B){let J=$.provider??B;if("refresh"in $){let{type:X,provider:H,refresh:Z,access:j,expires:q,metadata:S,...G}=$;await D(J,{type:"oauth",refresh:Z,access:j,expires:q,...G})}if("key"in $)await D(J,{type:"api",key:$.key,...$.metadata?{metadata:$.metadata}:{}})}async function x($,B,J){let X=0;if(J){let j=$.auth.methods.findIndex((q)=>q.label.toLowerCase()===J.toLowerCase());if(j===-1)W.error(`Unknown method "${J}" for ${B}. Available: ${$.auth.methods.map((q)=>q.label).join(", ")}`),process.exit(1);X=j}else if($.auth.methods.length>1){let j=await b({message:"Login method",options:$.auth.methods.map((q,S)=>({label:q.label,value:S.toString()}))});if(w(j))throw new Y.CancelledError;X=parseInt(j)}let H=$.auth.methods[X];await new Promise((j)=>setTimeout(j,10));let Z={};if(H.prompts)for(let j of H.prompts){if(j.when){let q=Z[j.when.key];if(q===void 0)continue;if(!(j.when.op==="eq"?q===j.when.value:q!==j.when.value))continue}if(j.condition&&!j.condition(Z))continue;if(j.type==="select"){let q=await b({message:j.message,options:j.options});if(w(q))throw new Y.CancelledError;Z[j.key]=q}else{let q=await P({message:j.message,placeholder:j.placeholder,validate:j.validate?(S)=>j.validate(S??""):void 0});if(w(q))throw new Y.CancelledError;Z[j.key]=q}}if(H.type==="oauth"){let j=await H.authorize(Z);if(j.url)W.info("Go to: "+j.url);if(j.method==="auto"){if(j.instructions)W.info(j.instructions);let q=o();q.start("Waiting for authorization...");let S=await j.callback();if(S.type==="failed")q.stop("Failed to authorize",1);if(S.type==="success")await h(S,B),q.stop("Login successful")}if(j.method==="code"){let q=await P({message:"Paste the authorization code here: ",validate:(G)=>G&&G.length>0?void 0:"Required"});if(w(q))throw new Y.CancelledError;let S=await j.callback(q);if(S.type==="failed")W.error("Failed to authorize");if(S.type==="success")await h(S,B),W.success("Login successful")}return T("Done"),!0}if(H.type==="api"){if(H.authorize){let j=await t(),q=await H.authorize(Z);if(q.type==="failed")W.error("Failed to authorize");if(q.type==="success"){let S=q.provider??B;await D(S,{type:"api",key:q.key??j}),W.success("Login successful")}return T("Done"),!0}}return!1}function G1($){let B=new Set,J=[];for(let X of $.hooks){if(!X.auth)continue;let H=X.auth.provider;if(B.has(H))continue;if(B.add(H),Object.hasOwn($.existingProviders,H))continue;if($.disabled.has(H))continue;if($.enabled&&!$.enabled.has(H))continue;J.push({id:H,name:$.providerNames[H]??H})}return J}function m($){let B=$?.loginExtension;if(!B||typeof B!=="object")return;let J=B;if(typeof J.id!=="string"||typeof J.run!=="function")return;return J}async function W1(){try{let J=await import("./chunk-wbw9zv3h.js");for(let X of Object.values(J.modules??{})){let H=m(X);if(H)return H}}catch{}let $=f.join(import.meta.dir,"..","..","ext");await S1($).catch(()=>{return});let B=await X1($).catch(()=>[]);for(let J of B.filter((X)=>X.endsWith(".ts")&&!X.endsWith(".d.ts")))try{let X=m(await import(J1(f.join($,J)).href));if(X)return X}catch{}return}var l1=z({command:"providers",aliases:["auth"],describe:"manage AI providers and credentials",builder:($)=>$.command(Y1).command(_1).command(F1).command(K1).demandCommand(),async handler(){}}),Y1=z({command:"list",aliases:["ls"],describe:"list providers and credentials",async handler($){Y.empty();let B=f.join(v.Path.data,"auth.json"),J=Q1.homedir(),X=B===J||B.startsWith(J+f.sep)?"~"+B.slice(J.length):B;L(`Credentials ${Y.Style.TEXT_DIM}${X}`);let H=await M.runPromise(O.gen(function*(){let q=yield*R.Service;return Object.entries(yield*q.all())})),Z=await V.get();for(let[q,S]of H){let G=Z[q]?.name||q;W.info(`${G} ${Y.Style.TEXT_DIM}${S.type}`)}T(`${H.length} credentials`);let j=[];for(let[q,S]of Object.entries(Z))for(let G of S.env)if(process.env[G])j.push({provider:S.name||q,envVar:G});if(j.length>0){Y.empty(),L("Environment");for(let{provider:q,envVar:S}of j)W.info(`${q} ${Y.Style.TEXT_DIM}${S}`);T(`${j.length} environment variable`+(j.length===1?"":"s"))}}}),_1=z({command:"login [url]",describe:"log in to a provider",builder:($)=>$.positional("url",{describe:"qitqode auth provider",type:"string"}).option("provider",{alias:["p"],describe:"provider id or name to log in to (skips provider selection)",type:"string"}).option("method",{alias:["m"],describe:"login method label (skips method selection)",type:"string"}),async handler($){await n.provide({directory:process.cwd(),async fn(){if(Y.empty(),L("Add credential"),$.url){let Q=$.url.replace(/\/+$/,""),_=await fetch(`${Q}/.well-known/opencode`).then((j1)=>j1.json());W.info(`Running \`${_.auth.command.join(" ")}\``);let F=l.spawn(_.auth.command,{stdout:"pipe"});if(!F.stdout){W.error("Failed"),T("Done");return}let[C,N]=await Promise.all([F.exited,Z1(F.stdout)]);if(C!==0){W.error("Failed"),T("Done");return}await D(Q,{type:"wellknown",key:_.auth.env,token:N.trim()}),W.success("Logged into "+Q),T("Done");return}await V.refresh(!0).catch(()=>{});let B=await M.runPromise(s.Service.use((Q)=>Q.get())),J=new Set(B.disabled_providers??[]),X=B.enabled_providers?new Set(B.enabled_providers):void 0,H=await V.get().then((Q)=>{let _={};for(let[F,C]of Object.entries(Q))if((X?X.has(F):!0)&&!J.has(F))_[F]=C;return _}),Z=await M.runPromise(O.gen(function*(){return yield*(yield*a.Service).list()})),j=i,q=G1({hooks:Z,existingProviders:H,disabled:J,enabled:X,providerNames:Object.fromEntries(Object.entries(B.provider??{}).map(([Q,_])=>[Q,_.name]))}),S=[...r(d(H),j,(Q)=>({openai:"ChatGPT Plus/Pro or API key"})[Q.id]),...q.map((Q)=>({label:Q.name,value:Q.id,hint:"plugin"}))],G=await W1(),e=G?[G.id,...G.aliases??[]]:[],K;if(G&&$.provider&&e.includes($.provider)){await G.run();return}else if($.provider){let Q=$.provider,_=S.find((N)=>N.value===Q),F=S.find((N)=>N.label.toLowerCase()===Q.toLowerCase()),C=_??F;if(!C)W.error(`Unknown provider "${Q}"`),process.exit(1);K=C.value}else{let Q=await b({message:U("cli.providers.select"),options:[...G?.menu?[{label:G.menu.label,value:G.id,hint:G.menu.hint}]:[],{label:U("cli.providers.other"),value:"__other__"}]});if(w(Q))throw new Y.CancelledError;if(G&&Q===G.id){await G.run();return}let _=await u({message:U("cli.providers.select"),maxItems:8,options:[...S,{value:"other",label:"Other"}]});if(w(_))throw new Y.CancelledError;K=_}let E=Z.findLast((Q)=>Q.auth?.provider===K);if(E&&E.auth){if(await x({auth:E.auth},K,$.method))return}if(K==="other"){let Q=await P({message:"Enter provider id",validate:(F)=>F&&F.match(/^[0-9a-z-]+$/)?void 0:"a-z, 0-9 and hyphens only"});if(w(Q))throw new Y.CancelledError;K=Q.replace(/^@ai-sdk\//,"");let _=Z.findLast((F)=>F.auth?.provider===K);if(_&&_.auth){if(await x({auth:_.auth},K,$.method))return}W.warn(`This only stores a credential for ${K} - you will need configure it in qitqode.json, check the docs for examples.`)}if(K==="amazon-bedrock")W.info(`Amazon Bedrock authentication priority:
2
+ import{T as I}from"./chunk-gbkz04ke.js";import{U as i,W as r}from"./chunk-4064rbtp.js";import{Id as c}from"./chunk-0ffmwhw7.js";import{Jd as g}from"./chunk-eyr5ymt8.js";import{Kd as y}from"./chunk-y0h3jfkj.js";import{Ld as k}from"./chunk-1rgt2vmt.js";import{Md as A}from"./chunk-rk0fnvp5.js";import{$d as P,Rd as w,Sd as u,Ud as W,Vd as L,Wd as T,Yd as p,Zd as o,_d as b}from"./chunk-2kh0tg92.js";import"./chunk-52xvhxek.js";import{be as z}from"./chunk-f4mnp6xd.js";import{eg as Y}from"./chunk-bwadggys.js";import{Ch as M}from"./chunk-he9kpk9r.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{Rk as a,el as s,yj as R}from"./chunk-qq9m8fxv.js";import{ql as V}from"./chunk-2qm46qvn.js";import{Ol as n}from"./chunk-tsmj98yf.js";import"./chunk-58f4y4b7.js";import"./chunk-rmsqb6r4.js";import"./chunk-qxdpgdfk.js";import"./chunk-6qwk6z87.js";import"./chunk-sa0rrreh.js";import"./chunk-ydgst3h8.js";import"./chunk-6tqbnxar.js";import"./chunk-0w19vmd7.js";import"./chunk-eewe7tx1.js";import"./chunk-37cbrnke.js";import"./chunk-wm9nh9nb.js";import"./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-9009v4d0.js";import"./chunk-82xrfk5x.js";import"./chunk-wqk1v8t0.js";import"./chunk-vkjqy92f.js";import{Or as l}from"./chunk-z0kbyr00.js";import"./chunk-sbjymf20.js";import"./chunk-dt3bsmfe.js";import"./chunk-vbfej8ds.js";import"./chunk-0tm6589k.js";import"./chunk-6yhn9syz.js";import{ls as d}from"./chunk-wb05bp10.js";import"./chunk-wgkcyqn1.js";import"./chunk-59csnjc3.js";import{lt as v}from"./chunk-1bxfzd6r.js";import"./chunk-6p6m5956.js";import"./chunk-a48mx917.js";import"./chunk-3va85mbe.js";import"./chunk-w7a33cwa.js";import{fH as O}from"./chunk-g7v6sp3c.js";import"./chunk-s2tc3qs0.js";import"./chunk-n6tqtk6h.js";import{xO as H1}from"./chunk-e0vrxetq.js";import f from"path";import{pathToFileURL as J1}from"url";import Q1 from"os";import{access as S1,readdir as X1}from"fs/promises";var q1={en:A,zh:k,ja:c,fr:y,ru:g},B1=q1[I()]??A;function U($,B){let J=B1[$]??A[$]??$;if(!B)return J;return J.replace(/\{(\w+)\}/g,(X,H)=>(H in B)?String(B[H]):`{${H}}`)}import{text as Z1}from"stream/consumers";var D=($,B)=>M.runPromise(O.gen(function*(){yield*(yield*R.Service).set($,B)}));async function t(){let $=await p({message:"Enter your API key",validate:(B)=>B&&B.length>0?void 0:"Required"});if(w($))throw new Y.CancelledError;return $}async function h($,B){let J=$.provider??B;if("refresh"in $){let{type:X,provider:H,refresh:Z,access:j,expires:q,metadata:S,...G}=$;await D(J,{type:"oauth",refresh:Z,access:j,expires:q,...G})}if("key"in $)await D(J,{type:"api",key:$.key,...$.metadata?{metadata:$.metadata}:{}})}async function x($,B,J){let X=0;if(J){let j=$.auth.methods.findIndex((q)=>q.label.toLowerCase()===J.toLowerCase());if(j===-1)W.error(`Unknown method "${J}" for ${B}. Available: ${$.auth.methods.map((q)=>q.label).join(", ")}`),process.exit(1);X=j}else if($.auth.methods.length>1){let j=await b({message:"Login method",options:$.auth.methods.map((q,S)=>({label:q.label,value:S.toString()}))});if(w(j))throw new Y.CancelledError;X=parseInt(j)}let H=$.auth.methods[X];await new Promise((j)=>setTimeout(j,10));let Z={};if(H.prompts)for(let j of H.prompts){if(j.when){let q=Z[j.when.key];if(q===void 0)continue;if(!(j.when.op==="eq"?q===j.when.value:q!==j.when.value))continue}if(j.condition&&!j.condition(Z))continue;if(j.type==="select"){let q=await b({message:j.message,options:j.options});if(w(q))throw new Y.CancelledError;Z[j.key]=q}else{let q=await P({message:j.message,placeholder:j.placeholder,validate:j.validate?(S)=>j.validate(S??""):void 0});if(w(q))throw new Y.CancelledError;Z[j.key]=q}}if(H.type==="oauth"){let j=await H.authorize(Z);if(j.url)W.info("Go to: "+j.url);if(j.method==="auto"){if(j.instructions)W.info(j.instructions);let q=o();q.start("Waiting for authorization...");let S=await j.callback();if(S.type==="failed")q.stop("Failed to authorize",1);if(S.type==="success")await h(S,B),q.stop("Login successful")}if(j.method==="code"){let q=await P({message:"Paste the authorization code here: ",validate:(G)=>G&&G.length>0?void 0:"Required"});if(w(q))throw new Y.CancelledError;let S=await j.callback(q);if(S.type==="failed")W.error("Failed to authorize");if(S.type==="success")await h(S,B),W.success("Login successful")}return T("Done"),!0}if(H.type==="api"){if(H.authorize){let j=await t(),q=await H.authorize(Z);if(q.type==="failed")W.error("Failed to authorize");if(q.type==="success"){let S=q.provider??B;await D(S,{type:"api",key:q.key??j}),W.success("Login successful")}return T("Done"),!0}}return!1}function G1($){let B=new Set,J=[];for(let X of $.hooks){if(!X.auth)continue;let H=X.auth.provider;if(B.has(H))continue;if(B.add(H),Object.hasOwn($.existingProviders,H))continue;if($.disabled.has(H))continue;if($.enabled&&!$.enabled.has(H))continue;J.push({id:H,name:$.providerNames[H]??H})}return J}function m($){let B=$?.loginExtension;if(!B||typeof B!=="object")return;let J=B;if(typeof J.id!=="string"||typeof J.run!=="function")return;return J}async function W1(){try{let J=await import("./chunk-aenrd7dk.js");for(let X of Object.values(J.modules??{})){let H=m(X);if(H)return H}}catch{}let $=f.join(import.meta.dir,"..","..","ext");await S1($).catch(()=>{return});let B=await X1($).catch(()=>[]);for(let J of B.filter((X)=>X.endsWith(".ts")&&!X.endsWith(".d.ts")))try{let X=m(await import(J1(f.join($,J)).href));if(X)return X}catch{}return}var l1=z({command:"providers",aliases:["auth"],describe:"manage AI providers and credentials",builder:($)=>$.command(Y1).command(_1).command(F1).command(K1).demandCommand(),async handler(){}}),Y1=z({command:"list",aliases:["ls"],describe:"list providers and credentials",async handler($){Y.empty();let B=f.join(v.Path.data,"auth.json"),J=Q1.homedir(),X=B===J||B.startsWith(J+f.sep)?"~"+B.slice(J.length):B;L(`Credentials ${Y.Style.TEXT_DIM}${X}`);let H=await M.runPromise(O.gen(function*(){let q=yield*R.Service;return Object.entries(yield*q.all())})),Z=await V.get();for(let[q,S]of H){let G=Z[q]?.name||q;W.info(`${G} ${Y.Style.TEXT_DIM}${S.type}`)}T(`${H.length} credentials`);let j=[];for(let[q,S]of Object.entries(Z))for(let G of S.env)if(process.env[G])j.push({provider:S.name||q,envVar:G});if(j.length>0){Y.empty(),L("Environment");for(let{provider:q,envVar:S}of j)W.info(`${q} ${Y.Style.TEXT_DIM}${S}`);T(`${j.length} environment variable`+(j.length===1?"":"s"))}}}),_1=z({command:"login [url]",describe:"log in to a provider",builder:($)=>$.positional("url",{describe:"qitqode auth provider",type:"string"}).option("provider",{alias:["p"],describe:"provider id or name to log in to (skips provider selection)",type:"string"}).option("method",{alias:["m"],describe:"login method label (skips method selection)",type:"string"}),async handler($){await n.provide({directory:process.cwd(),async fn(){if(Y.empty(),L("Add credential"),$.url){let Q=$.url.replace(/\/+$/,""),_=await fetch(`${Q}/.well-known/opencode`).then((j1)=>j1.json());W.info(`Running \`${_.auth.command.join(" ")}\``);let F=l.spawn(_.auth.command,{stdout:"pipe"});if(!F.stdout){W.error("Failed"),T("Done");return}let[C,N]=await Promise.all([F.exited,Z1(F.stdout)]);if(C!==0){W.error("Failed"),T("Done");return}await D(Q,{type:"wellknown",key:_.auth.env,token:N.trim()}),W.success("Logged into "+Q),T("Done");return}await V.refresh(!0).catch(()=>{});let B=await M.runPromise(s.Service.use((Q)=>Q.get())),J=new Set(B.disabled_providers??[]),X=B.enabled_providers?new Set(B.enabled_providers):void 0,H=await V.get().then((Q)=>{let _={};for(let[F,C]of Object.entries(Q))if((X?X.has(F):!0)&&!J.has(F))_[F]=C;return _}),Z=await M.runPromise(O.gen(function*(){return yield*(yield*a.Service).list()})),j=i,q=G1({hooks:Z,existingProviders:H,disabled:J,enabled:X,providerNames:Object.fromEntries(Object.entries(B.provider??{}).map(([Q,_])=>[Q,_.name]))}),S=[...r(d(H),j,(Q)=>({openai:"ChatGPT Plus/Pro or API key"})[Q.id]),...q.map((Q)=>({label:Q.name,value:Q.id,hint:"plugin"}))],G=await W1(),e=G?[G.id,...G.aliases??[]]:[],K;if(G&&$.provider&&e.includes($.provider)){await G.run();return}else if($.provider){let Q=$.provider,_=S.find((N)=>N.value===Q),F=S.find((N)=>N.label.toLowerCase()===Q.toLowerCase()),C=_??F;if(!C)W.error(`Unknown provider "${Q}"`),process.exit(1);K=C.value}else{let Q=await b({message:U("cli.providers.select"),options:[...G?.menu?[{label:G.menu.label,value:G.id,hint:G.menu.hint}]:[],{label:U("cli.providers.other"),value:"__other__"}]});if(w(Q))throw new Y.CancelledError;if(G&&Q===G.id){await G.run();return}let _=await u({message:U("cli.providers.select"),maxItems:8,options:[...S,{value:"other",label:"Other"}]});if(w(_))throw new Y.CancelledError;K=_}let E=Z.findLast((Q)=>Q.auth?.provider===K);if(E&&E.auth){if(await x({auth:E.auth},K,$.method))return}if(K==="other"){let Q=await P({message:"Enter provider id",validate:(F)=>F&&F.match(/^[0-9a-z-]+$/)?void 0:"a-z, 0-9 and hyphens only"});if(w(Q))throw new Y.CancelledError;K=Q.replace(/^@ai-sdk\//,"");let _=Z.findLast((F)=>F.auth?.provider===K);if(_&&_.auth){if(await x({auth:_.auth},K,$.method))return}W.warn(`This only stores a credential for ${K} - you will need configure it in qitqode.json, check the docs for examples.`)}if(K==="amazon-bedrock")W.info(`Amazon Bedrock authentication priority:
3
3
  1. Bearer token (AWS_BEARER_TOKEN_BEDROCK or /connect)
4
4
  2. AWS credential chain (profile, access keys, IAM roles, EKS IRSA)
5
5
 
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{sO as a}from"./chunk-n6tqtk6h.js";import"./chunk-e0vrxetq.js";export default a();
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import"./chunk-r9w0thdk.js";var e={"ui.sessionReview.title":"Altera\xE7\xF5es da sess\xE3o","ui.sessionReview.title.lastTurn":"Altera\xE7\xF5es do \xFAltimo turno","ui.sessionReview.diffStyle.unified":"Unificado","ui.sessionReview.diffStyle.split":"Dividido","ui.sessionReview.openFile":"Abrir arquivo","ui.sessionReview.selection.line":"linha {{line}}","ui.sessionReview.selection.lines":"linhas {{start}}-{{end}}","ui.sessionReview.expandAll":"Expandir tudo","ui.sessionReview.collapseAll":"Recolher tudo","ui.sessionReview.change.added":"Adicionado","ui.sessionReview.change.removed":"Removido","ui.sessionReview.change.modified":"Modificado","ui.sessionReview.image.loading":"Carregando...","ui.sessionReview.image.placeholder":"Imagem","ui.sessionReview.largeDiff.title":"Diff grande demais para renderizar","ui.sessionReview.largeDiff.meta":"Limite: {{limit}} linhas alteradas. Atual: {{current}} linhas alteradas.","ui.sessionReview.largeDiff.renderAnyway":"Renderizar mesmo assim","ui.fileMedia.kind.image":"imagem","ui.fileMedia.kind.audio":"\xE1udio","ui.fileMedia.state.removed":"Removido: {{kind}}","ui.fileMedia.state.loading":"Carregando {{kind}}...","ui.fileMedia.state.error":"Erro ao carregar {{kind}}","ui.fileMedia.state.unavailable":"{{kind}} indispon\xEDvel","ui.fileMedia.binary.title":"Arquivo bin\xE1rio","ui.fileMedia.binary.description.path":"N\xE3o \xE9 poss\xEDvel exibir {{path}} porque \xE9 um arquivo bin\xE1rio.","ui.fileMedia.binary.description.default":"N\xE3o \xE9 poss\xEDvel exibir o arquivo porque ele \xE9 bin\xE1rio.","ui.lineComment.label.prefix":"Comentar em ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"Comentando em ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"Adicionar coment\xE1rio","ui.lineComment.submit":"Comentar","ui.sessionTurn.steps.show":"Mostrar passos","ui.sessionTurn.steps.hide":"Ocultar passos","ui.sessionTurn.summary.response":"Resposta","ui.sessionTurn.diff.showMore":"Mostrar mais altera\xE7\xF5es ({{count}})","ui.sessionTurn.retry.retrying":"tentando novamente","ui.sessionTurn.retry.inSeconds":"em {{seconds}}s","ui.sessionTurn.retry.attempt":"tentativa #{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - tentativa #{{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini est\xE1 muito sobrecarregado agora","ui.sessionTurn.error.freeUsageExceeded":"Limite de uso gratuito excedido","ui.sessionTurn.error.addQredits":"Adicionar cr\xE9ditos","ui.sessionTurn.status.delegating":"Delegando trabalho","ui.sessionTurn.status.planning":"Planejando pr\xF3ximos passos","ui.sessionTurn.status.gatheringContext":"Explorando","ui.sessionTurn.status.gatheredContext":"Explorado","ui.sessionTurn.status.searchingCodebase":"Pesquisando no c\xF3digo","ui.sessionTurn.status.searchingWeb":"Pesquisando na web","ui.sessionTurn.status.makingEdits":"Fazendo edi\xE7\xF5es","ui.sessionTurn.status.runningCommands":"Executando comandos","ui.sessionTurn.status.thinking":"Pensando","ui.sessionTurn.status.thinkingWithTopic":"Pensando - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"Organizando pensamentos","ui.sessionTurn.status.consideringNextSteps":"Considerando pr\xF3ximos passos","ui.messagePart.questions.dismissed":"Perguntas descartadas","ui.messagePart.compaction":"Sess\xE3o compactada","ui.messagePart.context.read.one":"{{count}} leitura","ui.messagePart.context.read.other":"{{count}} leituras","ui.messagePart.context.search.one":"{{count}} pesquisa","ui.messagePart.context.search.other":"{{count}} pesquisas","ui.messagePart.context.list.one":"{{count}} lista","ui.messagePart.context.list.other":"{{count}} listas","ui.messagePart.diagnostic.error":"Erro","ui.messagePart.title.edit":"Editar","ui.messagePart.title.write":"Escrever","ui.messagePart.option.typeOwnAnswer":"Digite sua pr\xF3pria resposta","ui.messagePart.review.title":"Revise suas respostas","ui.list.loading":"Carregando","ui.list.empty":"Nenhum resultado","ui.list.clearFilter":"Limpar filtro","ui.list.emptyWithFilter.prefix":"Nenhum resultado para","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"Nova mensagem","ui.textField.copyToClipboard":"Copiar para \xE1rea de transfer\xEAncia","ui.textField.copyLink":"Copiar link","ui.textField.copied":"Copiado","ui.imagePreview.alt":"Visualiza\xE7\xE3o de imagem","ui.scrollView.ariaLabel":"conte\xFAdo rol\xE1vel","ui.tool.read":"Ler","ui.tool.loaded":"Carregado","ui.tool.list":"Listar","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Buscar Web","ui.tool.websearch":"Pesquisa na Web","ui.tool.codesearch":"Pesquisa de C\xF3digo","ui.tool.shell":"Shell","ui.tool.patch":"Patch","ui.tool.todos":"Tarefas","ui.tool.todos.read":"Ler tarefas","ui.tool.questions":"Perguntas","ui.tool.agent":"Agente {{type}}","ui.tool.agent.default":"Agente","ui.common.file.one":"arquivo","ui.common.file.other":"arquivos","ui.common.question.one":"pergunta","ui.common.question.other":"perguntas","ui.common.add":"Adicionar","ui.common.back":"Voltar","ui.common.cancel":"Cancelar","ui.common.confirm":"Confirmar","ui.common.dismiss":"Descartar","ui.common.close":"Fechar","ui.common.next":"Pr\xF3ximo","ui.common.submit":"Enviar","ui.permission.deny":"Negar","ui.permission.allowAlways":"Permitir sempre","ui.permission.allowOnce":"Permitir uma vez","ui.message.expand":"Expandir mensagem","ui.message.collapse":"Recolher mensagem","ui.message.copy":"Copiar","ui.message.copyMessage":"Copiar mensagem","ui.message.forkMessage":"Bifurcar para nova sess\xE3o","ui.message.revertMessage":"Redefinir para este ponto","ui.message.copyResponse":"Copiar resposta","ui.message.copied":"Copiado!","ui.message.interrupted":"Interrompido","ui.message.queued":"Na fila","ui.message.attachment.alt":"anexo","ui.patch.action.deleted":"Exclu\xEDdo","ui.patch.action.created":"Criado","ui.patch.action.moved":"Movido","ui.patch.action.patched":"Patch aplicado","ui.question.subtitle.answered":"{{count}} respondidas","ui.question.answer.none":"(sem resposta)","ui.question.review.notAnswered":"(n\xE3o respondida)","ui.question.multiHint":"Selecione todas que se aplicam","ui.question.singleHint":"Selecione uma resposta","ui.question.custom.placeholder":"Digite sua resposta...","ui.fileSearch.placeholder":"Localizar","ui.fileSearch.previousMatch":"Ocorr\xEAncia anterior","ui.fileSearch.nextMatch":"Pr\xF3xima ocorr\xEAncia","ui.fileSearch.close":"Fechar busca","ui.tool.task":"Tarefa","ui.tool.skill":"Habilidade","ui.basicTool.called":"Chamou `{{tool}}`","ui.toolErrorCard.failed":"Falhou","ui.toolErrorCard.copyError":"Copiar erro","ui.message.duration.seconds":"{{count}}s","ui.message.duration.minutesSeconds":"{{minutes}}m {{seconds}}s"};export{e as dict};
2
+ import"./chunk-e0vrxetq.js";var e={"ui.sessionReview.title":"Altera\xE7\xF5es da sess\xE3o","ui.sessionReview.title.lastTurn":"Altera\xE7\xF5es do \xFAltimo turno","ui.sessionReview.diffStyle.unified":"Unificado","ui.sessionReview.diffStyle.split":"Dividido","ui.sessionReview.openFile":"Abrir arquivo","ui.sessionReview.selection.line":"linha {{line}}","ui.sessionReview.selection.lines":"linhas {{start}}-{{end}}","ui.sessionReview.expandAll":"Expandir tudo","ui.sessionReview.collapseAll":"Recolher tudo","ui.sessionReview.change.added":"Adicionado","ui.sessionReview.change.removed":"Removido","ui.sessionReview.change.modified":"Modificado","ui.sessionReview.image.loading":"Carregando...","ui.sessionReview.image.placeholder":"Imagem","ui.sessionReview.largeDiff.title":"Diff grande demais para renderizar","ui.sessionReview.largeDiff.meta":"Limite: {{limit}} linhas alteradas. Atual: {{current}} linhas alteradas.","ui.sessionReview.largeDiff.renderAnyway":"Renderizar mesmo assim","ui.fileMedia.kind.image":"imagem","ui.fileMedia.kind.audio":"\xE1udio","ui.fileMedia.state.removed":"Removido: {{kind}}","ui.fileMedia.state.loading":"Carregando {{kind}}...","ui.fileMedia.state.error":"Erro ao carregar {{kind}}","ui.fileMedia.state.unavailable":"{{kind}} indispon\xEDvel","ui.fileMedia.binary.title":"Arquivo bin\xE1rio","ui.fileMedia.binary.description.path":"N\xE3o \xE9 poss\xEDvel exibir {{path}} porque \xE9 um arquivo bin\xE1rio.","ui.fileMedia.binary.description.default":"N\xE3o \xE9 poss\xEDvel exibir o arquivo porque ele \xE9 bin\xE1rio.","ui.lineComment.label.prefix":"Comentar em ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"Comentando em ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"Adicionar coment\xE1rio","ui.lineComment.submit":"Comentar","ui.sessionTurn.steps.show":"Mostrar passos","ui.sessionTurn.steps.hide":"Ocultar passos","ui.sessionTurn.summary.response":"Resposta","ui.sessionTurn.diff.showMore":"Mostrar mais altera\xE7\xF5es ({{count}})","ui.sessionTurn.retry.retrying":"tentando novamente","ui.sessionTurn.retry.inSeconds":"em {{seconds}}s","ui.sessionTurn.retry.attempt":"tentativa #{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - tentativa #{{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini est\xE1 muito sobrecarregado agora","ui.sessionTurn.error.freeUsageExceeded":"Limite de uso gratuito excedido","ui.sessionTurn.error.addQredits":"Adicionar cr\xE9ditos","ui.sessionTurn.status.delegating":"Delegando trabalho","ui.sessionTurn.status.planning":"Planejando pr\xF3ximos passos","ui.sessionTurn.status.gatheringContext":"Explorando","ui.sessionTurn.status.gatheredContext":"Explorado","ui.sessionTurn.status.searchingCodebase":"Pesquisando no c\xF3digo","ui.sessionTurn.status.searchingWeb":"Pesquisando na web","ui.sessionTurn.status.makingEdits":"Fazendo edi\xE7\xF5es","ui.sessionTurn.status.runningCommands":"Executando comandos","ui.sessionTurn.status.thinking":"Pensando","ui.sessionTurn.status.thinkingWithTopic":"Pensando - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"Organizando pensamentos","ui.sessionTurn.status.consideringNextSteps":"Considerando pr\xF3ximos passos","ui.messagePart.questions.dismissed":"Perguntas descartadas","ui.messagePart.compaction":"Sess\xE3o compactada","ui.messagePart.context.read.one":"{{count}} leitura","ui.messagePart.context.read.other":"{{count}} leituras","ui.messagePart.context.search.one":"{{count}} pesquisa","ui.messagePart.context.search.other":"{{count}} pesquisas","ui.messagePart.context.list.one":"{{count}} lista","ui.messagePart.context.list.other":"{{count}} listas","ui.messagePart.diagnostic.error":"Erro","ui.messagePart.title.edit":"Editar","ui.messagePart.title.write":"Escrever","ui.messagePart.option.typeOwnAnswer":"Digite sua pr\xF3pria resposta","ui.messagePart.review.title":"Revise suas respostas","ui.list.loading":"Carregando","ui.list.empty":"Nenhum resultado","ui.list.clearFilter":"Limpar filtro","ui.list.emptyWithFilter.prefix":"Nenhum resultado para","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"Nova mensagem","ui.textField.copyToClipboard":"Copiar para \xE1rea de transfer\xEAncia","ui.textField.copyLink":"Copiar link","ui.textField.copied":"Copiado","ui.imagePreview.alt":"Visualiza\xE7\xE3o de imagem","ui.scrollView.ariaLabel":"conte\xFAdo rol\xE1vel","ui.tool.read":"Ler","ui.tool.loaded":"Carregado","ui.tool.list":"Listar","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Buscar Web","ui.tool.websearch":"Pesquisa na Web","ui.tool.codesearch":"Pesquisa de C\xF3digo","ui.tool.shell":"Shell","ui.tool.patch":"Patch","ui.tool.todos":"Tarefas","ui.tool.todos.read":"Ler tarefas","ui.tool.questions":"Perguntas","ui.tool.agent":"Agente {{type}}","ui.tool.agent.default":"Agente","ui.common.file.one":"arquivo","ui.common.file.other":"arquivos","ui.common.question.one":"pergunta","ui.common.question.other":"perguntas","ui.common.add":"Adicionar","ui.common.back":"Voltar","ui.common.cancel":"Cancelar","ui.common.confirm":"Confirmar","ui.common.dismiss":"Descartar","ui.common.close":"Fechar","ui.common.next":"Pr\xF3ximo","ui.common.submit":"Enviar","ui.permission.deny":"Negar","ui.permission.allowAlways":"Permitir sempre","ui.permission.allowOnce":"Permitir uma vez","ui.message.expand":"Expandir mensagem","ui.message.collapse":"Recolher mensagem","ui.message.copy":"Copiar","ui.message.copyMessage":"Copiar mensagem","ui.message.forkMessage":"Bifurcar para nova sess\xE3o","ui.message.revertMessage":"Redefinir para este ponto","ui.message.copyResponse":"Copiar resposta","ui.message.copied":"Copiado!","ui.message.interrupted":"Interrompido","ui.message.queued":"Na fila","ui.message.attachment.alt":"anexo","ui.patch.action.deleted":"Exclu\xEDdo","ui.patch.action.created":"Criado","ui.patch.action.moved":"Movido","ui.patch.action.patched":"Patch aplicado","ui.question.subtitle.answered":"{{count}} respondidas","ui.question.answer.none":"(sem resposta)","ui.question.review.notAnswered":"(n\xE3o respondida)","ui.question.multiHint":"Selecione todas que se aplicam","ui.question.singleHint":"Selecione uma resposta","ui.question.custom.placeholder":"Digite sua resposta...","ui.fileSearch.placeholder":"Localizar","ui.fileSearch.previousMatch":"Ocorr\xEAncia anterior","ui.fileSearch.nextMatch":"Pr\xF3xima ocorr\xEAncia","ui.fileSearch.close":"Fechar busca","ui.tool.task":"Tarefa","ui.tool.skill":"Habilidade","ui.basicTool.called":"Chamou `{{tool}}`","ui.toolErrorCard.failed":"Falhou","ui.toolErrorCard.copyError":"Copiar erro","ui.message.duration.seconds":"{{count}}s","ui.message.duration.minutesSeconds":"{{minutes}}m {{seconds}}s"};export{e as dict};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-cqtkxwd8.js";import{_p as H}from"./chunk-pr7z5dj8.js";import{Jt as Q,nt as gG}from"./chunk-j9h1sp4g.js";import{xy as mG}from"./chunk-p6crzjtf.js";import"./chunk-r9w0thdk.js";var{defineProperty:uJ,defineProperties:cJ,getOwnPropertyDescriptors:dJ,getOwnPropertySymbols:VB}=Object,uG=Object.prototype.hasOwnProperty,cG=Object.prototype.propertyIsEnumerable,dG=(B)=>{throw TypeError(B)},GG=(B,G,J)=>(G in B)?uJ(B,G,{enumerable:!0,configurable:!0,writable:!0,value:J}):B[G]=J,W=(B,G)=>{for(var J in G||(G={}))if(uG.call(G,J))GG(B,J,G[J]);if(VB){for(var J of VB(G))if(cG.call(G,J))GG(B,J,G[J])}return B},T=(B,G)=>cJ(B,dJ(G)),LB=(B,G)=>{var J={};for(var N in B)if(uG.call(B,N)&&G.indexOf(N)<0)J[N]=B[N];if(B!=null&&VB){for(var N of VB(B))if(G.indexOf(N)<0&&cG.call(B,N))J[N]=B[N]}return J},pJ=(B,G,J)=>G.has(B)||dG("Cannot "+J),JG=(B,G,J)=>(pJ(B,G,"read from private field"),J?J.call(B):G.get(B)),iJ=(B,G,J)=>G.has(B)?dG("Cannot add the same private member more than once"):G instanceof WeakSet?G.add(B):G.set(B,J),pG="vercel.ai.error",rJ=Symbol.for(pG),NG,QG,I=class B extends(QG=Error,NG=rJ,QG){constructor({name:G,message:J,cause:N}){super(J);this[NG]=!0,this.name=G,this.cause=N}static isInstance(G){return B.hasMarker(G,pG)}static hasMarker(G,J){let N=Symbol.for(J);return G!=null&&typeof G==="object"&&N in G&&typeof G[N]==="boolean"&&G[N]===!0}},iG="AI_APICallError",rG=`vercel.ai.error.${iG}`,sJ=Symbol.for(rG),XG,YG,o=class extends(YG=I,XG=sJ,YG){constructor({message:B,url:G,requestBodyValues:J,statusCode:N,responseHeaders:X,responseBody:Y,cause:Z,isRetryable:$=N!=null&&(N===408||N===409||N===429||N>=500),data:z}){super({name:iG,message:B,cause:Z});this[XG]=!0,this.url=G,this.requestBodyValues=J,this.statusCode=N,this.responseHeaders=X,this.responseBody=Y,this.isRetryable=$,this.data=z}static isInstance(B){return I.hasMarker(B,rG)}},sG="AI_EmptyResponseBodyError",nG=`vercel.ai.error.${sG}`,nJ=Symbol.for(nG),ZG,$G,aJ=class extends($G=I,ZG=nJ,$G){constructor({message:B="Empty response body"}={}){super({name:sG,message:B});this[ZG]=!0}static isInstance(B){return I.hasMarker(B,nG)}};function aG(B){if(B==null)return"unknown error";if(typeof B==="string")return B;if(B instanceof Error)return B.message;return JSON.stringify(B)}var lG="AI_InvalidArgumentError",tG=`vercel.ai.error.${lG}`,lJ=Symbol.for(tG),WG,zG,oG=class extends(zG=I,WG=lJ,zG){constructor({message:B,cause:G,argument:J}){super({name:lG,message:B,cause:G});this[WG]=!0,this.argument=J}static isInstance(B){return I.hasMarker(B,tG)}},eG="AI_InvalidPromptError",BJ=`vercel.ai.error.${eG}`,tJ=Symbol.for(BJ),jG,KG,oJ=class extends(KG=I,jG=tJ,KG){constructor({prompt:B,message:G,cause:J}){super({name:eG,message:`Invalid prompt: ${G}`,cause:J});this[jG]=!0,this.prompt=B}static isInstance(B){return I.hasMarker(B,BJ)}},GJ="AI_InvalidResponseDataError",JJ=`vercel.ai.error.${GJ}`,eJ=Symbol.for(JJ),LG,FG,KB=class extends(FG=I,LG=eJ,FG){constructor({data:B,message:G=`Invalid response data: ${JSON.stringify(B)}.`}){super({name:GJ,message:G});this[LG]=!0,this.data=B}static isInstance(B){return I.hasMarker(B,JJ)}},NJ="AI_JSONParseError",QJ=`vercel.ai.error.${NJ}`,BN=Symbol.for(QJ),qG,wG,bB=class extends(wG=I,qG=BN,wG){constructor({text:B,cause:G}){super({name:NJ,message:`JSON parsing failed: Text: ${B}.
2
+ import"./chunk-cqtkxwd8.js";import{$p as H}from"./chunk-y3gy62q5.js";import{Kt as Q,ot as gG}from"./chunk-a48mx917.js";import{yy as mG}from"./chunk-3va85mbe.js";import"./chunk-e0vrxetq.js";var{defineProperty:uJ,defineProperties:cJ,getOwnPropertyDescriptors:dJ,getOwnPropertySymbols:VB}=Object,uG=Object.prototype.hasOwnProperty,cG=Object.prototype.propertyIsEnumerable,dG=(B)=>{throw TypeError(B)},GG=(B,G,J)=>(G in B)?uJ(B,G,{enumerable:!0,configurable:!0,writable:!0,value:J}):B[G]=J,W=(B,G)=>{for(var J in G||(G={}))if(uG.call(G,J))GG(B,J,G[J]);if(VB){for(var J of VB(G))if(cG.call(G,J))GG(B,J,G[J])}return B},T=(B,G)=>cJ(B,dJ(G)),LB=(B,G)=>{var J={};for(var N in B)if(uG.call(B,N)&&G.indexOf(N)<0)J[N]=B[N];if(B!=null&&VB){for(var N of VB(B))if(G.indexOf(N)<0&&cG.call(B,N))J[N]=B[N]}return J},pJ=(B,G,J)=>G.has(B)||dG("Cannot "+J),JG=(B,G,J)=>(pJ(B,G,"read from private field"),J?J.call(B):G.get(B)),iJ=(B,G,J)=>G.has(B)?dG("Cannot add the same private member more than once"):G instanceof WeakSet?G.add(B):G.set(B,J),pG="vercel.ai.error",rJ=Symbol.for(pG),NG,QG,I=class B extends(QG=Error,NG=rJ,QG){constructor({name:G,message:J,cause:N}){super(J);this[NG]=!0,this.name=G,this.cause=N}static isInstance(G){return B.hasMarker(G,pG)}static hasMarker(G,J){let N=Symbol.for(J);return G!=null&&typeof G==="object"&&N in G&&typeof G[N]==="boolean"&&G[N]===!0}},iG="AI_APICallError",rG=`vercel.ai.error.${iG}`,sJ=Symbol.for(rG),XG,YG,o=class extends(YG=I,XG=sJ,YG){constructor({message:B,url:G,requestBodyValues:J,statusCode:N,responseHeaders:X,responseBody:Y,cause:Z,isRetryable:$=N!=null&&(N===408||N===409||N===429||N>=500),data:z}){super({name:iG,message:B,cause:Z});this[XG]=!0,this.url=G,this.requestBodyValues=J,this.statusCode=N,this.responseHeaders=X,this.responseBody=Y,this.isRetryable=$,this.data=z}static isInstance(B){return I.hasMarker(B,rG)}},sG="AI_EmptyResponseBodyError",nG=`vercel.ai.error.${sG}`,nJ=Symbol.for(nG),ZG,$G,aJ=class extends($G=I,ZG=nJ,$G){constructor({message:B="Empty response body"}={}){super({name:sG,message:B});this[ZG]=!0}static isInstance(B){return I.hasMarker(B,nG)}};function aG(B){if(B==null)return"unknown error";if(typeof B==="string")return B;if(B instanceof Error)return B.message;return JSON.stringify(B)}var lG="AI_InvalidArgumentError",tG=`vercel.ai.error.${lG}`,lJ=Symbol.for(tG),WG,zG,oG=class extends(zG=I,WG=lJ,zG){constructor({message:B,cause:G,argument:J}){super({name:lG,message:B,cause:G});this[WG]=!0,this.argument=J}static isInstance(B){return I.hasMarker(B,tG)}},eG="AI_InvalidPromptError",BJ=`vercel.ai.error.${eG}`,tJ=Symbol.for(BJ),jG,KG,oJ=class extends(KG=I,jG=tJ,KG){constructor({prompt:B,message:G,cause:J}){super({name:eG,message:`Invalid prompt: ${G}`,cause:J});this[jG]=!0,this.prompt=B}static isInstance(B){return I.hasMarker(B,BJ)}},GJ="AI_InvalidResponseDataError",JJ=`vercel.ai.error.${GJ}`,eJ=Symbol.for(JJ),LG,FG,KB=class extends(FG=I,LG=eJ,FG){constructor({data:B,message:G=`Invalid response data: ${JSON.stringify(B)}.`}){super({name:GJ,message:G});this[LG]=!0,this.data=B}static isInstance(B){return I.hasMarker(B,JJ)}},NJ="AI_JSONParseError",QJ=`vercel.ai.error.${NJ}`,BN=Symbol.for(QJ),qG,wG,bB=class extends(wG=I,qG=BN,wG){constructor({text:B,cause:G}){super({name:NJ,message:`JSON parsing failed: Text: ${B}.
3
3
  Error message: ${aG(G)}`,cause:G});this[qG]=!0,this.text=B}static isInstance(B){return I.hasMarker(B,QJ)}},XJ="AI_LoadAPIKeyError",YJ=`vercel.ai.error.${XJ}`,GN=Symbol.for(YJ),EG,PG,OB=class extends(PG=I,EG=GN,PG){constructor({message:B}){super({name:XJ,message:B});this[EG]=!0}static isInstance(B){return I.hasMarker(B,YJ)}},ZJ="AI_LoadSettingError",$J=`vercel.ai.error.${ZJ}`,JN=Symbol.for($J),OG,HG,XX=class extends(HG=I,OG=JN,HG){constructor({message:B}){super({name:ZJ,message:B});this[OG]=!0}static isInstance(B){return I.hasMarker(B,$J)}},WJ="AI_NoContentGeneratedError",zJ=`vercel.ai.error.${WJ}`,NN=Symbol.for(zJ),SG,yG,rB=class extends(yG=I,SG=NN,yG){constructor({message:B="No content generated."}={}){super({name:WJ,message:B});this[SG]=!0}static isInstance(B){return I.hasMarker(B,zJ)}},jJ="AI_NoSuchModelError",KJ=`vercel.ai.error.${jJ}`,QN=Symbol.for(KJ),AG,VG,YX=class extends(VG=I,AG=QN,VG){constructor({errorName:B=jJ,modelId:G,modelType:J,message:N=`No such ${J}: ${G}`}){super({name:B,message:N});this[AG]=!0,this.modelId=G,this.modelType=J}static isInstance(B){return I.hasMarker(B,KJ)}},LJ="AI_TooManyEmbeddingValuesForCallError",FJ=`vercel.ai.error.${LJ}`,XN=Symbol.for(FJ),bG,MG,ZX=class extends(MG=I,bG=XN,MG){constructor(B){super({name:LJ,message:`Too many values for a single embedding call. The ${B.provider} model "${B.modelId}" can only embed up to ${B.maxEmbeddingsPerCall} values per call, but ${B.values.length} values were provided.`});this[bG]=!0,this.provider=B.provider,this.modelId=B.modelId,this.maxEmbeddingsPerCall=B.maxEmbeddingsPerCall,this.values=B.values}static isInstance(B){return I.hasMarker(B,FJ)}},qJ="AI_TypeValidationError",wJ=`vercel.ai.error.${qJ}`,YN=Symbol.for(wJ),TG,UG,FB=class B extends(UG=I,TG=YN,UG){constructor({value:G,cause:J}){super({name:qJ,message:`Type validation failed: Value: ${JSON.stringify(G)}.
4
4
  Error message: ${aG(J)}`,cause:J});this[TG]=!0,this.value=G}static isInstance(G){return I.hasMarker(G,wJ)}static wrap({value:G,cause:J}){return B.isInstance(J)&&J.value===G?J:new B({value:G,cause:J})}},EJ="AI_UnsupportedFunctionalityError",PJ=`vercel.ai.error.${EJ}`,ZN=Symbol.for(PJ),xG,kG,BB=class extends(kG=I,xG=ZN,kG){constructor({functionality:B,message:G=`'${B}' functionality not supported.`}){super({name:EJ,message:G});this[xG]=!0,this.functionality=B}static isInstance(B){return I.hasMarker(B,PJ)}},DG=class extends Error{constructor(B,G){super(B),this.name="ParseError",this.type=G.type,this.field=G.field,this.value=G.value,this.line=G.line}};function CB(B){}function $N(B){if(typeof B=="function")throw TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:G=CB,onError:J=CB,onRetry:N=CB,onComment:X}=B,Y="",Z=!0,$,z="",j="";function E(K){let V=Z?K.replace(/^\xEF\xBB\xBF/,""):K,[F,x]=WN(`${Y}${V}`);for(let C of F)P(C);Y=x,Z=!1}function P(K){if(K===""){L();return}if(K.startsWith(":")){X&&X(K.slice(K.startsWith(": ")?2:1));return}let V=K.indexOf(":");if(V!==-1){let F=K.slice(0,V),x=K[V+1]===" "?2:1,C=K.slice(V+x);q(F,C,K);return}q(K,"",K)}function q(K,V,F){switch(K){case"event":j=V;break;case"data":z=`${z}${V}
5
5
  `;break;case"id":$=V.includes("\x00")?void 0:V;break;case"retry":/^\d+$/.test(V)?N(parseInt(V,10)):J(new DG(`Invalid \`retry\` value: "${V}"`,{type:"invalid-retry",value:V,line:F}));break;default:J(new DG(`Unknown field "${K.length>20?`${K.slice(0,20)}\u2026`:K}"`,{type:"unknown-field",field:K,value:V,line:F}));break}}function L(){z.length>0&&G({id:$,event:j||void 0,data:z.endsWith(`
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{qO as D}from"./chunk-gy21fw82.js";import{rO as C}from"./chunk-j8fcfhr2.js";import{tO as B}from"./chunk-r9w0thdk.js";var H=B((q)=>{Object.defineProperty(q,"__esModule",{value:!0});q.getMachineId=void 0;var E=D(),F=C();async function G(){try{let f=(await(0,E.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
2
+ import{rO as D}from"./chunk-wb47k8ah.js";import{sO as C}from"./chunk-n6tqtk6h.js";import{uO as B}from"./chunk-e0vrxetq.js";var H=B((q)=>{Object.defineProperty(q,"__esModule",{value:!0});q.getMachineId=void 0;var E=D(),F=C();async function G(){try{let f=(await(0,E.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
3
3
  `).find((z)=>z.includes("IOPlatformUUID"));if(!f)return;let k=f.split('" = "');if(k.length===2)return k[1].slice(0,-1)}catch(b){F.diag.debug(`error reading machine id: ${b}`)}return}q.getMachineId=G});export default H();
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{tO as e,wO as d}from"./chunk-r9w0thdk.js";var jq=e((j)=>{var E=j&&j.__importDefault||function(q){return q&&q.__esModule?q:{default:q}};Object.defineProperty(j,"__esModule",{value:!0});j.Minipass=j.isWritable=j.isReadable=j.isStream=void 0;var T=typeof process==="object"&&process?process:{stdout:null,stderr:null},O=d("events"),s=E(d("stream")),qq=d("string_decoder"),zq=(q)=>!!q&&typeof q==="object"&&(q instanceof r||q instanceof s.default||(0,j.isReadable)(q)||(0,j.isWritable)(q));j.isStream=zq;var Qq=(q)=>!!q&&typeof q==="object"&&q instanceof O.EventEmitter&&typeof q.pipe==="function"&&q.pipe!==s.default.Writable.prototype.pipe;j.isReadable=Qq;var Xq=(q)=>!!q&&typeof q==="object"&&q instanceof O.EventEmitter&&typeof q.write==="function"&&typeof q.end==="function";j.isWritable=Xq;var f=Symbol("EOF"),l=Symbol("maybeEmitEnd"),H=Symbol("emittedEnd"),M=Symbol("emittingEnd"),_=Symbol("emittedError"),i=Symbol("closed"),c=Symbol("read"),v=Symbol("flush"),t=Symbol("flushChunk"),x=Symbol("encoding"),Y=Symbol("decoder"),Z=Symbol("flowing"),G=Symbol("paused"),P=Symbol("resume"),$=Symbol("buffer"),y=Symbol("pipes"),V=Symbol("bufferLength"),u=Symbol("bufferPush"),A=Symbol("bufferShift"),w=Symbol("objectMode"),X=Symbol("destroyed"),p=Symbol("error"),S=Symbol("emitData"),o=Symbol("emitEnd"),I=Symbol("emitEnd2"),W=Symbol("async"),N=Symbol("abort"),a=Symbol("aborted"),L=Symbol("signal"),g=Symbol("dataListeners"),m=Symbol("discarded"),C=(q)=>Promise.resolve().then(q),Zq=(q)=>q(),$q=(q)=>q==="end"||q==="finish"||q==="prefinish",Vq=(q)=>q instanceof ArrayBuffer||!!q&&typeof q==="object"&&q.constructor&&q.constructor.name==="ArrayBuffer"&&q.byteLength>=0,Kq=(q)=>!Buffer.isBuffer(q)&&ArrayBuffer.isView(q);class F{src;dest;opts;ondrain;constructor(q,z,Q){this.src=q,this.dest=z,this.opts=Q,this.ondrain=()=>q[P](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(q){}end(){if(this.unpipe(),this.opts.end)this.dest.end()}}class D extends F{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(q,z,Q){super(q,z,Q);this.proxyErrors=(K)=>this.dest.emit("error",K),q.on("error",this.proxyErrors)}}var wq=(q)=>!!q.objectMode,yq=(q)=>!q.objectMode&&!!q.encoding&&q.encoding!=="buffer";class r extends O.EventEmitter{[Z]=!1;[G]=!1;[y]=[];[$]=[];[w];[x];[W];[Y];[f]=!1;[H]=!1;[M]=!1;[i]=!1;[_]=null;[V]=0;[X]=!1;[L];[a]=!1;[g]=0;[m]=!1;writable=!0;readable=!0;constructor(...q){let z=q[0]||{};super();if(z.objectMode&&typeof z.encoding==="string")throw TypeError("Encoding and objectMode may not be used together");if(wq(z))this[w]=!0,this[x]=null;else if(yq(z))this[x]=z.encoding,this[w]=!1;else this[w]=!1,this[x]=null;if(this[W]=!!z.async,this[Y]=this[x]?new qq.StringDecoder(this[x]):null,z&&z.debugExposeBuffer===!0)Object.defineProperty(this,"buffer",{get:()=>this[$]});if(z&&z.debugExposePipes===!0)Object.defineProperty(this,"pipes",{get:()=>this[y]});let{signal:Q}=z;if(Q)if(this[L]=Q,Q.aborted)this[N]();else Q.addEventListener("abort",()=>this[N]())}get bufferLength(){return this[V]}get encoding(){return this[x]}set encoding(q){throw Error("Encoding must be set at instantiation time")}setEncoding(q){throw Error("Encoding must be set at instantiation time")}get objectMode(){return this[w]}set objectMode(q){throw Error("objectMode must be set at instantiation time")}get["async"](){return this[W]}set["async"](q){this[W]=this[W]||!!q}[N](){this[a]=!0,this.emit("abort",this[L]?.reason),this.destroy(this[L]?.reason)}get aborted(){return this[a]}set aborted(q){}write(q,z,Q){if(this[a])return!1;if(this[f])throw Error("write after end");if(this[X])return this.emit("error",Object.assign(Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;if(typeof z==="function")Q=z,z="utf8";if(!z)z="utf8";let K=this[W]?C:Zq;if(!this[w]&&!Buffer.isBuffer(q)){if(Kq(q))q=Buffer.from(q.buffer,q.byteOffset,q.byteLength);else if(Vq(q))q=Buffer.from(q);else if(typeof q!=="string")throw Error("Non-contiguous data written to non-objectMode stream")}if(this[w]){if(this[Z]&&this[V]!==0)this[v](!0);if(this[Z])this.emit("data",q);else this[u](q);if(this[V]!==0)this.emit("readable");if(Q)K(Q);return this[Z]}if(!q.length){if(this[V]!==0)this.emit("readable");if(Q)K(Q);return this[Z]}if(typeof q==="string"&&!(z===this[x]&&!this[Y]?.lastNeed))q=Buffer.from(q,z);if(Buffer.isBuffer(q)&&this[x])q=this[Y].write(q);if(this[Z]&&this[V]!==0)this[v](!0);if(this[Z])this.emit("data",q);else this[u](q);if(this[V]!==0)this.emit("readable");if(Q)K(Q);return this[Z]}read(q){if(this[X])return null;if(this[m]=!1,this[V]===0||q===0||q&&q>this[V])return this[l](),null;if(this[w])q=null;if(this[$].length>1&&!this[w])this[$]=[this[x]?this[$].join(""):Buffer.concat(this[$],this[V])];let z=this[c](q||null,this[$][0]);return this[l](),z}[c](q,z){if(this[w])this[A]();else{let Q=z;if(q===Q.length||q===null)this[A]();else if(typeof Q==="string")this[$][0]=Q.slice(q),z=Q.slice(0,q),this[V]-=q;else this[$][0]=Q.subarray(q),z=Q.subarray(0,q),this[V]-=q}if(this.emit("data",z),!this[$].length&&!this[f])this.emit("drain");return z}end(q,z,Q){if(typeof q==="function")Q=q,q=void 0;if(typeof z==="function")Q=z,z="utf8";if(q!==void 0)this.write(q,z);if(Q)this.once("end",Q);if(this[f]=!0,this.writable=!1,this[Z]||!this[G])this[l]();return this}[P](){if(this[X])return;if(!this[g]&&!this[y].length)this[m]=!0;if(this[G]=!1,this[Z]=!0,this.emit("resume"),this[$].length)this[v]();else if(this[f])this[l]();else this.emit("drain")}resume(){return this[P]()}pause(){this[Z]=!1,this[G]=!0,this[m]=!1}get destroyed(){return this[X]}get flowing(){return this[Z]}get paused(){return this[G]}[u](q){if(this[w])this[V]+=1;else this[V]+=q.length;this[$].push(q)}[A](){if(this[w])this[V]-=1;else this[V]-=this[$][0].length;return this[$].shift()}[v](q=!1){do;while(this[t](this[A]())&&this[$].length);if(!q&&!this[$].length&&!this[f])this.emit("drain")}[t](q){return this.emit("data",q),this[Z]}pipe(q,z){if(this[X])return q;this[m]=!1;let Q=this[H];if(z=z||{},q===T.stdout||q===T.stderr)z.end=!1;else z.end=z.end!==!1;if(z.proxyErrors=!!z.proxyErrors,Q){if(z.end)q.end()}else if(this[y].push(!z.proxyErrors?new F(this,q,z):new D(this,q,z)),this[W])C(()=>this[P]());else this[P]();return q}unpipe(q){let z=this[y].find((Q)=>Q.dest===q);if(z){if(this[y].length===1){if(this[Z]&&this[g]===0)this[Z]=!1;this[y]=[]}else this[y].splice(this[y].indexOf(z),1);z.unpipe()}}addListener(q,z){return this.on(q,z)}on(q,z){let Q=super.on(q,z);if(q==="data"){if(this[m]=!1,this[g]++,!this[y].length&&!this[Z])this[P]()}else if(q==="readable"&&this[V]!==0)super.emit("readable");else if($q(q)&&this[H])super.emit(q),this.removeAllListeners(q);else if(q==="error"&&this[_]){let K=z;if(this[W])C(()=>K.call(this,this[_]));else K.call(this,this[_])}return Q}removeListener(q,z){return this.off(q,z)}off(q,z){let Q=super.off(q,z);if(q==="data"){if(this[g]=this.listeners("data").length,this[g]===0&&!this[m]&&!this[y].length)this[Z]=!1}return Q}removeAllListeners(q){let z=super.removeAllListeners(q);if(q==="data"||q===void 0){if(this[g]=0,!this[m]&&!this[y].length)this[Z]=!1}return z}get emittedEnd(){return this[H]}[l](){if(!this[M]&&!this[H]&&!this[X]&&this[$].length===0&&this[f]){if(this[M]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[i])this.emit("close");this[M]=!1}}emit(q,...z){let Q=z[0];if(q!=="error"&&q!=="close"&&q!==X&&this[X])return!1;else if(q==="data")return!this[w]&&!Q?!1:this[W]?(C(()=>this[S](Q)),!0):this[S](Q);else if(q==="end")return this[o]();else if(q==="close"){if(this[i]=!0,!this[H]&&!this[X])return!1;let J=super.emit("close");return this.removeAllListeners("close"),J}else if(q==="error"){this[_]=Q,super.emit(p,Q);let J=!this[L]||this.listeners("error").length?super.emit("error",Q):!1;return this[l](),J}else if(q==="resume"){let J=super.emit("resume");return this[l](),J}else if(q==="finish"||q==="prefinish"){let J=super.emit(q);return this.removeAllListeners(q),J}let K=super.emit(q,...z);return this[l](),K}[S](q){for(let Q of this[y])if(Q.dest.write(q)===!1)this.pause();let z=this[m]?!1:super.emit("data",q);return this[l](),z}[o](){if(this[H])return!1;return this[H]=!0,this.readable=!1,this[W]?(C(()=>this[I]()),!0):this[I]()}[I](){if(this[Y]){let z=this[Y].end();if(z){for(let Q of this[y])Q.dest.write(z);if(!this[m])super.emit("data",z)}}for(let z of this[y])z.end();let q=super.emit("end");return this.removeAllListeners("end"),q}async collect(){let q=Object.assign([],{dataLength:0});if(!this[w])q.dataLength=0;let z=this.promise();return this.on("data",(Q)=>{if(q.push(Q),!this[w])q.dataLength+=Q.length}),await z,q}async concat(){if(this[w])throw Error("cannot concat in objectMode");let q=await this.collect();return this[x]?q.join(""):Buffer.concat(q,q.dataLength)}async promise(){return new Promise((q,z)=>{this.on(X,()=>z(Error("stream destroyed"))),this.on("error",(Q)=>z(Q)),this.on("end",()=>q())})}[Symbol.asyncIterator](){this[m]=!1;let q=!1,z=async()=>{return this.pause(),q=!0,{value:void 0,done:!0}};return{next:()=>{if(q)return z();let K=this.read();if(K!==null)return Promise.resolve({done:!1,value:K});if(this[f])return z();let J,R,U=(b)=>{this.off("data",B),this.off("end",h),this.off(X,k),z(),R(b)},B=(b)=>{this.off("error",U),this.off("end",h),this.off(X,k),this.pause(),J({value:b,done:!!this[f]})},h=()=>{this.off("error",U),this.off("data",B),this.off(X,k),z(),J({done:!0,value:void 0})},k=()=>U(Error("stream destroyed"));return new Promise((b,n)=>{R=n,J=b,this.once(X,k),this.once("error",U),this.once("end",h),this.once("data",B)})},throw:z,return:z,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[m]=!1;let q=!1,z=()=>{return this.pause(),this.off(p,z),this.off(X,z),this.off("end",z),q=!0,{done:!0,value:void 0}},Q=()=>{if(q)return z();let K=this.read();return K===null?z():{done:!1,value:K}};return this.once("end",z),this.once(p,z),this.once(X,z),{next:Q,throw:z,return:z,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(q){if(this[X]){if(q)this.emit("error",q);else this.emit(X);return this}this[X]=!0,this[m]=!0,this[$].length=0,this[V]=0;let z=this;if(typeof z.close==="function"&&!this[i])z.close();if(q)this.emit("error",q);else this.emit(X);return this}static get isStream(){return j.isStream}}j.Minipass=r});
3
- export{jq as Pf};
2
+ import{uO as e,xO as d}from"./chunk-e0vrxetq.js";var jq=e((j)=>{var E=j&&j.__importDefault||function(q){return q&&q.__esModule?q:{default:q}};Object.defineProperty(j,"__esModule",{value:!0});j.Minipass=j.isWritable=j.isReadable=j.isStream=void 0;var T=typeof process==="object"&&process?process:{stdout:null,stderr:null},O=d("events"),s=E(d("stream")),qq=d("string_decoder"),zq=(q)=>!!q&&typeof q==="object"&&(q instanceof r||q instanceof s.default||(0,j.isReadable)(q)||(0,j.isWritable)(q));j.isStream=zq;var Qq=(q)=>!!q&&typeof q==="object"&&q instanceof O.EventEmitter&&typeof q.pipe==="function"&&q.pipe!==s.default.Writable.prototype.pipe;j.isReadable=Qq;var Xq=(q)=>!!q&&typeof q==="object"&&q instanceof O.EventEmitter&&typeof q.write==="function"&&typeof q.end==="function";j.isWritable=Xq;var f=Symbol("EOF"),l=Symbol("maybeEmitEnd"),H=Symbol("emittedEnd"),M=Symbol("emittingEnd"),_=Symbol("emittedError"),i=Symbol("closed"),c=Symbol("read"),v=Symbol("flush"),t=Symbol("flushChunk"),x=Symbol("encoding"),Y=Symbol("decoder"),Z=Symbol("flowing"),G=Symbol("paused"),P=Symbol("resume"),$=Symbol("buffer"),y=Symbol("pipes"),V=Symbol("bufferLength"),u=Symbol("bufferPush"),A=Symbol("bufferShift"),w=Symbol("objectMode"),X=Symbol("destroyed"),p=Symbol("error"),S=Symbol("emitData"),o=Symbol("emitEnd"),I=Symbol("emitEnd2"),W=Symbol("async"),N=Symbol("abort"),a=Symbol("aborted"),L=Symbol("signal"),g=Symbol("dataListeners"),m=Symbol("discarded"),C=(q)=>Promise.resolve().then(q),Zq=(q)=>q(),$q=(q)=>q==="end"||q==="finish"||q==="prefinish",Vq=(q)=>q instanceof ArrayBuffer||!!q&&typeof q==="object"&&q.constructor&&q.constructor.name==="ArrayBuffer"&&q.byteLength>=0,Kq=(q)=>!Buffer.isBuffer(q)&&ArrayBuffer.isView(q);class F{src;dest;opts;ondrain;constructor(q,z,Q){this.src=q,this.dest=z,this.opts=Q,this.ondrain=()=>q[P](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(q){}end(){if(this.unpipe(),this.opts.end)this.dest.end()}}class D extends F{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(q,z,Q){super(q,z,Q);this.proxyErrors=(K)=>this.dest.emit("error",K),q.on("error",this.proxyErrors)}}var wq=(q)=>!!q.objectMode,yq=(q)=>!q.objectMode&&!!q.encoding&&q.encoding!=="buffer";class r extends O.EventEmitter{[Z]=!1;[G]=!1;[y]=[];[$]=[];[w];[x];[W];[Y];[f]=!1;[H]=!1;[M]=!1;[i]=!1;[_]=null;[V]=0;[X]=!1;[L];[a]=!1;[g]=0;[m]=!1;writable=!0;readable=!0;constructor(...q){let z=q[0]||{};super();if(z.objectMode&&typeof z.encoding==="string")throw TypeError("Encoding and objectMode may not be used together");if(wq(z))this[w]=!0,this[x]=null;else if(yq(z))this[x]=z.encoding,this[w]=!1;else this[w]=!1,this[x]=null;if(this[W]=!!z.async,this[Y]=this[x]?new qq.StringDecoder(this[x]):null,z&&z.debugExposeBuffer===!0)Object.defineProperty(this,"buffer",{get:()=>this[$]});if(z&&z.debugExposePipes===!0)Object.defineProperty(this,"pipes",{get:()=>this[y]});let{signal:Q}=z;if(Q)if(this[L]=Q,Q.aborted)this[N]();else Q.addEventListener("abort",()=>this[N]())}get bufferLength(){return this[V]}get encoding(){return this[x]}set encoding(q){throw Error("Encoding must be set at instantiation time")}setEncoding(q){throw Error("Encoding must be set at instantiation time")}get objectMode(){return this[w]}set objectMode(q){throw Error("objectMode must be set at instantiation time")}get["async"](){return this[W]}set["async"](q){this[W]=this[W]||!!q}[N](){this[a]=!0,this.emit("abort",this[L]?.reason),this.destroy(this[L]?.reason)}get aborted(){return this[a]}set aborted(q){}write(q,z,Q){if(this[a])return!1;if(this[f])throw Error("write after end");if(this[X])return this.emit("error",Object.assign(Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;if(typeof z==="function")Q=z,z="utf8";if(!z)z="utf8";let K=this[W]?C:Zq;if(!this[w]&&!Buffer.isBuffer(q)){if(Kq(q))q=Buffer.from(q.buffer,q.byteOffset,q.byteLength);else if(Vq(q))q=Buffer.from(q);else if(typeof q!=="string")throw Error("Non-contiguous data written to non-objectMode stream")}if(this[w]){if(this[Z]&&this[V]!==0)this[v](!0);if(this[Z])this.emit("data",q);else this[u](q);if(this[V]!==0)this.emit("readable");if(Q)K(Q);return this[Z]}if(!q.length){if(this[V]!==0)this.emit("readable");if(Q)K(Q);return this[Z]}if(typeof q==="string"&&!(z===this[x]&&!this[Y]?.lastNeed))q=Buffer.from(q,z);if(Buffer.isBuffer(q)&&this[x])q=this[Y].write(q);if(this[Z]&&this[V]!==0)this[v](!0);if(this[Z])this.emit("data",q);else this[u](q);if(this[V]!==0)this.emit("readable");if(Q)K(Q);return this[Z]}read(q){if(this[X])return null;if(this[m]=!1,this[V]===0||q===0||q&&q>this[V])return this[l](),null;if(this[w])q=null;if(this[$].length>1&&!this[w])this[$]=[this[x]?this[$].join(""):Buffer.concat(this[$],this[V])];let z=this[c](q||null,this[$][0]);return this[l](),z}[c](q,z){if(this[w])this[A]();else{let Q=z;if(q===Q.length||q===null)this[A]();else if(typeof Q==="string")this[$][0]=Q.slice(q),z=Q.slice(0,q),this[V]-=q;else this[$][0]=Q.subarray(q),z=Q.subarray(0,q),this[V]-=q}if(this.emit("data",z),!this[$].length&&!this[f])this.emit("drain");return z}end(q,z,Q){if(typeof q==="function")Q=q,q=void 0;if(typeof z==="function")Q=z,z="utf8";if(q!==void 0)this.write(q,z);if(Q)this.once("end",Q);if(this[f]=!0,this.writable=!1,this[Z]||!this[G])this[l]();return this}[P](){if(this[X])return;if(!this[g]&&!this[y].length)this[m]=!0;if(this[G]=!1,this[Z]=!0,this.emit("resume"),this[$].length)this[v]();else if(this[f])this[l]();else this.emit("drain")}resume(){return this[P]()}pause(){this[Z]=!1,this[G]=!0,this[m]=!1}get destroyed(){return this[X]}get flowing(){return this[Z]}get paused(){return this[G]}[u](q){if(this[w])this[V]+=1;else this[V]+=q.length;this[$].push(q)}[A](){if(this[w])this[V]-=1;else this[V]-=this[$][0].length;return this[$].shift()}[v](q=!1){do;while(this[t](this[A]())&&this[$].length);if(!q&&!this[$].length&&!this[f])this.emit("drain")}[t](q){return this.emit("data",q),this[Z]}pipe(q,z){if(this[X])return q;this[m]=!1;let Q=this[H];if(z=z||{},q===T.stdout||q===T.stderr)z.end=!1;else z.end=z.end!==!1;if(z.proxyErrors=!!z.proxyErrors,Q){if(z.end)q.end()}else if(this[y].push(!z.proxyErrors?new F(this,q,z):new D(this,q,z)),this[W])C(()=>this[P]());else this[P]();return q}unpipe(q){let z=this[y].find((Q)=>Q.dest===q);if(z){if(this[y].length===1){if(this[Z]&&this[g]===0)this[Z]=!1;this[y]=[]}else this[y].splice(this[y].indexOf(z),1);z.unpipe()}}addListener(q,z){return this.on(q,z)}on(q,z){let Q=super.on(q,z);if(q==="data"){if(this[m]=!1,this[g]++,!this[y].length&&!this[Z])this[P]()}else if(q==="readable"&&this[V]!==0)super.emit("readable");else if($q(q)&&this[H])super.emit(q),this.removeAllListeners(q);else if(q==="error"&&this[_]){let K=z;if(this[W])C(()=>K.call(this,this[_]));else K.call(this,this[_])}return Q}removeListener(q,z){return this.off(q,z)}off(q,z){let Q=super.off(q,z);if(q==="data"){if(this[g]=this.listeners("data").length,this[g]===0&&!this[m]&&!this[y].length)this[Z]=!1}return Q}removeAllListeners(q){let z=super.removeAllListeners(q);if(q==="data"||q===void 0){if(this[g]=0,!this[m]&&!this[y].length)this[Z]=!1}return z}get emittedEnd(){return this[H]}[l](){if(!this[M]&&!this[H]&&!this[X]&&this[$].length===0&&this[f]){if(this[M]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[i])this.emit("close");this[M]=!1}}emit(q,...z){let Q=z[0];if(q!=="error"&&q!=="close"&&q!==X&&this[X])return!1;else if(q==="data")return!this[w]&&!Q?!1:this[W]?(C(()=>this[S](Q)),!0):this[S](Q);else if(q==="end")return this[o]();else if(q==="close"){if(this[i]=!0,!this[H]&&!this[X])return!1;let J=super.emit("close");return this.removeAllListeners("close"),J}else if(q==="error"){this[_]=Q,super.emit(p,Q);let J=!this[L]||this.listeners("error").length?super.emit("error",Q):!1;return this[l](),J}else if(q==="resume"){let J=super.emit("resume");return this[l](),J}else if(q==="finish"||q==="prefinish"){let J=super.emit(q);return this.removeAllListeners(q),J}let K=super.emit(q,...z);return this[l](),K}[S](q){for(let Q of this[y])if(Q.dest.write(q)===!1)this.pause();let z=this[m]?!1:super.emit("data",q);return this[l](),z}[o](){if(this[H])return!1;return this[H]=!0,this.readable=!1,this[W]?(C(()=>this[I]()),!0):this[I]()}[I](){if(this[Y]){let z=this[Y].end();if(z){for(let Q of this[y])Q.dest.write(z);if(!this[m])super.emit("data",z)}}for(let z of this[y])z.end();let q=super.emit("end");return this.removeAllListeners("end"),q}async collect(){let q=Object.assign([],{dataLength:0});if(!this[w])q.dataLength=0;let z=this.promise();return this.on("data",(Q)=>{if(q.push(Q),!this[w])q.dataLength+=Q.length}),await z,q}async concat(){if(this[w])throw Error("cannot concat in objectMode");let q=await this.collect();return this[x]?q.join(""):Buffer.concat(q,q.dataLength)}async promise(){return new Promise((q,z)=>{this.on(X,()=>z(Error("stream destroyed"))),this.on("error",(Q)=>z(Q)),this.on("end",()=>q())})}[Symbol.asyncIterator](){this[m]=!1;let q=!1,z=async()=>{return this.pause(),q=!0,{value:void 0,done:!0}};return{next:()=>{if(q)return z();let K=this.read();if(K!==null)return Promise.resolve({done:!1,value:K});if(this[f])return z();let J,R,U=(b)=>{this.off("data",B),this.off("end",h),this.off(X,k),z(),R(b)},B=(b)=>{this.off("error",U),this.off("end",h),this.off(X,k),this.pause(),J({value:b,done:!!this[f]})},h=()=>{this.off("error",U),this.off("data",B),this.off(X,k),z(),J({done:!0,value:void 0})},k=()=>U(Error("stream destroyed"));return new Promise((b,n)=>{R=n,J=b,this.once(X,k),this.once("error",U),this.once("end",h),this.once("data",B)})},throw:z,return:z,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[m]=!1;let q=!1,z=()=>{return this.pause(),this.off(p,z),this.off(X,z),this.off("end",z),q=!0,{done:!0,value:void 0}},Q=()=>{if(q)return z();let K=this.read();return K===null?z():{done:!1,value:K}};return this.once("end",z),this.once(p,z),this.once(X,z),{next:Q,throw:z,return:z,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(q){if(this[X]){if(q)this.emit("error",q);else this.emit(X);return this}this[X]=!0,this[m]=!0,this[$].length=0,this[V]=0;let z=this;if(typeof z.close==="function"&&!this[i])z.close();if(q)this.emit("error",q);else this.emit(X);return this}static get isStream(){return j.isStream}}j.Minipass=r});
3
+ export{jq as Qf};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$y as gb,Ay as va,Az as Fb,By as xa,Cy as Ia,Dy as Ma,Ey as Na,Gy as Oa,Hy as Pa,Iy as Qa,Jy as Ra,Ky as Sa,Ly as Ta,My as Ua,Ny as Va,Oy as Wa,Py as Ya,Qy as Za,Ry as _a,Sy as $a,Ty as ab,Uy as bb,Vy as cb,Wy as db,Xy as eb,_y as fb,az as hb,bz as ib,cz as jb,dz as kb,gz as lb,hz as mb,iz as nb,jz as ob,kz as pb,lz as qb,mz as rb,nz as sb,oz as tb,pz as ub,qz as vb,rz as wb,sz as xb,tz as yb,uz as zb,vz as Ab,wz as Bb,xz as Cb,yz as Db,zz as Eb}from"./chunk-55fcmswd.js";import{$K as za,AA as o,AC as A,Cz as a,DE as J,EC as B,EE as K,Ez as b,FC as C,Fz as c,GI as ka,IE as L,II as la,JB as v,JI as ma,JK as ya,KA as p,KE as M,KH as ba,LB as w,LC as D,LD as E,MA as q,ME as N,MH as ca,Mz as d,NE as O,Nz as e,OE as P,Oz as f,Pz as g,QA as r,QH as da,QI as na,Qz as h,SB as x,SD as F,TE as Q,TN as Ha,UI as oa,UN as Ja,XJ as sa,XN as Ka,YE as R,ZD as G,ZE as S,_A as s,_B as y,aF as T,aL as Aa,cA as i,cE as H,cO as La,dK as ta,dL as Ba,eH as U,eI as ea,eJ as pa,fL as Ca,fO as Xa,gH as V,hH as W,hK as ua,iJ as qa,iK as wa,iL as Da,jH as X,jJ as ra,kA as j,lB as t,mH as Y,mI as fa,nA as k,nE as I,oC as z,oI as ga,pI as ha,pL as Ea,qA as l,rH as Z,sI as ia,sL as Fa,tA as m,uH as _,uL as Ga,vH as $,vI as ja,yH as aa,zA as n,zB as u}from"./chunk-qnvsqnz5.js";import"./chunk-r9w0thdk.js";export{e as pipe,b as identity,g as hole,f as flow,c as cast,d as absurd,o as Utils,Fb as Unify,Ba as UndefinedOr,Eb as Types,Db as TxSubscriptionRef,Cb as TxSemaphore,tb as TxRef,Bb as TxReentrantLock,zb as TxQueue,Ab as TxPubSub,yb as TxPriorityQueue,xb as TxHashSet,wb as TxHashMap,vb as TxDeferred,ub as TxChunk,w as Tuple,sb as Trie,D as Tracer,rb as Terminal,ma as Take,hb as SynchronizedRef,qb as Symbol,pb as SubscriptionRef,Aa as Struct,O as String,sa as Stream,ob as Stdio,oa as Sink,la as Semaphore,ib as ScopedRef,nb as ScopedCache,I as Scope,mb as SchemaUtils,aa as SchemaTransformation,lb as SchemaRepresentation,Ca as SchemaParser,Z as SchemaIssue,_ as SchemaGetter,ba as SchemaAST,Ha as Schema,C as Scheduler,R as Schedule,kb as Runtime,v as Result,jb as Resource,gb as RequestResolver,S as Request,V as RegExp,H as References,fb as Ref,q as Reducer,Y as Redacted,l as Redactable,y as Record,ra as RcRef,qa as RcMap,eb as Random,ka as Queue,Q as Pull,ja as PubSub,Ta as PrimaryKey,i as Predicate,db as Pool,da as PlatformError,a as Pipeable,ua as Path,cb as PartitionedSemaphore,bb as Ordering,s as Order,t as Option,Ga as Optic,N as Number,ab as NonEmptyIterable,$a as Newtype,ia as MutableRef,ha as MutableList,_a as MutableHashSet,pa as MutableHashMap,T as Metric,Za as Match,Ya as ManagedRuntime,Xa as Logger,Ka as LogLevel,Wa as LayerMap,J as Layer,ga as Latch,Fa as JsonSchema,Da as JsonPointer,Ea as JsonPatch,x as Iterable,n as Inspectable,za as HashSet,Ua as HashRing,ya as HashMap,j as Hash,Va as HKT,Sa as Graph,h as Function,m as Formatter,B as Filter,ta as FileSystem,Ra as FiberSet,Qa as FiberMap,Pa as FiberHandle,fa as Fiber,F as Exit,K as ExecutionPlan,Oa as ErrorReporter,r as Equivalence,k as Equal,X as Encoding,U as Effect,A as Duration,Na as Differ,G as Deferred,W as DateTime,L as Data,P as Cron,u as Context,Ma as Console,Ja as ConfigProvider,La as Config,p as Combiner,M as Clock,ea as Chunk,Ia as ChannelSchema,na as Channel,E as Cause,xa as Cache,ca as Brand,wa as Boolean,va as BigInt,$ as BigDecimal,z as Array};
2
+ import{$y as fb,Az as Eb,By as va,Bz as Fb,Cy as xa,Dy as Ia,Ey as Ma,Fy as Na,Hy as Oa,Iy as Pa,Jy as Qa,Ky as Ra,Ly as Sa,My as Ta,Ny as Ua,Oy as Va,Py as Wa,Qy as Ya,Ry as Za,Sy as _a,Ty as $a,Uy as ab,Vy as bb,Wy as cb,Xy as db,Yy as eb,az as gb,bz as hb,cz as ib,dz as jb,ez as kb,hz as lb,iz as mb,jz as nb,kz as ob,lz as pb,mz as qb,nz as rb,oz as sb,pz as tb,qz as ub,rz as vb,sz as wb,tz as xb,uz as yb,vz as zb,wz as Ab,xz as Bb,yz as Cb,zz as Db}from"./chunk-w7a33cwa.js";import{$A as s,$B as y,AA as n,AB as u,BA as o,BC as A,Dz as a,EE as J,FC as B,FE as K,Fz as b,GC as C,Gz as c,HI as ka,JE as L,JI as la,KB as v,KI as ma,KK as ya,LA as p,LE as M,LH as ba,MB as w,MC as D,MD as E,NA as q,NE as N,NH as ca,Nz as d,OE as O,Oz as e,PE as P,Pz as f,Qz as g,RA as r,RH as da,RI as na,Rz as h,TB as x,TD as F,UE as Q,UN as Ha,VI as oa,VN as Ja,YJ as sa,YN as Ka,ZE as R,_D as G,_E as S,aL as za,bF as T,bL as Aa,dA as i,dE as H,dO as La,eK as ta,eL as Ba,fH as U,fI as ea,fJ as pa,gL as Ca,gO as Xa,hH as V,iH as W,iK as ua,jJ as qa,jK as wa,jL as Da,kH as X,kJ as ra,lA as j,mB as t,nH as Y,nI as fa,oA as k,oE as I,pC as z,pI as ga,qI as ha,qL as Ea,rA as l,sH as Z,tI as ia,tL as Fa,uA as m,vH as _,vL as Ga,wH as $,wI as ja,zH as aa}from"./chunk-g7v6sp3c.js";import"./chunk-e0vrxetq.js";export{e as pipe,b as identity,g as hole,f as flow,c as cast,d as absurd,o as Utils,Fb as Unify,Ba as UndefinedOr,Eb as Types,Db as TxSubscriptionRef,Cb as TxSemaphore,tb as TxRef,Bb as TxReentrantLock,zb as TxQueue,Ab as TxPubSub,yb as TxPriorityQueue,xb as TxHashSet,wb as TxHashMap,vb as TxDeferred,ub as TxChunk,w as Tuple,sb as Trie,D as Tracer,rb as Terminal,ma as Take,hb as SynchronizedRef,qb as Symbol,pb as SubscriptionRef,Aa as Struct,O as String,sa as Stream,ob as Stdio,oa as Sink,la as Semaphore,ib as ScopedRef,nb as ScopedCache,I as Scope,mb as SchemaUtils,aa as SchemaTransformation,lb as SchemaRepresentation,Ca as SchemaParser,Z as SchemaIssue,_ as SchemaGetter,ba as SchemaAST,Ha as Schema,C as Scheduler,R as Schedule,kb as Runtime,v as Result,jb as Resource,gb as RequestResolver,S as Request,V as RegExp,H as References,fb as Ref,q as Reducer,Y as Redacted,l as Redactable,y as Record,ra as RcRef,qa as RcMap,eb as Random,ka as Queue,Q as Pull,ja as PubSub,Ta as PrimaryKey,i as Predicate,db as Pool,da as PlatformError,a as Pipeable,ua as Path,cb as PartitionedSemaphore,bb as Ordering,s as Order,t as Option,Ga as Optic,N as Number,ab as NonEmptyIterable,$a as Newtype,ia as MutableRef,ha as MutableList,_a as MutableHashSet,pa as MutableHashMap,T as Metric,Za as Match,Ya as ManagedRuntime,Xa as Logger,Ka as LogLevel,Wa as LayerMap,J as Layer,ga as Latch,Fa as JsonSchema,Da as JsonPointer,Ea as JsonPatch,x as Iterable,n as Inspectable,za as HashSet,Ua as HashRing,ya as HashMap,j as Hash,Va as HKT,Sa as Graph,h as Function,m as Formatter,B as Filter,ta as FileSystem,Ra as FiberSet,Qa as FiberMap,Pa as FiberHandle,fa as Fiber,F as Exit,K as ExecutionPlan,Oa as ErrorReporter,r as Equivalence,k as Equal,X as Encoding,U as Effect,A as Duration,Na as Differ,G as Deferred,W as DateTime,L as Data,P as Cron,u as Context,Ma as Console,Ja as ConfigProvider,La as Config,p as Combiner,M as Clock,ea as Chunk,Ia as ChannelSchema,na as Channel,E as Cause,xa as Cache,ca as Brand,wa as Boolean,va as BigInt,$ as BigDecimal,z as Array};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import"./chunk-e0vrxetq.js";var e="./libopentui-xtk56e94.so";export{e as default};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{tO as $}from"./chunk-r9w0thdk.js";var Aq=$((Eq)=>{Object.defineProperty(Eq,"__esModule",{value:!0});Eq._globalThis=void 0;Eq._globalThis=typeof globalThis==="object"?globalThis:global});var yq=$((O)=>{var VZ=O&&O.__createBinding||(Object.create?function(q,z,J,Z){if(Z===void 0)Z=J;Object.defineProperty(q,Z,{enumerable:!0,get:function(){return z[J]}})}:function(q,z,J,Z){if(Z===void 0)Z=J;q[Z]=z[J]}),NZ=O&&O.__exportStar||function(q,z){for(var J in q)if(J!=="default"&&!Object.prototype.hasOwnProperty.call(z,J))VZ(z,q,J)};Object.defineProperty(O,"__esModule",{value:!0});NZ(Aq(),O)});var Pq=$((K)=>{var kZ=K&&K.__createBinding||(Object.create?function(q,z,J,Z){if(Z===void 0)Z=J;Object.defineProperty(q,Z,{enumerable:!0,get:function(){return z[J]}})}:function(q,z,J,Z){if(Z===void 0)Z=J;q[Z]=z[J]}),bZ=K&&K.__exportStar||function(q,z){for(var J in q)if(J!=="default"&&!Object.prototype.hasOwnProperty.call(z,J))kZ(z,q,J)};Object.defineProperty(K,"__esModule",{value:!0});bZ(yq(),K)});var v=$((Mq)=>{Object.defineProperty(Mq,"__esModule",{value:!0});Mq.VERSION=void 0;Mq.VERSION="1.9.0"});var Lq=$((mq)=>{Object.defineProperty(mq,"__esModule",{value:!0});mq.isCompatible=mq._makeCompatibilityCheck=void 0;var RZ=v(),vq=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function uq(q){let z=new Set([q]),J=new Set,Z=q.match(vq);if(!Z)return()=>!1;let Q={major:+Z[1],minor:+Z[2],patch:+Z[3],prerelease:Z[4]};if(Q.prerelease!=null)return function(Y){return Y===q};function H(F){return J.add(F),!1}function X(F){return z.add(F),!0}return function(Y){if(z.has(Y))return!0;if(J.has(Y))return!1;let h=Y.match(vq);if(!h)return H(Y);let G={major:+h[1],minor:+h[2],patch:+h[3],prerelease:h[4]};if(G.prerelease!=null)return H(Y);if(Q.major!==G.major)return H(Y);if(Q.major===0){if(Q.minor===G.minor&&Q.patch<=G.patch)return X(Y);return H(Y)}if(Q.minor<=G.minor)return X(Y);return H(Y)}}mq._makeCompatibilityCheck=uq;mq.isCompatible=uq(RZ.VERSION)});var B=$((xq)=>{Object.defineProperty(xq,"__esModule",{value:!0});xq.unregisterGlobal=xq.getGlobal=xq.registerGlobal=void 0;var TZ=Pq(),U=v(),AZ=Lq(),yZ=U.VERSION.split(".")[0],I=Symbol.for(`opentelemetry.js.api.${yZ}`),V=TZ._globalThis;function PZ(q,z,J,Z=!1){var Q;let H=V[I]=(Q=V[I])!==null&&Q!==void 0?Q:{version:U.VERSION};if(!Z&&H[q]){let X=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${q}`);return J.error(X.stack||X.message),!1}if(H.version!==U.VERSION){let X=Error(`@opentelemetry/api: Registration of version v${H.version} for ${q} does not match previously registered API v${U.VERSION}`);return J.error(X.stack||X.message),!1}return H[q]=z,J.debug(`@opentelemetry/api: Registered a global for ${q} v${U.VERSION}.`),!0}xq.registerGlobal=PZ;function MZ(q){var z,J;let Z=(z=V[I])===null||z===void 0?void 0:z.version;if(!Z||!(0,AZ.isCompatible)(Z))return;return(J=V[I])===null||J===void 0?void 0:J[q]}xq.getGlobal=MZ;function SZ(q,z){z.debug(`@opentelemetry/api: Unregistering a global for ${q} v${U.VERSION}.`);let J=V[I];if(J)delete J[q]}xq.unregisterGlobal=SZ});var iq=$((lq)=>{Object.defineProperty(lq,"__esModule",{value:!0});lq.DiagComponentLogger=void 0;var mZ=B();class cq{constructor(q){this._namespace=q.namespace||"DiagComponentLogger"}debug(...q){return N("debug",this._namespace,q)}error(...q){return N("error",this._namespace,q)}info(...q){return N("info",this._namespace,q)}warn(...q){return N("warn",this._namespace,q)}verbose(...q){return N("verbose",this._namespace,q)}}lq.DiagComponentLogger=cq;function N(q,z,J){let Z=(0,mZ.getGlobal)("diag");if(!Z)return;return J.unshift(z),Z[q](...J)}});var E=$((nq)=>{Object.defineProperty(nq,"__esModule",{value:!0});nq.DiagLogLevel=void 0;var dZ;(function(q){q[q.NONE=0]="NONE",q[q.ERROR=30]="ERROR",q[q.WARN=50]="WARN",q[q.INFO=60]="INFO",q[q.DEBUG=70]="DEBUG",q[q.VERBOSE=80]="VERBOSE",q[q.ALL=9999]="ALL"})(dZ=nq.DiagLogLevel||(nq.DiagLogLevel={}))});var rq=$((pq)=>{Object.defineProperty(pq,"__esModule",{value:!0});pq.createLogLevelDiagLogger=void 0;var w=E();function LZ(q,z){if(q<w.DiagLogLevel.NONE)q=w.DiagLogLevel.NONE;else if(q>w.DiagLogLevel.ALL)q=w.DiagLogLevel.ALL;z=z||{};function J(Z,Q){let H=z[Z];if(typeof H==="function"&&q>=Q)return H.bind(z);return function(){}}return{error:J("error",w.DiagLogLevel.ERROR),warn:J("warn",w.DiagLogLevel.WARN),info:J("info",w.DiagLogLevel.INFO),debug:J("debug",w.DiagLogLevel.DEBUG),verbose:J("verbose",w.DiagLogLevel.VERBOSE)}}pq.createLogLevelDiagLogger=LZ});var f=$((tq)=>{Object.defineProperty(tq,"__esModule",{value:!0});tq.DiagAPI=void 0;var xZ=iq(),_Z=rq(),oq=E(),T=B(),cZ="diag";class m{constructor(){function q(Z){return function(...Q){let H=(0,T.getGlobal)("diag");if(!H)return;return H[Z](...Q)}}let z=this,J=(Z,Q={logLevel:oq.DiagLogLevel.INFO})=>{var H,X,F;if(Z===z){let G=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return z.error((H=G.stack)!==null&&H!==void 0?H:G.message),!1}if(typeof Q==="number")Q={logLevel:Q};let Y=(0,T.getGlobal)("diag"),h=(0,_Z.createLogLevelDiagLogger)((X=Q.logLevel)!==null&&X!==void 0?X:oq.DiagLogLevel.INFO,Z);if(Y&&!Q.suppressOverrideMessage){let G=(F=Error().stack)!==null&&F!==void 0?F:"<failed to generate stacktrace>";Y.warn(`Current logger will be overwritten from ${G}`),h.warn(`Current logger will overwrite one already registered from ${G}`)}return(0,T.registerGlobal)("diag",h,z,!0)};z.setLogger=J,z.disable=()=>{(0,T.unregisterGlobal)(cZ,z)},z.createComponentLogger=(Z)=>{return new xZ.DiagComponentLogger(Z)},z.verbose=q("verbose"),z.debug=q("debug"),z.info=q("info"),z.warn=q("warn"),z.error=q("error")}static instance(){if(!this._instance)this._instance=new m;return this._instance}}tq.DiagAPI=m});var zz=$((eq)=>{Object.defineProperty(eq,"__esModule",{value:!0});eq.BaggageImpl=void 0;class j{constructor(q){this._entries=q?new Map(q):new Map}getEntry(q){let z=this._entries.get(q);if(!z)return;return Object.assign({},z)}getAllEntries(){return Array.from(this._entries.entries()).map(([q,z])=>[q,z])}setEntry(q,z){let J=new j(this._entries);return J._entries.set(q,z),J}removeEntry(q){let z=new j(this._entries);return z._entries.delete(q),z}removeEntries(...q){let z=new j(this._entries);for(let J of q)z._entries.delete(J);return z}clear(){return new j}}eq.BaggageImpl=j});var $z=$((Jz)=>{Object.defineProperty(Jz,"__esModule",{value:!0});Jz.baggageEntryMetadataSymbol=void 0;Jz.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")});var d=$((Qz)=>{Object.defineProperty(Qz,"__esModule",{value:!0});Qz.baggageEntryMetadataFromString=Qz.createBaggage=void 0;var lZ=f(),gZ=zz(),iZ=$z(),nZ=lZ.DiagAPI.instance();function pZ(q={}){return new gZ.BaggageImpl(new Map(Object.entries(q)))}Qz.createBaggage=pZ;function sZ(q){if(typeof q!=="string")nZ.error(`Cannot create baggage metadata from unknown type: ${typeof q}`),q="";return{__TYPE__:iZ.baggageEntryMetadataSymbol,toString(){return q}}}Qz.baggageEntryMetadataFromString=sZ});var k=$((Hz)=>{Object.defineProperty(Hz,"__esModule",{value:!0});Hz.ROOT_CONTEXT=Hz.createContextKey=void 0;function oZ(q){return Symbol.for(q)}Hz.createContextKey=oZ;class A{constructor(q){let z=this;z._currentContext=q?new Map(q):new Map,z.getValue=(J)=>z._currentContext.get(J),z.setValue=(J,Z)=>{let Q=new A(z._currentContext);return Q._currentContext.set(J,Z),Q},z.deleteValue=(J)=>{let Z=new A(z._currentContext);return Z._currentContext.delete(J),Z}}}Hz.ROOT_CONTEXT=new A});var hz=$((Fz)=>{Object.defineProperty(Fz,"__esModule",{value:!0});Fz.DiagConsoleLogger=void 0;var L=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class Yz{constructor(){function q(z){return function(...J){if(console){let Z=console[z];if(typeof Z!=="function")Z=console.log;if(typeof Z==="function")return Z.apply(console,J)}}}for(let z=0;z<L.length;z++)this[L[z].n]=q(L[z].c)}}Fz.DiagConsoleLogger=Yz});var s=$((wz)=>{Object.defineProperty(wz,"__esModule",{value:!0});wz.createNoopMeter=wz.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=wz.NOOP_OBSERVABLE_GAUGE_METRIC=wz.NOOP_OBSERVABLE_COUNTER_METRIC=wz.NOOP_UP_DOWN_COUNTER_METRIC=wz.NOOP_HISTOGRAM_METRIC=wz.NOOP_GAUGE_METRIC=wz.NOOP_COUNTER_METRIC=wz.NOOP_METER=wz.NoopObservableUpDownCounterMetric=wz.NoopObservableGaugeMetric=wz.NoopObservableCounterMetric=wz.NoopObservableMetric=wz.NoopHistogramMetric=wz.NoopGaugeMetric=wz.NoopUpDownCounterMetric=wz.NoopCounterMetric=wz.NoopMetric=wz.NoopMeter=void 0;class x{constructor(){}createGauge(q,z){return wz.NOOP_GAUGE_METRIC}createHistogram(q,z){return wz.NOOP_HISTOGRAM_METRIC}createCounter(q,z){return wz.NOOP_COUNTER_METRIC}createUpDownCounter(q,z){return wz.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(q,z){return wz.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(q,z){return wz.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(q,z){return wz.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(q,z){}removeBatchObservableCallback(q){}}wz.NoopMeter=x;class D{}wz.NoopMetric=D;class _ extends D{add(q,z){}}wz.NoopCounterMetric=_;class c extends D{add(q,z){}}wz.NoopUpDownCounterMetric=c;class l extends D{record(q,z){}}wz.NoopGaugeMetric=l;class g extends D{record(q,z){}}wz.NoopHistogramMetric=g;class b{addCallback(q){}removeCallback(q){}}wz.NoopObservableMetric=b;class i extends b{}wz.NoopObservableCounterMetric=i;class n extends b{}wz.NoopObservableGaugeMetric=n;class p extends b{}wz.NoopObservableUpDownCounterMetric=p;wz.NOOP_METER=new x;wz.NOOP_COUNTER_METRIC=new _;wz.NOOP_GAUGE_METRIC=new l;wz.NOOP_HISTOGRAM_METRIC=new g;wz.NOOP_UP_DOWN_COUNTER_METRIC=new c;wz.NOOP_OBSERVABLE_COUNTER_METRIC=new i;wz.NOOP_OBSERVABLE_GAUGE_METRIC=new n;wz.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new p;function aZ(){return wz.NOOP_METER}wz.createNoopMeter=aZ});var Nz=$((Vz)=>{Object.defineProperty(Vz,"__esModule",{value:!0});Vz.ValueType=void 0;var Y0;(function(q){q[q.INT=0]="INT",q[q.DOUBLE=1]="DOUBLE"})(Y0=Vz.ValueType||(Vz.ValueType={}))});var o=$((kz)=>{Object.defineProperty(kz,"__esModule",{value:!0});kz.defaultTextMapSetter=kz.defaultTextMapGetter=void 0;kz.defaultTextMapGetter={get(q,z){if(q==null)return;return q[z]},keys(q){if(q==null)return[];return Object.keys(q)}};kz.defaultTextMapSetter={set(q,z,J){if(q==null)return;q[z]=J}}});var Az=$((Ez)=>{Object.defineProperty(Ez,"__esModule",{value:!0});Ez.NoopContextManager=void 0;var G0=k();class Rz{active(){return G0.ROOT_CONTEXT}with(q,z,J,...Z){return z.call(J,...Z)}bind(q,z){return z}enable(){return this}disable(){return this}}Ez.NoopContextManager=Rz});var R=$((Pz)=>{Object.defineProperty(Pz,"__esModule",{value:!0});Pz.ContextAPI=void 0;var h0=Az(),t=B(),yz=f(),a="context",w0=new h0.NoopContextManager;class e{constructor(){}static getInstance(){if(!this._instance)this._instance=new e;return this._instance}setGlobalContextManager(q){return(0,t.registerGlobal)(a,q,yz.DiagAPI.instance())}active(){return this._getContextManager().active()}with(q,z,J,...Z){return this._getContextManager().with(q,z,J,...Z)}bind(q,z){return this._getContextManager().bind(q,z)}_getContextManager(){return(0,t.getGlobal)(a)||w0}disable(){this._getContextManager().disable(),(0,t.unregisterGlobal)(a,yz.DiagAPI.instance())}}Pz.ContextAPI=e});var zq=$((Sz)=>{Object.defineProperty(Sz,"__esModule",{value:!0});Sz.TraceFlags=void 0;var O0;(function(q){q[q.NONE=0]="NONE",q[q.SAMPLED=1]="SAMPLED"})(O0=Sz.TraceFlags||(Sz.TraceFlags={}))});var y=$((vz)=>{Object.defineProperty(vz,"__esModule",{value:!0});vz.INVALID_SPAN_CONTEXT=vz.INVALID_TRACEID=vz.INVALID_SPANID=void 0;var K0=zq();vz.INVALID_SPANID="0000000000000000";vz.INVALID_TRACEID="00000000000000000000000000000000";vz.INVALID_SPAN_CONTEXT={traceId:vz.INVALID_TRACEID,spanId:vz.INVALID_SPANID,traceFlags:K0.TraceFlags.NONE}});var P=$((xz)=>{Object.defineProperty(xz,"__esModule",{value:!0});xz.NonRecordingSpan=void 0;var B0=y();class Lz{constructor(q=B0.INVALID_SPAN_CONTEXT){this._spanContext=q}spanContext(){return this._spanContext}setAttribute(q,z){return this}setAttributes(q){return this}addEvent(q,z){return this}addLink(q){return this}addLinks(q){return this}setStatus(q){return this}updateName(q){return this}end(q){}isRecording(){return!1}recordException(q,z){}}xz.NonRecordingSpan=Lz});var $q=$((lz)=>{Object.defineProperty(lz,"__esModule",{value:!0});lz.getSpanContext=lz.setSpanContext=lz.deleteSpan=lz.setSpan=lz.getActiveSpan=lz.getSpan=void 0;var f0=k(),U0=P(),j0=R(),Jq=(0,f0.createContextKey)("OpenTelemetry Context Key SPAN");function Zq(q){return q.getValue(Jq)||void 0}lz.getSpan=Zq;function D0(){return Zq(j0.ContextAPI.getInstance().active())}lz.getActiveSpan=D0;function cz(q,z){return q.setValue(Jq,z)}lz.setSpan=cz;function C0(q){return q.deleteValue(Jq)}lz.deleteSpan=C0;function I0(q,z){return cz(q,new U0.NonRecordingSpan(z))}lz.setSpanContext=I0;function V0(q){var z;return(z=Zq(q))===null||z===void 0?void 0:z.spanContext()}lz.getSpanContext=V0});var M=$((sz)=>{Object.defineProperty(sz,"__esModule",{value:!0});sz.wrapSpanContext=sz.isSpanContextValid=sz.isValidSpanId=sz.isValidTraceId=void 0;var iz=y(),T0=P(),A0=/^([0-9a-f]{32})$/i,y0=/^[0-9a-f]{16}$/i;function nz(q){return A0.test(q)&&q!==iz.INVALID_TRACEID}sz.isValidTraceId=nz;function pz(q){return y0.test(q)&&q!==iz.INVALID_SPANID}sz.isValidSpanId=pz;function P0(q){return nz(q.traceId)&&pz(q.spanId)}sz.isSpanContextValid=P0;function M0(q){return new T0.NonRecordingSpan(q)}sz.wrapSpanContext=M0});var Hq=$((az)=>{Object.defineProperty(az,"__esModule",{value:!0});az.NoopTracer=void 0;var m0=R(),oz=$q(),Qq=P(),d0=M(),Wq=m0.ContextAPI.getInstance();class tz{startSpan(q,z,J=Wq.active()){if(Boolean(z===null||z===void 0?void 0:z.root))return new Qq.NonRecordingSpan;let Q=J&&(0,oz.getSpanContext)(J);if(L0(Q)&&(0,d0.isSpanContextValid)(Q))return new Qq.NonRecordingSpan(Q);else return new Qq.NonRecordingSpan}startActiveSpan(q,z,J,Z){let Q,H,X;if(arguments.length<2)return;else if(arguments.length===2)X=z;else if(arguments.length===3)Q=z,X=J;else Q=z,H=J,X=Z;let F=H!==null&&H!==void 0?H:Wq.active(),Y=this.startSpan(q,Q,F),h=(0,oz.setSpan)(F,Y);return Wq.with(h,X,void 0,Y)}}az.NoopTracer=tz;function L0(q){return typeof q==="object"&&typeof q.spanId==="string"&&typeof q.traceId==="string"&&typeof q.traceFlags==="number"}});var Xq=$((zJ)=>{Object.defineProperty(zJ,"__esModule",{value:!0});zJ.ProxyTracer=void 0;var x0=Hq(),_0=new x0.NoopTracer;class qJ{constructor(q,z,J,Z){this._provider=q,this.name=z,this.version=J,this.options=Z}startSpan(q,z,J){return this._getTracer().startSpan(q,z,J)}startActiveSpan(q,z,J,Z){let Q=this._getTracer();return Reflect.apply(Q.startActiveSpan,Q,arguments)}_getTracer(){if(this._delegate)return this._delegate;let q=this._provider.getDelegateTracer(this.name,this.version,this.options);if(!q)return _0;return this._delegate=q,this._delegate}}zJ.ProxyTracer=qJ});var WJ=$(($J)=>{Object.defineProperty($J,"__esModule",{value:!0});$J.NoopTracerProvider=void 0;var c0=Hq();class ZJ{getTracer(q,z,J){return new c0.NoopTracer}}$J.NoopTracerProvider=ZJ});var Yq=$((XJ)=>{Object.defineProperty(XJ,"__esModule",{value:!0});XJ.ProxyTracerProvider=void 0;var l0=Xq(),g0=WJ(),i0=new g0.NoopTracerProvider;class HJ{getTracer(q,z,J){var Z;return(Z=this.getDelegateTracer(q,z,J))!==null&&Z!==void 0?Z:new l0.ProxyTracer(this,q,z,J)}getDelegate(){var q;return(q=this._delegate)!==null&&q!==void 0?q:i0}setDelegate(q){this._delegate=q}getDelegateTracer(q,z,J){var Z;return(Z=this._delegate)===null||Z===void 0?void 0:Z.getTracer(q,z,J)}}XJ.ProxyTracerProvider=HJ});var GJ=$((FJ)=>{Object.defineProperty(FJ,"__esModule",{value:!0});FJ.SamplingDecision=void 0;var n0;(function(q){q[q.NOT_RECORD=0]="NOT_RECORD",q[q.RECORD=1]="RECORD",q[q.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(n0=FJ.SamplingDecision||(FJ.SamplingDecision={}))});var wJ=$((hJ)=>{Object.defineProperty(hJ,"__esModule",{value:!0});hJ.SpanKind=void 0;var p0;(function(q){q[q.INTERNAL=0]="INTERNAL",q[q.SERVER=1]="SERVER",q[q.CLIENT=2]="CLIENT",q[q.PRODUCER=3]="PRODUCER",q[q.CONSUMER=4]="CONSUMER"})(p0=hJ.SpanKind||(hJ.SpanKind={}))});var KJ=$((OJ)=>{Object.defineProperty(OJ,"__esModule",{value:!0});OJ.SpanStatusCode=void 0;var s0;(function(q){q[q.UNSET=0]="UNSET",q[q.OK=1]="OK",q[q.ERROR=2]="ERROR"})(s0=OJ.SpanStatusCode||(OJ.SpanStatusCode={}))});var UJ=$((BJ)=>{Object.defineProperty(BJ,"__esModule",{value:!0});BJ.validateValue=BJ.validateKey=void 0;var wq="[_0-9a-z-*/]",r0=`[a-z]${wq}{0,255}`,o0=`[a-z0-9]${wq}{0,240}@[a-z]${wq}{0,13}`,t0=new RegExp(`^(?:${r0}|${o0})$`),a0=/^[ -~]{0,255}[!-~]$/,e0=/,|=/;function q1(q){return t0.test(q)}BJ.validateKey=q1;function z1(q){return a0.test(q)&&!e0.test(q)}BJ.validateValue=z1});var kJ=$((VJ)=>{Object.defineProperty(VJ,"__esModule",{value:!0});VJ.TraceStateImpl=void 0;var jJ=UJ(),DJ=32,Z1=512,CJ=",",IJ="=";class Oq{constructor(q){if(this._internalState=new Map,q)this._parse(q)}set(q,z){let J=this._clone();if(J._internalState.has(q))J._internalState.delete(q);return J._internalState.set(q,z),J}unset(q){let z=this._clone();return z._internalState.delete(q),z}get(q){return this._internalState.get(q)}serialize(){return this._keys().reduce((q,z)=>{return q.push(z+IJ+this.get(z)),q},[]).join(CJ)}_parse(q){if(q.length>Z1)return;if(this._internalState=q.split(CJ).reverse().reduce((z,J)=>{let Z=J.trim(),Q=Z.indexOf(IJ);if(Q!==-1){let H=Z.slice(0,Q),X=Z.slice(Q+1,J.length);if((0,jJ.validateKey)(H)&&(0,jJ.validateValue)(X))z.set(H,X)}return z},new Map),this._internalState.size>DJ)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,DJ))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let q=new Oq;return q._internalState=new Map(this._internalState),q}}VJ.TraceStateImpl=Oq});var EJ=$((bJ)=>{Object.defineProperty(bJ,"__esModule",{value:!0});bJ.createTraceState=void 0;var $1=kJ();function Q1(q){return new $1.TraceStateImpl(q)}bJ.createTraceState=Q1});var yJ=$((TJ)=>{Object.defineProperty(TJ,"__esModule",{value:!0});TJ.context=void 0;var W1=R();TJ.context=W1.ContextAPI.getInstance()});var SJ=$((PJ)=>{Object.defineProperty(PJ,"__esModule",{value:!0});PJ.diag=void 0;var H1=f();PJ.diag=H1.DiagAPI.instance()});var mJ=$((vJ)=>{Object.defineProperty(vJ,"__esModule",{value:!0});vJ.NOOP_METER_PROVIDER=vJ.NoopMeterProvider=void 0;var X1=s();class Kq{getMeter(q,z,J){return X1.NOOP_METER}}vJ.NoopMeterProvider=Kq;vJ.NOOP_METER_PROVIDER=new Kq});var _J=$((LJ)=>{Object.defineProperty(LJ,"__esModule",{value:!0});LJ.MetricsAPI=void 0;var F1=mJ(),Bq=B(),dJ=f(),fq="metrics";class Uq{constructor(){}static getInstance(){if(!this._instance)this._instance=new Uq;return this._instance}setGlobalMeterProvider(q){return(0,Bq.registerGlobal)(fq,q,dJ.DiagAPI.instance())}getMeterProvider(){return(0,Bq.getGlobal)(fq)||F1.NOOP_METER_PROVIDER}getMeter(q,z,J){return this.getMeterProvider().getMeter(q,z,J)}disable(){(0,Bq.unregisterGlobal)(fq,dJ.DiagAPI.instance())}}LJ.MetricsAPI=Uq});var gJ=$((cJ)=>{Object.defineProperty(cJ,"__esModule",{value:!0});cJ.metrics=void 0;var G1=_J();cJ.metrics=G1.MetricsAPI.getInstance()});var sJ=$((nJ)=>{Object.defineProperty(nJ,"__esModule",{value:!0});nJ.NoopTextMapPropagator=void 0;class iJ{inject(q,z){}extract(q,z){return q}fields(){return[]}}nJ.NoopTextMapPropagator=iJ});var aJ=$((oJ)=>{Object.defineProperty(oJ,"__esModule",{value:!0});oJ.deleteBaggage=oJ.setBaggage=oJ.getActiveBaggage=oJ.getBaggage=void 0;var h1=R(),w1=k(),jq=(0,w1.createContextKey)("OpenTelemetry Baggage Key");function rJ(q){return q.getValue(jq)||void 0}oJ.getBaggage=rJ;function O1(){return rJ(h1.ContextAPI.getInstance().active())}oJ.getActiveBaggage=O1;function K1(q,z){return q.setValue(jq,z)}oJ.setBaggage=K1;function B1(q){return q.deleteValue(jq)}oJ.deleteBaggage=B1});var ZZ=$((zZ)=>{Object.defineProperty(zZ,"__esModule",{value:!0});zZ.PropagationAPI=void 0;var Dq=B(),D1=sJ(),eJ=o(),S=aJ(),C1=d(),qZ=f(),Cq="propagation",I1=new D1.NoopTextMapPropagator;class Iq{constructor(){this.createBaggage=C1.createBaggage,this.getBaggage=S.getBaggage,this.getActiveBaggage=S.getActiveBaggage,this.setBaggage=S.setBaggage,this.deleteBaggage=S.deleteBaggage}static getInstance(){if(!this._instance)this._instance=new Iq;return this._instance}setGlobalPropagator(q){return(0,Dq.registerGlobal)(Cq,q,qZ.DiagAPI.instance())}inject(q,z,J=eJ.defaultTextMapSetter){return this._getGlobalPropagator().inject(q,z,J)}extract(q,z,J=eJ.defaultTextMapGetter){return this._getGlobalPropagator().extract(q,z,J)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,Dq.unregisterGlobal)(Cq,qZ.DiagAPI.instance())}_getGlobalPropagator(){return(0,Dq.getGlobal)(Cq)||I1}}zZ.PropagationAPI=Iq});var WZ=$(($Z)=>{Object.defineProperty($Z,"__esModule",{value:!0});$Z.propagation=void 0;var V1=ZZ();$Z.propagation=V1.PropagationAPI.getInstance()});var hZ=$((FZ)=>{Object.defineProperty(FZ,"__esModule",{value:!0});FZ.TraceAPI=void 0;var Vq=B(),HZ=Yq(),XZ=M(),C=$q(),YZ=f(),Nq="trace";class kq{constructor(){this._proxyTracerProvider=new HZ.ProxyTracerProvider,this.wrapSpanContext=XZ.wrapSpanContext,this.isSpanContextValid=XZ.isSpanContextValid,this.deleteSpan=C.deleteSpan,this.getSpan=C.getSpan,this.getActiveSpan=C.getActiveSpan,this.getSpanContext=C.getSpanContext,this.setSpan=C.setSpan,this.setSpanContext=C.setSpanContext}static getInstance(){if(!this._instance)this._instance=new kq;return this._instance}setGlobalTracerProvider(q){let z=(0,Vq.registerGlobal)(Nq,this._proxyTracerProvider,YZ.DiagAPI.instance());if(z)this._proxyTracerProvider.setDelegate(q);return z}getTracerProvider(){return(0,Vq.getGlobal)(Nq)||this._proxyTracerProvider}getTracer(q,z){return this.getTracerProvider().getTracer(q,z)}disable(){(0,Vq.unregisterGlobal)(Nq,YZ.DiagAPI.instance()),this._proxyTracerProvider=new HZ.ProxyTracerProvider}}FZ.TraceAPI=kq});var KZ=$((wZ)=>{Object.defineProperty(wZ,"__esModule",{value:!0});wZ.trace=void 0;var N1=hZ();wZ.trace=N1.TraceAPI.getInstance()});var L1=$((W)=>{Object.defineProperty(W,"__esModule",{value:!0});W.trace=W.propagation=W.metrics=W.diag=W.context=W.INVALID_SPAN_CONTEXT=W.INVALID_TRACEID=W.INVALID_SPANID=W.isValidSpanId=W.isValidTraceId=W.isSpanContextValid=W.createTraceState=W.TraceFlags=W.SpanStatusCode=W.SpanKind=W.SamplingDecision=W.ProxyTracerProvider=W.ProxyTracer=W.defaultTextMapSetter=W.defaultTextMapGetter=W.ValueType=W.createNoopMeter=W.DiagLogLevel=W.DiagConsoleLogger=W.ROOT_CONTEXT=W.createContextKey=W.baggageEntryMetadataFromString=void 0;var k1=d();Object.defineProperty(W,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return k1.baggageEntryMetadataFromString}});var BZ=k();Object.defineProperty(W,"createContextKey",{enumerable:!0,get:function(){return BZ.createContextKey}});Object.defineProperty(W,"ROOT_CONTEXT",{enumerable:!0,get:function(){return BZ.ROOT_CONTEXT}});var b1=hz();Object.defineProperty(W,"DiagConsoleLogger",{enumerable:!0,get:function(){return b1.DiagConsoleLogger}});var R1=E();Object.defineProperty(W,"DiagLogLevel",{enumerable:!0,get:function(){return R1.DiagLogLevel}});var E1=s();Object.defineProperty(W,"createNoopMeter",{enumerable:!0,get:function(){return E1.createNoopMeter}});var T1=Nz();Object.defineProperty(W,"ValueType",{enumerable:!0,get:function(){return T1.ValueType}});var fZ=o();Object.defineProperty(W,"defaultTextMapGetter",{enumerable:!0,get:function(){return fZ.defaultTextMapGetter}});Object.defineProperty(W,"defaultTextMapSetter",{enumerable:!0,get:function(){return fZ.defaultTextMapSetter}});var A1=Xq();Object.defineProperty(W,"ProxyTracer",{enumerable:!0,get:function(){return A1.ProxyTracer}});var y1=Yq();Object.defineProperty(W,"ProxyTracerProvider",{enumerable:!0,get:function(){return y1.ProxyTracerProvider}});var P1=GJ();Object.defineProperty(W,"SamplingDecision",{enumerable:!0,get:function(){return P1.SamplingDecision}});var M1=wJ();Object.defineProperty(W,"SpanKind",{enumerable:!0,get:function(){return M1.SpanKind}});var S1=KJ();Object.defineProperty(W,"SpanStatusCode",{enumerable:!0,get:function(){return S1.SpanStatusCode}});var v1=zq();Object.defineProperty(W,"TraceFlags",{enumerable:!0,get:function(){return v1.TraceFlags}});var u1=EJ();Object.defineProperty(W,"createTraceState",{enumerable:!0,get:function(){return u1.createTraceState}});var bq=M();Object.defineProperty(W,"isSpanContextValid",{enumerable:!0,get:function(){return bq.isSpanContextValid}});Object.defineProperty(W,"isValidTraceId",{enumerable:!0,get:function(){return bq.isValidTraceId}});Object.defineProperty(W,"isValidSpanId",{enumerable:!0,get:function(){return bq.isValidSpanId}});var Rq=y();Object.defineProperty(W,"INVALID_SPANID",{enumerable:!0,get:function(){return Rq.INVALID_SPANID}});Object.defineProperty(W,"INVALID_TRACEID",{enumerable:!0,get:function(){return Rq.INVALID_TRACEID}});Object.defineProperty(W,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return Rq.INVALID_SPAN_CONTEXT}});var UZ=yJ();Object.defineProperty(W,"context",{enumerable:!0,get:function(){return UZ.context}});var jZ=SJ();Object.defineProperty(W,"diag",{enumerable:!0,get:function(){return jZ.diag}});var DZ=gJ();Object.defineProperty(W,"metrics",{enumerable:!0,get:function(){return DZ.metrics}});var CZ=WZ();Object.defineProperty(W,"propagation",{enumerable:!0,get:function(){return CZ.propagation}});var IZ=KZ();Object.defineProperty(W,"trace",{enumerable:!0,get:function(){return IZ.trace}});W.default={context:UZ.context,diag:jZ.diag,metrics:DZ.metrics,propagation:CZ.propagation,trace:IZ.trace}});
3
- export{L1 as rO};
2
+ import{uO as $}from"./chunk-e0vrxetq.js";var Aq=$((Eq)=>{Object.defineProperty(Eq,"__esModule",{value:!0});Eq._globalThis=void 0;Eq._globalThis=typeof globalThis==="object"?globalThis:global});var yq=$((O)=>{var VZ=O&&O.__createBinding||(Object.create?function(q,z,J,Z){if(Z===void 0)Z=J;Object.defineProperty(q,Z,{enumerable:!0,get:function(){return z[J]}})}:function(q,z,J,Z){if(Z===void 0)Z=J;q[Z]=z[J]}),NZ=O&&O.__exportStar||function(q,z){for(var J in q)if(J!=="default"&&!Object.prototype.hasOwnProperty.call(z,J))VZ(z,q,J)};Object.defineProperty(O,"__esModule",{value:!0});NZ(Aq(),O)});var Pq=$((K)=>{var kZ=K&&K.__createBinding||(Object.create?function(q,z,J,Z){if(Z===void 0)Z=J;Object.defineProperty(q,Z,{enumerable:!0,get:function(){return z[J]}})}:function(q,z,J,Z){if(Z===void 0)Z=J;q[Z]=z[J]}),bZ=K&&K.__exportStar||function(q,z){for(var J in q)if(J!=="default"&&!Object.prototype.hasOwnProperty.call(z,J))kZ(z,q,J)};Object.defineProperty(K,"__esModule",{value:!0});bZ(yq(),K)});var v=$((Mq)=>{Object.defineProperty(Mq,"__esModule",{value:!0});Mq.VERSION=void 0;Mq.VERSION="1.9.0"});var Lq=$((mq)=>{Object.defineProperty(mq,"__esModule",{value:!0});mq.isCompatible=mq._makeCompatibilityCheck=void 0;var RZ=v(),vq=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function uq(q){let z=new Set([q]),J=new Set,Z=q.match(vq);if(!Z)return()=>!1;let Q={major:+Z[1],minor:+Z[2],patch:+Z[3],prerelease:Z[4]};if(Q.prerelease!=null)return function(Y){return Y===q};function H(F){return J.add(F),!1}function X(F){return z.add(F),!0}return function(Y){if(z.has(Y))return!0;if(J.has(Y))return!1;let h=Y.match(vq);if(!h)return H(Y);let G={major:+h[1],minor:+h[2],patch:+h[3],prerelease:h[4]};if(G.prerelease!=null)return H(Y);if(Q.major!==G.major)return H(Y);if(Q.major===0){if(Q.minor===G.minor&&Q.patch<=G.patch)return X(Y);return H(Y)}if(Q.minor<=G.minor)return X(Y);return H(Y)}}mq._makeCompatibilityCheck=uq;mq.isCompatible=uq(RZ.VERSION)});var B=$((xq)=>{Object.defineProperty(xq,"__esModule",{value:!0});xq.unregisterGlobal=xq.getGlobal=xq.registerGlobal=void 0;var TZ=Pq(),U=v(),AZ=Lq(),yZ=U.VERSION.split(".")[0],I=Symbol.for(`opentelemetry.js.api.${yZ}`),V=TZ._globalThis;function PZ(q,z,J,Z=!1){var Q;let H=V[I]=(Q=V[I])!==null&&Q!==void 0?Q:{version:U.VERSION};if(!Z&&H[q]){let X=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${q}`);return J.error(X.stack||X.message),!1}if(H.version!==U.VERSION){let X=Error(`@opentelemetry/api: Registration of version v${H.version} for ${q} does not match previously registered API v${U.VERSION}`);return J.error(X.stack||X.message),!1}return H[q]=z,J.debug(`@opentelemetry/api: Registered a global for ${q} v${U.VERSION}.`),!0}xq.registerGlobal=PZ;function MZ(q){var z,J;let Z=(z=V[I])===null||z===void 0?void 0:z.version;if(!Z||!(0,AZ.isCompatible)(Z))return;return(J=V[I])===null||J===void 0?void 0:J[q]}xq.getGlobal=MZ;function SZ(q,z){z.debug(`@opentelemetry/api: Unregistering a global for ${q} v${U.VERSION}.`);let J=V[I];if(J)delete J[q]}xq.unregisterGlobal=SZ});var iq=$((lq)=>{Object.defineProperty(lq,"__esModule",{value:!0});lq.DiagComponentLogger=void 0;var mZ=B();class cq{constructor(q){this._namespace=q.namespace||"DiagComponentLogger"}debug(...q){return N("debug",this._namespace,q)}error(...q){return N("error",this._namespace,q)}info(...q){return N("info",this._namespace,q)}warn(...q){return N("warn",this._namespace,q)}verbose(...q){return N("verbose",this._namespace,q)}}lq.DiagComponentLogger=cq;function N(q,z,J){let Z=(0,mZ.getGlobal)("diag");if(!Z)return;return J.unshift(z),Z[q](...J)}});var E=$((nq)=>{Object.defineProperty(nq,"__esModule",{value:!0});nq.DiagLogLevel=void 0;var dZ;(function(q){q[q.NONE=0]="NONE",q[q.ERROR=30]="ERROR",q[q.WARN=50]="WARN",q[q.INFO=60]="INFO",q[q.DEBUG=70]="DEBUG",q[q.VERBOSE=80]="VERBOSE",q[q.ALL=9999]="ALL"})(dZ=nq.DiagLogLevel||(nq.DiagLogLevel={}))});var rq=$((pq)=>{Object.defineProperty(pq,"__esModule",{value:!0});pq.createLogLevelDiagLogger=void 0;var w=E();function LZ(q,z){if(q<w.DiagLogLevel.NONE)q=w.DiagLogLevel.NONE;else if(q>w.DiagLogLevel.ALL)q=w.DiagLogLevel.ALL;z=z||{};function J(Z,Q){let H=z[Z];if(typeof H==="function"&&q>=Q)return H.bind(z);return function(){}}return{error:J("error",w.DiagLogLevel.ERROR),warn:J("warn",w.DiagLogLevel.WARN),info:J("info",w.DiagLogLevel.INFO),debug:J("debug",w.DiagLogLevel.DEBUG),verbose:J("verbose",w.DiagLogLevel.VERBOSE)}}pq.createLogLevelDiagLogger=LZ});var f=$((tq)=>{Object.defineProperty(tq,"__esModule",{value:!0});tq.DiagAPI=void 0;var xZ=iq(),_Z=rq(),oq=E(),T=B(),cZ="diag";class m{constructor(){function q(Z){return function(...Q){let H=(0,T.getGlobal)("diag");if(!H)return;return H[Z](...Q)}}let z=this,J=(Z,Q={logLevel:oq.DiagLogLevel.INFO})=>{var H,X,F;if(Z===z){let G=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return z.error((H=G.stack)!==null&&H!==void 0?H:G.message),!1}if(typeof Q==="number")Q={logLevel:Q};let Y=(0,T.getGlobal)("diag"),h=(0,_Z.createLogLevelDiagLogger)((X=Q.logLevel)!==null&&X!==void 0?X:oq.DiagLogLevel.INFO,Z);if(Y&&!Q.suppressOverrideMessage){let G=(F=Error().stack)!==null&&F!==void 0?F:"<failed to generate stacktrace>";Y.warn(`Current logger will be overwritten from ${G}`),h.warn(`Current logger will overwrite one already registered from ${G}`)}return(0,T.registerGlobal)("diag",h,z,!0)};z.setLogger=J,z.disable=()=>{(0,T.unregisterGlobal)(cZ,z)},z.createComponentLogger=(Z)=>{return new xZ.DiagComponentLogger(Z)},z.verbose=q("verbose"),z.debug=q("debug"),z.info=q("info"),z.warn=q("warn"),z.error=q("error")}static instance(){if(!this._instance)this._instance=new m;return this._instance}}tq.DiagAPI=m});var zz=$((eq)=>{Object.defineProperty(eq,"__esModule",{value:!0});eq.BaggageImpl=void 0;class j{constructor(q){this._entries=q?new Map(q):new Map}getEntry(q){let z=this._entries.get(q);if(!z)return;return Object.assign({},z)}getAllEntries(){return Array.from(this._entries.entries()).map(([q,z])=>[q,z])}setEntry(q,z){let J=new j(this._entries);return J._entries.set(q,z),J}removeEntry(q){let z=new j(this._entries);return z._entries.delete(q),z}removeEntries(...q){let z=new j(this._entries);for(let J of q)z._entries.delete(J);return z}clear(){return new j}}eq.BaggageImpl=j});var $z=$((Jz)=>{Object.defineProperty(Jz,"__esModule",{value:!0});Jz.baggageEntryMetadataSymbol=void 0;Jz.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")});var d=$((Qz)=>{Object.defineProperty(Qz,"__esModule",{value:!0});Qz.baggageEntryMetadataFromString=Qz.createBaggage=void 0;var lZ=f(),gZ=zz(),iZ=$z(),nZ=lZ.DiagAPI.instance();function pZ(q={}){return new gZ.BaggageImpl(new Map(Object.entries(q)))}Qz.createBaggage=pZ;function sZ(q){if(typeof q!=="string")nZ.error(`Cannot create baggage metadata from unknown type: ${typeof q}`),q="";return{__TYPE__:iZ.baggageEntryMetadataSymbol,toString(){return q}}}Qz.baggageEntryMetadataFromString=sZ});var k=$((Hz)=>{Object.defineProperty(Hz,"__esModule",{value:!0});Hz.ROOT_CONTEXT=Hz.createContextKey=void 0;function oZ(q){return Symbol.for(q)}Hz.createContextKey=oZ;class A{constructor(q){let z=this;z._currentContext=q?new Map(q):new Map,z.getValue=(J)=>z._currentContext.get(J),z.setValue=(J,Z)=>{let Q=new A(z._currentContext);return Q._currentContext.set(J,Z),Q},z.deleteValue=(J)=>{let Z=new A(z._currentContext);return Z._currentContext.delete(J),Z}}}Hz.ROOT_CONTEXT=new A});var hz=$((Fz)=>{Object.defineProperty(Fz,"__esModule",{value:!0});Fz.DiagConsoleLogger=void 0;var L=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class Yz{constructor(){function q(z){return function(...J){if(console){let Z=console[z];if(typeof Z!=="function")Z=console.log;if(typeof Z==="function")return Z.apply(console,J)}}}for(let z=0;z<L.length;z++)this[L[z].n]=q(L[z].c)}}Fz.DiagConsoleLogger=Yz});var s=$((wz)=>{Object.defineProperty(wz,"__esModule",{value:!0});wz.createNoopMeter=wz.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=wz.NOOP_OBSERVABLE_GAUGE_METRIC=wz.NOOP_OBSERVABLE_COUNTER_METRIC=wz.NOOP_UP_DOWN_COUNTER_METRIC=wz.NOOP_HISTOGRAM_METRIC=wz.NOOP_GAUGE_METRIC=wz.NOOP_COUNTER_METRIC=wz.NOOP_METER=wz.NoopObservableUpDownCounterMetric=wz.NoopObservableGaugeMetric=wz.NoopObservableCounterMetric=wz.NoopObservableMetric=wz.NoopHistogramMetric=wz.NoopGaugeMetric=wz.NoopUpDownCounterMetric=wz.NoopCounterMetric=wz.NoopMetric=wz.NoopMeter=void 0;class x{constructor(){}createGauge(q,z){return wz.NOOP_GAUGE_METRIC}createHistogram(q,z){return wz.NOOP_HISTOGRAM_METRIC}createCounter(q,z){return wz.NOOP_COUNTER_METRIC}createUpDownCounter(q,z){return wz.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(q,z){return wz.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(q,z){return wz.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(q,z){return wz.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(q,z){}removeBatchObservableCallback(q){}}wz.NoopMeter=x;class D{}wz.NoopMetric=D;class _ extends D{add(q,z){}}wz.NoopCounterMetric=_;class c extends D{add(q,z){}}wz.NoopUpDownCounterMetric=c;class l extends D{record(q,z){}}wz.NoopGaugeMetric=l;class g extends D{record(q,z){}}wz.NoopHistogramMetric=g;class b{addCallback(q){}removeCallback(q){}}wz.NoopObservableMetric=b;class i extends b{}wz.NoopObservableCounterMetric=i;class n extends b{}wz.NoopObservableGaugeMetric=n;class p extends b{}wz.NoopObservableUpDownCounterMetric=p;wz.NOOP_METER=new x;wz.NOOP_COUNTER_METRIC=new _;wz.NOOP_GAUGE_METRIC=new l;wz.NOOP_HISTOGRAM_METRIC=new g;wz.NOOP_UP_DOWN_COUNTER_METRIC=new c;wz.NOOP_OBSERVABLE_COUNTER_METRIC=new i;wz.NOOP_OBSERVABLE_GAUGE_METRIC=new n;wz.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new p;function aZ(){return wz.NOOP_METER}wz.createNoopMeter=aZ});var Nz=$((Vz)=>{Object.defineProperty(Vz,"__esModule",{value:!0});Vz.ValueType=void 0;var Y0;(function(q){q[q.INT=0]="INT",q[q.DOUBLE=1]="DOUBLE"})(Y0=Vz.ValueType||(Vz.ValueType={}))});var o=$((kz)=>{Object.defineProperty(kz,"__esModule",{value:!0});kz.defaultTextMapSetter=kz.defaultTextMapGetter=void 0;kz.defaultTextMapGetter={get(q,z){if(q==null)return;return q[z]},keys(q){if(q==null)return[];return Object.keys(q)}};kz.defaultTextMapSetter={set(q,z,J){if(q==null)return;q[z]=J}}});var Az=$((Ez)=>{Object.defineProperty(Ez,"__esModule",{value:!0});Ez.NoopContextManager=void 0;var G0=k();class Rz{active(){return G0.ROOT_CONTEXT}with(q,z,J,...Z){return z.call(J,...Z)}bind(q,z){return z}enable(){return this}disable(){return this}}Ez.NoopContextManager=Rz});var R=$((Pz)=>{Object.defineProperty(Pz,"__esModule",{value:!0});Pz.ContextAPI=void 0;var h0=Az(),t=B(),yz=f(),a="context",w0=new h0.NoopContextManager;class e{constructor(){}static getInstance(){if(!this._instance)this._instance=new e;return this._instance}setGlobalContextManager(q){return(0,t.registerGlobal)(a,q,yz.DiagAPI.instance())}active(){return this._getContextManager().active()}with(q,z,J,...Z){return this._getContextManager().with(q,z,J,...Z)}bind(q,z){return this._getContextManager().bind(q,z)}_getContextManager(){return(0,t.getGlobal)(a)||w0}disable(){this._getContextManager().disable(),(0,t.unregisterGlobal)(a,yz.DiagAPI.instance())}}Pz.ContextAPI=e});var zq=$((Sz)=>{Object.defineProperty(Sz,"__esModule",{value:!0});Sz.TraceFlags=void 0;var O0;(function(q){q[q.NONE=0]="NONE",q[q.SAMPLED=1]="SAMPLED"})(O0=Sz.TraceFlags||(Sz.TraceFlags={}))});var y=$((vz)=>{Object.defineProperty(vz,"__esModule",{value:!0});vz.INVALID_SPAN_CONTEXT=vz.INVALID_TRACEID=vz.INVALID_SPANID=void 0;var K0=zq();vz.INVALID_SPANID="0000000000000000";vz.INVALID_TRACEID="00000000000000000000000000000000";vz.INVALID_SPAN_CONTEXT={traceId:vz.INVALID_TRACEID,spanId:vz.INVALID_SPANID,traceFlags:K0.TraceFlags.NONE}});var P=$((xz)=>{Object.defineProperty(xz,"__esModule",{value:!0});xz.NonRecordingSpan=void 0;var B0=y();class Lz{constructor(q=B0.INVALID_SPAN_CONTEXT){this._spanContext=q}spanContext(){return this._spanContext}setAttribute(q,z){return this}setAttributes(q){return this}addEvent(q,z){return this}addLink(q){return this}addLinks(q){return this}setStatus(q){return this}updateName(q){return this}end(q){}isRecording(){return!1}recordException(q,z){}}xz.NonRecordingSpan=Lz});var $q=$((lz)=>{Object.defineProperty(lz,"__esModule",{value:!0});lz.getSpanContext=lz.setSpanContext=lz.deleteSpan=lz.setSpan=lz.getActiveSpan=lz.getSpan=void 0;var f0=k(),U0=P(),j0=R(),Jq=(0,f0.createContextKey)("OpenTelemetry Context Key SPAN");function Zq(q){return q.getValue(Jq)||void 0}lz.getSpan=Zq;function D0(){return Zq(j0.ContextAPI.getInstance().active())}lz.getActiveSpan=D0;function cz(q,z){return q.setValue(Jq,z)}lz.setSpan=cz;function C0(q){return q.deleteValue(Jq)}lz.deleteSpan=C0;function I0(q,z){return cz(q,new U0.NonRecordingSpan(z))}lz.setSpanContext=I0;function V0(q){var z;return(z=Zq(q))===null||z===void 0?void 0:z.spanContext()}lz.getSpanContext=V0});var M=$((sz)=>{Object.defineProperty(sz,"__esModule",{value:!0});sz.wrapSpanContext=sz.isSpanContextValid=sz.isValidSpanId=sz.isValidTraceId=void 0;var iz=y(),T0=P(),A0=/^([0-9a-f]{32})$/i,y0=/^[0-9a-f]{16}$/i;function nz(q){return A0.test(q)&&q!==iz.INVALID_TRACEID}sz.isValidTraceId=nz;function pz(q){return y0.test(q)&&q!==iz.INVALID_SPANID}sz.isValidSpanId=pz;function P0(q){return nz(q.traceId)&&pz(q.spanId)}sz.isSpanContextValid=P0;function M0(q){return new T0.NonRecordingSpan(q)}sz.wrapSpanContext=M0});var Hq=$((az)=>{Object.defineProperty(az,"__esModule",{value:!0});az.NoopTracer=void 0;var m0=R(),oz=$q(),Qq=P(),d0=M(),Wq=m0.ContextAPI.getInstance();class tz{startSpan(q,z,J=Wq.active()){if(Boolean(z===null||z===void 0?void 0:z.root))return new Qq.NonRecordingSpan;let Q=J&&(0,oz.getSpanContext)(J);if(L0(Q)&&(0,d0.isSpanContextValid)(Q))return new Qq.NonRecordingSpan(Q);else return new Qq.NonRecordingSpan}startActiveSpan(q,z,J,Z){let Q,H,X;if(arguments.length<2)return;else if(arguments.length===2)X=z;else if(arguments.length===3)Q=z,X=J;else Q=z,H=J,X=Z;let F=H!==null&&H!==void 0?H:Wq.active(),Y=this.startSpan(q,Q,F),h=(0,oz.setSpan)(F,Y);return Wq.with(h,X,void 0,Y)}}az.NoopTracer=tz;function L0(q){return typeof q==="object"&&typeof q.spanId==="string"&&typeof q.traceId==="string"&&typeof q.traceFlags==="number"}});var Xq=$((zJ)=>{Object.defineProperty(zJ,"__esModule",{value:!0});zJ.ProxyTracer=void 0;var x0=Hq(),_0=new x0.NoopTracer;class qJ{constructor(q,z,J,Z){this._provider=q,this.name=z,this.version=J,this.options=Z}startSpan(q,z,J){return this._getTracer().startSpan(q,z,J)}startActiveSpan(q,z,J,Z){let Q=this._getTracer();return Reflect.apply(Q.startActiveSpan,Q,arguments)}_getTracer(){if(this._delegate)return this._delegate;let q=this._provider.getDelegateTracer(this.name,this.version,this.options);if(!q)return _0;return this._delegate=q,this._delegate}}zJ.ProxyTracer=qJ});var WJ=$(($J)=>{Object.defineProperty($J,"__esModule",{value:!0});$J.NoopTracerProvider=void 0;var c0=Hq();class ZJ{getTracer(q,z,J){return new c0.NoopTracer}}$J.NoopTracerProvider=ZJ});var Yq=$((XJ)=>{Object.defineProperty(XJ,"__esModule",{value:!0});XJ.ProxyTracerProvider=void 0;var l0=Xq(),g0=WJ(),i0=new g0.NoopTracerProvider;class HJ{getTracer(q,z,J){var Z;return(Z=this.getDelegateTracer(q,z,J))!==null&&Z!==void 0?Z:new l0.ProxyTracer(this,q,z,J)}getDelegate(){var q;return(q=this._delegate)!==null&&q!==void 0?q:i0}setDelegate(q){this._delegate=q}getDelegateTracer(q,z,J){var Z;return(Z=this._delegate)===null||Z===void 0?void 0:Z.getTracer(q,z,J)}}XJ.ProxyTracerProvider=HJ});var GJ=$((FJ)=>{Object.defineProperty(FJ,"__esModule",{value:!0});FJ.SamplingDecision=void 0;var n0;(function(q){q[q.NOT_RECORD=0]="NOT_RECORD",q[q.RECORD=1]="RECORD",q[q.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(n0=FJ.SamplingDecision||(FJ.SamplingDecision={}))});var wJ=$((hJ)=>{Object.defineProperty(hJ,"__esModule",{value:!0});hJ.SpanKind=void 0;var p0;(function(q){q[q.INTERNAL=0]="INTERNAL",q[q.SERVER=1]="SERVER",q[q.CLIENT=2]="CLIENT",q[q.PRODUCER=3]="PRODUCER",q[q.CONSUMER=4]="CONSUMER"})(p0=hJ.SpanKind||(hJ.SpanKind={}))});var KJ=$((OJ)=>{Object.defineProperty(OJ,"__esModule",{value:!0});OJ.SpanStatusCode=void 0;var s0;(function(q){q[q.UNSET=0]="UNSET",q[q.OK=1]="OK",q[q.ERROR=2]="ERROR"})(s0=OJ.SpanStatusCode||(OJ.SpanStatusCode={}))});var UJ=$((BJ)=>{Object.defineProperty(BJ,"__esModule",{value:!0});BJ.validateValue=BJ.validateKey=void 0;var wq="[_0-9a-z-*/]",r0=`[a-z]${wq}{0,255}`,o0=`[a-z0-9]${wq}{0,240}@[a-z]${wq}{0,13}`,t0=new RegExp(`^(?:${r0}|${o0})$`),a0=/^[ -~]{0,255}[!-~]$/,e0=/,|=/;function q1(q){return t0.test(q)}BJ.validateKey=q1;function z1(q){return a0.test(q)&&!e0.test(q)}BJ.validateValue=z1});var kJ=$((VJ)=>{Object.defineProperty(VJ,"__esModule",{value:!0});VJ.TraceStateImpl=void 0;var jJ=UJ(),DJ=32,Z1=512,CJ=",",IJ="=";class Oq{constructor(q){if(this._internalState=new Map,q)this._parse(q)}set(q,z){let J=this._clone();if(J._internalState.has(q))J._internalState.delete(q);return J._internalState.set(q,z),J}unset(q){let z=this._clone();return z._internalState.delete(q),z}get(q){return this._internalState.get(q)}serialize(){return this._keys().reduce((q,z)=>{return q.push(z+IJ+this.get(z)),q},[]).join(CJ)}_parse(q){if(q.length>Z1)return;if(this._internalState=q.split(CJ).reverse().reduce((z,J)=>{let Z=J.trim(),Q=Z.indexOf(IJ);if(Q!==-1){let H=Z.slice(0,Q),X=Z.slice(Q+1,J.length);if((0,jJ.validateKey)(H)&&(0,jJ.validateValue)(X))z.set(H,X)}return z},new Map),this._internalState.size>DJ)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,DJ))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let q=new Oq;return q._internalState=new Map(this._internalState),q}}VJ.TraceStateImpl=Oq});var EJ=$((bJ)=>{Object.defineProperty(bJ,"__esModule",{value:!0});bJ.createTraceState=void 0;var $1=kJ();function Q1(q){return new $1.TraceStateImpl(q)}bJ.createTraceState=Q1});var yJ=$((TJ)=>{Object.defineProperty(TJ,"__esModule",{value:!0});TJ.context=void 0;var W1=R();TJ.context=W1.ContextAPI.getInstance()});var SJ=$((PJ)=>{Object.defineProperty(PJ,"__esModule",{value:!0});PJ.diag=void 0;var H1=f();PJ.diag=H1.DiagAPI.instance()});var mJ=$((vJ)=>{Object.defineProperty(vJ,"__esModule",{value:!0});vJ.NOOP_METER_PROVIDER=vJ.NoopMeterProvider=void 0;var X1=s();class Kq{getMeter(q,z,J){return X1.NOOP_METER}}vJ.NoopMeterProvider=Kq;vJ.NOOP_METER_PROVIDER=new Kq});var _J=$((LJ)=>{Object.defineProperty(LJ,"__esModule",{value:!0});LJ.MetricsAPI=void 0;var F1=mJ(),Bq=B(),dJ=f(),fq="metrics";class Uq{constructor(){}static getInstance(){if(!this._instance)this._instance=new Uq;return this._instance}setGlobalMeterProvider(q){return(0,Bq.registerGlobal)(fq,q,dJ.DiagAPI.instance())}getMeterProvider(){return(0,Bq.getGlobal)(fq)||F1.NOOP_METER_PROVIDER}getMeter(q,z,J){return this.getMeterProvider().getMeter(q,z,J)}disable(){(0,Bq.unregisterGlobal)(fq,dJ.DiagAPI.instance())}}LJ.MetricsAPI=Uq});var gJ=$((cJ)=>{Object.defineProperty(cJ,"__esModule",{value:!0});cJ.metrics=void 0;var G1=_J();cJ.metrics=G1.MetricsAPI.getInstance()});var sJ=$((nJ)=>{Object.defineProperty(nJ,"__esModule",{value:!0});nJ.NoopTextMapPropagator=void 0;class iJ{inject(q,z){}extract(q,z){return q}fields(){return[]}}nJ.NoopTextMapPropagator=iJ});var aJ=$((oJ)=>{Object.defineProperty(oJ,"__esModule",{value:!0});oJ.deleteBaggage=oJ.setBaggage=oJ.getActiveBaggage=oJ.getBaggage=void 0;var h1=R(),w1=k(),jq=(0,w1.createContextKey)("OpenTelemetry Baggage Key");function rJ(q){return q.getValue(jq)||void 0}oJ.getBaggage=rJ;function O1(){return rJ(h1.ContextAPI.getInstance().active())}oJ.getActiveBaggage=O1;function K1(q,z){return q.setValue(jq,z)}oJ.setBaggage=K1;function B1(q){return q.deleteValue(jq)}oJ.deleteBaggage=B1});var ZZ=$((zZ)=>{Object.defineProperty(zZ,"__esModule",{value:!0});zZ.PropagationAPI=void 0;var Dq=B(),D1=sJ(),eJ=o(),S=aJ(),C1=d(),qZ=f(),Cq="propagation",I1=new D1.NoopTextMapPropagator;class Iq{constructor(){this.createBaggage=C1.createBaggage,this.getBaggage=S.getBaggage,this.getActiveBaggage=S.getActiveBaggage,this.setBaggage=S.setBaggage,this.deleteBaggage=S.deleteBaggage}static getInstance(){if(!this._instance)this._instance=new Iq;return this._instance}setGlobalPropagator(q){return(0,Dq.registerGlobal)(Cq,q,qZ.DiagAPI.instance())}inject(q,z,J=eJ.defaultTextMapSetter){return this._getGlobalPropagator().inject(q,z,J)}extract(q,z,J=eJ.defaultTextMapGetter){return this._getGlobalPropagator().extract(q,z,J)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,Dq.unregisterGlobal)(Cq,qZ.DiagAPI.instance())}_getGlobalPropagator(){return(0,Dq.getGlobal)(Cq)||I1}}zZ.PropagationAPI=Iq});var WZ=$(($Z)=>{Object.defineProperty($Z,"__esModule",{value:!0});$Z.propagation=void 0;var V1=ZZ();$Z.propagation=V1.PropagationAPI.getInstance()});var hZ=$((FZ)=>{Object.defineProperty(FZ,"__esModule",{value:!0});FZ.TraceAPI=void 0;var Vq=B(),HZ=Yq(),XZ=M(),C=$q(),YZ=f(),Nq="trace";class kq{constructor(){this._proxyTracerProvider=new HZ.ProxyTracerProvider,this.wrapSpanContext=XZ.wrapSpanContext,this.isSpanContextValid=XZ.isSpanContextValid,this.deleteSpan=C.deleteSpan,this.getSpan=C.getSpan,this.getActiveSpan=C.getActiveSpan,this.getSpanContext=C.getSpanContext,this.setSpan=C.setSpan,this.setSpanContext=C.setSpanContext}static getInstance(){if(!this._instance)this._instance=new kq;return this._instance}setGlobalTracerProvider(q){let z=(0,Vq.registerGlobal)(Nq,this._proxyTracerProvider,YZ.DiagAPI.instance());if(z)this._proxyTracerProvider.setDelegate(q);return z}getTracerProvider(){return(0,Vq.getGlobal)(Nq)||this._proxyTracerProvider}getTracer(q,z){return this.getTracerProvider().getTracer(q,z)}disable(){(0,Vq.unregisterGlobal)(Nq,YZ.DiagAPI.instance()),this._proxyTracerProvider=new HZ.ProxyTracerProvider}}FZ.TraceAPI=kq});var KZ=$((wZ)=>{Object.defineProperty(wZ,"__esModule",{value:!0});wZ.trace=void 0;var N1=hZ();wZ.trace=N1.TraceAPI.getInstance()});var L1=$((W)=>{Object.defineProperty(W,"__esModule",{value:!0});W.trace=W.propagation=W.metrics=W.diag=W.context=W.INVALID_SPAN_CONTEXT=W.INVALID_TRACEID=W.INVALID_SPANID=W.isValidSpanId=W.isValidTraceId=W.isSpanContextValid=W.createTraceState=W.TraceFlags=W.SpanStatusCode=W.SpanKind=W.SamplingDecision=W.ProxyTracerProvider=W.ProxyTracer=W.defaultTextMapSetter=W.defaultTextMapGetter=W.ValueType=W.createNoopMeter=W.DiagLogLevel=W.DiagConsoleLogger=W.ROOT_CONTEXT=W.createContextKey=W.baggageEntryMetadataFromString=void 0;var k1=d();Object.defineProperty(W,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return k1.baggageEntryMetadataFromString}});var BZ=k();Object.defineProperty(W,"createContextKey",{enumerable:!0,get:function(){return BZ.createContextKey}});Object.defineProperty(W,"ROOT_CONTEXT",{enumerable:!0,get:function(){return BZ.ROOT_CONTEXT}});var b1=hz();Object.defineProperty(W,"DiagConsoleLogger",{enumerable:!0,get:function(){return b1.DiagConsoleLogger}});var R1=E();Object.defineProperty(W,"DiagLogLevel",{enumerable:!0,get:function(){return R1.DiagLogLevel}});var E1=s();Object.defineProperty(W,"createNoopMeter",{enumerable:!0,get:function(){return E1.createNoopMeter}});var T1=Nz();Object.defineProperty(W,"ValueType",{enumerable:!0,get:function(){return T1.ValueType}});var fZ=o();Object.defineProperty(W,"defaultTextMapGetter",{enumerable:!0,get:function(){return fZ.defaultTextMapGetter}});Object.defineProperty(W,"defaultTextMapSetter",{enumerable:!0,get:function(){return fZ.defaultTextMapSetter}});var A1=Xq();Object.defineProperty(W,"ProxyTracer",{enumerable:!0,get:function(){return A1.ProxyTracer}});var y1=Yq();Object.defineProperty(W,"ProxyTracerProvider",{enumerable:!0,get:function(){return y1.ProxyTracerProvider}});var P1=GJ();Object.defineProperty(W,"SamplingDecision",{enumerable:!0,get:function(){return P1.SamplingDecision}});var M1=wJ();Object.defineProperty(W,"SpanKind",{enumerable:!0,get:function(){return M1.SpanKind}});var S1=KJ();Object.defineProperty(W,"SpanStatusCode",{enumerable:!0,get:function(){return S1.SpanStatusCode}});var v1=zq();Object.defineProperty(W,"TraceFlags",{enumerable:!0,get:function(){return v1.TraceFlags}});var u1=EJ();Object.defineProperty(W,"createTraceState",{enumerable:!0,get:function(){return u1.createTraceState}});var bq=M();Object.defineProperty(W,"isSpanContextValid",{enumerable:!0,get:function(){return bq.isSpanContextValid}});Object.defineProperty(W,"isValidTraceId",{enumerable:!0,get:function(){return bq.isValidTraceId}});Object.defineProperty(W,"isValidSpanId",{enumerable:!0,get:function(){return bq.isValidSpanId}});var Rq=y();Object.defineProperty(W,"INVALID_SPANID",{enumerable:!0,get:function(){return Rq.INVALID_SPANID}});Object.defineProperty(W,"INVALID_TRACEID",{enumerable:!0,get:function(){return Rq.INVALID_TRACEID}});Object.defineProperty(W,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return Rq.INVALID_SPAN_CONTEXT}});var UZ=yJ();Object.defineProperty(W,"context",{enumerable:!0,get:function(){return UZ.context}});var jZ=SJ();Object.defineProperty(W,"diag",{enumerable:!0,get:function(){return jZ.diag}});var DZ=gJ();Object.defineProperty(W,"metrics",{enumerable:!0,get:function(){return DZ.metrics}});var CZ=WZ();Object.defineProperty(W,"propagation",{enumerable:!0,get:function(){return CZ.propagation}});var IZ=KZ();Object.defineProperty(W,"trace",{enumerable:!0,get:function(){return IZ.trace}});W.default={context:UZ.context,diag:jZ.diag,metrics:DZ.metrics,propagation:CZ.propagation,trace:IZ.trace}});
3
+ export{L1 as sO};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{o as L}from"./chunk-3zwma68w.js";import"./chunk-qgfbsmsx.js";import{A as K}from"./chunk-9cn8cmt0.js";import{B as N}from"./chunk-gsez13bg.js";import{C as F,E as J}from"./chunk-c8k32724.js";import"./chunk-c3yjbent.js";import"./chunk-epmc4aht.js";import"./chunk-gbkz04ke.js";import"./chunk-4064rbtp.js";import{$ as M}from"./chunk-4pmvxnkj.js";import"./chunk-a1z8rnq7.js";import"./chunk-5r7c6vvx.js";import"./chunk-rk0fnvp5.js";import"./chunk-8p0t8qah.js";import"./chunk-52xvhxek.js";import{be as B}from"./chunk-f4mnp6xd.js";import"./chunk-mr17tppa.js";import"./chunk-h8mfbbjh.js";import"./chunk-s8z7v1me.js";import{eg as z}from"./chunk-bwadggys.js";import"./chunk-ayb3bdb7.js";import"./chunk-h4hs2rhf.js";import"./chunk-he9kpk9r.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"./chunk-qq9m8fxv.js";import"./chunk-2qm46qvn.js";import"./chunk-tsmj98yf.js";import"./chunk-58f4y4b7.js";import"./chunk-rmsqb6r4.js";import"./chunk-qxdpgdfk.js";import"./chunk-6qwk6z87.js";import"./chunk-sa0rrreh.js";import"./chunk-ydgst3h8.js";import"./chunk-6tqbnxar.js";import"./chunk-0w19vmd7.js";import"./chunk-eewe7tx1.js";import"./chunk-37cbrnke.js";import"./chunk-wm9nh9nb.js";import"./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-9009v4d0.js";import"./chunk-82xrfk5x.js";import"./chunk-wqk1v8t0.js";import"./chunk-vkjqy92f.js";import"./chunk-z0kbyr00.js";import"./chunk-sbjymf20.js";import"./chunk-dt3bsmfe.js";import"./chunk-vbfej8ds.js";import"./chunk-8jmb5bd4.js";import"./chunk-0tm6589k.js";import"./chunk-6yhn9syz.js";import"./chunk-wb05bp10.js";import"./chunk-wgkcyqn1.js";import"./chunk-59csnjc3.js";import"./chunk-1bxfzd6r.js";import"./chunk-6p6m5956.js";import"./chunk-a48mx917.js";import"./chunk-3va85mbe.js";import"./chunk-w7a33cwa.js";import"./chunk-g7v6sp3c.js";import"./chunk-s2tc3qs0.js";import"./chunk-n6tqtk6h.js";import"./chunk-e0vrxetq.js";var x=B({command:"attach <url>",describe:"attach to a running qitqode server",builder:(j)=>j.positional("url",{type:"string",describe:"http://localhost:4096",demandOption:!0}).option("dir",{type:"string",description:"directory to run in"}).option("continue",{alias:["c"],describe:"continue the last session",type:"boolean"}).option("session",{alias:["s"],type:"string",describe:"session id to continue"}).option("fork",{type:"boolean",describe:"fork the session when continuing (use with --continue or --session)"}).option("password",{alias:["p"],type:"string",describe:"basic auth password (defaults to QITQODE_SERVER_PASSWORD)"}),handler:async(j)=>{let Q=J();try{F();let q=N(j);if(q){z.error(q),process.exitCode=1;return}let R=(()=>{if(!j.dir)return;try{return process.chdir(j.dir),process.cwd()}catch{return j.dir}})(),S=M({password:j.password}),V=await K.get();await L({url:j.url,config:V,args:{continue:j.continue,sessionID:j.session,fork:j.fork},directory:R,headers:S})}finally{Q?.()}}});export{x as AttachCommand};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import"./chunk-e0vrxetq.js";var A="./tree-sitter-zig-e78zbjpm.wasm";export{A as default};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Qd as T,Sd as q,Td as N,Ud as w,Vd as X,Yd as D}from"./chunk-ff548b0j.js";import"./chunk-zc0cdvcv.js";import{dg as Q}from"./chunk-eg3syjtv.js";import{Bh as A}from"./chunk-hjt94wce.js";import"./chunk-w46g7kdq.js";import"./chunk-bd21p9zz.js";import"./chunk-p54bzjtv.js";import"./chunk-ha1w0xzh.js";import"./chunk-6m9jb0s9.js";import"./chunk-vygkwwjd.js";import"./chunk-k3dacdp5.js";import{fl as $}from"./chunk-99s035f0.js";import"./chunk-h9wh48d0.js";import"./chunk-tzb26ntq.js";import"./chunk-mh19kwzw.js";import"./chunk-q3h42a94.js";import"./chunk-hqbbs9dm.js";import"./chunk-9zm6r55d.js";import"./chunk-vcygx6hs.js";import"./chunk-khzzmyk2.js";import"./chunk-y7hgevfv.js";import"./chunk-47k5jy1p.js";import"./chunk-cfhfc86j.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-dnnkq5y4.js";import"./chunk-t239rvej.js";import"./chunk-yz25607t.js";import"./chunk-7hvf9dgx.js";import"./chunk-wkg3c643.js";import"./chunk-fhqfqd5v.js";import"./chunk-q3nvzhyh.js";import"./chunk-5df5aja0.js";import"./chunk-73r8bjjz.js";import"./chunk-xy0gnpen.js";import{Nr as _}from"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-nj1ntakd.js";import"./chunk-cmb62jkt.js";import"./chunk-tkrwcjkr.js";import"./chunk-vdrz2t9c.js";import"./chunk-fr34mnyg.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import{ft as Y,kt as W}from"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-pxm4qvqk.js";import"./chunk-j8fcfhr2.js";import"./chunk-r9w0thdk.js";import V from"fs/promises";import L from"path";import R from"os";var g={command:"uninstall",describe:"uninstall qitqode and remove all related files",builder:(j)=>j.option("keep-config",{alias:"c",type:"boolean",describe:"keep configuration files",default:!1}).option("keep-data",{alias:"d",type:"boolean",describe:"keep session data and snapshots",default:!1}).option("dry-run",{type:"boolean",describe:"show what would be removed without removing",default:!1}).option("force",{alias:"f",type:"boolean",describe:"skip confirmation prompts",default:!1}),handler:async(j)=>{Q.empty(),Q.println(Q.logo(" ")),Q.empty(),w("Uninstall QitQode");let B=await A.runPromise($.Service.use((J)=>J.method()));N.info(`Installation method: ${B}`);let E=await v(j,B);if(await z(E,B),!j.force&&!j.dryRun){let J=await q({message:"Are you sure you want to uninstall?",initialValue:!1});if(!J||T(J)){X("Cancelled");return}}if(j.dryRun){N.warn("Dry run - no changes made"),X("Done");return}await G(B,E),X("Done")}};async function v(j,B){let E=[{path:W.Path.data,label:"Data",keep:j.keepData},{path:W.Path.cache,label:"Cache",keep:!1},{path:W.Path.config,label:"Config",keep:j.keepConfig},{path:W.Path.state,label:"State",keep:!1}],J=B==="curl"?await P():null,H=B==="curl"?process.execPath:null;return{directories:E,shellConfig:J,binary:H}}async function z(j,B){N.message("The following will be removed:");for(let E of j.directories){if(!await V.access(E.path).then(()=>!0).catch(()=>!1))continue;let H=await F(E.path),K=S(H),O=E.keep?Q.Style.TEXT_DIM+"(keeping)":"",M=E.keep?"\u25CB":"\u2713";N.info(` ${M} ${E.label}: ${Z(E.path)} ${Q.Style.TEXT_DIM}(${K})${O}`)}if(j.binary)N.info(` \u2713 Binary: ${Z(j.binary)}`);if(j.shellConfig)N.info(` \u2713 Shell PATH in ${Z(j.shellConfig)}`);if(B!=="curl"&&B!=="unknown"){let E={npm:"npm uninstall -g @qitqode/cli",pnpm:"pnpm uninstall -g @qitqode/cli",bun:"bun remove -g @qitqode/cli"};N.info(` \u2713 Package: ${E[B]||B}`)}}async function G(j,B){let E=D(),J=[];for(let H of B.directories){if(H.keep){N.step(`Skipping ${H.label} (--keep-${H.label.toLowerCase()})`);continue}if(!await V.access(H.path).then(()=>!0).catch(()=>!1))continue;E.start(`Removing ${H.label}...`);let O=await V.rm(H.path,{recursive:!0,force:!0}).catch((M)=>M);if(O){E.stop(`Failed to remove ${H.label}`,1),J.push(`${H.label}: ${O.message}`);continue}E.stop(`Removed ${H.label}`)}if(B.shellConfig){E.start("Cleaning shell config...");let H=await k(B.shellConfig).catch((K)=>K);if(H)E.stop("Failed to clean shell config",1),J.push(`Shell config: ${H.message}`);else E.stop("Cleaned shell config")}if(j!=="curl"&&j!=="unknown"){let K={npm:["npm","uninstall","-g","@qitqode/cli"],pnpm:["pnpm","uninstall","-g","@qitqode/cli"],bun:["bun","remove","-g","@qitqode/cli"]}[j];if(K){E.start(`Running ${K.join(" ")}...`);let O=await _.run(K,{nothrow:!0});if(O.code!==0)E.stop(`Package manager uninstall failed: exit code ${O.code}`,1),N.warn(`You may need to run manually: ${K.join(" ")}`);else E.stop("Package removed")}else N.warn(`Uninstall not supported for method "${j}" yet, skipping package removal`)}if(j==="curl"&&B.binary){Q.empty(),N.message("To finish removing the binary, run:"),N.info(` rm "${B.binary}"`);let H=L.dirname(B.binary);if(H.includes(".qitqode"))N.info(` rmdir "${H}" 2>/dev/null`)}if(J.length>0){Q.empty(),N.warn("Some operations failed:");for(let H of J)N.error(` ${H}`)}Q.empty(),N.success("Thank you for using QitQode!")}async function P(){let j=L.basename(process.env.SHELL||"bash"),B=R.homedir(),E=process.env.XDG_CONFIG_HOME||L.join(B,".config"),J={fish:[L.join(E,"fish","config.fish")],zsh:[L.join(B,".zshrc"),L.join(B,".zshenv"),L.join(E,"zsh",".zshrc"),L.join(E,"zsh",".zshenv")],bash:[L.join(B,".bashrc"),L.join(B,".bash_profile"),L.join(B,".profile"),L.join(E,"bash",".bashrc"),L.join(E,"bash",".bash_profile")],ash:[L.join(B,".ashrc"),L.join(B,".profile")],sh:[L.join(B,".profile")]},H=J[j]||J.bash;for(let K of H){if(!await V.access(K).then(()=>!0).catch(()=>!1))continue;let M=await Y.readText(K).catch(()=>"");if(M.includes("# qitqode")||M.includes(".qitqode/bin"))return K}return null}async function k(j){let E=(await Y.readText(j)).split(`
2
+ import{Rd as T,Td as q,Ud as N,Vd as w,Wd as X,Zd as D}from"./chunk-2kh0tg92.js";import"./chunk-52xvhxek.js";import{eg as Q}from"./chunk-bwadggys.js";import{Ch as A}from"./chunk-he9kpk9r.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"./chunk-qq9m8fxv.js";import{gl as $}from"./chunk-2qm46qvn.js";import"./chunk-tsmj98yf.js";import"./chunk-58f4y4b7.js";import"./chunk-rmsqb6r4.js";import"./chunk-qxdpgdfk.js";import"./chunk-6qwk6z87.js";import"./chunk-sa0rrreh.js";import"./chunk-ydgst3h8.js";import"./chunk-6tqbnxar.js";import"./chunk-0w19vmd7.js";import"./chunk-eewe7tx1.js";import"./chunk-37cbrnke.js";import"./chunk-wm9nh9nb.js";import"./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-9009v4d0.js";import"./chunk-82xrfk5x.js";import"./chunk-wqk1v8t0.js";import"./chunk-vkjqy92f.js";import{Or as _}from"./chunk-z0kbyr00.js";import"./chunk-sbjymf20.js";import"./chunk-dt3bsmfe.js";import"./chunk-vbfej8ds.js";import"./chunk-0tm6589k.js";import"./chunk-6yhn9syz.js";import"./chunk-wb05bp10.js";import"./chunk-wgkcyqn1.js";import"./chunk-59csnjc3.js";import{gt as Y,lt as W}from"./chunk-1bxfzd6r.js";import"./chunk-6p6m5956.js";import"./chunk-a48mx917.js";import"./chunk-3va85mbe.js";import"./chunk-w7a33cwa.js";import"./chunk-g7v6sp3c.js";import"./chunk-s2tc3qs0.js";import"./chunk-n6tqtk6h.js";import"./chunk-e0vrxetq.js";import V from"fs/promises";import L from"path";import R from"os";var g={command:"uninstall",describe:"uninstall qitqode and remove all related files",builder:(j)=>j.option("keep-config",{alias:"c",type:"boolean",describe:"keep configuration files",default:!1}).option("keep-data",{alias:"d",type:"boolean",describe:"keep session data and snapshots",default:!1}).option("dry-run",{type:"boolean",describe:"show what would be removed without removing",default:!1}).option("force",{alias:"f",type:"boolean",describe:"skip confirmation prompts",default:!1}),handler:async(j)=>{Q.empty(),Q.println(Q.logo(" ")),Q.empty(),w("Uninstall QitQode");let B=await A.runPromise($.Service.use((J)=>J.method()));N.info(`Installation method: ${B}`);let E=await v(j,B);if(await z(E,B),!j.force&&!j.dryRun){let J=await q({message:"Are you sure you want to uninstall?",initialValue:!1});if(!J||T(J)){X("Cancelled");return}}if(j.dryRun){N.warn("Dry run - no changes made"),X("Done");return}await G(B,E),X("Done")}};async function v(j,B){let E=[{path:W.Path.data,label:"Data",keep:j.keepData},{path:W.Path.cache,label:"Cache",keep:!1},{path:W.Path.config,label:"Config",keep:j.keepConfig},{path:W.Path.state,label:"State",keep:!1}],J=B==="curl"?await P():null,H=B==="curl"?process.execPath:null;return{directories:E,shellConfig:J,binary:H}}async function z(j,B){N.message("The following will be removed:");for(let E of j.directories){if(!await V.access(E.path).then(()=>!0).catch(()=>!1))continue;let H=await F(E.path),K=S(H),O=E.keep?Q.Style.TEXT_DIM+"(keeping)":"",M=E.keep?"\u25CB":"\u2713";N.info(` ${M} ${E.label}: ${Z(E.path)} ${Q.Style.TEXT_DIM}(${K})${O}`)}if(j.binary)N.info(` \u2713 Binary: ${Z(j.binary)}`);if(j.shellConfig)N.info(` \u2713 Shell PATH in ${Z(j.shellConfig)}`);if(B!=="curl"&&B!=="unknown"){let E={npm:"npm uninstall -g @qitqode/cli",pnpm:"pnpm uninstall -g @qitqode/cli",bun:"bun remove -g @qitqode/cli"};N.info(` \u2713 Package: ${E[B]||B}`)}}async function G(j,B){let E=D(),J=[];for(let H of B.directories){if(H.keep){N.step(`Skipping ${H.label} (--keep-${H.label.toLowerCase()})`);continue}if(!await V.access(H.path).then(()=>!0).catch(()=>!1))continue;E.start(`Removing ${H.label}...`);let O=await V.rm(H.path,{recursive:!0,force:!0}).catch((M)=>M);if(O){E.stop(`Failed to remove ${H.label}`,1),J.push(`${H.label}: ${O.message}`);continue}E.stop(`Removed ${H.label}`)}if(B.shellConfig){E.start("Cleaning shell config...");let H=await k(B.shellConfig).catch((K)=>K);if(H)E.stop("Failed to clean shell config",1),J.push(`Shell config: ${H.message}`);else E.stop("Cleaned shell config")}if(j!=="curl"&&j!=="unknown"){let K={npm:["npm","uninstall","-g","@qitqode/cli"],pnpm:["pnpm","uninstall","-g","@qitqode/cli"],bun:["bun","remove","-g","@qitqode/cli"]}[j];if(K){E.start(`Running ${K.join(" ")}...`);let O=await _.run(K,{nothrow:!0});if(O.code!==0)E.stop(`Package manager uninstall failed: exit code ${O.code}`,1),N.warn(`You may need to run manually: ${K.join(" ")}`);else E.stop("Package removed")}else N.warn(`Uninstall not supported for method "${j}" yet, skipping package removal`)}if(j==="curl"&&B.binary){Q.empty(),N.message("To finish removing the binary, run:"),N.info(` rm "${B.binary}"`);let H=L.dirname(B.binary);if(H.includes(".qitqode"))N.info(` rmdir "${H}" 2>/dev/null`)}if(J.length>0){Q.empty(),N.warn("Some operations failed:");for(let H of J)N.error(` ${H}`)}Q.empty(),N.success("Thank you for using QitQode!")}async function P(){let j=L.basename(process.env.SHELL||"bash"),B=R.homedir(),E=process.env.XDG_CONFIG_HOME||L.join(B,".config"),J={fish:[L.join(E,"fish","config.fish")],zsh:[L.join(B,".zshrc"),L.join(B,".zshenv"),L.join(E,"zsh",".zshrc"),L.join(E,"zsh",".zshenv")],bash:[L.join(B,".bashrc"),L.join(B,".bash_profile"),L.join(B,".profile"),L.join(E,"bash",".bashrc"),L.join(E,"bash",".bash_profile")],ash:[L.join(B,".ashrc"),L.join(B,".profile")],sh:[L.join(B,".profile")]},H=J[j]||J.bash;for(let K of H){if(!await V.access(K).then(()=>!0).catch(()=>!1))continue;let M=await Y.readText(K).catch(()=>"");if(M.includes("# qitqode")||M.includes(".qitqode/bin"))return K}return null}async function k(j){let E=(await Y.readText(j)).split(`
3
3
  `),J=[],H=!1;for(let O of E){let M=O.trim();if(M==="# qitqode"){H=!0;continue}if(H){if(H=!1,M.includes(".qitqode/bin")||M.includes("fish_add_path"))continue}if(M.startsWith("export PATH=")&&M.includes(".qitqode/bin")||M.startsWith("fish_add_path")&&M.includes(".qitqode"))continue;J.push(O)}while(J.length>0&&J[J.length-1].trim()==="")J.pop();let K=J.join(`
4
4
  `)+`
5
5
  `;await Y.write(j,K)}async function F(j){let B=0,E=async(J)=>{let H=await V.readdir(J,{withFileTypes:!0}).catch(()=>[]);for(let K of H){let O=L.join(J,K.name);if(K.isDirectory()){await E(O);continue}if(K.isFile()){let M=await V.stat(O).catch(()=>null);if(M)B+=M.size}}};return await E(j),B}function S(j){if(j<1024)return`${j} B`;if(j<1048576)return`${(j/1024).toFixed(1)} KB`;if(j<1073741824)return`${(j/1048576).toFixed(1)} MB`;return`${(j/1073741824).toFixed(1)} GB`}function Z(j){let B=R.homedir();if(j===B||j.startsWith(B+L.sep))return"~"+j.slice(B.length);return j}export{g as UninstallCommand};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{W as R9}from"./chunk-4pshnq6g.js";import{Pd as E9}from"./chunk-da6kggv7.js";import{Qd as P6,Td as p$,Ud as S9,Vd as U9,Yd as H9,Zd as q6}from"./chunk-ff548b0j.js";import"./chunk-zc0cdvcv.js";import{ae as T0}from"./chunk-5w76kdjr.js";import{dg as O}from"./chunk-eg3syjtv.js";import{$g as j9,Bh as E$,xh as I9}from"./chunk-hjt94wce.js";import"./chunk-w46g7kdq.js";import"./chunk-bd21p9zz.js";import"./chunk-p54bzjtv.js";import"./chunk-ha1w0xzh.js";import"./chunk-6m9jb0s9.js";import"./chunk-vygkwwjd.js";import{Nj as O6,Oj as M0,Tk as w9,Vk as D9,cl as b9,wj as T9}from"./chunk-k3dacdp5.js";import{pl as N9}from"./chunk-99s035f0.js";import{El as A0,Nl as T$}from"./chunk-h9wh48d0.js";import"./chunk-tzb26ntq.js";import"./chunk-mh19kwzw.js";import"./chunk-q3h42a94.js";import"./chunk-hqbbs9dm.js";import"./chunk-9zm6r55d.js";import"./chunk-vcygx6hs.js";import"./chunk-khzzmyk2.js";import"./chunk-y7hgevfv.js";import"./chunk-47k5jy1p.js";import"./chunk-cfhfc86j.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-dnnkq5y4.js";import"./chunk-t239rvej.js";import"./chunk-yz25607t.js";import"./chunk-7hvf9dgx.js";import"./chunk-wkg3c643.js";import"./chunk-fhqfqd5v.js";import"./chunk-q3nvzhyh.js";import"./chunk-5df5aja0.js";import"./chunk-73r8bjjz.js";import"./chunk-xy0gnpen.js";import{Nr as C6}from"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-nj1ntakd.js";import"./chunk-cmb62jkt.js";import"./chunk-tkrwcjkr.js";import"./chunk-vdrz2t9c.js";import{hs as F9,ks as R6,ls as M9,qs as A9}from"./chunk-fr34mnyg.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import{ft as L9}from"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import{eH as V9}from"./chunk-qnvsqnz5.js";import"./chunk-pxm4qvqk.js";import"./chunk-j8fcfhr2.js";import{sO as q0,tO as D,wO as E}from"./chunk-r9w0thdk.js";var JZ=D((zZ)=>{/*!
2
+ import{W as R9}from"./chunk-4064rbtp.js";import{Qd as E9}from"./chunk-ytyzrqev.js";import{Rd as P6,Ud as p$,Vd as S9,Wd as U9,Zd as H9,_d as q6}from"./chunk-2kh0tg92.js";import"./chunk-52xvhxek.js";import{be as T0}from"./chunk-f4mnp6xd.js";import{eg as O}from"./chunk-bwadggys.js";import{Ch as E$,ah as j9,yh as I9}from"./chunk-he9kpk9r.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{Oj as O6,Pj as M0,Uk as w9,Wk as D9,dl as b9,xj as T9}from"./chunk-qq9m8fxv.js";import{ql as N9}from"./chunk-2qm46qvn.js";import{Fl as A0,Ol as T$}from"./chunk-tsmj98yf.js";import"./chunk-58f4y4b7.js";import"./chunk-rmsqb6r4.js";import"./chunk-qxdpgdfk.js";import"./chunk-6qwk6z87.js";import"./chunk-sa0rrreh.js";import"./chunk-ydgst3h8.js";import"./chunk-6tqbnxar.js";import"./chunk-0w19vmd7.js";import"./chunk-eewe7tx1.js";import"./chunk-37cbrnke.js";import"./chunk-wm9nh9nb.js";import"./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-9009v4d0.js";import"./chunk-82xrfk5x.js";import"./chunk-wqk1v8t0.js";import"./chunk-vkjqy92f.js";import{Or as C6}from"./chunk-z0kbyr00.js";import"./chunk-sbjymf20.js";import"./chunk-dt3bsmfe.js";import"./chunk-vbfej8ds.js";import"./chunk-0tm6589k.js";import"./chunk-6yhn9syz.js";import{is as F9,ls as R6,ms as M9,rs as A9}from"./chunk-wb05bp10.js";import"./chunk-wgkcyqn1.js";import"./chunk-59csnjc3.js";import{gt as L9}from"./chunk-1bxfzd6r.js";import"./chunk-6p6m5956.js";import"./chunk-a48mx917.js";import"./chunk-3va85mbe.js";import"./chunk-w7a33cwa.js";import{fH as V9}from"./chunk-g7v6sp3c.js";import"./chunk-s2tc3qs0.js";import"./chunk-n6tqtk6h.js";import{tO as q0,uO as D,xO as E}from"./chunk-e0vrxetq.js";var JZ=D((zZ)=>{/*!
3
3
  * content-type
4
4
  * Copyright(c) 2015 Douglas Christopher Wilson
5
5
  * MIT Licensed
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{N as b,O as y,P as k,Q as S,R as D,S as x}from"./chunk-d7nsd979.js";import{Pd as m}from"./chunk-da6kggv7.js";import{Qd as f,Rd as w,Ud as h}from"./chunk-ff548b0j.js";import"./chunk-zc0cdvcv.js";import{ae as u}from"./chunk-5w76kdjr.js";import{dg as a}from"./chunk-eg3syjtv.js";import"./chunk-hjt94wce.js";import"./chunk-w46g7kdq.js";import"./chunk-bd21p9zz.js";import"./chunk-p54bzjtv.js";import"./chunk-ha1w0xzh.js";import"./chunk-6m9jb0s9.js";import"./chunk-vygkwwjd.js";import{Mj as p,cl as l}from"./chunk-k3dacdp5.js";import"./chunk-99s035f0.js";import"./chunk-h9wh48d0.js";import"./chunk-tzb26ntq.js";import"./chunk-mh19kwzw.js";import"./chunk-q3h42a94.js";import"./chunk-hqbbs9dm.js";import"./chunk-9zm6r55d.js";import"./chunk-vcygx6hs.js";import"./chunk-khzzmyk2.js";import"./chunk-y7hgevfv.js";import"./chunk-47k5jy1p.js";import"./chunk-cfhfc86j.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-dnnkq5y4.js";import"./chunk-t239rvej.js";import"./chunk-yz25607t.js";import"./chunk-7hvf9dgx.js";import"./chunk-wkg3c643.js";import"./chunk-fhqfqd5v.js";import"./chunk-q3nvzhyh.js";import"./chunk-5df5aja0.js";import"./chunk-73r8bjjz.js";import"./chunk-xy0gnpen.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-nj1ntakd.js";import"./chunk-cmb62jkt.js";import"./chunk-tkrwcjkr.js";import"./chunk-vdrz2t9c.js";import"./chunk-fr34mnyg.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-pxm4qvqk.js";import"./chunk-j8fcfhr2.js";import"./chunk-r9w0thdk.js";import{EOL as c}from"os";async function I(){a.empty(),h("Export session",{output:process.stderr});let t=[...l.list()];if(t.length===0)return;let o=await w({message:"Select session to export",maxItems:10,options:t.map((e)=>({label:e.title,value:e.id,hint:`${new Date(e.time.updated).toLocaleString()} \u2022 ${e.id.slice(-8)}`})),output:process.stderr});if(f(o))throw new a.CancelledError;return p.make(o)}var z=u({command:"export [sessionID]",describe:"export a complete session transcript as JSON or Markdown",builder:(t)=>t.positional("sessionID",{describe:"session id to export",type:"string"}).option("latest",{describe:"export the most recently updated session without prompting",type:"boolean",default:!1}).option("format",{alias:"f",describe:"output format (JSON defaults to stdout; Markdown defaults to a file in the project root)",choices:["json","markdown"],default:"json"}).option("output",{alias:"o",describe:"destination path, resolved from the current project root",type:"string"}).option("thinking",{describe:"include persisted assistant reasoning in Markdown",type:"boolean",default:!1}).option("tool-details",{describe:"include diagnostic tool inputs, outputs, and errors in Markdown",type:"boolean",default:!0}).option("assistant-metadata",{describe:"include agent, model, and duration metadata in Markdown",type:"boolean",default:!0}).option("sanitize",{describe:"redact sensitive transcript and file data",type:"boolean",default:!1}),handler:async(t)=>{await m(process.cwd(),async()=>{if(t.sessionID&&t.latest)throw Error("Use either a session ID or --latest, not both");let o=t.sessionID?p.make(t.sessionID):void 0;if(!o&&(t.latest||!process.stderr.isTTY))o=y()?.id;if(!o)o=await I();if(!o)throw Error("No sessions found in the current project");let e;try{e=await b(o)}catch{throw Error(`Session not found: ${o}`)}let r=t.sanitize?D(e):e,n=t.format,d=n==="json"?JSON.stringify(r,null,2)+c:x(r.info,r.messages,{thinking:t.thinking,toolDetails:t.toolDetails,assistantMetadata:t.assistantMetadata}),i=t.output??(n==="markdown"?k(r.info.id,n):void 0);if(!i){process.stdout.write(d);return}try{let s=await S(process.cwd(),i,d);process.stderr.write(`Session transcript written to ${s}${c}`)}catch(s){let E=s instanceof Error?s.message:String(s);throw Error(`Unable to write session transcript to ${i}: ${E}`)}})}});export{z as ExportCommand};
2
+ import{N as b,O as y,P as k,Q as S,R as D,S as x}from"./chunk-epmc4aht.js";import{Qd as m}from"./chunk-ytyzrqev.js";import{Rd as f,Sd as w,Vd as h}from"./chunk-2kh0tg92.js";import"./chunk-52xvhxek.js";import{be as u}from"./chunk-f4mnp6xd.js";import{eg as a}from"./chunk-bwadggys.js";import"./chunk-he9kpk9r.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{Nj as p,dl as l}from"./chunk-qq9m8fxv.js";import"./chunk-2qm46qvn.js";import"./chunk-tsmj98yf.js";import"./chunk-58f4y4b7.js";import"./chunk-rmsqb6r4.js";import"./chunk-qxdpgdfk.js";import"./chunk-6qwk6z87.js";import"./chunk-sa0rrreh.js";import"./chunk-ydgst3h8.js";import"./chunk-6tqbnxar.js";import"./chunk-0w19vmd7.js";import"./chunk-eewe7tx1.js";import"./chunk-37cbrnke.js";import"./chunk-wm9nh9nb.js";import"./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-9009v4d0.js";import"./chunk-82xrfk5x.js";import"./chunk-wqk1v8t0.js";import"./chunk-vkjqy92f.js";import"./chunk-z0kbyr00.js";import"./chunk-sbjymf20.js";import"./chunk-dt3bsmfe.js";import"./chunk-vbfej8ds.js";import"./chunk-0tm6589k.js";import"./chunk-6yhn9syz.js";import"./chunk-wb05bp10.js";import"./chunk-wgkcyqn1.js";import"./chunk-59csnjc3.js";import"./chunk-1bxfzd6r.js";import"./chunk-6p6m5956.js";import"./chunk-a48mx917.js";import"./chunk-3va85mbe.js";import"./chunk-w7a33cwa.js";import"./chunk-g7v6sp3c.js";import"./chunk-s2tc3qs0.js";import"./chunk-n6tqtk6h.js";import"./chunk-e0vrxetq.js";import{EOL as c}from"os";async function I(){a.empty(),h("Export session",{output:process.stderr});let t=[...l.list()];if(t.length===0)return;let o=await w({message:"Select session to export",maxItems:10,options:t.map((e)=>({label:e.title,value:e.id,hint:`${new Date(e.time.updated).toLocaleString()} \u2022 ${e.id.slice(-8)}`})),output:process.stderr});if(f(o))throw new a.CancelledError;return p.make(o)}var z=u({command:"export [sessionID]",describe:"export a complete session transcript as JSON or Markdown",builder:(t)=>t.positional("sessionID",{describe:"session id to export",type:"string"}).option("latest",{describe:"export the most recently updated session without prompting",type:"boolean",default:!1}).option("format",{alias:"f",describe:"output format (JSON defaults to stdout; Markdown defaults to a file in the project root)",choices:["json","markdown"],default:"json"}).option("output",{alias:"o",describe:"destination path, resolved from the current project root",type:"string"}).option("thinking",{describe:"include persisted assistant reasoning in Markdown",type:"boolean",default:!1}).option("tool-details",{describe:"include diagnostic tool inputs, outputs, and errors in Markdown",type:"boolean",default:!0}).option("assistant-metadata",{describe:"include agent, model, and duration metadata in Markdown",type:"boolean",default:!0}).option("sanitize",{describe:"redact sensitive transcript and file data",type:"boolean",default:!1}),handler:async(t)=>{await m(process.cwd(),async()=>{if(t.sessionID&&t.latest)throw Error("Use either a session ID or --latest, not both");let o=t.sessionID?p.make(t.sessionID):void 0;if(!o&&(t.latest||!process.stderr.isTTY))o=y()?.id;if(!o)o=await I();if(!o)throw Error("No sessions found in the current project");let e;try{e=await b(o)}catch{throw Error(`Session not found: ${o}`)}let r=t.sanitize?D(e):e,n=t.format,d=n==="json"?JSON.stringify(r,null,2)+c:x(r.info,r.messages,{thinking:t.thinking,toolDetails:t.toolDetails,assistantMetadata:t.assistantMetadata}),i=t.output??(n==="markdown"?k(r.info.id,n):void 0);if(!i){process.stdout.write(d);return}try{let s=await S(process.cwd(),i,d);process.stderr.write(`Session transcript written to ${s}${c}`)}catch(s){let E=s instanceof Error?s.message:String(s);throw Error(`Unable to write session transcript to ${i}: ${E}`)}})}});export{z as ExportCommand};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ function X(){let q=!1,B,J,L=new Promise((C,K)=>{B=C,J=K}),O=(C)=>{if(q)return;q=!0,J(C)};return{onEvent(C){if(C?.type!=="server.connected"||q)return;q=!0,B()},fail:O,async wait(C=15000){let K=setTimeout(()=>O(Error("QitQode event stream did not connect before prompt dispatch")),C);try{await L}finally{clearTimeout(K)}}}}function Y(q){let B=!1,J=!1,L,O=new Promise((z)=>{L=z}),C=(z)=>{let H=z;return!!H&&(H.properties?.sessionID===q.sessionID||H.properties?.part?.sessionID===q.sessionID)},K=(z)=>{let H=z;return!!H&&H.type==="session.status"&&H.properties?.sessionID===q.sessionID&&H.properties?.status?.type==="idle"},Q=async()=>{if(B)return;let z;try{z=await q.query()}catch{return}if(B||!J)return;if(!z||z.type==="idle")P()},V=q.intervalMs??750,W=setInterval(()=>{Q().catch(()=>{})},V),P=()=>{if(B)return;B=!0,clearInterval(W),L()};return{markStarted(){J=!0},onEvent(z){if(B)return;if(C(z))J=!0;if(K(z))P()},get done(){return B},completion:O,stop(){P()}}}var $="build";function b(q){return q&&q.trim().length>0?q:"build"}
3
+ export{X,Y,$ as Z,b as _};