gemi 0.83.0 → 0.84.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 (272) hide show
  1. package/dist/ai/Agent.d.ts +38 -0
  2. package/dist/ai/Agent.d.ts.map +1 -1
  3. package/dist/ai/generate.d.ts +177 -0
  4. package/dist/ai/generate.d.ts.map +1 -0
  5. package/dist/ai/index.d.ts +2 -0
  6. package/dist/ai/index.d.ts.map +1 -1
  7. package/dist/ai/index.js +11 -11
  8. package/dist/ai/index.js.map +7 -5
  9. package/dist/ai/runtime.d.ts +115 -0
  10. package/dist/ai/runtime.d.ts.map +1 -0
  11. package/dist/ai/types.d.ts +4 -0
  12. package/dist/ai/types.d.ts.map +1 -1
  13. package/dist/app/App.d.ts +0 -5
  14. package/dist/app/App.d.ts.map +1 -1
  15. package/dist/app/index.js +1 -1
  16. package/dist/auth/AuthController.d.ts.map +1 -1
  17. package/dist/auth/accessToken.d.ts +45 -0
  18. package/dist/auth/accessToken.d.ts.map +1 -0
  19. package/dist/auth/config.d.ts +3 -3
  20. package/dist/auth/signInRedirect.d.ts +1 -1
  21. package/dist/bin/gemi.js +2 -33
  22. package/dist/bin/gemi.js.map +6 -6
  23. package/dist/bin/migrate/index.d.ts.map +1 -1
  24. package/dist/bin/migrate/tables.d.ts.map +1 -1
  25. package/dist/bun/plugin.js +1 -1
  26. package/dist/bun/preload.js +1 -1
  27. package/dist/{chunk-7dk4b1fn.js → chunk-159hyeng.js} +2 -2
  28. package/dist/{chunk-7dk4b1fn.js.map → chunk-159hyeng.js.map} +1 -1
  29. package/dist/{chunk-fya5147b.js → chunk-1cebv3h8.js} +2 -2
  30. package/dist/{chunk-fya5147b.js.map → chunk-1cebv3h8.js.map} +1 -1
  31. package/dist/{chunk-gzx3rskd.js → chunk-1evk2pma.js} +4 -4
  32. package/dist/{chunk-gzx3rskd.js.map → chunk-1evk2pma.js.map} +1 -1
  33. package/dist/{chunk-hfxx52vr.js → chunk-1s914cdj.js} +3 -3
  34. package/dist/{chunk-hfxx52vr.js.map → chunk-1s914cdj.js.map} +1 -1
  35. package/dist/chunk-302mkqeq.js +7 -0
  36. package/dist/{chunk-817dxq6w.js.map → chunk-302mkqeq.js.map} +4 -4
  37. package/dist/{chunk-03xrgp1m.js → chunk-3z6wkvwj.js} +2 -2
  38. package/dist/{chunk-03xrgp1m.js.map → chunk-3z6wkvwj.js.map} +1 -1
  39. package/dist/{chunk-2gprnzc3.js → chunk-3zb2ycxj.js} +2 -2
  40. package/dist/{chunk-2gprnzc3.js.map → chunk-3zb2ycxj.js.map} +1 -1
  41. package/dist/{chunk-9146818v.js → chunk-495qwteq.js} +3 -3
  42. package/dist/{chunk-9146818v.js.map → chunk-495qwteq.js.map} +1 -1
  43. package/dist/chunk-49akdtfe.js +17 -0
  44. package/dist/{chunk-rs0xmd64.js.map → chunk-49akdtfe.js.map} +11 -12
  45. package/dist/{chunk-0e5z1x9w.js → chunk-53we503k.js} +2 -2
  46. package/dist/{chunk-0e5z1x9w.js.map → chunk-53we503k.js.map} +3 -3
  47. package/dist/{chunk-q7ngq6c5.js → chunk-57ryyhh3.js} +2 -2
  48. package/dist/{chunk-q7ngq6c5.js.map → chunk-57ryyhh3.js.map} +1 -1
  49. package/dist/{chunk-mc1xsz8j.js → chunk-73dk6k4p.js} +3 -3
  50. package/dist/{chunk-mc1xsz8j.js.map → chunk-73dk6k4p.js.map} +1 -1
  51. package/dist/{chunk-t2htq1v0.js → chunk-82nn71zs.js} +2 -2
  52. package/dist/{chunk-t2htq1v0.js.map → chunk-82nn71zs.js.map} +1 -1
  53. package/dist/{chunk-bwwjkdts.js → chunk-87x692j7.js} +2 -2
  54. package/dist/{chunk-bwwjkdts.js.map → chunk-87x692j7.js.map} +1 -1
  55. package/dist/{chunk-zv7417j0.js → chunk-8mmfpqgs.js} +2 -2
  56. package/dist/{chunk-v0j7spj5.js.map → chunk-8mmfpqgs.js.map} +1 -1
  57. package/dist/{chunk-d2tpgkg2.js → chunk-ah9ajys0.js} +1 -1
  58. package/dist/{chunk-zbhqa2z7.js → chunk-ash9e6fn.js} +2 -2
  59. package/dist/{chunk-zbhqa2z7.js.map → chunk-ash9e6fn.js.map} +1 -1
  60. package/dist/{chunk-mmq47yh3.js → chunk-aztkrzvf.js} +2 -2
  61. package/dist/{chunk-mmq47yh3.js.map → chunk-aztkrzvf.js.map} +1 -1
  62. package/dist/chunk-b9dejyaq.js +6 -0
  63. package/dist/{chunk-cmj9xnbp.js.map → chunk-b9dejyaq.js.map} +2 -2
  64. package/dist/{chunk-actjm3wr.js → chunk-bn9pzgww.js} +2 -2
  65. package/dist/{chunk-actjm3wr.js.map → chunk-bn9pzgww.js.map} +1 -1
  66. package/dist/{chunk-2frgq249.js → chunk-cfvq30n4.js} +2 -2
  67. package/dist/{chunk-2frgq249.js.map → chunk-cfvq30n4.js.map} +1 -1
  68. package/dist/{chunk-egw90hq5.js → chunk-cg4k40zy.js} +2 -2
  69. package/dist/{chunk-egw90hq5.js.map → chunk-cg4k40zy.js.map} +1 -1
  70. package/dist/{chunk-1dgab0qn.js → chunk-d0qwdeza.js} +2 -2
  71. package/dist/{chunk-1dgab0qn.js.map → chunk-d0qwdeza.js.map} +1 -1
  72. package/dist/{chunk-1k783c44.js → chunk-dvpxkzms.js} +2 -2
  73. package/dist/{chunk-1k783c44.js.map → chunk-dvpxkzms.js.map} +1 -1
  74. package/dist/chunk-e43drft2.js +5 -0
  75. package/dist/{chunk-z9x8fx21.js.map → chunk-e43drft2.js.map} +5 -7
  76. package/dist/{chunk-8ndqqsf0.js → chunk-ekppwzyg.js} +2 -2
  77. package/dist/{chunk-8ndqqsf0.js.map → chunk-ekppwzyg.js.map} +1 -1
  78. package/dist/{chunk-3h1pd6ec.js → chunk-en3mtnsg.js} +2 -2
  79. package/dist/{chunk-3h1pd6ec.js.map → chunk-en3mtnsg.js.map} +1 -1
  80. package/dist/{chunk-v8s1dmc2.js → chunk-enf9mdac.js} +2 -2
  81. package/dist/{chunk-v8s1dmc2.js.map → chunk-enf9mdac.js.map} +1 -1
  82. package/dist/{chunk-gppm9gkg.js → chunk-eysexnqb.js} +2 -2
  83. package/dist/{chunk-gppm9gkg.js.map → chunk-eysexnqb.js.map} +1 -1
  84. package/dist/{chunk-06p4zq4m.js → chunk-g6qe6wyb.js} +2 -2
  85. package/dist/{chunk-06p4zq4m.js.map → chunk-g6qe6wyb.js.map} +1 -1
  86. package/dist/{chunk-fpy7m803.js → chunk-gr61ymse.js} +2 -2
  87. package/dist/{chunk-fpy7m803.js.map → chunk-gr61ymse.js.map} +1 -1
  88. package/dist/{chunk-0kpvbnz0.js → chunk-j9wqzemf.js} +2 -2
  89. package/dist/{chunk-0kpvbnz0.js.map → chunk-j9wqzemf.js.map} +1 -1
  90. package/dist/{chunk-9z5g1rf6.js → chunk-jg9eqd3r.js} +1 -1
  91. package/dist/{chunk-6sd7an1r.js → chunk-k2qh3hvd.js} +2 -2
  92. package/dist/{chunk-6sd7an1r.js.map → chunk-k2qh3hvd.js.map} +1 -1
  93. package/dist/{chunk-d2esms7y.js → chunk-kb3xk9r8.js} +2 -2
  94. package/dist/{chunk-d2esms7y.js.map → chunk-kb3xk9r8.js.map} +1 -1
  95. package/dist/{chunk-2c89p8pf.js → chunk-kfavcgv2.js} +2 -2
  96. package/dist/{chunk-2c89p8pf.js.map → chunk-kfavcgv2.js.map} +1 -1
  97. package/dist/{chunk-5krm6p9w.js → chunk-m0zba09s.js} +3 -3
  98. package/dist/{chunk-5krm6p9w.js.map → chunk-m0zba09s.js.map} +1 -1
  99. package/dist/{chunk-wmbpdjvs.js → chunk-m4xw99vm.js} +2 -2
  100. package/dist/{chunk-wmbpdjvs.js.map → chunk-m4xw99vm.js.map} +1 -1
  101. package/dist/{chunk-6c0s1mb7.js → chunk-ng8pp9k2.js} +2 -2
  102. package/dist/{chunk-6c0s1mb7.js.map → chunk-ng8pp9k2.js.map} +1 -1
  103. package/dist/{chunk-zbpgt20r.js → chunk-nvj1z2rs.js} +2 -2
  104. package/dist/{chunk-zbpgt20r.js.map → chunk-nvj1z2rs.js.map} +1 -1
  105. package/dist/{chunk-h2pbrneh.js → chunk-pa0ya991.js} +2 -2
  106. package/dist/{chunk-h2pbrneh.js.map → chunk-pa0ya991.js.map} +1 -1
  107. package/dist/{chunk-a3mgkrb2.js → chunk-pgpqsgzx.js} +1 -1
  108. package/dist/{chunk-sexaj89x.js → chunk-pt59xjfc.js} +2 -2
  109. package/dist/{chunk-sexaj89x.js.map → chunk-pt59xjfc.js.map} +1 -1
  110. package/dist/{chunk-8vnb3hfz.js → chunk-r5e4vpa1.js} +2 -2
  111. package/dist/{chunk-8vnb3hfz.js.map → chunk-r5e4vpa1.js.map} +1 -1
  112. package/dist/{chunk-vxxk4syx.js → chunk-r8nhndzb.js} +2 -2
  113. package/dist/{chunk-vxxk4syx.js.map → chunk-r8nhndzb.js.map} +1 -1
  114. package/dist/{chunk-vax2fp2k.js → chunk-rmv1jp9p.js} +2 -2
  115. package/dist/{chunk-vax2fp2k.js.map → chunk-rmv1jp9p.js.map} +1 -1
  116. package/dist/{chunk-d07y2ddw.js → chunk-rqh2wdhb.js} +2 -2
  117. package/dist/{chunk-d07y2ddw.js.map → chunk-rqh2wdhb.js.map} +1 -1
  118. package/dist/{chunk-9hbwvcxn.js → chunk-rv7da58g.js} +2 -2
  119. package/dist/chunk-rv7da58g.js.map +10 -0
  120. package/dist/{chunk-2y9haf48.js → chunk-tdnfhe7x.js} +3 -3
  121. package/dist/{chunk-2y9haf48.js.map → chunk-tdnfhe7x.js.map} +1 -1
  122. package/dist/chunk-tmwsvf02.js +5 -0
  123. package/dist/{chunk-nc82trtm.js.map → chunk-tmwsvf02.js.map} +1 -1
  124. package/dist/{chunk-0zr926cf.js → chunk-v1nm4tcq.js} +2 -2
  125. package/dist/{chunk-0zr926cf.js.map → chunk-v1nm4tcq.js.map} +1 -1
  126. package/dist/{chunk-mwrh96hx.js → chunk-v27a4se1.js} +3 -3
  127. package/dist/chunk-v27a4se1.js.map +12 -0
  128. package/dist/chunk-vfrrzr10.js +4 -0
  129. package/dist/chunk-vfrrzr10.js.map +10 -0
  130. package/dist/{chunk-s7rhttvd.js → chunk-vmpzg4z5.js} +3 -3
  131. package/dist/{chunk-s7rhttvd.js.map → chunk-vmpzg4z5.js.map} +1 -1
  132. package/dist/{chunk-aecx542w.js → chunk-w099t7zj.js} +2 -2
  133. package/dist/{chunk-aecx542w.js.map → chunk-w099t7zj.js.map} +1 -1
  134. package/dist/chunk-wh728wd6.js +5 -0
  135. package/dist/chunk-wh728wd6.js.map +10 -0
  136. package/dist/{chunk-vqexqkfk.js → chunk-wkdzz0rx.js} +3 -3
  137. package/dist/chunk-wkdzz0rx.js.map +10 -0
  138. package/dist/{chunk-vngyybzh.js → chunk-wsx3j5ws.js} +2 -2
  139. package/dist/{chunk-vngyybzh.js.map → chunk-wsx3j5ws.js.map} +1 -1
  140. package/dist/{chunk-7y6gpg08.js → chunk-wwdaswxh.js} +3 -3
  141. package/dist/{chunk-7y6gpg08.js.map → chunk-wwdaswxh.js.map} +1 -1
  142. package/dist/{chunk-nq2hm5xm.js → chunk-xhha1gb3.js} +2 -2
  143. package/dist/{chunk-nq2hm5xm.js.map → chunk-xhha1gb3.js.map} +1 -1
  144. package/dist/{chunk-dk0kdrkm.js → chunk-yk8s5egf.js} +2 -2
  145. package/dist/{chunk-dk0kdrkm.js.map → chunk-yk8s5egf.js.map} +1 -1
  146. package/dist/{chunk-y7gfg6tj.js → chunk-ys4fejmx.js} +2 -2
  147. package/dist/{chunk-y7gfg6tj.js.map → chunk-ys4fejmx.js.map} +1 -1
  148. package/dist/{chunk-6eprvf4s.js → chunk-z409rk5j.js} +2 -2
  149. package/dist/{chunk-6eprvf4s.js.map → chunk-z409rk5j.js.map} +1 -1
  150. package/dist/{chunk-t6yzarvt.js → chunk-z7442w3q.js} +2 -2
  151. package/dist/{chunk-t6yzarvt.js.map → chunk-z7442w3q.js.map} +1 -1
  152. package/dist/{chunk-v0j7spj5.js → chunk-zfch4da5.js} +2 -2
  153. package/dist/{chunk-zv7417j0.js.map → chunk-zfch4da5.js.map} +1 -1
  154. package/dist/{chunk-f46ntdj3.js → chunk-zp971jp2.js} +3 -3
  155. package/dist/{chunk-f46ntdj3.js.map → chunk-zp971jp2.js.map} +1 -1
  156. package/dist/chunks/{ThemeProvider-BiNFL6l7.js → ThemeProvider-Dn3UREDn.js} +64 -90
  157. package/dist/chunks/ThemeProvider-Dn3UREDn.js.map +1 -0
  158. package/dist/client/ClientRouter.d.ts.map +1 -1
  159. package/dist/client/QueryResource.d.ts +14 -0
  160. package/dist/client/QueryResource.d.ts.map +1 -1
  161. package/dist/client/index.d.ts +0 -2
  162. package/dist/client/index.d.ts.map +1 -1
  163. package/dist/client/index.js +4 -29
  164. package/dist/client/index.js.map +1 -1
  165. package/dist/config/index.js +1 -1
  166. package/dist/console/run.js +2 -2
  167. package/dist/console/run.js.map +1 -1
  168. package/dist/container/index.js +2 -2
  169. package/dist/container/index.js.map +1 -1
  170. package/dist/database/index.js +2 -2
  171. package/dist/database/index.js.map +1 -1
  172. package/dist/email/index.js +2 -2
  173. package/dist/email/index.js.map +1 -1
  174. package/dist/facades/Auth.d.ts +14 -0
  175. package/dist/facades/Auth.d.ts.map +1 -1
  176. package/dist/facades/index.d.ts +0 -1
  177. package/dist/facades/index.d.ts.map +1 -1
  178. package/dist/facades/index.js +2 -2
  179. package/dist/facades/index.js.map +1 -1
  180. package/dist/foundation/Application.d.ts +7 -3
  181. package/dist/foundation/Application.d.ts.map +1 -1
  182. package/dist/foundation/app.d.ts +1 -1
  183. package/dist/foundation/index.js +2 -2
  184. package/dist/foundation/index.js.map +1 -1
  185. package/dist/http/AuthenticationMiddlware.d.ts +4 -3
  186. package/dist/http/AuthenticationMiddlware.d.ts.map +1 -1
  187. package/dist/http/HttpRequest.d.ts.map +1 -1
  188. package/dist/http/index.js +2 -2
  189. package/dist/http/index.js.map +1 -1
  190. package/dist/i18n/dictionaryRuntime.js +2 -2
  191. package/dist/i18n/dictionaryRuntime.js.map +1 -1
  192. package/dist/i18n/index.js +2 -2
  193. package/dist/i18n/index.js.map +1 -1
  194. package/dist/internal/gemiExternals.d.ts +1 -1
  195. package/dist/internal/gemiExternals.d.ts.map +1 -1
  196. package/dist/kernel/Kernel.d.ts +0 -2
  197. package/dist/kernel/Kernel.d.ts.map +1 -1
  198. package/dist/kernel/context.d.ts +3 -4
  199. package/dist/kernel/context.d.ts.map +1 -1
  200. package/dist/kernel/index.js +3 -3
  201. package/dist/kernel/index.js.map +5 -5
  202. package/dist/kernel/providers.d.ts.map +1 -1
  203. package/dist/orm/context.d.ts +1 -2
  204. package/dist/orm/context.d.ts.map +1 -1
  205. package/dist/orm/index.js +2 -2
  206. package/dist/orm/index.js.map +1 -1
  207. package/dist/server/index.js +2 -2
  208. package/dist/server/index.js.map +1 -1
  209. package/dist/services/cron/ScheduleServiceProvider.d.ts +7 -2
  210. package/dist/services/cron/ScheduleServiceProvider.d.ts.map +1 -1
  211. package/dist/services/index.d.ts +0 -3
  212. package/dist/services/index.d.ts.map +1 -1
  213. package/dist/services/index.js +3 -3
  214. package/dist/services/index.js.map +2 -2
  215. package/dist/services/logging/LogManager.d.ts.map +1 -1
  216. package/dist/services/queue/QueueServiceProvider.d.ts +8 -2
  217. package/dist/services/queue/QueueServiceProvider.d.ts.map +1 -1
  218. package/dist/services/queue/work.js +2 -2
  219. package/dist/services/queue/work.js.map +1 -1
  220. package/dist/services/router/ApiRouteDispatcher.d.ts.map +1 -1
  221. package/dist/services/router/globalMiddleware.d.ts +5 -3
  222. package/dist/services/router/globalMiddleware.d.ts.map +1 -1
  223. package/dist/support/ServiceProvider.d.ts +14 -1
  224. package/dist/support/ServiceProvider.d.ts.map +1 -1
  225. package/dist/support/index.d.ts +1 -1
  226. package/dist/support/index.d.ts.map +1 -1
  227. package/dist/support/index.js +2 -2
  228. package/dist/support/index.js.map +1 -1
  229. package/dist/testing/Page.d.ts.map +1 -1
  230. package/dist/testing/index.js +16 -24
  231. package/dist/testing/index.js.map +1 -1
  232. package/package.json +1 -2
  233. package/dist/broadcasting/BroadcastingChannel.d.ts +0 -5
  234. package/dist/broadcasting/BroadcastingChannel.d.ts.map +0 -1
  235. package/dist/broadcasting/index.d.ts +0 -2
  236. package/dist/broadcasting/index.d.ts.map +0 -1
  237. package/dist/broadcasting/index.js +0 -4
  238. package/dist/broadcasting/index.js.map +0 -10
  239. package/dist/chunk-817dxq6w.js +0 -7
  240. package/dist/chunk-9hbwvcxn.js.map +0 -10
  241. package/dist/chunk-cmj9xnbp.js +0 -6
  242. package/dist/chunk-f9mwxne0.js +0 -4
  243. package/dist/chunk-f9mwxne0.js.map +0 -10
  244. package/dist/chunk-fffph77x.js +0 -5
  245. package/dist/chunk-fffph77x.js.map +0 -10
  246. package/dist/chunk-mwrh96hx.js.map +0 -12
  247. package/dist/chunk-nc82trtm.js +0 -5
  248. package/dist/chunk-rs0xmd64.js +0 -17
  249. package/dist/chunk-vqexqkfk.js.map +0 -10
  250. package/dist/chunk-z9x8fx21.js +0 -5
  251. package/dist/chunks/ThemeProvider-BiNFL6l7.js.map +0 -1
  252. package/dist/client/WebsocketContext.d.ts +0 -10
  253. package/dist/client/WebsocketContext.d.ts.map +0 -1
  254. package/dist/client/useBroadcast.d.ts +0 -4
  255. package/dist/client/useBroadcast.d.ts.map +0 -1
  256. package/dist/client/useSubscription.d.ts +0 -5
  257. package/dist/client/useSubscription.d.ts.map +0 -1
  258. package/dist/facades/Broadcast.d.ts +0 -9
  259. package/dist/facades/Broadcast.d.ts.map +0 -1
  260. package/dist/http/BroadcastingRouter.d.ts +0 -8
  261. package/dist/http/BroadcastingRouter.d.ts.map +0 -1
  262. package/dist/services/pubsub/BroadcastManager.d.ts +0 -24
  263. package/dist/services/pubsub/BroadcastManager.d.ts.map +0 -1
  264. package/dist/services/pubsub/BroadcastServiceProvider.d.ts +0 -5
  265. package/dist/services/pubsub/BroadcastServiceProvider.d.ts.map +0 -1
  266. package/dist/services/pubsub/config.d.ts +0 -7
  267. package/dist/services/pubsub/config.d.ts.map +0 -1
  268. package/dist/services/pubsub/types.d.ts +0 -6
  269. package/dist/services/pubsub/types.d.ts.map +0 -1
  270. /package/dist/{chunk-d2tpgkg2.js.map → chunk-ah9ajys0.js.map} +0 -0
  271. /package/dist/{chunk-9z5g1rf6.js.map → chunk-jg9eqd3r.js.map} +0 -0
  272. /package/dist/{chunk-a3mgkrb2.js.map → chunk-pgpqsgzx.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{ka as p,la as h,ma as l,na as a}from"./chunk-zq5m4scz.js";import{qa as I,ra as x,sa as k,ta as m}from"./chunk-9a8qz3s7.js";import{ua as d}from"./chunk-gvkydx8r.js";var NQ=["gemi","gemi/client","gemi/http","gemi/app","gemi/facades","gemi/email","gemi/kernel","gemi/services","gemi/broadcasting","gemi/i18n","gemi/dictionary"];function E(Q){return Q==="gemi"||Q.startsWith("gemi/")}var o=44,s=59,T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=new Uint8Array(64),i=new Uint8Array(128);for(let Q=0;Q<T.length;Q++){let Z=T.charCodeAt(Q);b[Q]=Z,i[Z]=Q}function U(Q,Z,$){let z=Z-$;z=z<0?-z<<1|1:z<<1;do{let J=z&31;if(z>>>=5,z>0)J|=32;Q.write(b[J])}while(z>0);return Z}var R=16384,y=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(Q){return Buffer.from(Q.buffer,Q.byteOffset,Q.byteLength).toString()}}:{decode(Q){let Z="";for(let $=0;$<Q.length;$++)Z+=String.fromCharCode(Q[$]);return Z}},r=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(R)}write(Q){let{buffer:Z}=this;if(Z[this.pos++]=Q,this.pos===R)this.out+=y.decode(Z),this.pos=0}flush(){let{buffer:Q,out:Z,pos:$}=this;return $>0?Z+y.decode(Q.subarray(0,$)):Z}};function v(Q){let Z=new r,$=0,z=0,J=0,W=0;for(let H=0;H<Q.length;H++){let Y=Q[H];if(H>0)Z.write(s);if(Y.length===0)continue;let X=0;for(let G=0;G<Y.length;G++){let F=Y[G];if(G>0)Z.write(o);if(X=U(Z,F[0],X),F.length===1)continue;if($=U(Z,F[1],$),z=U(Z,F[2],z),J=U(Z,F[3],J),F.length===4)continue;W=U(Z,F[4],W)}}return Z.flush()}class A{constructor(Q){this.bits=Q instanceof A?Q.bits.slice():[]}add(Q){this.bits[Q>>5]|=1<<(Q&31)}has(Q){return!!(this.bits[Q>>5]&1<<(Q&31))}}class j{constructor(Q,Z,$){this.start=Q,this.end=Z,this.original=$,this.intro="",this.outro="",this.content=$,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(Q){this.outro+=Q}appendRight(Q){this.intro=this.intro+Q}clone(){let Q=new j(this.start,this.end,this.original);return Q.intro=this.intro,Q.outro=this.outro,Q.content=this.content,Q.storeName=this.storeName,Q.edited=this.edited,Q}contains(Q){return this.start<Q&&Q<this.end}eachNext(Q){let Z=this;while(Z)Q(Z),Z=Z.next}eachPrevious(Q){let Z=this;while(Z)Q(Z),Z=Z.previous}edit(Q,Z,$){if(this.content=Q,!$)this.intro="",this.outro="";return this.storeName=Z,this.edited=!0,this}prependLeft(Q){this.outro=Q+this.outro}prependRight(Q){this.intro=Q+this.intro}reset(){if(this.intro="",this.outro="",this.edited)this.content=this.original,this.storeName=!1,this.edited=!1}split(Q){let Z=Q-this.start,$=this.original.slice(0,Z),z=this.original.slice(Z);this.original=$;let J=new j(Q,this.end,z);if(J.outro=this.outro,this.outro="",this.end=Q,this.edited)J.edit("",!1),this.content="";else this.content=$;if(J.next=this.next,J.next)J.next.previous=J;return J.previous=this,this.next=J,J}toString(){return this.intro+this.content+this.outro}trimEnd(Q){if(this.outro=this.outro.replace(Q,""),this.outro.length)return!0;let Z=this.content.replace(Q,"");if(Z.length){if(Z!==this.content){if(this.split(this.start+Z.length).edit("",void 0,!0),this.edited)this.edit(Z,this.storeName,!0)}return!0}else if(this.edit("",void 0,!0),this.intro=this.intro.replace(Q,""),this.intro.length)return!0}trimStart(Q){if(this.intro=this.intro.replace(Q,""),this.intro.length)return!0;let Z=this.content.replace(Q,"");if(Z.length){if(Z!==this.content){let $=this.split(this.end-Z.length);if(this.edited)$.edit(Z,this.storeName,!0);this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(Q,""),this.outro.length)return!0}}function t(){if(typeof globalThis<"u"&&typeof globalThis.btoa==="function")return(Q)=>globalThis.btoa(unescape(encodeURIComponent(Q)));else if(typeof Buffer==="function")return(Q)=>Buffer.from(Q,"utf-8").toString("base64");else return()=>{throw Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var n=t();class f{constructor(Q){if(this.version=3,this.file=Q.file,this.sources=Q.sources,this.sourcesContent=Q.sourcesContent,this.names=Q.names,this.mappings=v(Q.mappings),typeof Q.x_google_ignoreList<"u")this.x_google_ignoreList=Q.x_google_ignoreList;if(typeof Q.debugId<"u")this.debugId=Q.debugId}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+n(this.toString())}}function e(Q){let Z=Q.split(`
2
+ import{ka as p,la as h,ma as l,na as a}from"./chunk-zq5m4scz.js";import{qa as I,ra as x,sa as k,ta as m}from"./chunk-9a8qz3s7.js";import{ua as d}from"./chunk-gvkydx8r.js";var NQ=["gemi","gemi/client","gemi/http","gemi/app","gemi/facades","gemi/email","gemi/kernel","gemi/services","gemi/i18n","gemi/dictionary"];function E(Q){return Q==="gemi"||Q.startsWith("gemi/")}var o=44,s=59,T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=new Uint8Array(64),i=new Uint8Array(128);for(let Q=0;Q<T.length;Q++){let Z=T.charCodeAt(Q);b[Q]=Z,i[Z]=Q}function U(Q,Z,$){let z=Z-$;z=z<0?-z<<1|1:z<<1;do{let J=z&31;if(z>>>=5,z>0)J|=32;Q.write(b[J])}while(z>0);return Z}var R=16384,y=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(Q){return Buffer.from(Q.buffer,Q.byteOffset,Q.byteLength).toString()}}:{decode(Q){let Z="";for(let $=0;$<Q.length;$++)Z+=String.fromCharCode(Q[$]);return Z}},r=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(R)}write(Q){let{buffer:Z}=this;if(Z[this.pos++]=Q,this.pos===R)this.out+=y.decode(Z),this.pos=0}flush(){let{buffer:Q,out:Z,pos:$}=this;return $>0?Z+y.decode(Q.subarray(0,$)):Z}};function v(Q){let Z=new r,$=0,z=0,J=0,W=0;for(let H=0;H<Q.length;H++){let Y=Q[H];if(H>0)Z.write(s);if(Y.length===0)continue;let X=0;for(let G=0;G<Y.length;G++){let F=Y[G];if(G>0)Z.write(o);if(X=U(Z,F[0],X),F.length===1)continue;if($=U(Z,F[1],$),z=U(Z,F[2],z),J=U(Z,F[3],J),F.length===4)continue;W=U(Z,F[4],W)}}return Z.flush()}class A{constructor(Q){this.bits=Q instanceof A?Q.bits.slice():[]}add(Q){this.bits[Q>>5]|=1<<(Q&31)}has(Q){return!!(this.bits[Q>>5]&1<<(Q&31))}}class j{constructor(Q,Z,$){this.start=Q,this.end=Z,this.original=$,this.intro="",this.outro="",this.content=$,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(Q){this.outro+=Q}appendRight(Q){this.intro=this.intro+Q}clone(){let Q=new j(this.start,this.end,this.original);return Q.intro=this.intro,Q.outro=this.outro,Q.content=this.content,Q.storeName=this.storeName,Q.edited=this.edited,Q}contains(Q){return this.start<Q&&Q<this.end}eachNext(Q){let Z=this;while(Z)Q(Z),Z=Z.next}eachPrevious(Q){let Z=this;while(Z)Q(Z),Z=Z.previous}edit(Q,Z,$){if(this.content=Q,!$)this.intro="",this.outro="";return this.storeName=Z,this.edited=!0,this}prependLeft(Q){this.outro=Q+this.outro}prependRight(Q){this.intro=Q+this.intro}reset(){if(this.intro="",this.outro="",this.edited)this.content=this.original,this.storeName=!1,this.edited=!1}split(Q){let Z=Q-this.start,$=this.original.slice(0,Z),z=this.original.slice(Z);this.original=$;let J=new j(Q,this.end,z);if(J.outro=this.outro,this.outro="",this.end=Q,this.edited)J.edit("",!1),this.content="";else this.content=$;if(J.next=this.next,J.next)J.next.previous=J;return J.previous=this,this.next=J,J}toString(){return this.intro+this.content+this.outro}trimEnd(Q){if(this.outro=this.outro.replace(Q,""),this.outro.length)return!0;let Z=this.content.replace(Q,"");if(Z.length){if(Z!==this.content){if(this.split(this.start+Z.length).edit("",void 0,!0),this.edited)this.edit(Z,this.storeName,!0)}return!0}else if(this.edit("",void 0,!0),this.intro=this.intro.replace(Q,""),this.intro.length)return!0}trimStart(Q){if(this.intro=this.intro.replace(Q,""),this.intro.length)return!0;let Z=this.content.replace(Q,"");if(Z.length){if(Z!==this.content){let $=this.split(this.end-Z.length);if(this.edited)$.edit(Z,this.storeName,!0);this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(Q,""),this.outro.length)return!0}}function t(){if(typeof globalThis<"u"&&typeof globalThis.btoa==="function")return(Q)=>globalThis.btoa(unescape(encodeURIComponent(Q)));else if(typeof Buffer==="function")return(Q)=>Buffer.from(Q,"utf-8").toString("base64");else return()=>{throw Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var n=t();class f{constructor(Q){if(this.version=3,this.file=Q.file,this.sources=Q.sources,this.sourcesContent=Q.sourcesContent,this.names=Q.names,this.mappings=v(Q.mappings),typeof Q.x_google_ignoreList<"u")this.x_google_ignoreList=Q.x_google_ignoreList;if(typeof Q.debugId<"u")this.debugId=Q.debugId}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+n(this.toString())}}function e(Q){let Z=Q.split(`
3
3
  `),$=Z.filter((W)=>/^\t+/.test(W)),z=Z.filter((W)=>/^ {2,}/.test(W));if($.length===0&&z.length===0)return null;if($.length>=z.length)return"\t";let J=z.reduce((W,H)=>{let Y=/^ +/.exec(H)[0].length;return Math.min(Y,W)},1/0);return Array(J+1).join(" ")}function QQ(Q,Z){let $=Q.split(/[/\\]/),z=Z.split(/[/\\]/);$.pop();while($[0]===z[0])$.shift(),z.shift();if($.length){let J=$.length;while(J--)$[J]=".."}return $.concat(z).join("/")}var ZQ=Object.prototype.toString;function $Q(Q){return ZQ.call(Q)==="[object Object]"}function L(Q){let Z=Q.split(`
4
4
  `),$=[];for(let z=0,J=0;z<Z.length;z++)$.push(J),J+=Z[z].length+1;return function(J){let W=0,H=$.length;while(W<H){let G=W+H>>1;if(J<$[G])H=G;else W=G+1}let Y=W-1,X=J-$[Y];return{line:Y,column:X}}}var zQ=/\w/;class C{constructor(Q){this.hires=Q,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(Q,Z,$,z){if(Z.length){let J=Z.length-1,W=Z.indexOf(`
5
5
  `,0),H=-1;while(W>=0&&J>W){let X=[this.generatedCodeColumn,Q,$.line,$.column];if(z>=0)X.push(z);this.rawSegments.push(X),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,H=W,W=Z.indexOf(`
@@ -15,4 +15,4 @@ import { __gemi_dict__ } from ${JSON.stringify(YQ)};
15
15
  `)}}}function jQ(Q){return Q.startsWith("/")||/^[a-z][a-z\d+.-]*:\/\//i.test(Q)?l(Q):p}var AQ=async()=>{let Q=await d(process.cwd()),{plugins:Z=[],...$}=Q.vite??{},z=a(Q.assetBase);return[{name:"gemi-plugin-config",enforce:"pre",config:async(J,W)=>{let H=`${process.cwd()}/app`;return{assetsInclude:["/public"],build:{manifest:!0,ssrEmitAssets:!0,sourcemap:!0,rollupOptions:{input:Array.from(JSON.parse(process.env.GEMI_INPUT??"[]")),preserveEntrySignatures:"strict",...W.isSsrBuild?{external:E}:{}}},resolve:{alias:{"@/app":H}}}}},{name:"gemi-plugin-user-config",config:()=>$},u(z),{name:"gemi-plugin-hot-reload",handleHotUpdate({server:J,modules:W}){if(W?.[0]?.id?.includes("/app/http/"))return[]}},...Z,g()]},kQ=AQ;
16
16
  export{NQ as ia,kQ as ja};
17
17
 
18
- //# debugId=7A59877A0C4A75B564756E2164756E21
18
+ //# debugId=D1FFF96A50B681DF64756E2164756E21
@@ -2,14 +2,14 @@
2
2
  "version": 3,
3
3
  "sources": ["../internal/gemiExternals.ts", "../../../node_modules/.bun/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs", "../../../node_modules/.bun/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs", "../vite/dictionaryPlugin.ts", "../vite/assetBasePlugin.ts", "../vite/index.ts"],
4
4
  "sourcesContent": [
5
- "// Single source of truth for keeping `gemi` external to the SSR view graph.\n//\n// `gemi` is a linked package, so a bundler will otherwise compile its own copy\n// of gemi's module-level singletons (`RouteStateContext`, `I18nContext`, the\n// `useLocale`/`useRouteData` hooks, ...) into the view chunks — a *different*\n// instance than the running server's `Root` provider, so `useRouteData()` reads\n// the empty default and SSR crashes on `i18n.currentLocale`. Externalizing makes\n// view imports of `gemi/*` resolve to the one Bun-loaded instance.\n//\n// Two consumers, two forms:\n// - dev (`server/httpDev.ts`): Vite's `ssr.external` matches EXACT specifiers\n// only (subpaths are not covered by the bare name, regexes are ignored), so\n// it needs the enumerated list below. When you add a `gemi/*` export that a\n// view may import, add it here too or dev SSR will silently bundle a copy.\n// - build (`vite/index.ts`): rollup's `external` is a subpath-aware predicate,\n// so it uses `isGemiExternal` and needs no maintenance for new subpaths.\n\n// Every `gemi` entrypoint a view module may import. Keep in sync with the\n// view-facing `exports` in package.json (build/server-only subpaths like\n// `vite`, `server`, `bun/*`, and `config` are intentionally omitted — views\n// never import them).\nexport const GEMI_EXTERNAL_SPECIFIERS = [\n \"gemi\",\n \"gemi/client\",\n \"gemi/http\",\n \"gemi/app\",\n \"gemi/facades\",\n \"gemi/email\",\n \"gemi/kernel\",\n \"gemi/services\",\n \"gemi/broadcasting\",\n \"gemi/i18n\",\n // Not optional: `defineDictionary` handles register themselves in a\n // module-level registry that the view router preloads and snapshots through.\n // A bundled second copy would give SSR two registries and empty payloads.\n \"gemi/dictionary\",\n] as const;\n\n// Predicate form for rollup's `external`: covers `gemi` and every `gemi/*`\n// subpath.\nexport function isGemiExternal(id: string): boolean {\n return id === \"gemi\" || id.startsWith(\"gemi/\");\n}\n",
5
+ "// Single source of truth for keeping `gemi` external to the SSR view graph.\n//\n// `gemi` is a linked package, so a bundler will otherwise compile its own copy\n// of gemi's module-level singletons (`RouteStateContext`, `I18nContext`, the\n// `useLocale`/`useRouteData` hooks, ...) into the view chunks — a *different*\n// instance than the running server's `Root` provider, so `useRouteData()` reads\n// the empty default and SSR crashes on `i18n.currentLocale`. Externalizing makes\n// view imports of `gemi/*` resolve to the one Bun-loaded instance.\n//\n// Two consumers, two forms:\n// - dev (`server/httpDev.ts`): Vite's `ssr.external` matches EXACT specifiers\n// only (subpaths are not covered by the bare name, regexes are ignored), so\n// it needs the enumerated list below. When you add a `gemi/*` export that a\n// view may import, add it here too or dev SSR will silently bundle a copy.\n// - build (`vite/index.ts`): rollup's `external` is a subpath-aware predicate,\n// so it uses `isGemiExternal` and needs no maintenance for new subpaths.\n\n// Every `gemi` entrypoint a view module may import. Keep in sync with the\n// view-facing `exports` in package.json (build/server-only subpaths like\n// `vite`, `server`, `bun/*`, and `config` are intentionally omitted — views\n// never import them).\nexport const GEMI_EXTERNAL_SPECIFIERS = [\n \"gemi\",\n \"gemi/client\",\n \"gemi/http\",\n \"gemi/app\",\n \"gemi/facades\",\n \"gemi/email\",\n \"gemi/kernel\",\n \"gemi/services\",\n \"gemi/i18n\",\n // Not optional: `defineDictionary` handles register themselves in a\n // module-level registry that the view router preloads and snapshots through.\n // A bundled second copy would give SSR two registries and empty payloads.\n \"gemi/dictionary\",\n] as const;\n\n// Predicate form for rollup's `external`: covers `gemi` and every `gemi/*`\n// subpath.\nexport function isGemiExternal(id: string): boolean {\n return id === \"gemi\" || id.startsWith(\"gemi/\");\n}\n",
6
6
  "// src/vlq.ts\nvar comma = \",\".charCodeAt(0);\nvar semicolon = \";\".charCodeAt(0);\nvar chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\nvar intToChar = new Uint8Array(64);\nvar charToInt = new Uint8Array(128);\nfor (let i = 0; i < chars.length; i++) {\n const c = chars.charCodeAt(i);\n intToChar[i] = c;\n charToInt[c] = i;\n}\nfunction decodeInteger(reader, relative) {\n let value = 0;\n let shift = 0;\n let integer = 0;\n do {\n const c = reader.next();\n integer = charToInt[c];\n value |= (integer & 31) << shift;\n shift += 5;\n } while (integer & 32);\n const shouldNegate = value & 1;\n value >>>= 1;\n if (shouldNegate) {\n value = -2147483648 | -value;\n }\n return relative + value;\n}\nfunction encodeInteger(builder, num, relative) {\n let delta = num - relative;\n delta = delta < 0 ? -delta << 1 | 1 : delta << 1;\n do {\n let clamped = delta & 31;\n delta >>>= 5;\n if (delta > 0) clamped |= 32;\n builder.write(intToChar[clamped]);\n } while (delta > 0);\n return num;\n}\nfunction hasMoreVlq(reader, max) {\n if (reader.pos >= max) return false;\n return reader.peek() !== comma;\n}\n\n// src/strings.ts\nvar bufLength = 1024 * 16;\nvar td = typeof TextDecoder !== \"undefined\" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== \"undefined\" ? {\n decode(buf) {\n const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);\n return out.toString();\n }\n} : {\n decode(buf) {\n let out = \"\";\n for (let i = 0; i < buf.length; i++) {\n out += String.fromCharCode(buf[i]);\n }\n return out;\n }\n};\nvar StringWriter = class {\n constructor() {\n this.pos = 0;\n this.out = \"\";\n this.buffer = new Uint8Array(bufLength);\n }\n write(v) {\n const { buffer } = this;\n buffer[this.pos++] = v;\n if (this.pos === bufLength) {\n this.out += td.decode(buffer);\n this.pos = 0;\n }\n }\n flush() {\n const { buffer, out, pos } = this;\n return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;\n }\n};\nvar StringReader = class {\n constructor(buffer) {\n this.pos = 0;\n this.buffer = buffer;\n }\n next() {\n return this.buffer.charCodeAt(this.pos++);\n }\n peek() {\n return this.buffer.charCodeAt(this.pos);\n }\n indexOf(char) {\n const { buffer, pos } = this;\n const idx = buffer.indexOf(char, pos);\n return idx === -1 ? buffer.length : idx;\n }\n};\n\n// src/scopes.ts\nvar EMPTY = [];\nfunction decodeOriginalScopes(input) {\n const { length } = input;\n const reader = new StringReader(input);\n const scopes = [];\n const stack = [];\n let line = 0;\n for (; reader.pos < length; reader.pos++) {\n line = decodeInteger(reader, line);\n const column = decodeInteger(reader, 0);\n if (!hasMoreVlq(reader, length)) {\n const last = stack.pop();\n last[2] = line;\n last[3] = column;\n continue;\n }\n const kind = decodeInteger(reader, 0);\n const fields = decodeInteger(reader, 0);\n const hasName = fields & 1;\n const scope = hasName ? [line, column, 0, 0, kind, decodeInteger(reader, 0)] : [line, column, 0, 0, kind];\n let vars = EMPTY;\n if (hasMoreVlq(reader, length)) {\n vars = [];\n do {\n const varsIndex = decodeInteger(reader, 0);\n vars.push(varsIndex);\n } while (hasMoreVlq(reader, length));\n }\n scope.vars = vars;\n scopes.push(scope);\n stack.push(scope);\n }\n return scopes;\n}\nfunction encodeOriginalScopes(scopes) {\n const writer = new StringWriter();\n for (let i = 0; i < scopes.length; ) {\n i = _encodeOriginalScopes(scopes, i, writer, [0]);\n }\n return writer.flush();\n}\nfunction _encodeOriginalScopes(scopes, index, writer, state) {\n const scope = scopes[index];\n const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, 4: kind, vars } = scope;\n if (index > 0) writer.write(comma);\n state[0] = encodeInteger(writer, startLine, state[0]);\n encodeInteger(writer, startColumn, 0);\n encodeInteger(writer, kind, 0);\n const fields = scope.length === 6 ? 1 : 0;\n encodeInteger(writer, fields, 0);\n if (scope.length === 6) encodeInteger(writer, scope[5], 0);\n for (const v of vars) {\n encodeInteger(writer, v, 0);\n }\n for (index++; index < scopes.length; ) {\n const next = scopes[index];\n const { 0: l, 1: c } = next;\n if (l > endLine || l === endLine && c >= endColumn) {\n break;\n }\n index = _encodeOriginalScopes(scopes, index, writer, state);\n }\n writer.write(comma);\n state[0] = encodeInteger(writer, endLine, state[0]);\n encodeInteger(writer, endColumn, 0);\n return index;\n}\nfunction decodeGeneratedRanges(input) {\n const { length } = input;\n const reader = new StringReader(input);\n const ranges = [];\n const stack = [];\n let genLine = 0;\n let definitionSourcesIndex = 0;\n let definitionScopeIndex = 0;\n let callsiteSourcesIndex = 0;\n let callsiteLine = 0;\n let callsiteColumn = 0;\n let bindingLine = 0;\n let bindingColumn = 0;\n do {\n const semi = reader.indexOf(\";\");\n let genColumn = 0;\n for (; reader.pos < semi; reader.pos++) {\n genColumn = decodeInteger(reader, genColumn);\n if (!hasMoreVlq(reader, semi)) {\n const last = stack.pop();\n last[2] = genLine;\n last[3] = genColumn;\n continue;\n }\n const fields = decodeInteger(reader, 0);\n const hasDefinition = fields & 1;\n const hasCallsite = fields & 2;\n const hasScope = fields & 4;\n let callsite = null;\n let bindings = EMPTY;\n let range;\n if (hasDefinition) {\n const defSourcesIndex = decodeInteger(reader, definitionSourcesIndex);\n definitionScopeIndex = decodeInteger(\n reader,\n definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0\n );\n definitionSourcesIndex = defSourcesIndex;\n range = [genLine, genColumn, 0, 0, defSourcesIndex, definitionScopeIndex];\n } else {\n range = [genLine, genColumn, 0, 0];\n }\n range.isScope = !!hasScope;\n if (hasCallsite) {\n const prevCsi = callsiteSourcesIndex;\n const prevLine = callsiteLine;\n callsiteSourcesIndex = decodeInteger(reader, callsiteSourcesIndex);\n const sameSource = prevCsi === callsiteSourcesIndex;\n callsiteLine = decodeInteger(reader, sameSource ? callsiteLine : 0);\n callsiteColumn = decodeInteger(\n reader,\n sameSource && prevLine === callsiteLine ? callsiteColumn : 0\n );\n callsite = [callsiteSourcesIndex, callsiteLine, callsiteColumn];\n }\n range.callsite = callsite;\n if (hasMoreVlq(reader, semi)) {\n bindings = [];\n do {\n bindingLine = genLine;\n bindingColumn = genColumn;\n const expressionsCount = decodeInteger(reader, 0);\n let expressionRanges;\n if (expressionsCount < -1) {\n expressionRanges = [[decodeInteger(reader, 0)]];\n for (let i = -1; i > expressionsCount; i--) {\n const prevBl = bindingLine;\n bindingLine = decodeInteger(reader, bindingLine);\n bindingColumn = decodeInteger(reader, bindingLine === prevBl ? bindingColumn : 0);\n const expression = decodeInteger(reader, 0);\n expressionRanges.push([expression, bindingLine, bindingColumn]);\n }\n } else {\n expressionRanges = [[expressionsCount]];\n }\n bindings.push(expressionRanges);\n } while (hasMoreVlq(reader, semi));\n }\n range.bindings = bindings;\n ranges.push(range);\n stack.push(range);\n }\n genLine++;\n reader.pos = semi + 1;\n } while (reader.pos < length);\n return ranges;\n}\nfunction encodeGeneratedRanges(ranges) {\n if (ranges.length === 0) return \"\";\n const writer = new StringWriter();\n for (let i = 0; i < ranges.length; ) {\n i = _encodeGeneratedRanges(ranges, i, writer, [0, 0, 0, 0, 0, 0, 0]);\n }\n return writer.flush();\n}\nfunction _encodeGeneratedRanges(ranges, index, writer, state) {\n const range = ranges[index];\n const {\n 0: startLine,\n 1: startColumn,\n 2: endLine,\n 3: endColumn,\n isScope,\n callsite,\n bindings\n } = range;\n if (state[0] < startLine) {\n catchupLine(writer, state[0], startLine);\n state[0] = startLine;\n state[1] = 0;\n } else if (index > 0) {\n writer.write(comma);\n }\n state[1] = encodeInteger(writer, range[1], state[1]);\n const fields = (range.length === 6 ? 1 : 0) | (callsite ? 2 : 0) | (isScope ? 4 : 0);\n encodeInteger(writer, fields, 0);\n if (range.length === 6) {\n const { 4: sourcesIndex, 5: scopesIndex } = range;\n if (sourcesIndex !== state[2]) {\n state[3] = 0;\n }\n state[2] = encodeInteger(writer, sourcesIndex, state[2]);\n state[3] = encodeInteger(writer, scopesIndex, state[3]);\n }\n if (callsite) {\n const { 0: sourcesIndex, 1: callLine, 2: callColumn } = range.callsite;\n if (sourcesIndex !== state[4]) {\n state[5] = 0;\n state[6] = 0;\n } else if (callLine !== state[5]) {\n state[6] = 0;\n }\n state[4] = encodeInteger(writer, sourcesIndex, state[4]);\n state[5] = encodeInteger(writer, callLine, state[5]);\n state[6] = encodeInteger(writer, callColumn, state[6]);\n }\n if (bindings) {\n for (const binding of bindings) {\n if (binding.length > 1) encodeInteger(writer, -binding.length, 0);\n const expression = binding[0][0];\n encodeInteger(writer, expression, 0);\n let bindingStartLine = startLine;\n let bindingStartColumn = startColumn;\n for (let i = 1; i < binding.length; i++) {\n const expRange = binding[i];\n bindingStartLine = encodeInteger(writer, expRange[1], bindingStartLine);\n bindingStartColumn = encodeInteger(writer, expRange[2], bindingStartColumn);\n encodeInteger(writer, expRange[0], 0);\n }\n }\n }\n for (index++; index < ranges.length; ) {\n const next = ranges[index];\n const { 0: l, 1: c } = next;\n if (l > endLine || l === endLine && c >= endColumn) {\n break;\n }\n index = _encodeGeneratedRanges(ranges, index, writer, state);\n }\n if (state[0] < endLine) {\n catchupLine(writer, state[0], endLine);\n state[0] = endLine;\n state[1] = 0;\n } else {\n writer.write(comma);\n }\n state[1] = encodeInteger(writer, endColumn, state[1]);\n return index;\n}\nfunction catchupLine(writer, lastLine, line) {\n do {\n writer.write(semicolon);\n } while (++lastLine < line);\n}\n\n// src/sourcemap-codec.ts\nfunction decode(mappings) {\n const { length } = mappings;\n const reader = new StringReader(mappings);\n const decoded = [];\n let genColumn = 0;\n let sourcesIndex = 0;\n let sourceLine = 0;\n let sourceColumn = 0;\n let namesIndex = 0;\n do {\n const semi = reader.indexOf(\";\");\n const line = [];\n let sorted = true;\n let lastCol = 0;\n genColumn = 0;\n while (reader.pos < semi) {\n let seg;\n genColumn = decodeInteger(reader, genColumn);\n if (genColumn < lastCol) sorted = false;\n lastCol = genColumn;\n if (hasMoreVlq(reader, semi)) {\n sourcesIndex = decodeInteger(reader, sourcesIndex);\n sourceLine = decodeInteger(reader, sourceLine);\n sourceColumn = decodeInteger(reader, sourceColumn);\n if (hasMoreVlq(reader, semi)) {\n namesIndex = decodeInteger(reader, namesIndex);\n seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];\n } else {\n seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];\n }\n } else {\n seg = [genColumn];\n }\n line.push(seg);\n reader.pos++;\n }\n if (!sorted) sort(line);\n decoded.push(line);\n reader.pos = semi + 1;\n } while (reader.pos <= length);\n return decoded;\n}\nfunction sort(line) {\n line.sort(sortComparator);\n}\nfunction sortComparator(a, b) {\n return a[0] - b[0];\n}\nfunction encode(decoded) {\n const writer = new StringWriter();\n let sourcesIndex = 0;\n let sourceLine = 0;\n let sourceColumn = 0;\n let namesIndex = 0;\n for (let i = 0; i < decoded.length; i++) {\n const line = decoded[i];\n if (i > 0) writer.write(semicolon);\n if (line.length === 0) continue;\n let genColumn = 0;\n for (let j = 0; j < line.length; j++) {\n const segment = line[j];\n if (j > 0) writer.write(comma);\n genColumn = encodeInteger(writer, segment[0], genColumn);\n if (segment.length === 1) continue;\n sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);\n sourceLine = encodeInteger(writer, segment[2], sourceLine);\n sourceColumn = encodeInteger(writer, segment[3], sourceColumn);\n if (segment.length === 4) continue;\n namesIndex = encodeInteger(writer, segment[4], namesIndex);\n }\n }\n return writer.flush();\n}\nexport {\n decode,\n decodeGeneratedRanges,\n decodeOriginalScopes,\n encode,\n encodeGeneratedRanges,\n encodeOriginalScopes\n};\n//# sourceMappingURL=sourcemap-codec.mjs.map\n",
7
7
  "import { encode } from '@jridgewell/sourcemap-codec';\n\nclass BitSet {\n\tconstructor(arg) {\n\t\tthis.bits = arg instanceof BitSet ? arg.bits.slice() : [];\n\t}\n\n\tadd(n) {\n\t\tthis.bits[n >> 5] |= 1 << (n & 31);\n\t}\n\n\thas(n) {\n\t\treturn !!(this.bits[n >> 5] & (1 << (n & 31)));\n\t}\n}\n\nclass Chunk {\n\tconstructor(start, end, content) {\n\t\tthis.start = start;\n\t\tthis.end = end;\n\t\tthis.original = content;\n\n\t\tthis.intro = '';\n\t\tthis.outro = '';\n\n\t\tthis.content = content;\n\t\tthis.storeName = false;\n\t\tthis.edited = false;\n\n\t\t{\n\t\t\tthis.previous = null;\n\t\t\tthis.next = null;\n\t\t}\n\t}\n\n\tappendLeft(content) {\n\t\tthis.outro += content;\n\t}\n\n\tappendRight(content) {\n\t\tthis.intro = this.intro + content;\n\t}\n\n\tclone() {\n\t\tconst chunk = new Chunk(this.start, this.end, this.original);\n\n\t\tchunk.intro = this.intro;\n\t\tchunk.outro = this.outro;\n\t\tchunk.content = this.content;\n\t\tchunk.storeName = this.storeName;\n\t\tchunk.edited = this.edited;\n\n\t\treturn chunk;\n\t}\n\n\tcontains(index) {\n\t\treturn this.start < index && index < this.end;\n\t}\n\n\teachNext(fn) {\n\t\tlet chunk = this;\n\t\twhile (chunk) {\n\t\t\tfn(chunk);\n\t\t\tchunk = chunk.next;\n\t\t}\n\t}\n\n\teachPrevious(fn) {\n\t\tlet chunk = this;\n\t\twhile (chunk) {\n\t\t\tfn(chunk);\n\t\t\tchunk = chunk.previous;\n\t\t}\n\t}\n\n\tedit(content, storeName, contentOnly) {\n\t\tthis.content = content;\n\t\tif (!contentOnly) {\n\t\t\tthis.intro = '';\n\t\t\tthis.outro = '';\n\t\t}\n\t\tthis.storeName = storeName;\n\n\t\tthis.edited = true;\n\n\t\treturn this;\n\t}\n\n\tprependLeft(content) {\n\t\tthis.outro = content + this.outro;\n\t}\n\n\tprependRight(content) {\n\t\tthis.intro = content + this.intro;\n\t}\n\n\treset() {\n\t\tthis.intro = '';\n\t\tthis.outro = '';\n\t\tif (this.edited) {\n\t\t\tthis.content = this.original;\n\t\t\tthis.storeName = false;\n\t\t\tthis.edited = false;\n\t\t}\n\t}\n\n\tsplit(index) {\n\t\tconst sliceIndex = index - this.start;\n\n\t\tconst originalBefore = this.original.slice(0, sliceIndex);\n\t\tconst originalAfter = this.original.slice(sliceIndex);\n\n\t\tthis.original = originalBefore;\n\n\t\tconst newChunk = new Chunk(index, this.end, originalAfter);\n\t\tnewChunk.outro = this.outro;\n\t\tthis.outro = '';\n\n\t\tthis.end = index;\n\n\t\tif (this.edited) {\n\t\t\t// after split we should save the edit content record into the correct chunk\n\t\t\t// to make sure sourcemap correct\n\t\t\t// For example:\n\t\t\t// ' test'.trim()\n\t\t\t// split -> ' ' + 'test'\n\t\t\t// ✔️ edit -> '' + 'test'\n\t\t\t// ✖️ edit -> 'test' + ''\n\t\t\t// TODO is this block necessary?...\n\t\t\tnewChunk.edit('', false);\n\t\t\tthis.content = '';\n\t\t} else {\n\t\t\tthis.content = originalBefore;\n\t\t}\n\n\t\tnewChunk.next = this.next;\n\t\tif (newChunk.next) newChunk.next.previous = newChunk;\n\t\tnewChunk.previous = this;\n\t\tthis.next = newChunk;\n\n\t\treturn newChunk;\n\t}\n\n\ttoString() {\n\t\treturn this.intro + this.content + this.outro;\n\t}\n\n\ttrimEnd(rx) {\n\t\tthis.outro = this.outro.replace(rx, '');\n\t\tif (this.outro.length) return true;\n\n\t\tconst trimmed = this.content.replace(rx, '');\n\n\t\tif (trimmed.length) {\n\t\t\tif (trimmed !== this.content) {\n\t\t\t\tthis.split(this.start + trimmed.length).edit('', undefined, true);\n\t\t\t\tif (this.edited) {\n\t\t\t\t\t// save the change, if it has been edited\n\t\t\t\t\tthis.edit(trimmed, this.storeName, true);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t} else {\n\t\t\tthis.edit('', undefined, true);\n\n\t\t\tthis.intro = this.intro.replace(rx, '');\n\t\t\tif (this.intro.length) return true;\n\t\t}\n\t}\n\n\ttrimStart(rx) {\n\t\tthis.intro = this.intro.replace(rx, '');\n\t\tif (this.intro.length) return true;\n\n\t\tconst trimmed = this.content.replace(rx, '');\n\n\t\tif (trimmed.length) {\n\t\t\tif (trimmed !== this.content) {\n\t\t\t\tconst newChunk = this.split(this.end - trimmed.length);\n\t\t\t\tif (this.edited) {\n\t\t\t\t\t// save the change, if it has been edited\n\t\t\t\t\tnewChunk.edit(trimmed, this.storeName, true);\n\t\t\t\t}\n\t\t\t\tthis.edit('', undefined, true);\n\t\t\t}\n\t\t\treturn true;\n\t\t} else {\n\t\t\tthis.edit('', undefined, true);\n\n\t\t\tthis.outro = this.outro.replace(rx, '');\n\t\t\tif (this.outro.length) return true;\n\t\t}\n\t}\n}\n\nfunction getBtoa() {\n\tif (typeof globalThis !== 'undefined' && typeof globalThis.btoa === 'function') {\n\t\treturn (str) => globalThis.btoa(unescape(encodeURIComponent(str)));\n\t} else if (typeof Buffer === 'function') {\n\t\treturn (str) => Buffer.from(str, 'utf-8').toString('base64');\n\t} else {\n\t\treturn () => {\n\t\t\tthrow new Error('Unsupported environment: `window.btoa` or `Buffer` should be supported.');\n\t\t};\n\t}\n}\n\nconst btoa = /*#__PURE__*/ getBtoa();\n\nclass SourceMap {\n\tconstructor(properties) {\n\t\tthis.version = 3;\n\t\tthis.file = properties.file;\n\t\tthis.sources = properties.sources;\n\t\tthis.sourcesContent = properties.sourcesContent;\n\t\tthis.names = properties.names;\n\t\tthis.mappings = encode(properties.mappings);\n\t\tif (typeof properties.x_google_ignoreList !== 'undefined') {\n\t\t\tthis.x_google_ignoreList = properties.x_google_ignoreList;\n\t\t}\n\t\tif (typeof properties.debugId !== 'undefined') {\n\t\t\tthis.debugId = properties.debugId;\n\t\t}\n\t}\n\n\ttoString() {\n\t\treturn JSON.stringify(this);\n\t}\n\n\ttoUrl() {\n\t\treturn 'data:application/json;charset=utf-8;base64,' + btoa(this.toString());\n\t}\n}\n\nfunction guessIndent(code) {\n\tconst lines = code.split('\\n');\n\n\tconst tabbed = lines.filter((line) => /^\\t+/.test(line));\n\tconst spaced = lines.filter((line) => /^ {2,}/.test(line));\n\n\tif (tabbed.length === 0 && spaced.length === 0) {\n\t\treturn null;\n\t}\n\n\t// More lines tabbed than spaced? Assume tabs, and\n\t// default to tabs in the case of a tie (or nothing\n\t// to go on)\n\tif (tabbed.length >= spaced.length) {\n\t\treturn '\\t';\n\t}\n\n\t// Otherwise, we need to guess the multiple\n\tconst min = spaced.reduce((previous, current) => {\n\t\tconst numSpaces = /^ +/.exec(current)[0].length;\n\t\treturn Math.min(numSpaces, previous);\n\t}, Infinity);\n\n\treturn new Array(min + 1).join(' ');\n}\n\nfunction getRelativePath(from, to) {\n\tconst fromParts = from.split(/[/\\\\]/);\n\tconst toParts = to.split(/[/\\\\]/);\n\n\tfromParts.pop(); // get dirname\n\n\twhile (fromParts[0] === toParts[0]) {\n\t\tfromParts.shift();\n\t\ttoParts.shift();\n\t}\n\n\tif (fromParts.length) {\n\t\tlet i = fromParts.length;\n\t\twhile (i--) fromParts[i] = '..';\n\t}\n\n\treturn fromParts.concat(toParts).join('/');\n}\n\nconst toString = Object.prototype.toString;\n\nfunction isObject(thing) {\n\treturn toString.call(thing) === '[object Object]';\n}\n\nfunction getLocator(source) {\n\tconst originalLines = source.split('\\n');\n\tconst lineOffsets = [];\n\n\tfor (let i = 0, pos = 0; i < originalLines.length; i++) {\n\t\tlineOffsets.push(pos);\n\t\tpos += originalLines[i].length + 1;\n\t}\n\n\treturn function locate(index) {\n\t\tlet i = 0;\n\t\tlet j = lineOffsets.length;\n\t\twhile (i < j) {\n\t\t\tconst m = (i + j) >> 1;\n\t\t\tif (index < lineOffsets[m]) {\n\t\t\t\tj = m;\n\t\t\t} else {\n\t\t\t\ti = m + 1;\n\t\t\t}\n\t\t}\n\t\tconst line = i - 1;\n\t\tconst column = index - lineOffsets[line];\n\t\treturn { line, column };\n\t};\n}\n\nconst wordRegex = /\\w/;\n\nclass Mappings {\n\tconstructor(hires) {\n\t\tthis.hires = hires;\n\t\tthis.generatedCodeLine = 0;\n\t\tthis.generatedCodeColumn = 0;\n\t\tthis.raw = [];\n\t\tthis.rawSegments = this.raw[this.generatedCodeLine] = [];\n\t\tthis.pending = null;\n\t}\n\n\taddEdit(sourceIndex, content, loc, nameIndex) {\n\t\tif (content.length) {\n\t\t\tconst contentLengthMinusOne = content.length - 1;\n\t\t\tlet contentLineEnd = content.indexOf('\\n', 0);\n\t\t\tlet previousContentLineEnd = -1;\n\t\t\t// Loop through each line in the content and add a segment, but stop if the last line is empty,\n\t\t\t// else code afterwards would fill one line too many\n\t\t\twhile (contentLineEnd >= 0 && contentLengthMinusOne > contentLineEnd) {\n\t\t\t\tconst segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];\n\t\t\t\tif (nameIndex >= 0) {\n\t\t\t\t\tsegment.push(nameIndex);\n\t\t\t\t}\n\t\t\t\tthis.rawSegments.push(segment);\n\n\t\t\t\tthis.generatedCodeLine += 1;\n\t\t\t\tthis.raw[this.generatedCodeLine] = this.rawSegments = [];\n\t\t\t\tthis.generatedCodeColumn = 0;\n\n\t\t\t\tpreviousContentLineEnd = contentLineEnd;\n\t\t\t\tcontentLineEnd = content.indexOf('\\n', contentLineEnd + 1);\n\t\t\t}\n\n\t\t\tconst segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];\n\t\t\tif (nameIndex >= 0) {\n\t\t\t\tsegment.push(nameIndex);\n\t\t\t}\n\t\t\tthis.rawSegments.push(segment);\n\n\t\t\tthis.advance(content.slice(previousContentLineEnd + 1));\n\t\t} else if (this.pending) {\n\t\t\tthis.rawSegments.push(this.pending);\n\t\t\tthis.advance(content);\n\t\t}\n\n\t\tthis.pending = null;\n\t}\n\n\taddUneditedChunk(sourceIndex, chunk, original, loc, sourcemapLocations) {\n\t\tlet originalCharIndex = chunk.start;\n\t\tlet first = true;\n\t\t// when iterating each char, check if it's in a word boundary\n\t\tlet charInHiresBoundary = false;\n\n\t\twhile (originalCharIndex < chunk.end) {\n\t\t\tif (original[originalCharIndex] === '\\n') {\n\t\t\t\tloc.line += 1;\n\t\t\t\tloc.column = 0;\n\t\t\t\tthis.generatedCodeLine += 1;\n\t\t\t\tthis.raw[this.generatedCodeLine] = this.rawSegments = [];\n\t\t\t\tthis.generatedCodeColumn = 0;\n\t\t\t\tfirst = true;\n\t\t\t\tcharInHiresBoundary = false;\n\t\t\t} else {\n\t\t\t\tif (this.hires || first || sourcemapLocations.has(originalCharIndex)) {\n\t\t\t\t\tconst segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];\n\n\t\t\t\t\tif (this.hires === 'boundary') {\n\t\t\t\t\t\t// in hires \"boundary\", group segments per word boundary than per char\n\t\t\t\t\t\tif (wordRegex.test(original[originalCharIndex])) {\n\t\t\t\t\t\t\t// for first char in the boundary found, start the boundary by pushing a segment\n\t\t\t\t\t\t\tif (!charInHiresBoundary) {\n\t\t\t\t\t\t\t\tthis.rawSegments.push(segment);\n\t\t\t\t\t\t\t\tcharInHiresBoundary = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// for non-word char, end the boundary by pushing a segment\n\t\t\t\t\t\t\tthis.rawSegments.push(segment);\n\t\t\t\t\t\t\tcharInHiresBoundary = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.rawSegments.push(segment);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tloc.column += 1;\n\t\t\t\tthis.generatedCodeColumn += 1;\n\t\t\t\tfirst = false;\n\t\t\t}\n\n\t\t\toriginalCharIndex += 1;\n\t\t}\n\n\t\tthis.pending = null;\n\t}\n\n\tadvance(str) {\n\t\tif (!str) return;\n\n\t\tconst lines = str.split('\\n');\n\n\t\tif (lines.length > 1) {\n\t\t\tfor (let i = 0; i < lines.length - 1; i++) {\n\t\t\t\tthis.generatedCodeLine++;\n\t\t\t\tthis.raw[this.generatedCodeLine] = this.rawSegments = [];\n\t\t\t}\n\t\t\tthis.generatedCodeColumn = 0;\n\t\t}\n\n\t\tthis.generatedCodeColumn += lines[lines.length - 1].length;\n\t}\n}\n\nconst n = '\\n';\n\nconst warned = {\n\tinsertLeft: false,\n\tinsertRight: false,\n\tstoreName: false,\n};\n\nclass MagicString {\n\tconstructor(string, options = {}) {\n\t\tconst chunk = new Chunk(0, string.length, string);\n\n\t\tObject.defineProperties(this, {\n\t\t\toriginal: { writable: true, value: string },\n\t\t\toutro: { writable: true, value: '' },\n\t\t\tintro: { writable: true, value: '' },\n\t\t\tfirstChunk: { writable: true, value: chunk },\n\t\t\tlastChunk: { writable: true, value: chunk },\n\t\t\tlastSearchedChunk: { writable: true, value: chunk },\n\t\t\tbyStart: { writable: true, value: {} },\n\t\t\tbyEnd: { writable: true, value: {} },\n\t\t\tfilename: { writable: true, value: options.filename },\n\t\t\tindentExclusionRanges: { writable: true, value: options.indentExclusionRanges },\n\t\t\tsourcemapLocations: { writable: true, value: new BitSet() },\n\t\t\tstoredNames: { writable: true, value: {} },\n\t\t\tindentStr: { writable: true, value: undefined },\n\t\t\tignoreList: { writable: true, value: options.ignoreList },\n\t\t\toffset: { writable: true, value: options.offset || 0 },\n\t\t});\n\n\t\tthis.byStart[0] = chunk;\n\t\tthis.byEnd[string.length] = chunk;\n\t}\n\n\taddSourcemapLocation(char) {\n\t\tthis.sourcemapLocations.add(char);\n\t}\n\n\tappend(content) {\n\t\tif (typeof content !== 'string') throw new TypeError('outro content must be a string');\n\n\t\tthis.outro += content;\n\t\treturn this;\n\t}\n\n\tappendLeft(index, content) {\n\t\tindex = index + this.offset;\n\n\t\tif (typeof content !== 'string') throw new TypeError('inserted content must be a string');\n\n\t\tthis._split(index);\n\n\t\tconst chunk = this.byEnd[index];\n\n\t\tif (chunk) {\n\t\t\tchunk.appendLeft(content);\n\t\t} else {\n\t\t\tthis.intro += content;\n\t\t}\n\t\treturn this;\n\t}\n\n\tappendRight(index, content) {\n\t\tindex = index + this.offset;\n\n\t\tif (typeof content !== 'string') throw new TypeError('inserted content must be a string');\n\n\t\tthis._split(index);\n\n\t\tconst chunk = this.byStart[index];\n\n\t\tif (chunk) {\n\t\t\tchunk.appendRight(content);\n\t\t} else {\n\t\t\tthis.outro += content;\n\t\t}\n\t\treturn this;\n\t}\n\n\tclone() {\n\t\tconst cloned = new MagicString(this.original, { filename: this.filename, offset: this.offset });\n\n\t\tlet originalChunk = this.firstChunk;\n\t\tlet clonedChunk = (cloned.firstChunk = cloned.lastSearchedChunk = originalChunk.clone());\n\n\t\twhile (originalChunk) {\n\t\t\tcloned.byStart[clonedChunk.start] = clonedChunk;\n\t\t\tcloned.byEnd[clonedChunk.end] = clonedChunk;\n\n\t\t\tconst nextOriginalChunk = originalChunk.next;\n\t\t\tconst nextClonedChunk = nextOriginalChunk && nextOriginalChunk.clone();\n\n\t\t\tif (nextClonedChunk) {\n\t\t\t\tclonedChunk.next = nextClonedChunk;\n\t\t\t\tnextClonedChunk.previous = clonedChunk;\n\n\t\t\t\tclonedChunk = nextClonedChunk;\n\t\t\t}\n\n\t\t\toriginalChunk = nextOriginalChunk;\n\t\t}\n\n\t\tcloned.lastChunk = clonedChunk;\n\n\t\tif (this.indentExclusionRanges) {\n\t\t\tcloned.indentExclusionRanges = this.indentExclusionRanges.slice();\n\t\t}\n\n\t\tcloned.sourcemapLocations = new BitSet(this.sourcemapLocations);\n\n\t\tcloned.intro = this.intro;\n\t\tcloned.outro = this.outro;\n\n\t\treturn cloned;\n\t}\n\n\tgenerateDecodedMap(options) {\n\t\toptions = options || {};\n\n\t\tconst sourceIndex = 0;\n\t\tconst names = Object.keys(this.storedNames);\n\t\tconst mappings = new Mappings(options.hires);\n\n\t\tconst locate = getLocator(this.original);\n\n\t\tif (this.intro) {\n\t\t\tmappings.advance(this.intro);\n\t\t}\n\n\t\tthis.firstChunk.eachNext((chunk) => {\n\t\t\tconst loc = locate(chunk.start);\n\n\t\t\tif (chunk.intro.length) mappings.advance(chunk.intro);\n\n\t\t\tif (chunk.edited) {\n\t\t\t\tmappings.addEdit(\n\t\t\t\t\tsourceIndex,\n\t\t\t\t\tchunk.content,\n\t\t\t\t\tloc,\n\t\t\t\t\tchunk.storeName ? names.indexOf(chunk.original) : -1,\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tmappings.addUneditedChunk(sourceIndex, chunk, this.original, loc, this.sourcemapLocations);\n\t\t\t}\n\n\t\t\tif (chunk.outro.length) mappings.advance(chunk.outro);\n\t\t});\n\n\t\tif (this.outro) {\n\t\t\tmappings.advance(this.outro);\n\t\t}\n\n\t\treturn {\n\t\t\tfile: options.file ? options.file.split(/[/\\\\]/).pop() : undefined,\n\t\t\tsources: [\n\t\t\t\toptions.source ? getRelativePath(options.file || '', options.source) : options.file || '',\n\t\t\t],\n\t\t\tsourcesContent: options.includeContent ? [this.original] : undefined,\n\t\t\tnames,\n\t\t\tmappings: mappings.raw,\n\t\t\tx_google_ignoreList: this.ignoreList ? [sourceIndex] : undefined,\n\t\t};\n\t}\n\n\tgenerateMap(options) {\n\t\treturn new SourceMap(this.generateDecodedMap(options));\n\t}\n\n\t_ensureindentStr() {\n\t\tif (this.indentStr === undefined) {\n\t\t\tthis.indentStr = guessIndent(this.original);\n\t\t}\n\t}\n\n\t_getRawIndentString() {\n\t\tthis._ensureindentStr();\n\t\treturn this.indentStr;\n\t}\n\n\tgetIndentString() {\n\t\tthis._ensureindentStr();\n\t\treturn this.indentStr === null ? '\\t' : this.indentStr;\n\t}\n\n\tindent(indentStr, options) {\n\t\tconst pattern = /^[^\\r\\n]/gm;\n\n\t\tif (isObject(indentStr)) {\n\t\t\toptions = indentStr;\n\t\t\tindentStr = undefined;\n\t\t}\n\n\t\tif (indentStr === undefined) {\n\t\t\tthis._ensureindentStr();\n\t\t\tindentStr = this.indentStr || '\\t';\n\t\t}\n\n\t\tif (indentStr === '') return this; // noop\n\n\t\toptions = options || {};\n\n\t\t// Process exclusion ranges\n\t\tconst isExcluded = {};\n\n\t\tif (options.exclude) {\n\t\t\tconst exclusions =\n\t\t\t\ttypeof options.exclude[0] === 'number' ? [options.exclude] : options.exclude;\n\t\t\texclusions.forEach((exclusion) => {\n\t\t\t\tfor (let i = exclusion[0]; i < exclusion[1]; i += 1) {\n\t\t\t\t\tisExcluded[i] = true;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tlet shouldIndentNextCharacter = options.indentStart !== false;\n\t\tconst replacer = (match) => {\n\t\t\tif (shouldIndentNextCharacter) return `${indentStr}${match}`;\n\t\t\tshouldIndentNextCharacter = true;\n\t\t\treturn match;\n\t\t};\n\n\t\tthis.intro = this.intro.replace(pattern, replacer);\n\n\t\tlet charIndex = 0;\n\t\tlet chunk = this.firstChunk;\n\n\t\twhile (chunk) {\n\t\t\tconst end = chunk.end;\n\n\t\t\tif (chunk.edited) {\n\t\t\t\tif (!isExcluded[charIndex]) {\n\t\t\t\t\tchunk.content = chunk.content.replace(pattern, replacer);\n\n\t\t\t\t\tif (chunk.content.length) {\n\t\t\t\t\t\tshouldIndentNextCharacter = chunk.content[chunk.content.length - 1] === '\\n';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcharIndex = chunk.start;\n\n\t\t\t\twhile (charIndex < end) {\n\t\t\t\t\tif (!isExcluded[charIndex]) {\n\t\t\t\t\t\tconst char = this.original[charIndex];\n\n\t\t\t\t\t\tif (char === '\\n') {\n\t\t\t\t\t\t\tshouldIndentNextCharacter = true;\n\t\t\t\t\t\t} else if (char !== '\\r' && shouldIndentNextCharacter) {\n\t\t\t\t\t\t\tshouldIndentNextCharacter = false;\n\n\t\t\t\t\t\t\tif (charIndex === chunk.start) {\n\t\t\t\t\t\t\t\tchunk.prependRight(indentStr);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tthis._splitChunk(chunk, charIndex);\n\t\t\t\t\t\t\t\tchunk = chunk.next;\n\t\t\t\t\t\t\t\tchunk.prependRight(indentStr);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tcharIndex += 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tcharIndex = chunk.end;\n\t\t\tchunk = chunk.next;\n\t\t}\n\n\t\tthis.outro = this.outro.replace(pattern, replacer);\n\n\t\treturn this;\n\t}\n\n\tinsert() {\n\t\tthrow new Error(\n\t\t\t'magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)',\n\t\t);\n\t}\n\n\tinsertLeft(index, content) {\n\t\tif (!warned.insertLeft) {\n\t\t\tconsole.warn(\n\t\t\t\t'magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead',\n\t\t\t);\n\t\t\twarned.insertLeft = true;\n\t\t}\n\n\t\treturn this.appendLeft(index, content);\n\t}\n\n\tinsertRight(index, content) {\n\t\tif (!warned.insertRight) {\n\t\t\tconsole.warn(\n\t\t\t\t'magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead',\n\t\t\t);\n\t\t\twarned.insertRight = true;\n\t\t}\n\n\t\treturn this.prependRight(index, content);\n\t}\n\n\tmove(start, end, index) {\n\t\tstart = start + this.offset;\n\t\tend = end + this.offset;\n\t\tindex = index + this.offset;\n\n\t\tif (index >= start && index <= end) throw new Error('Cannot move a selection inside itself');\n\n\t\tthis._split(start);\n\t\tthis._split(end);\n\t\tthis._split(index);\n\n\t\tconst first = this.byStart[start];\n\t\tconst last = this.byEnd[end];\n\n\t\tconst oldLeft = first.previous;\n\t\tconst oldRight = last.next;\n\n\t\tconst newRight = this.byStart[index];\n\t\tif (!newRight && last === this.lastChunk) return this;\n\t\tconst newLeft = newRight ? newRight.previous : this.lastChunk;\n\n\t\tif (oldLeft) oldLeft.next = oldRight;\n\t\tif (oldRight) oldRight.previous = oldLeft;\n\n\t\tif (newLeft) newLeft.next = first;\n\t\tif (newRight) newRight.previous = last;\n\n\t\tif (!first.previous) this.firstChunk = last.next;\n\t\tif (!last.next) {\n\t\t\tthis.lastChunk = first.previous;\n\t\t\tthis.lastChunk.next = null;\n\t\t}\n\n\t\tfirst.previous = newLeft;\n\t\tlast.next = newRight || null;\n\n\t\tif (!newLeft) this.firstChunk = first;\n\t\tif (!newRight) this.lastChunk = last;\n\t\treturn this;\n\t}\n\n\toverwrite(start, end, content, options) {\n\t\toptions = options || {};\n\t\treturn this.update(start, end, content, { ...options, overwrite: !options.contentOnly });\n\t}\n\n\tupdate(start, end, content, options) {\n\t\tstart = start + this.offset;\n\t\tend = end + this.offset;\n\n\t\tif (typeof content !== 'string') throw new TypeError('replacement content must be a string');\n\n\t\tif (this.original.length !== 0) {\n\t\t\twhile (start < 0) start += this.original.length;\n\t\t\twhile (end < 0) end += this.original.length;\n\t\t}\n\n\t\tif (end > this.original.length) throw new Error('end is out of bounds');\n\t\tif (start === end)\n\t\t\tthrow new Error(\n\t\t\t\t'Cannot overwrite a zero-length range – use appendLeft or prependRight instead',\n\t\t\t);\n\n\t\tthis._split(start);\n\t\tthis._split(end);\n\n\t\tif (options === true) {\n\t\t\tif (!warned.storeName) {\n\t\t\t\tconsole.warn(\n\t\t\t\t\t'The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string',\n\t\t\t\t);\n\t\t\t\twarned.storeName = true;\n\t\t\t}\n\n\t\t\toptions = { storeName: true };\n\t\t}\n\t\tconst storeName = options !== undefined ? options.storeName : false;\n\t\tconst overwrite = options !== undefined ? options.overwrite : false;\n\n\t\tif (storeName) {\n\t\t\tconst original = this.original.slice(start, end);\n\t\t\tObject.defineProperty(this.storedNames, original, {\n\t\t\t\twritable: true,\n\t\t\t\tvalue: true,\n\t\t\t\tenumerable: true,\n\t\t\t});\n\t\t}\n\n\t\tconst first = this.byStart[start];\n\t\tconst last = this.byEnd[end];\n\n\t\tif (first) {\n\t\t\tlet chunk = first;\n\t\t\twhile (chunk !== last) {\n\t\t\t\tif (chunk.next !== this.byStart[chunk.end]) {\n\t\t\t\t\tthrow new Error('Cannot overwrite across a split point');\n\t\t\t\t}\n\t\t\t\tchunk = chunk.next;\n\t\t\t\tchunk.edit('', false);\n\t\t\t}\n\n\t\t\tfirst.edit(content, storeName, !overwrite);\n\t\t} else {\n\t\t\t// must be inserting at the end\n\t\t\tconst newChunk = new Chunk(start, end, '').edit(content, storeName);\n\n\t\t\t// TODO last chunk in the array may not be the last chunk, if it's moved...\n\t\t\tlast.next = newChunk;\n\t\t\tnewChunk.previous = last;\n\t\t}\n\t\treturn this;\n\t}\n\n\tprepend(content) {\n\t\tif (typeof content !== 'string') throw new TypeError('outro content must be a string');\n\n\t\tthis.intro = content + this.intro;\n\t\treturn this;\n\t}\n\n\tprependLeft(index, content) {\n\t\tindex = index + this.offset;\n\n\t\tif (typeof content !== 'string') throw new TypeError('inserted content must be a string');\n\n\t\tthis._split(index);\n\n\t\tconst chunk = this.byEnd[index];\n\n\t\tif (chunk) {\n\t\t\tchunk.prependLeft(content);\n\t\t} else {\n\t\t\tthis.intro = content + this.intro;\n\t\t}\n\t\treturn this;\n\t}\n\n\tprependRight(index, content) {\n\t\tindex = index + this.offset;\n\n\t\tif (typeof content !== 'string') throw new TypeError('inserted content must be a string');\n\n\t\tthis._split(index);\n\n\t\tconst chunk = this.byStart[index];\n\n\t\tif (chunk) {\n\t\t\tchunk.prependRight(content);\n\t\t} else {\n\t\t\tthis.outro = content + this.outro;\n\t\t}\n\t\treturn this;\n\t}\n\n\tremove(start, end) {\n\t\tstart = start + this.offset;\n\t\tend = end + this.offset;\n\n\t\tif (this.original.length !== 0) {\n\t\t\twhile (start < 0) start += this.original.length;\n\t\t\twhile (end < 0) end += this.original.length;\n\t\t}\n\n\t\tif (start === end) return this;\n\n\t\tif (start < 0 || end > this.original.length) throw new Error('Character is out of bounds');\n\t\tif (start > end) throw new Error('end must be greater than start');\n\n\t\tthis._split(start);\n\t\tthis._split(end);\n\n\t\tlet chunk = this.byStart[start];\n\n\t\twhile (chunk) {\n\t\t\tchunk.intro = '';\n\t\t\tchunk.outro = '';\n\t\t\tchunk.edit('');\n\n\t\t\tchunk = end > chunk.end ? this.byStart[chunk.end] : null;\n\t\t}\n\t\treturn this;\n\t}\n\n\treset(start, end) {\n\t\tstart = start + this.offset;\n\t\tend = end + this.offset;\n\n\t\tif (this.original.length !== 0) {\n\t\t\twhile (start < 0) start += this.original.length;\n\t\t\twhile (end < 0) end += this.original.length;\n\t\t}\n\n\t\tif (start === end) return this;\n\n\t\tif (start < 0 || end > this.original.length) throw new Error('Character is out of bounds');\n\t\tif (start > end) throw new Error('end must be greater than start');\n\n\t\tthis._split(start);\n\t\tthis._split(end);\n\n\t\tlet chunk = this.byStart[start];\n\n\t\twhile (chunk) {\n\t\t\tchunk.reset();\n\n\t\t\tchunk = end > chunk.end ? this.byStart[chunk.end] : null;\n\t\t}\n\t\treturn this;\n\t}\n\n\tlastChar() {\n\t\tif (this.outro.length) return this.outro[this.outro.length - 1];\n\t\tlet chunk = this.lastChunk;\n\t\tdo {\n\t\t\tif (chunk.outro.length) return chunk.outro[chunk.outro.length - 1];\n\t\t\tif (chunk.content.length) return chunk.content[chunk.content.length - 1];\n\t\t\tif (chunk.intro.length) return chunk.intro[chunk.intro.length - 1];\n\t\t} while ((chunk = chunk.previous));\n\t\tif (this.intro.length) return this.intro[this.intro.length - 1];\n\t\treturn '';\n\t}\n\n\tlastLine() {\n\t\tlet lineIndex = this.outro.lastIndexOf(n);\n\t\tif (lineIndex !== -1) return this.outro.substr(lineIndex + 1);\n\t\tlet lineStr = this.outro;\n\t\tlet chunk = this.lastChunk;\n\t\tdo {\n\t\t\tif (chunk.outro.length > 0) {\n\t\t\t\tlineIndex = chunk.outro.lastIndexOf(n);\n\t\t\t\tif (lineIndex !== -1) return chunk.outro.substr(lineIndex + 1) + lineStr;\n\t\t\t\tlineStr = chunk.outro + lineStr;\n\t\t\t}\n\n\t\t\tif (chunk.content.length > 0) {\n\t\t\t\tlineIndex = chunk.content.lastIndexOf(n);\n\t\t\t\tif (lineIndex !== -1) return chunk.content.substr(lineIndex + 1) + lineStr;\n\t\t\t\tlineStr = chunk.content + lineStr;\n\t\t\t}\n\n\t\t\tif (chunk.intro.length > 0) {\n\t\t\t\tlineIndex = chunk.intro.lastIndexOf(n);\n\t\t\t\tif (lineIndex !== -1) return chunk.intro.substr(lineIndex + 1) + lineStr;\n\t\t\t\tlineStr = chunk.intro + lineStr;\n\t\t\t}\n\t\t} while ((chunk = chunk.previous));\n\t\tlineIndex = this.intro.lastIndexOf(n);\n\t\tif (lineIndex !== -1) return this.intro.substr(lineIndex + 1) + lineStr;\n\t\treturn this.intro + lineStr;\n\t}\n\n\tslice(start = 0, end = this.original.length - this.offset) {\n\t\tstart = start + this.offset;\n\t\tend = end + this.offset;\n\n\t\tif (this.original.length !== 0) {\n\t\t\twhile (start < 0) start += this.original.length;\n\t\t\twhile (end < 0) end += this.original.length;\n\t\t}\n\n\t\tlet result = '';\n\n\t\t// find start chunk\n\t\tlet chunk = this.firstChunk;\n\t\twhile (chunk && (chunk.start > start || chunk.end <= start)) {\n\t\t\t// found end chunk before start\n\t\t\tif (chunk.start < end && chunk.end >= end) {\n\t\t\t\treturn result;\n\t\t\t}\n\n\t\t\tchunk = chunk.next;\n\t\t}\n\n\t\tif (chunk && chunk.edited && chunk.start !== start)\n\t\t\tthrow new Error(`Cannot use replaced character ${start} as slice start anchor.`);\n\n\t\tconst startChunk = chunk;\n\t\twhile (chunk) {\n\t\t\tif (chunk.intro && (startChunk !== chunk || chunk.start === start)) {\n\t\t\t\tresult += chunk.intro;\n\t\t\t}\n\n\t\t\tconst containsEnd = chunk.start < end && chunk.end >= end;\n\t\t\tif (containsEnd && chunk.edited && chunk.end !== end)\n\t\t\t\tthrow new Error(`Cannot use replaced character ${end} as slice end anchor.`);\n\n\t\t\tconst sliceStart = startChunk === chunk ? start - chunk.start : 0;\n\t\t\tconst sliceEnd = containsEnd ? chunk.content.length + end - chunk.end : chunk.content.length;\n\n\t\t\tresult += chunk.content.slice(sliceStart, sliceEnd);\n\n\t\t\tif (chunk.outro && (!containsEnd || chunk.end === end)) {\n\t\t\t\tresult += chunk.outro;\n\t\t\t}\n\n\t\t\tif (containsEnd) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tchunk = chunk.next;\n\t\t}\n\n\t\treturn result;\n\t}\n\n\t// TODO deprecate this? not really very useful\n\tsnip(start, end) {\n\t\tconst clone = this.clone();\n\t\tclone.remove(0, start);\n\t\tclone.remove(end, clone.original.length);\n\n\t\treturn clone;\n\t}\n\n\t_split(index) {\n\t\tif (this.byStart[index] || this.byEnd[index]) return;\n\n\t\tlet chunk = this.lastSearchedChunk;\n\t\tlet previousChunk = chunk;\n\t\tconst searchForward = index > chunk.end;\n\n\t\twhile (chunk) {\n\t\t\tif (chunk.contains(index)) return this._splitChunk(chunk, index);\n\n\t\t\tchunk = searchForward ? this.byStart[chunk.end] : this.byEnd[chunk.start];\n\n\t\t\t// Prevent infinite loop (e.g. via empty chunks, where start === end)\n\t\t\tif (chunk === previousChunk) return;\n\n\t\t\tpreviousChunk = chunk;\n\t\t}\n\t}\n\n\t_splitChunk(chunk, index) {\n\t\tif (chunk.edited && chunk.content.length) {\n\t\t\t// zero-length edited chunks are a special case (overlapping replacements)\n\t\t\tconst loc = getLocator(this.original)(index);\n\t\t\tthrow new Error(\n\t\t\t\t`Cannot split a chunk that has already been edited (${loc.line}:${loc.column} – \"${chunk.original}\")`,\n\t\t\t);\n\t\t}\n\n\t\tconst newChunk = chunk.split(index);\n\n\t\tthis.byEnd[index] = chunk;\n\t\tthis.byStart[index] = newChunk;\n\t\tthis.byEnd[newChunk.end] = newChunk;\n\n\t\tif (chunk === this.lastChunk) this.lastChunk = newChunk;\n\n\t\tthis.lastSearchedChunk = chunk;\n\t\treturn true;\n\t}\n\n\ttoString() {\n\t\tlet str = this.intro;\n\n\t\tlet chunk = this.firstChunk;\n\t\twhile (chunk) {\n\t\t\tstr += chunk.toString();\n\t\t\tchunk = chunk.next;\n\t\t}\n\n\t\treturn str + this.outro;\n\t}\n\n\tisEmpty() {\n\t\tlet chunk = this.firstChunk;\n\t\tdo {\n\t\t\tif (\n\t\t\t\t(chunk.intro.length && chunk.intro.trim()) ||\n\t\t\t\t(chunk.content.length && chunk.content.trim()) ||\n\t\t\t\t(chunk.outro.length && chunk.outro.trim())\n\t\t\t)\n\t\t\t\treturn false;\n\t\t} while ((chunk = chunk.next));\n\t\treturn true;\n\t}\n\n\tlength() {\n\t\tlet chunk = this.firstChunk;\n\t\tlet length = 0;\n\t\tdo {\n\t\t\tlength += chunk.intro.length + chunk.content.length + chunk.outro.length;\n\t\t} while ((chunk = chunk.next));\n\t\treturn length;\n\t}\n\n\ttrimLines() {\n\t\treturn this.trim('[\\\\r\\\\n]');\n\t}\n\n\ttrim(charType) {\n\t\treturn this.trimStart(charType).trimEnd(charType);\n\t}\n\n\ttrimEndAborted(charType) {\n\t\tconst rx = new RegExp((charType || '\\\\s') + '+$');\n\n\t\tthis.outro = this.outro.replace(rx, '');\n\t\tif (this.outro.length) return true;\n\n\t\tlet chunk = this.lastChunk;\n\n\t\tdo {\n\t\t\tconst end = chunk.end;\n\t\t\tconst aborted = chunk.trimEnd(rx);\n\n\t\t\t// if chunk was trimmed, we have a new lastChunk\n\t\t\tif (chunk.end !== end) {\n\t\t\t\tif (this.lastChunk === chunk) {\n\t\t\t\t\tthis.lastChunk = chunk.next;\n\t\t\t\t}\n\n\t\t\t\tthis.byEnd[chunk.end] = chunk;\n\t\t\t\tthis.byStart[chunk.next.start] = chunk.next;\n\t\t\t\tthis.byEnd[chunk.next.end] = chunk.next;\n\t\t\t}\n\n\t\t\tif (aborted) return true;\n\t\t\tchunk = chunk.previous;\n\t\t} while (chunk);\n\n\t\treturn false;\n\t}\n\n\ttrimEnd(charType) {\n\t\tthis.trimEndAborted(charType);\n\t\treturn this;\n\t}\n\ttrimStartAborted(charType) {\n\t\tconst rx = new RegExp('^' + (charType || '\\\\s') + '+');\n\n\t\tthis.intro = this.intro.replace(rx, '');\n\t\tif (this.intro.length) return true;\n\n\t\tlet chunk = this.firstChunk;\n\n\t\tdo {\n\t\t\tconst end = chunk.end;\n\t\t\tconst aborted = chunk.trimStart(rx);\n\n\t\t\tif (chunk.end !== end) {\n\t\t\t\t// special case...\n\t\t\t\tif (chunk === this.lastChunk) this.lastChunk = chunk.next;\n\n\t\t\t\tthis.byEnd[chunk.end] = chunk;\n\t\t\t\tthis.byStart[chunk.next.start] = chunk.next;\n\t\t\t\tthis.byEnd[chunk.next.end] = chunk.next;\n\t\t\t}\n\n\t\t\tif (aborted) return true;\n\t\t\tchunk = chunk.next;\n\t\t} while (chunk);\n\n\t\treturn false;\n\t}\n\n\ttrimStart(charType) {\n\t\tthis.trimStartAborted(charType);\n\t\treturn this;\n\t}\n\n\thasChanged() {\n\t\treturn this.original !== this.toString();\n\t}\n\n\t_replaceRegexp(searchValue, replacement) {\n\t\tfunction getReplacement(match, str) {\n\t\t\tif (typeof replacement === 'string') {\n\t\t\t\treturn replacement.replace(/\\$(\\$|&|\\d+)/g, (_, i) => {\n\t\t\t\t\t// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_string_as_a_parameter\n\t\t\t\t\tif (i === '$') return '$';\n\t\t\t\t\tif (i === '&') return match[0];\n\t\t\t\t\tconst num = +i;\n\t\t\t\t\tif (num < match.length) return match[+i];\n\t\t\t\t\treturn `$${i}`;\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\treturn replacement(...match, match.index, str, match.groups);\n\t\t\t}\n\t\t}\n\t\tfunction matchAll(re, str) {\n\t\t\tlet match;\n\t\t\tconst matches = [];\n\t\t\twhile ((match = re.exec(str))) {\n\t\t\t\tmatches.push(match);\n\t\t\t}\n\t\t\treturn matches;\n\t\t}\n\t\tif (searchValue.global) {\n\t\t\tconst matches = matchAll(searchValue, this.original);\n\t\t\tmatches.forEach((match) => {\n\t\t\t\tif (match.index != null) {\n\t\t\t\t\tconst replacement = getReplacement(match, this.original);\n\t\t\t\t\tif (replacement !== match[0]) {\n\t\t\t\t\t\tthis.overwrite(match.index, match.index + match[0].length, replacement);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tconst match = this.original.match(searchValue);\n\t\t\tif (match && match.index != null) {\n\t\t\t\tconst replacement = getReplacement(match, this.original);\n\t\t\t\tif (replacement !== match[0]) {\n\t\t\t\t\tthis.overwrite(match.index, match.index + match[0].length, replacement);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}\n\n\t_replaceString(string, replacement) {\n\t\tconst { original } = this;\n\t\tconst index = original.indexOf(string);\n\n\t\tif (index !== -1) {\n\t\t\tif (typeof replacement === 'function') {\n\t\t\t\treplacement = replacement(string, index, original);\n\t\t\t}\n\t\t\tif (string !== replacement) {\n\t\t\t\tthis.overwrite(index, index + string.length, replacement);\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t}\n\n\treplace(searchValue, replacement) {\n\t\tif (typeof searchValue === 'string') {\n\t\t\treturn this._replaceString(searchValue, replacement);\n\t\t}\n\n\t\treturn this._replaceRegexp(searchValue, replacement);\n\t}\n\n\t_replaceAllString(string, replacement) {\n\t\tconst { original } = this;\n\t\tconst stringLength = string.length;\n\t\tfor (\n\t\t\tlet index = original.indexOf(string);\n\t\t\tindex !== -1;\n\t\t\tindex = original.indexOf(string, index + stringLength)\n\t\t) {\n\t\t\tconst previous = original.slice(index, index + stringLength);\n\t\t\tlet _replacement = replacement;\n\t\t\tif (typeof replacement === 'function') {\n\t\t\t\t_replacement = replacement(previous, index, original);\n\t\t\t}\n\t\t\tif (previous !== _replacement) this.overwrite(index, index + stringLength, _replacement);\n\t\t}\n\n\t\treturn this;\n\t}\n\n\treplaceAll(searchValue, replacement) {\n\t\tif (typeof searchValue === 'string') {\n\t\t\treturn this._replaceAllString(searchValue, replacement);\n\t\t}\n\n\t\tif (!searchValue.global) {\n\t\t\tthrow new TypeError(\n\t\t\t\t'MagicString.prototype.replaceAll called with a non-global RegExp argument',\n\t\t\t);\n\t\t}\n\n\t\treturn this._replaceRegexp(searchValue, replacement);\n\t}\n}\n\nconst hasOwnProp = Object.prototype.hasOwnProperty;\n\nclass Bundle {\n\tconstructor(options = {}) {\n\t\tthis.intro = options.intro || '';\n\t\tthis.separator = options.separator !== undefined ? options.separator : '\\n';\n\t\tthis.sources = [];\n\t\tthis.uniqueSources = [];\n\t\tthis.uniqueSourceIndexByFilename = {};\n\t}\n\n\taddSource(source) {\n\t\tif (source instanceof MagicString) {\n\t\t\treturn this.addSource({\n\t\t\t\tcontent: source,\n\t\t\t\tfilename: source.filename,\n\t\t\t\tseparator: this.separator,\n\t\t\t});\n\t\t}\n\n\t\tif (!isObject(source) || !source.content) {\n\t\t\tthrow new Error(\n\t\t\t\t'bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`',\n\t\t\t);\n\t\t}\n\n\t\t['filename', 'ignoreList', 'indentExclusionRanges', 'separator'].forEach((option) => {\n\t\t\tif (!hasOwnProp.call(source, option)) source[option] = source.content[option];\n\t\t});\n\n\t\tif (source.separator === undefined) {\n\t\t\t// TODO there's a bunch of this sort of thing, needs cleaning up\n\t\t\tsource.separator = this.separator;\n\t\t}\n\n\t\tif (source.filename) {\n\t\t\tif (!hasOwnProp.call(this.uniqueSourceIndexByFilename, source.filename)) {\n\t\t\t\tthis.uniqueSourceIndexByFilename[source.filename] = this.uniqueSources.length;\n\t\t\t\tthis.uniqueSources.push({ filename: source.filename, content: source.content.original });\n\t\t\t} else {\n\t\t\t\tconst uniqueSource = this.uniqueSources[this.uniqueSourceIndexByFilename[source.filename]];\n\t\t\t\tif (source.content.original !== uniqueSource.content) {\n\t\t\t\t\tthrow new Error(`Illegal source: same filename (${source.filename}), different contents`);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis.sources.push(source);\n\t\treturn this;\n\t}\n\n\tappend(str, options) {\n\t\tthis.addSource({\n\t\t\tcontent: new MagicString(str),\n\t\t\tseparator: (options && options.separator) || '',\n\t\t});\n\n\t\treturn this;\n\t}\n\n\tclone() {\n\t\tconst bundle = new Bundle({\n\t\t\tintro: this.intro,\n\t\t\tseparator: this.separator,\n\t\t});\n\n\t\tthis.sources.forEach((source) => {\n\t\t\tbundle.addSource({\n\t\t\t\tfilename: source.filename,\n\t\t\t\tcontent: source.content.clone(),\n\t\t\t\tseparator: source.separator,\n\t\t\t});\n\t\t});\n\n\t\treturn bundle;\n\t}\n\n\tgenerateDecodedMap(options = {}) {\n\t\tconst names = [];\n\t\tlet x_google_ignoreList = undefined;\n\t\tthis.sources.forEach((source) => {\n\t\t\tObject.keys(source.content.storedNames).forEach((name) => {\n\t\t\t\tif (!~names.indexOf(name)) names.push(name);\n\t\t\t});\n\t\t});\n\n\t\tconst mappings = new Mappings(options.hires);\n\n\t\tif (this.intro) {\n\t\t\tmappings.advance(this.intro);\n\t\t}\n\n\t\tthis.sources.forEach((source, i) => {\n\t\t\tif (i > 0) {\n\t\t\t\tmappings.advance(this.separator);\n\t\t\t}\n\n\t\t\tconst sourceIndex = source.filename ? this.uniqueSourceIndexByFilename[source.filename] : -1;\n\t\t\tconst magicString = source.content;\n\t\t\tconst locate = getLocator(magicString.original);\n\n\t\t\tif (magicString.intro) {\n\t\t\t\tmappings.advance(magicString.intro);\n\t\t\t}\n\n\t\t\tmagicString.firstChunk.eachNext((chunk) => {\n\t\t\t\tconst loc = locate(chunk.start);\n\n\t\t\t\tif (chunk.intro.length) mappings.advance(chunk.intro);\n\n\t\t\t\tif (source.filename) {\n\t\t\t\t\tif (chunk.edited) {\n\t\t\t\t\t\tmappings.addEdit(\n\t\t\t\t\t\t\tsourceIndex,\n\t\t\t\t\t\t\tchunk.content,\n\t\t\t\t\t\t\tloc,\n\t\t\t\t\t\t\tchunk.storeName ? names.indexOf(chunk.original) : -1,\n\t\t\t\t\t\t);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmappings.addUneditedChunk(\n\t\t\t\t\t\t\tsourceIndex,\n\t\t\t\t\t\t\tchunk,\n\t\t\t\t\t\t\tmagicString.original,\n\t\t\t\t\t\t\tloc,\n\t\t\t\t\t\t\tmagicString.sourcemapLocations,\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tmappings.advance(chunk.content);\n\t\t\t\t}\n\n\t\t\t\tif (chunk.outro.length) mappings.advance(chunk.outro);\n\t\t\t});\n\n\t\t\tif (magicString.outro) {\n\t\t\t\tmappings.advance(magicString.outro);\n\t\t\t}\n\n\t\t\tif (source.ignoreList && sourceIndex !== -1) {\n\t\t\t\tif (x_google_ignoreList === undefined) {\n\t\t\t\t\tx_google_ignoreList = [];\n\t\t\t\t}\n\t\t\t\tx_google_ignoreList.push(sourceIndex);\n\t\t\t}\n\t\t});\n\n\t\treturn {\n\t\t\tfile: options.file ? options.file.split(/[/\\\\]/).pop() : undefined,\n\t\t\tsources: this.uniqueSources.map((source) => {\n\t\t\t\treturn options.file ? getRelativePath(options.file, source.filename) : source.filename;\n\t\t\t}),\n\t\t\tsourcesContent: this.uniqueSources.map((source) => {\n\t\t\t\treturn options.includeContent ? source.content : null;\n\t\t\t}),\n\t\t\tnames,\n\t\t\tmappings: mappings.raw,\n\t\t\tx_google_ignoreList,\n\t\t};\n\t}\n\n\tgenerateMap(options) {\n\t\treturn new SourceMap(this.generateDecodedMap(options));\n\t}\n\n\tgetIndentString() {\n\t\tconst indentStringCounts = {};\n\n\t\tthis.sources.forEach((source) => {\n\t\t\tconst indentStr = source.content._getRawIndentString();\n\n\t\t\tif (indentStr === null) return;\n\n\t\t\tif (!indentStringCounts[indentStr]) indentStringCounts[indentStr] = 0;\n\t\t\tindentStringCounts[indentStr] += 1;\n\t\t});\n\n\t\treturn (\n\t\t\tObject.keys(indentStringCounts).sort((a, b) => {\n\t\t\t\treturn indentStringCounts[a] - indentStringCounts[b];\n\t\t\t})[0] || '\\t'\n\t\t);\n\t}\n\n\tindent(indentStr) {\n\t\tif (!arguments.length) {\n\t\t\tindentStr = this.getIndentString();\n\t\t}\n\n\t\tif (indentStr === '') return this; // noop\n\n\t\tlet trailingNewline = !this.intro || this.intro.slice(-1) === '\\n';\n\n\t\tthis.sources.forEach((source, i) => {\n\t\t\tconst separator = source.separator !== undefined ? source.separator : this.separator;\n\t\t\tconst indentStart = trailingNewline || (i > 0 && /\\r?\\n$/.test(separator));\n\n\t\t\tsource.content.indent(indentStr, {\n\t\t\t\texclude: source.indentExclusionRanges,\n\t\t\t\tindentStart, //: trailingNewline || /\\r?\\n$/.test( separator ) //true///\\r?\\n/.test( separator )\n\t\t\t});\n\n\t\t\ttrailingNewline = source.content.lastChar() === '\\n';\n\t\t});\n\n\t\tif (this.intro) {\n\t\t\tthis.intro =\n\t\t\t\tindentStr +\n\t\t\t\tthis.intro.replace(/^[^\\n]/gm, (match, index) => {\n\t\t\t\t\treturn index > 0 ? indentStr + match : match;\n\t\t\t\t});\n\t\t}\n\n\t\treturn this;\n\t}\n\n\tprepend(str) {\n\t\tthis.intro = str + this.intro;\n\t\treturn this;\n\t}\n\n\ttoString() {\n\t\tconst body = this.sources\n\t\t\t.map((source, i) => {\n\t\t\t\tconst separator = source.separator !== undefined ? source.separator : this.separator;\n\t\t\t\tconst str = (i > 0 ? separator : '') + source.content.toString();\n\n\t\t\t\treturn str;\n\t\t\t})\n\t\t\t.join('');\n\n\t\treturn this.intro + body;\n\t}\n\n\tisEmpty() {\n\t\tif (this.intro.length && this.intro.trim()) return false;\n\t\tif (this.sources.some((source) => !source.content.isEmpty())) return false;\n\t\treturn true;\n\t}\n\n\tlength() {\n\t\treturn this.sources.reduce(\n\t\t\t(length, source) => length + source.content.length(),\n\t\t\tthis.intro.length,\n\t\t);\n\t}\n\n\ttrimLines() {\n\t\treturn this.trim('[\\\\r\\\\n]');\n\t}\n\n\ttrim(charType) {\n\t\treturn this.trimStart(charType).trimEnd(charType);\n\t}\n\n\ttrimStart(charType) {\n\t\tconst rx = new RegExp('^' + (charType || '\\\\s') + '+');\n\t\tthis.intro = this.intro.replace(rx, '');\n\n\t\tif (!this.intro) {\n\t\t\tlet source;\n\t\t\tlet i = 0;\n\n\t\t\tdo {\n\t\t\t\tsource = this.sources[i++];\n\t\t\t\tif (!source) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} while (!source.content.trimStartAborted(charType));\n\t\t}\n\n\t\treturn this;\n\t}\n\n\ttrimEnd(charType) {\n\t\tconst rx = new RegExp((charType || '\\\\s') + '+$');\n\n\t\tlet source;\n\t\tlet i = this.sources.length - 1;\n\n\t\tdo {\n\t\t\tsource = this.sources[i--];\n\t\t\tif (!source) {\n\t\t\t\tthis.intro = this.intro.replace(rx, '');\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} while (!source.content.trimEndAborted(charType));\n\n\t\treturn this;\n\t}\n}\n\nexport { Bundle, SourceMap, MagicString as default };\n//# sourceMappingURL=magic-string.es.mjs.map\n",
8
8
  "import MagicString from \"magic-string\";\nimport { parseAstAsync, type Plugin } from \"vite\";\nimport {\n dictionaryId,\n dictionaryLocales,\n findSourceDisagreement,\n localeStrings,\n type DictionaryTranslations,\n} from \"../i18n/dictionaryShape\";\n\n/**\n * Splits `defineDictionary({...})` literals into one chunk per locale.\n *\n * Authoring keeps every locale in one file next to the component. This rewrites\n * the call so the strings themselves leave the module entirely:\n *\n * const dict = defineDictionary({ title: { \"en-US\": \"Hi\", \"tr-TR\": \"Selam\" } })\n *\n * becomes\n *\n * const dict = __gemi_dict__(\"d_1a2b3c4d5e6f7081\", {\n * \"en-US\": () => import(\"virtual:gemi-dict/<src>/d_.../en-US\"),\n * \"tr-TR\": () => import(\"virtual:gemi-dict/<src>/d_.../tr-TR\"),\n * })\n *\n * An explicit map rather than a template-literal `import()`: the bundler sees\n * static specifiers, so it emits a real chunk per locale and module-preload\n * hints keep working. A page then downloads only the locale it renders in.\n *\n * This is purely an optimization. `defineDictionary` untransformed holds every\n * locale and answers synchronously, which is what keeps `bun test` and server\n * code that never meets the bundler working with no special casing.\n */\n\nconst VIRTUAL_PREFIX = \"virtual:gemi-dict/\";\nconst RESOLVED_PREFIX = \"\\0virtual:gemi-dict/\";\n\n/** Entrypoints that may export `defineDictionary`. */\nconst DICTIONARY_SOURCES = new Set([\"gemi/dictionary\", \"gemi/client\", \"gemi/i18n\"]);\n\n/** Where the rewritten call reads `__gemi_dict__` from.\n *\n * `gemi/dictionary` is a deliberately tiny entrypoint holding only the registry\n * and the handle factory: it is in `GEMI_EXTERNAL_SPECIFIERS`, so under SSR it\n * resolves to the server's own instance and the registry the view router\n * preloads through is the same one the views register into. Pointing this at a\n * bundled copy instead would give the server two registries.\n */\nconst RUNTIME_SOURCE = \"gemi/dictionary\";\n\ninterface Extracted {\n /** The runtime id — a content hash, identical to what `defineDictionary`\n * computes for the same literal, which is what lets the SSR payload seed the\n * client registry. */\n id: string;\n locales: string[];\n translations: DictionaryTranslations;\n}\n\nexport function gemiDictionaryPlugin(): Plugin {\n // virtual key -> extracted dictionary, populated by `transform` and read by\n // `load`. Keyed by the virtual key rather than the runtime id because the key\n // also carries the source module, which is what lets a cold `load` recover.\n //\n // Ordering holds in every mode: a bundler resolves a module's imports only\n // after transforming it, and the virtual specifiers do not exist until this\n // transform writes them. Vite keeps one plugin instance for the life of the\n // dev server (gemi reuses a single Vite instance across `bun --hot` reloads),\n // so the map outlives individual requests.\n const extracted = new Map<string, Extracted>();\n\n return {\n name: \"gemi-plugin-dictionary\",\n // After TS and JSX have been stripped: `parseAstAsync` is a JavaScript\n // parser, so this must not run `pre`.\n enforce: \"post\",\n\n resolveId(id) {\n if (id.startsWith(VIRTUAL_PREFIX)) {\n return `\\0${id}`;\n }\n return null;\n },\n\n async load(id) {\n if (!id.startsWith(RESOLVED_PREFIX)) {\n return null;\n }\n\n const rest = id.slice(RESOLVED_PREFIX.length);\n const slash = rest.lastIndexOf(\"/\");\n const virtualKey = rest.slice(0, slash);\n const locale = rest.slice(slash + 1);\n\n let entry = extracted.get(virtualKey);\n if (!entry) {\n // The parent module was transformed by an earlier process (a warm\n // on-disk cache) so this map never saw it. Force the parent back\n // through the pipeline, which repopulates the entry.\n const sourceId = decodeSourceId(virtualKey);\n if (sourceId) {\n try {\n await this.load({ id: sourceId });\n } catch {\n // Fall through to the error below, which says something useful.\n }\n entry = extracted.get(virtualKey);\n }\n }\n\n if (!entry) {\n this.error(\n `No dictionary registered for \"${virtualKey}\". If this persists, restart the dev server.`,\n );\n return null;\n }\n\n const strings = localeStrings(entry.translations, locale, entry.locales);\n return `export default ${JSON.stringify(strings)};\\n`;\n },\n\n async transform(code, id) {\n // Cheap gate — most modules never mention it.\n if (!code.includes(\"defineDictionary\")) {\n return null;\n }\n if (id.startsWith(\"\\0\") || id.includes(\"/node_modules/\")) {\n return null;\n }\n\n const ast = await parseAstAsync(code);\n\n const localNames = new Set<string>();\n for (const node of ast.body as any[]) {\n if (node.type !== \"ImportDeclaration\") continue;\n if (!DICTIONARY_SOURCES.has(node.source?.value)) continue;\n for (const spec of node.specifiers ?? []) {\n if (\n spec.type === \"ImportSpecifier\" &&\n spec.imported?.name === \"defineDictionary\"\n ) {\n localNames.add(spec.local.name);\n }\n }\n }\n const calls: any[] = [];\n let unresolved = 0;\n walk(ast, (node) => {\n if (node.type !== \"CallExpression\") return;\n const callee = node.callee;\n if (callee?.type === \"Identifier\" && localNames.has(callee.name)) {\n calls.push(node);\n return;\n }\n // A call that *looks* like one and did not resolve to a tracked import:\n // a namespace import (`gemi.defineDictionary(...)`), a re-export through\n // an app-local barrel, or a linked workspace package whose id this\n // skipped. Silently leaving those inline is the fail-open path\n // `readObjectLiteral` refuses to take — every locale would ship to every\n // visitor with no build signal that splitting had stopped applying.\n const name =\n callee?.type === \"Identifier\"\n ? callee.name\n : callee?.type === \"MemberExpression\" && !callee.computed\n ? callee.property?.name\n : undefined;\n if (name === \"defineDictionary\") {\n unresolved++;\n }\n });\n\n // An app is free to have a `defineDictionary` of its own; warning about\n // that would be noise, and noise is how a real warning gets ignored.\n if (unresolved > 0 && declaresOwn(ast, \"defineDictionary\")) {\n unresolved = 0;\n }\n\n if (unresolved > 0) {\n this.warn(\n `${id}: ${unresolved} defineDictionary() call(s) could not be traced to an import of \"gemi/dictionary\", \"gemi/client\" or \"gemi/i18n\", so their locales were left inline and will all ship to the browser. Import defineDictionary directly by name rather than through a namespace import or a local re-export.`,\n );\n }\n\n if (calls.length === 0) {\n return null;\n }\n\n const s = new MagicString(code);\n let rewrote = false;\n\n for (const call of calls) {\n if (call.arguments?.length < 1 || call.arguments?.length > 2) {\n this.error({\n message: `defineDictionary() takes an object literal and an optional options object.`,\n pos: call.start,\n });\n }\n\n const translations = readObjectLiteral(call.arguments[0], (message) =>\n this.error({ message, pos: call.arguments[0]?.start ?? call.start }),\n );\n\n // Read here as well as at runtime, because it decides the fallback\n // order baked into each per-locale chunk. If the two disagreed, a\n // bundled dictionary would fall back differently from the same literal\n // read directly by a controller.\n const sourceLocale = readSourceLocale(call.arguments[1], (message) =>\n this.error({ message, pos: call.arguments[1]?.start ?? call.start }),\n );\n\n const runtimeId = dictionaryId(translations);\n const virtualKey = `${Buffer.from(id).toString(\"base64url\")}/${runtimeId}`;\n const locales = dictionaryLocales(translations, sourceLocale);\n\n if (locales.length === 0) {\n this.error({\n message: `defineDictionary() declares no locales — every key needs at least one \"<locale>\": \"<string>\" entry.`,\n pos: call.start,\n });\n }\n\n // Refused rather than guessed. Without `sourceLocale` the fallback\n // language is whichever locale is seen first while reading the literal,\n // which is stable only while every key carries it. Once one does not,\n // adding a key at the top re-points every other key's fallback — a\n // dictionary-wide change in what language a reader sees, from a diff\n // that added one line, with nothing to notice it. Same reasoning as\n // `readObjectLiteral` below: the alternative to failing here is failing\n // silently in production.\n if (!sourceLocale) {\n const clash = findSourceDisagreement(translations);\n if (clash) {\n this.error({\n message:\n `defineDictionary() cannot infer a source language. Key \"${clash.againstKey}\" lists \"${clash.againstFirst}\" first ` +\n `but \"${clash.key}\" lists \"${clash.first}\" first, so the locale every key falls back to depends on the order ` +\n `they are written in — moving one key would change what language a reader sees. ` +\n `Pass { sourceLocale: \"<locale>\" } as the second argument to pin it.`,\n pos: call.start,\n });\n }\n }\n\n extracted.set(virtualKey, { id: runtimeId, locales, translations });\n\n const loaders = locales\n .map(\n (locale) =>\n `${JSON.stringify(locale)}:()=>import(${JSON.stringify(\n `${VIRTUAL_PREFIX}${virtualKey}/${locale}`,\n )})`,\n )\n .join(\",\");\n\n s.overwrite(\n call.start,\n call.end,\n `__gemi_dict__(${JSON.stringify(runtimeId)},{${loaders}})`,\n );\n rewrote = true;\n }\n\n if (!rewrote) {\n return null;\n }\n\n // Appended, not prepended: an `import` declaration is hoisted wherever it\n // sits, and keeping it off the top leaves every original line where it\n // was for the sourcemap.\n s.append(\n `\\nimport { __gemi_dict__ } from ${JSON.stringify(RUNTIME_SOURCE)};\\n`,\n );\n\n return { code: s.toString(), map: s.generateMap({ hires: true }) };\n },\n };\n}\n\n/**\n * The virtual key carries the source module alongside the content hash, so a\n * cold `load` can find its way back to the module that declared it.\n */\nfunction decodeSourceId(virtualKey: string): string | null {\n const slash = virtualKey.indexOf(\"/\");\n if (slash === -1) return null;\n try {\n return Buffer.from(virtualKey.slice(0, slash), \"base64url\").toString(\n \"utf8\",\n );\n } catch {\n return null;\n }\n}\n\n/**\n * A dictionary has to be readable at build time, so the literal must be fully\n * static. Anything else fails the build with the offending key named — a silent\n * fallback to \"leave this one un-split\" would ship every locale to the browser\n * and nobody would notice.\n */\nfunction readObjectLiteral(\n node: any,\n fail: (message: string) => never,\n): DictionaryTranslations {\n if (node?.type !== \"ObjectExpression\") {\n fail(\n `defineDictionary() needs an inline object literal — it is read at build time, so a variable or spread cannot be resolved.`,\n );\n }\n\n const out: DictionaryTranslations = {};\n for (const prop of node.properties) {\n const key = propertyName(prop);\n if (key === null) {\n fail(\n `defineDictionary() keys must be plain string keys — computed keys and spreads cannot be read at build time.`,\n );\n }\n if (prop.value?.type !== \"ObjectExpression\") {\n fail(\n `defineDictionary() entry \"${key}\" must be an object of \"<locale>\": \"<string>\" pairs.`,\n );\n }\n\n const byLocale: Record<string, string> = {};\n for (const localeProp of prop.value.properties) {\n const locale = propertyName(localeProp);\n if (locale === null) {\n fail(\n `defineDictionary() entry \"${key}\" has a locale key that cannot be read at build time.`,\n );\n }\n const value = localeProp.value;\n if (value?.type !== \"Literal\" || typeof value.value !== \"string\") {\n fail(\n `defineDictionary() entry \"${key}\" locale \"${locale}\" must be a string literal. Use {{param}} interpolation instead of a template literal or a function.`,\n );\n }\n byLocale[locale] = value.value;\n }\n out[key] = byLocale;\n }\n return out;\n}\n\n/** The `sourceLocale` from `defineDictionary`'s optional options argument. */\nfunction readSourceLocale(\n node: any,\n fail: (message: string) => never,\n): string | undefined {\n if (node === undefined) {\n return undefined;\n }\n if (node.type !== \"ObjectExpression\") {\n fail(\n `defineDictionary() options must be an inline object literal — it is read at build time.`,\n );\n }\n for (const prop of node.properties) {\n if (propertyName(prop) !== \"sourceLocale\") continue;\n const value = prop.value;\n if (value?.type !== \"Literal\" || typeof value.value !== \"string\") {\n fail(`defineDictionary() sourceLocale must be a string literal.`);\n }\n return value.value;\n }\n return undefined;\n}\n\n/** Whether the module declares `name` itself, rather than importing it. */\nfunction declaresOwn(ast: any, name: string): boolean {\n let found = false;\n walk(ast, (node) => {\n if (found) return;\n if (node.type === \"FunctionDeclaration\" && node.id?.name === name) {\n found = true;\n }\n if (node.type === \"VariableDeclarator\" && node.id?.name === name) {\n found = true;\n }\n });\n return found;\n}\n\nfunction propertyName(prop: any): string | null {\n if (prop?.type !== \"Property\" || prop.computed) return null;\n if (prop.key?.type === \"Identifier\") return prop.key.name;\n if (prop.key?.type === \"Literal\" && typeof prop.key.value === \"string\") {\n return prop.key.value;\n }\n return null;\n}\n\n/** Minimal ESTree walk — enough to find call expressions, no extra dependency. */\nfunction walk(node: any, visit: (node: any) => void) {\n if (node === null || typeof node !== \"object\") return;\n if (Array.isArray(node)) {\n for (const child of node) walk(child, visit);\n return;\n }\n if (typeof node.type === \"string\") {\n visit(node);\n }\n for (const key of Object.keys(node)) {\n if (key === \"parent\") continue;\n const value = (node as any)[key];\n if (value && typeof value === \"object\") {\n walk(value, visit);\n }\n }\n}\n",
9
9
  "import { mkdir, writeFile } from \"node:fs/promises\";\nimport { dirname, join } from \"node:path\";\nimport type { Plugin, ResolvedConfig } from \"vite\";\nimport { ASSET_BASE_RECORD, DEFAULT_ASSET_BASE, normalizeAssetBase } from \"../config/assetBase\";\n\n/**\n * Applies the app's asset base to the build and records the base the build\n * actually used, for `httpProd` to link the document's chunks with.\n *\n * What is recorded is Vite's resolved `base`, not `assetBase`: a `vite.base`\n * set in `gemi.config.ts` reaches Vite too, and the bundle is built with\n * whichever won the config merge. Recording the input instead would let the\n * document and the bundle disagree again the moment both are set.\n *\n * Build only. In dev the chunks come from Vite's dev server on the same\n * origin, and a CDN base there would point the page at files nobody uploaded.\n */\nexport function gemiAssetBasePlugin(assetBase: string | undefined): Plugin {\n let resolved: ResolvedConfig | undefined;\n\n return {\n name: \"gemi-plugin-asset-base\",\n config: (_config, env) =>\n env.command === \"build\" && assetBase ? { base: assetBase } : undefined,\n configResolved(config) {\n resolved = config;\n },\n async writeBundle(options) {\n // One record, from the client build: it is the bundle the browser runs.\n // The SSR build is handed the same base by the hook above, so an asset\n // URL a view renders on the server matches the one it hydrates with.\n if (!resolved || resolved.command !== \"build\" || resolved.build.ssr || !options.dir) {\n return;\n }\n const file = join(options.dir, ASSET_BASE_RECORD);\n await mkdir(dirname(file), { recursive: true });\n await writeFile(file, `${JSON.stringify({ assetBase: documentBase(resolved.base) })}\\n`);\n },\n };\n}\n\n/**\n * The prefix the document should use for a bundle built with `base`.\n *\n * A relative Vite base (`./`, `\"\"`) only reaches Vite through a raw\n * `vite.base`, and it makes the bundle resolve every chunk against the module\n * importing it — i.e. against wherever the document loaded the entry from. So\n * the document keeps its root-relative URLs and the bundle follows it, which is\n * what such an app has been getting all along.\n */\nfunction documentBase(base: string): string {\n return base.startsWith(\"/\") || /^[a-z][a-z\\d+.-]*:\\/\\//i.test(base)\n ? normalizeAssetBase(base)\n : DEFAULT_ASSET_BASE;\n}\n",
10
10
  "import type { PluginOption } from \"vite\";\nimport { loadGemiConfig } from \"../config/load\";\nimport { isGemiExternal } from \"../internal/gemiExternals\";\nimport { gemiDictionaryPlugin } from \"./dictionaryPlugin\";\nimport { gemiAssetBasePlugin } from \"./assetBasePlugin\";\nimport { resolveAssetBase } from \"../config/assetBase\";\n\n// Async so it can load `gemi.config.ts` before returning the plugin list. Both\n// consumers run under Bun (the CLI's `build()` and dev's `createServer`, spawned\n// via `bun`), so the config's TypeScript imports directly. Vite accepts a\n// `Promise<PluginOption[]>` as an entry in its `plugins` array, so gemi passes\n// `plugins: [gemi()]` itself — the app's own Vite plugins (e.g. React) come from\n// `gemi.config.ts` and are appended below, so there is no `vite.config.mjs`.\nconst gemi = async (): Promise<PluginOption[]> => {\n const userConfig = await loadGemiConfig(process.cwd());\n const { plugins: userVitePlugins = [], ...userViteConfig } =\n userConfig.vite ?? {};\n // Resolved here, before any build starts, so a malformed base fails the\n // build instead of shipping a bundle the document cannot link.\n const assetBase = resolveAssetBase(userConfig.assetBase);\n\n return [\n {\n name: \"gemi-plugin-config\",\n enforce: \"pre\",\n config: async (_config, env) => {\n const appPath = `${process.cwd()}/app`;\n return {\n assetsInclude: [\"/public\"],\n build: {\n manifest: true,\n ssrEmitAssets: true,\n // Emit source maps for both the client and SSR view builds so\n // browser devtools and server stack traces map back to app source.\n sourcemap: true,\n rollupOptions: {\n input: Array.from(JSON.parse(process.env.GEMI_INPUT ?? \"[]\")),\n // Each view is a build entry, but the app never imports them\n // statically — the client router pulls them in via `import.meta.glob`\n // (a runtime dynamic import). Rolldown's default entry-signature\n // handling therefore sees a view's `export default` as unused and\n // tree-shakes it. For a plain view the component is hoisted into the\n // shared bundle so it still renders, but a view with a module-scope\n // `lazy(() => import(...))` keeps its own chunk alive as a side\n // effect while the \"unused\" default export is dropped — leaving a\n // hollow chunk whose default is `undefined`. Hydration then renders\n // `<undefined/>` → React #306 and the whole page unmounts to blank.\n // `\"strict\"` forces every entry to preserve its exact exports (a\n // facade chunk is emitted if needed), so every view keeps its\n // default regardless of how the router loads it.\n preserveEntrySignatures: \"strict\",\n // For the SSR build, externalize `gemi` (a linked package) and all\n // its subpaths. Otherwise the bundler compiles its own copy of\n // gemi's module-level singletons (`RouteStateContext`,\n // `I18nContext`, the `useLocale`/`useRouteData` hooks, ...) into a\n // shared chunk — a *different* instance than the running server's\n // `Root` provider — so `useRouteData()` reads the empty default and\n // SSR crashes on `i18n.currentLocale`. Externalizing makes the\n // built view chunks `import ... from \"gemi/*\"` at runtime, resolving\n // to the one instance shared with the renderer. (Vite 8's\n // `ssr.external` does not externalize for the build, so this is done\n // at the rollup level.) Mirrors `server/httpDev.ts`'s dev config\n // via the shared `internal/gemiExternals` source of truth.\n ...(env.isSsrBuild ? { external: isGemiExternal } : {}),\n },\n },\n resolve: {\n alias: {\n \"@/app\": appPath,\n },\n },\n };\n },\n },\n // The app's `gemi.config.ts` `vite` config (minus `plugins`, which are\n // appended below) as its own `config` hook. Vite deep-merges every plugin's\n // `config` result, so the app config layers cleanly on top of gemi's base\n // without a manual merge (and without pulling `vite`'s `mergeConfig` into\n // this bundle).\n {\n name: \"gemi-plugin-user-config\",\n config: () => userViteConfig,\n },\n // After the app's `vite` config, so an explicit `assetBase` (or\n // `GEMI_ASSET_BASE`) wins over a `vite.base` set there.\n gemiAssetBasePlugin(assetBase),\n {\n name: \"gemi-plugin-hot-reload\",\n handleHotUpdate({ server, modules }) {\n if (modules?.[0]?.id?.includes(\"/app/http/\")) {\n // server.ws.send({\n // type: \"custom\",\n // event: \"http-reload\",\n // data: {\n // id: modules[0].id,\n // },\n // });\n\n return [];\n }\n },\n },\n // App-provided Vite plugins run after gemi's own.\n ...userVitePlugins,\n // Last, and `enforce: \"post\"` on top of that: it parses JavaScript, so TS\n // and JSX have to be gone by the time it sees a module.\n gemiDictionaryPlugin(),\n ];\n};\n\nexport default gemi;\n"
11
11
  ],
12
- "mappings": ";uLAqBO,FAAM,HAA2B,CACtC,OACA,cACA,YACA,WACA,eACA,aACA,cACA,gBACA,oBACA,YAIA,iBACF,EAIO,SAAS,CAAc,CAAC,EAAqB,CAClD,OAAO,IAAO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Q,IAAM,CAChB,EAGA,EAAoB,CAAS,EAC7B,CACE,KAAM,yBACN,eAAe,EAAG,SAAQ,WAAW,CACnC,GAAI,IAAU,IAAI,IAAI,SAAS,YAAY,EASzC,MAAO,CAAC,EAGd,EAEA,GAAG,EAGH,EAAqB,CACvB,GAGa",
13
+ "debugId": "D1FFF96A50B681DF64756E2164756E21",
14
14
  "names": []
15
15
  }
@@ -1,8 +1,8 @@
1
1
  // @bun
2
- import{L as B,N as p,T as _}from"./chunk-9146818v.js";import{U as v}from"./chunk-v8s1dmc2.js";import{V as D}from"./chunk-aecx542w.js";import"./chunk-dk0kdrkm.js";import"./chunk-zbpgt20r.js";import"./chunk-d07y2ddw.js";import{$ as d}from"./chunk-egw90hq5.js";import"./chunk-6eprvf4s.js";import{Hg as n}from"./chunk-v0j7spj5.js";var x=n(D(),1),E=n(B(),1),i=n(d(),1);import M from"fs/promises";var C=n(d(),1);var A="169.254.170.2",O="169.254.170.23",b="[fd00:ec2::23]",S=(e,a)=>{if(e.protocol==="https:")return;if(e.hostname===A||e.hostname===O||e.hostname===b)return;if(e.hostname.includes("[")){if(e.hostname==="[::1]"||e.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(e.hostname==="localhost")return;let c=e.hostname.split("."),r=(t)=>{let s=parseInt(t,10);return 0<=s&&s<=255};if(c[0]==="127"&&r(c[1])&&r(c[2])&&r(c[3])&&c.length===4)return}throw new C.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
2
+ import{L as B,N as p,T as _}from"./chunk-495qwteq.js";import{U as v}from"./chunk-enf9mdac.js";import{V as D}from"./chunk-w099t7zj.js";import"./chunk-yk8s5egf.js";import"./chunk-nvj1z2rs.js";import"./chunk-rqh2wdhb.js";import{$ as d}from"./chunk-cg4k40zy.js";import"./chunk-z409rk5j.js";import{Bg as n}from"./chunk-zfch4da5.js";var x=n(D(),1),E=n(B(),1),i=n(d(),1);import M from"fs/promises";var C=n(d(),1);var A="169.254.170.2",O="169.254.170.23",b="[fd00:ec2::23]",S=(e,a)=>{if(e.protocol==="https:")return;if(e.hostname===A||e.hostname===O||e.hostname===b)return;if(e.hostname.includes("[")){if(e.hostname==="[::1]"||e.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(e.hostname==="localhost")return;let c=e.hostname.split("."),r=(t)=>{let s=parseInt(t,10);return 0<=s&&s<=255};if(c[0]==="127"&&r(c[1])&&r(c[2])&&r(c[3])&&c.length===4)return}throw new C.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
3
3
  - loopback CIDR 127.0.0.0/8 or [::1/128]
4
4
  - ECS container host 169.254.170.2
5
5
  - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:a})};var o=n(d(),1),g=n(v(),1),w=n(_(),1),I=n(p(),1);function P(e){return new g.HttpRequest({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((a,[c,r])=>{return a[c]=r,a},{}),fragment:e.hash})}async function K(e,a){let r=await I.sdkStreamMixin(e.body).transformToString();if(e.statusCode===200){let t=JSON.parse(r);if(typeof t.AccessKeyId!=="string"||typeof t.SecretAccessKey!=="string"||typeof t.Token!=="string"||typeof t.Expiration!=="string")throw new o.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:a});return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:w.parseRfc3339DateTime(t.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let t={};try{t=JSON.parse(r)}catch(s){}throw Object.assign(new o.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:a}),{Code:t.Code,Message:t.Message})}throw new o.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:a})}var T=(e,a,c)=>{return async()=>{for(let r=0;r<a;++r)try{return await e()}catch(t){await new Promise((s)=>setTimeout(s,c))}return await e()}};var N="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",j="http://169.254.170.2",H="AWS_CONTAINER_CREDENTIALS_FULL_URI",J="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",$="AWS_CONTAINER_AUTHORIZATION_TOKEN",G=(e={})=>{e.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let a,c=e.awsContainerCredentialsRelativeUri??process.env[N],r=e.awsContainerCredentialsFullUri??process.env[H],t=e.awsContainerAuthorizationToken??process.env[$],s=e.awsContainerAuthorizationTokenFile??process.env[J],m=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?.warn?console.warn:e.logger.warn.bind(e.logger);if(c&&r)m("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),m("awsContainerCredentialsFullUri will take precedence.");if(t&&s)m("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),m("awsContainerAuthorizationToken will take precedence.");if(r)a=r;else if(c)a=`${j}${c}`;else throw new i.CredentialsProviderError(`No HTTP credential provider host provided.
6
6
  Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:e.logger});let y=new URL(a);S(y,e.logger);let R=E.NodeHttpHandler.create({requestTimeout:e.timeout??1000,connectionTimeout:e.timeout??1000});return T(async()=>{let f=P(y);if(t)f.headers.Authorization=t;else if(s)f.headers.Authorization=(await M.readFile(s)).toString();try{let h=await R.handle(f);return K(h.response).then((u)=>x.setCredentialFeature(u,"CREDENTIALS_HTTP","z"))}catch(h){throw new i.CredentialsProviderError(String(h),{logger:e.logger})}},e.maxRetries??3,e.timeout??1000)};export{G as fromHttp};
7
7
 
8
- //# debugId=E3FCDB08ADD3A2DF64756E2164756E21
8
+ //# debugId=02D53A4B41F063D964756E2164756E21
@@ -8,6 +8,6 @@
8
8
  "export const retryWrapper = (toRetry, maxRetries, delayMs) => {\n return async () => {\n for (let i = 0; i < maxRetries; ++i) {\n try {\n return await toRetry();\n }\n catch (e) {\n await new Promise((resolve) => setTimeout(resolve, delayMs));\n }\n }\n return await toRetry();\n };\n};\n"
9
9
  ],
10
10
  "mappings": ";uXAAA,SACA,KACA,KACA,qBCHA,SAGA,FAAM,JAAqB,UACrB,EAA0B,iBAC1B,EAA0B,iBACnB,EAAW,CAAC,EAAK,IAAW,CACrC,GAAI,EAAI,WAAa,SACjB,OAEJ,GAAI,EAAI,WAAa,GACjB,EAAI,WAAa,GACjB,EAAI,WAAa,EACjB,OAEJ,GAAI,EAAI,SAAS,SAAS,GAAG,GACzB,GAAI,EAAI,WAAa,SAAW,EAAI,WAAa,4CAC7C,OAGH,KACD,GAAI,EAAI,WAAa,YACjB,OAEJ,IAAM,EAAe,EAAI,SAAS,MAAM,GAAG,EACrC,EAAU,CAAC,IAAc,CAC3B,IAAM,EAAM,SAAS,EAAW,EAAE,EAClC,MAAO,IAAK,GAAO,GAAO,KAE9B,GAAI,EAAa,KAAO,OACpB,EAAQ,EAAa,EAAE,GACvB,EAAQ,EAAa,EAAE,GACvB,EAAQ,EAAa,EAAE,GACvB,EAAa,SAAW,EACxB,OAGR,MAAM,IAAI,2BAAyB;AAAA;AAAA;AAAA,yDAGmB,CAAE,QAAO,CAAC,GCxCpE,eACA,WACA,WACA,WACO,SAAS,CAAgB,CAAC,EAAK,CAClC,OAAO,IAAI,cAAY,CACnB,SAAU,EAAI,SACd,SAAU,EAAI,SACd,KAAM,OAAO,EAAI,IAAI,EACrB,KAAM,EAAI,SACV,MAAO,MAAM,KAAK,EAAI,aAAa,QAAQ,CAAC,EAAE,OAAO,CAAC,GAAM,EAAG,KAAO,CAElE,OADA,EAAI,GAAK,EACF,GACR,CAAC,CAAC,EACL,SAAU,EAAI,IAClB,CAAC,EAEL,eAAsB,CAAc,CAAC,EAAU,EAAQ,CAEnD,IAAM,EAAM,MADG,iBAAe,EAAS,IAAI,EAClB,kBAAkB,EAC3C,GAAI,EAAS,aA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