@caspian2026/agent-sdk 0.0.18 → 0.0.20

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 (427) hide show
  1. package/dist/{chunk-s9dazft8.js → chunk-09nzqj0f.js} +2927 -764
  2. package/dist/{chunk-9gn2ft16.js → chunk-0a8jb5c8.js} +9 -9
  3. package/dist/{chunk-xrtkg6a5.js → chunk-0b85d7q0.js} +7 -7
  4. package/dist/{chunk-5j8md8dg.js → chunk-0dwdg9bz.js} +9 -9
  5. package/dist/{chunk-ap1wxeh4.js → chunk-0f84wjjc.js} +79 -79
  6. package/dist/chunk-0fw1mz8s.js +27 -0
  7. package/dist/{chunk-kwekc97v.js → chunk-0pbwcm8b.js} +1 -1
  8. package/dist/chunk-0pqv68xt.js +133 -0
  9. package/dist/chunk-0pv13fxq.js +1684 -0
  10. package/dist/chunk-0tgn1431.js +38 -0
  11. package/dist/{chunk-bg4x9ex0.js → chunk-0tja7d1y.js} +6 -6
  12. package/dist/{chunk-xs6my1r1.js → chunk-0w2ntzwz.js} +92 -92
  13. package/dist/chunk-0yshjsxt.js +122 -0
  14. package/dist/chunk-0z9s957c.js +94 -0
  15. package/dist/{chunk-fyc5fepv.js → chunk-0zscb6c7.js} +1 -1
  16. package/dist/{chunk-x8d2ehd7.js → chunk-13pmg16e.js} +1 -1
  17. package/dist/{chunk-v4t6dyyh.js → chunk-15f7ee0j.js} +245 -158
  18. package/dist/{chunk-ksrvrndt.js → chunk-1ehn6qdp.js} +13 -13
  19. package/dist/chunk-1gt45dyg.js +101 -0
  20. package/dist/{chunk-39dpcr2t.js → chunk-1s9jxpjm.js} +7 -7
  21. package/dist/{chunk-3c25bcsw.js → chunk-1t3cyn1k.js} +1 -1
  22. package/dist/{chunk-bpa7mm4n.js → chunk-1ycd7t0f.js} +88 -88
  23. package/dist/{chunk-aj428gay.js → chunk-1ytng03p.js} +12 -12
  24. package/dist/{chunk-72na7rqk.js → chunk-25jhz0br.js} +16 -16
  25. package/dist/{chunk-wp3ryedc.js → chunk-26kp0k1t.js} +79 -79
  26. package/dist/{chunk-175v9c0j.js → chunk-2b00k9ep.js} +78 -78
  27. package/dist/{chunk-egme4m15.js → chunk-2bh7f2wa.js} +13 -13
  28. package/dist/{chunk-hf0q1g1n.js → chunk-2bk4jvse.js} +7 -7
  29. package/dist/{chunk-0vkfrmqm.js → chunk-2mfzqkzn.js} +69 -29
  30. package/dist/{chunk-szj5wvdy.js → chunk-2qpy8kne.js} +1 -1
  31. package/dist/{chunk-pwwa7s62.js → chunk-2vc3fyp9.js} +2 -2
  32. package/dist/{chunk-n4022dzr.js → chunk-37j24srh.js} +6 -6
  33. package/dist/{chunk-bxd7dzz4.js → chunk-39r7sh1h.js} +90 -90
  34. package/dist/{chunk-a6d2q415.js → chunk-3hcfwedh.js} +5 -5
  35. package/dist/{chunk-6e84jw8j.js → chunk-3hxr3x9d.js} +2 -2
  36. package/dist/{chunk-2zf2y9xh.js → chunk-3jbxhytz.js} +8 -8
  37. package/dist/{chunk-ch53xex6.js → chunk-3k8ecscj.js} +78 -78
  38. package/dist/chunk-3kx7brrn.js +55 -0
  39. package/dist/{chunk-yb6xww2x.js → chunk-3w4xq6cv.js} +92 -92
  40. package/dist/{chunk-6rhzfq66.js → chunk-3xamk0n1.js} +25 -25
  41. package/dist/{chunk-yt3s7a7d.js → chunk-41wn5eqw.js} +10 -10
  42. package/dist/{chunk-fys33rtr.js → chunk-44bqv91d.js} +3 -3
  43. package/dist/{chunk-cgfdkzhb.js → chunk-4bcx2a3p.js} +1 -1
  44. package/dist/{chunk-mswx2nma.js → chunk-4e1j46k0.js} +3 -3
  45. package/dist/{chunk-dg5g4rx6.js → chunk-4fwzreqj.js} +6 -6
  46. package/dist/{chunk-8p1zdkhr.js → chunk-4kfhh3aw.js} +4 -4
  47. package/dist/chunk-4kfs8ymb.js +92 -0
  48. package/dist/{chunk-t29a6zb5.js → chunk-4nqm22j3.js} +6 -4
  49. package/dist/{chunk-27west95.js → chunk-4v1mr2x2.js} +41 -41
  50. package/dist/{chunk-qmaadr70.js → chunk-4yq5zz3m.js} +9 -9
  51. package/dist/{chunk-y6ktw609.js → chunk-52pp0dbk.js} +4 -4
  52. package/dist/{chunk-3nk79af8.js → chunk-568q88qz.js} +1 -1
  53. package/dist/{chunk-ase86y73.js → chunk-5f57qtf9.js} +1 -1
  54. package/dist/{chunk-07069jq1.js → chunk-5gr6ekgm.js} +4 -4
  55. package/dist/{chunk-ppwjyveh.js → chunk-5nqrdqz5.js} +1 -1
  56. package/dist/chunk-5rhmrt2j.js +121 -0
  57. package/dist/{chunk-fbfjz4mv.js → chunk-5sd5fz78.js} +78 -78
  58. package/dist/{chunk-nsc89h0n.js → chunk-5v6wr1z4.js} +3 -9
  59. package/dist/{chunk-69n11zng.js → chunk-5vavvf6y.js} +5 -5
  60. package/dist/{chunk-g6xtx9ad.js → chunk-60a647ty.js} +81 -81
  61. package/dist/{chunk-dwyaks7s.js → chunk-61x3akfa.js} +2 -2
  62. package/dist/chunk-626watky.js +50 -0
  63. package/dist/{chunk-v786pxdf.js → chunk-62jrhytw.js} +10 -10
  64. package/dist/{chunk-a4x613vq.js → chunk-638qz5y7.js} +5 -5
  65. package/dist/{chunk-n8780srz.js → chunk-657k4mef.js} +78 -79
  66. package/dist/chunk-6aqa0ec5.js +145 -0
  67. package/dist/{chunk-1e7a4d58.js → chunk-6c22q39e.js} +78 -78
  68. package/dist/{chunk-b0kf00ff.js → chunk-6d05fvxz.js} +2 -2
  69. package/dist/{chunk-dapz0pb2.js → chunk-6fe0an4e.js} +79 -79
  70. package/dist/{chunk-wpegnpmd.js → chunk-6fx36a3s.js} +5 -5
  71. package/dist/{chunk-dsd0v5za.js → chunk-6hs3wed5.js} +7 -7
  72. package/dist/{chunk-d1m96xhv.js → chunk-6qb753r5.js} +79 -79
  73. package/dist/{chunk-0xjaqda8.js → chunk-6rcf54zd.js} +48 -27
  74. package/dist/{chunk-jtwdv23y.js → chunk-6twsw69m.js} +7 -7
  75. package/dist/{chunk-6p6mwfc8.js → chunk-6vp8zen2.js} +79 -79
  76. package/dist/chunk-6zfb4n08.js +91 -0
  77. package/dist/chunk-73bgy356.js +90 -0
  78. package/dist/{chunk-6gjke1xd.js → chunk-7ba45tqg.js} +5 -5
  79. package/dist/{chunk-j1y56wgn.js → chunk-7dc9d8fy.js} +7 -7
  80. package/dist/{chunk-5vp228m5.js → chunk-7deqmrby.js} +5 -5
  81. package/dist/{chunk-9x5zgy22.js → chunk-7e9xcw77.js} +1 -1
  82. package/dist/{chunk-gapsz2hr.js → chunk-7gbe6ftc.js} +9 -9
  83. package/dist/{chunk-xhfmdq1y.js → chunk-7gte8zc4.js} +1 -1
  84. package/dist/{chunk-6nsd9606.js → chunk-7kp42hzq.js} +2 -2
  85. package/dist/{chunk-hakdhagh.js → chunk-7njkaxjp.js} +39 -120
  86. package/dist/chunk-7nphjzve.js +105 -0
  87. package/dist/chunk-7sp9dk6d.js +20 -0
  88. package/dist/{chunk-wgk9sxk7.js → chunk-7tdk9ypw.js} +10 -10
  89. package/dist/{chunk-6dj5t602.js → chunk-7wegz81g.js} +1 -1
  90. package/dist/{chunk-7wm5s02e.js → chunk-7yexhdjs.js} +1 -1
  91. package/dist/{chunk-51pjmydp.js → chunk-88k0rgdp.js} +11 -11
  92. package/dist/{chunk-a4vds27m.js → chunk-8a1jee0e.js} +2 -2
  93. package/dist/{chunk-kd5k97vr.js → chunk-8ady2sm4.js} +10 -28
  94. package/dist/chunk-8jmkpx1h.js +123 -0
  95. package/dist/{chunk-1h6cfybr.js → chunk-8m1gfrme.js} +14 -14
  96. package/dist/{chunk-7sgtxrsc.js → chunk-8q5fzyem.js} +10 -8
  97. package/dist/{chunk-zzm33q8x.js → chunk-8r1napm7.js} +1 -1
  98. package/dist/{chunk-cdz5yb0r.js → chunk-9029sbq1.js} +1 -1
  99. package/dist/{chunk-y1784krc.js → chunk-92wwx9vf.js} +2 -2
  100. package/dist/{chunk-7ekgfz41.js → chunk-93hxjnkb.js} +78 -78
  101. package/dist/{chunk-7v42bsr9.js → chunk-93kvs6fh.js} +6 -6
  102. package/dist/{chunk-7ep76qfm.js → chunk-9b71sn2g.js} +41 -41
  103. package/dist/{chunk-mjgzpvks.js → chunk-9drwsb3g.js} +80 -80
  104. package/dist/{chunk-frnaaxw8.js → chunk-9p62r6he.js} +6 -6
  105. package/dist/{chunk-e86wz4cn.js → chunk-9re786wa.js} +40 -40
  106. package/dist/{chunk-hp00gn9k.js → chunk-9rhy5vt7.js} +9 -9
  107. package/dist/chunk-9xq7ef8y.js +100 -0
  108. package/dist/chunk-9ydxqdhe.js +121 -0
  109. package/dist/{chunk-45fm4zby.js → chunk-a00gfn8e.js} +2 -2
  110. package/dist/{chunk-qt5e2evw.js → chunk-a1mewckj.js} +78 -78
  111. package/dist/{chunk-k8vp0atq.js → chunk-a3qtafgw.js} +79 -79
  112. package/dist/chunk-ab6apbd2.js +140 -0
  113. package/dist/{chunk-d4mdda98.js → chunk-apjnwens.js} +8 -8
  114. package/dist/{chunk-ddsjkqs4.js → chunk-b1hygym1.js} +8 -8
  115. package/dist/{chunk-qatfdxvd.js → chunk-b610qrvk.js} +3 -3
  116. package/dist/{chunk-83pxcp3r.js → chunk-bbhg7m1a.js} +79 -79
  117. package/dist/{chunk-83hfzbx3.js → chunk-bdhdmkya.js} +1 -1
  118. package/dist/chunk-bdrsheny.js +35 -0
  119. package/dist/{chunk-vyjeh50y.js → chunk-bktmgb4n.js} +68 -39
  120. package/dist/{chunk-feyzykye.js → chunk-bq0wp28e.js} +1 -1
  121. package/dist/{chunk-0vp3wfab.js → chunk-bs9rn85s.js} +1 -1
  122. package/dist/{chunk-q41bvf6v.js → chunk-bstyysxw.js} +3 -3
  123. package/dist/{chunk-yyex5gsf.js → chunk-bta8w8ge.js} +10 -10
  124. package/dist/chunk-bvfqg3cg.js +131 -0
  125. package/dist/{chunk-zpnrabf3.js → chunk-bw8y1msy.js} +5 -5
  126. package/dist/{chunk-hxavvf2h.js → chunk-c2k1n6yb.js} +41 -335
  127. package/dist/{chunk-rgk6mfwe.js → chunk-c6gpdd2c.js} +78 -78
  128. package/dist/{chunk-tmjt0nae.js → chunk-cajjdb7j.js} +4 -4
  129. package/dist/{chunk-5hnhres8.js → chunk-ccdh8eh2.js} +38 -38
  130. package/dist/{chunk-57qr194r.js → chunk-cfpnb7x4.js} +78 -78
  131. package/dist/{chunk-9t6ktd1k.js → chunk-cgzq4zww.js} +4 -4
  132. package/dist/chunk-cj0j4n23.js +71 -0
  133. package/dist/{chunk-0731m51q.js → chunk-ckrs789w.js} +1 -1
  134. package/dist/{chunk-ejjp1fy1.js → chunk-cqb31tfg.js} +6 -6
  135. package/dist/{chunk-zx09tq9a.js → chunk-cx21etb2.js} +2 -2
  136. package/dist/chunk-cynnhyy3.js +103 -0
  137. package/dist/chunk-d0zx5hba.js +85 -0
  138. package/dist/{chunk-svx8h8tt.js → chunk-d2cypdsx.js} +23 -23
  139. package/dist/{chunk-1h2famwb.js → chunk-d99k9r9g.js} +1 -1
  140. package/dist/{chunk-mn96ajge.js → chunk-dg2k597k.js} +9 -9
  141. package/dist/{chunk-ewadzrm8.js → chunk-dh01e4bp.js} +2 -2
  142. package/dist/{chunk-ztc0wy8h.js → chunk-dmp3nd67.js} +90 -90
  143. package/dist/{chunk-43rp9zbk.js → chunk-dv38yqdn.js} +3 -3
  144. package/dist/{chunk-bwtw1cbj.js → chunk-dy8278wt.js} +7 -7
  145. package/dist/{chunk-fryfy1ac.js → chunk-dzcb2ekz.js} +4 -4
  146. package/dist/{chunk-0z7km4rh.js → chunk-e01rphq3.js} +114 -117
  147. package/dist/{chunk-gtn3b2xr.js → chunk-e22at2jn.js} +4 -4
  148. package/dist/chunk-e6s584g7.js +77 -0
  149. package/dist/{chunk-a9jh9m0x.js → chunk-e7j6g62d.js} +9 -9
  150. package/dist/chunk-e90dyenj.js +127 -0
  151. package/dist/{chunk-eeag0gpw.js → chunk-eb4t4ehh.js} +6 -6
  152. package/dist/{chunk-p4k5pzge.js → chunk-ej882sb5.js} +27 -33
  153. package/dist/{chunk-aejyn03k.js → chunk-ekewg3tj.js} +4 -4
  154. package/dist/chunk-em5s71j6.js +89 -0
  155. package/dist/chunk-eqcgr89w.js +646 -0
  156. package/dist/{chunk-5zqatqff.js → chunk-et3jfht8.js} +13 -13
  157. package/dist/{chunk-qp2qdcda.js → chunk-eta5aekm.js} +9 -30
  158. package/dist/{chunk-6xe15dps.js → chunk-ewsvbzhz.js} +3 -3
  159. package/dist/{chunk-hd6rkyjg.js → chunk-eynfddhq.js} +143 -144
  160. package/dist/{chunk-66zry909.js → chunk-f517h74h.js} +1 -1
  161. package/dist/{chunk-4pbx3g7s.js → chunk-f79jyxwd.js} +4 -4
  162. package/dist/{chunk-hwfknpxv.js → chunk-f9ybfyyp.js} +2 -2
  163. package/dist/chunk-f9zvs66e.js +105 -0
  164. package/dist/{chunk-7aw745vx.js → chunk-fdwtd6s9.js} +3 -3
  165. package/dist/{chunk-2jdbfhb2.js → chunk-fefs2xby.js} +25 -25
  166. package/dist/{chunk-jzthz1bx.js → chunk-fpq87r80.js} +1 -1
  167. package/dist/{chunk-c25z9zmd.js → chunk-fqr6n9z6.js} +3 -3
  168. package/dist/{chunk-s8kj6ajy.js → chunk-fr5s5ceq.js} +2 -2
  169. package/dist/chunk-gaf31961.js +81 -0
  170. package/dist/{chunk-64c1avct.js → chunk-gbvmks09.js} +1 -1
  171. package/dist/{chunk-y4ca9kqz.js → chunk-ggk84sc5.js} +4 -4
  172. package/dist/chunk-gkz2djp0.js +121 -0
  173. package/dist/{chunk-grd58s24.js → chunk-gm8ht8g9.js} +6 -6
  174. package/dist/{chunk-6vrbnjz8.js → chunk-gt43z5zd.js} +81 -81
  175. package/dist/chunk-gwktnbeg.js +90 -0
  176. package/dist/{chunk-xv3era3s.js → chunk-gxsrvxjn.js} +1 -1
  177. package/dist/chunk-h0bgwz9v.js +55 -0
  178. package/dist/{chunk-tzfd1egv.js → chunk-h1tv19q0.js} +80 -80
  179. package/dist/chunk-h3v46eky.js +105 -0
  180. package/dist/{chunk-vtxskzvg.js → chunk-h4tnp6dw.js} +7 -7
  181. package/dist/{chunk-sm9q19ws.js → chunk-h8n0a991.js} +79 -79
  182. package/dist/{chunk-gp605hkw.js → chunk-hbz8xggv.js} +11 -11
  183. package/dist/{chunk-v78fj8by.js → chunk-he9zw1gh.js} +2 -2
  184. package/dist/{chunk-asenzcq2.js → chunk-hgb8024k.js} +8 -8
  185. package/dist/{chunk-8sxpmxaj.js → chunk-hhvf84fa.js} +193 -195
  186. package/dist/chunk-hycm92ss.js +52 -0
  187. package/dist/{chunk-kwkcmv5p.js → chunk-j0bfbce5.js} +36 -36
  188. package/dist/{chunk-efr7hp9d.js → chunk-j15xyew5.js} +4 -4
  189. package/dist/chunk-j3c5r08n.js +87 -0
  190. package/dist/chunk-j3q2sbhc.js +107 -0
  191. package/dist/{chunk-rh5v7hf7.js → chunk-j77g2v22.js} +5 -5
  192. package/dist/{chunk-ps49ymvj.js → chunk-ja1nqz5q.js} +2 -2
  193. package/dist/{chunk-x66axbfx.js → chunk-ja23mty8.js} +83 -83
  194. package/dist/{chunk-c2he84t1.js → chunk-jrqjxhxj.js} +2 -2
  195. package/dist/{chunk-87xg6yb4.js → chunk-jsvsnqkn.js} +2 -2
  196. package/dist/{chunk-b71fc01f.js → chunk-jw9zwgea.js} +4 -4
  197. package/dist/{chunk-we205f8x.js → chunk-jwqveqpr.js} +9 -9
  198. package/dist/{chunk-v4dh4hcd.js → chunk-k0dprbnn.js} +78 -78
  199. package/dist/{chunk-2h6f45jx.js → chunk-k3gvjjm9.js} +5 -5
  200. package/dist/{chunk-2fwze72g.js → chunk-k6cq3j7z.js} +1 -1
  201. package/dist/{chunk-x7fdwq3d.js → chunk-k6wmp81y.js} +1 -1
  202. package/dist/{chunk-e8xjcdk1.js → chunk-k8by1vfd.js} +19 -19
  203. package/dist/chunk-k9h7kjf6.js +8 -0
  204. package/dist/chunk-karea2z2.js +89 -0
  205. package/dist/{chunk-wa8yn2p0.js → chunk-kcp41jcn.js} +2 -2
  206. package/dist/{chunk-g7qtsqk8.js → chunk-khwhppzs.js} +2 -2
  207. package/dist/{chunk-68ffk5qa.js → chunk-kjx9a9p4.js} +2 -2
  208. package/dist/chunk-kra9y8qb.js +97 -0
  209. package/dist/{chunk-j5bth84e.js → chunk-kt25n52f.js} +4 -4
  210. package/dist/{chunk-c5hr98qm.js → chunk-m12e2wq3.js} +80 -80
  211. package/dist/{chunk-h9n54swm.js → chunk-m13ptmf2.js} +2 -2
  212. package/dist/{chunk-4jm600zv.js → chunk-m6vs965c.js} +1 -1
  213. package/dist/{chunk-0vz3p22g.js → chunk-m82ketm1.js} +78 -78
  214. package/dist/{chunk-kpr0q6sr.js → chunk-m8qvkabg.js} +4 -4
  215. package/dist/{chunk-wqdfck13.js → chunk-ma6x4ws8.js} +46 -46
  216. package/dist/{chunk-c54cp070.js → chunk-mbfzfg56.js} +85 -85
  217. package/dist/{chunk-2jzpw1pf.js → chunk-mtstpt1e.js} +43 -43
  218. package/dist/chunk-mwzwm2z2.js +60 -0
  219. package/dist/{chunk-w28t9jy7.js → chunk-myac8yfs.js} +5 -5
  220. package/dist/{chunk-a7gk9w5h.js → chunk-n3vmrzcy.js} +5 -5
  221. package/dist/chunk-n535j168.js +131 -0
  222. package/dist/{chunk-v9smspw2.js → chunk-n9ne98cj.js} +5 -4
  223. package/dist/{chunk-fq5vhqx0.js → chunk-n9xhrzxs.js} +78 -78
  224. package/dist/{chunk-s43qhc1v.js → chunk-ngde5k9k.js} +79 -79
  225. package/dist/{chunk-a7fqavjt.js → chunk-nsxw4b3j.js} +8 -8
  226. package/dist/{chunk-9pnc5v9y.js → chunk-nwdpjkrw.js} +78 -78
  227. package/dist/{chunk-sd36yzx8.js → chunk-nztayqyx.js} +1 -1
  228. package/dist/{chunk-db92x7yq.js → chunk-p0n9ew4x.js} +4 -4
  229. package/dist/{chunk-ehtwnxpg.js → chunk-p4e5ymdw.js} +1 -1
  230. package/dist/{chunk-cnsj3vq2.js → chunk-p8hn07q2.js} +1 -1
  231. package/dist/chunk-p9nkqgej.js +19 -0
  232. package/dist/{chunk-agfhxmaa.js → chunk-pg4fbhbm.js} +11 -11
  233. package/dist/{chunk-qd5n2h9f.js → chunk-pg8asjpk.js} +20 -20
  234. package/dist/chunk-pgptefy1.js +114 -0
  235. package/dist/chunk-pjn0s3j1.js +111 -0
  236. package/dist/chunk-pkwv0q5q.js +91 -0
  237. package/dist/{chunk-netzwgv1.js → chunk-pnc7q9rt.js} +1 -1
  238. package/dist/{chunk-xeb6075z.js → chunk-pnrdvxhy.js} +2 -2
  239. package/dist/{chunk-5dpys8tw.js → chunk-pp5zbnpr.js} +80 -80
  240. package/dist/{chunk-gq2ty76e.js → chunk-pqf2bjy1.js} +4 -4
  241. package/dist/{chunk-3fhrs3qm.js → chunk-pqxyft7d.js} +8 -8
  242. package/dist/{chunk-2k3y6fnp.js → chunk-pt1jzmkv.js} +2 -2
  243. package/dist/{chunk-vdagxf3w.js → chunk-pt6vj628.js} +9 -9
  244. package/dist/{chunk-c7jwbe76.js → chunk-pyn4ry36.js} +103 -57
  245. package/dist/{chunk-3b2t95m2.js → chunk-q53kkzhr.js} +80 -80
  246. package/dist/chunk-q6m9qgaa.js +88 -0
  247. package/dist/{chunk-p8na2wwp.js → chunk-q74fcthe.js} +2 -2
  248. package/dist/{chunk-zthjz9rz.js → chunk-q8t0ym9s.js} +83 -83
  249. package/dist/{chunk-mcws22k3.js → chunk-q9y73cmh.js} +1 -1
  250. package/dist/{chunk-fajg8x36.js → chunk-qbbf7rr5.js} +1818 -727
  251. package/dist/{chunk-qb6k2afy.js → chunk-qka6pqrq.js} +11 -11
  252. package/dist/{chunk-0paqc2yw.js → chunk-qqc3b97c.js} +1 -1
  253. package/dist/{chunk-t9p85zff.js → chunk-qrdbqeve.js} +2 -2
  254. package/dist/{chunk-96thjkqe.js → chunk-qrgxbrs9.js} +1958 -3027
  255. package/dist/{chunk-etnkcek5.js → chunk-qs4stpt5.js} +14 -14
  256. package/dist/{chunk-b1kcd3ss.js → chunk-r055z03k.js} +1 -1
  257. package/dist/{chunk-ns7x6xam.js → chunk-r1q9s5hs.js} +13 -10
  258. package/dist/{chunk-b8zcqbbd.js → chunk-r27tskss.js} +11 -9
  259. package/dist/{chunk-etdt1xz3.js → chunk-r4pq77kb.js} +3 -3
  260. package/dist/{chunk-5z28bqne.js → chunk-r585pc0g.js} +4 -3
  261. package/dist/chunk-r82c7gfc.js +58 -0
  262. package/dist/{chunk-aejj9p9y.js → chunk-ra9hbfyz.js} +3 -3
  263. package/dist/{chunk-jnqvh4rm.js → chunk-rfj6gjwh.js} +15 -15
  264. package/dist/{chunk-qkczt8cr.js → chunk-rgaedd84.js} +5 -5
  265. package/dist/chunk-rgshryeb.js +93 -0
  266. package/dist/chunk-rk2kb2ec.js +101 -0
  267. package/dist/{chunk-x6r4v44b.js → chunk-rpta0rqz.js} +1 -1
  268. package/dist/{chunk-2gzv8nrw.js → chunk-rrtpbztr.js} +4 -3
  269. package/dist/{chunk-qhsd552n.js → chunk-rx9ypbjy.js} +8 -8
  270. package/dist/{chunk-3ecxxh0v.js → chunk-rzk001ay.js} +85 -85
  271. package/dist/{chunk-je14p1p5.js → chunk-rzn9w8p2.js} +3 -3
  272. package/dist/chunk-s0p653k2.js +93 -0
  273. package/dist/{chunk-mbz52548.js → chunk-s13y3w7e.js} +36 -36
  274. package/dist/{chunk-634c89zh.js → chunk-s201s689.js} +18 -18
  275. package/dist/{chunk-wvxaaw85.js → chunk-s5arr49c.js} +11 -200
  276. package/dist/{chunk-ytw7cet7.js → chunk-s7tq4e5g.js} +78 -78
  277. package/dist/{chunk-98hsxvwg.js → chunk-s9906sac.js} +83 -83
  278. package/dist/{chunk-kgk4p214.js → chunk-s9jxtj04.js} +103 -103
  279. package/dist/{chunk-j7ptfetg.js → chunk-sbe9zd56.js} +6 -6
  280. package/dist/chunk-skypjdyc.js +147 -0
  281. package/dist/{chunk-fbv4apne.js → chunk-snd4pbkp.js} +1 -1
  282. package/dist/{chunk-7xee389k.js → chunk-sthmb4xf.js} +78 -78
  283. package/dist/{chunk-1gx78081.js → chunk-t3yc7m07.js} +1 -1
  284. package/dist/{chunk-2avrzsjc.js → chunk-t83amzhd.js} +12 -12
  285. package/dist/{chunk-hqdwr6mz.js → chunk-t8chhacb.js} +2 -2
  286. package/dist/{chunk-k0p9w03v.js → chunk-taqr0qw1.js} +3 -3
  287. package/dist/{chunk-e0pv7mxq.js → chunk-tdf3ha9b.js} +79 -79
  288. package/dist/{chunk-8g5pe1gr.js → chunk-tevzn1xp.js} +1 -1
  289. package/dist/chunk-tgayhxvz.js +41 -0
  290. package/dist/{chunk-j64ga6ta.js → chunk-tkbwrjte.js} +325 -284
  291. package/dist/{chunk-qsxj0kfc.js → chunk-tmye4d2k.js} +15 -15
  292. package/dist/{chunk-55raexh7.js → chunk-tnpk0ne1.js} +2458 -1002
  293. package/dist/{chunk-vfszgkkq.js → chunk-tnv92c5m.js} +80 -80
  294. package/dist/{chunk-jd32zbps.js → chunk-trm02xde.js} +2 -2
  295. package/dist/{chunk-zkyqgt3m.js → chunk-tyc5c0q4.js} +8 -8
  296. package/dist/{chunk-jbv0d2xg.js → chunk-v2szqm5g.js} +5 -5
  297. package/dist/{chunk-7p9xptww.js → chunk-v8k67zfz.js} +1123 -388
  298. package/dist/{chunk-0fjwyhtj.js → chunk-v9sy0cj3.js} +10 -10
  299. package/dist/{chunk-p7vkh4wx.js → chunk-vbe1ersf.js} +1 -1
  300. package/dist/{chunk-xe47nxbq.js → chunk-vd5dh925.js} +78 -78
  301. package/dist/{chunk-cfvgegjj.js → chunk-vnrevqdf.js} +4 -4
  302. package/dist/{chunk-q9pw9pca.js → chunk-vq4k182g.js} +5 -5
  303. package/dist/chunk-vr5vyt2h.js +107 -0
  304. package/dist/{chunk-tbhsqgh4.js → chunk-vv84k232.js} +5 -5
  305. package/dist/chunk-vvjhax8n.js +114 -0
  306. package/dist/chunk-vvsts2t9.js +30 -0
  307. package/dist/{chunk-ymxwas49.js → chunk-vwkb146r.js} +90 -90
  308. package/dist/{chunk-7bz03dax.js → chunk-vwt2fv6j.js} +3 -3
  309. package/dist/{chunk-5vzqvgea.js → chunk-vx28ztc7.js} +20 -20
  310. package/dist/{chunk-g9f19ttm.js → chunk-vxsad4bw.js} +2 -2
  311. package/dist/chunk-w287mz4p.js +146 -0
  312. package/dist/{chunk-sd8209pb.js → chunk-w2bff8pq.js} +12 -92
  313. package/dist/{chunk-grbjajg5.js → chunk-w60c0dkw.js} +5 -5
  314. package/dist/chunk-wa852b5b.js +113 -0
  315. package/dist/{chunk-7xyswgjh.js → chunk-wfh12nzh.js} +1 -1
  316. package/dist/{chunk-vf612n57.js → chunk-wt799fvk.js} +34 -34
  317. package/dist/{chunk-qajrkk97.js → chunk-wwrswxg1.js} +1 -1
  318. package/dist/{chunk-afbvx9ey.js → chunk-wyyd1qfn.js} +81 -81
  319. package/dist/{chunk-6sdx75d8.js → chunk-x09aacvx.js} +5 -5
  320. package/dist/{chunk-fhej4f56.js → chunk-x4x3691j.js} +12 -12
  321. package/dist/chunk-xbpt4dv8.js +155 -0
  322. package/dist/{chunk-rn0v1hk8.js → chunk-xdxdztxa.js} +1 -1
  323. package/dist/{chunk-fdhbpqkt.js → chunk-xggbj4j9.js} +3 -3
  324. package/dist/chunk-xj72jfpd.js +33 -0
  325. package/dist/{chunk-2nya3j5t.js → chunk-xj8tk3d7.js} +3 -3
  326. package/dist/{chunk-0a8mnxpe.js → chunk-xkra2684.js} +85 -90
  327. package/dist/{chunk-2671jfzz.js → chunk-xm9zf0tv.js} +78 -78
  328. package/dist/chunk-xwbh3j1x.js +107 -0
  329. package/dist/chunk-xwrar1c5.js +97 -0
  330. package/dist/{chunk-14xjyt14.js → chunk-xygy5v97.js} +30 -30
  331. package/dist/{chunk-xycbvwy2.js → chunk-xyzbgjpv.js} +2 -2
  332. package/dist/{chunk-2tm611h9.js → chunk-y83gxqvc.js} +3 -3
  333. package/dist/{chunk-9an46bhy.js → chunk-y8b45mt2.js} +4 -4
  334. package/dist/{chunk-yd5sv0na.js → chunk-ycpdfeya.js} +79 -79
  335. package/dist/{chunk-4v6h9fhy.js → chunk-yh46f77t.js} +78 -78
  336. package/dist/{chunk-p620jjt8.js → chunk-ykvf93ft.js} +79 -79
  337. package/dist/{chunk-26wtxbdc.js → chunk-ynx3fetd.js} +1222 -463
  338. package/dist/{chunk-vkcqcmdv.js → chunk-yp64t9je.js} +8 -8
  339. package/dist/{chunk-eqp1rfft.js → chunk-ysfam81t.js} +2 -2
  340. package/dist/chunk-yt9mady7.js +36 -0
  341. package/dist/{chunk-hc158qrt.js → chunk-yteprw63.js} +26 -26
  342. package/dist/{chunk-9d13k3m6.js → chunk-ytt8da3v.js} +81 -81
  343. package/dist/{chunk-5xt8w19j.js → chunk-yvm9t98e.js} +7 -18
  344. package/dist/{chunk-c7c3t5kg.js → chunk-z7yj7dfh.js} +10 -10
  345. package/dist/{chunk-5mxbpsb4.js → chunk-z8b8f2n3.js} +79 -79
  346. package/dist/{chunk-96523fnw.js → chunk-z8n8cjhz.js} +2 -2
  347. package/dist/{chunk-5ccdsxgy.js → chunk-z9v4bxrj.js} +3 -3
  348. package/dist/{chunk-9k9th7xv.js → chunk-zat7q2e0.js} +79 -79
  349. package/dist/chunk-zfxp82tk.js +24 -0
  350. package/dist/chunk-zgkngrp4.js +54 -0
  351. package/dist/{chunk-h6bgcfma.js → chunk-zhnnzkzm.js} +14 -14
  352. package/dist/{chunk-2jyvw1vd.js → chunk-zp5nvg44.js} +2 -2
  353. package/dist/{chunk-1a5w7wdt.js → chunk-zqajmq38.js} +6 -6
  354. package/dist/{chunk-v1kzp02e.js → chunk-zx9r7a23.js} +1 -1
  355. package/dist/cli.js +11 -11
  356. package/dist/gateway/worker.js +23440 -21268
  357. package/dist/sdk/query.cjs +8 -18
  358. package/dist/sdk/query.js +1 -1
  359. package/package.json +128 -128
  360. package/dist/chunk-07nc7v02.js +0 -121
  361. package/dist/chunk-0m45arzy.js +0 -101
  362. package/dist/chunk-0m6r5xry.js +0 -133
  363. package/dist/chunk-24s7fatk.js +0 -52
  364. package/dist/chunk-2apvtmkd.js +0 -30
  365. package/dist/chunk-3b8bwc0r.js +0 -130
  366. package/dist/chunk-3cmhd7fz.js +0 -93
  367. package/dist/chunk-3g03wcny.js +0 -107
  368. package/dist/chunk-3mgywd32.js +0 -8
  369. package/dist/chunk-405v2pq2.js +0 -2186
  370. package/dist/chunk-485en4m4.js +0 -105
  371. package/dist/chunk-4fvbhs6s.js +0 -97
  372. package/dist/chunk-510y033v.js +0 -91
  373. package/dist/chunk-657y059h.js +0 -41
  374. package/dist/chunk-6w51dnv1.js +0 -35
  375. package/dist/chunk-84hebfv5.js +0 -97
  376. package/dist/chunk-85hp74zz.js +0 -121
  377. package/dist/chunk-865gwyhc.js +0 -100
  378. package/dist/chunk-8y55mc4q.js +0 -20
  379. package/dist/chunk-amkyhs41.js +0 -93
  380. package/dist/chunk-av6sfjhb.js +0 -107
  381. package/dist/chunk-b66hjndz.js +0 -103
  382. package/dist/chunk-c01dn3n0.js +0 -58
  383. package/dist/chunk-c6sjhj89.js +0 -1284
  384. package/dist/chunk-cg185b3s.js +0 -71
  385. package/dist/chunk-ckg9f3bq.js +0 -111
  386. package/dist/chunk-ckx8wtr1.js +0 -60
  387. package/dist/chunk-d348dy5e.js +0 -89
  388. package/dist/chunk-dd3fkytw.js +0 -90
  389. package/dist/chunk-df4rn6zx.js +0 -131
  390. package/dist/chunk-djna15b0.js +0 -55
  391. package/dist/chunk-eszdke28.js +0 -33
  392. package/dist/chunk-eyys9mkd.js +0 -36
  393. package/dist/chunk-f5f76rs0.js +0 -122
  394. package/dist/chunk-fhwnqkps.js +0 -114
  395. package/dist/chunk-fkttqetc.js +0 -77
  396. package/dist/chunk-gdwdqewd.js +0 -19
  397. package/dist/chunk-gfvab3pt.js +0 -146
  398. package/dist/chunk-gnhr6m0v.js +0 -91
  399. package/dist/chunk-gq4ptzy4.js +0 -50
  400. package/dist/chunk-gt5qmg5w.js +0 -121
  401. package/dist/chunk-h3rtwnzt.js +0 -27
  402. package/dist/chunk-h5kqbyza.js +0 -85
  403. package/dist/chunk-h8e89948.js +0 -24
  404. package/dist/chunk-hm185n1k.js +0 -105
  405. package/dist/chunk-ht2vfyw7.js +0 -127
  406. package/dist/chunk-j1jcmemq.js +0 -155
  407. package/dist/chunk-jch08yr8.js +0 -107
  408. package/dist/chunk-ng3tkgf2.js +0 -90
  409. package/dist/chunk-pxqvh94k.js +0 -88
  410. package/dist/chunk-qjr6jsys.js +0 -89
  411. package/dist/chunk-qk9hhrzj.js +0 -114
  412. package/dist/chunk-qnfx3qtx.js +0 -617
  413. package/dist/chunk-r9fbv9wd.js +0 -94
  414. package/dist/chunk-rnmravvv.js +0 -148
  415. package/dist/chunk-sactn8fj.js +0 -92
  416. package/dist/chunk-sq32fw07.js +0 -101
  417. package/dist/chunk-sqq17sk1.js +0 -55
  418. package/dist/chunk-t0fqphva.js +0 -123
  419. package/dist/chunk-t5b0h3vc.js +0 -54
  420. package/dist/chunk-vgn0fyes.js +0 -145
  421. package/dist/chunk-vkaz7qe2.js +0 -113
  422. package/dist/chunk-wd531rah.js +0 -140
  423. package/dist/chunk-wrtabh03.js +0 -81
  424. package/dist/chunk-x43vg58b.js +0 -87
  425. package/dist/chunk-xf4d0bmf.js +0 -105
  426. package/dist/chunk-xqa13w46.js +0 -71
  427. package/dist/chunk-xxahhkz2.js +0 -38
@@ -1,16 +1,16 @@
1
1
  // @bun
2
2
  import {
3
3
  require_src
4
- } from "./chunk-b0kf00ff.js";
4
+ } from "./chunk-6d05fvxz.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __esm,
8
8
  __export,
9
9
  __require,
10
10
  __toESM
11
- } from "./chunk-qp2qdcda.js";
11
+ } from "./chunk-eta5aekm.js";
12
12
 
13
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/bind.js
13
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/bind.js
14
14
  function bind(fn, thisArg) {
15
15
  return function wrap() {
16
16
  return fn.apply(thisArg, arguments);
@@ -18,7 +18,7 @@ function bind(fn, thisArg) {
18
18
  }
19
19
  var init_bind = () => {};
20
20
 
21
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/utils.js
21
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/utils.js
22
22
  function isBuffer(val) {
23
23
  return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
24
24
  }
@@ -84,16 +84,17 @@ function findKey(obj, key) {
84
84
  }
85
85
  return null;
86
86
  }
87
- function merge() {
87
+ function merge(...objs) {
88
88
  const { caseless, skipUndefined } = isContextDefined(this) && this || {};
89
89
  const result = {};
90
90
  const assignValue = (val, key) => {
91
91
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
92
92
  return;
93
93
  }
94
- const targetKey = caseless && findKey(result, key) || key;
95
- if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
96
- result[targetKey] = merge(result[targetKey], val);
94
+ const targetKey = caseless && typeof key === "string" && findKey(result, key) || key;
95
+ const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : undefined;
96
+ if (isPlainObject(existing) && isPlainObject(val)) {
97
+ result[targetKey] = merge(existing, val);
97
98
  } else if (isPlainObject(val)) {
98
99
  result[targetKey] = merge({}, val);
99
100
  } else if (isArray(val)) {
@@ -102,23 +103,51 @@ function merge() {
102
103
  result[targetKey] = val;
103
104
  }
104
105
  };
105
- for (let i = 0, l = arguments.length;i < l; i++) {
106
- arguments[i] && forEach(arguments[i], assignValue);
106
+ for (let i = 0, l = objs.length;i < l; i++) {
107
+ const source = objs[i];
108
+ if (!source || isBuffer(source)) {
109
+ continue;
110
+ }
111
+ forEach(source, assignValue);
112
+ if (typeof source !== "object" || isArray(source)) {
113
+ continue;
114
+ }
115
+ const symbols = Object.getOwnPropertySymbols(source);
116
+ for (let j = 0;j < symbols.length; j++) {
117
+ const symbol = symbols[j];
118
+ if (propertyIsEnumerable.call(source, symbol)) {
119
+ assignValue(source[symbol], symbol);
120
+ }
121
+ }
107
122
  }
108
123
  return result;
109
124
  }
110
125
  function isSpecCompliantForm(thing) {
111
126
  return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
112
127
  }
113
- var toString, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type) => {
128
+ var toString, getPrototypeOf, iterator, toStringTag, hasOwnProperty, hasOwnInPrototypeChain = (thing, prop) => {
129
+ let obj = thing;
130
+ const seen = [];
131
+ while (obj != null && obj !== Object.prototype) {
132
+ if (seen.indexOf(obj) !== -1) {
133
+ return false;
134
+ }
135
+ seen.push(obj);
136
+ if (hasOwnProperty(obj, prop)) {
137
+ return true;
138
+ }
139
+ obj = getPrototypeOf(obj);
140
+ }
141
+ return false;
142
+ }, getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : undefined, kindOf, kindOfTest = (type) => {
114
143
  type = type.toLowerCase();
115
144
  return (thing) => kindOf(thing) === type;
116
145
  }, typeOfTest = (type) => (thing) => typeof thing === type, isArray, isUndefined, isArrayBuffer, isString, isFunction, isNumber, isObject = (thing) => thing !== null && typeof thing === "object", isBoolean = (thing) => thing === true || thing === false, isPlainObject = (val) => {
117
- if (kindOf(val) !== "object") {
146
+ if (!isObject(val)) {
118
147
  return false;
119
148
  }
120
149
  const prototype = getPrototypeOf(val);
121
- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
150
+ return (prototype === null || prototype === Object.prototype || getPrototypeOf(prototype) === null) && !hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
122
151
  }, isEmptyObject = (val) => {
123
152
  if (!isObject(val) || isBuffer(val)) {
124
153
  return false;
@@ -131,14 +160,24 @@ var toString, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type)
131
160
  }, isDate, isFile, isReactNativeBlob = (value) => {
132
161
  return !!(value && typeof value.uri !== "undefined");
133
162
  }, isReactNative = (formData) => formData && typeof formData.getParts !== "undefined", isBlob, isFileList, isStream = (val) => isObject(val) && isFunction(val.pipe), G, FormDataCtor, isFormData = (thing) => {
134
- let kind;
135
- return thing && (FormDataCtor && thing instanceof FormDataCtor || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
163
+ if (!thing)
164
+ return false;
165
+ if (FormDataCtor && thing instanceof FormDataCtor)
166
+ return true;
167
+ const proto = getPrototypeOf(thing);
168
+ if (!proto || proto === Object.prototype)
169
+ return false;
170
+ if (!isFunction(thing.append))
171
+ return false;
172
+ const kind = kindOf(thing);
173
+ return kind === "formdata" || kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]";
136
174
  }, isURLSearchParams, isReadableStream, isRequest, isResponse, isHeaders, trim = (str) => {
137
175
  return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
138
176
  }, _global, isContextDefined = (context) => !isUndefined(context) && context !== _global, extend = (a, b, thisArg, { allOwnKeys } = {}) => {
139
177
  forEach(b, (val, key) => {
140
178
  if (thisArg && isFunction(val)) {
141
179
  Object.defineProperty(a, key, {
180
+ __proto__: null,
142
181
  value: bind(val, thisArg),
143
182
  writable: true,
144
183
  enumerable: true,
@@ -146,6 +185,7 @@ var toString, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type)
146
185
  });
147
186
  } else {
148
187
  Object.defineProperty(a, key, {
188
+ __proto__: null,
149
189
  value: val,
150
190
  writable: true,
151
191
  enumerable: true,
@@ -162,12 +202,14 @@ var toString, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type)
162
202
  }, inherits = (constructor, superConstructor, props, descriptors) => {
163
203
  constructor.prototype = Object.create(superConstructor.prototype, descriptors);
164
204
  Object.defineProperty(constructor.prototype, "constructor", {
205
+ __proto__: null,
165
206
  value: constructor,
166
207
  writable: true,
167
208
  enumerable: false,
168
209
  configurable: true
169
210
  });
170
211
  Object.defineProperty(constructor, "super", {
212
+ __proto__: null,
171
213
  value: superConstructor.prototype
172
214
  });
173
215
  props && Object.assign(constructor.prototype, props);
@@ -232,7 +274,7 @@ var toString, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type)
232
274
  return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
233
275
  return p1.toUpperCase() + p2;
234
276
  });
235
- }, hasOwnProperty, isRegExp, reduceDescriptors = (obj, reducer) => {
277
+ }, propertyIsEnumerable, isRegExp, reduceDescriptors = (obj, reducer) => {
236
278
  const descriptors = Object.getOwnPropertyDescriptors(obj);
237
279
  const reducedDescriptors = {};
238
280
  forEach(descriptors, (descriptor, name) => {
@@ -244,7 +286,7 @@ var toString, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type)
244
286
  Object.defineProperties(obj, reducedDescriptors);
245
287
  }, freezeMethods = (obj) => {
246
288
  reduceDescriptors(obj, (descriptor, name) => {
247
- if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
289
+ if (isFunction(obj) && ["arguments", "caller", "callee"].includes(name)) {
248
290
  return false;
249
291
  }
250
292
  const value = obj[name];
@@ -273,35 +315,36 @@ var toString, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type)
273
315
  }, noop = () => {}, toFiniteNumber = (value, defaultValue) => {
274
316
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
275
317
  }, toJSONObject = (obj) => {
276
- const stack = new Array(10);
277
- const visit = (source, i) => {
318
+ const visited = new WeakSet;
319
+ const visit = (source) => {
278
320
  if (isObject(source)) {
279
- if (stack.indexOf(source) >= 0) {
321
+ if (visited.has(source)) {
280
322
  return;
281
323
  }
282
324
  if (isBuffer(source)) {
283
325
  return source;
284
326
  }
285
327
  if (!("toJSON" in source)) {
286
- stack[i] = source;
328
+ visited.add(source);
287
329
  const target = isArray(source) ? [] : {};
288
330
  forEach(source, (value, key) => {
289
- const reducedValue = visit(value, i + 1);
331
+ const reducedValue = visit(value);
290
332
  !isUndefined(reducedValue) && (target[key] = reducedValue);
291
333
  });
292
- stack[i] = undefined;
334
+ visited.delete(source);
293
335
  return target;
294
336
  }
295
337
  }
296
338
  return source;
297
339
  };
298
- return visit(obj, 0);
299
- }, isAsyncFn, isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch), _setImmediate, asap, isIterable = (thing) => thing != null && isFunction(thing[iterator]), utils_default;
340
+ return visit(obj);
341
+ }, isAsyncFn, isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch), _setImmediate, asap, isIterable = (thing) => thing != null && isFunction(thing[iterator]), isSafeIterable = (thing) => thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing), utils_default;
300
342
  var init_utils = __esm(() => {
301
343
  init_bind();
302
344
  ({ toString } = Object.prototype);
303
345
  ({ getPrototypeOf } = Object);
304
346
  ({ iterator, toStringTag } = Symbol);
347
+ hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
305
348
  kindOf = ((cache) => (thing) => {
306
349
  const str = toString.call(thing);
307
350
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
@@ -336,7 +379,7 @@ var init_utils = __esm(() => {
336
379
  };
337
380
  })(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
338
381
  isHTMLForm = kindOfTest("HTMLFormElement");
339
- hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
382
+ ({ propertyIsEnumerable } = Object.prototype);
340
383
  isRegExp = kindOfTest("RegExp");
341
384
  isAsyncFn = kindOfTest("AsyncFunction");
342
385
  _setImmediate = ((setImmediateSupported, postMessageSupported) => {
@@ -400,6 +443,8 @@ var init_utils = __esm(() => {
400
443
  isHTMLForm,
401
444
  hasOwnProperty,
402
445
  hasOwnProp: hasOwnProperty,
446
+ hasOwnInPrototypeChain,
447
+ getSafeProp,
403
448
  reduceDescriptors,
404
449
  freezeMethods,
405
450
  toObjectSet,
@@ -415,203 +460,610 @@ var init_utils = __esm(() => {
415
460
  isThenable,
416
461
  setImmediate: _setImmediate,
417
462
  asap,
418
- isIterable
463
+ isIterable,
464
+ isSafeIterable
419
465
  };
420
466
  });
421
467
 
422
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/core/AxiosError.js
423
- var AxiosError, AxiosError_default;
424
- var init_AxiosError = __esm(() => {
425
- init_utils();
426
- AxiosError = class AxiosError extends Error {
427
- static from(error, code, config, request, response, customProps) {
428
- const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
429
- axiosError.cause = error;
430
- axiosError.name = error.name;
431
- if (error.status != null && axiosError.status == null) {
432
- axiosError.status = error.status;
433
- }
434
- customProps && Object.assign(axiosError, customProps);
435
- return axiosError;
468
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/parseHeaders.js
469
+ var ignoreDuplicateOf, parseHeaders_default = (rawHeaders) => {
470
+ const parsed = {};
471
+ let key;
472
+ let val;
473
+ let i;
474
+ rawHeaders && rawHeaders.split(`
475
+ `).forEach(function parser(line) {
476
+ i = line.indexOf(":");
477
+ key = line.substring(0, i).trim().toLowerCase();
478
+ val = line.substring(i + 1).trim();
479
+ if (!key || parsed[key] && ignoreDuplicateOf[key]) {
480
+ return;
436
481
  }
437
- constructor(message, code, config, request, response) {
438
- super(message);
439
- Object.defineProperty(this, "message", {
440
- value: message,
441
- enumerable: true,
442
- writable: true,
443
- configurable: true
444
- });
445
- this.name = "AxiosError";
446
- this.isAxiosError = true;
447
- code && (this.code = code);
448
- config && (this.config = config);
449
- request && (this.request = request);
450
- if (response) {
451
- this.response = response;
452
- this.status = response.status;
482
+ if (key === "set-cookie") {
483
+ if (parsed[key]) {
484
+ parsed[key].push(val);
485
+ } else {
486
+ parsed[key] = [val];
453
487
  }
488
+ } else {
489
+ parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
454
490
  }
455
- toJSON() {
456
- return {
457
- message: this.message,
458
- name: this.name,
459
- description: this.description,
460
- number: this.number,
461
- fileName: this.fileName,
462
- lineNumber: this.lineNumber,
463
- columnNumber: this.columnNumber,
464
- stack: this.stack,
465
- config: utils_default.toJSONObject(this.config),
466
- code: this.code,
467
- status: this.status
468
- };
469
- }
470
- };
471
- AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
472
- AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
473
- AxiosError.ECONNABORTED = "ECONNABORTED";
474
- AxiosError.ETIMEDOUT = "ETIMEDOUT";
475
- AxiosError.ERR_NETWORK = "ERR_NETWORK";
476
- AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
477
- AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
478
- AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
479
- AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
480
- AxiosError.ERR_CANCELED = "ERR_CANCELED";
481
- AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
482
- AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
483
- AxiosError_default = AxiosError;
491
+ });
492
+ return parsed;
493
+ };
494
+ var init_parseHeaders = __esm(() => {
495
+ init_utils();
496
+ ignoreDuplicateOf = utils_default.toObjectSet([
497
+ "age",
498
+ "authorization",
499
+ "content-length",
500
+ "content-type",
501
+ "etag",
502
+ "expires",
503
+ "from",
504
+ "host",
505
+ "if-modified-since",
506
+ "if-unmodified-since",
507
+ "last-modified",
508
+ "location",
509
+ "max-forwards",
510
+ "proxy-authorization",
511
+ "referer",
512
+ "retry-after",
513
+ "user-agent"
514
+ ]);
484
515
  });
485
516
 
486
- // node_modules/.bun/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js
487
- var require_delayed_stream = __commonJS((exports, module) => {
488
- var Stream = __require("stream").Stream;
489
- var util = __require("util");
490
- module.exports = DelayedStream;
491
- function DelayedStream() {
492
- this.source = null;
493
- this.dataSize = 0;
494
- this.maxDataSize = 1024 * 1024;
495
- this.pauseStream = true;
496
- this._maxDataSizeExceeded = false;
497
- this._released = false;
498
- this._bufferedEvents = [];
499
- }
500
- util.inherits(DelayedStream, Stream);
501
- DelayedStream.create = function(source, options) {
502
- var delayedStream = new this;
503
- options = options || {};
504
- for (var option in options) {
505
- delayedStream[option] = options[option];
506
- }
507
- delayedStream.source = source;
508
- var realEmit = source.emit;
509
- source.emit = function() {
510
- delayedStream._handleEmit(arguments);
511
- return realEmit.apply(source, arguments);
512
- };
513
- source.on("error", function() {});
514
- if (delayedStream.pauseStream) {
515
- source.pause();
517
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
518
+ function trimSPorHTAB(str) {
519
+ let start = 0;
520
+ let end = str.length;
521
+ while (start < end) {
522
+ const code = str.charCodeAt(start);
523
+ if (code !== 9 && code !== 32) {
524
+ break;
516
525
  }
517
- return delayedStream;
518
- };
519
- Object.defineProperty(DelayedStream.prototype, "readable", {
520
- configurable: true,
521
- enumerable: true,
522
- get: function() {
523
- return this.source.readable;
526
+ start += 1;
527
+ }
528
+ while (end > start) {
529
+ const code = str.charCodeAt(end - 1);
530
+ if (code !== 9 && code !== 32) {
531
+ break;
524
532
  }
533
+ end -= 1;
534
+ }
535
+ return start === 0 && end === str.length ? str : str.slice(start, end);
536
+ }
537
+ function sanitizeValue(value, invalidChars) {
538
+ if (utils_default.isArray(value)) {
539
+ return value.map((item) => sanitizeValue(item, invalidChars));
540
+ }
541
+ return trimSPorHTAB(String(value).replace(invalidChars, ""));
542
+ }
543
+ function toByteStringHeaderObject(headers) {
544
+ const byteStringHeaders = Object.create(null);
545
+ utils_default.forEach(headers.toJSON(), (value, header) => {
546
+ byteStringHeaders[header] = sanitizeByteStringHeaderValue(value);
525
547
  });
526
- DelayedStream.prototype.setEncoding = function() {
527
- return this.source.setEncoding.apply(this.source, arguments);
528
- };
529
- DelayedStream.prototype.resume = function() {
530
- if (!this._released) {
531
- this.release();
532
- }
533
- this.source.resume();
534
- };
535
- DelayedStream.prototype.pause = function() {
536
- this.source.pause();
537
- };
538
- DelayedStream.prototype.release = function() {
539
- this._released = true;
540
- this._bufferedEvents.forEach(function(args) {
541
- this.emit.apply(this, args);
542
- }.bind(this));
543
- this._bufferedEvents = [];
544
- };
545
- DelayedStream.prototype.pipe = function() {
546
- var r = Stream.prototype.pipe.apply(this, arguments);
547
- this.resume();
548
- return r;
549
- };
550
- DelayedStream.prototype._handleEmit = function(args) {
551
- if (this._released) {
552
- this.emit.apply(this, args);
553
- return;
554
- }
555
- if (args[0] === "data") {
556
- this.dataSize += args[1].length;
557
- this._checkIfMaxDataSizeExceeded();
558
- }
559
- this._bufferedEvents.push(args);
560
- };
561
- DelayedStream.prototype._checkIfMaxDataSizeExceeded = function() {
562
- if (this._maxDataSizeExceeded) {
563
- return;
564
- }
565
- if (this.dataSize <= this.maxDataSize) {
566
- return;
567
- }
568
- this._maxDataSizeExceeded = true;
569
- var message = "DelayedStream#maxDataSize of " + this.maxDataSize + " bytes exceeded.";
570
- this.emit("error", new Error(message));
571
- };
548
+ return byteStringHeaders;
549
+ }
550
+ var INVALID_UNICODE_HEADER_VALUE_CHARS, INVALID_BYTE_STRING_HEADER_VALUE_CHARS, sanitizeHeaderValue = (value) => sanitizeValue(value, INVALID_UNICODE_HEADER_VALUE_CHARS), sanitizeByteStringHeaderValue = (value) => sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS);
551
+ var init_sanitizeHeaderValue = __esm(() => {
552
+ init_utils();
553
+ INVALID_UNICODE_HEADER_VALUE_CHARS = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g");
554
+ INVALID_BYTE_STRING_HEADER_VALUE_CHARS = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
572
555
  });
573
556
 
574
- // node_modules/.bun/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js
575
- var require_combined_stream = __commonJS((exports, module) => {
576
- var util = __require("util");
577
- var Stream = __require("stream").Stream;
578
- var DelayedStream = require_delayed_stream();
579
- module.exports = CombinedStream;
580
- function CombinedStream() {
581
- this.writable = false;
582
- this.readable = true;
583
- this.dataSize = 0;
584
- this.maxDataSize = 2 * 1024 * 1024;
585
- this.pauseStreams = true;
586
- this._released = false;
587
- this._streams = [];
588
- this._currentStream = null;
589
- this._insideLoop = false;
590
- this._pendingNext = false;
557
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/core/AxiosHeaders.js
558
+ function normalizeHeader(header) {
559
+ return header && String(header).trim().toLowerCase();
560
+ }
561
+ function normalizeValue(value) {
562
+ if (value === false || value == null) {
563
+ return value;
591
564
  }
592
- util.inherits(CombinedStream, Stream);
593
- CombinedStream.create = function(options) {
594
- var combinedStream = new this;
595
- options = options || {};
596
- for (var option in options) {
597
- combinedStream[option] = options[option];
598
- }
599
- return combinedStream;
600
- };
601
- CombinedStream.isStreamLike = function(stream) {
602
- return typeof stream !== "function" && typeof stream !== "string" && typeof stream !== "boolean" && typeof stream !== "number" && !Buffer.isBuffer(stream);
603
- };
604
- CombinedStream.prototype.append = function(stream) {
605
- var isStreamLike = CombinedStream.isStreamLike(stream);
606
- if (isStreamLike) {
607
- if (!(stream instanceof DelayedStream)) {
608
- var newStream = DelayedStream.create(stream, {
609
- maxDataSize: Infinity,
610
- pauseStream: this.pauseStreams
611
- });
612
- stream.on("data", this._checkDataSize.bind(this));
613
- stream = newStream;
614
- }
565
+ return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
566
+ }
567
+ function parseTokens(str) {
568
+ const tokens = Object.create(null);
569
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
570
+ let match;
571
+ while (match = tokensRE.exec(str)) {
572
+ tokens[match[1]] = match[2];
573
+ }
574
+ return tokens;
575
+ }
576
+ function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
577
+ if (utils_default.isFunction(filter)) {
578
+ return filter.call(this, value, header);
579
+ }
580
+ if (isHeaderNameFilter) {
581
+ value = header;
582
+ }
583
+ if (!utils_default.isString(value))
584
+ return;
585
+ if (utils_default.isString(filter)) {
586
+ return value.indexOf(filter) !== -1;
587
+ }
588
+ if (utils_default.isRegExp(filter)) {
589
+ return filter.test(value);
590
+ }
591
+ }
592
+ function formatHeader(header) {
593
+ return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
594
+ return char.toUpperCase() + str;
595
+ });
596
+ }
597
+ function buildAccessors(obj, header) {
598
+ const accessorName = utils_default.toCamelCase(" " + header);
599
+ ["get", "set", "has"].forEach((methodName) => {
600
+ Object.defineProperty(obj, methodName + accessorName, {
601
+ __proto__: null,
602
+ value: function(arg1, arg2, arg3) {
603
+ return this[methodName].call(this, header, arg1, arg2, arg3);
604
+ },
605
+ configurable: true
606
+ });
607
+ });
608
+ }
609
+ var $internals, isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim()), AxiosHeaders, AxiosHeaders_default;
610
+ var init_AxiosHeaders = __esm(() => {
611
+ init_utils();
612
+ init_parseHeaders();
613
+ init_sanitizeHeaderValue();
614
+ $internals = Symbol("internals");
615
+ AxiosHeaders = class AxiosHeaders {
616
+ constructor(headers) {
617
+ headers && this.set(headers);
618
+ }
619
+ set(header, valueOrRewrite, rewrite) {
620
+ const self2 = this;
621
+ function setHeader(_value, _header, _rewrite) {
622
+ const lHeader = normalizeHeader(_header);
623
+ if (!lHeader) {
624
+ return;
625
+ }
626
+ const key = utils_default.findKey(self2, lHeader);
627
+ if (!key || self2[key] === undefined || _rewrite === true || _rewrite === undefined && self2[key] !== false) {
628
+ self2[key || _header] = normalizeValue(_value);
629
+ }
630
+ }
631
+ const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
632
+ if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
633
+ setHeaders(header, valueOrRewrite);
634
+ } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
635
+ setHeaders(parseHeaders_default(header), valueOrRewrite);
636
+ } else if (utils_default.isObject(header) && utils_default.isSafeIterable(header)) {
637
+ let obj = Object.create(null), dest, key;
638
+ for (const entry of header) {
639
+ if (!utils_default.isArray(entry)) {
640
+ throw new TypeError("Object iterator must return a key-value pair");
641
+ }
642
+ key = entry[0];
643
+ if (utils_default.hasOwnProp(obj, key)) {
644
+ dest = obj[key];
645
+ obj[key] = utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]];
646
+ } else {
647
+ obj[key] = entry[1];
648
+ }
649
+ }
650
+ setHeaders(obj, valueOrRewrite);
651
+ } else {
652
+ header != null && setHeader(valueOrRewrite, header, rewrite);
653
+ }
654
+ return this;
655
+ }
656
+ get(header, parser) {
657
+ header = normalizeHeader(header);
658
+ if (header) {
659
+ const key = utils_default.findKey(this, header);
660
+ if (key) {
661
+ const value = this[key];
662
+ if (!parser) {
663
+ return value;
664
+ }
665
+ if (parser === true) {
666
+ return parseTokens(value);
667
+ }
668
+ if (utils_default.isFunction(parser)) {
669
+ return parser.call(this, value, key);
670
+ }
671
+ if (utils_default.isRegExp(parser)) {
672
+ return parser.exec(value);
673
+ }
674
+ throw new TypeError("parser must be boolean|regexp|function");
675
+ }
676
+ }
677
+ }
678
+ has(header, matcher) {
679
+ header = normalizeHeader(header);
680
+ if (header) {
681
+ const key = utils_default.findKey(this, header);
682
+ return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
683
+ }
684
+ return false;
685
+ }
686
+ delete(header, matcher) {
687
+ const self2 = this;
688
+ let deleted = false;
689
+ function deleteHeader(_header) {
690
+ _header = normalizeHeader(_header);
691
+ if (_header) {
692
+ const key = utils_default.findKey(self2, _header);
693
+ if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
694
+ delete self2[key];
695
+ deleted = true;
696
+ }
697
+ }
698
+ }
699
+ if (utils_default.isArray(header)) {
700
+ header.forEach(deleteHeader);
701
+ } else {
702
+ deleteHeader(header);
703
+ }
704
+ return deleted;
705
+ }
706
+ clear(matcher) {
707
+ const keys = Object.keys(this);
708
+ let i = keys.length;
709
+ let deleted = false;
710
+ while (i--) {
711
+ const key = keys[i];
712
+ if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
713
+ delete this[key];
714
+ deleted = true;
715
+ }
716
+ }
717
+ return deleted;
718
+ }
719
+ normalize(format) {
720
+ const self2 = this;
721
+ const headers = {};
722
+ utils_default.forEach(this, (value, header) => {
723
+ const key = utils_default.findKey(headers, header);
724
+ if (key) {
725
+ self2[key] = normalizeValue(value);
726
+ delete self2[header];
727
+ return;
728
+ }
729
+ const normalized = format ? formatHeader(header) : String(header).trim();
730
+ if (normalized !== header) {
731
+ delete self2[header];
732
+ }
733
+ self2[normalized] = normalizeValue(value);
734
+ headers[normalized] = true;
735
+ });
736
+ return this;
737
+ }
738
+ concat(...targets) {
739
+ return this.constructor.concat(this, ...targets);
740
+ }
741
+ toJSON(asStrings) {
742
+ const obj = Object.create(null);
743
+ utils_default.forEach(this, (value, header) => {
744
+ value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
745
+ });
746
+ return obj;
747
+ }
748
+ [Symbol.iterator]() {
749
+ return Object.entries(this.toJSON())[Symbol.iterator]();
750
+ }
751
+ toString() {
752
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join(`
753
+ `);
754
+ }
755
+ getSetCookie() {
756
+ return this.get("set-cookie") || [];
757
+ }
758
+ get [Symbol.toStringTag]() {
759
+ return "AxiosHeaders";
760
+ }
761
+ static from(thing) {
762
+ return thing instanceof this ? thing : new this(thing);
763
+ }
764
+ static concat(first, ...targets) {
765
+ const computed = new this(first);
766
+ targets.forEach((target) => computed.set(target));
767
+ return computed;
768
+ }
769
+ static accessor(header) {
770
+ const internals = this[$internals] = this[$internals] = {
771
+ accessors: {}
772
+ };
773
+ const accessors = internals.accessors;
774
+ const prototype = this.prototype;
775
+ function defineAccessor(_header) {
776
+ const lHeader = normalizeHeader(_header);
777
+ if (!accessors[lHeader]) {
778
+ buildAccessors(prototype, _header);
779
+ accessors[lHeader] = true;
780
+ }
781
+ }
782
+ utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
783
+ return this;
784
+ }
785
+ };
786
+ AxiosHeaders.accessor([
787
+ "Content-Type",
788
+ "Content-Length",
789
+ "Accept",
790
+ "Accept-Encoding",
791
+ "User-Agent",
792
+ "Authorization"
793
+ ]);
794
+ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
795
+ let mapped = key[0].toUpperCase() + key.slice(1);
796
+ return {
797
+ get: () => value,
798
+ set(headerValue) {
799
+ this[mapped] = headerValue;
800
+ }
801
+ };
802
+ });
803
+ utils_default.freezeMethods(AxiosHeaders);
804
+ AxiosHeaders_default = AxiosHeaders;
805
+ });
806
+
807
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/core/AxiosError.js
808
+ function hasOwnOrPrototypeToJSON(source) {
809
+ if (utils_default.hasOwnProp(source, "toJSON")) {
810
+ return true;
811
+ }
812
+ let prototype = Object.getPrototypeOf(source);
813
+ while (prototype && prototype !== Object.prototype) {
814
+ if (utils_default.hasOwnProp(prototype, "toJSON")) {
815
+ return true;
816
+ }
817
+ prototype = Object.getPrototypeOf(prototype);
818
+ }
819
+ return false;
820
+ }
821
+ function redactConfig(config, redactKeys) {
822
+ const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
823
+ const seen = [];
824
+ const visit = (source) => {
825
+ if (source === null || typeof source !== "object")
826
+ return source;
827
+ if (utils_default.isBuffer(source))
828
+ return source;
829
+ if (seen.indexOf(source) !== -1)
830
+ return;
831
+ if (source instanceof AxiosHeaders_default) {
832
+ source = source.toJSON();
833
+ }
834
+ seen.push(source);
835
+ let result;
836
+ if (utils_default.isArray(source)) {
837
+ result = [];
838
+ source.forEach((v, i) => {
839
+ const reducedValue = visit(v);
840
+ if (!utils_default.isUndefined(reducedValue)) {
841
+ result[i] = reducedValue;
842
+ }
843
+ });
844
+ } else {
845
+ if (!utils_default.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
846
+ seen.pop();
847
+ return source;
848
+ }
849
+ result = Object.create(null);
850
+ for (const [key, value] of Object.entries(source)) {
851
+ const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
852
+ if (!utils_default.isUndefined(reducedValue)) {
853
+ result[key] = reducedValue;
854
+ }
855
+ }
856
+ }
857
+ seen.pop();
858
+ return result;
859
+ };
860
+ return visit(config);
861
+ }
862
+ var REDACTED = "[REDACTED ****]", AxiosError, AxiosError_default;
863
+ var init_AxiosError = __esm(() => {
864
+ init_utils();
865
+ init_AxiosHeaders();
866
+ AxiosError = class AxiosError extends Error {
867
+ static from(error, code, config, request, response, customProps) {
868
+ const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
869
+ Object.defineProperty(axiosError, "cause", {
870
+ __proto__: null,
871
+ value: error,
872
+ writable: true,
873
+ enumerable: false,
874
+ configurable: true
875
+ });
876
+ axiosError.name = error.name;
877
+ if (error.status != null && axiosError.status == null) {
878
+ axiosError.status = error.status;
879
+ }
880
+ customProps && Object.assign(axiosError, customProps);
881
+ return axiosError;
882
+ }
883
+ constructor(message, code, config, request, response) {
884
+ super(message);
885
+ Object.defineProperty(this, "message", {
886
+ __proto__: null,
887
+ value: message,
888
+ enumerable: true,
889
+ writable: true,
890
+ configurable: true
891
+ });
892
+ this.name = "AxiosError";
893
+ this.isAxiosError = true;
894
+ code && (this.code = code);
895
+ config && (this.config = config);
896
+ request && (this.request = request);
897
+ if (response) {
898
+ this.response = response;
899
+ this.status = response.status;
900
+ }
901
+ }
902
+ toJSON() {
903
+ const config = this.config;
904
+ const redactKeys = config && utils_default.hasOwnProp(config, "redact") ? config.redact : undefined;
905
+ const serializedConfig = utils_default.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils_default.toJSONObject(config);
906
+ return {
907
+ message: this.message,
908
+ name: this.name,
909
+ description: this.description,
910
+ number: this.number,
911
+ fileName: this.fileName,
912
+ lineNumber: this.lineNumber,
913
+ columnNumber: this.columnNumber,
914
+ stack: this.stack,
915
+ config: serializedConfig,
916
+ code: this.code,
917
+ status: this.status
918
+ };
919
+ }
920
+ };
921
+ AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
922
+ AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
923
+ AxiosError.ECONNABORTED = "ECONNABORTED";
924
+ AxiosError.ETIMEDOUT = "ETIMEDOUT";
925
+ AxiosError.ECONNREFUSED = "ECONNREFUSED";
926
+ AxiosError.ERR_NETWORK = "ERR_NETWORK";
927
+ AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
928
+ AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
929
+ AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
930
+ AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
931
+ AxiosError.ERR_CANCELED = "ERR_CANCELED";
932
+ AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
933
+ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
934
+ AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
935
+ AxiosError_default = AxiosError;
936
+ });
937
+
938
+ // node_modules/.bun/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js
939
+ var require_delayed_stream = __commonJS((exports, module) => {
940
+ var Stream = __require("stream").Stream;
941
+ var util = __require("util");
942
+ module.exports = DelayedStream;
943
+ function DelayedStream() {
944
+ this.source = null;
945
+ this.dataSize = 0;
946
+ this.maxDataSize = 1024 * 1024;
947
+ this.pauseStream = true;
948
+ this._maxDataSizeExceeded = false;
949
+ this._released = false;
950
+ this._bufferedEvents = [];
951
+ }
952
+ util.inherits(DelayedStream, Stream);
953
+ DelayedStream.create = function(source, options) {
954
+ var delayedStream = new this;
955
+ options = options || {};
956
+ for (var option in options) {
957
+ delayedStream[option] = options[option];
958
+ }
959
+ delayedStream.source = source;
960
+ var realEmit = source.emit;
961
+ source.emit = function() {
962
+ delayedStream._handleEmit(arguments);
963
+ return realEmit.apply(source, arguments);
964
+ };
965
+ source.on("error", function() {});
966
+ if (delayedStream.pauseStream) {
967
+ source.pause();
968
+ }
969
+ return delayedStream;
970
+ };
971
+ Object.defineProperty(DelayedStream.prototype, "readable", {
972
+ configurable: true,
973
+ enumerable: true,
974
+ get: function() {
975
+ return this.source.readable;
976
+ }
977
+ });
978
+ DelayedStream.prototype.setEncoding = function() {
979
+ return this.source.setEncoding.apply(this.source, arguments);
980
+ };
981
+ DelayedStream.prototype.resume = function() {
982
+ if (!this._released) {
983
+ this.release();
984
+ }
985
+ this.source.resume();
986
+ };
987
+ DelayedStream.prototype.pause = function() {
988
+ this.source.pause();
989
+ };
990
+ DelayedStream.prototype.release = function() {
991
+ this._released = true;
992
+ this._bufferedEvents.forEach(function(args) {
993
+ this.emit.apply(this, args);
994
+ }.bind(this));
995
+ this._bufferedEvents = [];
996
+ };
997
+ DelayedStream.prototype.pipe = function() {
998
+ var r = Stream.prototype.pipe.apply(this, arguments);
999
+ this.resume();
1000
+ return r;
1001
+ };
1002
+ DelayedStream.prototype._handleEmit = function(args) {
1003
+ if (this._released) {
1004
+ this.emit.apply(this, args);
1005
+ return;
1006
+ }
1007
+ if (args[0] === "data") {
1008
+ this.dataSize += args[1].length;
1009
+ this._checkIfMaxDataSizeExceeded();
1010
+ }
1011
+ this._bufferedEvents.push(args);
1012
+ };
1013
+ DelayedStream.prototype._checkIfMaxDataSizeExceeded = function() {
1014
+ if (this._maxDataSizeExceeded) {
1015
+ return;
1016
+ }
1017
+ if (this.dataSize <= this.maxDataSize) {
1018
+ return;
1019
+ }
1020
+ this._maxDataSizeExceeded = true;
1021
+ var message = "DelayedStream#maxDataSize of " + this.maxDataSize + " bytes exceeded.";
1022
+ this.emit("error", new Error(message));
1023
+ };
1024
+ });
1025
+
1026
+ // node_modules/.bun/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js
1027
+ var require_combined_stream = __commonJS((exports, module) => {
1028
+ var util = __require("util");
1029
+ var Stream = __require("stream").Stream;
1030
+ var DelayedStream = require_delayed_stream();
1031
+ module.exports = CombinedStream;
1032
+ function CombinedStream() {
1033
+ this.writable = false;
1034
+ this.readable = true;
1035
+ this.dataSize = 0;
1036
+ this.maxDataSize = 2 * 1024 * 1024;
1037
+ this.pauseStreams = true;
1038
+ this._released = false;
1039
+ this._streams = [];
1040
+ this._currentStream = null;
1041
+ this._insideLoop = false;
1042
+ this._pendingNext = false;
1043
+ }
1044
+ util.inherits(CombinedStream, Stream);
1045
+ CombinedStream.create = function(options) {
1046
+ var combinedStream = new this;
1047
+ options = options || {};
1048
+ for (var option in options) {
1049
+ combinedStream[option] = options[option];
1050
+ }
1051
+ return combinedStream;
1052
+ };
1053
+ CombinedStream.isStreamLike = function(stream) {
1054
+ return typeof stream !== "function" && typeof stream !== "string" && typeof stream !== "boolean" && typeof stream !== "number" && !Buffer.isBuffer(stream);
1055
+ };
1056
+ CombinedStream.prototype.append = function(stream) {
1057
+ var isStreamLike = CombinedStream.isStreamLike(stream);
1058
+ if (isStreamLike) {
1059
+ if (!(stream instanceof DelayedStream)) {
1060
+ var newStream = DelayedStream.create(stream, {
1061
+ maxDataSize: Infinity,
1062
+ pauseStream: this.pauseStreams
1063
+ });
1064
+ stream.on("data", this._checkDataSize.bind(this));
1065
+ stream = newStream;
1066
+ }
615
1067
  this._handleErrors(stream);
616
1068
  if (this.pauseStreams) {
617
1069
  stream.pause();
@@ -9546,7 +9998,7 @@ var require_asynckit = __commonJS((exports, module) => {
9546
9998
  };
9547
9999
  });
9548
10000
 
9549
- // node_modules/.bun/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js
10001
+ // node_modules/.bun/es-object-atoms@1.1.2/node_modules/es-object-atoms/index.js
9550
10002
  var require_es_object_atoms = __commonJS((exports, module) => {
9551
10003
  module.exports = Object;
9552
10004
  });
@@ -9893,7 +10345,7 @@ var require_get_proto = __commonJS((exports, module) => {
9893
10345
  } : null;
9894
10346
  });
9895
10347
 
9896
- // node_modules/.bun/hasown@2.0.2/node_modules/hasown/index.js
10348
+ // node_modules/.bun/hasown@2.0.4/node_modules/hasown/index.js
9897
10349
  var require_hasown = __commonJS((exports, module) => {
9898
10350
  var call = Function.prototype.call;
9899
10351
  var $hasOwn = Object.prototype.hasOwnProperty;
@@ -10264,7 +10716,7 @@ var require_es_set_tostringtag = __commonJS((exports, module) => {
10264
10716
  };
10265
10717
  });
10266
10718
 
10267
- // node_modules/.bun/form-data@4.0.5/node_modules/form-data/lib/populate.js
10719
+ // node_modules/.bun/form-data@4.0.6/node_modules/form-data/lib/populate.js
10268
10720
  var require_populate = __commonJS((exports, module) => {
10269
10721
  module.exports = function(dst, src) {
10270
10722
  Object.keys(src).forEach(function(prop) {
@@ -10274,7 +10726,7 @@ var require_populate = __commonJS((exports, module) => {
10274
10726
  };
10275
10727
  });
10276
10728
 
10277
- // node_modules/.bun/form-data@4.0.5/node_modules/form-data/lib/form_data.js
10729
+ // node_modules/.bun/form-data@4.0.6/node_modules/form-data/lib/form_data.js
10278
10730
  var require_form_data = __commonJS((exports, module) => {
10279
10731
  var CombinedStream = require_combined_stream();
10280
10732
  var util = __require("util");
@@ -10290,6 +10742,9 @@ var require_form_data = __commonJS((exports, module) => {
10290
10742
  var setToStringTag = require_es_set_tostringtag();
10291
10743
  var hasOwn = require_hasown();
10292
10744
  var populate = require_populate();
10745
+ function escapeHeaderParam(str) {
10746
+ return String(str).replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/"/g, "%22");
10747
+ }
10293
10748
  function FormData2(options) {
10294
10749
  if (!(this instanceof FormData2)) {
10295
10750
  return new FormData2(options);
@@ -10379,7 +10834,7 @@ var require_form_data = __commonJS((exports, module) => {
10379
10834
  var contentType = this._getContentType(value, options);
10380
10835
  var contents = "";
10381
10836
  var headers = {
10382
- "Content-Disposition": ["form-data", 'name="' + field + '"'].concat(contentDisposition || []),
10837
+ "Content-Disposition": ["form-data", 'name="' + escapeHeaderParam(field) + '"'].concat(contentDisposition || []),
10383
10838
  "Content-Type": [].concat(contentType || [])
10384
10839
  };
10385
10840
  if (typeof options.header === "object") {
@@ -10412,7 +10867,7 @@ var require_form_data = __commonJS((exports, module) => {
10412
10867
  filename = path.basename(value.client._httpMessage.path || "");
10413
10868
  }
10414
10869
  if (filename) {
10415
- return 'filename="' + filename + '"';
10870
+ return 'filename="' + escapeHeaderParam(filename) + '"';
10416
10871
  }
10417
10872
  };
10418
10873
  FormData2.prototype._getContentType = function(value, options) {
@@ -10589,14 +11044,14 @@ var require_form_data = __commonJS((exports, module) => {
10589
11044
  module.exports = FormData2;
10590
11045
  });
10591
11046
 
10592
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/platform/node/classes/FormData.js
11047
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/platform/node/classes/FormData.js
10593
11048
  var import_form_data, FormData_default;
10594
11049
  var init_FormData = __esm(() => {
10595
11050
  import_form_data = __toESM(require_form_data(), 1);
10596
11051
  FormData_default = import_form_data.default;
10597
11052
  });
10598
11053
 
10599
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/toFormData.js
11054
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/toFormData.js
10600
11055
  function isVisitable(thing) {
10601
11056
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
10602
11057
  }
@@ -10631,7 +11086,9 @@ function toFormData(obj, formData, options) {
10631
11086
  const dots = options.dots;
10632
11087
  const indexes = options.indexes;
10633
11088
  const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
11089
+ const maxDepth = options.maxDepth === undefined ? DEFAULT_FORM_DATA_MAX_DEPTH : options.maxDepth;
10634
11090
  const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
11091
+ const stack = [];
10635
11092
  if (!utils_default.isFunction(visitor)) {
10636
11093
  throw new TypeError("visitor must be a function");
10637
11094
  }
@@ -10648,10 +11105,38 @@ function toFormData(obj, formData, options) {
10648
11105
  throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
10649
11106
  }
10650
11107
  if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
10651
- return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
11108
+ if (useBlob && typeof _Blob === "function") {
11109
+ return new _Blob([value]);
11110
+ }
11111
+ if (typeof Buffer !== "undefined") {
11112
+ return Buffer.from(value);
11113
+ }
11114
+ throw new AxiosError_default("Blob is not supported. Use a Buffer instead.", AxiosError_default.ERR_NOT_SUPPORT);
10652
11115
  }
10653
11116
  return value;
10654
11117
  }
11118
+ function throwIfMaxDepthExceeded(depth) {
11119
+ if (depth > maxDepth) {
11120
+ throw new AxiosError_default("Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth, AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED);
11121
+ }
11122
+ }
11123
+ function stringifyWithDepthLimit(value, depth) {
11124
+ if (maxDepth === Infinity) {
11125
+ return JSON.stringify(value);
11126
+ }
11127
+ const ancestors = [];
11128
+ return JSON.stringify(value, function limitDepth(_key, currentValue) {
11129
+ if (!utils_default.isObject(currentValue)) {
11130
+ return currentValue;
11131
+ }
11132
+ while (ancestors.length && ancestors[ancestors.length - 1] !== this) {
11133
+ ancestors.pop();
11134
+ }
11135
+ ancestors.push(currentValue);
11136
+ throwIfMaxDepthExceeded(depth + ancestors.length - 1);
11137
+ return currentValue;
11138
+ });
11139
+ }
10655
11140
  function defaultVisitor(value, key, path) {
10656
11141
  let arr = value;
10657
11142
  if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
@@ -10661,7 +11146,7 @@ function toFormData(obj, formData, options) {
10661
11146
  if (value && !path && typeof value === "object") {
10662
11147
  if (utils_default.endsWith(key, "{}")) {
10663
11148
  key = metaTokens ? key : key.slice(0, -2);
10664
- value = JSON.stringify(value);
11149
+ value = stringifyWithDepthLimit(value, 1);
10665
11150
  } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
10666
11151
  key = removeBrackets(key);
10667
11152
  arr.forEach(function each(el, index) {
@@ -10676,23 +11161,23 @@ function toFormData(obj, formData, options) {
10676
11161
  formData.append(renderKey(path, key, dots), convertValue(value));
10677
11162
  return false;
10678
11163
  }
10679
- const stack = [];
10680
11164
  const exposedHelpers = Object.assign(predicates, {
10681
11165
  defaultVisitor,
10682
11166
  convertValue,
10683
11167
  isVisitable
10684
11168
  });
10685
- function build(value, path) {
11169
+ function build(value, path, depth = 0) {
10686
11170
  if (utils_default.isUndefined(value))
10687
11171
  return;
11172
+ throwIfMaxDepthExceeded(depth);
10688
11173
  if (stack.indexOf(value) !== -1) {
10689
- throw Error("Circular reference detected in " + path.join("."));
11174
+ throw new Error("Circular reference detected in " + path.join("."));
10690
11175
  }
10691
11176
  stack.push(value);
10692
11177
  utils_default.forEach(value, function each(el, key) {
10693
11178
  const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path, exposedHelpers);
10694
11179
  if (result === true) {
10695
- build(el, path ? path.concat(key) : [key]);
11180
+ build(el, path ? path.concat(key) : [key], depth + 1);
10696
11181
  }
10697
11182
  });
10698
11183
  stack.pop();
@@ -10703,7 +11188,7 @@ function toFormData(obj, formData, options) {
10703
11188
  build(obj);
10704
11189
  return formData;
10705
11190
  }
10706
- var predicates, toFormData_default;
11191
+ var DEFAULT_FORM_DATA_MAX_DEPTH = 100, predicates, toFormData_default;
10707
11192
  var init_toFormData = __esm(() => {
10708
11193
  init_utils();
10709
11194
  init_AxiosError();
@@ -10714,7 +11199,7 @@ var init_toFormData = __esm(() => {
10714
11199
  toFormData_default = toFormData;
10715
11200
  });
10716
11201
 
10717
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
11202
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
10718
11203
  function encode(str) {
10719
11204
  const charMap = {
10720
11205
  "!": "%21",
@@ -10722,10 +11207,9 @@ function encode(str) {
10722
11207
  "(": "%28",
10723
11208
  ")": "%29",
10724
11209
  "~": "%7E",
10725
- "%20": "+",
10726
- "%00": "\x00"
11210
+ "%20": "+"
10727
11211
  };
10728
- return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
11212
+ return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
10729
11213
  return charMap[match];
10730
11214
  });
10731
11215
  }
@@ -10741,9 +11225,7 @@ var init_AxiosURLSearchParams = __esm(() => {
10741
11225
  this._pairs.push([name, value]);
10742
11226
  };
10743
11227
  prototype.toString = function toString2(encoder) {
10744
- const _encode = encoder ? function(value) {
10745
- return encoder.call(this, value, encode);
10746
- } : encode;
11228
+ const _encode = encoder ? (value) => encoder.call(this, value, encode) : encode;
10747
11229
  return this._pairs.map(function each(pair) {
10748
11230
  return _encode(pair[0]) + "=" + _encode(pair[1]);
10749
11231
  }, "").join("&");
@@ -10751,7 +11233,7 @@ var init_AxiosURLSearchParams = __esm(() => {
10751
11233
  AxiosURLSearchParams_default = AxiosURLSearchParams;
10752
11234
  });
10753
11235
 
10754
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/buildURL.js
11236
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/buildURL.js
10755
11237
  function encode2(val) {
10756
11238
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
10757
11239
  }
@@ -10759,11 +11241,12 @@ function buildURL(url, params, options) {
10759
11241
  if (!params) {
10760
11242
  return url;
10761
11243
  }
10762
- const _encode = options && options.encode || encode2;
11244
+ url = url || "";
10763
11245
  const _options = utils_default.isFunction(options) ? {
10764
11246
  serialize: options
10765
11247
  } : options;
10766
- const serializeFn = _options && _options.serialize;
11248
+ const _encode = utils_default.getSafeProp(_options, "encode") || encode2;
11249
+ const serializeFn = utils_default.getSafeProp(_options, "serialize");
10767
11250
  let serializedParams;
10768
11251
  if (serializeFn) {
10769
11252
  serializedParams = serializeFn(params, _options);
@@ -10784,7 +11267,7 @@ var init_buildURL = __esm(() => {
10784
11267
  init_AxiosURLSearchParams();
10785
11268
  });
10786
11269
 
10787
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/core/InterceptorManager.js
11270
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/core/InterceptorManager.js
10788
11271
  class InterceptorManager {
10789
11272
  constructor() {
10790
11273
  this.handlers = [];
@@ -10822,25 +11305,27 @@ var init_InterceptorManager = __esm(() => {
10822
11305
  InterceptorManager_default = InterceptorManager;
10823
11306
  });
10824
11307
 
10825
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/defaults/transitional.js
11308
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/defaults/transitional.js
10826
11309
  var transitional_default;
10827
11310
  var init_transitional = __esm(() => {
10828
11311
  transitional_default = {
10829
11312
  silentJSONParsing: true,
10830
11313
  forcedJSONParsing: true,
10831
11314
  clarifyTimeoutError: false,
10832
- legacyInterceptorReqResOrdering: true
11315
+ legacyInterceptorReqResOrdering: true,
11316
+ advertiseZstdAcceptEncoding: false,
11317
+ validateStatusUndefinedResolves: true
10833
11318
  };
10834
11319
  });
10835
11320
 
10836
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
11321
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
10837
11322
  import url from "url";
10838
11323
  var URLSearchParams_default;
10839
11324
  var init_URLSearchParams = __esm(() => {
10840
11325
  URLSearchParams_default = url.URLSearchParams;
10841
11326
  });
10842
11327
 
10843
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/platform/node/index.js
11328
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/platform/node/index.js
10844
11329
  import crypto from "crypto";
10845
11330
  var ALPHA = "abcdefghijklmnopqrstuvwxyz", DIGIT = "0123456789", ALPHABET, generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
10846
11331
  let str = "";
@@ -10873,7 +11358,7 @@ var init_node = __esm(() => {
10873
11358
  };
10874
11359
  });
10875
11360
 
10876
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/platform/common/utils.js
11361
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/platform/common/utils.js
10877
11362
  var exports_utils = {};
10878
11363
  __export(exports_utils, {
10879
11364
  origin: () => origin,
@@ -10893,7 +11378,7 @@ var init_utils2 = __esm(() => {
10893
11378
  origin = hasBrowserEnv && window.location.href || "http://localhost";
10894
11379
  });
10895
11380
 
10896
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/platform/index.js
11381
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/platform/index.js
10897
11382
  var platform_default;
10898
11383
  var init_platform = __esm(() => {
10899
11384
  init_node();
@@ -10904,7 +11389,7 @@ var init_platform = __esm(() => {
10904
11389
  };
10905
11390
  });
10906
11391
 
10907
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
11392
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
10908
11393
  function toURLEncodedForm(data, options) {
10909
11394
  return toFormData_default(data, new platform_default.classes.URLSearchParams, {
10910
11395
  visitor: function(value, key, path, helpers) {
@@ -10923,11 +11408,21 @@ var init_toURLEncodedForm = __esm(() => {
10923
11408
  init_platform();
10924
11409
  });
10925
11410
 
10926
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/formDataToJSON.js
11411
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/formDataToJSON.js
11412
+ function throwIfDepthExceeded(index) {
11413
+ if (index > MAX_DEPTH) {
11414
+ throw new AxiosError_default("FormData field is too deeply nested (" + index + " levels). Max depth: " + MAX_DEPTH, AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED);
11415
+ }
11416
+ }
10927
11417
  function parsePropPath(name) {
10928
- return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
10929
- return match[0] === "[]" ? "" : match[1] || match[0];
10930
- });
11418
+ const path = [];
11419
+ const pattern = /\w+|\[(\w*)]/g;
11420
+ let match;
11421
+ while ((match = pattern.exec(name)) !== null) {
11422
+ throwIfDepthExceeded(path.length);
11423
+ path.push(match[0] === "[]" ? "" : match[1] || match[0]);
11424
+ }
11425
+ return path;
10931
11426
  }
10932
11427
  function arrayToObject(arr) {
10933
11428
  const obj = {};
@@ -10943,6 +11438,7 @@ function arrayToObject(arr) {
10943
11438
  }
10944
11439
  function formDataToJSON(formData) {
10945
11440
  function buildPath(path, value, target, index) {
11441
+ throwIfDepthExceeded(index);
10946
11442
  let name = path[index++];
10947
11443
  if (name === "__proto__")
10948
11444
  return true;
@@ -10951,13 +11447,13 @@ function formDataToJSON(formData) {
10951
11447
  name = !name && utils_default.isArray(target) ? target.length : name;
10952
11448
  if (isLast) {
10953
11449
  if (utils_default.hasOwnProp(target, name)) {
10954
- target[name] = [target[name], value];
11450
+ target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
10955
11451
  } else {
10956
11452
  target[name] = value;
10957
11453
  }
10958
11454
  return !isNumericKey;
10959
11455
  }
10960
- if (!target[name] || !utils_default.isObject(target[name])) {
11456
+ if (!utils_default.hasOwnProp(target, name) || !utils_default.isObject(target[name])) {
10961
11457
  target[name] = [];
10962
11458
  }
10963
11459
  const result = buildPath(path, value, target[name], index);
@@ -10975,13 +11471,16 @@ function formDataToJSON(formData) {
10975
11471
  }
10976
11472
  return null;
10977
11473
  }
10978
- var formDataToJSON_default;
11474
+ var MAX_DEPTH, formDataToJSON_default;
10979
11475
  var init_formDataToJSON = __esm(() => {
10980
11476
  init_utils();
11477
+ init_AxiosError();
11478
+ init_toFormData();
11479
+ MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
10981
11480
  formDataToJSON_default = formDataToJSON;
10982
11481
  });
10983
11482
 
10984
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/defaults/index.js
11483
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/defaults/index.js
10985
11484
  function stringifySafely(rawValue, parser, encoder) {
10986
11485
  if (utils_default.isString(rawValue)) {
10987
11486
  try {
@@ -10995,7 +11494,7 @@ function stringifySafely(rawValue, parser, encoder) {
10995
11494
  }
10996
11495
  return (encoder || JSON.stringify)(rawValue);
10997
11496
  }
10998
- var defaults, defaults_default;
11497
+ var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : undefined, defaults, defaults_default;
10999
11498
  var init_defaults = __esm(() => {
11000
11499
  init_utils();
11001
11500
  init_AxiosError();
@@ -11031,363 +11530,75 @@ var init_defaults = __esm(() => {
11031
11530
  }
11032
11531
  let isFileList2;
11033
11532
  if (isObjectPayload) {
11034
- if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
11035
- return toURLEncodedForm(data, this.formSerializer).toString();
11036
- }
11037
- if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
11038
- const _FormData = this.env && this.env.FormData;
11039
- return toFormData_default(isFileList2 ? { "files[]": data } : data, _FormData && new _FormData, this.formSerializer);
11040
- }
11041
- }
11042
- if (isObjectPayload || hasJSONContentType) {
11043
- headers.setContentType("application/json", false);
11044
- return stringifySafely(data);
11045
- }
11046
- return data;
11047
- }
11048
- ],
11049
- transformResponse: [
11050
- function transformResponse(data) {
11051
- const transitional = this.transitional || defaults.transitional;
11052
- const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
11053
- const JSONRequested = this.responseType === "json";
11054
- if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
11055
- return data;
11056
- }
11057
- if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
11058
- const silentJSONParsing = transitional && transitional.silentJSONParsing;
11059
- const strictJSONParsing = !silentJSONParsing && JSONRequested;
11060
- try {
11061
- return JSON.parse(data, this.parseReviver);
11062
- } catch (e) {
11063
- if (strictJSONParsing) {
11064
- if (e.name === "SyntaxError") {
11065
- throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response);
11066
- }
11067
- throw e;
11068
- }
11069
- }
11070
- }
11071
- return data;
11072
- }
11073
- ],
11074
- timeout: 0,
11075
- xsrfCookieName: "XSRF-TOKEN",
11076
- xsrfHeaderName: "X-XSRF-TOKEN",
11077
- maxContentLength: -1,
11078
- maxBodyLength: -1,
11079
- env: {
11080
- FormData: platform_default.classes.FormData,
11081
- Blob: platform_default.classes.Blob
11082
- },
11083
- validateStatus: function validateStatus(status) {
11084
- return status >= 200 && status < 300;
11085
- },
11086
- headers: {
11087
- common: {
11088
- Accept: "application/json, text/plain, */*",
11089
- "Content-Type": undefined
11090
- }
11091
- }
11092
- };
11093
- utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
11094
- defaults.headers[method] = {};
11095
- });
11096
- defaults_default = defaults;
11097
- });
11098
-
11099
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/parseHeaders.js
11100
- var ignoreDuplicateOf, parseHeaders_default = (rawHeaders) => {
11101
- const parsed = {};
11102
- let key;
11103
- let val;
11104
- let i;
11105
- rawHeaders && rawHeaders.split(`
11106
- `).forEach(function parser(line) {
11107
- i = line.indexOf(":");
11108
- key = line.substring(0, i).trim().toLowerCase();
11109
- val = line.substring(i + 1).trim();
11110
- if (!key || parsed[key] && ignoreDuplicateOf[key]) {
11111
- return;
11112
- }
11113
- if (key === "set-cookie") {
11114
- if (parsed[key]) {
11115
- parsed[key].push(val);
11116
- } else {
11117
- parsed[key] = [val];
11118
- }
11119
- } else {
11120
- parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
11121
- }
11122
- });
11123
- return parsed;
11124
- };
11125
- var init_parseHeaders = __esm(() => {
11126
- init_utils();
11127
- ignoreDuplicateOf = utils_default.toObjectSet([
11128
- "age",
11129
- "authorization",
11130
- "content-length",
11131
- "content-type",
11132
- "etag",
11133
- "expires",
11134
- "from",
11135
- "host",
11136
- "if-modified-since",
11137
- "if-unmodified-since",
11138
- "last-modified",
11139
- "location",
11140
- "max-forwards",
11141
- "proxy-authorization",
11142
- "referer",
11143
- "retry-after",
11144
- "user-agent"
11145
- ]);
11146
- });
11147
-
11148
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/core/AxiosHeaders.js
11149
- function normalizeHeader(header) {
11150
- return header && String(header).trim().toLowerCase();
11151
- }
11152
- function normalizeValue(value) {
11153
- if (value === false || value == null) {
11154
- return value;
11155
- }
11156
- return utils_default.isArray(value) ? value.map(normalizeValue) : String(value).replace(/[\r\n]+$/, "");
11157
- }
11158
- function parseTokens(str) {
11159
- const tokens = Object.create(null);
11160
- const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
11161
- let match;
11162
- while (match = tokensRE.exec(str)) {
11163
- tokens[match[1]] = match[2];
11164
- }
11165
- return tokens;
11166
- }
11167
- function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
11168
- if (utils_default.isFunction(filter2)) {
11169
- return filter2.call(this, value, header);
11170
- }
11171
- if (isHeaderNameFilter) {
11172
- value = header;
11173
- }
11174
- if (!utils_default.isString(value))
11175
- return;
11176
- if (utils_default.isString(filter2)) {
11177
- return value.indexOf(filter2) !== -1;
11178
- }
11179
- if (utils_default.isRegExp(filter2)) {
11180
- return filter2.test(value);
11181
- }
11182
- }
11183
- function formatHeader(header) {
11184
- return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
11185
- return char.toUpperCase() + str;
11186
- });
11187
- }
11188
- function buildAccessors(obj, header) {
11189
- const accessorName = utils_default.toCamelCase(" " + header);
11190
- ["get", "set", "has"].forEach((methodName) => {
11191
- Object.defineProperty(obj, methodName + accessorName, {
11192
- value: function(arg1, arg2, arg3) {
11193
- return this[methodName].call(this, header, arg1, arg2, arg3);
11194
- },
11195
- configurable: true
11196
- });
11197
- });
11198
- }
11199
- var $internals, isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim()), AxiosHeaders, AxiosHeaders_default;
11200
- var init_AxiosHeaders = __esm(() => {
11201
- init_utils();
11202
- init_parseHeaders();
11203
- $internals = Symbol("internals");
11204
- AxiosHeaders = class AxiosHeaders {
11205
- constructor(headers) {
11206
- headers && this.set(headers);
11207
- }
11208
- set(header, valueOrRewrite, rewrite) {
11209
- const self2 = this;
11210
- function setHeader(_value, _header, _rewrite) {
11211
- const lHeader = normalizeHeader(_header);
11212
- if (!lHeader) {
11213
- throw new Error("header name must be a non-empty string");
11214
- }
11215
- const key = utils_default.findKey(self2, lHeader);
11216
- if (!key || self2[key] === undefined || _rewrite === true || _rewrite === undefined && self2[key] !== false) {
11217
- self2[key || _header] = normalizeValue(_value);
11218
- }
11219
- }
11220
- const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
11221
- if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
11222
- setHeaders(header, valueOrRewrite);
11223
- } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
11224
- setHeaders(parseHeaders_default(header), valueOrRewrite);
11225
- } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
11226
- let obj = {}, dest, key;
11227
- for (const entry of header) {
11228
- if (!utils_default.isArray(entry)) {
11229
- throw TypeError("Object iterator must return a key-value pair");
11230
- }
11231
- obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
11232
- }
11233
- setHeaders(obj, valueOrRewrite);
11234
- } else {
11235
- header != null && setHeader(valueOrRewrite, header, rewrite);
11236
- }
11237
- return this;
11238
- }
11239
- get(header, parser) {
11240
- header = normalizeHeader(header);
11241
- if (header) {
11242
- const key = utils_default.findKey(this, header);
11243
- if (key) {
11244
- const value = this[key];
11245
- if (!parser) {
11246
- return value;
11247
- }
11248
- if (parser === true) {
11249
- return parseTokens(value);
11250
- }
11251
- if (utils_default.isFunction(parser)) {
11252
- return parser.call(this, value, key);
11253
- }
11254
- if (utils_default.isRegExp(parser)) {
11255
- return parser.exec(value);
11256
- }
11257
- throw new TypeError("parser must be boolean|regexp|function");
11258
- }
11259
- }
11260
- }
11261
- has(header, matcher) {
11262
- header = normalizeHeader(header);
11263
- if (header) {
11264
- const key = utils_default.findKey(this, header);
11265
- return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
11266
- }
11267
- return false;
11268
- }
11269
- delete(header, matcher) {
11270
- const self2 = this;
11271
- let deleted = false;
11272
- function deleteHeader(_header) {
11273
- _header = normalizeHeader(_header);
11274
- if (_header) {
11275
- const key = utils_default.findKey(self2, _header);
11276
- if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
11277
- delete self2[key];
11278
- deleted = true;
11279
- }
11280
- }
11281
- }
11282
- if (utils_default.isArray(header)) {
11283
- header.forEach(deleteHeader);
11284
- } else {
11285
- deleteHeader(header);
11286
- }
11287
- return deleted;
11288
- }
11289
- clear(matcher) {
11290
- const keys = Object.keys(this);
11291
- let i = keys.length;
11292
- let deleted = false;
11293
- while (i--) {
11294
- const key = keys[i];
11295
- if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
11296
- delete this[key];
11297
- deleted = true;
11298
- }
11299
- }
11300
- return deleted;
11301
- }
11302
- normalize(format) {
11303
- const self2 = this;
11304
- const headers = {};
11305
- utils_default.forEach(this, (value, header) => {
11306
- const key = utils_default.findKey(headers, header);
11307
- if (key) {
11308
- self2[key] = normalizeValue(value);
11309
- delete self2[header];
11310
- return;
11533
+ const formSerializer = own(this, "formSerializer");
11534
+ if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
11535
+ return toURLEncodedForm(data, formSerializer).toString();
11536
+ }
11537
+ if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
11538
+ const env = own(this, "env");
11539
+ const _FormData = env && env.FormData;
11540
+ return toFormData_default(isFileList2 ? { "files[]": data } : data, _FormData && new _FormData, formSerializer);
11541
+ }
11311
11542
  }
11312
- const normalized = format ? formatHeader(header) : String(header).trim();
11313
- if (normalized !== header) {
11314
- delete self2[header];
11543
+ if (isObjectPayload || hasJSONContentType) {
11544
+ headers.setContentType("application/json", false);
11545
+ return stringifySafely(data);
11315
11546
  }
11316
- self2[normalized] = normalizeValue(value);
11317
- headers[normalized] = true;
11318
- });
11319
- return this;
11320
- }
11321
- concat(...targets) {
11322
- return this.constructor.concat(this, ...targets);
11323
- }
11324
- toJSON(asStrings) {
11325
- const obj = Object.create(null);
11326
- utils_default.forEach(this, (value, header) => {
11327
- value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
11328
- });
11329
- return obj;
11330
- }
11331
- [Symbol.iterator]() {
11332
- return Object.entries(this.toJSON())[Symbol.iterator]();
11333
- }
11334
- toString() {
11335
- return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join(`
11336
- `);
11337
- }
11338
- getSetCookie() {
11339
- return this.get("set-cookie") || [];
11340
- }
11341
- get [Symbol.toStringTag]() {
11342
- return "AxiosHeaders";
11343
- }
11344
- static from(thing) {
11345
- return thing instanceof this ? thing : new this(thing);
11346
- }
11347
- static concat(first, ...targets) {
11348
- const computed = new this(first);
11349
- targets.forEach((target) => computed.set(target));
11350
- return computed;
11351
- }
11352
- static accessor(header) {
11353
- const internals = this[$internals] = this[$internals] = {
11354
- accessors: {}
11355
- };
11356
- const accessors = internals.accessors;
11357
- const prototype2 = this.prototype;
11358
- function defineAccessor(_header) {
11359
- const lHeader = normalizeHeader(_header);
11360
- if (!accessors[lHeader]) {
11361
- buildAccessors(prototype2, _header);
11362
- accessors[lHeader] = true;
11547
+ return data;
11548
+ }
11549
+ ],
11550
+ transformResponse: [
11551
+ function transformResponse(data) {
11552
+ const transitional = own(this, "transitional") || defaults.transitional;
11553
+ const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
11554
+ const responseType = own(this, "responseType");
11555
+ const JSONRequested = responseType === "json";
11556
+ if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
11557
+ return data;
11558
+ }
11559
+ if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
11560
+ const silentJSONParsing = transitional && transitional.silentJSONParsing;
11561
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
11562
+ try {
11563
+ return JSON.parse(data, own(this, "parseReviver"));
11564
+ } catch (e) {
11565
+ if (strictJSONParsing) {
11566
+ if (e.name === "SyntaxError") {
11567
+ throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, own(this, "response"));
11568
+ }
11569
+ throw e;
11570
+ }
11571
+ }
11363
11572
  }
11573
+ return data;
11574
+ }
11575
+ ],
11576
+ timeout: 0,
11577
+ xsrfCookieName: "XSRF-TOKEN",
11578
+ xsrfHeaderName: "X-XSRF-TOKEN",
11579
+ maxContentLength: -1,
11580
+ maxBodyLength: -1,
11581
+ env: {
11582
+ FormData: platform_default.classes.FormData,
11583
+ Blob: platform_default.classes.Blob
11584
+ },
11585
+ validateStatus: function validateStatus(status) {
11586
+ return status >= 200 && status < 300;
11587
+ },
11588
+ headers: {
11589
+ common: {
11590
+ Accept: "application/json, text/plain, */*",
11591
+ "Content-Type": undefined
11364
11592
  }
11365
- utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
11366
- return this;
11367
11593
  }
11368
11594
  };
11369
- AxiosHeaders.accessor([
11370
- "Content-Type",
11371
- "Content-Length",
11372
- "Accept",
11373
- "Accept-Encoding",
11374
- "User-Agent",
11375
- "Authorization"
11376
- ]);
11377
- utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
11378
- let mapped = key[0].toUpperCase() + key.slice(1);
11379
- return {
11380
- get: () => value,
11381
- set(headerValue) {
11382
- this[mapped] = headerValue;
11383
- }
11384
- };
11595
+ utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
11596
+ defaults.headers[method] = {};
11385
11597
  });
11386
- utils_default.freezeMethods(AxiosHeaders);
11387
- AxiosHeaders_default = AxiosHeaders;
11598
+ defaults_default = defaults;
11388
11599
  });
11389
11600
 
11390
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/core/transformData.js
11601
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/core/transformData.js
11391
11602
  function transformData(fns, response) {
11392
11603
  const config = this || defaults_default;
11393
11604
  const context = response || config;
@@ -11405,13 +11616,13 @@ var init_transformData = __esm(() => {
11405
11616
  init_AxiosHeaders();
11406
11617
  });
11407
11618
 
11408
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/cancel/isCancel.js
11619
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/cancel/isCancel.js
11409
11620
  function isCancel(value) {
11410
11621
  return !!(value && value.__CANCEL__);
11411
11622
  }
11412
11623
  var init_isCancel = () => {};
11413
11624
 
11414
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/cancel/CanceledError.js
11625
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/cancel/CanceledError.js
11415
11626
  var CanceledError, CanceledError_default;
11416
11627
  var init_CanceledError = __esm(() => {
11417
11628
  init_AxiosError();
@@ -11425,20 +11636,20 @@ var init_CanceledError = __esm(() => {
11425
11636
  CanceledError_default = CanceledError;
11426
11637
  });
11427
11638
 
11428
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/core/settle.js
11639
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/core/settle.js
11429
11640
  function settle(resolve, reject, response) {
11430
11641
  const validateStatus2 = response.config.validateStatus;
11431
11642
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
11432
11643
  resolve(response);
11433
11644
  } else {
11434
- reject(new AxiosError_default("Request failed with status code " + response.status, [AxiosError_default.ERR_BAD_REQUEST, AxiosError_default.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], response.config, response.request, response));
11645
+ reject(new AxiosError_default("Request failed with status code " + response.status, response.status >= 400 && response.status < 500 ? AxiosError_default.ERR_BAD_REQUEST : AxiosError_default.ERR_BAD_RESPONSE, response.config, response.request, response));
11435
11646
  }
11436
11647
  }
11437
11648
  var init_settle = __esm(() => {
11438
11649
  init_AxiosError();
11439
11650
  });
11440
11651
 
11441
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
11652
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
11442
11653
  function isAbsoluteURL(url2) {
11443
11654
  if (typeof url2 !== "string") {
11444
11655
  return false;
@@ -11447,23 +11658,44 @@ function isAbsoluteURL(url2) {
11447
11658
  }
11448
11659
  var init_isAbsoluteURL = () => {};
11449
11660
 
11450
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/combineURLs.js
11661
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/combineURLs.js
11451
11662
  function combineURLs(baseURL, relativeURL) {
11452
11663
  return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
11453
11664
  }
11454
11665
  var init_combineURLs = () => {};
11455
11666
 
11456
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/core/buildFullPath.js
11457
- function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
11667
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/core/buildFullPath.js
11668
+ function stripLeadingC0ControlOrSpace(url2) {
11669
+ let i = 0;
11670
+ while (i < url2.length && url2.charCodeAt(i) <= 32) {
11671
+ i++;
11672
+ }
11673
+ return url2.slice(i);
11674
+ }
11675
+ function normalizeURLForProtocolCheck(url2) {
11676
+ return stripLeadingC0ControlOrSpace(url2).replace(httpProtocolControlCharacters, "");
11677
+ }
11678
+ function assertValidHttpProtocolURL(url2, config) {
11679
+ if (typeof url2 === "string" && malformedHttpProtocol.test(normalizeURLForProtocolCheck(url2))) {
11680
+ throw new AxiosError_default('Invalid URL: missing "//" after protocol', AxiosError_default.ERR_INVALID_URL, config);
11681
+ }
11682
+ }
11683
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
11684
+ assertValidHttpProtocolURL(requestedURL, config);
11458
11685
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
11459
- if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
11686
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
11687
+ assertValidHttpProtocolURL(baseURL, config);
11460
11688
  return combineURLs(baseURL, requestedURL);
11461
11689
  }
11462
11690
  return requestedURL;
11463
11691
  }
11692
+ var malformedHttpProtocol, httpProtocolControlCharacters;
11464
11693
  var init_buildFullPath = __esm(() => {
11694
+ init_AxiosError();
11465
11695
  init_isAbsoluteURL();
11466
11696
  init_combineURLs();
11697
+ malformedHttpProtocol = /^https?:(?!\/\/)/i;
11698
+ httpProtocolControlCharacters = /[\t\n\r]/g;
11467
11699
  });
11468
11700
 
11469
11701
  // node_modules/.bun/proxy-from-env@2.1.0/node_modules/proxy-from-env/index.js
@@ -11488,55 +11720,484 @@ function getProxyForUrl(url2) {
11488
11720
  if (!shouldProxy(hostname, port)) {
11489
11721
  return "";
11490
11722
  }
11491
- var proxy = getEnv(proto + "_proxy") || getEnv("all_proxy");
11492
- if (proxy && proxy.indexOf("://") === -1) {
11493
- proxy = proto + "://" + proxy;
11723
+ var proxy = getEnv(proto + "_proxy") || getEnv("all_proxy");
11724
+ if (proxy && proxy.indexOf("://") === -1) {
11725
+ proxy = proto + "://" + proxy;
11726
+ }
11727
+ return proxy;
11728
+ }
11729
+ function shouldProxy(hostname, port) {
11730
+ var NO_PROXY = getEnv("no_proxy").toLowerCase();
11731
+ if (!NO_PROXY) {
11732
+ return true;
11733
+ }
11734
+ if (NO_PROXY === "*") {
11735
+ return false;
11736
+ }
11737
+ return NO_PROXY.split(/[,\s]/).every(function(proxy) {
11738
+ if (!proxy) {
11739
+ return true;
11740
+ }
11741
+ var parsedProxy = proxy.match(/^(.+):(\d+)$/);
11742
+ var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
11743
+ var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
11744
+ if (parsedProxyPort && parsedProxyPort !== port) {
11745
+ return true;
11746
+ }
11747
+ if (!/^[.*]/.test(parsedProxyHostname)) {
11748
+ return hostname !== parsedProxyHostname;
11749
+ }
11750
+ if (parsedProxyHostname.charAt(0) === "*") {
11751
+ parsedProxyHostname = parsedProxyHostname.slice(1);
11752
+ }
11753
+ return !hostname.endsWith(parsedProxyHostname);
11754
+ });
11755
+ }
11756
+ function getEnv(key) {
11757
+ return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
11758
+ }
11759
+ var DEFAULT_PORTS;
11760
+ var init_proxy_from_env = __esm(() => {
11761
+ DEFAULT_PORTS = {
11762
+ ftp: 21,
11763
+ gopher: 70,
11764
+ http: 80,
11765
+ https: 443,
11766
+ ws: 80,
11767
+ wss: 443
11768
+ };
11769
+ });
11770
+
11771
+ // node_modules/.bun/agent-base@6.0.2/node_modules/agent-base/dist/src/promisify.js
11772
+ var require_promisify = __commonJS((exports) => {
11773
+ Object.defineProperty(exports, "__esModule", { value: true });
11774
+ function promisify(fn) {
11775
+ return function(req, opts) {
11776
+ return new Promise((resolve, reject) => {
11777
+ fn.call(this, req, opts, (err, rtn) => {
11778
+ if (err) {
11779
+ reject(err);
11780
+ } else {
11781
+ resolve(rtn);
11782
+ }
11783
+ });
11784
+ });
11785
+ };
11786
+ }
11787
+ exports.default = promisify;
11788
+ });
11789
+
11790
+ // node_modules/.bun/agent-base@6.0.2/node_modules/agent-base/dist/src/index.js
11791
+ var require_src2 = __commonJS((exports, module) => {
11792
+ var __importDefault = exports && exports.__importDefault || function(mod) {
11793
+ return mod && mod.__esModule ? mod : { default: mod };
11794
+ };
11795
+ var events_1 = __require("events");
11796
+ var debug_1 = __importDefault(require_src());
11797
+ var promisify_1 = __importDefault(require_promisify());
11798
+ var debug = debug_1.default("agent-base");
11799
+ function isAgent(v) {
11800
+ return Boolean(v) && typeof v.addRequest === "function";
11801
+ }
11802
+ function isSecureEndpoint() {
11803
+ const { stack } = new Error;
11804
+ if (typeof stack !== "string")
11805
+ return false;
11806
+ return stack.split(`
11807
+ `).some((l) => l.indexOf("(https.js:") !== -1 || l.indexOf("node:https:") !== -1);
11808
+ }
11809
+ function createAgent(callback, opts) {
11810
+ return new createAgent.Agent(callback, opts);
11811
+ }
11812
+ (function(createAgent2) {
11813
+
11814
+ class Agent extends events_1.EventEmitter {
11815
+ constructor(callback, _opts) {
11816
+ super();
11817
+ let opts = _opts;
11818
+ if (typeof callback === "function") {
11819
+ this.callback = callback;
11820
+ } else if (callback) {
11821
+ opts = callback;
11822
+ }
11823
+ this.timeout = null;
11824
+ if (opts && typeof opts.timeout === "number") {
11825
+ this.timeout = opts.timeout;
11826
+ }
11827
+ this.maxFreeSockets = 1;
11828
+ this.maxSockets = 1;
11829
+ this.maxTotalSockets = Infinity;
11830
+ this.sockets = {};
11831
+ this.freeSockets = {};
11832
+ this.requests = {};
11833
+ this.options = {};
11834
+ }
11835
+ get defaultPort() {
11836
+ if (typeof this.explicitDefaultPort === "number") {
11837
+ return this.explicitDefaultPort;
11838
+ }
11839
+ return isSecureEndpoint() ? 443 : 80;
11840
+ }
11841
+ set defaultPort(v) {
11842
+ this.explicitDefaultPort = v;
11843
+ }
11844
+ get protocol() {
11845
+ if (typeof this.explicitProtocol === "string") {
11846
+ return this.explicitProtocol;
11847
+ }
11848
+ return isSecureEndpoint() ? "https:" : "http:";
11849
+ }
11850
+ set protocol(v) {
11851
+ this.explicitProtocol = v;
11852
+ }
11853
+ callback(req, opts, fn) {
11854
+ throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`');
11855
+ }
11856
+ addRequest(req, _opts) {
11857
+ const opts = Object.assign({}, _opts);
11858
+ if (typeof opts.secureEndpoint !== "boolean") {
11859
+ opts.secureEndpoint = isSecureEndpoint();
11860
+ }
11861
+ if (opts.host == null) {
11862
+ opts.host = "localhost";
11863
+ }
11864
+ if (opts.port == null) {
11865
+ opts.port = opts.secureEndpoint ? 443 : 80;
11866
+ }
11867
+ if (opts.protocol == null) {
11868
+ opts.protocol = opts.secureEndpoint ? "https:" : "http:";
11869
+ }
11870
+ if (opts.host && opts.path) {
11871
+ delete opts.path;
11872
+ }
11873
+ delete opts.agent;
11874
+ delete opts.hostname;
11875
+ delete opts._defaultAgent;
11876
+ delete opts.defaultPort;
11877
+ delete opts.createConnection;
11878
+ req._last = true;
11879
+ req.shouldKeepAlive = false;
11880
+ let timedOut = false;
11881
+ let timeoutId = null;
11882
+ const timeoutMs = opts.timeout || this.timeout;
11883
+ const onerror = (err) => {
11884
+ if (req._hadError)
11885
+ return;
11886
+ req.emit("error", err);
11887
+ req._hadError = true;
11888
+ };
11889
+ const ontimeout = () => {
11890
+ timeoutId = null;
11891
+ timedOut = true;
11892
+ const err = new Error(`A "socket" was not created for HTTP request before ${timeoutMs}ms`);
11893
+ err.code = "ETIMEOUT";
11894
+ onerror(err);
11895
+ };
11896
+ const callbackError = (err) => {
11897
+ if (timedOut)
11898
+ return;
11899
+ if (timeoutId !== null) {
11900
+ clearTimeout(timeoutId);
11901
+ timeoutId = null;
11902
+ }
11903
+ onerror(err);
11904
+ };
11905
+ const onsocket = (socket) => {
11906
+ if (timedOut)
11907
+ return;
11908
+ if (timeoutId != null) {
11909
+ clearTimeout(timeoutId);
11910
+ timeoutId = null;
11911
+ }
11912
+ if (isAgent(socket)) {
11913
+ debug("Callback returned another Agent instance %o", socket.constructor.name);
11914
+ socket.addRequest(req, opts);
11915
+ return;
11916
+ }
11917
+ if (socket) {
11918
+ socket.once("free", () => {
11919
+ this.freeSocket(socket, opts);
11920
+ });
11921
+ req.onSocket(socket);
11922
+ return;
11923
+ }
11924
+ const err = new Error(`no Duplex stream was returned to agent-base for \`${req.method} ${req.path}\``);
11925
+ onerror(err);
11926
+ };
11927
+ if (typeof this.callback !== "function") {
11928
+ onerror(new Error("`callback` is not defined"));
11929
+ return;
11930
+ }
11931
+ if (!this.promisifiedCallback) {
11932
+ if (this.callback.length >= 3) {
11933
+ debug("Converting legacy callback function to promise");
11934
+ this.promisifiedCallback = promisify_1.default(this.callback);
11935
+ } else {
11936
+ this.promisifiedCallback = this.callback;
11937
+ }
11938
+ }
11939
+ if (typeof timeoutMs === "number" && timeoutMs > 0) {
11940
+ timeoutId = setTimeout(ontimeout, timeoutMs);
11941
+ }
11942
+ if ("port" in opts && typeof opts.port !== "number") {
11943
+ opts.port = Number(opts.port);
11944
+ }
11945
+ try {
11946
+ debug("Resolving socket for %o request: %o", opts.protocol, `${req.method} ${req.path}`);
11947
+ Promise.resolve(this.promisifiedCallback(req, opts)).then(onsocket, callbackError);
11948
+ } catch (err) {
11949
+ Promise.reject(err).catch(callbackError);
11950
+ }
11951
+ }
11952
+ freeSocket(socket, opts) {
11953
+ debug("Freeing socket %o %o", socket.constructor.name, opts);
11954
+ socket.destroy();
11955
+ }
11956
+ destroy() {
11957
+ debug("Destroying agent %o", this.constructor.name);
11958
+ }
11959
+ }
11960
+ createAgent2.Agent = Agent;
11961
+ createAgent2.prototype = createAgent2.Agent.prototype;
11962
+ })(createAgent || (createAgent = {}));
11963
+ module.exports = createAgent;
11964
+ });
11965
+
11966
+ // node_modules/.bun/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js
11967
+ var require_parse_proxy_response = __commonJS((exports) => {
11968
+ var __importDefault = exports && exports.__importDefault || function(mod) {
11969
+ return mod && mod.__esModule ? mod : { default: mod };
11970
+ };
11971
+ Object.defineProperty(exports, "__esModule", { value: true });
11972
+ var debug_1 = __importDefault(require_src());
11973
+ var debug = debug_1.default("https-proxy-agent:parse-proxy-response");
11974
+ function parseProxyResponse(socket) {
11975
+ return new Promise((resolve, reject) => {
11976
+ let buffersLength = 0;
11977
+ const buffers = [];
11978
+ function read() {
11979
+ const b = socket.read();
11980
+ if (b)
11981
+ ondata(b);
11982
+ else
11983
+ socket.once("readable", read);
11984
+ }
11985
+ function cleanup() {
11986
+ socket.removeListener("end", onend);
11987
+ socket.removeListener("error", onerror);
11988
+ socket.removeListener("close", onclose);
11989
+ socket.removeListener("readable", read);
11990
+ }
11991
+ function onclose(err) {
11992
+ debug("onclose had error %o", err);
11993
+ }
11994
+ function onend() {
11995
+ debug("onend");
11996
+ }
11997
+ function onerror(err) {
11998
+ cleanup();
11999
+ debug("onerror %o", err);
12000
+ reject(err);
12001
+ }
12002
+ function ondata(b) {
12003
+ buffers.push(b);
12004
+ buffersLength += b.length;
12005
+ const buffered = Buffer.concat(buffers, buffersLength);
12006
+ const endOfHeaders = buffered.indexOf(`\r
12007
+ \r
12008
+ `);
12009
+ if (endOfHeaders === -1) {
12010
+ debug("have not received end of HTTP headers yet...");
12011
+ read();
12012
+ return;
12013
+ }
12014
+ const firstLine = buffered.toString("ascii", 0, buffered.indexOf(`\r
12015
+ `));
12016
+ const statusCode = +firstLine.split(" ")[1];
12017
+ debug("got proxy server response: %o", firstLine);
12018
+ resolve({
12019
+ statusCode,
12020
+ buffered
12021
+ });
12022
+ }
12023
+ socket.on("error", onerror);
12024
+ socket.on("close", onclose);
12025
+ socket.on("end", onend);
12026
+ read();
12027
+ });
12028
+ }
12029
+ exports.default = parseProxyResponse;
12030
+ });
12031
+
12032
+ // node_modules/.bun/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js
12033
+ var require_agent = __commonJS((exports) => {
12034
+ var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
12035
+ function adopt(value) {
12036
+ return value instanceof P ? value : new P(function(resolve) {
12037
+ resolve(value);
12038
+ });
12039
+ }
12040
+ return new (P || (P = Promise))(function(resolve, reject) {
12041
+ function fulfilled(value) {
12042
+ try {
12043
+ step(generator.next(value));
12044
+ } catch (e) {
12045
+ reject(e);
12046
+ }
12047
+ }
12048
+ function rejected(value) {
12049
+ try {
12050
+ step(generator["throw"](value));
12051
+ } catch (e) {
12052
+ reject(e);
12053
+ }
12054
+ }
12055
+ function step(result) {
12056
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
12057
+ }
12058
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
12059
+ });
12060
+ };
12061
+ var __importDefault = exports && exports.__importDefault || function(mod) {
12062
+ return mod && mod.__esModule ? mod : { default: mod };
12063
+ };
12064
+ Object.defineProperty(exports, "__esModule", { value: true });
12065
+ var net_1 = __importDefault(__require("net"));
12066
+ var tls_1 = __importDefault(__require("tls"));
12067
+ var url_1 = __importDefault(__require("url"));
12068
+ var assert_1 = __importDefault(__require("assert"));
12069
+ var debug_1 = __importDefault(require_src());
12070
+ var agent_base_1 = require_src2();
12071
+ var parse_proxy_response_1 = __importDefault(require_parse_proxy_response());
12072
+ var debug = debug_1.default("https-proxy-agent:agent");
12073
+
12074
+ class HttpsProxyAgent extends agent_base_1.Agent {
12075
+ constructor(_opts) {
12076
+ let opts;
12077
+ if (typeof _opts === "string") {
12078
+ opts = url_1.default.parse(_opts);
12079
+ } else {
12080
+ opts = _opts;
12081
+ }
12082
+ if (!opts) {
12083
+ throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");
12084
+ }
12085
+ debug("creating new HttpsProxyAgent instance: %o", opts);
12086
+ super(opts);
12087
+ const proxy = Object.assign({}, opts);
12088
+ this.secureProxy = opts.secureProxy || isHTTPS(proxy.protocol);
12089
+ proxy.host = proxy.hostname || proxy.host;
12090
+ if (typeof proxy.port === "string") {
12091
+ proxy.port = parseInt(proxy.port, 10);
12092
+ }
12093
+ if (!proxy.port && proxy.host) {
12094
+ proxy.port = this.secureProxy ? 443 : 80;
12095
+ }
12096
+ if (this.secureProxy && !("ALPNProtocols" in proxy)) {
12097
+ proxy.ALPNProtocols = ["http 1.1"];
12098
+ }
12099
+ if (proxy.host && proxy.path) {
12100
+ delete proxy.path;
12101
+ delete proxy.pathname;
12102
+ }
12103
+ this.proxy = proxy;
12104
+ }
12105
+ callback(req, opts) {
12106
+ return __awaiter(this, undefined, undefined, function* () {
12107
+ const { proxy, secureProxy } = this;
12108
+ let socket;
12109
+ if (secureProxy) {
12110
+ debug("Creating `tls.Socket`: %o", proxy);
12111
+ socket = tls_1.default.connect(proxy);
12112
+ } else {
12113
+ debug("Creating `net.Socket`: %o", proxy);
12114
+ socket = net_1.default.connect(proxy);
12115
+ }
12116
+ const headers = Object.assign({}, proxy.headers);
12117
+ const hostname = `${opts.host}:${opts.port}`;
12118
+ let payload = `CONNECT ${hostname} HTTP/1.1\r
12119
+ `;
12120
+ if (proxy.auth) {
12121
+ headers["Proxy-Authorization"] = `Basic ${Buffer.from(proxy.auth).toString("base64")}`;
12122
+ }
12123
+ let { host, port, secureEndpoint } = opts;
12124
+ if (!isDefaultPort(port, secureEndpoint)) {
12125
+ host += `:${port}`;
12126
+ }
12127
+ headers.Host = host;
12128
+ headers.Connection = "close";
12129
+ for (const name of Object.keys(headers)) {
12130
+ payload += `${name}: ${headers[name]}\r
12131
+ `;
12132
+ }
12133
+ const proxyResponsePromise = parse_proxy_response_1.default(socket);
12134
+ socket.write(`${payload}\r
12135
+ `);
12136
+ const { statusCode, buffered } = yield proxyResponsePromise;
12137
+ if (statusCode === 200) {
12138
+ req.once("socket", resume);
12139
+ if (opts.secureEndpoint) {
12140
+ debug("Upgrading socket connection to TLS");
12141
+ const servername = opts.servername || opts.host;
12142
+ return tls_1.default.connect(Object.assign(Object.assign({}, omit(opts, "host", "hostname", "path", "port")), {
12143
+ socket,
12144
+ servername
12145
+ }));
12146
+ }
12147
+ return socket;
12148
+ }
12149
+ socket.destroy();
12150
+ const fakeSocket = new net_1.default.Socket({ writable: false });
12151
+ fakeSocket.readable = true;
12152
+ req.once("socket", (s) => {
12153
+ debug("replaying proxy buffer for failed request");
12154
+ assert_1.default(s.listenerCount("data") > 0);
12155
+ s.push(buffered);
12156
+ s.push(null);
12157
+ });
12158
+ return fakeSocket;
12159
+ });
12160
+ }
12161
+ }
12162
+ exports.default = HttpsProxyAgent;
12163
+ function resume(socket) {
12164
+ socket.resume();
11494
12165
  }
11495
- return proxy;
11496
- }
11497
- function shouldProxy(hostname, port) {
11498
- var NO_PROXY = getEnv("no_proxy").toLowerCase();
11499
- if (!NO_PROXY) {
11500
- return true;
12166
+ function isDefaultPort(port, secure) {
12167
+ return Boolean(!secure && port === 80 || secure && port === 443);
11501
12168
  }
11502
- if (NO_PROXY === "*") {
11503
- return false;
12169
+ function isHTTPS(protocol) {
12170
+ return typeof protocol === "string" ? /^https:?$/i.test(protocol) : false;
11504
12171
  }
11505
- return NO_PROXY.split(/[,\s]/).every(function(proxy) {
11506
- if (!proxy) {
11507
- return true;
11508
- }
11509
- var parsedProxy = proxy.match(/^(.+):(\d+)$/);
11510
- var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
11511
- var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
11512
- if (parsedProxyPort && parsedProxyPort !== port) {
11513
- return true;
11514
- }
11515
- if (!/^[.*]/.test(parsedProxyHostname)) {
11516
- return hostname !== parsedProxyHostname;
11517
- }
11518
- if (parsedProxyHostname.charAt(0) === "*") {
11519
- parsedProxyHostname = parsedProxyHostname.slice(1);
12172
+ function omit(obj, ...keys) {
12173
+ const ret = {};
12174
+ let key;
12175
+ for (key in obj) {
12176
+ if (!keys.includes(key)) {
12177
+ ret[key] = obj[key];
12178
+ }
11520
12179
  }
11521
- return !hostname.endsWith(parsedProxyHostname);
11522
- });
11523
- }
11524
- function getEnv(key) {
11525
- return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
11526
- }
11527
- var DEFAULT_PORTS;
11528
- var init_proxy_from_env = __esm(() => {
11529
- DEFAULT_PORTS = {
11530
- ftp: 21,
11531
- gopher: 70,
11532
- http: 80,
11533
- https: 443,
11534
- ws: 80,
11535
- wss: 443
12180
+ return ret;
12181
+ }
12182
+ });
12183
+
12184
+ // node_modules/.bun/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js
12185
+ var require_dist = __commonJS((exports, module) => {
12186
+ var __importDefault = exports && exports.__importDefault || function(mod) {
12187
+ return mod && mod.__esModule ? mod : { default: mod };
11536
12188
  };
12189
+ var agent_1 = __importDefault(require_agent());
12190
+ function createHttpsProxyAgent(opts) {
12191
+ return new agent_1.default(opts);
12192
+ }
12193
+ (function(createHttpsProxyAgent2) {
12194
+ createHttpsProxyAgent2.HttpsProxyAgent = agent_1.default;
12195
+ createHttpsProxyAgent2.prototype = agent_1.default.prototype;
12196
+ })(createHttpsProxyAgent || (createHttpsProxyAgent = {}));
12197
+ module.exports = createHttpsProxyAgent;
11537
12198
  });
11538
12199
 
11539
- // node_modules/.bun/follow-redirects@1.15.11/node_modules/follow-redirects/debug.js
12200
+ // node_modules/.bun/follow-redirects@1.16.0/node_modules/follow-redirects/debug.js
11540
12201
  var require_debug = __commonJS((exports, module) => {
11541
12202
  var debug;
11542
12203
  module.exports = function() {
@@ -11552,7 +12213,7 @@ var require_debug = __commonJS((exports, module) => {
11552
12213
  };
11553
12214
  });
11554
12215
 
11555
- // node_modules/.bun/follow-redirects@1.15.11/node_modules/follow-redirects/index.js
12216
+ // node_modules/.bun/follow-redirects@1.16.0/node_modules/follow-redirects/index.js
11556
12217
  var require_follow_redirects = __commonJS((exports, module) => {
11557
12218
  var url2 = __require("url");
11558
12219
  var URL2 = url2.URL;
@@ -11575,6 +12236,11 @@ var require_follow_redirects = __commonJS((exports, module) => {
11575
12236
  } catch (error) {
11576
12237
  useNativeURL = error.code === "ERR_INVALID_URL";
11577
12238
  }
12239
+ var sensitiveHeaders = [
12240
+ "Authorization",
12241
+ "Proxy-Authorization",
12242
+ "Cookie"
12243
+ ];
11578
12244
  var preservedUrlFields = [
11579
12245
  "auth",
11580
12246
  "host",
@@ -11622,6 +12288,7 @@ var require_follow_redirects = __commonJS((exports, module) => {
11622
12288
  self2.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
11623
12289
  }
11624
12290
  };
12291
+ this._headerFilter = new RegExp("^(?:" + sensitiveHeaders.concat(options.sensitiveHeaders).map(escapeRegex).join("|") + ")$", "i");
11625
12292
  this._performRequest();
11626
12293
  }
11627
12294
  RedirectableRequest.prototype = Object.create(Writable.prototype);
@@ -11759,6 +12426,9 @@ var require_follow_redirects = __commonJS((exports, module) => {
11759
12426
  if (!options.headers) {
11760
12427
  options.headers = {};
11761
12428
  }
12429
+ if (!isArray2(options.sensitiveHeaders)) {
12430
+ options.sensitiveHeaders = [];
12431
+ }
11762
12432
  if (options.host) {
11763
12433
  if (!options.hostname) {
11764
12434
  options.hostname = options.host;
@@ -11855,7 +12525,7 @@ var require_follow_redirects = __commonJS((exports, module) => {
11855
12525
  this._isRedirect = true;
11856
12526
  spreadUrlObject(redirectUrl, this._options);
11857
12527
  if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
11858
- removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);
12528
+ removeMatchingHeaders(this._headerFilter, this._options.headers);
11859
12529
  }
11860
12530
  if (isFunction2(beforeRedirect)) {
11861
12531
  var responseDetails = {
@@ -12003,6 +12673,9 @@ var require_follow_redirects = __commonJS((exports, module) => {
12003
12673
  var dot = subdomain.length - domain.length - 1;
12004
12674
  return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
12005
12675
  }
12676
+ function isArray2(value) {
12677
+ return value instanceof Array;
12678
+ }
12006
12679
  function isString2(value) {
12007
12680
  return typeof value === "string" || value instanceof String;
12008
12681
  }
@@ -12015,22 +12688,25 @@ var require_follow_redirects = __commonJS((exports, module) => {
12015
12688
  function isURL(value) {
12016
12689
  return URL2 && value instanceof URL2;
12017
12690
  }
12691
+ function escapeRegex(regex) {
12692
+ return regex.replace(/[\]\\/()*+?.$]/g, "\\$&");
12693
+ }
12018
12694
  module.exports = wrap({ http, https });
12019
12695
  module.exports.wrap = wrap;
12020
12696
  });
12021
12697
 
12022
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/env/data.js
12023
- var VERSION = "1.14.0";
12698
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/env/data.js
12699
+ var VERSION = "1.18.1";
12024
12700
  var init_data = () => {};
12025
12701
 
12026
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/parseProtocol.js
12702
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/parseProtocol.js
12027
12703
  function parseProtocol(url2) {
12028
- const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
12704
+ const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
12029
12705
  return match && match[1] || "";
12030
12706
  }
12031
12707
  var init_parseProtocol = () => {};
12032
12708
 
12033
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/fromDataURI.js
12709
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/fromDataURI.js
12034
12710
  function fromDataURI(uri, asBlob, options) {
12035
12711
  const _Blob = options && options.Blob || platform_default.classes.Blob;
12036
12712
  const protocol = parseProtocol(uri);
@@ -12043,10 +12719,17 @@ function fromDataURI(uri, asBlob, options) {
12043
12719
  if (!match) {
12044
12720
  throw new AxiosError_default("Invalid URL", AxiosError_default.ERR_INVALID_URL);
12045
12721
  }
12046
- const mime = match[1];
12047
- const isBase64 = match[2];
12048
- const body = match[3];
12049
- const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? "base64" : "utf8");
12722
+ const type = match[1];
12723
+ const params = match[2];
12724
+ const encoding = match[3] ? "base64" : "utf8";
12725
+ const body = match[4];
12726
+ let mime = "";
12727
+ if (type) {
12728
+ mime = params ? type + params : type;
12729
+ } else if (params) {
12730
+ mime = "text/plain" + params;
12731
+ }
12732
+ const buffer = encoding === "base64" ? Buffer.from(body, "base64") : Buffer.from(decodeURIComponent(body), encoding);
12050
12733
  if (asBlob) {
12051
12734
  if (!_Blob) {
12052
12735
  throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
@@ -12062,10 +12745,10 @@ var init_fromDataURI = __esm(() => {
12062
12745
  init_AxiosError();
12063
12746
  init_parseProtocol();
12064
12747
  init_platform();
12065
- DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
12748
+ DATA_URL_PATTERN = /^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
12066
12749
  });
12067
12750
 
12068
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/AxiosTransformStream.js
12751
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
12069
12752
  import stream from "stream";
12070
12753
  var kInternals, AxiosTransformStream, AxiosTransformStream_default;
12071
12754
  var init_AxiosTransformStream = __esm(() => {
@@ -12184,7 +12867,7 @@ var init_AxiosTransformStream = __esm(() => {
12184
12867
  AxiosTransformStream_default = AxiosTransformStream;
12185
12868
  });
12186
12869
 
12187
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/readBlob.js
12870
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/readBlob.js
12188
12871
  var asyncIterator, readBlob = async function* (blob) {
12189
12872
  if (blob.stream) {
12190
12873
  yield* blob.stream();
@@ -12201,7 +12884,7 @@ var init_readBlob = __esm(() => {
12201
12884
  readBlob_default = readBlob;
12202
12885
  });
12203
12886
 
12204
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/formDataToStream.js
12887
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/formDataToStream.js
12205
12888
  import util from "util";
12206
12889
  import { Readable } from "stream";
12207
12890
 
@@ -12213,7 +12896,8 @@ class FormDataPart {
12213
12896
  if (isStringValue) {
12214
12897
  value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
12215
12898
  } else {
12216
- headers += `Content-Type: ${value.type || "application/octet-stream"}${CRLF}`;
12899
+ const safeType = String(value.type || "application/octet-stream").replace(/[\r\n]/g, "");
12900
+ headers += `Content-Type: ${safeType}${CRLF}`;
12217
12901
  }
12218
12902
  this.headers = textEncoder.encode(headers + CRLF);
12219
12903
  this.contentLength = isStringValue ? value.byteLength : value.size;
@@ -12247,10 +12931,10 @@ var BOUNDARY_ALPHABET, textEncoder, CRLF = `\r
12247
12931
  boundary = tag + "-" + platform_default.generateString(size, BOUNDARY_ALPHABET)
12248
12932
  } = options || {};
12249
12933
  if (!utils_default.isFormData(form)) {
12250
- throw TypeError("FormData instance required");
12934
+ throw new TypeError("FormData instance required");
12251
12935
  }
12252
12936
  if (boundary.length < 1 || boundary.length > 70) {
12253
- throw Error("boundary must be 10-70 characters long");
12937
+ throw new Error("boundary must be 1-70 characters long");
12254
12938
  }
12255
12939
  const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
12256
12940
  const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
@@ -12287,7 +12971,7 @@ var init_formDataToStream = __esm(() => {
12287
12971
  formDataToStream_default = formDataToStream;
12288
12972
  });
12289
12973
 
12290
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
12974
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
12291
12975
  import stream2 from "stream";
12292
12976
  var ZlibHeaderTransformStream, ZlibHeaderTransformStream_default;
12293
12977
  var init_ZlibHeaderTransformStream = __esm(() => {
@@ -12312,7 +12996,89 @@ var init_ZlibHeaderTransformStream = __esm(() => {
12312
12996
  ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
12313
12997
  });
12314
12998
 
12315
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/callbackify.js
12999
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/Http2Sessions.js
13000
+ import http2 from "http2";
13001
+ import util2 from "util";
13002
+
13003
+ class Http2Sessions {
13004
+ constructor() {
13005
+ this.sessions = Object.create(null);
13006
+ }
13007
+ getSession(authority, options) {
13008
+ options = Object.assign({
13009
+ sessionTimeout: 1000
13010
+ }, options);
13011
+ let authoritySessions = this.sessions[authority];
13012
+ if (authoritySessions) {
13013
+ let len = authoritySessions.length;
13014
+ for (let i = 0;i < len; i++) {
13015
+ const [sessionHandle, sessionOptions] = authoritySessions[i];
13016
+ if (!sessionHandle.destroyed && !sessionHandle.closed && util2.isDeepStrictEqual(sessionOptions, options)) {
13017
+ return sessionHandle;
13018
+ }
13019
+ }
13020
+ }
13021
+ const session = http2.connect(authority, options);
13022
+ let removed;
13023
+ let timer;
13024
+ const removeSession = () => {
13025
+ if (removed) {
13026
+ return;
13027
+ }
13028
+ removed = true;
13029
+ if (timer) {
13030
+ clearTimeout(timer);
13031
+ timer = null;
13032
+ }
13033
+ let entries = authoritySessions, len = entries.length, i = len;
13034
+ while (i--) {
13035
+ if (entries[i][0] === session) {
13036
+ if (len === 1) {
13037
+ delete this.sessions[authority];
13038
+ } else {
13039
+ entries.splice(i, 1);
13040
+ }
13041
+ if (!session.closed) {
13042
+ session.close();
13043
+ }
13044
+ return;
13045
+ }
13046
+ }
13047
+ };
13048
+ const originalRequestFn = session.request;
13049
+ const { sessionTimeout } = options;
13050
+ if (sessionTimeout != null) {
13051
+ let streamsCount = 0;
13052
+ session.request = function() {
13053
+ const stream3 = originalRequestFn.apply(this, arguments);
13054
+ streamsCount++;
13055
+ if (timer) {
13056
+ clearTimeout(timer);
13057
+ timer = null;
13058
+ }
13059
+ stream3.once("close", () => {
13060
+ if (!--streamsCount) {
13061
+ timer = setTimeout(() => {
13062
+ timer = null;
13063
+ removeSession();
13064
+ }, sessionTimeout);
13065
+ }
13066
+ });
13067
+ return stream3;
13068
+ };
13069
+ }
13070
+ session.once("close", removeSession);
13071
+ let entry = [session, options];
13072
+ authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
13073
+ return session;
13074
+ }
13075
+ }
13076
+ var Http2Sessions_default;
13077
+ var init_Http2Sessions = __esm(() => {
13078
+ Http2Sessions_default = Http2Sessions;
13079
+ });
13080
+
13081
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/callbackify.js
12316
13082
  var callbackify = (fn, reducer) => {
12317
13083
  return utils_default.isAsyncFn(fn) ? function(...args) {
12318
13084
  const cb = args.pop();
@@ -12330,7 +13096,154 @@ var init_callbackify = __esm(() => {
12330
13096
  callbackify_default = callbackify;
12331
13097
  });
12332
13098
 
12333
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/speedometer.js
13099
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/shouldBypassProxy.js
13100
+ function shouldBypassProxy(location) {
13101
+ let parsed;
13102
+ try {
13103
+ parsed = new URL(location);
13104
+ } catch (_err) {
13105
+ return false;
13106
+ }
13107
+ const noProxy = (process.env.no_proxy || process.env.NO_PROXY || "").toLowerCase();
13108
+ if (!noProxy) {
13109
+ return false;
13110
+ }
13111
+ if (noProxy === "*") {
13112
+ return true;
13113
+ }
13114
+ const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS2[parsed.protocol.split(":", 1)[0]] || 0;
13115
+ const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
13116
+ return noProxy.split(/[\s,]+/).some((entry) => {
13117
+ if (!entry) {
13118
+ return false;
13119
+ }
13120
+ let [entryHost, entryPort] = parseNoProxyEntry(entry);
13121
+ entryHost = normalizeNoProxyHost(entryHost);
13122
+ if (!entryHost) {
13123
+ return false;
13124
+ }
13125
+ if (entryPort && entryPort !== port) {
13126
+ return false;
13127
+ }
13128
+ if (entryHost.charAt(0) === "*") {
13129
+ entryHost = entryHost.slice(1);
13130
+ }
13131
+ if (entryHost.charAt(0) === ".") {
13132
+ return hostname.endsWith(entryHost);
13133
+ }
13134
+ return hostname === entryHost || isLoopback(hostname) && isLoopback(entryHost);
13135
+ });
13136
+ }
13137
+ var LOOPBACK_HOSTNAMES, isIPv4Loopback = (host) => {
13138
+ const parts = host.split(".");
13139
+ if (parts.length !== 4)
13140
+ return false;
13141
+ if (parts[0] !== "127")
13142
+ return false;
13143
+ return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
13144
+ }, isIPv6ZeroGroup = (group) => /^0{1,4}$/.test(group), isIPv6Unspecified = (host) => {
13145
+ if (host === "::")
13146
+ return true;
13147
+ const compressionIndex = host.indexOf("::");
13148
+ if (compressionIndex !== -1) {
13149
+ if (compressionIndex !== host.lastIndexOf("::"))
13150
+ return false;
13151
+ const left = host.slice(0, compressionIndex);
13152
+ const right = host.slice(compressionIndex + 2);
13153
+ const leftGroups = left ? left.split(":") : [];
13154
+ const rightGroups = right ? right.split(":") : [];
13155
+ const explicitGroups = leftGroups.length + rightGroups.length;
13156
+ return explicitGroups < 8 && leftGroups.every(isIPv6ZeroGroup) && rightGroups.every(isIPv6ZeroGroup);
13157
+ }
13158
+ const groups = host.split(":");
13159
+ return groups.length === 8 && groups.every(isIPv6ZeroGroup);
13160
+ }, isIPv6Loopback = (host) => {
13161
+ if (host === "::1")
13162
+ return true;
13163
+ const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
13164
+ if (v4MappedDotted)
13165
+ return isIPv4Loopback(v4MappedDotted[1]);
13166
+ const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
13167
+ if (v4MappedHex) {
13168
+ const high = parseInt(v4MappedHex[1], 16);
13169
+ return high >= 32512 && high <= 32767;
13170
+ }
13171
+ const groups = host.split(":");
13172
+ if (groups.length === 8) {
13173
+ for (let i = 0;i < 7; i++) {
13174
+ if (!/^0+$/.test(groups[i]))
13175
+ return false;
13176
+ }
13177
+ return /^0*1$/.test(groups[7]);
13178
+ }
13179
+ return false;
13180
+ }, isLoopback = (host) => {
13181
+ if (!host)
13182
+ return false;
13183
+ if (LOOPBACK_HOSTNAMES.has(host))
13184
+ return true;
13185
+ if (isIPv4Loopback(host))
13186
+ return true;
13187
+ if (isIPv6Unspecified(host))
13188
+ return true;
13189
+ return isIPv6Loopback(host);
13190
+ }, DEFAULT_PORTS2, parseNoProxyEntry = (entry) => {
13191
+ let entryHost = entry;
13192
+ let entryPort = 0;
13193
+ if (entryHost.charAt(0) === "[") {
13194
+ const bracketIndex = entryHost.indexOf("]");
13195
+ if (bracketIndex !== -1) {
13196
+ const host = entryHost.slice(1, bracketIndex);
13197
+ const rest = entryHost.slice(bracketIndex + 1);
13198
+ if (rest.charAt(0) === ":" && /^\d+$/.test(rest.slice(1))) {
13199
+ entryPort = Number.parseInt(rest.slice(1), 10);
13200
+ }
13201
+ return [host, entryPort];
13202
+ }
13203
+ }
13204
+ const firstColon = entryHost.indexOf(":");
13205
+ const lastColon = entryHost.lastIndexOf(":");
13206
+ if (firstColon !== -1 && firstColon === lastColon && /^\d+$/.test(entryHost.slice(lastColon + 1))) {
13207
+ entryPort = Number.parseInt(entryHost.slice(lastColon + 1), 10);
13208
+ entryHost = entryHost.slice(0, lastColon);
13209
+ }
13210
+ return [entryHost, entryPort];
13211
+ }, IPV4_MAPPED_DOTTED_RE, IPV4_MAPPED_HEX_RE, unmapIPv4MappedIPv6 = (host) => {
13212
+ if (typeof host !== "string" || host.indexOf(":") === -1)
13213
+ return host;
13214
+ const dotted = host.match(IPV4_MAPPED_DOTTED_RE);
13215
+ if (dotted)
13216
+ return dotted[1];
13217
+ const hex = host.match(IPV4_MAPPED_HEX_RE);
13218
+ if (hex) {
13219
+ const high = parseInt(hex[1], 16);
13220
+ const low = parseInt(hex[2], 16);
13221
+ return `${high >> 8}.${high & 255}.${low >> 8}.${low & 255}`;
13222
+ }
13223
+ return host;
13224
+ }, normalizeNoProxyHost = (hostname) => {
13225
+ if (!hostname) {
13226
+ return hostname;
13227
+ }
13228
+ if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
13229
+ hostname = hostname.slice(1, -1);
13230
+ }
13231
+ return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ""));
13232
+ };
13233
+ var init_shouldBypassProxy = __esm(() => {
13234
+ LOOPBACK_HOSTNAMES = new Set(["localhost", "0.0.0.0"]);
13235
+ DEFAULT_PORTS2 = {
13236
+ http: 80,
13237
+ https: 443,
13238
+ ws: 80,
13239
+ wss: 443,
13240
+ ftp: 21
13241
+ };
13242
+ IPV4_MAPPED_DOTTED_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i;
13243
+ IPV4_MAPPED_HEX_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i;
13244
+ });
13245
+
13246
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/speedometer.js
12334
13247
  function speedometer(samplesCount, min) {
12335
13248
  samplesCount = samplesCount || 10;
12336
13249
  const bytes = new Array(samplesCount);
@@ -12369,7 +13282,7 @@ var init_speedometer = __esm(() => {
12369
13282
  speedometer_default = speedometer;
12370
13283
  });
12371
13284
 
12372
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/throttle.js
13285
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/throttle.js
12373
13286
  function throttle(fn, freq) {
12374
13287
  let timestamp = 0;
12375
13288
  let threshold = 1000 / freq;
@@ -12407,24 +13320,27 @@ var init_throttle = __esm(() => {
12407
13320
  throttle_default = throttle;
12408
13321
  });
12409
13322
 
12410
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/progressEventReducer.js
13323
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/progressEventReducer.js
12411
13324
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
12412
13325
  let bytesNotified = 0;
12413
13326
  const _speedometer = speedometer_default(50, 250);
12414
13327
  return throttle_default((e) => {
12415
- const loaded = e.loaded;
13328
+ if (!e || typeof e.loaded !== "number") {
13329
+ return;
13330
+ }
13331
+ const rawLoaded = e.loaded;
12416
13332
  const total = e.lengthComputable ? e.total : undefined;
12417
- const progressBytes = loaded - bytesNotified;
13333
+ const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
13334
+ const progressBytes = Math.max(0, loaded - bytesNotified);
12418
13335
  const rate = _speedometer(progressBytes);
12419
- const inRange = loaded <= total;
12420
- bytesNotified = loaded;
13336
+ bytesNotified = Math.max(bytesNotified, loaded);
12421
13337
  const data = {
12422
13338
  loaded,
12423
13339
  total,
12424
13340
  progress: total ? loaded / total : undefined,
12425
13341
  bytes: progressBytes,
12426
13342
  rate: rate ? rate : undefined,
12427
- estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
13343
+ estimated: rate && total ? (total - loaded) / rate : undefined,
12428
13344
  event: e,
12429
13345
  lengthComputable: total != null,
12430
13346
  [isDownloadStream ? "download" : "upload"]: true
@@ -12448,7 +13364,7 @@ var init_progressEventReducer = __esm(() => {
12448
13364
  init_utils();
12449
13365
  });
12450
13366
 
12451
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
13367
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
12452
13368
  function estimateDataURLDecodedBytes(url2) {
12453
13369
  if (!url2 || typeof url2 !== "string")
12454
13370
  return 0;
@@ -12467,163 +13383,264 @@ function estimateDataURLDecodedBytes(url2) {
12467
13383
  if (body.charCodeAt(i) === 37 && i + 2 < len) {
12468
13384
  const a = body.charCodeAt(i + 1);
12469
13385
  const b = body.charCodeAt(i + 2);
12470
- const isHex = (a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102);
13386
+ const isHex = isHexDigit(a) && isHexDigit(b);
12471
13387
  if (isHex) {
12472
13388
  effectiveLen -= 2;
12473
- i += 2;
12474
- }
12475
- }
12476
- }
12477
- let pad = 0;
12478
- let idx = len - 1;
12479
- const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && body.charCodeAt(j - 1) === 51 && (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
12480
- if (idx >= 0) {
12481
- if (body.charCodeAt(idx) === 61) {
12482
- pad++;
12483
- idx--;
12484
- } else if (tailIsPct3D(idx)) {
12485
- pad++;
12486
- idx -= 3;
12487
- }
12488
- }
12489
- if (pad === 1 && idx >= 0) {
12490
- if (body.charCodeAt(idx) === 61) {
12491
- pad++;
12492
- } else if (tailIsPct3D(idx)) {
12493
- pad++;
12494
- }
12495
- }
12496
- const groups = Math.floor(effectiveLen / 4);
12497
- const bytes = groups * 3 - (pad || 0);
12498
- return bytes > 0 ? bytes : 0;
12499
- }
12500
- return Buffer.byteLength(body, "utf8");
12501
- }
12502
- var init_estimateDataURLDecodedBytes = () => {};
12503
-
12504
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/adapters/http.js
12505
- import http from "http";
12506
- import https from "https";
12507
- import http2 from "http2";
12508
- import util2 from "util";
12509
- import zlib from "zlib";
12510
- import stream3 from "stream";
12511
- import { EventEmitter } from "events";
12512
-
12513
- class Http2Sessions {
12514
- constructor() {
12515
- this.sessions = Object.create(null);
12516
- }
12517
- getSession(authority, options) {
12518
- options = Object.assign({
12519
- sessionTimeout: 1000
12520
- }, options);
12521
- let authoritySessions = this.sessions[authority];
12522
- if (authoritySessions) {
12523
- let len = authoritySessions.length;
12524
- for (let i = 0;i < len; i++) {
12525
- const [sessionHandle, sessionOptions] = authoritySessions[i];
12526
- if (!sessionHandle.destroyed && !sessionHandle.closed && util2.isDeepStrictEqual(sessionOptions, options)) {
12527
- return sessionHandle;
12528
- }
12529
- }
12530
- }
12531
- const session = http2.connect(authority, options);
12532
- let removed;
12533
- const removeSession = () => {
12534
- if (removed) {
12535
- return;
12536
- }
12537
- removed = true;
12538
- let entries = authoritySessions, len = entries.length, i = len;
12539
- while (i--) {
12540
- if (entries[i][0] === session) {
12541
- if (len === 1) {
12542
- delete this.sessions[authority];
12543
- } else {
12544
- entries.splice(i, 1);
12545
- }
12546
- if (!session.closed) {
12547
- session.close();
12548
- }
12549
- return;
12550
- }
12551
- }
12552
- };
12553
- const originalRequestFn = session.request;
12554
- const { sessionTimeout } = options;
12555
- if (sessionTimeout != null) {
12556
- let timer;
12557
- let streamsCount = 0;
12558
- session.request = function() {
12559
- const stream4 = originalRequestFn.apply(this, arguments);
12560
- streamsCount++;
12561
- if (timer) {
12562
- clearTimeout(timer);
12563
- timer = null;
13389
+ i += 2;
12564
13390
  }
12565
- stream4.once("close", () => {
12566
- if (!--streamsCount) {
12567
- timer = setTimeout(() => {
12568
- timer = null;
12569
- removeSession();
12570
- }, sessionTimeout);
12571
- }
12572
- });
12573
- return stream4;
12574
- };
13391
+ }
12575
13392
  }
12576
- session.once("close", removeSession);
12577
- let entry = [session, options];
12578
- authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
12579
- return session;
13393
+ let pad = 0;
13394
+ let idx = len - 1;
13395
+ const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && body.charCodeAt(j - 1) === 51 && (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
13396
+ if (idx >= 0) {
13397
+ if (body.charCodeAt(idx) === 61) {
13398
+ pad++;
13399
+ idx--;
13400
+ } else if (tailIsPct3D(idx)) {
13401
+ pad++;
13402
+ idx -= 3;
13403
+ }
13404
+ }
13405
+ if (pad === 1 && idx >= 0) {
13406
+ if (body.charCodeAt(idx) === 61) {
13407
+ pad++;
13408
+ } else if (tailIsPct3D(idx)) {
13409
+ pad++;
13410
+ }
13411
+ }
13412
+ const groups = Math.floor(effectiveLen / 4);
13413
+ const bytes2 = groups * 3 - (pad || 0);
13414
+ return bytes2 > 0 ? bytes2 : 0;
13415
+ }
13416
+ let bytes = 0;
13417
+ for (let i = 0, len = body.length;i < len; i++) {
13418
+ const c = body.charCodeAt(i);
13419
+ if (c === 37 && isPercentEncodedByte(body, i, len)) {
13420
+ bytes += 1;
13421
+ i += 2;
13422
+ } else if (c < 128) {
13423
+ bytes += 1;
13424
+ } else if (c < 2048) {
13425
+ bytes += 2;
13426
+ } else if (c >= 55296 && c <= 56319 && i + 1 < len) {
13427
+ const next = body.charCodeAt(i + 1);
13428
+ if (next >= 56320 && next <= 57343) {
13429
+ bytes += 4;
13430
+ i++;
13431
+ } else {
13432
+ bytes += 3;
13433
+ }
13434
+ } else {
13435
+ bytes += 3;
13436
+ }
13437
+ }
13438
+ return bytes;
13439
+ }
13440
+ var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102, isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
13441
+ var init_estimateDataURLDecodedBytes = () => {};
13442
+
13443
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/adapters/http.js
13444
+ import http from "http";
13445
+ import https from "https";
13446
+ import http22 from "http2";
13447
+ import util3 from "util";
13448
+ import { resolve as resolvePath } from "path";
13449
+ import zlib from "zlib";
13450
+ import stream3 from "stream";
13451
+ import { EventEmitter } from "events";
13452
+ function setFormDataHeaders(headers, formHeaders, policy) {
13453
+ if (policy !== "content-only") {
13454
+ headers.set(formHeaders);
13455
+ return;
13456
+ }
13457
+ Object.entries(formHeaders).forEach(([key, val]) => {
13458
+ if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
13459
+ headers.set(key, val);
13460
+ }
13461
+ });
13462
+ }
13463
+ function isNodeNativeEnvProxySupported(nodeVersion = process.versions && process.versions.node) {
13464
+ if (!nodeVersion) {
13465
+ return false;
13466
+ }
13467
+ const [major, minor] = nodeVersion.split(".").map((part) => Number(part));
13468
+ if (!Number.isInteger(major) || !Number.isInteger(minor)) {
13469
+ return false;
13470
+ }
13471
+ if (major > 24) {
13472
+ return true;
13473
+ }
13474
+ return NODE_NATIVE_ENV_PROXY_SUPPORT[major] != null && minor >= NODE_NATIVE_ENV_PROXY_SUPPORT[major];
13475
+ }
13476
+ function isNodeEnvProxyEnabled(agent, nodeVersion = process.versions && process.versions.node) {
13477
+ if (!isNodeNativeEnvProxySupported(nodeVersion)) {
13478
+ return false;
13479
+ }
13480
+ const agentOptions = agent && agent.options;
13481
+ return Boolean(agentOptions && utils_default.hasOwnProp(agentOptions, "proxyEnv") && agentOptions.proxyEnv != null);
13482
+ }
13483
+ function getProxyEnvAgent(options, configHttpAgent, configHttpsAgent) {
13484
+ return isHttps.test(options.protocol) ? configHttpsAgent || https.globalAgent : configHttpAgent || http.globalAgent;
13485
+ }
13486
+ function getTunnelingAgent(agentOptions, userHttpsAgent) {
13487
+ const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
13488
+ const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, new Map).get(userHttpsAgent) : tunnelingAgentCache;
13489
+ let agent = cache.get(key);
13490
+ if (agent)
13491
+ return agent;
13492
+ const merged = userHttpsAgent && userHttpsAgent.options ? { ...userHttpsAgent.options, ...agentOptions } : agentOptions;
13493
+ agent = new import_https_proxy_agent.default(merged);
13494
+ if (userHttpsAgent && userHttpsAgent.options) {
13495
+ const originTLSOptions = { ...userHttpsAgent.options };
13496
+ const callback = agent.callback;
13497
+ agent.callback = function axiosTunnelingAgentCallback(req, opts) {
13498
+ return callback.call(this, req, { ...originTLSOptions, ...opts });
13499
+ };
12580
13500
  }
13501
+ agent[kAxiosInstalledTunnel] = true;
13502
+ cache.set(key, agent);
13503
+ return agent;
12581
13504
  }
12582
- function dispatchBeforeRedirect(options, responseDetails) {
13505
+ function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
12583
13506
  if (options.beforeRedirects.proxy) {
12584
13507
  options.beforeRedirects.proxy(options);
12585
13508
  }
13509
+ if (options.beforeRedirects.auth) {
13510
+ options.beforeRedirects.auth(options);
13511
+ }
13512
+ if (options.beforeRedirects.sensitiveHeaders) {
13513
+ options.beforeRedirects.sensitiveHeaders(options, requestDetails);
13514
+ }
12586
13515
  if (options.beforeRedirects.config) {
12587
- options.beforeRedirects.config(options, responseDetails);
13516
+ options.beforeRedirects.config(options, responseDetails, requestDetails);
13517
+ }
13518
+ }
13519
+ function stripMatchingHeaders(headers, sensitiveSet) {
13520
+ if (!headers) {
13521
+ return;
13522
+ }
13523
+ Object.keys(headers).forEach((header) => {
13524
+ if (sensitiveSet.has(header.toLowerCase())) {
13525
+ delete headers[header];
13526
+ }
13527
+ });
13528
+ }
13529
+ function isSameOriginRedirect(redirectOptions, requestDetails) {
13530
+ if (!requestDetails) {
13531
+ return false;
13532
+ }
13533
+ try {
13534
+ return new URL(requestDetails.url).origin === new URL(redirectOptions.href).origin;
13535
+ } catch (e) {
13536
+ return false;
12588
13537
  }
12589
13538
  }
12590
- function setProxy(options, configProxy, location) {
13539
+ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent) {
12591
13540
  let proxy = configProxy;
12592
- if (!proxy && proxy !== false) {
13541
+ const proxyEnvAgent = getProxyEnvAgent(options, configHttpAgent, configHttpsAgent);
13542
+ if (!proxy && proxy !== false && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
12593
13543
  const proxyUrl = getProxyForUrl(location);
12594
13544
  if (proxyUrl) {
12595
- proxy = new URL(proxyUrl);
13545
+ if (!shouldBypassProxy(location)) {
13546
+ proxy = new URL(proxyUrl);
13547
+ }
12596
13548
  }
12597
13549
  }
12598
- if (proxy) {
12599
- if (proxy.username) {
12600
- proxy.auth = (proxy.username || "") + ":" + (proxy.password || "");
13550
+ if (isRedirect && options.headers) {
13551
+ for (const name of Object.keys(options.headers)) {
13552
+ if (name.toLowerCase() === "proxy-authorization") {
13553
+ delete options.headers[name];
13554
+ }
12601
13555
  }
12602
- if (proxy.auth) {
12603
- const validProxyAuth = Boolean(proxy.auth.username || proxy.auth.password);
13556
+ }
13557
+ if (isRedirect && options.agent && options.agent[kAxiosInstalledTunnel]) {
13558
+ options.agent = undefined;
13559
+ }
13560
+ if (proxy) {
13561
+ const isProxyURL = proxy instanceof URL;
13562
+ const readProxyField = (key) => isProxyURL || utils_default.hasOwnProp(proxy, key) ? proxy[key] : undefined;
13563
+ const proxyUsername = readProxyField("username");
13564
+ const proxyPassword = readProxyField("password");
13565
+ let proxyAuth = utils_default.hasOwnProp(proxy, "auth") ? proxy.auth : undefined;
13566
+ if (proxyUsername) {
13567
+ proxyAuth = (proxyUsername || "") + ":" + (proxyPassword || "");
13568
+ }
13569
+ if (proxyAuth) {
13570
+ const authIsObject = typeof proxyAuth === "object";
13571
+ const authUsername = authIsObject && utils_default.hasOwnProp(proxyAuth, "username") ? proxyAuth.username : undefined;
13572
+ const authPassword = authIsObject && utils_default.hasOwnProp(proxyAuth, "password") ? proxyAuth.password : undefined;
13573
+ const validProxyAuth = Boolean(authUsername || authPassword);
12604
13574
  if (validProxyAuth) {
12605
- proxy.auth = (proxy.auth.username || "") + ":" + (proxy.auth.password || "");
12606
- } else if (typeof proxy.auth === "object") {
13575
+ proxyAuth = (authUsername || "") + ":" + (authPassword || "");
13576
+ } else if (authIsObject) {
12607
13577
  throw new AxiosError_default("Invalid proxy authorization", AxiosError_default.ERR_BAD_OPTION, { proxy });
12608
13578
  }
12609
- const base64 = Buffer.from(proxy.auth, "utf8").toString("base64");
12610
- options.headers["Proxy-Authorization"] = "Basic " + base64;
12611
13579
  }
12612
- options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
12613
- const proxyHost = proxy.hostname || proxy.host;
12614
- options.hostname = proxyHost;
12615
- options.host = proxyHost;
12616
- options.port = proxy.port;
12617
- options.path = location;
12618
- if (proxy.protocol) {
12619
- options.protocol = proxy.protocol.includes(":") ? proxy.protocol : `${proxy.protocol}:`;
13580
+ const targetIsHttps = isHttps.test(options.protocol);
13581
+ if (targetIsHttps) {
13582
+ if (!(configHttpsAgent instanceof import_https_proxy_agent.default)) {
13583
+ const proxyHost = readProxyField("hostname") || readProxyField("host");
13584
+ const proxyPort = readProxyField("port");
13585
+ const rawProxyProtocol = readProxyField("protocol");
13586
+ const normalizedProtocol = rawProxyProtocol ? rawProxyProtocol.includes(":") ? rawProxyProtocol : `${rawProxyProtocol}:` : "http:";
13587
+ const proxyHostForURL = proxyHost && proxyHost.includes(":") && !proxyHost.startsWith("[") ? `[${proxyHost}]` : proxyHost;
13588
+ const proxyURL = new URL(`${normalizedProtocol}//${proxyHostForURL}${proxyPort ? ":" + proxyPort : ""}`);
13589
+ const agentOptions = {
13590
+ protocol: proxyURL.protocol,
13591
+ hostname: proxyURL.hostname.replace(/^\[|\]$/g, ""),
13592
+ port: proxyURL.port,
13593
+ auth: proxyAuth && typeof proxyAuth === "string" ? proxyAuth : undefined
13594
+ };
13595
+ if (proxyURL.protocol === "https:") {
13596
+ agentOptions.ALPNProtocols = ["http/1.1"];
13597
+ }
13598
+ const tunnelingAgent = getTunnelingAgent(agentOptions, configHttpsAgent);
13599
+ options.agent = tunnelingAgent;
13600
+ if (options.agents) {
13601
+ options.agents.https = tunnelingAgent;
13602
+ }
13603
+ }
13604
+ } else {
13605
+ if (proxyAuth) {
13606
+ const base64 = Buffer.from(proxyAuth, "utf8").toString("base64");
13607
+ options.headers["Proxy-Authorization"] = "Basic " + base64;
13608
+ }
13609
+ let hasUserHostHeader = false;
13610
+ for (const name of Object.keys(options.headers)) {
13611
+ if (name.toLowerCase() === "host") {
13612
+ hasUserHostHeader = true;
13613
+ break;
13614
+ }
13615
+ }
13616
+ if (!hasUserHostHeader) {
13617
+ options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
13618
+ }
13619
+ const proxyHost = readProxyField("hostname") || readProxyField("host");
13620
+ options.hostname = proxyHost;
13621
+ options.host = proxyHost;
13622
+ options.port = readProxyField("port");
13623
+ options.path = location;
13624
+ const proxyProtocol = readProxyField("protocol");
13625
+ if (proxyProtocol) {
13626
+ options.protocol = proxyProtocol.includes(":") ? proxyProtocol : `${proxyProtocol}:`;
13627
+ }
12620
13628
  }
12621
13629
  }
12622
13630
  options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
12623
- setProxy(redirectOptions, configProxy, redirectOptions.href);
13631
+ setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent, configHttpAgent);
12624
13632
  };
12625
13633
  }
12626
- var import_follow_redirects, zlibOptions, brotliOptions, isBrotliSupported, httpFollow, httpsFollow, isHttps, supportedProtocols, flushOnFinish = (stream4, [throttled, flush]) => {
13634
+ var import_https_proxy_agent, import_follow_redirects, zlibOptions, brotliOptions, zstdOptions, isBrotliSupported, isZstdSupported, ACCEPT_ENCODING, ACCEPT_ENCODING_WITH_ZSTD, httpFollow, httpsFollow, isHttps, FORM_DATA_CONTENT_HEADERS, kAxiosSocketListener, kAxiosCurrentReq, kAxiosInstalledTunnel, tunnelingAgentCache, tunnelingAgentCacheUser, NODE_NATIVE_ENV_PROXY_SUPPORT, supportedProtocols, decodeURIComponentSafe = (value) => {
13635
+ if (!utils_default.isString(value)) {
13636
+ return value;
13637
+ }
13638
+ try {
13639
+ return decodeURIComponent(value);
13640
+ } catch (error) {
13641
+ return value;
13642
+ }
13643
+ }, flushOnFinish = (stream4, [throttled, flush]) => {
12627
13644
  stream4.on("end", flush).on("error", flush);
12628
13645
  return throttled;
12629
13646
  }, http2Sessions, isHttpAdapterSupported, wrapAsync = (asyncExecutor) => {
@@ -12672,9 +13689,13 @@ var init_http = __esm(() => {
12672
13689
  init_formDataToStream();
12673
13690
  init_readBlob();
12674
13691
  init_ZlibHeaderTransformStream();
13692
+ init_Http2Sessions();
12675
13693
  init_callbackify();
13694
+ init_shouldBypassProxy();
13695
+ init_sanitizeHeaderValue();
12676
13696
  init_progressEventReducer();
12677
13697
  init_estimateDataURLDecodedBytes();
13698
+ import_https_proxy_agent = __toESM(require_dist(), 1);
12678
13699
  import_follow_redirects = __toESM(require_follow_redirects(), 1);
12679
13700
  zlibOptions = {
12680
13701
  flush: zlib.constants.Z_SYNC_FLUSH,
@@ -12684,20 +13705,37 @@ var init_http = __esm(() => {
12684
13705
  flush: zlib.constants.BROTLI_OPERATION_FLUSH,
12685
13706
  finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
12686
13707
  };
13708
+ zstdOptions = {
13709
+ flush: zlib.constants.ZSTD_e_flush,
13710
+ finishFlush: zlib.constants.ZSTD_e_flush
13711
+ };
12687
13712
  isBrotliSupported = utils_default.isFunction(zlib.createBrotliDecompress);
13713
+ isZstdSupported = utils_default.isFunction(zlib.createZstdDecompress);
13714
+ ACCEPT_ENCODING = "gzip, compress, deflate" + (isBrotliSupported ? ", br" : "");
13715
+ ACCEPT_ENCODING_WITH_ZSTD = ACCEPT_ENCODING + (isZstdSupported ? ", zstd" : "");
12688
13716
  ({ http: httpFollow, https: httpsFollow } = import_follow_redirects.default);
12689
13717
  isHttps = /https:?/;
13718
+ FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
13719
+ kAxiosSocketListener = Symbol("axios.http.socketListener");
13720
+ kAxiosCurrentReq = Symbol("axios.http.currentReq");
13721
+ kAxiosInstalledTunnel = Symbol("axios.http.installedTunnel");
13722
+ tunnelingAgentCache = new Map;
13723
+ tunnelingAgentCacheUser = new WeakMap;
13724
+ NODE_NATIVE_ENV_PROXY_SUPPORT = {
13725
+ 22: 21,
13726
+ 24: 5
13727
+ };
12690
13728
  supportedProtocols = platform_default.protocols.map((protocol) => {
12691
13729
  return protocol + ":";
12692
13730
  });
12693
- http2Sessions = new Http2Sessions;
13731
+ http2Sessions = new Http2Sessions_default;
12694
13732
  isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
12695
13733
  http2Transport = {
12696
13734
  request(options, cb) {
12697
13735
  const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
12698
13736
  const { http2Options, headers } = options;
12699
13737
  const session = http2Sessions.getSession(authority, http2Options);
12700
- const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http2.constants;
13738
+ const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http22.constants;
12701
13739
  const http2Headers = {
12702
13740
  [HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
12703
13741
  [HTTP2_HEADER_METHOD]: options.method,
@@ -12721,12 +13759,30 @@ var init_http = __esm(() => {
12721
13759
  };
12722
13760
  http_default = isHttpAdapterSupported && function httpAdapter(config) {
12723
13761
  return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
12724
- let { data, lookup, family, httpVersion = 1, http2Options } = config;
12725
- const { responseType, responseEncoding } = config;
12726
- const method = config.method.toUpperCase();
13762
+ const own2 = (key) => utils_default.getSafeProp(config, key);
13763
+ const transitional = own2("transitional") || transitional_default;
13764
+ let data = own2("data");
13765
+ let lookup = own2("lookup");
13766
+ let family = own2("family");
13767
+ let httpVersion = own2("httpVersion");
13768
+ if (httpVersion === undefined)
13769
+ httpVersion = 1;
13770
+ let http2Options = own2("http2Options");
13771
+ const httpAgent = own2("httpAgent");
13772
+ const httpsAgent = own2("httpsAgent");
13773
+ const configProxy = own2("proxy");
13774
+ const responseType = own2("responseType");
13775
+ const responseEncoding = own2("responseEncoding");
13776
+ const socketPath = own2("socketPath");
13777
+ const method = own2("method").toUpperCase();
13778
+ const maxRedirects = own2("maxRedirects");
13779
+ const maxBodyLength = own2("maxBodyLength");
13780
+ const maxContentLength = own2("maxContentLength");
13781
+ const decompress = own2("decompress");
12727
13782
  let isDone;
12728
13783
  let rejected = false;
12729
13784
  let req;
13785
+ let connectPhaseTimer;
12730
13786
  httpVersion = +httpVersion;
12731
13787
  if (Number.isNaN(httpVersion)) {
12732
13788
  throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
@@ -12751,12 +13807,26 @@ var init_http = __esm(() => {
12751
13807
  function abort(reason) {
12752
13808
  try {
12753
13809
  abortEmitter.emit("abort", !reason || reason.type ? new CanceledError_default(null, config, req) : reason);
12754
- } catch (err) {
12755
- console.warn("emit error", err);
13810
+ } catch (err) {}
13811
+ }
13812
+ function clearConnectPhaseTimer() {
13813
+ if (connectPhaseTimer) {
13814
+ clearTimeout(connectPhaseTimer);
13815
+ connectPhaseTimer = null;
13816
+ }
13817
+ }
13818
+ function createTimeoutError() {
13819
+ const configTimeout = own2("timeout");
13820
+ let timeoutErrorMessage = configTimeout ? "timeout of " + configTimeout + "ms exceeded" : "timeout exceeded";
13821
+ const configTimeoutErrorMessage = own2("timeoutErrorMessage");
13822
+ if (configTimeoutErrorMessage) {
13823
+ timeoutErrorMessage = configTimeoutErrorMessage;
12756
13824
  }
13825
+ return new AxiosError_default(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED, config, req);
12757
13826
  }
12758
13827
  abortEmitter.once("abort", reject);
12759
13828
  const onFinished = () => {
13829
+ clearConnectPhaseTimer();
12760
13830
  if (config.cancelToken) {
12761
13831
  config.cancelToken.unsubscribe(abort);
12762
13832
  }
@@ -12773,6 +13843,7 @@ var init_http = __esm(() => {
12773
13843
  }
12774
13844
  onDone((response, isRejected) => {
12775
13845
  isDone = true;
13846
+ clearConnectPhaseTimer();
12776
13847
  if (isRejected) {
12777
13848
  rejected = true;
12778
13849
  onFinished();
@@ -12788,15 +13859,16 @@ var init_http = __esm(() => {
12788
13859
  onFinished();
12789
13860
  }
12790
13861
  });
12791
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
12792
- const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : undefined);
13862
+ const fullPath = buildFullPath(own2("baseURL"), own2("url"), own2("allowAbsoluteUrls"), config);
13863
+ const urlBase = socketPath ? "http://localhost" : platform_default.hasBrowserEnv ? platform_default.origin : undefined;
13864
+ const parsed = new URL(fullPath, urlBase);
12793
13865
  const protocol = parsed.protocol || supportedProtocols[0];
12794
13866
  if (protocol === "data:") {
12795
- if (config.maxContentLength > -1) {
12796
- const dataUrl = String(config.url || fullPath || "");
13867
+ if (maxContentLength > -1) {
13868
+ const dataUrl = String(own2("url") || fullPath || "");
12797
13869
  const estimated = estimateDataURLDecodedBytes(dataUrl);
12798
- if (estimated > config.maxContentLength) {
12799
- return reject(new AxiosError_default("maxContentLength size of " + config.maxContentLength + " exceeded", AxiosError_default.ERR_BAD_RESPONSE, config));
13870
+ if (estimated > maxContentLength) {
13871
+ return reject(new AxiosError_default("maxContentLength size of " + maxContentLength + " exceeded", AxiosError_default.ERR_BAD_RESPONSE, config));
12800
13872
  }
12801
13873
  }
12802
13874
  let convertedData;
@@ -12809,7 +13881,7 @@ var init_http = __esm(() => {
12809
13881
  });
12810
13882
  }
12811
13883
  try {
12812
- convertedData = fromDataURI(config.url, responseType === "blob", {
13884
+ convertedData = fromDataURI(own2("url"), responseType === "blob", {
12813
13885
  Blob: config.env && config.env.Blob
12814
13886
  });
12815
13887
  } catch (err) {
@@ -12848,11 +13920,11 @@ var init_http = __esm(() => {
12848
13920
  tag: `axios-${VERSION}-boundary`,
12849
13921
  boundary: userBoundary && userBoundary[1] || undefined
12850
13922
  });
12851
- } else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders)) {
12852
- headers.set(data.getHeaders());
13923
+ } else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders) && data.getHeaders !== Object.prototype.getHeaders) {
13924
+ setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
12853
13925
  if (!headers.hasContentLength()) {
12854
13926
  try {
12855
- const knownLength = await util2.promisify(data.getLength).call(data);
13927
+ const knownLength = await util3.promisify(data.getLength).call(data);
12856
13928
  Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
12857
13929
  } catch (e) {}
12858
13930
  }
@@ -12869,7 +13941,7 @@ var init_http = __esm(() => {
12869
13941
  return reject(new AxiosError_default("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream", AxiosError_default.ERR_BAD_REQUEST, config));
12870
13942
  }
12871
13943
  headers.setContentLength(data.length, false);
12872
- if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
13944
+ if (maxBodyLength > -1 && data.length > maxBodyLength) {
12873
13945
  return reject(new AxiosError_default("Request body larger than maxBodyLength limit", AxiosError_default.ERR_BAD_REQUEST, config));
12874
13946
  }
12875
13947
  }
@@ -12893,77 +13965,129 @@ var init_http = __esm(() => {
12893
13965
  onUploadProgress && data.on("progress", flushOnFinish(data, progressEventDecorator(contentLength, progressEventReducer(asyncDecorator(onUploadProgress), false, 3))));
12894
13966
  }
12895
13967
  let auth = undefined;
12896
- if (config.auth) {
12897
- const username = config.auth.username || "";
12898
- const password = config.auth.password || "";
13968
+ const configAuth = own2("auth");
13969
+ if (configAuth) {
13970
+ const username = utils_default.getSafeProp(configAuth, "username") || "";
13971
+ const password = utils_default.getSafeProp(configAuth, "password") || "";
12899
13972
  auth = username + ":" + password;
12900
13973
  }
12901
- if (!auth && parsed.username) {
12902
- const urlUsername = parsed.username;
12903
- const urlPassword = parsed.password;
13974
+ if (!auth && (parsed.username || parsed.password)) {
13975
+ const urlUsername = decodeURIComponentSafe(parsed.username);
13976
+ const urlPassword = decodeURIComponentSafe(parsed.password);
12904
13977
  auth = urlUsername + ":" + urlPassword;
12905
13978
  }
12906
13979
  auth && headers.delete("authorization");
12907
13980
  let path;
12908
13981
  try {
12909
- path = buildURL(parsed.pathname + parsed.search, config.params, config.paramsSerializer).replace(/^\?/, "");
13982
+ path = buildURL(parsed.pathname + parsed.search, own2("params"), own2("paramsSerializer")).replace(/^\?/, "");
12910
13983
  } catch (err) {
12911
- const customErr = new Error(err.message);
12912
- customErr.config = config;
12913
- customErr.url = config.url;
12914
- customErr.exists = true;
12915
- return reject(customErr);
12916
- }
12917
- headers.set("Accept-Encoding", "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""), false);
12918
- const options = {
13984
+ return reject(AxiosError_default.from(err, AxiosError_default.ERR_BAD_REQUEST, config, null, null, {
13985
+ url: own2("url"),
13986
+ exists: true
13987
+ }));
13988
+ }
13989
+ headers.set("Accept-Encoding", utils_default.hasOwnProp(transitional, "advertiseZstdAcceptEncoding") && transitional.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING, false);
13990
+ const options = Object.assign(Object.create(null), {
12919
13991
  path,
12920
13992
  method,
12921
- headers: headers.toJSON(),
12922
- agents: { http: config.httpAgent, https: config.httpsAgent },
13993
+ headers: toByteStringHeaderObject(headers),
13994
+ agents: { http: httpAgent, https: httpsAgent },
12923
13995
  auth,
12924
13996
  protocol,
12925
13997
  family,
12926
13998
  beforeRedirect: dispatchBeforeRedirect,
12927
- beforeRedirects: {},
13999
+ beforeRedirects: Object.create(null),
12928
14000
  http2Options
12929
- };
14001
+ });
12930
14002
  !utils_default.isUndefined(lookup) && (options.lookup = lookup);
12931
- if (config.socketPath) {
12932
- options.socketPath = config.socketPath;
14003
+ if (socketPath) {
14004
+ if (typeof socketPath !== "string") {
14005
+ return reject(new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config));
14006
+ }
14007
+ const allowedSocketPaths = own2("allowedSocketPaths");
14008
+ if (allowedSocketPaths != null) {
14009
+ const allowed = Array.isArray(allowedSocketPaths) ? allowedSocketPaths : [allowedSocketPaths];
14010
+ const resolvedSocket = resolvePath(socketPath);
14011
+ const isAllowed = allowed.some((entry) => typeof entry === "string" && resolvePath(entry) === resolvedSocket);
14012
+ if (!isAllowed) {
14013
+ return reject(new AxiosError_default(`socketPath "${socketPath}" is not permitted by allowedSocketPaths`, AxiosError_default.ERR_BAD_OPTION_VALUE, config));
14014
+ }
14015
+ }
14016
+ options.socketPath = socketPath;
12933
14017
  } else {
12934
14018
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
12935
14019
  options.port = parsed.port;
12936
- setProxy(options, config.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
14020
+ setProxy(options, configProxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path, false, httpsAgent, httpAgent);
12937
14021
  }
12938
14022
  let transport;
14023
+ let isNativeTransport = false;
14024
+ let transportEnforcesMaxBodyLength = false;
12939
14025
  const isHttpsRequest = isHttps.test(options.protocol);
12940
- options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
14026
+ if (options.agent == null) {
14027
+ options.agent = isHttpsRequest ? httpsAgent : httpAgent;
14028
+ }
12941
14029
  if (isHttp2) {
12942
14030
  transport = http2Transport;
12943
14031
  } else {
12944
- if (config.transport) {
12945
- transport = config.transport;
12946
- } else if (config.maxRedirects === 0) {
14032
+ const configTransport = own2("transport");
14033
+ if (configTransport) {
14034
+ transport = configTransport;
14035
+ } else if (maxRedirects === 0) {
12947
14036
  transport = isHttpsRequest ? https : http;
14037
+ isNativeTransport = true;
12948
14038
  } else {
12949
- if (config.maxRedirects) {
12950
- options.maxRedirects = config.maxRedirects;
14039
+ transportEnforcesMaxBodyLength = true;
14040
+ options.sensitiveHeaders = [];
14041
+ if (maxRedirects) {
14042
+ options.maxRedirects = maxRedirects;
14043
+ }
14044
+ const configBeforeRedirect = own2("beforeRedirect");
14045
+ if (configBeforeRedirect) {
14046
+ options.beforeRedirects.config = configBeforeRedirect;
12951
14047
  }
12952
- if (config.beforeRedirect) {
12953
- options.beforeRedirects.config = config.beforeRedirect;
14048
+ if (auth) {
14049
+ const requestOrigin = parsed.origin;
14050
+ const authToRestore = auth;
14051
+ options.beforeRedirects.auth = function beforeRedirectAuth(redirectOptions) {
14052
+ try {
14053
+ if (new URL(redirectOptions.href).origin === requestOrigin) {
14054
+ redirectOptions.auth = authToRestore;
14055
+ }
14056
+ } catch (e) {}
14057
+ };
14058
+ }
14059
+ const sensitiveHeaders = own2("sensitiveHeaders");
14060
+ if (sensitiveHeaders != null) {
14061
+ if (!utils_default.isArray(sensitiveHeaders)) {
14062
+ return reject(new AxiosError_default("sensitiveHeaders must be an array of strings", AxiosError_default.ERR_BAD_OPTION_VALUE, config));
14063
+ }
14064
+ const sensitiveSet = new Set;
14065
+ for (const header of sensitiveHeaders) {
14066
+ if (!utils_default.isString(header)) {
14067
+ return reject(new AxiosError_default("sensitiveHeaders must be an array of strings", AxiosError_default.ERR_BAD_OPTION_VALUE, config));
14068
+ }
14069
+ sensitiveSet.add(header.toLowerCase());
14070
+ }
14071
+ if (sensitiveSet.size) {
14072
+ options.sensitiveHeaders = Array.from(sensitiveSet);
14073
+ options.beforeRedirects.sensitiveHeaders = function beforeRedirectSensitiveHeaders(redirectOptions, requestDetails) {
14074
+ if (!isSameOriginRedirect(redirectOptions, requestDetails)) {
14075
+ stripMatchingHeaders(redirectOptions.headers, sensitiveSet);
14076
+ }
14077
+ };
14078
+ }
12954
14079
  }
12955
14080
  transport = isHttpsRequest ? httpsFollow : httpFollow;
12956
14081
  }
12957
14082
  }
12958
- if (config.maxBodyLength > -1) {
12959
- options.maxBodyLength = config.maxBodyLength;
14083
+ if (maxBodyLength > -1) {
14084
+ options.maxBodyLength = maxBodyLength;
12960
14085
  } else {
12961
14086
  options.maxBodyLength = Infinity;
12962
14087
  }
12963
- if (config.insecureHTTPParser) {
12964
- options.insecureHTTPParser = config.insecureHTTPParser;
12965
- }
14088
+ options.insecureHTTPParser = Boolean(own2("insecureHTTPParser"));
12966
14089
  req = transport.request(options, function handleResponse(res) {
14090
+ clearConnectPhaseTimer();
12967
14091
  if (req.destroyed)
12968
14092
  return;
12969
14093
  const streams = [res];
@@ -12977,7 +14101,7 @@ var init_http = __esm(() => {
12977
14101
  }
12978
14102
  let responseStream = res;
12979
14103
  const lastRequest = res.req || req;
12980
- if (config.decompress !== false && res.headers["content-encoding"]) {
14104
+ if (decompress !== false && res.headers["content-encoding"]) {
12981
14105
  if (method === "HEAD" || res.statusCode === 204) {
12982
14106
  delete res.headers["content-encoding"];
12983
14107
  }
@@ -12999,6 +14123,13 @@ var init_http = __esm(() => {
12999
14123
  streams.push(zlib.createBrotliDecompress(brotliOptions));
13000
14124
  delete res.headers["content-encoding"];
13001
14125
  }
14126
+ break;
14127
+ case "zstd":
14128
+ if (isZstdSupported) {
14129
+ streams.push(zlib.createZstdDecompress(zstdOptions));
14130
+ delete res.headers["content-encoding"];
14131
+ }
14132
+ break;
13002
14133
  }
13003
14134
  }
13004
14135
  responseStream = streams.length > 1 ? stream3.pipeline(streams, utils_default.noop) : streams[0];
@@ -13010,6 +14141,23 @@ var init_http = __esm(() => {
13010
14141
  request: lastRequest
13011
14142
  };
13012
14143
  if (responseType === "stream") {
14144
+ if (maxContentLength > -1) {
14145
+ const limit = maxContentLength;
14146
+ const source = responseStream;
14147
+ async function* enforceMaxContentLength() {
14148
+ let totalResponseBytes = 0;
14149
+ for await (const chunk of source) {
14150
+ totalResponseBytes += chunk.length;
14151
+ if (totalResponseBytes > limit) {
14152
+ throw new AxiosError_default("maxContentLength size of " + limit + " exceeded", AxiosError_default.ERR_BAD_RESPONSE, config, lastRequest);
14153
+ }
14154
+ yield chunk;
14155
+ }
14156
+ }
14157
+ responseStream = stream3.Readable.from(enforceMaxContentLength(), {
14158
+ objectMode: false
14159
+ });
14160
+ }
13013
14161
  response.data = responseStream;
13014
14162
  settle(resolve, reject, response);
13015
14163
  } else {
@@ -13018,24 +14166,24 @@ var init_http = __esm(() => {
13018
14166
  responseStream.on("data", function handleStreamData(chunk) {
13019
14167
  responseBuffer.push(chunk);
13020
14168
  totalResponseBytes += chunk.length;
13021
- if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
14169
+ if (maxContentLength > -1 && totalResponseBytes > maxContentLength) {
13022
14170
  rejected = true;
13023
14171
  responseStream.destroy();
13024
- abort(new AxiosError_default("maxContentLength size of " + config.maxContentLength + " exceeded", AxiosError_default.ERR_BAD_RESPONSE, config, lastRequest));
14172
+ abort(new AxiosError_default("maxContentLength size of " + maxContentLength + " exceeded", AxiosError_default.ERR_BAD_RESPONSE, config, lastRequest));
13025
14173
  }
13026
14174
  });
13027
14175
  responseStream.on("aborted", function handlerStreamAborted() {
13028
14176
  if (rejected) {
13029
14177
  return;
13030
14178
  }
13031
- const err = new AxiosError_default("stream has been aborted", AxiosError_default.ERR_BAD_RESPONSE, config, lastRequest);
14179
+ const err = new AxiosError_default("stream has been aborted", AxiosError_default.ERR_BAD_RESPONSE, config, lastRequest, response);
13032
14180
  responseStream.destroy(err);
13033
14181
  reject(err);
13034
14182
  });
13035
14183
  responseStream.on("error", function handleStreamError(err) {
13036
- if (req.destroyed)
14184
+ if (rejected)
13037
14185
  return;
13038
- reject(AxiosError_default.from(err, null, config, lastRequest));
14186
+ reject(AxiosError_default.from(err, null, config, lastRequest, response));
13039
14187
  });
13040
14188
  responseStream.on("end", function handleStreamEnd() {
13041
14189
  try {
@@ -13070,25 +14218,47 @@ var init_http = __esm(() => {
13070
14218
  req.on("error", function handleRequestError(err) {
13071
14219
  reject(AxiosError_default.from(err, null, config, req));
13072
14220
  });
14221
+ const boundSockets = new Set;
13073
14222
  req.on("socket", function handleRequestSocket(socket) {
13074
- socket.setKeepAlive(true, 1000 * 60);
14223
+ if (typeof socket.setKeepAlive === "function") {
14224
+ socket.setKeepAlive(true, 1000 * 60);
14225
+ }
14226
+ if (!socket[kAxiosSocketListener]) {
14227
+ socket.on("error", function handleSocketError(err) {
14228
+ const current = socket[kAxiosCurrentReq];
14229
+ if (current && !current.destroyed) {
14230
+ current.destroy(err);
14231
+ }
14232
+ });
14233
+ socket[kAxiosSocketListener] = true;
14234
+ }
14235
+ socket[kAxiosCurrentReq] = req;
14236
+ boundSockets.add(socket);
13075
14237
  });
13076
- if (config.timeout) {
13077
- const timeout = parseInt(config.timeout, 10);
14238
+ req.once("close", function clearCurrentReq() {
14239
+ clearConnectPhaseTimer();
14240
+ for (const socket of boundSockets) {
14241
+ if (socket[kAxiosCurrentReq] === req) {
14242
+ socket[kAxiosCurrentReq] = null;
14243
+ }
14244
+ }
14245
+ boundSockets.clear();
14246
+ });
14247
+ if (own2("timeout")) {
14248
+ const timeout = parseInt(own2("timeout"), 10);
13078
14249
  if (Number.isNaN(timeout)) {
13079
14250
  abort(new AxiosError_default("error trying to parse `config.timeout` to int", AxiosError_default.ERR_BAD_OPTION_VALUE, config, req));
13080
14251
  return;
13081
14252
  }
13082
- req.setTimeout(timeout, function handleRequestTimeout() {
14253
+ const handleTimeout = function handleTimeout2() {
13083
14254
  if (isDone)
13084
14255
  return;
13085
- let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
13086
- const transitional = config.transitional || transitional_default;
13087
- if (config.timeoutErrorMessage) {
13088
- timeoutErrorMessage = config.timeoutErrorMessage;
13089
- }
13090
- abort(new AxiosError_default(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED, config, req));
13091
- });
14256
+ abort(createTimeoutError());
14257
+ };
14258
+ if (isNativeTransport && timeout > 0) {
14259
+ connectPhaseTimer = setTimeout(handleTimeout, timeout);
14260
+ }
14261
+ req.setTimeout(timeout, handleTimeout);
13092
14262
  } else {
13093
14263
  req.setTimeout(0);
13094
14264
  }
@@ -13107,7 +14277,28 @@ var init_http = __esm(() => {
13107
14277
  abort(new CanceledError_default("Request stream has been aborted", config, req));
13108
14278
  }
13109
14279
  });
13110
- data.pipe(req);
14280
+ let uploadStream = data;
14281
+ if (maxBodyLength > -1 && !transportEnforcesMaxBodyLength) {
14282
+ const limit = maxBodyLength;
14283
+ let bytesSent = 0;
14284
+ uploadStream = stream3.pipeline([
14285
+ data,
14286
+ new stream3.Transform({
14287
+ transform(chunk, _enc, cb) {
14288
+ bytesSent += chunk.length;
14289
+ if (bytesSent > limit) {
14290
+ return cb(new AxiosError_default("Request body larger than maxBodyLength limit", AxiosError_default.ERR_BAD_REQUEST, config, req));
14291
+ }
14292
+ cb(null, chunk);
14293
+ }
14294
+ })
14295
+ ], utils_default.noop);
14296
+ uploadStream.on("error", (err) => {
14297
+ if (!req.destroyed)
14298
+ req.destroy(err);
14299
+ });
14300
+ }
14301
+ uploadStream.pipe(req);
13111
14302
  } else {
13112
14303
  data && req.write(data);
13113
14304
  req.end();
@@ -13116,7 +14307,7 @@ var init_http = __esm(() => {
13116
14307
  };
13117
14308
  });
13118
14309
 
13119
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/isURLSameOrigin.js
14310
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
13120
14311
  var isURLSameOrigin_default;
13121
14312
  var init_isURLSameOrigin = __esm(() => {
13122
14313
  init_platform();
@@ -13126,7 +14317,7 @@ var init_isURLSameOrigin = __esm(() => {
13126
14317
  })(new URL(platform_default.origin), platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)) : () => true;
13127
14318
  });
13128
14319
 
13129
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/cookies.js
14320
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/cookies.js
13130
14321
  var cookies_default;
13131
14322
  var init_cookies = __esm(() => {
13132
14323
  init_utils();
@@ -13156,8 +14347,19 @@ var init_cookies = __esm(() => {
13156
14347
  read(name) {
13157
14348
  if (typeof document === "undefined")
13158
14349
  return null;
13159
- const match = document.cookie.match(new RegExp("(?:^|; )" + name + "=([^;]*)"));
13160
- return match ? decodeURIComponent(match[1]) : null;
14350
+ const cookies = document.cookie.split(";");
14351
+ for (let i = 0;i < cookies.length; i++) {
14352
+ const cookie = cookies[i].replace(/^\s+/, "");
14353
+ const eq = cookie.indexOf("=");
14354
+ if (eq !== -1 && cookie.slice(0, eq) === name) {
14355
+ try {
14356
+ return decodeURIComponent(cookie.slice(eq + 1));
14357
+ } catch (e) {
14358
+ return cookie.slice(eq + 1);
14359
+ }
14360
+ }
14361
+ }
14362
+ return null;
13161
14363
  },
13162
14364
  remove(name) {
13163
14365
  this.write(name, "", Date.now() - 86400000, "/");
@@ -13171,10 +14373,18 @@ var init_cookies = __esm(() => {
13171
14373
  };
13172
14374
  });
13173
14375
 
13174
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/core/mergeConfig.js
14376
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/core/mergeConfig.js
13175
14377
  function mergeConfig(config1, config2) {
14378
+ config1 = config1 || {};
13176
14379
  config2 = config2 || {};
13177
- const config = {};
14380
+ const config = Object.create(null);
14381
+ Object.defineProperty(config, "hasOwnProperty", {
14382
+ __proto__: null,
14383
+ value: Object.prototype.hasOwnProperty,
14384
+ enumerable: false,
14385
+ writable: true,
14386
+ configurable: true
14387
+ });
13178
14388
  function getMergedValue(target, source, prop, caseless) {
13179
14389
  if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
13180
14390
  return utils_default.merge.call({ caseless }, target, source);
@@ -13204,10 +14414,27 @@ function mergeConfig(config1, config2) {
13204
14414
  return getMergedValue(undefined, a);
13205
14415
  }
13206
14416
  }
14417
+ function getMergedTransitionalOption(prop) {
14418
+ const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : undefined;
14419
+ if (!utils_default.isUndefined(transitional2)) {
14420
+ if (utils_default.isPlainObject(transitional2)) {
14421
+ if (utils_default.hasOwnProp(transitional2, prop)) {
14422
+ return transitional2[prop];
14423
+ }
14424
+ } else {
14425
+ return;
14426
+ }
14427
+ }
14428
+ const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : undefined;
14429
+ if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) {
14430
+ return transitional1[prop];
14431
+ }
14432
+ return;
14433
+ }
13207
14434
  function mergeDirectKeys(a, b, prop) {
13208
- if (prop in config2) {
14435
+ if (utils_default.hasOwnProp(config2, prop)) {
13209
14436
  return getMergedValue(a, b);
13210
- } else if (prop in config1) {
14437
+ } else if (utils_default.hasOwnProp(config1, prop)) {
13211
14438
  return getMergedValue(undefined, a);
13212
14439
  }
13213
14440
  }
@@ -13238,6 +14465,7 @@ function mergeConfig(config1, config2) {
13238
14465
  httpsAgent: defaultToConfig2,
13239
14466
  cancelToken: defaultToConfig2,
13240
14467
  socketPath: defaultToConfig2,
14468
+ allowedSocketPaths: defaultToConfig2,
13241
14469
  responseEncoding: defaultToConfig2,
13242
14470
  validateStatus: mergeDirectKeys,
13243
14471
  headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
@@ -13246,9 +14474,18 @@ function mergeConfig(config1, config2) {
13246
14474
  if (prop === "__proto__" || prop === "constructor" || prop === "prototype")
13247
14475
  return;
13248
14476
  const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
13249
- const configValue = merge2(config1[prop], config2[prop], prop);
14477
+ const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : undefined;
14478
+ const b = utils_default.hasOwnProp(config2, prop) ? config2[prop] : undefined;
14479
+ const configValue = merge2(a, b, prop);
13250
14480
  utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
13251
14481
  });
14482
+ if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
14483
+ if (utils_default.hasOwnProp(config1, "validateStatus")) {
14484
+ config.validateStatus = getMergedValue(undefined, config1.validateStatus);
14485
+ } else {
14486
+ delete config.validateStatus;
14487
+ }
14488
+ }
13252
14489
  return config;
13253
14490
  }
13254
14491
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
@@ -13257,31 +14494,54 @@ var init_mergeConfig = __esm(() => {
13257
14494
  init_AxiosHeaders();
13258
14495
  });
13259
14496
 
13260
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/resolveConfig.js
13261
- var resolveConfig_default = (config) => {
14497
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/resolveConfig.js
14498
+ function setFormDataHeaders2(headers, formHeaders, policy) {
14499
+ if (policy !== "content-only") {
14500
+ headers.set(formHeaders);
14501
+ return;
14502
+ }
14503
+ Object.entries(formHeaders || {}).forEach(([key, val]) => {
14504
+ if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
14505
+ headers.set(key, val);
14506
+ }
14507
+ });
14508
+ }
14509
+ function resolveConfig(config) {
13262
14510
  const newConfig = mergeConfig({}, config);
13263
- let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
14511
+ const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : undefined;
14512
+ const data = own2("data");
14513
+ let withXSRFToken = own2("withXSRFToken");
14514
+ const xsrfHeaderName = own2("xsrfHeaderName");
14515
+ const xsrfCookieName = own2("xsrfCookieName");
14516
+ let headers = own2("headers");
14517
+ const auth = own2("auth");
14518
+ const baseURL = own2("baseURL");
14519
+ const allowAbsoluteUrls = own2("allowAbsoluteUrls");
14520
+ const url2 = own2("url");
13264
14521
  newConfig.headers = headers = AxiosHeaders_default.from(headers);
13265
- newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
14522
+ newConfig.url = buildURL(buildFullPath(baseURL, url2, allowAbsoluteUrls, newConfig), own2("params"), own2("paramsSerializer"));
13266
14523
  if (auth) {
13267
- headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")));
14524
+ const username = utils_default.getSafeProp(auth, "username") || "";
14525
+ const password = utils_default.getSafeProp(auth, "password") || "";
14526
+ try {
14527
+ headers.set("Authorization", "Basic " + btoa(username + ":" + (password ? encodeUTF8(password) : "")));
14528
+ } catch (e) {
14529
+ throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_OPTION_VALUE, config);
14530
+ }
13268
14531
  }
13269
14532
  if (utils_default.isFormData(data)) {
13270
- if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
14533
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) {
13271
14534
  headers.setContentType(undefined);
13272
14535
  } else if (utils_default.isFunction(data.getHeaders)) {
13273
- const formHeaders = data.getHeaders();
13274
- const allowedHeaders = ["content-type", "content-length"];
13275
- Object.entries(formHeaders).forEach(([key, val]) => {
13276
- if (allowedHeaders.includes(key.toLowerCase())) {
13277
- headers.set(key, val);
13278
- }
13279
- });
14536
+ setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
13280
14537
  }
13281
14538
  }
13282
14539
  if (platform_default.hasStandardBrowserEnv) {
13283
- withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
13284
- if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(newConfig.url)) {
14540
+ if (utils_default.isFunction(withXSRFToken)) {
14541
+ withXSRFToken = withXSRFToken(newConfig);
14542
+ }
14543
+ const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url);
14544
+ if (shouldSendXSRF) {
13285
14545
  const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
13286
14546
  if (xsrfValue) {
13287
14547
  headers.set(xsrfHeaderName, xsrfValue);
@@ -13289,19 +14549,23 @@ var resolveConfig_default = (config) => {
13289
14549
  }
13290
14550
  }
13291
14551
  return newConfig;
13292
- };
14552
+ }
14553
+ var FORM_DATA_CONTENT_HEADERS2, encodeUTF8 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16))), resolveConfig_default;
13293
14554
  var init_resolveConfig = __esm(() => {
13294
14555
  init_platform();
13295
14556
  init_utils();
14557
+ init_AxiosError();
13296
14558
  init_isURLSameOrigin();
13297
14559
  init_cookies();
13298
14560
  init_buildFullPath();
13299
14561
  init_mergeConfig();
13300
14562
  init_AxiosHeaders();
13301
14563
  init_buildURL();
14564
+ FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
14565
+ resolveConfig_default = resolveConfig;
13302
14566
  });
13303
14567
 
13304
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/adapters/xhr.js
14568
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/adapters/xhr.js
13305
14569
  var isXHRAdapterSupported, xhr_default;
13306
14570
  var init_xhr = __esm(() => {
13307
14571
  init_utils();
@@ -13314,6 +14578,7 @@ var init_xhr = __esm(() => {
13314
14578
  init_AxiosHeaders();
13315
14579
  init_progressEventReducer();
13316
14580
  init_resolveConfig();
14581
+ init_sanitizeHeaderValue();
13317
14582
  isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
13318
14583
  xhr_default = isXHRAdapterSupported && function(config) {
13319
14584
  return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -13363,7 +14628,7 @@ var init_xhr = __esm(() => {
13363
14628
  if (!request || request.readyState !== 4) {
13364
14629
  return;
13365
14630
  }
13366
- if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) {
14631
+ if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) {
13367
14632
  return;
13368
14633
  }
13369
14634
  setTimeout(onloadend);
@@ -13374,6 +14639,7 @@ var init_xhr = __esm(() => {
13374
14639
  return;
13375
14640
  }
13376
14641
  reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
14642
+ done();
13377
14643
  request = null;
13378
14644
  };
13379
14645
  request.onerror = function handleError(event) {
@@ -13381,6 +14647,7 @@ var init_xhr = __esm(() => {
13381
14647
  const err = new AxiosError_default(msg, AxiosError_default.ERR_NETWORK, config, request);
13382
14648
  err.event = event || null;
13383
14649
  reject(err);
14650
+ done();
13384
14651
  request = null;
13385
14652
  };
13386
14653
  request.ontimeout = function handleTimeout() {
@@ -13390,11 +14657,12 @@ var init_xhr = __esm(() => {
13390
14657
  timeoutErrorMessage = _config.timeoutErrorMessage;
13391
14658
  }
13392
14659
  reject(new AxiosError_default(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED, config, request));
14660
+ done();
13393
14661
  request = null;
13394
14662
  };
13395
14663
  requestData === undefined && requestHeaders.setContentType(null);
13396
14664
  if ("setRequestHeader" in request) {
13397
- utils_default.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
14665
+ utils_default.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
13398
14666
  request.setRequestHeader(key, val);
13399
14667
  });
13400
14668
  }
@@ -13420,6 +14688,7 @@ var init_xhr = __esm(() => {
13420
14688
  }
13421
14689
  reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel);
13422
14690
  request.abort();
14691
+ done();
13423
14692
  request = null;
13424
14693
  };
13425
14694
  _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
@@ -13428,8 +14697,9 @@ var init_xhr = __esm(() => {
13428
14697
  }
13429
14698
  }
13430
14699
  const protocol = parseProtocol(_config.url);
13431
- if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
14700
+ if (protocol && !platform_default.protocols.includes(protocol)) {
13432
14701
  reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
14702
+ done();
13433
14703
  return;
13434
14704
  }
13435
14705
  request.send(requestData || null);
@@ -13437,39 +14707,41 @@ var init_xhr = __esm(() => {
13437
14707
  };
13438
14708
  });
13439
14709
 
13440
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/composeSignals.js
14710
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/composeSignals.js
13441
14711
  var composeSignals = (signals, timeout) => {
13442
- const { length } = signals = signals ? signals.filter(Boolean) : [];
13443
- if (timeout || length) {
13444
- let controller = new AbortController;
13445
- let aborted;
13446
- const onabort = function(reason) {
13447
- if (!aborted) {
13448
- aborted = true;
13449
- unsubscribe();
13450
- const err = reason instanceof Error ? reason : this.reason;
13451
- controller.abort(err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err));
13452
- }
13453
- };
13454
- let timer = timeout && setTimeout(() => {
13455
- timer = null;
13456
- onabort(new AxiosError_default(`timeout of ${timeout}ms exceeded`, AxiosError_default.ETIMEDOUT));
13457
- }, timeout);
13458
- const unsubscribe = () => {
13459
- if (signals) {
13460
- timer && clearTimeout(timer);
13461
- timer = null;
13462
- signals.forEach((signal2) => {
13463
- signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
13464
- });
13465
- signals = null;
13466
- }
13467
- };
13468
- signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
13469
- const { signal } = controller;
13470
- signal.unsubscribe = () => utils_default.asap(unsubscribe);
13471
- return signal;
14712
+ signals = signals ? signals.filter(Boolean) : [];
14713
+ if (!timeout && !signals.length) {
14714
+ return;
13472
14715
  }
14716
+ const controller = new AbortController;
14717
+ let aborted = false;
14718
+ const onabort = function(reason) {
14719
+ if (!aborted) {
14720
+ aborted = true;
14721
+ unsubscribe();
14722
+ const err = reason instanceof Error ? reason : this.reason;
14723
+ controller.abort(err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err));
14724
+ }
14725
+ };
14726
+ let timer = timeout && setTimeout(() => {
14727
+ timer = null;
14728
+ onabort(new AxiosError_default(`timeout of ${timeout}ms exceeded`, AxiosError_default.ETIMEDOUT));
14729
+ }, timeout);
14730
+ const unsubscribe = () => {
14731
+ if (!signals) {
14732
+ return;
14733
+ }
14734
+ timer && clearTimeout(timer);
14735
+ timer = null;
14736
+ signals.forEach((signal2) => {
14737
+ signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
14738
+ });
14739
+ signals = null;
14740
+ };
14741
+ signals.forEach((signal2) => signal2.addEventListener("abort", onabort, { once: true }));
14742
+ const { signal } = controller;
14743
+ signal.unsubscribe = () => utils_default.asap(unsubscribe);
14744
+ return signal;
13473
14745
  }, composeSignals_default;
13474
14746
  var init_composeSignals = __esm(() => {
13475
14747
  init_CanceledError();
@@ -13478,7 +14750,7 @@ var init_composeSignals = __esm(() => {
13478
14750
  composeSignals_default = composeSignals;
13479
14751
  });
13480
14752
 
13481
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/trackStream.js
14753
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/trackStream.js
13482
14754
  var streamChunk = function* (chunk, chunkSize) {
13483
14755
  let len = chunk.byteLength;
13484
14756
  if (!chunkSize || len < chunkSize) {
@@ -13553,17 +14825,38 @@ var streamChunk = function* (chunk, chunkSize) {
13553
14825
  };
13554
14826
  var init_trackStream = () => {};
13555
14827
 
13556
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/adapters/fetch.js
13557
- var DEFAULT_CHUNK_SIZE, isFunction2, globalFetchAPI, ReadableStream2, TextEncoder2, test = (fn, ...args) => {
14828
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/adapters/fetch.js
14829
+ var DEFAULT_CHUNK_SIZE, isFunction2, encodeUTF82 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16))), decodeURIComponentSafe2 = (value) => {
14830
+ if (!utils_default.isString(value)) {
14831
+ return value;
14832
+ }
14833
+ try {
14834
+ return decodeURIComponent(value);
14835
+ } catch (error) {
14836
+ return value;
14837
+ }
14838
+ }, test = (fn, ...args) => {
13558
14839
  try {
13559
14840
  return !!fn(...args);
13560
14841
  } catch (e) {
13561
14842
  return false;
13562
14843
  }
14844
+ }, maybeWithAuthCredentials = (url2) => {
14845
+ const protocolIndex = url2.indexOf("://");
14846
+ let urlToCheck = url2;
14847
+ if (protocolIndex !== -1) {
14848
+ urlToCheck = urlToCheck.slice(protocolIndex + 3);
14849
+ }
14850
+ return urlToCheck.includes("@") || urlToCheck.includes(":");
13563
14851
  }, factory = (env) => {
14852
+ const globalObject = utils_default.global !== undefined && utils_default.global !== null ? utils_default.global : globalThis;
14853
+ const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
13564
14854
  env = utils_default.merge.call({
13565
14855
  skipUndefined: true
13566
- }, globalFetchAPI, env);
14856
+ }, {
14857
+ Request: globalObject.Request,
14858
+ Response: globalObject.Response
14859
+ }, env);
13567
14860
  const { fetch: envFetch, Request, Response } = env;
13568
14861
  const isFetchSupported = envFetch ? isFunction2(envFetch) : typeof fetch === "function";
13569
14862
  const isRequestSupported = isFunction2(Request);
@@ -13575,16 +14868,18 @@ var DEFAULT_CHUNK_SIZE, isFunction2, globalFetchAPI, ReadableStream2, TextEncode
13575
14868
  const encodeText = isFetchSupported && (typeof TextEncoder2 === "function" ? ((encoder) => (str) => encoder.encode(str))(new TextEncoder2) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
13576
14869
  const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
13577
14870
  let duplexAccessed = false;
13578
- const body = new ReadableStream2;
13579
- const hasContentType = new Request(platform_default.origin, {
13580
- body,
14871
+ const request = new Request(platform_default.origin, {
14872
+ body: new ReadableStream2,
13581
14873
  method: "POST",
13582
14874
  get duplex() {
13583
14875
  duplexAccessed = true;
13584
14876
  return "half";
13585
14877
  }
13586
- }).headers.has("Content-Type");
13587
- body.cancel();
14878
+ });
14879
+ const hasContentType = request.headers.has("Content-Type");
14880
+ if (request.body != null) {
14881
+ request.body.cancel();
14882
+ }
13588
14883
  return duplexAccessed && !hasContentType;
13589
14884
  });
13590
14885
  const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
@@ -13643,8 +14938,13 @@ var DEFAULT_CHUNK_SIZE, isFunction2, globalFetchAPI, ReadableStream2, TextEncode
13643
14938
  responseType,
13644
14939
  headers,
13645
14940
  withCredentials = "same-origin",
13646
- fetchOptions
14941
+ fetchOptions,
14942
+ maxContentLength,
14943
+ maxBodyLength
13647
14944
  } = resolveConfig_default(config);
14945
+ const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
14946
+ const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
14947
+ const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : undefined;
13648
14948
  let _fetch = envFetch || fetch;
13649
14949
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
13650
14950
  let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
@@ -13653,52 +14953,152 @@ var DEFAULT_CHUNK_SIZE, isFunction2, globalFetchAPI, ReadableStream2, TextEncode
13653
14953
  composedSignal.unsubscribe();
13654
14954
  });
13655
14955
  let requestContentLength;
14956
+ let pendingBodyError = null;
14957
+ const maxBodyLengthError = () => new AxiosError_default("Request body larger than maxBodyLength limit", AxiosError_default.ERR_BAD_REQUEST, config, request);
13656
14958
  try {
13657
- if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
13658
- let _request = new Request(url2, {
13659
- method: "POST",
13660
- body: data,
13661
- duplex: "half"
13662
- });
13663
- let contentTypeHeader;
13664
- if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
13665
- headers.setContentType(contentTypeHeader);
14959
+ let auth = undefined;
14960
+ const configAuth = own2("auth");
14961
+ if (configAuth) {
14962
+ const username = utils_default.getSafeProp(configAuth, "username") || "";
14963
+ const password = utils_default.getSafeProp(configAuth, "password") || "";
14964
+ auth = {
14965
+ username,
14966
+ password
14967
+ };
14968
+ }
14969
+ if (maybeWithAuthCredentials(url2)) {
14970
+ const parsedURL = new URL(url2, platform_default.origin);
14971
+ if (!auth && (parsedURL.username || parsedURL.password)) {
14972
+ const urlUsername = decodeURIComponentSafe2(parsedURL.username);
14973
+ const urlPassword = decodeURIComponentSafe2(parsedURL.password);
14974
+ auth = {
14975
+ username: urlUsername,
14976
+ password: urlPassword
14977
+ };
14978
+ }
14979
+ if (parsedURL.username || parsedURL.password) {
14980
+ parsedURL.username = "";
14981
+ parsedURL.password = "";
14982
+ url2 = parsedURL.href;
14983
+ }
14984
+ }
14985
+ if (auth) {
14986
+ headers.delete("authorization");
14987
+ headers.set("Authorization", "Basic " + btoa(encodeUTF82((auth.username || "") + ":" + (auth.password || ""))));
14988
+ }
14989
+ if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
14990
+ const estimated = estimateDataURLDecodedBytes(url2);
14991
+ if (estimated > maxContentLength) {
14992
+ throw new AxiosError_default("maxContentLength size of " + maxContentLength + " exceeded", AxiosError_default.ERR_BAD_RESPONSE, config, request);
14993
+ }
14994
+ }
14995
+ if (hasMaxBodyLength && method !== "get" && method !== "head") {
14996
+ const outboundLength = await getBodyLength(data);
14997
+ if (typeof outboundLength === "number" && isFinite(outboundLength)) {
14998
+ requestContentLength = outboundLength;
14999
+ if (outboundLength > maxBodyLength) {
15000
+ throw maxBodyLengthError();
15001
+ }
13666
15002
  }
13667
- if (_request.body) {
13668
- const [onProgress, flush] = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress)));
13669
- data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
15003
+ }
15004
+ const mustEnforceStreamBody = hasMaxBodyLength && (utils_default.isReadableStream(data) || utils_default.isStream(data));
15005
+ const trackRequestStream = (stream4, onProgress, flush) => trackStream(stream4, DEFAULT_CHUNK_SIZE, (loadedBytes) => {
15006
+ if (hasMaxBodyLength && loadedBytes > maxBodyLength) {
15007
+ throw pendingBodyError = maxBodyLengthError();
15008
+ }
15009
+ onProgress && onProgress(loadedBytes);
15010
+ }, flush);
15011
+ if (supportsRequestStream && method !== "get" && method !== "head" && (onUploadProgress || mustEnforceStreamBody)) {
15012
+ requestContentLength = requestContentLength == null ? await resolveBodyLength(headers, data) : requestContentLength;
15013
+ if (requestContentLength !== 0 || mustEnforceStreamBody) {
15014
+ let _request = new Request(url2, {
15015
+ method: "POST",
15016
+ body: data,
15017
+ duplex: "half"
15018
+ });
15019
+ let contentTypeHeader;
15020
+ if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
15021
+ headers.setContentType(contentTypeHeader);
15022
+ }
15023
+ if (_request.body) {
15024
+ const [onProgress, flush] = onUploadProgress && progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress))) || [];
15025
+ data = trackRequestStream(_request.body, onProgress, flush);
15026
+ }
13670
15027
  }
15028
+ } else if (mustEnforceStreamBody && !isRequestSupported && isReadableStreamSupported && method !== "get" && method !== "head") {
15029
+ data = trackRequestStream(data);
15030
+ } else if (mustEnforceStreamBody && isRequestSupported && !supportsRequestStream && method !== "get" && method !== "head") {
15031
+ throw new AxiosError_default("Stream request bodies are not supported by the current fetch implementation", AxiosError_default.ERR_NOT_SUPPORT, config, request);
13671
15032
  }
13672
15033
  if (!utils_default.isString(withCredentials)) {
13673
15034
  withCredentials = withCredentials ? "include" : "omit";
13674
15035
  }
13675
15036
  const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
15037
+ if (utils_default.isFormData(data)) {
15038
+ const contentType = headers.getContentType();
15039
+ if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) {
15040
+ headers.delete("content-type");
15041
+ }
15042
+ }
15043
+ headers.set("User-Agent", "axios/" + VERSION, false);
13676
15044
  const resolvedOptions = {
13677
15045
  ...fetchOptions,
13678
15046
  signal: composedSignal,
13679
15047
  method: method.toUpperCase(),
13680
- headers: headers.normalize().toJSON(),
15048
+ headers: toByteStringHeaderObject(headers.normalize()),
13681
15049
  body: data,
13682
15050
  duplex: "half",
13683
15051
  credentials: isCredentialsSupported ? withCredentials : undefined
13684
15052
  };
13685
15053
  request = isRequestSupported && new Request(url2, resolvedOptions);
13686
15054
  let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
15055
+ const responseHeaders = AxiosHeaders_default.from(response.headers);
15056
+ if (hasMaxContentLength) {
15057
+ const declaredLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
15058
+ if (declaredLength != null && declaredLength > maxContentLength) {
15059
+ throw new AxiosError_default("maxContentLength size of " + maxContentLength + " exceeded", AxiosError_default.ERR_BAD_RESPONSE, config, request);
15060
+ }
15061
+ }
13687
15062
  const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
13688
- if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
15063
+ if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
13689
15064
  const options = {};
13690
15065
  ["status", "statusText", "headers"].forEach((prop) => {
13691
15066
  options[prop] = response[prop];
13692
15067
  });
13693
- const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
15068
+ const responseContentLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
13694
15069
  const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];
13695
- response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
15070
+ let bytesRead = 0;
15071
+ const onChunkProgress = (loadedBytes) => {
15072
+ if (hasMaxContentLength) {
15073
+ bytesRead = loadedBytes;
15074
+ if (bytesRead > maxContentLength) {
15075
+ throw new AxiosError_default("maxContentLength size of " + maxContentLength + " exceeded", AxiosError_default.ERR_BAD_RESPONSE, config, request);
15076
+ }
15077
+ }
15078
+ onProgress && onProgress(loadedBytes);
15079
+ };
15080
+ response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
13696
15081
  flush && flush();
13697
15082
  unsubscribe && unsubscribe();
13698
15083
  }), options);
13699
15084
  }
13700
15085
  responseType = responseType || "text";
13701
15086
  let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
15087
+ if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
15088
+ let materializedSize;
15089
+ if (responseData != null) {
15090
+ if (typeof responseData.byteLength === "number") {
15091
+ materializedSize = responseData.byteLength;
15092
+ } else if (typeof responseData.size === "number") {
15093
+ materializedSize = responseData.size;
15094
+ } else if (typeof responseData === "string") {
15095
+ materializedSize = typeof TextEncoder2 === "function" ? new TextEncoder2().encode(responseData).byteLength : responseData.length;
15096
+ }
15097
+ }
15098
+ if (typeof materializedSize === "number" && materializedSize > maxContentLength) {
15099
+ throw new AxiosError_default("maxContentLength size of " + maxContentLength + " exceeded", AxiosError_default.ERR_BAD_RESPONSE, config, request);
15100
+ }
15101
+ }
13702
15102
  !isStreamResponse && unsubscribe && unsubscribe();
13703
15103
  return await new Promise((resolve, reject) => {
13704
15104
  settle(resolve, reject, {
@@ -13712,10 +15112,39 @@ var DEFAULT_CHUNK_SIZE, isFunction2, globalFetchAPI, ReadableStream2, TextEncode
13712
15112
  });
13713
15113
  } catch (err) {
13714
15114
  unsubscribe && unsubscribe();
15115
+ if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError_default) {
15116
+ const canceledError = composedSignal.reason;
15117
+ canceledError.config = config;
15118
+ request && (canceledError.request = request);
15119
+ if (err !== canceledError) {
15120
+ Object.defineProperty(canceledError, "cause", {
15121
+ __proto__: null,
15122
+ value: err,
15123
+ writable: true,
15124
+ enumerable: false,
15125
+ configurable: true
15126
+ });
15127
+ }
15128
+ throw canceledError;
15129
+ }
15130
+ if (pendingBodyError) {
15131
+ request && !pendingBodyError.request && (pendingBodyError.request = request);
15132
+ throw pendingBodyError;
15133
+ }
15134
+ if (err instanceof AxiosError_default) {
15135
+ request && !err.request && (err.request = request);
15136
+ throw err;
15137
+ }
13715
15138
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
13716
- throw Object.assign(new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request, err && err.response), {
13717
- cause: err.cause || err
15139
+ const networkError = new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request, err && err.response);
15140
+ Object.defineProperty(networkError, "cause", {
15141
+ __proto__: null,
15142
+ value: err.cause || err,
15143
+ writable: true,
15144
+ enumerable: false,
15145
+ configurable: true
13718
15146
  });
15147
+ throw networkError;
13719
15148
  }
13720
15149
  throw AxiosError_default.from(err, err && err.code, config, request, err && err.response);
13721
15150
  }
@@ -13743,18 +15172,16 @@ var init_fetch = __esm(() => {
13743
15172
  init_progressEventReducer();
13744
15173
  init_resolveConfig();
13745
15174
  init_settle();
15175
+ init_estimateDataURLDecodedBytes();
15176
+ init_data();
15177
+ init_sanitizeHeaderValue();
13746
15178
  DEFAULT_CHUNK_SIZE = 64 * 1024;
13747
15179
  ({ isFunction: isFunction2 } = utils_default);
13748
- globalFetchAPI = (({ Request, Response }) => ({
13749
- Request,
13750
- Response
13751
- }))(utils_default.global);
13752
- ({ ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = utils_default.global);
13753
15180
  seedCache = new Map;
13754
15181
  adapter = getFetch();
13755
15182
  });
13756
15183
 
13757
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/adapters/adapters.js
15184
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/adapters/adapters.js
13758
15185
  function getAdapter(adapters, config) {
13759
15186
  adapters = utils_default.isArray(adapters) ? adapters : [adapters];
13760
15187
  const { length } = adapters;
@@ -13781,7 +15208,7 @@ function getAdapter(adapters, config) {
13781
15208
  let s = length ? reasons.length > 1 ? `since :
13782
15209
  ` + reasons.map(renderReason).join(`
13783
15210
  `) : " " + renderReason(reasons[0]) : "as no adapter specified";
13784
- throw new AxiosError_default(`There is no suitable adapter to dispatch the request ` + s, "ERR_NOT_SUPPORT");
15211
+ throw new AxiosError_default(`There is no suitable adapter to dispatch the request ` + s, AxiosError_default.ERR_NOT_SUPPORT);
13785
15212
  }
13786
15213
  return adapter2;
13787
15214
  }
@@ -13802,9 +15229,9 @@ var init_adapters = __esm(() => {
13802
15229
  utils_default.forEach(knownAdapters, (fn, value) => {
13803
15230
  if (fn) {
13804
15231
  try {
13805
- Object.defineProperty(fn, "name", { value });
15232
+ Object.defineProperty(fn, "name", { __proto__: null, value });
13806
15233
  } catch (e) {}
13807
- Object.defineProperty(fn, "adapterName", { value });
15234
+ Object.defineProperty(fn, "adapterName", { __proto__: null, value });
13808
15235
  }
13809
15236
  });
13810
15237
  adapters_default = {
@@ -13813,7 +15240,7 @@ var init_adapters = __esm(() => {
13813
15240
  };
13814
15241
  });
13815
15242
 
13816
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/core/dispatchRequest.js
15243
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/core/dispatchRequest.js
13817
15244
  function throwIfCancellationRequested(config) {
13818
15245
  if (config.cancelToken) {
13819
15246
  config.cancelToken.throwIfRequested();
@@ -13832,14 +15259,24 @@ function dispatchRequest(config) {
13832
15259
  const adapter2 = adapters_default.getAdapter(config.adapter || defaults_default.adapter, config);
13833
15260
  return adapter2(config).then(function onAdapterResolution(response) {
13834
15261
  throwIfCancellationRequested(config);
13835
- response.data = transformData.call(config, config.transformResponse, response);
15262
+ config.response = response;
15263
+ try {
15264
+ response.data = transformData.call(config, config.transformResponse, response);
15265
+ } finally {
15266
+ delete config.response;
15267
+ }
13836
15268
  response.headers = AxiosHeaders_default.from(response.headers);
13837
15269
  return response;
13838
15270
  }, function onAdapterRejection(reason) {
13839
15271
  if (!isCancel(reason)) {
13840
15272
  throwIfCancellationRequested(config);
13841
15273
  if (reason && reason.response) {
13842
- reason.response.data = transformData.call(config, config.transformResponse, reason.response);
15274
+ config.response = reason.response;
15275
+ try {
15276
+ reason.response.data = transformData.call(config, config.transformResponse, reason.response);
15277
+ } finally {
15278
+ delete config.response;
15279
+ }
13843
15280
  reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
13844
15281
  }
13845
15282
  }
@@ -13855,16 +15292,16 @@ var init_dispatchRequest = __esm(() => {
13855
15292
  init_adapters();
13856
15293
  });
13857
15294
 
13858
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/validator.js
15295
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/validator.js
13859
15296
  function assertOptions(options, schema, allowUnknown) {
13860
- if (typeof options !== "object") {
15297
+ if (typeof options !== "object" || options === null) {
13861
15298
  throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
13862
15299
  }
13863
15300
  const keys = Object.keys(options);
13864
15301
  let i = keys.length;
13865
15302
  while (i-- > 0) {
13866
15303
  const opt = keys[i];
13867
- const validator = schema[opt];
15304
+ const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : undefined;
13868
15305
  if (validator) {
13869
15306
  const value = options[opt];
13870
15307
  const result = value === undefined || validator(value, opt, options);
@@ -13916,7 +15353,7 @@ var init_validator = __esm(() => {
13916
15353
  };
13917
15354
  });
13918
15355
 
13919
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/core/Axios.js
15356
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/core/Axios.js
13920
15357
  class Axios {
13921
15358
  constructor(instanceConfig) {
13922
15359
  this.defaults = instanceConfig || {};
@@ -13932,13 +15369,27 @@ class Axios {
13932
15369
  if (err instanceof Error) {
13933
15370
  let dummy = {};
13934
15371
  Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error;
13935
- const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
15372
+ const stack = (() => {
15373
+ if (!dummy.stack) {
15374
+ return "";
15375
+ }
15376
+ const firstNewlineIndex = dummy.stack.indexOf(`
15377
+ `);
15378
+ return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
15379
+ })();
13936
15380
  try {
13937
15381
  if (!err.stack) {
13938
15382
  err.stack = stack;
13939
- } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
13940
- err.stack += `
15383
+ } else if (stack) {
15384
+ const firstNewlineIndex = stack.indexOf(`
15385
+ `);
15386
+ const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf(`
15387
+ `, firstNewlineIndex + 1);
15388
+ const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
15389
+ if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
15390
+ err.stack += `
13941
15391
  ` + stack;
15392
+ }
13942
15393
  }
13943
15394
  } catch (e) {}
13944
15395
  }
@@ -13959,7 +15410,9 @@ class Axios {
13959
15410
  silentJSONParsing: validators2.transitional(validators2.boolean),
13960
15411
  forcedJSONParsing: validators2.transitional(validators2.boolean),
13961
15412
  clarifyTimeoutError: validators2.transitional(validators2.boolean),
13962
- legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
15413
+ legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean),
15414
+ advertiseZstdAcceptEncoding: validators2.transitional(validators2.boolean),
15415
+ validateStatusUndefinedResolves: validators2.transitional(validators2.boolean)
13963
15416
  }, false);
13964
15417
  }
13965
15418
  if (paramsSerializer != null) {
@@ -13985,7 +15438,7 @@ class Axios {
13985
15438
  }, true);
13986
15439
  config.method = (config.method || this.defaults.method || "get").toLowerCase();
13987
15440
  let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
13988
- headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
15441
+ headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
13989
15442
  delete headers[method];
13990
15443
  });
13991
15444
  config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
@@ -14048,7 +15501,7 @@ class Axios {
14048
15501
  }
14049
15502
  getUri(config) {
14050
15503
  config = mergeConfig(this.defaults, config);
14051
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
15504
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config);
14052
15505
  return buildURL(fullPath, config.params, config.paramsSerializer);
14053
15506
  }
14054
15507
  }
@@ -14069,11 +15522,11 @@ var init_Axios = __esm(() => {
14069
15522
  return this.request(mergeConfig(config || {}, {
14070
15523
  method,
14071
15524
  url: url2,
14072
- data: (config || {}).data
15525
+ data: config && utils_default.hasOwnProp(config, "data") ? config.data : undefined
14073
15526
  }));
14074
15527
  };
14075
15528
  });
14076
- utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
15529
+ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
14077
15530
  function generateHTTPMethod(isForm) {
14078
15531
  return function httpMethod(url2, data, config) {
14079
15532
  return this.request(mergeConfig(config || {}, {
@@ -14087,12 +15540,14 @@ var init_Axios = __esm(() => {
14087
15540
  };
14088
15541
  }
14089
15542
  Axios.prototype[method] = generateHTTPMethod();
14090
- Axios.prototype[method + "Form"] = generateHTTPMethod(true);
15543
+ if (method !== "query") {
15544
+ Axios.prototype[method + "Form"] = generateHTTPMethod(true);
15545
+ }
14091
15546
  });
14092
15547
  Axios_default = Axios;
14093
15548
  });
14094
15549
 
14095
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/cancel/CancelToken.js
15550
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/cancel/CancelToken.js
14096
15551
  class CancelToken {
14097
15552
  constructor(executor) {
14098
15553
  if (typeof executor !== "function") {
@@ -14182,7 +15637,7 @@ var init_CancelToken = __esm(() => {
14182
15637
  CancelToken_default = CancelToken;
14183
15638
  });
14184
15639
 
14185
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/spread.js
15640
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/spread.js
14186
15641
  function spread(callback) {
14187
15642
  return function wrap(arr) {
14188
15643
  return callback.apply(null, arr);
@@ -14190,7 +15645,7 @@ function spread(callback) {
14190
15645
  }
14191
15646
  var init_spread = () => {};
14192
15647
 
14193
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/isAxiosError.js
15648
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/isAxiosError.js
14194
15649
  function isAxiosError(payload) {
14195
15650
  return utils_default.isObject(payload) && payload.isAxiosError === true;
14196
15651
  }
@@ -14198,7 +15653,7 @@ var init_isAxiosError = __esm(() => {
14198
15653
  init_utils();
14199
15654
  });
14200
15655
 
14201
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/helpers/HttpStatusCode.js
15656
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/helpers/HttpStatusCode.js
14202
15657
  var HttpStatusCode, HttpStatusCode_default;
14203
15658
  var init_HttpStatusCode = __esm(() => {
14204
15659
  HttpStatusCode = {
@@ -14278,7 +15733,7 @@ var init_HttpStatusCode = __esm(() => {
14278
15733
  HttpStatusCode_default = HttpStatusCode;
14279
15734
  });
14280
15735
 
14281
- // node_modules/.bun/axios@1.14.0/node_modules/axios/lib/axios.js
15736
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/lib/axios.js
14282
15737
  function createInstance(defaultConfig) {
14283
15738
  const context = new Axios_default(defaultConfig);
14284
15739
  const instance = bind(Axios_default.prototype.request, context);
@@ -14331,8 +15786,8 @@ var init_axios = __esm(() => {
14331
15786
  axios_default = axios;
14332
15787
  });
14333
15788
 
14334
- // node_modules/.bun/axios@1.14.0/node_modules/axios/index.js
14335
- var Axios2, AxiosError2, CanceledError2, isCancel2, CancelToken2, VERSION2, all2, Cancel, isAxiosError2, spread2, toFormData2, AxiosHeaders2, HttpStatusCode2, formToJSON, getAdapter2, mergeConfig2;
15789
+ // node_modules/.bun/axios@1.18.1/node_modules/axios/index.js
15790
+ var Axios2, AxiosError2, CanceledError2, isCancel2, CancelToken2, VERSION2, all2, Cancel, isAxiosError2, spread2, toFormData2, AxiosHeaders2, HttpStatusCode2, formToJSON, getAdapter2, mergeConfig2, create;
14336
15791
  var init_axios2 = __esm(() => {
14337
15792
  init_axios();
14338
15793
  ({
@@ -14351,8 +15806,9 @@ var init_axios2 = __esm(() => {
14351
15806
  HttpStatusCode: HttpStatusCode2,
14352
15807
  formToJSON,
14353
15808
  getAdapter: getAdapter2,
14354
- mergeConfig: mergeConfig2
15809
+ mergeConfig: mergeConfig2,
15810
+ create
14355
15811
  } = axios_default);
14356
15812
  });
14357
15813
 
14358
- export { axios_default, Axios2 as Axios, AxiosError2 as AxiosError, CanceledError2 as CanceledError, isCancel2 as isCancel, CancelToken2 as CancelToken, VERSION2 as VERSION, all2 as all, Cancel, isAxiosError2 as isAxiosError, spread2 as spread, toFormData2 as toFormData, AxiosHeaders2 as AxiosHeaders, HttpStatusCode2 as HttpStatusCode, formToJSON, getAdapter2 as getAdapter, mergeConfig2 as mergeConfig, init_axios2 as init_axios };
15814
+ export { axios_default, Axios2 as Axios, AxiosError2 as AxiosError, CanceledError2 as CanceledError, isCancel2 as isCancel, CancelToken2 as CancelToken, VERSION2 as VERSION, all2 as all, Cancel, isAxiosError2 as isAxiosError, spread2 as spread, toFormData2 as toFormData, AxiosHeaders2 as AxiosHeaders, HttpStatusCode2 as HttpStatusCode, formToJSON, getAdapter2 as getAdapter, mergeConfig2 as mergeConfig, create, init_axios2 as init_axios };