gemi 0.109.0 → 0.111.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. package/dist/ai/Agent.d.ts +11 -0
  2. package/dist/ai/Agent.d.ts.map +1 -1
  3. package/dist/ai/AgentController.d.ts +7 -0
  4. package/dist/ai/AgentController.d.ts.map +1 -1
  5. package/dist/ai/index.js +11 -11
  6. package/dist/ai/index.js.map +4 -4
  7. package/dist/app/index.js +2 -2
  8. package/dist/app/index.js.map +1 -1
  9. package/dist/bin/gemi.js +485 -63
  10. package/dist/bin/gemi.js.map +12 -8
  11. package/dist/bun/plugin.js +2 -2
  12. package/dist/bun/plugin.js.map +1 -1
  13. package/dist/bun/preload.js +2 -2
  14. package/dist/bun/preload.js.map +1 -1
  15. package/dist/{chunk-hgz8sx40.js → chunk-09ypnhjv.js} +3 -3
  16. package/dist/{chunk-hgz8sx40.js.map → chunk-09ypnhjv.js.map} +1 -1
  17. package/dist/{chunk-qnq110tw.js → chunk-0d9qsmx2.js} +3 -3
  18. package/dist/{chunk-qnq110tw.js.map → chunk-0d9qsmx2.js.map} +1 -1
  19. package/dist/{chunk-m9609t1y.js → chunk-0sjh5v1n.js} +1 -1
  20. package/dist/{chunk-g5a3ptsa.js → chunk-11fsn5mr.js} +3 -3
  21. package/dist/{chunk-g5a3ptsa.js.map → chunk-11fsn5mr.js.map} +1 -1
  22. package/dist/chunk-1bkr5wnt.js +58 -0
  23. package/dist/chunk-1bkr5wnt.js.map +14 -0
  24. package/dist/{chunk-whe0x70j.js → chunk-1c1d0e60.js} +3 -3
  25. package/dist/{chunk-whe0x70j.js.map → chunk-1c1d0e60.js.map} +1 -1
  26. package/dist/{chunk-rgfzqwpg.js → chunk-1kr25rcg.js} +3 -3
  27. package/dist/{chunk-rgfzqwpg.js.map → chunk-1kr25rcg.js.map} +1 -1
  28. package/dist/{chunk-vee4j6ft.js → chunk-1pem26zc.js} +3 -3
  29. package/dist/{chunk-vee4j6ft.js.map → chunk-1pem26zc.js.map} +1 -1
  30. package/dist/{chunk-nxxx0m1a.js → chunk-1va15sfq.js} +2 -2
  31. package/dist/{chunk-nxxx0m1a.js.map → chunk-1va15sfq.js.map} +2 -2
  32. package/dist/{chunk-wvwee7dn.js → chunk-1yx2e0bh.js} +2 -2
  33. package/dist/{chunk-wvwee7dn.js.map → chunk-1yx2e0bh.js.map} +1 -1
  34. package/dist/{chunk-9r3znmqq.js → chunk-303mprnv.js} +2 -2
  35. package/dist/{chunk-9r3znmqq.js.map → chunk-303mprnv.js.map} +1 -1
  36. package/dist/{chunk-grs8dnkd.js → chunk-30xjcyzh.js} +2 -2
  37. package/dist/{chunk-grs8dnkd.js.map → chunk-30xjcyzh.js.map} +1 -1
  38. package/dist/{chunk-h15eae7g.js → chunk-358sdcx9.js} +3 -3
  39. package/dist/{chunk-h15eae7g.js.map → chunk-358sdcx9.js.map} +1 -1
  40. package/dist/{chunk-367kyrdx.js → chunk-3cg7y62b.js} +2 -2
  41. package/dist/{chunk-367kyrdx.js.map → chunk-3cg7y62b.js.map} +1 -1
  42. package/dist/{chunk-t26n9vzw.js → chunk-3y8q8x11.js} +2 -2
  43. package/dist/{chunk-t26n9vzw.js.map → chunk-3y8q8x11.js.map} +1 -1
  44. package/dist/chunk-4mfrgd5m.js +34 -0
  45. package/dist/chunk-4mfrgd5m.js.map +10 -0
  46. package/dist/chunk-5cygrbxv.js +4 -0
  47. package/dist/{chunk-9qw9fa6z.js.map → chunk-5cygrbxv.js.map} +2 -2
  48. package/dist/{chunk-tvy2fqza.js → chunk-5stgtwqw.js} +2 -2
  49. package/dist/{chunk-tvy2fqza.js.map → chunk-5stgtwqw.js.map} +1 -1
  50. package/dist/chunk-6chz1ktz.js +9 -0
  51. package/dist/chunk-6chz1ktz.js.map +13 -0
  52. package/dist/{chunk-wqsdjweb.js → chunk-6vr7f5fq.js} +4 -4
  53. package/dist/{chunk-wqsdjweb.js.map → chunk-6vr7f5fq.js.map} +1 -1
  54. package/dist/{chunk-g74qwhvf.js → chunk-7tx5y712.js} +2 -2
  55. package/dist/{chunk-g74qwhvf.js.map → chunk-7tx5y712.js.map} +1 -1
  56. package/dist/{chunk-g7fr2cy2.js → chunk-8afxrmdc.js} +3 -3
  57. package/dist/{chunk-g7fr2cy2.js.map → chunk-8afxrmdc.js.map} +1 -1
  58. package/dist/{chunk-vwkdfngg.js → chunk-8b2tw2yp.js} +1 -1
  59. package/dist/{chunk-t3qw9syt.js → chunk-9rchedr4.js} +2 -2
  60. package/dist/{chunk-t3qw9syt.js.map → chunk-9rchedr4.js.map} +1 -1
  61. package/dist/{chunk-jm4jn28j.js → chunk-9s851qz8.js} +2 -2
  62. package/dist/{chunk-jm4jn28j.js.map → chunk-9s851qz8.js.map} +1 -1
  63. package/dist/{chunk-jc4j61xb.js → chunk-a6453d9s.js} +3 -3
  64. package/dist/{chunk-jc4j61xb.js.map → chunk-a6453d9s.js.map} +1 -1
  65. package/dist/{chunk-9m18pknp.js → chunk-bn5yn731.js} +2 -2
  66. package/dist/{chunk-9m18pknp.js.map → chunk-bn5yn731.js.map} +1 -1
  67. package/dist/{chunk-t85rca2p.js → chunk-c098fzvk.js} +2 -2
  68. package/dist/{chunk-t85rca2p.js.map → chunk-c098fzvk.js.map} +1 -1
  69. package/dist/{chunk-mp5krm14.js → chunk-cttmy1jp.js} +4 -4
  70. package/dist/{chunk-mp5krm14.js.map → chunk-cttmy1jp.js.map} +2 -2
  71. package/dist/{chunk-eyg88bgv.js → chunk-cy5qp6mz.js} +3 -3
  72. package/dist/{chunk-eyg88bgv.js.map → chunk-cy5qp6mz.js.map} +1 -1
  73. package/dist/{chunk-zys7kecf.js → chunk-ddr4qvvt.js} +3 -3
  74. package/dist/{chunk-zys7kecf.js.map → chunk-ddr4qvvt.js.map} +1 -1
  75. package/dist/{chunk-r9gzbjc5.js → chunk-et4pv1b1.js} +1 -1
  76. package/dist/{chunk-a1g0bahx.js → chunk-frerzsxq.js} +2 -2
  77. package/dist/{chunk-a1g0bahx.js.map → chunk-frerzsxq.js.map} +1 -1
  78. package/dist/{chunk-qz9aaw5x.js → chunk-gb37722w.js} +3 -3
  79. package/dist/{chunk-qz9aaw5x.js.map → chunk-gb37722w.js.map} +1 -1
  80. package/dist/chunk-h3864a8z.js +17 -0
  81. package/dist/{chunk-s5aa4hty.js.map → chunk-h3864a8z.js.map} +13 -12
  82. package/dist/{chunk-zhm3qvrc.js → chunk-h4sw6nt3.js} +3 -3
  83. package/dist/{chunk-zhm3qvrc.js.map → chunk-h4sw6nt3.js.map} +1 -1
  84. package/dist/{chunk-5d6eaxab.js → chunk-he7z7y9j.js} +2 -2
  85. package/dist/{chunk-5d6eaxab.js.map → chunk-he7z7y9j.js.map} +1 -1
  86. package/dist/{chunk-d2tngs73.js → chunk-hf7a51s3.js} +2 -2
  87. package/dist/{chunk-d2tngs73.js.map → chunk-hf7a51s3.js.map} +1 -1
  88. package/dist/chunk-hn67spz6.js +5 -0
  89. package/dist/{chunk-z9x8x3wq.js.map → chunk-hn67spz6.js.map} +1 -1
  90. package/dist/{chunk-f7jhkg8x.js → chunk-jbrwt3cs.js} +4 -4
  91. package/dist/{chunk-f7jhkg8x.js.map → chunk-jbrwt3cs.js.map} +1 -1
  92. package/dist/{chunk-k1ezptt8.js → chunk-k1vw22t2.js} +2 -2
  93. package/dist/{chunk-k1ezptt8.js.map → chunk-k1vw22t2.js.map} +1 -1
  94. package/dist/chunk-k1xt2tw7.js +4 -0
  95. package/dist/{chunk-rjcsdazt.js.map → chunk-k1xt2tw7.js.map} +2 -2
  96. package/dist/{chunk-7mc5e61r.js → chunk-kf71mjxa.js} +3 -3
  97. package/dist/{chunk-7mc5e61r.js.map → chunk-kf71mjxa.js.map} +1 -1
  98. package/dist/{chunk-vna85rdq.js → chunk-m6ystvtk.js} +2 -2
  99. package/dist/{chunk-vna85rdq.js.map → chunk-m6ystvtk.js.map} +1 -1
  100. package/dist/{chunk-qyyxzy04.js → chunk-mb7q7s0a.js} +3 -3
  101. package/dist/{chunk-qyyxzy04.js.map → chunk-mb7q7s0a.js.map} +1 -1
  102. package/dist/{chunk-sp2v357a.js → chunk-mn5xw79b.js} +3 -3
  103. package/dist/{chunk-sp2v357a.js.map → chunk-mn5xw79b.js.map} +1 -1
  104. package/dist/{chunk-q8k7f11z.js → chunk-mwqg079k.js} +2 -2
  105. package/dist/{chunk-q8k7f11z.js.map → chunk-mwqg079k.js.map} +1 -1
  106. package/dist/{chunk-ga533cpz.js → chunk-nncz308h.js} +3 -3
  107. package/dist/{chunk-ga533cpz.js.map → chunk-nncz308h.js.map} +1 -1
  108. package/dist/{chunk-hf32yq23.js → chunk-nsvktvp4.js} +2 -2
  109. package/dist/{chunk-hf32yq23.js.map → chunk-nsvktvp4.js.map} +1 -1
  110. package/dist/{chunk-3x86bhfn.js → chunk-nvv9wej6.js} +3 -3
  111. package/dist/{chunk-3x86bhfn.js.map → chunk-nvv9wej6.js.map} +1 -1
  112. package/dist/chunk-p1aqq0ga.js +16 -0
  113. package/dist/{chunk-d5sbnzng.js.map → chunk-p1aqq0ga.js.map} +5 -9
  114. package/dist/chunk-p7r2w4qw.js +5 -0
  115. package/dist/{chunk-ehasw3qm.js.map → chunk-p7r2w4qw.js.map} +2 -2
  116. package/dist/{chunk-zz7h6tdr.js → chunk-pwmgqq7z.js} +2 -2
  117. package/dist/{chunk-zz7h6tdr.js.map → chunk-pwmgqq7z.js.map} +1 -1
  118. package/dist/chunk-pyj7cd9t.js +4 -0
  119. package/dist/{chunk-gdsby5jh.js.map → chunk-pyj7cd9t.js.map} +2 -2
  120. package/dist/{chunk-h6g9g8qc.js → chunk-q9s7kwgt.js} +3 -3
  121. package/dist/{chunk-h6g9g8qc.js.map → chunk-q9s7kwgt.js.map} +1 -1
  122. package/dist/{chunk-9hbwvcxn.js → chunk-qd2v93y4.js} +2 -2
  123. package/dist/{chunk-9hbwvcxn.js.map → chunk-qd2v93y4.js.map} +1 -1
  124. package/dist/{chunk-tr9mxdth.js → chunk-rfcygmf5.js} +3 -3
  125. package/dist/{chunk-tr9mxdth.js.map → chunk-rfcygmf5.js.map} +1 -1
  126. package/dist/{chunk-vsnmdtrs.js → chunk-s6jjy4y9.js} +2 -2
  127. package/dist/{chunk-vsnmdtrs.js.map → chunk-s6jjy4y9.js.map} +1 -1
  128. package/dist/{chunk-6zekebzt.js → chunk-sq2wkynk.js} +2 -2
  129. package/dist/{chunk-6zekebzt.js.map → chunk-sq2wkynk.js.map} +1 -1
  130. package/dist/{chunk-52vsdnny.js → chunk-td8tha3j.js} +3 -3
  131. package/dist/{chunk-52vsdnny.js.map → chunk-td8tha3j.js.map} +1 -1
  132. package/dist/chunk-tdsfke9q.js +6 -0
  133. package/dist/{chunk-fe1pcnw6.js.map → chunk-tdsfke9q.js.map} +5 -4
  134. package/dist/{chunk-t0bp8nrc.js → chunk-tk5q8hkv.js} +4 -4
  135. package/dist/{chunk-t0bp8nrc.js.map → chunk-tk5q8hkv.js.map} +2 -2
  136. package/dist/{chunk-dpy08xw4.js → chunk-tq85n8zh.js} +2 -2
  137. package/dist/{chunk-dpy08xw4.js.map → chunk-tq85n8zh.js.map} +1 -1
  138. package/dist/{chunk-wdpdqjr1.js → chunk-twnn7r66.js} +2 -2
  139. package/dist/{chunk-wdpdqjr1.js.map → chunk-twnn7r66.js.map} +1 -1
  140. package/dist/chunk-w7jsh3xd.js +5 -0
  141. package/dist/{chunk-1es50p4k.js.map → chunk-w7jsh3xd.js.map} +2 -2
  142. package/dist/chunk-wqvvjd5r.js +24 -0
  143. package/dist/{chunk-w3j53r0a.js.map → chunk-wqvvjd5r.js.map} +4 -4
  144. package/dist/{chunk-zh1t33nq.js → chunk-wsttx9rg.js} +2 -2
  145. package/dist/{chunk-zh1t33nq.js.map → chunk-wsttx9rg.js.map} +1 -1
  146. package/dist/{chunk-7ssjzp87.js → chunk-wvsv1jgg.js} +2 -2
  147. package/dist/{chunk-7ssjzp87.js.map → chunk-wvsv1jgg.js.map} +1 -1
  148. package/dist/chunk-x78jrs4y.js +4 -0
  149. package/dist/{chunk-y66ntxbg.js.map → chunk-x78jrs4y.js.map} +2 -2
  150. package/dist/chunk-xk930yaw.js +5 -0
  151. package/dist/{chunk-pa3khk46.js.map → chunk-xk930yaw.js.map} +2 -2
  152. package/dist/chunk-xkc7ftnq.js +9 -0
  153. package/dist/chunk-xkc7ftnq.js.map +10 -0
  154. package/dist/{chunk-564zfdd1.js → chunk-yer1r3t3.js} +2 -2
  155. package/dist/{chunk-564zfdd1.js.map → chunk-yer1r3t3.js.map} +1 -1
  156. package/dist/{chunk-c8dhvdrs.js → chunk-yqavgpwd.js} +3 -3
  157. package/dist/{chunk-c8dhvdrs.js.map → chunk-yqavgpwd.js.map} +1 -1
  158. package/dist/{chunk-hyfzw1fk.js → chunk-z10cas5r.js} +2 -2
  159. package/dist/{chunk-hyfzw1fk.js.map → chunk-z10cas5r.js.map} +1 -1
  160. package/dist/{chunk-jgtean4t.js → chunk-zhs1r1z0.js} +3 -3
  161. package/dist/{chunk-jgtean4t.js.map → chunk-zhs1r1z0.js.map} +1 -1
  162. package/dist/client/index.d.ts +1 -1
  163. package/dist/client/index.d.ts.map +1 -1
  164. package/dist/client/index.js +106 -52
  165. package/dist/client/index.js.map +1 -1
  166. package/dist/client/islands.d.ts +99 -56
  167. package/dist/client/islands.d.ts.map +1 -1
  168. package/dist/config/index.d.ts +8 -1
  169. package/dist/config/index.d.ts.map +1 -1
  170. package/dist/config/index.js +1 -1
  171. package/dist/config/index.js.map +2 -2
  172. package/dist/console/run.js +2 -2
  173. package/dist/console/run.js.map +1 -1
  174. package/dist/container/index.js +2 -2
  175. package/dist/container/index.js.map +1 -1
  176. package/dist/database/index.js +2 -2
  177. package/dist/database/index.js.map +1 -1
  178. package/dist/email/index.js +2 -2
  179. package/dist/email/index.js.map +1 -1
  180. package/dist/facades/Lang.d.ts +7 -1
  181. package/dist/facades/Lang.d.ts.map +1 -1
  182. package/dist/facades/index.js +2 -2
  183. package/dist/facades/index.js.map +1 -1
  184. package/dist/foundation/index.js +2 -2
  185. package/dist/foundation/index.js.map +1 -1
  186. package/dist/http/CorsMiddleware.d.ts +13 -0
  187. package/dist/http/CorsMiddleware.d.ts.map +1 -1
  188. package/dist/http/Middleware.d.ts +11 -0
  189. package/dist/http/Middleware.d.ts.map +1 -1
  190. package/dist/http/ViewRouter.d.ts +29 -0
  191. package/dist/http/ViewRouter.d.ts.map +1 -1
  192. package/dist/http/index.js +2 -2
  193. package/dist/http/index.js.map +1 -1
  194. package/dist/i18n/dictionaryRuntime.js +2 -2
  195. package/dist/i18n/dictionaryRuntime.js.map +1 -1
  196. package/dist/i18n/index.js +2 -2
  197. package/dist/i18n/index.js.map +1 -1
  198. package/dist/internal/islandRuntime.d.ts +45 -0
  199. package/dist/internal/islandRuntime.d.ts.map +1 -0
  200. package/dist/kernel/index.js +2 -2
  201. package/dist/kernel/index.js.map +1 -1
  202. package/dist/orm/context.d.ts +24 -0
  203. package/dist/orm/context.d.ts.map +1 -1
  204. package/dist/orm/index.d.ts +1 -1
  205. package/dist/orm/index.d.ts.map +1 -1
  206. package/dist/orm/index.js +3 -3
  207. package/dist/orm/index.js.map +2 -2
  208. package/dist/server/devFetch.d.ts.map +1 -1
  209. package/dist/server/httpDev.d.ts.map +1 -1
  210. package/dist/server/httpProd.d.ts.map +1 -1
  211. package/dist/server/idleTimeout.d.ts +24 -0
  212. package/dist/server/idleTimeout.d.ts.map +1 -0
  213. package/dist/server/index.js +2 -2
  214. package/dist/server/index.js.map +1 -1
  215. package/dist/server/modulePreloads.d.ts +7 -6
  216. package/dist/server/modulePreloads.d.ts.map +1 -1
  217. package/dist/services/index.js +2 -2
  218. package/dist/services/index.js.map +1 -1
  219. package/dist/services/middleware/MiddlewareRegistry.d.ts +13 -2
  220. package/dist/services/middleware/MiddlewareRegistry.d.ts.map +1 -1
  221. package/dist/services/queue/work.js +2 -2
  222. package/dist/services/queue/work.js.map +1 -1
  223. package/dist/services/router/DomainRouter.d.ts +10 -0
  224. package/dist/services/router/DomainRouter.d.ts.map +1 -1
  225. package/dist/services/router/ViewRouteDispatcher.d.ts +3 -1
  226. package/dist/services/router/ViewRouteDispatcher.d.ts.map +1 -1
  227. package/dist/services/router/staticCache.d.ts +23 -0
  228. package/dist/services/router/staticCache.d.ts.map +1 -0
  229. package/dist/services/router/staticDocument.d.ts +39 -17
  230. package/dist/services/router/staticDocument.d.ts.map +1 -1
  231. package/dist/stats/bundleStats.d.ts +104 -0
  232. package/dist/stats/bundleStats.d.ts.map +1 -0
  233. package/dist/stats/route-table.d.ts +2 -0
  234. package/dist/stats/route-table.d.ts.map +1 -0
  235. package/dist/stats/route-table.js +4 -0
  236. package/dist/stats/route-table.js.map +11 -0
  237. package/dist/stats/routeTable.d.ts +25 -0
  238. package/dist/stats/routeTable.d.ts.map +1 -0
  239. package/dist/stats/run.d.ts +43 -0
  240. package/dist/stats/run.d.ts.map +1 -0
  241. package/dist/support/index.js +2 -2
  242. package/dist/support/index.js.map +1 -1
  243. package/dist/vite/index.mjs +125 -23
  244. package/dist/vitest/index.d.ts +18 -0
  245. package/dist/vitest/index.d.ts.map +1 -1
  246. package/dist/vitest/index.js +2 -2
  247. package/dist/vitest/index.js.map +3 -3
  248. package/package.json +2 -1
  249. package/dist/chunk-1es50p4k.js +0 -5
  250. package/dist/chunk-9qw9fa6z.js +0 -4
  251. package/dist/chunk-d5sbnzng.js +0 -18
  252. package/dist/chunk-ehasw3qm.js +0 -5
  253. package/dist/chunk-fe1pcnw6.js +0 -6
  254. package/dist/chunk-fj6yftm7.js +0 -58
  255. package/dist/chunk-fj6yftm7.js.map +0 -14
  256. package/dist/chunk-gdsby5jh.js +0 -4
  257. package/dist/chunk-ngw4xzrt.js +0 -9
  258. package/dist/chunk-ngw4xzrt.js.map +0 -10
  259. package/dist/chunk-pa3khk46.js +0 -5
  260. package/dist/chunk-rjcsdazt.js +0 -4
  261. package/dist/chunk-s5aa4hty.js +0 -17
  262. package/dist/chunk-w3j53r0a.js +0 -24
  263. package/dist/chunk-y66ntxbg.js +0 -4
  264. package/dist/chunk-z9x8x3wq.js +0 -5
  265. /package/dist/{chunk-m9609t1y.js.map → chunk-0sjh5v1n.js.map} +0 -0
  266. /package/dist/{chunk-vwkdfngg.js.map → chunk-8b2tw2yp.js.map} +0 -0
  267. /package/dist/{chunk-r9gzbjc5.js.map → chunk-et4pv1b1.js.map} +0 -0
@@ -1,24 +0,0 @@
1
- // @bun
2
- import{i as T,j as KJ}from"./chunk-fe1pcnw6.js";import{ma as B,qa as L,ra as YJ}from"./chunk-a1g0bahx.js";import"./chunk-tvy2fqza.js";import{Bd as QJ,Cd as N,jc as a}from"./chunk-s5aa4hty.js";import"./chunk-3x86bhfn.js";import"./chunk-dpy08xw4.js";import{kf as o,lf as n,of as i}from"./chunk-sp2v357a.js";import{Vf as WJ}from"./chunk-zz7h6tdr.js";import"./chunk-6zekebzt.js";import"./chunk-wdpdqjr1.js";import"./chunk-9m18pknp.js";import"./chunk-ngw4xzrt.js";import"./chunk-vsnmdtrs.js";import"./chunk-7ssjzp87.js";import"./chunk-g74qwhvf.js";import"./chunk-h6g9g8qc.js";import"./chunk-367kyrdx.js";import{oh as GJ}from"./chunk-vna85rdq.js";import{ph as R}from"./chunk-hf32yq23.js";import"./chunk-wvwee7dn.js";import{join as w,resolve as UJ,sep as VJ}from"path";import{Duplex as TJ}from"stream";import{constants as P,createBrotliCompress as qJ,createGzip as AJ}from"zlib";var DJ=["br","gzip"],bJ=1024,kJ=5,SJ=19,wJ=6;function vJ(J){if(J===void 0)return 1;if(!/^\d+(\.\d{0,3})?$/.test(J.trim()))return 1;let $=Number(J.trim());return Number.isFinite($)?Math.min($,1):1}function yJ(J){if(J===null||J===void 0)return null;let $=new Map;for(let Z of J.split(",")){let[Q,...X]=Z.split(";"),j=Q.trim().toLowerCase();if(j==="")continue;let H=1;for(let Y of X){let U=Y.indexOf("=");if(U===-1)continue;if(Y.slice(0,U).trim().toLowerCase()==="q"){H=vJ(Y.slice(U+1));break}}$.set(j,H)}return $}function b(J,$=DJ){let Z=yJ(J);if(!Z)return null;let Q=Z.get("*"),X=null,j=0;for(let H of $){let Y=Z.get(H)??Q??0;if(Y>j)X=H,j=Y}return X}function EJ(J,$){if(!J)return!1;return J.split(",").some((Z)=>Z.trim().toLowerCase().split("=")[0].trim()===$)}function gJ(J,$){if(J==="HEAD")return!1;if($.status<200||$.status===204||$.status===206||$.status===304)return!1;if($.headers.has("Content-Range"))return!1;let Z=$.headers.get("Content-Type");if(!Z||!/^\s*text\/html\s*(;|$)/i.test(Z))return!1;if(!$.body)return!1;let Q=$.headers.get("Content-Encoding");if(Q&&Q.trim().toLowerCase()!=="identity")return!1;if(EJ($.headers.get("Cache-Control"),"no-transform"))return!1;let X=$.headers.get("Content-Length");if(X!==null&&Number(X)<bJ)return!1;return!0}function mJ(J){let $=J==="br"?qJ({params:{[P.BROTLI_PARAM_QUALITY]:kJ,[P.BROTLI_PARAM_LGWIN]:SJ},flush:P.BROTLI_OPERATION_FLUSH}):AJ({level:wJ,flush:P.Z_SYNC_FLUSH});return TJ.toWeb($)}function fJ(J){let $=J.get("Vary");if(!$){J.set("Vary","Accept-Encoding");return}let Z=$.split(",").map((Q)=>Q.trim().toLowerCase());if(Z.includes("*")||Z.includes("accept-encoding"))return;J.append("Vary","Accept-Encoding")}function c(J,$){if(!gJ(J.method,$))return $;let Z=new Headers($.headers);fJ(Z);let Q=b(J.headers.get("Accept-Encoding"));if(!Q)return new Response($.body,{status:$.status,statusText:$.statusText,headers:Z});let X;try{X=mJ(Q)}catch{return new Response($.body,{status:$.status,statusText:$.statusText,headers:Z})}return Z.set("Content-Encoding",Q),Z.delete("Content-Length"),new Response($.body.pipeThrough(X),{status:$.status,statusText:$.statusText,headers:Z})}import{readdir as oJ,stat as t}from"fs/promises";import{join as nJ}from"path";import{mkdir as K2,readFile as uJ,stat as U2,writeFile as V2}from"fs/promises";import{dirname as O2,join as hJ}from"path";import{promisify as p}from"util";import{brotliCompress as cJ,constants as C2,gzip as pJ}from"zlib";var dJ=".vite/static-assets.json";var d={br:".br",gzip:".gz"},lJ=["br","gzip"],I2=p(cJ),F2=p(pJ);async function l(J){let $;try{$=await uJ(hJ(J,dJ),"utf8")}catch{return null}let Z;try{Z=JSON.parse($)?.files}catch{return null}if(!Z||typeof Z!=="object")return null;let Q={files:{}};for(let[X,j]of Object.entries(Z)){if(!Array.isArray(j))continue;Q.files[X]=lJ.filter((H)=>j.includes(H))}return Q}function k(J){let $=J.toString(),Z=new Bun.CryptoHasher("sha1");return Z.update($),Z.digest("hex")}async function r(J){let $=new Set;async function Z(Q,X){let j;try{j=await oJ(Q,{withFileTypes:!0})}catch{return}for(let H of j){if(H.name.startsWith("."))continue;if(X&&H.name==="assets")continue;let Y=nJ(Q,H.name),U=H.isDirectory(),z=H.isFile();if(H.isSymbolicLink())try{let I=await t(Y);U=I.isDirectory(),z=I.isFile()}catch{continue}if(z)$.add(Y);else if(U&&!H.isSymbolicLink())await Z(Y,!1)}}return await Z(J,!0),$}var iJ="public, max-age=31536000, must-revalidate",aJ="public, max-age=31536000, immutable";async function tJ(J,$,Z){if(Z.length===0||J.headers.has("Range"))return null;let Q=b(J.headers.get("Accept-Encoding"),Z);if(!Q)return null;let X=$+d[Q];try{let j=await t(X);return j.isFile()?{encoding:Q,path:X,size:j.size}:null}catch{return null}}async function s(J,$,Z={}){let Q=Bun.file($),X=Z.encodings??[],j={"Content-Type":Q.type||"application/octet-stream","Cache-Control":Z.immutable?aJ:iJ,"Accept-Ranges":"bytes"};if(X.length>0)j.Vary="Accept-Encoding";let H=await tJ(J,$,X);if(H){let z=Bun.file(H.path);return new Response(z.stream(),{headers:{...j,"Content-Encoding":H.encoding,"Content-Length":String(H.size),ETag:`${k(z.lastModified)}-${H.encoding}`}})}let Y=Q.size;j.ETag=k(Q.lastModified);let U=o(J.headers.get("Range"));if(U){let z=n(U,Y);if(!z)return a(Y);return new Response(Q.slice(z.start,z.end+1).stream(),{status:206,headers:{...j,"Content-Range":i(z.start,z.end,Y),"Content-Length":String(z.length)}})}return new Response(Q.stream(),{headers:{...j,"Content-Length":String(Y)}})}import{stat as Z2}from"fs/promises";var _="app/client.tsx";function e(J,$=B){let Z=J[_]?.file;if(!Z)return;return{module:L(Z,$),preload:M(J,_,$)}}function M(J,$,Z=B){let Q=[],X=new Set,j=(H)=>{if(X.has(H))return;X.add(H);let Y=J[H];if(!Y?.file)return;Q.push(L(Y.file,Z));for(let U of Y.imports??[])j(U)};return j($),Q}function JJ(J,$){let Z=[],Q=new Set,X=new Set,j=(H)=>{if(X.has(H))return;X.add(H);let Y=J[H];if(!Y)return;for(let U of Y.imports??[])j(U);for(let U of Y.css??[])if(!Q.has(U))Q.add(U),Z.push(U)};return j($),Z}var rJ=/\.island\.[cm]?[jt]sx?$/;function $J(J,$=B){let Z={};for(let[Q,X]of Object.entries(J)){if(!rJ.test(Q)||!X?.file)continue;Z[Q]={src:L(X.file,$),preload:M(J,Q,$)}}return Z}function ZJ(J,$=30000){let Z=JSON.stringify("gemi:chunk-reload"),Q=JSON.stringify(`Failed to fetch dynamically imported module: ${J}`);return`var r=!1;try{var s=window.sessionStorage,m=JSON.parse(s.getItem(${Z})||"null");var d=m?Date.now()-m.at:NaN;if(navigator.onLine!==!1&&!(d>=0&&d<${$})){s.setItem(${Z},JSON.stringify({url:window.location.href,at:Date.now()}));r=!0}}catch(e){}if(r)window.location.reload();else throw new Error(${Q});export {}`}var sJ=new RegExp(`^${QJ}/.+\\.m?js$`);function eJ(J){return sJ.test(J)}function XJ(J){if(eJ(J))return new Response(ZJ(J),{headers:{"Content-Type":"application/javascript","Cache-Control":"no-store"}});if(N(J))return new Response("Not found",{status:404});return}var J2=`<!DOCTYPE html>
3
- <html lang="en">
4
- <head>
5
- <meta charset="UTF-8" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>Internal Server Error</title>
8
- <style>
9
- body { font-family: system-ui, sans-serif; margin: 0; min-height: 100vh; display: grid; place-items: center; }
10
- main { text-align: center; padding: 16px; }
11
- h1 { font-size: 1.5rem; margin: 0 0 0.5rem; }
12
- p { margin: 0; opacity: 0.7; }
13
- </style>
14
- </head>
15
- <body>
16
- <main>
17
- <h1>Something went wrong</h1>
18
- <p>Please try again later.</p>
19
- </main>
20
- </body>
21
- </html>`;function S(J,$,Z){if(!Z)console.error(J);else try{Z(J instanceof Error?J:Error(String(J),{cause:J}))}catch(Q){console.error(J),console.error(Q)}if(R($))return new Response(JSON.stringify({error:WJ("server_error","Internal Server Error",500)}),{status:500,headers:{"Content-Type":"application/json"}});return new Response(J2,{status:500,headers:{"Content-Type":"text/html; charset=utf-8"}})}var $2={kind:"none"};function HJ(J){let $=(J??"").trim().toLowerCase();if($===""||$==="false"||$==="off"||$==="0")return $2;if($==="true")return{kind:"all"};if(/^[1-9]\d*$/.test($))return{kind:"hops",hops:Number($)};throw Error(`GEMI_TRUST_PROXY must be "false", "true" or the number of proxies in front of the app (e.g. 1). Got ${JSON.stringify(J)}.`)}function jJ(J,$,Z){if(Z.kind==="all"){if(!J.get("x-forwarded-for")&&$)J.set("x-forwarded-for",$);return}J.delete("x-real-ip");let Q=$;if(Z.kind==="hops"){let X=(J.get("x-forwarded-for")??"").split(",").map((H)=>H.trim()).filter(Boolean),j=X.length-Z.hops;Q=j>=0?X[j]:X[0]??$}if(Q)J.set("x-forwarded-for",Q);else J.delete("x-forwarded-for")}var q=GJ(),Q2=w(q,"app"),x=w(q,"dist"),C=w(x,"client");function X2(J){let $;try{$=decodeURIComponent(J)}catch{return null}let Z=UJ(C,"."+$.replace("/assets/assets","/assets"));return Z.startsWith(C+VJ)?Z:null}async function W2(J){try{return(await Z2(J)).isFile()}catch{return!1}}async function J3(J,$){let Z=await import(`${x}/client/.vite/manifest.json`),Q=await import(`${x}/server/.vite/manifest.json`),X=await YJ(`${x}/client`);process.env.ROOT_DIR=q,process.env.APP_DIR=Q2,process.env.DIST_DIR=x;let j={},H={},Y={},U={},z={},I=(W,G)=>`"${W}": () => import("${G}")`,v=[];for(let W of["404",...J.getFlatComponentTree.call(J)]){let G=Q[`app/views/${W}.tsx`];if(!G?.file){console.log(`Server file not found for ${W}`),console.log(G);let O=Object.keys(Q),F=`app/views/${W}.tsx`;console.log(`${F} not found in server manifest`),console.log(O)}let K=await import(`${process.env.DIST_DIR}/server/${G?.file}`);j[W]=K.default,H[W]=K.OpenGraph,Y[W]=K;let V=Z[`app/views/${W}.tsx`];if(V?.css&&V?.css.length>0)U[W]=V?.css;if(V)v.push(I(W,L(V?.file,X))),z[W]=M(Z,`app/views/${W}.tsx`,X)}let zJ=`{${v.join(",")}}`,y=e(Z,X);if(!y)console.error(`Client manifest has no "${_}" entry \u2014 dist/client is incomplete, so documents will render but never hydrate.`);let OJ=Z["app/client.tsx"]?.css??[],E=(await Promise.all(OJ.map((W)=>Bun.file(`${x}/client/${W}`).text()))).join(`
22
- `),xJ=$J(Z,X),LJ=(W)=>xJ[W],g=new Map,CJ=(W)=>{let G=g.get(W);if(!G)G=Bun.file(`${x}/client/${W}`).text(),g.set(W,G);return G},IJ=async(W,G)=>{let K=new Set;for(let O of G?[G,...W]:W)for(let F of JJ(Z,`app/views/${O}.tsx`))K.add(F);let V=await Promise.all([...K].map(async(O)=>({id:O,content:await CJ(O)})));return T(G?V:[{content:E},...V])},FJ=await r(C),m=new Map;for(let[W,G]of Object.entries((await l(C))?.files??{})){let K=UJ(C,W);if(K.startsWith(C+VJ))m.set(K,{immutable:!0,encodings:G})}async function PJ(W){let{pathname:G}=new URL(W.url);if(R(G))return await A(W,G);let K=X2(G);if(N(G)||G.startsWith("/.well-known")||K!==null&&FJ.has(K)){if(!K||!await W2(K))return XJ(G)??await A(W,G);try{return await s(W,K,m.get(K))}catch(O){return J.onException?.(O),new Response("Not found",{status:404})}}return await A(W,G)}async function A(W,G){let K=J.fetch.bind(J);try{let V=await K(W);if(V instanceof Response)return V;else{let O=[];return O.push({content:E}),await V({getStyles:async(D,u)=>{if(!D)return T([]);if(u?.static)return IJ(D,u.layout);for(let MJ of D){let NJ=Z[`app/views/${MJ}.tsx`];for(let h of NJ?.css??[]){let RJ=Bun.file(`${process.env.DIST_DIR}/client/${h}`);O.push({id:h,content:await RJ.text()})}}return T(O)},clientEntry:y,modulePreloadManifest:z,loaders:zJ,viewImportMap:j,viewModules:Y,ogMap:H,cssManifest:U,assetBase:X,resolveIsland:LJ})}}catch(V){return S(V,G,J.onException)}}let _J=(process.env.GEMI_COMPRESSION??"auto").toLowerCase()!=="off",BJ=HJ(process.env.GEMI_TRUST_PROXY),f=Bun.serve({maxRequestBodySize:10737418240,fetch:async(W,G)=>{jJ(W.headers,G.requestIP(W)?.address??null,BJ);let K=await $(W,(V)=>J.withGlobalMiddleware(V,PJ,(O)=>S(O,new URL(V.url).pathname,J.onException)));return _J?c(W,K):K},idleTimeout:Number(process.env.SERVER_IDLE_TIMEOUT??10),port:process.env.PORT||5173});return KJ({port:f.port,rootDir:q}),f}export{J3 as httpProd};
23
-
24
- //# debugId=6E7BAFEA823110B064756E2164756E21
@@ -1,4 +0,0 @@
1
- // @bun
2
- import{H as _}from"./chunk-zys7kecf.js";import{U as ue}from"./chunk-zhm3qvrc.js";import{V as w}from"./chunk-qz9aaw5x.js";import"./chunk-g7fr2cy2.js";import{$ as l}from"./chunk-jc4j61xb.js";import{rh as o,vh as d}from"./chunk-wvwee7dn.js";var g=o(_(),1);var ie=o(l(),1);var O=o(w(),1),R=o(l(),1),J=o(_(),1);var j=o(w(),1),E=o(l(),1),U=(e,s,t)=>{let n={EcsContainer:async(r)=>{let{fromHttp:a}=await import("./chunk-nxxx0m1a.js"),{fromContainerMetadata:c}=await import("./chunk-pa3khk46.js");return t?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>E.chain(a(r??{}),c(r))().then(L)},Ec2InstanceMetadata:async(r)=>{t?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:a}=await import("./chunk-pa3khk46.js");return async()=>a(r)().then(L)},Environment:async(r)=>{t?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:a}=await import("./chunk-vwkdfngg.js");return async()=>a(r)().then(L)}};if(e in n)return n[e];else throw new E.CredentialsProviderError(`Unsupported credential source in profile ${s}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:t})},L=(e)=>j.setCredentialFeature(e,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p");var N=(e,{profile:s="default",logger:t}={})=>{return Boolean(e)&&typeof e==="object"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(he(e,{profile:s,logger:t})||ye(e,{profile:s,logger:t}))},he=(e,{profile:s,logger:t})=>{let n=typeof e.source_profile==="string"&&typeof e.credential_source>"u";if(n)t?.debug?.(` ${s} isAssumeRoleWithSourceProfile source_profile=${e.source_profile}`);return n},ye=(e,{profile:s,logger:t})=>{let n=typeof e.credential_source==="string"&&typeof e.source_profile>"u";if(n)t?.debug?.(` ${s} isCredentialSourceProfile credential_source=${e.credential_source}`);return n},v=async(e,s,t,n,r={},a)=>{t.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let c=s[e],{source_profile:h,region:I}=c;if(!t.roleAssumer){let{getDefaultRoleAssumer:i}=await import("./chunk-t3qw9syt.js").then((m)=>o(m.default,1));t.roleAssumer=i({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...n,...t?.parentClientConfig,region:I??t?.parentClientConfig?.region??n?.region}},t.clientPlugins)}if(h&&h in r)throw new R.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${J.getProfileName(t)}. Profiles visited: `+Object.keys(r).join(", "),{logger:t.logger});t.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${h?`source_profile=[${h}]`:`profile=[${e}]`}`);let T=h?a(h,s,t,n,{...r,[h]:!0},G(s[h]??{})):(await U(c.credential_source,e,t.logger)(t))();if(G(c))return T.then((i)=>O.setCredentialFeature(i,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));else{let i={RoleArn:c.role_arn,RoleSessionName:c.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:c.external_id,DurationSeconds:parseInt(c.duration_seconds||"3600",10)},{mfa_serial:u}=c;if(u){if(!t.mfaCodeProvider)throw new R.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:t.logger,tryNextLink:!1});i.SerialNumber=u,i.TokenCode=await t.mfaCodeProvider(u)}let y=await T;return t.roleAssumer(y,i).then((m)=>O.setCredentialFeature(m,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},G=(e)=>{return!e.role_arn&&!!e.credential_source};var V=o(w(),1);var C=o(w(),1),X=o(l(),1),K=o(_(),1);var k=o(l(),1),W=o(ue(),1),z=o(_(),1);import{createHash as de,createPrivateKey as we,createPublicKey as ke,sign as me}from"crypto";import{promises as D}from"fs";import{homedir as fe}from"os";import{dirname as Ie,join as Y}from"path";class b{profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300000;constructor(e,s,t){this.profileData=e,this.init=s,this.callerClientConfig=t}async loadCredentials(){let e=await this.loadToken();if(!e)throw new k.CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let s=e.accessToken,t=Date.now();if(new Date(s.expiresAt).getTime()-t<=b.REFRESH_THRESHOLD)return this.refresh(e);return{accessKeyId:s.accessKeyId,secretAccessKey:s.secretAccessKey,sessionToken:s.sessionToken,accountId:s.accountId,expiration:new Date(s.expiresAt)}}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}async refresh(e){let{SigninClient:s,CreateOAuth2TokenCommand:t}=await import("./chunk-k1ezptt8.js").then((m)=>o(m.default,1)),{logger:n,userAgentAppId:r}=this.callerClientConfig??{},c=((i)=>{return i?.metadata?.handlerProtocol==="h2"})(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,h=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,I=new s({credentials:{accessKeyId:"",secretAccessKey:""},region:h,requestHandler:c,logger:n,userAgentAppId:r,...this.init?.clientConfig});this.createDPoPInterceptor(I.middlewareStack);let T={tokenInput:{clientId:e.clientId,refreshToken:e.refreshToken,grantType:"refresh_token"}};try{let i=await I.send(new t(T)),{accessKeyId:u,secretAccessKey:y,sessionToken:m}=i.tokenOutput?.accessToken??{},{refreshToken:x,expiresIn:H}=i.tokenOutput??{};if(!u||!y||!m||!x)throw new k.CredentialsProviderError("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let A=(H??900)*1000,f=new Date(Date.now()+A),q={...e,accessToken:{...e.accessToken,accessKeyId:u,secretAccessKey:y,sessionToken:m,expiresAt:f.toISOString()},refreshToken:x};await this.saveToken(q);let S=q.accessToken;return{accessKeyId:S.accessKeyId,secretAccessKey:S.secretAccessKey,sessionToken:S.sessionToken,accountId:S.accountId,expiration:f}}catch(i){if(i.name==="AccessDeniedException"){let u=i.error,y;switch(u){case"TOKEN_EXPIRED":y="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":y="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":y="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:y=`Failed to refresh token: ${String(i)}. Please re-authenticate using \`aws login\``}throw new k.CredentialsProviderError(y,{logger:this.logger,tryNextLink:!1})}throw new k.CredentialsProviderError(`Failed to refresh token: ${String(i)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let s;try{s=await z.readFile(e,{ignoreCache:this.init?.ignoreCache})}catch{s=await D.readFile(e,"utf8")}let t=JSON.parse(s),n=["accessToken","clientId","refreshToken","dpopKey"].filter((r)=>!t[r]);if(!t.accessToken?.accountId)n.push("accountId");if(n.length>0)throw new k.CredentialsProviderError(`Token validation failed, missing fields: ${n.join(", ")}`,{logger:this.logger,tryNextLink:!1});return t}catch(s){throw new k.CredentialsProviderError(`Failed to load token from ${e}: ${String(s)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let s=this.getTokenFilePath(),t=Ie(s);try{await D.mkdir(t,{recursive:!0})}catch(n){}await D.writeFile(s,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??Y(fe(),".aws","login","cache"),s=Buffer.from(this.loginSession,"utf8"),t=de("sha256").update(s).digest("hex");return Y(e,`${t}.json`)}derToRawSignature(e){let s=2;if(e[s]!==2)throw Error("Invalid DER signature");s++;let t=e[s++],n=e.subarray(s,s+t);if(s+=t,e[s]!==2)throw Error("Invalid DER signature");s++;let r=e[s++],a=e.subarray(s,s+r);n=n[0]===0?n.subarray(1):n,a=a[0]===0?a.subarray(1):a;let c=Buffer.concat([Buffer.alloc(32-n.length),n]),h=Buffer.concat([Buffer.alloc(32-a.length),a]);return Buffer.concat([c,h])}createDPoPInterceptor(e){e.add((s)=>async(t)=>{if(W.HttpRequest.isInstance(t.request)){let n=t.request,r=`${n.protocol}//${n.hostname}${n.port?`:${n.port}`:""}${n.path}`,a=await this.generateDpop(n.method,r);n.headers={...n.headers,DPoP:a}}return s(t)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",s){let t=await this.loadToken();try{let n=we({key:t.dpopKey,format:"pem",type:"sec1"}),a=ke(n).export({format:"der",type:"spki"}),c=-1;for(let f=0;f<a.length;f++)if(a[f]===4){c=f;break}let h=a.slice(c+1,c+33),I=a.slice(c+33,c+65),T={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:h.toString("base64url"),y:I.toString("base64url")}},i={jti:crypto.randomUUID(),htm:e,htu:s,iat:Math.floor(Date.now()/1000)},u=Buffer.from(JSON.stringify(T)).toString("base64url"),y=Buffer.from(JSON.stringify(i)).toString("base64url"),m=`${u}.${y}`,x=me("sha256",Buffer.from(m),n),A=this.derToRawSignature(x).toString("base64url");return`${m}.${A}`}catch(n){throw new k.CredentialsProviderError(`Failed to generate Dpop proof: ${n instanceof Error?n.message:String(n)}`,{logger:this.logger,tryNextLink:!1})}}}var Q=(e)=>async({callerClientConfig:s}={})=>{e?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let t=await K.parseKnownFiles(e||{}),n=K.getProfileName({profile:e?.profile??s?.profile}),r=t[n];if(!r?.login_session)throw new X.CredentialsProviderError(`Profile ${n} does not contain login_session.`,{tryNextLink:!0,logger:e?.logger});let c=await new b(r,e,s).loadCredentials();return C.setCredentialFeature(c,"CREDENTIALS_LOGIN","AD")};var Z=(e)=>{return Boolean(e&&e.login_session)},M=async(e,s,t)=>{let n=await Q({...s,profile:e})({callerClientConfig:t});return V.setCredentialFeature(n,"CREDENTIALS_PROFILE_LOGIN","AC")};var p=o(w(),1),ee=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.credential_process==="string",te=async(e,s)=>import("./chunk-rjcsdazt.js").then(({fromProcess:t})=>t({...e,profile:s})().then((n)=>p.setCredentialFeature(n,"CREDENTIALS_PROFILE_PROCESS","v")));var $=o(w(),1),se=async(e,s,t={},n)=>{let{fromSSO:r}=await import("./chunk-1es50p4k.js");return r({profile:e,logger:t.logger,parentClientConfig:t.parentClientConfig,clientConfig:t.clientConfig})({callerClientConfig:n}).then((a)=>{if(s.sso_session)return $.setCredentialFeature(a,"CREDENTIALS_PROFILE_SSO","r");else return $.setCredentialFeature(a,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},ne=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");var ce=o(w(),1),P=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.aws_access_key_id==="string"&&typeof e.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1&&["undefined","string"].indexOf(typeof e.aws_account_id)>-1,F=async(e,s)=>{s?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let t={accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token,...e.aws_credential_scope&&{credentialScope:e.aws_credential_scope},...e.aws_account_id&&{accountId:e.aws_account_id}};return ce.setCredentialFeature(t,"CREDENTIALS_PROFILE","n")};var re=o(w(),1),ae=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.web_identity_token_file==="string"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1,oe=async(e,s,t)=>import("./chunk-gdsby5jh.js").then(({fromTokenFile:n})=>n({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:s.roleAssumerWithWebIdentity,logger:s.logger,parentClientConfig:s.parentClientConfig})({callerClientConfig:t}).then((r)=>re.setCredentialFeature(r,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")));var B=async(e,s,t,n,r={},a=!1)=>{let c=s[e];if(Object.keys(r).length>0&&P(c))return F(c,t);if(a||N(c,{profile:e,logger:t.logger}))return v(e,s,t,n,r,B);if(P(c))return F(c,t);if(ae(c))return oe(c,t,n);if(ee(c))return te(t,e);if(ne(c))return await se(e,c,t,n);if(Z(c))return M(e,t,n);throw new ie.CredentialsProviderError(`Could not resolve credentials using profile: [${e}] in configuration/credentials file(s).`,{logger:t.logger})};var Ne=(e={})=>async({callerClientConfig:s}={})=>{e.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let t=await g.parseKnownFiles(e);return B(g.getProfileName({profile:e.profile??s?.profile}),t,e,s)};export{Ne as fromIni};
3
-
4
- //# debugId=FC58E313A8B4C0C964756E2164756E21
@@ -1,5 +0,0 @@
1
- // @bun
2
- import{gc as o}from"./chunk-jgtean4t.js";import{hc as i}from"./chunk-9hbwvcxn.js";import{ag as t}from"./chunk-9m18pknp.js";import{_g as r}from"./chunk-g74qwhvf.js";class n extends i{register(){this.app.singleton(r,()=>new r(t(o(),this.app.config.get("translation",{}))))}}
3
- export{n as Ya};
4
-
5
- //# debugId=EC72C64B65B87B5D64756E2164756E21