@qitqode/qitqode-android-arm64 0.1.35 → 0.2.0

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 (451) hide show
  1. package/bundle/{chunk-7311jry1.js → chunk-00sr2gwz.js} +2 -2
  2. package/bundle/{chunk-azhw650z.js → chunk-02xcb52z.js} +2 -2
  3. package/bundle/{chunk-gws1rn1v.js → chunk-08q55ya0.js} +1 -1
  4. package/bundle/chunk-092bx2yw.js +2 -0
  5. package/bundle/{chunk-xgr6jnd6.js → chunk-0g25z230.js} +1 -1
  6. package/bundle/chunk-0jrgk6vk.js +2 -0
  7. package/bundle/chunk-0ne5m1n3.js +2 -0
  8. package/bundle/chunk-0qn52zsd.js +2 -0
  9. package/bundle/{chunk-7mxt5b0h.js → chunk-0z33en1a.js} +1 -1
  10. package/bundle/chunk-10accb7b.js +2 -0
  11. package/bundle/chunk-13kpdfr7.js +2 -0
  12. package/bundle/chunk-15s8zwgf.js +2 -0
  13. package/bundle/chunk-17pxm5d3.js +14 -0
  14. package/bundle/{chunk-nj4d554m.js → chunk-1bx2sjn6.js} +1 -1
  15. package/bundle/chunk-1kgyfja6.js +2 -0
  16. package/bundle/{chunk-bv29k2pf.js → chunk-1mcsf4yb.js} +2 -2
  17. package/bundle/{chunk-kwx9ewe0.js → chunk-1wpjmwnh.js} +1 -1
  18. package/bundle/{chunk-snr44en9.js → chunk-25bp7pcm.js} +2 -2
  19. package/bundle/{chunk-kmcsz8yv.js → chunk-2dkrfc1s.js} +1 -1
  20. package/bundle/chunk-2pzvcpv4.js +3 -0
  21. package/bundle/chunk-3bkdbqjj.js +2 -0
  22. package/bundle/{chunk-08m0hkdz.js → chunk-3dr4469n.js} +1 -1
  23. package/bundle/{chunk-n96tvjgj.js → chunk-3mepk08v.js} +2 -2
  24. package/bundle/chunk-3sz6gw10.js +3 -0
  25. package/bundle/{chunk-xqdrr7xg.js → chunk-45mjcxqk.js} +1 -1
  26. package/bundle/chunk-46ztrjw0.js +7 -0
  27. package/bundle/chunk-4dtkj9zg.js +2 -0
  28. package/bundle/chunk-4e9p3e0a.js +2 -0
  29. package/bundle/{chunk-qrtc3etn.js → chunk-4fa390yr.js} +2 -2
  30. package/bundle/chunk-4gs87ghj.js +3 -0
  31. package/bundle/{chunk-3k2b05fv.js → chunk-4sazy0nq.js} +1 -1
  32. package/bundle/chunk-4tbqsrsn.js +2 -0
  33. package/bundle/{chunk-ngccf7ga.js → chunk-52b1v7mn.js} +1 -1
  34. package/bundle/chunk-53kns5wy.js +2 -0
  35. package/bundle/{chunk-11v7vz3y.js → chunk-549ptbaj.js} +1 -1
  36. package/bundle/chunk-559ek1ym.js +2 -0
  37. package/bundle/chunk-55wxgsga.js +2 -0
  38. package/bundle/{chunk-34p46th6.js → chunk-5bate758.js} +1 -1
  39. package/bundle/chunk-5ke0yqqz.js +8 -0
  40. package/bundle/{chunk-kdcnder5.js → chunk-5kmfnkzv.js} +1 -1
  41. package/bundle/chunk-5myxjxae.js +3 -0
  42. package/bundle/chunk-5q1fz2az.js +2 -0
  43. package/bundle/{chunk-txbwmwxj.js → chunk-5sgpjgss.js} +1 -1
  44. package/bundle/{chunk-rsszcqxd.js → chunk-60qyqqxx.js} +1 -1
  45. package/bundle/{chunk-94pcpztx.js → chunk-64s7vfj7.js} +2 -2
  46. package/bundle/{chunk-6ged58yw.js → chunk-6r8pg6ma.js} +2 -2
  47. package/bundle/{chunk-8762ty72.js → chunk-70pb4kcm.js} +2 -2
  48. package/bundle/{chunk-04hvaaje.js → chunk-72zxassf.js} +1 -1
  49. package/bundle/{chunk-yz6898wy.js → chunk-73ckx171.js} +1 -1
  50. package/bundle/{chunk-gj0wt0cy.js → chunk-7fawtcnn.js} +1 -1
  51. package/bundle/{chunk-zfn0z4sh.js → chunk-7gbytqkn.js} +2 -2
  52. package/bundle/{chunk-x66ycpfs.js → chunk-7jhrxzjx.js} +2 -2
  53. package/bundle/{chunk-09pkckr1.js → chunk-7vftsy04.js} +1 -1
  54. package/bundle/chunk-871f8x99.js +4 -0
  55. package/bundle/chunk-88emsbaz.js +2 -0
  56. package/bundle/{chunk-zfd70p01.js → chunk-8dxdeksr.js} +1 -1
  57. package/bundle/{chunk-6styp5dn.js → chunk-8fgamz4y.js} +1 -1
  58. package/bundle/{chunk-9qdr9t8c.js → chunk-8q6z6emx.js} +1 -1
  59. package/bundle/{chunk-4ttf9rjd.js → chunk-8r3410c2.js} +1 -1
  60. package/bundle/{chunk-3mzcr3fw.js → chunk-8tp4whyw.js} +1 -1
  61. package/bundle/chunk-8yn64y27.js +2 -0
  62. package/bundle/{chunk-41v0x1jk.js → chunk-8yr682pv.js} +2 -2
  63. package/bundle/chunk-8ywa7az5.js +2 -0
  64. package/bundle/chunk-8ywdddts.js +2 -0
  65. package/bundle/{chunk-exmw8jfa.js → chunk-909fp6pm.js} +2 -2
  66. package/bundle/chunk-92zjark4.js +2 -0
  67. package/bundle/chunk-98effz12.js +2 -0
  68. package/bundle/{chunk-kjyw00jp.js → chunk-9cw4cnz0.js} +1 -1
  69. package/bundle/{chunk-2swch6mx.js → chunk-9dh9bc9d.js} +1 -1
  70. package/bundle/{chunk-y437vyza.js → chunk-9fkmhmh6.js} +1 -1
  71. package/bundle/{chunk-7vd91wsd.js → chunk-9nk0ts0s.js} +1 -1
  72. package/bundle/{chunk-p9cnzxb8.js → chunk-9s4whpg1.js} +2 -2
  73. package/bundle/{chunk-yajd975f.js → chunk-9xvctnjr.js} +1 -1
  74. package/bundle/{chunk-4wxxyrxn.js → chunk-9zre5e54.js} +1 -1
  75. package/bundle/chunk-a6z0fhta.js +2 -0
  76. package/bundle/{chunk-yt3f3j35.js → chunk-a9y27zd2.js} +1 -1
  77. package/bundle/{chunk-mex0fe9s.js → chunk-acyj91wq.js} +1 -1
  78. package/bundle/chunk-aj3y2e86.js +3 -0
  79. package/bundle/chunk-akpssv2d.js +2 -0
  80. package/bundle/chunk-aq28ejhv.js +2 -0
  81. package/bundle/{chunk-pkc4ddw1.js → chunk-atpzz901.js} +1 -1
  82. package/bundle/chunk-aw8af3ky.js +2 -0
  83. package/bundle/chunk-ax1y4699.js +2 -0
  84. package/bundle/{chunk-dctj3c22.js → chunk-b0jh0rby.js} +2 -2
  85. package/bundle/chunk-b10px5g4.js +2 -0
  86. package/bundle/chunk-bha3sbsj.js +2 -0
  87. package/bundle/{chunk-67d5d8mr.js → chunk-bnz0mxak.js} +1 -1
  88. package/bundle/chunk-bs020a3x.js +2 -0
  89. package/bundle/chunk-bs61sezq.js +2 -0
  90. package/bundle/{chunk-7eexey82.js → chunk-c72jajx9.js} +1 -1
  91. package/bundle/{chunk-81trveht.js → chunk-cagk1sjd.js} +1 -1
  92. package/bundle/{chunk-1byd3wma.js → chunk-cdh26622.js} +2 -2
  93. package/bundle/{chunk-t2vm08v6.js → chunk-ceefd2nj.js} +1 -1
  94. package/bundle/chunk-cmdjkx32.js +2 -0
  95. package/bundle/{chunk-zh3fny3z.js → chunk-cx7p4ezk.js} +2 -2
  96. package/bundle/chunk-cxtxvt43.js +2 -0
  97. package/bundle/{chunk-pxmhe36r.js → chunk-d1rn44wz.js} +1 -1
  98. package/bundle/{chunk-0c6ep9mc.js → chunk-d93z6hrn.js} +1 -1
  99. package/bundle/{chunk-zddknkw7.js → chunk-d9x9kqvy.js} +1 -1
  100. package/bundle/chunk-de2rfsaf.js +2 -0
  101. package/bundle/{chunk-seghf5fc.js → chunk-dgx4rq86.js} +1 -1
  102. package/bundle/{chunk-qzj6027k.js → chunk-dh1h513y.js} +1 -1
  103. package/bundle/chunk-dncnyzaa.js +2 -0
  104. package/bundle/chunk-dp6zktka.js +2 -0
  105. package/bundle/{chunk-ba3h1pzs.js → chunk-dshnn54c.js} +1 -1
  106. package/bundle/{chunk-73myw3bj.js → chunk-dt899wbf.js} +2 -2
  107. package/bundle/chunk-dvqdtdza.js +2 -0
  108. package/bundle/{chunk-6ynxf3q7.js → chunk-dvxk6mr6.js} +2 -2
  109. package/bundle/{chunk-bnss5dkk.js → chunk-dykqn0nj.js} +2 -2
  110. package/bundle/{chunk-hv6eccx1.js → chunk-dz3s882k.js} +220 -220
  111. package/bundle/{chunk-y9zstzed.js → chunk-eaqfnwdj.js} +1 -1
  112. package/bundle/{chunk-54wh8b12.js → chunk-eb8nsk7e.js} +2 -2
  113. package/bundle/chunk-ebabnv33.js +3 -0
  114. package/bundle/chunk-ebdpg3cn.js +2 -0
  115. package/bundle/{chunk-kfmz2p27.js → chunk-ev3a2sxv.js} +2 -2
  116. package/bundle/{chunk-d00c1k9w.js → chunk-ewpzqnj4.js} +1 -1
  117. package/bundle/chunk-eyc6tb5h.js +2 -0
  118. package/bundle/chunk-eze57bty.js +2 -0
  119. package/bundle/{chunk-qddt2gcs.js → chunk-ezrskm25.js} +1 -1
  120. package/bundle/chunk-fa47vzfc.js +2 -0
  121. package/bundle/chunk-fe397ph0.js +2 -0
  122. package/bundle/{chunk-bzgj60w4.js → chunk-fn8191ps.js} +2 -2
  123. package/bundle/chunk-fr75ytdr.js +2 -0
  124. package/bundle/chunk-fw2tnbt6.js +2 -0
  125. package/bundle/chunk-fwr2qgqb.js +2 -0
  126. package/bundle/chunk-fyz7fngd.js +2 -0
  127. package/bundle/chunk-g204pt98.js +2 -0
  128. package/bundle/{chunk-ggydr1ze.js → chunk-g794ey6w.js} +1 -1
  129. package/bundle/chunk-g8cfzzrs.js +2 -0
  130. package/bundle/chunk-gcgmwqhh.js +2 -0
  131. package/bundle/{chunk-rmve21dh.js → chunk-gg7bg3ek.js} +1 -1
  132. package/bundle/{chunk-9x25d115.js → chunk-gkj4a27z.js} +1 -1
  133. package/bundle/{chunk-sjw56r2n.js → chunk-gnt982jr.js} +3 -3
  134. package/bundle/chunk-grdfpd57.js +2 -0
  135. package/bundle/chunk-gt6tgm42.js +5 -0
  136. package/bundle/chunk-gw36mrg4.js +2 -0
  137. package/bundle/{chunk-z8gdmvgg.js → chunk-gwfx7tx7.js} +2 -2
  138. package/bundle/{chunk-q8hd01j7.js → chunk-gxmxx8jb.js} +1 -1
  139. package/bundle/{chunk-tge53d52.js → chunk-h1kg35mn.js} +1 -1
  140. package/bundle/chunk-h36qec67.js +2 -0
  141. package/bundle/{chunk-0msqaywp.js → chunk-h7w35n7w.js} +1 -1
  142. package/bundle/chunk-h9gtymfm.js +2 -0
  143. package/bundle/chunk-h9qn35pn.js +2 -0
  144. package/bundle/{chunk-mr8j7rc6.js → chunk-hb9mc5f9.js} +1 -1
  145. package/bundle/{chunk-df2aswz3.js → chunk-hcy77w6t.js} +1 -1
  146. package/bundle/chunk-hd8q4msp.js +2 -0
  147. package/bundle/{chunk-6a7c7wnf.js → chunk-hgsykghj.js} +2 -2
  148. package/bundle/chunk-hhjkezfz.js +2 -0
  149. package/bundle/chunk-hnz570f9.js +3 -0
  150. package/bundle/chunk-j5kyf7vt.js +5 -0
  151. package/bundle/{chunk-1yt5rsew.js → chunk-j63fkt6n.js} +1 -1
  152. package/bundle/{chunk-03xppy47.js → chunk-jcjaw7tk.js} +2 -2
  153. package/bundle/{chunk-jkh6eg7d.js → chunk-jf6ry79j.js} +4 -4
  154. package/bundle/chunk-jfz8wwk9.js +2 -0
  155. package/bundle/{chunk-ke7n9t5p.js → chunk-jgz1a29w.js} +3 -3
  156. package/bundle/{chunk-ebcdxmdd.js → chunk-jngchw38.js} +1 -1
  157. package/bundle/{chunk-j5ymkhry.js → chunk-jqn27885.js} +1 -1
  158. package/bundle/chunk-js6hqmq7.js +2 -0
  159. package/bundle/{chunk-hj3ddt53.js → chunk-jts0dma5.js} +2 -2
  160. package/bundle/chunk-k70x182t.js +2 -0
  161. package/bundle/chunk-k7n1csxv.js +3 -0
  162. package/bundle/{chunk-er38zew1.js → chunk-kb6v5hhm.js} +2 -2
  163. package/bundle/chunk-kmtfdky8.js +4 -0
  164. package/bundle/chunk-kp8nkm3m.js +2 -0
  165. package/bundle/{chunk-7hm0c2yg.js → chunk-kqhh2pm9.js} +1 -1
  166. package/bundle/{chunk-0h8wdch6.js → chunk-kt0ej3nq.js} +1 -1
  167. package/bundle/chunk-kwzawx7r.js +2 -0
  168. package/bundle/{chunk-n6msxne8.js → chunk-kx2dp8ch.js} +1 -1
  169. package/bundle/chunk-m0mek3es.js +2 -0
  170. package/bundle/{chunk-tbgczapt.js → chunk-m0xsvzyd.js} +2 -2
  171. package/bundle/chunk-m31d2n6h.js +2 -0
  172. package/bundle/{chunk-9ayxg9mq.js → chunk-m6zxr0j8.js} +2 -2
  173. package/bundle/{chunk-egn55fa2.js → chunk-mcc5ynma.js} +3 -3
  174. package/bundle/{chunk-md8161zd.js → chunk-mdzzcrf9.js} +2 -2
  175. package/bundle/{chunk-ynwkr3yh.js → chunk-mvnxwwe7.js} +2 -2
  176. package/bundle/{chunk-b4knxpqh.js → chunk-mw2hr4pd.js} +1 -1
  177. package/bundle/{chunk-vszbqv24.js → chunk-mzbr0m2v.js} +1 -1
  178. package/bundle/{chunk-bj00xk8k.js → chunk-n0trgp1c.js} +2 -2
  179. package/bundle/chunk-n14qktbg.js +2 -0
  180. package/bundle/{chunk-yjk6zv2z.js → chunk-n2ygpy76.js} +1 -1
  181. package/bundle/{chunk-yprmd5b7.js → chunk-n38h109k.js} +2 -2
  182. package/bundle/{chunk-8vg4fmg2.js → chunk-n7d9eemn.js} +180 -178
  183. package/bundle/{chunk-06k6egt2.js → chunk-neqy8j4n.js} +1 -1
  184. package/bundle/chunk-nhwhkx62.js +4 -0
  185. package/bundle/{chunk-nj61v4n7.js → chunk-njkserae.js} +1 -1
  186. package/bundle/{chunk-n6gtdx5h.js → chunk-nq495be3.js} +1 -1
  187. package/bundle/{chunk-p3qkexpk.js → chunk-nsjp44fp.js} +1 -1
  188. package/bundle/chunk-nzzsj54n.js +2 -0
  189. package/bundle/chunk-p19qfw59.js +2 -0
  190. package/bundle/chunk-p2yxj9s4.js +2 -0
  191. package/bundle/{chunk-1dtzxt2w.js → chunk-p3rp99na.js} +1 -1
  192. package/bundle/{chunk-79agp7v3.js → chunk-p8kpqyxb.js} +2 -2
  193. package/bundle/{chunk-9fxkh84w.js → chunk-p9zrk16q.js} +1 -1
  194. package/bundle/chunk-pnpre7ys.js +3 -0
  195. package/bundle/{chunk-ee23d2nz.js → chunk-pnq1h5az.js} +2 -2
  196. package/bundle/{chunk-wfd5h6ax.js → chunk-pqnbdygz.js} +2 -2
  197. package/bundle/chunk-pr1ysgr3.js +2 -0
  198. package/bundle/chunk-ps9p14y6.js +2 -0
  199. package/bundle/chunk-px8vtbmr.js +3 -0
  200. package/bundle/{chunk-zfcp509b.js → chunk-pxx2hz0g.js} +2 -2
  201. package/bundle/{chunk-rq4w0by4.js → chunk-q81m4m9z.js} +1 -1
  202. package/bundle/chunk-qagc6v17.js +2 -0
  203. package/bundle/{chunk-mq6jn47r.js → chunk-qb35hqm4.js} +1 -1
  204. package/bundle/chunk-qc0zhbhm.js +2 -0
  205. package/bundle/{chunk-keveg5gx.js → chunk-qdcf1ay5.js} +2 -2
  206. package/bundle/{chunk-t3eymzg1.js → chunk-qpzspr9z.js} +2 -2
  207. package/bundle/chunk-qq2rcxv2.js +9 -0
  208. package/bundle/{chunk-axdzm75h.js → chunk-qqne79vp.js} +2 -2
  209. package/bundle/{chunk-g4gjz7sq.js → chunk-qs4wef8c.js} +1 -1
  210. package/bundle/{chunk-nmehsm3w.js → chunk-qy1a2tpc.js} +1 -1
  211. package/bundle/chunk-qyjt0qnq.js +3 -0
  212. package/bundle/{chunk-6a77w77q.js → chunk-r0g5yyhf.js} +4 -4
  213. package/bundle/{chunk-by855es0.js → chunk-r58gzg6m.js} +1 -1
  214. package/bundle/{chunk-fmq0m4k5.js → chunk-r6ndvzd0.js} +1 -1
  215. package/bundle/chunk-r78kfhvz.js +2 -0
  216. package/bundle/{chunk-dyv2hqvc.js → chunk-rcyhqkv5.js} +1 -1
  217. package/bundle/{chunk-yp5bypsp.js → chunk-rexdr63q.js} +2 -2
  218. package/bundle/{chunk-1me21qdc.js → chunk-rgxy4ngt.js} +1 -1
  219. package/bundle/chunk-rnd5mnsm.js +2 -0
  220. package/bundle/{chunk-dcndy4sr.js → chunk-rph9zj24.js} +1 -1
  221. package/bundle/{chunk-ryfqwsft.js → chunk-rrd0jf5m.js} +1 -1
  222. package/bundle/{chunk-e74efvj2.js → chunk-rtdym35y.js} +172 -172
  223. package/bundle/chunk-s2xdf6qh.js +14 -0
  224. package/bundle/{chunk-mpygdb5a.js → chunk-s8mghr5a.js} +2 -2
  225. package/bundle/chunk-schtpyjs.js +2 -0
  226. package/bundle/{chunk-08f4khsw.js → chunk-snt1kefv.js} +3 -3
  227. package/bundle/{chunk-a1hzeejj.js → chunk-sp8ek94w.js} +2 -2
  228. package/bundle/{chunk-s8hq6trz.js → chunk-srxx88nb.js} +1 -1
  229. package/bundle/{chunk-gy0wm7e1.js → chunk-std2bgv7.js} +2 -2
  230. package/bundle/chunk-sv1s1qxd.js +619 -0
  231. package/bundle/{chunk-dffhkd30.js → chunk-swcgsrbj.js} +1 -1
  232. package/bundle/chunk-sxwqrvmy.js +28 -0
  233. package/bundle/chunk-sxy4hyyy.js +2 -0
  234. package/bundle/chunk-syc4b8rt.js +2 -0
  235. package/bundle/{chunk-wgk7ynt3.js → chunk-t01bhw5h.js} +3 -3
  236. package/bundle/chunk-tcs6wgna.js +3 -0
  237. package/bundle/{chunk-gmzrvxnv.js → chunk-tdmn21z0.js} +2 -2
  238. package/bundle/{chunk-71zw0qhf.js → chunk-tdxbm1nd.js} +1 -1
  239. package/bundle/{chunk-p825vsjy.js → chunk-te5tfq79.js} +1 -1
  240. package/bundle/chunk-tf4xwqz7.js +2 -0
  241. package/bundle/{chunk-fg35hwa0.js → chunk-tgd5ctnt.js} +2 -2
  242. package/bundle/chunk-twhavv1m.js +2 -0
  243. package/bundle/{chunk-qa2j0qmy.js → chunk-txqc7543.js} +2 -2
  244. package/bundle/chunk-tzg4z74d.js +2 -0
  245. package/bundle/chunk-tzrbb0e8.js +3 -0
  246. package/bundle/chunk-v0yxkq99.js +3 -0
  247. package/bundle/{chunk-a3a1trap.js → chunk-v3x5nrc4.js} +2 -2
  248. package/bundle/chunk-v7q3d3n6.js +3 -0
  249. package/bundle/chunk-v8vcwx23.js +2 -0
  250. package/bundle/chunk-vc4e6xc4.js +10 -0
  251. package/bundle/{chunk-6p7yg5sr.js → chunk-vftqwdpg.js} +1 -1
  252. package/bundle/{chunk-r0k21apr.js → chunk-vgaxv70x.js} +2 -2
  253. package/bundle/{chunk-nkk4fyqf.js → chunk-vgnddhdj.js} +1 -1
  254. package/bundle/{chunk-xd3xc1vv.js → chunk-vm58fkrv.js} +1 -1
  255. package/bundle/{chunk-qg2vk5fw.js → chunk-vsys768k.js} +1 -1
  256. package/bundle/{chunk-5a7fs1hg.js → chunk-vvzbfv2f.js} +1 -1
  257. package/bundle/{chunk-s4qtphwx.js → chunk-w03fdrxe.js} +1 -1
  258. package/bundle/{chunk-z1ay3qd0.js → chunk-w3bmf3zz.js} +1 -1
  259. package/bundle/{chunk-vsr8mnj6.js → chunk-w5940jxm.js} +1 -1
  260. package/bundle/chunk-w6rf2knb.js +2 -0
  261. package/bundle/{chunk-aa8hymcv.js → chunk-w8d9srv7.js} +2 -2
  262. package/bundle/chunk-w9pdvcf9.js +3 -0
  263. package/bundle/{chunk-yk97q51d.js → chunk-wev34grp.js} +2 -2
  264. package/bundle/chunk-wh7r96t3.js +2 -0
  265. package/bundle/{chunk-1pg6pv0m.js → chunk-wm77svwm.js} +1 -1
  266. package/bundle/chunk-wnjqaxze.js +2 -0
  267. package/bundle/{chunk-gckgaqqr.js → chunk-ws3p9cya.js} +2 -2
  268. package/bundle/chunk-x42w8ewc.js +2 -0
  269. package/bundle/{chunk-qkjdr337.js → chunk-x6rr6ss1.js} +1 -1
  270. package/bundle/chunk-xc9se3c8.js +2 -0
  271. package/bundle/{chunk-bbzztav6.js → chunk-xdacgfba.js} +1 -1
  272. package/bundle/{chunk-6p94fpbn.js → chunk-xdjwapwy.js} +2 -2
  273. package/bundle/chunk-xfz698bh.js +2 -0
  274. package/bundle/{chunk-zwnhf4z1.js → chunk-xhbb8b5g.js} +1 -1
  275. package/bundle/chunk-xjhezxft.js +8 -0
  276. package/bundle/chunk-xxj3sgd5.js +2 -0
  277. package/bundle/chunk-xxvqq7kc.js +2 -0
  278. package/bundle/{chunk-cs38g1bx.js → chunk-y0ydzdfc.js} +1 -1
  279. package/bundle/{chunk-wvf5q2hz.js → chunk-y1b2h15z.js} +1 -1
  280. package/bundle/{chunk-1gf116rg.js → chunk-yacccwf6.js} +1 -1
  281. package/bundle/chunk-ydc6ypjt.js +77 -0
  282. package/bundle/chunk-ye0mkqb4.js +2 -0
  283. package/bundle/{chunk-dhqaqeq6.js → chunk-yeq7b87a.js} +1 -1
  284. package/bundle/chunk-yfp9y71y.js +2 -0
  285. package/bundle/{chunk-e6xnynaz.js → chunk-yha554nm.js} +2 -2
  286. package/bundle/{chunk-rv1stdvb.js → chunk-yj6rbe9p.js} +2 -2
  287. package/bundle/chunk-yjjh339w.js +2 -0
  288. package/bundle/{chunk-c5pb87yf.js → chunk-ymtcm4xd.js} +1 -1
  289. package/bundle/chunk-ypk3t1eh.js +3 -0
  290. package/bundle/chunk-yt6vd7a5.js +2 -0
  291. package/bundle/{chunk-ssk8tkwd.js → chunk-yw9pfqxt.js} +1 -1
  292. package/bundle/{chunk-g6cyhxwg.js → chunk-yykjvt7f.js} +2 -2
  293. package/bundle/{chunk-sfes6pp1.js → chunk-yzh4rmrt.js} +1 -1
  294. package/bundle/chunk-yzn08nx1.js +2 -0
  295. package/bundle/chunk-yzq3c3dq.js +2 -0
  296. package/bundle/{chunk-prh3c44x.js → chunk-yzwgvjzd.js} +1 -1
  297. package/bundle/chunk-z0tfsdb9.js +3 -0
  298. package/bundle/chunk-z1j25911.js +2 -0
  299. package/bundle/{chunk-rkwrjphh.js → chunk-z1rshv6g.js} +1 -1
  300. package/bundle/chunk-z210dtw1.js +3 -0
  301. package/bundle/chunk-z29ahthm.js +2 -0
  302. package/bundle/{chunk-w1n4rf6n.js → chunk-z7vv0ngm.js} +2 -2
  303. package/bundle/{chunk-jgjnz82k.js → chunk-zaan8jk6.js} +1 -1
  304. package/bundle/{chunk-6gb65bv1.js → chunk-zbqzm65q.js} +1 -1
  305. package/bundle/{chunk-bk4phk66.js → chunk-zesbm9k1.js} +1 -1
  306. package/bundle/{chunk-c6vfwjg4.js → chunk-zfcfyagt.js} +1 -1
  307. package/bundle/{chunk-ywkvq7zb.js → chunk-zfnbk5gy.js} +1 -1
  308. package/bundle/chunk-zgre4gc2.js +2 -0
  309. package/bundle/{chunk-z7430qxg.js → chunk-zrmx397j.js} +1 -1
  310. package/bundle/chunk-zthkjx33.js +2 -0
  311. package/bundle/chunk-ztnepaqc.js +3 -0
  312. package/bundle/chunk-zwvwbrsc.js +2 -0
  313. package/bundle/chunk-zxddasg8.js +2 -0
  314. package/bundle/index.js +3 -3
  315. package/bundle/parser.worker.js +2 -2
  316. package/bundle/worker.js +1 -1
  317. package/package.json +1 -1
  318. package/bundle/chunk-0442cmw2.js +0 -2
  319. package/bundle/chunk-085pvqr4.js +0 -2
  320. package/bundle/chunk-0x5jn813.js +0 -2
  321. package/bundle/chunk-11g2rpv8.js +0 -3
  322. package/bundle/chunk-28t9akfn.js +0 -2
  323. package/bundle/chunk-2h1fcqvf.js +0 -2
  324. package/bundle/chunk-2kens6wh.js +0 -2
  325. package/bundle/chunk-2scyp9ns.js +0 -2
  326. package/bundle/chunk-2tw58kwb.js +0 -2
  327. package/bundle/chunk-2vxx0tax.js +0 -2
  328. package/bundle/chunk-2ybt3p5z.js +0 -2
  329. package/bundle/chunk-2zpkw3ge.js +0 -2
  330. package/bundle/chunk-31g86yn6.js +0 -2
  331. package/bundle/chunk-397be2x0.js +0 -2
  332. package/bundle/chunk-3c78nkgn.js +0 -2
  333. package/bundle/chunk-3d91q2qd.js +0 -2
  334. package/bundle/chunk-43yv7tz1.js +0 -2
  335. package/bundle/chunk-496ajawz.js +0 -2
  336. package/bundle/chunk-499gp5g5.js +0 -2
  337. package/bundle/chunk-4hzm14xt.js +0 -3
  338. package/bundle/chunk-4xw14sed.js +0 -2
  339. package/bundle/chunk-536naqqv.js +0 -2
  340. package/bundle/chunk-57nvmhjq.js +0 -2
  341. package/bundle/chunk-5e4fxy99.js +0 -616
  342. package/bundle/chunk-5he3d7cy.js +0 -2
  343. package/bundle/chunk-5qr286w8.js +0 -2
  344. package/bundle/chunk-606vpgc4.js +0 -4
  345. package/bundle/chunk-6a1skxcj.js +0 -3
  346. package/bundle/chunk-6cj7cn5x.js +0 -2
  347. package/bundle/chunk-6hybp2mt.js +0 -2
  348. package/bundle/chunk-6y423jax.js +0 -3
  349. package/bundle/chunk-72ghkgcn.js +0 -2
  350. package/bundle/chunk-741teh8k.js +0 -2
  351. package/bundle/chunk-7b3wx6kn.js +0 -2
  352. package/bundle/chunk-891yevv2.js +0 -2
  353. package/bundle/chunk-8c1ypgw5.js +0 -3
  354. package/bundle/chunk-8ktgy41r.js +0 -2
  355. package/bundle/chunk-8q73cjyj.js +0 -2
  356. package/bundle/chunk-8rt63jbm.js +0 -2
  357. package/bundle/chunk-8y623qdx.js +0 -2
  358. package/bundle/chunk-921vn745.js +0 -2
  359. package/bundle/chunk-945ebhte.js +0 -2
  360. package/bundle/chunk-9548cc0c.js +0 -2
  361. package/bundle/chunk-9yrypq1r.js +0 -14
  362. package/bundle/chunk-a0rp7gh4.js +0 -77
  363. package/bundle/chunk-a48t0g95.js +0 -3
  364. package/bundle/chunk-a949at1c.js +0 -3
  365. package/bundle/chunk-akk84fnc.js +0 -2
  366. package/bundle/chunk-aw7j7brm.js +0 -2
  367. package/bundle/chunk-b6cybdj3.js +0 -2
  368. package/bundle/chunk-c5fa8cb1.js +0 -2
  369. package/bundle/chunk-ca4r31we.js +0 -2
  370. package/bundle/chunk-ckbwdrm3.js +0 -2
  371. package/bundle/chunk-cqj21rfj.js +0 -3
  372. package/bundle/chunk-cz3h5n1v.js +0 -3
  373. package/bundle/chunk-dhc6e1t7.js +0 -2
  374. package/bundle/chunk-dk6rbqvp.js +0 -2
  375. package/bundle/chunk-dk975etf.js +0 -3
  376. package/bundle/chunk-dwajajaq.js +0 -2
  377. package/bundle/chunk-dxcrggvq.js +0 -2
  378. package/bundle/chunk-dyt3n3fe.js +0 -2
  379. package/bundle/chunk-e7ah0e61.js +0 -2
  380. package/bundle/chunk-e7v9trve.js +0 -11
  381. package/bundle/chunk-e8ws454m.js +0 -2
  382. package/bundle/chunk-efndtzby.js +0 -2
  383. package/bundle/chunk-eq2pepce.js +0 -2
  384. package/bundle/chunk-eva3nqqb.js +0 -14
  385. package/bundle/chunk-f3bnn9rf.js +0 -8
  386. package/bundle/chunk-f693s9vn.js +0 -2
  387. package/bundle/chunk-ftepqwyq.js +0 -2
  388. package/bundle/chunk-g18ax6yp.js +0 -2
  389. package/bundle/chunk-gadyp6mb.js +0 -2
  390. package/bundle/chunk-ge8315te.js +0 -5
  391. package/bundle/chunk-gk28ffhg.js +0 -2
  392. package/bundle/chunk-gpfc4z4v.js +0 -2
  393. package/bundle/chunk-gqvg02zp.js +0 -2
  394. package/bundle/chunk-gsyt2sv7.js +0 -2
  395. package/bundle/chunk-h3k1dk9m.js +0 -2
  396. package/bundle/chunk-h8c3dcqt.js +0 -2
  397. package/bundle/chunk-hfq11w4h.js +0 -2
  398. package/bundle/chunk-hw5qyht3.js +0 -3
  399. package/bundle/chunk-hwf58w1k.js +0 -2
  400. package/bundle/chunk-jyczz3yh.js +0 -8
  401. package/bundle/chunk-k8k8z6b7.js +0 -3
  402. package/bundle/chunk-kk3ve911.js +0 -2
  403. package/bundle/chunk-kv72hxkp.js +0 -3
  404. package/bundle/chunk-m4j7jyrd.js +0 -3
  405. package/bundle/chunk-mf3sm0pk.js +0 -2
  406. package/bundle/chunk-mkng9ykt.js +0 -2
  407. package/bundle/chunk-mxvypy3s.js +0 -2
  408. package/bundle/chunk-n5ypgxrn.js +0 -28
  409. package/bundle/chunk-n9xw9kqc.js +0 -2
  410. package/bundle/chunk-nc4wbc89.js +0 -2
  411. package/bundle/chunk-ngk67rt3.js +0 -3
  412. package/bundle/chunk-nj2bbtmx.js +0 -2
  413. package/bundle/chunk-nr1g57b2.js +0 -2
  414. package/bundle/chunk-p0ahbpxv.js +0 -2
  415. package/bundle/chunk-p7y8z5rd.js +0 -2
  416. package/bundle/chunk-pt26gerr.js +0 -2
  417. package/bundle/chunk-qkk1as5n.js +0 -2
  418. package/bundle/chunk-qsm9xw87.js +0 -2
  419. package/bundle/chunk-qw980y8h.js +0 -2
  420. package/bundle/chunk-r2w3gr8d.js +0 -2
  421. package/bundle/chunk-r5bqcpkz.js +0 -2
  422. package/bundle/chunk-r67c858b.js +0 -2
  423. package/bundle/chunk-r9fvfkee.js +0 -2
  424. package/bundle/chunk-rcn0dhbj.js +0 -2
  425. package/bundle/chunk-rq47pn3r.js +0 -2
  426. package/bundle/chunk-rvt1tdy8.js +0 -2
  427. package/bundle/chunk-ry7q8xn6.js +0 -2
  428. package/bundle/chunk-s27xvrft.js +0 -2
  429. package/bundle/chunk-s5nde2kd.js +0 -5
  430. package/bundle/chunk-scy39p6q.js +0 -2
  431. package/bundle/chunk-srpe3v8e.js +0 -9
  432. package/bundle/chunk-st5jaszz.js +0 -3
  433. package/bundle/chunk-t5qamf96.js +0 -2
  434. package/bundle/chunk-t9mz17gb.js +0 -3
  435. package/bundle/chunk-tns5x4w0.js +0 -3
  436. package/bundle/chunk-ttevj0pj.js +0 -2
  437. package/bundle/chunk-v7c54cyj.js +0 -2
  438. package/bundle/chunk-vgefaens.js +0 -2
  439. package/bundle/chunk-vv59b4re.js +0 -2
  440. package/bundle/chunk-vwqy7n3g.js +0 -2
  441. package/bundle/chunk-vysa9hp4.js +0 -7
  442. package/bundle/chunk-wn076jwj.js +0 -2
  443. package/bundle/chunk-x0m1qye9.js +0 -2
  444. package/bundle/chunk-xvntsbb1.js +0 -3
  445. package/bundle/chunk-y70aachh.js +0 -2
  446. package/bundle/chunk-yqk58hf6.js +0 -3
  447. package/bundle/chunk-ysgxt83y.js +0 -2
  448. package/bundle/chunk-ze9e6nt3.js +0 -3
  449. package/bundle/chunk-znzan00b.js +0 -3
  450. package/bundle/chunk-zrp55k47.js +0 -2
  451. package/bundle/chunk-zwdnh860.js +0 -2
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{bs as v}from"./chunk-yqk58hf6.js";import{CB as nq,DB as Hq,EP as F5,FP as H5,GD as Y5,GP as V5,HC as L5,IC as U5,JP as mq,KC as O5,LD as k,NC as w5,OH as E5,RD as s,YG as Yq,bG as G5,eG as n,hF as I5,jH as h5,kG as f5,lC as N5,lF as P5,mF as A5,pE as j5,qE as C5,sE as M5,tH as K5}from"./chunk-a0rp7gh4.js";import{ZP as H}from"./chunk-ee23d2nz.js";import{$P as X,_P as w,cQ as L}from"./chunk-3k2b05fv.js";var d=X((rq)=>{Object.defineProperty(rq,"__esModule",{value:!0});rq.isTracingSuppressed=rq.unsuppressTracing=rq.suppressTracing=void 0;var S5=H(),Dq=(0,S5.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function y5(q){return q.setValue(Dq,!0)}rq.suppressTracing=y5;function T5(q){return q.deleteValue(Dq)}rq.unsuppressTracing=T5;function d5(q){return q.getValue(Dq)===!0}rq.isTracingSuppressed=d5});var Nq=X((eq)=>{Object.defineProperty(eq,"__esModule",{value:!0});eq.BAGGAGE_MAX_TOTAL_LENGTH=eq.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=eq.BAGGAGE_MAX_NAME_VALUE_PAIRS=eq.BAGGAGE_HEADER=eq.BAGGAGE_ITEMS_SEPARATOR=eq.BAGGAGE_PROPERTIES_SEPARATOR=eq.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;eq.BAGGAGE_KEY_PAIR_SEPARATOR="=";eq.BAGGAGE_PROPERTIES_SEPARATOR=";";eq.BAGGAGE_ITEMS_SEPARATOR=",";eq.BAGGAGE_HEADER="baggage";eq.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;eq.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;eq.BAGGAGE_MAX_TOTAL_LENGTH=8192});var Lq=X((ZJ)=>{Object.defineProperty(ZJ,"__esModule",{value:!0});ZJ.parseKeyPairsIntoRecord=ZJ.parsePairKeyValue=ZJ.getKeyPairs=ZJ.serializeKeyPairs=void 0;var i5=H(),S=Nq();function n5(q){return q.reduce((J,Z)=>{let $=`${J}${J!==""?S.BAGGAGE_ITEMS_SEPARATOR:""}${Z}`;return $.length>S.BAGGAGE_MAX_TOTAL_LENGTH?J:$},"")}ZJ.serializeKeyPairs=n5;function p5(q){return q.getAllEntries().map(([J,Z])=>{let $=`${encodeURIComponent(J)}=${encodeURIComponent(Z.value)}`;if(Z.metadata!==void 0)$+=S.BAGGAGE_PROPERTIES_SEPARATOR+Z.metadata.toString();return $})}ZJ.getKeyPairs=p5;function JJ(q){if(!q)return;let J=q.indexOf(S.BAGGAGE_PROPERTIES_SEPARATOR),Z=J===-1?q:q.substring(0,J),$=Z.indexOf(S.BAGGAGE_KEY_PAIR_SEPARATOR);if($<=0)return;let Q=Z.substring(0,$).trim(),B=Z.substring($+1).trim();if(!Q||!B)return;let W,K;try{W=decodeURIComponent(Q),K=decodeURIComponent(B)}catch{return}let Y;if(J!==-1&&J<q.length-1){let F=q.substring(J+1);Y=(0,i5.baggageEntryMetadataFromString)(F)}return{key:W,value:K,metadata:Y}}ZJ.parsePairKeyValue=JJ;function s5(q){let J={};if(typeof q==="string"&&q.length>0)q.split(S.BAGGAGE_ITEMS_SEPARATOR).forEach((Z)=>{let $=JJ(Z);if($!==void 0&&$.value.length>0)J[$.key]=$.value});return J}ZJ.parseKeyPairsIntoRecord=s5});var BJ=X((zJ)=>{Object.defineProperty(zJ,"__esModule",{value:!0});zJ.W3CBaggagePropagator=void 0;var Uq=H(),t5=d(),A=Nq(),Oq=Lq();class QJ{inject(q,J,Z){let $=Uq.propagation.getBaggage(q);if(!$||(0,t5.isTracingSuppressed)(q))return;let Q=(0,Oq.getKeyPairs)($).filter((W)=>{return W.length<=A.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS}).slice(0,A.BAGGAGE_MAX_NAME_VALUE_PAIRS),B=(0,Oq.serializeKeyPairs)(Q);if(B.length>0)Z.set(J,A.BAGGAGE_HEADER,B)}extract(q,J,Z){let $=Z.get(J,A.BAGGAGE_HEADER),Q=Array.isArray($)?$.join(A.BAGGAGE_ITEMS_SEPARATOR):$;if(!Q)return q;let B={};if(Q.length===0)return q;if(Q.split(A.BAGGAGE_ITEMS_SEPARATOR).forEach((K)=>{let Y=(0,Oq.parsePairKeyValue)(K);if(Y){let F={value:Y.value};if(Y.metadata)F.metadata=Y.metadata;B[Y.key]=F}}),Object.entries(B).length===0)return q;return Uq.propagation.setBaggage(q,Uq.propagation.createBaggage(B))}fields(){return[A.BAGGAGE_HEADER]}}zJ.W3CBaggagePropagator=QJ});var KJ=X((YJ)=>{Object.defineProperty(YJ,"__esModule",{value:!0});YJ.AnchoredClock=void 0;class WJ{_monotonicClock;_epochMillis;_performanceMillis;constructor(q,J){this._monotonicClock=J,this._epochMillis=q.now(),this._performanceMillis=J.now()}now(){let q=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+q}}YJ.AnchoredClock=WJ});var UJ=X((NJ)=>{Object.defineProperty(NJ,"__esModule",{value:!0});NJ.isAttributeValue=NJ.isAttributeKey=NJ.sanitizeAttributes=void 0;var FJ=H();function e5(q){let J={};if(typeof q!=="object"||q==null)return J;for(let Z in q){if(!Object.prototype.hasOwnProperty.call(q,Z))continue;if(!HJ(Z)){FJ.diag.warn(`Invalid attribute key: ${Z}`);continue}let $=q[Z];if(!VJ($)){FJ.diag.warn(`Invalid attribute value set for key: ${Z}`);continue}if(Array.isArray($))J[Z]=$.slice();else J[Z]=$}return J}NJ.sanitizeAttributes=e5;function HJ(q){return typeof q==="string"&&q!==""}NJ.isAttributeKey=HJ;function VJ(q){if(q==null)return!0;if(Array.isArray(q))return q6(q);return DJ(typeof q)}NJ.isAttributeValue=VJ;function q6(q){let J;for(let Z of q){if(Z==null)continue;let $=typeof Z;if($===J)continue;if(!J){if(DJ($)){J=$;continue}return!1}return!1}return!0}function DJ(q){switch(q){case"number":case"boolean":case"string":return!0}return!1}});var wq=X((OJ)=>{Object.defineProperty(OJ,"__esModule",{value:!0});OJ.loggingErrorHandler=void 0;var $6=H();function Q6(){return(q)=>{$6.diag.error(z6(q))}}OJ.loggingErrorHandler=Q6;function z6(q){if(typeof q==="string")return q;else return JSON.stringify(X6(q))}function X6(q){let J={},Z=q;while(Z!==null)Object.getOwnPropertyNames(Z).forEach(($)=>{if(J[$])return;let Q=Z[$];if(Q)J[$]=String(Q)}),Z=Object.getPrototypeOf(Z);return J}});var IJ=X((CJ)=>{Object.defineProperty(CJ,"__esModule",{value:!0});CJ.globalErrorHandler=CJ.setGlobalErrorHandler=void 0;var B6=wq(),jJ=(0,B6.loggingErrorHandler)();function W6(q){jJ=q}CJ.setGlobalErrorHandler=W6;function Y6(q){try{jJ(q)}catch{}}CJ.globalErrorHandler=Y6});var RJ=X((hJ)=>{Object.defineProperty(hJ,"__esModule",{value:!0});hJ.getStringListFromEnv=hJ.getBooleanFromEnv=hJ.getStringFromEnv=hJ.getNumberFromEnv=void 0;var PJ=H(),AJ=L("util");function K6(q){let J=process.env[q];if(J==null||J.trim()==="")return;let Z=Number(J);if(isNaN(Z)){PJ.diag.warn(`Unknown value ${(0,AJ.inspect)(J)} for ${q}, expected a number, using defaults`);return}return Z}hJ.getNumberFromEnv=K6;function fJ(q){let J=process.env[q];if(J==null||J.trim()==="")return;return J}hJ.getStringFromEnv=fJ;function F6(q){let J=process.env[q]?.trim().toLowerCase();if(J==null||J==="")return!1;if(J==="true")return!0;else if(J==="false")return!1;else return PJ.diag.warn(`Unknown value ${(0,AJ.inspect)(J)} for ${q}, expected 'true' or 'false', falling back to 'false' (default)`),!1}hJ.getBooleanFromEnv=F6;function H6(q){return fJ(q)?.split(",").map((J)=>J.trim()).filter((J)=>J!=="")}hJ.getStringListFromEnv=H6});var SJ=X((bJ)=>{Object.defineProperty(bJ,"__esModule",{value:!0});bJ._globalThis=void 0;bJ._globalThis=globalThis});var dJ=X((yJ)=>{Object.defineProperty(yJ,"__esModule",{value:!0});yJ.VERSION=void 0;yJ.VERSION="2.6.1"});var gJ=X((vJ)=>{Object.defineProperty(vJ,"__esModule",{value:!0});vJ.ATTR_PROCESS_RUNTIME_NAME=void 0;vJ.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var uJ=X((mJ)=>{Object.defineProperty(mJ,"__esModule",{value:!0});mJ.SDK_INFO=void 0;var L6=dJ(),a=v(),U6=gJ();mJ.SDK_INFO={[a.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[U6.ATTR_PROCESS_RUNTIME_NAME]:"node",[a.ATTR_TELEMETRY_SDK_LANGUAGE]:a.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[a.ATTR_TELEMETRY_SDK_VERSION]:L6.VERSION}});var cJ=X((C)=>{Object.defineProperty(C,"__esModule",{value:!0});C.otperformance=C.SDK_INFO=C._globalThis=C.getStringListFromEnv=C.getNumberFromEnv=C.getBooleanFromEnv=C.getStringFromEnv=void 0;var o=RJ();Object.defineProperty(C,"getStringFromEnv",{enumerable:!0,get:function(){return o.getStringFromEnv}});Object.defineProperty(C,"getBooleanFromEnv",{enumerable:!0,get:function(){return o.getBooleanFromEnv}});Object.defineProperty(C,"getNumberFromEnv",{enumerable:!0,get:function(){return o.getNumberFromEnv}});Object.defineProperty(C,"getStringListFromEnv",{enumerable:!0,get:function(){return o.getStringListFromEnv}});var O6=SJ();Object.defineProperty(C,"_globalThis",{enumerable:!0,get:function(){return O6._globalThis}});var w6=uJ();Object.defineProperty(C,"SDK_INFO",{enumerable:!0,get:function(){return w6.SDK_INFO}});C.otperformance=performance});var jq=X((U)=>{Object.defineProperty(U,"__esModule",{value:!0});U.getStringListFromEnv=U.getNumberFromEnv=U.getStringFromEnv=U.getBooleanFromEnv=U.otperformance=U._globalThis=U.SDK_INFO=void 0;var f=cJ();Object.defineProperty(U,"SDK_INFO",{enumerable:!0,get:function(){return f.SDK_INFO}});Object.defineProperty(U,"_globalThis",{enumerable:!0,get:function(){return f._globalThis}});Object.defineProperty(U,"otperformance",{enumerable:!0,get:function(){return f.otperformance}});Object.defineProperty(U,"getBooleanFromEnv",{enumerable:!0,get:function(){return f.getBooleanFromEnv}});Object.defineProperty(U,"getStringFromEnv",{enumerable:!0,get:function(){return f.getStringFromEnv}});Object.defineProperty(U,"getNumberFromEnv",{enumerable:!0,get:function(){return f.getNumberFromEnv}});Object.defineProperty(U,"getStringListFromEnv",{enumerable:!0,get:function(){return f.getStringListFromEnv}})});var oJ=X((sJ)=>{Object.defineProperty(sJ,"__esModule",{value:!0});sJ.addHrTimes=sJ.isTimeInput=sJ.isTimeInputHrTime=sJ.hrTimeToMicroseconds=sJ.hrTimeToMilliseconds=sJ.hrTimeToNanoseconds=sJ.hrTimeToTimeStamp=sJ.hrTimeDuration=sJ.timeInputToHrTime=sJ.hrTime=sJ.getTimeOrigin=sJ.millisToHrTime=void 0;var r=jq(),iJ=9,C6=6,M6=Math.pow(10,C6),t=Math.pow(10,iJ);function _(q){let J=q/1000,Z=Math.trunc(J),$=Math.round(q%1000*M6);return[Z,$]}sJ.millisToHrTime=_;function I6(){return r.otperformance.timeOrigin}sJ.getTimeOrigin=I6;function nJ(q){let J=_(r.otperformance.timeOrigin),Z=_(typeof q==="number"?q:r.otperformance.now());return pJ(J,Z)}sJ.hrTime=nJ;function P6(q){if(Cq(q))return q;else if(typeof q==="number")if(q<r.otperformance.timeOrigin)return nJ(q);else return _(q);else if(q instanceof Date)return _(q.getTime());else throw TypeError("Invalid input type")}sJ.timeInputToHrTime=P6;function A6(q,J){let Z=J[0]-q[0],$=J[1]-q[1];if($<0)Z-=1,$+=t;return[Z,$]}sJ.hrTimeDuration=A6;function f6(q){let J=iJ,Z=`${"0".repeat(J)}${q[1]}Z`,$=Z.substring(Z.length-J-1);return new Date(q[0]*1000).toISOString().replace("000Z",$)}sJ.hrTimeToTimeStamp=f6;function h6(q){return q[0]*t+q[1]}sJ.hrTimeToNanoseconds=h6;function E6(q){return q[0]*1000+q[1]/1e6}sJ.hrTimeToMilliseconds=E6;function R6(q){return q[0]*1e6+q[1]/1000}sJ.hrTimeToMicroseconds=R6;function Cq(q){return Array.isArray(q)&&q.length===2&&typeof q[0]==="number"&&typeof q[1]==="number"}sJ.isTimeInputHrTime=Cq;function b6(q){return Cq(q)||typeof q==="number"||q instanceof Date}sJ.isTimeInput=b6;function pJ(q,J){let Z=[q[0]+J[0],q[1]+J[1]];if(Z[1]>=t)Z[1]-=t,Z[0]+=1;return Z}sJ.addHrTimes=pJ});var eJ=X((rJ)=>{Object.defineProperty(rJ,"__esModule",{value:!0});rJ.unrefTimer=void 0;function l6(q){if(typeof q!=="number")q.unref()}rJ.unrefTimer=l6});var JZ=X((qZ)=>{Object.defineProperty(qZ,"__esModule",{value:!0});qZ.ExportResultCode=void 0;var c6;(function(q){q[q.SUCCESS=0]="SUCCESS",q[q.FAILED=1]="FAILED"})(c6=qZ.ExportResultCode||(qZ.ExportResultCode={}))});var XZ=X((QZ)=>{Object.defineProperty(QZ,"__esModule",{value:!0});QZ.CompositePropagator=void 0;var ZZ=H();class $Z{_propagators;_fields;constructor(q={}){this._propagators=q.propagators??[],this._fields=Array.from(new Set(this._propagators.map((J)=>typeof J.fields==="function"?J.fields():[]).reduce((J,Z)=>J.concat(Z),[])))}inject(q,J,Z){for(let $ of this._propagators)try{$.inject(q,J,Z)}catch(Q){ZZ.diag.warn(`Failed to inject with ${$.constructor.name}. Err: ${Q.message}`)}}extract(q,J,Z){return this._propagators.reduce(($,Q)=>{try{return Q.extract($,J,Z)}catch(B){ZZ.diag.warn(`Failed to extract with ${Q.constructor.name}. Err: ${B.message}`)}return $},q)}fields(){return this._fields.slice()}}QZ.CompositePropagator=$Z});var YZ=X((BZ)=>{Object.defineProperty(BZ,"__esModule",{value:!0});BZ.validateValue=BZ.validateKey=void 0;var Iq="[_0-9a-z-*/]",i6=`[a-z]${Iq}{0,255}`,n6=`[a-z0-9]${Iq}{0,240}@[a-z]${Iq}{0,13}`,p6=new RegExp(`^(?:${i6}|${n6})$`),s6=/^[ -~]{0,255}[!-~]$/,a6=/,|=/;function o6(q){return p6.test(q)}BZ.validateKey=o6;function r6(q){return s6.test(q)&&!a6.test(q)}BZ.validateValue=r6});var Aq=X((VZ)=>{Object.defineProperty(VZ,"__esModule",{value:!0});VZ.TraceState=void 0;var GZ=YZ(),KZ=32,e6=512,FZ=",",HZ="=";class Pq{_internalState=new Map;constructor(q){if(q)this._parse(q)}set(q,J){let Z=this._clone();if(Z._internalState.has(q))Z._internalState.delete(q);return Z._internalState.set(q,J),Z}unset(q){let J=this._clone();return J._internalState.delete(q),J}get(q){return this._internalState.get(q)}serialize(){return this._keys().reduce((q,J)=>{return q.push(J+HZ+this.get(J)),q},[]).join(FZ)}_parse(q){if(q.length>e6)return;if(this._internalState=q.split(FZ).reverse().reduce((J,Z)=>{let $=Z.trim(),Q=$.indexOf(HZ);if(Q!==-1){let B=$.slice(0,Q),W=$.slice(Q+1,Z.length);if((0,GZ.validateKey)(B)&&(0,GZ.validateValue)(W))J.set(B,W)}return J},new Map),this._internalState.size>KZ)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,KZ))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let q=new Pq;return q._internalState=new Map(this._internalState),q}}VZ.TraceState=Pq});var wZ=X((UZ)=>{Object.defineProperty(UZ,"__esModule",{value:!0});UZ.W3CTraceContextPropagator=UZ.parseTraceParent=UZ.TRACE_STATE_HEADER=UZ.TRACE_PARENT_HEADER=void 0;var e=H(),q8=d(),J8=Aq();UZ.TRACE_PARENT_HEADER="traceparent";UZ.TRACE_STATE_HEADER="tracestate";var Z8="00",$8="(?!ff)[\\da-f]{2}",Q8="(?![0]{32})[\\da-f]{32}",z8="(?![0]{16})[\\da-f]{16}",X8="[\\da-f]{2}",B8=new RegExp(`^\\s?(${$8})-(${Q8})-(${z8})-(${X8})(-.*)?\\s?$`);function NZ(q){let J=B8.exec(q);if(!J)return null;if(J[1]==="00"&&J[5])return null;return{traceId:J[2],spanId:J[3],traceFlags:parseInt(J[4],16)}}UZ.parseTraceParent=NZ;class LZ{inject(q,J,Z){let $=e.trace.getSpanContext(q);if(!$||(0,q8.isTracingSuppressed)(q)||!(0,e.isSpanContextValid)($))return;let Q=`${Z8}-${$.traceId}-${$.spanId}-0${Number($.traceFlags||e.TraceFlags.NONE).toString(16)}`;if(Z.set(J,UZ.TRACE_PARENT_HEADER,Q),$.traceState)Z.set(J,UZ.TRACE_STATE_HEADER,$.traceState.serialize())}extract(q,J,Z){let $=Z.get(J,UZ.TRACE_PARENT_HEADER);if(!$)return q;let Q=Array.isArray($)?$[0]:$;if(typeof Q!=="string")return q;let B=NZ(Q);if(!B)return q;B.isRemote=!0;let W=Z.get(J,UZ.TRACE_STATE_HEADER);if(W){let K=Array.isArray(W)?W.join(","):W;B.traceState=new J8.TraceState(typeof K==="string"?K:void 0)}return e.trace.setSpanContext(q,B)}fields(){return[UZ.TRACE_PARENT_HEADER,UZ.TRACE_STATE_HEADER]}}UZ.W3CTraceContextPropagator=LZ});var IZ=X((CZ)=>{Object.defineProperty(CZ,"__esModule",{value:!0});CZ.getRPCMetadata=CZ.deleteRPCMetadata=CZ.setRPCMetadata=CZ.RPCType=void 0;var Y8=H(),fq=(0,Y8.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),G8;(function(q){q.HTTP="http"})(G8=CZ.RPCType||(CZ.RPCType={}));function K8(q,J){return q.setValue(fq,J)}CZ.setRPCMetadata=K8;function F8(q){return q.deleteValue(fq)}CZ.deleteRPCMetadata=F8;function H8(q){return q.getValue(fq)}CZ.getRPCMetadata=H8});var bZ=X((EZ)=>{Object.defineProperty(EZ,"__esModule",{value:!0});EZ.isPlainObject=void 0;var N8="[object Object]",L8="[object Null]",U8="[object Undefined]",O8=Function.prototype,PZ=O8.toString,w8=PZ.call(Object),j8=Object.getPrototypeOf,AZ=Object.prototype,fZ=AZ.hasOwnProperty,h=Symbol?Symbol.toStringTag:void 0,hZ=AZ.toString;function C8(q){if(!M8(q)||I8(q)!==N8)return!1;let J=j8(q);if(J===null)return!0;let Z=fZ.call(J,"constructor")&&J.constructor;return typeof Z=="function"&&Z instanceof Z&&PZ.call(Z)===w8}EZ.isPlainObject=C8;function M8(q){return q!=null&&typeof q=="object"}function I8(q){if(q==null)return q===void 0?U8:L8;return h&&h in Object(q)?P8(q):A8(q)}function P8(q){let J=fZ.call(q,h),Z=q[h],$=!1;try{q[h]=void 0,$=!0}catch{}let Q=hZ.call(q);if($)if(J)q[h]=Z;else delete q[h];return Q}function A8(q){return hZ.call(q)}});var _Z=X((dZ)=>{Object.defineProperty(dZ,"__esModule",{value:!0});dZ.merge=void 0;var kZ=bZ(),f8=20;function h8(...q){let J=q.shift(),Z=new WeakMap;while(q.length>0)J=yZ(J,q.shift(),0,Z);return J}dZ.merge=h8;function hq(q){if($q(q))return q.slice();return q}function yZ(q,J,Z=0,$){let Q;if(Z>f8)return;if(Z++,Zq(q)||Zq(J)||TZ(J))Q=hq(J);else if($q(q)){if(Q=q.slice(),$q(J))for(let B=0,W=J.length;B<W;B++)Q.push(hq(J[B]));else if(g(J)){let B=Object.keys(J);for(let W=0,K=B.length;W<K;W++){let Y=B[W];Q[Y]=hq(J[Y])}}}else if(g(q))if(g(J)){if(!E8(q,J))return J;Q=Object.assign({},q);let B=Object.keys(J);for(let W=0,K=B.length;W<K;W++){let Y=B[W],F=J[Y];if(Zq(F))if(typeof F>"u")delete Q[Y];else Q[Y]=F;else{let I=Q[Y],P=F;if(SZ(q,Y,$)||SZ(J,Y,$))delete Q[Y];else{if(g(I)&&g(P)){let aq=$.get(I)||[],oq=$.get(P)||[];aq.push({obj:q,key:Y}),oq.push({obj:J,key:Y}),$.set(I,aq),$.set(P,oq)}Q[Y]=yZ(Q[Y],F,Z,$)}}}}else Q=J;return Q}function SZ(q,J,Z){let $=Z.get(q[J])||[];for(let Q=0,B=$.length;Q<B;Q++){let W=$[Q];if(W.key===J&&W.obj===q)return!0}return!1}function $q(q){return Array.isArray(q)}function TZ(q){return typeof q==="function"}function g(q){return!Zq(q)&&!$q(q)&&!TZ(q)&&typeof q==="object"}function Zq(q){return typeof q==="string"||typeof q==="number"||typeof q==="boolean"||typeof q>"u"||q instanceof Date||q instanceof RegExp||q===null}function E8(q,J){if(!(0,kZ.isPlainObject)(q)||!(0,kZ.isPlainObject)(J))return!1;return!0}});var xZ=X((gZ)=>{Object.defineProperty(gZ,"__esModule",{value:!0});gZ.callWithTimeout=gZ.TimeoutError=void 0;class Qq extends Error{constructor(q){super(q);Object.setPrototypeOf(this,Qq.prototype)}}gZ.TimeoutError=Qq;function R8(q,J){let Z,$=new Promise(function(B,W){Z=setTimeout(function(){W(new Qq("Operation timed out."))},J)});return Promise.race([q,$]).then((Q)=>{return clearTimeout(Z),Q},(Q)=>{throw clearTimeout(Z),Q})}gZ.callWithTimeout=R8});var iZ=X((lZ)=>{Object.defineProperty(lZ,"__esModule",{value:!0});lZ.isUrlIgnored=lZ.urlMatches=void 0;function uZ(q,J){if(typeof J==="string")return q===J;else return!!q.match(J)}lZ.urlMatches=uZ;function k8(q,J){if(!J)return!1;for(let Z of J)if(uZ(q,Z))return!0;return!1}lZ.isUrlIgnored=k8});var aZ=X((pZ)=>{Object.defineProperty(pZ,"__esModule",{value:!0});pZ.Deferred=void 0;class nZ{_promise;_resolve;_reject;constructor(){this._promise=new Promise((q,J)=>{this._resolve=q,this._reject=J})}get promise(){return this._promise}resolve(q){this._resolve(q)}reject(q){this._reject(q)}}pZ.Deferred=nZ});var eZ=X((rZ)=>{Object.defineProperty(rZ,"__esModule",{value:!0});rZ.BindOnceFuture=void 0;var y8=aZ();class oZ{_isCalled=!1;_deferred=new y8.Deferred;_callback;_that;constructor(q,J){this._callback=q,this._that=J}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...q){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...q)).then((J)=>this._deferred.resolve(J),(J)=>this._deferred.reject(J))}catch(J){this._deferred.reject(J)}}return this._deferred.promise}}rZ.BindOnceFuture=oZ});var $0=X((J0)=>{Object.defineProperty(J0,"__esModule",{value:!0});J0.diagLogLevelFromString=void 0;var O=H(),q0={ALL:O.DiagLogLevel.ALL,VERBOSE:O.DiagLogLevel.VERBOSE,DEBUG:O.DiagLogLevel.DEBUG,INFO:O.DiagLogLevel.INFO,WARN:O.DiagLogLevel.WARN,ERROR:O.DiagLogLevel.ERROR,NONE:O.DiagLogLevel.NONE};function T8(q){if(q==null)return;let J=q0[q.toUpperCase()];if(J==null)return O.diag.warn(`Unknown log level "${q}", expected one of ${Object.keys(q0)}, using default`),O.DiagLogLevel.INFO;return J}J0.diagLogLevelFromString=T8});var B0=X((z0)=>{Object.defineProperty(z0,"__esModule",{value:!0});z0._export=void 0;var Q0=H(),d8=d();function v8(q,J){return new Promise((Z)=>{Q0.context.with((0,d8.suppressTracing)(Q0.context.active()),()=>{q.export(J,Z)})})}z0._export=v8});var Rq=X((z)=>{Object.defineProperty(z,"__esModule",{value:!0});z.internal=z.diagLogLevelFromString=z.BindOnceFuture=z.urlMatches=z.isUrlIgnored=z.callWithTimeout=z.TimeoutError=z.merge=z.TraceState=z.unsuppressTracing=z.suppressTracing=z.isTracingSuppressed=z.setRPCMetadata=z.getRPCMetadata=z.deleteRPCMetadata=z.RPCType=z.parseTraceParent=z.W3CTraceContextPropagator=z.TRACE_STATE_HEADER=z.TRACE_PARENT_HEADER=z.CompositePropagator=z.otperformance=z.getStringListFromEnv=z.getNumberFromEnv=z.getBooleanFromEnv=z.getStringFromEnv=z._globalThis=z.SDK_INFO=z.parseKeyPairsIntoRecord=z.ExportResultCode=z.unrefTimer=z.timeInputToHrTime=z.millisToHrTime=z.isTimeInputHrTime=z.isTimeInput=z.hrTimeToTimeStamp=z.hrTimeToNanoseconds=z.hrTimeToMilliseconds=z.hrTimeToMicroseconds=z.hrTimeDuration=z.hrTime=z.getTimeOrigin=z.addHrTimes=z.loggingErrorHandler=z.setGlobalErrorHandler=z.globalErrorHandler=z.sanitizeAttributes=z.isAttributeValue=z.AnchoredClock=z.W3CBaggagePropagator=void 0;var _8=BJ();Object.defineProperty(z,"W3CBaggagePropagator",{enumerable:!0,get:function(){return _8.W3CBaggagePropagator}});var g8=KJ();Object.defineProperty(z,"AnchoredClock",{enumerable:!0,get:function(){return g8.AnchoredClock}});var W0=UJ();Object.defineProperty(z,"isAttributeValue",{enumerable:!0,get:function(){return W0.isAttributeValue}});Object.defineProperty(z,"sanitizeAttributes",{enumerable:!0,get:function(){return W0.sanitizeAttributes}});var Y0=IJ();Object.defineProperty(z,"globalErrorHandler",{enumerable:!0,get:function(){return Y0.globalErrorHandler}});Object.defineProperty(z,"setGlobalErrorHandler",{enumerable:!0,get:function(){return Y0.setGlobalErrorHandler}});var m8=wq();Object.defineProperty(z,"loggingErrorHandler",{enumerable:!0,get:function(){return m8.loggingErrorHandler}});var D=oJ();Object.defineProperty(z,"addHrTimes",{enumerable:!0,get:function(){return D.addHrTimes}});Object.defineProperty(z,"getTimeOrigin",{enumerable:!0,get:function(){return D.getTimeOrigin}});Object.defineProperty(z,"hrTime",{enumerable:!0,get:function(){return D.hrTime}});Object.defineProperty(z,"hrTimeDuration",{enumerable:!0,get:function(){return D.hrTimeDuration}});Object.defineProperty(z,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return D.hrTimeToMicroseconds}});Object.defineProperty(z,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return D.hrTimeToMilliseconds}});Object.defineProperty(z,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return D.hrTimeToNanoseconds}});Object.defineProperty(z,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return D.hrTimeToTimeStamp}});Object.defineProperty(z,"isTimeInput",{enumerable:!0,get:function(){return D.isTimeInput}});Object.defineProperty(z,"isTimeInputHrTime",{enumerable:!0,get:function(){return D.isTimeInputHrTime}});Object.defineProperty(z,"millisToHrTime",{enumerable:!0,get:function(){return D.millisToHrTime}});Object.defineProperty(z,"timeInputToHrTime",{enumerable:!0,get:function(){return D.timeInputToHrTime}});var x8=eJ();Object.defineProperty(z,"unrefTimer",{enumerable:!0,get:function(){return x8.unrefTimer}});var u8=JZ();Object.defineProperty(z,"ExportResultCode",{enumerable:!0,get:function(){return u8.ExportResultCode}});var l8=Lq();Object.defineProperty(z,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return l8.parseKeyPairsIntoRecord}});var E=jq();Object.defineProperty(z,"SDK_INFO",{enumerable:!0,get:function(){return E.SDK_INFO}});Object.defineProperty(z,"_globalThis",{enumerable:!0,get:function(){return E._globalThis}});Object.defineProperty(z,"getStringFromEnv",{enumerable:!0,get:function(){return E.getStringFromEnv}});Object.defineProperty(z,"getBooleanFromEnv",{enumerable:!0,get:function(){return E.getBooleanFromEnv}});Object.defineProperty(z,"getNumberFromEnv",{enumerable:!0,get:function(){return E.getNumberFromEnv}});Object.defineProperty(z,"getStringListFromEnv",{enumerable:!0,get:function(){return E.getStringListFromEnv}});Object.defineProperty(z,"otperformance",{enumerable:!0,get:function(){return E.otperformance}});var c8=XZ();Object.defineProperty(z,"CompositePropagator",{enumerable:!0,get:function(){return c8.CompositePropagator}});var zq=wZ();Object.defineProperty(z,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return zq.TRACE_PARENT_HEADER}});Object.defineProperty(z,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return zq.TRACE_STATE_HEADER}});Object.defineProperty(z,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return zq.W3CTraceContextPropagator}});Object.defineProperty(z,"parseTraceParent",{enumerable:!0,get:function(){return zq.parseTraceParent}});var Xq=IZ();Object.defineProperty(z,"RPCType",{enumerable:!0,get:function(){return Xq.RPCType}});Object.defineProperty(z,"deleteRPCMetadata",{enumerable:!0,get:function(){return Xq.deleteRPCMetadata}});Object.defineProperty(z,"getRPCMetadata",{enumerable:!0,get:function(){return Xq.getRPCMetadata}});Object.defineProperty(z,"setRPCMetadata",{enumerable:!0,get:function(){return Xq.setRPCMetadata}});var Eq=d();Object.defineProperty(z,"isTracingSuppressed",{enumerable:!0,get:function(){return Eq.isTracingSuppressed}});Object.defineProperty(z,"suppressTracing",{enumerable:!0,get:function(){return Eq.suppressTracing}});Object.defineProperty(z,"unsuppressTracing",{enumerable:!0,get:function(){return Eq.unsuppressTracing}});var i8=Aq();Object.defineProperty(z,"TraceState",{enumerable:!0,get:function(){return i8.TraceState}});var n8=_Z();Object.defineProperty(z,"merge",{enumerable:!0,get:function(){return n8.merge}});var G0=xZ();Object.defineProperty(z,"TimeoutError",{enumerable:!0,get:function(){return G0.TimeoutError}});Object.defineProperty(z,"callWithTimeout",{enumerable:!0,get:function(){return G0.callWithTimeout}});var K0=iZ();Object.defineProperty(z,"isUrlIgnored",{enumerable:!0,get:function(){return K0.isUrlIgnored}});Object.defineProperty(z,"urlMatches",{enumerable:!0,get:function(){return K0.urlMatches}});var p8=eZ();Object.defineProperty(z,"BindOnceFuture",{enumerable:!0,get:function(){return p8.BindOnceFuture}});var s8=$0();Object.defineProperty(z,"diagLogLevelFromString",{enumerable:!0,get:function(){return s8.diagLogLevelFromString}});var a8=B0();z.internal={_export:a8._export}});var bq=X((H0)=>{Object.defineProperty(H0,"__esModule",{value:!0});H0._clearDefaultServiceNameCache=H0.defaultServiceName=void 0;var m;function o8(){if(m===void 0)try{let q=globalThis.process.argv0;m=q?`unknown_service:${q}`:"unknown_service"}catch{m="unknown_service"}return m}H0.defaultServiceName=o8;function r8(){m=void 0}H0._clearDefaultServiceNameCache=r8});var L0=X((D0)=>{Object.defineProperty(D0,"__esModule",{value:!0});D0.isPromiseLike=void 0;var e8=(q)=>{return q!==null&&typeof q==="object"&&typeof q.then==="function"};D0.isPromiseLike=e8});var yq=X((O0)=>{Object.defineProperty(O0,"__esModule",{value:!0});O0.defaultResource=O0.emptyResource=O0.resourceFromDetectedResource=O0.resourceFromAttributes=void 0;var u=H(),kq=Rq(),R=v(),q9=bq(),x=L0();class l{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(q,J){let Z=new l({},J);return Z._rawAttributes=U0(q),Z._asyncAttributesPending=q.filter(([$,Q])=>(0,x.isPromiseLike)(Q)).length>0,Z}constructor(q,J){let Z=q.attributes??{};this._rawAttributes=Object.entries(Z).map(([$,Q])=>{if((0,x.isPromiseLike)(Q))this._asyncAttributesPending=!0;return[$,Q]}),this._rawAttributes=U0(this._rawAttributes),this._schemaUrl=Q9(J?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(!this.asyncAttributesPending)return;for(let q=0;q<this._rawAttributes.length;q++){let[J,Z]=this._rawAttributes[q];this._rawAttributes[q]=[J,(0,x.isPromiseLike)(Z)?await Z:Z]}this._asyncAttributesPending=!1}get attributes(){if(this.asyncAttributesPending)u.diag.error("Accessing resource attributes before async attributes settled");if(this._memoizedAttributes)return this._memoizedAttributes;let q={};for(let[J,Z]of this._rawAttributes){if((0,x.isPromiseLike)(Z)){u.diag.debug(`Unsettled resource attribute ${J} skipped`);continue}if(Z!=null)q[J]??=Z}if(!this._asyncAttributesPending)this._memoizedAttributes=q;return q}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(q){if(q==null)return this;let J=z9(this,q),Z=J?{schemaUrl:J}:void 0;return l.FromAttributeList([...q.getRawAttributes(),...this.getRawAttributes()],Z)}}function Sq(q,J){return l.FromAttributeList(Object.entries(q),J)}O0.resourceFromAttributes=Sq;function J9(q,J){return new l(q,J)}O0.resourceFromDetectedResource=J9;function Z9(){return Sq({})}O0.emptyResource=Z9;function $9(){return Sq({[R.ATTR_SERVICE_NAME]:(0,q9.defaultServiceName)(),[R.ATTR_TELEMETRY_SDK_LANGUAGE]:kq.SDK_INFO[R.ATTR_TELEMETRY_SDK_LANGUAGE],[R.ATTR_TELEMETRY_SDK_NAME]:kq.SDK_INFO[R.ATTR_TELEMETRY_SDK_NAME],[R.ATTR_TELEMETRY_SDK_VERSION]:kq.SDK_INFO[R.ATTR_TELEMETRY_SDK_VERSION]})}O0.defaultResource=$9;function U0(q){return q.map(([J,Z])=>{if((0,x.isPromiseLike)(Z))return[J,Z.catch(($)=>{u.diag.debug("promise rejection for resource attribute: %s - %s",J,$);return})];return[J,Z]})}function Q9(q){if(typeof q==="string"||q===void 0)return q;u.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",q);return}function z9(q,J){let Z=q?.schemaUrl,$=J?.schemaUrl,Q=Z===void 0||Z==="",B=$===void 0||$==="";if(Q)return $;if(B)return Z;if(Z===$)return Z;u.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',Z,$);return}});var I0=X((C0)=>{Object.defineProperty(C0,"__esModule",{value:!0});C0.detectResources=void 0;var j0=H(),Tq=yq(),Y9=(q={})=>{return(q.detectors||[]).map((Z)=>{try{let $=(0,Tq.resourceFromDetectedResource)(Z.detect(q));return j0.diag.debug(`${Z.constructor.name} found resource.`,$),$}catch($){return j0.diag.debug(`${Z.constructor.name} failed: ${$.message}`),(0,Tq.emptyResource)()}}).reduce((Z,$)=>Z.merge($),(0,Tq.emptyResource)())};C0.detectResources=Y9});var E0=X((f0)=>{Object.defineProperty(f0,"__esModule",{value:!0});f0.envDetector=void 0;var G9=H(),K9=v(),P0=Rq();class A0{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";detect(q){let J={},Z=(0,P0.getStringFromEnv)("OTEL_RESOURCE_ATTRIBUTES"),$=(0,P0.getStringFromEnv)("OTEL_SERVICE_NAME");if(Z)try{let Q=this._parseResourceAttributes(Z);Object.assign(J,Q)}catch(Q){G9.diag.debug(`EnvDetector failed: ${Q instanceof Error?Q.message:Q}`)}if($)J[K9.ATTR_SERVICE_NAME]=$;return{attributes:J}}_parseResourceAttributes(q){if(!q)return{};let J={},Z=q.split(this._COMMA_SEPARATOR);for(let $ of Z){let Q=$.split(this._LABEL_KEY_VALUE_SPLITTER);if(Q.length!==2)throw Error(`Invalid format for OTEL_RESOURCE_ATTRIBUTES: "${$}". Expected format: key=value. The ',' and '=' characters must be percent-encoded in keys and values.`);let[B,W]=Q,K=B.trim(),Y=W.trim();if(K.length===0)throw Error(`Invalid OTEL_RESOURCE_ATTRIBUTES: empty attribute key in "${$}".`);let F,I;try{F=decodeURIComponent(K),I=decodeURIComponent(Y)}catch(P){throw Error(`Failed to percent-decode OTEL_RESOURCE_ATTRIBUTES entry "${$}": ${P instanceof Error?P.message:P}`)}if(F.length>this._MAX_LENGTH)throw Error(`Attribute key exceeds the maximum length of ${this._MAX_LENGTH} characters: "${F}".`);if(I.length>this._MAX_LENGTH)throw Error(`Attribute value exceeds the maximum length of ${this._MAX_LENGTH} characters for key "${F}".`);J[F]=I}return J}}f0.envDetector=new A0});var c=X((R0)=>{Object.defineProperty(R0,"__esModule",{value:!0});R0.ATTR_WEBENGINE_VERSION=R0.ATTR_WEBENGINE_NAME=R0.ATTR_WEBENGINE_DESCRIPTION=R0.ATTR_SERVICE_NAMESPACE=R0.ATTR_SERVICE_INSTANCE_ID=R0.ATTR_PROCESS_RUNTIME_VERSION=R0.ATTR_PROCESS_RUNTIME_NAME=R0.ATTR_PROCESS_RUNTIME_DESCRIPTION=R0.ATTR_PROCESS_PID=R0.ATTR_PROCESS_OWNER=R0.ATTR_PROCESS_EXECUTABLE_PATH=R0.ATTR_PROCESS_EXECUTABLE_NAME=R0.ATTR_PROCESS_COMMAND_ARGS=R0.ATTR_PROCESS_COMMAND=R0.ATTR_OS_VERSION=R0.ATTR_OS_TYPE=R0.ATTR_K8S_POD_NAME=R0.ATTR_K8S_NAMESPACE_NAME=R0.ATTR_K8S_DEPLOYMENT_NAME=R0.ATTR_K8S_CLUSTER_NAME=R0.ATTR_HOST_TYPE=R0.ATTR_HOST_NAME=R0.ATTR_HOST_IMAGE_VERSION=R0.ATTR_HOST_IMAGE_NAME=R0.ATTR_HOST_IMAGE_ID=R0.ATTR_HOST_ID=R0.ATTR_HOST_ARCH=R0.ATTR_CONTAINER_NAME=R0.ATTR_CONTAINER_IMAGE_TAGS=R0.ATTR_CONTAINER_IMAGE_NAME=R0.ATTR_CONTAINER_ID=R0.ATTR_CLOUD_REGION=R0.ATTR_CLOUD_PROVIDER=R0.ATTR_CLOUD_AVAILABILITY_ZONE=R0.ATTR_CLOUD_ACCOUNT_ID=void 0;R0.ATTR_CLOUD_ACCOUNT_ID="cloud.account.id";R0.ATTR_CLOUD_AVAILABILITY_ZONE="cloud.availability_zone";R0.ATTR_CLOUD_PROVIDER="cloud.provider";R0.ATTR_CLOUD_REGION="cloud.region";R0.ATTR_CONTAINER_ID="container.id";R0.ATTR_CONTAINER_IMAGE_NAME="container.image.name";R0.ATTR_CONTAINER_IMAGE_TAGS="container.image.tags";R0.ATTR_CONTAINER_NAME="container.name";R0.ATTR_HOST_ARCH="host.arch";R0.ATTR_HOST_ID="host.id";R0.ATTR_HOST_IMAGE_ID="host.image.id";R0.ATTR_HOST_IMAGE_NAME="host.image.name";R0.ATTR_HOST_IMAGE_VERSION="host.image.version";R0.ATTR_HOST_NAME="host.name";R0.ATTR_HOST_TYPE="host.type";R0.ATTR_K8S_CLUSTER_NAME="k8s.cluster.name";R0.ATTR_K8S_DEPLOYMENT_NAME="k8s.deployment.name";R0.ATTR_K8S_NAMESPACE_NAME="k8s.namespace.name";R0.ATTR_K8S_POD_NAME="k8s.pod.name";R0.ATTR_OS_TYPE="os.type";R0.ATTR_OS_VERSION="os.version";R0.ATTR_PROCESS_COMMAND="process.command";R0.ATTR_PROCESS_COMMAND_ARGS="process.command_args";R0.ATTR_PROCESS_EXECUTABLE_NAME="process.executable.name";R0.ATTR_PROCESS_EXECUTABLE_PATH="process.executable.path";R0.ATTR_PROCESS_OWNER="process.owner";R0.ATTR_PROCESS_PID="process.pid";R0.ATTR_PROCESS_RUNTIME_DESCRIPTION="process.runtime.description";R0.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name";R0.ATTR_PROCESS_RUNTIME_VERSION="process.runtime.version";R0.ATTR_SERVICE_INSTANCE_ID="service.instance.id";R0.ATTR_SERVICE_NAMESPACE="service.namespace";R0.ATTR_WEBENGINE_DESCRIPTION="webengine.description";R0.ATTR_WEBENGINE_NAME="webengine.name";R0.ATTR_WEBENGINE_VERSION="webengine.version"});var y0=X((k0)=>{Object.defineProperty(k0,"__esModule",{value:!0});k0.getMachineId=void 0;var n9=L("process"),b;async function p9(){if(!b)switch(n9.platform){case"darwin":b=(await import("./chunk-b4knxpqh.js").then((m)=>w(m.default))).getMachineId;break;case"linux":b=(await import("./chunk-2swch6mx.js").then((m)=>w(m.default))).getMachineId;break;case"freebsd":b=(await import("./chunk-ebcdxmdd.js").then((m)=>w(m.default))).getMachineId;break;case"win32":b=(await import("./chunk-6styp5dn.js").then((m)=>w(m.default))).getMachineId;break;default:b=(await import("./chunk-jgjnz82k.js").then((m)=>w(m.default))).getMachineId;break}return b()}k0.getMachineId=p9});var dq=X((T0)=>{Object.defineProperty(T0,"__esModule",{value:!0});T0.normalizeType=T0.normalizeArch=void 0;var s9=(q)=>{switch(q){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return q}};T0.normalizeArch=s9;var a9=(q)=>{switch(q){case"sunos":return"solaris";case"win32":return"windows";default:return q}};T0.normalizeType=a9});var x0=X((g0)=>{Object.defineProperty(g0,"__esModule",{value:!0});g0.hostDetector=void 0;var vq=c(),v0=L("os"),r9=y0(),t9=dq();class _0{detect(q){return{attributes:{[vq.ATTR_HOST_NAME]:(0,v0.hostname)(),[vq.ATTR_HOST_ARCH]:(0,t9.normalizeArch)((0,v0.arch)()),[vq.ATTR_HOST_ID]:(0,r9.getMachineId)()}}}}g0.hostDetector=new _0});var p0=X((i0)=>{Object.defineProperty(i0,"__esModule",{value:!0});i0.osDetector=void 0;var u0=c(),l0=L("os"),e9=dq();class c0{detect(q){return{attributes:{[u0.ATTR_OS_TYPE]:(0,e9.normalizeType)((0,l0.platform)()),[u0.ATTR_OS_VERSION]:(0,l0.release)()}}}}i0.osDetector=new c0});var r0=X((a0)=>{Object.defineProperty(a0,"__esModule",{value:!0});a0.processDetector=void 0;var q$=H(),j=c(),J$=L("os");class s0{detect(q){let J={[j.ATTR_PROCESS_PID]:process.pid,[j.ATTR_PROCESS_EXECUTABLE_NAME]:process.title,[j.ATTR_PROCESS_EXECUTABLE_PATH]:process.execPath,[j.ATTR_PROCESS_COMMAND_ARGS]:[process.argv[0],...process.execArgv,...process.argv.slice(1)],[j.ATTR_PROCESS_RUNTIME_VERSION]:process.versions.node,[j.ATTR_PROCESS_RUNTIME_NAME]:"nodejs",[j.ATTR_PROCESS_RUNTIME_DESCRIPTION]:"Node.js"};if(process.argv.length>1)J[j.ATTR_PROCESS_COMMAND]=process.argv[1];try{let Z=J$.userInfo();J[j.ATTR_PROCESS_OWNER]=Z.username}catch(Z){q$.diag.debug(`error obtaining process owner: ${Z}`)}return{attributes:J}}}a0.processDetector=new s0});var J5=X((e0)=>{Object.defineProperty(e0,"__esModule",{value:!0});e0.serviceInstanceIdDetector=void 0;var Z$=c(),$$=L("crypto");class t0{detect(q){return{attributes:{[Z$.ATTR_SERVICE_INSTANCE_ID]:(0,$$.randomUUID)()}}}}e0.serviceInstanceIdDetector=new t0});var Z5=X((y)=>{Object.defineProperty(y,"__esModule",{value:!0});y.serviceInstanceIdDetector=y.processDetector=y.osDetector=y.hostDetector=void 0;var Q$=x0();Object.defineProperty(y,"hostDetector",{enumerable:!0,get:function(){return Q$.hostDetector}});var z$=p0();Object.defineProperty(y,"osDetector",{enumerable:!0,get:function(){return z$.osDetector}});var X$=r0();Object.defineProperty(y,"processDetector",{enumerable:!0,get:function(){return X$.processDetector}});var B$=J5();Object.defineProperty(y,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return B$.serviceInstanceIdDetector}})});var $5=X((T)=>{Object.defineProperty(T,"__esModule",{value:!0});T.serviceInstanceIdDetector=T.processDetector=T.osDetector=T.hostDetector=void 0;var Bq=Z5();Object.defineProperty(T,"hostDetector",{enumerable:!0,get:function(){return Bq.hostDetector}});Object.defineProperty(T,"osDetector",{enumerable:!0,get:function(){return Bq.osDetector}});Object.defineProperty(T,"processDetector",{enumerable:!0,get:function(){return Bq.processDetector}});Object.defineProperty(T,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return Bq.serviceInstanceIdDetector}})});var X5=X((Q5)=>{Object.defineProperty(Q5,"__esModule",{value:!0});Q5.noopDetector=Q5.NoopDetector=void 0;class _q{detect(){return{attributes:{}}}}Q5.NoopDetector=_q;Q5.noopDetector=new _q});var B5=X((M)=>{Object.defineProperty(M,"__esModule",{value:!0});M.noopDetector=M.serviceInstanceIdDetector=M.processDetector=M.osDetector=M.hostDetector=M.envDetector=void 0;var K$=E0();Object.defineProperty(M,"envDetector",{enumerable:!0,get:function(){return K$.envDetector}});var Wq=$5();Object.defineProperty(M,"hostDetector",{enumerable:!0,get:function(){return Wq.hostDetector}});Object.defineProperty(M,"osDetector",{enumerable:!0,get:function(){return Wq.osDetector}});Object.defineProperty(M,"processDetector",{enumerable:!0,get:function(){return Wq.processDetector}});Object.defineProperty(M,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return Wq.serviceInstanceIdDetector}});var F$=X5();Object.defineProperty(M,"noopDetector",{enumerable:!0,get:function(){return F$.noopDetector}})});var W5=X((N)=>{Object.defineProperty(N,"__esModule",{value:!0});N.defaultServiceName=N.emptyResource=N.defaultResource=N.resourceFromAttributes=N.serviceInstanceIdDetector=N.processDetector=N.osDetector=N.hostDetector=N.envDetector=N.detectResources=void 0;var V$=I0();Object.defineProperty(N,"detectResources",{enumerable:!0,get:function(){return V$.detectResources}});var i=B5();Object.defineProperty(N,"envDetector",{enumerable:!0,get:function(){return i.envDetector}});Object.defineProperty(N,"hostDetector",{enumerable:!0,get:function(){return i.hostDetector}});Object.defineProperty(N,"osDetector",{enumerable:!0,get:function(){return i.osDetector}});Object.defineProperty(N,"processDetector",{enumerable:!0,get:function(){return i.processDetector}});Object.defineProperty(N,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return i.serviceInstanceIdDetector}});var gq=yq();Object.defineProperty(N,"resourceFromAttributes",{enumerable:!0,get:function(){return gq.resourceFromAttributes}});Object.defineProperty(N,"defaultResource",{enumerable:!0,get:function(){return gq.defaultResource}});Object.defineProperty(N,"emptyResource",{enumerable:!0,get:function(){return gq.emptyResource}});var D$=bq();Object.defineProperty(N,"defaultServiceName",{enumerable:!0,get:function(){return D$.defaultServiceName}})});var Gq=w(W5(),1),V=w(v(),1);class p extends k()("@effect/opentelemetry/Resource"){}var t7=(q)=>{let J={...q.attributes??void 0,[V.ATTR_SERVICE_NAME]:q.serviceName,[V.ATTR_TELEMETRY_SDK_NAME]:"@effect/opentelemetry",[V.ATTR_TELEMETRY_SDK_LANGUAGE]:typeof globalThis.document>"u"?V.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:V.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS};if(q.serviceVersion)J[V.ATTR_SERVICE_VERSION]=q.serviceVersion;return J},e7=(q)=>n(p,Yq(function*(){let J=yield*V5(mq("OTEL_SERVICE_NAME")),Z=yield*mq("OTEL_RESOURCE_ATTRIBUTES").pipe(H5(""),F5(($)=>{let Q=$.split(",");return Y5(Q,{},(B,W)=>{let K=W.split("=");if(K.length!==2)return B;return B[K[0].trim()]=K[1].trim(),B})}));if(J._tag==="Some")Z[V.ATTR_SERVICE_NAME]=J.value;if(q)Object.assign(Z,q);return Gq.resourceFromAttributes(Z)}).pipe(K5)),q1=G5(p,Gq.emptyResource());var G=w(H(),1),Vq=w(v(),1);var D5=BigInt(1e9),Kq=(q)=>{return[Number(q/D5),Number(q%D5)]},Fq=(q)=>{let J={};for(let[Z,$]of Object.entries(q))J[Z]=xq($);return J},xq=(q)=>{if(typeof q==="string"||typeof q==="number"||typeof q==="boolean")return q;else if(typeof q==="bigint")return q.toString();return N5(q)};class pq extends k()("@effect/opentelemetry/Tracer"){}class R5 extends k()("@effect/opentelemetry/Tracer/OtelTracerProvider"){}class lq extends k()("@effect/opentelemetry/Tracer/OtelTraceFlags"){}class cq extends k()("@effect/opentelemetry/Tracer/OtelTraceState"){}var w$=h5(E5(pq),(q)=>j5({span(J){return new sq(G.context,G.trace,q,J)},context(J,Z){let $=Z.currentSpan;if($===void 0)return J["~effect/Effect/evaluate"](Z);return G.context.with(k5(G.context.active(),$),()=>J["~effect/Effect/evaluate"](Z))}}));var j$=n(pq,Yq(function*(){let q=yield*p;return(yield*R5).getTracer(q.attributes[Vq.ATTR_SERVICE_NAME],q.attributes[Vq.ATTR_SERVICE_VERSION])}));var C$=n(M5,w$),O1=C$.pipe(f5(j$));var uq="~@effect/opentelemetry/Tracer/OtelSpan",M$={internal:G.SpanKind.INTERNAL,client:G.SpanKind.CLIENT,server:G.SpanKind.SERVER,producer:G.SpanKind.PRODUCER,consumer:G.SpanKind.CONSUMER};class sq{[uq];_tag="Span";name;kind;annotations;links;span;spanId;traceId;attributes=new Map;sampled;parent;status;constructor(q,J,Z,$){this[uq]=uq,this.name=$.name,this.annotations=$.annotations,this.links=$.links,this.kind=$.kind;let Q=q.active();this.parent=$.root!==!0?w5($.parent,()=>P$(J,Q,$.annotations)):$.parent,this.span=Z.startSpan($.name,{startTime:Kq($.startTime),links:$.links.length>0?$.links.map((W)=>({context:iq(W.span),attributes:Fq(W.attributes)})):void 0,kind:M$[this.kind]},O5(this.parent)?k5(Q,this.parent.value,$.annotations):G.trace.deleteSpan(Q));let B=this.span.spanContext();this.spanId=B.spanId,this.traceId=B.traceId,this.status={_tag:"Started",startTime:$.startTime},this.sampled=I$(B.traceFlags)}attribute(q,J){this.span.setAttribute(q,xq(J)),this.attributes.set(q,J)}addLinks(q){this.links.push(...q),this.span.addLinks(q.map((J)=>({context:iq(J.span),attributes:Fq(J.attributes)})))}end(q,J){let Z=Kq(q);if(this.status={_tag:"Ended",endTime:q,exit:J,startTime:this.status.startTime},J._tag==="Success")this.span.setStatus({code:G.SpanStatusCode.OK});else if(I5(J.cause))this.span.setStatus({code:G.SpanStatusCode.OK,message:A5(J.cause)}),this.span.setAttribute("span.label","\u26A0\uFE0E Interrupted"),this.span.setAttribute("status.interrupted",!0);else{let $=P5(J.cause);if($.length>0){for(let Q of $)this.span.recordException(Q,Z);this.span.setStatus({code:G.SpanStatusCode.ERROR,message:$[0].message})}else this.span.setStatus({code:G.SpanStatusCode.OK})}this.span.end(Z)}event(q,J,Z){this.span.addEvent(q,Z?Fq(Z):void 0,Kq(J))}}var I$=(q)=>(q&G.TraceFlags.SAMPLED)===G.TraceFlags.SAMPLED,P$=(q,J,Z)=>{let $=q.getSpan(J)?.spanContext();if(!$)return L5();return U5(C5({spanId:$.spanId,traceId:$.traceId,sampled:($.traceFlags&1)===1,annotations:Z}))},iq=(q,J)=>{let Z=A$(q,J),$=f$(q,J);return{spanId:q.spanId,traceId:q.traceId,isRemote:q._tag==="ExternalSpan",traceFlags:Z,traceState:$}},A$=(q,J)=>{let Z;if(Hq(J)){if(Z=b5(q,J,lq),nq(Z))Z=s(q.annotations,lq)}return Z??G.TraceFlags.SAMPLED},f$=(q,J)=>{let Z;if(Hq(J)){if(Z=b5(q,J,cq),nq(Z))Z=s(q.annotations,cq)}return Z},b5=(q,J,Z)=>{let $=s(J,Z);if(Hq($))return $;return s(q.annotations,Z)},k5=(q,J,Z)=>J instanceof sq?G.trace.setSpan(q,J.span):G.trace.setSpanContext(q,iq(J,Z));
3
- export{Rq as Sr,W5 as Tr,Kq as Ur,xq as Vr,p as Wr,t7 as Xr,e7 as Yr,q1 as Zr,pq as _r,R5 as $r,O1 as as};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{bp as E,cp as e,dp as I}from"./chunk-eva3nqqb.js";import{Ap as _0,Bp as O0,Cp as G,Dp as Z0,fp as b,hp as g,ip as n,lp as i,mp as x}from"./chunk-yprmd5b7.js";import{Kp as p}from"./chunk-keveg5gx.js";import{Ct as c,nu as T,ou as X,st as t,vt as y,xt as A,xu as q}from"./chunk-tns5x4w0.js";import{Nu as d,Ru as Q,yu as s}from"./chunk-e7v9trve.js";import{Tu as w}from"./chunk-m4j7jyrd.js";import{OI as B,YD as v,bK as a,lG as o,oO as M}from"./chunk-a0rp7gh4.js";import{aQ as F}from"./chunk-3k2b05fv.js";var h={};F(h,{waitForDependencies:()=>R0,layer:()=>$0,get:()=>C0,defaultLayer:()=>j0,TuiConfig:()=>h,Service:()=>C,Info:()=>W0});import r from"path";var D={};F(D,{Keybinds:()=>Q0,ConfigKeybinds:()=>D});var _=(O,Z)=>M.String.pipe(M.optional,M.withDecodingDefault(B.succeed(O))).annotate({description:Z}),B0=process.platform==="win32"?"ctrl+z,ctrl+-,super+z":"ctrl+-,super+z",K0=M.Struct({leader:_("ctrl+x","Leader key for keybind combinations"),app_exit:_("ctrl+c,ctrl+d,<leader>q","Exit the application"),editor_open:_("<leader>e","Open external editor"),theme_list:_("<leader>t","List available themes"),sidebar_toggle:_("<leader>b","Toggle sidebar"),scrollbar_toggle:_("none","Toggle session scrollbar"),status_view:_("<leader>s","View status"),session_export:_("<leader>x","Export session to editor"),session_new:_("<leader>n","Create a new session"),session_list:_("<leader>l","List all sessions"),session_timeline:_("<leader>g","Show session timeline"),session_fork:_("none","Fork session from message"),session_rename:_("ctrl+r","Rename session"),session_delete:_("ctrl+d","Delete session"),stash_delete:_("ctrl+d","Delete stash entry"),model_provider_list:_("ctrl+a","Open provider list from model dialog"),model_favorite_toggle:_("ctrl+f","Toggle model favorite status"),session_share:_("none","Share current session"),session_unshare:_("none","Unshare current session"),session_interrupt:_("escape","Interrupt current session"),session_compact:_("<leader>c","Compact the session"),messages_page_up:_("pageup,ctrl+alt+b","Scroll messages up by one page"),messages_page_down:_("pagedown,ctrl+alt+f","Scroll messages down by one page"),messages_line_up:_("ctrl+alt+y","Scroll messages up by one line"),messages_line_down:_("ctrl+alt+e","Scroll messages down by one line"),messages_half_page_up:_("ctrl+alt+u","Scroll messages up by half page"),messages_half_page_down:_("ctrl+alt+d","Scroll messages down by half page"),messages_first:_("ctrl+g,home","Navigate to first message"),messages_last:_("ctrl+alt+g,end","Navigate to last message"),messages_next:_("none","Navigate to next message"),messages_previous:_("none","Navigate to previous message"),messages_last_user:_("none","Navigate to last user message"),messages_copy:_("<leader>y","Copy message"),messages_undo:_("<leader>u","Undo message"),messages_redo:_("<leader>r","Redo message"),messages_toggle_conceal:_("<leader>h","Toggle code block concealment in messages"),tool_details:_("none","Toggle tool details visibility"),model_list:_("<leader>m","List available models"),model_cycle_recent:_("f2","Next recently used model"),model_cycle_recent_reverse:_("shift+f2","Previous recently used model"),model_cycle_favorite:_("none","Next favorite model"),model_cycle_favorite_reverse:_("none","Previous favorite model"),command_list:_("ctrl+p","List available commands"),agent_list:_("<leader>a","List agents"),agent_cycle:_("ctrl+space","Next agent"),agent_cycle_reverse:_("none","Previous agent"),variant_cycle:_("ctrl+t","Cycle model variants"),variant_list:_("none","List model variants"),input_clear:_("ctrl+c","Clear input field"),input_paste:_("super+v,ctrl+v","Paste from clipboard"),input_submit:_("return","Submit input"),input_newline:_("shift+return,ctrl+return,alt+return,ctrl+j","Insert newline in input"),input_move_left:_("left,ctrl+b","Move cursor left in input"),input_move_right:_("right,ctrl+f","Move cursor right in input"),input_move_up:_("up","Move cursor up in input"),input_move_down:_("down","Move cursor down in input"),input_select_left:_("shift+left","Select left in input"),input_select_right:_("shift+right","Select right in input"),input_select_up:_("shift+up","Select up in input"),input_select_down:_("shift+down","Select down in input"),input_line_home:_("ctrl+a","Move to start of line in input"),input_line_end:_("ctrl+e","Move to end of line in input"),input_select_line_home:_("ctrl+shift+a","Select to start of line in input"),input_select_line_end:_("ctrl+shift+e","Select to end of line in input"),input_visual_line_home:_("alt+a","Move to start of visual line in input"),input_visual_line_end:_("alt+e","Move to end of visual line in input"),input_select_visual_line_home:_("alt+shift+a","Select to start of visual line in input"),input_select_visual_line_end:_("alt+shift+e","Select to end of visual line in input"),input_buffer_home:_("home","Move to start of buffer in input"),input_buffer_end:_("end","Move to end of buffer in input"),input_select_buffer_home:_("shift+home","Select to start of buffer in input"),input_select_buffer_end:_("shift+end","Select to end of buffer in input"),input_delete_line:_("ctrl+shift+d","Delete line in input"),input_delete_to_line_end:_("ctrl+k","Delete to end of line in input"),input_delete_to_line_start:_("ctrl+u","Delete to start of line in input"),input_backspace:_("backspace,shift+backspace","Backspace in input"),input_delete:_("ctrl+d,delete,shift+delete","Delete character in input"),input_undo:_(B0,"Undo in input"),input_redo:_("ctrl+.,super+shift+z","Redo in input"),input_word_forward:_("alt+f,alt+right,ctrl+right","Move word forward in input"),input_word_backward:_("alt+b,alt+left,ctrl+left","Move word backward in input"),input_select_word_forward:_("alt+shift+f,alt+shift+right","Select word forward in input"),input_select_word_backward:_("alt+shift+b,alt+shift+left","Select word backward in input"),input_delete_word_forward:_("alt+d,alt+delete,ctrl+delete","Delete word forward in input"),input_delete_word_backward:_("ctrl+w,ctrl+backspace,alt+backspace","Delete word backward in input"),history_previous:_("up","Previous history item"),history_next:_("down","Next history item"),session_child_first:_("<leader>down","Go to first child session"),session_child_cycle:_("right","Go to next child session"),session_child_cycle_reverse:_("left","Go to previous child session"),session_parent:_("up","Go to parent session"),terminal_suspend:_("ctrl+z","Suspend terminal"),terminal_title_toggle:_("none","Toggle terminal title"),tips_toggle:_("<leader>h","Toggle tips on home screen"),plugin_manager:_("none","Open plugin manager dialog"),display_thinking:_("none","Toggle thinking blocks visibility")}).annotate({identifier:"KeybindsConfig"}),Q0=p(K0);var V0=w.object(Object.fromEntries(Object.keys(D.Keybinds.shape).map((O)=>[O,w.string().optional()]))).strict(),R=w.object({scroll_speed:w.number().min(0.001).optional().describe("TUI scroll speed"),scroll_acceleration:w.object({enabled:w.boolean().describe("Enable scroll acceleration")}).optional().describe("Scroll acceleration settings"),diff_style:w.enum(["auto","stacked"]).optional().describe("Control diff rendering style: 'auto' adapts to terminal width, 'stacked' always shows single column"),mouse:w.boolean().optional().describe("Enable or disable mouse capture (default: true on desktop, false on Android/Termux)"),accessible:w.boolean().optional().describe("Screen-reader friendly mode: linear main-screen rendering, no mouse capture, reduced motion, no sound (default: false)"),reduce_motion:w.boolean().optional().describe("Disable spinners and other animations, showing static text instead (default: false)"),sound:w.boolean().optional().describe("Enable or disable sound cues (default: true)"),announcements:w.enum(["quiet","normal","verbose"]).optional().describe("Verbosity of accessible-mode screen-reader announcements: 'quiet' announces only turn boundaries, errors, and stops; 'normal' adds tool-start lines; 'verbose' adds tool-completion lines (default: normal). Errors are always announced.")}),P=w.object({$schema:w.string().optional(),theme:w.string().optional(),keybinds:V0.optional(),plugin:I.Spec.zod.array().optional(),plugin_enabled:w.record(w.string(),w.boolean()).optional()}).extend(R.shape).strict();var H=q.create({service:"tui.migrate"}),Y0="https://qitqode.com/tui.json",D0=P.shape.theme.optional(),l=w.record(w.string(),w.unknown()).optional(),H0=w.object({scroll_speed:R.shape.scroll_speed.catch(void 0),scroll_acceleration:R.shape.scroll_acceleration.catch(void 0),diff_style:R.shape.diff_style.catch(void 0)}).strip();async function k(O){let Z=await G0(O);for(let W of Z){let j=await Q.readText(W).catch((m)=>{H.warn("failed to read config for tui migration",{path:W,error:m});return});if(!j)continue;let V=[],K=b(j,V,{allowTrailingComma:!0});if(V.length||!K||typeof K!=="object"||Array.isArray(K))continue;let $=D0.safeParse("theme"in K?K.theme:void 0),J=l.safeParse("keybinds"in K?K.keybinds:void 0),N=l.safeParse("tui"in K?K.tui:void 0),Y={theme:$.success?$.data:void 0,keybinds:J.success?J.data:void 0,tui:N.success?N.data:void 0},L=Y.tui?J0(Y.tui):void 0;if(Y.theme===void 0&&Y.keybinds===void 0&&!L)continue;let U=r.join(r.dirname(W),"tui.json");if(await Q.exists(U))continue;let z={$schema:Y0};if(Y.theme!==void 0)z.theme=Y.theme;if(Y.keybinds!==void 0)z.keybinds=Y.keybinds;if(L)Object.assign(z,L);if(!await Q.write(U,JSON.stringify(z,null,2)).then(()=>!0).catch((m)=>{return H.warn("failed to write tui migration target",{from:W,to:U,error:m}),!1}))continue;if(!await A0(W,j)){H.warn("tui config migrated but source file was not stripped",{from:W,to:U});continue}H.info("migrated tui config",{from:W,to:U})}}function J0(O){let Z=H0.parse(O);if(Z.scroll_speed===void 0&&Z.diff_style===void 0&&Z.scroll_acceleration===void 0)return;return Z}async function A0(O,Z){let W=O+".tui-migration.bak";if(!(await Q.exists(W)?!0:await Q.write(W,Z).then(()=>!0).catch(($)=>{return H.warn("failed to backup source config during tui migration",{path:O,backup:W,error:$}),!1})))return!1;let K=["theme","keybinds","tui"].reduce(($,J)=>{let N=g($,[J],void 0,{formattingOptions:{insertSpaces:!0,tabSize:2}});if(!N.length)return $;return n($,N)},Z);return Q.write(O,K).then(()=>{return H.info("stripped tui keys from server config",{path:O,backup:W}),!0}).catch(($)=>{return H.warn("failed to strip legacy tui keys from server config",{path:O,backup:W,error:$}),!1})}async function G0(O){let Z=[...G(T.Path.config,"qitqode"),...await Q.findUp(["qitqode.json","qitqode.jsonc"],O.cwd,void 0,{rootFirst:!0})];for(let j of A(O.directories))Z.push(...G(j,"qitqode"));if(X.QITQODE_CONFIG)Z.push(X.QITQODE_CONFIG);return(await Promise.all(A(Z).map(async(j)=>{return await Q.exists(j)?j:void 0}))).filter((j)=>!!j)}var f=v.Reference("CurrentWorkingDirectory",{defaultValue:()=>process.cwd()});var u=q.create({service:"tui.config"}),W0=P;class C extends v.Service()("@qitqode/TuiConfig"){}function N0(O,Z){if(Q.contains(Z.directory,O))return"local";return"global"}function U0(O){let Z={...O};if(!("tui"in Z))return Z;if(!s(Z.tui))return delete Z.tui,Z;let W=Z.tui;return delete Z.tui,{...W,...Z}}async function M0(O,Z){if(!O.plugin)return O;for(let W=0;W<O.plugin.length;W++)O.plugin[W]=await I.resolvePluginSpec(O.plugin[W],Z);return O}async function S(O,Z,W){let j=await z0(Z);if(O.result=c(O.result,j),!j.plugin?.length)return;let V=N0(Z,W),K=I.deduplicatePluginOrigins([...O.result.plugin_origins??[],...j.plugin.map(($)=>({spec:$,scope:V,source:Z}))]);O.result.plugin=K.map(($)=>$.spec),O.result.plugin_origins=K}var I0=B.fn("TuiConfig.loadState")(function*(O){let Z=yield*O0(O.directory);yield*B.promise(()=>k({directories:Z,cwd:O.directory}));let W=X.QITQODE_DISABLE_PROJECT_CONFIG?[]:yield*_0("tui",O.directory),j={result:{}};for(let $ of G(T.Path.config,"tui"))yield*B.promise(()=>S(j,$,O)).pipe(B.orDie);if(X.QITQODE_TUI_CONFIG){let $=X.QITQODE_TUI_CONFIG;yield*B.promise(()=>S(j,$,O)).pipe(B.orDie),u.debug("loaded custom tui config",{path:$})}for(let $ of W)yield*B.promise(()=>S(j,$,O)).pipe(B.orDie);let V=A(Z).filter(($)=>$.endsWith(".qitqode")||$===X.QITQODE_CONFIG_DIR);for(let $ of V){if(!$.endsWith(".qitqode")&&$!==X.QITQODE_CONFIG_DIR)continue;for(let J of G($,"tui"))yield*B.promise(()=>S(j,J,O)).pipe(B.orDie)}let K={...j.result.keybinds??{}};if(process.platform==="win32")K.terminal_suspend="none",K.input_undo??=A(["ctrl+z",...D.Keybinds.shape.input_undo.parse(void 0).split(",")]).join(",");return j.result.keybinds=D.Keybinds.parse(K),{config:j.result,dirs:j.result.plugin?.length?V:[]}}),$0=o.effect(C,B.gen(function*(){let O=yield*f,Z=yield*x.Service,W=yield*I0({directory:O}),j=yield*B.forEach(W.dirs,($)=>Z.install($,{add:[{name:"@qitqode/plugin",version:y?void 0:t}]}).pipe(B.forkScoped),{concurrency:"unbounded"}),V=B.fn("TuiConfig.get")(()=>B.succeed(W.config)),K=B.fn("TuiConfig.waitForDependencies")(()=>B.forEach(j,a.join,{concurrency:"unbounded"}).pipe(B.ignore(),B.asVoid));return C.of({get:V,waitForDependencies:K})}).pipe(B.withSpan("TuiConfig.layer"))),j0=$0.pipe(o.provide(x.defaultLayer),o.provide(d.defaultLayer)),{runPromise:w0}=i(C,j0);async function R0(){await w0((O)=>O.waitForDependencies())}async function C0(){return w0((O)=>O.get())}async function z0(O){let Z=await Z0(O);if(!Z)return{};return P0(Z,O).catch((W)=>{return u.warn("failed to load tui config",{path:O,error:W}),{}})}async function P0(O,Z){return e.substitute({text:O,type:"path",path:Z,missing:"empty"}).then((W)=>E.jsonc(W,Z)).then((W)=>{if(!s(W))return{};return E.schema(W0,U0(W),Z)}).then((W)=>M0(W,Z)).catch((W)=>{return u.warn("invalid tui config",{path:Z,error:W}),{}})}
3
- export{W0 as u,C as v,$0 as w,j0 as x,R0 as y,C0 as z,h as A};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{of as h}from"./chunk-gy0wm7e1.js";import"./chunk-z8gdmvgg.js";import"./chunk-kwx9ewe0.js";import"./chunk-cqtkxwd8.js";import"./chunk-c5pb87yf.js";import"./chunk-gmzrvxnv.js";import"./chunk-mpygdb5a.js";import"./chunk-3k2b05fv.js";var v=(q)=>{return h({baseURL:"https://gateway.ai.cloudflare.com/v1/compat",name:"Unified",...q||{}})},x=v();export{x as unified,v as createUnified};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-3k2b05fv.js";var F="./tree-sitter-markdown-411r6y9b.wasm";export{F as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ed as d}from"./chunk-aa8hymcv.js";import{Rd as f}from"./chunk-yajd975f.js";import{Vf as e}from"./chunk-p9cnzxb8.js";import{gh as l}from"./chunk-5e4fxy99.js";import"./chunk-8vg4fmg2.js";import"./chunk-zfcp509b.js";import"./chunk-yp5bypsp.js";import"./chunk-7hm0c2yg.js";import"./chunk-gj0wt0cy.js";import"./chunk-md8161zd.js";import"./chunk-yk97q51d.js";import{Cl as u,kk as m}from"./chunk-e74efvj2.js";import"./chunk-st5jaszz.js";import"./chunk-a1hzeejj.js";import"./chunk-sjw56r2n.js";import"./chunk-nj4d554m.js";import"./chunk-eva3nqqb.js";import"./chunk-yprmd5b7.js";import"./chunk-snr44en9.js";import"./chunk-keveg5gx.js";import"./chunk-f3bnn9rf.js";import"./chunk-xqdrr7xg.js";import"./chunk-axdzm75h.js";import"./chunk-94pcpztx.js";import"./chunk-hw5qyht3.js";import"./chunk-z8gdmvgg.js";import"./chunk-kwx9ewe0.js";import"./chunk-cqtkxwd8.js";import"./chunk-c5pb87yf.js";import"./chunk-g6cyhxwg.js";import"./chunk-n96tvjgj.js";import"./chunk-pkc4ddw1.js";import"./chunk-xgr6jnd6.js";import"./chunk-a48t0g95.js";import"./chunk-yqk58hf6.js";import"./chunk-er38zew1.js";import"./chunk-dk975etf.js";import"./chunk-6p94fpbn.js";import"./chunk-fg35hwa0.js";import"./chunk-79agp7v3.js";import"./chunk-kv72hxkp.js";import"./chunk-nj2bbtmx.js";import"./chunk-tns5x4w0.js";import"./chunk-e7v9trve.js";import"./chunk-zh3fny3z.js";import"./chunk-m4j7jyrd.js";import"./chunk-gmzrvxnv.js";import"./chunk-mpygdb5a.js";import"./chunk-wfd5h6ax.js";import"./chunk-a0rp7gh4.js";import"./chunk-kfmz2p27.js";import"./chunk-ee23d2nz.js";import"./chunk-3k2b05fv.js";var v=f({command:"usage [sessionID]",describe:"show per-turn token/cost breakdown for a session (debug/verification tool)",builder:(o)=>{return o.positional("sessionID",{describe:"session ID to inspect (default: most recently updated session)",type:"string"}).option("format",{describe:"output format",type:"string",choices:["table","json"],default:"table"}).option("limit",{describe:"number of most recent turns to show (default: all)",type:"number"})},handler:async(o)=>{await d(process.cwd(),async()=>{let a=o.sessionID?m.make(o.sessionID):[...u.list({roots:!1,limit:1})][0]?.id;if(!a)e.error("No sessions found"),process.exit(1);let p=(await l.runPromise(u.Service.use((s)=>s.messages({sessionID:a,agentID:"*"})))).filter((s)=>s.info.role==="assistant").map((s)=>{let t=s.info,c=s.parts.filter((n)=>n.type==="step-finish");return{messageID:t.id,provider:t.providerID,model:t.modelID,finish:t.finish,cost:t.cost??0,tokens:t.tokens??{input:0,output:0,reasoning:0,cache:{read:0,write:0}},steps:c.map((n)=>({cost:n.cost,tokens:n.tokens}))}}),r=o.limit?p.slice(-o.limit):p;if(r.length===0){e.println("No assistant turns found for this session");return}if(o.format==="json"){console.log(JSON.stringify({sessionID:a,turns:r},null,2));return}e.println(`Session ${a} \u2014 ${r.length} turn(s)`),e.println("");for(let s of r){let t=s.tokens,c=t.input+t.cache.read+t.cache.write,n=t.output+t.reasoning;if(e.println(`${s.messageID} ${s.provider}/${s.model} finish=${s.finish??"-"}`),e.println(` tokens input=${t.input} cache.read=${t.cache.read} cache.write=${t.cache.write} output=${t.output} reasoning=${t.reasoning} (in=${c} out=${n})`),e.println(` cost $${s.cost.toFixed(6)}`),s.steps.length>1)e.println(` steps ${s.steps.length}`),s.steps.forEach((i,g)=>{e.println(` [${g}] input=${i.tokens.input} output=${i.tokens.output} cache.read=${i.tokens.cache.read} cache.write=${i.tokens.cache.write} reasoning=${i.tokens.reasoning} cost=$${i.cost.toFixed(6)}`)});e.println("")}let h=r.reduce((s,t)=>s+t.cost,0);e.println(`Total cost for shown turns: $${h.toFixed(6)}`),e.println("(source: Session.getUsage(), same numbers persisted to the message record \u2014 see session.usage log tag)")})}});export{v as UsageCommand};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ji as f,ki as q,li as w,mi as x}from"./chunk-7hm0c2yg.js";import"./chunk-3k2b05fv.js";export{w as applyModuleEvalRuntimeOptions,q as applyBaseRuntimeOptions,x as QuickJSWASMModule,f as QuickJSModuleCallbacks};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{i as P,j as g,k as b,l as h,m as O}from"./chunk-1pg6pv0m.js";import"./chunk-x66ycpfs.js";import"./chunk-03xppy47.js";import{Rd as u}from"./chunk-yajd975f.js";import{Vf as s}from"./chunk-p9cnzxb8.js";import{gh as f}from"./chunk-5e4fxy99.js";import"./chunk-8vg4fmg2.js";import{ai as E}from"./chunk-zfcp509b.js";import"./chunk-yp5bypsp.js";import"./chunk-7hm0c2yg.js";import"./chunk-gj0wt0cy.js";import"./chunk-md8161zd.js";import"./chunk-yk97q51d.js";import{$j as p,_j as S}from"./chunk-e74efvj2.js";import"./chunk-st5jaszz.js";import"./chunk-a1hzeejj.js";import"./chunk-sjw56r2n.js";import"./chunk-nj4d554m.js";import"./chunk-eva3nqqb.js";import"./chunk-yprmd5b7.js";import"./chunk-snr44en9.js";import"./chunk-keveg5gx.js";import"./chunk-f3bnn9rf.js";import"./chunk-xqdrr7xg.js";import"./chunk-axdzm75h.js";import"./chunk-94pcpztx.js";import"./chunk-hw5qyht3.js";import"./chunk-z8gdmvgg.js";import"./chunk-kwx9ewe0.js";import"./chunk-cqtkxwd8.js";import"./chunk-c5pb87yf.js";import"./chunk-g6cyhxwg.js";import"./chunk-n96tvjgj.js";import"./chunk-pkc4ddw1.js";import"./chunk-xgr6jnd6.js";import"./chunk-a48t0g95.js";import"./chunk-yqk58hf6.js";import"./chunk-er38zew1.js";import"./chunk-dk975etf.js";import"./chunk-6p94fpbn.js";import"./chunk-fg35hwa0.js";import"./chunk-79agp7v3.js";import"./chunk-kv72hxkp.js";import"./chunk-nj2bbtmx.js";import"./chunk-tns5x4w0.js";import"./chunk-e7v9trve.js";import"./chunk-zh3fny3z.js";import"./chunk-m4j7jyrd.js";import"./chunk-gmzrvxnv.js";import"./chunk-mpygdb5a.js";import{wA as I}from"./chunk-wfd5h6ax.js";import{OI as l,TC as d,iE as D}from"./chunk-a0rp7gh4.js";import"./chunk-kfmz2p27.js";import"./chunk-ee23d2nz.js";import"./chunk-3k2b05fv.js";var A=(o)=>l.promise(()=>E(o)),m=(o)=>l.sync(()=>s.println(o)),v=(o)=>s.Style.TEXT_DIM+o+s.Style.TEXT_NORMAL,L=(o)=>o?v(" (active)"):"",w=(o,e)=>`${o.email} ${v(o.url)}${L(e)}`,x=(o,e,t)=>`${e.name} (${o.email})${L(t)}`,C=(o,e,t)=>{let n=t?s.Style.TEXT_SUCCESS+"\u25CF"+s.Style.TEXT_NORMAL:" ",c=t?s.Style.TEXT_HIGHLIGHT_BOLD+e.name+s.Style.TEXT_NORMAL:e.name;return` ${n} ${c} ${v(o.email)} ${v(o.url)} ${v(e.id)}`},T=(o,e)=>d.isSome(o)&&o.value.id===e.accountID&&o.value.active_org_id===e.orgID,_=l.fn("login")(function*(o){let e=yield*p.Service;yield*P("Log in");let t=yield*e.login(o);yield*b.info("Go to: "+t.url),yield*b.info("Enter code: "+t.user),yield*A(t.url);let n=O();yield*n.start("Waiting for authorization...");let c=(r)=>l.gen(function*(){yield*l.sleep(r);let i=yield*e.poll(t);if(i._tag==="PollPending")return yield*c(r);if(i._tag==="PollSlow")return yield*c(D.sum(r,D.seconds(5)));return i}),a=yield*c(t.interval).pipe(l.timeout(t.expiry),l.catchTag("TimeoutError",()=>l.succeed(new S)));yield*I.valueTags(a,{PollSuccess:(r)=>l.gen(function*(){yield*n.stop("Logged in as "+r.email),yield*g("Done")}),PollExpired:()=>n.stop("Device code expired",1),PollDenied:()=>n.stop("Authorization denied",1),PollError:(r)=>n.stop("Error: "+String(r.cause),1),PollPending:()=>n.stop("Unexpected state",1),PollSlow:()=>n.stop("Unexpected state",1)})}),N=l.fn("logout")(function*(o){let e=yield*p.Service,t=yield*e.list();if(t.length===0)return yield*m("Not logged in");if(o){let i=t.find((y)=>y.email===o);if(!i)return yield*m("Account not found: "+o);yield*e.remove(i.id),yield*g("Logged out from "+o);return}let n=yield*e.active(),c=d.map(n,(i)=>i.id);yield*P("Log out");let a=t.map((i)=>{let y=d.isSome(c)&&c.value===i.id;return{value:i,label:w(i,y)}}),r=yield*h({message:"Select account to log out",options:a});if(d.isNone(r))return;yield*e.remove(r.value.id),yield*g("Logged out from "+r.value.email)}),$=l.fn("switch")(function*(){let o=yield*p.Service,e=yield*o.orgsByAccount();if(e.length===0)return yield*m("Not logged in");let t=yield*o.active(),n=e.flatMap((r)=>r.orgs.map((i)=>{let y=T(t,{accountID:r.account.id,orgID:i.id});return{value:{orgID:i.id,accountID:r.account.id,label:i.name},label:x(r.account,i,y)}}));if(n.length===0)return yield*m("No orgs found");yield*P("Switch org");let c=yield*h({message:"Select org",options:n});if(d.isNone(c))return;let a=c.value;yield*o.use(a.accountID,d.some(a.orgID)),yield*g("Switched to "+a.label)}),R=l.fn("orgs")(function*(){let o=yield*p.Service,e=yield*o.orgsByAccount();if(e.length===0)return yield*m("No accounts found");if(!e.some((n)=>n.orgs.length>0))return yield*m("No orgs found");let t=yield*o.active();for(let n of e)for(let c of n.orgs){let a=T(t,{accountID:n.account.id,orgID:c.id});yield*m(C(n.account,c,a))}}),M=l.fn("open")(function*(){let e=yield*(yield*p.Service).active();if(d.isNone(e))return yield*m("No active account");let t=e.value.url;yield*A(t),yield*g("Opened "+t)}),X=u({command:"login <url>",describe:!1,builder:(o)=>o.positional("url",{describe:"server URL",type:"string",demandOption:!0}),async handler(o){s.empty(),await f.runPromise(_(o.url))}}),B=u({command:"logout [email]",describe:!1,builder:(o)=>o.positional("email",{describe:"account email to log out from",type:"string"}),async handler(o){s.empty(),await f.runPromise(N(o.email))}}),U=u({command:"switch",describe:!1,async handler(){s.empty(),await f.runPromise($())}}),G=u({command:"orgs",describe:!1,async handler(){s.empty(),await f.runPromise(R())}}),H=u({command:"open",describe:!1,async handler(){s.empty(),await f.runPromise(M())}}),Y=u({command:"console",describe:!1,builder:(o)=>o.command({...X,describe:"log in to console"}).command({...B,describe:"log out from console"}).command({...U,describe:"switch active org"}).command({...G,describe:"list orgs"}).command({...H,describe:"open active console account"}).demandCommand(),async handler(){}});export{C as formatOrgLine,w as formatAccountLabel,U as SwitchCommand,G as OrgsCommand,H as OpenCommand,B as LogoutCommand,X as LoginCommand,Y as ConsoleCommand};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cQ as t}from"./chunk-3k2b05fv.js";var e=await import("./chunk-2vxx0tax.js",{with:{type:"file"}}),a=e.default;export{a as default};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{O as o}from"./chunk-6p7yg5sr.js";import{P as i}from"./chunk-t3eymzg1.js";import{Ed as p}from"./chunk-aa8hymcv.js";import{Rd as n}from"./chunk-yajd975f.js";import{Vf as B}from"./chunk-p9cnzxb8.js";import{ag as l}from"./chunk-9yrypq1r.js";import"./chunk-tbgczapt.js";import"./chunk-gckgaqqr.js";import"./chunk-srpe3v8e.js";import"./chunk-6y423jax.js";import"./chunk-nfg7nt13.js";import"./chunk-rv1stdvb.js";import"./chunk-9ayxg9mq.js";import{gh as g}from"./chunk-5e4fxy99.js";import{Uh as d}from"./chunk-8vg4fmg2.js";import"./chunk-zfcp509b.js";import"./chunk-yp5bypsp.js";import"./chunk-7hm0c2yg.js";import"./chunk-gj0wt0cy.js";import"./chunk-md8161zd.js";import"./chunk-yk97q51d.js";import{rl as f}from"./chunk-e74efvj2.js";import"./chunk-st5jaszz.js";import"./chunk-a1hzeejj.js";import"./chunk-sjw56r2n.js";import"./chunk-nj4d554m.js";import"./chunk-eva3nqqb.js";import"./chunk-yprmd5b7.js";import"./chunk-snr44en9.js";import"./chunk-keveg5gx.js";import{Mp as D}from"./chunk-f3bnn9rf.js";import"./chunk-xqdrr7xg.js";import"./chunk-axdzm75h.js";import"./chunk-94pcpztx.js";import"./chunk-hw5qyht3.js";import"./chunk-z8gdmvgg.js";import"./chunk-kwx9ewe0.js";import"./chunk-cqtkxwd8.js";import"./chunk-c5pb87yf.js";import"./chunk-g6cyhxwg.js";import"./chunk-n96tvjgj.js";import"./chunk-pkc4ddw1.js";import"./chunk-xgr6jnd6.js";import"./chunk-a48t0g95.js";import"./chunk-yqk58hf6.js";import"./chunk-er38zew1.js";import"./chunk-dk975etf.js";import"./chunk-6p94fpbn.js";import"./chunk-fg35hwa0.js";import"./chunk-79agp7v3.js";import"./chunk-kv72hxkp.js";import"./chunk-nj2bbtmx.js";import{eu as u,ou as I,xu as x}from"./chunk-tns5x4w0.js";import{Ru as y}from"./chunk-e7v9trve.js";import"./chunk-zh3fny3z.js";import"./chunk-m4j7jyrd.js";import"./chunk-gmzrvxnv.js";import"./chunk-mpygdb5a.js";import"./chunk-wfd5h6ax.js";import"./chunk-a0rp7gh4.js";import"./chunk-kfmz2p27.js";import"./chunk-ee23d2nz.js";import"./chunk-3k2b05fv.js";import Q from"path";import{pathToFileURL as a}from"url";import{EOL as O}from"os";function $(j){let K=j.state;return{input:K.input,metadata:"metadata"in K?K.metadata:{},part:j}}function C(j){let K=j.description?B.Style.TEXT_DIM+` ${j.description}`+B.Style.TEXT_NORMAL:"";B.println(B.Style.TEXT_NORMAL+j.icon,B.Style.TEXT_NORMAL+j.title+K)}function b(j,K){if(B.empty(),C(j),!K?.trim())return;B.println(K),B.empty()}function c(j){let K=j.state,V="input"in K?K.input:void 0,Y=("title"in K&&K.title?K.title:void 0)||(V&&typeof V==="object"&&Object.keys(V).length>0?JSON.stringify(V):"Unknown");C({icon:"\u2699",title:`${j.tool} ${Y}`})}function t(j){let K=j.path??"",V=`${j.kind} "${j.pattern}"`,Y=K?`in ${T(K)}`:"",H=j.count===void 0?Y:`${Y}${Y?" \xB7 ":""}${j.count} ${j.count===1?"match":"matches"}`;C({icon:"\u2731",title:V,...H&&{description:H}})}function r(j){t({kind:"Glob",pattern:j.input.pattern,path:j.input.path,count:j.metadata.count})}function jj(j){t({kind:"Grep",pattern:j.input.pattern,path:j.input.path,count:j.metadata.matches})}function Bj(j){let K=T(j.input.filePath),V=Object.entries(j.input).filter(([H,S])=>{if(H==="filePath")return!1;return typeof S==="string"||typeof S==="number"||typeof S==="boolean"}),Y=V.length?`[${V.map(([H,S])=>`${H}=${S}`).join(", ")}]`:void 0;C({icon:"\u2192",title:`Read ${K}`,...Y&&{description:Y}})}function Gj(j){b({icon:"\u2190",title:`Write ${T(j.input.filePath)}`},j.part.state.status==="completed"?j.part.state.output:void 0)}function Jj(j){C({icon:"%",title:`WebFetch ${j.input.url}`})}function Kj(j){let K=T(j.input.filePath),V=j.metadata.diff;b({icon:"\u2190",title:`Edit ${K}`},V)}function Mj(j){C({icon:"\u25C7",title:`Exa Code Search "${j.input.query}"`})}function Nj(j){C({icon:"\u25C8",title:`Web Search "${j.input.query}"`})}function k(j){let K=j.part.state.input?.operation??j.part.state.input,V=j.part.state.status,Y=typeof K?.subagent_type==="string"&&K.subagent_type.trim().length>0?K.subagent_type:"unknown",H=u.titlecase(Y),S=typeof K?.description==="string"&&K.description.trim().length>0?K.description:void 0,w=V==="error"?"\u2717":V==="running"?"\u2022":"\u2713",L=S??`${H} Task`;C({icon:w,title:L,description:S?`${H} Agent`:void 0})}function Vj(j){C({icon:"\u2192",title:`Skill "${j.input.name}"`})}function Xj(j){let K=j.part.state.status==="completed"?j.part.state.output?.trim():void 0;b({icon:"$",title:`${j.input.command}`},K)}function T(j){if(!j)return"";if(Q.isAbsolute(j))return Q.relative(process.cwd(),j)||".";return j}var Tj=n({command:"run [message..]",describe:"run qitqode with a message",builder:(j)=>{return j.positional("message",{describe:"message to send",type:"string",array:!0,default:[]}).option("command",{describe:"the command to run, use message for args",type:"string"}).option("continue",{alias:["c"],describe:"continue the last session",type:"boolean"}).option("session",{alias:["s"],describe:"session id to continue",type:"string"}).option("fork",{describe:"fork the session before continuing (requires --continue or --session)",type:"boolean"}).option("share",{type:"boolean",describe:"share the session"}).option("model",{type:"string",alias:["m"],describe:"model to use in the format of provider/model"}).option("agent",{type:"string",describe:"agent to use"}).option("format",{type:"string",choices:["default","json"],default:"default",describe:"format: default (formatted) or json (raw JSON events)"}).option("file",{alias:["f"],type:"string",array:!0,describe:"file(s) to attach to message"}).option("title",{type:"string",describe:"title for the session (uses truncated prompt if no value provided)"}).option("attach",{type:"string",describe:"attach to a running qitqode server (e.g., http://localhost:4096)"}).option("password",{alias:["p"],type:"string",describe:"basic auth password (defaults to QITQODE_SERVER_PASSWORD)"}).option("dir",{type:"string",describe:"directory to run in, path on remote server if attaching"}).option("port",{type:"number",describe:"port for the local server (defaults to random port if no value provided)"}).option("variant",{type:"string",describe:"model variant (provider-specific reasoning effort, e.g., high, max, minimal)"}).option("thinking",{type:"boolean",describe:"show thinking blocks",default:!1}).option("dangerously-skip-permissions",{type:"boolean",describe:"auto-approve permissions that are not explicitly denied (dangerous!)",default:!1})},handler:async(j)=>{let K=[...j.message,...j["--"]||[]].join(" "),V=(()=>{if(!j.dir)return;if(j.attach)return j.dir;try{return process.chdir(j.dir),process.cwd()}catch{B.error("Failed to change directory to "+j.dir),process.exit(1)}})(),Y=[];if(j.file){let M=Array.isArray(j.file)?j.file:[j.file];for(let X of M){let N=Q.resolve(process.cwd(),X);if(!await y.exists(N))B.error(`File not found: ${X}`),process.exit(1);let W=await y.isDir(N)?"application/x-directory":"text/plain";Y.push({type:"file",url:a(N).href,filename:Q.basename(N),mime:W})}}if(!process.stdin.isTTY)K+=`
3
- `+await Bun.stdin.text();if(K.trim().length===0&&!j.command)B.error("You must provide a message or a command"),process.exit(1);if(j.fork&&!j.continue&&!j.session)B.error("--fork requires --continue or --session"),process.exit(1);let H=[{permission:"question",action:"deny",pattern:"*"},{permission:"plan_enter",action:"deny",pattern:"*"},{permission:"plan_exit",action:"deny",pattern:"*"}];function S(){if(j.title===void 0)return;if(j.title!=="")return j.title;return K.slice(0,50)+(K.length>50?"...":"")}async function w(M){let X=j.continue?(await M.session.list()).data?.find((Z)=>!Z.parentID)?.id:j.session;if(X&&j.fork)return(await M.session.fork({sessionID:X})).data?.id;if(X)return X;let N=S();return(await M.session.create({title:N,permission:H})).data?.id}async function L(M,X){let N=await M.config.get();if(!N.data)return;if(N.data.share!=="auto"&&!I.QITQODE_AUTO_SHARE&&!j.share)return;let W=await M.session.share({sessionID:X}).catch((Z)=>{if(Z instanceof Error&&Z.message.includes("disabled"))B.println(B.Style.TEXT_DANGER_BOLD+"! "+Z.message);return{error:Z}});if(!W.error&&"data"in W&&W.data?.share?.url)B.println(B.Style.TEXT_INFO_BOLD+"~ "+W.data.share.url)}async function h(M){function X(G){try{if(G.tool==="bash")return Xj($(G));if(G.tool==="glob")return r($(G));if(G.tool==="grep")return jj($(G));if(G.tool==="read")return Bj($(G));if(G.tool==="write")return Gj($(G));if(G.tool==="webfetch")return Jj($(G));if(G.tool==="edit")return Kj($(G));if(G.tool==="codesearch")return Mj($(G));if(G.tool==="websearch")return Nj($(G));if(G.tool==="actor")return k($(G));if(G.tool==="skill")return Vj($(G));return c(G)}catch{return c(G)}}function N(G,q){if(j.format==="json")return process.stdout.write(JSON.stringify({type:G,timestamp:Date.now(),sessionID:A,...q})+O),!0;return!1}let W=await M.event.subscribe(),Z;async function e(G){let q=new Map,z=x.create({service:"cli.run"}),E=W.stream[Symbol.asyncIterator](),F=G.completion.then(()=>"DONE");try{while(!0){let P=await Promise.race([E.next(),F]);if(P==="DONE")break;if(P.done)break;let _=P.value;if(G.onEvent(_),z.debug("event received",{type:_.type}),_.type==="message.updated"&&_.properties.info.role==="assistant"&&j.format!=="json"&&q.get("start")!==!0)B.empty(),B.println(`> ${_.properties.info.agent} \xB7 ${_.properties.info.modelID}`),B.empty(),q.set("start",!0);if(_.type==="message.part.updated"){let J=_.properties.part;if(J.sessionID!==A)continue;if(J.type==="tool"&&(J.state.status==="completed"||J.state.status==="error")){if(N("tool_use",{part:J}))continue;if(J.state.status==="completed"){X(J);continue}C({icon:"\u2717",title:`${J.tool} failed`}),B.error(J.state.error)}if(J.type==="tool"&&J.tool==="actor"&&J.state.status==="running"&&j.format!=="json"){if(q.get(J.id)===!0)continue;k($(J)),q.set(J.id,!0)}if(J.type==="step-start"){if(N("step_start",{part:J}))continue}if(J.type==="step-finish"){if(N("step_finish",{part:J}))continue}if(J.type==="text"&&J.time?.end){if(N("text",{part:J}))continue;let R=J.text.trim();if(!R)continue;if(!process.stdout.isTTY){process.stdout.write(R+O);continue}B.empty(),B.println(R),B.empty()}if(J.type==="reasoning"&&J.time?.end&&j.thinking){if(N("reasoning",{part:J}))continue;let R=J.text.trim();if(!R)continue;let U=`Thinking: ${R}`;if(process.stdout.isTTY){B.empty(),B.println(`${B.Style.TEXT_DIM}\x1B[3m${U}\x1B[0m${B.Style.TEXT_NORMAL}`),B.empty();continue}process.stdout.write(U+O)}}if(_.type==="session.error"){let J=_.properties;if(J.sessionID!==A||!J.error)continue;let R=String(J.error.name);if("data"in J.error&&J.error.data&&"message"in J.error.data)R=String(J.error.data.message);if(Z=Z?Z+O+R:R,N("error",{error:J.error}))continue;B.error(R)}if(_.type==="permission.asked"){let J=_.properties;if(J.sessionID!==A)continue;if(j["dangerously-skip-permissions"])await M.permission.reply({requestID:J.id,reply:"once"});else B.println(B.Style.TEXT_WARNING_BOLD+"!",B.Style.TEXT_NORMAL+`permission requested: ${J.permission} (${J.patterns.join(", ")}); auto-rejecting`),await M.permission.reply({requestID:J.id,reply:"reject"})}}}finally{G.stop(),await E.return?.(void 0).catch(()=>{})}}let v=await(async()=>{if(!j.agent)return;let G=j.agent;if(j.attach){let z=await M.app.agents(void 0,{throwOnError:!0}).then((F)=>F.data??[]).catch(()=>{return});if(!z){B.println(B.Style.TEXT_WARNING_BOLD+"!",B.Style.TEXT_NORMAL,`failed to list agents from ${j.attach}. Falling back to default agent`);return}let E=z.find((F)=>F.name===G);if(!E){B.println(B.Style.TEXT_WARNING_BOLD+"!",B.Style.TEXT_NORMAL,`agent "${G}" not found. Falling back to default agent`);return}if(E.mode==="subagent"){B.println(B.Style.TEXT_WARNING_BOLD+"!",B.Style.TEXT_NORMAL,`agent "${G}" is a subagent, not a primary agent. Falling back to default agent`);return}return G}let q=await g.runPromise(d.Service.use((z)=>z.get(G)));if(!q){B.println(B.Style.TEXT_WARNING_BOLD+"!",B.Style.TEXT_NORMAL,`agent "${G}" not found. Falling back to default agent`);return}if(q.mode==="subagent"){B.println(B.Style.TEXT_WARNING_BOLD+"!",B.Style.TEXT_NORMAL,`agent "${G}" is a subagent, not a primary agent. Falling back to default agent`);return}return G})(),A=await w(M);if(!A)B.error("Session not found"),process.exit(1);await L(M,A);let s=x.create({service:"cli.run.poll"}),m=o({sessionID:A,query:async()=>{try{return(await M.session.status()).data?.[A]}catch(G){throw s.debug("session.status query failed",{error:G}),G}}});if(e(m).catch((G)=>{console.error(G),process.exit(1)}),j.command)await M.session.command({sessionID:A,agent:v,model:j.model,command:j.command,arguments:K,variant:j.variant});else{let G=j.model?f.parseModel(j.model):void 0;await M.session.prompt({sessionID:A,agent:v,model:G,variant:j.variant,parts:[...Y,{type:"text",text:K}]})}m.markStarted()}if(j.attach){let M=i({password:j.password}),X=D({baseUrl:j.attach,directory:V,headers:M});return await h(X)}await p(process.cwd(),async()=>{let X=D({baseUrl:"http://qitqode.internal",fetch:async(N,W)=>{let Z=new Request(N,W);return l.Default().app.fetch(Z)}});await h(X)})}});export{Tj as RunCommand};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{bs as X0}from"./chunk-yqk58hf6.js";import{ZP as K}from"./chunk-ee23d2nz.js";import{$P as Y,cQ as tZ}from"./chunk-3k2b05fv.js";var M=Y((Qq)=>{Object.defineProperty(Qq,"__esModule",{value:!0});Qq.isTracingSuppressed=Qq.unsuppressTracing=Qq.suppressTracing=void 0;var VZ=K(),x=(0,VZ.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function OZ(q){return q.setValue(x,!0)}Qq.suppressTracing=OZ;function NZ(q){return q.deleteValue(x)}Qq.unsuppressTracing=NZ;function MZ(q){return q.getValue(x)===!0}Qq.isTracingSuppressed=MZ});var c=Y((Fq)=>{Object.defineProperty(Fq,"__esModule",{value:!0});Fq.BAGGAGE_MAX_TOTAL_LENGTH=Fq.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=Fq.BAGGAGE_MAX_NAME_VALUE_PAIRS=Fq.BAGGAGE_HEADER=Fq.BAGGAGE_ITEMS_SEPARATOR=Fq.BAGGAGE_PROPERTIES_SEPARATOR=Fq.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;Fq.BAGGAGE_KEY_PAIR_SEPARATOR="=";Fq.BAGGAGE_PROPERTIES_SEPARATOR=";";Fq.BAGGAGE_ITEMS_SEPARATOR=",";Fq.BAGGAGE_HEADER="baggage";Fq.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;Fq.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;Fq.BAGGAGE_MAX_TOTAL_LENGTH=8192});var l=Y((Wq)=>{Object.defineProperty(Wq,"__esModule",{value:!0});Wq.parseKeyPairsIntoRecord=Wq.parseBaggageHeaderString=Wq.parsePairKeyValue=Wq.getKeyPairs=Wq.serializeKeyPairs=void 0;var RZ=K(),D=c();function EZ(q){return q.reduce((J,Z)=>{let $=`${J}${J!==""?D.BAGGAGE_ITEMS_SEPARATOR:""}${Z}`;return $.length>D.BAGGAGE_MAX_TOTAL_LENGTH?J:$},"")}Wq.serializeKeyPairs=EZ;function kZ(q){return q.getAllEntries().map(([J,Z])=>{let $=`${encodeURIComponent(J)}=${encodeURIComponent(Z.value)}`;if(Z.metadata!==void 0)$+=D.BAGGAGE_PROPERTIES_SEPARATOR+Z.metadata.toString();return $})}Wq.getKeyPairs=kZ;function u(q){if(!q)return;let J=q.indexOf(D.BAGGAGE_PROPERTIES_SEPARATOR),Z=J===-1?q:q.substring(0,J),$=Z.indexOf(D.BAGGAGE_KEY_PAIR_SEPARATOR);if($<=0)return;let Q=Z.substring(0,$).trim(),F=Z.substring($+1).trim();if(!Q||!F)return;let B,G;try{B=decodeURIComponent(Q),G=decodeURIComponent(F)}catch{return}let W;if(J!==-1&&J<q.length-1){let H=q.substring(J+1);W=(0,RZ.baggageEntryMetadataFromString)(H)}return{key:B,value:G,metadata:W}}Wq.parsePairKeyValue=u;function SZ(q,J,Z,$){let Q=0;while(Q<q.length&&Z<D.BAGGAGE_MAX_NAME_VALUE_PAIRS){let F=q.indexOf(D.BAGGAGE_ITEMS_SEPARATOR,Q),B=F===-1?q.length:F,G=B-Q;if(G<=D.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS){let W=u(q.substring(Q,B));if(W){let H=(Z===0?0:1)+G;if($+H>D.BAGGAGE_MAX_TOTAL_LENGTH)break;J[W.key]=W.metadata?{value:W.value,metadata:W.metadata}:{value:W.value},Z++,$+=H}}if(F===-1)break;Q=F+1}return[Z,$]}Wq.parseBaggageHeaderString=SZ;function dZ(q){let J={};if(typeof q==="string"&&q.length>0)q.split(D.BAGGAGE_ITEMS_SEPARATOR).forEach((Z)=>{let $=u(Z);if($!==void 0&&$.value.length>0)J[$.key]=$.value});return J}Wq.parseKeyPairsIntoRecord=dZ});var Hq=Y((zq)=>{Object.defineProperty(zq,"__esModule",{value:!0});zq.W3CBaggagePropagator=void 0;var n=K(),gZ=M(),A=c(),w=l();class Gq{inject(q,J,Z){let $=n.propagation.getBaggage(q);if(!$||(0,gZ.isTracingSuppressed)(q))return;let Q=(0,w.getKeyPairs)($).filter((B)=>{return B.length<=A.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS}).slice(0,A.BAGGAGE_MAX_NAME_VALUE_PAIRS),F=(0,w.serializeKeyPairs)(Q);if(F.length>0)Z.set(J,A.BAGGAGE_HEADER,F)}extract(q,J,Z){let $=Z.get(J,A.BAGGAGE_HEADER);if(!$)return q;let Q={},F=0,B=0;if(Array.isArray($))for(let G=0;G<$.length;G++)[F,B]=(0,w.parseBaggageHeaderString)($[G],Q,F,B);else[F]=(0,w.parseBaggageHeaderString)($,Q,F,B);if(F===0)return q;return n.propagation.setBaggage(q,n.propagation.createBaggage(Q))}fields(){return[A.BAGGAGE_HEADER]}}zq.W3CBaggagePropagator=Gq});var Iq=Y((fq)=>{Object.defineProperty(fq,"__esModule",{value:!0});fq.AnchoredClock=void 0;class Dq{_monotonicClock;_epochMillis;_performanceMillis;constructor(q,J){this._monotonicClock=J,this._epochMillis=q.now(),this._performanceMillis=J.now()}now(){let q=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+q}}fq.AnchoredClock=Dq});var jq=Y((Aq)=>{Object.defineProperty(Aq,"__esModule",{value:!0});Aq.isAttributeValue=Aq.isAttributeKey=Aq.sanitizeAttributes=void 0;var Vq=K();function mZ(q){let J={};if(typeof q!=="object"||q==null)return J;for(let Z in q){if(!Object.prototype.hasOwnProperty.call(q,Z))continue;if(!Oq(Z)){Vq.diag.warn(`Invalid attribute key: ${Z}`);continue}let $=q[Z];if(!Nq($)){Vq.diag.warn(`Invalid attribute value set for key: ${Z}`);continue}if(Array.isArray($))J[Z]=$.slice();else J[Z]=$}return J}Aq.sanitizeAttributes=mZ;function Oq(q){return typeof q==="string"&&q!==""}Aq.isAttributeKey=Oq;function Nq(q){if(q==null)return!0;if(Array.isArray(q))return xZ(q);return Mq(typeof q)}Aq.isAttributeValue=Nq;function xZ(q){let J;for(let Z of q){if(Z==null)continue;let $=typeof Z;if($===J)continue;if(!J){if(Mq($)){J=$;continue}return!1}return!1}return!0}function Mq(q){switch(q){case"number":case"boolean":case"string":return!0}return!1}});var i=Y((hq)=>{Object.defineProperty(hq,"__esModule",{value:!0});hq.loggingErrorHandler=void 0;var lZ=K();function nZ(){return(q)=>{lZ.diag.error(iZ(q))}}hq.loggingErrorHandler=nZ;function iZ(q){if(typeof q==="string")return q;else return JSON.stringify(pZ(q))}function pZ(q){let J={},Z=q;while(Z!==null)Object.getOwnPropertyNames(Z).forEach(($)=>{if(J[$])return;let Q=Z[$];if(Q)J[$]=String(Q)}),Z=Object.getPrototypeOf(Z);return J}});var Rq=Y((Pq)=>{Object.defineProperty(Pq,"__esModule",{value:!0});Pq.globalErrorHandler=Pq.setGlobalErrorHandler=void 0;var sZ=i(),bq=(0,sZ.loggingErrorHandler)();function oZ(q){bq=q}Pq.setGlobalErrorHandler=oZ;function aZ(q){try{bq(q)}catch{}}Pq.globalErrorHandler=aZ});var yq=Y((dq)=>{Object.defineProperty(dq,"__esModule",{value:!0});dq.getStringListFromEnv=dq.getBooleanFromEnv=dq.getStringFromEnv=dq.getNumberFromEnv=void 0;var Eq=K(),kq=tZ("util");function eZ(q){let J=process.env[q];if(J==null||J.trim()==="")return;let Z=Number(J);if(isNaN(Z)){Eq.diag.warn(`Unknown value ${(0,kq.inspect)(J)} for ${q}, expected a number, using defaults`);return}return Z}dq.getNumberFromEnv=eZ;function Sq(q){let J=process.env[q];if(J==null||J.trim()==="")return;return J}dq.getStringFromEnv=Sq;function q0(q){let J=process.env[q]?.trim().toLowerCase();if(J==null||J==="")return!1;if(J==="true")return!0;else if(J==="false")return!1;else return Eq.diag.warn(`Unknown value ${(0,kq.inspect)(J)} for ${q}, expected 'true' or 'false', falling back to 'false' (default)`),!1}dq.getBooleanFromEnv=q0;function J0(q){return Sq(q)?.split(",").map((J)=>J.trim()).filter((J)=>J!=="")}dq.getStringListFromEnv=J0});var gq=Y((vq)=>{Object.defineProperty(vq,"__esModule",{value:!0});vq._globalThis=void 0;vq._globalThis=globalThis});var cq=Y((mq)=>{Object.defineProperty(mq,"__esModule",{value:!0});mq.VERSION=void 0;mq.VERSION="2.9.0"});var nq=Y((uq)=>{Object.defineProperty(uq,"__esModule",{value:!0});uq.ATTR_PROCESS_RUNTIME_NAME=void 0;uq.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var sq=Y((iq)=>{Object.defineProperty(iq,"__esModule",{value:!0});iq.SDK_INFO=void 0;var F0=cq(),b=X0(),B0=nq();iq.SDK_INFO={[b.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[B0.ATTR_PROCESS_RUNTIME_NAME]:"node",[b.ATTR_TELEMETRY_SDK_LANGUAGE]:b.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[b.ATTR_TELEMETRY_SDK_VERSION]:F0.VERSION}});var aq=Y((I)=>{Object.defineProperty(I,"__esModule",{value:!0});I.otperformance=I.SDK_INFO=I._globalThis=I.getStringListFromEnv=I.getNumberFromEnv=I.getBooleanFromEnv=I.getStringFromEnv=void 0;var P=yq();Object.defineProperty(I,"getStringFromEnv",{enumerable:!0,get:function(){return P.getStringFromEnv}});Object.defineProperty(I,"getBooleanFromEnv",{enumerable:!0,get:function(){return P.getBooleanFromEnv}});Object.defineProperty(I,"getNumberFromEnv",{enumerable:!0,get:function(){return P.getNumberFromEnv}});Object.defineProperty(I,"getStringListFromEnv",{enumerable:!0,get:function(){return P.getStringListFromEnv}});var W0=gq();Object.defineProperty(I,"_globalThis",{enumerable:!0,get:function(){return W0._globalThis}});var Y0=sq();Object.defineProperty(I,"SDK_INFO",{enumerable:!0,get:function(){return Y0.SDK_INFO}});I.otperformance=performance});var p=Y((f)=>{Object.defineProperty(f,"__esModule",{value:!0});f.getStringListFromEnv=f.getNumberFromEnv=f.getStringFromEnv=f.getBooleanFromEnv=f.otperformance=f._globalThis=f.SDK_INFO=void 0;var V=aq();Object.defineProperty(f,"SDK_INFO",{enumerable:!0,get:function(){return V.SDK_INFO}});Object.defineProperty(f,"_globalThis",{enumerable:!0,get:function(){return V._globalThis}});Object.defineProperty(f,"otperformance",{enumerable:!0,get:function(){return V.otperformance}});Object.defineProperty(f,"getBooleanFromEnv",{enumerable:!0,get:function(){return V.getBooleanFromEnv}});Object.defineProperty(f,"getStringFromEnv",{enumerable:!0,get:function(){return V.getStringFromEnv}});Object.defineProperty(f,"getNumberFromEnv",{enumerable:!0,get:function(){return V.getNumberFromEnv}});Object.defineProperty(f,"getStringListFromEnv",{enumerable:!0,get:function(){return V.getStringListFromEnv}})});var ZJ=Y((qJ)=>{Object.defineProperty(qJ,"__esModule",{value:!0});qJ.addHrTimes=qJ.isTimeInput=qJ.isTimeInputHrTime=qJ.hrTimeToSeconds=qJ.hrTimeToMilliseconds=qJ.hrTimeToMicroseconds=qJ.hrTimeToNanoseconds=qJ.hrTimeToTimeStamp=qJ.hrTimeDuration=qJ.timeInputToHrTime=qJ.hrTime=qJ.getTimeOrigin=qJ.millisToHrTime=void 0;var C=p(),rq=9,z0=6,K0=Math.pow(10,z0),L=Math.pow(10,rq);function j(q){let J=q/1000,Z=Math.trunc(J),$=Math.round(q%1000*K0);return[Z,$]}qJ.millisToHrTime=j;function H0(){return C.otperformance.timeOrigin}qJ.getTimeOrigin=H0;function tq(q){let J=j(C.otperformance.timeOrigin),Z=j(typeof q==="number"?q:C.otperformance.now());return eq(J,Z)}qJ.hrTime=tq;function D0(q){if(s(q))return q;else if(typeof q==="number")if(q<C.otperformance.timeOrigin/2)return tq(q);else return j(q);else if(q instanceof Date)return j(q.getTime());else throw TypeError("Invalid input type")}qJ.timeInputToHrTime=D0;function f0(q,J){let Z=J[0]-q[0],$=J[1]-q[1];if($<0)Z-=1,$+=L;return[Z,$]}qJ.hrTimeDuration=f0;function U0(q){let J=rq,Z=`${"0".repeat(J)}${q[1]}Z`,$=Z.substring(Z.length-J-1);return new Date(q[0]*1000).toISOString().replace("000Z",$)}qJ.hrTimeToTimeStamp=U0;function I0(q){return q[0]*L+q[1]}qJ.hrTimeToNanoseconds=I0;function V0(q){return q[0]*1e6+q[1]/1000}qJ.hrTimeToMicroseconds=V0;function O0(q){return q[0]*1000+q[1]/1e6}qJ.hrTimeToMilliseconds=O0;function N0(q){return q[0]+q[1]/L}qJ.hrTimeToSeconds=N0;function s(q){return Array.isArray(q)&&q.length===2&&typeof q[0]==="number"&&typeof q[1]==="number"}qJ.isTimeInputHrTime=s;function M0(q){return s(q)||typeof q==="number"||q instanceof Date}qJ.isTimeInput=M0;function eq(q,J){let Z=[q[0]+J[0],q[1]+J[1]];if(Z[1]>=L)Z[1]-=L,Z[0]+=1;return Z}qJ.addHrTimes=eq});var XJ=Y(($J)=>{Object.defineProperty($J,"__esModule",{value:!0});$J.unrefTimer=void 0;function d0(q){if(typeof q!=="number")q.unref()}$J.unrefTimer=d0});var BJ=Y((FJ)=>{Object.defineProperty(FJ,"__esModule",{value:!0});FJ.ExportResultCode=void 0;var T0;(function(q){q[q.SUCCESS=0]="SUCCESS",q[q.FAILED=1]="FAILED"})(T0=FJ.ExportResultCode||(FJ.ExportResultCode={}))});var KJ=Y((GJ)=>{Object.defineProperty(GJ,"__esModule",{value:!0});GJ.CompositePropagator=void 0;var WJ=K();class YJ{_propagators;_fields;constructor(q={}){this._propagators=q.propagators??[];let J=new Set;for(let Z of this._propagators){let $=typeof Z.fields==="function"?Z.fields():[];for(let Q of $)J.add(Q)}this._fields=Array.from(J)}inject(q,J,Z){for(let $ of this._propagators)try{$.inject(q,J,Z)}catch(Q){WJ.diag.warn(`Failed to inject with ${$.constructor.name}. Err: ${Q.message}`)}}extract(q,J,Z){return this._propagators.reduce(($,Q)=>{try{return Q.extract($,J,Z)}catch(F){WJ.diag.warn(`Failed to extract with ${Q.constructor.name}. Err: ${F.message}`)}return $},q)}fields(){return this._fields.slice()}}GJ.CompositePropagator=YJ});var fJ=Y((HJ)=>{Object.defineProperty(HJ,"__esModule",{value:!0});HJ.validateValue=HJ.validateKey=void 0;var a="[_0-9a-z-*/]",y0=`[a-z]${a}{0,255}`,v0=`[a-z0-9]${a}{0,240}@[a-z]${a}{0,13}`,_0=new RegExp(`^(?:${y0}|${v0})$`),g0=/^[ -~]{0,255}[!-~]$/,m0=/,|=/;function x0(q){return _0.test(q)}HJ.validateKey=x0;function c0(q){return g0.test(q)&&!m0.test(q)}HJ.validateValue=c0});var t=Y((OJ)=>{Object.defineProperty(OJ,"__esModule",{value:!0});OJ.TraceState=void 0;var R=fJ(),l0=32,UJ=512,IJ=",",VJ="=";class r{_length;_rawTraceState;_internalState;constructor(q){this._rawTraceState=typeof q==="string"?q:"",this._length=this._rawTraceState.length}set(q,J){if(!(0,R.validateKey)(q)||!(0,R.validateValue)(J))return this;let Z=this._getState(),$=Z.get(q),Q=this._length;if(typeof $==="string")Q+=J.length-$.length;else Q+=q.length+J.length+(Z.size>0?2:1);if(Q>UJ)return this;let F=new Map(Z);return F.delete(q),F.set(q,J),this._fromState(F,Q)}unset(q){let J=this._getState(),Z=J.get(q);if(typeof Z!=="string")return this;let $=this._length-(q.length+Z.length+1);if(J.size>1)$=$-1;let Q=new Map(J);return Q.delete(q),this._fromState(Q,$)}get(q){return this._getState().get(q)}serialize(){let q="",J=0;for(let Z of this._getState()){if(J>0)q=IJ+q;q=`${Z[0]}${VJ}${Z[1]}`+q,J++}return q}_getState(){if(this._internalState)return this._internalState;let q=this._rawTraceState.split(IJ),J=new Map,Z=0;for(let $ of q){let Q=$.trim(),F=Q.indexOf(VJ);if(F===-1)continue;let B=Q.slice(0,F),G=Q.slice(F+1);if(!(0,R.validateKey)(B)||!(0,R.validateValue)(G))continue;let W=Z+Q.length+(J.size>0?1:0);if(W>UJ)continue;if(J.set(B,G),Z=W,J.size>=l0)break}return this._length=Z,this._internalState=new Map(Array.from(J.entries()).reverse()),this._internalState}_fromState(q,J){let Z=Object.create(r.prototype);return Z._internalState=q,Z._length=J,Z}}OJ.TraceState=r});var hJ=Y((LJ)=>{Object.defineProperty(LJ,"__esModule",{value:!0});LJ.W3CTraceContextPropagator=LJ.parseTraceParent=LJ.TRACE_STATE_HEADER=LJ.TRACE_PARENT_HEADER=void 0;var E=K(),n0=M(),i0=t();LJ.TRACE_PARENT_HEADER="traceparent";LJ.TRACE_STATE_HEADER="tracestate";var p0="00",s0="(?!ff)[\\da-f]{2}",o0="(?![0]{32})[\\da-f]{32}",a0="(?![0]{16})[\\da-f]{16}",r0="[\\da-f]{2}",t0=new RegExp(`^\\s?(${s0})-(${o0})-(${a0})-(${r0})(-.*)?\\s?$`);function MJ(q){let J=t0.exec(q);if(!J)return null;if(J[1]==="00"&&J[5])return null;return{traceId:J[2],spanId:J[3],traceFlags:parseInt(J[4],16)}}LJ.parseTraceParent=MJ;class AJ{inject(q,J,Z){let $=E.trace.getSpanContext(q);if(!$||(0,n0.isTracingSuppressed)(q)||!(0,E.isSpanContextValid)($))return;let Q=`${p0}-${$.traceId}-${$.spanId}-0${Number($.traceFlags||E.TraceFlags.NONE).toString(16)}`;if(Z.set(J,LJ.TRACE_PARENT_HEADER,Q),$.traceState)Z.set(J,LJ.TRACE_STATE_HEADER,$.traceState.serialize())}extract(q,J,Z){let $=Z.get(J,LJ.TRACE_PARENT_HEADER);if(!$)return q;let Q=Array.isArray($)?$[0]:$;if(typeof Q!=="string")return q;let F=MJ(Q);if(!F)return q;F.isRemote=!0;let B=Z.get(J,LJ.TRACE_STATE_HEADER);if(B){let G=Array.isArray(B)?B.join(","):B;F.traceState=new i0.TraceState(typeof G==="string"?G:void 0)}return E.trace.setSpanContext(q,F)}fields(){return[LJ.TRACE_PARENT_HEADER,LJ.TRACE_STATE_HEADER]}}LJ.W3CTraceContextPropagator=AJ});var CJ=Y((bJ)=>{Object.defineProperty(bJ,"__esModule",{value:!0});bJ.getRPCMetadata=bJ.deleteRPCMetadata=bJ.setRPCMetadata=bJ.RPCType=void 0;var q1=K(),e=(0,q1.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),J1;(function(q){q.HTTP="http"})(J1=bJ.RPCType||(bJ.RPCType={}));function Z1(q,J){return q.setValue(e,J)}bJ.setRPCMetadata=Z1;function $1(q){return q.deleteValue(e)}bJ.deleteRPCMetadata=$1;function Q1(q){return q.getValue(e)}bJ.getRPCMetadata=Q1});var yJ=Y((dJ)=>{Object.defineProperty(dJ,"__esModule",{value:!0});dJ.isPlainObject=void 0;var B1="[object Object]",W1="[object Null]",Y1="[object Undefined]",G1=Function.prototype,RJ=G1.toString,z1=RJ.call(Object),K1=Object.getPrototypeOf,EJ=Object.prototype,kJ=EJ.hasOwnProperty,O=Symbol?Symbol.toStringTag:void 0,SJ=EJ.toString;function H1(q){if(!D1(q)||f1(q)!==B1)return!1;let J=K1(q);if(J===null)return!0;let Z=kJ.call(J,"constructor")&&J.constructor;return typeof Z=="function"&&Z instanceof Z&&RJ.call(Z)===z1}dJ.isPlainObject=H1;function D1(q){return q!=null&&typeof q=="object"}function f1(q){if(q==null)return q===void 0?Y1:W1;return O&&O in Object(q)?U1(q):I1(q)}function U1(q){let J=kJ.call(q,O),Z=q[O],$=!1;try{q[O]=void 0,$=!0}catch{}let Q=SJ.call(q);if($)if(J)q[O]=Z;else delete q[O];return Q}function I1(q){return SJ.call(q)}});var uJ=Y((xJ)=>{Object.defineProperty(xJ,"__esModule",{value:!0});xJ.merge=void 0;var vJ=yJ(),V1=20;function O1(...q){let J=q.shift(),Z=new WeakMap;while(q.length>0)J=gJ(J,q.shift(),0,Z);return J}xJ.merge=O1;function qq(q){if(T(q))return q.slice();return q}function gJ(q,J,Z=0,$){let Q;if(Z>V1)return;if(Z++,d(q)||d(J)||mJ(J))Q=qq(J);else if(T(q)){if(Q=q.slice(),T(J))for(let F=0,B=J.length;F<B;F++)Q.push(qq(J[F]));else if(h(J)){let F=Object.keys(J);for(let B=0,G=F.length;B<G;B++){let W=F[B];if(W==="__proto__"||W==="constructor"||W==="prototype")continue;Q[W]=qq(J[W])}}}else if(h(q))if(h(J)){if(!N1(q,J))return J;Q=Object.assign({},q);let F=Object.keys(J);for(let B=0,G=F.length;B<G;B++){let W=F[B];if(W==="__proto__"||W==="constructor"||W==="prototype")continue;let H=J[W];if(d(H))if(typeof H>"u")delete Q[W];else Q[W]=H;else{let g=Q[W],m=H;if(_J(q,W,$)||_J(J,W,$))delete Q[W];else{if(h(g)&&h(m)){let Zq=$.get(g)||[],$q=$.get(m)||[];Zq.push({obj:q,key:W}),$q.push({obj:J,key:W}),$.set(g,Zq),$.set(m,$q)}Q[W]=gJ(Q[W],H,Z,$)}}}}else Q=J;return Q}function _J(q,J,Z){let $=Z.get(q[J])||[];for(let Q=0,F=$.length;Q<F;Q++){let B=$[Q];if(B.key===J&&B.obj===q)return!0}return!1}function T(q){return Array.isArray(q)}function mJ(q){return typeof q==="function"}function h(q){return!d(q)&&!T(q)&&!mJ(q)&&typeof q==="object"}function d(q){return typeof q==="string"||typeof q==="number"||typeof q==="boolean"||typeof q>"u"||q instanceof Date||q instanceof RegExp||q===null}function N1(q,J){if(!(0,vJ.isPlainObject)(q)||!(0,vJ.isPlainObject)(J))return!1;return!0}});var iJ=Y((lJ)=>{Object.defineProperty(lJ,"__esModule",{value:!0});lJ.callWithTimeout=lJ.TimeoutError=void 0;class y extends Error{constructor(q){super(q);Object.setPrototypeOf(this,y.prototype)}}lJ.TimeoutError=y;function M1(q,J){let Z,$=new Promise(function(F,B){Z=setTimeout(function(){B(new y("Operation timed out."))},J)});return Promise.race([q,$]).then((Q)=>{return clearTimeout(Z),Q},(Q)=>{throw clearTimeout(Z),Q})}lJ.callWithTimeout=M1});var aJ=Y((sJ)=>{Object.defineProperty(sJ,"__esModule",{value:!0});sJ.isUrlIgnored=sJ.urlMatches=void 0;function pJ(q,J){if(typeof J==="string")return q===J;else return!!q.match(J)}sJ.urlMatches=pJ;function L1(q,J){if(!J)return!1;for(let Z of J)if(pJ(q,Z))return!0;return!1}sJ.isUrlIgnored=L1});var qZ=Y((tJ)=>{Object.defineProperty(tJ,"__esModule",{value:!0});tJ.Deferred=void 0;class rJ{_promise;_resolve;_reject;constructor(){this._promise=new Promise((q,J)=>{this._resolve=q,this._reject=J})}get promise(){return this._promise}resolve(q){this._resolve(q)}reject(q){this._reject(q)}}tJ.Deferred=rJ});var QZ=Y((ZZ)=>{Object.defineProperty(ZZ,"__esModule",{value:!0});ZZ.BindOnceFuture=void 0;var h1=qZ();class JZ{_isCalled=!1;_deferred=new h1.Deferred;_callback;_that;constructor(q,J){this._callback=q,this._that=J}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...q){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...q)).then((J)=>this._deferred.resolve(J),(J)=>this._deferred.reject(J))}catch(J){this._deferred.reject(J)}}return this._deferred.promise}}ZZ.BindOnceFuture=JZ});var WZ=Y((FZ)=>{Object.defineProperty(FZ,"__esModule",{value:!0});FZ.diagLogLevelFromString=void 0;var U=K(),XZ={ALL:U.DiagLogLevel.ALL,VERBOSE:U.DiagLogLevel.VERBOSE,DEBUG:U.DiagLogLevel.DEBUG,INFO:U.DiagLogLevel.INFO,WARN:U.DiagLogLevel.WARN,ERROR:U.DiagLogLevel.ERROR,NONE:U.DiagLogLevel.NONE};function w1(q){if(q==null)return;let J=XZ[q.toUpperCase()];if(J==null)return U.diag.warn(`Unknown log level "${q}", expected one of ${Object.keys(XZ)}, using default`),U.DiagLogLevel.INFO;return J}FZ.diagLogLevelFromString=w1});var KZ=Y((GZ)=>{Object.defineProperty(GZ,"__esModule",{value:!0});GZ._export=void 0;var YZ=K(),b1=M();function P1(q,J){return new Promise((Z)=>{YZ.context.with((0,b1.suppressTracing)(YZ.context.active()),()=>{q.export(J,Z)})})}GZ._export=P1});var c1=Y((X)=>{Object.defineProperty(X,"__esModule",{value:!0});X.diagLogLevelFromString=X.BindOnceFuture=X.urlMatches=X.isUrlIgnored=X.callWithTimeout=X.TimeoutError=X.merge=X.TraceState=X.unsuppressTracing=X.suppressTracing=X.isTracingSuppressed=X.setRPCMetadata=X.getRPCMetadata=X.deleteRPCMetadata=X.RPCType=X.parseTraceParent=X.W3CTraceContextPropagator=X.TRACE_STATE_HEADER=X.TRACE_PARENT_HEADER=X.CompositePropagator=X.otperformance=X.getStringListFromEnv=X.getNumberFromEnv=X.getBooleanFromEnv=X.getStringFromEnv=X._globalThis=X.SDK_INFO=X.parseKeyPairsIntoRecord=X.ExportResultCode=X.unrefTimer=X.timeInputToHrTime=X.millisToHrTime=X.isTimeInputHrTime=X.isTimeInput=X.hrTimeToTimeStamp=X.hrTimeToSeconds=X.hrTimeToNanoseconds=X.hrTimeToMilliseconds=X.hrTimeToMicroseconds=X.hrTimeDuration=X.hrTime=X.getTimeOrigin=X.addHrTimes=X.loggingErrorHandler=X.setGlobalErrorHandler=X.globalErrorHandler=X.sanitizeAttributes=X.isAttributeValue=X.AnchoredClock=X.W3CBaggagePropagator=void 0;X.internal=void 0;var C1=Hq();Object.defineProperty(X,"W3CBaggagePropagator",{enumerable:!0,get:function(){return C1.W3CBaggagePropagator}});var R1=Iq();Object.defineProperty(X,"AnchoredClock",{enumerable:!0,get:function(){return R1.AnchoredClock}});var HZ=jq();Object.defineProperty(X,"isAttributeValue",{enumerable:!0,get:function(){return HZ.isAttributeValue}});Object.defineProperty(X,"sanitizeAttributes",{enumerable:!0,get:function(){return HZ.sanitizeAttributes}});var DZ=Rq();Object.defineProperty(X,"globalErrorHandler",{enumerable:!0,get:function(){return DZ.globalErrorHandler}});Object.defineProperty(X,"setGlobalErrorHandler",{enumerable:!0,get:function(){return DZ.setGlobalErrorHandler}});var E1=i();Object.defineProperty(X,"loggingErrorHandler",{enumerable:!0,get:function(){return E1.loggingErrorHandler}});var z=ZJ();Object.defineProperty(X,"addHrTimes",{enumerable:!0,get:function(){return z.addHrTimes}});Object.defineProperty(X,"getTimeOrigin",{enumerable:!0,get:function(){return z.getTimeOrigin}});Object.defineProperty(X,"hrTime",{enumerable:!0,get:function(){return z.hrTime}});Object.defineProperty(X,"hrTimeDuration",{enumerable:!0,get:function(){return z.hrTimeDuration}});Object.defineProperty(X,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return z.hrTimeToMicroseconds}});Object.defineProperty(X,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return z.hrTimeToMilliseconds}});Object.defineProperty(X,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return z.hrTimeToNanoseconds}});Object.defineProperty(X,"hrTimeToSeconds",{enumerable:!0,get:function(){return z.hrTimeToSeconds}});Object.defineProperty(X,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return z.hrTimeToTimeStamp}});Object.defineProperty(X,"isTimeInput",{enumerable:!0,get:function(){return z.isTimeInput}});Object.defineProperty(X,"isTimeInputHrTime",{enumerable:!0,get:function(){return z.isTimeInputHrTime}});Object.defineProperty(X,"millisToHrTime",{enumerable:!0,get:function(){return z.millisToHrTime}});Object.defineProperty(X,"timeInputToHrTime",{enumerable:!0,get:function(){return z.timeInputToHrTime}});var k1=XJ();Object.defineProperty(X,"unrefTimer",{enumerable:!0,get:function(){return k1.unrefTimer}});var S1=BJ();Object.defineProperty(X,"ExportResultCode",{enumerable:!0,get:function(){return S1.ExportResultCode}});var d1=l();Object.defineProperty(X,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return d1.parseKeyPairsIntoRecord}});var N=p();Object.defineProperty(X,"SDK_INFO",{enumerable:!0,get:function(){return N.SDK_INFO}});Object.defineProperty(X,"_globalThis",{enumerable:!0,get:function(){return N._globalThis}});Object.defineProperty(X,"getStringFromEnv",{enumerable:!0,get:function(){return N.getStringFromEnv}});Object.defineProperty(X,"getBooleanFromEnv",{enumerable:!0,get:function(){return N.getBooleanFromEnv}});Object.defineProperty(X,"getNumberFromEnv",{enumerable:!0,get:function(){return N.getNumberFromEnv}});Object.defineProperty(X,"getStringListFromEnv",{enumerable:!0,get:function(){return N.getStringListFromEnv}});Object.defineProperty(X,"otperformance",{enumerable:!0,get:function(){return N.otperformance}});var T1=KJ();Object.defineProperty(X,"CompositePropagator",{enumerable:!0,get:function(){return T1.CompositePropagator}});var v=hJ();Object.defineProperty(X,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return v.TRACE_PARENT_HEADER}});Object.defineProperty(X,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return v.TRACE_STATE_HEADER}});Object.defineProperty(X,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return v.W3CTraceContextPropagator}});Object.defineProperty(X,"parseTraceParent",{enumerable:!0,get:function(){return v.parseTraceParent}});var _=CJ();Object.defineProperty(X,"RPCType",{enumerable:!0,get:function(){return _.RPCType}});Object.defineProperty(X,"deleteRPCMetadata",{enumerable:!0,get:function(){return _.deleteRPCMetadata}});Object.defineProperty(X,"getRPCMetadata",{enumerable:!0,get:function(){return _.getRPCMetadata}});Object.defineProperty(X,"setRPCMetadata",{enumerable:!0,get:function(){return _.setRPCMetadata}});var Jq=M();Object.defineProperty(X,"isTracingSuppressed",{enumerable:!0,get:function(){return Jq.isTracingSuppressed}});Object.defineProperty(X,"suppressTracing",{enumerable:!0,get:function(){return Jq.suppressTracing}});Object.defineProperty(X,"unsuppressTracing",{enumerable:!0,get:function(){return Jq.unsuppressTracing}});var y1=t();Object.defineProperty(X,"TraceState",{enumerable:!0,get:function(){return y1.TraceState}});var v1=uJ();Object.defineProperty(X,"merge",{enumerable:!0,get:function(){return v1.merge}});var fZ=iJ();Object.defineProperty(X,"TimeoutError",{enumerable:!0,get:function(){return fZ.TimeoutError}});Object.defineProperty(X,"callWithTimeout",{enumerable:!0,get:function(){return fZ.callWithTimeout}});var UZ=aJ();Object.defineProperty(X,"isUrlIgnored",{enumerable:!0,get:function(){return UZ.isUrlIgnored}});Object.defineProperty(X,"urlMatches",{enumerable:!0,get:function(){return UZ.urlMatches}});var _1=QZ();Object.defineProperty(X,"BindOnceFuture",{enumerable:!0,get:function(){return _1.BindOnceFuture}});var g1=WZ();Object.defineProperty(X,"diagLogLevelFromString",{enumerable:!0,get:function(){return g1.diagLogLevelFromString}});var m1=KZ();X.internal={_export:m1._export}});
3
- export{c1 as Ef};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{mu as a,nu as b}from"./chunk-tns5x4w0.js";import"./chunk-e7v9trve.js";import"./chunk-zh3fny3z.js";import"./chunk-m4j7jyrd.js";import"./chunk-gmzrvxnv.js";import"./chunk-mpygdb5a.js";import"./chunk-wfd5h6ax.js";import"./chunk-a0rp7gh4.js";import"./chunk-3k2b05fv.js";export{a as Path,b as Global};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{o as L}from"./chunk-hv6eccx1.js";import"./chunk-606vpgc4.js";import{A as K}from"./chunk-a949at1c.js";import{B as N}from"./chunk-gsez13bg.js";import{C as F,E as J}from"./chunk-c8k32724.js";import"./chunk-11g2rpv8.js";import"./chunk-t9mz17gb.js";import"./chunk-yt3f3j35.js";import"./chunk-6ged58yw.js";import{P as M}from"./chunk-t3eymzg1.js";import"./chunk-jkh6eg7d.js";import"./chunk-4hzm14xt.js";import"./chunk-bzgj60w4.js";import"./chunk-kdcnder5.js";import"./chunk-03xppy47.js";import{Rd as B}from"./chunk-yajd975f.js";import"./chunk-bv29k2pf.js";import"./chunk-qa2j0qmy.js";import"./chunk-ge8315te.js";import{Vf as z}from"./chunk-p9cnzxb8.js";import"./chunk-gckgaqqr.js";import"./chunk-srpe3v8e.js";import"./chunk-8vg4fmg2.js";import"./chunk-zfcp509b.js";import"./chunk-e74efvj2.js";import"./chunk-st5jaszz.js";import"./chunk-a1hzeejj.js";import"./chunk-sjw56r2n.js";import"./chunk-nj4d554m.js";import"./chunk-eva3nqqb.js";import"./chunk-yprmd5b7.js";import"./chunk-snr44en9.js";import"./chunk-keveg5gx.js";import"./chunk-f3bnn9rf.js";import"./chunk-xqdrr7xg.js";import"./chunk-axdzm75h.js";import"./chunk-94pcpztx.js";import"./chunk-hw5qyht3.js";import"./chunk-z8gdmvgg.js";import"./chunk-kwx9ewe0.js";import"./chunk-cqtkxwd8.js";import"./chunk-c5pb87yf.js";import"./chunk-g6cyhxwg.js";import"./chunk-n96tvjgj.js";import"./chunk-pkc4ddw1.js";import"./chunk-xgr6jnd6.js";import"./chunk-a48t0g95.js";import"./chunk-yqk58hf6.js";import"./chunk-er38zew1.js";import"./chunk-dk975etf.js";import"./chunk-6p94fpbn.js";import"./chunk-fg35hwa0.js";import"./chunk-79agp7v3.js";import"./chunk-kv72hxkp.js";import"./chunk-nj2bbtmx.js";import"./chunk-tns5x4w0.js";import"./chunk-e7v9trve.js";import"./chunk-zh3fny3z.js";import"./chunk-m4j7jyrd.js";import"./chunk-gmzrvxnv.js";import"./chunk-mpygdb5a.js";import"./chunk-wfd5h6ax.js";import"./chunk-a0rp7gh4.js";import"./chunk-kfmz2p27.js";import"./chunk-ee23d2nz.js";import"./chunk-3k2b05fv.js";var x=B({command:"attach <url>",describe:"attach to a running qitqode server",builder:(j)=>j.positional("url",{type:"string",describe:"http://localhost:4096",demandOption:!0}).option("dir",{type:"string",description:"directory to run in"}).option("continue",{alias:["c"],describe:"continue the last session",type:"boolean"}).option("session",{alias:["s"],type:"string",describe:"session id to continue"}).option("fork",{type:"boolean",describe:"fork the session when continuing (use with --continue or --session)"}).option("password",{alias:["p"],type:"string",describe:"basic auth password (defaults to QITQODE_SERVER_PASSWORD)"}),handler:async(j)=>{let Q=J();try{F();let q=N(j);if(q){z.error(q),process.exitCode=1;return}let R=(()=>{if(!j.dir)return;try{return process.chdir(j.dir),process.cwd()}catch{return j.dir}})(),S=M({password:j.password}),V=await K.get();await L({url:j.url,config:V,args:{continue:j.continue,sessionID:j.session,fork:j.fork},directory:R,headers:S})}finally{Q?.()}}});export{x as AttachCommand};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{Cs as pJ,Ds as iJ,Es as nJ,Fs as aJ,Gs as rJ,Is as AQ,ps as mJ,qs as vJ,rs as dJ,ss as lJ,vs as d,ws as l,ys as uJ,zs as cJ}from"./chunk-6p94fpbn.js";import{Xt as FQ,ou as x,st as CQ,tt as DQ,xu as GJ}from"./chunk-tns5x4w0.js";import{AI as E,CH as hJ,CM as o,DG as DJ,EG as FJ,FG as AJ,FI as yJ,GI as bJ,HP as g,IF as BQ,IP as eJ,JF as wQ,LD as $Q,LH as jJ,LP as HQ,MC as wJ,MF as $J,MP as WQ,NF as UJ,NP as R,OI as I,PC as HJ,RG as t,RH as NJ,SC as WJ,SF as zJ,SG as OJ,TD as f,UG as y,ZD as IJ,aE as PJ,aI as kJ,aK as gJ,bG as ZJ,dE as T,eI as LJ,fH as TJ,gC as tJ,gE as KJ,hI as SJ,lG as z,lI as xJ,lM as j,mF as qQ,mH as EJ,pI as fJ,qH as MJ,rG as b,tF as _J,tG as CJ,tH as oJ,vD as GQ,xH as RJ,zH as VJ}from"./chunk-a0rp7gh4.js";import{_P as zQ,aQ as u,cQ as S}from"./chunk-3k2b05fv.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-71zw0qhf.js"),Q=await import("./chunk-891yevv2.js"),X=await import("./chunk-499gp5g5.js"),{AsyncLocalStorageContextManager:Y}=await import("./chunk-prh3c44x.js").then((m)=>zQ(m.default,1)),{context:$}=await import("./chunk-28t9akfn.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 js,UQ as ks,EQ as ls,WX as ms,IX as ns,aX as os};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Kr as a}from"./chunk-g6cyhxwg.js";import"./chunk-3k2b05fv.js";export default a();
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Df as k}from"./chunk-ywkvq7zb.js";import{Jg as f}from"./chunk-rv1stdvb.js";function z(){return async(l,b)=>k(await f(l,b.options),b)}export{z as Cf};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Gl as a,Hl as b,Il as c,Jl as d,Kl as e,Ll as f,Ml as g,Nl as h,Ol as i}from"./chunk-st5jaszz.js";import"./chunk-sjw56r2n.js";import"./chunk-snr44en9.js";import"./chunk-xqdrr7xg.js";import"./chunk-6p94fpbn.js";import"./chunk-tns5x4w0.js";import"./chunk-e7v9trve.js";import"./chunk-zh3fny3z.js";import"./chunk-m4j7jyrd.js";import"./chunk-gmzrvxnv.js";import"./chunk-mpygdb5a.js";import"./chunk-wfd5h6ax.js";import"./chunk-a0rp7gh4.js";import"./chunk-3k2b05fv.js";export{i as stopRefresh,h as startRefresh,g as refresh,d as readModelCatalogResponse,f as get,c as Provider,b as Model,a as MODEL_CATALOG_MAX_BYTES,e as Data};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-3k2b05fv.js";var L="./opentui-c5en9p2g.dll";export{L as default};