@qitqode/qitqode-android-arm64 0.2.10 → 0.2.13

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 (410) hide show
  1. package/bundle/{chunk-x308f9j4.js → chunk-00krzh3y.js} +2 -2
  2. package/bundle/{chunk-q0xgxygw.js → chunk-04x4b2yy.js} +1 -1
  3. package/bundle/{chunk-1q10jyka.js → chunk-08mgb5tt.js} +2 -2
  4. package/bundle/{chunk-yexzxx6f.js → chunk-094m66q5.js} +1 -1
  5. package/bundle/{chunk-c3ey896z.js → chunk-0cjp9088.js} +1 -1
  6. package/bundle/{chunk-7a3txs9f.js → chunk-0mdmqtfr.js} +2 -2
  7. package/bundle/chunk-0nves64y.js +2 -0
  8. package/bundle/chunk-0v7knkt5.js +2 -0
  9. package/bundle/{chunk-wbt31xap.js → chunk-0w77vhg4.js} +2 -2
  10. package/bundle/{chunk-dnjyepb2.js → chunk-0ware2sh.js} +2 -2
  11. package/bundle/{chunk-djfrkbd5.js → chunk-0xf12tf3.js} +1 -1
  12. package/bundle/{chunk-qbewhcsz.js → chunk-139qfnsq.js} +1 -1
  13. package/bundle/{chunk-xgf4k9q7.js → chunk-1851skhm.js} +1 -1
  14. package/bundle/{chunk-f17se3hh.js → chunk-1bbx1da7.js} +1 -1
  15. package/bundle/{chunk-vk35g121.js → chunk-1bhcg889.js} +2 -2
  16. package/bundle/{chunk-xnxw5zz9.js → chunk-1exjy880.js} +2 -2
  17. package/bundle/{chunk-atacnspd.js → chunk-1f9qcrn6.js} +2 -2
  18. package/bundle/{chunk-5fcyb122.js → chunk-1gt6ppza.js} +1 -1
  19. package/bundle/chunk-1h5jdsgx.js +2 -0
  20. package/bundle/{chunk-brk1jca3.js → chunk-1q5h95hc.js} +1 -1
  21. package/bundle/chunk-1r5e1jsb.js +2 -0
  22. package/bundle/{chunk-vy93mn7d.js → chunk-1rafe6f5.js} +2 -2
  23. package/bundle/{chunk-62y6zk9x.js → chunk-1rw4srd1.js} +1 -1
  24. package/bundle/{chunk-h2p984qb.js → chunk-1sejtx9a.js} +2 -2
  25. package/bundle/{chunk-3zzrdpsx.js → chunk-1wy8wmah.js} +1 -1
  26. package/bundle/chunk-1wyy3c48.js +2 -0
  27. package/bundle/chunk-1z299xq6.js +2 -0
  28. package/bundle/chunk-21aqt31s.js +2 -0
  29. package/bundle/chunk-22aq9ymg.js +2 -0
  30. package/bundle/chunk-26a17c9z.js +2 -0
  31. package/bundle/chunk-2a154mr0.js +2 -0
  32. package/bundle/{chunk-acsqvgdw.js → chunk-2b80n6nx.js} +1 -1
  33. package/bundle/{chunk-nnkfdhh9.js → chunk-2bfq0mtx.js} +1 -1
  34. package/bundle/{chunk-wecs14rz.js → chunk-2d0vympj.js} +1 -1
  35. package/bundle/{chunk-dz3kcsb6.js → chunk-2h8b0csf.js} +2 -2
  36. package/bundle/{chunk-xqwk2zsx.js → chunk-2md5fz4f.js} +2 -2
  37. package/bundle/chunk-2nbce486.js +2 -0
  38. package/bundle/chunk-2npxatq9.js +2 -0
  39. package/bundle/{chunk-gx4v8z64.js → chunk-2p1qaqv3.js} +2 -2
  40. package/bundle/{chunk-ge7csm6m.js → chunk-2ts2s8b4.js} +2 -2
  41. package/bundle/{chunk-d1xfv4d3.js → chunk-374js0y6.js} +1 -1
  42. package/bundle/{chunk-g52wmt1v.js → chunk-3be70hxy.js} +1 -1
  43. package/bundle/{chunk-c8yc8qcd.js → chunk-3fx3eghq.js} +1 -1
  44. package/bundle/chunk-3gryj9r9.js +2 -0
  45. package/bundle/chunk-3jnanbjr.js +2 -0
  46. package/bundle/chunk-3meh1cbc.js +2 -0
  47. package/bundle/{chunk-t2r51r6v.js → chunk-3rcfy8te.js} +1 -1
  48. package/bundle/chunk-3t71xfr6.js +2 -0
  49. package/bundle/chunk-4045jzv5.js +2 -0
  50. package/bundle/{chunk-qdh2dm62.js → chunk-404ew3d3.js} +1 -1
  51. package/bundle/{chunk-ecz4h0a2.js → chunk-45dtsre6.js} +1 -1
  52. package/bundle/{chunk-v03xq38e.js → chunk-47pxz6cb.js} +2 -2
  53. package/bundle/{chunk-v8bxj01h.js → chunk-4ar8hey8.js} +1 -1
  54. package/bundle/chunk-4b2vv484.js +2 -0
  55. package/bundle/{chunk-9tz18e54.js → chunk-4d9s7cgr.js} +1 -1
  56. package/bundle/chunk-4ene1ymj.js +2 -0
  57. package/bundle/{chunk-yydqavgh.js → chunk-4enhsmq1.js} +2 -2
  58. package/bundle/{chunk-dm447tgc.js → chunk-4krmja97.js} +2 -2
  59. package/bundle/{chunk-pwsajn96.js → chunk-4q14whpc.js} +1 -1
  60. package/bundle/{chunk-z023h7t8.js → chunk-4s9d2zte.js} +1 -1
  61. package/bundle/{chunk-9zy5tsry.js → chunk-4wzv2v36.js} +3 -3
  62. package/bundle/{chunk-4sa9t0vx.js → chunk-53n3tfwn.js} +2 -2
  63. package/bundle/{chunk-3sj0jv91.js → chunk-5828bcp8.js} +1 -1
  64. package/bundle/chunk-58r5etg8.js +2 -0
  65. package/bundle/{chunk-waa781eh.js → chunk-5a4zt1b7.js} +1 -1
  66. package/bundle/chunk-5c2zw4h0.js +2 -0
  67. package/bundle/chunk-5e0vejcb.js +8 -0
  68. package/bundle/{chunk-nq4x6792.js → chunk-5es19n1m.js} +2 -2
  69. package/bundle/{chunk-32xd626h.js → chunk-5fbzvy6q.js} +2 -2
  70. package/bundle/{chunk-e1x1mp9m.js → chunk-5gv6r7v8.js} +1 -1
  71. package/bundle/{chunk-v8rqgt7h.js → chunk-5psekq9f.js} +1 -1
  72. package/bundle/{chunk-te91d271.js → chunk-5rtsnnjk.js} +1 -1
  73. package/bundle/{chunk-p6jf1fyt.js → chunk-5wjwzbk8.js} +1 -1
  74. package/bundle/chunk-608f83n0.js +2 -0
  75. package/bundle/{chunk-asxmkyz2.js → chunk-610mqqqa.js} +1 -1
  76. package/bundle/chunk-671r50ry.js +2 -0
  77. package/bundle/chunk-6bfnhr3d.js +2 -0
  78. package/bundle/chunk-6cv6d8rw.js +2 -0
  79. package/bundle/{chunk-psqtptrs.js → chunk-6dmk2eyt.js} +1 -1
  80. package/bundle/{chunk-7s0nq2aa.js → chunk-6g3bzap8.js} +2 -2
  81. package/bundle/{chunk-ccdjzn2m.js → chunk-6jb4mnvq.js} +3 -3
  82. package/bundle/{chunk-m01h6kk1.js → chunk-6kpk6pr3.js} +1 -1
  83. package/bundle/{chunk-gbkz04ke.js → chunk-6p848y99.js} +1 -1
  84. package/bundle/chunk-6qm6f88j.js +2 -0
  85. package/bundle/{chunk-wh2qqhep.js → chunk-6wt8g6mc.js} +2 -2
  86. package/bundle/{chunk-mn0pshpv.js → chunk-71naz1qp.js} +1 -1
  87. package/bundle/{chunk-by1kwg4r.js → chunk-72qx43fq.js} +2 -2
  88. package/bundle/chunk-78bfwwmc.js +2 -0
  89. package/bundle/{chunk-0sfc21qe.js → chunk-78rfz0ex.js} +2 -2
  90. package/bundle/{chunk-1r81q7m3.js → chunk-7bvh48s2.js} +1 -1
  91. package/bundle/{chunk-mmqyter3.js → chunk-7h0regqs.js} +1 -1
  92. package/bundle/{chunk-d0dsgxk4.js → chunk-7k1q26yn.js} +2 -2
  93. package/bundle/{chunk-kec1xw1n.js → chunk-7nh8vjx4.js} +1 -1
  94. package/bundle/{chunk-5w7ebtcd.js → chunk-7p8f8xav.js} +1 -1
  95. package/bundle/chunk-7wwtgxxf.js +2 -0
  96. package/bundle/{chunk-gksbv613.js → chunk-81mwbcy3.js} +2 -2
  97. package/bundle/{chunk-fvv1cret.js → chunk-821zkh5v.js} +1 -1
  98. package/bundle/{chunk-pf2vq6t1.js → chunk-84712kbe.js} +2 -2
  99. package/bundle/{chunk-eabbrt1p.js → chunk-8hrt4d0v.js} +1 -1
  100. package/bundle/{chunk-gmq1kwn0.js → chunk-8psfgg8y.js} +1 -1
  101. package/bundle/{chunk-at4dge22.js → chunk-8rbbt1s8.js} +1 -1
  102. package/bundle/{chunk-cdenq7jb.js → chunk-8t17w67q.js} +1 -1
  103. package/bundle/{chunk-9fjcgdea.js → chunk-8xbd0ra5.js} +1 -1
  104. package/bundle/{chunk-nh4zk07t.js → chunk-95ga21eq.js} +1 -1
  105. package/bundle/{chunk-e10c0crf.js → chunk-962hspr0.js} +1 -1
  106. package/bundle/chunk-98sb49dz.js +2 -0
  107. package/bundle/{chunk-9d0exvey.js → chunk-9a9qcvtz.js} +2 -2
  108. package/bundle/{chunk-x0hhw46n.js → chunk-9c0f79mt.js} +1 -1
  109. package/bundle/{chunk-kcqeh1e5.js → chunk-9h2fms7x.js} +1 -1
  110. package/bundle/chunk-9kbtpq9m.js +2 -0
  111. package/bundle/{chunk-eqpep2m2.js → chunk-9r6wk75s.js} +1 -1
  112. package/bundle/chunk-9szp9b4m.js +2 -0
  113. package/bundle/{chunk-tg1f56s3.js → chunk-9xbc558j.js} +1 -1
  114. package/bundle/chunk-9xqszq0c.js +2 -0
  115. package/bundle/chunk-a32kjs9e.js +2 -0
  116. package/bundle/{chunk-c8080519.js → chunk-a4242cn4.js} +1 -1
  117. package/bundle/{chunk-c8k32724.js → chunk-ajyfms68.js} +1 -1
  118. package/bundle/{chunk-8peby2d1.js → chunk-ajykvcas.js} +1 -1
  119. package/bundle/{chunk-tm79yrf3.js → chunk-anm5g0m4.js} +2 -2
  120. package/bundle/chunk-apym02ct.js +2 -0
  121. package/bundle/{chunk-dx7rexx3.js → chunk-aq75kv5f.js} +3 -3
  122. package/bundle/chunk-armv2rv5.js +2 -0
  123. package/bundle/chunk-as215v64.js +2 -0
  124. package/bundle/{chunk-rk21wv4k.js → chunk-b274mb6v.js} +1 -1
  125. package/bundle/{chunk-zfqgh9h7.js → chunk-b46t2315.js} +1 -1
  126. package/bundle/{chunk-yzd6cyep.js → chunk-ba2hn77m.js} +1 -1
  127. package/bundle/{chunk-pyf649pz.js → chunk-bd4krah7.js} +1 -1
  128. package/bundle/chunk-bnmpgpyf.js +2 -0
  129. package/bundle/{chunk-5nm5egq0.js → chunk-bpv378bm.js} +2 -2
  130. package/bundle/chunk-bq3zt1x1.js +2 -0
  131. package/bundle/chunk-bx8fgjam.js +2 -0
  132. package/bundle/{chunk-fsndgr9a.js → chunk-bydaqb08.js} +1 -1
  133. package/bundle/{chunk-819qr675.js → chunk-c1srcpfk.js} +1 -1
  134. package/bundle/{chunk-9bbwxp5d.js → chunk-c99npyz9.js} +1 -1
  135. package/bundle/chunk-ckcnb59t.js +2 -0
  136. package/bundle/{chunk-qdbx1qkr.js → chunk-csbndz33.js} +1 -1
  137. package/bundle/{chunk-c1c8ch3g.js → chunk-cv3xdp8q.js} +8 -8
  138. package/bundle/{chunk-xvvt886p.js → chunk-d2049chz.js} +2 -2
  139. package/bundle/{chunk-je8fcsa9.js → chunk-d4ys15w3.js} +1 -1
  140. package/bundle/chunk-d79xaj6s.js +3 -0
  141. package/bundle/chunk-dah2d37s.js +2 -0
  142. package/bundle/chunk-dhgjv1n2.js +2 -0
  143. package/bundle/chunk-dk9k8ff5.js +2 -0
  144. package/bundle/{chunk-b9f78x5g.js → chunk-dmgdwvn1.js} +1 -1
  145. package/bundle/{chunk-azss4acq.js → chunk-dpm5x19e.js} +2 -2
  146. package/bundle/{chunk-rpdgn9z3.js → chunk-dwjv3m5s.js} +2 -2
  147. package/bundle/chunk-dymysn4h.js +2 -0
  148. package/bundle/{chunk-7rbg6mg9.js → chunk-dzy3ezht.js} +2 -2
  149. package/bundle/{chunk-8rkszwxq.js → chunk-e0w082wt.js} +4 -4
  150. package/bundle/{chunk-0mwzxqt5.js → chunk-e4658j15.js} +3 -3
  151. package/bundle/{chunk-pbanj1gk.js → chunk-e6s8ep9m.js} +2 -2
  152. package/bundle/{chunk-dp6ms01y.js → chunk-ec1bwa7f.js} +2 -2
  153. package/bundle/{chunk-ff8q10gk.js → chunk-eefzbdbk.js} +2 -2
  154. package/bundle/{chunk-j5z95b6f.js → chunk-eftk07r3.js} +1 -1
  155. package/bundle/{chunk-qjw2zcq5.js → chunk-eh73j82b.js} +1 -1
  156. package/bundle/{chunk-h91zmzs5.js → chunk-es6vbsjg.js} +1 -1
  157. package/bundle/{chunk-k10rtgsk.js → chunk-etvwxwn3.js} +1 -1
  158. package/bundle/chunk-ev4gw5k6.js +2 -0
  159. package/bundle/chunk-ew2dxm43.js +2 -0
  160. package/bundle/{chunk-nk5vrenn.js → chunk-ewde5bss.js} +2 -2
  161. package/bundle/{chunk-8gpjmj42.js → chunk-fbd971t7.js} +3 -3
  162. package/bundle/{chunk-gbnf7zf9.js → chunk-ff031crt.js} +1 -1
  163. package/bundle/chunk-ffp4wg27.js +2 -0
  164. package/bundle/{chunk-6y58jzak.js → chunk-fj87htwn.js} +1 -1
  165. package/bundle/{chunk-rxnd79h7.js → chunk-fmvmp278.js} +1 -1
  166. package/bundle/{chunk-6mnk5sg3.js → chunk-fqzfytjk.js} +1 -1
  167. package/bundle/{chunk-c2ns2csn.js → chunk-g0x6q2ks.js} +1 -1
  168. package/bundle/{chunk-mp1x10t5.js → chunk-g3y5kvg6.js} +2 -2
  169. package/bundle/{chunk-3vae1s42.js → chunk-g6ffx794.js} +1 -1
  170. package/bundle/{chunk-d1fv2c7s.js → chunk-gcpwm7b5.js} +2 -2
  171. package/bundle/{chunk-pxm0x3e0.js → chunk-gdawpkxs.js} +2 -2
  172. package/bundle/{chunk-jbcqhw3x.js → chunk-gjmxrz0v.js} +2 -2
  173. package/bundle/{chunk-vbb1jg02.js → chunk-gtmtvjwc.js} +1 -1
  174. package/bundle/{chunk-7hdb1fhq.js → chunk-gvc1mqrs.js} +2 -2
  175. package/bundle/{chunk-56yp5v0w.js → chunk-gw2fz5ry.js} +1 -1
  176. package/bundle/{chunk-g08qj9z3.js → chunk-h1p3xcfp.js} +2 -2
  177. package/bundle/{chunk-c9cngded.js → chunk-h2vtypa5.js} +1 -1
  178. package/bundle/{chunk-m4j6t713.js → chunk-h9tcpbr7.js} +1 -1
  179. package/bundle/{chunk-2fbkw84y.js → chunk-hcd0k14e.js} +2 -2
  180. package/bundle/{chunk-s05hqtx1.js → chunk-hd6sd912.js} +1 -1
  181. package/bundle/{chunk-6wjdhvdf.js → chunk-hgcnzsd5.js} +1 -1
  182. package/bundle/chunk-hjy90gt2.js +2 -0
  183. package/bundle/{chunk-2zjet9tx.js → chunk-hk8m8vax.js} +2 -2
  184. package/bundle/chunk-hmden934.js +2 -0
  185. package/bundle/{chunk-0tkznq75.js → chunk-hnbtfpb7.js} +1 -1
  186. package/bundle/{chunk-ngyv4fhn.js → chunk-hp9q7vvq.js} +2 -2
  187. package/bundle/{chunk-kc8n5cgb.js → chunk-hrfdrz36.js} +1 -1
  188. package/bundle/chunk-hsm8fbb1.js +2 -0
  189. package/bundle/{chunk-yce8ph5b.js → chunk-hsmtjb4d.js} +2 -2
  190. package/bundle/chunk-hz1xfedb.js +2 -0
  191. package/bundle/{chunk-qq9yc2tp.js → chunk-hzzvmr41.js} +2 -2
  192. package/bundle/chunk-ja9y478k.js +2 -0
  193. package/bundle/chunk-jam7xyjf.js +2 -0
  194. package/bundle/{chunk-4a9jqe5s.js → chunk-jcn8bg31.js} +1 -1
  195. package/bundle/{chunk-2dmcpqak.js → chunk-jf4zyy7r.js} +1 -1
  196. package/bundle/{chunk-yspstxkq.js → chunk-jmrqp50k.js} +1 -1
  197. package/bundle/{chunk-qm9fm5ja.js → chunk-jrh028na.js} +2 -2
  198. package/bundle/{chunk-r81w6skn.js → chunk-jt94rhev.js} +1 -1
  199. package/bundle/{chunk-cs825mxr.js → chunk-k3x6z5q1.js} +1 -1
  200. package/bundle/chunk-k51qphrk.js +2 -0
  201. package/bundle/chunk-kee7xpe3.js +2 -0
  202. package/bundle/{chunk-61t4g8bh.js → chunk-m18pxkdg.js} +4 -4
  203. package/bundle/{chunk-npdgfqaw.js → chunk-map852em.js} +1 -1
  204. package/bundle/{chunk-wd2xmkdp.js → chunk-mbma071k.js} +2 -2
  205. package/bundle/{chunk-qyan69nb.js → chunk-mchf2bcc.js} +2 -2
  206. package/bundle/{chunk-x50adh71.js → chunk-mfg4stzn.js} +1 -1
  207. package/bundle/{chunk-snf6ahg7.js → chunk-mgff8bcx.js} +1 -1
  208. package/bundle/{chunk-81dvy370.js → chunk-mhn0a828.js} +1 -1
  209. package/bundle/{chunk-yh1t6jrj.js → chunk-mp5m0acf.js} +1 -1
  210. package/bundle/{chunk-1m78yy4k.js → chunk-mqtj38j9.js} +1 -1
  211. package/bundle/{chunk-cxtwavyf.js → chunk-mrh5q4s6.js} +2 -2
  212. package/bundle/{chunk-xcmbxny8.js → chunk-msbe5rb7.js} +1 -1
  213. package/bundle/{chunk-b8rzn48q.js → chunk-n73ckwr7.js} +1 -1
  214. package/bundle/{chunk-gqgjybjc.js → chunk-nn2hbew8.js} +1 -1
  215. package/bundle/{chunk-9nf5650d.js → chunk-npryn3en.js} +1 -1
  216. package/bundle/chunk-p13eeqe4.js +2 -0
  217. package/bundle/{chunk-a70m6kyn.js → chunk-p3tcw42f.js} +1 -1
  218. package/bundle/chunk-p45f2nyb.js +2 -0
  219. package/bundle/{chunk-q26s0wb5.js → chunk-p863r97y.js} +1 -1
  220. package/bundle/{chunk-tjfer79w.js → chunk-paqy0c2v.js} +1 -1
  221. package/bundle/{chunk-vsfj16v9.js → chunk-pfen4ekj.js} +2 -2
  222. package/bundle/{chunk-5p2r8bxx.js → chunk-pzn7cade.js} +1 -1
  223. package/bundle/{chunk-jt6bvxtr.js → chunk-q65qzc9w.js} +1 -1
  224. package/bundle/{chunk-h0pvxre5.js → chunk-q7wc3frq.js} +1 -1
  225. package/bundle/{chunk-141p12c4.js → chunk-qa38xchd.js} +1 -1
  226. package/bundle/{chunk-f0ab2f28.js → chunk-qqftaqza.js} +1 -1
  227. package/bundle/{chunk-d9w2bn2e.js → chunk-qvwx32p9.js} +2 -2
  228. package/bundle/chunk-qw9whsy2.js +2 -0
  229. package/bundle/{chunk-8nnajdwf.js → chunk-r65zw08x.js} +3 -3
  230. package/bundle/chunk-r77kpzdv.js +2 -0
  231. package/bundle/{chunk-e3mrw0k7.js → chunk-r9hsd9pw.js} +1 -1
  232. package/bundle/chunk-rc95tp19.js +2 -0
  233. package/bundle/{chunk-xv03hbgj.js → chunk-rf9pjbg3.js} +1 -1
  234. package/bundle/chunk-rmh2fhqy.js +2 -0
  235. package/bundle/{chunk-t9pq363q.js → chunk-rqdfmbns.js} +2 -2
  236. package/bundle/{chunk-ev6jwt7q.js → chunk-rr94dpe9.js} +1 -1
  237. package/bundle/chunk-rrn86a8w.js +2 -0
  238. package/bundle/{chunk-kk850sdw.js → chunk-rwt0rwvn.js} +2 -2
  239. package/bundle/{chunk-f6btedtt.js → chunk-s7ypkpg2.js} +1 -1
  240. package/bundle/{chunk-hgm8yfcb.js → chunk-s81ck6bw.js} +1 -1
  241. package/bundle/chunk-s8v0h63x.js +2 -0
  242. package/bundle/chunk-sh4mngre.js +2 -0
  243. package/bundle/chunk-shqqngm8.js +2 -0
  244. package/bundle/chunk-sjfcwykr.js +2 -0
  245. package/bundle/{chunk-q7s6z0nz.js → chunk-sn15skh8.js} +1 -1
  246. package/bundle/chunk-sv01v0n0.js +2 -0
  247. package/bundle/{chunk-dzma8zvf.js → chunk-sv27ep93.js} +2 -2
  248. package/bundle/{chunk-q8fjktv4.js → chunk-t1e52h0k.js} +1 -1
  249. package/bundle/{chunk-zskdxbbh.js → chunk-t1hw67x4.js} +1 -1
  250. package/bundle/{chunk-9pj10pgd.js → chunk-t4kma6mq.js} +2 -2
  251. package/bundle/{chunk-8v60bqm0.js → chunk-t66gerft.js} +1 -1
  252. package/bundle/{chunk-z69tt390.js → chunk-t7gp6mjm.js} +1 -1
  253. package/bundle/{chunk-dd461rg3.js → chunk-tks3qzsw.js} +1 -1
  254. package/bundle/{chunk-1h96bk6p.js → chunk-tn0sfsks.js} +2 -2
  255. package/bundle/chunk-tn8hsd2c.js +2 -0
  256. package/bundle/chunk-tqsx7w8z.js +2 -0
  257. package/bundle/{chunk-tdevq564.js → chunk-trg0zg0q.js} +1 -1
  258. package/bundle/chunk-tyt1negg.js +2 -0
  259. package/bundle/chunk-tz1sv9kt.js +3 -0
  260. package/bundle/{chunk-p506eydh.js → chunk-tzw56029.js} +1 -1
  261. package/bundle/{chunk-t5wdstzv.js → chunk-v30fmrz0.js} +1 -1
  262. package/bundle/chunk-v580zwpf.js +3 -0
  263. package/bundle/{chunk-6gbdvz6p.js → chunk-v6djkm35.js} +1 -1
  264. package/bundle/{chunk-h6z86aay.js → chunk-v9yxkbz7.js} +1 -1
  265. package/bundle/chunk-vdv6cyh0.js +2 -0
  266. package/bundle/{chunk-z0m1qm7j.js → chunk-vqxyk6as.js} +2 -2
  267. package/bundle/{chunk-se8d5xg9.js → chunk-vr7525pa.js} +1 -1
  268. package/bundle/chunk-vsk8yfxp.js +2 -0
  269. package/bundle/{chunk-vjt6mh10.js → chunk-vvcyvdnk.js} +2 -2
  270. package/bundle/chunk-vvgmkjym.js +2 -0
  271. package/bundle/{chunk-0bhzhh7s.js → chunk-vvmvryh1.js} +2 -2
  272. package/bundle/{chunk-eme9xmh3.js → chunk-vzf04vad.js} +1 -1
  273. package/bundle/{chunk-xstxdw7v.js → chunk-vzj91hg8.js} +1 -1
  274. package/bundle/chunk-w0zyex7f.js +2 -0
  275. package/bundle/{chunk-e72jwbfc.js → chunk-w264gs2c.js} +1 -1
  276. package/bundle/chunk-w623r5kb.js +3 -0
  277. package/bundle/{chunk-5rqjze1g.js → chunk-wac35a6p.js} +1 -1
  278. package/bundle/chunk-wkxt9v7s.js +2 -0
  279. package/bundle/{chunk-gb51fn3r.js → chunk-wqm1vawg.js} +1 -1
  280. package/bundle/{chunk-pchv413c.js → chunk-wrkt670m.js} +2 -2
  281. package/bundle/{chunk-2y5bthrp.js → chunk-wspm2k19.js} +1 -1
  282. package/bundle/chunk-wwf6zacw.js +2 -0
  283. package/bundle/{chunk-nqk8d62j.js → chunk-wwtyrgga.js} +1 -1
  284. package/bundle/{chunk-ajnzv5jt.js → chunk-x0wy15q9.js} +2 -2
  285. package/bundle/chunk-x9c8eddk.js +2 -0
  286. package/bundle/{chunk-ztvkzex1.js → chunk-xaewye8w.js} +1 -1
  287. package/bundle/{chunk-gq3zb4wv.js → chunk-xgdst5n5.js} +2 -2
  288. package/bundle/{chunk-3yfjgks3.js → chunk-xgphhnpk.js} +1 -1
  289. package/bundle/chunk-xjed8t2h.js +2 -0
  290. package/bundle/{chunk-qtyapmy7.js → chunk-xn6mwsc9.js} +1 -1
  291. package/bundle/{chunk-v0hnn7nb.js → chunk-xpz5mnwz.js} +1 -1
  292. package/bundle/{chunk-6axm2qtj.js → chunk-xrb46v1e.js} +1 -1
  293. package/bundle/chunk-xxhta1tm.js +2 -0
  294. package/bundle/{chunk-532fnfmw.js → chunk-y5m9c5ek.js} +2 -2
  295. package/bundle/{chunk-9s5h0f1y.js → chunk-y9kjt2jj.js} +2 -2
  296. package/bundle/{chunk-vbfc0wgv.js → chunk-y9mxwwz7.js} +2 -2
  297. package/bundle/{chunk-td9hm9be.js → chunk-ycth54ja.js} +1 -1
  298. package/bundle/{chunk-pky8h8rh.js → chunk-ydz7387e.js} +1 -1
  299. package/bundle/{chunk-f3y5kr76.js → chunk-yg5azmxb.js} +2 -2
  300. package/bundle/{chunk-j7637cwg.js → chunk-yhe5qz48.js} +2 -2
  301. package/bundle/chunk-yhj6858v.js +2 -0
  302. package/bundle/chunk-yq3byrpv.js +2 -0
  303. package/bundle/{chunk-3mtjxmw1.js → chunk-yqvqzg7b.js} +1 -1
  304. package/bundle/chunk-ys8ajwys.js +2 -0
  305. package/bundle/chunk-yzt7p956.js +2 -0
  306. package/bundle/{chunk-2cvwrabw.js → chunk-yzxcjr6y.js} +2 -2
  307. package/bundle/{chunk-f6vy70p6.js → chunk-z1psybn1.js} +2 -2
  308. package/bundle/{chunk-xj0zc9za.js → chunk-z2cnd2cp.js} +1 -1
  309. package/bundle/{chunk-s27cz24e.js → chunk-z4gczap3.js} +52 -52
  310. package/bundle/chunk-z56cb3fs.js +2 -0
  311. package/bundle/{chunk-qdafm7qg.js → chunk-z66xdxkg.js} +2 -2
  312. package/bundle/{chunk-v16n1fep.js → chunk-z6f54x4k.js} +2 -2
  313. package/bundle/{chunk-kds2g7r2.js → chunk-z6qb4gt5.js} +1 -1
  314. package/bundle/{chunk-q4mtwv1w.js → chunk-zgj7jx8k.js} +2 -2
  315. package/bundle/{chunk-mn5cacf6.js → chunk-zhddj91f.js} +2 -2
  316. package/bundle/chunk-zhypknyg.js +2 -0
  317. package/bundle/index.js +3 -3
  318. package/bundle/parser.worker.js +2 -2
  319. package/bundle/worker.js +1 -1
  320. package/package.json +3 -3
  321. package/bundle/chunk-062chtrq.js +0 -2
  322. package/bundle/chunk-062vs7bp.js +0 -2
  323. package/bundle/chunk-08g14hmz.js +0 -2
  324. package/bundle/chunk-0w2v8dfy.js +0 -2
  325. package/bundle/chunk-10fr7a2y.js +0 -2
  326. package/bundle/chunk-15bjhfav.js +0 -3
  327. package/bundle/chunk-1hv61m11.js +0 -2
  328. package/bundle/chunk-2mkvx8b2.js +0 -2
  329. package/bundle/chunk-2rykfc3a.js +0 -2
  330. package/bundle/chunk-2w5hx4fs.js +0 -2
  331. package/bundle/chunk-2yy63sxz.js +0 -2
  332. package/bundle/chunk-2z3fe4qw.js +0 -2
  333. package/bundle/chunk-361cmmrp.js +0 -2
  334. package/bundle/chunk-3r6dq1h3.js +0 -2
  335. package/bundle/chunk-4a12wv2m.js +0 -2
  336. package/bundle/chunk-547a55ba.js +0 -2
  337. package/bundle/chunk-5ztmc770.js +0 -2
  338. package/bundle/chunk-62x3r2q8.js +0 -2
  339. package/bundle/chunk-6th7vpwm.js +0 -2
  340. package/bundle/chunk-6ybh5smv.js +0 -2
  341. package/bundle/chunk-73kprndw.js +0 -2
  342. package/bundle/chunk-79fr19xf.js +0 -2
  343. package/bundle/chunk-7ezr478e.js +0 -2
  344. package/bundle/chunk-7gj1vqyj.js +0 -2
  345. package/bundle/chunk-7ywfkwb4.js +0 -2
  346. package/bundle/chunk-85fnnwm2.js +0 -2
  347. package/bundle/chunk-89fwh84w.js +0 -2
  348. package/bundle/chunk-8e724g3k.js +0 -2
  349. package/bundle/chunk-9894a2yn.js +0 -2
  350. package/bundle/chunk-98ye2nwt.js +0 -2
  351. package/bundle/chunk-9s4excg8.js +0 -2
  352. package/bundle/chunk-aetgcegz.js +0 -2
  353. package/bundle/chunk-agas0nay.js +0 -2
  354. package/bundle/chunk-ayknzc4m.js +0 -2
  355. package/bundle/chunk-b2ybst88.js +0 -2
  356. package/bundle/chunk-bd5vtjd7.js +0 -2
  357. package/bundle/chunk-bjqqk6jt.js +0 -2
  358. package/bundle/chunk-cpkcdykz.js +0 -2
  359. package/bundle/chunk-cyafm8d6.js +0 -2
  360. package/bundle/chunk-d4316r53.js +0 -2
  361. package/bundle/chunk-d8ym7mcg.js +0 -2
  362. package/bundle/chunk-dnpjxjkp.js +0 -2
  363. package/bundle/chunk-e5gjqtby.js +0 -2
  364. package/bundle/chunk-ee3mqzms.js +0 -2
  365. package/bundle/chunk-er5f61s5.js +0 -2
  366. package/bundle/chunk-er716522.js +0 -2
  367. package/bundle/chunk-ez3gacqe.js +0 -2
  368. package/bundle/chunk-fkc7wf1p.js +0 -2
  369. package/bundle/chunk-fm6z8nqb.js +0 -2
  370. package/bundle/chunk-g0qwm23d.js +0 -2
  371. package/bundle/chunk-g4yn8cj8.js +0 -2
  372. package/bundle/chunk-gsez13bg.js +0 -3
  373. package/bundle/chunk-h1spsy3y.js +0 -2
  374. package/bundle/chunk-h8gkv40j.js +0 -2
  375. package/bundle/chunk-j59kmb49.js +0 -2
  376. package/bundle/chunk-jv37ghev.js +0 -2
  377. package/bundle/chunk-k3hcb6qf.js +0 -2
  378. package/bundle/chunk-k5d822n2.js +0 -3
  379. package/bundle/chunk-m8ytbq04.js +0 -2
  380. package/bundle/chunk-mf9nc4xz.js +0 -2
  381. package/bundle/chunk-mxby91bj.js +0 -2
  382. package/bundle/chunk-mzv1gh6f.js +0 -2
  383. package/bundle/chunk-n0hsvvw8.js +0 -2
  384. package/bundle/chunk-nm1v9z14.js +0 -2
  385. package/bundle/chunk-p7nstcxa.js +0 -2
  386. package/bundle/chunk-pfwkvv7g.js +0 -2
  387. package/bundle/chunk-pn1jz8qj.js +0 -2
  388. package/bundle/chunk-pqvmtfk7.js +0 -2
  389. package/bundle/chunk-prgw26g3.js +0 -2
  390. package/bundle/chunk-pv9ty6v7.js +0 -2
  391. package/bundle/chunk-q4rstre7.js +0 -2
  392. package/bundle/chunk-q6jk2v6g.js +0 -2
  393. package/bundle/chunk-qd43npx3.js +0 -2
  394. package/bundle/chunk-qdb21y83.js +0 -2
  395. package/bundle/chunk-qeksaefy.js +0 -2
  396. package/bundle/chunk-r7t9yb9d.js +0 -2
  397. package/bundle/chunk-sdv3a4w3.js +0 -2
  398. package/bundle/chunk-sk89becn.js +0 -2
  399. package/bundle/chunk-tc0996xz.js +0 -2
  400. package/bundle/chunk-tfs50mgj.js +0 -2
  401. package/bundle/chunk-thecq33z.js +0 -3
  402. package/bundle/chunk-tjvtp9d9.js +0 -2
  403. package/bundle/chunk-tkm9m3n0.js +0 -2
  404. package/bundle/chunk-v1s1rcqx.js +0 -2
  405. package/bundle/chunk-v4dt4062.js +0 -2
  406. package/bundle/chunk-wgrq86kd.js +0 -2
  407. package/bundle/chunk-x8ks2bn7.js +0 -2
  408. package/bundle/chunk-xy2ty5h5.js +0 -8
  409. package/bundle/chunk-z0383stv.js +0 -2
  410. package/bundle/chunk-zewrmk8x.js +0 -2
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{rP as a}from"./chunk-djfrkbd5.js";var s=a((d,i)=>{var g=process||{},h=g.argv||[],t=g.env||{},o=!(!!t.NO_COLOR||h.includes("--no-color"))&&(!!t.FORCE_COLOR||h.includes("--color")||g.platform==="win32"||(g.stdout||{}).isTTY&&t.TERM!=="dumb"||!!t.CI),B=(m,b,l=m)=>(e)=>{let r=""+e,x=r.indexOf(b,m.length);return~x?m+u(r,b,l,x)+b:m+r+b},u=(m,b,l,e)=>{let r="",x=0;do r+=m.substring(x,e)+l,x=e+b.length,e=m.indexOf(b,x);while(~e);return r+m.substring(x)},n=(m=o)=>{let b=m?B:()=>String;return{isColorSupported:m,reset:b("\x1B[0m","\x1B[0m"),bold:b("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:b("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:b("\x1B[3m","\x1B[23m"),underline:b("\x1B[4m","\x1B[24m"),inverse:b("\x1B[7m","\x1B[27m"),hidden:b("\x1B[8m","\x1B[28m"),strikethrough:b("\x1B[9m","\x1B[29m"),black:b("\x1B[30m","\x1B[39m"),red:b("\x1B[31m","\x1B[39m"),green:b("\x1B[32m","\x1B[39m"),yellow:b("\x1B[33m","\x1B[39m"),blue:b("\x1B[34m","\x1B[39m"),magenta:b("\x1B[35m","\x1B[39m"),cyan:b("\x1B[36m","\x1B[39m"),white:b("\x1B[37m","\x1B[39m"),gray:b("\x1B[90m","\x1B[39m"),bgBlack:b("\x1B[40m","\x1B[49m"),bgRed:b("\x1B[41m","\x1B[49m"),bgGreen:b("\x1B[42m","\x1B[49m"),bgYellow:b("\x1B[43m","\x1B[49m"),bgBlue:b("\x1B[44m","\x1B[49m"),bgMagenta:b("\x1B[45m","\x1B[49m"),bgCyan:b("\x1B[46m","\x1B[49m"),bgWhite:b("\x1B[47m","\x1B[49m"),blackBright:b("\x1B[90m","\x1B[39m"),redBright:b("\x1B[91m","\x1B[39m"),greenBright:b("\x1B[92m","\x1B[39m"),yellowBright:b("\x1B[93m","\x1B[39m"),blueBright:b("\x1B[94m","\x1B[39m"),magentaBright:b("\x1B[95m","\x1B[39m"),cyanBright:b("\x1B[96m","\x1B[39m"),whiteBright:b("\x1B[97m","\x1B[39m"),bgBlackBright:b("\x1B[100m","\x1B[49m"),bgRedBright:b("\x1B[101m","\x1B[49m"),bgGreenBright:b("\x1B[102m","\x1B[49m"),bgYellowBright:b("\x1B[103m","\x1B[49m"),bgBlueBright:b("\x1B[104m","\x1B[49m"),bgMagentaBright:b("\x1B[105m","\x1B[49m"),bgCyanBright:b("\x1B[106m","\x1B[49m"),bgWhiteBright:b("\x1B[107m","\x1B[49m")}};i.exports=n();i.exports.createColors=n});
3
- export{s as be};
2
+ import{sP as a}from"./chunk-0xf12tf3.js";var s=a((d,i)=>{var g=process||{},h=g.argv||[],t=g.env||{},o=!(!!t.NO_COLOR||h.includes("--no-color"))&&(!!t.FORCE_COLOR||h.includes("--color")||g.platform==="win32"||(g.stdout||{}).isTTY&&t.TERM!=="dumb"||!!t.CI),B=(m,b,l=m)=>(e)=>{let r=""+e,x=r.indexOf(b,m.length);return~x?m+u(r,b,l,x)+b:m+r+b},u=(m,b,l,e)=>{let r="",x=0;do r+=m.substring(x,e)+l,x=e+b.length,e=m.indexOf(b,x);while(~e);return r+m.substring(x)},n=(m=o)=>{let b=m?B:()=>String;return{isColorSupported:m,reset:b("\x1B[0m","\x1B[0m"),bold:b("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:b("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:b("\x1B[3m","\x1B[23m"),underline:b("\x1B[4m","\x1B[24m"),inverse:b("\x1B[7m","\x1B[27m"),hidden:b("\x1B[8m","\x1B[28m"),strikethrough:b("\x1B[9m","\x1B[29m"),black:b("\x1B[30m","\x1B[39m"),red:b("\x1B[31m","\x1B[39m"),green:b("\x1B[32m","\x1B[39m"),yellow:b("\x1B[33m","\x1B[39m"),blue:b("\x1B[34m","\x1B[39m"),magenta:b("\x1B[35m","\x1B[39m"),cyan:b("\x1B[36m","\x1B[39m"),white:b("\x1B[37m","\x1B[39m"),gray:b("\x1B[90m","\x1B[39m"),bgBlack:b("\x1B[40m","\x1B[49m"),bgRed:b("\x1B[41m","\x1B[49m"),bgGreen:b("\x1B[42m","\x1B[49m"),bgYellow:b("\x1B[43m","\x1B[49m"),bgBlue:b("\x1B[44m","\x1B[49m"),bgMagenta:b("\x1B[45m","\x1B[49m"),bgCyan:b("\x1B[46m","\x1B[49m"),bgWhite:b("\x1B[47m","\x1B[49m"),blackBright:b("\x1B[90m","\x1B[39m"),redBright:b("\x1B[91m","\x1B[39m"),greenBright:b("\x1B[92m","\x1B[39m"),yellowBright:b("\x1B[93m","\x1B[39m"),blueBright:b("\x1B[94m","\x1B[39m"),magentaBright:b("\x1B[95m","\x1B[39m"),cyanBright:b("\x1B[96m","\x1B[39m"),whiteBright:b("\x1B[97m","\x1B[39m"),bgBlackBright:b("\x1B[100m","\x1B[49m"),bgRedBright:b("\x1B[101m","\x1B[49m"),bgGreenBright:b("\x1B[102m","\x1B[49m"),bgYellowBright:b("\x1B[103m","\x1B[49m"),bgBlueBright:b("\x1B[104m","\x1B[49m"),bgMagentaBright:b("\x1B[105m","\x1B[49m"),bgCyanBright:b("\x1B[106m","\x1B[49m"),bgWhiteBright:b("\x1B[107m","\x1B[49m")}};i.exports=n();i.exports.createColors=n});
3
+ export{s as ce};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{ar as a}from"./chunk-hp9q7vvq.js";import"./chunk-0xf12tf3.js";export default a();
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Kd as a}from"./chunk-8rbbt1s8.js";import"./chunk-8t17w67q.js";import"./chunk-0xf12tf3.js";export{a as dict};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{ke as Pi,le as ZP}from"./chunk-pchv413c.js";import{He as yE,Ie as TE,Je as IE,Ke as wP}from"./chunk-xqwk2zsx.js";import{Le as xP}from"./chunk-g08qj9z3.js";import{Me as Xt,Ne as Ut,Oe as Q}from"./chunk-ccdjzn2m.js";import{Pe as ft}from"./chunk-dp6ms01y.js";import{wf as UP}from"./chunk-rpdgn9z3.js";import{yf as qP}from"./chunk-jbcqhw3x.js";import{Bf as lt,Cf as Ct,Df as _r,Ef as ke,Ff as Ft}from"./chunk-2fbkw84y.js";import{qP as N1,rP as O}from"./chunk-djfrkbd5.js";var Se=O((zi)=>{var gt=Q();zi.getHostHeaderPlugin=gt.getHostHeaderPlugin;zi.hostHeaderMiddleware=gt.hostHeaderMiddleware;zi.hostHeaderMiddlewareOptions=gt.hostHeaderMiddlewareOptions;zi.resolveHostHeaderConfig=gt.resolveHostHeaderConfig});var Xe=O((Ci)=>{var Kt=Q();Ci.getLoggerPlugin=Kt.getLoggerPlugin;Ci.loggerMiddleware=Kt.loggerMiddleware;Ci.loggerMiddlewareOptions=Kt.loggerMiddlewareOptions});var Qe=O((mi)=>{var zt=Q();mi.getRecursionDetectionPlugin=zt.getRecursionDetectionPlugin;mi.recursionDetectionMiddleware=zt.recursionDetectionMiddleware;mi.recursionDetectionMiddlewareOptions=zt.recursionDetectionMiddlewareOptions});var Ce=O((eE)=>{var Ot=Q();eE.DEFAULT_UA_APP_ID=Ot.DEFAULT_UA_APP_ID;eE.getUserAgentMiddlewareOptions=Ot.getUserAgentMiddlewareOptions;eE.getUserAgentPlugin=Ot.getUserAgentPlugin;eE.resolveUserAgentConfig=Ot.resolveUserAgentConfig;eE.userAgentMiddleware=Ot.userAgentMiddleware});var he=O((ct)=>{Object.defineProperty(ct,"__esModule",{value:!0});ct.getContentLengthPlugin=ct.contentLengthMiddlewareOptions=ct.contentLengthMiddleware=void 0;var Jt=ft();Object.defineProperty(ct,"contentLengthMiddleware",{enumerable:!0,get:function(){return Jt.contentLengthMiddleware}});Object.defineProperty(ct,"contentLengthMiddlewareOptions",{enumerable:!0,get:function(){return Jt.contentLengthMiddlewareOptions}});Object.defineProperty(ct,"getContentLengthPlugin",{enumerable:!0,get:function(){return Jt.getContentLengthPlugin}})});var St=O((V)=>{Object.defineProperty(V,"__esModule",{value:!0});V.resolveEndpointRequiredConfig=V.resolveEndpointConfig=V.getEndpointPlugin=V.endpointMiddlewareOptions=V.endpointMiddleware=V.toEndpointV1=V.resolveParams=V.getEndpointFromInstructions=void 0;var C=ke();Object.defineProperty(V,"getEndpointFromInstructions",{enumerable:!0,get:function(){return C.getEndpointFromInstructions}});Object.defineProperty(V,"resolveParams",{enumerable:!0,get:function(){return C.resolveParams}});Object.defineProperty(V,"toEndpointV1",{enumerable:!0,get:function(){return C.toEndpointV1}});Object.defineProperty(V,"endpointMiddleware",{enumerable:!0,get:function(){return C.endpointMiddleware}});Object.defineProperty(V,"endpointMiddlewareOptions",{enumerable:!0,get:function(){return C.endpointMiddlewareOptions}});Object.defineProperty(V,"getEndpointPlugin",{enumerable:!0,get:function(){return C.getEndpointPlugin}});Object.defineProperty(V,"resolveEndpointConfig",{enumerable:!0,get:function(){return C.resolveEndpointConfig}});Object.defineProperty(V,"resolveEndpointRequiredConfig",{enumerable:!0,get:function(){return C.resolveEndpointRequiredConfig}})});var Qt=O((H)=>{Object.defineProperty(H,"__esModule",{value:!0});H.retryMiddlewareOptions=H.retryMiddleware=H.resolveRetryConfig=H.omitRetryHeadersMiddlewareOptions=H.omitRetryHeadersMiddleware=H.getRetryPlugin=H.getRetryAfterHint=H.getOmitRetryHeadersPlugin=H.defaultRetryDecider=H.defaultDelayDecider=H.NODE_RETRY_MODE_CONFIG_OPTIONS=H.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=H.ENV_RETRY_MODE=H.ENV_MAX_ATTEMPTS=H.CONFIG_RETRY_MODE=H.CONFIG_MAX_ATTEMPTS=H.StandardRetryStrategy=H.AdaptiveRetryStrategy=void 0;var G=Xt();Object.defineProperty(H,"AdaptiveRetryStrategy",{enumerable:!0,get:function(){return G.DeprecatedAdaptiveRetryStrategy}});Object.defineProperty(H,"StandardRetryStrategy",{enumerable:!0,get:function(){return G.DeprecatedStandardRetryStrategy}});Object.defineProperty(H,"CONFIG_MAX_ATTEMPTS",{enumerable:!0,get:function(){return G.CONFIG_MAX_ATTEMPTS}});Object.defineProperty(H,"CONFIG_RETRY_MODE",{enumerable:!0,get:function(){return G.CONFIG_RETRY_MODE}});Object.defineProperty(H,"ENV_MAX_ATTEMPTS",{enumerable:!0,get:function(){return G.ENV_MAX_ATTEMPTS}});Object.defineProperty(H,"ENV_RETRY_MODE",{enumerable:!0,get:function(){return G.ENV_RETRY_MODE}});Object.defineProperty(H,"NODE_MAX_ATTEMPT_CONFIG_OPTIONS",{enumerable:!0,get:function(){return G.NODE_MAX_ATTEMPT_CONFIG_OPTIONS}});Object.defineProperty(H,"NODE_RETRY_MODE_CONFIG_OPTIONS",{enumerable:!0,get:function(){return G.NODE_RETRY_MODE_CONFIG_OPTIONS}});Object.defineProperty(H,"defaultDelayDecider",{enumerable:!0,get:function(){return G.defaultDelayDecider}});Object.defineProperty(H,"defaultRetryDecider",{enumerable:!0,get:function(){return G.defaultRetryDecider}});Object.defineProperty(H,"getOmitRetryHeadersPlugin",{enumerable:!0,get:function(){return G.getOmitRetryHeadersPlugin}});Object.defineProperty(H,"getRetryAfterHint",{enumerable:!0,get:function(){return G.getRetryAfterHint}});Object.defineProperty(H,"getRetryPlugin",{enumerable:!0,get:function(){return G.getRetryPlugin}});Object.defineProperty(H,"omitRetryHeadersMiddleware",{enumerable:!0,get:function(){return G.omitRetryHeadersMiddleware}});Object.defineProperty(H,"omitRetryHeadersMiddlewareOptions",{enumerable:!0,get:function(){return G.omitRetryHeadersMiddlewareOptions}});Object.defineProperty(H,"resolveRetryConfig",{enumerable:!0,get:function(){return G.resolveRetryConfig}});Object.defineProperty(H,"retryMiddleware",{enumerable:!0,get:function(){return G.retryMiddleware}});Object.defineProperty(H,"retryMiddlewareOptions",{enumerable:!0,get:function(){return G.retryMiddlewareOptions}})});var et=O((y)=>{Object.defineProperty(y,"__esModule",{value:!0});y.createAggregatedClient=y.convertMap=y._json=y.ServiceException=y.SENSITIVE_STRING=y.NoOpLogger=y.Command=y.Client=y.strictParseShort=y.strictParseLong=y.strictParseInt32=y.strictParseInt=y.strictParseFloat32=y.strictParseFloat=y.strictParseDouble=y.strictParseByte=y.splitHeader=y.splitEvery=y.quoteHeader=y.parseRfc7231DateTime=y.parseRfc3339DateTimeWithOffset=y.parseRfc3339DateTime=y.parseEpochTimestamp=y.parseBoolean=y.nv=y.logger=y.limitedParseFloat32=y.limitedParseFloat=y.limitedParseDouble=y.handleFloat=y.generateIdempotencyToken=y.expectUnion=y.expectString=y.expectShort=y.expectObject=y.expectNumber=y.expectNonNull=y.expectLong=y.expectInt32=y.expectInt=y.expectFloat32=y.expectByte=y.expectBoolean=y.dateToUtcString=y.copyDocumentWithTransform=y._parseRfc7231DateTime=y._parseRfc3339DateTimeWithOffset=y._parseEpochTimestamp=y.NumericValue=y.LazyJsonString=void 0;y.resolvedPath=y.extendedEncodeURIComponent=y.collectBody=y.withBaseException=y.throwDefaultError=y.take=y.serializeFloat=y.serializeDateTime=y.resolveDefaultRuntimeConfig=y.map=y.loadConfigsForDefaultMode=y.isSerializableHeaderValue=y.getValueFromTextNode=y.getDefaultExtensionConfiguration=y.getDefaultClientConfiguration=y.getArrayIfSingleItem=y.emitWarningIfUnsupportedVersion=y.decorateServiceException=void 0;var D=Ft();Object.defineProperty(y,"LazyJsonString",{enumerable:!0,get:function(){return D.LazyJsonString}});Object.defineProperty(y,"NumericValue",{enumerable:!0,get:function(){return D.NumericValue}});Object.defineProperty(y,"_parseEpochTimestamp",{enumerable:!0,get:function(){return D._parseEpochTimestamp}});Object.defineProperty(y,"_parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return D._parseRfc3339DateTimeWithOffset}});Object.defineProperty(y,"_parseRfc7231DateTime",{enumerable:!0,get:function(){return D._parseRfc7231DateTime}});Object.defineProperty(y,"copyDocumentWithTransform",{enumerable:!0,get:function(){return D.copyDocumentWithTransform}});Object.defineProperty(y,"dateToUtcString",{enumerable:!0,get:function(){return D.dateToUtcString}});Object.defineProperty(y,"expectBoolean",{enumerable:!0,get:function(){return D.expectBoolean}});Object.defineProperty(y,"expectByte",{enumerable:!0,get:function(){return D.expectByte}});Object.defineProperty(y,"expectFloat32",{enumerable:!0,get:function(){return D.expectFloat32}});Object.defineProperty(y,"expectInt",{enumerable:!0,get:function(){return D.expectInt}});Object.defineProperty(y,"expectInt32",{enumerable:!0,get:function(){return D.expectInt32}});Object.defineProperty(y,"expectLong",{enumerable:!0,get:function(){return D.expectLong}});Object.defineProperty(y,"expectNonNull",{enumerable:!0,get:function(){return D.expectNonNull}});Object.defineProperty(y,"expectNumber",{enumerable:!0,get:function(){return D.expectNumber}});Object.defineProperty(y,"expectObject",{enumerable:!0,get:function(){return D.expectObject}});Object.defineProperty(y,"expectShort",{enumerable:!0,get:function(){return D.expectShort}});Object.defineProperty(y,"expectString",{enumerable:!0,get:function(){return D.expectString}});Object.defineProperty(y,"expectUnion",{enumerable:!0,get:function(){return D.expectUnion}});Object.defineProperty(y,"generateIdempotencyToken",{enumerable:!0,get:function(){return D.generateIdempotencyToken}});Object.defineProperty(y,"handleFloat",{enumerable:!0,get:function(){return D.handleFloat}});Object.defineProperty(y,"limitedParseDouble",{enumerable:!0,get:function(){return D.limitedParseDouble}});Object.defineProperty(y,"limitedParseFloat",{enumerable:!0,get:function(){return D.limitedParseFloat}});Object.defineProperty(y,"limitedParseFloat32",{enumerable:!0,get:function(){return D.limitedParseFloat32}});Object.defineProperty(y,"logger",{enumerable:!0,get:function(){return D.logger}});Object.defineProperty(y,"nv",{enumerable:!0,get:function(){return D.nv}});Object.defineProperty(y,"parseBoolean",{enumerable:!0,get:function(){return D.parseBoolean}});Object.defineProperty(y,"parseEpochTimestamp",{enumerable:!0,get:function(){return D.parseEpochTimestamp}});Object.defineProperty(y,"parseRfc3339DateTime",{enumerable:!0,get:function(){return D.parseRfc3339DateTime}});Object.defineProperty(y,"parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return D.parseRfc3339DateTimeWithOffset}});Object.defineProperty(y,"parseRfc7231DateTime",{enumerable:!0,get:function(){return D.parseRfc7231DateTime}});Object.defineProperty(y,"quoteHeader",{enumerable:!0,get:function(){return D.quoteHeader}});Object.defineProperty(y,"splitEvery",{enumerable:!0,get:function(){return D.splitEvery}});Object.defineProperty(y,"splitHeader",{enumerable:!0,get:function(){return D.splitHeader}});Object.defineProperty(y,"strictParseByte",{enumerable:!0,get:function(){return D.strictParseByte}});Object.defineProperty(y,"strictParseDouble",{enumerable:!0,get:function(){return D.strictParseDouble}});Object.defineProperty(y,"strictParseFloat",{enumerable:!0,get:function(){return D.strictParseFloat}});Object.defineProperty(y,"strictParseFloat32",{enumerable:!0,get:function(){return D.strictParseFloat32}});Object.defineProperty(y,"strictParseInt",{enumerable:!0,get:function(){return D.strictParseInt}});Object.defineProperty(y,"strictParseInt32",{enumerable:!0,get:function(){return D.strictParseInt32}});Object.defineProperty(y,"strictParseLong",{enumerable:!0,get:function(){return D.strictParseLong}});Object.defineProperty(y,"strictParseShort",{enumerable:!0,get:function(){return D.strictParseShort}});var U=Ct();Object.defineProperty(y,"Client",{enumerable:!0,get:function(){return U.Client}});Object.defineProperty(y,"Command",{enumerable:!0,get:function(){return U.Command}});Object.defineProperty(y,"NoOpLogger",{enumerable:!0,get:function(){return U.NoOpLogger}});Object.defineProperty(y,"SENSITIVE_STRING",{enumerable:!0,get:function(){return U.SENSITIVE_STRING}});Object.defineProperty(y,"ServiceException",{enumerable:!0,get:function(){return U.ServiceException}});Object.defineProperty(y,"_json",{enumerable:!0,get:function(){return U._json}});Object.defineProperty(y,"convertMap",{enumerable:!0,get:function(){return U.convertMap}});Object.defineProperty(y,"createAggregatedClient",{enumerable:!0,get:function(){return U.createAggregatedClient}});Object.defineProperty(y,"decorateServiceException",{enumerable:!0,get:function(){return U.decorateServiceException}});Object.defineProperty(y,"emitWarningIfUnsupportedVersion",{enumerable:!0,get:function(){return U.emitWarningIfUnsupportedVersion}});Object.defineProperty(y,"getArrayIfSingleItem",{enumerable:!0,get:function(){return U.getArrayIfSingleItem}});Object.defineProperty(y,"getDefaultClientConfiguration",{enumerable:!0,get:function(){return U.getDefaultClientConfiguration}});Object.defineProperty(y,"getDefaultExtensionConfiguration",{enumerable:!0,get:function(){return U.getDefaultExtensionConfiguration}});Object.defineProperty(y,"getValueFromTextNode",{enumerable:!0,get:function(){return U.getValueFromTextNode}});Object.defineProperty(y,"isSerializableHeaderValue",{enumerable:!0,get:function(){return U.isSerializableHeaderValue}});Object.defineProperty(y,"loadConfigsForDefaultMode",{enumerable:!0,get:function(){return U.loadConfigsForDefaultMode}});Object.defineProperty(y,"map",{enumerable:!0,get:function(){return U.map}});Object.defineProperty(y,"resolveDefaultRuntimeConfig",{enumerable:!0,get:function(){return U.resolveDefaultRuntimeConfig}});Object.defineProperty(y,"serializeDateTime",{enumerable:!0,get:function(){return U.serializeDateTime}});Object.defineProperty(y,"serializeFloat",{enumerable:!0,get:function(){return U.serializeFloat}});Object.defineProperty(y,"take",{enumerable:!0,get:function(){return U.take}});Object.defineProperty(y,"throwDefaultError",{enumerable:!0,get:function(){return U.throwDefaultError}});Object.defineProperty(y,"withBaseException",{enumerable:!0,get:function(){return U.withBaseException}});var ht=ft();Object.defineProperty(y,"collectBody",{enumerable:!0,get:function(){return ht.collectBody}});Object.defineProperty(y,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return ht.extendedEncodeURIComponent}});Object.defineProperty(y,"resolvedPath",{enumerable:!0,get:function(){return ht.resolvedPath}})});var Nt=O((qE)=>{var DE=Xt(),w=ft(),h=Ut(),le=_r(),AE=Q(),me=yE(),M=Ft(),g=lt(),Lt=Ct(),B=IE(),ve=TE(),st={warningEmitted:!1},OE=(t)=>{if(t&&!st.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){st.warningEmitted=!0;return}let e=parseInt(t.substring(1,t.indexOf("."))),n=22;if(e<n)st.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
2
+ import{le as Pi,me as ZP}from"./chunk-wrkt670m.js";import{Ie as yE,Je as TE,Ke as IE,Le as wP}from"./chunk-2md5fz4f.js";import{Me as xP}from"./chunk-h1p3xcfp.js";import{Ne as Xt,Oe as Ut,Pe as Q}from"./chunk-6jb4mnvq.js";import{Qe as ft}from"./chunk-ec1bwa7f.js";import{xf as UP}from"./chunk-dwjv3m5s.js";import{zf as qP}from"./chunk-gjmxrz0v.js";import{Cf as lt,Df as Ct,Ef as _r,Ff as ke,Gf as Ft}from"./chunk-hcd0k14e.js";import{rP as N1,sP as O}from"./chunk-0xf12tf3.js";var Se=O((zi)=>{var gt=Q();zi.getHostHeaderPlugin=gt.getHostHeaderPlugin;zi.hostHeaderMiddleware=gt.hostHeaderMiddleware;zi.hostHeaderMiddlewareOptions=gt.hostHeaderMiddlewareOptions;zi.resolveHostHeaderConfig=gt.resolveHostHeaderConfig});var Xe=O((Ci)=>{var Kt=Q();Ci.getLoggerPlugin=Kt.getLoggerPlugin;Ci.loggerMiddleware=Kt.loggerMiddleware;Ci.loggerMiddlewareOptions=Kt.loggerMiddlewareOptions});var Qe=O((mi)=>{var zt=Q();mi.getRecursionDetectionPlugin=zt.getRecursionDetectionPlugin;mi.recursionDetectionMiddleware=zt.recursionDetectionMiddleware;mi.recursionDetectionMiddlewareOptions=zt.recursionDetectionMiddlewareOptions});var Ce=O((eE)=>{var Ot=Q();eE.DEFAULT_UA_APP_ID=Ot.DEFAULT_UA_APP_ID;eE.getUserAgentMiddlewareOptions=Ot.getUserAgentMiddlewareOptions;eE.getUserAgentPlugin=Ot.getUserAgentPlugin;eE.resolveUserAgentConfig=Ot.resolveUserAgentConfig;eE.userAgentMiddleware=Ot.userAgentMiddleware});var he=O((ct)=>{Object.defineProperty(ct,"__esModule",{value:!0});ct.getContentLengthPlugin=ct.contentLengthMiddlewareOptions=ct.contentLengthMiddleware=void 0;var Jt=ft();Object.defineProperty(ct,"contentLengthMiddleware",{enumerable:!0,get:function(){return Jt.contentLengthMiddleware}});Object.defineProperty(ct,"contentLengthMiddlewareOptions",{enumerable:!0,get:function(){return Jt.contentLengthMiddlewareOptions}});Object.defineProperty(ct,"getContentLengthPlugin",{enumerable:!0,get:function(){return Jt.getContentLengthPlugin}})});var St=O((V)=>{Object.defineProperty(V,"__esModule",{value:!0});V.resolveEndpointRequiredConfig=V.resolveEndpointConfig=V.getEndpointPlugin=V.endpointMiddlewareOptions=V.endpointMiddleware=V.toEndpointV1=V.resolveParams=V.getEndpointFromInstructions=void 0;var C=ke();Object.defineProperty(V,"getEndpointFromInstructions",{enumerable:!0,get:function(){return C.getEndpointFromInstructions}});Object.defineProperty(V,"resolveParams",{enumerable:!0,get:function(){return C.resolveParams}});Object.defineProperty(V,"toEndpointV1",{enumerable:!0,get:function(){return C.toEndpointV1}});Object.defineProperty(V,"endpointMiddleware",{enumerable:!0,get:function(){return C.endpointMiddleware}});Object.defineProperty(V,"endpointMiddlewareOptions",{enumerable:!0,get:function(){return C.endpointMiddlewareOptions}});Object.defineProperty(V,"getEndpointPlugin",{enumerable:!0,get:function(){return C.getEndpointPlugin}});Object.defineProperty(V,"resolveEndpointConfig",{enumerable:!0,get:function(){return C.resolveEndpointConfig}});Object.defineProperty(V,"resolveEndpointRequiredConfig",{enumerable:!0,get:function(){return C.resolveEndpointRequiredConfig}})});var Qt=O((H)=>{Object.defineProperty(H,"__esModule",{value:!0});H.retryMiddlewareOptions=H.retryMiddleware=H.resolveRetryConfig=H.omitRetryHeadersMiddlewareOptions=H.omitRetryHeadersMiddleware=H.getRetryPlugin=H.getRetryAfterHint=H.getOmitRetryHeadersPlugin=H.defaultRetryDecider=H.defaultDelayDecider=H.NODE_RETRY_MODE_CONFIG_OPTIONS=H.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=H.ENV_RETRY_MODE=H.ENV_MAX_ATTEMPTS=H.CONFIG_RETRY_MODE=H.CONFIG_MAX_ATTEMPTS=H.StandardRetryStrategy=H.AdaptiveRetryStrategy=void 0;var G=Xt();Object.defineProperty(H,"AdaptiveRetryStrategy",{enumerable:!0,get:function(){return G.DeprecatedAdaptiveRetryStrategy}});Object.defineProperty(H,"StandardRetryStrategy",{enumerable:!0,get:function(){return G.DeprecatedStandardRetryStrategy}});Object.defineProperty(H,"CONFIG_MAX_ATTEMPTS",{enumerable:!0,get:function(){return G.CONFIG_MAX_ATTEMPTS}});Object.defineProperty(H,"CONFIG_RETRY_MODE",{enumerable:!0,get:function(){return G.CONFIG_RETRY_MODE}});Object.defineProperty(H,"ENV_MAX_ATTEMPTS",{enumerable:!0,get:function(){return G.ENV_MAX_ATTEMPTS}});Object.defineProperty(H,"ENV_RETRY_MODE",{enumerable:!0,get:function(){return G.ENV_RETRY_MODE}});Object.defineProperty(H,"NODE_MAX_ATTEMPT_CONFIG_OPTIONS",{enumerable:!0,get:function(){return G.NODE_MAX_ATTEMPT_CONFIG_OPTIONS}});Object.defineProperty(H,"NODE_RETRY_MODE_CONFIG_OPTIONS",{enumerable:!0,get:function(){return G.NODE_RETRY_MODE_CONFIG_OPTIONS}});Object.defineProperty(H,"defaultDelayDecider",{enumerable:!0,get:function(){return G.defaultDelayDecider}});Object.defineProperty(H,"defaultRetryDecider",{enumerable:!0,get:function(){return G.defaultRetryDecider}});Object.defineProperty(H,"getOmitRetryHeadersPlugin",{enumerable:!0,get:function(){return G.getOmitRetryHeadersPlugin}});Object.defineProperty(H,"getRetryAfterHint",{enumerable:!0,get:function(){return G.getRetryAfterHint}});Object.defineProperty(H,"getRetryPlugin",{enumerable:!0,get:function(){return G.getRetryPlugin}});Object.defineProperty(H,"omitRetryHeadersMiddleware",{enumerable:!0,get:function(){return G.omitRetryHeadersMiddleware}});Object.defineProperty(H,"omitRetryHeadersMiddlewareOptions",{enumerable:!0,get:function(){return G.omitRetryHeadersMiddlewareOptions}});Object.defineProperty(H,"resolveRetryConfig",{enumerable:!0,get:function(){return G.resolveRetryConfig}});Object.defineProperty(H,"retryMiddleware",{enumerable:!0,get:function(){return G.retryMiddleware}});Object.defineProperty(H,"retryMiddlewareOptions",{enumerable:!0,get:function(){return G.retryMiddlewareOptions}})});var et=O((y)=>{Object.defineProperty(y,"__esModule",{value:!0});y.createAggregatedClient=y.convertMap=y._json=y.ServiceException=y.SENSITIVE_STRING=y.NoOpLogger=y.Command=y.Client=y.strictParseShort=y.strictParseLong=y.strictParseInt32=y.strictParseInt=y.strictParseFloat32=y.strictParseFloat=y.strictParseDouble=y.strictParseByte=y.splitHeader=y.splitEvery=y.quoteHeader=y.parseRfc7231DateTime=y.parseRfc3339DateTimeWithOffset=y.parseRfc3339DateTime=y.parseEpochTimestamp=y.parseBoolean=y.nv=y.logger=y.limitedParseFloat32=y.limitedParseFloat=y.limitedParseDouble=y.handleFloat=y.generateIdempotencyToken=y.expectUnion=y.expectString=y.expectShort=y.expectObject=y.expectNumber=y.expectNonNull=y.expectLong=y.expectInt32=y.expectInt=y.expectFloat32=y.expectByte=y.expectBoolean=y.dateToUtcString=y.copyDocumentWithTransform=y._parseRfc7231DateTime=y._parseRfc3339DateTimeWithOffset=y._parseEpochTimestamp=y.NumericValue=y.LazyJsonString=void 0;y.resolvedPath=y.extendedEncodeURIComponent=y.collectBody=y.withBaseException=y.throwDefaultError=y.take=y.serializeFloat=y.serializeDateTime=y.resolveDefaultRuntimeConfig=y.map=y.loadConfigsForDefaultMode=y.isSerializableHeaderValue=y.getValueFromTextNode=y.getDefaultExtensionConfiguration=y.getDefaultClientConfiguration=y.getArrayIfSingleItem=y.emitWarningIfUnsupportedVersion=y.decorateServiceException=void 0;var D=Ft();Object.defineProperty(y,"LazyJsonString",{enumerable:!0,get:function(){return D.LazyJsonString}});Object.defineProperty(y,"NumericValue",{enumerable:!0,get:function(){return D.NumericValue}});Object.defineProperty(y,"_parseEpochTimestamp",{enumerable:!0,get:function(){return D._parseEpochTimestamp}});Object.defineProperty(y,"_parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return D._parseRfc3339DateTimeWithOffset}});Object.defineProperty(y,"_parseRfc7231DateTime",{enumerable:!0,get:function(){return D._parseRfc7231DateTime}});Object.defineProperty(y,"copyDocumentWithTransform",{enumerable:!0,get:function(){return D.copyDocumentWithTransform}});Object.defineProperty(y,"dateToUtcString",{enumerable:!0,get:function(){return D.dateToUtcString}});Object.defineProperty(y,"expectBoolean",{enumerable:!0,get:function(){return D.expectBoolean}});Object.defineProperty(y,"expectByte",{enumerable:!0,get:function(){return D.expectByte}});Object.defineProperty(y,"expectFloat32",{enumerable:!0,get:function(){return D.expectFloat32}});Object.defineProperty(y,"expectInt",{enumerable:!0,get:function(){return D.expectInt}});Object.defineProperty(y,"expectInt32",{enumerable:!0,get:function(){return D.expectInt32}});Object.defineProperty(y,"expectLong",{enumerable:!0,get:function(){return D.expectLong}});Object.defineProperty(y,"expectNonNull",{enumerable:!0,get:function(){return D.expectNonNull}});Object.defineProperty(y,"expectNumber",{enumerable:!0,get:function(){return D.expectNumber}});Object.defineProperty(y,"expectObject",{enumerable:!0,get:function(){return D.expectObject}});Object.defineProperty(y,"expectShort",{enumerable:!0,get:function(){return D.expectShort}});Object.defineProperty(y,"expectString",{enumerable:!0,get:function(){return D.expectString}});Object.defineProperty(y,"expectUnion",{enumerable:!0,get:function(){return D.expectUnion}});Object.defineProperty(y,"generateIdempotencyToken",{enumerable:!0,get:function(){return D.generateIdempotencyToken}});Object.defineProperty(y,"handleFloat",{enumerable:!0,get:function(){return D.handleFloat}});Object.defineProperty(y,"limitedParseDouble",{enumerable:!0,get:function(){return D.limitedParseDouble}});Object.defineProperty(y,"limitedParseFloat",{enumerable:!0,get:function(){return D.limitedParseFloat}});Object.defineProperty(y,"limitedParseFloat32",{enumerable:!0,get:function(){return D.limitedParseFloat32}});Object.defineProperty(y,"logger",{enumerable:!0,get:function(){return D.logger}});Object.defineProperty(y,"nv",{enumerable:!0,get:function(){return D.nv}});Object.defineProperty(y,"parseBoolean",{enumerable:!0,get:function(){return D.parseBoolean}});Object.defineProperty(y,"parseEpochTimestamp",{enumerable:!0,get:function(){return D.parseEpochTimestamp}});Object.defineProperty(y,"parseRfc3339DateTime",{enumerable:!0,get:function(){return D.parseRfc3339DateTime}});Object.defineProperty(y,"parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return D.parseRfc3339DateTimeWithOffset}});Object.defineProperty(y,"parseRfc7231DateTime",{enumerable:!0,get:function(){return D.parseRfc7231DateTime}});Object.defineProperty(y,"quoteHeader",{enumerable:!0,get:function(){return D.quoteHeader}});Object.defineProperty(y,"splitEvery",{enumerable:!0,get:function(){return D.splitEvery}});Object.defineProperty(y,"splitHeader",{enumerable:!0,get:function(){return D.splitHeader}});Object.defineProperty(y,"strictParseByte",{enumerable:!0,get:function(){return D.strictParseByte}});Object.defineProperty(y,"strictParseDouble",{enumerable:!0,get:function(){return D.strictParseDouble}});Object.defineProperty(y,"strictParseFloat",{enumerable:!0,get:function(){return D.strictParseFloat}});Object.defineProperty(y,"strictParseFloat32",{enumerable:!0,get:function(){return D.strictParseFloat32}});Object.defineProperty(y,"strictParseInt",{enumerable:!0,get:function(){return D.strictParseInt}});Object.defineProperty(y,"strictParseInt32",{enumerable:!0,get:function(){return D.strictParseInt32}});Object.defineProperty(y,"strictParseLong",{enumerable:!0,get:function(){return D.strictParseLong}});Object.defineProperty(y,"strictParseShort",{enumerable:!0,get:function(){return D.strictParseShort}});var U=Ct();Object.defineProperty(y,"Client",{enumerable:!0,get:function(){return U.Client}});Object.defineProperty(y,"Command",{enumerable:!0,get:function(){return U.Command}});Object.defineProperty(y,"NoOpLogger",{enumerable:!0,get:function(){return U.NoOpLogger}});Object.defineProperty(y,"SENSITIVE_STRING",{enumerable:!0,get:function(){return U.SENSITIVE_STRING}});Object.defineProperty(y,"ServiceException",{enumerable:!0,get:function(){return U.ServiceException}});Object.defineProperty(y,"_json",{enumerable:!0,get:function(){return U._json}});Object.defineProperty(y,"convertMap",{enumerable:!0,get:function(){return U.convertMap}});Object.defineProperty(y,"createAggregatedClient",{enumerable:!0,get:function(){return U.createAggregatedClient}});Object.defineProperty(y,"decorateServiceException",{enumerable:!0,get:function(){return U.decorateServiceException}});Object.defineProperty(y,"emitWarningIfUnsupportedVersion",{enumerable:!0,get:function(){return U.emitWarningIfUnsupportedVersion}});Object.defineProperty(y,"getArrayIfSingleItem",{enumerable:!0,get:function(){return U.getArrayIfSingleItem}});Object.defineProperty(y,"getDefaultClientConfiguration",{enumerable:!0,get:function(){return U.getDefaultClientConfiguration}});Object.defineProperty(y,"getDefaultExtensionConfiguration",{enumerable:!0,get:function(){return U.getDefaultExtensionConfiguration}});Object.defineProperty(y,"getValueFromTextNode",{enumerable:!0,get:function(){return U.getValueFromTextNode}});Object.defineProperty(y,"isSerializableHeaderValue",{enumerable:!0,get:function(){return U.isSerializableHeaderValue}});Object.defineProperty(y,"loadConfigsForDefaultMode",{enumerable:!0,get:function(){return U.loadConfigsForDefaultMode}});Object.defineProperty(y,"map",{enumerable:!0,get:function(){return U.map}});Object.defineProperty(y,"resolveDefaultRuntimeConfig",{enumerable:!0,get:function(){return U.resolveDefaultRuntimeConfig}});Object.defineProperty(y,"serializeDateTime",{enumerable:!0,get:function(){return U.serializeDateTime}});Object.defineProperty(y,"serializeFloat",{enumerable:!0,get:function(){return U.serializeFloat}});Object.defineProperty(y,"take",{enumerable:!0,get:function(){return U.take}});Object.defineProperty(y,"throwDefaultError",{enumerable:!0,get:function(){return U.throwDefaultError}});Object.defineProperty(y,"withBaseException",{enumerable:!0,get:function(){return U.withBaseException}});var ht=ft();Object.defineProperty(y,"collectBody",{enumerable:!0,get:function(){return ht.collectBody}});Object.defineProperty(y,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return ht.extendedEncodeURIComponent}});Object.defineProperty(y,"resolvedPath",{enumerable:!0,get:function(){return ht.resolvedPath}})});var Nt=O((qE)=>{var DE=Xt(),w=ft(),h=Ut(),le=_r(),AE=Q(),me=yE(),M=Ft(),g=lt(),Lt=Ct(),B=IE(),ve=TE(),st={warningEmitted:!1},OE=(t)=>{if(t&&!st.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){st.warningEmitted=!0;return}let e=parseInt(t.substring(1,t.indexOf("."))),n=22;if(e<n)st.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
3
3
  versions published after the first week of January 2027
4
4
  will require node >=${n}. You are running node ${t}.
5
5
 
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{oe as a,pe as b,qe as c,re as d,se as e,te as f,ue as g,ve as h,we as i,xe as j,ye as k}from"./chunk-y5m9c5ek.js";import"./chunk-ec1bwa7f.js";import"./chunk-hcd0k14e.js";import"./chunk-0xf12tf3.js";export{c as providerConfigFromInit,d as httpRequest,j as getInstanceMetadataEndpoint,k as fromInstanceMetadata,h as fromContainerMetadata,i as Endpoint,f as ENV_CMDS_RELATIVE_URI,e as ENV_CMDS_FULL_URI,g as ENV_CMDS_AUTH_TOKEN,a as DEFAULT_TIMEOUT,b as DEFAULT_MAX_RETRIES};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Id as a,Jd as b}from"./chunk-72qx43fq.js";import"./chunk-jt94rhev.js";import"./chunk-9a9qcvtz.js";import"./chunk-1sejtx9a.js";import"./chunk-vvmvryh1.js";import"./chunk-6g3bzap8.js";import"./chunk-mrh5q4s6.js";import"./chunk-w623r5kb.js";import"./chunk-zgj7jx8k.js";import"./chunk-0mdmqtfr.js";import"./chunk-00krzh3y.js";import"./chunk-hk8m8vax.js";import"./chunk-0xf12tf3.js";export{a as read,b as copy};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Gr as mJ,Hr as vJ,Ir as dJ,Jr as lJ,Mr as d,Nr as l,Pr as uJ,Qr as cJ,Tr as pJ,Ur as iJ,Vr as nJ,Wr as aJ,Xr as rJ,Zr as AQ}from"./chunk-4sa9t0vx.js";import{At as FQ,bt as CQ,ct as DQ}from"./chunk-azss4acq.js";import{Lt as x,Ut as GJ}from"./chunk-7s0nq2aa.js";import{$C as GQ,$G as jJ,BF as z,BH as xJ,CE as qQ,CG as EJ,FH as fJ,GG as MJ,HF as b,JE as _J,JF as CJ,JG as oJ,NG as RJ,OM as j,PG as VJ,QH as E,SG as hJ,TF as DJ,UF as FJ,VF as AJ,VH as yJ,WH as bJ,YE as BQ,ZE as wQ,ZO as g,_O as eJ,aF as $J,bF as UJ,bP as HQ,cC as wJ,cI as I,cP as WQ,dN as o,dP as R,fC as HJ,fG as t,fH as NJ,gF as zJ,gG as OJ,iC as WJ,iG as y,jJ as gJ,kC as $Q,nD as IJ,pB as tJ,qD as PJ,qH as kJ,rF as ZJ,sC as f,tD as T,uH as LJ,vG as TJ,wD as KJ,xH as SJ}from"./chunk-2zjet9tx.js";import{qP as zQ,sP as u,uP as S}from"./chunk-djfrkbd5.js";var IX={};u(IX,{resource:()=>BJ,layer:()=>EQ,enabled:()=>OQ,Observability:()=>WX});var p={};u(p,{make:()=>IQ,layer:()=>ZX});var VQ=AJ.pipe(FJ,DJ((J)=>{if(lJ(J)&&J.reason._tag==="StatusCodeError"&&J.reason.response.status===429){let Q=HJ(J.reason.response.headers["retry-after"]).pipe(WJ(CJ),wJ(()=>5));return t(T(Q))}return t(T(1))})),sJ=E(function*(J){let Q=yield*jJ(),X=f(Q,b),Y=f(Q,UJ),$=fJ(Q),G=KJ(IJ(J.exportInterval),PJ),B=void 0,C=nJ(f(Q,pJ)).pipe(iJ(NJ(rJ,!1)),aJ({schedule:VQ,times:3})),V=vJ({"user-agent":`effect-opentelemetry-${J.label}/0.0.0`});if(J.headers)V=dJ(mJ(J.headers),V);let r=uJ(J.url,{headers:V}),O=[],s=OJ(()=>{if(B!==void 0&&X.currentTimeMillisUnsafe()<B)return y;else if(B!==void 0)B=void 0;let h=O;if(J.maxBatchSize!=="disabled"){if(O.length===0)return y;O=[]}return C.execute(cJ(r,J.body(h))).pipe(EJ,SJ(!1))}).pipe(MJ((h)=>{if(B!==void 0)return y;return B=X.currentTimeMillisUnsafe()+60000,O=[],yJ("Disabling exporter for 60 seconds",h)}),bJ({package:"@effect/opentelemetry",module:J.label}));return yield*zJ(Y,s.pipe(RJ,kJ,VJ(J.shutdownTimeout))),yield*hJ(G).pipe(TJ(s),LJ,xJ(Y)),{push(h){if(B!==void 0)return;if(O.push(h),J.maxBatchSize!=="disabled"&&O.length>=J.maxBatchSize)gJ($(s),Y)}}});var jQ=(J)=>{let Q=J.attributes?e(Object.entries(J.attributes)):[];if(Q.push({key:"service.name",value:{stringValue:J.serviceName}}),J.serviceVersion)Q.push({key:"service.version",value:{stringValue:J.serviceVersion}});return{attributes:Q,droppedAttributesCount:0}},JQ=E(function*(J){let Q={...yield*g(o(eJ(j,j)),"OTEL_RESOURCE_ATTRIBUTES"),...J?.attributes},X=J?.serviceName??Q["service.name"]??(yield*g(j,"OTEL_SERVICE_NAME"));delete Q["service.name"];let Y=J?.serviceVersion??Q["service.version"]??(yield*g(o(j),"OTEL_SERVICE_VERSION"));return delete Q["service.version"],jQ({serviceName:X,serviceVersion:Y,attributes:Q})},oJ),QQ=(J)=>{let Q=J.attributes.find((X)=>X.key==="service.name");if(!Q||!Q.value.stringValue)throw Error("Resource does not contain a service name");return Q.value.stringValue},e=(J)=>{let Q=[];for(let[X,Y]of J)Q.push({key:X,value:m(Y)});return Q},m=(J)=>{if(Array.isArray(J))return{arrayValue:{values:J.map(m)}};switch(typeof J){case"string":return{stringValue:J};case"bigint":return{intValue:Number(J)};case"number":return Number.isInteger(J)?{intValue:J}:{doubleValue:J};case"boolean":return{boolValue:J};default:return{stringValue:tJ(J)}}};var c={};u(c,{layerProtobuf:()=>YX,layerJson:()=>XX,OtlpSerialization:()=>M});var N={Varint:0,Fixed64:1,LengthDelimited:2,Fixed32:5},k=(J,Q)=>J<<3|Q,D=(J)=>{let Q=[],X=typeof J==="bigint"?J:BigInt(J);while(X>0x7fn)Q.push(Number(X&0x7fn)|128),X>>=7n;return Q.push(Number(X)),new Uint8Array(Q)};var kQ=(J)=>{let Q=new Uint8Array(8);return new DataView(Q.buffer).setBigUint64(0,J,!0),Q},LQ=(J)=>{let Q=new Uint8Array(4);return new DataView(Q.buffer).setUint32(0,J,!0),Q},SQ=(J)=>{let Q=new Uint8Array(8);return new DataView(Q.buffer).setFloat64(0,J,!0),Q},xQ=(J)=>new TextEncoder().encode(J),fQ=(J)=>{let Q=new Uint8Array(J.length/2);for(let X=0;X<J.length;X+=2)Q[X/2]=parseInt(J.slice(X,X+2),16);return Q},Z=(...J)=>{let Q=J.reduce(($,G)=>$+G.length,0),X=new Uint8Array(Q),Y=0;for(let $ of J)X.set($,Y),Y+=$.length;return X},q=(J,Q)=>Z(D(k(J,N.Varint)),D(Q));var JJ=(J,Q)=>q(J,Q?1:0),W=(J,Q)=>Z(D(k(J,N.Fixed64)),kQ(Q)),v=(J,Q)=>Z(D(k(J,N.Fixed32)),LQ(Q)),F=(J,Q)=>Z(D(k(J,N.Fixed64)),SQ(Q)),L=(J,Q)=>Z(D(k(J,N.LengthDelimited)),D(Q.length),Q),K=(J,Q)=>L(J,xQ(Q)),U=(J,Q)=>L(J,fQ(Q)),w=(J,Q)=>L(J,Q),_=(J,Q,X)=>Z(...Q.map((Y)=>w(J,X(Y))));var H=(J,Q)=>Q!==void 0&&Q!==""?K(J,Q):new Uint8Array(0);var QJ=(J)=>{if(J.stringValue!==void 0&&J.stringValue!==null)return K(1,J.stringValue);if(J.boolValue!==void 0&&J.boolValue!==null)return JJ(2,J.boolValue);if(J.intValue!==void 0&&J.intValue!==null)return q(3,BigInt(J.intValue));if(J.doubleValue!==void 0&&J.doubleValue!==null)return F(4,J.doubleValue);if(J.arrayValue!==void 0)return w(5,bQ(J.arrayValue));if(J.kvlistValue!==void 0)return w(6,gQ(J.kvlistValue));if(J.bytesValue!==void 0)return L(7,J.bytesValue);return new Uint8Array(0)},bQ=(J)=>_(1,J.values,QJ),gQ=(J)=>_(1,J.values,P),P=(J)=>Z(K(1,J.key),w(2,QJ(J.value))),XJ=(J)=>Z(K(1,J.name),H(2,J.version),J.attributes?_(3,J.attributes,P):new Uint8Array(0),J.droppedAttributesCount?q(4,J.droppedAttributesCount):new Uint8Array(0)),YJ=(J)=>Z(_(1,J.attributes,P),J.droppedAttributesCount>0?q(2,J.droppedAttributesCount):new Uint8Array(0));var mQ=(J)=>Z(H(2,J.message),q(3,J.code)),vQ=(J)=>Z(W(1,BigInt(J.timeUnixNano)),K(2,J.name),_(3,J.attributes,P),J.droppedAttributesCount>0?q(4,J.droppedAttributesCount):new Uint8Array(0)),dQ=(J)=>Z(U(1,J.traceId),U(2,J.spanId),H(3,J.traceState),_(4,J.attributes,P),J.droppedAttributesCount>0?q(5,J.droppedAttributesCount):new Uint8Array(0),J.flags!==void 0?v(6,J.flags):new Uint8Array(0)),lQ=(J)=>Z(U(1,J.traceId),U(2,J.spanId),H(3,J.traceState),J.parentSpanId!==void 0?U(4,J.parentSpanId):new Uint8Array(0),K(5,J.name),q(6,J.kind),W(7,BigInt(J.startTimeUnixNano)),W(8,BigInt(J.endTimeUnixNano)),_(9,J.attributes,P),J.droppedAttributesCount>0?q(10,J.droppedAttributesCount):new Uint8Array(0),_(11,J.events,vQ),J.droppedEventsCount>0?q(12,J.droppedEventsCount):new Uint8Array(0),_(13,J.links,dQ),J.droppedLinksCount>0?q(14,J.droppedLinksCount):new Uint8Array(0),w(15,mQ(J.status)),J.flags!==void 0?v(16,J.flags):new Uint8Array(0)),uQ=(J)=>Z(w(1,XJ(J.scope)),_(2,J.spans,lQ),H(3,J.schemaUrl)),cQ=(J)=>Z(w(1,YJ(J.resource)),_(2,J.scopeSpans,uQ),H(3,J.schemaUrl)),XQ=(J)=>_(1,J.resourceSpans,cQ);var YQ=(J)=>Z(W(2,BigInt(J.startTimeUnixNano)),W(3,BigInt(J.timeUnixNano)),J.asDouble!==void 0?F(4,J.asDouble):new Uint8Array(0),J.asInt!==void 0?W(6,BigInt(J.asInt)):new Uint8Array(0),_(7,J.attributes,P),J.flags!==void 0?q(8,J.flags):new Uint8Array(0)),pQ=(J)=>{let Q=Z(...J.bucketCounts.map((Y)=>W(6,BigInt(Y)))),X=Z(...J.explicitBounds.map((Y)=>F(7,Y)));return Z(W(2,BigInt(J.startTimeUnixNano)),W(3,BigInt(J.timeUnixNano)),W(4,BigInt(J.count)),J.sum!==void 0?F(5,J.sum):new Uint8Array(0),Q,X,_(9,J.attributes,P),J.flags!==void 0?q(10,J.flags):new Uint8Array(0),J.min!==void 0?F(11,J.min):new Uint8Array(0),J.max!==void 0?F(12,J.max):new Uint8Array(0))},iQ=(J)=>_(1,J.dataPoints,YQ),nQ=(J)=>Z(_(1,J.dataPoints,YQ),q(2,J.aggregationTemporality),JJ(3,J.isMonotonic)),aQ=(J)=>Z(_(1,J.dataPoints,pQ),q(2,J.aggregationTemporality)),rQ=(J)=>Z(K(1,J.name),H(2,J.description),H(3,J.unit),J.gauge!==void 0?w(5,iQ(J.gauge)):new Uint8Array(0),J.sum!==void 0?w(7,nQ(J.sum)):new Uint8Array(0),J.histogram!==void 0?w(9,aQ(J.histogram)):new Uint8Array(0)),sQ=(J)=>Z(w(1,XJ(J.scope)),_(2,J.metrics,rQ),H(3,J.schemaUrl)),tQ=(J)=>Z(w(1,YJ(J.resource)),_(2,J.scopeMetrics,sQ),H(3,J.schemaUrl)),ZQ=(J)=>_(1,J.resourceMetrics,tQ);var oQ=(J)=>Z(W(1,BigInt(J.timeUnixNano)),J.severityNumber!==void 0?q(2,J.severityNumber):new Uint8Array(0),H(3,J.severityText),J.body!==void 0?w(5,QJ(J.body)):new Uint8Array(0),_(6,J.attributes,P),J.droppedAttributesCount!==void 0&&J.droppedAttributesCount>0?q(7,J.droppedAttributesCount):new Uint8Array(0),J.flags!==void 0?v(8,J.flags):new Uint8Array(0),J.traceId!==void 0&&J.traceId!==""?U(9,J.traceId):new Uint8Array(0),J.spanId!==void 0&&J.spanId!==""?U(10,J.spanId):new Uint8Array(0),J.observedTimeUnixNano!==void 0?W(11,BigInt(J.observedTimeUnixNano)):new Uint8Array(0)),eQ=(J)=>Z(w(1,XJ(J.scope)),_(2,J.logRecords,oQ),H(3,J.schemaUrl)),JX=(J)=>Z(w(1,YJ(J.resource)),_(2,J.scopeLogs,eQ),H(3,J.schemaUrl)),_Q=(J)=>_(1,J.resourceLogs,JX);class M extends $Q()("effect/observability/OtlpSerialization"){}var XX=ZJ(M,{traces:(J)=>l(J),metrics:(J)=>l(J),logs:(J)=>l(J)}),YX=ZJ(M,{traces:(J)=>d(XQ(J),"application/x-protobuf"),metrics:(J)=>d(ZQ(J),"application/x-protobuf"),logs:(J)=>d(_Q(J),"application/x-protobuf")});var IQ=E(function*(J){let Q=yield*M,X=yield*JQ(J.resource),Y={name:QQ(X)},$=yield*sJ({label:"OtlpLogger",url:J.url,headers:J.headers,maxBatchSize:J.maxBatchSize??1000,exportInterval:J.exportInterval??T(1),body:(B)=>Q.logs({resourceLogs:[{resource:X,scopeLogs:[{scope:Y,logRecords:B}]}]}),shutdownTimeout:J.shutdownTimeout??T(3)}),G={excludeLogSpans:J.excludeLogSpans??!1,clock:yield*b};return HQ((B)=>{$.push(_X(B,G))})}),ZX=(J)=>WQ([IQ(J)],{mergeWithExisting:J.mergeWithExisting??!0}),_X=(J,Q)=>{let Y=Q.clock.currentTimeNanosUnsafe().toString(),$=J.date.getTime(),G=e(Object.entries(J.fiber.getRef(BQ)));if(G.push({key:"fiberId",value:{intValue:J.fiber.id}}),!Q.excludeLogSpans)for(let[V,r]of J.fiber.getRef(wQ))G.push({key:`logSpan.${V}`,value:{stringValue:`${$-r}ms`}});if(J.cause.reasons.length>0)G.push({key:"log.error",value:{stringValue:qQ(J.cause)}});let B=GQ(J.message),C={severityNumber:$X(J.logLevel),severityText:J.logLevel,timeUnixNano:Y,observedTimeUnixNano:Y,attributes:G,body:m(B.length===1?B[0]:B),droppedAttributesCount:0};if(J.fiber.currentSpan)C.traceId=J.fiber.currentSpan.traceId,C.spanId=J.fiber.currentSpan.spanId;return C},$X=(J)=>{switch(J){case"Trace":return A.SEVERITY_NUMBER_TRACE;case"Debug":return A.SEVERITY_NUMBER_DEBUG;case"Info":return A.SEVERITY_NUMBER_INFO;case"Warn":return A.SEVERITY_NUMBER_WARN;case"Error":return A.SEVERITY_NUMBER_ERROR;case"Fatal":return A.SEVERITY_NUMBER_FATAL;default:return A.SEVERITY_NUMBER_UNSPECIFIED}},A={SEVERITY_NUMBER_UNSPECIFIED:0,SEVERITY_NUMBER_TRACE:1,SEVERITY_NUMBER_TRACE2:2,SEVERITY_NUMBER_TRACE3:3,SEVERITY_NUMBER_TRACE4:4,SEVERITY_NUMBER_DEBUG:5,SEVERITY_NUMBER_DEBUG2:6,SEVERITY_NUMBER_DEBUG3:7,SEVERITY_NUMBER_DEBUG4:8,SEVERITY_NUMBER_INFO:9,SEVERITY_NUMBER_INFO2:10,SEVERITY_NUMBER_INFO3:11,SEVERITY_NUMBER_INFO4:12,SEVERITY_NUMBER_WARN:13,SEVERITY_NUMBER_WARN2:14,SEVERITY_NUMBER_WARN3:15,SEVERITY_NUMBER_WARN4:16,SEVERITY_NUMBER_ERROR:17,SEVERITY_NUMBER_ERROR2:18,SEVERITY_NUMBER_ERROR3:19,SEVERITY_NUMBER_ERROR4:20,SEVERITY_NUMBER_FATAL:21,SEVERITY_NUMBER_FATAL2:22,SEVERITY_NUMBER_FATAL3:23,SEVERITY_NUMBER_FATAL4:24};var UQ={};u(UQ,{logger:()=>n,layer:()=>qJ,create:()=>KQ});var GX=(J)=>J==="sessionID"?"session.id":J,PQ=(J)=>Object.fromEntries(Object.entries(J??{}).filter((Q)=>Q[1]!==void 0&&Q[1]!==null).map(([Q,X])=>[GX(Q),X])),qX=(J)=>{if(Array.isArray(J))return J.map((Q)=>String(Q)).join(" ");return J===void 0?"":String(J)},i=(J,Q,X,Y)=>{let $=PQ({...Q,...Y}),G=J(X);return Object.keys($).length?I.annotateLogs(G,$):G},n=R.make((J)=>{let Q=PQ(J.fiber.getRef($J.CurrentLogAnnotations)),X=J.date.getTime();for(let[B,C]of J.fiber.getRef($J.CurrentLogSpans))Q[`logSpan.${B}`]=`${X-C}ms`;if(J.cause.reasons.length>0)Q.cause=_J.pretty(J.cause);let Y=typeof Q.service==="string"?Q.service:void 0;if(Y)delete Q.service;let $=Y?GJ.create({service:Y}):GJ.Default,G=qX(J.message);switch(J.logLevel){case"Trace":case"Debug":return $.debug(G,Q);case"Warn":return $.warn(G,Q);case"Error":case"Fatal":return $.error(G,Q);default:return $.info(G,Q)}}),qJ=R.layer([n],{mergeWithExisting:!1}),KQ=(J={})=>({debug:(Q,X)=>i((Y)=>I.logDebug(Y),J,Q,X),info:(Q,X)=>i((Y)=>I.logInfo(Y),J,Q,X),warn:(Q,X)=>i((Y)=>I.logWarning(Y),J,Q,X),error:(Q,X)=>i((Y)=>I.logError(Y),J,Q,X),with:(Q)=>KQ({...J,...Q})});var a=x.OTEL_EXPORTER_OTLP_ENDPOINT,OQ=!!a,BX=crypto.randomUUID(),TQ=x.OTEL_EXPORTER_OTLP_HEADERS?x.OTEL_EXPORTER_OTLP_HEADERS.split(",").reduce((J,Q)=>{let[X,...Y]=Q.split("=");return J[X]=Y.join("="),J},{}):void 0;function BJ(){let J=FQ("main"),Q=(()=>{let X=process.env.OTEL_RESOURCE_ATTRIBUTES;if(!X)return{};try{return Object.fromEntries(X.split(",").map((Y)=>{let $=Y.indexOf("=");if($<1)throw Error("Invalid OTEL_RESOURCE_ATTRIBUTES entry");return[decodeURIComponent(Y.slice(0,$)),decodeURIComponent(Y.slice($+1))]}))}catch{return{}}})();return{serviceName:"qitqode",serviceVersion:CQ,attributes:{...Q,"deployment.environment.name":DQ,"qitqode.client":x.QITQODE_CLIENT,"qitqode.process_role":J.processRole,"qitqode.run_id":J.runID,"service.instance.id":BX}}}function wX(){return R.layer([n,p.make({url:`${a}/v1/logs`,resource:BJ(),headers:TQ})],{mergeWithExisting:!1}).pipe(z.provide(c.layerJson),z.provide(AQ.layer))}var HX=async()=>{let J=await import("./chunk-pky8h8rh.js"),Q=await import("./chunk-acsqvgdw.js"),X=await import("./chunk-9bbwxp5d.js"),{AsyncLocalStorageContextManager:Y}=await import("./chunk-fvv1cret.js").then((m)=>zQ(m.default,1)),{context:$}=await import("./chunk-62x3r2q8.js").then((m)=>zQ(m.default,1)),G=new Y;return G.enable(),$.setGlobalContextManager(G),J.layer(()=>({resource:BJ(),spanProcessor:new X.BatchSpanProcessor(new Q.OTLPTraceExporter({url:`${a}/v1/traces`,headers:TQ}))}))},EQ=!a?qJ:z.unwrap(I.gen(function*(){let J=yield*I.promise(HX);return z.mergeAll(J,wX())})),WX={enabled:OQ,layer:EQ};var aX=z.makeMemoMapUnsafe();
3
- export{qJ as Ar,UQ as Br,EQ as Cr,WX as Dr,IX as Er,aX as Fr};
2
+ import{Hr as mJ,Ir as vJ,Jr as dJ,Kr as lJ,Nr as d,Or as l,Qr as uJ,Rr as cJ,Ur as pJ,Vr as iJ,Wr as nJ,Xr as aJ,Yr as rJ,_r as AQ}from"./chunk-53n3tfwn.js";import{Bt as FQ,ct as CQ,dt as DQ}from"./chunk-dpm5x19e.js";import{Mt as x,Vt as GJ}from"./chunk-6g3bzap8.js";import{$O as eJ,CF as z,CH as xJ,DE as qQ,DG as EJ,GH as fJ,HG as MJ,IF as b,KE as _J,KF as CJ,KG as oJ,OG as RJ,PM as j,QG as VJ,RH as E,TG as hJ,UF as DJ,VF as FJ,WF as AJ,WH as yJ,XH as bJ,ZE as BQ,_E as wQ,_O as g,aD as GQ,aH as jJ,bF as $J,cF as UJ,cP as HQ,dC as wJ,dI as I,dP as WQ,eN as o,eP as R,gC as HJ,gG as t,gH as NJ,hF as zJ,hG as OJ,jC as WJ,jG as y,kJ as gJ,lC as $Q,oD as IJ,qB as tJ,rD as PJ,rH as kJ,sF as ZJ,tC as f,uD as T,vH as LJ,wG as TJ,xD as KJ,yH as SJ}from"./chunk-hk8m8vax.js";import{rP as zQ,tP as u,vP as S}from"./chunk-0xf12tf3.js";var IX={};u(IX,{resource:()=>BJ,layer:()=>EQ,enabled:()=>OQ,Observability:()=>WX});var p={};u(p,{make:()=>IQ,layer:()=>ZX});var VQ=AJ.pipe(FJ,DJ((J)=>{if(lJ(J)&&J.reason._tag==="StatusCodeError"&&J.reason.response.status===429){let Q=HJ(J.reason.response.headers["retry-after"]).pipe(WJ(CJ),wJ(()=>5));return t(T(Q))}return t(T(1))})),sJ=E(function*(J){let Q=yield*jJ(),X=f(Q,b),Y=f(Q,UJ),$=fJ(Q),G=KJ(IJ(J.exportInterval),PJ),B=void 0,C=nJ(f(Q,pJ)).pipe(iJ(NJ(rJ,!1)),aJ({schedule:VQ,times:3})),V=vJ({"user-agent":`effect-opentelemetry-${J.label}/0.0.0`});if(J.headers)V=dJ(mJ(J.headers),V);let r=uJ(J.url,{headers:V}),O=[],s=OJ(()=>{if(B!==void 0&&X.currentTimeMillisUnsafe()<B)return y;else if(B!==void 0)B=void 0;let h=O;if(J.maxBatchSize!=="disabled"){if(O.length===0)return y;O=[]}return C.execute(cJ(r,J.body(h))).pipe(EJ,SJ(!1))}).pipe(MJ((h)=>{if(B!==void 0)return y;return B=X.currentTimeMillisUnsafe()+60000,O=[],yJ("Disabling exporter for 60 seconds",h)}),bJ({package:"@effect/opentelemetry",module:J.label}));return yield*zJ(Y,s.pipe(RJ,kJ,VJ(J.shutdownTimeout))),yield*hJ(G).pipe(TJ(s),LJ,xJ(Y)),{push(h){if(B!==void 0)return;if(O.push(h),J.maxBatchSize!=="disabled"&&O.length>=J.maxBatchSize)gJ($(s),Y)}}});var jQ=(J)=>{let Q=J.attributes?e(Object.entries(J.attributes)):[];if(Q.push({key:"service.name",value:{stringValue:J.serviceName}}),J.serviceVersion)Q.push({key:"service.version",value:{stringValue:J.serviceVersion}});return{attributes:Q,droppedAttributesCount:0}},JQ=E(function*(J){let Q={...yield*g(o(eJ(j,j)),"OTEL_RESOURCE_ATTRIBUTES"),...J?.attributes},X=J?.serviceName??Q["service.name"]??(yield*g(j,"OTEL_SERVICE_NAME"));delete Q["service.name"];let Y=J?.serviceVersion??Q["service.version"]??(yield*g(o(j),"OTEL_SERVICE_VERSION"));return delete Q["service.version"],jQ({serviceName:X,serviceVersion:Y,attributes:Q})},oJ),QQ=(J)=>{let Q=J.attributes.find((X)=>X.key==="service.name");if(!Q||!Q.value.stringValue)throw Error("Resource does not contain a service name");return Q.value.stringValue},e=(J)=>{let Q=[];for(let[X,Y]of J)Q.push({key:X,value:m(Y)});return Q},m=(J)=>{if(Array.isArray(J))return{arrayValue:{values:J.map(m)}};switch(typeof J){case"string":return{stringValue:J};case"bigint":return{intValue:Number(J)};case"number":return Number.isInteger(J)?{intValue:J}:{doubleValue:J};case"boolean":return{boolValue:J};default:return{stringValue:tJ(J)}}};var c={};u(c,{layerProtobuf:()=>YX,layerJson:()=>XX,OtlpSerialization:()=>M});var N={Varint:0,Fixed64:1,LengthDelimited:2,Fixed32:5},k=(J,Q)=>J<<3|Q,D=(J)=>{let Q=[],X=typeof J==="bigint"?J:BigInt(J);while(X>0x7fn)Q.push(Number(X&0x7fn)|128),X>>=7n;return Q.push(Number(X)),new Uint8Array(Q)};var kQ=(J)=>{let Q=new Uint8Array(8);return new DataView(Q.buffer).setBigUint64(0,J,!0),Q},LQ=(J)=>{let Q=new Uint8Array(4);return new DataView(Q.buffer).setUint32(0,J,!0),Q},SQ=(J)=>{let Q=new Uint8Array(8);return new DataView(Q.buffer).setFloat64(0,J,!0),Q},xQ=(J)=>new TextEncoder().encode(J),fQ=(J)=>{let Q=new Uint8Array(J.length/2);for(let X=0;X<J.length;X+=2)Q[X/2]=parseInt(J.slice(X,X+2),16);return Q},Z=(...J)=>{let Q=J.reduce(($,G)=>$+G.length,0),X=new Uint8Array(Q),Y=0;for(let $ of J)X.set($,Y),Y+=$.length;return X},q=(J,Q)=>Z(D(k(J,N.Varint)),D(Q));var JJ=(J,Q)=>q(J,Q?1:0),W=(J,Q)=>Z(D(k(J,N.Fixed64)),kQ(Q)),v=(J,Q)=>Z(D(k(J,N.Fixed32)),LQ(Q)),F=(J,Q)=>Z(D(k(J,N.Fixed64)),SQ(Q)),L=(J,Q)=>Z(D(k(J,N.LengthDelimited)),D(Q.length),Q),K=(J,Q)=>L(J,xQ(Q)),U=(J,Q)=>L(J,fQ(Q)),w=(J,Q)=>L(J,Q),_=(J,Q,X)=>Z(...Q.map((Y)=>w(J,X(Y))));var H=(J,Q)=>Q!==void 0&&Q!==""?K(J,Q):new Uint8Array(0);var QJ=(J)=>{if(J.stringValue!==void 0&&J.stringValue!==null)return K(1,J.stringValue);if(J.boolValue!==void 0&&J.boolValue!==null)return JJ(2,J.boolValue);if(J.intValue!==void 0&&J.intValue!==null)return q(3,BigInt(J.intValue));if(J.doubleValue!==void 0&&J.doubleValue!==null)return F(4,J.doubleValue);if(J.arrayValue!==void 0)return w(5,bQ(J.arrayValue));if(J.kvlistValue!==void 0)return w(6,gQ(J.kvlistValue));if(J.bytesValue!==void 0)return L(7,J.bytesValue);return new Uint8Array(0)},bQ=(J)=>_(1,J.values,QJ),gQ=(J)=>_(1,J.values,P),P=(J)=>Z(K(1,J.key),w(2,QJ(J.value))),XJ=(J)=>Z(K(1,J.name),H(2,J.version),J.attributes?_(3,J.attributes,P):new Uint8Array(0),J.droppedAttributesCount?q(4,J.droppedAttributesCount):new Uint8Array(0)),YJ=(J)=>Z(_(1,J.attributes,P),J.droppedAttributesCount>0?q(2,J.droppedAttributesCount):new Uint8Array(0));var mQ=(J)=>Z(H(2,J.message),q(3,J.code)),vQ=(J)=>Z(W(1,BigInt(J.timeUnixNano)),K(2,J.name),_(3,J.attributes,P),J.droppedAttributesCount>0?q(4,J.droppedAttributesCount):new Uint8Array(0)),dQ=(J)=>Z(U(1,J.traceId),U(2,J.spanId),H(3,J.traceState),_(4,J.attributes,P),J.droppedAttributesCount>0?q(5,J.droppedAttributesCount):new Uint8Array(0),J.flags!==void 0?v(6,J.flags):new Uint8Array(0)),lQ=(J)=>Z(U(1,J.traceId),U(2,J.spanId),H(3,J.traceState),J.parentSpanId!==void 0?U(4,J.parentSpanId):new Uint8Array(0),K(5,J.name),q(6,J.kind),W(7,BigInt(J.startTimeUnixNano)),W(8,BigInt(J.endTimeUnixNano)),_(9,J.attributes,P),J.droppedAttributesCount>0?q(10,J.droppedAttributesCount):new Uint8Array(0),_(11,J.events,vQ),J.droppedEventsCount>0?q(12,J.droppedEventsCount):new Uint8Array(0),_(13,J.links,dQ),J.droppedLinksCount>0?q(14,J.droppedLinksCount):new Uint8Array(0),w(15,mQ(J.status)),J.flags!==void 0?v(16,J.flags):new Uint8Array(0)),uQ=(J)=>Z(w(1,XJ(J.scope)),_(2,J.spans,lQ),H(3,J.schemaUrl)),cQ=(J)=>Z(w(1,YJ(J.resource)),_(2,J.scopeSpans,uQ),H(3,J.schemaUrl)),XQ=(J)=>_(1,J.resourceSpans,cQ);var YQ=(J)=>Z(W(2,BigInt(J.startTimeUnixNano)),W(3,BigInt(J.timeUnixNano)),J.asDouble!==void 0?F(4,J.asDouble):new Uint8Array(0),J.asInt!==void 0?W(6,BigInt(J.asInt)):new Uint8Array(0),_(7,J.attributes,P),J.flags!==void 0?q(8,J.flags):new Uint8Array(0)),pQ=(J)=>{let Q=Z(...J.bucketCounts.map((Y)=>W(6,BigInt(Y)))),X=Z(...J.explicitBounds.map((Y)=>F(7,Y)));return Z(W(2,BigInt(J.startTimeUnixNano)),W(3,BigInt(J.timeUnixNano)),W(4,BigInt(J.count)),J.sum!==void 0?F(5,J.sum):new Uint8Array(0),Q,X,_(9,J.attributes,P),J.flags!==void 0?q(10,J.flags):new Uint8Array(0),J.min!==void 0?F(11,J.min):new Uint8Array(0),J.max!==void 0?F(12,J.max):new Uint8Array(0))},iQ=(J)=>_(1,J.dataPoints,YQ),nQ=(J)=>Z(_(1,J.dataPoints,YQ),q(2,J.aggregationTemporality),JJ(3,J.isMonotonic)),aQ=(J)=>Z(_(1,J.dataPoints,pQ),q(2,J.aggregationTemporality)),rQ=(J)=>Z(K(1,J.name),H(2,J.description),H(3,J.unit),J.gauge!==void 0?w(5,iQ(J.gauge)):new Uint8Array(0),J.sum!==void 0?w(7,nQ(J.sum)):new Uint8Array(0),J.histogram!==void 0?w(9,aQ(J.histogram)):new Uint8Array(0)),sQ=(J)=>Z(w(1,XJ(J.scope)),_(2,J.metrics,rQ),H(3,J.schemaUrl)),tQ=(J)=>Z(w(1,YJ(J.resource)),_(2,J.scopeMetrics,sQ),H(3,J.schemaUrl)),ZQ=(J)=>_(1,J.resourceMetrics,tQ);var oQ=(J)=>Z(W(1,BigInt(J.timeUnixNano)),J.severityNumber!==void 0?q(2,J.severityNumber):new Uint8Array(0),H(3,J.severityText),J.body!==void 0?w(5,QJ(J.body)):new Uint8Array(0),_(6,J.attributes,P),J.droppedAttributesCount!==void 0&&J.droppedAttributesCount>0?q(7,J.droppedAttributesCount):new Uint8Array(0),J.flags!==void 0?v(8,J.flags):new Uint8Array(0),J.traceId!==void 0&&J.traceId!==""?U(9,J.traceId):new Uint8Array(0),J.spanId!==void 0&&J.spanId!==""?U(10,J.spanId):new Uint8Array(0),J.observedTimeUnixNano!==void 0?W(11,BigInt(J.observedTimeUnixNano)):new Uint8Array(0)),eQ=(J)=>Z(w(1,XJ(J.scope)),_(2,J.logRecords,oQ),H(3,J.schemaUrl)),JX=(J)=>Z(w(1,YJ(J.resource)),_(2,J.scopeLogs,eQ),H(3,J.schemaUrl)),_Q=(J)=>_(1,J.resourceLogs,JX);class M extends $Q()("effect/observability/OtlpSerialization"){}var XX=ZJ(M,{traces:(J)=>l(J),metrics:(J)=>l(J),logs:(J)=>l(J)}),YX=ZJ(M,{traces:(J)=>d(XQ(J),"application/x-protobuf"),metrics:(J)=>d(ZQ(J),"application/x-protobuf"),logs:(J)=>d(_Q(J),"application/x-protobuf")});var IQ=E(function*(J){let Q=yield*M,X=yield*JQ(J.resource),Y={name:QQ(X)},$=yield*sJ({label:"OtlpLogger",url:J.url,headers:J.headers,maxBatchSize:J.maxBatchSize??1000,exportInterval:J.exportInterval??T(1),body:(B)=>Q.logs({resourceLogs:[{resource:X,scopeLogs:[{scope:Y,logRecords:B}]}]}),shutdownTimeout:J.shutdownTimeout??T(3)}),G={excludeLogSpans:J.excludeLogSpans??!1,clock:yield*b};return HQ((B)=>{$.push(_X(B,G))})}),ZX=(J)=>WQ([IQ(J)],{mergeWithExisting:J.mergeWithExisting??!0}),_X=(J,Q)=>{let Y=Q.clock.currentTimeNanosUnsafe().toString(),$=J.date.getTime(),G=e(Object.entries(J.fiber.getRef(BQ)));if(G.push({key:"fiberId",value:{intValue:J.fiber.id}}),!Q.excludeLogSpans)for(let[V,r]of J.fiber.getRef(wQ))G.push({key:`logSpan.${V}`,value:{stringValue:`${$-r}ms`}});if(J.cause.reasons.length>0)G.push({key:"log.error",value:{stringValue:qQ(J.cause)}});let B=GQ(J.message),C={severityNumber:$X(J.logLevel),severityText:J.logLevel,timeUnixNano:Y,observedTimeUnixNano:Y,attributes:G,body:m(B.length===1?B[0]:B),droppedAttributesCount:0};if(J.fiber.currentSpan)C.traceId=J.fiber.currentSpan.traceId,C.spanId=J.fiber.currentSpan.spanId;return C},$X=(J)=>{switch(J){case"Trace":return A.SEVERITY_NUMBER_TRACE;case"Debug":return A.SEVERITY_NUMBER_DEBUG;case"Info":return A.SEVERITY_NUMBER_INFO;case"Warn":return A.SEVERITY_NUMBER_WARN;case"Error":return A.SEVERITY_NUMBER_ERROR;case"Fatal":return A.SEVERITY_NUMBER_FATAL;default:return A.SEVERITY_NUMBER_UNSPECIFIED}},A={SEVERITY_NUMBER_UNSPECIFIED:0,SEVERITY_NUMBER_TRACE:1,SEVERITY_NUMBER_TRACE2:2,SEVERITY_NUMBER_TRACE3:3,SEVERITY_NUMBER_TRACE4:4,SEVERITY_NUMBER_DEBUG:5,SEVERITY_NUMBER_DEBUG2:6,SEVERITY_NUMBER_DEBUG3:7,SEVERITY_NUMBER_DEBUG4:8,SEVERITY_NUMBER_INFO:9,SEVERITY_NUMBER_INFO2:10,SEVERITY_NUMBER_INFO3:11,SEVERITY_NUMBER_INFO4:12,SEVERITY_NUMBER_WARN:13,SEVERITY_NUMBER_WARN2:14,SEVERITY_NUMBER_WARN3:15,SEVERITY_NUMBER_WARN4:16,SEVERITY_NUMBER_ERROR:17,SEVERITY_NUMBER_ERROR2:18,SEVERITY_NUMBER_ERROR3:19,SEVERITY_NUMBER_ERROR4:20,SEVERITY_NUMBER_FATAL:21,SEVERITY_NUMBER_FATAL2:22,SEVERITY_NUMBER_FATAL3:23,SEVERITY_NUMBER_FATAL4:24};var UQ={};u(UQ,{logger:()=>n,layer:()=>qJ,create:()=>KQ});var GX=(J)=>J==="sessionID"?"session.id":J,PQ=(J)=>Object.fromEntries(Object.entries(J??{}).filter((Q)=>Q[1]!==void 0&&Q[1]!==null).map(([Q,X])=>[GX(Q),X])),qX=(J)=>{if(Array.isArray(J))return J.map((Q)=>String(Q)).join(" ");return J===void 0?"":String(J)},i=(J,Q,X,Y)=>{let $=PQ({...Q,...Y}),G=J(X);return Object.keys($).length?I.annotateLogs(G,$):G},n=R.make((J)=>{let Q=PQ(J.fiber.getRef($J.CurrentLogAnnotations)),X=J.date.getTime();for(let[B,C]of J.fiber.getRef($J.CurrentLogSpans))Q[`logSpan.${B}`]=`${X-C}ms`;if(J.cause.reasons.length>0)Q.cause=_J.pretty(J.cause);let Y=typeof Q.service==="string"?Q.service:void 0;if(Y)delete Q.service;let $=Y?GJ.create({service:Y}):GJ.Default,G=qX(J.message);switch(J.logLevel){case"Trace":case"Debug":return $.debug(G,Q);case"Warn":return $.warn(G,Q);case"Error":case"Fatal":return $.error(G,Q);default:return $.info(G,Q)}}),qJ=R.layer([n],{mergeWithExisting:!1}),KQ=(J={})=>({debug:(Q,X)=>i((Y)=>I.logDebug(Y),J,Q,X),info:(Q,X)=>i((Y)=>I.logInfo(Y),J,Q,X),warn:(Q,X)=>i((Y)=>I.logWarning(Y),J,Q,X),error:(Q,X)=>i((Y)=>I.logError(Y),J,Q,X),with:(Q)=>KQ({...J,...Q})});var a=x.OTEL_EXPORTER_OTLP_ENDPOINT,OQ=!!a,BX=crypto.randomUUID(),TQ=x.OTEL_EXPORTER_OTLP_HEADERS?x.OTEL_EXPORTER_OTLP_HEADERS.split(",").reduce((J,Q)=>{let[X,...Y]=Q.split("=");return J[X]=Y.join("="),J},{}):void 0;function BJ(){let J=FQ("main"),Q=(()=>{let X=process.env.OTEL_RESOURCE_ATTRIBUTES;if(!X)return{};try{return Object.fromEntries(X.split(",").map((Y)=>{let $=Y.indexOf("=");if($<1)throw Error("Invalid OTEL_RESOURCE_ATTRIBUTES entry");return[decodeURIComponent(Y.slice(0,$)),decodeURIComponent(Y.slice($+1))]}))}catch{return{}}})();return{serviceName:"qitqode",serviceVersion:CQ,attributes:{...Q,"deployment.environment.name":DQ,"qitqode.client":x.QITQODE_CLIENT,"qitqode.process_role":J.processRole,"qitqode.run_id":J.runID,"service.instance.id":BX}}}function wX(){return R.layer([n,p.make({url:`${a}/v1/logs`,resource:BJ(),headers:TQ})],{mergeWithExisting:!1}).pipe(z.provide(c.layerJson),z.provide(AQ.layer))}var HX=async()=>{let J=await import("./chunk-ydz7387e.js"),Q=await import("./chunk-2b80n6nx.js"),X=await import("./chunk-c99npyz9.js"),{AsyncLocalStorageContextManager:Y}=await import("./chunk-821zkh5v.js").then((m)=>zQ(m.default,1)),{context:$}=await import("./chunk-98sb49dz.js").then((m)=>zQ(m.default,1)),G=new Y;return G.enable(),$.setGlobalContextManager(G),J.layer(()=>({resource:BJ(),spanProcessor:new X.BatchSpanProcessor(new Q.OTLPTraceExporter({url:`${a}/v1/traces`,headers:TQ}))}))},EQ=!a?qJ:z.unwrap(I.gen(function*(){let J=yield*I.promise(HX);return z.mergeAll(J,wX())})),WX={enabled:OQ,layer:EQ};var aX=z.makeMemoMapUnsafe();
3
+ export{qJ as Br,UQ as Cr,EQ as Dr,WX as Er,IX as Fr,aX as Gr};
@@ -1,9 +1,9 @@
1
1
  // @bun
2
- import{yh as H}from"./chunk-ajnzv5jt.js";import{cp as k,dp as X,gp as O,hp as b,ip as F,lp as h,mp as C,xp as T}from"./chunk-wh2qqhep.js";import w from"http";var B="/callback",U=[51737,51738],K=new Set;function _(f){return f.replace(/[&<>\"']/g,(y)=>{switch(y){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";default:return"&#39;"}})}function z(f){return`http://127.0.0.1:${f}${B}`}async function S(f){return new Promise((y,N)=>{let J=w.createServer();J.listen(f,"127.0.0.1",()=>{J.close(()=>y(f))}),J.on("error",N)})}async function E(){for(let f of U){if(K.has(f))continue;K.add(f);try{return await S(f)}catch{K.delete(f)}}throw new X(`Could not bind to any loopback port (tried ${U.join(", ")}). Free one of those ports and retry.`)}function R(f,y,N,J){return new Promise((Q,x)=>{let V=()=>K.delete(f),m=w.createServer(($,Y)=>{try{let Z=new URL($.url??"/",`http://localhost:${f}`);if(Z.pathname!==B){Y.writeHead(404),Y.end();return}let W=Z.searchParams.get("code"),D=Z.searchParams.get("state"),M=Z.searchParams.get("error"),q=Z.searchParams.get("error_description");if(M){let L=`${_(M)}${q?": "+_(q):""}`;Y.writeHead(200,{"Content-Type":"text/html"}),Y.end(`<html><body style="font-family:sans-serif;padding:2rem"><h2>Authorization failed</h2><p>${L}</p><p>You can close this tab.</p></body></html>`),m.close(),x(new X(`Authorization error: ${M}${q?" \u2014 "+q:""}`));return}if(!W||D!==y){Y.writeHead(400),Y.end("Invalid request");return}Y.writeHead(200,{"Content-Type":"text/html"}),Y.end('<html><body style="font-family:sans-serif;padding:2rem"><h2>Signed in! You can close this tab.</h2><p>Return to your terminal to continue.</p></body></html>'),m.close(),Q({code:W})}catch(Z){m.close(),x(Z)}});if(N?.aborted){V(),x(new X("Login cancelled"));return}let G=()=>{V(),m.close(()=>x(new X("Login cancelled")))};if(N?.addEventListener("abort",G,{once:!0}),N?.aborted){G();return}m.listen(f,"127.0.0.1",()=>{V(),J?.()}),m.on("error",($)=>{V(),x($)})})}function I(f,y){return new Promise((N,J)=>{if(y?.aborted){J(new X("Login cancelled"));return}let Q,x=()=>{clearTimeout(Q),y?.removeEventListener("abort",x),J(new X("Login cancelled"))};if(Q=setTimeout(()=>{y?.removeEventListener("abort",x),N()},f),y?.addEventListener("abort",x,{once:!0}),y?.aborted)x()})}function j(f,y=300000){if(!f)return!1;return Date.now()>=f-y}async function A(f){if(f.method==="api-key")return T({});let{issuer:y}=await k();return T({issuer:y,accessToken:f.key})}var d=300000;async function P(){let{issuer:f,clientId:y}=await k(),{verifier:N,challenge:J,state:Q}=O(),x=await E(),V=z(x),m=b({issuer:f,clientId:y,redirectUri:V,challenge:J,state:Q});return{issuer:f,clientId:y,verifier:N,port:x,redirectUri:V,authorizeStr:m,state:Q}}async function p(f){let{issuer:y,clientId:N}=await k(),{deviceCode:J,info:Q,intervalMs:x}=await h({issuer:y,clientId:N,signal:f.signal});if(f.onCode(Q),f.tryOpen){let m=Q.verificationUriComplete??Q.verificationUri;H(m)}let V=x;while(Date.now()<Q.expiresAt){await I(V,f.signal);let m=await C({issuer:y,clientId:N,deviceCode:J,currentIntervalMs:V,signal:f.signal});if(m.kind==="success")return m.profile;V=m.intervalMs}throw new X("The sign-in code expired before it was approved. Try again.")}async function g(){let{issuer:f,clientId:y,verifier:N,port:J,redirectUri:Q,authorizeStr:x,state:V}=await P();process.stdout.write(`
2
+ import{zh as H}from"./chunk-x0wy15q9.js";import{dp as k,ep as X,hp as O,ip as b,jp as F,mp as h,np as C,yp as T}from"./chunk-6wt8g6mc.js";import w from"http";var B="/callback",U=[51737,51738],K=new Set;function _(f){return f.replace(/[&<>\"']/g,(y)=>{switch(y){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";default:return"&#39;"}})}function z(f){return`http://127.0.0.1:${f}${B}`}async function S(f){return new Promise((y,N)=>{let J=w.createServer();J.listen(f,"127.0.0.1",()=>{J.close(()=>y(f))}),J.on("error",N)})}async function E(){for(let f of U){if(K.has(f))continue;K.add(f);try{return await S(f)}catch{K.delete(f)}}throw new X(`Could not bind to any loopback port (tried ${U.join(", ")}). Free one of those ports and retry.`)}function R(f,y,N,J){return new Promise((Q,x)=>{let V=()=>K.delete(f),m=w.createServer(($,Y)=>{try{let Z=new URL($.url??"/",`http://localhost:${f}`);if(Z.pathname!==B){Y.writeHead(404),Y.end();return}let W=Z.searchParams.get("code"),D=Z.searchParams.get("state"),M=Z.searchParams.get("error"),q=Z.searchParams.get("error_description");if(M){let L=`${_(M)}${q?": "+_(q):""}`;Y.writeHead(200,{"Content-Type":"text/html"}),Y.end(`<html><body style="font-family:sans-serif;padding:2rem"><h2>Authorization failed</h2><p>${L}</p><p>You can close this tab.</p></body></html>`),m.close(),x(new X(`Authorization error: ${M}${q?" \u2014 "+q:""}`));return}if(!W||D!==y){Y.writeHead(400),Y.end("Invalid request");return}Y.writeHead(200,{"Content-Type":"text/html"}),Y.end('<html><body style="font-family:sans-serif;padding:2rem"><h2>Signed in! You can close this tab.</h2><p>Return to your terminal to continue.</p></body></html>'),m.close(),Q({code:W})}catch(Z){m.close(),x(Z)}});if(N?.aborted){V(),x(new X("Login cancelled"));return}let G=()=>{V(),m.close(()=>x(new X("Login cancelled")))};if(N?.addEventListener("abort",G,{once:!0}),N?.aborted){G();return}m.listen(f,"127.0.0.1",()=>{V(),J?.()}),m.on("error",($)=>{V(),x($)})})}function I(f,y){return new Promise((N,J)=>{if(y?.aborted){J(new X("Login cancelled"));return}let Q,x=()=>{clearTimeout(Q),y?.removeEventListener("abort",x),J(new X("Login cancelled"))};if(Q=setTimeout(()=>{y?.removeEventListener("abort",x),N()},f),y?.addEventListener("abort",x,{once:!0}),y?.aborted)x()})}function j(f,y=300000){if(!f)return!1;return Date.now()>=f-y}async function A(f){if(f.method==="api-key")return T({});let{issuer:y}=await k();return T({issuer:y,accessToken:f.key})}var d=300000;async function P(){let{issuer:f,clientId:y}=await k(),{verifier:N,challenge:J,state:Q}=O(),x=await E(),V=z(x),m=b({issuer:f,clientId:y,redirectUri:V,challenge:J,state:Q});return{issuer:f,clientId:y,verifier:N,port:x,redirectUri:V,authorizeStr:m,state:Q}}async function p(f){let{issuer:y,clientId:N}=await k(),{deviceCode:J,info:Q,intervalMs:x}=await h({issuer:y,clientId:N,signal:f.signal});if(f.onCode(Q),f.tryOpen){let m=Q.verificationUriComplete??Q.verificationUri;H(m)}let V=x;while(Date.now()<Q.expiresAt){await I(V,f.signal);let m=await C({issuer:y,clientId:N,deviceCode:J,currentIntervalMs:V,signal:f.signal});if(m.kind==="success")return m.profile;V=m.intervalMs}throw new X("The sign-in code expired before it was approved. Try again.")}async function g(){let{issuer:f,clientId:y,verifier:N,port:J,redirectUri:Q,authorizeStr:x,state:V}=await P();process.stdout.write(`
3
3
  `),process.stdout.write(` Opening Forgewise sign-in in your browser...
4
4
  `),process.stdout.write(" Sign-in URL: "+x+`
5
5
  `),process.stdout.write(`
6
6
  `),process.stdout.write(` Waiting for the browser to complete sign-in... (ctrl+c to cancel)
7
7
  `);let{code:m}=await R(J,V,void 0,()=>{H(x)});return process.stdout.write(`
8
8
  Exchanging authorization code...
9
- `),F({issuer:f,clientId:y,code:m,redirectUri:Q,verifier:N})}async function v(f={}){if(f.signal?.aborted)throw new X("Login cancelled");let{issuer:y,clientId:N,verifier:J,port:Q,redirectUri:x,authorizeStr:V,state:m}=await P(),G=()=>{if(f.onUrl?.(V),f.tryOpen!==!1)H(V)},$=new AbortController,Y=()=>$.abort();f.signal?.addEventListener("abort",Y,{once:!0});let Z=!1,W=setTimeout(()=>{Z=!0,$.abort()},d);try{let{code:D}=await R(Q,m,$.signal,G);return await F({issuer:y,clientId:N,code:D,redirectUri:x,verifier:J,signal:$.signal})}catch(D){if(Z)throw new X("Sign-in timed out. Run login again to retry.");throw D}finally{clearTimeout(W),f.signal?.removeEventListener("abort",Y)}}export{z as yg,j as zg,A as Ag,p as Bg,g as Cg,v as Dg};
9
+ `),F({issuer:f,clientId:y,code:m,redirectUri:Q,verifier:N})}async function v(f={}){if(f.signal?.aborted)throw new X("Login cancelled");let{issuer:y,clientId:N,verifier:J,port:Q,redirectUri:x,authorizeStr:V,state:m}=await P(),G=()=>{if(f.onUrl?.(V),f.tryOpen!==!1)H(V)},$=new AbortController,Y=()=>$.abort();f.signal?.addEventListener("abort",Y,{once:!0});let Z=!1,W=setTimeout(()=>{Z=!0,$.abort()},d);try{let{code:D}=await R(Q,m,$.signal,G);return await F({issuer:y,clientId:N,code:D,redirectUri:x,verifier:J,signal:$.signal})}catch(D){if(Z)throw new X("Sign-in timed out. Run login again to retry.");throw D}finally{clearTimeout(W),f.signal?.removeEventListener("abort",Y)}}export{z as zg,j as Ag,A as Bg,p as Cg,g as Dg,v as Eg};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$p as GG,Aq as I,Eq as d,Fp as V,Hp as l,Lp as e,Mp as t,Vp as a,_p as o,cq as JG,gq as NG,jq as QG,oq as g,qq as v,rq as k,xq as b,yq as R,zq as XG}from"./chunk-yce8ph5b.js";import{Gq as f,Mq as C,Qq as m,Tq as O}from"./chunk-kec1xw1n.js";import"./chunk-cqtkxwd8.js";import"./chunk-x50adh71.js";import{Hu as G}from"./chunk-q4mtwv1w.js";import"./chunk-7a3txs9f.js";import"./chunk-djfrkbd5.js";function c(J){var Q,$,K,j,z,q;if(J==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let A=(Q=J.prompt_tokens)!=null?Q:0,Z=($=J.completion_tokens)!=null?$:0,N=(j=(K=J.prompt_tokens_details)==null?void 0:K.cached_tokens)!=null?j:0,X=(q=(z=J.completion_tokens_details)==null?void 0:z.reasoning_tokens)!=null?q:0;return{inputTokens:{total:A,noCache:A-N,cacheRead:N,cacheWrite:void 0},outputTokens:{total:Z,text:Z-X,reasoning:X},raw:J}}function _(J){switch(J){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}function u({id:J,model:Q,created:$}){return{id:J!=null?J:void 0,modelId:Q!=null?Q:void 0,timestamp:$!=null?new Date($*1000):void 0}}function i({tools:J,toolChoice:Q}){J=(J==null?void 0:J.length)?J:void 0;let $=[];if(J==null)return{tools:void 0,toolChoice:void 0,toolWarnings:$};let K=[];for(let z of J)if(z.type==="provider")$.push({type:"unsupported",feature:`provider-defined tool ${z.id}`});else K.push({type:"function",function:{name:z.name,description:z.description,parameters:z.inputSchema,...z.strict!=null?{strict:z.strict}:{}}});if(Q==null)return{tools:K,toolChoice:void 0,toolWarnings:$};let j=Q.type;switch(j){case"auto":case"none":case"required":return{tools:K,toolChoice:j,toolWarnings:$};case"tool":return{tools:K,toolChoice:{type:"function",function:{name:Q.toolName}},toolWarnings:$};default:throw new O({functionality:`tool choice type: ${j}`})}}var $G=G.object({enableThinking:G.boolean().optional(),thinkingBudget:G.number().positive().optional(),parallelToolCalls:G.boolean().optional()});function p(J){var Q,$,K,j;let z=c(J),q=($=(Q=J==null?void 0:J.prompt_tokens_details)==null?void 0:Q.cache_creation_input_tokens)!=null?$:0,A=((K=z.inputTokens.total)!=null?K:0)-((j=z.inputTokens.cacheRead)!=null?j:0)-q;return{...z,inputTokens:{...z.inputTokens,cacheWrite:q,noCache:A}}}function zG({data:J,mediaType:Q}){return J instanceof URL?J.toString():`data:${Q};base64,${t(J)}`}function BG({prompt:J,cacheControlValidator:Q}){var $,K;let j=[];for(let{role:z,content:q,...A}of J){let Z=Q==null?void 0:Q.getCacheControl(A.providerOptions);switch(z){case"system":{if(Z)j.push({role:"system",content:[{type:"text",text:q,cache_control:Z}]});else j.push({role:"system",content:q});break}case"user":{j.push({role:"user",content:q.map((N,X)=>{var E;let L=X===q.length-1,B=(E=Q==null?void 0:Q.getCacheControl(N.providerOptions))!=null?E:L?Z:void 0;switch(N.type){case"text":return{type:"text",text:N.text,...B?{cache_control:B}:{}};case"file":if(N.mediaType.startsWith("image/")){let U=N.mediaType==="image/*"?"image/jpeg":N.mediaType;return{type:"image_url",image_url:{url:zG({data:N.data,mediaType:U})},...B?{cache_control:B}:{}}}else throw new O({functionality:"Only image file parts are supported"})}})});break}case"assistant":{let N="",X=[];for(let E of q)switch(E.type){case"text":{N+=E.text;break}case"tool-call":{X.push({id:E.toolCallId,type:"function",function:{name:E.toolName,arguments:JSON.stringify(E.input)}});break}case"reasoning":{N+=E.text;break}}j.push({role:"assistant",content:Z?[{type:"text",text:N,cache_control:Z}]:N||null,tool_calls:X.length>0?X:void 0});break}case"tool":{let N=q.filter((X)=>X.type!=="tool-approval-response");for(let X=0;X<N.length;X++){let E=N[X],L=E.output,B=X===N.length-1,U=($=Q==null?void 0:Q.getCacheControl(E.providerOptions))!=null?$:B?Z:void 0,Y;switch(L.type){case"text":case"error-text":Y=L.value;break;case"execution-denied":Y=(K=L.reason)!=null?K:"Tool execution denied.";break;case"content":case"json":case"error-json":Y=JSON.stringify(L.value);break}j.push({role:"tool",tool_call_id:E.toolCallId,content:U?[{type:"text",text:Y,cache_control:U}]:Y})}break}default:throw Error(`Unsupported role: ${z}`)}}return j}var r=4;function EG(J){var Q;let $=J==null?void 0:J.alibaba;return(Q=$==null?void 0:$.cacheControl)!=null?Q:$==null?void 0:$.cache_control}var jG=class{constructor(){this.breakpointCount=0,this.warnings=[]}getCacheControl(J){let Q=EG(J);if(!Q)return;if(this.breakpointCount++,this.breakpointCount>r)this.warnings.push({type:"other",message:`Max breakpoint limit exceeded. Only the last ${r} cache markers will take effect.`});return Q}getWarnings(){return this.warnings}},KG=class{constructor(J,Q){this.specificationVersion="v3",this.supportedUrls={"image/*":[/^https?:\/\/.*$/]},this.modelId=J,this.config=Q}get provider(){return this.config.provider}async getArgs({prompt:J,maxOutputTokens:Q,temperature:$,topP:K,topK:j,frequencyPenalty:z,presencePenalty:q,stopSequences:A,responseFormat:Z,seed:N,providerOptions:X,tools:E,toolChoice:L}){var B;let U=[],Y=new jG,P=await v({provider:"alibaba",providerOptions:X,schema:$G});if(z!=null)U.push({type:"unsupported",feature:"frequencyPenalty"});let w={model:this.modelId,max_tokens:Q,temperature:$,top_p:K,top_k:j,presence_penalty:q,stop:A,seed:N,response_format:(Z==null?void 0:Z.type)==="json"?Z.schema!=null?{type:"json_schema",json_schema:{schema:Z.schema,name:(B=Z.name)!=null?B:"response",description:Z.description}}:{type:"json_object"}:void 0,...(P==null?void 0:P.enableThinking)!=null?{enable_thinking:P.enableThinking}:{},...(P==null?void 0:P.thinkingBudget)!=null?{thinking_budget:P.thinkingBudget}:{},messages:BG({prompt:J,cacheControlValidator:Y})},{tools:y,toolChoice:S,toolWarnings:F}=i({tools:E,toolChoice:L});return U.push(...Y.getWarnings()),{args:{...w,tools:y,tool_choice:S,...y!=null&&(P==null?void 0:P.parallelToolCalls)!==void 0?{parallel_tool_calls:P.parallelToolCalls}:{}},warnings:[...U,...F]}}async doGenerate(J){var Q;let{args:$,warnings:K}=await this.getArgs(J),{responseHeaders:j,value:z,rawValue:q}=await k({url:`${this.config.baseURL}/chat/completions`,headers:V(this.config.headers(),J.headers),body:$,failedResponseHandler:s,successfulResponseHandler:I(qG),abortSignal:J.abortSignal,fetch:this.config.fetch}),A=z.choices[0],Z=[],N=A.message.content;if(N!=null&&N.length>0)Z.push({type:"text",text:N});let X=A.message.reasoning_content;if(X!=null&&X.length>0)Z.push({type:"reasoning",text:X});if(A.message.tool_calls!=null)for(let E of A.message.tool_calls)Z.push({type:"tool-call",toolCallId:E.id,toolName:E.function.name,input:E.function.arguments});return{content:Z,finishReason:{unified:_(A.finish_reason),raw:(Q=A.finish_reason)!=null?Q:void 0},usage:p(z.usage),request:{body:JSON.stringify($)},response:{...u(z),headers:j,body:q},warnings:K}}async doStream(J){let{args:Q,warnings:$}=await this.getArgs(J),K={...Q,stream:!0,stream_options:this.config.includeUsage?{include_usage:!0}:void 0},{responseHeaders:j,value:z}=await k({url:`${this.config.baseURL}/chat/completions`,headers:V(this.config.headers(),J.headers),body:K,failedResponseHandler:s,successfulResponseHandler:XG(AG),abortSignal:J.abortSignal,fetch:this.config.fetch}),q={unified:"other",raw:void 0},A=void 0,Z=!0,N=!1,X=null,E=[];return{stream:z.pipeThrough(new TransformStream({start(L){L.enqueue({type:"stream-start",warnings:$})},transform(L,B){var U,Y,P,w;if(J.includeRawChunks)B.enqueue({type:"raw",rawValue:L.rawValue});if(!L.success){B.enqueue({type:"error",error:L.error});return}let y=L.value;if(Z)Z=!1,B.enqueue({type:"response-metadata",...u(y)});if(y.usage!=null)A=y.usage;if(y.choices.length===0)return;let S=y.choices[0],F=S.delta;if(F.reasoning_content!=null&&F.reasoning_content.length>0){if(X==null){if(N)B.enqueue({type:"text-end",id:"0"}),N=!1;X=a(),B.enqueue({type:"reasoning-start",id:X})}B.enqueue({type:"reasoning-delta",id:X,delta:F.reasoning_content})}if(F.content!=null&&F.content.length>0){if(X!=null)B.enqueue({type:"reasoning-end",id:X}),X=null;if(!N)B.enqueue({type:"text-start",id:"0"}),N=!0;B.enqueue({type:"text-delta",id:"0",delta:F.content})}if(F.tool_calls!=null){if(X!=null)B.enqueue({type:"reasoning-end",id:X}),X=null;if(N)B.enqueue({type:"text-end",id:"0"}),N=!1;for(let W of F.tool_calls){let M=(U=W.index)!=null?U:E.length;if(E[M]==null){if(W.id==null)throw new C({data:W,message:"Expected 'id' to be a string."});if(((Y=W.function)==null?void 0:Y.name)==null)throw new C({data:W,message:"Expected 'function.name' to be a string."});B.enqueue({type:"tool-input-start",id:W.id,toolName:W.function.name}),E[M]={id:W.id,type:"function",function:{name:W.function.name,arguments:(P=W.function.arguments)!=null?P:""},hasFinished:!1};let D=E[M];if(D.function.arguments.length>0)B.enqueue({type:"tool-input-delta",id:D.id,delta:D.function.arguments});if(g(D.function.arguments))B.enqueue({type:"tool-input-end",id:D.id}),B.enqueue({type:"tool-call",toolCallId:D.id,toolName:D.function.name,input:D.function.arguments}),D.hasFinished=!0;continue}let H=E[M];if(H.hasFinished)continue;if(((w=W.function)==null?void 0:w.arguments)!=null)H.function.arguments+=W.function.arguments,B.enqueue({type:"tool-input-delta",id:H.id,delta:W.function.arguments});if(g(H.function.arguments))B.enqueue({type:"tool-input-end",id:H.id}),B.enqueue({type:"tool-call",toolCallId:H.id,toolName:H.function.name,input:H.function.arguments}),H.hasFinished=!0}}if(S.finish_reason!=null)q={unified:_(S.finish_reason),raw:S.finish_reason}},flush(L){if(X!=null)L.enqueue({type:"reasoning-end",id:X});if(N)L.enqueue({type:"text-end",id:"0"});L.enqueue({type:"finish",finishReason:q,usage:p(A)})}})),request:{body:JSON.stringify(K)},response:{headers:j}}}},YG=G.object({prompt_tokens:G.number(),completion_tokens:G.number(),total_tokens:G.number(),prompt_tokens_details:G.object({cached_tokens:G.number().nullish(),cache_creation_input_tokens:G.number().nullish()}).nullish(),completion_tokens_details:G.object({reasoning_tokens:G.number().nullish()}).nullish()}),qG=G.object({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({message:G.object({role:G.literal("assistant").nullish(),content:G.string().nullish(),reasoning_content:G.string().nullish(),tool_calls:G.array(G.object({id:G.string(),type:G.literal("function"),function:G.object({name:G.string(),arguments:G.string()})})).nullish()}),finish_reason:G.string().nullish(),index:G.number()})),usage:YG.nullish()}),AG=G.object({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({delta:G.object({role:G.enum(["assistant"]).nullish(),content:G.string().nullish(),reasoning_content:G.string().nullish(),tool_calls:G.array(G.object({index:G.number().nullish(),id:G.string().nullish(),type:G.literal("function").nullish(),function:G.object({name:G.string().nullish(),arguments:G.string().nullish()}).nullish()})).nullish()}),finish_reason:G.string().nullish(),index:G.number()})),usage:YG.nullish()}),HG=NG(()=>QG(G.object({negativePrompt:G.string().nullish(),audioUrl:G.string().nullish(),promptExtend:G.boolean().nullish(),shotType:G.enum(["single","multi"]).nullish(),watermark:G.boolean().nullish(),audio:G.boolean().nullish(),referenceUrls:G.array(G.string()).nullish(),pollIntervalMs:G.number().positive().nullish(),pollTimeoutMs:G.number().positive().nullish()}).passthrough())),LG=G.object({code:G.string().nullish(),message:G.string(),request_id:G.string().nullish()}),n=R({errorSchema:LG,errorToMessage:(J)=>J.message}),PG=G.object({output:G.object({task_status:G.string(),task_id:G.string()}).nullish(),request_id:G.string().nullish()}),WG=G.object({output:G.object({task_id:G.string(),task_status:G.string(),video_url:G.string().nullish(),submit_time:G.string().nullish(),scheduled_time:G.string().nullish(),end_time:G.string().nullish(),orig_prompt:G.string().nullish(),actual_prompt:G.string().nullish(),code:G.string().nullish(),message:G.string().nullish()}).nullish(),usage:G.object({duration:G.number().nullish(),output_video_duration:G.number().nullish(),SR:G.number().nullish(),size:G.string().nullish()}).nullish(),request_id:G.string().nullish()});function UG(J){if(J.includes("-i2v"))return"i2v";if(J.includes("-r2v"))return"r2v";return"t2v"}var wG=class{constructor(J,Q){this.modelId=J,this.config=Q,this.specificationVersion="v3",this.maxVideosPerCall=1}get provider(){return this.config.provider}async doGenerate(J){var Q,$,K,j,z,q,A,Z,N,X,E;let L=(K=($=(Q=this.config._internal)==null?void 0:Q.currentDate)==null?void 0:$.call(Q))!=null?K:new Date,B=[],U=UG(this.modelId),Y=await v({provider:"alibaba",providerOptions:J.providerOptions,schema:HG}),P={};if(J.prompt!=null)P.prompt=J.prompt;if((Y==null?void 0:Y.negativePrompt)!=null)P.negative_prompt=Y.negativePrompt;if((Y==null?void 0:Y.audioUrl)!=null)P.audio_url=Y.audioUrl;if(U==="i2v"&&J.image!=null)if(J.image.type==="url")P.img_url=J.image.url;else{let x=typeof J.image.data==="string"?J.image.data:e(J.image.data);P.img_url=x}if(U==="r2v"&&(Y==null?void 0:Y.referenceUrls)!=null)P.reference_urls=Y.referenceUrls;let w={};if(J.duration!=null)w.duration=J.duration;if(J.seed!=null)w.seed=J.seed;if(J.resolution!=null)if(U==="i2v"){let x={"1280x720":"720P","720x1280":"720P","960x960":"720P","1088x832":"720P","832x1088":"720P","1920x1080":"1080P","1080x1920":"1080P","1440x1440":"1080P","1632x1248":"1080P","1248x1632":"1080P","832x480":"480P","480x832":"480P","624x624":"480P"};w.resolution=x[J.resolution]||J.resolution}else w.size=J.resolution.replace("x","*");if((Y==null?void 0:Y.promptExtend)!=null)w.prompt_extend=Y.promptExtend;if((Y==null?void 0:Y.shotType)!=null)w.shot_type=Y.shotType;if((Y==null?void 0:Y.watermark)!=null)w.watermark=Y.watermark;if((Y==null?void 0:Y.audio)!=null)w.audio=Y.audio;if(J.aspectRatio)B.push({type:"unsupported",feature:"aspectRatio",details:"Alibaba video models use explicit size/resolution dimensions. Use the resolution option or providerOptions.alibaba for size control."});if(J.fps)B.push({type:"unsupported",feature:"fps",details:"Alibaba video models do not support custom FPS."});if(J.n!=null&&J.n>1)B.push({type:"unsupported",feature:"n",details:"Alibaba video models only support generating 1 video per call."});let{value:y}=await k({url:`${this.config.baseURL}/api/v1/services/aigc/video-generation/video-synthesis`,headers:V(await b(this.config.headers),J.headers,{"X-DashScope-Async":"enable"}),body:{model:this.modelId,input:P,parameters:w},successfulResponseHandler:I(PG),failedResponseHandler:n,abortSignal:J.abortSignal,fetch:this.config.fetch}),S=(j=y.output)==null?void 0:j.task_id;if(!S)throw new f({name:"ALIBABA_VIDEO_GENERATION_ERROR",message:`No task_id returned from Alibaba API. Response: ${JSON.stringify(y)}`});let F=(z=Y==null?void 0:Y.pollIntervalMs)!=null?z:5000,W=(q=Y==null?void 0:Y.pollTimeoutMs)!=null?q:600000,M=Date.now(),H,D;while(!0){if(await l(F,{abortSignal:J.abortSignal}),Date.now()-M>W)throw new f({name:"ALIBABA_VIDEO_GENERATION_TIMEOUT",message:`Video generation timed out after ${W}ms`});let{value:x,responseHeaders:ZG}=await GG({url:`${this.config.baseURL}/api/v1/tasks/${S}`,headers:V(await b(this.config.headers),J.headers),successfulResponseHandler:I(WG),failedResponseHandler:n,abortSignal:J.abortSignal,fetch:this.config.fetch});D=ZG;let T=(A=x.output)==null?void 0:A.task_status;if(T==="SUCCEEDED"){H=x;break}if(T==="FAILED"||T==="CANCELED")throw new f({name:"ALIBABA_VIDEO_GENERATION_FAILED",message:`Video generation ${T.toLowerCase()}. Task ID: ${S}. ${(N=(Z=x.output)==null?void 0:Z.message)!=null?N:""}`})}let h=(X=H==null?void 0:H.output)==null?void 0:X.video_url;if(!h)throw new f({name:"ALIBABA_VIDEO_GENERATION_ERROR",message:`No video URL in response. Task ID: ${S}`});return{videos:[{type:"url",url:h,mediaType:"video/mp4"}],warnings:B,response:{timestamp:L,modelId:this.modelId,headers:D},providerMetadata:{alibaba:{taskId:S,videoUrl:h,...((E=H==null?void 0:H.output)==null?void 0:E.actual_prompt)?{actualPrompt:H.output.actual_prompt}:{},...(H==null?void 0:H.usage)?{usage:{duration:H.usage.duration,outputVideoDuration:H.usage.output_video_duration,resolution:H.usage.SR,size:H.usage.size}}:{}}}}}},SG="1.0.17",FG=G.object({error:G.object({message:G.string(),code:G.string().nullish(),type:G.string().nullish()})}),s=R({errorSchema:FG,errorToMessage:(J)=>J.error.message});function DG(J={}){var Q,$;let K=(Q=d(J.baseURL))!=null?Q:"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",j=($=d(J.videoBaseURL))!=null?$:"https://dashscope-intl.aliyuncs.com",z=()=>o({Authorization:`Bearer ${JG({apiKey:J.apiKey,environmentVariableName:"ALIBABA_API_KEY",description:"Alibaba Cloud (DashScope)"})}`,...J.headers},`ai-sdk/alibaba/${SG}`),q=(N)=>{var X;return new KG(N,{provider:"alibaba.chat",baseURL:K,headers:z,fetch:J.fetch,includeUsage:(X=J.includeUsage)!=null?X:!0})},A=(N)=>new wG(N,{provider:"alibaba.video",baseURL:j,headers:z,fetch:J.fetch}),Z=function(N){if(new.target)throw Error("The Alibaba model function cannot be called with the new keyword.");return q(N)};return Z.specificationVersion="v3",Z.languageModel=q,Z.chatModel=q,Z.video=A,Z.videoModel=A,Z.imageModel=(N)=>{throw new m({modelId:N,modelType:"imageModel"})},Z.embeddingModel=(N)=>{throw new m({modelId:N,modelType:"embeddingModel"})},Z}var gG=DG();export{DG as createAlibaba,gG as alibaba,SG as VERSION};
2
+ import{$p as o,Aq as XG,Bq as I,Fq as d,Gp as V,Ip as l,Mp as e,Np as t,Wp as a,aq as GG,dq as JG,hq as NG,kq as QG,pq as g,rq as v,sq as k,yq as b,zq as R}from"./chunk-hsmtjb4d.js";import{Hq as f,Nq as C,Rq as m,Uq as O}from"./chunk-7nh8vjx4.js";import"./chunk-cqtkxwd8.js";import"./chunk-mfg4stzn.js";import{Iu as G}from"./chunk-zgj7jx8k.js";import"./chunk-0mdmqtfr.js";import"./chunk-0xf12tf3.js";function c(J){var Q,$,K,j,z,q;if(J==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let A=(Q=J.prompt_tokens)!=null?Q:0,Z=($=J.completion_tokens)!=null?$:0,N=(j=(K=J.prompt_tokens_details)==null?void 0:K.cached_tokens)!=null?j:0,X=(q=(z=J.completion_tokens_details)==null?void 0:z.reasoning_tokens)!=null?q:0;return{inputTokens:{total:A,noCache:A-N,cacheRead:N,cacheWrite:void 0},outputTokens:{total:Z,text:Z-X,reasoning:X},raw:J}}function _(J){switch(J){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}function u({id:J,model:Q,created:$}){return{id:J!=null?J:void 0,modelId:Q!=null?Q:void 0,timestamp:$!=null?new Date($*1000):void 0}}function i({tools:J,toolChoice:Q}){J=(J==null?void 0:J.length)?J:void 0;let $=[];if(J==null)return{tools:void 0,toolChoice:void 0,toolWarnings:$};let K=[];for(let z of J)if(z.type==="provider")$.push({type:"unsupported",feature:`provider-defined tool ${z.id}`});else K.push({type:"function",function:{name:z.name,description:z.description,parameters:z.inputSchema,...z.strict!=null?{strict:z.strict}:{}}});if(Q==null)return{tools:K,toolChoice:void 0,toolWarnings:$};let j=Q.type;switch(j){case"auto":case"none":case"required":return{tools:K,toolChoice:j,toolWarnings:$};case"tool":return{tools:K,toolChoice:{type:"function",function:{name:Q.toolName}},toolWarnings:$};default:throw new O({functionality:`tool choice type: ${j}`})}}var $G=G.object({enableThinking:G.boolean().optional(),thinkingBudget:G.number().positive().optional(),parallelToolCalls:G.boolean().optional()});function p(J){var Q,$,K,j;let z=c(J),q=($=(Q=J==null?void 0:J.prompt_tokens_details)==null?void 0:Q.cache_creation_input_tokens)!=null?$:0,A=((K=z.inputTokens.total)!=null?K:0)-((j=z.inputTokens.cacheRead)!=null?j:0)-q;return{...z,inputTokens:{...z.inputTokens,cacheWrite:q,noCache:A}}}function zG({data:J,mediaType:Q}){return J instanceof URL?J.toString():`data:${Q};base64,${t(J)}`}function BG({prompt:J,cacheControlValidator:Q}){var $,K;let j=[];for(let{role:z,content:q,...A}of J){let Z=Q==null?void 0:Q.getCacheControl(A.providerOptions);switch(z){case"system":{if(Z)j.push({role:"system",content:[{type:"text",text:q,cache_control:Z}]});else j.push({role:"system",content:q});break}case"user":{j.push({role:"user",content:q.map((N,X)=>{var E;let L=X===q.length-1,B=(E=Q==null?void 0:Q.getCacheControl(N.providerOptions))!=null?E:L?Z:void 0;switch(N.type){case"text":return{type:"text",text:N.text,...B?{cache_control:B}:{}};case"file":if(N.mediaType.startsWith("image/")){let U=N.mediaType==="image/*"?"image/jpeg":N.mediaType;return{type:"image_url",image_url:{url:zG({data:N.data,mediaType:U})},...B?{cache_control:B}:{}}}else throw new O({functionality:"Only image file parts are supported"})}})});break}case"assistant":{let N="",X=[];for(let E of q)switch(E.type){case"text":{N+=E.text;break}case"tool-call":{X.push({id:E.toolCallId,type:"function",function:{name:E.toolName,arguments:JSON.stringify(E.input)}});break}case"reasoning":{N+=E.text;break}}j.push({role:"assistant",content:Z?[{type:"text",text:N,cache_control:Z}]:N||null,tool_calls:X.length>0?X:void 0});break}case"tool":{let N=q.filter((X)=>X.type!=="tool-approval-response");for(let X=0;X<N.length;X++){let E=N[X],L=E.output,B=X===N.length-1,U=($=Q==null?void 0:Q.getCacheControl(E.providerOptions))!=null?$:B?Z:void 0,Y;switch(L.type){case"text":case"error-text":Y=L.value;break;case"execution-denied":Y=(K=L.reason)!=null?K:"Tool execution denied.";break;case"content":case"json":case"error-json":Y=JSON.stringify(L.value);break}j.push({role:"tool",tool_call_id:E.toolCallId,content:U?[{type:"text",text:Y,cache_control:U}]:Y})}break}default:throw Error(`Unsupported role: ${z}`)}}return j}var r=4;function EG(J){var Q;let $=J==null?void 0:J.alibaba;return(Q=$==null?void 0:$.cacheControl)!=null?Q:$==null?void 0:$.cache_control}var jG=class{constructor(){this.breakpointCount=0,this.warnings=[]}getCacheControl(J){let Q=EG(J);if(!Q)return;if(this.breakpointCount++,this.breakpointCount>r)this.warnings.push({type:"other",message:`Max breakpoint limit exceeded. Only the last ${r} cache markers will take effect.`});return Q}getWarnings(){return this.warnings}},KG=class{constructor(J,Q){this.specificationVersion="v3",this.supportedUrls={"image/*":[/^https?:\/\/.*$/]},this.modelId=J,this.config=Q}get provider(){return this.config.provider}async getArgs({prompt:J,maxOutputTokens:Q,temperature:$,topP:K,topK:j,frequencyPenalty:z,presencePenalty:q,stopSequences:A,responseFormat:Z,seed:N,providerOptions:X,tools:E,toolChoice:L}){var B;let U=[],Y=new jG,P=await v({provider:"alibaba",providerOptions:X,schema:$G});if(z!=null)U.push({type:"unsupported",feature:"frequencyPenalty"});let w={model:this.modelId,max_tokens:Q,temperature:$,top_p:K,top_k:j,presence_penalty:q,stop:A,seed:N,response_format:(Z==null?void 0:Z.type)==="json"?Z.schema!=null?{type:"json_schema",json_schema:{schema:Z.schema,name:(B=Z.name)!=null?B:"response",description:Z.description}}:{type:"json_object"}:void 0,...(P==null?void 0:P.enableThinking)!=null?{enable_thinking:P.enableThinking}:{},...(P==null?void 0:P.thinkingBudget)!=null?{thinking_budget:P.thinkingBudget}:{},messages:BG({prompt:J,cacheControlValidator:Y})},{tools:y,toolChoice:S,toolWarnings:F}=i({tools:E,toolChoice:L});return U.push(...Y.getWarnings()),{args:{...w,tools:y,tool_choice:S,...y!=null&&(P==null?void 0:P.parallelToolCalls)!==void 0?{parallel_tool_calls:P.parallelToolCalls}:{}},warnings:[...U,...F]}}async doGenerate(J){var Q;let{args:$,warnings:K}=await this.getArgs(J),{responseHeaders:j,value:z,rawValue:q}=await k({url:`${this.config.baseURL}/chat/completions`,headers:V(this.config.headers(),J.headers),body:$,failedResponseHandler:s,successfulResponseHandler:I(qG),abortSignal:J.abortSignal,fetch:this.config.fetch}),A=z.choices[0],Z=[],N=A.message.content;if(N!=null&&N.length>0)Z.push({type:"text",text:N});let X=A.message.reasoning_content;if(X!=null&&X.length>0)Z.push({type:"reasoning",text:X});if(A.message.tool_calls!=null)for(let E of A.message.tool_calls)Z.push({type:"tool-call",toolCallId:E.id,toolName:E.function.name,input:E.function.arguments});return{content:Z,finishReason:{unified:_(A.finish_reason),raw:(Q=A.finish_reason)!=null?Q:void 0},usage:p(z.usage),request:{body:JSON.stringify($)},response:{...u(z),headers:j,body:q},warnings:K}}async doStream(J){let{args:Q,warnings:$}=await this.getArgs(J),K={...Q,stream:!0,stream_options:this.config.includeUsage?{include_usage:!0}:void 0},{responseHeaders:j,value:z}=await k({url:`${this.config.baseURL}/chat/completions`,headers:V(this.config.headers(),J.headers),body:K,failedResponseHandler:s,successfulResponseHandler:XG(AG),abortSignal:J.abortSignal,fetch:this.config.fetch}),q={unified:"other",raw:void 0},A=void 0,Z=!0,N=!1,X=null,E=[];return{stream:z.pipeThrough(new TransformStream({start(L){L.enqueue({type:"stream-start",warnings:$})},transform(L,B){var U,Y,P,w;if(J.includeRawChunks)B.enqueue({type:"raw",rawValue:L.rawValue});if(!L.success){B.enqueue({type:"error",error:L.error});return}let y=L.value;if(Z)Z=!1,B.enqueue({type:"response-metadata",...u(y)});if(y.usage!=null)A=y.usage;if(y.choices.length===0)return;let S=y.choices[0],F=S.delta;if(F.reasoning_content!=null&&F.reasoning_content.length>0){if(X==null){if(N)B.enqueue({type:"text-end",id:"0"}),N=!1;X=a(),B.enqueue({type:"reasoning-start",id:X})}B.enqueue({type:"reasoning-delta",id:X,delta:F.reasoning_content})}if(F.content!=null&&F.content.length>0){if(X!=null)B.enqueue({type:"reasoning-end",id:X}),X=null;if(!N)B.enqueue({type:"text-start",id:"0"}),N=!0;B.enqueue({type:"text-delta",id:"0",delta:F.content})}if(F.tool_calls!=null){if(X!=null)B.enqueue({type:"reasoning-end",id:X}),X=null;if(N)B.enqueue({type:"text-end",id:"0"}),N=!1;for(let W of F.tool_calls){let M=(U=W.index)!=null?U:E.length;if(E[M]==null){if(W.id==null)throw new C({data:W,message:"Expected 'id' to be a string."});if(((Y=W.function)==null?void 0:Y.name)==null)throw new C({data:W,message:"Expected 'function.name' to be a string."});B.enqueue({type:"tool-input-start",id:W.id,toolName:W.function.name}),E[M]={id:W.id,type:"function",function:{name:W.function.name,arguments:(P=W.function.arguments)!=null?P:""},hasFinished:!1};let D=E[M];if(D.function.arguments.length>0)B.enqueue({type:"tool-input-delta",id:D.id,delta:D.function.arguments});if(g(D.function.arguments))B.enqueue({type:"tool-input-end",id:D.id}),B.enqueue({type:"tool-call",toolCallId:D.id,toolName:D.function.name,input:D.function.arguments}),D.hasFinished=!0;continue}let H=E[M];if(H.hasFinished)continue;if(((w=W.function)==null?void 0:w.arguments)!=null)H.function.arguments+=W.function.arguments,B.enqueue({type:"tool-input-delta",id:H.id,delta:W.function.arguments});if(g(H.function.arguments))B.enqueue({type:"tool-input-end",id:H.id}),B.enqueue({type:"tool-call",toolCallId:H.id,toolName:H.function.name,input:H.function.arguments}),H.hasFinished=!0}}if(S.finish_reason!=null)q={unified:_(S.finish_reason),raw:S.finish_reason}},flush(L){if(X!=null)L.enqueue({type:"reasoning-end",id:X});if(N)L.enqueue({type:"text-end",id:"0"});L.enqueue({type:"finish",finishReason:q,usage:p(A)})}})),request:{body:JSON.stringify(K)},response:{headers:j}}}},YG=G.object({prompt_tokens:G.number(),completion_tokens:G.number(),total_tokens:G.number(),prompt_tokens_details:G.object({cached_tokens:G.number().nullish(),cache_creation_input_tokens:G.number().nullish()}).nullish(),completion_tokens_details:G.object({reasoning_tokens:G.number().nullish()}).nullish()}),qG=G.object({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({message:G.object({role:G.literal("assistant").nullish(),content:G.string().nullish(),reasoning_content:G.string().nullish(),tool_calls:G.array(G.object({id:G.string(),type:G.literal("function"),function:G.object({name:G.string(),arguments:G.string()})})).nullish()}),finish_reason:G.string().nullish(),index:G.number()})),usage:YG.nullish()}),AG=G.object({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({delta:G.object({role:G.enum(["assistant"]).nullish(),content:G.string().nullish(),reasoning_content:G.string().nullish(),tool_calls:G.array(G.object({index:G.number().nullish(),id:G.string().nullish(),type:G.literal("function").nullish(),function:G.object({name:G.string().nullish(),arguments:G.string().nullish()}).nullish()})).nullish()}),finish_reason:G.string().nullish(),index:G.number()})),usage:YG.nullish()}),HG=NG(()=>QG(G.object({negativePrompt:G.string().nullish(),audioUrl:G.string().nullish(),promptExtend:G.boolean().nullish(),shotType:G.enum(["single","multi"]).nullish(),watermark:G.boolean().nullish(),audio:G.boolean().nullish(),referenceUrls:G.array(G.string()).nullish(),pollIntervalMs:G.number().positive().nullish(),pollTimeoutMs:G.number().positive().nullish()}).passthrough())),LG=G.object({code:G.string().nullish(),message:G.string(),request_id:G.string().nullish()}),n=R({errorSchema:LG,errorToMessage:(J)=>J.message}),PG=G.object({output:G.object({task_status:G.string(),task_id:G.string()}).nullish(),request_id:G.string().nullish()}),WG=G.object({output:G.object({task_id:G.string(),task_status:G.string(),video_url:G.string().nullish(),submit_time:G.string().nullish(),scheduled_time:G.string().nullish(),end_time:G.string().nullish(),orig_prompt:G.string().nullish(),actual_prompt:G.string().nullish(),code:G.string().nullish(),message:G.string().nullish()}).nullish(),usage:G.object({duration:G.number().nullish(),output_video_duration:G.number().nullish(),SR:G.number().nullish(),size:G.string().nullish()}).nullish(),request_id:G.string().nullish()});function UG(J){if(J.includes("-i2v"))return"i2v";if(J.includes("-r2v"))return"r2v";return"t2v"}var wG=class{constructor(J,Q){this.modelId=J,this.config=Q,this.specificationVersion="v3",this.maxVideosPerCall=1}get provider(){return this.config.provider}async doGenerate(J){var Q,$,K,j,z,q,A,Z,N,X,E;let L=(K=($=(Q=this.config._internal)==null?void 0:Q.currentDate)==null?void 0:$.call(Q))!=null?K:new Date,B=[],U=UG(this.modelId),Y=await v({provider:"alibaba",providerOptions:J.providerOptions,schema:HG}),P={};if(J.prompt!=null)P.prompt=J.prompt;if((Y==null?void 0:Y.negativePrompt)!=null)P.negative_prompt=Y.negativePrompt;if((Y==null?void 0:Y.audioUrl)!=null)P.audio_url=Y.audioUrl;if(U==="i2v"&&J.image!=null)if(J.image.type==="url")P.img_url=J.image.url;else{let x=typeof J.image.data==="string"?J.image.data:e(J.image.data);P.img_url=x}if(U==="r2v"&&(Y==null?void 0:Y.referenceUrls)!=null)P.reference_urls=Y.referenceUrls;let w={};if(J.duration!=null)w.duration=J.duration;if(J.seed!=null)w.seed=J.seed;if(J.resolution!=null)if(U==="i2v"){let x={"1280x720":"720P","720x1280":"720P","960x960":"720P","1088x832":"720P","832x1088":"720P","1920x1080":"1080P","1080x1920":"1080P","1440x1440":"1080P","1632x1248":"1080P","1248x1632":"1080P","832x480":"480P","480x832":"480P","624x624":"480P"};w.resolution=x[J.resolution]||J.resolution}else w.size=J.resolution.replace("x","*");if((Y==null?void 0:Y.promptExtend)!=null)w.prompt_extend=Y.promptExtend;if((Y==null?void 0:Y.shotType)!=null)w.shot_type=Y.shotType;if((Y==null?void 0:Y.watermark)!=null)w.watermark=Y.watermark;if((Y==null?void 0:Y.audio)!=null)w.audio=Y.audio;if(J.aspectRatio)B.push({type:"unsupported",feature:"aspectRatio",details:"Alibaba video models use explicit size/resolution dimensions. Use the resolution option or providerOptions.alibaba for size control."});if(J.fps)B.push({type:"unsupported",feature:"fps",details:"Alibaba video models do not support custom FPS."});if(J.n!=null&&J.n>1)B.push({type:"unsupported",feature:"n",details:"Alibaba video models only support generating 1 video per call."});let{value:y}=await k({url:`${this.config.baseURL}/api/v1/services/aigc/video-generation/video-synthesis`,headers:V(await b(this.config.headers),J.headers,{"X-DashScope-Async":"enable"}),body:{model:this.modelId,input:P,parameters:w},successfulResponseHandler:I(PG),failedResponseHandler:n,abortSignal:J.abortSignal,fetch:this.config.fetch}),S=(j=y.output)==null?void 0:j.task_id;if(!S)throw new f({name:"ALIBABA_VIDEO_GENERATION_ERROR",message:`No task_id returned from Alibaba API. Response: ${JSON.stringify(y)}`});let F=(z=Y==null?void 0:Y.pollIntervalMs)!=null?z:5000,W=(q=Y==null?void 0:Y.pollTimeoutMs)!=null?q:600000,M=Date.now(),H,D;while(!0){if(await l(F,{abortSignal:J.abortSignal}),Date.now()-M>W)throw new f({name:"ALIBABA_VIDEO_GENERATION_TIMEOUT",message:`Video generation timed out after ${W}ms`});let{value:x,responseHeaders:ZG}=await GG({url:`${this.config.baseURL}/api/v1/tasks/${S}`,headers:V(await b(this.config.headers),J.headers),successfulResponseHandler:I(WG),failedResponseHandler:n,abortSignal:J.abortSignal,fetch:this.config.fetch});D=ZG;let T=(A=x.output)==null?void 0:A.task_status;if(T==="SUCCEEDED"){H=x;break}if(T==="FAILED"||T==="CANCELED")throw new f({name:"ALIBABA_VIDEO_GENERATION_FAILED",message:`Video generation ${T.toLowerCase()}. Task ID: ${S}. ${(N=(Z=x.output)==null?void 0:Z.message)!=null?N:""}`})}let h=(X=H==null?void 0:H.output)==null?void 0:X.video_url;if(!h)throw new f({name:"ALIBABA_VIDEO_GENERATION_ERROR",message:`No video URL in response. Task ID: ${S}`});return{videos:[{type:"url",url:h,mediaType:"video/mp4"}],warnings:B,response:{timestamp:L,modelId:this.modelId,headers:D},providerMetadata:{alibaba:{taskId:S,videoUrl:h,...((E=H==null?void 0:H.output)==null?void 0:E.actual_prompt)?{actualPrompt:H.output.actual_prompt}:{},...(H==null?void 0:H.usage)?{usage:{duration:H.usage.duration,outputVideoDuration:H.usage.output_video_duration,resolution:H.usage.SR,size:H.usage.size}}:{}}}}}},SG="1.0.17",FG=G.object({error:G.object({message:G.string(),code:G.string().nullish(),type:G.string().nullish()})}),s=R({errorSchema:FG,errorToMessage:(J)=>J.error.message});function DG(J={}){var Q,$;let K=(Q=d(J.baseURL))!=null?Q:"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",j=($=d(J.videoBaseURL))!=null?$:"https://dashscope-intl.aliyuncs.com",z=()=>o({Authorization:`Bearer ${JG({apiKey:J.apiKey,environmentVariableName:"ALIBABA_API_KEY",description:"Alibaba Cloud (DashScope)"})}`,...J.headers},`ai-sdk/alibaba/${SG}`),q=(N)=>{var X;return new KG(N,{provider:"alibaba.chat",baseURL:K,headers:z,fetch:J.fetch,includeUsage:(X=J.includeUsage)!=null?X:!0})},A=(N)=>new wG(N,{provider:"alibaba.video",baseURL:j,headers:z,fetch:J.fetch}),Z=function(N){if(new.target)throw Error("The Alibaba model function cannot be called with the new keyword.");return q(N)};return Z.specificationVersion="v3",Z.languageModel=q,Z.chatModel=q,Z.video=A,Z.videoModel=A,Z.imageModel=(N)=>{throw new m({modelId:N,modelType:"imageModel"})},Z.embeddingModel=(N)=>{throw new m({modelId:N,modelType:"embeddingModel"})},Z}var gG=DG();export{DG as createAlibaba,gG as alibaba,SG as VERSION};