@marimo-team/islands 0.22.1-dev4 → 0.22.1-dev41

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 (483) hide show
  1. package/dist/{ConnectedDataExplorerComponent-Dl1grr8z.js → ConnectedDataExplorerComponent-DuD8BVl6.js} +54 -54
  2. package/dist/{Plot-WhbJAbBh.js → Plot-BxlSHo0G.js} +47 -38
  3. package/dist/_basePickBy-Sow3pJjS.js +41 -0
  4. package/dist/{_baseUniq-B4eL5sTC.js → _baseUniq-C87CckHL.js} +15 -54
  5. package/dist/{any-language-editor-CT_9yBde.js → any-language-editor-BHH_pQ6M.js} +21 -21
  6. package/dist/architecture-7HQA4BMR-BHdkAMvZ.js +6 -0
  7. package/dist/{architectureDiagram-VXUJARFQ-vxgYGIMP.js → architectureDiagram-VXUJARFQ-B3YQo9At.js} +15 -15
  8. package/dist/{arrays-Du-jRBAy.js → arrays-beUWo8RF.js} +1 -1
  9. package/dist/assets/__vite-browser-external-WSlCcXn_.js +1 -0
  10. package/dist/assets/{worker-D10K3OOz.js → worker-DUYMdbtA.js} +2 -2
  11. package/dist/{blockDiagram-VD42YOAC-C7x6YTH7.js → blockDiagram-VD42YOAC-CpQ3TKEN.js} +7 -7
  12. package/dist/{button-qsiIHncQ.js → button-DNlNlZY_.js} +82 -84
  13. package/dist/{c4Diagram-YG6GDRKO-Cx4oseGg.js → c4Diagram-YG6GDRKO-CZSU4uqU.js} +4 -4
  14. package/dist/{capabilities-26mwv03y.js → capabilities-Coe9eM9T.js} +2 -2
  15. package/dist/{channel-C_50jIAn.js → channel-X3JKk8gE.js} +1 -1
  16. package/dist/{chat-ui-CtqUthFR.js → chat-ui-Cel1kBfc.js} +147 -146
  17. package/dist/{check-D_YwHEgY.js → check-CWUkiHmb.js} +1 -1
  18. package/dist/{chunk-4F5CHEZ2-Dvo_CFnR.js → chunk-4F5CHEZ2-D5mClyDv.js} +1 -1
  19. package/dist/{chunk-ABZYJK2D-D5YIs71w.js → chunk-ABZYJK2D-CZYCCtLy.js} +1 -1
  20. package/dist/{chunk-ATLVNIR6-CyOjzOcf.js → chunk-ATLVNIR6-DaOzLLgN.js} +1 -1
  21. package/dist/{chunk-B2363JML-BzZqINRO.js → chunk-B2363JML-Br0eA2T3.js} +1 -1
  22. package/dist/{chunk-B4BG7PRW-ZJeV3KdD.js → chunk-B4BG7PRW-4BjV11Br.js} +4 -4
  23. package/dist/{chunk-DI55MBZ5-Dx_wwX6l.js → chunk-DI55MBZ5-DITY3EyP.js} +4 -4
  24. package/dist/{chunk-EXTU4WIE-CgefpSXQ.js → chunk-EXTU4WIE-jUPSAk3i.js} +1 -1
  25. package/dist/{chunk-FRFDVMJY-Derq8UzY.js → chunk-FRFDVMJY-DnEvEFRR.js} +1 -1
  26. package/dist/{chunk-JA3XYJ7Z-CcIOIFpc.js → chunk-JA3XYJ7Z-BcPEfxk_.js} +2 -2
  27. package/dist/{chunk-JZLCHNYA-CgO0GG1p.js → chunk-JZLCHNYA-2bnLL3xL.js} +4 -4
  28. package/dist/{chunk-N4CR4FBY-2qzGzAxT.js → chunk-N4CR4FBY-CpZSuGSU.js} +5 -5
  29. package/dist/{chunk-PL6DKKU2-KoG71Zin.js → chunk-PL6DKKU2-DnId6G-x.js} +1 -1
  30. package/dist/{chunk-QN33PNHL-Dp1qBo28.js → chunk-QN33PNHL-B9p5ojHB.js} +1 -1
  31. package/dist/{chunk-QXUST7PY-BxmmeIwf.js → chunk-QXUST7PY-Ch6F5Obl.js} +5 -5
  32. package/dist/{chunk-S3R3BYOJ-D3Rys9ZW.js → chunk-S3R3BYOJ-B0UOFJwq.js} +3 -3
  33. package/dist/{chunk-SJTYNZTY-Co-DhKAG.js → chunk-SJTYNZTY-BsBZnJUj.js} +1 -1
  34. package/dist/{chunk-TCCFYFTB-BAhzIqBO.js → chunk-TCCFYFTB-Clbl-fTg.js} +8 -7
  35. package/dist/{chunk-TQ3KTPDO-DxYI735Z.js → chunk-TQ3KTPDO-CFkSQ30e.js} +1 -1
  36. package/dist/{chunk-TZMSLE5B-Dxumt0wv.js → chunk-TZMSLE5B-D45397J2.js} +1 -1
  37. package/dist/{chunk-UMXZTB3W-CuahpKin.js → chunk-UMXZTB3W-D-A834Bq.js} +1 -1
  38. package/dist/{classDiagram-v2-WZHVMYZB-CYoFMQKE.js → classDiagram-2ON5EDUG-C8-zE3Zv.js} +10 -10
  39. package/dist/{classDiagram-2ON5EDUG-DkOvXRlx.js → classDiagram-v2-WZHVMYZB-DrmbGANl.js} +10 -10
  40. package/dist/{clone-DDndUqI0.js → clone-DZFQCtFJ.js} +1 -1
  41. package/dist/{constants-D1Am36hX.js → constants-CvyfaCvs.js} +3 -3
  42. package/dist/{copy-CBo9JcJW.js → copy-B7781WJ3.js} +2 -2
  43. package/dist/{dagre-6UL2VRFP-BXBaU8PB.js → dagre-6UL2VRFP-OMItEBnY.js} +12 -12
  44. package/dist/{dagre-D3dlYz-r.js → dagre-QVd-lCXU.js} +13 -23
  45. package/dist/{data-grid-overlay-editor-nZux6_d2.js → data-grid-overlay-editor-lKF301ME.js} +1 -1
  46. package/dist/{diagram-PSM6KHXK-CJxjk4LG.js → diagram-PSM6KHXK-CkKbohWI.js} +16 -16
  47. package/dist/{diagram-QEK2KX5R-IMILPh_p.js → diagram-QEK2KX5R-DjUMpVcx.js} +14 -14
  48. package/dist/{diagram-S2PKOQOG-6O0g6Boj.js → diagram-S2PKOQOG-b-c0d-wZ.js} +14 -14
  49. package/dist/{dist-BkXs8bw0.js → dist--6TSlp8H.js} +1 -1
  50. package/dist/dist-7K5doRvB.js +6 -0
  51. package/dist/{dist-CQidOwep.js → dist-B43sbpd0.js} +3 -3
  52. package/dist/dist-B6I_A2-E.js +8 -0
  53. package/dist/dist-BEQsmaZY.js +5 -0
  54. package/dist/dist-BasY2RHp.js +8 -0
  55. package/dist/{dist-BemtTYzN.js → dist-Bfp1XXWt.js} +5 -5
  56. package/dist/{dist-v-1kgqZ3.js → dist-BjDuO5JW.js} +1 -1
  57. package/dist/dist-Bosc00dY.js +5 -0
  58. package/dist/{dist-DLNKBPsk.js → dist-BrxqmS9Q.js} +4 -4
  59. package/dist/{dist-DBYL08Lu.js → dist-BvhGByxL.js} +4 -4
  60. package/dist/{dist-CVqlhD3M.js → dist-C4bq5Ioy.js} +2 -2
  61. package/dist/{dist-DwmxBUOe.js → dist-CFKdzOIu.js} +2 -2
  62. package/dist/{dist-5nTQE2yt.js → dist-CIB8w0Fl.js} +2 -2
  63. package/dist/{dist-C-EcLtO9.js → dist-CNF0QBLR.js} +1 -1
  64. package/dist/dist-CQMZOn-_.js +8 -0
  65. package/dist/dist-CViQhWZ8.js +5 -0
  66. package/dist/{dist-Dg65j0em.js → dist-CcMfr7jD.js} +1 -1
  67. package/dist/{dist-C0XYIHKJ.js → dist-Ci0CXEFt.js} +1 -1
  68. package/dist/dist-Cz6rLfwY.js +5 -0
  69. package/dist/dist-D8eq8st3.js +6 -0
  70. package/dist/{dist-qoCY8giM.js → dist-DAfcmt-d.js} +2 -2
  71. package/dist/{dist-B6Op2ogv.js → dist-DD_cYHOl.js} +2 -2
  72. package/dist/{dist-BUSLKXcu.js → dist-DFK94vuS.js} +2 -2
  73. package/dist/{dist-DBXPlQ0D.js → dist-DGNtjMZu.js} +1 -1
  74. package/dist/{dist-C9qF7MRB.js → dist-DJ9F1eHs.js} +2 -2
  75. package/dist/{dist-Ci_jEudG.js → dist-DJKubHDd.js} +1 -1
  76. package/dist/{dist-CnFp2Kcl.js → dist-DLafRu9s.js} +2 -2
  77. package/dist/dist-DM1UDXdl.js +5 -0
  78. package/dist/dist-DNrtWPgS.js +5 -0
  79. package/dist/dist-D_UjpfOY.js +1381 -0
  80. package/dist/{dist-DmFS6KZW.js → dist-DbnBiLNH.js} +3 -3
  81. package/dist/{dist-BiZZAo22.js → dist-DlSUOIm9.js} +1 -1
  82. package/dist/{dist-DStU8He1.js → dist-Doy0mQDg.js} +2 -2
  83. package/dist/{dist-CxAX99oC.js → dist-DpkJHKB8.js} +2 -2
  84. package/dist/{dist-DjaZNkZ7.js → dist-LhQNUe5A.js} +3 -3
  85. package/dist/dist-V7q2qnpA.js +5 -0
  86. package/dist/{dist-BJ3fhRYu.js → dist-VqF3W_ue.js} +2 -2
  87. package/dist/dist-a5_hPgu2.js +8 -0
  88. package/dist/{dist-B9KLrfoh.js → dist-ej6AQKaS.js} +1 -1
  89. package/dist/{dist-Brb6VNc4.js → dist-m9tsXsFf.js} +2 -2
  90. package/dist/{dist-CBwMSFDu.js → dist-tGk0aZ--.js} +2 -2
  91. package/dist/dist-uVyZcV1-.js +5 -0
  92. package/dist/{erDiagram-Q2GNP2WA-sho7Cl9f.js → erDiagram-Q2GNP2WA-CDhLaOZ1.js} +10 -10
  93. package/dist/{error-banner-Bx9kIgrs.js → error-banner-Cjf0RU9I.js} +79 -79
  94. package/dist/{esm-CMg2ABu6.js → esm-4wmsH2lp.js} +6 -6
  95. package/dist/{esm-cqK9POGH.js → esm-CD1iby2n.js} +23 -23
  96. package/dist/{flowDiagram-NV44I4VS-C4nY4Fbz.js → flowDiagram-NV44I4VS-BDi4O4CL.js} +10 -10
  97. package/dist/{ganttDiagram-JELNMOA3-CtxNcCM2.js → ganttDiagram-JELNMOA3-BpZE6kVp.js} +3 -3
  98. package/dist/{gitGraph-G5XIXVHT-SL6TDof6.js → gitGraph-G5XIXVHT-B_c6xFJv.js} +3 -3
  99. package/dist/{gitGraphDiagram-V2S2FVAM-D9885mxd.js → gitGraphDiagram-V2S2FVAM-iQnXzbPM.js} +13 -13
  100. package/dist/{glide-data-editor-CkVEV-Gk.js → glide-data-editor-BqnvTmDo.js} +1739 -1708
  101. package/dist/{graphlib-CxWdvYQt.js → graphlib-BV1_gi0C.js} +4 -3
  102. package/dist/hasIn-DnfJcYpY.js +108 -0
  103. package/dist/{info-VBDWY6EO-6MXPTSmi.js → info-VBDWY6EO-BTyzxmhr.js} +3 -3
  104. package/dist/{infoDiagram-HS3SLOUP-Bw2FlRwF.js → infoDiagram-HS3SLOUP-OYrX6uO3.js} +13 -13
  105. package/dist/{input-BSde8uV4.js → input-CFY9gApZ.js} +5055 -5055
  106. package/dist/{isEmpty-BQtUinxJ.js → isEmpty-B7FX9wKt.js} +1 -1
  107. package/dist/{isSymbol-DFp8040B.js → isSymbol-DCbjQG_U.js} +1 -1
  108. package/dist/{journeyDiagram-XKPGCS4Q-BXlCEth8.js → journeyDiagram-XKPGCS4Q-ClPC94aN.js} +3 -3
  109. package/dist/{kanban-definition-3W4ZIXB7-CorxzSYm.js → kanban-definition-3W4ZIXB7-DHEAKdZt.js} +7 -7
  110. package/dist/{label-DTNqw9tv.js → label-DbZGAoCH.js} +538 -569
  111. package/dist/{loader-3c9hT4kT.js → loader-Bd1kgLn7.js} +19 -16
  112. package/dist/main.js +3203 -3105
  113. package/dist/{memoize-CuHciEBb.js → memoize-CSTI9eOX.js} +1 -1
  114. package/dist/{merge-CA_buyY3.js → merge-CVhG7q_o.js} +1 -1
  115. package/dist/{mermaid-CEKslOkI.js → mermaid-B2HDLx2g.js} +54 -54
  116. package/dist/{mermaid-parser.core-cq4YDee-.js → mermaid-parser.core-ntCgyx0x.js} +8 -8
  117. package/dist/min-Ds3gG0Ff.js +96 -0
  118. package/dist/{mindmap-definition-VGOIOE7T-DRsT8UaN.js → mindmap-definition-VGOIOE7T-CxEUZZvY.js} +9 -9
  119. package/dist/{now-CXAdKY5k.js → now-nrrrOr01.js} +1 -1
  120. package/dist/{once-CZno0h-b.js → once-C_TIu-kR.js} +1 -1
  121. package/dist/{packet-DYOGHKS2-Dw08gMaZ.js → packet-DYOGHKS2-BhvnpoGi.js} +3 -3
  122. package/dist/{pie-VRWISCQL-C5SPSvT8.js → pie-VRWISCQL-dILuA3iG.js} +3 -3
  123. package/dist/{pieDiagram-ADFJNKIX-DhJ1Cx2O.js → pieDiagram-ADFJNKIX-U3LrUqAS.js} +14 -14
  124. package/dist/{process-output-KyzWazB-.js → process-output-DC1TOnIl.js} +3184 -3207
  125. package/dist/{quadrantDiagram-AYHSOK5B-DXUFIWlz.js → quadrantDiagram-AYHSOK5B-BVWuq-3R.js} +2 -2
  126. package/dist/{radar-ZZBFDIW7-BvY0bgSg.js → radar-ZZBFDIW7-DwFrOJDj.js} +3 -3
  127. package/dist/range-fJeId9Ri.js +30 -0
  128. package/dist/{requirementDiagram-UZGBJVZJ-DO_gtQIb.js → requirementDiagram-UZGBJVZJ-D0zpQnKC.js} +9 -9
  129. package/dist/{sankeyDiagram-TZEHDZUN-OZzXEkuG.js → sankeyDiagram-TZEHDZUN-CExy1joT.js} +2 -2
  130. package/dist/{sequenceDiagram-WL72ISMW-K7nZRifV.js → sequenceDiagram-WL72ISMW-D1BJxLjH.js} +4 -4
  131. package/dist/{slides-component-CIcSvFh7.js → slides-component-CX2JC-Ws.js} +2 -2
  132. package/dist/{spec-DYaR1rJh.js → spec-CD7QaCV-.js} +3 -3
  133. package/dist/{stateDiagram-FKZM4ZOC-DzXJZAq7.js → stateDiagram-FKZM4ZOC-B1S8jGMn.js} +12 -12
  134. package/dist/{stateDiagram-v2-4FDKWEC3-BZBPUmyF.js → stateDiagram-v2-4FDKWEC3-BH5ozUbc.js} +10 -10
  135. package/dist/stex-CQDv3aS8.js +4 -0
  136. package/dist/style.css +1 -1
  137. package/dist/{timeline-definition-IT6M3QCI-DNoLAh-i.js → timeline-definition-IT6M3QCI-BDT9JAmn.js} +2 -2
  138. package/dist/{toDate-D6VXexnV.js → toDate-CUqpEbBS.js} +5 -5
  139. package/dist/{toNumber-xFPoy1OI.js → toNumber-55tjPCWr.js} +2 -2
  140. package/dist/tooltip-BXEpXV3R.js +404 -0
  141. package/dist/{treemap-GDKQZRPO-C5OoxpmV.js → treemap-GDKQZRPO-bx2ngsgN.js} +3 -3
  142. package/dist/{types-CQ-RbYxp.js → types-D_ntCXg0.js} +3 -3
  143. package/dist/{useAsyncData-Cd4Urlww.js → useAsyncData-rN1nzPaS.js} +2 -2
  144. package/dist/{useDeepCompareMemoize-X7clcrcQ.js → useDeepCompareMemoize-Ch-7Rk2x.js} +4 -4
  145. package/dist/{useIframeCapabilities-BVQrlRBd.js → useIframeCapabilities-CqhrVue6.js} +1 -1
  146. package/dist/useLifecycle-4fA1pHoh.js +177 -0
  147. package/dist/{useTheme-Dm1WaAGy.js → useTheme-MWfxn4oz.js} +4 -5
  148. package/dist/{vega-component-A6unyUJS.js → vega-component-CPhNLfZZ.js} +25 -25
  149. package/dist/{xychartDiagram-PRI3JC2R-ehVeySMW.js → xychartDiagram-PRI3JC2R-CuAZiqHS.js} +5 -5
  150. package/dist/{Combination-B--d1_LV.js → zod-C6UGQ3fz.js} +8085 -8151
  151. package/package.json +8 -41
  152. package/src/__mocks__/common.ts +4 -4
  153. package/src/__tests__/main.test.tsx +12 -14
  154. package/src/components/ai/ai-provider-icon.tsx +3 -2
  155. package/src/components/app-config/user-config-form.tsx +0 -27
  156. package/src/components/chat/acp/agent-docs.tsx +3 -3
  157. package/src/components/chat/acp/agent-panel.tsx +71 -24
  158. package/src/components/chat/acp/agent-selector.tsx +2 -11
  159. package/src/components/chat/acp/state.ts +15 -3
  160. package/src/components/chat/chat-history-popover.tsx +1 -1
  161. package/src/components/chat/chat-panel.tsx +2 -1
  162. package/src/components/data-table/TableBottomBar.tsx +12 -1
  163. package/src/components/data-table/TableTopBar.tsx +31 -35
  164. package/src/components/data-table/__tests__/columns.test.tsx +7 -7
  165. package/src/components/data-table/cell-hover-template/types.ts +1 -1
  166. package/src/components/data-table/cell-hover-text/types.ts +1 -1
  167. package/src/components/data-table/cell-selection/__tests__/feature.test.ts +1 -1
  168. package/src/components/data-table/cell-selection/types.ts +4 -3
  169. package/src/components/data-table/cell-styling/types.ts +1 -1
  170. package/src/components/data-table/charts/chart-spec/altair-generator.ts +2 -2
  171. package/src/components/data-table/charts/charts.tsx +42 -13
  172. package/src/components/data-table/charts/components/chart-items.tsx +1 -1
  173. package/src/components/data-table/column-explorer-panel/column-explorer.tsx +1 -1
  174. package/src/components/data-table/column-formatting/types.ts +5 -4
  175. package/src/components/data-table/column-header.tsx +4 -2
  176. package/src/components/data-table/column-summary/legacy-chart-spec.ts +1 -1
  177. package/src/components/data-table/column-wrapping/types.ts +4 -3
  178. package/src/components/data-table/columns.tsx +4 -1
  179. package/src/components/data-table/copy-column/types.ts +4 -3
  180. package/src/components/data-table/data-table.tsx +16 -11
  181. package/src/components/data-table/focus-row/types.ts +4 -3
  182. package/src/components/data-table/loading-table.tsx +5 -2
  183. package/src/components/data-table/pagination.tsx +1 -1
  184. package/src/components/data-table/range-focus/__tests__/atoms.test.ts +13 -13
  185. package/src/components/data-table/range-focus/__tests__/use-cell-range-selection.test.ts +9 -11
  186. package/src/components/data-table/range-focus/atoms.ts +2 -2
  187. package/src/components/data-table/range-focus/cell-selection-stats.tsx +3 -1
  188. package/src/components/data-table/row-viewer-panel/row-viewer.tsx +1 -1
  189. package/src/components/data-table/table-explorer-panel/table-explorer-panel.tsx +2 -2
  190. package/src/components/dependency-graph/dependency-graph-tree.tsx +1 -1
  191. package/src/components/editor/__tests__/data-attributes.test.tsx +93 -94
  192. package/src/components/editor/__tests__/dynamic-favicon.test.tsx +1 -1
  193. package/src/components/editor/actions/name-cell-input.tsx +4 -2
  194. package/src/components/editor/actions/pair-with-agent-modal.tsx +142 -0
  195. package/src/components/editor/actions/useCellActionButton.tsx +4 -2
  196. package/src/components/editor/actions/useNotebookActions.tsx +10 -0
  197. package/src/components/editor/ai/add-cell-with-ai.tsx +2 -1
  198. package/src/components/editor/ai/ai-completion-editor.tsx +1 -1
  199. package/src/components/editor/app-container.tsx +1 -1
  200. package/src/components/editor/cell/CellStatus.tsx +4 -5
  201. package/src/components/editor/cell/cell-context-menu.tsx +4 -2
  202. package/src/components/editor/cell/code/cell-editor.tsx +3 -2
  203. package/src/components/editor/cell/toolbar.tsx +2 -1
  204. package/src/components/editor/chrome/components/contribute-snippet-button.tsx +4 -1
  205. package/src/components/editor/chrome/components/feedback-button.tsx +4 -1
  206. package/src/components/editor/chrome/panels/context-aware-panel/context-aware-panel.tsx +1 -1
  207. package/src/components/editor/chrome/panels/empty-state.tsx +1 -0
  208. package/src/components/editor/chrome/panels/file-explorer-panel.tsx +0 -10
  209. package/src/components/editor/chrome/panels/snippets-panel.tsx +1 -1
  210. package/src/components/editor/chrome/panels/write-secret-modal.tsx +1 -1
  211. package/src/components/editor/chrome/wrapper/app-chrome.tsx +4 -1
  212. package/src/components/editor/chrome/wrapper/footer-items/lsp-status.tsx +2 -1
  213. package/src/components/editor/chrome/wrapper/storage.ts +2 -2
  214. package/src/components/editor/connections/database/as-code.ts +1 -1
  215. package/src/components/editor/connections/form-renderers.tsx +1 -1
  216. package/src/components/editor/connections/storage/as-code.ts +1 -1
  217. package/src/components/editor/controls/keyboard-shortcuts.tsx +1 -1
  218. package/src/components/editor/header/filename-input.tsx +4 -1
  219. package/src/components/editor/links/cell-link-list.tsx +1 -1
  220. package/src/components/editor/navigation/__tests__/navigation.test.ts +1 -1
  221. package/src/components/editor/navigation/clipboard.ts +1 -1
  222. package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +2 -2
  223. package/src/components/editor/navigation/navigation.ts +3 -3
  224. package/src/components/editor/notebook-cell.tsx +1 -1
  225. package/src/components/editor/output/JsonOutput.tsx +6 -6
  226. package/src/components/editor/output/ansi-reduce.ts +2 -2
  227. package/src/components/editor/output/console/ConsoleOutput.tsx +2 -2
  228. package/src/components/editor/renderers/cells-renderer.tsx +1 -1
  229. package/src/components/editor/renderers/grid-layout/grid-layout.tsx +1 -1
  230. package/src/components/editor/renderers/plugins.ts +1 -1
  231. package/src/components/editor/renderers/slides-layout/types.ts +2 -2
  232. package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +2 -2
  233. package/src/components/editor/renderers/vertical-layout/__tests__/vertical-layout.test.ts +1 -1
  234. package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +12 -13
  235. package/src/components/find-replace/find-replace.tsx +3 -1
  236. package/src/components/forms/form.tsx +1 -1
  237. package/src/components/forms/options.ts +1 -1
  238. package/src/components/pages/gallery-page.tsx +1 -1
  239. package/src/components/static-html/static-banner.tsx +2 -2
  240. package/src/components/storage/__tests__/storage-snippets.test.ts +4 -6
  241. package/src/components/terminal/terminal.tsx +4 -4
  242. package/src/components/tracing/tracing.test.tsx +30 -30
  243. package/src/components/ui/accordion.tsx +1 -1
  244. package/src/components/ui/alert-dialog.tsx +1 -1
  245. package/src/components/ui/badge.tsx +2 -1
  246. package/src/components/ui/button.tsx +5 -4
  247. package/src/components/ui/calendar.tsx +3 -2
  248. package/src/components/ui/checkbox.tsx +1 -1
  249. package/src/components/ui/combobox.tsx +2 -1
  250. package/src/components/ui/command.tsx +5 -2
  251. package/src/components/ui/context-menu.tsx +1 -1
  252. package/src/components/ui/date-input.tsx +7 -6
  253. package/src/components/ui/date-picker.tsx +6 -4
  254. package/src/components/ui/dialog.tsx +1 -1
  255. package/src/components/ui/draggable-popover.tsx +1 -1
  256. package/src/components/ui/dropdown-menu.tsx +2 -1
  257. package/src/components/ui/field.tsx +1 -2
  258. package/src/components/ui/form.tsx +4 -5
  259. package/src/components/ui/fullscreen.tsx +4 -1
  260. package/src/components/ui/label.tsx +1 -1
  261. package/src/components/ui/navigation.tsx +1 -1
  262. package/src/components/ui/popover.tsx +1 -1
  263. package/src/components/ui/progress.tsx +4 -3
  264. package/src/components/ui/query-param-preserving-link.tsx +4 -2
  265. package/src/components/ui/radio-group.tsx +1 -1
  266. package/src/components/ui/range-slider.tsx +1 -1
  267. package/src/components/ui/scroll-area.tsx +1 -1
  268. package/src/components/ui/select.tsx +1 -1
  269. package/src/components/ui/sheet.tsx +3 -2
  270. package/src/components/ui/slider.tsx +1 -1
  271. package/src/components/ui/switch.tsx +1 -1
  272. package/src/components/ui/tabs.tsx +1 -1
  273. package/src/components/ui/textarea.tsx +1 -2
  274. package/src/components/ui/toast.tsx +1 -1
  275. package/src/components/ui/toggle.tsx +1 -1
  276. package/src/components/ui/tooltip.tsx +1 -1
  277. package/src/components/variables/variables-table.tsx +1 -1
  278. package/src/core/ai/context/providers/__tests__/datasource.test.ts +1 -1
  279. package/src/core/ai/context/providers/__tests__/error.test.ts +1 -1
  280. package/src/core/ai/context/providers/__tests__/variable.test.ts +1 -1
  281. package/src/core/ai/context/providers/cell-output.ts +1 -2
  282. package/src/core/ai/context/registry.ts +2 -2
  283. package/src/core/ai/tools/edit-notebook-tool.ts +4 -3
  284. package/src/core/ai/tools/registry.ts +1 -1
  285. package/src/core/ai/tools/run-cells-tool.ts +4 -3
  286. package/src/core/cells/__tests__/add-missing-import.test.ts +23 -22
  287. package/src/core/cells/__tests__/cell.test.ts +14 -13
  288. package/src/core/cells/__tests__/cells.test.ts +2 -2
  289. package/src/core/cells/__tests__/scrollCellIntoView.test.ts +1 -1
  290. package/src/core/cells/__tests__/session.test.ts +1 -1
  291. package/src/core/cells/__tests__/utils.test.ts +1 -1
  292. package/src/core/cells/cells.ts +2 -2
  293. package/src/core/cells/ids.ts +1 -1
  294. package/src/core/cells/logs.ts +1 -1
  295. package/src/core/codemirror/ai/request.ts +1 -1
  296. package/src/core/codemirror/cells/__tests__/extensions.test.ts +15 -17
  297. package/src/core/codemirror/cells/traceback-decorations.ts +1 -1
  298. package/src/core/codemirror/copilot/__tests__/language-server.test.ts +1 -1
  299. package/src/core/codemirror/copilot/__tests__/transport.test.ts +129 -3
  300. package/src/core/codemirror/copilot/client.ts +9 -2
  301. package/src/core/codemirror/copilot/getCodes.ts +1 -1
  302. package/src/core/codemirror/copilot/language-server.ts +12 -1
  303. package/src/core/codemirror/copilot/transport.ts +34 -8
  304. package/src/core/codemirror/copilot/types.ts +1 -1
  305. package/src/core/codemirror/facet.ts +1 -1
  306. package/src/core/codemirror/language/__tests__/sql.test.ts +4 -4
  307. package/src/core/codemirror/language/languages/markdown.ts +1 -3
  308. package/src/core/codemirror/language/languages/python.ts +4 -0
  309. package/src/core/codemirror/language/languages/sql/completion-builder.ts +1 -1
  310. package/src/core/codemirror/language/languages/sql/completion-sources.tsx +4 -6
  311. package/src/core/codemirror/language/languages/sql/sql.ts +1 -3
  312. package/src/core/codemirror/language/metadata.ts +1 -1
  313. package/src/core/codemirror/language/panel/sql.tsx +4 -1
  314. package/src/core/codemirror/language/types.ts +1 -1
  315. package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +1 -1
  316. package/src/core/codemirror/lsp/notebook-lsp.ts +1 -1
  317. package/src/core/codemirror/misc/__tests__/dnd.test.ts +1 -1
  318. package/src/core/codemirror/reactive-references/__tests__/analyzer.test.ts +28 -42
  319. package/src/core/codemirror/rtc/loro/awareness.ts +1 -1
  320. package/src/core/config/__tests__/config-schema.test.ts +2 -6
  321. package/src/core/config/config-schema.ts +0 -1
  322. package/src/core/config/feature-flag.tsx +1 -3
  323. package/src/core/datasets/data-source-connections.ts +4 -2
  324. package/src/core/datasets/state.ts +1 -1
  325. package/src/core/dom/__tests__/htmlUtils.test.ts +8 -14
  326. package/src/core/dom/__tests__/outline.test.ts +2 -3
  327. package/src/core/dom/outline.ts +1 -1
  328. package/src/core/edit-app.tsx +4 -1
  329. package/src/core/export/__tests__/hooks.test.ts +1 -1
  330. package/src/core/hotkeys/__tests__/hotkeys.test.ts +1 -1
  331. package/src/core/hotkeys/shortcuts.ts +1 -1
  332. package/src/core/islands/__tests__/bridge.test.ts +2 -2
  333. package/src/core/islands/__tests__/parse.test.ts +8 -7
  334. package/src/core/islands/bridge.ts +2 -2
  335. package/src/core/islands/components/output-wrapper.tsx +1 -1
  336. package/src/core/islands/parse.ts +1 -1
  337. package/src/core/lsp/__tests__/transport.test.ts +1 -1
  338. package/src/core/network/CachingRequestRegistry.ts +1 -1
  339. package/src/core/network/DeferredRequestRegistry.ts +1 -1
  340. package/src/core/network/__tests__/requests-network.test.ts +1 -1
  341. package/src/core/network/api.ts +2 -2
  342. package/src/core/network/requests-lazy.ts +1 -1
  343. package/src/core/network/requests-toasting.tsx +1 -1
  344. package/src/core/runtime/runtime.ts +1 -0
  345. package/src/core/saving/__tests__/filename.test.ts +7 -6
  346. package/src/core/static/__tests__/download-html.test.ts +16 -15
  347. package/src/core/static/__tests__/files.test.ts +30 -28
  348. package/src/core/static/files.ts +1 -1
  349. package/src/core/vscode/vscode-bindings.ts +1 -1
  350. package/src/core/wasm/bridge.ts +3 -3
  351. package/src/core/wasm/worker/tracer.ts +1 -1
  352. package/src/core/websocket/useWebSocket.tsx +5 -3
  353. package/src/css/app/Cell.css +25 -1
  354. package/src/css/globals.css +18 -16
  355. package/src/css/table.css +17 -0
  356. package/src/custom.d.ts +1 -1
  357. package/src/hooks/__tests__/useDuplicateShortcuts.test.ts +3 -3
  358. package/src/hooks/debug.ts +3 -3
  359. package/src/hooks/useDebounce.ts +1 -1
  360. package/src/hooks/useEventListener.ts +1 -1
  361. package/src/hooks/useHotkey.ts +1 -1
  362. package/src/hooks/useLifecycle.ts +2 -2
  363. package/src/hooks/useNonce.ts +1 -1
  364. package/src/hooks/useResizeObserver.ts +2 -2
  365. package/src/main.tsx +1 -1
  366. package/src/plugins/core/BadPlugin.tsx +7 -6
  367. package/src/plugins/core/RenderHTML.tsx +3 -3
  368. package/src/plugins/core/__test__/registerReactComponent.test.ts +1 -1
  369. package/src/plugins/core/registerReactComponent.tsx +4 -4
  370. package/src/plugins/core/rpc.ts +1 -1
  371. package/src/plugins/impl/CheckboxPlugin.tsx +4 -1
  372. package/src/plugins/impl/DataEditorPlugin.tsx +8 -3
  373. package/src/plugins/impl/DataTablePlugin.tsx +6 -2
  374. package/src/plugins/impl/FileBrowserPlugin.tsx +1 -1
  375. package/src/plugins/impl/FormPlugin.tsx +2 -3
  376. package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +4 -1
  377. package/src/plugins/impl/__tests__/MatrixPlugin.test.tsx +1 -1
  378. package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +43 -15
  379. package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +3 -12
  380. package/src/plugins/impl/anywidget/__tests__/model.test.ts +2 -2
  381. package/src/plugins/impl/anywidget/model.ts +1 -1
  382. package/src/plugins/impl/anywidget/types.ts +2 -2
  383. package/src/plugins/impl/anywidget/widget-binding.ts +1 -1
  384. package/src/plugins/impl/chat/ChatPlugin.tsx +1 -1
  385. package/src/plugins/impl/chat/chat-ui.tsx +5 -2
  386. package/src/plugins/impl/data-editor/glide-data-editor.tsx +2 -2
  387. package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +2 -2
  388. package/src/plugins/impl/data-explorer/components/query-form.tsx +1 -1
  389. package/src/plugins/impl/data-explorer/functions/function.ts +1 -1
  390. package/src/plugins/impl/data-explorer/queries/types.ts +1 -1
  391. package/src/plugins/impl/data-frames/DataFramePlugin.tsx +1 -1
  392. package/src/plugins/impl/data-frames/forms/__tests__/form.test.tsx +7 -9
  393. package/src/plugins/impl/data-frames/forms/renderers.tsx +1 -1
  394. package/src/plugins/impl/data-frames/utils/operators.ts +1 -1
  395. package/src/plugins/impl/matplotlib/MatplotlibPlugin.tsx +1 -1
  396. package/src/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx +1 -1
  397. package/src/plugins/impl/panel/PanelPlugin.tsx +2 -2
  398. package/src/plugins/impl/plotly/Plot.tsx +3 -3
  399. package/src/plugins/impl/plotly/PlotlyPlugin.tsx +65 -103
  400. package/src/plugins/impl/plotly/__tests__/PlotlyPlugin.test.tsx +114 -0
  401. package/src/plugins/impl/plotly/__tests__/selection.test.ts +199 -0
  402. package/src/plugins/impl/plotly/selection.ts +333 -0
  403. package/src/plugins/impl/vega/__tests__/make-selectable.test.ts +13 -14
  404. package/src/plugins/impl/vega/__tests__/utils.test.ts +68 -0
  405. package/src/plugins/impl/vega/batched.ts +1 -1
  406. package/src/plugins/impl/vega/make-selectable.ts +3 -3
  407. package/src/plugins/impl/vega/types.ts +1 -1
  408. package/src/plugins/impl/vega/utils.ts +14 -5
  409. package/src/plugins/impl/vega/vega.css +2 -1
  410. package/src/plugins/layout/DownloadPlugin.tsx +1 -1
  411. package/src/plugins/layout/ImageComparisonPlugin.tsx +1 -3
  412. package/src/plugins/layout/LazyPlugin.tsx +1 -1
  413. package/src/plugins/layout/RoutesPlugin.tsx +1 -1
  414. package/src/plugins/layout/mermaid/mermaid.tsx +1 -1
  415. package/src/plugins/plugins.ts +1 -1
  416. package/src/plugins/stateless-plugin.ts +4 -2
  417. package/src/stories/data-explorer.stories.tsx +1 -1
  418. package/src/stories/dataframe.stories.tsx +1 -1
  419. package/src/stories/editor.stories.tsx +1 -1
  420. package/src/stories/select.stories.tsx +1 -1
  421. package/src/stories/switchable-multi-select.stories.tsx +1 -1
  422. package/src/utils/Logger.ts +1 -1
  423. package/src/utils/__tests__/arrays.test.ts +1 -1
  424. package/src/utils/__tests__/blob.test.ts +1 -1
  425. package/src/utils/__tests__/cell-urls.test.ts +24 -21
  426. package/src/utils/__tests__/dates.test.ts +1 -1
  427. package/src/utils/__tests__/errors.test.ts +1 -1
  428. package/src/utils/__tests__/filenames.test.ts +15 -14
  429. package/src/utils/__tests__/json-parser.test.ts +14 -21
  430. package/src/utils/__tests__/multi-map.test.ts +3 -3
  431. package/src/utils/__tests__/objects.test.ts +3 -3
  432. package/src/utils/__tests__/path.test.ts +34 -31
  433. package/src/utils/__tests__/urls.test.ts +19 -18
  434. package/src/utils/__tests__/versions.test.ts +5 -5
  435. package/src/utils/__tests__/waitForWs.test.ts +1 -1
  436. package/src/utils/arrays.ts +2 -2
  437. package/src/utils/assertNever.ts +1 -1
  438. package/src/utils/batch-requests.ts +2 -2
  439. package/src/utils/createReducer.ts +2 -2
  440. package/src/utils/id-tree.tsx +2 -2
  441. package/src/utils/idle.ts +1 -1
  442. package/src/utils/invariant.ts +1 -2
  443. package/src/utils/json/base64.ts +2 -5
  444. package/src/utils/maps.ts +1 -1
  445. package/src/utils/math.ts +0 -1
  446. package/src/utils/mime-types.ts +1 -1
  447. package/src/utils/multi-map.ts +1 -1
  448. package/src/utils/objects.ts +1 -1
  449. package/src/utils/once.ts +2 -2
  450. package/src/utils/staticImplements.ts +1 -1
  451. package/src/utils/storage/jotai.ts +1 -1
  452. package/src/utils/tracer.ts +3 -2
  453. package/dist/_basePickBy-QjOmBDRE.js +0 -110
  454. package/dist/_baseSet-xgn1IbGV.js +0 -27
  455. package/dist/architecture-7HQA4BMR-BRyVh_Za.js +0 -6
  456. package/dist/assets/__vite-browser-external-Us1ds95c.js +0 -1
  457. package/dist/dist-B0R_ZM4-.js +0 -6
  458. package/dist/dist-B4a9_9pj.js +0 -5
  459. package/dist/dist-BCSUKEwO.js +0 -5
  460. package/dist/dist-BONIDQq6.js +0 -5
  461. package/dist/dist-BYeRx2hb.js +0 -5
  462. package/dist/dist-D2Rk1j4R.js +0 -1381
  463. package/dist/dist-DZjX5TYv.js +0 -5
  464. package/dist/dist-Dkw9x6kc.js +0 -5
  465. package/dist/dist-Ds6UaXGR.js +0 -6
  466. package/dist/dist-KuEJ1Q53.js +0 -8
  467. package/dist/dist-S72WNyTZ.js +0 -5
  468. package/dist/dist-bTG-yssT.js +0 -5
  469. package/dist/dist-diF0sguc.js +0 -8
  470. package/dist/dist-mJ84BIgu.js +0 -8
  471. package/dist/dist-wSIhFWQz.js +0 -8
  472. package/dist/get-CqrzlV1v.js +0 -68
  473. package/dist/range-CYz5jI--.js +0 -17
  474. package/dist/stex-CZyTRGVB.js +0 -4
  475. package/dist/tooltip-DGHTbHl5.js +0 -404
  476. package/dist/useLifecycle-Dids8BPm.js +0 -173
  477. /package/dist/{dist-KZI_BHqV.js → dist-CxZvoNao.js} +0 -0
  478. /package/dist/{invariant-D4hPsZFI.js → invariant-e8eBgdux.js} +0 -0
  479. /package/dist/{isArrayLikeObject-C-hFPChh.js → isArrayLikeObject-LXbTYiBa.js} +0 -0
  480. /package/dist/{main-CvkAPtaq.js → main-XimWhSi_.js} +0 -0
  481. /package/dist/{purify.es-ukiMXY-F.js → purify.es-hTCfRGdl.js} +0 -0
  482. /package/dist/{react-dom-BKwCWYPW.js → react-dom-BSUuJjCR.js} +0 -0
  483. /package/dist/{stex-Ze8D4R_5.js → stex-D887Ylhf.js} +0 -0
@@ -4,32 +4,32 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4
4
  import { s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
5
5
  import { t as require_react } from "./react-Bs6Z0kvn.js";
6
6
  import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
7
- import { r as toast } from "./copy-CBo9JcJW.js";
8
- import { A as AccordionItem, Bn as CircleX, C as Boosts, D as AIContextRegistry, Dn as Wrench, E as AIContextProvider, Et as displayCellName, Fn as File$1, Gt as PluralWord, H as ChatBubbleIcon, I as MarimoIncomingMessageEvent, It as moveToEndOfEditor, Mn as LoaderCircle, Nt as createVariableInfoElement, O as Accordion, On as Trash2, Pn as Info, Qt as getTableType, T as contextToXml, Tn as atomWithStorage, Ut as jotaiJsonStorage, Wt as variablesAtom, X as base64ToDataURL, Xt as allTablesAtom, Y as deserializeBlob, Zt as dataSourceConnectionsAtom, a as toPng, ct as notebookAtom, d as Spinner, en as getRequestClient, f as Popover, g as PopoverAnchor, h as PopoverTrigger, in as singleFacet, it as cellErrorsAtom, j as AccordionTrigger, k as AccordionContent, ln as ZodLocalStorage, m as PopoverContent, mn as CellOutputId, n as blobToString, o as MarkdownRenderer, rt as renderHTML, t as processOutput, v as isOutputEmpty, w as Sections, x as DatasourceContextProvider } from "./process-output-KyzWazB-.js";
7
+ import { r as toast } from "./copy-B7781WJ3.js";
8
+ import { A as MarimoIncomingMessageEvent, At as moveToEndOfEditor, Bn as CircleX, C as contextToXml, D as AccordionContent, Dn as Wrench, Dt as createVariableInfoElement, E as Accordion, Fn as File$1, Gt as dataSourceConnectionsAtom, I as ChatBubbleIcon, Jt as getRequestClient, Kt as getTableType, Lt as jotaiJsonStorage, Mn as LoaderCircle, O as AccordionItem, On as Trash2, Pn as Info, Q as cellErrorsAtom, Qt as singleFacet, Rt as variablesAtom, S as Sections, T as AIContextRegistry, U as deserializeBlob, W as base64ToDataURL, Wt as allTablesAtom, Z as renderHTML, a as toPng, bt as displayCellName, cn as CellOutputId, d as Spinner, f as Popover, g as isOutputEmpty, h as PopoverTrigger, k as AccordionTrigger, m as PopoverContent, n as blobToString, nt as notebookAtom, o as MarkdownRenderer, rn as ZodLocalStorage, t as processOutput, w as AIContextProvider, x as Boosts, xn as Anchor2, y as DatasourceContextProvider, yn as atomWithStorage, zt as PluralWord } from "./process-output-DC1TOnIl.js";
9
9
  import "./chunk-5FQGJX7Z-C428iZBW.js";
10
- import { l as createLucideIcon } from "./dist-D2Rk1j4R.js";
11
- import { A as logNever, L as X, r as Strings, t as Label } from "./label-DTNqw9tv.js";
12
- import { a as NumberField, b as DropdownMenuTrigger, d as DropdownMenuContent, p as DropdownMenuItem, r as Input, u as DropdownMenu } from "./input-BSde8uV4.js";
13
- import { g as CircleQuestionMark } from "./toDate-D6VXexnV.js";
14
- import { d as useEventListener, h as Logger, t as Button, u as Objects, v as cn } from "./button-qsiIHncQ.js";
15
- import { A as custom, B as record, D as any, E as _null, G as unknown, H as string, I as never, J as toJSONSchema, K as safeParseAsync, L as number, M as lazy, N as literal, O as array$1, R as object$1, T as _instanceof, V as strictObject, W as union, j as discriminatedUnion, k as boolean, w as _enum } from "./Combination-B--d1_LV.js";
10
+ import { l as createLucideIcon } from "./dist-D_UjpfOY.js";
11
+ import { C as logNever, I as X, n as Strings, t as Label } from "./label-DbZGAoCH.js";
12
+ import { a as NumberField, b as DropdownMenuTrigger, d as DropdownMenuContent, p as DropdownMenuItem, r as Input, u as DropdownMenu } from "./input-CFY9gApZ.js";
13
+ import { g as CircleQuestionMark } from "./toDate-CUqpEbBS.js";
14
+ import { c as Objects, g as Logger, l as useEventListener, t as Button, y as cn } from "./button-DNlNlZY_.js";
15
+ import "./react-dom-BSUuJjCR.js";
16
16
  import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
17
- import "./react-dom-BKwCWYPW.js";
18
- import { t as Tooltip } from "./tooltip-DGHTbHl5.js";
19
- import { n as minimalSetup, t as esm_default, u as CopyClipboardIcon } from "./esm-CMg2ABu6.js";
20
- import { t as isEmpty_default } from "./isEmpty-BQtUinxJ.js";
21
- import { n as useTheme, v as useStore, w as useEvent_default } from "./useTheme-Dm1WaAGy.js";
22
- import { $ as ViewPlugin, At as Prec, Dt as EditorState, Ft as StateField, Lt as Transaction, Ot as Facet, Pt as StateEffect, Y as Decoration, Z as EditorView, dt as keymap, et as WidgetType, ut as hoverTooltip } from "./dist-KZI_BHqV.js";
23
- import { n as acceptCompletion, o as closeCompletion, r as autocompletion } from "./dist-DBXPlQ0D.js";
24
- import "./main-CvkAPtaq.js";
25
- import { a as markdown } from "./dist-DmFS6KZW.js";
26
- import "./dist-CQidOwep.js";
27
- import "./dist-C0XYIHKJ.js";
28
- import "./dist-C9qF7MRB.js";
29
- import "./dist-qoCY8giM.js";
30
- import "./purify.es-ukiMXY-F.js";
31
- import { n as ErrorBanner } from "./error-banner-Bx9kIgrs.js";
32
- import { t as useAsyncData } from "./useAsyncData-Cd4Urlww.js";
17
+ import { B as union, C as any, D as discriminatedUnion, E as custom, H as safeParseAsync, I as record, L as strictObject, M as never, N as number, O as lazy, P as object$1, R as string, S as _null, T as boolean, V as unknown, W as toJSONSchema, b as _enum, k as literal, w as array$1, x as _instanceof } from "./zod-C6UGQ3fz.js";
18
+ import { n as ErrorBanner } from "./error-banner-Cjf0RU9I.js";
19
+ import { t as Tooltip } from "./tooltip-BXEpXV3R.js";
20
+ import { n as minimalSetup, t as esm_default, u as CopyClipboardIcon } from "./esm-4wmsH2lp.js";
21
+ import { t as isEmpty_default } from "./isEmpty-B7FX9wKt.js";
22
+ import { n as useTheme, v as useStore, w as useEvent_default } from "./useTheme-MWfxn4oz.js";
23
+ import { $ as ViewPlugin, At as Prec, Dt as EditorState, Ft as StateField, Lt as Transaction, Ot as Facet, Pt as StateEffect, Y as Decoration, Z as EditorView, dt as keymap, et as WidgetType, ut as hoverTooltip } from "./dist-CxZvoNao.js";
24
+ import { n as acceptCompletion, o as closeCompletion, r as autocompletion } from "./dist-DGNtjMZu.js";
25
+ import "./main-XimWhSi_.js";
26
+ import { a as markdown } from "./dist-DbnBiLNH.js";
27
+ import "./dist-B43sbpd0.js";
28
+ import "./dist-Ci0CXEFt.js";
29
+ import "./dist-DJ9F1eHs.js";
30
+ import "./dist-DAfcmt-d.js";
31
+ import "./purify.es-hTCfRGdl.js";
32
+ import { t as useAsyncData } from "./useAsyncData-rN1nzPaS.js";
33
33
  var BotMessageSquare = createLucideIcon("bot-message-square", [
34
34
  ["path", {
35
35
  d: "M12 6V2H8",
@@ -5780,6 +5780,7 @@ function useChat({ experimental_throttle: e18, resume: _ = false, ...v } = {}) {
5780
5780
  addToolApprovalResponse: x.current.addToolApprovalResponse
5781
5781
  };
5782
5782
  }
5783
+ var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1);
5783
5784
  function isMediaMimetype(e18, _) {
5784
5785
  return e18 ? !!([
5785
5786
  "image/",
@@ -6170,18 +6171,18 @@ var DEFAULT_FILE_SEARCH_CONFIG = {
6170
6171
  }));
6171
6172
  }
6172
6173
  formatContext(e18) {
6173
- let { data: _ } = e18, { columns: v, source: y, num_rows: b, num_columns: x, name: S, variable_name: C } = _, w = [b == null ? void 0 : `${b} rows`, x == null ? void 0 : `${x} columns`].filter(Boolean).join(", "), T = "";
6174
- if (w && (T += `Shape: ${w}
6175
- `), C && (T += `Variable: ${C}
6174
+ let { data: _ } = e18, { columns: v, source: y, num_rows: b, num_columns: x, name: S, variable_name: C } = _, T = [b == null ? void 0 : `${b} rows`, x == null ? void 0 : `${x} columns`].filter(Boolean).join(", "), E = "";
6175
+ if (T && (E += `Shape: ${T}
6176
+ `), C && (E += `Variable: ${C}
6176
6177
  `), v && v.length > 0) {
6177
- T += "Columns:\n";
6178
+ E += "Columns:\n";
6178
6179
  for (let e19 of v) {
6179
6180
  let _2 = ` ${e19.name} (${e19.type})`;
6180
6181
  if (e19.sample_values && e19.sample_values.length > 0) {
6181
6182
  let v2 = e19.sample_values.slice(0, 3).map((e20) => e20 === null ? "null" : String(e20)).join(", ");
6182
6183
  _2 += ` - samples: [${v2}]`;
6183
6184
  }
6184
- T += `${_2}
6185
+ E += `${_2}
6185
6186
  `;
6186
6187
  }
6187
6188
  }
@@ -6191,7 +6192,7 @@ var DEFAULT_FILE_SEARCH_CONFIG = {
6191
6192
  name: S,
6192
6193
  source: y ?? "unknown"
6193
6194
  },
6194
- details: T.trim()
6195
+ details: E.trim()
6195
6196
  });
6196
6197
  }
6197
6198
  formatCompletion(e18) {
@@ -6330,7 +6331,7 @@ async function convertToFileUIPart(e18) {
6330
6331
  url: await blobToString(e19, "dataUrl")
6331
6332
  })));
6332
6333
  }
6333
- var import_compiler_runtime$4 = require_compiler_runtime(), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1);
6334
+ var import_compiler_runtime$4 = require_compiler_runtime();
6334
6335
  const AttachmentRenderer = (e18) => {
6335
6336
  var _a;
6336
6337
  let _ = (0, import_compiler_runtime$4.c)(6), { attachment: v } = e18;
@@ -6352,15 +6353,15 @@ const AttachmentRenderer = (e18) => {
6352
6353
  };
6353
6354
  var import_compiler_runtime$3 = require_compiler_runtime();
6354
6355
  const ReasoningAccordion = (e18) => {
6355
- let _ = (0, import_compiler_runtime$3.c)(13), { reasoning: v, index: y, isStreaming: b } = e18, S = y === void 0 ? 0 : y, C = b === void 0 ? false : b, w = C ? "reasoning" : void 0, T;
6356
- _[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BotMessageSquare, { className: "h-3 w-3" }), _[0] = T) : T = _[0];
6357
- let E = C ? "Thinking" : "View reasoning", D;
6356
+ let _ = (0, import_compiler_runtime$3.c)(13), { reasoning: v, index: y, isStreaming: b } = e18, x = y === void 0 ? 0 : y, S = b === void 0 ? false : b, C = S ? "reasoning" : void 0, w;
6357
+ _[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BotMessageSquare, { className: "h-3 w-3" }), _[0] = w) : w = _[0];
6358
+ let E = S ? "Thinking" : "View reasoning", D;
6358
6359
  _[1] !== v.length || _[2] !== E ? (D = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionTrigger, {
6359
6360
  className: "text-xs text-muted-foreground hover:bg-muted/50 px-2 py-1 h-auto rounded-sm [&[data-state=open]>svg]:rotate-180",
6360
6361
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
6361
6362
  className: "flex items-center gap-2",
6362
6363
  children: [
6363
- T,
6364
+ w,
6364
6365
  E,
6365
6366
  " (",
6366
6367
  v.length,
@@ -6369,8 +6370,8 @@ const ReasoningAccordion = (e18) => {
6369
6370
  ]
6370
6371
  })
6371
6372
  }), _[1] = v.length, _[2] = E, _[3] = D) : D = _[3];
6372
- let O;
6373
- _[4] === v ? O = _[5] : (O = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionContent, {
6373
+ let k;
6374
+ _[4] === v ? k = _[5] : (k = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionContent, {
6374
6375
  className: "pb-2 px-2",
6375
6376
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
6376
6377
  className: "bg-muted/30 border border-muted/50 rounded-md p-3 italic text-muted-foreground/90 relative",
@@ -6379,21 +6380,21 @@ const ReasoningAccordion = (e18) => {
6379
6380
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MarkdownRenderer, { content: v })
6380
6381
  })
6381
6382
  })
6382
- }), _[4] = v, _[5] = O);
6383
- let k;
6384
- _[6] !== D || _[7] !== O ? (k = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AccordionItem, {
6383
+ }), _[4] = v, _[5] = k);
6384
+ let A;
6385
+ _[6] !== D || _[7] !== k ? (A = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AccordionItem, {
6385
6386
  value: "reasoning",
6386
6387
  className: "border-0",
6387
- children: [D, O]
6388
- }), _[6] = D, _[7] = O, _[8] = k) : k = _[8];
6389
- let A;
6390
- return _[9] !== S || _[10] !== w || _[11] !== k ? (A = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Accordion, {
6388
+ children: [D, k]
6389
+ }), _[6] = D, _[7] = k, _[8] = A) : A = _[8];
6390
+ let j;
6391
+ return _[9] !== x || _[10] !== C || _[11] !== A ? (j = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Accordion, {
6391
6392
  type: "single",
6392
6393
  collapsible: true,
6393
6394
  className: "w-full mb-2",
6394
- value: w,
6395
- children: k
6396
- }, S), _[9] = S, _[10] = w, _[11] = k, _[12] = A) : A = _[12], A;
6395
+ value: C,
6396
+ children: A
6397
+ }, x), _[9] = x, _[10] = C, _[11] = A, _[12] = j) : j = _[12], j;
6397
6398
  };
6398
6399
  var import_compiler_runtime$2 = require_compiler_runtime(), SuccessResultSchema = object$1({
6399
6400
  status: string().default("success"),
@@ -6485,9 +6486,9 @@ var import_compiler_runtime$2 = require_compiler_runtime(), SuccessResultSchema
6485
6486
  }), _[7] = C, _[8] = w), w;
6486
6487
  };
6487
6488
  const ToolCallAccordion = (e18) => {
6488
- let _ = (0, import_compiler_runtime$2.c)(38), { toolName: v, result: y, error: b, index: C, state: w, className: E, input: D } = e18, O = C === void 0 ? 0 : C, k = w === "output-available" && (y || b), A = b ? "error" : k ? "success" : "loading", j;
6489
- _[0] === A ? j = _[1] : (j = () => {
6490
- switch (A) {
6489
+ let _ = (0, import_compiler_runtime$2.c)(38), { toolName: v, result: y, error: b, index: x, state: S, className: w, input: D } = e18, k = x === void 0 ? 0 : x, A = S === "output-available" && (y || b), j = b ? "error" : A ? "success" : "loading", M;
6490
+ _[0] === j ? M = _[1] : (M = () => {
6491
+ switch (j) {
6491
6492
  case "loading":
6492
6493
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoaderCircle, { className: "h-3 w-3 animate-spin" });
6493
6494
  case "error":
@@ -6497,39 +6498,39 @@ const ToolCallAccordion = (e18) => {
6497
6498
  default:
6498
6499
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Wrench, { className: "h-3 w-3" });
6499
6500
  }
6500
- }, _[0] = A, _[1] = j);
6501
- let M = j, P;
6502
- _[2] !== b || _[3] !== k || _[4] !== A ? (P = () => A === "loading" ? "Running" : b ? "Failed" : k ? "Done" : "Tool call", _[2] = b, _[3] = k, _[4] = A, _[5] = P) : P = _[5];
6503
- let I = P, L = `tool-${O}`, R;
6504
- _[6] === E ? R = _[7] : (R = cn("w-full", E), _[6] = E, _[7] = R);
6505
- let z = A === "error" && "text-[var(--red-11)]/80", B = A === "success" && "text-[var(--grass-11)]/80", V;
6506
- _[8] !== z || _[9] !== B ? (V = cn("h-6 text-xs border-border shadow-none! ring-0! bg-muted/60 hover:bg-muted py-0 px-2 gap-1 rounded-sm [&[data-state=open]>svg]:rotate-180 hover:no-underline", z, B), _[8] = z, _[9] = B, _[10] = V) : V = _[10];
6507
- let H;
6508
- _[11] === M ? H = _[12] : (H = M(), _[11] = M, _[12] = H);
6509
- let U = I(), W;
6510
- _[13] === v ? W = _[14] : (W = formatToolName(v), _[13] = v, _[14] = W);
6511
- let G;
6512
- _[15] === W ? G = _[16] : (G = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
6513
- className: "font-mono text-xs",
6514
- children: W
6515
- }), _[15] = W, _[16] = G);
6501
+ }, _[0] = j, _[1] = M);
6502
+ let N = M, P;
6503
+ _[2] !== b || _[3] !== A || _[4] !== j ? (P = () => j === "loading" ? "Running" : b ? "Failed" : A ? "Done" : "Tool call", _[2] = b, _[3] = A, _[4] = j, _[5] = P) : P = _[5];
6504
+ let L = P, R = `tool-${k}`, z;
6505
+ _[6] === w ? z = _[7] : (z = cn("w-full", w), _[6] = w, _[7] = z);
6506
+ let B = j === "error" && "text-[var(--red-11)]/80", V = j === "success" && "text-[var(--grass-11)]/80", H;
6507
+ _[8] !== B || _[9] !== V ? (H = cn("h-6 text-xs border-border shadow-none! ring-0! bg-muted/60 hover:bg-muted py-0 px-2 gap-1 rounded-sm [&[data-state=open]>svg]:rotate-180 hover:no-underline", B, V), _[8] = B, _[9] = V, _[10] = H) : H = _[10];
6508
+ let U;
6509
+ _[11] === N ? U = _[12] : (U = N(), _[11] = N, _[12] = U);
6510
+ let W = L(), G;
6511
+ _[13] === v ? G = _[14] : (G = formatToolName(v), _[13] = v, _[14] = G);
6516
6512
  let K;
6517
- _[17] !== U || _[18] !== G || _[19] !== H ? (K = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
6513
+ _[15] === G ? K = _[16] : (K = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
6514
+ className: "font-mono text-xs",
6515
+ children: G
6516
+ }), _[15] = G, _[16] = K);
6517
+ let q;
6518
+ _[17] !== W || _[18] !== K || _[19] !== U ? (q = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
6518
6519
  className: "flex items-center gap-1",
6519
6520
  children: [
6520
- H,
6521
6521
  U,
6522
+ W,
6522
6523
  ":",
6523
- G
6524
+ K
6524
6525
  ]
6525
- }), _[17] = U, _[18] = G, _[19] = H, _[20] = K) : K = _[20];
6526
- let q;
6527
- _[21] !== K || _[22] !== V ? (q = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionTrigger, {
6528
- className: V,
6529
- children: K
6530
- }), _[21] = K, _[22] = V, _[23] = q) : q = _[23];
6526
+ }), _[17] = W, _[18] = K, _[19] = U, _[20] = q) : q = _[20];
6531
6527
  let J;
6532
- _[24] !== b || _[25] !== k || _[26] !== D || _[27] !== y ? (J = k && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
6528
+ _[21] !== q || _[22] !== H ? (J = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionTrigger, {
6529
+ className: H,
6530
+ children: q
6531
+ }), _[21] = q, _[22] = H, _[23] = J) : J = _[23];
6532
+ let Y;
6533
+ _[24] !== b || _[25] !== A || _[26] !== D || _[27] !== y ? (Y = A && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
6533
6534
  className: "space-y-3",
6534
6535
  children: [
6535
6536
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToolArgsRenderer, { input: D }),
@@ -6545,25 +6546,25 @@ const ToolCallAccordion = (e18) => {
6545
6546
  })]
6546
6547
  })
6547
6548
  ]
6548
- }), _[24] = b, _[25] = k, _[26] = D, _[27] = y, _[28] = J) : J = _[28];
6549
- let Y;
6550
- _[29] === J ? Y = _[30] : (Y = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionContent, {
6551
- className: "py-2 px-2",
6552
- children: J
6553
- }), _[29] = J, _[30] = Y);
6549
+ }), _[24] = b, _[25] = A, _[26] = D, _[27] = y, _[28] = Y) : Y = _[28];
6554
6550
  let Z;
6555
- _[31] !== q || _[32] !== Y ? (Z = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AccordionItem, {
6551
+ _[29] === Y ? Z = _[30] : (Z = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionContent, {
6552
+ className: "py-2 px-2",
6553
+ children: Y
6554
+ }), _[29] = Y, _[30] = Z);
6555
+ let Q;
6556
+ _[31] !== J || _[32] !== Z ? (Q = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AccordionItem, {
6556
6557
  value: "tool-call",
6557
6558
  className: "border-0",
6558
- children: [q, Y]
6559
- }), _[31] = q, _[32] = Y, _[33] = Z) : Z = _[33];
6560
- let Q;
6561
- return _[34] !== Z || _[35] !== L || _[36] !== R ? (Q = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Accordion, {
6559
+ children: [J, Z]
6560
+ }), _[31] = J, _[32] = Z, _[33] = Q) : Q = _[33];
6561
+ let $;
6562
+ return _[34] !== Q || _[35] !== R || _[36] !== z ? ($ = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Accordion, {
6562
6563
  type: "single",
6563
6564
  collapsible: true,
6564
- className: R,
6565
- children: Z
6566
- }, L), _[34] = Z, _[35] = L, _[36] = R, _[37] = Q) : Q = _[37], Q;
6565
+ className: z,
6566
+ children: Q
6567
+ }, R), _[34] = Q, _[35] = R, _[36] = z, _[37] = $) : $ = _[37], $;
6567
6568
  };
6568
6569
  function formatToolName(e18) {
6569
6570
  return e18.replace("tool-", "");
@@ -7151,7 +7152,7 @@ function _temp2$1() {
7151
7152
  function _temp3$1(e18) {
7152
7153
  return promptHistoryStorage.set(KEY, e18);
7153
7154
  }
7154
- var import_compiler_runtime = require_compiler_runtime(), ChatMessageIncomingSchema = object$1({
7155
+ var import_compiler_runtime = require_compiler_runtime(), PopoverAnchor = Anchor2, ChatMessageIncomingSchema = object$1({
7155
7156
  type: literal("stream_chunk"),
7156
7157
  message_id: string(),
7157
7158
  content: any().nullable().transform((e18) => e18),
@@ -7159,24 +7160,24 @@ var import_compiler_runtime = require_compiler_runtime(), ChatMessageIncomingSch
7159
7160
  });
7160
7161
  const Chatbot = (e18) => {
7161
7162
  var _a;
7162
- let [_, v] = (0, import_react.useState)(""), [y, b] = (0, import_react.useState)(e18.config), [x, S] = (0, import_react.useState)(e18.config), [C, w] = (0, import_react.useState)(void 0), T = (0, import_react.useRef)(null), E = (0, import_react.useRef)(null), D = (0, import_react.useRef)(null), O = (0, import_react.useRef)(null);
7163
- Object.keys(e18.config).some((_2) => e18.config[_2] !== x[_2]) && (b(e18.config), S(e18.config));
7164
- let k = (0, import_react.useRef)(y);
7165
- k.current = y;
7166
- let A = (0, import_react.useRef)({
7163
+ let [_, v] = (0, import_react.useState)(""), [y, b] = (0, import_react.useState)(e18.config), [C, w] = (0, import_react.useState)(e18.config), [T, E] = (0, import_react.useState)(void 0), D = (0, import_react.useRef)(null), O = (0, import_react.useRef)(null), k = (0, import_react.useRef)(null), A = (0, import_react.useRef)(null);
7164
+ Object.keys(e18.config).some((_2) => e18.config[_2] !== C[_2]) && (b(e18.config), w(e18.config));
7165
+ let j = (0, import_react.useRef)(y);
7166
+ j.current = y;
7167
+ let M = (0, import_react.useRef)({
7167
7168
  backendMessageId: null,
7168
7169
  frontendMessageIndex: null
7169
- }), N = (0, import_react.useRef)(null), { data: P } = useAsyncData(async () => (await e18.get_chat_history({})).messages, []), F = e18.value.length > 0 ? e18.value : P, { messages: L, sendMessage: R, setMessages: z, status: B, stop: V, error: H, regenerate: U, clearError: W } = useChat({
7170
+ }), N = (0, import_react.useRef)(null), { data: P } = useAsyncData(async () => (await e18.get_chat_history({})).messages, []), F = e18.value.length > 0 ? e18.value : P, { messages: I, sendMessage: R, setMessages: z, status: B, stop: V, error: H, regenerate: U, clearError: W } = useChat({
7170
7171
  transport: new DefaultChatTransport({ fetch: async (_2, v2) => {
7171
7172
  var _a2;
7172
7173
  if (v2 === void 0) return fetch(_2);
7173
- let y2 = JSON.parse(v2.body), b2 = v2.signal, x2 = {
7174
- max_tokens: k.current.max_tokens,
7175
- temperature: k.current.temperature,
7176
- top_p: k.current.top_p,
7177
- top_k: k.current.top_k,
7178
- frequency_penalty: k.current.frequency_penalty,
7179
- presence_penalty: k.current.presence_penalty
7174
+ let y2 = JSON.parse(v2.body), b2 = v2.signal, x = {
7175
+ max_tokens: j.current.max_tokens,
7176
+ temperature: j.current.temperature,
7177
+ top_p: j.current.top_p,
7178
+ top_k: j.current.top_k,
7179
+ frequency_penalty: j.current.frequency_penalty,
7180
+ presence_penalty: j.current.presence_penalty
7180
7181
  };
7181
7182
  try {
7182
7183
  let _3 = y2.messages.map((e19) => {
@@ -7206,13 +7207,13 @@ const Chatbot = (e18) => {
7206
7207
  });
7207
7208
  return e18.send_prompt({
7208
7209
  messages: _3,
7209
- config: x2
7210
+ config: x
7210
7211
  }).catch((e19) => {
7211
7212
  var _a3;
7212
7213
  (_a3 = N.current) == null ? void 0 : _a3.error(e19), N.current = null;
7213
7214
  }), createUIMessageStreamResponse({ stream: v3 });
7214
7215
  } catch (e19) {
7215
- if (A.current = {
7216
+ if (M.current = {
7216
7217
  backendMessageId: null,
7217
7218
  frontendMessageIndex: null
7218
7219
  }, e19 instanceof Error && e19.name === "AbortError") return new Response("Aborted", { status: 499 });
@@ -7222,13 +7223,13 @@ const Chatbot = (e18) => {
7222
7223
  } }),
7223
7224
  messages: F,
7224
7225
  onFinish: (_2) => {
7225
- w(void 0), T.current && (T.current.value = ""), Logger.debug("Finished streaming message:", _2), A.current = {
7226
+ E(void 0), D.current && (D.current.value = ""), Logger.debug("Finished streaming message:", _2), M.current = {
7226
7227
  backendMessageId: null,
7227
7228
  frontendMessageIndex: null
7228
7229
  }, e18.setValue(_2.messages);
7229
7230
  },
7230
7231
  onError: (e19) => {
7231
- Logger.error("An error occurred:", e19), A.current = {
7232
+ Logger.error("An error occurred:", e19), M.current = {
7232
7233
  backendMessageId: null,
7233
7234
  frontendMessageIndex: null
7234
7235
  };
@@ -7241,9 +7242,9 @@ const Chatbot = (e18) => {
7241
7242
  y2 && (v2.content && y2.enqueue(v2.content), v2.is_final && (y2.close(), N.current = null));
7242
7243
  });
7243
7244
  let G = B === "submitted" || B === "streaming", K = (_2) => {
7244
- let v2 = L.findIndex((e19) => e19.id === _2);
7245
+ let v2 = I.findIndex((e19) => e19.id === _2);
7245
7246
  if (v2 !== -1) {
7246
- let y2 = L.filter((e19) => e19.id !== _2);
7247
+ let y2 = I.filter((e19) => e19.id !== _2);
7247
7248
  e18.delete_chat_message({ index: v2 }), z(y2), e18.setValue(y2);
7248
7249
  }
7249
7250
  }, q = Array.isArray(e18.allowAttachments) && e18.allowAttachments.length > 0 || e18.allowAttachments === true, J = {
@@ -7253,18 +7254,18 @@ const Chatbot = (e18) => {
7253
7254
  displayLabel: e19,
7254
7255
  apply: e19
7255
7256
  }))
7256
- }, Z = e18.prompts.length > 0 ? "Type your message here, / for prompts" : "Type your message here...";
7257
+ }, Y = e18.prompts.length > 0 ? "Type your message here, / for prompts" : "Type your message here...";
7257
7258
  (0, import_react.useEffect)(() => {
7258
7259
  var _a2;
7259
- (_a2 = O.current) == null ? void 0 : _a2.scrollTo({
7260
- top: O.current.scrollHeight,
7260
+ (_a2 = A.current) == null ? void 0 : _a2.scrollTo({
7261
+ top: A.current.scrollHeight,
7261
7262
  behavior: "smooth"
7262
7263
  });
7263
- }, [L.length, O]);
7264
- let Q = (_a = D.current) == null ? void 0 : _a.view, $ = () => {
7265
- if (Q) {
7266
- let e19 = Q.state.doc.length;
7267
- Q.dispatch({ changes: {
7264
+ }, [I.length, A]);
7265
+ let Z = (_a = k.current) == null ? void 0 : _a.view, $ = () => {
7266
+ if (Z) {
7267
+ let e19 = Z.state.doc.length;
7268
+ Z.dispatch({ changes: {
7268
7269
  from: 0,
7269
7270
  to: e19,
7270
7271
  insert: ""
@@ -7281,7 +7282,7 @@ const Chatbot = (e18) => {
7281
7282
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
7282
7283
  variant: "text",
7283
7284
  size: "icon",
7284
- disabled: L.length === 0,
7285
+ disabled: I.length === 0,
7285
7286
  onClick: () => {
7286
7287
  z([]), e18.setValue([]), e18.delete_chat_history({}), W();
7287
7288
  },
@@ -7290,9 +7291,9 @@ const Chatbot = (e18) => {
7290
7291
  }),
7291
7292
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
7292
7293
  className: "grow overflow-y-auto gap-4 pt-8 pb-4 px-2 flex flex-col",
7293
- ref: O,
7294
+ ref: A,
7294
7295
  children: [
7295
- L.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
7296
+ I.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
7296
7297
  className: "flex flex-col items-center justify-center h-full text-muted-foreground text-center p-4",
7297
7298
  children: [
7298
7299
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BotMessageSquare, { className: "h-12 w-12 mb-4" }),
@@ -7306,9 +7307,9 @@ const Chatbot = (e18) => {
7306
7307
  })
7307
7308
  ]
7308
7309
  }),
7309
- L.map((e19, _2) => {
7310
+ I.map((e19, _2) => {
7310
7311
  var _a2;
7311
- let v2 = (_a2 = e19.parts) == null ? void 0 : _a2.filter((e20) => e20.type === "text").map((e20) => e20.text).join("\n"), y2 = _2 === L.length - 1;
7312
+ let v2 = (_a2 = e19.parts) == null ? void 0 : _a2.filter((e20) => e20.type === "text").map((e20) => e20.text).join("\n"), y2 = _2 === I.length - 1;
7312
7313
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
7313
7314
  className: cn("flex flex-col group gap-2", e19.role === "user" ? "items-end" : "items-start"),
7314
7315
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
@@ -7357,7 +7358,7 @@ const Chatbot = (e18) => {
7357
7358
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("form", {
7358
7359
  onSubmit: async (v2) => {
7359
7360
  if (v2.preventDefault(), e18.disabled) return;
7360
- let y2 = C ? await convertToFileUIPart(C) : void 0;
7361
+ let y2 = T ? await convertToFileUIPart(T) : void 0;
7361
7362
  R({
7362
7363
  role: "user",
7363
7364
  parts: [{
@@ -7366,7 +7367,7 @@ const Chatbot = (e18) => {
7366
7367
  }, ...y2 ?? []]
7367
7368
  }), $();
7368
7369
  },
7369
- ref: E,
7370
+ ref: O,
7370
7371
  inert: e18.disabled || void 0,
7371
7372
  className: cn("flex w-full border-t border-(--slate-6) px-2 py-1 items-center", e18.disabled && "opacity-50 cursor-not-allowed"),
7372
7373
  children: [
@@ -7378,41 +7379,41 @@ const Chatbot = (e18) => {
7378
7379
  prompts: e18.prompts,
7379
7380
  onSelect: (e19) => {
7380
7381
  v(e19), requestAnimationFrame(() => {
7381
- Q == null ? void 0 : Q.focus(), moveToEndOfEditor(Q);
7382
+ Z == null ? void 0 : Z.focus(), moveToEndOfEditor(Z);
7382
7383
  });
7383
7384
  }
7384
7385
  }),
7385
7386
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PromptInput, {
7386
7387
  className: "rounded-sm mr-2",
7387
- placeholder: Z,
7388
+ placeholder: Y,
7388
7389
  value: _,
7389
- inputRef: D,
7390
+ inputRef: k,
7390
7391
  maxHeight: e18.maxHeight ? `${e18.maxHeight / 2}px` : void 0,
7391
7392
  onChange: v,
7392
7393
  onSubmit: (e19, _2) => {
7393
7394
  var _a2;
7394
- _2.trim() && ((_a2 = E.current) == null ? void 0 : _a2.requestSubmit());
7395
+ _2.trim() && ((_a2 = O.current) == null ? void 0 : _a2.requestSubmit());
7395
7396
  },
7396
7397
  onClose: () => {
7397
7398
  },
7398
7399
  additionalCompletions: J
7399
7400
  }),
7400
- C && C.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
7401
- title: C[0].name,
7401
+ T && T.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
7402
+ title: T[0].name,
7402
7403
  className: "text-sm text-(--slate-11) truncate shrink-0 w-fit max-w-24",
7403
- children: C[0].name
7404
+ children: T[0].name
7404
7405
  }),
7405
- C && C.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
7406
- title: [...C].map((e19) => e19.name).join("\n"),
7406
+ T && T.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
7407
+ title: [...T].map((e19) => e19.name).join("\n"),
7407
7408
  className: "text-sm text-(--slate-11) truncate shrink-0",
7408
- children: [C.length, " files"]
7409
+ children: [T.length, " files"]
7409
7410
  }),
7410
- C && C.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
7411
+ T && T.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
7411
7412
  type: "button",
7412
7413
  variant: "text",
7413
7414
  size: "sm",
7414
7415
  onClick: () => {
7415
- w(void 0), T.current && (T.current.value = "");
7416
+ E(void 0), D.current && (D.current.value = "");
7416
7417
  },
7417
7418
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(X, { className: "size-3" })
7418
7419
  }),
@@ -7422,17 +7423,17 @@ const Chatbot = (e18) => {
7422
7423
  size: "sm",
7423
7424
  onClick: () => {
7424
7425
  var _a2;
7425
- return (_a2 = T.current) == null ? void 0 : _a2.click();
7426
+ return (_a2 = D.current) == null ? void 0 : _a2.click();
7426
7427
  },
7427
7428
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Paperclip, { className: "h-4" })
7428
7429
  }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", {
7429
7430
  type: "file",
7430
- ref: T,
7431
+ ref: D,
7431
7432
  className: "hidden",
7432
7433
  multiple: true,
7433
7434
  accept: Array.isArray(e18.allowAttachments) ? e18.allowAttachments.join(",") : void 0,
7434
7435
  onChange: (e19) => {
7435
- e19.target.files && w([...e19.target.files]);
7436
+ e19.target.files && E([...e19.target.files]);
7436
7437
  }
7437
7438
  })] }),
7438
7439
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
@@ -7601,8 +7602,8 @@ var configDescriptions = {
7601
7602
  })] }) }), _[8] = D, _[9] = O);
7602
7603
  let k;
7603
7604
  _[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = () => x(false), _[10] = k) : k = _[10];
7604
- let j;
7605
- _[11] !== y || _[12] !== S ? (j = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContent, {
7605
+ let A;
7606
+ _[11] !== y || _[12] !== S ? (A = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContent, {
7606
7607
  side: "right",
7607
7608
  align: "end",
7608
7609
  className: "min-w-80 px-2",
@@ -7611,13 +7612,13 @@ var configDescriptions = {
7611
7612
  onClose: k,
7612
7613
  onSelect: y
7613
7614
  })
7614
- }), _[11] = y, _[12] = S, _[13] = j) : j = _[13];
7615
+ }), _[11] = y, _[12] = S, _[13] = A) : A = _[13];
7615
7616
  let M;
7616
- return _[14] !== b || _[15] !== O || _[16] !== j ? (M = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Popover, {
7617
+ return _[14] !== b || _[15] !== O || _[16] !== A ? (M = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Popover, {
7617
7618
  open: b,
7618
7619
  onOpenChange: x,
7619
- children: [O, j]
7620
- }), _[14] = b, _[15] = O, _[16] = j, _[17] = M) : M = _[17], M;
7620
+ children: [O, A]
7621
+ }), _[14] = b, _[15] = O, _[16] = A, _[17] = M) : M = _[17], M;
7621
7622
  }, PromptVariablesForm = (e18) => {
7622
7623
  let _ = (0, import_compiler_runtime.c)(32), { prompt: v, onClose: y, onSelect: b } = e18, x;
7623
7624
  _[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = {}, _[0] = x) : x = _[0];
@@ -1,4 +1,4 @@
1
- import { l as createLucideIcon } from "./dist-D2Rk1j4R.js";
1
+ import { l as createLucideIcon } from "./dist-D_UjpfOY.js";
2
2
  var Check = createLucideIcon("check", [["path", {
3
3
  d: "M20 6 9 17l-5-5",
4
4
  key: "1gmf2c"
@@ -1,5 +1,5 @@
1
1
  var _a;
2
- import { a as GitGraphGrammarGeneratedModule, f as __name, g as createDefaultSharedCoreModule, h as createDefaultCoreModule, i as CommonValueConverter, m as inject, p as EmptyFileSystem, s as MermaidGeneratedSharedModule, t as AbstractMermaidTokenBuilder } from "./chunk-TCCFYFTB-BAhzIqBO.js";
2
+ import { a as GitGraphGrammarGeneratedModule, f as __name, g as createDefaultSharedCoreModule, h as createDefaultCoreModule, i as CommonValueConverter, m as inject, p as EmptyFileSystem, s as MermaidGeneratedSharedModule, t as AbstractMermaidTokenBuilder } from "./chunk-TCCFYFTB-Clbl-fTg.js";
3
3
  var GitGraphTokenBuilder = (_a = class extends AbstractMermaidTokenBuilder {
4
4
  constructor() {
5
5
  super(["gitGraph"]);
@@ -1,4 +1,4 @@
1
- import { t as purify } from "./purify.es-ukiMXY-F.js";
1
+ import { t as purify } from "./purify.es-hTCfRGdl.js";
2
2
  import { a as setLogLevel, i as log, n as __export, r as __name } from "./src-DbP20yFZ.js";
3
3
  let rgba_default, parseGenericTypes, setAccTitle, getDiagramTitle, getUserDefinedConfig, getUrl, sanitizeDirective, setupGraphViewbox, setConfig2, sanitizeText, themes_default, setupGraphViewbox2, sanitizeText3, registerLazyLoadedDiagrams, renderKatexSanitized, hasKatex, reset, is_dark_default, saveConfigFromInitialize, getDiagramLoader, getThemeVariables3, setDiagramTitle, setConfig, setSiteConfig, darken_default, updateSiteConfig, lighten_default, getAccDescription, clear, getConfig2, configureSvgSize, defaultConfig_default, color_default, detectType, frontMatterRegex, evaluate, calculateMathMLDimensions, registerDiagram, lineBreakRegex, defaultConfig, directiveRegex, addDirective, commonDb_exports, detectors, styles_default, assignWithDepth_default, common_default, UnknownDiagramError, utils_default, defaultConfig2, getAccTitle, getSiteConfig, getDiagram, getConfig, setAccDescription;
4
4
  let __tla = (async () => {
@@ -1,5 +1,5 @@
1
1
  import { r as __name } from "./src-DbP20yFZ.js";
2
- import { b as getConfig2 } from "./chunk-ABZYJK2D-D5YIs71w.js";
2
+ import { b as getConfig2 } from "./chunk-ABZYJK2D-CZYCCtLy.js";
3
3
  var solidStateFill = /* @__PURE__ */ __name((e) => {
4
4
  let { handDrawnSeed: r } = getConfig2();
5
5
  return {
@@ -1,5 +1,5 @@
1
1
  var _a, _b, _c;
2
- import { d as TreemapGrammarGeneratedModule, f as __name, g as createDefaultSharedCoreModule, h as createDefaultCoreModule, m as inject, n as AbstractMermaidValueConverter, p as EmptyFileSystem, s as MermaidGeneratedSharedModule, t as AbstractMermaidTokenBuilder } from "./chunk-TCCFYFTB-BAhzIqBO.js";
2
+ import { d as TreemapGrammarGeneratedModule, f as __name, g as createDefaultSharedCoreModule, h as createDefaultCoreModule, m as inject, n as AbstractMermaidValueConverter, p as EmptyFileSystem, s as MermaidGeneratedSharedModule, t as AbstractMermaidTokenBuilder } from "./chunk-TCCFYFTB-Clbl-fTg.js";
3
3
  var TreemapTokenBuilder = (_a = class extends AbstractMermaidTokenBuilder {
4
4
  constructor() {
5
5
  super(["treemap"]);
@@ -1,11 +1,11 @@
1
1
  var _a, _b;
2
- import { c as getEdgeId, g as utils_default } from "./chunk-S3R3BYOJ-D3Rys9ZW.js";
2
+ import { c as getEdgeId, g as utils_default } from "./chunk-S3R3BYOJ-B0UOFJwq.js";
3
3
  import { i as log, r as __name, t as select_default } from "./src-DbP20yFZ.js";
4
- import { A as parseGenericTypes, B as setAccTitle, C as getDiagramTitle, I as sanitizeText, U as setDiagramTitle, _ as getAccDescription, a as clear, b as getConfig2, s as common_default, v as getAccTitle, z as setAccDescription } from "./chunk-ABZYJK2D-D5YIs71w.js";
5
- import { r as render, t as getRegisteredLayoutAlgorithm } from "./chunk-N4CR4FBY-2qzGzAxT.js";
4
+ import { A as parseGenericTypes, B as setAccTitle, C as getDiagramTitle, I as sanitizeText, U as setDiagramTitle, _ as getAccDescription, a as clear, b as getConfig2, s as common_default, v as getAccTitle, z as setAccDescription } from "./chunk-ABZYJK2D-CZYCCtLy.js";
5
+ import { r as render, t as getRegisteredLayoutAlgorithm } from "./chunk-N4CR4FBY-CpZSuGSU.js";
6
6
  import { t as getIconStyles } from "./chunk-FMBD7UC4-BjIaI-XO.js";
7
7
  import { t as getDiagramElement } from "./chunk-55IACEB6-DRsSqxbU.js";
8
- import { t as setupViewPortForSVG } from "./chunk-QN33PNHL-Dp1qBo28.js";
8
+ import { t as setupViewPortForSVG } from "./chunk-QN33PNHL-B9p5ojHB.js";
9
9
  var parser = (function() {
10
10
  var e = /* @__PURE__ */ __name(function(e2, t2, n2, r) {
11
11
  for (n2 || (n2 = {}), r = e2.length; r--; n2[e2[r]] = t2) ;