gemi 0.196.2 → 0.198.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 (254) hide show
  1. package/dist/ai/index.js +2 -2
  2. package/dist/ai/index.js.map +1 -1
  3. package/dist/app/index.js +1 -1
  4. package/dist/bun/plugin.js +1 -1
  5. package/dist/bun/preload.js +1 -1
  6. package/dist/{chunk-zzdvdr5a.js → chunk-0kfrwbhg.js} +4 -4
  7. package/dist/{chunk-zzdvdr5a.js.map → chunk-0kfrwbhg.js.map} +1 -1
  8. package/dist/{chunk-5bfrr8x5.js → chunk-1yq2b55s.js} +2 -2
  9. package/dist/{chunk-5bfrr8x5.js.map → chunk-1yq2b55s.js.map} +1 -1
  10. package/dist/{chunk-pmt2jt9b.js → chunk-206n0q1f.js} +2 -2
  11. package/dist/{chunk-pmt2jt9b.js.map → chunk-206n0q1f.js.map} +1 -1
  12. package/dist/{chunk-rp6ss7v3.js → chunk-2cyd3h4h.js} +2 -2
  13. package/dist/{chunk-rp6ss7v3.js.map → chunk-2cyd3h4h.js.map} +1 -1
  14. package/dist/{chunk-9dxp7t3n.js → chunk-2kkv8515.js} +2 -2
  15. package/dist/{chunk-9dxp7t3n.js.map → chunk-2kkv8515.js.map} +1 -1
  16. package/dist/{chunk-a02bmp0q.js → chunk-42b6zzg2.js} +2 -2
  17. package/dist/{chunk-a02bmp0q.js.map → chunk-42b6zzg2.js.map} +1 -1
  18. package/dist/{chunk-9hjxpdjt.js → chunk-4reyxar1.js} +1 -1
  19. package/dist/{chunk-3fcd8a47.js → chunk-503ce1t9.js} +2 -2
  20. package/dist/{chunk-3fcd8a47.js.map → chunk-503ce1t9.js.map} +1 -1
  21. package/dist/{chunk-8fdk8bfd.js → chunk-50nex9wg.js} +3 -3
  22. package/dist/{chunk-8fdk8bfd.js.map → chunk-50nex9wg.js.map} +1 -1
  23. package/dist/{chunk-08m9egzx.js → chunk-5zjw41cv.js} +2 -2
  24. package/dist/{chunk-08m9egzx.js.map → chunk-5zjw41cv.js.map} +1 -1
  25. package/dist/{chunk-ejktrxp2.js → chunk-61mcmhjp.js} +1 -1
  26. package/dist/{chunk-wvq3c25z.js → chunk-64hxqsqx.js} +3 -3
  27. package/dist/{chunk-wvq3c25z.js.map → chunk-64hxqsqx.js.map} +1 -1
  28. package/dist/{chunk-trqt1kkd.js → chunk-6brwvyrz.js} +2 -2
  29. package/dist/{chunk-trqt1kkd.js.map → chunk-6brwvyrz.js.map} +1 -1
  30. package/dist/{chunk-28fz99pn.js → chunk-6ftdsrkq.js} +2 -2
  31. package/dist/{chunk-28fz99pn.js.map → chunk-6ftdsrkq.js.map} +1 -1
  32. package/dist/{chunk-paawtkza.js → chunk-6nr97atn.js} +2 -2
  33. package/dist/{chunk-paawtkza.js.map → chunk-6nr97atn.js.map} +1 -1
  34. package/dist/{chunk-43599z6g.js → chunk-6qhhgm73.js} +2 -2
  35. package/dist/{chunk-43599z6g.js.map → chunk-6qhhgm73.js.map} +1 -1
  36. package/dist/{chunk-p2vasd1z.js → chunk-6xa5yqrw.js} +2 -2
  37. package/dist/{chunk-p2vasd1z.js.map → chunk-6xa5yqrw.js.map} +1 -1
  38. package/dist/{chunk-6efjnt6r.js → chunk-81m95se9.js} +2 -2
  39. package/dist/{chunk-6efjnt6r.js.map → chunk-81m95se9.js.map} +1 -1
  40. package/dist/{chunk-9gpjn44n.js → chunk-8267ggmy.js} +2 -2
  41. package/dist/{chunk-9gpjn44n.js.map → chunk-8267ggmy.js.map} +1 -1
  42. package/dist/{chunk-pg5hm00s.js → chunk-84stff4t.js} +2 -2
  43. package/dist/{chunk-pg5hm00s.js.map → chunk-84stff4t.js.map} +1 -1
  44. package/dist/{chunk-6m9qrs6d.js → chunk-8fzcs8dv.js} +2 -2
  45. package/dist/{chunk-6m9qrs6d.js.map → chunk-8fzcs8dv.js.map} +1 -1
  46. package/dist/{chunk-03q4j7wa.js → chunk-93j09zw7.js} +1 -1
  47. package/dist/{chunk-m0dfgmbj.js → chunk-97g2qc7j.js} +1 -1
  48. package/dist/{chunk-m08p5mre.js → chunk-agc5bqdt.js} +2 -2
  49. package/dist/{chunk-m08p5mre.js.map → chunk-agc5bqdt.js.map} +1 -1
  50. package/dist/{chunk-aycfrzh1.js → chunk-ahss6dcp.js} +2 -2
  51. package/dist/{chunk-aycfrzh1.js.map → chunk-ahss6dcp.js.map} +1 -1
  52. package/dist/{chunk-dfmxvp8p.js → chunk-b2n74m40.js} +2 -2
  53. package/dist/{chunk-dfmxvp8p.js.map → chunk-b2n74m40.js.map} +1 -1
  54. package/dist/{chunk-beckfwe9.js → chunk-bcfcwbp4.js} +2 -2
  55. package/dist/{chunk-beckfwe9.js.map → chunk-bcfcwbp4.js.map} +1 -1
  56. package/dist/{chunk-07zfrfbg.js → chunk-bdbg2dt6.js} +2 -2
  57. package/dist/{chunk-07zfrfbg.js.map → chunk-bdbg2dt6.js.map} +1 -1
  58. package/dist/{chunk-p4eger3g.js → chunk-bxxd1awv.js} +3 -3
  59. package/dist/{chunk-p4eger3g.js.map → chunk-bxxd1awv.js.map} +1 -1
  60. package/dist/{chunk-j49vh5bs.js → chunk-by0afyps.js} +2 -2
  61. package/dist/{chunk-j49vh5bs.js.map → chunk-by0afyps.js.map} +1 -1
  62. package/dist/chunk-ccpp45dm.js +5 -0
  63. package/dist/{chunk-ggbf1web.js.map → chunk-ccpp45dm.js.map} +1 -1
  64. package/dist/{chunk-fhfkcmkc.js → chunk-ct1vh28z.js} +2 -2
  65. package/dist/{chunk-fhfkcmkc.js.map → chunk-ct1vh28z.js.map} +1 -1
  66. package/dist/chunk-dqgn4wgf.js +15 -0
  67. package/dist/{chunk-nphb176s.js.map → chunk-dqgn4wgf.js.map} +7 -5
  68. package/dist/{chunk-dn20caf2.js → chunk-drb6gpgv.js} +2 -2
  69. package/dist/{chunk-dn20caf2.js.map → chunk-drb6gpgv.js.map} +1 -1
  70. package/dist/{chunk-hmn6pa78.js → chunk-drqv10sv.js} +2 -2
  71. package/dist/{chunk-hmn6pa78.js.map → chunk-drqv10sv.js.map} +1 -1
  72. package/dist/{chunk-qjwv9xfq.js → chunk-e603nm1c.js} +2 -2
  73. package/dist/{chunk-qjwv9xfq.js.map → chunk-e603nm1c.js.map} +1 -1
  74. package/dist/{chunk-mgdrf89p.js → chunk-e7bb26fb.js} +2 -2
  75. package/dist/{chunk-mgdrf89p.js.map → chunk-e7bb26fb.js.map} +1 -1
  76. package/dist/{chunk-j56zk5a0.js → chunk-ewknbs3b.js} +3 -3
  77. package/dist/{chunk-j56zk5a0.js.map → chunk-ewknbs3b.js.map} +1 -1
  78. package/dist/chunk-ff22412e.js +117 -0
  79. package/dist/{chunk-5w3kcn4a.js.map → chunk-ff22412e.js.map} +15 -15
  80. package/dist/{chunk-zcqz5xn9.js → chunk-grwze86x.js} +2 -2
  81. package/dist/{chunk-zcqz5xn9.js.map → chunk-grwze86x.js.map} +1 -1
  82. package/dist/{chunk-wgqppqcn.js → chunk-gx2fhmnx.js} +3 -3
  83. package/dist/{chunk-wgqppqcn.js.map → chunk-gx2fhmnx.js.map} +1 -1
  84. package/dist/{chunk-1x23scpn.js → chunk-ha4er085.js} +2 -2
  85. package/dist/{chunk-1x23scpn.js.map → chunk-ha4er085.js.map} +1 -1
  86. package/dist/{chunk-ermvtpy9.js → chunk-jkf5kjaz.js} +3 -3
  87. package/dist/{chunk-ermvtpy9.js.map → chunk-jkf5kjaz.js.map} +1 -1
  88. package/dist/{chunk-g02gqhq0.js → chunk-kz15j07h.js} +3 -3
  89. package/dist/{chunk-g02gqhq0.js.map → chunk-kz15j07h.js.map} +1 -1
  90. package/dist/{chunk-gmcttf0f.js → chunk-mddazdpt.js} +2 -2
  91. package/dist/{chunk-gmcttf0f.js.map → chunk-mddazdpt.js.map} +1 -1
  92. package/dist/{chunk-652a9mr0.js → chunk-mzqhn72h.js} +2 -2
  93. package/dist/{chunk-652a9mr0.js.map → chunk-mzqhn72h.js.map} +1 -1
  94. package/dist/{chunk-2485bwzs.js → chunk-n3p16jpb.js} +3 -3
  95. package/dist/{chunk-2485bwzs.js.map → chunk-n3p16jpb.js.map} +1 -1
  96. package/dist/{chunk-tj7z65ba.js → chunk-n9k29mrs.js} +2 -2
  97. package/dist/{chunk-tj7z65ba.js.map → chunk-n9k29mrs.js.map} +1 -1
  98. package/dist/{chunk-f6css3z6.js → chunk-nnaz5djg.js} +2 -2
  99. package/dist/{chunk-f6css3z6.js.map → chunk-nnaz5djg.js.map} +1 -1
  100. package/dist/{chunk-7zf8rnsb.js → chunk-pab6ye4d.js} +2 -2
  101. package/dist/{chunk-7zf8rnsb.js.map → chunk-pab6ye4d.js.map} +1 -1
  102. package/dist/{chunk-0xssrbar.js → chunk-q1zj3a0e.js} +2 -2
  103. package/dist/{chunk-0xssrbar.js.map → chunk-q1zj3a0e.js.map} +1 -1
  104. package/dist/{chunk-g7h28xcr.js → chunk-rcnpjwp4.js} +2 -2
  105. package/dist/{chunk-g7h28xcr.js.map → chunk-rcnpjwp4.js.map} +1 -1
  106. package/dist/{chunk-b6zqjyn1.js → chunk-rh84xq17.js} +2 -2
  107. package/dist/{chunk-b6zqjyn1.js.map → chunk-rh84xq17.js.map} +1 -1
  108. package/dist/{chunk-qg9pyxg7.js → chunk-s9z0xxth.js} +2 -2
  109. package/dist/{chunk-qg9pyxg7.js.map → chunk-s9z0xxth.js.map} +1 -1
  110. package/dist/{chunk-1705yamg.js → chunk-sg78cmd1.js} +2 -2
  111. package/dist/{chunk-1705yamg.js.map → chunk-sg78cmd1.js.map} +1 -1
  112. package/dist/{chunk-ftvc1a0k.js → chunk-t0qs2q9j.js} +2 -2
  113. package/dist/{chunk-ftvc1a0k.js.map → chunk-t0qs2q9j.js.map} +1 -1
  114. package/dist/{chunk-8e17k7ht.js → chunk-t4z6rkvw.js} +3 -3
  115. package/dist/{chunk-8e17k7ht.js.map → chunk-t4z6rkvw.js.map} +3 -3
  116. package/dist/{chunk-28macaes.js → chunk-tjsv6e3a.js} +2 -2
  117. package/dist/{chunk-28macaes.js.map → chunk-tjsv6e3a.js.map} +1 -1
  118. package/dist/{chunk-hswnqn33.js → chunk-txbram9h.js} +2 -2
  119. package/dist/{chunk-hswnqn33.js.map → chunk-txbram9h.js.map} +1 -1
  120. package/dist/{chunk-2yzv5v3m.js → chunk-tyvc46ns.js} +2 -2
  121. package/dist/{chunk-2yzv5v3m.js.map → chunk-tyvc46ns.js.map} +1 -1
  122. package/dist/{chunk-pqr01waj.js → chunk-v2pt8h42.js} +2 -2
  123. package/dist/{chunk-pqr01waj.js.map → chunk-v2pt8h42.js.map} +1 -1
  124. package/dist/{chunk-xhkga697.js → chunk-vn84xe2p.js} +2 -2
  125. package/dist/{chunk-xhkga697.js.map → chunk-vn84xe2p.js.map} +1 -1
  126. package/dist/{chunk-228w21t6.js → chunk-vpqzzrkn.js} +2 -2
  127. package/dist/{chunk-228w21t6.js.map → chunk-vpqzzrkn.js.map} +1 -1
  128. package/dist/{chunk-bc7hr358.js → chunk-w09wtxr6.js} +3 -3
  129. package/dist/{chunk-bc7hr358.js.map → chunk-w09wtxr6.js.map} +1 -1
  130. package/dist/{chunk-qrn6ch3t.js → chunk-w84ke0bp.js} +2 -2
  131. package/dist/{chunk-qrn6ch3t.js.map → chunk-w84ke0bp.js.map} +1 -1
  132. package/dist/{chunk-nk7nmtng.js → chunk-wxb2pqqz.js} +2 -2
  133. package/dist/{chunk-nk7nmtng.js.map → chunk-wxb2pqqz.js.map} +1 -1
  134. package/dist/{chunk-q1aaqhnw.js → chunk-xb0k1br9.js} +2 -2
  135. package/dist/{chunk-q1aaqhnw.js.map → chunk-xb0k1br9.js.map} +1 -1
  136. package/dist/{chunk-n914rs58.js → chunk-xhc16pv1.js} +3 -3
  137. package/dist/{chunk-n914rs58.js.map → chunk-xhc16pv1.js.map} +1 -1
  138. package/dist/{chunk-reaty2mv.js → chunk-xwcv0b4b.js} +3 -3
  139. package/dist/{chunk-reaty2mv.js.map → chunk-xwcv0b4b.js.map} +1 -1
  140. package/dist/{chunk-sqqby94y.js → chunk-xxep62yg.js} +1 -1
  141. package/dist/{chunk-7t60d5qy.js → chunk-xzt117g6.js} +1 -1
  142. package/dist/{chunk-2g2fsr71.js → chunk-y167pt0p.js} +2 -2
  143. package/dist/{chunk-2g2fsr71.js.map → chunk-y167pt0p.js.map} +1 -1
  144. package/dist/{chunk-1ghbn9jg.js → chunk-yxge0cem.js} +2 -2
  145. package/dist/{chunk-1ghbn9jg.js.map → chunk-yxge0cem.js.map} +1 -1
  146. package/dist/{chunk-vgxkt9vd.js → chunk-zpqcawmq.js} +2 -2
  147. package/dist/{chunk-vgxkt9vd.js.map → chunk-zpqcawmq.js.map} +1 -1
  148. package/dist/{chunk-39w89wss.js → chunk-zwbpcch0.js} +2 -2
  149. package/dist/{chunk-39w89wss.js.map → chunk-zwbpcch0.js.map} +1 -1
  150. package/dist/chunks/{RealtimeClient-BVQeh_yg.js → RealtimeClient-B7zh4okq.js} +2 -2
  151. package/dist/chunks/{RealtimeClient-BVQeh_yg.js.map → RealtimeClient-B7zh4okq.js.map} +1 -1
  152. package/dist/chunks/{ThemeProvider-G2g5Z1ZS.js → ThemeProvider-D33bPpf8.js} +51 -4
  153. package/dist/chunks/ThemeProvider-D33bPpf8.js.map +1 -0
  154. package/dist/chunks/{fetchFileRequest-Bzva9J59.js → fetchFileRequest-Cp0QjioM.js} +2 -2
  155. package/dist/chunks/{fetchFileRequest-Bzva9J59.js.map → fetchFileRequest-Cp0QjioM.js.map} +1 -1
  156. package/dist/chunks/{live-C2Sck5PO.js → live-D08wnrrZ.js} +3 -3
  157. package/dist/chunks/{live-C2Sck5PO.js.map → live-D08wnrrZ.js.map} +1 -1
  158. package/dist/chunks/{mutationExtras-HC7AC6zn.js → mutationExtras-BbDboF8F.js} +2 -2
  159. package/dist/chunks/{mutationExtras-HC7AC6zn.js.map → mutationExtras-BbDboF8F.js.map} +1 -1
  160. package/dist/chunks/{subscriptionStream-CaTWWJwt.js → subscriptionStream-CRj9aV4K.js} +2 -2
  161. package/dist/chunks/{subscriptionStream-CaTWWJwt.js.map → subscriptionStream-CRj9aV4K.js.map} +1 -1
  162. package/dist/client/ClientRouterContext.d.ts.map +1 -1
  163. package/dist/client/Head.d.ts.map +1 -1
  164. package/dist/client/createRoot.d.ts.map +1 -1
  165. package/dist/client/cspNonce.d.ts +33 -0
  166. package/dist/client/cspNonce.d.ts.map +1 -0
  167. package/dist/client/index.d.ts +1 -0
  168. package/dist/client/index.d.ts.map +1 -1
  169. package/dist/client/index.js +17 -10
  170. package/dist/client/index.js.map +1 -1
  171. package/dist/config/index.js +1 -1
  172. package/dist/console/run.js +2 -2
  173. package/dist/console/run.js.map +1 -1
  174. package/dist/container/index.js +2 -2
  175. package/dist/container/index.js.map +1 -1
  176. package/dist/database/index.js +2 -2
  177. package/dist/database/index.js.map +1 -1
  178. package/dist/email/index.js +2 -2
  179. package/dist/email/index.js.map +1 -1
  180. package/dist/facades/index.js +2 -2
  181. package/dist/facades/index.js.map +1 -1
  182. package/dist/foundation/index.js +2 -2
  183. package/dist/foundation/index.js.map +1 -1
  184. package/dist/http/ApiRouter.d.ts +7 -0
  185. package/dist/http/ApiRouter.d.ts.map +1 -1
  186. package/dist/http/BodyLimitMiddleware.d.ts +3 -0
  187. package/dist/http/BodyLimitMiddleware.d.ts.map +1 -1
  188. package/dist/http/HttpRequest.d.ts +7 -0
  189. package/dist/http/HttpRequest.d.ts.map +1 -1
  190. package/dist/http/bodyLimit.d.ts +21 -1
  191. package/dist/http/bodyLimit.d.ts.map +1 -1
  192. package/dist/http/cspNonce.d.ts +37 -0
  193. package/dist/http/cspNonce.d.ts.map +1 -0
  194. package/dist/http/index.d.ts +1 -0
  195. package/dist/http/index.d.ts.map +1 -1
  196. package/dist/http/index.js +2 -2
  197. package/dist/http/index.js.map +1 -1
  198. package/dist/http/middleware-config.d.ts +12 -3
  199. package/dist/http/middleware-config.d.ts.map +1 -1
  200. package/dist/http/validate.d.ts +8 -0
  201. package/dist/http/validate.d.ts.map +1 -1
  202. package/dist/i18n/Translator.d.ts +5 -0
  203. package/dist/i18n/Translator.d.ts.map +1 -1
  204. package/dist/i18n/dictionaryRuntime.js +2 -2
  205. package/dist/i18n/dictionaryRuntime.js.map +1 -1
  206. package/dist/i18n/index.js +2 -2
  207. package/dist/i18n/index.js.map +1 -1
  208. package/dist/kernel/index.js +2 -2
  209. package/dist/kernel/index.js.map +1 -1
  210. package/dist/orm/index.js +2 -2
  211. package/dist/orm/index.js.map +1 -1
  212. package/dist/probe/index.js +2 -2
  213. package/dist/probe/index.js.map +1 -1
  214. package/dist/server/index.js +2 -2
  215. package/dist/server/index.js.map +1 -1
  216. package/dist/services/index.d.ts +1 -0
  217. package/dist/services/index.d.ts.map +1 -1
  218. package/dist/services/index.js +3 -3
  219. package/dist/services/index.js.map +2 -2
  220. package/dist/services/middleware/MiddlewareRegistry.d.ts +16 -5
  221. package/dist/services/middleware/MiddlewareRegistry.d.ts.map +1 -1
  222. package/dist/services/queue/work.js +2 -2
  223. package/dist/services/queue/work.js.map +1 -1
  224. package/dist/services/router/ApiRouteDispatcher.d.ts.map +1 -1
  225. package/dist/services/router/ViewRouteDispatcher.d.ts +2 -0
  226. package/dist/services/router/ViewRouteDispatcher.d.ts.map +1 -1
  227. package/dist/services/router/config.d.ts +17 -1
  228. package/dist/services/router/config.d.ts.map +1 -1
  229. package/dist/services/router/contentSecurityPolicy.d.ts +32 -0
  230. package/dist/services/router/contentSecurityPolicy.d.ts.map +1 -0
  231. package/dist/services/router/createFlatApiRoutes.d.ts +3 -0
  232. package/dist/services/router/createFlatApiRoutes.d.ts.map +1 -1
  233. package/dist/services/router/staticCache.d.ts +1 -0
  234. package/dist/services/router/staticCache.d.ts.map +1 -1
  235. package/dist/services/router/staticDocument.d.ts +5 -1
  236. package/dist/services/router/staticDocument.d.ts.map +1 -1
  237. package/dist/services/router/streamQueryInjection.d.ts +5 -3
  238. package/dist/services/router/streamQueryInjection.d.ts.map +1 -1
  239. package/dist/stats/route-table.js +1 -1
  240. package/dist/support/index.js +2 -2
  241. package/dist/support/index.js.map +1 -1
  242. package/dist/testing/index.js +2 -2
  243. package/dist/vitest/index.js +1 -1
  244. package/package.json +1 -1
  245. package/dist/chunk-5w3kcn4a.js +0 -117
  246. package/dist/chunk-ggbf1web.js +0 -5
  247. package/dist/chunk-nphb176s.js +0 -15
  248. package/dist/chunks/ThemeProvider-G2g5Z1ZS.js.map +0 -1
  249. /package/dist/{chunk-9hjxpdjt.js.map → chunk-4reyxar1.js.map} +0 -0
  250. /package/dist/{chunk-ejktrxp2.js.map → chunk-61mcmhjp.js.map} +0 -0
  251. /package/dist/{chunk-03q4j7wa.js.map → chunk-93j09zw7.js.map} +0 -0
  252. /package/dist/{chunk-m0dfgmbj.js.map → chunk-97g2qc7j.js.map} +0 -0
  253. /package/dist/{chunk-sqqby94y.js.map → chunk-xxep62yg.js.map} +0 -0
  254. /package/dist/{chunk-7t60d5qy.js.map → chunk-xzt117g6.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- import { X as applyParams, gt as QueryError, pt as parseRetryAfter } from "./ThemeProvider-G2g5Z1ZS.js";
1
+ import { $ as applyParams, gt as parseRetryAfter, yt as QueryError } from "./ThemeProvider-D33bPpf8.js";
2
2
  //#region client/fetchFileRequest.ts
3
3
  /**
4
4
  * `fetchBlob` / `fetchText` once loaded: the `GET`, a `QueryError` for a
@@ -54,4 +54,4 @@ function filenameOf(response) {
54
54
  //#endregion
55
55
  export { fetchFile, filenameOf };
56
56
 
57
- //# sourceMappingURL=fetchFileRequest-Bzva9J59.js.map
57
+ //# sourceMappingURL=fetchFileRequest-Cp0QjioM.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetchFileRequest-Bzva9J59.js","names":[],"sources":["../../client/fetchFileRequest.ts"],"sourcesContent":["import { applyParams } from \"../utils/applyParams\";\nimport type { FetchedBlob, FetchedText, FetchFileOptions } from \"./fetchFile\";\nimport { QueryError } from \"./QueryError\";\nimport { parseRetryAfter } from \"./retryPolicy\";\n\n// What `fetchBlob` and `fetchText` in `./fetchFile` load on their first call\n// (#915).\n\ntype RequestOptions = Omit<FetchFileOptions<string>, \"params\"> & {\n params?: Record<string, string | number | undefined>;\n};\n\n/**\n * `fetchBlob` / `fetchText` once loaded: the `GET`, a `QueryError` for a\n * non-2xx, and the body read `as` a blob or text.\n */\nexport async function fetchFile(\n path: string,\n // The caller's `FetchFileOptions<P>`, checked against its path there.\n options: object | undefined,\n as: \"blob\" | \"text\",\n): Promise<FetchedBlob | FetchedText> {\n const response = await request(path, options as RequestOptions);\n const body = as === \"blob\" ? { blob: await response.blob() } : { text: await response.text() };\n return { ...body, filename: filenameOf(response), response } as FetchedBlob | FetchedText;\n}\n\nasync function request(path: string, options: RequestOptions = {}) {\n const { params = {}, search, signal, init } = options;\n const url = applyParams(path, params);\n const query = searchString(search);\n const response = await fetch(`/api${url}${query ? `?${query}` : \"\"}`, {\n ...init,\n method: \"GET\",\n signal,\n });\n if (!response.ok) {\n // An error body that is not JSON (a proxy's HTML 502) is still that status.\n const body = await response.json().catch(() => null);\n throw new QueryError(\n url,\n query,\n response.status,\n body,\n parseRetryAfter(response.headers.get(\"retry-after\")),\n );\n }\n return response;\n}\n\nfunction searchString(search: FetchFileOptions<string>[\"search\"]) {\n if (!search) return \"\";\n if (search instanceof URLSearchParams) return search.toString();\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(search)) {\n if (value !== null && value !== undefined) params.append(key, String(value));\n }\n return params.toString();\n}\n\n/**\n * The file name in a `Content-Disposition` header: the RFC 5987\n * `filename*=UTF-8''...` form when present and decodable, else `filename`.\n *\n * @internal Exported for tests.\n */\nexport function filenameOf(response: Response): string | null {\n const header = response.headers.get(\"content-disposition\");\n if (!header) return null;\n const extended = /filename\\*\\s*=\\s*([^']*)'[^']*'([^;]+)/i.exec(header);\n if (extended) {\n try {\n return decodeURIComponent(extended[2].trim());\n } catch {\n // A malformed escape: fall back to the plain form.\n }\n }\n const plain = /filename\\s*=\\s*(?:\"((?:[^\"\\\\]|\\\\.)*)\"|([^;]+))/i.exec(header);\n if (!plain) return null;\n const name = plain[1] !== undefined ? plain[1].replace(/\\\\(.)/g, \"$1\") : plain[2].trim();\n return name || null;\n}\n"],"mappings":";;;;;;AAgBA,eAAsB,UACpB,MAEA,SACA,IACoC;CACpC,MAAM,WAAW,MAAM,QAAQ,MAAM,OAAyB;CAE9D,OAAO;EAAE,GADI,OAAO,SAAS,EAAE,MAAM,MAAM,SAAS,KAAK,EAAE,IAAI,EAAE,MAAM,MAAM,SAAS,KAAK,EAAE;EAC3E,UAAU,WAAW,QAAQ;EAAG;CAAS;AAC7D;AAEA,eAAe,QAAQ,MAAc,UAA0B,CAAC,GAAG;CACjE,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,QAAQ,SAAS;CAC9C,MAAM,MAAM,YAAY,MAAM,MAAM;CACpC,MAAM,QAAQ,aAAa,MAAM;CACjC,MAAM,WAAW,MAAM,MAAM,OAAO,MAAM,QAAQ,IAAI,UAAU,MAAM;EACpE,GAAG;EACH,QAAQ;EACR;CACF,CAAC;CACD,IAAI,CAAC,SAAS,IAAI;EAEhB,MAAM,OAAO,MAAM,SAAS,KAAK,CAAC,CAAC,YAAY,IAAI;EACnD,MAAM,IAAI,WACR,KACA,OACA,SAAS,QACT,MACA,gBAAgB,SAAS,QAAQ,IAAI,aAAa,CAAC,CACrD;CACF;CACA,OAAO;AACT;AAEA,SAAS,aAAa,QAA4C;CAChE,IAAI,CAAC,QAAQ,OAAO;CACpB,IAAI,kBAAkB,iBAAiB,OAAO,OAAO,SAAS;CAC9D,MAAM,SAAS,IAAI,gBAAgB;CACnC,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,MAAM,GAC9C,IAAI,UAAU,QAAQ,UAAU,KAAA,GAAW,OAAO,OAAO,KAAK,OAAO,KAAK,CAAC;CAE7E,OAAO,OAAO,SAAS;AACzB;;;;;;;AAQA,SAAgB,WAAW,UAAmC;CAC5D,MAAM,SAAS,SAAS,QAAQ,IAAI,qBAAqB;CACzD,IAAI,CAAC,QAAQ,OAAO;CACpB,MAAM,WAAW,0CAA0C,KAAK,MAAM;CACtE,IAAI,UACF,IAAI;EACF,OAAO,mBAAmB,SAAS,EAAE,CAAC,KAAK,CAAC;CAC9C,QAAQ,CAER;CAEF,MAAM,QAAQ,kDAAkD,KAAK,MAAM;CAC3E,IAAI,CAAC,OAAO,OAAO;CAEnB,QADa,MAAM,OAAO,KAAA,IAAY,MAAM,EAAE,CAAC,QAAQ,UAAU,IAAI,IAAI,MAAM,EAAE,CAAC,KAAK,MACxE;AACjB"}
1
+ {"version":3,"file":"fetchFileRequest-Cp0QjioM.js","names":[],"sources":["../../client/fetchFileRequest.ts"],"sourcesContent":["import { applyParams } from \"../utils/applyParams\";\nimport type { FetchedBlob, FetchedText, FetchFileOptions } from \"./fetchFile\";\nimport { QueryError } from \"./QueryError\";\nimport { parseRetryAfter } from \"./retryPolicy\";\n\n// What `fetchBlob` and `fetchText` in `./fetchFile` load on their first call\n// (#915).\n\ntype RequestOptions = Omit<FetchFileOptions<string>, \"params\"> & {\n params?: Record<string, string | number | undefined>;\n};\n\n/**\n * `fetchBlob` / `fetchText` once loaded: the `GET`, a `QueryError` for a\n * non-2xx, and the body read `as` a blob or text.\n */\nexport async function fetchFile(\n path: string,\n // The caller's `FetchFileOptions<P>`, checked against its path there.\n options: object | undefined,\n as: \"blob\" | \"text\",\n): Promise<FetchedBlob | FetchedText> {\n const response = await request(path, options as RequestOptions);\n const body = as === \"blob\" ? { blob: await response.blob() } : { text: await response.text() };\n return { ...body, filename: filenameOf(response), response } as FetchedBlob | FetchedText;\n}\n\nasync function request(path: string, options: RequestOptions = {}) {\n const { params = {}, search, signal, init } = options;\n const url = applyParams(path, params);\n const query = searchString(search);\n const response = await fetch(`/api${url}${query ? `?${query}` : \"\"}`, {\n ...init,\n method: \"GET\",\n signal,\n });\n if (!response.ok) {\n // An error body that is not JSON (a proxy's HTML 502) is still that status.\n const body = await response.json().catch(() => null);\n throw new QueryError(\n url,\n query,\n response.status,\n body,\n parseRetryAfter(response.headers.get(\"retry-after\")),\n );\n }\n return response;\n}\n\nfunction searchString(search: FetchFileOptions<string>[\"search\"]) {\n if (!search) return \"\";\n if (search instanceof URLSearchParams) return search.toString();\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(search)) {\n if (value !== null && value !== undefined) params.append(key, String(value));\n }\n return params.toString();\n}\n\n/**\n * The file name in a `Content-Disposition` header: the RFC 5987\n * `filename*=UTF-8''...` form when present and decodable, else `filename`.\n *\n * @internal Exported for tests.\n */\nexport function filenameOf(response: Response): string | null {\n const header = response.headers.get(\"content-disposition\");\n if (!header) return null;\n const extended = /filename\\*\\s*=\\s*([^']*)'[^']*'([^;]+)/i.exec(header);\n if (extended) {\n try {\n return decodeURIComponent(extended[2].trim());\n } catch {\n // A malformed escape: fall back to the plain form.\n }\n }\n const plain = /filename\\s*=\\s*(?:\"((?:[^\"\\\\]|\\\\.)*)\"|([^;]+))/i.exec(header);\n if (!plain) return null;\n const name = plain[1] !== undefined ? plain[1].replace(/\\\\(.)/g, \"$1\") : plain[2].trim();\n return name || null;\n}\n"],"mappings":";;;;;;AAgBA,eAAsB,UACpB,MAEA,SACA,IACoC;CACpC,MAAM,WAAW,MAAM,QAAQ,MAAM,OAAyB;CAE9D,OAAO;EAAE,GADI,OAAO,SAAS,EAAE,MAAM,MAAM,SAAS,KAAK,EAAE,IAAI,EAAE,MAAM,MAAM,SAAS,KAAK,EAAE;EAC3E,UAAU,WAAW,QAAQ;EAAG;CAAS;AAC7D;AAEA,eAAe,QAAQ,MAAc,UAA0B,CAAC,GAAG;CACjE,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,QAAQ,SAAS;CAC9C,MAAM,MAAM,YAAY,MAAM,MAAM;CACpC,MAAM,QAAQ,aAAa,MAAM;CACjC,MAAM,WAAW,MAAM,MAAM,OAAO,MAAM,QAAQ,IAAI,UAAU,MAAM;EACpE,GAAG;EACH,QAAQ;EACR;CACF,CAAC;CACD,IAAI,CAAC,SAAS,IAAI;EAEhB,MAAM,OAAO,MAAM,SAAS,KAAK,CAAC,CAAC,YAAY,IAAI;EACnD,MAAM,IAAI,WACR,KACA,OACA,SAAS,QACT,MACA,gBAAgB,SAAS,QAAQ,IAAI,aAAa,CAAC,CACrD;CACF;CACA,OAAO;AACT;AAEA,SAAS,aAAa,QAA4C;CAChE,IAAI,CAAC,QAAQ,OAAO;CACpB,IAAI,kBAAkB,iBAAiB,OAAO,OAAO,SAAS;CAC9D,MAAM,SAAS,IAAI,gBAAgB;CACnC,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,MAAM,GAC9C,IAAI,UAAU,QAAQ,UAAU,KAAA,GAAW,OAAO,OAAO,KAAK,OAAO,KAAK,CAAC;CAE7E,OAAO,OAAO,SAAS;AACzB;;;;;;;AAQA,SAAgB,WAAW,UAAmC;CAC5D,MAAM,SAAS,SAAS,QAAQ,IAAI,qBAAqB;CACzD,IAAI,CAAC,QAAQ,OAAO;CACpB,MAAM,WAAW,0CAA0C,KAAK,MAAM;CACtE,IAAI,UACF,IAAI;EACF,OAAO,mBAAmB,SAAS,EAAE,CAAC,KAAK,CAAC;CAC9C,QAAQ,CAER;CAEF,MAAM,QAAQ,kDAAkD,KAAK,MAAM;CAC3E,IAAI,CAAC,OAAO,OAAO;CAEnB,QADa,MAAM,OAAO,KAAA,IAAY,MAAM,EAAE,CAAC,QAAQ,UAAU,IAAI,IAAI,MAAM,EAAE,CAAC,KAAK,MACxE;AACjB"}
@@ -1,4 +1,4 @@
1
- import { G as realtime, J as loadedModule } from "./ThemeProvider-G2g5Z1ZS.js";
1
+ import { J as realtime, Z as loadedModule } from "./ThemeProvider-D33bPpf8.js";
2
2
  //#region \0rolldown/runtime.js
3
3
  var __defProp = Object.defineProperty;
4
4
  var __exportAll = (all, no_symbols) => {
@@ -76,7 +76,7 @@ function followLive(provided, live, resource, setOpen) {
76
76
  };
77
77
  const socket = provided ?? realtime.client;
78
78
  if (socket) start(socket);
79
- else import("./RealtimeClient-BVQeh_yg.js").then((module) => start(loadedModule(module).tabClient())).catch(() => {});
79
+ else import("./RealtimeClient-B7zh4okq.js").then((module) => start(loadedModule(module).tabClient())).catch(() => {});
80
80
  return () => {
81
81
  stop?.();
82
82
  stop = null;
@@ -85,4 +85,4 @@ function followLive(provided, live, resource, setOpen) {
85
85
  //#endregion
86
86
  export { live_exports as n, followLive as t };
87
87
 
88
- //# sourceMappingURL=live-C2Sck5PO.js.map
88
+ //# sourceMappingURL=live-D08wnrrZ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"live-C2Sck5PO.js","names":[],"sources":["../../client/realtime/live.ts"],"sourcesContent":["import type { QueryResource } from \"../QueryResource\";\nimport type { ChannelPattern } from \"../useChannel\";\nimport { EVENT_COALESCE_MS } from \"./useChannelSubscription\";\nimport type { ChannelParamValues, RealtimeSocket } from \"./RealtimeClient\";\nimport { loadedModule } from \"../lazyModule\";\nimport { realtime } from \"./loader\";\n\n/**\n * `useQuery`'s `live` option: the channel whose events and resyncs refetch\n * the query. A pattern without params (`\"user\"`), `[pattern, params]`, or\n * `{ channel, params }`.\n */\nexport type LiveChannel =\n | ChannelPattern\n | readonly [ChannelPattern, ChannelParamValues]\n | { channel: ChannelPattern; params?: ChannelParamValues };\n\nexport function resolveLiveChannel(\n live: LiveChannel | null | undefined | false,\n): { pattern: string; params: ChannelParamValues } | null {\n if (!live) return null;\n if (typeof live === \"string\") return { pattern: live, params: {} };\n if (Array.isArray(live)) return { pattern: live[0], params: live[1] ?? {} };\n const object = live as { channel: string; params?: ChannelParamValues };\n return { pattern: object.channel, params: object.params ?? {} };\n}\n\n/**\n * `useQuery`'s `live` subscription, loaded on first use by `followLive` in\n * `./loader` (#891). The channel's events refetch every cached variant of the\n * query (the rendered ones now), a burst of them once per\n * `EVENT_COALESCE_MS`; a resync refetches at once. `setOpen` follows whether\n * the channel is open, which pauses the query's polling.\n */\nexport function subscribeLive(\n socket: RealtimeSocket,\n live: LiveChannel,\n resource: () => QueryResource,\n setOpen: (open: boolean) => void,\n): () => void {\n const channel = resolveLiveChannel(live);\n if (!channel) return () => {};\n const refresh = () => {\n const target = resource();\n for (const key of target.variantKeys()) target.invalidate(key);\n };\n let timer: ReturnType<typeof setTimeout> | null = null;\n const release = socket.subscribe(channel.pattern, channel.params, {\n onEvent: () => {\n if (timer) return;\n timer = setTimeout(() => {\n timer = null;\n refresh();\n }, EVENT_COALESCE_MS);\n },\n onResync: refresh,\n onStatus: (status) => setOpen(status === \"open\"),\n });\n return () => {\n if (timer) clearTimeout(timer);\n release();\n };\n}\n\n/**\n * What `followLive` in `./loader` hands over to once this module is loaded:\n * subscribes on the provided socket, or the tab's client, loading that first\n * when it is not there yet. Returns the function that stops it.\n */\nexport function followLive(\n provided: RealtimeSocket | null,\n live: LiveChannel,\n resource: () => QueryResource,\n setOpen: (open: boolean) => void,\n): () => void {\n // `undefined` until it subscribes, `null` once stopped.\n let stop: (() => void) | null | undefined;\n const start = (socket: RealtimeSocket) => {\n if (stop === undefined) stop = subscribeLive(socket, live, resource, setOpen);\n };\n const socket = provided ?? realtime.client;\n if (socket) start(socket);\n // Its own `import()` of the client rather than `loadRealtimeClient`, which\n // would keep that in the entry chunk of every app with a `useQuery`. A\n // failed load leaves the channel closed, so the query keeps polling.\n else\n import(\"./RealtimeClient.js\")\n .then((module) => start(loadedModule(module).tabClient()))\n .catch(() => {});\n return () => {\n stop?.();\n stop = null;\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAiBA,SAAgB,mBACd,MACwD;CACxD,IAAI,CAAC,MAAM,OAAO;CAClB,IAAI,OAAO,SAAS,UAAU,OAAO;EAAE,SAAS;EAAM,QAAQ,CAAC;CAAE;CACjE,IAAI,MAAM,QAAQ,IAAI,GAAG,OAAO;EAAE,SAAS,KAAK;EAAI,QAAQ,KAAK,MAAM,CAAC;CAAE;CAC1E,MAAM,SAAS;CACf,OAAO;EAAE,SAAS,OAAO;EAAS,QAAQ,OAAO,UAAU,CAAC;CAAE;AAChE;;;;;;;;AASA,SAAgB,cACd,QACA,MACA,UACA,SACY;CACZ,MAAM,UAAU,mBAAmB,IAAI;CACvC,IAAI,CAAC,SAAS,aAAa,CAAC;CAC5B,MAAM,gBAAgB;EACpB,MAAM,SAAS,SAAS;EACxB,KAAK,MAAM,OAAO,OAAO,YAAY,GAAG,OAAO,WAAW,GAAG;CAC/D;CACA,IAAI,QAA8C;CAClD,MAAM,UAAU,OAAO,UAAU,QAAQ,SAAS,QAAQ,QAAQ;EAChE,eAAe;GACb,IAAI,OAAO;GACX,QAAQ,iBAAiB;IACvB,QAAQ;IACR,QAAQ;GACV,GAAA,GAAoB;EACtB;EACA,UAAU;EACV,WAAW,WAAW,QAAQ,WAAW,MAAM;CACjD,CAAC;CACD,aAAa;EACX,IAAI,OAAO,aAAa,KAAK;EAC7B,QAAQ;CACV;AACF;;;;;;AAOA,SAAgB,WACd,UACA,MACA,UACA,SACY;CAEZ,IAAI;CACJ,MAAM,SAAS,WAA2B;EACxC,IAAI,SAAS,KAAA,GAAW,OAAO,cAAc,QAAQ,MAAM,UAAU,OAAO;CAC9E;CACA,MAAM,SAAS,YAAY,SAAS;CACpC,IAAI,QAAQ,MAAM,MAAM;MAKtB,OAAO,+BAAsB,CAC1B,MAAM,WAAW,MAAM,aAAa,MAAM,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CACzD,YAAY,CAAC,CAAC;CACnB,aAAa;EACX,OAAO;EACP,OAAO;CACT;AACF"}
1
+ {"version":3,"file":"live-D08wnrrZ.js","names":[],"sources":["../../client/realtime/live.ts"],"sourcesContent":["import type { QueryResource } from \"../QueryResource\";\nimport type { ChannelPattern } from \"../useChannel\";\nimport { EVENT_COALESCE_MS } from \"./useChannelSubscription\";\nimport type { ChannelParamValues, RealtimeSocket } from \"./RealtimeClient\";\nimport { loadedModule } from \"../lazyModule\";\nimport { realtime } from \"./loader\";\n\n/**\n * `useQuery`'s `live` option: the channel whose events and resyncs refetch\n * the query. A pattern without params (`\"user\"`), `[pattern, params]`, or\n * `{ channel, params }`.\n */\nexport type LiveChannel =\n | ChannelPattern\n | readonly [ChannelPattern, ChannelParamValues]\n | { channel: ChannelPattern; params?: ChannelParamValues };\n\nexport function resolveLiveChannel(\n live: LiveChannel | null | undefined | false,\n): { pattern: string; params: ChannelParamValues } | null {\n if (!live) return null;\n if (typeof live === \"string\") return { pattern: live, params: {} };\n if (Array.isArray(live)) return { pattern: live[0], params: live[1] ?? {} };\n const object = live as { channel: string; params?: ChannelParamValues };\n return { pattern: object.channel, params: object.params ?? {} };\n}\n\n/**\n * `useQuery`'s `live` subscription, loaded on first use by `followLive` in\n * `./loader` (#891). The channel's events refetch every cached variant of the\n * query (the rendered ones now), a burst of them once per\n * `EVENT_COALESCE_MS`; a resync refetches at once. `setOpen` follows whether\n * the channel is open, which pauses the query's polling.\n */\nexport function subscribeLive(\n socket: RealtimeSocket,\n live: LiveChannel,\n resource: () => QueryResource,\n setOpen: (open: boolean) => void,\n): () => void {\n const channel = resolveLiveChannel(live);\n if (!channel) return () => {};\n const refresh = () => {\n const target = resource();\n for (const key of target.variantKeys()) target.invalidate(key);\n };\n let timer: ReturnType<typeof setTimeout> | null = null;\n const release = socket.subscribe(channel.pattern, channel.params, {\n onEvent: () => {\n if (timer) return;\n timer = setTimeout(() => {\n timer = null;\n refresh();\n }, EVENT_COALESCE_MS);\n },\n onResync: refresh,\n onStatus: (status) => setOpen(status === \"open\"),\n });\n return () => {\n if (timer) clearTimeout(timer);\n release();\n };\n}\n\n/**\n * What `followLive` in `./loader` hands over to once this module is loaded:\n * subscribes on the provided socket, or the tab's client, loading that first\n * when it is not there yet. Returns the function that stops it.\n */\nexport function followLive(\n provided: RealtimeSocket | null,\n live: LiveChannel,\n resource: () => QueryResource,\n setOpen: (open: boolean) => void,\n): () => void {\n // `undefined` until it subscribes, `null` once stopped.\n let stop: (() => void) | null | undefined;\n const start = (socket: RealtimeSocket) => {\n if (stop === undefined) stop = subscribeLive(socket, live, resource, setOpen);\n };\n const socket = provided ?? realtime.client;\n if (socket) start(socket);\n // Its own `import()` of the client rather than `loadRealtimeClient`, which\n // would keep that in the entry chunk of every app with a `useQuery`. A\n // failed load leaves the channel closed, so the query keeps polling.\n else\n import(\"./RealtimeClient.js\")\n .then((module) => start(loadedModule(module).tabClient()))\n .catch(() => {});\n return () => {\n stop?.();\n stop = null;\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAiBA,SAAgB,mBACd,MACwD;CACxD,IAAI,CAAC,MAAM,OAAO;CAClB,IAAI,OAAO,SAAS,UAAU,OAAO;EAAE,SAAS;EAAM,QAAQ,CAAC;CAAE;CACjE,IAAI,MAAM,QAAQ,IAAI,GAAG,OAAO;EAAE,SAAS,KAAK;EAAI,QAAQ,KAAK,MAAM,CAAC;CAAE;CAC1E,MAAM,SAAS;CACf,OAAO;EAAE,SAAS,OAAO;EAAS,QAAQ,OAAO,UAAU,CAAC;CAAE;AAChE;;;;;;;;AASA,SAAgB,cACd,QACA,MACA,UACA,SACY;CACZ,MAAM,UAAU,mBAAmB,IAAI;CACvC,IAAI,CAAC,SAAS,aAAa,CAAC;CAC5B,MAAM,gBAAgB;EACpB,MAAM,SAAS,SAAS;EACxB,KAAK,MAAM,OAAO,OAAO,YAAY,GAAG,OAAO,WAAW,GAAG;CAC/D;CACA,IAAI,QAA8C;CAClD,MAAM,UAAU,OAAO,UAAU,QAAQ,SAAS,QAAQ,QAAQ;EAChE,eAAe;GACb,IAAI,OAAO;GACX,QAAQ,iBAAiB;IACvB,QAAQ;IACR,QAAQ;GACV,GAAA,GAAoB;EACtB;EACA,UAAU;EACV,WAAW,WAAW,QAAQ,WAAW,MAAM;CACjD,CAAC;CACD,aAAa;EACX,IAAI,OAAO,aAAa,KAAK;EAC7B,QAAQ;CACV;AACF;;;;;;AAOA,SAAgB,WACd,UACA,MACA,UACA,SACY;CAEZ,IAAI;CACJ,MAAM,SAAS,WAA2B;EACxC,IAAI,SAAS,KAAA,GAAW,OAAO,cAAc,QAAQ,MAAM,UAAU,OAAO;CAC9E;CACA,MAAM,SAAS,YAAY,SAAS;CACpC,IAAI,QAAQ,MAAM,MAAM;MAKtB,OAAO,+BAAsB,CAC1B,MAAM,WAAW,MAAM,aAAa,MAAM,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CACzD,YAAY,CAAC,CAAC;CACnB,aAAa;EACX,OAAO;EACP,OAAO;CACT;AACF"}
@@ -1,4 +1,4 @@
1
- import { X as applyParams, Y as toVariantKey } from "./ThemeProvider-G2g5Z1ZS.js";
1
+ import { $ as applyParams, Q as toVariantKey } from "./ThemeProvider-D33bPpf8.js";
2
2
  import { p as mutationErrorFromBody, s as isObject } from "./MutationError-DuKqBW8o.js";
3
3
  //#region client/mutationErrorHelpers.ts
4
4
  var FALLBACK_MESSAGE = "Something went wrong. Try again.";
@@ -112,4 +112,4 @@ function applyQueryUpdates(getResource, routeParams, updates, answer) {
112
112
  //#endregion
113
113
  export { applyQueryUpdates, withMutationErrorHelpers, writeQueryData };
114
114
 
115
- //# sourceMappingURL=mutationExtras-HC7AC6zn.js.map
115
+ //# sourceMappingURL=mutationExtras-BbDboF8F.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mutationExtras-HC7AC6zn.js","names":[],"sources":["../../client/mutationErrorHelpers.ts","../../client/queryUpdates.ts"],"sourcesContent":["import {\n isObject,\n mutationErrorFromBody,\n type MutationErrorHelpers,\n type MutationValidationError,\n type WithMutationErrorHelpers,\n} from \"./MutationError\";\n\n// `error.list()` and `error.field(name)` on what the mutation hooks hand over.\n// Loaded with the hooks' other extras when one mounts (see\n// `./mutationModules`), so no route's entry chunk carries it (#915).\n//\n// `list` and `field` repeat `mutationErrorList` and `mutationErrorField` from\n// `./MutationError` on purpose. Those are public and synchronous, so they sit\n// in whatever chunk calls them; importing them here would put them, and so\n// this code, back in every entry chunk. `MutationError.helpers.test` runs the\n// same cases through both.\n\nconst FALLBACK_MESSAGE = \"Something went wrong. Try again.\";\n\n// `isValidationError`, which an import would keep in the entry chunk.\nfunction isValidationError(error: unknown): error is MutationValidationError {\n return isObject(error) && error.kind === \"validation_error\";\n}\n\n// A `QueryError`'s refusal, read as the mutation hooks read a body. Read by\n// shape, not `instanceof`, so a copy of the class from another bundle works.\nfunction unwrapQueryError(error: unknown): unknown {\n if (error instanceof Error && error.name === \"QueryError\" && \"body\" in error) {\n const { body, status } = error as Error & { body: unknown; status: number };\n return body == null ? error : mutationErrorFromBody(body, status);\n }\n return error;\n}\n\n// `error.list(fallback)`: see `mutationErrorList`.\nfunction list(\n error: unknown,\n fallback: string = FALLBACK_MESSAGE,\n): string[] {\n const value = unwrapQueryError(error);\n if (isValidationError(value)) {\n const messages = Object.values(value.messages ?? {})\n .flat()\n .filter((message) => typeof message === \"string\" && message !== \"\");\n return messages.length > 0 ? messages : [fallback];\n }\n if (\n isObject(value) &&\n !(value instanceof Error) &&\n value.kind !== \"server_error\" &&\n typeof value.message === \"string\" &&\n value.message !== \"\"\n ) {\n return [value.message];\n }\n return [fallback];\n}\n\n// `error.field(name)`: see `mutationErrorField`.\nfunction field(error: unknown, name: string): string[] {\n const value = unwrapQueryError(error);\n if (!isValidationError(value)) return [];\n const messages = value.messages?.[name];\n return Array.isArray(messages) ? [...messages] : [];\n}\n\n/**\n * Puts `list` and `field` on an error the hooks hand over, as non-enumerable\n * properties, so `toEqual`, a spread and `JSON.stringify` see the same object\n * as before. A key the error already has is left alone; a primitive or a\n * frozen value is returned as it is.\n *\n * @internal\n */\nexport function withMutationErrorHelpers<T>(error: T): WithMutationErrorHelpers<T> {\n if (!isObject(error) || !Object.isExtensible(error)) {\n return error as WithMutationErrorHelpers<T>;\n }\n const helpers: MutationErrorHelpers = {\n list: (fallback) => list(error, fallback),\n field: (name) => field(error, name),\n };\n for (const key of [\"list\", \"field\"] as const) {\n if (key in error) continue;\n Object.defineProperty(error, key, {\n value: helpers[key],\n configurable: true,\n writable: true,\n enumerable: false,\n });\n }\n return error as WithMutationErrorHelpers<T>;\n}\n","import type { QueryResource } from \"./QueryResource\";\nimport type { QueryTarget, QueryUpdate } from \"./useSetQueryData\";\nimport { applyParams } from \"../utils/applyParams\";\nimport { toVariantKey } from \"../utils/variantKey\";\n\n// The cache writes behind a mutation's `updates` and `useSetQueryData()`\n// (#897). Loaded with the hooks' other extras when one mounts (see\n// `./mutationModules`), so no route's entry chunk carries it (#915).\n\ntype Resolve = (key: string) => QueryResource;\n\n/**\n * Write data the server just produced (a mutation's answer) into a variant,\n * with no refetch: unlike `mutate`, the value is not a guess to reconcile.\n * The variant counts as freshly fetched, so its `staleTime` starts again, and\n * a GET already on the wire for it is dropped when it lands, since it may\n * carry the data from before the write. A reader suspended on the variant\n * wakes up with it (#897). Here rather than on `QueryResource`, which every\n * entry chunk carries (#915).\n */\nfunction setVariant(resource: QueryResource, variantKey: string, data: unknown) {\n resource.dropHttpCache(variantKey);\n resource.markApplied(variantKey);\n const store = resource.store.getValue();\n resource.fill(store, variantKey, data, Date.now());\n resource.store.next(store);\n}\n\n/** The value to write, or a function of the cached one. */\nexport type WriteQueryNext = { value: unknown } | { update: (current: any) => unknown };\n\n/**\n * Write into every variant `target` names. `next` is the value to write, or\n * a function of the cached value; a function skips a variant with nothing\n * cached. A value seeds a single variant that is not cached yet; a predicate\n * only ever reaches variants that are.\n */\nexport function writeQueryData(\n getResource: Resolve,\n routeParams: Record<string, any>,\n target: QueryTarget<any>,\n next: WriteQueryNext,\n) {\n const { path, params = {}, search = {} } = target;\n const resource = getResource(applyParams(String(path), { ...routeParams, ...params }));\n const write = (variantKey: string) => {\n if (\"value\" in next) {\n setVariant(resource, variantKey, next.value);\n return;\n }\n const state = resource.peek(variantKey);\n if (!state?.hasData) return;\n setVariant(resource, variantKey, next.update(state.data));\n };\n\n if (typeof search === \"function\") {\n for (const variantKey of resource.variantKeys()) {\n if (!resource.peek(variantKey)?.hasData) continue;\n if (search(new URLSearchParams(variantKey))) write(variantKey);\n }\n return;\n }\n write(toVariantKey(search));\n}\n\n/**\n * Write a mutation's `updates` with its answer.\n */\nexport function applyQueryUpdates(\n getResource: Resolve,\n routeParams: Record<string, any>,\n updates: ReadonlyArray<QueryUpdate<any>> | undefined,\n answer: unknown,\n) {\n for (const update of updates ?? []) {\n const { data } = update as { data?: (answer: any, current: any) => any };\n writeQueryData(\n getResource,\n routeParams,\n update,\n data ? { update: (current) => data(answer, current) } : { value: answer },\n );\n }\n}\n"],"mappings":";;;AAkBA,IAAM,mBAAmB;AAGzB,SAAS,kBAAkB,OAAkD;CAC3E,OAAO,SAAS,KAAK,KAAK,MAAM,SAAS;AAC3C;AAIA,SAAS,iBAAiB,OAAyB;CACjD,IAAI,iBAAiB,SAAS,MAAM,SAAS,gBAAgB,UAAU,OAAO;EAC5E,MAAM,EAAE,MAAM,WAAW;EACzB,OAAO,QAAQ,OAAO,QAAQ,sBAAsB,MAAM,MAAM;CAClE;CACA,OAAO;AACT;AAGA,SAAS,KACP,OACA,WAAmB,kBACT;CACV,MAAM,QAAQ,iBAAiB,KAAK;CACpC,IAAI,kBAAkB,KAAK,GAAG;EAC5B,MAAM,WAAW,OAAO,OAAO,MAAM,YAAY,CAAC,CAAC,CAAC,CACjD,KAAK,CAAC,CACN,QAAQ,YAAY,OAAO,YAAY,YAAY,YAAY,EAAE;EACpE,OAAO,SAAS,SAAS,IAAI,WAAW,CAAC,QAAQ;CACnD;CACA,IACE,SAAS,KAAK,KACd,EAAE,iBAAiB,UACnB,MAAM,SAAS,kBACf,OAAO,MAAM,YAAY,YACzB,MAAM,YAAY,IAElB,OAAO,CAAC,MAAM,OAAO;CAEvB,OAAO,CAAC,QAAQ;AAClB;AAGA,SAAS,MAAM,OAAgB,MAAwB;CACrD,MAAM,QAAQ,iBAAiB,KAAK;CACpC,IAAI,CAAC,kBAAkB,KAAK,GAAG,OAAO,CAAC;CACvC,MAAM,WAAW,MAAM,WAAW;CAClC,OAAO,MAAM,QAAQ,QAAQ,IAAI,CAAC,GAAG,QAAQ,IAAI,CAAC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,MAAM,UAAU;EAC/D;EACA;CACF;CACA,MAAM,aAAa,MAAM,CAAC;AAC5B;;;;AAKA,SAAgB,kBACd,aACA,aACA,SACA,QACA;CACA,KAAK,MAAM,UAAU,WAAW,CAAC,GAAG;EAClC,MAAM,EAAE,SAAS;EACjB,eACE,aACA,aACA,QACA,OAAO,EAAE,SAAS,YAAY,KAAK,QAAQ,OAAO,EAAE,IAAI,EAAE,OAAO,OAAO,CAC1E;CACF;AACF"}
1
+ {"version":3,"file":"mutationExtras-BbDboF8F.js","names":[],"sources":["../../client/mutationErrorHelpers.ts","../../client/queryUpdates.ts"],"sourcesContent":["import {\n isObject,\n mutationErrorFromBody,\n type MutationErrorHelpers,\n type MutationValidationError,\n type WithMutationErrorHelpers,\n} from \"./MutationError\";\n\n// `error.list()` and `error.field(name)` on what the mutation hooks hand over.\n// Loaded with the hooks' other extras when one mounts (see\n// `./mutationModules`), so no route's entry chunk carries it (#915).\n//\n// `list` and `field` repeat `mutationErrorList` and `mutationErrorField` from\n// `./MutationError` on purpose. Those are public and synchronous, so they sit\n// in whatever chunk calls them; importing them here would put them, and so\n// this code, back in every entry chunk. `MutationError.helpers.test` runs the\n// same cases through both.\n\nconst FALLBACK_MESSAGE = \"Something went wrong. Try again.\";\n\n// `isValidationError`, which an import would keep in the entry chunk.\nfunction isValidationError(error: unknown): error is MutationValidationError {\n return isObject(error) && error.kind === \"validation_error\";\n}\n\n// A `QueryError`'s refusal, read as the mutation hooks read a body. Read by\n// shape, not `instanceof`, so a copy of the class from another bundle works.\nfunction unwrapQueryError(error: unknown): unknown {\n if (error instanceof Error && error.name === \"QueryError\" && \"body\" in error) {\n const { body, status } = error as Error & { body: unknown; status: number };\n return body == null ? error : mutationErrorFromBody(body, status);\n }\n return error;\n}\n\n// `error.list(fallback)`: see `mutationErrorList`.\nfunction list(\n error: unknown,\n fallback: string = FALLBACK_MESSAGE,\n): string[] {\n const value = unwrapQueryError(error);\n if (isValidationError(value)) {\n const messages = Object.values(value.messages ?? {})\n .flat()\n .filter((message) => typeof message === \"string\" && message !== \"\");\n return messages.length > 0 ? messages : [fallback];\n }\n if (\n isObject(value) &&\n !(value instanceof Error) &&\n value.kind !== \"server_error\" &&\n typeof value.message === \"string\" &&\n value.message !== \"\"\n ) {\n return [value.message];\n }\n return [fallback];\n}\n\n// `error.field(name)`: see `mutationErrorField`.\nfunction field(error: unknown, name: string): string[] {\n const value = unwrapQueryError(error);\n if (!isValidationError(value)) return [];\n const messages = value.messages?.[name];\n return Array.isArray(messages) ? [...messages] : [];\n}\n\n/**\n * Puts `list` and `field` on an error the hooks hand over, as non-enumerable\n * properties, so `toEqual`, a spread and `JSON.stringify` see the same object\n * as before. A key the error already has is left alone; a primitive or a\n * frozen value is returned as it is.\n *\n * @internal\n */\nexport function withMutationErrorHelpers<T>(error: T): WithMutationErrorHelpers<T> {\n if (!isObject(error) || !Object.isExtensible(error)) {\n return error as WithMutationErrorHelpers<T>;\n }\n const helpers: MutationErrorHelpers = {\n list: (fallback) => list(error, fallback),\n field: (name) => field(error, name),\n };\n for (const key of [\"list\", \"field\"] as const) {\n if (key in error) continue;\n Object.defineProperty(error, key, {\n value: helpers[key],\n configurable: true,\n writable: true,\n enumerable: false,\n });\n }\n return error as WithMutationErrorHelpers<T>;\n}\n","import type { QueryResource } from \"./QueryResource\";\nimport type { QueryTarget, QueryUpdate } from \"./useSetQueryData\";\nimport { applyParams } from \"../utils/applyParams\";\nimport { toVariantKey } from \"../utils/variantKey\";\n\n// The cache writes behind a mutation's `updates` and `useSetQueryData()`\n// (#897). Loaded with the hooks' other extras when one mounts (see\n// `./mutationModules`), so no route's entry chunk carries it (#915).\n\ntype Resolve = (key: string) => QueryResource;\n\n/**\n * Write data the server just produced (a mutation's answer) into a variant,\n * with no refetch: unlike `mutate`, the value is not a guess to reconcile.\n * The variant counts as freshly fetched, so its `staleTime` starts again, and\n * a GET already on the wire for it is dropped when it lands, since it may\n * carry the data from before the write. A reader suspended on the variant\n * wakes up with it (#897). Here rather than on `QueryResource`, which every\n * entry chunk carries (#915).\n */\nfunction setVariant(resource: QueryResource, variantKey: string, data: unknown) {\n resource.dropHttpCache(variantKey);\n resource.markApplied(variantKey);\n const store = resource.store.getValue();\n resource.fill(store, variantKey, data, Date.now());\n resource.store.next(store);\n}\n\n/** The value to write, or a function of the cached one. */\nexport type WriteQueryNext = { value: unknown } | { update: (current: any) => unknown };\n\n/**\n * Write into every variant `target` names. `next` is the value to write, or\n * a function of the cached value; a function skips a variant with nothing\n * cached. A value seeds a single variant that is not cached yet; a predicate\n * only ever reaches variants that are.\n */\nexport function writeQueryData(\n getResource: Resolve,\n routeParams: Record<string, any>,\n target: QueryTarget<any>,\n next: WriteQueryNext,\n) {\n const { path, params = {}, search = {} } = target;\n const resource = getResource(applyParams(String(path), { ...routeParams, ...params }));\n const write = (variantKey: string) => {\n if (\"value\" in next) {\n setVariant(resource, variantKey, next.value);\n return;\n }\n const state = resource.peek(variantKey);\n if (!state?.hasData) return;\n setVariant(resource, variantKey, next.update(state.data));\n };\n\n if (typeof search === \"function\") {\n for (const variantKey of resource.variantKeys()) {\n if (!resource.peek(variantKey)?.hasData) continue;\n if (search(new URLSearchParams(variantKey))) write(variantKey);\n }\n return;\n }\n write(toVariantKey(search));\n}\n\n/**\n * Write a mutation's `updates` with its answer.\n */\nexport function applyQueryUpdates(\n getResource: Resolve,\n routeParams: Record<string, any>,\n updates: ReadonlyArray<QueryUpdate<any>> | undefined,\n answer: unknown,\n) {\n for (const update of updates ?? []) {\n const { data } = update as { data?: (answer: any, current: any) => any };\n writeQueryData(\n getResource,\n routeParams,\n update,\n data ? { update: (current) => data(answer, current) } : { value: answer },\n );\n }\n}\n"],"mappings":";;;AAkBA,IAAM,mBAAmB;AAGzB,SAAS,kBAAkB,OAAkD;CAC3E,OAAO,SAAS,KAAK,KAAK,MAAM,SAAS;AAC3C;AAIA,SAAS,iBAAiB,OAAyB;CACjD,IAAI,iBAAiB,SAAS,MAAM,SAAS,gBAAgB,UAAU,O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9E,SAAS,cAAc,UAAU;CACjC,SAAS,YAAY,UAAU;CAC/B,MAAM,QAAQ,SAAS,MAAM,SAAS;CACtC,SAAS,KAAK,OAAO,YAAY,MAAM,KAAK,IAAI,CAAC;CACjD,SAAS,MAAM,KAAK,KAAK;AAC3B;;;;;;;AAWA,SAAgB,eACd,aACA,aACA,QACA,MACA;CACA,MAAM,EAAE,MAAM,SAAS,CAAC,GAAG,SAAS,CAAC,MAAM;CAC3C,MAAM,WAAW,YAAY,YAAY,OAAO,IAAI,GAAG;EAAE,GAAG;EAAa,GAAG;CAAO,CAAC,CAAC;CACrF,MAAM,SAAS,eAAuB;EACpC,IAAI,WAAW,MAAM;GACnB,WAAW,UAAU,YAAY,KAAK,KAAK;GAC3C;EACF;EACA,MAAM,QAAQ,SAAS,KAAK,UAAU;EACtC,IAAI,CAAC,OAAO,SAAS;EACrB,WAAW,UAAU,YAAY,KAAK,OAAO,MAAM,IAAI,CAAC;CAC1D;CAEA,IAAI,OAAO,WAAW,YAAY;EAChC,KAAK,MAAM,cAAc,SAAS,YAAY,GAAG;GAC/C,IAAI,CAAC,SAAS,KAAK,UAAU,CAAC,EAAE,SAAS;GACzC,IAAI,OAAO,IAAI,gBAAgB,UAAU,CAAC,GAAG,MAAM,UAAU;EAC/D;EACA;CACF;CACA,MAAM,aAAa,MAAM,CAAC;AAC5B;;;;AAKA,SAAgB,kBACd,aACA,aACA,SACA,QACA;CACA,KAAK,MAAM,UAAU,WAAW,CAAC,GAAG;EAClC,MAAM,EAAE,SAAS;EACjB,eACE,aACA,aACA,QACA,OAAO,EAAE,SAAS,YAAY,KAAK,QAAQ,OAAO,EAAE,IAAI,EAAE,OAAO,OAAO,CAC1E;CACF;AACF"}
@@ -1,4 +1,4 @@
1
- import { dt as equalJitter } from "./ThemeProvider-G2g5Z1ZS.js";
1
+ import { mt as equalJitter } from "./ThemeProvider-D33bPpf8.js";
2
2
  //#region client/subscriptionStream.ts
3
3
  var MIN_RETRY_MS = 1e3;
4
4
  var MAX_RETRY_MS = 3e4;
@@ -175,4 +175,4 @@ async function* readEvents(body) {
175
175
  //#endregion
176
176
  export { follow, readEvents };
177
177
 
178
- //# sourceMappingURL=subscriptionStream-CaTWWJwt.js.map
178
+ //# sourceMappingURL=subscriptionStream-CRj9aV4K.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscriptionStream-CaTWWJwt.js","names":[],"sources":["../../client/subscriptionStream.ts"],"sourcesContent":["import type { Dispatch, SetStateAction } from \"react\";\n\nimport type { ChangeFeedMessage } from \"../services/change-feed/wire\";\nimport { equalJitter } from \"./retryPolicy\";\nimport type { SubscriptionConfig, SubscriptionStatus } from \"./useSubscription\";\n\n// `useSubscription`'s connection: the SSE request, its reader and the\n// reconnect loop. Loaded by the hook with a dynamic `import()` when it first\n// connects, so it lands in a chunk of its own rather than in the entry chunk\n// every route loads (#891). Import it as a type only from anywhere else.\n\nconst MIN_RETRY_MS = 1_000;\nconst MAX_RETRY_MS = 30_000;\n\n/** The server answered in a way retrying will not change (401, 403, 404). */\nclass FatalStatus extends Error {\n constructor(readonly status: number) {\n super(`The subscription was refused with ${status}.`);\n }\n}\n\nexport interface SubscriptionState {\n status: SubscriptionStatus;\n cursor: string | null;\n error: Error | null;\n}\n\nexport interface FollowOptions {\n endpoint: string;\n pauseWhenHidden: boolean;\n /** Where to resume; advanced as events arrive. */\n cursor: { current: string | null };\n callbacks: { current: SubscriptionConfig<unknown> };\n setState: Dispatch<SetStateAction<SubscriptionState>>;\n /** The jitter's random source; `Math.random` unless a test passes its own. */\n random?: () => number;\n}\n\n/**\n * Follows `endpoint` until the returned function is called: connects,\n * reconnects with backoff, pauses while the tab is hidden, and reports\n * through `setState` and `callbacks`.\n *\n * The backoff step is 1s, doubling per failed attempt up to 30s, and back to\n * 1s once a stream reaches `ready`. Each wait is jittered (\"equal jitter\", a\n * random point between half the step and all of it): a server restart ends\n * every open tab's stream in the same instant, and an exact schedule would\n * bring them all back in the same instant too. A `Retry-After` the server\n * sent is waited out exactly.\n */\nexport function follow({\n endpoint,\n pauseWhenHidden,\n cursor,\n callbacks,\n setState,\n random = Math.random,\n}: FollowOptions): () => void {\n let stopped = false;\n let request: AbortController | null = null;\n let resume: (() => void) | null = null;\n let retryMs = MIN_RETRY_MS;\n const hidden = () =>\n pauseWhenHidden && typeof document !== \"undefined\" && document.visibilityState === \"hidden\";\n const onVisibilityChange = () => {\n if (hidden()) request?.abort();\n else resume?.();\n };\n if (typeof document !== \"undefined\") {\n document.addEventListener(\"visibilitychange\", onVisibilityChange);\n }\n const wait = (ms: number) =>\n new Promise<void>((resolve) => {\n const timer = setTimeout(done, ms);\n function done() {\n clearTimeout(timer);\n resume = null;\n resolve();\n }\n // Shown again, or unmounted: stop waiting.\n resume = done;\n });\n\n void (async () => {\n while (!stopped) {\n if (hidden()) {\n setState((s) => ({ ...s, status: \"paused\" }));\n await new Promise<void>((resolve) => (resume = resolve));\n resume = null;\n continue;\n }\n setState((s) => ({ ...s, status: \"connecting\" }));\n const controller = (request = new AbortController());\n let delay = retryMs;\n let exact = false;\n try {\n const headers: Record<string, string> = { Accept: \"text/event-stream\" };\n if (cursor.current) headers[\"Last-Event-ID\"] = cursor.current;\n const response = await fetch(endpoint, { headers, signal: controller.signal });\n if (!response.ok || !response.body) {\n const status = response.status;\n if (status >= 400 && status < 500 && status !== 408 && status !== 429) {\n throw new FatalStatus(status);\n }\n const retryAfter = Number(response.headers.get(\"Retry-After\"));\n if (Number.isFinite(retryAfter) && retryAfter > 0) {\n delay = retryAfter * 1000;\n exact = true;\n }\n throw new Error(`The subscription answered ${status}.`);\n }\n for await (const { id, message } of readEvents(response.body)) {\n if (stopped) return;\n if (id !== undefined) cursor.current = id;\n if (message.type === \"ready\") {\n retryMs = MIN_RETRY_MS;\n delay = MIN_RETRY_MS;\n setState({ status: \"open\", cursor: cursor.current, error: null });\n } else {\n setState((s) => ({ ...s, cursor: cursor.current }));\n if (message.type === \"change\") callbacks.current.onChange?.(message as never);\n else if (message.type === \"reset\") callbacks.current.onReset?.(message as never);\n }\n }\n } catch (error) {\n if (stopped) return;\n if (error instanceof FatalStatus) {\n setState((s) => ({ ...s, status: \"closed\", error }));\n return;\n }\n // Aborted because the tab was hidden: the loop pauses instead.\n if (controller.signal.aborted) continue;\n setState((s) => ({ ...s, error: error as Error }));\n }\n if (stopped || controller.signal.aborted) continue;\n // The stream ended or failed: try again, a little later each time.\n setState((s) => ({ ...s, status: \"connecting\" }));\n await wait(exact ? delay : equalJitter(delay, random));\n retryMs = Math.min(retryMs * 2, MAX_RETRY_MS);\n }\n })();\n\n return () => {\n stopped = true;\n request?.abort();\n resume?.();\n if (typeof document !== \"undefined\") {\n document.removeEventListener(\"visibilitychange\", onVisibilityChange);\n }\n };\n}\n\n/**\n * The events of an SSE body: `id` and the JSON `data`. Comments (keepalives)\n * and events without data are skipped; an event whose data is not JSON is\n * dropped rather than ending the stream.\n */\nexport async function* readEvents(\n body: ReadableStream<Uint8Array>,\n): AsyncGenerator<{ id?: string; message: ChangeFeedMessage }> {\n const reader = body.getReader();\n const decoder = new TextDecoder();\n let buffer = \"\";\n try {\n for (;;) {\n const { done, value } = await reader.read();\n if (done) return;\n // `ChangeFeed.stream` writes `\\n` only; a proxy's `\\r\\n` is folded here.\n buffer = (buffer + decoder.decode(value, { stream: true })).replace(/\\r\\n?/g, \"\\n\");\n let boundary = buffer.indexOf(\"\\n\\n\");\n while (boundary !== -1) {\n const block = buffer.slice(0, boundary);\n buffer = buffer.slice(boundary + 2);\n boundary = buffer.indexOf(\"\\n\\n\");\n let id: string | undefined;\n const data: string[] = [];\n for (const line of block.split(\"\\n\")) {\n if (line === \"\" || line.startsWith(\":\")) continue;\n const colon = line.indexOf(\":\");\n const field = colon === -1 ? line : line.slice(0, colon);\n let text = colon === -1 ? \"\" : line.slice(colon + 1);\n if (text.startsWith(\" \")) text = text.slice(1);\n if (field === \"id\") id = text;\n else if (field === \"data\") data.push(text);\n }\n if (data.length === 0) continue;\n try {\n yield { id, message: JSON.parse(data.join(\"\\n\")) };\n } catch {\n // Not JSON: not ours to apply.\n }\n }\n }\n } finally {\n await reader.cancel().catch(() => {});\n }\n}\n"],"mappings":";;AAWA,IAAM,eAAe;AACrB,IAAM,eAAe;;AAGrB,IAAM,cAAN,cAA0B,MAAM;CACT;CAArB,YAAY,QAAyB;EACnC,MAAM,qCAAqC,OAAO,EAAE;EADjC,KAAA,SAAA;CAErB;AACF;;;;;;;;;;;;;AA+BA,SAAgB,OAAO,EACrB,UACA,iBACA,QACA,WACA,UACA,SAAS,KAAK,UACc;CAC5B,IAAI,UAAU;CACd,IAAI,UAAkC;CACtC,IAAI,SAA8B;CAClC,IAAI,UAAU;CACd,MAAM,eACJ,mBAAmB,OAAO,aAAa,eAAe,SAAS,oBAAoB;CACrF,MAAM,2BAA2B;EAC/B,IAAI,OAAO,GAAG,SAAS,MAAM;OACxB,SAAS;CAChB;CACA,IAAI,OAAO,aAAa,aACtB,SAAS,iBAAiB,oBAAoB,kBAAkB;CAElE,MAAM,QAAQ,OACZ,IAAI,SAAe,YAAY;EAC7B,MAAM,QAAQ,WAAW,MAAM,EAAE;EACjC,SAAS,OAAO;GACd,aAAa,KAAK;GAClB,SAAS;GACT,QAAQ;EACV;EAEA,SAAS;CACX,CAAC;CAEH,CAAM,YAAY;EAChB,OAAO,CAAC,SAAS;GACf,IAAI,OAAO,GAAG;IACZ,UAAU,OAAO;KAAE,GAAG;KAAG,QAAQ;IAAS,EAAE;IAC5C,MAAM,IAAI,SAAe,YAAa,SAAS,OAAQ;IACvD,SAAS;IACT;GACF;GACA,UAAU,OAAO;IAAE,GAAG;IAAG,QAAQ;GAAa,EAAE;GAChD,MAAM,aAAc,UAAU,IAAI,gBAAgB;GAClD,IAAI,QAAQ;GACZ,IAAI,QAAQ;GACZ,IAAI;IACF,MAAM,UAAkC,EAAE,QAAQ,oBAAoB;IACtE,IAAI,OAAO,SAAS,QAAQ,mBAAmB,OAAO;IACtD,MAAM,WAAW,MAAM,MAAM,UAAU;KAA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AAC,CAAC,YAAY,CAAC,CAAC;CACtC;AACF"}
1
+ {"version":3,"file":"subscriptionStream-CRj9aV4K.js","names":[],"sources":["../../client/subscriptionStream.ts"],"sourcesContent":["import type { Dispatch, SetStateAction } from \"react\";\n\nimport type { ChangeFeedMessage } from \"../services/change-feed/wire\";\nimport { equalJitter } from \"./retryPolicy\";\nimport type { SubscriptionConfig, SubscriptionStatus } from \"./useSubscription\";\n\n// `useSubscription`'s connection: the SSE request, its reader and the\n// reconnect loop. Loaded by the hook with a dynamic `import()` when it first\n// connects, so it lands in a chunk of its own rather than in the entry chunk\n// every route loads (#891). Import it as a type only from anywhere else.\n\nconst MIN_RETRY_MS = 1_000;\nconst MAX_RETRY_MS = 30_000;\n\n/** The server answered in a way retrying will not change (401, 403, 404). */\nclass FatalStatus extends Error {\n constructor(readonly status: number) {\n super(`The subscription was refused with ${status}.`);\n }\n}\n\nexport interface SubscriptionState {\n status: SubscriptionStatus;\n cursor: string | null;\n error: Error | null;\n}\n\nexport interface FollowOptions {\n endpoint: string;\n pauseWhenHidden: boolean;\n /** Where to resume; advanced as events arrive. */\n cursor: { current: string | null };\n callbacks: { current: SubscriptionConfig<unknown> };\n setState: Dispatch<SetStateAction<SubscriptionState>>;\n /** The jitter's random source; `Math.random` unless a test passes its own. */\n random?: () => number;\n}\n\n/**\n * Follows `endpoint` until the returned function is called: connects,\n * reconnects with backoff, pauses while the tab is hidden, and reports\n * through `setState` and `callbacks`.\n *\n * The backoff step is 1s, doubling per failed attempt up to 30s, and back to\n * 1s once a stream reaches `ready`. Each wait is jittered (\"equal jitter\", a\n * random point between half the step and all of it): a server restart ends\n * every open tab's stream in the same instant, and an exact schedule would\n * bring them all back in the same instant too. A `Retry-After` the server\n * sent is waited out exactly.\n */\nexport function follow({\n endpoint,\n pauseWhenHidden,\n cursor,\n callbacks,\n setState,\n random = Math.random,\n}: FollowOptions): () => void {\n let stopped = false;\n let request: AbortController | null = null;\n let resume: (() => void) | null = null;\n let retryMs = MIN_RETRY_MS;\n const hidden = () =>\n pauseWhenHidden && typeof document !== \"undefined\" && document.visibilityState === \"hidden\";\n const onVisibilityChange = () => {\n if (hidden()) request?.abort();\n else resume?.();\n };\n if (typeof document !== \"undefined\") {\n document.addEventListener(\"visibilitychange\", onVisibilityChange);\n }\n const wait = (ms: number) =>\n new Promise<void>((resolve) => {\n const timer = setTimeout(done, ms);\n function done() {\n clearTimeout(timer);\n resume = null;\n resolve();\n }\n // Shown again, or unmounted: stop waiting.\n resume = done;\n });\n\n void (async () => {\n while (!stopped) {\n if (hidden()) {\n setState((s) => ({ ...s, status: \"paused\" }));\n await new Promise<void>((resolve) => (resume = resolve));\n resume = null;\n continue;\n }\n setState((s) => ({ ...s, status: \"connecting\" }));\n const controller = (request = new AbortController());\n let delay = retryMs;\n let exact = false;\n try {\n const headers: Record<string, string> = { Accept: \"text/event-stream\" };\n if (cursor.current) headers[\"Last-Event-ID\"] = cursor.current;\n const response = await fetch(endpoint, { headers, signal: controller.signal });\n if (!response.ok || !response.body) {\n const status = response.status;\n if (status >= 400 && status < 500 && status !== 408 && status !== 429) {\n throw new FatalStatus(status);\n }\n const retryAfter = Number(response.headers.get(\"Retry-After\"));\n if (Number.isFinite(retryAfter) && retryAfter > 0) {\n delay = retryAfter * 1000;\n exact = true;\n }\n throw new Error(`The subscription answered ${status}.`);\n }\n for await (const { id, message } of readEvents(response.body)) {\n if (stopped) return;\n if (id !== undefined) cursor.current = id;\n if (message.type === \"ready\") {\n retryMs = MIN_RETRY_MS;\n delay = MIN_RETRY_MS;\n setState({ status: \"open\", cursor: cursor.current, error: null });\n } else {\n setState((s) => ({ ...s, cursor: cursor.current }));\n if (message.type === \"change\") callbacks.current.onChange?.(message as never);\n else if (message.type === \"reset\") callbacks.current.onReset?.(message as never);\n }\n }\n } catch (error) {\n if (stopped) return;\n if (error instanceof FatalStatus) {\n setState((s) => ({ ...s, status: \"closed\", error }));\n return;\n }\n // Aborted because the tab was hidden: the loop pauses instead.\n if (controller.signal.aborted) continue;\n setState((s) => ({ ...s, error: error as Error }));\n }\n if (stopped || controller.signal.aborted) continue;\n // The stream ended or failed: try again, a little later each time.\n setState((s) => ({ ...s, status: \"connecting\" }));\n await wait(exact ? delay : equalJitter(delay, random));\n retryMs = Math.min(retryMs * 2, MAX_RETRY_MS);\n }\n })();\n\n return () => {\n stopped = true;\n request?.abort();\n resume?.();\n if (typeof document !== \"undefined\") {\n document.removeEventListener(\"visibilitychange\", onVisibilityChange);\n }\n };\n}\n\n/**\n * The events of an SSE body: `id` and the JSON `data`. Comments (keepalives)\n * and events without data are skipped; an event whose data is not JSON is\n * dropped rather than ending the stream.\n */\nexport async function* readEvents(\n body: ReadableStream<Uint8Array>,\n): AsyncGenerator<{ id?: string; message: ChangeFeedMessage }> {\n const reader = body.getReader();\n const decoder = new TextDecoder();\n let buffer = \"\";\n try {\n for (;;) {\n const { done, value } = await reader.read();\n if (done) return;\n // `ChangeFeed.stream` writes `\\n` only; a proxy's `\\r\\n` is folded here.\n buffer = (buffer + decoder.decode(value, { stream: true })).replace(/\\r\\n?/g, \"\\n\");\n let boundary = buffer.indexOf(\"\\n\\n\");\n while (boundary !== -1) {\n const block = buffer.slice(0, boundary);\n buffer = buffer.slice(boundary + 2);\n boundary = buffer.indexOf(\"\\n\\n\");\n let id: string | undefined;\n const data: string[] = [];\n for (const line of block.split(\"\\n\")) {\n if (line === \"\" || line.startsWith(\":\")) continue;\n const colon = line.indexOf(\":\");\n const field = colon === -1 ? line : line.slice(0, colon);\n let text = colon === -1 ? \"\" : line.slice(colon + 1);\n if (text.startsWith(\" \")) text = text.slice(1);\n if (field === \"id\") id = text;\n else if (field === \"data\") data.push(text);\n }\n if (data.length === 0) continue;\n try {\n yield { id, message: JSON.parse(data.join(\"\\n\")) };\n } catch {\n // Not JSON: not ours to apply.\n }\n }\n }\n } finally {\n await reader.cancel().catch(() => {});\n }\n}\n"],"mappings":";;AAWA,IAAM,eAAe;AACrB,IAAM,eAAe;;AAGrB,IAAM,cA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C;CACjD,4CA2FA,CAAC"}
1
+ {"version":3,"file":"Head.d.ts","sourceRoot":"","sources":["../../client/Head.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAc,MAAM,OAAO,CAAC;AAuDnD,wBAAgB,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,QAoF3D;AA6ED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B;+EAC2E;IAC3E,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IACnC,iEAAiE;IACjE,iBAAiB,CAAC,EAAE,gBAAgB,GAAG,iBAAiB,GAAG,kBAAkB,CAAC;CAC/E;AAED,yEAAyE;AACzE,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAcD,eAAO,MAAM,IAAI,GAAI,8CAKlB;IACD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oFAAoF;IACpF,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,cAAc,EAAE,CAAC;CACjD,4CA+FA,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createRoot.d.ts","sourceRoot":"","sources":["../../client/createRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIzD,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,wBAAgB,UAAU,CACxB,UAAU,EAAE,aAAa,CAAC,eAAe,CAAC,EAC1C,OAAO,GAAE,iBAAsB,IAMvB,OAAO,GAAG,6CAcnB"}
1
+ {"version":3,"file":"createRoot.d.ts","sourceRoot":"","sources":["../../client/createRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIzD,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,wBAAgB,UAAU,CACxB,UAAU,EAAE,aAAa,CAAC,eAAe,CAAC,EAC1C,OAAO,GAAE,iBAAsB,IAQvB,OAAO,GAAG,6CAgBnB"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * The request's CSP nonce while the view router renders a hydrated page on the
3
+ * server (#1195). `null` in the browser, which reads it off the document
4
+ * instead, and in a static view, which has none.
5
+ */
6
+ export declare const CspNonceContext: import("react").Context<string>;
7
+ /**
8
+ * The nonce the server rendered this document with, read from a script that
9
+ * carries one. Browsers hide a nonce from `getAttribute` (and from CSS
10
+ * selectors) once the element is in the document, but not from the `nonce`
11
+ * property, which is what this reads. `undefined` on a page without one.
12
+ */
13
+ export declare function readDocumentNonce(): string | undefined;
14
+ /** Gives `element` the document's nonce, for one gemi adds to the page itself. */
15
+ export declare function applyDocumentNonce(element: HTMLElement): void;
16
+ /**
17
+ * The page's CSP nonce, for an inline `<script>` or `<style>` the app renders
18
+ * itself: the same one gemi puts on its own, so a strict policy
19
+ * (`csp: true` in the view config, or the app's own header built from
20
+ * `cspNonce()`) lets it run.
21
+ *
22
+ * ```tsx
23
+ * const nonce = useCspNonce();
24
+ * <script nonce={nonce} suppressHydrationWarning dangerouslySetInnerHTML={{ __html: snippet }} />
25
+ * ```
26
+ *
27
+ * `suppressHydrationWarning` because the browser hides the attribute's value
28
+ * once the page loads, so React would otherwise report a mismatch while
29
+ * hydrating. `undefined` in a static view (which uses hashes, not nonces) and
30
+ * on a page rendered without one.
31
+ */
32
+ export declare function useCspNonce(): string | undefined;
33
+ //# sourceMappingURL=cspNonce.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cspNonce.d.ts","sourceRoot":"","sources":["../../client/cspNonce.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,eAAe,iCAAqC,CAAC;AAIlE;;;;;GAKG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,GAAG,SAAS,CAOtD;AAED,kFAAkF;AAClF,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,QAKtD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,IAAI,MAAM,GAAG,SAAS,CAEhD"}
@@ -1,5 +1,6 @@
1
1
  /// <reference path="../gemi.d.ts" />
2
2
  export { useQuery } from "./useQuery";
3
+ export { useCspNonce } from "./cspNonce";
3
4
  export type { QueryResult, GemiQueryDefaults } from "./useQuery";
4
5
  export { useInfiniteQuery } from "./useInfiniteQuery";
5
6
  export type { InfiniteQueryConfig, InfiniteQueryReturn, } from "./useInfiniteQuery";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../client/index.ts"],"names":[],"mappings":";AAMA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EACV,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,YAAY,EACV,YAAY,EACZ,WAAW,EACX,gBAAgB,GACjB,MAAM,eAAe,CAA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AAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,YAAY,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC3E,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC"}
@@ -1,4 +1,4 @@
1
- import { $ as QueryManagerProvider, A as useNavigate, C as loadDictionaryForRender, D as routeDataUrl, E as readRoutePayload, F as useLocation, G as realtime, H as configureRealtime, I as domainUrl, J as loadedModule, K as reconnectRealtime, L as isAbsoluteUrl, M as I18nProvider, N as ServerDataContext, O as useRoute, P as ServerDataProvider, Q as QueryManagerContext, S as loadDictionary, T as setActiveLocale, U as followLive, V as RealtimeContext, X as applyParams$1, Y as toVariantKey, Z as QueryConfigContext, _ as isChunkLoadError, _t as Subject, a as useRouteTransition, at as resetAuthenticationIncident, b as recoverFromBuildMismatch, c as ClientRouterContext, ct as isExternalRedirect, d as ComponentsProvider, et as USER_QUERY_CONFIG_KEYS, f as initialViewModulesReady, ft as isRetryableQueryError, g as configureChunkLoadRecovery, gt as QueryError, h as CHUNK_RELOAD_MARKER, ht as shouldRetryQuery, i as RouteTransitionProvider, it as reportAuthenticationRefusal, j as I18nContext, k as useSearchParams, l as ClientRouterProvider, lt as safeRedirectPath, m as subscribeViewModules, mt as retryDelayFor, n as useTheme, nt as DEFAULT_STALE_TIME, o as useChannelSubscription, ot as setAuthenticationNavigator, p as loadViewModule, q as loadLazy, r as m, rt as configureAuthenticationErrors, s as useCoalesced, st as INTENDED_URL_PARAM, t as ThemeProvider, tt as pickDefined, u as ComponentsContext, ut as readResponseBody, v as navigationStarted, w as registerDictionary, x as recoverFromChunkLoadError, y as otherBuild, z as Action } from "../chunks/ThemeProvider-G2g5Z1ZS.js";
1
+ import { $ as applyParams$1, A as useNavigate, C as loadDictionaryForRender, D as routeDataUrl, E as readRoutePayload, F as useLocation, G as configureRealtime, H as applyDocumentNonce, I as domainUrl, J as realtime, K as followLive, L as isAbsoluteUrl, M as I18nProvider, N as ServerDataContext, O as useRoute, P as ServerDataProvider, Q as toVariantKey, S as loadDictionary, T as setActiveLocale, U as useCspNonce, V as CspNonceContext, W as RealtimeContext, X as loadLazy, Y as reconnectRealtime, Z as loadedModule, _ as isChunkLoadError, _t as retryDelayFor, a as useRouteTransition, at as DEFAULT_STALE_TIME, b as recoverFromBuildMismatch, bt as Subject, c as ClientRouterContext, ct as resetAuthenticationIncident, d as ComponentsProvider, dt as isExternalRedirect, et as QueryConfigContext, f as initialViewModulesReady, ft as safeRedirectPath, g as configureChunkLoadRecovery, h as CHUNK_RELOAD_MARKER, ht as isRetryableQueryError, i as RouteTransitionProvider, it as pickDefined, j as I18nContext, k as useSearchParams, l as ClientRouterProvider, lt as setAuthenticationNavigator, m as subscribeViewModules, n as useTheme, nt as QueryManagerProvider, o as useChannelSubscription, ot as configureAuthenticationErrors, p as loadViewModule, pt as readResponseBody, r as m, rt as USER_QUERY_CONFIG_KEYS, s as useCoalesced, st as reportAuthenticationRefusal, t as ThemeProvider, tt as QueryManagerContext, u as ComponentsContext, ut as INTENDED_URL_PARAM, v as navigationStarted, vt as shouldRetryQuery, w as registerDictionary, x as recoverFromChunkLoadError, y as otherBuild, yt as QueryError, z as Action } from "../chunks/ThemeProvider-D33bPpf8.js";
2
2
  import { n as RouteStateContext, r as RouteStateProvider, t as useParams } from "../chunks/useParams-BN3XXfmG.js";
3
3
  import { a as isNetworkError, c as isPermissionError, d as isValidationError, f as mutationErrorField, h as mutationErrorList, i as isHttpError, l as isRateLimitError, m as mutationErrorKind, n as isCsrfError, o as isNotFoundError, p as mutationErrorFromBody, r as isFormError, s as isObject, t as isAuthenticationError, u as isServerError } from "../chunks/MutationError-DuKqBW8o.js";
4
4
  import { Fragment, StrictMode, Suspense, createContext, createElement, isValidElement, lazy, memo, use, useCallback, useContext, useDeferredValue, useEffect, useInsertionEffect, useMemo, useRef, useState, useSyncExternalStore, useTransition } from "react";
@@ -562,7 +562,7 @@ var SOCKET_ID_HEADER = "x-gemi-socket";
562
562
  */
563
563
  var mutationExtras = {
564
564
  current: null,
565
- load: () => import("../chunks/mutationExtras-HC7AC6zn.js")
565
+ load: () => import("../chunks/mutationExtras-BbDboF8F.js")
566
566
  };
567
567
  /** Starts loading `./mutationExtras`: the hooks' mount effect. */
568
568
  function preloadMutationExtras() {
@@ -920,7 +920,7 @@ function useMutate() {
920
920
  //#region client/fetchFile.ts
921
921
  var request = {
922
922
  current: null,
923
- load: () => import("../chunks/fetchFileRequest-Bzva9J59.js")
923
+ load: () => import("../chunks/fetchFileRequest-Cp0QjioM.js")
924
924
  };
925
925
  /**
926
926
  * Downloads a file route's body as a `Blob`.
@@ -986,7 +986,7 @@ function useSetQueryData() {
986
986
  //#endregion
987
987
  //#region client/useSubscription.ts
988
988
  /** `./subscriptionStream`, loaded on first use. Replaceable in tests. */
989
- var streamModule = { load: () => import("../chunks/subscriptionStream-CaTWWJwt.js") };
989
+ var streamModule = { load: () => import("../chunks/subscriptionStream-CRj9aV4K.js") };
990
990
  /**
991
991
  * Follows a route that answers with `ChangeFeed.stream`, as long as the
992
992
  * component is mounted: each change reaches `onChange`, in order, exactly
@@ -1766,6 +1766,7 @@ function updateMeta(meta, locale) {
1766
1766
  if (newFontRules.length > 0) {
1767
1767
  const style = document.createElement("style");
1768
1768
  style.setAttribute(GEMI_FONTS_ATTRIBUTE, "");
1769
+ applyDocumentNonce(style);
1769
1770
  style.textContent = newFontRules.join("\n");
1770
1771
  document.head.appendChild(style);
1771
1772
  for (const rule of newFontRules) appliedFontRules.add(rule);
@@ -1863,6 +1864,7 @@ function themeColors(themeColor) {
1863
1864
  }
1864
1865
  var Head = ({ children = null, charSet = "utf-8", viewport, themeColor }) => {
1865
1866
  const { meta } = useContext(ServerDataContext);
1867
+ const nonce = useCspNonce();
1866
1868
  if (meta?.htmlAttributes) htmlAttributesApplied = true;
1867
1869
  if (meta?.translate === true && typeof window !== "undefined") notranslateRemoved = true;
1868
1870
  const fontRules = fontFaceRules(meta?.fonts);
@@ -1917,6 +1919,8 @@ var Head = ({ children = null, charSet = "utf-8", viewport, themeColor }) => {
1917
1919
  }, `preload:${preload.href}`)),
1918
1920
  fontRules.length > 0 && /* @__PURE__ */ jsx("style", {
1919
1921
  [GEMI_FONTS_ATTRIBUTE]: "",
1922
+ nonce,
1923
+ suppressHydrationWarning: true,
1920
1924
  dangerouslySetInnerHTML: { __html: fontRules.join("\n") }
1921
1925
  }),
1922
1926
  children
@@ -2435,11 +2439,14 @@ function createRoot(RootLayout, options = {}) {
2435
2439
  value: props.serverQueries ?? null,
2436
2440
  children: /* @__PURE__ */ jsx(DictionarySinkContext.Provider, {
2437
2441
  value: props.dictionarySink ?? null,
2438
- children: /* @__PURE__ */ jsx(ClientRouter, {
2439
- RootLayout: props.rootLayout ?? RootLayout,
2440
- viewImportMap: props.viewImportMap,
2441
- viewModules: props.viewModules,
2442
- queryConfig: options.queryConfig
2442
+ children: /* @__PURE__ */ jsx(CspNonceContext.Provider, {
2443
+ value: props.cspNonce ?? null,
2444
+ children: /* @__PURE__ */ jsx(ClientRouter, {
2445
+ RootLayout: props.rootLayout ?? RootLayout,
2446
+ viewImportMap: props.viewImportMap,
2447
+ viewModules: props.viewModules,
2448
+ queryConfig: options.queryConfig
2449
+ })
2443
2450
  })
2444
2451
  })
2445
2452
  })
@@ -3278,6 +3285,6 @@ function onStaticNavigate(callback) {
3278
3285
  return () => document.removeEventListener("gemi:page-load", listener);
3279
3286
  }
3280
3287
  //#endregion
3281
- export { CHUNK_RELOAD_MARKER, Form, FormError, FormFieldContainer, Head, Image, Link, OpenGraphImage, QueryError, QueryManagerProvider, Redirect, ValidationErrors, configureRealtime, create, createRoot, defineDictionary, fetchBlob, fetchText, init, isAuthenticationError, isChunkLoadError, isCsrfError, isFormError, isHttpError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isRetryableQueryError, isServerError, isValidationError, island, mutationErrorField, mutationErrorKind, mutationErrorList, onStaticNavigate, recoverFromChunkLoadError, textDirection, useAppIdMissmatch, useBreadcrumbs, useChannel, useChannelInvalidate, useDelete, useDictionary, useDomain, useEmailCode, useFeature, useFeatures, useForgotPassword, useFormData, useFormStatus, useFormatter, useInfiniteQuery, useIntendedUrl, useIsNavigationPending, useLocale, useLocation, useMutate, useMutation, useMutationStatus, useNavigate, useNavigationProgress, useParams, usePatch, usePost, usePrefetch, usePut, useQuery, useResetPassword, useRoute, useRouteTransition, useSearchParams, useSetQueryData, useSignIn, useSignOut, useSignUp, useSubscription, useTheme, useTranslator, useUpload, useUser };
3288
+ export { CHUNK_RELOAD_MARKER, Form, FormError, FormFieldContainer, Head, Image, Link, OpenGraphImage, QueryError, QueryManagerProvider, Redirect, ValidationErrors, configureRealtime, create, createRoot, defineDictionary, fetchBlob, fetchText, init, isAuthenticationError, isChunkLoadError, isCsrfError, isFormError, isHttpError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isRetryableQueryError, isServerError, isValidationError, island, mutationErrorField, mutationErrorKind, mutationErrorList, onStaticNavigate, recoverFromChunkLoadError, textDirection, useAppIdMissmatch, useBreadcrumbs, useChannel, useChannelInvalidate, useCspNonce, useDelete, useDictionary, useDomain, useEmailCode, useFeature, useFeatures, useForgotPassword, useFormData, useFormStatus, useFormatter, useInfiniteQuery, useIntendedUrl, useIsNavigationPending, useLocale, useLocation, useMutate, useMutation, useMutationStatus, useNavigate, useNavigationProgress, useParams, usePatch, usePost, usePrefetch, usePut, useQuery, useResetPassword, useRoute, useRouteTransition, useSearchParams, useSetQueryData, useSignIn, useSignOut, useSignUp, useSubscription, useTheme, useTranslator, useUpload, useUser };
3282
3289
 
3283
3290
  //# sourceMappingURL=index.js.map