@qitqode/qitqode-android-arm64 0.1.24 → 0.1.26

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 (420) hide show
  1. package/bundle/{chunk-gn9p1d50.js → chunk-01gwb793.js} +1 -1
  2. package/bundle/{chunk-4kse3awh.js → chunk-0304b7xg.js} +1 -1
  3. package/bundle/{chunk-k9d927xe.js → chunk-05amr7y9.js} +1 -1
  4. package/bundle/{chunk-am73j1bt.js → chunk-06x1p3t4.js} +1 -1
  5. package/bundle/{chunk-9798jffg.js → chunk-07net7s8.js} +1 -1
  6. package/bundle/chunk-08y06vgt.js +3 -0
  7. package/bundle/chunk-09ecxdmd.js +2 -0
  8. package/bundle/{chunk-6mscvf6y.js → chunk-0cehm5fn.js} +1 -1
  9. package/bundle/chunk-0jaj2g7x.js +2 -0
  10. package/bundle/{chunk-7gczzccz.js → chunk-0m2tj2h9.js} +1 -1
  11. package/bundle/{chunk-srf73nm4.js → chunk-0mekr486.js} +1 -1
  12. package/bundle/{chunk-gen6f3dn.js → chunk-0ndvy0nh.js} +2 -2
  13. package/bundle/chunk-0nr2925m.js +2 -0
  14. package/bundle/chunk-0vqrakhw.js +3 -0
  15. package/bundle/{chunk-vf1r5ckp.js → chunk-0w5npkgr.js} +1 -1
  16. package/bundle/chunk-0wbq1y92.js +2 -0
  17. package/bundle/chunk-12pxszgn.js +2 -0
  18. package/bundle/chunk-1337582e.js +2 -0
  19. package/bundle/{chunk-hxgb0y1w.js → chunk-14ag9ea0.js} +1 -1
  20. package/bundle/chunk-182jf8fz.js +2 -0
  21. package/bundle/chunk-1ht3zcsh.js +2 -0
  22. package/bundle/{chunk-fhng5her.js → chunk-1n4w8dya.js} +2 -2
  23. package/bundle/{chunk-g7vkkmsk.js → chunk-1qbm1k9y.js} +3 -3
  24. package/bundle/{chunk-apq38bt4.js → chunk-1xkwm21b.js} +3 -3
  25. package/bundle/{chunk-3tkp27x7.js → chunk-1xpx1t40.js} +2 -2
  26. package/bundle/{chunk-w1atxyz0.js → chunk-1yx4jesj.js} +1 -1
  27. package/bundle/chunk-25zkavr0.js +2 -0
  28. package/bundle/{chunk-4k149ews.js → chunk-28vnspd4.js} +1 -1
  29. package/bundle/chunk-2cm91ktc.js +3 -0
  30. package/bundle/chunk-2jfd82jk.js +2 -0
  31. package/bundle/{chunk-ve5gb789.js → chunk-2jn2hd12.js} +2 -2
  32. package/bundle/chunk-2k7bbzj2.js +2 -0
  33. package/bundle/{chunk-7yf15a3a.js → chunk-2kdn66xt.js} +1 -1
  34. package/bundle/{chunk-99n6czag.js → chunk-2q76qax6.js} +2 -2
  35. package/bundle/{chunk-8pe047p0.js → chunk-2sy1wx99.js} +1 -1
  36. package/bundle/{chunk-8651hq0k.js → chunk-2yb59jwr.js} +1 -1
  37. package/bundle/chunk-30081kwd.js +2 -0
  38. package/bundle/{chunk-g0v9g37f.js → chunk-32zrch7h.js} +1 -1
  39. package/bundle/{chunk-7y3y3j51.js → chunk-3bb7y9pq.js} +2 -2
  40. package/bundle/{chunk-jz3aav8a.js → chunk-3kdhvq0p.js} +2 -2
  41. package/bundle/{chunk-m8djypsy.js → chunk-3rgct4bd.js} +1 -1
  42. package/bundle/{chunk-frdc3ysq.js → chunk-3s0d17xe.js} +1 -1
  43. package/bundle/chunk-3vag59se.js +2 -0
  44. package/bundle/{chunk-j1a64ade.js → chunk-3w64fpwn.js} +2 -2
  45. package/bundle/chunk-3x5v6sjw.js +2 -0
  46. package/bundle/{chunk-hqg5qbxk.js → chunk-3zn71txs.js} +1 -1
  47. package/bundle/{chunk-3vbtra1j.js → chunk-41ftye7w.js} +1 -1
  48. package/bundle/chunk-43ep9d7a.js +2 -0
  49. package/bundle/chunk-48j09m6e.js +3 -0
  50. package/bundle/{chunk-6szvs3k9.js → chunk-4920vf6a.js} +1 -1
  51. package/bundle/{chunk-wa2ce2sg.js → chunk-49tqzsy0.js} +2 -2
  52. package/bundle/{chunk-cvchztkc.js → chunk-49ypxzfx.js} +1 -1
  53. package/bundle/{chunk-6nhje520.js → chunk-4k70wrhf.js} +1 -1
  54. package/bundle/{chunk-tk3bve0x.js → chunk-4nck07pc.js} +2 -2
  55. package/bundle/chunk-4qqja22v.js +2 -0
  56. package/bundle/{chunk-23geekk5.js → chunk-54pk7nna.js} +1 -1
  57. package/bundle/{chunk-ewyk4py6.js → chunk-56pwz1kk.js} +1 -1
  58. package/bundle/{chunk-2y8qz8te.js → chunk-56qm8xpt.js} +1 -1
  59. package/bundle/{chunk-y3n31nnx.js → chunk-58gp7wbg.js} +2 -2
  60. package/bundle/{chunk-9easaxy7.js → chunk-5dm3p5r6.js} +1 -1
  61. package/bundle/chunk-5gazgxt5.js +2 -0
  62. package/bundle/{chunk-0ae5q6ck.js → chunk-5jtd006j.js} +2 -2
  63. package/bundle/{chunk-t488d66k.js → chunk-5mec6cde.js} +1 -1
  64. package/bundle/{chunk-gvzfffr4.js → chunk-5yaahmjb.js} +1 -1
  65. package/bundle/{chunk-jbd9k041.js → chunk-5ymj2q6j.js} +2 -2
  66. package/bundle/{chunk-ebjhggdw.js → chunk-613kegcn.js} +1 -1
  67. package/bundle/chunk-63znhwx0.js +2 -0
  68. package/bundle/{chunk-zavtsfxz.js → chunk-6fpfr8tk.js} +1 -1
  69. package/bundle/{chunk-0pvbk8ks.js → chunk-6h2faxs9.js} +2 -2
  70. package/bundle/chunk-6hmyy7n6.js +2 -0
  71. package/bundle/{chunk-78bajmqm.js → chunk-6nk3wx6f.js} +1 -1
  72. package/bundle/{chunk-1jsywey3.js → chunk-6nkcfncg.js} +1 -1
  73. package/bundle/{chunk-ps543k72.js → chunk-6s2f5sv4.js} +1 -1
  74. package/bundle/{chunk-dcx8hjbs.js → chunk-6vb26adv.js} +1 -1
  75. package/bundle/{chunk-r48g0kaq.js → chunk-6wdwwpsc.js} +2 -2
  76. package/bundle/{chunk-8r79zf3y.js → chunk-77e1wh0j.js} +2 -2
  77. package/bundle/chunk-7dyddrpk.js +2 -0
  78. package/bundle/{chunk-4d1a547n.js → chunk-7e1aw8rw.js} +1 -1
  79. package/bundle/{chunk-ac202abt.js → chunk-7ez3ye6e.js} +1 -1
  80. package/bundle/{chunk-wfnk2vsd.js → chunk-7fmy4cvn.js} +1 -1
  81. package/bundle/{chunk-82gs5cmn.js → chunk-7n2kpqh5.js} +1 -1
  82. package/bundle/chunk-7penjsgq.js +2 -0
  83. package/bundle/chunk-7qxn24qa.js +3 -0
  84. package/bundle/{chunk-4q9w2yve.js → chunk-7rxsj310.js} +2 -2
  85. package/bundle/{chunk-dkv2mg97.js → chunk-7ryv0f5h.js} +1 -1
  86. package/bundle/chunk-7t5gzkj6.js +2 -0
  87. package/bundle/{chunk-84gnbzky.js → chunk-7tbvr236.js} +1 -1
  88. package/bundle/{chunk-8cr7ks31.js → chunk-81engf0t.js} +1 -1
  89. package/bundle/{chunk-cy2586rv.js → chunk-880msfsd.js} +1 -1
  90. package/bundle/chunk-89vgt8vq.js +2 -0
  91. package/bundle/{chunk-vftqwdpg.js → chunk-8ahpk8td.js} +1 -1
  92. package/bundle/{chunk-9f7y0dj0.js → chunk-8bzwgcjb.js} +1 -1
  93. package/bundle/chunk-8e8n82f9.js +2 -0
  94. package/bundle/{chunk-xj73j10a.js → chunk-91khd3fq.js} +1 -1
  95. package/bundle/chunk-97exhw9j.js +2 -0
  96. package/bundle/chunk-9cvkaht5.js +2 -0
  97. package/bundle/{chunk-1jh5p5qw.js → chunk-9p83me3p.js} +2 -2
  98. package/bundle/{chunk-ygj1cy0n.js → chunk-9qtf8khv.js} +1 -1
  99. package/bundle/{chunk-kaeyhw2n.js → chunk-9wm41z2f.js} +2 -2
  100. package/bundle/chunk-9zrwbxx0.js +3 -0
  101. package/bundle/{chunk-q6fbyvpq.js → chunk-admgf65a.js} +1 -1
  102. package/bundle/{chunk-spm1yy6w.js → chunk-afhg3w2j.js} +1 -1
  103. package/bundle/chunk-akdvstd9.js +2 -0
  104. package/bundle/{chunk-w7p2x973.js → chunk-atbm0pnt.js} +2 -2
  105. package/bundle/chunk-ave2e4sa.js +2 -0
  106. package/bundle/chunk-axnwehc7.js +2 -0
  107. package/bundle/{chunk-ns0pswww.js → chunk-b79k456s.js} +1 -1
  108. package/bundle/chunk-bmzyxspj.js +2 -0
  109. package/bundle/{chunk-9sy9ws1w.js → chunk-bse8p94q.js} +1 -1
  110. package/bundle/chunk-bvaqpfv8.js +2 -0
  111. package/bundle/{chunk-gf4ek7rv.js → chunk-c0k8j498.js} +1 -1
  112. package/bundle/{chunk-pyq01301.js → chunk-cbmw8fy2.js} +1 -1
  113. package/bundle/{chunk-cesrhm09.js → chunk-cn10hn58.js} +1 -1
  114. package/bundle/{chunk-gc9q0x8z.js → chunk-cqhpbfcn.js} +3 -3
  115. package/bundle/{chunk-jegn6jc3.js → chunk-cr06m77n.js} +2 -2
  116. package/bundle/{chunk-3wzqs241.js → chunk-crap29f6.js} +1 -1
  117. package/bundle/chunk-cxb05cdg.js +2 -0
  118. package/bundle/chunk-cxe92z5c.js +2 -0
  119. package/bundle/{chunk-b643cra9.js → chunk-cyjzqa5p.js} +195 -195
  120. package/bundle/{chunk-0w4v0fbs.js → chunk-d2n09yvh.js} +2 -2
  121. package/bundle/{chunk-fm4xa6yx.js → chunk-d31yrcrn.js} +2 -2
  122. package/bundle/chunk-d5wp85kw.js +2 -0
  123. package/bundle/{chunk-6j0365q3.js → chunk-dazye86e.js} +2 -2
  124. package/bundle/chunk-dm5xnb4t.js +2 -0
  125. package/bundle/chunk-dpeqsvan.js +2 -0
  126. package/bundle/chunk-drxtmg5c.js +2 -0
  127. package/bundle/{chunk-k16hzy2q.js → chunk-dv5zf5gz.js} +1 -1
  128. package/bundle/{chunk-2qcndbxv.js → chunk-e57d1he9.js} +1 -1
  129. package/bundle/{chunk-1d64dywx.js → chunk-e58pdw5k.js} +2 -2
  130. package/bundle/chunk-e9pfdjcy.js +2 -0
  131. package/bundle/chunk-ejn5hfzd.js +2 -0
  132. package/bundle/{chunk-hg563h5r.js → chunk-ek1fawsj.js} +2 -2
  133. package/bundle/{chunk-rvvfs9ps.js → chunk-eq33vmze.js} +1 -1
  134. package/bundle/{chunk-6sdh1q7g.js → chunk-eqaym8gm.js} +1 -1
  135. package/bundle/chunk-ernd18jb.js +2 -0
  136. package/bundle/{chunk-evqxvhdb.js → chunk-ewvgbg68.js} +1 -1
  137. package/bundle/{chunk-wf09j72q.js → chunk-f3c9667r.js} +2 -2
  138. package/bundle/{chunk-9nx8hm57.js → chunk-f3rrd2p6.js} +1 -1
  139. package/bundle/chunk-f416n3mp.js +14 -0
  140. package/bundle/{chunk-hh3w51wp.js → chunk-f6y7a5w3.js} +2 -2
  141. package/bundle/{chunk-zeh481tm.js → chunk-fd9zrmhr.js} +2 -2
  142. package/bundle/chunk-ff9b4cg8.js +2 -0
  143. package/bundle/{chunk-bas6x25m.js → chunk-fffj9447.js} +2 -2
  144. package/bundle/{chunk-5y8efy5b.js → chunk-fk3praj7.js} +1 -1
  145. package/bundle/{chunk-ecwz9nhs.js → chunk-fk8cctjy.js} +2 -2
  146. package/bundle/{chunk-1y9t7nxn.js → chunk-fkat2pw6.js} +1 -1
  147. package/bundle/chunk-fpff6a4q.js +2 -0
  148. package/bundle/chunk-fvy5w4dh.js +7 -0
  149. package/bundle/{chunk-2gxjjqfx.js → chunk-fx7w497c.js} +1 -1
  150. package/bundle/{chunk-5rkmhzq0.js → chunk-fxb6vjcb.js} +2 -2
  151. package/bundle/{chunk-9xvctnjr.js → chunk-g4qwkcdv.js} +1 -1
  152. package/bundle/{chunk-2eardzxs.js → chunk-g6dgc5af.js} +1 -1
  153. package/bundle/{chunk-2mmspnr3.js → chunk-g7vahvkz.js} +1 -1
  154. package/bundle/chunk-g8wvr7a1.js +3 -0
  155. package/bundle/{chunk-21ejqv4v.js → chunk-gaxbbxk6.js} +1 -1
  156. package/bundle/chunk-gq361kdt.js +2 -0
  157. package/bundle/{chunk-n1chdwrs.js → chunk-gxa2r4zc.js} +1 -1
  158. package/bundle/{chunk-p54bzjtv.js → chunk-h56jxxvj.js} +1 -1
  159. package/bundle/{chunk-2z6fzwyc.js → chunk-hb4d06q0.js} +2 -2
  160. package/bundle/chunk-hbagpppv.js +2 -0
  161. package/bundle/chunk-hf473xav.js +2 -0
  162. package/bundle/{chunk-gff87y4n.js → chunk-hjratj6g.js} +1 -1
  163. package/bundle/{chunk-y2jmtfdh.js → chunk-hk8j5ht8.js} +2 -2
  164. package/bundle/{chunk-jr8qcf99.js → chunk-hkmb3zer.js} +2 -2
  165. package/bundle/chunk-hr88054m.js +2 -0
  166. package/bundle/{chunk-ep8zn49w.js → chunk-hybq019j.js} +2 -2
  167. package/bundle/{chunk-1xyn0sp2.js → chunk-hyckncza.js} +2 -2
  168. package/bundle/{chunk-wj6aq50n.js → chunk-hz1hd1bd.js} +1 -1
  169. package/bundle/{chunk-zp2ffbc2.js → chunk-j0ftbmex.js} +2 -2
  170. package/bundle/chunk-j3czd7v2.js +28 -0
  171. package/bundle/{chunk-0w0jfzb4.js → chunk-j7zs1yg2.js} +1 -1
  172. package/bundle/{chunk-xv8gnkh5.js → chunk-j87bvp1b.js} +1 -1
  173. package/bundle/chunk-j9m2d6t5.js +2 -0
  174. package/bundle/chunk-jd9edy2s.js +2 -0
  175. package/bundle/{chunk-4tn69nqs.js → chunk-jdkxeqw5.js} +1 -1
  176. package/bundle/chunk-jwtdbx31.js +2 -0
  177. package/bundle/chunk-jzcz92pq.js +8 -0
  178. package/bundle/{chunk-5h2hcp46.js → chunk-k7h6tfzj.js} +1 -1
  179. package/bundle/{chunk-dann9gfq.js → chunk-kbg3k1az.js} +1 -1
  180. package/bundle/{chunk-va4davgy.js → chunk-kbjwdv1x.js} +259 -253
  181. package/bundle/{chunk-j1veq3zr.js → chunk-kbyk7hyn.js} +2 -2
  182. package/bundle/{chunk-jr9xnvjq.js → chunk-kfk1zqc1.js} +1 -1
  183. package/bundle/{chunk-9jf67xb0.js → chunk-kkdgzeva.js} +2 -2
  184. package/bundle/{chunk-9rqrm9y8.js → chunk-kn318ev4.js} +1 -1
  185. package/bundle/{chunk-pv8jcpnf.js → chunk-kp84yba1.js} +1 -1
  186. package/bundle/{chunk-b8ag61vj.js → chunk-kpnfndkg.js} +1 -1
  187. package/bundle/chunk-krkxrej2.js +2 -0
  188. package/bundle/{chunk-ms1fd6h4.js → chunk-kvz0vzsn.js} +1 -1
  189. package/bundle/chunk-m26mcy8p.js +2 -0
  190. package/bundle/chunk-m62wgqp1.js +2 -0
  191. package/bundle/chunk-m7txgh5w.js +2 -0
  192. package/bundle/chunk-m84cn9c6.js +2 -0
  193. package/bundle/{chunk-kr0fsqas.js → chunk-md7vpe1e.js} +1 -1
  194. package/bundle/{chunk-yz7rqzby.js → chunk-mg239rc3.js} +3 -3
  195. package/bundle/chunk-mvc7pvtq.js +2 -0
  196. package/bundle/{chunk-tsn1jkr7.js → chunk-n07rsssz.js} +1 -1
  197. package/bundle/{chunk-8717htya.js → chunk-n10atvac.js} +1 -1
  198. package/bundle/chunk-nfp9xtca.js +3 -0
  199. package/bundle/{chunk-fdezde1z.js → chunk-ngz5xw45.js} +1 -1
  200. package/bundle/{chunk-7mhffm9f.js → chunk-njzpswgt.js} +183 -183
  201. package/bundle/{chunk-najzfhb2.js → chunk-nszqy06d.js} +1 -1
  202. package/bundle/{chunk-q3x4x2tq.js → chunk-nxjbbq5h.js} +1 -1
  203. package/bundle/{chunk-jmjg8d8a.js → chunk-p0k4sv89.js} +4 -4
  204. package/bundle/{chunk-bf146hz2.js → chunk-p31yg62z.js} +2 -2
  205. package/bundle/chunk-p5t9mq8r.js +2 -0
  206. package/bundle/chunk-pfbykat1.js +2 -0
  207. package/bundle/{chunk-bd21p9zz.js → chunk-pfn1db1m.js} +2 -2
  208. package/bundle/{chunk-1fnmkm0z.js → chunk-pjbbdm96.js} +2 -2
  209. package/bundle/{chunk-k9g77a02.js → chunk-pnj8s20t.js} +1 -1
  210. package/bundle/{chunk-a5zjrwqy.js → chunk-ppvmy940.js} +2 -2
  211. package/bundle/{chunk-r3yqe7x0.js → chunk-ptf09vmp.js} +1 -1
  212. package/bundle/{chunk-sjrmhd3e.js → chunk-q2exgz82.js} +1 -1
  213. package/bundle/{chunk-te1zfpzv.js → chunk-qan3kwbv.js} +1 -1
  214. package/bundle/{chunk-7tgm8wp5.js → chunk-qb5qemtp.js} +1 -1
  215. package/bundle/chunk-qd0nvn4z.js +2 -0
  216. package/bundle/chunk-qh99kv2j.js +2 -0
  217. package/bundle/{chunk-kc3hpmr2.js → chunk-qkwhgfjt.js} +2 -2
  218. package/bundle/{chunk-5kmfnkzv.js → chunk-qm9ezq93.js} +1 -1
  219. package/bundle/chunk-qmhcbdkg.js +8 -0
  220. package/bundle/{chunk-7a6p7dfx.js → chunk-qngs31yf.js} +1 -1
  221. package/bundle/{chunk-hbnr0j7h.js → chunk-qpv4438m.js} +2 -2
  222. package/bundle/{chunk-hv4nhx6q.js → chunk-qq71akpw.js} +2 -2
  223. package/bundle/chunk-qyrafh4m.js +2 -0
  224. package/bundle/{chunk-17ggas8k.js → chunk-r1yqmd4y.js} +1 -1
  225. package/bundle/chunk-rc37cw86.js +2 -0
  226. package/bundle/{chunk-xccs5c50.js → chunk-rf625fxx.js} +1 -1
  227. package/bundle/chunk-rmpty636.js +2 -0
  228. package/bundle/{chunk-9pe4agdz.js → chunk-rs0nx844.js} +2 -2
  229. package/bundle/{chunk-9vcw33dv.js → chunk-rvrjw0fy.js} +1 -1
  230. package/bundle/{chunk-jpygkh1c.js → chunk-rz54qjew.js} +1 -1
  231. package/bundle/{chunk-a9y27zd2.js → chunk-rze20q68.js} +1 -1
  232. package/bundle/{chunk-hg9nk090.js → chunk-s1h0k1yj.js} +1 -1
  233. package/bundle/{chunk-hh4c02fh.js → chunk-s2za1y84.js} +1 -1
  234. package/bundle/chunk-s3wjwxme.js +2 -0
  235. package/bundle/chunk-s4ncnbgd.js +2 -0
  236. package/bundle/{chunk-p4hpr8d7.js → chunk-s54c8fpf.js} +1 -1
  237. package/bundle/{chunk-0pbt75ev.js → chunk-s5krbdvd.js} +1 -1
  238. package/bundle/{chunk-wmw2gne9.js → chunk-s86fj82v.js} +2 -2
  239. package/bundle/{chunk-qywwj58s.js → chunk-sdsggxm4.js} +2 -2
  240. package/bundle/{chunk-r7xp0xcn.js → chunk-se195e52.js} +2 -2
  241. package/bundle/chunk-snz3w30x.js +2 -0
  242. package/bundle/chunk-srw748gr.js +2 -0
  243. package/bundle/{chunk-mj24ntn9.js → chunk-st74db4c.js} +1 -1
  244. package/bundle/{chunk-0rtshz2r.js → chunk-t1vtdgd6.js} +1 -1
  245. package/bundle/{chunk-6dxaty1v.js → chunk-t6xm49ea.js} +1 -1
  246. package/bundle/{chunk-f819a7ec.js → chunk-t7tstr83.js} +1 -1
  247. package/bundle/{chunk-v2kyarwz.js → chunk-tedrfa7d.js} +2 -2
  248. package/bundle/{chunk-zfnbk5gy.js → chunk-tfggzzqw.js} +1 -1
  249. package/bundle/chunk-tn167yyz.js +2 -0
  250. package/bundle/{chunk-d56zc21w.js → chunk-txty44v2.js} +1 -1
  251. package/bundle/{chunk-b6m4yyww.js → chunk-tyy4gx61.js} +1 -1
  252. package/bundle/chunk-v1xwe58d.js +2 -0
  253. package/bundle/{chunk-vvypb02q.js → chunk-vh05n2x3.js} +1 -1
  254. package/bundle/{chunk-agdfqncf.js → chunk-vpqd0t8a.js} +2 -2
  255. package/bundle/chunk-vrfegg5f.js +2 -0
  256. package/bundle/{chunk-tzc4jkzg.js → chunk-vthm5q05.js} +1 -1
  257. package/bundle/{chunk-6g3m7yxf.js → chunk-vw673y0t.js} +2 -2
  258. package/bundle/{chunk-3tdqsm5c.js → chunk-vx837ete.js} +1 -1
  259. package/bundle/{chunk-hjbks7r9.js → chunk-vy9xre57.js} +1 -1
  260. package/bundle/{chunk-x6z2b63w.js → chunk-vyjsng14.js} +1 -1
  261. package/bundle/{chunk-ftk58wxe.js → chunk-vztxv9dj.js} +1 -1
  262. package/bundle/{chunk-1p34bx7c.js → chunk-w01gjnty.js} +2 -2
  263. package/bundle/chunk-w12tky28.js +2 -0
  264. package/bundle/{chunk-t6w96xq2.js → chunk-w2gpgapp.js} +1 -1
  265. package/bundle/{chunk-gn7xgd4c.js → chunk-w3pzv615.js} +1 -1
  266. package/bundle/chunk-w4hbw37v.js +3 -0
  267. package/bundle/chunk-w9ct698t.js +2 -0
  268. package/bundle/{chunk-8ace31r2.js → chunk-wefjbwv6.js} +1 -1
  269. package/bundle/{chunk-sgtgvzv6.js → chunk-wg42cxrw.js} +1 -1
  270. package/bundle/{chunk-02txthqv.js → chunk-wg5dv21f.js} +2 -2
  271. package/bundle/chunk-wms4skr9.js +11 -0
  272. package/bundle/chunk-wr5hdsst.js +9 -0
  273. package/bundle/chunk-wxnqgh8t.js +2 -0
  274. package/bundle/chunk-wzmte7sy.js +3 -0
  275. package/bundle/chunk-x0h1jdxt.js +2 -0
  276. package/bundle/{chunk-ha1w0xzh.js → chunk-x36jhtex.js} +1 -1
  277. package/bundle/{chunk-yzdty5t9.js → chunk-x3931we7.js} +2 -2
  278. package/bundle/{chunk-v7r9np94.js → chunk-x3z8q0ep.js} +1 -1
  279. package/bundle/chunk-x6hsmnhz.js +2 -0
  280. package/bundle/{chunk-fkvccmgk.js → chunk-xak2r993.js} +2 -2
  281. package/bundle/{chunk-c31k8yh0.js → chunk-xc3fadkh.js} +1 -1
  282. package/bundle/{chunk-hh9a709t.js → chunk-xcs2jbz9.js} +1 -1
  283. package/bundle/{chunk-qw2hgs5b.js → chunk-xdv9xt0y.js} +2 -2
  284. package/bundle/{chunk-dgzyn27r.js → chunk-xdwej3ae.js} +1 -1
  285. package/bundle/chunk-xg9e0enb.js +2 -0
  286. package/bundle/{chunk-pfhp78cr.js → chunk-xqxpjbqk.js} +1 -1
  287. package/bundle/chunk-xtxxb25n.js +2 -0
  288. package/bundle/{chunk-8h9r6c8g.js → chunk-y2ch07yv.js} +2 -2
  289. package/bundle/chunk-y3s7sh1e.js +2 -0
  290. package/bundle/chunk-ydvheqw9.js +2 -0
  291. package/bundle/{chunk-0z3z0gk1.js → chunk-ygwe0vf1.js} +2 -2
  292. package/bundle/{chunk-58enbars.js → chunk-ykxde207.js} +2 -2
  293. package/bundle/{chunk-dkm7x8rj.js → chunk-ynfbz3sz.js} +2 -2
  294. package/bundle/{chunk-2wp1w8cy.js → chunk-yqtfvgrp.js} +1 -1
  295. package/bundle/{chunk-edvcz2gd.js → chunk-yt1yk4j1.js} +1 -1
  296. package/bundle/{chunk-yh174jhg.js → chunk-yvj021eg.js} +2 -2
  297. package/bundle/chunk-yxnq0d7k.js +2 -0
  298. package/bundle/{chunk-e346x00p.js → chunk-z2m09m4w.js} +1 -1
  299. package/bundle/{chunk-f3kjp838.js → chunk-z2q3mg73.js} +2 -2
  300. package/bundle/chunk-z2raegj9.js +2 -0
  301. package/bundle/{chunk-y1srca0c.js → chunk-z3hj5bfd.js} +2 -2
  302. package/bundle/chunk-z3pyhmg6.js +2 -0
  303. package/bundle/{chunk-3nhqd8wg.js → chunk-z4ae6jmb.js} +3 -3
  304. package/bundle/{chunk-7dckfame.js → chunk-z559gc3n.js} +1 -1
  305. package/bundle/chunk-z7pg6sw1.js +2 -0
  306. package/bundle/chunk-z84376c6.js +2 -0
  307. package/bundle/{chunk-ktmazmas.js → chunk-ze00x1xb.js} +2 -2
  308. package/bundle/{chunk-pb7rnkke.js → chunk-zjvzc0my.js} +1 -1
  309. package/bundle/chunk-zn8th65r.js +2 -0
  310. package/bundle/{chunk-sswbfqcq.js → chunk-zna6neq5.js} +1 -1
  311. package/bundle/chunk-ztv1brgn.js +2 -0
  312. package/bundle/{chunk-s9amvacw.js → chunk-zvsafnkp.js} +2 -2
  313. package/bundle/chunk-zyxvd9fj.js +2 -0
  314. package/bundle/index.js +16 -16
  315. package/bundle/parser.worker.js +2 -2
  316. package/bundle/worker.js +1 -1
  317. package/package.json +1 -1
  318. package/bundle/chunk-0bvde0cx.js +0 -2
  319. package/bundle/chunk-0kbxnazj.js +0 -2
  320. package/bundle/chunk-19z5q33z.js +0 -2
  321. package/bundle/chunk-1a0wnwna.js +0 -2
  322. package/bundle/chunk-1ddm2wxv.js +0 -2
  323. package/bundle/chunk-1fk4vsmc.js +0 -2
  324. package/bundle/chunk-1j2f9nd5.js +0 -2
  325. package/bundle/chunk-27s736an.js +0 -2
  326. package/bundle/chunk-2j17xrzj.js +0 -2
  327. package/bundle/chunk-2zca3nak.js +0 -2
  328. package/bundle/chunk-2zcvcfq4.js +0 -2
  329. package/bundle/chunk-38hwkfj5.js +0 -2
  330. package/bundle/chunk-3afqxvsn.js +0 -2
  331. package/bundle/chunk-3avc1ppg.js +0 -7
  332. package/bundle/chunk-3v4vtah1.js +0 -2
  333. package/bundle/chunk-3ypk0j2f.js +0 -2
  334. package/bundle/chunk-3z1y040p.js +0 -3
  335. package/bundle/chunk-4aykrj51.js +0 -9
  336. package/bundle/chunk-4dtbmqmq.js +0 -2
  337. package/bundle/chunk-4zjb6rps.js +0 -2
  338. package/bundle/chunk-5hkcjgwh.js +0 -2
  339. package/bundle/chunk-5snrz263.js +0 -2
  340. package/bundle/chunk-653c0mxr.js +0 -11
  341. package/bundle/chunk-6av7hrrk.js +0 -7
  342. package/bundle/chunk-6bswn7w5.js +0 -2
  343. package/bundle/chunk-6epghftw.js +0 -2
  344. package/bundle/chunk-6jjhxh8p.js +0 -2
  345. package/bundle/chunk-6ws7xyc5.js +0 -2
  346. package/bundle/chunk-7g28zhar.js +0 -2
  347. package/bundle/chunk-7v02b2ms.js +0 -2
  348. package/bundle/chunk-7vmp2034.js +0 -2
  349. package/bundle/chunk-7wxrypkr.js +0 -2
  350. package/bundle/chunk-8kk9gvdy.js +0 -2
  351. package/bundle/chunk-8ygpp4y3.js +0 -2
  352. package/bundle/chunk-95q60g1p.js +0 -2
  353. package/bundle/chunk-9mjbenja.js +0 -2
  354. package/bundle/chunk-9vn1gy8h.js +0 -2
  355. package/bundle/chunk-ajp3f08k.js +0 -2
  356. package/bundle/chunk-aptkpdkc.js +0 -2
  357. package/bundle/chunk-bky5a42k.js +0 -3
  358. package/bundle/chunk-bry94ar5.js +0 -2
  359. package/bundle/chunk-btzyvqkf.js +0 -2
  360. package/bundle/chunk-c94pjdfh.js +0 -2
  361. package/bundle/chunk-cct9ds5c.js +0 -2
  362. package/bundle/chunk-czn535v0.js +0 -2
  363. package/bundle/chunk-d7wd5hz1.js +0 -2
  364. package/bundle/chunk-d86cmjrp.js +0 -2
  365. package/bundle/chunk-dnq65xvn.js +0 -2
  366. package/bundle/chunk-dpqv8rtn.js +0 -2
  367. package/bundle/chunk-e9mh7s3z.js +0 -2
  368. package/bundle/chunk-ek2y5f6g.js +0 -2
  369. package/bundle/chunk-epdsay73.js +0 -2
  370. package/bundle/chunk-f89gntcy.js +0 -3
  371. package/bundle/chunk-ffnsn7tv.js +0 -2
  372. package/bundle/chunk-fkezc7ew.js +0 -2
  373. package/bundle/chunk-fsxddgj0.js +0 -2
  374. package/bundle/chunk-gbcsfg6v.js +0 -2
  375. package/bundle/chunk-gfmz85hp.js +0 -2
  376. package/bundle/chunk-gk63k4t6.js +0 -2
  377. package/bundle/chunk-j0vf8s12.js +0 -2
  378. package/bundle/chunk-j1bxt69x.js +0 -2
  379. package/bundle/chunk-jcem8s30.js +0 -2
  380. package/bundle/chunk-jjwjb9w0.js +0 -3
  381. package/bundle/chunk-jpham2a3.js +0 -2
  382. package/bundle/chunk-jzkymnr5.js +0 -2
  383. package/bundle/chunk-k0qtwnhb.js +0 -2
  384. package/bundle/chunk-k2rsky7z.js +0 -2
  385. package/bundle/chunk-kcetcysa.js +0 -2
  386. package/bundle/chunk-kjfc5v3s.js +0 -2
  387. package/bundle/chunk-kkvb2c2z.js +0 -8
  388. package/bundle/chunk-km2ayfyf.js +0 -2
  389. package/bundle/chunk-knrh89eb.js +0 -2
  390. package/bundle/chunk-ksqfjawv.js +0 -2
  391. package/bundle/chunk-mjhb1q0n.js +0 -3
  392. package/bundle/chunk-mxcger73.js +0 -2
  393. package/bundle/chunk-nazkrkeb.js +0 -2
  394. package/bundle/chunk-nk01s49e.js +0 -2
  395. package/bundle/chunk-ns8b7rx1.js +0 -2
  396. package/bundle/chunk-ny6vpkx2.js +0 -2
  397. package/bundle/chunk-q0dd3ak6.js +0 -3
  398. package/bundle/chunk-q2s057bm.js +0 -2
  399. package/bundle/chunk-q5cqg2c0.js +0 -28
  400. package/bundle/chunk-qk2wnp2x.js +0 -2
  401. package/bundle/chunk-r012q335.js +0 -3
  402. package/bundle/chunk-rbdjbgkb.js +0 -2
  403. package/bundle/chunk-rxjprhgh.js +0 -2
  404. package/bundle/chunk-s3w9bmze.js +0 -2
  405. package/bundle/chunk-s3zste1a.js +0 -2
  406. package/bundle/chunk-sbt7qmwm.js +0 -3
  407. package/bundle/chunk-sf6h44pb.js +0 -2
  408. package/bundle/chunk-sgvzxs7m.js +0 -2
  409. package/bundle/chunk-sp9bndyh.js +0 -2
  410. package/bundle/chunk-vavrczqm.js +0 -3
  411. package/bundle/chunk-vg4styg5.js +0 -2
  412. package/bundle/chunk-vh09hhcs.js +0 -2
  413. package/bundle/chunk-vhktpm0n.js +0 -2
  414. package/bundle/chunk-vzjcmwry.js +0 -14
  415. package/bundle/chunk-wtp0yvqw.js +0 -2
  416. package/bundle/chunk-xmzs7q66.js +0 -2
  417. package/bundle/chunk-xv80476w.js +0 -2
  418. package/bundle/chunk-yjvr0et1.js +0 -2
  419. package/bundle/chunk-zk8n8hnh.js +0 -3
  420. package/bundle/chunk-zx3kcfkj.js +0 -2
@@ -1,7 +1,7 @@
1
1
  // @bun
2
- import{Qq as k,Rq as C,Sq as t,Uq as V,Xq as B,Yq as A,Zq as H,ar as I,fr as o}from"./chunk-t488d66k.js";import{gr as w}from"./chunk-srf73nm4.js";import{tu as f}from"./chunk-r7xp0xcn.js";import{Dz as n}from"./chunk-6g3m7yxf.js";function RJ(...F){return F.reduce((J,Q)=>({...J,...Q!=null?Q:{}}),{})}function NJ({tools:F=[],providerToolNames:J,resolveProviderToolName:Q}){var W;let X={},Y={};for(let Z of F)if(Z.type==="provider"){let $=(W=Q==null?void 0:Q(Z))!=null?W:(Z.id in J)?J[Z.id]:void 0;if($==null)continue;X[Z.name]=$,Y[$]=Z.name}return{toProviderToolName:(Z)=>{var $;return($=X[Z])!=null?$:Z},toCustomToolName:(Z)=>{var $;return($=Y[Z])!=null?$:Z}}}async function VJ(F,J){if(F==null)return Promise.resolve();let Q=J==null?void 0:J.abortSignal;return new Promise((W,X)=>{if(Q==null?void 0:Q.aborted){X(m());return}let Y=setTimeout(()=>{Z(),W()},F),Z=()=>{clearTimeout(Y),Q==null||Q.removeEventListener("abort",$)},$=()=>{Z(),X(m())};Q==null||Q.addEventListener("abort",$)})}function m(){return new DOMException("Delay was aborted","AbortError")}var TJ=class{constructor(){this.status={type:"pending"},this._resolve=void 0,this._reject=void 0}get promise(){if(this._promise)return this._promise;return this._promise=new Promise((F,J)=>{if(this.status.type==="resolved")F(this.status.value);else if(this.status.type==="rejected")J(this.status.error);this._resolve=F,this._reject=J}),this._promise}resolve(F){var J;if(this.status={type:"resolved",value:F},this._promise)(J=this._resolve)==null||J.call(this,F)}reject(F){var J;if(this.status={type:"rejected",error:F},this._promise)(J=this._reject)==null||J.call(this,F)}isResolved(){return this.status.type==="resolved"}isRejected(){return this.status.type==="rejected"}isPending(){return this.status.type==="pending"}};function z(F){return Object.fromEntries([...F.headers])}var{btoa:GF,atob:CF}=globalThis;function _J(F){let J=F.replace(/-/g,"+").replace(/_/g,"/"),Q=CF(J);return Uint8Array.from(Q,(W)=>W.codePointAt(0))}function a(F){let J="";for(let Q=0;Q<F.length;Q++)J+=String.fromCodePoint(F[Q]);return GF(J)}function jJ(F){return F instanceof Uint8Array?a(F):F}function kJ(F){if(F.type==="url")return F.url;return`data:${F.mediaType};base64,${typeof F.data==="string"?F.data:a(F.data)}`}function bJ(F,J={}){let{useArrayBrackets:Q=!0}=J,W=new FormData;for(let[X,Y]of Object.entries(F)){if(Y==null)continue;if(Array.isArray(Y)){if(Y.length===1){W.append(X,Y[0]);continue}let Z=Q?`${X}[]`:X;for(let $ of Y)W.append(Z,$);continue}W.append(X,Y)}return W}var s="AI_DownloadError",r=`vercel.ai.error.${s}`,MF=Symbol.for(r),u,i,O=class extends(i=k,u=MF,i){constructor({url:F,statusCode:J,statusText:Q,cause:W,message:X=W==null?`Failed to download ${F}: ${J} ${Q}`:`Failed to download ${F}: ${W}`}){super({name:s,message:X,cause:W});this[u]=!0,this.url=F,this.statusCode=J,this.statusText=Q}static isInstance(F){return k.hasMarker(F,r)}},e=2147483648;async function KF({response:F,url:J,maxBytes:Q=e}){let W=F.headers.get("content-length");if(W!=null){let G=parseInt(W,10);if(!isNaN(G)&&G>Q)throw new O({url:J,message:`Download of ${J} exceeded maximum size of ${Q} bytes (Content-Length: ${G}).`})}let X=F.body;if(X==null)return new Uint8Array(0);let Y=X.getReader(),Z=[],$=0;try{while(!0){let{done:G,value:N}=await Y.read();if(G)break;if($+=N.length,$>Q)throw new O({url:J,message:`Download of ${J} exceeded maximum size of ${Q} bytes.`});Z.push(N)}}finally{try{await Y.cancel()}finally{Y.releaseLock()}}let U=new Uint8Array($),L=0;for(let G of Z)U.set(G,L),L+=G.length;return U}function p(F){let J;try{J=new URL(F)}catch(W){throw new O({url:F,message:`Invalid URL: ${F}`})}if(J.protocol==="data:")return;if(J.protocol!=="http:"&&J.protocol!=="https:")throw new O({url:F,message:`URL scheme must be http, https, or data, got ${J.protocol}`});let Q=J.hostname;if(!Q)throw new O({url:F,message:"URL must have a hostname"});if(Q==="localhost"||Q.endsWith(".local")||Q.endsWith(".localhost"))throw new O({url:F,message:`URL with hostname ${Q} is not allowed`});if(Q.startsWith("[")&&Q.endsWith("]")){let W=Q.slice(1,-1);if(qF(W))throw new O({url:F,message:`URL with IPv6 address ${Q} is not allowed`});return}if(FF(Q)){if(b(Q))throw new O({url:F,message:`URL with IP address ${Q} is not allowed`});return}}function FF(F){let J=F.split(".");if(J.length!==4)return!1;return J.every((Q)=>{let W=Number(Q);return Number.isInteger(W)&&W>=0&&W<=255&&String(W)===Q})}function b(F){let J=F.split(".").map(Number),[Q,W]=J;if(Q===0)return!0;if(Q===10)return!0;if(Q===127)return!0;if(Q===169&&W===254)return!0;if(Q===172&&W>=16&&W<=31)return!0;if(Q===192&&W===168)return!0;return!1}function qF(F){let J=F.toLowerCase();if(J==="::1")return!0;if(J==="::")return!0;if(J.startsWith("::ffff:")){let Q=J.slice(7);if(FF(Q))return b(Q);let W=Q.split(":");if(W.length===2){let X=parseInt(W[0],16),Y=parseInt(W[1],16);if(!isNaN(X)&&!isNaN(Y)){let Z=X>>8&255,$=X&255,U=Y>>8&255,L=Y&255;return b(`${Z}.${$}.${U}.${L}`)}}}if(J.startsWith("fc")||J.startsWith("fd"))return!0;if(J.startsWith("fe80"))return!0;return!1}async function gJ(F,J){var Q,W;p(F);try{let X=await fetch(F,{signal:J==null?void 0:J.abortSignal});if(X.redirected)p(X.url);if(!X.ok)throw new O({url:F,statusCode:X.status,statusText:X.statusText});let Y=await KF({response:X,url:F,maxBytes:(Q=J==null?void 0:J.maxBytes)!=null?Q:e}),Z=(W=X.headers.get("content-type"))!=null?W:void 0;return new Blob([Y],Z?{type:Z}:void 0)}catch(X){if(O.isInstance(X))throw X;throw new O({url:F,cause:X})}}var DF=({prefix:F,size:J=16,alphabet:Q="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:W="-"}={})=>{let X=()=>{let Y=Q.length,Z=Array(J);for(let $=0;$<J;$++)Z[$]=Q[Math.random()*Y|0];return Z.join("")};if(F==null)return X;if(Q.includes(W))throw new V({argument:"separator",message:`The separator "${W}" must not be part of the alphabet "${Q}".`});return()=>`${F}${W}${X()}`},vJ=DF();function yJ(F){if(F==null)return"unknown error";if(typeof F==="string")return F;if(F instanceof Error)return F.message;return JSON.stringify(F)}function R(F){return(F instanceof Error||F instanceof DOMException)&&(F.name==="AbortError"||F.name==="ResponseAborted"||F.name==="TimeoutError")}var OF=["fetch failed","failed to fetch"],IF=["ConnectionRefused","ConnectionClosed","FailedToOpenSocket","ECONNRESET","ECONNREFUSED","ETIMEDOUT","EPIPE"];function PF(F){if(!(F instanceof Error))return!1;let J=F.code;if(typeof J==="string"&&IF.includes(J))return!0;return!1}function JF({error:F,url:J,requestBodyValues:Q}){if(R(F))return F;if(F instanceof TypeError&&OF.includes(F.message.toLowerCase())){let W=F.cause;if(W!=null)return new C({message:`Cannot connect to API: ${W.message}`,cause:W,url:J,requestBodyValues:Q,isRetryable:!0})}if(PF(F))return new C({message:`Cannot connect to API: ${F.message}`,cause:F,url:J,requestBodyValues:Q,isRetryable:!0});return F}function QF(F=globalThis){var J,Q,W;if(F.window)return"runtime/browser";if((J=F.navigator)==null?void 0:J.userAgent)return`runtime/${F.navigator.userAgent.toLowerCase()}`;if((W=(Q=F.process)==null?void 0:Q.versions)==null?void 0:W.node)return`runtime/node.js/${F.process.version.substring(0)}`;if(F.EdgeRuntime)return"runtime/vercel-edge";return"runtime/unknown"}function zF(F){if(F==null)return{};let J={};if(F instanceof Headers)F.forEach((Q,W)=>{J[W.toLowerCase()]=Q});else{if(!Array.isArray(F))F=Object.entries(F);for(let[Q,W]of F)if(W!=null)J[Q.toLowerCase()]=W}return J}function WF(F,...J){let Q=new Headers(zF(F)),W=Q.get("user-agent")||"";return Q.set("user-agent",[W,...J].filter(Boolean).join(" ")),Object.fromEntries(Q.entries())}var XF="4.0.23",AF=()=>globalThis.fetch,uJ=async({url:F,headers:J={},successfulResponseHandler:Q,failedResponseHandler:W,abortSignal:X,fetch:Y=AF()})=>{try{let Z=await Y(F,{method:"GET",headers:WF(J,`ai-sdk/provider-utils/${XF}`,QF()),signal:X}),$=z(Z);if(!Z.ok){let U;try{U=await W({response:Z,url:F,requestBodyValues:{}})}catch(L){if(R(L)||C.isInstance(L))throw L;throw new C({message:"Failed to process error response",cause:L,statusCode:Z.status,url:F,responseHeaders:$,requestBodyValues:{}})}throw U.value}try{return await Q({response:Z,url:F,requestBodyValues:{}})}catch(U){if(U instanceof Error){if(R(U)||C.isInstance(U))throw U}throw new C({message:"Failed to process successful response",cause:U,statusCode:Z.status,url:F,responseHeaders:$,requestBodyValues:{}})}}catch(Z){throw JF({error:Z,url:F,requestBodyValues:{}})}};function iJ(F){return F!=null}function pJ({mediaType:F,url:J,supportedUrls:Q}){return J=J.toLowerCase(),F=F.toLowerCase(),Object.entries(Q).map(([W,X])=>{let Y=W.toLowerCase();return Y==="*"||Y==="*/*"?{mediaTypePrefix:"",regexes:X}:{mediaTypePrefix:Y.replace(/\*/,""),regexes:X}}).filter(({mediaTypePrefix:W})=>F.startsWith(W)).flatMap(({regexes:W})=>W).some((W)=>W.test(J))}function cJ({apiKey:F,environmentVariableName:J,apiKeyParameterName:Q="apiKey",description:W}){if(typeof F==="string")return F;if(F!=null)throw new A({message:`${W} API key must be a string.`});if(typeof process>"u")throw new A({message:`${W} API key is missing. Pass it using the '${Q}' parameter. Environment variables are not supported in this environment.`});if(F=process.env[J],F==null)throw new A({message:`${W} API key is missing. Pass it using the '${Q}' parameter or the ${J} environment variable.`});if(typeof F!=="string")throw new A({message:`${W} API key must be a string. The value of the ${J} environment variable is not a string.`});return F}function dJ({settingValue:F,environmentVariableName:J}){if(typeof F==="string")return F;if(F!=null||typeof process>"u")return;if(F=process.env[J],F==null||typeof F!=="string")return;return F}function fJ({settingValue:F,environmentVariableName:J,settingName:Q,description:W}){if(typeof F==="string")return F;if(F!=null)throw new H({message:`${W} setting must be a string.`});if(typeof process>"u")throw new H({message:`${W} setting is missing. Pass it using the '${Q}' parameter. Environment variables are not supported in this environment.`});if(F=process.env[J],F==null)throw new H({message:`${W} setting is missing. Pass it using the '${Q}' parameter or the ${J} environment variable.`});if(typeof F!=="string")throw new H({message:`${W} setting must be a string. The value of the ${J} environment variable is not a string.`});return F}function tJ(F){var J;let[Q,W=""]=F.toLowerCase().split("/");return(J={mpeg:"mp3","x-wav":"wav",opus:"ogg",mp4:"m4a","x-m4a":"m4a"}[W])!=null?J:W}var HF=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,BF=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function l(F){let J=JSON.parse(F);if(J===null||typeof J!=="object")return J;if(HF.test(F)===!1&&BF.test(F)===!1)return J;return RF(J)}function RF(F){let J=[F];while(J.length){let Q=J;J=[];for(let W of Q){if(Object.prototype.hasOwnProperty.call(W,"__proto__"))throw SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(W,"constructor")&&W.constructor!==null&&typeof W.constructor==="object"&&Object.prototype.hasOwnProperty.call(W.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let X in W){let Y=W[X];if(Y&&typeof Y==="object")J.push(Y)}}}return F}function x(F){let{stackTraceLimit:J}=Error;try{Error.stackTraceLimit=0}catch(Q){return l(F)}try{return l(F)}finally{Error.stackTraceLimit=J}}function v(F){if(F.type==="object"||Array.isArray(F.type)&&F.type.includes("object")){F.additionalProperties=!1;let{properties:Q}=F;if(Q!=null)for(let W of Object.keys(Q))Q[W]=P(Q[W])}if(F.items!=null)F.items=Array.isArray(F.items)?F.items.map(P):P(F.items);if(F.anyOf!=null)F.anyOf=F.anyOf.map(P);if(F.allOf!=null)F.allOf=F.allOf.map(P);if(F.oneOf!=null)F.oneOf=F.oneOf.map(P);let{definitions:J}=F;if(J!=null)for(let Q of Object.keys(J))J[Q]=P(J[Q]);return F}function P(F){if(typeof F==="boolean")return F;return v(F)}var NF=Symbol("Let zodToJsonSchema decide on which parser to use"),c={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},VF=(F)=>typeof F==="string"?{...c,name:F}:{...c,...F};function K(){return{}}function TF(F,J){var Q,W,X;let Y={type:"array"};if(((Q=F.type)==null?void 0:Q._def)&&((X=(W=F.type)==null?void 0:W._def)==null?void 0:X.typeName)!==w.ZodAny)Y.items=E(F.type._def,{...J,currentPath:[...J.currentPath,"items"]});if(F.minLength)Y.minItems=F.minLength.value;if(F.maxLength)Y.maxItems=F.maxLength.value;if(F.exactLength)Y.minItems=F.exactLength.value,Y.maxItems=F.exactLength.value;return Y}function _F(F){let J={type:"integer",format:"int64"};if(!F.checks)return J;for(let Q of F.checks)switch(Q.kind){case"min":if(Q.inclusive)J.minimum=Q.value;else J.exclusiveMinimum=Q.value;break;case"max":if(Q.inclusive)J.maximum=Q.value;else J.exclusiveMaximum=Q.value;break;case"multipleOf":J.multipleOf=Q.value;break}return J}function jF(){return{type:"boolean"}}function YF(F,J){return E(F.type._def,J)}var kF=(F,J)=>{return E(F.innerType._def,J)};function ZF(F,J,Q){let W=Q!=null?Q:J.dateStrategy;if(Array.isArray(W))return{anyOf:W.map((X,Y)=>ZF(F,J,X))};switch(W){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return bF(F)}}var bF=(F)=>{let J={type:"integer",format:"unix-time"};for(let Q of F.checks)switch(Q.kind){case"min":J.minimum=Q.value;break;case"max":J.maximum=Q.value;break}return J};function SF(F,J){return{...E(F.innerType._def,J),default:F.defaultValue()}}function gF(F,J){return J.effectStrategy==="input"?E(F.schema._def,J):K()}function xF(F){return{type:"string",enum:Array.from(F.values)}}var vF=(F)=>{if("type"in F&&F.type==="string")return!1;return"allOf"in F};function yF(F,J){let Q=[E(F.left._def,{...J,currentPath:[...J.currentPath,"allOf","0"]}),E(F.right._def,{...J,currentPath:[...J.currentPath,"allOf","1"]})].filter((X)=>!!X),W=[];return Q.forEach((X)=>{if(vF(X))W.push(...X.allOf);else{let Y=X;if("additionalProperties"in X&&X.additionalProperties===!1){let{additionalProperties:Z,...$}=X;Y=$}W.push(Y)}}),W.length?{allOf:W}:void 0}function hF(F){let J=typeof F.value;if(J!=="bigint"&&J!=="number"&&J!=="boolean"&&J!=="string")return{type:Array.isArray(F.value)?"array":"object"};return{type:J==="bigint"?"integer":J,const:F.value}}var _=void 0,q={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>{if(_===void 0)_=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u");return _},uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function $F(F,J){let Q={type:"string"};if(F.checks)for(let W of F.checks)switch(W.kind){case"min":Q.minLength=typeof Q.minLength==="number"?Math.max(Q.minLength,W.value):W.value;break;case"max":Q.maxLength=typeof Q.maxLength==="number"?Math.min(Q.maxLength,W.value):W.value;break;case"email":switch(J.emailStrategy){case"format:email":D(Q,"email",W.message,J);break;case"format:idn-email":D(Q,"idn-email",W.message,J);break;case"pattern:zod":M(Q,q.email,W.message,J);break}break;case"url":D(Q,"uri",W.message,J);break;case"uuid":D(Q,"uuid",W.message,J);break;case"regex":M(Q,W.regex,W.message,J);break;case"cuid":M(Q,q.cuid,W.message,J);break;case"cuid2":M(Q,q.cuid2,W.message,J);break;case"startsWith":M(Q,RegExp(`^${j(W.value,J)}`),W.message,J);break;case"endsWith":M(Q,RegExp(`${j(W.value,J)}$`),W.message,J);break;case"datetime":D(Q,"date-time",W.message,J);break;case"date":D(Q,"date",W.message,J);break;case"time":D(Q,"time",W.message,J);break;case"duration":D(Q,"duration",W.message,J);break;case"length":Q.minLength=typeof Q.minLength==="number"?Math.max(Q.minLength,W.value):W.value,Q.maxLength=typeof Q.maxLength==="number"?Math.min(Q.maxLength,W.value):W.value;break;case"includes":{M(Q,RegExp(j(W.value,J)),W.message,J);break}case"ip":{if(W.version!=="v6")D(Q,"ipv4",W.message,J);if(W.version!=="v4")D(Q,"ipv6",W.message,J);break}case"base64url":M(Q,q.base64url,W.message,J);break;case"jwt":M(Q,q.jwt,W.message,J);break;case"cidr":{if(W.version!=="v6")M(Q,q.ipv4Cidr,W.message,J);if(W.version!=="v4")M(Q,q.ipv6Cidr,W.message,J);break}case"emoji":M(Q,q.emoji(),W.message,J);break;case"ulid":{M(Q,q.ulid,W.message,J);break}case"base64":{switch(J.base64Strategy){case"format:binary":{D(Q,"binary",W.message,J);break}case"contentEncoding:base64":{Q.contentEncoding="base64";break}case"pattern:zod":{M(Q,q.base64,W.message,J);break}}break}case"nanoid":M(Q,q.nanoid,W.message,J);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return Q}function j(F,J){return J.patternStrategy==="escape"?uF(F):F}var mF=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function uF(F){let J="";for(let Q=0;Q<F.length;Q++){if(!mF.has(F[Q]))J+="\\";J+=F[Q]}return J}function D(F,J,Q,W){var X;if(F.format||((X=F.anyOf)==null?void 0:X.some((Y)=>Y.format))){if(!F.anyOf)F.anyOf=[];if(F.format)F.anyOf.push({format:F.format}),delete F.format;F.anyOf.push({format:J,...Q&&W.errorMessages&&{errorMessage:{format:Q}}})}else F.format=J}function M(F,J,Q,W){var X;if(F.pattern||((X=F.allOf)==null?void 0:X.some((Y)=>Y.pattern))){if(!F.allOf)F.allOf=[];if(F.pattern)F.allOf.push({pattern:F.pattern}),delete F.pattern;F.allOf.push({pattern:d(J,W),...Q&&W.errorMessages&&{errorMessage:{pattern:Q}}})}else F.pattern=d(J,W)}function d(F,J){var Q;if(!J.applyRegexFlags||!F.flags)return F.source;let W={i:F.flags.includes("i"),m:F.flags.includes("m"),s:F.flags.includes("s")},X=W.i?F.source.toLowerCase():F.source,Y="",Z=!1,$=!1,U=!1;for(let L=0;L<X.length;L++){if(Z){Y+=X[L],Z=!1;continue}if(W.i){if($){if(X[L].match(/[a-z]/)){if(U)Y+=X[L],Y+=`${X[L-2]}-${X[L]}`.toUpperCase(),U=!1;else if(X[L+1]==="-"&&((Q=X[L+2])==null?void 0:Q.match(/[a-z]/)))Y+=X[L],U=!0;else Y+=`${X[L]}${X[L].toUpperCase()}`;continue}}else if(X[L].match(/[a-z]/)){Y+=`[${X[L]}${X[L].toUpperCase()}]`;continue}}if(W.m){if(X[L]==="^"){Y+=`(^|(?<=[\r
2
+ import{$q as A,Tq as k,Uq as C,Vq as t,Xq as V,_q as B,ar as H,dr as I,ir as o}from"./chunk-5mec6cde.js";import{jr as w}from"./chunk-0mekr486.js";import{xu as f}from"./chunk-se195e52.js";import{Hz as n}from"./chunk-vw673y0t.js";function RJ(...F){return F.reduce((J,Q)=>({...J,...Q!=null?Q:{}}),{})}function NJ({tools:F=[],providerToolNames:J,resolveProviderToolName:Q}){var W;let X={},Y={};for(let Z of F)if(Z.type==="provider"){let $=(W=Q==null?void 0:Q(Z))!=null?W:(Z.id in J)?J[Z.id]:void 0;if($==null)continue;X[Z.name]=$,Y[$]=Z.name}return{toProviderToolName:(Z)=>{var $;return($=X[Z])!=null?$:Z},toCustomToolName:(Z)=>{var $;return($=Y[Z])!=null?$:Z}}}async function VJ(F,J){if(F==null)return Promise.resolve();let Q=J==null?void 0:J.abortSignal;return new Promise((W,X)=>{if(Q==null?void 0:Q.aborted){X(m());return}let Y=setTimeout(()=>{Z(),W()},F),Z=()=>{clearTimeout(Y),Q==null||Q.removeEventListener("abort",$)},$=()=>{Z(),X(m())};Q==null||Q.addEventListener("abort",$)})}function m(){return new DOMException("Delay was aborted","AbortError")}var TJ=class{constructor(){this.status={type:"pending"},this._resolve=void 0,this._reject=void 0}get promise(){if(this._promise)return this._promise;return this._promise=new Promise((F,J)=>{if(this.status.type==="resolved")F(this.status.value);else if(this.status.type==="rejected")J(this.status.error);this._resolve=F,this._reject=J}),this._promise}resolve(F){var J;if(this.status={type:"resolved",value:F},this._promise)(J=this._resolve)==null||J.call(this,F)}reject(F){var J;if(this.status={type:"rejected",error:F},this._promise)(J=this._reject)==null||J.call(this,F)}isResolved(){return this.status.type==="resolved"}isRejected(){return this.status.type==="rejected"}isPending(){return this.status.type==="pending"}};function z(F){return Object.fromEntries([...F.headers])}var{btoa:GF,atob:CF}=globalThis;function _J(F){let J=F.replace(/-/g,"+").replace(/_/g,"/"),Q=CF(J);return Uint8Array.from(Q,(W)=>W.codePointAt(0))}function a(F){let J="";for(let Q=0;Q<F.length;Q++)J+=String.fromCodePoint(F[Q]);return GF(J)}function jJ(F){return F instanceof Uint8Array?a(F):F}function kJ(F){if(F.type==="url")return F.url;return`data:${F.mediaType};base64,${typeof F.data==="string"?F.data:a(F.data)}`}function bJ(F,J={}){let{useArrayBrackets:Q=!0}=J,W=new FormData;for(let[X,Y]of Object.entries(F)){if(Y==null)continue;if(Array.isArray(Y)){if(Y.length===1){W.append(X,Y[0]);continue}let Z=Q?`${X}[]`:X;for(let $ of Y)W.append(Z,$);continue}W.append(X,Y)}return W}var s="AI_DownloadError",r=`vercel.ai.error.${s}`,MF=Symbol.for(r),u,i,O=class extends(i=k,u=MF,i){constructor({url:F,statusCode:J,statusText:Q,cause:W,message:X=W==null?`Failed to download ${F}: ${J} ${Q}`:`Failed to download ${F}: ${W}`}){super({name:s,message:X,cause:W});this[u]=!0,this.url=F,this.statusCode=J,this.statusText=Q}static isInstance(F){return k.hasMarker(F,r)}},e=2147483648;async function KF({response:F,url:J,maxBytes:Q=e}){let W=F.headers.get("content-length");if(W!=null){let G=parseInt(W,10);if(!isNaN(G)&&G>Q)throw new O({url:J,message:`Download of ${J} exceeded maximum size of ${Q} bytes (Content-Length: ${G}).`})}let X=F.body;if(X==null)return new Uint8Array(0);let Y=X.getReader(),Z=[],$=0;try{while(!0){let{done:G,value:N}=await Y.read();if(G)break;if($+=N.length,$>Q)throw new O({url:J,message:`Download of ${J} exceeded maximum size of ${Q} bytes.`});Z.push(N)}}finally{try{await Y.cancel()}finally{Y.releaseLock()}}let U=new Uint8Array($),L=0;for(let G of Z)U.set(G,L),L+=G.length;return U}function p(F){let J;try{J=new URL(F)}catch(W){throw new O({url:F,message:`Invalid URL: ${F}`})}if(J.protocol==="data:")return;if(J.protocol!=="http:"&&J.protocol!=="https:")throw new O({url:F,message:`URL scheme must be http, https, or data, got ${J.protocol}`});let Q=J.hostname;if(!Q)throw new O({url:F,message:"URL must have a hostname"});if(Q==="localhost"||Q.endsWith(".local")||Q.endsWith(".localhost"))throw new O({url:F,message:`URL with hostname ${Q} is not allowed`});if(Q.startsWith("[")&&Q.endsWith("]")){let W=Q.slice(1,-1);if(qF(W))throw new O({url:F,message:`URL with IPv6 address ${Q} is not allowed`});return}if(FF(Q)){if(b(Q))throw new O({url:F,message:`URL with IP address ${Q} is not allowed`});return}}function FF(F){let J=F.split(".");if(J.length!==4)return!1;return J.every((Q)=>{let W=Number(Q);return Number.isInteger(W)&&W>=0&&W<=255&&String(W)===Q})}function b(F){let J=F.split(".").map(Number),[Q,W]=J;if(Q===0)return!0;if(Q===10)return!0;if(Q===127)return!0;if(Q===169&&W===254)return!0;if(Q===172&&W>=16&&W<=31)return!0;if(Q===192&&W===168)return!0;return!1}function qF(F){let J=F.toLowerCase();if(J==="::1")return!0;if(J==="::")return!0;if(J.startsWith("::ffff:")){let Q=J.slice(7);if(FF(Q))return b(Q);let W=Q.split(":");if(W.length===2){let X=parseInt(W[0],16),Y=parseInt(W[1],16);if(!isNaN(X)&&!isNaN(Y)){let Z=X>>8&255,$=X&255,U=Y>>8&255,L=Y&255;return b(`${Z}.${$}.${U}.${L}`)}}}if(J.startsWith("fc")||J.startsWith("fd"))return!0;if(J.startsWith("fe80"))return!0;return!1}async function gJ(F,J){var Q,W;p(F);try{let X=await fetch(F,{signal:J==null?void 0:J.abortSignal});if(X.redirected)p(X.url);if(!X.ok)throw new O({url:F,statusCode:X.status,statusText:X.statusText});let Y=await KF({response:X,url:F,maxBytes:(Q=J==null?void 0:J.maxBytes)!=null?Q:e}),Z=(W=X.headers.get("content-type"))!=null?W:void 0;return new Blob([Y],Z?{type:Z}:void 0)}catch(X){if(O.isInstance(X))throw X;throw new O({url:F,cause:X})}}var DF=({prefix:F,size:J=16,alphabet:Q="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:W="-"}={})=>{let X=()=>{let Y=Q.length,Z=Array(J);for(let $=0;$<J;$++)Z[$]=Q[Math.random()*Y|0];return Z.join("")};if(F==null)return X;if(Q.includes(W))throw new V({argument:"separator",message:`The separator "${W}" must not be part of the alphabet "${Q}".`});return()=>`${F}${W}${X()}`},vJ=DF();function yJ(F){if(F==null)return"unknown error";if(typeof F==="string")return F;if(F instanceof Error)return F.message;return JSON.stringify(F)}function R(F){return(F instanceof Error||F instanceof DOMException)&&(F.name==="AbortError"||F.name==="ResponseAborted"||F.name==="TimeoutError")}var OF=["fetch failed","failed to fetch"],IF=["ConnectionRefused","ConnectionClosed","FailedToOpenSocket","ECONNRESET","ECONNREFUSED","ETIMEDOUT","EPIPE"];function PF(F){if(!(F instanceof Error))return!1;let J=F.code;if(typeof J==="string"&&IF.includes(J))return!0;return!1}function JF({error:F,url:J,requestBodyValues:Q}){if(R(F))return F;if(F instanceof TypeError&&OF.includes(F.message.toLowerCase())){let W=F.cause;if(W!=null)return new C({message:`Cannot connect to API: ${W.message}`,cause:W,url:J,requestBodyValues:Q,isRetryable:!0})}if(PF(F))return new C({message:`Cannot connect to API: ${F.message}`,cause:F,url:J,requestBodyValues:Q,isRetryable:!0});return F}function QF(F=globalThis){var J,Q,W;if(F.window)return"runtime/browser";if((J=F.navigator)==null?void 0:J.userAgent)return`runtime/${F.navigator.userAgent.toLowerCase()}`;if((W=(Q=F.process)==null?void 0:Q.versions)==null?void 0:W.node)return`runtime/node.js/${F.process.version.substring(0)}`;if(F.EdgeRuntime)return"runtime/vercel-edge";return"runtime/unknown"}function zF(F){if(F==null)return{};let J={};if(F instanceof Headers)F.forEach((Q,W)=>{J[W.toLowerCase()]=Q});else{if(!Array.isArray(F))F=Object.entries(F);for(let[Q,W]of F)if(W!=null)J[Q.toLowerCase()]=W}return J}function WF(F,...J){let Q=new Headers(zF(F)),W=Q.get("user-agent")||"";return Q.set("user-agent",[W,...J].filter(Boolean).join(" ")),Object.fromEntries(Q.entries())}var XF="4.0.23",AF=()=>globalThis.fetch,uJ=async({url:F,headers:J={},successfulResponseHandler:Q,failedResponseHandler:W,abortSignal:X,fetch:Y=AF()})=>{try{let Z=await Y(F,{method:"GET",headers:WF(J,`ai-sdk/provider-utils/${XF}`,QF()),signal:X}),$=z(Z);if(!Z.ok){let U;try{U=await W({response:Z,url:F,requestBodyValues:{}})}catch(L){if(R(L)||C.isInstance(L))throw L;throw new C({message:"Failed to process error response",cause:L,statusCode:Z.status,url:F,responseHeaders:$,requestBodyValues:{}})}throw U.value}try{return await Q({response:Z,url:F,requestBodyValues:{}})}catch(U){if(U instanceof Error){if(R(U)||C.isInstance(U))throw U}throw new C({message:"Failed to process successful response",cause:U,statusCode:Z.status,url:F,responseHeaders:$,requestBodyValues:{}})}}catch(Z){throw JF({error:Z,url:F,requestBodyValues:{}})}};function iJ(F){return F!=null}function pJ({mediaType:F,url:J,supportedUrls:Q}){return J=J.toLowerCase(),F=F.toLowerCase(),Object.entries(Q).map(([W,X])=>{let Y=W.toLowerCase();return Y==="*"||Y==="*/*"?{mediaTypePrefix:"",regexes:X}:{mediaTypePrefix:Y.replace(/\*/,""),regexes:X}}).filter(({mediaTypePrefix:W})=>F.startsWith(W)).flatMap(({regexes:W})=>W).some((W)=>W.test(J))}function cJ({apiKey:F,environmentVariableName:J,apiKeyParameterName:Q="apiKey",description:W}){if(typeof F==="string")return F;if(F!=null)throw new A({message:`${W} API key must be a string.`});if(typeof process>"u")throw new A({message:`${W} API key is missing. Pass it using the '${Q}' parameter. Environment variables are not supported in this environment.`});if(F=process.env[J],F==null)throw new A({message:`${W} API key is missing. Pass it using the '${Q}' parameter or the ${J} environment variable.`});if(typeof F!=="string")throw new A({message:`${W} API key must be a string. The value of the ${J} environment variable is not a string.`});return F}function dJ({settingValue:F,environmentVariableName:J}){if(typeof F==="string")return F;if(F!=null||typeof process>"u")return;if(F=process.env[J],F==null||typeof F!=="string")return;return F}function fJ({settingValue:F,environmentVariableName:J,settingName:Q,description:W}){if(typeof F==="string")return F;if(F!=null)throw new H({message:`${W} setting must be a string.`});if(typeof process>"u")throw new H({message:`${W} setting is missing. Pass it using the '${Q}' parameter. Environment variables are not supported in this environment.`});if(F=process.env[J],F==null)throw new H({message:`${W} setting is missing. Pass it using the '${Q}' parameter or the ${J} environment variable.`});if(typeof F!=="string")throw new H({message:`${W} setting must be a string. The value of the ${J} environment variable is not a string.`});return F}function tJ(F){var J;let[Q,W=""]=F.toLowerCase().split("/");return(J={mpeg:"mp3","x-wav":"wav",opus:"ogg",mp4:"m4a","x-m4a":"m4a"}[W])!=null?J:W}var HF=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,BF=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function l(F){let J=JSON.parse(F);if(J===null||typeof J!=="object")return J;if(HF.test(F)===!1&&BF.test(F)===!1)return J;return RF(J)}function RF(F){let J=[F];while(J.length){let Q=J;J=[];for(let W of Q){if(Object.prototype.hasOwnProperty.call(W,"__proto__"))throw SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(W,"constructor")&&W.constructor!==null&&typeof W.constructor==="object"&&Object.prototype.hasOwnProperty.call(W.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let X in W){let Y=W[X];if(Y&&typeof Y==="object")J.push(Y)}}}return F}function x(F){let{stackTraceLimit:J}=Error;try{Error.stackTraceLimit=0}catch(Q){return l(F)}try{return l(F)}finally{Error.stackTraceLimit=J}}function v(F){if(F.type==="object"||Array.isArray(F.type)&&F.type.includes("object")){F.additionalProperties=!1;let{properties:Q}=F;if(Q!=null)for(let W of Object.keys(Q))Q[W]=P(Q[W])}if(F.items!=null)F.items=Array.isArray(F.items)?F.items.map(P):P(F.items);if(F.anyOf!=null)F.anyOf=F.anyOf.map(P);if(F.allOf!=null)F.allOf=F.allOf.map(P);if(F.oneOf!=null)F.oneOf=F.oneOf.map(P);let{definitions:J}=F;if(J!=null)for(let Q of Object.keys(J))J[Q]=P(J[Q]);return F}function P(F){if(typeof F==="boolean")return F;return v(F)}var NF=Symbol("Let zodToJsonSchema decide on which parser to use"),c={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},VF=(F)=>typeof F==="string"?{...c,name:F}:{...c,...F};function K(){return{}}function TF(F,J){var Q,W,X;let Y={type:"array"};if(((Q=F.type)==null?void 0:Q._def)&&((X=(W=F.type)==null?void 0:W._def)==null?void 0:X.typeName)!==w.ZodAny)Y.items=E(F.type._def,{...J,currentPath:[...J.currentPath,"items"]});if(F.minLength)Y.minItems=F.minLength.value;if(F.maxLength)Y.maxItems=F.maxLength.value;if(F.exactLength)Y.minItems=F.exactLength.value,Y.maxItems=F.exactLength.value;return Y}function _F(F){let J={type:"integer",format:"int64"};if(!F.checks)return J;for(let Q of F.checks)switch(Q.kind){case"min":if(Q.inclusive)J.minimum=Q.value;else J.exclusiveMinimum=Q.value;break;case"max":if(Q.inclusive)J.maximum=Q.value;else J.exclusiveMaximum=Q.value;break;case"multipleOf":J.multipleOf=Q.value;break}return J}function jF(){return{type:"boolean"}}function YF(F,J){return E(F.type._def,J)}var kF=(F,J)=>{return E(F.innerType._def,J)};function ZF(F,J,Q){let W=Q!=null?Q:J.dateStrategy;if(Array.isArray(W))return{anyOf:W.map((X,Y)=>ZF(F,J,X))};switch(W){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return bF(F)}}var bF=(F)=>{let J={type:"integer",format:"unix-time"};for(let Q of F.checks)switch(Q.kind){case"min":J.minimum=Q.value;break;case"max":J.maximum=Q.value;break}return J};function SF(F,J){return{...E(F.innerType._def,J),default:F.defaultValue()}}function gF(F,J){return J.effectStrategy==="input"?E(F.schema._def,J):K()}function xF(F){return{type:"string",enum:Array.from(F.values)}}var vF=(F)=>{if("type"in F&&F.type==="string")return!1;return"allOf"in F};function yF(F,J){let Q=[E(F.left._def,{...J,currentPath:[...J.currentPath,"allOf","0"]}),E(F.right._def,{...J,currentPath:[...J.currentPath,"allOf","1"]})].filter((X)=>!!X),W=[];return Q.forEach((X)=>{if(vF(X))W.push(...X.allOf);else{let Y=X;if("additionalProperties"in X&&X.additionalProperties===!1){let{additionalProperties:Z,...$}=X;Y=$}W.push(Y)}}),W.length?{allOf:W}:void 0}function hF(F){let J=typeof F.value;if(J!=="bigint"&&J!=="number"&&J!=="boolean"&&J!=="string")return{type:Array.isArray(F.value)?"array":"object"};return{type:J==="bigint"?"integer":J,const:F.value}}var _=void 0,q={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>{if(_===void 0)_=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u");return _},uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function $F(F,J){let Q={type:"string"};if(F.checks)for(let W of F.checks)switch(W.kind){case"min":Q.minLength=typeof Q.minLength==="number"?Math.max(Q.minLength,W.value):W.value;break;case"max":Q.maxLength=typeof Q.maxLength==="number"?Math.min(Q.maxLength,W.value):W.value;break;case"email":switch(J.emailStrategy){case"format:email":D(Q,"email",W.message,J);break;case"format:idn-email":D(Q,"idn-email",W.message,J);break;case"pattern:zod":M(Q,q.email,W.message,J);break}break;case"url":D(Q,"uri",W.message,J);break;case"uuid":D(Q,"uuid",W.message,J);break;case"regex":M(Q,W.regex,W.message,J);break;case"cuid":M(Q,q.cuid,W.message,J);break;case"cuid2":M(Q,q.cuid2,W.message,J);break;case"startsWith":M(Q,RegExp(`^${j(W.value,J)}`),W.message,J);break;case"endsWith":M(Q,RegExp(`${j(W.value,J)}$`),W.message,J);break;case"datetime":D(Q,"date-time",W.message,J);break;case"date":D(Q,"date",W.message,J);break;case"time":D(Q,"time",W.message,J);break;case"duration":D(Q,"duration",W.message,J);break;case"length":Q.minLength=typeof Q.minLength==="number"?Math.max(Q.minLength,W.value):W.value,Q.maxLength=typeof Q.maxLength==="number"?Math.min(Q.maxLength,W.value):W.value;break;case"includes":{M(Q,RegExp(j(W.value,J)),W.message,J);break}case"ip":{if(W.version!=="v6")D(Q,"ipv4",W.message,J);if(W.version!=="v4")D(Q,"ipv6",W.message,J);break}case"base64url":M(Q,q.base64url,W.message,J);break;case"jwt":M(Q,q.jwt,W.message,J);break;case"cidr":{if(W.version!=="v6")M(Q,q.ipv4Cidr,W.message,J);if(W.version!=="v4")M(Q,q.ipv6Cidr,W.message,J);break}case"emoji":M(Q,q.emoji(),W.message,J);break;case"ulid":{M(Q,q.ulid,W.message,J);break}case"base64":{switch(J.base64Strategy){case"format:binary":{D(Q,"binary",W.message,J);break}case"contentEncoding:base64":{Q.contentEncoding="base64";break}case"pattern:zod":{M(Q,q.base64,W.message,J);break}}break}case"nanoid":M(Q,q.nanoid,W.message,J);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return Q}function j(F,J){return J.patternStrategy==="escape"?uF(F):F}var mF=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function uF(F){let J="";for(let Q=0;Q<F.length;Q++){if(!mF.has(F[Q]))J+="\\";J+=F[Q]}return J}function D(F,J,Q,W){var X;if(F.format||((X=F.anyOf)==null?void 0:X.some((Y)=>Y.format))){if(!F.anyOf)F.anyOf=[];if(F.format)F.anyOf.push({format:F.format}),delete F.format;F.anyOf.push({format:J,...Q&&W.errorMessages&&{errorMessage:{format:Q}}})}else F.format=J}function M(F,J,Q,W){var X;if(F.pattern||((X=F.allOf)==null?void 0:X.some((Y)=>Y.pattern))){if(!F.allOf)F.allOf=[];if(F.pattern)F.allOf.push({pattern:F.pattern}),delete F.pattern;F.allOf.push({pattern:d(J,W),...Q&&W.errorMessages&&{errorMessage:{pattern:Q}}})}else F.pattern=d(J,W)}function d(F,J){var Q;if(!J.applyRegexFlags||!F.flags)return F.source;let W={i:F.flags.includes("i"),m:F.flags.includes("m"),s:F.flags.includes("s")},X=W.i?F.source.toLowerCase():F.source,Y="",Z=!1,$=!1,U=!1;for(let L=0;L<X.length;L++){if(Z){Y+=X[L],Z=!1;continue}if(W.i){if($){if(X[L].match(/[a-z]/)){if(U)Y+=X[L],Y+=`${X[L-2]}-${X[L]}`.toUpperCase(),U=!1;else if(X[L+1]==="-"&&((Q=X[L+2])==null?void 0:Q.match(/[a-z]/)))Y+=X[L],U=!0;else Y+=`${X[L]}${X[L].toUpperCase()}`;continue}}else if(X[L].match(/[a-z]/)){Y+=`[${X[L]}${X[L].toUpperCase()}]`;continue}}if(W.m){if(X[L]==="^"){Y+=`(^|(?<=[\r
3
3
  ]))`;continue}else if(X[L]==="$"){Y+=`($|(?=[\r
4
4
  ]))`;continue}}if(W.s&&X[L]==="."){Y+=$?`${X[L]}\r
5
5
  `:`[${X[L]}\r
6
6
  ]`;continue}if(Y+=X[L],X[L]==="\\")Z=!0;else if($&&X[L]==="]")$=!1;else if(!$&&X[L]==="[")$=!0}try{new RegExp(Y)}catch(L){return console.warn(`Could not convert regex pattern at ${J.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),F.source}return Y}function LF(F,J){var Q,W,X,Y,Z,$;let U={type:"object",additionalProperties:(Q=E(F.valueType._def,{...J,currentPath:[...J.currentPath,"additionalProperties"]}))!=null?Q:J.allowedAdditionalProperties};if(((W=F.keyType)==null?void 0:W._def.typeName)===w.ZodString&&((X=F.keyType._def.checks)==null?void 0:X.length)){let{type:L,...G}=$F(F.keyType._def,J);return{...U,propertyNames:G}}else if(((Y=F.keyType)==null?void 0:Y._def.typeName)===w.ZodEnum)return{...U,propertyNames:{enum:F.keyType._def.values}};else if(((Z=F.keyType)==null?void 0:Z._def.typeName)===w.ZodBranded&&F.keyType._def.type._def.typeName===w.ZodString&&(($=F.keyType._def.type._def.checks)==null?void 0:$.length)){let{type:L,...G}=YF(F.keyType._def,J);return{...U,propertyNames:G}}return U}function iF(F,J){if(J.mapStrategy==="record")return LF(F,J);let Q=E(F.keyType._def,{...J,currentPath:[...J.currentPath,"items","items","0"]})||K(),W=E(F.valueType._def,{...J,currentPath:[...J.currentPath,"items","items","1"]})||K();return{type:"array",maxItems:125,items:{type:"array",items:[Q,W],minItems:2,maxItems:2}}}function pF(F){let J=F.values,W=Object.keys(F.values).filter((Y)=>{return typeof J[J[Y]]!=="number"}).map((Y)=>J[Y]),X=Array.from(new Set(W.map((Y)=>typeof Y)));return{type:X.length===1?X[0]==="string"?"string":"number":["string","number"],enum:W}}function lF(){return{not:K()}}function cF(){return{type:"null"}}var S={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function dF(F,J){let Q=F.options instanceof Map?Array.from(F.options.values()):F.options;if(Q.every((W)=>(W._def.typeName in S)&&(!W._def.checks||!W._def.checks.length))){let W=Q.reduce((X,Y)=>{let Z=S[Y._def.typeName];return Z&&!X.includes(Z)?[...X,Z]:X},[]);return{type:W.length>1?W:W[0]}}else if(Q.every((W)=>W._def.typeName==="ZodLiteral"&&!W.description)){let W=Q.reduce((X,Y)=>{let Z=typeof Y._def.value;switch(Z){case"string":case"number":case"boolean":return[...X,Z];case"bigint":return[...X,"integer"];case"object":if(Y._def.value===null)return[...X,"null"];case"symbol":case"undefined":case"function":default:return X}},[]);if(W.length===Q.length){let X=W.filter((Y,Z,$)=>$.indexOf(Y)===Z);return{type:X.length>1?X:X[0],enum:Q.reduce((Y,Z)=>{return Y.includes(Z._def.value)?Y:[...Y,Z._def.value]},[])}}}else if(Q.every((W)=>W._def.typeName==="ZodEnum"))return{type:"string",enum:Q.reduce((W,X)=>[...W,...X._def.values.filter((Y)=>!W.includes(Y))],[])};return nF(F,J)}var nF=(F,J)=>{let Q=(F.options instanceof Map?Array.from(F.options.values()):F.options).map((W,X)=>E(W._def,{...J,currentPath:[...J.currentPath,"anyOf",`${X}`]})).filter((W)=>!!W&&(!J.strictUnions||typeof W==="object"&&Object.keys(W).length>0));return Q.length?{anyOf:Q}:void 0};function fF(F,J){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(F.innerType._def.typeName)&&(!F.innerType._def.checks||!F.innerType._def.checks.length))return{type:[S[F.innerType._def.typeName],"null"]};let Q=E(F.innerType._def,{...J,currentPath:[...J.currentPath,"anyOf","0"]});return Q&&{anyOf:[Q,{type:"null"}]}}function tF(F){let J={type:"number"};if(!F.checks)return J;for(let Q of F.checks)switch(Q.kind){case"int":J.type="integer";break;case"min":if(Q.inclusive)J.minimum=Q.value;else J.exclusiveMinimum=Q.value;break;case"max":if(Q.inclusive)J.maximum=Q.value;else J.exclusiveMaximum=Q.value;break;case"multipleOf":J.multipleOf=Q.value;break}return J}function oF(F,J){let Q={type:"object",properties:{}},W=[],X=F.shape();for(let Z in X){let $=X[Z];if($===void 0||$._def===void 0)continue;let U=sF($),L=E($._def,{...J,currentPath:[...J.currentPath,"properties",Z],propertyPath:[...J.currentPath,"properties",Z]});if(L===void 0)continue;if(Q.properties[Z]=L,!U)W.push(Z)}if(W.length)Q.required=W;let Y=aF(F,J);if(Y!==void 0)Q.additionalProperties=Y;return Q}function aF(F,J){if(F.catchall._def.typeName!=="ZodNever")return E(F.catchall._def,{...J,currentPath:[...J.currentPath,"additionalProperties"]});switch(F.unknownKeys){case"passthrough":return J.allowedAdditionalProperties;case"strict":return J.rejectedAdditionalProperties;case"strip":return J.removeAdditionalStrategy==="strict"?J.allowedAdditionalProperties:J.rejectedAdditionalProperties}}function sF(F){try{return F.isOptional()}catch(J){return!0}}var rF=(F,J)=>{var Q;if(J.currentPath.toString()===((Q=J.propertyPath)==null?void 0:Q.toString()))return E(F.innerType._def,J);let W=E(F.innerType._def,{...J,currentPath:[...J.currentPath,"anyOf","1"]});return W?{anyOf:[{not:K()},W]}:K()},eF=(F,J)=>{if(J.pipeStrategy==="input")return E(F.in._def,J);else if(J.pipeStrategy==="output")return E(F.out._def,J);let Q=E(F.in._def,{...J,currentPath:[...J.currentPath,"allOf","0"]}),W=E(F.out._def,{...J,currentPath:[...J.currentPath,"allOf",Q?"1":"0"]});return{allOf:[Q,W].filter((X)=>X!==void 0)}};function FJ(F,J){return E(F.type._def,J)}function JJ(F,J){let W={type:"array",uniqueItems:!0,items:E(F.valueType._def,{...J,currentPath:[...J.currentPath,"items"]})};if(F.minSize)W.minItems=F.minSize.value;if(F.maxSize)W.maxItems=F.maxSize.value;return W}function QJ(F,J){if(F.rest)return{type:"array",minItems:F.items.length,items:F.items.map((Q,W)=>E(Q._def,{...J,currentPath:[...J.currentPath,"items",`${W}`]})).reduce((Q,W)=>W===void 0?Q:[...Q,W],[]),additionalItems:E(F.rest._def,{...J,currentPath:[...J.currentPath,"additionalItems"]})};else return{type:"array",minItems:F.items.length,maxItems:F.items.length,items:F.items.map((Q,W)=>E(Q._def,{...J,currentPath:[...J.currentPath,"items",`${W}`]})).reduce((Q,W)=>W===void 0?Q:[...Q,W],[])}}function WJ(){return{not:K()}}function XJ(){return K()}var YJ=(F,J)=>{return E(F.innerType._def,J)},ZJ=(F,J,Q)=>{switch(J){case w.ZodString:return $F(F,Q);case w.ZodNumber:return tF(F);case w.ZodObject:return oF(F,Q);case w.ZodBigInt:return _F(F);case w.ZodBoolean:return jF();case w.ZodDate:return ZF(F,Q);case w.ZodUndefined:return WJ();case w.ZodNull:return cF();case w.ZodArray:return TF(F,Q);case w.ZodUnion:case w.ZodDiscriminatedUnion:return dF(F,Q);case w.ZodIntersection:return yF(F,Q);case w.ZodTuple:return QJ(F,Q);case w.ZodRecord:return LF(F,Q);case w.ZodLiteral:return hF(F);case w.ZodEnum:return xF(F);case w.ZodNativeEnum:return pF(F);case w.ZodNullable:return fF(F,Q);case w.ZodOptional:return rF(F,Q);case w.ZodMap:return iF(F,Q);case w.ZodSet:return JJ(F,Q);case w.ZodLazy:return()=>F.getter()._def;case w.ZodPromise:return FJ(F,Q);case w.ZodNaN:case w.ZodNever:return lF();case w.ZodEffects:return gF(F,Q);case w.ZodAny:return K();case w.ZodUnknown:return XJ();case w.ZodDefault:return SF(F,Q);case w.ZodBranded:return YF(F,Q);case w.ZodReadonly:return YJ(F,Q);case w.ZodCatch:return kF(F,Q);case w.ZodPipeline:return eF(F,Q);case w.ZodFunction:case w.ZodVoid:case w.ZodSymbol:return;default:return((W)=>{return})(J)}},$J=(F,J)=>{let Q=0;for(;Q<F.length&&Q<J.length;Q++)if(F[Q]!==J[Q])break;return[(F.length-Q).toString(),...J.slice(Q)].join("/")};function E(F,J,Q=!1){var W;let X=J.seen.get(F);if(J.override){let U=(W=J.override)==null?void 0:W.call(J,F,J,X,Q);if(U!==NF)return U}if(X&&!Q){let U=LJ(X,J);if(U!==void 0)return U}let Y={def:F,path:J.currentPath,jsonSchema:void 0};J.seen.set(F,Y);let Z=ZJ(F,F.typeName,J),$=typeof Z==="function"?E(Z(),J):Z;if($)UJ(F,J,$);if(J.postProcess){let U=J.postProcess($,F,J);return Y.jsonSchema=$,U}return Y.jsonSchema=$,$}var LJ=(F,J)=>{switch(J.$refStrategy){case"root":return{$ref:F.path.join("/")};case"relative":return{$ref:$J(J.currentPath,F.path)};case"none":case"seen":{if(F.path.length<J.currentPath.length&&F.path.every((Q,W)=>J.currentPath[W]===Q))return console.warn(`Recursive reference detected at ${J.currentPath.join("/")}! Defaulting to any`),K();return J.$refStrategy==="seen"?K():void 0}}},UJ=(F,J,Q)=>{if(F.description)Q.description=F.description;return Q},wJ=(F)=>{let J=VF(F),Q=J.name!==void 0?[...J.basePath,J.definitionPath,J.name]:J.basePath;return{...J,currentPath:Q,propertyPath:void 0,seen:new Map(Object.entries(J.definitions).map(([W,X])=>[X._def,{def:X._def,path:[...J.basePath,J.definitionPath,W],jsonSchema:void 0}]))}},EJ=(F,J)=>{var Q;let W=wJ(J),X=typeof J==="object"&&J.definitions?Object.entries(J.definitions).reduce((L,[G,N])=>{var h;return{...L,[G]:(h=E(N._def,{...W,currentPath:[...W.basePath,W.definitionPath,G]},!0))!=null?h:K()}},{}):void 0,Y=typeof J==="string"?J:(J==null?void 0:J.nameStrategy)==="title"?void 0:J==null?void 0:J.name,Z=(Q=E(F._def,Y===void 0?W:{...W,currentPath:[...W.basePath,W.definitionPath,Y]},!1))!=null?Q:K(),$=typeof J==="object"&&J.name!==void 0&&J.nameStrategy==="title"?J.name:void 0;if($!==void 0)Z.title=$;let U=Y===void 0?X?{...Z,[W.definitionPath]:X}:Z:{$ref:[...W.$refStrategy==="relative"?[]:W.basePath,W.definitionPath,Y].join("/"),[W.definitionPath]:{...X,[Y]:Z}};return U.$schema="http://json-schema.org/draft-07/schema#",U},g=Symbol.for("vercel.ai.schema");function JQ(F){let J;return()=>{if(J==null)J=F();return J}}function T(F,{validate:J}={}){return{[g]:!0,_type:void 0,get jsonSchema(){if(typeof F==="function")F=F();return F},validate:J}}function GJ(F){return typeof F==="object"&&F!==null&&g in F&&F[g]===!0&&"jsonSchema"in F&&"validate"in F}function CJ(F){return F==null?T({properties:{},additionalProperties:!1}):GJ(F)?F:("~standard"in F)?F["~standard"].vendor==="zod"?OJ(F):MJ(F):F()}function MJ(F){return T(()=>v(F["~standard"].jsonSchema.input({target:"draft-07"})),{validate:async(J)=>{let Q=await F["~standard"].validate(J);return"value"in Q?{success:!0,value:Q.value}:{success:!1,error:new I({value:J,cause:Q.issues})}}})}function KJ(F,J){var Q;let W=(Q=J==null?void 0:J.useReferences)!=null?Q:!1;return T(()=>EJ(F,{$refStrategy:W?"root":"none"}),{validate:async(X)=>{let Y=await F.safeParseAsync(X);return Y.success?{success:!0,value:Y.data}:{success:!1,error:Y.error}}})}function qJ(F,J){var Q;let W=(Q=J==null?void 0:J.useReferences)!=null?Q:!1;return T(()=>v(n(F,{target:"draft-7",io:"input",reused:W?"ref":"inline"})),{validate:async(X)=>{let Y=await f(F,X);return Y.success?{success:!0,value:Y.data}:{success:!1,error:Y.error}}})}function DJ(F){return"_zod"in F}function OJ(F,J){if(DJ(F))return qJ(F,J);else return KJ(F,J)}async function IJ({value:F,schema:J,context:Q}){let W=await y({value:F,schema:J,context:Q});if(!W.success)throw I.wrap({value:F,cause:W.error,context:Q});return W.value}async function y({value:F,schema:J,context:Q}){let W=CJ(J);try{if(W.validate==null)return{success:!0,value:F,rawValue:F};let X=await W.validate(F);if(X.success)return{success:!0,value:X.value,rawValue:F};return{success:!1,error:I.wrap({value:F,cause:X.error,context:Q}),rawValue:F}}catch(X){return{success:!1,error:I.wrap({value:F,cause:X,context:Q}),rawValue:F}}}async function PJ({text:F,schema:J}){try{let Q=x(F);if(J==null)return Q;return IJ({value:Q,schema:J})}catch(Q){if(B.isInstance(Q)||I.isInstance(Q))throw Q;throw new B({text:F,cause:Q})}}async function UF({text:F,schema:J}){try{let Q=x(F);if(J==null)return{success:!0,value:Q,rawValue:Q};return await y({value:Q,schema:J})}catch(Q){return{success:!1,error:B.isInstance(Q)?Q:new B({text:F,cause:Q}),rawValue:void 0}}}function QQ(F){try{return x(F),!0}catch(J){return!1}}function zJ({stream:F,schema:J}){return F.pipeThrough(new TextDecoderStream).pipeThrough(new o).pipeThrough(new TransformStream({async transform({data:Q},W){if(Q==="[DONE]")return;W.enqueue(await UF({text:Q,schema:J}))}}))}async function YQ({provider:F,providerOptions:J,schema:Q}){if((J==null?void 0:J[F])==null)return;let W=await y({value:J[F],schema:Q});if(!W.success)throw new V({argument:"providerOptions",message:`invalid ${F} provider options`,cause:W.error});return W.value}var AJ=()=>globalThis.fetch,$Q=async({url:F,headers:J,body:Q,failedResponseHandler:W,successfulResponseHandler:X,abortSignal:Y,fetch:Z})=>wF({url:F,headers:{"Content-Type":"application/json",...J},body:{content:JSON.stringify(Q),values:Q},failedResponseHandler:W,successfulResponseHandler:X,abortSignal:Y,fetch:Z}),LQ=async({url:F,headers:J,formData:Q,failedResponseHandler:W,successfulResponseHandler:X,abortSignal:Y,fetch:Z})=>wF({url:F,headers:J,body:{content:Q,values:Object.fromEntries(Q.entries())},failedResponseHandler:W,successfulResponseHandler:X,abortSignal:Y,fetch:Z}),wF=async({url:F,headers:J={},body:Q,successfulResponseHandler:W,failedResponseHandler:X,abortSignal:Y,fetch:Z=AJ()})=>{try{let $=await Z(F,{method:"POST",headers:WF(J,`ai-sdk/provider-utils/${XF}`,QF()),body:Q.content,signal:Y}),U=z($);if(!$.ok){let L;try{L=await X({response:$,url:F,requestBodyValues:Q.values})}catch(G){if(R(G)||C.isInstance(G))throw G;throw new C({message:"Failed to process error response",cause:G,statusCode:$.status,url:F,responseHeaders:U,requestBodyValues:Q.values})}throw L.value}try{return await W({response:$,url:F,requestBodyValues:Q.values})}catch(L){if(L instanceof Error){if(R(L)||C.isInstance(L))throw L}throw new C({message:"Failed to process successful response",cause:L,statusCode:$.status,url:F,responseHeaders:U,requestBodyValues:Q.values})}}catch($){throw JF({error:$,url:F,requestBodyValues:Q.values})}};function EF(F){return F}function UQ(F){return{...F,type:"dynamic"}}function wQ({id:F,inputSchema:J}){return({execute:Q,outputSchema:W,needsApproval:X,toModelOutput:Y,onInputStart:Z,onInputDelta:$,onInputAvailable:U,...L})=>EF({type:"provider",id:F,args:L,inputSchema:J,outputSchema:W,execute:Q,needsApproval:X,toModelOutput:Y,onInputStart:Z,onInputDelta:$,onInputAvailable:U})}function EQ({id:F,inputSchema:J,outputSchema:Q,supportsDeferredResults:W}){return({execute:X,needsApproval:Y,toModelOutput:Z,onInputStart:$,onInputDelta:U,onInputAvailable:L,...G})=>EF({type:"provider",id:F,args:G,inputSchema:J,outputSchema:Q,execute:X,needsApproval:Y,toModelOutput:Z,onInputStart:$,onInputDelta:U,onInputAvailable:L,supportsDeferredResults:W})}async function GQ(F){if(typeof F==="function")F=F();return Promise.resolve(F)}var MQ=({errorSchema:F,errorToMessage:J,isRetryable:Q})=>async({response:W,url:X,requestBodyValues:Y})=>{let Z=await W.text(),$=z(W);if(Z.trim()==="")return{responseHeaders:$,value:new C({message:W.statusText,url:X,requestBodyValues:Y,statusCode:W.status,responseHeaders:$,responseBody:Z,isRetryable:Q==null?void 0:Q(W)})};try{let U=await PJ({text:Z,schema:F});return{responseHeaders:$,value:new C({message:J(U),url:X,requestBodyValues:Y,statusCode:W.status,responseHeaders:$,responseBody:Z,data:U,isRetryable:Q==null?void 0:Q(W,U)})}}catch(U){return{responseHeaders:$,value:new C({message:W.statusText,url:X,requestBodyValues:Y,statusCode:W.status,responseHeaders:$,responseBody:Z,isRetryable:Q==null?void 0:Q(W)})}}},KQ=(F)=>async({response:J})=>{let Q=z(J);if(J.body==null)throw new t({});return{responseHeaders:Q,value:zJ({stream:J.body,schema:F})}},qQ=(F)=>async({response:J,url:Q,requestBodyValues:W})=>{let X=await J.text(),Y=await UF({text:X,schema:F}),Z=z(J);if(!Y.success)throw new C({message:"Invalid JSON response",cause:Y.error,statusCode:J.status,responseHeaders:Z,responseBody:X,url:Q,requestBodyValues:W});return{responseHeaders:Z,value:Y.value,rawValue:Y.rawValue}},DQ=()=>async({response:F,url:J,requestBodyValues:Q})=>{let W=z(F);if(!F.body)throw new C({message:"Response body is empty",url:J,requestBodyValues:Q,statusCode:F.status,responseHeaders:W,responseBody:void 0});try{let X=await F.arrayBuffer();return{responseHeaders:W,value:new Uint8Array(X)}}catch(X){throw new C({message:"Failed to read response as array buffer",url:J,requestBodyValues:Q,statusCode:F.status,responseHeaders:W,responseBody:void 0,cause:X})}},OQ=()=>async({response:F,url:J,requestBodyValues:Q})=>{let W=z(F),X=await F.text();return{responseHeaders:W,value:new C({message:F.statusText,url:J,requestBodyValues:Q,statusCode:F.status,responseHeaders:W,responseBody:X})}};function IQ(F){let J=F.indexOf(".");return J===-1?F:F.slice(0,J)}function PQ(F){return F==null?void 0:F.replace(/\/$/,"")}function HJ(F){return F!=null&&typeof F[Symbol.asyncIterator]==="function"}async function*zQ({execute:F,input:J,options:Q}){let W=F(J,Q);if(HJ(W)){let X;for await(let Y of W)X=Y,yield{type:"preliminary",output:Y};yield{type:"final",output:X}}else yield{type:"final",output:await W}}
7
- export{RJ as Pp,NJ as Qp,VJ as Rp,TJ as Sp,z as Tp,_J as Up,a as Vp,jJ as Wp,kJ as Xp,bJ as Yp,O as Zp,e as _p,KF as $p,p as aq,gJ as bq,DF as cq,vJ as dq,yJ as eq,R as fq,QF as gq,zF as hq,WF as iq,uJ as jq,iJ as kq,pJ as lq,cJ as mq,dJ as nq,fJ as oq,tJ as pq,JQ as qq,T as rq,CJ as sq,OJ as tq,IJ as uq,y as vq,PJ as wq,UF as xq,QQ as yq,zJ as zq,YQ as Aq,$Q as Bq,LQ as Cq,EF as Dq,UQ as Eq,wQ as Fq,EQ as Gq,GQ as Hq,MQ as Iq,KQ as Jq,qQ as Kq,DQ as Lq,OQ as Mq,IQ as Nq,PQ as Oq,zQ as Pq};
7
+ export{RJ as Sp,NJ as Tp,VJ as Up,TJ as Vp,z as Wp,_J as Xp,a as Yp,jJ as Zp,kJ as _p,bJ as $p,O as aq,e as bq,KF as cq,p as dq,gJ as eq,DF as fq,vJ as gq,yJ as hq,R as iq,QF as jq,zF as kq,WF as lq,uJ as mq,iJ as nq,pJ as oq,cJ as pq,dJ as qq,fJ as rq,tJ as sq,JQ as tq,T as uq,CJ as vq,OJ as wq,IJ as xq,y as yq,PJ as zq,UF as Aq,QQ as Bq,zJ as Cq,YQ as Dq,$Q as Eq,LQ as Fq,EF as Gq,UQ as Hq,wQ as Iq,EQ as Jq,GQ as Kq,MQ as Lq,KQ as Mq,qQ as Nq,DQ as Oq,OQ as Pq,IQ as Qq,PQ as Rq,zQ as Sq};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{mr as a}from"./chunk-x3931we7.js";import"./chunk-s2za1y84.js";export default a();
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Bf as a}from"./chunk-25zkavr0.js";import"./chunk-tfggzzqw.js";import"./chunk-nfg7nt13.js";import"./chunk-ze00x1xb.js";import"./chunk-s2za1y84.js";export{a as default};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Eh as I,Fh as B,Gh as Y,Hh as Z,Ih as j,Jh as F,Kh as K,Mh as U,Nh as V,Oh as W}from"./chunk-p54bzjtv.js";var N=class extends F{async evalCodeAsync(b,q="eval.js",D){let w=D===void 0?1:0,G=j(D),$=0;try{$=await this.memory.newHeapCharPointer(b).consume((X)=>this.ffi.QTS_Eval_MaybeAsync(this.ctx.value,X.value.ptr,X.value.strlen,q,w,G))}catch(X){throw this.runtime.debugLog("QTS_Eval_MaybeAsync threw",X),X}let E=this.ffi.QTS_ResolveException(this.ctx.value,$);return E?(this.ffi.QTS_FreeValuePointer(this.ctx.value,$),this.fail(this.memory.heapValueHandle(E))):this.success(this.memory.heapValueHandle($))}newAsyncifiedFunction(b,q){return this.newFunction(b,q)}},O=class extends K{constructor(b){super(b)}newContext(b={}){let q=Z(b.intrinsics),D=new B(this.ffi.QTS_NewContext(this.rt.value,q),void 0,(G)=>{this.contextMap.delete(G),this.callbacks.deleteContext(G),this.ffi.QTS_FreeContext(G)}),w=new N({module:this.module,ctx:D,ffi:this.ffi,rt:this.rt,ownedLifetimes:[],runtime:this,callbacks:this.callbacks});return this.contextMap.set(D.value,w),w}setModuleLoader(b,q){super.setModuleLoader(b,q)}setMaxStackSize(b){return super.setMaxStackSize(b)}},z=class extends W{constructor(b,q){super(b,q);this.ffi=q,this.module=b}newRuntime(b={}){let q=new B(this.ffi.QTS_NewRuntime(),void 0,(w)=>{this.callbacks.deleteRuntime(w),this.ffi.QTS_FreeRuntime(w)}),D=new O({module:this.module,ffi:this.ffi,rt:q,callbacks:this.callbacks});return U(D,b),b.moduleLoader&&D.setModuleLoader(b.moduleLoader),D}newContext(b={}){let q=this.newRuntime(),D=b.ownedLifetimes?b.ownedLifetimes.concat([q]):[q],w=q.newContext({...b,ownedLifetimes:D});return q.context=w,w}evalCode(){throw new I("QuickJSWASMModuleAsyncify.evalCode: use evalCodeAsync instead")}evalCodeAsync(b,q){return Y.withScopeAsync(async(D)=>{let w=D.manage(this.newContext());V(w.runtime,q);let G=await w.evalCodeAsync(b,"eval.js");if(q.memoryLimitBytes!==void 0&&w.runtime.setMemoryLimit(-1),G.error)throw w.dump(D.manage(G.error));return w.dump(D.manage(G.value))})}};
3
- export{z as Dh};
2
+ import{Gh as I,Hh as B,Ih as Y,Jh as Z,Kh as j,Lh as F,Mh as K,Oh as U,Ph as V,Qh as W}from"./chunk-h56jxxvj.js";var N=class extends F{async evalCodeAsync(b,q="eval.js",D){let w=D===void 0?1:0,G=j(D),$=0;try{$=await this.memory.newHeapCharPointer(b).consume((X)=>this.ffi.QTS_Eval_MaybeAsync(this.ctx.value,X.value.ptr,X.value.strlen,q,w,G))}catch(X){throw this.runtime.debugLog("QTS_Eval_MaybeAsync threw",X),X}let E=this.ffi.QTS_ResolveException(this.ctx.value,$);return E?(this.ffi.QTS_FreeValuePointer(this.ctx.value,$),this.fail(this.memory.heapValueHandle(E))):this.success(this.memory.heapValueHandle($))}newAsyncifiedFunction(b,q){return this.newFunction(b,q)}},O=class extends K{constructor(b){super(b)}newContext(b={}){let q=Z(b.intrinsics),D=new B(this.ffi.QTS_NewContext(this.rt.value,q),void 0,(G)=>{this.contextMap.delete(G),this.callbacks.deleteContext(G),this.ffi.QTS_FreeContext(G)}),w=new N({module:this.module,ctx:D,ffi:this.ffi,rt:this.rt,ownedLifetimes:[],runtime:this,callbacks:this.callbacks});return this.contextMap.set(D.value,w),w}setModuleLoader(b,q){super.setModuleLoader(b,q)}setMaxStackSize(b){return super.setMaxStackSize(b)}},z=class extends W{constructor(b,q){super(b,q);this.ffi=q,this.module=b}newRuntime(b={}){let q=new B(this.ffi.QTS_NewRuntime(),void 0,(w)=>{this.callbacks.deleteRuntime(w),this.ffi.QTS_FreeRuntime(w)}),D=new O({module:this.module,ffi:this.ffi,rt:q,callbacks:this.callbacks});return U(D,b),b.moduleLoader&&D.setModuleLoader(b.moduleLoader),D}newContext(b={}){let q=this.newRuntime(),D=b.ownedLifetimes?b.ownedLifetimes.concat([q]):[q],w=q.newContext({...b,ownedLifetimes:D});return q.context=w,w}evalCode(){throw new I("QuickJSWASMModuleAsyncify.evalCode: use evalCodeAsync instead")}evalCodeAsync(b,q){return Y.withScopeAsync(async(D)=>{let w=D.manage(this.newContext());V(w.runtime,q);let G=await w.evalCodeAsync(b,"eval.js");if(q.memoryLimitBytes!==void 0&&w.runtime.setMemoryLimit(-1),G.error)throw w.dump(D.manage(G.error));return w.dump(D.manage(G.value))})}};
3
+ export{z as Fh};
@@ -1,8 +1,8 @@
1
1
  // @bun
2
- import{Qq as j,Rq as M,Sq as f,Uq as N,Xq as H,Yq as z,Zq as A,ar as I,fr as t}from"./chunk-t488d66k.js";import{gr as U}from"./chunk-srf73nm4.js";import{tu as n}from"./chunk-r7xp0xcn.js";import{Dz as d}from"./chunk-6g3m7yxf.js";function NJ(...F){return F.reduce((J,Q)=>({...J,...Q!=null?Q:{}}),{})}function VJ({tools:F=[],providerToolNames:J,resolveProviderToolName:Q}){var W;let X={},Y={};for(let Z of F)if(Z.type==="provider"){let $=(W=Q==null?void 0:Q(Z))!=null?W:(Z.id in J)?J[Z.id]:void 0;if($==null)continue;X[Z.name]=$,Y[$]=Z.name}return{toProviderToolName:(Z)=>{var $;return($=X[Z])!=null?$:Z},toCustomToolName:(Z)=>{var $;return($=Y[Z])!=null?$:Z}}}function B(F){return Object.fromEntries([...F.headers])}var{btoa:$F,atob:LF}=globalThis;function TJ(F){let J=F.replace(/-/g,"+").replace(/_/g,"/"),Q=LF(J);return Uint8Array.from(Q,(W)=>W.codePointAt(0))}function o(F){let J="";for(let Q=0;Q<F.length;Q++)J+=String.fromCodePoint(F[Q]);return $F(J)}function _J(F){return F instanceof Uint8Array?o(F):F}function jJ(F){if(F.type==="url")return F.url;return`data:${F.mediaType};base64,${typeof F.data==="string"?F.data:o(F.data)}`}function kJ(F,J={}){let{useArrayBrackets:Q=!0}=J,W=new FormData;for(let[X,Y]of Object.entries(F)){if(Y==null)continue;if(Array.isArray(Y)){if(Y.length===1){W.append(X,Y[0]);continue}let Z=Q?`${X}[]`:X;for(let $ of Y)W.append(Z,$);continue}W.append(X,Y)}return W}var a="AI_DownloadError",s=`vercel.ai.error.${a}`,UF=Symbol.for(s),m,u,O=class extends(u=j,m=UF,u){constructor({url:F,statusCode:J,statusText:Q,cause:W,message:X=W==null?`Failed to download ${F}: ${J} ${Q}`:`Failed to download ${F}: ${W}`}){super({name:a,message:X,cause:W});this[m]=!0,this.url=F,this.statusCode=J,this.statusText=Q}static isInstance(F){return j.hasMarker(F,s)}},r=2147483648;async function wF({response:F,url:J,maxBytes:Q=r}){let W=F.headers.get("content-length");if(W!=null){let G=parseInt(W,10);if(!isNaN(G)&&G>Q)throw new O({url:J,message:`Download of ${J} exceeded maximum size of ${Q} bytes (Content-Length: ${G}).`})}let X=F.body;if(X==null)return new Uint8Array(0);let Y=X.getReader(),Z=[],$=0;try{while(!0){let{done:G,value:R}=await Y.read();if(G)break;if($+=R.length,$>Q)throw new O({url:J,message:`Download of ${J} exceeded maximum size of ${Q} bytes.`});Z.push(R)}}finally{try{await Y.cancel()}finally{Y.releaseLock()}}let w=new Uint8Array($),L=0;for(let G of Z)w.set(G,L),L+=G.length;return w}function i(F){let J;try{J=new URL(F)}catch(W){throw new O({url:F,message:`Invalid URL: ${F}`})}if(J.protocol!=="http:"&&J.protocol!=="https:")throw new O({url:F,message:`URL scheme must be http or https, got ${J.protocol}`});let Q=J.hostname;if(!Q)throw new O({url:F,message:"URL must have a hostname"});if(Q==="localhost"||Q.endsWith(".local")||Q.endsWith(".localhost"))throw new O({url:F,message:`URL with hostname ${Q} is not allowed`});if(Q.startsWith("[")&&Q.endsWith("]")){let W=Q.slice(1,-1);if(EF(W))throw new O({url:F,message:`URL with IPv6 address ${Q} is not allowed`});return}if(e(Q)){if(k(Q))throw new O({url:F,message:`URL with IP address ${Q} is not allowed`});return}}function e(F){let J=F.split(".");if(J.length!==4)return!1;return J.every((Q)=>{let W=Number(Q);return Number.isInteger(W)&&W>=0&&W<=255&&String(W)===Q})}function k(F){let J=F.split(".").map(Number),[Q,W]=J;if(Q===0)return!0;if(Q===10)return!0;if(Q===127)return!0;if(Q===169&&W===254)return!0;if(Q===172&&W>=16&&W<=31)return!0;if(Q===192&&W===168)return!0;return!1}function EF(F){let J=F.toLowerCase();if(J==="::1")return!0;if(J==="::")return!0;if(J.startsWith("::ffff:")){let Q=J.slice(7);if(e(Q))return k(Q);let W=Q.split(":");if(W.length===2){let X=parseInt(W[0],16),Y=parseInt(W[1],16);if(!isNaN(X)&&!isNaN(Y)){let Z=X>>8&255,$=X&255,w=Y>>8&255,L=Y&255;return k(`${Z}.${$}.${w}.${L}`)}}}if(J.startsWith("fc")||J.startsWith("fd"))return!0;if(J.startsWith("fe80"))return!0;return!1}async function SJ(F,J){var Q,W;i(F);try{let X=await fetch(F,{signal:J==null?void 0:J.abortSignal});if(X.redirected)i(X.url);if(!X.ok)throw new O({url:F,statusCode:X.status,statusText:X.statusText});let Y=await wF({response:X,url:F,maxBytes:(Q=J==null?void 0:J.maxBytes)!=null?Q:r}),Z=(W=X.headers.get("content-type"))!=null?W:void 0;return new Blob([Y],Z?{type:Z}:void 0)}catch(X){if(O.isInstance(X))throw X;throw new O({url:F,cause:X})}}var GF=({prefix:F,size:J=16,alphabet:Q="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:W="-"}={})=>{let X=()=>{let Y=Q.length,Z=Array(J);for(let $=0;$<J;$++)Z[$]=Q[Math.random()*Y|0];return Z.join("")};if(F==null)return X;if(Q.includes(W))throw new N({argument:"separator",message:`The separator "${W}" must not be part of the alphabet "${Q}".`});return()=>`${F}${W}${X()}`},xJ=GF();function b(F){return(F instanceof Error||F instanceof DOMException)&&(F.name==="AbortError"||F.name==="ResponseAborted"||F.name==="TimeoutError")}var CF=["fetch failed","failed to fetch"],MF=["ConnectionRefused","ConnectionClosed","FailedToOpenSocket","ECONNRESET","ECONNREFUSED","ETIMEDOUT","EPIPE"];function KF(F){if(!(F instanceof Error))return!1;let J=F.code;if(typeof J==="string"&&MF.includes(J))return!0;return!1}function qF({error:F,url:J,requestBodyValues:Q}){if(b(F))return F;if(F instanceof TypeError&&CF.includes(F.message.toLowerCase())){let W=F.cause;if(W!=null)return new M({message:`Cannot connect to API: ${W.message}`,cause:W,url:J,requestBodyValues:Q,isRetryable:!0})}if(KF(F))return new M({message:`Cannot connect to API: ${F.message}`,cause:F,url:J,requestBodyValues:Q,isRetryable:!0});return F}function DF(F=globalThis){var J,Q,W;if(F.window)return"runtime/browser";if((J=F.navigator)==null?void 0:J.userAgent)return`runtime/${F.navigator.userAgent.toLowerCase()}`;if((W=(Q=F.process)==null?void 0:Q.versions)==null?void 0:W.node)return`runtime/node.js/${F.process.version.substring(0)}`;if(F.EdgeRuntime)return"runtime/vercel-edge";return"runtime/unknown"}function OF(F){if(F==null)return{};let J={};if(F instanceof Headers)F.forEach((Q,W)=>{J[W.toLowerCase()]=Q});else{if(!Array.isArray(F))F=Object.entries(F);for(let[Q,W]of F)if(W!=null)J[Q.toLowerCase()]=W}return J}function IF(F,...J){let Q=new Headers(OF(F)),W=Q.get("user-agent")||"";return Q.set("user-agent",[W,...J].filter(Boolean).join(" ")),Object.fromEntries(Q.entries())}var PF="4.0.21";var zF="JSON schema:",AF="You MUST answer with a JSON object that matches the JSON schema above.",HF="You MUST answer with JSON.";function BF({prompt:F,schema:J,schemaPrefix:Q=J!=null?zF:void 0,schemaSuffix:W=J!=null?AF:HF}){return[F!=null&&F.length>0?F:void 0,F!=null&&F.length>0?"":void 0,Q,J!=null?JSON.stringify(J):void 0,W].filter((X)=>X!=null).join(`
2
+ import{$q as z,Tq as j,Uq as M,Vq as f,Xq as N,_q as H,ar as A,dr as I,ir as t}from"./chunk-5mec6cde.js";import{jr as U}from"./chunk-0mekr486.js";import{xu as n}from"./chunk-se195e52.js";import{Hz as d}from"./chunk-vw673y0t.js";function NJ(...F){return F.reduce((J,Q)=>({...J,...Q!=null?Q:{}}),{})}function VJ({tools:F=[],providerToolNames:J,resolveProviderToolName:Q}){var W;let X={},Y={};for(let Z of F)if(Z.type==="provider"){let $=(W=Q==null?void 0:Q(Z))!=null?W:(Z.id in J)?J[Z.id]:void 0;if($==null)continue;X[Z.name]=$,Y[$]=Z.name}return{toProviderToolName:(Z)=>{var $;return($=X[Z])!=null?$:Z},toCustomToolName:(Z)=>{var $;return($=Y[Z])!=null?$:Z}}}function B(F){return Object.fromEntries([...F.headers])}var{btoa:$F,atob:LF}=globalThis;function TJ(F){let J=F.replace(/-/g,"+").replace(/_/g,"/"),Q=LF(J);return Uint8Array.from(Q,(W)=>W.codePointAt(0))}function o(F){let J="";for(let Q=0;Q<F.length;Q++)J+=String.fromCodePoint(F[Q]);return $F(J)}function _J(F){return F instanceof Uint8Array?o(F):F}function jJ(F){if(F.type==="url")return F.url;return`data:${F.mediaType};base64,${typeof F.data==="string"?F.data:o(F.data)}`}function kJ(F,J={}){let{useArrayBrackets:Q=!0}=J,W=new FormData;for(let[X,Y]of Object.entries(F)){if(Y==null)continue;if(Array.isArray(Y)){if(Y.length===1){W.append(X,Y[0]);continue}let Z=Q?`${X}[]`:X;for(let $ of Y)W.append(Z,$);continue}W.append(X,Y)}return W}var a="AI_DownloadError",s=`vercel.ai.error.${a}`,UF=Symbol.for(s),m,u,O=class extends(u=j,m=UF,u){constructor({url:F,statusCode:J,statusText:Q,cause:W,message:X=W==null?`Failed to download ${F}: ${J} ${Q}`:`Failed to download ${F}: ${W}`}){super({name:a,message:X,cause:W});this[m]=!0,this.url=F,this.statusCode=J,this.statusText=Q}static isInstance(F){return j.hasMarker(F,s)}},r=2147483648;async function wF({response:F,url:J,maxBytes:Q=r}){let W=F.headers.get("content-length");if(W!=null){let G=parseInt(W,10);if(!isNaN(G)&&G>Q)throw new O({url:J,message:`Download of ${J} exceeded maximum size of ${Q} bytes (Content-Length: ${G}).`})}let X=F.body;if(X==null)return new Uint8Array(0);let Y=X.getReader(),Z=[],$=0;try{while(!0){let{done:G,value:R}=await Y.read();if(G)break;if($+=R.length,$>Q)throw new O({url:J,message:`Download of ${J} exceeded maximum size of ${Q} bytes.`});Z.push(R)}}finally{try{await Y.cancel()}finally{Y.releaseLock()}}let w=new Uint8Array($),L=0;for(let G of Z)w.set(G,L),L+=G.length;return w}function i(F){let J;try{J=new URL(F)}catch(W){throw new O({url:F,message:`Invalid URL: ${F}`})}if(J.protocol!=="http:"&&J.protocol!=="https:")throw new O({url:F,message:`URL scheme must be http or https, got ${J.protocol}`});let Q=J.hostname;if(!Q)throw new O({url:F,message:"URL must have a hostname"});if(Q==="localhost"||Q.endsWith(".local")||Q.endsWith(".localhost"))throw new O({url:F,message:`URL with hostname ${Q} is not allowed`});if(Q.startsWith("[")&&Q.endsWith("]")){let W=Q.slice(1,-1);if(EF(W))throw new O({url:F,message:`URL with IPv6 address ${Q} is not allowed`});return}if(e(Q)){if(k(Q))throw new O({url:F,message:`URL with IP address ${Q} is not allowed`});return}}function e(F){let J=F.split(".");if(J.length!==4)return!1;return J.every((Q)=>{let W=Number(Q);return Number.isInteger(W)&&W>=0&&W<=255&&String(W)===Q})}function k(F){let J=F.split(".").map(Number),[Q,W]=J;if(Q===0)return!0;if(Q===10)return!0;if(Q===127)return!0;if(Q===169&&W===254)return!0;if(Q===172&&W>=16&&W<=31)return!0;if(Q===192&&W===168)return!0;return!1}function EF(F){let J=F.toLowerCase();if(J==="::1")return!0;if(J==="::")return!0;if(J.startsWith("::ffff:")){let Q=J.slice(7);if(e(Q))return k(Q);let W=Q.split(":");if(W.length===2){let X=parseInt(W[0],16),Y=parseInt(W[1],16);if(!isNaN(X)&&!isNaN(Y)){let Z=X>>8&255,$=X&255,w=Y>>8&255,L=Y&255;return k(`${Z}.${$}.${w}.${L}`)}}}if(J.startsWith("fc")||J.startsWith("fd"))return!0;if(J.startsWith("fe80"))return!0;return!1}async function SJ(F,J){var Q,W;i(F);try{let X=await fetch(F,{signal:J==null?void 0:J.abortSignal});if(X.redirected)i(X.url);if(!X.ok)throw new O({url:F,statusCode:X.status,statusText:X.statusText});let Y=await wF({response:X,url:F,maxBytes:(Q=J==null?void 0:J.maxBytes)!=null?Q:r}),Z=(W=X.headers.get("content-type"))!=null?W:void 0;return new Blob([Y],Z?{type:Z}:void 0)}catch(X){if(O.isInstance(X))throw X;throw new O({url:F,cause:X})}}var GF=({prefix:F,size:J=16,alphabet:Q="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:W="-"}={})=>{let X=()=>{let Y=Q.length,Z=Array(J);for(let $=0;$<J;$++)Z[$]=Q[Math.random()*Y|0];return Z.join("")};if(F==null)return X;if(Q.includes(W))throw new N({argument:"separator",message:`The separator "${W}" must not be part of the alphabet "${Q}".`});return()=>`${F}${W}${X()}`},xJ=GF();function b(F){return(F instanceof Error||F instanceof DOMException)&&(F.name==="AbortError"||F.name==="ResponseAborted"||F.name==="TimeoutError")}var CF=["fetch failed","failed to fetch"],MF=["ConnectionRefused","ConnectionClosed","FailedToOpenSocket","ECONNRESET","ECONNREFUSED","ETIMEDOUT","EPIPE"];function KF(F){if(!(F instanceof Error))return!1;let J=F.code;if(typeof J==="string"&&MF.includes(J))return!0;return!1}function qF({error:F,url:J,requestBodyValues:Q}){if(b(F))return F;if(F instanceof TypeError&&CF.includes(F.message.toLowerCase())){let W=F.cause;if(W!=null)return new M({message:`Cannot connect to API: ${W.message}`,cause:W,url:J,requestBodyValues:Q,isRetryable:!0})}if(KF(F))return new M({message:`Cannot connect to API: ${F.message}`,cause:F,url:J,requestBodyValues:Q,isRetryable:!0});return F}function DF(F=globalThis){var J,Q,W;if(F.window)return"runtime/browser";if((J=F.navigator)==null?void 0:J.userAgent)return`runtime/${F.navigator.userAgent.toLowerCase()}`;if((W=(Q=F.process)==null?void 0:Q.versions)==null?void 0:W.node)return`runtime/node.js/${F.process.version.substring(0)}`;if(F.EdgeRuntime)return"runtime/vercel-edge";return"runtime/unknown"}function OF(F){if(F==null)return{};let J={};if(F instanceof Headers)F.forEach((Q,W)=>{J[W.toLowerCase()]=Q});else{if(!Array.isArray(F))F=Object.entries(F);for(let[Q,W]of F)if(W!=null)J[Q.toLowerCase()]=W}return J}function IF(F,...J){let Q=new Headers(OF(F)),W=Q.get("user-agent")||"";return Q.set("user-agent",[W,...J].filter(Boolean).join(" ")),Object.fromEntries(Q.entries())}var PF="4.0.21";var zF="JSON schema:",AF="You MUST answer with a JSON object that matches the JSON schema above.",HF="You MUST answer with JSON.";function BF({prompt:F,schema:J,schemaPrefix:Q=J!=null?zF:void 0,schemaSuffix:W=J!=null?AF:HF}){return[F!=null&&F.length>0?F:void 0,F!=null&&F.length>0?"":void 0,Q,J!=null?JSON.stringify(J):void 0,W].filter((X)=>X!=null).join(`
3
3
  `)}function yJ({messages:F,schema:J,schemaPrefix:Q,schemaSuffix:W}){var X,Y;let Z=((X=F[0])==null?void 0:X.role)==="system"?{...F[0]}:{role:"system",content:""};return Z.content=BF({prompt:Z.content,schema:J,schemaPrefix:Q,schemaSuffix:W}),[Z,...((Y=F[0])==null?void 0:Y.role)==="system"?F.slice(1):F]}function hJ(F){return F!=null}function uJ({apiKey:F,environmentVariableName:J,apiKeyParameterName:Q="apiKey",description:W}){if(typeof F==="string")return F;if(F!=null)throw new z({message:`${W} API key must be a string.`});if(typeof process>"u")throw new z({message:`${W} API key is missing. Pass it using the '${Q}' parameter. Environment variables is not supported in this environment.`});if(F=process.env[J],F==null)throw new z({message:`${W} API key is missing. Pass it using the '${Q}' parameter or the ${J} environment variable.`});if(typeof F!=="string")throw new z({message:`${W} API key must be a string. The value of the ${J} environment variable is not a string.`});return F}function pJ({settingValue:F,environmentVariableName:J,settingName:Q,description:W}){if(typeof F==="string")return F;if(F!=null)throw new A({message:`${W} setting must be a string.`});if(typeof process>"u")throw new A({message:`${W} setting is missing. Pass it using the '${Q}' parameter. Environment variables is not supported in this environment.`});if(F=process.env[J],F==null)throw new A({message:`${W} setting is missing. Pass it using the '${Q}' parameter or the ${J} environment variable.`});if(typeof F!=="string")throw new A({message:`${W} setting must be a string. The value of the ${J} environment variable is not a string.`});return F}function lJ(F){var J;let[Q,W=""]=F.toLowerCase().split("/");return(J={mpeg:"mp3","x-wav":"wav",opus:"ogg",mp4:"m4a","x-m4a":"m4a"}[W])!=null?J:W}var RF=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,NF=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function p(F){let J=JSON.parse(F);if(J===null||typeof J!=="object")return J;if(RF.test(F)===!1&&NF.test(F)===!1)return J;return VF(J)}function VF(F){let J=[F];while(J.length){let Q=J;J=[];for(let W of Q){if(Object.prototype.hasOwnProperty.call(W,"__proto__"))throw SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(W,"constructor")&&W.constructor!==null&&typeof W.constructor==="object"&&Object.prototype.hasOwnProperty.call(W.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let X in W){let Y=W[X];if(Y&&typeof Y==="object")J.push(Y)}}}return F}function x(F){let{stackTraceLimit:J}=Error;try{Error.stackTraceLimit=0}catch(Q){return p(F)}try{return p(F)}finally{Error.stackTraceLimit=J}}function v(F){if(F.type==="object"||Array.isArray(F.type)&&F.type.includes("object")){F.additionalProperties=!1;let{properties:Q}=F;if(Q!=null)for(let W of Object.keys(Q))Q[W]=P(Q[W])}if(F.items!=null)F.items=Array.isArray(F.items)?F.items.map(P):P(F.items);if(F.anyOf!=null)F.anyOf=F.anyOf.map(P);if(F.allOf!=null)F.allOf=F.allOf.map(P);if(F.oneOf!=null)F.oneOf=F.oneOf.map(P);let{definitions:J}=F;if(J!=null)for(let Q of Object.keys(J))J[Q]=P(J[Q]);return F}function P(F){if(typeof F==="boolean")return F;return v(F)}var TF=Symbol("Let zodToJsonSchema decide on which parser to use"),l={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},_F=(F)=>typeof F==="string"?{...l,name:F}:{...l,...F};function K(){return{}}function jF(F,J){var Q,W,X;let Y={type:"array"};if(((Q=F.type)==null?void 0:Q._def)&&((X=(W=F.type)==null?void 0:W._def)==null?void 0:X.typeName)!==U.ZodAny)Y.items=E(F.type._def,{...J,currentPath:[...J.currentPath,"items"]});if(F.minLength)Y.minItems=F.minLength.value;if(F.maxLength)Y.maxItems=F.maxLength.value;if(F.exactLength)Y.minItems=F.exactLength.value,Y.maxItems=F.exactLength.value;return Y}function kF(F){let J={type:"integer",format:"int64"};if(!F.checks)return J;for(let Q of F.checks)switch(Q.kind){case"min":if(Q.inclusive)J.minimum=Q.value;else J.exclusiveMinimum=Q.value;break;case"max":if(Q.inclusive)J.maximum=Q.value;else J.exclusiveMaximum=Q.value;break;case"multipleOf":J.multipleOf=Q.value;break}return J}function bF(){return{type:"boolean"}}function FF(F,J){return E(F.type._def,J)}var SF=(F,J)=>{return E(F.innerType._def,J)};function JF(F,J,Q){let W=Q!=null?Q:J.dateStrategy;if(Array.isArray(W))return{anyOf:W.map((X,Y)=>JF(F,J,X))};switch(W){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return gF(F)}}var gF=(F)=>{let J={type:"integer",format:"unix-time"};for(let Q of F.checks)switch(Q.kind){case"min":J.minimum=Q.value;break;case"max":J.maximum=Q.value;break}return J};function xF(F,J){return{...E(F.innerType._def,J),default:F.defaultValue()}}function vF(F,J){return J.effectStrategy==="input"?E(F.schema._def,J):K()}function yF(F){return{type:"string",enum:Array.from(F.values)}}var hF=(F)=>{if("type"in F&&F.type==="string")return!1;return"allOf"in F};function mF(F,J){let Q=[E(F.left._def,{...J,currentPath:[...J.currentPath,"allOf","0"]}),E(F.right._def,{...J,currentPath:[...J.currentPath,"allOf","1"]})].filter((X)=>!!X),W=[];return Q.forEach((X)=>{if(hF(X))W.push(...X.allOf);else{let Y=X;if("additionalProperties"in X&&X.additionalProperties===!1){let{additionalProperties:Z,...$}=X;Y=$}W.push(Y)}}),W.length?{allOf:W}:void 0}function uF(F){let J=typeof F.value;if(J!=="bigint"&&J!=="number"&&J!=="boolean"&&J!=="string")return{type:Array.isArray(F.value)?"array":"object"};return{type:J==="bigint"?"integer":J,const:F.value}}var T=void 0,q={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>{if(T===void 0)T=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u");return T},uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function QF(F,J){let Q={type:"string"};if(F.checks)for(let W of F.checks)switch(W.kind){case"min":Q.minLength=typeof Q.minLength==="number"?Math.max(Q.minLength,W.value):W.value;break;case"max":Q.maxLength=typeof Q.maxLength==="number"?Math.min(Q.maxLength,W.value):W.value;break;case"email":switch(J.emailStrategy){case"format:email":D(Q,"email",W.message,J);break;case"format:idn-email":D(Q,"idn-email",W.message,J);break;case"pattern:zod":C(Q,q.email,W.message,J);break}break;case"url":D(Q,"uri",W.message,J);break;case"uuid":D(Q,"uuid",W.message,J);break;case"regex":C(Q,W.regex,W.message,J);break;case"cuid":C(Q,q.cuid,W.message,J);break;case"cuid2":C(Q,q.cuid2,W.message,J);break;case"startsWith":C(Q,RegExp(`^${_(W.value,J)}`),W.message,J);break;case"endsWith":C(Q,RegExp(`${_(W.value,J)}$`),W.message,J);break;case"datetime":D(Q,"date-time",W.message,J);break;case"date":D(Q,"date",W.message,J);break;case"time":D(Q,"time",W.message,J);break;case"duration":D(Q,"duration",W.message,J);break;case"length":Q.minLength=typeof Q.minLength==="number"?Math.max(Q.minLength,W.value):W.value,Q.maxLength=typeof Q.maxLength==="number"?Math.min(Q.maxLength,W.value):W.value;break;case"includes":{C(Q,RegExp(_(W.value,J)),W.message,J);break}case"ip":{if(W.version!=="v6")D(Q,"ipv4",W.message,J);if(W.version!=="v4")D(Q,"ipv6",W.message,J);break}case"base64url":C(Q,q.base64url,W.message,J);break;case"jwt":C(Q,q.jwt,W.message,J);break;case"cidr":{if(W.version!=="v6")C(Q,q.ipv4Cidr,W.message,J);if(W.version!=="v4")C(Q,q.ipv6Cidr,W.message,J);break}case"emoji":C(Q,q.emoji(),W.message,J);break;case"ulid":{C(Q,q.ulid,W.message,J);break}case"base64":{switch(J.base64Strategy){case"format:binary":{D(Q,"binary",W.message,J);break}case"contentEncoding:base64":{Q.contentEncoding="base64";break}case"pattern:zod":{C(Q,q.base64,W.message,J);break}}break}case"nanoid":C(Q,q.nanoid,W.message,J);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return Q}function _(F,J){return J.patternStrategy==="escape"?pF(F):F}var iF=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function pF(F){let J="";for(let Q=0;Q<F.length;Q++){if(!iF.has(F[Q]))J+="\\";J+=F[Q]}return J}function D(F,J,Q,W){var X;if(F.format||((X=F.anyOf)==null?void 0:X.some((Y)=>Y.format))){if(!F.anyOf)F.anyOf=[];if(F.format)F.anyOf.push({format:F.format}),delete F.format;F.anyOf.push({format:J,...Q&&W.errorMessages&&{errorMessage:{format:Q}}})}else F.format=J}function C(F,J,Q,W){var X;if(F.pattern||((X=F.allOf)==null?void 0:X.some((Y)=>Y.pattern))){if(!F.allOf)F.allOf=[];if(F.pattern)F.allOf.push({pattern:F.pattern}),delete F.pattern;F.allOf.push({pattern:c(J,W),...Q&&W.errorMessages&&{errorMessage:{pattern:Q}}})}else F.pattern=c(J,W)}function c(F,J){var Q;if(!J.applyRegexFlags||!F.flags)return F.source;let W={i:F.flags.includes("i"),m:F.flags.includes("m"),s:F.flags.includes("s")},X=W.i?F.source.toLowerCase():F.source,Y="",Z=!1,$=!1,w=!1;for(let L=0;L<X.length;L++){if(Z){Y+=X[L],Z=!1;continue}if(W.i){if($){if(X[L].match(/[a-z]/)){if(w)Y+=X[L],Y+=`${X[L-2]}-${X[L]}`.toUpperCase(),w=!1;else if(X[L+1]==="-"&&((Q=X[L+2])==null?void 0:Q.match(/[a-z]/)))Y+=X[L],w=!0;else Y+=`${X[L]}${X[L].toUpperCase()}`;continue}}else if(X[L].match(/[a-z]/)){Y+=`[${X[L]}${X[L].toUpperCase()}]`;continue}}if(W.m){if(X[L]==="^"){Y+=`(^|(?<=[\r
4
4
  ]))`;continue}else if(X[L]==="$"){Y+=`($|(?=[\r
5
5
  ]))`;continue}}if(W.s&&X[L]==="."){Y+=$?`${X[L]}\r
6
6
  `:`[${X[L]}\r
7
7
  ]`;continue}if(Y+=X[L],X[L]==="\\")Z=!0;else if($&&X[L]==="]")$=!1;else if(!$&&X[L]==="[")$=!0}try{new RegExp(Y)}catch(L){return console.warn(`Could not convert regex pattern at ${J.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),F.source}return Y}function WF(F,J){var Q,W,X,Y,Z,$;let w={type:"object",additionalProperties:(Q=E(F.valueType._def,{...J,currentPath:[...J.currentPath,"additionalProperties"]}))!=null?Q:J.allowedAdditionalProperties};if(((W=F.keyType)==null?void 0:W._def.typeName)===U.ZodString&&((X=F.keyType._def.checks)==null?void 0:X.length)){let{type:L,...G}=QF(F.keyType._def,J);return{...w,propertyNames:G}}else if(((Y=F.keyType)==null?void 0:Y._def.typeName)===U.ZodEnum)return{...w,propertyNames:{enum:F.keyType._def.values}};else if(((Z=F.keyType)==null?void 0:Z._def.typeName)===U.ZodBranded&&F.keyType._def.type._def.typeName===U.ZodString&&(($=F.keyType._def.type._def.checks)==null?void 0:$.length)){let{type:L,...G}=FF(F.keyType._def,J);return{...w,propertyNames:G}}return w}function lF(F,J){if(J.mapStrategy==="record")return WF(F,J);let Q=E(F.keyType._def,{...J,currentPath:[...J.currentPath,"items","items","0"]})||K(),W=E(F.valueType._def,{...J,currentPath:[...J.currentPath,"items","items","1"]})||K();return{type:"array",maxItems:125,items:{type:"array",items:[Q,W],minItems:2,maxItems:2}}}function cF(F){let J=F.values,W=Object.keys(F.values).filter((Y)=>{return typeof J[J[Y]]!=="number"}).map((Y)=>J[Y]),X=Array.from(new Set(W.map((Y)=>typeof Y)));return{type:X.length===1?X[0]==="string"?"string":"number":["string","number"],enum:W}}function dF(){return{not:K()}}function nF(){return{type:"null"}}var S={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function fF(F,J){let Q=F.options instanceof Map?Array.from(F.options.values()):F.options;if(Q.every((W)=>(W._def.typeName in S)&&(!W._def.checks||!W._def.checks.length))){let W=Q.reduce((X,Y)=>{let Z=S[Y._def.typeName];return Z&&!X.includes(Z)?[...X,Z]:X},[]);return{type:W.length>1?W:W[0]}}else if(Q.every((W)=>W._def.typeName==="ZodLiteral"&&!W.description)){let W=Q.reduce((X,Y)=>{let Z=typeof Y._def.value;switch(Z){case"string":case"number":case"boolean":return[...X,Z];case"bigint":return[...X,"integer"];case"object":if(Y._def.value===null)return[...X,"null"];case"symbol":case"undefined":case"function":default:return X}},[]);if(W.length===Q.length){let X=W.filter((Y,Z,$)=>$.indexOf(Y)===Z);return{type:X.length>1?X:X[0],enum:Q.reduce((Y,Z)=>{return Y.includes(Z._def.value)?Y:[...Y,Z._def.value]},[])}}}else if(Q.every((W)=>W._def.typeName==="ZodEnum"))return{type:"string",enum:Q.reduce((W,X)=>[...W,...X._def.values.filter((Y)=>!W.includes(Y))],[])};return tF(F,J)}var tF=(F,J)=>{let Q=(F.options instanceof Map?Array.from(F.options.values()):F.options).map((W,X)=>E(W._def,{...J,currentPath:[...J.currentPath,"anyOf",`${X}`]})).filter((W)=>!!W&&(!J.strictUnions||typeof W==="object"&&Object.keys(W).length>0));return Q.length?{anyOf:Q}:void 0};function oF(F,J){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(F.innerType._def.typeName)&&(!F.innerType._def.checks||!F.innerType._def.checks.length))return{type:[S[F.innerType._def.typeName],"null"]};let Q=E(F.innerType._def,{...J,currentPath:[...J.currentPath,"anyOf","0"]});return Q&&{anyOf:[Q,{type:"null"}]}}function aF(F){let J={type:"number"};if(!F.checks)return J;for(let Q of F.checks)switch(Q.kind){case"int":J.type="integer";break;case"min":if(Q.inclusive)J.minimum=Q.value;else J.exclusiveMinimum=Q.value;break;case"max":if(Q.inclusive)J.maximum=Q.value;else J.exclusiveMaximum=Q.value;break;case"multipleOf":J.multipleOf=Q.value;break}return J}function sF(F,J){let Q={type:"object",properties:{}},W=[],X=F.shape();for(let Z in X){let $=X[Z];if($===void 0||$._def===void 0)continue;let w=eF($),L=E($._def,{...J,currentPath:[...J.currentPath,"properties",Z],propertyPath:[...J.currentPath,"properties",Z]});if(L===void 0)continue;if(Q.properties[Z]=L,!w)W.push(Z)}if(W.length)Q.required=W;let Y=rF(F,J);if(Y!==void 0)Q.additionalProperties=Y;return Q}function rF(F,J){if(F.catchall._def.typeName!=="ZodNever")return E(F.catchall._def,{...J,currentPath:[...J.currentPath,"additionalProperties"]});switch(F.unknownKeys){case"passthrough":return J.allowedAdditionalProperties;case"strict":return J.rejectedAdditionalProperties;case"strip":return J.removeAdditionalStrategy==="strict"?J.allowedAdditionalProperties:J.rejectedAdditionalProperties}}function eF(F){try{return F.isOptional()}catch(J){return!0}}var FJ=(F,J)=>{var Q;if(J.currentPath.toString()===((Q=J.propertyPath)==null?void 0:Q.toString()))return E(F.innerType._def,J);let W=E(F.innerType._def,{...J,currentPath:[...J.currentPath,"anyOf","1"]});return W?{anyOf:[{not:K()},W]}:K()},JJ=(F,J)=>{if(J.pipeStrategy==="input")return E(F.in._def,J);else if(J.pipeStrategy==="output")return E(F.out._def,J);let Q=E(F.in._def,{...J,currentPath:[...J.currentPath,"allOf","0"]}),W=E(F.out._def,{...J,currentPath:[...J.currentPath,"allOf",Q?"1":"0"]});return{allOf:[Q,W].filter((X)=>X!==void 0)}};function QJ(F,J){return E(F.type._def,J)}function WJ(F,J){let W={type:"array",uniqueItems:!0,items:E(F.valueType._def,{...J,currentPath:[...J.currentPath,"items"]})};if(F.minSize)W.minItems=F.minSize.value;if(F.maxSize)W.maxItems=F.maxSize.value;return W}function XJ(F,J){if(F.rest)return{type:"array",minItems:F.items.length,items:F.items.map((Q,W)=>E(Q._def,{...J,currentPath:[...J.currentPath,"items",`${W}`]})).reduce((Q,W)=>W===void 0?Q:[...Q,W],[]),additionalItems:E(F.rest._def,{...J,currentPath:[...J.currentPath,"additionalItems"]})};else return{type:"array",minItems:F.items.length,maxItems:F.items.length,items:F.items.map((Q,W)=>E(Q._def,{...J,currentPath:[...J.currentPath,"items",`${W}`]})).reduce((Q,W)=>W===void 0?Q:[...Q,W],[])}}function YJ(){return{not:K()}}function ZJ(){return K()}var $J=(F,J)=>{return E(F.innerType._def,J)},LJ=(F,J,Q)=>{switch(J){case U.ZodString:return QF(F,Q);case U.ZodNumber:return aF(F);case U.ZodObject:return sF(F,Q);case U.ZodBigInt:return kF(F);case U.ZodBoolean:return bF();case U.ZodDate:return JF(F,Q);case U.ZodUndefined:return YJ();case U.ZodNull:return nF();case U.ZodArray:return jF(F,Q);case U.ZodUnion:case U.ZodDiscriminatedUnion:return fF(F,Q);case U.ZodIntersection:return mF(F,Q);case U.ZodTuple:return XJ(F,Q);case U.ZodRecord:return WF(F,Q);case U.ZodLiteral:return uF(F);case U.ZodEnum:return yF(F);case U.ZodNativeEnum:return cF(F);case U.ZodNullable:return oF(F,Q);case U.ZodOptional:return FJ(F,Q);case U.ZodMap:return lF(F,Q);case U.ZodSet:return WJ(F,Q);case U.ZodLazy:return()=>F.getter()._def;case U.ZodPromise:return QJ(F,Q);case U.ZodNaN:case U.ZodNever:return dF();case U.ZodEffects:return vF(F,Q);case U.ZodAny:return K();case U.ZodUnknown:return ZJ();case U.ZodDefault:return xF(F,Q);case U.ZodBranded:return FF(F,Q);case U.ZodReadonly:return $J(F,Q);case U.ZodCatch:return SF(F,Q);case U.ZodPipeline:return JJ(F,Q);case U.ZodFunction:case U.ZodVoid:case U.ZodSymbol:return;default:return((W)=>{return})(J)}},UJ=(F,J)=>{let Q=0;for(;Q<F.length&&Q<J.length;Q++)if(F[Q]!==J[Q])break;return[(F.length-Q).toString(),...J.slice(Q)].join("/")};function E(F,J,Q=!1){var W;let X=J.seen.get(F);if(J.override){let w=(W=J.override)==null?void 0:W.call(J,F,J,X,Q);if(w!==TF)return w}if(X&&!Q){let w=wJ(X,J);if(w!==void 0)return w}let Y={def:F,path:J.currentPath,jsonSchema:void 0};J.seen.set(F,Y);let Z=LJ(F,F.typeName,J),$=typeof Z==="function"?E(Z(),J):Z;if($)EJ(F,J,$);if(J.postProcess){let w=J.postProcess($,F,J);return Y.jsonSchema=$,w}return Y.jsonSchema=$,$}var wJ=(F,J)=>{switch(J.$refStrategy){case"root":return{$ref:F.path.join("/")};case"relative":return{$ref:UJ(J.currentPath,F.path)};case"none":case"seen":{if(F.path.length<J.currentPath.length&&F.path.every((Q,W)=>J.currentPath[W]===Q))return console.warn(`Recursive reference detected at ${J.currentPath.join("/")}! Defaulting to any`),K();return J.$refStrategy==="seen"?K():void 0}}},EJ=(F,J,Q)=>{if(F.description)Q.description=F.description;return Q},GJ=(F)=>{let J=_F(F),Q=J.name!==void 0?[...J.basePath,J.definitionPath,J.name]:J.basePath;return{...J,currentPath:Q,propertyPath:void 0,seen:new Map(Object.entries(J.definitions).map(([W,X])=>[X._def,{def:X._def,path:[...J.basePath,J.definitionPath,W],jsonSchema:void 0}]))}},CJ=(F,J)=>{var Q;let W=GJ(J),X=typeof J==="object"&&J.definitions?Object.entries(J.definitions).reduce((L,[G,R])=>{var h;return{...L,[G]:(h=E(R._def,{...W,currentPath:[...W.basePath,W.definitionPath,G]},!0))!=null?h:K()}},{}):void 0,Y=typeof J==="string"?J:(J==null?void 0:J.nameStrategy)==="title"?void 0:J==null?void 0:J.name,Z=(Q=E(F._def,Y===void 0?W:{...W,currentPath:[...W.basePath,W.definitionPath,Y]},!1))!=null?Q:K(),$=typeof J==="object"&&J.name!==void 0&&J.nameStrategy==="title"?J.name:void 0;if($!==void 0)Z.title=$;let w=Y===void 0?X?{...Z,[W.definitionPath]:X}:Z:{$ref:[...W.$refStrategy==="relative"?[]:W.basePath,W.definitionPath,Y].join("/"),[W.definitionPath]:{...X,[Y]:Z}};return w.$schema="http://json-schema.org/draft-07/schema#",w},g=Symbol.for("vercel.ai.schema");function aJ(F){let J;return()=>{if(J==null)J=F();return J}}function V(F,{validate:J}={}){return{[g]:!0,_type:void 0,get jsonSchema(){if(typeof F==="function")F=F();return F},validate:J}}function MJ(F){return typeof F==="object"&&F!==null&&g in F&&F[g]===!0&&"jsonSchema"in F&&"validate"in F}function KJ(F){return F==null?V({properties:{},additionalProperties:!1}):MJ(F)?F:("~standard"in F)?F["~standard"].vendor==="zod"?PJ(F):qJ(F):F()}function qJ(F){return V(()=>v(F["~standard"].jsonSchema.input({target:"draft-07"})),{validate:async(J)=>{let Q=await F["~standard"].validate(J);return"value"in Q?{success:!0,value:Q.value}:{success:!1,error:new I({value:J,cause:Q.issues})}}})}function DJ(F,J){var Q;let W=(Q=J==null?void 0:J.useReferences)!=null?Q:!1;return V(()=>CJ(F,{$refStrategy:W?"root":"none"}),{validate:async(X)=>{let Y=await F.safeParseAsync(X);return Y.success?{success:!0,value:Y.data}:{success:!1,error:Y.error}}})}function OJ(F,J){var Q;let W=(Q=J==null?void 0:J.useReferences)!=null?Q:!1;return V(()=>v(d(F,{target:"draft-7",io:"input",reused:W?"ref":"inline"})),{validate:async(X)=>{let Y=await n(F,X);return Y.success?{success:!0,value:Y.data}:{success:!1,error:Y.error}}})}function IJ(F){return"_zod"in F}function PJ(F,J){if(IJ(F))return OJ(F,J);else return DJ(F,J)}async function zJ({value:F,schema:J,context:Q}){let W=await y({value:F,schema:J,context:Q});if(!W.success)throw I.wrap({value:F,cause:W.error,context:Q});return W.value}async function y({value:F,schema:J,context:Q}){let W=KJ(J);try{if(W.validate==null)return{success:!0,value:F,rawValue:F};let X=await W.validate(F);if(X.success)return{success:!0,value:X.value,rawValue:F};return{success:!1,error:I.wrap({value:F,cause:X.error,context:Q}),rawValue:F}}catch(X){return{success:!1,error:I.wrap({value:F,cause:X,context:Q}),rawValue:F}}}async function AJ({text:F,schema:J}){try{let Q=x(F);if(J==null)return Q;return zJ({value:Q,schema:J})}catch(Q){if(H.isInstance(Q)||I.isInstance(Q))throw Q;throw new H({text:F,cause:Q})}}async function XF({text:F,schema:J}){try{let Q=x(F);if(J==null)return{success:!0,value:Q,rawValue:Q};return await y({value:Q,schema:J})}catch(Q){return{success:!1,error:H.isInstance(Q)?Q:new H({text:F,cause:Q}),rawValue:void 0}}}function sJ(F){try{return x(F),!0}catch(J){return!1}}function HJ({stream:F,schema:J}){return F.pipeThrough(new TextDecoderStream).pipeThrough(new t).pipeThrough(new TransformStream({async transform({data:Q},W){if(Q==="[DONE]")return;W.enqueue(await XF({text:Q,schema:J}))}}))}async function FQ({provider:F,providerOptions:J,schema:Q}){if((J==null?void 0:J[F])==null)return;let W=await y({value:J[F],schema:Q});if(!W.success)throw new N({argument:"providerOptions",message:`invalid ${F} provider options`,cause:W.error});return W.value}var BJ=()=>globalThis.fetch,QQ=async({url:F,headers:J,body:Q,failedResponseHandler:W,successfulResponseHandler:X,abortSignal:Y,fetch:Z})=>YF({url:F,headers:{"Content-Type":"application/json",...J},body:{content:JSON.stringify(Q),values:Q},failedResponseHandler:W,successfulResponseHandler:X,abortSignal:Y,fetch:Z}),WQ=async({url:F,headers:J,formData:Q,failedResponseHandler:W,successfulResponseHandler:X,abortSignal:Y,fetch:Z})=>YF({url:F,headers:J,body:{content:Q,values:Object.fromEntries(Q.entries())},failedResponseHandler:W,successfulResponseHandler:X,abortSignal:Y,fetch:Z}),YF=async({url:F,headers:J={},body:Q,successfulResponseHandler:W,failedResponseHandler:X,abortSignal:Y,fetch:Z=BJ()})=>{try{let $=await Z(F,{method:"POST",headers:IF(J,`ai-sdk/provider-utils/${PF}`,DF()),body:Q.content,signal:Y}),w=B($);if(!$.ok){let L;try{L=await X({response:$,url:F,requestBodyValues:Q.values})}catch(G){if(b(G)||M.isInstance(G))throw G;throw new M({message:"Failed to process error response",cause:G,statusCode:$.status,url:F,responseHeaders:w,requestBodyValues:Q.values})}throw L.value}try{return await W({response:$,url:F,requestBodyValues:Q.values})}catch(L){if(L instanceof Error){if(b(L)||M.isInstance(L))throw L}throw new M({message:"Failed to process successful response",cause:L,statusCode:$.status,url:F,responseHeaders:w,requestBodyValues:Q.values})}}catch($){throw qF({error:$,url:F,requestBodyValues:Q.values})}};function ZF(F){return F}function XQ({id:F,inputSchema:J}){return({execute:Q,outputSchema:W,needsApproval:X,toModelOutput:Y,onInputStart:Z,onInputDelta:$,onInputAvailable:w,...L})=>ZF({type:"provider",id:F,args:L,inputSchema:J,outputSchema:W,execute:Q,needsApproval:X,toModelOutput:Y,onInputStart:Z,onInputDelta:$,onInputAvailable:w})}function YQ({id:F,inputSchema:J,outputSchema:Q,supportsDeferredResults:W}){return({execute:X,needsApproval:Y,toModelOutput:Z,onInputStart:$,onInputDelta:w,onInputAvailable:L,...G})=>ZF({type:"provider",id:F,args:G,inputSchema:J,outputSchema:Q,execute:X,needsApproval:Y,toModelOutput:Z,onInputStart:$,onInputDelta:w,onInputAvailable:L,supportsDeferredResults:W})}var $Q=({errorSchema:F,errorToMessage:J,isRetryable:Q})=>async({response:W,url:X,requestBodyValues:Y})=>{let Z=await W.text(),$=B(W);if(Z.trim()==="")return{responseHeaders:$,value:new M({message:W.statusText,url:X,requestBodyValues:Y,statusCode:W.status,responseHeaders:$,responseBody:Z,isRetryable:Q==null?void 0:Q(W)})};try{let w=await AJ({text:Z,schema:F});return{responseHeaders:$,value:new M({message:J(w),url:X,requestBodyValues:Y,statusCode:W.status,responseHeaders:$,responseBody:Z,data:w,isRetryable:Q==null?void 0:Q(W,w)})}}catch(w){return{responseHeaders:$,value:new M({message:W.statusText,url:X,requestBodyValues:Y,statusCode:W.status,responseHeaders:$,responseBody:Z,isRetryable:Q==null?void 0:Q(W)})}}},LQ=(F)=>async({response:J})=>{let Q=B(J);if(J.body==null)throw new f({});return{responseHeaders:Q,value:HJ({stream:J.body,schema:F})}},UQ=(F)=>async({response:J,url:Q,requestBodyValues:W})=>{let X=await J.text(),Y=await XF({text:X,schema:F}),Z=B(J);if(!Y.success)throw new M({message:"Invalid JSON response",cause:Y.error,statusCode:J.status,responseHeaders:Z,responseBody:X,url:Q,requestBodyValues:W});return{responseHeaders:Z,value:Y.value,rawValue:Y.rawValue}},wQ=()=>async({response:F,url:J,requestBodyValues:Q})=>{let W=B(F);if(!F.body)throw new M({message:"Response body is empty",url:J,requestBodyValues:Q,statusCode:F.status,responseHeaders:W,responseBody:void 0});try{let X=await F.arrayBuffer();return{responseHeaders:W,value:new Uint8Array(X)}}catch(X){throw new M({message:"Failed to read response as array buffer",url:J,requestBodyValues:Q,statusCode:F.status,responseHeaders:W,responseBody:void 0,cause:X})}};function EQ(F){return F==null?void 0:F.replace(/\/$/,"")}
8
- export{NJ as Ee,VJ as Fe,TJ as Ge,o as He,_J as Ie,jJ as Je,kJ as Ke,SJ as Le,xJ as Me,IF as Ne,yJ as Oe,hJ as Pe,uJ as Qe,pJ as Re,lJ as Se,aJ as Te,PJ as Ue,zJ as Ve,AJ as We,sJ as Xe,FQ as Ye,QQ as Ze,WQ as _e,XQ as $e,YQ as af,$Q as bf,LQ as cf,UQ as df,wQ as ef,EQ as ff};
8
+ export{NJ as Fe,VJ as Ge,TJ as He,o as Ie,_J as Je,jJ as Ke,kJ as Le,SJ as Me,xJ as Ne,IF as Oe,yJ as Pe,hJ as Qe,uJ as Re,pJ as Se,lJ as Te,aJ as Ue,PJ as Ve,zJ as We,AJ as Xe,sJ as Ye,FQ as Ze,QQ as _e,WQ as $e,XQ as af,YQ as bf,$Q as cf,LQ as df,UQ as ef,wQ as ff,EQ as gf};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import"./chunk-23geekk5.js";import"./chunk-hh4c02fh.js";var f={"language.en":"English","language.zh":"\u7B80\u4F53\u4E2D\u6587","language.zht":"\u7E41\u9AD4\u4E2D\u6587","language.ko":"\uD55C\uAD6D\uC5B4","language.de":"Deutsch","language.es":"Espa\xF1ol","language.fr":"Fran\xE7ais","language.da":"Dansk","language.ja":"\u65E5\u672C\u8A9E","language.pl":"Polski","language.ru":"\u0420\u0443\u0441\u0441\u043A\u0438\u0439","language.ar":"\u0627\u0644\u0639\u0631\u0628\u064A\u0629","language.no":"Norsk","language.br":"Portugu\xEAs (Brasil)","language.pt":"Portugu\xEAs","language.bs":"Bosanski","language.th":"\u0E44\u0E17\u0E22","language.tr":"T\xFCrk\xE7e","tui.prompt.placeholder.normal":"Escreva a sua mensagem... (escreva / para comandos)","tui.prompt.placeholder.shell":'Execute um comando... "{{example}}"',"tui.prompt.ghost":"{{prediction}} (Tab para aceitar)","tui.home.placeholder.example.todo":"Corrigir um TODO no c\xF3digo","tui.home.placeholder.example.stack":"Qual \xE9 a stack tecnol\xF3gica deste projeto?","tui.home.placeholder.example.tests":"Corrigir testes falhados","tui.home.agreement.prefix":"Ao usar o QitQode, concorda com os nossos ","tui.home.agreement.terms":"Termos de Servi\xE7o","tui.home.agreement.separator":" e a ","tui.home.agreement.privacy":"Pol\xEDtica de Privacidade","tui.home.agreement.suffix":"","tui.prompt.hint.attach_file":"anexar ficheiro","tui.prompt.hint.subagent":"subagente","tui.prompt.hint.commands":"comandos","tui.prompt.hint.switch_mode":"mudar modo","tui.prompt.hint.settings":"defini\xE7\xF5es","tui.tips.label":"Dica","tui.tips.plain_terminal":"Recomendamos usar o iTerm ou o terminal do VS Code","tui.tips.attach_file":"Escreva {highlight}@{/highlight} seguido do nome do ficheiro para pesquisar e anexar ficheiros","tui.tips.shell_prefix":"Inicie uma mensagem com {highlight}!{/highlight} para executar comandos de shell diretamente (ex.: {highlight}!ls -la{/highlight})","tui.tips.tab_agent":"Prima {highlight}Tab{/highlight} ou {highlight}Shift+Tab{/highlight} para alternar entre os agentes Build, Plan e Compose","tui.tips.theme_mode":"Execute {highlight}/dark{/highlight} para o modo escuro ou {highlight}/light{/highlight} para o modo claro","tui.tips.doc":"Execute {highlight}/doc{/highlight} para abrir a documenta\xE7\xE3o do utilizador","tui.tips.undo":"Use {highlight}/undo{/highlight} para reverter a \xFAltima mensagem e altera\xE7\xF5es em ficheiros","tui.tips.redo":"Use {highlight}/redo{/highlight} para restaurar mensagens e altera\xE7\xF5es desfeitas anteriormente","tui.tips.drag_drop":"Arraste e solte imagens ou PDFs no terminal para os adicionar como contexto","tui.tips.paste_image":"Prima {highlight}Ctrl+V{/highlight} para colar imagens da \xE1rea de transfer\xEAncia na entrada","tui.tips.editor":"Prima {highlight}Ctrl+X E{/highlight} ou {highlight}/editor{/highlight} para compor mensagens no seu editor externo","tui.tips.init":"Execute {highlight}/init{/highlight} para gerar automaticamente regras do projeto a partir do seu c\xF3digo","tui.tips.models":"Execute {highlight}/models{/highlight} ou {highlight}Ctrl+X M{/highlight} para alternar entre os modelos dispon\xEDveis","tui.tips.theme":'Trave o modo de tema contra o fundo do seu terminal \u2014 abra a paleta de comandos ({highlight}Ctrl+P{/highlight}) e busque "lock"',"tui.tips.new_session":"Prima {highlight}Ctrl+X N{/highlight} ou {highlight}/new{/highlight} para iniciar uma nova sess\xE3o","tui.tips.sessions":"Use {highlight}/sessions{/highlight} ou {highlight}Ctrl+X L{/highlight} para listar e continuar conversas anteriores","tui.tips.compact":"Execute {highlight}/compact{/highlight} para resumir sess\xF5es longas pr\xF3ximas dos limites de contexto","tui.tips.export":"Prima {highlight}Ctrl+X X{/highlight} ou {highlight}/export{/highlight} para guardar a conversa como Markdown","tui.tips.copy_last":"Prima {highlight}Ctrl+X Y{/highlight} para copiar a \xFAltima mensagem do assistente para a \xE1rea de transfer\xEAncia","tui.tips.command_palette":"Prima {highlight}Ctrl+P{/highlight} para ver todas as a\xE7\xF5es e comandos dispon\xEDveis","tui.tips.leader":"A tecla l\xEDder \xE9 {highlight}Ctrl+X{/highlight}; combine-a com outras teclas para a\xE7\xF5es r\xE1pidas","tui.tips.f2":"Prima {highlight}F2{/highlight} para alternar rapidamente entre os modelos usados recentemente","tui.tips.sidebar":"Prima {highlight}Ctrl+X B{/highlight} para mostrar/ocultar o painel lateral","tui.tips.history":"Use {highlight}PageUp{/highlight}/{highlight}PageDown{/highlight} para navegar no hist\xF3rico da conversa","tui.tips.jump_first":"Prima {highlight}Ctrl+G{/highlight} ou {highlight}Home{/highlight} para ir ao in\xEDcio da conversa","tui.tips.jump_last":"Prima {highlight}Ctrl+Alt+G{/highlight} ou {highlight}End{/highlight} para ir \xE0 mensagem mais recente","tui.tips.newline":"Prima {highlight}Shift+Enter{/highlight} ou {highlight}Ctrl+J{/highlight} para adicionar novas linhas na entrada","tui.tips.clear_input":"Prima {highlight}Ctrl+C{/highlight} ao escrever para limpar o campo de entrada","tui.tips.escape":"Prima {highlight}Escape{/highlight} para parar a resposta da IA a meio","tui.tips.plan_agent":"Mude para o agente {highlight}Plan{/highlight} para obter sugest\xF5es sem efetuar altera\xE7\xF5es reais","tui.tips.subagent":"Use {highlight}@agent-name{/highlight} nas entradas para invocar subagentes especializados","tui.tips.cycle_sessions":"Prima {highlight}Ctrl+X Right/Left{/highlight} para alternar entre sess\xF5es pai e filho","tui.tips.config_files":"Crie {highlight}qitqode.json{/highlight} para defini\xE7\xF5es do servidor e {highlight}tui.json{/highlight} para a TUI","tui.tips.global_config":"Coloque as defini\xE7\xF5es da TUI em {highlight}~/.config/qitqode/tui.json{/highlight} para configura\xE7\xE3o global","tui.tips.schema":"Adicione {highlight}$schema{/highlight} \xE0 sua configura\xE7\xE3o para autocompletar no editor","tui.tips.default_model":"Configure {highlight}model{/highlight} na configura\xE7\xE3o para definir o seu modelo predefinido","tui.tips.keybinds":"Substitua qualquer atalho em {highlight}tui.json{/highlight} atrav\xE9s da sec\xE7\xE3o {highlight}keybinds{/highlight}","tui.tips.disable_keybind":"Defina qualquer atalho como {highlight}none{/highlight} para o desativar completamente","tui.tips.mcp_config":"Configure servidores MCP locais ou remotos na sec\xE7\xE3o de configura\xE7\xE3o {highlight}mcp{/highlight}","tui.tips.mcp_oauth":"O QitQode gere automaticamente o OAuth para servidores MCP remotos que requerem autentica\xE7\xE3o","tui.tips.custom_command":"Adicione ficheiros {highlight}.md{/highlight} a {highlight}.qitqode/command/{/highlight} para definir prompts personalizados reutiliz\xE1veis","tui.tips.command_args":"Use {highlight}$ARGUMENTS{/highlight}, {highlight}$1{/highlight}, {highlight}$2{/highlight} em comandos personalizados para entrada din\xE2mica","tui.tips.command_backticks":"Use acentos graves em comandos para injetar sa\xEDda de shell (ex.: {highlight}`git status`{/highlight})","tui.tips.custom_agent":"Adicione ficheiros {highlight}.md{/highlight} a {highlight}.qitqode/agent/{/highlight} para personas de IA especializadas","tui.tips.agent_perms":"Configure permiss\xF5es por agente para as ferramentas {highlight}edit{/highlight}, {highlight}bash{/highlight} e {highlight}webfetch{/highlight}","tui.tips.bash_allow":'Use padr\xF5es como {highlight}"git *": "allow"{/highlight} para permiss\xF5es de bash mais granulares',"tui.tips.bash_deny":'Defina {highlight}"rm -rf *": "deny"{/highlight} para bloquear comandos destrutivos',"tui.tips.bash_ask":'Configure {highlight}"git push": "ask"{/highlight} para exigir aprova\xE7\xE3o antes de fazer push',"tui.tips.formatter":"O QitQode formata ficheiros automaticamente com prettier, gofmt, ruff e mais","tui.tips.disable_formatter":'Defina {highlight}"formatter": false{/highlight} na configura\xE7\xE3o para desativar toda a formata\xE7\xE3o autom\xE1tica',"tui.tips.custom_formatter":"Defina comandos de formata\xE7\xE3o personalizados com extens\xF5es de ficheiro na configura\xE7\xE3o","tui.tips.lsp":"O QitQode usa servidores LSP para an\xE1lise de c\xF3digo inteligente","tui.tips.custom_tool":"Crie ficheiros {highlight}.ts{/highlight} em {highlight}.qitqode/tools/{/highlight} para definir novas ferramentas LLM","tui.tips.tool_scripts":"As defini\xE7\xF5es de ferramentas podem invocar scripts escritos em Python, Go, etc.","tui.tips.plugins":"Adicione ficheiros {highlight}.ts{/highlight} a {highlight}.qitqode/plugin/{/highlight} para ganchos de eventos","tui.tips.plugin_notify":"Use plugins para enviar notifica\xE7\xF5es do sistema operativo quando as sess\xF5es terminam","tui.tips.plugin_protect":"Crie um plugin para impedir que o QitQode leia ficheiros sens\xEDveis","tui.tips.run":"Use {highlight}qitqode run{/highlight} para scripting n\xE3o interativo","tui.tips.continue":"Use {highlight}qitqode --continue{/highlight} para retomar a \xFAltima sess\xE3o","tui.tips.attach_cli":"Use {highlight}qitqode run -f file.ts{/highlight} para anexar ficheiros via CLI","tui.tips.format_json":"Use {highlight}--format json{/highlight} para sa\xEDda leg\xEDvel por m\xE1quina em scripts","tui.tips.auth_list":"Execute {highlight}qitqode auth status{/highlight} para ver seu status de login atual","tui.tips.agent_create":"Execute {highlight}qitqode agent create{/highlight} para cria\xE7\xE3o guiada de agentes","tui.tips.theme_system":'Use {highlight}"theme": "system"{/highlight} para corresponder \xE0s cores do seu terminal',"tui.tips.theme_files":"Crie ficheiros de tema JSON no diret\xF3rio {highlight}.qitqode/themes/{/highlight}","tui.tips.theme_variants":"Os temas suportam variantes escura/clara para ambos os modos","tui.tips.theme_ansi":"Referencie cores ANSI 0-255 em temas personalizados","tui.tips.env_var":"Use a sintaxe {highlight}{env:VAR_NAME}{/highlight} para referenciar vari\xE1veis de ambiente na configura\xE7\xE3o","tui.tips.file_var":"Use {highlight}{file:path}{/highlight} para incluir conte\xFAdo de ficheiros em valores de configura\xE7\xE3o","tui.tips.instructions":"Use {highlight}instructions{/highlight} na configura\xE7\xE3o para carregar ficheiros de regras adicionais","tui.tips.temperature":"Defina a {highlight}temperature{/highlight} do agente de 0.0 (focado) a 1.0 (criativo)","tui.tips.steps":"Configure {highlight}steps{/highlight} para limitar as itera\xE7\xF5es ag\xEAnticas por pedido","tui.tips.disable_tool":'Defina {highlight}"tools": {"bash": false}{/highlight} para desativar ferramentas espec\xEDficas',"tui.tips.disable_mcp_tools":'Defina {highlight}"mcp_*": false{/highlight} para desativar todas as ferramentas de um servidor MCP',"tui.tips.tool_override":"Substitua as defini\xE7\xF5es globais de ferramentas por configura\xE7\xE3o de agente","tui.tips.doom_loop":"A permiss\xE3o {highlight}doom_loop{/highlight} previne ciclos infinitos de chamadas a ferramentas","tui.tips.external_dir":"A permiss\xE3o {highlight}external_directory{/highlight} protege ficheiros fora do projeto","tui.tips.debug_config":"Execute {highlight}qitqode debug config{/highlight} para diagnosticar problemas de configura\xE7\xE3o","tui.tips.print_logs":"Use a op\xE7\xE3o {highlight}--print-logs{/highlight} para ver registos detalhados no stderr","tui.tips.timeline":"Prima {highlight}Ctrl+X G{/highlight} ou {highlight}/timeline{/highlight} para saltar para mensagens espec\xEDficas","tui.tips.toggle_code":"Prima {highlight}Ctrl+X H{/highlight} para alternar a visibilidade dos blocos de c\xF3digo nas mensagens","tui.tips.status":"Prima {highlight}Ctrl+X S{/highlight} ou {highlight}/status{/highlight} para ver informa\xE7\xF5es de estado do sistema","tui.tips.scroll_accel":"Ative {highlight}scroll_acceleration{/highlight} em {highlight}tui.json{/highlight} para deslocamento suave no estilo macOS","tui.tips.agents_md":"Fa\xE7a commit do ficheiro {highlight}AGENTS.md{/highlight} do seu projeto no Git para partilhar com a equipa","tui.tips.review":"Use {highlight}/review{/highlight} para rever altera\xE7\xF5es n\xE3o confirmadas, branches ou PRs","tui.tips.help":"Execute {highlight}/help{/highlight} ou {highlight}Ctrl+X H{/highlight} para mostrar o di\xE1logo de ajuda","tui.tips.rename":"Use {highlight}/rename{/highlight} para renomear a sess\xE3o atual","tui.tips.suspend.unix":"Prima {highlight}Ctrl+Z{/highlight} para suspender o terminal e regressar \xE0 sua shell","tui.tips.suspend.win":"Prima {highlight}Ctrl+Z{/highlight} para desfazer altera\xE7\xF5es na sua entrada","tui.command.palette.title":"Comandos","tui.command.palette.suggested":"Sugeridos","tui.command.category.session":"Sess\xE3o","tui.command.category.agent":"Agente","tui.command.category.provider":"Fornecedor","tui.command.category.system":"Sistema","tui.command.category.prompt":"Entrada","tui.command.category.internal":"Interno","tui.command.category.external":"Externo","tui.slash.init.description":"configura\xE7\xE3o guiada de AGENTS.md","tui.slash.review.description":"rever altera\xE7\xF5es [commit|branch|pr], por defeito n\xE3o confirmadas","tui.slash.dream.description":"consolidar manualmente a mem\xF3ria do projeto a partir de ficheiros de mem\xF3ria e trajet\xF3ria bruta","tui.slash.distill.description":"encontrar fluxos repetidos no trabalho recente e empacot\xE1-los em skills, subagentes ou comandos","tui.slash.goal.description":"definir um objetivo com condi\xE7\xE3o de paragem; executa at\xE9 um juiz confirmar. /goal clear para abortar","tui.slash.deep-research.description":"relat\xF3rio de investiga\xE7\xE3o profunda multi-fonte e verificado (executa o workflow deep-research)","tui.command.language.switch.title":"Mudar idioma","tui.command.language.switch.description":"Alterar o idioma de apresenta\xE7\xE3o","tui.command.language.dialog.title":"Mudar idioma","tui.language.auto":"Auto (sistema)","tui.language.current":"Atual","tui.command.session.list.title":"Mudar sess\xE3o","tui.command.session.new.title":"Nova sess\xE3o","tui.command.workflow.list.title":"Fluxos de trabalho","tui.command.model.list.title":"Mudar modelo","tui.command.model.cycle_recent.title":"Ciclo de modelos","tui.command.model.cycle_recent_reverse.title":"Ciclo de modelos (inverso)","tui.command.model.cycle_favorite.title":"Ciclo de favoritos","tui.command.model.cycle_favorite_reverse.title":"Ciclo de favoritos (inverso)","tui.command.agent.list.title":"Mudar agente","tui.command.mcp.list.title":"Alternar MCPs","tui.command.never_ask.title_on":"Sem perguntas: ATIVO (decidir automaticamente, permiss\xF5es exclu\xEDdas) \u2014 clique para desativar","tui.command.never_ask.title_off":"Sem perguntas: INATIVO \u2014 clique para ativar (decidir automaticamente, permiss\xF5es exclu\xEDdas)","tui.command.never_ask.toast_on":"Sem perguntas ATIVO \u2014 n\xE3o lhe perguntarei; escolherei a melhor op\xE7\xE3o at\xE9 desativar (/never-ask). Os pedidos de permiss\xE3o ainda requerem a sua aprova\xE7\xE3o.","tui.command.never_ask.toast_off":"Sem perguntas INATIVO \u2014 voltarei a perguntar nos pontos de decis\xE3o.","tui.command.agent.cycle.title":"Ciclo de agentes","tui.command.variant.cycle.title":"Ciclo de variantes","tui.command.variant.list.title":"Mudar variante de modelo","tui.command.agent.cycle.reverse.title":"Ciclo de agentes (inverso)","tui.command.provider.login.title":"Iniciar sess\xE3o","tui.command.provider.logout.title":"Terminar sess\xE3o","tui.command.console.org.switch.title":"Mudar organiza\xE7\xE3o","tui.command.qitqode.status.title":"Ver estado","tui.command.worktree.list.title":"\xC1rvores de trabalho","tui.command.theme.switch.title":"Mudar tema","tui.command.theme.switch_mode.to_light":"Mudar para modo claro","tui.command.theme.switch_mode.to_dark":"Mudar para modo escuro","tui.command.theme.mode.unlock":"Desbloquear modo do tema","tui.command.theme.mode.lock":"Bloquear modo do tema","tui.command.help.show.title":"Ajuda","tui.dialog.help.close_hint":"esc/enter/space","tui.dialog.help.accessibility":"Acessibilidade: alterne anima\xE7\xF5es e som na lista de comandos. Vari\xE1veis de ambiente: NO_COLOR, QITQODE_TUI_ACCESSIBLE, QITQODE_REDUCE_MOTION, QITQODE_TUI_SOUND.","tui.dialog.help.announcements":"An\xFAncios: no modo acess\xEDvel, escolha o n\xEDvel de detalhe dos an\xFAncios para leitores de tela (silencioso, normal, detalhado) na lista de comandos ou com QITQODE_TUI_ANNOUNCEMENTS. Erros s\xE3o sempre anunciados.","tui.dialog.help.dialog_keys":"Di\xE1logos: todos os di\xE1logos funcionam apenas com o teclado \u2014 Esc fecha, Tab ou as setas movem o foco, Enter ou Espa\xE7o ativa o controle em foco.","tui.command.app.announcements.cycle":"An\xFAncios: {{level}} (selecione para alterar)","tui.announcements.level.quiet":"silencioso","tui.announcements.level.normal":"normal","tui.announcements.level.verbose":"detalhado","tui.app.terminal_too_small":"Terminal muito pequeno ({{width}}x{{height}}). Redimensione para pelo menos 40x8.","tui.dialog.help.command_list":"Prima {{keybind}} para ver todas as a\xE7\xF5es e comandos dispon\xEDveis em qualquer contexto.","tui.dialog.help.ok":"ok","tui.dialog.close_hint":"esc","tui.dialog.document.scroll_hint":"\u2191/\u2193 rolar \xB7 PgUp/PgDn p\xE1gina \xB7 esc fechar","tui.dialog.ok":"ok","tui.dialog.confirm.cancel":"Cancelar","tui.dialog.confirm.confirm":"Confirmar","tui.dialog.agreement.title":"Termos e Privacidade","tui.dialog.agreement.message":"Por favor reveja e aceite para continuar.","tui.dialog.agreement.confirm":"Aceitar e Continuar","tui.command.docs.terms.title":"Ver os termos de servi\xE7o","tui.command.docs.privacy.title":"Ver a pol\xEDtica de privacidade","tui.command.consent.revoke.title":"Revogar o acordo de modelo gratuito","tui.consent.revoked":"Acordo de modelo gratuito revogado \u2014 ser-lhe-\xE1 pedido que aceite novamente","tui.dialog.select.placeholder":"Pesquisar","tui.dialog.select.no_results":"Sem resultados","tui.dialog.prompt.placeholder":"Introduza texto","tui.dialog.prompt.busy":"A trabalhar...","tui.dialog.prompt.processing":"a processar...","tui.dialog.prompt.submit_key":"enter","tui.dialog.prompt.submit_action":"enviar","tui.dialog.export.title":"Op\xE7\xF5es de Exporta\xE7\xE3o","tui.dialog.export.filename":"Nome do ficheiro:","tui.dialog.export.filename_placeholder":"Introduza o nome do ficheiro","tui.dialog.export.include_thinking":"Incluir racioc\xEDnio","tui.dialog.export.include_tool_details":"Incluir detalhes das ferramentas","tui.dialog.export.include_assistant_metadata":"Incluir metadados do assistente","tui.dialog.export.open_without_saving":"Abrir sem guardar","tui.dialog.export.hint.toggle_prefix":"Prima","tui.dialog.export.hint.toggle_action":"para alternar","tui.dialog.export.hint.confirm_action":"para confirmar","tui.dialog.export.hint.options_action":"para op\xE7\xF5es","tui.toast.copied_to_clipboard":"Copiado para a \xE1rea de transfer\xEAncia","tui.toast.instructions_loaded":"Carregado {{files}}","tui.toast.update_available.title":"Atualiza\xE7\xE3o Dispon\xEDvel","tui.toast.update_available.confirm":"Uma nova vers\xE3o v{{version}} est\xE1 dispon\xEDvel. Deseja atualizar agora?","tui.toast.update_available.updating":"A atualizar para v{{version}}...","tui.toast.update_available.failed":"A atualiza\xE7\xE3o falhou","tui.toast.update_available.success":"Atualizado com sucesso para QitQode v{{version}}. Por favor reinicie a aplica\xE7\xE3o.","tui.toast.updated.title":"Atualizado automaticamente","tui.toast.updated.message":"Atualiza\xE7\xE3o de patch aplicada: v{{version}}. Reinicie para usar a nova vers\xE3o. Desative com autoupdate: false na configura\xE7\xE3o.","tui.sidebar.instructions":"Instru\xE7\xF5es","tui.sidebar.cwd":"Diret\xF3rio de Trabalho","tui.toast.unknown_error":"Ocorreu um erro desconhecido","tui.command.docs.open.title":"Abrir documenta\xE7\xE3o","tui.command.app.exit.title":"Sair da aplica\xE7\xE3o","tui.command.app.debug.title":"Alternar painel de depura\xE7\xE3o","tui.command.app.console.title":"Alternar consola","tui.command.app.heap_snapshot.title":"Escrever snapshot do heap","tui.command.terminal.suspend.title":"Suspender terminal","tui.command.terminal.title.disable":"Desativar t\xEDtulo do terminal","tui.command.terminal.title.enable":"Ativar t\xEDtulo do terminal","tui.command.app.toggle.animations.disable":"Desativar anima\xE7\xF5es","tui.command.app.toggle.animations.enable":"Ativar anima\xE7\xF5es","tui.command.app.toggle.diffwrap.disable":"Desativar quebra de diff","tui.command.app.toggle.diffwrap.enable":"Ativar quebra de diff","tui.command.app.toggle.sound.disable":"Desativar som","tui.command.app.toggle.sound.enable":"Ativar som","tui.command.logout.toast":"Sess\xE3o terminada","tui.command.session.share.title":"Partilhar sess\xE3o","tui.command.session.share.copy_link":"Copiar liga\xE7\xE3o de partilha","tui.command.session.rename.title":"Renomear sess\xE3o","tui.command.session.timeline.title":"Saltar para mensagem","tui.command.session.fork.title":"Bifurcar sess\xE3o","tui.command.session.compact.title":"Compactar sess\xE3o","tui.command.session.unshare.title":"Deixar de partilhar","tui.command.session.undo.title":"Desfazer mensagem anterior","tui.command.session.redo.title":"Refazer","tui.command.session.sidebar.show":"Mostrar painel lateral","tui.command.session.sidebar.hide":"Ocultar painel lateral","tui.command.session.conceal.disable":"Desativar oculta\xE7\xE3o de c\xF3digo","tui.command.session.conceal.enable":"Ativar oculta\xE7\xE3o de c\xF3digo","tui.command.session.timestamps.show":"Mostrar marcas temporais","tui.command.session.timestamps.hide":"Ocultar marcas temporais","tui.command.session.thinking.expand":"Expandir racioc\xEDnio","tui.command.session.thinking.collapse":"Recolher racioc\xEDnio","tui.command.session.tool_details.show":"Mostrar detalhes das ferramentas","tui.command.session.tool_details.hide":"Ocultar detalhes das ferramentas","tui.command.session.scrollbar.toggle":"Alternar barra de deslocamento da sess\xE3o","tui.command.session.generic_tool_output.show":"Mostrar sa\xEDda de ferramenta gen\xE9rica","tui.command.session.generic_tool_output.hide":"Ocultar sa\xEDda de ferramenta gen\xE9rica","tui.command.session.page_up.title":"P\xE1gina acima","tui.command.session.page_down.title":"P\xE1gina abaixo","tui.command.session.line_up.title":"Linha acima","tui.command.session.line_down.title":"Linha abaixo","tui.command.session.half_page_up.title":"Meia p\xE1gina acima","tui.command.session.half_page_down.title":"Meia p\xE1gina abaixo","tui.command.session.first.title":"Primeira mensagem","tui.command.session.last.title":"\xDAltima mensagem","tui.command.session.last_user.title":"Saltar para \xFAltima mensagem do utilizador","tui.command.session.message_next.title":"Mensagem seguinte","tui.command.session.message_previous.title":"Mensagem anterior","tui.command.messages.copy.title":"Copiar \xFAltima mensagem do assistente","tui.command.session.copy.title":"Copiar transcri\xE7\xE3o da sess\xE3o","tui.command.session.export.title":"Exportar transcri\xE7\xE3o da sess\xE3o","tui.command.session.child_first.title":"Ir para sess\xE3o filho","tui.command.session.parent.title":"Ir para sess\xE3o pai","tui.command.session.child_next.title":"Pr\xF3xima sess\xE3o filho","tui.command.session.child_previous.title":"Sess\xE3o filho anterior","tui.command.prompt.clear.title":"Limpar entrada","tui.command.prompt.submit.title":"Enviar prompt","tui.command.prompt.paste.title":"Colar","tui.command.session.interrupt.title":"Interromper sess\xE3o","tui.command.prompt.editor.title":"Abrir editor","tui.command.prompt.skills.title":"Skills","tui.command.voice.toggle.title":"Alternar entrada de voz","tui.command.voice.toggle.title_on":"Entrada de voz: ATIVA \u2014 clique para desativar","tui.command.voice.toggle.title_off":"Entrada de voz: INATIVA \u2014 clique para ativar","tui.command.voice.send.title":"Alternar envio por voz","tui.command.voice.send.title_on":"Envio por voz: ATIVO \u2014 clique para desativar","tui.command.voice.send.title_off":"Envio por voz: INATIVO \u2014 clique para ativar","tui.voice.enabled":"Entrada de voz ativa (Chin\xEAs/Ingl\xEAs) \u2014 clique em [Voice] para gravar","tui.voice.disabled":"Entrada de voz desativada","tui.voice.send.enabled":'Envio por voz ativo \u2014 ap\xF3s uma pausa, diga claramente "send it" para enviar',"tui.voice.send.disabled":"Envio por voz desativado","tui.voice.control.enabled":"Controlo por voz ativo \u2014 usa modelo multimodal para edi\xE7\xE3o inteligente (mais lento)","tui.voice.control.disabled":"Controlo por voz inativo \u2014 usa transcri\xE7\xE3o ASR r\xE1pida","tui.command.voice.control.title":"Alternar controlo por voz (multimodal)","tui.command.voice.control.title_on":"Controlo por voz: ATIVO (multimodal) \u2014 clique para desativar","tui.command.voice.control.title_off":"Controlo por voz: INATIVO (ASR r\xE1pido) \u2014 clique para ativar","tui.voice.error.no_auth":"Use /connect para iniciar sess\xE3o no QitQode, ou configure voice.asr_model para outro fornecedor","tui.voice.error.no_auth_provider":'O fornecedor de voz "{{provider}}" n\xE3o est\xE1 autenticado, verifique a sua apiKey',"tui.voice.error.provider_not_found":'Fornecedor "{{provider}}" n\xE3o dispon\xEDvel \u2014 /connect para autenticar, ou declare models na configura\xE7\xE3o para endpoints personalizados',"tui.voice.error.no_url":'O fornecedor "{{provider}}" n\xE3o tem baseURL configurada \u2014 defina options.baseURL na configura\xE7\xE3o do fornecedor',"tui.voice.error.no_device":"Nenhum microfone/dispositivo de \xE1udio encontrado \u2014 verifique as defini\xE7\xF5es de \xE1udio do sistema","tui.voice.error.recorder_failed":"A grava\xE7\xE3o falhou","tui.voice.error.no_recorder":"Nenhuma ferramenta de grava\xE7\xE3o encontrada, instale sox","tui.voice.error.too_short":"Grava\xE7\xE3o demasiado curta","tui.voice.error.network":"A transcri\xE7\xE3o falhou, verifique a sua rede","tui.voice.error.empty_send":"Nada para enviar","tui.voice.error.unknown_agent":'Agente "{{name}}" n\xE3o encontrado',"tui.command.prompt.stash.title":"Guardar prompt","tui.command.prompt.stash.pop.title":"Recuperar prompt","tui.command.prompt.stash.list.title":"Lista de prompts guardados","tui.command.tips.toggle.show":"Mostrar dicas","tui.command.tips.toggle.hide":"Ocultar dicas","tui.command.plugins.list.title":"Plugins","tui.command.plugins.install.title":"Instalar plugin","tui.dialog.login.title":"In\xEDcio de Sess\xE3o QitQode","cli.providers.select":"Selecionar fornecedor","cli.providers.other":"Outro fornecedor","tui.dialog.login.import_claude":"Importar do Claude Code","tui.dialog.login.other":"Outro Fornecedor","tui.dialog.login.import_claude.no_key":"Chave API do Claude Code n\xE3o encontrada","tui.dialog.login.import_claude.read_failed":"Falha ao ler ~/.claude/settings.json","tui.dialog.login.import_claude.success":"Importado do Claude Code","tui.question.plan_enter.question":"Deseja mudar para o modo plan para planeamento estruturado?","tui.question.plan_enter.header":"Entrar no plan","tui.question.plan_enter.option.0.label":"Sim","tui.question.plan_enter.option.0.description":"Mudar para o agente plan para planeamento s\xF3 de leitura","tui.question.plan_enter.option.1.label":"N\xE3o","tui.question.plan_enter.option.1.description":"Permanecer no modo atual","tui.question.plan_exit.question":"O plan em {{plan}} est\xE1 completo. Deseja mudar para o agente build e come\xE7ar a implementa\xE7\xE3o?","tui.question.plan_exit.header":"Sair do plan","tui.question.plan_exit.option.0.label":"Sim","tui.question.plan_exit.option.0.description":"Mudar para o agente build e come\xE7ar a implementa\xE7\xE3o do plan","tui.question.plan_exit.option.1.label":"N\xE3o","tui.question.plan_exit.option.1.description":"Permanecer com o agente plan para continuar a refinar","tui.session.badge.auto":"Auto","trust.title":"A aceder ao espa\xE7o de trabalho:","trust.safety_check":"Verifica\xE7\xE3o r\xE1pida de seguran\xE7a: Este \xE9 um projeto que criou ou em que confia? (Como o seu pr\xF3prio c\xF3digo, um projeto open source conhecido ou trabalho da sua equipa). Se n\xE3o, reserve um momento para rever o que est\xE1 nesta pasta.","trust.capabilities":"O QitQode poder\xE1 ler, editar e executar ficheiros aqui.","trust.plugin_warn":"Se existirem plugins maliciosos neste diret\xF3rio, podem executar c\xF3digo arbitr\xE1rio, ler, modificar ou exfiltrar os seus ficheiros.","trust.option.yes":"Sim, confio nesta pasta","trust.option.no":"N\xE3o, sair","trust.dangerous.title_home":"AVISO: Est\xE1 prestes a abrir o seu DIRET\xD3RIO PESSOAL.","trust.dangerous.title_root":"AVISO: Est\xE1 prestes a abrir a RAIZ DO SISTEMA DE FICHEIROS.","trust.dangerous.body_home":"O modelo ter\xE1 acesso a TODOS os seus ficheiros pessoais \u2014 chaves SSH, credenciais, perfis de navegador e tudo o resto sob a sua pasta pessoal.","trust.dangerous.body_root":"O modelo ter\xE1 acesso ao SISTEMA DE FICHEIROS INTEIRO \u2014 ficheiros do sistema, todos os dados de utilizador, credenciais e tudo nesta m\xE1quina.","trust.dangerous.advice_home":"A menos que tenha uma raz\xE3o muito espec\xEDfica, N\xC3O confie em todo o seu diret\xF3rio pessoal.","trust.dangerous.advice_root":"A menos que tenha uma raz\xE3o muito espec\xEDfica, N\xC3O confie na raiz do sistema de ficheiros.","trust.dangerous.option.yes":"Compreendo os riscos, confiar apenas nesta sess\xE3o","trust.dangerous.option.no":"Sair (recomendado)"};export{f as dict};
2
+ import"./chunk-54pk7nna.js";import"./chunk-s2za1y84.js";var f={"language.en":"English","language.zh":"\u7B80\u4F53\u4E2D\u6587","language.zht":"\u7E41\u9AD4\u4E2D\u6587","language.ko":"\uD55C\uAD6D\uC5B4","language.de":"Deutsch","language.es":"Espa\xF1ol","language.fr":"Fran\xE7ais","language.da":"Dansk","language.ja":"\u65E5\u672C\u8A9E","language.pl":"Polski","language.ru":"\u0420\u0443\u0441\u0441\u043A\u0438\u0439","language.ar":"\u0627\u0644\u0639\u0631\u0628\u064A\u0629","language.no":"Norsk","language.br":"Portugu\xEAs (Brasil)","language.pt":"Portugu\xEAs","language.bs":"Bosanski","language.th":"\u0E44\u0E17\u0E22","language.tr":"T\xFCrk\xE7e","tui.prompt.placeholder.normal":"Escreva a sua mensagem... (escreva / para comandos)","tui.prompt.placeholder.shell":'Execute um comando... "{{example}}"',"tui.prompt.ghost":"{{prediction}} (Tab para aceitar)","tui.home.placeholder.example.todo":"Corrigir um TODO no c\xF3digo","tui.home.placeholder.example.stack":"Qual \xE9 a stack tecnol\xF3gica deste projeto?","tui.home.placeholder.example.tests":"Corrigir testes falhados","tui.home.agreement.prefix":"Ao usar o QitQode, concorda com os nossos ","tui.home.agreement.terms":"Termos de Servi\xE7o","tui.home.agreement.separator":" e a ","tui.home.agreement.privacy":"Pol\xEDtica de Privacidade","tui.home.agreement.suffix":"","tui.prompt.hint.attach_file":"anexar ficheiro","tui.prompt.hint.subagent":"subagente","tui.prompt.hint.commands":"comandos","tui.prompt.hint.switch_mode":"mudar modo","tui.prompt.hint.settings":"defini\xE7\xF5es","tui.tips.label":"Dica","tui.tips.plain_terminal":"Recomendamos usar o iTerm ou o terminal do VS Code","tui.tips.attach_file":"Escreva {highlight}@{/highlight} seguido do nome do ficheiro para pesquisar e anexar ficheiros","tui.tips.shell_prefix":"Inicie uma mensagem com {highlight}!{/highlight} para executar comandos de shell diretamente (ex.: {highlight}!ls -la{/highlight})","tui.tips.tab_agent":"Prima {highlight}Tab{/highlight} ou {highlight}Shift+Tab{/highlight} para alternar entre os agentes Build, Plan e Compose","tui.tips.theme_mode":"Execute {highlight}/dark{/highlight} para o modo escuro ou {highlight}/light{/highlight} para o modo claro","tui.tips.doc":"Execute {highlight}/doc{/highlight} para abrir a documenta\xE7\xE3o do utilizador","tui.tips.undo":"Use {highlight}/undo{/highlight} para reverter a \xFAltima mensagem e altera\xE7\xF5es em ficheiros","tui.tips.redo":"Use {highlight}/redo{/highlight} para restaurar mensagens e altera\xE7\xF5es desfeitas anteriormente","tui.tips.drag_drop":"Arraste e solte imagens ou PDFs no terminal para os adicionar como contexto","tui.tips.paste_image":"Prima {highlight}Ctrl+V{/highlight} para colar imagens da \xE1rea de transfer\xEAncia na entrada","tui.tips.editor":"Prima {highlight}Ctrl+X E{/highlight} ou {highlight}/editor{/highlight} para compor mensagens no seu editor externo","tui.tips.init":"Execute {highlight}/init{/highlight} para gerar automaticamente regras do projeto a partir do seu c\xF3digo","tui.tips.models":"Execute {highlight}/models{/highlight} ou {highlight}Ctrl+X M{/highlight} para alternar entre os modelos dispon\xEDveis","tui.tips.theme":'Trave o modo de tema contra o fundo do seu terminal \u2014 abra a paleta de comandos ({highlight}Ctrl+P{/highlight}) e busque "lock"',"tui.tips.new_session":"Prima {highlight}Ctrl+X N{/highlight} ou {highlight}/new{/highlight} para iniciar uma nova sess\xE3o","tui.tips.sessions":"Use {highlight}/sessions{/highlight} ou {highlight}Ctrl+X L{/highlight} para listar e continuar conversas anteriores","tui.tips.compact":"Execute {highlight}/compact{/highlight} para resumir sess\xF5es longas pr\xF3ximas dos limites de contexto","tui.tips.export":"Prima {highlight}Ctrl+X X{/highlight} ou {highlight}/export{/highlight} para guardar a conversa como Markdown","tui.tips.copy_last":"Prima {highlight}Ctrl+X Y{/highlight} para copiar a \xFAltima mensagem do assistente para a \xE1rea de transfer\xEAncia","tui.tips.command_palette":"Prima {highlight}Ctrl+P{/highlight} para ver todas as a\xE7\xF5es e comandos dispon\xEDveis","tui.tips.leader":"A tecla l\xEDder \xE9 {highlight}Ctrl+X{/highlight}; combine-a com outras teclas para a\xE7\xF5es r\xE1pidas","tui.tips.f2":"Prima {highlight}F2{/highlight} para alternar rapidamente entre os modelos usados recentemente","tui.tips.sidebar":"Prima {highlight}Ctrl+X B{/highlight} para mostrar/ocultar o painel lateral","tui.tips.history":"Use {highlight}PageUp{/highlight}/{highlight}PageDown{/highlight} para navegar no hist\xF3rico da conversa","tui.tips.jump_first":"Prima {highlight}Ctrl+G{/highlight} ou {highlight}Home{/highlight} para ir ao in\xEDcio da conversa","tui.tips.jump_last":"Prima {highlight}Ctrl+Alt+G{/highlight} ou {highlight}End{/highlight} para ir \xE0 mensagem mais recente","tui.tips.newline":"Prima {highlight}Shift+Enter{/highlight} ou {highlight}Ctrl+J{/highlight} para adicionar novas linhas na entrada","tui.tips.clear_input":"Prima {highlight}Ctrl+C{/highlight} ao escrever para limpar o campo de entrada","tui.tips.escape":"Prima {highlight}Escape{/highlight} para parar a resposta da IA a meio","tui.tips.plan_agent":"Mude para o agente {highlight}Plan{/highlight} para obter sugest\xF5es sem efetuar altera\xE7\xF5es reais","tui.tips.subagent":"Use {highlight}@agent-name{/highlight} nas entradas para invocar subagentes especializados","tui.tips.cycle_sessions":"Prima {highlight}Ctrl+X Right/Left{/highlight} para alternar entre sess\xF5es pai e filho","tui.tips.config_files":"Crie {highlight}qitqode.json{/highlight} para defini\xE7\xF5es do servidor e {highlight}tui.json{/highlight} para a TUI","tui.tips.global_config":"Coloque as defini\xE7\xF5es da TUI em {highlight}~/.config/qitqode/tui.json{/highlight} para configura\xE7\xE3o global","tui.tips.schema":"Adicione {highlight}$schema{/highlight} \xE0 sua configura\xE7\xE3o para autocompletar no editor","tui.tips.default_model":"Configure {highlight}model{/highlight} na configura\xE7\xE3o para definir o seu modelo predefinido","tui.tips.keybinds":"Substitua qualquer atalho em {highlight}tui.json{/highlight} atrav\xE9s da sec\xE7\xE3o {highlight}keybinds{/highlight}","tui.tips.disable_keybind":"Defina qualquer atalho como {highlight}none{/highlight} para o desativar completamente","tui.tips.mcp_config":"Configure servidores MCP locais ou remotos na sec\xE7\xE3o de configura\xE7\xE3o {highlight}mcp{/highlight}","tui.tips.mcp_oauth":"O QitQode gere automaticamente o OAuth para servidores MCP remotos que requerem autentica\xE7\xE3o","tui.tips.custom_command":"Adicione ficheiros {highlight}.md{/highlight} a {highlight}.qitqode/command/{/highlight} para definir prompts personalizados reutiliz\xE1veis","tui.tips.command_args":"Use {highlight}$ARGUMENTS{/highlight}, {highlight}$1{/highlight}, {highlight}$2{/highlight} em comandos personalizados para entrada din\xE2mica","tui.tips.command_backticks":"Use acentos graves em comandos para injetar sa\xEDda de shell (ex.: {highlight}`git status`{/highlight})","tui.tips.custom_agent":"Adicione ficheiros {highlight}.md{/highlight} a {highlight}.qitqode/agent/{/highlight} para personas de IA especializadas","tui.tips.agent_perms":"Configure permiss\xF5es por agente para as ferramentas {highlight}edit{/highlight}, {highlight}bash{/highlight} e {highlight}webfetch{/highlight}","tui.tips.bash_allow":'Use padr\xF5es como {highlight}"git *": "allow"{/highlight} para permiss\xF5es de bash mais granulares',"tui.tips.bash_deny":'Defina {highlight}"rm -rf *": "deny"{/highlight} para bloquear comandos destrutivos',"tui.tips.bash_ask":'Configure {highlight}"git push": "ask"{/highlight} para exigir aprova\xE7\xE3o antes de fazer push',"tui.tips.formatter":"O QitQode formata ficheiros automaticamente com prettier, gofmt, ruff e mais","tui.tips.disable_formatter":'Defina {highlight}"formatter": false{/highlight} na configura\xE7\xE3o para desativar toda a formata\xE7\xE3o autom\xE1tica',"tui.tips.custom_formatter":"Defina comandos de formata\xE7\xE3o personalizados com extens\xF5es de ficheiro na configura\xE7\xE3o","tui.tips.lsp":"O QitQode usa servidores LSP para an\xE1lise de c\xF3digo inteligente","tui.tips.custom_tool":"Crie ficheiros {highlight}.ts{/highlight} em {highlight}.qitqode/tools/{/highlight} para definir novas ferramentas LLM","tui.tips.tool_scripts":"As defini\xE7\xF5es de ferramentas podem invocar scripts escritos em Python, Go, etc.","tui.tips.plugins":"Adicione ficheiros {highlight}.ts{/highlight} a {highlight}.qitqode/plugin/{/highlight} para ganchos de eventos","tui.tips.plugin_notify":"Use plugins para enviar notifica\xE7\xF5es do sistema operativo quando as sess\xF5es terminam","tui.tips.plugin_protect":"Crie um plugin para impedir que o QitQode leia ficheiros sens\xEDveis","tui.tips.run":"Use {highlight}qitqode run{/highlight} para scripting n\xE3o interativo","tui.tips.continue":"Use {highlight}qitqode --continue{/highlight} para retomar a \xFAltima sess\xE3o","tui.tips.attach_cli":"Use {highlight}qitqode run -f file.ts{/highlight} para anexar ficheiros via CLI","tui.tips.format_json":"Use {highlight}--format json{/highlight} para sa\xEDda leg\xEDvel por m\xE1quina em scripts","tui.tips.auth_list":"Execute {highlight}qitqode auth status{/highlight} para ver seu status de login atual","tui.tips.agent_create":"Execute {highlight}qitqode agent create{/highlight} para cria\xE7\xE3o guiada de agentes","tui.tips.theme_system":'Use {highlight}"theme": "system"{/highlight} para corresponder \xE0s cores do seu terminal',"tui.tips.theme_files":"Crie ficheiros de tema JSON no diret\xF3rio {highlight}.qitqode/themes/{/highlight}","tui.tips.theme_variants":"Os temas suportam variantes escura/clara para ambos os modos","tui.tips.theme_ansi":"Referencie cores ANSI 0-255 em temas personalizados","tui.tips.env_var":"Use a sintaxe {highlight}{env:VAR_NAME}{/highlight} para referenciar vari\xE1veis de ambiente na configura\xE7\xE3o","tui.tips.file_var":"Use {highlight}{file:path}{/highlight} para incluir conte\xFAdo de ficheiros em valores de configura\xE7\xE3o","tui.tips.instructions":"Use {highlight}instructions{/highlight} na configura\xE7\xE3o para carregar ficheiros de regras adicionais","tui.tips.temperature":"Defina a {highlight}temperature{/highlight} do agente de 0.0 (focado) a 1.0 (criativo)","tui.tips.steps":"Configure {highlight}steps{/highlight} para limitar as itera\xE7\xF5es ag\xEAnticas por pedido","tui.tips.disable_tool":'Defina {highlight}"tools": {"bash": false}{/highlight} para desativar ferramentas espec\xEDficas',"tui.tips.disable_mcp_tools":'Defina {highlight}"mcp_*": false{/highlight} para desativar todas as ferramentas de um servidor MCP',"tui.tips.tool_override":"Substitua as defini\xE7\xF5es globais de ferramentas por configura\xE7\xE3o de agente","tui.tips.doom_loop":"A permiss\xE3o {highlight}doom_loop{/highlight} previne ciclos infinitos de chamadas a ferramentas","tui.tips.external_dir":"A permiss\xE3o {highlight}external_directory{/highlight} protege ficheiros fora do projeto","tui.tips.debug_config":"Execute {highlight}qitqode debug config{/highlight} para diagnosticar problemas de configura\xE7\xE3o","tui.tips.print_logs":"Use a op\xE7\xE3o {highlight}--print-logs{/highlight} para ver registos detalhados no stderr","tui.tips.timeline":"Prima {highlight}Ctrl+X G{/highlight} ou {highlight}/timeline{/highlight} para saltar para mensagens espec\xEDficas","tui.tips.toggle_code":"Prima {highlight}Ctrl+X H{/highlight} para alternar a visibilidade dos blocos de c\xF3digo nas mensagens","tui.tips.status":"Prima {highlight}Ctrl+X S{/highlight} ou {highlight}/status{/highlight} para ver informa\xE7\xF5es de estado do sistema","tui.tips.scroll_accel":"Ative {highlight}scroll_acceleration{/highlight} em {highlight}tui.json{/highlight} para deslocamento suave no estilo macOS","tui.tips.agents_md":"Fa\xE7a commit do ficheiro {highlight}AGENTS.md{/highlight} do seu projeto no Git para partilhar com a equipa","tui.tips.review":"Use {highlight}/review{/highlight} para rever altera\xE7\xF5es n\xE3o confirmadas, branches ou PRs","tui.tips.help":"Execute {highlight}/help{/highlight} ou {highlight}Ctrl+X H{/highlight} para mostrar o di\xE1logo de ajuda","tui.tips.rename":"Use {highlight}/rename{/highlight} para renomear a sess\xE3o atual","tui.tips.suspend.unix":"Prima {highlight}Ctrl+Z{/highlight} para suspender o terminal e regressar \xE0 sua shell","tui.tips.suspend.win":"Prima {highlight}Ctrl+Z{/highlight} para desfazer altera\xE7\xF5es na sua entrada","tui.command.palette.title":"Comandos","tui.command.palette.suggested":"Sugeridos","tui.command.category.session":"Sess\xE3o","tui.command.category.agent":"Agente","tui.command.category.provider":"Fornecedor","tui.command.category.system":"Sistema","tui.command.category.prompt":"Entrada","tui.command.category.internal":"Interno","tui.command.category.external":"Externo","tui.slash.init.description":"configura\xE7\xE3o guiada de AGENTS.md","tui.slash.review.description":"rever altera\xE7\xF5es [commit|branch|pr], por defeito n\xE3o confirmadas","tui.slash.dream.description":"consolidar manualmente a mem\xF3ria do projeto a partir de ficheiros de mem\xF3ria e trajet\xF3ria bruta","tui.slash.distill.description":"encontrar fluxos repetidos no trabalho recente e empacot\xE1-los em skills, subagentes ou comandos","tui.slash.goal.description":"definir um objetivo com condi\xE7\xE3o de paragem; executa at\xE9 um juiz confirmar. /goal clear para abortar","tui.slash.deep-research.description":"relat\xF3rio de investiga\xE7\xE3o profunda multi-fonte e verificado (executa o workflow deep-research)","tui.command.language.switch.title":"Mudar idioma","tui.command.language.switch.description":"Alterar o idioma de apresenta\xE7\xE3o","tui.command.language.dialog.title":"Mudar idioma","tui.language.auto":"Auto (sistema)","tui.language.current":"Atual","tui.command.session.list.title":"Mudar sess\xE3o","tui.command.session.new.title":"Nova sess\xE3o","tui.command.workflow.list.title":"Fluxos de trabalho","tui.command.model.list.title":"Mudar modelo","tui.command.model.cycle_recent.title":"Ciclo de modelos","tui.command.model.cycle_recent_reverse.title":"Ciclo de modelos (inverso)","tui.command.model.cycle_favorite.title":"Ciclo de favoritos","tui.command.model.cycle_favorite_reverse.title":"Ciclo de favoritos (inverso)","tui.command.agent.list.title":"Mudar agente","tui.command.mcp.list.title":"Alternar MCPs","tui.command.never_ask.title_on":"Sem perguntas: ATIVO (decidir automaticamente, permiss\xF5es exclu\xEDdas) \u2014 clique para desativar","tui.command.never_ask.title_off":"Sem perguntas: INATIVO \u2014 clique para ativar (decidir automaticamente, permiss\xF5es exclu\xEDdas)","tui.command.never_ask.toast_on":"Sem perguntas ATIVO \u2014 n\xE3o lhe perguntarei; escolherei a melhor op\xE7\xE3o at\xE9 desativar (/never-ask). Os pedidos de permiss\xE3o ainda requerem a sua aprova\xE7\xE3o.","tui.command.never_ask.toast_off":"Sem perguntas INATIVO \u2014 voltarei a perguntar nos pontos de decis\xE3o.","tui.command.agent.cycle.title":"Ciclo de agentes","tui.command.variant.cycle.title":"Ciclo de variantes","tui.command.variant.list.title":"Mudar variante de modelo","tui.command.agent.cycle.reverse.title":"Ciclo de agentes (inverso)","tui.command.provider.login.title":"Iniciar sess\xE3o","tui.command.provider.logout.title":"Terminar sess\xE3o","tui.command.console.org.switch.title":"Mudar organiza\xE7\xE3o","tui.command.qitqode.status.title":"Ver estado","tui.command.worktree.list.title":"\xC1rvores de trabalho","tui.command.theme.switch.title":"Mudar tema","tui.command.theme.switch_mode.to_light":"Mudar para modo claro","tui.command.theme.switch_mode.to_dark":"Mudar para modo escuro","tui.command.theme.mode.unlock":"Desbloquear modo do tema","tui.command.theme.mode.lock":"Bloquear modo do tema","tui.command.help.show.title":"Ajuda","tui.dialog.help.close_hint":"esc/enter/space","tui.dialog.help.accessibility":"Acessibilidade: alterne anima\xE7\xF5es e som na lista de comandos. Vari\xE1veis de ambiente: NO_COLOR, QITQODE_TUI_ACCESSIBLE, QITQODE_REDUCE_MOTION, QITQODE_TUI_SOUND.","tui.dialog.help.announcements":"An\xFAncios: no modo acess\xEDvel, escolha o n\xEDvel de detalhe dos an\xFAncios para leitores de tela (silencioso, normal, detalhado) na lista de comandos ou com QITQODE_TUI_ANNOUNCEMENTS. Erros s\xE3o sempre anunciados.","tui.dialog.help.dialog_keys":"Di\xE1logos: todos os di\xE1logos funcionam apenas com o teclado \u2014 Esc fecha, Tab ou as setas movem o foco, Enter ou Espa\xE7o ativa o controle em foco.","tui.command.app.announcements.cycle":"An\xFAncios: {{level}} (selecione para alterar)","tui.announcements.level.quiet":"silencioso","tui.announcements.level.normal":"normal","tui.announcements.level.verbose":"detalhado","tui.app.terminal_too_small":"Terminal muito pequeno ({{width}}x{{height}}). Redimensione para pelo menos 40x8.","tui.dialog.help.command_list":"Prima {{keybind}} para ver todas as a\xE7\xF5es e comandos dispon\xEDveis em qualquer contexto.","tui.dialog.help.ok":"ok","tui.dialog.close_hint":"esc","tui.dialog.document.scroll_hint":"\u2191/\u2193 rolar \xB7 PgUp/PgDn p\xE1gina \xB7 esc fechar","tui.dialog.ok":"ok","tui.dialog.confirm.cancel":"Cancelar","tui.dialog.confirm.confirm":"Confirmar","tui.dialog.agreement.title":"Termos e Privacidade","tui.dialog.agreement.message":"Por favor reveja e aceite para continuar.","tui.dialog.agreement.confirm":"Aceitar e Continuar","tui.command.docs.terms.title":"Ver os termos de servi\xE7o","tui.command.docs.privacy.title":"Ver a pol\xEDtica de privacidade","tui.command.consent.revoke.title":"Revogar o acordo de modelo gratuito","tui.consent.revoked":"Acordo de modelo gratuito revogado \u2014 ser-lhe-\xE1 pedido que aceite novamente","tui.dialog.select.placeholder":"Pesquisar","tui.dialog.select.no_results":"Sem resultados","tui.dialog.prompt.placeholder":"Introduza texto","tui.dialog.prompt.busy":"A trabalhar...","tui.dialog.prompt.processing":"a processar...","tui.dialog.prompt.submit_key":"enter","tui.dialog.prompt.submit_action":"enviar","tui.dialog.export.title":"Op\xE7\xF5es de Exporta\xE7\xE3o","tui.dialog.export.filename":"Nome do ficheiro:","tui.dialog.export.filename_placeholder":"Introduza o nome do ficheiro","tui.dialog.export.include_thinking":"Incluir racioc\xEDnio","tui.dialog.export.include_tool_details":"Incluir detalhes das ferramentas","tui.dialog.export.include_assistant_metadata":"Incluir metadados do assistente","tui.dialog.export.open_without_saving":"Abrir sem guardar","tui.dialog.export.hint.toggle_prefix":"Prima","tui.dialog.export.hint.toggle_action":"para alternar","tui.dialog.export.hint.confirm_action":"para confirmar","tui.dialog.export.hint.options_action":"para op\xE7\xF5es","tui.toast.copied_to_clipboard":"Copiado para a \xE1rea de transfer\xEAncia","tui.toast.instructions_loaded":"Carregado {{files}}","tui.toast.update_available.title":"Atualiza\xE7\xE3o Dispon\xEDvel","tui.toast.update_available.confirm":"Uma nova vers\xE3o v{{version}} est\xE1 dispon\xEDvel. Deseja atualizar agora?","tui.toast.update_available.updating":"A atualizar para v{{version}}...","tui.toast.update_available.failed":"A atualiza\xE7\xE3o falhou","tui.toast.update_available.success":"Atualizado com sucesso para QitQode v{{version}}. Por favor reinicie a aplica\xE7\xE3o.","tui.toast.updated.title":"Atualizado automaticamente","tui.toast.updated.message":"Atualiza\xE7\xE3o de patch aplicada: v{{version}}. Reinicie para usar a nova vers\xE3o. Desative com autoupdate: false na configura\xE7\xE3o.","tui.sidebar.instructions":"Instru\xE7\xF5es","tui.sidebar.cwd":"Diret\xF3rio de Trabalho","tui.toast.unknown_error":"Ocorreu um erro desconhecido","tui.command.docs.open.title":"Abrir documenta\xE7\xE3o","tui.command.app.exit.title":"Sair da aplica\xE7\xE3o","tui.command.app.debug.title":"Alternar painel de depura\xE7\xE3o","tui.command.app.console.title":"Alternar consola","tui.command.app.heap_snapshot.title":"Escrever snapshot do heap","tui.command.terminal.suspend.title":"Suspender terminal","tui.command.terminal.title.disable":"Desativar t\xEDtulo do terminal","tui.command.terminal.title.enable":"Ativar t\xEDtulo do terminal","tui.command.app.toggle.animations.disable":"Desativar anima\xE7\xF5es","tui.command.app.toggle.animations.enable":"Ativar anima\xE7\xF5es","tui.command.app.toggle.diffwrap.disable":"Desativar quebra de diff","tui.command.app.toggle.diffwrap.enable":"Ativar quebra de diff","tui.command.app.toggle.sound.disable":"Desativar som","tui.command.app.toggle.sound.enable":"Ativar som","tui.command.logout.toast":"Sess\xE3o terminada","tui.command.session.share.title":"Partilhar sess\xE3o","tui.command.session.share.copy_link":"Copiar liga\xE7\xE3o de partilha","tui.command.session.rename.title":"Renomear sess\xE3o","tui.command.session.timeline.title":"Saltar para mensagem","tui.command.session.fork.title":"Bifurcar sess\xE3o","tui.command.session.compact.title":"Compactar sess\xE3o","tui.command.session.unshare.title":"Deixar de partilhar","tui.command.session.undo.title":"Desfazer mensagem anterior","tui.command.session.redo.title":"Refazer","tui.command.session.sidebar.show":"Mostrar painel lateral","tui.command.session.sidebar.hide":"Ocultar painel lateral","tui.command.session.conceal.disable":"Desativar oculta\xE7\xE3o de c\xF3digo","tui.command.session.conceal.enable":"Ativar oculta\xE7\xE3o de c\xF3digo","tui.command.session.timestamps.show":"Mostrar marcas temporais","tui.command.session.timestamps.hide":"Ocultar marcas temporais","tui.command.session.thinking.expand":"Expandir racioc\xEDnio","tui.command.session.thinking.collapse":"Recolher racioc\xEDnio","tui.command.session.tool_details.show":"Mostrar detalhes das ferramentas","tui.command.session.tool_details.hide":"Ocultar detalhes das ferramentas","tui.command.session.scrollbar.toggle":"Alternar barra de deslocamento da sess\xE3o","tui.command.session.generic_tool_output.show":"Mostrar sa\xEDda de ferramenta gen\xE9rica","tui.command.session.generic_tool_output.hide":"Ocultar sa\xEDda de ferramenta gen\xE9rica","tui.command.session.page_up.title":"P\xE1gina acima","tui.command.session.page_down.title":"P\xE1gina abaixo","tui.command.session.line_up.title":"Linha acima","tui.command.session.line_down.title":"Linha abaixo","tui.command.session.half_page_up.title":"Meia p\xE1gina acima","tui.command.session.half_page_down.title":"Meia p\xE1gina abaixo","tui.command.session.first.title":"Primeira mensagem","tui.command.session.last.title":"\xDAltima mensagem","tui.command.session.last_user.title":"Saltar para \xFAltima mensagem do utilizador","tui.command.session.message_next.title":"Mensagem seguinte","tui.command.session.message_previous.title":"Mensagem anterior","tui.command.messages.copy.title":"Copiar \xFAltima mensagem do assistente","tui.command.session.copy.title":"Copiar transcri\xE7\xE3o da sess\xE3o","tui.command.session.export.title":"Exportar transcri\xE7\xE3o da sess\xE3o","tui.command.session.child_first.title":"Ir para sess\xE3o filho","tui.command.session.parent.title":"Ir para sess\xE3o pai","tui.command.session.child_next.title":"Pr\xF3xima sess\xE3o filho","tui.command.session.child_previous.title":"Sess\xE3o filho anterior","tui.command.prompt.clear.title":"Limpar entrada","tui.command.prompt.submit.title":"Enviar prompt","tui.command.prompt.paste.title":"Colar","tui.command.session.interrupt.title":"Interromper sess\xE3o","tui.command.prompt.editor.title":"Abrir editor","tui.command.prompt.skills.title":"Skills","tui.command.voice.toggle.title":"Alternar entrada de voz","tui.command.voice.toggle.title_on":"Entrada de voz: ATIVA \u2014 clique para desativar","tui.command.voice.toggle.title_off":"Entrada de voz: INATIVA \u2014 clique para ativar","tui.command.voice.send.title":"Alternar envio por voz","tui.command.voice.send.title_on":"Envio por voz: ATIVO \u2014 clique para desativar","tui.command.voice.send.title_off":"Envio por voz: INATIVO \u2014 clique para ativar","tui.voice.enabled":"Entrada de voz ativa (Chin\xEAs/Ingl\xEAs) \u2014 clique em [Voice] para gravar","tui.voice.disabled":"Entrada de voz desativada","tui.voice.send.enabled":'Envio por voz ativo \u2014 ap\xF3s uma pausa, diga claramente "send it" para enviar',"tui.voice.send.disabled":"Envio por voz desativado","tui.voice.control.enabled":"Controlo por voz ativo \u2014 usa modelo multimodal para edi\xE7\xE3o inteligente (mais lento)","tui.voice.control.disabled":"Controlo por voz inativo \u2014 usa transcri\xE7\xE3o ASR r\xE1pida","tui.command.voice.control.title":"Alternar controlo por voz (multimodal)","tui.command.voice.control.title_on":"Controlo por voz: ATIVO (multimodal) \u2014 clique para desativar","tui.command.voice.control.title_off":"Controlo por voz: INATIVO (ASR r\xE1pido) \u2014 clique para ativar","tui.voice.error.no_auth":"Use /connect para iniciar sess\xE3o no QitQode, ou configure voice.asr_model para outro fornecedor","tui.voice.error.no_auth_provider":'O fornecedor de voz "{{provider}}" n\xE3o est\xE1 autenticado, verifique a sua apiKey',"tui.voice.error.provider_not_found":'Fornecedor "{{provider}}" n\xE3o dispon\xEDvel \u2014 /connect para autenticar, ou declare models na configura\xE7\xE3o para endpoints personalizados',"tui.voice.error.no_url":'O fornecedor "{{provider}}" n\xE3o tem baseURL configurada \u2014 defina options.baseURL na configura\xE7\xE3o do fornecedor',"tui.voice.error.no_device":"Nenhum microfone/dispositivo de \xE1udio encontrado \u2014 verifique as defini\xE7\xF5es de \xE1udio do sistema","tui.voice.error.recorder_failed":"A grava\xE7\xE3o falhou","tui.voice.error.no_recorder":"Nenhuma ferramenta de grava\xE7\xE3o encontrada, instale sox","tui.voice.error.too_short":"Grava\xE7\xE3o demasiado curta","tui.voice.error.network":"A transcri\xE7\xE3o falhou, verifique a sua rede","tui.voice.error.empty_send":"Nada para enviar","tui.voice.error.unknown_agent":'Agente "{{name}}" n\xE3o encontrado',"tui.command.prompt.stash.title":"Guardar prompt","tui.command.prompt.stash.pop.title":"Recuperar prompt","tui.command.prompt.stash.list.title":"Lista de prompts guardados","tui.command.tips.toggle.show":"Mostrar dicas","tui.command.tips.toggle.hide":"Ocultar dicas","tui.command.plugins.list.title":"Plugins","tui.command.plugins.install.title":"Instalar plugin","tui.dialog.login.title":"In\xEDcio de Sess\xE3o QitQode","cli.providers.select":"Selecionar fornecedor","cli.providers.other":"Outro fornecedor","tui.dialog.login.import_claude":"Importar do Claude Code","tui.dialog.login.other":"Outro Fornecedor","tui.dialog.login.import_claude.no_key":"Chave API do Claude Code n\xE3o encontrada","tui.dialog.login.import_claude.read_failed":"Falha ao ler ~/.claude/settings.json","tui.dialog.login.import_claude.success":"Importado do Claude Code","tui.question.plan_enter.question":"Deseja mudar para o modo plan para planeamento estruturado?","tui.question.plan_enter.header":"Entrar no plan","tui.question.plan_enter.option.0.label":"Sim","tui.question.plan_enter.option.0.description":"Mudar para o agente plan para planeamento s\xF3 de leitura","tui.question.plan_enter.option.1.label":"N\xE3o","tui.question.plan_enter.option.1.description":"Permanecer no modo atual","tui.question.plan_exit.question":"O plan em {{plan}} est\xE1 completo. Deseja mudar para o agente build e come\xE7ar a implementa\xE7\xE3o?","tui.question.plan_exit.header":"Sair do plan","tui.question.plan_exit.option.0.label":"Sim","tui.question.plan_exit.option.0.description":"Mudar para o agente build e come\xE7ar a implementa\xE7\xE3o do plan","tui.question.plan_exit.option.1.label":"N\xE3o","tui.question.plan_exit.option.1.description":"Permanecer com o agente plan para continuar a refinar","tui.session.badge.auto":"Auto","trust.title":"A aceder ao espa\xE7o de trabalho:","trust.safety_check":"Verifica\xE7\xE3o r\xE1pida de seguran\xE7a: Este \xE9 um projeto que criou ou em que confia? (Como o seu pr\xF3prio c\xF3digo, um projeto open source conhecido ou trabalho da sua equipa). Se n\xE3o, reserve um momento para rever o que est\xE1 nesta pasta.","trust.capabilities":"O QitQode poder\xE1 ler, editar e executar ficheiros aqui.","trust.plugin_warn":"Se existirem plugins maliciosos neste diret\xF3rio, podem executar c\xF3digo arbitr\xE1rio, ler, modificar ou exfiltrar os seus ficheiros.","trust.option.yes":"Sim, confio nesta pasta","trust.option.no":"N\xE3o, sair","trust.dangerous.title_home":"AVISO: Est\xE1 prestes a abrir o seu DIRET\xD3RIO PESSOAL.","trust.dangerous.title_root":"AVISO: Est\xE1 prestes a abrir a RAIZ DO SISTEMA DE FICHEIROS.","trust.dangerous.body_home":"O modelo ter\xE1 acesso a TODOS os seus ficheiros pessoais \u2014 chaves SSH, credenciais, perfis de navegador e tudo o resto sob a sua pasta pessoal.","trust.dangerous.body_root":"O modelo ter\xE1 acesso ao SISTEMA DE FICHEIROS INTEIRO \u2014 ficheiros do sistema, todos os dados de utilizador, credenciais e tudo nesta m\xE1quina.","trust.dangerous.advice_home":"A menos que tenha uma raz\xE3o muito espec\xEDfica, N\xC3O confie em todo o seu diret\xF3rio pessoal.","trust.dangerous.advice_root":"A menos que tenha uma raz\xE3o muito espec\xEDfica, N\xC3O confie na raiz do sistema de ficheiros.","trust.dangerous.option.yes":"Compreendo os riscos, confiar apenas nesta sess\xE3o","trust.dangerous.option.no":"Sair (recomendado)"};export{f as dict};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Os as i}from"./chunk-ep8zn49w.js";import{pt as o}from"./chunk-zk8n8hnh.js";import{yP as c}from"./chunk-hh4c02fh.js";var e=c(i(),1);import p from"path";function l(n,t){let r=t?.PATH??t?.Path??process.env.PATH??process.env.Path??"",h=r?r+p.delimiter+o.Path.bin:o.Path.bin,s=e.default.sync(n,{nothrow:!0,path:h,pathExt:t?.PATHEXT??t?.PathExt??process.env.PATHEXT??process.env.PathExt});return typeof s==="string"?s:null}
3
- export{l as Bp};
2
+ import{Rs as i}from"./chunk-hybq019j.js";import{Rt as o}from"./chunk-08y06vgt.js";import{CP as c}from"./chunk-s2za1y84.js";var e=c(i(),1);import p from"path";function l(n,t){let r=t?.PATH??t?.Path??process.env.PATH??process.env.Path??"",h=r?r+p.delimiter+o.Path.bin:o.Path.bin,s=e.default.sync(n,{nothrow:!0,path:h,pathExt:t?.PATHEXT??t?.PathExt??process.env.PATHEXT??process.env.PathExt});return typeof s==="string"?s:null}
3
+ export{l as Ep};